From 52efa8eac5a6a964bc4905dfd7b451b67a3fe872 Mon Sep 17 00:00:00 2001 From: Pierre-Louis <44984704+PIerreLouisH@users.noreply.github.com> Date: Fri, 1 Mar 2024 20:46:58 +0100 Subject: [PATCH 01/23] Add coordinate janicart pda (#23489) * Add janicart coordinates to the Janitor PDA * Compiled the new TGUI * TGUI update * TGUI update * Space for indent is the evil * Update code/modules/pda/cart_apps.dm Co-authored-by: S34N <12197162+S34NW@users.noreply.github.com> * Update code/modules/pda/cart_apps.dm Co-authored-by: S34N <12197162+S34NW@users.noreply.github.com> * Update code/modules/pda/cart_apps.dm Co-authored-by: S34N <12197162+S34NW@users.noreply.github.com> * Update code/modules/vehicle/janivehicle.dm Co-authored-by: S34N <12197162+S34NW@users.noreply.github.com> * Update tgui/packages/tgui/interfaces/pda/pda_janitor.js Co-authored-by: S34N <12197162+S34NW@users.noreply.github.com> * Update code/modules/pda/cart_apps.dm Co-authored-by: S34N <12197162+S34NW@users.noreply.github.com> * Update tgui/packages/tgui/interfaces/pda/pda_janitor.js Co-authored-by: S34N <12197162+S34NW@users.noreply.github.com> * Update tgui/packages/tgui/interfaces/pda/pda_janitor.js Co-authored-by: S34N <12197162+S34NW@users.noreply.github.com> * Update code/modules/pda/cart_apps.dm Co-authored-by: S34N <12197162+S34NW@users.noreply.github.com> * TGUI update --------- Co-authored-by: Pierre-Louis Co-authored-by: S34N <12197162+S34NW@users.noreply.github.com> --- code/modules/pda/cart_apps.dm | 11 ++ code/modules/vehicle/janivehicle.dm | 5 + .../tgui/interfaces/pda/pda_janitor.js | 11 +- tgui/public/tgui.bundle.js | 148 +++++++++--------- 4 files changed, 100 insertions(+), 75 deletions(-) diff --git a/code/modules/pda/cart_apps.dm b/code/modules/pda/cart_apps.dm index 5779b0944f10..c52d71f48869 100644 --- a/code/modules/pda/cart_apps.dm +++ b/code/modules/pda/cart_apps.dm @@ -449,8 +449,19 @@ var/direction = get_dir(pda,B) CartData[++CartData.len] = list("x" = bl.x, "y" = bl.y, "dir" = uppertext(dir2text(direction)), "volume" = B.reagents.total_volume, "max_volume" = B.reagents.maximum_volume) + var/list/JaniCartData = list() + for(var/obj/vehicle/janicart/janicart in GLOB.janitorial_equipment) + var/turf/janicart_loc = get_turf(janicart ) + if(janicart_loc) + if(janicart_loc.z != cl.z) + continue + var/direction_from_user = get_dir(pda, janicart) + JaniCartData[++JaniCartData.len] = list("x" = janicart_loc.x, "y" = janicart_loc.y, "direction_from_user" = uppertext(dir2text(direction_from_user))) + JaniData["mops"] = MopData.len ? MopData : null JaniData["buckets"] = BucketData.len ? BucketData : null JaniData["cleanbots"] = CbotData.len ? CbotData : null JaniData["carts"] = CartData.len ? CartData : null + JaniData["janicarts"] = JaniCartData.len ? JaniCartData : null data["janitor"] = JaniData + diff --git a/code/modules/vehicle/janivehicle.dm b/code/modules/vehicle/janivehicle.dm index 492da4410228..2be7e94a2396 100644 --- a/code/modules/vehicle/janivehicle.dm +++ b/code/modules/vehicle/janivehicle.dm @@ -11,7 +11,12 @@ /// Does it clean the tile under it? var/floorbuffer = FALSE +/obj/vehicle/janicart/Initialize(mapload) + . = ..() + GLOB.janitorial_equipment += src + /obj/vehicle/janicart/Destroy() + GLOB.janitorial_equipment -= src QDEL_NULL(mybag) return ..() diff --git a/tgui/packages/tgui/interfaces/pda/pda_janitor.js b/tgui/packages/tgui/interfaces/pda/pda_janitor.js index 1d097945bfda..c27deffcfe57 100644 --- a/tgui/packages/tgui/interfaces/pda/pda_janitor.js +++ b/tgui/packages/tgui/interfaces/pda/pda_janitor.js @@ -5,7 +5,7 @@ export const pda_janitor = (props, context) => { const { act, data } = useBackend(context); const { janitor } = data; - const { user_loc, mops, buckets, cleanbots, carts } = janitor; + const { user_loc, mops, buckets, cleanbots, carts, janicarts } = janitor; return ( @@ -48,6 +48,15 @@ export const pda_janitor = (props, context) => { ))} )} + {janicarts && ( + + {janicarts.map((janicart) => ( + + {janicart.x},{janicart.y} ({janicart.direction_from_user}) + + ))} + + )} ); }; diff --git a/tgui/public/tgui.bundle.js b/tgui/public/tgui.bundle.js index 8584d4b8742f..f9e442075e7e 100644 --- a/tgui/public/tgui.bundle.js +++ b/tgui/public/tgui.bundle.js @@ -1,26 +1,26 @@ -(function(){(function(){var Gt={15113:function(I,r,n){"use strict";r.__esModule=!0,r.createPopper=void 0,r.popperGenerator=m;var e=p(n(28770)),a=p(n(12866)),t=p(n(88577)),o=p(n(29727)),f=p(n(13657)),N=p(n(97902)),k=p(n(57547)),S=p(n(4709));r.detectOverflow=S.default;var y=n(65601);function p(d){return d&&d.__esModule?d:{default:d}}var l={placement:"bottom",modifiers:[],strategy:"absolute"};function c(){for(var d=arguments.length,u=new Array(d),s=0;s0&&(0,a.round)(p.width)/k.offsetWidth||1,c=k.offsetHeight>0&&(0,a.round)(p.height)/k.offsetHeight||1);var m=(0,e.isElement)(k)?(0,t.default)(k):window,i=m.visualViewport,d=!(0,o.default)()&&y,u=(p.left+(d&&i?i.offsetLeft:0))/l,s=(p.top+(d&&i?i.offsetTop:0))/c,V=p.width/l,g=p.height/c;return{width:V,height:g,top:s,right:u+V,bottom:s+g,left:u,x:u,y:s}}},98310:function(I,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)),k=d(n(75663)),S=n(65601),y=d(n(83199)),p=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,h){var C=(0,y.default)(v,!1,h==="fixed");return C.top=C.top+v.clientTop,C.left=C.left+v.clientLeft,C.bottom=C.top+v.clientHeight,C.right=C.left+v.clientWidth,C.width=v.clientWidth,C.height=v.clientHeight,C.x=C.left,C.y=C.top,C}function s(v,h,C){return h===e.viewport?(0,m.default)((0,a.default)(v,C)):(0,S.isElement)(h)?u(h,C):(0,m.default)((0,t.default)((0,N.default)(v)))}function V(v){var h=(0,o.default)((0,p.default)(v)),C=["absolute","fixed"].indexOf((0,k.default)(v).position)>=0,b=C&&(0,S.isHTMLElement)(v)?(0,f.default)(v):v;return(0,S.isElement)(b)?h.filter(function(B){return(0,S.isElement)(B)&&(0,l.default)(B,b)&&(0,c.default)(B)!=="body"}):[]}function g(v,h,C,b){var B=h==="clippingParents"?V(v):[].concat(h),L=[].concat(B,[C]),w=L[0],T=L.reduce(function(A,x){var E=s(v,x,b);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,b));return T.width=T.right-T.left,T.height=T.bottom-T.top,T.x=T.left,T.y=T.top,T}},28770:function(I,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)),k=y(n(27703)),S=n(79257);function y(c){return c&&c.__esModule?c:{default:c}}function p(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)&&p(m),s=(0,N.default)(m),V=(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,k.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:V.left+g.scrollLeft-v.x,y:V.top+g.scrollTop-v.y,width:V.width,height:V.height}}},75663:function(I,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(I,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(I,r,n){"use strict";r.__esModule=!0,r.default=k;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 k(S){var y,p=(0,e.default)(S),l=(0,o.default)(S),c=(y=S.ownerDocument)==null?void 0:y.body,m=(0,f.max)(p.scrollWidth,p.clientWidth,c?c.scrollWidth:0,c?c.clientWidth:0),i=(0,f.max)(p.scrollHeight,p.clientHeight,c?c.scrollHeight:0,c?c.clientHeight:0),d=-l.scrollLeft+(0,t.default)(S),u=-l.scrollTop;return(0,a.default)(c||p).direction==="rtl"&&(d+=(0,f.max)(p.clientWidth,c?c.clientWidth:0)-m),{width:m,height:i,x:d,y:u}}},89741:function(I,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}},12866:function(I,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,k=o.offsetHeight;return Math.abs(f.width-N)<=1&&(N=f.width),Math.abs(f.height-k)<=1&&(k=f.height),{x:o.offsetLeft,y:o.offsetTop,width:N,height:k}}},1707:function(I,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e?(e.nodeName||"").toLowerCase():null}},3107:function(I,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(k){return k&&k.__esModule?k:{default:k}}function N(k){return k===(0,a.default)(k)||!(0,t.isHTMLElement)(k)?(0,e.default)(k):(0,o.default)(k)}},29727:function(I,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)),k=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 p(c){var m=/firefox/i.test((0,k.default)()),i=/Trident/i.test((0,k.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||p(c)||m}},16292:function(I,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(I,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(k){return k&&k.__esModule?k:{default:k}}function N(k){return["html","body","#document"].indexOf((0,t.default)(k))>=0?k.ownerDocument.body:(0,o.isHTMLElement)(k)&&(0,a.default)(k)?k:N((0,e.default)(k))}},63064:function(I,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(k){return k&&k.__esModule?k:{default:k}}function N(k,S){var y=(0,e.default)(k),p=(0,a.default)(k),l=y.visualViewport,c=p.clientWidth,m=p.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)(k),y:d}}},44901:function(I,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(I,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,k=f.pageYOffset;return{scrollLeft:N,scrollTop:k}}},94889:function(I,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(I,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 k=(0,e.default)(N).Element;return N instanceof k||N instanceof Element}function o(N){var k=(0,e.default)(N).HTMLElement;return N instanceof k||N instanceof HTMLElement}function f(N){if(typeof ShadowRoot=="undefined")return!1;var k=(0,e.default)(N).ShadowRoot;return N instanceof k||N instanceof ShadowRoot}},95294:function(I,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(I,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,k=f.overflowX,S=f.overflowY;return/auto|scroll|overlay|hidden/.test(N+S+k)}},36875:function(I,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(I,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(k){return k&&k.__esModule?k:{default:k}}function N(k,S){var y;S===void 0&&(S=[]);var p=(0,e.default)(k),l=p===((y=k.ownerDocument)==null?void 0:y.body),c=(0,t.default)(p),m=l?[c].concat(c.visualViewport||[],(0,o.default)(p)?p:[]):p,i=S.concat(m);return l?i:i.concat(N((0,a.default)(m)))}},37802:function(I,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",k=r.end="end",S=r.clippingParents="clippingParents",y=r.viewport="viewport",p=r.popper="popper",l=r.reference="reference",c=r.variationPlacements=f.reduce(function(B,L){return B.concat([L+"-"+N,L+"-"+k])},[]),m=r.placements=[].concat(f,[o]).reduce(function(B,L){return B.concat([L,L+"-"+N,L+"-"+k])},[]),i=r.beforeRead="beforeRead",d=r.read="read",u=r.afterRead="afterRead",s=r.beforeMain="beforeMain",V=r.main="main",g=r.afterMain="afterMain",v=r.beforeWrite="beforeWrite",h=r.write="write",C=r.afterWrite="afterWrite",b=r.modifierPhases=[i,d,u,s,V,g,v,h,C]},60028:function(I,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(k){k==="default"||k==="__esModule"||Object.prototype.hasOwnProperty.call(e,k)||k in r&&r[k]===a[k]||(r[k]=a[k])});var t=n(16055);Object.keys(t).forEach(function(k){k==="default"||k==="__esModule"||Object.prototype.hasOwnProperty.call(e,k)||k in r&&r[k]===t[k]||(r[k]=t[k])});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(I,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=t(n(1707)),a=n(65601);function t(k){return k&&k.__esModule?k:{default:k}}function o(k){var S=k.state;Object.keys(S.elements).forEach(function(y){var p=S.styles[y]||{},l=S.attributes[y]||{},c=S.elements[y];!(0,a.isHTMLElement)(c)||!(0,e.default)(c)||(Object.assign(c.style,p),Object.keys(l).forEach(function(m){var i=l[m];i===!1?c.removeAttribute(m):c.setAttribute(m,i===!0?"":i)}))})}function f(k){var S=k.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(p){var l=S.elements[p],c=S.attributes[p]||{},m=Object.keys(S.styles.hasOwnProperty(p)?S.styles[p]:y[p]),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(I,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=p(n(16275)),a=p(n(12866)),t=p(n(11848)),o=p(n(29727)),f=p(n(26608)),N=n(87415),k=p(n(41e3)),S=p(n(62605)),y=n(37802);function p(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,k.default)(typeof u!="number"?u:(0,S.default)(u,y.basePlacements))}return d}();function c(d){var u,s=d.state,V=d.name,g=d.options,v=s.elements.arrow,h=s.modifiersData.popperOffsets,C=(0,e.default)(s.placement),b=(0,f.default)(C),B=[y.left,y.right].indexOf(C)>=0,L=B?"height":"width";if(!(!v||!h)){var w=l(g.padding,s),T=(0,a.default)(v),A=b==="y"?y.top:y.left,x=b==="y"?y.bottom:y.right,E=s.rects.reference[L]+s.rects.reference[b]-h[b]-s.rects.popper[L],M=h[b]-s.rects.reference[b],R=(0,o.default)(v),O=R?b==="y"?R.clientHeight||0:R.clientWidth||0:0,D=E/2-M/2,j=w[A],U=O-T[L]-w[x],W=O/2-T[L]/2+D,K=(0,N.within)(j,W,U),G=b;s.modifiersData[V]=(u={},u[G]=K,u.centerOffset=K-W,u)}}function m(d){var u=d.state,s=d.options,V=s.element,g=V===void 0?"[data-popper-arrow]":V;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(I,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)),k=y(n(56918)),S=n(79257);function y(d){return d&&d.__esModule?d:{default:d}}var p={top:"auto",right:"auto",bottom:"auto",left:"auto"};function l(d,u){var s=d.x,V=d.y,g=u.devicePixelRatio||1;return{x:(0,S.round)(s*g)/g||0,y:(0,S.round)(V*g)/g||0}}function c(d){var u,s=d.popper,V=d.popperRect,g=d.placement,v=d.variation,h=d.offsets,C=d.position,b=d.gpuAcceleration,B=d.adaptive,L=d.roundOffsets,w=d.isFixed,T=h.x,A=T===void 0?0:T,x=h.y,E=x===void 0?0:x,M=typeof L=="function"?L({x:A,y:E}):{x:A,y:E};A=M.x,E=M.y;var R=h.hasOwnProperty("x"),O=h.hasOwnProperty("y"),D=e.left,j=e.top,U=window;if(B){var W=(0,a.default)(s),K="clientHeight",G="clientWidth";if(W===(0,t.default)(s)&&(W=(0,o.default)(s),(0,f.default)(W).position!=="static"&&C==="absolute"&&(K="scrollHeight",G="scrollWidth")),W=W,g===e.top||(g===e.left||g===e.right)&&v===e.end){j=e.bottom;var $=w&&W===U&&U.visualViewport?U.visualViewport.height:W[K];E-=$-V.height,E*=b?1:-1}if(g===e.left||(g===e.top||g===e.bottom)&&v===e.end){D=e.right;var z=w&&W===U&&U.visualViewport?U.visualViewport.width:W[G];A-=z-V.width,A*=b?1:-1}}var Y=Object.assign({position:C},B&&p),J=L===!0?l({x:A,y:E},(0,t.default)(s)):{x:A,y:E};if(A=J.x,E=J.y,b){var ie;return Object.assign({},Y,(ie={},ie[j]=O?"0":"",ie[D]=R?"0":"",ie.transform=(U.devicePixelRatio||1)<=1?"translate("+A+"px, "+E+"px)":"translate3d("+A+"px, "+E+"px, 0)",ie))}return Object.assign({},Y,(u={},u[j]=O?E+"px":"",u[D]=R?A+"px":"",u.transform="",u))}function m(d){var u=d.state,s=d.options,V=s.gpuAcceleration,g=V===void 0?!0:V,v=s.adaptive,h=v===void 0?!0:v,C=s.roundOffsets,b=C===void 0?!0:C,B={placement:(0,N.default)(u.placement),variation:(0,k.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:h,roundOffsets:b})))),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:b})))),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(I,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 k=N.state,S=N.instance,y=N.options,p=y.scroll,l=p===void 0?!0:p,c=y.resize,m=c===void 0?!0:c,i=(0,e.default)(k.elements.popper),d=[].concat(k.scrollParents.reference,k.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(I,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),k=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 p(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,V=i.altAxis,g=V===void 0?!0:V,v=i.fallbackPlacements,h=i.padding,C=i.boundary,b=i.rootBoundary,B=i.altBoundary,L=i.flipVariations,w=L===void 0?!0:L,T=i.allowedAutoPlacements,A=m.options.placement,x=(0,a.default)(A),E=x===A,M=v||(E||!w?[(0,e.default)(A)]:y(A)),R=[A].concat(M).reduce(function(ae,q){return ae.concat((0,a.default)(q)===N.auto?(0,f.default)(m,{placement:q,boundary:C,rootBoundary:b,padding:h,flipVariations:w,allowedAutoPlacements:T}):q)},[]),O=m.rects.reference,D=m.rects.popper,j=new Map,U=!0,W=R[0],K=0;K=0,J=Y?"width":"height",ie=(0,o.default)(m,{placement:G,boundary:C,rootBoundary:b,altBoundary:B,padding:h}),re=Y?z?N.right:N.left:z?N.bottom:N.top;O[J]>D[J]&&(re=(0,e.default)(re));var de=(0,e.default)(re),ve=[];if(s&&ve.push(ie[$]<=0),g&&ve.push(ie[re]<=0,ie[de]<=0),ve.every(function(ae){return ae})){W=G,U=!1;break}j.set(G,ve)}if(U)for(var ye=w?3:1,Le=function(){function ae(q){var se=R.find(function(me){var te=j.get(me);if(te)return te.slice(0,q).every(function(be){return be})});if(se)return W=se,"break"}return ae}(),pe=ye;pe>0;pe--){var ne=Le(pe);if(ne==="break")break}m.placement!==W&&(m.modifiersData[d]._skip=!0,m.placement=W,m.reset=!0)}}var l=r.default={name:"flip",enabled:!0,phase:"main",fn:p,requiresIfExists:["offset"],data:{_skip:!1}}},44677:function(I,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,p){return p===void 0&&(p={x:0,y:0}),{top:S.top-y.height-p.y,right:S.right-y.width+p.x,bottom:S.bottom-y.height+p.y,left:S.left-y.width-p.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,p=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),V=f(u),g=f(s);y.modifiersData[p]={referenceClippingOffsets:u,popperEscapeOffsets:s,isReferenceHidden:V,hasPopperEscaped:g},y.attributes.popper=Object.assign({},y.attributes.popper,{"data-popper-reference-hidden":V,"data-popper-escaped":g})}var k=r.default={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:N}},16055:function(I,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=p(n(20637));r.applyStyles=e.default;var a=p(n(11106));r.arrow=a.default;var t=p(n(85445));r.computeStyles=t.default;var o=p(n(21068));r.eventListeners=o.default;var f=p(n(51825));r.flip=f.default;var N=p(n(44677));r.hide=N.default;var k=p(n(34331));r.offset=k.default;var S=p(n(56154));r.popperOffsets=S.default;var y=p(n(69770));r.preventOverflow=y.default;function p(l){return l&&l.__esModule?l:{default:l}}},34331:function(I,r,n){"use strict";r.__esModule=!0,r.default=void 0,r.distanceAndSkiddingToXY=o;var e=t(n(16275)),a=n(37802);function t(k){return k&&k.__esModule?k:{default:k}}function o(k,S,y){var p=(0,e.default)(k),l=[a.left,a.top].indexOf(p)>=0?-1:1,c=typeof y=="function"?y(Object.assign({},S,{placement:k})):y,m=c[0],i=c[1];return m=m||0,i=(i||0)*l,[a.left,a.right].indexOf(p)>=0?{x:i,y:m}:{x:m,y:i}}function f(k){var S=k.state,y=k.options,p=k.name,l=y.offset,c=l===void 0?[0,0]:l,m=a.placements.reduce(function(s,V){return s[V]=o(V,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[p]=m}var N=r.default={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:f}},56154:function(I,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,k=f.name;N.modifiersData[k]=(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(I,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)),k=c(n(29727)),S=c(n(4709)),y=c(n(56918)),p=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,V=d.name,g=s.mainAxis,v=g===void 0?!0:g,h=s.altAxis,C=h===void 0?!1:h,b=s.boundary,B=s.rootBoundary,L=s.altBoundary,w=s.padding,T=s.tether,A=T===void 0?!0:T,x=s.tetherOffset,E=x===void 0?0:x,M=(0,S.default)(u,{boundary:b,rootBoundary:B,padding:w,altBoundary:L}),R=(0,a.default)(u.placement),O=(0,y.default)(u.placement),D=!O,j=(0,t.default)(R),U=(0,o.default)(j),W=u.modifiersData.popperOffsets,K=u.rects.reference,G=u.rects.popper,$=typeof E=="function"?E(Object.assign({},u.rects,{placement:u.placement})):E,z=typeof $=="number"?{mainAxis:$,altAxis:$}:Object.assign({mainAxis:0,altAxis:0},$),Y=u.modifiersData.offset?u.modifiersData.offset[u.placement]:null,J={x:0,y:0};if(W){if(v){var ie,re=j==="y"?e.top:e.left,de=j==="y"?e.bottom:e.right,ve=j==="y"?"height":"width",ye=W[j],Le=ye+M[re],pe=ye-M[de],ne=A?-G[ve]/2:0,ae=O===e.start?K[ve]:G[ve],q=O===e.start?-G[ve]:-K[ve],se=u.elements.arrow,me=A&&se?(0,N.default)(se):{width:0,height:0},te=u.modifiersData["arrow#persistent"]?u.modifiersData["arrow#persistent"].padding:(0,p.default)(),be=te[re],fe=te[de],ge=(0,f.within)(0,K[ve],me[ve]),ke=D?K[ve]/2-ne-ge-be-z.mainAxis:ae-ge-be-z.mainAxis,Ce=D?-K[ve]/2+ne+ge+fe+z.mainAxis:q+ge+fe+z.mainAxis,Se=u.elements.arrow&&(0,k.default)(u.elements.arrow),we=Se?j==="y"?Se.clientTop||0:Se.clientLeft||0:0,xe=(ie=Y==null?void 0:Y[j])!=null?ie:0,Pe=ye+ke-xe-we,Ue=ye+Ce-xe,Ve=(0,f.within)(A?(0,l.min)(Le,Pe):Le,ye,A?(0,l.max)(pe,Ue):pe);W[j]=Ve,J[j]=Ve-ye}if(C){var oe,le=j==="x"?e.top:e.left,he=j==="x"?e.bottom:e.right,ue=W[U],Ne=U==="y"?"height":"width",Ae=ue+M[le],De=ue-M[he],je=[e.top,e.left].indexOf(R)!==-1,Ke=(oe=Y==null?void 0:Y[U])!=null?oe:0,We=je?Ae:ue-K[Ne]-G[Ne]-Ke+z.altAxis,He=je?ue+K[Ne]+G[Ne]-Ke-z.altAxis:De,_e=A&&je?(0,f.withinMaxClamp)(We,ue,He):(0,f.within)(A?We:Ae,ue,A?He:De);W[U]=_e,J[U]=_e-ue}u.modifiersData[V]=J}}var i=r.default={name:"preventOverflow",enabled:!0,phase:"main",fn:m,requiresIfExists:["offset"]}},22008:function(I,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 k=r.defaultModifiers=[a.default,t.default,o.default,f.default],S=r.createPopper=(0,e.popperGenerator)({defaultModifiers:k})},98420:function(I,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)),k=i(n(34331)),S=i(n(51825)),y=i(n(69770)),p=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,k.default,S.default,y.default,p.default,l.default],u=r.createPopperLite=r.createPopper=(0,a.popperGenerator)({defaultModifiers:d})},36705:function(I,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(k){return k&&k.__esModule?k:{default:k}}function N(k,S){S===void 0&&(S={});var y=S,p=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)(p),V=s?i?a.variationPlacements:a.variationPlacements.filter(function(h){return(0,e.default)(h)===s}):a.basePlacements,g=V.filter(function(h){return u.indexOf(h)>=0});g.length===0&&(g=V);var v=g.reduce(function(h,C){return h[C]=(0,t.default)(k,{placement:C,boundary:l,rootBoundary:c,padding:m})[(0,o.default)(C)],h},{});return Object.keys(v).sort(function(h,C){return v[h]-v[C]})}},49306:function(I,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(k){return k&&k.__esModule?k:{default:k}}function N(k){var S=k.reference,y=k.element,p=k.placement,l=p?(0,e.default)(p):null,c=p?(0,a.default)(p):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(I,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(I,r,n){"use strict";r.__esModule=!0,r.default=l;var e=p(n(98310)),a=p(n(9252)),t=p(n(83199)),o=p(n(49306)),f=p(n(21194)),N=n(37802),k=n(65601),S=p(n(41e3)),y=p(n(62605));function p(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,V=s===void 0?c.strategy:s,g=i.boundary,v=g===void 0?N.clippingParents:g,h=i.rootBoundary,C=h===void 0?N.viewport:h,b=i.elementContext,B=b===void 0?N.popper:b,L=i.altBoundary,w=L===void 0?!1:L,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,M=c.rects.popper,R=c.elements[w?E:B],O=(0,e.default)((0,k.isElement)(R)?R:R.contextElement||(0,a.default)(c.elements.popper),v,C,V),D=(0,t.default)(c.elements.reference),j=(0,o.default)({reference:D,element:M,strategy:"absolute",placement:u}),U=(0,f.default)(Object.assign({},M,j)),W=B===N.popper?U:D,K={top:O.top-W.top+x.top,bottom:W.bottom-O.bottom+x.bottom,left:O.left-W.left+x.left,right:W.right-O.right+x.right},G=c.modifiersData.offset;if(B===N.popper&&G){var $=G[u];Object.keys(K).forEach(function(z){var Y=[N.right,N.bottom].indexOf(z)>=0?1:-1,J=[N.top,N.bottom].indexOf(z)>=0?"y":"x";K[z]+=$[J]*Y})}return K}},62605:function(I,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(I,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e==="x"?"y":"x"}},16275:function(I,r,n){"use strict";r.__esModule=!0,r.default=a;var e=n(37802);function a(t){return t.split("-")[0]}},26143:function(I,r){"use strict";r.__esModule=!0,r.default=n;function n(){return{top:0,right:0,bottom:0,left:0}}},26608:function(I,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}},96346:function(I,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(I,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(I,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e.split("-")[1]}},79257:function(I,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(I,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(I,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(I,r,n){"use strict";r.__esModule=!0,r.default=t;var e=n(37802);function a(o){var f=new Map,N=new Set,k=[];o.forEach(function(y){f.set(y.name,y)});function S(y){N.add(y.name);var p=[].concat(y.requires||[],y.requiresIfExists||[]);p.forEach(function(l){if(!N.has(l)){var c=f.get(l);c&&S(c)}}),k.push(y)}return o.forEach(function(y){N.has(y.name)||S(y)}),k}function t(o){var f=a(o);return e.modifierPhases.reduce(function(N,k){return N.concat(f.filter(function(S){return S.phase===k}))},[])}},21194:function(I,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(I,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(I,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 k=a(o,f,N);return k>N?N:k}},60208:function(I,r){"use strict";r.__esModule=!0,r.Fragment=r.EMPTY_OBJ=r.Component=void 0,r._CI=Et,r._HI=Le,r._M=ze,r._MCCC=Pt,r._ME=Ot,r._MFCC=Rt,r._MP=xt,r._MR=ot,r._RFC=vt,r.__render=Ft,r.createComponentVNode=K,r.createFragment=$,r.createPortal=re,r.createRef=Yt,r.createRenderer=kn,r.createTextVNode=G,r.createVNode=D,r.directClone=J,r.findDOMfromVNode=C,r.forwardRef=Xt,r.getFlagsForElementVnode=ve,r.linkEvent=p,r.normalizeProps=z,r.options=void 0,r.render=Ut,r.rerender=Kt,r.version=void 0;var n=Array.isArray;function e(P){var F=typeof P;return F==="string"||F==="number"}function a(P){return P==null}function t(P){return P===null||P===!1||P===!0||P===void 0}function o(P){return typeof P=="function"}function f(P){return typeof P=="string"}function N(P){return typeof P=="number"}function k(P){return P===null}function S(P){return P===void 0}function y(P,F){var H={};if(P)for(var _ in P)H[_]=P[_];if(F)for(var Q in F)H[Q]=F[Q];return H}function p(P,F){return o(F)?{data:P,event:F}:null}function l(P){return!k(P)&&typeof P=="object"}var c=r.EMPTY_OBJ={},m=r.Fragment="$F";function i(P){return P.substr(2).toLowerCase()}function d(P,F){P.appendChild(F)}function u(P,F,H){k(H)?d(P,F):P.insertBefore(F,H)}function s(P,F){return F?document.createElementNS("http://www.w3.org/2000/svg",P):document.createElement(P)}function V(P,F,H){P.replaceChild(F,H)}function g(P,F){P.removeChild(F)}function v(P){for(var F=0;F0,Be=k(ce),Ie=f(ce)&&ce[0]===R;Te||Be||Ie?(H=H||F.slice(0,Z),(Te||Ie)&&(ee=J(ee)),(Be||Ie)&&(ee.key=R+Z),H.push(ee)):H&&H.push(ee),ee.flags|=65536}}H=H||F,H.length===0?_=1:_=8}else H=F,H.flags|=65536,F.flags&81920&&(H=J(F)),_=2;return P.children=H,P.childFlags=_,P}function Le(P){return t(P)||e(P)?G(P,null):n(P)?$(P,0,null):P.flags&16384?J(P):P}var pe="http://www.w3.org/1999/xlink",ne="http://www.w3.org/XML/1998/namespace",ae={"xlink:actuate":pe,"xlink:arcrole":pe,"xlink:href":pe,"xlink:role":pe,"xlink:show":pe,"xlink:title":pe,"xlink:type":pe,"xml:base":ne,"xml:lang":ne,"xml:space":ne};function q(P){return{onClick:P,onDblClick:P,onFocusIn:P,onFocusOut:P,onKeyDown:P,onKeyPress:P,onKeyUp:P,onMouseDown:P,onMouseMove:P,onMouseUp:P,onTouchEnd:P,onTouchMove:P,onTouchStart:P}}var se=q(0),me=q(null),te=q(!0);function be(P,F){var H=F.$EV;return H||(H=F.$EV=q(null)),H[P]||++se[P]===1&&(me[P]=oe(P)),H}function fe(P,F){var H=F.$EV;H&&H[P]&&(--se[P]===0&&(document.removeEventListener(i(P),me[P]),me[P]=null),H[P]=null)}function ge(P,F,H,_){if(o(H))be(P,_)[P]=H;else if(l(H)){if(x(F,H))return;be(P,_)[P]=H}else fe(P,_)}function ke(P){return o(P.composedPath)?P.composedPath()[0]:P.target}function Ce(P,F,H,_){var Q=ke(P);do{if(F&&Q.disabled)return;var Z=Q.$EV;if(Z){var ee=Z[H];if(ee&&(_.dom=Q,ee.event?ee.event(ee.data,P):ee(P),P.cancelBubble))return}Q=Q.parentNode}while(!k(Q))}function Se(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function we(){return this.defaultPrevented}function xe(){return this.cancelBubble}function Pe(P){var F={dom:document};return P.isDefaultPrevented=we,P.isPropagationStopped=xe,P.stopPropagation=Se,Object.defineProperty(P,"currentTarget",{configurable:!0,get:function(){function H(){return F.dom}return H}()}),F}function Ue(P){return function(F){if(F.button!==0){F.stopPropagation();return}Ce(F,!0,P,Pe(F))}}function Ve(P){return function(F){Ce(F,!1,P,Pe(F))}}function oe(P){var F=P==="onClick"||P==="onDblClick"?Ue(P):Ve(P);return document.addEventListener(i(P),F),F}function le(P,F){var H=document.createElement("i");return H.innerHTML=F,H.innerHTML===P.innerHTML}function he(P,F,H){if(P[F]){var _=P[F];_.event?_.event(_.data,H):_(H)}else{var Q=F.toLowerCase();P[Q]&&P[Q](H)}}function ue(P,F){var H=function(Q){var Z=this.$V;if(Z){var ee=Z.props||c,ce=Z.dom;if(f(P))he(ee,P,Q);else for(var Te=0;Te-1&&F.options[Z]&&(ce=F.options[Z].value),H&&a(ce)&&(ce=P.defaultValue),_e(_,ce)}}var Bt=ue("onInput",pt),Lt=ue("onChange");function It(P,F){Ne(P,"input",Bt),F.onChange&&Ne(P,"change",Lt)}function pt(P,F,H){var _=P.value,Q=F.value;if(a(_)){if(H){var Z=P.defaultValue;!a(Z)&&Z!==Q&&(F.defaultValue=Z,F.value=Z)}}else Q!==_&&(F.defaultValue=_,F.value=_)}function wt(P,F,H,_,Q,Z){P&64?He(_,H):P&256?ft(_,H,Q,F):P&128&&pt(_,H,Q),Z&&(H.$V=F)}function _t(P,F,H){P&64?We(F,H):P&256?St(F):P&128&&It(F,H)}function Tt(P){return P.type&&Ae(P.type)?!a(P.checked):!a(P.value)}function Yt(){return{current:null}}function Xt(P){return{render:P}}function lt(P){P&&!M(P,null)&&P.current&&(P.current=null)}function ot(P,F,H){P&&(o(P)||P.current!==void 0)&&H.push(function(){!M(P,F)&&P.current!==void 0&&(P.current=F)})}function Xe(P,F){Je(P),b(P,F)}function Je(P){var F=P.flags,H=P.children,_;if(F&481){_=P.ref;var Q=P.props;lt(_);var Z=P.childFlags;if(!k(Q))for(var ee=Object.keys(Q),ce=0,Te=ee.length;ce0;ee&&(Z=Tt(H),Z&&_t(F,_,H));for(var ce in H)ht(ce,null,H[ce],_,Q,Z,null);ee&&wt(F,P,_,H,!0,Z)}function At(P,F,H){var _=Le(P.render(F,P.state,H)),Q=H;return o(P.getChildContext)&&(Q=y(H,P.getChildContext())),P.$CX=Q,_}function Et(P,F,H,_,Q,Z){var ee=new F(H,_),ce=ee.$N=!!(F.getDerivedStateFromProps||ee.getSnapshotBeforeUpdate);if(ee.$SVG=Q,ee.$L=Z,P.children=ee,ee.$BS=!1,ee.context=_,ee.props===c&&(ee.props=H),ce)ee.state=L(ee,H,ee.state);else if(o(ee.componentWillMount)){ee.$BR=!0,ee.componentWillMount();var Te=ee.$PS;if(!k(Te)){var Be=ee.state;if(k(Be))ee.state=Te;else for(var Ie in Te)Be[Ie]=Te[Ie];ee.$PS=null}ee.$BR=!1}return ee.$LI=At(ee,H,_),ee}function vt(P,F){var H=P.props||c;return P.flags&32768?P.type.render(H,P.ref,F):P.type(H,F)}function ze(P,F,H,_,Q,Z){var ee=P.flags|=16384;ee&481?Ot(P,F,H,_,Q,Z):ee&4?nn(P,F,H,_,Q,Z):ee&8?(on(P,F,H,_,Q,Z),Rt(P,Z)):ee&512||ee&16?Mt(P,F,Q):ee&8192?tn(P,H,F,_,Q,Z):ee&1024&&en(P,H,F,Q,Z)}function en(P,F,H,_,Q){ze(P.children,P.ref,F,!1,null,Q);var Z=ie();Mt(Z,H,_),P.dom=Z.dom}function tn(P,F,H,_,Q,Z){var ee=P.children,ce=P.childFlags;ce&12&&ee.length===0&&(ce=P.childFlags=2,ee=P.children=ie()),ce===2?ze(ee,H,F,_,Q,Z):nt(ee,H,F,_,Q,Z)}function Mt(P,F,H){var _=P.dom=document.createTextNode(P.children);k(F)||u(F,_,H)}function Ot(P,F,H,_,Q,Z){var ee=P.flags,ce=P.props,Te=P.className,Be=P.childFlags,Ie=P.dom=s(P.type,_=_||(ee&32)>0),Ee=P.children;if(!a(Te)&&Te!==""&&(_?Ie.setAttribute("class",Te):Ie.className=Te),Be===16)A(Ie,Ee);else if(Be!==1){var Oe=_&&P.type!=="foreignObject";Be===2?(Ee.flags&16384&&(P.children=Ee=J(Ee)),ze(Ee,Ie,H,Oe,null,Z)):(Be===8||Be===4)&&nt(Ee,Ie,H,Oe,null,Z)}k(F)||u(F,Ie,Q),k(ce)||xt(P,ee,ce,Ie,_),ot(P.ref,Ie,Z)}function nt(P,F,H,_,Q,Z){for(var ee=0;eeOe)&&(Ie=C(ee[Oe-1],!1).nextSibling)}Ct(Te,Be,ee,ce,H,_,Q,Ie,P,Z)}function sn(P,F,H,_){var Q=P.ref,Z=F.ref,ee=F.children;if(Ct(P.childFlags,F.childFlags,P.children,ee,Q,H,!1,null,P,_),F.dom=P.dom,Q!==Z&&!t(ee)){var ce=ee.dom;g(Q,ce),d(Z,ce)}}function mn(P,F,H,_,Q,Z){var ee=F.dom=P.dom,ce=P.props,Te=F.props,Be=!1,Ie=!1,Ee;if(_=_||(Q&32)>0,ce!==Te){var Oe=ce||c;if(Ee=Te||c,Ee!==c){Be=(Q&448)>0,Be&&(Ie=Tt(Ee));for(var Fe in Ee){var Me=Oe[Fe],$e=Ee[Fe];Me!==$e&&ht(Fe,Me,$e,ee,_,Ie,P)}}if(Oe!==c)for(var Re in Oe)a(Ee[Re])&&!a(Oe[Re])&&ht(Re,Oe[Re],null,ee,_,Ie,P)}var et=F.children,Ye=F.className;P.className!==Ye&&(a(Ye)?ee.removeAttribute("class"):_?ee.setAttribute("class",Ye):ee.className=Ye),Q&4096?un(ee,et):Ct(P.childFlags,F.childFlags,P.children,et,ee,H,_&&F.type!=="foreignObject",null,P,Z),Be&&wt(Q,F,ee,Ee,!1,Ie);var at=F.ref,Qe=P.ref;Qe!==at&&(lt(Qe),ot(at,ee,Z))}function fn(P,F,H,_,Q,Z){Je(P),nt(F,H,_,Q,C(P,!0),Z),b(P,H)}function Ct(P,F,H,_,Q,Z,ee,ce,Te,Be){switch(P){case 2:switch(F){case 2:Ze(H,_,Q,Z,ee,ce,Be);break;case 1:Xe(H,Q);break;case 16:Je(H),A(Q,_);break;default:fn(H,_,Q,Z,ee,Be);break}break;case 1:switch(F){case 2:ze(_,Q,Z,ee,ce,Be);break;case 1:break;case 16:A(Q,_);break;default:nt(_,Q,Z,ee,ce,Be);break}break;case 16:switch(F){case 16:ln(H,_,Q);break;case 2:ut(Q),ze(_,Q,Z,ee,ce,Be);break;case 1:ut(Q);break;default:ut(Q),nt(_,Q,Z,ee,ce,Be);break}break;default:switch(F){case 16:rt(H),A(Q,_);break;case 2:dt(Q,Te,H),ze(_,Q,Z,ee,ce,Be);break;case 1:dt(Q,Te,H);break;default:var Ie=H.length|0,Ee=_.length|0;Ie===0?Ee>0&&nt(_,Q,Z,ee,ce,Be):Ee===0?dt(Q,Te,H):F===8&&P===8?Nn(H,_,Q,Z,ee,Ie,Ee,ce,Te,Be):gn(H,_,Q,Z,ee,Ie,Ee,ce,Be);break}break}}function pn(P,F,H,_,Q){Q.push(function(){P.componentDidUpdate(F,H,_)})}function Dt(P,F,H,_,Q,Z,ee,ce,Te){var Be=P.state,Ie=P.props,Ee=!!P.$N,Oe=o(P.shouldComponentUpdate);if(Ee&&(F=L(P,H,F!==Be?y(Be,F):F)),ee||!Oe||Oe&&P.shouldComponentUpdate(H,F,Q)){!Ee&&o(P.componentWillUpdate)&&P.componentWillUpdate(H,F,Q),P.props=H,P.state=F,P.context=Q;var Fe=null,Me=At(P,H,Q);Ee&&o(P.getSnapshotBeforeUpdate)&&(Fe=P.getSnapshotBeforeUpdate(Ie,Be)),Ze(P.$LI,Me,_,P.$CX,Z,ce,Te),P.$LI=Me,o(P.componentDidUpdate)&&pn(P,Ie,Be,Fe,Te)}else P.props=H,P.state=F,P.context=Q}function hn(P,F,H,_,Q,Z,ee){var ce=F.children=P.children;if(!k(ce)){ce.$L=ee;var Te=F.props||c,Be=F.ref,Ie=P.ref,Ee=ce.state;if(!ce.$N){if(o(ce.componentWillReceiveProps)){if(ce.$BR=!0,ce.componentWillReceiveProps(Te,_),ce.$UN)return;ce.$BR=!1}k(ce.$PS)||(Ee=y(Ee,ce.$PS),ce.$PS=null)}Dt(ce,Ee,Te,H,_,Q,!1,Z,ee),Ie!==Be&&(lt(Ie),ot(Be,ce,ee))}}function vn(P,F,H,_,Q,Z,ee){var ce=!0,Te=F.props||c,Be=F.ref,Ie=P.props,Ee=!a(Be),Oe=P.children;if(Ee&&o(Be.onComponentShouldUpdate)&&(ce=Be.onComponentShouldUpdate(Ie,Te)),ce!==!1){Ee&&o(Be.onComponentWillUpdate)&&Be.onComponentWillUpdate(Ie,Te);var Fe=Le(vt(F,_));Ze(Oe,Fe,H,_,Q,Z,ee),F.children=Fe,Ee&&o(Be.onComponentDidUpdate)&&Be.onComponentDidUpdate(Ie,Te)}else F.children=Oe}function Cn(P,F){var H=F.children,_=F.dom=P.dom;H!==P.children&&(_.nodeValue=H)}function gn(P,F,H,_,Q,Z,ee,ce,Te){for(var Be=Z>ee?ee:Z,Ie=0,Ee,Oe;Ieee)for(Ie=Be;IeIe||Oe>Ee)break e;Fe=P[Oe],Me=F[Oe]}for(Fe=P[Ie],Me=F[Ee];Fe.key===Me.key;){if(Me.flags&16384&&(F[Ee]=Me=J(Me)),Ze(Fe,Me,H,_,Q,ce,Be),P[Ie]=Me,Ie--,Ee--,Oe>Ie||Oe>Ee)break e;Fe=P[Ie],Me=F[Ee]}}if(Oe>Ie){if(Oe<=Ee)for($e=Ee+1,Re=$eEe)for(;Oe<=Ie;)Xe(P[Oe++],H);else Vn(P,F,_,Z,ee,Ie,Ee,Oe,H,Q,ce,Te,Be)}function Vn(P,F,H,_,Q,Z,ee,ce,Te,Be,Ie,Ee,Oe){var Fe,Me,$e,Re=0,et=ce,Ye=ce,at=Z-ce+1,Qe=ee-ce+1,ct=new Int32Array(Qe+1),tt=at===_,Vt=!1,Ge=0,it=0;if(Q<4||(at|Qe)<32)for(Re=et;Re<=Z;++Re)if(Fe=P[Re],itce?Vt=!0:Ge=ce,Me.flags&16384&&(F[ce]=Me=J(Me)),Ze(Fe,Me,Te,H,Be,Ie,Oe),++it;break}!tt&&ce>ee&&Xe(Fe,Te)}else tt||Xe(Fe,Te);else{var zt={};for(Re=Ye;Re<=ee;++Re)zt[F[Re].key]=Re;for(Re=et;Re<=Z;++Re)if(Fe=P[Re],itet;)Xe(P[et++],Te);ct[ce-Ye]=Re+1,Ge>ce?Vt=!0:Ge=ce,Me=F[ce],Me.flags&16384&&(F[ce]=Me=J(Me)),Ze(Fe,Me,Te,H,Be,Ie,Oe),++it}else tt||Xe(Fe,Te);else tt||Xe(Fe,Te)}if(tt)dt(Te,Ee,P),nt(F,Te,H,Be,Ie,Oe);else if(Vt){var $t=bn(ct);for(ce=$t.length-1,Re=Qe-1;Re>=0;Re--)ct[Re]===0?(Ge=Re+Ye,Me=F[Ge],Me.flags&16384&&(F[Ge]=Me=J(Me)),$e=Ge+1,ze(Me,Te,H,Be,$e=0;Re--)ct[Re]===0&&(Ge=Re+Ye,Me=F[Ge],Me.flags&16384&&(F[Ge]=Me=J(Me)),$e=Ge+1,ze(Me,Te,H,Be,$ejt&&(jt=Te,qe=new Int32Array(Te),st=new Int32Array(Te));H>1,P[qe[ce]]0&&(st[H]=qe[Z-1]),qe[Z]=H)}Z=Q+1;var Be=new Int32Array(Z);for(ee=qe[Z-1];Z-- >0;)Be[Z]=ee,ee=st[ee],qe[Z]=0;return Be}var yn=typeof document!="undefined";yn&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null);function Ft(P,F,H,_){var Q=[],Z=F.$V;w.v=!0,a(Z)?a(P)||(P.flags&16384&&(P=J(P)),ze(P,F,_,!1,null,Q),F.$V=P,Z=P):a(P)?(Xe(Z,F),F.$V=null):(P.flags&16384&&(P=J(P)),Ze(Z,P,F,_,!1,null,Q),Z=F.$V=P),v(Q),w.v=!1,o(H)&&H(),o(T.renderComplete)&&T.renderComplete(Z,F)}function Ut(P,F,H,_){H===void 0&&(H=null),_===void 0&&(_=c),Ft(P,F,H,_)}function kn(P){return function(){function F(H,_,Q,Z){P||(P=H),Ut(_,P,Q,Z)}return F}()}var mt=[],Sn=typeof Promise!="undefined"?Promise.resolve().then.bind(Promise.resolve()):function(P){window.setTimeout(P,0)},gt=!1;function Wt(P,F,H,_){var Q=P.$PS;if(o(F)&&(F=F(Q?y(P.state,Q):P.state,P.props,P.context)),a(Q))P.$PS=F;else for(var Z in F)Q[Z]=F[Z];if(P.$BR)o(H)&&P.$L.push(H.bind(P));else{if(!w.v&&mt.length===0){Ht(P,_),o(H)&&H.call(P);return}if(mt.indexOf(P)===-1&&mt.push(P),_&&(P.$F=!0),gt||(gt=!0,Sn(Kt)),o(H)){var ee=P.$QU;ee||(ee=P.$QU=[]),ee.push(H)}}}function Bn(P){for(var F=P.$QU,H=0;H=0;--W){var K=this.tryEntries[W],G=K.completion;if(K.tryLoc==="root")return U("end");if(K.tryLoc<=this.prev){var $=a.call(K,"catchLoc"),z=a.call(K,"finallyLoc");if($&&z){if(this.prev=0;--U){var W=this.tryEntries[U];if(W.tryLoc<=this.prev&&a.call(W,"finallyLoc")&&this.prev=0;--j){var U=this.tryEntries[j];if(U.finallyLoc===D)return this.complete(U.completion,U.afterLoc),x(U),u}}return O}(),catch:function(){function O(D){for(var j=this.tryEntries.length-1;j>=0;--j){var U=this.tryEntries[j];if(U.tryLoc===D){var W=U.completion;if(W.type==="throw"){var K=W.arg;x(U)}return K}}throw new Error("illegal catch attempt")}return O}(),delegateYield:function(){function O(D,j,U){return this.delegate={iterator:M(D),resultName:j,nextLoc:U},this.method==="next"&&(this.arg=o),u}return O}()},n}(I.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(I,r){return r=r||{},new Promise(function(n,e){var a=new XMLHttpRequest,t=[],o={},f=function(){function k(){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:k,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 k}();for(var N in a.open(r.method||"get",I,!0),a.onload=function(){a.getAllResponseHeaders().toLowerCase().replace(/^(.+?):/gm,function(k,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(I,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,V){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))||V&&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,V){if(s){if(typeof s=="string")return a(s,V);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,V)}}function a(s,V){(V==null||V>s.length)&&(V=s.length);for(var g=0,v=new Array(V);g0&&(0,a.round)(p.width)/k.offsetWidth||1,c=k.offsetHeight>0&&(0,a.round)(p.height)/k.offsetHeight||1);var m=(0,e.isElement)(k)?(0,t.default)(k):window,i=m.visualViewport,d=!(0,o.default)()&&y,u=(p.left+(d&&i?i.offsetLeft:0))/l,s=(p.top+(d&&i?i.offsetTop:0))/c,N=p.width/l,g=p.height/c;return{width:N,height:g,top:s,right:u+N,bottom:s+g,left:u,x:u,y:s}}},98310:function(I,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)),V=d(n(9252)),k=d(n(75663)),S=n(65601),y=d(n(83199)),p=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,h){var C=(0,y.default)(v,!1,h==="fixed");return C.top=C.top+v.clientTop,C.left=C.left+v.clientLeft,C.bottom=C.top+v.clientHeight,C.right=C.left+v.clientWidth,C.width=v.clientWidth,C.height=v.clientHeight,C.x=C.left,C.y=C.top,C}function s(v,h,C){return h===e.viewport?(0,m.default)((0,a.default)(v,C)):(0,S.isElement)(h)?u(h,C):(0,m.default)((0,t.default)((0,V.default)(v)))}function N(v){var h=(0,o.default)((0,p.default)(v)),C=["absolute","fixed"].indexOf((0,k.default)(v).position)>=0,b=C&&(0,S.isHTMLElement)(v)?(0,f.default)(v):v;return(0,S.isElement)(b)?h.filter(function(B){return(0,S.isElement)(B)&&(0,l.default)(B,b)&&(0,c.default)(B)!=="body"}):[]}function g(v,h,C,b){var B=h==="clippingParents"?N(v):[].concat(h),L=[].concat(B,[C]),w=L[0],T=L.reduce(function(A,x){var E=s(v,x,b);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,b));return T.width=T.right-T.left,T.height=T.bottom-T.top,T.x=T.left,T.y=T.top,T}},28770:function(I,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)),V=y(n(9252)),k=y(n(27703)),S=n(79257);function y(c){return c&&c.__esModule?c:{default:c}}function p(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)&&p(m),s=(0,V.default)(m),N=(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,k.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:N.left+g.scrollLeft-v.x,y:N.top+g.scrollTop-v.y,width:N.width,height:N.height}}},75663:function(I,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(I,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(I,r,n){"use strict";r.__esModule=!0,r.default=k;var e=V(n(9252)),a=V(n(75663)),t=V(n(94889)),o=V(n(42532)),f=n(79257);function V(S){return S&&S.__esModule?S:{default:S}}function k(S){var y,p=(0,e.default)(S),l=(0,o.default)(S),c=(y=S.ownerDocument)==null?void 0:y.body,m=(0,f.max)(p.scrollWidth,p.clientWidth,c?c.scrollWidth:0,c?c.clientWidth:0),i=(0,f.max)(p.scrollHeight,p.clientHeight,c?c.scrollHeight:0,c?c.clientHeight:0),d=-l.scrollLeft+(0,t.default)(S),u=-l.scrollTop;return(0,a.default)(c||p).direction==="rtl"&&(d+=(0,f.max)(p.clientWidth,c?c.clientWidth:0)-m),{width:m,height:i,x:d,y:u}}},89741:function(I,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}},12866:function(I,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),V=o.offsetWidth,k=o.offsetHeight;return Math.abs(f.width-V)<=1&&(V=f.width),Math.abs(f.height-k)<=1&&(k=f.height),{x:o.offsetLeft,y:o.offsetTop,width:V,height:k}}},1707:function(I,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e?(e.nodeName||"").toLowerCase():null}},3107:function(I,r,n){"use strict";r.__esModule=!0,r.default=V;var e=f(n(42532)),a=f(n(44901)),t=n(65601),o=f(n(89741));function f(k){return k&&k.__esModule?k:{default:k}}function V(k){return k===(0,a.default)(k)||!(0,t.isHTMLElement)(k)?(0,e.default)(k):(0,o.default)(k)}},29727:function(I,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)),V=S(n(16292)),k=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 p(c){var m=/firefox/i.test((0,k.default)()),i=/Trident/i.test((0,k.default)());if(i&&(0,o.isHTMLElement)(c)){var d=(0,t.default)(c);if(d.position==="fixed")return null}var u=(0,V.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||p(c)||m}},16292:function(I,r,n){"use strict";r.__esModule=!0,r.default=f;var e=o(n(1707)),a=o(n(9252)),t=n(65601);function o(V){return V&&V.__esModule?V:{default:V}}function f(V){return(0,e.default)(V)==="html"?V:V.assignedSlot||V.parentNode||((0,t.isShadowRoot)(V)?V.host:null)||(0,a.default)(V)}},87899:function(I,r,n){"use strict";r.__esModule=!0,r.default=V;var e=f(n(16292)),a=f(n(27703)),t=f(n(1707)),o=n(65601);function f(k){return k&&k.__esModule?k:{default:k}}function V(k){return["html","body","#document"].indexOf((0,t.default)(k))>=0?k.ownerDocument.body:(0,o.isHTMLElement)(k)&&(0,a.default)(k)?k:V((0,e.default)(k))}},63064:function(I,r,n){"use strict";r.__esModule=!0,r.default=V;var e=f(n(44901)),a=f(n(9252)),t=f(n(94889)),o=f(n(95294));function f(k){return k&&k.__esModule?k:{default:k}}function V(k,S){var y=(0,e.default)(k),p=(0,a.default)(k),l=y.visualViewport,c=p.clientWidth,m=p.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)(k),y:d}}},44901:function(I,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(I,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),V=f.pageXOffset,k=f.pageYOffset;return{scrollLeft:V,scrollTop:k}}},94889:function(I,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(V){return V&&V.__esModule?V:{default:V}}function f(V){return(0,e.default)((0,a.default)(V)).left+(0,t.default)(V).scrollLeft}},65601:function(I,r,n){"use strict";r.__esModule=!0,r.isElement=t,r.isHTMLElement=o,r.isShadowRoot=f;var e=a(n(44901));function a(V){return V&&V.__esModule?V:{default:V}}function t(V){var k=(0,e.default)(V).Element;return V instanceof k||V instanceof Element}function o(V){var k=(0,e.default)(V).HTMLElement;return V instanceof k||V instanceof HTMLElement}function f(V){if(typeof ShadowRoot=="undefined")return!1;var k=(0,e.default)(V).ShadowRoot;return V instanceof k||V instanceof ShadowRoot}},95294:function(I,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(I,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),V=f.overflow,k=f.overflowX,S=f.overflowY;return/auto|scroll|overlay|hidden/.test(V+S+k)}},36875:function(I,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(I,r,n){"use strict";r.__esModule=!0,r.default=V;var e=f(n(87899)),a=f(n(16292)),t=f(n(44901)),o=f(n(27703));function f(k){return k&&k.__esModule?k:{default:k}}function V(k,S){var y;S===void 0&&(S=[]);var p=(0,e.default)(k),l=p===((y=k.ownerDocument)==null?void 0:y.body),c=(0,t.default)(p),m=l?[c].concat(c.visualViewport||[],(0,o.default)(p)?p:[]):p,i=S.concat(m);return l?i:i.concat(V((0,a.default)(m)))}},37802:function(I,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],V=r.start="start",k=r.end="end",S=r.clippingParents="clippingParents",y=r.viewport="viewport",p=r.popper="popper",l=r.reference="reference",c=r.variationPlacements=f.reduce(function(B,L){return B.concat([L+"-"+V,L+"-"+k])},[]),m=r.placements=[].concat(f,[o]).reduce(function(B,L){return B.concat([L,L+"-"+V,L+"-"+k])},[]),i=r.beforeRead="beforeRead",d=r.read="read",u=r.afterRead="afterRead",s=r.beforeMain="beforeMain",N=r.main="main",g=r.afterMain="afterMain",v=r.beforeWrite="beforeWrite",h=r.write="write",C=r.afterWrite="afterWrite",b=r.modifierPhases=[i,d,u,s,N,g,v,h,C]},60028:function(I,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(k){k==="default"||k==="__esModule"||Object.prototype.hasOwnProperty.call(e,k)||k in r&&r[k]===a[k]||(r[k]=a[k])});var t=n(16055);Object.keys(t).forEach(function(k){k==="default"||k==="__esModule"||Object.prototype.hasOwnProperty.call(e,k)||k in r&&r[k]===t[k]||(r[k]=t[k])});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 V=n(22008);r.createPopperLite=V.createPopper},20637:function(I,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=t(n(1707)),a=n(65601);function t(k){return k&&k.__esModule?k:{default:k}}function o(k){var S=k.state;Object.keys(S.elements).forEach(function(y){var p=S.styles[y]||{},l=S.attributes[y]||{},c=S.elements[y];!(0,a.isHTMLElement)(c)||!(0,e.default)(c)||(Object.assign(c.style,p),Object.keys(l).forEach(function(m){var i=l[m];i===!1?c.removeAttribute(m):c.setAttribute(m,i===!0?"":i)}))})}function f(k){var S=k.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(p){var l=S.elements[p],c=S.attributes[p]||{},m=Object.keys(S.styles.hasOwnProperty(p)?S.styles[p]:y[p]),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 V=r.default={name:"applyStyles",enabled:!0,phase:"write",fn:o,effect:f,requires:["computeStyles"]}},11106:function(I,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=p(n(16275)),a=p(n(12866)),t=p(n(11848)),o=p(n(29727)),f=p(n(26608)),V=n(87415),k=p(n(41e3)),S=p(n(62605)),y=n(37802);function p(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,k.default)(typeof u!="number"?u:(0,S.default)(u,y.basePlacements))}return d}();function c(d){var u,s=d.state,N=d.name,g=d.options,v=s.elements.arrow,h=s.modifiersData.popperOffsets,C=(0,e.default)(s.placement),b=(0,f.default)(C),B=[y.left,y.right].indexOf(C)>=0,L=B?"height":"width";if(!(!v||!h)){var w=l(g.padding,s),T=(0,a.default)(v),A=b==="y"?y.top:y.left,x=b==="y"?y.bottom:y.right,E=s.rects.reference[L]+s.rects.reference[b]-h[b]-s.rects.popper[L],M=h[b]-s.rects.reference[b],R=(0,o.default)(v),O=R?b==="y"?R.clientHeight||0:R.clientWidth||0:0,D=E/2-M/2,j=w[A],U=O-T[L]-w[x],W=O/2-T[L]/2+D,K=(0,V.within)(j,W,U),G=b;s.modifiersData[N]=(u={},u[G]=K,u.centerOffset=K-W,u)}}function m(d){var u=d.state,s=d.options,N=s.element,g=N===void 0?"[data-popper-arrow]":N;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(I,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)),V=y(n(16275)),k=y(n(56918)),S=n(79257);function y(d){return d&&d.__esModule?d:{default:d}}var p={top:"auto",right:"auto",bottom:"auto",left:"auto"};function l(d,u){var s=d.x,N=d.y,g=u.devicePixelRatio||1;return{x:(0,S.round)(s*g)/g||0,y:(0,S.round)(N*g)/g||0}}function c(d){var u,s=d.popper,N=d.popperRect,g=d.placement,v=d.variation,h=d.offsets,C=d.position,b=d.gpuAcceleration,B=d.adaptive,L=d.roundOffsets,w=d.isFixed,T=h.x,A=T===void 0?0:T,x=h.y,E=x===void 0?0:x,M=typeof L=="function"?L({x:A,y:E}):{x:A,y:E};A=M.x,E=M.y;var R=h.hasOwnProperty("x"),O=h.hasOwnProperty("y"),D=e.left,j=e.top,U=window;if(B){var W=(0,a.default)(s),K="clientHeight",G="clientWidth";if(W===(0,t.default)(s)&&(W=(0,o.default)(s),(0,f.default)(W).position!=="static"&&C==="absolute"&&(K="scrollHeight",G="scrollWidth")),W=W,g===e.top||(g===e.left||g===e.right)&&v===e.end){j=e.bottom;var $=w&&W===U&&U.visualViewport?U.visualViewport.height:W[K];E-=$-N.height,E*=b?1:-1}if(g===e.left||(g===e.top||g===e.bottom)&&v===e.end){D=e.right;var z=w&&W===U&&U.visualViewport?U.visualViewport.width:W[G];A-=z-N.width,A*=b?1:-1}}var Y=Object.assign({position:C},B&&p),J=L===!0?l({x:A,y:E},(0,t.default)(s)):{x:A,y:E};if(A=J.x,E=J.y,b){var ie;return Object.assign({},Y,(ie={},ie[j]=O?"0":"",ie[D]=R?"0":"",ie.transform=(U.devicePixelRatio||1)<=1?"translate("+A+"px, "+E+"px)":"translate3d("+A+"px, "+E+"px, 0)",ie))}return Object.assign({},Y,(u={},u[j]=O?E+"px":"",u[D]=R?A+"px":"",u.transform="",u))}function m(d){var u=d.state,s=d.options,N=s.gpuAcceleration,g=N===void 0?!0:N,v=s.adaptive,h=v===void 0?!0:v,C=s.roundOffsets,b=C===void 0?!0:C,B={placement:(0,V.default)(u.placement),variation:(0,k.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:h,roundOffsets:b})))),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:b})))),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(I,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=a(n(44901));function a(V){return V&&V.__esModule?V:{default:V}}var t={passive:!0};function o(V){var k=V.state,S=V.instance,y=V.options,p=y.scroll,l=p===void 0?!0:p,c=y.resize,m=c===void 0?!0:c,i=(0,e.default)(k.elements.popper),d=[].concat(k.scrollParents.reference,k.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 V(){}return V}(),effect:o,data:{}}},51825:function(I,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)),V=n(37802),k=S(n(56918));function S(c){return c&&c.__esModule?c:{default:c}}function y(c){if((0,a.default)(c)===V.auto)return[];var m=(0,e.default)(c);return[(0,t.default)(c),m,(0,t.default)(m)]}function p(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,N=i.altAxis,g=N===void 0?!0:N,v=i.fallbackPlacements,h=i.padding,C=i.boundary,b=i.rootBoundary,B=i.altBoundary,L=i.flipVariations,w=L===void 0?!0:L,T=i.allowedAutoPlacements,A=m.options.placement,x=(0,a.default)(A),E=x===A,M=v||(E||!w?[(0,e.default)(A)]:y(A)),R=[A].concat(M).reduce(function(ae,q){return ae.concat((0,a.default)(q)===V.auto?(0,f.default)(m,{placement:q,boundary:C,rootBoundary:b,padding:h,flipVariations:w,allowedAutoPlacements:T}):q)},[]),O=m.rects.reference,D=m.rects.popper,j=new Map,U=!0,W=R[0],K=0;K=0,J=Y?"width":"height",ie=(0,o.default)(m,{placement:G,boundary:C,rootBoundary:b,altBoundary:B,padding:h}),re=Y?z?V.right:V.left:z?V.bottom:V.top;O[J]>D[J]&&(re=(0,e.default)(re));var de=(0,e.default)(re),ve=[];if(s&&ve.push(ie[$]<=0),g&&ve.push(ie[re]<=0,ie[de]<=0),ve.every(function(ae){return ae})){W=G,U=!1;break}j.set(G,ve)}if(U)for(var ye=w?3:1,Le=function(){function ae(q){var se=R.find(function(me){var te=j.get(me);if(te)return te.slice(0,q).every(function(be){return be})});if(se)return W=se,"break"}return ae}(),pe=ye;pe>0;pe--){var ne=Le(pe);if(ne==="break")break}m.placement!==W&&(m.modifiersData[d]._skip=!0,m.placement=W,m.reset=!0)}}var l=r.default={name:"flip",enabled:!0,phase:"main",fn:p,requiresIfExists:["offset"],data:{_skip:!1}}},44677:function(I,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,p){return p===void 0&&(p={x:0,y:0}),{top:S.top-y.height-p.y,right:S.right-y.width+p.x,bottom:S.bottom-y.height+p.y,left:S.left-y.width-p.x}}function f(S){return[e.top,e.right,e.bottom,e.left].some(function(y){return S[y]>=0})}function V(S){var y=S.state,p=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),N=f(u),g=f(s);y.modifiersData[p]={referenceClippingOffsets:u,popperEscapeOffsets:s,isReferenceHidden:N,hasPopperEscaped:g},y.attributes.popper=Object.assign({},y.attributes.popper,{"data-popper-reference-hidden":N,"data-popper-escaped":g})}var k=r.default={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:V}},16055:function(I,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=p(n(20637));r.applyStyles=e.default;var a=p(n(11106));r.arrow=a.default;var t=p(n(85445));r.computeStyles=t.default;var o=p(n(21068));r.eventListeners=o.default;var f=p(n(51825));r.flip=f.default;var V=p(n(44677));r.hide=V.default;var k=p(n(34331));r.offset=k.default;var S=p(n(56154));r.popperOffsets=S.default;var y=p(n(69770));r.preventOverflow=y.default;function p(l){return l&&l.__esModule?l:{default:l}}},34331:function(I,r,n){"use strict";r.__esModule=!0,r.default=void 0,r.distanceAndSkiddingToXY=o;var e=t(n(16275)),a=n(37802);function t(k){return k&&k.__esModule?k:{default:k}}function o(k,S,y){var p=(0,e.default)(k),l=[a.left,a.top].indexOf(p)>=0?-1:1,c=typeof y=="function"?y(Object.assign({},S,{placement:k})):y,m=c[0],i=c[1];return m=m||0,i=(i||0)*l,[a.left,a.right].indexOf(p)>=0?{x:i,y:m}:{x:m,y:i}}function f(k){var S=k.state,y=k.options,p=k.name,l=y.offset,c=l===void 0?[0,0]:l,m=a.placements.reduce(function(s,N){return s[N]=o(N,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[p]=m}var V=r.default={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:f}},56154:function(I,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 V=f.state,k=f.name;V.modifiersData[k]=(0,e.default)({reference:V.rects.reference,element:V.rects.popper,strategy:"absolute",placement:V.placement})}var o=r.default={name:"popperOffsets",enabled:!0,phase:"read",fn:t,data:{}}},69770:function(I,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),V=c(n(12866)),k=c(n(29727)),S=c(n(4709)),y=c(n(56918)),p=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,N=d.name,g=s.mainAxis,v=g===void 0?!0:g,h=s.altAxis,C=h===void 0?!1:h,b=s.boundary,B=s.rootBoundary,L=s.altBoundary,w=s.padding,T=s.tether,A=T===void 0?!0:T,x=s.tetherOffset,E=x===void 0?0:x,M=(0,S.default)(u,{boundary:b,rootBoundary:B,padding:w,altBoundary:L}),R=(0,a.default)(u.placement),O=(0,y.default)(u.placement),D=!O,j=(0,t.default)(R),U=(0,o.default)(j),W=u.modifiersData.popperOffsets,K=u.rects.reference,G=u.rects.popper,$=typeof E=="function"?E(Object.assign({},u.rects,{placement:u.placement})):E,z=typeof $=="number"?{mainAxis:$,altAxis:$}:Object.assign({mainAxis:0,altAxis:0},$),Y=u.modifiersData.offset?u.modifiersData.offset[u.placement]:null,J={x:0,y:0};if(W){if(v){var ie,re=j==="y"?e.top:e.left,de=j==="y"?e.bottom:e.right,ve=j==="y"?"height":"width",ye=W[j],Le=ye+M[re],pe=ye-M[de],ne=A?-G[ve]/2:0,ae=O===e.start?K[ve]:G[ve],q=O===e.start?-G[ve]:-K[ve],se=u.elements.arrow,me=A&&se?(0,V.default)(se):{width:0,height:0},te=u.modifiersData["arrow#persistent"]?u.modifiersData["arrow#persistent"].padding:(0,p.default)(),be=te[re],fe=te[de],ge=(0,f.within)(0,K[ve],me[ve]),ke=D?K[ve]/2-ne-ge-be-z.mainAxis:ae-ge-be-z.mainAxis,Ce=D?-K[ve]/2+ne+ge+fe+z.mainAxis:q+ge+fe+z.mainAxis,Se=u.elements.arrow&&(0,k.default)(u.elements.arrow),we=Se?j==="y"?Se.clientTop||0:Se.clientLeft||0:0,xe=(ie=Y==null?void 0:Y[j])!=null?ie:0,Pe=ye+ke-xe-we,Ue=ye+Ce-xe,Ve=(0,f.within)(A?(0,l.min)(Le,Pe):Le,ye,A?(0,l.max)(pe,Ue):pe);W[j]=Ve,J[j]=Ve-ye}if(C){var oe,le=j==="x"?e.top:e.left,he=j==="x"?e.bottom:e.right,ue=W[U],Ne=U==="y"?"height":"width",Ae=ue+M[le],De=ue-M[he],je=[e.top,e.left].indexOf(R)!==-1,Ke=(oe=Y==null?void 0:Y[U])!=null?oe:0,We=je?Ae:ue-K[Ne]-G[Ne]-Ke+z.altAxis,He=je?ue+K[Ne]+G[Ne]-Ke-z.altAxis:De,_e=A&&je?(0,f.withinMaxClamp)(We,ue,He):(0,f.within)(A?We:Ae,ue,A?He:De);W[U]=_e,J[U]=_e-ue}u.modifiersData[N]=J}}var i=r.default={name:"preventOverflow",enabled:!0,phase:"main",fn:m,requiresIfExists:["offset"]}},22008:function(I,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=V(n(21068)),t=V(n(56154)),o=V(n(85445)),f=V(n(20637));function V(y){return y&&y.__esModule?y:{default:y}}var k=r.defaultModifiers=[a.default,t.default,o.default,f.default],S=r.createPopper=(0,e.popperGenerator)({defaultModifiers:k})},98420:function(I,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)),V=i(n(20637)),k=i(n(34331)),S=i(n(51825)),y=i(n(69770)),p=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,V.default,k.default,S.default,y.default,p.default,l.default],u=r.createPopperLite=r.createPopper=(0,a.popperGenerator)({defaultModifiers:d})},36705:function(I,r,n){"use strict";r.__esModule=!0,r.default=V;var e=f(n(56918)),a=n(37802),t=f(n(4709)),o=f(n(16275));function f(k){return k&&k.__esModule?k:{default:k}}function V(k,S){S===void 0&&(S={});var y=S,p=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)(p),N=s?i?a.variationPlacements:a.variationPlacements.filter(function(h){return(0,e.default)(h)===s}):a.basePlacements,g=N.filter(function(h){return u.indexOf(h)>=0});g.length===0&&(g=N);var v=g.reduce(function(h,C){return h[C]=(0,t.default)(k,{placement:C,boundary:l,rootBoundary:c,padding:m})[(0,o.default)(C)],h},{});return Object.keys(v).sort(function(h,C){return v[h]-v[C]})}},49306:function(I,r,n){"use strict";r.__esModule=!0,r.default=V;var e=f(n(16275)),a=f(n(56918)),t=f(n(26608)),o=n(37802);function f(k){return k&&k.__esModule?k:{default:k}}function V(k){var S=k.reference,y=k.element,p=k.placement,l=p?(0,e.default)(p):null,c=p?(0,a.default)(p):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(I,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(I,r,n){"use strict";r.__esModule=!0,r.default=l;var e=p(n(98310)),a=p(n(9252)),t=p(n(83199)),o=p(n(49306)),f=p(n(21194)),V=n(37802),k=n(65601),S=p(n(41e3)),y=p(n(62605));function p(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,N=s===void 0?c.strategy:s,g=i.boundary,v=g===void 0?V.clippingParents:g,h=i.rootBoundary,C=h===void 0?V.viewport:h,b=i.elementContext,B=b===void 0?V.popper:b,L=i.altBoundary,w=L===void 0?!1:L,T=i.padding,A=T===void 0?0:T,x=(0,S.default)(typeof A!="number"?A:(0,y.default)(A,V.basePlacements)),E=B===V.popper?V.reference:V.popper,M=c.rects.popper,R=c.elements[w?E:B],O=(0,e.default)((0,k.isElement)(R)?R:R.contextElement||(0,a.default)(c.elements.popper),v,C,N),D=(0,t.default)(c.elements.reference),j=(0,o.default)({reference:D,element:M,strategy:"absolute",placement:u}),U=(0,f.default)(Object.assign({},M,j)),W=B===V.popper?U:D,K={top:O.top-W.top+x.top,bottom:W.bottom-O.bottom+x.bottom,left:O.left-W.left+x.left,right:W.right-O.right+x.right},G=c.modifiersData.offset;if(B===V.popper&&G){var $=G[u];Object.keys(K).forEach(function(z){var Y=[V.right,V.bottom].indexOf(z)>=0?1:-1,J=[V.top,V.bottom].indexOf(z)>=0?"y":"x";K[z]+=$[J]*Y})}return K}},62605:function(I,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(I,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e==="x"?"y":"x"}},16275:function(I,r,n){"use strict";r.__esModule=!0,r.default=a;var e=n(37802);function a(t){return t.split("-")[0]}},26143:function(I,r){"use strict";r.__esModule=!0,r.default=n;function n(){return{top:0,right:0,bottom:0,left:0}}},26608:function(I,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}},96346:function(I,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(I,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(I,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e.split("-")[1]}},79257:function(I,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(I,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(I,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(I,r,n){"use strict";r.__esModule=!0,r.default=t;var e=n(37802);function a(o){var f=new Map,V=new Set,k=[];o.forEach(function(y){f.set(y.name,y)});function S(y){V.add(y.name);var p=[].concat(y.requires||[],y.requiresIfExists||[]);p.forEach(function(l){if(!V.has(l)){var c=f.get(l);c&&S(c)}}),k.push(y)}return o.forEach(function(y){V.has(y.name)||S(y)}),k}function t(o){var f=a(o);return e.modifierPhases.reduce(function(V,k){return V.concat(f.filter(function(S){return S.phase===k}))},[])}},21194:function(I,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(I,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(I,r,n){"use strict";r.__esModule=!0,r.within=a,r.withinMaxClamp=t;var e=n(79257);function a(o,f,V){return(0,e.max)(o,(0,e.min)(f,V))}function t(o,f,V){var k=a(o,f,V);return k>V?V:k}},60208:function(I,r){"use strict";r.__esModule=!0,r.Fragment=r.EMPTY_OBJ=r.Component=void 0,r._CI=Et,r._HI=Le,r._M=ze,r._MCCC=Pt,r._ME=Ot,r._MFCC=Rt,r._MP=xt,r._MR=ot,r._RFC=vt,r.__render=Ft,r.createComponentVNode=K,r.createFragment=$,r.createPortal=re,r.createRef=Yt,r.createRenderer=kn,r.createTextVNode=G,r.createVNode=D,r.directClone=J,r.findDOMfromVNode=C,r.forwardRef=Xt,r.getFlagsForElementVnode=ve,r.linkEvent=p,r.normalizeProps=z,r.options=void 0,r.render=Ut,r.rerender=Kt,r.version=void 0;var n=Array.isArray;function e(P){var F=typeof P;return F==="string"||F==="number"}function a(P){return P==null}function t(P){return P===null||P===!1||P===!0||P===void 0}function o(P){return typeof P=="function"}function f(P){return typeof P=="string"}function V(P){return typeof P=="number"}function k(P){return P===null}function S(P){return P===void 0}function y(P,F){var H={};if(P)for(var _ in P)H[_]=P[_];if(F)for(var Q in F)H[Q]=F[Q];return H}function p(P,F){return o(F)?{data:P,event:F}:null}function l(P){return!k(P)&&typeof P=="object"}var c=r.EMPTY_OBJ={},m=r.Fragment="$F";function i(P){return P.substr(2).toLowerCase()}function d(P,F){P.appendChild(F)}function u(P,F,H){k(H)?d(P,F):P.insertBefore(F,H)}function s(P,F){return F?document.createElementNS("http://www.w3.org/2000/svg",P):document.createElement(P)}function N(P,F,H){P.replaceChild(F,H)}function g(P,F){P.removeChild(F)}function v(P){for(var F=0;F0,Be=k(ce),Ie=f(ce)&&ce[0]===R;Te||Be||Ie?(H=H||F.slice(0,Z),(Te||Ie)&&(ee=J(ee)),(Be||Ie)&&(ee.key=R+Z),H.push(ee)):H&&H.push(ee),ee.flags|=65536}}H=H||F,H.length===0?_=1:_=8}else H=F,H.flags|=65536,F.flags&81920&&(H=J(F)),_=2;return P.children=H,P.childFlags=_,P}function Le(P){return t(P)||e(P)?G(P,null):n(P)?$(P,0,null):P.flags&16384?J(P):P}var pe="http://www.w3.org/1999/xlink",ne="http://www.w3.org/XML/1998/namespace",ae={"xlink:actuate":pe,"xlink:arcrole":pe,"xlink:href":pe,"xlink:role":pe,"xlink:show":pe,"xlink:title":pe,"xlink:type":pe,"xml:base":ne,"xml:lang":ne,"xml:space":ne};function q(P){return{onClick:P,onDblClick:P,onFocusIn:P,onFocusOut:P,onKeyDown:P,onKeyPress:P,onKeyUp:P,onMouseDown:P,onMouseMove:P,onMouseUp:P,onTouchEnd:P,onTouchMove:P,onTouchStart:P}}var se=q(0),me=q(null),te=q(!0);function be(P,F){var H=F.$EV;return H||(H=F.$EV=q(null)),H[P]||++se[P]===1&&(me[P]=oe(P)),H}function fe(P,F){var H=F.$EV;H&&H[P]&&(--se[P]===0&&(document.removeEventListener(i(P),me[P]),me[P]=null),H[P]=null)}function ge(P,F,H,_){if(o(H))be(P,_)[P]=H;else if(l(H)){if(x(F,H))return;be(P,_)[P]=H}else fe(P,_)}function ke(P){return o(P.composedPath)?P.composedPath()[0]:P.target}function Ce(P,F,H,_){var Q=ke(P);do{if(F&&Q.disabled)return;var Z=Q.$EV;if(Z){var ee=Z[H];if(ee&&(_.dom=Q,ee.event?ee.event(ee.data,P):ee(P),P.cancelBubble))return}Q=Q.parentNode}while(!k(Q))}function Se(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function we(){return this.defaultPrevented}function xe(){return this.cancelBubble}function Pe(P){var F={dom:document};return P.isDefaultPrevented=we,P.isPropagationStopped=xe,P.stopPropagation=Se,Object.defineProperty(P,"currentTarget",{configurable:!0,get:function(){function H(){return F.dom}return H}()}),F}function Ue(P){return function(F){if(F.button!==0){F.stopPropagation();return}Ce(F,!0,P,Pe(F))}}function Ve(P){return function(F){Ce(F,!1,P,Pe(F))}}function oe(P){var F=P==="onClick"||P==="onDblClick"?Ue(P):Ve(P);return document.addEventListener(i(P),F),F}function le(P,F){var H=document.createElement("i");return H.innerHTML=F,H.innerHTML===P.innerHTML}function he(P,F,H){if(P[F]){var _=P[F];_.event?_.event(_.data,H):_(H)}else{var Q=F.toLowerCase();P[Q]&&P[Q](H)}}function ue(P,F){var H=function(Q){var Z=this.$V;if(Z){var ee=Z.props||c,ce=Z.dom;if(f(P))he(ee,P,Q);else for(var Te=0;Te-1&&F.options[Z]&&(ce=F.options[Z].value),H&&a(ce)&&(ce=P.defaultValue),_e(_,ce)}}var Bt=ue("onInput",pt),Lt=ue("onChange");function It(P,F){Ne(P,"input",Bt),F.onChange&&Ne(P,"change",Lt)}function pt(P,F,H){var _=P.value,Q=F.value;if(a(_)){if(H){var Z=P.defaultValue;!a(Z)&&Z!==Q&&(F.defaultValue=Z,F.value=Z)}}else Q!==_&&(F.defaultValue=_,F.value=_)}function wt(P,F,H,_,Q,Z){P&64?He(_,H):P&256?ft(_,H,Q,F):P&128&&pt(_,H,Q),Z&&(H.$V=F)}function _t(P,F,H){P&64?We(F,H):P&256?St(F):P&128&&It(F,H)}function Tt(P){return P.type&&Ae(P.type)?!a(P.checked):!a(P.value)}function Yt(){return{current:null}}function Xt(P){return{render:P}}function lt(P){P&&!M(P,null)&&P.current&&(P.current=null)}function ot(P,F,H){P&&(o(P)||P.current!==void 0)&&H.push(function(){!M(P,F)&&P.current!==void 0&&(P.current=F)})}function Xe(P,F){Je(P),b(P,F)}function Je(P){var F=P.flags,H=P.children,_;if(F&481){_=P.ref;var Q=P.props;lt(_);var Z=P.childFlags;if(!k(Q))for(var ee=Object.keys(Q),ce=0,Te=ee.length;ce0;ee&&(Z=Tt(H),Z&&_t(F,_,H));for(var ce in H)ht(ce,null,H[ce],_,Q,Z,null);ee&&wt(F,P,_,H,!0,Z)}function At(P,F,H){var _=Le(P.render(F,P.state,H)),Q=H;return o(P.getChildContext)&&(Q=y(H,P.getChildContext())),P.$CX=Q,_}function Et(P,F,H,_,Q,Z){var ee=new F(H,_),ce=ee.$N=!!(F.getDerivedStateFromProps||ee.getSnapshotBeforeUpdate);if(ee.$SVG=Q,ee.$L=Z,P.children=ee,ee.$BS=!1,ee.context=_,ee.props===c&&(ee.props=H),ce)ee.state=L(ee,H,ee.state);else if(o(ee.componentWillMount)){ee.$BR=!0,ee.componentWillMount();var Te=ee.$PS;if(!k(Te)){var Be=ee.state;if(k(Be))ee.state=Te;else for(var Ie in Te)Be[Ie]=Te[Ie];ee.$PS=null}ee.$BR=!1}return ee.$LI=At(ee,H,_),ee}function vt(P,F){var H=P.props||c;return P.flags&32768?P.type.render(H,P.ref,F):P.type(H,F)}function ze(P,F,H,_,Q,Z){var ee=P.flags|=16384;ee&481?Ot(P,F,H,_,Q,Z):ee&4?nn(P,F,H,_,Q,Z):ee&8?(on(P,F,H,_,Q,Z),Rt(P,Z)):ee&512||ee&16?Mt(P,F,Q):ee&8192?tn(P,H,F,_,Q,Z):ee&1024&&en(P,H,F,Q,Z)}function en(P,F,H,_,Q){ze(P.children,P.ref,F,!1,null,Q);var Z=ie();Mt(Z,H,_),P.dom=Z.dom}function tn(P,F,H,_,Q,Z){var ee=P.children,ce=P.childFlags;ce&12&&ee.length===0&&(ce=P.childFlags=2,ee=P.children=ie()),ce===2?ze(ee,H,F,_,Q,Z):nt(ee,H,F,_,Q,Z)}function Mt(P,F,H){var _=P.dom=document.createTextNode(P.children);k(F)||u(F,_,H)}function Ot(P,F,H,_,Q,Z){var ee=P.flags,ce=P.props,Te=P.className,Be=P.childFlags,Ie=P.dom=s(P.type,_=_||(ee&32)>0),Ee=P.children;if(!a(Te)&&Te!==""&&(_?Ie.setAttribute("class",Te):Ie.className=Te),Be===16)A(Ie,Ee);else if(Be!==1){var Oe=_&&P.type!=="foreignObject";Be===2?(Ee.flags&16384&&(P.children=Ee=J(Ee)),ze(Ee,Ie,H,Oe,null,Z)):(Be===8||Be===4)&&nt(Ee,Ie,H,Oe,null,Z)}k(F)||u(F,Ie,Q),k(ce)||xt(P,ee,ce,Ie,_),ot(P.ref,Ie,Z)}function nt(P,F,H,_,Q,Z){for(var ee=0;eeOe)&&(Ie=C(ee[Oe-1],!1).nextSibling)}Ct(Te,Be,ee,ce,H,_,Q,Ie,P,Z)}function sn(P,F,H,_){var Q=P.ref,Z=F.ref,ee=F.children;if(Ct(P.childFlags,F.childFlags,P.children,ee,Q,H,!1,null,P,_),F.dom=P.dom,Q!==Z&&!t(ee)){var ce=ee.dom;g(Q,ce),d(Z,ce)}}function mn(P,F,H,_,Q,Z){var ee=F.dom=P.dom,ce=P.props,Te=F.props,Be=!1,Ie=!1,Ee;if(_=_||(Q&32)>0,ce!==Te){var Oe=ce||c;if(Ee=Te||c,Ee!==c){Be=(Q&448)>0,Be&&(Ie=Tt(Ee));for(var Fe in Ee){var Me=Oe[Fe],$e=Ee[Fe];Me!==$e&&ht(Fe,Me,$e,ee,_,Ie,P)}}if(Oe!==c)for(var Re in Oe)a(Ee[Re])&&!a(Oe[Re])&&ht(Re,Oe[Re],null,ee,_,Ie,P)}var et=F.children,Ye=F.className;P.className!==Ye&&(a(Ye)?ee.removeAttribute("class"):_?ee.setAttribute("class",Ye):ee.className=Ye),Q&4096?un(ee,et):Ct(P.childFlags,F.childFlags,P.children,et,ee,H,_&&F.type!=="foreignObject",null,P,Z),Be&&wt(Q,F,ee,Ee,!1,Ie);var at=F.ref,Qe=P.ref;Qe!==at&&(lt(Qe),ot(at,ee,Z))}function fn(P,F,H,_,Q,Z){Je(P),nt(F,H,_,Q,C(P,!0),Z),b(P,H)}function Ct(P,F,H,_,Q,Z,ee,ce,Te,Be){switch(P){case 2:switch(F){case 2:Ze(H,_,Q,Z,ee,ce,Be);break;case 1:Xe(H,Q);break;case 16:Je(H),A(Q,_);break;default:fn(H,_,Q,Z,ee,Be);break}break;case 1:switch(F){case 2:ze(_,Q,Z,ee,ce,Be);break;case 1:break;case 16:A(Q,_);break;default:nt(_,Q,Z,ee,ce,Be);break}break;case 16:switch(F){case 16:ln(H,_,Q);break;case 2:ut(Q),ze(_,Q,Z,ee,ce,Be);break;case 1:ut(Q);break;default:ut(Q),nt(_,Q,Z,ee,ce,Be);break}break;default:switch(F){case 16:rt(H),A(Q,_);break;case 2:dt(Q,Te,H),ze(_,Q,Z,ee,ce,Be);break;case 1:dt(Q,Te,H);break;default:var Ie=H.length|0,Ee=_.length|0;Ie===0?Ee>0&&nt(_,Q,Z,ee,ce,Be):Ee===0?dt(Q,Te,H):F===8&&P===8?Nn(H,_,Q,Z,ee,Ie,Ee,ce,Te,Be):gn(H,_,Q,Z,ee,Ie,Ee,ce,Be);break}break}}function pn(P,F,H,_,Q){Q.push(function(){P.componentDidUpdate(F,H,_)})}function Dt(P,F,H,_,Q,Z,ee,ce,Te){var Be=P.state,Ie=P.props,Ee=!!P.$N,Oe=o(P.shouldComponentUpdate);if(Ee&&(F=L(P,H,F!==Be?y(Be,F):F)),ee||!Oe||Oe&&P.shouldComponentUpdate(H,F,Q)){!Ee&&o(P.componentWillUpdate)&&P.componentWillUpdate(H,F,Q),P.props=H,P.state=F,P.context=Q;var Fe=null,Me=At(P,H,Q);Ee&&o(P.getSnapshotBeforeUpdate)&&(Fe=P.getSnapshotBeforeUpdate(Ie,Be)),Ze(P.$LI,Me,_,P.$CX,Z,ce,Te),P.$LI=Me,o(P.componentDidUpdate)&&pn(P,Ie,Be,Fe,Te)}else P.props=H,P.state=F,P.context=Q}function hn(P,F,H,_,Q,Z,ee){var ce=F.children=P.children;if(!k(ce)){ce.$L=ee;var Te=F.props||c,Be=F.ref,Ie=P.ref,Ee=ce.state;if(!ce.$N){if(o(ce.componentWillReceiveProps)){if(ce.$BR=!0,ce.componentWillReceiveProps(Te,_),ce.$UN)return;ce.$BR=!1}k(ce.$PS)||(Ee=y(Ee,ce.$PS),ce.$PS=null)}Dt(ce,Ee,Te,H,_,Q,!1,Z,ee),Ie!==Be&&(lt(Ie),ot(Be,ce,ee))}}function vn(P,F,H,_,Q,Z,ee){var ce=!0,Te=F.props||c,Be=F.ref,Ie=P.props,Ee=!a(Be),Oe=P.children;if(Ee&&o(Be.onComponentShouldUpdate)&&(ce=Be.onComponentShouldUpdate(Ie,Te)),ce!==!1){Ee&&o(Be.onComponentWillUpdate)&&Be.onComponentWillUpdate(Ie,Te);var Fe=Le(vt(F,_));Ze(Oe,Fe,H,_,Q,Z,ee),F.children=Fe,Ee&&o(Be.onComponentDidUpdate)&&Be.onComponentDidUpdate(Ie,Te)}else F.children=Oe}function Cn(P,F){var H=F.children,_=F.dom=P.dom;H!==P.children&&(_.nodeValue=H)}function gn(P,F,H,_,Q,Z,ee,ce,Te){for(var Be=Z>ee?ee:Z,Ie=0,Ee,Oe;Ieee)for(Ie=Be;IeIe||Oe>Ee)break e;Fe=P[Oe],Me=F[Oe]}for(Fe=P[Ie],Me=F[Ee];Fe.key===Me.key;){if(Me.flags&16384&&(F[Ee]=Me=J(Me)),Ze(Fe,Me,H,_,Q,ce,Be),P[Ie]=Me,Ie--,Ee--,Oe>Ie||Oe>Ee)break e;Fe=P[Ie],Me=F[Ee]}}if(Oe>Ie){if(Oe<=Ee)for($e=Ee+1,Re=$eEe)for(;Oe<=Ie;)Xe(P[Oe++],H);else Vn(P,F,_,Z,ee,Ie,Ee,Oe,H,Q,ce,Te,Be)}function Vn(P,F,H,_,Q,Z,ee,ce,Te,Be,Ie,Ee,Oe){var Fe,Me,$e,Re=0,et=ce,Ye=ce,at=Z-ce+1,Qe=ee-ce+1,ct=new Int32Array(Qe+1),tt=at===_,Vt=!1,Ge=0,it=0;if(Q<4||(at|Qe)<32)for(Re=et;Re<=Z;++Re)if(Fe=P[Re],itce?Vt=!0:Ge=ce,Me.flags&16384&&(F[ce]=Me=J(Me)),Ze(Fe,Me,Te,H,Be,Ie,Oe),++it;break}!tt&&ce>ee&&Xe(Fe,Te)}else tt||Xe(Fe,Te);else{var zt={};for(Re=Ye;Re<=ee;++Re)zt[F[Re].key]=Re;for(Re=et;Re<=Z;++Re)if(Fe=P[Re],itet;)Xe(P[et++],Te);ct[ce-Ye]=Re+1,Ge>ce?Vt=!0:Ge=ce,Me=F[ce],Me.flags&16384&&(F[ce]=Me=J(Me)),Ze(Fe,Me,Te,H,Be,Ie,Oe),++it}else tt||Xe(Fe,Te);else tt||Xe(Fe,Te)}if(tt)dt(Te,Ee,P),nt(F,Te,H,Be,Ie,Oe);else if(Vt){var $t=bn(ct);for(ce=$t.length-1,Re=Qe-1;Re>=0;Re--)ct[Re]===0?(Ge=Re+Ye,Me=F[Ge],Me.flags&16384&&(F[Ge]=Me=J(Me)),$e=Ge+1,ze(Me,Te,H,Be,$e=0;Re--)ct[Re]===0&&(Ge=Re+Ye,Me=F[Ge],Me.flags&16384&&(F[Ge]=Me=J(Me)),$e=Ge+1,ze(Me,Te,H,Be,$ejt&&(jt=Te,qe=new Int32Array(Te),st=new Int32Array(Te));H>1,P[qe[ce]]0&&(st[H]=qe[Z-1]),qe[Z]=H)}Z=Q+1;var Be=new Int32Array(Z);for(ee=qe[Z-1];Z-- >0;)Be[Z]=ee,ee=st[ee],qe[Z]=0;return Be}var yn=typeof document!="undefined";yn&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null);function Ft(P,F,H,_){var Q=[],Z=F.$V;w.v=!0,a(Z)?a(P)||(P.flags&16384&&(P=J(P)),ze(P,F,_,!1,null,Q),F.$V=P,Z=P):a(P)?(Xe(Z,F),F.$V=null):(P.flags&16384&&(P=J(P)),Ze(Z,P,F,_,!1,null,Q),Z=F.$V=P),v(Q),w.v=!1,o(H)&&H(),o(T.renderComplete)&&T.renderComplete(Z,F)}function Ut(P,F,H,_){H===void 0&&(H=null),_===void 0&&(_=c),Ft(P,F,H,_)}function kn(P){return function(){function F(H,_,Q,Z){P||(P=H),Ut(_,P,Q,Z)}return F}()}var mt=[],Sn=typeof Promise!="undefined"?Promise.resolve().then.bind(Promise.resolve()):function(P){window.setTimeout(P,0)},gt=!1;function Wt(P,F,H,_){var Q=P.$PS;if(o(F)&&(F=F(Q?y(P.state,Q):P.state,P.props,P.context)),a(Q))P.$PS=F;else for(var Z in F)Q[Z]=F[Z];if(P.$BR)o(H)&&P.$L.push(H.bind(P));else{if(!w.v&&mt.length===0){Ht(P,_),o(H)&&H.call(P);return}if(mt.indexOf(P)===-1&&mt.push(P),_&&(P.$F=!0),gt||(gt=!0,Sn(Kt)),o(H)){var ee=P.$QU;ee||(ee=P.$QU=[]),ee.push(H)}}}function Bn(P){for(var F=P.$QU,H=0;H=0;--W){var K=this.tryEntries[W],G=K.completion;if(K.tryLoc==="root")return U("end");if(K.tryLoc<=this.prev){var $=a.call(K,"catchLoc"),z=a.call(K,"finallyLoc");if($&&z){if(this.prev=0;--U){var W=this.tryEntries[U];if(W.tryLoc<=this.prev&&a.call(W,"finallyLoc")&&this.prev=0;--j){var U=this.tryEntries[j];if(U.finallyLoc===D)return this.complete(U.completion,U.afterLoc),x(U),u}}return O}(),catch:function(){function O(D){for(var j=this.tryEntries.length-1;j>=0;--j){var U=this.tryEntries[j];if(U.tryLoc===D){var W=U.completion;if(W.type==="throw"){var K=W.arg;x(U)}return K}}throw new Error("illegal catch attempt")}return O}(),delegateYield:function(){function O(D,j,U){return this.delegate={iterator:M(D),resultName:j,nextLoc:U},this.method==="next"&&(this.arg=o),u}return O}()},n}(I.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(I,r){return r=r||{},new Promise(function(n,e){var a=new XMLHttpRequest,t=[],o={},f=function(){function k(){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:k,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 k}();for(var V in a.open(r.method||"get",I,!0),a.onload=function(){a.getAllResponseHeaders().toLowerCase().replace(/^(.+?):/gm,function(k,S){o[S]||t.push(o[S]=S)}),n(f())},a.onerror=e,a.withCredentials=r.credentials=="include",r.headers)a.setRequestHeader(V,r.headers[V]);a.send(r.body||null)})})},72026:function(I,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,N){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))||N&&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,N){if(s){if(typeof s=="string")return a(s,N);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,N)}}function a(s,N){(N==null||N>s.length)&&(N=s.length);for(var g=0,v=new Array(N);gL)return 1}return 0},y=r.sortBy=function(){function s(){for(var V=arguments.length,g=new Array(V),v=0;vL)return 1}return 0},y=r.sortBy=function(){function s(){for(var N=arguments.length,g=new Array(N),v=0;v1?N-1:0),S=1;S1?V-1:0),S=1;S1?S-1:0),p=1;p1?y-1:0),l=1;l1?S-1:0),p=1;p1?y-1:0),l=1;ll?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,p,l){return(y-p)/(l-p)}return S}(),t=r.round=function(){function S(y,p){if(!y||isNaN(y))return y;var l,c,m,i;return p|=0,l=Math.pow(10,p),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,p){return p===void 0&&(p=0),Number(y).toFixed(Math.max(p,0))}return S}(),f=r.inRange=function(){function S(y,p){return p&&y>=p[0]&&y<=p[1]}return S}(),N=r.keyOfMatchingRange=function(){function S(y,p){for(var l=0,c=Object.keys(p);ll?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,p,l){return(y-p)/(l-p)}return S}(),t=r.round=function(){function S(y,p){if(!y||isNaN(y))return y;var l,c,m,i;return p|=0,l=Math.pow(10,p),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,p){return p===void 0&&(p=0),Number(y).toFixed(Math.max(p,0))}return S}(),f=r.inRange=function(){function S(y,p){return p&&y>=p[0]&&y<=p[1]}return S}(),V=r.keyOfMatchingRange=function(){function S(y,p){for(var l=0,c=Object.keys(p);l1?i-1:0),u=1;u1?b-1:0),L=1;L=0;--me){var te=this.tryEntries[me],be=te.completion;if(te.tryLoc==="root")return se("end");if(te.tryLoc<=this.prev){var fe=C.call(te,"catchLoc"),ge=C.call(te,"finallyLoc");if(fe&&ge){if(this.prev=0;--se){var me=this.tryEntries[se];if(me.tryLoc<=this.prev&&C.call(me,"finallyLoc")&&this.prev=0;--q){var se=this.tryEntries[q];if(se.finallyLoc===ae)return this.complete(se.completion,se.afterLoc),ye(se),j}}return ne}(),catch:function(){function ne(ae){for(var q=this.tryEntries.length-1;q>=0;--q){var se=this.tryEntries[q];if(se.tryLoc===ae){var me=se.completion;if(me.type==="throw"){var te=me.arg;ye(se)}return te}}throw new Error("illegal catch attempt")}return ne}(),delegateYield:function(){function ne(ae,q,se){return this.delegate={iterator:pe(ae),resultName:q,nextLoc:se},this.method==="next"&&(this.arg=g),j}return ne}()},v}function e(g,v,h,C,b,B,L){try{var w=g[B](L),T=w.value}catch(A){h(A);return}w.done?v(T):Promise.resolve(T).then(C,b)}function a(g){return function(){var v=this,h=arguments;return new Promise(function(C,b){var B=g.apply(v,h);function L(T){e(B,C,b,L,w,"next",T)}function w(T){e(B,C,b,L,w,"throw",T)}L(void 0)})}}/** + */var a=r.createStore=function(){function S(y,p){if(p)return p(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 N=0;N1?i-1:0),u=1;u1?b-1:0),L=1;L=0;--me){var te=this.tryEntries[me],be=te.completion;if(te.tryLoc==="root")return se("end");if(te.tryLoc<=this.prev){var fe=C.call(te,"catchLoc"),ge=C.call(te,"finallyLoc");if(fe&&ge){if(this.prev=0;--se){var me=this.tryEntries[se];if(me.tryLoc<=this.prev&&C.call(me,"finallyLoc")&&this.prev=0;--q){var se=this.tryEntries[q];if(se.finallyLoc===ae)return this.complete(se.completion,se.afterLoc),ye(se),j}}return ne}(),catch:function(){function ne(ae){for(var q=this.tryEntries.length-1;q>=0;--q){var se=this.tryEntries[q];if(se.tryLoc===ae){var me=se.completion;if(me.type==="throw"){var te=me.arg;ye(se)}return te}}throw new Error("illegal catch attempt")}return ne}(),delegateYield:function(){function ne(ae,q,se){return this.delegate={iterator:pe(ae),resultName:q,nextLoc:se},this.method==="next"&&(this.arg=g),j}return ne}()},v}function e(g,v,h,C,b,B,L){try{var w=g[B](L),T=w.value}catch(A){h(A);return}w.done?v(T):Promise.resolve(T).then(C,b)}function a(g){return function(){var v=this,h=arguments;return new Promise(function(C,b){var B=g.apply(v,h);function L(T){e(B,C,b,L,w,"next",T)}function w(T){e(B,C,b,L,w,"throw",T)}L(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,k="para-tgui",S="storage-v1",y="readonly",p="readwrite",l=function(v){return function(){try{return!!v()}catch(h){return!1}}},c=l(function(){return window.localStorage&&window.localStorage.getItem}),m=l(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 h(C){return this.store[C]}return h}(),v.set=function(){function h(C,b){this.store[C]=b}return h}(),v.remove=function(){function h(C){this.store[C]=void 0}return h}(),v.clear=function(){function h(){this.store={}}return h}(),g}(),d=function(){function g(){this.impl=o}var v=g.prototype;return v.get=function(){function h(C){var b=localStorage.getItem(C);if(typeof b=="string")return JSON.parse(b)}return h}(),v.set=function(){function h(C,b){localStorage.setItem(C,JSON.stringify(b))}return h}(),v.remove=function(){function h(C){localStorage.removeItem(C)}return h}(),v.clear=function(){function h(){localStorage.clear()}return h}(),g}(),u=function(){function g(){this.impl=f,this.dbPromise=new Promise(function(h,C){var b=window.indexedDB||window.msIndexedDB,B=b.open(k,N);B.onupgradeneeded=function(){try{B.result.createObjectStore(S)}catch(L){C(new Error("Failed to upgrade IDB: "+B.error))}},B.onsuccess=function(){return h(B.result)},B.onerror=function(){C(new Error("Failed to open IDB: "+B.error))}})}var v=g.prototype;return v.getStore=function(){function h(C){return this.dbPromise.then(function(b){return b.transaction(S,C).objectStore(S)})}return h}(),v.get=function(){var h=a(n().mark(function(){function b(B){var L;return n().wrap(function(){function w(T){for(;;)switch(T.prev=T.next){case 0:return T.next=2,this.getStore(y);case 2:return L=T.sent,T.abrupt("return",new Promise(function(A,x){var E=L.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}(),b,this)}return b}()));function C(b){return h.apply(this,arguments)}return C}(),v.set=function(){var h=a(n().mark(function(){function b(B,L){var w;return n().wrap(function(){function T(A){for(;;)switch(A.prev=A.next){case 0:return L===null&&(L=void 0),A.next=3,this.getStore(p);case 3:w=A.sent,w.put(L,B);case 5:case"end":return A.stop()}}return T}(),b,this)}return b}()));function C(b,B){return h.apply(this,arguments)}return C}(),v.remove=function(){var h=a(n().mark(function(){function b(B){var L;return n().wrap(function(){function w(T){for(;;)switch(T.prev=T.next){case 0:return T.next=2,this.getStore(p);case 2:L=T.sent,L.delete(B);case 4:case"end":return T.stop()}}return w}(),b,this)}return b}()));function C(b){return h.apply(this,arguments)}return C}(),v.clear=function(){var h=a(n().mark(function(){function b(){var B;return n().wrap(function(){function L(w){for(;;)switch(w.prev=w.next){case 0:return w.next=2,this.getStore(p);case 2:B=w.sent,B.clear();case 4:case"end":return w.stop()}}return L}(),b,this)}return b}()));function C(){return h.apply(this,arguments)}return C}(),g}(),s=function(){function g(){this.backendPromise=a(n().mark(function(){function h(){var C;return n().wrap(function(){function b(B){for(;;)switch(B.prev=B.next){case 0:if(!m()){B.next=10;break}return B.prev=1,C=new u,B.next=5,C.dbPromise;case 5:return B.abrupt("return",C);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 b}(),h,null,[[1,8]])}return h}()))()}var v=g.prototype;return v.get=function(){var h=a(n().mark(function(){function b(B){var L;return n().wrap(function(){function w(T){for(;;)switch(T.prev=T.next){case 0:return T.next=2,this.backendPromise;case 2:return L=T.sent,T.abrupt("return",L.get(B));case 4:case"end":return T.stop()}}return w}(),b,this)}return b}()));function C(b){return h.apply(this,arguments)}return C}(),v.set=function(){var h=a(n().mark(function(){function b(B,L){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,L));case 4:case"end":return A.stop()}}return T}(),b,this)}return b}()));function C(b,B){return h.apply(this,arguments)}return C}(),v.remove=function(){var h=a(n().mark(function(){function b(B){var L;return n().wrap(function(){function w(T){for(;;)switch(T.prev=T.next){case 0:return T.next=2,this.backendPromise;case 2:return L=T.sent,T.abrupt("return",L.remove(B));case 4:case"end":return T.stop()}}return w}(),b,this)}return b}()));function C(b){return h.apply(this,arguments)}return C}(),v.clear=function(){var h=a(n().mark(function(){function b(){var B;return n().wrap(function(){function L(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 L}(),b,this)}return b}()));function C(){return h.apply(this,arguments)}return C}(),g}(),V=r.storage=new s},37843:function(I,r){"use strict";r.__esModule=!0,r.toTitleCase=r.multiline=r.decodeHtmlEntities=r.createSearch=r.createGlobPattern=r.capitalize=r.buildQueryString=void 0;function n(p,l){var c=typeof Symbol!="undefined"&&p[Symbol.iterator]||p["@@iterator"];if(c)return(c=c.call(p)).next.bind(c);if(Array.isArray(p)||(c=e(p))||l&&p&&typeof p.length=="number"){c&&(p=c);var m=0;return function(){return m>=p.length?{done:!0}:{done:!1,value:p[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(p,l){if(p){if(typeof p=="string")return a(p,l);var c=Object.prototype.toString.call(p).slice(8,-1);if(c==="Object"&&p.constructor&&(c=p.constructor.name),c==="Map"||c==="Set")return Array.from(p);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return a(p,l)}}function a(p,l){(l==null||l>p.length)&&(l=p.length);for(var c=0,m=new Array(l);c=p.length?{done:!0}:{done:!1,value:p[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(p,l){if(p){if(typeof p=="string")return a(p,l);var c=Object.prototype.toString.call(p).slice(8,-1);if(c==="Object"&&p.constructor&&(c=p.constructor.name),c==="Map"||c==="Set")return Array.from(p);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return a(p,l)}}function a(p,l){(l==null||l>p.length)&&(l=p.length);for(var c=0,m=new Array(l);c",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 p}(),y=r.buildQueryString=function(){function p(l){return Object.keys(l).map(function(c){return encodeURIComponent(c)+"="+encodeURIComponent(l[c])}).join("&")}return p}()},32742:function(I,r){"use strict";r.__esModule=!0,r.throttle=r.sleep=r.debounce=void 0;/** + */var t=r.multiline=function(){function p(l){if(Array.isArray(l))return p(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 p}(),y=r.buildQueryString=function(){function p(l){return Object.keys(l).map(function(c){return encodeURIComponent(c)+"="+encodeURIComponent(l[c])}).join("&")}return p}()},32742:function(I,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 k;return function(){for(var S=arguments.length,y=new Array(S),p=0;p=f)o.apply(null,p),N=c;else{var m;k=setTimeout(function(){return S.apply(void 0,p)},f-(c-((m=N)!=null?m:0)))}}return S}()}return t}()},41202:function(I,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,V){V===void 0&&(V=!1);var k;return function(){for(var S=arguments.length,y=new Array(S),p=0;p=f)o.apply(null,p),V=c;else{var m;k=setTimeout(function(){return S.apply(void 0,p)},f-(c-((m=V)!=null?m:0)))}}return S}()}return t}()},41202:function(I,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,u){return d+u},t=function(d,u){return d-u},o=function(d,u){return d*u},f=function(d,u){return d/u},N=r.vecAdd=function(){function i(){for(var d=arguments.length,u=new Array(d),s=0;s=0)&&(y[l]=k[l]);return y}var N=r.BlockQuote=function(){function k(S){var y=S.className,p=f(S,o);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["BlockQuote",y])},p)))}return k}()},93843:function(I,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(k,S){if(k==null)return{};var y={},p=Object.keys(k),l,c;for(c=0;c=0)&&(y[l]=k[l]);return y}var V=r.BlockQuote=function(){function k(S){var y=S.className,p=f(S,o);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["BlockQuote",y])},p)))}return k}()},93843:function(I,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,h){if(v==null)return{};var C={},b=Object.keys(v),B,L;for(L=0;L=0)&&(C[B]=v[B]);return C}var k=r.unit=function(){function v(h){if(typeof h=="string")return h.endsWith("px")&&!Byond.IS_LTE_IE8?parseFloat(h)/12+"rem":h;if(typeof h=="number")return Byond.IS_LTE_IE8?h*12+"px":h+"rem"}return v}(),S=r.halfUnit=function(){function v(h){if(typeof h=="string")return k(h);if(typeof h=="number")return k(h*.5)}return v}(),y=function(h){return!p(h)},p=function(h){if(typeof h=="string")return o.CSS_COLORS.includes(h)},l=function(h){return function(C,b){(typeof b=="number"||typeof b=="string")&&(C[h]=b)}},c=function(h,C){return function(b,B){(typeof B=="number"||typeof B=="string")&&(b[h]=C(B))}},m=function(h,C){return function(b,B){B&&(b[h]=C)}},i=function(h,C,b){return function(B,L){if(typeof L=="number"||typeof L=="string")for(var w=0;w0&&(C.style=x),C}return v}(),V=r.computeBoxClassName=function(){function v(h){var C=h.textColor||h.color,b=h.backgroundColor;return(0,e.classes)([p(C)&&"color-"+C,p(b)&&"color-bg-"+b])}return v}(),g=r.Box=function(){function v(h){var C=h.as,b=C===void 0?"div":C,B=h.className,L=h.children,w=N(h,f);if(typeof L=="function")return L(s(h));var T=typeof B=="string"?B+" "+V(w):V(w),A=s(w);return(0,a.createVNode)(t.VNodeFlags.HtmlElement,b,T,L,t.ChildFlags.UnknownChildren,A)}return v}();g.defaultHooks=e.pureComponentHooks},16699:function(I,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),k=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"],p=["confirmContent","confirmColor","confirmIcon","icon","color","content","onClick"],l=["fluid","content","icon","iconRotation","iconSpin","tooltip","tooltipPosition","color","disabled","placeholder","maxLength","multiLine"];/** + */function V(v,h){if(v==null)return{};var C={},b=Object.keys(v),B,L;for(L=0;L=0)&&(C[B]=v[B]);return C}var k=r.unit=function(){function v(h){if(typeof h=="string")return h.endsWith("px")&&!Byond.IS_LTE_IE8?parseFloat(h)/12+"rem":h;if(typeof h=="number")return Byond.IS_LTE_IE8?h*12+"px":h+"rem"}return v}(),S=r.halfUnit=function(){function v(h){if(typeof h=="string")return k(h);if(typeof h=="number")return k(h*.5)}return v}(),y=function(h){return!p(h)},p=function(h){if(typeof h=="string")return o.CSS_COLORS.includes(h)},l=function(h){return function(C,b){(typeof b=="number"||typeof b=="string")&&(C[h]=b)}},c=function(h,C){return function(b,B){(typeof B=="number"||typeof B=="string")&&(b[h]=C(B))}},m=function(h,C){return function(b,B){B&&(b[h]=C)}},i=function(h,C,b){return function(B,L){if(typeof L=="number"||typeof L=="string")for(var w=0;w0&&(C.style=x),C}return v}(),N=r.computeBoxClassName=function(){function v(h){var C=h.textColor||h.color,b=h.backgroundColor;return(0,e.classes)([p(C)&&"color-"+C,p(b)&&"color-bg-"+b])}return v}(),g=r.Box=function(){function v(h){var C=h.as,b=C===void 0?"div":C,B=h.className,L=h.children,w=V(h,f);if(typeof L=="function")return L(s(h));var T=typeof B=="string"?B+" "+N(w):N(w),A=s(w);return(0,a.createVNode)(t.VNodeFlags.HtmlElement,b,T,L,t.ChildFlags.UnknownChildren,A)}return v}();g.defaultHooks=e.pureComponentHooks},16699:function(I,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),V=n(69433),k=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"],p=["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,h){v.prototype=Object.create(h.prototype),v.prototype.constructor=v,m(v,h)}function m(v,h){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function C(b,B){return b.__proto__=B,b}return C}(),m(v,h)}function i(v,h){if(v==null)return{};var C={},b=Object.keys(v),B,L;for(L=0;L=0)&&(C[B]=v[B]);return C}var d=(0,o.createLogger)("Button"),u=r.Button=function(){function v(h){var C=h.className,b=h.fluid,B=h.icon,L=h.iconRotation,w=h.iconSpin,T=h.color,A=h.textColor,x=h.disabled,E=h.selected,M=h.tooltip,R=h.tooltipPosition,O=h.ellipsis,D=h.compact,j=h.circular,U=h.content,W=h.iconColor,K=h.iconRight,G=h.iconStyle,$=h.children,z=h.onclick,Y=h.onClick,J=h.multiLine,ie=i(h,S),re=!!(U||$);z&&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"),ie.onClick=function(ve){!x&&Y&&Y(ve)},Byond.IS_LTE_IE8&&(ie.unselectable=!0);var de=(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.Box,Object.assign({className:(0,a.classes)(["Button",b&&"Button--fluid",x&&"Button--disabled",E&&"Button--selected",re&&"Button--hasContent",O&&"Button--ellipsis",j&&"Button--circular",D&&"Button--compact",K&&"Button--iconRight",J&&"Button--multiLine",T&&typeof T=="string"?"Button--color--"+T:"Button--color--default",C]),tabIndex:!x&&"0",color:A,onKeyDown:function(){function ve(ye){var Le=window.event?ye.which:ye.keyCode;if(Le===t.KEY_SPACE||Le===t.KEY_ENTER){ye.preventDefault(),!x&&Y&&Y(ye);return}if(Le===t.KEY_ESCAPE){ye.preventDefault();return}}return ve}()},ie,{children:[B&&!K&&(0,e.createComponentVNode)(2,N.Icon,{name:B,color:W,rotation:L,spin:w,style:G}),U,$,B&&K&&(0,e.createComponentVNode)(2,N.Icon,{name:B,color:W,rotation:L,spin:w,style:G})]})));return M&&(de=(0,e.createComponentVNode)(2,k.Tooltip,{content:M,position:R,children:de})),de}return v}();u.defaultHooks=a.pureComponentHooks;var s=r.ButtonCheckbox=function(){function v(h){var C=h.checked,b=i(h,y);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,u,Object.assign({color:"transparent",icon:C?"check-square-o":"square-o",selected:C},b)))}return v}();u.Checkbox=s;var V=r.ButtonConfirm=function(v){c(h,v);function h(){var b;return b=v.call(this)||this,b.state={clickedOnce:!1},b.handleClick=function(){b.state.clickedOnce&&b.setClickedOnce(!1)},b}var C=h.prototype;return C.setClickedOnce=function(){function b(B){var L=this;this.setState({clickedOnce:B}),B?setTimeout(function(){return window.addEventListener("click",L.handleClick)}):window.removeEventListener("click",this.handleClick)}return b}(),C.render=function(){function b(){var B=this,L=this.props,w=L.confirmContent,T=w===void 0?"Confirm?":w,A=L.confirmColor,x=A===void 0?"bad":A,E=L.confirmIcon,M=L.icon,R=L.color,O=L.content,D=L.onClick,j=i(L,p);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,u,Object.assign({content:this.state.clickedOnce?T:O,icon:this.state.clickedOnce?E:M,color:this.state.clickedOnce?x:R,onClick:function(){function U(){return B.state.clickedOnce?D():B.setClickedOnce(!0)}return U}()},j)))}return b}(),h}(e.Component);u.Confirm=V;var g=r.ButtonInput=function(v){c(h,v);function h(){var b;return b=v.call(this)||this,b.inputRef=(0,e.createRef)(),b.state={inInput:!1},b}var C=h.prototype;return C.setInInput=function(){function b(B){var L=this.props.disabled;if(!L&&(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 b}(),C.commitResult=function(){function b(B){if(this.inputRef){var L=this.inputRef.current,w=L.value!=="";if(w){this.props.onCommit(B,L.value);return}else{if(!this.props.defaultValue)return;this.props.onCommit(B,this.props.defaultValue)}}}return b}(),C.render=function(){function b(){var B=this,L=this.props,w=L.fluid,T=L.content,A=L.icon,x=L.iconRotation,E=L.iconSpin,M=L.tooltip,R=L.tooltipPosition,O=L.color,D=O===void 0?"default":O,j=L.disabled,U=L.placeholder,W=L.maxLength,K=L.multiLine,G=i(L,l),$=(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,K+"Button--multiLine"])},G,{onClick:function(){function z(){return B.setInInput(!0)}return z}(),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 z(Y){B.state.inInput&&(B.setInInput(!1),B.commitResult(Y))}return z}(),onKeyDown:function(){function z(Y){if(Y.keyCode===t.KEY_ENTER){B.setInInput(!1),B.commitResult(Y);return}Y.keyCode===t.KEY_ESCAPE&&B.setInInput(!1)}return z}()},null,this.inputRef)]})));return M&&($=(0,e.createComponentVNode)(2,k.Tooltip,{content:M,position:R,children:$})),$}return b}(),h}(e.Component);u.Input=g},75614:function(I,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"],k=["params"],S=["parent","params"];function y(V,g){if(V==null)return{};var v={},h=Object.keys(V),C,b;for(b=0;b=0)&&(v[C]=V[C]);return v}function p(V,g){V.prototype=Object.create(g.prototype),V.prototype.constructor=V,l(V,g)}function l(V,g){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function v(h,C){return h.__proto__=C,h}return v}(),l(V,g)}/** + */function c(v,h){v.prototype=Object.create(h.prototype),v.prototype.constructor=v,m(v,h)}function m(v,h){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function C(b,B){return b.__proto__=B,b}return C}(),m(v,h)}function i(v,h){if(v==null)return{};var C={},b=Object.keys(v),B,L;for(L=0;L=0)&&(C[B]=v[B]);return C}var d=(0,o.createLogger)("Button"),u=r.Button=function(){function v(h){var C=h.className,b=h.fluid,B=h.icon,L=h.iconRotation,w=h.iconSpin,T=h.color,A=h.textColor,x=h.disabled,E=h.selected,M=h.tooltip,R=h.tooltipPosition,O=h.ellipsis,D=h.compact,j=h.circular,U=h.content,W=h.iconColor,K=h.iconRight,G=h.iconStyle,$=h.children,z=h.onclick,Y=h.onClick,J=h.multiLine,ie=i(h,S),re=!!(U||$);z&&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"),ie.onClick=function(ve){!x&&Y&&Y(ve)},Byond.IS_LTE_IE8&&(ie.unselectable=!0);var de=(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.Box,Object.assign({className:(0,a.classes)(["Button",b&&"Button--fluid",x&&"Button--disabled",E&&"Button--selected",re&&"Button--hasContent",O&&"Button--ellipsis",j&&"Button--circular",D&&"Button--compact",K&&"Button--iconRight",J&&"Button--multiLine",T&&typeof T=="string"?"Button--color--"+T:"Button--color--default",C]),tabIndex:!x&&"0",color:A,onKeyDown:function(){function ve(ye){var Le=window.event?ye.which:ye.keyCode;if(Le===t.KEY_SPACE||Le===t.KEY_ENTER){ye.preventDefault(),!x&&Y&&Y(ye);return}if(Le===t.KEY_ESCAPE){ye.preventDefault();return}}return ve}()},ie,{children:[B&&!K&&(0,e.createComponentVNode)(2,V.Icon,{name:B,color:W,rotation:L,spin:w,style:G}),U,$,B&&K&&(0,e.createComponentVNode)(2,V.Icon,{name:B,color:W,rotation:L,spin:w,style:G})]})));return M&&(de=(0,e.createComponentVNode)(2,k.Tooltip,{content:M,position:R,children:de})),de}return v}();u.defaultHooks=a.pureComponentHooks;var s=r.ButtonCheckbox=function(){function v(h){var C=h.checked,b=i(h,y);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,u,Object.assign({color:"transparent",icon:C?"check-square-o":"square-o",selected:C},b)))}return v}();u.Checkbox=s;var N=r.ButtonConfirm=function(v){c(h,v);function h(){var b;return b=v.call(this)||this,b.state={clickedOnce:!1},b.handleClick=function(){b.state.clickedOnce&&b.setClickedOnce(!1)},b}var C=h.prototype;return C.setClickedOnce=function(){function b(B){var L=this;this.setState({clickedOnce:B}),B?setTimeout(function(){return window.addEventListener("click",L.handleClick)}):window.removeEventListener("click",this.handleClick)}return b}(),C.render=function(){function b(){var B=this,L=this.props,w=L.confirmContent,T=w===void 0?"Confirm?":w,A=L.confirmColor,x=A===void 0?"bad":A,E=L.confirmIcon,M=L.icon,R=L.color,O=L.content,D=L.onClick,j=i(L,p);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,u,Object.assign({content:this.state.clickedOnce?T:O,icon:this.state.clickedOnce?E:M,color:this.state.clickedOnce?x:R,onClick:function(){function U(){return B.state.clickedOnce?D():B.setClickedOnce(!0)}return U}()},j)))}return b}(),h}(e.Component);u.Confirm=N;var g=r.ButtonInput=function(v){c(h,v);function h(){var b;return b=v.call(this)||this,b.inputRef=(0,e.createRef)(),b.state={inInput:!1},b}var C=h.prototype;return C.setInInput=function(){function b(B){var L=this.props.disabled;if(!L&&(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 b}(),C.commitResult=function(){function b(B){if(this.inputRef){var L=this.inputRef.current,w=L.value!=="";if(w){this.props.onCommit(B,L.value);return}else{if(!this.props.defaultValue)return;this.props.onCommit(B,this.props.defaultValue)}}}return b}(),C.render=function(){function b(){var B=this,L=this.props,w=L.fluid,T=L.content,A=L.icon,x=L.iconRotation,E=L.iconSpin,M=L.tooltip,R=L.tooltipPosition,O=L.color,D=O===void 0?"default":O,j=L.disabled,U=L.placeholder,W=L.maxLength,K=L.multiLine,G=i(L,l),$=(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,K+"Button--multiLine"])},G,{onClick:function(){function z(){return B.setInInput(!0)}return z}(),children:[A&&(0,e.createComponentVNode)(2,V.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 z(Y){B.state.inInput&&(B.setInInput(!1),B.commitResult(Y))}return z}(),onKeyDown:function(){function z(Y){if(Y.keyCode===t.KEY_ENTER){B.setInInput(!1),B.commitResult(Y);return}Y.keyCode===t.KEY_ESCAPE&&B.setInInput(!1)}return z}()},null,this.inputRef)]})));return M&&($=(0,e.createComponentVNode)(2,k.Tooltip,{content:M,position:R,children:$})),$}return b}(),h}(e.Component);u.Input=g},75614:function(I,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),V=["params"],k=["params"],S=["parent","params"];function y(N,g){if(N==null)return{};var v={},h=Object.keys(N),C,b;for(b=0;b=0)&&(v[C]=N[C]);return v}function p(N,g){N.prototype=Object.create(g.prototype),N.prototype.constructor=N,l(N,g)}function l(N,g){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function v(h,C){return h.__proto__=C,h}return v}(),l(N,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 h=g||"byondui_"+v;return c.log("allocated '"+h+"'"),{render:function(){function C(b){c.log("rendering '"+h+"'"),m[v]=h,Byond.winset(h,b)}return C}(),unmount:function(){function C(){c.log("unmounting '"+h+"'"),m[v]=null,Byond.winset(h,{parent:""})}return C}()}};window.addEventListener("beforeunload",function(){for(var V=0;V=0)&&(u[V]=i[V]);return u}function k(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,V){return s.__proto__=V,s}return u}(),S(i,d)}/** +*/var c=(0,o.createLogger)("ByondUi"),m=[],i=function(g){var v=m.length;m.push(null);var h=g||"byondui_"+v;return c.log("allocated '"+h+"'"),{render:function(){function C(b){c.log("rendering '"+h+"'"),m[v]=h,Byond.winset(h,b)}return C}(),unmount:function(){function C(){c.log("unmounting '"+h+"'"),m[v]=null,Byond.winset(h,{parent:""})}return C}()}};window.addEventListener("beforeunload",function(){for(var N=0;N=0)&&(u[N]=i[N]);return u}function k(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,N){return s.__proto__=N,s}return u}(),S(i,d)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var y=function(d,u,s,V){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]),V!==void 0&&(g[1]=V[0],v[1]=V[1]);var h=(0,a.map)(function(C){return(0,a.zipWith)(function(b,B,L,w){return(b-B)/(L-B)*w})(C,g,v,u)})(d);return h},p=function(d){for(var u="",s=0;s0){var O=R[0],D=R[R.length-1];R.push([M[0]+x,D[1]]),R.push([M[0]+x,-x]),R.push([-x,-x]),R.push([-x,O[1]])}var j=p(R);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({position:"relative"},E,{children:function(){function U(W){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, -"+M[1]+")",fill:L,stroke:T,"stroke-width":x,points:j}),2,{viewBox:"0 0 "+M[0]+" "+M[1],preserveAspectRatio:"none",style:{position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"hidden"}}),2,Object.assign({},W),null,V.ref))}return U}()})))}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(I,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,p){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,p){y.prototype=Object.create(p.prototype),y.prototype.constructor=y,k(y,p)}function k(y,p){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function l(c,m){return c.__proto__=m,c}return l}(),k(y,p)}/** +*/var y=function(d,u,s,N){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]),N!==void 0&&(g[1]=N[0],v[1]=N[1]);var h=(0,a.map)(function(C){return(0,a.zipWith)(function(b,B,L,w){return(b-B)/(L-B)*w})(C,g,v,u)})(d);return h},p=function(d){for(var u="",s=0;s0){var O=R[0],D=R[R.length-1];R.push([M[0]+x,D[1]]),R.push([M[0]+x,-x]),R.push([-x,-x]),R.push([-x,O[1]])}var j=p(R);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({position:"relative"},E,{children:function(){function U(W){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, -"+M[1]+")",fill:L,stroke:T,"stroke-width":x,points:j}),2,{viewBox:"0 0 "+M[0]+" "+M[1],preserveAspectRatio:"none",style:{position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"hidden"}}),2,Object.assign({},W),null,N.ref))}return U}()})))}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(I,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,p){if(y==null)return{};var l={},c=Object.keys(y),m,i;for(i=0;i=0)&&(l[m]=y[m]);return l}function V(y,p){y.prototype=Object.create(p.prototype),y.prototype.constructor=y,k(y,p)}function k(y,p){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function l(c,m){return c.__proto__=m,c}return l}(),k(y,p)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var S=r.Collapsible=function(y){N(p,y);function p(c){var m;m=y.call(this,c)||this;var i=c.open;return m.state={open:i||!1},m}var l=p.prototype;return l.render=function(){function c(){var m=this,i=this.props,d=this.state.open,u=i.children,s=i.color,V=s===void 0?"default":s,g=i.title,v=i.buttons,h=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:V,icon:d?"chevron-down":"chevron-right",onClick:function(){function C(){return m.setState({open:!d})}return C}()},h,{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}(),p}(e.Component)},25762:function(I,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){V(p,y);function p(c){var m;m=y.call(this,c)||this;var i=c.open;return m.state={open:i||!1},m}var l=p.prototype;return l.render=function(){function c(){var m=this,i=this.props,d=this.state.open,u=i.children,s=i.color,N=s===void 0?"default":s,g=i.title,v=i.buttons,h=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:N,icon:d?"chevron-down":"chevron-right",onClick:function(){function C(){return m.setState({open:!d})}return C}()},h,{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}(),p}(e.Component)},25762:function(I,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(k,S){if(k==null)return{};var y={},p=Object.keys(k),l,c;for(c=0;c=0)&&(y[l]=k[l]);return y}var N=r.ColorBox=function(){function k(S){var y=S.content,p=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 k}();N.defaultHooks=a.pureComponentHooks},73712:function(I,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 p={},l=Object.keys(S),c,m;for(m=0;m=0)&&(p[c]=S[c]);return p}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 p(l,c){return l.__proto__=c,l}return p}(),N(S,y)}var k=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 p=y.prototype;return p.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}(),p.componentDidMount=function(){function l(){var c=this;this.timer=setInterval(function(){return c.tick()},this.props.rate)}return l}(),p.componentWillUnmount=function(){function l(){clearInterval(this.timer)}return l}(),p.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}(),p.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);k.defaultProps={rate:1e3}},15148:function(I,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(k,S){if(k==null)return{};var y={},p=Object.keys(k),l,c;for(c=0;c=0)&&(y[l]=k[l]);return y}var V=r.ColorBox=function(){function k(S){var y=S.content,p=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 k}();V.defaultHooks=a.pureComponentHooks},73712:function(I,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 p={},l=Object.keys(S),c,m;for(m=0;m=0)&&(p[c]=S[c]);return p}function f(S,y){S.prototype=Object.create(y.prototype),S.prototype.constructor=S,V(S,y)}function V(S,y){return V=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function p(l,c){return l.__proto__=c,l}return p}(),V(S,y)}var k=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 p=y.prototype;return p.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}(),p.componentDidMount=function(){function l(){var c=this;this.timer=setInterval(function(){return c.tick()},this.props.rate)}return l}(),p.componentWillUnmount=function(){function l(){clearInterval(this.timer)}return l}(),p.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}(),p.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);k.defaultProps={rate:1e3}},15148:function(I,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(k,S){if(k==null)return{};var y={},p=Object.keys(k),l,c;for(c=0;c=0)&&(y[l]=k[l]);return y}var N=r.Dimmer=function(){function k(S){var y=S.className,p=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",p,0)})))}return k}()},81878:function(I,r,n){"use strict";r.__esModule=!0,r.Divider=void 0;var e=n(28823),a=n(66586);/** + */function f(k,S){if(k==null)return{};var y={},p=Object.keys(k),l,c;for(c=0;c=0)&&(y[l]=k[l]);return y}var V=r.Dimmer=function(){function k(S){var y=S.className,p=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",p,0)})))}return k}()},81878:function(I,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,k=f.hidden;return(0,e.createVNode)(1,"div",(0,a.classes)(["Divider",k&&"Divider--hidden",N?"Divider--vertical":"Divider--horizontal"]))}return o}()},41584:function(I,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(p,l){p.prototype=Object.create(l.prototype),p.prototype.constructor=p,N(p,l)}function N(p,l){return N=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function c(m,i){return m.__proto__=i,m}return c}(),N(p,l)}var k=400,S=function(l,c){return l.screenX*c[0]+l.screenY*c[1]},y=r.DraggableControl=function(p){f(l,p);function l(m){var i;return i=p.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,V=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,V)}),i.timer=setTimeout(function(){i.setState({dragging:!0})},250),i.dragInterval=setInterval(function(){var h=i.state,C=h.dragging,b=h.value,B=i.props.onDrag;C&&B&&B(d,b)},i.props.updateRate||k),document.addEventListener("mousemove",i.handleDragMove),document.addEventListener("mouseup",i.handleDragEnd))},i.handleDragMove=function(d){var u,s=i.props,V=s.minValue,g=s.maxValue,v=s.step,h=s.dragMatrix,C=s.disabled;if(!C){var b=i.ref.offsetWidth/((g-V)/v),B=(u=i.props.stepPixelSize)!=null?u:b;typeof B=="function"&&(B=B(b)),i.setState(function(L){var w=Object.assign({},L),T=L.origin,A=S(d,h)-T;if(L.dragging){var x=Math.trunc(A/B);w.value=(0,a.clamp)(Math.floor(w.originalValue/v)*v+x*v,V,g)}else Math.abs(A)>4&&(w.dragging=!0);return w})}},i.handleDragEnd=function(d){var u=i.props,s=u.onChange,V=u.onDrag,g=i.state,v=g.dragging,h=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,h),V&&V(d,h);else if(i.inputRef){var C=i.inputRef.current;C.value=h;try{C.focus(),C.select()}catch(b){}}},i}var c=l.prototype;return c.render=function(){function m(){var i=this,d=this.state,u=d.dragging,s=d.editing,V=d.value,g=d.suppressingFlicker,v=this.props,h=v.animated,C=v.value,b=v.unit,B=v.minValue,L=v.maxValue,w=v.format,T=v.onChange,A=v.onDrag,x=v.children,E=v.height,M=v.lineHeight,R=v.fontSize,O=v.disabled,D=C;(u||g)&&(D=V);var j=function(){function K(G){return G+(b?" "+b:"")}return K}(),U=h&&!u&&!g&&(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:D,format:w,children:j})||j(w?w(D):D),W=(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:!s||O?"none":void 0,height:E,"line-height":M,"font-size":R},onBlur:function(){function K(G){if(s){var $=(0,a.clamp)(parseFloat(G.target.value),B,L);if(Number.isNaN($)){i.setState({editing:!1});return}i.setState({editing:!1,value:$}),i.suppressFlicker(),T&&T(G,$),A&&A(G,$)}}return K}(),onKeyDown:function(){function K(G){if(G.keyCode===13){var $=(0,a.clamp)(parseFloat(G.target.value),B,L);if(Number.isNaN($)){i.setState({editing:!1});return}i.setState({editing:!1,value:$}),i.suppressFlicker(),T&&T(G,$),A&&A(G,$);return}if(G.keyCode===27){i.setState({editing:!1});return}}return K}(),disabled:O},null,this.inputRef);return x({dragging:u,editing:s,value:C,displayValue:D,displayElement:U,inputElement:W,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(I,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"],k=["className"],S;function y(s,V){if(s==null)return{};var g={},v=Object.keys(s),h,C;for(C=0;C=0)&&(g[h]=s[h]);return g}function p(s,V){s.prototype=Object.create(V.prototype),s.prototype.constructor=s,l(s,V)}function l(s,V){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function g(v,h){return v.__proto__=h,v}return g}(),l(s,V)}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){p(V,s);function V(v){var h;return h=s.call(this,v)||this,h.menuContents=void 0,h.handleClick=function(){h.state.open&&h.setOpen(!1)},h.state={open:!1,selected:h.props.selected},h.menuContents=null,h}var g=V.prototype;return g.getDOMNode=function(){function v(){return(0,e.findDOMfromVNode)(this.$LI,!0)}return v}(),g.componentDidMount=function(){function v(){var h=this.getDOMNode()}return v}(),g.openMenu=function(){function v(){var h=V.renderedMenu;h===void 0&&(h=document.createElement("div"),h.className=i,document.body.appendChild(h),V.renderedMenu=h);var C=this.getDOMNode();V.currentOpenMenu=C,h.scrollTop=0,h.style.width=this.props.menuWidth||C.offsetWidth+"px",h.style.opacity="1",h.style.pointerEvents="auto",setTimeout(function(){var b;(b=V.renderedMenu)==null||b.focus()},400),this.renderMenuContent()}return v}(),g.closeMenu=function(){function v(){V.currentOpenMenu===this.getDOMNode()&&(V.currentOpenMenu=void 0,V.renderedMenu.style.opacity="0",V.renderedMenu.style.pointerEvents="none")}return v}(),g.componentWillUnmount=function(){function v(){this.closeMenu(),this.setOpen(!1)}return v}(),g.renderMenuContent=function(){function v(){var h=this,C=V.renderedMenu;if(C){C.offsetHeight>200?C.className=d:C.className=i;var b=this.props.options,B=b===void 0?[]:b,L=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",h.state.selected===A&&"selected"]),x,0,{onClick:function(){function E(){h.setSelected(A)}return E}()},A)}),w=L.length?L:"No Options Found";(0,e.render)((0,e.createVNode)(1,"div",null,w,0),C,function(){var T=V.singletonPopper;T===void 0?(T=(0,a.createPopper)(V.virtualElement,C,Object.assign({},c,{placement:"bottom-start"})),V.singletonPopper=T):(T.setOptions(Object.assign({},c,{placement:"bottom-start"})),T.update())},this.context)}}return v}(),g.setOpen=function(){function v(h){var C=this;this.setState(function(b){return Object.assign({},b,{open:h})}),h?setTimeout(function(){C.openMenu(),window.addEventListener("click",C.handleClick)}):(this.closeMenu(),window.removeEventListener("click",this.handleClick))}return v}(),g.setSelected=function(){function v(h){this.setState(function(C){return Object.assign({},C,{selected:h})}),this.setOpen(!1),this.props.onSelected&&this.props.onSelected(h)}return v}(),g.render=function(){function v(){var h=this,C=this.props,b=C.icon,B=C.iconRotation,L=C.iconSpin,w=C.clipSelectedText,T=w===void 0?!0:w,A=C.color,x=A===void 0?"default":A,E=C.dropdownStyle,M=C.over,R=C.nochevron,O=C.width,D=C.onClick,j=C.onSelected,U=C.selected,W=C.disabled,K=C.displayText,G=y(C,N),$=G.className,z=y(G,k),Y=M?!this.state.open:this.state.open;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({width:O,className:(0,t.classes)(["Dropdown__control","Button","Button--color--"+x,W&&"Button--disabled",$]),onClick:function(){function J(ie){W&&!h.state.open||(h.setOpen(!h.state.open),D&&D(ie))}return J}()},z,{children:[b&&(0,e.createComponentVNode)(2,f.Icon,{name:b,rotation:B,spin:L,mr:1}),(0,e.createVNode)(1,"span","Dropdown__selected-text",K||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:Y?"chevron-up":"chevron-down"}),2)]})))}return v}(),V}(e.Component);S=u,u.renderedMenu=void 0,u.singletonPopper=void 0,u.currentOpenMenu=void 0,u.virtualElement={getBoundingClientRect:function(){function s(){var V,g;return(V=(g=S.currentOpenMenu)==null?void 0:g.getBoundingClientRect())!=null?V:m}return s}()}},92462:function(I,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"],k=["className"];/** + */var t=r.Divider=function(){function o(f){var V=f.vertical,k=f.hidden;return(0,e.createVNode)(1,"div",(0,a.classes)(["Divider",k&&"Divider--hidden",V?"Divider--vertical":"Divider--horizontal"]))}return o}()},41584:function(I,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(p,l){p.prototype=Object.create(l.prototype),p.prototype.constructor=p,V(p,l)}function V(p,l){return V=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function c(m,i){return m.__proto__=i,m}return c}(),V(p,l)}var k=400,S=function(l,c){return l.screenX*c[0]+l.screenY*c[1]},y=r.DraggableControl=function(p){f(l,p);function l(m){var i;return i=p.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,N=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,N)}),i.timer=setTimeout(function(){i.setState({dragging:!0})},250),i.dragInterval=setInterval(function(){var h=i.state,C=h.dragging,b=h.value,B=i.props.onDrag;C&&B&&B(d,b)},i.props.updateRate||k),document.addEventListener("mousemove",i.handleDragMove),document.addEventListener("mouseup",i.handleDragEnd))},i.handleDragMove=function(d){var u,s=i.props,N=s.minValue,g=s.maxValue,v=s.step,h=s.dragMatrix,C=s.disabled;if(!C){var b=i.ref.offsetWidth/((g-N)/v),B=(u=i.props.stepPixelSize)!=null?u:b;typeof B=="function"&&(B=B(b)),i.setState(function(L){var w=Object.assign({},L),T=L.origin,A=S(d,h)-T;if(L.dragging){var x=Math.trunc(A/B);w.value=(0,a.clamp)(Math.floor(w.originalValue/v)*v+x*v,N,g)}else Math.abs(A)>4&&(w.dragging=!0);return w})}},i.handleDragEnd=function(d){var u=i.props,s=u.onChange,N=u.onDrag,g=i.state,v=g.dragging,h=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,h),N&&N(d,h);else if(i.inputRef){var C=i.inputRef.current;C.value=h;try{C.focus(),C.select()}catch(b){}}},i}var c=l.prototype;return c.render=function(){function m(){var i=this,d=this.state,u=d.dragging,s=d.editing,N=d.value,g=d.suppressingFlicker,v=this.props,h=v.animated,C=v.value,b=v.unit,B=v.minValue,L=v.maxValue,w=v.format,T=v.onChange,A=v.onDrag,x=v.children,E=v.height,M=v.lineHeight,R=v.fontSize,O=v.disabled,D=C;(u||g)&&(D=N);var j=function(){function K(G){return G+(b?" "+b:"")}return K}(),U=h&&!u&&!g&&(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:D,format:w,children:j})||j(w?w(D):D),W=(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:!s||O?"none":void 0,height:E,"line-height":M,"font-size":R},onBlur:function(){function K(G){if(s){var $=(0,a.clamp)(parseFloat(G.target.value),B,L);if(Number.isNaN($)){i.setState({editing:!1});return}i.setState({editing:!1,value:$}),i.suppressFlicker(),T&&T(G,$),A&&A(G,$)}}return K}(),onKeyDown:function(){function K(G){if(G.keyCode===13){var $=(0,a.clamp)(parseFloat(G.target.value),B,L);if(Number.isNaN($)){i.setState({editing:!1});return}i.setState({editing:!1,value:$}),i.suppressFlicker(),T&&T(G,$),A&&A(G,$);return}if(G.keyCode===27){i.setState({editing:!1});return}}return K}(),disabled:O},null,this.inputRef);return x({dragging:u,editing:s,value:C,displayValue:D,displayElement:U,inputElement:W,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(I,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),V=["icon","iconRotation","iconSpin","clipSelectedText","color","dropdownStyle","over","nochevron","width","onClick","onSelected","selected","disabled","displayText"],k=["className"],S;function y(s,N){if(s==null)return{};var g={},v=Object.keys(s),h,C;for(C=0;C=0)&&(g[h]=s[h]);return g}function p(s,N){s.prototype=Object.create(N.prototype),s.prototype.constructor=s,l(s,N)}function l(s,N){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function g(v,h){return v.__proto__=h,v}return g}(),l(s,N)}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){p(N,s);function N(v){var h;return h=s.call(this,v)||this,h.menuContents=void 0,h.handleClick=function(){h.state.open&&h.setOpen(!1)},h.state={open:!1,selected:h.props.selected},h.menuContents=null,h}var g=N.prototype;return g.getDOMNode=function(){function v(){return(0,e.findDOMfromVNode)(this.$LI,!0)}return v}(),g.componentDidMount=function(){function v(){var h=this.getDOMNode()}return v}(),g.openMenu=function(){function v(){var h=N.renderedMenu;h===void 0&&(h=document.createElement("div"),h.className=i,document.body.appendChild(h),N.renderedMenu=h);var C=this.getDOMNode();N.currentOpenMenu=C,h.scrollTop=0,h.style.width=this.props.menuWidth||C.offsetWidth+"px",h.style.opacity="1",h.style.pointerEvents="auto",setTimeout(function(){var b;(b=N.renderedMenu)==null||b.focus()},400),this.renderMenuContent()}return v}(),g.closeMenu=function(){function v(){N.currentOpenMenu===this.getDOMNode()&&(N.currentOpenMenu=void 0,N.renderedMenu.style.opacity="0",N.renderedMenu.style.pointerEvents="none")}return v}(),g.componentWillUnmount=function(){function v(){this.closeMenu(),this.setOpen(!1)}return v}(),g.renderMenuContent=function(){function v(){var h=this,C=N.renderedMenu;if(C){C.offsetHeight>200?C.className=d:C.className=i;var b=this.props.options,B=b===void 0?[]:b,L=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",h.state.selected===A&&"selected"]),x,0,{onClick:function(){function E(){h.setSelected(A)}return E}()},A)}),w=L.length?L:"No Options Found";(0,e.render)((0,e.createVNode)(1,"div",null,w,0),C,function(){var T=N.singletonPopper;T===void 0?(T=(0,a.createPopper)(N.virtualElement,C,Object.assign({},c,{placement:"bottom-start"})),N.singletonPopper=T):(T.setOptions(Object.assign({},c,{placement:"bottom-start"})),T.update())},this.context)}}return v}(),g.setOpen=function(){function v(h){var C=this;this.setState(function(b){return Object.assign({},b,{open:h})}),h?setTimeout(function(){C.openMenu(),window.addEventListener("click",C.handleClick)}):(this.closeMenu(),window.removeEventListener("click",this.handleClick))}return v}(),g.setSelected=function(){function v(h){this.setState(function(C){return Object.assign({},C,{selected:h})}),this.setOpen(!1),this.props.onSelected&&this.props.onSelected(h)}return v}(),g.render=function(){function v(){var h=this,C=this.props,b=C.icon,B=C.iconRotation,L=C.iconSpin,w=C.clipSelectedText,T=w===void 0?!0:w,A=C.color,x=A===void 0?"default":A,E=C.dropdownStyle,M=C.over,R=C.nochevron,O=C.width,D=C.onClick,j=C.onSelected,U=C.selected,W=C.disabled,K=C.displayText,G=y(C,V),$=G.className,z=y(G,k),Y=M?!this.state.open:this.state.open;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({width:O,className:(0,t.classes)(["Dropdown__control","Button","Button--color--"+x,W&&"Button--disabled",$]),onClick:function(){function J(ie){W&&!h.state.open||(h.setOpen(!h.state.open),D&&D(ie))}return J}()},z,{children:[b&&(0,e.createComponentVNode)(2,f.Icon,{name:b,rotation:B,spin:L,mr:1}),(0,e.createVNode)(1,"span","Dropdown__selected-text",K||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:Y?"chevron-up":"chevron-down"}),2)]})))}return v}(),N}(e.Component);S=u,u.renderedMenu=void 0,u.singletonPopper=void 0,u.currentOpenMenu=void 0,u.virtualElement={getBoundingClientRect:function(){function s(){var N,g;return(N=(g=S.currentOpenMenu)==null?void 0:g.getBoundingClientRect())!=null?N:m}return s}()}},92462:function(I,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"],V=["className","style","grow","order","shrink","basis","align"],k=["className"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function S(d,u){if(d==null)return{};var s={},V=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}(),p=r.computeFlexProps=function(){function d(u){var s=u.className,V=u.direction,g=u.wrap,v=u.align,h=u.justify,C=u.inline,b=S(u,o);return(0,t.computeBoxProps)(Object.assign({style:Object.assign({},b.style,{"flex-direction":V,"flex-wrap":g===!0?"wrap":g,"align-items":v,"justify-content":h})},b))}return d}(),l=r.Flex=function(){function d(u){var s=u.className,V=S(u,f);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)([s,y(V)]),null,1,Object.assign({},p(V))))}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,V=u.style,g=u.grow,v=u.order,h=u.shrink,C=u.basis,b=C===void 0?u.width:C,B=u.align,L=S(u,N);return(0,t.computeBoxProps)(Object.assign({style:Object.assign({},V,{"flex-grow":g!==void 0&&Number(g),"flex-shrink":h!==void 0&&Number(h),"flex-basis":(0,t.unit)(b),order:v,"align-self":B})},L))}return d}(),i=function(u){var s=u.className,V=S(u,k);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)([s,c(u)]),null,1,Object.assign({},m(V))))};i.defaultHooks=a.pureComponentHooks,l.Item=i},81753:function(I,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={},N=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}(),p=r.computeFlexProps=function(){function d(u){var s=u.className,N=u.direction,g=u.wrap,v=u.align,h=u.justify,C=u.inline,b=S(u,o);return(0,t.computeBoxProps)(Object.assign({style:Object.assign({},b.style,{"flex-direction":N,"flex-wrap":g===!0?"wrap":g,"align-items":v,"justify-content":h})},b))}return d}(),l=r.Flex=function(){function d(u){var s=u.className,N=S(u,f);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)([s,y(N)]),null,1,Object.assign({},p(N))))}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,N=u.style,g=u.grow,v=u.order,h=u.shrink,C=u.basis,b=C===void 0?u.width:C,B=u.align,L=S(u,V);return(0,t.computeBoxProps)(Object.assign({style:Object.assign({},N,{"flex-grow":g!==void 0&&Number(g),"flex-shrink":h!==void 0&&Number(h),"flex-basis":(0,t.unit)(b),order:v,"align-self":B})},L))}return d}(),i=function(u){var s=u.className,N=S(u,k);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)([s,c(u)]),null,1,Object.assign({},m(N))))};i.defaultHooks=a.pureComponentHooks,l.Item=i},81753:function(I,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(y,p){if(y==null)return{};var l={},c=Object.keys(y),m,i;for(i=0;i=0)&&(l[m]=y[m]);return l}var k=r.Grid=function(){function y(p){var l=p.children,c=N(p,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}();k.defaultHooks=t.pureComponentHooks;var S=r.GridColumn=function(){function y(p){var l=p.size,c=l===void 0?1:l,m=p.style,i=N(p,f);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Table.Cell,Object.assign({style:Object.assign({width:c+"%"},m)},i)))}return y}();k.defaultHooks=t.pureComponentHooks,k.Column=S},69433:function(I,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 V(y,p){if(y==null)return{};var l={},c=Object.keys(y),m,i;for(i=0;i=0)&&(l[m]=y[m]);return l}var k=r.Grid=function(){function y(p){var l=p.children,c=V(p,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}();k.defaultHooks=t.pureComponentHooks;var S=r.GridColumn=function(){function y(p){var l=p.size,c=l===void 0?1:l,m=p.style,i=V(p,f);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Table.Cell,Object.assign({style:Object.assign({width:c+"%"},m)},i)))}return y}();k.defaultHooks=t.pureComponentHooks,k.Column=S},69433:function(I,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(p,l){if(p==null)return{};var c={},m=Object.keys(p),i,d;for(d=0;d=0)&&(c[i]=p[i]);return c}var k=/-o$/,S=r.Icon=function(){function p(l){var c=l.name,m=l.size,i=l.spin,d=l.className,u=l.style,s=u===void 0?{}:u,V=l.rotation,g=l.inverse,v=N(l,o);m&&(s["font-size"]=m*100+"%"),typeof V=="number"&&(s.transform="rotate("+V+"deg)");var h=k.test(c),C=c.replace(k,"");return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({as:"i",className:(0,a.classes)(["Icon",d,h?"far":"fas","fa-"+C,i&&"fa-spin"]),style:s},v)))}return p}();S.defaultHooks=a.pureComponentHooks;var y=r.IconStack=function(){function p(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 p}();S.Stack=y},51190:function(I,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 k(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)}/** + */function V(p,l){if(p==null)return{};var c={},m=Object.keys(p),i,d;for(d=0;d=0)&&(c[i]=p[i]);return c}var k=/-o$/,S=r.Icon=function(){function p(l){var c=l.name,m=l.size,i=l.spin,d=l.className,u=l.style,s=u===void 0?{}:u,N=l.rotation,g=l.inverse,v=V(l,o);m&&(s["font-size"]=m*100+"%"),typeof N=="number"&&(s.transform="rotate("+N+"deg)");var h=k.test(c),C=c.replace(k,"");return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({as:"i",className:(0,a.classes)(["Icon",d,h?"far":"fas","fa-"+C,i&&"fa-spin"]),style:s},v)))}return p}();S.defaultHooks=a.pureComponentHooks;var y=r.IconStack=function(){function p(l){var c=l.className,m=l.style,i=m===void 0?{}:m,d=l.children,u=V(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 p}();S.Stack=y},51190:function(I,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"],V=["className","fluid","monospace"];function k(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 p=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,V=d.props.onInput;s||d.setEditing(!0),V&&V(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,V=d.props.onChange;s&&(d.setEditing(!1),V&&V(u,u.target.value))},d.handleKeyDown=function(u){var s=d.props,V=s.onInput,g=s.onChange,v=s.onEnter;if(u.keyCode===o.KEY_ENTER){d.setEditing(!1),g&&g(u,u.target.value),V&&V(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=p(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,V=this.inputRef.current;V&&(V.value=p(s),V.selectionStart=0,V.selectionEnd=V.value.length),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){V.focus(),u.props.autoSelect&&V.select()},1)}return d}(),i.componentDidUpdate=function(){function d(u,s){var V=this.state.editing,g=u.value,v=this.props.value,h=this.inputRef.current;h&&!V&&g!==v&&(h.value=p(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,V=u.onInput,g=u.onChange,v=u.onEnter,h=u.value,C=u.maxLength,b=u.placeholder,B=u.autofocus,L=u.disabled,w=u.multiline,T=u.cols,A=T===void 0?32:T,x=u.rows,E=x===void 0?4:x,M=k(u,f),R=M.className,O=M.fluid,D=M.monospace,j=k(M,N);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["Input",O&&"Input--fluid",D&&"Input--monospace",L&&"Input--disabled",R])},j,{children:[(0,e.createVNode)(1,"div","Input__baseline",".",16),w?(0,e.createVNode)(128,"textarea","Input__textarea",null,1,{placeholder:b,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,maxLength:C,cols:A,rows:E,disabled:L},null,this.inputRef):(0,e.createVNode)(64,"input","Input__input",null,1,{placeholder:b,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,maxLength:C,disabled:L},null,this.inputRef)]})))}return d}(),m}(e.Component)},35095:function(I,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),k=["animated","format","maxValue","minValue","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","style","fillValue","color","ranges","size","bipolar","children","popUpPosition"];/** +*/var p=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,N=d.props.onInput;s||d.setEditing(!0),N&&N(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,N=d.props.onChange;s&&(d.setEditing(!1),N&&N(u,u.target.value))},d.handleKeyDown=function(u){var s=d.props,N=s.onInput,g=s.onChange,v=s.onEnter;if(u.keyCode===o.KEY_ENTER){d.setEditing(!1),g&&g(u,u.target.value),N&&N(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=p(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,N=this.inputRef.current;N&&(N.value=p(s),N.selectionStart=0,N.selectionEnd=N.value.length),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){N.focus(),u.props.autoSelect&&N.select()},1)}return d}(),i.componentDidUpdate=function(){function d(u,s){var N=this.state.editing,g=u.value,v=this.props.value,h=this.inputRef.current;h&&!N&&g!==v&&(h.value=p(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,N=u.onInput,g=u.onChange,v=u.onEnter,h=u.value,C=u.maxLength,b=u.placeholder,B=u.autofocus,L=u.disabled,w=u.multiline,T=u.cols,A=T===void 0?32:T,x=u.rows,E=x===void 0?4:x,M=k(u,f),R=M.className,O=M.fluid,D=M.monospace,j=k(M,V);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["Input",O&&"Input--fluid",D&&"Input--monospace",L&&"Input--disabled",R])},j,{children:[(0,e.createVNode)(1,"div","Input__baseline",".",16),w?(0,e.createVNode)(128,"textarea","Input__textarea",null,1,{placeholder:b,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,maxLength:C,cols:A,rows:E,disabled:L},null,this.inputRef):(0,e.createVNode)(64,"input","Input__input",null,1,{placeholder:b,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,maxLength:C,disabled:L},null,this.inputRef)]})))}return d}(),m}(e.Component)},35095:function(I,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),V=n(43023),k=["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(p,l){if(p==null)return{};var c={},m=Object.keys(p),i,d;for(d=0;d=0)&&(c[i]=p[i]);return c}var y=r.Knob=function(){function p(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,V=l.step,g=l.stepPixelSize,v=l.suppressFlicker,h=l.unit,C=l.value,b=l.className,B=l.style,L=l.fillValue,w=l.color,T=l.ranges,A=T===void 0?{}:T,x=l.size,E=x===void 0?1:x,M=l.bipolar,R=l.children,O=l.popUpPosition,D=S(l,k);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:V,stepPixelSize:g,suppressFlicker:v,unit:h,value:C},{children:function(){function j(U){var W=U.dragging,K=U.editing,G=U.value,$=U.displayValue,z=U.displayElement,Y=U.inputElement,J=U.handleDragStart,ie=(0,a.scale)(L!=null?L:$,d,i),re=(0,a.scale)($,d,i),de=w||(0,a.keyOfMatchingRange)(L!=null?L:G,A)||"default",ve=(re-.5)*270;return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,t.classes)(["Knob","Knob--color--"+de,M&&"Knob--bipolar",b,(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("+ve+"deg)"}}),2),W&&(0,e.createVNode)(1,"div",(0,t.classes)(["Knob__popupValue",O&&"Knob__popupValue--"+O]),z,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":((M?2.75:2)-ie*1.5)*Math.PI*50},cx:"50",cy:"50",r:"50"}),2,{viewBox:"0 0 100 100"}),Y],0,Object.assign({},(0,o.computeBoxProps)(Object.assign({style:Object.assign({"font-size":E+"em"},B)},D)),{onMouseDown:J})))}return j}()})))}return p}()},36563:function(I,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(p,l){if(p==null)return{};var c={},m=Object.keys(p),i,d;for(d=0;d=0)&&(c[i]=p[i]);return c}var y=r.Knob=function(){function p(l){if(Byond.IS_LTE_IE8)return(0,e.normalizeProps)((0,e.createComponentVNode)(2,V.NumberInput,Object.assign({},l)));var c=l.animated,m=l.format,i=l.maxValue,d=l.minValue,u=l.onChange,s=l.onDrag,N=l.step,g=l.stepPixelSize,v=l.suppressFlicker,h=l.unit,C=l.value,b=l.className,B=l.style,L=l.fillValue,w=l.color,T=l.ranges,A=T===void 0?{}:T,x=l.size,E=x===void 0?1:x,M=l.bipolar,R=l.children,O=l.popUpPosition,D=S(l,k);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:N,stepPixelSize:g,suppressFlicker:v,unit:h,value:C},{children:function(){function j(U){var W=U.dragging,K=U.editing,G=U.value,$=U.displayValue,z=U.displayElement,Y=U.inputElement,J=U.handleDragStart,ie=(0,a.scale)(L!=null?L:$,d,i),re=(0,a.scale)($,d,i),de=w||(0,a.keyOfMatchingRange)(L!=null?L:G,A)||"default",ve=(re-.5)*270;return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,t.classes)(["Knob","Knob--color--"+de,M&&"Knob--bipolar",b,(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("+ve+"deg)"}}),2),W&&(0,e.createVNode)(1,"div",(0,t.classes)(["Knob__popupValue",O&&"Knob__popupValue--"+O]),z,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":((M?2.75:2)-ie*1.5)*Math.PI*50},cx:"50",cy:"50",r:"50"}),2,{viewBox:"0 0 100 100"}),Y],0,Object.assign({},(0,o.computeBoxProps)(Object.assign({style:Object.assign({"font-size":E+"em"},B)},D)),{onMouseDown:J})))}return j}()})))}return p}()},36563:function(I,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,y){if(S==null)return{};var p={},l=Object.keys(S),c,m;for(m=0;m=0)&&(p[c]=S[c]);return p}var N=r.LabeledControls=function(){function S(y){var p=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:p})))}return S}(),k=function(y){var p=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:p})]})))})};N.Item=k},88488:function(I,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 p={},l=Object.keys(S),c,m;for(m=0;m=0)&&(p[c]=S[c]);return p}var V=r.LabeledControls=function(){function S(y){var p=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:p})))}return S}(),k=function(y){var p=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:p})]})))})};V.Item=k},88488:function(I,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(y){var p=y.children;return(0,e.createVNode)(1,"table","LabeledList",p,0)}return S}();f.defaultHooks=a.pureComponentHooks;var N=function(y){var p=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,V=y.children;return(0,e.createVNode)(1,"tr",(0,a.classes)(["LabeledList__row",p]),[(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,V]}),u&&(0,e.createVNode)(1,"td","LabeledList__cell LabeledList__buttons",u,0)],0)};N.defaultHooks=a.pureComponentHooks;var k=function(y){var p=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":p,"padding-bottom":p}}),2)};k.defaultHooks=a.pureComponentHooks,f.Item=N,f.Divider=k},59743:function(I,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 p=y.children;return(0,e.createVNode)(1,"table","LabeledList",p,0)}return S}();f.defaultHooks=a.pureComponentHooks;var V=function(y){var p=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,N=y.children;return(0,e.createVNode)(1,"tr",(0,a.classes)(["LabeledList__row",p]),[(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,N]}),u&&(0,e.createVNode)(1,"td","LabeledList__cell LabeledList__buttons",u,0)],0)};V.defaultHooks=a.pureComponentHooks;var k=function(y){var p=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":p,"padding-bottom":p}}),2)};k.defaultHooks=a.pureComponentHooks,f.Item=V,f.Divider=k},59743:function(I,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,y){if(S==null)return{};var p={},l=Object.keys(S),c,m;for(m=0;m=0)&&(p[c]=S[c]);return p}var k=r.Modal=function(){function S(y){var p=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",p,(0,t.computeBoxClassName)(m)]),l,0,Object.assign({},(0,t.computeBoxProps)(m))))})}return S}()},94405:function(I,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 k(m,i){m.prototype=Object.create(i.prototype),m.prototype.constructor=m,S(m,i)}function S(m,i){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function d(u,s){return u.__proto__=s,u}return d}(),S(m,i)}var y=function(i){return i.stopPropagation&&i.stopPropagation(),i.preventDefault&&i.preventDefault(),i.cancelBubble=!0,i.returnValue=!1,!1},p=r.NanoMap=function(m){k(i,m);function i(u){var s;s=m.call(this,u)||this;var V=window.innerWidth/2-256,g=window.innerHeight/2-256;return s.state={offsetX:128,offsetY:48,transform:"none",dragging:!1,originX:null,originY:null,zoom:1},s.handleDragStart=function(v){s.ref=v.target,s.setState({dragging:!1,originX:v.screenX,originY:v.screenY}),document.addEventListener("mousemove",s.handleDragMove),document.addEventListener("mouseup",s.handleDragEnd),y(v)},s.handleDragMove=function(v){s.setState(function(h){var C=Object.assign({},h),b=v.screenX-C.originX,B=v.screenY-C.originY;return h.dragging?(C.offsetX+=b,C.offsetY+=B,C.originX=v.screenX,C.originY=v.screenY):C.dragging=!0,C}),y(v)},s.handleDragEnd=function(v){s.setState({dragging:!1,originX:null,originY:null}),document.removeEventListener("mousemove",s.handleDragMove),document.removeEventListener("mouseup",s.handleDragEnd),y(v)},s.handleZoom=function(v,h){s.setState(function(C){var b=Math.min(Math.max(h,1),8),B=(b-C.zoom)*1.5;return C.zoom=b,C.offsetX=C.offsetX-262*B,C.offsetY=C.offsetY-256*B,u.onZoom&&u.onZoom(C.zoom),C})},s}var d=i.prototype;return d.render=function(){function u(){var s=(0,t.useBackend)(this.context),V=s.config,g=this.state,v=g.dragging,h=g.offsetX,C=g.offsetY,b=g.zoom,B=b===void 0?1:b,L=this.props.children,w=V.map+"_nanomap_z1.png",T=510*B+"px",A={width:T,height:T,"margin-top":C+"px","margin-left":h+"px",overflow:"hidden",position:"relative","background-size":"cover","background-repeat":"no-repeat","text-align":"center",cursor:v?"move":"auto"},x={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:A,onMouseDown:this.handleDragStart,children:[(0,e.createVNode)(1,"img",null,null,1,{src:(0,N.resolveAsset)(w),style:x}),(0,e.createComponentVNode)(2,a.Box,{children:L})]}),(0,e.createComponentVNode)(2,c,{zoom:B,onZoom:this.handleZoom})]})}return u}(),i}(e.Component),l=function(i,d){var u=i.x,s=i.y,V=i.zoom,g=V===void 0?1:V,v=i.icon,h=i.tooltip,C=i.color,b=u*2*g-g-3,B=s*2*g-g-3;return(0,e.createVNode)(1,"div",null,(0,e.createComponentVNode)(2,a.Tooltip,{content:h,children:(0,e.createComponentVNode)(2,a.Box,{position:"absolute",className:"NanoMap__marker",lineHeight:"0",bottom:B+"px",left:b+"px",children:(0,e.createComponentVNode)(2,a.Icon,{name:v,color:C,fontSize:"6px"})})}),2)};p.Marker=l;var c=function(i,d){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 u(s){return s+"x"}return u}(),value:i.zoom,onDrag:function(){function u(s,V){return i.onZoom(s,V)}return u}()})})})})};p.Zoomer=c},19153:function(I,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 V(S,y){if(S==null)return{};var p={},l=Object.keys(S),c,m;for(m=0;m=0)&&(p[c]=S[c]);return p}var k=r.Modal=function(){function S(y){var p=y.className,l=y.children,c=y.onEnter,m=V(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",p,(0,t.computeBoxClassName)(m)]),l,0,Object.assign({},(0,t.computeBoxProps)(m))))})}return S}()},94405:function(I,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),V=n(96820);function k(m,i){m.prototype=Object.create(i.prototype),m.prototype.constructor=m,S(m,i)}function S(m,i){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function d(u,s){return u.__proto__=s,u}return d}(),S(m,i)}var y=function(i){return i.stopPropagation&&i.stopPropagation(),i.preventDefault&&i.preventDefault(),i.cancelBubble=!0,i.returnValue=!1,!1},p=r.NanoMap=function(m){k(i,m);function i(u){var s;s=m.call(this,u)||this;var N=window.innerWidth/2-256,g=window.innerHeight/2-256;return s.state={offsetX:128,offsetY:48,transform:"none",dragging:!1,originX:null,originY:null,zoom:1},s.handleDragStart=function(v){s.ref=v.target,s.setState({dragging:!1,originX:v.screenX,originY:v.screenY}),document.addEventListener("mousemove",s.handleDragMove),document.addEventListener("mouseup",s.handleDragEnd),y(v)},s.handleDragMove=function(v){s.setState(function(h){var C=Object.assign({},h),b=v.screenX-C.originX,B=v.screenY-C.originY;return h.dragging?(C.offsetX+=b,C.offsetY+=B,C.originX=v.screenX,C.originY=v.screenY):C.dragging=!0,C}),y(v)},s.handleDragEnd=function(v){s.setState({dragging:!1,originX:null,originY:null}),document.removeEventListener("mousemove",s.handleDragMove),document.removeEventListener("mouseup",s.handleDragEnd),y(v)},s.handleZoom=function(v,h){s.setState(function(C){var b=Math.min(Math.max(h,1),8),B=(b-C.zoom)*1.5;return C.zoom=b,C.offsetX=C.offsetX-262*B,C.offsetY=C.offsetY-256*B,u.onZoom&&u.onZoom(C.zoom),C})},s}var d=i.prototype;return d.render=function(){function u(){var s=(0,t.useBackend)(this.context),N=s.config,g=this.state,v=g.dragging,h=g.offsetX,C=g.offsetY,b=g.zoom,B=b===void 0?1:b,L=this.props.children,w=N.map+"_nanomap_z1.png",T=510*B+"px",A={width:T,height:T,"margin-top":C+"px","margin-left":h+"px",overflow:"hidden",position:"relative","background-size":"cover","background-repeat":"no-repeat","text-align":"center",cursor:v?"move":"auto"},x={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:A,onMouseDown:this.handleDragStart,children:[(0,e.createVNode)(1,"img",null,null,1,{src:(0,V.resolveAsset)(w),style:x}),(0,e.createComponentVNode)(2,a.Box,{children:L})]}),(0,e.createComponentVNode)(2,c,{zoom:B,onZoom:this.handleZoom})]})}return u}(),i}(e.Component),l=function(i,d){var u=i.x,s=i.y,N=i.zoom,g=N===void 0?1:N,v=i.icon,h=i.tooltip,C=i.color,b=u*2*g-g-3,B=s*2*g-g-3;return(0,e.createVNode)(1,"div",null,(0,e.createComponentVNode)(2,a.Tooltip,{content:h,children:(0,e.createComponentVNode)(2,a.Box,{position:"absolute",className:"NanoMap__marker",lineHeight:"0",bottom:B+"px",left:b+"px",children:(0,e.createComponentVNode)(2,a.Icon,{name:v,color:C,fontSize:"6px"})})}),2)};p.Marker=l;var c=function(i,d){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 u(s){return s+"x"}return u}(),value:i.zoom,onDrag:function(){function u(s,N){return i.onZoom(s,N)}return u}()})})})})};p.Zoomer=c},19153:function(I,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(k,S){if(k==null)return{};var y={},p=Object.keys(k),l,c;for(c=0;c=0)&&(y[l]=k[l]);return y}var N=r.NoticeBox=function(){function k(S){var y=S.className,p=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",p&&"NoticeBox--color--"+p,l&&"NoticeBox--type--info",m&&"NoticeBox--type--success",i&&"NoticeBox--type--danger",y])},d)))}return k}();N.defaultHooks=a.pureComponentHooks},43023:function(I,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(p,l){p.prototype=Object.create(l.prototype),p.prototype.constructor=p,k(p,l)}function k(p,l){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function c(m,i){return m.__proto__=i,m}return c}(),k(p,l)}/** + */function f(k,S){if(k==null)return{};var y={},p=Object.keys(k),l,c;for(c=0;c=0)&&(y[l]=k[l]);return y}var V=r.NoticeBox=function(){function k(S){var y=S.className,p=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",p&&"NoticeBox--color--"+p,l&&"NoticeBox--type--info",m&&"NoticeBox--type--success",i&&"NoticeBox--type--danger",y])},d)))}return k}();V.defaultHooks=a.pureComponentHooks},43023:function(I,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 V(p,l){p.prototype=Object.create(l.prototype),p.prototype.constructor=p,k(p,l)}function k(p,l){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function c(m,i){return m.__proto__=i,m}return c}(),k(p,l)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var S=400,y=r.NumberInput=function(p){N(l,p);function l(m){var i;i=p.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 u=i.props.suppressFlicker;u>0&&(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,V=i.state.editing;V||(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,h=g.value,C=i.props.onDrag;v&&C&&C(u,h)},i.props.updateRate||S),document.addEventListener("mousemove",i.handleDragMove),document.addEventListener("mouseup",i.handleDragEnd))},i.handleDragMove=function(u){var s=i.props,V=s.minValue,g=s.maxValue,v=s.step,h=s.stepPixelSize;i.setState(function(C){var b=Object.assign({},C),B=b.origin-u.screenY;if(C.dragging){var L=Number.isFinite(V)?V%v:0;b.internalValue=(0,a.clamp)(b.internalValue+B*v/h,V-v,g+v),b.value=(0,a.clamp)(b.internalValue-b.internalValue%v+L,V,g),b.origin=u.screenY}else Math.abs(B)>4&&(b.dragging=!0);return b})},i.handleDragEnd=function(u){var s=i.props,V=s.onChange,g=s.onDrag,v=i.state,h=v.dragging,C=v.value,b=v.internalValue;if(document.body.style["pointer-events"]="auto",clearTimeout(i.timer),clearInterval(i.dragInterval),i.setState({dragging:!1,editing:!h,origin:null}),document.removeEventListener("mousemove",i.handleDragMove),document.removeEventListener("mouseup",i.handleDragEnd),h)i.suppressFlicker(),V&&V(u,C),g&&g(u,C);else if(i.inputRef){var B=i.inputRef.current;B.value=b;try{B.focus(),B.select()}catch(L){}}},i}var c=l.prototype;return c.render=function(){function m(){var i=this,d=this.state,u=d.dragging,s=d.editing,V=d.value,g=d.suppressingFlicker,v=this.props,h=v.className,C=v.fluid,b=v.animated,B=v.value,L=v.unit,w=v.minValue,T=v.maxValue,A=v.height,x=v.width,E=v.lineHeight,M=v.fontSize,R=v.format,O=v.onChange,D=v.onDrag,j=B;(u||g)&&(j=V);var U=function(){function K(G){return(0,e.createVNode)(1,"div","NumberInput__content",G+(L?" "+L:""),0,{unselectable:Byond.IS_LTE_IE8})}return K}(),W=b&&!u&&!g&&(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:j,format:R,children:U})||U(R?R(j):j);return(0,e.createComponentVNode)(2,f.Box,{className:(0,t.classes)(["NumberInput",C&&"NumberInput--fluid",h]),minWidth:x,minHeight:A,lineHeight:E,fontSize:M,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),W,(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:s?void 0:"none",height:A,"line-height":E,"font-size":M},onBlur:function(){function K(G){if(s){var $=(0,a.clamp)(parseFloat(G.target.value),w,T);if(Number.isNaN($)){i.setState({editing:!1});return}i.setState({editing:!1,value:$}),i.suppressFlicker(),O&&O(G,$),D&&D(G,$)}}return K}(),onKeyDown:function(){function K(G){if(G.keyCode===13){var $=(0,a.clamp)(parseFloat(G.target.value),w,T);if(Number.isNaN($)){i.setState({editing:!1});return}i.setState({editing:!1,value:$}),i.suppressFlicker(),O&&O(G,$),D&&D(G,$);return}if(G.keyCode===27){i.setState({editing:!1});return}}return K}()},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(I,r,n){"use strict";r.__esModule=!0,r.Popper=void 0;var e=n(60028),a=n(28823);function t(N,k){N.prototype=Object.create(k.prototype),N.prototype.constructor=N,o(N,k)}function o(N,k){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function S(y,p){return y.__proto__=p,y}return S}(),o(N,k)}var f=r.Popper=function(N){t(k,N);function k(){var y;return y=N.call(this)||this,y.renderedContent=void 0,y.popperInstance=void 0,k.id+=1,y}var S=k.prototype;return S.componentDidMount=function(){function y(){var p=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);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,N=i.state.editing;N||(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,h=g.value,C=i.props.onDrag;v&&C&&C(u,h)},i.props.updateRate||S),document.addEventListener("mousemove",i.handleDragMove),document.addEventListener("mouseup",i.handleDragEnd))},i.handleDragMove=function(u){var s=i.props,N=s.minValue,g=s.maxValue,v=s.step,h=s.stepPixelSize;i.setState(function(C){var b=Object.assign({},C),B=b.origin-u.screenY;if(C.dragging){var L=Number.isFinite(N)?N%v:0;b.internalValue=(0,a.clamp)(b.internalValue+B*v/h,N-v,g+v),b.value=(0,a.clamp)(b.internalValue-b.internalValue%v+L,N,g),b.origin=u.screenY}else Math.abs(B)>4&&(b.dragging=!0);return b})},i.handleDragEnd=function(u){var s=i.props,N=s.onChange,g=s.onDrag,v=i.state,h=v.dragging,C=v.value,b=v.internalValue;if(document.body.style["pointer-events"]="auto",clearTimeout(i.timer),clearInterval(i.dragInterval),i.setState({dragging:!1,editing:!h,origin:null}),document.removeEventListener("mousemove",i.handleDragMove),document.removeEventListener("mouseup",i.handleDragEnd),h)i.suppressFlicker(),N&&N(u,C),g&&g(u,C);else if(i.inputRef){var B=i.inputRef.current;B.value=b;try{B.focus(),B.select()}catch(L){}}},i}var c=l.prototype;return c.render=function(){function m(){var i=this,d=this.state,u=d.dragging,s=d.editing,N=d.value,g=d.suppressingFlicker,v=this.props,h=v.className,C=v.fluid,b=v.animated,B=v.value,L=v.unit,w=v.minValue,T=v.maxValue,A=v.height,x=v.width,E=v.lineHeight,M=v.fontSize,R=v.format,O=v.onChange,D=v.onDrag,j=B;(u||g)&&(j=N);var U=function(){function K(G){return(0,e.createVNode)(1,"div","NumberInput__content",G+(L?" "+L:""),0,{unselectable:Byond.IS_LTE_IE8})}return K}(),W=b&&!u&&!g&&(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:j,format:R,children:U})||U(R?R(j):j);return(0,e.createComponentVNode)(2,f.Box,{className:(0,t.classes)(["NumberInput",C&&"NumberInput--fluid",h]),minWidth:x,minHeight:A,lineHeight:E,fontSize:M,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),W,(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:s?void 0:"none",height:A,"line-height":E,"font-size":M},onBlur:function(){function K(G){if(s){var $=(0,a.clamp)(parseFloat(G.target.value),w,T);if(Number.isNaN($)){i.setState({editing:!1});return}i.setState({editing:!1,value:$}),i.suppressFlicker(),O&&O(G,$),D&&D(G,$)}}return K}(),onKeyDown:function(){function K(G){if(G.keyCode===13){var $=(0,a.clamp)(parseFloat(G.target.value),w,T);if(Number.isNaN($)){i.setState({editing:!1});return}i.setState({editing:!1,value:$}),i.suppressFlicker(),O&&O(G,$),D&&D(G,$);return}if(G.keyCode===27){i.setState({editing:!1});return}}return K}()},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(I,r,n){"use strict";r.__esModule=!0,r.Popper=void 0;var e=n(60028),a=n(28823);function t(V,k){V.prototype=Object.create(k.prototype),V.prototype.constructor=V,o(V,k)}function o(V,k){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function S(y,p){return y.__proto__=p,y}return S}(),o(V,k)}var f=r.Popper=function(V){t(k,V);function k(){var y;return y=V.call(this)||this,y.renderedContent=void 0,y.popperInstance=void 0,k.id+=1,y}var S=k.prototype;return S.componentDidMount=function(){function y(){var p=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[u]=c[u]);return i}var p=r.ProgressBar=function(){function c(m){var i=m.className,d=m.value,u=m.minValue,s=u===void 0?0:u,V=m.maxValue,g=V===void 0?1:V,v=m.color,h=m.ranges,C=h===void 0?{}:h,b=m.children,B=m.fractionDigits,L=B===void 0?0:B,w=y(m,f),T=(0,a.scale)(d,s,g),A=b!==void 0,x=v||(0,a.keyOfMatchingRange)(d,C)||"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?b:(0,a.toFixed)(T*100,L)+"%",0)],4,Object.assign({},(0,o.computeBoxProps)(w))))}return c}();p.defaultHooks=t.pureComponentHooks;var l=r.ProgressBarCountdown=function(c){k(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,V=u.current,g=u.end,v=y(u,N),h=(this.state.value/100-s)/(g-s);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,p,Object.assign({value:h},v)))}return d}(),m}(e.Component);l.defaultProps={rate:1e3},p.Countdown=l},49421:function(I,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"],k=["className","fluid","monospace"];function S(d,u){if(d==null)return{};var s={},V=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,p(d,u)}function p(d,u){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function s(V,g){return V.__proto__=g,V}return s}(),p(d,u)}var l=0,c=1e4,m=function(u,s,V,g){var v=s||l,h=V||V===0?V:c;if(!u||!u.length)return String(v);var C=g?parseFloat(u.replace(/[^\-\d.]/g,"")):parseInt(u.replace(/[^\-\d]/g,""),10);return isNaN(C)?String(v):String((0,t.clamp)(C,v,h))},i=r.RestrictedInput=function(d){y(u,d);function u(){var V;return V=d.call(this)||this,V.inputRef=(0,e.createRef)(),V.state={editing:!1},V.handleBlur=function(g){var v=V.state.editing;v&&V.setEditing(!1)},V.handleChange=function(g){var v=V.props,h=v.maxValue,C=v.minValue,b=v.onChange,B=v.allowFloats;g.target.value=m(g.target.value,C,h,B),b&&b(g,+g.target.value)},V.handleFocus=function(g){var v=V.state.editing;v||V.setEditing(!0)},V.handleInput=function(g){var v=V.state.editing,h=V.props.onInput;v||V.setEditing(!0),h&&h(g,+g.target.value)},V.handleKeyDown=function(g){var v=V.props,h=v.maxValue,C=v.minValue,b=v.onChange,B=v.onEnter,L=v.allowFloats;if(g.keyCode===f.KEY_ENTER){var w=m(g.target.value,C,h,L);V.setEditing(!1),b&&b(g,+w),B&&B(g,+w),g.target.blur();return}if(g.keyCode===f.KEY_ESCAPE){if(V.props.onEscape){V.props.onEscape(g);return}V.setEditing(!1),g.target.value=V.props.value,g.target.blur();return}},V}var s=u.prototype;return s.componentDidMount=function(){function V(){var g,v=this,h=this.props,C=h.maxValue,b=h.minValue,B=h.allowFloats,L=(g=this.props.value)==null?void 0:g.toString(),w=this.inputRef.current;w&&(w.value=m(L,b,C,B)),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){w.focus(),v.props.autoSelect&&w.select()},1)}return V}(),s.componentDidUpdate=function(){function V(g,v){var h,C,b=this.props,B=b.maxValue,L=b.minValue,w=b.allowFloats,T=this.state.editing,A=(h=g.value)==null?void 0:h.toString(),x=(C=this.props.value)==null?void 0:C.toString(),E=this.inputRef.current;E&&!T&&x!==A&&x!==E.value&&(E.value=m(x,L,B,w))}return V}(),s.setEditing=function(){function V(g){this.setState({editing:g})}return V}(),s.render=function(){function V(){var g=this.props,v=g.onChange,h=g.onEnter,C=g.onInput,b=g.value,B=S(g,N),L=B.className,w=B.fluid,T=B.monospace,A=S(B,k);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({className:(0,a.classes)(["Input",w&&"Input--fluid",T&&"Input--monospace",L])},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 V}(),u}(e.Component)},37479:function(I,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 k(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 p=r.ProgressBar=function(){function c(m){var i=m.className,d=m.value,u=m.minValue,s=u===void 0?0:u,N=m.maxValue,g=N===void 0?1:N,v=m.color,h=m.ranges,C=h===void 0?{}:h,b=m.children,B=m.fractionDigits,L=B===void 0?0:B,w=y(m,f),T=(0,a.scale)(d,s,g),A=b!==void 0,x=v||(0,a.keyOfMatchingRange)(d,C)||"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?b:(0,a.toFixed)(T*100,L)+"%",0)],4,Object.assign({},(0,o.computeBoxProps)(w))))}return c}();p.defaultHooks=t.pureComponentHooks;var l=r.ProgressBarCountdown=function(c){k(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,N=u.current,g=u.end,v=y(u,V),h=(this.state.value/100-s)/(g-s);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,p,Object.assign({value:h},v)))}return d}(),m}(e.Component);l.defaultProps={rate:1e3},p.Countdown=l},49421:function(I,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),V=["onChange","onEnter","onInput","value"],k=["className","fluid","monospace"];function S(d,u){if(d==null)return{};var s={},N=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,p(d,u)}function p(d,u){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function s(N,g){return N.__proto__=g,N}return s}(),p(d,u)}var l=0,c=1e4,m=function(u,s,N,g){var v=s||l,h=N||N===0?N:c;if(!u||!u.length)return String(v);var C=g?parseFloat(u.replace(/[^\-\d.]/g,"")):parseInt(u.replace(/[^\-\d]/g,""),10);return isNaN(C)?String(v):String((0,t.clamp)(C,v,h))},i=r.RestrictedInput=function(d){y(u,d);function u(){var N;return N=d.call(this)||this,N.inputRef=(0,e.createRef)(),N.state={editing:!1},N.handleBlur=function(g){var v=N.state.editing;v&&N.setEditing(!1)},N.handleChange=function(g){var v=N.props,h=v.maxValue,C=v.minValue,b=v.onChange,B=v.allowFloats;g.target.value=m(g.target.value,C,h,B),b&&b(g,+g.target.value)},N.handleFocus=function(g){var v=N.state.editing;v||N.setEditing(!0)},N.handleInput=function(g){var v=N.state.editing,h=N.props.onInput;v||N.setEditing(!0),h&&h(g,+g.target.value)},N.handleKeyDown=function(g){var v=N.props,h=v.maxValue,C=v.minValue,b=v.onChange,B=v.onEnter,L=v.allowFloats;if(g.keyCode===f.KEY_ENTER){var w=m(g.target.value,C,h,L);N.setEditing(!1),b&&b(g,+w),B&&B(g,+w),g.target.blur();return}if(g.keyCode===f.KEY_ESCAPE){if(N.props.onEscape){N.props.onEscape(g);return}N.setEditing(!1),g.target.value=N.props.value,g.target.blur();return}},N}var s=u.prototype;return s.componentDidMount=function(){function N(){var g,v=this,h=this.props,C=h.maxValue,b=h.minValue,B=h.allowFloats,L=(g=this.props.value)==null?void 0:g.toString(),w=this.inputRef.current;w&&(w.value=m(L,b,C,B)),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){w.focus(),v.props.autoSelect&&w.select()},1)}return N}(),s.componentDidUpdate=function(){function N(g,v){var h,C,b=this.props,B=b.maxValue,L=b.minValue,w=b.allowFloats,T=this.state.editing,A=(h=g.value)==null?void 0:h.toString(),x=(C=this.props.value)==null?void 0:C.toString(),E=this.inputRef.current;E&&!T&&x!==A&&x!==E.value&&(E.value=m(x,L,B,w))}return N}(),s.setEditing=function(){function N(g){this.setState({editing:g})}return N}(),s.render=function(){function N(){var g=this.props,v=g.onChange,h=g.onEnter,C=g.onInput,b=g.value,B=S(g,V),L=B.className,w=B.fluid,T=B.monospace,A=S(B,k);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({className:(0,a.classes)(["Input",w&&"Input--fluid",T&&"Input--monospace",L])},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 N}(),u}(e.Component)},37479:function(I,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),V=["value","minValue","maxValue","ranges","alertAfter","format","size","className","style"];/** * @file * @copyright 2020 bobbahbrown (https://github.com/bobbahbrown) * @license MIT - */function k(y,p){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(p){if(Byond.IS_LTE_IE8)return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.AnimatedNumber,Object.assign({},p)));var l=p.value,c=p.minValue,m=c===void 0?1:c,i=p.maxValue,d=i===void 0?1:i,u=p.ranges,s=p.alertAfter,V=p.format,g=p.size,v=g===void 0?1:g,h=p.className,C=p.style,b=k(p,N),B=(0,a.scale)(l,m,d),L=(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]=p[i]);return c}function k(p,l){p.prototype=Object.create(l.prototype),p.prototype.constructor=p,S(p,l)}function S(p,l){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function c(m,i){return m.__proto__=i,m}return c}(),S(p,l)}/** + */function k(y,p){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(p){if(Byond.IS_LTE_IE8)return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.AnimatedNumber,Object.assign({},p)));var l=p.value,c=p.minValue,m=c===void 0?1:c,i=p.maxValue,d=i===void 0?1:i,u=p.ranges,s=p.alertAfter,N=p.format,g=p.size,v=g===void 0?1:g,h=p.className,C=p.style,b=k(p,V),B=(0,a.scale)(l,m,d),L=(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]=p[i]);return c}function k(p,l){p.prototype=Object.create(l.prototype),p.prototype.constructor=p,S(p,l)}function S(p,l){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function c(m,i){return m.__proto__=i,m}return c}(),S(p,l)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var y=r.Section=function(p){k(l,p);function l(m){var i;return i=p.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,V=i.fill,g=i.fitted,v=i.scrollable,h=i.children,C=N(i,f),b=(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",V&&"Section--fill",g&&"Section--fitted",v&&"Section--scrollable",d,(0,o.computeBoxClassName)(C)]),[b&&(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",h,0,null,null,this.scrollableRef),2)],0,Object.assign({},(0,o.computeBoxProps)(C))))}return m}(),l}(e.Component)},83611:function(I,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),k=["animated","format","maxValue","minValue","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","fillValue","color","ranges","children","disabled"];/** +*/var y=r.Section=function(p){k(l,p);function l(m){var i;return i=p.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,N=i.fill,g=i.fitted,v=i.scrollable,h=i.children,C=V(i,f),b=(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",N&&"Section--fill",g&&"Section--fitted",v&&"Section--scrollable",d,(0,o.computeBoxClassName)(C)]),[b&&(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",h,0,null,null,this.scrollableRef),2)],0,Object.assign({},(0,o.computeBoxProps)(C))))}return m}(),l}(e.Component)},83611:function(I,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),V=n(43023),k=["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(p,l){if(p==null)return{};var c={},m=Object.keys(p),i,d;for(d=0;d=0)&&(c[i]=p[i]);return c}var y=r.Slider=function(){function p(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,V=l.step,g=l.stepPixelSize,v=l.suppressFlicker,h=l.unit,C=l.value,b=l.className,B=l.fillValue,L=l.color,w=l.ranges,T=w===void 0?{}:w,A=l.children,x=l.disabled,E=S(l,k),M=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:V,stepPixelSize:g,suppressFlicker:v,unit:h,value:C,disabled:x},{children:function(){function R(O){var D=O.dragging,j=O.editing,U=O.value,W=O.displayValue,K=O.displayElement,G=O.inputElement,$=O.handleDragStart,z=B!=null,Y=(0,a.scale)(U,d,i),J=(0,a.scale)(B!=null?B:W,d,i),ie=(0,a.scale)(W,d,i),re=L||(0,a.keyOfMatchingRange)(B!=null?B:U,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--"+re,b,(0,o.computeBoxClassName)(E)]),[(0,e.createVNode)(1,"div",(0,t.classes)(["ProgressBar__fill",z&&"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,ie))*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",K,0)],0,{style:{width:(0,a.clamp01)(ie)*100+"%"}}),(0,e.createVNode)(1,"div","ProgressBar__content",M?A:K,0),G],0,Object.assign({disabled:x},(0,o.computeBoxProps)(E),{onMouseDown:$})))}return R}()})))}return p}()},78581:function(I,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(p,l){if(p==null)return{};var c={},m=Object.keys(p),i,d;for(d=0;d=0)&&(c[i]=p[i]);return c}var y=r.Slider=function(){function p(l){if(Byond.IS_LTE_IE8)return(0,e.normalizeProps)((0,e.createComponentVNode)(2,V.NumberInput,Object.assign({},l)));var c=l.animated,m=l.format,i=l.maxValue,d=l.minValue,u=l.onChange,s=l.onDrag,N=l.step,g=l.stepPixelSize,v=l.suppressFlicker,h=l.unit,C=l.value,b=l.className,B=l.fillValue,L=l.color,w=l.ranges,T=w===void 0?{}:w,A=l.children,x=l.disabled,E=S(l,k),M=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:N,stepPixelSize:g,suppressFlicker:v,unit:h,value:C,disabled:x},{children:function(){function R(O){var D=O.dragging,j=O.editing,U=O.value,W=O.displayValue,K=O.displayElement,G=O.inputElement,$=O.handleDragStart,z=B!=null,Y=(0,a.scale)(U,d,i),J=(0,a.scale)(B!=null?B:W,d,i),ie=(0,a.scale)(W,d,i),re=L||(0,a.keyOfMatchingRange)(B!=null?B:U,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--"+re,b,(0,o.computeBoxClassName)(E)]),[(0,e.createVNode)(1,"div",(0,t.classes)(["ProgressBar__fill",z&&"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,ie))*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",K,0)],0,{style:{width:(0,a.clamp01)(ie)*100+"%"}}),(0,e.createVNode)(1,"div","ProgressBar__content",M?A:K,0),G],0,Object.assign({disabled:x},(0,o.computeBoxProps)(E),{onMouseDown:$})))}return R}()})))}return p}()},78581:function(I,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"],V=["className","hidden"];/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */function k(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=k(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=k(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 p=function(c){var m=c.className,i=c.hidden,d=k(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=p},99753:function(I,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 k(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=k(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=k(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 p=function(c){var m=c.className,i=c.hidden,d=k(c,V);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=p},99753:function(I,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"],V=["className","collapsing","header"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function k(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=k(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=k(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 p=r.TableCell=function(){function l(c){var m=c.className,i=c.collapsing,d=c.header,u=k(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}();p.defaultHooks=a.pureComponentHooks,S.Row=y,S.Cell=p},96517:function(I,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 k(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=k(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=k(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 p=r.TableCell=function(){function l(c){var m=c.className,i=c.collapsing,d=c.header,u=k(c,V);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}();p.defaultHooks=a.pureComponentHooks,S.Row=y,S.Cell=p},96517:function(I,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"],V=["className","selected","color","icon","leftSlot","rightSlot","children"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function k(p,l){if(p==null)return{};var c={},m=Object.keys(p),i,d;for(d=0;d=0)&&(c[i]=p[i]);return c}var S=r.Tabs=function(){function p(l){var c=l.className,m=l.vertical,i=l.fill,d=l.fluid,u=l.children,s=k(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 p}(),y=function(l){var c=l.className,m=l.selected,i=l.color,d=l.icon,u=l.leftSlot,s=l.rightSlot,V=l.children,g=k(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",V,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(I,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"],k=["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,p(c,m)}function p(c,m){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function i(d,u){return d.__proto__=u,d}return i}(),p(c,m)}/** + */function k(p,l){if(p==null)return{};var c={},m=Object.keys(p),i,d;for(d=0;d=0)&&(c[i]=p[i]);return c}var S=r.Tabs=function(){function p(l){var c=l.className,m=l.vertical,i=l.fill,d=l.fluid,u=l.children,s=k(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 p}(),y=function(l){var c=l.className,m=l.selected,i=l.color,d=l.icon,u=l.leftSlot,s=l.rightSlot,N=l.children,g=k(l,V);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",N,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(I,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),V=["onChange","onKeyDown","onKeyPress","onInput","onFocus","onBlur","onEnter","value","maxLength","placeholder"],k=["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,p(c,m)}function p(c,m){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function i(d,u){return d.__proto__=u,d}return i}(),p(c,m)}/** * @file * @copyright 2020 Aleksej Komarov * @author Warlockd * @license MIT -*/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 V=d.dontUseTabForIndent,g=V===void 0?!1:V;return s.handleOnInput=function(v){var h=s.state.editing,C=s.props.onInput;h||s.setEditing(!0),C&&C(v,v.target.value)},s.handleOnChange=function(v){var h=s.state.editing,C=s.props.onChange;h&&s.setEditing(!1),C&&C(v,v.target.value)},s.handleKeyPress=function(v){var h=s.state.editing,C=s.props.onKeyPress;h||s.setEditing(!0),C&&C(v,v.target.value)},s.handleKeyDown=function(v){var h=s.state.editing,C=s.props,b=C.onChange,B=C.onInput,L=C.onEnter,w=C.onKeyDown;if(v.keyCode===f.KEY_ENTER){s.setEditing(!1),b&&b(v,v.target.value),B&&B(v,v.target.value),L&&L(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(h||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,M=A.selectionEnd;v.target.value=x.substring(0,E)+" "+x.substring(M),v.target.selectionEnd=E+1}}},s.handleFocus=function(v){var h=s.state.editing;h||s.setEditing(!0)},s.handleBlur=function(v){var h=s.state.editing,C=s.props.onChange;h&&(s.setEditing(!1),C&&C(v,v.target.value))},s}var i=m.prototype;return i.componentDidMount=function(){function d(){var u=this,s=this.props.value,V=this.textareaRef.current;V&&(V.value=(0,o.toInputValue)(s)),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){V.focus(),u.props.autoSelect&&V.select()},1)}return d}(),i.componentDidUpdate=function(){function d(u,s){var V=u.value,g=this.props.value,v=this.textareaRef.current;v&&typeof g=="string"&&V!==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,V=u.onKeyDown,g=u.onKeyPress,v=u.onInput,h=u.onFocus,C=u.onBlur,b=u.onEnter,B=u.value,L=u.maxLength,w=u.placeholder,T=S(u,N),A=T.className,x=T.fluid,E=S(T,k);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:L},null,this.textareaRef)})))}return d}(),m}(e.Component)},71218:function(I,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(I,r,n){"use strict";r.__esModule=!0,r.Tooltip=void 0;var e=n(28823),a=n(60028),t;function o(y,p){y.prototype=Object.create(p.prototype),y.prototype.constructor=y,f(y,p)}function f(y,p){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function l(c,m){return c.__proto__=m,c}return l}(),f(y,p)}var N={modifiers:[{name:"eventListeners",enabled:!1}]},k={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(p,y);function p(){return y.apply(this,arguments)||this}var l=p.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=p.renderedTooltip;d===void 0&&(d=document.createElement("div"),d.className="Tooltip",document.body.appendChild(d),p.renderedTooltip=d),p.currentHoveredElement=i,d.style.opacity="1",m.renderPopperContent()}),i.addEventListener("mouseleave",function(){m.fadeOut()}))}return c}(),l.fadeOut=function(){function c(){p.currentHoveredElement===this.getDOMNode()&&(p.currentHoveredElement=void 0,p.renderedTooltip.style.opacity="0")}return c}(),l.renderPopperContent=function(){function c(){var m=this,i=p.renderedTooltip;i&&(0,e.render)((0,e.createVNode)(1,"span",null,this.props.content,0),i,function(){var d=p.singletonPopper;d===void 0?(d=(0,a.createPopper)(p.virtualElement,i,Object.assign({},N,{placement:m.props.position||"auto"})),p.singletonPopper=d):(d.setOptions(Object.assign({},N,{placement:m.props.position||"auto"})),d.update())},this.context)}return c}(),l.componentDidUpdate=function(){function c(){p.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}(),p}(e.Component);t=S,S.renderedTooltip=void 0,S.singletonPopper=void 0,S.currentHoveredElement=void 0,S.virtualElement={getBoundingClientRect:function(){function y(){var p,l;return(p=(l=t.currentHoveredElement)==null?void 0:l.getBoundingClientRect())!=null?p:k}return y}()}},2971:function(I,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 k=n(75614);r.ByondUi=k.ByondUi;var S=n(2909);r.Chart=S.Chart;var y=n(52760);r.Collapsible=y.Collapsible;var p=n(25762);r.ColorBox=p.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 V=n(69433);r.Icon=V.Icon;var g=n(51190);r.Input=g.Input;var v=n(35095);r.Knob=v.Knob;var h=n(36563);r.LabeledControls=h.LabeledControls;var C=n(88488);r.LabeledList=C.LabeledList;var b=n(59743);r.Modal=b.Modal;var B=n(94405);r.NanoMap=B.NanoMap;var L=n(19153);r.NoticeBox=L.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 M=n(43308);r.Section=M.Section;var R=n(83611);r.Slider=R.Slider;var O=n(78581);r.Stack=O.Stack;var D=n(99753);r.Table=D.Table;var j=n(96517);r.Tabs=j.Tabs;var U=n(12764);r.TextArea=U.TextArea;var W=n(71218);r.TimeDisplay=W.TimeDisplay;var K=n(30341);r.Tooltip=K.Tooltip},30381:function(I,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"}],k=[{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=k.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=k.find(function(d){return d.id===m||d.name.toLowerCase()===m});return i&&i.color}return l}(),p=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(I,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 N=d.dontUseTabForIndent,g=N===void 0?!1:N;return s.handleOnInput=function(v){var h=s.state.editing,C=s.props.onInput;h||s.setEditing(!0),C&&C(v,v.target.value)},s.handleOnChange=function(v){var h=s.state.editing,C=s.props.onChange;h&&s.setEditing(!1),C&&C(v,v.target.value)},s.handleKeyPress=function(v){var h=s.state.editing,C=s.props.onKeyPress;h||s.setEditing(!0),C&&C(v,v.target.value)},s.handleKeyDown=function(v){var h=s.state.editing,C=s.props,b=C.onChange,B=C.onInput,L=C.onEnter,w=C.onKeyDown;if(v.keyCode===f.KEY_ENTER){s.setEditing(!1),b&&b(v,v.target.value),B&&B(v,v.target.value),L&&L(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(h||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,M=A.selectionEnd;v.target.value=x.substring(0,E)+" "+x.substring(M),v.target.selectionEnd=E+1}}},s.handleFocus=function(v){var h=s.state.editing;h||s.setEditing(!0)},s.handleBlur=function(v){var h=s.state.editing,C=s.props.onChange;h&&(s.setEditing(!1),C&&C(v,v.target.value))},s}var i=m.prototype;return i.componentDidMount=function(){function d(){var u=this,s=this.props.value,N=this.textareaRef.current;N&&(N.value=(0,o.toInputValue)(s)),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){N.focus(),u.props.autoSelect&&N.select()},1)}return d}(),i.componentDidUpdate=function(){function d(u,s){var N=u.value,g=this.props.value,v=this.textareaRef.current;v&&typeof g=="string"&&N!==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,N=u.onKeyDown,g=u.onKeyPress,v=u.onInput,h=u.onFocus,C=u.onBlur,b=u.onEnter,B=u.value,L=u.maxLength,w=u.placeholder,T=S(u,V),A=T.className,x=T.fluid,E=S(T,k);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:L},null,this.textareaRef)})))}return d}(),m}(e.Component)},71218:function(I,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(V){return V.length<2?"0"+V:V}).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(I,r,n){"use strict";r.__esModule=!0,r.Tooltip=void 0;var e=n(28823),a=n(60028),t;function o(y,p){y.prototype=Object.create(p.prototype),y.prototype.constructor=y,f(y,p)}function f(y,p){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function l(c,m){return c.__proto__=m,c}return l}(),f(y,p)}var V={modifiers:[{name:"eventListeners",enabled:!1}]},k={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(p,y);function p(){return y.apply(this,arguments)||this}var l=p.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=p.renderedTooltip;d===void 0&&(d=document.createElement("div"),d.className="Tooltip",document.body.appendChild(d),p.renderedTooltip=d),p.currentHoveredElement=i,d.style.opacity="1",m.renderPopperContent()}),i.addEventListener("mouseleave",function(){m.fadeOut()}))}return c}(),l.fadeOut=function(){function c(){p.currentHoveredElement===this.getDOMNode()&&(p.currentHoveredElement=void 0,p.renderedTooltip.style.opacity="0")}return c}(),l.renderPopperContent=function(){function c(){var m=this,i=p.renderedTooltip;i&&(0,e.render)((0,e.createVNode)(1,"span",null,this.props.content,0),i,function(){var d=p.singletonPopper;d===void 0?(d=(0,a.createPopper)(p.virtualElement,i,Object.assign({},V,{placement:m.props.position||"auto"})),p.singletonPopper=d):(d.setOptions(Object.assign({},V,{placement:m.props.position||"auto"})),d.update())},this.context)}return c}(),l.componentDidUpdate=function(){function c(){p.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}(),p}(e.Component);t=S,S.renderedTooltip=void 0,S.singletonPopper=void 0,S.currentHoveredElement=void 0,S.virtualElement={getBoundingClientRect:function(){function y(){var p,l;return(p=(l=t.currentHoveredElement)==null?void 0:l.getBoundingClientRect())!=null?p:k}return y}()}},2971:function(I,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 V=n(16699);r.Button=V.Button;var k=n(75614);r.ByondUi=k.ByondUi;var S=n(2909);r.Chart=S.Chart;var y=n(52760);r.Collapsible=y.Collapsible;var p=n(25762);r.ColorBox=p.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 N=n(69433);r.Icon=N.Icon;var g=n(51190);r.Input=g.Input;var v=n(35095);r.Knob=v.Knob;var h=n(36563);r.LabeledControls=h.LabeledControls;var C=n(88488);r.LabeledList=C.LabeledList;var b=n(59743);r.Modal=b.Modal;var B=n(94405);r.NanoMap=B.NanoMap;var L=n(19153);r.NoticeBox=L.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 M=n(43308);r.Section=M.Section;var R=n(83611);r.Slider=R.Slider;var O=n(78581);r.Stack=O.Stack;var D=n(99753);r.Table=D.Table;var j=n(96517);r.Tabs=j.Tabs;var U=n(12764);r.TextArea=U.TextArea;var W=n(71218);r.TimeDisplay=W.TimeDisplay;var K=n(30341);r.Tooltip=K.Tooltip},30381:function(I,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"],V=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"}],k=[{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=k.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=k.find(function(d){return d.id===m||d.name.toLowerCase()===m});return i&&i.color}return l}(),p=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(I,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(y){return f(y)})},k=r.KitchenSink=function(){function S(y,p){var l=y.panel,c=(0,a.useLocalState)(p,"kitchenSinkTheme"),m=c[0],i=(0,a.useLocalState)(p,"pageIndex",0),d=i[0],u=i[1],s=N(),V=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,h){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{color:"transparent",selected:h===d,onClick:function(){function C(){return u(h)}return C}(),children:v.meta.title},h)})})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{position:"relative",grow:1,children:(0,e.createComponentVNode)(2,g.Content,{scrollable:!0,children:V.meta.render()})})]})})}return S}()},20697:function(I,r,n){"use strict";r.__esModule=!0,r.toggleKitchenSink=r.toggleDebugLayout=r.openExternalBrowser=void 0;var e=n(90816);/** + */var f=n(69321),V=function(){return f.keys().map(function(y){return f(y)})},k=r.KitchenSink=function(){function S(y,p){var l=y.panel,c=(0,a.useLocalState)(p,"kitchenSinkTheme"),m=c[0],i=(0,a.useLocalState)(p,"pageIndex",0),d=i[0],u=i[1],s=V(),N=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,h){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{color:"transparent",selected:h===d,onClick:function(){function C(){return u(h)}return C}(),children:v.meta.title},h)})})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{position:"relative",grow:1,children:(0,e.createComponentVNode)(2,g.Content,{scrollable:!0,children:N.meta.render()})})]})})}return S}()},20697:function(I,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(y){return(0,t.acquireHotKey)(e.KEY_F11),(0,t.acquireHotKey)(e.KEY_F12),a.globalEvents.on("keydown",function(p){p.code===e.KEY_F11&&y.dispatch((0,o.toggleDebugLayout)()),p.code===e.KEY_F12&&y.dispatch((0,o.toggleKitchenSink)()),p.ctrl&&p.alt&&p.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(p){return function(l){return p(l)}}}return S}(),k=r.relayMiddleware=function(){function S(y){var p=n(87454),l=location.search==="?external";return l?p.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&&p.sendMessage({type:"relay",payload:{windowId:Byond.windowId,action:m}}),c(m)}}}return S}()},42702:function(I,r){"use strict";r.__esModule=!0,r.debugReducer=void 0;/** + */var f=["backend/update","chat/message"],V=r.debugMiddleware=function(){function S(y){return(0,t.acquireHotKey)(e.KEY_F11),(0,t.acquireHotKey)(e.KEY_F12),a.globalEvents.on("keydown",function(p){p.code===e.KEY_F11&&y.dispatch((0,o.toggleDebugLayout)()),p.code===e.KEY_F12&&y.dispatch((0,o.toggleKitchenSink)()),p.ctrl&&p.alt&&p.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(p){return function(l){return p(l)}}}return S}(),k=r.relayMiddleware=function(){function S(y){var p=n(87454),l=location.search==="?external";return l?p.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&&p.sendMessage({type:"relay",payload:{windowId:Byond.windowId,action:m}}),c(m)}}}return S}()},42702:function(I,r){"use strict";r.__esModule=!0,r.debugReducer=void 0;/** * @file * @copyright 2020 Aleksej Komarov * @license MIT @@ -210,17 +210,17 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var n=r.selectDebug=function(){function e(a){return a.debug}return e}()},45360:function(I,r,n){"use strict";r.__esModule=!0,r.storeWindowGeometry=r.setupDrag=r.setWindowSize=r.setWindowPosition=r.setWindowKey=r.resizeStartHandler=r.recallWindowGeometry=r.getWindowSize=r.getWindowPosition=r.getScreenSize=r.getScreenPosition=r.dragStartHandler=void 0;var e=n(96417),a=n(41202),t=n(50175);function o(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */o=function(){return U};var j,U={},W=Object.prototype,K=W.hasOwnProperty,G=Object.defineProperty||function(Ve,oe,le){Ve[oe]=le.value},$=typeof Symbol=="function"?Symbol:{},z=$.iterator||"@@iterator",Y=$.asyncIterator||"@@asyncIterator",J=$.toStringTag||"@@toStringTag";function ie(Ve,oe,le){return Object.defineProperty(Ve,oe,{value:le,enumerable:!0,configurable:!0,writable:!0}),Ve[oe]}try{ie({},"")}catch(Ve){ie=function(le,he,ue){return le[he]=ue}}function re(Ve,oe,le,he){var ue=oe&&oe.prototype instanceof ae?oe:ae,Ne=Object.create(ue.prototype),Ae=new Pe(he||[]);return G(Ne,"_invoke",{value:Ce(Ve,le,Ae)}),Ne}function de(Ve,oe,le){try{return{type:"normal",arg:Ve.call(oe,le)}}catch(he){return{type:"throw",arg:he}}}U.wrap=re;var ve="suspendedStart",ye="suspendedYield",Le="executing",pe="completed",ne={};function ae(){}function q(){}function se(){}var me={};ie(me,z,function(){return this});var te=Object.getPrototypeOf,be=te&&te(te(Ue([])));be&&be!==W&&K.call(be,z)&&(me=be);var fe=se.prototype=ae.prototype=Object.create(me);function ge(Ve){["next","throw","return"].forEach(function(oe){ie(Ve,oe,function(le){return this._invoke(oe,le)})})}function ke(Ve,oe){function le(ue,Ne,Ae,De){var je=de(Ve[ue],Ve,Ne);if(je.type!=="throw"){var Ke=je.arg,We=Ke.value;return We&&typeof We=="object"&&K.call(We,"__await")?oe.resolve(We.__await).then(function(He){le("next",He,Ae,De)},function(He){le("throw",He,Ae,De)}):oe.resolve(We).then(function(He){Ke.value=He,Ae(Ke)},function(He){return le("throw",He,Ae,De)})}De(je.arg)}var he;G(this,"_invoke",{value:function(){function ue(Ne,Ae){function De(){return new oe(function(je,Ke){le(Ne,Ae,je,Ke)})}return he=he?he.then(De,De):De()}return ue}()})}function Ce(Ve,oe,le){var he=ve;return function(ue,Ne){if(he===Le)throw new Error("Generator is already running");if(he===pe){if(ue==="throw")throw Ne;return{value:j,done:!0}}for(le.method=ue,le.arg=Ne;;){var Ae=le.delegate;if(Ae){var De=Se(Ae,le);if(De){if(De===ne)continue;return De}}if(le.method==="next")le.sent=le._sent=le.arg;else if(le.method==="throw"){if(he===ve)throw he=pe,le.arg;le.dispatchException(le.arg)}else le.method==="return"&&le.abrupt("return",le.arg);he=Le;var je=de(Ve,oe,le);if(je.type==="normal"){if(he=le.done?pe:ye,je.arg===ne)continue;return{value:je.arg,done:le.done}}je.type==="throw"&&(he=pe,le.method="throw",le.arg=je.arg)}}}function Se(Ve,oe){var le=oe.method,he=Ve.iterator[le];if(he===j)return oe.delegate=null,le==="throw"&&Ve.iterator.return&&(oe.method="return",oe.arg=j,Se(Ve,oe),oe.method==="throw")||le!=="return"&&(oe.method="throw",oe.arg=new TypeError("The iterator does not provide a '"+le+"' method")),ne;var ue=de(he,Ve.iterator,oe.arg);if(ue.type==="throw")return oe.method="throw",oe.arg=ue.arg,oe.delegate=null,ne;var Ne=ue.arg;return Ne?Ne.done?(oe[Ve.resultName]=Ne.value,oe.next=Ve.nextLoc,oe.method!=="return"&&(oe.method="next",oe.arg=j),oe.delegate=null,ne):Ne:(oe.method="throw",oe.arg=new TypeError("iterator result is not an object"),oe.delegate=null,ne)}function we(Ve){var oe={tryLoc:Ve[0]};1 in Ve&&(oe.catchLoc=Ve[1]),2 in Ve&&(oe.finallyLoc=Ve[2],oe.afterLoc=Ve[3]),this.tryEntries.push(oe)}function xe(Ve){var oe=Ve.completion||{};oe.type="normal",delete oe.arg,Ve.completion=oe}function Pe(Ve){this.tryEntries=[{tryLoc:"root"}],Ve.forEach(we,this),this.reset(!0)}function Ue(Ve){if(Ve||Ve===""){var oe=Ve[z];if(oe)return oe.call(Ve);if(typeof Ve.next=="function")return Ve;if(!isNaN(Ve.length)){var le=-1,he=function(){function ue(){for(;++le=0;--ue){var Ne=this.tryEntries[ue],Ae=Ne.completion;if(Ne.tryLoc==="root")return he("end");if(Ne.tryLoc<=this.prev){var De=K.call(Ne,"catchLoc"),je=K.call(Ne,"finallyLoc");if(De&&je){if(this.prev=0;--he){var ue=this.tryEntries[he];if(ue.tryLoc<=this.prev&&K.call(ue,"finallyLoc")&&this.prev=0;--le){var he=this.tryEntries[le];if(he.finallyLoc===oe)return this.complete(he.completion,he.afterLoc),xe(he),ne}}return Ve}(),catch:function(){function Ve(oe){for(var le=this.tryEntries.length-1;le>=0;--le){var he=this.tryEntries[le];if(he.tryLoc===oe){var ue=he.completion;if(ue.type==="throw"){var Ne=ue.arg;xe(he)}return Ne}}throw new Error("illegal catch attempt")}return Ve}(),delegateYield:function(){function Ve(oe,le,he){return this.delegate={iterator:Ue(oe),resultName:le,nextLoc:he},this.method==="next"&&(this.arg=j),ne}return Ve}()},U}function f(j,U,W,K,G,$,z){try{var Y=j[$](z),J=Y.value}catch(ie){W(ie);return}Y.done?U(J):Promise.resolve(J).then(K,G)}function N(j){return function(){var U=this,W=arguments;return new Promise(function(K,G){var $=j.apply(U,W);function z(J){f($,K,G,z,Y,"next",J)}function Y(J){f($,K,G,z,Y,"throw",J)}z(void 0)})}}/** + */var n=r.selectDebug=function(){function e(a){return a.debug}return e}()},45360:function(I,r,n){"use strict";r.__esModule=!0,r.storeWindowGeometry=r.setupDrag=r.setWindowSize=r.setWindowPosition=r.setWindowKey=r.resizeStartHandler=r.recallWindowGeometry=r.getWindowSize=r.getWindowPosition=r.getScreenSize=r.getScreenPosition=r.dragStartHandler=void 0;var e=n(96417),a=n(41202),t=n(50175);function o(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */o=function(){return U};var j,U={},W=Object.prototype,K=W.hasOwnProperty,G=Object.defineProperty||function(Ve,oe,le){Ve[oe]=le.value},$=typeof Symbol=="function"?Symbol:{},z=$.iterator||"@@iterator",Y=$.asyncIterator||"@@asyncIterator",J=$.toStringTag||"@@toStringTag";function ie(Ve,oe,le){return Object.defineProperty(Ve,oe,{value:le,enumerable:!0,configurable:!0,writable:!0}),Ve[oe]}try{ie({},"")}catch(Ve){ie=function(le,he,ue){return le[he]=ue}}function re(Ve,oe,le,he){var ue=oe&&oe.prototype instanceof ae?oe:ae,Ne=Object.create(ue.prototype),Ae=new Pe(he||[]);return G(Ne,"_invoke",{value:Ce(Ve,le,Ae)}),Ne}function de(Ve,oe,le){try{return{type:"normal",arg:Ve.call(oe,le)}}catch(he){return{type:"throw",arg:he}}}U.wrap=re;var ve="suspendedStart",ye="suspendedYield",Le="executing",pe="completed",ne={};function ae(){}function q(){}function se(){}var me={};ie(me,z,function(){return this});var te=Object.getPrototypeOf,be=te&&te(te(Ue([])));be&&be!==W&&K.call(be,z)&&(me=be);var fe=se.prototype=ae.prototype=Object.create(me);function ge(Ve){["next","throw","return"].forEach(function(oe){ie(Ve,oe,function(le){return this._invoke(oe,le)})})}function ke(Ve,oe){function le(ue,Ne,Ae,De){var je=de(Ve[ue],Ve,Ne);if(je.type!=="throw"){var Ke=je.arg,We=Ke.value;return We&&typeof We=="object"&&K.call(We,"__await")?oe.resolve(We.__await).then(function(He){le("next",He,Ae,De)},function(He){le("throw",He,Ae,De)}):oe.resolve(We).then(function(He){Ke.value=He,Ae(Ke)},function(He){return le("throw",He,Ae,De)})}De(je.arg)}var he;G(this,"_invoke",{value:function(){function ue(Ne,Ae){function De(){return new oe(function(je,Ke){le(Ne,Ae,je,Ke)})}return he=he?he.then(De,De):De()}return ue}()})}function Ce(Ve,oe,le){var he=ve;return function(ue,Ne){if(he===Le)throw new Error("Generator is already running");if(he===pe){if(ue==="throw")throw Ne;return{value:j,done:!0}}for(le.method=ue,le.arg=Ne;;){var Ae=le.delegate;if(Ae){var De=Se(Ae,le);if(De){if(De===ne)continue;return De}}if(le.method==="next")le.sent=le._sent=le.arg;else if(le.method==="throw"){if(he===ve)throw he=pe,le.arg;le.dispatchException(le.arg)}else le.method==="return"&&le.abrupt("return",le.arg);he=Le;var je=de(Ve,oe,le);if(je.type==="normal"){if(he=le.done?pe:ye,je.arg===ne)continue;return{value:je.arg,done:le.done}}je.type==="throw"&&(he=pe,le.method="throw",le.arg=je.arg)}}}function Se(Ve,oe){var le=oe.method,he=Ve.iterator[le];if(he===j)return oe.delegate=null,le==="throw"&&Ve.iterator.return&&(oe.method="return",oe.arg=j,Se(Ve,oe),oe.method==="throw")||le!=="return"&&(oe.method="throw",oe.arg=new TypeError("The iterator does not provide a '"+le+"' method")),ne;var ue=de(he,Ve.iterator,oe.arg);if(ue.type==="throw")return oe.method="throw",oe.arg=ue.arg,oe.delegate=null,ne;var Ne=ue.arg;return Ne?Ne.done?(oe[Ve.resultName]=Ne.value,oe.next=Ve.nextLoc,oe.method!=="return"&&(oe.method="next",oe.arg=j),oe.delegate=null,ne):Ne:(oe.method="throw",oe.arg=new TypeError("iterator result is not an object"),oe.delegate=null,ne)}function we(Ve){var oe={tryLoc:Ve[0]};1 in Ve&&(oe.catchLoc=Ve[1]),2 in Ve&&(oe.finallyLoc=Ve[2],oe.afterLoc=Ve[3]),this.tryEntries.push(oe)}function xe(Ve){var oe=Ve.completion||{};oe.type="normal",delete oe.arg,Ve.completion=oe}function Pe(Ve){this.tryEntries=[{tryLoc:"root"}],Ve.forEach(we,this),this.reset(!0)}function Ue(Ve){if(Ve||Ve===""){var oe=Ve[z];if(oe)return oe.call(Ve);if(typeof Ve.next=="function")return Ve;if(!isNaN(Ve.length)){var le=-1,he=function(){function ue(){for(;++le=0;--ue){var Ne=this.tryEntries[ue],Ae=Ne.completion;if(Ne.tryLoc==="root")return he("end");if(Ne.tryLoc<=this.prev){var De=K.call(Ne,"catchLoc"),je=K.call(Ne,"finallyLoc");if(De&&je){if(this.prev=0;--he){var ue=this.tryEntries[he];if(ue.tryLoc<=this.prev&&K.call(ue,"finallyLoc")&&this.prev=0;--le){var he=this.tryEntries[le];if(he.finallyLoc===oe)return this.complete(he.completion,he.afterLoc),xe(he),ne}}return Ve}(),catch:function(){function Ve(oe){for(var le=this.tryEntries.length-1;le>=0;--le){var he=this.tryEntries[le];if(he.tryLoc===oe){var ue=he.completion;if(ue.type==="throw"){var Ne=ue.arg;xe(he)}return Ne}}throw new Error("illegal catch attempt")}return Ve}(),delegateYield:function(){function Ve(oe,le,he){return this.delegate={iterator:Ue(oe),resultName:le,nextLoc:he},this.method==="next"&&(this.arg=j),ne}return Ve}()},U}function f(j,U,W,K,G,$,z){try{var Y=j[$](z),J=Y.value}catch(ie){W(ie);return}Y.done?U(J):Promise.resolve(J).then(K,G)}function V(j){return function(){var U=this,W=arguments;return new Promise(function(K,G){var $=j.apply(U,W);function z(J){f($,K,G,z,Y,"next",J)}function Y(J){f($,K,G,z,Y,"throw",J)}z(void 0)})}}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var k=(0,t.createLogger)("drag"),S=Byond.windowId,y=!1,p=!1,l=[0,0],c,m,i,d,u,s=r.setWindowKey=function(){function j(U){S=U}return j}(),V=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(U){var W=(0,a.vecAdd)(U,l);return Byond.winset(Byond.windowId,{pos:W[0]+","+W[1]})}return j}(),h=r.setWindowSize=function(){function j(U){return Byond.winset(Byond.windowId,{size:U[0]+"x"+U[1]})}return j}(),C=r.getScreenPosition=function(){function j(){return[0-l[0],0-l[1]]}return j}(),b=r.getScreenSize=function(){function j(){return[window.screen.availWidth,window.screen.availHeight]}return j}(),B=function(U,W,K){K===void 0&&(K=50);for(var G=[W],$,z=0;zie&&($[Y]=ie-W[Y],z=!0)}return[z,$]},x=r.dragStartHandler=function(){function j(U){k.log("drag start"),y=!0,m=[window.screenLeft-U.screenX,window.screenTop-U.screenY],document.addEventListener("mousemove",M),document.addEventListener("mouseup",E),M(U)}return j}(),E=function j(U){k.log("drag end"),M(U),document.removeEventListener("mousemove",M),document.removeEventListener("mouseup",j),y=!1,L()},M=function(U){y&&(U.preventDefault(),v((0,a.vecAdd)([U.screenX,U.screenY],m)))},R=r.resizeStartHandler=function(){function j(U,W){return function(K){i=[U,W],k.log("resize start",i),p=!0,m=[window.screenLeft-K.screenX,window.screenTop-K.screenY],d=[window.innerWidth,window.innerHeight],document.addEventListener("mousemove",D),document.addEventListener("mouseup",O),D(K)}}return j}(),O=function j(U){k.log("resize end",u),D(U),document.removeEventListener("mousemove",D),document.removeEventListener("mouseup",j),p=!1,L()},D=function(U){p&&(U.preventDefault(),u=(0,a.vecAdd)(d,(0,a.vecMultiply)(i,(0,a.vecAdd)([U.screenX,U.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),h(u))}},33053:function(I,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 k=(0,t.createLogger)("drag"),S=Byond.windowId,y=!1,p=!1,l=[0,0],c,m,i,d,u,s=r.setWindowKey=function(){function j(U){S=U}return j}(),N=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(U){var W=(0,a.vecAdd)(U,l);return Byond.winset(Byond.windowId,{pos:W[0]+","+W[1]})}return j}(),h=r.setWindowSize=function(){function j(U){return Byond.winset(Byond.windowId,{size:U[0]+"x"+U[1]})}return j}(),C=r.getScreenPosition=function(){function j(){return[0-l[0],0-l[1]]}return j}(),b=r.getScreenSize=function(){function j(){return[window.screen.availWidth,window.screen.availHeight]}return j}(),B=function(U,W,K){K===void 0&&(K=50);for(var G=[W],$,z=0;zie&&($[Y]=ie-W[Y],z=!0)}return[z,$]},x=r.dragStartHandler=function(){function j(U){k.log("drag start"),y=!0,m=[window.screenLeft-U.screenX,window.screenTop-U.screenY],document.addEventListener("mousemove",M),document.addEventListener("mouseup",E),M(U)}return j}(),E=function j(U){k.log("drag end"),M(U),document.removeEventListener("mousemove",M),document.removeEventListener("mouseup",j),y=!1,L()},M=function(U){y&&(U.preventDefault(),v((0,a.vecAdd)([U.screenX,U.screenY],m)))},R=r.resizeStartHandler=function(){function j(U,W){return function(K){i=[U,W],k.log("resize start",i),p=!0,m=[window.screenLeft-K.screenX,window.screenTop-K.screenY],d=[window.innerWidth,window.innerHeight],document.addEventListener("mousemove",D),document.addEventListener("mouseup",O),D(K)}}return j}(),O=function j(U){k.log("resize end",u),D(U),document.removeEventListener("mousemove",D),document.removeEventListener("mouseup",j),p=!1,L()},D=function(U){p&&(U.preventDefault(),u=(0,a.vecAdd)(d,(0,a.vecMultiply)(i,(0,a.vecAdd)([U.screenX,U.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),h(u))}},33053:function(I,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 h(C){C===void 0&&(C={}),o=!!C.ignoreWindowFocus}return h}(),N,k=!0,S=function h(C,b){if(o){k=!0;return}if(N&&(clearTimeout(N),N=null),b){N=setTimeout(function(){return h(C)});return}k!==C&&(k=C,t.emit(C?"window-focus":"window-blur"),t.emit("window-focus-change",C))},y=null,p=r.canStealFocus=function(){function h(C){var b=String(C.tagName).toLowerCase();return b==="input"||b==="textarea"}return h}(),l=function(C){c(),y=C,y.addEventListener("blur",c)},c=function h(){y&&(y.removeEventListener("blur",h),y=null)},m=null,i=null,d=[],u=r.addScrollableNode=function(){function h(C){d.push(C)}return h}(),s=r.removeScrollableNode=function(){function h(C){var b=d.indexOf(C);b>=0&&d.splice(b,1)}return h}(),V=function(C){if(!(y||!k))for(var b=document.body;C&&C!==b;){if(d.includes(C)){if(C.contains(m))return;m=C,C.focus();return}C=C.parentNode}};window.addEventListener("mousemove",function(h){var C=h.target;C!==i&&(i=C,V(C))}),window.addEventListener("focusin",function(h){if(i=null,m=h.target,S(!0),p(h.target)){l(h.target);return}}),window.addEventListener("focusout",function(h){i=null,S(!1,!0)}),window.addEventListener("blur",function(h){i=null,S(!1,!0)}),window.addEventListener("beforeunload",function(h){S(!1)});var g={},v=r.KeyEvent=function(){function h(b,B,L){this.event=b,this.type=B,this.code=window.event?b.which:b.keyCode,this.ctrl=b.ctrlKey,this.shift=b.shiftKey,this.alt=b.altKey,this.repeat=!!L}var C=h.prototype;return C.hasModifierKeys=function(){function b(){return this.ctrl||this.alt||this.shift}return b}(),C.isModifierKey=function(){function b(){return this.code===a.KEY_CTRL||this.code===a.KEY_SHIFT||this.code===a.KEY_ALT}return b}(),C.isDown=function(){function b(){return this.type==="keydown"}return b}(),C.isUp=function(){function b(){return this.type==="keyup"}return b}(),C.toString=function(){function b(){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 b}(),h}();document.addEventListener("keydown",function(h){if(!p(h.target)){var C=h.keyCode,b=new v(h,"keydown",g[C]);t.emit("keydown",b),t.emit("key",b),g[C]=!0}}),document.addEventListener("keyup",function(h){if(!p(h.target)){var C=h.keyCode,b=new v(h,"keyup");t.emit("keyup",b),t.emit("key",b),g[C]=!1}})},16671:function(I,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 h(C){C===void 0&&(C={}),o=!!C.ignoreWindowFocus}return h}(),V,k=!0,S=function h(C,b){if(o){k=!0;return}if(V&&(clearTimeout(V),V=null),b){V=setTimeout(function(){return h(C)});return}k!==C&&(k=C,t.emit(C?"window-focus":"window-blur"),t.emit("window-focus-change",C))},y=null,p=r.canStealFocus=function(){function h(C){var b=String(C.tagName).toLowerCase();return b==="input"||b==="textarea"}return h}(),l=function(C){c(),y=C,y.addEventListener("blur",c)},c=function h(){y&&(y.removeEventListener("blur",h),y=null)},m=null,i=null,d=[],u=r.addScrollableNode=function(){function h(C){d.push(C)}return h}(),s=r.removeScrollableNode=function(){function h(C){var b=d.indexOf(C);b>=0&&d.splice(b,1)}return h}(),N=function(C){if(!(y||!k))for(var b=document.body;C&&C!==b;){if(d.includes(C)){if(C.contains(m))return;m=C,C.focus();return}C=C.parentNode}};window.addEventListener("mousemove",function(h){var C=h.target;C!==i&&(i=C,N(C))}),window.addEventListener("focusin",function(h){if(i=null,m=h.target,S(!0),p(h.target)){l(h.target);return}}),window.addEventListener("focusout",function(h){i=null,S(!1,!0)}),window.addEventListener("blur",function(h){i=null,S(!1,!0)}),window.addEventListener("beforeunload",function(h){S(!1)});var g={},v=r.KeyEvent=function(){function h(b,B,L){this.event=b,this.type=B,this.code=window.event?b.which:b.keyCode,this.ctrl=b.ctrlKey,this.shift=b.shiftKey,this.alt=b.altKey,this.repeat=!!L}var C=h.prototype;return C.hasModifierKeys=function(){function b(){return this.ctrl||this.alt||this.shift}return b}(),C.isModifierKey=function(){function b(){return this.code===a.KEY_CTRL||this.code===a.KEY_SHIFT||this.code===a.KEY_ALT}return b}(),C.isDown=function(){function b(){return this.type==="keydown"}return b}(),C.isUp=function(){function b(){return this.type==="keyup"}return b}(),C.toString=function(){function b(){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 b}(),h}();document.addEventListener("keydown",function(h){if(!p(h.target)){var C=h.keyCode,b=new v(h,"keydown",g[C]);t.emit("keydown",b),t.emit("key",b),g[C]=!0}}),document.addEventListener("keyup",function(h){if(!p(h.target)){var C=h.keyCode,b=new v(h,"keyup");t.emit("keyup",b),t.emit("key",b),g[C]=!1}})},16671:function(I,r){"use strict";r.__esModule=!0,r.focusWindow=r.focusMap=void 0;/** * Various focus helpers. * * @file @@ -230,104 +230,104 @@ * @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(y,p,l){if(p===void 0&&(p=-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(p*3,c)),i=Math.floor(c/3),d=Math.floor(m/3),u=(0,e.clamp)(t+d,0,a.length),s=a[u],V=y/Math.pow(1e3,d),g=i>p?2+d*3-m:0,v=(0,e.toFixed)(V,g)+" "+s+l;return v.trim()}return S}(),f=r.formatPower=function(){function S(y,p){return p===void 0&&(p=0),o(y,p,"W")}return S}(),N=r.formatMoney=function(){function S(y,p){if(p===void 0&&(p=0),!Number.isFinite(y))return y;var l=(0,e.round)(y,p);p>0&&(l=(0,e.toFixed)(y,p)),l=String(l);var c=l.length,m=l.indexOf(".");m===-1&&(m=c);for(var i="",d=0;d0&&d=0?"+":p<0?"\u2013":"",c=Math.abs(p);return c===1/0?c="Inf":c=(0,e.toFixed)(c,2),l+c+" dB"}return S}()},39891:function(I,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,V=new WeakMap;return(o=function(v){return v?V: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 V=o(s);if(V&&V.has(u))return V.get(u);var g={__proto__:null},v=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var h in u)if(h!=="default"&&Object.prototype.hasOwnProperty.call(u,h)){var C=v?Object.getOwnPropertyDescriptor(u,h):null;C&&(C.get||C.set)?Object.defineProperty(g,h,C):g[h]=u[h]}return g.default=u,V&&V.set(u,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,p,l){if(p===void 0&&(p=-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(p*3,c)),i=Math.floor(c/3),d=Math.floor(m/3),u=(0,e.clamp)(t+d,0,a.length),s=a[u],N=y/Math.pow(1e3,d),g=i>p?2+d*3-m:0,v=(0,e.toFixed)(N,g)+" "+s+l;return v.trim()}return S}(),f=r.formatPower=function(){function S(y,p){return p===void 0&&(p=0),o(y,p,"W")}return S}(),V=r.formatMoney=function(){function S(y,p){if(p===void 0&&(p=0),!Number.isFinite(y))return y;var l=(0,e.round)(y,p);p>0&&(l=(0,e.toFixed)(y,p)),l=String(l);var c=l.length,m=l.indexOf(".");m===-1&&(m=c);for(var i="",d=0;d0&&d=0?"+":p<0?"\u2013":"",c=Math.abs(p);return c===1/0?c="Inf":c=(0,e.toFixed)(c,2),l+c+" dB"}return S}()},39891:function(I,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,N=new WeakMap;return(o=function(v){return v?N: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 N=o(s);if(N&&N.has(u))return N.get(u);var g={__proto__:null},v=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var h in u)if(h!=="default"&&Object.prototype.hasOwnProperty.call(u,h)){var C=v?Object.getOwnPropertyDescriptor(u,h):null;C&&(C.get||C.set)?Object.defineProperty(g,h,C):g[h]=u[h]}return g.default=u,N&&N.set(u,g),g}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var N=(0,t.createLogger)("hotkeys"),k={},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={},p=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 V=String(s);if(V==="Ctrl+F5"||V==="Ctrl+R"){location.reload();return}if(V!=="Ctrl+F"&&!(s.event.defaultPrevented||s.isModifierKey()||S.includes(s.code))){V==="F5"&&(s.event.preventDefault(),s.event.returnValue=!1);var g=p(s.code);if(g){var v=k[g];if(v)return N.debug("macro",v),Byond.command(v);if(s.isDown()&&!y[g]){y[g]=!0;var h='Key_Down "'+g+'"';return N.debug(h),Byond.command(h)}if(s.isUp()&&y[g]){y[g]=!1;var C='Key_Up "'+g+'"';return N.debug(C),Byond.command(C)}}}},c=r.acquireHotKey=function(){function u(s){S.push(s)}return u}(),m=r.releaseHotKey=function(){function u(s){var V=S.indexOf(s);V>=0&&S.splice(V,1)}return u}(),i=r.releaseHeldKeys=function(){function u(){for(var s=0,V=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 p("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 p("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 p("wipe")}return m}()})})]})})})]})})})}return N}()},46817:function(I,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(k,S){var y=(0,a.useBackend)(S),p=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 p("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 p("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 p("fix")}return d}()})})]}),(0,e.createComponentVNode)(2,t.Box,{color:"green",lineHeight:2,children:l.active?"Reconstruction in progress.":""})]})})]})})})}return N}()},20420:function(I,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 p(l,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,y)})})}return p}(),k={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,V=k[d.externalPower]||k[0],g=k[d.chargingStatus]||k[0],v=d.powerChannels||[],h=S[d.malfStatus]||S[0],C=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:V.color,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:d.isOperating?"power-off":"times",content:d.isOperating?"On":"Off",selected:d.isOperating&&!u,color:d.isOperating?"":"bad",disabled:u,onClick:function(){function b(){return i("breaker")}return b}()}),children:["[ ",V.externalPowerText," ]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power Cell",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:"good",value:C})}),(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:u,onClick:function(){function b(){return i("charge")}return b}()}),children:["[ ",g.chargingText," ]"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Channels",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[v.map(function(b){var B=b.topicParams;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:b.title,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,mx:2,color:b.status>=2?"good":"bad",children:b.status>=2?"On":"Off"}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Auto",selected:!u&&(b.status===1||b.status===3),disabled:u,onClick:function(){function L(){return i("channel",B.auto)}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:"On",selected:!u&&b.status===2,disabled:u,onClick:function(){function L(){return i("channel",B.on)}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Off",selected:!u&&b.status===0,disabled:u,onClick:function(){function L(){return i("channel",B.off)}return L}()})],4),children:[b.powerLoad," W"]},b.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:h.icon,content:h.content,color:"bad",onClick:function(){function b(){return i(h.action)}return b}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",content:"Overload",onClick:function(){function b(){return i("overload")}return b}()})],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 b(){return i("cover")}return b}()})}),(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 b(){return i("emergency_lighting")}return b}()})}),(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 b(){return i("toggle_nightshift")}return b}()})})]})})],4)}},16822:function(I,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,V=u.data,g=V.view_screen,v=V.authenticated_account,h=V.ticks_left_locked_down,C=V.linked_db,b;if(h>0)b=(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(!C)b=(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:b=(0,e.createComponentVNode)(2,k);break;case 2:b=(0,e.createComponentVNode)(2,S);break;case 3:b=(0,e.createComponentVNode)(2,l);break;default:b=(0,e.createComponentVNode)(2,y)}else b=(0,e.createComponentVNode)(2,p);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:b})]})})}return m}(),N=function(i,d){var u=(0,a.useBackend)(d),s=u.act,V=u.data,g=V.machine_id,v=V.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 h(){return s("insert_card")}return h}()})})})]})},k=function(i,d){var u=(0,a.useBackend)(d),s=u.act,V=u.data,g=V.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,V=u.data,g=(0,a.useLocalState)(d,"targetAccNumber",0),v=g[0],h=g[1],C=(0,a.useLocalState)(d,"fundsAmount",0),b=C[0],B=C[1],L=(0,a.useLocalState)(d,"purpose",0),w=L[0],T=L[1],A=V.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,M){return h(M)}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,M){return B(M)}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,M){return T(M)}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:b,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,V=u.data,g=(0,a.useLocalState)(d,"fundsAmount",0),v=g[0],h=g[1],C=V.owner_name,b=V.money;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Welcome, "+C,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:["$",b]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Withdrawal Amount",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function B(L,w){return h(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)},p=function(i,d){var u=(0,a.useBackend)(d),s=u.act,V=u.data,g=(0,a.useLocalState)(d,"accountID",null),v=g[0],h=g[1],C=(0,a.useLocalState)(d,"accountPin",null),b=C[0],B=C[1],L=V.machine_id,w=V.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 h(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:b})}return T}()})})]})})},l=function(i,d){var u=(0,a.useBackend)(d),s=u.act,V=u.data,g=V.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,V=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(I,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),k=n(51185),S=n(69774),y=r.AccountsUplinkTerminal=function(){function V(g,v){var h=(0,t.useBackend)(v),C=h.act,b=h.data,B=b.loginState,L=b.currentPage,w;if(B.logged_in)L===1?w=(0,e.createComponentVNode)(2,l):L===2?w=(0,e.createComponentVNode)(2,u):L===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,k.LoginInfo),(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:w})]})})})}return V}(),p=function(g,v){var h=(0,t.useBackend)(v),C=h.data,b=(0,t.useLocalState)(v,"tabIndex",0),B=b[0],L=b[1],w=C.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 L(0)}return T}(),children:"User Accounts"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:B===1,onClick:function(){function T(){return L(1)}return T}(),children:"Department Accounts"})]})})})},l=function(g,v){var h=(0,t.useLocalState)(v,"tabIndex",0),C=h[0];switch(C){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 h=(0,t.useBackend)(v),C=h.act,b=h.data,B=b.accounts,L=(0,t.useLocalState)(v,"searchText",""),w=L[0],T=L[1],A=(0,t.useLocalState)(v,"sortId","owner_name"),x=A[0],E=A[1],M=(0,t.useLocalState)(v,"sortOrder",!0),R=M[0],O=M[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 U=R?1:-1;return D[x].localeCompare(j[x])*U}).map(function(D){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"AccountsUplinkTerminal__listRow--"+D.suspended,onClick:function(){function j(){return C("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 h=(0,t.useBackend)(v),C=h.act,b=h.data,B=b.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(L){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"AccountsUplinkTerminal__listRow--"+L.suspended,onClick:function(){function w(){return C("view_account_detail",{account_num:L.account_number})}return w}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"wallet"})," ",L.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:["#",L.account_number]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:L.suspended}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:L.money})]},L.account_number)})]})})})})},i=function(g,v){var h=(0,t.useLocalState)(v,"sortId","name"),C=h[0],b=h[1],B=(0,t.useLocalState)(v,"sortOrder",!0),L=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:C!==T&&"transparent",width:"100%",onClick:function(){function x(){C===T?w(!L):(b(T),w(!0))}return x}(),children:[A,C===T&&(0,e.createComponentVNode)(2,o.Icon,{name:L?"sort-up":"sort-down",ml:"0.25rem;"})]})})},d=function(g,v){var h=(0,t.useBackend)(v),C=h.act,b=h.data,B=b.is_printing,L=(0,t.useLocalState)(v,"searchText",""),w=L[0],T=L[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 C("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 h=(0,t.useBackend)(v),C=h.act,b=h.data,B=b.account_number,L=b.owner_name,w=b.money,T=b.suspended,A=b.transactions,x=b.account_pin,E=b.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+" / "+L,buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-left",content:"Back",onClick:function(){function M(){return C("back")}return M}()}),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 M(){return C("set_account_pin",{account_number:B})}return M}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Holder",children:L}),(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 M(){return C("toggle_suspension")}return M}()})]})]})})}),(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(M){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:M.time}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:M.purpose}),(0,e.createComponentVNode)(2,o.Table.Cell,{color:M.is_deposit?"green":"red",children:["$",M.amount]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:M.target_name})]},M)})]})})})]})},s=function(g,v){var h=(0,t.useBackend)(v),C=h.act,b=h.data,B=(0,t.useLocalState)(v,"accName",""),L=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 C("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(M,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(M,R){return x(R)}return E}()})})]}),(0,e.createComponentVNode)(2,o.Button,{mt:1,fluid:!0,content:"Create Account",onClick:function(){function E(){return C("finalise_create_account",{holder_name:L,starting_funds:A})}return E}()})]})}},26354:function(I,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 k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.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 k}()},26673:function(I,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 V=(0,a.useBackend)(s),g=V.act,v=V.data,h=v.locked;return(0,e.createComponentVNode)(2,o.Window,{width:570,height:h?310:755,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,f.InterfaceLockNoticeBox),(0,e.createComponentVNode)(2,S),!h&&(0,e.createFragment)([(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,p)],4)]})})}return d}(),k=function(u){return u===0?"green":u===1?"orange":"red"},S=function(u,s){var V=(0,a.useBackend)(s),g=V.act,v=V.data,h=v.air,C=v.mode,b=v.atmos_alarm,B=v.locked,L=v.alarmActivated,w=v.rcon,T=v.target_temp,A;return h.danger.overall===0?b===0?A="Optimal":A="Caution: Atmos alert in area":h.danger.overall===1?A="Caution":A="DANGER: Internals Required",(0,e.createComponentVNode)(2,t.Section,{title:"Air Status",children:h?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,t.Box,{color:k(h.danger.pressure),children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:h.pressure})," kPa",!B&&(0,e.createFragment)([(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,t.Button,{content:C===3?"Deactivate Panic Siphon":"Activate Panic Siphon",selected:C===3,icon:"exclamation-triangle",onClick:function(){function x(){return g("mode",{mode:C===3?1:3})}return x}()})],4)]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Oxygen",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.oxygen/100,fractionDigits:"1",color:k(h.danger.oxygen)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrogen",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.nitrogen/100,fractionDigits:"1",color:k(h.danger.nitrogen)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Carbon Dioxide",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.co2/100,fractionDigits:"1",color:k(h.danger.co2)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Toxins",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.plasma/100,fractionDigits:"1",color:k(h.danger.plasma)})}),h.contents.n2o>.1&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrous Oxide",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.n2o/100,fractionDigits:"1",color:k(h.danger.n2o)})}),h.contents.other>.1&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Other",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.other/100,fractionDigits:"1",color:k(h.danger.other)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.Box,{color:k(h.danger.temperature),children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:h.temperature})," K /"," ",(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:h.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:h.thermostat_state?"On":"Off",selected:h.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:k(h.danger.overall),children:[A,!B&&(0,e.createFragment)([(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,t.Button,{content:L?"Reset Alarm":"Activate Alarm",selected:L,onClick:function(){function x(){return g(L?"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 V=(0,a.useLocalState)(s,"tabIndex",0),g=V[0],v=V[1];return(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:g===0,onClick:function(){function h(){return v(0)}return h}(),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 h(){return v(1)}return h}(),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 h(){return v(2)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cog"})," Mode"]},"Mode"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:g===3,onClick:function(){function h(){return v(3)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"tachometer-alt"})," Thresholds"]},"Thresholds")]})},p=function(u,s){var V=(0,a.useLocalState)(s,"tabIndex",0),g=V[0],v=V[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 V=(0,a.useBackend)(s),g=V.act,v=V.data,h=v.vents;return h.map(function(C){return(0,e.createComponentVNode)(2,t.Section,{title:C.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:C.power?"On":"Off",selected:C.power,icon:"power-off",onClick:function(){function b(){return g("command",{cmd:"power",val:!C.power,id_tag:C.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:C.direction?"Blowing":"Siphoning",icon:C.direction?"sign-out-alt":"sign-in-alt",onClick:function(){function b(){return g("command",{cmd:"direction",val:!C.direction,id_tag:C.id_tag})}return b}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure Checks",children:[(0,e.createComponentVNode)(2,t.Button,{content:"External",selected:C.checks===1,onClick:function(){function b(){return g("command",{cmd:"checks",val:1,id_tag:C.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Internal",selected:C.checks===2,onClick:function(){function b(){return g("command",{cmd:"checks",val:2,id_tag:C.id_tag})}return b}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"External Pressure Target",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:C.external})," kPa\xA0",(0,e.createComponentVNode)(2,t.Button,{content:"Set",icon:"cog",onClick:function(){function b(){return g("command",{cmd:"set_external_pressure",id_tag:C.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Reset",icon:"redo-alt",onClick:function(){function b(){return g("command",{cmd:"set_external_pressure",val:101.325,id_tag:C.id_tag})}return b}()})]})]})},C.name)})},c=function(u,s){var V=(0,a.useBackend)(s),g=V.act,v=V.data,h=v.scrubbers;return h.map(function(C){return(0,e.createComponentVNode)(2,t.Section,{title:C.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:C.power?"On":"Off",selected:C.power,icon:"power-off",onClick:function(){function b(){return g("command",{cmd:"power",val:!C.power,id_tag:C.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:C.scrubbing?"Scrubbing":"Siphoning",icon:C.scrubbing?"filter":"sign-in-alt",onClick:function(){function b(){return g("command",{cmd:"scrubbing",val:!C.scrubbing,id_tag:C.id_tag})}return b}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Range",children:(0,e.createComponentVNode)(2,t.Button,{content:C.widenet?"Extended":"Normal",selected:C.widenet,icon:"expand-arrows-alt",onClick:function(){function b(){return g("command",{cmd:"widenet",val:!C.widenet,id_tag:C.id_tag})}return b}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Filtering",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Carbon Dioxide",selected:C.filter_co2,onClick:function(){function b(){return g("command",{cmd:"co2_scrub",val:!C.filter_co2,id_tag:C.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Plasma",selected:C.filter_toxins,onClick:function(){function b(){return g("command",{cmd:"tox_scrub",val:!C.filter_toxins,id_tag:C.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Nitrous Oxide",selected:C.filter_n2o,onClick:function(){function b(){return g("command",{cmd:"n2o_scrub",val:!C.filter_n2o,id_tag:C.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Oxygen",selected:C.filter_o2,onClick:function(){function b(){return g("command",{cmd:"o2_scrub",val:!C.filter_o2,id_tag:C.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Nitrogen",selected:C.filter_n2,onClick:function(){function b(){return g("command",{cmd:"n2_scrub",val:!C.filter_n2,id_tag:C.id_tag})}return b}()})]})]})},C.name)})},m=function(u,s){var V=(0,a.useBackend)(s),g=V.act,v=V.data,h=v.modes,C=v.presets,b=v.emagged,B=v.mode,L=v.preset;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"System Mode",children:(0,e.createComponentVNode)(2,t.Table,{children:h.map(function(w){return(!w.emagonly||w.emagonly&&!!b)&&(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:C.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===L,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 V=(0,a.useBackend)(s),g=V.act,v=V.data,h=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"})]}),h.map(function(C){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.name}),C.settings.map(function(b){return(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:b.selected===-1?"Off":b.selected,onClick:function(){function B(){return g("command",{cmd:"set_threshold",env:b.env,var:b.val})}return B}()})},b.val)})]},C.name)})]})})}},98565:function(I,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(k,S){var y=(0,a.useBackend)(S),p=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 p("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 p("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 p("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 p("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(I,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,k=2,S=4,y=8,p=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,V=u.data,g=V.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&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-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,V=u.data,g=V.selected_accesses,v=V.one_access,h=V.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 C(){return s("set_one_access",{access:"one"})}return C}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!v,content:"All",onClick:function(){function C(){return s("set_one_access",{access:"all"})}return C}()})],4),accesses:h,selectedList:g,accessMod:function(){function C(b){return s("set",{access:b})}return C}(),grantAll:function(){function C(){return s("grant_all")}return C}(),denyAll:function(){function C(){return s("clear_all")}return C}(),grantDep:function(){function C(b){return s("grant_region",{region:b})}return C}(),denyDep:function(){function C(b){return s("deny_region",{region:b})}return C}()})}},55666:function(I,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),k=-1,S=1,y=r.AlertModal=function(){function c(m,i){var d=(0,t.useBackend)(i),u=d.act,s=d.data,V=s.autofocus,g=s.buttons,v=g===void 0?[]:g,h=s.large_buttons,C=s.message,b=C===void 0?"":C,B=s.timeout,L=s.title,w=(0,t.useLocalState)(i,"selected",0),T=w[0],A=w[1],x=110+(b.length>30?Math.ceil(b.length/4):0)+(b.length&&h?5:0),E=325+(v.length>2?100:0),M=function(){function R(O){T===0&&O===k?A(v.length-1):T===v.length-1&&O===S?A(0):A(T+O)}return R}();return(0,e.createComponentVNode)(2,N.Window,{title:L,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(O){var D=window.event?O.which:O.keyCode;D===o.KEY_SPACE||D===o.KEY_ENTER?u("choose",{choice:v[T]}):D===o.KEY_ESCAPE?u("cancel"):D===o.KEY_LEFT?(O.preventDefault(),M(k)):(D===o.KEY_TAB||D===o.KEY_RIGHT)&&(O.preventDefault(),M(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:b})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:[!!V&&(0,e.createComponentVNode)(2,f.Autofocus),(0,e.createComponentVNode)(2,p,{selected:T})]})]})})})]})}return c}(),p=function(m,i){var d=(0,t.useBackend)(i),u=d.data,s=u.buttons,V=s===void 0?[]:s,g=u.large_buttons,v=u.swapped_buttons,h=m.selected;return(0,e.createComponentVNode)(2,f.Flex,{fill:!0,align:"center",direction:v?"row":"row-reverse",justify:"space-around",wrap:!0,children:V==null?void 0:V.map(function(C,b){return g&&V.length<3?(0,e.createComponentVNode)(2,f.Flex.Item,{grow:!0,children:(0,e.createComponentVNode)(2,l,{button:C,id:b.toString(),selected:h===b})},b):(0,e.createComponentVNode)(2,f.Flex.Item,{grow:g?1:0,children:(0,e.createComponentVNode)(2,l,{button:C,id:b.toString(),selected:h===b})},b)})})},l=function(m,i){var d=(0,t.useBackend)(i),u=d.act,s=d.data,V=s.large_buttons,g=m.button,v=m.selected,h=g.length>7?"100%":7;return(0,e.createComponentVNode)(2,f.Button,{mx:V?1:0,pt:V?.33:0,content:g,fluid:!!V,onClick:function(){function C(){return u("choose",{choice:g})}return C}(),selected:v,textAlign:"center",height:!!V&&2,width:!V&&h})}},16504:function(I,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 k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.change_race,i=c.species,d=c.specimen,u=c.change_gender,s=c.gender,V=c.has_gender,g=c.change_eye_color,v=c.change_skin_tone,h=c.change_skin_color,C=c.change_head_accessory_color,b=c.change_hair_color,B=c.change_secondary_hair_color,L=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,M=c.head_accessory_styles,R=c.head_accessory_style,O=c.change_hair,D=c.hair_styles,j=c.hair_style,U=c.change_hair_gradient,W=c.change_facial_hair,K=c.facial_hair_styles,G=c.facial_hair_style,$=c.change_head_markings,z=c.head_marking_styles,Y=c.head_marking_style,J=c.change_body_markings,ie=c.body_marking_styles,re=c.body_marking_style,de=c.change_tail_markings,ve=c.tail_marking_styles,ye=c.tail_marking_style,Le=c.change_body_accessory,pe=c.body_accessory_styles,ne=c.body_accessory_style,ae=c.change_alt_head,q=c.alt_head_styles,se=c.alt_head_style,me=!1;return(g||v||h||C||b||B||L||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(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.specimen,selected:te.specimen===d,onClick:function(){function be(){return l("race",{race:te.specimen})}return be}()},te.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 te(){return l("gender",{gender:"male"})}return te}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Female",selected:s==="female",onClick:function(){function te(){return l("gender",{gender:"female"})}return te}()}),!V&&(0,e.createComponentVNode)(2,t.Button,{content:"Genderless",selected:s==="plural",onClick:function(){function te(){return l("gender",{gender:"plural"})}return te}()})]}),!!me&&(0,e.createComponentVNode)(2,N),!!E&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Head accessory",children:M.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.headaccessorystyle,selected:te.headaccessorystyle===R,onClick:function(){function be(){return l("head_accessory",{head_accessory:te.headaccessorystyle})}return be}()},te.headaccessorystyle)})}),!!O&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hair",children:D.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.hairstyle,selected:te.hairstyle===j,onClick:function(){function be(){return l("hair",{hair:te.hairstyle})}return be}()},te.hairstyle)})}),!!U&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hair Gradient",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Change Style",onClick:function(){function te(){return l("hair_gradient")}return te}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Offset",onClick:function(){function te(){return l("hair_gradient_offset")}return te}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Color",onClick:function(){function te(){return l("hair_gradient_colour")}return te}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Alpha",onClick:function(){function te(){return l("hair_gradient_alpha")}return te}()})]}),!!W&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Facial hair",children:K.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.facialhairstyle,selected:te.facialhairstyle===G,onClick:function(){function be(){return l("facial_hair",{facial_hair:te.facialhairstyle})}return be}()},te.facialhairstyle)})}),!!$&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Head markings",children:z.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.headmarkingstyle,selected:te.headmarkingstyle===Y,onClick:function(){function be(){return l("head_marking",{head_marking:te.headmarkingstyle})}return be}()},te.headmarkingstyle)})}),!!J&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Body markings",children:ie.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.bodymarkingstyle,selected:te.bodymarkingstyle===re,onClick:function(){function be(){return l("body_marking",{body_marking:te.bodymarkingstyle})}return be}()},te.bodymarkingstyle)})}),!!de&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tail markings",children:ve.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.tailmarkingstyle,selected:te.tailmarkingstyle===ye,onClick:function(){function be(){return l("tail_marking",{tail_marking:te.tailmarkingstyle})}return be}()},te.tailmarkingstyle)})}),!!Le&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Body accessory",children:pe.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.bodyaccessorystyle,selected:te.bodyaccessorystyle===ne,onClick:function(){function be(){return l("body_accessory",{body_accessory:te.bodyaccessorystyle})}return be}()},te.bodyaccessorystyle)})}),!!ae&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alternate head",children:q.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.altheadstyle,selected:te.altheadstyle===se,onClick:function(){function be(){return l("alt_head",{alt_head:te.altheadstyle})}return be}()},te.altheadstyle)})})]})})})}return k}(),N=function(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.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(I,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(k,S){var y=(0,a.useBackend)(S),p=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(I,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"})},k=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),V=s[0],g=s[1],v=function(){function h(C){switch(C){case 0:return(0,e.createComponentVNode)(2,y);case 1:return(0,e.createComponentVNode)(2,p);default:return"WE SHOULDN'T BE HERE!"}}return h}();return(0,e.createComponentVNode)(2,f.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:V===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:V===0,onClick:function(){function h(){return g(0)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"table"})," Data View"]},"DataView"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:V===1,onClick:function(){function h(){return g(1)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"map-marked-alt"})," Map View"]},"MapView")]}),v(V)]})})})}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(V){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,o.TableCell,{children:V.name}),(0,e.createComponentVNode)(2,o.TableCell,{children:N(V.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:V.ref})}return g}()})})]},V.name)})]})})},p=function(c,m){var i=(0,a.useBackend)(m),d=i.data,u=(0,a.useLocalState)(m,"zoom",1),s=u[0],V=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(h){return V(h)}return v}(),children:g.filter(function(v){return v.z===2}).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:k(v.danger)},v.ref)})})})}},90588:function(I,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(k,S){var y=(0,a.useBackend)(S),p=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 p("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 p("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(V,g){return p("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 p("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 V(){return p("set_filter",{filter:s.gas_type})}return V}()},s.label)})})]})})})})}return N}()},87486:function(I,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 k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.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 V(){return l("power")}return V}()})}),(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 V(){return l("min_pressure")}return V}()}),(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 V(g,v){return l("custom_pressure",{pressure:v})}return V}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:i===d,width:2.2,onClick:function(){function V(){return l("max_pressure")}return V}()})]}),(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 k}(),N=function(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.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(I,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(k,S){var y=(0,a.useBackend)(S),p=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 p("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 p("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(V,g){return p("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 p("max_rate")}return s}()})]})]})})})})}return N}()},66032:function(I,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),k=r.AtmosTankControl=function(){function S(y,p){var l=(0,a.useBackend)(p),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(I,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),k=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 p(l,c){var m=(0,o.useBackend)(c),i=m.act,d=m.data,u=d.total_amount,s=d.max_amount,V=d.metal_amount,g=d.glass_amount,v=d.busyname,h=d.busyamt,C=d.showhacked,b=d.buildQueue,B=d.buildQueueLen,L=d.recipes,w=d.categories,T=(0,o.useSharedState)(c,"category",0),A=T[0],x=T[1];A===0&&(A="Tools");var E=V.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),M=g.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),R=u.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),O=(0,o.useSharedState)(c,"search_text",""),D=O[0],j=O[1],U=(0,k.createSearch)(D,function($){return $.name}),W="";B>0&&(W=b.map(function($,z){return(0,e.createComponentVNode)(2,f.Box,{children:(0,e.createComponentVNode)(2,f.Button,{fluid:!0,icon:"times",color:"transparent",content:b[z][0],onClick:function(){function Y(){return i("remove_from_queue",{remove_from_queue:b.indexOf($)+1})}return Y}()},$)},z)}));var K=(0,a.flow)([(0,t.filter)(function($){return($.category.indexOf(A)>-1||D)&&(d.showhacked||!$.hacked)}),D&&(0,t.filter)(U),(0,t.sortBy)(function($){return $.name.toLowerCase()})])(L),G="Build";return D?G="Results for: '"+D+"':":A&&(G="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:G,buttons:(0,e.createComponentVNode)(2,f.Dropdown,{width:"150px",options:w,selected:A,onSelected:function(){function $(z){return x(z)}return $}()}),children:[(0,e.createComponentVNode)(2,f.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function $(z,Y){return j(Y)}return $}(),mb:1}),K.map(function($){return(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+$.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===$.name&&d.busyamt===1,disabled:!S($,d.metal_amount,d.glass_amount,1),onClick:function(){function z(){return i("make",{make:$.uid,multiplier:1})}return z}(),children:(0,k.toTitleCase)($.name)}),$.max_multiplier>=10&&(0,e.createComponentVNode)(2,f.Button,{mr:1,icon:"hammer",selected:d.busyname===$.name&&d.busyamt===10,disabled:!S($,d.metal_amount,d.glass_amount,10),onClick:function(){function z(){return i("make",{make:$.uid,multiplier:10})}return z}(),children:"10x"}),$.max_multiplier>=25&&(0,e.createComponentVNode)(2,f.Button,{mr:1,icon:"hammer",selected:d.busyname===$.name&&d.busyamt===25,disabled:!S($,d.metal_amount,d.glass_amount,25),onClick:function(){function z(){return i("make",{make:$.uid,multiplier:25})}return z}(),children:"25x"}),$.max_multiplier>25&&(0,e.createComponentVNode)(2,f.Button,{mr:1,icon:"hammer",selected:d.busyname===$.name&&d.busyamt===$.max_multiplier,disabled:!S($,d.metal_amount,d.glass_amount,$.max_multiplier),onClick:function(){function z(){return i("make",{make:$.uid,multiplier:$.max_multiplier})}return z}(),children:[$.max_multiplier,"x"]}),$.requirements&&Object.keys($.requirements).map(function(z){return(0,k.toTitleCase)(z)+": "+$.requirements[z]}).join(", ")||(0,e.createComponentVNode)(2,f.Box,{children:"No resources required."})]},$.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:M}),(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:[W,(0,e.createComponentVNode)(2,f.Button,{mt:.5,fluid:!0,icon:"times",content:"Clear All",color:"red",disabled:!d.buildQueueLen,onClick:function(){function $(){return i("clear_queue")}return $}()})]})]})]})})})}return p}()},13940:function(I,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(k,S){var y=(0,a.useBackend)(S),p=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 p("eject_case")}return i}()})]})})})}return N}()},55295:function(I,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,V=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:V,name:g}),(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,y),s?(0,e.createComponentVNode)(2,p):(0,e.createComponentVNode)(2,k)]})})})}return l}(),k=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,V=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:"}),V?(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,V=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:!V,tooltip:V?"":"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}()})})]})})},p=function(c,m){var i=(0,a.useBackend)(m),d=i.act,u=i.data,s=u.biomass,V=u.product_list,g=(0,a.useSharedState)(m,"vendAmount",1),v=g[0],h=g[1],C=Object.entries(V).map(function(b,B){var L=Object.entries(b[1]).map(function(w){return w[1]});return(0,e.createComponentVNode)(2,t.Collapsible,{title:b[0],open:!0,children:L.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:[!!h&&(0,e.createComponentVNode)(2,t.NoticeBox,{danger:1,children:"Safety Protocols disabled"}),d>C&&(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 L(){return l("set",{set_level:0})}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"step-backward",tooltip:"Decrease to actual input level",disabled:i===0,onClick:function(){function L(){return l("set",{set_level:d})}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:i===0,tooltip:"Decrease one step",onClick:function(){function L(){return l("decrease")}return L}()})]}),(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 L(w,T){return l("set",{set_level:T})}return L}()})}),(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 L(){return l("increase")}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:i===v,tooltip:"Set to max",tooltipPosition:"left",onClick:function(){function L(){return l("set",{set_level:v})}return L}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Power Use",children:(0,f.formatPower)(V)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power for next level",children:(0,f.formatPower)(b)}),(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(L){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:L.name,children:(0,e.createComponentVNode)(2,t.Button,{disabled:L.price>=u,onClick:function(){function w(){return l("vend",{target:L.key})}return w}(),content:L.price})},L.key)})})})})]})})]})})})}return k}()},31876:function(I,r,n){"use strict";r.__esModule=!0,r.BodyScanner=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"]],k=[["hasVirus","bad","Viral pathogen detected in blood stream."],["blind","average","Cataracts detected."],["colourblind","average","Photoreceptor abnormalities detected."],["nearsighted","average","Retinal misalignment detected."]],S=[["Respiratory","oxyLoss"],["Brain","brainLoss"],["Toxin","toxLoss"],["Radiation","radLoss"],["Brute","bruteLoss"],["Cellular","cloneLoss"],["Burn","fireLoss"],["Inebriation","drunkenness"]],y={average:[.25,.5],bad:[.5,1/0]},p=function(b,B){for(var L=[],w=0;w0?b.filter(function(B){return!!B}).reduce(function(B,L){return(0,e.createFragment)([B,(0,e.createComponentVNode)(2,o.Box,{children:L},L)],0)},null):null},c=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""},m=r.BodyScanner=function(){function C(b,B){var L=(0,t.useBackend)(B),w=L.data,T=w.occupied,A=w.occupant,x=A===void 0?{}:A,E=T?(0,e.createComponentVNode)(2,i,{occupant:x}):(0,e.createComponentVNode)(2,h);return(0,e.createComponentVNode)(2,f.Window,{width:690,height:600,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:E})})}return C}(),i=function(b){var B=b.occupant;return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,d,{occupant:B}),(0,e.createComponentVNode)(2,u,{occupant:B}),(0,e.createComponentVNode)(2,s,{occupant:B}),(0,e.createComponentVNode)(2,g,{organs:B.extOrgan}),(0,e.createComponentVNode)(2,v,{organs:B.intOrgan})]})},d=function(b,B){var L=(0,t.useBackend)(B),w=L.act,T=L.data,A=T.occupant;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"print",onClick:function(){function x(){return w("print_p")}return x}(),children:"Print Report"}),(0,e.createComponentVNode)(2,o.Button,{icon:"user-slash",onClick:function(){function x(){return w("ejectify")}return x}(),children:"Eject"})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:A.name}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:A.maxHealth,value:A.health/A.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",color:N[A.stat][0],children:N[A.stat][1]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:(0,a.round)(A.bodyTempC,0)}),"\xB0C,\xA0",(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:(0,a.round)(A.bodyTempF,0)}),"\xB0F"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Implants",children:A.implant_len?(0,e.createComponentVNode)(2,o.Box,{children:A.implant.map(function(x){return x.name}).join(", ")}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"None"})})]})})},u=function(b){var B=b.occupant;return B.hasBorer||B.blind||B.colourblind||B.nearsighted||B.hasVirus?(0,e.createComponentVNode)(2,o.Section,{title:"Abnormalities",children:k.map(function(L,w){if(B[L[0]])return(0,e.createComponentVNode)(2,o.Box,{color:L[1],bold:L[1]==="bad",children:L[2]},L[2])})}):(0,e.createComponentVNode)(2,o.Section,{title:"Abnormalities",children:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No abnormalities found."})})},s=function(b){var B=b.occupant;return(0,e.createComponentVNode)(2,o.Section,{title:"Damage",children:(0,e.createComponentVNode)(2,o.Table,{children:p(S,function(L,w,T){return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Table.Row,{color:"label",children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[L[0],":"]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:!!w&&w[0]+":"})]}),(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,V,{value:B[L[1]],marginBottom:T100)&&"average"||!!B.status.robotic&&"label",width:"33%",children:B.name}),(0,e.createComponentVNode)(2,o.Table.Cell,{textAlign:"center",q:!0,children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:B.maxHealth,mt:L>0&&"0.5rem",value:B.totalLoss/B.maxHealth,ranges:y,children:[(0,e.createComponentVNode)(2,o.Box,{float:"left",inline:!0,children:[!!B.bruteLoss&&(0,e.createComponentVNode)(2,o.Tooltip,{position:"top",content:"Brute damage",children:(0,e.createComponentVNode)(2,o.Box,{inline:!0,position:"relative",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"bone"}),(0,a.round)(B.bruteLoss,0),"\xA0"]})}),!!B.fireLoss&&(0,e.createComponentVNode)(2,o.Tooltip,{position:"top",content:"Burn damage",children:(0,e.createComponentVNode)(2,o.Box,{inline:!0,position:"relative",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"fire"}),(0,a.round)(B.fireLoss,0)]})})]}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:(0,a.round)(B.totalLoss,0)})]})}),(0,e.createComponentVNode)(2,o.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:L>0&&"calc(0.5rem + 2px)",children:[(0,e.createComponentVNode)(2,o.Box,{color:"average",inline:!0,children:l([!!B.internalBleeding&&"Internal bleeding",!!B.burnWound&&"Critical tissue burns",!!B.lungRuptured&&"Ruptured lung",!!B.status.broken&&B.status.broken,c(B.germ_level),!!B.open&&"Open incision"])}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:[l([!!B.status.splinted&&(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"Splinted"}),!!B.status.robotic&&(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"Robotic"}),!!B.status.dead&&(0,e.createComponentVNode)(2,o.Box,{color:"bad",bold:!0,children:"DEAD"})]),l(B.shrapnel.map(function(w){return w.known?w.name:"Unknown object"}))]})]})]},L)})]})})},v=function(b){return b.organs.length===0?(0,e.createComponentVNode)(2,o.Section,{title:"Internal Organs",children:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"N/A"})}):(0,e.createComponentVNode)(2,o.Section,{title:"Internal Organs",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:"Name"}),(0,e.createComponentVNode)(2,o.Table.Cell,{textAlign:"center",children:"Damage"}),(0,e.createComponentVNode)(2,o.Table.Cell,{textAlign:"right",children:"Injuries"})]}),b.organs.map(function(B,L){return(0,e.createComponentVNode)(2,o.Table.Row,{textTransform:"capitalize",children:[(0,e.createComponentVNode)(2,o.Table.Cell,{color:!!B.dead&&"bad"||B.germ_level>100&&"average"||B.robotic>0&&"label",width:"33%",children:B.name}),(0,e.createComponentVNode)(2,o.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:B.maxHealth,value:B.damage/B.maxHealth,mt:L>0&&"0.5rem",ranges:y,children:(0,a.round)(B.damage,0)})}),(0,e.createComponentVNode)(2,o.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:L>0&&"calc(0.5rem + 2px)",children:[(0,e.createComponentVNode)(2,o.Box,{color:"average",inline:!0,children:l([c(B.germ_level)])}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:l([B.robotic===1&&(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"Robotic"}),B.robotic===2&&(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"Assisted"}),!!B.dead&&(0,e.createComponentVNode)(2,o.Box,{color:"bad",bold:!0,children:"DEAD"})])})]})]},L)})]})})},h=function(){return(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,textAlign:"center",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."]})})})}},73440:function(I,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),k=r.BookBinder=function(){function S(y,p){var l=(0,a.useBackend)(p),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)(p,"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)(p,"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(V){return c("toggle_binder_category",{category_id:u[V]})}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)(p,"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 V(){return c("toggle_binder_category",{category_id:s.category_id})}return V}()},s.category_id)})]})})]})})})]})}return S}()},40730:function(I,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 k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.locked,i=c.noaccess,d=c.maintpanel,u=c.on,s=c.autopatrol,V=c.canhack,g=c.emagged,v=c.remote_disabled,h=c.painame,C=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:C,content:"Clean Blood",disabled:i,onClick:function(){function b(){return l("blood")}return b}()})}),h&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:h,disabled:i,onClick:function(){function b(){return l("ejectpai")}return b}()})})]})})}return k}()},36078:function(I,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 k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.noaccess,i=c.painame,d=c.hullplating,u=c.replace,s=c.eat,V=c.make,g=c.fixfloor,v=c.nag_empty,h=c.magnet,C=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:C})}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:d,content:"Add tiles to new hull plating",disabled:m,onClick:function(){function b(){return l("autotile")}return b}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:u,content:"Replace floor tiles",disabled:m,onClick:function(){function b(){return l("replacetiles")}return b}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:g,content:"Repair damaged tiles and platings",disabled:m,onClick:function(){function b(){return l("fixfloors")}return b}()})]}),(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 b(){return l("eattiles")}return b}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:V,content:"Make pieces of metal into tiles when empty",disabled:m,onClick:function(){function b(){return l("maketiles")}return b}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:v,content:"Transmit notice when empty",disabled:m,onClick:function(){function b(){return l("nagonempty")}return b}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:h,content:"Traction Magnets",disabled:m,onClick:function(){function b(){return l("anchored")}return b}()})]}),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 b(){return l("ejectpai")}return b}()})})]})})}return k}()},89121:function(I,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 k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.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 k}()},39805:function(I,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 k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.locked,i=c.noaccess,d=c.maintpanel,u=c.on,s=c.autopatrol,V=c.canhack,g=c.emagged,v=c.remote_disabled,h=c.painame,C=c.shut_up,b=c.declare_crit,B=c.stationary_mode,L=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:!C,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:b,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:L.value,minValue:L.min,maxValue:L.max,step:5,disabled:i,onChange:function(){function E(M,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(M){return M+"u"}return E}(),disabled:i,onChange:function(){function E(M,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}()})]}),h&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:h,disabled:i,onClick:function(){function E(){return l("ejectpai")}return E}()})})]})})})}return k}()},35519:function(I,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 k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.noaccess,i=c.painame,d=c.check_id,u=c.check_weapons,s=c.check_warrant,V=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:V,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 k}()},71169:function(I,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,p){var l=y.cell,c=(0,o.useBackend)(p),m=c.act,i=l.cell_id,d=l.occupant,u=l.crimes,s=l.brigged_by,V=l.time_left_seconds,g=l.time_set_seconds,v=l.ref,h="";V>0&&(h+=" BrigCells__listRow--active");var C=function(){m("release",{ref:v})};return(0,e.createComponentVNode)(2,t.Table.Row,{className:h,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:V})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{type:"button",onClick:C,children:"Release"})})]})},N=function(y){var p=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"})]}),p.map(function(l){return(0,e.createComponentVNode)(2,f,{cell:l},l.ref)})]})},k=r.BrigCells=function(){function S(y,p){var l=(0,o.useBackend)(p),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(I,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(k,S){var y=(0,a.useBackend)(S),p=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 V=i.findIndex(function(g){return g.name===d.name});return[(u=i[V-1])==null?void 0:u.name,(s=i[V+1])==null?void 0:s.name]},p=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,V=u.data,g=u.config,v=V.mapRef,h=V.activeCamera,C=p(V.cameras),b=y(C,h),B=b[0],L=b[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,k.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),h&&h.name||"\u2014"],0),(0,e.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,e.createComponentVNode)(2,k.Button,{icon:"chevron-left",disabled:!B,onClick:function(){function w(){return s("switch_camera",{name:B})}return w}()}),(0,e.createComponentVNode)(2,k.Button,{icon:"chevron-right",disabled:!L,onClick:function(){function w(){return s("switch_camera",{name:L})}return w}()})],4),(0,e.createComponentVNode)(2,k.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,V=u.data,g=(0,N.useLocalState)(d,"searchText",""),v=g[0],h=g[1],C=V.activeCamera,b=p(V.cameras,v);return(0,e.createComponentVNode)(2,k.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k.Stack.Item,{children:(0,e.createComponentVNode)(2,k.Input,{fluid:!0,placeholder:"Search for a camera",onInput:function(){function B(L,w){return h(w)}return B}()})}),(0,e.createComponentVNode)(2,k.Stack.Item,{grow:!0,m:0,children:(0,e.createComponentVNode)(2,k.Section,{fill:!0,scrollable:!0,children:b.map(function(B){return(0,e.createVNode)(1,"div",(0,o.classes)(["Button","Button--fluid","Button--color--transparent",C&&B.name===C.name&&"Button--selected"]),B.name.trimLongStr(23),0,{title:B.name,onClick:function(){function L(){return s("switch_camera",{name:B.name})}return L}()},B.name)})})})]})}return m}()},21348:function(I,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),k=r.Canister=function(){function S(y,p){var l=(0,t.useBackend)(p),c=l.act,m=l.data,i=m.portConnected,d=m.tankPressure,u=m.releasePressure,s=m.defaultReleasePressure,V=m.minReleasePressure,g=m.maxReleasePressure,v=m.valveOpen,h=m.name,C=m.canLabel,b=m.colorContainer,B=m.color_index,L=m.hasHoldingTank,w=m.holdingTank,T="";B.prim&&(T=b.prim.options[B.prim].name);var A="";B.sec&&(A=b.sec.options[B.sec].name);var x="";B.ter&&(x=b.ter.options[B.ter].name);var E="";B.quart&&(E=b.quart.options[B.quart].name);var M=[],R=[],O=[],D=[],j=0;for(j=0;jh.current_positions&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:h.total_positions-h.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||!h.can_close,onClick:function(){function C(){return u("make_job_unavailable",{job:h.title})}return C}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{content:"+",disabled:s.cooldown_time||!h.can_open,onClick:function(){function C(){return u("make_job_available",{job:h.title})}return C}()})}),(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(h.title)>-1?"Yes":""})||(0,e.createComponentVNode)(2,t.Button,{content:h.is_priority?"Yes":"No",selected:h.is_priority,disabled:s.cooldown_time||!h.can_prioritize,onClick:function(){function C(){return u("prioritize_job",{job:h.title})}return C}()})})]},h.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 h(C){return u("set",{access:C})}return h}(),grantAll:function(){function h(){return u("grant_all")}return h}(),denyAll:function(){function h(){return u("clear_all")}return h}(),grantDep:function(){function h(C){return u("grant_region",{region:C})}return h}(),denyDep:function(){function h(C){return u("deny_region",{region:C})}return h}()}):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 h(){return u("wipe_all_logs")}return h}()}),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(h){return(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.transferee}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.oldvalue}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.newvalue}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.whodidit}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.timestamp}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.reason}),!!s.iscentcom&&(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.deletedby})]},h.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 h(){return u("wipe_my_logs")}return h}()})})]}):v=(0,e.createComponentVNode)(2,p):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(h){return(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.title}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.crimstat}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:h.buttontext,disabled:!h.demotable,onClick:function(){function C(){return u("remote_demote",{remote_demote:h.name})}return C}()})})]},h.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:V}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:v})]})})})}return c}()},62486:function(I,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),k=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,p),(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,i)]})})})}return d}(),y=function(u,s){var V=(0,o.useLocalState)(s,"contentsModal",null),g=V[0],v=V[1],h=(0,o.useLocalState)(s,"contentsModalTitle",null),C=h[0],b=h[1];if(g!==null&&C!==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,[C,(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),b(null)}return B}()})})]})},p=function(u,s){var V=(0,o.useBackend)(s),g=V.act,v=V.data,h=v.is_public,C=v.timeleft,b=v.moving,B=v.at_station,L,w;return!b&&!B?(L="Docked off-station",w="Call Shuttle"):!b&&B?(L="Docked at the station",w="Return Shuttle"):b&&(w="In Transit...",C!==1?L="Shuttle is en route (ETA: "+C+" minutes)":L="Shuttle is en route (ETA: "+C+" 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:L}),h===0&&(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,f.Button,{content:w,disabled:b,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 V,g=(0,o.useBackend)(s),v=g.act,h=g.data,C=h.accounts,b=(0,o.useLocalState)(s,"selectedAccount"),B=b[0],L=b[1],w=[];return C.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:C.map(function(T){return T.name}),selected:(V=C.filter(function(T){return T.account_UID===B})[0])==null?void 0:V.name,onSelected:function(){function T(A){return L(w[A])}return T}()}),C.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 V=(0,o.useBackend)(s),g=V.act,v=V.data,h=v.categories,C=v.supply_packs,b=(0,o.useSharedState)(s,"category","Emergency"),B=b[0],L=b[1],w=(0,o.useSharedState)(s,"search_text",""),T=w[0],A=w[1],x=(0,o.useLocalState)(s,"contentsModal",null),E=x[0],M=x[1],R=(0,o.useLocalState)(s,"contentsModalTitle",null),O=R[0],D=R[1],j=(0,k.createSearch)(T,function(z){return z.name}),U=(0,o.useLocalState)(s,"selectedAccount"),W=U[0],K=U[1],G=(0,a.flow)([(0,t.filter)(function(z){return z.cat===h.filter(function(Y){return Y.name===B})[0].category||T}),T&&(0,t.filter)(j),(0,t.sortBy)(function(z){return z.name.toLowerCase()})])(C),$="Crate Catalogue";return T?$="Results for '"+T+"':":B&&($="Browsing "+B),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Section,{title:$,buttons:(0,e.createComponentVNode)(2,f.Dropdown,{width:"190px",options:h.map(function(z){return z.name}),selected:B,onSelected:function(){function z(Y){return L(Y)}return z}()}),children:[(0,e.createComponentVNode)(2,f.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function z(Y,J){return A(J)}return z}(),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:G.map(function(z){return(0,e.createComponentVNode)(2,f.Table.Row,{children:[(0,e.createComponentVNode)(2,f.Table.Cell,{bold:!0,children:[z.name," (",z.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:!W,onClick:function(){function Y(){return g("order",{crate:z.ref,multiple:!1,account:W})}return Y}()}),(0,e.createComponentVNode)(2,f.Button,{content:"Order Multiple",icon:"cart-plus",disabled:!W,onClick:function(){function Y(){return g("order",{crate:z.ref,multiple:!0,account:W})}return Y}()}),(0,e.createComponentVNode)(2,f.Button,{content:"View Contents",icon:"search",onClick:function(){function Y(){M(z.contents),D(z.name)}return Y}()})]})]},z.name)})})})]})})},m=function(u,s){var V=u.request,g,v;switch(V.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:"}),!!V.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"})}),!!V.req_head_approval&&(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button,{color:g,content:v,disabled:V.req_cargo_approval,icon:"user-tie",tooltip:V.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 V=(0,o.useBackend)(s),g=V.act,v=V.data,h=v.requests,C=v.orders,b=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:h.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 L(){return g("approve",{ordernum:B.ordernum})}return L}()}),(0,e.createComponentVNode)(2,f.Button,{content:"Deny",color:"red",disabled:!B.can_deny,onClick:function(){function L(){return g("deny",{ordernum:B.ordernum})}return L}()})]})]},B.ordernum)})}),(0,e.createComponentVNode)(2,f.Box,{bold:!0,children:"Orders Awaiting Delivery"}),(0,e.createComponentVNode)(2,f.Table,{m:"0.5rem",children:C.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:b.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(I,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(k,S){var y=(0,a.useBackend)(S),p=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"})},V=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 p("open_pr",{pr_number:g.num})}return v}()}),children:g.entries.map(function(v){return(0,e.createComponentVNode)(2,t.Box,{m:1,children:[V(v.etype)," ",v.etext]},v)})},g)})})})})}return N}()},56975:function(I,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],k=[1,5,10],S=r.ChemDispenser=function(){function c(m,i){var d=(0,a.useBackend)(i),u=d.act,s=d.data,V=s.chemicals;return(0,e.createComponentVNode)(2,f.Window,{width:400,height:400+V.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,p),(0,e.createComponentVNode)(2,l)]})})})}return c}(),y=function(m,i){var d=(0,a.useBackend)(i),u=d.act,s=d.data,V=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(h,C){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"15%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"cog",selected:V===h,content:h,onClick:function(){function b(){return u("amount",{amount:h})}return b}()})},C)})})})]})})})},p=function(m,i){for(var d=(0,a.useBackend)(i),u=d.act,s=d.data,V=s.chemicals,g=V===void 0?[]:V,v=[],h=0;h<(g.length+1)%3;h++)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(C,b){return(0,e.createComponentVNode)(2,t.Button,{m:.1,width:"32.5%",icon:"arrow-circle-down",overflow:"hidden",textOverflow:"ellipsis",content:C.title,style:{"margin-left":"2px"},onClick:function(){function B(){return u("dispense",{reagent:C.id})}return B}()},b)}),v.map(function(C,b){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%"},b)})]})})},l=function(m,i){var d=(0,a.useBackend)(i),u=d.act,s=d.data,V=s.isBeakerLoaded,g=s.beakerCurrentVolume,v=s.beakerMaxVolume,h=s.beakerContents,C=h===void 0?[]:h;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:[!!V&&(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:!V,onClick:function(){function b(){return u("ejectBeaker")}return b}()})]}),children:(0,e.createComponentVNode)(2,o.BeakerContents,{beakerLoaded:V,beakerContents:C,buttons:function(){function b(B){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Isolate",icon:"compress-arrows-alt",onClick:function(){function L(){return u("remove",{reagent:B.id,amount:-1})}return L}()}),k.map(function(L,w){return(0,e.createComponentVNode)(2,t.Button,{content:L,onClick:function(){function T(){return u("remove",{reagent:B.id,amount:L})}return T}()},w)}),(0,e.createComponentVNode)(2,t.Button,{content:"ALL",onClick:function(){function L(){return u("remove",{reagent:B.id,amount:B.volume})}return L}()})],0)}return b}()})})})}},48734:function(I,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),k=r.ChemHeater=function(){function p(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 p}(),S=function(l,c){var m=(0,t.useBackend)(c),i=m.act,d=m.data,u=d.targetTemp,s=d.targetTempReached,V=d.autoEject,g=d.isActive,v=d.currentTemp,h=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:V?"toggle-on":"toggle-off",selected:V,onClick:function(){function C(){return i("toggle_autoeject")}return C}()}),(0,e.createComponentVNode)(2,o.Button,{content:g?"On":"Off",icon:"power-off",selected:g,disabled:!h,onClick:function(){function C(){return i("toggle_on")}return C}()})],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 C(b,B){return i("adjust_temperature",{target:B})}return C}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Reading",color:s?"good":"average",children:h&&(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:v,format:function(){function C(b){return(0,a.toFixed)(b)+" K"}return C}()})||"\u2014"})]})})})},y=function(l,c){var m=(0,t.useBackend)(c),i=m.act,d=m.data,u=d.isBeakerLoaded,s=d.beakerCurrentVolume,V=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," / ",V," 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(I,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),k=n(66586),S=n(50175),y=["icon"];function p(x,E){if(x==null)return{};var M={},R=Object.keys(x),O,D;for(D=0;D=0)&&(M[O]=x[O]);return M}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 M(R,O){return R.__proto__=O,R}return M}(),c(x,E)}var m=(0,S.createLogger)("ChemMaster"),i=[1,5,10],d=function(E,M){var R=(0,a.useBackend)(M),O=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 U(){return O("print",{idx:j.idx,beaker:E.args.beaker})}return U}()})]})})})})},u=r.ChemMaster=function(){function x(E,M){var R=(0,a.useBackend)(M),O=R.data,D=O.condi,j=O.beaker,U=O.beaker_reagents,W=U===void 0?[]:U,K=O.buffer_reagents,G=K===void 0?[]:K,$=O.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:W,bufferNonEmpty:G.length>0}),(0,e.createComponentVNode)(2,V,{mode:$,bufferReagents:G}),(0,e.createComponentVNode)(2,g,{isCondiment:D,bufferNonEmpty:G.length>0}),(0,e.createComponentVNode)(2,A)]})})]})}return x}(),s=function(E,M){var R=(0,a.useBackend)(M),O=R.act,D=E.beaker,j=E.beakerReagents,U=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:U?(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"eject",disabled:!D,content:"Eject and Clear Buffer",onClick:function(){function W(){return O("eject")}return W}()}):(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!D,content:"Eject and Clear Buffer",onClick:function(){function W(){return O("eject")}return W}()}),children:D?(0,e.createComponentVNode)(2,f.BeakerContents,{beakerLoaded:!0,beakerContents:j,buttons:function(){function W(K,G){return(0,e.createComponentVNode)(2,t.Box,{mb:G0?(0,e.createComponentVNode)(2,f.BeakerContents,{beakerLoaded:!0,beakerContents:U,buttons:function(){function W(K,G){return(0,e.createComponentVNode)(2,t.Box,{mb:G1?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{color:f.COLORS.damageType.oxy,inline:!0,children:x[0]}),(0,e.createTextVNode)("\xA0|\xA0"),(0,e.createComponentVNode)(2,o.Box,{color:f.COLORS.damageType.toxin,inline:!0,children:x[2]}),(0,e.createTextVNode)("\xA0|\xA0"),(0,e.createComponentVNode)(2,o.Box,{color:f.COLORS.damageType.brute,inline:!0,children:x[3]}),(0,e.createTextVNode)("\xA0|\xA0"),(0,e.createComponentVNode)(2,o.Box,{color:f.COLORS.damageType.burn,inline:!0,children:x[1]})],4):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Unknown"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"UI",className:"LabeledList__breakContents",children:T}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"SE",className:"LabeledList__breakContents",children:A}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,o.Button,{disabled:!C.podready,icon:"user-plus",content:"Clone",onClick:function(){function E(){return h("clone",{ref:B})}return E}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"trash",content:"Delete",onClick:function(){function E(){return h("del_rec")}return E}()})]})]})})},p=r.CloningConsole=function(){function s(V,g){var v=(0,t.useBackend)(g),h=v.act,C=v.data,b=C.menu;return(0,N.modalRegisterBodyOverride)("view_rec",y),(0,e.createComponentVNode)(2,k.Window,{width:535,height:440,children:[(0,e.createComponentVNode)(2,N.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),(0,e.createComponentVNode)(2,k.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,d),(0,e.createComponentVNode)(2,u),(0,e.createComponentVNode)(2,l),(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,c)})})]})})]})}return s}(),l=function(V,g){var v=(0,t.useBackend)(g),h=v.act,C=v.data,b=C.menu;return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:b===1,icon:"home",onClick:function(){function B(){return h("menu",{num:1})}return B}(),children:"Main"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:b===2,icon:"folder",onClick:function(){function B(){return h("menu",{num:2})}return B}(),children:"Records"})]})})},c=function(V,g){var v=(0,t.useBackend)(g),h=v.data,C=h.menu,b;return C===1?b=(0,e.createComponentVNode)(2,m):C===2&&(b=(0,e.createComponentVNode)(2,i)),b},m=function(V,g){var v=(0,t.useBackend)(g),h=v.act,C=v.data,b=C.loading,B=C.scantemp,L=C.occupant,w=C.locked,T=C.can_brainscan,A=C.scan_mode,x=C.numberofpods,E=C.pods,M=C.selected_pod,R=w&&!!L;return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Section,{title:"Scanner",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"label",children:"Scanner Lock:\xA0"}),(0,e.createComponentVNode)(2,o.Button,{disabled:!L,selected:R,icon:R?"toggle-on":"toggle-off",content:R?"Engaged":"Disengaged",onClick:function(){function O(){return h("lock")}return O}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:R||!L,icon:"user-slash",content:"Eject Occupant",onClick:function(){function O(){return h("eject")}return O}()})],4),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",children:b?(0,e.createComponentVNode)(2,o.Box,{color:"average",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"spinner",spin:!0}),"\xA0 Scanning..."]}):(0,e.createComponentVNode)(2,o.Box,{color:B.color,children:B.text})}),!!T&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Scan Mode",children:(0,e.createComponentVNode)(2,o.Button,{icon:A?"brain":"male",content:A?"Brain":"Body",onClick:function(){function O(){return h("toggle_mode")}return O}()})})]}),(0,e.createComponentVNode)(2,o.Button,{disabled:!L||b,icon:"user",content:"Scan Occupant",mt:"0.5rem",mb:"0",onClick:function(){function O(){return h("scan")}return O}()})]}),(0,e.createComponentVNode)(2,o.Section,{title:"Pods",children:x?E.map(function(O,D){var j;return O.status==="cloning"?j=(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:"100",value:O.progress/100,ranges:{good:[.75,1/0],average:[.25,.75],bad:[-1/0,.25]},mt:"0.5rem",children:(0,e.createComponentVNode)(2,o.Box,{textAlign:"center",children:(0,a.round)(O.progress,0)+"%"})}):O.status==="mess"?j=(0,e.createComponentVNode)(2,o.Box,{bold:!0,color:"bad",mt:"0.5rem",children:"ERROR"}):j=(0,e.createComponentVNode)(2,o.Button,{selected:M===O.pod,icon:M===O.pod&&"check",content:"Select",mt:"0.5rem",onClick:function(){function U(){return h("selectpod",{ref:O.pod})}return U}()}),(0,e.createComponentVNode)(2,o.Box,{width:"64px",textAlign:"center",inline:!0,mr:"0.5rem",mt:1,children:[(0,e.createVNode)(1,"img",null,null,1,{src:(0,S.resolveAsset)("pod_"+O.status+".gif"),style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.createComponentVNode)(2,o.Box,{color:"label",children:["Pod #",D+1]}),(0,e.createComponentVNode)(2,o.Box,{bold:!0,mt:.75,color:O.biomass>=150?"good":"bad",inline:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:O.biomass>=150?"circle":"circle-o"}),"\xA0",O.biomass]}),j]},D)}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"No pods detected. Unable to clone."})})],4)},i=function(V,g){var v=(0,t.useBackend)(g),h=v.act,C=v.data,b=C.records;return b.length?(0,e.createComponentVNode)(2,o.Box,{mt:"0.5rem",children:b.map(function(B,L){return(0,e.createComponentVNode)(2,o.Button,{icon:"user",mb:"0.5rem",content:B.realname,onClick:function(){function w(){return h("view_rec",{ref:B.record})}return w}()},L)})}):(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No records found."]})})},d=function(V,g){var v,h=(0,t.useBackend)(g),C=h.act,b=h.data,B=b.temp;if(!(!B||!B.text||B.text.length<=0)){var L=(v={},v[B.style]=!0,v);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.NoticeBox,Object.assign({},L,{children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,verticalAlign:"middle",children:B.text}),(0,e.createComponentVNode)(2,o.Button,{icon:"times-circle",float:"right",onClick:function(){function w(){return C("cleartemp")}return w}()}),(0,e.createComponentVNode)(2,o.Box,{clear:"both"})]})))}},u=function(V,g){var v=(0,t.useBackend)(g),h=v.act,C=v.data,b=C.scanner,B=C.numberofpods,L=C.autoallowed,w=C.autoprocess,T=C.disk;return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Status",buttons:(0,e.createFragment)(!!L&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"label",children:"Auto-processing:\xA0"}),(0,e.createComponentVNode)(2,o.Button,{selected:w,icon:w?"toggle-on":"toggle-off",content:w?"Enabled":"Disabled",onClick:function(){function A(){return h("autoprocess",{on:w?0:1})}return A}()})],4),0),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Scanner",children:b?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"Connected"}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Not connected!"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pods",children:B?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:[B," connected"]}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"None connected!"})})]})})})}},14283:function(I,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(k,S){var y=(0,a.useBackend)(S),p=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:350,height:170,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Modify Matrix",children:m.map(function(i){return(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:i.map(function(d){return(0,e.createFragment)([d.name,(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,t.NumberInput,{value:c[d.idx],step:.05,minValue:-5,maxValue:5,onDrag:function(){function u(s,V){return p("setvalue",{idx:d.idx+1,value:V})}return u}()})],0,d.name)})},i)})})})})}return N}()},98577:function(I,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 V=(0,a.useBackend)(s),g=V.act,v=V.data,h=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,k),f(h)]})})})}return d}(),k=function(u,s){var V=(0,a.useBackend)(s),g=V.act,v=V.data,h=v.authenticated,C=v.noauthbutton,b=v.esc_section,B=v.esc_callable,L=v.esc_recallable,w=v.esc_status,T=v.authhead,A=v.is_ai,x=v.lastCallLoc,E=!1,M;return h?h===1?M="Command":h===2?M="Captain":h===3?M="CentComm Officer":h===4?(M="CentComm Secure Connection",E=!0):M="ERROR: Report This Bug!":M="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:M})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{icon:h?"sign-out-alt":"id-card",selected:h,disabled:C,content:h?"Log Out ("+M+")":"Log In",onClick:function(){function R(){return g("auth")}return R}()})})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:!!b&&(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}()})}),!!L&&(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 V=(0,a.useBackend)(s),g=V.act,v=V.data,h=v.is_admin;return h?(0,e.createComponentVNode)(2,y):(0,e.createComponentVNode)(2,p)},y=function(u,s){var V=(0,a.useBackend)(s),g=V.act,v=V.data,h=v.is_admin,C=v.gamma_armory_location,b=v.admin_levels,B=v.authenticated,L=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:b,required_access:h,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:!h,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:!h,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:!h,onClick:function(){function w(){return g("dispatch_ert")}return w}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:L,content:L?"ERT calling enabled":"ERT calling disabled",tooltip:L?"Command can request an ERT":"ERTs cannot be requested",disabled:!h,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:!h,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:C?"Send Gamma Armory":"Recall Gamma Armory",disabled:!h,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:!h,onClick:function(){function w(){return g("view_econ")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fax",content:"Fax Manager",disabled:!h,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,p)})]})},p=function(u,s){var V=(0,a.useBackend)(s),g=V.act,v=V.data,h=v.msg_cooldown,C=v.emagged,b=v.cc_cooldown,B=v.security_level_color,L=v.str_security_level,w=v.levels,T=v.authcapt,A=v.authhead,x=v.messages,E="Make Priority Announcement";h>0&&(E+=" ("+h+"s)");var M=C?"Message [UNKNOWN]":"Message CentComm",R="Request Authentication Codes";return b>0&&(M+=" ("+b+"s)",R+=" ("+b+"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:L}),(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||h>0,onClick:function(){function O(){return g("announce")}return O}()})}),!!C&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transmit",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",color:"red",content:M,disabled:!T||b>0,onClick:function(){function O(){return g("MessageSyndicate")}return O}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync-alt",content:"Reset Relays",disabled:!T,onClick:function(){function O(){return g("RestoreBackup")}return O}()})]})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transmit",children:(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",content:M,disabled:!T||b>0,onClick:function(){function O(){return g("MessageCentcomm")}return O}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nuclear Device",children:(0,e.createComponentVNode)(2,t.Button,{icon:"bomb",content:R,disabled:!T||b>0,onClick:function(){function O(){return g("nukerequest")}return O}()})})]})})}),(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 O(){return g("status")}return O}()})}),(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 O(){return g("messagelist")}return O}()})}),(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 O(){return g("RestartNanoMob")}return O}()})})]})})})],4)},l=function(u,s){var V=(0,a.useBackend)(s),g=V.act,v=V.data,h=v.stat_display,C=v.authhead,b=v.current_message_title,B=h.presets.map(function(w){return(0,e.createComponentVNode)(2,t.Button,{content:w.label,selected:w.name===h.type,disabled:!C,onClick:function(){function T(){return g("setstat",{statdisp:w.name})}return T}()},w.name)}),L=h.alerts.map(function(w){return(0,e.createComponentVNode)(2,t.Button,{content:w.label,selected:w.alert===h.icon,disabled:!C,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:L}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message Line 1",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:h.line_1,disabled:!C,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:h.line_2,disabled:!C,onClick:function(){function w(){return g("setmsg2")}return w}()})})]})})})},c=function(u,s){var V=(0,a.useBackend)(s),g=V.act,v=V.data,h=v.authhead,C=v.current_message_title,b=v.current_message,B=v.messages,L=v.security_level,w;if(C)w=(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:C,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Return To Message List",disabled:!h,onClick:function(){function A(){return g("messagelist")}return A}()}),children:(0,e.createComponentVNode)(2,t.Box,{children:b})})});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:!h||C===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:!h,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 V=(0,a.useBackend)(s),g=V.act,v=V.data,h=u.levels,C=u.required_access,b=u.use_confirm,B=v.security_level;return b?h.map(function(L){return(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:L.icon,content:L.name,disabled:!C||L.id===B,tooltip:L.tooltip,onClick:function(){function w(){return g("newalertlevel",{level:L.id})}return w}()},L.name)}):h.map(function(L){return(0,e.createComponentVNode)(2,t.Button,{icon:L.icon,content:L.name,disabled:!C||L.id===B,tooltip:L.tooltip,onClick:function(){function w(){return g("newalertlevel",{level:L.id})}return w}()},L.name)})},i=function(u,s){var V=(0,a.useBackend)(s),g=V.act,v=V.data,h=v.is_admin,C=v.possible_cc_sounds;if(!h)return g("main");var b=(0,a.useLocalState)(s,"subtitle",""),B=b[0],L=b[1],w=(0,a.useLocalState)(s,"text",""),T=w[0],A=w[1],x=(0,a.useLocalState)(s,"classified",0),E=x[0],M=x[1],R=(0,a.useLocalState)(s,"beepsound","Beep"),O=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(U,W){return L(W)}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(U,W){return A(W)}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:O})}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:C,selected:O,onSelected:function(){function j(U){return D(U)}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:O})}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 M(!E)}return j}()})})]})]})})}},70611:function(I,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(k,S){var y=(0,a.useBackend)(S),p=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],V=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,h){return V(h)}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 p("create",{amount:s})}return g}()})})})]})})})}return N}()},73744:function(I,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 k(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 h(C,b){return C.__proto__=b,C}return h}(),S(g,v)}var y={1:["ACTIVE","good"],2:["COMPLETED","good"],3:["FAILED","bad"]},p=["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,h){var C=(0,t.useBackend)(h),b=C.act,B=C.data,L;B.unauthorized?L=(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?L=(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):L=(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:p,finishedTimeout:3e3,onFinished:function(){function x(){return b("complete_load_animation")}return x}()})});var w=(0,t.useLocalState)(h,"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,V),(0,e.createComponentVNode)(2,N.Window.Content,{className:"Contractor",children:(0,e.createComponentVNode)(2,o.Flex,{direction:"column",height:"100%",children:L})})]})}return g}(),c=function(v,h){var C=(0,t.useBackend)(h),b=C.act,B=C.data,L=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:[L," TC"]}),(0,e.createComponentVNode)(2,o.Button,{disabled:L<=0,content:"Claim",mx:"0.75rem",mb:"0",flexBasis:"content",onClick:function(){function x(){return b("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,h){var C=(0,t.useBackend)(h),b=C.act,B=C.data,L=B.page;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Tabs,Object.assign({},v,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:L===1,onClick:function(){function w(){return b("page",{page:1})}return w}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"suitcase"}),"Contracts"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:L===2,onClick:function(){function w(){return b("page",{page:2})}return w}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"shopping-cart"}),"Hub"]})]})))},i=function(v,h){var C=(0,t.useBackend)(h),b=C.act,B=C.data,L=B.contracts,w=B.contract_active,T=B.can_extract,A=!!w&&L.filter(function(O){return O.status===1})[0],x=A&&A.time_left>0,E=(0,t.useLocalState)(h,"viewingPhoto",""),M=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 O(D,j){return" ("+j.substr(3)+")"}return O}()})],onClick:function(){function O(){return b("extract")}return O}()})},v,{children:L.slice().sort(function(O,D){return O.status===1?-1:D.status===1?1:O.status-D.status}).map(function(O){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:O.status===1&&"good",children:O.target_name}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",children:O.has_photo&&(0,e.createComponentVNode)(2,o.Button,{icon:"camera",mb:"-0.5rem",ml:"0.5rem",onClick:function(){function j(){return R("target_photo_"+O.uid+".png")}return j}()})})]}),className:"Contractor__Contract",buttons:(0,e.createComponentVNode)(2,o.Box,{width:"100%",children:[!!y[O.status]&&(0,e.createComponentVNode)(2,o.Box,{color:y[O.status][1],inline:!0,mt:O.status!==1&&"0.125rem",mr:"0.25rem",lineHeight:"20px",children:y[O.status][0]}),O.status===1&&(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"ban",color:"bad",content:"Abort",ml:"0.5rem",onClick:function(){function j(){return b("abort")}return j}()})]}),children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"2",mr:"0.5rem",children:[O.fluff_message,!!O.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 ",O.completed_time]}),!!O.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."]}),!!O.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: ",O.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(O)]}),(D=O.difficulties)==null?void 0:D.map(function(j,U){return(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!!w,content:j.name+" ("+j.reward+" TC)",onClick:function(){function W(){return b("activate",{uid:O.uid,difficulty:U+1})}return W}()},U)}),!!O.objective&&(0,e.createComponentVNode)(2,o.Box,{color:"white",bold:!0,children:[O.objective.extraction_name,(0,e.createVNode)(1,"br"),"(",(O.objective.rewards.tc||0)+" TC",",\xA0",(O.objective.rewards.credits||0)+" Credits",")"]})]})]})},O.uid)})})))},d=function(v){if(!(!v.objective||v.status>1)){var h=v.objective.locs.user_area_id,C=v.objective.locs.user_coords,b=v.objective.locs.target_area_id,B=v.objective.locs.target_coords,L=h===b;return(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Icon,{name:L?"dot-circle-o":"arrow-alt-circle-right-o",color:L?"green":"yellow",rotation:L?null:-(0,a.rad2deg)(Math.atan2(B[1]-C[1],B[0]-C[0])),lineHeight:L?null:"0.85",size:"1.5"})})}},u=function(v,h){var C=(0,t.useBackend)(h),b=C.act,B=C.data,L=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:L-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){k(v,g);function v(C){var b;return b=g.call(this,C)||this,b.timer=null,b.state={currentIndex:0,currentDisplay:[]},b}var h=v.prototype;return h.tick=function(){function C(){var b=this.props,B=this.state;if(B.currentIndex<=b.allMessages.length){this.setState(function(w){return{currentIndex:w.currentIndex+1}});var L=B.currentDisplay;L.push(b.allMessages[B.currentIndex])}else clearTimeout(this.timer),setTimeout(b.onFinished,b.finishedTimeout)}return C}(),h.componentDidMount=function(){function C(){var b=this,B=this.props.linesPerSecond,L=B===void 0?2.5:B;this.timer=setInterval(function(){return b.tick()},1e3/L)}return C}(),h.componentWillUnmount=function(){function C(){clearTimeout(this.timer)}return C}(),h.render=function(){function C(){return(0,e.createComponentVNode)(2,o.Box,{m:1,children:this.state.currentDisplay.map(function(b){return(0,e.createFragment)([b,(0,e.createVNode)(1,"br")],0,b)})})}return C}(),v}(e.Component),V=function(v,h){var C=(0,t.useLocalState)(h,"viewingPhoto",""),b=C[0],B=C[1];return(0,e.createComponentVNode)(2,o.Modal,{className:"Contractor__photoZoom",children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",src:b}),(0,e.createComponentVNode)(2,o.Button,{icon:"times",content:"Close",color:"grey",mt:"1rem",onClick:function(){function L(){return B("")}return L}()})]})}},57392:function(I,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(k,S){var y=(0,a.useBackend)(S),p=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 p("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 p("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 p("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 p("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 p("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 p("slowFactor",{value:c+5})}return d}()})," "]})]})})]})})})})}return N}()},91413:function(I,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),k=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"},p=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),V=s.act,g=s.data,v=(0,o.useLocalState)(u,"tabIndex",0),h=v[0],C=v[1],b=function(){function B(L){switch(L){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:h===0,onClick:function(){function B(){return C(0)}return B}(),children:"Data View"},"DataView"),(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"map-marked-alt",selected:h===1,onClick:function(){function B(){return C(1)}return B}(),children:"Map View"},"MapView")]})}),b(h)]})})})}return i}(),c=function(d,u){var s=(0,o.useBackend)(u),V=s.act,g=s.data,v=(0,a.sortBy)(function(A){return A.name})(g.crewmembers||[]),h=g.possible_levels,C=g.viewing_current_z_level,b=g.is_advanced,B=(0,o.useLocalState)(u,"search",""),L=B[0],w=B[1],T=(0,t.createSearch)(L,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:b?(0,e.createComponentVNode)(2,f.Dropdown,{mr:"5px",width:"50px",options:h,selected:C,onSelected:function(){function A(x){return V("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:p(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:k.COLORS.damageType.oxy,children:A.oxy}),"|",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:k.COLORS.damageType.toxin,children:A.tox}),"|",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:k.COLORS.damageType.burn,children:A.fire}),"|",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:k.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 V("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),V=s.data,g=(0,o.useLocalState)(u,"zoom",1),v=g[0],h=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 C(b){return h(b)}return C}(),children:V.crewmembers.filter(function(C){return C.sensor_type===3}).map(function(C){return(0,e.createComponentVNode)(2,f.NanoMap.Marker,{x:C.x,y:C.y,zoom:v,icon:"circle",tooltip:C.name+" ("+C.assignment+")",color:p(C,V.critThreshold)},C.ref)})})})}},55104:function(I,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"]],k=r.Cryo=function(){function p(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 p}(),S=function(l,c){var m=(0,a.useBackend)(c),i=m.act,d=m.data,u=d.isOperating,s=d.hasOccupant,V=d.occupant,g=V===void 0?[]:V,v=d.cellTemperature,h=d.cellTemperatureStatus,C=d.isBeakerLoaded,b=d.cooldownProgress,B=d.auto_eject_healthy,L=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:!C,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:h,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:!C&&"average",value:b,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:L?"toggle-on":"toggle-off",selected:L,onClick:function(){function w(){return i(L?"auto_eject_dead_off":"auto_eject_dead_on")}return w}(),children:L?"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,V=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:!V&&"bad",ml:1,children:V?(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:V,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(I,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(p,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,k),!!d&&(0,e.createComponentVNode)(2,S)]})})}return y}(),k=function(p,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(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.frozen_items,u=function(V){var g=V.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 V(){return m("one_item",{item:s.uid})}return V}()})},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(I,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"]],k=[["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 h(C,b){var B=(0,a.useBackend)(b),L=B.act,w=B.data,T=w.irradiating,A=w.dnaBlockSize,x=w.occupant;b.dnaBlockSize=A,b.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,p)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,l)})]})})]})}return h}(),p=function(C,b){var B=(0,a.useBackend)(b),L=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 L("toggleLock")}return E}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!A||T,icon:"user-slash",content:"Eject",onClick:function(){function E(){return L("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)]})}),b.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(C,b){var B=(0,a.useBackend)(b),L=B.act,w=B.data,T=w.selectedMenuKey,A=w.hasOccupant,x=w.occupant;if(A){if(b.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,V)),(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:k.map(function(M,R){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:M[2],selected:T===M[0],onClick:function(){function O(){return L("selectMenuKey",{key:M[0]})}return O}(),children:M[1]},R)})}),E]})},c=function(C,b){var B=(0,a.useBackend)(b),L=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:b.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 M(R){return R.toString(16).toUpperCase()}return M}(),ml:"0",onChange:function(){function M(R,O){return L("changeUITarget",{value:O})}return M}()})})}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Irradiate Block",mt:"0.5rem",onClick:function(){function M(){return L("pulseUIRadiation")}return M}()})]})},m=function(C,b){var B=(0,a.useBackend)(b),L=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:b.dnaBlockSize,action:"selectSEBlock"}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Irradiate Block",onClick:function(){function E(){return L("pulseSERadiation")}return E}()})]})},i=function(C,b){var B=(0,a.useBackend)(b),L=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,M){return L("radiationIntensity",{value:M})}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,M){return L("radiationDuration",{value:M})}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 L("pulseRadiation")}return x}()})]})},d=function(C,b){var B=(0,a.useBackend)(b),L=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(C,b){var B=(0,a.useBackend)(b),L=B.act,w=B.data,T=C.id,A=C.name,x=C.buffer,E=w.isInjectorReady,M=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:M,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 L("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 L("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 L("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 L("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 L("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 L("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 L("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 L("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 L("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 L("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(C,b){var B=(0,a.useBackend)(b),L=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 L("wipeDisk")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!T,icon:"eject",content:"Eject",onClick:function(){function x(){return L("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."]})})},V=function(C,b){var B=(0,a.useBackend)(b),L=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 L("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,M){return(0,e.createComponentVNode)(2,t.Button,{disabled:E>A,icon:"syringe",content:E,onClick:function(){function R(){return L("injectRejuvenators",{amount:E})}return R}()},M)}),(0,e.createComponentVNode)(2,t.Button,{disabled:A<=0,icon:"syringe",content:"All",onClick:function(){function E(){return L("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(C,b){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 "),C.duration,(0,e.createTextVNode)(" second"),C.duration===1?"":"s"],0)})]})},v=function(C,b){for(var B=(0,a.useBackend)(b),L=B.act,w=B.data,T=C.dnaString,A=C.selectedBlock,x=C.selectedSubblock,E=C.blockSize,M=C.action,R=T.split(""),O=0,D=[],j=function(){for(var K=U/E+1,G=[],$=function(){var J=z+1;G.push((0,e.createComponentVNode)(2,t.Button,{selected:A===K&&x===J,content:R[U+z],mb:"0",onClick:function(){function ie(){return L(M,{block:K,subblock:J})}return ie}()}))},z=0;zs.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 C(){return u("dispatch_ert",{silent:v})}return C}()})})]})})})},p=function(m,i){var d=(0,a.useBackend)(i),u=d.act,s=d.data,V=s.ert_request_messages;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:V&&V.length?V.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,V=(0,a.useLocalState)(i,"text",""),g=V[0],v=V[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 h(C,b){return v(b)}return h}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Deny ERT",fluid:!0,icon:"times",center:!0,mt:2,textAlign:"center",onClick:function(){function h(){return u("deny_ert",{reason:g})}return h}()})]})})}},77877:function(I,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,p){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,k)})]})}return S}(),k=function(y,p){var l=(0,a.useBackend)(p),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(I,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 k(S,y){var p=(0,t.useBackend)(y),l=p.act,c=p.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 V(){return l("power")}return V}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Reset",onClick:function(){function V(){return l("reset",{reset:"freq"})}return V}()}),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 V(g){return(0,a.toFixed)(g,1)}return V}(),width:"80px",onChange:function(){function V(g,v){return l("freq",{freq:v})}return V}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Reset",onClick:function(){function V(){return l("reset",{reset:"code"})}return V}()}),children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:i,width:"80px",onChange:function(){function V(g,v){return l("code",{code:v})}return V}()})})]})})})})}return k}()},52640:function(I,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),k=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,p)]})})})}return l}(),y=function(c,m){var i=(0,t.useBackend)(m),d=i.act,u=i.data,s=u.evo_points,V=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:!V,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"})]})]})})})},p=function(c,m){var i=(0,t.useBackend)(m),d=i.act,u=i.data,s=u.evo_points,V=u.ability_tabs,g=u.purchased_abilities,v=u.view_mode,h=(0,t.useLocalState)(m,"selectedTab",V[0]),C=h[0],b=h[1],B=(0,t.useLocalState)(m,"searchText",""),L=B[0],w=B[1],T=(0,t.useLocalState)(m,"ability_tabs",V[0].abilities),A=T[0],x=T[1],E=function(D,j){if(j===void 0&&(j=""),!D||D.length===0)return[];var U=(0,a.createSearch)(j,function(W){return W.name+"|"+W.description});return(0,N.flow)([(0,k.filter)(function(W){return W==null?void 0:W.name}),(0,k.filter)(U),(0,k.sortBy)(function(W){return W==null?void 0:W.name})])(D)},M=function(D){if(w(D),D==="")return x(C.abilities);x(E(V.map(function(j){return j.abilities}).flat(),D))},R=function(D){b(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 O(D,j){M(j)}return O}(),value:L}),(0,e.createComponentVNode)(2,o.Button,{icon:v?"square-o":"check-square-o",selected:!v,content:"Compact",onClick:function(){function O(){return d("set_view_mode",{mode:0})}return O}()}),(0,e.createComponentVNode)(2,o.Button,{icon:v?"check-square-o":"square-o",selected:v,content:"Expanded",onClick:function(){function O(){return d("set_view_mode",{mode:1})}return O}()})],4),children:[(0,e.createComponentVNode)(2,o.Tabs,{children:V.map(function(O){return(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:L===""&&C===O,onClick:function(){function D(){R(O)}return D}(),children:O.category},O)})}),A.map(function(O,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:O.name}),g.includes(O.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:O.cost})]}),(0,e.createComponentVNode)(2,o.Stack.Item,{textAlign:"right",children:(0,e.createComponentVNode)(2,o.Button,{mr:.5,disabled:O.cost>s||g.includes(O.power_path),content:"Evolve",onClick:function(){function j(){return d("purchase",{power_path:O.power_path})}return j}()})})]}),!!v&&(0,e.createComponentVNode)(2,o.Stack,{color:"#8a8a8a",my:1,ml:1.5,width:"95%",children:O.description+" "+O.helptext})]},D)})]})})}},70672:function(I,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),k=n(84947),S=["id","amount","lineDisplay","onClick"];function y(g,v){if(g==null)return{};var h={},C=Object.keys(g),b,B;for(B=0;B=0)&&(h[b]=g[b]);return h}var p=2e3,l={bananium:"clown",tranquillite:"mime"},c=r.ExosuitFabricator=function(){function g(v,h){var C=(0,o.useBackend)(h),b=C.act,B=C.data,L=B.building;return(0,e.createComponentVNode)(2,k.Window,{width:950,height:625,children:(0,e.createComponentVNode)(2,k.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)}),L&&(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,h){var C=(0,o.useBackend)(h),b=C.act,B=C.data,L=B.materials,w=B.capacity,T=Object.values(L).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 b("withdraw",{id:A})}return x}()},A)})})},i=function(v,h){var C=(0,o.useBackend)(h),b=C.act,B=C.data,L=B.curCategory,w=B.categories,T=B.designs,A=B.syncing,x=(0,o.useLocalState)(h,"searchText",""),E=x[0],M=x[1],R=(0,t.createSearch)(E,function(D){return D.name}),O=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:L,options:w,onSelected:function(){function D(j){return b("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 b("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 b("sync")}return D}()})]}),children:[(0,e.createComponentVNode)(2,f.Input,{placeholder:"Search by name...",mb:"0.5rem",width:"100%",onInput:function(){function D(j,U){return M(U)}return D}()}),O.map(function(D){return(0,e.createComponentVNode)(2,V,{design:D},D.id)}),O.length===0&&(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"No designs found."})]})},d=function(v,h){var C=(0,o.useBackend)(h),b=C.act,B=C.data,L=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 ",L,"\xA0(",(0,e.createComponentVNode)(2,N.Countdown,{current:A,timeLeft:T-A,format:function(){function x(E,M){return M.substr(3)}return x}()}),")"]})]})})})},u=function(v,h){var C=(0,o.useBackend)(h),b=C.act,B=C.data,L=B.queue,w=B.processingQueue,T=Object.entries(B.queueDeficit).filter(function(x){return x[1]<0}),A=L.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 b("process")}return x}()}),(0,e.createComponentVNode)(2,f.Button,{disabled:L.length===0,icon:"eraser",content:"Clear",onClick:function(){function x(){return b("unqueueall")}return x}()})]}),children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:L.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:L.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 M(){return b("queueswap",{from:E+1,to:E})}return M}()}),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,h){var C=(0,o.useBackend)(h),b=C.act,B=C.data,L=v.id,w=v.amount,T=v.lineDisplay,A=v.onClick,x=y(v,S),E=B.materials[L]||0,M=w||E;if(!(M<=0&&!(L==="metal"||L==="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",L])}),(0,e.createComponentVNode)(2,f.Stack.Item,{className:"Exofab__material--amount",color:R&&"bad",ml:0,mr:1,children:M.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",L])})})}),(0,e.createComponentVNode)(2,f.Stack.Item,{grow:"1",children:[(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__material--name",children:L}),(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__material--amount",children:[M.toLocaleString("en-US")," cm\xB3 (",Math.round(M/p*10)/10," ","sheets)"]})]})],4)})))}},V=function(v,h){var C=(0,o.useBackend)(h),b=C.act,B=C.data,L=v.design;return(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__design",children:[(0,e.createComponentVNode)(2,f.Button,{disabled:L.notEnough||B.building,icon:"cog",content:L.name,onClick:function(){function w(){return b("build",{id:L.id})}return w}()}),(0,e.createComponentVNode)(2,f.Button,{icon:"plus-circle",onClick:function(){function w(){return b("queue",{id:L.id})}return w}()}),(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__design--cost",children:Object.entries(L.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"}),L.time>0?(0,e.createFragment)([L.time/10,(0,e.createTextVNode)(" seconds")],0):"Instant"]})})]})}},25627:function(I,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"}]]),k=r.ExperimentConsole=function(){function S(y,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,i=m.open,d=m.feedback,u=m.occupant,s=m.occupant_name,V=m.occupant_status,g=function(){function h(){if(!u)return(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No specimen detected."});var C=function(){function B(){return f.get(V)}return B}(),b=C();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:b.color,children:b.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 L(){return c("experiment",{experiment_type:B})}return L}()},B)})})]})}return h}(),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 h(){return c("door")}return h}()}),children:v})]})})}return S}()},14172:function(I,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,k=function(p){var l="good",c=80,m=95,i=110,d=120;return pi?l="average":p>d&&(l="bad"),l},S=r.ExternalAirlockController=function(){function y(p,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,V=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:k(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:!V,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:V,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:V,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":V?"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":V?"yellow":null,onClick:function(){function g(){return m("force_int")}return g}()})]})]})]})})}return y}()},61893:function(I,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(k,S){var y=(0,a.useBackend)(S),p=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 p("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 p("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 p("paper")}return c}()}),!!l.paper&&(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Rename",onClick:function(){function c(){return p("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 p("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 p("send")}return c}()})})]})})]})})}return N}()},80031:function(I,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(k,S){var y=(0,a.useBackend)(S),p=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 p("retrieve",{index:d.index})}return u}()})})]},d)})]})})})})}return N}()},39552:function(I,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 p=(0,a.useBackend)(y),l=p.act,c=p.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 k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.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 V(){return l("cycle_style",{offset:-1})}return V}()})}),(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 V(g){return l("select_style",{style:g})}return V}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",onClick:function(){function V(){return l("cycle_style",{offset:1})}return V}()})})]}),(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(V){return(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,f,{image:s[V],isSelected:i===V,onSelect:function(){function g(){return l("select_style",{style:V})}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(V){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[V+"west",V,V+"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)})},V)})})})})]})})})}return k}()},5090:function(I,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"},k=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,V=s.emped,g=s.active,v=s.area,h=s.position,C=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:V?(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,p)}),g?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,l,{area:v,position:h})}),C&&(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,l,{title:"Saved Position",position:C})}),(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."]})})})})},p=function(i,d){var u=(0,t.useBackend)(d),s=u.act,V=u.data,g=V.active,v=V.tag,h=V.same_z,C=(0,t.useLocalState)(d,"newTag",v),b=C[0],B=C[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 L(){return s("toggle")}return L}()}),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 L(){return s("tag",{newtag:b})}return L}(),onInput:function(){function L(w,T){return B(T)}return L}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:v===b,width:"20px",mb:"0",ml:"0.25rem",onClick:function(){function L(){return s("tag",{newtag:b})}return L}(),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:!h,icon:h?"compress":"expand",content:h?"Local Sector":"Global",onClick:function(){function L(){return s("same_z")}return L}()})})]})})},l=function(i,d){var u=i.title,s=i.area,V=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(V)]})})},c=function(i,d){var u=(0,t.useBackend)(d),s=u.data,V=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,k(V,v.position))}).map(function(v,h){return(0,e.createComponentVNode)(2,o.Table.Row,{backgroundColor:h%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)})]},h)})})})))}},1055:function(I,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),V=s.data,g=V.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,k)]})})})}return i}(),k=function(d,u){var s=(0,a.useBackend)(u),V=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 h(){return V("insert")}return h}()}),children:[(0,e.createComponentVNode)(2,p),(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),V=s.act,g=s.data,v=g.has_seed,h=g.seed,C=g.has_disk,b=g.disk,B,L;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,"+h.image,style:{"vertical-align":"middle",width:"32px",margin:"-1px","margin-left":"-11px"}}),(0,e.createComponentVNode)(2,t.Button,{content:h.name,onClick:function(){function w(){return V("eject_seed")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{ml:"3px",icon:"pen",tooltip:"Name Variant",onClick:function(){function w(){return V("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 V("eject_seed")}return w}()})}),C?L=b.name:L="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:L,onClick:function(){function w(){return V("eject_disk")}return w}()})})})]})})},p=function(d,u){var s=(0,a.useBackend)(u),V=s.act,g=s.data,v=g.disk,h=g.core_genes;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Core Genes",open:!0,children:h.map(function(C){return(0,e.createComponentVNode)(2,t.Stack,{py:"2px",className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"100%",ml:"2px",children:C.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 b(){return V("extract",{id:C.id})}return b}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Replace",disabled:!C.is_type||!v.can_insert,icon:"arrow-circle-down",onClick:function(){function b(){return V("replace",{id:C.id})}return b}()})})]},C)})},"Core Genes")},l=function(d,u){var s=(0,a.useBackend)(u),V=s.data,g=V.reagent_genes,v=V.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),V=s.data,g=V.trait_genes,v=V.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,V=d.gene_set,g=d.do_we_show,v=(0,a.useBackend)(u),h=v.act,C=v.data,b=C.disk;return(0,e.createComponentVNode)(2,t.Collapsible,{title:s,open:!0,children:g?V.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:!(b!=null&&b.can_extract),icon:"save",onClick:function(){function L(){return h("extract",{id:B.id})}return L}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove",icon:"times",onClick:function(){function L(){return h("remove",{id:B.id})}return L}()})})]},B)}):(0,e.createComponentVNode)(2,t.Stack.Item,{children:"No Genes Detected"})},s)}},14232:function(I,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(k,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(I,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 k(S,y){var p=(0,a.useBackend)(y),l=p.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 k}(),N=function(S,y){var p=(0,a.useBackend)(y),l=p.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,V=S.act_off,g=V===void 0?"hud_off":V;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(I,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(k,S){var y=(0,a.useBackend)(S),p=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 p("dispense",{gland_id:i.id})}return d}()},i.id)})})})})}return N}()},70309:function(I,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(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.charging_state,m=l.charge_count,i=l.breaker,d=l.ext_power,u=function(){function V(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 V}(),s=function(){function V(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 V}();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 V(){return p("breaker")}return V}()}),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(I,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 k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.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 k}()},12219:function(I,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,k=r.HandheldChemDispenser=function(){function p(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 p}(),S=function(l,c){var m=(0,a.useBackend)(c),i=m.act,d=m.data,u=d.amount,s=d.energy,V=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:V,ranges:{good:[V*.5,1/0],average:[V*.25,V*.5],bad:[-1/0,V*.25]},children:[s," / ",V," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Amount",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{children:f.map(function(v,h){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 C(){return i("amount",{amount:v})}return C}()})},h)})})}),(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,V=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(h,C){return(0,e.createComponentVNode)(2,t.Button,{width:"32%",icon:"arrow-circle-down",overflow:"hidden",textOverflow:"ellipsis",selected:V===h.id,content:h.title,style:{"margin-left":"2px"},onClick:function(){function b(){return i("dispense",{reagent:h.id})}return b}()},C)}),g.map(function(h,C){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:"1",basis:"25%"},C)})]})})}},53917:function(I,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,p){var l=(0,t.useBackend)(p),c=l.act,m=l.data,i=m.on,d=m.user_health,u=m.minHealth,s=m.maxHealth,V=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:V,format:function(){function g(v){return(0,a.toFixed)(v,1)}return g}(),width:"80px",onDrag:function(){function g(v,h){return c("alarm_health",{alarm_health:h})}return g}()})}),d!==null&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"User health",children:(0,e.createComponentVNode)(2,o.Box,{color:k(d),bold:d>=100,children:(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:d})})})]})})})})}return S}(),k=function(y){return y>50?"green":y>0?"orange":"red"}},93116:function(I,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 k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=(0,a.useLocalState)(y,"currentDeck",""),i=m[0],d=m[1],u=(0,a.useLocalState)(y,"showReload",!1),s=u[0],V=u[1],g=c.decks,v=c.ai_override,h=c.emagged,C=function(){function b(B){l("select_deck",{deck:B}),d(B),V(!0),setTimeout(function(){V(!1)},3e3)}return b}();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(b){return(0,e.createComponentVNode)(2,t.Button,{width:15.5,color:"transparent",content:b,selected:b===i,onClick:function(){function B(){return C(b)}return B}()},b)}),(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:h?"Turn On":"Turn Off",color:h?"good":"bad",onClick:function(){function b(){return l("ai_override")}return b}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety Protocols",children:(0,e.createComponentVNode)(2,t.Box,{color:h?"bad":"good",children:[h?"Off":"On",!!h&&(0,e.createComponentVNode)(2,t.Button,{ml:9.5,width:15.5,color:"red",content:"Wildlife Simulation",onClick:function(){function b(){return l("wildlifecarp")}return b}()})]})})]})]})})]})})]})}return k}(),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(I,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,k),(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,p)]})})]})}return l}(),k=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 V(){return d("help")}return V}()})]})})})},S=function(c,m){var i=(0,t.useBackend)(m),d=i.act,u=i.data,s=u.lines,V=u.playing,g=u.repeat,v=u.maxRepeats,h=u.tempo,C=u.minTempo,b=u.maxTempo,B=u.tickLag,L=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:V,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:!V,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,M){return d("repeat",{new:M})}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:h>=b,content:"-",as:"span",mr:"0.5rem",onClick:function(){function x(){return d("tempo",{new:h+B})}return x}()}),(0,a.round)(600/h)," BPM",(0,e.createComponentVNode)(2,o.Button,{disabled:h<=C,content:"+",as:"span",ml:"0.5rem",onClick:function(){function x(){return d("tempo",{new:h-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:L,stepPixelSize:6,onDrag:function(){function x(E,M){return d("setvolume",{new:M})}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,V=u.instrumentLoaded,g=u.instrument,v=u.canNoteShift,h=u.noteShift,C=u.noteShiftMin,b=u.noteShiftMax,B=u.sustainMode,L=u.sustainLinearDuration,w=u.sustainExponentialDropoff,T=u.legacy,A=u.sustainDropoffVolume,x=u.sustainHeldNote,E,M;return B===1?(E="Linear",M=(0,e.createComponentVNode)(2,o.Slider,{minValue:.1,maxValue:5,value:L,step:.5,stepPixelSize:85,format:function(){function R(O){return(0,a.round)(O*100)/100+" seconds"}return R}(),onChange:function(){function R(O,D){return d("setlinearfalloff",{new:D/10})}return R}()})):B===2&&(E="Exponential",M=(0,e.createComponentVNode)(2,o.Slider,{minValue:1.025,maxValue:10,value:w,step:.01,format:function(){function R(O){return(0,a.round)(O*1e3)/1e3+"% per decisecond"}return R}(),onChange:function(){function R(O,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:V?(0,e.createComponentVNode)(2,o.Dropdown,{options:s,selected:g,width:"50%",onSelected:function(){function R(O){return d("switchinstrument",{name:O})}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:C,maxValue:b,value:h,stepPixelSize:2,format:function(){function R(O){return O+" keys / "+(0,a.round)(O/12*100)/100+" octaves"}return R}(),onChange:function(){function R(O,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(O){return d("setsustainmode",{new:O})}return R}()}),M]}),(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(O,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}()})]})})})},p=function(c,m){var i=(0,t.useBackend)(m),d=i.act,u=i.data,s=u.playing,V=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:V.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&&(V.length>0?(0,e.createComponentVNode)(2,o.LabeledList,{children:V.map(function(v,h){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:h+1,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:s,icon:"pen",onClick:function(){function C(){return d("modifyline",{line:h+1})}return C}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:s,icon:"trash",onClick:function(){function C(){return d("deleteline",{line:h+1})}return C}()})],4),children:v},h)})}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"Song is empty."}))})}},64261:function(I,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(k,S){var y=(0,a.useBackend)(S),p=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 p("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 p("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 p("triggerevent",{triggerevent:"Grant Emergency Maintenance Access"})}return i}(),content:"Grant"}),(0,e.createComponentVNode)(2,t.Button,{icon:"door-closed",onClick:function(){function i(){return p("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 p("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 p("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 p("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 p("reset")}return i}()}),children:m})]})})}return N}()},34898:function(I,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,p){var l=(0,a.useBackend)(p),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,k)}),(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}(),k=function(y,p){var l=(0,a.useBackend)(p),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(I,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(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.isAdmin,u=i.isSlaved,s=i.isMalf,V=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||V)&&(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,k)]})})}return y}(),N=function(p,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,V=i.ion_laws,g=i.ion_law_nr,v=i.has_inherent_laws,h=i.inherent_laws,C=i.has_supplied_laws,b=i.supplied_laws,B=i.channels,L=i.channel,w=i.isMalf,T=i.isAdmin,A=i.zeroth_law,x=i.ion_law,E=i.inherent_law,M=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:V,ctx:l}),!!v&&(0,e.createComponentVNode)(2,S,{title:"Inherent",laws:h,ctx:l}),!!C&&(0,e.createComponentVNode)(2,S,{title:"Supplied",laws:b,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(O){return(0,e.createComponentVNode)(2,t.Button,{content:O.channel,selected:O.channel===L,onClick:function(){function D(){return m("law_channel",{law_channel:O.channel})}return D}()},O.channel)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"State Laws",children:(0,e.createComponentVNode)(2,t.Button,{content:"State Laws",onClick:function(){function O(){return m("state_laws")}return O}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Law Notification",children:(0,e.createComponentVNode)(2,t.Button,{content:"Notify",onClick:function(){function O(){return m("notify_laws")}return O}()})})]})}),!!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 O(){return m("change_zeroth_law")}return O}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function O(){return m("add_zeroth_law")}return O}()})]})]}),(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 O(){return m("change_ion_law")}return O}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function O(){return m("add_ion_law")}return O}()})]})]}),(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 O(){return m("change_inherent_law")}return O}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function O(){return m("add_inherent_law")}return O}()})]})]}),(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:M}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:R,onClick:function(){function O(){return m("change_supplied_law_position")}return O}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function O(){return m("change_supplied_law")}return O}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function O(){return m("add_supplied_law")}return O}()})]})]})]})})],0)},k=function(p,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(p,l){var c=(0,a.useBackend)(p.ctx),m=c.act,i=c.data,d=i.isMalf;return(0,e.createComponentVNode)(2,t.Section,{title:p.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?"})]}),p.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(I,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,h){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}(),k=function(v,h){var C=(0,a.useBackend)(h),b=C.act,B=C.data,L=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:L.title}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:L.author}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Summary",children:L.summary}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rating",children:[L.rating,(0,e.createComponentVNode)(2,t.Icon,{name:"star",color:"yellow",verticalAlign:"top"})]}),!L.isProgrammatic&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Categories",children:L.categories.join(", ")})]}),(0,e.createVNode)(1,"br"),w===L.ckey&&(0,e.createComponentVNode)(2,t.Button,{content:"Delete Book",icon:"trash",color:"red",disabled:L.isProgrammatic,onClick:function(){function T(){return b("delete_book",{bookid:L.id,user_ckey:w})}return T}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Report Book",icon:"flag",color:"red",disabled:L.isProgrammatic,onClick:function(){function T(){return(0,f.modalOpen)(h,"report_book",{bookid:L.id})}return T}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Rate Book",icon:"star",color:"caution",disabled:L.isProgrammatic,onClick:function(){function T(){return(0,f.modalOpen)(h,"rate_info",{bookid:L.id})}return T}()})]})},S=function(v,h){var C=(0,a.useBackend)(h),b=C.act,B=C.data,L=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:L.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 M(){return b("set_report",{report_type:x.category_id})}return M}()}),(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 b("submit_report",{bookid:L.id,user_ckey:A})}return x}()})]})},y=function(v,h){var C=(0,a.useBackend)(h),b=C.act,B=C.data,L=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:L>=T?"caution":"default",onClick:function(){function x(){return b("set_rating",{rating_value:T})}return x}()})},A)}),(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,ml:2,fontSize:"150%",children:[L+"/10",(0,e.createComponentVNode)(2,t.Icon,{name:"star",color:"yellow",ml:.5,verticalAlign:"top"})]})]})},p=function(v,h){var C=(0,a.useBackend)(h),b=C.act,B=C.data,L=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:L.title}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:L.author}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rating",children:[L.current_rating?L.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:L.total_ratings?L.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 b("rate_book",{bookid:L.id,user_ckey:w})}return T}()})]})},l=function(v,h){var C=(0,a.useBackend)(h),b=C.data,B=(0,a.useLocalState)(h,"tabIndex",0),L=B[0],w=B[1],T=b.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:L===0,onClick:function(){function A(){return w(0)}return A}(),children:"Book Archives"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:L===1,onClick:function(){function A(){return w(1)}return A}(),children:"Corporate Literature"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:L===2,onClick:function(){function A(){return w(2)}return A}(),children:"Upload Book"}),T===1&&(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:L===3,onClick:function(){function A(){return w(3)}return A}(),children:"Patron Manager"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:L===4,onClick:function(){function A(){return w(4)}return A}(),children:"Inventory"})]})})},c=function(v,h){var C=(0,a.useLocalState)(h,"tabIndex",0),b=C[0];switch(b){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,V);default:return"You are somehow on a tab that doesn't exist! Please let a coder know."}},m=function(v,h){var C=(0,a.useBackend)(h),b=C.act,B=C.data,L=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:L.title||"Input Title",onClick:function(){function x(){return(0,f.modalOpen)(h,"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:L.author||"Input Author",onClick:function(){function x(){return(0,f.modalOpen)(h,"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:L.ratingmin,onClick:function(){function x(){return(0,f.modalOpen)(h,"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:L.ratingmax,onClick:function(){function x(){return(0,f.modalOpen)(h,"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 b("toggle_search_category",{category_id:A[E]})}return x}()})})})}),(0,e.createVNode)(1,"br"),w.filter(function(x){return L.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 b("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 b("clear_search")}return x}()}),L.ckey?(0,e.createComponentVNode)(2,t.Button,{mb:.5,content:"Stop Showing My Books",color:"bad",icon:"search",onClick:function(){function x(){return b("clear_ckey_search")}return x}()}):(0,e.createComponentVNode)(2,t.Button,{content:"Find My Books",icon:"search",onClick:function(){function x(){return b("find_users_books",{user_ckey:T})}return x}()})]})]})},i=function(v,h){var C=(0,a.useBackend)(h),b=C.act,B=C.data,L=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 b("deincrementpagemax")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-left",disabled:w===1,onClick:function(){function x(){return b("deincrementpage")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{bold:!0,content:w,onClick:function(){function x(){return(0,f.modalOpen)(h,"setpagenumber")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",disabled:w===T,onClick:function(){function x(){return b("incrementpage")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",disabled:w===T,onClick:function(){function x(){return b("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"})]}),L.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 b("order_external_book",{bookid:x.id})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{content:"More...",onClick:function(){function E(){return(0,f.modalOpen)(h,"expand_info",{bookid:x.id})}return E}()})]})]},x.id)})]})]})},d=function(v,h){var C=(0,a.useBackend)(h),b=C.act,B=C.data,L=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"})]}),L.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 b("order_programmatic_book",{bookid:T.id})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:"More...",onClick:function(){function x(){return(0,f.modalOpen)(h,"expand_info",{bookid:T.id})}return x}()})]})]},A)})]})})},u=function(v,h){var C=(0,a.useBackend)(h),b=C.act,B=C.data,L=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:L.copyright,content:"Upload Book",onClick:function(){function x(){return b("uploadbook",{user_ckey:T})}return x}()}),children:[L.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:L.copyright,content:L.title,onClick:function(){function x(){return(0,f.modalOpen)(h,"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:L.copyright,content:L.author,onClick:function(){function x(){return(0,f.modalOpen)(h,"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 b("toggle_upload_category",{category_id:A[E]})}return x}()})})})]}),(0,e.createVNode)(1,"br"),w.filter(function(x){return L.categories.includes(x.category_id)}).map(function(x){return(0,e.createComponentVNode)(2,t.Button,{content:x.description,disabled:L.copyright,selected:!0,icon:"unlink",onClick:function(){function E(){return b("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:L.copyright,content:"Edit Summary",onClick:function(){function x(){return(0,f.modalOpen)(h,"edit_selected_summary")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:L.summary})]})})]})]})},s=function(v,h){var C=(0,a.useBackend)(h),b=C.act,B=C.data,L=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"})]}),L.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 b("reportlost",{libraryid:w.libraryid})}return A}()})})]},T)})]})})},V=function(v,h){var C=(0,a.useBackend)(h),b=C.act,B=C.data,L=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"})]}),L.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",k),(0,f.modalRegisterBodyOverride)("report_book",S),(0,f.modalRegisterBodyOverride)("rate_info",p)},92682:function(I,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,k)})]})}return l}(),k=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,p);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 V(){return d("return")}return V}()}),(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(V){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:V.uploader_ckey}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:V.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book"}),V.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:V.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:V.report_description}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:V.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:V.id})}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Unflag",icon:"flag",color:"caution",onClick:function(){function g(){return d("unflag_book",{bookid:V.id})}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:"View",onClick:function(){function g(){return d("view_book",{bookid:V.id})}return g}()})]})]},V.id)})]})})},p=function(c,m){var i=(0,a.useBackend)(m),d=i.act,u=i.data,s=u.ckey,V=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"})]}),V.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(I,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),k=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,V=s===void 0?[]:s,g=u.message,v=g===void 0?"":g,h=u.init_value,C=u.timeout,b=u.title,B=(0,f.useLocalState)(m,"selected",V.indexOf(h)),L=B[0],w=B[1],T=(0,f.useLocalState)(m,"searchBarVisible",V.length>10),A=T[0],x=T[1],E=(0,f.useLocalState)(m,"searchQuery",""),M=E[0],R=E[1],O=function(){function z(Y){var J=G.length-1;if(Y===N.KEY_DOWN)if(L===null||L===J){var ie;w(0),(ie=document.getElementById("0"))==null||ie.scrollIntoView()}else{var re;w(L+1),(re=document.getElementById((L+1).toString()))==null||re.scrollIntoView()}else if(Y===N.KEY_UP)if(L===null||L===0){var de;w(J),(de=document.getElementById(J.toString()))==null||de.scrollIntoView()}else{var ve;w(L-1),(ve=document.getElementById((L-1).toString()))==null||ve.scrollIntoView()}}return z}(),D=function(){function z(Y){Y!==L&&w(Y)}return z}(),j=function(){function z(){x(!1),x(!0)}return z}(),U=function(){function z(Y){var J=String.fromCharCode(Y),ie=V.find(function(ve){return ve==null?void 0:ve.toLowerCase().startsWith(J==null?void 0:J.toLowerCase())});if(ie){var re,de=V.indexOf(ie);w(de),(re=document.getElementById(de.toString()))==null||re.scrollIntoView()}}return z}(),W=function(){function z(Y){var J;Y!==M&&(R(Y),w(0),(J=document.getElementById("0"))==null||J.scrollIntoView())}return z}(),K=function(){function z(){x(!A),R("")}return z}(),G=V.filter(function(z){return z==null?void 0:z.toLowerCase().includes(M.toLowerCase())}),$=330+Math.ceil(v.length/3);return A||setTimeout(function(){var z;return(z=document.getElementById(L.toString()))==null?void 0:z.focus()},1),(0,e.createComponentVNode)(2,k.Window,{title:b,width:325,height:$,children:[C&&(0,e.createComponentVNode)(2,a.Loader,{value:C}),(0,e.createComponentVNode)(2,k.Window.Content,{onKeyDown:function(){function z(Y){var J=window.event?Y.which:Y.keyCode;(J===N.KEY_DOWN||J===N.KEY_UP)&&(Y.preventDefault(),O(J)),J===N.KEY_ENTER&&(Y.preventDefault(),d("submit",{entry:G[L]})),!A&&J>=N.KEY_A&&J<=N.KEY_Z&&(Y.preventDefault(),U(J)),J===N.KEY_ESCAPE&&(Y.preventDefault(),d("cancel"))}return z}(),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 z(){return K()}return z}()}),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:G,onClick:D,onFocusSearch:j,searchBarVisible:A,selected:L})}),(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:A&&(0,e.createComponentVNode)(2,p,{filteredItems:G,onSearch:W,searchQuery:M,selected:L})}),(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,children:(0,e.createComponentVNode)(2,t.InputButtons,{input:G[L]})})]})})})]})}return l}(),y=function(c,m){var i=(0,f.useBackend)(m),d=i.act,u=c.filteredItems,s=c.onClick,V=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(h,C){return(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:"transparent",id:C,onClick:function(){function b(){return s(C)}return b}(),onDblClick:function(){function b(B){B.preventDefault(),d("submit",{entry:u[v]})}return b}(),onKeyDown:function(){function b(B){var L=window.event?B.which:B.keyCode;g&&L>=N.KEY_A&&L<=N.KEY_Z&&(B.preventDefault(),V())}return b}(),selected:C===v,style:{animation:"none",transition:"none"},children:h.replace(/^\w/,function(b){return b.toUpperCase()})},C)})})},p=function(c,m){var i=(0,f.useBackend)(m),d=i.act,u=c.filteredItems,s=c.onSearch,V=c.searchQuery,g=c.selected;return(0,e.createComponentVNode)(2,o.Input,{width:"100%",autoFocus:!0,autoSelect:!0,onEnter:function(){function v(h){h.preventDefault(),d("submit",{entry:u[g]})}return v}(),onInput:function(){function v(h,C){return s(C)}return v}(),placeholder:"Search...",value:V})}},75965:function(I,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(L,w){var T=L.name,A=L.value,x=L.module_ref,E=(0,a.useBackend)(w),M=E.act;return(0,e.createComponentVNode)(2,t.NumberInput,{value:A,minValue:-50,maxValue:50,stepPixelSize:5,width:"39px",onChange:function(){function R(O,D){return M("configure",{key:T,value:D,ref:x})}return R}()})},N=function(L,w){var T=L.name,A=L.value,x=L.module_ref,E=(0,a.useBackend)(w),M=E.act;return(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:A,onClick:function(){function R(){return M("configure",{key:T,value:!A,ref:x})}return R}()})},k=function(L,w){var T=L.name,A=L.value,x=L.module_ref,E=(0,a.useBackend)(w),M=E.act;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"paint-brush",onClick:function(){function R(){return M("configure",{key:T,ref:x})}return R}()}),(0,e.createComponentVNode)(2,t.ColorBox,{color:A,mr:.5})],4)},S=function(L,w){var T=L.name,A=L.value,x=L.values,E=L.module_ref,M=(0,a.useBackend)(w),R=M.act;return(0,e.createComponentVNode)(2,t.Dropdown,{displayText:A,options:x,onSelected:function(){function O(D){return R("configure",{key:T,value:D,ref:E})}return O}()})},y=function(L,w){var T=L.name,A=L.display_name,x=L.type,E=L.value,M=L.values,R=L.module_ref,O={number:(0,e.normalizeProps)((0,e.createComponentVNode)(2,f,Object.assign({},L))),bool:(0,e.normalizeProps)((0,e.createComponentVNode)(2,N,Object.assign({},L))),color:(0,e.normalizeProps)((0,e.createComponentVNode)(2,k,Object.assign({},L))),list:(0,e.normalizeProps)((0,e.createComponentVNode)(2,S,Object.assign({},L)))};return(0,e.createComponentVNode)(2,t.Box,{children:[A,": ",O[x]]})},p=function(L,w){var T=L.active,A=L.userradiated,x=L.usertoxins,E=L.usermaxtoxins,M=L.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&&M?"bad":"good",bold:!0,children:T&&M?M:0})})]})},l=function(L,w){var T=L.active,A=L.userhealth,x=L.usermaxhealth,E=L.userbrute,M=L.userburn,R=L.usertoxin,O=L.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?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})})})}),(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?O/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?O:0})})})})]})],4)},c=function(L,w){var T=L.active,A=L.statustime,x=L.statusid,E=L.statushealth,M=L.statusmaxhealth,R=L.statusbrute,O=L.statusburn,D=L.statustoxin,j=L.statusoxy,U=L.statustemp,W=L.statusnutrition,K=L.statusfingerprints,G=L.statusdna,$=L.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/M: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/M: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?O/M:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?O: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/M: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/M: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?U:0})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Nutrition Status",children:T?W: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?K:"???"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Unique Enzymes",children:T?G:"???"})]})}),!!T&&!!$&&(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"})})]}),$.map(function(z){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:z.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:z.type}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[z.stage,"/",z.maxstage]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:z.cure})]},z.name)})]})})],0)},m={rad_counter:p,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(L,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(L,w){var T=L.configuration_data,A=L.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 M=T[E];return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,y,{name:E,display_name:M.display_name,type:M.type,value:M.value,values:M.values,module_ref:A})},M.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:L.onExit,icon:"times",textAlign:"center",children:"Exit"})})})]})})},s=function(L){switch(L){case 1:return"Use";case 2:return"Toggle";case 3:return"Select"}},V=function(L,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.active,M=x.malfunctioning,R=x.locked,O=x.open,D=x.selected_module,j=x.complexity,U=x.complexity_max,W=x.wearer_name,K=x.wearer_job,G=M?"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 $(){return A("activate")}return $}()}),children:G}),(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 $(){return A("lock")}return $}()}),children:R?"Locked":"Unlocked"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cover",children:O?"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," (",U,")"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Occupant",children:[W,", ",K]})]})})},g=function(L,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.active,M=x.control,R=x.helmet,O=x.chestplate,D=x.gauntlets,j=x.boots,U=x.core,W=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:M}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Helmet",children:R||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Chestplate",children:O||"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:U&&(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Core Type",children:U}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Core Charge",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:W/100,content:W+"%",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(L,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.active,M=x.modules,R=M.filter(function(O){return!!O.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(O){var D=m[O.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({},O,{active:E})))]},O.ref)})||(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:"No Info Modules Detected"})})})},h=function(L,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.complexity_max,M=x.modules,R=(0,a.useLocalState)(w,"module_configuration",null),O=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:M.length!==0&&M.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:[O===j.ref&&(0,e.createComponentVNode)(2,u,{configuration_data:j.configuration_data,module_ref:j.ref,onExit:function(){function U(){return D(null)}return U}()}),(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 U(){return A("select",{ref:j.ref})}return U}(),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 U(){return D(j.ref)}return U}(),icon:"cog",selected:O===j.ref,tooltip:"Configure",tooltipPosition:"left",disabled:j.configuration_data.length===0}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function U(){return A("pin",{ref:j.ref})}return U}(),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"})})})})},C=r.MODsuitContent=function(){function B(L,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.ui_theme,M=x.interface_break;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!M,children:!!M&&(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,V)}),(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,h)})]})})}return B}(),b=r.MODsuit=function(){function B(L,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.ui_theme,M=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,C)})})})}return B}()},86322:function(I,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),k=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(p,l){var c=(0,t.useBackend)(l),m=c.act,i=c.data,d=i.autolink,u=i.code,s=i.frequency,V=i.linkedMagnets,g=i.magnetConfiguration,v=i.path,h=i.pathPosition,C=i.probing,b=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:C?"spinner":"sync",iconSpin:!!C,disabled:C,onClick:function(){function L(){return m("probe_magnets")}return L}()}),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:b?"power-off":"times",content:b?"On":"Off",selected:b,onClick:function(){function L(){return m("toggle_power")}return L}()}),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 L(w,T){return m("set_speed",{speed:T})}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Path",children:[Array.from(k.entries()).map(function(L){var w=L[0],T=L[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 L(){return m("path_clear")}return L}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"file-import",float:"right",tooltip:"Manually input path",tooltipPosition:"left",onClick:function(){function L(){return(0,N.modalOpen)(l,"path_custom_input")}return L}()}),(0,e.createComponentVNode)(2,o.BlockQuote,{children:v.map(function(L,w){var T=k.get(L)||{icon:"question"},A=T.icon,x=T.tooltip;return(0,e.createComponentVNode)(2,o.Button.Confirm,{selected:w+2===h,icon:A,confirmIcon:A,confirmContent:"",tooltip:x,onClick:function(){function E(){return m("path_remove",{index:w+1,code:L})}return E}()},w)})})]})]})}),V.map(function(L,w){var T=L.uid,A=L.powerState,x=L.electricityLevel,E=L.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 M(){return m("toggle_magnet_power",{id:T})}return M}()}),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 M(R,O){return m("set_electricity_level",{id:T,electricityLevel:O})}return M}()})}),(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 M(R,O){return m("set_magnetic_field",{id:T,magneticField:O})}return M}()})})]})},T)})]})]})}return y}()},54374:function(I,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(k,S){var y=(0,a.useBackend)(S),p=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 p("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(I,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),k=r.MechaControlConsole=function(){function S(y,p){var l=(0,t.useBackend)(p),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(I,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),k=n(51185),S=n(69774),y=n(76519),p={Minor:"lightgray",Medium:"good",Harmful:"average","Dangerous!":"bad","BIOHAZARD THREAT!":"darkred"},l={"*Deceased*":"deceased","*SSD*":"ssd","Physically Unfit":"physically_unfit",Disabled:"disabled"},c=function(w,T){(0,f.modalOpen)(w,"edit",{field:T.edit,value:T.value})},m=function(w,T){var A=w.args;return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:A.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:A.max_stages}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Spread",children:[A.spread_text," Transmission"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Possible cure",children:A.cure}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Notes",children:A.desc}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Severity",color:p[A.severity],children:A.severity})]})})})},i=r.MedicalRecords=function(){function L(w,T){var A=(0,t.useBackend)(T),x=A.data,E=x.loginState,M=x.screen;if(!E.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 R;return M===2?R=(0,e.createComponentVNode)(2,d):M===3?R=(0,e.createComponentVNode)(2,u):M===4?R=(0,e.createComponentVNode)(2,s):M===5?R=(0,e.createComponentVNode)(2,v):M===6&&(R=(0,e.createComponentVNode)(2,h)),(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,k.LoginInfo),(0,e.createComponentVNode)(2,y.TemporaryNotice),(0,e.createComponentVNode)(2,B),R]})})]})}return L}(),d=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,M=E.records,R=(0,t.useLocalState)(T,"searchText",""),O=R[0],D=R[1],j=(0,t.useLocalState)(T,"sortId","name"),U=j[0],W=j[1],K=(0,t.useLocalState)(T,"sortOrder",!0),G=K[0],$=K[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 z(){return x("screen",{screen:3})}return z}()})}),(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 z(Y,J){return D(J)}return z}()})})]})}),(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,C,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,C,{id:"id",children:"ID"}),(0,e.createComponentVNode)(2,C,{id:"rank",children:"Assignment"}),(0,e.createComponentVNode)(2,C,{id:"p_stat",children:"Patient Status"}),(0,e.createComponentVNode)(2,C,{id:"m_stat",children:"Mental Status"})]}),M.filter((0,a.createSearch)(O,function(z){return z.name+"|"+z.id+"|"+z.rank+"|"+z.p_stat+"|"+z.m_stat})).sort(function(z,Y){var J=G?1:-1;return z[U].localeCompare(Y[U])*J}).map(function(z){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listRow--"+l[z.p_stat],onClick:function(){function Y(){return x("view_record",{view_record:z.ref})}return Y}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",z.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:z.id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:z.rank}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:z.p_stat}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:z.m_stat})]},z.id)})]})})})],4)},u=function(w,T){var A=(0,t.useBackend)(T),x=A.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 E(){return x("del_all_med_records")}return E}()})})]})})},s=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,M=E.medical,R=E.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:R?"spinner":"print",disabled:R,iconSpin:!!R,content:"Print Record",ml:"0.5rem",onClick:function(){function O(){return x("print_record")}return O}()}),children:(0,e.createComponentVNode)(2,V)})}),!M||!M.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 O(){return x("new_med_record")}return O}()}),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:!!M.empty,content:"Delete Medical Record",onClick:function(){function O(){return x("del_med_record")}return O}()})})}),(0,e.createComponentVNode)(2,g)],4)],0)},V=function(w,T){var A=(0,t.useBackend)(T),x=A.data,E=x.general;return!E||!E.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:E.fields.map(function(M,R){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 O(){return c(T,M)}return O}()})]},R)})})}),!!E.has_photos&&E.photos.map(function(M,R){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:M,style:{width:"96px","margin-top":"2.5rem","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.createVNode)(1,"br"),"Photo #",R+1]},R)})]})},g=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,M=E.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 R(){return(0,f.modalOpen)(T,"add_comment")}return R}()}),children:M.comments.length===0?(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No comments found."}):M.comments.map(function(R,O){return(0,e.createComponentVNode)(2,o.Box,{prewrap:!0,children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:R.header}),(0,e.createVNode)(1,"br"),R.text,(0,e.createComponentVNode)(2,o.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){function D(){return x("del_comment",{del_comment:O+1})}return D}()})]},O)})})})},v=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,M=E.virus,R=(0,t.useLocalState)(T,"searchText",""),O=R[0],D=R[1],j=(0,t.useLocalState)(T,"sortId2","name"),U=j[0],W=j[1],K=(0,t.useLocalState)(T,"sortOrder2",!0),G=K[0],$=K[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 z(Y,J){return D(J)}return z}()})}),(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"})]}),M.filter((0,a.createSearch)(O,function(z){return z.name+"|"+z.max_stages+"|"+z.severity})).sort(function(z,Y){var J=G?1:-1;return z[U].localeCompare(Y[U])*J}).map(function(z){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listVirus--"+z.severity,onClick:function(){function Y(){return x("vir",{vir:z.D})}return Y}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"virus"})," ",z.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:z.max_stages}),(0,e.createComponentVNode)(2,o.Table.Cell,{color:p[z.severity],children:z.severity})]},z.id)})]})})})})],4)},h=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,M=E.medbots;return M.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"})]}),M.map(function(R){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listMedbot--"+R.on,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"medical"})," ",R.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:[R.area||"Unknown"," (",R.x,", ",R.y,")"]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:R.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:R.use_beaker?"Reservoir: "+R.total_volume+"/"+R.maximum_volume:"Using internal synthesizer"})]},R.id)})]})})})},C=function(w,T){var A=(0,t.useLocalState)(T,"sortId","name"),x=A[0],E=A[1],M=(0,t.useLocalState)(T,"sortOrder",!0),R=M[0],O=M[1],D=w.id,j=w.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:x!==D&&"transparent",onClick:function(){function U(){x===D?O(!R):(E(D),O(!0))}return U}(),children:[j,x===D&&(0,e.createComponentVNode)(2,o.Icon,{name:R?"sort-up":"sort-down",ml:"0.25rem;"})]})})},b=function(w,T){var A=(0,t.useLocalState)(T,"sortId2","name"),x=A[0],E=A[1],M=(0,t.useLocalState)(T,"sortOrder2",!0),R=M[0],O=M[1],D=w.id,j=w.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:x!==D&&"transparent",onClick:function(){function U(){x===D?O(!R):(E(D),O(!0))}return U}(),children:[j,x===D&&(0,e.createComponentVNode)(2,o.Icon,{name:R?"sort-up":"sort-down",ml:"0.25rem;"})]})})},B=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,M=E.screen,R=E.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:M===2,onClick:function(){function O(){x("screen",{screen:2})}return O}(),children:"List Records"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"database",selected:M===5,onClick:function(){function O(){x("screen",{screen:5})}return O}(),children:"Virus Database"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"plus-square",selected:M===6,onClick:function(){function O(){return x("screen",{screen:6})}return O}(),children:"Medibot Tracking"}),M===3&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"wrench",selected:M===3,children:"Record Maintenance"}),M===4&&R&&!R.empty&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"file",selected:M===4,children:["Record: ",R.fields[0].value]})]})})};(0,f.modalRegisterBodyOverride)("virus",m)},44482:function(I,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(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=p.product,u=p.productImage,s=p.productCategory,V=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>V,icon:"shopping-cart",content:d.price,textAlign:"left",onClick:function(){function g(){return m("purchase",{name:d.name,category:s})}return g}()})})]})},N=function(p,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,V=["apparel","toy","decoration"];return(0,e.createComponentVNode)(2,t.Table,{children:u[V[d]].map(function(g){return(0,e.createComponentVNode)(2,f,{product:g,productImage:s[g.path],productCategory:V[d]},g.name)})})},k=r.MerchVendor=function(){function y(p,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(p,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 V(){return u(1)}return V}(),children:"Toys"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"flag",selected:d===2,onClick:function(){function V(){return u(2)}return V}(),children:"Decorations"})]})}},53551:function(I,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 k(i,d){if(i==null)return{};var u={},s=Object.keys(i),V,g;for(g=0;g=0)&&(u[V]=i[V]);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,p),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,l)]})})})}return i}(),p=function(d,u){var s=(0,t.useBackend)(u),V=s.act,g=s.data,v=g.has_id,h=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 ",h.name,".",(0,e.createVNode)(1,"br"),"You have ",h.points.toLocaleString("en-US")," points."]}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject ID",style:{float:"right"},onClick:function(){function C(){return V("logoff")}return C}()}),(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),V=s.act,g=s.data,v=g.has_id,h=g.id,C=g.items,b=(0,t.useLocalState)(u,"search",""),B=b[0],L=b[1],w=(0,t.useLocalState)(u,"sort","Alphabetical"),T=w[0],A=w[1],x=(0,t.useLocalState)(u,"descending",!1),E=x[0],M=x[1],R=(0,a.createSearch)(B,function(j){return j[0]}),O=!1,D=Object.entries(C).map(function(j,U){var W=Object.entries(j[1]).filter(R).map(function(K){return K[1].affordable=v&&h.points>=K[1].price,K[1]}).sort(S[T]);if(W.length!==0)return E&&(W=W.reverse()),O=!0,(0,e.createComponentVNode)(2,m,{title:j[0],items:W},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:O?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",""),V=s[0],g=s[1],v=(0,t.useLocalState)(u,"sort",""),h=v[0],C=v[1],b=(0,t.useLocalState)(u,"descending",!1),B=b[0],L=b[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 C(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 L(!B)}return w}()})})]})})},m=function(d,u){var s=(0,t.useBackend)(u),V=s.act,g=s.data,v=d.title,h=d.items,C=k(d,N);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Collapsible,Object.assign({open:!0,title:v},C,{children:h.map(function(b){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:b.name}),(0,e.createComponentVNode)(2,o.Button,{disabled:!g.has_id||g.id.points=0)&&(T[x]=L[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 L(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,M=E.is_security,R=E.is_admin,O=E.is_silent,D=E.is_printing,j=E.screen,U=E.channels,W=E.channel_idx,K=W===void 0?-1:W,G=(0,t.useLocalState)(T,"menuOpen",!1),$=G[0],z=G[1],Y=(0,t.useLocalState)(T,"viewingPhoto",""),J=Y[0],ie=Y[1],re=(0,t.useLocalState)(T,"censorMode",!1),de=re[0],ve=re[1],ye;j===0||j===2?ye=(0,e.createComponentVNode)(2,s):j===1&&(ye=(0,e.createComponentVNode)(2,V));var Le=U.reduce(function(pe,ne){return pe+ne.unread},0);return(0,e.createComponentVNode)(2,N.Window,{theme:M&&"security",width:800,height:600,children:[J?(0,e.createComponentVNode)(2,h):(0,e.createComponentVNode)(2,k.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",$&&"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 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:Le>0&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--unread",children:Le>=10?"9+":Le})}),(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:U.map(function(pe){return(0,e.createComponentVNode)(2,u,{icon:pe.icon,title:pe.name,selected:j===2&&U[K-1]===pe,onClick:function(){function ne(){return x("channel",{uid:pe.uid})}return ne}(),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),(!!M||!!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,k.modalOpen)(T,"wanted_notice")}return pe}()}),(0,e.createComponentVNode)(2,u,{security:!0,icon:de?"minus-square":"minus-square-o",title:"Censor Mode: "+(de?"On":"Off"),mb:"0.5rem",onClick:function(){function pe(){return ve(!de)}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,k.modalOpen)(T,"create_story")}return pe}()}),(0,e.createComponentVNode)(2,u,{icon:"plus-circle",title:"New Channel",onClick:function(){function pe(){return(0,k.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:O?"volume-mute":"volume-up",title:"Mute: "+(O?"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 L}(),u=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=w.icon,M=E===void 0?"":E,R=w.iconSpin,O=w.selected,D=O===void 0?!1:O,j=w.security,U=j===void 0?!1:j,W=w.onClick,K=w.title,G=w.children,$=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",U&&"Newscaster__menuButton--security"]),onClick:W},$,{children:[D&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--selectedBar"}),(0,e.createComponentVNode)(2,o.Icon,{name:M,spin:R,size:"2"}),(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--title",children:K}),G]})))},s=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,M=E.screen,R=E.is_admin,O=E.channel_idx,D=E.channel_can_manage,j=E.channels,U=E.stories,W=E.wanted,K=(0,t.useLocalState)(T,"fullStories",[]),G=K[0],$=K[1],z=(0,t.useLocalState)(T,"censorMode",!1),Y=z[0],J=z[1],ie=M===2&&O>-1?j[O-1]:null;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[!!W&&(0,e.createComponentVNode)(2,g,{story:W,wanted:!0}),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:ie?ie.icon:"newspaper",mr:"0.5rem"}),ie?ie.name:"Headlines"],0),children:U.length>0?U.slice().reverse().map(function(re){return!G.includes(re.uid)&&re.body.length+3>c?Object.assign({},re,{body_short:re.body.substr(0,c-4)+"..."}):re}).map(function(re,de){return(0,e.createComponentVNode)(2,g,{story:re},de)}):(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."]})}),!!ie&&(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)([Y&&(0,e.createComponentVNode)(2,o.Button,{disabled:!!ie.admin&&!R,selected:ie.censored,icon:ie.censored?"comment-slash":"comment",content:ie.censored?"Uncensor Channel":"Censor Channel",mr:"0.5rem",onClick:function(){function re(){return x("censor_channel",{uid:ie.uid})}return re}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!D,icon:"cog",content:"Manage",onClick:function(){function re(){return(0,k.modalOpen)(T,"manage_channel",{uid:ie.uid})}return re}()})],0),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",children:ie.description||"N/A"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",children:ie.author||"N/A"}),!!R&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Ckey",children:ie.author_ckey}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Public",children:ie.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"}),U.reduce(function(re,de){return re+de.view_count},0).toLocaleString()]})]})})]})},V=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,M=E.jobs,R=E.wanted,O=Object.entries(M).reduce(function(D,j){var U=j[0],W=j[1];return D+W.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:O>0?m.map(function(D){return Object.assign({},i[D],{id:D,jobs:M[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,M=w.story,R=w.wanted,O=R===void 0?!1:R,D=E.is_admin,j=(0,t.useLocalState)(T,"fullStories",[]),U=j[0],W=j[1],K=(0,t.useLocalState)(T,"censorMode",!1),G=K[0],$=K[1];return(0,e.createComponentVNode)(2,o.Section,{className:(0,a.classes)(["Newscaster__story",O&&"Newscaster__story--wanted"]),title:(0,e.createFragment)([O&&(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-circle",mr:"0.5rem"}),M.censor_flags&2&&"[REDACTED]"||M.title||"News from "+M.author],0),buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",children:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:[!O&&G&&(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:(0,e.createComponentVNode)(2,o.Button,{enabled:M.censor_flags&2,icon:M.censor_flags&2?"comment-slash":"comment",content:M.censor_flags&2?"Uncensor":"Censor",mr:"0.5rem",mt:"-0.25rem",onClick:function(){function z(){return x("censor_story",{uid:M.uid})}return z}()})}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",M.author," |\xA0",!!D&&(0,e.createFragment)([(0,e.createTextVNode)("ckey: "),M.author_ckey,(0,e.createTextVNode)(" |\xA0")],0),!O&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"eye"}),(0,e.createTextVNode)(" "),M.view_count.toLocaleString(),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("|\xA0")],0),(0,e.createComponentVNode)(2,o.Icon,{name:"clock"})," ",(0,f.timeAgo)(M.publish_time,E.world_time)]})]})}),children:(0,e.createComponentVNode)(2,o.Box,{children:M.censor_flags&2?"[REDACTED]":(0,e.createFragment)([!!M.has_photo&&(0,e.createComponentVNode)(2,v,{name:"story_photo_"+M.uid+".png",float:"right",ml:"0.5rem"}),(M.body_short||M.body).split("\n").map(function(z,Y){return(0,e.createComponentVNode)(2,o.Box,{children:z||(0,e.createVNode)(1,"br")},Y)}),M.body_short&&(0,e.createComponentVNode)(2,o.Button,{content:"Read more..",mt:"0.5rem",onClick:function(){function z(){return W([].concat(U,[M.uid]))}return z}()}),(0,e.createComponentVNode)(2,o.Box,{clear:"right"})],0)})})},v=function(w,T){var A=w.name,x=l(w,p),E=(0,t.useLocalState)(T,"viewingPhoto",""),M=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 O(){return R(A)}return O}()},x)))},h=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 M(){return E("")}return M}()})]})},C=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,M=!!w.args.uid&&E.channels.filter(function(q){return q.uid===w.args.uid}).pop();if(w.id==="manage_channel"&&!M){(0,k.modalClose)(T);return}var R=w.id==="manage_channel",O=!!w.args.is_admin,D=w.args.scanned_user,j=(0,t.useLocalState)(T,"author",(M==null?void 0:M.author)||D||"Unknown"),U=j[0],W=j[1],K=(0,t.useLocalState)(T,"name",(M==null?void 0:M.name)||""),G=K[0],$=K[1],z=(0,t.useLocalState)(T,"description",(M==null?void 0:M.description)||""),Y=z[0],J=z[1],ie=(0,t.useLocalState)(T,"icon",(M==null?void 0:M.icon)||"newspaper"),re=ie[0],de=ie[1],ve=(0,t.useLocalState)(T,"isPublic",R?!!(M!=null&&M.public):!1),ye=ve[0],Le=ve[1],pe=(0,t.useLocalState)(T,"adminLocked",(M==null?void 0:M.admin)===1||!1),ne=pe[0],ae=pe[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:R?"Manage "+M.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:!O,width:"100%",value:U,onInput:function(){function q(se,me){return W(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:G,onInput:function(){function q(se,me){return $(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:Y,onInput:function(){function q(se,me){return J(me)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Icon",children:[(0,e.createComponentVNode)(2,o.Input,{disabled:!O,value:re,width:"35%",mr:"0.5rem",onInput:function(){function q(se,me){return de(me)}return q}()}),(0,e.createComponentVNode)(2,o.Icon,{name:re,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 Le(!ye)}return q}()})}),O&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:ne,icon:ne?"lock":"lock-open",content:ne?"On":"Off",tooltip:"Locking this channel will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function q(){return ae(!ne)}return q}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:U.trim().length===0||G.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function q(){(0,k.modalAnswer)(T,w.id,"",{author:U,name:G.substr(0,49),description:Y.substr(0,128),icon:re,public:ye?1:0,admin_locked:ne?1:0})}return q}()})]})},b=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,M=E.photo,R=E.channels,O=E.channel_idx,D=O===void 0?-1:O,j=!!w.args.is_admin,U=w.args.scanned_user,W=R.slice().sort(function(q,se){if(D<0)return 0;var me=R[D-1];if(me.uid===q.uid)return-1;if(me.uid===se.uid)return 1}).filter(function(q){return j||!q.frozen&&(q.author===U||!!q.public)}),K=(0,t.useLocalState)(T,"author",U||"Unknown"),G=K[0],$=K[1],z=(0,t.useLocalState)(T,"channel",W.length>0?W[0].name:""),Y=z[0],J=z[1],ie=(0,t.useLocalState)(T,"title",""),re=ie[0],de=ie[1],ve=(0,t.useLocalState)(T,"body",""),ye=ve[0],Le=ve[1],pe=(0,t.useLocalState)(T,"adminLocked",!1),ne=pe[0],ae=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:G,onInput:function(){function q(se,me){return $(me)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Channel",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:Y,options:W.map(function(q){return q.name}),mb:"0",width:"100%",onSelected:function(){function q(se){return J(se)}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:re,onInput:function(){function q(se,me){return de(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(se,me){return Le(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:M,content:M?"Eject: "+M.name:"Insert Photo",tooltip:!M&&"Attach a photo to this story by holding the photograph in your hand.",onClick:function(){function q(){return x(M?"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:re,maxHeight:"13.5rem",overflow:"auto",children:(0,e.createComponentVNode)(2,o.Box,{mt:"0.5rem",children:[!!M&&(0,e.createComponentVNode)(2,v,{name:"inserted_photo_"+M.uid+".png",float:"right"}),ye.split("\n").map(function(q,se){return(0,e.createComponentVNode)(2,o.Box,{children:q||(0,e.createVNode)(1,"br")},se)}),(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:ne,icon:ne?"lock":"lock-open",content:ne?"On":"Off",tooltip:"Locking this story will make it censorable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function q(){return ae(!ne)}return q}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:G.trim().length===0||Y.trim().length===0||re.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,k.modalAnswer)(T,"create_story","",{author:G,channel:Y,title:re.substr(0,127),body:ye.substr(0,1023),admin_locked:ne?1:0})}return q}()})]})},B=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,M=E.photo,R=E.wanted,O=!!w.args.is_admin,D=w.args.scanned_user,j=(0,t.useLocalState)(T,"author",(R==null?void 0:R.author)||D||"Unknown"),U=j[0],W=j[1],K=(0,t.useLocalState)(T,"name",(R==null?void 0:R.title.substr(8))||""),G=K[0],$=K[1],z=(0,t.useLocalState)(T,"description",(R==null?void 0:R.body)||""),Y=z[0],J=z[1],ie=(0,t.useLocalState)(T,"adminLocked",(R==null?void 0:R.admin_locked)===1||!1),re=ie[0],de=ie[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:!O,width:"100%",value:U,onInput:function(){function ve(ye,Le){return W(Le)}return ve}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",value:G,maxLength:"128",onInput:function(){function ve(ye,Le){return $(Le)}return ve}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{multiline:!0,width:"100%",value:Y,maxLength:"512",rows:"4",onInput:function(){function ve(ye,Le){return J(Le)}return ve}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Photo (optional)",verticalAlign:"top",children:[(0,e.createComponentVNode)(2,o.Button,{icon:"image",selected:M,content:M?"Eject: "+M.name:"Insert Photo",tooltip:!M&&"Attach a photo to this wanted notice by holding the photograph in your hand.",tooltipPosition:"top",onClick:function(){function ve(){return x(M?"eject_photo":"attach_photo")}return ve}()}),!!M&&(0,e.createComponentVNode)(2,v,{name:"inserted_photo_"+M.uid+".png",float:"right"})]}),O&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:re,icon:re?"lock":"lock-open",content:re?"On":"Off",tooltip:"Locking this wanted notice will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function ve(){return de(!re)}return ve}()})})]})}),(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 ve(){x("clear_wanted_notice"),(0,k.modalClose)(T)}return ve}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:U.trim().length===0||G.trim().length===0||Y.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function ve(){(0,k.modalAnswer)(T,w.id,"",{author:U,name:G.substr(0,127),description:Y.substr(0,511),admin_locked:re?1:0})}return ve}()})]})};(0,k.modalRegisterBodyOverride)("create_channel",C),(0,k.modalRegisterBodyOverride)("manage_channel",C),(0,k.modalRegisterBodyOverride)("create_story",b),(0,k.modalRegisterBodyOverride)("wanted_notice",B)},64639:function(I,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(k,S){var y=(0,a.useBackend)(S),p=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 p("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 p("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 p("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 p("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 p("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 p("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 p("deploy")}return c}()})})})})}return N}()},45523:function(I,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),k=n(84947),S=r.NumberInputModal=function(){function p(l,c){var m=(0,f.useBackend)(c),i=m.act,d=m.data,u=d.init_value,s=d.large_buttons,V=d.message,g=V===void 0?"":V,v=d.timeout,h=d.title,C=(0,f.useLocalState)(c,"input",u),b=C[0],B=C[1],L=function(){function A(x){x!==b&&B(x)}return A}(),w=function(){function A(x){x!==b&&B(x)}return A}(),T=120+(g.length>30?Math.ceil(g.length/3):0);return(0,e.createComponentVNode)(2,k.Window,{title:h,width:270,height:T,children:[v&&(0,e.createComponentVNode)(2,a.Loader,{value:v}),(0,e.createComponentVNode)(2,k.Window.Content,{onKeyDown:function(){function A(x){var E=window.event?x.which:x.keyCode;E===o.KEY_ENTER&&i("submit",{entry:b}),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:b,onClick:w,onChange:L})}),(0,e.createComponentVNode)(2,N.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:b})})]})})})]})}return p}(),y=function(l,c){var m=(0,f.useBackend)(c),i=m.act,d=m.data,u=d.min_value,s=d.max_value,V=d.init_value,g=d.round_value,v=l.input,h=l.onClick,C=l.onChange,b=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 L(){return h(u)}return L}(),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 L(w,T){return C(T)}return L}(),onEnter:function(){function L(w,T){return i("submit",{entry:T})}return L}(),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 L(){return h(s)}return L}(),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 L(){return h(b)}return L}(),tooltip:B?"Split":"Split ("+b+")"})}),(0,e.createComponentVNode)(2,N.Stack.Item,{children:(0,e.createComponentVNode)(2,N.Button,{disabled:v===V,icon:"redo",onClick:function(){function L(){return h(V)}return L}(),tooltip:V?"Reset ("+V+")":"Reset"})})]})}},48314:function(I,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"]],k=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],S={average:[.25,.5],bad:[.5,1/0]},y=["bad","average","average","good","average","average","bad"],p=r.OperatingComputer=function(){function i(d,u){var s=(0,t.useBackend)(u),V=s.act,g=s.data,v=g.hasOccupant,h=g.choice,C;return h?C=(0,e.createComponentVNode)(2,m):C=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:!h,icon:"user",onClick:function(){function b(){return V("choiceOff")}return b}(),children:"Patient"}),(0,e.createComponentVNode)(2,f.Tabs.Tab,{selected:!!h,icon:"cog",onClick:function(){function b(){return V("choiceOn")}return b}(),children:"Options"})]})}),(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,children:C})})]})})})}return i}(),l=function(d,u){var s=(0,t.useBackend)(u),V=s.data,g=V.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]}})}),k.map(function(v,h){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]])},h)},h)}),(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),V=s.act,g=s.data,v=g.verbose,h=g.health,C=g.healthAlarm,b=g.oxy,B=g.oxyAlarm,L=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 V(v?"verboseOff":"verboseOn")}return w}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Health Announcer",children:(0,e.createComponentVNode)(2,f.Button,{selected:h,icon:h?"toggle-on":"toggle-off",content:h?"On":"Off",onClick:function(){function w(){return V(h?"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:C,stepPixelSize:5,ml:"0",onChange:function(){function w(T,A){return V("health_adj",{new:A})}return w}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Oxygen Alarm",children:(0,e.createComponentVNode)(2,f.Button,{selected:b,icon:b?"toggle-on":"toggle-off",content:b?"On":"Off",onClick:function(){function w(){return V(b?"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 V("oxy_adj",{new:A})}return w}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Critical Alert",children:(0,e.createComponentVNode)(2,f.Button,{selected:L,icon:L?"toggle-on":"toggle-off",content:L?"On":"Off",onClick:function(){function w(){return V(L?"critOff":"critOn")}return w}()})})]})}},87511:function(I,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 V=typeof Symbol!="undefined"&&u[Symbol.iterator]||u["@@iterator"];if(V)return(V=V.call(u)).next.bind(V);if(Array.isArray(u)||(V=k(u))||s&&u&&typeof u.length=="number"){V&&(u=V);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 k(u,s){if(u){if(typeof u=="string")return S(u,s);var V=Object.prototype.toString.call(u).slice(8,-1);if(V==="Object"&&u.constructor&&(V=u.constructor.name),V==="Map"||V==="Set")return Array.from(u);if(V==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(V))return S(u,s)}}function S(u,s){(s==null||s>u.length)&&(s=u.length);for(var V=0,g=new Array(s);VV},c=function(s,V){var g=s.name,v=V.name;if(!g||!v)return 0;var h=g.match(y),C=v.match(y);if(h&&C&&g.replace(y,"")===v.replace(y,"")){var b=parseInt(h[1],10),B=parseInt(C[1],10);return b-B}return l(g,v)},m=function(s,V){var g=s.searchText,v=s.source,h=s.title,C=s.color,b=s.sorted,B=v.filter(p(g));return b&&B.sort(c),v.length>0&&(0,e.createComponentVNode)(2,o.Section,{title:h+" - ("+v.length+")",children:B.map(function(L){return(0,e.createComponentVNode)(2,i,{thing:L,color:C},L.name)})})},i=function(s,V){var g=(0,t.useBackend)(V),v=g.act,h=s.color,C=s.thing;return(0,e.createComponentVNode)(2,o.Button,{color:h,onClick:function(){function b(){return v("orbit",{ref:C.ref})}return b}(),children:[C.name,C.orbiters&&(0,e.createComponentVNode)(2,o.Box,{inline:!0,ml:1,children:["(",C.orbiters," ",(0,e.createComponentVNode)(2,o.Icon,{name:"eye"}),")"]})]})},d=r.Orbit=function(){function u(s,V){for(var g=(0,t.useBackend)(V),v=g.act,h=g.data,C=h.alive,b=h.antagonists,B=h.highlights,L=h.response_teams,w=h.auto_observe,T=h.dead,A=h.ghosts,x=h.misc,E=h.npcs,M=(0,t.useLocalState)(V,"searchText",""),R=M[0],O=M[1],D={},j=N(b),U;!(U=j()).done;){var W=U.value;D[W.antag]===void 0&&(D[W.antag]=[]),D[W.antag].push(W)}var K=Object.entries(D);K.sort(function($,z){return l($[0],z[0])});var G=function(){function $(z){for(var Y=0,J=[K.map(function(de){var ve=de[0],ye=de[1];return ye}),B,C,A,T,E,x];Y0&&(0,e.createComponentVNode)(2,o.Section,{title:"Antagonists",children:K.map(function($){var z=$[0],Y=$[1];return(0,e.createComponentVNode)(2,o.Section,{title:z+" - ("+Y.length+")",level:2,children:Y.filter(p(R)).sort(c).map(function(J){return(0,e.createComponentVNode)(2,i,{color:"bad",thing:J},J.name)})},z)})}),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:L,searchText:R,color:"purple"}),(0,e.createComponentVNode)(2,m,{title:"Alive",source:C,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(I,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 k(s){if(s==null)throw new TypeError("Cannot destructure "+s)}var S=(0,N.createLogger)("OreRedemption"),y=function(V){return V.toLocaleString("en-US")+" pts"},p=r.OreRedemption=function(){function s(V,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(V,g){var v=(0,t.useBackend)(g),h=v.act,C=v.data,b=C.id,B=C.points,L=C.disk,w=Object.assign({},(k(V),V));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:b?(0,e.createComponentVNode)(2,o.Button,{selected:!0,bold:!0,verticalAlign:"middle",icon:"eject",content:b.name,tooltip:"Ejects the ID card.",onClick:function(){function T(){return h("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 h("insert_id")}return T}()})}),b&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current Mining Points",children:(0,e.createComponentVNode)(2,o.Box,{bold:!0,children:y(b.points)})}),b&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Total Mining Points",children:(0,e.createComponentVNode)(2,o.Box,{bold:!0,children:y(b.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:!b,icon:"hand-holding-usd",content:"Claim",onClick:function(){function T(){return h("claim")}return T}()})})]}),(0,e.createComponentVNode)(2,o.Divider),L?(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:L.name,tooltip:"Ejects the design disk.",onClick:function(){function T(){return h("eject_disk")}return T}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!L.design||!L.compatible,icon:"upload",content:"Download",tooltip:"Downloads the design on the disk into the machine.",onClick:function(){function T(){return h("download")}return T}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Stored design",children:(0,e.createComponentVNode)(2,o.Box,{color:L.design&&(L.compatible?"good":"bad"),children:L.design||"N/A"})})]}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No design disk inserted."})]})))},c=function(V,g){var v=(0,t.useBackend)(g),h=v.act,C=v.data,b=C.sheets,B=Object.assign({},(k(V),V));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%"]]}),b.map(function(L){return(0,e.createComponentVNode)(2,d,{ore:L},L.id)})]})))})},m=function(V,g){var v=(0,t.useBackend)(g),h=v.act,C=v.data,b=C.alloys,B=Object.assign({},(k(V),V));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%"]]}),b.map(function(L){return(0,e.createComponentVNode)(2,u,{ore:L},L.id)})]})))})},i=function(V,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:V.title}),(v=V.columns)==null?void 0:v.map(function(h){return(0,e.createComponentVNode)(2,o.Stack.Item,{basis:h[1],textAlign:"center",color:"label",bold:!0,children:h[0]},h)})]})})},d=function(V,g){var v=(0,t.useBackend)(g),h=v.act,C=V.ore;if(!(C.value&&C.amount<=0&&!(["metal","glass"].indexOf(C.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",C.id])}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:C.name})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",color:C.amount>=1?"good":"gray",bold:C.amount>=1,align:"center",children:C.amount.toLocaleString("en-US")}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",children:C.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(C.amount,50),stepPixelSize:6,onChange:function(){function b(B,L){return h(C.value?"sheet":"alloy",{id:C.id,amount:L})}return b}()})})]})})},u=function(V,g){var v=(0,t.useBackend)(g),h=v.act,C=V.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",C.id])})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"30%",textAlign:"middle",align:"center",children:C.name}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"35%",textAlign:"middle",color:C.amount>=1?"good":"gray",align:"center",children:C.description}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"10%",textAlign:"center",color:C.amount>=1?"good":"gray",bold:C.amount>=1,align:"center",children:C.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(C.amount,50),stepPixelSize:6,onChange:function(){function b(B,L){return h(C.value?"sheet":"alloy",{id:C.id,amount:L})}return b}()})})]})})}},55686:function(I,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),k=function(p){var l;try{l=N("./"+p+".js")}catch(m){if(m.code==="MODULE_NOT_FOUND")return(0,f.routingError)("notFound",p);throw m}var c=l[p];return c||(0,f.routingError)("missingExport",p)},S=r.PAI=function(){function y(p,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,V=k(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,V)})})})})})}return y}()},58717:function(I,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),k=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,V=u.owner;if(!V)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=k(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,p)})]})})})}return l}(),y=function(c,m){var i=(0,a.useBackend)(m),d=i.act,u=i.data,s=u.idInserted,V=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 h(){return d("Authenticate")}return h}(),content:s?V:"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 h(){return d("Eject")}return h}(),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})]})},p=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 V(){return d("Back")}return V}()})}),(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 V(){d("Home")}return V}()})})]})})}},78062:function(I,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 k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.active,i=c.anchored,d=c.broken,u=c.emagged,s=c.fuel_type,V=c.fuel_usage,g=c.fuel_stored,v=c.fuel_cap,h=c.is_ai,C=c.tmp_current,b=c.tmp_max,B=c.tmp_overheat,L=c.output_max,w=c.power_gen,T=c.output_set,A=c.has_fuel,x=g/v,E=C/b,M=T*w,R=Math.round(g/V),O=Math.round(R/60),D=R>120?O+" 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:L*(u?2.5:1),step:1,className:"mt-1",onDrag:function(){function j(U,W){return l("change_power",{change_power:W})}return j}()}),"(",(0,f.formatPower)(M),")"]})})}),(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:[C," \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||h||!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:[V/1e3," dm\xB3/s"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel depletion",children:[!!A&&(V?D:"N/A"),!A&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Out of fuel"})]})]})})]})})],4)]})})}return k}()},65823:function(I,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(k,S){var y=(0,a.useBackend)(S),p=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 p("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 p("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 p("remove_strength")}return u}(),mr:"4px"}),i,(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:!c||i===d,onClick:function(){function u(){return p("add_strength")}return u}(),ml:"4px"})]})]})})})})}return N}()},67572:function(I,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(p,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,k):(0,e.createComponentVNode)(2,N)})})}return y}(),N=function(p,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}()})]})})})},k=function(p,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(p,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(I,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,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,i=m.busy,d=m.category,u=m.display_craftable_only,s=m.display_compact,V=m.prev_cat,g=m.next_cat,v=m.subcategory,h=m.prev_subcat,C=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 b(){return c("toggle_recipes")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Compact Mode",icon:s?"check-square-o":"square-o",selected:s,onClick:function(){function b(){return c("toggle_compact")}return b}()})],4),children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:V,icon:"arrow-left",onClick:function(){function b(){return c("backwardCat")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:g,icon:"arrow-right",onClick:function(){function b(){return c("forwardCat")}return b}()})]}),v&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:h,icon:"arrow-left",onClick:function(){function b(){return c("backwardSubCat")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:C,icon:"arrow-right",onClick:function(){function b(){return c("forwardSubCat")}return b}()})]}),s?(0,e.createComponentVNode)(2,N):(0,e.createComponentVNode)(2,k)]})]})})}return S}(),N=function(y,p){var l=(0,a.useBackend)(p),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 V(){return c("make",{make:s.ref})}return V}()}),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)})]})})},k=function(y,p){var l=(0,a.useBackend)(p),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 V(){return c("make",{make:s.ref})}return V}()}),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(I,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,p){var l=(0,a.useBackend)(p),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,k)]})})})}return S}(),N=function(y,p){var l=(0,a.useBackend)(p),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)},k=function(y,p){var l=(0,a.useBackend)(p),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)})})}},47051:function(I,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(p,l){if(p==null)return{};var c={},m=Object.keys(p),i,d;for(d=0;d=0)&&(c[i]=p[i]);return c}var k={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=k[m];if(!d)return null;var u=(0,a.useBackend)(c),s=u.data,V=u.act,g=s.currentTemp,v=d.label,h=d.icon,C=m===g,b=function(){V("setTemp",{temp:m})};return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Button,Object.assign({color:"transparent",selected:C,onClick:b},i,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:h}),v]})))},y=r.PoolController=function(){function p(l,c){for(var m=(0,a.useBackend)(c),i=m.data,d=i.emagged,u=i.currentTemp,s=k[u]||k.normal,V=s.label,g=s.color,v=[],h=0,C=Object.entries(k);h50?"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(V){var g,v,h=V.status;switch(h){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 C=(v?"On":"Off")+(" ["+(g?"auto":"manual")+"]");return(0,e.createComponentVNode)(2,S.ColorBox,{color:v?"good":"bad",content:g?void 0:"M",title:C})};u.defaultHooks=f.pureComponentHooks},15164:function(I,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),k=n(69774),S=n(84947),y=r.PrisonerImplantManager=function(){function p(l,c){var m=(0,a.useBackend)(c),i=m.act,d=m.data,u=d.loginState,s=d.prisonerInfo,V=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,k.LoginScreen)})});var h=[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 C(){return i("id_card")}return C}()})}),(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 C(){return i("reset_points")}return C}()})]}),(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 C(){return(0,f.modalOpen)(c,"set_points")}return C}()})]}),(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(C){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: ",C.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:C.location}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:C.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 b(){return(0,f.modalOpen)(c,"warn",{uid:C.uid})}return b}()})})]})]},C.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:V.map(function(C){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: ",C.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:C.volume})}),h.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{mt:2,disabled:C.volume0?"envelope-open-text":"envelope",onClick:function(){function b(){return s("setScreen",{setScreen:6})}return b}()})}),(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 b(){return s("setScreen",{setScreen:1})}return b}()}),(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 b(){return s("setScreen",{setScreen:2})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"Relay Anonymous Information",icon:"comment",onClick:function(){function b(){return s("setScreen",{setScreen:3})}return b}()})]})]}),(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 b(){return s("setScreen",{setScreen:9})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"View Shipping Logs",icon:"clipboard-list",onClick:function(){function b(){return s("setScreen",{setScreen:10})}return b}()})]})}),!!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 b(){return s("setScreen",{setScreen:8})}return b}()})})]})})},k=function(i,d){var u=(0,a.useBackend)(d),s=u.act,V=u.data,g=V.department,v=[],h;switch(i.purpose){case"ASSISTANCE":v=V.assist_dept,h="Request assistance from another department";break;case"SUPPLIES":v=V.supply_dept,h="Request supplies from another department";break;case"INFO":v=V.info_dept,h="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:h,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function C(){return s("setScreen",{setScreen:0})}return C}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:v.filter(function(C){return C!==g}).map(function(C){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:C,textAlign:"right",className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Message",icon:"envelope",onClick:function(){function b(){return s("writeInput",{write:C,priority:"1"})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"High Priority",icon:"exclamation-circle",onClick:function(){function b(){return s("writeInput",{write:C,priority:"2"})}return b}()})]},C)})})})})},S=function(i,d){var u=(0,a.useBackend)(d),s=u.act,V=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,V=u.data,g,v;switch(i.type){case"MESSAGES":g=V.message_log,v="Message Log";break;case"SHIPPING":g=V.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 h(){return s("setScreen",{setScreen:0})}return h}()}),children:g.map(function(h){return(0,e.createComponentVNode)(2,t.Box,{textAlign:"left",children:[h.map(function(C,b){return(0,e.createVNode)(1,"div",null,C,0,null,b)}),(0,e.createVNode)(1,"hr")]},h)})})})},p=function(i,d){var u=(0,a.useBackend)(d),s=u.act,V=u.data,g=V.recipient,v=V.message,h=V.msgVerified,C=V.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 b(){return s("setScreen",{setScreen:0})}return b}()}),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:h}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Stamped by",color:"blue",children:C})]})})}),(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 b(){return s("department",{department:g})}return b}()})})})],4)},l=function(i,d){var u=(0,a.useBackend)(d),s=u.act,V=u.data,g=V.message,v=V.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 h(){return s("setScreen",{setScreen:0})}return h}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Edit Message",icon:"edit",onClick:function(){function h(){return s("writeAnnouncement")}return h}()})],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 h(){return s("sendAnnouncement")}return h}()})]})})],4)},c=function(i,d){var u=(0,a.useBackend)(d),s=u.act,V=u.data,g=V.shipDest,v=V.msgVerified,h=V.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 C(){return s("setScreen",{setScreen:0})}return C}()}),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 C(){return s("printLabel")}return C}()})]})}),(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:h.map(function(C){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:C,textAlign:"right",className:"candystripe",children:(0,e.createComponentVNode)(2,t.Button,{content:g===C?"Selected":"Select",selected:g===C,onClick:function(){function b(){return s("shipSelect",{shipSelect:C})}return b}()})},C)})})})})],4)}},51939:function(I,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},k=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(p,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(I,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,k){var S=(0,a.useBackend)(k),y=S.data,p=y.tech_levels;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createVNode)(1,"h3",null,"Current Research Levels:",16),p.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(I,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",k="tech",S=function(u,s){var V=(0,a.useBackend)(s),g=V.data,v=V.act,h=g.disk_data;return h?(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:h.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:h.level}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:h.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 C(){return v("updt_tech")}return C}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Clear Disk",icon:"trash",onClick:function(){function C(){return v("clear_tech")}return C}()}),(0,e.createComponentVNode)(2,l)]})]}):null},y=function(u,s){var V=(0,a.useBackend)(s),g=V.data,v=V.act,h=g.disk_data;if(!h)return null;var C=h.name,b=h.lathe_types,B=h.materials,L=b.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:C}),L?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Lathe Types",children:L}):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)]})]})},p=function(u,s){var V=(0,a.useBackend)(s),g=V.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===k?"Load Tech to Disk":"Load Design to Disk"}),(0,e.createComponentVNode)(2,l)]})]})},l=function(u,s){var V=(0,a.useBackend)(s),g=V.data,v=V.act,h=g.disk_type;return h?(0,e.createComponentVNode)(2,t.Button,{content:"Eject Disk",icon:"eject",onClick:function(){function C(){var b=h===k?"eject_tech":"eject_design";v(b)}return C}()}):null},c=function(u,s){var V=(0,a.useBackend)(s),g=V.data,v=g.disk_data,h=g.disk_type,C=function(){if(!v)return(0,e.createComponentVNode)(2,p);switch(h){case N:return(0,e.createComponentVNode)(2,y);case k:return(0,e.createComponentVNode)(2,S);default:return null}};return(0,e.createComponentVNode)(2,t.Section,{title:"Data Disk Contents",children:C()})},m=function(u,s){var V=(0,a.useBackend)(s),g=V.data,v=V.act,h=g.disk_type,C=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:C.sort(function(b,B){return b.name.localeCompare(B.name)}).map(function(b){var B=b.name,L=b.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(){h===k?v("copy_tech",{id:L}):v("copy_design",{id:L})}return w}()})},L)})})})})},i=r.DataDiskMenu=function(){function d(u,s){var V=(0,a.useBackend)(s),g=V.data,v=g.disk_type;return v?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.RndRoute,{submenu:f.SUBMENU.MAIN,render:function(){function h(){return(0,e.createComponentVNode)(2,c)}return h}()}),(0,e.createComponentVNode)(2,o.RndRoute,{submenu:f.SUBMENU.DISK_COPY,render:function(){function h(){return(0,e.createComponentVNode)(2,m)}return h}()})],4):null}return d}()},72751:function(I,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,k){var S=(0,a.useBackend)(k),y=S.data,p=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(){p("deconstruct")}return m}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject Item",icon:"eject",onClick:function(){function m(){p("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(I,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(k,S){var y=(0,a.useBackend)(S),p=y.data,l=y.act,c=p.category,m=p.matching_designs,i=p.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 V=s.id,g=s.name,v=s.can_build,h=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 C(){return l(u,{id:V,amount:1})}return C}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v>=5?(0,e.createComponentVNode)(2,t.Button,{content:"x5",onClick:function(){function C(){return l(u,{id:V,amount:5})}return C}()}):null}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v>=10?(0,e.createComponentVNode)(2,t.Button,{content:"x10",onClick:function(){function C(){return l(u,{id:V,amount:10})}return C}()}):null}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.map(function(C){return(0,e.createFragment)([" | ",(0,e.createVNode)(1,"span",C.is_red?"color-red":null,[C.amount,(0,e.createTextVNode)(" "),C.name],0)],0)})})]},V)})})]})}return N}()},47349:function(I,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,k){var S=(0,a.useBackend)(k),y=S.data,p=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";p(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 V=c?"disposeP":"disposeI";p(V,{id:u})}return s}()})},u)})})]})}return f}()},73492:function(I,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(k,S){var y=(0,a.useBackend)(S),p=y.data,l=y.act,c=p.menu,m=p.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(I,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,k){var S=(0,a.useBackend)(k),y=S.data,p=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(h){var C=y.menu===4?"lathe_ejectsheet":"imprinter_ejectsheet";p(C,{id:m,amount:h})}return v}(),s=Math.floor(i/2e3),V=i<1,g=s===1?"":"s";return(0,e.createComponentVNode)(2,t.Table.Row,{className:V?"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(I,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,k){var S=(0,a.useBackend)(k),y=S.data,p=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:p}),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(I,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),k=r.LatheMenu=function(){function S(y,p){var l=(0,a.useBackend)(p),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(I,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,k){var S=(0,a.useBackend)(k),y=S.act;return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"Search...",onEnter:function(){function p(l,c){return y("search",{to_search:c})}return p}()})})}return f}()},25242:function(I,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 k(S,y){var p=(0,a.useBackend)(y),l=p.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 V=s.name,g=s.level;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:V,children:g},V)})})]})}return k}()},29933:function(I,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,k){var S=N.icon,y=N.children,p=N.disabled,l=N.content,c=(0,a.useBackend)(k),m=c.data,i=c.act,d=m.menu,u=m.submenu,s=d,V=u;return N.menu!==null&&N.menu!==void 0&&(s=N.menu),N.submenu!==null&&N.submenu!==void 0&&(V=N.submenu),(0,e.createComponentVNode)(2,t.Button,{content:l,icon:S,disabled:p,onClick:function(){function g(){i("nav",{menu:s,submenu:V})}return g}(),children:y})}return f}()},59959:function(I,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 k(S){return S!==o.MENU.MAIN}return k}(),render:function(){function k(){return(0,e.createComponentVNode)(2,a.RndNavButton,{menu:o.MENU.MAIN,submenu:o.SUBMENU.MAIN,icon:"reply",content:"Main Menu"})}return k}()}),(0,e.createComponentVNode)(2,a.RndRoute,{submenu:function(){function k(S){return S!==o.SUBMENU.MAIN}return k}(),render:function(){function k(){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 k}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:function(){function k(S){return S===o.MENU.LATHE||S===o.MENU.IMPRINTER}return k}(),submenu:o.SUBMENU.MAIN,render:function(){function k(){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 k}()})]})}return N}()},28078:function(I,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,k=(0,e.useBackend)(f),S=k.data,y=S.menu,p=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,p);return c?N():null}return t}()},59991:function(I,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 k(S,y){var p=(0,a.useBackend)(y),l=p.data,c=p.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 V(){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 V}()}),(0,e.createComponentVNode)(2,o.RndRoute,{submenu:f.SUBMENU.SETTINGS_DEVICES,render:function(){function V(){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 V}()})]})}return k}()},63752:function(I,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 k=n(2345);r.LatheMaterials=k.LatheMaterials;var S=n(87115);r.LatheMaterialStorage=S.LatheMaterialStorage;var y=n(45805);r.LatheMenu=y.LatheMenu;var p=n(92497);r.LatheSearch=p.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(I,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,p){var l=y/p;return l<=.2?"good":l<=.5?"average":"bad"},k=r.RobotSelfDiagnosis=function(){function S(y,p){var l=(0,a.useBackend)(p),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(I,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 k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.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 V(){return l("arm",{})}return V}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"lock",disabled:i,content:"Lock ALL Cyborgs",color:"bad",onClick:function(){function V(){return l("masslock",{})}return V}()})]}),(0,e.createComponentVNode)(2,N,{cyborgs:s,can_hack:m})]})})}return k}(),N=function(S,y){var p=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)"),p.length?p.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(I,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(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.dial,u=i.open,s=i.locked,V=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,k):(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(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.dial,u=i.open,s=i.locked,V=function(v,h){return(0,e.createComponentVNode)(2,t.Button,{disabled:u||h&&!s,icon:"arrow-"+(h?"right":"left"),content:(h?"Right":"Left")+" "+v,iconRight:h,onClick:function(){function C(){return m(h?"turnleft":"turnright",{num:v})}return C}(),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:[V(50),V(10),V(1)]}),(0,e.createComponentVNode)(2,t.Box,{className:"Safe--dialer--right",position:"absolute",right:"5px",children:[V(1,!0),V(10,!0),V(50,!0)]}),(0,e.createComponentVNode)(2,t.Box,{className:"Safe--dialer--number",children:d})]})},k=function(p,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 V(){return m("retrieve",{index:s+1})}return V}(),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(p,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(I,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(k,S){var y=(0,a.useBackend)(S),p=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(V){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"#"+V.id,children:[V.mode," ",(0,e.createComponentVNode)(2,t.Button,{content:V.active?"Deactivate":"Activate",icon:"arrow-circle-right",onClick:function(){function g(){return p("toggle",{id:V.id})}return g}()})]},V.id)})]})})]})})}return N}()},46504:function(I,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),k=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,p)})})})})}return c}(),y=function(m,i){var d=(0,t.useBackend)(i),u=d.act,s=window.event?m.which:m.keyCode;if(s===k.KEY_ENTER){m.preventDefault(),u("keypad",{digit:"E"});return}if(s===k.KEY_ESCAPE){m.preventDefault(),u("keypad",{digit:"C"});return}if(s===k.KEY_BACKSPACE){m.preventDefault(),u("backspace");return}if(s>=k.KEY_0&&s<=k.KEY_9){m.preventDefault(),u("keypad",{digit:s-k.KEY_0});return}if(s>=k.KEY_NUMPAD_0&&s<=k.KEY_NUMPAD_9){m.preventDefault(),u("keypad",{digit:s-k.KEY_NUMPAD_0});return}},p=function(m,i){var d=(0,t.useBackend)(i),u=d.act,s=d.data,V=s.locked,g=s.no_passcode,v=s.emagged,h=s.user_entered_code,C=[["1","2","3"],["4","5","6"],["7","8","9"],["C","0","E"]],b=g?"":V?"bad":"good";return(0,e.createComponentVNode)(2,o.Section,{fill:!0,onKeyDown:function(){function B(L){return y(L,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--"+b]),height:"100%",children:v?"ERROR":h})}),(0,e.createComponentVNode)(2,o.Table,{children:C.map(function(B){return(0,e.createComponentVNode)(2,N.TableRow,{children:B.map(function(L){return(0,e.createComponentVNode)(2,N.TableCell,{children:(0,e.createComponentVNode)(2,l,{number:L})},L)})},B[0])})})]})},l=function(m,i){var d=(0,t.useBackend)(i),u=d.act,s=d.data,V=m.number;return(0,e.createComponentVNode)(2,o.Button,{fluid:!0,bold:!0,mb:"6px",content:V,textAlign:"center",fontSize:"60px",lineHeight:1.25,width:"80px",className:(0,a.classes)(["SecureStorage__Button","SecureStorage__Button--keypad","SecureStorage__Button--"+V]),onClick:function(){function g(){return u("keypad",{digit:V})}return g}()})}},54529:function(I,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),k=n(51185),S=n(69774),y=n(76519),p={"*Execute*":"execute","*Arrest*":"arrest",Incarcerated:"incarcerated",Parolled:"parolled",Released:"released",Demote:"demote",Search:"search",Monitor:"monitor"},l=function(h,C){(0,N.modalOpen)(h,"edit",{field:C.edit,value:C.value})},c=r.SecurityRecords=function(){function v(h,C){var b=(0,t.useBackend)(C),B=b.act,L=b.data,w=L.loginState,T=L.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,k.LoginInfo),(0,e.createComponentVNode)(2,y.TemporaryNotice),(0,e.createComponentVNode)(2,m),A]})})]})}return v}(),m=function(h,C){var b=(0,t.useBackend)(C),B=b.act,L=b.data,w=L.currentPage,T=L.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(h,C){var b=(0,t.useBackend)(C),B=b.act,L=b.data,w=L.records,T=(0,t.useLocalState)(C,"searchText",""),A=T[0],x=T[1],E=(0,t.useLocalState)(C,"sortId","name"),M=E[0],R=E[1],O=(0,t.useLocalState)(C,"sortOrder",!0),D=O[0],j=O[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(U){return U.name+"|"+U.id+"|"+U.rank+"|"+U.fingerprint+"|"+U.status})).sort(function(U,W){var K=D?1:-1;return U[M].localeCompare(W[M])*K}).map(function(U){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"SecurityRecords__listRow--"+p[U.status],onClick:function(){function W(){return B("view",{uid_gen:U.uid_gen,uid_sec:U.uid_sec})}return W}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",U.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:U.id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:U.rank}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:U.fingerprint}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:U.status})]},U.id)})]})})})],4)},d=function(h,C){var b=(0,t.useLocalState)(C,"sortId","name"),B=b[0],L=b[1],w=(0,t.useLocalState)(C,"sortOrder",!0),T=w[0],A=w[1],x=h.id,E=h.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 M(){B===x?A(!T):(L(x),A(!0))}return M}(),children:[E,B===x&&(0,e.createComponentVNode)(2,o.Icon,{name:T?"sort-up":"sort-down",ml:"0.25rem;"})]})})})},u=function(h,C){var b=(0,t.useBackend)(C),B=b.act,L=b.data,w=L.isPrinting,T=(0,t.useLocalState)(C,"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)(C,"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(M,R){return x(R)}return E}()})})]})},s=function(h,C){var b=(0,t.useBackend)(C),B=b.act,L=b.data,w=L.isPrinting,T=L.general,A=L.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,V)})}),!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 M(){return l(C,x)}return M}()})]},E)})})})})}),(0,e.createComponentVNode)(2,g)],4)],0)},V=function(h,C){var b=(0,t.useBackend)(C),B=b.data,L=B.general;return!L||!L.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:L.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(C,w)}return A}()})]},T)})})}),!!L.has_photos&&L.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(h,C){var b=(0,t.useBackend)(C),B=b.act,L=b.data,w=L.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)(C,"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(I,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 k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.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 k}(),N=function(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.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(I,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(k,S){var y=(0,a.useBackend)(S),p=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 p("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 p("request")}return c}()})})],0))]})})})})}return N}()},11154:function(I,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(p,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,k);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(p,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)})})},k=function(p,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(V){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:V===u.id,icon:"file",onClick:function(){function g(){return m("select_template_category",{cat:V})}return g}(),children:V},V)})}),!!u&&s[u.id].templates.map(function(V){return(0,e.createComponentVNode)(2,t.Section,{title:V.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[V.description&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:V.description}),V.admin_notes&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Admin Notes",children:V.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:V.shuttle_id})}return g}()})})]})},V.name)})]})},S=function(p,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(I,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"]],k=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],S={average:[.25,.5],bad:[.5,1/0]},y=["bad","average","average","good","average","average","bad"],p=r.Sleeper=function(){function s(V,g){var v=(0,t.useBackend)(g),h=v.act,C=v.data,b=C.hasOccupant,B=b?(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(V,g){var v=(0,t.useBackend)(g),h=v.act,C=v.data,b=C.occupant;return(0,e.createFragment)([(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,d)],4)},c=function(V,g){var v=(0,t.useBackend)(g),h=v.act,C=v.data,b=C.occupant,B=C.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 L(){return h("auto_eject_dead_"+(B?"off":"on"))}return L}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"user-slash",content:"Eject",onClick:function(){function L(){return h("ejectify")}return L}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:b.name}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:b.maxHealth,value:b.health/b.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]},children:(0,a.round)(b.health,0)})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",color:N[b.stat][0],children:N[b.stat][1]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:b.maxTemp,value:b.bodyTemperature/b.maxTemp,color:y[b.temperatureSuitability+3],children:[(0,a.round)(b.btCelsius,0),"\xB0C,",(0,a.round)(b.btFaren,0),"\xB0F"]})}),!!b.hasBlood&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Blood Level",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:b.bloodMax,value:b.bloodLevel/b.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[b.bloodPercent,"%, ",b.bloodLevel,"cl"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pulse",verticalAlign:"middle",children:[b.pulse," BPM"]})],4)]})})},m=function(V,g){var v=(0,t.useBackend)(g),h=v.data,C=h.occupant;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant Damage",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:k.map(function(b,B){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:b[0],children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:"100",value:C[b[1]]/100,ranges:S,children:(0,a.round)(C[b[1]],0)},B)},B)})})})},i=function(V,g){var v=(0,t.useBackend)(g),h=v.act,C=v.data,b=C.hasOccupant,B=C.isBeakerLoaded,L=C.beakerMaxSpace,w=C.beakerFreeSpace,T=C.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||!b,selected:A,icon:A?"toggle-on":"toggle-off",content:A?"Active":"Inactive",onClick:function(){function x(){return h("togglefilter")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!B,icon:"eject",content:"Eject",onClick:function(){function x(){return h("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:L,value:w/L,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(V,g){var v=(0,t.useBackend)(g),h=v.act,C=v.data,b=C.occupant,B=C.chemicals,L=C.maxchem,w=C.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:L,value:T.occ_amount/L,color:x,title:"Amount of chemicals currently inside the occupant / Total amount injectable by this machine",mr:"0.5rem",children:[T.pretty_amount,"/",L,"u"]}),w.map(function(M,R){return(0,e.createComponentVNode)(2,o.Button,{disabled:!T.injectable||T.occ_amount+M>L||b.stat===2,icon:"syringe",content:"Inject "+M+"u",title:"Inject "+M+"u of "+T.title+" into the occupant",mb:"0",height:"19px",onClick:function(){function O(){return h("chemical",{chemid:T.id,amount:M})}return O}()},R)})]})})},A)})})},u=function(V,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(I,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(k,S){var y=(0,a.useBackend)(S),p=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 p("spin")}return m}()})})]}),(0,e.createComponentVNode)(2,t.Box,{bold:!0,lineHeight:2,color:l.resultlvl,children:l.result})]})})})}return N}()},280:function(I,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(k,S){var y=(0,a.useBackend)(S),p=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 p("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 p("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(V,g){return p("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 p("vend",{index:u.vend,amount:u.quantity})}return s}()})]})]},u)})]})]})})})}return N}()},47606:function(I,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,k=r.Smes=function(){function S(y,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,i=m.capacityPercent,d=m.capacity,u=m.charge,s=m.inputAttempt,V=m.inputting,g=m.inputLevel,v=m.inputLevelMax,h=m.inputAvailable,C=m.outputAttempt,b=m.outputting,B=m.outputLevel,L=m.outputLevelMax,w=m.outputUsed,T=i>=100&&"good"||V&&"average"||"bad",A=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 x(){return c("tryinput")}return x}(),children:s?"Auto":"Off"}),children:(0,e.createComponentVNode)(2,t.Box,{color:T,children:i>=100&&"Fully Charged"||V&&"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 x(){return c("input",{target:"min"})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:g===0,onClick:function(){function x(){return c("input",{adjust:-1e4})}return x}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Slider,{value:g/N,fillValue:h/N,minValue:0,maxValue:v/N,step:5,stepPixelSize:4,format:function(){function x(E){return(0,o.formatPower)(E*N,1)}return x}(),onChange:function(){function x(E,M){return c("input",{target:M*N})}return x}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:g===v,onClick:function(){function x(){return c("input",{adjust:1e4})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:g===v,onClick:function(){function x(){return c("input",{target:"max"})}return x}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available",children:(0,o.formatPower)(h)})]})}),(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:C?"power-off":"times",selected:C,onClick:function(){function x(){return c("tryoutput")}return x}(),children:C?"On":"Off"}),children:(0,e.createComponentVNode)(2,t.Box,{color:A,children:b?"Sending":u>0?"Not Sending":"No Charge"})}),(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:B===0,onClick:function(){function x(){return c("output",{target:"min"})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:B===0,onClick:function(){function x(){return c("output",{adjust:-1e4})}return x}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Slider,{value:B/N,minValue:0,maxValue:L/N,step:5,stepPixelSize:4,format:function(){function x(E){return(0,o.formatPower)(E*N,1)}return x}(),onChange:function(){function x(E,M){return c("output",{target:M*N})}return x}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:B===L,onClick:function(){function x(){return c("output",{adjust:1e4})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:B===L,onClick:function(){function x(){return c("output",{target:"max"})}return x}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Outputting",children:(0,o.formatPower)(w)})]})})]})})})}return S}()},66527:function(I,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(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=0,m=1,i=2,d=l.generated,u=l.generated_ratio,s=l.tracking_state,V=l.tracking_rate,g=l.connected_panels,v=l.connected_tracker,h=l.cdir,C=l.direction,b=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 p("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:[h,"\xB0 (",C,")"]}),(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:[" ",V,"\xB0/h (",b,")"," "]}),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:h,onDrag:function(){function B(L,w){return p("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 p("track",{track:c})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"clock-o",content:"Timed",selected:s===m,onClick:function(){function B(){return p("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 p("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:V,format:function(){function B(L){var w=Math.sign(L)>0?"+":"-";return w+Math.abs(L)}return B}(),onDrag:function(){function B(L,w){return p("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(I,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(k,S){var y=(0,a.useBackend)(S),p=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 p("jump",{ID:m.uids})}return i}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-circle-right",content:"Spawn",onClick:function(){function i(){return p("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(I,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 p(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,k),(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,y)]})})})}return p}(),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)]})})},k=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(I,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 k(){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 k}(),N=r.StationAlertConsoleContent=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.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 k}()},64323:function(I,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),k=function(l){return l[l.SetupFutureStationTraits=0]="SetupFutureStationTraits",l[l.ViewStationTraits=1]="ViewStationTraits",l}(k||{}),S=function(c,m){var i=(0,o.useBackend)(m),d=i.act,u=i.data,s=u.future_station_traits,V=(0,o.useLocalState)(m,"selectedFutureTrait",null),g=V[0],v=V[1],h=Object.fromEntries(u.valid_station_traits.map(function(b){return[b.name,b.path]})),C=Object.keys(h);return C.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:C,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 b(){if(g){var B=h[g],L=[B];if(s){var w,T=s.map(function(A){return A.path});if(T.indexOf(B)!==-1)return;L=(w=L).concat.apply(w,T)}d("setup_future_traits",{station_traits:L})}}return b}(),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(b){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:b.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(L){if(L.path!==b.path)return L.path})})}return B}(),children:"Delete"})})]})},b.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 b(){return d("clear_future_traits")}return b}(),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 b(){return d("setup_future_traits",{station_traits:[]})}return b}(),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 V(){return d("revert",{ref:s.ref})}return V}()})})]})},s.ref)})}):(0,e.createComponentVNode)(2,f.Box,{textAlign:"center",children:"There are no active station traits."})},p=r.StationTraitsPanel=function(){function l(c,m){var i=(0,o.useLocalState)(m,"station_traits_tab",k.ViewStationTraits),d=i[0],u=i[1],s;switch(d){case k.SetupFutureStationTraits:s=(0,e.createComponentVNode)(2,S);break;case k.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===k.ViewStationTraits,onClick:function(){function V(){return u(k.ViewStationTraits)}return V}(),children:"View"}),(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"edit",selected:d===k.SetupFutureStationTraits,onClick:function(){function V(){return u(k.SetupFutureStationTraits)}return V}(),children:"Edit"})]})}),(0,e.createComponentVNode)(2,f.Stack.Item,{m:0,children:[(0,e.createComponentVNode)(2,f.Divider),s]})]})})})}return l}()},57633:function(I,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(p,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(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.helmet,u=i.suit,s=i.magboots,V=i.mask,g=i.storage,v=i.open,h=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 C(){return m("cook")}return C}()}),(0,e.createComponentVNode)(2,t.Button,{content:h?"Unlock":"Lock",icon:h?"unlock":"lock",disabled:v,onClick:function(){function C(){return m("toggle_lock")}return C}()})],4),children:v&&!h?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,k,{object:d,label:"Helmet",missingText:"helmet",eject:"dispense_helmet"}),(0,e.createComponentVNode)(2,k,{object:u,label:"Suit",missingText:"suit",eject:"dispense_suit"}),(0,e.createComponentVNode)(2,k,{object:s,label:"Boots",missingText:"boots",eject:"dispense_boots"}),(0,e.createComponentVNode)(2,k,{object:V,label:"Breathmask",missingText:"mask",eject:"dispense_mask"}),(0,e.createComponentVNode)(2,k,{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:h?"lock":"exclamation-circle",size:"5",mb:3}),(0,e.createVNode)(1,"br"),h?"The unit is locked.":"The unit is closed."]})})})},k=function(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=p.object,u=p.label,s=p.missingText,V=p.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(V)}return g}()}):(0,e.createComponentVNode)(2,t.Box,{color:"silver",bold:!0,children:["No ",s," found."]})})})},S=function(p,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(I,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),k=n(30381),S=n(84947),y=n(99753),p=r.SupermatterMonitor=function(){function i(d,u){var s=(0,f.useBackend)(u),V=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),V=s.act,g=s.data,v=g.supermatters,h=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 C(){return V("refresh")}return C}()}),children:(0,e.createComponentVNode)(2,N.Table,{children:h.map(function(C){return(0,e.createComponentVNode)(2,N.Table.Row,{children:[(0,e.createComponentVNode)(2,N.Table.Cell,{children:C.supermatter_id+". "+C.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:C.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 b(){return V("view",{view:C.supermatter_id})}return b}()})})]},C.supermatter_id)})})})})})},m=function(d,u){var s=(0,f.useBackend)(u),V=s.act,g=s.data,v=g.active,h=g.SM_integrity,C=g.SM_power,b=g.SM_ambienttemp,B=g.SM_ambientpressure,L=(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(L.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:h/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:C,minValue:0,maxValue:5e3,ranges:{good:[-1/0,5e3],average:[5e3,7e3],bad:[7e3,1/0]},children:(0,o.toFixed)(C)+" MeV/cm3"})}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,N.ProgressBar,{value:l(b),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)(b)+" 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 V("back")}return T}()}),children:(0,e.createComponentVNode)(2,N.LabeledList,{children:L.map(function(T){return(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:(0,k.getGasLabel)(T.name),children:(0,e.createComponentVNode)(2,N.ProgressBar,{color:(0,k.getGasColor)(T.name),value:T.amount,minValue:0,maxValue:w,children:(0,o.toFixed)(T.amount,2)+"%"})},T.name)})})})})]})})})}},55055:function(I,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(k,S){var y=(0,a.useBackend)(S),p=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 p(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(I,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 k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.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 k}()},97552:function(I,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 k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.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 V(){return l("print_logs")}return V}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",content:"Delete All Logs",disabled:!i.length,color:"bad",align:"center",onClick:function(){function V(){return l("delete_logs")}return V}()})]})]})}),i.length?(0,e.createComponentVNode)(2,N):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No Records"})]})})}return k}(),N=r.TachyonArrayContent=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.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 k}()},33291:function(I,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(k,S){var y=(0,a.useBackend)(S),p=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 p("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 p("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 p("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 p("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 p("pressure",{pressure:"reset"})}return m}()})]}),c]})})})})}return N}()},75480:function(I,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(k,S){var y=(0,a.useBackend)(S),p=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 p("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 p("plasma")}return i}()})})]})})})}return N}()},62291:function(I,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 p(l,c){var m=(0,a.useBackend)(c),i=m.act,d=m.data,u=d.ion,s=(0,a.useLocalState)(c,"tabIndex",0),V=s[0],g=s[1],v=function(){function h(C){switch(C){case 0:return(0,e.createComponentVNode)(2,k);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 h}();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:V===0,onClick:function(){function h(){return g(0)}return h}(),children:"Configuration"},"ConfigPage"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"link",selected:V===1,onClick:function(){function h(){return g(1)}return h}(),children:"Device Linkage"},"LinkagePage"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"user-times",selected:V===2,onClick:function(){function h(){return g(2)}return h}(),children:"User Filtering"},"FilterPage")]}),v(V)]})})}return p}(),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."})},k=function(l,c){var m=(0,a.useBackend)(c),i=m.act,d=m.data,u=d.active,s=d.sectors_available,V=d.nttc_toggle_jobs,g=d.nttc_toggle_job_color,v=d.nttc_toggle_name_color,h=d.nttc_toggle_command_bold,C=d.nttc_job_indicator_type,b=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 L(){return i("toggle_active")}return L}()})}),(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:V?"On":"Off",selected:V,icon:"user-tag",onClick:function(){function L(){return i("nttc_toggle_jobs")}return L}()})}),(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 L(){return i("nttc_toggle_job_color")}return L}()})}),(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 L(){return i("nttc_toggle_name_color")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Command Amplification",children:(0,e.createComponentVNode)(2,t.Button,{content:h?"On":"Off",selected:h,icon:"volume-up",onClick:function(){function L(){return i("nttc_toggle_command_bold")}return L}()})})]})}),(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:C||"Unset",selected:C,icon:"pencil-alt",onClick:function(){function L(){return i("nttc_job_indicator_type")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Language Conversion",children:(0,e.createComponentVNode)(2,t.Button,{content:b||"Unset",selected:b,icon:"globe",onClick:function(){function L(){return i("nttc_setting_language")}return L}()})}),(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 L(){return i("network_id")}return L}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Maintenance",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Import Configuration",icon:"file-import",onClick:function(){function L(){return i("import")}return L}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Export Configuration",icon:"file-export",onClick:function(){function L(){return i("export")}return L}()})]})],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 V(){return i("change_password")}return V}()})})}),(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(V){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:V.addr}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:V.net_id}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:V.sector}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:V.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:V.addr})}return g}()})})]},V.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 V(){return i("remove_filter",{user:s})}return V}()})})]},s)})]})})}},82905:function(I,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,p){var l=(0,a.useBackend)(p),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,k)]})})}return S}(),N=function(y,p){var l=(0,a.useBackend)(p),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}()})})]})})},k=function(y,p){var l=(0,a.useBackend)(p),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(I,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(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.targetsTeleport?l.targetsTeleport:{},m=0,i=1,d=2,u=l.calibrated,s=l.calibrating,V=l.powerstation,g=l.regime,v=l.teleporterhub,h=l.target,C=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:[(!V||!v)&&(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Error",children:[v,!V&&(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:" Powerstation not linked "}),V&&!v&&(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:" Teleporter hub not linked "})]}),V&&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:h,options:Object.keys(c),color:h!=="None"?"default":"bad",onSelected:function(){function b(B){return p("settarget",{x:c[B].x,y:c[B].y,z:c[B].z})}return b}()}),g===i&&(0,e.createComponentVNode)(2,t.Dropdown,{width:18.2,selected:h,options:Object.keys(c),color:h!=="None"?"default":"bad",onSelected:function(){function b(B){return p("settarget",{x:c[B].x,y:c[B].y,z:c[B].z})}return b}()}),g===d&&(0,e.createComponentVNode)(2,t.Box,{children:h})]})]}),(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 b(){return p("setregime",{regime:i})}return b}()})}),(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 b(){return p("setregime",{regime:m})}return b}()})}),(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:!C,onClick:function(){function b(){return p("setregime",{regime:d})}return b}()})})]}),(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:[h!=="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 b(){return p("calibrate")}return b}()})})]}),h==="None"&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"21px",children:"No target set"})]})]})]}),!!(C&&V&&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 b(){return p("load")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject",tooltip:"Ejects the GPS device",icon:"eject",onClick:function(){function b(){return p("eject")}return b}()})]})})]})})})})}return N}()},40759:function(I,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 p(l,c){var m=(0,t.useBackend)(c),i=m.act,d=m.data,u=d.target_temperature,s=d.temperature,V=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:V,value:u,format:function(){function v(h){return(0,a.toFixed)(h,2)}return v}(),width:"50px",onDrag:function(){function v(h,C){return i("target_temperature",{target_temperature:C})}return v}()}),"\xB0C"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current Temperature",children:(0,e.createComponentVNode)(2,o.Box,{color:k(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 p}(),k=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(I,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),k=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}(),p=r.TextInputModal=function(){function c(m,i){var d=(0,o.useBackend)(i),u=d.act,s=d.data,V=s.max_length,g=s.message,v=g===void 0?"":g,h=s.multiline,C=s.placeholder,b=s.timeout,B=s.title,L=(0,o.useLocalState)(i,"input",C||""),w=L[0],T=L[1],A=function(){function M(R){if(R!==w){var O=h?S(R):y(R);T(O)}}return M}(),x=h||w.length>=40,E=130+(v.length>40?Math.ceil(v.length/4):0)+(x?80:0);return(0,e.createComponentVNode)(2,k.Window,{title:B,width:325,height:E,children:[b&&(0,e.createComponentVNode)(2,a.Loader,{value:b}),(0,e.createComponentVNode)(2,k.Window.Content,{onKeyDown:function(){function M(R){var O=window.event?R.which:R.keyCode;O===f.KEY_ENTER&&(!x||!R.shiftKey)&&u("submit",{entry:w}),O===f.KEY_ESCAPE&&u("cancel")}return M}(),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+"/"+V})})]})})})]})}return c}(),l=function(m,i){var d=(0,o.useBackend)(i),u=d.act,s=d.data,V=s.max_length,g=s.multiline,v=m.input,h=m.onType,C=g||v.length>=40;return(0,e.createComponentVNode)(2,N.TextArea,{autoFocus:!0,autoSelect:!0,height:g||v.length>=40?"100%":"1.8rem",maxLength:V,onEscape:function(){function b(){return u("cancel")}return b}(),onEnter:function(){function b(B){C&&B.shiftKey||(B.preventDefault(),u("submit",{entry:v}))}return b}(),onInput:function(){function b(B,L){return h(L)}return b}(),placeholder:"Type something...",value:v})}},82296:function(I,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 k(S,y){var p=(0,t.useBackend)(y),l=p.act,c=p.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 k}()},68488:function(I,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(k,S){var y=(0,a.useBackend)(S),p=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 p("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 p("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 p("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 p("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 p("tanktwo")}return u}()}):(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No Tank"})})})})]})})}return N}()},26868:function(I,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(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.compressor,u=i.compressor_broken,s=i.turbine,V=i.turbine_broken,g=i.online,v=!!(d&&!u&&s&&!V);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 h(){return m("toggle_power")}return h}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Disconnect",onClick:function(){function h(){return m("disconnect")}return h}()})],4),children:v?(0,e.createComponentVNode)(2,S):(0,e.createComponentVNode)(2,k)})})})}return y}(),k=function(p,l){var c=(0,a.useBackend)(l),m=c.data,i=m.compressor,d=m.compressor_broken,u=m.turbine,s=m.turbine_broken,V=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(p,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(I,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),k=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"}},p=r.Uplink=function(){function V(g,v){var h=(0,f.useBackend)(v),C=h.act,b=h.data,B=b.cart,L=(0,f.useLocalState)(v,"tabIndex",0),w=L[0],T=L[1],A=(0,f.useLocalState)(v,"searchText",""),x=A[0],E=A[1];return(0,e.createComponentVNode)(2,k.Window,{width:900,height:600,theme:"syndicate",children:[(0,e.createComponentVNode)(2,S.ComplexModal),(0,e.createComponentVNode)(2,k.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 M(){T(0),E("")}return M}(),icon:"store",children:"View Market"},"PurchasePage"),(0,e.createComponentVNode)(2,N.Tabs.Tab,{selected:w===1,onClick:function(){function M(){T(1),E("")}return M}(),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 M(){T(2),E("")}return M}(),icon:"user",children:"Exploitable Information"},"ExploitableInfo"),(0,e.createComponentVNode)(2,N.Tabs.Tab,{onClick:function(){function M(){return C("lock")}return M}(),icon:"lock",children:"Lock Uplink"},"LockUplink")]})}),(0,e.createComponentVNode)(2,N.Stack.Item,{grow:!0,children:y(w)})]})})]})}return V}(),l=function(g,v){var h=(0,f.useBackend)(v),C=h.act,b=h.data,B=b.crystals,L=b.cats,w=(0,f.useLocalState)(v,"uplinkItems",L[0].items),T=w[0],A=w[1],x=(0,f.useLocalState)(v,"searchText",""),E=x[0],M=x[1],R=function(K,G){G===void 0&&(G="");var $=(0,o.createSearch)(G,function(z){var Y=z.hijack_only===1?"|hijack":"";return z.name+"|"+z.desc+"|"+z.cost+"tc"+Y});return(0,t.flow)([(0,a.filter)(function(z){return z==null?void 0:z.name}),G&&(0,a.filter)($),(0,a.sortBy)(function(z){return z==null?void 0:z.name})])(K)},O=function(K){if(M(K),K==="")return A(L[0].items);A(R(L.map(function(G){return G.items}).flat(),K))},D=(0,f.useLocalState)(v,"showDesc",1),j=D[0],U=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 W(){return U(!j)}return W}()}),(0,e.createComponentVNode)(2,N.Button,{content:"Random Item",icon:"question",onClick:function(){function W(){return C("buyRandom")}return W}()}),(0,e.createComponentVNode)(2,N.Button,{content:"Refund Currently Held Item",icon:"undo",onClick:function(){function W(){return C("refund")}return W}()})],4),children:(0,e.createComponentVNode)(2,N.Input,{fluid:!0,placeholder:"Search Equipment",onInput:function(){function W(K,G){O(G)}return W}(),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:L.map(function(W){return(0,e.createComponentVNode)(2,N.Tabs.Tab,{selected:E!==""?!1:W.items===T,onClick:function(){function K(){A(W.items),M("")}return K}(),children:W.cat},W)})})})}),(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(W){return(0,e.createComponentVNode)(2,N.Stack.Item,{p:1,backgroundColor:"rgba(255, 0, 0, 0.1)",children:(0,e.createComponentVNode)(2,i,{i:W,showDecription:j},(0,o.decodeHtmlEntities)(W.name))},(0,o.decodeHtmlEntities)(W.name))})})})})]})]})},c=function(g,v){var h=(0,f.useBackend)(v),C=h.act,b=h.data,B=b.cart,L=b.crystals,w=b.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: "+L+"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 C("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 C("purchase_cart")}return E}(),disabled:!B||w>L})],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 h=(0,f.useBackend)(v),C=h.act,b=h.data,B=b.cats,L=b.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 C("shuffle_lucky_numbers")}return w}()}),children:(0,e.createComponentVNode)(2,N.Stack,{wrap:!0,children:L.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 h=g.i,C=g.showDecription,b=C===void 0?1:C,B=g.buttons,L=B===void 0?(0,e.createComponentVNode)(2,d,{i:h}):B;return(0,e.createComponentVNode)(2,N.Section,{title:(0,o.decodeHtmlEntities)(h.name),showBottom:b,buttons:L,children:b?(0,e.createComponentVNode)(2,N.Box,{italic:!0,children:(0,o.decodeHtmlEntities)(h.desc)}):null})},d=function(g,v){var h=(0,f.useBackend)(v),C=h.act,b=h.data,B=g.i,L=b.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 C("add_to_cart",{item:B.obj_path})}return w}(),disabled:B.cost>L}),(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 C("buyItem",{item:B.obj_path})}return w}(),disabled:B.cost>L})],4)},u=function(g,v){var h=(0,f.useBackend)(v),C=h.act,b=h.data,B=g.i,L=b.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 C("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 C("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 C("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 C("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 h=(0,f.useBackend)(v),C=h.act,b=h.data,B=b.exploitable,L=(0,f.useLocalState)(v,"selectedRecord",B[0]),w=L[0],T=L[1],A=(0,f.useLocalState)(v,"searchText",""),x=A[0],E=A[1],M=function(D,j){j===void 0&&(j="");var U=(0,o.createSearch)(j,function(W){return W.name});return(0,t.flow)([(0,a.filter)(function(W){return W==null?void 0:W.name}),j&&(0,a.filter)(U),(0,a.sortBy)(function(W){return W.name})])(D)},R=M(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 O(D,j){return E(j)}return O}()}),(0,e.createComponentVNode)(2,N.Tabs,{vertical:!0,children:R.map(function(O){return(0,e.createComponentVNode)(2,N.Tabs.Tab,{selected:O===w,onClick:function(){function D(){return T(O)}return D}(),children:O.name},O)})})]})}),(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(I,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 p=(0,a.useBackend)(y),l=p.act,c=p.data,m=S.product,i=S.productStock,d=S.productImage,u=c.chargesMoney,s=c.user,V=c.usermoney,g=c.inserted_cash,v=c.vend_ready,h=c.inserted_item_name,C=!u||m.price===0,b="ERROR!",B="";C?(b="FREE",B="arrow-circle-down"):(b=m.price,B="shopping-cart");var L=!v||i===0||!C&&m.price>V&&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:L,icon:B,content:b,textAlign:"left",onClick:function(){function w(){return l("vend",{inum:m.inum})}return w}()})})]})},N=r.Vending=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.user,i=c.usermoney,d=c.inserted_cash,u=c.chargesMoney,s=c.product_records,V=s===void 0?[]:s,g=c.hidden_records,v=g===void 0?[]:g,h=c.stock,C=c.vend_ready,b=c.inserted_item_name,B=c.panel_open,L=c.speaker,w=c.imagelist,T;return T=[].concat(V),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:!!b&&(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:(0,e.createVNode)(1,"span",null,b,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:L?"check":"volume-mute",selected:L,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:h[A.name],productImage:w[A.path]},A.name)})})})})]})})})}return k}()},25485:function(I,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(k,S){var y=(0,a.useBackend)(S),p=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 p("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 p("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 p("volume",{channel:m.num,volume:100})}return d}()})})})]})})],4,m.num)})})})})}return N}()},26564:function(I,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(k,S){var y=(0,a.useBackend)(S),p=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(V){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{mb:1,fluid:!0,lineHeight:3,color:"translucent",multiLine:V,content:V+(s?" ("+(u[V]||0)+")":""),onClick:function(){function g(){return p("vote",{target:V})}return g}(),selected:V===d})},V)})]})})})}return N}()},496:function(I,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(k,S){var y=(0,a.useBackend)(S),p=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 p("cut",{wire:d.color})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Pulse",onClick:function(){function u(){return p("pulse",{wire:d.color})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{content:d.attached?"Detach":"Attach",onClick:function(){function u(){return p("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(I,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(k,S){var y=(0,a.useBackend)(S),p=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 p("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 p("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 p("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 p("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 p("honk")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider)]})})]})})}return N}()},14635:function(I,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(p,l){var c=typeof Symbol!="undefined"&&p[Symbol.iterator]||p["@@iterator"];if(c)return(c=c.call(p)).next.bind(c);if(Array.isArray(p)||(c=N(p))||l&&p&&typeof p.length=="number"){c&&(p=c);var m=0;return function(){return m>=p.length?{done:!0}:{done:!1,value:p[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(p,l){if(p){if(typeof p=="string")return k(p,l);var c=Object.prototype.toString.call(p).slice(8,-1);if(c==="Object"&&p.constructor&&(c=p.constructor.name),c==="Map"||c==="Set")return Array.from(p);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return k(p,l)}}function k(p,l){(l==null||l>p.length)&&(l=p.length);for(var c=0,m=new Array(l);c0&&!b.includes(j.ref)&&!h.includes(j.ref),checked:h.includes(j.ref),onClick:function(){function U(){return B(j.ref)}return U}()},j.desc)})]})]})})}return p}()},29136:function(I,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,p,l,c){return Sl?"average":S>c?"bad":"good"},N=r.AtmosScan=function(){function k(S,y){var p=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"})(p).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 k}()},83326:function(I,r,n){"use strict";r.__esModule=!0,r.BeakerContents=void 0;var e=n(28823),a=n(2971),t=n(64635),o=function(k){return k+" unit"+(k===1?"":"s")},f=r.BeakerContents=function(){function N(k){var S=k.beakerLoaded,y=k.beakerContents,p=y===void 0?[]:y,l=k.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."})||p.length===0&&(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",children:"Beaker is empty."}),p.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(I,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,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,l=p.locked,c=p.noaccess,m=p.maintpanel,i=p.on,d=p.autopatrol,u=p.canhack,s=p.emagged,V=p.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:!V,content:"AI Remote Control",disabled:c,onClick:function(){function g(){return y("disableremote")}return g}()})})]})})],4)}return f}()},22677:function(I,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 p(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 p}(),N=r.modalRegisterBodyOverride=function(){function p(l,c){o[l]=c}return p}(),k=r.modalAnswer=function(){function p(l,c,m,i){var d=(0,a.useBackend)(l),u=d.act,s=d.data;if(s.modal){var V=Object.assign(s.modal.args||{},i||{});u("modal_answer",{id:c,answer:m,arguments:JSON.stringify(V)})}}return p}(),S=r.modalClose=function(){function p(l,c){var m=(0,a.useBackend)(l),i=m.act;i("modal_close",{id:c})}return p}(),y=r.ComplexModal=function(){function p(l,c){var m=(0,a.useBackend)(c),i=m.data;if(i.modal){var d=i.modal,u=d.id,s=d.text,V=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}()}),h,C,b="auto";if(o[u])h=o[u](i.modal,c);else if(V==="input"){var B=i.modal.value;g=function(){function w(T){return k(c,u,B)}return w}(),h=(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}()}),C=(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 k(c,u,B)}return w}()}),(0,e.createComponentVNode)(2,t.Box,{clear:"both"})]})}else if(V==="choice"){var L=typeof i.modal.choices=="object"?Object.values(i.modal.choices):i.modal.choices;h=(0,e.createComponentVNode)(2,t.Dropdown,{options:L,selected:i.modal.value,width:"100%",my:"0.5rem",onSelected:function(){function w(T){return k(c,u,T)}return w}()}),b="initial"}else V==="bento"?h=(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 k(c,u,T+1)}return A}(),children:(0,e.createVNode)(1,"img",null,null,1,{src:w})})},T)})}):V==="boolean"&&(C=(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 k(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 k(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:b,"padding-bottom":"5px",children:[s&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:s}),o[u]&&v,h,C]})}}return p}()},692:function(I,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,k=["Captain","Head of Security","Chief Engineer","Chief Medical Officer","Research Director","Head of Personnel","Quartermaster"],S=function(m){return k.indexOf(m)!==-1?"green":"orange"},y=function(m){if(k.indexOf(m)!==-1)return!0},p=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 V=(0,a.useBackend)(i),g=V.data;s=g}var v=s,h=v.manifest,C=h.heads,b=h.sec,B=h.eng,L=h.med,w=h.sci,T=h.ser,A=h.sup,x=h.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:p(C)}),(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:p(b)}),(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:p(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:p(L)}),(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:p(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:p(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:p(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:p(x)})]})}return c}()},98658:function(I,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,k){var S=(0,t.useBackend)(k),y=S.act,p=S.data,l=p.large_buttons,c=p.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 V(){return y("submit",{entry:m})}return V}(),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 V(){return y("cancel")}return V}(),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(I,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,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,l=N.siliconUser,c=l===void 0?p.siliconUser:l,m=N.locked,i=m===void 0?p.locked:m,d=N.normallyLocked,u=d===void 0?p.normallyLocked:d,s=N.onLockStatusChange,V=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 h(){V&&V(!i)}return h}()})})]})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:["Swipe ",v," to ",i?"unlock":"lock"," this interface."]})}return f}()},2146:function(I,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 k=N.value;return(0,e.createVNode)(1,"div","AlertModal__Loader",(0,e.createComponentVNode)(2,t.Box,{className:"AlertModal__LoaderProgress",style:{width:(0,a.clamp01)(k)*100+"%"}}),2)}return f}()},51185:function(I,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,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,l=p.loginState;if(p)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(I,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,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,l=p.loginState,c=p.isAI,m=p.isRobot,i=p.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(I,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 k=N.operating,S=N.name;if(k)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(I,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(k,S){var y=(0,t.useBackend)(S),p=y.act,l=k.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,V){return p("freq",{freq:V})}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,V){return p("code",{code:V})}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 p("signal")}return u}()})]})}return N}()},79969:function(I,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),k=r.SimpleRecords=function(){function p(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 p}(),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],V=u[1],g=function(C,b){b===void 0&&(b="");var B=(0,t.createSearch)(b,function(L){return L.Name});return(0,o.flow)([(0,f.filter)(function(L){return L==null?void 0:L.Name}),b&&(0,f.filter)(B),(0,f.sortBy)(function(L){return L.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 h(C,b){return V(b)}return h}()}),v.map(function(h){return(0,e.createComponentVNode)(2,N.Box,{children:(0,e.createComponentVNode)(2,N.Button,{mb:.5,content:h.Name,icon:"user",onClick:function(){function C(){return i("Records",{target:h.uid})}return C}()})},h)})]})},y=function(l,c){var m=(0,a.useBackend)(c),i=m.act,d=l.data.records,u=d.general,s=d.medical,V=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:V?(0,e.createComponentVNode)(2,N.LabeledList,{children:[(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Criminal Status",children:V.criminal}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Minor Crimes",children:V.mi_crim}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Details",children:V.mi_crim_d}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Major Crimes",children:V.ma_crim}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Details",children:V.ma_crim_d}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Important Notes",children:V.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(I,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,k){var S,y=(0,a.useBackend)(k),p=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 p("cleartemp")}return i}()})})]})})))}}return f}()},98638:function(I,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,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data;return(0,e.createComponentVNode)(2,t.AtmosScan,{data:p.app_data})}return f}()},56601:function(I,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,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,l=p.app_data,c=l.holder,m=l.dead,i=l.health,d=l.brute,u=l.oxy,s=l.tox,V=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:V})}),(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(I,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,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,l=p.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(I,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,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,l=p.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 V;return m&&(V=(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}),V]})}return f}()},94648:function(I,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,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,l=p.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,V=l.speech_verbs,g=l.current_speech_verb,v=l.available_chassises,h=l.current_chassis,C=[];return m.map(function(b){return C[b.key]=b.name}),i.map(function(b){return C[b.key]=b.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(b){return!C[b.key]}).map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name+" ("+b.cost+")",icon:b.icon,disabled:b.cost>d,onClick:function(){function B(){return y("purchaseSoftware",{key:b.key})}return B}()},b.key)}),c.filter(function(b){return!C[b.key]}).length===0&&"No software available!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Installed Software",children:[m.filter(function(b){return b.key!=="mainmenu"}).map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name,icon:b.icon,onClick:function(){function B(){return y("startSoftware",{software_key:b.key})}return B}()},b.key)}),m.length===0&&"No software installed!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Installed Toggles",children:[i.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name,icon:b.icon,selected:b.active,onClick:function(){function B(){return y("setToggle",{toggle_key:b.key})}return B}()},b.key)}),i.length===0&&"No toggles installed!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Emotion",children:u.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name,selected:b.id===s,onClick:function(){function B(){return y("setEmotion",{emotion:b.id})}return B}()},b.id)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Speaking State",children:V.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name,selected:b.name===g,onClick:function(){function B(){return y("setSpeechStyle",{speech_state:b.name})}return B}()},b.id)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Chassis Type",children:v.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name,selected:b.icon===h,onClick:function(){function B(){return y("setChassis",{chassis_to_change:b.icon})}return B}()},b.id)})})]})})}return f}()},45549:function(I,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,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data;return(0,e.createComponentVNode)(2,t.CrewManifest,{data:p.app_data})}return f}()},53434:function(I,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,k){var S=(0,a.useBackend)(k),y=S.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:y.app_data,recordType:"MED"})}return f}()},7328:function(I,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,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,l=p.app_data.active_convo;return l?(0,e.createComponentVNode)(2,t.ActiveConversation,{data:p.app_data}):(0,e.createComponentVNode)(2,t.MessengerList,{data:p.app_data})}return f}()},32036:function(I,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(k,S){var y=(0,a.useBackend)(S),p=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(V){return(0,t.toFixed)(V,1)}return s}(),onChange:function(){function s(V,g){return p("freq",{freq:g})}return s}()}),(0,e.createComponentVNode)(2,o.Button,{tooltip:"Reset",icon:"undo",onClick:function(){function s(){return p("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 p("toggleBroadcast")}return s}(),selected:u,content:u?"Enabled":"Disabled"})})]})}return N}()},76020:function(I,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,k){var S=(0,a.useBackend)(k),y=S.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:y.app_data,recordType:"SEC"})}return f}()},11562:function(I,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,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data;return(0,e.createComponentVNode)(2,t.Signaler,{data:p.app_data})}return f}()},29539:function(I,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,k){var S=(0,a.useBackend)(k),y=S.data;return(0,e.createComponentVNode)(2,t.AtmosScan,{data:y})}return f}()},92180:function(I,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,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,l=p.janitor,c=l.user_loc,m=l.mops,i=l.buckets,d=l.cleanbots,u=l.carts;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(s){return(0,e.createComponentVNode)(2,t.Box,{children:[s.x,",",s.y," (",s.dir,") - ",s.status]},s)})}),i&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mop Bucket Locations",children:i.map(function(s){return(0,e.createComponentVNode)(2,t.Box,{children:[s.x,",",s.y," (",s.dir,") - [",s.volume,"/",s.max_volume,"]"]},s)})}),d&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cleanbot Locations",children:d.map(function(s){return(0,e.createComponentVNode)(2,t.Box,{children:[s.x,",",s.y," (",s.dir,") - ",s.status]},s)})}),u&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Janitorial Cart Locations",children:u.map(function(s){return(0,e.createComponentVNode)(2,t.Box,{children:[s.x,",",s.y," (",s.dir,") - [",s.volume,"/",s.max_volume,"]"]},s)})})]})}return f}()},57725:function(I,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(k,S){var y=(0,t.useBackend)(S),p=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 V(){return p("UpdateInfo")}return V}()})})]})})}),(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(V){var g=l.apps[V];return!g||!g.length?null:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:V,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 h(){return p("StartProgram",{program:v.uid})}return h}()},v.uid)})},V)})})})}),(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 V(){return p("pai",{option:1})}return V}()}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"eject",content:"Eject pAI",onClick:function(){function V(){return p("pai",{option:2})}return V}()})]})})]})}return N}()},29978:function(I,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,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data;return(0,e.createComponentVNode)(2,t.CrewManifest)}return f}()},20567:function(I,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,k){var S=(0,a.useBackend)(k),y=S.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:y,recordType:"MED"})}return f}()},38467:function(I,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(p,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,k,{data:i})}return y}(),N=r.ActiveConversation=function(){function y(p,l){var c=(0,t.useBackend)(l),m=c.act,i=p.data,d=i.convo_name,u=i.convo_job,s=i.messages,V=i.active_convo,g=(0,t.useLocalState)(l,"clipboardMode",!1),v=g[0],h=g[1],C=(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 b(){return h(!v)}return b}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function b(){return m("Message",{target:V})}return b}(),content:"Reply"})],4),children:(0,a.filter)(function(b){return b.target===V})(s).map(function(b,B){return(0,e.createComponentVNode)(2,o.Box,{textAlign:b.sent?"right":"left",position:"relative",mb:1,children:[(0,e.createComponentVNode)(2,o.Icon,{fontSize:2.5,color:b.sent?"#4d9121":"#cd7a0d",position:"absolute",left:b.sent?null:"0px",right:b.sent?"0px":null,bottom:"-4px",style:{"z-index":"0",transform:b.sent?"scale(-1, 1)":null},name:"comment"}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,backgroundColor:b.sent?"#4d9121":"#cd7a0d",p:1,maxWidth:"100%",position:"relative",textAlign:b.sent?"left":"right",style:{"z-index":"1","border-radius":"10px","word-break":"normal"},children:[b.sent?"You:":"Them:"," ",b.message]})]},B)})});return v&&(C=(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 b(){return h(!v)}return b}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function b(){return m("Message",{target:V})}return b}(),content:"Reply"})],4),children:(0,a.filter)(function(b){return b.target===V})(s).map(function(b,B){return(0,e.createComponentVNode)(2,o.Box,{color:b.sent?"#4d9121":"#cd7a0d",style:{"word-break":"normal"},children:[b.sent?"You:":"Them:"," ",(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:b.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 b(){return m("Clear",{option:"Convo"})}return b}()})})})}),C]})}return y}(),k=r.MessengerList=function(){function y(p,l){var c=(0,t.useBackend)(l),m=c.act,i=p.data,d=i.convopdas,u=i.pdas,s=i.charges,V=i.silent,g=i.toff,v=i.ringtone_list,h=i.ringtone,C=(0,t.useLocalState)(l,"searchTerm",""),b=C[0],B=C[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:!V,icon:V?"volume-mute":"volume-up",onClick:function(){function L(){return m("Toggle Ringer")}return L}(),children:["Ringer: ",V?"Off":"On"]}),(0,e.createComponentVNode)(2,o.Button,{color:g?"bad":"green",icon:"power-off",onClick:function(){function L(){return m("Toggle Messenger")}return L}(),children:["Messenger: ",g?"Off":"On"]}),(0,e.createComponentVNode)(2,o.Button,{icon:"trash",color:"bad",onClick:function(){function L(){return m("Clear",{option:"All"})}return L}(),children:"Delete All Conversations"}),(0,e.createComponentVNode)(2,o.Button,{icon:"bell",onClick:function(){function L(){return m("Ringtone")}return L}(),children:"Set Custom Ringtone"}),(0,e.createComponentVNode)(2,o.Button,{children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:h,width:"100px",options:Object.keys(v),onSelected:function(){function L(w){return m("Available_Ringtones",{selected_ringtone:w})}return L}()})})]})}),!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:b,onInput:function(){function L(w,T){B(T)}return L}()})]})]})||(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:b}),(0,e.createComponentVNode)(2,S,{title:"Other PDAs",pdas:u,msgAct:"Message",data:i,searchTerm:b})]})}return y}(),S=function(p,l){var c=(0,t.useBackend)(l),m=c.act,i=p.data,d=p.pdas,u=p.title,s=p.msgAct,V=p.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(h){return h.Name.toLowerCase().includes(V.toLowerCase())}).map(function(h){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:h.Name,onClick:function(){function C(){return m(s,{target:h.uid})}return C}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!g&&v.map(function(C){return(0,e.createComponentVNode)(2,o.Button,{icon:C.icon,content:C.name,onClick:function(){function b(){return m("Messenger Plugin",{plugin:C.uid,target:h.uid})}return b}()},C.uid)})})]},h.uid)})})}},54291:function(I,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(k,S){var y=(0,a.useBackend)(S),p=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 p("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 p("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 p("Prev")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Next",icon:"arrow-right",onClick:function(){function u(){return p("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 p("Transfer")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Release",icon:"arrow-up",onClick:function(){function u(){return p("Release")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Rename",icon:"pencil-alt",onClick:function(){function u(){return p("Rename")}return u}()}),!!d.is_hacked&&(0,e.createComponentVNode)(2,t.Button,{content:"Set Trap",icon:"bolt",color:"red",onClick:function(){function u(){return p("Set_Trap")}return u}()})]})]})})]}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Mob entry missing!"})})]})}return N}()},31112:function(I,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 k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.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 k}(),f=function(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.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 p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.mulebot,i=m.botstatus,d=m.active,u=i.mode,s=i.loca,V=i.load,g=i.powr,v=i.dest,h=i.home,C=i.retn,b=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:h}),(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 L(){return l("target")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Load",children:(0,e.createComponentVNode)(2,t.Button,{content:V?V+" (Unload)":"None",disabled:!V,onClick:function(){function L(){return l("unload")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto Pickup",children:(0,e.createComponentVNode)(2,t.Button,{content:b?"Yes":"No",selected:b,onClick:function(){function L(){return l("set_pickup_type",{autopick:b?0:1})}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto Return",children:(0,e.createComponentVNode)(2,t.Button,{content:C?"Yes":"No",selected:C,onClick:function(){function L(){return l("set_auto_return",{autoret:C?0:1})}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Stop",icon:"stop",onClick:function(){function L(){return l("stop")}return L}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Proceed",icon:"play",onClick:function(){function L(){return l("start")}return L}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Return Home",icon:"home",onClick:function(){function L(){return l("home")}return L}()})]})]})]})}},2817:function(I,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,V=s.logged_in,g=s.owner_name,v=s.money;return V?(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,k)]})],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),V=s[0],g=s[1];return(0,e.createComponentVNode)(2,o.Tabs,{mt:2,children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:V===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:V===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:V===3,onClick:function(){function v(){return g(3)}return v}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Transaction History"]})]})},k=function(m,i){var d=(0,t.useLocalState)(i,"tabIndex",1),u=d[0],s=(0,t.useBackend)(i),V=s.data,g=V.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,p);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,V=u.data,g=V.requests,v=V.available_accounts,h=V.money,C=(0,t.useLocalState)(i,"selectedAccount"),b=C[0],B=C[1],L=(0,t.useLocalState)(i,"transferAmount"),w=L[0],T=L[1],A=(0,t.useLocalState)(i,"searchText",""),x=A[0],E=A[1],M=[];return v.map(function(R){return M[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(O,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===b})[0])==null?void 0:d.name,onSelected:function(){function R(O){return B(M[O])}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(O,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:h0&&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(I,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 V=(0,t.createLogger)("hotkeys"),k={},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={},p=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 N=String(s);if(N==="Ctrl+F5"||N==="Ctrl+R"){location.reload();return}if(N!=="Ctrl+F"&&!(s.event.defaultPrevented||s.isModifierKey()||S.includes(s.code))){N==="F5"&&(s.event.preventDefault(),s.event.returnValue=!1);var g=p(s.code);if(g){var v=k[g];if(v)return V.debug("macro",v),Byond.command(v);if(s.isDown()&&!y[g]){y[g]=!0;var h='Key_Down "'+g+'"';return V.debug(h),Byond.command(h)}if(s.isUp()&&y[g]){y[g]=!1;var C='Key_Up "'+g+'"';return V.debug(C),Byond.command(C)}}}},c=r.acquireHotKey=function(){function u(s){S.push(s)}return u}(),m=r.releaseHotKey=function(){function u(s){var N=S.indexOf(s);N>=0&&S.splice(N,1)}return u}(),i=r.releaseHeldKeys=function(){function u(){for(var s=0,N=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 p("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 p("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 p("wipe")}return m}()})})]})})})]})})})}return V}()},46817:function(I,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 V(k,S){var y=(0,a.useBackend)(S),p=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 p("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 p("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 p("fix")}return d}()})})]}),(0,e.createComponentVNode)(2,t.Box,{color:"green",lineHeight:2,children:l.active?"Reconstruction in progress.":""})]})})]})})})}return V}()},20420:function(I,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),V=r.APC=function(){function p(l,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,y)})})}return p}(),k={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,N=k[d.externalPower]||k[0],g=k[d.chargingStatus]||k[0],v=d.powerChannels||[],h=S[d.malfStatus]||S[0],C=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:N.color,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:d.isOperating?"power-off":"times",content:d.isOperating?"On":"Off",selected:d.isOperating&&!u,color:d.isOperating?"":"bad",disabled:u,onClick:function(){function b(){return i("breaker")}return b}()}),children:["[ ",N.externalPowerText," ]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power Cell",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:"good",value:C})}),(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:u,onClick:function(){function b(){return i("charge")}return b}()}),children:["[ ",g.chargingText," ]"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Channels",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[v.map(function(b){var B=b.topicParams;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:b.title,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,mx:2,color:b.status>=2?"good":"bad",children:b.status>=2?"On":"Off"}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Auto",selected:!u&&(b.status===1||b.status===3),disabled:u,onClick:function(){function L(){return i("channel",B.auto)}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:"On",selected:!u&&b.status===2,disabled:u,onClick:function(){function L(){return i("channel",B.on)}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Off",selected:!u&&b.status===0,disabled:u,onClick:function(){function L(){return i("channel",B.off)}return L}()})],4),children:[b.powerLoad," W"]},b.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:h.icon,content:h.content,color:"bad",onClick:function(){function b(){return i(h.action)}return b}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",content:"Overload",onClick:function(){function b(){return i("overload")}return b}()})],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 b(){return i("cover")}return b}()})}),(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 b(){return i("emergency_lighting")}return b}()})}),(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 b(){return i("toggle_nightshift")}return b}()})})]})})],4)}},16822:function(I,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,N=u.data,g=N.view_screen,v=N.authenticated_account,h=N.ticks_left_locked_down,C=N.linked_db,b;if(h>0)b=(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(!C)b=(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:b=(0,e.createComponentVNode)(2,k);break;case 2:b=(0,e.createComponentVNode)(2,S);break;case 3:b=(0,e.createComponentVNode)(2,l);break;default:b=(0,e.createComponentVNode)(2,y)}else b=(0,e.createComponentVNode)(2,p);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,V),(0,e.createComponentVNode)(2,t.Section,{children:b})]})})}return m}(),V=function(i,d){var u=(0,a.useBackend)(d),s=u.act,N=u.data,g=N.machine_id,v=N.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 h(){return s("insert_card")}return h}()})})})]})},k=function(i,d){var u=(0,a.useBackend)(d),s=u.act,N=u.data,g=N.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,N=u.data,g=(0,a.useLocalState)(d,"targetAccNumber",0),v=g[0],h=g[1],C=(0,a.useLocalState)(d,"fundsAmount",0),b=C[0],B=C[1],L=(0,a.useLocalState)(d,"purpose",0),w=L[0],T=L[1],A=N.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,M){return h(M)}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,M){return B(M)}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,M){return T(M)}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:b,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,N=u.data,g=(0,a.useLocalState)(d,"fundsAmount",0),v=g[0],h=g[1],C=N.owner_name,b=N.money;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Welcome, "+C,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:["$",b]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Withdrawal Amount",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function B(L,w){return h(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)},p=function(i,d){var u=(0,a.useBackend)(d),s=u.act,N=u.data,g=(0,a.useLocalState)(d,"accountID",null),v=g[0],h=g[1],C=(0,a.useLocalState)(d,"accountPin",null),b=C[0],B=C[1],L=N.machine_id,w=N.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 h(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:b})}return T}()})})]})})},l=function(i,d){var u=(0,a.useBackend)(d),s=u.act,N=u.data,g=N.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,N=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(I,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),V=n(84947),k=n(51185),S=n(69774),y=r.AccountsUplinkTerminal=function(){function N(g,v){var h=(0,t.useBackend)(v),C=h.act,b=h.data,B=b.loginState,L=b.currentPage,w;if(B.logged_in)L===1?w=(0,e.createComponentVNode)(2,l):L===2?w=(0,e.createComponentVNode)(2,u):L===3&&(w=(0,e.createComponentVNode)(2,s));else return(0,e.createComponentVNode)(2,V.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,V.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,V.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,V.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k.LoginInfo),(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:w})]})})})}return N}(),p=function(g,v){var h=(0,t.useBackend)(v),C=h.data,b=(0,t.useLocalState)(v,"tabIndex",0),B=b[0],L=b[1],w=C.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 L(0)}return T}(),children:"User Accounts"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:B===1,onClick:function(){function T(){return L(1)}return T}(),children:"Department Accounts"})]})})})},l=function(g,v){var h=(0,t.useLocalState)(v,"tabIndex",0),C=h[0];switch(C){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 h=(0,t.useBackend)(v),C=h.act,b=h.data,B=b.accounts,L=(0,t.useLocalState)(v,"searchText",""),w=L[0],T=L[1],A=(0,t.useLocalState)(v,"sortId","owner_name"),x=A[0],E=A[1],M=(0,t.useLocalState)(v,"sortOrder",!0),R=M[0],O=M[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 U=R?1:-1;return D[x].localeCompare(j[x])*U}).map(function(D){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"AccountsUplinkTerminal__listRow--"+D.suspended,onClick:function(){function j(){return C("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 h=(0,t.useBackend)(v),C=h.act,b=h.data,B=b.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(L){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"AccountsUplinkTerminal__listRow--"+L.suspended,onClick:function(){function w(){return C("view_account_detail",{account_num:L.account_number})}return w}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"wallet"})," ",L.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:["#",L.account_number]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:L.suspended}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:L.money})]},L.account_number)})]})})})})},i=function(g,v){var h=(0,t.useLocalState)(v,"sortId","name"),C=h[0],b=h[1],B=(0,t.useLocalState)(v,"sortOrder",!0),L=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:C!==T&&"transparent",width:"100%",onClick:function(){function x(){C===T?w(!L):(b(T),w(!0))}return x}(),children:[A,C===T&&(0,e.createComponentVNode)(2,o.Icon,{name:L?"sort-up":"sort-down",ml:"0.25rem;"})]})})},d=function(g,v){var h=(0,t.useBackend)(v),C=h.act,b=h.data,B=b.is_printing,L=(0,t.useLocalState)(v,"searchText",""),w=L[0],T=L[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 C("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 h=(0,t.useBackend)(v),C=h.act,b=h.data,B=b.account_number,L=b.owner_name,w=b.money,T=b.suspended,A=b.transactions,x=b.account_pin,E=b.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+" / "+L,buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-left",content:"Back",onClick:function(){function M(){return C("back")}return M}()}),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 M(){return C("set_account_pin",{account_number:B})}return M}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Holder",children:L}),(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 M(){return C("toggle_suspension")}return M}()})]})]})})}),(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(M){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:M.time}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:M.purpose}),(0,e.createComponentVNode)(2,o.Table.Cell,{color:M.is_deposit?"green":"red",children:["$",M.amount]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:M.target_name})]},M)})]})})})]})},s=function(g,v){var h=(0,t.useBackend)(v),C=h.act,b=h.data,B=(0,t.useLocalState)(v,"accName",""),L=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 C("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(M,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(M,R){return x(R)}return E}()})})]}),(0,e.createComponentVNode)(2,o.Button,{mt:1,fluid:!0,content:"Create Account",onClick:function(){function E(){return C("finalise_create_account",{holder_name:L,starting_funds:A})}return E}()})]})}},26354:function(I,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"}},V=r.AiAirlock=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.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 k}()},26673:function(I,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),V=r.AirAlarm=function(){function d(u,s){var N=(0,a.useBackend)(s),g=N.act,v=N.data,h=v.locked;return(0,e.createComponentVNode)(2,o.Window,{width:570,height:h?310:755,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,f.InterfaceLockNoticeBox),(0,e.createComponentVNode)(2,S),!h&&(0,e.createFragment)([(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,p)],4)]})})}return d}(),k=function(u){return u===0?"green":u===1?"orange":"red"},S=function(u,s){var N=(0,a.useBackend)(s),g=N.act,v=N.data,h=v.air,C=v.mode,b=v.atmos_alarm,B=v.locked,L=v.alarmActivated,w=v.rcon,T=v.target_temp,A;return h.danger.overall===0?b===0?A="Optimal":A="Caution: Atmos alert in area":h.danger.overall===1?A="Caution":A="DANGER: Internals Required",(0,e.createComponentVNode)(2,t.Section,{title:"Air Status",children:h?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,t.Box,{color:k(h.danger.pressure),children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:h.pressure})," kPa",!B&&(0,e.createFragment)([(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,t.Button,{content:C===3?"Deactivate Panic Siphon":"Activate Panic Siphon",selected:C===3,icon:"exclamation-triangle",onClick:function(){function x(){return g("mode",{mode:C===3?1:3})}return x}()})],4)]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Oxygen",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.oxygen/100,fractionDigits:"1",color:k(h.danger.oxygen)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrogen",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.nitrogen/100,fractionDigits:"1",color:k(h.danger.nitrogen)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Carbon Dioxide",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.co2/100,fractionDigits:"1",color:k(h.danger.co2)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Toxins",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.plasma/100,fractionDigits:"1",color:k(h.danger.plasma)})}),h.contents.n2o>.1&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrous Oxide",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.n2o/100,fractionDigits:"1",color:k(h.danger.n2o)})}),h.contents.other>.1&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Other",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.other/100,fractionDigits:"1",color:k(h.danger.other)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.Box,{color:k(h.danger.temperature),children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:h.temperature})," K /"," ",(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:h.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:h.thermostat_state?"On":"Off",selected:h.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:k(h.danger.overall),children:[A,!B&&(0,e.createFragment)([(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,t.Button,{content:L?"Reset Alarm":"Activate Alarm",selected:L,onClick:function(){function x(){return g(L?"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 N=(0,a.useLocalState)(s,"tabIndex",0),g=N[0],v=N[1];return(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:g===0,onClick:function(){function h(){return v(0)}return h}(),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 h(){return v(1)}return h}(),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 h(){return v(2)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cog"})," Mode"]},"Mode"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:g===3,onClick:function(){function h(){return v(3)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"tachometer-alt"})," Thresholds"]},"Thresholds")]})},p=function(u,s){var N=(0,a.useLocalState)(s,"tabIndex",0),g=N[0],v=N[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 N=(0,a.useBackend)(s),g=N.act,v=N.data,h=v.vents;return h.map(function(C){return(0,e.createComponentVNode)(2,t.Section,{title:C.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:C.power?"On":"Off",selected:C.power,icon:"power-off",onClick:function(){function b(){return g("command",{cmd:"power",val:!C.power,id_tag:C.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:C.direction?"Blowing":"Siphoning",icon:C.direction?"sign-out-alt":"sign-in-alt",onClick:function(){function b(){return g("command",{cmd:"direction",val:!C.direction,id_tag:C.id_tag})}return b}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure Checks",children:[(0,e.createComponentVNode)(2,t.Button,{content:"External",selected:C.checks===1,onClick:function(){function b(){return g("command",{cmd:"checks",val:1,id_tag:C.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Internal",selected:C.checks===2,onClick:function(){function b(){return g("command",{cmd:"checks",val:2,id_tag:C.id_tag})}return b}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"External Pressure Target",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:C.external})," kPa\xA0",(0,e.createComponentVNode)(2,t.Button,{content:"Set",icon:"cog",onClick:function(){function b(){return g("command",{cmd:"set_external_pressure",id_tag:C.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Reset",icon:"redo-alt",onClick:function(){function b(){return g("command",{cmd:"set_external_pressure",val:101.325,id_tag:C.id_tag})}return b}()})]})]})},C.name)})},c=function(u,s){var N=(0,a.useBackend)(s),g=N.act,v=N.data,h=v.scrubbers;return h.map(function(C){return(0,e.createComponentVNode)(2,t.Section,{title:C.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:C.power?"On":"Off",selected:C.power,icon:"power-off",onClick:function(){function b(){return g("command",{cmd:"power",val:!C.power,id_tag:C.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:C.scrubbing?"Scrubbing":"Siphoning",icon:C.scrubbing?"filter":"sign-in-alt",onClick:function(){function b(){return g("command",{cmd:"scrubbing",val:!C.scrubbing,id_tag:C.id_tag})}return b}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Range",children:(0,e.createComponentVNode)(2,t.Button,{content:C.widenet?"Extended":"Normal",selected:C.widenet,icon:"expand-arrows-alt",onClick:function(){function b(){return g("command",{cmd:"widenet",val:!C.widenet,id_tag:C.id_tag})}return b}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Filtering",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Carbon Dioxide",selected:C.filter_co2,onClick:function(){function b(){return g("command",{cmd:"co2_scrub",val:!C.filter_co2,id_tag:C.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Plasma",selected:C.filter_toxins,onClick:function(){function b(){return g("command",{cmd:"tox_scrub",val:!C.filter_toxins,id_tag:C.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Nitrous Oxide",selected:C.filter_n2o,onClick:function(){function b(){return g("command",{cmd:"n2o_scrub",val:!C.filter_n2o,id_tag:C.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Oxygen",selected:C.filter_o2,onClick:function(){function b(){return g("command",{cmd:"o2_scrub",val:!C.filter_o2,id_tag:C.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Nitrogen",selected:C.filter_n2,onClick:function(){function b(){return g("command",{cmd:"n2_scrub",val:!C.filter_n2,id_tag:C.id_tag})}return b}()})]})]})},C.name)})},m=function(u,s){var N=(0,a.useBackend)(s),g=N.act,v=N.data,h=v.modes,C=v.presets,b=v.emagged,B=v.mode,L=v.preset;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"System Mode",children:(0,e.createComponentVNode)(2,t.Table,{children:h.map(function(w){return(!w.emagonly||w.emagonly&&!!b)&&(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:C.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===L,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 N=(0,a.useBackend)(s),g=N.act,v=N.data,h=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"})]}),h.map(function(C){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.name}),C.settings.map(function(b){return(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:b.selected===-1?"Off":b.selected,onClick:function(){function B(){return g("command",{cmd:"set_threshold",env:b.env,var:b.val})}return B}()})},b.val)})]},C.name)})]})})}},98565:function(I,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 V(k,S){var y=(0,a.useBackend)(S),p=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 p("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 p("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 p("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 p("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 V}()},76385:function(I,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),V=1,k=2,S=4,y=8,p=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,N=u.data,g=N.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&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-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&V?"selected":null,onClick:function(){function v(){return s("unrestricted_access",{unres_dir:V})}return v}()})})]})]})})},c=function(i,d){var u=(0,a.useBackend)(d),s=u.act,N=u.data,g=N.selected_accesses,v=N.one_access,h=N.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 C(){return s("set_one_access",{access:"one"})}return C}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!v,content:"All",onClick:function(){function C(){return s("set_one_access",{access:"all"})}return C}()})],4),accesses:h,selectedList:g,accessMod:function(){function C(b){return s("set",{access:b})}return C}(),grantAll:function(){function C(){return s("grant_all")}return C}(),denyAll:function(){function C(){return s("clear_all")}return C}(),grantDep:function(){function C(b){return s("grant_region",{region:b})}return C}(),denyDep:function(){function C(b){return s("deny_region",{region:b})}return C}()})}},55666:function(I,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),V=n(84947),k=-1,S=1,y=r.AlertModal=function(){function c(m,i){var d=(0,t.useBackend)(i),u=d.act,s=d.data,N=s.autofocus,g=s.buttons,v=g===void 0?[]:g,h=s.large_buttons,C=s.message,b=C===void 0?"":C,B=s.timeout,L=s.title,w=(0,t.useLocalState)(i,"selected",0),T=w[0],A=w[1],x=110+(b.length>30?Math.ceil(b.length/4):0)+(b.length&&h?5:0),E=325+(v.length>2?100:0),M=function(){function R(O){T===0&&O===k?A(v.length-1):T===v.length-1&&O===S?A(0):A(T+O)}return R}();return(0,e.createComponentVNode)(2,V.Window,{title:L,height:x,width:E,children:[!!B&&(0,e.createComponentVNode)(2,a.Loader,{value:B}),(0,e.createComponentVNode)(2,V.Window.Content,{onKeyDown:function(){function R(O){var D=window.event?O.which:O.keyCode;D===o.KEY_SPACE||D===o.KEY_ENTER?u("choose",{choice:v[T]}):D===o.KEY_ESCAPE?u("cancel"):D===o.KEY_LEFT?(O.preventDefault(),M(k)):(D===o.KEY_TAB||D===o.KEY_RIGHT)&&(O.preventDefault(),M(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:b})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:[!!N&&(0,e.createComponentVNode)(2,f.Autofocus),(0,e.createComponentVNode)(2,p,{selected:T})]})]})})})]})}return c}(),p=function(m,i){var d=(0,t.useBackend)(i),u=d.data,s=u.buttons,N=s===void 0?[]:s,g=u.large_buttons,v=u.swapped_buttons,h=m.selected;return(0,e.createComponentVNode)(2,f.Flex,{fill:!0,align:"center",direction:v?"row":"row-reverse",justify:"space-around",wrap:!0,children:N==null?void 0:N.map(function(C,b){return g&&N.length<3?(0,e.createComponentVNode)(2,f.Flex.Item,{grow:!0,children:(0,e.createComponentVNode)(2,l,{button:C,id:b.toString(),selected:h===b})},b):(0,e.createComponentVNode)(2,f.Flex.Item,{grow:g?1:0,children:(0,e.createComponentVNode)(2,l,{button:C,id:b.toString(),selected:h===b})},b)})})},l=function(m,i){var d=(0,t.useBackend)(i),u=d.act,s=d.data,N=s.large_buttons,g=m.button,v=m.selected,h=g.length>7?"100%":7;return(0,e.createComponentVNode)(2,f.Button,{mx:N?1:0,pt:N?.33:0,content:g,fluid:!!N,onClick:function(){function C(){return u("choose",{choice:g})}return C}(),selected:v,textAlign:"center",height:!!N&&2,width:!N&&h})}},16504:function(I,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 k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.change_race,i=c.species,d=c.specimen,u=c.change_gender,s=c.gender,N=c.has_gender,g=c.change_eye_color,v=c.change_skin_tone,h=c.change_skin_color,C=c.change_head_accessory_color,b=c.change_hair_color,B=c.change_secondary_hair_color,L=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,M=c.head_accessory_styles,R=c.head_accessory_style,O=c.change_hair,D=c.hair_styles,j=c.hair_style,U=c.change_hair_gradient,W=c.change_facial_hair,K=c.facial_hair_styles,G=c.facial_hair_style,$=c.change_head_markings,z=c.head_marking_styles,Y=c.head_marking_style,J=c.change_body_markings,ie=c.body_marking_styles,re=c.body_marking_style,de=c.change_tail_markings,ve=c.tail_marking_styles,ye=c.tail_marking_style,Le=c.change_body_accessory,pe=c.body_accessory_styles,ne=c.body_accessory_style,ae=c.change_alt_head,q=c.alt_head_styles,se=c.alt_head_style,me=!1;return(g||v||h||C||b||B||L||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(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.specimen,selected:te.specimen===d,onClick:function(){function be(){return l("race",{race:te.specimen})}return be}()},te.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 te(){return l("gender",{gender:"male"})}return te}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Female",selected:s==="female",onClick:function(){function te(){return l("gender",{gender:"female"})}return te}()}),!N&&(0,e.createComponentVNode)(2,t.Button,{content:"Genderless",selected:s==="plural",onClick:function(){function te(){return l("gender",{gender:"plural"})}return te}()})]}),!!me&&(0,e.createComponentVNode)(2,V),!!E&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Head accessory",children:M.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.headaccessorystyle,selected:te.headaccessorystyle===R,onClick:function(){function be(){return l("head_accessory",{head_accessory:te.headaccessorystyle})}return be}()},te.headaccessorystyle)})}),!!O&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hair",children:D.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.hairstyle,selected:te.hairstyle===j,onClick:function(){function be(){return l("hair",{hair:te.hairstyle})}return be}()},te.hairstyle)})}),!!U&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hair Gradient",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Change Style",onClick:function(){function te(){return l("hair_gradient")}return te}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Offset",onClick:function(){function te(){return l("hair_gradient_offset")}return te}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Color",onClick:function(){function te(){return l("hair_gradient_colour")}return te}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Alpha",onClick:function(){function te(){return l("hair_gradient_alpha")}return te}()})]}),!!W&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Facial hair",children:K.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.facialhairstyle,selected:te.facialhairstyle===G,onClick:function(){function be(){return l("facial_hair",{facial_hair:te.facialhairstyle})}return be}()},te.facialhairstyle)})}),!!$&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Head markings",children:z.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.headmarkingstyle,selected:te.headmarkingstyle===Y,onClick:function(){function be(){return l("head_marking",{head_marking:te.headmarkingstyle})}return be}()},te.headmarkingstyle)})}),!!J&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Body markings",children:ie.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.bodymarkingstyle,selected:te.bodymarkingstyle===re,onClick:function(){function be(){return l("body_marking",{body_marking:te.bodymarkingstyle})}return be}()},te.bodymarkingstyle)})}),!!de&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tail markings",children:ve.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.tailmarkingstyle,selected:te.tailmarkingstyle===ye,onClick:function(){function be(){return l("tail_marking",{tail_marking:te.tailmarkingstyle})}return be}()},te.tailmarkingstyle)})}),!!Le&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Body accessory",children:pe.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.bodyaccessorystyle,selected:te.bodyaccessorystyle===ne,onClick:function(){function be(){return l("body_accessory",{body_accessory:te.bodyaccessorystyle})}return be}()},te.bodyaccessorystyle)})}),!!ae&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alternate head",children:q.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.altheadstyle,selected:te.altheadstyle===se,onClick:function(){function be(){return l("alt_head",{alt_head:te.altheadstyle})}return be}()},te.altheadstyle)})})]})})})}return k}(),V=function(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.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(I,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 V(k,S){var y=(0,a.useBackend)(S),p=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 V}()},66274:function(I,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),V=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"})},k=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),N=s[0],g=s[1],v=function(){function h(C){switch(C){case 0:return(0,e.createComponentVNode)(2,y);case 1:return(0,e.createComponentVNode)(2,p);default:return"WE SHOULDN'T BE HERE!"}}return h}();return(0,e.createComponentVNode)(2,f.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:N===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:N===0,onClick:function(){function h(){return g(0)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"table"})," Data View"]},"DataView"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:N===1,onClick:function(){function h(){return g(1)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"map-marked-alt"})," Map View"]},"MapView")]}),v(N)]})})})}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(N){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,o.TableCell,{children:N.name}),(0,e.createComponentVNode)(2,o.TableCell,{children:V(N.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:N.ref})}return g}()})})]},N.name)})]})})},p=function(c,m){var i=(0,a.useBackend)(m),d=i.data,u=(0,a.useLocalState)(m,"zoom",1),s=u[0],N=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(h){return N(h)}return v}(),children:g.filter(function(v){return v.z===2}).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:k(v.danger)},v.ref)})})})}},90588:function(I,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 V(k,S){var y=(0,a.useBackend)(S),p=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 p("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 p("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(N,g){return p("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 p("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 N(){return p("set_filter",{filter:s.gas_type})}return N}()},s.label)})})]})})})})}return V}()},87486:function(I,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 k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.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 N(){return l("power")}return N}()})}),(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 N(){return l("min_pressure")}return N}()}),(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 N(g,v){return l("custom_pressure",{pressure:v})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:i===d,width:2.2,onClick:function(){function N(){return l("max_pressure")}return N}()})]}),(0,e.createComponentVNode)(2,V,{node_name:"Node 1",node_ref:u}),(0,e.createComponentVNode)(2,V,{node_name:"Node 2",node_ref:s})]})})})})}return k}(),V=function(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.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(I,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 V(k,S){var y=(0,a.useBackend)(S),p=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 p("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 p("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(N,g){return p("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 p("max_rate")}return s}()})]})]})})})})}return V}()},66032:function(I,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),V=n(84947),k=r.AtmosTankControl=function(){function S(y,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,i=m.sensors||{};return(0,e.createComponentVNode)(2,V.Window,{width:400,height:400,children:(0,e.createComponentVNode)(2,V.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(I,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),V=n(84947),k=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 p(l,c){var m=(0,o.useBackend)(c),i=m.act,d=m.data,u=d.total_amount,s=d.max_amount,N=d.metal_amount,g=d.glass_amount,v=d.busyname,h=d.busyamt,C=d.showhacked,b=d.buildQueue,B=d.buildQueueLen,L=d.recipes,w=d.categories,T=(0,o.useSharedState)(c,"category",0),A=T[0],x=T[1];A===0&&(A="Tools");var E=N.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),M=g.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),R=u.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),O=(0,o.useSharedState)(c,"search_text",""),D=O[0],j=O[1],U=(0,k.createSearch)(D,function($){return $.name}),W="";B>0&&(W=b.map(function($,z){return(0,e.createComponentVNode)(2,f.Box,{children:(0,e.createComponentVNode)(2,f.Button,{fluid:!0,icon:"times",color:"transparent",content:b[z][0],onClick:function(){function Y(){return i("remove_from_queue",{remove_from_queue:b.indexOf($)+1})}return Y}()},$)},z)}));var K=(0,a.flow)([(0,t.filter)(function($){return($.category.indexOf(A)>-1||D)&&(d.showhacked||!$.hacked)}),D&&(0,t.filter)(U),(0,t.sortBy)(function($){return $.name.toLowerCase()})])(L),G="Build";return D?G="Results for: '"+D+"':":A&&(G="Build ("+A+")"),(0,e.createComponentVNode)(2,V.Window,{width:750,height:525,children:(0,e.createComponentVNode)(2,V.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:G,buttons:(0,e.createComponentVNode)(2,f.Dropdown,{width:"150px",options:w,selected:A,onSelected:function(){function $(z){return x(z)}return $}()}),children:[(0,e.createComponentVNode)(2,f.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function $(z,Y){return j(Y)}return $}(),mb:1}),K.map(function($){return(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+$.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===$.name&&d.busyamt===1,disabled:!S($,d.metal_amount,d.glass_amount,1),onClick:function(){function z(){return i("make",{make:$.uid,multiplier:1})}return z}(),children:(0,k.toTitleCase)($.name)}),$.max_multiplier>=10&&(0,e.createComponentVNode)(2,f.Button,{mr:1,icon:"hammer",selected:d.busyname===$.name&&d.busyamt===10,disabled:!S($,d.metal_amount,d.glass_amount,10),onClick:function(){function z(){return i("make",{make:$.uid,multiplier:10})}return z}(),children:"10x"}),$.max_multiplier>=25&&(0,e.createComponentVNode)(2,f.Button,{mr:1,icon:"hammer",selected:d.busyname===$.name&&d.busyamt===25,disabled:!S($,d.metal_amount,d.glass_amount,25),onClick:function(){function z(){return i("make",{make:$.uid,multiplier:25})}return z}(),children:"25x"}),$.max_multiplier>25&&(0,e.createComponentVNode)(2,f.Button,{mr:1,icon:"hammer",selected:d.busyname===$.name&&d.busyamt===$.max_multiplier,disabled:!S($,d.metal_amount,d.glass_amount,$.max_multiplier),onClick:function(){function z(){return i("make",{make:$.uid,multiplier:$.max_multiplier})}return z}(),children:[$.max_multiplier,"x"]}),$.requirements&&Object.keys($.requirements).map(function(z){return(0,k.toTitleCase)(z)+": "+$.requirements[z]}).join(", ")||(0,e.createComponentVNode)(2,f.Box,{children:"No resources required."})]},$.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:M}),(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:[W,(0,e.createComponentVNode)(2,f.Button,{mt:.5,fluid:!0,icon:"times",content:"Clear All",color:"red",disabled:!d.buildQueueLen,onClick:function(){function $(){return i("clear_queue")}return $}()})]})]})]})})})}return p}()},13940:function(I,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 V(k,S){var y=(0,a.useBackend)(S),p=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 p("eject_case")}return i}()})]})})})}return V}()},55295:function(I,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),V=r.Biogenerator=function(){function l(c,m){var i=(0,a.useBackend)(m),d=i.data,u=i.config,s=d.container,N=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:N,name:g}),(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,y),s?(0,e.createComponentVNode)(2,p):(0,e.createComponentVNode)(2,k)]})})})}return l}(),k=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,N=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:"}),N?(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,N=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:!N,tooltip:N?"":"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}()})})]})})},p=function(c,m){var i=(0,a.useBackend)(m),d=i.act,u=i.data,s=u.biomass,N=u.product_list,g=(0,a.useSharedState)(m,"vendAmount",1),v=g[0],h=g[1],C=Object.entries(N).map(function(b,B){var L=Object.entries(b[1]).map(function(w){return w[1]});return(0,e.createComponentVNode)(2,t.Collapsible,{title:b[0],open:!0,children:L.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:[!!h&&(0,e.createComponentVNode)(2,t.NoticeBox,{danger:1,children:"Safety Protocols disabled"}),d>C&&(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 L(){return l("set",{set_level:0})}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"step-backward",tooltip:"Decrease to actual input level",disabled:i===0,onClick:function(){function L(){return l("set",{set_level:d})}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:i===0,tooltip:"Decrease one step",onClick:function(){function L(){return l("decrease")}return L}()})]}),(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 L(w,T){return l("set",{set_level:T})}return L}()})}),(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 L(){return l("increase")}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:i===v,tooltip:"Set to max",tooltipPosition:"left",onClick:function(){function L(){return l("set",{set_level:v})}return L}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Power Use",children:(0,f.formatPower)(N)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power for next level",children:(0,f.formatPower)(b)}),(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(L){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:L.name,children:(0,e.createComponentVNode)(2,t.Button,{disabled:L.price>=u,onClick:function(){function w(){return l("vend",{target:L.key})}return w}(),content:L.price})},L.key)})})})})]})})]})})})}return k}()},31876:function(I,r,n){"use strict";r.__esModule=!0,r.BodyScanner=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(84947),V=[["good","Alive"],["average","Critical"],["bad","DEAD"]],k=[["hasVirus","bad","Viral pathogen detected in blood stream."],["blind","average","Cataracts detected."],["colourblind","average","Photoreceptor abnormalities detected."],["nearsighted","average","Retinal misalignment detected."]],S=[["Respiratory","oxyLoss"],["Brain","brainLoss"],["Toxin","toxLoss"],["Radiation","radLoss"],["Brute","bruteLoss"],["Cellular","cloneLoss"],["Burn","fireLoss"],["Inebriation","drunkenness"]],y={average:[.25,.5],bad:[.5,1/0]},p=function(b,B){for(var L=[],w=0;w0?b.filter(function(B){return!!B}).reduce(function(B,L){return(0,e.createFragment)([B,(0,e.createComponentVNode)(2,o.Box,{children:L},L)],0)},null):null},c=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""},m=r.BodyScanner=function(){function C(b,B){var L=(0,t.useBackend)(B),w=L.data,T=w.occupied,A=w.occupant,x=A===void 0?{}:A,E=T?(0,e.createComponentVNode)(2,i,{occupant:x}):(0,e.createComponentVNode)(2,h);return(0,e.createComponentVNode)(2,f.Window,{width:690,height:600,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:E})})}return C}(),i=function(b){var B=b.occupant;return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,d,{occupant:B}),(0,e.createComponentVNode)(2,u,{occupant:B}),(0,e.createComponentVNode)(2,s,{occupant:B}),(0,e.createComponentVNode)(2,g,{organs:B.extOrgan}),(0,e.createComponentVNode)(2,v,{organs:B.intOrgan})]})},d=function(b,B){var L=(0,t.useBackend)(B),w=L.act,T=L.data,A=T.occupant;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"print",onClick:function(){function x(){return w("print_p")}return x}(),children:"Print Report"}),(0,e.createComponentVNode)(2,o.Button,{icon:"user-slash",onClick:function(){function x(){return w("ejectify")}return x}(),children:"Eject"})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:A.name}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:A.maxHealth,value:A.health/A.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",color:V[A.stat][0],children:V[A.stat][1]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:(0,a.round)(A.bodyTempC,0)}),"\xB0C,\xA0",(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:(0,a.round)(A.bodyTempF,0)}),"\xB0F"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Implants",children:A.implant_len?(0,e.createComponentVNode)(2,o.Box,{children:A.implant.map(function(x){return x.name}).join(", ")}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"None"})})]})})},u=function(b){var B=b.occupant;return B.hasBorer||B.blind||B.colourblind||B.nearsighted||B.hasVirus?(0,e.createComponentVNode)(2,o.Section,{title:"Abnormalities",children:k.map(function(L,w){if(B[L[0]])return(0,e.createComponentVNode)(2,o.Box,{color:L[1],bold:L[1]==="bad",children:L[2]},L[2])})}):(0,e.createComponentVNode)(2,o.Section,{title:"Abnormalities",children:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No abnormalities found."})})},s=function(b){var B=b.occupant;return(0,e.createComponentVNode)(2,o.Section,{title:"Damage",children:(0,e.createComponentVNode)(2,o.Table,{children:p(S,function(L,w,T){return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Table.Row,{color:"label",children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[L[0],":"]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:!!w&&w[0]+":"})]}),(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,N,{value:B[L[1]],marginBottom:T100)&&"average"||!!B.status.robotic&&"label",width:"33%",children:B.name}),(0,e.createComponentVNode)(2,o.Table.Cell,{textAlign:"center",q:!0,children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:B.maxHealth,mt:L>0&&"0.5rem",value:B.totalLoss/B.maxHealth,ranges:y,children:[(0,e.createComponentVNode)(2,o.Box,{float:"left",inline:!0,children:[!!B.bruteLoss&&(0,e.createComponentVNode)(2,o.Tooltip,{position:"top",content:"Brute damage",children:(0,e.createComponentVNode)(2,o.Box,{inline:!0,position:"relative",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"bone"}),(0,a.round)(B.bruteLoss,0),"\xA0"]})}),!!B.fireLoss&&(0,e.createComponentVNode)(2,o.Tooltip,{position:"top",content:"Burn damage",children:(0,e.createComponentVNode)(2,o.Box,{inline:!0,position:"relative",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"fire"}),(0,a.round)(B.fireLoss,0)]})})]}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:(0,a.round)(B.totalLoss,0)})]})}),(0,e.createComponentVNode)(2,o.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:L>0&&"calc(0.5rem + 2px)",children:[(0,e.createComponentVNode)(2,o.Box,{color:"average",inline:!0,children:l([!!B.internalBleeding&&"Internal bleeding",!!B.burnWound&&"Critical tissue burns",!!B.lungRuptured&&"Ruptured lung",!!B.status.broken&&B.status.broken,c(B.germ_level),!!B.open&&"Open incision"])}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:[l([!!B.status.splinted&&(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"Splinted"}),!!B.status.robotic&&(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"Robotic"}),!!B.status.dead&&(0,e.createComponentVNode)(2,o.Box,{color:"bad",bold:!0,children:"DEAD"})]),l(B.shrapnel.map(function(w){return w.known?w.name:"Unknown object"}))]})]})]},L)})]})})},v=function(b){return b.organs.length===0?(0,e.createComponentVNode)(2,o.Section,{title:"Internal Organs",children:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"N/A"})}):(0,e.createComponentVNode)(2,o.Section,{title:"Internal Organs",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:"Name"}),(0,e.createComponentVNode)(2,o.Table.Cell,{textAlign:"center",children:"Damage"}),(0,e.createComponentVNode)(2,o.Table.Cell,{textAlign:"right",children:"Injuries"})]}),b.organs.map(function(B,L){return(0,e.createComponentVNode)(2,o.Table.Row,{textTransform:"capitalize",children:[(0,e.createComponentVNode)(2,o.Table.Cell,{color:!!B.dead&&"bad"||B.germ_level>100&&"average"||B.robotic>0&&"label",width:"33%",children:B.name}),(0,e.createComponentVNode)(2,o.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:B.maxHealth,value:B.damage/B.maxHealth,mt:L>0&&"0.5rem",ranges:y,children:(0,a.round)(B.damage,0)})}),(0,e.createComponentVNode)(2,o.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:L>0&&"calc(0.5rem + 2px)",children:[(0,e.createComponentVNode)(2,o.Box,{color:"average",inline:!0,children:l([c(B.germ_level)])}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:l([B.robotic===1&&(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"Robotic"}),B.robotic===2&&(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"Assisted"}),!!B.dead&&(0,e.createComponentVNode)(2,o.Box,{color:"bad",bold:!0,children:"DEAD"})])})]})]},L)})]})})},h=function(){return(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,textAlign:"center",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."]})})})}},73440:function(I,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),V=n(92462),k=r.BookBinder=function(){function S(y,p){var l=(0,a.useBackend)(p),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)(p,"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)(p,"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(N){return c("toggle_binder_category",{category_id:u[N]})}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)(p,"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 N(){return c("toggle_binder_category",{category_id:s.category_id})}return N}()},s.category_id)})]})})]})})})]})}return S}()},40730:function(I,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),V=r.BotClean=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.locked,i=c.noaccess,d=c.maintpanel,u=c.on,s=c.autopatrol,N=c.canhack,g=c.emagged,v=c.remote_disabled,h=c.painame,C=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:C,content:"Clean Blood",disabled:i,onClick:function(){function b(){return l("blood")}return b}()})}),h&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:h,disabled:i,onClick:function(){function b(){return l("ejectpai")}return b}()})})]})})}return k}()},36078:function(I,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),V=r.BotFloor=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.noaccess,i=c.painame,d=c.hullplating,u=c.replace,s=c.eat,N=c.make,g=c.fixfloor,v=c.nag_empty,h=c.magnet,C=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:C})}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:d,content:"Add tiles to new hull plating",disabled:m,onClick:function(){function b(){return l("autotile")}return b}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:u,content:"Replace floor tiles",disabled:m,onClick:function(){function b(){return l("replacetiles")}return b}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:g,content:"Repair damaged tiles and platings",disabled:m,onClick:function(){function b(){return l("fixfloors")}return b}()})]}),(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 b(){return l("eattiles")}return b}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:N,content:"Make pieces of metal into tiles when empty",disabled:m,onClick:function(){function b(){return l("maketiles")}return b}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:v,content:"Transmit notice when empty",disabled:m,onClick:function(){function b(){return l("nagonempty")}return b}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:h,content:"Traction Magnets",disabled:m,onClick:function(){function b(){return l("anchored")}return b}()})]}),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 b(){return l("ejectpai")}return b}()})})]})})}return k}()},89121:function(I,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),V=r.BotHonk=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.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 k}()},39805:function(I,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),V=r.BotMed=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.locked,i=c.noaccess,d=c.maintpanel,u=c.on,s=c.autopatrol,N=c.canhack,g=c.emagged,v=c.remote_disabled,h=c.painame,C=c.shut_up,b=c.declare_crit,B=c.stationary_mode,L=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:!C,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:b,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:L.value,minValue:L.min,maxValue:L.max,step:5,disabled:i,onChange:function(){function E(M,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(M){return M+"u"}return E}(),disabled:i,onChange:function(){function E(M,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}()})]}),h&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:h,disabled:i,onClick:function(){function E(){return l("ejectpai")}return E}()})})]})})})}return k}()},35519:function(I,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),V=r.BotSecurity=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.noaccess,i=c.painame,d=c.check_id,u=c.check_weapons,s=c.check_warrant,N=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:N,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 k}()},71169:function(I,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,p){var l=y.cell,c=(0,o.useBackend)(p),m=c.act,i=l.cell_id,d=l.occupant,u=l.crimes,s=l.brigged_by,N=l.time_left_seconds,g=l.time_set_seconds,v=l.ref,h="";N>0&&(h+=" BrigCells__listRow--active");var C=function(){m("release",{ref:v})};return(0,e.createComponentVNode)(2,t.Table.Row,{className:h,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:N})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{type:"button",onClick:C,children:"Release"})})]})},V=function(y){var p=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"})]}),p.map(function(l){return(0,e.createComponentVNode)(2,f,{cell:l},l.ref)})]})},k=r.BrigCells=function(){function S(y,p){var l=(0,o.useBackend)(p),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,V,{cells:i})})})})})}return S}()},19070:function(I,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 V(k,S){var y=(0,a.useBackend)(S),p=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 N=i.findIndex(function(g){return g.name===d.name});return[(u=i[N-1])==null?void 0:u.name,(s=i[N+1])==null?void 0:s.name]},p=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,V.useBackend)(d),s=u.act,N=u.data,g=u.config,v=N.mapRef,h=N.activeCamera,C=p(N.cameras),b=y(C,h),B=b[0],L=b[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,k.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),h&&h.name||"\u2014"],0),(0,e.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,e.createComponentVNode)(2,k.Button,{icon:"chevron-left",disabled:!B,onClick:function(){function w(){return s("switch_camera",{name:B})}return w}()}),(0,e.createComponentVNode)(2,k.Button,{icon:"chevron-right",disabled:!L,onClick:function(){function w(){return s("switch_camera",{name:L})}return w}()})],4),(0,e.createComponentVNode)(2,k.ByondUi,{className:"CameraConsole__map",params:{id:v,type:"map"}})],4)]})}return m}(),c=r.CameraConsoleContent=function(){function m(i,d){var u=(0,V.useBackend)(d),s=u.act,N=u.data,g=(0,V.useLocalState)(d,"searchText",""),v=g[0],h=g[1],C=N.activeCamera,b=p(N.cameras,v);return(0,e.createComponentVNode)(2,k.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k.Stack.Item,{children:(0,e.createComponentVNode)(2,k.Input,{fluid:!0,placeholder:"Search for a camera",onInput:function(){function B(L,w){return h(w)}return B}()})}),(0,e.createComponentVNode)(2,k.Stack.Item,{grow:!0,m:0,children:(0,e.createComponentVNode)(2,k.Section,{fill:!0,scrollable:!0,children:b.map(function(B){return(0,e.createVNode)(1,"div",(0,o.classes)(["Button","Button--fluid","Button--color--transparent",C&&B.name===C.name&&"Button--selected"]),B.name.trimLongStr(23),0,{title:B.name,onClick:function(){function L(){return s("switch_camera",{name:B.name})}return L}()},B.name)})})})]})}return m}()},21348:function(I,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),V=n(84947),k=r.Canister=function(){function S(y,p){var l=(0,t.useBackend)(p),c=l.act,m=l.data,i=m.portConnected,d=m.tankPressure,u=m.releasePressure,s=m.defaultReleasePressure,N=m.minReleasePressure,g=m.maxReleasePressure,v=m.valveOpen,h=m.name,C=m.canLabel,b=m.colorContainer,B=m.color_index,L=m.hasHoldingTank,w=m.holdingTank,T="";B.prim&&(T=b.prim.options[B.prim].name);var A="";B.sec&&(A=b.sec.options[B.sec].name);var x="";B.ter&&(x=b.ter.options[B.ter].name);var E="";B.quart&&(E=b.quart.options[B.quart].name);var M=[],R=[],O=[],D=[],j=0;for(j=0;jh.current_positions&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:h.total_positions-h.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||!h.can_close,onClick:function(){function C(){return u("make_job_unavailable",{job:h.title})}return C}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{content:"+",disabled:s.cooldown_time||!h.can_open,onClick:function(){function C(){return u("make_job_available",{job:h.title})}return C}()})}),(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(h.title)>-1?"Yes":""})||(0,e.createComponentVNode)(2,t.Button,{content:h.is_priority?"Yes":"No",selected:h.is_priority,disabled:s.cooldown_time||!h.can_prioritize,onClick:function(){function C(){return u("prioritize_job",{job:h.title})}return C}()})})]},h.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 h(C){return u("set",{access:C})}return h}(),grantAll:function(){function h(){return u("grant_all")}return h}(),denyAll:function(){function h(){return u("clear_all")}return h}(),grantDep:function(){function h(C){return u("grant_region",{region:C})}return h}(),denyDep:function(){function h(C){return u("deny_region",{region:C})}return h}()}):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 h(){return u("wipe_all_logs")}return h}()}),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(h){return(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.transferee}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.oldvalue}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.newvalue}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.whodidit}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.timestamp}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.reason}),!!s.iscentcom&&(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.deletedby})]},h.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 h(){return u("wipe_my_logs")}return h}()})})]}):v=(0,e.createComponentVNode)(2,p):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(h){return(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.title}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.crimstat}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:h.buttontext,disabled:!h.demotable,onClick:function(){function C(){return u("remote_demote",{remote_demote:h.name})}return C}()})})]},h.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:N}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:v})]})})})}return c}()},62486:function(I,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),V=n(84947),k=n(37843),S=r.CargoConsole=function(){function d(u,s){return(0,e.createComponentVNode)(2,V.Window,{width:900,height:800,children:(0,e.createComponentVNode)(2,V.Window.Content,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,i)]})})})}return d}(),y=function(u,s){var N=(0,o.useLocalState)(s,"contentsModal",null),g=N[0],v=N[1],h=(0,o.useLocalState)(s,"contentsModalTitle",null),C=h[0],b=h[1];if(g!==null&&C!==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,[C,(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),b(null)}return B}()})})]})},p=function(u,s){var N=(0,o.useBackend)(s),g=N.act,v=N.data,h=v.is_public,C=v.timeleft,b=v.moving,B=v.at_station,L,w;return!b&&!B?(L="Docked off-station",w="Call Shuttle"):!b&&B?(L="Docked at the station",w="Return Shuttle"):b&&(w="In Transit...",C!==1?L="Shuttle is en route (ETA: "+C+" minutes)":L="Shuttle is en route (ETA: "+C+" 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:L}),h===0&&(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,f.Button,{content:w,disabled:b,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 N,g=(0,o.useBackend)(s),v=g.act,h=g.data,C=h.accounts,b=(0,o.useLocalState)(s,"selectedAccount"),B=b[0],L=b[1],w=[];return C.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:C.map(function(T){return T.name}),selected:(N=C.filter(function(T){return T.account_UID===B})[0])==null?void 0:N.name,onSelected:function(){function T(A){return L(w[A])}return T}()}),C.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 N=(0,o.useBackend)(s),g=N.act,v=N.data,h=v.categories,C=v.supply_packs,b=(0,o.useSharedState)(s,"category","Emergency"),B=b[0],L=b[1],w=(0,o.useSharedState)(s,"search_text",""),T=w[0],A=w[1],x=(0,o.useLocalState)(s,"contentsModal",null),E=x[0],M=x[1],R=(0,o.useLocalState)(s,"contentsModalTitle",null),O=R[0],D=R[1],j=(0,k.createSearch)(T,function(z){return z.name}),U=(0,o.useLocalState)(s,"selectedAccount"),W=U[0],K=U[1],G=(0,a.flow)([(0,t.filter)(function(z){return z.cat===h.filter(function(Y){return Y.name===B})[0].category||T}),T&&(0,t.filter)(j),(0,t.sortBy)(function(z){return z.name.toLowerCase()})])(C),$="Crate Catalogue";return T?$="Results for '"+T+"':":B&&($="Browsing "+B),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Section,{title:$,buttons:(0,e.createComponentVNode)(2,f.Dropdown,{width:"190px",options:h.map(function(z){return z.name}),selected:B,onSelected:function(){function z(Y){return L(Y)}return z}()}),children:[(0,e.createComponentVNode)(2,f.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function z(Y,J){return A(J)}return z}(),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:G.map(function(z){return(0,e.createComponentVNode)(2,f.Table.Row,{children:[(0,e.createComponentVNode)(2,f.Table.Cell,{bold:!0,children:[z.name," (",z.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:!W,onClick:function(){function Y(){return g("order",{crate:z.ref,multiple:!1,account:W})}return Y}()}),(0,e.createComponentVNode)(2,f.Button,{content:"Order Multiple",icon:"cart-plus",disabled:!W,onClick:function(){function Y(){return g("order",{crate:z.ref,multiple:!0,account:W})}return Y}()}),(0,e.createComponentVNode)(2,f.Button,{content:"View Contents",icon:"search",onClick:function(){function Y(){M(z.contents),D(z.name)}return Y}()})]})]},z.name)})})})]})})},m=function(u,s){var N=u.request,g,v;switch(N.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:"}),!!N.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"})}),!!N.req_head_approval&&(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button,{color:g,content:v,disabled:N.req_cargo_approval,icon:"user-tie",tooltip:N.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 N=(0,o.useBackend)(s),g=N.act,v=N.data,h=v.requests,C=v.orders,b=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:h.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 L(){return g("approve",{ordernum:B.ordernum})}return L}()}),(0,e.createComponentVNode)(2,f.Button,{content:"Deny",color:"red",disabled:!B.can_deny,onClick:function(){function L(){return g("deny",{ordernum:B.ordernum})}return L}()})]})]},B.ordernum)})}),(0,e.createComponentVNode)(2,f.Box,{bold:!0,children:"Orders Awaiting Delivery"}),(0,e.createComponentVNode)(2,f.Table,{m:"0.5rem",children:C.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:b.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(I,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 V(k,S){var y=(0,a.useBackend)(S),p=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"})},N=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 p("open_pr",{pr_number:g.num})}return v}()}),children:g.entries.map(function(v){return(0,e.createComponentVNode)(2,t.Box,{m:1,children:[N(v.etype)," ",v.etext]},v)})},g)})})})})}return V}()},56975:function(I,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),V=[1,5,10,20,30,50],k=[1,5,10],S=r.ChemDispenser=function(){function c(m,i){var d=(0,a.useBackend)(i),u=d.act,s=d.data,N=s.chemicals;return(0,e.createComponentVNode)(2,f.Window,{width:400,height:400+N.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,p),(0,e.createComponentVNode)(2,l)]})})})}return c}(),y=function(m,i){var d=(0,a.useBackend)(i),u=d.act,s=d.data,N=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:V.map(function(h,C){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"15%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"cog",selected:N===h,content:h,onClick:function(){function b(){return u("amount",{amount:h})}return b}()})},C)})})})]})})})},p=function(m,i){for(var d=(0,a.useBackend)(i),u=d.act,s=d.data,N=s.chemicals,g=N===void 0?[]:N,v=[],h=0;h<(g.length+1)%3;h++)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(C,b){return(0,e.createComponentVNode)(2,t.Button,{m:.1,width:"32.5%",icon:"arrow-circle-down",overflow:"hidden",textOverflow:"ellipsis",content:C.title,style:{"margin-left":"2px"},onClick:function(){function B(){return u("dispense",{reagent:C.id})}return B}()},b)}),v.map(function(C,b){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%"},b)})]})})},l=function(m,i){var d=(0,a.useBackend)(i),u=d.act,s=d.data,N=s.isBeakerLoaded,g=s.beakerCurrentVolume,v=s.beakerMaxVolume,h=s.beakerContents,C=h===void 0?[]:h;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:[!!N&&(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:!N,onClick:function(){function b(){return u("ejectBeaker")}return b}()})]}),children:(0,e.createComponentVNode)(2,o.BeakerContents,{beakerLoaded:N,beakerContents:C,buttons:function(){function b(B){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Isolate",icon:"compress-arrows-alt",onClick:function(){function L(){return u("remove",{reagent:B.id,amount:-1})}return L}()}),k.map(function(L,w){return(0,e.createComponentVNode)(2,t.Button,{content:L,onClick:function(){function T(){return u("remove",{reagent:B.id,amount:L})}return T}()},w)}),(0,e.createComponentVNode)(2,t.Button,{content:"ALL",onClick:function(){function L(){return u("remove",{reagent:B.id,amount:B.volume})}return L}()})],0)}return b}()})})})}},48734:function(I,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),V=n(84947),k=r.ChemHeater=function(){function p(l,c){return(0,e.createComponentVNode)(2,V.Window,{width:350,height:275,children:(0,e.createComponentVNode)(2,V.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 p}(),S=function(l,c){var m=(0,t.useBackend)(c),i=m.act,d=m.data,u=d.targetTemp,s=d.targetTempReached,N=d.autoEject,g=d.isActive,v=d.currentTemp,h=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:N?"toggle-on":"toggle-off",selected:N,onClick:function(){function C(){return i("toggle_autoeject")}return C}()}),(0,e.createComponentVNode)(2,o.Button,{content:g?"On":"Off",icon:"power-off",selected:g,disabled:!h,onClick:function(){function C(){return i("toggle_on")}return C}()})],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 C(b,B){return i("adjust_temperature",{target:B})}return C}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Reading",color:s?"good":"average",children:h&&(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:v,format:function(){function C(b){return(0,a.toFixed)(b)+" K"}return C}()})||"\u2014"})]})})})},y=function(l,c){var m=(0,t.useBackend)(c),i=m.act,d=m.data,u=d.isBeakerLoaded,s=d.beakerCurrentVolume,N=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," / ",N," 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(I,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),V=n(22677),k=n(66586),S=n(50175),y=["icon"];function p(x,E){if(x==null)return{};var M={},R=Object.keys(x),O,D;for(D=0;D=0)&&(M[O]=x[O]);return M}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 M(R,O){return R.__proto__=O,R}return M}(),c(x,E)}var m=(0,S.createLogger)("ChemMaster"),i=[1,5,10],d=function(E,M){var R=(0,a.useBackend)(M),O=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 U(){return O("print",{idx:j.idx,beaker:E.args.beaker})}return U}()})]})})})})},u=r.ChemMaster=function(){function x(E,M){var R=(0,a.useBackend)(M),O=R.data,D=O.condi,j=O.beaker,U=O.beaker_reagents,W=U===void 0?[]:U,K=O.buffer_reagents,G=K===void 0?[]:K,$=O.mode;return(0,e.createComponentVNode)(2,o.Window,{width:575,height:650,children:[(0,e.createComponentVNode)(2,V.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:W,bufferNonEmpty:G.length>0}),(0,e.createComponentVNode)(2,N,{mode:$,bufferReagents:G}),(0,e.createComponentVNode)(2,g,{isCondiment:D,bufferNonEmpty:G.length>0}),(0,e.createComponentVNode)(2,A)]})})]})}return x}(),s=function(E,M){var R=(0,a.useBackend)(M),O=R.act,D=E.beaker,j=E.beakerReagents,U=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:U?(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"eject",disabled:!D,content:"Eject and Clear Buffer",onClick:function(){function W(){return O("eject")}return W}()}):(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!D,content:"Eject and Clear Buffer",onClick:function(){function W(){return O("eject")}return W}()}),children:D?(0,e.createComponentVNode)(2,f.BeakerContents,{beakerLoaded:!0,beakerContents:j,buttons:function(){function W(K,G){return(0,e.createComponentVNode)(2,t.Box,{mb:G0?(0,e.createComponentVNode)(2,f.BeakerContents,{beakerLoaded:!0,beakerContents:U,buttons:function(){function W(K,G){return(0,e.createComponentVNode)(2,t.Box,{mb:G1?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{color:f.COLORS.damageType.oxy,inline:!0,children:x[0]}),(0,e.createTextVNode)("\xA0|\xA0"),(0,e.createComponentVNode)(2,o.Box,{color:f.COLORS.damageType.toxin,inline:!0,children:x[2]}),(0,e.createTextVNode)("\xA0|\xA0"),(0,e.createComponentVNode)(2,o.Box,{color:f.COLORS.damageType.brute,inline:!0,children:x[3]}),(0,e.createTextVNode)("\xA0|\xA0"),(0,e.createComponentVNode)(2,o.Box,{color:f.COLORS.damageType.burn,inline:!0,children:x[1]})],4):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Unknown"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"UI",className:"LabeledList__breakContents",children:T}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"SE",className:"LabeledList__breakContents",children:A}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,o.Button,{disabled:!C.podready,icon:"user-plus",content:"Clone",onClick:function(){function E(){return h("clone",{ref:B})}return E}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"trash",content:"Delete",onClick:function(){function E(){return h("del_rec")}return E}()})]})]})})},p=r.CloningConsole=function(){function s(N,g){var v=(0,t.useBackend)(g),h=v.act,C=v.data,b=C.menu;return(0,V.modalRegisterBodyOverride)("view_rec",y),(0,e.createComponentVNode)(2,k.Window,{width:535,height:440,children:[(0,e.createComponentVNode)(2,V.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),(0,e.createComponentVNode)(2,k.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,d),(0,e.createComponentVNode)(2,u),(0,e.createComponentVNode)(2,l),(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,c)})})]})})]})}return s}(),l=function(N,g){var v=(0,t.useBackend)(g),h=v.act,C=v.data,b=C.menu;return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:b===1,icon:"home",onClick:function(){function B(){return h("menu",{num:1})}return B}(),children:"Main"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:b===2,icon:"folder",onClick:function(){function B(){return h("menu",{num:2})}return B}(),children:"Records"})]})})},c=function(N,g){var v=(0,t.useBackend)(g),h=v.data,C=h.menu,b;return C===1?b=(0,e.createComponentVNode)(2,m):C===2&&(b=(0,e.createComponentVNode)(2,i)),b},m=function(N,g){var v=(0,t.useBackend)(g),h=v.act,C=v.data,b=C.loading,B=C.scantemp,L=C.occupant,w=C.locked,T=C.can_brainscan,A=C.scan_mode,x=C.numberofpods,E=C.pods,M=C.selected_pod,R=w&&!!L;return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Section,{title:"Scanner",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"label",children:"Scanner Lock:\xA0"}),(0,e.createComponentVNode)(2,o.Button,{disabled:!L,selected:R,icon:R?"toggle-on":"toggle-off",content:R?"Engaged":"Disengaged",onClick:function(){function O(){return h("lock")}return O}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:R||!L,icon:"user-slash",content:"Eject Occupant",onClick:function(){function O(){return h("eject")}return O}()})],4),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",children:b?(0,e.createComponentVNode)(2,o.Box,{color:"average",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"spinner",spin:!0}),"\xA0 Scanning..."]}):(0,e.createComponentVNode)(2,o.Box,{color:B.color,children:B.text})}),!!T&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Scan Mode",children:(0,e.createComponentVNode)(2,o.Button,{icon:A?"brain":"male",content:A?"Brain":"Body",onClick:function(){function O(){return h("toggle_mode")}return O}()})})]}),(0,e.createComponentVNode)(2,o.Button,{disabled:!L||b,icon:"user",content:"Scan Occupant",mt:"0.5rem",mb:"0",onClick:function(){function O(){return h("scan")}return O}()})]}),(0,e.createComponentVNode)(2,o.Section,{title:"Pods",children:x?E.map(function(O,D){var j;return O.status==="cloning"?j=(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:"100",value:O.progress/100,ranges:{good:[.75,1/0],average:[.25,.75],bad:[-1/0,.25]},mt:"0.5rem",children:(0,e.createComponentVNode)(2,o.Box,{textAlign:"center",children:(0,a.round)(O.progress,0)+"%"})}):O.status==="mess"?j=(0,e.createComponentVNode)(2,o.Box,{bold:!0,color:"bad",mt:"0.5rem",children:"ERROR"}):j=(0,e.createComponentVNode)(2,o.Button,{selected:M===O.pod,icon:M===O.pod&&"check",content:"Select",mt:"0.5rem",onClick:function(){function U(){return h("selectpod",{ref:O.pod})}return U}()}),(0,e.createComponentVNode)(2,o.Box,{width:"64px",textAlign:"center",inline:!0,mr:"0.5rem",mt:1,children:[(0,e.createVNode)(1,"img",null,null,1,{src:(0,S.resolveAsset)("pod_"+O.status+".gif"),style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.createComponentVNode)(2,o.Box,{color:"label",children:["Pod #",D+1]}),(0,e.createComponentVNode)(2,o.Box,{bold:!0,mt:.75,color:O.biomass>=150?"good":"bad",inline:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:O.biomass>=150?"circle":"circle-o"}),"\xA0",O.biomass]}),j]},D)}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"No pods detected. Unable to clone."})})],4)},i=function(N,g){var v=(0,t.useBackend)(g),h=v.act,C=v.data,b=C.records;return b.length?(0,e.createComponentVNode)(2,o.Box,{mt:"0.5rem",children:b.map(function(B,L){return(0,e.createComponentVNode)(2,o.Button,{icon:"user",mb:"0.5rem",content:B.realname,onClick:function(){function w(){return h("view_rec",{ref:B.record})}return w}()},L)})}):(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No records found."]})})},d=function(N,g){var v,h=(0,t.useBackend)(g),C=h.act,b=h.data,B=b.temp;if(!(!B||!B.text||B.text.length<=0)){var L=(v={},v[B.style]=!0,v);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.NoticeBox,Object.assign({},L,{children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,verticalAlign:"middle",children:B.text}),(0,e.createComponentVNode)(2,o.Button,{icon:"times-circle",float:"right",onClick:function(){function w(){return C("cleartemp")}return w}()}),(0,e.createComponentVNode)(2,o.Box,{clear:"both"})]})))}},u=function(N,g){var v=(0,t.useBackend)(g),h=v.act,C=v.data,b=C.scanner,B=C.numberofpods,L=C.autoallowed,w=C.autoprocess,T=C.disk;return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Status",buttons:(0,e.createFragment)(!!L&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"label",children:"Auto-processing:\xA0"}),(0,e.createComponentVNode)(2,o.Button,{selected:w,icon:w?"toggle-on":"toggle-off",content:w?"Enabled":"Disabled",onClick:function(){function A(){return h("autoprocess",{on:w?0:1})}return A}()})],4),0),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Scanner",children:b?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"Connected"}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Not connected!"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pods",children:B?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:[B," connected"]}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"None connected!"})})]})})})}},14283:function(I,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 V(k,S){var y=(0,a.useBackend)(S),p=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:350,height:170,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Modify Matrix",children:m.map(function(i){return(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:i.map(function(d){return(0,e.createFragment)([d.name,(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,t.NumberInput,{value:c[d.idx],step:.05,minValue:-5,maxValue:5,onDrag:function(){function u(s,N){return p("setvalue",{idx:d.idx+1,value:N})}return u}()})],0,d.name)})},i)})})})})}return V}()},98577:function(I,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."}},V=r.CommunicationsComputer=function(){function d(u,s){var N=(0,a.useBackend)(s),g=N.act,v=N.data,h=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,k),f(h)]})})})}return d}(),k=function(u,s){var N=(0,a.useBackend)(s),g=N.act,v=N.data,h=v.authenticated,C=v.noauthbutton,b=v.esc_section,B=v.esc_callable,L=v.esc_recallable,w=v.esc_status,T=v.authhead,A=v.is_ai,x=v.lastCallLoc,E=!1,M;return h?h===1?M="Command":h===2?M="Captain":h===3?M="CentComm Officer":h===4?(M="CentComm Secure Connection",E=!0):M="ERROR: Report This Bug!":M="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:M})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{icon:h?"sign-out-alt":"id-card",selected:h,disabled:C,content:h?"Log Out ("+M+")":"Log In",onClick:function(){function R(){return g("auth")}return R}()})})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:!!b&&(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}()})}),!!L&&(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 N=(0,a.useBackend)(s),g=N.act,v=N.data,h=v.is_admin;return h?(0,e.createComponentVNode)(2,y):(0,e.createComponentVNode)(2,p)},y=function(u,s){var N=(0,a.useBackend)(s),g=N.act,v=N.data,h=v.is_admin,C=v.gamma_armory_location,b=v.admin_levels,B=v.authenticated,L=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:b,required_access:h,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:!h,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:!h,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:!h,onClick:function(){function w(){return g("dispatch_ert")}return w}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:L,content:L?"ERT calling enabled":"ERT calling disabled",tooltip:L?"Command can request an ERT":"ERTs cannot be requested",disabled:!h,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:!h,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:C?"Send Gamma Armory":"Recall Gamma Armory",disabled:!h,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:!h,onClick:function(){function w(){return g("view_econ")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fax",content:"Fax Manager",disabled:!h,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,p)})]})},p=function(u,s){var N=(0,a.useBackend)(s),g=N.act,v=N.data,h=v.msg_cooldown,C=v.emagged,b=v.cc_cooldown,B=v.security_level_color,L=v.str_security_level,w=v.levels,T=v.authcapt,A=v.authhead,x=v.messages,E="Make Priority Announcement";h>0&&(E+=" ("+h+"s)");var M=C?"Message [UNKNOWN]":"Message CentComm",R="Request Authentication Codes";return b>0&&(M+=" ("+b+"s)",R+=" ("+b+"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:L}),(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||h>0,onClick:function(){function O(){return g("announce")}return O}()})}),!!C&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transmit",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",color:"red",content:M,disabled:!T||b>0,onClick:function(){function O(){return g("MessageSyndicate")}return O}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync-alt",content:"Reset Relays",disabled:!T,onClick:function(){function O(){return g("RestoreBackup")}return O}()})]})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transmit",children:(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",content:M,disabled:!T||b>0,onClick:function(){function O(){return g("MessageCentcomm")}return O}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nuclear Device",children:(0,e.createComponentVNode)(2,t.Button,{icon:"bomb",content:R,disabled:!T||b>0,onClick:function(){function O(){return g("nukerequest")}return O}()})})]})})}),(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 O(){return g("status")}return O}()})}),(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 O(){return g("messagelist")}return O}()})}),(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 O(){return g("RestartNanoMob")}return O}()})})]})})})],4)},l=function(u,s){var N=(0,a.useBackend)(s),g=N.act,v=N.data,h=v.stat_display,C=v.authhead,b=v.current_message_title,B=h.presets.map(function(w){return(0,e.createComponentVNode)(2,t.Button,{content:w.label,selected:w.name===h.type,disabled:!C,onClick:function(){function T(){return g("setstat",{statdisp:w.name})}return T}()},w.name)}),L=h.alerts.map(function(w){return(0,e.createComponentVNode)(2,t.Button,{content:w.label,selected:w.alert===h.icon,disabled:!C,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:L}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message Line 1",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:h.line_1,disabled:!C,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:h.line_2,disabled:!C,onClick:function(){function w(){return g("setmsg2")}return w}()})})]})})})},c=function(u,s){var N=(0,a.useBackend)(s),g=N.act,v=N.data,h=v.authhead,C=v.current_message_title,b=v.current_message,B=v.messages,L=v.security_level,w;if(C)w=(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:C,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Return To Message List",disabled:!h,onClick:function(){function A(){return g("messagelist")}return A}()}),children:(0,e.createComponentVNode)(2,t.Box,{children:b})})});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:!h||C===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:!h,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 N=(0,a.useBackend)(s),g=N.act,v=N.data,h=u.levels,C=u.required_access,b=u.use_confirm,B=v.security_level;return b?h.map(function(L){return(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:L.icon,content:L.name,disabled:!C||L.id===B,tooltip:L.tooltip,onClick:function(){function w(){return g("newalertlevel",{level:L.id})}return w}()},L.name)}):h.map(function(L){return(0,e.createComponentVNode)(2,t.Button,{icon:L.icon,content:L.name,disabled:!C||L.id===B,tooltip:L.tooltip,onClick:function(){function w(){return g("newalertlevel",{level:L.id})}return w}()},L.name)})},i=function(u,s){var N=(0,a.useBackend)(s),g=N.act,v=N.data,h=v.is_admin,C=v.possible_cc_sounds;if(!h)return g("main");var b=(0,a.useLocalState)(s,"subtitle",""),B=b[0],L=b[1],w=(0,a.useLocalState)(s,"text",""),T=w[0],A=w[1],x=(0,a.useLocalState)(s,"classified",0),E=x[0],M=x[1],R=(0,a.useLocalState)(s,"beepsound","Beep"),O=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(U,W){return L(W)}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(U,W){return A(W)}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:O})}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:C,selected:O,onSelected:function(){function j(U){return D(U)}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:O})}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 M(!E)}return j}()})})]})]})})}},70611:function(I,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 V(k,S){var y=(0,a.useBackend)(S),p=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],N=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,h){return N(h)}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 p("create",{amount:s})}return g}()})})})]})})})}return V}()},73744:function(I,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),V=n(84947);function k(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 h(C,b){return C.__proto__=b,C}return h}(),S(g,v)}var y={1:["ACTIVE","good"],2:["COMPLETED","good"],3:["FAILED","bad"]},p=["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,h){var C=(0,t.useBackend)(h),b=C.act,B=C.data,L;B.unauthorized?L=(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?L=(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):L=(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:p,finishedTimeout:3e3,onFinished:function(){function x(){return b("complete_load_animation")}return x}()})});var w=(0,t.useLocalState)(h,"viewingPhoto",""),T=w[0],A=w[1];return(0,e.createComponentVNode)(2,V.Window,{theme:"syndicate",width:500,height:600,children:[T&&(0,e.createComponentVNode)(2,N),(0,e.createComponentVNode)(2,V.Window.Content,{className:"Contractor",children:(0,e.createComponentVNode)(2,o.Flex,{direction:"column",height:"100%",children:L})})]})}return g}(),c=function(v,h){var C=(0,t.useBackend)(h),b=C.act,B=C.data,L=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:[L," TC"]}),(0,e.createComponentVNode)(2,o.Button,{disabled:L<=0,content:"Claim",mx:"0.75rem",mb:"0",flexBasis:"content",onClick:function(){function x(){return b("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,h){var C=(0,t.useBackend)(h),b=C.act,B=C.data,L=B.page;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Tabs,Object.assign({},v,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:L===1,onClick:function(){function w(){return b("page",{page:1})}return w}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"suitcase"}),"Contracts"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:L===2,onClick:function(){function w(){return b("page",{page:2})}return w}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"shopping-cart"}),"Hub"]})]})))},i=function(v,h){var C=(0,t.useBackend)(h),b=C.act,B=C.data,L=B.contracts,w=B.contract_active,T=B.can_extract,A=!!w&&L.filter(function(O){return O.status===1})[0],x=A&&A.time_left>0,E=(0,t.useLocalState)(h,"viewingPhoto",""),M=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 O(D,j){return" ("+j.substr(3)+")"}return O}()})],onClick:function(){function O(){return b("extract")}return O}()})},v,{children:L.slice().sort(function(O,D){return O.status===1?-1:D.status===1?1:O.status-D.status}).map(function(O){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:O.status===1&&"good",children:O.target_name}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",children:O.has_photo&&(0,e.createComponentVNode)(2,o.Button,{icon:"camera",mb:"-0.5rem",ml:"0.5rem",onClick:function(){function j(){return R("target_photo_"+O.uid+".png")}return j}()})})]}),className:"Contractor__Contract",buttons:(0,e.createComponentVNode)(2,o.Box,{width:"100%",children:[!!y[O.status]&&(0,e.createComponentVNode)(2,o.Box,{color:y[O.status][1],inline:!0,mt:O.status!==1&&"0.125rem",mr:"0.25rem",lineHeight:"20px",children:y[O.status][0]}),O.status===1&&(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"ban",color:"bad",content:"Abort",ml:"0.5rem",onClick:function(){function j(){return b("abort")}return j}()})]}),children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"2",mr:"0.5rem",children:[O.fluff_message,!!O.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 ",O.completed_time]}),!!O.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."]}),!!O.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: ",O.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(O)]}),(D=O.difficulties)==null?void 0:D.map(function(j,U){return(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!!w,content:j.name+" ("+j.reward+" TC)",onClick:function(){function W(){return b("activate",{uid:O.uid,difficulty:U+1})}return W}()},U)}),!!O.objective&&(0,e.createComponentVNode)(2,o.Box,{color:"white",bold:!0,children:[O.objective.extraction_name,(0,e.createVNode)(1,"br"),"(",(O.objective.rewards.tc||0)+" TC",",\xA0",(O.objective.rewards.credits||0)+" Credits",")"]})]})]})},O.uid)})})))},d=function(v){if(!(!v.objective||v.status>1)){var h=v.objective.locs.user_area_id,C=v.objective.locs.user_coords,b=v.objective.locs.target_area_id,B=v.objective.locs.target_coords,L=h===b;return(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Icon,{name:L?"dot-circle-o":"arrow-alt-circle-right-o",color:L?"green":"yellow",rotation:L?null:-(0,a.rad2deg)(Math.atan2(B[1]-C[1],B[0]-C[0])),lineHeight:L?null:"0.85",size:"1.5"})})}},u=function(v,h){var C=(0,t.useBackend)(h),b=C.act,B=C.data,L=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:L-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){k(v,g);function v(C){var b;return b=g.call(this,C)||this,b.timer=null,b.state={currentIndex:0,currentDisplay:[]},b}var h=v.prototype;return h.tick=function(){function C(){var b=this.props,B=this.state;if(B.currentIndex<=b.allMessages.length){this.setState(function(w){return{currentIndex:w.currentIndex+1}});var L=B.currentDisplay;L.push(b.allMessages[B.currentIndex])}else clearTimeout(this.timer),setTimeout(b.onFinished,b.finishedTimeout)}return C}(),h.componentDidMount=function(){function C(){var b=this,B=this.props.linesPerSecond,L=B===void 0?2.5:B;this.timer=setInterval(function(){return b.tick()},1e3/L)}return C}(),h.componentWillUnmount=function(){function C(){clearTimeout(this.timer)}return C}(),h.render=function(){function C(){return(0,e.createComponentVNode)(2,o.Box,{m:1,children:this.state.currentDisplay.map(function(b){return(0,e.createFragment)([b,(0,e.createVNode)(1,"br")],0,b)})})}return C}(),v}(e.Component),N=function(v,h){var C=(0,t.useLocalState)(h,"viewingPhoto",""),b=C[0],B=C[1];return(0,e.createComponentVNode)(2,o.Modal,{className:"Contractor__photoZoom",children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",src:b}),(0,e.createComponentVNode)(2,o.Button,{icon:"times",content:"Close",color:"grey",mt:"1rem",onClick:function(){function L(){return B("")}return L}()})]})}},57392:function(I,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 V(k,S){var y=(0,a.useBackend)(S),p=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 p("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 p("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 p("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 p("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 p("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 p("slowFactor",{value:c+5})}return d}()})," "]})]})})]})})})})}return V}()},91413:function(I,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),V=n(99753),k=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"},p=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),N=s.act,g=s.data,v=(0,o.useLocalState)(u,"tabIndex",0),h=v[0],C=v[1],b=function(){function B(L){switch(L){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:h===0,onClick:function(){function B(){return C(0)}return B}(),children:"Data View"},"DataView"),(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"map-marked-alt",selected:h===1,onClick:function(){function B(){return C(1)}return B}(),children:"Map View"},"MapView")]})}),b(h)]})})})}return i}(),c=function(d,u){var s=(0,o.useBackend)(u),N=s.act,g=s.data,v=(0,a.sortBy)(function(A){return A.name})(g.crewmembers||[]),h=g.possible_levels,C=g.viewing_current_z_level,b=g.is_advanced,B=(0,o.useLocalState)(u,"search",""),L=B[0],w=B[1],T=(0,t.createSearch)(L,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:b?(0,e.createComponentVNode)(2,f.Dropdown,{mr:"5px",width:"50px",options:h,selected:C,onSelected:function(){function A(x){return N("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,V.TableCell,{children:[A.name," (",A.assignment,")"]}),(0,e.createComponentVNode)(2,V.TableCell,{children:[(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:p(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:k.COLORS.damageType.oxy,children:A.oxy}),"|",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:k.COLORS.damageType.toxin,children:A.tox}),"|",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:k.COLORS.damageType.burn,children:A.fire}),"|",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:k.COLORS.damageType.brute,children:A.brute}),")"]}):null]}),(0,e.createComponentVNode)(2,V.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 N("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),N=s.data,g=(0,o.useLocalState)(u,"zoom",1),v=g[0],h=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 C(b){return h(b)}return C}(),children:N.crewmembers.filter(function(C){return C.sensor_type===3}).map(function(C){return(0,e.createComponentVNode)(2,f.NanoMap.Marker,{x:C.x,y:C.y,zoom:v,icon:"circle",tooltip:C.name+" ("+C.assignment+")",color:p(C,N.critThreshold)},C.ref)})})})}},55104:function(I,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"}],V=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],k=r.Cryo=function(){function p(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 p}(),S=function(l,c){var m=(0,a.useBackend)(c),i=m.act,d=m.data,u=d.isOperating,s=d.hasOccupant,N=d.occupant,g=N===void 0?[]:N,v=d.cellTemperature,h=d.cellTemperatureStatus,C=d.isBeakerLoaded,b=d.cooldownProgress,B=d.auto_eject_healthy,L=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:V[g.stat][0],children:V[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:!C,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:h,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:!C&&"average",value:b,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:L?"toggle-on":"toggle-off",selected:L,onClick:function(){function w(){return i(L?"auto_eject_dead_off":"auto_eject_dead_on")}return w}(),children:L?"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,N=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:!N&&"bad",ml:1,children:N?(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:N,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(I,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),V=r.CryopodConsole=function(){function y(p,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,k),!!d&&(0,e.createComponentVNode)(2,S)]})})}return y}(),k=function(p,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(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.frozen_items,u=function(N){var g=N.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 N(){return m("one_item",{item:s.uid})}return N}()})},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(I,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),V=[["good","Alive"],["average","Critical"],["bad","DEAD"]],k=[["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 h(C,b){var B=(0,a.useBackend)(b),L=B.act,w=B.data,T=w.irradiating,A=w.dnaBlockSize,x=w.occupant;b.dnaBlockSize=A,b.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,p)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,l)})]})})]})}return h}(),p=function(C,b){var B=(0,a.useBackend)(b),L=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 L("toggleLock")}return E}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!A||T,icon:"user-slash",content:"Eject",onClick:function(){function E(){return L("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:V[x.stat][0],children:V[x.stat][1]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider)]})}),b.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(C,b){var B=(0,a.useBackend)(b),L=B.act,w=B.data,T=w.selectedMenuKey,A=w.hasOccupant,x=w.occupant;if(A){if(b.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,N)),(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:k.map(function(M,R){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:M[2],selected:T===M[0],onClick:function(){function O(){return L("selectMenuKey",{key:M[0]})}return O}(),children:M[1]},R)})}),E]})},c=function(C,b){var B=(0,a.useBackend)(b),L=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:b.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 M(R){return R.toString(16).toUpperCase()}return M}(),ml:"0",onChange:function(){function M(R,O){return L("changeUITarget",{value:O})}return M}()})})}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Irradiate Block",mt:"0.5rem",onClick:function(){function M(){return L("pulseUIRadiation")}return M}()})]})},m=function(C,b){var B=(0,a.useBackend)(b),L=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:b.dnaBlockSize,action:"selectSEBlock"}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Irradiate Block",onClick:function(){function E(){return L("pulseSERadiation")}return E}()})]})},i=function(C,b){var B=(0,a.useBackend)(b),L=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,M){return L("radiationIntensity",{value:M})}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,M){return L("radiationDuration",{value:M})}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 L("pulseRadiation")}return x}()})]})},d=function(C,b){var B=(0,a.useBackend)(b),L=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(C,b){var B=(0,a.useBackend)(b),L=B.act,w=B.data,T=C.id,A=C.name,x=C.buffer,E=w.isInjectorReady,M=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:M,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 L("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 L("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 L("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 L("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 L("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 L("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 L("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 L("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 L("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 L("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(C,b){var B=(0,a.useBackend)(b),L=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 L("wipeDisk")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!T,icon:"eject",content:"Eject",onClick:function(){function x(){return L("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."]})})},N=function(C,b){var B=(0,a.useBackend)(b),L=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 L("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,M){return(0,e.createComponentVNode)(2,t.Button,{disabled:E>A,icon:"syringe",content:E,onClick:function(){function R(){return L("injectRejuvenators",{amount:E})}return R}()},M)}),(0,e.createComponentVNode)(2,t.Button,{disabled:A<=0,icon:"syringe",content:"All",onClick:function(){function E(){return L("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(C,b){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 "),C.duration,(0,e.createTextVNode)(" second"),C.duration===1?"":"s"],0)})]})},v=function(C,b){for(var B=(0,a.useBackend)(b),L=B.act,w=B.data,T=C.dnaString,A=C.selectedBlock,x=C.selectedSubblock,E=C.blockSize,M=C.action,R=T.split(""),O=0,D=[],j=function(){for(var K=U/E+1,G=[],$=function(){var J=z+1;G.push((0,e.createComponentVNode)(2,t.Button,{selected:A===K&&x===J,content:R[U+z],mb:"0",onClick:function(){function ie(){return L(M,{block:K,subblock:J})}return ie}()}))},z=0;zs.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 C(){return u("dispatch_ert",{silent:v})}return C}()})})]})})})},p=function(m,i){var d=(0,a.useBackend)(i),u=d.act,s=d.data,N=s.ert_request_messages;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:N&&N.length?N.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,N=(0,a.useLocalState)(i,"text",""),g=N[0],v=N[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 h(C,b){return v(b)}return h}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Deny ERT",fluid:!0,icon:"times",center:!0,mt:2,textAlign:"center",onClick:function(){function h(){return u("deny_ert",{reason:g})}return h}()})]})})}},77877:function(I,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),V=r.EconomyManager=function(){function S(y,p){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,k)})]})}return S}(),k=function(y,p){var l=(0,a.useBackend)(p),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(I,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),V=r.Electropack=function(){function k(S,y){var p=(0,t.useBackend)(y),l=p.act,c=p.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 N(){return l("power")}return N}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Reset",onClick:function(){function N(){return l("reset",{reset:"freq"})}return N}()}),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 N(g){return(0,a.toFixed)(g,1)}return N}(),width:"80px",onChange:function(){function N(g,v){return l("freq",{freq:v})}return N}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Reset",onClick:function(){function N(){return l("reset",{reset:"code"})}return N}()}),children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:i,width:"80px",onChange:function(){function N(g,v){return l("code",{code:v})}return N}()})})]})})})})}return k}()},52640:function(I,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),V=n(90955),k=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,p)]})})})}return l}(),y=function(c,m){var i=(0,t.useBackend)(m),d=i.act,u=i.data,s=u.evo_points,N=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:!N,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"})]})]})})})},p=function(c,m){var i=(0,t.useBackend)(m),d=i.act,u=i.data,s=u.evo_points,N=u.ability_tabs,g=u.purchased_abilities,v=u.view_mode,h=(0,t.useLocalState)(m,"selectedTab",N[0]),C=h[0],b=h[1],B=(0,t.useLocalState)(m,"searchText",""),L=B[0],w=B[1],T=(0,t.useLocalState)(m,"ability_tabs",N[0].abilities),A=T[0],x=T[1],E=function(D,j){if(j===void 0&&(j=""),!D||D.length===0)return[];var U=(0,a.createSearch)(j,function(W){return W.name+"|"+W.description});return(0,V.flow)([(0,k.filter)(function(W){return W==null?void 0:W.name}),(0,k.filter)(U),(0,k.sortBy)(function(W){return W==null?void 0:W.name})])(D)},M=function(D){if(w(D),D==="")return x(C.abilities);x(E(N.map(function(j){return j.abilities}).flat(),D))},R=function(D){b(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 O(D,j){M(j)}return O}(),value:L}),(0,e.createComponentVNode)(2,o.Button,{icon:v?"square-o":"check-square-o",selected:!v,content:"Compact",onClick:function(){function O(){return d("set_view_mode",{mode:0})}return O}()}),(0,e.createComponentVNode)(2,o.Button,{icon:v?"check-square-o":"square-o",selected:v,content:"Expanded",onClick:function(){function O(){return d("set_view_mode",{mode:1})}return O}()})],4),children:[(0,e.createComponentVNode)(2,o.Tabs,{children:N.map(function(O){return(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:L===""&&C===O,onClick:function(){function D(){R(O)}return D}(),children:O.category},O)})}),A.map(function(O,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:O.name}),g.includes(O.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:O.cost})]}),(0,e.createComponentVNode)(2,o.Stack.Item,{textAlign:"right",children:(0,e.createComponentVNode)(2,o.Button,{mr:.5,disabled:O.cost>s||g.includes(O.power_path),content:"Evolve",onClick:function(){function j(){return d("purchase",{power_path:O.power_path})}return j}()})})]}),!!v&&(0,e.createComponentVNode)(2,o.Stack,{color:"#8a8a8a",my:1,ml:1.5,width:"95%",children:O.description+" "+O.helptext})]},D)})]})})}},70672:function(I,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),V=n(73712),k=n(84947),S=["id","amount","lineDisplay","onClick"];function y(g,v){if(g==null)return{};var h={},C=Object.keys(g),b,B;for(B=0;B=0)&&(h[b]=g[b]);return h}var p=2e3,l={bananium:"clown",tranquillite:"mime"},c=r.ExosuitFabricator=function(){function g(v,h){var C=(0,o.useBackend)(h),b=C.act,B=C.data,L=B.building;return(0,e.createComponentVNode)(2,k.Window,{width:950,height:625,children:(0,e.createComponentVNode)(2,k.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)}),L&&(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,h){var C=(0,o.useBackend)(h),b=C.act,B=C.data,L=B.materials,w=B.capacity,T=Object.values(L).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 b("withdraw",{id:A})}return x}()},A)})})},i=function(v,h){var C=(0,o.useBackend)(h),b=C.act,B=C.data,L=B.curCategory,w=B.categories,T=B.designs,A=B.syncing,x=(0,o.useLocalState)(h,"searchText",""),E=x[0],M=x[1],R=(0,t.createSearch)(E,function(D){return D.name}),O=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:L,options:w,onSelected:function(){function D(j){return b("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 b("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 b("sync")}return D}()})]}),children:[(0,e.createComponentVNode)(2,f.Input,{placeholder:"Search by name...",mb:"0.5rem",width:"100%",onInput:function(){function D(j,U){return M(U)}return D}()}),O.map(function(D){return(0,e.createComponentVNode)(2,N,{design:D},D.id)}),O.length===0&&(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"No designs found."})]})},d=function(v,h){var C=(0,o.useBackend)(h),b=C.act,B=C.data,L=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 ",L,"\xA0(",(0,e.createComponentVNode)(2,V.Countdown,{current:A,timeLeft:T-A,format:function(){function x(E,M){return M.substr(3)}return x}()}),")"]})]})})})},u=function(v,h){var C=(0,o.useBackend)(h),b=C.act,B=C.data,L=B.queue,w=B.processingQueue,T=Object.entries(B.queueDeficit).filter(function(x){return x[1]<0}),A=L.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 b("process")}return x}()}),(0,e.createComponentVNode)(2,f.Button,{disabled:L.length===0,icon:"eraser",content:"Clear",onClick:function(){function x(){return b("unqueueall")}return x}()})]}),children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:L.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:L.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 M(){return b("queueswap",{from:E+1,to:E})}return M}()}),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,h){var C=(0,o.useBackend)(h),b=C.act,B=C.data,L=v.id,w=v.amount,T=v.lineDisplay,A=v.onClick,x=y(v,S),E=B.materials[L]||0,M=w||E;if(!(M<=0&&!(L==="metal"||L==="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",L])}),(0,e.createComponentVNode)(2,f.Stack.Item,{className:"Exofab__material--amount",color:R&&"bad",ml:0,mr:1,children:M.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",L])})})}),(0,e.createComponentVNode)(2,f.Stack.Item,{grow:"1",children:[(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__material--name",children:L}),(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__material--amount",children:[M.toLocaleString("en-US")," cm\xB3 (",Math.round(M/p*10)/10," ","sheets)"]})]})],4)})))}},N=function(v,h){var C=(0,o.useBackend)(h),b=C.act,B=C.data,L=v.design;return(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__design",children:[(0,e.createComponentVNode)(2,f.Button,{disabled:L.notEnough||B.building,icon:"cog",content:L.name,onClick:function(){function w(){return b("build",{id:L.id})}return w}()}),(0,e.createComponentVNode)(2,f.Button,{icon:"plus-circle",onClick:function(){function w(){return b("queue",{id:L.id})}return w}()}),(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__design--cost",children:Object.entries(L.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"}),L.time>0?(0,e.createFragment)([L.time/10,(0,e.createTextVNode)(" seconds")],0):"Instant"]})})]})}},25627:function(I,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"}]]),V=new Map([[0,{label:"Probe",icon:"thermometer"}],[1,{label:"Dissect",icon:"brain"}],[2,{label:"Analyze",icon:"search"}]]),k=r.ExperimentConsole=function(){function S(y,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,i=m.open,d=m.feedback,u=m.occupant,s=m.occupant_name,N=m.occupant_status,g=function(){function h(){if(!u)return(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No specimen detected."});var C=function(){function B(){return f.get(N)}return B}(),b=C();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:b.color,children:b.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:V.get(B).icon,content:V.get(B).label,onClick:function(){function L(){return c("experiment",{experiment_type:B})}return L}()},B)})})]})}return h}(),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 h(){return c("door")}return h}()}),children:v})]})})}return S}()},14172:function(I,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,V=1013,k=function(p){var l="good",c=80,m=95,i=110,d=120;return pi?l="average":p>d&&(l="bad"),l},S=r.ExternalAirlockController=function(){function y(p,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,N=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:k(d),value:d,minValue:f,maxValue:V,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:!N,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:N,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:N,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":N?"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":N?"yellow":null,onClick:function(){function g(){return m("force_int")}return g}()})]})]})]})})}return y}()},61893:function(I,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 V(k,S){var y=(0,a.useBackend)(S),p=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 p("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 p("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 p("paper")}return c}()}),!!l.paper&&(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Rename",onClick:function(){function c(){return p("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 p("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 p("send")}return c}()})})]})})]})})}return V}()},80031:function(I,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 V(k,S){var y=(0,a.useBackend)(S),p=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 p("retrieve",{index:d.index})}return u}()})})]},d)})]})})})})}return V}()},39552:function(I,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 p=(0,a.useBackend)(y),l=p.act,c=p.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})},V=r.FloorPainter=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.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 N(){return l("cycle_style",{offset:-1})}return N}()})}),(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 N(g){return l("select_style",{style:g})}return N}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",onClick:function(){function N(){return l("cycle_style",{offset:1})}return N}()})})]}),(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(N){return(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,f,{image:s[N],isSelected:i===N,onSelect:function(){function g(){return l("select_style",{style:N})}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(N){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[N+"west",N,N+"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)})},N)})})})})]})})})}return k}()},5090:function(I,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),V=function(i){return i?"("+i.join(", ")+")":"ERROR"},k=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,N=s.emped,g=s.active,v=s.area,h=s.position,C=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:N?(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,p)}),g?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,l,{area:v,position:h})}),C&&(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,l,{title:"Saved Position",position:C})}),(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."]})})})})},p=function(i,d){var u=(0,t.useBackend)(d),s=u.act,N=u.data,g=N.active,v=N.tag,h=N.same_z,C=(0,t.useLocalState)(d,"newTag",v),b=C[0],B=C[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 L(){return s("toggle")}return L}()}),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 L(){return s("tag",{newtag:b})}return L}(),onInput:function(){function L(w,T){return B(T)}return L}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:v===b,width:"20px",mb:"0",ml:"0.25rem",onClick:function(){function L(){return s("tag",{newtag:b})}return L}(),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:!h,icon:h?"compress":"expand",content:h?"Local Sector":"Global",onClick:function(){function L(){return s("same_z")}return L}()})})]})})},l=function(i,d){var u=i.title,s=i.area,N=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),V(N)]})})},c=function(i,d){var u=(0,t.useBackend)(d),s=u.data,N=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,k(N,v.position))}).map(function(v,h){return(0,e.createComponentVNode)(2,o.Table.Row,{backgroundColor:h%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:V(v.position)})]},h)})})})))}},1055:function(I,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),V=r.GeneModder=function(){function i(d,u){var s=(0,a.useBackend)(u),N=s.data,g=N.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,k)]})})})}return i}(),k=function(d,u){var s=(0,a.useBackend)(u),N=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 h(){return N("insert")}return h}()}),children:[(0,e.createComponentVNode)(2,p),(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),N=s.act,g=s.data,v=g.has_seed,h=g.seed,C=g.has_disk,b=g.disk,B,L;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,"+h.image,style:{"vertical-align":"middle",width:"32px",margin:"-1px","margin-left":"-11px"}}),(0,e.createComponentVNode)(2,t.Button,{content:h.name,onClick:function(){function w(){return N("eject_seed")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{ml:"3px",icon:"pen",tooltip:"Name Variant",onClick:function(){function w(){return N("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 N("eject_seed")}return w}()})}),C?L=b.name:L="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:L,onClick:function(){function w(){return N("eject_disk")}return w}()})})})]})})},p=function(d,u){var s=(0,a.useBackend)(u),N=s.act,g=s.data,v=g.disk,h=g.core_genes;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Core Genes",open:!0,children:h.map(function(C){return(0,e.createComponentVNode)(2,t.Stack,{py:"2px",className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"100%",ml:"2px",children:C.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 b(){return N("extract",{id:C.id})}return b}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Replace",disabled:!C.is_type||!v.can_insert,icon:"arrow-circle-down",onClick:function(){function b(){return N("replace",{id:C.id})}return b}()})})]},C)})},"Core Genes")},l=function(d,u){var s=(0,a.useBackend)(u),N=s.data,g=N.reagent_genes,v=N.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),N=s.data,g=N.trait_genes,v=N.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,N=d.gene_set,g=d.do_we_show,v=(0,a.useBackend)(u),h=v.act,C=v.data,b=C.disk;return(0,e.createComponentVNode)(2,t.Collapsible,{title:s,open:!0,children:g?N.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:!(b!=null&&b.can_extract),icon:"save",onClick:function(){function L(){return h("extract",{id:B.id})}return L}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove",icon:"times",onClick:function(){function L(){return h("remove",{id:B.id})}return L}()})})]},B)}):(0,e.createComponentVNode)(2,t.Stack.Item,{children:"No Genes Detected"})},s)}},14232:function(I,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 V(k,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 V}()},86268:function(I,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 k(S,y){var p=(0,a.useBackend)(y),l=p.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,V,{label:"Medical",type:"medical",is_active:m}),(0,e.createComponentVNode)(2,V,{label:"Security",type:"security",is_active:c}),(0,e.createComponentVNode)(2,V,{label:"Diagnostic",type:"diagnostic",is_active:i}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,V,{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,V,{label:"Antag HUD",is_active:u,act_on:"ahud_on",act_off:"ahud_off"})]})})})}return k}(),V=function(S,y){var p=(0,a.useBackend)(y),l=p.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,N=S.act_off,g=N===void 0?"hud_off":N;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(I,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 V(k,S){var y=(0,a.useBackend)(S),p=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 p("dispense",{gland_id:i.id})}return d}()},i.id)})})})})}return V}()},70309:function(I,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 V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.charging_state,m=l.charge_count,i=l.breaker,d=l.ext_power,u=function(){function N(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 N}(),s=function(){function N(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 N}();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 N(){return p("breaker")}return N}()}),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 V}()},64769:function(I,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),V=r.GuestPass=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.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 k}()},12219:function(I,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],V=null,k=r.HandheldChemDispenser=function(){function p(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 p}(),S=function(l,c){var m=(0,a.useBackend)(c),i=m.act,d=m.data,u=d.amount,s=d.energy,N=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:N,ranges:{good:[N*.5,1/0],average:[N*.25,N*.5],bad:[-1/0,N*.25]},children:[s," / ",N," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Amount",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{children:f.map(function(v,h){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 C(){return i("amount",{amount:v})}return C}()})},h)})})}),(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,N=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(h,C){return(0,e.createComponentVNode)(2,t.Button,{width:"32%",icon:"arrow-circle-down",overflow:"hidden",textOverflow:"ellipsis",selected:N===h.id,content:h.title,style:{"margin-left":"2px"},onClick:function(){function b(){return i("dispense",{reagent:h.id})}return b}()},C)}),g.map(function(h,C){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:"1",basis:"25%"},C)})]})})}},53917:function(I,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),V=r.HealthSensor=function(){function S(y,p){var l=(0,t.useBackend)(p),c=l.act,m=l.data,i=m.on,d=m.user_health,u=m.minHealth,s=m.maxHealth,N=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:N,format:function(){function g(v){return(0,a.toFixed)(v,1)}return g}(),width:"80px",onDrag:function(){function g(v,h){return c("alarm_health",{alarm_health:h})}return g}()})}),d!==null&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"User health",children:(0,e.createComponentVNode)(2,o.Box,{color:k(d),bold:d>=100,children:(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:d})})})]})})})})}return S}(),k=function(y){return y>50?"green":y>0?"orange":"red"}},93116:function(I,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 k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=(0,a.useLocalState)(y,"currentDeck",""),i=m[0],d=m[1],u=(0,a.useLocalState)(y,"showReload",!1),s=u[0],N=u[1],g=c.decks,v=c.ai_override,h=c.emagged,C=function(){function b(B){l("select_deck",{deck:B}),d(B),N(!0),setTimeout(function(){N(!1)},3e3)}return b}();return(0,e.createComponentVNode)(2,o.Window,{width:400,height:320,children:[s&&(0,e.createComponentVNode)(2,V),(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(b){return(0,e.createComponentVNode)(2,t.Button,{width:15.5,color:"transparent",content:b,selected:b===i,onClick:function(){function B(){return C(b)}return B}()},b)}),(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:h?"Turn On":"Turn Off",color:h?"good":"bad",onClick:function(){function b(){return l("ai_override")}return b}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety Protocols",children:(0,e.createComponentVNode)(2,t.Box,{color:h?"bad":"good",children:[h?"Off":"On",!!h&&(0,e.createComponentVNode)(2,t.Button,{ml:9.5,width:15.5,color:"red",content:"Wildlife Simulation",onClick:function(){function b(){return l("wildlifecarp")}return b}()})]})})]})]})})]})})]})}return k}(),V=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(I,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),V=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,k),(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,p)]})})]})}return l}(),k=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 N(){return d("help")}return N}()})]})})})},S=function(c,m){var i=(0,t.useBackend)(m),d=i.act,u=i.data,s=u.lines,N=u.playing,g=u.repeat,v=u.maxRepeats,h=u.tempo,C=u.minTempo,b=u.maxTempo,B=u.tickLag,L=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:N,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:!N,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,M){return d("repeat",{new:M})}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:h>=b,content:"-",as:"span",mr:"0.5rem",onClick:function(){function x(){return d("tempo",{new:h+B})}return x}()}),(0,a.round)(600/h)," BPM",(0,e.createComponentVNode)(2,o.Button,{disabled:h<=C,content:"+",as:"span",ml:"0.5rem",onClick:function(){function x(){return d("tempo",{new:h-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:L,stepPixelSize:6,onDrag:function(){function x(E,M){return d("setvolume",{new:M})}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,N=u.instrumentLoaded,g=u.instrument,v=u.canNoteShift,h=u.noteShift,C=u.noteShiftMin,b=u.noteShiftMax,B=u.sustainMode,L=u.sustainLinearDuration,w=u.sustainExponentialDropoff,T=u.legacy,A=u.sustainDropoffVolume,x=u.sustainHeldNote,E,M;return B===1?(E="Linear",M=(0,e.createComponentVNode)(2,o.Slider,{minValue:.1,maxValue:5,value:L,step:.5,stepPixelSize:85,format:function(){function R(O){return(0,a.round)(O*100)/100+" seconds"}return R}(),onChange:function(){function R(O,D){return d("setlinearfalloff",{new:D/10})}return R}()})):B===2&&(E="Exponential",M=(0,e.createComponentVNode)(2,o.Slider,{minValue:1.025,maxValue:10,value:w,step:.01,format:function(){function R(O){return(0,a.round)(O*1e3)/1e3+"% per decisecond"}return R}(),onChange:function(){function R(O,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:N?(0,e.createComponentVNode)(2,o.Dropdown,{options:s,selected:g,width:"50%",onSelected:function(){function R(O){return d("switchinstrument",{name:O})}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:C,maxValue:b,value:h,stepPixelSize:2,format:function(){function R(O){return O+" keys / "+(0,a.round)(O/12*100)/100+" octaves"}return R}(),onChange:function(){function R(O,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(O){return d("setsustainmode",{new:O})}return R}()}),M]}),(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(O,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}()})]})})})},p=function(c,m){var i=(0,t.useBackend)(m),d=i.act,u=i.data,s=u.playing,N=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:N.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&&(N.length>0?(0,e.createComponentVNode)(2,o.LabeledList,{children:N.map(function(v,h){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:h+1,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:s,icon:"pen",onClick:function(){function C(){return d("modifyline",{line:h+1})}return C}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:s,icon:"trash",onClick:function(){function C(){return d("deleteline",{line:h+1})}return C}()})],4),children:v},h)})}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"Song is empty."}))})}},64261:function(I,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 V(k,S){var y=(0,a.useBackend)(S),p=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 p("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 p("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 p("triggerevent",{triggerevent:"Grant Emergency Maintenance Access"})}return i}(),content:"Grant"}),(0,e.createComponentVNode)(2,t.Button,{icon:"door-closed",onClick:function(){function i(){return p("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 p("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 p("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 p("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 p("reset")}return i}()}),children:m})]})})}return V}()},34898:function(I,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),V=r.KitchenMachine=function(){function S(y,p){var l=(0,a.useBackend)(p),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,k)}),(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}(),k=function(y,p){var l=(0,a.useBackend)(p),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(I,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(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.isAdmin,u=i.isSlaved,s=i.isMalf,N=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||N)&&(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,V),g===1&&(0,e.createComponentVNode)(2,k)]})})}return y}(),V=function(p,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,N=i.ion_laws,g=i.ion_law_nr,v=i.has_inherent_laws,h=i.inherent_laws,C=i.has_supplied_laws,b=i.supplied_laws,B=i.channels,L=i.channel,w=i.isMalf,T=i.isAdmin,A=i.zeroth_law,x=i.ion_law,E=i.inherent_law,M=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:N,ctx:l}),!!v&&(0,e.createComponentVNode)(2,S,{title:"Inherent",laws:h,ctx:l}),!!C&&(0,e.createComponentVNode)(2,S,{title:"Supplied",laws:b,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(O){return(0,e.createComponentVNode)(2,t.Button,{content:O.channel,selected:O.channel===L,onClick:function(){function D(){return m("law_channel",{law_channel:O.channel})}return D}()},O.channel)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"State Laws",children:(0,e.createComponentVNode)(2,t.Button,{content:"State Laws",onClick:function(){function O(){return m("state_laws")}return O}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Law Notification",children:(0,e.createComponentVNode)(2,t.Button,{content:"Notify",onClick:function(){function O(){return m("notify_laws")}return O}()})})]})}),!!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 O(){return m("change_zeroth_law")}return O}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function O(){return m("add_zeroth_law")}return O}()})]})]}),(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 O(){return m("change_ion_law")}return O}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function O(){return m("add_ion_law")}return O}()})]})]}),(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 O(){return m("change_inherent_law")}return O}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function O(){return m("add_inherent_law")}return O}()})]})]}),(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:M}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:R,onClick:function(){function O(){return m("change_supplied_law_position")}return O}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function O(){return m("change_supplied_law")}return O}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function O(){return m("add_supplied_law")}return O}()})]})]})]})})],0)},k=function(p,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(p,l){var c=(0,a.useBackend)(p.ctx),m=c.act,i=c.data,d=i.isMalf;return(0,e.createComponentVNode)(2,t.Section,{title:p.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?"})]}),p.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(I,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),V=r.LibraryComputer=function(){function g(v,h){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}(),k=function(v,h){var C=(0,a.useBackend)(h),b=C.act,B=C.data,L=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:L.title}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:L.author}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Summary",children:L.summary}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rating",children:[L.rating,(0,e.createComponentVNode)(2,t.Icon,{name:"star",color:"yellow",verticalAlign:"top"})]}),!L.isProgrammatic&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Categories",children:L.categories.join(", ")})]}),(0,e.createVNode)(1,"br"),w===L.ckey&&(0,e.createComponentVNode)(2,t.Button,{content:"Delete Book",icon:"trash",color:"red",disabled:L.isProgrammatic,onClick:function(){function T(){return b("delete_book",{bookid:L.id,user_ckey:w})}return T}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Report Book",icon:"flag",color:"red",disabled:L.isProgrammatic,onClick:function(){function T(){return(0,f.modalOpen)(h,"report_book",{bookid:L.id})}return T}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Rate Book",icon:"star",color:"caution",disabled:L.isProgrammatic,onClick:function(){function T(){return(0,f.modalOpen)(h,"rate_info",{bookid:L.id})}return T}()})]})},S=function(v,h){var C=(0,a.useBackend)(h),b=C.act,B=C.data,L=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:L.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 M(){return b("set_report",{report_type:x.category_id})}return M}()}),(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 b("submit_report",{bookid:L.id,user_ckey:A})}return x}()})]})},y=function(v,h){var C=(0,a.useBackend)(h),b=C.act,B=C.data,L=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:L>=T?"caution":"default",onClick:function(){function x(){return b("set_rating",{rating_value:T})}return x}()})},A)}),(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,ml:2,fontSize:"150%",children:[L+"/10",(0,e.createComponentVNode)(2,t.Icon,{name:"star",color:"yellow",ml:.5,verticalAlign:"top"})]})]})},p=function(v,h){var C=(0,a.useBackend)(h),b=C.act,B=C.data,L=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:L.title}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:L.author}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rating",children:[L.current_rating?L.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:L.total_ratings?L.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 b("rate_book",{bookid:L.id,user_ckey:w})}return T}()})]})},l=function(v,h){var C=(0,a.useBackend)(h),b=C.data,B=(0,a.useLocalState)(h,"tabIndex",0),L=B[0],w=B[1],T=b.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:L===0,onClick:function(){function A(){return w(0)}return A}(),children:"Book Archives"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:L===1,onClick:function(){function A(){return w(1)}return A}(),children:"Corporate Literature"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:L===2,onClick:function(){function A(){return w(2)}return A}(),children:"Upload Book"}),T===1&&(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:L===3,onClick:function(){function A(){return w(3)}return A}(),children:"Patron Manager"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:L===4,onClick:function(){function A(){return w(4)}return A}(),children:"Inventory"})]})})},c=function(v,h){var C=(0,a.useLocalState)(h,"tabIndex",0),b=C[0];switch(b){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,N);default:return"You are somehow on a tab that doesn't exist! Please let a coder know."}},m=function(v,h){var C=(0,a.useBackend)(h),b=C.act,B=C.data,L=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:L.title||"Input Title",onClick:function(){function x(){return(0,f.modalOpen)(h,"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:L.author||"Input Author",onClick:function(){function x(){return(0,f.modalOpen)(h,"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:L.ratingmin,onClick:function(){function x(){return(0,f.modalOpen)(h,"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:L.ratingmax,onClick:function(){function x(){return(0,f.modalOpen)(h,"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 b("toggle_search_category",{category_id:A[E]})}return x}()})})})}),(0,e.createVNode)(1,"br"),w.filter(function(x){return L.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 b("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 b("clear_search")}return x}()}),L.ckey?(0,e.createComponentVNode)(2,t.Button,{mb:.5,content:"Stop Showing My Books",color:"bad",icon:"search",onClick:function(){function x(){return b("clear_ckey_search")}return x}()}):(0,e.createComponentVNode)(2,t.Button,{content:"Find My Books",icon:"search",onClick:function(){function x(){return b("find_users_books",{user_ckey:T})}return x}()})]})]})},i=function(v,h){var C=(0,a.useBackend)(h),b=C.act,B=C.data,L=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 b("deincrementpagemax")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-left",disabled:w===1,onClick:function(){function x(){return b("deincrementpage")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{bold:!0,content:w,onClick:function(){function x(){return(0,f.modalOpen)(h,"setpagenumber")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",disabled:w===T,onClick:function(){function x(){return b("incrementpage")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",disabled:w===T,onClick:function(){function x(){return b("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"})]}),L.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 b("order_external_book",{bookid:x.id})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{content:"More...",onClick:function(){function E(){return(0,f.modalOpen)(h,"expand_info",{bookid:x.id})}return E}()})]})]},x.id)})]})]})},d=function(v,h){var C=(0,a.useBackend)(h),b=C.act,B=C.data,L=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"})]}),L.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 b("order_programmatic_book",{bookid:T.id})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:"More...",onClick:function(){function x(){return(0,f.modalOpen)(h,"expand_info",{bookid:T.id})}return x}()})]})]},A)})]})})},u=function(v,h){var C=(0,a.useBackend)(h),b=C.act,B=C.data,L=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:L.copyright,content:"Upload Book",onClick:function(){function x(){return b("uploadbook",{user_ckey:T})}return x}()}),children:[L.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:L.copyright,content:L.title,onClick:function(){function x(){return(0,f.modalOpen)(h,"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:L.copyright,content:L.author,onClick:function(){function x(){return(0,f.modalOpen)(h,"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 b("toggle_upload_category",{category_id:A[E]})}return x}()})})})]}),(0,e.createVNode)(1,"br"),w.filter(function(x){return L.categories.includes(x.category_id)}).map(function(x){return(0,e.createComponentVNode)(2,t.Button,{content:x.description,disabled:L.copyright,selected:!0,icon:"unlink",onClick:function(){function E(){return b("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:L.copyright,content:"Edit Summary",onClick:function(){function x(){return(0,f.modalOpen)(h,"edit_selected_summary")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:L.summary})]})})]})]})},s=function(v,h){var C=(0,a.useBackend)(h),b=C.act,B=C.data,L=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"})]}),L.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 b("reportlost",{libraryid:w.libraryid})}return A}()})})]},T)})]})})},N=function(v,h){var C=(0,a.useBackend)(h),b=C.act,B=C.data,L=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"})]}),L.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",k),(0,f.modalRegisterBodyOverride)("report_book",S),(0,f.modalRegisterBodyOverride)("rate_info",p)},92682:function(I,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),V=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,k)})]})}return l}(),k=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,p);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 N(){return d("return")}return N}()}),(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(N){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:N.uploader_ckey}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:N.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book"}),N.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:N.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:N.report_description}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:N.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:N.id})}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Unflag",icon:"flag",color:"caution",onClick:function(){function g(){return d("unflag_book",{bookid:N.id})}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:"View",onClick:function(){function g(){return d("view_book",{bookid:N.id})}return g}()})]})]},N.id)})]})})},p=function(c,m){var i=(0,a.useBackend)(m),d=i.act,u=i.data,s=u.ckey,N=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"})]}),N.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(I,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),V=n(31068),k=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,N=s===void 0?[]:s,g=u.message,v=g===void 0?"":g,h=u.init_value,C=u.timeout,b=u.title,B=(0,f.useLocalState)(m,"selected",N.indexOf(h)),L=B[0],w=B[1],T=(0,f.useLocalState)(m,"searchBarVisible",N.length>10),A=T[0],x=T[1],E=(0,f.useLocalState)(m,"searchQuery",""),M=E[0],R=E[1],O=function(){function z(Y){var J=G.length-1;if(Y===V.KEY_DOWN)if(L===null||L===J){var ie;w(0),(ie=document.getElementById("0"))==null||ie.scrollIntoView()}else{var re;w(L+1),(re=document.getElementById((L+1).toString()))==null||re.scrollIntoView()}else if(Y===V.KEY_UP)if(L===null||L===0){var de;w(J),(de=document.getElementById(J.toString()))==null||de.scrollIntoView()}else{var ve;w(L-1),(ve=document.getElementById((L-1).toString()))==null||ve.scrollIntoView()}}return z}(),D=function(){function z(Y){Y!==L&&w(Y)}return z}(),j=function(){function z(){x(!1),x(!0)}return z}(),U=function(){function z(Y){var J=String.fromCharCode(Y),ie=N.find(function(ve){return ve==null?void 0:ve.toLowerCase().startsWith(J==null?void 0:J.toLowerCase())});if(ie){var re,de=N.indexOf(ie);w(de),(re=document.getElementById(de.toString()))==null||re.scrollIntoView()}}return z}(),W=function(){function z(Y){var J;Y!==M&&(R(Y),w(0),(J=document.getElementById("0"))==null||J.scrollIntoView())}return z}(),K=function(){function z(){x(!A),R("")}return z}(),G=N.filter(function(z){return z==null?void 0:z.toLowerCase().includes(M.toLowerCase())}),$=330+Math.ceil(v.length/3);return A||setTimeout(function(){var z;return(z=document.getElementById(L.toString()))==null?void 0:z.focus()},1),(0,e.createComponentVNode)(2,k.Window,{title:b,width:325,height:$,children:[C&&(0,e.createComponentVNode)(2,a.Loader,{value:C}),(0,e.createComponentVNode)(2,k.Window.Content,{onKeyDown:function(){function z(Y){var J=window.event?Y.which:Y.keyCode;(J===V.KEY_DOWN||J===V.KEY_UP)&&(Y.preventDefault(),O(J)),J===V.KEY_ENTER&&(Y.preventDefault(),d("submit",{entry:G[L]})),!A&&J>=V.KEY_A&&J<=V.KEY_Z&&(Y.preventDefault(),U(J)),J===V.KEY_ESCAPE&&(Y.preventDefault(),d("cancel"))}return z}(),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 z(){return K()}return z}()}),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:G,onClick:D,onFocusSearch:j,searchBarVisible:A,selected:L})}),(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:A&&(0,e.createComponentVNode)(2,p,{filteredItems:G,onSearch:W,searchQuery:M,selected:L})}),(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,children:(0,e.createComponentVNode)(2,t.InputButtons,{input:G[L]})})]})})})]})}return l}(),y=function(c,m){var i=(0,f.useBackend)(m),d=i.act,u=c.filteredItems,s=c.onClick,N=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(h,C){return(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:"transparent",id:C,onClick:function(){function b(){return s(C)}return b}(),onDblClick:function(){function b(B){B.preventDefault(),d("submit",{entry:u[v]})}return b}(),onKeyDown:function(){function b(B){var L=window.event?B.which:B.keyCode;g&&L>=V.KEY_A&&L<=V.KEY_Z&&(B.preventDefault(),N())}return b}(),selected:C===v,style:{animation:"none",transition:"none"},children:h.replace(/^\w/,function(b){return b.toUpperCase()})},C)})})},p=function(c,m){var i=(0,f.useBackend)(m),d=i.act,u=c.filteredItems,s=c.onSearch,N=c.searchQuery,g=c.selected;return(0,e.createComponentVNode)(2,o.Input,{width:"100%",autoFocus:!0,autoSelect:!0,onEnter:function(){function v(h){h.preventDefault(),d("submit",{entry:u[g]})}return v}(),onInput:function(){function v(h,C){return s(C)}return v}(),placeholder:"Search...",value:N})}},75965:function(I,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(L,w){var T=L.name,A=L.value,x=L.module_ref,E=(0,a.useBackend)(w),M=E.act;return(0,e.createComponentVNode)(2,t.NumberInput,{value:A,minValue:-50,maxValue:50,stepPixelSize:5,width:"39px",onChange:function(){function R(O,D){return M("configure",{key:T,value:D,ref:x})}return R}()})},V=function(L,w){var T=L.name,A=L.value,x=L.module_ref,E=(0,a.useBackend)(w),M=E.act;return(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:A,onClick:function(){function R(){return M("configure",{key:T,value:!A,ref:x})}return R}()})},k=function(L,w){var T=L.name,A=L.value,x=L.module_ref,E=(0,a.useBackend)(w),M=E.act;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"paint-brush",onClick:function(){function R(){return M("configure",{key:T,ref:x})}return R}()}),(0,e.createComponentVNode)(2,t.ColorBox,{color:A,mr:.5})],4)},S=function(L,w){var T=L.name,A=L.value,x=L.values,E=L.module_ref,M=(0,a.useBackend)(w),R=M.act;return(0,e.createComponentVNode)(2,t.Dropdown,{displayText:A,options:x,onSelected:function(){function O(D){return R("configure",{key:T,value:D,ref:E})}return O}()})},y=function(L,w){var T=L.name,A=L.display_name,x=L.type,E=L.value,M=L.values,R=L.module_ref,O={number:(0,e.normalizeProps)((0,e.createComponentVNode)(2,f,Object.assign({},L))),bool:(0,e.normalizeProps)((0,e.createComponentVNode)(2,V,Object.assign({},L))),color:(0,e.normalizeProps)((0,e.createComponentVNode)(2,k,Object.assign({},L))),list:(0,e.normalizeProps)((0,e.createComponentVNode)(2,S,Object.assign({},L)))};return(0,e.createComponentVNode)(2,t.Box,{children:[A,": ",O[x]]})},p=function(L,w){var T=L.active,A=L.userradiated,x=L.usertoxins,E=L.usermaxtoxins,M=L.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&&M?"bad":"good",bold:!0,children:T&&M?M:0})})]})},l=function(L,w){var T=L.active,A=L.userhealth,x=L.usermaxhealth,E=L.userbrute,M=L.userburn,R=L.usertoxin,O=L.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?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})})})}),(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?O/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?O:0})})})})]})],4)},c=function(L,w){var T=L.active,A=L.statustime,x=L.statusid,E=L.statushealth,M=L.statusmaxhealth,R=L.statusbrute,O=L.statusburn,D=L.statustoxin,j=L.statusoxy,U=L.statustemp,W=L.statusnutrition,K=L.statusfingerprints,G=L.statusdna,$=L.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/M: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/M: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?O/M:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?O: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/M: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/M: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?U:0})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Nutrition Status",children:T?W: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?K:"???"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Unique Enzymes",children:T?G:"???"})]})}),!!T&&!!$&&(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"})})]}),$.map(function(z){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:z.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:z.type}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[z.stage,"/",z.maxstage]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:z.cure})]},z.name)})]})})],0)},m={rad_counter:p,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(L,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(L,w){var T=L.configuration_data,A=L.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 M=T[E];return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,y,{name:E,display_name:M.display_name,type:M.type,value:M.value,values:M.values,module_ref:A})},M.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:L.onExit,icon:"times",textAlign:"center",children:"Exit"})})})]})})},s=function(L){switch(L){case 1:return"Use";case 2:return"Toggle";case 3:return"Select"}},N=function(L,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.active,M=x.malfunctioning,R=x.locked,O=x.open,D=x.selected_module,j=x.complexity,U=x.complexity_max,W=x.wearer_name,K=x.wearer_job,G=M?"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 $(){return A("activate")}return $}()}),children:G}),(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 $(){return A("lock")}return $}()}),children:R?"Locked":"Unlocked"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cover",children:O?"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," (",U,")"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Occupant",children:[W,", ",K]})]})})},g=function(L,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.active,M=x.control,R=x.helmet,O=x.chestplate,D=x.gauntlets,j=x.boots,U=x.core,W=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:M}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Helmet",children:R||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Chestplate",children:O||"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:U&&(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Core Type",children:U}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Core Charge",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:W/100,content:W+"%",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(L,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.active,M=x.modules,R=M.filter(function(O){return!!O.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(O){var D=m[O.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({},O,{active:E})))]},O.ref)})||(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:"No Info Modules Detected"})})})},h=function(L,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.complexity_max,M=x.modules,R=(0,a.useLocalState)(w,"module_configuration",null),O=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:M.length!==0&&M.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:[O===j.ref&&(0,e.createComponentVNode)(2,u,{configuration_data:j.configuration_data,module_ref:j.ref,onExit:function(){function U(){return D(null)}return U}()}),(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 U(){return A("select",{ref:j.ref})}return U}(),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 U(){return D(j.ref)}return U}(),icon:"cog",selected:O===j.ref,tooltip:"Configure",tooltipPosition:"left",disabled:j.configuration_data.length===0}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function U(){return A("pin",{ref:j.ref})}return U}(),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"})})})})},C=r.MODsuitContent=function(){function B(L,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.ui_theme,M=x.interface_break;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!M,children:!!M&&(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,N)}),(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,h)})]})})}return B}(),b=r.MODsuit=function(){function B(L,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.ui_theme,M=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,C)})})})}return B}()},86322:function(I,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),V=n(22677),k=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(p,l){var c=(0,t.useBackend)(l),m=c.act,i=c.data,d=i.autolink,u=i.code,s=i.frequency,N=i.linkedMagnets,g=i.magnetConfiguration,v=i.path,h=i.pathPosition,C=i.probing,b=i.powerState,B=i.speed;return(0,e.createComponentVNode)(2,f.Window,{width:400,height:600,children:[(0,e.createComponentVNode)(2,V.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:C?"spinner":"sync",iconSpin:!!C,disabled:C,onClick:function(){function L(){return m("probe_magnets")}return L}()}),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:b?"power-off":"times",content:b?"On":"Off",selected:b,onClick:function(){function L(){return m("toggle_power")}return L}()}),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 L(w,T){return m("set_speed",{speed:T})}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Path",children:[Array.from(k.entries()).map(function(L){var w=L[0],T=L[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 L(){return m("path_clear")}return L}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"file-import",float:"right",tooltip:"Manually input path",tooltipPosition:"left",onClick:function(){function L(){return(0,V.modalOpen)(l,"path_custom_input")}return L}()}),(0,e.createComponentVNode)(2,o.BlockQuote,{children:v.map(function(L,w){var T=k.get(L)||{icon:"question"},A=T.icon,x=T.tooltip;return(0,e.createComponentVNode)(2,o.Button.Confirm,{selected:w+2===h,icon:A,confirmIcon:A,confirmContent:"",tooltip:x,onClick:function(){function E(){return m("path_remove",{index:w+1,code:L})}return E}()},w)})})]})]})}),N.map(function(L,w){var T=L.uid,A=L.powerState,x=L.electricityLevel,E=L.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 M(){return m("toggle_magnet_power",{id:T})}return M}()}),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 M(R,O){return m("set_electricity_level",{id:T,electricityLevel:O})}return M}()})}),(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 M(R,O){return m("set_magnetic_field",{id:T,magneticField:O})}return M}()})})]})},T)})]})]})}return y}()},54374:function(I,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 V(k,S){var y=(0,a.useBackend)(S),p=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 p("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 V}()},14823:function(I,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),V=n(37843),k=r.MechaControlConsole=function(){function S(y,p){var l=(0,t.useBackend)(p),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,V.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,V.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(I,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),V=n(84947),k=n(51185),S=n(69774),y=n(76519),p={Minor:"lightgray",Medium:"good",Harmful:"average","Dangerous!":"bad","BIOHAZARD THREAT!":"darkred"},l={"*Deceased*":"deceased","*SSD*":"ssd","Physically Unfit":"physically_unfit",Disabled:"disabled"},c=function(w,T){(0,f.modalOpen)(w,"edit",{field:T.edit,value:T.value})},m=function(w,T){var A=w.args;return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:A.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:A.max_stages}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Spread",children:[A.spread_text," Transmission"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Possible cure",children:A.cure}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Notes",children:A.desc}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Severity",color:p[A.severity],children:A.severity})]})})})},i=r.MedicalRecords=function(){function L(w,T){var A=(0,t.useBackend)(T),x=A.data,E=x.loginState,M=x.screen;if(!E.logged_in)return(0,e.createComponentVNode)(2,V.Window,{width:800,height:900,children:(0,e.createComponentVNode)(2,V.Window.Content,{children:(0,e.createComponentVNode)(2,S.LoginScreen)})});var R;return M===2?R=(0,e.createComponentVNode)(2,d):M===3?R=(0,e.createComponentVNode)(2,u):M===4?R=(0,e.createComponentVNode)(2,s):M===5?R=(0,e.createComponentVNode)(2,v):M===6&&(R=(0,e.createComponentVNode)(2,h)),(0,e.createComponentVNode)(2,V.Window,{width:800,height:900,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,V.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k.LoginInfo),(0,e.createComponentVNode)(2,y.TemporaryNotice),(0,e.createComponentVNode)(2,B),R]})})]})}return L}(),d=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,M=E.records,R=(0,t.useLocalState)(T,"searchText",""),O=R[0],D=R[1],j=(0,t.useLocalState)(T,"sortId","name"),U=j[0],W=j[1],K=(0,t.useLocalState)(T,"sortOrder",!0),G=K[0],$=K[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 z(){return x("screen",{screen:3})}return z}()})}),(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 z(Y,J){return D(J)}return z}()})})]})}),(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,C,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,C,{id:"id",children:"ID"}),(0,e.createComponentVNode)(2,C,{id:"rank",children:"Assignment"}),(0,e.createComponentVNode)(2,C,{id:"p_stat",children:"Patient Status"}),(0,e.createComponentVNode)(2,C,{id:"m_stat",children:"Mental Status"})]}),M.filter((0,a.createSearch)(O,function(z){return z.name+"|"+z.id+"|"+z.rank+"|"+z.p_stat+"|"+z.m_stat})).sort(function(z,Y){var J=G?1:-1;return z[U].localeCompare(Y[U])*J}).map(function(z){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listRow--"+l[z.p_stat],onClick:function(){function Y(){return x("view_record",{view_record:z.ref})}return Y}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",z.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:z.id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:z.rank}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:z.p_stat}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:z.m_stat})]},z.id)})]})})})],4)},u=function(w,T){var A=(0,t.useBackend)(T),x=A.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 E(){return x("del_all_med_records")}return E}()})})]})})},s=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,M=E.medical,R=E.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:R?"spinner":"print",disabled:R,iconSpin:!!R,content:"Print Record",ml:"0.5rem",onClick:function(){function O(){return x("print_record")}return O}()}),children:(0,e.createComponentVNode)(2,N)})}),!M||!M.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 O(){return x("new_med_record")}return O}()}),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:!!M.empty,content:"Delete Medical Record",onClick:function(){function O(){return x("del_med_record")}return O}()})})}),(0,e.createComponentVNode)(2,g)],4)],0)},N=function(w,T){var A=(0,t.useBackend)(T),x=A.data,E=x.general;return!E||!E.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:E.fields.map(function(M,R){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 O(){return c(T,M)}return O}()})]},R)})})}),!!E.has_photos&&E.photos.map(function(M,R){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:M,style:{width:"96px","margin-top":"2.5rem","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.createVNode)(1,"br"),"Photo #",R+1]},R)})]})},g=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,M=E.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 R(){return(0,f.modalOpen)(T,"add_comment")}return R}()}),children:M.comments.length===0?(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No comments found."}):M.comments.map(function(R,O){return(0,e.createComponentVNode)(2,o.Box,{prewrap:!0,children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:R.header}),(0,e.createVNode)(1,"br"),R.text,(0,e.createComponentVNode)(2,o.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){function D(){return x("del_comment",{del_comment:O+1})}return D}()})]},O)})})})},v=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,M=E.virus,R=(0,t.useLocalState)(T,"searchText",""),O=R[0],D=R[1],j=(0,t.useLocalState)(T,"sortId2","name"),U=j[0],W=j[1],K=(0,t.useLocalState)(T,"sortOrder2",!0),G=K[0],$=K[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 z(Y,J){return D(J)}return z}()})}),(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"})]}),M.filter((0,a.createSearch)(O,function(z){return z.name+"|"+z.max_stages+"|"+z.severity})).sort(function(z,Y){var J=G?1:-1;return z[U].localeCompare(Y[U])*J}).map(function(z){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listVirus--"+z.severity,onClick:function(){function Y(){return x("vir",{vir:z.D})}return Y}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"virus"})," ",z.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:z.max_stages}),(0,e.createComponentVNode)(2,o.Table.Cell,{color:p[z.severity],children:z.severity})]},z.id)})]})})})})],4)},h=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,M=E.medbots;return M.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"})]}),M.map(function(R){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listMedbot--"+R.on,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"medical"})," ",R.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:[R.area||"Unknown"," (",R.x,", ",R.y,")"]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:R.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:R.use_beaker?"Reservoir: "+R.total_volume+"/"+R.maximum_volume:"Using internal synthesizer"})]},R.id)})]})})})},C=function(w,T){var A=(0,t.useLocalState)(T,"sortId","name"),x=A[0],E=A[1],M=(0,t.useLocalState)(T,"sortOrder",!0),R=M[0],O=M[1],D=w.id,j=w.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:x!==D&&"transparent",onClick:function(){function U(){x===D?O(!R):(E(D),O(!0))}return U}(),children:[j,x===D&&(0,e.createComponentVNode)(2,o.Icon,{name:R?"sort-up":"sort-down",ml:"0.25rem;"})]})})},b=function(w,T){var A=(0,t.useLocalState)(T,"sortId2","name"),x=A[0],E=A[1],M=(0,t.useLocalState)(T,"sortOrder2",!0),R=M[0],O=M[1],D=w.id,j=w.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:x!==D&&"transparent",onClick:function(){function U(){x===D?O(!R):(E(D),O(!0))}return U}(),children:[j,x===D&&(0,e.createComponentVNode)(2,o.Icon,{name:R?"sort-up":"sort-down",ml:"0.25rem;"})]})})},B=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,M=E.screen,R=E.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:M===2,onClick:function(){function O(){x("screen",{screen:2})}return O}(),children:"List Records"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"database",selected:M===5,onClick:function(){function O(){x("screen",{screen:5})}return O}(),children:"Virus Database"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"plus-square",selected:M===6,onClick:function(){function O(){return x("screen",{screen:6})}return O}(),children:"Medibot Tracking"}),M===3&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"wrench",selected:M===3,children:"Record Maintenance"}),M===4&&R&&!R.empty&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"file",selected:M===4,children:["Record: ",R.fields[0].value]})]})})};(0,f.modalRegisterBodyOverride)("virus",m)},44482:function(I,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(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=p.product,u=p.productImage,s=p.productCategory,N=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>N,icon:"shopping-cart",content:d.price,textAlign:"left",onClick:function(){function g(){return m("purchase",{name:d.name,category:s})}return g}()})})]})},V=function(p,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,N=["apparel","toy","decoration"];return(0,e.createComponentVNode)(2,t.Table,{children:u[N[d]].map(function(g){return(0,e.createComponentVNode)(2,f,{product:g,productImage:s[g.path],productCategory:N[d]},g.name)})})},k=r.MerchVendor=function(){function y(p,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,V)]})})]})})})}return y}(),S=function(p,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 N(){return u(1)}return N}(),children:"Toys"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"flag",selected:d===2,onClick:function(){function N(){return u(2)}return N}(),children:"Decorations"})]})}},53551:function(I,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),V=["title","items"];function k(i,d){if(i==null)return{};var u={},s=Object.keys(i),N,g;for(g=0;g=0)&&(u[N]=i[N]);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,p),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,l)]})})})}return i}(),p=function(d,u){var s=(0,t.useBackend)(u),N=s.act,g=s.data,v=g.has_id,h=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 ",h.name,".",(0,e.createVNode)(1,"br"),"You have ",h.points.toLocaleString("en-US")," points."]}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject ID",style:{float:"right"},onClick:function(){function C(){return N("logoff")}return C}()}),(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),N=s.act,g=s.data,v=g.has_id,h=g.id,C=g.items,b=(0,t.useLocalState)(u,"search",""),B=b[0],L=b[1],w=(0,t.useLocalState)(u,"sort","Alphabetical"),T=w[0],A=w[1],x=(0,t.useLocalState)(u,"descending",!1),E=x[0],M=x[1],R=(0,a.createSearch)(B,function(j){return j[0]}),O=!1,D=Object.entries(C).map(function(j,U){var W=Object.entries(j[1]).filter(R).map(function(K){return K[1].affordable=v&&h.points>=K[1].price,K[1]}).sort(S[T]);if(W.length!==0)return E&&(W=W.reverse()),O=!0,(0,e.createComponentVNode)(2,m,{title:j[0],items:W},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:O?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",""),N=s[0],g=s[1],v=(0,t.useLocalState)(u,"sort",""),h=v[0],C=v[1],b=(0,t.useLocalState)(u,"descending",!1),B=b[0],L=b[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 C(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 L(!B)}return w}()})})]})})},m=function(d,u){var s=(0,t.useBackend)(u),N=s.act,g=s.data,v=d.title,h=d.items,C=k(d,V);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Collapsible,Object.assign({open:!0,title:v},C,{children:h.map(function(b){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:b.name}),(0,e.createComponentVNode)(2,o.Button,{disabled:!g.has_id||g.id.points=0)&&(T[x]=L[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 L(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,M=E.is_security,R=E.is_admin,O=E.is_silent,D=E.is_printing,j=E.screen,U=E.channels,W=E.channel_idx,K=W===void 0?-1:W,G=(0,t.useLocalState)(T,"menuOpen",!1),$=G[0],z=G[1],Y=(0,t.useLocalState)(T,"viewingPhoto",""),J=Y[0],ie=Y[1],re=(0,t.useLocalState)(T,"censorMode",!1),de=re[0],ve=re[1],ye;j===0||j===2?ye=(0,e.createComponentVNode)(2,s):j===1&&(ye=(0,e.createComponentVNode)(2,N));var Le=U.reduce(function(pe,ne){return pe+ne.unread},0);return(0,e.createComponentVNode)(2,V.Window,{theme:M&&"security",width:800,height:600,children:[J?(0,e.createComponentVNode)(2,h):(0,e.createComponentVNode)(2,k.ComplexModal,{maxWidth:window.innerWidth/1.5+"px",maxHeight:window.innerHeight/1.5+"px"}),(0,e.createComponentVNode)(2,V.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",$&&"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 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:Le>0&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--unread",children:Le>=10?"9+":Le})}),(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:U.map(function(pe){return(0,e.createComponentVNode)(2,u,{icon:pe.icon,title:pe.name,selected:j===2&&U[K-1]===pe,onClick:function(){function ne(){return x("channel",{uid:pe.uid})}return ne}(),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),(!!M||!!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,k.modalOpen)(T,"wanted_notice")}return pe}()}),(0,e.createComponentVNode)(2,u,{security:!0,icon:de?"minus-square":"minus-square-o",title:"Censor Mode: "+(de?"On":"Off"),mb:"0.5rem",onClick:function(){function pe(){return ve(!de)}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,k.modalOpen)(T,"create_story")}return pe}()}),(0,e.createComponentVNode)(2,u,{icon:"plus-circle",title:"New Channel",onClick:function(){function pe(){return(0,k.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:O?"volume-mute":"volume-up",title:"Mute: "+(O?"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 L}(),u=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=w.icon,M=E===void 0?"":E,R=w.iconSpin,O=w.selected,D=O===void 0?!1:O,j=w.security,U=j===void 0?!1:j,W=w.onClick,K=w.title,G=w.children,$=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",U&&"Newscaster__menuButton--security"]),onClick:W},$,{children:[D&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--selectedBar"}),(0,e.createComponentVNode)(2,o.Icon,{name:M,spin:R,size:"2"}),(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--title",children:K}),G]})))},s=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,M=E.screen,R=E.is_admin,O=E.channel_idx,D=E.channel_can_manage,j=E.channels,U=E.stories,W=E.wanted,K=(0,t.useLocalState)(T,"fullStories",[]),G=K[0],$=K[1],z=(0,t.useLocalState)(T,"censorMode",!1),Y=z[0],J=z[1],ie=M===2&&O>-1?j[O-1]:null;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[!!W&&(0,e.createComponentVNode)(2,g,{story:W,wanted:!0}),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:ie?ie.icon:"newspaper",mr:"0.5rem"}),ie?ie.name:"Headlines"],0),children:U.length>0?U.slice().reverse().map(function(re){return!G.includes(re.uid)&&re.body.length+3>c?Object.assign({},re,{body_short:re.body.substr(0,c-4)+"..."}):re}).map(function(re,de){return(0,e.createComponentVNode)(2,g,{story:re},de)}):(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."]})}),!!ie&&(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)([Y&&(0,e.createComponentVNode)(2,o.Button,{disabled:!!ie.admin&&!R,selected:ie.censored,icon:ie.censored?"comment-slash":"comment",content:ie.censored?"Uncensor Channel":"Censor Channel",mr:"0.5rem",onClick:function(){function re(){return x("censor_channel",{uid:ie.uid})}return re}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!D,icon:"cog",content:"Manage",onClick:function(){function re(){return(0,k.modalOpen)(T,"manage_channel",{uid:ie.uid})}return re}()})],0),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",children:ie.description||"N/A"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",children:ie.author||"N/A"}),!!R&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Ckey",children:ie.author_ckey}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Public",children:ie.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"}),U.reduce(function(re,de){return re+de.view_count},0).toLocaleString()]})]})})]})},N=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,M=E.jobs,R=E.wanted,O=Object.entries(M).reduce(function(D,j){var U=j[0],W=j[1];return D+W.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:O>0?m.map(function(D){return Object.assign({},i[D],{id:D,jobs:M[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,M=w.story,R=w.wanted,O=R===void 0?!1:R,D=E.is_admin,j=(0,t.useLocalState)(T,"fullStories",[]),U=j[0],W=j[1],K=(0,t.useLocalState)(T,"censorMode",!1),G=K[0],$=K[1];return(0,e.createComponentVNode)(2,o.Section,{className:(0,a.classes)(["Newscaster__story",O&&"Newscaster__story--wanted"]),title:(0,e.createFragment)([O&&(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-circle",mr:"0.5rem"}),M.censor_flags&2&&"[REDACTED]"||M.title||"News from "+M.author],0),buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",children:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:[!O&&G&&(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:(0,e.createComponentVNode)(2,o.Button,{enabled:M.censor_flags&2,icon:M.censor_flags&2?"comment-slash":"comment",content:M.censor_flags&2?"Uncensor":"Censor",mr:"0.5rem",mt:"-0.25rem",onClick:function(){function z(){return x("censor_story",{uid:M.uid})}return z}()})}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",M.author," |\xA0",!!D&&(0,e.createFragment)([(0,e.createTextVNode)("ckey: "),M.author_ckey,(0,e.createTextVNode)(" |\xA0")],0),!O&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"eye"}),(0,e.createTextVNode)(" "),M.view_count.toLocaleString(),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("|\xA0")],0),(0,e.createComponentVNode)(2,o.Icon,{name:"clock"})," ",(0,f.timeAgo)(M.publish_time,E.world_time)]})]})}),children:(0,e.createComponentVNode)(2,o.Box,{children:M.censor_flags&2?"[REDACTED]":(0,e.createFragment)([!!M.has_photo&&(0,e.createComponentVNode)(2,v,{name:"story_photo_"+M.uid+".png",float:"right",ml:"0.5rem"}),(M.body_short||M.body).split("\n").map(function(z,Y){return(0,e.createComponentVNode)(2,o.Box,{children:z||(0,e.createVNode)(1,"br")},Y)}),M.body_short&&(0,e.createComponentVNode)(2,o.Button,{content:"Read more..",mt:"0.5rem",onClick:function(){function z(){return W([].concat(U,[M.uid]))}return z}()}),(0,e.createComponentVNode)(2,o.Box,{clear:"right"})],0)})})},v=function(w,T){var A=w.name,x=l(w,p),E=(0,t.useLocalState)(T,"viewingPhoto",""),M=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 O(){return R(A)}return O}()},x)))},h=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 M(){return E("")}return M}()})]})},C=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,M=!!w.args.uid&&E.channels.filter(function(q){return q.uid===w.args.uid}).pop();if(w.id==="manage_channel"&&!M){(0,k.modalClose)(T);return}var R=w.id==="manage_channel",O=!!w.args.is_admin,D=w.args.scanned_user,j=(0,t.useLocalState)(T,"author",(M==null?void 0:M.author)||D||"Unknown"),U=j[0],W=j[1],K=(0,t.useLocalState)(T,"name",(M==null?void 0:M.name)||""),G=K[0],$=K[1],z=(0,t.useLocalState)(T,"description",(M==null?void 0:M.description)||""),Y=z[0],J=z[1],ie=(0,t.useLocalState)(T,"icon",(M==null?void 0:M.icon)||"newspaper"),re=ie[0],de=ie[1],ve=(0,t.useLocalState)(T,"isPublic",R?!!(M!=null&&M.public):!1),ye=ve[0],Le=ve[1],pe=(0,t.useLocalState)(T,"adminLocked",(M==null?void 0:M.admin)===1||!1),ne=pe[0],ae=pe[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:R?"Manage "+M.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:!O,width:"100%",value:U,onInput:function(){function q(se,me){return W(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:G,onInput:function(){function q(se,me){return $(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:Y,onInput:function(){function q(se,me){return J(me)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Icon",children:[(0,e.createComponentVNode)(2,o.Input,{disabled:!O,value:re,width:"35%",mr:"0.5rem",onInput:function(){function q(se,me){return de(me)}return q}()}),(0,e.createComponentVNode)(2,o.Icon,{name:re,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 Le(!ye)}return q}()})}),O&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:ne,icon:ne?"lock":"lock-open",content:ne?"On":"Off",tooltip:"Locking this channel will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function q(){return ae(!ne)}return q}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:U.trim().length===0||G.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function q(){(0,k.modalAnswer)(T,w.id,"",{author:U,name:G.substr(0,49),description:Y.substr(0,128),icon:re,public:ye?1:0,admin_locked:ne?1:0})}return q}()})]})},b=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,M=E.photo,R=E.channels,O=E.channel_idx,D=O===void 0?-1:O,j=!!w.args.is_admin,U=w.args.scanned_user,W=R.slice().sort(function(q,se){if(D<0)return 0;var me=R[D-1];if(me.uid===q.uid)return-1;if(me.uid===se.uid)return 1}).filter(function(q){return j||!q.frozen&&(q.author===U||!!q.public)}),K=(0,t.useLocalState)(T,"author",U||"Unknown"),G=K[0],$=K[1],z=(0,t.useLocalState)(T,"channel",W.length>0?W[0].name:""),Y=z[0],J=z[1],ie=(0,t.useLocalState)(T,"title",""),re=ie[0],de=ie[1],ve=(0,t.useLocalState)(T,"body",""),ye=ve[0],Le=ve[1],pe=(0,t.useLocalState)(T,"adminLocked",!1),ne=pe[0],ae=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:G,onInput:function(){function q(se,me){return $(me)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Channel",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:Y,options:W.map(function(q){return q.name}),mb:"0",width:"100%",onSelected:function(){function q(se){return J(se)}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:re,onInput:function(){function q(se,me){return de(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(se,me){return Le(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:M,content:M?"Eject: "+M.name:"Insert Photo",tooltip:!M&&"Attach a photo to this story by holding the photograph in your hand.",onClick:function(){function q(){return x(M?"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:re,maxHeight:"13.5rem",overflow:"auto",children:(0,e.createComponentVNode)(2,o.Box,{mt:"0.5rem",children:[!!M&&(0,e.createComponentVNode)(2,v,{name:"inserted_photo_"+M.uid+".png",float:"right"}),ye.split("\n").map(function(q,se){return(0,e.createComponentVNode)(2,o.Box,{children:q||(0,e.createVNode)(1,"br")},se)}),(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:ne,icon:ne?"lock":"lock-open",content:ne?"On":"Off",tooltip:"Locking this story will make it censorable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function q(){return ae(!ne)}return q}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:G.trim().length===0||Y.trim().length===0||re.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,k.modalAnswer)(T,"create_story","",{author:G,channel:Y,title:re.substr(0,127),body:ye.substr(0,1023),admin_locked:ne?1:0})}return q}()})]})},B=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,M=E.photo,R=E.wanted,O=!!w.args.is_admin,D=w.args.scanned_user,j=(0,t.useLocalState)(T,"author",(R==null?void 0:R.author)||D||"Unknown"),U=j[0],W=j[1],K=(0,t.useLocalState)(T,"name",(R==null?void 0:R.title.substr(8))||""),G=K[0],$=K[1],z=(0,t.useLocalState)(T,"description",(R==null?void 0:R.body)||""),Y=z[0],J=z[1],ie=(0,t.useLocalState)(T,"adminLocked",(R==null?void 0:R.admin_locked)===1||!1),re=ie[0],de=ie[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:!O,width:"100%",value:U,onInput:function(){function ve(ye,Le){return W(Le)}return ve}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",value:G,maxLength:"128",onInput:function(){function ve(ye,Le){return $(Le)}return ve}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{multiline:!0,width:"100%",value:Y,maxLength:"512",rows:"4",onInput:function(){function ve(ye,Le){return J(Le)}return ve}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Photo (optional)",verticalAlign:"top",children:[(0,e.createComponentVNode)(2,o.Button,{icon:"image",selected:M,content:M?"Eject: "+M.name:"Insert Photo",tooltip:!M&&"Attach a photo to this wanted notice by holding the photograph in your hand.",tooltipPosition:"top",onClick:function(){function ve(){return x(M?"eject_photo":"attach_photo")}return ve}()}),!!M&&(0,e.createComponentVNode)(2,v,{name:"inserted_photo_"+M.uid+".png",float:"right"})]}),O&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:re,icon:re?"lock":"lock-open",content:re?"On":"Off",tooltip:"Locking this wanted notice will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function ve(){return de(!re)}return ve}()})})]})}),(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 ve(){x("clear_wanted_notice"),(0,k.modalClose)(T)}return ve}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:U.trim().length===0||G.trim().length===0||Y.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function ve(){(0,k.modalAnswer)(T,w.id,"",{author:U,name:G.substr(0,127),description:Y.substr(0,511),admin_locked:re?1:0})}return ve}()})]})};(0,k.modalRegisterBodyOverride)("create_channel",C),(0,k.modalRegisterBodyOverride)("manage_channel",C),(0,k.modalRegisterBodyOverride)("create_story",b),(0,k.modalRegisterBodyOverride)("wanted_notice",B)},64639:function(I,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 V(k,S){var y=(0,a.useBackend)(S),p=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 p("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 p("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 p("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 p("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 p("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 p("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 p("deploy")}return c}()})})})})}return V}()},45523:function(I,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),V=n(2971),k=n(84947),S=r.NumberInputModal=function(){function p(l,c){var m=(0,f.useBackend)(c),i=m.act,d=m.data,u=d.init_value,s=d.large_buttons,N=d.message,g=N===void 0?"":N,v=d.timeout,h=d.title,C=(0,f.useLocalState)(c,"input",u),b=C[0],B=C[1],L=function(){function A(x){x!==b&&B(x)}return A}(),w=function(){function A(x){x!==b&&B(x)}return A}(),T=120+(g.length>30?Math.ceil(g.length/3):0);return(0,e.createComponentVNode)(2,k.Window,{title:h,width:270,height:T,children:[v&&(0,e.createComponentVNode)(2,a.Loader,{value:v}),(0,e.createComponentVNode)(2,k.Window.Content,{onKeyDown:function(){function A(x){var E=window.event?x.which:x.keyCode;E===o.KEY_ENTER&&i("submit",{entry:b}),E===o.KEY_ESCAPE&&i("cancel")}return A}(),children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,children:(0,e.createComponentVNode)(2,V.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,V.Box,{color:"label",children:g})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,y,{input:b,onClick:w,onChange:L})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:b})})]})})})]})}return p}(),y=function(l,c){var m=(0,f.useBackend)(c),i=m.act,d=m.data,u=d.min_value,s=d.max_value,N=d.init_value,g=d.round_value,v=l.input,h=l.onClick,C=l.onChange,b=Math.round(v!==u?Math.max(v/2,u):s/2),B=v===u&&u>0||v===1;return(0,e.createComponentVNode)(2,V.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Button,{disabled:v===u,icon:"angle-double-left",onClick:function(){function L(){return h(u)}return L}(),tooltip:v===u?"Min":"Min ("+u+")"})}),(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,V.RestrictedInput,{autoFocus:!0,autoSelect:!0,fluid:!0,allowFloats:!g,minValue:u,maxValue:s,onChange:function(){function L(w,T){return C(T)}return L}(),onEnter:function(){function L(w,T){return i("submit",{entry:T})}return L}(),value:v})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Button,{disabled:v===s,icon:"angle-double-right",onClick:function(){function L(){return h(s)}return L}(),tooltip:v===s?"Max":"Max ("+s+")"})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Button,{disabled:B,icon:"divide",onClick:function(){function L(){return h(b)}return L}(),tooltip:B?"Split":"Split ("+b+")"})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Button,{disabled:v===N,icon:"redo",onClick:function(){function L(){return h(N)}return L}(),tooltip:N?"Reset ("+N+")":"Reset"})})]})}},48314:function(I,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),V=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],k=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],S={average:[.25,.5],bad:[.5,1/0]},y=["bad","average","average","good","average","average","bad"],p=r.OperatingComputer=function(){function i(d,u){var s=(0,t.useBackend)(u),N=s.act,g=s.data,v=g.hasOccupant,h=g.choice,C;return h?C=(0,e.createComponentVNode)(2,m):C=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:!h,icon:"user",onClick:function(){function b(){return N("choiceOff")}return b}(),children:"Patient"}),(0,e.createComponentVNode)(2,f.Tabs.Tab,{selected:!!h,icon:"cog",onClick:function(){function b(){return N("choiceOn")}return b}(),children:"Options"})]})}),(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,children:C})})]})})})}return i}(),l=function(d,u){var s=(0,t.useBackend)(u),N=s.data,g=N.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:V[g.stat][0],children:V[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]}})}),k.map(function(v,h){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]])},h)},h)}),(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),N=s.act,g=s.data,v=g.verbose,h=g.health,C=g.healthAlarm,b=g.oxy,B=g.oxyAlarm,L=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 N(v?"verboseOff":"verboseOn")}return w}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Health Announcer",children:(0,e.createComponentVNode)(2,f.Button,{selected:h,icon:h?"toggle-on":"toggle-off",content:h?"On":"Off",onClick:function(){function w(){return N(h?"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:C,stepPixelSize:5,ml:"0",onChange:function(){function w(T,A){return N("health_adj",{new:A})}return w}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Oxygen Alarm",children:(0,e.createComponentVNode)(2,f.Button,{selected:b,icon:b?"toggle-on":"toggle-off",content:b?"On":"Off",onClick:function(){function w(){return N(b?"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 N("oxy_adj",{new:A})}return w}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Critical Alert",children:(0,e.createComponentVNode)(2,f.Button,{selected:L,icon:L?"toggle-on":"toggle-off",content:L?"On":"Off",onClick:function(){function w(){return N(L?"critOff":"critOn")}return w}()})})]})}},87511:function(I,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 V(u,s){var N=typeof Symbol!="undefined"&&u[Symbol.iterator]||u["@@iterator"];if(N)return(N=N.call(u)).next.bind(N);if(Array.isArray(u)||(N=k(u))||s&&u&&typeof u.length=="number"){N&&(u=N);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 k(u,s){if(u){if(typeof u=="string")return S(u,s);var N=Object.prototype.toString.call(u).slice(8,-1);if(N==="Object"&&u.constructor&&(N=u.constructor.name),N==="Map"||N==="Set")return Array.from(u);if(N==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(N))return S(u,s)}}function S(u,s){(s==null||s>u.length)&&(s=u.length);for(var N=0,g=new Array(s);NN},c=function(s,N){var g=s.name,v=N.name;if(!g||!v)return 0;var h=g.match(y),C=v.match(y);if(h&&C&&g.replace(y,"")===v.replace(y,"")){var b=parseInt(h[1],10),B=parseInt(C[1],10);return b-B}return l(g,v)},m=function(s,N){var g=s.searchText,v=s.source,h=s.title,C=s.color,b=s.sorted,B=v.filter(p(g));return b&&B.sort(c),v.length>0&&(0,e.createComponentVNode)(2,o.Section,{title:h+" - ("+v.length+")",children:B.map(function(L){return(0,e.createComponentVNode)(2,i,{thing:L,color:C},L.name)})})},i=function(s,N){var g=(0,t.useBackend)(N),v=g.act,h=s.color,C=s.thing;return(0,e.createComponentVNode)(2,o.Button,{color:h,onClick:function(){function b(){return v("orbit",{ref:C.ref})}return b}(),children:[C.name,C.orbiters&&(0,e.createComponentVNode)(2,o.Box,{inline:!0,ml:1,children:["(",C.orbiters," ",(0,e.createComponentVNode)(2,o.Icon,{name:"eye"}),")"]})]})},d=r.Orbit=function(){function u(s,N){for(var g=(0,t.useBackend)(N),v=g.act,h=g.data,C=h.alive,b=h.antagonists,B=h.highlights,L=h.response_teams,w=h.auto_observe,T=h.dead,A=h.ghosts,x=h.misc,E=h.npcs,M=(0,t.useLocalState)(N,"searchText",""),R=M[0],O=M[1],D={},j=V(b),U;!(U=j()).done;){var W=U.value;D[W.antag]===void 0&&(D[W.antag]=[]),D[W.antag].push(W)}var K=Object.entries(D);K.sort(function($,z){return l($[0],z[0])});var G=function(){function $(z){for(var Y=0,J=[K.map(function(de){var ve=de[0],ye=de[1];return ye}),B,C,A,T,E,x];Y0&&(0,e.createComponentVNode)(2,o.Section,{title:"Antagonists",children:K.map(function($){var z=$[0],Y=$[1];return(0,e.createComponentVNode)(2,o.Section,{title:z+" - ("+Y.length+")",level:2,children:Y.filter(p(R)).sort(c).map(function(J){return(0,e.createComponentVNode)(2,i,{color:"bad",thing:J},J.name)})},z)})}),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:L,searchText:R,color:"purple"}),(0,e.createComponentVNode)(2,m,{title:"Alive",source:C,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(I,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),V=n(50175);function k(s){if(s==null)throw new TypeError("Cannot destructure "+s)}var S=(0,V.createLogger)("OreRedemption"),y=function(N){return N.toLocaleString("en-US")+" pts"},p=r.OreRedemption=function(){function s(N,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(N,g){var v=(0,t.useBackend)(g),h=v.act,C=v.data,b=C.id,B=C.points,L=C.disk,w=Object.assign({},(k(N),N));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:b?(0,e.createComponentVNode)(2,o.Button,{selected:!0,bold:!0,verticalAlign:"middle",icon:"eject",content:b.name,tooltip:"Ejects the ID card.",onClick:function(){function T(){return h("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 h("insert_id")}return T}()})}),b&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current Mining Points",children:(0,e.createComponentVNode)(2,o.Box,{bold:!0,children:y(b.points)})}),b&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Total Mining Points",children:(0,e.createComponentVNode)(2,o.Box,{bold:!0,children:y(b.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:!b,icon:"hand-holding-usd",content:"Claim",onClick:function(){function T(){return h("claim")}return T}()})})]}),(0,e.createComponentVNode)(2,o.Divider),L?(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:L.name,tooltip:"Ejects the design disk.",onClick:function(){function T(){return h("eject_disk")}return T}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!L.design||!L.compatible,icon:"upload",content:"Download",tooltip:"Downloads the design on the disk into the machine.",onClick:function(){function T(){return h("download")}return T}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Stored design",children:(0,e.createComponentVNode)(2,o.Box,{color:L.design&&(L.compatible?"good":"bad"),children:L.design||"N/A"})})]}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No design disk inserted."})]})))},c=function(N,g){var v=(0,t.useBackend)(g),h=v.act,C=v.data,b=C.sheets,B=Object.assign({},(k(N),N));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%"]]}),b.map(function(L){return(0,e.createComponentVNode)(2,d,{ore:L},L.id)})]})))})},m=function(N,g){var v=(0,t.useBackend)(g),h=v.act,C=v.data,b=C.alloys,B=Object.assign({},(k(N),N));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%"]]}),b.map(function(L){return(0,e.createComponentVNode)(2,u,{ore:L},L.id)})]})))})},i=function(N,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:N.title}),(v=N.columns)==null?void 0:v.map(function(h){return(0,e.createComponentVNode)(2,o.Stack.Item,{basis:h[1],textAlign:"center",color:"label",bold:!0,children:h[0]},h)})]})})},d=function(N,g){var v=(0,t.useBackend)(g),h=v.act,C=N.ore;if(!(C.value&&C.amount<=0&&!(["metal","glass"].indexOf(C.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",C.id])}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:C.name})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",color:C.amount>=1?"good":"gray",bold:C.amount>=1,align:"center",children:C.amount.toLocaleString("en-US")}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",children:C.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(C.amount,50),stepPixelSize:6,onChange:function(){function b(B,L){return h(C.value?"sheet":"alloy",{id:C.id,amount:L})}return b}()})})]})})},u=function(N,g){var v=(0,t.useBackend)(g),h=v.act,C=N.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",C.id])})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"30%",textAlign:"middle",align:"center",children:C.name}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"35%",textAlign:"middle",color:C.amount>=1?"good":"gray",align:"center",children:C.description}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"10%",textAlign:"center",color:C.amount>=1?"good":"gray",bold:C.amount>=1,align:"center",children:C.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(C.amount,50),stepPixelSize:6,onChange:function(){function b(B,L){return h(C.value?"sheet":"alloy",{id:C.id,amount:L})}return b}()})})]})})}},55686:function(I,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),V=n(33115),k=function(p){var l;try{l=V("./"+p+".js")}catch(m){if(m.code==="MODULE_NOT_FOUND")return(0,f.routingError)("notFound",p);throw m}var c=l[p];return c||(0,f.routingError)("missingExport",p)},S=r.PAI=function(){function y(p,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,N=k(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,N)})})})})})}return y}()},58717:function(I,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),V=n(75168),k=function(c){var m;try{m=V("./"+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,N=u.owner;if(!N)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=k(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,p)})]})})})}return l}(),y=function(c,m){var i=(0,a.useBackend)(m),d=i.act,u=i.data,s=u.idInserted,N=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 h(){return d("Authenticate")}return h}(),content:s?N:"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 h(){return d("Eject")}return h}(),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})]})},p=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 N(){return d("Back")}return N}()})}),(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 N(){d("Home")}return N}()})})]})})}},78062:function(I,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),V=r.Pacman=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.active,i=c.anchored,d=c.broken,u=c.emagged,s=c.fuel_type,N=c.fuel_usage,g=c.fuel_stored,v=c.fuel_cap,h=c.is_ai,C=c.tmp_current,b=c.tmp_max,B=c.tmp_overheat,L=c.output_max,w=c.power_gen,T=c.output_set,A=c.has_fuel,x=g/v,E=C/b,M=T*w,R=Math.round(g/N),O=Math.round(R/60),D=R>120?O+" 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:L*(u?2.5:1),step:1,className:"mt-1",onDrag:function(){function j(U,W){return l("change_power",{change_power:W})}return j}()}),"(",(0,f.formatPower)(M),")"]})})}),(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:[C," \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||h||!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:[N/1e3," dm\xB3/s"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel depletion",children:[!!A&&(N?D:"N/A"),!A&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Out of fuel"})]})]})})]})})],4)]})})}return k}()},65823:function(I,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 V(k,S){var y=(0,a.useBackend)(S),p=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 p("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 p("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 p("remove_strength")}return u}(),mr:"4px"}),i,(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:!c||i===d,onClick:function(){function u(){return p("add_strength")}return u}(),ml:"4px"})]})]})})})})}return V}()},67572:function(I,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(p,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,k):(0,e.createComponentVNode)(2,V)})})}return y}(),V=function(p,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}()})]})})})},k=function(p,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(p,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(I,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,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,i=m.busy,d=m.category,u=m.display_craftable_only,s=m.display_compact,N=m.prev_cat,g=m.next_cat,v=m.subcategory,h=m.prev_subcat,C=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 b(){return c("toggle_recipes")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Compact Mode",icon:s?"check-square-o":"square-o",selected:s,onClick:function(){function b(){return c("toggle_compact")}return b}()})],4),children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:N,icon:"arrow-left",onClick:function(){function b(){return c("backwardCat")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:g,icon:"arrow-right",onClick:function(){function b(){return c("forwardCat")}return b}()})]}),v&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:h,icon:"arrow-left",onClick:function(){function b(){return c("backwardSubCat")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:C,icon:"arrow-right",onClick:function(){function b(){return c("forwardSubCat")}return b}()})]}),s?(0,e.createComponentVNode)(2,V):(0,e.createComponentVNode)(2,k)]})]})})}return S}(),V=function(y,p){var l=(0,a.useBackend)(p),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 N(){return c("make",{make:s.ref})}return N}()}),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)})]})})},k=function(y,p){var l=(0,a.useBackend)(p),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 N(){return c("make",{make:s.ref})}return N}()}),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(I,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,p){var l=(0,a.useBackend)(p),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,V)}),(0,e.createComponentVNode)(2,k)]})})})}return S}(),V=function(y,p){var l=(0,a.useBackend)(p),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)},k=function(y,p){var l=(0,a.useBackend)(p),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)})})}},47051:function(I,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 V(p,l){if(p==null)return{};var c={},m=Object.keys(p),i,d;for(d=0;d=0)&&(c[i]=p[i]);return c}var k={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=V(l,f),d=k[m];if(!d)return null;var u=(0,a.useBackend)(c),s=u.data,N=u.act,g=s.currentTemp,v=d.label,h=d.icon,C=m===g,b=function(){N("setTemp",{temp:m})};return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Button,Object.assign({color:"transparent",selected:C,onClick:b},i,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:h}),v]})))},y=r.PoolController=function(){function p(l,c){for(var m=(0,a.useBackend)(c),i=m.data,d=i.emagged,u=i.currentTemp,s=k[u]||k.normal,N=s.label,g=s.color,v=[],h=0,C=Object.entries(k);h50?"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(N){var g,v,h=N.status;switch(h){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 C=(v?"On":"Off")+(" ["+(g?"auto":"manual")+"]");return(0,e.createComponentVNode)(2,S.ColorBox,{color:v?"good":"bad",content:g?void 0:"M",title:C})};u.defaultHooks=f.pureComponentHooks},15164:function(I,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),V=n(51185),k=n(69774),S=n(84947),y=r.PrisonerImplantManager=function(){function p(l,c){var m=(0,a.useBackend)(c),i=m.act,d=m.data,u=d.loginState,s=d.prisonerInfo,N=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,k.LoginScreen)})});var h=[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,V.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 C(){return i("id_card")}return C}()})}),(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 C(){return i("reset_points")}return C}()})]}),(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 C(){return(0,f.modalOpen)(c,"set_points")}return C}()})]}),(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(C){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: ",C.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:C.location}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:C.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 b(){return(0,f.modalOpen)(c,"warn",{uid:C.uid})}return b}()})})]})]},C.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:N.map(function(C){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: ",C.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:C.volume})}),h.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{mt:2,disabled:C.volume0?"envelope-open-text":"envelope",onClick:function(){function b(){return s("setScreen",{setScreen:6})}return b}()})}),(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 b(){return s("setScreen",{setScreen:1})}return b}()}),(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 b(){return s("setScreen",{setScreen:2})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"Relay Anonymous Information",icon:"comment",onClick:function(){function b(){return s("setScreen",{setScreen:3})}return b}()})]})]}),(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 b(){return s("setScreen",{setScreen:9})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"View Shipping Logs",icon:"clipboard-list",onClick:function(){function b(){return s("setScreen",{setScreen:10})}return b}()})]})}),!!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 b(){return s("setScreen",{setScreen:8})}return b}()})})]})})},k=function(i,d){var u=(0,a.useBackend)(d),s=u.act,N=u.data,g=N.department,v=[],h;switch(i.purpose){case"ASSISTANCE":v=N.assist_dept,h="Request assistance from another department";break;case"SUPPLIES":v=N.supply_dept,h="Request supplies from another department";break;case"INFO":v=N.info_dept,h="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:h,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function C(){return s("setScreen",{setScreen:0})}return C}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:v.filter(function(C){return C!==g}).map(function(C){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:C,textAlign:"right",className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Message",icon:"envelope",onClick:function(){function b(){return s("writeInput",{write:C,priority:"1"})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"High Priority",icon:"exclamation-circle",onClick:function(){function b(){return s("writeInput",{write:C,priority:"2"})}return b}()})]},C)})})})})},S=function(i,d){var u=(0,a.useBackend)(d),s=u.act,N=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,N=u.data,g,v;switch(i.type){case"MESSAGES":g=N.message_log,v="Message Log";break;case"SHIPPING":g=N.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 h(){return s("setScreen",{setScreen:0})}return h}()}),children:g.map(function(h){return(0,e.createComponentVNode)(2,t.Box,{textAlign:"left",children:[h.map(function(C,b){return(0,e.createVNode)(1,"div",null,C,0,null,b)}),(0,e.createVNode)(1,"hr")]},h)})})})},p=function(i,d){var u=(0,a.useBackend)(d),s=u.act,N=u.data,g=N.recipient,v=N.message,h=N.msgVerified,C=N.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 b(){return s("setScreen",{setScreen:0})}return b}()}),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:h}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Stamped by",color:"blue",children:C})]})})}),(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 b(){return s("department",{department:g})}return b}()})})})],4)},l=function(i,d){var u=(0,a.useBackend)(d),s=u.act,N=u.data,g=N.message,v=N.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 h(){return s("setScreen",{setScreen:0})}return h}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Edit Message",icon:"edit",onClick:function(){function h(){return s("writeAnnouncement")}return h}()})],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 h(){return s("sendAnnouncement")}return h}()})]})})],4)},c=function(i,d){var u=(0,a.useBackend)(d),s=u.act,N=u.data,g=N.shipDest,v=N.msgVerified,h=N.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 C(){return s("setScreen",{setScreen:0})}return C}()}),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 C(){return s("printLabel")}return C}()})]})}),(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:h.map(function(C){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:C,textAlign:"right",className:"candystripe",children:(0,e.createComponentVNode)(2,t.Button,{content:g===C?"Selected":"Select",selected:g===C,onClick:function(){function b(){return s("shipSelect",{shipSelect:C})}return b}()})},C)})})})})],4)}},51939:function(I,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),V=r.MENU={MAIN:0,LEVELS:1,DISK:2,DESTROY:3,LATHE:4,IMPRINTER:5,SETTINGS:6},k=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(p,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:V.MAIN,render:function(){function d(){return(0,e.createComponentVNode)(2,f.MainMenu)}return d}()}),(0,e.createComponentVNode)(2,f.RndRoute,{menu:V.LEVELS,render:function(){function d(){return(0,e.createComponentVNode)(2,f.CurrentLevels)}return d}()}),(0,e.createComponentVNode)(2,f.RndRoute,{menu:V.DISK,render:function(){function d(){return(0,e.createComponentVNode)(2,f.DataDiskMenu)}return d}()}),(0,e.createComponentVNode)(2,f.RndRoute,{menu:V.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===V.LATHE||u===V.IMPRINTER}return d}(),render:function(){function d(){return(0,e.createComponentVNode)(2,f.LatheMenu)}return d}()}),(0,e.createComponentVNode)(2,f.RndRoute,{menu:V.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(I,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(V,k){var S=(0,a.useBackend)(k),y=S.data,p=y.tech_levels;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createVNode)(1,"h3",null,"Current Research Levels:",16),p.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(I,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),V="design",k="tech",S=function(u,s){var N=(0,a.useBackend)(s),g=N.data,v=N.act,h=g.disk_data;return h?(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:h.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:h.level}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:h.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 C(){return v("updt_tech")}return C}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Clear Disk",icon:"trash",onClick:function(){function C(){return v("clear_tech")}return C}()}),(0,e.createComponentVNode)(2,l)]})]}):null},y=function(u,s){var N=(0,a.useBackend)(s),g=N.data,v=N.act,h=g.disk_data;if(!h)return null;var C=h.name,b=h.lathe_types,B=h.materials,L=b.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:C}),L?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Lathe Types",children:L}):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)]})]})},p=function(u,s){var N=(0,a.useBackend)(s),g=N.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===k?"Load Tech to Disk":"Load Design to Disk"}),(0,e.createComponentVNode)(2,l)]})]})},l=function(u,s){var N=(0,a.useBackend)(s),g=N.data,v=N.act,h=g.disk_type;return h?(0,e.createComponentVNode)(2,t.Button,{content:"Eject Disk",icon:"eject",onClick:function(){function C(){var b=h===k?"eject_tech":"eject_design";v(b)}return C}()}):null},c=function(u,s){var N=(0,a.useBackend)(s),g=N.data,v=g.disk_data,h=g.disk_type,C=function(){if(!v)return(0,e.createComponentVNode)(2,p);switch(h){case V:return(0,e.createComponentVNode)(2,y);case k:return(0,e.createComponentVNode)(2,S);default:return null}};return(0,e.createComponentVNode)(2,t.Section,{title:"Data Disk Contents",children:C()})},m=function(u,s){var N=(0,a.useBackend)(s),g=N.data,v=N.act,h=g.disk_type,C=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:C.sort(function(b,B){return b.name.localeCompare(B.name)}).map(function(b){var B=b.name,L=b.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(){h===k?v("copy_tech",{id:L}):v("copy_design",{id:L})}return w}()})},L)})})})})},i=r.DataDiskMenu=function(){function d(u,s){var N=(0,a.useBackend)(s),g=N.data,v=g.disk_type;return v?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.RndRoute,{submenu:f.SUBMENU.MAIN,render:function(){function h(){return(0,e.createComponentVNode)(2,c)}return h}()}),(0,e.createComponentVNode)(2,o.RndRoute,{submenu:f.SUBMENU.DISK_COPY,render:function(){function h(){return(0,e.createComponentVNode)(2,m)}return h}()})],4):null}return d}()},72751:function(I,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(V,k){var S=(0,a.useBackend)(k),y=S.data,p=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(){p("deconstruct")}return m}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject Item",icon:"eject",onClick:function(){function m(){p("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(I,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 V(k,S){var y=(0,a.useBackend)(S),p=y.data,l=y.act,c=p.category,m=p.matching_designs,i=p.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 N=s.id,g=s.name,v=s.can_build,h=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 C(){return l(u,{id:N,amount:1})}return C}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v>=5?(0,e.createComponentVNode)(2,t.Button,{content:"x5",onClick:function(){function C(){return l(u,{id:N,amount:5})}return C}()}):null}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v>=10?(0,e.createComponentVNode)(2,t.Button,{content:"x10",onClick:function(){function C(){return l(u,{id:N,amount:10})}return C}()}):null}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.map(function(C){return(0,e.createFragment)([" | ",(0,e.createVNode)(1,"span",C.is_red?"color-red":null,[C.amount,(0,e.createTextVNode)(" "),C.name],0)],0)})})]},N)})})]})}return V}()},47349:function(I,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(V,k){var S=(0,a.useBackend)(k),y=S.data,p=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";p(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 N=c?"disposeP":"disposeI";p(N,{id:u})}return s}()})},u)})})]})}return f}()},73492:function(I,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 V(k,S){var y=(0,a.useBackend)(S),p=y.data,l=y.act,c=p.menu,m=p.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 V}()},87115:function(I,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(V,k){var S=(0,a.useBackend)(k),y=S.data,p=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(h){var C=y.menu===4?"lathe_ejectsheet":"imprinter_ejectsheet";p(C,{id:m,amount:h})}return v}(),s=Math.floor(i/2e3),N=i<1,g=s===1?"":"s";return(0,e.createComponentVNode)(2,t.Table.Row,{className:N?"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(I,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(V,k){var S=(0,a.useBackend)(k),y=S.data,p=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:p}),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(I,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),V=n(51939),k=r.LatheMenu=function(){function S(y,p){var l=(0,a.useBackend)(p),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:V.SUBMENU.MAIN,render:function(){function u(){return(0,e.createComponentVNode)(2,o.LatheMainMenu)}return u}()}),(0,e.createComponentVNode)(2,t.RndRoute,{submenu:V.SUBMENU.LATHE_CATEGORY,render:function(){function u(){return(0,e.createComponentVNode)(2,o.LatheCategory)}return u}()}),(0,e.createComponentVNode)(2,t.RndRoute,{submenu:V.SUBMENU.LATHE_MAT_STORAGE,render:function(){function u(){return(0,e.createComponentVNode)(2,o.LatheMaterialStorage)}return u}()}),(0,e.createComponentVNode)(2,t.RndRoute,{submenu:V.SUBMENU.LATHE_CHEM_STORAGE,render:function(){function u(){return(0,e.createComponentVNode)(2,o.LatheChemicalStorage)}return u}()})]})}return S}()},92497:function(I,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(V,k){var S=(0,a.useBackend)(k),y=S.act;return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"Search...",onEnter:function(){function p(l,c){return y("search",{to_search:c})}return p}()})})}return f}()},25242:function(I,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),V=r.MainMenu=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.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 N=s.name,g=s.level;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:N,children:g},N)})})]})}return k}()},29933:function(I,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(V,k){var S=V.icon,y=V.children,p=V.disabled,l=V.content,c=(0,a.useBackend)(k),m=c.data,i=c.act,d=m.menu,u=m.submenu,s=d,N=u;return V.menu!==null&&V.menu!==void 0&&(s=V.menu),V.submenu!==null&&V.submenu!==void 0&&(N=V.submenu),(0,e.createComponentVNode)(2,t.Button,{content:l,icon:S,disabled:p,onClick:function(){function g(){i("nav",{menu:s,submenu:N})}return g}(),children:y})}return f}()},59959:function(I,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 V(){return(0,e.createComponentVNode)(2,t.Box,{className:"RndConsole__RndNavbar",children:[(0,e.createComponentVNode)(2,a.RndRoute,{menu:function(){function k(S){return S!==o.MENU.MAIN}return k}(),render:function(){function k(){return(0,e.createComponentVNode)(2,a.RndNavButton,{menu:o.MENU.MAIN,submenu:o.SUBMENU.MAIN,icon:"reply",content:"Main Menu"})}return k}()}),(0,e.createComponentVNode)(2,a.RndRoute,{submenu:function(){function k(S){return S!==o.SUBMENU.MAIN}return k}(),render:function(){function k(){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 k}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:function(){function k(S){return S===o.MENU.LATHE||S===o.MENU.IMPRINTER}return k}(),submenu:o.SUBMENU.MAIN,render:function(){function k(){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 k}()})]})}return V}()},28078:function(I,r,n){"use strict";r.__esModule=!0,r.RndRoute=void 0;var e=n(91819),a=r.RndRoute=function(){function t(o,f){var V=o.render,k=(0,e.useBackend)(f),S=k.data,y=S.menu,p=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,p);return c?V():null}return t}()},59991:function(I,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),V=r.SettingsMenu=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.data,c=p.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 N(){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 N}()}),(0,e.createComponentVNode)(2,o.RndRoute,{submenu:f.SUBMENU.SETTINGS_DEVICES,render:function(){function N(){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 N}()})]})}return k}()},63752:function(I,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 V=n(73492);r.LatheMainMenu=V.LatheMainMenu;var k=n(2345);r.LatheMaterials=k.LatheMaterials;var S=n(87115);r.LatheMaterialStorage=S.LatheMaterialStorage;var y=n(45805);r.LatheMenu=y.LatheMenu;var p=n(92497);r.LatheSearch=p.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(I,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),V=function(y,p){var l=y/p;return l<=.2?"good":l<=.5?"average":"bad"},k=r.RobotSelfDiagnosis=function(){function S(y,p){var l=(0,a.useBackend)(p),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:V(i.brute_damage,i.max_damage),children:i.brute_damage}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Burn Damage",color:V(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(I,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 k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.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 N(){return l("arm",{})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"lock",disabled:i,content:"Lock ALL Cyborgs",color:"bad",onClick:function(){function N(){return l("masslock",{})}return N}()})]}),(0,e.createComponentVNode)(2,V,{cyborgs:s,can_hack:m})]})})}return k}(),V=function(S,y){var p=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)"),p.length?p.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(I,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(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.dial,u=i.open,s=i.locked,N=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,V),(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,k):(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}(),V=function(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.dial,u=i.open,s=i.locked,N=function(v,h){return(0,e.createComponentVNode)(2,t.Button,{disabled:u||h&&!s,icon:"arrow-"+(h?"right":"left"),content:(h?"Right":"Left")+" "+v,iconRight:h,onClick:function(){function C(){return m(h?"turnleft":"turnright",{num:v})}return C}(),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:[N(50),N(10),N(1)]}),(0,e.createComponentVNode)(2,t.Box,{className:"Safe--dialer--right",position:"absolute",right:"5px",children:[N(1,!0),N(10,!0),N(50,!0)]}),(0,e.createComponentVNode)(2,t.Box,{className:"Safe--dialer--number",children:d})]})},k=function(p,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 N(){return m("retrieve",{index:s+1})}return N}(),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(p,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(I,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 V(k,S){var y=(0,a.useBackend)(S),p=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(N){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"#"+N.id,children:[N.mode," ",(0,e.createComponentVNode)(2,t.Button,{content:N.active?"Deactivate":"Activate",icon:"arrow-circle-right",onClick:function(){function g(){return p("toggle",{id:N.id})}return g}()})]},N.id)})]})})]})})}return V}()},46504:function(I,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),V=n(99753),k=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,p)})})})})}return c}(),y=function(m,i){var d=(0,t.useBackend)(i),u=d.act,s=window.event?m.which:m.keyCode;if(s===k.KEY_ENTER){m.preventDefault(),u("keypad",{digit:"E"});return}if(s===k.KEY_ESCAPE){m.preventDefault(),u("keypad",{digit:"C"});return}if(s===k.KEY_BACKSPACE){m.preventDefault(),u("backspace");return}if(s>=k.KEY_0&&s<=k.KEY_9){m.preventDefault(),u("keypad",{digit:s-k.KEY_0});return}if(s>=k.KEY_NUMPAD_0&&s<=k.KEY_NUMPAD_9){m.preventDefault(),u("keypad",{digit:s-k.KEY_NUMPAD_0});return}},p=function(m,i){var d=(0,t.useBackend)(i),u=d.act,s=d.data,N=s.locked,g=s.no_passcode,v=s.emagged,h=s.user_entered_code,C=[["1","2","3"],["4","5","6"],["7","8","9"],["C","0","E"]],b=g?"":N?"bad":"good";return(0,e.createComponentVNode)(2,o.Section,{fill:!0,onKeyDown:function(){function B(L){return y(L,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--"+b]),height:"100%",children:v?"ERROR":h})}),(0,e.createComponentVNode)(2,o.Table,{children:C.map(function(B){return(0,e.createComponentVNode)(2,V.TableRow,{children:B.map(function(L){return(0,e.createComponentVNode)(2,V.TableCell,{children:(0,e.createComponentVNode)(2,l,{number:L})},L)})},B[0])})})]})},l=function(m,i){var d=(0,t.useBackend)(i),u=d.act,s=d.data,N=m.number;return(0,e.createComponentVNode)(2,o.Button,{fluid:!0,bold:!0,mb:"6px",content:N,textAlign:"center",fontSize:"60px",lineHeight:1.25,width:"80px",className:(0,a.classes)(["SecureStorage__Button","SecureStorage__Button--keypad","SecureStorage__Button--"+N]),onClick:function(){function g(){return u("keypad",{digit:N})}return g}()})}},54529:function(I,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),V=n(22677),k=n(51185),S=n(69774),y=n(76519),p={"*Execute*":"execute","*Arrest*":"arrest",Incarcerated:"incarcerated",Parolled:"parolled",Released:"released",Demote:"demote",Search:"search",Monitor:"monitor"},l=function(h,C){(0,V.modalOpen)(h,"edit",{field:C.edit,value:C.value})},c=r.SecurityRecords=function(){function v(h,C){var b=(0,t.useBackend)(C),B=b.act,L=b.data,w=L.loginState,T=L.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,V.ComplexModal),(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k.LoginInfo),(0,e.createComponentVNode)(2,y.TemporaryNotice),(0,e.createComponentVNode)(2,m),A]})})]})}return v}(),m=function(h,C){var b=(0,t.useBackend)(C),B=b.act,L=b.data,w=L.currentPage,T=L.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(h,C){var b=(0,t.useBackend)(C),B=b.act,L=b.data,w=L.records,T=(0,t.useLocalState)(C,"searchText",""),A=T[0],x=T[1],E=(0,t.useLocalState)(C,"sortId","name"),M=E[0],R=E[1],O=(0,t.useLocalState)(C,"sortOrder",!0),D=O[0],j=O[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(U){return U.name+"|"+U.id+"|"+U.rank+"|"+U.fingerprint+"|"+U.status})).sort(function(U,W){var K=D?1:-1;return U[M].localeCompare(W[M])*K}).map(function(U){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"SecurityRecords__listRow--"+p[U.status],onClick:function(){function W(){return B("view",{uid_gen:U.uid_gen,uid_sec:U.uid_sec})}return W}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",U.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:U.id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:U.rank}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:U.fingerprint}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:U.status})]},U.id)})]})})})],4)},d=function(h,C){var b=(0,t.useLocalState)(C,"sortId","name"),B=b[0],L=b[1],w=(0,t.useLocalState)(C,"sortOrder",!0),T=w[0],A=w[1],x=h.id,E=h.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 M(){B===x?A(!T):(L(x),A(!0))}return M}(),children:[E,B===x&&(0,e.createComponentVNode)(2,o.Icon,{name:T?"sort-up":"sort-down",ml:"0.25rem;"})]})})})},u=function(h,C){var b=(0,t.useBackend)(C),B=b.act,L=b.data,w=L.isPrinting,T=(0,t.useLocalState)(C,"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,V.modalOpen)(C,"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(M,R){return x(R)}return E}()})})]})},s=function(h,C){var b=(0,t.useBackend)(C),B=b.act,L=b.data,w=L.isPrinting,T=L.general,A=L.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,N)})}),!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 M(){return l(C,x)}return M}()})]},E)})})})})}),(0,e.createComponentVNode)(2,g)],4)],0)},N=function(h,C){var b=(0,t.useBackend)(C),B=b.data,L=B.general;return!L||!L.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:L.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(C,w)}return A}()})]},T)})})}),!!L.has_photos&&L.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(h,C){var b=(0,t.useBackend)(C),B=b.act,L=b.data,w=L.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,V.modalOpen)(C,"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(I,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 k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.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,V):"No Seeds"})})})})}return k}(),V=function(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.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(I,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 V(k,S){var y=(0,a.useBackend)(S),p=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 p("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 p("request")}return c}()})})],0))]})})})})}return V}()},11154:function(I,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(p,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,V);case 1:return(0,e.createComponentVNode)(2,k);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}(),V=function(p,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)})})},k=function(p,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(N){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:N===u.id,icon:"file",onClick:function(){function g(){return m("select_template_category",{cat:N})}return g}(),children:N},N)})}),!!u&&s[u.id].templates.map(function(N){return(0,e.createComponentVNode)(2,t.Section,{title:N.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[N.description&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:N.description}),N.admin_notes&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Admin Notes",children:N.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:N.shuttle_id})}return g}()})})]})},N.name)})]})},S=function(p,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(I,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),V=[["good","Alive"],["average","Critical"],["bad","DEAD"]],k=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],S={average:[.25,.5],bad:[.5,1/0]},y=["bad","average","average","good","average","average","bad"],p=r.Sleeper=function(){function s(N,g){var v=(0,t.useBackend)(g),h=v.act,C=v.data,b=C.hasOccupant,B=b?(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(N,g){var v=(0,t.useBackend)(g),h=v.act,C=v.data,b=C.occupant;return(0,e.createFragment)([(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,d)],4)},c=function(N,g){var v=(0,t.useBackend)(g),h=v.act,C=v.data,b=C.occupant,B=C.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 L(){return h("auto_eject_dead_"+(B?"off":"on"))}return L}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"user-slash",content:"Eject",onClick:function(){function L(){return h("ejectify")}return L}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:b.name}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:b.maxHealth,value:b.health/b.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]},children:(0,a.round)(b.health,0)})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",color:V[b.stat][0],children:V[b.stat][1]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:b.maxTemp,value:b.bodyTemperature/b.maxTemp,color:y[b.temperatureSuitability+3],children:[(0,a.round)(b.btCelsius,0),"\xB0C,",(0,a.round)(b.btFaren,0),"\xB0F"]})}),!!b.hasBlood&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Blood Level",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:b.bloodMax,value:b.bloodLevel/b.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[b.bloodPercent,"%, ",b.bloodLevel,"cl"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pulse",verticalAlign:"middle",children:[b.pulse," BPM"]})],4)]})})},m=function(N,g){var v=(0,t.useBackend)(g),h=v.data,C=h.occupant;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant Damage",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:k.map(function(b,B){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:b[0],children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:"100",value:C[b[1]]/100,ranges:S,children:(0,a.round)(C[b[1]],0)},B)},B)})})})},i=function(N,g){var v=(0,t.useBackend)(g),h=v.act,C=v.data,b=C.hasOccupant,B=C.isBeakerLoaded,L=C.beakerMaxSpace,w=C.beakerFreeSpace,T=C.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||!b,selected:A,icon:A?"toggle-on":"toggle-off",content:A?"Active":"Inactive",onClick:function(){function x(){return h("togglefilter")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!B,icon:"eject",content:"Eject",onClick:function(){function x(){return h("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:L,value:w/L,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(N,g){var v=(0,t.useBackend)(g),h=v.act,C=v.data,b=C.occupant,B=C.chemicals,L=C.maxchem,w=C.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:L,value:T.occ_amount/L,color:x,title:"Amount of chemicals currently inside the occupant / Total amount injectable by this machine",mr:"0.5rem",children:[T.pretty_amount,"/",L,"u"]}),w.map(function(M,R){return(0,e.createComponentVNode)(2,o.Button,{disabled:!T.injectable||T.occ_amount+M>L||b.stat===2,icon:"syringe",content:"Inject "+M+"u",title:"Inject "+M+"u of "+T.title+" into the occupant",mb:"0",height:"19px",onClick:function(){function O(){return h("chemical",{chemid:T.id,amount:M})}return O}()},R)})]})})},A)})})},u=function(N,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(I,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 V(k,S){var y=(0,a.useBackend)(S),p=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 p("spin")}return m}()})})]}),(0,e.createComponentVNode)(2,t.Box,{bold:!0,lineHeight:2,color:l.resultlvl,children:l.result})]})})})}return V}()},280:function(I,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 V(k,S){var y=(0,a.useBackend)(S),p=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 p("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 p("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(N,g){return p("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 p("vend",{index:u.vend,amount:u.quantity})}return s}()})]})]},u)})]})]})})})}return V}()},47606:function(I,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),V=1e3,k=r.Smes=function(){function S(y,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,i=m.capacityPercent,d=m.capacity,u=m.charge,s=m.inputAttempt,N=m.inputting,g=m.inputLevel,v=m.inputLevelMax,h=m.inputAvailable,C=m.outputAttempt,b=m.outputting,B=m.outputLevel,L=m.outputLevelMax,w=m.outputUsed,T=i>=100&&"good"||N&&"average"||"bad",A=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 x(){return c("tryinput")}return x}(),children:s?"Auto":"Off"}),children:(0,e.createComponentVNode)(2,t.Box,{color:T,children:i>=100&&"Fully Charged"||N&&"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 x(){return c("input",{target:"min"})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:g===0,onClick:function(){function x(){return c("input",{adjust:-1e4})}return x}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Slider,{value:g/V,fillValue:h/V,minValue:0,maxValue:v/V,step:5,stepPixelSize:4,format:function(){function x(E){return(0,o.formatPower)(E*V,1)}return x}(),onChange:function(){function x(E,M){return c("input",{target:M*V})}return x}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:g===v,onClick:function(){function x(){return c("input",{adjust:1e4})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:g===v,onClick:function(){function x(){return c("input",{target:"max"})}return x}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available",children:(0,o.formatPower)(h)})]})}),(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:C?"power-off":"times",selected:C,onClick:function(){function x(){return c("tryoutput")}return x}(),children:C?"On":"Off"}),children:(0,e.createComponentVNode)(2,t.Box,{color:A,children:b?"Sending":u>0?"Not Sending":"No Charge"})}),(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:B===0,onClick:function(){function x(){return c("output",{target:"min"})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:B===0,onClick:function(){function x(){return c("output",{adjust:-1e4})}return x}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Slider,{value:B/V,minValue:0,maxValue:L/V,step:5,stepPixelSize:4,format:function(){function x(E){return(0,o.formatPower)(E*V,1)}return x}(),onChange:function(){function x(E,M){return c("output",{target:M*V})}return x}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:B===L,onClick:function(){function x(){return c("output",{adjust:1e4})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:B===L,onClick:function(){function x(){return c("output",{target:"max"})}return x}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Outputting",children:(0,o.formatPower)(w)})]})})]})})})}return S}()},66527:function(I,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 V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=0,m=1,i=2,d=l.generated,u=l.generated_ratio,s=l.tracking_state,N=l.tracking_rate,g=l.connected_panels,v=l.connected_tracker,h=l.cdir,C=l.direction,b=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 p("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:[h,"\xB0 (",C,")"]}),(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:[" ",N,"\xB0/h (",b,")"," "]}),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:h,onDrag:function(){function B(L,w){return p("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 p("track",{track:c})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"clock-o",content:"Timed",selected:s===m,onClick:function(){function B(){return p("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 p("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:N,format:function(){function B(L){var w=Math.sign(L)>0?"+":"-";return w+Math.abs(L)}return B}(),onDrag:function(){function B(L,w){return p("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 V}()},27478:function(I,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 V(k,S){var y=(0,a.useBackend)(S),p=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 p("jump",{ID:m.uids})}return i}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-circle-right",content:"Spawn",onClick:function(){function i(){return p("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 V}()},15565:function(I,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 p(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,V),(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,y)]})})})}return p}(),V=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)]})})},k=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(I,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 k(){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,V)})})}return k}(),V=r.StationAlertConsoleContent=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.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 k}()},64323:function(I,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),V=n(84947),k=function(l){return l[l.SetupFutureStationTraits=0]="SetupFutureStationTraits",l[l.ViewStationTraits=1]="ViewStationTraits",l}(k||{}),S=function(c,m){var i=(0,o.useBackend)(m),d=i.act,u=i.data,s=u.future_station_traits,N=(0,o.useLocalState)(m,"selectedFutureTrait",null),g=N[0],v=N[1],h=Object.fromEntries(u.valid_station_traits.map(function(b){return[b.name,b.path]})),C=Object.keys(h);return C.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:C,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 b(){if(g){var B=h[g],L=[B];if(s){var w,T=s.map(function(A){return A.path});if(T.indexOf(B)!==-1)return;L=(w=L).concat.apply(w,T)}d("setup_future_traits",{station_traits:L})}}return b}(),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(b){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:b.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(L){if(L.path!==b.path)return L.path})})}return B}(),children:"Delete"})})]})},b.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 b(){return d("clear_future_traits")}return b}(),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 b(){return d("setup_future_traits",{station_traits:[]})}return b}(),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 N(){return d("revert",{ref:s.ref})}return N}()})})]})},s.ref)})}):(0,e.createComponentVNode)(2,f.Box,{textAlign:"center",children:"There are no active station traits."})},p=r.StationTraitsPanel=function(){function l(c,m){var i=(0,o.useLocalState)(m,"station_traits_tab",k.ViewStationTraits),d=i[0],u=i[1],s;switch(d){case k.SetupFutureStationTraits:s=(0,e.createComponentVNode)(2,S);break;case k.ViewStationTraits:s=(0,e.createComponentVNode)(2,y);break;default:(0,t.exhaustiveCheck)(d)}return(0,e.createComponentVNode)(2,V.Window,{title:"Modify Station Traits",height:350,width:350,children:(0,e.createComponentVNode)(2,V.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===k.ViewStationTraits,onClick:function(){function N(){return u(k.ViewStationTraits)}return N}(),children:"View"}),(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"edit",selected:d===k.SetupFutureStationTraits,onClick:function(){function N(){return u(k.SetupFutureStationTraits)}return N}(),children:"Edit"})]})}),(0,e.createComponentVNode)(2,f.Stack.Item,{m:0,children:[(0,e.createComponentVNode)(2,f.Divider),s]})]})})})}return l}()},57633:function(I,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(p,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,V),(0,e.createComponentVNode)(2,S)]})})})}return y}(),V=function(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.helmet,u=i.suit,s=i.magboots,N=i.mask,g=i.storage,v=i.open,h=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 C(){return m("cook")}return C}()}),(0,e.createComponentVNode)(2,t.Button,{content:h?"Unlock":"Lock",icon:h?"unlock":"lock",disabled:v,onClick:function(){function C(){return m("toggle_lock")}return C}()})],4),children:v&&!h?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,k,{object:d,label:"Helmet",missingText:"helmet",eject:"dispense_helmet"}),(0,e.createComponentVNode)(2,k,{object:u,label:"Suit",missingText:"suit",eject:"dispense_suit"}),(0,e.createComponentVNode)(2,k,{object:s,label:"Boots",missingText:"boots",eject:"dispense_boots"}),(0,e.createComponentVNode)(2,k,{object:N,label:"Breathmask",missingText:"mask",eject:"dispense_mask"}),(0,e.createComponentVNode)(2,k,{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:h?"lock":"exclamation-circle",size:"5",mb:3}),(0,e.createVNode)(1,"br"),h?"The unit is locked.":"The unit is closed."]})})})},k=function(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=p.object,u=p.label,s=p.missingText,N=p.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(N)}return g}()}):(0,e.createComponentVNode)(2,t.Box,{color:"silver",bold:!0,children:["No ",s," found."]})})})},S=function(p,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(I,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),V=n(2971),k=n(30381),S=n(84947),y=n(99753),p=r.SupermatterMonitor=function(){function i(d,u){var s=(0,f.useBackend)(u),N=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),N=s.act,g=s.data,v=g.supermatters,h=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,V.Section,{fill:!0,title:"Detected Supermatters",buttons:(0,e.createComponentVNode)(2,V.Button,{icon:"sync",content:"Refresh",onClick:function(){function C(){return N("refresh")}return C}()}),children:(0,e.createComponentVNode)(2,V.Table,{children:h.map(function(C){return(0,e.createComponentVNode)(2,V.Table.Row,{children:[(0,e.createComponentVNode)(2,V.Table.Cell,{children:C.supermatter_id+". "+C.area_name}),(0,e.createComponentVNode)(2,V.Table.Cell,{collapsing:!0,color:"label",children:"Integrity:"}),(0,e.createComponentVNode)(2,V.Table.Cell,{collapsing:!0,width:"120px",children:(0,e.createComponentVNode)(2,V.ProgressBar,{value:C.integrity/100,ranges:{good:[.9,1/0],average:[.5,.9],bad:[-1/0,.5]}})}),(0,e.createComponentVNode)(2,V.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,V.Button,{content:"Details",onClick:function(){function b(){return N("view",{view:C.supermatter_id})}return b}()})})]},C.supermatter_id)})})})})})},m=function(d,u){var s=(0,f.useBackend)(u),N=s.act,g=s.data,v=g.active,h=g.SM_integrity,C=g.SM_power,b=g.SM_ambienttemp,B=g.SM_ambientpressure,L=(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(L.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,V.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{width:"270px",children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,scrollable:!0,title:"Metrics",children:(0,e.createComponentVNode)(2,V.LabeledList,{children:[(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,V.ProgressBar,{value:h/100,ranges:{good:[.9,1/0],average:[.5,.9],bad:[-1/0,.5]}})}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Relative EER",children:(0,e.createComponentVNode)(2,V.ProgressBar,{value:C,minValue:0,maxValue:5e3,ranges:{good:[-1/0,5e3],average:[5e3,7e3],bad:[7e3,1/0]},children:(0,o.toFixed)(C)+" MeV/cm3"})}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,V.ProgressBar,{value:l(b),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)(b)+" K"})}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,V.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,V.Stack.Item,{grow:!0,basis:0,children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,scrollable:!0,title:"Gases",buttons:(0,e.createComponentVNode)(2,V.Button,{icon:"arrow-left",content:"Back",onClick:function(){function T(){return N("back")}return T}()}),children:(0,e.createComponentVNode)(2,V.LabeledList,{children:L.map(function(T){return(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:(0,k.getGasLabel)(T.name),children:(0,e.createComponentVNode)(2,V.ProgressBar,{color:(0,k.getGasColor)(T.name),value:T.amount,minValue:0,maxValue:w,children:(0,o.toFixed)(T.amount,2)+"%"})},T.name)})})})})]})})})}},55055:function(I,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 V(k,S){var y=(0,a.useBackend)(S),p=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 p(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 V}()},61225:function(I,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,")},V=r.TEG=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.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 k}()},97552:function(I,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 k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.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 N(){return l("print_logs")}return N}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",content:"Delete All Logs",disabled:!i.length,color:"bad",align:"center",onClick:function(){function N(){return l("delete_logs")}return N}()})]})]})}),i.length?(0,e.createComponentVNode)(2,V):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No Records"})]})})}return k}(),V=r.TachyonArrayContent=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.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 k}()},33291:function(I,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 V(k,S){var y=(0,a.useBackend)(S),p=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 p("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 p("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 p("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 p("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 p("pressure",{pressure:"reset"})}return m}()})]}),c]})})})})}return V}()},75480:function(I,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 V(k,S){var y=(0,a.useBackend)(S),p=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 p("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 p("plasma")}return i}()})})]})})})}return V}()},62291:function(I,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 p(l,c){var m=(0,a.useBackend)(c),i=m.act,d=m.data,u=d.ion,s=(0,a.useLocalState)(c,"tabIndex",0),N=s[0],g=s[1],v=function(){function h(C){switch(C){case 0:return(0,e.createComponentVNode)(2,k);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 h}();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,V),(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"wrench",selected:N===0,onClick:function(){function h(){return g(0)}return h}(),children:"Configuration"},"ConfigPage"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"link",selected:N===1,onClick:function(){function h(){return g(1)}return h}(),children:"Device Linkage"},"LinkagePage"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"user-times",selected:N===2,onClick:function(){function h(){return g(2)}return h}(),children:"User Filtering"},"FilterPage")]}),v(N)]})})}return p}(),V=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."})},k=function(l,c){var m=(0,a.useBackend)(c),i=m.act,d=m.data,u=d.active,s=d.sectors_available,N=d.nttc_toggle_jobs,g=d.nttc_toggle_job_color,v=d.nttc_toggle_name_color,h=d.nttc_toggle_command_bold,C=d.nttc_job_indicator_type,b=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 L(){return i("toggle_active")}return L}()})}),(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:N?"On":"Off",selected:N,icon:"user-tag",onClick:function(){function L(){return i("nttc_toggle_jobs")}return L}()})}),(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 L(){return i("nttc_toggle_job_color")}return L}()})}),(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 L(){return i("nttc_toggle_name_color")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Command Amplification",children:(0,e.createComponentVNode)(2,t.Button,{content:h?"On":"Off",selected:h,icon:"volume-up",onClick:function(){function L(){return i("nttc_toggle_command_bold")}return L}()})})]})}),(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:C||"Unset",selected:C,icon:"pencil-alt",onClick:function(){function L(){return i("nttc_job_indicator_type")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Language Conversion",children:(0,e.createComponentVNode)(2,t.Button,{content:b||"Unset",selected:b,icon:"globe",onClick:function(){function L(){return i("nttc_setting_language")}return L}()})}),(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 L(){return i("network_id")}return L}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Maintenance",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Import Configuration",icon:"file-import",onClick:function(){function L(){return i("import")}return L}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Export Configuration",icon:"file-export",onClick:function(){function L(){return i("export")}return L}()})]})],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 N(){return i("change_password")}return N}()})})}),(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(N){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:N.addr}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:N.net_id}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:N.sector}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:N.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:N.addr})}return g}()})})]},N.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 N(){return i("remove_filter",{user:s})}return N}()})})]},s)})]})})}},82905:function(I,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,p){var l=(0,a.useBackend)(p),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,V):(0,e.createComponentVNode)(2,k)]})})}return S}(),V=function(y,p){var l=(0,a.useBackend)(p),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}()})})]})})},k=function(y,p){var l=(0,a.useBackend)(p),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(I,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 V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.targetsTeleport?l.targetsTeleport:{},m=0,i=1,d=2,u=l.calibrated,s=l.calibrating,N=l.powerstation,g=l.regime,v=l.teleporterhub,h=l.target,C=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:[(!N||!v)&&(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Error",children:[v,!N&&(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:" Powerstation not linked "}),N&&!v&&(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:" Teleporter hub not linked "})]}),N&&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:h,options:Object.keys(c),color:h!=="None"?"default":"bad",onSelected:function(){function b(B){return p("settarget",{x:c[B].x,y:c[B].y,z:c[B].z})}return b}()}),g===i&&(0,e.createComponentVNode)(2,t.Dropdown,{width:18.2,selected:h,options:Object.keys(c),color:h!=="None"?"default":"bad",onSelected:function(){function b(B){return p("settarget",{x:c[B].x,y:c[B].y,z:c[B].z})}return b}()}),g===d&&(0,e.createComponentVNode)(2,t.Box,{children:h})]})]}),(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 b(){return p("setregime",{regime:i})}return b}()})}),(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 b(){return p("setregime",{regime:m})}return b}()})}),(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:!C,onClick:function(){function b(){return p("setregime",{regime:d})}return b}()})})]}),(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:[h!=="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 b(){return p("calibrate")}return b}()})})]}),h==="None"&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"21px",children:"No target set"})]})]})]}),!!(C&&N&&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 b(){return p("load")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject",tooltip:"Ejects the GPS device",icon:"eject",onClick:function(){function b(){return p("eject")}return b}()})]})})]})})})})}return V}()},40759:function(I,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),V=r.TempGun=function(){function p(l,c){var m=(0,t.useBackend)(c),i=m.act,d=m.data,u=d.target_temperature,s=d.temperature,N=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:N,value:u,format:function(){function v(h){return(0,a.toFixed)(h,2)}return v}(),width:"50px",onDrag:function(){function v(h,C){return i("target_temperature",{target_temperature:C})}return v}()}),"\xB0C"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current Temperature",children:(0,e.createComponentVNode)(2,o.Box,{color:k(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 p}(),k=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(I,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),V=n(2971),k=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}(),p=r.TextInputModal=function(){function c(m,i){var d=(0,o.useBackend)(i),u=d.act,s=d.data,N=s.max_length,g=s.message,v=g===void 0?"":g,h=s.multiline,C=s.placeholder,b=s.timeout,B=s.title,L=(0,o.useLocalState)(i,"input",C||""),w=L[0],T=L[1],A=function(){function M(R){if(R!==w){var O=h?S(R):y(R);T(O)}}return M}(),x=h||w.length>=40,E=130+(v.length>40?Math.ceil(v.length/4):0)+(x?80:0);return(0,e.createComponentVNode)(2,k.Window,{title:B,width:325,height:E,children:[b&&(0,e.createComponentVNode)(2,a.Loader,{value:b}),(0,e.createComponentVNode)(2,k.Window.Content,{onKeyDown:function(){function M(R){var O=window.event?R.which:R.keyCode;O===f.KEY_ENTER&&(!x||!R.shiftKey)&&u("submit",{entry:w}),O===f.KEY_ESCAPE&&u("cancel")}return M}(),children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,children:(0,e.createComponentVNode)(2,V.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Box,{color:"label",children:v})}),(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,l,{input:w,onType:A})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:w,message:w.length+"/"+N})})]})})})]})}return c}(),l=function(m,i){var d=(0,o.useBackend)(i),u=d.act,s=d.data,N=s.max_length,g=s.multiline,v=m.input,h=m.onType,C=g||v.length>=40;return(0,e.createComponentVNode)(2,V.TextArea,{autoFocus:!0,autoSelect:!0,height:g||v.length>=40?"100%":"1.8rem",maxLength:N,onEscape:function(){function b(){return u("cancel")}return b}(),onEnter:function(){function b(B){C&&B.shiftKey||(B.preventDefault(),u("submit",{entry:v}))}return b}(),onInput:function(){function b(B,L){return h(L)}return b}(),placeholder:"Type something...",value:v})}},82296:function(I,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),V=r.ThermoMachine=function(){function k(S,y){var p=(0,t.useBackend)(y),l=p.act,c=p.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 k}()},68488:function(I,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 V(k,S){var y=(0,a.useBackend)(S),p=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 p("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 p("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 p("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 p("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 p("tanktwo")}return u}()}):(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No Tank"})})})})]})})}return V}()},26868:function(I,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),V=r.TurbineComputer=function(){function y(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.compressor,u=i.compressor_broken,s=i.turbine,N=i.turbine_broken,g=i.online,v=!!(d&&!u&&s&&!N);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 h(){return m("toggle_power")}return h}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Disconnect",onClick:function(){function h(){return m("disconnect")}return h}()})],4),children:v?(0,e.createComponentVNode)(2,S):(0,e.createComponentVNode)(2,k)})})})}return y}(),k=function(p,l){var c=(0,a.useBackend)(l),m=c.data,i=m.compressor,d=m.compressor_broken,u=m.turbine,s=m.turbine_broken,N=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(p,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(I,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),V=n(2971),k=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"}},p=r.Uplink=function(){function N(g,v){var h=(0,f.useBackend)(v),C=h.act,b=h.data,B=b.cart,L=(0,f.useLocalState)(v,"tabIndex",0),w=L[0],T=L[1],A=(0,f.useLocalState)(v,"searchText",""),x=A[0],E=A[1];return(0,e.createComponentVNode)(2,k.Window,{width:900,height:600,theme:"syndicate",children:[(0,e.createComponentVNode)(2,S.ComplexModal),(0,e.createComponentVNode)(2,k.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,V.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Tabs,{children:[(0,e.createComponentVNode)(2,V.Tabs.Tab,{selected:w===0,onClick:function(){function M(){T(0),E("")}return M}(),icon:"store",children:"View Market"},"PurchasePage"),(0,e.createComponentVNode)(2,V.Tabs.Tab,{selected:w===1,onClick:function(){function M(){T(1),E("")}return M}(),icon:"shopping-cart",children:["View Shopping Cart"," ",B&&B.length?"("+B.length+")":""]},"Cart"),(0,e.createComponentVNode)(2,V.Tabs.Tab,{selected:w===2,onClick:function(){function M(){T(2),E("")}return M}(),icon:"user",children:"Exploitable Information"},"ExploitableInfo"),(0,e.createComponentVNode)(2,V.Tabs.Tab,{onClick:function(){function M(){return C("lock")}return M}(),icon:"lock",children:"Lock Uplink"},"LockUplink")]})}),(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:y(w)})]})})]})}return N}(),l=function(g,v){var h=(0,f.useBackend)(v),C=h.act,b=h.data,B=b.crystals,L=b.cats,w=(0,f.useLocalState)(v,"uplinkItems",L[0].items),T=w[0],A=w[1],x=(0,f.useLocalState)(v,"searchText",""),E=x[0],M=x[1],R=function(K,G){G===void 0&&(G="");var $=(0,o.createSearch)(G,function(z){var Y=z.hijack_only===1?"|hijack":"";return z.name+"|"+z.desc+"|"+z.cost+"tc"+Y});return(0,t.flow)([(0,a.filter)(function(z){return z==null?void 0:z.name}),G&&(0,a.filter)($),(0,a.sortBy)(function(z){return z==null?void 0:z.name})])(K)},O=function(K){if(M(K),K==="")return A(L[0].items);A(R(L.map(function(G){return G.items}).flat(),K))},D=(0,f.useLocalState)(v,"showDesc",1),j=D[0],U=D[1];return(0,e.createComponentVNode)(2,V.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,V.Stack,{vertical:!0,children:(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Section,{title:"Current Balance: "+B+"TC",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,V.Button.Checkbox,{content:"Show Descriptions",checked:j,onClick:function(){function W(){return U(!j)}return W}()}),(0,e.createComponentVNode)(2,V.Button,{content:"Random Item",icon:"question",onClick:function(){function W(){return C("buyRandom")}return W}()}),(0,e.createComponentVNode)(2,V.Button,{content:"Refund Currently Held Item",icon:"undo",onClick:function(){function W(){return C("refund")}return W}()})],4),children:(0,e.createComponentVNode)(2,V.Input,{fluid:!0,placeholder:"Search Equipment",onInput:function(){function W(K,G){O(G)}return W}(),value:E})})})}),(0,e.createComponentVNode)(2,V.Stack,{fill:!0,mt:.3,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,V.Tabs,{vertical:!0,children:L.map(function(W){return(0,e.createComponentVNode)(2,V.Tabs.Tab,{selected:E!==""?!1:W.items===T,onClick:function(){function K(){A(W.items),M("")}return K}(),children:W.cat},W)})})})}),(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,V.Stack,{vertical:!0,children:T.map(function(W){return(0,e.createComponentVNode)(2,V.Stack.Item,{p:1,backgroundColor:"rgba(255, 0, 0, 0.1)",children:(0,e.createComponentVNode)(2,i,{i:W,showDecription:j},(0,o.decodeHtmlEntities)(W.name))},(0,o.decodeHtmlEntities)(W.name))})})})})]})]})},c=function(g,v){var h=(0,f.useBackend)(v),C=h.act,b=h.data,B=b.cart,L=b.crystals,w=b.cart_price,T=(0,f.useLocalState)(v,"showDesc",0),A=T[0],x=T[1];return(0,e.createComponentVNode)(2,V.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,scrollable:!0,title:"Current Balance: "+L+"TC",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,V.Button.Checkbox,{content:"Show Descriptions",checked:A,onClick:function(){function E(){return x(!A)}return E}()}),(0,e.createComponentVNode)(2,V.Button,{content:"Empty Cart",icon:"trash",onClick:function(){function E(){return C("empty_cart")}return E}(),disabled:!B}),(0,e.createComponentVNode)(2,V.Button,{content:"Purchase Cart ("+w+"TC)",icon:"shopping-cart",onClick:function(){function E(){return C("purchase_cart")}return E}(),disabled:!B||w>L})],4),children:(0,e.createComponentVNode)(2,V.Stack,{vertical:!0,children:B?B.map(function(E){return(0,e.createComponentVNode)(2,V.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,V.Box,{italic:!0,children:"Your Shopping Cart is empty!"})})})}),(0,e.createComponentVNode)(2,m)]})},m=function(g,v){var h=(0,f.useBackend)(v),C=h.act,b=h.data,B=b.cats,L=b.lucky_numbers;return(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,scrollable:!0,title:"Suggested Purchases",buttons:(0,e.createComponentVNode)(2,V.Button,{icon:"dice",content:"See more suggestions",onClick:function(){function w(){return C("shuffle_lucky_numbers")}return w}()}),children:(0,e.createComponentVNode)(2,V.Stack,{wrap:!0,children:L.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,V.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 h=g.i,C=g.showDecription,b=C===void 0?1:C,B=g.buttons,L=B===void 0?(0,e.createComponentVNode)(2,d,{i:h}):B;return(0,e.createComponentVNode)(2,V.Section,{title:(0,o.decodeHtmlEntities)(h.name),showBottom:b,buttons:L,children:b?(0,e.createComponentVNode)(2,V.Box,{italic:!0,children:(0,o.decodeHtmlEntities)(h.desc)}):null})},d=function(g,v){var h=(0,f.useBackend)(v),C=h.act,b=h.data,B=g.i,L=b.crystals;return(0,e.createFragment)([(0,e.createComponentVNode)(2,V.Button,{icon:"shopping-cart",color:B.hijack_only===1&&"red",tooltip:"Add to cart.",tooltipPosition:"left",onClick:function(){function w(){return C("add_to_cart",{item:B.obj_path})}return w}(),disabled:B.cost>L}),(0,e.createComponentVNode)(2,V.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 C("buyItem",{item:B.obj_path})}return w}(),disabled:B.cost>L})],4)},u=function(g,v){var h=(0,f.useBackend)(v),C=h.act,b=h.data,B=g.i,L=b.exploitable;return(0,e.createComponentVNode)(2,V.Stack,{children:[(0,e.createComponentVNode)(2,V.Button,{icon:"times",content:"("+B.cost*B.amount+"TC)",tooltip:"Remove from cart.",tooltipPosition:"left",onClick:function(){function w(){return C("remove_from_cart",{item:B.obj_path})}return w}()}),(0,e.createComponentVNode)(2,V.Button,{icon:"minus",tooltip:B.limit===0&&"Discount already redeemed!",ml:"5px",onClick:function(){function w(){return C("set_cart_item_quantity",{item:B.obj_path,quantity:--B.amount})}return w}(),disabled:B.amount<=0}),(0,e.createComponentVNode)(2,V.Button.Input,{content:B.amount,width:"45px",tooltipPosition:"bottom-end",tooltip:B.limit===0&&"Discount already redeemed!",onCommit:function(){function w(T,A){return C("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,V.Button,{mb:.3,icon:"plus",tooltipPosition:"bottom-start",tooltip:B.limit===0&&"Discount already redeemed!",onClick:function(){function w(){return C("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 h=(0,f.useBackend)(v),C=h.act,b=h.data,B=b.exploitable,L=(0,f.useLocalState)(v,"selectedRecord",B[0]),w=L[0],T=L[1],A=(0,f.useLocalState)(v,"searchText",""),x=A[0],E=A[1],M=function(D,j){j===void 0&&(j="");var U=(0,o.createSearch)(j,function(W){return W.name});return(0,t.flow)([(0,a.filter)(function(W){return W==null?void 0:W.name}),j&&(0,a.filter)(U),(0,a.sortBy)(function(W){return W.name})])(D)},R=M(B,x);return(0,e.createComponentVNode)(2,V.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,scrollable:!0,title:"Exploitable Records",children:[(0,e.createComponentVNode)(2,V.Input,{fluid:!0,mb:1,placeholder:"Search Crew",onInput:function(){function O(D,j){return E(j)}return O}()}),(0,e.createComponentVNode)(2,V.Tabs,{vertical:!0,children:R.map(function(O){return(0,e.createComponentVNode)(2,V.Tabs.Tab,{selected:O===w,onClick:function(){function D(){return T(O)}return D}(),children:O.name},O)})})]})}),(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,scrollable:!0,title:w.name,children:(0,e.createComponentVNode)(2,V.LabeledList,{children:[(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Age",children:w.age}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Fingerprint",children:w.fingerprint}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Rank",children:w.rank}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Sex",children:w.sex}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Species",children:w.species})]})})})]})}},7307:function(I,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 p=(0,a.useBackend)(y),l=p.act,c=p.data,m=S.product,i=S.productStock,d=S.productImage,u=c.chargesMoney,s=c.user,N=c.usermoney,g=c.inserted_cash,v=c.vend_ready,h=c.inserted_item_name,C=!u||m.price===0,b="ERROR!",B="";C?(b="FREE",B="arrow-circle-down"):(b=m.price,B="shopping-cart");var L=!v||i===0||!C&&m.price>N&&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:L,icon:B,content:b,textAlign:"left",onClick:function(){function w(){return l("vend",{inum:m.inum})}return w}()})})]})},V=r.Vending=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.user,i=c.usermoney,d=c.inserted_cash,u=c.chargesMoney,s=c.product_records,N=s===void 0?[]:s,g=c.hidden_records,v=g===void 0?[]:g,h=c.stock,C=c.vend_ready,b=c.inserted_item_name,B=c.panel_open,L=c.speaker,w=c.imagelist,T;return T=[].concat(N),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:!!b&&(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:(0,e.createVNode)(1,"span",null,b,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:L?"check":"volume-mute",selected:L,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:h[A.name],productImage:w[A.path]},A.name)})})})})]})})})}return k}()},25485:function(I,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 V(k,S){var y=(0,a.useBackend)(S),p=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 p("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 p("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 p("volume",{channel:m.num,volume:100})}return d}()})})})]})})],4,m.num)})})})})}return V}()},26564:function(I,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 V(k,S){var y=(0,a.useBackend)(S),p=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(N){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{mb:1,fluid:!0,lineHeight:3,color:"translucent",multiLine:N,content:N+(s?" ("+(u[N]||0)+")":""),onClick:function(){function g(){return p("vote",{target:N})}return g}(),selected:N===d})},N)})]})})})}return V}()},496:function(I,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 V(k,S){var y=(0,a.useBackend)(S),p=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 p("cut",{wire:d.color})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Pulse",onClick:function(){function u(){return p("pulse",{wire:d.color})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{content:d.attached?"Detach":"Attach",onClick:function(){function u(){return p("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 V}()},28919:function(I,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 V(k,S){var y=(0,a.useBackend)(S),p=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 p("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 p("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 p("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 p("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 p("honk")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider)]})})]})})}return V}()},14635:function(I,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(p,l){var c=typeof Symbol!="undefined"&&p[Symbol.iterator]||p["@@iterator"];if(c)return(c=c.call(p)).next.bind(c);if(Array.isArray(p)||(c=V(p))||l&&p&&typeof p.length=="number"){c&&(p=c);var m=0;return function(){return m>=p.length?{done:!0}:{done:!1,value:p[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 V(p,l){if(p){if(typeof p=="string")return k(p,l);var c=Object.prototype.toString.call(p).slice(8,-1);if(c==="Object"&&p.constructor&&(c=p.constructor.name),c==="Map"||c==="Set")return Array.from(p);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return k(p,l)}}function k(p,l){(l==null||l>p.length)&&(l=p.length);for(var c=0,m=new Array(l);c0&&!b.includes(j.ref)&&!h.includes(j.ref),checked:h.includes(j.ref),onClick:function(){function U(){return B(j.ref)}return U}()},j.desc)})]})]})})}return p}()},29136:function(I,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,p,l,c){return Sl?"average":S>c?"bad":"good"},V=r.AtmosScan=function(){function k(S,y){var p=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"})(p).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 k}()},83326:function(I,r,n){"use strict";r.__esModule=!0,r.BeakerContents=void 0;var e=n(28823),a=n(2971),t=n(64635),o=function(k){return k+" unit"+(k===1?"":"s")},f=r.BeakerContents=function(){function V(k){var S=k.beakerLoaded,y=k.beakerContents,p=y===void 0?[]:y,l=k.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."})||p.length===0&&(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",children:"Beaker is empty."}),p.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 V}();f.propTypes={beakerLoaded:t.bool,beakerContents:t.array,buttons:t.arrayOf(t.element)}},86041:function(I,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(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,l=p.locked,c=p.noaccess,m=p.maintpanel,i=p.on,d=p.autopatrol,u=p.canhack,s=p.emagged,N=p.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:!N,content:"AI Remote Control",disabled:c,onClick:function(){function g(){return y("disableremote")}return g}()})})]})})],4)}return f}()},22677:function(I,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 p(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 p}(),V=r.modalRegisterBodyOverride=function(){function p(l,c){o[l]=c}return p}(),k=r.modalAnswer=function(){function p(l,c,m,i){var d=(0,a.useBackend)(l),u=d.act,s=d.data;if(s.modal){var N=Object.assign(s.modal.args||{},i||{});u("modal_answer",{id:c,answer:m,arguments:JSON.stringify(N)})}}return p}(),S=r.modalClose=function(){function p(l,c){var m=(0,a.useBackend)(l),i=m.act;i("modal_close",{id:c})}return p}(),y=r.ComplexModal=function(){function p(l,c){var m=(0,a.useBackend)(c),i=m.data;if(i.modal){var d=i.modal,u=d.id,s=d.text,N=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}()}),h,C,b="auto";if(o[u])h=o[u](i.modal,c);else if(N==="input"){var B=i.modal.value;g=function(){function w(T){return k(c,u,B)}return w}(),h=(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}()}),C=(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 k(c,u,B)}return w}()}),(0,e.createComponentVNode)(2,t.Box,{clear:"both"})]})}else if(N==="choice"){var L=typeof i.modal.choices=="object"?Object.values(i.modal.choices):i.modal.choices;h=(0,e.createComponentVNode)(2,t.Dropdown,{options:L,selected:i.modal.value,width:"100%",my:"0.5rem",onSelected:function(){function w(T){return k(c,u,T)}return w}()}),b="initial"}else N==="bento"?h=(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 k(c,u,T+1)}return A}(),children:(0,e.createVNode)(1,"img",null,null,1,{src:w})})},T)})}):N==="boolean"&&(C=(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 k(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 k(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:b,"padding-bottom":"5px",children:[s&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:s}),o[u]&&v,h,C]})}}return p}()},692:function(I,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),V=f.COLORS.department,k=["Captain","Head of Security","Chief Engineer","Chief Medical Officer","Research Director","Head of Personnel","Quartermaster"],S=function(m){return k.indexOf(m)!==-1?"green":"orange"},y=function(m){if(k.indexOf(m)!==-1)return!0},p=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 N=(0,a.useBackend)(i),g=N.data;s=g}var v=s,h=v.manifest,C=h.heads,b=h.sec,B=h.eng,L=h.med,w=h.sci,T=h.ser,A=h.sup,x=h.misc;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:V.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:p(C)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:V.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:p(b)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:V.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:p(B)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:V.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:p(L)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:V.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:p(w)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:V.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:p(T)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:V.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:p(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:p(x)})]})}return c}()},98658:function(I,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(V,k){var S=(0,t.useBackend)(k),y=S.act,p=S.data,l=p.large_buttons,c=p.swapped_buttons,m=V.input,i=V.message,d=V.disabled,u=(0,e.createComponentVNode)(2,a.Button,{color:"good",content:"Submit",bold:!!l,fluid:!!l,onClick:function(){function N(){return y("submit",{entry:m})}return N}(),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 N(){return y("cancel")}return N}(),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(I,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(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,l=V.siliconUser,c=l===void 0?p.siliconUser:l,m=V.locked,i=m===void 0?p.locked:m,d=V.normallyLocked,u=d===void 0?p.normallyLocked:d,s=V.onLockStatusChange,N=s===void 0?function(){return y("lock")}:s,g=V.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 h(){N&&N(!i)}return h}()})})]})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:["Swipe ",v," to ",i?"unlock":"lock"," this interface."]})}return f}()},2146:function(I,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(V){var k=V.value;return(0,e.createVNode)(1,"div","AlertModal__Loader",(0,e.createComponentVNode)(2,t.Box,{className:"AlertModal__LoaderProgress",style:{width:(0,a.clamp01)(k)*100+"%"}}),2)}return f}()},51185:function(I,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(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,l=p.loginState;if(p)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(I,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(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,l=p.loginState,c=p.isAI,m=p.isRobot,i=p.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(I,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(V){var k=V.operating,S=V.name;if(k)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(I,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 V(k,S){var y=(0,t.useBackend)(S),p=y.act,l=k.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,N){return p("freq",{freq:N})}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,N){return p("code",{code:N})}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 p("signal")}return u}()})]})}return V}()},79969:function(I,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),V=n(2971),k=r.SimpleRecords=function(){function p(l,c){var m=l.data.records;return(0,e.createComponentVNode)(2,V.Box,{children:m?(0,e.createComponentVNode)(2,y,{data:l.data,recordType:l.recordType}):(0,e.createComponentVNode)(2,S,{data:l.data})})}return p}(),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],N=u[1],g=function(C,b){b===void 0&&(b="");var B=(0,t.createSearch)(b,function(L){return L.Name});return(0,o.flow)([(0,f.filter)(function(L){return L==null?void 0:L.Name}),b&&(0,f.filter)(B),(0,f.sortBy)(function(L){return L.Name})])(d)},v=g(d,s);return(0,e.createComponentVNode)(2,V.Box,{children:[(0,e.createComponentVNode)(2,V.Input,{fluid:!0,mb:1,placeholder:"Search records...",onInput:function(){function h(C,b){return N(b)}return h}()}),v.map(function(h){return(0,e.createComponentVNode)(2,V.Box,{children:(0,e.createComponentVNode)(2,V.Button,{mb:.5,content:h.Name,icon:"user",onClick:function(){function C(){return i("Records",{target:h.uid})}return C}()})},h)})]})},y=function(l,c){var m=(0,a.useBackend)(c),i=m.act,d=l.data.records,u=d.general,s=d.medical,N=d.security,g;switch(l.recordType){case"MED":g=(0,e.createComponentVNode)(2,V.Section,{level:2,title:"Medical Data",children:s?(0,e.createComponentVNode)(2,V.LabeledList,{children:[(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Blood Type",children:s.blood_type}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Minor Disabilities",children:s.mi_dis}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Details",children:s.mi_dis_d}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Major Disabilities",children:s.ma_dis}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Details",children:s.ma_dis_d}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Allergies",children:s.alg}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Details",children:s.alg_d}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Current Diseases",children:s.cdi}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Details",children:s.cdi_d}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Important Notes",children:s.notes})]}):(0,e.createComponentVNode)(2,V.Box,{color:"red",bold:!0,children:"Medical record lost!"})});break;case"SEC":g=(0,e.createComponentVNode)(2,V.Section,{level:2,title:"Security Data",children:N?(0,e.createComponentVNode)(2,V.LabeledList,{children:[(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Criminal Status",children:N.criminal}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Minor Crimes",children:N.mi_crim}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Details",children:N.mi_crim_d}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Major Crimes",children:N.ma_crim}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Details",children:N.ma_crim_d}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Important Notes",children:N.notes})]}):(0,e.createComponentVNode)(2,V.Box,{color:"red",bold:!0,children:"Security record lost!"})});break}return(0,e.createComponentVNode)(2,V.Box,{children:[(0,e.createComponentVNode)(2,V.Section,{title:"General Data",children:u?(0,e.createComponentVNode)(2,V.LabeledList,{children:[(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Name",children:u.name}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Sex",children:u.sex}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Species",children:u.species}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Age",children:u.age}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Rank",children:u.rank}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Fingerprint",children:u.fingerprint}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Physical Status",children:u.p_stat}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Mental Status",children:u.m_stat})]}):(0,e.createComponentVNode)(2,V.Box,{color:"red",bold:!0,children:"General record lost!"})}),g]})}},76519:function(I,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(V,k){var S,y=(0,a.useBackend)(k),p=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 p("cleartemp")}return i}()})})]})})))}}return f}()},98638:function(I,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(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data;return(0,e.createComponentVNode)(2,t.AtmosScan,{data:p.app_data})}return f}()},56601:function(I,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(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,l=p.app_data,c=l.holder,m=l.dead,i=l.health,d=l.brute,u=l.oxy,s=l.tox,N=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:N})}),(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(I,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(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,l=p.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(I,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(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,l=p.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 N;return m&&(N=(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}),N]})}return f}()},94648:function(I,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(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,l=p.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,N=l.speech_verbs,g=l.current_speech_verb,v=l.available_chassises,h=l.current_chassis,C=[];return m.map(function(b){return C[b.key]=b.name}),i.map(function(b){return C[b.key]=b.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(b){return!C[b.key]}).map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name+" ("+b.cost+")",icon:b.icon,disabled:b.cost>d,onClick:function(){function B(){return y("purchaseSoftware",{key:b.key})}return B}()},b.key)}),c.filter(function(b){return!C[b.key]}).length===0&&"No software available!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Installed Software",children:[m.filter(function(b){return b.key!=="mainmenu"}).map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name,icon:b.icon,onClick:function(){function B(){return y("startSoftware",{software_key:b.key})}return B}()},b.key)}),m.length===0&&"No software installed!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Installed Toggles",children:[i.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name,icon:b.icon,selected:b.active,onClick:function(){function B(){return y("setToggle",{toggle_key:b.key})}return B}()},b.key)}),i.length===0&&"No toggles installed!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Emotion",children:u.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name,selected:b.id===s,onClick:function(){function B(){return y("setEmotion",{emotion:b.id})}return B}()},b.id)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Speaking State",children:N.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name,selected:b.name===g,onClick:function(){function B(){return y("setSpeechStyle",{speech_state:b.name})}return B}()},b.id)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Chassis Type",children:v.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name,selected:b.icon===h,onClick:function(){function B(){return y("setChassis",{chassis_to_change:b.icon})}return B}()},b.id)})})]})})}return f}()},45549:function(I,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(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data;return(0,e.createComponentVNode)(2,t.CrewManifest,{data:p.app_data})}return f}()},53434:function(I,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(V,k){var S=(0,a.useBackend)(k),y=S.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:y.app_data,recordType:"MED"})}return f}()},7328:function(I,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(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,l=p.app_data.active_convo;return l?(0,e.createComponentVNode)(2,t.ActiveConversation,{data:p.app_data}):(0,e.createComponentVNode)(2,t.MessengerList,{data:p.app_data})}return f}()},32036:function(I,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 V(k,S){var y=(0,a.useBackend)(S),p=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(N){return(0,t.toFixed)(N,1)}return s}(),onChange:function(){function s(N,g){return p("freq",{freq:g})}return s}()}),(0,e.createComponentVNode)(2,o.Button,{tooltip:"Reset",icon:"undo",onClick:function(){function s(){return p("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 p("toggleBroadcast")}return s}(),selected:u,content:u?"Enabled":"Disabled"})})]})}return V}()},76020:function(I,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(V,k){var S=(0,a.useBackend)(k),y=S.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:y.app_data,recordType:"SEC"})}return f}()},11562:function(I,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(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data;return(0,e.createComponentVNode)(2,t.Signaler,{data:p.app_data})}return f}()},29539:function(I,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(V,k){var S=(0,a.useBackend)(k),y=S.data;return(0,e.createComponentVNode)(2,t.AtmosScan,{data:y})}return f}()},92180:function(I,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(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,l=p.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(N){return(0,e.createComponentVNode)(2,t.Box,{children:[N.x,",",N.y," (",N.dir,") - ",N.status]},N)})}),i&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mop Bucket Locations",children:i.map(function(N){return(0,e.createComponentVNode)(2,t.Box,{children:[N.x,",",N.y," (",N.dir,") - [",N.volume,"/",N.max_volume,"]"]},N)})}),d&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cleanbot Locations",children:d.map(function(N){return(0,e.createComponentVNode)(2,t.Box,{children:[N.x,",",N.y," (",N.dir,") - ",N.status]},N)})}),u&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Janitorial Cart Locations",children:u.map(function(N){return(0,e.createComponentVNode)(2,t.Box,{children:[N.x,",",N.y," (",N.dir,") - [",N.volume,"/",N.max_volume,"]"]},N)})}),s&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Janicart Locations",children:s.map(function(N){return(0,e.createComponentVNode)(2,t.Box,{children:[N.x,",",N.y," (",N.direction_from_user,")"]},N)})})]})}return f}()},57725:function(I,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 V(k,S){var y=(0,t.useBackend)(S),p=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 N(){return p("UpdateInfo")}return N}()})})]})})}),(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(N){var g=l.apps[N];return!g||!g.length?null:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:N,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 h(){return p("StartProgram",{program:v.uid})}return h}()},v.uid)})},N)})})})}),(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 N(){return p("pai",{option:1})}return N}()}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"eject",content:"Eject pAI",onClick:function(){function N(){return p("pai",{option:2})}return N}()})]})})]})}return V}()},29978:function(I,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(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data;return(0,e.createComponentVNode)(2,t.CrewManifest)}return f}()},20567:function(I,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(V,k){var S=(0,a.useBackend)(k),y=S.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:y,recordType:"MED"})}return f}()},38467:function(I,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(p,l){var c=(0,t.useBackend)(l),m=c.act,i=c.data,d=i.active_convo;return d?(0,e.createComponentVNode)(2,V,{data:i}):(0,e.createComponentVNode)(2,k,{data:i})}return y}(),V=r.ActiveConversation=function(){function y(p,l){var c=(0,t.useBackend)(l),m=c.act,i=p.data,d=i.convo_name,u=i.convo_job,s=i.messages,N=i.active_convo,g=(0,t.useLocalState)(l,"clipboardMode",!1),v=g[0],h=g[1],C=(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 b(){return h(!v)}return b}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function b(){return m("Message",{target:N})}return b}(),content:"Reply"})],4),children:(0,a.filter)(function(b){return b.target===N})(s).map(function(b,B){return(0,e.createComponentVNode)(2,o.Box,{textAlign:b.sent?"right":"left",position:"relative",mb:1,children:[(0,e.createComponentVNode)(2,o.Icon,{fontSize:2.5,color:b.sent?"#4d9121":"#cd7a0d",position:"absolute",left:b.sent?null:"0px",right:b.sent?"0px":null,bottom:"-4px",style:{"z-index":"0",transform:b.sent?"scale(-1, 1)":null},name:"comment"}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,backgroundColor:b.sent?"#4d9121":"#cd7a0d",p:1,maxWidth:"100%",position:"relative",textAlign:b.sent?"left":"right",style:{"z-index":"1","border-radius":"10px","word-break":"normal"},children:[b.sent?"You:":"Them:"," ",b.message]})]},B)})});return v&&(C=(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 b(){return h(!v)}return b}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function b(){return m("Message",{target:N})}return b}(),content:"Reply"})],4),children:(0,a.filter)(function(b){return b.target===N})(s).map(function(b,B){return(0,e.createComponentVNode)(2,o.Box,{color:b.sent?"#4d9121":"#cd7a0d",style:{"word-break":"normal"},children:[b.sent?"You:":"Them:"," ",(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:b.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 b(){return m("Clear",{option:"Convo"})}return b}()})})})}),C]})}return y}(),k=r.MessengerList=function(){function y(p,l){var c=(0,t.useBackend)(l),m=c.act,i=p.data,d=i.convopdas,u=i.pdas,s=i.charges,N=i.silent,g=i.toff,v=i.ringtone_list,h=i.ringtone,C=(0,t.useLocalState)(l,"searchTerm",""),b=C[0],B=C[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:!N,icon:N?"volume-mute":"volume-up",onClick:function(){function L(){return m("Toggle Ringer")}return L}(),children:["Ringer: ",N?"Off":"On"]}),(0,e.createComponentVNode)(2,o.Button,{color:g?"bad":"green",icon:"power-off",onClick:function(){function L(){return m("Toggle Messenger")}return L}(),children:["Messenger: ",g?"Off":"On"]}),(0,e.createComponentVNode)(2,o.Button,{icon:"trash",color:"bad",onClick:function(){function L(){return m("Clear",{option:"All"})}return L}(),children:"Delete All Conversations"}),(0,e.createComponentVNode)(2,o.Button,{icon:"bell",onClick:function(){function L(){return m("Ringtone")}return L}(),children:"Set Custom Ringtone"}),(0,e.createComponentVNode)(2,o.Button,{children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:h,width:"100px",options:Object.keys(v),onSelected:function(){function L(w){return m("Available_Ringtones",{selected_ringtone:w})}return L}()})})]})}),!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:b,onInput:function(){function L(w,T){B(T)}return L}()})]})]})||(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:b}),(0,e.createComponentVNode)(2,S,{title:"Other PDAs",pdas:u,msgAct:"Message",data:i,searchTerm:b})]})}return y}(),S=function(p,l){var c=(0,t.useBackend)(l),m=c.act,i=p.data,d=p.pdas,u=p.title,s=p.msgAct,N=p.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(h){return h.Name.toLowerCase().includes(N.toLowerCase())}).map(function(h){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:h.Name,onClick:function(){function C(){return m(s,{target:h.uid})}return C}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!g&&v.map(function(C){return(0,e.createComponentVNode)(2,o.Button,{icon:C.icon,content:C.name,onClick:function(){function b(){return m("Messenger Plugin",{plugin:C.uid,target:h.uid})}return b}()},C.uid)})})]},h.uid)})})}},54291:function(I,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 V(k,S){var y=(0,a.useBackend)(S),p=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 p("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 p("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 p("Prev")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Next",icon:"arrow-right",onClick:function(){function u(){return p("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 p("Transfer")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Release",icon:"arrow-up",onClick:function(){function u(){return p("Release")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Rename",icon:"pencil-alt",onClick:function(){function u(){return p("Rename")}return u}()}),!!d.is_hacked&&(0,e.createComponentVNode)(2,t.Button,{content:"Set Trap",icon:"bolt",color:"red",onClick:function(){function u(){return p("Set_Trap")}return u}()})]})]})})]}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Mob entry missing!"})})]})}return V}()},31112:function(I,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 k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.mulebot,i=m.active;return(0,e.createComponentVNode)(2,t.Box,{children:i?(0,e.createComponentVNode)(2,V):(0,e.createComponentVNode)(2,f)})}return k}(),f=function(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.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)})},V=function(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.mulebot,i=m.botstatus,d=m.active,u=i.mode,s=i.loca,N=i.load,g=i.powr,v=i.dest,h=i.home,C=i.retn,b=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:h}),(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 L(){return l("target")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Load",children:(0,e.createComponentVNode)(2,t.Button,{content:N?N+" (Unload)":"None",disabled:!N,onClick:function(){function L(){return l("unload")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto Pickup",children:(0,e.createComponentVNode)(2,t.Button,{content:b?"Yes":"No",selected:b,onClick:function(){function L(){return l("set_pickup_type",{autopick:b?0:1})}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto Return",children:(0,e.createComponentVNode)(2,t.Button,{content:C?"Yes":"No",selected:C,onClick:function(){function L(){return l("set_auto_return",{autoret:C?0:1})}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Stop",icon:"stop",onClick:function(){function L(){return l("stop")}return L}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Proceed",icon:"play",onClick:function(){function L(){return l("start")}return L}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Return Home",icon:"home",onClick:function(){function L(){return l("home")}return L}()})]})]})]})}},2817:function(I,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,N=s.logged_in,g=s.owner_name,v=s.money;return N?(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,V),(0,e.createComponentVNode)(2,k)]})],4):(0,e.createComponentVNode)(2,l)}return c}(),V=function(m,i){var d=(0,t.useBackend)(i),u=d.data,s=(0,t.useLocalState)(i,"tabIndex",1),N=s[0],g=s[1];return(0,e.createComponentVNode)(2,o.Tabs,{mt:2,children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:N===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:N===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:N===3,onClick:function(){function v(){return g(3)}return v}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Transaction History"]})]})},k=function(m,i){var d=(0,t.useLocalState)(i,"tabIndex",1),u=d[0],s=(0,t.useBackend)(i),N=s.data,g=N.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,p);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,N=u.data,g=N.requests,v=N.available_accounts,h=N.money,C=(0,t.useLocalState)(i,"selectedAccount"),b=C[0],B=C[1],L=(0,t.useLocalState)(i,"transferAmount"),w=L[0],T=L[1],A=(0,t.useLocalState)(i,"searchText",""),x=A[0],E=A[1],M=[];return v.map(function(R){return M[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(O,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===b})[0])==null?void 0:d.name,onSelected:function(){function R(O){return B(M[O])}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(O,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:h0&&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(I,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"],V=["className","scrollable","children"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function k(p,l){if(p==null)return{};var c={},m=Object.keys(p),i,d;for(d=0;d=0)&&(c[i]=p[i]);return c}var S=r.Layout=function(){function p(l){var c=l.className,m=l.theme,i=m===void 0?"nanotrasen":m,d=l.children,u=k(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 p}(),y=function(l){var c=l.className,m=l.scrollable,i=l.children,d=k(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 p(l){return(0,o.addScrollableNode)(l)}return p}(),onComponentWillUnmount:function(){function p(l){return(0,o.removeScrollableNode)(l)}return p}()},S.Content=y},55067:function(I,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),k=["theme","children","className"],S=["className","fitted","children"];/** + */function k(p,l){if(p==null)return{};var c={},m=Object.keys(p),i,d;for(d=0;d=0)&&(c[i]=p[i]);return c}var S=r.Layout=function(){function p(l){var c=l.className,m=l.theme,i=m===void 0?"nanotrasen":m,d=l.children,u=k(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 p}(),y=function(l){var c=l.className,m=l.scrollable,i=l.children,d=k(l,V);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 p(l){return(0,o.addScrollableNode)(l)}return p}(),onComponentWillUnmount:function(){function p(l){return(0,o.removeScrollableNode)(l)}return p}()},S.Content=y},55067:function(I,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),V=n(73786),k=["theme","children","className"],S=["className","fitted","children"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */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 p=r.Pane=function(){function c(m,i){var d=m.theme,u=m.children,s=m.className,V=y(m,k),g=(0,t.useBackend)(i),v=g.suspended,h=(0,f.useDebug)(i),C=h.debugLayout;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,N.Layout,Object.assign({className:(0,a.classes)(["Window",s]),theme:d},V,{children:(0,e.createComponentVNode)(2,o.Box,{fillPositionedParent:!0,className:C&&"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)})))};p.Content=l},82118:function(I,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),k=n(30381),S=n(39241),y=n(20697),p=n(45360),l=n(50175),c=n(73786),m=["className","fitted","children"];function i(b,B){if(b==null)return{};var L={},w=Object.keys(b),T,A;for(A=0;A=0)&&(L[T]=b[T]);return L}function d(b,B){b.prototype=Object.create(B.prototype),b.prototype.constructor=b,u(b,B)}function u(b,B){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function L(w,T){return w.__proto__=T,w}return L}(),u(b,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 p=r.Pane=function(){function c(m,i){var d=m.theme,u=m.children,s=m.className,N=y(m,k),g=(0,t.useBackend)(i),v=g.suspended,h=(0,f.useDebug)(i),C=h.debugLayout;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,V.Layout,Object.assign({className:(0,a.classes)(["Window",s]),theme:d},N,{children:(0,e.createComponentVNode)(2,o.Box,{fillPositionedParent:!0,className:C&&"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,V.Layout.Content,Object.assign({className:(0,a.classes)(["Window__content",i])},s,{children:d&&u||(0,e.createVNode)(1,"div","Window__contentPadding",u,0)})))};p.Content=l},82118:function(I,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),V=n(2971),k=n(30381),S=n(39241),y=n(20697),p=n(45360),l=n(50175),c=n(73786),m=["className","fitted","children"];function i(b,B){if(b==null)return{};var L={},w=Object.keys(b),T,A;for(A=0;A=0)&&(L[T]=b[T]);return L}function d(b,B){b.prototype=Object.create(B.prototype),b.prototype.constructor=b,u(b,B)}function u(b,B){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function L(w,T){return w.__proto__=T,w}return L}(),u(b,B)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var s=(0,l.createLogger)("Window"),V=[400,600],g=r.Window=function(b){d(B,b);function B(){return b.apply(this,arguments)||this}var L=B.prototype;return L.componentDidMount=function(){function w(){var T=(0,f.useBackend)(this.context),A=T.suspended;A||(s.log("mounting"),this.updateGeometry())}return w}(),L.componentDidUpdate=function(){function w(T){var A=this.props.width!==T.width||this.props.height!==T.height;A&&this.updateGeometry()}return w}(),L.updateGeometry=function(){function w(){var T,A=(0,f.useBackend)(this.context),x=A.config,E=Object.assign({size:V},x.window);this.props.width&&this.props.height&&(E.size=[this.props.width,this.props.height]),(T=x.window)!=null&&T.key&&(0,p.setWindowKey)(x.window.key),(0,p.recallWindowGeometry)(E)}return w}(),L.render=function(){function w(){var T,A=this.props,x=A.theme,E=A.title,M=A.children,R=(0,f.useBackend)(this.context),O=R.config,D=R.suspended,j=(0,S.useDebug)(this.context),U=j.debugLayout,W=(0,t.useDispatch)(this.context),K=(T=O.window)==null?void 0:T.fancy,G=O.user&&(O.user.observer?O.status2?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 p(l){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 p(l){return{debug:function(){function c(){for(var m=arguments.length,i=new Array(m),d=0;d0;){var h=g.shift(),C=h(V);try{v=N(C)}catch(B){if(B.code!=="MODULE_NOT_FOUND")throw B}}if(!v)return k("notFound",V);var b=v[V];return b||k("missingExport",V)}return l}()},79143:function(I,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),k=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(V,g){return V.__proto__=g,V}return s}(),y(d,u)}/** + */var V=n(8156),k=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..."})]})})})},p=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 N=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 h=g.shift(),C=h(N);try{v=V(C)}catch(B){if(B.code!=="MODULE_NOT_FOUND")throw B}}if(!v)return k("notFound",N);var b=v[N];return b||k("missingExport",N)}return l}()},79143:function(I,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),V=n(39241),k=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(N,g){return N.__proto__=g,N}return s}(),y(d,u)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var p=(0,k.createLogger)("store"),l=r.configureStore=function(){function d(u){var s,V;u===void 0&&(u={});var g=u,v=g.sideEffects,h=v===void 0?!0:v,C=(0,e.flow)([(0,a.combineReducers)({debug:N.debugReducer,backend:f.backendReducer}),u.reducer]),b=h?[].concat(((s=u.middleware)==null?void 0:s.pre)||[],[o.assetMiddleware,f.backendMiddleware],((V=u.middleware)==null?void 0:V.post)||[]):[],B=a.applyMiddleware.apply(void 0,b),L=(0,a.createStore)(C,B);return window.__store__=L,window.__augmentStack__=m(L),L}return d}(),c=function(u){return function(s){return function(V){var g=V.type,v=V.payload;return g==="update"||g==="backend/update"?p.debug("action",{type:g}):p.debug("action",V),s(V)}}},m=function(u){return function(s,V){var g,v;V?typeof V=="object"&&!V.stack&&(V.stack=s):(V=new Error(s.split("\n")[0]),V.stack=s),p.log("FatalError:",V);var h=u.getState(),C=h==null||(g=h.backend)==null?void 0:g.config,b=s;return b+="\nUser Agent: "+navigator.userAgent,b+="\nState: "+JSON.stringify({ckey:C==null||(v=C.client)==null?void 0:v.ckey,interface:C==null?void 0:C.interface,window:C==null?void 0:C.window}),b}},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 V(){var g=this.props.store;return{store:g}}return V}(),s.render=function(){function V(){return this.props.children}return V}(),u}(t.Component)},90969:function(I,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(28823),a=n(2971);/** +*/var p=(0,k.createLogger)("store"),l=r.configureStore=function(){function d(u){var s,N;u===void 0&&(u={});var g=u,v=g.sideEffects,h=v===void 0?!0:v,C=(0,e.flow)([(0,a.combineReducers)({debug:V.debugReducer,backend:f.backendReducer}),u.reducer]),b=h?[].concat(((s=u.middleware)==null?void 0:s.pre)||[],[o.assetMiddleware,f.backendMiddleware],((N=u.middleware)==null?void 0:N.post)||[]):[],B=a.applyMiddleware.apply(void 0,b),L=(0,a.createStore)(C,B);return window.__store__=L,window.__augmentStack__=m(L),L}return d}(),c=function(u){return function(s){return function(N){var g=N.type,v=N.payload;return g==="update"||g==="backend/update"?p.debug("action",{type:g}):p.debug("action",N),s(N)}}},m=function(u){return function(s,N){var g,v;N?typeof N=="object"&&!N.stack&&(N.stack=s):(N=new Error(s.split("\n")[0]),N.stack=s),p.log("FatalError:",N);var h=u.getState(),C=h==null||(g=h.backend)==null?void 0:g.config,b=s;return b+="\nUser Agent: "+navigator.userAgent,b+="\nState: "+JSON.stringify({ckey:C==null||(v=C.client)==null?void 0:v.ckey,interface:C==null?void 0:C.interface,window:C==null?void 0:C.window}),b}},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 N(){var g=this.props.store;return{store:g}}return N}(),s.render=function(){function N(){return this.props.children}return N}(),u}(t.Component)},90969:function(I,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:"Blink",render:function(){function f(){return(0,e.createComponentVNode)(2,o)}return f}()},o=function(N,k){return(0,e.createComponentVNode)(2,a.Section,{children:(0,e.createComponentVNode)(2,a.Blink,{children:"Blink"})})}},22030:function(I,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(28823),a=n(2971),t=n(51753);/** + */var t=r.meta={title:"Blink",render:function(){function f(){return(0,e.createComponentVNode)(2,o)}return f}()},o=function(V,k){return(0,e.createComponentVNode)(2,a.Section,{children:(0,e.createComponentVNode)(2,a.Blink,{children:"Blink"})})}},22030:function(I,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 - */var o=r.meta={title:"BlockQuote",render:function(){function N(){return(0,e.createComponentVNode)(2,f)}return N}()},f=function(k,S){return(0,e.createComponentVNode)(2,a.Section,{children:(0,e.createComponentVNode)(2,a.BlockQuote,{children:(0,e.createComponentVNode)(2,t.BoxWithSampleText)})})}},35286:function(I,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(28823),a=n(2971);/** + */var o=r.meta={title:"BlockQuote",render:function(){function V(){return(0,e.createComponentVNode)(2,f)}return V}()},f=function(k,S){return(0,e.createComponentVNode)(2,a.Section,{children:(0,e.createComponentVNode)(2,a.BlockQuote,{children:(0,e.createComponentVNode)(2,t.BoxWithSampleText)})})}},35286:function(I,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:"Box",render:function(){function f(){return(0,e.createComponentVNode)(2,o)}return f}()},o=function(N,k){return(0,e.createComponentVNode)(2,a.Section,{children:[(0,e.createComponentVNode)(2,a.Box,{bold:!0,children:"bold"}),(0,e.createComponentVNode)(2,a.Box,{italic:!0,children:"italic"}),(0,e.createComponentVNode)(2,a.Box,{opacity:.5,children:"opacity 0.5"}),(0,e.createComponentVNode)(2,a.Box,{opacity:.25,children:"opacity 0.25"}),(0,e.createComponentVNode)(2,a.Box,{m:2,children:"m: 2"}),(0,e.createComponentVNode)(2,a.Box,{textAlign:"left",children:"left"}),(0,e.createComponentVNode)(2,a.Box,{textAlign:"center",children:"center"}),(0,e.createComponentVNode)(2,a.Box,{textAlign:"right",children:"right"})]})}},38465:function(I,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(28823),a=n(2971);/** + */var t=r.meta={title:"Box",render:function(){function f(){return(0,e.createComponentVNode)(2,o)}return f}()},o=function(V,k){return(0,e.createComponentVNode)(2,a.Section,{children:[(0,e.createComponentVNode)(2,a.Box,{bold:!0,children:"bold"}),(0,e.createComponentVNode)(2,a.Box,{italic:!0,children:"italic"}),(0,e.createComponentVNode)(2,a.Box,{opacity:.5,children:"opacity 0.5"}),(0,e.createComponentVNode)(2,a.Box,{opacity:.25,children:"opacity 0.25"}),(0,e.createComponentVNode)(2,a.Box,{m:2,children:"m: 2"}),(0,e.createComponentVNode)(2,a.Box,{textAlign:"left",children:"left"}),(0,e.createComponentVNode)(2,a.Box,{textAlign:"center",children:"center"}),(0,e.createComponentVNode)(2,a.Box,{textAlign:"right",children:"right"})]})}},38465:function(I,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:"Button",render:function(){function k(){return(0,e.createComponentVNode)(2,N)}return k}()},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(p){return(0,e.createComponentVNode)(2,a.Button,{color:p,content:p},p)}),(0,e.createVNode)(1,"br"),o.map(function(p){return(0,e.createComponentVNode)(2,a.Button,{color:p,content:p},p)}),(0,e.createVNode)(1,"br"),o.map(function(p){return(0,e.createComponentVNode)(2,a.Box,{inline:!0,mx:"7px",color:p,children:p},p)})]})]})}},16748:function(I,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 k(){return(0,e.createComponentVNode)(2,V)}return k}()},o=["red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey"],f=["good","average","bad","black","white"],V=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(p){return(0,e.createComponentVNode)(2,a.Button,{color:p,content:p},p)}),(0,e.createVNode)(1,"br"),o.map(function(p){return(0,e.createComponentVNode)(2,a.Button,{color:p,content:p},p)}),(0,e.createVNode)(1,"br"),o.map(function(p){return(0,e.createComponentVNode)(2,a.Box,{inline:!0,mx:"7px",color:p,children:p},p)})]})]})}},16748:function(I,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 k(){return(0,e.createComponentVNode)(2,N)}return k}()},N=function(S,y){var p=(0,a.useLocalState)(y,"byondUiEvalCode","Byond.winset('"+Byond.windowId+"', {\n 'is-visible': true,\n})"),l=p[0],c=p[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(I,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 k(){return(0,e.createComponentVNode)(2,V)}return k}()},V=function(S,y){var p=(0,a.useLocalState)(y,"byondUiEvalCode","Byond.winset('"+Byond.windowId+"', {\n 'is-visible': true,\n})"),l=p[0],c=p[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(I,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 - */var o=r.meta={title:"Collapsible",render:function(){function N(){return(0,e.createComponentVNode)(2,f)}return N}()},f=function(k,S){return(0,e.createComponentVNode)(2,a.Section,{children:(0,e.createComponentVNode)(2,a.Collapsible,{title:"Collapsible Demo",buttons:(0,e.createComponentVNode)(2,a.Button,{icon:"cog"}),children:(0,e.createComponentVNode)(2,t.BoxWithSampleText)})})}},28994:function(I,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:"Collapsible",render:function(){function V(){return(0,e.createComponentVNode)(2,f)}return V}()},f=function(k,S){return(0,e.createComponentVNode)(2,a.Section,{children:(0,e.createComponentVNode)(2,a.Collapsible,{title:"Collapsible Demo",buttons:(0,e.createComponentVNode)(2,a.Button,{icon:"cog"}),children:(0,e.createComponentVNode)(2,t.BoxWithSampleText)})})}},28994:function(I,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:"Flex & Sections",render:function(){function N(){return(0,e.createComponentVNode)(2,f)}return N}()},f=function(k,S){var y=(0,a.useLocalState)(S,"fs_grow",1),p=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],V=(0,a.useLocalState)(S,"fs_title",!0),g=V[0],v=V[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 h(){return i(m==="column"?"row":"column")}return h}(),children:'Flex direction="'+m+'"'}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:function(){function h(){return l(+!p)}return h}(),children:"Flex.Item grow={"+p+"}"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:function(){function h(){return s(!u)}return h}(),children:"Section fill={"+String(u)+"}"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,selected:g,onClick:function(){function h(){return v(!g)}return h}(),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:p,children:(0,e.createComponentVNode)(2,t.Section,{title:g&&"Section 1",fill:u,children:"Content"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:p,children:(0,e.createComponentVNode)(2,t.Section,{title:g&&"Section 2",fill:u,children:"Content"})})]})})]})}},25462:function(I,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 V(){return(0,e.createComponentVNode)(2,f)}return V}()},f=function(k,S){var y=(0,a.useLocalState)(S,"fs_grow",1),p=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],N=(0,a.useLocalState)(S,"fs_title",!0),g=N[0],v=N[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 h(){return i(m==="column"?"row":"column")}return h}(),children:'Flex direction="'+m+'"'}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:function(){function h(){return l(+!p)}return h}(),children:"Flex.Item grow={"+p+"}"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:function(){function h(){return s(!u)}return h}(),children:"Section fill={"+String(u)+"}"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,selected:g,onClick:function(){function h(){return v(!g)}return h}(),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:p,children:(0,e.createComponentVNode)(2,t.Section,{title:g&&"Section 1",fill:u,children:"Content"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:p,children:(0,e.createComponentVNode)(2,t.Section,{title:g&&"Section 2",fill:u,children:"Content"})})]})})]})}},25462:function(I,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(k,S){var y=(0,a.useLocalState)(S,"number",0),p=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:p,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:p,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:p,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:p,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:p,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:p,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(I,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(I,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 V(){return(0,e.createComponentVNode)(2,f)}return V}()},f=function(k,S){var y=(0,a.useLocalState)(S,"number",0),p=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:p,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:p,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:p,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:p,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:p,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:p,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(I,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(I,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(k,S){var y=(0,a.useLocalState)(S,"progress",.5),p=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:p,children:["Value: ",Number(p).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(p-.1)}return c}()}),(0,e.createComponentVNode)(2,t.Button,{content:"+0.1",onClick:function(){function c(){return l(p+.1)}return c}()})]})]})}},36216:function(I,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 V(){return(0,e.createComponentVNode)(2,f)}return V}()},f=function(k,S){var y=(0,a.useLocalState)(S,"progress",.5),p=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:p,children:["Value: ",Number(p).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(p-.1)}return c}()}),(0,e.createComponentVNode)(2,t.Button,{content:"+0.1",onClick:function(){function c(){return l(p+.1)}return c}()})]})]})}},36216:function(I,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 k(){return(0,e.createComponentVNode)(2,N)}return k}()},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(I,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 k(){return(0,e.createComponentVNode)(2,V)}return k}()},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)},V=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(I,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 k(){return(0,e.createComponentVNode)(2,N)}return k}()},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 p(){localStorage.clear(),a.storage.clear()}return p}(),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(I,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 k(){return(0,e.createComponentVNode)(2,V)}return k}()},V=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 p(){localStorage.clear(),a.storage.clear()}return p}(),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(I,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 k(){return(0,e.createComponentVNode)(2,N)}return k}()},f=["Tab #1","Tab #2","Tab #3","Tab #4"],N=function(S,y){var p=(0,a.useLocalState)(y,"tabIndex",0),l=p[0],c=p[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 V(){return c(s)}return V}(),children:u},s)})})})],4)}},2938:function(I,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 k(){return(0,e.createComponentVNode)(2,V)}return k}()},f=["Tab #1","Tab #2","Tab #3","Tab #4"],V=function(S,y){var p=(0,a.useLocalState)(y,"tabIndex",0),l=p[0],c=p[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 N(){return c(s)}return N}(),children:u},s)})})})],4)}},2938:function(I,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(k,S){var y=(0,a.useLocalState)(S,"kitchenSinkTheme"),p=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:p,onInput:function(){function c(m,i){return l(i)}return c}()})})})})}},54212:function(I,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 V(){return(0,e.createComponentVNode)(2,f)}return V}()},f=function(k,S){var y=(0,a.useLocalState)(S,"kitchenSinkTheme"),p=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:p,onInput:function(){function c(m,i){return l(i)}return c}()})})})})}},54212:function(I,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 - */var o=r.meta={title:"Tooltip",render:function(){function N(){return(0,e.createComponentVNode)(2,f)}return N}()},f=function(){var k=["top","left","right","bottom","bottom-start","bottom-end"];return(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Tooltip,{content:"Tooltip text.",children:(0,e.createComponentVNode)(2,t.Box,{inline:!0,position:"relative",mr:1,children:"Box (hover me)."})}),(0,e.createComponentVNode)(2,t.Button,{tooltip:"Tooltip text.",content:"Button"})]}),(0,e.createComponentVNode)(2,t.Box,{mt:1,children:k.map(function(S){return(0,e.createComponentVNode)(2,t.Button,{color:"transparent",tooltip:"Tooltip text.",tooltipPosition:S,content:S},S)})})]})}},51753:function(I,r,n){"use strict";r.__esModule=!0,r.BoxWithSampleText=void 0;var e=n(28823),a=n(2971);/** + */var o=r.meta={title:"Tooltip",render:function(){function V(){return(0,e.createComponentVNode)(2,f)}return V}()},f=function(){var k=["top","left","right","bottom","bottom-start","bottom-end"];return(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Tooltip,{content:"Tooltip text.",children:(0,e.createComponentVNode)(2,t.Box,{inline:!0,position:"relative",mr:1,children:"Box (hover me)."})}),(0,e.createComponentVNode)(2,t.Button,{tooltip:"Tooltip text.",content:"Button"})]}),(0,e.createComponentVNode)(2,t.Box,{mt:1,children:k.map(function(S){return(0,e.createComponentVNode)(2,t.Button,{color:"transparent",tooltip:"Tooltip text.",tooltipPosition:S,content:S},S)})})]})}},51753:function(I,r,n){"use strict";r.__esModule=!0,r.BoxWithSampleText=void 0;var e=n(28823),a=n(2971);/** * @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(I,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,I.exports=a,a.id=33115},75168:function(I,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,I.exports=a,a.id=75168},8156:function(I,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,"./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,"./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,"./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,"./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,"./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,"./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,"./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,"./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,I.exports=a,a.id=8156},69321:function(I,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,I.exports=a,a.id=69321},79474:function(I,r,n){"use strict";var e=n(53664),a=n(36787),t=TypeError;I.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not a function")}},48218:function(I,r,n){"use strict";var e=n(49632),a=n(36787),t=TypeError;I.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not a constructor")}},30907:function(I,r,n){"use strict";var e=n(62600),a=String,t=TypeError;I.exports=function(o){if(e(o))return o;throw new t("Can't set "+a(o)+" as a prototype")}},98759:function(I,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)}),I.exports=function(N){f[o][N]=!0}},47158:function(I,r,n){"use strict";var e=n(13300).charAt;I.exports=function(a,t,o){return t+(o?e(a,t).length:1)}},14434:function(I,r,n){"use strict";var e=n(54341),a=TypeError;I.exports=function(t,o){if(e(o,t))return t;throw new a("Incorrect invocation")}},45418:function(I,r,n){"use strict";var e=n(66379),a=String,t=TypeError;I.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not an object")}},11559:function(I){"use strict";I.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"},8685:function(I,r,n){"use strict";var e=n(13586);I.exports=e(function(){if(typeof ArrayBuffer=="function"){var a=new ArrayBuffer(8);Object.isExtensible(a)&&Object.defineProperty(a,"a",{value:8})}})},30432:function(I,r,n){"use strict";var e=n(11559),a=n(16361),t=n(26856),o=n(53664),f=n(66379),N=n(3302),k=n(48615),S=n(36787),y=n(21650),p=n(60855),l=n(57301),c=n(54341),m=n(56379),i=n(91420),d=n(95558),u=n(76246),s=n(4471),V=s.enforce,g=s.get,v=t.Int8Array,h=v&&v.prototype,C=t.Uint8ClampedArray,b=C&&C.prototype,B=v&&m(v),L=h&&m(h),w=Object.prototype,T=t.TypeError,A=d("toStringTag"),x=u("TYPED_ARRAY_TAG"),E="TypedArrayConstructor",M=e&&!!i&&k(t.opera)!=="Opera",R=!1,O,D,j,U={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},W={BigInt64Array:8,BigUint64Array:8},K=function(){function re(de){if(!f(de))return!1;var ve=k(de);return ve==="DataView"||N(U,ve)||N(W,ve)}return re}(),G=function re(de){var ve=m(de);if(f(ve)){var ye=g(ve);return ye&&N(ye,E)?ye[E]:re(ve)}},$=function(de){if(!f(de))return!1;var ve=k(de);return N(U,ve)||N(W,ve)},z=function(de){if($(de))return de;throw new T("Target is not a typed array")},Y=function(de){if(o(de)&&(!i||c(B,de)))return de;throw new T(S(de)+" is not a typed array constructor")},J=function(de,ve,ye,Le){if(a){if(ye)for(var pe in U){var ne=t[pe];if(ne&&N(ne.prototype,de))try{delete ne.prototype[de]}catch(ae){try{ne.prototype[de]=ve}catch(q){}}}(!L[de]||ye)&&p(L,de,ye?ve:M&&h[de]||ve,Le)}},ie=function(de,ve,ye){var Le,pe;if(a){if(i){if(ye){for(Le in U)if(pe=t[Le],pe&&N(pe,de))try{delete pe[de]}catch(ne){}}if(!B[de]||ye)try{return p(B,de,ye?ve:M&&B[de]||ve)}catch(ne){}else return}for(Le in U)pe=t[Le],pe&&(!pe[de]||ye)&&p(pe,de,ve)}};for(O in U)D=t[O],j=D&&D.prototype,j?V(j)[E]=D:M=!1;for(O in W)D=t[O],j=D&&D.prototype,j&&(V(j)[E]=D);if((!M||!o(B)||B===Function.prototype)&&(B=function(){function re(){throw new T("Incorrect invocation")}return re}(),M))for(O in U)t[O]&&i(t[O],B);if((!M||!L||L===w)&&(L=B.prototype,M))for(O in U)t[O]&&i(t[O].prototype,L);if(M&&m(b)!==L&&i(b,L),a&&!N(L,A)){R=!0,l(L,A,{configurable:!0,get:function(){function re(){return f(this)?this[x]:void 0}return re}()});for(O in U)t[O]&&y(t[O],x,O)}I.exports={NATIVE_ARRAY_BUFFER_VIEWS:M,TYPED_ARRAY_TAG:R&&x,aTypedArray:z,aTypedArrayConstructor:Y,exportTypedArrayMethod:J,exportTypedArrayStaticMethod:ie,getTypedArrayConstructor:G,isView:K,isTypedArray:$,TypedArray:B,TypedArrayPrototype:L}},31284:function(I,r,n){"use strict";var e=n(26856),a=n(72908),t=n(16361),o=n(11559),f=n(15340),N=n(21650),k=n(57301),S=n(26148),y=n(13586),p=n(14434),l=n(84501),c=n(74369),m=n(28968),i=n(48705),d=n(48350),u=n(56379),s=n(91420),V=n(39948),g=n(31170),v=n(43405),h=n(83826),C=n(15676),b=n(4471),B=f.PROPER,L=f.CONFIGURABLE,w="ArrayBuffer",T="DataView",A="prototype",x="Wrong length",E="Wrong index",M=b.getterFor(w),R=b.getterFor(T),O=b.set,D=e[w],j=D,U=j&&j[A],W=e[T],K=W&&W[A],G=Object.prototype,$=e.Array,z=e.RangeError,Y=a(V),J=a([].reverse),ie=d.pack,re=d.unpack,de=function(ge){return[ge&255]},ve=function(ge){return[ge&255,ge>>8&255]},ye=function(ge){return[ge&255,ge>>8&255,ge>>16&255,ge>>24&255]},Le=function(ge){return ge[3]<<24|ge[2]<<16|ge[1]<<8|ge[0]},pe=function(ge){return ie(i(ge),23,4)},ne=function(ge){return ie(ge,52,8)},ae=function(ge,ke,Ce){k(ge[A],ke,{configurable:!0,get:function(){function Se(){return Ce(this)[ke]}return Se}()})},q=function(ge,ke,Ce,Se){var we=R(ge),xe=m(Ce),Pe=!!Se;if(xe+ke>we.byteLength)throw new z(E);var Ue=we.bytes,Ve=xe+we.byteOffset,oe=g(Ue,Ve,Ve+ke);return Pe?oe:J(oe)},se=function(ge,ke,Ce,Se,we,xe){var Pe=R(ge),Ue=m(Ce),Ve=Se(+we),oe=!!xe;if(Ue+ke>Pe.byteLength)throw new z(E);for(var le=Pe.bytes,he=Ue+Pe.byteOffset,ue=0;uewe)throw new z("Wrong offset");if(Ce=Ce===void 0?we-xe:c(Ce),xe+Ce>we)throw new z(x);O(this,{type:T,buffer:ge,byteLength:Ce,byteOffset:xe,bytes:Se.bytes}),t||(this.buffer=ge,this.byteLength=Ce,this.byteOffset=xe)}return fe}(),K=W[A],t&&(ae(j,"byteLength",M),ae(W,"buffer",R),ae(W,"byteLength",R),ae(W,"byteOffset",R)),S(K,{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 Le(q(this,4,ge,arguments.length>1?arguments[1]:!1))}return fe}(),getUint32:function(){function fe(ge){return Le(q(this,4,ge,arguments.length>1?arguments[1]:!1))>>>0}return fe}(),getFloat32:function(){function fe(ge){return re(q(this,4,ge,arguments.length>1?arguments[1]:!1),23)}return fe}(),getFloat64:function(){function fe(ge){return re(q(this,8,ge,arguments.length>1?arguments[1]:!1),52)}return fe}(),setInt8:function(){function fe(ge,ke){se(this,1,ge,de,ke)}return fe}(),setUint8:function(){function fe(ge,ke){se(this,1,ge,de,ke)}return fe}(),setInt16:function(){function fe(ge,ke){se(this,2,ge,ve,ke,arguments.length>2?arguments[2]:!1)}return fe}(),setUint16:function(){function fe(ge,ke){se(this,2,ge,ve,ke,arguments.length>2?arguments[2]:!1)}return fe}(),setInt32:function(){function fe(ge,ke){se(this,4,ge,ye,ke,arguments.length>2?arguments[2]:!1)}return fe}(),setUint32:function(){function fe(ge,ke){se(this,4,ge,ye,ke,arguments.length>2?arguments[2]:!1)}return fe}(),setFloat32:function(){function fe(ge,ke){se(this,4,ge,pe,ke,arguments.length>2?arguments[2]:!1)}return fe}(),setFloat64:function(){function fe(ge,ke){se(this,8,ge,ne,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&&!L})?(j=function(){function fe(ge){return p(this,U),v(new D(m(ge)),this,j)}return fe}(),j[A]=U,U.constructor=j,h(j,D)):me&&L&&N(D,"name",w),s&&u(K)!==G&&s(K,G);var te=new W(new j(2)),be=a(K.setInt8);te.setInt8(0,2147483648),te.setInt8(1,2147483649),(te.getInt8(0)||!te.getInt8(1))&&S(K,{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})}C(j,w),C(W,T),I.exports={ArrayBuffer:j,DataView:W}},28332:function(I,r,n){"use strict";var e=n(63549),a=n(39531),t=n(83207),o=n(81245),f=Math.min;I.exports=[].copyWithin||function(){function N(k,S){var y=e(this),p=t(y),l=a(k,p),c=a(S,p),m=arguments.length>2?arguments[2]:void 0,i=f((m===void 0?p:a(m,p))-c,p-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(I,r,n){"use strict";var e=n(63549),a=n(39531),t=n(83207);I.exports=function(){function o(f){for(var N=e(this),k=t(N),S=arguments.length,y=a(S>1?arguments[1]:void 0,k),p=S>2?arguments[2]:void 0,l=p===void 0?k:a(p,k);l>y;)N[y++]=f;return N}return o}()},16856:function(I,r,n){"use strict";var e=n(18539).forEach,a=n(56127),t=a("forEach");I.exports=t?[].forEach:function(){function o(f){return e(this,f,arguments.length>1?arguments[1]:void 0)}return o}()},21465:function(I,r,n){"use strict";var e=n(83207);I.exports=function(a,t,o){for(var f=0,N=arguments.length>2?o:e(t),k=new a(N);N>f;)k[f]=t[f++];return k}},45056:function(I,r,n){"use strict";var e=n(8942),a=n(20276),t=n(63549),o=n(80002),f=n(48594),N=n(49632),k=n(83207),S=n(80750),y=n(45731),p=n(52984),l=Array;I.exports=function(){function c(m){var i=t(m),d=N(this),u=arguments.length,s=u>1?arguments[1]:void 0,V=s!==void 0;V&&(s=e(s,u>2?arguments[2]:void 0));var g=p(i),v=0,h,C,b,B,L,w;if(g&&!(this===l&&f(g)))for(B=y(i,g),L=B.next,C=d?new this:[];!(b=a(L,B)).done;v++)w=V?o(B,s,[b.value,v],!0):b.value,S(C,v,w);else for(h=k(i),C=d?new this(h):l(h);h>v;v++)w=V?s(i[v],v):i[v],S(C,v,w);return C.length=v,C}return c}()},33483:function(I,r,n){"use strict";var e=n(54292),a=n(39531),t=n(83207),o=function(N){return function(k,S,y){var p=e(k),l=t(p),c=a(y,l),m;if(N&&S!==S){for(;l>c;)if(m=p[c++],m!==m)return!0}else for(;l>c;c++)if((N||c in p)&&p[c]===S)return N||c||0;return!N&&-1}};I.exports={includes:o(!0),indexOf:o(!1)}},18539:function(I,r,n){"use strict";var e=n(8942),a=n(72908),t=n(80689),o=n(63549),f=n(83207),N=n(51582),k=a([].push),S=function(p){var l=p===1,c=p===2,m=p===3,i=p===4,d=p===6,u=p===7,s=p===5||d;return function(V,g,v,h){for(var C=o(V),b=t(C),B=f(b),L=e(g,v),w=0,T=h||N,A=l?T(V,B):c||u?T(V,0):void 0,x,E;B>w;w++)if((s||w in b)&&(x=b[w],E=L(x,w,C),p))if(l)A[w]=E;else if(E)switch(p){case 3:return!0;case 5:return x;case 6:return w;case 2:k(A,x)}else switch(p){case 4:return!1;case 7:k(A,x)}return d?-1:m||i?i:A}};I.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(I,r,n){"use strict";var e=n(47244),a=n(54292),t=n(84501),o=n(83207),f=n(56127),N=Math.min,k=[].lastIndexOf,S=!!k&&1/[1].lastIndexOf(1,-0)<0,y=f("lastIndexOf"),p=S||!y;I.exports=p?function(){function l(c){if(S)return e(k,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}():k},34924:function(I,r,n){"use strict";var e=n(13586),a=n(95558),t=n(43541),o=a("species");I.exports=function(f){return t>=51||!e(function(){var N=[],k=N.constructor={};return k[o]=function(){return{foo:1}},N[f](Boolean).foo!==1})}},56127:function(I,r,n){"use strict";var e=n(13586);I.exports=function(a,t){var o=[][a];return!!o&&e(function(){o.call(null,t||function(){return 1},1)})}},58394:function(I,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,p,l,c){var m=a(y),i=t(m),d=o(m);e(p);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=p(c,i[u],u,m));return c}};I.exports={left:N(!1),right:N(!0)}},10779:function(I,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}}();I.exports=f?function(N,k){if(a(N)&&!o(N,"length").writable)throw new t("Cannot set read only .length");return N.length=k}:function(N,k){return N.length=k}},31170:function(I,r,n){"use strict";var e=n(72908);I.exports=e([].slice)},91183:function(I,r,n){"use strict";var e=n(31170),a=Math.floor,t=function o(f,N){var k=f.length;if(k<8)for(var S=1,y,p;S0;)f[p]=f[--p];p!==S++&&(f[p]=y)}else for(var l=a(k/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!!L(this,T)}return w}()}),t(C,g?{get:function(){function w(T){var A=L(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(C,"size",{configurable:!0,get:function(){function w(){return b(this).size}return w}()}),h}return u}(),setStrong:function(){function u(s,V,g){var v=V+" Iterator",h=d(V),C=d(v);S(s,V,function(b,B){i(this,{type:v,target:b,state:h(b),kind:B,last:void 0})},function(){for(var b=C(this),B=b.kind,L=b.last;L&&L.removed;)L=L.previous;return!b.target||!(b.last=L=L?L.next:b.state.first)?(b.target=void 0,y(void 0,!0)):y(B==="keys"?L.key:B==="values"?L.value:[L.key,L.value],!1)},g?"entries":"values",!g,!0),p(V)}return u}()}},19250:function(I,r,n){"use strict";var e=n(72908),a=n(26148),t=n(66526).getWeakData,o=n(14434),f=n(45418),N=n(62695),k=n(66379),S=n(20453),y=n(18539),p=n(3302),l=n(4471),c=l.set,m=l.getterFor,i=y.find,d=y.findIndex,u=e([].splice),s=0,V=function(C){return C.frozen||(C.frozen=new g)},g=function(){this.entries=[]},v=function(C,b){return i(C.entries,function(B){return B[0]===b})};g.prototype={get:function(){function h(C){var b=v(this,C);if(b)return b[1]}return h}(),has:function(){function h(C){return!!v(this,C)}return h}(),set:function(){function h(C,b){var B=v(this,C);B?B[1]=b:this.entries.push([C,b])}return h}(),delete:function(){function h(C){var b=d(this.entries,function(B){return B[0]===C});return~b&&u(this.entries,b,1),!!~b}return h}()},I.exports={getConstructor:function(){function h(C,b,B,L){var w=C(function(E,M){o(E,T),c(E,{type:b,id:s++,frozen:void 0}),N(M)||S(M,E[L],{that:E,AS_ENTRIES:B})}),T=w.prototype,A=m(b),x=function(){function E(M,R,O){var D=A(M),j=t(f(R),!0);return j===!0?V(D).set(R,O):j[D.id]=O,M}return E}();return a(T,{delete:function(){function E(M){var R=A(this);if(!k(M))return!1;var O=t(M);return O===!0?V(R).delete(M):O&&p(O,R.id)&&delete O[R.id]}return E}(),has:function(){function E(M){var R=A(this);if(!k(M))return!1;var O=t(M);return O===!0?V(R).has(M):O&&p(O,R.id)}return E}()}),a(T,B?{get:function(){function E(M){var R=A(this);if(k(M)){var O=t(M);return O===!0?V(R).get(M):O?O[R.id]:void 0}}return E}(),set:function(){function E(M,R){return x(this,M,R)}return E}()}:{add:function(){function E(M){return x(this,M,!0)}return E}()}),w}return h}()}},10609:function(I,r,n){"use strict";var e=n(3116),a=n(26856),t=n(72908),o=n(23620),f=n(60855),N=n(66526),k=n(20453),S=n(14434),y=n(53664),p=n(62695),l=n(66379),c=n(13586),m=n(1608),i=n(15676),d=n(43405);I.exports=function(u,s,V){var g=u.indexOf("Map")!==-1,v=u.indexOf("Weak")!==-1,h=g?"set":"add",C=a[u],b=C&&C.prototype,B=C,L={},w=function(D){var j=t(b[D]);f(b,D,D==="add"?function(){function U(W){return j(this,W===0?0:W),this}return U}():D==="delete"?function(U){return v&&!l(U)?!1:j(this,U===0?0:U)}:D==="get"?function(){function U(W){return v&&!l(W)?void 0:j(this,W===0?0:W)}return U}():D==="has"?function(){function U(W){return v&&!l(W)?!1:j(this,W===0?0:W)}return U}():function(){function U(W,K){return j(this,W===0?0:W,K),this}return U}())},T=o(u,!y(C)||!(v||b.forEach&&!c(function(){new C().entries().next()})));if(T)B=V.getConstructor(s,u,g,h),N.enable();else if(o(u,!0)){var A=new B,x=A[h](v?{}:-0,1)!==A,E=c(function(){A.has(1)}),M=m(function(O){new C(O)}),R=!v&&c(function(){for(var O=new C,D=5;D--;)O[h](D,D);return!O.has(-0)});M||(B=s(function(O,D){S(O,b);var j=d(new C,O,B);return p(D)||k(D,j[h],{that:j,AS_ENTRIES:g}),j}),B.prototype=b,b.constructor=B),(E||R)&&(w("delete"),w("has"),g&&w("get")),(R||x)&&w(h),v&&b.clear&&delete b.clear}return L[u]=B,e({global:!0,constructor:!0,forced:B!==C},L),i(B,u),v||V.setStrong(B,u,g),B}},83826:function(I,r,n){"use strict";var e=n(3302),a=n(53988),t=n(19765),o=n(8165);I.exports=function(f,N,k){for(var S=a(N),y=o.f,p=t.f,l=0;l"+p+""}},32214:function(I){"use strict";I.exports=function(r,n){return{value:r,done:n}}},21650:function(I,r,n){"use strict";var e=n(16361),a=n(8165),t=n(73970);I.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(I){"use strict";I.exports=function(r,n){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:n}}},80750:function(I,r,n){"use strict";var e=n(72445),a=n(8165),t=n(73970);I.exports=function(o,f,N){var k=e(f);k in o?a.f(o,k,t(0,N)):o[k]=N}},20228:function(I,r,n){"use strict";var e=n(72908),a=n(13586),t=n(81290).start,o=RangeError,f=isFinite,N=Math.abs,k=Date.prototype,S=k.toISOString,y=e(k.getTime),p=e(k.getUTCDate),l=e(k.getUTCFullYear),c=e(k.getUTCHours),m=e(k.getUTCMilliseconds),i=e(k.getUTCMinutes),d=e(k.getUTCMonth),u=e(k.getUTCSeconds);I.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 V=this,g=l(V),v=m(V),h=g<0?"-":g>9999?"+":"";return h+t(N(g),h?6:4,0)+"-"+t(d(V)+1,2,0)+"-"+t(p(V),2,0)+"T"+t(c(V),2,0)+":"+t(i(V),2,0)+":"+t(u(V),2,0)+"."+t(v,3,0)+"Z"}return s}():S},81603:function(I,r,n){"use strict";var e=n(45418),a=n(56109),t=TypeError;I.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(I,r,n){"use strict";var e=n(40773),a=n(8165);I.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(I,r,n){"use strict";var e=n(53664),a=n(8165),t=n(40773),o=n(17553);I.exports=function(f,N,k,S){S||(S={});var y=S.enumerable,p=S.name!==void 0?S.name:N;if(e(k)&&t(k,p,S),S.global)y?f[N]=k:o(N,k);else{try{S.unsafe?f[N]&&(y=!0):delete f[N]}catch(l){}y?f[N]=k:a.f(f,N,{value:k,enumerable:!1,configurable:!S.nonConfigurable,writable:!S.nonWritable})}return f}},26148:function(I,r,n){"use strict";var e=n(60855);I.exports=function(a,t,o){for(var f in t)e(a,f,t[f],o);return a}},17553:function(I,r,n){"use strict";var e=n(26856),a=Object.defineProperty;I.exports=function(t,o){try{a(e,t,{value:o,configurable:!0,writable:!0})}catch(f){e[t]=o}return o}},81245:function(I,r,n){"use strict";var e=n(36787),a=TypeError;I.exports=function(t,o){if(!delete t[o])throw new a("Cannot delete property "+e(o)+" of "+e(t))}},16361:function(I,r,n){"use strict";var e=n(13586);I.exports=!e(function(){return Object.defineProperty({},1,{get:function(){function a(){return 7}return a}()})[1]!==7})},55642:function(I,r,n){"use strict";var e=n(26856),a=n(66379),t=e.document,o=a(t)&&a(t.createElement);I.exports=function(f){return o?t.createElement(f):{}}},54579:function(I){"use strict";var r=TypeError,n=9007199254740991;I.exports=function(e){if(e>n)throw r("Maximum allowed index exceeded");return e}},31574:function(I,r,n){"use strict";var e=n(74247),a=e.match(/firefox\/(\d+)/i);I.exports=!!a&&+a[1]},52460:function(I,r,n){"use strict";var e=n(53437),a=n(86727);I.exports=!e&&!a&&typeof window=="object"&&typeof document=="object"},68261:function(I){"use strict";I.exports=typeof Bun=="function"&&Bun&&typeof Bun.version=="string"},53437:function(I){"use strict";I.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"},88836:function(I,r,n){"use strict";var e=n(74247);I.exports=/MSIE|Trident/.test(e)},79034:function(I,r,n){"use strict";var e=n(74247);I.exports=/ipad|iphone|ipod/i.test(e)&&typeof Pebble!="undefined"},25184:function(I,r,n){"use strict";var e=n(74247);I.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(e)},86727:function(I,r,n){"use strict";var e=n(26856),a=n(8649);I.exports=a(e.process)==="process"},71979:function(I,r,n){"use strict";var e=n(74247);I.exports=/web0s(?!.*chrome)/i.test(e)},74247:function(I){"use strict";I.exports=typeof navigator!="undefined"&&String(navigator.userAgent)||""},43541:function(I,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,k,S;N&&(k=N.split("."),S=k[0]>0&&k[0]<4?1:+(k[0]+k[1])),!S&&a&&(k=a.match(/Edge\/(\d+)/),(!k||k[1]>=74)&&(k=a.match(/Chrome\/(\d+)/),k&&(S=+k[1]))),I.exports=S},27204:function(I,r,n){"use strict";var e=n(74247),a=e.match(/AppleWebKit\/(\d+)\./);I.exports=!!a&&+a[1]},38139:function(I){"use strict";I.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},3116:function(I,r,n){"use strict";var e=n(26856),a=n(19765).f,t=n(21650),o=n(60855),f=n(17553),N=n(83826),k=n(23620);I.exports=function(S,y){var p=S.target,l=S.global,c=S.stat,m,i,d,u,s,V;if(l?i=e:c?i=e[p]||f(p,{}):i=(e[p]||{}).prototype,i)for(d in y){if(s=y[d],S.dontCallGetSet?(V=a(i,d),u=V&&V.value):u=i[d],m=k(l?d:p+(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(I){"use strict";I.exports=function(r){try{return!!r()}catch(n){return!0}}},18690:function(I,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),k=f("species"),S=RegExp.prototype;I.exports=function(y,p,l,c){var m=f(y),i=!o(function(){var V={};return V[m]=function(){return 7},""[y](V)!==7}),d=i&&!o(function(){var V=!1,g=/a/;return y==="split"&&(g={},g.constructor={},g.constructor[k]=function(){return g},g.flags="",g[m]=/./[m]),g.exec=function(){return V=!0,null},g[m](""),!V});if(!i||!d||l){var u=e(/./[m]),s=p(m,""[y],function(V,g,v,h,C){var b=e(V),B=g.exec;return B===t||B===S.exec?i&&!C?{done:!0,value:u(g,v,h)}:{done:!0,value:b(v,g,h)}:{done:!1}});a(String.prototype,y,s[0]),a(S,m,s[1])}c&&N(S[m],"sham",!0)}},73132:function(I,r,n){"use strict";var e=n(59882),a=n(83207),t=n(54579),o=n(8942),f=function N(k,S,y,p,l,c,m,i){for(var d=l,u=0,s=m?o(m,i):!1,V,g;u0&&e(V)?(g=a(V),d=N(k,S,V,g,d,c-1)-1):(t(d+1),k[d]=V),d++),u++;return d};I.exports=f},58199:function(I,r,n){"use strict";var e=n(13586);I.exports=!e(function(){return Object.isExtensible(Object.preventExtensions({}))})},47244:function(I,r,n){"use strict";var e=n(86678),a=Function.prototype,t=a.apply,o=a.call;I.exports=typeof Reflect=="object"&&Reflect.apply||(e?o.bind(t):function(){return o.apply(t,arguments)})},8942:function(I,r,n){"use strict";var e=n(69935),a=n(79474),t=n(86678),o=e(e.bind);I.exports=function(f,N){return a(f),N===void 0?f:t?o(f,N):function(){return f.apply(N,arguments)}}},86678:function(I,r,n){"use strict";var e=n(13586);I.exports=!e(function(){var a=function(){}.bind();return typeof a!="function"||a.hasOwnProperty("prototype")})},82060:function(I,r,n){"use strict";var e=n(72908),a=n(79474),t=n(66379),o=n(3302),f=n(31170),N=n(86678),k=Function,S=e([].concat),y=e([].join),p={},l=function(m,i,d){if(!o(p,i)){for(var u=[],s=0;s]*>)/g,S=/\$([$&'`]|\d{1,2})/g;I.exports=function(y,p,l,c,m,i){var d=l+y.length,u=c.length,s=S;return m!==void 0&&(m=a(m),s=k),f(i,s,function(V,g){var v;switch(o(g,0)){case"$":return"$";case"&":return y;case"`":return N(p,0,l);case"'":return N(p,d);case"<":v=m[N(g,1,-1)];break;default:var h=+g;if(h===0)return V;if(h>u){var C=t(h/10);return C===0?V:C<=u?c[C-1]===void 0?o(g,1):c[C-1]+o(g,1):V}v=c[h-1]}return v===void 0?"":v})}},26856:function(I,r,n){"use strict";var e=function(t){return t&&t.Math===Math&&t};I.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(I,r,n){"use strict";var e=n(72908),a=n(63549),t=e({}.hasOwnProperty);I.exports=Object.hasOwn||function(){function o(f,N){return t(a(f),N)}return o}()},51653:function(I){"use strict";I.exports={}},66481:function(I){"use strict";I.exports=function(r,n){try{arguments.length}catch(e){}}},21474:function(I,r,n){"use strict";var e=n(22070);I.exports=e("document","documentElement")},16109:function(I,r,n){"use strict";var e=n(16361),a=n(13586),t=n(55642);I.exports=!e&&!a(function(){return Object.defineProperty(t("div"),"a",{get:function(){function o(){return 7}return o}()}).a!==7})},48350:function(I){"use strict";var r=Array,n=Math.abs,e=Math.pow,a=Math.floor,t=Math.log,o=Math.LN2,f=function(S,y,p){var l=r(p),c=p*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,V,g,v;for(S=n(S),S!==S||S===1/0?(g=S!==S?1:0,V=m):(V=a(t(S)/o),v=e(2,-V),S*v<1&&(V--,v*=2),V+i>=1?S+=d/v:S+=d*e(2,1-i),S*v>=2&&(V++,v/=2),V+i>=m?(g=0,V=m):V+i>=1?(g=(S*v-1)*e(2,y),V+=i):(g=S*e(2,i-1)*e(2,y),V=0));y>=8;)l[s++]=g&255,g/=256,y-=8;for(V=V<0;)l[s++]=V&255,V/=256,c-=8;return l[--s]|=u*128,l},N=function(S,y){var p=S.length,l=p*8-y-1,c=(1<>1,i=l-7,d=p-1,u=S[d--],s=u&127,V;for(u>>=7;i>0;)s=s*256+S[d--],i-=8;for(V=s&(1<<-i)-1,s>>=-i,i+=y;i>0;)V=V*256+S[d--],i-=8;if(s===0)s=1-m;else{if(s===c)return V?NaN:u?-1/0:1/0;V+=e(2,y),s-=m}return(u?-1:1)*V*e(2,s-y)};I.exports={pack:f,unpack:N}},80689:function(I,r,n){"use strict";var e=n(72908),a=n(13586),t=n(8649),o=Object,f=e("".split);I.exports=a(function(){return!o("z").propertyIsEnumerable(0)})?function(N){return t(N)==="String"?f(N,""):o(N)}:o},43405:function(I,r,n){"use strict";var e=n(53664),a=n(66379),t=n(91420);I.exports=function(o,f,N){var k,S;return t&&e(k=f.constructor)&&k!==N&&a(S=k.prototype)&&S!==N.prototype&&t(o,S),o}},92004:function(I,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)}),I.exports=t.inspectSource},66526:function(I,r,n){"use strict";var e=n(3116),a=n(72908),t=n(51653),o=n(66379),f=n(3302),N=n(8165).f,k=n(60097),S=n(31024),y=n(58221),p=n(76246),l=n(58199),c=!1,m=p("meta"),i=0,d=function(C){N(C,m,{value:{objectID:"O"+i++,weakData:{}}})},u=function(C,b){if(!o(C))return typeof C=="symbol"?C:(typeof C=="string"?"S":"P")+C;if(!f(C,m)){if(!y(C))return"F";if(!b)return"E";d(C)}return C[m].objectID},s=function(C,b){if(!f(C,m)){if(!y(C))return!0;if(!b)return!1;d(C)}return C[m].weakData},V=function(C){return l&&c&&y(C)&&!f(C,m)&&d(C),C},g=function(){v.enable=function(){},c=!0;var C=k.f,b=a([].splice),B={};B[m]=1,C(B).length&&(k.f=function(L){for(var w=C(L),T=0,A=w.length;TL;L++)if(T=M(i[L]),T&&k(m,T))return T;return new c(!1)}b=S(i,B)}for(A=g?i.next:b.next;!(x=a(A,b)).done;){try{T=M(x.value)}catch(R){p(b,"throw",R)}if(typeof T=="object"&&T&&k(m,T))return T}return new c(!1)}},65169:function(I,r,n){"use strict";var e=n(20276),a=n(45418),t=n(76540);I.exports=function(o,f,N){var k,S;a(o);try{if(k=t(o,"return"),!k){if(f==="throw")throw N;return N}k=e(k,o)}catch(y){S=!0,k=y}if(f==="throw")throw N;if(S)throw k;return a(k),N}},41903:function(I,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};I.exports=function(k,S,y,p){var l=S+" Iterator";return k.prototype=a(e,{next:t(+!p,y)}),o(k,l,!1,!0),f[l]=N,k}},21436:function(I,r,n){"use strict";var e=n(3116),a=n(20276),t=n(90139),o=n(15340),f=n(53664),N=n(41903),k=n(56379),S=n(91420),y=n(15676),p=n(21650),l=n(60855),c=n(95558),m=n(47730),i=n(83665),d=o.PROPER,u=o.CONFIGURABLE,s=i.IteratorPrototype,V=i.BUGGY_SAFARI_ITERATORS,g=c("iterator"),v="keys",h="values",C="entries",b=function(){return this};I.exports=function(B,L,w,T,A,x,E){N(w,L,T);var M=function(Y){if(Y===A&&U)return U;if(!V&&Y&&Y in D)return D[Y];switch(Y){case v:return function(){function J(){return new w(this,Y)}return J}();case h:return function(){function J(){return new w(this,Y)}return J}();case C:return function(){function J(){return new w(this,Y)}return J}()}return function(){return new w(this)}},R=L+" Iterator",O=!1,D=B.prototype,j=D[g]||D["@@iterator"]||A&&D[A],U=!V&&j||M(A),W=L==="Array"&&D.entries||j,K,G,$;if(W&&(K=k(W.call(new B)),K!==Object.prototype&&K.next&&(!t&&k(K)!==s&&(S?S(K,s):f(K[g])||l(K,g,b)),y(K,R,!0,!0),t&&(m[R]=b))),d&&A===h&&j&&j.name!==h&&(!t&&u?p(D,"name",h):(O=!0,U=function(){function z(){return a(j,this)}return z}())),A)if(G={values:M(h),keys:x?U:M(v),entries:M(C)},E)for($ in G)(V||O||!($ in D))&&l(D,$,G[$]);else e({target:L,proto:!0,forced:V||O},G);return(!t||E)&&D[g]!==U&&l(D,g,U,{name:A}),m[L]=U,G}},83665:function(I,r,n){"use strict";var e=n(13586),a=n(53664),t=n(66379),o=n(15439),f=n(56379),N=n(60855),k=n(95558),S=n(90139),y=k("iterator"),p=!1,l,c,m;[].keys&&(m=[].keys(),"next"in m?(c=f(f(m)),c!==Object.prototype&&(l=c)):p=!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}),I.exports={IteratorPrototype:l,BUGGY_SAFARI_ITERATORS:p}},47730:function(I){"use strict";I.exports={}},83207:function(I,r,n){"use strict";var e=n(74369);I.exports=function(a){return e(a.length)}},40773:function(I,r,n){"use strict";var e=n(72908),a=n(13586),t=n(53664),o=n(3302),f=n(16361),N=n(15340).CONFIGURABLE,k=n(92004),S=n(4471),y=S.enforce,p=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"),V=I.exports=function(g,v,h){m(l(v),0,7)==="Symbol("&&(v="["+i(l(v),/^Symbol\(([^)]*)\)/,"$1")+"]"),h&&h.getter&&(v="get "+v),h&&h.setter&&(v="set "+v),(!o(g,"name")||N&&g.name!==v)&&(f?c(g,"name",{value:v,configurable:!0}):g.name=v),u&&h&&o(h,"arity")&&g.length!==h.arity&&c(g,"length",{value:h.arity});try{h&&o(h,"constructor")&&h.constructor?f&&c(g,"prototype",{writable:!1}):g.prototype&&(g.prototype=void 0)}catch(b){}var C=y(g);return o(C,"source")||(C.source=d(s,typeof v=="string"?v:"")),g};Function.prototype.toString=V(function(){function g(){return t(this)&&p(this).source||k(this)}return g}(),"toString")},80563:function(I){"use strict";var r=Math.expm1,n=Math.exp;I.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(I,r,n){"use strict";var e=n(30585),a=Math.abs,t=2220446049250313e-31,o=1/t,f=function(k){return k+o-o};I.exports=function(N,k,S,y){var p=+N,l=a(p),c=e(p);if(lS||i!==i?c*(1/0):c*i}},48705:function(I,r,n){"use strict";var e=n(27509),a=11920928955078125e-23,t=34028234663852886e22,o=11754943508222875e-54;I.exports=Math.fround||function(){function f(N){return e(N,a,t,o)}return f}()},74347:function(I){"use strict";var r=Math.log,n=Math.LOG10E;I.exports=Math.log10||function(){function e(a){return r(a)*n}return e}()},50169:function(I){"use strict";var r=Math.log;I.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(I){"use strict";I.exports=Math.sign||function(){function r(n){var e=+n;return e===0||e!==e?e:e<0?-1:1}return r}()},54037:function(I){"use strict";var r=Math.ceil,n=Math.floor;I.exports=Math.trunc||function(){function e(a){var t=+a;return(t>0?n:r)(t)}return e}()},60816:function(I,r,n){"use strict";var e=n(26856),a=n(8975),t=n(8942),o=n(87073).set,f=n(8274),N=n(25184),k=n(79034),S=n(71979),y=n(86727),p=e.MutationObserver||e.WebKitMutationObserver,l=e.document,c=e.process,m=e.Promise,i=a("queueMicrotask"),d,u,s,V,g;if(!i){var v=new f,h=function(){var b,B;for(y&&(b=c.domain)&&b.exit();B=v.get();)try{B()}catch(L){throw v.head&&d(),L}b&&b.enter()};!N&&!y&&!S&&p&&l?(u=!0,s=l.createTextNode(""),new p(h).observe(s,{characterData:!0}),d=function(){s.data=u=!u}):!k&&m&&m.resolve?(V=m.resolve(void 0),V.constructor=m,g=t(V.then,V),d=function(){g(h)}):y?d=function(){c.nextTick(h)}:(o=t(o,e),d=function(){o(h)}),i=function(b){v.head||d(),v.add(b)}}I.exports=i},14187:function(I,r,n){"use strict";var e=n(79474),a=TypeError,t=function(f){var N,k;this.promise=new f(function(S,y){if(N!==void 0||k!==void 0)throw new a("Bad Promise constructor");N=S,k=y}),this.resolve=e(N),this.reject=e(k)};I.exports.f=function(o){return new t(o)}},75816:function(I,r,n){"use strict";var e=n(28774),a=TypeError;I.exports=function(t){if(e(t))throw new a("The method doesn't accept regular expressions");return t}},23944:function(I,r,n){"use strict";var e=n(26856),a=e.isFinite;I.exports=Number.isFinite||function(){function t(o){return typeof o=="number"&&a(o)}return t}()},98973:function(I,r,n){"use strict";var e=n(26856),a=n(13586),t=n(72908),o=n(8758),f=n(47913).trim,N=n(47410),k=t("".charAt),S=e.parseFloat,y=e.Symbol,p=y&&y.iterator,l=1/S(N+"-0")!==-1/0||p&&!a(function(){S(Object(p))});I.exports=l?function(){function c(m){var i=f(o(m)),d=S(i);return d===0&&k(i,0)==="-"?-0:d}return c}():S},41148:function(I,r,n){"use strict";var e=n(26856),a=n(13586),t=n(72908),o=n(8758),f=n(47913).trim,N=n(47410),k=e.parseInt,S=e.Symbol,y=S&&S.iterator,p=/^[+-]?0x/i,l=t(p.exec),c=k(N+"08")!==8||k(N+"0x16")!==22||y&&!a(function(){k(Object(y))});I.exports=c?function(){function m(i,d){var u=f(o(i));return k(u,d>>>0||(l(p,u)?16:10))}return m}():k},23554:function(I,r,n){"use strict";var e=n(16361),a=n(72908),t=n(20276),o=n(13586),f=n(99869),N=n(61791),k=n(10409),S=n(63549),y=n(80689),p=Object.assign,l=Object.defineProperty,c=a([].concat);I.exports=!p||o(function(){if(e&&p({b:1},p(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}),p({},m)[d]!==7||f(p({},i)).join("")!==u})?function(){function m(i,d){for(var u=S(i),s=arguments.length,V=1,g=N.f,v=k.f;s>V;)for(var h=y(arguments[V++]),C=g?c(f(h),g(h)):f(h),b=C.length,B=0,L;b>B;)L=C[B++],(!e||t(v,h,L))&&(u[L]=h[L]);return u}return m}():p},15439:function(I,r,n){"use strict";var e=n(45418),a=n(55119),t=n(38139),o=n(51653),f=n(21474),N=n(55642),k=n(97223),S=">",y="<",p="prototype",l="script",c=k("IE_PROTO"),m=function(){},i=function(v){return y+l+S+v+y+"/"+l+S},d=function(v){v.write(i("")),v.close();var h=v.parentWindow.Object;return v=null,h},u=function(){var v=N("iframe"),h="java"+l+":",C;return v.style.display="none",f.appendChild(v),v.src=String(h),C=v.contentWindow.document,C.open(),C.write(i("document.F=Object")),C.close(),C.F},s,V=function(){try{s=new ActiveXObject("htmlfile")}catch(h){}V=typeof document!="undefined"?document.domain&&s?d(s):u():d(s);for(var v=t.length;v--;)delete V[p][t[v]];return V()};o[c]=!0,I.exports=Object.create||function(){function g(v,h){var C;return v!==null?(m[p]=e(v),C=new m,m[p]=null,C[c]=v):C=V(),h===void 0?C:a.f(C,h)}return g}()},55119:function(I,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 k(S,y){o(S);for(var p=f(y),l=N(y),c=l.length,m=0,i;c>m;)t.f(S,i=l[m++],p[i]);return S}return k}()},8165:function(I,r,n){"use strict";var e=n(16361),a=n(16109),t=n(87168),o=n(45418),f=n(72445),N=TypeError,k=Object.defineProperty,S=Object.getOwnPropertyDescriptor,y="enumerable",p="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:p in d?d[p]:u[p],enumerable:y in d?d[y]:u[y],writable:!1})}return k(m,i,d)}return c}():k:function(){function c(m,i,d){if(o(m),i=f(i),o(d),a)try{return k(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(I,r,n){"use strict";var e=n(16361),a=n(20276),t=n(10409),o=n(73970),f=n(54292),N=n(72445),k=n(3302),S=n(16109),y=Object.getOwnPropertyDescriptor;r.f=e?y:function(){function p(l,c){if(l=f(l),c=N(c),S)try{return y(l,c)}catch(m){}if(k(l,c))return o(!a(t.f,l,c),l[c])}return p}()},31024:function(I,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)}};I.exports.f=function(){function k(S){return f&&e(S)==="Window"?N(S):t(a(S))}return k}()},60097:function(I,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(I,r){"use strict";r.f=Object.getOwnPropertySymbols},56379:function(I,r,n){"use strict";var e=n(3302),a=n(53664),t=n(63549),o=n(97223),f=n(62297),N=o("IE_PROTO"),k=Object,S=k.prototype;I.exports=f?k.getPrototypeOf:function(y){var p=t(y);if(e(p,N))return p[N];var l=p.constructor;return a(l)&&p instanceof l?l.prototype:p instanceof k?S:null}},58221:function(I,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)});I.exports=N||o?function(){function k(S){return!a(S)||o&&t(S)==="ArrayBuffer"?!1:f?f(S):!0}return k}():f},54341:function(I,r,n){"use strict";var e=n(72908);I.exports=e({}.isPrototypeOf)},49871:function(I,r,n){"use strict";var e=n(72908),a=n(3302),t=n(54292),o=n(33483).indexOf,f=n(51653),N=e([].push);I.exports=function(k,S){var y=t(k),p=0,l=[],c;for(c in y)!a(f,c)&&a(y,c)&&N(l,c);for(;S.length>p;)a(y,c=S[p++])&&(~o(l,c)||N(l,c));return l}},99869:function(I,r,n){"use strict";var e=n(49871),a=n(38139);I.exports=Object.keys||function(){function t(o){return e(o,a)}return t}()},10409:function(I,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(I,r,n){"use strict";var e=n(90139),a=n(26856),t=n(13586),o=n(27204);I.exports=e||!t(function(){if(!(o&&o<535)){var f=Math.random();__defineSetter__.call(null,f,function(){}),delete a[f]}})},91420:function(I,r,n){"use strict";var e=n(53715),a=n(45418),t=n(30907);I.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(k){}return function(){function k(S,y){return a(S),t(y),o?N(S,y):S.__proto__=y,S}return k}()}():void 0)},64266:function(I,r,n){"use strict";var e=n(16361),a=n(13586),t=n(72908),o=n(56379),f=n(99869),N=n(54292),k=n(10409).f,S=t(k),y=t([].push),p=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=p&&o(d)===null,V=u.length,g=0,v=[],h;V>g;)h=u[g++],(!e||(s?h in d:S(d,h)))&&y(v,m?[h,d[h]]:d[h]);return v}};I.exports={entries:l(!0),values:l(!1)}},6625:function(I,r,n){"use strict";var e=n(41936),a=n(48615);I.exports=e?{}.toString:function(){function t(){return"[object "+a(this)+"]"}return t}()},56109:function(I,r,n){"use strict";var e=n(20276),a=n(53664),t=n(66379),o=TypeError;I.exports=function(f,N){var k,S;if(N==="string"&&a(k=f.toString)&&!t(S=e(k,f))||a(k=f.valueOf)&&!t(S=e(k,f))||N!=="string"&&a(k=f.toString)&&!t(S=e(k,f)))return S;throw new o("Can't convert object to primitive value")}},53988:function(I,r,n){"use strict";var e=n(22070),a=n(72908),t=n(60097),o=n(61791),f=n(45418),N=a([].concat);I.exports=e("Reflect","ownKeys")||function(){function k(S){var y=t.f(f(S)),p=o.f;return p?N(y,p(S)):y}return k}()},55601:function(I,r,n){"use strict";var e=n(26856);I.exports=e},73034:function(I){"use strict";I.exports=function(r){try{return{error:!1,value:r()}}catch(n){return{error:!0,value:n}}}},14657:function(I,r,n){"use strict";var e=n(26856),a=n(3e3),t=n(53664),o=n(23620),f=n(92004),N=n(95558),k=n(52460),S=n(53437),y=n(90139),p=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&&p===66||y&&!(l.catch&&l.finally))return!0;if(!p||p<51||!/native code/.test(u)){var V=new a(function(h){h(1)}),g=function(C){C(function(){},function(){})},v=V.constructor={};if(v[c]=g,m=V.then(function(){})instanceof g,!m)return!0}return!s&&(k||S)&&!i});I.exports={CONSTRUCTOR:d,REJECTION_EVENT:i,SUBCLASSING:m}},3e3:function(I,r,n){"use strict";var e=n(26856);I.exports=e.Promise},61988:function(I,r,n){"use strict";var e=n(45418),a=n(66379),t=n(14187);I.exports=function(o,f){if(e(o),a(f)&&f.constructor===o)return f;var N=t.f(o),k=N.resolve;return k(f),N.promise}},18182:function(I,r,n){"use strict";var e=n(3e3),a=n(1608),t=n(14657).CONSTRUCTOR;I.exports=t||!a(function(o){e.all(o).then(void 0,function(){})})},69713:function(I,r,n){"use strict";var e=n(8165).f;I.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(I){"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}()},I.exports=r},59833:function(I,r,n){"use strict";var e=n(20276),a=n(45418),t=n(53664),o=n(8649),f=n(59049),N=TypeError;I.exports=function(k,S){var y=k.exec;if(t(y)){var p=e(y,k,S);return p!==null&&a(p),p}if(o(k)==="RegExp")return e(f,k,S);throw new N("RegExp#exec called on incompatible receiver")}},59049:function(I,r,n){"use strict";var e=n(20276),a=n(72908),t=n(8758),o=n(41913),f=n(96472),N=n(7624),k=n(15439),S=n(4471).get,y=n(18095),p=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),V=function(){var C=/a/,b=/b*/g;return e(c,C,"a"),e(c,b,"a"),C.lastIndex!==0||b.lastIndex!==0}(),g=f.BROKEN_CARET,v=/()??/.exec("")[1]!==void 0,h=V||v||g||y||p;h&&(m=function(){function C(b){var B=this,L=S(B),w=t(b),T=L.raw,A,x,E,M,R,O,D;if(T)return T.lastIndex=B.lastIndex,A=e(m,T,w),B.lastIndex=T.lastIndex,A;var j=L.groups,U=g&&B.sticky,W=e(o,B),K=B.source,G=0,$=w;if(U&&(W=u(W,"y",""),d(W,"g")===-1&&(W+="g"),$=s(w,B.lastIndex),B.lastIndex>0&&(!B.multiline||B.multiline&&i(w,B.lastIndex-1)!=="\n")&&(K="(?: "+K+")",$=" "+$,G++),x=new RegExp("^(?:"+K+")",W)),v&&(x=new RegExp("^"+K+"$(?!\\s)",W)),V&&(E=B.lastIndex),M=e(c,U?x:B,$),U?M?(M.input=s(M.input,G),M[0]=s(M[0],G),M.index=B.lastIndex,B.lastIndex+=M[0].length):B.lastIndex=0:V&&M&&(B.lastIndex=B.global?M.index+M[0].length:E),v&&M&&M.length>1&&e(l,M[0],x,function(){for(R=1;Rb)","g");return o.exec("b").groups.a!=="b"||"b".replace(o,"$c")!=="bc"})},305:function(I,r,n){"use strict";var e=n(62695),a=TypeError;I.exports=function(t){if(e(t))throw new a("Can't call method on "+t);return t}},8975:function(I,r,n){"use strict";var e=n(26856),a=n(16361),t=Object.getOwnPropertyDescriptor;I.exports=function(o){if(!a)return e[o];var f=t(e,o);return f&&f.value}},91935:function(I){"use strict";I.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(I,r,n){"use strict";var e=n(26856),a=n(47244),t=n(53664),o=n(68261),f=n(74247),N=n(31170),k=n(92827),S=e.Function,y=/MSIE .\./.test(f)||o&&function(){var p=e.Bun.version.split(".");return p.length<3||p[0]==="0"&&(p[1]<3||p[1]==="3"&&p[2]==="0")}();I.exports=function(p,l){var c=l?2:1;return y?function(m,i){var d=k(arguments.length,1)>c,u=t(m)?m:S(m),s=d?N(arguments,c):[],V=d?function(){a(u,this,s)}:u;return l?p(V,i):p(V)}:p}},92468:function(I,r,n){"use strict";var e=n(22070),a=n(57301),t=n(95558),o=n(16361),f=t("species");I.exports=function(N){var k=e(N);o&&k&&!k[f]&&a(k,f,{configurable:!0,get:function(){function S(){return this}return S}()})}},15676:function(I,r,n){"use strict";var e=n(8165).f,a=n(3302),t=n(95558),o=t("toStringTag");I.exports=function(f,N,k){f&&!k&&(f=f.prototype),f&&!a(f,o)&&e(f,o,{configurable:!0,value:N})}},97223:function(I,r,n){"use strict";var e=n(7624),a=n(76246),t=e("keys");I.exports=function(o){return t[o]||(t[o]=a(o))}},70192:function(I,r,n){"use strict";var e=n(26856),a=n(17553),t="__core-js_shared__",o=e[t]||a(t,{});I.exports=o},7624:function(I,r,n){"use strict";var e=n(90139),a=n(70192);(I.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(I,r,n){"use strict";var e=n(45418),a=n(48218),t=n(62695),o=n(95558),f=o("species");I.exports=function(N,k){var S=e(N).constructor,y;return S===void 0||t(y=e(S)[f])?k:a(y)}},81626:function(I,r,n){"use strict";var e=n(13586);I.exports=function(a){return e(function(){var t=""[a]('"');return t!==t.toLowerCase()||t.split('"').length>3})}},13300:function(I,r,n){"use strict";var e=n(72908),a=n(84501),t=n(8758),o=n(305),f=e("".charAt),N=e("".charCodeAt),k=e("".slice),S=function(p){return function(l,c){var m=t(o(l)),i=a(c),d=m.length,u,s;return i<0||i>=d?p?"":void 0:(u=N(m,i),u<55296||u>56319||i+1===d||(s=N(m,i+1))<56320||s>57343?p?f(m,i):u:p?k(m,i,i+2):(u-55296<<10)+(s-56320)+65536)}};I.exports={codeAt:S(!1),charAt:S(!0)}},51468:function(I,r,n){"use strict";var e=n(74247);I.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(e)},81290:function(I,r,n){"use strict";var e=n(72908),a=n(74369),t=n(8758),o=n(75463),f=n(305),N=e(o),k=e("".slice),S=Math.ceil,y=function(l){return function(c,m,i){var d=t(f(c)),u=a(m),s=d.length,V=i===void 0?" ":t(i),g,v;return u<=s||V===""?d:(g=u-s,v=N(V,S(g/V.length)),v.length>g&&(v=k(v,0,g)),l?d+v:v+d)}};I.exports={start:y(!1),end:y(!0)}},75463:function(I,r,n){"use strict";var e=n(84501),a=n(8758),t=n(305),o=RangeError;I.exports=function(){function f(N){var k=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)&&(k+=k))y&1&&(S+=k);return S}return f}()},45745:function(I,r,n){"use strict";var e=n(47913).end,a=n(15677);I.exports=a("trimEnd")?function(){function t(){return e(this)}return t}():"".trimEnd},15677:function(I,r,n){"use strict";var e=n(15340).PROPER,a=n(13586),t=n(47410),o="\u200B\x85\u180E";I.exports=function(f){return a(function(){return!!t[f]()||o[f]()!==o||e&&t[f].name!==f})}},35634:function(I,r,n){"use strict";var e=n(47913).start,a=n(15677);I.exports=a("trimStart")?function(){function t(){return e(this)}return t}():"".trimStart},47913:function(I,r,n){"use strict";var e=n(72908),a=n(305),t=n(8758),o=n(47410),f=e("".replace),N=RegExp("^["+o+"]+"),k=RegExp("(^|[^"+o+"])["+o+"]+$"),S=function(p){return function(l){var c=t(a(l));return p&1&&(c=f(c,N,"")),p&2&&(c=f(c,k,"$1")),c}};I.exports={start:S(1),end:S(2),trim:S(3)}},61855:function(I,r,n){"use strict";var e=n(43541),a=n(13586),t=n(26856),o=t.String;I.exports=!!Object.getOwnPropertySymbols&&!a(function(){var f=Symbol("symbol detection");return!o(f)||!(Object(f)instanceof Symbol)||!Symbol.sham&&e&&e<41})},28952:function(I,r,n){"use strict";var e=n(20276),a=n(22070),t=n(95558),o=n(60855);I.exports=function(){var f=a("Symbol"),N=f&&f.prototype,k=N&&N.valueOf,S=t("toPrimitive");N&&!N[S]&&o(N,S,function(y){return e(k,this)},{arity:1})}},16010:function(I,r,n){"use strict";var e=n(61855);I.exports=e&&!!Symbol.for&&!!Symbol.keyFor},87073:function(I,r,n){"use strict";var e=n(26856),a=n(47244),t=n(8942),o=n(53664),f=n(3302),N=n(13586),k=n(21474),S=n(31170),y=n(55642),p=n(92827),l=n(25184),c=n(86727),m=e.setImmediate,i=e.clearImmediate,d=e.process,u=e.Dispatch,s=e.Function,V=e.MessageChannel,g=e.String,v=0,h={},C="onreadystatechange",b,B,L,w;N(function(){b=e.location});var T=function(R){if(f(h,R)){var O=h[R];delete h[R],O()}},A=function(R){return function(){T(R)}},x=function(R){T(R.data)},E=function(R){e.postMessage(g(R),b.protocol+"//"+b.host)};(!m||!i)&&(m=function(){function M(R){p(arguments.length,1);var O=o(R)?R:s(R),D=S(arguments,1);return h[++v]=function(){a(O,void 0,D)},B(v),v}return M}(),i=function(){function M(R){delete h[R]}return M}(),c?B=function(R){d.nextTick(A(R))}:u&&u.now?B=function(R){u.now(A(R))}:V&&!l?(L=new V,w=L.port2,L.port1.onmessage=x,B=t(w.postMessage,w)):e.addEventListener&&o(e.postMessage)&&!e.importScripts&&b&&b.protocol!=="file:"&&!N(E)?(B=E,e.addEventListener("message",x,!1)):C in y("script")?B=function(R){k.appendChild(y("script"))[C]=function(){k.removeChild(this),T(R)}}:B=function(R){setTimeout(A(R),0)}),I.exports={set:m,clear:i}},7950:function(I,r,n){"use strict";var e=n(72908);I.exports=e(1 .valueOf)},39531:function(I,r,n){"use strict";var e=n(84501),a=Math.max,t=Math.min;I.exports=function(o,f){var N=e(o);return N<0?a(N+f,0):t(N,f)}},73873:function(I,r,n){"use strict";var e=n(9560),a=TypeError;I.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(I,r,n){"use strict";var e=n(84501),a=n(74369),t=RangeError;I.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(I,r,n){"use strict";var e=n(80689),a=n(305);I.exports=function(t){return e(a(t))}},84501:function(I,r,n){"use strict";var e=n(54037);I.exports=function(a){var t=+a;return t!==t||t===0?0:e(t)}},74369:function(I,r,n){"use strict";var e=n(84501),a=Math.min;I.exports=function(t){return t>0?a(e(t),9007199254740991):0}},63549:function(I,r,n){"use strict";var e=n(305),a=Object;I.exports=function(t){return a(e(t))}},45476:function(I,r,n){"use strict";var e=n(70685),a=RangeError;I.exports=function(t,o){var f=e(t);if(f%o)throw new a("Wrong offset");return f}},70685:function(I,r,n){"use strict";var e=n(84501),a=RangeError;I.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(I,r,n){"use strict";var e=n(20276),a=n(66379),t=n(43474),o=n(76540),f=n(56109),N=n(95558),k=TypeError,S=N("toPrimitive");I.exports=function(y,p){if(!a(y)||t(y))return y;var l=o(y,S),c;if(l){if(p===void 0&&(p="default"),c=e(l,y,p),!a(c)||t(c))return c;throw new k("Can't convert object to primitive value")}return p===void 0&&(p="number"),f(y,p)}},72445:function(I,r,n){"use strict";var e=n(9560),a=n(43474);I.exports=function(t){var o=e(t,"string");return a(o)?o:o+""}},41936:function(I,r,n){"use strict";var e=n(95558),a=e("toStringTag"),t={};t[a]="z",I.exports=String(t)==="[object z]"},8758:function(I,r,n){"use strict";var e=n(48615),a=String;I.exports=function(t){if(e(t)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return a(t)}},52834:function(I){"use strict";var r=Math.round;I.exports=function(n){var e=r(n);return e<0?0:e>255?255:e&255}},36787:function(I){"use strict";var r=String;I.exports=function(n){try{return r(n)}catch(e){return"Object"}}},43186:function(I,r,n){"use strict";var e=n(3116),a=n(26856),t=n(20276),o=n(16361),f=n(45410),N=n(30432),k=n(31284),S=n(14434),y=n(73970),p=n(21650),l=n(76117),c=n(74369),m=n(28968),i=n(45476),d=n(52834),u=n(72445),s=n(3302),V=n(48615),g=n(66379),v=n(43474),h=n(15439),C=n(54341),b=n(91420),B=n(60097).f,L=n(12778),w=n(18539).forEach,T=n(92468),A=n(57301),x=n(8165),E=n(19765),M=n(21465),R=n(4471),O=n(43405),D=R.get,j=R.set,U=R.enforce,W=x.f,K=E.f,G=a.RangeError,$=k.ArrayBuffer,z=$.prototype,Y=k.DataView,J=N.NATIVE_ARRAY_BUFFER_VIEWS,ie=N.TYPED_ARRAY_TAG,re=N.TypedArray,de=N.TypedArrayPrototype,ve=N.isTypedArray,ye="BYTES_PER_ELEMENT",Le="Wrong length",pe=function(te,be){A(te,be,{configurable:!0,get:function(){function fe(){return D(this)[be]}return fe}()})},ne=function(te){var be;return C(z,te)||(be=V(te))==="ArrayBuffer"||be==="SharedArrayBuffer"},ae=function(te,be){return ve(te)&&!v(be)&&be in te&&l(+be)&&be>=0},q=function(){function me(te,be){return be=u(be),ae(te,be)?y(2,te[be]):K(te,be)}return me}(),se=function(){function me(te,be,fe){return be=u(be),ae(te,be)&&g(fe)&&s(fe,"value")&&!s(fe,"get")&&!s(fe,"set")&&!fe.configurable&&(!s(fe,"writable")||fe.writable)&&(!s(fe,"enumerable")||fe.enumerable)?(te[be]=fe.value,te):W(te,be,fe)}return me}();o?(J||(E.f=q,x.f=se,pe(de,"buffer"),pe(de,"byteOffset"),pe(de,"byteLength"),pe(de,"length")),e({target:"Object",stat:!0,forced:!J},{getOwnPropertyDescriptor:q,defineProperty:se}),I.exports=function(me,te,be){var fe=me.match(/\d+/)[0]/8,ge=me+(be?"Clamped":"")+"Array",ke="get"+me,Ce="set"+me,Se=a[ge],we=Se,xe=we&&we.prototype,Pe={},Ue=function(ue,Ne){var Ae=D(ue);return Ae.view[ke](Ne*fe+Ae.byteOffset,!0)},Ve=function(ue,Ne,Ae){var De=D(ue);De.view[Ce](Ne*fe+De.byteOffset,be?d(Ae):Ae,!0)},oe=function(ue,Ne){W(ue,Ne,{get:function(){function Ae(){return Ue(this,Ne)}return Ae}(),set:function(){function Ae(De){return Ve(this,Ne,De)}return Ae}(),enumerable:!0})};J?f&&(we=te(function(he,ue,Ne,Ae){return S(he,xe),O(function(){return g(ue)?ne(ue)?Ae!==void 0?new Se(ue,i(Ne,fe),Ae):Ne!==void 0?new Se(ue,i(Ne,fe)):new Se(ue):ve(ue)?M(we,ue):t(L,we,ue):new Se(m(ue))}(),he,we)}),b&&b(we,re),w(B(Se),function(he){he in we||p(we,he,Se[he])}),we.prototype=xe):(we=te(function(he,ue,Ne,Ae){S(he,xe);var De=0,je=0,Ke,We,He;if(!g(ue))He=m(ue),We=He*fe,Ke=new $(We);else if(ne(ue)){Ke=ue,je=i(Ne,fe);var _e=ue.byteLength;if(Ae===void 0){if(_e%fe)throw new G(Le);if(We=_e-je,We<0)throw new G(Le)}else if(We=c(Ae)*fe,We+je>_e)throw new G(Le);He=We/fe}else return ve(ue)?M(we,ue):t(L,we,ue);for(j(he,{buffer:Ke,byteOffset:je,byteLength:We,length:He,view:new Y(Ke)});De1?arguments[1]:void 0,V=s!==void 0,g=k(d),v,h,C,b,B,L,w,T;if(g&&!S(g))for(w=N(d,g),T=w.next,d=[];!(L=a(T,w)).done;)d.push(L.value);for(V&&u>2&&(s=e(s,arguments[2])),h=f(d),C=new(p(i))(h),b=y(C),v=0;h>v;v++)B=V?s(d[v],v):d[v],C[v]=b?l(B):+B;return C}return c}()},9230:function(I,r,n){"use strict";var e=n(30432),a=n(83604),t=e.aTypedArrayConstructor,o=e.getTypedArrayConstructor;I.exports=function(f){return t(a(f,o(f)))}},76246:function(I,r,n){"use strict";var e=n(72908),a=0,t=Math.random(),o=e(1 .toString);I.exports=function(f){return"Symbol("+(f===void 0?"":f)+")_"+o(++a+t,36)}},95343:function(I,r,n){"use strict";var e=n(61855);I.exports=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},87168:function(I,r,n){"use strict";var e=n(16361),a=n(13586);I.exports=e&&a(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})},92827:function(I){"use strict";var r=TypeError;I.exports=function(n,e){if(n=51||!a(function(){var s=[];return s[m]=!1,s.concat()[0]!==s}),d=function(V){if(!o(V))return!1;var g=V[m];return g!==void 0?!!g:t(V)},u=!i||!p("concat");e({target:"Array",proto:!0,arity:1,forced:u},{concat:function(){function s(V){var g=f(this),v=y(g,0),h=0,C,b,B,L,w;for(C=-1,B=arguments.length;C1?arguments[1]:void 0)}return f}()})},7216:function(I,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(I,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(I,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(k){return a(this,k,arguments.length>1?arguments[1]:void 0)}return N}()}),t(o)},26632:function(I,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(k){return a(this,k,arguments.length>1?arguments[1]:void 0)}return N}()}),t(o)},14064:function(I,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 k(S){var y=o(this),p=f(y),l;return t(S),l=N(y,0),l.length=a(l,y,y,p,0,1,S,arguments.length>1?arguments[1]:void 0),l}return k}()})},55222:function(I,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 k(){var S=arguments.length?arguments[0]:void 0,y=t(this),p=o(y),l=N(y,0);return l.length=a(l,y,y,p,0,S===void 0?1:f(S)),l}return k}()})},68616:function(I,r,n){"use strict";var e=n(3116),a=n(16856);e({target:"Array",proto:!0,forced:[].forEach!==a},{forEach:a})},45168:function(I,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(I,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(k){return a(this,k,arguments.length>1?arguments[1]:void 0)}return N}()}),o("includes")},92654:function(I,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,k=N||!o("indexOf");e({target:"Array",proto:!0,forced:k},{indexOf:function(){function S(y){var p=arguments.length>1?arguments[1]:void 0;return N?f(this,y,p)||0:t(this,y,p)}return S}()})},58423:function(I,r,n){"use strict";var e=n(3116),a=n(59882);e({target:"Array",stat:!0},{isArray:a})},26017:function(I,r,n){"use strict";var e=n(54292),a=n(98759),t=n(47730),o=n(4471),f=n(8165).f,N=n(21436),k=n(32214),S=n(90139),y=n(16361),p="Array Iterator",l=o.set,c=o.getterFor(p);I.exports=N(Array,"Array",function(i,d){l(this,{type:p,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,k(void 0,!0);switch(i.kind){case"keys":return k(u,!1);case"values":return k(d[u],!1)}return k([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(I,r,n){"use strict";var e=n(3116),a=n(72908),t=n(80689),o=n(54292),f=n(56127),N=a([].join),k=t!==Object,S=k||!f("join",",");e({target:"Array",proto:!0,forced:S},{join:function(){function y(p){return N(o(this),p===void 0?",":p)}return y}()})},2509:function(I,r,n){"use strict";var e=n(3116),a=n(16400);e({target:"Array",proto:!0,forced:a!==[].lastIndexOf},{lastIndexOf:a})},2124:function(I,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(I,r,n){"use strict";var e=n(3116),a=n(13586),t=n(49632),o=n(80750),f=Array,N=a(function(){function k(){}return!(f.of.call(k)instanceof k)});e({target:"Array",stat:!0,forced:N},{of:function(){function k(){for(var S=0,y=arguments.length,p=new(t(this)?this:f)(y);y>S;)o(p,S,arguments[S++]);return p.length=y,p}return k}()})},56913:function(I,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,k=N||!t("reduceRight");e({target:"Array",proto:!0,forced:k},{reduceRight:function(){function S(y){return a(this,y,arguments.length,arguments.length>1?arguments[1]:void 0)}return S}()})},7731:function(I,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,k=N||!t("reduce");e({target:"Array",proto:!0,forced:k},{reduce:function(){function S(y){var p=arguments.length;return a(this,y,p,p>1?arguments[1]:void 0)}return S}()})},48704:function(I,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(I,r,n){"use strict";var e=n(3116),a=n(59882),t=n(49632),o=n(66379),f=n(39531),N=n(83207),k=n(54292),S=n(80750),y=n(95558),p=n(34924),l=n(31170),c=p("slice"),m=y("species"),i=Array,d=Math.max;e({target:"Array",proto:!0,forced:!c},{slice:function(){function u(s,V){var g=k(this),v=N(g),h=f(s,v),C=f(V===void 0?v:V,v),b,B,L;if(a(g)&&(b=g.constructor,t(b)&&(b===i||a(b.prototype))?b=void 0:o(b)&&(b=b[m],b===null&&(b=void 0)),b===i||b===void 0))return l(g,h,C);for(B=new(b===void 0?i:b)(d(C-h,0)),L=0;h1?arguments[1]:void 0)}return f}()})},43430:function(I,r,n){"use strict";var e=n(3116),a=n(72908),t=n(79474),o=n(63549),f=n(83207),N=n(81245),k=n(8758),S=n(13586),y=n(91183),p=n(56127),l=n(31574),c=n(88836),m=n(43541),i=n(27204),d=[],u=a(d.sort),s=a(d.push),V=S(function(){d.sort(void 0)}),g=S(function(){d.sort(null)}),v=p("sort"),h=!S(function(){if(m)return m<70;if(!(l&&l>3)){if(c)return!0;if(i)return i<603;var B="",L,w,T,A;for(L=65;L<76;L++){switch(w=String.fromCharCode(L),L){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;Ak(T)?1:-1}};e({target:"Array",proto:!0,forced:C},{sort:function(){function B(L){L!==void 0&&t(L);var w=o(this);if(h)return L===void 0?u(w):u(w,L);var T=[],A=f(w),x,E;for(E=0;Eg-b+C;L--)p(V,L-1)}else if(C>b)for(L=g-b;L>v;L--)w=L+b-1,T=L+C-1,w in V?V[T]=V[w]:p(V,T);for(L=0;L9490626562425156e-8?o(p)+N:a(p-1+f(p-1)*f(p+1))}return S}()})},68872:function(I,r,n){"use strict";var e=n(3116),a=Math.asinh,t=Math.log,o=Math.sqrt;function f(k){var S=+k;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(I,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 k=+N;return k===0?k:t((1+k)/(1-k))/2}return f}()})},1795:function(I,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 k=+N;return a(k)*o(t(k),.3333333333333333)}return f}()})},11121:function(I,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 k=N>>>0;return k?31-a(t(k+.5)*o):32}return f}()})},18730:function(I,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 k(S){var y=a(o(S)-1)+1;return(y+1/(y*f*f))*(f/2)}return k}()})},11624:function(I,r,n){"use strict";var e=n(3116),a=n(80563);e({target:"Math",stat:!0,forced:a!==Math.expm1},{expm1:a})},89004:function(I,r,n){"use strict";var e=n(3116),a=n(48705);e({target:"Math",stat:!0},{fround:a})},72680:function(I,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(k,S){for(var y=0,p=0,l=arguments.length,c=0,m,i;p0?(i=m/c,y+=i*i):y+=m;return c===1/0?1/0:c*o(y)}return N}()})},75213:function(I,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,k){var S=65535,y=+N,p=+k,l=S&y,c=S&p;return 0|l*c+((S&y>>>16)*c+l*(S&p>>>16)<<16>>>0)}return f}()})},4347:function(I,r,n){"use strict";var e=n(3116),a=n(74347);e({target:"Math",stat:!0},{log10:a})},86433:function(I,r,n){"use strict";var e=n(3116),a=n(50169);e({target:"Math",stat:!0},{log1p:a})},21401:function(I,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(I,r,n){"use strict";var e=n(3116),a=n(30585);e({target:"Math",stat:!0},{sign:a})},36183:function(I,r,n){"use strict";var e=n(3116),a=n(13586),t=n(80563),o=Math.abs,f=Math.exp,N=Math.E,k=a(function(){return Math.sinh(-2e-17)!==-2e-17});e({target:"Math",stat:!0,forced:k},{sinh:function(){function S(y){var p=+y;return o(p)<1?(t(p)-t(-p))/2:(f(p-1)-f(-p-1))*(N/2)}return S}()})},95499:function(I,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,k=a(N),S=a(-N);return k===1/0?1:S===1/0?-1:(k-S)/(t(N)+t(-N))}return o}()})},50929:function(I,r,n){"use strict";var e=n(15676);e(Math,"Math",!0)},91447:function(I,r,n){"use strict";var e=n(3116),a=n(54037);e({target:"Math",stat:!0},{trunc:a})},84314:function(I,r,n){"use strict";var e=n(3116),a=n(90139),t=n(16361),o=n(26856),f=n(55601),N=n(72908),k=n(23620),S=n(3302),y=n(43405),p=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),V=n(47913).trim,g="Number",v=o[g],h=f[g],C=v.prototype,b=o.TypeError,B=N("".slice),L=N("".charCodeAt),w=function(O){var D=c(O,"number");return typeof D=="bigint"?D:T(D)},T=function(O){var D=c(O,"number"),j,U,W,K,G,$,z,Y;if(l(D))throw new b("Cannot convert a Symbol value to a number");if(typeof D=="string"&&D.length>2){if(D=V(D),j=L(D,0),j===43||j===45){if(U=L(D,2),U===88||U===120)return NaN}else if(j===48){switch(L(D,1)){case 66:case 98:W=2,K=49;break;case 79:case 111:W=8,K=55;break;default:return+D}for(G=B(D,2),$=G.length,z=0;z<$;z++)if(Y=L(G,z),Y<48||Y>K)return NaN;return parseInt(G,W)}}return+D},A=k(g,!v(" 0o1")||!v("0b1")||v("+0x1")),x=function(O){return p(C,O)&&m(function(){s(O)})},E=function(){function R(O){var D=arguments.length<1?0:v(w(O));return x(this)?y(Object(D),this,E):D}return R}();E.prototype=C,A&&!a&&(C.constructor=E),e({global:!0,constructor:!0,wrap:!0,forced:A},{Number:E});var M=function(O,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(","),U=0,W;j.length>U;U++)S(D,W=j[U])&&!S(O,W)&&u(O,W,d(D,W))};a&&h&&M(f[g],h),(A||a)&&M(f[g],v)},48211:function(I,r,n){"use strict";var e=n(3116);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)})},52237:function(I,r,n){"use strict";var e=n(3116),a=n(23944);e({target:"Number",stat:!0},{isFinite:a})},306:function(I,r,n){"use strict";var e=n(3116),a=n(76117);e({target:"Number",stat:!0},{isInteger:a})},22509:function(I,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(I,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(I,r,n){"use strict";var e=n(3116);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})},76585:function(I,r,n){"use strict";var e=n(3116);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991})},21733:function(I,r,n){"use strict";var e=n(3116),a=n(98973);e({target:"Number",stat:!0,forced:Number.parseFloat!==a},{parseFloat:a})},21210:function(I,r,n){"use strict";var e=n(3116),a=n(41148);e({target:"Number",stat:!0,forced:Number.parseInt!==a},{parseInt:a})},10272:function(I,r,n){"use strict";var e=n(3116),a=n(72908),t=n(84501),o=n(7950),f=n(75463),N=n(13586),k=RangeError,S=String,y=Math.floor,p=a(f),l=a("".slice),c=a(1 .toFixed),m=function g(v,h,C){return h===0?C:h%2===1?g(v,h-1,C*v):g(v*v,h/2,C)},i=function(v){for(var h=0,C=v;C>=4096;)h+=12,C/=4096;for(;C>=2;)h+=1,C/=2;return h},d=function(v,h,C){for(var b=-1,B=C;++b<6;)B+=h*v[b],v[b]=B%1e7,B=y(B/1e7)},u=function(v,h){for(var C=6,b=0;--C>=0;)b+=v[C],v[C]=y(b/h),b=b%h*1e7},s=function(v){for(var h=6,C="";--h>=0;)if(C!==""||h===0||v[h]!==0){var b=S(v[h]);C=C===""?b:C+p("0",7-b.length)+b}return C},V=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:V},{toFixed:function(){function g(v){var h=o(this),C=t(v),b=[0,0,0,0,0,0],B="",L="0",w,T,A,x;if(C<0||C>20)throw new k("Incorrect fraction digits");if(h!==h)return"NaN";if(h<=-1e21||h>=1e21)return S(h);if(h<0&&(B="-",h=-h),h>1e-21)if(w=i(h*m(2,69,1))-69,T=w<0?h*m(2,-w,1):h/m(2,w,1),T*=4503599627370496,w=52-w,w>0){for(d(b,0,T),A=C;A>=7;)d(b,1e7,0),A-=7;for(d(b,m(10,A,1),0),A=w-1;A>=23;)u(b,8388608),A-=23;u(b,1<0?(x=L.length,L=B+(x<=C?"0."+p("0",C-x)+L:l(L,0,x-C)+"."+l(L,x-C))):L=B+L,L}return g}()})},83403:function(I,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 k(S){return S===void 0?f(o(this)):f(o(this),S)}return k}()})},4229:function(I,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(I,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(I,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 k(S,y){N.f(f(this),S,{get:o(y),enumerable:!0,configurable:!0})}return k}()})},53822:function(I,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(I,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(I,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 k(S,y){N.f(f(this),S,{set:o(y),enumerable:!0,configurable:!0})}return k}()})},14955:function(I,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(I,r,n){"use strict";var e=n(3116),a=n(58199),t=n(13586),o=n(66379),f=n(66526).onFreeze,N=Object.freeze,k=t(function(){N(1)});e({target:"Object",stat:!0,forced:k,sham:!a},{freeze:function(){function S(y){return N&&o(y)?N(f(y)):y}return S}()})},81941:function(I,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(k,S){t(N,k,S)},{AS_ENTRIES:!0}),N}return o}()})},37245:function(I,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 k(S,y){return o(t(S),y)}return k}()})},8373:function(I,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 k(S){for(var y=o(S),p=f.f,l=t(y),c={},m=0,i,d;l.length>m;)d=p(y,i=l[m++]),d!==void 0&&N(c,i,d);return c}return k}()})},81212:function(I,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(I,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 k(S){var y=o.f;return y?y(f(S)):[]}return k}()})},26054:function(I,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 k(S){return o(t(S))}return k}()})},49611:function(I,r,n){"use strict";var e=n(3116),a=n(58221);e({target:"Object",stat:!0,forced:Object.isExtensible!==a},{isExtensible:a})},98344:function(I,r,n){"use strict";var e=n(3116),a=n(13586),t=n(66379),o=n(8649),f=n(8685),N=Object.isFrozen,k=f||a(function(){N(1)});e({target:"Object",stat:!0,forced:k},{isFrozen:function(){function S(y){return!t(y)||f&&o(y)==="ArrayBuffer"?!0:N?N(y):!1}return S}()})},55750:function(I,r,n){"use strict";var e=n(3116),a=n(13586),t=n(66379),o=n(8649),f=n(8685),N=Object.isSealed,k=f||a(function(){N(1)});e({target:"Object",stat:!0,forced:k},{isSealed:function(){function S(y){return!t(y)||f&&o(y)==="ArrayBuffer"?!0:N?N(y):!1}return S}()})},57745:function(I,r,n){"use strict";var e=n(3116),a=n(91935);e({target:"Object",stat:!0},{is:a})},7340:function(I,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(k){return t(a(k))}return N}()})},63429:function(I,r,n){"use strict";var e=n(3116),a=n(16361),t=n(6205),o=n(63549),f=n(72445),N=n(56379),k=n(19765).f;a&&e({target:"Object",proto:!0,forced:t},{__lookupGetter__:function(){function S(y){var p=o(this),l=f(y),c;do if(c=k(p,l))return c.get;while(p=N(p))}return S}()})},9558:function(I,r,n){"use strict";var e=n(3116),a=n(16361),t=n(6205),o=n(63549),f=n(72445),N=n(56379),k=n(19765).f;a&&e({target:"Object",proto:!0,forced:t},{__lookupSetter__:function(){function S(y){var p=o(this),l=f(y),c;do if(c=k(p,l))return c.set;while(p=N(p))}return S}()})},2420:function(I,r,n){"use strict";var e=n(3116),a=n(66379),t=n(66526).onFreeze,o=n(58199),f=n(13586),N=Object.preventExtensions,k=f(function(){N(1)});e({target:"Object",stat:!0,forced:k,sham:!o},{preventExtensions:function(){function S(y){return N&&a(y)?N(t(y)):y}return S}()})},19015:function(I,r,n){"use strict";var e=n(3116),a=n(66379),t=n(66526).onFreeze,o=n(58199),f=n(13586),N=Object.seal,k=f(function(){N(1)});e({target:"Object",stat:!0,forced:k,sham:!o},{seal:function(){function S(y){return N&&a(y)?N(t(y)):y}return S}()})},34137:function(I,r,n){"use strict";var e=n(3116),a=n(91420);e({target:"Object",stat:!0},{setPrototypeOf:a})},24705:function(I,r,n){"use strict";var e=n(41936),a=n(60855),t=n(6625);e||a(Object.prototype,"toString",t,{unsafe:!0})},55318:function(I,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(I,r,n){"use strict";var e=n(3116),a=n(98973);e({global:!0,forced:parseFloat!==a},{parseFloat:a})},12217:function(I,r,n){"use strict";var e=n(3116),a=n(41148);e({global:!0,forced:parseInt!==a},{parseInt:a})},70479:function(I,r,n){"use strict";var e=n(3116),a=n(20276),t=n(79474),o=n(14187),f=n(73034),N=n(20453),k=n(18182);e({target:"Promise",stat:!0,forced:k},{all:function(){function S(y){var p=this,l=o.f(p),c=l.resolve,m=l.reject,i=f(function(){var d=t(p.resolve),u=[],s=0,V=1;N(y,function(g){var v=s++,h=!1;V++,a(d,p,g).then(function(C){h||(h=!0,u[v]=C,--V||c(u))},m)}),--V||c(u)});return i.error&&m(i.value),l.promise}return S}()})},72188:function(I,r,n){"use strict";var e=n(3116),a=n(90139),t=n(14657).CONSTRUCTOR,o=n(3e3),f=n(22070),N=n(53664),k=n(60855),S=o&&o.prototype;if(e({target:"Promise",proto:!0,forced:t,real:!0},{catch:function(){function p(l){return this.then(void 0,l)}return p}()}),!a&&N(o)){var y=f("Promise").prototype.catch;S.catch!==y&&k(S,"catch",y,{unsafe:!0})}},13779:function(I,r,n){"use strict";var e=n(3116),a=n(90139),t=n(86727),o=n(26856),f=n(20276),N=n(60855),k=n(91420),S=n(15676),y=n(92468),p=n(79474),l=n(53664),c=n(66379),m=n(14434),i=n(83604),d=n(87073).set,u=n(60816),s=n(66481),V=n(73034),g=n(8274),v=n(4471),h=n(3e3),C=n(14657),b=n(14187),B="Promise",L=C.CONSTRUCTOR,w=C.REJECTION_EVENT,T=C.SUBCLASSING,A=v.getterFor(B),x=v.set,E=h&&h.prototype,M=h,R=E,O=o.TypeError,D=o.document,j=o.process,U=b.f,W=U,K=!!(D&&D.createEvent&&o.dispatchEvent),G="unhandledrejection",$="rejectionhandled",z=0,Y=1,J=2,ie=1,re=2,de,ve,ye,Le,pe=function(Ce){var Se;return c(Ce)&&l(Se=Ce.then)?Se:!1},ne=function(Ce,Se){var we=Se.value,xe=Se.state===Y,Pe=xe?Ce.ok:Ce.fail,Ue=Ce.resolve,Ve=Ce.reject,oe=Ce.domain,le,he,ue;try{Pe?(xe||(Se.rejection===re&&te(Se),Se.rejection=ie),Pe===!0?le=we:(oe&&oe.enter(),le=Pe(we),oe&&(oe.exit(),ue=!0)),le===Ce.promise?Ve(new O("Promise-chain cycle")):(he=pe(le))?f(he,le,Ue,Ve):Ue(le)):Ve(we)}catch(Ne){oe&&!ue&&oe.exit(),Ve(Ne)}},ae=function(Ce,Se){Ce.notified||(Ce.notified=!0,u(function(){for(var we=Ce.reactions,xe;xe=we.get();)ne(xe,Ce);Ce.notified=!1,Se&&!Ce.rejection&&se(Ce)}))},q=function(Ce,Se,we){var xe,Pe;K?(xe=D.createEvent("Event"),xe.promise=Se,xe.reason=we,xe.initEvent(Ce,!1,!0),o.dispatchEvent(xe)):xe={promise:Se,reason:we},!w&&(Pe=o["on"+Ce])?Pe(xe):Ce===G&&s("Unhandled promise rejection",we)},se=function(Ce){f(d,o,function(){var Se=Ce.facade,we=Ce.value,xe=me(Ce),Pe;if(xe&&(Pe=V(function(){t?j.emit("unhandledRejection",we,Se):q(G,Se,we)}),Ce.rejection=t||me(Ce)?re:ie,Pe.error))throw Pe.value})},me=function(Ce){return Ce.rejection!==ie&&!Ce.parent},te=function(Ce){f(d,o,function(){var Se=Ce.facade;t?j.emit("rejectionHandled",Se):q($,Se,Ce.value)})},be=function(Ce,Se,we){return function(xe){Ce(Se,xe,we)}},fe=function(Ce,Se,we){Ce.done||(Ce.done=!0,we&&(Ce=we),Ce.value=Se,Ce.state=J,ae(Ce,!0))},ge=function ke(Ce,Se,we){if(!Ce.done){Ce.done=!0,we&&(Ce=we);try{if(Ce.facade===Se)throw new O("Promise can't be resolved itself");var xe=pe(Se);xe?u(function(){var Pe={done:!1};try{f(xe,Se,be(ke,Pe,Ce),be(fe,Pe,Ce))}catch(Ue){fe(Pe,Ue,Ce)}}):(Ce.value=Se,Ce.state=Y,ae(Ce,!1))}catch(Pe){fe({done:!1},Pe,Ce)}}};if(L&&(M=function(){function ke(Ce){m(this,R),p(Ce),f(de,this);var Se=A(this);try{Ce(be(ge,Se),be(fe,Se))}catch(we){fe(Se,we)}}return ke}(),R=M.prototype,de=function(){function ke(Ce){x(this,{type:B,done:!1,notified:!1,parent:!1,reactions:new g,rejection:!1,state:z,value:void 0})}return ke}(),de.prototype=N(R,"then",function(){function ke(Ce,Se){var we=A(this),xe=U(i(this,M));return we.parent=!0,xe.ok=l(Ce)?Ce:!0,xe.fail=l(Se)&&Se,xe.domain=t?j.domain:void 0,we.state===z?we.reactions.add(xe):u(function(){ne(xe,we)}),xe.promise}return ke}()),ve=function(){var Ce=new de,Se=A(Ce);this.promise=Ce,this.resolve=be(ge,Se),this.reject=be(fe,Se)},b.f=U=function(Ce){return Ce===M||Ce===ye?new ve(Ce):W(Ce)},!a&&l(h)&&E!==Object.prototype)){Le=E.then,T||N(E,"then",function(){function ke(Ce,Se){var we=this;return new M(function(xe,Pe){f(Le,we,xe,Pe)}).then(Ce,Se)}return ke}(),{unsafe:!0});try{delete E.constructor}catch(ke){}k&&k(E,R)}e({global:!0,constructor:!0,wrap:!0,forced:L},{Promise:M}),S(M,B,!1,!0),y(B)},79063:function(I,r,n){"use strict";var e=n(3116),a=n(90139),t=n(3e3),o=n(13586),f=n(22070),N=n(53664),k=n(83604),S=n(61988),y=n(60855),p=t&&t.prototype,l=!!t&&o(function(){p.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=k(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;p.finally!==c&&y(p,"finally",c,{unsafe:!0})}},75795:function(I,r,n){"use strict";n(13779),n(70479),n(72188),n(18199),n(75955),n(39996)},18199:function(I,r,n){"use strict";var e=n(3116),a=n(20276),t=n(79474),o=n(14187),f=n(73034),N=n(20453),k=n(18182);e({target:"Promise",stat:!0,forced:k},{race:function(){function S(y){var p=this,l=o.f(p),c=l.reject,m=f(function(){var i=t(p.resolve);N(y,function(d){a(i,p,d).then(l.resolve,c)})});return m.error&&c(m.value),l.promise}return S}()})},75955:function(I,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),k=N.reject;return k(f),N.promise}return o}()})},39996:function(I,r,n){"use strict";var e=n(3116),a=n(22070),t=n(90139),o=n(3e3),f=n(14657).CONSTRUCTOR,N=n(61988),k=a("Promise"),S=t&&!f;e({target:"Promise",stat:!0,forced:t||f},{resolve:function(){function y(p){return N(S&&this===k?o:this,p)}return y}()})},1210:function(I,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 k(S,y,p){return a(t(S),y,o(p))}return k}()})},91370:function(I,r,n){"use strict";var e=n(3116),a=n(22070),t=n(47244),o=n(82060),f=n(48218),N=n(45418),k=n(66379),S=n(15439),y=n(13586),p=a("Reflect","construct"),l=Object.prototype,c=[].push,m=y(function(){function u(){}return!(p(function(){},[],u)instanceof u)}),i=!y(function(){p(function(){})}),d=m||i;e({target:"Reflect",stat:!0,forced:d,sham:d},{construct:function(){function u(s,V){f(s),N(V);var g=arguments.length<3?s:f(arguments[2]);if(i&&!m)return p(s,V,g);if(s===g){switch(V.length){case 0:return new s;case 1:return new s(V[0]);case 2:return new s(V[0],V[1]);case 3:return new s(V[0],V[1],V[2]);case 4:return new s(V[0],V[1],V[2],V[3])}var v=[null];return t(c,v,V),new(t(o,s,v))}var h=g.prototype,C=S(k(h)?h:l),b=t(s,C,V);return k(b)?b:C}return u}()})},17327:function(I,r,n){"use strict";var e=n(3116),a=n(16361),t=n(45418),o=n(72445),f=n(8165),N=n(13586),k=N(function(){Reflect.defineProperty(f.f({},1,{value:1}),1,{value:2})});e({target:"Reflect",stat:!0,forced:k,sham:!a},{defineProperty:function(){function S(y,p,l){t(y);var c=o(p);t(l);try{return f.f(y,c,l),!0}catch(m){return!1}}return S}()})},2679:function(I,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 k=t(a(f),N);return k&&!k.configurable?!1:delete f[N]}return o}()})},27262:function(I,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,k){return o.f(t(N),k)}return f}()})},47278:function(I,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(I,r,n){"use strict";var e=n(3116),a=n(20276),t=n(66379),o=n(45418),f=n(75129),N=n(19765),k=n(56379);function S(y,p){var l=arguments.length<3?y:arguments[2],c,m;if(o(y)===l)return y[p];if(c=N.f(y,p),c)return f(c)?c.value:c.get===void 0?void 0:a(c.get,l);if(t(m=k(y)))return S(m,p,l)}e({target:"Reflect",stat:!0},{get:S})},22547:function(I,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(I,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(I,r,n){"use strict";var e=n(3116),a=n(53988);e({target:"Reflect",stat:!0},{ownKeys:a})},71255:function(I,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 k=a("Object","preventExtensions");return k&&k(N),!0}catch(S){return!1}}return f}()})},65558:function(I,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,k){a(N),t(k);try{return o(N,k),!0}catch(S){return!1}}return f}()})},97836:function(I,r,n){"use strict";var e=n(3116),a=n(20276),t=n(45418),o=n(66379),f=n(75129),N=n(13586),k=n(8165),S=n(19765),y=n(56379),p=n(73970);function l(m,i,d){var u=arguments.length<4?m:arguments[3],s=S.f(t(m),i),V,g,v;if(!s){if(o(g=y(m)))return l(g,i,d,u);s=p(0)}if(f(s)){if(s.writable===!1||!o(u))return!1;if(V=S.f(u,i)){if(V.get||V.set||V.writable===!1)return!1;V.value=d,k.f(u,i,V)}else k.f(u,i,p(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=k.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(I,r,n){"use strict";var e=n(16361),a=n(26856),t=n(72908),o=n(23620),f=n(43405),N=n(21650),k=n(15439),S=n(60097).f,y=n(54341),p=n(28774),l=n(8758),c=n(13980),m=n(96472),i=n(69713),d=n(60855),u=n(13586),s=n(3302),V=n(4471).enforce,g=n(92468),v=n(95558),h=n(18095),C=n(17329),b=v("match"),B=a.RegExp,L=B.prototype,w=a.SyntaxError,T=t(L.exec),A=t("".charAt),x=t("".replace),E=t("".indexOf),M=t("".slice),R=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,O=/a/g,D=/a/g,j=new B(O)!==O,U=m.MISSED_STICKY,W=m.UNSUPPORTED_Y,K=e&&(!j||U||h||C||u(function(){return D[b]=!1,B(O)!==O||B(D)===D||String(B(O,"i"))!=="/a/i"})),G=function(re){for(var de=re.length,ve=0,ye="",Le=!1,pe;ve<=de;ve++){if(pe=A(re,ve),pe==="\\"){ye+=pe+A(re,++ve);continue}!Le&&pe==="."?ye+="[\\s\\S]":(pe==="["?Le=!0:pe==="]"&&(Le=!1),ye+=pe)}return ye},$=function(re){for(var de=re.length,ve=0,ye="",Le=[],pe=k(null),ne=!1,ae=!1,q=0,se="",me;ve<=de;ve++){if(me=A(re,ve),me==="\\")me+=A(re,++ve);else if(me==="]")ne=!1;else if(!ne)switch(!0){case me==="[":ne=!0;break;case me==="(":T(R,M(re,ve+1))&&(ve+=2,ae=!0),ye+=me,q++;continue;case(me===">"&&ae):if(se===""||s(pe,se))throw new w("Invalid capture group name");pe[se]=!0,Le[Le.length]=[se,q],ae=!1,se="";continue}ae?se+=me:ye+=me}return[ye,Le]};if(o("RegExp",K)){for(var z=function(){function ie(re,de){var ve=y(L,this),ye=p(re),Le=de===void 0,pe=[],ne=re,ae,q,se,me,te,be;if(!ve&&ye&&Le&&re.constructor===z)return re;if((ye||y(L,re))&&(re=re.source,Le&&(de=c(ne))),re=re===void 0?"":l(re),de=de===void 0?"":l(de),ne=re,h&&"dotAll"in O&&(q=!!de&&E(de,"s")>-1,q&&(de=x(de,/s/g,""))),ae=de,U&&"sticky"in O&&(se=!!de&&E(de,"y")>-1,se&&W&&(de=x(de,/y/g,""))),C&&(me=$(re),re=me[0],pe=me[1]),te=f(B(re,de),ve?this:L,z),(q||se||pe.length)&&(be=V(te),q&&(be.dotAll=!0,be.raw=z(G(re),ae)),se&&(be.sticky=!0),pe.length&&(be.groups=pe)),re!==ne)try{N(te,"source",ne===""?"(?:)":ne)}catch(fe){}return te}return ie}(),Y=S(B),J=0;Y.length>J;)i(z,B,Y[J++]);L.constructor=z,z.prototype=L,d(a,"RegExp",z,{constructor:!0})}g("RegExp")},72941:function(I,r,n){"use strict";var e=n(3116),a=n(59049);e({target:"RegExp",proto:!0,forced:/./.exec!==a},{exec:a})},57918:function(I,r,n){"use strict";var e=n(26856),a=n(16361),t=n(57301),o=n(41913),f=n(13586),N=e.RegExp,k=N.prototype,S=a&&f(function(){var y=!0;try{N(".","d")}catch(s){y=!1}var p={},l="",c=y?"dgimsy":"gimsy",m=function(V,g){Object.defineProperty(p,V,{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(k,"flags").get.call(p);return u!==c||l!==c});S&&t(k,"flags",{configurable:!0,get:o})},2394:function(I,r,n){"use strict";var e=n(15340).PROPER,a=n(60855),t=n(45418),o=n(8758),f=n(13586),N=n(13980),k="toString",S=RegExp.prototype,y=S[k],p=f(function(){return y.call({source:"a",flags:"b"})!=="/a/b"}),l=e&&y.name!==k;(p||l)&&a(S,k,function(){function c(){var m=t(this),i=o(m.source),d=o(N(m));return"/"+i+"/"+d}return c}(),{unsafe:!0})},98480:function(I,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(I,r,n){"use strict";n(98480)},25492:function(I,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(I,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(I,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(I,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(I,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(I,r,n){"use strict";var e=n(3116),a=n(69935),t=n(19765).f,o=n(74369),f=n(8758),N=n(75816),k=n(305),S=n(46339),y=n(90139),p=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(k(this));N(d);var s=arguments.length>1?arguments[1]:void 0,V=u.length,g=s===void 0?V:l(o(s),V),v=f(d);return p(u,g-v.length,g)===v}return i}()})},30733:function(I,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(I,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(I,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(I,r,n){"use strict";var e=n(3116),a=n(72908),t=n(39531),o=RangeError,f=String.fromCharCode,N=String.fromCodePoint,k=a([].join),S=!!N&&N.length!==1;e({target:"String",stat:!0,arity:1,forced:S},{fromCodePoint:function(){function y(p){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 k(l,"")}return y}()})},16792:function(I,r,n){"use strict";var e=n(3116),a=n(72908),t=n(75816),o=n(305),f=n(8758),N=n(46339),k=a("".indexOf);e({target:"String",proto:!0,forced:!N("includes")},{includes:function(){function S(y){return!!~k(f(o(this)),f(t(y)),arguments.length>1?arguments[1]:void 0)}return S}()})},36865:function(I,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(I,r,n){"use strict";var e=n(13300).charAt,a=n(8758),t=n(4471),o=n(21436),f=n(32214),N="String Iterator",k=t.set,S=t.getterFor(N);o(String,"String",function(y){k(this,{type:N,string:a(y),index:0})},function(){function y(){var p=S(this),l=p.string,c=p.index,m;return c>=l.length?f(void 0,!0):(m=e(l,c),p.index+=m.length,f(m,!1))}return y}())},13763:function(I,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(I,r,n){"use strict";var e=n(20276),a=n(18690),t=n(45418),o=n(62695),f=n(74369),N=n(8758),k=n(305),S=n(76540),y=n(47158),p=n(59833);a("match",function(l,c,m){return[function(){function i(d){var u=k(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 p(d,u);var V=d.unicode;d.lastIndex=0;for(var g=[],v=0,h;(h=p(d,u))!==null;){var C=N(h[0]);g[v]=C,C===""&&(d.lastIndex=y(u,f(d.lastIndex),V)),v++}return v===0?null:g}]})},57318:function(I,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(I,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(I,r,n){"use strict";var e=n(3116),a=n(72908),t=n(54292),o=n(63549),f=n(8758),N=n(83207),k=a([].push),S=a([].join);e({target:"String",stat:!0},{raw:function(){function y(p){var l=t(o(p).raw),c=N(l);if(!c)return"";for(var m=arguments.length,i=[],d=0;;){if(k(i,f(l[d++])),d===c)return S(i,"");d")!=="7"});o("replace",function(x,E,M){var R=T?"$":"$0";return[function(){function O(D,j){var U=c(this),W=S(D)?void 0:i(D,V);return W?a(W,D,U,j):a(E,l(U),D,j)}return O}(),function(O,D){var j=N(this),U=l(O);if(typeof D=="string"&&b(D,R)===-1&&b(D,"$<")===-1){var W=M(E,j,U,D);if(W.done)return W.value}var K=k(D);K||(D=l(D));var G=j.global,$;G&&($=j.unicode,j.lastIndex=0);for(var z=[],Y;Y=u(j,U),!(Y===null||(C(z,Y),!G));){var J=l(Y[0]);J===""&&(j.lastIndex=m(U,p(j.lastIndex),$))}for(var ie="",re=0,de=0;de=re&&(ie+=B(U,re,ye)+pe,re=ye+ve.length)}return ie+B(U,re)}]},!A||!w||T)},60981:function(I,r,n){"use strict";var e=n(20276),a=n(18690),t=n(45418),o=n(62695),f=n(305),N=n(91935),k=n(8758),S=n(76540),y=n(59833);a("search",function(p,l,c){return[function(){function m(i){var d=f(this),u=o(i)?void 0:S(i,p);return u?e(u,i,d):new RegExp(i)[p](k(d))}return m}(),function(m){var i=t(this),d=k(m),u=c(l,i,d);if(u.done)return u.value;var s=i.lastIndex;N(s,0)||(i.lastIndex=0);var V=y(i,d);return N(i.lastIndex,s)||(i.lastIndex=s),V===null?-1:V.index}]})},56001:function(I,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(I,r,n){"use strict";var e=n(47244),a=n(20276),t=n(72908),o=n(18690),f=n(45418),N=n(62695),k=n(28774),S=n(305),y=n(83604),p=n(47158),l=n(74369),c=n(8758),m=n(76540),i=n(31170),d=n(59833),u=n(59049),s=n(96472),V=n(13586),g=s.UNSUPPORTED_Y,v=4294967295,h=Math.min,C=[].push,b=t(/./.exec),B=t(C),L=t("".slice),w=!V(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,O){var D=c(S(this)),j=O===void 0?v:O>>>0;if(j===0)return[];if(R===void 0)return[D];if(!k(R))return a(A,D,R,j);for(var U=[],W=(R.ignoreCase?"i":"")+(R.multiline?"m":"")+(R.unicode?"u":"")+(R.sticky?"y":""),K=0,G=new RegExp(R.source,W+"g"),$,z,Y;($=a(u,G,D))&&(z=G.lastIndex,!(z>K&&(B(U,L(D,K,$.index)),$.length>1&&$.index=j)));)G.lastIndex===$.index&&G.lastIndex++;return K===D.length?(Y||!b(G,""))&&B(U,""):B(U,L(D,K)),U.length>j?i(U,0,j):U}:"0".split(void 0,0).length?E=function(R,O){return R===void 0&&O===0?[]:a(A,this,R,O)}:E=A,[function(){function M(R,O){var D=S(this),j=N(R)?void 0:m(R,T);return j?a(j,R,D,O):a(E,c(D),R,O)}return M}(),function(M,R){var O=f(this),D=c(M),j=x(E,O,D,R,E!==A);if(j.done)return j.value;var U=y(O,RegExp),W=O.unicode,K=(O.ignoreCase?"i":"")+(O.multiline?"m":"")+(O.unicode?"u":"")+(g?"g":"y"),G=new U(g?"^(?:"+O.source+")":O,K),$=R===void 0?v:R>>>0;if($===0)return[];if(D.length===0)return d(G,D)===null?[D]:[];for(var z=0,Y=0,J=[];Y1?arguments[1]:void 0,u.length)),V=f(d);return p(u,s,s+V.length)===V}return i}()})},58713:function(I,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(I,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(I,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(I,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(I,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(I,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(I,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(I,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(I,r,n){"use strict";var e=n(20614);e("asyncIterator")},28579:function(I,r,n){"use strict";var e=n(3116),a=n(26856),t=n(20276),o=n(72908),f=n(90139),N=n(16361),k=n(61855),S=n(13586),y=n(3302),p=n(54341),l=n(45418),c=n(54292),m=n(72445),i=n(8758),d=n(73970),u=n(15439),s=n(99869),V=n(60097),g=n(31024),v=n(61791),h=n(19765),C=n(8165),b=n(55119),B=n(10409),L=n(60855),w=n(57301),T=n(7624),A=n(97223),x=n(51653),E=n(76246),M=n(95558),R=n(15355),O=n(20614),D=n(28952),j=n(15676),U=n(4471),W=n(18539).forEach,K=A("hidden"),G="Symbol",$="prototype",z=U.set,Y=U.getterFor(G),J=Object[$],ie=a.Symbol,re=ie&&ie[$],de=a.RangeError,ve=a.TypeError,ye=a.QObject,Le=h.f,pe=C.f,ne=g.f,ae=B.f,q=o([].push),se=T("symbols"),me=T("op-symbols"),te=T("wks"),be=!ye||!ye[$]||!ye[$].findChild,fe=function(le,he,ue){var Ne=Le(J,he);Ne&&delete J[he],pe(le,he,ue),Ne&&le!==J&&pe(J,he,Ne)},ge=N&&S(function(){return u(pe({},"a",{get:function(){function oe(){return pe(this,"a",{value:7}).a}return oe}()})).a!==7})?fe:pe,ke=function(le,he){var ue=se[le]=u(re);return z(ue,{type:G,tag:le,description:he}),N||(ue.description=he),ue},Ce=function(){function oe(le,he,ue){le===J&&Ce(me,he,ue),l(le);var Ne=m(he);return l(ue),y(se,Ne)?(ue.enumerable?(y(le,K)&&le[K][Ne]&&(le[K][Ne]=!1),ue=u(ue,{enumerable:d(0,!1)})):(y(le,K)||pe(le,K,d(1,u(null))),le[K][Ne]=!0),ge(le,Ne,ue)):pe(le,Ne,ue)}return oe}(),Se=function(){function oe(le,he){l(le);var ue=c(he),Ne=s(ue).concat(Ve(ue));return W(Ne,function(Ae){(!N||t(xe,ue,Ae))&&Ce(le,Ae,ue[Ae])}),le}return oe}(),we=function(){function oe(le,he){return he===void 0?u(le):Se(u(le),he)}return oe}(),xe=function(){function oe(le){var he=m(le),ue=t(ae,this,he);return this===J&&y(se,he)&&!y(me,he)?!1:ue||!y(this,he)||!y(se,he)||y(this,K)&&this[K][he]?ue:!0}return oe}(),Pe=function(){function oe(le,he){var ue=c(le),Ne=m(he);if(!(ue===J&&y(se,Ne)&&!y(me,Ne))){var Ae=Le(ue,Ne);return Ae&&y(se,Ne)&&!(y(ue,K)&&ue[K][Ne])&&(Ae.enumerable=!0),Ae}}return oe}(),Ue=function(){function oe(le){var he=ne(c(le)),ue=[];return W(he,function(Ne){!y(se,Ne)&&!y(x,Ne)&&q(ue,Ne)}),ue}return oe}(),Ve=function(le){var he=le===J,ue=ne(he?me:c(le)),Ne=[];return W(ue,function(Ae){y(se,Ae)&&(!he||y(J,Ae))&&q(Ne,se[Ae])}),Ne};k||(ie=function(){function oe(){if(p(re,this))throw new ve("Symbol is not a constructor");var le=!arguments.length||arguments[0]===void 0?void 0:i(arguments[0]),he=E(le),ue=function(){function Ne(Ae){var De=this===void 0?a:this;De===J&&t(Ne,me,Ae),y(De,K)&&y(De[K],he)&&(De[K][he]=!1);var je=d(1,Ae);try{ge(De,he,je)}catch(Ke){if(!(Ke instanceof de))throw Ke;fe(De,he,je)}}return Ne}();return N&&be&&ge(J,he,{configurable:!0,set:ue}),ke(he,le)}return oe}(),re=ie[$],L(re,"toString",function(){function oe(){return Y(this).tag}return oe}()),L(ie,"withoutSetter",function(oe){return ke(E(oe),oe)}),B.f=xe,C.f=Ce,b.f=Se,h.f=Pe,V.f=g.f=Ue,v.f=Ve,R.f=function(oe){return ke(M(oe),oe)},N&&(w(re,"description",{configurable:!0,get:function(){function oe(){return Y(this).description}return oe}()}),f||L(J,"propertyIsEnumerable",xe,{unsafe:!0}))),e({global:!0,constructor:!0,wrap:!0,forced:!k,sham:!k},{Symbol:ie}),W(s(te),function(oe){O(oe)}),e({target:G,stat:!0,forced:!k},{useSetter:function(){function oe(){be=!0}return oe}(),useSimple:function(){function oe(){be=!1}return oe}()}),e({target:"Object",stat:!0,forced:!k,sham:!N},{create:we,defineProperty:Ce,defineProperties:Se,getOwnPropertyDescriptor:Pe}),e({target:"Object",stat:!0,forced:!k},{getOwnPropertyNames:Ue}),D(),j(ie,G),x[K]=!0},64777:function(I,r,n){"use strict";var e=n(3116),a=n(16361),t=n(26856),o=n(72908),f=n(3302),N=n(53664),k=n(54341),S=n(8758),y=n(57301),p=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 h(){var C=arguments.length<1||arguments[0]===void 0?void 0:S(arguments[0]),b=k(c,this)?new l(C):C===void 0?l():l(C);return C===""&&(m[b]=!0),b}return h}();p(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),V=/^Symbol\((.*)\)[^)]+$/,g=o("".replace),v=o("".slice);y(c,"description",{configurable:!0,get:function(){function h(){var C=u(this);if(f(m,C))return"";var b=s(C),B=d?v(b,7,-1):g(b,V,"$1");return B===""?void 0:B}return h}()}),e({global:!0,constructor:!0,forced:!0},{Symbol:i})}},99694:function(I,r,n){"use strict";var e=n(3116),a=n(22070),t=n(3302),o=n(8758),f=n(7624),N=n(16010),k=f("string-to-symbol-registry"),S=f("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!N},{for:function(){function y(p){var l=o(p);if(t(k,l))return k[l];var c=a("Symbol")(l);return k[l]=c,S[c]=l,c}return y}()})},56564:function(I,r,n){"use strict";var e=n(20614);e("hasInstance")},68981:function(I,r,n){"use strict";var e=n(20614);e("isConcatSpreadable")},27699:function(I,r,n){"use strict";var e=n(20614);e("iterator")},32321:function(I,r,n){"use strict";n(28579),n(99694),n(16184),n(34233),n(56896)},16184:function(I,r,n){"use strict";var e=n(3116),a=n(3302),t=n(43474),o=n(36787),f=n(7624),N=n(16010),k=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(k,y))return k[y]}return S}()})},22905:function(I,r,n){"use strict";var e=n(20614);e("match")},96311:function(I,r,n){"use strict";var e=n(20614);e("replace")},61292:function(I,r,n){"use strict";var e=n(20614);e("search")},75419:function(I,r,n){"use strict";var e=n(20614);e("species")},67638:function(I,r,n){"use strict";var e=n(20614);e("split")},7601:function(I,r,n){"use strict";var e=n(20614),a=n(28952);e("toPrimitive"),a()},89010:function(I,r,n){"use strict";var e=n(22070),a=n(20614),t=n(15676);a("toStringTag"),t(e("Symbol"),"Symbol")},5401:function(I,r,n){"use strict";var e=n(20614);e("unscopables")},76464:function(I,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 k(S,y){return o(f(this),S,y,arguments.length>2?arguments[2]:void 0)}return k}())},58549:function(I,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(I,r,n){"use strict";var e=n(30432),a=n(39948),t=n(73873),o=n(48615),f=n(20276),N=n(72908),k=n(13586),S=e.aTypedArray,y=e.exportTypedArrayMethod,p=N("".slice),l=k(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=p(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(I,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(k){var S=a(o(this),k,arguments.length>1?arguments[1]:void 0);return t(this,S)}return N}())},62243:function(I,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(I,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(I,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(I,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(I,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(I,r,n){"use strict";var e=n(45410),a=n(30432).exportTypedArrayStaticMethod,t=n(12778);a("from",t,e)},5723:function(I,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(I,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(I,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(I,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(I,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(I,r,n){"use strict";var e=n(26856),a=n(13586),t=n(72908),o=n(30432),f=n(26017),N=n(95558),k=N("iterator"),S=e.Uint8Array,y=t(f.values),p=t(f.keys),l=t(f.entries),c=o.aTypedArray,m=o.exportTypedArrayMethod,i=S&&S.prototype,d=!a(function(){i[k].call([1])}),u=!!i&&i.values&&i[k]===i.values&&i.values.name==="values",s=function(){function V(){return y(c(this))}return V}();m("entries",function(){function V(){return l(c(this))}return V}(),d),m("keys",function(){function V(){return p(c(this))}return V}(),d),m("values",s,d||!u,{name:"values"}),m(k,s,d||!u,{name:"values"})},20812:function(I,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(k){return f(t(this),k)}return N}())},5640:function(I,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(k){var S=arguments.length;return a(t,o(this),S>1?[k,arguments[1]]:[k])}return N}())},47736:function(I,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(k){return a(o(this),k,arguments.length>1?arguments[1]:void 0,function(S,y){return new(t(S))(y)})}return N}())},81944:function(I,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,k=arguments.length,S=new(t(this))(k);k>N;)S[N]=arguments[N++];return S}return f}(),a)},72214:function(I,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 k=arguments.length;return a(t(this),N,k,k>1?arguments[1]:void 0)}return f}())},68685:function(I,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 k=arguments.length;return a(t(this),N,k,k>1?arguments[1]:void 0)}return f}())},48774:function(I,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,k=a(N).length,S=o(k/2),y=0,p;y1?arguments[1]:void 0,1),g=N(s);if(i)return a(l,this,g,V);var v=this.length,h=o(g),C=0;if(h+V>v)throw new S("Wrong length");for(;Cm;)d[m]=l[m++];return d}return S}(),k)},10702:function(I,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(I,r,n){"use strict";var e=n(26856),a=n(69935),t=n(13586),o=n(79474),f=n(91183),N=n(30432),k=n(31574),S=n(88836),y=n(43541),p=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(k)return k<67;if(S)return!0;if(p)return p<602;var V=new m(516),g=Array(516),v,h;for(v=0;v<516;v++)h=v%4,V[v]=515-v,g[v]=v-2*h+3;for(i(V,function(C,b){return(C/4|0)-(b/4|0)}),v=0;v<516;v++)if(V[v]!==g[v])return!0}),s=function(g){return function(v,h){return g!==void 0?+g(v,h)||0:h!==h?-1:v!==v?1:v===0&&h===0?1/v>0&&1/h<0?1:-1:v>h}};c("sort",function(){function V(g){return g!==void 0&&o(g),u?i(this,g):f(l(this),s(g))}return V}(),!u||d)},64408:function(I,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 k(S,y){var p=f(this),l=p.length,c=t(S,l),m=o(p);return new m(p.buffer,p.byteOffset+c*p.BYTES_PER_ELEMENT,a((y===void 0?l:t(y,l))-c))}return k}())},22306:function(I,r,n){"use strict";var e=n(26856),a=n(47244),t=n(30432),o=n(13586),f=n(31170),N=e.Int8Array,k=t.aTypedArray,S=t.exportTypedArrayMethod,y=[].toLocaleString,p=!!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,p?f(k(this)):k(this),f(arguments))}return c}(),l)},90334:function(I,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||{},k=[].toString,S=o([].join);a(function(){k.call({})})&&(k=function(){function p(){return S(this)}return p}());var y=N.toString!==k;e("toString",k,y)},70088:function(I,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(I,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(I,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(I,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(I,r,n){"use strict";var e=n(58199),a=n(26856),t=n(72908),o=n(26148),f=n(66526),N=n(10609),k=n(19250),S=n(66379),y=n(4471).enforce,p=n(13586),l=n(73844),c=Object,m=Array.isArray,i=c.isExtensible,d=c.isFrozen,u=c.isSealed,s=c.freeze,V=c.seal,g=!a.ActiveXObject&&"ActiveXObject"in a,v,h=function(E){return function(){function M(){return E(this,arguments.length?arguments[0]:void 0)}return M}()},C=N("WeakMap",h,k),b=C.prototype,B=t(b.set),L=function(){return e&&p(function(){var E=s([]);return B(new C,E,1),!d(E)})};if(l)if(g){v=k.getConstructor(h,"WeakMap",!0),f.enable();var w=t(b.delete),T=t(b.has),A=t(b.get);o(b,{delete:function(){function x(E){if(S(E)&&!i(E)){var M=y(this);return M.frozen||(M.frozen=new v),w(this,E)||M.frozen.delete(E)}return w(this,E)}return x}(),has:function(){function x(E){if(S(E)&&!i(E)){var M=y(this);return M.frozen||(M.frozen=new v),T(this,E)||M.frozen.has(E)}return T(this,E)}return x}(),get:function(){function x(E){if(S(E)&&!i(E)){var M=y(this);return M.frozen||(M.frozen=new v),T(this,E)?A(this,E):M.frozen.get(E)}return A(this,E)}return x}(),set:function(){function x(E,M){if(S(E)&&!i(E)){var R=y(this);R.frozen||(R.frozen=new v),T(this,E)?B(this,E,M):R.frozen.set(E,M)}else B(this,E,M);return this}return x}()})}else L()&&o(b,{set:function(){function x(E,M){var R;return m(E)&&(d(E)?R=s:u(E)&&(R=V)),B(this,E,M),R&&R(E),this}return x}()})},69880:function(I,r,n){"use strict";n(84937)},74764:function(I,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(I,r,n){"use strict";n(74764)},82818:function(I,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(I,r,n){"use strict";n(82818),n(21813)},367:function(I,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(I,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(I,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(I,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(I,r,n){"use strict";n(50943),n(91851)},87454:function(I){"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(I,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,I.exports=a,a.id=33115},75168:function(I,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,I.exports=a,a.id=75168},8156:function(I,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,"./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,"./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,"./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,"./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,"./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,"./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,"./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,"./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,I.exports=a,a.id=8156},69321:function(I,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,I.exports=a,a.id=69321},79474:function(I,r,n){"use strict";var e=n(53664),a=n(36787),t=TypeError;I.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not a function")}},48218:function(I,r,n){"use strict";var e=n(49632),a=n(36787),t=TypeError;I.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not a constructor")}},30907:function(I,r,n){"use strict";var e=n(62600),a=String,t=TypeError;I.exports=function(o){if(e(o))return o;throw new t("Can't set "+a(o)+" as a prototype")}},98759:function(I,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)}),I.exports=function(V){f[o][V]=!0}},47158:function(I,r,n){"use strict";var e=n(13300).charAt;I.exports=function(a,t,o){return t+(o?e(a,t).length:1)}},14434:function(I,r,n){"use strict";var e=n(54341),a=TypeError;I.exports=function(t,o){if(e(o,t))return t;throw new a("Incorrect invocation")}},45418:function(I,r,n){"use strict";var e=n(66379),a=String,t=TypeError;I.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not an object")}},11559:function(I){"use strict";I.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"},8685:function(I,r,n){"use strict";var e=n(13586);I.exports=e(function(){if(typeof ArrayBuffer=="function"){var a=new ArrayBuffer(8);Object.isExtensible(a)&&Object.defineProperty(a,"a",{value:8})}})},30432:function(I,r,n){"use strict";var e=n(11559),a=n(16361),t=n(26856),o=n(53664),f=n(66379),V=n(3302),k=n(48615),S=n(36787),y=n(21650),p=n(60855),l=n(57301),c=n(54341),m=n(56379),i=n(91420),d=n(95558),u=n(76246),s=n(4471),N=s.enforce,g=s.get,v=t.Int8Array,h=v&&v.prototype,C=t.Uint8ClampedArray,b=C&&C.prototype,B=v&&m(v),L=h&&m(h),w=Object.prototype,T=t.TypeError,A=d("toStringTag"),x=u("TYPED_ARRAY_TAG"),E="TypedArrayConstructor",M=e&&!!i&&k(t.opera)!=="Opera",R=!1,O,D,j,U={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},W={BigInt64Array:8,BigUint64Array:8},K=function(){function re(de){if(!f(de))return!1;var ve=k(de);return ve==="DataView"||V(U,ve)||V(W,ve)}return re}(),G=function re(de){var ve=m(de);if(f(ve)){var ye=g(ve);return ye&&V(ye,E)?ye[E]:re(ve)}},$=function(de){if(!f(de))return!1;var ve=k(de);return V(U,ve)||V(W,ve)},z=function(de){if($(de))return de;throw new T("Target is not a typed array")},Y=function(de){if(o(de)&&(!i||c(B,de)))return de;throw new T(S(de)+" is not a typed array constructor")},J=function(de,ve,ye,Le){if(a){if(ye)for(var pe in U){var ne=t[pe];if(ne&&V(ne.prototype,de))try{delete ne.prototype[de]}catch(ae){try{ne.prototype[de]=ve}catch(q){}}}(!L[de]||ye)&&p(L,de,ye?ve:M&&h[de]||ve,Le)}},ie=function(de,ve,ye){var Le,pe;if(a){if(i){if(ye){for(Le in U)if(pe=t[Le],pe&&V(pe,de))try{delete pe[de]}catch(ne){}}if(!B[de]||ye)try{return p(B,de,ye?ve:M&&B[de]||ve)}catch(ne){}else return}for(Le in U)pe=t[Le],pe&&(!pe[de]||ye)&&p(pe,de,ve)}};for(O in U)D=t[O],j=D&&D.prototype,j?N(j)[E]=D:M=!1;for(O in W)D=t[O],j=D&&D.prototype,j&&(N(j)[E]=D);if((!M||!o(B)||B===Function.prototype)&&(B=function(){function re(){throw new T("Incorrect invocation")}return re}(),M))for(O in U)t[O]&&i(t[O],B);if((!M||!L||L===w)&&(L=B.prototype,M))for(O in U)t[O]&&i(t[O].prototype,L);if(M&&m(b)!==L&&i(b,L),a&&!V(L,A)){R=!0,l(L,A,{configurable:!0,get:function(){function re(){return f(this)?this[x]:void 0}return re}()});for(O in U)t[O]&&y(t[O],x,O)}I.exports={NATIVE_ARRAY_BUFFER_VIEWS:M,TYPED_ARRAY_TAG:R&&x,aTypedArray:z,aTypedArrayConstructor:Y,exportTypedArrayMethod:J,exportTypedArrayStaticMethod:ie,getTypedArrayConstructor:G,isView:K,isTypedArray:$,TypedArray:B,TypedArrayPrototype:L}},31284:function(I,r,n){"use strict";var e=n(26856),a=n(72908),t=n(16361),o=n(11559),f=n(15340),V=n(21650),k=n(57301),S=n(26148),y=n(13586),p=n(14434),l=n(84501),c=n(74369),m=n(28968),i=n(48705),d=n(48350),u=n(56379),s=n(91420),N=n(39948),g=n(31170),v=n(43405),h=n(83826),C=n(15676),b=n(4471),B=f.PROPER,L=f.CONFIGURABLE,w="ArrayBuffer",T="DataView",A="prototype",x="Wrong length",E="Wrong index",M=b.getterFor(w),R=b.getterFor(T),O=b.set,D=e[w],j=D,U=j&&j[A],W=e[T],K=W&&W[A],G=Object.prototype,$=e.Array,z=e.RangeError,Y=a(N),J=a([].reverse),ie=d.pack,re=d.unpack,de=function(ge){return[ge&255]},ve=function(ge){return[ge&255,ge>>8&255]},ye=function(ge){return[ge&255,ge>>8&255,ge>>16&255,ge>>24&255]},Le=function(ge){return ge[3]<<24|ge[2]<<16|ge[1]<<8|ge[0]},pe=function(ge){return ie(i(ge),23,4)},ne=function(ge){return ie(ge,52,8)},ae=function(ge,ke,Ce){k(ge[A],ke,{configurable:!0,get:function(){function Se(){return Ce(this)[ke]}return Se}()})},q=function(ge,ke,Ce,Se){var we=R(ge),xe=m(Ce),Pe=!!Se;if(xe+ke>we.byteLength)throw new z(E);var Ue=we.bytes,Ve=xe+we.byteOffset,oe=g(Ue,Ve,Ve+ke);return Pe?oe:J(oe)},se=function(ge,ke,Ce,Se,we,xe){var Pe=R(ge),Ue=m(Ce),Ve=Se(+we),oe=!!xe;if(Ue+ke>Pe.byteLength)throw new z(E);for(var le=Pe.bytes,he=Ue+Pe.byteOffset,ue=0;uewe)throw new z("Wrong offset");if(Ce=Ce===void 0?we-xe:c(Ce),xe+Ce>we)throw new z(x);O(this,{type:T,buffer:ge,byteLength:Ce,byteOffset:xe,bytes:Se.bytes}),t||(this.buffer=ge,this.byteLength=Ce,this.byteOffset=xe)}return fe}(),K=W[A],t&&(ae(j,"byteLength",M),ae(W,"buffer",R),ae(W,"byteLength",R),ae(W,"byteOffset",R)),S(K,{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 Le(q(this,4,ge,arguments.length>1?arguments[1]:!1))}return fe}(),getUint32:function(){function fe(ge){return Le(q(this,4,ge,arguments.length>1?arguments[1]:!1))>>>0}return fe}(),getFloat32:function(){function fe(ge){return re(q(this,4,ge,arguments.length>1?arguments[1]:!1),23)}return fe}(),getFloat64:function(){function fe(ge){return re(q(this,8,ge,arguments.length>1?arguments[1]:!1),52)}return fe}(),setInt8:function(){function fe(ge,ke){se(this,1,ge,de,ke)}return fe}(),setUint8:function(){function fe(ge,ke){se(this,1,ge,de,ke)}return fe}(),setInt16:function(){function fe(ge,ke){se(this,2,ge,ve,ke,arguments.length>2?arguments[2]:!1)}return fe}(),setUint16:function(){function fe(ge,ke){se(this,2,ge,ve,ke,arguments.length>2?arguments[2]:!1)}return fe}(),setInt32:function(){function fe(ge,ke){se(this,4,ge,ye,ke,arguments.length>2?arguments[2]:!1)}return fe}(),setUint32:function(){function fe(ge,ke){se(this,4,ge,ye,ke,arguments.length>2?arguments[2]:!1)}return fe}(),setFloat32:function(){function fe(ge,ke){se(this,4,ge,pe,ke,arguments.length>2?arguments[2]:!1)}return fe}(),setFloat64:function(){function fe(ge,ke){se(this,8,ge,ne,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&&!L})?(j=function(){function fe(ge){return p(this,U),v(new D(m(ge)),this,j)}return fe}(),j[A]=U,U.constructor=j,h(j,D)):me&&L&&V(D,"name",w),s&&u(K)!==G&&s(K,G);var te=new W(new j(2)),be=a(K.setInt8);te.setInt8(0,2147483648),te.setInt8(1,2147483649),(te.getInt8(0)||!te.getInt8(1))&&S(K,{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})}C(j,w),C(W,T),I.exports={ArrayBuffer:j,DataView:W}},28332:function(I,r,n){"use strict";var e=n(63549),a=n(39531),t=n(83207),o=n(81245),f=Math.min;I.exports=[].copyWithin||function(){function V(k,S){var y=e(this),p=t(y),l=a(k,p),c=a(S,p),m=arguments.length>2?arguments[2]:void 0,i=f((m===void 0?p:a(m,p))-c,p-l),d=1;for(c0;)c in y?y[l]=y[c]:o(y,l),l+=d,c+=d;return y}return V}()},39948:function(I,r,n){"use strict";var e=n(63549),a=n(39531),t=n(83207);I.exports=function(){function o(f){for(var V=e(this),k=t(V),S=arguments.length,y=a(S>1?arguments[1]:void 0,k),p=S>2?arguments[2]:void 0,l=p===void 0?k:a(p,k);l>y;)V[y++]=f;return V}return o}()},16856:function(I,r,n){"use strict";var e=n(18539).forEach,a=n(56127),t=a("forEach");I.exports=t?[].forEach:function(){function o(f){return e(this,f,arguments.length>1?arguments[1]:void 0)}return o}()},21465:function(I,r,n){"use strict";var e=n(83207);I.exports=function(a,t,o){for(var f=0,V=arguments.length>2?o:e(t),k=new a(V);V>f;)k[f]=t[f++];return k}},45056:function(I,r,n){"use strict";var e=n(8942),a=n(20276),t=n(63549),o=n(80002),f=n(48594),V=n(49632),k=n(83207),S=n(80750),y=n(45731),p=n(52984),l=Array;I.exports=function(){function c(m){var i=t(m),d=V(this),u=arguments.length,s=u>1?arguments[1]:void 0,N=s!==void 0;N&&(s=e(s,u>2?arguments[2]:void 0));var g=p(i),v=0,h,C,b,B,L,w;if(g&&!(this===l&&f(g)))for(B=y(i,g),L=B.next,C=d?new this:[];!(b=a(L,B)).done;v++)w=N?o(B,s,[b.value,v],!0):b.value,S(C,v,w);else for(h=k(i),C=d?new this(h):l(h);h>v;v++)w=N?s(i[v],v):i[v],S(C,v,w);return C.length=v,C}return c}()},33483:function(I,r,n){"use strict";var e=n(54292),a=n(39531),t=n(83207),o=function(V){return function(k,S,y){var p=e(k),l=t(p),c=a(y,l),m;if(V&&S!==S){for(;l>c;)if(m=p[c++],m!==m)return!0}else for(;l>c;c++)if((V||c in p)&&p[c]===S)return V||c||0;return!V&&-1}};I.exports={includes:o(!0),indexOf:o(!1)}},18539:function(I,r,n){"use strict";var e=n(8942),a=n(72908),t=n(80689),o=n(63549),f=n(83207),V=n(51582),k=a([].push),S=function(p){var l=p===1,c=p===2,m=p===3,i=p===4,d=p===6,u=p===7,s=p===5||d;return function(N,g,v,h){for(var C=o(N),b=t(C),B=f(b),L=e(g,v),w=0,T=h||V,A=l?T(N,B):c||u?T(N,0):void 0,x,E;B>w;w++)if((s||w in b)&&(x=b[w],E=L(x,w,C),p))if(l)A[w]=E;else if(E)switch(p){case 3:return!0;case 5:return x;case 6:return w;case 2:k(A,x)}else switch(p){case 4:return!1;case 7:k(A,x)}return d?-1:m||i?i:A}};I.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(I,r,n){"use strict";var e=n(47244),a=n(54292),t=n(84501),o=n(83207),f=n(56127),V=Math.min,k=[].lastIndexOf,S=!!k&&1/[1].lastIndexOf(1,-0)<0,y=f("lastIndexOf"),p=S||!y;I.exports=p?function(){function l(c){if(S)return e(k,this,arguments)||0;var m=a(this),i=o(m),d=i-1;for(arguments.length>1&&(d=V(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}():k},34924:function(I,r,n){"use strict";var e=n(13586),a=n(95558),t=n(43541),o=a("species");I.exports=function(f){return t>=51||!e(function(){var V=[],k=V.constructor={};return k[o]=function(){return{foo:1}},V[f](Boolean).foo!==1})}},56127:function(I,r,n){"use strict";var e=n(13586);I.exports=function(a,t){var o=[][a];return!!o&&e(function(){o.call(null,t||function(){return 1},1)})}},58394:function(I,r,n){"use strict";var e=n(79474),a=n(63549),t=n(80689),o=n(83207),f=TypeError,V=function(S){return function(y,p,l,c){var m=a(y),i=t(m),d=o(m);e(p);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=p(c,i[u],u,m));return c}};I.exports={left:V(!1),right:V(!0)}},10779:function(I,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(V){return V instanceof TypeError}}();I.exports=f?function(V,k){if(a(V)&&!o(V,"length").writable)throw new t("Cannot set read only .length");return V.length=k}:function(V,k){return V.length=k}},31170:function(I,r,n){"use strict";var e=n(72908);I.exports=e([].slice)},91183:function(I,r,n){"use strict";var e=n(31170),a=Math.floor,t=function o(f,V){var k=f.length;if(k<8)for(var S=1,y,p;S0;)f[p]=f[--p];p!==S++&&(f[p]=y)}else for(var l=a(k/2),c=o(e(f,0,l),V),m=o(e(f,l),V),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!!L(this,T)}return w}()}),t(C,g?{get:function(){function w(T){var A=L(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(C,"size",{configurable:!0,get:function(){function w(){return b(this).size}return w}()}),h}return u}(),setStrong:function(){function u(s,N,g){var v=N+" Iterator",h=d(N),C=d(v);S(s,N,function(b,B){i(this,{type:v,target:b,state:h(b),kind:B,last:void 0})},function(){for(var b=C(this),B=b.kind,L=b.last;L&&L.removed;)L=L.previous;return!b.target||!(b.last=L=L?L.next:b.state.first)?(b.target=void 0,y(void 0,!0)):y(B==="keys"?L.key:B==="values"?L.value:[L.key,L.value],!1)},g?"entries":"values",!g,!0),p(N)}return u}()}},19250:function(I,r,n){"use strict";var e=n(72908),a=n(26148),t=n(66526).getWeakData,o=n(14434),f=n(45418),V=n(62695),k=n(66379),S=n(20453),y=n(18539),p=n(3302),l=n(4471),c=l.set,m=l.getterFor,i=y.find,d=y.findIndex,u=e([].splice),s=0,N=function(C){return C.frozen||(C.frozen=new g)},g=function(){this.entries=[]},v=function(C,b){return i(C.entries,function(B){return B[0]===b})};g.prototype={get:function(){function h(C){var b=v(this,C);if(b)return b[1]}return h}(),has:function(){function h(C){return!!v(this,C)}return h}(),set:function(){function h(C,b){var B=v(this,C);B?B[1]=b:this.entries.push([C,b])}return h}(),delete:function(){function h(C){var b=d(this.entries,function(B){return B[0]===C});return~b&&u(this.entries,b,1),!!~b}return h}()},I.exports={getConstructor:function(){function h(C,b,B,L){var w=C(function(E,M){o(E,T),c(E,{type:b,id:s++,frozen:void 0}),V(M)||S(M,E[L],{that:E,AS_ENTRIES:B})}),T=w.prototype,A=m(b),x=function(){function E(M,R,O){var D=A(M),j=t(f(R),!0);return j===!0?N(D).set(R,O):j[D.id]=O,M}return E}();return a(T,{delete:function(){function E(M){var R=A(this);if(!k(M))return!1;var O=t(M);return O===!0?N(R).delete(M):O&&p(O,R.id)&&delete O[R.id]}return E}(),has:function(){function E(M){var R=A(this);if(!k(M))return!1;var O=t(M);return O===!0?N(R).has(M):O&&p(O,R.id)}return E}()}),a(T,B?{get:function(){function E(M){var R=A(this);if(k(M)){var O=t(M);return O===!0?N(R).get(M):O?O[R.id]:void 0}}return E}(),set:function(){function E(M,R){return x(this,M,R)}return E}()}:{add:function(){function E(M){return x(this,M,!0)}return E}()}),w}return h}()}},10609:function(I,r,n){"use strict";var e=n(3116),a=n(26856),t=n(72908),o=n(23620),f=n(60855),V=n(66526),k=n(20453),S=n(14434),y=n(53664),p=n(62695),l=n(66379),c=n(13586),m=n(1608),i=n(15676),d=n(43405);I.exports=function(u,s,N){var g=u.indexOf("Map")!==-1,v=u.indexOf("Weak")!==-1,h=g?"set":"add",C=a[u],b=C&&C.prototype,B=C,L={},w=function(D){var j=t(b[D]);f(b,D,D==="add"?function(){function U(W){return j(this,W===0?0:W),this}return U}():D==="delete"?function(U){return v&&!l(U)?!1:j(this,U===0?0:U)}:D==="get"?function(){function U(W){return v&&!l(W)?void 0:j(this,W===0?0:W)}return U}():D==="has"?function(){function U(W){return v&&!l(W)?!1:j(this,W===0?0:W)}return U}():function(){function U(W,K){return j(this,W===0?0:W,K),this}return U}())},T=o(u,!y(C)||!(v||b.forEach&&!c(function(){new C().entries().next()})));if(T)B=N.getConstructor(s,u,g,h),V.enable();else if(o(u,!0)){var A=new B,x=A[h](v?{}:-0,1)!==A,E=c(function(){A.has(1)}),M=m(function(O){new C(O)}),R=!v&&c(function(){for(var O=new C,D=5;D--;)O[h](D,D);return!O.has(-0)});M||(B=s(function(O,D){S(O,b);var j=d(new C,O,B);return p(D)||k(D,j[h],{that:j,AS_ENTRIES:g}),j}),B.prototype=b,b.constructor=B),(E||R)&&(w("delete"),w("has"),g&&w("get")),(R||x)&&w(h),v&&b.clear&&delete b.clear}return L[u]=B,e({global:!0,constructor:!0,forced:B!==C},L),i(B,u),v||N.setStrong(B,u,g),B}},83826:function(I,r,n){"use strict";var e=n(3302),a=n(53988),t=n(19765),o=n(8165);I.exports=function(f,V,k){for(var S=a(V),y=o.f,p=t.f,l=0;l"+p+""}},32214:function(I){"use strict";I.exports=function(r,n){return{value:r,done:n}}},21650:function(I,r,n){"use strict";var e=n(16361),a=n(8165),t=n(73970);I.exports=e?function(o,f,V){return a.f(o,f,t(1,V))}:function(o,f,V){return o[f]=V,o}},73970:function(I){"use strict";I.exports=function(r,n){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:n}}},80750:function(I,r,n){"use strict";var e=n(72445),a=n(8165),t=n(73970);I.exports=function(o,f,V){var k=e(f);k in o?a.f(o,k,t(0,V)):o[k]=V}},20228:function(I,r,n){"use strict";var e=n(72908),a=n(13586),t=n(81290).start,o=RangeError,f=isFinite,V=Math.abs,k=Date.prototype,S=k.toISOString,y=e(k.getTime),p=e(k.getUTCDate),l=e(k.getUTCFullYear),c=e(k.getUTCHours),m=e(k.getUTCMilliseconds),i=e(k.getUTCMinutes),d=e(k.getUTCMonth),u=e(k.getUTCSeconds);I.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 N=this,g=l(N),v=m(N),h=g<0?"-":g>9999?"+":"";return h+t(V(g),h?6:4,0)+"-"+t(d(N)+1,2,0)+"-"+t(p(N),2,0)+"T"+t(c(N),2,0)+":"+t(i(N),2,0)+":"+t(u(N),2,0)+"."+t(v,3,0)+"Z"}return s}():S},81603:function(I,r,n){"use strict";var e=n(45418),a=n(56109),t=TypeError;I.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(I,r,n){"use strict";var e=n(40773),a=n(8165);I.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(I,r,n){"use strict";var e=n(53664),a=n(8165),t=n(40773),o=n(17553);I.exports=function(f,V,k,S){S||(S={});var y=S.enumerable,p=S.name!==void 0?S.name:V;if(e(k)&&t(k,p,S),S.global)y?f[V]=k:o(V,k);else{try{S.unsafe?f[V]&&(y=!0):delete f[V]}catch(l){}y?f[V]=k:a.f(f,V,{value:k,enumerable:!1,configurable:!S.nonConfigurable,writable:!S.nonWritable})}return f}},26148:function(I,r,n){"use strict";var e=n(60855);I.exports=function(a,t,o){for(var f in t)e(a,f,t[f],o);return a}},17553:function(I,r,n){"use strict";var e=n(26856),a=Object.defineProperty;I.exports=function(t,o){try{a(e,t,{value:o,configurable:!0,writable:!0})}catch(f){e[t]=o}return o}},81245:function(I,r,n){"use strict";var e=n(36787),a=TypeError;I.exports=function(t,o){if(!delete t[o])throw new a("Cannot delete property "+e(o)+" of "+e(t))}},16361:function(I,r,n){"use strict";var e=n(13586);I.exports=!e(function(){return Object.defineProperty({},1,{get:function(){function a(){return 7}return a}()})[1]!==7})},55642:function(I,r,n){"use strict";var e=n(26856),a=n(66379),t=e.document,o=a(t)&&a(t.createElement);I.exports=function(f){return o?t.createElement(f):{}}},54579:function(I){"use strict";var r=TypeError,n=9007199254740991;I.exports=function(e){if(e>n)throw r("Maximum allowed index exceeded");return e}},31574:function(I,r,n){"use strict";var e=n(74247),a=e.match(/firefox\/(\d+)/i);I.exports=!!a&&+a[1]},52460:function(I,r,n){"use strict";var e=n(53437),a=n(86727);I.exports=!e&&!a&&typeof window=="object"&&typeof document=="object"},68261:function(I){"use strict";I.exports=typeof Bun=="function"&&Bun&&typeof Bun.version=="string"},53437:function(I){"use strict";I.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"},88836:function(I,r,n){"use strict";var e=n(74247);I.exports=/MSIE|Trident/.test(e)},79034:function(I,r,n){"use strict";var e=n(74247);I.exports=/ipad|iphone|ipod/i.test(e)&&typeof Pebble!="undefined"},25184:function(I,r,n){"use strict";var e=n(74247);I.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(e)},86727:function(I,r,n){"use strict";var e=n(26856),a=n(8649);I.exports=a(e.process)==="process"},71979:function(I,r,n){"use strict";var e=n(74247);I.exports=/web0s(?!.*chrome)/i.test(e)},74247:function(I){"use strict";I.exports=typeof navigator!="undefined"&&String(navigator.userAgent)||""},43541:function(I,r,n){"use strict";var e=n(26856),a=n(74247),t=e.process,o=e.Deno,f=t&&t.versions||o&&o.version,V=f&&f.v8,k,S;V&&(k=V.split("."),S=k[0]>0&&k[0]<4?1:+(k[0]+k[1])),!S&&a&&(k=a.match(/Edge\/(\d+)/),(!k||k[1]>=74)&&(k=a.match(/Chrome\/(\d+)/),k&&(S=+k[1]))),I.exports=S},27204:function(I,r,n){"use strict";var e=n(74247),a=e.match(/AppleWebKit\/(\d+)\./);I.exports=!!a&&+a[1]},38139:function(I){"use strict";I.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},3116:function(I,r,n){"use strict";var e=n(26856),a=n(19765).f,t=n(21650),o=n(60855),f=n(17553),V=n(83826),k=n(23620);I.exports=function(S,y){var p=S.target,l=S.global,c=S.stat,m,i,d,u,s,N;if(l?i=e:c?i=e[p]||f(p,{}):i=(e[p]||{}).prototype,i)for(d in y){if(s=y[d],S.dontCallGetSet?(N=a(i,d),u=N&&N.value):u=i[d],m=k(l?d:p+(c?".":"#")+d,S.forced),!m&&u!==void 0){if(typeof s==typeof u)continue;V(s,u)}(S.sham||u&&u.sham)&&t(s,"sham",!0),o(i,d,s,S)}}},13586:function(I){"use strict";I.exports=function(r){try{return!!r()}catch(n){return!0}}},18690:function(I,r,n){"use strict";n(72941);var e=n(69935),a=n(60855),t=n(59049),o=n(13586),f=n(95558),V=n(21650),k=f("species"),S=RegExp.prototype;I.exports=function(y,p,l,c){var m=f(y),i=!o(function(){var N={};return N[m]=function(){return 7},""[y](N)!==7}),d=i&&!o(function(){var N=!1,g=/a/;return y==="split"&&(g={},g.constructor={},g.constructor[k]=function(){return g},g.flags="",g[m]=/./[m]),g.exec=function(){return N=!0,null},g[m](""),!N});if(!i||!d||l){var u=e(/./[m]),s=p(m,""[y],function(N,g,v,h,C){var b=e(N),B=g.exec;return B===t||B===S.exec?i&&!C?{done:!0,value:u(g,v,h)}:{done:!0,value:b(v,g,h)}:{done:!1}});a(String.prototype,y,s[0]),a(S,m,s[1])}c&&V(S[m],"sham",!0)}},73132:function(I,r,n){"use strict";var e=n(59882),a=n(83207),t=n(54579),o=n(8942),f=function V(k,S,y,p,l,c,m,i){for(var d=l,u=0,s=m?o(m,i):!1,N,g;u0&&e(N)?(g=a(N),d=V(k,S,N,g,d,c-1)-1):(t(d+1),k[d]=N),d++),u++;return d};I.exports=f},58199:function(I,r,n){"use strict";var e=n(13586);I.exports=!e(function(){return Object.isExtensible(Object.preventExtensions({}))})},47244:function(I,r,n){"use strict";var e=n(86678),a=Function.prototype,t=a.apply,o=a.call;I.exports=typeof Reflect=="object"&&Reflect.apply||(e?o.bind(t):function(){return o.apply(t,arguments)})},8942:function(I,r,n){"use strict";var e=n(69935),a=n(79474),t=n(86678),o=e(e.bind);I.exports=function(f,V){return a(f),V===void 0?f:t?o(f,V):function(){return f.apply(V,arguments)}}},86678:function(I,r,n){"use strict";var e=n(13586);I.exports=!e(function(){var a=function(){}.bind();return typeof a!="function"||a.hasOwnProperty("prototype")})},82060:function(I,r,n){"use strict";var e=n(72908),a=n(79474),t=n(66379),o=n(3302),f=n(31170),V=n(86678),k=Function,S=e([].concat),y=e([].join),p={},l=function(m,i,d){if(!o(p,i)){for(var u=[],s=0;s]*>)/g,S=/\$([$&'`]|\d{1,2})/g;I.exports=function(y,p,l,c,m,i){var d=l+y.length,u=c.length,s=S;return m!==void 0&&(m=a(m),s=k),f(i,s,function(N,g){var v;switch(o(g,0)){case"$":return"$";case"&":return y;case"`":return V(p,0,l);case"'":return V(p,d);case"<":v=m[V(g,1,-1)];break;default:var h=+g;if(h===0)return N;if(h>u){var C=t(h/10);return C===0?N:C<=u?c[C-1]===void 0?o(g,1):c[C-1]+o(g,1):N}v=c[h-1]}return v===void 0?"":v})}},26856:function(I,r,n){"use strict";var e=function(t){return t&&t.Math===Math&&t};I.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(I,r,n){"use strict";var e=n(72908),a=n(63549),t=e({}.hasOwnProperty);I.exports=Object.hasOwn||function(){function o(f,V){return t(a(f),V)}return o}()},51653:function(I){"use strict";I.exports={}},66481:function(I){"use strict";I.exports=function(r,n){try{arguments.length}catch(e){}}},21474:function(I,r,n){"use strict";var e=n(22070);I.exports=e("document","documentElement")},16109:function(I,r,n){"use strict";var e=n(16361),a=n(13586),t=n(55642);I.exports=!e&&!a(function(){return Object.defineProperty(t("div"),"a",{get:function(){function o(){return 7}return o}()}).a!==7})},48350:function(I){"use strict";var r=Array,n=Math.abs,e=Math.pow,a=Math.floor,t=Math.log,o=Math.LN2,f=function(S,y,p){var l=r(p),c=p*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,N,g,v;for(S=n(S),S!==S||S===1/0?(g=S!==S?1:0,N=m):(N=a(t(S)/o),v=e(2,-N),S*v<1&&(N--,v*=2),N+i>=1?S+=d/v:S+=d*e(2,1-i),S*v>=2&&(N++,v/=2),N+i>=m?(g=0,N=m):N+i>=1?(g=(S*v-1)*e(2,y),N+=i):(g=S*e(2,i-1)*e(2,y),N=0));y>=8;)l[s++]=g&255,g/=256,y-=8;for(N=N<0;)l[s++]=N&255,N/=256,c-=8;return l[--s]|=u*128,l},V=function(S,y){var p=S.length,l=p*8-y-1,c=(1<>1,i=l-7,d=p-1,u=S[d--],s=u&127,N;for(u>>=7;i>0;)s=s*256+S[d--],i-=8;for(N=s&(1<<-i)-1,s>>=-i,i+=y;i>0;)N=N*256+S[d--],i-=8;if(s===0)s=1-m;else{if(s===c)return N?NaN:u?-1/0:1/0;N+=e(2,y),s-=m}return(u?-1:1)*N*e(2,s-y)};I.exports={pack:f,unpack:V}},80689:function(I,r,n){"use strict";var e=n(72908),a=n(13586),t=n(8649),o=Object,f=e("".split);I.exports=a(function(){return!o("z").propertyIsEnumerable(0)})?function(V){return t(V)==="String"?f(V,""):o(V)}:o},43405:function(I,r,n){"use strict";var e=n(53664),a=n(66379),t=n(91420);I.exports=function(o,f,V){var k,S;return t&&e(k=f.constructor)&&k!==V&&a(S=k.prototype)&&S!==V.prototype&&t(o,S),o}},92004:function(I,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)}),I.exports=t.inspectSource},66526:function(I,r,n){"use strict";var e=n(3116),a=n(72908),t=n(51653),o=n(66379),f=n(3302),V=n(8165).f,k=n(60097),S=n(31024),y=n(58221),p=n(76246),l=n(58199),c=!1,m=p("meta"),i=0,d=function(C){V(C,m,{value:{objectID:"O"+i++,weakData:{}}})},u=function(C,b){if(!o(C))return typeof C=="symbol"?C:(typeof C=="string"?"S":"P")+C;if(!f(C,m)){if(!y(C))return"F";if(!b)return"E";d(C)}return C[m].objectID},s=function(C,b){if(!f(C,m)){if(!y(C))return!0;if(!b)return!1;d(C)}return C[m].weakData},N=function(C){return l&&c&&y(C)&&!f(C,m)&&d(C),C},g=function(){v.enable=function(){},c=!0;var C=k.f,b=a([].splice),B={};B[m]=1,C(B).length&&(k.f=function(L){for(var w=C(L),T=0,A=w.length;TL;L++)if(T=M(i[L]),T&&k(m,T))return T;return new c(!1)}b=S(i,B)}for(A=g?i.next:b.next;!(x=a(A,b)).done;){try{T=M(x.value)}catch(R){p(b,"throw",R)}if(typeof T=="object"&&T&&k(m,T))return T}return new c(!1)}},65169:function(I,r,n){"use strict";var e=n(20276),a=n(45418),t=n(76540);I.exports=function(o,f,V){var k,S;a(o);try{if(k=t(o,"return"),!k){if(f==="throw")throw V;return V}k=e(k,o)}catch(y){S=!0,k=y}if(f==="throw")throw V;if(S)throw k;return a(k),V}},41903:function(I,r,n){"use strict";var e=n(83665).IteratorPrototype,a=n(15439),t=n(73970),o=n(15676),f=n(47730),V=function(){return this};I.exports=function(k,S,y,p){var l=S+" Iterator";return k.prototype=a(e,{next:t(+!p,y)}),o(k,l,!1,!0),f[l]=V,k}},21436:function(I,r,n){"use strict";var e=n(3116),a=n(20276),t=n(90139),o=n(15340),f=n(53664),V=n(41903),k=n(56379),S=n(91420),y=n(15676),p=n(21650),l=n(60855),c=n(95558),m=n(47730),i=n(83665),d=o.PROPER,u=o.CONFIGURABLE,s=i.IteratorPrototype,N=i.BUGGY_SAFARI_ITERATORS,g=c("iterator"),v="keys",h="values",C="entries",b=function(){return this};I.exports=function(B,L,w,T,A,x,E){V(w,L,T);var M=function(Y){if(Y===A&&U)return U;if(!N&&Y&&Y in D)return D[Y];switch(Y){case v:return function(){function J(){return new w(this,Y)}return J}();case h:return function(){function J(){return new w(this,Y)}return J}();case C:return function(){function J(){return new w(this,Y)}return J}()}return function(){return new w(this)}},R=L+" Iterator",O=!1,D=B.prototype,j=D[g]||D["@@iterator"]||A&&D[A],U=!N&&j||M(A),W=L==="Array"&&D.entries||j,K,G,$;if(W&&(K=k(W.call(new B)),K!==Object.prototype&&K.next&&(!t&&k(K)!==s&&(S?S(K,s):f(K[g])||l(K,g,b)),y(K,R,!0,!0),t&&(m[R]=b))),d&&A===h&&j&&j.name!==h&&(!t&&u?p(D,"name",h):(O=!0,U=function(){function z(){return a(j,this)}return z}())),A)if(G={values:M(h),keys:x?U:M(v),entries:M(C)},E)for($ in G)(N||O||!($ in D))&&l(D,$,G[$]);else e({target:L,proto:!0,forced:N||O},G);return(!t||E)&&D[g]!==U&&l(D,g,U,{name:A}),m[L]=U,G}},83665:function(I,r,n){"use strict";var e=n(13586),a=n(53664),t=n(66379),o=n(15439),f=n(56379),V=n(60855),k=n(95558),S=n(90139),y=k("iterator"),p=!1,l,c,m;[].keys&&(m=[].keys(),"next"in m?(c=f(f(m)),c!==Object.prototype&&(l=c)):p=!0);var i=!t(l)||e(function(){var d={};return l[y].call(d)!==d});i?l={}:S&&(l=o(l)),a(l[y])||V(l,y,function(){return this}),I.exports={IteratorPrototype:l,BUGGY_SAFARI_ITERATORS:p}},47730:function(I){"use strict";I.exports={}},83207:function(I,r,n){"use strict";var e=n(74369);I.exports=function(a){return e(a.length)}},40773:function(I,r,n){"use strict";var e=n(72908),a=n(13586),t=n(53664),o=n(3302),f=n(16361),V=n(15340).CONFIGURABLE,k=n(92004),S=n(4471),y=S.enforce,p=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"),N=I.exports=function(g,v,h){m(l(v),0,7)==="Symbol("&&(v="["+i(l(v),/^Symbol\(([^)]*)\)/,"$1")+"]"),h&&h.getter&&(v="get "+v),h&&h.setter&&(v="set "+v),(!o(g,"name")||V&&g.name!==v)&&(f?c(g,"name",{value:v,configurable:!0}):g.name=v),u&&h&&o(h,"arity")&&g.length!==h.arity&&c(g,"length",{value:h.arity});try{h&&o(h,"constructor")&&h.constructor?f&&c(g,"prototype",{writable:!1}):g.prototype&&(g.prototype=void 0)}catch(b){}var C=y(g);return o(C,"source")||(C.source=d(s,typeof v=="string"?v:"")),g};Function.prototype.toString=N(function(){function g(){return t(this)&&p(this).source||k(this)}return g}(),"toString")},80563:function(I){"use strict";var r=Math.expm1,n=Math.exp;I.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(I,r,n){"use strict";var e=n(30585),a=Math.abs,t=2220446049250313e-31,o=1/t,f=function(k){return k+o-o};I.exports=function(V,k,S,y){var p=+V,l=a(p),c=e(p);if(lS||i!==i?c*(1/0):c*i}},48705:function(I,r,n){"use strict";var e=n(27509),a=11920928955078125e-23,t=34028234663852886e22,o=11754943508222875e-54;I.exports=Math.fround||function(){function f(V){return e(V,a,t,o)}return f}()},74347:function(I){"use strict";var r=Math.log,n=Math.LOG10E;I.exports=Math.log10||function(){function e(a){return r(a)*n}return e}()},50169:function(I){"use strict";var r=Math.log;I.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(I){"use strict";I.exports=Math.sign||function(){function r(n){var e=+n;return e===0||e!==e?e:e<0?-1:1}return r}()},54037:function(I){"use strict";var r=Math.ceil,n=Math.floor;I.exports=Math.trunc||function(){function e(a){var t=+a;return(t>0?n:r)(t)}return e}()},60816:function(I,r,n){"use strict";var e=n(26856),a=n(8975),t=n(8942),o=n(87073).set,f=n(8274),V=n(25184),k=n(79034),S=n(71979),y=n(86727),p=e.MutationObserver||e.WebKitMutationObserver,l=e.document,c=e.process,m=e.Promise,i=a("queueMicrotask"),d,u,s,N,g;if(!i){var v=new f,h=function(){var b,B;for(y&&(b=c.domain)&&b.exit();B=v.get();)try{B()}catch(L){throw v.head&&d(),L}b&&b.enter()};!V&&!y&&!S&&p&&l?(u=!0,s=l.createTextNode(""),new p(h).observe(s,{characterData:!0}),d=function(){s.data=u=!u}):!k&&m&&m.resolve?(N=m.resolve(void 0),N.constructor=m,g=t(N.then,N),d=function(){g(h)}):y?d=function(){c.nextTick(h)}:(o=t(o,e),d=function(){o(h)}),i=function(b){v.head||d(),v.add(b)}}I.exports=i},14187:function(I,r,n){"use strict";var e=n(79474),a=TypeError,t=function(f){var V,k;this.promise=new f(function(S,y){if(V!==void 0||k!==void 0)throw new a("Bad Promise constructor");V=S,k=y}),this.resolve=e(V),this.reject=e(k)};I.exports.f=function(o){return new t(o)}},75816:function(I,r,n){"use strict";var e=n(28774),a=TypeError;I.exports=function(t){if(e(t))throw new a("The method doesn't accept regular expressions");return t}},23944:function(I,r,n){"use strict";var e=n(26856),a=e.isFinite;I.exports=Number.isFinite||function(){function t(o){return typeof o=="number"&&a(o)}return t}()},98973:function(I,r,n){"use strict";var e=n(26856),a=n(13586),t=n(72908),o=n(8758),f=n(47913).trim,V=n(47410),k=t("".charAt),S=e.parseFloat,y=e.Symbol,p=y&&y.iterator,l=1/S(V+"-0")!==-1/0||p&&!a(function(){S(Object(p))});I.exports=l?function(){function c(m){var i=f(o(m)),d=S(i);return d===0&&k(i,0)==="-"?-0:d}return c}():S},41148:function(I,r,n){"use strict";var e=n(26856),a=n(13586),t=n(72908),o=n(8758),f=n(47913).trim,V=n(47410),k=e.parseInt,S=e.Symbol,y=S&&S.iterator,p=/^[+-]?0x/i,l=t(p.exec),c=k(V+"08")!==8||k(V+"0x16")!==22||y&&!a(function(){k(Object(y))});I.exports=c?function(){function m(i,d){var u=f(o(i));return k(u,d>>>0||(l(p,u)?16:10))}return m}():k},23554:function(I,r,n){"use strict";var e=n(16361),a=n(72908),t=n(20276),o=n(13586),f=n(99869),V=n(61791),k=n(10409),S=n(63549),y=n(80689),p=Object.assign,l=Object.defineProperty,c=a([].concat);I.exports=!p||o(function(){if(e&&p({b:1},p(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}),p({},m)[d]!==7||f(p({},i)).join("")!==u})?function(){function m(i,d){for(var u=S(i),s=arguments.length,N=1,g=V.f,v=k.f;s>N;)for(var h=y(arguments[N++]),C=g?c(f(h),g(h)):f(h),b=C.length,B=0,L;b>B;)L=C[B++],(!e||t(v,h,L))&&(u[L]=h[L]);return u}return m}():p},15439:function(I,r,n){"use strict";var e=n(45418),a=n(55119),t=n(38139),o=n(51653),f=n(21474),V=n(55642),k=n(97223),S=">",y="<",p="prototype",l="script",c=k("IE_PROTO"),m=function(){},i=function(v){return y+l+S+v+y+"/"+l+S},d=function(v){v.write(i("")),v.close();var h=v.parentWindow.Object;return v=null,h},u=function(){var v=V("iframe"),h="java"+l+":",C;return v.style.display="none",f.appendChild(v),v.src=String(h),C=v.contentWindow.document,C.open(),C.write(i("document.F=Object")),C.close(),C.F},s,N=function(){try{s=new ActiveXObject("htmlfile")}catch(h){}N=typeof document!="undefined"?document.domain&&s?d(s):u():d(s);for(var v=t.length;v--;)delete N[p][t[v]];return N()};o[c]=!0,I.exports=Object.create||function(){function g(v,h){var C;return v!==null?(m[p]=e(v),C=new m,m[p]=null,C[c]=v):C=N(),h===void 0?C:a.f(C,h)}return g}()},55119:function(I,r,n){"use strict";var e=n(16361),a=n(87168),t=n(8165),o=n(45418),f=n(54292),V=n(99869);r.f=e&&!a?Object.defineProperties:function(){function k(S,y){o(S);for(var p=f(y),l=V(y),c=l.length,m=0,i;c>m;)t.f(S,i=l[m++],p[i]);return S}return k}()},8165:function(I,r,n){"use strict";var e=n(16361),a=n(16109),t=n(87168),o=n(45418),f=n(72445),V=TypeError,k=Object.defineProperty,S=Object.getOwnPropertyDescriptor,y="enumerable",p="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:p in d?d[p]:u[p],enumerable:y in d?d[y]:u[y],writable:!1})}return k(m,i,d)}return c}():k:function(){function c(m,i,d){if(o(m),i=f(i),o(d),a)try{return k(m,i,d)}catch(u){}if("get"in d||"set"in d)throw new V("Accessors not supported");return"value"in d&&(m[i]=d.value),m}return c}()},19765:function(I,r,n){"use strict";var e=n(16361),a=n(20276),t=n(10409),o=n(73970),f=n(54292),V=n(72445),k=n(3302),S=n(16109),y=Object.getOwnPropertyDescriptor;r.f=e?y:function(){function p(l,c){if(l=f(l),c=V(c),S)try{return y(l,c)}catch(m){}if(k(l,c))return o(!a(t.f,l,c),l[c])}return p}()},31024:function(I,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):[],V=function(S){try{return t(S)}catch(y){return o(f)}};I.exports.f=function(){function k(S){return f&&e(S)==="Window"?V(S):t(a(S))}return k}()},60097:function(I,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(I,r){"use strict";r.f=Object.getOwnPropertySymbols},56379:function(I,r,n){"use strict";var e=n(3302),a=n(53664),t=n(63549),o=n(97223),f=n(62297),V=o("IE_PROTO"),k=Object,S=k.prototype;I.exports=f?k.getPrototypeOf:function(y){var p=t(y);if(e(p,V))return p[V];var l=p.constructor;return a(l)&&p instanceof l?l.prototype:p instanceof k?S:null}},58221:function(I,r,n){"use strict";var e=n(13586),a=n(66379),t=n(8649),o=n(8685),f=Object.isExtensible,V=e(function(){f(1)});I.exports=V||o?function(){function k(S){return!a(S)||o&&t(S)==="ArrayBuffer"?!1:f?f(S):!0}return k}():f},54341:function(I,r,n){"use strict";var e=n(72908);I.exports=e({}.isPrototypeOf)},49871:function(I,r,n){"use strict";var e=n(72908),a=n(3302),t=n(54292),o=n(33483).indexOf,f=n(51653),V=e([].push);I.exports=function(k,S){var y=t(k),p=0,l=[],c;for(c in y)!a(f,c)&&a(y,c)&&V(l,c);for(;S.length>p;)a(y,c=S[p++])&&(~o(l,c)||V(l,c));return l}},99869:function(I,r,n){"use strict";var e=n(49871),a=n(38139);I.exports=Object.keys||function(){function t(o){return e(o,a)}return t}()},10409:function(I,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(I,r,n){"use strict";var e=n(90139),a=n(26856),t=n(13586),o=n(27204);I.exports=e||!t(function(){if(!(o&&o<535)){var f=Math.random();__defineSetter__.call(null,f,function(){}),delete a[f]}})},91420:function(I,r,n){"use strict";var e=n(53715),a=n(45418),t=n(30907);I.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var o=!1,f={},V;try{V=e(Object.prototype,"__proto__","set"),V(f,[]),o=f instanceof Array}catch(k){}return function(){function k(S,y){return a(S),t(y),o?V(S,y):S.__proto__=y,S}return k}()}():void 0)},64266:function(I,r,n){"use strict";var e=n(16361),a=n(13586),t=n(72908),o=n(56379),f=n(99869),V=n(54292),k=n(10409).f,S=t(k),y=t([].push),p=e&&a(function(){var c=Object.create(null);return c[2]=2,!S(c,2)}),l=function(m){return function(i){for(var d=V(i),u=f(d),s=p&&o(d)===null,N=u.length,g=0,v=[],h;N>g;)h=u[g++],(!e||(s?h in d:S(d,h)))&&y(v,m?[h,d[h]]:d[h]);return v}};I.exports={entries:l(!0),values:l(!1)}},6625:function(I,r,n){"use strict";var e=n(41936),a=n(48615);I.exports=e?{}.toString:function(){function t(){return"[object "+a(this)+"]"}return t}()},56109:function(I,r,n){"use strict";var e=n(20276),a=n(53664),t=n(66379),o=TypeError;I.exports=function(f,V){var k,S;if(V==="string"&&a(k=f.toString)&&!t(S=e(k,f))||a(k=f.valueOf)&&!t(S=e(k,f))||V!=="string"&&a(k=f.toString)&&!t(S=e(k,f)))return S;throw new o("Can't convert object to primitive value")}},53988:function(I,r,n){"use strict";var e=n(22070),a=n(72908),t=n(60097),o=n(61791),f=n(45418),V=a([].concat);I.exports=e("Reflect","ownKeys")||function(){function k(S){var y=t.f(f(S)),p=o.f;return p?V(y,p(S)):y}return k}()},55601:function(I,r,n){"use strict";var e=n(26856);I.exports=e},73034:function(I){"use strict";I.exports=function(r){try{return{error:!1,value:r()}}catch(n){return{error:!0,value:n}}}},14657:function(I,r,n){"use strict";var e=n(26856),a=n(3e3),t=n(53664),o=n(23620),f=n(92004),V=n(95558),k=n(52460),S=n(53437),y=n(90139),p=n(43541),l=a&&a.prototype,c=V("species"),m=!1,i=t(e.PromiseRejectionEvent),d=o("Promise",function(){var u=f(a),s=u!==String(a);if(!s&&p===66||y&&!(l.catch&&l.finally))return!0;if(!p||p<51||!/native code/.test(u)){var N=new a(function(h){h(1)}),g=function(C){C(function(){},function(){})},v=N.constructor={};if(v[c]=g,m=N.then(function(){})instanceof g,!m)return!0}return!s&&(k||S)&&!i});I.exports={CONSTRUCTOR:d,REJECTION_EVENT:i,SUBCLASSING:m}},3e3:function(I,r,n){"use strict";var e=n(26856);I.exports=e.Promise},61988:function(I,r,n){"use strict";var e=n(45418),a=n(66379),t=n(14187);I.exports=function(o,f){if(e(o),a(f)&&f.constructor===o)return f;var V=t.f(o),k=V.resolve;return k(f),V.promise}},18182:function(I,r,n){"use strict";var e=n(3e3),a=n(1608),t=n(14657).CONSTRUCTOR;I.exports=t||!a(function(o){e.all(o).then(void 0,function(){})})},69713:function(I,r,n){"use strict";var e=n(8165).f;I.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(V){t[o]=V}return f}()})}},8274:function(I){"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}()},I.exports=r},59833:function(I,r,n){"use strict";var e=n(20276),a=n(45418),t=n(53664),o=n(8649),f=n(59049),V=TypeError;I.exports=function(k,S){var y=k.exec;if(t(y)){var p=e(y,k,S);return p!==null&&a(p),p}if(o(k)==="RegExp")return e(f,k,S);throw new V("RegExp#exec called on incompatible receiver")}},59049:function(I,r,n){"use strict";var e=n(20276),a=n(72908),t=n(8758),o=n(41913),f=n(96472),V=n(7624),k=n(15439),S=n(4471).get,y=n(18095),p=n(17329),l=V("native-string-replace",String.prototype.replace),c=RegExp.prototype.exec,m=c,i=a("".charAt),d=a("".indexOf),u=a("".replace),s=a("".slice),N=function(){var C=/a/,b=/b*/g;return e(c,C,"a"),e(c,b,"a"),C.lastIndex!==0||b.lastIndex!==0}(),g=f.BROKEN_CARET,v=/()??/.exec("")[1]!==void 0,h=N||v||g||y||p;h&&(m=function(){function C(b){var B=this,L=S(B),w=t(b),T=L.raw,A,x,E,M,R,O,D;if(T)return T.lastIndex=B.lastIndex,A=e(m,T,w),B.lastIndex=T.lastIndex,A;var j=L.groups,U=g&&B.sticky,W=e(o,B),K=B.source,G=0,$=w;if(U&&(W=u(W,"y",""),d(W,"g")===-1&&(W+="g"),$=s(w,B.lastIndex),B.lastIndex>0&&(!B.multiline||B.multiline&&i(w,B.lastIndex-1)!=="\n")&&(K="(?: "+K+")",$=" "+$,G++),x=new RegExp("^(?:"+K+")",W)),v&&(x=new RegExp("^"+K+"$(?!\\s)",W)),N&&(E=B.lastIndex),M=e(c,U?x:B,$),U?M?(M.input=s(M.input,G),M[0]=s(M[0],G),M.index=B.lastIndex,B.lastIndex+=M[0].length):B.lastIndex=0:N&&M&&(B.lastIndex=B.global?M.index+M[0].length:E),v&&M&&M.length>1&&e(l,M[0],x,function(){for(R=1;Rb)","g");return o.exec("b").groups.a!=="b"||"b".replace(o,"$c")!=="bc"})},305:function(I,r,n){"use strict";var e=n(62695),a=TypeError;I.exports=function(t){if(e(t))throw new a("Can't call method on "+t);return t}},8975:function(I,r,n){"use strict";var e=n(26856),a=n(16361),t=Object.getOwnPropertyDescriptor;I.exports=function(o){if(!a)return e[o];var f=t(e,o);return f&&f.value}},91935:function(I){"use strict";I.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(I,r,n){"use strict";var e=n(26856),a=n(47244),t=n(53664),o=n(68261),f=n(74247),V=n(31170),k=n(92827),S=e.Function,y=/MSIE .\./.test(f)||o&&function(){var p=e.Bun.version.split(".");return p.length<3||p[0]==="0"&&(p[1]<3||p[1]==="3"&&p[2]==="0")}();I.exports=function(p,l){var c=l?2:1;return y?function(m,i){var d=k(arguments.length,1)>c,u=t(m)?m:S(m),s=d?V(arguments,c):[],N=d?function(){a(u,this,s)}:u;return l?p(N,i):p(N)}:p}},92468:function(I,r,n){"use strict";var e=n(22070),a=n(57301),t=n(95558),o=n(16361),f=t("species");I.exports=function(V){var k=e(V);o&&k&&!k[f]&&a(k,f,{configurable:!0,get:function(){function S(){return this}return S}()})}},15676:function(I,r,n){"use strict";var e=n(8165).f,a=n(3302),t=n(95558),o=t("toStringTag");I.exports=function(f,V,k){f&&!k&&(f=f.prototype),f&&!a(f,o)&&e(f,o,{configurable:!0,value:V})}},97223:function(I,r,n){"use strict";var e=n(7624),a=n(76246),t=e("keys");I.exports=function(o){return t[o]||(t[o]=a(o))}},70192:function(I,r,n){"use strict";var e=n(26856),a=n(17553),t="__core-js_shared__",o=e[t]||a(t,{});I.exports=o},7624:function(I,r,n){"use strict";var e=n(90139),a=n(70192);(I.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(I,r,n){"use strict";var e=n(45418),a=n(48218),t=n(62695),o=n(95558),f=o("species");I.exports=function(V,k){var S=e(V).constructor,y;return S===void 0||t(y=e(S)[f])?k:a(y)}},81626:function(I,r,n){"use strict";var e=n(13586);I.exports=function(a){return e(function(){var t=""[a]('"');return t!==t.toLowerCase()||t.split('"').length>3})}},13300:function(I,r,n){"use strict";var e=n(72908),a=n(84501),t=n(8758),o=n(305),f=e("".charAt),V=e("".charCodeAt),k=e("".slice),S=function(p){return function(l,c){var m=t(o(l)),i=a(c),d=m.length,u,s;return i<0||i>=d?p?"":void 0:(u=V(m,i),u<55296||u>56319||i+1===d||(s=V(m,i+1))<56320||s>57343?p?f(m,i):u:p?k(m,i,i+2):(u-55296<<10)+(s-56320)+65536)}};I.exports={codeAt:S(!1),charAt:S(!0)}},51468:function(I,r,n){"use strict";var e=n(74247);I.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(e)},81290:function(I,r,n){"use strict";var e=n(72908),a=n(74369),t=n(8758),o=n(75463),f=n(305),V=e(o),k=e("".slice),S=Math.ceil,y=function(l){return function(c,m,i){var d=t(f(c)),u=a(m),s=d.length,N=i===void 0?" ":t(i),g,v;return u<=s||N===""?d:(g=u-s,v=V(N,S(g/N.length)),v.length>g&&(v=k(v,0,g)),l?d+v:v+d)}};I.exports={start:y(!1),end:y(!0)}},75463:function(I,r,n){"use strict";var e=n(84501),a=n(8758),t=n(305),o=RangeError;I.exports=function(){function f(V){var k=a(t(this)),S="",y=e(V);if(y<0||y===1/0)throw new o("Wrong number of repetitions");for(;y>0;(y>>>=1)&&(k+=k))y&1&&(S+=k);return S}return f}()},45745:function(I,r,n){"use strict";var e=n(47913).end,a=n(15677);I.exports=a("trimEnd")?function(){function t(){return e(this)}return t}():"".trimEnd},15677:function(I,r,n){"use strict";var e=n(15340).PROPER,a=n(13586),t=n(47410),o="\u200B\x85\u180E";I.exports=function(f){return a(function(){return!!t[f]()||o[f]()!==o||e&&t[f].name!==f})}},35634:function(I,r,n){"use strict";var e=n(47913).start,a=n(15677);I.exports=a("trimStart")?function(){function t(){return e(this)}return t}():"".trimStart},47913:function(I,r,n){"use strict";var e=n(72908),a=n(305),t=n(8758),o=n(47410),f=e("".replace),V=RegExp("^["+o+"]+"),k=RegExp("(^|[^"+o+"])["+o+"]+$"),S=function(p){return function(l){var c=t(a(l));return p&1&&(c=f(c,V,"")),p&2&&(c=f(c,k,"$1")),c}};I.exports={start:S(1),end:S(2),trim:S(3)}},61855:function(I,r,n){"use strict";var e=n(43541),a=n(13586),t=n(26856),o=t.String;I.exports=!!Object.getOwnPropertySymbols&&!a(function(){var f=Symbol("symbol detection");return!o(f)||!(Object(f)instanceof Symbol)||!Symbol.sham&&e&&e<41})},28952:function(I,r,n){"use strict";var e=n(20276),a=n(22070),t=n(95558),o=n(60855);I.exports=function(){var f=a("Symbol"),V=f&&f.prototype,k=V&&V.valueOf,S=t("toPrimitive");V&&!V[S]&&o(V,S,function(y){return e(k,this)},{arity:1})}},16010:function(I,r,n){"use strict";var e=n(61855);I.exports=e&&!!Symbol.for&&!!Symbol.keyFor},87073:function(I,r,n){"use strict";var e=n(26856),a=n(47244),t=n(8942),o=n(53664),f=n(3302),V=n(13586),k=n(21474),S=n(31170),y=n(55642),p=n(92827),l=n(25184),c=n(86727),m=e.setImmediate,i=e.clearImmediate,d=e.process,u=e.Dispatch,s=e.Function,N=e.MessageChannel,g=e.String,v=0,h={},C="onreadystatechange",b,B,L,w;V(function(){b=e.location});var T=function(R){if(f(h,R)){var O=h[R];delete h[R],O()}},A=function(R){return function(){T(R)}},x=function(R){T(R.data)},E=function(R){e.postMessage(g(R),b.protocol+"//"+b.host)};(!m||!i)&&(m=function(){function M(R){p(arguments.length,1);var O=o(R)?R:s(R),D=S(arguments,1);return h[++v]=function(){a(O,void 0,D)},B(v),v}return M}(),i=function(){function M(R){delete h[R]}return M}(),c?B=function(R){d.nextTick(A(R))}:u&&u.now?B=function(R){u.now(A(R))}:N&&!l?(L=new N,w=L.port2,L.port1.onmessage=x,B=t(w.postMessage,w)):e.addEventListener&&o(e.postMessage)&&!e.importScripts&&b&&b.protocol!=="file:"&&!V(E)?(B=E,e.addEventListener("message",x,!1)):C in y("script")?B=function(R){k.appendChild(y("script"))[C]=function(){k.removeChild(this),T(R)}}:B=function(R){setTimeout(A(R),0)}),I.exports={set:m,clear:i}},7950:function(I,r,n){"use strict";var e=n(72908);I.exports=e(1 .valueOf)},39531:function(I,r,n){"use strict";var e=n(84501),a=Math.max,t=Math.min;I.exports=function(o,f){var V=e(o);return V<0?a(V+f,0):t(V,f)}},73873:function(I,r,n){"use strict";var e=n(9560),a=TypeError;I.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(I,r,n){"use strict";var e=n(84501),a=n(74369),t=RangeError;I.exports=function(o){if(o===void 0)return 0;var f=e(o),V=a(f);if(f!==V)throw new t("Wrong length or index");return V}},54292:function(I,r,n){"use strict";var e=n(80689),a=n(305);I.exports=function(t){return e(a(t))}},84501:function(I,r,n){"use strict";var e=n(54037);I.exports=function(a){var t=+a;return t!==t||t===0?0:e(t)}},74369:function(I,r,n){"use strict";var e=n(84501),a=Math.min;I.exports=function(t){return t>0?a(e(t),9007199254740991):0}},63549:function(I,r,n){"use strict";var e=n(305),a=Object;I.exports=function(t){return a(e(t))}},45476:function(I,r,n){"use strict";var e=n(70685),a=RangeError;I.exports=function(t,o){var f=e(t);if(f%o)throw new a("Wrong offset");return f}},70685:function(I,r,n){"use strict";var e=n(84501),a=RangeError;I.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(I,r,n){"use strict";var e=n(20276),a=n(66379),t=n(43474),o=n(76540),f=n(56109),V=n(95558),k=TypeError,S=V("toPrimitive");I.exports=function(y,p){if(!a(y)||t(y))return y;var l=o(y,S),c;if(l){if(p===void 0&&(p="default"),c=e(l,y,p),!a(c)||t(c))return c;throw new k("Can't convert object to primitive value")}return p===void 0&&(p="number"),f(y,p)}},72445:function(I,r,n){"use strict";var e=n(9560),a=n(43474);I.exports=function(t){var o=e(t,"string");return a(o)?o:o+""}},41936:function(I,r,n){"use strict";var e=n(95558),a=e("toStringTag"),t={};t[a]="z",I.exports=String(t)==="[object z]"},8758:function(I,r,n){"use strict";var e=n(48615),a=String;I.exports=function(t){if(e(t)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return a(t)}},52834:function(I){"use strict";var r=Math.round;I.exports=function(n){var e=r(n);return e<0?0:e>255?255:e&255}},36787:function(I){"use strict";var r=String;I.exports=function(n){try{return r(n)}catch(e){return"Object"}}},43186:function(I,r,n){"use strict";var e=n(3116),a=n(26856),t=n(20276),o=n(16361),f=n(45410),V=n(30432),k=n(31284),S=n(14434),y=n(73970),p=n(21650),l=n(76117),c=n(74369),m=n(28968),i=n(45476),d=n(52834),u=n(72445),s=n(3302),N=n(48615),g=n(66379),v=n(43474),h=n(15439),C=n(54341),b=n(91420),B=n(60097).f,L=n(12778),w=n(18539).forEach,T=n(92468),A=n(57301),x=n(8165),E=n(19765),M=n(21465),R=n(4471),O=n(43405),D=R.get,j=R.set,U=R.enforce,W=x.f,K=E.f,G=a.RangeError,$=k.ArrayBuffer,z=$.prototype,Y=k.DataView,J=V.NATIVE_ARRAY_BUFFER_VIEWS,ie=V.TYPED_ARRAY_TAG,re=V.TypedArray,de=V.TypedArrayPrototype,ve=V.isTypedArray,ye="BYTES_PER_ELEMENT",Le="Wrong length",pe=function(te,be){A(te,be,{configurable:!0,get:function(){function fe(){return D(this)[be]}return fe}()})},ne=function(te){var be;return C(z,te)||(be=N(te))==="ArrayBuffer"||be==="SharedArrayBuffer"},ae=function(te,be){return ve(te)&&!v(be)&&be in te&&l(+be)&&be>=0},q=function(){function me(te,be){return be=u(be),ae(te,be)?y(2,te[be]):K(te,be)}return me}(),se=function(){function me(te,be,fe){return be=u(be),ae(te,be)&&g(fe)&&s(fe,"value")&&!s(fe,"get")&&!s(fe,"set")&&!fe.configurable&&(!s(fe,"writable")||fe.writable)&&(!s(fe,"enumerable")||fe.enumerable)?(te[be]=fe.value,te):W(te,be,fe)}return me}();o?(J||(E.f=q,x.f=se,pe(de,"buffer"),pe(de,"byteOffset"),pe(de,"byteLength"),pe(de,"length")),e({target:"Object",stat:!0,forced:!J},{getOwnPropertyDescriptor:q,defineProperty:se}),I.exports=function(me,te,be){var fe=me.match(/\d+/)[0]/8,ge=me+(be?"Clamped":"")+"Array",ke="get"+me,Ce="set"+me,Se=a[ge],we=Se,xe=we&&we.prototype,Pe={},Ue=function(ue,Ne){var Ae=D(ue);return Ae.view[ke](Ne*fe+Ae.byteOffset,!0)},Ve=function(ue,Ne,Ae){var De=D(ue);De.view[Ce](Ne*fe+De.byteOffset,be?d(Ae):Ae,!0)},oe=function(ue,Ne){W(ue,Ne,{get:function(){function Ae(){return Ue(this,Ne)}return Ae}(),set:function(){function Ae(De){return Ve(this,Ne,De)}return Ae}(),enumerable:!0})};J?f&&(we=te(function(he,ue,Ne,Ae){return S(he,xe),O(function(){return g(ue)?ne(ue)?Ae!==void 0?new Se(ue,i(Ne,fe),Ae):Ne!==void 0?new Se(ue,i(Ne,fe)):new Se(ue):ve(ue)?M(we,ue):t(L,we,ue):new Se(m(ue))}(),he,we)}),b&&b(we,re),w(B(Se),function(he){he in we||p(we,he,Se[he])}),we.prototype=xe):(we=te(function(he,ue,Ne,Ae){S(he,xe);var De=0,je=0,Ke,We,He;if(!g(ue))He=m(ue),We=He*fe,Ke=new $(We);else if(ne(ue)){Ke=ue,je=i(Ne,fe);var _e=ue.byteLength;if(Ae===void 0){if(_e%fe)throw new G(Le);if(We=_e-je,We<0)throw new G(Le)}else if(We=c(Ae)*fe,We+je>_e)throw new G(Le);He=We/fe}else return ve(ue)?M(we,ue):t(L,we,ue);for(j(he,{buffer:Ke,byteOffset:je,byteLength:We,length:He,view:new Y(Ke)});De1?arguments[1]:void 0,N=s!==void 0,g=k(d),v,h,C,b,B,L,w,T;if(g&&!S(g))for(w=V(d,g),T=w.next,d=[];!(L=a(T,w)).done;)d.push(L.value);for(N&&u>2&&(s=e(s,arguments[2])),h=f(d),C=new(p(i))(h),b=y(C),v=0;h>v;v++)B=N?s(d[v],v):d[v],C[v]=b?l(B):+B;return C}return c}()},9230:function(I,r,n){"use strict";var e=n(30432),a=n(83604),t=e.aTypedArrayConstructor,o=e.getTypedArrayConstructor;I.exports=function(f){return t(a(f,o(f)))}},76246:function(I,r,n){"use strict";var e=n(72908),a=0,t=Math.random(),o=e(1 .toString);I.exports=function(f){return"Symbol("+(f===void 0?"":f)+")_"+o(++a+t,36)}},95343:function(I,r,n){"use strict";var e=n(61855);I.exports=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},87168:function(I,r,n){"use strict";var e=n(16361),a=n(13586);I.exports=e&&a(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})},92827:function(I){"use strict";var r=TypeError;I.exports=function(n,e){if(n=51||!a(function(){var s=[];return s[m]=!1,s.concat()[0]!==s}),d=function(N){if(!o(N))return!1;var g=N[m];return g!==void 0?!!g:t(N)},u=!i||!p("concat");e({target:"Array",proto:!0,arity:1,forced:u},{concat:function(){function s(N){var g=f(this),v=y(g,0),h=0,C,b,B,L,w;for(C=-1,B=arguments.length;C1?arguments[1]:void 0)}return f}()})},7216:function(I,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(I,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(V){return a(this,V,arguments.length>1?arguments[1]:void 0)}return f}()})},25972:function(I,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 V(k){return a(this,k,arguments.length>1?arguments[1]:void 0)}return V}()}),t(o)},26632:function(I,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 V(k){return a(this,k,arguments.length>1?arguments[1]:void 0)}return V}()}),t(o)},14064:function(I,r,n){"use strict";var e=n(3116),a=n(73132),t=n(79474),o=n(63549),f=n(83207),V=n(51582);e({target:"Array",proto:!0},{flatMap:function(){function k(S){var y=o(this),p=f(y),l;return t(S),l=V(y,0),l.length=a(l,y,y,p,0,1,S,arguments.length>1?arguments[1]:void 0),l}return k}()})},55222:function(I,r,n){"use strict";var e=n(3116),a=n(73132),t=n(63549),o=n(83207),f=n(84501),V=n(51582);e({target:"Array",proto:!0},{flat:function(){function k(){var S=arguments.length?arguments[0]:void 0,y=t(this),p=o(y),l=V(y,0);return l.length=a(l,y,y,p,0,S===void 0?1:f(S)),l}return k}()})},68616:function(I,r,n){"use strict";var e=n(3116),a=n(16856);e({target:"Array",proto:!0,forced:[].forEach!==a},{forEach:a})},45168:function(I,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(I,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 V(k){return a(this,k,arguments.length>1?arguments[1]:void 0)}return V}()}),o("includes")},92654:function(I,r,n){"use strict";var e=n(3116),a=n(69935),t=n(33483).indexOf,o=n(56127),f=a([].indexOf),V=!!f&&1/f([1],1,-0)<0,k=V||!o("indexOf");e({target:"Array",proto:!0,forced:k},{indexOf:function(){function S(y){var p=arguments.length>1?arguments[1]:void 0;return V?f(this,y,p)||0:t(this,y,p)}return S}()})},58423:function(I,r,n){"use strict";var e=n(3116),a=n(59882);e({target:"Array",stat:!0},{isArray:a})},26017:function(I,r,n){"use strict";var e=n(54292),a=n(98759),t=n(47730),o=n(4471),f=n(8165).f,V=n(21436),k=n(32214),S=n(90139),y=n(16361),p="Array Iterator",l=o.set,c=o.getterFor(p);I.exports=V(Array,"Array",function(i,d){l(this,{type:p,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,k(void 0,!0);switch(i.kind){case"keys":return k(u,!1);case"values":return k(d[u],!1)}return k([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(I,r,n){"use strict";var e=n(3116),a=n(72908),t=n(80689),o=n(54292),f=n(56127),V=a([].join),k=t!==Object,S=k||!f("join",",");e({target:"Array",proto:!0,forced:S},{join:function(){function y(p){return V(o(this),p===void 0?",":p)}return y}()})},2509:function(I,r,n){"use strict";var e=n(3116),a=n(16400);e({target:"Array",proto:!0,forced:a!==[].lastIndexOf},{lastIndexOf:a})},2124:function(I,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(V){return a(this,V,arguments.length>1?arguments[1]:void 0)}return f}()})},38196:function(I,r,n){"use strict";var e=n(3116),a=n(13586),t=n(49632),o=n(80750),f=Array,V=a(function(){function k(){}return!(f.of.call(k)instanceof k)});e({target:"Array",stat:!0,forced:V},{of:function(){function k(){for(var S=0,y=arguments.length,p=new(t(this)?this:f)(y);y>S;)o(p,S,arguments[S++]);return p.length=y,p}return k}()})},56913:function(I,r,n){"use strict";var e=n(3116),a=n(58394).right,t=n(56127),o=n(43541),f=n(86727),V=!f&&o>79&&o<83,k=V||!t("reduceRight");e({target:"Array",proto:!0,forced:k},{reduceRight:function(){function S(y){return a(this,y,arguments.length,arguments.length>1?arguments[1]:void 0)}return S}()})},7731:function(I,r,n){"use strict";var e=n(3116),a=n(58394).left,t=n(56127),o=n(43541),f=n(86727),V=!f&&o>79&&o<83,k=V||!t("reduce");e({target:"Array",proto:!0,forced:k},{reduce:function(){function S(y){var p=arguments.length;return a(this,y,p,p>1?arguments[1]:void 0)}return S}()})},48704:function(I,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 V(){return t(this)&&(this.length=this.length),o(this)}return V}()})},24077:function(I,r,n){"use strict";var e=n(3116),a=n(59882),t=n(49632),o=n(66379),f=n(39531),V=n(83207),k=n(54292),S=n(80750),y=n(95558),p=n(34924),l=n(31170),c=p("slice"),m=y("species"),i=Array,d=Math.max;e({target:"Array",proto:!0,forced:!c},{slice:function(){function u(s,N){var g=k(this),v=V(g),h=f(s,v),C=f(N===void 0?v:N,v),b,B,L;if(a(g)&&(b=g.constructor,t(b)&&(b===i||a(b.prototype))?b=void 0:o(b)&&(b=b[m],b===null&&(b=void 0)),b===i||b===void 0))return l(g,h,C);for(B=new(b===void 0?i:b)(d(C-h,0)),L=0;h1?arguments[1]:void 0)}return f}()})},43430:function(I,r,n){"use strict";var e=n(3116),a=n(72908),t=n(79474),o=n(63549),f=n(83207),V=n(81245),k=n(8758),S=n(13586),y=n(91183),p=n(56127),l=n(31574),c=n(88836),m=n(43541),i=n(27204),d=[],u=a(d.sort),s=a(d.push),N=S(function(){d.sort(void 0)}),g=S(function(){d.sort(null)}),v=p("sort"),h=!S(function(){if(m)return m<70;if(!(l&&l>3)){if(c)return!0;if(i)return i<603;var B="",L,w,T,A;for(L=65;L<76;L++){switch(w=String.fromCharCode(L),L){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;Ak(T)?1:-1}};e({target:"Array",proto:!0,forced:C},{sort:function(){function B(L){L!==void 0&&t(L);var w=o(this);if(h)return L===void 0?u(w):u(w,L);var T=[],A=f(w),x,E;for(E=0;Eg-b+C;L--)p(N,L-1)}else if(C>b)for(L=g-b;L>v;L--)w=L+b-1,T=L+C-1,w in N?N[T]=N[w]:p(N,T);for(L=0;L9490626562425156e-8?o(p)+V:a(p-1+f(p-1)*f(p+1))}return S}()})},68872:function(I,r,n){"use strict";var e=n(3116),a=Math.asinh,t=Math.log,o=Math.sqrt;function f(k){var S=+k;return!isFinite(S)||S===0?S:S<0?-f(-S):t(S+o(S*S+1))}var V=!(a&&1/a(0)>0);e({target:"Math",stat:!0,forced:V},{asinh:f})},93105:function(I,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(V){var k=+V;return k===0?k:t((1+k)/(1-k))/2}return f}()})},1795:function(I,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(V){var k=+V;return a(k)*o(t(k),.3333333333333333)}return f}()})},11121:function(I,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(V){var k=V>>>0;return k?31-a(t(k+.5)*o):32}return f}()})},18730:function(I,r,n){"use strict";var e=n(3116),a=n(80563),t=Math.cosh,o=Math.abs,f=Math.E,V=!t||t(710)===1/0;e({target:"Math",stat:!0,forced:V},{cosh:function(){function k(S){var y=a(o(S)-1)+1;return(y+1/(y*f*f))*(f/2)}return k}()})},11624:function(I,r,n){"use strict";var e=n(3116),a=n(80563);e({target:"Math",stat:!0,forced:a!==Math.expm1},{expm1:a})},89004:function(I,r,n){"use strict";var e=n(3116),a=n(48705);e({target:"Math",stat:!0},{fround:a})},72680:function(I,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 V(k,S){for(var y=0,p=0,l=arguments.length,c=0,m,i;p0?(i=m/c,y+=i*i):y+=m;return c===1/0?1/0:c*o(y)}return V}()})},75213:function(I,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(V,k){var S=65535,y=+V,p=+k,l=S&y,c=S&p;return 0|l*c+((S&y>>>16)*c+l*(S&p>>>16)<<16>>>0)}return f}()})},4347:function(I,r,n){"use strict";var e=n(3116),a=n(74347);e({target:"Math",stat:!0},{log10:a})},86433:function(I,r,n){"use strict";var e=n(3116),a=n(50169);e({target:"Math",stat:!0},{log1p:a})},21401:function(I,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(I,r,n){"use strict";var e=n(3116),a=n(30585);e({target:"Math",stat:!0},{sign:a})},36183:function(I,r,n){"use strict";var e=n(3116),a=n(13586),t=n(80563),o=Math.abs,f=Math.exp,V=Math.E,k=a(function(){return Math.sinh(-2e-17)!==-2e-17});e({target:"Math",stat:!0,forced:k},{sinh:function(){function S(y){var p=+y;return o(p)<1?(t(p)-t(-p))/2:(f(p-1)-f(-p-1))*(V/2)}return S}()})},95499:function(I,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 V=+f,k=a(V),S=a(-V);return k===1/0?1:S===1/0?-1:(k-S)/(t(V)+t(-V))}return o}()})},50929:function(I,r,n){"use strict";var e=n(15676);e(Math,"Math",!0)},91447:function(I,r,n){"use strict";var e=n(3116),a=n(54037);e({target:"Math",stat:!0},{trunc:a})},84314:function(I,r,n){"use strict";var e=n(3116),a=n(90139),t=n(16361),o=n(26856),f=n(55601),V=n(72908),k=n(23620),S=n(3302),y=n(43405),p=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),N=n(47913).trim,g="Number",v=o[g],h=f[g],C=v.prototype,b=o.TypeError,B=V("".slice),L=V("".charCodeAt),w=function(O){var D=c(O,"number");return typeof D=="bigint"?D:T(D)},T=function(O){var D=c(O,"number"),j,U,W,K,G,$,z,Y;if(l(D))throw new b("Cannot convert a Symbol value to a number");if(typeof D=="string"&&D.length>2){if(D=N(D),j=L(D,0),j===43||j===45){if(U=L(D,2),U===88||U===120)return NaN}else if(j===48){switch(L(D,1)){case 66:case 98:W=2,K=49;break;case 79:case 111:W=8,K=55;break;default:return+D}for(G=B(D,2),$=G.length,z=0;z<$;z++)if(Y=L(G,z),Y<48||Y>K)return NaN;return parseInt(G,W)}}return+D},A=k(g,!v(" 0o1")||!v("0b1")||v("+0x1")),x=function(O){return p(C,O)&&m(function(){s(O)})},E=function(){function R(O){var D=arguments.length<1?0:v(w(O));return x(this)?y(Object(D),this,E):D}return R}();E.prototype=C,A&&!a&&(C.constructor=E),e({global:!0,constructor:!0,wrap:!0,forced:A},{Number:E});var M=function(O,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(","),U=0,W;j.length>U;U++)S(D,W=j[U])&&!S(O,W)&&u(O,W,d(D,W))};a&&h&&M(f[g],h),(A||a)&&M(f[g],v)},48211:function(I,r,n){"use strict";var e=n(3116);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)})},52237:function(I,r,n){"use strict";var e=n(3116),a=n(23944);e({target:"Number",stat:!0},{isFinite:a})},306:function(I,r,n){"use strict";var e=n(3116),a=n(76117);e({target:"Number",stat:!0},{isInteger:a})},22509:function(I,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(I,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(I,r,n){"use strict";var e=n(3116);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})},76585:function(I,r,n){"use strict";var e=n(3116);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991})},21733:function(I,r,n){"use strict";var e=n(3116),a=n(98973);e({target:"Number",stat:!0,forced:Number.parseFloat!==a},{parseFloat:a})},21210:function(I,r,n){"use strict";var e=n(3116),a=n(41148);e({target:"Number",stat:!0,forced:Number.parseInt!==a},{parseInt:a})},10272:function(I,r,n){"use strict";var e=n(3116),a=n(72908),t=n(84501),o=n(7950),f=n(75463),V=n(13586),k=RangeError,S=String,y=Math.floor,p=a(f),l=a("".slice),c=a(1 .toFixed),m=function g(v,h,C){return h===0?C:h%2===1?g(v,h-1,C*v):g(v*v,h/2,C)},i=function(v){for(var h=0,C=v;C>=4096;)h+=12,C/=4096;for(;C>=2;)h+=1,C/=2;return h},d=function(v,h,C){for(var b=-1,B=C;++b<6;)B+=h*v[b],v[b]=B%1e7,B=y(B/1e7)},u=function(v,h){for(var C=6,b=0;--C>=0;)b+=v[C],v[C]=y(b/h),b=b%h*1e7},s=function(v){for(var h=6,C="";--h>=0;)if(C!==""||h===0||v[h]!==0){var b=S(v[h]);C=C===""?b:C+p("0",7-b.length)+b}return C},N=V(function(){return c(8e-5,3)!=="0.000"||c(.9,0)!=="1"||c(1.255,2)!=="1.25"||c(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!V(function(){c({})});e({target:"Number",proto:!0,forced:N},{toFixed:function(){function g(v){var h=o(this),C=t(v),b=[0,0,0,0,0,0],B="",L="0",w,T,A,x;if(C<0||C>20)throw new k("Incorrect fraction digits");if(h!==h)return"NaN";if(h<=-1e21||h>=1e21)return S(h);if(h<0&&(B="-",h=-h),h>1e-21)if(w=i(h*m(2,69,1))-69,T=w<0?h*m(2,-w,1):h/m(2,w,1),T*=4503599627370496,w=52-w,w>0){for(d(b,0,T),A=C;A>=7;)d(b,1e7,0),A-=7;for(d(b,m(10,A,1),0),A=w-1;A>=23;)u(b,8388608),A-=23;u(b,1<0?(x=L.length,L=B+(x<=C?"0."+p("0",C-x)+L:l(L,0,x-C)+"."+l(L,x-C))):L=B+L,L}return g}()})},83403:function(I,r,n){"use strict";var e=n(3116),a=n(72908),t=n(13586),o=n(7950),f=a(1 .toPrecision),V=t(function(){return f(1,void 0)!=="1"})||!t(function(){f({})});e({target:"Number",proto:!0,forced:V},{toPrecision:function(){function k(S){return S===void 0?f(o(this)):f(o(this),S)}return k}()})},4229:function(I,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(I,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(I,r,n){"use strict";var e=n(3116),a=n(16361),t=n(6205),o=n(79474),f=n(63549),V=n(8165);a&&e({target:"Object",proto:!0,forced:t},{__defineGetter__:function(){function k(S,y){V.f(f(this),S,{get:o(y),enumerable:!0,configurable:!0})}return k}()})},53822:function(I,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(I,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(I,r,n){"use strict";var e=n(3116),a=n(16361),t=n(6205),o=n(79474),f=n(63549),V=n(8165);a&&e({target:"Object",proto:!0,forced:t},{__defineSetter__:function(){function k(S,y){V.f(f(this),S,{set:o(y),enumerable:!0,configurable:!0})}return k}()})},14955:function(I,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(I,r,n){"use strict";var e=n(3116),a=n(58199),t=n(13586),o=n(66379),f=n(66526).onFreeze,V=Object.freeze,k=t(function(){V(1)});e({target:"Object",stat:!0,forced:k,sham:!a},{freeze:function(){function S(y){return V&&o(y)?V(f(y)):y}return S}()})},81941:function(I,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 V={};return a(f,function(k,S){t(V,k,S)},{AS_ENTRIES:!0}),V}return o}()})},37245:function(I,r,n){"use strict";var e=n(3116),a=n(13586),t=n(54292),o=n(19765).f,f=n(16361),V=!f||a(function(){o(1)});e({target:"Object",stat:!0,forced:V,sham:!f},{getOwnPropertyDescriptor:function(){function k(S,y){return o(t(S),y)}return k}()})},8373:function(I,r,n){"use strict";var e=n(3116),a=n(16361),t=n(53988),o=n(54292),f=n(19765),V=n(80750);e({target:"Object",stat:!0,sham:!a},{getOwnPropertyDescriptors:function(){function k(S){for(var y=o(S),p=f.f,l=t(y),c={},m=0,i,d;l.length>m;)d=p(y,i=l[m++]),d!==void 0&&V(c,i,d);return c}return k}()})},81212:function(I,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(I,r,n){"use strict";var e=n(3116),a=n(61855),t=n(13586),o=n(61791),f=n(63549),V=!a||t(function(){o.f(1)});e({target:"Object",stat:!0,forced:V},{getOwnPropertySymbols:function(){function k(S){var y=o.f;return y?y(f(S)):[]}return k}()})},26054:function(I,r,n){"use strict";var e=n(3116),a=n(13586),t=n(63549),o=n(56379),f=n(62297),V=a(function(){o(1)});e({target:"Object",stat:!0,forced:V,sham:!f},{getPrototypeOf:function(){function k(S){return o(t(S))}return k}()})},49611:function(I,r,n){"use strict";var e=n(3116),a=n(58221);e({target:"Object",stat:!0,forced:Object.isExtensible!==a},{isExtensible:a})},98344:function(I,r,n){"use strict";var e=n(3116),a=n(13586),t=n(66379),o=n(8649),f=n(8685),V=Object.isFrozen,k=f||a(function(){V(1)});e({target:"Object",stat:!0,forced:k},{isFrozen:function(){function S(y){return!t(y)||f&&o(y)==="ArrayBuffer"?!0:V?V(y):!1}return S}()})},55750:function(I,r,n){"use strict";var e=n(3116),a=n(13586),t=n(66379),o=n(8649),f=n(8685),V=Object.isSealed,k=f||a(function(){V(1)});e({target:"Object",stat:!0,forced:k},{isSealed:function(){function S(y){return!t(y)||f&&o(y)==="ArrayBuffer"?!0:V?V(y):!1}return S}()})},57745:function(I,r,n){"use strict";var e=n(3116),a=n(91935);e({target:"Object",stat:!0},{is:a})},7340:function(I,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 V(k){return t(a(k))}return V}()})},63429:function(I,r,n){"use strict";var e=n(3116),a=n(16361),t=n(6205),o=n(63549),f=n(72445),V=n(56379),k=n(19765).f;a&&e({target:"Object",proto:!0,forced:t},{__lookupGetter__:function(){function S(y){var p=o(this),l=f(y),c;do if(c=k(p,l))return c.get;while(p=V(p))}return S}()})},9558:function(I,r,n){"use strict";var e=n(3116),a=n(16361),t=n(6205),o=n(63549),f=n(72445),V=n(56379),k=n(19765).f;a&&e({target:"Object",proto:!0,forced:t},{__lookupSetter__:function(){function S(y){var p=o(this),l=f(y),c;do if(c=k(p,l))return c.set;while(p=V(p))}return S}()})},2420:function(I,r,n){"use strict";var e=n(3116),a=n(66379),t=n(66526).onFreeze,o=n(58199),f=n(13586),V=Object.preventExtensions,k=f(function(){V(1)});e({target:"Object",stat:!0,forced:k,sham:!o},{preventExtensions:function(){function S(y){return V&&a(y)?V(t(y)):y}return S}()})},19015:function(I,r,n){"use strict";var e=n(3116),a=n(66379),t=n(66526).onFreeze,o=n(58199),f=n(13586),V=Object.seal,k=f(function(){V(1)});e({target:"Object",stat:!0,forced:k,sham:!o},{seal:function(){function S(y){return V&&a(y)?V(t(y)):y}return S}()})},34137:function(I,r,n){"use strict";var e=n(3116),a=n(91420);e({target:"Object",stat:!0},{setPrototypeOf:a})},24705:function(I,r,n){"use strict";var e=n(41936),a=n(60855),t=n(6625);e||a(Object.prototype,"toString",t,{unsafe:!0})},55318:function(I,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(I,r,n){"use strict";var e=n(3116),a=n(98973);e({global:!0,forced:parseFloat!==a},{parseFloat:a})},12217:function(I,r,n){"use strict";var e=n(3116),a=n(41148);e({global:!0,forced:parseInt!==a},{parseInt:a})},70479:function(I,r,n){"use strict";var e=n(3116),a=n(20276),t=n(79474),o=n(14187),f=n(73034),V=n(20453),k=n(18182);e({target:"Promise",stat:!0,forced:k},{all:function(){function S(y){var p=this,l=o.f(p),c=l.resolve,m=l.reject,i=f(function(){var d=t(p.resolve),u=[],s=0,N=1;V(y,function(g){var v=s++,h=!1;N++,a(d,p,g).then(function(C){h||(h=!0,u[v]=C,--N||c(u))},m)}),--N||c(u)});return i.error&&m(i.value),l.promise}return S}()})},72188:function(I,r,n){"use strict";var e=n(3116),a=n(90139),t=n(14657).CONSTRUCTOR,o=n(3e3),f=n(22070),V=n(53664),k=n(60855),S=o&&o.prototype;if(e({target:"Promise",proto:!0,forced:t,real:!0},{catch:function(){function p(l){return this.then(void 0,l)}return p}()}),!a&&V(o)){var y=f("Promise").prototype.catch;S.catch!==y&&k(S,"catch",y,{unsafe:!0})}},13779:function(I,r,n){"use strict";var e=n(3116),a=n(90139),t=n(86727),o=n(26856),f=n(20276),V=n(60855),k=n(91420),S=n(15676),y=n(92468),p=n(79474),l=n(53664),c=n(66379),m=n(14434),i=n(83604),d=n(87073).set,u=n(60816),s=n(66481),N=n(73034),g=n(8274),v=n(4471),h=n(3e3),C=n(14657),b=n(14187),B="Promise",L=C.CONSTRUCTOR,w=C.REJECTION_EVENT,T=C.SUBCLASSING,A=v.getterFor(B),x=v.set,E=h&&h.prototype,M=h,R=E,O=o.TypeError,D=o.document,j=o.process,U=b.f,W=U,K=!!(D&&D.createEvent&&o.dispatchEvent),G="unhandledrejection",$="rejectionhandled",z=0,Y=1,J=2,ie=1,re=2,de,ve,ye,Le,pe=function(Ce){var Se;return c(Ce)&&l(Se=Ce.then)?Se:!1},ne=function(Ce,Se){var we=Se.value,xe=Se.state===Y,Pe=xe?Ce.ok:Ce.fail,Ue=Ce.resolve,Ve=Ce.reject,oe=Ce.domain,le,he,ue;try{Pe?(xe||(Se.rejection===re&&te(Se),Se.rejection=ie),Pe===!0?le=we:(oe&&oe.enter(),le=Pe(we),oe&&(oe.exit(),ue=!0)),le===Ce.promise?Ve(new O("Promise-chain cycle")):(he=pe(le))?f(he,le,Ue,Ve):Ue(le)):Ve(we)}catch(Ne){oe&&!ue&&oe.exit(),Ve(Ne)}},ae=function(Ce,Se){Ce.notified||(Ce.notified=!0,u(function(){for(var we=Ce.reactions,xe;xe=we.get();)ne(xe,Ce);Ce.notified=!1,Se&&!Ce.rejection&&se(Ce)}))},q=function(Ce,Se,we){var xe,Pe;K?(xe=D.createEvent("Event"),xe.promise=Se,xe.reason=we,xe.initEvent(Ce,!1,!0),o.dispatchEvent(xe)):xe={promise:Se,reason:we},!w&&(Pe=o["on"+Ce])?Pe(xe):Ce===G&&s("Unhandled promise rejection",we)},se=function(Ce){f(d,o,function(){var Se=Ce.facade,we=Ce.value,xe=me(Ce),Pe;if(xe&&(Pe=N(function(){t?j.emit("unhandledRejection",we,Se):q(G,Se,we)}),Ce.rejection=t||me(Ce)?re:ie,Pe.error))throw Pe.value})},me=function(Ce){return Ce.rejection!==ie&&!Ce.parent},te=function(Ce){f(d,o,function(){var Se=Ce.facade;t?j.emit("rejectionHandled",Se):q($,Se,Ce.value)})},be=function(Ce,Se,we){return function(xe){Ce(Se,xe,we)}},fe=function(Ce,Se,we){Ce.done||(Ce.done=!0,we&&(Ce=we),Ce.value=Se,Ce.state=J,ae(Ce,!0))},ge=function ke(Ce,Se,we){if(!Ce.done){Ce.done=!0,we&&(Ce=we);try{if(Ce.facade===Se)throw new O("Promise can't be resolved itself");var xe=pe(Se);xe?u(function(){var Pe={done:!1};try{f(xe,Se,be(ke,Pe,Ce),be(fe,Pe,Ce))}catch(Ue){fe(Pe,Ue,Ce)}}):(Ce.value=Se,Ce.state=Y,ae(Ce,!1))}catch(Pe){fe({done:!1},Pe,Ce)}}};if(L&&(M=function(){function ke(Ce){m(this,R),p(Ce),f(de,this);var Se=A(this);try{Ce(be(ge,Se),be(fe,Se))}catch(we){fe(Se,we)}}return ke}(),R=M.prototype,de=function(){function ke(Ce){x(this,{type:B,done:!1,notified:!1,parent:!1,reactions:new g,rejection:!1,state:z,value:void 0})}return ke}(),de.prototype=V(R,"then",function(){function ke(Ce,Se){var we=A(this),xe=U(i(this,M));return we.parent=!0,xe.ok=l(Ce)?Ce:!0,xe.fail=l(Se)&&Se,xe.domain=t?j.domain:void 0,we.state===z?we.reactions.add(xe):u(function(){ne(xe,we)}),xe.promise}return ke}()),ve=function(){var Ce=new de,Se=A(Ce);this.promise=Ce,this.resolve=be(ge,Se),this.reject=be(fe,Se)},b.f=U=function(Ce){return Ce===M||Ce===ye?new ve(Ce):W(Ce)},!a&&l(h)&&E!==Object.prototype)){Le=E.then,T||V(E,"then",function(){function ke(Ce,Se){var we=this;return new M(function(xe,Pe){f(Le,we,xe,Pe)}).then(Ce,Se)}return ke}(),{unsafe:!0});try{delete E.constructor}catch(ke){}k&&k(E,R)}e({global:!0,constructor:!0,wrap:!0,forced:L},{Promise:M}),S(M,B,!1,!0),y(B)},79063:function(I,r,n){"use strict";var e=n(3116),a=n(90139),t=n(3e3),o=n(13586),f=n(22070),V=n(53664),k=n(83604),S=n(61988),y=n(60855),p=t&&t.prototype,l=!!t&&o(function(){p.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=k(this,f("Promise")),u=V(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&&V(t)){var c=f("Promise").prototype.finally;p.finally!==c&&y(p,"finally",c,{unsafe:!0})}},75795:function(I,r,n){"use strict";n(13779),n(70479),n(72188),n(18199),n(75955),n(39996)},18199:function(I,r,n){"use strict";var e=n(3116),a=n(20276),t=n(79474),o=n(14187),f=n(73034),V=n(20453),k=n(18182);e({target:"Promise",stat:!0,forced:k},{race:function(){function S(y){var p=this,l=o.f(p),c=l.reject,m=f(function(){var i=t(p.resolve);V(y,function(d){a(i,p,d).then(l.resolve,c)})});return m.error&&c(m.value),l.promise}return S}()})},75955:function(I,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 V=a.f(this),k=V.reject;return k(f),V.promise}return o}()})},39996:function(I,r,n){"use strict";var e=n(3116),a=n(22070),t=n(90139),o=n(3e3),f=n(14657).CONSTRUCTOR,V=n(61988),k=a("Promise"),S=t&&!f;e({target:"Promise",stat:!0,forced:t||f},{resolve:function(){function y(p){return V(S&&this===k?o:this,p)}return y}()})},1210:function(I,r,n){"use strict";var e=n(3116),a=n(47244),t=n(79474),o=n(45418),f=n(13586),V=!f(function(){Reflect.apply(function(){})});e({target:"Reflect",stat:!0,forced:V},{apply:function(){function k(S,y,p){return a(t(S),y,o(p))}return k}()})},91370:function(I,r,n){"use strict";var e=n(3116),a=n(22070),t=n(47244),o=n(82060),f=n(48218),V=n(45418),k=n(66379),S=n(15439),y=n(13586),p=a("Reflect","construct"),l=Object.prototype,c=[].push,m=y(function(){function u(){}return!(p(function(){},[],u)instanceof u)}),i=!y(function(){p(function(){})}),d=m||i;e({target:"Reflect",stat:!0,forced:d,sham:d},{construct:function(){function u(s,N){f(s),V(N);var g=arguments.length<3?s:f(arguments[2]);if(i&&!m)return p(s,N,g);if(s===g){switch(N.length){case 0:return new s;case 1:return new s(N[0]);case 2:return new s(N[0],N[1]);case 3:return new s(N[0],N[1],N[2]);case 4:return new s(N[0],N[1],N[2],N[3])}var v=[null];return t(c,v,N),new(t(o,s,v))}var h=g.prototype,C=S(k(h)?h:l),b=t(s,C,N);return k(b)?b:C}return u}()})},17327:function(I,r,n){"use strict";var e=n(3116),a=n(16361),t=n(45418),o=n(72445),f=n(8165),V=n(13586),k=V(function(){Reflect.defineProperty(f.f({},1,{value:1}),1,{value:2})});e({target:"Reflect",stat:!0,forced:k,sham:!a},{defineProperty:function(){function S(y,p,l){t(y);var c=o(p);t(l);try{return f.f(y,c,l),!0}catch(m){return!1}}return S}()})},2679:function(I,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,V){var k=t(a(f),V);return k&&!k.configurable?!1:delete f[V]}return o}()})},27262:function(I,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(V,k){return o.f(t(V),k)}return f}()})},47278:function(I,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(V){return t(a(V))}return f}()})},60733:function(I,r,n){"use strict";var e=n(3116),a=n(20276),t=n(66379),o=n(45418),f=n(75129),V=n(19765),k=n(56379);function S(y,p){var l=arguments.length<3?y:arguments[2],c,m;if(o(y)===l)return y[p];if(c=V.f(y,p),c)return f(c)?c.value:c.get===void 0?void 0:a(c.get,l);if(t(m=k(y)))return S(m,p,l)}e({target:"Reflect",stat:!0},{get:S})},22547:function(I,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(I,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(I,r,n){"use strict";var e=n(3116),a=n(53988);e({target:"Reflect",stat:!0},{ownKeys:a})},71255:function(I,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(V){t(V);try{var k=a("Object","preventExtensions");return k&&k(V),!0}catch(S){return!1}}return f}()})},65558:function(I,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(V,k){a(V),t(k);try{return o(V,k),!0}catch(S){return!1}}return f}()})},97836:function(I,r,n){"use strict";var e=n(3116),a=n(20276),t=n(45418),o=n(66379),f=n(75129),V=n(13586),k=n(8165),S=n(19765),y=n(56379),p=n(73970);function l(m,i,d){var u=arguments.length<4?m:arguments[3],s=S.f(t(m),i),N,g,v;if(!s){if(o(g=y(m)))return l(g,i,d,u);s=p(0)}if(f(s)){if(s.writable===!1||!o(u))return!1;if(N=S.f(u,i)){if(N.get||N.set||N.writable===!1)return!1;N.value=d,k.f(u,i,N)}else k.f(u,i,p(0,d))}else{if(v=s.set,v===void 0)return!1;a(v,u,d)}return!0}var c=V(function(){var m=function(){},i=k.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(I,r,n){"use strict";var e=n(16361),a=n(26856),t=n(72908),o=n(23620),f=n(43405),V=n(21650),k=n(15439),S=n(60097).f,y=n(54341),p=n(28774),l=n(8758),c=n(13980),m=n(96472),i=n(69713),d=n(60855),u=n(13586),s=n(3302),N=n(4471).enforce,g=n(92468),v=n(95558),h=n(18095),C=n(17329),b=v("match"),B=a.RegExp,L=B.prototype,w=a.SyntaxError,T=t(L.exec),A=t("".charAt),x=t("".replace),E=t("".indexOf),M=t("".slice),R=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,O=/a/g,D=/a/g,j=new B(O)!==O,U=m.MISSED_STICKY,W=m.UNSUPPORTED_Y,K=e&&(!j||U||h||C||u(function(){return D[b]=!1,B(O)!==O||B(D)===D||String(B(O,"i"))!=="/a/i"})),G=function(re){for(var de=re.length,ve=0,ye="",Le=!1,pe;ve<=de;ve++){if(pe=A(re,ve),pe==="\\"){ye+=pe+A(re,++ve);continue}!Le&&pe==="."?ye+="[\\s\\S]":(pe==="["?Le=!0:pe==="]"&&(Le=!1),ye+=pe)}return ye},$=function(re){for(var de=re.length,ve=0,ye="",Le=[],pe=k(null),ne=!1,ae=!1,q=0,se="",me;ve<=de;ve++){if(me=A(re,ve),me==="\\")me+=A(re,++ve);else if(me==="]")ne=!1;else if(!ne)switch(!0){case me==="[":ne=!0;break;case me==="(":T(R,M(re,ve+1))&&(ve+=2,ae=!0),ye+=me,q++;continue;case(me===">"&&ae):if(se===""||s(pe,se))throw new w("Invalid capture group name");pe[se]=!0,Le[Le.length]=[se,q],ae=!1,se="";continue}ae?se+=me:ye+=me}return[ye,Le]};if(o("RegExp",K)){for(var z=function(){function ie(re,de){var ve=y(L,this),ye=p(re),Le=de===void 0,pe=[],ne=re,ae,q,se,me,te,be;if(!ve&&ye&&Le&&re.constructor===z)return re;if((ye||y(L,re))&&(re=re.source,Le&&(de=c(ne))),re=re===void 0?"":l(re),de=de===void 0?"":l(de),ne=re,h&&"dotAll"in O&&(q=!!de&&E(de,"s")>-1,q&&(de=x(de,/s/g,""))),ae=de,U&&"sticky"in O&&(se=!!de&&E(de,"y")>-1,se&&W&&(de=x(de,/y/g,""))),C&&(me=$(re),re=me[0],pe=me[1]),te=f(B(re,de),ve?this:L,z),(q||se||pe.length)&&(be=N(te),q&&(be.dotAll=!0,be.raw=z(G(re),ae)),se&&(be.sticky=!0),pe.length&&(be.groups=pe)),re!==ne)try{V(te,"source",ne===""?"(?:)":ne)}catch(fe){}return te}return ie}(),Y=S(B),J=0;Y.length>J;)i(z,B,Y[J++]);L.constructor=z,z.prototype=L,d(a,"RegExp",z,{constructor:!0})}g("RegExp")},72941:function(I,r,n){"use strict";var e=n(3116),a=n(59049);e({target:"RegExp",proto:!0,forced:/./.exec!==a},{exec:a})},57918:function(I,r,n){"use strict";var e=n(26856),a=n(16361),t=n(57301),o=n(41913),f=n(13586),V=e.RegExp,k=V.prototype,S=a&&f(function(){var y=!0;try{V(".","d")}catch(s){y=!1}var p={},l="",c=y?"dgimsy":"gimsy",m=function(N,g){Object.defineProperty(p,N,{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(k,"flags").get.call(p);return u!==c||l!==c});S&&t(k,"flags",{configurable:!0,get:o})},2394:function(I,r,n){"use strict";var e=n(15340).PROPER,a=n(60855),t=n(45418),o=n(8758),f=n(13586),V=n(13980),k="toString",S=RegExp.prototype,y=S[k],p=f(function(){return y.call({source:"a",flags:"b"})!=="/a/b"}),l=e&&y.name!==k;(p||l)&&a(S,k,function(){function c(){var m=t(this),i=o(m.source),d=o(V(m));return"/"+i+"/"+d}return c}(),{unsafe:!0})},98480:function(I,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(I,r,n){"use strict";n(98480)},25492:function(I,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(I,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(I,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(I,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(I,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(I,r,n){"use strict";var e=n(3116),a=n(69935),t=n(19765).f,o=n(74369),f=n(8758),V=n(75816),k=n(305),S=n(46339),y=n(90139),p=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(k(this));V(d);var s=arguments.length>1?arguments[1]:void 0,N=u.length,g=s===void 0?N:l(o(s),N),v=f(d);return p(u,g-v.length,g)===v}return i}()})},30733:function(I,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(I,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(I,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(I,r,n){"use strict";var e=n(3116),a=n(72908),t=n(39531),o=RangeError,f=String.fromCharCode,V=String.fromCodePoint,k=a([].join),S=!!V&&V.length!==1;e({target:"String",stat:!0,arity:1,forced:S},{fromCodePoint:function(){function y(p){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 k(l,"")}return y}()})},16792:function(I,r,n){"use strict";var e=n(3116),a=n(72908),t=n(75816),o=n(305),f=n(8758),V=n(46339),k=a("".indexOf);e({target:"String",proto:!0,forced:!V("includes")},{includes:function(){function S(y){return!!~k(f(o(this)),f(t(y)),arguments.length>1?arguments[1]:void 0)}return S}()})},36865:function(I,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(I,r,n){"use strict";var e=n(13300).charAt,a=n(8758),t=n(4471),o=n(21436),f=n(32214),V="String Iterator",k=t.set,S=t.getterFor(V);o(String,"String",function(y){k(this,{type:V,string:a(y),index:0})},function(){function y(){var p=S(this),l=p.string,c=p.index,m;return c>=l.length?f(void 0,!0):(m=e(l,c),p.index+=m.length,f(m,!1))}return y}())},13763:function(I,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(I,r,n){"use strict";var e=n(20276),a=n(18690),t=n(45418),o=n(62695),f=n(74369),V=n(8758),k=n(305),S=n(76540),y=n(47158),p=n(59833);a("match",function(l,c,m){return[function(){function i(d){var u=k(this),s=o(d)?void 0:S(d,l);return s?e(s,d,u):new RegExp(d)[l](V(u))}return i}(),function(i){var d=t(this),u=V(i),s=m(c,d,u);if(s.done)return s.value;if(!d.global)return p(d,u);var N=d.unicode;d.lastIndex=0;for(var g=[],v=0,h;(h=p(d,u))!==null;){var C=V(h[0]);g[v]=C,C===""&&(d.lastIndex=y(u,f(d.lastIndex),N)),v++}return v===0?null:g}]})},57318:function(I,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(I,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(I,r,n){"use strict";var e=n(3116),a=n(72908),t=n(54292),o=n(63549),f=n(8758),V=n(83207),k=a([].push),S=a([].join);e({target:"String",stat:!0},{raw:function(){function y(p){var l=t(o(p).raw),c=V(l);if(!c)return"";for(var m=arguments.length,i=[],d=0;;){if(k(i,f(l[d++])),d===c)return S(i,"");d")!=="7"});o("replace",function(x,E,M){var R=T?"$":"$0";return[function(){function O(D,j){var U=c(this),W=S(D)?void 0:i(D,N);return W?a(W,D,U,j):a(E,l(U),D,j)}return O}(),function(O,D){var j=V(this),U=l(O);if(typeof D=="string"&&b(D,R)===-1&&b(D,"$<")===-1){var W=M(E,j,U,D);if(W.done)return W.value}var K=k(D);K||(D=l(D));var G=j.global,$;G&&($=j.unicode,j.lastIndex=0);for(var z=[],Y;Y=u(j,U),!(Y===null||(C(z,Y),!G));){var J=l(Y[0]);J===""&&(j.lastIndex=m(U,p(j.lastIndex),$))}for(var ie="",re=0,de=0;de=re&&(ie+=B(U,re,ye)+pe,re=ye+ve.length)}return ie+B(U,re)}]},!A||!w||T)},60981:function(I,r,n){"use strict";var e=n(20276),a=n(18690),t=n(45418),o=n(62695),f=n(305),V=n(91935),k=n(8758),S=n(76540),y=n(59833);a("search",function(p,l,c){return[function(){function m(i){var d=f(this),u=o(i)?void 0:S(i,p);return u?e(u,i,d):new RegExp(i)[p](k(d))}return m}(),function(m){var i=t(this),d=k(m),u=c(l,i,d);if(u.done)return u.value;var s=i.lastIndex;V(s,0)||(i.lastIndex=0);var N=y(i,d);return V(i.lastIndex,s)||(i.lastIndex=s),N===null?-1:N.index}]})},56001:function(I,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(I,r,n){"use strict";var e=n(47244),a=n(20276),t=n(72908),o=n(18690),f=n(45418),V=n(62695),k=n(28774),S=n(305),y=n(83604),p=n(47158),l=n(74369),c=n(8758),m=n(76540),i=n(31170),d=n(59833),u=n(59049),s=n(96472),N=n(13586),g=s.UNSUPPORTED_Y,v=4294967295,h=Math.min,C=[].push,b=t(/./.exec),B=t(C),L=t("".slice),w=!N(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,O){var D=c(S(this)),j=O===void 0?v:O>>>0;if(j===0)return[];if(R===void 0)return[D];if(!k(R))return a(A,D,R,j);for(var U=[],W=(R.ignoreCase?"i":"")+(R.multiline?"m":"")+(R.unicode?"u":"")+(R.sticky?"y":""),K=0,G=new RegExp(R.source,W+"g"),$,z,Y;($=a(u,G,D))&&(z=G.lastIndex,!(z>K&&(B(U,L(D,K,$.index)),$.length>1&&$.index=j)));)G.lastIndex===$.index&&G.lastIndex++;return K===D.length?(Y||!b(G,""))&&B(U,""):B(U,L(D,K)),U.length>j?i(U,0,j):U}:"0".split(void 0,0).length?E=function(R,O){return R===void 0&&O===0?[]:a(A,this,R,O)}:E=A,[function(){function M(R,O){var D=S(this),j=V(R)?void 0:m(R,T);return j?a(j,R,D,O):a(E,c(D),R,O)}return M}(),function(M,R){var O=f(this),D=c(M),j=x(E,O,D,R,E!==A);if(j.done)return j.value;var U=y(O,RegExp),W=O.unicode,K=(O.ignoreCase?"i":"")+(O.multiline?"m":"")+(O.unicode?"u":"")+(g?"g":"y"),G=new U(g?"^(?:"+O.source+")":O,K),$=R===void 0?v:R>>>0;if($===0)return[];if(D.length===0)return d(G,D)===null?[D]:[];for(var z=0,Y=0,J=[];Y1?arguments[1]:void 0,u.length)),N=f(d);return p(u,s,s+N.length)===N}return i}()})},58713:function(I,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(I,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(I,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(I,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(I,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(I,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(I,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(I,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(I,r,n){"use strict";var e=n(20614);e("asyncIterator")},28579:function(I,r,n){"use strict";var e=n(3116),a=n(26856),t=n(20276),o=n(72908),f=n(90139),V=n(16361),k=n(61855),S=n(13586),y=n(3302),p=n(54341),l=n(45418),c=n(54292),m=n(72445),i=n(8758),d=n(73970),u=n(15439),s=n(99869),N=n(60097),g=n(31024),v=n(61791),h=n(19765),C=n(8165),b=n(55119),B=n(10409),L=n(60855),w=n(57301),T=n(7624),A=n(97223),x=n(51653),E=n(76246),M=n(95558),R=n(15355),O=n(20614),D=n(28952),j=n(15676),U=n(4471),W=n(18539).forEach,K=A("hidden"),G="Symbol",$="prototype",z=U.set,Y=U.getterFor(G),J=Object[$],ie=a.Symbol,re=ie&&ie[$],de=a.RangeError,ve=a.TypeError,ye=a.QObject,Le=h.f,pe=C.f,ne=g.f,ae=B.f,q=o([].push),se=T("symbols"),me=T("op-symbols"),te=T("wks"),be=!ye||!ye[$]||!ye[$].findChild,fe=function(le,he,ue){var Ne=Le(J,he);Ne&&delete J[he],pe(le,he,ue),Ne&&le!==J&&pe(J,he,Ne)},ge=V&&S(function(){return u(pe({},"a",{get:function(){function oe(){return pe(this,"a",{value:7}).a}return oe}()})).a!==7})?fe:pe,ke=function(le,he){var ue=se[le]=u(re);return z(ue,{type:G,tag:le,description:he}),V||(ue.description=he),ue},Ce=function(){function oe(le,he,ue){le===J&&Ce(me,he,ue),l(le);var Ne=m(he);return l(ue),y(se,Ne)?(ue.enumerable?(y(le,K)&&le[K][Ne]&&(le[K][Ne]=!1),ue=u(ue,{enumerable:d(0,!1)})):(y(le,K)||pe(le,K,d(1,u(null))),le[K][Ne]=!0),ge(le,Ne,ue)):pe(le,Ne,ue)}return oe}(),Se=function(){function oe(le,he){l(le);var ue=c(he),Ne=s(ue).concat(Ve(ue));return W(Ne,function(Ae){(!V||t(xe,ue,Ae))&&Ce(le,Ae,ue[Ae])}),le}return oe}(),we=function(){function oe(le,he){return he===void 0?u(le):Se(u(le),he)}return oe}(),xe=function(){function oe(le){var he=m(le),ue=t(ae,this,he);return this===J&&y(se,he)&&!y(me,he)?!1:ue||!y(this,he)||!y(se,he)||y(this,K)&&this[K][he]?ue:!0}return oe}(),Pe=function(){function oe(le,he){var ue=c(le),Ne=m(he);if(!(ue===J&&y(se,Ne)&&!y(me,Ne))){var Ae=Le(ue,Ne);return Ae&&y(se,Ne)&&!(y(ue,K)&&ue[K][Ne])&&(Ae.enumerable=!0),Ae}}return oe}(),Ue=function(){function oe(le){var he=ne(c(le)),ue=[];return W(he,function(Ne){!y(se,Ne)&&!y(x,Ne)&&q(ue,Ne)}),ue}return oe}(),Ve=function(le){var he=le===J,ue=ne(he?me:c(le)),Ne=[];return W(ue,function(Ae){y(se,Ae)&&(!he||y(J,Ae))&&q(Ne,se[Ae])}),Ne};k||(ie=function(){function oe(){if(p(re,this))throw new ve("Symbol is not a constructor");var le=!arguments.length||arguments[0]===void 0?void 0:i(arguments[0]),he=E(le),ue=function(){function Ne(Ae){var De=this===void 0?a:this;De===J&&t(Ne,me,Ae),y(De,K)&&y(De[K],he)&&(De[K][he]=!1);var je=d(1,Ae);try{ge(De,he,je)}catch(Ke){if(!(Ke instanceof de))throw Ke;fe(De,he,je)}}return Ne}();return V&&be&&ge(J,he,{configurable:!0,set:ue}),ke(he,le)}return oe}(),re=ie[$],L(re,"toString",function(){function oe(){return Y(this).tag}return oe}()),L(ie,"withoutSetter",function(oe){return ke(E(oe),oe)}),B.f=xe,C.f=Ce,b.f=Se,h.f=Pe,N.f=g.f=Ue,v.f=Ve,R.f=function(oe){return ke(M(oe),oe)},V&&(w(re,"description",{configurable:!0,get:function(){function oe(){return Y(this).description}return oe}()}),f||L(J,"propertyIsEnumerable",xe,{unsafe:!0}))),e({global:!0,constructor:!0,wrap:!0,forced:!k,sham:!k},{Symbol:ie}),W(s(te),function(oe){O(oe)}),e({target:G,stat:!0,forced:!k},{useSetter:function(){function oe(){be=!0}return oe}(),useSimple:function(){function oe(){be=!1}return oe}()}),e({target:"Object",stat:!0,forced:!k,sham:!V},{create:we,defineProperty:Ce,defineProperties:Se,getOwnPropertyDescriptor:Pe}),e({target:"Object",stat:!0,forced:!k},{getOwnPropertyNames:Ue}),D(),j(ie,G),x[K]=!0},64777:function(I,r,n){"use strict";var e=n(3116),a=n(16361),t=n(26856),o=n(72908),f=n(3302),V=n(53664),k=n(54341),S=n(8758),y=n(57301),p=n(83826),l=t.Symbol,c=l&&l.prototype;if(a&&V(l)&&(!("description"in c)||l().description!==void 0)){var m={},i=function(){function h(){var C=arguments.length<1||arguments[0]===void 0?void 0:S(arguments[0]),b=k(c,this)?new l(C):C===void 0?l():l(C);return C===""&&(m[b]=!0),b}return h}();p(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),N=/^Symbol\((.*)\)[^)]+$/,g=o("".replace),v=o("".slice);y(c,"description",{configurable:!0,get:function(){function h(){var C=u(this);if(f(m,C))return"";var b=s(C),B=d?v(b,7,-1):g(b,N,"$1");return B===""?void 0:B}return h}()}),e({global:!0,constructor:!0,forced:!0},{Symbol:i})}},99694:function(I,r,n){"use strict";var e=n(3116),a=n(22070),t=n(3302),o=n(8758),f=n(7624),V=n(16010),k=f("string-to-symbol-registry"),S=f("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!V},{for:function(){function y(p){var l=o(p);if(t(k,l))return k[l];var c=a("Symbol")(l);return k[l]=c,S[c]=l,c}return y}()})},56564:function(I,r,n){"use strict";var e=n(20614);e("hasInstance")},68981:function(I,r,n){"use strict";var e=n(20614);e("isConcatSpreadable")},27699:function(I,r,n){"use strict";var e=n(20614);e("iterator")},32321:function(I,r,n){"use strict";n(28579),n(99694),n(16184),n(34233),n(56896)},16184:function(I,r,n){"use strict";var e=n(3116),a=n(3302),t=n(43474),o=n(36787),f=n(7624),V=n(16010),k=f("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!V},{keyFor:function(){function S(y){if(!t(y))throw new TypeError(o(y)+" is not a symbol");if(a(k,y))return k[y]}return S}()})},22905:function(I,r,n){"use strict";var e=n(20614);e("match")},96311:function(I,r,n){"use strict";var e=n(20614);e("replace")},61292:function(I,r,n){"use strict";var e=n(20614);e("search")},75419:function(I,r,n){"use strict";var e=n(20614);e("species")},67638:function(I,r,n){"use strict";var e=n(20614);e("split")},7601:function(I,r,n){"use strict";var e=n(20614),a=n(28952);e("toPrimitive"),a()},89010:function(I,r,n){"use strict";var e=n(22070),a=n(20614),t=n(15676);a("toStringTag"),t(e("Symbol"),"Symbol")},5401:function(I,r,n){"use strict";var e=n(20614);e("unscopables")},76464:function(I,r,n){"use strict";var e=n(72908),a=n(30432),t=n(28332),o=e(t),f=a.aTypedArray,V=a.exportTypedArrayMethod;V("copyWithin",function(){function k(S,y){return o(f(this),S,y,arguments.length>2?arguments[2]:void 0)}return k}())},58549:function(I,r,n){"use strict";var e=n(30432),a=n(18539).every,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("every",function(){function f(V){return a(t(this),V,arguments.length>1?arguments[1]:void 0)}return f}())},42774:function(I,r,n){"use strict";var e=n(30432),a=n(39948),t=n(73873),o=n(48615),f=n(20276),V=n(72908),k=n(13586),S=e.aTypedArray,y=e.exportTypedArrayMethod,p=V("".slice),l=k(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=p(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(I,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 V(k){var S=a(o(this),k,arguments.length>1?arguments[1]:void 0);return t(this,S)}return V}())},62243:function(I,r,n){"use strict";var e=n(30432),a=n(18539).findIndex,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("findIndex",function(){function f(V){return a(t(this),V,arguments.length>1?arguments[1]:void 0)}return f}())},21066:function(I,r,n){"use strict";var e=n(30432),a=n(18539).find,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("find",function(){function f(V){return a(t(this),V,arguments.length>1?arguments[1]:void 0)}return f}())},43059:function(I,r,n){"use strict";var e=n(43186);e("Float32",function(a){return function(){function t(o,f,V){return a(this,o,f,V)}return t}()})},97363:function(I,r,n){"use strict";var e=n(43186);e("Float64",function(a){return function(){function t(o,f,V){return a(this,o,f,V)}return t}()})},35249:function(I,r,n){"use strict";var e=n(30432),a=n(18539).forEach,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("forEach",function(){function f(V){a(t(this),V,arguments.length>1?arguments[1]:void 0)}return f}())},68739:function(I,r,n){"use strict";var e=n(45410),a=n(30432).exportTypedArrayStaticMethod,t=n(12778);a("from",t,e)},5723:function(I,r,n){"use strict";var e=n(30432),a=n(33483).includes,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("includes",function(){function f(V){return a(t(this),V,arguments.length>1?arguments[1]:void 0)}return f}())},40353:function(I,r,n){"use strict";var e=n(30432),a=n(33483).indexOf,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("indexOf",function(){function f(V){return a(t(this),V,arguments.length>1?arguments[1]:void 0)}return f}())},33278:function(I,r,n){"use strict";var e=n(43186);e("Int16",function(a){return function(){function t(o,f,V){return a(this,o,f,V)}return t}()})},65331:function(I,r,n){"use strict";var e=n(43186);e("Int32",function(a){return function(){function t(o,f,V){return a(this,o,f,V)}return t}()})},99755:function(I,r,n){"use strict";var e=n(43186);e("Int8",function(a){return function(){function t(o,f,V){return a(this,o,f,V)}return t}()})},87975:function(I,r,n){"use strict";var e=n(26856),a=n(13586),t=n(72908),o=n(30432),f=n(26017),V=n(95558),k=V("iterator"),S=e.Uint8Array,y=t(f.values),p=t(f.keys),l=t(f.entries),c=o.aTypedArray,m=o.exportTypedArrayMethod,i=S&&S.prototype,d=!a(function(){i[k].call([1])}),u=!!i&&i.values&&i[k]===i.values&&i.values.name==="values",s=function(){function N(){return y(c(this))}return N}();m("entries",function(){function N(){return l(c(this))}return N}(),d),m("keys",function(){function N(){return p(c(this))}return N}(),d),m("values",s,d||!u,{name:"values"}),m(k,s,d||!u,{name:"values"})},20812:function(I,r,n){"use strict";var e=n(30432),a=n(72908),t=e.aTypedArray,o=e.exportTypedArrayMethod,f=a([].join);o("join",function(){function V(k){return f(t(this),k)}return V}())},5640:function(I,r,n){"use strict";var e=n(30432),a=n(47244),t=n(16400),o=e.aTypedArray,f=e.exportTypedArrayMethod;f("lastIndexOf",function(){function V(k){var S=arguments.length;return a(t,o(this),S>1?[k,arguments[1]]:[k])}return V}())},47736:function(I,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 V(k){return a(o(this),k,arguments.length>1?arguments[1]:void 0,function(S,y){return new(t(S))(y)})}return V}())},81944:function(I,r,n){"use strict";var e=n(30432),a=n(45410),t=e.aTypedArrayConstructor,o=e.exportTypedArrayStaticMethod;o("of",function(){function f(){for(var V=0,k=arguments.length,S=new(t(this))(k);k>V;)S[V]=arguments[V++];return S}return f}(),a)},72214:function(I,r,n){"use strict";var e=n(30432),a=n(58394).right,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("reduceRight",function(){function f(V){var k=arguments.length;return a(t(this),V,k,k>1?arguments[1]:void 0)}return f}())},68685:function(I,r,n){"use strict";var e=n(30432),a=n(58394).left,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("reduce",function(){function f(V){var k=arguments.length;return a(t(this),V,k,k>1?arguments[1]:void 0)}return f}())},48774:function(I,r,n){"use strict";var e=n(30432),a=e.aTypedArray,t=e.exportTypedArrayMethod,o=Math.floor;t("reverse",function(){function f(){for(var V=this,k=a(V).length,S=o(k/2),y=0,p;y1?arguments[1]:void 0,1),g=V(s);if(i)return a(l,this,g,N);var v=this.length,h=o(g),C=0;if(h+N>v)throw new S("Wrong length");for(;Cm;)d[m]=l[m++];return d}return S}(),k)},10702:function(I,r,n){"use strict";var e=n(30432),a=n(18539).some,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("some",function(){function f(V){return a(t(this),V,arguments.length>1?arguments[1]:void 0)}return f}())},76622:function(I,r,n){"use strict";var e=n(26856),a=n(69935),t=n(13586),o=n(79474),f=n(91183),V=n(30432),k=n(31574),S=n(88836),y=n(43541),p=n(27204),l=V.aTypedArray,c=V.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(k)return k<67;if(S)return!0;if(p)return p<602;var N=new m(516),g=Array(516),v,h;for(v=0;v<516;v++)h=v%4,N[v]=515-v,g[v]=v-2*h+3;for(i(N,function(C,b){return(C/4|0)-(b/4|0)}),v=0;v<516;v++)if(N[v]!==g[v])return!0}),s=function(g){return function(v,h){return g!==void 0?+g(v,h)||0:h!==h?-1:v!==v?1:v===0&&h===0?1/v>0&&1/h<0?1:-1:v>h}};c("sort",function(){function N(g){return g!==void 0&&o(g),u?i(this,g):f(l(this),s(g))}return N}(),!u||d)},64408:function(I,r,n){"use strict";var e=n(30432),a=n(74369),t=n(39531),o=n(9230),f=e.aTypedArray,V=e.exportTypedArrayMethod;V("subarray",function(){function k(S,y){var p=f(this),l=p.length,c=t(S,l),m=o(p);return new m(p.buffer,p.byteOffset+c*p.BYTES_PER_ELEMENT,a((y===void 0?l:t(y,l))-c))}return k}())},22306:function(I,r,n){"use strict";var e=n(26856),a=n(47244),t=n(30432),o=n(13586),f=n(31170),V=e.Int8Array,k=t.aTypedArray,S=t.exportTypedArrayMethod,y=[].toLocaleString,p=!!V&&o(function(){y.call(new V(1))}),l=o(function(){return[1,2].toLocaleString()!==new V([1,2]).toLocaleString()})||!o(function(){V.prototype.toLocaleString.call([1,2])});S("toLocaleString",function(){function c(){return a(y,p?f(k(this)):k(this),f(arguments))}return c}(),l)},90334:function(I,r,n){"use strict";var e=n(30432).exportTypedArrayMethod,a=n(13586),t=n(26856),o=n(72908),f=t.Uint8Array,V=f&&f.prototype||{},k=[].toString,S=o([].join);a(function(){k.call({})})&&(k=function(){function p(){return S(this)}return p}());var y=V.toString!==k;e("toString",k,y)},70088:function(I,r,n){"use strict";var e=n(43186);e("Uint16",function(a){return function(){function t(o,f,V){return a(this,o,f,V)}return t}()})},7284:function(I,r,n){"use strict";var e=n(43186);e("Uint32",function(a){return function(){function t(o,f,V){return a(this,o,f,V)}return t}()})},25855:function(I,r,n){"use strict";var e=n(43186);e("Uint8",function(a){return function(){function t(o,f,V){return a(this,o,f,V)}return t}()})},97372:function(I,r,n){"use strict";var e=n(43186);e("Uint8",function(a){return function(){function t(o,f,V){return a(this,o,f,V)}return t}()},!0)},84937:function(I,r,n){"use strict";var e=n(58199),a=n(26856),t=n(72908),o=n(26148),f=n(66526),V=n(10609),k=n(19250),S=n(66379),y=n(4471).enforce,p=n(13586),l=n(73844),c=Object,m=Array.isArray,i=c.isExtensible,d=c.isFrozen,u=c.isSealed,s=c.freeze,N=c.seal,g=!a.ActiveXObject&&"ActiveXObject"in a,v,h=function(E){return function(){function M(){return E(this,arguments.length?arguments[0]:void 0)}return M}()},C=V("WeakMap",h,k),b=C.prototype,B=t(b.set),L=function(){return e&&p(function(){var E=s([]);return B(new C,E,1),!d(E)})};if(l)if(g){v=k.getConstructor(h,"WeakMap",!0),f.enable();var w=t(b.delete),T=t(b.has),A=t(b.get);o(b,{delete:function(){function x(E){if(S(E)&&!i(E)){var M=y(this);return M.frozen||(M.frozen=new v),w(this,E)||M.frozen.delete(E)}return w(this,E)}return x}(),has:function(){function x(E){if(S(E)&&!i(E)){var M=y(this);return M.frozen||(M.frozen=new v),T(this,E)||M.frozen.has(E)}return T(this,E)}return x}(),get:function(){function x(E){if(S(E)&&!i(E)){var M=y(this);return M.frozen||(M.frozen=new v),T(this,E)?A(this,E):M.frozen.get(E)}return A(this,E)}return x}(),set:function(){function x(E,M){if(S(E)&&!i(E)){var R=y(this);R.frozen||(R.frozen=new v),T(this,E)?B(this,E,M):R.frozen.set(E,M)}else B(this,E,M);return this}return x}()})}else L()&&o(b,{set:function(){function x(E,M){var R;return m(E)&&(d(E)?R=s:u(E)&&(R=N)),B(this,E,M),R&&R(E),this}return x}()})},69880:function(I,r,n){"use strict";n(84937)},74764:function(I,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(I,r,n){"use strict";n(74764)},82818:function(I,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(I,r,n){"use strict";n(82818),n(21813)},367:function(I,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(V){o(arguments.length,1),a(t(V))}return f}()})},21813:function(I,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(I,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(I,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(I,r,n){"use strict";n(50943),n(91851)},87454:function(I){"use strict";/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */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 p=[],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(p.includes(u))return"[circular ref]";p.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 p=null,m},f=function(y){if(0)var p,l,c},N=function(y,p){if(0)var l,c,m},k=function(){};I.exports={subscribe:t,sendMessage:f,sendLogEntry:N,setupHotReloading:k}}},bt={};function X(I){var r=bt[I];if(r!==void 0)return r.exports;var n=bt[I]={exports:{}};return Gt[I](n,n.exports,X),n.exports}(function(){X.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(I){if(typeof window=="object")return window}}()})(),function(){X.o=function(I,r){return Object.prototype.hasOwnProperty.call(I,r)}}();var Ln={};(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 I=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 p=[],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(p.includes(u))return"[circular ref]";p.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 p=null,m},f=function(y){if(0)var p,l,c},V=function(y,p){if(0)var l,c,m},k=function(){};I.exports={subscribe:t,sendMessage:f,sendLogEntry:V,setupHotReloading:k}}},bt={};function X(I){var r=bt[I];if(r!==void 0)return r.exports;var n=bt[I]={exports:{}};return Gt[I](n,n.exports,X),n.exports}(function(){X.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(I){if(typeof window=="object")return window}}()})(),function(){X.o=function(I,r){return Object.prototype.hasOwnProperty.call(I,r)}}();var Ln={};(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 I=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),V;/** * @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 k=(0,o.configureStore)(),S=(0,t.createRenderer)(function(){var p=X(76521),l=p.getRoutedComponent,c=l(k);return(0,I.createComponentVNode)(2,o.StoreProvider,{store:k,children:(0,I.createComponentVNode)(2,c)})}),y=function p(){if(document.readyState==="loading"){document.addEventListener("DOMContentLoaded",p);return}(0,f.setupGlobalEvents)(),(0,e.setupHotKeys)(),(0,a.captureExternalLinks)(),k.subscribe(S),Byond.subscribe(function(l,c){return k.dispatch({type:l,payload:c})})};y()}()})();})(); + */r.perf.mark("inception",(V=window.performance)==null||(V=V.timing)==null?void 0:V.navigationStart),r.perf.mark("init");var k=(0,o.configureStore)(),S=(0,t.createRenderer)(function(){var p=X(76521),l=p.getRoutedComponent,c=l(k);return(0,I.createComponentVNode)(2,o.StoreProvider,{store:k,children:(0,I.createComponentVNode)(2,c)})}),y=function p(){if(document.readyState==="loading"){document.addEventListener("DOMContentLoaded",p);return}(0,f.setupGlobalEvents)(),(0,e.setupHotKeys)(),(0,a.captureExternalLinks)(),k.subscribe(S),Byond.subscribe(function(l,c){return k.dispatch({type:l,payload:c})})};y()}()})();})(); From 25996e232ab15e275fa89ed44ae518d3e586b5a2 Mon Sep 17 00:00:00 2001 From: HMBGERDO <61080616+HMBGERDO@users.noreply.github.com> Date: Fri, 1 Mar 2024 20:56:03 +0100 Subject: [PATCH 02/23] Pepper Spray update (#24033) * pepper spray update * Update code/datums/status_effects/debuffs.dm Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com> * Update code/modules/reagents/chemistry/reagents/food_reagents.dm Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com> * Update code/modules/reagents/chemistry/reagents/food_reagents.dm Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com> * Update code/modules/reagents/chemistry/reagents/food_reagents.dm * Rurik review --------- Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com> --- code/__DEFINES/status_effects.dm | 1 + code/datums/status_effects/debuffs.dm | 20 +++++++ .../chemistry/reagents/food_reagents.dm | 52 ++++++------------- 3 files changed, 37 insertions(+), 36 deletions(-) diff --git a/code/__DEFINES/status_effects.dm b/code/__DEFINES/status_effects.dm index d5d3a6f26463..4f185e0f70a4 100644 --- a/code/__DEFINES/status_effects.dm +++ b/code/__DEFINES/status_effects.dm @@ -112,6 +112,7 @@ #define STATUS_EFFECT_MAGIC_DISGUISE /datum/status_effect/magic_disguise +#define STATUS_EFFECT_PEPPERSPRAYED /datum/status_effect/pepper_spray //#define STATUS_EFFECT_NECROPOLIS_CURSE /datum/status_effect/necropolis_curse //#define CURSE_BLINDING 1 //makes the edges of the target's screen obscured diff --git a/code/datums/status_effects/debuffs.dm b/code/datums/status_effects/debuffs.dm index 2a2b60997626..add7fffaa657 100644 --- a/code/datums/status_effects/debuffs.dm +++ b/code/datums/status_effects/debuffs.dm @@ -382,6 +382,26 @@ /datum/status_effect/transient/drowsiness/calc_decay() return (-0.2 + (IS_HORIZONTAL(owner) ? -0.8 : 0)) SECONDS +/datum/status_effect/pepper_spray + id = "pepperspray" + duration = 10 SECONDS + status_type = STATUS_EFFECT_REFRESH + tick_interval = -1 + alert_type = null + +/datum/status_effect/pepper_spray/on_apply() + . = ..() + to_chat(owner, "Your throat burns!") + owner.AdjustConfused(12 SECONDS) + owner.Slowed(4 SECONDS) + owner.apply_damage(40, STAMINA) + +/datum/status_effect/pepper_spray/refresh() + . = ..() + owner.AdjustConfused(12 SECONDS) + owner.Slowed(4 SECONDS) + owner.apply_damage(20, STAMINA) + /** * # Drukenness * diff --git a/code/modules/reagents/chemistry/reagents/food_reagents.dm b/code/modules/reagents/chemistry/reagents/food_reagents.dm index 496cbf3fdd49..fc3ed3ccd20f 100644 --- a/code/modules/reagents/chemistry/reagents/food_reagents.dm +++ b/code/modules/reagents/chemistry/reagents/food_reagents.dm @@ -219,56 +219,36 @@ if(method == REAGENT_TOUCH) if(ishuman(M)) var/mob/living/carbon/human/victim = M - var/mouth_covered = 0 - var/eyes_covered = 0 + var/mouth_covered = FALSE + var/eyes_covered = FALSE var/obj/item/safe_thing = null if(victim.wear_mask) if(victim.wear_mask.flags_cover & MASKCOVERSEYES) - eyes_covered = 1 + eyes_covered = TRUE safe_thing = victim.wear_mask if(victim.wear_mask.flags_cover & MASKCOVERSMOUTH) - mouth_covered = 1 + mouth_covered = TRUE safe_thing = victim.wear_mask if(victim.head) if(victim.head.flags_cover & MASKCOVERSEYES) - eyes_covered = 1 + eyes_covered = TRUE safe_thing = victim.head if(victim.head.flags_cover & MASKCOVERSMOUTH) - mouth_covered = 1 + mouth_covered = TRUE safe_thing = victim.head - if(victim.glasses) - eyes_covered = 1 - if(!safe_thing) - safe_thing = victim.glasses + if(eyes_covered && mouth_covered) to_chat(victim, "Your [safe_thing] protects you from the pepperspray!") return - else if(mouth_covered) // Reduced effects if partially protected - to_chat(victim, "Your [safe_thing] protect you from most of the pepperspray!") - if(prob(5)) - victim.emote("scream") - victim.EyeBlurry(6 SECONDS) - victim.EyeBlind(2 SECONDS) - victim.Confused(6 SECONDS) - victim.damageoverlaytemp = 60 - victim.Weaken(6 SECONDS) - victim.drop_item() - return - else if(eyes_covered) // Eye cover is better than mouth cover - to_chat(victim, "Your [safe_thing] protects your eyes from the pepperspray!") - victim.EyeBlurry(6 SECONDS) - victim.damageoverlaytemp = 30 - return - else // Oh dear :D - if(prob(5)) - victim.emote("scream") - to_chat(victim, "You're sprayed directly in the eyes with pepperspray!") - victim.EyeBlurry(10 SECONDS) - victim.EyeBlind(4 SECONDS) - victim.Confused(12 SECONDS) - victim.damageoverlaytemp = 75 - victim.Weaken(10 SECONDS) - victim.drop_item() + + if(!mouth_covered) + victim.apply_status_effect(STATUS_EFFECT_PEPPERSPRAYED) + + if(!eyes_covered) + to_chat(victim, "Your eyes burns!") + victim.Stun(0.5 SECONDS) + victim.EyeBlurry(20 SECONDS) + victim.EyeBlind(8 SECONDS) /datum/reagent/consumable/frostoil name = "Frost Oil" From 0667f206816f04deba1663a2b147f88892078b27 Mon Sep 17 00:00:00 2001 From: warriorstar-orion Date: Fri, 1 Mar 2024 15:05:49 -0500 Subject: [PATCH 03/23] move all EOL comments on typepath names to dmdoc (#23928) * move all EOL comments on typepath names to dmdoc * Apply suggestions from code review Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: S34N <12197162+S34NW@users.noreply.github.com> --------- Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com> Co-authored-by: S34N <12197162+S34NW@users.noreply.github.com> --- code/__HELPERS/unsorted.dm | 3 +- code/controllers/failsafe.dm | 3 +- .../datums/diseases/advance/symptoms/dizzy.dm | 3 +- code/datums/keybindings/mob_keybinds.dm | 3 +- code/datums/outfits/outfit_admin.dm | 9 +- code/datums/outfits/outfit_debug.dm | 3 +- code/datums/pipe_datums.dm | 3 +- code/datums/position_point_vector.dm | 3 +- code/datums/spells/bloodcrawl.dm | 3 +- code/datums/spells/conjure.dm | 3 +- code/datums/station_traits/postive_traits.dm | 3 +- code/datums/status_effects/debuffs.dm | 9 +- code/datums/status_effects/neutral.dm | 3 +- code/datums/uplink_items/uplink_traitor.dm | 9 +- code/game/area/areas/mining_areas.dm | 12 +- code/game/area/asteroid_areas.dm | 6 +- code/game/area/misc_areas.dm | 3 +- code/game/area/shuttle_areas.dm | 3 +- .../game/area/ss13_areas/maintenance_areas.dm | 3 +- code/game/gamemodes/cult/blood_magic.dm | 9 +- code/game/gamemodes/cult/cult_objectives.dm | 6 +- .../gamemodes/miniantags/abduction/gland.dm | 3 +- .../demons/slaughter demon/slaughter.dm | 3 +- code/game/gamemodes/objective.dm | 9 +- code/game/gamemodes/wizard/artefact.dm | 3 +- code/game/machinery/Beacon.dm | 3 +- code/game/machinery/camera/camera.dm | 3 +- .../machinery/computer/medical_records.dm | 3 +- .../computer/power_monitor_console.dm | 3 +- code/game/machinery/constructable_frame.dm | 3 +- code/game/machinery/flasher.dm | 3 +- .../game/machinery/vendors/generic_vendors.dm | 3 +- .../game/mecha/equipment/tools/other_tools.dm | 3 +- code/game/mecha/paintkits.dm | 3 +- .../effects/decals/Cleanable/alien_blood.dm | 3 +- .../effects/decals/Cleanable/humans.dm | 6 +- .../decals/Cleanable/misc_cleanables.dm | 6 +- code/game/objects/effects/landmarks.dm | 3 +- .../effects/spawners/airlock_spawner.dm | 6 +- .../game/objects/effects/spawners/lootdrop.dm | 3 +- .../effects/spawners/random_barrier.dm | 3 +- .../effects/temporary_visuals/misc_visuals.dm | 3 +- code/game/objects/items/cardboard_cutouts.dm | 3 +- code/game/objects/items/devices/flash.dm | 3 +- code/game/objects/items/devices/flashlight.dm | 3 +- .../objects/items/devices/geiger_counter.dm | 3 +- .../items/devices/painter/window_painter.dm | 3 +- .../objects/items/devices/radio/beacon.dm | 3 +- .../items/devices/radio/encryptionkey.dm | 3 +- .../objects/items/devices/radio/headset.dm | 6 +- .../objects/items/stacks/sheets/leather.dm | 3 +- .../items/stacks/sheets/sheet_types.dm | 3 +- code/game/objects/items/theft_items.dm | 3 +- code/game/objects/items/weapons/AI_modules.dm | 36 +- .../bio_chips/bio_chip_gorilla_rampage.dm | 3 +- code/game/objects/items/weapons/dice.dm | 6 +- code/game/objects/items/weapons/garrote.dm | 6 +- .../items/weapons/grenades/chem_grenade.dm | 9 +- .../objects/items/weapons/holy_weapons.dm | 9 +- code/game/objects/items/weapons/legcuffs.dm | 6 +- .../weapons/melee/energy_melee_weapons.dm | 3 +- .../objects/items/weapons/pneumaticCannon.dm | 3 +- .../objects/items/weapons/storage/backpack.dm | 3 +- .../objects/items/weapons/storage/bags.dm | 6 +- .../objects/items/weapons/storage/belt.dm | 6 +- .../objects/items/weapons/storage/boxes.dm | 3 +- .../items/weapons/storage/uplink_kits.dm | 39 ++- code/game/objects/items/weapons/twohanded.dm | 12 +- code/game/objects/structures/barsign.dm | 3 +- .../closets/secure/cargo_lockers.dm | 3 +- .../crates_lockers/closets/statue.dm | 3 +- code/game/objects/structures/fluff.dm | 15 +- code/game/objects/structures/grille.dm | 3 +- code/game/objects/structures/inflatable.dm | 3 +- code/game/objects/structures/plasticflaps.dm | 3 +- code/game/objects/structures/railings.dm | 6 +- code/game/objects/structures/statues.dm | 3 +- .../structures/stool_bed_chair_nest/chairs.dm | 3 +- code/game/objects/structures/tables_racks.dm | 3 +- code/game/objects/structures/watercloset.dm | 3 +- .../turfs/simulated/floor/asteroid_floors.dm | 9 +- .../game/turfs/simulated/floor/fancy_floor.dm | 6 +- .../turfs/simulated/floor/indestructible.dm | 3 +- code/game/turfs/simulated/floor/misc_floor.dm | 3 +- .../turfs/simulated/floor/plasteel_floor.dm | 3 +- code/game/turfs/simulated/minerals.dm | 3 +- code/game/turfs/simulated/walls_mineral.dm | 3 +- code/game/turfs/space/transit.dm | 6 +- .../antagonists/_common/antag_spawner.dm | 3 +- .../changeling/powers/tiny_prick.dm | 3 +- .../atmospherics/environmental/LINDA_fire.dm | 3 +- .../atmospherics/machinery/airalarm.dm | 3 +- .../components/binary_devices/valve.dm | 3 +- .../components/trinary_devices/tvalve.dm | 3 +- .../awaymissions/mission_code/beach.dm | 9 +- .../clothing/glasses/engine_goggles.dm | 3 +- .../modules/clothing/gloves/colored_gloves.dm | 3 +- code/modules/clothing/gloves/rings.dm | 3 +- code/modules/clothing/head/beanie.dm | 3 +- code/modules/clothing/head/misc_hats.dm | 6 +- code/modules/clothing/shoes/magboots.dm | 6 +- code/modules/clothing/shoes/misc_shoes.dm | 9 +- code/modules/clothing/suits/armor_suits.dm | 3 +- code/modules/clothing/suits/misc_suits.dm | 9 +- .../clothing/under/accessories/accessory.dm | 12 +- code/modules/clothing/under/color.dm | 3 +- code/modules/clothing/under/costumes.dm | 3 +- .../clothing/under/jobs/medical_jumpsuits.dm | 3 +- code/modules/crafting/recipes.dm | 3 +- code/modules/customitems/item_defines.dm | 327 ++++++++++++------ .../blob/blob_structures/captured_nuke.dm | 3 +- code/modules/events/event.dm | 3 +- code/modules/events/spacevine.dm | 6 +- .../events/wizard/ghost_wizard_spells.dm | 6 +- .../food_and_drinks/drinks/drinks_base.dm | 3 +- .../modules/food_and_drinks/food/condiment.dm | 3 +- .../food_and_drinks/food/customizables.dm | 3 +- .../food_and_drinks/food/foods/ingredients.dm | 3 +- .../food_and_drinks/food/foods/side_dishes.dm | 3 +- .../food_and_drinks/recipes/recipes_oven.dm | 3 +- code/modules/hydroponics/grown/banana.dm | 3 +- code/modules/hydroponics/grown/citrus.dm | 3 +- code/modules/hydroponics/grown/flowers.dm | 3 +- code/modules/hydroponics/grown/nettle.dm | 3 +- code/modules/hydroponics/grown/towercap.dm | 3 +- code/modules/hydroponics/growninedible.dm | 3 +- code/modules/hydroponics/hydroitemdefines.dm | 6 +- code/modules/hydroponics/hydroponics_tray.dm | 3 +- code/modules/hydroponics/plant_genes.dm | 6 +- code/modules/library/library_datums.dm | 6 +- code/modules/mapping/mapping_helpers.dm | 3 +- code/modules/martial_arts/krav_maga.dm | 3 +- .../mining/equipment/marker_beacons.dm | 6 +- code/modules/mining/equipment/mining_tools.dm | 3 +- .../mining/equipment/wormhole_jaunter.dm | 3 +- code/modules/mining/lavaland/ash_flora.dm | 6 +- .../mining/lavaland/loot/colossus_loot.dm | 15 +- .../living/carbon/human/body_accessories.dm | 9 +- .../carbon/human/species/diona_species.dm | 3 +- .../living/silicon/robot/drone/drone_items.dm | 3 +- .../mob/living/simple_animal/bot/griefsky.dm | 6 +- .../mob/living/simple_animal/constructs.dm | 18 +- .../mob/living/simple_animal/friendly/dog.dm | 3 +- .../hostile/megafauna/ancient_robot.dm | 6 +- .../hostile/megafauna/blood_drunk_miner.dm | 3 +- .../hostile/megafauna/hierophant.dm | 6 +- .../simple_animal/hostile/venus_human_trap.dm | 3 +- .../simple_animal/hostile/winter_mobs.dm | 12 +- .../human/human_body_markings.dm | 6 +- .../sprite_accessories/human/human_hair.dm | 6 +- .../shared/shared_tail_markings.dm | 3 +- .../sprite_accessories/skrell/skrell_face.dm | 3 +- .../tajaran/tajaran_head_markings.dm | 9 +- .../tajaran/tajaran_tail_markings.dm | 3 +- .../sprite_accessories/unathi/unathi_hair.dm | 3 +- .../unathi/unathi_head_markings.dm | 12 +- .../vulpkanin/vulpkanin_head_markings.dm | 12 +- code/modules/mod/mod_construction.dm | 12 +- code/modules/mod/mod_core.dm | 3 +- code/modules/mod/mod_theme.dm | 9 +- code/modules/mod/mod_types.dm | 9 +- code/modules/mod/modules/modules_security.dm | 3 +- code/modules/paperwork/filingcabinet.dm | 3 +- code/modules/paperwork/silicon_photography.dm | 9 +- code/modules/pda/cart.dm | 3 +- code/modules/power/apc/apc.dm | 3 +- code/modules/power/cell.dm | 12 +- .../power/engines/singularity/narsie.dm | 3 +- .../power/engines/supermatter/supermatter.dm | 3 +- .../mapGenerators/syndicate_mapgen.dm | 3 +- .../projectiles/ammunition/energy_lens.dm | 9 +- .../projectiles/ammunition/magazines.dm | 6 +- .../projectiles/guns/energy/special_eguns.dm | 3 +- .../projectiles/guns/projectile/revolver.dm | 3 +- .../projectiles/guns/projectile/shotgun.dm | 3 +- .../modules/projectiles/projectile/bullets.dm | 6 +- .../chemistry/reagents/admin_reagents.dm | 3 +- .../reagents/chemistry/reagents/alcohol.dm | 9 +- .../chemistry/reagents/blob_reagents.dm | 18 +- .../reagents/chemistry/reagents/drugs.dm | 3 +- .../chemistry/reagents/food_reagents.dm | 12 +- .../reagents/chemistry/reagents/medicine.dm | 6 +- .../chemistry/reagents/misc_reagents.dm | 3 +- .../reagents/chemistry/reagents/toxins.dm | 12 +- .../reagents/chemistry/reagents/water.dm | 3 +- .../chemistry/recipes/pyrotechnics.dm | 3 +- .../chemistry/recipes/toxins_reactions.dm | 3 +- .../reagents/reagent_containers/applicator.dm | 3 +- .../reagents/reagent_containers/hypospray.dm | 9 +- .../reagents/reagent_containers/iv_bag.dm | 3 +- .../reagents/reagent_containers/spray.dm | 5 +- code/modules/recycling/belt-placer.dm | 3 +- code/modules/research/designs.dm | 3 +- code/modules/research/research.dm | 9 +- .../ruins/lavalandruin_code/dead_ratvar.dm | 6 +- .../ruins/lavalandruin_code/sin_ruins.dm | 9 +- .../space_management/space_transition.dm | 3 +- .../supply/supply_packs/pack_emergency.dm | 3 +- .../supply/supply_packs/pack_engineering.dm | 3 +- .../supply/supply_packs/pack_miscellaneous.dm | 12 +- .../supply/supply_packs/pack_organic.dm | 6 +- .../supply/supply_packs/pack_security.dm | 6 +- code/modules/surgery/organs/augments_arms.dm | 6 +- .../surgery/organs/augments_internal.dm | 3 +- code/modules/surgery/organs/eyes.dm | 3 +- .../surgery/organs/subtypes/diona_organs.dm | 18 +- .../surgery/organs/subtypes/tajaran_organs.dm | 3 +- .../organs/subtypes/vulpkanin_organs.dm | 3 +- code/modules/surgery/organs/vocal_cords.dm | 3 +- code/modules/surgery/other.dm | 3 +- code/modules/surgery/tools.dm | 9 +- 211 files changed, 955 insertions(+), 478 deletions(-) diff --git a/code/__HELPERS/unsorted.dm b/code/__HELPERS/unsorted.dm index 8d663fd4da49..71e7cac75873 100644 --- a/code/__HELPERS/unsorted.dm +++ b/code/__HELPERS/unsorted.dm @@ -744,7 +744,8 @@ Returns 1 if the chain up to the area contains the given typepath atoms += A return atoms -/datum/coords //Simple datum for storing coordinates. +/// Simple datum for storing coordinates. +/datum/coords var/x_pos var/y_pos var/z_pos diff --git a/code/controllers/failsafe.dm b/code/controllers/failsafe.dm index 8df9f1958dcf..a1d096a24741 100644 --- a/code/controllers/failsafe.dm +++ b/code/controllers/failsafe.dm @@ -6,7 +6,8 @@ GLOBAL_REAL(Failsafe, /datum/controller/failsafe) -/datum/controller/failsafe // This thing pretty much just keeps poking the master controller +/// This thing pretty much just keeps poking the master controller +/datum/controller/failsafe name = "Failsafe" // The length of time to check on the MC (in deciseconds). diff --git a/code/datums/diseases/advance/symptoms/dizzy.dm b/code/datums/diseases/advance/symptoms/dizzy.dm index f5190f322b59..ede04d3da1f0 100644 --- a/code/datums/diseases/advance/symptoms/dizzy.dm +++ b/code/datums/diseases/advance/symptoms/dizzy.dm @@ -15,7 +15,8 @@ Bonus ////////////////////////////////////// */ -/datum/symptom/dizzy // Not the egg +/// Not the egg +/datum/symptom/dizzy name = "Dizziness" stealth = 2 diff --git a/code/datums/keybindings/mob_keybinds.dm b/code/datums/keybindings/mob_keybinds.dm index c2f782dd024d..d2b3d2c9034a 100644 --- a/code/datums/keybindings/mob_keybinds.dm +++ b/code/datums/keybindings/mob_keybinds.dm @@ -225,7 +225,8 @@ name = "Target Left Foot" body_part = BODY_ZONE_PRECISE_L_FOOT -/datum/keybinding/mob/trigger_action_button // Don't add a name to this, shouldn't show up in the prefs menu +/// Don't add a name to this, shouldn't show up in the prefs menu +/datum/keybinding/mob/trigger_action_button var/datum/action/linked_action var/binded_to // these are expected to actually get deleted at some point, to prevent hard deletes we need to know where to remove them from the clients list diff --git a/code/datums/outfits/outfit_admin.dm b/code/datums/outfits/outfit_admin.dm index ba7b8a63b5be..611b449b7e5d 100644 --- a/code/datums/outfits/outfit_admin.dm +++ b/code/datums/outfits/outfit_admin.dm @@ -950,7 +950,8 @@ back = /obj/item/mod/control/pre_equipped/traitor shoes = /obj/item/clothing/shoes/magboots/syndie -/datum/outfit/admin/modsuit/wizard // Technically not a MODsuit, we'll bundle it up in here for the future when it does become one +/// Technically not a MODsuit, we'll bundle it up in here for the future when it does become one +/datum/outfit/admin/modsuit/wizard name = "Hardsuit - Wizard" suit = /obj/item/clothing/suit/space/hardsuit/wizard shoes = /obj/item/clothing/shoes/magboots/wizard @@ -980,7 +981,8 @@ name = "Tournament Standard Green" uniform = /obj/item/clothing/under/color/green -/datum/outfit/admin/tournament/tournament_gangster //gangster are supposed to fight each other. --rastaf0 +/// gangster are supposed to fight each other. --rastaf0 +/datum/outfit/admin/tournament/tournament_gangster name = "Tournament Gangster" uniform = /obj/item/clothing/under/rank/security/detective @@ -991,7 +993,8 @@ l_pocket = /obj/item/ammo_box/a357 r_hand = /obj/item/gun/projectile/automatic/proto -/datum/outfit/admin/tournament/tournament_chef //Steven Seagal FTW +/// Steven Seagal FTW +/datum/outfit/admin/tournament/tournament_chef name = "Tournament Chef" uniform = /obj/item/clothing/under/rank/civilian/chef diff --git a/code/datums/outfits/outfit_debug.dm b/code/datums/outfits/outfit_debug.dm index e992aed1af2a..0f5235bf52ca 100644 --- a/code/datums/outfits/outfit_debug.dm +++ b/code/datums/outfits/outfit_debug.dm @@ -49,7 +49,8 @@ name = "AVD-CNED bowman headset" ks2type = /obj/item/encryptionkey/syndicate/all_channels -/obj/item/encryptionkey/syndicate/all_channels // has to be a subtype and stuff +/// has to be a subtype and stuff +/obj/item/encryptionkey/syndicate/all_channels name = "AVD-CNED Encryption Key" desc = "Lets you listen to everything. Use in hand to toggle voice changing. Alt-click to change your fake name." icon_state = "com_cypherkey" diff --git a/code/datums/pipe_datums.dm b/code/datums/pipe_datums.dm index 41adb4a18829..1870faf9ef5d 100644 --- a/code/datums/pipe_datums.dm +++ b/code/datums/pipe_datums.dm @@ -27,7 +27,8 @@ GLOBAL_LIST_EMPTY(rpd_pipe_list) //Some pipes we don't want to be dispensable pipe_icon = "simple" rpd_dispensable = TRUE -/datum/pipes/atmospheric/bent //Why is this not atmospheric/simple/bent you ask? Because otherwise the ordering of the pipes in the UI menu gets weird +/// Why is this not atmospheric/simple/bent you ask? Because otherwise the ordering of the pipes in the UI menu gets weird +/datum/pipes/atmospheric/bent pipe_name = "bent pipe" pipe_id = PIPE_SIMPLE_BENT orientations = 4 diff --git a/code/datums/position_point_vector.dm b/code/datums/position_point_vector.dm index 1cad3b52899f..433aafeaa189 100644 --- a/code/datums/position_point_vector.dm +++ b/code/datums/position_point_vector.dm @@ -214,7 +214,8 @@ v.increment(multiplier * amount) return v -/datum/point_precise/vector/processed //pixel_speed is per decisecond. +/// pixel_speed is per decisecond. +/datum/point_precise/vector/processed var/last_process = 0 var/last_move = 0 var/paused = FALSE diff --git a/code/datums/spells/bloodcrawl.dm b/code/datums/spells/bloodcrawl.dm index 6d00e58ba678..ac39f6b03872 100644 --- a/code/datums/spells/bloodcrawl.dm +++ b/code/datums/spells/bloodcrawl.dm @@ -55,7 +55,8 @@ icon = 'icons/effects/blood.dmi' flags = NODROP|ABSTRACT -/obj/effect/dummy/slaughter //Can't use the wizard one, blocked by jaunt/slow +/// Can't use the wizard one, blocked by jaunt/slow +/obj/effect/dummy/slaughter name = "odd blood" icon = 'icons/effects/effects.dmi' icon_state = "nothing" diff --git a/code/datums/spells/conjure.dm b/code/datums/spells/conjure.dm index ab1d191f658a..380c178688c6 100644 --- a/code/datums/spells/conjure.dm +++ b/code/datums/spells/conjure.dm @@ -57,7 +57,8 @@ return what_conjure_summoned -/obj/effect/proc_holder/spell/aoe/conjure/summonEdSwarm //test purposes +/// test purposes +/obj/effect/proc_holder/spell/aoe/conjure/summonEdSwarm name = "Dispense Wizard Justice" desc = "This spell dispenses wizard justice." summon_type = list(/mob/living/simple_animal/bot/ed209) diff --git a/code/datums/station_traits/postive_traits.dm b/code/datums/station_traits/postive_traits.dm index 963d4291e3c7..6b161fa86625 100644 --- a/code/datums/station_traits/postive_traits.dm +++ b/code/datums/station_traits/postive_traits.dm @@ -154,7 +154,8 @@ implant_to_give.implant(spawned, spawned, TRUE, TRUE) -/datum/station_trait/cybernetic_revolution //NOTE: THIS MAKES EMP MUCH MORE EXPENSIVE. +/// NOTE: THIS MAKES EMP MUCH MORE EXPENSIVE. +/datum/station_trait/cybernetic_revolution name = "Cybernetic Revolution" trait_type = STATION_TRAIT_POSITIVE show_in_report = TRUE diff --git a/code/datums/status_effects/debuffs.dm b/code/datums/status_effects/debuffs.dm index add7fffaa657..327a8e4b3f6a 100644 --- a/code/datums/status_effects/debuffs.dm +++ b/code/datums/status_effects/debuffs.dm @@ -1,6 +1,7 @@ //OTHER DEBUFFS -/datum/status_effect/his_wrath //does minor damage over time unless holding His Grace +/// does minor damage over time unless holding His Grace +/datum/status_effect/his_wrath id = "his_wrath" duration = -1 tick_interval = 4 @@ -23,7 +24,8 @@ owner.adjustFireLoss(0.1) owner.adjustToxLoss(0.2) -/datum/status_effect/cultghost //is a cult ghost and can't use manifest runes, can see ghosts and dies if too far from summoner +/// is a cult ghost and can't use manifest runes, can see ghosts and dies if too far from summoner +/datum/status_effect/cultghost id = "cult_ghost" duration = -1 alert_type = null @@ -699,7 +701,8 @@ . = ..() REMOVE_TRAIT(owner, TRAIT_MUTE, id) -/datum/status_effect/transient/silence/absolute // this one will mute all emote sounds including gasps +/// this one will mute all emote sounds including gasps +/datum/status_effect/transient/silence/absolute id = "abssilenced" /datum/status_effect/transient/deaf diff --git a/code/datums/status_effects/neutral.dm b/code/datums/status_effects/neutral.dm index 50ddee96a03e..1a0339564de5 100644 --- a/code/datums/status_effects/neutral.dm +++ b/code/datums/status_effects/neutral.dm @@ -1,6 +1,7 @@ //entirely neutral or internal status effects go here -/datum/status_effect/crusher_damage //tracks the damage dealt to this mob by kinetic crushers +/// tracks the damage dealt to this mob by kinetic crushers +/datum/status_effect/crusher_damage id = "crusher_damage" duration = -1 status_type = STATUS_EFFECT_UNIQUE diff --git a/code/datums/uplink_items/uplink_traitor.dm b/code/datums/uplink_items/uplink_traitor.dm index 7f437119a8b2..e13bdf4b7b8e 100644 --- a/code/datums/uplink_items/uplink_traitor.dm +++ b/code/datums/uplink_items/uplink_traitor.dm @@ -476,7 +476,8 @@ surplus = 50 excludefrom = list(UPLINK_TYPE_NUCLEAR, UPLINK_TYPE_SST) -/datum/uplink_item/stealthy_weapons/combat_minus // Nukies get combat gloves plus instead +/// Nukies get combat gloves plus instead +/datum/uplink_item/stealthy_weapons/combat_minus name = "Experimental Krav Gloves" desc = "Experimental gloves with installed nanochips that teach you Krav Maga when worn, great as a cheap backup weapon. Warning, the nanochips will override any other fighting styles such as CQC. Do not look as fly as the Warden's" reference = "CGM" @@ -484,7 +485,8 @@ cost = 50 excludefrom = list(UPLINK_TYPE_NUCLEAR, UPLINK_TYPE_SST) -/datum/uplink_item/device_tools/thermal_drill // Nukies get Diamond Tipped Thermal Safe Drill instead +/// Nukies get Diamond Tipped Thermal Safe Drill instead +/datum/uplink_item/device_tools/thermal_drill name = "Amplifying Thermal Safe Drill" desc = "A tungsten carbide thermal drill with magnetic clamps for the purpose of drilling hardened objects. Comes with built in security detection and nanite system, to keep you up if security comes a-knocking." reference = "DRL" @@ -516,7 +518,8 @@ surplus = 60 excludefrom = list(UPLINK_TYPE_NUCLEAR, UPLINK_TYPE_SST) -/datum/uplink_item/bio_chips/uplink // Nukies get Nuclear Uplink Bio-chip instead +/// Nukies get Nuclear Uplink Bio-chip instead +/datum/uplink_item/bio_chips/uplink name = "Uplink Bio-chip" desc = "A bio-chip injected into the body, and later activated manually to open an uplink with 50 telecrystals. The ability for an agent to open an uplink after their possessions have been stripped from them makes this implant excellent for escaping confinement." reference = "UI" diff --git a/code/game/area/areas/mining_areas.dm b/code/game/area/areas/mining_areas.dm index e1370070513e..aa4802ffabbc 100644 --- a/code/game/area/areas/mining_areas.dm +++ b/code/game/area/areas/mining_areas.dm @@ -77,7 +77,8 @@ name = "Mining Station Cafeteria" icon_state = "mining_living" -/area/lavaland/surface/outdoors/outpost/catwalk //subtype of /surface so storms hit there +/// subtype of /surface so storms hit there +/area/lavaland/surface/outdoors/outpost/catwalk name = "Mining Station Catwalk" icon_state = "mining" @@ -89,7 +90,8 @@ name = "Mining Station Custodial Storage" icon_state = "janitor" -/area/mine/outpost/engineering // basically engi and atmos combined. I'm keeping it as "engineering" code wise, but "Life Support" sounds cooler in-game +/// basically engi and atmos combined. I'm keeping it as "engineering" code wise, but "Life Support" sounds cooler in-game +/area/mine/outpost/engineering name = "Mining Station Life Support" icon_state = "engi" @@ -184,10 +186,12 @@ name = "Lavaland Wastes" outdoors = TRUE -/area/lavaland/surface/outdoors/unexplored //monsters and ruins spawn here +/// monsters and ruins spawn here +/area/lavaland/surface/outdoors/unexplored icon_state = "unexplored" -/area/lavaland/surface/outdoors/unexplored/danger //megafauna will also spawn here +/// megafauna will also spawn here +/area/lavaland/surface/outdoors/unexplored/danger icon_state = "danger" /area/lavaland/surface/outdoors/explored diff --git a/code/game/area/asteroid_areas.dm b/code/game/area/asteroid_areas.dm index f8fd94b3d092..770be1271998 100644 --- a/code/game/area/asteroid_areas.dm +++ b/code/game/area/asteroid_areas.dm @@ -1,6 +1,7 @@ // Asteroids -/area/asteroid // -- TLE +/// -- TLE +/area/asteroid name = "\improper Asteroid" icon_state = "asteroid" requires_power = FALSE @@ -11,7 +12,8 @@ min_ambience_cooldown = 70 SECONDS max_ambience_cooldown = 220 SECONDS -/area/asteroid/cave // -- TLE +/// -- TLE +/area/asteroid/cave name = "\improper Asteroid - Underground" icon_state = "cave" requires_power = FALSE diff --git a/code/game/area/misc_areas.dm b/code/game/area/misc_areas.dm index 329e031f3903..b2c9fdaba23c 100644 --- a/code/game/area/misc_areas.dm +++ b/code/game/area/misc_areas.dm @@ -3,7 +3,8 @@ name = "Unknown" icon_state = "storage" -/area/start // will be unused once kurper gets his login interface patch done +/// will be unused once kurper gets his login interface patch done +/area/start name = "start area" icon_state = "start" requires_power = FALSE diff --git a/code/game/area/shuttle_areas.dm b/code/game/area/shuttle_areas.dm index efd45956d8e5..e6f576975cb7 100644 --- a/code/game/area/shuttle_areas.dm +++ b/code/game/area/shuttle_areas.dm @@ -89,7 +89,8 @@ /area/shuttle/escape_pod3/transit icon_state = "shuttle" -/area/shuttle/escape_pod5 //Pod 4 was lost to meteors +/// Pod 4 was lost to meteors +/area/shuttle/escape_pod5 name = "\improper Escape Pod Five" nad_allowed = TRUE diff --git a/code/game/area/ss13_areas/maintenance_areas.dm b/code/game/area/ss13_areas/maintenance_areas.dm index fbd3195e3f60..5cdf15bb5ee3 100644 --- a/code/game/area/ss13_areas/maintenance_areas.dm +++ b/code/game/area/ss13_areas/maintenance_areas.dm @@ -165,7 +165,8 @@ name = "\improper Fore Starboard Solar Maintenance" icon_state = "FSctrl" -/area/station/maintenance/assembly_line //Derelict Assembly Line +/// Derelict Assembly Line +/area/station/maintenance/assembly_line name = "\improper Assembly Line" icon_state = "ass_line" apc_starts_off = TRUE diff --git a/code/game/gamemodes/cult/blood_magic.dm b/code/game/gamemodes/cult/blood_magic.dm index 274916d4937e..d3ebeea3c5e2 100644 --- a/code/game/gamemodes/cult/blood_magic.dm +++ b/code/game/gamemodes/cult/blood_magic.dm @@ -1,4 +1,5 @@ -/datum/action/innate/cult/blood_magic //Blood magic handles the creation of blood spells (formerly talismans) +/// Blood magic handles the creation of blood spells (formerly talismans) +/datum/action/innate/cult/blood_magic name = "Prepare Blood Magic" button_icon_state = "carve" desc = "Prepare blood magic by carving runes into your flesh. This is easier with an empowering rune." @@ -85,7 +86,8 @@ if(nullify_spell) qdel(nullify_spell) -/datum/action/innate/cult/blood_spell //The next generation of talismans, handles storage/creation of blood magic +/// The next generation of talismans, handles storage/creation of blood magic +/datum/action/innate/cult/blood_spell name = "Blood Magic" button_icon_state = "telerune" desc = "Fear the Old Blood." @@ -608,7 +610,8 @@ to_chat(user, "[C] is already bound.") -/obj/item/restraints/handcuffs/energy/cult //For the shackling spell +/// For the shackling spell +/obj/item/restraints/handcuffs/energy/cult name = "shadow shackles" desc = "Shackles that bind the wrists with sinister magic." trashtype = /obj/item/restraints/handcuffs/energy/used diff --git a/code/game/gamemodes/cult/cult_objectives.dm b/code/game/gamemodes/cult/cult_objectives.dm index fe5816e16541..6afc676e3eeb 100644 --- a/code/game/gamemodes/cult/cult_objectives.dm +++ b/code/game/gamemodes/cult/cult_objectives.dm @@ -1,4 +1,5 @@ -/datum/cult_objectives //Replace with team antag datum objectives from tg once ported +/// Replace with team antag datum objectives from tg once ported +/datum/cult_objectives var/cult_status = NARSIE_IS_ASLEEP var/list/presummon_objs = list() var/datum/objective/eldergod/obj_summon = new @@ -117,7 +118,8 @@ //Objectives -/datum/objective/servecult //Given to cultists on conversion/roundstart +/// Given to cultists on conversion/roundstart +/datum/objective/servecult explanation_text = "Assist your fellow cultists and Tear the Veil! (Use the Study Veil action to check your progress.)" completed = TRUE needs_target = FALSE diff --git a/code/game/gamemodes/miniantags/abduction/gland.dm b/code/game/gamemodes/miniantags/abduction/gland.dm index b8c75eb8bd32..fe9fc6505d87 100644 --- a/code/game/gamemodes/miniantags/abduction/gland.dm +++ b/code/game/gamemodes/miniantags/abduction/gland.dm @@ -226,7 +226,8 @@ return A -/obj/item/organ/internal/heart/gland/emp //TODO : Replace with something more interesting +/// TODO : Replace with something more interesting +/obj/item/organ/internal/heart/gland/emp origin_tech = "materials=4;biotech=4;magnets=6;abductor=3" cooldown_low = 800 cooldown_high = 1200 diff --git a/code/game/gamemodes/miniantags/demons/slaughter demon/slaughter.dm b/code/game/gamemodes/miniantags/demons/slaughter demon/slaughter.dm index 594ede9117e0..11a5d6500d18 100644 --- a/code/game/gamemodes/miniantags/demons/slaughter demon/slaughter.dm +++ b/code/game/gamemodes/miniantags/demons/slaughter demon/slaughter.dm @@ -86,7 +86,8 @@ health = 170 // Cult slaughter demon -/mob/living/simple_animal/demon/slaughter/cult //Summoned as part of the cult objective "Bring the Slaughter" +/// Summoned as part of the cult objective "Bring the Slaughter" +/mob/living/simple_animal/demon/slaughter/cult name = "harbinger of the slaughter" real_name = "harbinger of the Slaughter" desc = "An awful creature from beyond the realms of madness." diff --git a/code/game/gamemodes/objective.dm b/code/game/gamemodes/objective.dm index e588523a1caf..7453324b3da4 100644 --- a/code/game/gamemodes/objective.dm +++ b/code/game/gamemodes/objective.dm @@ -266,7 +266,8 @@ GLOBAL_LIST_INIT(potential_theft_objectives, (subtypesof(/datum/theft_objective) return TRUE -/datum/objective/debrain //I want braaaainssss +/// I want braaaainssss +/datum/objective/debrain name = "Debrain" martyr_compatible = FALSE @@ -297,7 +298,8 @@ GLOBAL_LIST_INIT(potential_theft_objectives, (subtypesof(/datum/theft_objective) return FALSE -/datum/objective/protect //The opposite of killing a dude. +/// The opposite of killing a dude. +/datum/objective/protect name = "Protect" martyr_compatible = TRUE @@ -318,7 +320,8 @@ GLOBAL_LIST_INIT(potential_theft_objectives, (subtypesof(/datum/theft_objective) return TRUE return FALSE -/datum/objective/protect/mindslave //subytpe for mindslave implants +/// subytpe for mindslave implants +/datum/objective/protect/mindslave needs_target = FALSE // To be clear, this objective should have a target, but it will always be manually set to the mindslaver through the mindslave antag datum. // This objective should only be given to a single owner. We can use `owner` and not `get_owners()`. diff --git a/code/game/gamemodes/wizard/artefact.dm b/code/game/gamemodes/wizard/artefact.dm index 2b50fb1de972..8f7dae1400f8 100644 --- a/code/game/gamemodes/wizard/artefact.dm +++ b/code/game/gamemodes/wizard/artefact.dm @@ -702,7 +702,8 @@ GLOBAL_LIST_EMPTY(multiverse) /obj/item/multisword/pure_evil probability_evil = 100 -/obj/item/multisword/pike //If We are to be used and spent, let it be for a noble purpose. +/// If We are to be used and spent, let it be for a noble purpose. +/obj/item/multisword/pike name = "phantom pike" desc = "A fishing pike that appears to be imbued with a peculiar energy." icon = 'icons/obj/items.dmi' diff --git a/code/game/machinery/Beacon.dm b/code/game/machinery/Beacon.dm index a38bde82f0c2..3015fcaf27e1 100644 --- a/code/game/machinery/Beacon.dm +++ b/code/game/machinery/Beacon.dm @@ -81,7 +81,8 @@ mycomputer.mybeacon = null return ..() -/obj/machinery/bluespace_beacon/syndicate/infiltrator //beacon guaranteed offline at roundstart for infiltrator base +/// beacon guaranteed offline at roundstart for infiltrator base +/obj/machinery/bluespace_beacon/syndicate/infiltrator cc_beacon = TRUE /obj/machinery/bluespace_beacon/syndicate/infiltrator/Initialize(mapload) diff --git a/code/game/machinery/camera/camera.dm b/code/game/machinery/camera/camera.dm index 6f72fe49a2f7..dcd66b06fba9 100644 --- a/code/game/machinery/camera/camera.dm +++ b/code/game/machinery/camera/camera.dm @@ -405,7 +405,8 @@ ..() return TRUE -/obj/machinery/camera/portable //Cameras which are placed inside of things, such as helmets. +/// Cameras which are placed inside of things, such as helmets. +/obj/machinery/camera/portable start_active = TRUE // theres no real way to reactivate these, so never break them when they init var/turf/prev_turf diff --git a/code/game/machinery/computer/medical_records.dm b/code/game/machinery/computer/medical_records.dm index 521925639715..f9e35d1fcb1f 100644 --- a/code/game/machinery/computer/medical_records.dm +++ b/code/game/machinery/computer/medical_records.dm @@ -7,7 +7,8 @@ #define FIELD(N, V, E) list(field = N, value = V, edit = E) #define MED_FIELD(N, V, E, LB) list(field = N, value = V, edit = E, line_break = LB) -/obj/machinery/computer/med_data //TODO:SANITY +/// TODO:SANITY +/obj/machinery/computer/med_data name = "medical records console" desc = "This can be used to check medical records." icon_keyboard = "med_key" diff --git a/code/game/machinery/computer/power_monitor_console.dm b/code/game/machinery/computer/power_monitor_console.dm index 1d9d6be8cf5c..d257ca45704d 100644 --- a/code/game/machinery/computer/power_monitor_console.dm +++ b/code/game/machinery/computer/power_monitor_console.dm @@ -24,7 +24,8 @@ /// The history list itself of the power var/list/history = list() -/obj/machinery/computer/monitor/secret //Hides the power monitor (such as ones on ruins & CentCom) from PDA's to prevent metagaming. +/// Hides the power monitor (such as ones on ruins & CentCom) from PDA's to prevent metagaming. +/obj/machinery/computer/monitor/secret name = "outdated power monitoring console" desc = "It monitors power levels across the local powernet." circuit = /obj/item/circuitboard/powermonitor/secret diff --git a/code/game/machinery/constructable_frame.dm b/code/game/machinery/constructable_frame.dm index 558c13a5bef1..e4d89c6f7383 100644 --- a/code/game/machinery/constructable_frame.dm +++ b/code/game/machinery/constructable_frame.dm @@ -1,4 +1,5 @@ -/obj/machinery/constructable_frame //Made into a seperate type to make future revisions easier. +/// Made into a seperate type to make future revisions easier. +/obj/machinery/constructable_frame name = "machine frame" icon = 'icons/obj/stock_parts.dmi' icon_state = "box_0" diff --git a/code/game/machinery/flasher.dm b/code/game/machinery/flasher.dm index da4fa0966ba7..b997c99a49ae 100644 --- a/code/game/machinery/flasher.dm +++ b/code/game/machinery/flasher.dm @@ -20,7 +20,8 @@ . = ..() update_icon() -/obj/machinery/flasher/portable //Portable version of the flasher. Only flashes when anchored +/// Portable version of the flasher. Only flashes when anchored +/obj/machinery/flasher/portable name = "portable flasher" desc = "A portable flashing device. Wrench to activate and deactivate. Cannot detect slow movements." icon_state = "pflash1" diff --git a/code/game/machinery/vendors/generic_vendors.dm b/code/game/machinery/vendors/generic_vendors.dm index 94ba7c4470f4..1b9c93628a9a 100644 --- a/code/game/machinery/vendors/generic_vendors.dm +++ b/code/game/machinery/vendors/generic_vendors.dm @@ -1231,7 +1231,8 @@ /obj/machinery/economy/vending/cigarette/syndicate/free prices = list() -/obj/machinery/economy/vending/cigarette/beach //Used in the lavaland_biodome_beach.dmm ruin +/// Used in the lavaland_biodome_beach.dmm ruin +/obj/machinery/economy/vending/cigarette/beach name = "\improper ShadyCigs Ultra" desc = "Now with extra premium products!" slogan_list = list("Turn on, tune in, drop out!", diff --git a/code/game/mecha/equipment/tools/other_tools.dm b/code/game/mecha/equipment/tools/other_tools.dm index d0e24c093ba8..2430888436cd 100644 --- a/code/game/mecha/equipment/tools/other_tools.dm +++ b/code/game/mecha/equipment/tools/other_tools.dm @@ -102,7 +102,8 @@ //////////////////////////// ARMOR BOOSTER MODULES ////////////////////////////////////////////////////////// -/obj/item/mecha_parts/mecha_equipment/anticcw_armor_booster //what is that noise? A BAWWW from TK mutants. +/// what is that noise? A BAWWW from TK mutants. +/obj/item/mecha_parts/mecha_equipment/anticcw_armor_booster name = "armor booster module (Close combat weaponry)" desc = "Boosts exosuit armor against armed melee attacks. Requires energy to operate." icon_state = "mecha_abooster_ccw" diff --git a/code/game/mecha/paintkits.dm b/code/game/mecha/paintkits.dm index 1aef8ebf061f..e7c67a542273 100644 --- a/code/game/mecha/paintkits.dm +++ b/code/game/mecha/paintkits.dm @@ -1,4 +1,5 @@ -/obj/item/paintkit //Please don't use this for anything, it's a base type for custom mech paintjobs. +/// Please don't use this for anything, it's a base type for custom mech paintjobs. +/obj/item/paintkit name = "mecha customisation kit" desc = "A generic kit containing all the needed tools and parts to turn a mech into another mech." icon = 'icons/obj/painting.dmi' diff --git a/code/game/objects/effects/decals/Cleanable/alien_blood.dm b/code/game/objects/effects/decals/Cleanable/alien_blood.dm index b13fb1ad8b3e..2e02edee4a22 100644 --- a/code/game/objects/effects/decals/Cleanable/alien_blood.dm +++ b/code/game/objects/effects/decals/Cleanable/alien_blood.dm @@ -39,7 +39,8 @@ /obj/effect/decal/cleanable/blood/xtracks basecolor = "#05EE05" -/obj/effect/decal/cleanable/blood/slime // this is the alien blood file, slimes are aliens. +/// this is the alien blood file, slimes are aliens. +/obj/effect/decal/cleanable/blood/slime name = "slime jelly" desc = "It's a transparent semi-liquid from a slime or slime person. Don't lick it." basecolor = "#0b8f70" diff --git a/code/game/objects/effects/decals/Cleanable/humans.dm b/code/game/objects/effects/decals/Cleanable/humans.dm index c0213fe24e20..3c98c25dbb2e 100644 --- a/code/game/objects/effects/decals/Cleanable/humans.dm +++ b/code/game/objects/effects/decals/Cleanable/humans.dm @@ -210,7 +210,8 @@ /obj/effect/decal/cleanable/blood/drip/can_bloodcrawl_in() return TRUE -/obj/effect/decal/cleanable/trail_holder //not a child of blood on purpose +/// not a child of blood on purpose +/obj/effect/decal/cleanable/trail_holder name = "blood" icon = 'icons/effects/effects.dmi' icon_state = "nothing" @@ -300,7 +301,8 @@ scoop_reagents = list("liquidgibs" = 5) -/obj/effect/decal/cleanable/blood/gibs/cleangibs //most ironic name ever... +/// most ironic name ever... +/obj/effect/decal/cleanable/blood/gibs/cleangibs scoop_reagents = null mergeable_decal = TRUE diff --git a/code/game/objects/effects/decals/Cleanable/misc_cleanables.dm b/code/game/objects/effects/decals/Cleanable/misc_cleanables.dm index 6e025ccb1525..1d39a7cfd943 100644 --- a/code/game/objects/effects/decals/Cleanable/misc_cleanables.dm +++ b/code/game/objects/effects/decals/Cleanable/misc_cleanables.dm @@ -264,7 +264,8 @@ icon = 'icons/effects/tomatodecal.dmi' random_icon_states = list("smashed_egg1", "smashed_egg2", "smashed_egg3") -/obj/effect/decal/cleanable/pie_smudge //honk +/// honk +/obj/effect/decal/cleanable/pie_smudge name = "smashed pie" desc = "It's pie cream from a cream pie." density = FALSE @@ -307,7 +308,8 @@ reagents.add_reagent_list(scoop_reagents) no_scoop = FALSE -/obj/effect/decal/cleanable/confetti //PARTY TIME! +/// PARTY TIME! +/obj/effect/decal/cleanable/confetti name = "confetti" desc = "Party time!" gender = PLURAL diff --git a/code/game/objects/effects/landmarks.dm b/code/game/objects/effects/landmarks.dm index b08762c94cbd..a127b327d13c 100644 --- a/code/game/objects/effects/landmarks.dm +++ b/code/game/objects/effects/landmarks.dm @@ -11,7 +11,8 @@ invisibility = 101 GLOB.landmarks_list += src -/obj/effect/landmark/newplayer_start //There should only be one of these, in the lobby art area +/// There should only be one of these, in the lobby art area +/obj/effect/landmark/newplayer_start name = "start" INITIALIZE_IMMEDIATE(/obj/effect/landmark/newplayer_start) //Without this you spawn in the corner of the map and things break horribly diff --git a/code/game/objects/effects/spawners/airlock_spawner.dm b/code/game/objects/effects/spawners/airlock_spawner.dm index 4c868311746c..a81fc5285fe9 100644 --- a/code/game/objects/effects/spawners/airlock_spawner.dm +++ b/code/game/objects/effects/spawners/airlock_spawner.dm @@ -222,7 +222,8 @@ This spawner places pipe leading up to the interior door, you will need to finis interior_direction = WEST exterior_direction = EAST -/obj/effect/spawner/airlock/long //Long and thin +/// Long and thin +/obj/effect/spawner/airlock/long name = "long airlock spawner (interior north, exterior south)" icon_state = "1x2_N_to_S" tiles_in_y_direction = 2 @@ -250,7 +251,8 @@ This spawner places pipe leading up to the interior door, you will need to finis icon_state = "1x2_W_to_E" tiles_in_x_direction = 2 -/obj/effect/spawner/airlock/long/square //Square +/// Square +/obj/effect/spawner/airlock/long/square name = "square airlock spawner (interior north, exterior south)" icon_state = "2x2_N_to_S" tiles_in_x_direction = 2 diff --git a/code/game/objects/effects/spawners/lootdrop.dm b/code/game/objects/effects/spawners/lootdrop.dm index 5ef0a837cad7..a556d64132ab 100644 --- a/code/game/objects/effects/spawners/lootdrop.dm +++ b/code/game/objects/effects/spawners/lootdrop.dm @@ -194,7 +194,8 @@ lootcount = 8 -/obj/effect/spawner/lootdrop/crate_spawner // for ruins +/// for ruins +/obj/effect/spawner/lootdrop/crate_spawner name = "lootcrate spawner" lootdoubles = FALSE loot = list( diff --git a/code/game/objects/effects/spawners/random_barrier.dm b/code/game/objects/effects/spawners/random_barrier.dm index 40897a60bcd9..385b0c38ace4 100644 --- a/code/game/objects/effects/spawners/random_barrier.dm +++ b/code/game/objects/effects/spawners/random_barrier.dm @@ -47,7 +47,8 @@ /obj/structure/barricade/wooden = 1, /obj/machinery/door/airlock/welded = 1) -/obj/effect/spawner/random_barrier/possibly_welded_airlock // these have no access restrictions, so for internal maintenance only +/// these have no access restrictions, so for internal maintenance only +/obj/effect/spawner/random_barrier/possibly_welded_airlock name = "possibly welded airlock" icon_state = "airlock" result = list( diff --git a/code/game/objects/effects/temporary_visuals/misc_visuals.dm b/code/game/objects/effects/temporary_visuals/misc_visuals.dm index 2e69b3713d97..334c9bfe64f8 100644 --- a/code/game/objects/effects/temporary_visuals/misc_visuals.dm +++ b/code/game/objects/effects/temporary_visuals/misc_visuals.dm @@ -200,7 +200,8 @@ icon_state = "mummy_revive" duration = 20 -/obj/effect/temp_visual/heal //color is white by default, set to whatever is needed +/// color is white by default, set to whatever is needed +/obj/effect/temp_visual/heal name = "healing glow" icon_state = "heal" duration = 15 diff --git a/code/game/objects/items/cardboard_cutouts.dm b/code/game/objects/items/cardboard_cutouts.dm index e9c21cd2107a..18e3de3759ed 100644 --- a/code/game/objects/items/cardboard_cutouts.dm +++ b/code/game/objects/items/cardboard_cutouts.dm @@ -186,5 +186,6 @@ /obj/item/cardboard_cutout/setDir() dir = SOUTH -/obj/item/cardboard_cutout/adaptive //Purchased by Syndicate agents, these cutouts are indistinguishable from normal cutouts but aren't discolored when their appearance is changed +/// Purchased by Syndicate agents, these cutouts are indistinguishable from normal cutouts but aren't discolored when their appearance is changed +/obj/item/cardboard_cutout/adaptive deceptive = TRUE diff --git a/code/game/objects/items/devices/flash.dm b/code/game/objects/items/devices/flash.dm index dd3e7c82d2c0..f5a857f86c5e 100644 --- a/code/game/objects/items/devices/flash.dm +++ b/code/game/objects/items/devices/flash.dm @@ -265,4 +265,5 @@ implant = null return ..() -/obj/item/flash/synthetic //just a regular flash now +/// just a regular flash now +/obj/item/flash/synthetic diff --git a/code/game/objects/items/devices/flashlight.dm b/code/game/objects/items/devices/flashlight.dm index 2aafdc9e9af8..909451a633d1 100644 --- a/code/game/objects/items/devices/flashlight.dm +++ b/code/game/objects/items/devices/flashlight.dm @@ -398,7 +398,8 @@ to_chat(user, "\The [src] needs time to recharge!") return -/obj/item/flashlight/spotlight //invisible lighting source +/// invisible lighting source +/obj/item/flashlight/spotlight name = "disco light" desc = "Groovy..." icon_state = null diff --git a/code/game/objects/items/devices/geiger_counter.dm b/code/game/objects/items/devices/geiger_counter.dm index 2515fbca7d81..cda7f5e34e3b 100644 --- a/code/game/objects/items/devices/geiger_counter.dm +++ b/code/game/objects/items/devices/geiger_counter.dm @@ -4,7 +4,8 @@ #define RAD_LEVEL_VERY_HIGH 800 #define RAD_LEVEL_CRITICAL 1500 -/obj/item/geiger_counter //DISCLAIMER: I know nothing about how real-life Geiger counters work. This will not be realistic. ~Xhuis +/// DISCLAIMER: I know nothing about how real-life Geiger counters work. This will not be realistic. ~Xhuis +/obj/item/geiger_counter name = "\improper Geiger counter" desc = "A handheld device used for detecting and measuring radiation pulses." icon = 'icons/obj/device.dmi' diff --git a/code/game/objects/items/devices/painter/window_painter.dm b/code/game/objects/items/devices/painter/window_painter.dm index 83edd17bd7d9..92671f7fc71b 100644 --- a/code/game/objects/items/devices/painter/window_painter.dm +++ b/code/game/objects/items/devices/painter/window_painter.dm @@ -1,4 +1,5 @@ -/datum/painter/pipe/window // Yes, this is a pipe painter subtype. +/// Yes, this is a pipe painter subtype. +/datum/painter/pipe/window module_name = "window painter" module_state = "window_painter" var/static/list/paintable_windows = list( diff --git a/code/game/objects/items/devices/radio/beacon.dm b/code/game/objects/items/devices/radio/beacon.dm index c6c5facc872e..6e66f17366b5 100644 --- a/code/game/objects/items/devices/radio/beacon.dm +++ b/code/game/objects/items/devices/radio/beacon.dm @@ -30,7 +30,8 @@ /obj/item/radio/beacon/send_hear() return null -/obj/item/radio/beacon/bacon //Probably a better way of doing this, I'm lazy. +/// Probably a better way of doing this, I'm lazy. +/obj/item/radio/beacon/bacon /obj/item/radio/beacon/bacon/proc/digest_delay() QDEL_IN(src, 600) diff --git a/code/game/objects/items/devices/radio/encryptionkey.dm b/code/game/objects/items/devices/radio/encryptionkey.dm index 8c4bec0239a8..14a3daf131d2 100644 --- a/code/game/objects/items/devices/radio/encryptionkey.dm +++ b/code/game/objects/items/devices/radio/encryptionkey.dm @@ -180,7 +180,8 @@ name = "Centcom Radio Encryption Key" channels = list("Response Team" = 1, "Special Ops" = 1, "Science" = 1, "Command" = 1, "Medical" = 1, "Engineering" = 1, "Security" = 1, "Supply" = 1, "Service" = 1, "Procedure" = 1) -/obj/item/encryptionkey/heads/ai_integrated //ported from bay, this goes 'inside' the AI. +/// ported from bay, this goes 'inside' the AI. +/obj/item/encryptionkey/heads/ai_integrated name = "AI Integrated Encryption Key" desc = "Integrated encryption key" icon_state = "cap_cypherkey" diff --git a/code/game/objects/items/devices/radio/headset.dm b/code/game/objects/items/devices/radio/headset.dm index b7be56862103..6914b9115531 100644 --- a/code/game/objects/items/devices/radio/headset.dm +++ b/code/game/objects/items/devices/radio/headset.dm @@ -101,7 +101,8 @@ instant = TRUE // Work instantly if there are no comms freqlock = TRUE -/obj/item/radio/headset/syndicate/alt //undisguised bowman with flash protection +/// undisguised bowman with flash protection +/obj/item/radio/headset/syndicate/alt name = "syndicate headset" desc = "A syndicate headset that can be used to hear all radio frequencies. Protects ears from flashbangs." flags = EARBANGPROTECT @@ -367,7 +368,8 @@ requires_tcomms = FALSE instant = TRUE -/obj/item/radio/headset/heads/ai_integrated //No need to care about icons, it should be hidden inside the AI anyway. +/// No need to care about icons, it should be hidden inside the AI anyway. +/obj/item/radio/headset/heads/ai_integrated name = "\improper AI subspace transceiver" desc = "Integrated AI radio transceiver." icon = 'icons/obj/robot_component.dmi' diff --git a/code/game/objects/items/stacks/sheets/leather.dm b/code/game/objects/items/stacks/sheets/leather.dm index 34f767302c75..f91e4b8d75b9 100644 --- a/code/game/objects/items/stacks/sheets/leather.dm +++ b/code/game/objects/items/stacks/sheets/leather.dm @@ -60,7 +60,8 @@ GLOBAL_LIST_INIT(lizard_recipes, list( recipes = GLOB.lizard_recipes return ..() -/obj/item/stack/sheet/fur //basic fur sheets +/// basic fur sheets +/obj/item/stack/sheet/fur name = "pile of fur" desc = "Vulp remains." singular_name = "fur piece" diff --git a/code/game/objects/items/stacks/sheets/sheet_types.dm b/code/game/objects/items/stacks/sheets/sheet_types.dm index c62f88f218dd..c6818200998b 100644 --- a/code/game/objects/items/stacks/sheets/sheet_types.dm +++ b/code/game/objects/items/stacks/sheets/sheet_types.dm @@ -425,7 +425,8 @@ GLOBAL_LIST_INIT(cardboard_recipes, list ( else . = ..() -/obj/item/stack/sheet/cardboard //BubbleWrap +/// BubbleWrap +/obj/item/stack/sheet/cardboard name = "cardboard" desc = "Large sheets of card, like boxes folded flat." singular_name = "cardboard sheet" diff --git a/code/game/objects/items/theft_items.dm b/code/game/objects/items/theft_items.dm index 53522602e8d4..f033792ae273 100644 --- a/code/game/objects/items/theft_items.dm +++ b/code/game/objects/items/theft_items.dm @@ -39,7 +39,8 @@ user.visible_message("[user] is rubbing [src] against [user.p_themselves()]! It looks like [user.p_theyre()] trying to commit suicide!") return TOXLOSS -/obj/item/nuke_core/plutonium //The steal objective, so it doesnt mess with the SM sliver on pinpointers and objectives +/// The steal objective, so it doesnt mess with the SM sliver on pinpointers and objectives +/obj/item/nuke_core/plutonium //nuke core box, for carrying the core /obj/item/nuke_core_container diff --git a/code/game/objects/items/weapons/AI_modules.dm b/code/game/objects/items/weapons/AI_modules.dm index 6095e7c92ad5..244d9cd9555b 100755 --- a/code/game/objects/items/weapons/AI_modules.dm +++ b/code/game/objects/items/weapons/AI_modules.dm @@ -202,7 +202,8 @@ AI MODULES target.add_supplied_law(9, law) /****************** New Freeform ******************/ -/obj/item/aiModule/freeform // Slightly more dynamic freeform module -- TLE +/// Slightly more dynamic freeform module -- TLE +/obj/item/aiModule/freeform name = "\improper Freeform AI module" var/newFreeFormLaw = "" var/lawpos = 15 @@ -260,7 +261,8 @@ AI MODULES return FALSE /******************** Purge ********************/ -/obj/item/aiModule/purge // -- TLE +/// -- TLE +/obj/item/aiModule/purge name = "\improper Purge AI module" desc = "A 'purge' AI Module: 'Purges all laws.'" icon_state = "standard_high" @@ -276,7 +278,8 @@ AI MODULES target.clear_inherent_laws() /******************** Asimov ********************/ -/obj/item/aiModule/asimov // -- TLE +/// -- TLE +/obj/item/aiModule/asimov name = "\improper Asimov core AI module" desc = "An 'Asimov' Core AI Module: 'Reconfigures the AI's core laws.'" icon_state = "green_high" @@ -284,7 +287,8 @@ AI MODULES laws = new /datum/ai_laws/asimov /******************** Crewsimov ********************/ -/obj/item/aiModule/crewsimov // -- TLE +/// -- TLE +/obj/item/aiModule/crewsimov name = "\improper Crewsimov core AI module" desc = "An 'Crewsimov' Core AI Module: 'Reconfigures the AI's core laws.'" icon_state = "green_low" @@ -306,7 +310,8 @@ AI MODULES laws = new /datum/ai_laws/quarantine /******************** Nanotrasen ********************/ -/obj/item/aiModule/nanotrasen // -- TLE +/// -- TLE +/obj/item/aiModule/nanotrasen name = "\improper NT Default Core AI Module" desc = "An 'NT Default' Core AI Module: 'Reconfigures the AI's core laws.'" icon_state = "blue_low" @@ -329,7 +334,8 @@ AI MODULES laws = new /datum/ai_laws/drone /******************** Robocop ********************/ -/obj/item/aiModule/robocop // -- TLE +/// -- TLE +/obj/item/aiModule/robocop name = "\improper Robocop core AI module" desc = "A 'Robocop' Core AI Module: 'Reconfigures the AI's core three laws.'" icon_state = "red_medium" @@ -337,7 +343,8 @@ AI MODULES laws = new /datum/ai_laws/robocop() /****************** P.A.L.A.D.I.N. **************/ -/obj/item/aiModule/paladin // -- NEO +/// -- NEO +/obj/item/aiModule/paladin name = "\improper P.A.L.A.D.I.N. core AI module" desc = "A P.A.L.A.D.I.N. Core AI Module: 'Reconfigures the AI's core laws.'" icon_state = "red_medium" @@ -345,7 +352,8 @@ AI MODULES laws = new /datum/ai_laws/paladin /****************** T.Y.R.A.N.T. *****************/ -/obj/item/aiModule/tyrant // -- Darem +/// -- Darem +/obj/item/aiModule/tyrant name = "\improper T.Y.R.A.N.T. core AI module" desc = "A T.Y.R.A.N.T. Core AI Module: 'Reconfigures the AI's core laws.'" icon_state = "red_high" @@ -353,7 +361,8 @@ AI MODULES laws = new /datum/ai_laws/tyrant() /******************** Antimov ********************/ -/obj/item/aiModule/antimov // -- TLE +/// -- TLE +/obj/item/aiModule/antimov name = "\improper Antimov core AI module" desc = "An 'Antimov' Core AI Module: 'Reconfigures the AI's core laws.'" icon_state = "red_high" @@ -404,7 +413,8 @@ AI MODULES laws = new /datum/ai_laws/peacekeeper() /******************** Freeform Core ******************/ -/obj/item/aiModule/freeformcore // Slightly more dynamic freeform module -- TLE +/// Slightly more dynamic freeform module -- TLE +/obj/item/aiModule/freeformcore name = "\improper Freeform core AI module" var/newFreeFormLaw = "" desc = "A 'freeform' Core AI module: ''" @@ -432,7 +442,8 @@ AI MODULES ..() /******************** Hacked AI Module ******************/ -/obj/item/aiModule/syndicate // Slightly more dynamic freeform module -- TLE +/// Slightly more dynamic freeform module -- TLE +/obj/item/aiModule/syndicate name = "hacked AI module" var/newFreeFormLaw = "" desc = "A hacked AI law module: ''" @@ -464,7 +475,8 @@ AI MODULES ..() /******************* Ion Module *******************/ -/obj/item/aiModule/toyAI // -- Incoming //No actual reason to inherit from ion boards here, either. *sigh* ~Miauw +/// -- Incoming //No actual reason to inherit from ion boards here, either. *sigh* ~Miauw +/obj/item/aiModule/toyAI name = "toy AI" desc = "A little toy model AI core with real law uploading action!" //Note: subtle tell icon = 'icons/obj/toy.dmi' diff --git a/code/game/objects/items/weapons/bio_chips/bio_chip_gorilla_rampage.dm b/code/game/objects/items/weapons/bio_chips/bio_chip_gorilla_rampage.dm index 5fae9d5d602c..49024f6d2f4c 100644 --- a/code/game/objects/items/weapons/bio_chips/bio_chip_gorilla_rampage.dm +++ b/code/game/objects/items/weapons/bio_chips/bio_chip_gorilla_rampage.dm @@ -1,4 +1,5 @@ -/obj/item/bio_chip/gorilla_rampage //Dumb path but easier to search for admins +/// Dumb path but easier to search for admins +/obj/item/bio_chip/gorilla_rampage name = "magillitis serum bio-chip" desc = "An experimental biochip which causes irreversable rapid muscular growth in Hominidae. Side-affects may include hypertrichosis, violent outbursts, and an unending affinity for bananas." icon_state = "gorilla_rampage" diff --git a/code/game/objects/items/weapons/dice.dm b/code/game/objects/items/weapons/dice.dm index 998dd526021b..e7af1f12ae15 100644 --- a/code/game/objects/items/weapons/dice.dm +++ b/code/game/objects/items/weapons/dice.dm @@ -1,4 +1,5 @@ -/obj/item/storage/bag/dice //Thankfully no longer a pill bottle. +/// Thankfully no longer a pill bottle. +/obj/item/storage/bag/dice name = "bag of dice" desc = "Contains all the luck you'll ever need." icon = 'icons/obj/dice.dmi' @@ -32,7 +33,8 @@ user.visible_message("[user] is gambling with death! It looks like [user.p_theyre()] trying to commit suicide!") return (OXYLOSS) -/obj/item/dice //depreciated d6, use /obj/item/dice/d6 if you actually want a d6 +/// depreciated d6, use /obj/item/dice/d6 if you actually want a d6 +/obj/item/dice name = "die" desc = "A die with six sides. Basic and serviceable." icon = 'icons/obj/dice.dmi' diff --git a/code/game/objects/items/weapons/garrote.dm b/code/game/objects/items/weapons/garrote.dm index 1d1570344a25..d88385b56ae7 100644 --- a/code/game/objects/items/weapons/garrote.dm +++ b/code/game/objects/items/weapons/garrote.dm @@ -4,7 +4,8 @@ * Improvised garrotes */ -/obj/item/garrote // 12TC traitor item +/// 12TC traitor item +/obj/item/garrote name = "fiber wire" desc = "A length of razor-thin wire with an elegant wooden handle on either end.
You suspect you'd have to be behind the target to use this weapon effectively." icon_state = "garrot_wrap" @@ -27,7 +28,8 @@ else icon_state = "garrot_[improvised ? "I_" : ""][HAS_TRAIT(src, TRAIT_WIELDED) ? "un" : ""]wrap" -/obj/item/garrote/improvised // Made via tablecrafting +/// Made via tablecrafting +/obj/item/garrote/improvised name = "garrote" desc = "A length of cable with a shoddily-carved wooden handle tied to either end.
You suspect you'd have to be behind the target to use this weapon effectively." icon_state = "garrot_I_wrap" diff --git a/code/game/objects/items/weapons/grenades/chem_grenade.dm b/code/game/objects/items/weapons/grenades/chem_grenade.dm index 5b8cebe360db..2201e9c64930 100644 --- a/code/game/objects/items/weapons/grenades/chem_grenade.dm +++ b/code/game/objects/items/weapons/grenades/chem_grenade.dm @@ -366,14 +366,16 @@ else return ..() -/obj/item/grenade/chem_grenade/cryo // Intended for rare cryogenic mixes. Cools the area moderately upon detonation. +/// Intended for rare cryogenic mixes. Cools the area moderately upon detonation. +/obj/item/grenade/chem_grenade/cryo name = "cryo grenade" desc = "A custom made cryogenic grenade. It rapidly cools its contents upon detonation." icon_state = "cryog" affected_area = 2 ignition_temp = -100 -/obj/item/grenade/chem_grenade/pyro // Intended for pyrotechnical mixes. Produces a small fire upon detonation, igniting potentially flammable mixtures. +/// Intended for pyrotechnical mixes. Produces a small fire upon detonation, igniting potentially flammable mixtures. +/obj/item/grenade/chem_grenade/pyro name = "pyro grenade" desc = "A custom made pyrotechnical grenade. It heats up and ignites its contents upon detonation." icon_state = "pyrog" @@ -381,7 +383,8 @@ affected_area = 3 ignition_temp = 500 // This is enough to expose a hotspot. -/obj/item/grenade/chem_grenade/adv_release // Intended for weaker, but longer lasting effects. Could have some interesting uses. +/// Intended for weaker, but longer lasting effects. Could have some interesting uses. +/obj/item/grenade/chem_grenade/adv_release name = "advanced release grenade" desc = "A custom made advanced release grenade. It is able to be detonated more than once. Can be configured using a multitool." icon_state = "timeg" diff --git a/code/game/objects/items/weapons/holy_weapons.dm b/code/game/objects/items/weapons/holy_weapons.dm index 3f7f3250b342..c66d56f2eaa4 100644 --- a/code/game/objects/items/weapons/holy_weapons.dm +++ b/code/game/objects/items/weapons/holy_weapons.dm @@ -103,10 +103,12 @@ var/mob/living/L = AM L.adjustFireLoss(sanctify_force) // Bonus fire damage for sanctified (ERT) versions of nullrod -/obj/item/nullrod/fluff // fluff subtype to be used for all donator nullrods +/// fluff subtype to be used for all donator nullrods +/obj/item/nullrod/fluff reskin_selectable = FALSE -/obj/item/nullrod/ert // ERT subtype, applies sanctified property to any derived rod +/// ERT subtype, applies sanctified property to any derived rod +/obj/item/nullrod/ert name = "inquisitor null rod" reskin_selectable = FALSE sanctify_force = 10 @@ -471,7 +473,8 @@ user.faction |= "carp" used_blessing = TRUE -/obj/item/nullrod/claymore/bostaff //May as well make it a "claymore" and inherit the blocking +/// May as well make it a "claymore" and inherit the blocking +/obj/item/nullrod/claymore/bostaff name = "monk's staff" desc = "A long, tall staff made of polished wood. Traditionally used in ancient old-Earth martial arts, now used to harass the clown." icon_state = "bostaff0" diff --git a/code/game/objects/items/weapons/legcuffs.dm b/code/game/objects/items/weapons/legcuffs.dm index d3a3350cf9fb..31c817cc0673 100644 --- a/code/game/objects/items/weapons/legcuffs.dm +++ b/code/game/objects/items/weapons/legcuffs.dm @@ -273,7 +273,8 @@ if(!reuseable) flags |= DROPDEL -/obj/item/restraints/legcuffs/bola/tactical //traitor variant +/// traitor variant +/obj/item/restraints/legcuffs/bola/tactical name = "reinforced bola" desc = "A strong bola, made with a long steel chain. It looks heavy, enough so that it could trip somebody." icon_state = "bola_r" @@ -282,7 +283,8 @@ origin_tech = "engineering=4;combat=3" knockdown_duration = 2 SECONDS -/obj/item/restraints/legcuffs/bola/energy //For Security +/// For Security +/obj/item/restraints/legcuffs/bola/energy name = "energy bola" desc = "A specialized hard-light bola designed to ensnare fleeing criminals and aid in arrests." icon_state = "ebola" diff --git a/code/game/objects/items/weapons/melee/energy_melee_weapons.dm b/code/game/objects/items/weapons/melee/energy_melee_weapons.dm index 2086e1677e07..f07c624b1d02 100644 --- a/code/game/objects/items/weapons/melee/energy_melee_weapons.dm +++ b/code/game/objects/items/weapons/melee/energy_melee_weapons.dm @@ -159,7 +159,8 @@ ..() return -/obj/item/melee/energy/sword/cyborg/saw //Used by medical Syndicate cyborgs +/// Used by medical Syndicate cyborgs +/obj/item/melee/energy/sword/cyborg/saw name = "energy saw" desc = "For heavy duty cutting. It has a carbon-fiber blade in addition to a toggleable hard-light edge to dramatically increase sharpness." force_on = 30 diff --git a/code/game/objects/items/weapons/pneumaticCannon.dm b/code/game/objects/items/weapons/pneumaticCannon.dm index bb7afcb69199..fd54057f1879 100644 --- a/code/game/objects/items/weapons/pneumaticCannon.dm +++ b/code/game/objects/items/weapons/pneumaticCannon.dm @@ -173,7 +173,8 @@ requires_tank = FALSE max_weight_class = INFINITY -/obj/item/pneumatic_cannon/ghetto //Obtainable by improvised methods; more gas per use, less capacity, but smaller +/// Obtainable by improvised methods; more gas per use, less capacity, but smaller +/obj/item/pneumatic_cannon/ghetto name = "improvised pneumatic cannon" desc = "A gas-powered, object-firing cannon made out of common parts." force = 5 diff --git a/code/game/objects/items/weapons/storage/backpack.dm b/code/game/objects/items/weapons/storage/backpack.dm index c5fdde6e1ade..5f362b5ffe3f 100644 --- a/code/game/objects/items/weapons/storage/backpack.dm +++ b/code/game/objects/items/weapons/storage/backpack.dm @@ -600,7 +600,8 @@ new /obj/item/clothing/mask/muzzle(src) new /obj/item/reagent_containers/glass/bottle/reagent/hydrocodone(src) -/obj/item/storage/backpack/duffel/syndie/med/surgery_fake //for maint spawns +/// for maint spawns +/obj/item/storage/backpack/duffel/syndie/med/surgery_fake name = "surgery duffelbag" desc = "A suspicious looking duffelbag for holding surgery tools." diff --git a/code/game/objects/items/weapons/storage/bags.dm b/code/game/objects/items/weapons/storage/bags.dm index 11c745f7e721..7bc630ed97e5 100644 --- a/code/game/objects/items/weapons/storage/bags.dm +++ b/code/game/objects/items/weapons/storage/bags.dm @@ -182,7 +182,8 @@ name = "cyborg mining satchel" flags = NODROP -/obj/item/storage/bag/ore/holding //miners, your messiah has arrived +/// miners, your messiah has arrived +/obj/item/storage/bag/ore/holding name = "mining satchel of holding" desc = "A revolution in convenience, this satchel allows for infinite ore storage. It's been outfitted with anti-malfunction safety measures." storage_slots = INFINITY @@ -244,7 +245,8 @@ // Because it stacks stacks, this doesn't operate normally. // However, making it a storage/bag allows us to reuse existing code in some places. -Sayu -/obj/item/storage/bag/sheetsnatcher // what is this even used for +/// what is this even used for +/obj/item/storage/bag/sheetsnatcher icon = 'icons/obj/mining.dmi' icon_state = "sheetsnatcher" name = "Sheet Snatcher" diff --git a/code/game/objects/items/weapons/storage/belt.dm b/code/game/objects/items/weapons/storage/belt.dm index 7079b62de981..a51a93e365fc 100644 --- a/code/game/objects/items/weapons/storage/belt.dm +++ b/code/game/objects/items/weapons/storage/belt.dm @@ -148,7 +148,8 @@ update_icon() //much roomier now that we've managed to remove two tools -/obj/item/storage/belt/utility/syndi_researcher // A cool looking belt thats essentially a syndicate toolbox +/// A cool looking belt thats essentially a syndicate toolbox +/obj/item/storage/belt/utility/syndi_researcher desc = "A belt for holding tools, but with style." icon_state = "assaultbelt" item_state = "assault" @@ -438,7 +439,8 @@ new /obj/item/grenade/chem_grenade/facid(src) //1 new /obj/item/grenade/chem_grenade/saringas(src) //1 -/obj/item/storage/belt/grenade/tactical // Traitor bundle version +/// Traitor bundle version +/obj/item/storage/belt/grenade/tactical name = "tactical grenadier belt" storage_slots = 20 // Not as many slots as the nukie one max_combined_w_class = 40 diff --git a/code/game/objects/items/weapons/storage/boxes.dm b/code/game/objects/items/weapons/storage/boxes.dm index 43e323d98307..69816d0a4058 100644 --- a/code/game/objects/items/weapons/storage/boxes.dm +++ b/code/game/objects/items/weapons/storage/boxes.dm @@ -1126,7 +1126,8 @@ /obj/item/storage/box/stockparts display_contents_with_number = TRUE -/obj/item/storage/box/stockparts/basic //for ruins where it's a bad idea to give access to an autolathe/protolathe, but still want to make stock parts accessible +/// for ruins where it's a bad idea to give access to an autolathe/protolathe, but still want to make stock parts accessible +/obj/item/storage/box/stockparts/basic name = "box of stock parts" desc = "Contains a variety of basic stock parts." diff --git a/code/game/objects/items/weapons/storage/uplink_kits.dm b/code/game/objects/items/weapons/storage/uplink_kits.dm index 1607d8a1ad02..f098364adca3 100644 --- a/code/game/objects/items/weapons/storage/uplink_kits.dm +++ b/code/game/objects/items/weapons/storage/uplink_kits.dm @@ -2,10 +2,12 @@ desc = "A sleek, sturdy box." icon_state = "doom_box" -/obj/item/storage/box/syndie_kit/bundle // Traitor bundles +/// Traitor bundles +/obj/item/storage/box/syndie_kit/bundle var/list/items = list() -/obj/item/storage/box/syndie_kit/bundle/spy // 172TC +/// 172TC +/obj/item/storage/box/syndie_kit/bundle/spy name = "Spy Bundle" desc = "Complete your objectives quietly with this compilation of stealthy items." items = list( @@ -23,7 +25,8 @@ /obj/item/door_remote/omni/access_tuner, // 30 TC /obj/item/encryptionkey/syndicate) // 10TC -/obj/item/storage/box/syndie_kit/bundle/agent13 // 159 +/// 159 +/obj/item/storage/box/syndie_kit/bundle/agent13 name = "Agent 13 Bundle" desc = "Find and eliminate your targets quietly and effectively with this kit." items = list( @@ -41,7 +44,8 @@ /obj/item/coin/gold, // 0TC /obj/item/encryptionkey/syndicate) // 10TC -/obj/item/storage/box/syndie_kit/bundle/thief // 160TC +/// 160TC +/obj/item/storage/box/syndie_kit/bundle/thief name = "Thief Bundle" desc = "Steal from friends, enemies, and interstellar megacorporations alike!" items = list( @@ -53,7 +57,8 @@ /obj/item/storage/backpack/satchel_flat, // 10TC /obj/item/encryptionkey/syndicate) // 10TC -/obj/item/storage/box/syndie_kit/bundle/bond // 137TC +/// 137TC +/obj/item/storage/box/syndie_kit/bundle/bond name = "Agent 007 Bundle" desc = "Shake your Martini and stir up trouble with this bundle of lethal equipment mixed with a spritz of gadgetry to keep things interesting." items = list( @@ -72,7 +77,8 @@ /obj/item/storage/box/syndie_kit/pen_bomb, // 30 TC /obj/item/CQC_manual) // 13TC -/obj/item/storage/box/syndie_kit/bundle/infiltrator // 155TC + RCD & Mesons Autoimplanter +/// 155TC + RCD & Mesons Autoimplanter +/obj/item/storage/box/syndie_kit/bundle/infiltrator name = "Infiltration Bundle" desc = "Use your teleporter, krav maga and other support tools to jump right into your desired location, quickly leaving as though you were never there." items = list( @@ -85,7 +91,8 @@ /obj/item/autosurgeon/organ/syndicate/meson_eyes, // 0TC /obj/item/encryptionkey/syndicate) // 2TC -/obj/item/storage/box/syndie_kit/bundle/payday // 175TC +/// 175TC +/obj/item/storage/box/syndie_kit/bundle/payday name = "Heist Bundle" desc = "Alright guys, today we're performing a heist on a space station owned by a greedy corporation. Drain the vault of all its worth so we can get that pay dirt!11" items = list( @@ -104,7 +111,8 @@ /obj/item/bio_chip_implanter/freedom/prototype, // 10 TC /obj/item/encryptionkey/syndicate) // 10TC -/obj/item/storage/box/syndie_kit/bundle/implant // 200TC +/// 200TC +/obj/item/storage/box/syndie_kit/bundle/implant name = "Bio-chip Bundle" desc = "A few useful bio-chips to give you some options for when you inevitably get captured by the Security." items = list( @@ -116,7 +124,8 @@ /obj/item/bio_chip_implanter/storage, // 40TC /obj/item/encryptionkey/syndicate) // 10TC -/obj/item/storage/box/syndie_kit/bundle/hacker // 180TC +/// 180TC +/obj/item/storage/box/syndie_kit/bundle/hacker name = "Hacker Bundle" desc = "A kit with everything you need to hack into and disrupt the Station, AI, its cyborgs and the Security team. HACK THE PLANET!" items = list( @@ -135,7 +144,8 @@ /obj/item/clothing/gloves/combat, // accounted in belt + toolbox /obj/item/flashlight/emp) // 4TC -/obj/item/storage/box/syndie_kit/bundle/darklord // 168TC + Telekinesis +/// 168TC + Telekinesis +/obj/item/storage/box/syndie_kit/bundle/darklord name = "Dark Lord Bundle" desc = "Turn your anger into hate and your hate into suffering with a mix of energy swords and magical powers. DO IT." items = list( @@ -150,7 +160,8 @@ /obj/item/clothing/shoes/chameleon/noslip, // 10TC /obj/item/encryptionkey/syndicate) // 10TC -/obj/item/storage/box/syndie_kit/bundle/professional // 164TC +/// 164TC +/obj/item/storage/box/syndie_kit/bundle/professional name = "Sniper Bundle" desc = "Suit up and handle yourself like a professional with a long-distance sniper rifle, additional .50 standard and penetrator rounds and thermal glasses to easily scope out your target." items = list( @@ -164,7 +175,8 @@ /obj/item/clothing/suit/storage/iaa/blackjacket/armored, // 3TC /obj/item/encryptionkey/syndicate) // 15TC -/obj/item/storage/box/syndie_kit/bundle/grenadier // 133TC + Tactical Grenadier Belt +/// 133TC + Tactical Grenadier Belt +/obj/item/storage/box/syndie_kit/bundle/grenadier name = "Grenade Bundle" desc = "A variety of grenades and pyrotechnics to ensure you can blast your way through any situation. " items = list( @@ -180,7 +192,8 @@ /obj/item/storage/box/syndie_kit/frag_grenades, // One box, as a treat /obj/item/encryptionkey/syndicate) // 10TC -/obj/item/storage/box/syndie_kit/bundle/metroid // 115TC + modules + laser gun +/// 115TC + modules + laser gun +/obj/item/storage/box/syndie_kit/bundle/metroid name = "Modsuit Bundle" desc = "Don the equipment of an intergalactic bounty hunter and blast your way through the station!" items = list( diff --git a/code/game/objects/items/weapons/twohanded.dm b/code/game/objects/items/weapons/twohanded.dm index d8e18e42e5fb..5e76d2e44f9e 100644 --- a/code/game/objects/items/weapons/twohanded.dm +++ b/code/game/objects/items/weapons/twohanded.dm @@ -1,7 +1,8 @@ /* * Fireaxe */ -/obj/item/fireaxe // DEM AXES MAN, marker -Agouri +/// DEM AXES MAN, marker -Agouri +/obj/item/fireaxe base_icon_state = "fireaxe" lefthand_file = 'icons/mob/inhands/weapons_lefthand.dmi' righthand_file = 'icons/mob/inhands/weapons_righthand.dmi' @@ -41,7 +42,8 @@ var/obj/structure/W = A W.obj_destruction("fireaxe") -/obj/item/fireaxe/boneaxe // Blatant imitation of the fireaxe, but made out of bone. +/// Blatant imitation of the fireaxe, but made out of bone. +/obj/item/fireaxe/boneaxe icon_state = "bone_axe0" base_icon_state = "bone_axe" name = "bone axe" @@ -306,7 +308,8 @@ explosive.prime() qdel(src) -/obj/item/spear/bonespear //Blatant imitation of spear, but made out of bone. Not valid for explosive modification. +/// Blatant imitation of spear, but made out of bone. Not valid for explosive modification. +/obj/item/spear/bonespear name = "bone spear" desc = "A haphazardly-constructed yet still deadly weapon. The pinnacle of modern technology." base_icon_state = "bone_spear" @@ -1017,7 +1020,8 @@ #undef BROOM_PUSH_LIMIT -/obj/item/supermatter_halberd //Supermatter Halberd, used by Oblivion Enforcers +/// Supermatter Halberd, used by Oblivion Enforcers +/obj/item/supermatter_halberd name = "supermatter halberd" desc = "The revered weapon of Oblivion Enforcers, used to enforce the Order's will." lefthand_file = 'icons/mob/inhands/weapons_lefthand.dmi' diff --git a/code/game/objects/structures/barsign.dm b/code/game/objects/structures/barsign.dm index d34c9007ffb0..66c122013ab5 100644 --- a/code/game/objects/structures/barsign.dm +++ b/code/game/objects/structures/barsign.dm @@ -1,4 +1,5 @@ -/obj/structure/sign/barsign // All Signs are 64 by 32 pixels, they take two tiles +/// All Signs are 64 by 32 pixels, they take two tiles +/obj/structure/sign/barsign name = "Bar Sign" desc = "A bar sign with no writing on it." icon = 'icons/obj/barsigns.dmi' diff --git a/code/game/objects/structures/crates_lockers/closets/secure/cargo_lockers.dm b/code/game/objects/structures/crates_lockers/closets/secure/cargo_lockers.dm index 28d421596d69..2ac142b2c3c8 100644 --- a/code/game/objects/structures/crates_lockers/closets/secure/cargo_lockers.dm +++ b/code/game/objects/structures/crates_lockers/closets/secure/cargo_lockers.dm @@ -33,7 +33,8 @@ new /obj/item/storage/bag/mail(src) new /obj/item/melee/knuckleduster/nanotrasen(src) -/obj/structure/closet/secure_closet/quartermaster/lavaland //used in mining outpost +/// used in mining outpost +/obj/structure/closet/secure_closet/quartermaster/lavaland name = "quartermaster's secondary locker" /obj/structure/closet/secure_closet/quartermaster/lavaland/populate_contents() diff --git a/code/game/objects/structures/crates_lockers/closets/statue.dm b/code/game/objects/structures/crates_lockers/closets/statue.dm index 38240e163151..5dffb626cf73 100644 --- a/code/game/objects/structures/crates_lockers/closets/statue.dm +++ b/code/game/objects/structures/crates_lockers/closets/statue.dm @@ -1,4 +1,5 @@ -/obj/structure/closet/statue //this type path is a crime, ponies what the fuck +/// this type path is a crime, ponies what the fuck +/obj/structure/closet/statue name = "statue" desc = "An incredibly lifelike marble carving" icon = 'icons/obj/statue.dmi' diff --git a/code/game/objects/structures/fluff.dm b/code/game/objects/structures/fluff.dm index 2e75b13bd152..f816563f3a93 100644 --- a/code/game/objects/structures/fluff.dm +++ b/code/game/objects/structures/fluff.dm @@ -22,14 +22,16 @@ return return ..() -/obj/structure/fluff/empty_terrarium //Empty terrariums are created when a preserved terrarium in a lavaland seed vault is activated. +/// Empty terrariums are created when a preserved terrarium in a lavaland seed vault is activated. +/obj/structure/fluff/empty_terrarium name = "empty terrarium" desc = "An ancient machine that seems to be used for storing plant matter. Its hatch is ajar." icon = 'icons/obj/lavaland/spawners.dmi' icon_state = "terrarium_open" density = TRUE -/obj/structure/fluff/empty_sleeper //Empty sleepers are created by a good few ghost roles in lavaland. +/// Empty sleepers are created by a good few ghost roles in lavaland. +/obj/structure/fluff/empty_sleeper name = "empty sleeper" desc = "An open sleeper. It looks as though it would be awaiting another patient, were it not broken." icon = 'icons/obj/cryogenic2.dmi' @@ -44,13 +46,15 @@ /obj/structure/fluff/empty_sleeper/syndicate icon_state = "sleeper_s-open" -/obj/structure/fluff/empty_cryostasis_sleeper //Empty cryostasis sleepers are created when a malfunctioning cryostasis sleeper in a lavaland shelter is activated +/// Empty cryostasis sleepers are created when a malfunctioning cryostasis sleeper in a lavaland shelter is activated +/obj/structure/fluff/empty_cryostasis_sleeper name = "empty cryostasis sleeper" desc = "Although comfortable, this sleeper won't function as anything but a bed ever again." icon = 'icons/obj/lavaland/spawners.dmi' icon_state = "cryostasis_sleeper_open" -/obj/structure/fluff/drake_statue //Ash drake status spawn on either side of the necropolis gate in lavaland. +/// Ash drake status spawn on either side of the necropolis gate in lavaland. +/obj/structure/fluff/drake_statue name = "drake statue" desc = "A towering basalt sculpture of a proud and regal drake. Its eyes are six glowing gemstones." icon = 'icons/effects/64x64.dmi' @@ -60,7 +64,8 @@ deconstructible = FALSE layer = EDGED_TURF_LAYER -/obj/structure/fluff/drake_statue/falling //A variety of statue in disrepair; parts are broken off and a gemstone is missing +/// A variety of statue in disrepair; parts are broken off and a gemstone is missing +/obj/structure/fluff/drake_statue/falling desc = "A towering basalt sculpture of a drake. Cracks run down its surface and parts of it have fallen off." icon_state = "drake_statue_falling" diff --git a/code/game/objects/structures/grille.dm b/code/game/objects/structures/grille.dm index 6effd6dd37e2..fbc538af4a15 100644 --- a/code/game/objects/structures/grille.dm +++ b/code/game/objects/structures/grille.dm @@ -277,7 +277,8 @@ C.add_queued_power_demand(C.get_queued_available_power() * 0.0375) // you can gain up to 3.5 via the 4x upgrades power is halved by the pole so thats 2x then 1X then .5X for 3.5x the 3 bounces shock. return ..() -/obj/structure/grille/broken // Pre-broken grilles for map placement +/// Pre-broken grilles for map placement +/obj/structure/grille/broken icon_state = "brokengrille" density = FALSE obj_integrity = 20 diff --git a/code/game/objects/structures/inflatable.dm b/code/game/objects/structures/inflatable.dm index 9d2860fd7748..d01c09a789bc 100644 --- a/code/game/objects/structures/inflatable.dm +++ b/code/game/objects/structures/inflatable.dm @@ -96,7 +96,8 @@ R.add_fingerprint(user) qdel(src) -/obj/structure/inflatable/door //Based on mineral door code +/// Based on mineral door code +/obj/structure/inflatable/door name = "inflatable door" icon_state = "door_closed" torn = /obj/item/inflatable/door/torn diff --git a/code/game/objects/structures/plasticflaps.dm b/code/game/objects/structures/plasticflaps.dm index 126142a7e6f3..d33997709797 100644 --- a/code/game/objects/structures/plasticflaps.dm +++ b/code/game/objects/structures/plasticflaps.dm @@ -94,7 +94,8 @@ new /obj/item/stack/sheet/plastic/five(loc) qdel(src) -/obj/structure/plasticflaps/mining //A specific type for mining that doesn't allow airflow because of them damn crates +/// A specific type for mining that doesn't allow airflow because of them damn crates +/obj/structure/plasticflaps/mining name = "airtight plastic flaps" desc = "Heavy duty, airtight, plastic flaps." diff --git a/code/game/objects/structures/railings.dm b/code/game/objects/structures/railings.dm index 266460cc6a9d..ff67ffde85ac 100644 --- a/code/game/objects/structures/railings.dm +++ b/code/game/objects/structures/railings.dm @@ -15,12 +15,14 @@ /obj/structure/railing/get_climb_text() return "You can Click-Drag yourself to [src] to climb over it after a short delay." -/obj/structure/railing/corner //aesthetic corner sharp edges hurt oof ouch +/// aesthetic corner sharp edges hurt oof ouch +/obj/structure/railing/corner icon_state = "railing_corner" density = FALSE climbable = FALSE -/obj/structure/railing/cap //aestetic "end" for railing +/// aestetic "end" for railing +/obj/structure/railing/cap icon_state = "railing_cap" density = FALSE climbable = FALSE diff --git a/code/game/objects/structures/statues.dm b/code/game/objects/structures/statues.dm index c62d9d426ac9..f6ece981b4ca 100644 --- a/code/game/objects/structures/statues.dm +++ b/code/game/objects/structures/statues.dm @@ -264,7 +264,8 @@ desc = "A cheap statue of sandstone for a greyshirt." icon_state = "assist" -/obj/structure/statue/sandstone/venus //call me when we add marble i guess +/// call me when we add marble i guess +/obj/structure/statue/sandstone/venus name = "statue of a pure maiden" desc = "An ancient marble statue. The subject is depicted with a floor-length braid and is wielding a toolbox. By Jove, it's easily the most gorgeous depiction of a woman you've ever seen. The artist must truly be a master of his craft. Shame about the broken arm, though." icon = 'icons/obj/statuelarge.dmi' diff --git a/code/game/objects/structures/stool_bed_chair_nest/chairs.dm b/code/game/objects/structures/stool_bed_chair_nest/chairs.dm index 125a515a2f2f..6f01518ae994 100644 --- a/code/game/objects/structures/stool_bed_chair_nest/chairs.dm +++ b/code/game/objects/structures/stool_bed_chair_nest/chairs.dm @@ -1,4 +1,5 @@ -/obj/structure/chair // fuck you Pete +/// fuck you Pete +/obj/structure/chair name = "chair" desc = "You sit in this. Either by will or force." icon = 'icons/obj/chairs.dmi' diff --git a/code/game/objects/structures/tables_racks.dm b/code/game/objects/structures/tables_racks.dm index fce002c46a56..950a932c4055 100644 --- a/code/game/objects/structures/tables_racks.dm +++ b/code/game/objects/structures/tables_racks.dm @@ -621,7 +621,8 @@ if(!total_override) ..() -/obj/structure/table/wood/poker //No specialties, Just a mapping object. +/// No specialties, Just a mapping object. +/obj/structure/table/wood/poker name = "gambling table" desc = "A seedy table for seedy dealings in seedy places." icon = 'icons/obj/smooth_structures/tables/poker_table.dmi' diff --git a/code/game/objects/structures/watercloset.dm b/code/game/objects/structures/watercloset.dm index f22e746da5ce..284b39dd50f3 100644 --- a/code/game/objects/structures/watercloset.dm +++ b/code/game/objects/structures/watercloset.dm @@ -610,7 +610,8 @@ can_rotate = 0 -/obj/structure/sink/puddle //splishy splashy ^_^ +/// splishy splashy ^_^ +/obj/structure/sink/puddle name = "puddle" desc = "A puddle of clean water. Looks refreshing." icon_state = "puddle" diff --git a/code/game/turfs/simulated/floor/asteroid_floors.dm b/code/game/turfs/simulated/floor/asteroid_floors.dm index dd869e06ae0f..bb56be30dffd 100644 --- a/code/game/turfs/simulated/floor/asteroid_floors.dm +++ b/code/game/turfs/simulated/floor/asteroid_floors.dm @@ -110,7 +110,8 @@ floor_variance = 15 digResult = /obj/item/stack/ore/glass/basalt -/turf/simulated/floor/plating/asteroid/basalt/lava //lava underneath +/// lava underneath +/turf/simulated/floor/plating/asteroid/basalt/lava baseturf = /turf/simulated/floor/lava /turf/simulated/floor/plating/asteroid/basalt/airless @@ -185,7 +186,8 @@ GLOBAL_LIST_INIT(megafauna_spawn_list, list(/mob/living/simple_animal/hostile/me var/data_having_type = /turf/simulated/floor/plating/asteroid/airless/cave/has_data turf_type = /turf/simulated/floor/plating/asteroid/airless -/turf/simulated/floor/plating/asteroid/airless/cave/has_data //subtype for producing a tunnel with given data +/// subtype for producing a tunnel with given data +/turf/simulated/floor/plating/asteroid/airless/cave/has_data has_data = TRUE /turf/simulated/floor/plating/asteroid/airless/cave/volcanic @@ -201,7 +203,8 @@ GLOBAL_LIST_INIT(megafauna_spawn_list, list(/mob/living/simple_animal/hostile/me nitrogen = 23 temperature = 300 -/turf/simulated/floor/plating/asteroid/airless/cave/volcanic/has_data //subtype for producing a tunnel with given data +/// subtype for producing a tunnel with given data +/turf/simulated/floor/plating/asteroid/airless/cave/volcanic/has_data has_data = TRUE /turf/simulated/floor/plating/asteroid/airless/cave/Initialize(mapload) diff --git a/code/game/turfs/simulated/floor/fancy_floor.dm b/code/game/turfs/simulated/floor/fancy_floor.dm index a7c41e9edc83..17264977073f 100644 --- a/code/game/turfs/simulated/floor/fancy_floor.dm +++ b/code/game/turfs/simulated/floor/fancy_floor.dm @@ -85,14 +85,16 @@ base_icon_state = "junglegrass" smoothing_groups = list(SMOOTH_GROUP_TURF, SMOOTH_GROUP_GRASS, SMOOTH_GROUP_JUNGLE_GRASS) -/turf/simulated/floor/grass/no_creep //This vairant shows up under normal turfs so fits in the regular 32x32 sprite +/// This vairant shows up under normal turfs so fits in the regular 32x32 sprite +/turf/simulated/floor/grass/no_creep smoothing_flags = null smoothing_groups = null canSmoothWith = null layer = GRASS_UNDER_LAYER transform = null -/turf/simulated/floor/grass/jungle/no_creep //This vairant shows up under normal turfs so fits in the regular 32x32 sprite +/// This vairant shows up under normal turfs so fits in the regular 32x32 sprite +/turf/simulated/floor/grass/jungle/no_creep smoothing_flags = null smoothing_groups = null canSmoothWith = null diff --git a/code/game/turfs/simulated/floor/indestructible.dm b/code/game/turfs/simulated/floor/indestructible.dm index a2343a5e061b..2cccdda02749 100644 --- a/code/game/turfs/simulated/floor/indestructible.dm +++ b/code/game/turfs/simulated/floor/indestructible.dm @@ -63,7 +63,8 @@ nitrogen = MOLES_N2STANDARD temperature = T20C -/turf/simulated/floor/indestructible/boss //you put stone tiles on this and use it as a base +/// you put stone tiles on this and use it as a base +/turf/simulated/floor/indestructible/boss name = "necropolis floor" icon = 'icons/turf/floors/boss_floors.dmi' icon_state = "boss" diff --git a/code/game/turfs/simulated/floor/misc_floor.dm b/code/game/turfs/simulated/floor/misc_floor.dm index 9f2a665bf04e..8a1de89314e7 100644 --- a/code/game/turfs/simulated/floor/misc_floor.dm +++ b/code/game/turfs/simulated/floor/misc_floor.dm @@ -91,7 +91,8 @@ clawfootstep = FOOTSTEP_WATER heavyfootstep = FOOTSTEP_WATER -/turf/simulated/floor/beach/water // TODO - Refactor water so they share the same parent type - Or alternatively component something like that +/// TODO - Refactor water so they share the same parent type - Or alternatively component something like that +/turf/simulated/floor/beach/water name = "water" icon_state = "water" mouse_opacity = MOUSE_OPACITY_TRANSPARENT diff --git a/code/game/turfs/simulated/floor/plasteel_floor.dm b/code/game/turfs/simulated/floor/plasteel_floor.dm index 96e24e507c0c..2e8f6935c2ce 100644 --- a/code/game/turfs/simulated/floor/plasteel_floor.dm +++ b/code/game/turfs/simulated/floor/plasteel_floor.dm @@ -19,7 +19,8 @@ . = ..() name = "floor" -/turf/simulated/floor/plasteel/airless/indestructible // For bomb testing range +/// For bomb testing range +/turf/simulated/floor/plasteel/airless/indestructible /turf/simulated/floor/plasteel/airless/indestructible/ex_act(severity) return diff --git a/code/game/turfs/simulated/minerals.dm b/code/game/turfs/simulated/minerals.dm index c439a00b1b50..108f5a51d83a 100644 --- a/code/game/turfs/simulated/minerals.dm +++ b/code/game/turfs/simulated/minerals.dm @@ -1,6 +1,7 @@ /**********************Mineral deposits**************************/ -/turf/simulated/mineral //wall piece +/// wall piece +/turf/simulated/mineral name = "rock" icon = 'icons/turf/walls/smoothrocks.dmi' icon_state = "smoothrocks-0" diff --git a/code/game/turfs/simulated/walls_mineral.dm b/code/game/turfs/simulated/walls_mineral.dm index 09d0b7cc4368..1dc17ad67d46 100644 --- a/code/game/turfs/simulated/walls_mineral.dm +++ b/code/game/turfs/simulated/walls_mineral.dm @@ -212,7 +212,8 @@ /////////////////////Titanium walls///////////////////// -/turf/simulated/wall/mineral/titanium //has to use this path due to how building walls works +/// has to use this path due to how building walls works +/turf/simulated/wall/mineral/titanium name = "wall" desc = "A light-weight titanium wall used in shuttles." icon = 'icons/turf/walls/plastinum_wall.dmi' diff --git a/code/game/turfs/space/transit.dm b/code/game/turfs/space/transit.dm index eca159708709..9cbb85755792 100644 --- a/code/game/turfs/space/transit.dm +++ b/code/game/turfs/space/transit.dm @@ -6,7 +6,8 @@ /turf/space/transit/attackby(obj/O as obj, mob/user as mob, params) return -/turf/space/transit/north // moving to the north +/// moving to the north +/turf/space/transit/north pushdirection = SOUTH // south because the space tile is scrolling south @@ -56,7 +57,8 @@ /turf/space/transit/north/shuttlespace_ns15 icon_state = "speedspace_ns_15" -/turf/space/transit/east // moving to the east +/// moving to the east +/turf/space/transit/east pushdirection = WEST /turf/space/transit/east/shuttlespace_ew1 diff --git a/code/modules/antagonists/_common/antag_spawner.dm b/code/modules/antagonists/_common/antag_spawner.dm index ea6345143afe..b28f460e4f5e 100644 --- a/code/modules/antagonists/_common/antag_spawner.dm +++ b/code/modules/antagonists/_common/antag_spawner.dm @@ -174,7 +174,8 @@ ///////////SLAUGHTER DEMON -/obj/item/antag_spawner/slaughter_demon //Warning edgiest item in the game +/// Warning edgiest item in the game +/obj/item/antag_spawner/slaughter_demon name = "vial of blood" desc = "A magically infused bottle of blood, distilled from countless murder victims. Used in unholy rituals to attract horrifying creatures." icon = 'icons/obj/wizard.dmi' diff --git a/code/modules/antagonists/changeling/powers/tiny_prick.dm b/code/modules/antagonists/changeling/powers/tiny_prick.dm index 504c568f8a31..39b34d949493 100644 --- a/code/modules/antagonists/changeling/powers/tiny_prick.dm +++ b/code/modules/antagonists/changeling/powers/tiny_prick.dm @@ -127,7 +127,8 @@ SSblackbox.record_feedback("nested tally", "changeling_powers", 1, list("[name]")) return TRUE -/datum/action/changeling/sting/cryo //Enable when mob cooling is fixed so that frostoil actually makes you cold, instead of mostly just hungry. +/// Enable when mob cooling is fixed so that frostoil actually makes you cold, instead of mostly just hungry. +/datum/action/changeling/sting/cryo name = "Cryogenic Sting" desc = "We silently sting our victim with a cocktail of chemicals that freezes them from the inside. Costs 15 chemicals." helptext = "Does not provide a warning to the victim, though they will likely realize they are suddenly freezing." diff --git a/code/modules/atmospherics/environmental/LINDA_fire.dm b/code/modules/atmospherics/environmental/LINDA_fire.dm index 2dc8bd21e1d1..42dc9c3fb250 100644 --- a/code/modules/atmospherics/environmental/LINDA_fire.dm +++ b/code/modules/atmospherics/environmental/LINDA_fire.dm @@ -188,7 +188,8 @@ /obj/effect/hotspot/singularity_pull() return -/obj/effect/hotspot/fake // Largely for the fireflash procs below +/// Largely for the fireflash procs below +/obj/effect/hotspot/fake fake = TRUE burn_time = 30 diff --git a/code/modules/atmospherics/machinery/airalarm.dm b/code/modules/atmospherics/machinery/airalarm.dm index 58c4b12f163d..9623efed4936 100644 --- a/code/modules/atmospherics/machinery/airalarm.dm +++ b/code/modules/atmospherics/machinery/airalarm.dm @@ -117,7 +117,8 @@ custom_name = TRUE req_one_access = list(ACCESS_ATMOSPHERICS, ACCESS_ENGINE) -/obj/machinery/alarm/syndicate //general syndicate access +/// general syndicate access +/obj/machinery/alarm/syndicate report_danger_level = FALSE remote_control = FALSE req_access = list(ACCESS_SYNDICATE) diff --git a/code/modules/atmospherics/machinery/components/binary_devices/valve.dm b/code/modules/atmospherics/machinery/components/binary_devices/valve.dm index 9e2adeec3fcd..daa791d502c9 100644 --- a/code/modules/atmospherics/machinery/components/binary_devices/valve.dm +++ b/code/modules/atmospherics/machinery/components/binary_devices/valve.dm @@ -73,7 +73,8 @@ open() to_chat(user, "You [open ? "open" : "close"] [src].") -/obj/machinery/atmospherics/binary/valve/digital // can be controlled by AI +/// can be controlled by AI +/obj/machinery/atmospherics/binary/valve/digital name = "digital valve" desc = "A digitally controlled valve." icon = 'icons/atmos/digital_valve.dmi' diff --git a/code/modules/atmospherics/machinery/components/trinary_devices/tvalve.dm b/code/modules/atmospherics/machinery/components/trinary_devices/tvalve.dm index 5797b62cf214..27871d8613ef 100644 --- a/code/modules/atmospherics/machinery/components/trinary_devices/tvalve.dm +++ b/code/modules/atmospherics/machinery/components/trinary_devices/tvalve.dm @@ -104,7 +104,8 @@ sleep(10) switch_side() -/obj/machinery/atmospherics/trinary/tvalve/digital // can be controlled by AI +/// can be controlled by AI +/obj/machinery/atmospherics/trinary/tvalve/digital name = "digital switching valve" desc = "A digitally controlled valve." icon = 'icons/atmos/digital_tvalve.dmi' diff --git a/code/modules/awaymissions/mission_code/beach.dm b/code/modules/awaymissions/mission_code/beach.dm index bec7c33ed3a5..88e5426a374b 100644 --- a/code/modules/awaymissions/mission_code/beach.dm +++ b/code/modules/awaymissions/mission_code/beach.dm @@ -55,7 +55,8 @@ . = ..() //adds some aesthetic randomness to the beach sand icon_state = pick("desert", "desert0", "desert1", "desert2", "desert3", "desert4") -/turf/simulated/floor/beach/away/sand/dense //for boundary "walls" +/// for boundary "walls" +/turf/simulated/floor/beach/away/sand/dense density = TRUE baseturf = /turf/simulated/floor/beach/away/sand/dense @@ -71,7 +72,8 @@ clawfootstep = FOOTSTEP_WATER heavyfootstep = FOOTSTEP_WATER -/turf/simulated/floor/beach/away/coastline/dense //for boundary "walls" +/// for boundary "walls" +/turf/simulated/floor/beach/away/coastline/dense density = TRUE baseturf = /turf/simulated/floor/beach/away/coastline/dense @@ -117,7 +119,8 @@ temperature = 300 planetary_atmos = TRUE -/turf/simulated/floor/beach/away/water/dense //for boundary "walls" +/// for boundary "walls" +/turf/simulated/floor/beach/away/water/dense density = TRUE baseturf = /turf/simulated/floor/beach/away/water/dense diff --git a/code/modules/clothing/glasses/engine_goggles.dm b/code/modules/clothing/glasses/engine_goggles.dm index 1bd791fa8cba..03bde7c6b0e0 100644 --- a/code/modules/clothing/glasses/engine_goggles.dm +++ b/code/modules/clothing/glasses/engine_goggles.dm @@ -101,7 +101,8 @@ user.update_inv_l_hand() user.update_inv_r_hand() -/obj/item/clothing/glasses/meson/engine/tray //atmos techs have lived far too long without tray goggles while those damned engineers get their dual-purpose gogles all to themselves +/// atmos techs have lived far too long without tray goggles while those damned engineers get their dual-purpose gogles all to themselves +/obj/item/clothing/glasses/meson/engine/tray name = "optical t-ray scanner" icon_state = "trayson-t-ray" item_state = "trayson-t-ray" diff --git a/code/modules/clothing/gloves/colored_gloves.dm b/code/modules/clothing/gloves/colored_gloves.dm index c2b8ea24035a..59c567846ed2 100644 --- a/code/modules/clothing/gloves/colored_gloves.dm +++ b/code/modules/clothing/gloves/colored_gloves.dm @@ -14,7 +14,8 @@ /obj/item/clothing/gloves/color/yellow/fake siemens_coefficient = 1 -/obj/item/clothing/gloves/color/fyellow //Cheap Chinese Crap +/// Cheap Chinese Crap +/obj/item/clothing/gloves/color/fyellow name = "budget insulated gloves" desc = "These gloves are cheap copies of the coveted gloves, no way this can end badly." icon_state = "yellow" diff --git a/code/modules/clothing/gloves/rings.dm b/code/modules/clothing/gloves/rings.dm index 1de30c936a8a..ed180788bc94 100644 --- a/code/modules/clothing/gloves/rings.dm +++ b/code/modules/clothing/gloves/rings.dm @@ -44,7 +44,8 @@ material = "silver" ring_color = "silver" -/obj/item/clothing/gloves/ring/silver/blessed // todo +/// todo +/obj/item/clothing/gloves/ring/silver/blessed name = "blessed silver ring" /obj/item/clothing/gloves/ring/gold diff --git a/code/modules/clothing/head/beanie.dm b/code/modules/clothing/head/beanie.dm index 67dedaa65589..21e0bc2b4a7c 100644 --- a/code/modules/clothing/head/beanie.dm +++ b/code/modules/clothing/head/beanie.dm @@ -3,7 +3,8 @@ //Plus a bobble hat, lets be inclusive!! -/obj/item/clothing/head/beanie //Default is white, this is meant to be seen +/// Default is white, this is meant to be seen +/obj/item/clothing/head/beanie name = "white beanie" desc = "A stylish beanie. The perfect winter accessory for those with a keen fashion sense, and those who just can't handle a cold breeze on their heads." icon_state = "beanie" //Default white diff --git a/code/modules/clothing/head/misc_hats.dm b/code/modules/clothing/head/misc_hats.dm index 501bfcb60b90..2c7f0890a613 100644 --- a/code/modules/clothing/head/misc_hats.dm +++ b/code/modules/clothing/head/misc_hats.dm @@ -392,7 +392,8 @@ "Vox" = 'icons/mob/clothing/species/vox/head.dmi' ) -/obj/item/clothing/head/stalhelm //Why do these exist - Because they aren't specifically Nazi Germany +/// Why do these exist - Because they aren't specifically Nazi Germany +/obj/item/clothing/head/stalhelm name = "clown stalhelm" desc = "The typical clown soldier's helmet." icon_state = "stalhelm" @@ -415,7 +416,8 @@ flags = BLOCKHAIR flags_inv = HIDEEARS -/obj/item/clothing/head/beret/purple //Fluff? +/// Fluff? +/obj/item/clothing/head/beret/purple name = "Pierson Family Beret" desc = " A purple beret, with a small golden crescent moon sewn onto it." icon_state = "beret_purple" diff --git a/code/modules/clothing/shoes/magboots.dm b/code/modules/clothing/shoes/magboots.dm index ce849a5016fe..25f49a27a8ba 100644 --- a/code/modules/clothing/shoes/magboots.dm +++ b/code/modules/clothing/shoes/magboots.dm @@ -94,7 +94,8 @@ magboot_state = "syndiemag" origin_tech = "magnets=4;syndicate=2" -/obj/item/clothing/shoes/magboots/elite //For the Syndicate Strike Team/SolGov/Tactical Teams +/// For the Syndicate Strike Team/SolGov/Tactical Teams +/obj/item/clothing/shoes/magboots/elite name = "elite tactical magboots" desc = "Advanced magboots used by strike teams across the system. Allows for tactical insertion into low-gravity areas of operation." icon_state = "elitemag0" @@ -143,7 +144,8 @@ to_chat(user, "You switch on the waddle dampeners!") enabled_waddle = FALSE -/obj/item/clothing/shoes/magboots/wizard //bundled with the wiz hardsuit +/// bundled with the wiz hardsuit +/obj/item/clothing/shoes/magboots/wizard name = "boots of gripping" desc = "These magical boots, once activated, will stay gripped to any surface without slowing you down." icon_state = "wizmag0" diff --git a/code/modules/clothing/shoes/misc_shoes.dm b/code/modules/clothing/shoes/misc_shoes.dm index 86b85ccb40f7..40e71c543563 100644 --- a/code/modules/clothing/shoes/misc_shoes.dm +++ b/code/modules/clothing/shoes/misc_shoes.dm @@ -3,7 +3,8 @@ icon_state = "mime" item_color = "mime" -/obj/item/clothing/shoes/combat //basic syndicate combat boots for nuke ops and mob corpses +/// basic syndicate combat boots for nuke ops and mob corpses +/obj/item/clothing/shoes/combat name = "combat boots" desc = "High speed, low drag combat boots." w_class = WEIGHT_CLASS_NORMAL @@ -14,7 +15,8 @@ strip_delay = 70 resistance_flags = NONE -/obj/item/clothing/shoes/combat/swat //overpowered gimmick boots +/// overpowered gimmick boots +/obj/item/clothing/shoes/combat/swat name = "\improper SWAT shoes" desc = "High speed, no drag combat boots." permeability_coefficient = 0.01 @@ -57,7 +59,8 @@ desc = "A pair of purple rubber boots, designed to prevent slipping on wet surfaces while also drying them." icon_state = "galoshes_dry" -/obj/item/clothing/shoes/galoshes/dry/lightweight /// for red janitor ert. +/// / for red janitor ert. +/obj/item/clothing/shoes/galoshes/dry/lightweight name = "lightweight absorbent galoshes" desc = "A pair of expensive looking lightweight rubber boots, designed to prevent slipping on wet surfaces while also drying them." slowdown = NONE diff --git a/code/modules/clothing/suits/armor_suits.dm b/code/modules/clothing/suits/armor_suits.dm index 47c2b602ff78..7250245bbeb2 100644 --- a/code/modules/clothing/suits/armor_suits.dm +++ b/code/modules/clothing/suits/armor_suits.dm @@ -648,7 +648,8 @@ disable(rand(2, 5)) return TRUE -/obj/item/clothing/suit/armor/reactive/random //Spawner for random reactive armor +/// Spawner for random reactive armor +/obj/item/clothing/suit/armor/reactive/random name = "Random Reactive Armor" /obj/item/clothing/suit/armor/reactive/random/Initialize(mapload) diff --git a/code/modules/clothing/suits/misc_suits.dm b/code/modules/clothing/suits/misc_suits.dm index 1165ab500570..c7c3ed8b9d3a 100644 --- a/code/modules/clothing/suits/misc_suits.dm +++ b/code/modules/clothing/suits/misc_suits.dm @@ -325,7 +325,8 @@ flags = BLOCKHAIR flags_inv = HIDEEARS -/obj/item/clothing/suit/hooded/bee_costume // It's Hip! +/// It's Hip! +/obj/item/clothing/suit/hooded/bee_costume name = "bee costume" desc = "Bee the true Queen!" icon_state = "bee" @@ -344,14 +345,16 @@ flags_inv = HIDEEARS sprite_sheets = list("Vox" = 'icons/mob/clothing/species/vox/head.dmi') -/obj/item/clothing/suit/bloated_human //OH MY GOD WHAT HAVE YOU DONE!?!?!? +/// OH MY GOD WHAT HAVE YOU DONE!?!?!? +/obj/item/clothing/suit/bloated_human name = "bloated human suit" desc = "A horribly bloated suit made from human skins." icon_state = "lingspacesuit" item_state = "lingspacesuit" body_parts_covered = UPPER_TORSO|LOWER_TORSO|ARMS -/obj/item/clothing/suit/draculacoat // Bleh! +/// Bleh! +/obj/item/clothing/suit/draculacoat name = "transylvanian coat" desc = "What is a spessman? A miserable little pile of secrets." icon_state = "draculacoat" diff --git a/code/modules/clothing/under/accessories/accessory.dm b/code/modules/clothing/under/accessories/accessory.dm index 764ff21a70d3..364826102611 100644 --- a/code/modules/clothing/under/accessories/accessory.dm +++ b/code/modules/clothing/under/accessories/accessory.dm @@ -133,7 +133,8 @@ icon_state = "horribletie" item_color = "horribletie" -/obj/item/clothing/accessory/waistcoat // No overlay +/// No overlay +/obj/item/clothing/accessory/waistcoat name = "waistcoat" desc = "For some classy, murderous fun." icon_state = "waistcoat" @@ -311,7 +312,8 @@ desc = "An award issued by the Quartermaster to supply staff dedicated to being effective." channel = "Supply" -/obj/item/clothing/accessory/medal/recruiter // Prize for the NT Recruiter emagged arcade +/// Prize for the NT Recruiter emagged arcade +/obj/item/clothing/accessory/medal/recruiter name = "nanotrasen recruiter medal" desc = "A prize for those who completed the company's most difficult training, use it to earn the respect of everyone in human resources." @@ -363,7 +365,8 @@ desc = "An award which represents magnificant contributions to the HRD-MDE project in the form of analysing Bubblegum, and the related blood space." channel = null -/obj/item/clothing/accessory/medal/gold/heroism/hardmode_full //Kill every hardmode boss. In a shift. Good luck. +/// Kill every hardmode boss. In a shift. Good luck. +/obj/item/clothing/accessory/medal/gold/heroism/hardmode_full name = "medal of incredible dedication" desc = "An extremely rare golden medal awarded only by CentComm. This medal was issued for miners who went above and beyond for the HRD-MDE project. Engraved on it is the phrase 'mori quam foedari'..." channel = null @@ -489,7 +492,8 @@ //SCARVES// /////////// -/obj/item/clothing/accessory/scarf // No overlay +/// No overlay +/obj/item/clothing/accessory/scarf name = "scarf" desc = "A stylish scarf. The perfect winter accessory for those with a keen fashion sense, and those who just can't handle a cold breeze on their necks." dog_fashion = /datum/dog_fashion/head diff --git a/code/modules/clothing/under/color.dm b/code/modules/clothing/under/color.dm index 255e7432b884..33dc2ab3c39f 100644 --- a/code/modules/clothing/under/color.dm +++ b/code/modules/clothing/under/color.dm @@ -125,7 +125,8 @@ item_state = "p_suit" item_color = "purple" -/obj/item/clothing/under/color/purple/sensor //for jani ert +/// for jani ert +/obj/item/clothing/under/color/purple/sensor sensor_mode = SENSOR_COORDS random_sensor = FALSE diff --git a/code/modules/clothing/under/costumes.dm b/code/modules/clothing/under/costumes.dm index 7a851e438398..775802ef24d7 100644 --- a/code/modules/clothing/under/costumes.dm +++ b/code/modules/clothing/under/costumes.dm @@ -138,7 +138,8 @@ item_state = "psyamp" item_color = "psyamp" -/obj/item/clothing/under/psysuit //Don't modify the path, used by a fluff item +/// Don't modify the path, used by a fluff item +/obj/item/clothing/under/psysuit name = "dark undersuit" desc = "A thick, layered grey undersuit lined with power cables. Feels a little like wearing an electrical storm." icon_state = "psysuit" diff --git a/code/modules/clothing/under/jobs/medical_jumpsuits.dm b/code/modules/clothing/under/jobs/medical_jumpsuits.dm index 8dedff438e19..7a8258f77c0c 100644 --- a/code/modules/clothing/under/jobs/medical_jumpsuits.dm +++ b/code/modules/clothing/under/jobs/medical_jumpsuits.dm @@ -149,7 +149,8 @@ item_state = "psychturtle" item_color = "psychturtle" -/obj/item/clothing/under/rank/medical/gown //Seems like it should be here for organisational purposes +/// Seems like it should be here for organisational purposes +/obj/item/clothing/under/rank/medical/gown name = "medical gown" desc = "a flimsy examination gown, the back ties never close." icon_state = "medicalgown" diff --git a/code/modules/crafting/recipes.dm b/code/modules/crafting/recipes.dm index 27a767271d6f..e178aa0c44e5 100644 --- a/code/modules/crafting/recipes.dm +++ b/code/modules/crafting/recipes.dm @@ -818,7 +818,8 @@ category = CAT_PRIMAL alert_admins_on_craft = TRUE -/datum/crafting_recipe/rake //Category resorting incoming +/// Category resorting incoming +/datum/crafting_recipe/rake name = "Rake" time = 30 reqs = list(/obj/item/stack/sheet/wood = 5) diff --git a/code/modules/customitems/item_defines.dm b/code/modules/customitems/item_defines.dm index afa07900913f..690d19e63030 100644 --- a/code/modules/customitems/item_defines.dm +++ b/code/modules/customitems/item_defines.dm @@ -16,7 +16,8 @@ /obj/item/fluff var/used = FALSE -/obj/item/fluff/tattoo_gun // Generic tattoo gun, make subtypes for different folks +/// Generic tattoo gun, make subtypes for different folks +/obj/item/fluff/tattoo_gun name = "disposable tattoo pen" desc = "A cheap plastic tattoo application pen." icon = 'icons/obj/custom_items.dmi' @@ -112,7 +113,8 @@ else to_chat(user, "[src] is out of ink!") -/obj/item/fluff/bird_painter // BirdtTalon: Kahkiri +/// BirdtTalon: Kahkiri +/obj/item/fluff/bird_painter name = "Orb of Onyx" desc = "It is imbued with such dark power as to corrupt the very appearance of those who gaze into its depths." icon_state = "bird_orb" @@ -126,7 +128,8 @@ to_chat(user, "You use [src] on yourself.") qdel(src) -/obj/item/claymore/fluff // MrBarrelrolll: Maximus Greenwood +/// MrBarrelrolll: Maximus Greenwood +/obj/item/claymore/fluff name = "Greenwood's Blade" desc = "A replica claymore with strange markings scratched into the blade." force = 5 @@ -135,7 +138,8 @@ /obj/item/claymore/fluff/hit_reaction(mob/living/carbon/human/owner, atom/movable/hitby, attack_text = "the attack", final_block_chance = 0, damage = 0, attack_type = MELEE_ATTACK) return 0 -/obj/item/fluff/rsik_katana //Xydonus: Rsik Ugsharki Atan +/// Xydonus: Rsik Ugsharki Atan +/obj/item/fluff/rsik_katana name = "ceremonial katana" desc = "A shimmering ceremonial golden katana, for the most discerning class of ninja. Looks expensive, and fragile." icon = 'icons/obj/custom_items.dmi' @@ -156,31 +160,36 @@ user.visible_message("[user] tries to stab [src] into [user.p_their()] stomach! Except [src] shatters! [user.p_they(TRUE)] look[user.p_s()] as if [user.p_they()] might die from the shame.") return BRUTELOSS -/obj/item/crowbar/fluff/zelda_creedy_1 // Zomgponies: Griffin Rowley +/// Zomgponies: Griffin Rowley +/obj/item/crowbar/fluff/zelda_creedy_1 name = "Zelda's Crowbar" desc = "A pink crowbar that has an engraving that reads, 'To Zelda. Love always, Dawn'" icon = 'icons/obj/custom_items.dmi' icon_state = "zeldacrowbar" item_state = "crowbar" -/obj/item/clothing/glasses/monocle/fluff/trubus //Trubus: Wolf O'Shaw +/// Trubus: Wolf O'Shaw +/obj/item/clothing/glasses/monocle/fluff/trubus name = "Gold Thermal Eyepatch" desc = "Wolf's non-functional thermal eyepatch." icon = 'icons/obj/custom_items.dmi' icon_state = "wolf_eyepatch" -/obj/item/clothing/glasses/meson/fluff/book_berner_1 // Adrkiller59: Adam Cooper +/// Adrkiller59: Adam Cooper +/obj/item/clothing/glasses/meson/fluff/book_berner_1 name = "bespectacled mesonic surveyors" desc = "One of the older meson scanner models retrofitted to perform like its modern counterparts." icon = 'icons/obj/custom_items.dmi' icon_state = "book_berner_1" -/obj/item/clothing/glasses/sunglasses_fake/fluff/kaki //Rapidvalj: Kakicharakiti +/// Rapidvalj: Kakicharakiti +/obj/item/clothing/glasses/sunglasses_fake/fluff/kaki name = "broken thermonocle" desc = "A weathered Vox thermonocle, doesn't seem to work anymore." icon_state = "thermoncle" -/obj/item/fluff/rapid_wheelchair_kit //Rapidvalj: Hakikarahiti +/// Rapidvalj: Hakikarahiti +/obj/item/fluff/rapid_wheelchair_kit name = "wheelchair conversion kit" desc = "An assorted set of exchangable parts for a wheelchair." icon_state = "modkit" @@ -208,31 +217,36 @@ desc = "A custom made zippo lighter." icon = 'icons/obj/custom_items.dmi' -/obj/item/lighter/zippo/fluff/purple // GodOfOreos: Jason Conrad +/// GodOfOreos: Jason Conrad +/obj/item/lighter/zippo/fluff/purple name = "purple engraved zippo" desc = "All craftsspacemanship is of the highest quality. It is encrusted with refined plasma sheets. On the item is an image of a dwarf and the words 'Strike the Earth!' etched onto the side." icon_state = "zippo-purple" item_state = "zippo-purple" -/obj/item/lighter/zippo/fluff/michael_guess_1 // mrbits: Callista Gold +/// mrbits: Callista Gold +/obj/item/lighter/zippo/fluff/michael_guess_1 name = "engraved lighter" desc = "A golden lighter, engraved with some ornaments and a G." icon_state = "zippo-guess" item_state = "zippo-gold" -/obj/item/lighter/zippo/fluff/duckchan // Duckchan: Rybys Romney +/// Duckchan: Rybys Romney +/obj/item/lighter/zippo/fluff/duckchan name = "Monogrammed Zippo" desc = " A shiny purple zippo lighter, engraved with Rybys Romney and BuzzPing's name, with a festive green flame." icon_state = "zippo-duckchan" item_state = "zippo-purple" -/obj/item/lighter/zippo/fluff/warriorstar // Warriorstar: DEADLOCK +/// Warriorstar: DEADLOCK +/obj/item/lighter/zippo/fluff/warriorstar name = "zippo" desc = "The lighter is made of a pastel purple metal which seems to glimmer even in complete darkness." icon_state = "zippo-warriorstar" item_state = "zippo-purple" -/obj/item/fluff/dogwhistle //phantasmicdream: Zeke Varloss +/// phantasmicdream: Zeke Varloss +/obj/item/fluff/dogwhistle name = "Sax's whistle" desc = "This whistle seems to have a strange aura about it. Maybe you should blow on it?" icon = 'icons/obj/custom_items.dmi' @@ -256,7 +270,8 @@ user.drop_item() qdel(src) -/obj/item/storage/toolbox/fluff/lunchbox //godoforeos: Jason Conrad +/// godoforeos: Jason Conrad +/obj/item/storage/toolbox/fluff/lunchbox name = "lunchpail" desc = "A simple black lunchpail." icon = 'icons/obj/custom_items.dmi' @@ -297,7 +312,8 @@ to_chat(target, "You comb your tail with [src].") used = TRUE -/obj/item/fluff/desolate_coat_kit //DesolateG: Micheal Smith +/// DesolateG: Micheal Smith +/obj/item/fluff/desolate_coat_kit name = "armored jacket conversion kit" desc = "Flaps of dark fabric, probably used to somehow modify some sort of an armored garment. Won't help with protection, though." icon_state = "modkit" @@ -328,7 +344,8 @@ user.update_inv_wear_suit() qdel(src) -/obj/item/fluff/fei_gasmask_kit //Fei Hazelwood: Tariq Yon-Dale +/// Fei Hazelwood: Tariq Yon-Dale +/obj/item/fluff/fei_gasmask_kit name = "gas mask conversion kit" desc = "A gas mask conversion kit." icon_state = "modkit" @@ -354,7 +371,8 @@ to_chat(user, "You can't modify [target]!") -/obj/item/fluff/desolate_baton_kit //DesolateG: Micheal Smith +/// DesolateG: Micheal Smith +/obj/item/fluff/desolate_baton_kit name = "stun baton conversion kit" desc = "Some sci-fi looking parts for a stun baton." icon = 'icons/obj/custom_items.dmi' @@ -380,7 +398,8 @@ to_chat(user, "You can't modify [target]!") -/obj/item/fluff/cardgage_helmet_kit //captain cardgage: Richard Ulery +/// captain cardgage: Richard Ulery +/obj/item/fluff/cardgage_helmet_kit name = "welding helmet modkit" desc = "Some spraypaint and a stencil, perfect for painting flames onto a welding helmet!" icon_state = "modkit" @@ -402,7 +421,8 @@ return to_chat(user, "You can't modify [target]!") -/obj/item/fluff/merchant_sallet_modkit //Travelling Merchant: Trav Noble. This is what they spawn in with +/// Travelling Merchant: Trav Noble. This is what they spawn in with +/obj/item/fluff/merchant_sallet_modkit name = "SG Helmet modkit" desc = "A modkit that can make most helmets look like a Shellguard Helmet." icon_state = "modkit" @@ -445,7 +465,8 @@ else to_chat(user, "You can't modify [target]!") -/obj/item/fluff/k3_webbing_modkit //IK3I: Yakikatachi +/// IK3I: Yakikatachi +/obj/item/fluff/k3_webbing_modkit name = "webbing modkit" desc = "A modkit that can be used to turn certain vests and labcoats into lightweight webbing" icon_state = "modkit" @@ -470,7 +491,8 @@ to_chat(user, "You can't modify [target]!") // These two fluff items are commented out due to the transfer to MODsuits breaking these. Sprites are still in custom_items.dmi , but they need a resprite to work with MODsuits. -/obj/item/fluff/pyro_wintersec_kit //DarkLordpyro: Valthorne Haliber +/// DarkLordpyro: Valthorne Haliber +/obj/item/fluff/pyro_wintersec_kit name = "winter sec conversion kit" desc = "A securirty hardsuit conversion kit." icon_state = "modkit" @@ -523,7 +545,8 @@ to_chat(user, "You can't modify [target]!") */ -/obj/item/fluff/sylus_conversion_kit //Decemviri: Sylus Cain +/// Decemviri: Sylus Cain +/obj/item/fluff/sylus_conversion_kit name = "cerberus pattern conversion kit" desc = "A securirty hardsuit conversion kit." icon_state = "modkit" @@ -589,53 +612,61 @@ //////////// Gloves ////////////// //////////// Eye Wear //////////// -/obj/item/clothing/glasses/hud/security/sunglasses/fluff/eyepro //T0EPIC4U: Ty Omaha +/// T0EPIC4U: Ty Omaha +/obj/item/clothing/glasses/hud/security/sunglasses/fluff/eyepro name = "Tacticool EyePro" desc = "Tacticool ballistic glasses, for making all operators look badass." icon = 'icons/obj/custom_items.dmi' icon_state = "eyepro" item_state = "eyepro" -/obj/item/clothing/glasses/hud/security/sunglasses/fluff/voxxyhud //LP Spartan: Kaskreyarawkta +/// LP Spartan: Kaskreyarawkta +/obj/item/clothing/glasses/hud/security/sunglasses/fluff/voxxyhud name = "VoxxyHUD" desc = "A worn down visor from a vox raider's gear, crudely ripped from its helmet and linked into the security systems of the station. The word 'Kask' is scratched into the side." icon = 'icons/obj/custom_items.dmi' icon_state = "hud-spartan" //////////// Hats //////////// -/obj/item/clothing/head/fluff/heather_winceworth // Regens: Heather Winceworth +/// Regens: Heather Winceworth +/obj/item/clothing/head/fluff/heather_winceworth name= "Heather's rose" desc= "A beautiful purple rose for your hair." icon= 'icons/obj/custom_items.dmi' icon_state = "hairflowerp" item_state = "hairflowerp" -/obj/item/clothing/head/valkyriehelmet //R3Valkyrie: Rikki +/// R3Valkyrie: Rikki +/obj/item/clothing/head/valkyriehelmet name = "charred visor" desc = "A visor of alien origin, charred by fire and completely non-functioning. It's been impeccably polished, shiny!" icon = 'icons/obj/custom_items.dmi' icon_state = "charred_visor" species_restricted = list("Vox") -/obj/item/clothing/head/bearpelt/fluff/polar //Gibson1027: Sploosh +/// Gibson1027: Sploosh +/obj/item/clothing/head/bearpelt/fluff/polar name = "polar bear pelt hat" desc = "Fuzzy, and also stained with blood." icon = 'icons/obj/custom_items.dmi' icon_state = "polarbearpelt" -/obj/item/clothing/head/fluff/sparkyninja_beret // Sparkyninja: Neil Wilkinson +/// Sparkyninja: Neil Wilkinson +/obj/item/clothing/head/fluff/sparkyninja_beret name = "royal marines commando beret" desc = "Dark Green beret with an old insignia on it." icon = 'icons/obj/custom_items.dmi' icon_state = "sparkyninja_beret" -/obj/item/clothing/head/beret/fluff/sigholt //sigholtstarsong: Sigholt Starsong +/// sigholtstarsong: Sigholt Starsong +/obj/item/clothing/head/beret/fluff/sigholt name = "Lieutenant Starsong's beret" desc = "This beret bears insignia of the SOLGOV Marine Corps 417th Regiment, 2nd Battalion, Bravo Company. It looks meticulously maintained." icon_state = "beret_hos" item_state = "beret_hos" -/obj/item/clothing/head/pirate/fluff/stumpy //MrFroztee: Stumpy +/// MrFroztee: Stumpy +/obj/item/clothing/head/pirate/fluff/stumpy name = "The Sobriety Skullcap" desc = "A hat suited for the king of the pirates" icon_state = "pirate" @@ -655,19 +686,22 @@ if(H.head == src) H.Slur(6 SECONDS) //always slur -/obj/item/clothing/head/beret/fluff/linda //Epic_Charger: Linda Clark +/// Epic_Charger: Linda Clark +/obj/item/clothing/head/beret/fluff/linda name = "Green beret" desc = "A beret, an artist's favorite headwear. This one has two holes cut on the edges." icon = 'icons/obj/custom_items.dmi' icon_state = "linda_beret" -/obj/item/clothing/head/fluff/kaki //Rapidvalj: Kakicharakiti +/// Rapidvalj: Kakicharakiti +/obj/item/clothing/head/fluff/kaki name = "sleek fancy leader hat" desc = "A uniquely colored vox leader hat. Has some signs of wear." icon = 'icons/obj/custom_items.dmi' icon_state = "kakicharakiti" -/obj/item/clothing/head/helmet/fluff/merchant_sallet //Travelling Merchant: Trav Noble. This >>IS NOT<< what they spawn in with +/// Travelling Merchant: Trav Noble. This >>IS NOT<< what they spawn in with +/obj/item/clothing/head/helmet/fluff/merchant_sallet name = "Shellguard Helmet" desc = "A Shellguard Helmet with the name Noble written on the inside." icon = 'icons/obj/custom_items.dmi' @@ -715,7 +749,8 @@ user.update_inv_head() return 1 -/obj/item/clothing/head/beret/fluff/elo //V-Force_Bomber: E.L.O. +/// V-Force_Bomber: E.L.O. +/obj/item/clothing/head/beret/fluff/elo name = "E.L.O.'s medical beret" desc = "E.L.O.s personal medical beret, issued by Nanotrassen and awarded along with her medal." icon = 'icons/obj/custom_items.dmi' @@ -729,7 +764,8 @@ adjust_flavour = null sprite_sheets = null -/obj/item/clothing/suit/storage/labcoat/fluff/pulsecoat //ozewse : Daniel Harper : Donated to them by Runemeds, who is the original donor. +/// ozewse : Daniel Harper : Donated to them by Runemeds, who is the original donor. +/obj/item/clothing/suit/storage/labcoat/fluff/pulsecoat name = "EMT pulse coat" desc = "An EMT labcoat modified to track the wearer's heartbeat. It's so worn out that it doesn't seem to accurately track heartbeat anymore. Also, the zipper is stuck." icon = 'icons/obj/custom_items.dmi' @@ -738,7 +774,8 @@ ignore_suitadjust = 1 actions_types = list() -/obj/item/clothing/suit/jacket/miljacket/patch // sniper_fairy : P.A.T.C.H. +/// sniper_fairy : P.A.T.C.H. +/obj/item/clothing/suit/jacket/miljacket/patch name = "custom purple military jacket" desc = "A canvas jacket styled after classical American military garb. Feels sturdy, yet comfortable. This one has a medical patch on it." icon = 'icons/obj/custom_items.dmi' @@ -785,20 +822,23 @@ . = ..() -/obj/item/clothing/suit/fluff/dusty_jacket //ComputerlessCitizen: Screech +/// ComputerlessCitizen: Screech +/obj/item/clothing/suit/fluff/dusty_jacket name = "Dusty Jacket" desc = "A worn leather jacket. Some burn holes have been patched." body_parts_covered = UPPER_TORSO|LOWER_TORSO|LEGS|ARMS icon_state = "dusty_jacket" -/obj/item/clothing/suit/fluff/cheeky_sov_coat //CheekyCrenando: Srusu Rskuzu +/// CheekyCrenando: Srusu Rskuzu +/obj/item/clothing/suit/fluff/cheeky_sov_coat name = "Srusu's Greatcoat" desc = "A heavy wool Soviet-style greatcoat. A name is written in fancy handwriting on the inside tag: Srusu Rskuzu" icon = 'icons/obj/custom_items.dmi' item_state = "cheeky_sov_coat" icon_state = "cheeky_sov_coat" -/obj/item/clothing/suit/fluff/supplymaster_jacket //Denthamos: Henry Grandpa Gadow +/// Denthamos: Henry Grandpa Gadow +/obj/item/clothing/suit/fluff/supplymaster_jacket name = "faded NT Supply Master's Coat" desc = "A faded leather overcoat bearing a worn out badge from the NAS Crescent on the shoulder, and a designation tag of Supply Master on the front. A tarnished gold nameplate says H.Gadow on it." icon_state = "supplymaster_jacket_open" @@ -811,14 +851,16 @@ actions_types = list(/datum/action/item_action/button) adjust_flavour = "unbutton" -/obj/item/clothing/suit/storage/labcoat/fluff/aeneas_rinil //Socialsystem: Lynn Fea +/// Socialsystem: Lynn Fea +/obj/item/clothing/suit/storage/labcoat/fluff/aeneas_rinil name = "Robotics labcoat" desc = "A labcoat with a few markings denoting it as the labcoat of roboticist." icon = 'icons/obj/custom_items.dmi' icon_state = "aeneasrinil_open" sprite_sheets = null -/obj/item/clothing/suit/jacket/fluff/kidosvest // Anxipal: Kido Qasteth +/// Anxipal: Kido Qasteth +/obj/item/clothing/suit/jacket/fluff/kidosvest name = "Kido's Vest" desc = "A rugged leather vest with a tag labelled \"Men of Mayhem.\"" icon = 'icons/obj/custom_items.dmi' @@ -829,7 +871,8 @@ adjust_flavour = null sprite_sheets = null -/obj/item/clothing/suit/jacket/fluff/jacksvest // Anxipal: Jack Harper +/// Anxipal: Jack Harper +/obj/item/clothing/suit/jacket/fluff/jacksvest name = "Jack's vest" desc = "A rugged leather vest with a tag labelled \"President\"." icon = 'icons/obj/custom_items.dmi' @@ -839,7 +882,8 @@ adjust_flavour = null sprite_sheets = null -/obj/item/clothing/suit/fluff/kluys // Kluys: Cripty Pandaen +/// Kluys: Cripty Pandaen +/obj/item/clothing/suit/fluff/kluys name = "Nano Fibre Jacket" desc = "A Black Suit made out of nanofibre. The newest of cyberpunk fashion using hightech liquid to solid materials." icon = 'icons/obj/custom_items.dmi' @@ -870,38 +914,44 @@ return usr.update_inv_wear_suit() -/obj/item/clothing/suit/storage/labcoat/fluff/red // Sweetjealousy: Sophie Faust-Noms +/// Sweetjealousy: Sophie Faust-Noms +/obj/item/clothing/suit/storage/labcoat/fluff/red name = "red labcoat" desc = "A suit that protects against minor chemical spills. Has a red stripe on the shoulders and rolled up sleeves." icon = 'icons/obj/custom_items.dmi' icon_state = "labcoat_red_open" sprite_sheets = null -/obj/item/clothing/suit/storage/labcoat/fluff/ionward_labcoat // Ionward: Gemini +/// Ionward: Gemini +/obj/item/clothing/suit/storage/labcoat/fluff/ionward_labcoat name = "Technocracy labcoat" desc = "A thin, faded, carbon fiber labcoat. On the back, a Technocracy vessel's logo. Inside, the name 'Gemini' is printed on the collar." icon = 'icons/obj/custom_items.dmi' icon_state = "ionward_labcoat_open" sprite_sheets = null -/obj/item/clothing/suit/fluff/stobarico_greatcoat // Stobarico: F.U.R.R.Y +/// Stobarico: F.U.R.R.Y +/obj/item/clothing/suit/fluff/stobarico_greatcoat name = "\improper F.U.R.R.Y's Nanotrasen Greatcoat" desc = "A greatcoat with Nanotrasen colors." icon = 'icons/obj/custom_items.dmi' icon_state = "stobarico_jacket" -/obj/item/clothing/suit/hooded/hoodie/fluff/linda // Epic_Charger: Linda Clark +/// Epic_Charger: Linda Clark +/obj/item/clothing/suit/hooded/hoodie/fluff/linda name = "Green Nanotrasen Hoodie" desc = "A green hoodie with the Nanotrasen logo on the back. It looks weathered." icon = 'icons/obj/custom_items.dmi' icon_state = "linda_hoodie" hoodtype = /obj/item/clothing/head/hooded/hood/fluff/linda -/obj/item/clothing/head/hooded/hood/fluff/linda //Epic_Charger: Linda Clark +/// Epic_Charger: Linda Clark +/obj/item/clothing/head/hooded/hood/fluff/linda icon_state = "greenhood" -/obj/item/clothing/suit/hooded/hoodie/hylo //Hylocereus: Sam Aria +/// Hylocereus: Sam Aria +/obj/item/clothing/suit/hooded/hoodie/hylo name = "worn assymetrical hoodie" desc = "A soft, cozy longline hoodie. It looks old and worn, but well cared for. There's no label, but a series of dates and names is penned on a scrap of fabric sewn on the inside of the left side of the chest - 'Sam Aria' is scrawled atop them all, next to the words 'Please Remember'." icon = 'icons/obj/custom_items.dmi' @@ -912,7 +962,8 @@ icon = 'icons/obj/custom_items.dmi' icon_state = "sam_hood" -/obj/item/clothing/suit/hooded/fluff/bone //Doru7: Jack Bone +/// Doru7: Jack Bone +/obj/item/clothing/suit/hooded/fluff/bone name = "skeleton suit" desc = "A spooky full-body suit! This one doesn't glow in the dark." body_parts_covered = HEAD|UPPER_TORSO|LOWER_TORSO|LEGS|ARMS @@ -924,7 +975,8 @@ icon = 'icons/obj/custom_items.dmi' icon_state = "skeleton_hood" -/obj/item/clothing/suit/armor/shodanscoat // RazekPraxis: SHODAN +/// RazekPraxis: SHODAN +/obj/item/clothing/suit/armor/shodanscoat name = "SHODAN's Captain's Coat" desc = "A black coat with gold trim and an old US Chevron printed on the back. Edgy." icon = 'icons/obj/custom_items.dmi' @@ -962,7 +1014,8 @@ to_chat(user, "You turn [src]'s lighting system [flavour].") user.update_inv_wear_suit() -/obj/item/clothing/suit/hooded/hoodie/fluff/xantholne // Xantholne: Meex Zwichsnicrur +/// Xantholne: Meex Zwichsnicrur +/obj/item/clothing/suit/hooded/hoodie/fluff/xantholne name = "stripped winter coat" desc = "A velvety smooth black winter coat with white and red stripes on the side." icon = 'icons/obj/custom_items.dmi' @@ -972,7 +1025,8 @@ allowed = list(/obj/item/flashlight, /obj/item/tank/internals/emergency_oxygen, /obj/item/toy, /obj/item/storage/fancy/cigarettes, /obj/item/lighter) -/obj/item/clothing/head/hooded/hood/fluff/xantholne // Xantholne: Meex Zwichsnicrur +/// Xantholne: Meex Zwichsnicrur +/obj/item/clothing/head/hooded/hood/fluff/xantholne name = "black winter hood" desc = "A black hood attached to a stripped winter coat." icon = 'icons/obj/custom_items.dmi' @@ -981,7 +1035,8 @@ flags = BLOCKHAIR flags_inv = HIDEEARS -/obj/item/clothing/suit/hooded/hoodie/fluff/xydonus //Xydonus: Rsik Ugsharki Atan | Based off of the bomber jacket, but with a hood slapped on (for allowed suit storage) +/// Xydonus: Rsik Ugsharki Atan | Based off of the bomber jacket, but with a hood slapped on (for allowed suit storage) +/obj/item/clothing/suit/hooded/hoodie/fluff/xydonus name = "custom fit bomber jacket" desc = "Made for Unathi who likes to show off their big horns." icon = 'icons/obj/custom_items.dmi' @@ -1001,12 +1056,14 @@ flags = BLOCKHAIR flags_inv = HIDEEARS -/obj/item/clothing/suit/fluff/pineapple //Pineapple Salad: Dan Jello +/// Pineapple Salad: Dan Jello +/obj/item/clothing/suit/fluff/pineapple name = "red trench coat" desc = "A red coat with cheaply made plastic accessories." icon_state = "pineapple_trench" -/obj/item/fluff/pinapplehairgel ////Pineapple Salad: Dan Jello +/// //Pineapple Salad: Dan Jello +/obj/item/fluff/pinapplehairgel name = "slime hair gel" desc = "A bottle containing extra..material..for custom 'hair' styling." icon = 'icons/obj/custom_items.dmi' @@ -1027,7 +1084,8 @@ -/obj/item/clothing/suit/hooded/wintercoat/fluff/shesi //MrSynnester : Shesi Skaklas +/// MrSynnester : Shesi Skaklas +/obj/item/clothing/suit/hooded/wintercoat/fluff/shesi name = "custom made winter coat" desc = "A custom made winter coat with the arms removed. Looks comfy." icon = 'icons/obj/custom_items.dmi' @@ -1037,7 +1095,8 @@ body_parts_covered = UPPER_TORSO|LOWER_TORSO cold_protection = UPPER_TORSO|LOWER_TORSO -/obj/item/clothing/head/hooded/hood/fluff/shesi //MrSynnester : Shesi Skaklas +/// MrSynnester : Shesi Skaklas +/obj/item/clothing/head/hooded/hood/fluff/shesi name = "custom made winter hood" desc = "A custom made winter coat hood. Looks comfy." icon = 'icons/obj/custom_items.dmi' @@ -1046,7 +1105,8 @@ flags = BLOCKHAIR flags_inv = HIDEEARS -/obj/item/clothing/suit/jacket/dtx //AffectedArc07: DTX +/// AffectedArc07: DTX +/obj/item/clothing/suit/jacket/dtx name = "telecommunications bomber jacket" desc = "Looks like something only a nerd would buy. Has a tag inside reading Property of DTX." icon = 'icons/obj/custom_items.dmi' @@ -1070,7 +1130,8 @@ "Grey" = 'icons/mob/clothing/species/grey/under/donator.dmi' ) -/obj/item/clothing/under/fluff/counterfeitguise_uniform // thatdanguy23 : Rissa Williams +/// thatdanguy23 : Rissa Williams +/obj/item/clothing/under/fluff/counterfeitguise_uniform icon = 'icons/obj/custom_items.dmi' name = "Rissa's hand-me-downs" desc = "An old, hand-me-down baggy sweater and sweatpants combo. A label on the neck reads 'RISSA' in scruffy handwriting." @@ -1080,7 +1141,8 @@ item_state = "counterfeitguise" item_color = "counterfeitguise" -/obj/item/clothing/under/fluff/benjaminfallout // Benjaminfallout: Pretzel Brassheart +/// Benjaminfallout: Pretzel Brassheart +/obj/item/clothing/under/fluff/benjaminfallout icon = 'icons/obj/custom_items.dmi' name = "Pretzel's dress" desc = "A nice looking dress" @@ -1088,7 +1150,8 @@ item_state = "fallout_dress" item_color = "fallout_dress" -/obj/item/clothing/under/fluff/soviet_casual_uniform // Norstead : Natalya Sokolova +/// Norstead : Natalya Sokolova +/obj/item/clothing/under/fluff/soviet_casual_uniform icon = 'icons/obj/custom_items.dmi' name = "Soviet Casual Uniform" desc = "Female U.S.S.P. casual wear. Dlya Rodiny!" @@ -1096,7 +1159,8 @@ item_state = "soviet_casual_uniform" item_color = "soviet_casual_uniform" -/obj/item/clothing/under/fluff/kharshai // Kharshai: Athena Castile +/// Kharshai: Athena Castile +/obj/item/clothing/under/fluff/kharshai name = "Castile formal outfit" desc = "A white and gold formal uniform, accompanied by a small pin with the numbers '004' etched upon it." icon = 'icons/obj/custom_items.dmi' @@ -1104,7 +1168,8 @@ item_state = "castile_dress" item_color = "castile_dress" -/obj/item/clothing/under/fluff/xantholne //Xantholne: Meex Zwichsnicrur +/// Xantholne: Meex Zwichsnicrur +/obj/item/clothing/under/fluff/xantholne name = "Stripped Shorts and Shirt" desc = "A silky pair of dark shorts with a matching shirt. The shirt's collar has a tag on the inside that reads 'Meexy' on it." icon = 'icons/obj/custom_items.dmi' @@ -1114,7 +1179,8 @@ item_state = "xantholne" item_color = "xantholne" -/obj/item/clothing/under/fluff/elishirt // FlattestGuitar9: Eli Randolph +/// FlattestGuitar9: Eli Randolph +/obj/item/clothing/under/fluff/elishirt name = "casual dress shirt" desc = "A soft, white dress shirt paired up with black suit pants. The set looks comfortable." icon = 'icons/obj/custom_items.dmi' @@ -1123,7 +1189,8 @@ item_color = "elishirt" displays_id = FALSE -/obj/item/clothing/under/fluff/jay_turtleneck // Jayfeather: Jay Wingler +/// Jayfeather: Jay Wingler +/obj/item/clothing/under/fluff/jay_turtleneck name = "Mar's Pattern Custom Turtleneck" desc = "It seems to be lightly dusted in orange fuzz, and damp with the smell of anti-freeze. It has a strange symbol in the middle." icon = 'icons/obj/custom_items.dmi' @@ -1132,11 +1199,13 @@ item_color = "jaywingler" displays_id = FALSE -/obj/item/clothing/under/psysuit/fluff/isaca_sirius_1 // Xilia: Isaca Sirius +/// Xilia: Isaca Sirius +/obj/item/clothing/under/psysuit/fluff/isaca_sirius_1 name = "Isaca's suit" desc = "Black, comfortable and nicely fitting suit. Made not to hinder the wearer in any way. Made of some exotic fabric. And some strange glowing jewel at the waist. Name labels says; Property of Isaca Sirius; The Seeder." -/obj/item/clothing/under/fluff/jane_sidsuit // SyndiGirl: Zoey Scyth +/// SyndiGirl: Zoey Scyth +/obj/item/clothing/under/fluff/jane_sidsuit name = "NT-SID jumpsuit" desc = "A Nanotrasen Synthetic Intelligence Division jumpsuit, issued to 'volunteers'. On other people it looks fine, but right here a scientist has noted: on you it looks stupid." icon = 'icons/obj/custom_items.dmi' @@ -1164,7 +1233,8 @@ src.item_state = "[item_color]" usr.update_inv_w_uniform() -/obj/item/clothing/under/fluff/honourable // MrBarrelrolll: Maximus Greenwood +/// MrBarrelrolll: Maximus Greenwood +/obj/item/clothing/under/fluff/honourable name = "Viridi Protegat" desc = "A set of chainmail adorned with a hide mantle. \"Greenwood\" is engraved into the right breast." icon = 'icons/obj/clothing/under/costumes.dmi' @@ -1174,7 +1244,8 @@ displays_id = FALSE strip_delay = 100 -/obj/item/clothing/under/fluff/aegis //PlagueWalker: A.E.G.I.S. +/// PlagueWalker: A.E.G.I.S. +/obj/item/clothing/under/fluff/aegis name = "gilded waistcoat" desc = "This black, gold-trimmed, rather expensive-looking uniform laced with fine materials appears comfortable despite its stiffness." icon = 'icons/obj/custom_items.dmi' @@ -1185,7 +1256,8 @@ item_color = "aegisuniform" displays_id = FALSE -/obj/item/clothing/under/fluff/elo_turtleneck // vforcebomber: E.L.O. +/// vforcebomber: E.L.O. +/obj/item/clothing/under/fluff/elo_turtleneck name = "E.L.O's Turtleneck" desc = "This TurtleNeck belongs to the IPC E.L.O. And has her name sown into the upper left breast, a very wooly jumper." icon = 'icons/obj/custom_items.dmi' // for the floor sprite @@ -1195,13 +1267,15 @@ //////////// Masks //////////// -/obj/item/clothing/mask/bandana/fluff/dar //sasanek12: Dar'Konr +/// sasanek12: Dar'Konr +/obj/item/clothing/mask/bandana/fluff/dar name = "camo bandana" desc = "It's a worn-out bandana in camo paint" icon = 'icons/obj/custom_items.dmi' icon_state = "bandcamo" -/obj/item/clothing/mask/gas/sechailer/fluff/spartan //LP Spartan: Kaskreyarawkta +/// LP Spartan: Kaskreyarawkta +/obj/item/clothing/mask/gas/sechailer/fluff/spartan name = "minimal gasmask" desc = "Designed to cover as little of face as possible while still being a functional gasmask." icon = 'icons/obj/custom_items.dmi' @@ -1300,7 +1374,8 @@ item_state = "superior_boots" -/obj/item/nullrod/fluff/chronx //chronx100: Hughe O'Splash +/// chronx100: Hughe O'Splash +/obj/item/nullrod/fluff/chronx fluff_transformations = list(/obj/item/nullrod/fluff/chronx/scythe) /obj/item/nullrod/fluff/chronx/scythe @@ -1310,7 +1385,8 @@ icon_state = "chronx_scythe" item_state = "chronx_scythe" -/obj/item/clothing/head/fluff/chronx //chronx100: Hughe O'Splash +/// chronx100: Hughe O'Splash +/obj/item/clothing/head/fluff/chronx name = "Cthulhu's Hood" desc = "Hood worn by the worshipers of Cthulhu. You see a name inscribed in blood on the inside: Hughe O'Splash" icon = 'icons/obj/custom_items.dmi' @@ -1340,7 +1416,8 @@ var/datum/action/A = X A.UpdateButtonIcon() -/obj/item/clothing/suit/chaplain_hoodie/fluff/chronx //chronx100: Hughe O'Splash +/// chronx100: Hughe O'Splash +/obj/item/clothing/suit/chaplain_hoodie/fluff/chronx name = "Cthulhu's Robes" desc = "Robes worn by the worshipers of Cthulhu. You see a name inscribed in blood on the inside: Hughe O'Splash" icon = 'icons/obj/custom_items.dmi' @@ -1350,14 +1427,16 @@ adjust_flavour = "untransform" ignore_suitadjust = 0 -/obj/item/clothing/shoes/black/fluff/chronx //chronx100: Hughe O'Splash +/// chronx100: Hughe O'Splash +/obj/item/clothing/shoes/black/fluff/chronx name = "Cthulhu's Boots" desc = "Boots worn by the worshipers of Cthulhu. You see a name inscribed in blood on the inside: Hughe O'Splash" icon = 'icons/obj/custom_items.dmi' icon_state = "chronx_shoes" item_state = "chronx_shoes" -/obj/item/clothing/suit/armor/vest/fluff/tactical //m3hillus: Medusa Schlofield +/// m3hillus: Medusa Schlofield +/obj/item/clothing/suit/armor/vest/fluff/tactical name = "tactical armor vest" desc = "A tactical vest with armored plate inserts." icon = 'icons/obj/clothing/ties.dmi' @@ -1378,7 +1457,8 @@ "Grey" = 'icons/mob/clothing/species/grey/under/donator.dmi' ) -/obj/item/clothing/suit/jacket/fluff/elliot_windbreaker // DaveTheHeadcrab: Elliot Campbell +/// DaveTheHeadcrab: Elliot Campbell +/obj/item/clothing/suit/jacket/fluff/elliot_windbreaker name = "nylon windbreaker" desc = "A cheap nylon windbreaker, according to the tag it was manufactured in New Chiba, Earth.
The color reminds you of a television tuned to a dead channel." icon = 'icons/obj/custom_items.dmi' @@ -1388,7 +1468,8 @@ suit_adjusted = 1 sprite_sheets = null -/obj/item/storage/backpack/fluff/syndiesatchel //SkeletalElite: Rawkkihiki +/// SkeletalElite: Rawkkihiki +/obj/item/storage/backpack/fluff/syndiesatchel name= "Military Satchel" desc = "A well made satchel for military operations. Totally not made by an enemy corporation" icon = 'icons/obj/custom_items.dmi' @@ -1396,28 +1477,32 @@ item_state = null sprite_sheets = null -/obj/item/storage/backpack/fluff/krich_back //lizardzsi: Krichahka +/// lizardzsi: Krichahka +/obj/item/storage/backpack/fluff/krich_back name = "Voxcaster" desc = "Battered, Sol-made military radio backpack that had its speakers fried from playing Vox opera. The words 'Swift-Talon' are crudely scratched onto its side." icon = 'icons/obj/custom_items.dmi' icon_state = "voxcaster_fluff" item_state = null -/obj/item/storage/backpack/fluff/ssscratches_back //Ssscratches: Lasshy-Bot +/// Ssscratches: Lasshy-Bot +/obj/item/storage/backpack/fluff/ssscratches_back name = "CatPack" desc = "It's a backpack, but it's also a cat." icon = 'icons/obj/custom_items.dmi' icon_state = "ssscratches_backpack" item_state = null -/obj/item/storage/backpack/fluff/thebrew //Greey: Korala Ice +/// Greey: Korala Ice +/obj/item/storage/backpack/fluff/thebrew name = "The Brew" desc = "Amber colored backpack resembling a long lost friend, a spirit long forgotten." icon = 'icons/obj/custom_items.dmi' icon_state = "greeyfluff" item_state = "greeyfluff" -/obj/item/clothing/head/wizard/fake/fluff/dreamy //phantasmicdream : Dreamy Rockwall +/// phantasmicdream : Dreamy Rockwall +/obj/item/clothing/head/wizard/fake/fluff/dreamy name = "strange witch hat" desc = "A shapeshifting witch hat. A strange aura comes from it..." icon = 'icons/obj/custom_items.dmi' @@ -1447,7 +1532,8 @@ return 1 ..() -/obj/item/fluff/zekemirror //phantasmicdream : Zeke Varloss +/// phantasmicdream : Zeke Varloss +/obj/item/fluff/zekemirror name = "engraved hand mirror" desc = "A very classy hand mirror, with fancy detailing." icon = 'icons/obj/custom_items.dmi' @@ -1469,7 +1555,8 @@ to_chat(target, "You take time to admire yourself in [src], brushing your tendrils down and revealing their true length.") -/obj/item/clothing/accessory/necklace/locket/fluff/fethasnecklace //Fethas: Sefra'neem +/// Fethas: Sefra'neem +/obj/item/clothing/accessory/necklace/locket/fluff/fethasnecklace name = "Orange gemmed locket" desc = "A locket with a orange gem set on the front, the picture inside seems to be of a Tajaran." icon = 'icons/obj/custom_items.dmi' @@ -1478,7 +1565,8 @@ item_color = "fethasnecklace" slot_flags = SLOT_FLAG_MASK | SLOT_FLAG_TIE -/obj/item/bedsheet/fluff/hugosheet //HugoLuman: Dan Martinez +/// HugoLuman: Dan Martinez +/obj/item/bedsheet/fluff/hugosheet name = "Cosmic space blankie" desc = "Made from the dreams of space children everywhere." icon = 'icons/obj/custom_items.dmi' @@ -1489,13 +1577,15 @@ item_color = "sheetcosmos" -/obj/item/clothing/head/fluff/lfbowler //Lightfire: Hyperion +/// Lightfire: Hyperion +/obj/item/clothing/head/fluff/lfbowler name = "classy bowler hat" desc = "A very classy looking bowler hat." icon = 'icons/obj/custom_items.dmi' icon_state = "bowler_lightfire" -/obj/item/clothing/under/fluff/lfvicsuit //Lightfire: Hyperion +/// Lightfire: Hyperion +/obj/item/clothing/under/fluff/lfvicsuit name = "classy victorian suit" desc = "A blue and black victorian suit with silver buttons, very fancy!" icon = 'icons/obj/custom_items.dmi' @@ -1507,7 +1597,8 @@ displays_id = FALSE -/obj/item/fluff/lighty_plasman_modkit // LightFire53: Ikelos +/// LightFire53: Ikelos +/obj/item/fluff/lighty_plasman_modkit name = "plasmaman suit modkit" desc = "A kit containing nanites that are able to modify the look of a plasmaman suit and helmet without exposing the wearer to hostile environments." icon_state = "modkit" @@ -1553,11 +1644,13 @@ else to_chat(user, "You can't modify [target]!") -/obj/item/clothing/head/helmet/space/plasmaman/lf53_fluff // LightFire53: Ikelos +/// LightFire53: Ikelos +/obj/item/clothing/head/helmet/space/plasmaman/lf53_fluff icon_state = "ikelos_envirohelm" // New item needed because `initial(icon_state)` is used. icon = 'icons/obj/custom_items.dmi' -/obj/item/bikehorn/fluff/pinkbikehorn //Xerdies: Squiddle Toodle +/// Xerdies: Squiddle Toodle +/obj/item/bikehorn/fluff/pinkbikehorn name = "Honkinator5000" desc = "This horn may look ridiculous but is the new hot item for clowns in the Clown Empire. It has a fine print on its side reading: Property of Prince Honktertong the IV" icon = 'icons/obj/custom_items.dmi' @@ -1567,14 +1660,16 @@ icon_state = "teri_horn" item_state = "teri_horn" -/obj/item/clothing/accessory/medal/fluff/elo //V-Force_Bomber: E.L.O. +/// V-Force_Bomber: E.L.O. +/obj/item/clothing/accessory/medal/fluff/elo name = "distinguished medal of loyalty and excellence" desc = "This medal is cut into the shape of a Victoria Cross, and is awarded to those who have proven themselves to Nanotrasen with a long and successful career." icon = 'icons/obj/custom_items.dmi' icon_state = "elo-medal" item_color = "elo-medal" -/obj/item/clothing/suit/fluff/vetcoat //Furasian: Fillmoore Grayson +/// Furasian: Fillmoore Grayson +/obj/item/clothing/suit/fluff/vetcoat name = "Veteran Coat" desc = "An old, yet well-kept Nanotrasen uniform. Very few of its kind are still produced." icon = 'icons/obj/custom_items.dmi' @@ -1584,15 +1679,18 @@ item_state = "alchemistcoatblack" body_parts_covered = UPPER_TORSO|LOWER_TORSO|LEGS|ARMS -/obj/item/clothing/suit/fluff/vetcoat/red //Furasian: Fillmoore Grayson +/// Furasian: Fillmoore Grayson +/obj/item/clothing/suit/fluff/vetcoat/red icon_state = "alchemistcoatred" item_state = "alchemistcoatred" -/obj/item/clothing/suit/fluff/vetcoat/navy //Furasian: Fillmoore Grayson +/// Furasian: Fillmoore Grayson +/obj/item/clothing/suit/fluff/vetcoat/navy icon_state = "alchemistcoatnavy" item_state = "alchemistcoatnavy" -/obj/item/clothing/accessory/medal/fluff/panzermedal //PanzerSkull: GRN-DER +/// PanzerSkull: GRN-DER +/obj/item/clothing/accessory/medal/fluff/panzermedal name = "Cross of Valor" desc = "A medal from the bygone Asteroid Wars. Its Ruby shines with a strange intensity." icon = 'icons/obj/custom_items.dmi' @@ -1601,7 +1699,8 @@ item_color = "panzermedal" slot_flags = SLOT_FLAG_TIE -/obj/item/clothing/accessory/medal/fluff/XannZxiax //Sagrotter: Xann Zxiax +/// Sagrotter: Xann Zxiax +/obj/item/clothing/accessory/medal/fluff/XannZxiax name = "Zxiax Garnet" desc = "Green Garnet on fancy blue cord, when you look at the Garnet, you feel strangely appeased." icon = 'icons/obj/custom_items.dmi' @@ -1610,7 +1709,8 @@ item_color = "Xann_necklace" slot_flags = SLOT_FLAG_TIE -/obj/item/clothing/accessory/rbscarf //Rb303: Isthel Eisenwald +/// Rb303: Isthel Eisenwald +/obj/item/clothing/accessory/rbscarf name = "Old purple scarf" desc = "An old, striped purple scarf. It appears to be hand-knitted and has the name 'Isthel' written on it in bad handwriting." icon = 'icons/obj/custom_items.dmi' @@ -1618,13 +1718,15 @@ item_state = "rbscarf" item_color = "rbscarf" -/obj/item/clothing/head/fluff/pinesalad_horns //Pineapple Salad: Dan Jello +/// Pineapple Salad: Dan Jello +/obj/item/clothing/head/fluff/pinesalad_horns name = "Bluespace Horns" desc = "A pair of fake horns. Now with added bluespace!" icon = 'icons/obj/custom_items.dmi' icon_state = "ps_horns" -/obj/item/storage/backpack/fluff/hiking //Pineapple Salad: Dan Jello +/// Pineapple Salad: Dan Jello +/obj/item/storage/backpack/fluff/hiking name = "\improper Fancy Dufflebag" desc = "It's pretty lightweight for a dufflebag, but it only seems to have as much space as an ordinary backpack." icon = 'icons/obj/custom_items.dmi' @@ -1633,7 +1735,8 @@ lefthand_file = 'icons/mob/inhands/fluff_lefthand.dmi' righthand_file = 'icons/mob/inhands/fluff_righthand.dmi' -/obj/item/clothing/under/fluff/kiaoutfit //FullOfSkittles: Kiachi +/// FullOfSkittles: Kiachi +/obj/item/clothing/under/fluff/kiaoutfit name = "Suspicious Outfit" desc = "A very expensive top with intricate details tailored to fit a vox and paired with a glittery blue skirt, probably illegal." icon = 'icons/obj/custom_items.dmi' @@ -1645,7 +1748,8 @@ displays_id = FALSE species_restricted = list("Vox") -/obj/item/clothing/head/fluff/kiahat //FullOfSkittles: Kiachi +/// FullOfSkittles: Kiachi +/obj/item/clothing/head/fluff/kiahat name = "Suspicious Witch Hat" desc = "A black witch hat with a blue sash decorated with tiny glimmering stars and a gold squid-like medallion, probably possessed." icon = 'icons/obj/custom_items.dmi' @@ -1655,7 +1759,8 @@ item_state = "kiahat" item_color = "kiahat" -/obj/item/clothing/mask/gas/fluff/kiamask //FullOfSkittles: Kiachi +/// FullOfSkittles: Kiachi +/obj/item/clothing/mask/gas/fluff/kiamask name = "Suspicious Mask" desc = "A sleek mask that blends in with the owner's existing quills using strange technology. It might even be magic..." icon = 'icons/obj/custom_items.dmi' @@ -1683,13 +1788,15 @@ -/obj/item/clothing/gloves/ring/fluff/benjaminfallout //Benjaminfallout: Pretzel Brassheart +/// Benjaminfallout: Pretzel Brassheart +/obj/item/clothing/gloves/ring/fluff/benjaminfallout name = "Pretzel's Ring" desc = "A small platinum ring with a large light blue diamond. Engraved inside the band are the words: 'To my lovely Pristine Princess. Forever yours, Savinien.'" icon_state = "benjaminfallout_ring" -/obj/item/clothing/under/fluff/kikeridress //Gangelwaefre: Kikeri +/// Gangelwaefre: Kikeri +/obj/item/clothing/under/fluff/kikeridress name = "Kikeri's Dress" desc = "A simple black dress with a white undercoat, tied with a blue ribbon." lefthand_file = 'icons/mob/inhands/fluff_lefthand.dmi' @@ -1701,7 +1808,8 @@ body_parts_covered = UPPER_TORSO|LOWER_TORSO species_restricted = list("Vox") -/obj/item/clothing/mask/gas/fluff/kikerimask //Gangelwaefre: Kikeri +/// Gangelwaefre: Kikeri +/obj/item/clothing/mask/gas/fluff/kikerimask name = "Kikeri's Mask" desc = "A light grey mask with masquerade-esque blue details." icon = 'icons/obj/custom_items.dmi' @@ -1713,7 +1821,8 @@ item_color = "kikerimask" species_restricted = list("Vox") -/obj/item/clothing/mask/gas/fluff/yahiyamask //Asmerath: Yahiya +/// Asmerath: Yahiya +/obj/item/clothing/mask/gas/fluff/yahiyamask name = "Yahiya's Mask" desc = "A dark brown and silver mask resembling that of an eagle. There is a fiery red gem embedded into the forehead." icon = 'icons/obj/custom_items.dmi' diff --git a/code/modules/events/blob/blob_structures/captured_nuke.dm b/code/modules/events/blob/blob_structures/captured_nuke.dm index 3374850b1b2c..030b37d24086 100644 --- a/code/modules/events/blob/blob_structures/captured_nuke.dm +++ b/code/modules/events/blob/blob_structures/captured_nuke.dm @@ -1,4 +1,5 @@ -/obj/structure/blob/captured_nuke //alternative to blob just straight up destroying nukes +/// alternative to blob just straight up destroying nukes +/obj/structure/blob/captured_nuke name = "blob captured nuke" icon_state = "blob" desc = "A Nuclear Warhead tangled in blob tendrils pulsating with a horrific green glow." diff --git a/code/modules/events/event.dm b/code/modules/events/event.dm index f82af011b847..2ac68d478554 100644 --- a/code/modules/events/event.dm +++ b/code/modules/events/event.dm @@ -45,7 +45,8 @@ return ..(active_with_role) return 0*/ -/datum/event //NOTE: Times are measured in master controller ticks! +/// NOTE: Times are measured in master controller ticks! +/datum/event /// The human-readable name of the event var/name /// When in the lifetime to call start(). diff --git a/code/modules/events/spacevine.dm b/code/modules/events/spacevine.dm index 00b1914c181b..dad1fac6c8d7 100644 --- a/code/modules/events/spacevine.dm +++ b/code/modules/events/spacevine.dm @@ -218,7 +218,8 @@ if(!isvineimmune(eater)) eater.adjustToxLoss(5) -/datum/spacevine_mutation/explosive //OH SHIT IT CAN CHAINREACT RUN!!! +/// OH SHIT IT CAN CHAINREACT RUN!!! +/datum/spacevine_mutation/explosive name = "explosive" hue = "#ff0000" quality = NEGATIVE @@ -261,7 +262,8 @@ prey.wither() . = TRUE -/datum/spacevine_mutation/aggressive_spread //very OP, but im out of other ideas currently +/// very OP, but im out of other ideas currently +/datum/spacevine_mutation/aggressive_spread name = "aggressive spreading" hue = "#333333" severity = 3 diff --git a/code/modules/events/wizard/ghost_wizard_spells.dm b/code/modules/events/wizard/ghost_wizard_spells.dm index e703799ff025..f824344c8333 100644 --- a/code/modules/events/wizard/ghost_wizard_spells.dm +++ b/code/modules/events/wizard/ghost_wizard_spells.dm @@ -1,10 +1,12 @@ -/datum/event/wizard/ghost //The spook is real +/// The spook is real +/datum/event/wizard/ghost /datum/event/wizard/ghost/start() var/msg = "You suddenly feel extremely obvious..." set_observer_default_invisibility(0, msg) -/datum/event/wizard/ghost_mute //The spook is silent +/// The spook is silent +/datum/event/wizard/ghost_mute /datum/event/wizard/ghost_mute/start() GLOB.dsay_enabled = FALSE diff --git a/code/modules/food_and_drinks/drinks/drinks_base.dm b/code/modules/food_and_drinks/drinks/drinks_base.dm index fc9e0a75aa26..bbfbaa8e0f3c 100644 --- a/code/modules/food_and_drinks/drinks/drinks_base.dm +++ b/code/modules/food_and_drinks/drinks/drinks_base.dm @@ -156,7 +156,8 @@ materials = list(MAT_METAL=400) volume = 25 -/obj/item/reagent_containers/drinks/trophy/bronze_cup/toolbox_win //2023 toolbox tournament 3rd place went to paradise station. +/// 2023 toolbox tournament 3rd place went to paradise station. +/obj/item/reagent_containers/drinks/trophy/bronze_cup/toolbox_win name = "3rd place toolbox tournament 2567" desc = "Awarded to centcomms elite toolbox warriors raising money for the GBS research institute." icon_state = "reward_cup" diff --git a/code/modules/food_and_drinks/food/condiment.dm b/code/modules/food_and_drinks/food/condiment.dm index 01c99264ebf0..8b083436ea1b 100644 --- a/code/modules/food_and_drinks/food/condiment.dm +++ b/code/modules/food_and_drinks/food/condiment.dm @@ -135,7 +135,8 @@ list_reagents = list("sugar" = 50) possible_states = list() -/obj/item/reagent_containers/condiment/saltshaker //Seperate from above since it's a small shaker rather then +/// Seperate from above since it's a small shaker rather then +/obj/item/reagent_containers/condiment/saltshaker name = "salt shaker" // a large one. desc = "Salt. From space oceans, presumably." icon_state = "saltshakersmall" diff --git a/code/modules/food_and_drinks/food/customizables.dm b/code/modules/food_and_drinks/food/customizables.dm index 8d22dd0d9db3..01db2bfef503 100644 --- a/code/modules/food_and_drinks/food/customizables.dm +++ b/code/modules/food_and_drinks/food/customizables.dm @@ -302,7 +302,8 @@ do {\ snack_overlays = 0 top = 0 -/obj/item/food/snacks/customizable/fullycustom // In the event you fuckers find something I forgot to add a customizable food for. +/// In the event you fuckers find something I forgot to add a customizable food for. +/obj/item/food/snacks/customizable/fullycustom name = "on a plate" desc = "A unique dish." icon_state = "fullycustom" diff --git a/code/modules/food_and_drinks/food/foods/ingredients.dm b/code/modules/food_and_drinks/food/foods/ingredients.dm index a0cf80c61b6a..cefb49fd02ee 100644 --- a/code/modules/food_and_drinks/food/foods/ingredients.dm +++ b/code/modules/food_and_drinks/food/foods/ingredients.dm @@ -239,7 +239,8 @@ return ..() -/obj/item/food/snacks/choc_pile //for reagent chocolate being spilled on turfs +/// for reagent chocolate being spilled on turfs +/obj/item/food/snacks/choc_pile name = "pile of chocolate" desc = "A pile of pure chocolate pieces." icon_state = "cocoa" diff --git a/code/modules/food_and_drinks/food/foods/side_dishes.dm b/code/modules/food_and_drinks/food/foods/side_dishes.dm index fbfdf0394622..648fd6f1038d 100644 --- a/code/modules/food_and_drinks/food/foods/side_dishes.dm +++ b/code/modules/food_and_drinks/food/foods/side_dishes.dm @@ -72,7 +72,8 @@ list_reagents = list("nutriment" = 10, "beans" = 10, "vitamin" = 3) tastes = list("beans" = 1) -/obj/item/food/snacks/mashed_potatoes //mashed taters +/// mashed taters +/obj/item/food/snacks/mashed_potatoes name = "mashed potatoes" desc = "Some soft, creamy, and irresistible mashed potatoes." icon_state = "mashedtaters" diff --git a/code/modules/food_and_drinks/recipes/recipes_oven.dm b/code/modules/food_and_drinks/recipes/recipes_oven.dm index e95dad37b108..0d639141d32b 100644 --- a/code/modules/food_and_drinks/recipes/recipes_oven.dm +++ b/code/modules/food_and_drinks/recipes/recipes_oven.dm @@ -568,7 +568,8 @@ ) result = /obj/item/food/snacks/toastedsandwich -/datum/recipe/oven/turkey // Magic +/// Magic +/datum/recipe/oven/turkey items = list( /obj/item/food/snacks/meat, /obj/item/food/snacks/meat, diff --git a/code/modules/hydroponics/grown/banana.dm b/code/modules/hydroponics/grown/banana.dm index 57d8f8c7e5d2..7126866a9a37 100644 --- a/code/modules/hydroponics/grown/banana.dm +++ b/code/modules/hydroponics/grown/banana.dm @@ -133,7 +133,8 @@ icon_state = "bluenana_peel" // Other -/obj/item/grown/bananapeel/specialpeel //used by /obj/item/clothing/shoes/clown_shoes/banana_shoes +/// used by /obj/item/clothing/shoes/clown_shoes/banana_shoes +/obj/item/grown/bananapeel/specialpeel name = "synthesized banana peel" desc = "A synthetic banana peel." diff --git a/code/modules/hydroponics/grown/citrus.dm b/code/modules/hydroponics/grown/citrus.dm index 0f624c37e1d1..888bcdc9aefa 100644 --- a/code/modules/hydroponics/grown/citrus.dm +++ b/code/modules/hydroponics/grown/citrus.dm @@ -87,7 +87,8 @@ filling_color = "#FFD700" // Combustible lemon -/obj/item/seeds/firelemon //combustible lemon is too long so firelemon +/// combustible lemon is too long so firelemon +/obj/item/seeds/firelemon name = "pack of combustible lemon seeds" desc = "When life gives you lemons, don't make lemonade. Make life take the lemons back! Get mad! I don't want your damn lemons!" icon_state = "seed-firelemon" diff --git a/code/modules/hydroponics/grown/flowers.dm b/code/modules/hydroponics/grown/flowers.dm index 42d7eaa2e9c5..f71f1edf2119 100644 --- a/code/modules/hydroponics/grown/flowers.dm +++ b/code/modules/hydroponics/grown/flowers.dm @@ -118,7 +118,8 @@ mutatelist = list(/obj/item/seeds/sunflower/moonflower, /obj/item/seeds/sunflower/novaflower) reagents_add = list("cornoil" = 0.08, "plantmatter" = 0.04) -/obj/item/grown/sunflower // FLOWER POWER! +/// FLOWER POWER! +/obj/item/grown/sunflower seed = /obj/item/seeds/sunflower name = "sunflower" desc = "It's beautiful! A certain person might beat you to death if you trample these." diff --git a/code/modules/hydroponics/grown/nettle.dm b/code/modules/hydroponics/grown/nettle.dm index 78fe7964c461..1d79c1d0b317 100644 --- a/code/modules/hydroponics/grown/nettle.dm +++ b/code/modules/hydroponics/grown/nettle.dm @@ -28,7 +28,8 @@ reagents_add = list("facid" = 0.25, "sacid" = 0.25) rarity = 20 -/obj/item/grown/nettle //abstract type +/// abstract type +/obj/item/grown/nettle name = "nettle" desc = "It's probably not wise to touch it with bare hands..." icon = 'icons/obj/items.dmi' diff --git a/code/modules/hydroponics/grown/towercap.dm b/code/modules/hydroponics/grown/towercap.dm index 1c33b6ce5dae..9acbcc055fb4 100644 --- a/code/modules/hydroponics/grown/towercap.dm +++ b/code/modules/hydroponics/grown/towercap.dm @@ -119,7 +119,8 @@ /obj/structure/bonfire/dense density = TRUE -/obj/structure/bonfire/lit //haha empty define +/// haha empty define +/obj/structure/bonfire/lit /obj/structure/bonfire/lit/dense density = TRUE diff --git a/code/modules/hydroponics/growninedible.dm b/code/modules/hydroponics/growninedible.dm index 4fcbe25430e1..820cf7420c88 100644 --- a/code/modules/hydroponics/growninedible.dm +++ b/code/modules/hydroponics/growninedible.dm @@ -2,7 +2,8 @@ // Other harvested materials from plants (that are not food) // ********************** -/obj/item/grown // Grown weapons +/// Grown weapons +/obj/item/grown name = "grown_weapon" icon = 'icons/obj/hydroponics/harvest.dmi' resistance_flags = FLAMMABLE diff --git a/code/modules/hydroponics/hydroitemdefines.dm b/code/modules/hydroponics/hydroitemdefines.dm index 73154db5ef96..f5bbb310453b 100644 --- a/code/modules/hydroponics/hydroitemdefines.dm +++ b/code/modules/hydroponics/hydroitemdefines.dm @@ -14,7 +14,8 @@ // Hydroponics Tools // ************************************* -/obj/item/reagent_containers/spray/weedspray // -- Skie +/// -- Skie +/obj/item/reagent_containers/spray/weedspray name = "weed spray" desc = "It's a toxic mixture, in spray form, to kill small weeds." icon = 'icons/obj/hydroponics/equipment.dmi' @@ -34,7 +35,8 @@ user.visible_message("[user] is huffing [src]! It looks like [user.p_theyre()] trying to commit suicide.") return TOXLOSS -/obj/item/reagent_containers/spray/pestspray // -- Skie +/// -- Skie +/obj/item/reagent_containers/spray/pestspray name = "pest spray" desc = "It's some pest eliminator spray! Do not inhale!" icon = 'icons/obj/hydroponics/equipment.dmi' diff --git a/code/modules/hydroponics/hydroponics_tray.dm b/code/modules/hydroponics/hydroponics_tray.dm index ebeaac15cddf..9c0b489baffb 100644 --- a/code/modules/hydroponics/hydroponics_tray.dm +++ b/code/modules/hydroponics/hydroponics_tray.dm @@ -975,7 +975,8 @@ return ..() /////////////////////////////////////////////////////////////////////////////// -/obj/machinery/hydroponics/soil //Not actually hydroponics at all! Honk! +/// Not actually hydroponics at all! Honk! +/obj/machinery/hydroponics/soil name = "soil" icon = 'icons/obj/hydroponics/equipment.dmi' icon_state = "soil" diff --git a/code/modules/hydroponics/plant_genes.dm b/code/modules/hydroponics/plant_genes.dm index ccf886c8b66e..95b53c40d64c 100644 --- a/code/modules/hydroponics/plant_genes.dm +++ b/code/modules/hydroponics/plant_genes.dm @@ -450,7 +450,8 @@ S.set_up(G.reagents, splat_location) S.start(smoke_amount) -/datum/plant_gene/trait/fire_resistance // Lavaland +/// Lavaland +/datum/plant_gene/trait/fire_resistance name = "Fire Resistance" /datum/plant_gene/trait/fire_resistance/apply_vars(obj/item/seeds/S) @@ -461,7 +462,8 @@ if(!(G.resistance_flags & FIRE_PROOF)) G.resistance_flags |= FIRE_PROOF -/datum/plant_gene/trait/plant_type // Parent type +/// Parent type +/datum/plant_gene/trait/plant_type name = "you shouldn't see this" trait_id = "plant_type" diff --git a/code/modules/library/library_datums.dm b/code/modules/library/library_datums.dm index 8d191870b266..ccc1b3419249 100644 --- a/code/modules/library/library_datums.dm +++ b/code/modules/library/library_datums.dm @@ -34,7 +34,8 @@ * Used for tracking books that have been checked out from the library by players. Created and stored upon a book being * checked out and deleted upon the book being succesfully checked back in or the librarian marking a book as "lost" */ -/datum/borrowbook // Datum used to keep track of who has borrowed what when and for how long. +/// Datum used to keep track of who has borrowed what when and for how long. +/datum/borrowbook var/bookname var/libraryid var/patron_name @@ -48,7 +49,8 @@ * are designed to only temporarily hold book data * checked out and deleted upon the book being succesfully checked back in or the librarian marking a book as "lost" */ -/datum/cachedbook // Datum used to cache the SQL DB books locally in order to achieve a performance gain. +/// Datum used to cache the SQL DB books locally in order to achieve a performance gain. +/datum/cachedbook var/id var/libraryid var/title diff --git a/code/modules/mapping/mapping_helpers.dm b/code/modules/mapping/mapping_helpers.dm index 0cf585940ed2..e3afd6ffb080 100644 --- a/code/modules/mapping/mapping_helpers.dm +++ b/code/modules/mapping/mapping_helpers.dm @@ -1,4 +1,5 @@ -/obj/effect/baseturf_helper //Set the baseturfs of every turf in the /area/ it is placed. +/// Set the baseturfs of every turf in the /area/ it is placed. +/obj/effect/baseturf_helper name = "baseturf editor" icon = 'icons/effects/mapping_helpers.dmi' icon_state = "" diff --git a/code/modules/martial_arts/krav_maga.dm b/code/modules/martial_arts/krav_maga.dm index 7b018bbca566..0552c9eb101d 100644 --- a/code/modules/martial_arts/krav_maga.dm +++ b/code/modules/martial_arts/krav_maga.dm @@ -171,7 +171,8 @@ . = ..() RegisterSignal(src, COMSIG_PARENT_QDELETING, PROC_REF(alert_admins_on_destroy)) -/obj/item/clothing/gloves/color/black/krav_maga/combat // for nukies +/// for nukies +/obj/item/clothing/gloves/color/black/krav_maga/combat name = "Combat gloves plus" desc = "These combat gloves have been upgraded with nanochips that teach the wearer Krav Maga." icon_state = "combat" diff --git a/code/modules/mining/equipment/marker_beacons.dm b/code/modules/mining/equipment/marker_beacons.dm index 57f32f4dae8b..1d353d1309c8 100644 --- a/code/modules/mining/equipment/marker_beacons.dm +++ b/code/modules/mining/equipment/marker_beacons.dm @@ -27,10 +27,12 @@ GLOBAL_LIST_INIT(marker_beacon_colors, list( max_amount = 100 var/picked_color = "random" -/obj/item/stack/marker_beacon/ten //miners start with 10 of these +/// miners start with 10 of these +/obj/item/stack/marker_beacon/ten amount = 10 -/obj/item/stack/marker_beacon/thirty //and they're bought in stacks of 1, 10, or 30 +/// and they're bought in stacks of 1, 10, or 30 +/obj/item/stack/marker_beacon/thirty amount = 30 /obj/item/stack/marker_beacon/Initialize(mapload) diff --git a/code/modules/mining/equipment/mining_tools.dm b/code/modules/mining/equipment/mining_tools.dm index 6ee74a27e432..44bc6c90725c 100644 --- a/code/modules/mining/equipment/mining_tools.dm +++ b/code/modules/mining/equipment/mining_tools.dm @@ -105,7 +105,8 @@ origin_tech = "materials=6;powerstorage=4;engineering=4" toolspeed = 0.2 -/obj/item/pickaxe/drill/cyborg/diamond //This is the BORG version! +/// This is the BORG version! +/obj/item/pickaxe/drill/cyborg/diamond name = "diamond-tipped cyborg mining drill" //To inherit the NODROP flag, and easier to change borg specific drill mechanics. icon_state = "diamonddrill" toolspeed = 0.2 diff --git a/code/modules/mining/equipment/wormhole_jaunter.dm b/code/modules/mining/equipment/wormhole_jaunter.dm index 903be3aa68bf..3440c1be56e3 100644 --- a/code/modules/mining/equipment/wormhole_jaunter.dm +++ b/code/modules/mining/equipment/wormhole_jaunter.dm @@ -168,7 +168,8 @@ /obj/effect/portal/advanced/getaway one_use = TRUE -/obj/effect/temp_visual/getaway_flare // Because the original contractor flare is not a temp visual, for some reason. +/// Because the original contractor flare is not a temp visual, for some reason. +/obj/effect/temp_visual/getaway_flare name = "contractor extraction flare" icon = 'icons/obj/lighting.dmi' icon_state = "flare-contractor-on" diff --git a/code/modules/mining/lavaland/ash_flora.dm b/code/modules/mining/lavaland/ash_flora.dm index 668442ccf5fa..c8f0a1e584ed 100644 --- a/code/modules/mining/lavaland/ash_flora.dm +++ b/code/modules/mining/lavaland/ash_flora.dm @@ -75,7 +75,8 @@ else ..() -/obj/structure/flora/ash/tall_shroom //exists only so that the spawning check doesn't allow these spawning near other things +/// exists only so that the spawning check doesn't allow these spawning near other things +/obj/structure/flora/ash/tall_shroom regrowth_time_low = 4200 /obj/structure/flora/ash/leaf_shroom @@ -197,7 +198,8 @@ pixel_x = rand(-4, 4) pixel_y = rand(-4, 4) -/obj/item/food/snacks/grown/ash_flora/shavings //for actual crafting +/// for actual crafting +/obj/item/food/snacks/grown/ash_flora/shavings /obj/item/food/snacks/grown/ash_flora/mushroom_leaf name = "mushroom leaf" diff --git a/code/modules/mining/lavaland/loot/colossus_loot.dm b/code/modules/mining/lavaland/loot/colossus_loot.dm index 38d4653f196c..c0aa03e2d822 100644 --- a/code/modules/mining/lavaland/loot/colossus_loot.dm +++ b/code/modules/mining/lavaland/loot/colossus_loot.dm @@ -85,7 +85,8 @@ new random_crystal(loc) return INITIALIZE_HINT_QDEL -/obj/machinery/anomalous_crystal/theme_warp //Warps the area you're in to look like a new one +/// Warps the area you're in to look like a new one +/obj/machinery/anomalous_crystal/theme_warp activation_method = "touch" cooldown_add = 200 var/terrain_theme = "winter" @@ -159,7 +160,8 @@ continue affected_targets += A -/obj/machinery/anomalous_crystal/emitter //Generates a projectile when interacted with +/// Generates a projectile when interacted with +/obj/machinery/anomalous_crystal/emitter activation_method = "touch" cooldown_add = 50 var/generated_projectile = /obj/item/projectile/beam/emitter @@ -188,7 +190,8 @@ P.xo = 0 P.fire() -/obj/machinery/anomalous_crystal/dark_reprise //Revives anyone nearby, but turns them into shadowpeople and renders them uncloneable, so the crystal is your only hope of getting up again if you go down. +/// Revives anyone nearby, but turns them into shadowpeople and renders them uncloneable, so the crystal is your only hope of getting up again if you go down. +/obj/machinery/anomalous_crystal/dark_reprise activation_method = "touch" activation_sound = 'sound/hallucinations/growl1.ogg' @@ -206,7 +209,8 @@ ADD_TRAIT(H, TRAIT_BADDNA, MAGIC_TRAIT) //Free revives, but significantly limits your options for reviving except via the crystal H.grab_ghost(force = TRUE) -/obj/machinery/anomalous_crystal/helpers //Lets ghost spawn as helpful creatures that can only heal people slightly. Incredibly fragile and they can't converse with humans +/// Lets ghost spawn as helpful creatures that can only heal people slightly. Incredibly fragile and they can't converse with humans +/obj/machinery/anomalous_crystal/helpers activation_method = "touch" var/ready_to_deploy = 0 @@ -299,7 +303,8 @@ /mob/living/simple_animal/hostile/lightgeist/ghost() qdel(src) -/obj/machinery/anomalous_crystal/possessor //Allows you to bodyjack small animals, then exit them at your leisure, but you can only do this once per activation. Because they blow up. Also, if the bodyjacked animal dies, SO DO YOU. +/// Allows you to bodyjack small animals, then exit them at your leisure, but you can only do this once per activation. Because they blow up. Also, if the bodyjacked animal dies, SO DO YOU. +/obj/machinery/anomalous_crystal/possessor activation_method = "touch" /obj/machinery/anomalous_crystal/possessor/ActivationReaction(mob/user, method) diff --git a/code/modules/mob/living/carbon/human/body_accessories.dm b/code/modules/mob/living/carbon/human/body_accessories.dm index fbbfdba9a7cf..26abf0326957 100644 --- a/code/modules/mob/living/carbon/human/body_accessories.dm +++ b/code/modules/mob/living/carbon/human/body_accessories.dm @@ -83,19 +83,22 @@ GLOBAL_LIST_EMPTY(body_accessory_by_species) return ..() //Tajaran -/datum/body_accessory/tail/wingler_tail // Jay wingler fluff tail +/// Jay wingler fluff tail +/datum/body_accessory/tail/wingler_tail name = "Striped Tail" icon_state = "winglertail" animated_icon_state = "winglertail_a" allowed_species = list("Tajaran") -/datum/body_accessory/tail/tiny //Pretty ambiguous as to what species it belongs to, tail could've been injured or docked. +/// Pretty ambiguous as to what species it belongs to, tail could've been injured or docked. +/datum/body_accessory/tail/tiny name = "Tiny Tail" icon_state = "tiny" animated_icon_state = "tiny_a" allowed_species = list("Vulpkanin", "Tajaran") -/datum/body_accessory/tail/short //Same as above. +/// Same as above. +/datum/body_accessory/tail/short name = "Short Tail" icon_state = "short" animated_icon_state = "short_a" diff --git a/code/modules/mob/living/carbon/human/species/diona_species.dm b/code/modules/mob/living/carbon/human/species/diona_species.dm index 4381438edae0..b25bfe9e191d 100644 --- a/code/modules/mob/living/carbon/human/species/diona_species.dm +++ b/code/modules/mob/living/carbon/human/species/diona_species.dm @@ -131,7 +131,8 @@ H.set_nutrition(min(H.nutrition + 30, NUTRITION_LEVEL_FULL)) return TRUE -/datum/species/diona/pod //Same name and everything; we want the same limitations on them; we just want their regeneration to kick in at all times and them to have special factions +/// Same name and everything; we want the same limitations on them; we just want their regeneration to kick in at all times and them to have special factions +/datum/species/diona/pod name = "Diomorph" //Seperate name needed else can't select diona period species_traits = list(NO_HAIR, NOT_SELECTABLE) pod = TRUE diff --git a/code/modules/mob/living/silicon/robot/drone/drone_items.dm b/code/modules/mob/living/silicon/robot/drone/drone_items.dm index 92319021efc9..e19be02507fd 100644 --- a/code/modules/mob/living/silicon/robot/drone/drone_items.dm +++ b/code/modules/mob/living/silicon/robot/drone/drone_items.dm @@ -1,6 +1,7 @@ //Simple borg hand. //Limited use. -/obj/item/gripper_engineering // This isn't a drone item, also in engineering cyborg kits +/// This isn't a drone item, also in engineering cyborg kits +/obj/item/gripper_engineering name = "magnetic gripper" desc = "A simple grasping tool for synthetic assets." icon = 'icons/obj/device.dmi' diff --git a/code/modules/mob/living/simple_animal/bot/griefsky.dm b/code/modules/mob/living/simple_animal/bot/griefsky.dm index 2530633daa34..37406b435e55 100644 --- a/code/modules/mob/living/simple_animal/bot/griefsky.dm +++ b/code/modules/mob/living/simple_animal/bot/griefsky.dm @@ -1,4 +1,5 @@ -/mob/living/simple_animal/bot/secbot/griefsky //This bot is powerful. If you managed to get 4 eswords somehow, you deserve this horror. Emag him for best results. +/// This bot is powerful. If you managed to get 4 eswords somehow, you deserve this horror. Emag him for best results. +/mob/living/simple_animal/bot/secbot/griefsky name = "\improper General Griefsky" desc = "Is that a secbot with four eswords in its arms...?" icon_state = "griefsky0" @@ -18,7 +19,8 @@ var/spam_flag = 0 var/frustration_number = 15 -/mob/living/simple_animal/bot/secbot/griefsky/toy //A toy version of general griefsky! +/// A toy version of general griefsky! +/mob/living/simple_animal/bot/secbot/griefsky/toy name = "Genewul Giftskee" desc = "An adorable looking secbot with four toy swords taped to its arms" spin_icon = "griefskyj-c" diff --git a/code/modules/mob/living/simple_animal/constructs.dm b/code/modules/mob/living/simple_animal/constructs.dm index 1e74d1162df1..ea8eea9b0d7b 100644 --- a/code/modules/mob/living/simple_animal/constructs.dm +++ b/code/modules/mob/living/simple_animal/constructs.dm @@ -162,7 +162,8 @@ playstyle_string = "You are a Juggernaut. Though slow, your shell can withstand extreme punishment, \ create shield walls, rip apart enemies and walls." -/mob/living/simple_animal/hostile/construct/armoured/hostile //actually hostile, will move around, hit things +/// actually hostile, will move around, hit things +/mob/living/simple_animal/hostile/construct/armoured/hostile AIStatus = AI_ON environment_smash = 1 //only token destruction, don't smash the cult wall NO STOP @@ -195,10 +196,12 @@ retreat_distance = 2 //AI wraiths will move in and out of combat playstyle_string = "You are a Wraith. Though relatively fragile, you are fast, deadly, and even able to phase through walls." -/mob/living/simple_animal/hostile/construct/wraith/hostile //actually hostile, will move around, hit things +/// actually hostile, will move around, hit things +/mob/living/simple_animal/hostile/construct/wraith/hostile AIStatus = AI_ON -/mob/living/simple_animal/hostile/construct/wraith/hostile/bubblegum //Used in bubblegum summoning. Needs MOB_SIZE_LARGE so crushers don't suffer +/// Used in bubblegum summoning. Needs MOB_SIZE_LARGE so crushers don't suffer +/mob/living/simple_animal/hostile/construct/wraith/hostile/bubblegum mob_size = MOB_SIZE_LARGE /////////////////////////////Artificer///////////////////////// @@ -276,7 +279,8 @@ retreat_distance = initial(retreat_distance) minimum_distance = initial(minimum_distance) -/mob/living/simple_animal/hostile/construct/builder/hostile //actually hostile, will move around, hit things, heal other constructs +/// actually hostile, will move around, hit things, heal other constructs +/mob/living/simple_animal/hostile/construct/builder/hostile AIStatus = AI_ON environment_smash = ENVIRONMENT_SMASH_STRUCTURES //only token destruction, don't smash the cult wall NO STOP @@ -306,7 +310,8 @@ var/energy = 0 var/max_energy = 1000 -/mob/living/simple_animal/hostile/construct/behemoth/hostile //actually hostile, will move around, hit things +/// actually hostile, will move around, hit things +/mob/living/simple_animal/hostile/construct/behemoth/hostile AIStatus = AI_ON environment_smash = 1 //only token destruction, don't smash the cult wall NO STOP @@ -340,7 +345,8 @@ return TRUE -/mob/living/simple_animal/hostile/construct/harvester/hostile //actually hostile, will move around, hit things +/// actually hostile, will move around, hit things +/mob/living/simple_animal/hostile/construct/harvester/hostile AIStatus = AI_ON environment_smash = 1 //only token destruction, don't smash the cult wall NO STOP diff --git a/code/modules/mob/living/simple_animal/friendly/dog.dm b/code/modules/mob/living/simple_animal/friendly/dog.dm index 4cd1f666d0b3..667a2ab9cb89 100644 --- a/code/modules/mob/living/simple_animal/friendly/dog.dm +++ b/code/modules/mob/living/simple_animal/friendly/dog.dm @@ -647,7 +647,8 @@ // Puppies do not have a head or back equipment slot. return "
Collar:
[pcollar]" : "add_inv=collar'>Nothing"]" -/mob/living/simple_animal/pet/dog/corgi/puppy/void //Tribute to the corgis born in nullspace +/// Tribute to the corgis born in nullspace +/mob/living/simple_animal/pet/dog/corgi/puppy/void name = "\improper void puppy" real_name = "voidy" desc = "A corgi puppy that has been infused with deep space energy. It's staring back..." diff --git a/code/modules/mob/living/simple_animal/hostile/megafauna/ancient_robot.dm b/code/modules/mob/living/simple_animal/hostile/megafauna/ancient_robot.dm index e1e4d06f04da..76469fd93569 100644 --- a/code/modules/mob/living/simple_animal/hostile/megafauna/ancient_robot.dm +++ b/code/modules/mob/living/simple_animal/hostile/megafauna/ancient_robot.dm @@ -784,7 +784,8 @@ Difficulty: Hard duration = 20 -/obj/item/projectile/energy/tesla_bolt //Leaving here for adminbus / so vetus still uses it. +/// Leaving here for adminbus / so vetus still uses it. +/obj/item/projectile/energy/tesla_bolt name = "shock bolt" icon_state = "purple_laser" impact_effect_type = /obj/effect/temp_visual/impact_effect/purple_laser @@ -810,7 +811,8 @@ Difficulty: Hard var/turf/target_turf = get_turf(A) loc = target_turf -/obj/effect/temp_visual/dragon_swoop/bubblegum/ancient_robot //this is the worst path I have ever made +/// this is the worst path I have ever made +/obj/effect/temp_visual/dragon_swoop/bubblegum/ancient_robot icon_state = "target" /obj/effect/temp_visual/dragon_swoop/bubblegum/ancient_robot/Initialize(mapload, target) diff --git a/code/modules/mob/living/simple_animal/hostile/megafauna/blood_drunk_miner.dm b/code/modules/mob/living/simple_animal/hostile/megafauna/blood_drunk_miner.dm index 3515e72c7881..7a29e37406a3 100644 --- a/code/modules/mob/living/simple_animal/hostile/megafauna/blood_drunk_miner.dm +++ b/code/modules/mob/living/simple_animal/hostile/megafauna/blood_drunk_miner.dm @@ -110,7 +110,8 @@ Difficulty: Medium shoot_ka() transform_weapon() -/obj/item/melee/energy/cleaving_saw/miner //nerfed saw because it is very murdery +/// nerfed saw because it is very murdery +/obj/item/melee/energy/cleaving_saw/miner force = 6 force_on = 10 diff --git a/code/modules/mob/living/simple_animal/hostile/megafauna/hierophant.dm b/code/modules/mob/living/simple_animal/hostile/megafauna/hierophant.dm index d2a79230e927..2ef2491296ed 100644 --- a/code/modules/mob/living/simple_animal/hostile/megafauna/hierophant.dm +++ b/code/modules/mob/living/simple_animal/hostile/megafauna/hierophant.dm @@ -577,7 +577,8 @@ Difficulty: Hard var/turf/simulated/mineral/M = loc M.gets_drilled(caster) -/obj/effect/temp_visual/hierophant/wall //smoothing and pooling were not friends, but pooling is dead. +/// smoothing and pooling were not friends, but pooling is dead. +/obj/effect/temp_visual/hierophant/wall name = "vortex wall" icon = 'icons/turf/walls/hierophant_wall_temp.dmi' icon_state = "hierophant_wall_temp-0" @@ -612,7 +613,8 @@ Difficulty: Hard return TRUE return FALSE -/obj/effect/temp_visual/hierophant/chaser //a hierophant's chaser. follows target around, moving and producing a blast every speed deciseconds. +/// a hierophant's chaser. follows target around, moving and producing a blast every speed deciseconds. +/obj/effect/temp_visual/hierophant/chaser duration = 98 var/mob/living/target //what it's following var/turf/targetturf //what turf the target is actually on diff --git a/code/modules/mob/living/simple_animal/hostile/venus_human_trap.dm b/code/modules/mob/living/simple_animal/hostile/venus_human_trap.dm index 39b5bc47bd68..a6a840906f83 100644 --- a/code/modules/mob/living/simple_animal/hostile/venus_human_trap.dm +++ b/code/modules/mob/living/simple_animal/hostile/venus_human_trap.dm @@ -1,6 +1,7 @@ -/obj/structure/alien/resin/flower_bud_enemy //inheriting basic attack/damage stuff from alien structures +/// inheriting basic attack/damage stuff from alien structures +/obj/structure/alien/resin/flower_bud_enemy name = "flower bud" desc = "A large pulsating plant..." icon = 'icons/effects/spacevines.dmi' diff --git a/code/modules/mob/living/simple_animal/hostile/winter_mobs.dm b/code/modules/mob/living/simple_animal/hostile/winter_mobs.dm index 2ba65d00bf45..845b8bf461f9 100644 --- a/code/modules/mob/living/simple_animal/hostile/winter_mobs.dm +++ b/code/modules/mob/living/simple_animal/hostile/winter_mobs.dm @@ -89,7 +89,8 @@ new next_stage(get_turf(src)) qdel(src) //hide the body -/mob/living/simple_animal/hostile/winter/santa/stage_1 //stage 1: slow melee +/// stage 1: slow melee +/mob/living/simple_animal/hostile/winter/santa/stage_1 maxHealth = 150 health = 150 desc = "GET THE FAT MAN!" @@ -99,7 +100,8 @@ melee_damage_lower = 10 melee_damage_upper = 20 -/mob/living/simple_animal/hostile/winter/santa/stage_2 //stage 2: slow ranged +/// stage 2: slow ranged +/mob/living/simple_animal/hostile/winter/santa/stage_2 desc = "GET THE FAT MAN AGAIN!" next_stage = /mob/living/simple_animal/hostile/winter/santa/stage_3 death_message = "YOU'VE BEEN VERY NAUGHTY! PREPARE TO DIE!" @@ -110,7 +112,8 @@ retreat_distance = 5 minimum_distance = 5 -/mob/living/simple_animal/hostile/winter/santa/stage_3 //stage 3: fast rapidfire ranged +/// stage 3: fast rapidfire ranged +/mob/living/simple_animal/hostile/winter/santa/stage_3 desc = "WHY WON'T HE DIE ALREADY!?" next_stage = /mob/living/simple_animal/hostile/winter/santa/stage_4 death_message = "FACE MY FINAL FORM AND KNOW DESPAIR!" @@ -123,7 +126,8 @@ retreat_distance = 3 minimum_distance = 3 -/mob/living/simple_animal/hostile/winter/santa/stage_4 //stage 4: fast spinebreaker +/// stage 4: fast spinebreaker +/mob/living/simple_animal/hostile/winter/santa/stage_4 name = "Final Form Santa" desc = "WHAT THE HELL IS HE!?! WHY WON'T HE STAY DEAD!?!" maxHealth = 300 //YOU FACE JARAX- I MEAN SANTA! diff --git a/code/modules/mob/new_player/sprite_accessories/human/human_body_markings.dm b/code/modules/mob/new_player/sprite_accessories/human/human_body_markings.dm index 9dd5345d4837..87cac271a18a 100644 --- a/code/modules/mob/new_player/sprite_accessories/human/human_body_markings.dm +++ b/code/modules/mob/new_player/sprite_accessories/human/human_body_markings.dm @@ -8,7 +8,8 @@ species_allowed = list("Unathi", "Tajaran", "Vulpkanin") icon_state = "tiger" -/datum/sprite_accessory/body_markings/tattoo // Tattoos applied post-round startup with tattoo guns in item_defines.dm +/// Tattoos applied post-round startup with tattoo guns in item_defines.dm +/datum/sprite_accessory/body_markings/tattoo species_allowed = list("Human", "Unathi", "Vulpkanin", "Tajaran", "Skrell") icon_state = "none" @@ -17,7 +18,8 @@ icon_state = "campbell" species_allowed = null -/datum/sprite_accessory/body_markings/tattoo/tiger_body // Yep, this is repeated. To be fixed later +/// Yep, this is repeated. To be fixed later +/datum/sprite_accessory/body_markings/tattoo/tiger_body name = "Tiger-stripe Tattoo" species_allowed = list("Human", "Unathi", "Vulpkanin", "Tajaran", "Skrell") icon_state = "tiger" diff --git a/code/modules/mob/new_player/sprite_accessories/human/human_hair.dm b/code/modules/mob/new_player/sprite_accessories/human/human_hair.dm index 27c2ad066b80..9cdfb017e9b4 100644 --- a/code/modules/mob/new_player/sprite_accessories/human/human_hair.dm +++ b/code/modules/mob/new_player/sprite_accessories/human/human_hair.dm @@ -762,7 +762,8 @@ icon_state = "father" species_allowed = list("Human", "Slime People", "Unathi", "Tajaran", "Vulpkanin") -/datum/sprite_accessory/hair/bun4 // Due to a vulp hairstyle called bun +/// Due to a vulp hairstyle called bun +/datum/sprite_accessory/hair/bun4 name = "Bun 4" icon_state = "bun4" species_allowed = list("Human", "Slime People", "Unathi", "Tajaran", "Vulpkanin") @@ -854,7 +855,8 @@ ///Fluff HairStyles// -/datum/sprite_accessory/hair/fluff/pinapple_fluff_hair //Pineapple Salad hair fluff its for a slime..has to go under human +/// Pineapple Salad hair fluff its for a slime..has to go under human +/datum/sprite_accessory/hair/fluff/pinapple_fluff_hair name = "Sasook Hair" icon_state = "psalad_fluff_hair" species_allowed = list("Slime People") diff --git a/code/modules/mob/new_player/sprite_accessories/shared/shared_tail_markings.dm b/code/modules/mob/new_player/sprite_accessories/shared/shared_tail_markings.dm index ea1176ff7386..72c9dbdc5ed4 100644 --- a/code/modules/mob/new_player/sprite_accessories/shared/shared_tail_markings.dm +++ b/code/modules/mob/new_player/sprite_accessories/shared/shared_tail_markings.dm @@ -1,7 +1,8 @@ /datum/sprite_accessory/body_markings/tail/shared icon = 'icons/mob/sprite_accessories/shared/shared_tail_markings.dmi' -/datum/sprite_accessory/body_markings/tail/shared/short_tip //Species-ambiguous, generic short tail. +/// Species-ambiguous, generic short tail. +/datum/sprite_accessory/body_markings/tail/shared/short_tip name = "Short Tail Tip" species_allowed = list("Vulpkanin", "Tajaran") tails_allowed = list("Short Tail") diff --git a/code/modules/mob/new_player/sprite_accessories/skrell/skrell_face.dm b/code/modules/mob/new_player/sprite_accessories/skrell/skrell_face.dm index 0846744f0caf..76cbbc7284c9 100644 --- a/code/modules/mob/new_player/sprite_accessories/skrell/skrell_face.dm +++ b/code/modules/mob/new_player/sprite_accessories/skrell/skrell_face.dm @@ -155,7 +155,8 @@ secondary_theme = "fest" no_sec_colour = 1 -/datum/sprite_accessory/hair/fluff/zeke_fluff_tentacle //Zeke Fluff hair +/// Zeke Fluff hair +/datum/sprite_accessory/hair/fluff/zeke_fluff_tentacle icon = 'icons/mob/sprite_accessories/skrell/skrell_hair.dmi' name = "Zekes Tentacles" icon_state = "zeke_fluff_hair" diff --git a/code/modules/mob/new_player/sprite_accessories/tajaran/tajaran_head_markings.dm b/code/modules/mob/new_player/sprite_accessories/tajaran/tajaran_head_markings.dm index cf23d358bf04..519b62894bc1 100644 --- a/code/modules/mob/new_player/sprite_accessories/tajaran/tajaran_head_markings.dm +++ b/code/modules/mob/new_player/sprite_accessories/tajaran/tajaran_head_markings.dm @@ -31,14 +31,17 @@ name = "Tajaran Muzzle and Inner Ears" icon_state = "muzinears" -/datum/sprite_accessory/body_markings/head/tajara/muzzle_alt_taj //Companion marking for Tajaran Belly 2. +/// Companion marking for Tajaran Belly 2. +/datum/sprite_accessory/body_markings/head/tajara/muzzle_alt_taj name = "Tajaran Muzzle 2" icon_state = "muzzle2" -/datum/sprite_accessory/body_markings/head/tajara/points_taj //Companion marking for Tajaran Points. +/// Companion marking for Tajaran Points. +/datum/sprite_accessory/body_markings/head/tajara/points_taj name = "Tajaran Points Head" icon_state = "points" -/datum/sprite_accessory/body_markings/head/tajara/patchy_taj //Companion marking for Tajaran Patches. +/// Companion marking for Tajaran Patches. +/datum/sprite_accessory/body_markings/head/tajara/patchy_taj name = "Tajaran Patches Head" icon_state = "patch" diff --git a/code/modules/mob/new_player/sprite_accessories/tajaran/tajaran_tail_markings.dm b/code/modules/mob/new_player/sprite_accessories/tajaran/tajaran_tail_markings.dm index c8c0d20a6b3e..ce507542afa3 100644 --- a/code/modules/mob/new_player/sprite_accessories/tajaran/tajaran_tail_markings.dm +++ b/code/modules/mob/new_player/sprite_accessories/tajaran/tajaran_tail_markings.dm @@ -2,6 +2,7 @@ icon = 'icons/mob/sprite_accessories/tajaran/tajaran_tail_markings.dmi' species_allowed = list("Tajaran") -/datum/sprite_accessory/body_markings/tail/tajara/taj_wingler_stripes //Tiger stripes. +/// Tiger stripes. +/datum/sprite_accessory/body_markings/tail/tajara/taj_wingler_stripes name = "Tajaran Tail Stripes" icon_state = "default_wingler" diff --git a/code/modules/mob/new_player/sprite_accessories/unathi/unathi_hair.dm b/code/modules/mob/new_player/sprite_accessories/unathi/unathi_hair.dm index 81eb4356c6ca..beed20524491 100644 --- a/code/modules/mob/new_player/sprite_accessories/unathi/unathi_hair.dm +++ b/code/modules/mob/new_player/sprite_accessories/unathi/unathi_hair.dm @@ -3,7 +3,8 @@ species_allowed = list("Unathi") glasses_over = 1 -/datum/sprite_accessory/hair/braid_hip_una // Future coder: Change the typepath under unathi. This is a legacy of my accessories splitting PR where typepath change is avoided at all cost +// Future coder: Change the typepath under unathi. This is a legacy of my accessories splitting PR where typepath change is avoided at all cost +/datum/sprite_accessory/hair/braid_hip_una icon = 'icons/mob/sprite_accessories/unathi/unathi_hair.dmi' name = "Unathi Hippie Braid" icon_state = "hipbraid" diff --git a/code/modules/mob/new_player/sprite_accessories/unathi/unathi_head_markings.dm b/code/modules/mob/new_player/sprite_accessories/unathi/unathi_head_markings.dm index b410148b0c94..bb416b82f099 100644 --- a/code/modules/mob/new_player/sprite_accessories/unathi/unathi_head_markings.dm +++ b/code/modules/mob/new_player/sprite_accessories/unathi/unathi_head_markings.dm @@ -20,16 +20,19 @@ icon_state = "lowersnout" heads_allowed = list("All") -/datum/sprite_accessory/body_markings/head/unathi/banded_una //Companion marking for Unathi Banded. +/// Companion marking for Unathi Banded. +/datum/sprite_accessory/body_markings/head/unathi/banded_una name = "Unathi Banded Head" icon_state = "bandedface" heads_allowed = list("All") -/datum/sprite_accessory/body_markings/head/unathi/snout_narrow_una //Companion marking for Unathi Narrow Belly. +/// Companion marking for Unathi Narrow Belly. +/datum/sprite_accessory/body_markings/head/unathi/snout_narrow_una name = "Unathi Snout 2" icon_state = "facenarrow" -/datum/sprite_accessory/body_markings/head/unathi/points_una //Companion marking for Unathi Points. +/// Companion marking for Unathi Points. +/datum/sprite_accessory/body_markings/head/unathi/points_una name = "Unathi Points Head" icon_state = "pointsface" heads_allowed = list("All") @@ -45,6 +48,7 @@ name = "Unathi Sharp Snout" icon_state = "snoutsharp" -/datum/sprite_accessory/body_markings/head/unathi/sharp/snout_narrow_una_sharp //Companion marking for Unathi Narrow Belly. +/// Companion marking for Unathi Narrow Belly. +/datum/sprite_accessory/body_markings/head/unathi/sharp/snout_narrow_una_sharp name = "Unathi Sharp Snout 2" icon_state = "facesharp" diff --git a/code/modules/mob/new_player/sprite_accessories/vulpkanin/vulpkanin_head_markings.dm b/code/modules/mob/new_player/sprite_accessories/vulpkanin/vulpkanin_head_markings.dm index e4c54a0b65ee..d48897737c47 100644 --- a/code/modules/mob/new_player/sprite_accessories/vulpkanin/vulpkanin_head_markings.dm +++ b/code/modules/mob/new_player/sprite_accessories/vulpkanin/vulpkanin_head_markings.dm @@ -18,18 +18,22 @@ name = "Vulpkanin Tiger Head and Face" icon_state = "tiger_face" -/datum/sprite_accessory/body_markings/head/vulpkanin/muzzle_vulp //Companion marking for Vulpkanin Belly Alt.. +/// Companion marking for Vulpkanin Belly Alt.. +/datum/sprite_accessory/body_markings/head/vulpkanin/muzzle_vulp name = "Vulpkanin Muzzle" icon_state = "muzzle" -/datum/sprite_accessory/body_markings/head/vulpkanin/muzzle_ears_vulp //Companion marking for Vulpkanin Belly Alt.. +/// Companion marking for Vulpkanin Belly Alt.. +/datum/sprite_accessory/body_markings/head/vulpkanin/muzzle_ears_vulp name = "Vulpkanin Muzzle and Ears" icon_state = "muzzle_ear" -/datum/sprite_accessory/body_markings/head/vulpkanin/points_fade_vulp //Companion marking for Vulpkanin Points Fade. +/// Companion marking for Vulpkanin Points Fade. +/datum/sprite_accessory/body_markings/head/vulpkanin/points_fade_vulp name = "Vulpkanin Points Head" icon_state = "points_fade" -/datum/sprite_accessory/body_markings/head/vulpkanin/points_sharp_vulp //Companion marking for Vulpkanin Points Sharp. +/// Companion marking for Vulpkanin Points Sharp. +/datum/sprite_accessory/body_markings/head/vulpkanin/points_sharp_vulp name = "Vulpkanin Points Head 2" icon_state = "points_sharp" diff --git a/code/modules/mod/mod_construction.dm b/code/modules/mod/mod_construction.dm index e92f9bf41a31..081cbddf0171 100644 --- a/code/modules/mod/mod_construction.dm +++ b/code/modules/mod/mod_construction.dm @@ -63,16 +63,20 @@ /obj/item/mod/construction/plating/cosmohonk theme = /datum/mod_theme/cosmohonk -/obj/item/mod/construction/plating/rescue //I want to add a way to get the rarer modsuit types, that is limited. A low chance for traders to have plating for it seems interesting +/// I want to add a way to get the rarer modsuit types, that is limited. A low chance for traders to have plating for it seems interesting +/obj/item/mod/construction/plating/rescue theme = /datum/mod_theme/rescue -/obj/item/mod/construction/plating/safeguard //Continued from above, none of these are steal objectives, and only the CE or RD one comes pre-installed with modules. You are getting the protection / speed / looks of these hardsuits, but no special modules. +/// Continued from above, none of these are steal objectives, and only the CE or RD one comes pre-installed with modules. You are getting the protection / speed / looks of these hardsuits, but no special modules. +/obj/item/mod/construction/plating/safeguard theme = /datum/mod_theme/safeguard -/obj/item/mod/construction/plating/advanced //This may be a bad idea. I think this is an interesting idea. And you still need robotics to build it, and traders can charge as much for it as they want. Also with ones like the CE modsuit, it is the flagship mod. That means it is sold a lot. +/// This may be a bad idea. I think this is an interesting idea. And you still need robotics to build it, and traders can charge as much for it as they want. Also with ones like the CE modsuit, it is the flagship mod. That means it is sold a lot. +/obj/item/mod/construction/plating/advanced theme = /datum/mod_theme/advanced -/obj/item/mod/construction/plating/research //Don't think people will want the RD one though, it is as slow as shit. Anyway, here it is. Surely this will not end poorly. +/// Don't think people will want the RD one though, it is as slow as shit. Anyway, here it is. Surely this will not end poorly. +/obj/item/mod/construction/plating/research theme = /datum/mod_theme/research #define START_STEP "start" diff --git a/code/modules/mod/mod_core.dm b/code/modules/mod/mod_core.dm index 2dbd92afebc3..62f737b32786 100644 --- a/code/modules/mod/mod_core.dm +++ b/code/modules/mod/mod_core.dm @@ -44,7 +44,8 @@ /obj/item/mod/core/proc/update_charge_alert() mod.wearer.clear_alert("mod_charge") -/obj/item/mod/core/infinite //Admin only. +/// Admin only. +/obj/item/mod/core/infinite name = "MOD infinite core" icon_state = "mod-core-infinite" desc = "A fusion core using the rare Infinium to sustain enough energy for the lifetime of the MOD's user. \ diff --git a/code/modules/mod/mod_theme.dm b/code/modules/mod/mod_theme.dm index d4057244a450..14c1ce98eb89 100644 --- a/code/modules/mod/mod_theme.dm +++ b/code/modules/mod/mod_theme.dm @@ -101,7 +101,8 @@ ), ) -/datum/mod_theme/standard //We don't want the civilian skin to apply to all modsuits, that causes issues. +/// We don't want the civilian skin to apply to all modsuits, that causes issues. +/datum/mod_theme/standard name = "standard" @@ -1125,7 +1126,8 @@ ), ) -/obj/item/mod/armor/mod_theme_responsory //This has no slowdown active, and no variation between levels. I am ASSUMING this will be gamma only. +/// This has no slowdown active, and no variation between levels. I am ASSUMING this will be gamma only. +/obj/item/mod/armor/mod_theme_responsory armor = list(MELEE = 40, BULLET = 25, LASER = 25, ENERGY = 20, BOMB = 25, RAD = INFINITY, FIRE = 200, ACID = 200) /datum/mod_theme/apocryphal @@ -1335,5 +1337,6 @@ ), ) -/obj/item/mod/armor/mod_theme_administrative //considering this should not be used, it's getting just DS armor, not infinity in everything. +/// considering this should not be used, it's getting just DS armor, not infinity in everything. +/obj/item/mod/armor/mod_theme_administrative armor = list(MELEE = 200, BULLET = 200, LASER = 50, ENERGY = 50, BOMB = INFINITY, RAD = INFINITY, FIRE = INFINITY, ACID = INFINITY) diff --git a/code/modules/mod/mod_types.dm b/code/modules/mod/mod_types.dm index 0ae05ec490e6..370a5b29bcea 100644 --- a/code/modules/mod/mod_types.dm +++ b/code/modules/mod/mod_types.dm @@ -119,7 +119,8 @@ /obj/item/mod/module/sphere_transform, ) -/obj/item/mod/control/pre_equipped/mining/vendor //visit robotics. +/// visit robotics. +/obj/item/mod/control/pre_equipped/mining/vendor theme = /datum/mod_theme/mining applied_core = /obj/item/mod/core/plasma applied_modules = list( @@ -130,7 +131,8 @@ ) -/obj/item/mod/control/pre_equipped/mining/asteroid //The asteroid skin, as that one looks more space worthy / older. Good for space ruins. +/// The asteroid skin, as that one looks more space worthy / older. Good for space ruins. +/obj/item/mod/control/pre_equipped/mining/asteroid applied_skin = "asteroid" /obj/item/mod/control/pre_equipped/medical @@ -368,7 +370,8 @@ insignia_type = /obj/item/mod/module/insignia/chaplain additional_module = /obj/item/mod/module/injector -/obj/item/mod/control/pre_equipped/responsory/inquisitory //Diffrent look, as well as magic proof on TG. We don't have the magic proof stuff here, but it's perfect for inqusitors. Or if you want to give your ERT a fancy look. +/// Diffrent look, as well as magic proof on TG. We don't have the magic proof stuff here, but it's perfect for inqusitors. Or if you want to give your ERT a fancy look. +/obj/item/mod/control/pre_equipped/responsory/inquisitory applied_skin = "inquisitory" /obj/item/mod/control/pre_equipped/responsory/inquisitory/commander diff --git a/code/modules/mod/modules/modules_security.dm b/code/modules/mod/modules/modules_security.dm index 6e5a95364955..865cf356faa8 100644 --- a/code/modules/mod/modules/modules_security.dm +++ b/code/modules/mod/modules/modules_security.dm @@ -92,7 +92,8 @@ M.Copy_Parent(thrower, 15 SECONDS) qdel(src) -/mob/living/simple_animal/hostile/illusion/mirage //It's just standing there, menacingly +/// It's just standing there, menacingly +/mob/living/simple_animal/hostile/illusion/mirage AIStatus = AI_OFF density = FALSE diff --git a/code/modules/paperwork/filingcabinet.dm b/code/modules/paperwork/filingcabinet.dm index 630d3140b111..f0ed2903029c 100644 --- a/code/modules/paperwork/filingcabinet.dm +++ b/code/modules/paperwork/filingcabinet.dm @@ -32,7 +32,8 @@ name = "autopsy reports drawer" desc = "A large drawer for holding autopsy reports." -/obj/structure/filingcabinet/filingcabinet //not changing the path to avoid unecessary map issues, but please don't name stuff like this in the future -Pete +/// not changing the path to avoid unecessary map issues, but please don't name stuff like this in the future -Pete +/obj/structure/filingcabinet/filingcabinet icon_state = "tallcabinet" diff --git a/code/modules/paperwork/silicon_photography.dm b/code/modules/paperwork/silicon_photography.dm index 5539477190a4..aba7263615ed 100644 --- a/code/modules/paperwork/silicon_photography.dm +++ b/code/modules/paperwork/silicon_photography.dm @@ -10,13 +10,16 @@ var/photos_taken = 0 var/list/aipictures = list() -/obj/item/camera/siliconcam/ai_camera //camera AI can take pictures with +/// camera AI can take pictures with +/obj/item/camera/siliconcam/ai_camera name = "AI photo camera" -/obj/item/camera/siliconcam/robot_camera //camera cyborgs can take pictures with +/// camera cyborgs can take pictures with +/obj/item/camera/siliconcam/robot_camera name = "Cyborg photo camera" -/obj/item/camera/siliconcam/drone_camera //currently doesn't offer the verbs, thus cannot be used +/// currently doesn't offer the verbs, thus cannot be used +/obj/item/camera/siliconcam/drone_camera name = "Drone photo camera" /obj/item/camera/siliconcam/proc/injectaialbum(datum/picture/P, sufix = "") //stores image information to a list similar to that of the datacore diff --git a/code/modules/pda/cart.dm b/code/modules/pda/cart.dm index 9ca068dd81f5..4a66081f9563 100644 --- a/code/modules/pda/cart.dm +++ b/code/modules/pda/cart.dm @@ -282,7 +282,8 @@ charges = 4 messenger_plugins = list(new/datum/data/pda/messenger_plugin/virus/detonate) -/obj/item/cartridge/syndicate/nuclear //needed subtype so regular traitors can't open and close nuclear shuttle doors +/// needed subtype so regular traitors can't open and close nuclear shuttle doors +/obj/item/cartridge/syndicate/nuclear name = "Nuclear Agent Detomatix Cartridge" desc = "The same reliable Detomatix program except with the added ability of remotely toggling your nuclear shuttle airlock from your PDA" var/initial_remote_door_id = "smindicate" //Make sure this matches the syndicate shuttle's shield/door id!! //don't ask about the name, testing. diff --git a/code/modules/power/apc/apc.dm b/code/modules/power/apc/apc.dm index bd6ed8a952e9..f5ca2d8097a5 100644 --- a/code/modules/power/apc/apc.dm +++ b/code/modules/power/apc/apc.dm @@ -1063,7 +1063,8 @@ /obj/machinery/power/apc/off_station/empty_charge start_charge = 0 -/obj/machinery/power/apc/syndicate //general syndicate access +/// general syndicate access +/obj/machinery/power/apc/syndicate name = "Main branch, do not use" req_access = list(ACCESS_SYNDICATE) report_power_alarm = FALSE diff --git a/code/modules/power/cell.dm b/code/modules/power/cell.dm index 58ef4172770b..ac615cfcf740 100644 --- a/code/modules/power/cell.dm +++ b/code/modules/power/cell.dm @@ -211,17 +211,20 @@ name = "\improper X-01 multiphase energy gun power cell" maxcharge = 1200 -/obj/item/stock_parts/cell/pulse //200 pulse shots +/// 200 pulse shots +/obj/item/stock_parts/cell/pulse name = "pulse rifle power cell" maxcharge = 40000 rating = 3 chargerate = 1500 -/obj/item/stock_parts/cell/pulse/carbine //25 pulse shots +/// 25 pulse shots +/obj/item/stock_parts/cell/pulse/carbine name = "pulse carbine power cell" maxcharge = 5000 -/obj/item/stock_parts/cell/pulse/pistol //10 pulse shots +/// 10 pulse shots +/obj/item/stock_parts/cell/pulse/pistol name = "pulse pistol power cell" maxcharge = 2000 @@ -371,7 +374,8 @@ maxcharge = 40000 chargerate = 2600 // about 30 seconds to charge with a default recharger -/obj/item/stock_parts/cell/emproof/reactive // EMP proof so emp_act does not double dip. +/// EMP proof so emp_act does not double dip. +/obj/item/stock_parts/cell/emproof/reactive name = "reactive armor power cell" desc = "A cell used to power reactive armors." maxcharge = 2400 diff --git a/code/modules/power/engines/singularity/narsie.dm b/code/modules/power/engines/singularity/narsie.dm index c5ee48948b67..a90624bb3c75 100644 --- a/code/modules/power/engines/singularity/narsie.dm +++ b/code/modules/power/engines/singularity/narsie.dm @@ -1,4 +1,5 @@ -/obj/singularity/narsie //Moving narsie to a child object of the singularity so it can be made to function differently. --NEO +/// Moving narsie to a child object of the singularity so it can be made to function differently. --NEO +/obj/singularity/narsie name = "Nar'sie's Avatar" desc = "Your mind begins to bubble and ooze as it tries to comprehend what it sees." icon = 'icons/obj/magic_terror.dmi' diff --git a/code/modules/power/engines/supermatter/supermatter.dm b/code/modules/power/engines/supermatter/supermatter.dm index 5eb1232d9350..cfb174ff1104 100644 --- a/code/modules/power/engines/supermatter/supermatter.dm +++ b/code/modules/power/engines/supermatter/supermatter.dm @@ -1026,7 +1026,8 @@ moveable = FALSE anchored = TRUE -/obj/machinery/atmospherics/supermatter_crystal/shard/hugbox/fakecrystal //Hugbox shard with crystal visuals, used in the Supermatter/Hyperfractal shuttle +/// Hugbox shard with crystal visuals, used in the Supermatter/Hyperfractal shuttle +/obj/machinery/atmospherics/supermatter_crystal/shard/hugbox/fakecrystal name = "supermatter crystal" base_icon_state = "darkmatter" icon_state = "darkmatter" diff --git a/code/modules/procedural_mapping/mapGenerators/syndicate_mapgen.dm b/code/modules/procedural_mapping/mapGenerators/syndicate_mapgen.dm index 620d88ca48a3..08031bcec240 100644 --- a/code/modules/procedural_mapping/mapGenerators/syndicate_mapgen.dm +++ b/code/modules/procedural_mapping/mapGenerators/syndicate_mapgen.dm @@ -25,7 +25,8 @@ // Generators -/datum/mapGenerator/syndicate/empty //walls and floor only +/// walls and floor only +/datum/mapGenerator/syndicate/empty modules = list(/datum/mapGeneratorModule/bottomLayer/syndieFloor, \ /datum/mapGeneratorModule/border/syndieWalls,\ /datum/mapGeneratorModule/bottomLayer/repressurize) diff --git a/code/modules/projectiles/ammunition/energy_lens.dm b/code/modules/projectiles/ammunition/energy_lens.dm index 322d210681af..93f8c9b3d661 100644 --- a/code/modules/projectiles/ammunition/energy_lens.dm +++ b/code/modules/projectiles/ammunition/energy_lens.dm @@ -13,7 +13,8 @@ muzzle_flash_color = LIGHT_COLOR_DARKRED select_name = "kill" -/obj/item/ammo_casing/energy/laser/cyborg //to balance cyborg energy cost seperately +/// to balance cyborg energy cost seperately +/obj/item/ammo_casing/energy/laser/cyborg e_cost = 250 /obj/item/ammo_casing/energy/lasergun @@ -175,7 +176,8 @@ randomspread = 1 delay = 2 -/obj/item/ammo_casing/energy/disabler/cyborg //seperate balancing for cyborg, again +/// seperate balancing for cyborg, again +/obj/item/ammo_casing/energy/disabler/cyborg e_cost = 250 /obj/item/ammo_casing/energy/disabler/hos @@ -306,7 +308,8 @@ e_cost = 350 // about 42 shots on an engineering borg from a borging machine, Reads a lot better than it actually is because people miss shots and often your better abilities require charge as well delay = 1 SECONDS -/obj/item/ammo_casing/energy/emitter/cyborg/proto // needed a slightly weaker ranged option to give to Safety Overriden borgs. The fire rate is about the same as an emitter if you put it on the ground. +/// needed a slightly weaker ranged option to give to Safety Overriden borgs. The fire rate is about the same as an emitter if you put it on the ground. +/obj/item/ammo_casing/energy/emitter/cyborg/proto e_cost = 500 delay = 2 SECONDS diff --git a/code/modules/projectiles/ammunition/magazines.dm b/code/modules/projectiles/ammunition/magazines.dm index 54fc6475c145..2a74c71b4482 100644 --- a/code/modules/projectiles/ammunition/magazines.dm +++ b/code/modules/projectiles/ammunition/magazines.dm @@ -571,7 +571,8 @@ multi_sprite_step = 5 w_class = WEIGHT_CLASS_NORMAL -/obj/item/ammo_box/magazine/laser/ert //Used by red ERT. Keeps the size for them +/// Used by red ERT. Keeps the size for them +/obj/item/ammo_box/magazine/laser/ert name = "compact laser carbine projector magazine" desc = "By use of bluespace technology, the ammo casings are stored in a pocket dimension, saving on space and making them EMP proof." w_class = WEIGHT_CLASS_TINY @@ -589,7 +590,8 @@ /obj/item/ammo_box/magazine/toy/smgm45/riot ammo_type = /obj/item/ammo_casing/caseless/foam_dart/riot -/obj/item/ammo_box/magazine/detective/speedcharger //yes this doesn't really belong here but nowhere else works +// yes this doesn't really belong here but nowhere else works +/obj/item/ammo_box/magazine/detective/speedcharger name = "DL-88 charge pack" desc = "One-use charge pack for the DL-88 energy revolver." icon_state = "handgun_ammo_battery" diff --git a/code/modules/projectiles/guns/energy/special_eguns.dm b/code/modules/projectiles/guns/energy/special_eguns.dm index f76483b01c4f..bad7b5dcbfc4 100644 --- a/code/modules/projectiles/guns/energy/special_eguns.dm +++ b/code/modules/projectiles/guns/energy/special_eguns.dm @@ -838,7 +838,8 @@ tracking_target_UID = null -/obj/item/gun/energy/spikethrower //It's like the cyborg LMG, uses energy to make spikes +/// It's like the cyborg LMG, uses energy to make spikes +/obj/item/gun/energy/spikethrower name = "\improper Vox spike thrower" desc = "A vicious alien projectile weapon. Parts of it quiver gelatinously, as though the thing is insectile and alive." icon = 'icons/obj/guns/projectile.dmi' diff --git a/code/modules/projectiles/guns/projectile/revolver.dm b/code/modules/projectiles/guns/projectile/revolver.dm index 381d1d641d9e..7098081a31c0 100644 --- a/code/modules/projectiles/guns/projectile/revolver.dm +++ b/code/modules/projectiles/guns/projectile/revolver.dm @@ -112,7 +112,8 @@ user.bleed(BLOOD_VOLUME_NORMAL) user.death() // Just in case -/obj/item/gun/projectile/revolver/fingergun //Summoned by the Finger Gun spell, from advanced mimery traitor item +/// Summoned by the Finger Gun spell, from advanced mimery traitor item +/obj/item/gun/projectile/revolver/fingergun name = "\improper finger gun" desc = "Bang bang bang!" icon_state = "fingergun" diff --git a/code/modules/projectiles/guns/projectile/shotgun.dm b/code/modules/projectiles/guns/projectile/shotgun.dm index 70e9a7f903be..f5f3d6100d37 100644 --- a/code/modules/projectiles/guns/projectile/shotgun.dm +++ b/code/modules/projectiles/guns/projectile/shotgun.dm @@ -86,7 +86,8 @@ // RIOT SHOTGUN // -/obj/item/gun/projectile/shotgun/riot //for spawn in the armory +/// for spawn in the armory +/obj/item/gun/projectile/shotgun/riot name = "riot shotgun" desc = "A sturdy shotgun with a longer magazine and a fixed tactical stock designed for non-lethal riot control." icon_state = "riotshotgun" diff --git a/code/modules/projectiles/projectile/bullets.dm b/code/modules/projectiles/projectile/bullets.dm index 56935aae546e..406aa34e3e3b 100644 --- a/code/modules/projectiles/projectile/bullets.dm +++ b/code/modules/projectiles/projectile/bullets.dm @@ -7,7 +7,8 @@ hitsound_wall = "ricochet" impact_effect_type = /obj/effect/temp_visual/impact_effect -/obj/item/projectile/bullet/weakbullet //beanbag, heavy stamina damage +/// beanbag, heavy stamina damage +/obj/item/projectile/bullet/weakbullet name = "beanbag slug" damage = 5 stamina = 40 @@ -138,7 +139,8 @@ /obj/item/projectile/bullet/heavybullet damage = 35 -/obj/item/projectile/bullet/stunshot //taser slugs for shotguns, nothing special +/// taser slugs for shotguns, nothing special +/obj/item/projectile/bullet/stunshot name = "stunshot" damage = 5 weaken = 10 SECONDS diff --git a/code/modules/reagents/chemistry/reagents/admin_reagents.dm b/code/modules/reagents/chemistry/reagents/admin_reagents.dm index 32dc34f79de3..bce28f02500e 100644 --- a/code/modules/reagents/chemistry/reagents/admin_reagents.dm +++ b/code/modules/reagents/chemistry/reagents/admin_reagents.dm @@ -1,4 +1,5 @@ -/datum/reagent/medicine/adminordrazine //An OP chemical for admins +/// An OP chemical for admins +/datum/reagent/medicine/adminordrazine name = "Adminordrazine" id = "adminordrazine" description = "It's magic. We don't have to explain it." diff --git a/code/modules/reagents/chemistry/reagents/alcohol.dm b/code/modules/reagents/chemistry/reagents/alcohol.dm index ac51cdc9cadc..2995b332c32d 100644 --- a/code/modules/reagents/chemistry/reagents/alcohol.dm +++ b/code/modules/reagents/chemistry/reagents/alcohol.dm @@ -230,7 +230,8 @@ drink_desc = "Damn, you feel like some kind of French aristocrat just by holding this." taste_description = "cognac" -/datum/reagent/consumable/ethanol/suicider //otherwise known as "I want to get so smashed my liver gives out and I die from alcohol poisoning". +/// otherwise known as "I want to get so smashed my liver gives out and I die from alcohol poisoning". +/datum/reagent/consumable/ethanol/suicider name = "Suicider" id = "suicider" description = "An unbelievably strong and potent variety of Cider." @@ -1155,7 +1156,8 @@ drink_desc = "For enjoying the most wonderful time of the year." taste_description = "christmas spirit" -/datum/reagent/consumable/ethanol/dragons_breath //inaccessible to players, but here for admin shennanigans +/// inaccessible to players, but here for admin shennanigans +/datum/reagent/consumable/ethanol/dragons_breath name = "Dragon's Breath" id = "dragonsbreath" description = "Possessing this stuff probably breaks the Geneva convention." @@ -1409,7 +1411,8 @@ #undef MIN_WINE_PERCENT -/datum/reagent/consumable/ethanol/bacchus_blessing //An EXTREMELY powerful drink. Smashed in seconds, dead in minutes. +/// An EXTREMELY powerful drink. Smashed in seconds, dead in minutes. +/datum/reagent/consumable/ethanol/bacchus_blessing name = "Bacchus' Blessing" id = "bacchus_blessing" description = "Unidentifiable mixture. Unmeasurably high alcohol content." diff --git a/code/modules/reagents/chemistry/reagents/blob_reagents.dm b/code/modules/reagents/chemistry/reagents/blob_reagents.dm index 0387905fe2c7..5eaa1a1e094b 100644 --- a/code/modules/reagents/chemistry/reagents/blob_reagents.dm +++ b/code/modules/reagents/chemistry/reagents/blob_reagents.dm @@ -12,7 +12,8 @@ /datum/reagent/blob/proc/damage_reaction(obj/structure/blob/B, damage, damage_type, damage_flag) //when the blob takes damage, do this return damage -/datum/reagent/blob/ripping_tendrils //does brute and a little stamina damage +/// does brute and a little stamina damage +/datum/reagent/blob/ripping_tendrils name = "Ripping Tendrils" description = "Deals High Brute damage, as well as Stamina damage." id = "ripping_tendrils" @@ -28,7 +29,8 @@ if(iscarbon(M)) M.emote("scream") -/datum/reagent/blob/boiling_oil //sets you on fire, does burn damage +/// sets you on fire, does burn damage +/datum/reagent/blob/boiling_oil name = "Boiling Oil" description = "Deals High Burn damage, and sets the victim aflame." id = "boiling_oil" @@ -45,7 +47,8 @@ M.IgniteMob() M.emote("scream") -/datum/reagent/blob/envenomed_filaments //toxin, hallucination, and some bonus spore toxin +/// toxin, hallucination, and some bonus spore toxin +/datum/reagent/blob/envenomed_filaments name = "Envenomed Filaments" description = "Deals High Toxin damage, causes Hallucinations, and injects Spores into the bloodstream." id = "envenomed_filaments" @@ -61,7 +64,8 @@ if(M.reagents) M.reagents.add_reagent("spore", 0.4*volume) -/datum/reagent/blob/lexorin_jelly //does tons of oxygen damage and a little brute +/// does tons of oxygen damage and a little brute +/datum/reagent/blob/lexorin_jelly name = "Lexorin Jelly" description = "Deals Medium Brute damage, but massive amounts of Respiration Damage." id = "lexorin_jelly" @@ -77,7 +81,8 @@ M.AdjustLoseBreath(round(0.6 SECONDS * volume)) -/datum/reagent/blob/kinetic //does semi-random brute damage +/// does semi-random brute damage +/datum/reagent/blob/kinetic name = "Kinetic Gelatin" description = "Deals Randomized damage, between 0.33 to 2.33 times the standard amount." id = "kinetic" @@ -91,7 +96,8 @@ var/damage = rand(5, 35)/25 M.apply_damage(damage*volume, BRUTE) -/datum/reagent/blob/cryogenic_liquid //does low burn damage and stamina damage and cools targets down +/// does low burn damage and stamina damage and cools targets down +/datum/reagent/blob/cryogenic_liquid name = "Cryogenic Liquid" description = "Deals Medium Brute damage, Stamina Damage, and injects Frost Oil into its victims, freezing them to death." id = "cryogenic_liquid" diff --git a/code/modules/reagents/chemistry/reagents/drugs.dm b/code/modules/reagents/chemistry/reagents/drugs.dm index 51f8ec28f334..da1e5407c06c 100644 --- a/code/modules/reagents/chemistry/reagents/drugs.dm +++ b/code/modules/reagents/chemistry/reagents/drugs.dm @@ -775,7 +775,8 @@ M.emote("laugh") return list(effect, update_flags) -/datum/reagent/rotatium //Rotatium. Fucks up your rotation and is hilarious +/// Rotatium. Fucks up your rotation and is hilarious +/datum/reagent/rotatium name = "Rotatium" id = "rotatium" description = "A constantly swirling, oddly colourful fluid. Causes the consumer's sense of direction and hand-eye coordination to become wild." diff --git a/code/modules/reagents/chemistry/reagents/food_reagents.dm b/code/modules/reagents/chemistry/reagents/food_reagents.dm index fc3ed3ccd20f..e1e666e56ab3 100644 --- a/code/modules/reagents/chemistry/reagents/food_reagents.dm +++ b/code/modules/reagents/chemistry/reagents/food_reagents.dm @@ -19,7 +19,8 @@ H.adjust_nutrition(nutriment_factor) // For hunger and fatness return ..() -/datum/reagent/consumable/nutriment // Pure nutriment, universally digestable and thus slightly less effective +/// Pure nutriment, universally digestable and thus slightly less effective +/datum/reagent/consumable/nutriment name = "Nutriment" id = "nutriment" description = "A questionable mixture of various pure nutrients commonly found in processed foods." @@ -62,13 +63,15 @@ counterlist_normalise(taste_amounts) data = taste_amounts -/datum/reagent/consumable/nutriment/protein // Meat-based protein, digestable by carnivores and omnivores, worthless to herbivores +/// Meat-based protein, digestable by carnivores and omnivores, worthless to herbivores +/datum/reagent/consumable/nutriment/protein name = "Protein" id = "protein" description = "Various essential proteins and fats commonly found in animal flesh and blood." diet_flags = DIET_CARN | DIET_OMNI -/datum/reagent/consumable/nutriment/plantmatter // Plant-based biomatter, digestable by herbivores and omnivores, worthless to carnivores +/// Plant-based biomatter, digestable by herbivores and omnivores, worthless to carnivores +/datum/reagent/consumable/nutriment/plantmatter name = "Plant-matter" id = "plantmatter" description = "Vitamin-rich fibers and natural sugars commonly found in fresh produce." @@ -813,7 +816,8 @@ ///Food Related, but non-nutritious -/datum/reagent/questionmark // food poisoning +/// food poisoning +/datum/reagent/questionmark name = "????" id = "????" description = "A gross and unidentifiable substance." diff --git a/code/modules/reagents/chemistry/reagents/medicine.dm b/code/modules/reagents/chemistry/reagents/medicine.dm index 3cd551e24f94..7057b02f99ba 100644 --- a/code/modules/reagents/chemistry/reagents/medicine.dm +++ b/code/modules/reagents/chemistry/reagents/medicine.dm @@ -1258,7 +1258,8 @@ M.Drowsy(40 SECONDS) return ..() | update_flags -/datum/reagent/medicine/syndicate_nanites //Used exclusively by Syndicate medical cyborgs +/// Used exclusively by Syndicate medical cyborgs +/datum/reagent/medicine/syndicate_nanites name = "Restorative Nanites" id = "syndicate_nanites" description = "Miniature medical robots that swiftly restore bodily damage. May begin to attack their host's cells in high amounts." @@ -1400,7 +1401,8 @@ return ..() | update_flags -/datum/reagent/medicine/earthsblood //Created by ambrosia gaia plants +/// Created by ambrosia gaia plants +/datum/reagent/medicine/earthsblood name = "Earthsblood" id = "earthsblood" description = "Ichor from an extremely powerful plant. Great for restoring wounds, but it's a little heavy on the brain." diff --git a/code/modules/reagents/chemistry/reagents/misc_reagents.dm b/code/modules/reagents/chemistry/reagents/misc_reagents.dm index e99879f3b28d..ad585ba96a17 100644 --- a/code/modules/reagents/chemistry/reagents/misc_reagents.dm +++ b/code/modules/reagents/chemistry/reagents/misc_reagents.dm @@ -447,7 +447,8 @@ /datum/reagent/love/reaction_mob(mob/living/M, method=REAGENT_TOUCH, volume) to_chat(M, "You feel loved!") -/datum/reagent/jestosterone //Formerly known as Nitrogen tungstide hypochlorite before NT fired the chemists for trying to be funny +/// Formerly known as Nitrogen tungstide hypochlorite before NT fired the chemists for trying to be funny +/datum/reagent/jestosterone name = "Jestosterone" id = "jestosterone" description = "Jestosterone is an odd chemical compound that induces a variety of annoying side-effects in the average person. It also causes mild intoxication, and is toxic to mimes." diff --git a/code/modules/reagents/chemistry/reagents/toxins.dm b/code/modules/reagents/chemistry/reagents/toxins.dm index c104e21bd9e9..264b0b6c8823 100644 --- a/code/modules/reagents/chemistry/reagents/toxins.dm +++ b/code/modules/reagents/chemistry/reagents/toxins.dm @@ -452,7 +452,8 @@ M.EyeBlurry(6 SECONDS) return ..() | update_flags -/datum/reagent/beer2 //disguised as normal beer for use by emagged service borgs +/// disguised as normal beer for use by emagged service borgs +/datum/reagent/beer2 name = "Beer" id = "beer2" description = "An alcoholic beverage made from malted grains, hops, yeast, and water." @@ -1082,7 +1083,8 @@ lethality = 2 //Atrazine, however, is definitely toxic -/datum/reagent/pestkiller // To-Do; make this more realistic. +/// To-Do; make this more realistic. +/datum/reagent/pestkiller name = "Pest Killer" id = "pestkiller" description = "A harmful toxic mixture to kill pests. Do not ingest!" @@ -1237,7 +1239,8 @@ M.emote("scream") M.adjustBruteLoss(4) -/datum/reagent/teslium //Teslium. Causes periodic shocks, and makes shocks against the target much more effective. +/// Teslium. Causes periodic shocks, and makes shocks against the target much more effective. +/datum/reagent/teslium name = "Teslium" id = "teslium" description = "An unstable, electrically-charged metallic slurry. Increases the conductance of living things." @@ -1281,7 +1284,8 @@ playsound(M, "sparks", 50, TRUE, SHORT_RANGE_SOUND_EXTRARANGE) chosen_timer = rand(shock_low, shock_high) //It needs to be randomised here for blob teslium, and randoming it here doesn't affect normal -/datum/reagent/teslium/blob //This version has it's shocks much less frequently, while retaining the shock multiplier +/// This version has it's shocks much less frequently, while retaining the shock multiplier +/datum/reagent/teslium/blob id = "blob_teslium" shock_low = 10 use_chaotic_random = FALSE diff --git a/code/modules/reagents/chemistry/reagents/water.dm b/code/modules/reagents/chemistry/reagents/water.dm index 4c894c64f671..25d4c98451e4 100644 --- a/code/modules/reagents/chemistry/reagents/water.dm +++ b/code/modules/reagents/chemistry/reagents/water.dm @@ -363,7 +363,8 @@ qdel(R) T.Bless() -/datum/reagent/fuel/unholywater //if you somehow managed to extract this from someone, dont splash it on yourself and have a smoke +/// if you somehow managed to extract this from someone, dont splash it on yourself and have a smoke +/datum/reagent/fuel/unholywater name = "Unholy Water" id = "unholywater" description = "Something that shouldn't exist on this plane of existence." diff --git a/code/modules/reagents/chemistry/recipes/pyrotechnics.dm b/code/modules/reagents/chemistry/recipes/pyrotechnics.dm index ed5bb95bedd7..0614786d2d1b 100644 --- a/code/modules/reagents/chemistry/recipes/pyrotechnics.dm +++ b/code/modules/reagents/chemistry/recipes/pyrotechnics.dm @@ -225,7 +225,8 @@ result_amount = 2 mix_message = "The substance becomes a pile of burning dust." -/datum/chemical_reaction/phlogiston_fire //This MUST be above the smoke recipe. +/// This MUST be above the smoke recipe. +/datum/chemical_reaction/phlogiston_fire name = "Phlogiston Fire" id = "phlogiston_fire" result = "phlogiston" diff --git a/code/modules/reagents/chemistry/recipes/toxins_reactions.dm b/code/modules/reagents/chemistry/recipes/toxins_reactions.dm index cf61f2f916b0..68d23fe73c10 100644 --- a/code/modules/reagents/chemistry/recipes/toxins_reactions.dm +++ b/code/modules/reagents/chemistry/recipes/toxins_reactions.dm @@ -108,7 +108,8 @@ result_amount = 3 mix_message = "The mixture gives off a harsh odor" -/datum/chemical_reaction/pestkiller // To-Do make this more realistic +/// To-Do make this more realistic +/datum/chemical_reaction/pestkiller name = "Pest Killer" id = "pestkiller" result = "pestkiller" diff --git a/code/modules/reagents/reagent_containers/applicator.dm b/code/modules/reagents/reagent_containers/applicator.dm index 4478d05ad27c..b8ee6eb98236 100644 --- a/code/modules/reagents/reagent_containers/applicator.dm +++ b/code/modules/reagents/reagent_containers/applicator.dm @@ -144,5 +144,6 @@ name = "dual auto-mender" list_reagents = list("synthflesh" = 200) -/obj/item/reagent_containers/applicator/dual/syndi // It magically goes through hardsuits. Don't ask how. +/// It magically goes through hardsuits. Don't ask how. +/obj/item/reagent_containers/applicator/dual/syndi ignore_flags = TRUE diff --git a/code/modules/reagents/reagent_containers/hypospray.dm b/code/modules/reagents/reagent_containers/hypospray.dm index ccffe1dcab95..558f06a3a195 100644 --- a/code/modules/reagents/reagent_containers/hypospray.dm +++ b/code/modules/reagents/reagent_containers/hypospray.dm @@ -116,7 +116,8 @@ volume = 100 list_reagents = list("nanites" = 100) -/obj/item/reagent_containers/hypospray/autoinjector // This is an empty variant +/// This is an empty variant +/obj/item/reagent_containers/hypospray/autoinjector name = "empty autoinjector" desc = "A rapid and safe way to inject chemicals into humanoids. This one is empty." icon_state = "autoinjector" @@ -160,13 +161,15 @@ desc = "A rapid and safe way to stabilize patients in critical condition for personnel without advanced medical knowledge." list_reagents = list("epinephrine" = 10) -/obj/item/reagent_containers/hypospray/autoinjector/teporone //basilisks +/// basilisks +/obj/item/reagent_containers/hypospray/autoinjector/teporone name = "teporone autoinjector" desc = "A rapid way to regulate your body's temperature in the event of a hardsuit malfunction." icon_state = "lepopen" list_reagents = list("teporone" = 10) -/obj/item/reagent_containers/hypospray/autoinjector/stimpack //goliath kiting +/// goliath kiting +/obj/item/reagent_containers/hypospray/autoinjector/stimpack name = "stimpack autoinjector" desc = "A rapid way to stimulate your body's adrenaline, allowing for freer movement in restrictive armor." icon_state = "stimpen" diff --git a/code/modules/reagents/reagent_containers/iv_bag.dm b/code/modules/reagents/reagent_containers/iv_bag.dm index 0236eb5ed2eb..4dcf8ffff9a4 100644 --- a/code/modules/reagents/reagent_containers/iv_bag.dm +++ b/code/modules/reagents/reagent_containers/iv_bag.dm @@ -163,7 +163,8 @@ . = ..() name = "[initial(name)] - Saline Glucose" -/obj/item/reagent_containers/iv_bag/blood // Don't use this - just an abstract type to allow blood bags to have a common blood_type var for ease of creation. +/// Don't use this - just an abstract type to allow blood bags to have a common blood_type var for ease of creation. +/obj/item/reagent_containers/iv_bag/blood var/blood_type var/blood_species = "Synthetic humanoid" var/iv_blood_colour = "#A10808" diff --git a/code/modules/reagents/reagent_containers/spray.dm b/code/modules/reagents/reagent_containers/spray.dm index 518e1f9a4a42..6a7f760a61e0 100644 --- a/code/modules/reagents/reagent_containers/spray.dm +++ b/code/modules/reagents/reagent_containers/spray.dm @@ -273,8 +273,9 @@ to_chat(user, "You adjust the output switch. You'll now use [amount_per_transfer_from_this] units per spray.") -// Plant-B-Gone -/obj/item/reagent_containers/spray/plantbgone // -- Skie +/// Plant-B-Gone +/// -- Skie +/obj/item/reagent_containers/spray/plantbgone name = "Plant-B-Gone" desc = "Kills those pesky weeds!" icon = 'icons/obj/hydroponics/equipment.dmi' diff --git a/code/modules/recycling/belt-placer.dm b/code/modules/recycling/belt-placer.dm index 1b473bef8146..8e1db8b15fce 100644 --- a/code/modules/recycling/belt-placer.dm +++ b/code/modules/recycling/belt-placer.dm @@ -1,4 +1,5 @@ -/obj/item/storage/conveyor //Stores conveyor belts, click floor to make belt, use a conveyor switch on this to link all belts to that lever. +/// Stores conveyor belts, click floor to make belt, use a conveyor switch on this to link all belts to that lever. +/obj/item/storage/conveyor name = "conveyor belt placer" desc = "This device facilitates the rapid deployment of conveyor belts." icon_state = "belt_placer" diff --git a/code/modules/research/designs.dm b/code/modules/research/designs.dm index 809cf610e017..aeae9e6daa5a 100644 --- a/code/modules/research/designs.dm +++ b/code/modules/research/designs.dm @@ -29,7 +29,8 @@ other types of metals and chemistry for reagents). */ -/datum/design //Datum for object designs, used in construction +/// Datum for object designs, used in construction +/datum/design var/name = "Name" //Name of the created object. var/desc = "Desc" //Description of the created object. var/id = "id" //ID of the created object for easy refernece. Alphanumeric, lower-case, no symbols diff --git a/code/modules/research/research.dm b/code/modules/research/research.dm index 50e22ec33cae..184682337239 100644 --- a/code/modules/research/research.dm +++ b/code/modules/research/research.dm @@ -44,7 +44,8 @@ research holder datum. ** Includes all the helper procs and basic tech processing. ** ***************************************************************/ -/datum/research //Holder for all the existing, archived, and known tech. Individual to console. +/// Holder for all the existing, archived, and known tech. Individual to console. +/datum/research //Datum/tech go here. // Possible is a list of direct datum references @@ -249,7 +250,8 @@ research holder datum. ** Includes all the various technoliges and what they make. ** ***************************************************************/ -/datum/tech //Datum of individual technologies. +/// Datum of individual technologies. +/datum/tech var/name = "name" //Name of the technology. var/desc = "description" //General description of what it does and what it makes. var/id = "id" //An easily referenced ID. Must be alphanumeric, lower-case, and no symbols. @@ -317,7 +319,8 @@ research holder datum. id = "programming" max_level = 7 -/datum/tech/toxins //not meant to be raised by deconstruction, do not give objects toxins as an origin_tech +/// not meant to be raised by deconstruction, do not give objects toxins as an origin_tech +/datum/tech/toxins name = "Toxins Research" desc = "Research into plasma based explosive devices. Upgrade through testing explosives in the toxins lab." id = "toxins" diff --git a/code/modules/ruins/lavalandruin_code/dead_ratvar.dm b/code/modules/ruins/lavalandruin_code/dead_ratvar.dm index fa9306f52459..35c509798e12 100644 --- a/code/modules/ruins/lavalandruin_code/dead_ratvar.dm +++ b/code/modules/ruins/lavalandruin_code/dead_ratvar.dm @@ -68,7 +68,8 @@ layer = TURF_LAYER plane = FLOOR_PLANE -/obj/effect/clockwork/overlay/floor/bloodcult //this is used by BLOOD CULT, it shouldn't use such a path... +/// this is used by BLOOD CULT, it shouldn't use such a path... +/obj/effect/clockwork/overlay/floor/bloodcult icon_state = "cult" // Wall gears @@ -204,7 +205,8 @@ name = "gear bit" desc = "A broken chunk of a gear. You want it." -/obj/item/clockwork/alloy_shards/medium/gear_bit/large //gives more power +/// gives more power +/obj/item/clockwork/alloy_shards/medium/gear_bit/large /obj/item/clockwork/alloy_shards/medium/gear_bit/large/replace_name_desc() ..() diff --git a/code/modules/ruins/lavalandruin_code/sin_ruins.dm b/code/modules/ruins/lavalandruin_code/sin_ruins.dm index 38fc3e466bdb..8d9ed669b8c8 100644 --- a/code/modules/ruins/lavalandruin_code/sin_ruins.dm +++ b/code/modules/ruins/lavalandruin_code/sin_ruins.dm @@ -130,7 +130,8 @@ collapse() // Gluttony -/obj/effect/gluttony //Gluttony's wall: Used in the Gluttony ruin. Only lets the overweight through. +/// Gluttony's wall: Used in the Gluttony ruin. Only lets the overweight through. +/obj/effect/gluttony name = "gluttony's wall" desc = "Only those who truly indulge may pass." anchored = TRUE @@ -153,7 +154,8 @@ return FALSE // Pride -/obj/structure/mirror/magic/pride //Pride's mirror: Used in the Pride ruin. +/// Pride's mirror: Used in the Pride ruin. +/obj/structure/mirror/magic/pride name = "pride's mirror" desc = "Pride cometh before the..." icon_state = "magic_mirror" @@ -180,7 +182,8 @@ C.drop(user) // Envy -/obj/item/kitchen/knife/envy //Envy's knife: Found in the Envy ruin. Attackers take on the appearance of whoever they strike. +/// Envy's knife: Found in the Envy ruin. Attackers take on the appearance of whoever they strike. +/obj/item/kitchen/knife/envy name = "envy's knife" desc = "Their success will be yours." icon = 'icons/obj/wizard.dmi' diff --git a/code/modules/space_management/space_transition.dm b/code/modules/space_management/space_transition.dm index 282fa666b996..f6030cfdf5d4 100644 --- a/code/modules/space_management/space_transition.dm +++ b/code/modules/space_management/space_transition.dm @@ -82,7 +82,8 @@ return S -/datum/point //this is explicitly utilitarian datum type made specially for the space map generation and are absolutely unusable for anything else +/// this is explicitly utilitarian datum type made specially for the space map generation and are absolutely unusable for anything else +/datum/point var/list/neighbors = list() var/x var/y diff --git a/code/modules/supply/supply_packs/pack_emergency.dm b/code/modules/supply/supply_packs/pack_emergency.dm index 3957f94e9397..c34c949986bb 100644 --- a/code/modules/supply/supply_packs/pack_emergency.dm +++ b/code/modules/supply/supply_packs/pack_emergency.dm @@ -1,4 +1,5 @@ -/datum/supply_packs/emergency // Section header - use these to set default supply group and crate type for sections +/// Section header - use these to set default supply group and crate type for sections +/datum/supply_packs/emergency name = "HEADER" // Use "HEADER" to denote section headers, this is needed for the supply computers to filter them containertype = /obj/structure/closet/crate/internals group = SUPPLY_EMERGENCY diff --git a/code/modules/supply/supply_packs/pack_engineering.dm b/code/modules/supply/supply_packs/pack_engineering.dm index cd06c41f7853..f75fbf64f1ea 100644 --- a/code/modules/supply/supply_packs/pack_engineering.dm +++ b/code/modules/supply/supply_packs/pack_engineering.dm @@ -12,7 +12,8 @@ containertype = /obj/structure/largecrate containername = "fuel tank crate" -/datum/supply_packs/engineering/tools //the most robust crate +/// the most robust crate +/datum/supply_packs/engineering/tools name = "Toolbox Crate" contains = list(/obj/item/storage/toolbox/electrical, /obj/item/storage/toolbox/electrical, diff --git a/code/modules/supply/supply_packs/pack_miscellaneous.dm b/code/modules/supply/supply_packs/pack_miscellaneous.dm index 113ab3cbfa7c..80dfa802b469 100644 --- a/code/modules/supply/supply_packs/pack_miscellaneous.dm +++ b/code/modules/supply/supply_packs/pack_miscellaneous.dm @@ -405,7 +405,8 @@ cost = 1000 containername = "expensive coat crate" -/datum/supply_packs/misc/formalwear //This is a very classy crate. +/// This is a very classy crate. +/datum/supply_packs/misc/formalwear name = "Formal Wear Crate" contains = list(/obj/item/clothing/under/dress/blacktango, /obj/item/clothing/under/misc/assistantformal, @@ -449,7 +450,8 @@ cost = 400 containername = "wedding crate" -/datum/supply_packs/misc/teamcolors //For team sports like space polo +/// For team sports like space polo +/datum/supply_packs/misc/teamcolors name = "Team Jerseys Crate" // 4 red jerseys, 4 blue jerseys, and 1 baseball contains = list(/obj/item/clothing/under/color/red/jersey, @@ -464,7 +466,8 @@ cost = 300 containername = "team jerseys crate" -/datum/supply_packs/misc/polo //For space polo! Or horsehead Quiditch +/// For space polo! Or horsehead Quiditch +/datum/supply_packs/misc/polo name = "Polo Supply Crate" // 6 brooms, 6 horse masks for the brooms, and 1 beach ball contains = list(/obj/item/staff/broom, @@ -483,7 +486,8 @@ cost = 250 containername = "polo supply crate" -/datum/supply_packs/misc/boxing //For non log spamming cargo brawls! +/// For non log spamming cargo brawls! +/datum/supply_packs/misc/boxing name = "Boxing Supply Crate" // 4 boxing gloves contains = list(/obj/item/clothing/gloves/boxing/blue, diff --git a/code/modules/supply/supply_packs/pack_organic.dm b/code/modules/supply/supply_packs/pack_organic.dm index 2f6158d207bf..26940ae35729 100644 --- a/code/modules/supply/supply_packs/pack_organic.dm +++ b/code/modules/supply/supply_packs/pack_organic.dm @@ -37,7 +37,8 @@ cost = 500 containername = "Pizza crate" -/datum/supply_packs/misc/randomised/ingredients // its a bit hacky... +/// its a bit hacky... +/datum/supply_packs/misc/randomised/ingredients num_contained = 25 contains = list(/obj/item/food/snacks/grown/wheat, /obj/item/food/snacks/grown/tomato, @@ -234,7 +235,8 @@ ////// hippy gear -/datum/supply_packs/organic/hydroponics // -- Skie +/// -- Skie +/datum/supply_packs/organic/hydroponics name = "Hydroponics Supply Crate" contains = list(/obj/item/reagent_containers/spray/plantbgone, /obj/item/reagent_containers/spray/plantbgone, diff --git a/code/modules/supply/supply_packs/pack_security.dm b/code/modules/supply/supply_packs/pack_security.dm index ed278f83aaf4..152cd90f2bae 100644 --- a/code/modules/supply/supply_packs/pack_security.dm +++ b/code/modules/supply/supply_packs/pack_security.dm @@ -216,7 +216,8 @@ containertype = /obj/structure/closet/crate/secure/plasma containername = "energy gun crate" -/datum/supply_packs/security/armory/epistol // costs 3/5ths of the normal e-guns for 3/4ths the total ammo, making it cheaper to arm more people, but less convient for any one person +/// costs 3/5ths of the normal e-guns for 3/4ths the total ammo, making it cheaper to arm more people, but less convient for any one person +/datum/supply_packs/security/armory/epistol name = "Energy Pistol Crate" contains = list(/obj/item/gun/energy/gun/mini, /obj/item/gun/energy/gun/mini, @@ -330,7 +331,8 @@ cost = 200 containername = "security clothing crate" -/datum/supply_packs/security/officerpack // Starter pack for an officer. Contains everything in a locker but backpack (officer already start with one). Convenient way to equip new officer on highpop. +/// Starter pack for an officer. Contains everything in a locker but backpack (officer already start with one). Convenient way to equip new officer on highpop. +/datum/supply_packs/security/officerpack name = "Officer Starter Pack" contains = list(/obj/item/clothing/suit/armor/vest/security, /obj/item/radio/headset/headset_sec/alt, diff --git a/code/modules/surgery/organs/augments_arms.dm b/code/modules/surgery/organs/augments_arms.dm index 89a19ebcb97c..1dad1daa084f 100644 --- a/code/modules/surgery/organs/augments_arms.dm +++ b/code/modules/surgery/organs/augments_arms.dm @@ -329,7 +329,8 @@ parent_organ = "l_arm" slot = "l_arm_device" -/obj/item/organ/internal/cyberimp/arm/janitorial/advanced /// ERT implant, i dont overly expect this to get into the hands of crew +/// ERT implant, i dont overly expect this to get into the hands of crew +/obj/item/organ/internal/cyberimp/arm/janitorial/advanced name = "advanced janitorial toolset implant" desc = "A set of advanced janitorial tools hidden behind a concealed panel on the user's arm." contents = newlist(/obj/item/mop/advanced, /obj/item/soap/deluxe, /obj/item/lightreplacer/bluespace, /obj/item/holosign_creator/janitor, /obj/item/melee/flyswatter, /obj/item/reagent_containers/spray/cleaner/advanced) @@ -338,7 +339,8 @@ action_icon_state = list(/datum/action/item_action/organ_action/toggle = "janibelt") emp_proof = TRUE -/obj/item/organ/internal/cyberimp/arm/janitorial/advanced/l /// its for ERT, but still probably a good idea. +/// its for ERT, but still probably a good idea. +/obj/item/organ/internal/cyberimp/arm/janitorial/advanced/l parent_organ = "l_arm" slot = "l_arm_device" diff --git a/code/modules/surgery/organs/augments_internal.dm b/code/modules/surgery/organs/augments_internal.dm index 54a1b0203168..e0733411b137 100644 --- a/code/modules/surgery/organs/augments_internal.dm +++ b/code/modules/surgery/organs/augments_internal.dm @@ -240,7 +240,8 @@ REMOVE_TRAIT(M, TRAIT_COMIC_SANS, "augment") return ..() -/obj/item/organ/internal/cyberimp/brain/speech_translator //actual translating done in human/handle_speech_problems +// actual translating done in human/handle_speech_problems +/obj/item/organ/internal/cyberimp/brain/speech_translator name = "Speech translator implant" desc = "While known as a translator, this implant actually generates speech based on the user's thoughts when activated, completely bypassing the need to speak." implant_color = "#C0C0C0" diff --git a/code/modules/surgery/organs/eyes.dm b/code/modules/surgery/organs/eyes.dm index 700232bf3fe4..373303286c60 100644 --- a/code/modules/surgery/organs/eyes.dm +++ b/code/modules/surgery/organs/eyes.dm @@ -211,7 +211,8 @@ #define ONE_SHATTERED 1 #define BOTH_SHATTERED 2 -/obj/item/organ/internal/eyes/cybernetic/eyesofgod //no occuline allowed +// no occuline allowed +/obj/item/organ/internal/eyes/cybernetic/eyesofgod name = "\improper Eyes of the Gods" desc = "Two eyes said to belong to the gods. But such vision comes at a price." icon_state = "eyesofgod" diff --git a/code/modules/surgery/organs/subtypes/diona_organs.dm b/code/modules/surgery/organs/subtypes/diona_organs.dm index f015da30d204..896685a7be5d 100644 --- a/code/modules/surgery/organs/subtypes/diona_organs.dm +++ b/code/modules/surgery/organs/subtypes/diona_organs.dm @@ -71,7 +71,8 @@ /obj/item/organ/diona/process() return -/obj/item/organ/internal/heart/diona // Turns into a nymph instantly, no transplanting possible. +/// Turns into a nymph instantly, no transplanting possible. +/obj/item/organ/internal/heart/diona name = "neural strata" icon = 'icons/obj/objects.dmi' icon_state = "nymph" @@ -81,29 +82,34 @@ icon = 'icons/obj/objects.dmi' icon_state = "nymph" -/obj/item/organ/internal/brain/diona // Turns into a nymph instantly, no transplanting possible. +/// Turns into a nymph instantly, no transplanting possible. +/obj/item/organ/internal/brain/diona name = "gas bladder" icon = 'icons/obj/objects.dmi' icon_state = "nymph" -/obj/item/organ/internal/kidneys/diona // Turns into a nymph instantly, no transplanting possible. +/// Turns into a nymph instantly, no transplanting possible. +/obj/item/organ/internal/kidneys/diona name = "polyp segment" icon = 'icons/obj/objects.dmi' icon_state = "nymph" -/obj/item/organ/internal/appendix/diona // Turns into a nymph instantly, no transplanting possible. +/// Turns into a nymph instantly, no transplanting possible. +/obj/item/organ/internal/appendix/diona name = "anchoring ligament" icon = 'icons/obj/objects.dmi' icon_state = "nymph" -/obj/item/organ/internal/eyes/diona // Turns into a nymph instantly, no transplanting possible. +/// Turns into a nymph instantly, no transplanting possible. +/obj/item/organ/internal/eyes/diona name = "receptor node" icon = 'icons/mob/alien.dmi' icon_state = "claw" //TODO:Make absorb rads on insert -/obj/item/organ/internal/liver/diona // Turns into a nymph instantly, no transplanting possible. +/// Turns into a nymph instantly, no transplanting possible. +/obj/item/organ/internal/liver/diona name = "nutrient vessel" icon = 'icons/mob/alien.dmi' icon_state = "claw" diff --git a/code/modules/surgery/organs/subtypes/tajaran_organs.dm b/code/modules/surgery/organs/subtypes/tajaran_organs.dm index 011cdb09c61a..055228c7a492 100644 --- a/code/modules/surgery/organs/subtypes/tajaran_organs.dm +++ b/code/modules/surgery/organs/subtypes/tajaran_organs.dm @@ -10,7 +10,8 @@ replace_colours = TRITANOPIA_COLOR_REPLACE see_in_dark = 4 -/obj/item/organ/internal/eyes/tajaran/farwa //Being the lesser form of Tajara, Farwas have an utterly incurable version of their colourblindness. +/// Being the lesser form of Tajara, Farwas have an utterly incurable version of their colourblindness. +/obj/item/organ/internal/eyes/tajaran/farwa name = "farwa eyeballs" colourmatrix = MATRIX_TAJ_CBLIND see_in_dark = 3 diff --git a/code/modules/surgery/organs/subtypes/vulpkanin_organs.dm b/code/modules/surgery/organs/subtypes/vulpkanin_organs.dm index 42a632a37bec..326996284c34 100644 --- a/code/modules/surgery/organs/subtypes/vulpkanin_organs.dm +++ b/code/modules/surgery/organs/subtypes/vulpkanin_organs.dm @@ -10,7 +10,8 @@ replace_colours = PROTANOPIA_COLOR_REPLACE see_in_dark = 4 -/obj/item/organ/internal/eyes/vulpkanin/wolpin //Being the lesser form of Vulpkanin, Wolpins have an utterly incurable version of their colourblindness. +/// Being the lesser form of Vulpkanin, Wolpins have an utterly incurable version of their colourblindness. +/obj/item/organ/internal/eyes/vulpkanin/wolpin name = "wolpin eyeballs" colourmatrix = MATRIX_VULP_CBLIND see_in_dark = 3 diff --git a/code/modules/surgery/organs/vocal_cords.dm b/code/modules/surgery/organs/vocal_cords.dm index f07d89797b99..b7b2d0f74191 100644 --- a/code/modules/surgery/organs/vocal_cords.dm +++ b/code/modules/surgery/organs/vocal_cords.dm @@ -35,7 +35,8 @@ GLOBAL_DATUM_INIT(clap_words, /regex, regex("clap|applaud")) GLOBAL_DATUM_INIT(honk_words, /regex, regex("ho+nk")) //hooooooonk GLOBAL_DATUM_INIT(multispin_words, /regex, regex("like a record baby")) -/obj/item/organ/internal/vocal_cords //organs that are activated through speech with the :x channel +/// organs that are activated through speech with the :x channel +/obj/item/organ/internal/vocal_cords name = "vocal cords" icon_state = "appendix" slot = "vocal_cords" diff --git a/code/modules/surgery/other.dm b/code/modules/surgery/other.dm index ecf8f7d3424c..cc4f1ccea022 100644 --- a/code/modules/surgery/other.dm +++ b/code/modules/surgery/other.dm @@ -173,7 +173,8 @@ ) return SURGERY_STEP_RETRY -/datum/surgery_step/fix_dead_tissue //Debridement +/// Debridement +/datum/surgery_step/fix_dead_tissue name = "remove dead tissue" allowed_tools = list( TOOL_SCALPEL = 100, diff --git a/code/modules/surgery/tools.dm b/code/modules/surgery/tools.dm index 214350e63268..ce09847c4a87 100644 --- a/code/modules/surgery/tools.dm +++ b/code/modules/surgery/tools.dm @@ -138,14 +138,16 @@ /* * Researchable Scalpels */ -/obj/item/scalpel/laser //parent type +/// parent type +/obj/item/scalpel/laser name = "laser scalpel" desc = "A scalpel augmented with a directed laser." icon_state = "scalpel_laser1_on" damtype = "fire" hitsound = 'sound/weapons/sear.ogg' -/obj/item/scalpel/laser/laser1 //lasers also count as catuarys +/// lasers also count as catuarys +/obj/item/scalpel/laser/laser1 name = "laser scalpel" desc = "A scalpel augmented with a directed laser. This one looks basic and could be improved." icon_state = "scalpel_laser1_on" @@ -163,7 +165,8 @@ icon_state = "scalpel_laser3_on" toolspeed = 0.4 -/obj/item/scalpel/laser/manager //super tool! Retractor/hemostat +/// super tool! Retractor/hemostat +/obj/item/scalpel/laser/manager name = "incision management system" desc = "A true extension of the surgeon's body, this marvel instantly and completely prepares an incision allowing for the immediate commencement of therapeutic steps." icon_state = "scalpel_manager_on" From 1937ac2db75e5a96d329387b7b15db6c92614ce9 Mon Sep 17 00:00:00 2001 From: Coolrune206 <71326864+Coolrune206@users.noreply.github.com> Date: Sat, 2 Mar 2024 07:06:15 +1100 Subject: [PATCH 04/23] Makes the mousetrap mortar fire armed mousetraps (#24123) * makes the mousetrap mortar work * While you're here... Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com> --------- Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com> --- code/game/mecha/equipment/weapons/weapons.dm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/game/mecha/equipment/weapons/weapons.dm b/code/game/mecha/equipment/weapons/weapons.dm index 57db0ef075e0..202660af9b95 100644 --- a/code/game/mecha/equipment/weapons/weapons.dm +++ b/code/game/mecha/equipment/weapons/weapons.dm @@ -424,7 +424,7 @@ equip_cooldown = 1 SECONDS name = "mousetrap mortar" icon_state = "mecha_mousetrapmrtr" - projectile = /obj/item/assembly/mousetrap + projectile = /obj/item/assembly/mousetrap/armed fire_sound = 'sound/items/bikehorn.ogg' projectiles = 15 missile_speed = 1.5 @@ -441,9 +441,9 @@ if(!action_checks(target)) return set_ready_state(0) - var/obj/item/assembly/mousetrap/M = new projectile(chassis.loc) + var/obj/item/assembly/mousetrap/armed/M = new projectile(chassis.loc) M.secured = TRUE - playsound(chassis, fire_sound, 60, 1) + playsound(chassis, fire_sound, 60, TRUE) M.throw_at(target, missile_range, missile_speed) projectiles-- log_message("Launched a mouse-trap from [name], targeting [target]. HONK!") From 06f89243f343d307cbd1e5dac854c3be76031d88 Mon Sep 17 00:00:00 2001 From: Luc <89928798+lewcc@users.noreply.github.com> Date: Fri, 1 Mar 2024 15:07:19 -0500 Subject: [PATCH 05/23] Spectral blade now shows orbs, not ghosts (#24124) * Implements * yeah I meant to do this * this should probably be safer * alpha * Add some contingencies * Update code/modules/mining/lavaland/loot/tendril_loot.dm Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com> --------- Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com> --- .../mining/lavaland/loot/ashdragon_loot.dm | 81 ++++++++++++++----- .../mob/dead/observer/observer_base.dm | 6 ++ 2 files changed, 69 insertions(+), 18 deletions(-) diff --git a/code/modules/mining/lavaland/loot/ashdragon_loot.dm b/code/modules/mining/lavaland/loot/ashdragon_loot.dm index 56cc0fbd32ab..5f3cc8f298dd 100644 --- a/code/modules/mining/lavaland/loot/ashdragon_loot.dm +++ b/code/modules/mining/lavaland/loot/ashdragon_loot.dm @@ -39,19 +39,25 @@ attack_verb = list("attacked", "slashed", "stabbed", "sliced", "torn", "ripped", "diced", "rended") flags_2 = RANDOM_BLOCKER_2 var/summon_cooldown = 0 - var/list/mob/dead/observer/spirits + /// List of wisps we have active, for cleanup purposes in case a ghost gets randomly deleted. + var/list/obj/effect/wisp/ghost/orbs + /// List of ghosts currently orbiting us. + var/list/mob/dead/observer/ghosts /obj/item/melee/ghost_sword/New() ..() - spirits = list() + ghosts = list() + orbs = list() register_signals(src) RegisterSignal(src, COMSIG_MOVABLE_MOVED, PROC_REF(on_move)) GLOB.poi_list |= src /obj/item/melee/ghost_sword/Destroy() - for(var/mob/dead/observer/G in spirits) + for(var/mob/dead/observer/G in ghosts) remove_ghost(G) - spirits.Cut() + // if there are any orbs left (possibly detached from ghosts) ensure they don't stick around + for(var/spirit as anything in orbs) + qdel(spirit) remove_signals(src) UnregisterSignal(src, COMSIG_MOVABLE_MOVED) GLOB.poi_list -= src @@ -59,8 +65,8 @@ /obj/item/melee/ghost_sword/examine() . = ..() - if(length(spirits)) - . += "It appears to pulse with the power of [length(spirits)] vengeful spirits!" + if(length(orbs)) + . += "It appears to pulse with the power of [length(orbs)] vengeful spirit\s!" else . += "It glows weakly." @@ -83,7 +89,7 @@ /obj/item/melee/ghost_sword/proc/add_ghost(atom/movable/orbited, atom/orbiter) SIGNAL_HANDLER // COMSIG_ATOM_ORBIT_BEGIN var/mob/dead/observer/ghost = orbiter - if(!istype(ghost) || !isobserver(orbiter) || (ghost in spirits)) + if(!istype(ghost) || !isobserver(orbiter) || (ghost in ghosts)) return if(!ismob(loc)) @@ -91,23 +97,34 @@ // they'll get added to spirits (and turned visible) when the sword enters a mob's hand then return - register_signals(ghost) // Pull in any ghosts that may be orbiting other ghosts TODO THIS MIGHT BE THE FUCKIN PROBLEM + register_signals(ghost) // Pull in any ghosts that may be orbiting other ghosts - spirits |= ghost - ghost.invisibility = 0 + + var/obj/effect/wisp/ghost/orb = new(src) + orb.color = ghost.get_runechat_color() + orb.alpha = 128 + orb.orbit(src, clockwise = FALSE) + ghosts[ghost] = orb + orbs.Add(orb) + + // if a ghost gets deleted, the orb cleans itself up + // which then passes the torch to us to clean ourselves up + RegisterSignal(orb, COMSIG_PARENT_QDELETING, PROC_REF(on_orb_qdel)) /obj/item/melee/ghost_sword/proc/remove_ghost(atom/movable/orbited, atom/orbiter) SIGNAL_HANDLER // COMSIG_ATOM_ORBIT_STOP var/mob/dead/observer/ghost = orbiter - if(!istype(ghost) || !isobserver(ghost) || !(ghost in spirits)) + if(!istype(ghost) || !(ghost in ghosts)) return remove_signals(ghost) - spirits -= ghost - ghost.invisibility = initial(ghost.invisibility) + var/obj/effect/wisp/ghost/attached_orb = ghosts[ghost] + attached_orb.stop_orbit() + qdel(attached_orb) + ghosts -= ghost /obj/item/melee/ghost_sword/proc/remove_signals(atom/A) UnregisterSignal(A, COMSIG_ATOM_ORBIT_STOP) @@ -126,7 +143,7 @@ if(ismob(old_loc)) remove_signals(old_loc) - for(var/mob/dead/observer/orbiter in spirits) + for(var/mob/dead/observer/orbiter in ghosts) remove_ghost(src, orbiter) if(ismob(loc)) @@ -135,20 +152,48 @@ for(var/mob/dead/observer/orbiter in get_orbiters_up_hierarchy(recursive = TRUE)) add_ghost(src, orbiter) +// clean up wisps +/obj/item/melee/ghost_sword/proc/on_orb_qdel(obj/effect/wisp/ghost/orb) + SIGNAL_HANDLER // COMSIG_PARENT_QDELETING + orbs -= orb + for(var/ghost in ghosts) + if(ghosts[ghost] == orb) + ghosts -= ghost + break + + /obj/item/melee/ghost_sword/attack(mob/living/target, mob/living/carbon/human/user) force = 0 - var/ghost_counter = length(spirits) + var/ghost_counter = length(orbs) force = clamp((ghost_counter * 4), 0, 75) - user.visible_message("[user] strikes with the force of [ghost_counter] vengeful spirits!") + user.visible_message("[user] strikes with the force of [ghost_counter] vengeful spirit\s!") ..() /obj/item/melee/ghost_sword/hit_reaction(mob/living/carbon/human/owner, atom/movable/hitby, attack_text = "the attack", final_block_chance = 0, damage = 0, attack_type = MELEE_ATTACK) - var/ghost_counter = length(spirits) + var/ghost_counter = length(orbs) final_block_chance += clamp((ghost_counter * 5), 0, 75) - owner.visible_message("[owner] is protected by a ring of [ghost_counter] ghosts!") + owner.visible_message("[owner] is protected by a ring of [ghost_counter] ghost\s!") return ..() + +/obj/effect/wisp/ghost + name = "mischievous wisp" + desc = "A wisp that seems to want to get up to shenanigans. It often seems disappointed, for some reason." + light_range = 0 + mouse_opacity = MOUSE_OPACITY_TRANSPARENT + +/obj/effect/wisp/ghost/Initialize(mapload, mob/dead/observer/ghost) + . = ..() + RegisterSignal(ghost, COMSIG_PARENT_QDELETING, PROC_REF(on_ghost_qdel)) + +/obj/effect/wisp/ghost/proc/on_ghost_qdel(mob/dead/observer/ghost) + SIGNAL_HANDLER // COMSIG_PARENT_QDELETING + stop_orbit() + // we only live as long as our attached ghost + qdel(src) + + // Blood /obj/item/dragons_blood diff --git a/code/modules/mob/dead/observer/observer_base.dm b/code/modules/mob/dead/observer/observer_base.dm index e832baa543ee..f766af39a439 100644 --- a/code/modules/mob/dead/observer/observer_base.dm +++ b/code/modules/mob/dead/observer/observer_base.dm @@ -35,6 +35,8 @@ GLOBAL_VAR_INIT(observer_default_invisibility, INVISIBILITY_OBSERVER) ///toggle for ghost gas analyzer var/gas_analyzer = FALSE var/datum/orbit_menu/orbit_menu + /// The "color" their runechat would have had + var/alive_runechat_color = "#FFFFFF" /mob/dead/observer/New(mob/body=null, flags=1) set_invisibility(GLOB.observer_default_invisibility) @@ -59,6 +61,7 @@ GLOBAL_VAR_INIT(observer_default_invisibility, INVISIBILITY_OBSERVER) if(ismob(body)) T = get_turf(body) //Where is the body located? attack_log_old = body.attack_log_old //preserve our attack logs by copying them to our ghost + alive_runechat_color = body.get_runechat_color() var/mutable_appearance/MA = copy_appearance(body) if(body.mind && body.mind.name) @@ -846,3 +849,6 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp return allow_roundstart_observers return FALSE + +/mob/dead/observer/get_runechat_color() + return alive_runechat_color From f77200af0479f1d61c4371fdb62153efda665a26 Mon Sep 17 00:00:00 2001 From: Zack Date: Fri, 1 Mar 2024 14:11:16 -0600 Subject: [PATCH 06/23] Removes unused revival code from revenants (#24305) * Revenant can't revive anymore * fixed a funny space * Update code/game/gamemodes/miniantags/revenant/revenant.dm Co-authored-by: 1080pCat <96908085+1080pCat@users.noreply.github.com> * Update code/game/gamemodes/miniantags/revenant/revenant.dm Co-authored-by: 1080pCat <96908085+1080pCat@users.noreply.github.com> --------- Co-authored-by: 1080pCat <96908085+1080pCat@users.noreply.github.com> --- .../gamemodes/miniantags/revenant/revenant.dm | 83 +------------------ 1 file changed, 2 insertions(+), 81 deletions(-) diff --git a/code/game/gamemodes/miniantags/revenant/revenant.dm b/code/game/gamemodes/miniantags/revenant/revenant.dm index a5f4d6827967..2e846c43f6a5 100644 --- a/code/game/gamemodes/miniantags/revenant/revenant.dm +++ b/code/game/gamemodes/miniantags/revenant/revenant.dm @@ -227,10 +227,7 @@ sleep(0.1) alpha = i visible_message("[src]'s body breaks apart into a fine pile of blue dust.") - var/obj/item/ectoplasm/revenant/R = new (get_turf(src)) - var/reforming_essence = essence_regen_cap //retain the gained essence capacity - R.essence = max(reforming_essence - 15 * perfectsouls, 75) //minus any perfect souls - R.client_to_revive = src.client //If the essence reforms, the old revenant is put back in the body + new /obj/item/ectoplasm/revenant(get_turf(src)) ghostize() qdel(src) @@ -362,83 +359,7 @@ icon = 'icons/effects/effects.dmi' icon_state = "revenantEctoplasm" w_class = WEIGHT_CLASS_SMALL - var/reforming = 1 - var/essence = 75 //the maximum essence of the reforming revenant - var/inert = 0 - var/client/client_to_revive - -/obj/item/ectoplasm/revenant/New() - ..() - reforming = 0 - spawn(600) //1 minutes - if(src && reforming) - reform() - else - inert = 1 - visible_message("[src] settles down and seems lifeless.") - -/obj/item/ectoplasm/revenant/attack_self(mob/user) - if(!reforming || inert) - return ..() - user.visible_message("[user] scatters [src] in all directions.", \ - "You scatter [src] across the area. The particles slowly fade away.") - user.drop_item() - qdel(src) - -/obj/item/ectoplasm/revenant/throw_impact(atom/hit_atom) - ..() - if(inert) - return - visible_message("[src] breaks into particles upon impact, which fade away to nothingness.") - qdel(src) /obj/item/ectoplasm/revenant/examine(mob/user) . = ..() - if(inert) - . += "It seems inert." - else if(reforming) - . += "It is shifting and distorted. It would be wise to destroy this." - -/obj/item/ectoplasm/revenant/proc/reform() // Unused proc, production doesn't have revenants revive - if(inert || !src) - return - var/key_of_revenant - message_admins("Revenant ectoplasm was left undestroyed for 1 minute and is reforming into a new revenant.") - loc = get_turf(src) //In case it's in a backpack or someone's hand - var/mob/living/simple_animal/revenant/R = new(get_turf(src)) - if(client_to_revive) - for(var/mob/M in GLOB.dead_mob_list) - if(M.client == client_to_revive) //Only recreates the mob if the mob the client is in is dead - R.client = client_to_revive - key_of_revenant = client_to_revive.key - - spawn() - if(!key_of_revenant) - message_admins("The new revenant's old client either could not be found or is in a new, living mob - grabbing a random candidate instead...") - var/list/candidates = SSghost_spawns.poll_candidates("Do you want to play as a revenant?", ROLE_REVENANT, TRUE, source = /mob/living/simple_animal/revenant) - if(!candidates.len) - qdel(R) - message_admins("No candidates were found for the new revenant. Oh well!") - inert = 1 - visible_message("[src] settles down and seems lifeless.") - return - var/mob/C = pick(candidates) - key_of_revenant = C.key - if(!key_of_revenant) - qdel(R) - message_admins("No ckey was found for the new revenant. Oh well!") - inert = 1 - visible_message("[src] settles down and seems lifeless.") - return - var/datum/mind/player_mind = new /datum/mind(key_of_revenant) - player_mind.active = TRUE - player_mind.transfer_to(R) - player_mind.assigned_role = SPECIAL_ROLE_REVENANT - player_mind.special_role = SPECIAL_ROLE_REVENANT - SSticker.mode.traitors |= player_mind - message_admins("[key_of_revenant] has been [client_to_revive ? "re":""]made into a revenant by reforming ectoplasm.") - log_game("[key_of_revenant] was [client_to_revive ? "re":""]made as a revenant by reforming ectoplasm.") - visible_message("[src] suddenly rises into the air before fading away.") - qdel(src) - if(src) //Should never happen, but just in case - inert = 1 + . += "Lifeless ectoplasm, still faintly glimmering in the light. From what was once a spirit seeking revenge on the station." From 3792a0f6c70cf40c0a3a958716b2322e27d548bf Mon Sep 17 00:00:00 2001 From: DGamerL <108773801+DGamerL@users.noreply.github.com> Date: Fri, 1 Mar 2024 21:17:34 +0100 Subject: [PATCH 07/23] FINALLY (#24353) --- code/modules/hydroponics/hydroponics_tray.dm | 228 +++++++++---------- 1 file changed, 114 insertions(+), 114 deletions(-) diff --git a/code/modules/hydroponics/hydroponics_tray.dm b/code/modules/hydroponics/hydroponics_tray.dm index 9c0b489baffb..42fe9a3adff7 100644 --- a/code/modules/hydroponics/hydroponics_tray.dm +++ b/code/modules/hydroponics/hydroponics_tray.dm @@ -96,7 +96,7 @@ var/list/connected = list() var/list/processing_atoms = list(src) - while(processing_atoms.len) + while(length(processing_atoms)) var/atom/a = processing_atoms[1] for(var/step_dir in GLOB.cardinal) var/obj/machinery/hydroponics/h = locate() in get_step(a, step_dir) @@ -485,12 +485,12 @@ else to_chat(user, "The pests seem to behave oddly, but quickly settle down...") -/obj/machinery/hydroponics/proc/applyChemicals(datum/reagents/S, mob/user) +/obj/machinery/hydroponics/proc/apply_chemicals(mob/user) if(myseed) - myseed.on_chem_reaction(S) //In case seeds have some special interactions with special chems, currently only used by vines + myseed.on_chem_reaction(reagents) //In case seeds have some special interactions with special chems, currently only used by vines // Requires 5 mutagen to possibly change species.// Poor man's mutagen. - if(S.has_reagent("mutagen", 5) || S.has_reagent("radium", 10) || S.has_reagent("uranium", 10)) + if(reagents.has_reagent("mutagen", 5) || reagents.has_reagent("radium", 10) || reagents.has_reagent("uranium", 10)) switch(rand(100)) if(91 to 100) adjustHealth(-10) @@ -511,212 +511,212 @@ to_chat(user, "Nothing happens...") // 2 or 1 units is enough to change the yield and other stats.// Can change the yield and other stats, but requires more than mutagen - else if(S.has_reagent("mutagen", 2) || S.has_reagent("radium", 5) || S.has_reagent("uranium", 5)) + else if(reagents.has_reagent("mutagen", 2) || reagents.has_reagent("radium", 5) || reagents.has_reagent("uranium", 5)) hardmutate() - else if(S.has_reagent("mutagen", 1) || S.has_reagent("radium", 2) || S.has_reagent("uranium", 2)) + else if(reagents.has_reagent("mutagen", 1) || reagents.has_reagent("radium", 2) || reagents.has_reagent("uranium", 2)) mutate() // After handling the mutating, we now handle the damage from adding crude radioactives... - if(S.has_reagent("uranium", 1)) - adjustHealth(-round(S.get_reagent_amount("uranium") * 1)) - adjustToxic(round(S.get_reagent_amount("uranium") * 2)) - if(S.has_reagent("radium", 1)) - adjustHealth(-round(S.get_reagent_amount("radium") * 1)) - adjustToxic(round(S.get_reagent_amount("radium") * 3)) // Radium is harsher (OOC: also easier to produce) + if(reagents.has_reagent("uranium", 1)) + adjustHealth(-round(reagents.get_reagent_amount("uranium") * 1)) + adjustToxic(round(reagents.get_reagent_amount("uranium") * 2)) + if(reagents.has_reagent("radium", 1)) + adjustHealth(-round(reagents.get_reagent_amount("radium") * 1)) + adjustToxic(round(reagents.get_reagent_amount("radium") * 3)) // Radium is harsher (OOC: also easier to produce) // Nutriments - if(S.has_reagent("eznutriment", 1)) + if(reagents.has_reagent("eznutriment", 1)) yieldmod = 1 mutmod = 1 - adjustNutri(round(S.get_reagent_amount("eznutriment") * 1)) + adjustNutri(round(reagents.get_reagent_amount("eznutriment") * 1)) - if(S.has_reagent("left4zednutriment", 1)) + if(reagents.has_reagent("left4zednutriment", 1)) yieldmod = 0 mutmod = 2 - adjustNutri(round(S.get_reagent_amount("left4zednutriment") * 1)) + adjustNutri(round(reagents.get_reagent_amount("left4zednutriment") * 1)) - if(S.has_reagent("robustharvestnutriment", 1)) + if(reagents.has_reagent("robustharvestnutriment", 1)) yieldmod = 1.3 mutmod = 0 - adjustNutri(round(S.get_reagent_amount("robustharvestnutriment") *1 )) + adjustNutri(round(reagents.get_reagent_amount("robustharvestnutriment") *1 )) //Fish Water is both an excellent fertilizer and waters - if(S.has_reagent("fishwater", 1)) - adjustNutri(round(S.get_reagent_amount("fishwater") * 0.75)) - adjustWater(round(S.get_reagent_amount("fishwater") * 1)) + if(reagents.has_reagent("fishwater", 1)) + adjustNutri(round(reagents.get_reagent_amount("fishwater") * 0.75)) + adjustWater(round(reagents.get_reagent_amount("fishwater") * 1)) // Ambrosia Gaia produces earthsblood. - if(S.has_reagent("earthsblood")) - self_sufficiency_progress += S.get_reagent_amount("earthsblood") + if(reagents.has_reagent("earthsblood")) + self_sufficiency_progress += reagents.get_reagent_amount("earthsblood") if(self_sufficiency_progress >= self_sufficiency_req) become_self_sufficient() else if(!self_sustaining) to_chat(user, "[src] warms as it might on a spring day under a genuine Sun.") // Antitoxin binds shit pretty well. So the tox goes significantly down - if(S.has_reagent("charcoal", 1)) - adjustToxic(-round(S.get_reagent_amount("charcoal") * 2)) + if(reagents.has_reagent("charcoal", 1)) + adjustToxic(-round(reagents.get_reagent_amount("charcoal") * 2)) // BRO, YOU JUST WENT ON FULL STUPID. - if(S.has_reagent("toxin", 1)) - adjustToxic(round(S.get_reagent_amount("toxin") * 2)) + if(reagents.has_reagent("toxin", 1)) + adjustToxic(round(reagents.get_reagent_amount("toxin") * 2)) // Milk is good for humans, but bad for plants. The sugars canot be used by plants, and the milk fat fucks up growth. Not shrooms though. I can't deal with this now... - if(S.has_reagent("milk", 1)) - adjustNutri(round(S.get_reagent_amount("milk") * 0.1)) - adjustWater(round(S.get_reagent_amount("milk") * 0.9)) + if(reagents.has_reagent("milk", 1)) + adjustNutri(round(reagents.get_reagent_amount("milk") * 0.1)) + adjustWater(round(reagents.get_reagent_amount("milk") * 0.9)) // Beer is a chemical composition of alcohol and various other things. It's a shitty nutrient but hey, it's still one. Also alcohol is bad, mmmkay? - if(S.has_reagent("beer", 1)) - adjustHealth(-round(S.get_reagent_amount("beer") * 0.05)) - adjustNutri(round(S.get_reagent_amount("beer") * 0.25)) - adjustWater(round(S.get_reagent_amount("beer") * 0.7)) + if(reagents.has_reagent("beer", 1)) + adjustHealth(-round(reagents.get_reagent_amount("beer") * 0.05)) + adjustNutri(round(reagents.get_reagent_amount("beer") * 0.25)) + adjustWater(round(reagents.get_reagent_amount("beer") * 0.7)) // You're an idiot for thinking that one of the most corrosive and deadly gasses would be beneficial - if(S.has_reagent("fluorine", 1)) - adjustHealth(-round(S.get_reagent_amount("fluorine") * 2)) - adjustToxic(round(S.get_reagent_amount("fluorine") * 2.5)) - adjustWater(-round(S.get_reagent_amount("fluorine") * 0.5)) + if(reagents.has_reagent("fluorine", 1)) + adjustHealth(-round(reagents.get_reagent_amount("fluorine") * 2)) + adjustToxic(round(reagents.get_reagent_amount("fluorine") * 2.5)) + adjustWater(-round(reagents.get_reagent_amount("fluorine") * 0.5)) adjustWeeds(-rand(1,4)) // You're an idiot for thinking that one of the most corrosive and deadly gasses would be beneficial - if(S.has_reagent("chlorine", 1)) - adjustHealth(-round(S.get_reagent_amount("chlorine") * 1)) - adjustToxic(round(S.get_reagent_amount("chlorine") * 1.5)) - adjustWater(-round(S.get_reagent_amount("chlorine") * 0.5)) + if(reagents.has_reagent("chlorine", 1)) + adjustHealth(-round(reagents.get_reagent_amount("chlorine") * 1)) + adjustToxic(round(reagents.get_reagent_amount("chlorine") * 1.5)) + adjustWater(-round(reagents.get_reagent_amount("chlorine") * 0.5)) adjustWeeds(-rand(1,3)) // White Phosphorous + water -> phosphoric acid. That's not a good thing really. // Phosphoric salts are beneficial though. And even if the plant suffers, in the long run the tray gets some nutrients. The benefit isn't worth that much. - if(S.has_reagent("phosphorus", 1)) - adjustHealth(-round(S.get_reagent_amount("phosphorus") * 0.75)) - adjustNutri(round(S.get_reagent_amount("phosphorus") * 0.1)) - adjustWater(-round(S.get_reagent_amount("phosphorus") * 0.5)) + if(reagents.has_reagent("phosphorus", 1)) + adjustHealth(-round(reagents.get_reagent_amount("phosphorus") * 0.75)) + adjustNutri(round(reagents.get_reagent_amount("phosphorus") * 0.1)) + adjustWater(-round(reagents.get_reagent_amount("phosphorus") * 0.5)) adjustWeeds(-rand(1,2)) // Plants should not have sugar, they can't use it and it prevents them getting water/ nutients, it is good for mold though... - if(S.has_reagent("sugar", 1)) + if(reagents.has_reagent("sugar", 1)) adjustWeeds(rand(1,2)) adjustPests(rand(1,2)) - adjustNutri(round(S.get_reagent_amount("sugar") * 0.1)) + adjustNutri(round(reagents.get_reagent_amount("sugar") * 0.1)) // It is water! - if(S.has_reagent("water", 1)) - adjustWater(round(S.get_reagent_amount("water") * 1)) + if(reagents.has_reagent("water", 1)) + adjustWater(round(reagents.get_reagent_amount("water") * 1)) // Holy water. Mostly the same as water, it also heals the plant a little with the power of the spirits~ - if(S.has_reagent("holywater", 1)) - adjustWater(round(S.get_reagent_amount("holywater") * 1)) - adjustHealth(round(S.get_reagent_amount("holywater") * 0.1)) + if(reagents.has_reagent("holywater", 1)) + adjustWater(round(reagents.get_reagent_amount("holywater") * 1)) + adjustHealth(round(reagents.get_reagent_amount("holywater") * 0.1)) // A variety of nutrients are dissolved in club soda, without sugar. // These nutrients include carbon, oxygen, hydrogen, phosphorous, potassium, sulfur and sodium, all of which are needed for healthy plant growth. - if(S.has_reagent("sodawater", 1)) - adjustWater(round(S.get_reagent_amount("sodawater") * 1)) - adjustHealth(round(S.get_reagent_amount("sodawater") * 0.1)) - adjustNutri(round(S.get_reagent_amount("sodawater") * 0.1)) + if(reagents.has_reagent("sodawater", 1)) + adjustWater(round(reagents.get_reagent_amount("sodawater") * 1)) + adjustHealth(round(reagents.get_reagent_amount("sodawater") * 0.1)) + adjustNutri(round(reagents.get_reagent_amount("sodawater") * 0.1)) // Man, you guys are daft - if(S.has_reagent("sacid", 1)) - adjustHealth(-round(S.get_reagent_amount("sacid") * 1)) - adjustToxic(round(S.get_reagent_amount("sacid") * 1.5)) + if(reagents.has_reagent("sacid", 1)) + adjustHealth(-round(reagents.get_reagent_amount("sacid") * 1)) + adjustToxic(round(reagents.get_reagent_amount("sacid") * 1.5)) adjustWeeds(-rand(1,2)) // SERIOUSLY - if(S.has_reagent("facid", 1)) - adjustHealth(-round(S.get_reagent_amount("facid") * 2)) - adjustToxic(round(S.get_reagent_amount("facid") * 3)) + if(reagents.has_reagent("facid", 1)) + adjustHealth(-round(reagents.get_reagent_amount("facid") * 2)) + adjustToxic(round(reagents.get_reagent_amount("facid") * 3)) adjustWeeds(-rand(1,4)) // Glyphosate is just as bad - if(S.has_reagent("glyphosate", 1)) - adjustHealth(-round(S.get_reagent_amount("glyphosate") * 5)) - adjustToxic(round(S.get_reagent_amount("glyphosate") * 6)) + if(reagents.has_reagent("glyphosate", 1)) + adjustHealth(-round(reagents.get_reagent_amount("glyphosate") * 5)) + adjustToxic(round(reagents.get_reagent_amount("glyphosate") * 6)) adjustWeeds(-rand(4,8)) // why, just why - if(S.has_reagent("napalm", 1)) + if(reagents.has_reagent("napalm", 1)) if(!(myseed.resistance_flags & FIRE_PROOF)) - adjustHealth(-round(S.get_reagent_amount("napalm") * 6)) - adjustToxic(round(S.get_reagent_amount("napalm") * 7)) + adjustHealth(-round(reagents.get_reagent_amount("napalm") * 6)) + adjustToxic(round(reagents.get_reagent_amount("napalm") * 7)) adjustWeeds(-rand(5, 9)) //At least give them a small reward if they bother //Weed Spray - if(S.has_reagent("atrazine", 1)) - adjustToxic(round(S.get_reagent_amount("atrazine") * 0.5)) + if(reagents.has_reagent("atrazine", 1)) + adjustToxic(round(reagents.get_reagent_amount("atrazine") * 0.5)) //old toxicity was 4, each spray is default 10 (minimal of 5) so 5 and 2.5 are the new ammounts adjustWeeds(-rand(1,2)) //Pest Spray - if(S.has_reagent("pestkiller", 1)) - adjustToxic(round(S.get_reagent_amount("pestkiller") * 0.5)) + if(reagents.has_reagent("pestkiller", 1)) + adjustToxic(round(reagents.get_reagent_amount("pestkiller") * 0.5)) adjustPests(-rand(1,2)) // Healing - if(S.has_reagent("cryoxadone", 1)) - adjustHealth(round(S.get_reagent_amount("cryoxadone") * 3)) - adjustToxic(-round(S.get_reagent_amount("cryoxadone") * 3)) + if(reagents.has_reagent("cryoxadone", 1)) + adjustHealth(round(reagents.get_reagent_amount("cryoxadone") * 3)) + adjustToxic(-round(reagents.get_reagent_amount("cryoxadone") * 3)) // Ammonia is bad ass. - if(S.has_reagent("ammonia", 1)) - adjustHealth(round(S.get_reagent_amount("ammonia") * 0.5)) - adjustNutri(round(S.get_reagent_amount("ammonia") * 1)) + if(reagents.has_reagent("ammonia", 1)) + adjustHealth(round(reagents.get_reagent_amount("ammonia") * 0.5)) + adjustNutri(round(reagents.get_reagent_amount("ammonia") * 1)) if(myseed) - myseed.adjust_yield(round(S.get_reagent_amount("ammonia") * 0.01)) + myseed.adjust_yield(round(reagents.get_reagent_amount("ammonia") * 0.01)) // Saltpetre is used for gardening IRL, to simplify highly, it speeds up growth and strengthens plants - if(S.has_reagent("saltpetre", 1)) - var/salt = S.get_reagent_amount("saltpetre") + if(reagents.has_reagent("saltpetre", 1)) + var/salt = reagents.get_reagent_amount("saltpetre") adjustHealth(round(salt * 0.25)) if(myseed) myseed.adjust_production(-round(salt/100)-prob(salt%100)) myseed.adjust_potency(round(salt*0.50)) // Ash is also used IRL in gardening, as a fertilizer enhancer and weed killer - if(S.has_reagent("ash", 1)) - adjustHealth(round(S.get_reagent_amount("ash") * 0.25)) - adjustNutri(round(S.get_reagent_amount("ash") * 0.5)) + if(reagents.has_reagent("ash", 1)) + adjustHealth(round(reagents.get_reagent_amount("ash") * 0.25)) + adjustNutri(round(reagents.get_reagent_amount("ash") * 0.5)) adjustWeeds(-1) // This is more bad ass, and pests get hurt by the corrosive nature of it, not the plant. - if(S.has_reagent("diethylamine", 1)) - adjustHealth(round(S.get_reagent_amount("diethylamine") * 1)) - adjustNutri(round(S.get_reagent_amount("diethylamine") * 2)) + if(reagents.has_reagent("diethylamine", 1)) + adjustHealth(round(reagents.get_reagent_amount("diethylamine") * 1)) + adjustNutri(round(reagents.get_reagent_amount("diethylamine") * 2)) if(myseed) - myseed.adjust_yield(round(S.get_reagent_amount("diethylamine") * 0.02)) + myseed.adjust_yield(round(reagents.get_reagent_amount("diethylamine") * 0.02)) adjustPests(-rand(1,2)) // Compost, effectively - if(S.has_reagent("nutriment", 1)) - adjustHealth(round(S.get_reagent_amount("nutriment") * 0.5)) - adjustNutri(round(S.get_reagent_amount("nutriment") * 1)) + if(reagents.has_reagent("nutriment", 1)) + adjustHealth(round(reagents.get_reagent_amount("nutriment") * 0.5)) + adjustNutri(round(reagents.get_reagent_amount("nutriment") * 1)) - if(S.has_reagent("plantmatter", 1)) - adjustHealth(round(S.get_reagent_amount("plantmatter") * 0.5)) - adjustNutri(round(S.get_reagent_amount("plantmatter") * 1)) + if(reagents.has_reagent("plantmatter", 1)) + adjustHealth(round(reagents.get_reagent_amount("plantmatter") * 0.5)) + adjustNutri(round(reagents.get_reagent_amount("plantmatter") * 1)) // Compost for EVERYTHING - if(S.has_reagent("virusfood", 1)) - adjustNutri(round(S.get_reagent_amount("virusfood") * 0.5)) - adjustHealth(-round(S.get_reagent_amount("virusfood") * 0.5)) + if(reagents.has_reagent("virusfood", 1)) + adjustNutri(round(reagents.get_reagent_amount("virusfood") * 0.5)) + adjustHealth(-round(reagents.get_reagent_amount("virusfood") * 0.5)) // FEED ME - if(S.has_reagent("blood", 1)) - adjustNutri(round(S.get_reagent_amount("blood") * 1)) + if(reagents.has_reagent("blood", 1)) + adjustNutri(round(reagents.get_reagent_amount("blood") * 1)) adjustPests(rand(2,4)) // FEED ME SEYMOUR - if(S.has_reagent("lazarus_reagent", 1)) + if(reagents.has_reagent("lazarus_reagent", 1)) spawnplant() // The best stuff there is. For testing/debugging. - if(S.has_reagent("adminordrazine", 1)) - adjustWater(round(S.get_reagent_amount("adminordrazine") * 1)) - adjustHealth(round(S.get_reagent_amount("adminordrazine") * 1)) - adjustNutri(round(S.get_reagent_amount("adminordrazine") * 1)) + if(reagents.has_reagent("adminordrazine", 1)) + adjustWater(round(reagents.get_reagent_amount("adminordrazine") * 1)) + adjustHealth(round(reagents.get_reagent_amount("adminordrazine") * 1)) + adjustNutri(round(reagents.get_reagent_amount("adminordrazine") * 1)) adjustPests(-rand(1,5)) adjustWeeds(-rand(1,5)) - if(S.has_reagent("adminordrazine", 5)) + if(reagents.has_reagent("adminordrazine", 5)) switch(rand(100)) if(66 to 100) mutatespecie() @@ -726,6 +726,7 @@ mutatepest(user) else to_chat(user, "Nothing happens...") + reagents.clear_reagents() /obj/machinery/hydroponics/attackby(obj/item/O, mob/user, params) //Called when mob user "attacks" it with object O @@ -1000,7 +1001,7 @@ /obj/machinery/hydroponics/proc/add_compost(obj/item/reagent_source, mob/user, transfer_amount, visi_msg, irrigate = FALSE) var/list/trays = list(src)//makes the list just this in cases of syringes and compost etc - if(irrigate && transfer_amount > 30 && reagent_source.reagents.total_volume >= 30 && using_irrigation) + if(irrigate && (transfer_amount > 30) && (reagent_source.reagents.total_volume >= 30) && using_irrigation) trays = FindConnected() if(length(trays) > 1) @@ -1010,14 +1011,13 @@ visible_message("[visi_msg].") var/split = round(transfer_amount / length(trays)) - for(var/obj/machinery/hydroponics/H in trays)//cause I don't want to feel like im juggling 15 tamagotchis and I can get to my real work of ripping flooring apart in hopes of validating my life choices of becoming a space-gardener - reagent_source.reagents.trans_to(H.reagents, split) - if(isfood(reagent_source) || ispill(reagent_source) || istype(reagent_source, /obj/item/grown)) - qdel(reagent_source) - - H.applyChemicals(reagents, user) - reagents.clear_reagents() + for(var/obj/machinery/hydroponics/H as anything in trays)//cause I don't want to feel like im juggling 15 tamagotchis and I can get to my real work of ripping flooring apart in hopes of validating my life choices of becoming a space-gardener + reagent_source.reagents.trans_to(H, split) + H.apply_chemicals(user) H.update_state() + if(isfood(reagent_source) || ispill(reagent_source) || istype(reagent_source, /obj/item/grown)) + qdel(reagent_source) + if(reagent_source) // If the source wasn't composted and destroyed reagent_source.update_icon() From 27c70cde0a2dbb803039faaa8abb62ecd7cd696e Mon Sep 17 00:00:00 2001 From: Contrabang <91113370+Contrabang@users.noreply.github.com> Date: Fri, 1 Mar 2024 18:19:59 -0500 Subject: [PATCH 08/23] Upgrades SpacemanDMM + Dreamchecker CI (#24247) * update to suite 1.8 * lets go annotate dm * okay lets not fuck up * testing commit * return it to the natural state --- .github/workflows/ci.yml | 12 +++------- _build_dependencies.sh | 2 +- tools/ci/annotate_dm.py | 51 ++++++++++++++++++++++++++++++++++++++++ tools/ci/annotate_dm.sh | 4 ++++ 4 files changed, 59 insertions(+), 10 deletions(-) create mode 100644 tools/ci/annotate_dm.py create mode 100644 tools/ci/annotate_dm.sh diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c02f49ef71f6..5d9ccac1a6f7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -39,15 +39,9 @@ jobs: python -m tools.ci.check_icon_conflicts python -m tools.ci.check_icon_dupenames python -m tools.maplint.source --github - DREAMCHECKER_EXIT_CODE=0 - ~/dreamchecker > ${GITHUB_WORKSPACE}/output-annotations.txt 2>&1 || DREAMCHECKER_EXIT_CODE=$? - echo 'DREAMCHECKER_ANNOTATED=1' >> "$GITHUB_ENV" - exit $DREAMCHECKER_EXIT_CODE - - name: Annotate Lints - uses: yogstation13/DreamAnnotate@v2 - if: ${{ always() && env.DREAMCHECKER_ANNOTATED == '1' }} - with: - outputFile: output-annotations.txt + - name: Run DreamChecker + shell: bash + run: ~/dreamchecker 2>&1 | bash tools/ci/annotate_dm.sh odlint: name: Lint with OpenDream diff --git a/_build_dependencies.sh b/_build_dependencies.sh index 058f897b55b6..5f1927b74e89 100644 --- a/_build_dependencies.sh +++ b/_build_dependencies.sh @@ -1,6 +1,6 @@ # This file has all the information on what versions of libraries are thrown into the code # For dreamchecker -export SPACEMANDMM_TAG=suite-1.7.1 +export SPACEMANDMM_TAG=suite-1.8 # For TGUI export NODE_VERSION=20 # Stable Byond Major diff --git a/tools/ci/annotate_dm.py b/tools/ci/annotate_dm.py new file mode 100644 index 000000000000..2fbe7375d9de --- /dev/null +++ b/tools/ci/annotate_dm.py @@ -0,0 +1,51 @@ +import sys +import re +import os.path as path + +# Usage: python3 annotate_dm.py [filename] +# If filename is not provided, stdin is checked instead + +def red(text): + return "\033[31m" + str(text) + "\033[0m" + +def green(text): + return "\033[32m" + str(text) + "\033[0m" + +def yellow(text): + return "\033[33m" + str(text) + "\033[0m" + +def annotate(raw_output): + # Remove ANSI escape codes + raw_output = re.sub(r'(\x9B|\x1B\[)[0-?]*[ -\/]*[@-~]', '', raw_output) + + print("::group::DreamChecker Output") + print(raw_output) + print("::endgroup::") + + annotation_regex = r'(?P.*?), line (?P\d+), column (?P\d+):\s{1,2}(?Perror|warning): (?P.*)' + has_issues = False + + print("DM Code Annotations:") + for annotation in re.finditer(annotation_regex, raw_output): + print(f"::{annotation['type']} file={annotation['filename']},line={annotation['line']},col={annotation['column']}::{annotation['message']}") + has_issues = True + + if not has_issues: + print(green("No DM issues found")) + +def main(): + if len(sys.argv) > 1: + if not path.exists(sys.argv[1]): + print(red(f"Error: Annotations file '{sys.argv[1]}' does not exist")) + sys.exit(1) + with open(sys.argv[1], 'r') as f: + annotate(f.read()) + elif not sys.stdin.isatty(): + annotate(sys.stdin.read()) + else: + print(red("Error: No input provided")) + print("Usage: tools/ci/annotate_dm.sh [filename]") + sys.exit(1) + +if __name__ == '__main__': + main() diff --git a/tools/ci/annotate_dm.sh b/tools/ci/annotate_dm.sh new file mode 100644 index 000000000000..1c4107aed458 --- /dev/null +++ b/tools/ci/annotate_dm.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +set -euo pipefail +python tools/ci/annotate_dm.py "$@" From 8844a2ab97ef2444b2b63f15f98531331a805b88 Mon Sep 17 00:00:00 2001 From: Arthri <41360489+Arthri@users.noreply.github.com> Date: Sat, 2 Mar 2024 07:34:09 +0800 Subject: [PATCH 09/23] Removes Toxin Damage from Drinking Blood in Virus Culture Bottles (#23968) * Make spawned_disease use O- * Change type to Vh Null * Make Vh Null not update blood_volume * Make Vh Null not feed vampires * Move string to define * Update code/__DEFINES/reagents_defines.dm Co-authored-by: GDN <96800819+GDNgit@users.noreply.github.com> --------- Co-authored-by: Arthri <41360489+a@users.noreply.github.com> Co-authored-by: GDN <96800819+GDNgit@users.noreply.github.com> --- code/__DEFINES/reagents_defines.dm | 3 +++ .../reagents/chemistry/reagents/water.dm | 2 +- .../reagents/chemistry/reagents_datum.dm | 3 ++- code/modules/reagents/reagent_containers.dm | 2 +- code/modules/surgery/organs/blood.dm | 18 +++++++++--------- 5 files changed, 16 insertions(+), 12 deletions(-) diff --git a/code/__DEFINES/reagents_defines.dm b/code/__DEFINES/reagents_defines.dm index 14f796da040d..7dfe52837b15 100644 --- a/code/__DEFINES/reagents_defines.dm +++ b/code/__DEFINES/reagents_defines.dm @@ -29,3 +29,6 @@ #define SYRINGE_DRAW 0 #define SYRINGE_INJECT 1 #define SYRINGE_BROKEN 2 + +/// Like O- blood but doesn't contribute to blood_volume or vampire nutrition +#define BLOOD_TYPE_FAKE_BLOOD "Vh Null" diff --git a/code/modules/reagents/chemistry/reagents/water.dm b/code/modules/reagents/chemistry/reagents/water.dm index 25d4c98451e4..451cc4fa829e 100644 --- a/code/modules/reagents/chemistry/reagents/water.dm +++ b/code/modules/reagents/chemistry/reagents/water.dm @@ -118,7 +118,7 @@ if(method == REAGENT_INGEST && iscarbon(M)) var/mob/living/carbon/C = M - if(C.mind?.has_antag_datum(/datum/antagonist/vampire)) + if(C.mind?.has_antag_datum(/datum/antagonist/vampire) && data["blood_type"] != BLOOD_TYPE_FAKE_BLOOD) C.set_nutrition(min(NUTRITION_LEVEL_WELL_FED, C.nutrition + 10)) C.blood_volume = min(C.blood_volume + round(volume, 0.1), BLOOD_VOLUME_NORMAL) ..() diff --git a/code/modules/reagents/chemistry/reagents_datum.dm b/code/modules/reagents/chemistry/reagents_datum.dm index 6f2f09a42e5a..fa5aa62e8842 100644 --- a/code/modules/reagents/chemistry/reagents_datum.dm +++ b/code/modules/reagents/chemistry/reagents_datum.dm @@ -78,7 +78,8 @@ if(id == "blood" && !(data?["blood_type"] in get_safe_blood(C.dna?.blood_type)) || C.dna?.species.name != data?["species"] && (data?["species_only"] || C.dna?.species.own_species_blood)) C.reagents.add_reagent("toxin", volume * 0.5) else - C.blood_volume = min(C.blood_volume + round(volume, 0.1), BLOOD_VOLUME_NORMAL) + if(data?["blood_type"] != BLOOD_TYPE_FAKE_BLOOD) + C.blood_volume = min(C.blood_volume + round(volume, 0.1), BLOOD_VOLUME_NORMAL) // This does not absorb the blood we are getting in *this* reagent transfer operation, // (because the actual transfer has not happened yet. Because reasons) but it does process // the blood already in the mob. diff --git a/code/modules/reagents/reagent_containers.dm b/code/modules/reagents/reagent_containers.dm index 44bb7655de24..7a70db39f578 100644 --- a/code/modules/reagents/reagent_containers.dm +++ b/code/modules/reagents/reagent_containers.dm @@ -39,7 +39,7 @@ create_reagents(volume, temperature_min, temperature_max) if(spawned_disease) var/datum/disease/F = new spawned_disease(0) - var/list/data = list("viruses" = list(F), "blood_color" = "#A10808") + var/list/data = list("viruses" = list(F), "blood_color" = "#A10808", "blood_type" = BLOOD_TYPE_FAKE_BLOOD) reagents.add_reagent("blood", disease_amount, data) add_initial_reagents() diff --git a/code/modules/surgery/organs/blood.dm b/code/modules/surgery/organs/blood.dm index f16ef7cecd8f..ab99f91591a0 100644 --- a/code/modules/surgery/organs/blood.dm +++ b/code/modules/surgery/organs/blood.dm @@ -234,26 +234,26 @@ // This is has more potential uses, and is probably faster than the old proc. /proc/get_safe_blood(bloodtype) - . = list() + . = list(BLOOD_TYPE_FAKE_BLOOD) if(!bloodtype) return switch(bloodtype) if("A-") - return list("A-", "O-") + . += list("A-", "O-") if("A+") - return list("A-", "A+", "O-", "O+") + . += list("A-", "A+", "O-", "O+") if("B-") - return list("B-", "O-") + . += list("B-", "O-") if("B+") - return list("B-", "B+", "O-", "O+") + . += list("B-", "B+", "O-", "O+") if("AB-") - return list("A-", "B-", "O-", "AB-") + . += list("A-", "B-", "O-", "AB-") if("AB+") - return list("A-", "A+", "B-", "B+", "O-", "O+", "AB-", "AB+") + . += list("A-", "A+", "B-", "B+", "O-", "O+", "AB-", "AB+") if("O-") - return list("O-") + . += list("O-") if("O+") - return list("O-", "O+") + . += list("O-", "O+") //to add a splatter of blood or other mob liquid. /mob/living/proc/add_splatter_floor(turf/T, small_drip, shift_x, shift_y, emittor_intertia) From 3102e151bfc428dcc86f9faf1dcbad23e3339dff Mon Sep 17 00:00:00 2001 From: GDN <96800819+GDNgit@users.noreply.github.com> Date: Sat, 2 Mar 2024 09:34:24 -0600 Subject: [PATCH 10/23] makes last resort work (#24387) * makes last resort work * Update code/modules/antagonists/changeling/powers/become_headslug.dm --------- Co-authored-by: S34N <12197162+S34NW@users.noreply.github.com> --- code/modules/antagonists/changeling/powers/become_headslug.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/antagonists/changeling/powers/become_headslug.dm b/code/modules/antagonists/changeling/powers/become_headslug.dm index a5c7b712ffc4..06301121e983 100644 --- a/code/modules/antagonists/changeling/powers/become_headslug.dm +++ b/code/modules/antagonists/changeling/powers/become_headslug.dm @@ -13,7 +13,7 @@ if(cling.headslugged) to_chat(user, "We need to absorb a humanoid to headslug again.") return - if(tgui_alert("Are you sure you wish to do this? This action cannot be undone.",,"Yes","No") != "Yes") + if(tgui_alert(user, "Are you sure you wish to do this? This action cannot be undone.", "Sting", list("Yes", "No")) != "Yes") return cling.headslugged = TRUE ..() From cc433a3794d4f74514fc144d6d85d545abe1a832 Mon Sep 17 00:00:00 2001 From: BiancaWilkson <42818125+BiancaWilkson@users.noreply.github.com> Date: Sat, 2 Mar 2024 17:43:22 -0500 Subject: [PATCH 11/23] Fixes an exploit with robobrains (#24394) * this hurts me more than it hurts you * me when istype --- code/modules/mob/living/brain/brain_emote.dm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/modules/mob/living/brain/brain_emote.dm b/code/modules/mob/living/brain/brain_emote.dm index 13fcf0c4104e..861e1706a59b 100644 --- a/code/modules/mob/living/brain/brain_emote.dm +++ b/code/modules/mob/living/brain/brain_emote.dm @@ -25,6 +25,10 @@ if(!(B.container && istype(B.container, /obj/item/mmi))) // No MMI, no emotes return FALSE + if(istype(B.container, /obj/item/mmi/robotic_brain)) //Robobrains can't be silenced and still emote + var/obj/item/mmi/robotic_brain/robobrain = B.container + return !robobrain.silenced + // So, brains can't really see their own emotes so we'll probably just want to send an extra message /datum/emote/living/brain/alarm From 87a318a7deebf64a8e8f6acd2df5e138f2751e06 Mon Sep 17 00:00:00 2001 From: Contrabang <91113370+Contrabang@users.noreply.github.com> Date: Sun, 3 Mar 2024 12:37:51 -0500 Subject: [PATCH 12/23] Refactors screen objects to /atom/movable (#24068) * introduce helper + remove unused proc * we love compatibility * Update code/_onclick/hud/action_button.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/_onclick/hud/action_button.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/_onclick/hud/alert.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/_onclick/hud/blob_overmind.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/_onclick/hud/blob_overmind.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/_onclick/hud/blob_overmind.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/modules/martial_arts/martial.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/modules/mining/lavaland/loot/tendril_loot.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/modules/mob/living/carbon/human/species/shadow.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/modules/mob/living/carbon/human/species/shadow.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/modules/mob/living/living_update_status.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/_onclick/hud/screen_objects.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/_onclick/hud/screen_objects.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/_onclick/hud/screen_objects.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/game/objects/items/weapons/storage/internal.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/game/machinery/computer/camera_advanced.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/game/machinery/computer/camera_advanced.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/game/objects/items/weapons/storage/internal.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/game/mecha/mecha.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * deconflict --------- Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> --- code/__DEFINES/is_helpers.dm | 2 + code/__HELPERS/game.dm | 8 - code/_onclick/click.dm | 10 +- code/_onclick/drag_drop.dm | 2 +- code/_onclick/hud/action_button.dm | 42 ++-- code/_onclick/hud/ai_hud.dm | 98 ++++---- code/_onclick/hud/alert.dm | 220 +++++++++--------- code/_onclick/hud/alien_hud.dm | 50 ++-- code/_onclick/hud/alien_larva.dm | 16 +- code/_onclick/hud/blob_overmind.dm | 82 +++---- code/_onclick/hud/bot_hud.dm | 14 +- code/_onclick/hud/constructs_hud.dm | 14 +- code/_onclick/hud/follow_alert.dm | 28 +-- code/_onclick/hud/fullscreen.dm | 54 ++--- code/_onclick/hud/ghost_hud.dm | 48 ++-- code/_onclick/hud/guardian_hud.dm | 38 +-- code/_onclick/hud/hud_datum.dm | 44 ++-- code/_onclick/hud/human_hud.dm | 98 ++++---- code/_onclick/hud/map_popups.dm | 31 +-- code/_onclick/hud/movable_screen_objects.dm | 10 +- code/_onclick/hud/other_mobs_hud.dm | 10 +- code/_onclick/hud/parallax.dm | 58 ++--- code/_onclick/hud/picture_in_picture.dm | 36 +-- code/_onclick/hud/plane_master.dm | 40 ++-- code/_onclick/hud/plane_master_controller.dm | 18 +- code/_onclick/hud/radial.dm | 32 +-- code/_onclick/hud/robot_hud.dm | 70 +++--- code/_onclick/hud/screen_objects.dm | 168 ++++++------- code/_onclick/hud/screentip.dm | 6 +- code/_onclick/hud/slime_hud.dm | 2 +- code/controllers/subsystem/SSdebugview.dm | 8 +- code/controllers/subsystem/SSghost_spawns.dm | 4 +- code/controllers/subsystem/SSparallax.dm | 2 +- code/controllers/subsystem/SSticker.dm | 4 +- code/datums/action.dm | 8 +- code/datums/click_intercept.dm | 4 +- code/datums/keybindings/mob_keybinds.dm | 2 +- code/datums/spells/mimic.dm | 2 +- code/datums/status_effects/blob_burst.dm | 4 +- code/datums/status_effects/buffs.dm | 50 ++-- code/datums/status_effects/debuffs.dm | 34 +-- code/datums/status_effects/gas.dm | 4 +- code/datums/status_effects/magic_disguise.dm | 4 +- code/datums/status_effects/status_effect.dm | 10 +- .../demons/shadow_demon/shadow_demon.dm | 2 +- .../miniantags/guardian/types/assassin.dm | 8 +- .../miniantags/guardian/types/charger.dm | 4 +- .../miniantags/morph/spells/ambush.dm | 4 +- .../miniantags/pulsedemon/pulsedemon.dm | 8 +- code/game/gamemodes/wizard/soulstone.dm | 2 +- code/game/machinery/camera/camera.dm | 2 +- .../machinery/computer/camera_advanced.dm | 6 +- .../game/machinery/computer/camera_console.dm | 8 +- code/game/machinery/computer/law.dm | 4 +- code/game/mecha/mecha.dm | 20 +- code/game/mecha/mecha_topic.dm | 2 +- code/game/objects/buckling.dm | 2 +- .../objects/items/weapons/holy_weapons.dm | 2 +- .../objects/items/weapons/storage/belt.dm | 2 +- .../objects/items/weapons/storage/internal.dm | 6 +- .../items/weapons/storage/storage_base.dm | 10 +- .../structures/crates_lockers/closets.dm | 4 +- code/game/objects/structures/morgue.dm | 4 +- code/game/objects/structures/safe.dm | 4 +- .../stool_bed_chair_nest/alien_nests.dm | 2 +- .../modules/antagonists/vampire/vamp_datum.dm | 2 +- .../components/unary_devices/cryo.dm | 2 +- code/modules/buildmode/buildmode.dm | 18 +- code/modules/buildmode/buildmode_hud.dm | 38 +-- code/modules/client/client_defines.dm | 4 +- .../client/preference/link_processing.dm | 4 +- code/modules/events/meteors_event.dm | 6 +- code/modules/games/cards.dm | 2 +- .../hallucinations/effects/moderate.dm | 26 +-- .../modules/maptext_alerts/location_blurbs.dm | 26 +-- code/modules/maptext_alerts/text_blurbs.dm | 2 +- code/modules/martial_arts/martial.dm | 12 +- .../mining/lavaland/loot/tendril_loot.dm | 4 +- .../mob/dead/observer/observer_base.dm | 2 +- code/modules/mob/living/brain/MMI.dm | 2 +- .../mob/living/carbon/alien/alien_base.dm | 2 +- .../mob/living/carbon/alien/alien_life.dm | 2 +- .../alien/humanoid/humanoid_update_icons.dm | 2 +- code/modules/mob/living/carbon/carbon.dm | 12 +- code/modules/mob/living/carbon/carbon_life.dm | 12 +- .../mob/living/carbon/carbon_update_icons.dm | 6 +- code/modules/mob/living/carbon/give.dm | 22 +- .../mob/living/carbon/human/human_life.dm | 30 +-- .../living/carbon/human/human_update_icons.dm | 28 +-- .../carbon/human/human_update_status.dm | 2 +- .../carbon/human/species/diona_species.dm | 2 +- .../mob/living/carbon/human/species/golem.dm | 2 +- .../mob/living/carbon/human/species/shadow.dm | 6 +- code/modules/mob/living/living.dm | 6 +- code/modules/mob/living/living_defense.dm | 2 +- code/modules/mob/living/living_life.dm | 2 +- .../mob/living/living_update_status.dm | 14 +- code/modules/mob/living/silicon/ai/ai_mob.dm | 2 +- .../mob/living/silicon/robot/robot_life.dm | 12 +- .../mob/living/silicon/robot/robot_mob.dm | 16 +- .../mob/living/silicon/silicon_laws.dm | 18 +- .../modules/mob/living/silicon/silicon_mob.dm | 2 +- .../mob/living/simple_animal/constructs.dm | 2 +- .../simple_animal/friendly/diona_nymph.dm | 8 +- .../hostile/megafauna/bubblegum.dm | 2 +- .../mob/living/simple_animal/simple_animal.dm | 8 +- .../living/simple_animal/slime/slime_life.dm | 2 +- .../living/simple_animal/slime/slime_mob.dm | 2 +- code/modules/mob/mob.dm | 4 +- code/modules/mob/mob_grab.dm | 6 +- code/modules/mob/mob_misc_procs.dm | 2 +- code/modules/mob/mob_movement.dm | 18 +- code/modules/mob/mob_vars.dm | 16 +- code/modules/mod/mod_control.dm | 4 +- code/modules/mod/mod_core.dm | 18 +- code/modules/mod/modules/module_kinesis.dm | 6 +- code/modules/paperwork/paperbin.dm | 2 +- code/modules/paperwork/photography.dm | 2 +- code/modules/pda/PDA.dm | 2 +- code/modules/power/apc/apc_malfunction.dm | 4 +- code/modules/recycling/disposal.dm | 2 +- .../surgery/organs/organ_datums/lung_datum.dm | 24 +- code/modules/surgery/organs/organ_external.dm | 4 +- code/modules/tooltip/tooltip.dm | 2 +- code/modules/vote/vote_presets.dm | 2 +- 125 files changed, 1039 insertions(+), 1050 deletions(-) diff --git a/code/__DEFINES/is_helpers.dm b/code/__DEFINES/is_helpers.dm index cab2662a7ec6..602c4e261a85 100644 --- a/code/__DEFINES/is_helpers.dm +++ b/code/__DEFINES/is_helpers.dm @@ -133,3 +133,5 @@ GLOBAL_LIST_INIT(turfs_pass_meteor, typecacheof(list( ))) #define ispassmeteorturf(A) (is_type_in_typecache(A, GLOB.turfs_pass_meteor)) + +#define is_screen_atom(A) istype(A, /atom/movable/screen) diff --git a/code/__HELPERS/game.dm b/code/__HELPERS/game.dm index ce60b238e612..e4e1b7930b5a 100644 --- a/code/__HELPERS/game.dm +++ b/code/__HELPERS/game.dm @@ -345,14 +345,6 @@ return candidates -/proc/ScreenText(obj/O, maptext="", screen_loc="CENTER-7,CENTER-7", maptext_height=480, maptext_width=480) - if(!isobj(O)) O = new /obj/screen/text() - O.maptext = maptext - O.maptext_height = maptext_height - O.maptext_width = maptext_width - O.screen_loc = screen_loc - return O - /proc/remove_images_from_clients(image/I, list/show_to) for(var/client/C in show_to) C.images -= I diff --git a/code/_onclick/click.dm b/code/_onclick/click.dm index 91e889369037..4369d535fce4 100644 --- a/code/_onclick/click.dm +++ b/code/_onclick/click.dm @@ -463,23 +463,23 @@ else direction = WEST dir = direction -/obj/screen/click_catcher +/atom/movable/screen/click_catcher icon = 'icons/mob/screen_gen.dmi' icon_state = "catcher" plane = CLICKCATCHER_PLANE mouse_opacity = MOUSE_OPACITY_OPAQUE screen_loc = "CENTER" -/obj/screen/click_catcher/MouseEntered(location, control, params) +/atom/movable/screen/click_catcher/MouseEntered(location, control, params) return -/obj/screen/click_catcher/MouseExited(location, control, params) +/atom/movable/screen/click_catcher/MouseExited(location, control, params) return #define MAX_SAFE_BYOND_ICON_SCALE_TILES (MAX_SAFE_BYOND_ICON_SCALE_PX / world.icon_size) #define MAX_SAFE_BYOND_ICON_SCALE_PX (33 * 32) //Not using world.icon_size on purpose. -/obj/screen/click_catcher/proc/UpdateGreed(view_size_x = 15, view_size_y = 15) +/atom/movable/screen/click_catcher/proc/UpdateGreed(view_size_x = 15, view_size_y = 15) var/icon/newicon = icon('icons/mob/screen_gen.dmi', "catcher") var/ox = min(MAX_SAFE_BYOND_ICON_SCALE_TILES, view_size_x) var/oy = min(MAX_SAFE_BYOND_ICON_SCALE_TILES, view_size_y) @@ -494,7 +494,7 @@ M.Scale(px/sx, py/sy) transform = M -/obj/screen/click_catcher/Click(location, control, params) +/atom/movable/screen/click_catcher/Click(location, control, params) var/list/modifiers = params2list(params) if(modifiers["middle"] && iscarbon(usr)) var/mob/living/carbon/C = usr diff --git a/code/_onclick/drag_drop.dm b/code/_onclick/drag_drop.dm index 5d7d41143320..420e9d4d9fa7 100644 --- a/code/_onclick/drag_drop.dm +++ b/code/_onclick/drag_drop.dm @@ -28,7 +28,7 @@ FALSE if not return var/lagging = could_be_click_lag() drag_start = 0 - if(!(istype(over, /obj/screen) || (loc && loc == over.loc))) + if(!(is_screen_atom(over) || (loc && loc == over.loc))) if(!Adjacent(usr) || !over.Adjacent(usr)) // should stop you from dragging through windows if(lagging) usr.ClickOn(src, params) diff --git a/code/_onclick/hud/action_button.dm b/code/_onclick/hud/action_button.dm index 2ff53932b0ce..3f8812e93686 100644 --- a/code/_onclick/hud/action_button.dm +++ b/code/_onclick/hud/action_button.dm @@ -1,4 +1,4 @@ -/obj/screen/movable/action_button +/atom/movable/screen/movable/action_button desc = "CTRL-Shift click on this button to bind it to a hotkey." var/datum/action/linked_action var/actiontooltipstyle = "" @@ -6,7 +6,7 @@ var/ordered = TRUE var/datum/keybinding/mob/trigger_action_button/linked_keybind -/obj/screen/movable/action_button/MouseDrop(over_object) +/atom/movable/screen/movable/action_button/MouseDrop(over_object) if(locked && could_be_click_lag()) // in case something bad happend and game realised we dragged our ability instead of pressing it Click() drag_start = 0 @@ -16,8 +16,8 @@ to_chat(usr, "Action button \"[name]\" is locked, unlock it first.") closeToolTip(usr) return - if((istype(over_object, /obj/screen/movable/action_button) && !istype(over_object, /obj/screen/movable/action_button/hide_toggle))) - var/obj/screen/movable/action_button/B = over_object + if((istype(over_object, /atom/movable/screen/movable/action_button) && !istype(over_object, /atom/movable/screen/movable/action_button/hide_toggle))) + var/atom/movable/screen/movable/action_button/B = over_object var/list/actions = usr.actions actions.Swap(actions.Find(linked_action), actions.Find(B.linked_action)) moved = FALSE @@ -26,13 +26,13 @@ B.ordered = TRUE closeToolTip(usr) usr.update_action_buttons() - else if(istype(over_object, /obj/screen/movable/action_button/hide_toggle)) + else if(istype(over_object, /atom/movable/screen/movable/action_button/hide_toggle)) closeToolTip(usr) else closeToolTip(usr) return ..() -/obj/screen/movable/action_button/Click(location,control,params) +/atom/movable/screen/movable/action_button/Click(location, control, params) var/list/modifiers = params2list(params) if(modifiers["ctrl"] && modifiers["shift"]) INVOKE_ASYNC(src, PROC_REF(set_to_keybind), usr) @@ -63,7 +63,7 @@ animate(src, transform = matrix(), time = 0.4 SECONDS, alpha = 255) return TRUE -/obj/screen/movable/action_button/proc/set_to_keybind(mob/user) +/atom/movable/screen/movable/action_button/proc/set_to_keybind(mob/user) var/keybind_to_set_to = uppertext(input(user, "What keybind do you want to set this action button to?") as text) if(keybind_to_set_to) if(linked_keybind) @@ -78,10 +78,10 @@ clean_up_keybinds(user) to_chat(user, "Your active keybinding on [src] has been cleared.") -/obj/screen/movable/action_button/AltClick(mob/user) +/atom/movable/screen/movable/action_button/AltClick(mob/user) return linked_action.AltTrigger() -/obj/screen/movable/action_button/proc/clean_up_keybinds(mob/owner) +/atom/movable/screen/movable/action_button/proc/clean_up_keybinds(mob/owner) if(linked_keybind) owner.client.active_keybindings[linked_keybind.binded_to] -= (linked_keybind) if(!length(owner.client.active_keybindings[linked_keybind.binded_to])) @@ -90,21 +90,21 @@ QDEL_NULL(linked_keybind) //Hide/Show Action Buttons ... Button -/obj/screen/movable/action_button/hide_toggle +/atom/movable/screen/movable/action_button/hide_toggle name = "Hide Buttons" desc = "Shift-click any button to reset its position, and Control-click it to lock/unlock its position. Alt-click this button to reset all buttons to their default positions." icon = 'icons/mob/actions/actions.dmi' icon_state = "bg_default" var/hidden = FALSE -/obj/screen/movable/action_button/hide_toggle/MouseDrop(over_object) - if(istype(over_object, /obj/screen/movable/action_button)) +/atom/movable/screen/movable/action_button/hide_toggle/MouseDrop(over_object) + if(istype(over_object, /atom/movable/screen/movable/action_button)) closeToolTip(usr) else closeToolTip(usr) return ..() -/obj/screen/movable/action_button/hide_toggle/Click(location,control,params) +/atom/movable/screen/movable/action_button/hide_toggle/Click(location, control, params) var/list/modifiers = params2list(params) if(modifiers["alt"]) @@ -121,17 +121,17 @@ update_icon(UPDATE_OVERLAYS) usr.update_action_buttons() -/obj/screen/movable/action_button/hide_toggle/AltClick(mob/user) +/atom/movable/screen/movable/action_button/hide_toggle/AltClick(mob/user) for(var/V in user.actions) var/datum/action/A = V - var/obj/screen/movable/action_button/B = A.button + var/atom/movable/screen/movable/action_button/B = A.button B.moved = FALSE if(moved) moved = FALSE user.update_action_buttons(TRUE) to_chat(user, "Action button positions have been reset.") -/obj/screen/movable/action_button/hide_toggle/proc/InitialiseIcon(mob/living/user) +/atom/movable/screen/movable/action_button/hide_toggle/proc/InitialiseIcon(mob/living/user) if(isalien(user)) icon = 'icons/mob/actions/actions.dmi' icon_state = "bg_alien" @@ -146,13 +146,13 @@ color = user.client.prefs.UI_style_color update_icon(UPDATE_OVERLAYS) -/obj/screen/movable/action_button/hide_toggle/update_overlays() +/atom/movable/screen/movable/action_button/hide_toggle/update_overlays() . = ..() var/image/img = image(initial(icon), src, hidden ? "show" : "hide") img.appearance_flags = RESET_COLOR | RESET_ALPHA . += img -/obj/screen/movable/action_button/MouseEntered(location, control, params) +/atom/movable/screen/movable/action_button/MouseEntered(location, control, params) . = ..() if(!QDELETED(src)) if(!linked_keybind) @@ -164,7 +164,7 @@ desc_information = desc_information.Join(" ") openToolTip(usr, src, params, title = name, content = desc_information, theme = actiontooltipstyle) -/obj/screen/movable/action_button/MouseExited() +/atom/movable/screen/movable/action_button/MouseExited() closeToolTip(usr) /mob/proc/update_action_buttons_icon() @@ -192,7 +192,7 @@ A.override_location() // If the action has a location override, call it A.UpdateButtonIcon() - var/obj/screen/movable/action_button/B = A.button + var/atom/movable/screen/movable/action_button/B = A.button if(B.ordered) button_number++ if(!B.moved) @@ -227,7 +227,7 @@ return "WEST[coord_col]:[coord_col_offset],NORTH[coord_row]:-6" -/datum/hud/proc/SetButtonCoords(obj/screen/button,number) +/datum/hud/proc/SetButtonCoords(atom/movable/screen/button,number) var/row = round((number-1)/AB_MAX_COLUMNS) var/col = ((number - 1)%(AB_MAX_COLUMNS)) + 1 var/x_offset = 32*(col-1) + 4 + 2*col diff --git a/code/_onclick/hud/ai_hud.dm b/code/_onclick/hud/ai_hud.dm index 8579060078bf..918cfa8d432c 100644 --- a/code/_onclick/hud/ai_hud.dm +++ b/code/_onclick/hud/ai_hud.dm @@ -1,138 +1,138 @@ -/obj/screen/ai +/atom/movable/screen/ai icon = 'icons/mob/screen_ai.dmi' -/obj/screen/ai/aicore +/atom/movable/screen/ai/aicore name = "AI core" icon_state = "ai_core" -/obj/screen/ai/aicore/Click() +/atom/movable/screen/ai/aicore/Click() if(isAI(usr)) var/mob/living/silicon/ai/AI = usr AI.view_core() -/obj/screen/ai/camera_list +/atom/movable/screen/ai/camera_list name = "Show Camera List" icon_state = "camera" -/obj/screen/ai/camera_list/Click() +/atom/movable/screen/ai/camera_list/Click() var/mob/living/silicon/ai/AI = usr var/camera = tgui_input_list(AI, "Choose which camera you want to view", "Cameras", AI.get_camera_list()) AI.ai_camera_list(camera) -/obj/screen/ai/camera_track +/atom/movable/screen/ai/camera_track name = "Track With Camera" icon_state = "track" -/obj/screen/ai/camera_track/Click() +/atom/movable/screen/ai/camera_track/Click() if(isAI(usr)) var/mob/living/silicon/ai/AI = usr var/target_name = tgui_input_list(AI, "Choose a target you want to track", "Tracking", AI.trackable_mobs()) if(target_name) AI.ai_camera_track(target_name) -/obj/screen/ai/camera_light +/atom/movable/screen/ai/camera_light name = "Toggle Camera Light" icon_state = "camera_light" -/obj/screen/ai/camera_light/Click() +/atom/movable/screen/ai/camera_light/Click() if(isAI(usr)) var/mob/living/silicon/ai/AI = usr AI.toggle_camera_light() -/obj/screen/ai/crew_monitor +/atom/movable/screen/ai/crew_monitor name = "Crew Monitoring Console" icon_state = "crew_monitor" -/obj/screen/ai/crew_monitor/Click() +/atom/movable/screen/ai/crew_monitor/Click() if(isAI(usr)) var/mob/living/silicon/ai/AI = usr AI.subsystem_crew_monitor() -/obj/screen/ai/crew_manifest +/atom/movable/screen/ai/crew_manifest name = "Crew Manifest" icon_state = "manifest" -/obj/screen/ai/crew_manifest/Click() +/atom/movable/screen/ai/crew_manifest/Click() if(isAI(usr)) var/mob/living/silicon/ai/AI = usr AI.ai_roster() -/obj/screen/ai/alerts +/atom/movable/screen/ai/alerts name = "Show Alerts" icon_state = "alerts" -/obj/screen/ai/alerts/Click() +/atom/movable/screen/ai/alerts/Click() if(isAI(usr)) var/mob/living/silicon/ai/AI = usr AI.ai_alerts() -/obj/screen/ai/announcement +/atom/movable/screen/ai/announcement name = "Make Announcement" icon_state = "announcement" -/obj/screen/ai/announcement/Click() +/atom/movable/screen/ai/announcement/Click() var/mob/living/silicon/ai/AI = usr AI.announcement() -/obj/screen/ai/call_shuttle +/atom/movable/screen/ai/call_shuttle name = "Call Emergency Shuttle" icon_state = "call_shuttle" -/obj/screen/ai/call_shuttle/Click() +/atom/movable/screen/ai/call_shuttle/Click() if(isAI(usr)) var/mob/living/silicon/ai/AI = usr AI.ai_call_shuttle() -/obj/screen/ai/state_laws +/atom/movable/screen/ai/state_laws name = "Law Manager" icon_state = "state_laws" -/obj/screen/ai/state_laws/Click() +/atom/movable/screen/ai/state_laws/Click() if(isAI(usr)) var/mob/living/silicon/ai/AI = usr AI.subsystem_law_manager() -/obj/screen/ai/pda_msg_send +/atom/movable/screen/ai/pda_msg_send name = "PDA - Send Message" icon_state = "pda_send" -/obj/screen/ai/pda_msg_send/Click() +/atom/movable/screen/ai/pda_msg_send/Click() if(isAI(usr)) var/mob/living/silicon/ai/AI = usr AI.aiPDA.cmd_send_pdamesg() -/obj/screen/ai/pda_msg_show +/atom/movable/screen/ai/pda_msg_show name = "PDA - Show Message Log" icon_state = "pda_receive" -/obj/screen/ai/pda_msg_show/Click() +/atom/movable/screen/ai/pda_msg_show/Click() if(isAI(usr)) var/mob/living/silicon/ai/AI = usr AI.aiPDA.cmd_show_message_log() -/obj/screen/ai/image_take +/atom/movable/screen/ai/image_take name = "Take Image" icon_state = "take_picture" -/obj/screen/ai/image_take/Click() +/atom/movable/screen/ai/image_take/Click() if(isAI(usr)) var/mob/living/silicon/ai/AI = usr AI.aiCamera.toggle_camera_mode() -/obj/screen/ai/image_view +/atom/movable/screen/ai/image_view name = "View Images" icon_state = "view_images" -/obj/screen/ai/image_view/Click() +/atom/movable/screen/ai/image_view/Click() if(isAI(usr)) var/mob/living/silicon/ai/AI = usr AI.aiCamera.viewpictures() -/obj/screen/ai/sensors +/atom/movable/screen/ai/sensors name = "Toggle Sensor Augmentation" icon_state = "ai_sensor" -/obj/screen/ai/sensors/Click() +/atom/movable/screen/ai/sensors/Click() if(isAI(usr)) var/mob/living/silicon/ai/AI = usr AI.sensor_mode() @@ -147,89 +147,89 @@ /datum/hud/ai/New(mob/owner) ..() - var/obj/screen/using + var/atom/movable/screen/using - using = new /obj/screen/language_menu + using = new /atom/movable/screen/language_menu using.screen_loc = ui_borg_lanugage_menu static_inventory += using //AI core - using = new /obj/screen/ai/aicore() + using = new /atom/movable/screen/ai/aicore() using.screen_loc = ui_ai_core static_inventory += using //Camera list - using = new /obj/screen/ai/camera_list() + using = new /atom/movable/screen/ai/camera_list() using.screen_loc = ui_ai_camera_list static_inventory += using //Track - using = new /obj/screen/ai/camera_track() + using = new /atom/movable/screen/ai/camera_track() using.screen_loc = ui_ai_track_with_camera static_inventory += using //Camera light - using = new /obj/screen/ai/camera_light() + using = new /atom/movable/screen/ai/camera_light() using.screen_loc = ui_ai_camera_light static_inventory += using //Crew Monitorting - using = new /obj/screen/ai/crew_monitor() + using = new /atom/movable/screen/ai/crew_monitor() using.screen_loc = ui_ai_crew_monitor static_inventory += using //Crew Manifest - using = new /obj/screen/ai/crew_manifest() + using = new /atom/movable/screen/ai/crew_manifest() using.screen_loc = ui_ai_crew_manifest static_inventory += using //Alerts - using = new /obj/screen/ai/alerts() + using = new /atom/movable/screen/ai/alerts() using.screen_loc = ui_ai_alerts static_inventory += using //Announcement - using = new /obj/screen/ai/announcement() + using = new /atom/movable/screen/ai/announcement() using.screen_loc = ui_ai_announcement static_inventory += using //Shuttle - using = new /obj/screen/ai/call_shuttle() + using = new /atom/movable/screen/ai/call_shuttle() using.screen_loc = ui_ai_shuttle static_inventory += using //Laws - using = new /obj/screen/ai/state_laws() + using = new /atom/movable/screen/ai/state_laws() using.screen_loc = ui_ai_state_laws static_inventory += using //PDA message - using = new /obj/screen/ai/pda_msg_send() + using = new /atom/movable/screen/ai/pda_msg_send() using.screen_loc = ui_ai_pda_send static_inventory += using //PDA log - using = new /obj/screen/ai/pda_msg_show() + using = new /atom/movable/screen/ai/pda_msg_show() using.screen_loc = ui_ai_pda_log static_inventory += using //Take image - using = new /obj/screen/ai/image_take() + using = new /atom/movable/screen/ai/image_take() using.screen_loc = ui_ai_take_picture static_inventory += using //View images - using = new /obj/screen/ai/image_view() + using = new /atom/movable/screen/ai/image_view() using.screen_loc = ui_ai_view_images static_inventory += using //Medical/Security sensors - using = new /obj/screen/ai/sensors() + using = new /atom/movable/screen/ai/sensors() using.screen_loc = ui_ai_sensor static_inventory += using //Intent - using = new /obj/screen/act_intent/robot/AI() + using = new /atom/movable/screen/act_intent/robot/AI() using.icon_state = mymob.a_intent static_inventory += using action_intent = using diff --git a/code/_onclick/hud/alert.dm b/code/_onclick/hud/alert.dm index 5385f46078cc..66e7af873a3e 100644 --- a/code/_onclick/hud/alert.dm +++ b/code/_onclick/hud/alert.dm @@ -21,7 +21,7 @@ if(!category) return - var/obj/screen/alert/alert = LAZYACCESS(alerts, category) + var/atom/movable/screen/alert/alert = LAZYACCESS(alerts, category) if(alert) if(alert.override_alerts) return 0 @@ -75,14 +75,14 @@ var/timeout = timeout_override || alert.timeout if(timeout) - addtimer(CALLBACK(alert, TYPE_PROC_REF(/obj/screen/alert, do_timeout), src, category), timeout) + addtimer(CALLBACK(alert, TYPE_PROC_REF(/atom/movable/screen/alert, do_timeout), src, category), timeout) alert.timeout = world.time + timeout - world.tick_lag return alert // Proc to clear an existing alert. /mob/proc/clear_alert(category, clear_override = FALSE) - var/obj/screen/alert/alert = LAZYACCESS(alerts, category) + var/atom/movable/screen/alert/alert = LAZYACCESS(alerts, category) if(!alert) return 0 if(alert.override_alerts && !clear_override) @@ -94,7 +94,7 @@ client.screen -= alert qdel(alert) -/obj/screen/alert +/atom/movable/screen/alert icon = 'icons/mob/screen_alert.dmi' icon_state = "default" name = "Alert" @@ -105,16 +105,16 @@ var/alerttooltipstyle = "" var/override_alerts = FALSE //If it is overriding other alerts of the same type -/obj/screen/alert/MouseEntered(location,control,params) +/atom/movable/screen/alert/MouseEntered(location, control, params) . = ..() openToolTip(usr, src, params, title = name, content = desc, theme = alerttooltipstyle) -/obj/screen/alert/MouseExited() +/atom/movable/screen/alert/MouseExited() closeToolTip(usr) return ..() -/obj/screen/alert/proc/do_timeout(mob/M, category) +/atom/movable/screen/alert/proc/do_timeout(mob/M, category) if(!M || !M.alerts) return @@ -122,42 +122,42 @@ M.clear_alert(category) //Gas alerts -/obj/screen/alert/not_enough_oxy +/atom/movable/screen/alert/not_enough_oxy name = "Choking (No O2)" desc = "You're not getting enough oxygen. Find some good air before you pass out! The box in your backpack has an oxygen tank and breath mask in it." icon_state = "not_enough_oxy" -/obj/screen/alert/too_much_oxy +/atom/movable/screen/alert/too_much_oxy name = "Choking (O2)" desc = "There's too much oxygen in the air, and you're breathing it in! Find some good air before you pass out!" icon_state = "too_much_oxy" -/obj/screen/alert/not_enough_nitro +/atom/movable/screen/alert/not_enough_nitro name = "Choking (No N2)" desc = "You're not getting enough nitrogen. Find some good air before you pass out!" icon_state = "not_enough_nitro" -/obj/screen/alert/too_much_nitro +/atom/movable/screen/alert/too_much_nitro name = "Choking (N2)" desc = "There's too much nitrogen in the air, and you're breathing it in! Find some good air before you pass out!" icon_state = "too_much_nitro" -/obj/screen/alert/not_enough_co2 +/atom/movable/screen/alert/not_enough_co2 name = "Choking (No CO2)" desc = "You're not getting enough carbon dioxide. Find some good air before you pass out!" icon_state = "not_enough_co2" -/obj/screen/alert/too_much_co2 +/atom/movable/screen/alert/too_much_co2 name = "Choking (CO2)" desc = "There's too much carbon dioxide in the air, and you're breathing it in! Find some good air before you pass out!" icon_state = "too_much_co2" -/obj/screen/alert/not_enough_tox +/atom/movable/screen/alert/not_enough_tox name = "Choking (No Plasma)" desc = "You're not getting enough plasma. Find some good air before you pass out!" icon_state = "not_enough_tox" -/obj/screen/alert/too_much_tox +/atom/movable/screen/alert/too_much_tox name = "Choking (Plasma)" desc = "There's highly flammable, toxic plasma in the air and you're breathing it in. Find some fresh air. The box in your backpack has an oxygen tank and gas mask in it." icon_state = "too_much_tox" @@ -165,161 +165,161 @@ // Hunger alerts -/obj/screen/alert/hunger +/atom/movable/screen/alert/hunger icon = 'icons/mob/screen_hunger.dmi' -/obj/screen/alert/hunger/fat +/atom/movable/screen/alert/hunger/fat name = "Fat" desc = "You ate too much food, lardass. Run around the station and lose some weight." icon_state = "fat" -/obj/screen/alert/hunger/full +/atom/movable/screen/alert/hunger/full name = "Full" desc = "You feel full and satisfied, but you shouldn't eat much more." icon_state = "full" -/obj/screen/alert/hunger/well_fed +/atom/movable/screen/alert/hunger/well_fed name = "Well Fed" desc = "You feel quite satisfied, but you may be able to eat a bit more." icon_state = "well_fed" -/obj/screen/alert/hunger/fed +/atom/movable/screen/alert/hunger/fed name = "Fed" desc = "You feel moderately satisfied, but a bit more food may not hurt." icon_state = "fed" -/obj/screen/alert/hunger/hungry +/atom/movable/screen/alert/hunger/hungry name = "Hungry" desc = "Some food would be good right about now." icon_state = "hungry" -/obj/screen/alert/hunger/starving +/atom/movable/screen/alert/hunger/starving name = "Starving" desc = "You're severely malnourished. The hunger pains make moving around a chore." icon_state = "starving" /// Machine "hunger" -/obj/screen/alert/hunger/fat/machine +/atom/movable/screen/alert/hunger/fat/machine name = "Over Charged" desc = "Your cell has excessive charge due to electrical shocks. Run around the station and spend some energy." -/obj/screen/alert/hunger/full/machine +/atom/movable/screen/alert/hunger/full/machine name = "Full Charge" desc = "Your cell is at full charge. Might want to give APCs some space." -/obj/screen/alert/hunger/well_fed/machine +/atom/movable/screen/alert/hunger/well_fed/machine name = "High Charge" desc = "You're almost all charged, but could top up a bit more." -/obj/screen/alert/hunger/fed/machine +/atom/movable/screen/alert/hunger/fed/machine name = "Half Charge" desc = "You feel moderately charged, but a bit more juice couldn't hurt." -/obj/screen/alert/hunger/hungry/machine +/atom/movable/screen/alert/hunger/hungry/machine name = "Low Charge" desc = "Could use a little charging right about now." -/obj/screen/alert/hunger/starving/machine +/atom/movable/screen/alert/hunger/starving/machine name = "Nearly Discharged" desc = "You're almost drained. The low power makes moving around a chore." // End of Machine "hunger" ///Vampire "hunger" -/obj/screen/alert/hunger/fat/vampire +/atom/movable/screen/alert/hunger/fat/vampire desc = "You somehow drank too much blood, lardass. Run around the station and lose some weight." -/obj/screen/alert/hunger/full/vampire +/atom/movable/screen/alert/hunger/full/vampire desc = "You feel full and satisfied, but you know you will thirst for more blood soon..." -/obj/screen/alert/hunger/well_fed/vampire +/atom/movable/screen/alert/hunger/well_fed/vampire desc = "You feel quite satisfied, but you could do with a bit more blood." -/obj/screen/alert/hunger/fed/vampire +/atom/movable/screen/alert/hunger/fed/vampire desc = "You feel moderately satisfied, but a bit more blood wouldn't hurt." -/obj/screen/alert/hunger/hungry/vampire +/atom/movable/screen/alert/hunger/hungry/vampire desc = "You currently thirst for blood." -/obj/screen/alert/hunger/starving/vampire +/atom/movable/screen/alert/hunger/starving/vampire desc = "You're severely thirsty. The thirst pains make moving around a chore." //End of Vampire "hunger" -/obj/screen/alert/hot +/atom/movable/screen/alert/hot name = "Too Hot" desc = "You're flaming hot! Get somewhere cooler and take off any insulating clothing like a fire suit." icon_state = "hot" -/obj/screen/alert/hot/robot +/atom/movable/screen/alert/hot/robot desc = "The air around you is too hot for a humanoid. Be careful to avoid exposing them to this environment." -/obj/screen/alert/cold +/atom/movable/screen/alert/cold name = "Too Cold" desc = "You're freezing cold! Get somewhere warmer and take off any insulating clothing like a space suit." icon_state = "cold" -/obj/screen/alert/cold/drask +/atom/movable/screen/alert/cold/drask name = "Cold" desc = "You're breathing supercooled gas! It's stimulating your metabolism to regenerate damaged tissue." -/obj/screen/alert/cold/robot +/atom/movable/screen/alert/cold/robot desc = "The air around you is too cold for a humanoid. Be careful to avoid exposing them to this environment." -/obj/screen/alert/lowpressure +/atom/movable/screen/alert/lowpressure name = "Low Pressure" desc = "The air around you is hazardously thin. A space suit would protect you." icon_state = "lowpressure" -/obj/screen/alert/highpressure +/atom/movable/screen/alert/highpressure name = "High Pressure" desc = "The air around you is hazardously thick. A fire suit would protect you." icon_state = "highpressure" -/obj/screen/alert/lightexposure +/atom/movable/screen/alert/lightexposure name = "Light Exposure" desc = "You're exposed to light." icon_state = "lightexposure" -/obj/screen/alert/nolight +/atom/movable/screen/alert/nolight name = "No Light" desc = "You're not exposed to any light." icon_state = "nolight" -/obj/screen/alert/blind +/atom/movable/screen/alert/blind name = "Blind" desc = "You can't see! This may be caused by a genetic defect, eye trauma, being unconscious, \ or something covering your eyes." icon_state = "blind" -/obj/screen/alert/high +/atom/movable/screen/alert/high name = "High" desc = "Whoa man, you're tripping balls! Careful you don't get addicted... if you aren't already." icon_state = "high" -/obj/screen/alert/drunk +/atom/movable/screen/alert/drunk name = "Drunk" desc = "All that alcohol you've been drinking is impairing your speech, motor skills, and mental cognition." icon_state = "drunk" -/obj/screen/alert/embeddedobject +/atom/movable/screen/alert/embeddedobject name = "Embedded Object" desc = "Something got lodged into your flesh and is causing major bleeding. It might fall out with time, but surgery is the safest way. \ If you're feeling frisky, click yourself in help intent to pull the object out." icon_state = "embeddedobject" -/obj/screen/alert/embeddedobject/Click() +/atom/movable/screen/alert/embeddedobject/Click() if(isliving(usr)) var/mob/living/carbon/human/M = usr return M.help_shake_act(M) -/obj/screen/alert/asleep +/atom/movable/screen/alert/asleep name = "Asleep" desc = "You've fallen asleep. Wait a bit and you should wake up. Unless you don't, considering how helpless you are." icon_state = "asleep" -/obj/screen/alert/weightless +/atom/movable/screen/alert/weightless name = "Weightless" desc = "Gravity has ceased affecting you, and you're floating around aimlessly. You'll need something large and heavy, like a \ wall or lattice, to push yourself off if you want to move. A jetpack would enable free range of motion. A pair of \ @@ -327,48 +327,48 @@ magboots would let you walk around normally on the floor. Barring those, you can or shoot a gun to move around via Newton's 3rd Law of Motion." icon_state = "weightless" -/obj/screen/alert/fire +/atom/movable/screen/alert/fire name = "On Fire" desc = "You're on fire. Stop, drop and roll to put the fire out or move to a vacuum area." icon_state = "fire" -/obj/screen/alert/fire/Click() +/atom/movable/screen/alert/fire/Click() if(isliving(usr)) var/mob/living/L = usr return L.resist() -/obj/screen/alert/direction_lock +/atom/movable/screen/alert/direction_lock name = "Direction Lock" desc = "You are facing only one direction, slowing your movement down. Click here to stop the direction lock." icon_state = "direction_lock" -/obj/screen/alert/direction_lock/Click() +/atom/movable/screen/alert/direction_lock/Click() if(isliving(usr)) var/mob/living/L = usr return L.clear_forced_look() //Constructs -/obj/screen/alert/holy_fire +/atom/movable/screen/alert/holy_fire name = "Holy Fire" desc = "Your body is crumbling from the holy energies. Get out." icon_state = "fire" //ALIENS -/obj/screen/alert/alien_tox +/atom/movable/screen/alert/alien_tox name = "Plasma" desc = "There's flammable plasma in the air. If it lights up, you'll be toast." icon_state = "alien_tox" alerttooltipstyle = "alien" -/obj/screen/alert/alien_fire +/atom/movable/screen/alert/alien_fire // This alert is temporarily gonna be thrown for all hot air but one day it will be used for literally being on fire name = "Too Hot" desc = "It's too hot! Flee to space or at least away from the flames. Standing on weeds will heal you." icon_state = "alien_fire" alerttooltipstyle = "alien" -/obj/screen/alert/alien_vulnerable +/atom/movable/screen/alert/alien_vulnerable name = "Severed Matriarchy" desc = "Your queen has been killed, you will suffer movement penalties and loss of hivemind. A new queen cannot be made until you recover." icon_state = "alien_noqueen" @@ -376,7 +376,7 @@ or shoot a gun to move around via Newton's 3rd Law of Motion." //BLOBS -/obj/screen/alert/nofactory +/atom/movable/screen/alert/nofactory name = "No Factory" desc = "You have no factory, and are slowly dying!" icon_state = "blobbernaut_nofactory" @@ -384,39 +384,39 @@ or shoot a gun to move around via Newton's 3rd Law of Motion." //SILICONS -/obj/screen/alert/nocell +/atom/movable/screen/alert/nocell name = "Missing Power Cell" desc = "Unit has no power cell. No modules available until a power cell is reinstalled. Robotics may provide assistance." icon_state = "nocell" -/obj/screen/alert/emptycell +/atom/movable/screen/alert/emptycell name = "Out of Power" desc = "Unit's power cell has no charge remaining. No modules available until power cell is recharged. \ Recharging stations are available in robotics, the dormitory bathrooms, and the AI satellite." icon_state = "emptycell" -/obj/screen/alert/lowcell +/atom/movable/screen/alert/lowcell name = "Low Charge" desc = "Unit's power cell is running low. Recharging stations are available in robotics, the dormitory bathrooms, and the AI satellite." icon_state = "lowcell" //Diona Nymph -/obj/screen/alert/nymph +/atom/movable/screen/alert/nymph name = "Gestalt merge" desc = "You have merged with a diona gestalt and are now part of it's biomass. You can still wiggle yourself free though." -/obj/screen/alert/nymph/Click() +/atom/movable/screen/alert/nymph/Click() if(!usr || !usr.client) return if(isnymph(usr)) var/mob/living/simple_animal/diona/D = usr return D.resist() -/obj/screen/alert/gestalt +/atom/movable/screen/alert/gestalt name = "Merged nymph" desc = "You have merged with one or more diona nymphs. Click here to drop it (or one of them)." -/obj/screen/alert/gestalt/Click() +/atom/movable/screen/alert/gestalt/Click() if(!usr || !usr.client) return @@ -433,25 +433,25 @@ Recharging stations are available in robotics, the dormitory bathrooms, and the D.split(TRUE) //Need to cover all use cases - emag, illegal upgrade module, malf AI hack, traitor cyborg -/obj/screen/alert/hacked +/atom/movable/screen/alert/hacked name = "Hacked" desc = "Hazardous non-standard equipment detected. Please ensure any usage of this equipment is in line with unit's laws, if any." icon_state = "hacked" -/obj/screen/alert/locked +/atom/movable/screen/alert/locked name = "Locked Down" desc = "Unit has been remotely locked down. Usage of a Robotics Control Console like the one in the Research Director's \ office by your AI master or any qualified human may resolve this matter. Robotics may provide further assistance if necessary." icon_state = "locked" -/obj/screen/alert/newlaw +/atom/movable/screen/alert/newlaw name = "Law Update" desc = "Laws have potentially been uploaded to or removed from this unit. Please be aware of any changes \ so as to remain in compliance with the most up-to-date laws." icon_state = "newlaw" timeout = 300 -/obj/screen/alert/hackingapc +/atom/movable/screen/alert/hackingapc name = "Hacking APC" desc = "An Area Power Controller is being hacked. When the process is \ complete, you will have exclusive control of it, and you will gain \ @@ -460,11 +460,11 @@ so as to remain in compliance with the most up-to-date laws." timeout = 600 var/atom/target = null -/obj/screen/alert/hackingapc/Destroy() +/atom/movable/screen/alert/hackingapc/Destroy() target = null return ..() -/obj/screen/alert/hackingapc/Click() +/atom/movable/screen/alert/hackingapc/Click() if(!usr || !usr.client) return if(!target) @@ -475,22 +475,22 @@ so as to remain in compliance with the most up-to-date laws." AI.eyeobj.setLoc(T) //MECHS -/obj/screen/alert/low_mech_integrity +/atom/movable/screen/alert/low_mech_integrity name = "Mech Damaged" desc = "Mech integrity is low." icon_state = "low_mech_integrity" -/obj/screen/alert/mech_port_available +/atom/movable/screen/alert/mech_port_available name = "Connect to Port" desc = "Click here to connect to an air port and refill your oxygen!" icon_state = "mech_port" var/obj/machinery/atmospherics/unary/portables_connector/target = null -/obj/screen/alert/mech_port_available/Destroy() +/atom/movable/screen/alert/mech_port_available/Destroy() target = null return ..() -/obj/screen/alert/mech_port_available/Click() +/atom/movable/screen/alert/mech_port_available/Click() if(!usr || !usr.client) return if(!ismecha(usr.loc) || !target) @@ -501,12 +501,12 @@ so as to remain in compliance with the most up-to-date laws." else to_chat(usr, "[M] failed to connect to the port.") -/obj/screen/alert/mech_port_disconnect +/atom/movable/screen/alert/mech_port_disconnect name = "Disconnect from Port" desc = "Click here to disconnect from your air port." icon_state = "mech_port_x" -/obj/screen/alert/mech_port_disconnect/Click() +/atom/movable/screen/alert/mech_port_disconnect/Click() if(!usr || !usr.client) return if(!ismecha(usr.loc)) @@ -517,40 +517,40 @@ so as to remain in compliance with the most up-to-date laws." else to_chat(usr, "[M] is not connected to a port at the moment.") -/obj/screen/alert/mech_nocell +/atom/movable/screen/alert/mech_nocell name = "Missing Power Cell" desc = "Mech has no power cell." icon_state = "nocell" -/obj/screen/alert/mech_emptycell +/atom/movable/screen/alert/mech_emptycell name = "Out of Power" desc = "Mech is out of power." icon_state = "emptycell" -/obj/screen/alert/mech_lowcell +/atom/movable/screen/alert/mech_lowcell name = "Low Charge" desc = "Mech is running out of power." icon_state = "lowcell" -/obj/screen/alert/mech_maintenance +/atom/movable/screen/alert/mech_maintenance name = "Maintenance Protocols" desc = "Maintenance protocols are currently in effect, most actions disabled." icon_state = "locked" //GUARDIANS -/obj/screen/alert/cancharge +/atom/movable/screen/alert/cancharge name = "Charge Ready" desc = "You are ready to charge at a location!" icon_state = "guardian_charge" alerttooltipstyle = "parasite" -/obj/screen/alert/canstealth +/atom/movable/screen/alert/canstealth name = "Stealth Ready" desc = "You are ready to enter stealth!" icon_state = "guardian_canstealth" alerttooltipstyle = "parasite" -/obj/screen/alert/instealth +/atom/movable/screen/alert/instealth name = "In Stealth" desc = "You are in stealth and your next attack will do bonus damage!" icon_state = "guardian_instealth" @@ -559,32 +559,32 @@ so as to remain in compliance with the most up-to-date laws." //GHOSTS //TODO: expand this system to replace the pollCandidates/CheckAntagonist/"choose quickly"/etc Yes/No messages -/obj/screen/alert/notify_cloning +/atom/movable/screen/alert/notify_cloning name = "Revival" desc = "Someone is trying to revive you. Re-enter your corpse if you want to be revived!" icon_state = "template" timeout = 300 -/obj/screen/alert/notify_cloning/Click() +/atom/movable/screen/alert/notify_cloning/Click() if(!usr || !usr.client) return var/mob/dead/observer/G = usr G.reenter_corpse() -/obj/screen/alert/ghost +/atom/movable/screen/alert/ghost name = "Ghost" desc = "Would you like to ghost? You will be notified when your body is removed from the nest." icon_state = "template" timeout = 5 MINUTES // longer than any infection should be -/obj/screen/alert/ghost/Initialize(mapload) +/atom/movable/screen/alert/ghost/Initialize(mapload) . = ..() var/image/I = image('icons/mob/mob.dmi', icon_state = "ghost", layer = FLOAT_LAYER, dir = SOUTH) I.layer = FLOAT_LAYER I.plane = FLOAT_PLANE overlays += I -/obj/screen/alert/ghost/Click() +/atom/movable/screen/alert/ghost/Click() var/mob/living/carbon/human/infected_user = usr if(!istype(infected_user) || infected_user.stat == DEAD) infected_user.clear_alert("ghost_nest") @@ -595,7 +595,7 @@ so as to remain in compliance with the most up-to-date laws." return infected_user.ghostize(TRUE) -/obj/screen/alert/notify_action +/atom/movable/screen/alert/notify_action name = "Body created" desc = "A body was created. You can enter it." icon_state = "template" @@ -607,7 +607,7 @@ so as to remain in compliance with the most up-to-date laws." var/image/signed_up_overlay // image showing that you're signed up var/datum/candidate_poll/poll // If set, on Click() it'll register the player as a candidate -/obj/screen/alert/notify_action/process() +/atom/movable/screen/alert/notify_action/process() if(show_time_left) var/timeleft = timeout - world.time if(timeleft <= 0) @@ -632,14 +632,14 @@ so as to remain in compliance with the most up-to-date laws." qdel(O) ..() -/obj/screen/alert/notify_action/Destroy() +/atom/movable/screen/alert/notify_action/Destroy() target = null if(signed_up_overlay) overlays -= signed_up_overlay qdel(signed_up_overlay) return ..() -/obj/screen/alert/notify_action/Click() +/atom/movable/screen/alert/notify_action/Click() if(!usr || !usr.client) return var/mob/dead/observer/G = usr @@ -672,7 +672,7 @@ so as to remain in compliance with the most up-to-date laws." return G.ManualFollow(target) -/obj/screen/alert/notify_action/Topic(href, href_list) +/atom/movable/screen/alert/notify_action/Topic(href, href_list) if(!href_list["signup"]) return if(!poll) @@ -684,7 +684,7 @@ so as to remain in compliance with the most up-to-date laws." poll.sign_up(G) update_signed_up_alert(G) -/obj/screen/alert/notify_action/proc/update_signed_up_alert(mob/user) +/atom/movable/screen/alert/notify_action/proc/update_signed_up_alert(mob/user) if(!signed_up_overlay) signed_up_overlay = image('icons/mob/screen_gen.dmi', icon_state = "selector") signed_up_overlay.layer = FLOAT_LAYER @@ -694,7 +694,7 @@ so as to remain in compliance with the most up-to-date laws." else overlays -= signed_up_overlay -/obj/screen/alert/notify_action/proc/display_stacks(stacks = 1) +/atom/movable/screen/alert/notify_action/proc/display_stacks(stacks = 1) if(stacks <= 1) return @@ -712,7 +712,7 @@ so as to remain in compliance with the most up-to-date laws." qdel(O) -/obj/screen/alert/notify_soulstone +/atom/movable/screen/alert/notify_soulstone name = "Soul Stone" desc = "Someone is trying to capture your soul in a soul stone. Click to allow it." icon_state = "template" @@ -720,7 +720,7 @@ so as to remain in compliance with the most up-to-date laws." var/obj/item/soulstone/stone = null var/stoner = null -/obj/screen/alert/notify_soulstone/Click() +/atom/movable/screen/alert/notify_soulstone/Click() if(!usr || !usr.client) return if(stone) @@ -728,39 +728,39 @@ so as to remain in compliance with the most up-to-date laws." impossible for you to get back into the game as your regular character.", "Respawn", list("No", "Yes")) == "Yes") stone?.opt_in = TRUE -/obj/screen/alert/notify_soulstone/Destroy() +/atom/movable/screen/alert/notify_soulstone/Destroy() stone = null return ..() -/obj/screen/alert/notify_mapvote +/atom/movable/screen/alert/notify_mapvote name = "Map Vote" desc = "Vote on which map you would like to play on next!" icon_state = "map_vote" -/obj/screen/alert/notify_mapvote/Click() +/atom/movable/screen/alert/notify_mapvote/Click() usr.client.vote() //OBJECT-BASED -/obj/screen/alert/restrained/buckled +/atom/movable/screen/alert/restrained/buckled name = "Buckled" desc = "You've been buckled to something. Click the alert to unbuckle unless you're handcuffed." icon_state = "buckled" -/obj/screen/alert/restrained/handcuffed +/atom/movable/screen/alert/restrained/handcuffed name = "Handcuffed" desc = "You're handcuffed and can't act. If anyone drags you, you won't be able to move. Click the alert to free yourself." -/obj/screen/alert/restrained/legcuffed +/atom/movable/screen/alert/restrained/legcuffed name = "Legcuffed" desc = "You're legcuffed, which slows you down considerably. Click the alert to free yourself." -/obj/screen/alert/restrained/Click() +/atom/movable/screen/alert/restrained/Click() if(isliving(usr)) var/mob/living/L = usr return L.resist() -/obj/screen/alert/restrained/buckled/Click() +/atom/movable/screen/alert/restrained/buckled/Click() var/mob/living/L = usr if(!istype(L) || !L.can_resist()) return @@ -780,7 +780,7 @@ so as to remain in compliance with the most up-to-date laws." mymob.client.screen -= alerts[alerts[i]] return TRUE for(var/i in 1 to alerts.len) - var/obj/screen/alert/alert = alerts[alerts[i]] + var/atom/movable/screen/alert/alert = alerts[alerts[i]] if(alert.icon_state == "template") if(!icon_pref) icon_pref = ui_style2icon(mymob.client.prefs.UI_style) @@ -802,7 +802,7 @@ so as to remain in compliance with the most up-to-date laws." mymob.client.screen |= alert return TRUE -/obj/screen/alert/Click(location, control, params) +/atom/movable/screen/alert/Click(location, control, params) if(!usr || !usr.client) return var/paramslist = params2list(params) @@ -812,7 +812,7 @@ so as to remain in compliance with the most up-to-date laws." if(master) return usr.client.Click(master, location, control, params) -/obj/screen/alert/Destroy() +/atom/movable/screen/alert/Destroy() severity = 0 master = null screen_loc = "" diff --git a/code/_onclick/hud/alien_hud.dm b/code/_onclick/hud/alien_hud.dm index a541fca8b57d..c0e4a3ee0979 100644 --- a/code/_onclick/hud/alien_hud.dm +++ b/code/_onclick/hud/alien_hud.dm @@ -1,20 +1,20 @@ -/obj/screen/alien +/atom/movable/screen/alien icon = 'icons/mob/screen_alien.dmi' -/obj/screen/alien/leap +/atom/movable/screen/alien/leap name = "toggle leap" icon_state = "leap_off" -/obj/screen/alien/leap/Click() +/atom/movable/screen/alien/leap/Click() if(isalienadult(usr)) var/mob/living/carbon/alien/humanoid/hunter/AH = usr AH.toggle_leap() -/obj/screen/alien/nightvision +/atom/movable/screen/alien/nightvision name = "toggle night-vision" icon_state = "nightvision1" -/obj/screen/alien/nightvision/Click() +/atom/movable/screen/alien/nightvision/Click() var/mob/living/carbon/alien/humanoid/A = usr A.night_vision_toggle() @@ -32,7 +32,7 @@ update_sight() -/obj/screen/alien/plasma_display +/atom/movable/screen/alien/plasma_display icon = 'icons/mob/screen_gen.dmi' icon_state = "power_display2" name = "plasma stored" @@ -46,20 +46,20 @@ /datum/hud/alien/New(mob/living/carbon/alien/humanoid/owner) ..() - var/obj/screen/using - var/obj/screen/inventory/inv_box + var/atom/movable/screen/using + var/atom/movable/screen/inventory/inv_box - using = new /obj/screen/language_menu + using = new /atom/movable/screen/language_menu using.screen_loc = ui_alien_language_menu static_inventory += using - using = new /obj/screen/act_intent/alien() + using = new /atom/movable/screen/act_intent/alien() using.icon_state = (mymob.a_intent == "hurt" ? INTENT_HARM : mymob.a_intent) using.screen_loc = ui_acti static_inventory += using action_intent = using - using = new /obj/screen/mov_intent() + using = new /atom/movable/screen/mov_intent() using.icon = 'icons/mob/screen_alien.dmi' using.icon_state = (mymob.m_intent == MOVE_INTENT_RUN ? "running" : "walking") using.screen_loc = ui_movi @@ -67,13 +67,13 @@ move_intent = using if(isalienhunter(mymob)) - mymob.leap_icon = new /obj/screen/alien/leap() + mymob.leap_icon = new /atom/movable/screen/alien/leap() mymob.leap_icon.icon = 'icons/mob/screen_alien.dmi' mymob.leap_icon.screen_loc = ui_alien_storage_r static_inventory += mymob.leap_icon //equippable shit - inv_box = new /obj/screen/inventory/hand() + inv_box = new /atom/movable/screen/inventory/hand() inv_box.name = "r_hand" inv_box.icon = 'icons/mob/screen_alien.dmi' inv_box.icon_state = "hand_r" @@ -81,7 +81,7 @@ inv_box.slot_id = SLOT_HUD_RIGHT_HAND static_inventory += inv_box - inv_box = new /obj/screen/inventory/hand() + inv_box = new /atom/movable/screen/inventory/hand() inv_box.name = "l_hand" inv_box.icon = 'icons/mob/screen_alien.dmi' inv_box.icon_state = "hand_l" @@ -89,14 +89,14 @@ inv_box.slot_id = SLOT_HUD_LEFT_HAND static_inventory += inv_box - using = new /obj/screen/swap_hand() + using = new /atom/movable/screen/swap_hand() using.name = "hand" using.icon = 'icons/mob/screen_alien.dmi' using.icon_state = "hand1" using.screen_loc = ui_swaphand1 static_inventory += using - using = new /obj/screen/swap_hand() + using = new /atom/movable/screen/swap_hand() using.name = "hand" using.icon = 'icons/mob/screen_alien.dmi' using.icon_state = "hand2" @@ -105,47 +105,47 @@ //end of equippable shit - using = new /obj/screen/resist() + using = new /atom/movable/screen/resist() using.name = "resist" using.icon = 'icons/mob/screen_alien.dmi' using.icon_state = "act_resist" using.screen_loc = ui_pull_resist static_inventory += using - using = new /obj/screen/drop() + using = new /atom/movable/screen/drop() using.name = "drop" using.icon = 'icons/mob/screen_alien.dmi' using.icon_state = "act_drop" using.screen_loc = ui_drop_throw static_inventory += using - mymob.throw_icon = new /obj/screen/throw_catch() + mymob.throw_icon = new /atom/movable/screen/throw_catch() mymob.throw_icon.icon = 'icons/mob/screen_alien.dmi' mymob.throw_icon.screen_loc = ui_drop_throw static_inventory += mymob.throw_icon - mymob.healths = new /obj/screen/healths/alien() + mymob.healths = new /atom/movable/screen/healths/alien() infodisplay += mymob.healths - nightvisionicon = new /obj/screen/alien/nightvision() + nightvisionicon = new /atom/movable/screen/alien/nightvision() infodisplay += nightvisionicon - mymob.pullin = new /obj/screen/pull() + mymob.pullin = new /atom/movable/screen/pull() mymob.pullin.icon = 'icons/mob/screen_alien.dmi' mymob.pullin.hud = src mymob.pullin.update_icon(UPDATE_ICON_STATE) mymob.pullin.screen_loc = ui_pull_resist hotkeybuttons += mymob.pullin - alien_plasma_display = new /obj/screen/alien/plasma_display() + alien_plasma_display = new /atom/movable/screen/alien/plasma_display() infodisplay += alien_plasma_display - zone_select = new /obj/screen/zone_sel/alien() + zone_select = new /atom/movable/screen/zone_sel/alien() zone_select.hud = src zone_select.update_icon(UPDATE_OVERLAYS) static_inventory += zone_select - for(var/obj/screen/inventory/inv in (static_inventory + toggleable_inventory)) + for(var/atom/movable/screen/inventory/inv in (static_inventory + toggleable_inventory)) if(inv.slot_id) inv.hud = src inv_slots[inv.slot_id] = inv diff --git a/code/_onclick/hud/alien_larva.dm b/code/_onclick/hud/alien_larva.dm index f97e593d088e..e911c2bb3960 100644 --- a/code/_onclick/hud/alien_larva.dm +++ b/code/_onclick/hud/alien_larva.dm @@ -5,37 +5,37 @@ /datum/hud/larva/New(mob/owner) ..() - var/obj/screen/using + var/atom/movable/screen/using - using = new /obj/screen/act_intent/alien() + using = new /atom/movable/screen/act_intent/alien() using.icon_state = mymob.a_intent static_inventory += using action_intent = using - using = new /obj/screen/mov_intent() + using = new /atom/movable/screen/mov_intent() using.icon = 'icons/mob/screen_alien.dmi' using.icon_state = (mymob.m_intent == MOVE_INTENT_RUN ? "running" : "walking") static_inventory += using move_intent = using - mymob.healths = new /obj/screen/healths/alien() + mymob.healths = new /atom/movable/screen/healths/alien() infodisplay += mymob.healths - nightvisionicon = new /obj/screen/alien/nightvision() + nightvisionicon = new /atom/movable/screen/alien/nightvision() infodisplay += nightvisionicon - mymob.pullin = new /obj/screen/pull() + mymob.pullin = new /atom/movable/screen/pull() mymob.pullin.icon = 'icons/mob/screen_alien.dmi' mymob.pullin.hud = src mymob.pullin.update_icon(UPDATE_ICON_STATE) mymob.pullin.screen_loc = ui_pull_resist hotkeybuttons += mymob.pullin - using = new /obj/screen/language_menu + using = new /atom/movable/screen/language_menu using.screen_loc = ui_alienlarva_language_menu static_inventory += using - zone_select = new /obj/screen/zone_sel/alien() + zone_select = new /atom/movable/screen/zone_sel/alien() zone_select.hud = src zone_select.update_icon(UPDATE_OVERLAYS) static_inventory += zone_select diff --git a/code/_onclick/hud/blob_overmind.dm b/code/_onclick/hud/blob_overmind.dm index 708978b64bcf..dfb74955d1b1 100644 --- a/code/_onclick/hud/blob_overmind.dm +++ b/code/_onclick/hud/blob_overmind.dm @@ -2,135 +2,135 @@ if(client && !hud_used) hud_used = new /datum/hud/blob_overmind(src) -/obj/screen/blob +/atom/movable/screen/blob icon = 'icons/mob/blob.dmi' -/obj/screen/blob/MouseEntered(location,control,params) +/atom/movable/screen/blob/MouseEntered(location, control, params) . = ..() openToolTip(usr,src,params,title = name,content = desc, theme = "blob") -/obj/screen/blob/MouseExited() +/atom/movable/screen/blob/MouseExited() closeToolTip(usr) return ..() -/obj/screen/blob/BlobHelp +/atom/movable/screen/blob/BlobHelp icon_state = "ui_help" name = "Blob Help" desc = "Help on playing blob!" -/obj/screen/blob/BlobHelp/Click() +/atom/movable/screen/blob/BlobHelp/Click() if(isovermind(usr)) var/mob/camera/blob/B = usr B.blob_help() -/obj/screen/blob/JumpToNode +/atom/movable/screen/blob/JumpToNode icon_state = "ui_tonode" name = "Jump to Node" desc = "Moves your camera to a selected blob node." -/obj/screen/blob/JumpToNode/Click() +/atom/movable/screen/blob/JumpToNode/Click() if(isovermind(usr)) var/mob/camera/blob/B = usr B.jump_to_node() -/obj/screen/blob/JumpToCore +/atom/movable/screen/blob/JumpToCore icon_state = "ui_tocore" name = "Jump to Core" desc = "Moves your camera to your blob core." -/obj/screen/blob/JumpToCore/MouseEntered(location,control,params) +/atom/movable/screen/blob/JumpToCore/MouseEntered(location, control, params) if(hud && hud.mymob && isovermind(hud.mymob)) name = initial(name) desc = initial(desc) return ..() -/obj/screen/blob/JumpToCore/Click() +/atom/movable/screen/blob/JumpToCore/Click() if(isovermind(usr)) var/mob/camera/blob/B = usr B.transport_core() -/obj/screen/blob/Blobbernaut +/atom/movable/screen/blob/Blobbernaut icon_state = "ui_blobbernaut" name = "Produce Blobbernaut (60)" desc = "Produces a strong, intelligent blobbernaut from a factory blob for 60 resources.
The factory blob will be destroyed in the process." -/obj/screen/blob/Blobbernaut/Click() +/atom/movable/screen/blob/Blobbernaut/Click() if(isovermind(usr)) var/mob/camera/blob/B = usr B.create_blobbernaut() -/obj/screen/blob/StorageBlob +/atom/movable/screen/blob/StorageBlob icon_state = "ui_storage" name = "Produce Storage Blob (40)" desc = "Produces a storage blob for 40 resources.
Storage blobs will raise your max resource cap by 50." -/obj/screen/blob/StorageBlob/Click() +/atom/movable/screen/blob/StorageBlob/Click() if(isovermind(usr)) var/mob/camera/blob/B = usr B.create_storage() -/obj/screen/blob/ResourceBlob +/atom/movable/screen/blob/ResourceBlob icon_state = "ui_resource" name = "Produce Resource Blob (40)" desc = "Produces a resource blob for 40 resources.
Resource blobs will give you resources every few seconds." -/obj/screen/blob/ResourceBlob/Click() +/atom/movable/screen/blob/ResourceBlob/Click() if(isovermind(usr)) var/mob/camera/blob/B = usr B.create_resource() -/obj/screen/blob/NodeBlob +/atom/movable/screen/blob/NodeBlob icon_state = "ui_node" name = "Produce Node Blob (60)" desc = "Produces a node blob for 60 resources.
Node blobs will expand and activate nearby resource and factory blobs." -/obj/screen/blob/NodeBlob/Click() +/atom/movable/screen/blob/NodeBlob/Click() if(isovermind(usr)) var/mob/camera/blob/B = usr B.create_node() -/obj/screen/blob/FactoryBlob +/atom/movable/screen/blob/FactoryBlob icon_state = "ui_factory" name = "Produce Factory Blob (60)" desc = "Produces a factory blob for 60 resources.
Factory blobs will produce spores every few seconds." -/obj/screen/blob/FactoryBlob/Click() +/atom/movable/screen/blob/FactoryBlob/Click() if(isovermind(usr)) var/mob/camera/blob/B = usr B.create_factory() -/obj/screen/blob/ReadaptChemical +/atom/movable/screen/blob/ReadaptChemical icon_state = "ui_chemswap" name = "Readapt Chemical (50)" desc = "Randomly rerolls your chemical for 50 resources." -/obj/screen/blob/ReadaptChemical/MouseEntered(location,control,params) +/atom/movable/screen/blob/ReadaptChemical/MouseEntered(location, control, params) if(hud && hud.mymob && isovermind(hud.mymob)) name = initial(name) desc = initial(desc) return ..() -/obj/screen/blob/ReadaptChemical/Click() +/atom/movable/screen/blob/ReadaptChemical/Click() if(isovermind(usr)) var/mob/camera/blob/B = usr B.chemical_reroll() -/obj/screen/blob/RelocateCore +/atom/movable/screen/blob/RelocateCore icon_state = "ui_swap" name = "Relocate Core (80)" desc = "Swaps a node and your core for 80 resources." -/obj/screen/blob/RelocateCore/Click() +/atom/movable/screen/blob/RelocateCore/Click() if(isovermind(usr)) var/mob/camera/blob/B = usr B.relocate_core() -/obj/screen/blob/Split +/atom/movable/screen/blob/Split icon_state = "ui_split" name = "Split consciousness (100)" desc = "Creates another Blob Overmind at the targeted node. One use only.
Offspring are unable to use this ability." -/obj/screen/blob/Split/Click() +/atom/movable/screen/blob/Split/Click() if(isovermind(usr)) var/mob/camera/blob/B = usr B.split_consciousness() @@ -139,9 +139,9 @@ /datum/hud/blob_overmind/New(mob/user) ..() - var/obj/screen/using + var/atom/movable/screen/using - blobpwrdisplay = new /obj/screen() + blobpwrdisplay = new /atom/movable/screen() blobpwrdisplay.name = "blob power" blobpwrdisplay.icon_state = "block" blobpwrdisplay.screen_loc = ui_health @@ -150,56 +150,56 @@ blobpwrdisplay.plane = ABOVE_HUD_PLANE static_inventory += blobpwrdisplay - blobhealthdisplay = new /obj/screen() + blobhealthdisplay = new /atom/movable/screen() blobhealthdisplay.name = "blob health" blobhealthdisplay.icon_state = "block" blobhealthdisplay.screen_loc = ui_internal static_inventory += blobhealthdisplay - using = new /obj/screen/blob/BlobHelp() + using = new /atom/movable/screen/blob/BlobHelp() using.screen_loc = "WEST:6,NORTH:-3" static_inventory += using - using = new /obj/screen/blob/JumpToNode() + using = new /atom/movable/screen/blob/JumpToNode() using.screen_loc = ui_inventory static_inventory += using - using = new /obj/screen/blob/JumpToCore() + using = new /atom/movable/screen/blob/JumpToCore() using.screen_loc = ui_zonesel using.hud = src static_inventory += using - using = new /obj/screen/blob/Blobbernaut() + using = new /atom/movable/screen/blob/Blobbernaut() using.screen_loc = ui_id static_inventory += using - using = new /obj/screen/blob/StorageBlob() + using = new /atom/movable/screen/blob/StorageBlob() using.screen_loc = ui_belt static_inventory += using - using = new /obj/screen/blob/ResourceBlob() + using = new /atom/movable/screen/blob/ResourceBlob() using.screen_loc = ui_back static_inventory += using - using = new /obj/screen/blob/NodeBlob() + using = new /atom/movable/screen/blob/NodeBlob() using.screen_loc = using.screen_loc = ui_rhand static_inventory += using - using = new /obj/screen/blob/FactoryBlob() + using = new /atom/movable/screen/blob/FactoryBlob() using.screen_loc = using.screen_loc = ui_lhand static_inventory += using - using = new /obj/screen/blob/ReadaptChemical() + using = new /atom/movable/screen/blob/ReadaptChemical() using.screen_loc = ui_storage1 using.hud = src static_inventory += using - using = new /obj/screen/blob/RelocateCore() + using = new /atom/movable/screen/blob/RelocateCore() using.screen_loc = ui_storage2 static_inventory += using var/mob/camera/blob/B = user if(!B.is_offspring) // Checks if the blob is an offspring, to not create split button if it is - using = new /obj/screen/blob/Split() + using = new /atom/movable/screen/blob/Split() using.screen_loc = ui_acti static_inventory += using diff --git a/code/_onclick/hud/bot_hud.dm b/code/_onclick/hud/bot_hud.dm index 7370454bf962..9a27937a5be6 100644 --- a/code/_onclick/hud/bot_hud.dm +++ b/code/_onclick/hud/bot_hud.dm @@ -1,12 +1,12 @@ -/obj/screen/bot +/atom/movable/screen/bot icon = 'icons/mob/screen_bot.dmi' -/obj/screen/bot/radio +/atom/movable/screen/bot/radio name = "radio" icon_state = "radio" screen_loc = ui_bot_radio -/obj/screen/bot/radio/Click() +/atom/movable/screen/bot/radio/Click() if(isbot(usr)) var/mob/living/simple_animal/bot/B = usr B.Radio.interact(usr) @@ -17,16 +17,16 @@ /datum/hud/bot/New(mob/owner) ..() - var/obj/screen/using + var/atom/movable/screen/using - using = new /obj/screen/bot/radio() + using = new /atom/movable/screen/bot/radio() static_inventory += using - mymob.healths = new /obj/screen/healths/bot() + mymob.healths = new /atom/movable/screen/healths/bot() mymob.healths.screen_loc = ui_borg_health infodisplay += mymob.healths - mymob.pullin = new /obj/screen/pull() + mymob.pullin = new /atom/movable/screen/pull() mymob.pullin.icon = 'icons/mob/screen_bot.dmi' mymob.pullin.hud = src mymob.pullin.update_icon(UPDATE_ICON_STATE) diff --git a/code/_onclick/hud/constructs_hud.dm b/code/_onclick/hud/constructs_hud.dm index 0c3f9eaf8a44..e2dea6424071 100644 --- a/code/_onclick/hud/constructs_hud.dm +++ b/code/_onclick/hud/constructs_hud.dm @@ -8,7 +8,7 @@ /datum/hud/construct/armoured/New(mob/owner) ..() - mymob.healths = new /obj/screen() + mymob.healths = new /atom/movable/screen() mymob.healths.icon = 'icons/mob/screen_construct.dmi' mymob.healths.icon_state = "juggernaut_health0" mymob.healths.name = "health" @@ -21,7 +21,7 @@ /datum/hud/construct/builder/New(mob/owner) ..() - mymob.healths = new /obj/screen() + mymob.healths = new /atom/movable/screen() mymob.healths.icon = 'icons/mob/screen_construct.dmi' mymob.healths.icon_state = "artificer_health0" mymob.healths.name = "health" @@ -34,7 +34,7 @@ /datum/hud/construct/wraith/New(mob/owner) ..() - mymob.healths = new /obj/screen() + mymob.healths = new /atom/movable/screen() mymob.healths.icon = 'icons/mob/screen_construct.dmi' mymob.healths.icon_state = "wraith_health0" mymob.healths.name = "health" @@ -47,7 +47,7 @@ /datum/hud/construct/harvester/New(mob/owner) ..() - mymob.healths = new /obj/screen() + mymob.healths = new /atom/movable/screen() mymob.healths.icon = 'icons/mob/screen_construct.dmi' mymob.healths.icon_state = "harvester_health0" mymob.healths.name = "health" @@ -56,13 +56,13 @@ /datum/hud/construct/New(mob/owner) ..() - mymob.pullin = new /obj/screen/pull() + mymob.pullin = new /atom/movable/screen/pull() mymob.pullin.icon = 'icons/mob/screen_construct.dmi' mymob.pullin.icon_state = "pull0" mymob.pullin.name = "pull" mymob.pullin.screen_loc = ui_construct_pull - var/obj/screen/using - using = new /obj/screen/act_intent/simple_animal() + var/atom/movable/screen/using + using = new /atom/movable/screen/act_intent/simple_animal() using.icon_state = mymob.a_intent static_inventory += using action_intent = using diff --git a/code/_onclick/hud/follow_alert.dm b/code/_onclick/hud/follow_alert.dm index d8f95d069864..b3d0f10c4ad4 100644 --- a/code/_onclick/hud/follow_alert.dm +++ b/code/_onclick/hud/follow_alert.dm @@ -1,4 +1,4 @@ -/obj/screen/alert/augury +/atom/movable/screen/alert/augury name = "Something interesting!" desc = "Click to follow." /// The atom being followed @@ -19,7 +19,7 @@ * * follow_target: The atom to start out following. Can be null, in which case change_targets() should be used at some point. * * alert_overlay_override: If follow_target is provided (or not), use this for the alert image. */ -/obj/screen/alert/augury/Initialize(mapload, atom/movable/follow_target, image/alert_overlay_override) +/atom/movable/screen/alert/augury/Initialize(mapload, atom/movable/follow_target, image/alert_overlay_override) . = ..() src.follow_target = follow_target @@ -37,7 +37,7 @@ alert_overlay_override.plane = FLOAT_PLANE overlays += alert_overlay_override -/obj/screen/alert/augury/Click(location, control, params) +/atom/movable/screen/alert/augury/Click(location, control, params) . = ..() if(!usr || !usr.client || !isobserver(usr)) return @@ -48,7 +48,7 @@ to_chat(usr, "You are now auto-following [thing_followed]. Click again to stop.") add_follower(usr) -/obj/screen/alert/augury/Destroy(force) +/atom/movable/screen/alert/augury/Destroy(force) for(var/atom/movable/follower in followers) // in case something was nulled follower.stop_orbit() @@ -68,7 +68,7 @@ /// Executed when the parent is deleted. /// Don't immediately kill ourselves, since it's possible that we might want to move somewhere else /// (for example, after a meteor strike) -/obj/screen/alert/augury/proc/on_following_qdel(atom/movable/A) +/atom/movable/screen/alert/augury/proc/on_following_qdel(atom/movable/A) SIGNAL_HANDLER // COMSIG_PARENT_QDELETING for(var/atom/movable/follower in followers) follower.stop_orbit() @@ -86,7 +86,7 @@ * Arguments: * * next_to - The next atom to follow. */ -/obj/screen/alert/augury/proc/change_targets(atom/movable/next_to) +/atom/movable/screen/alert/augury/proc/change_targets(atom/movable/next_to) // unregister first so we aren't bombarded when changing orbits if(isnull(next_to)) return @@ -100,15 +100,15 @@ RegisterSignal(follow_target, COMSIG_ATOM_ORBIT_STOP, PROC_REF(remove_follower_on_stop_orbit)) -/obj/screen/alert/augury/proc/add_follower(atom/movable/follower) +/atom/movable/screen/alert/augury/proc/add_follower(atom/movable/follower) followers |= follower follower.orbit(follow_target) -/obj/screen/alert/augury/proc/remove_follower(atom/movable/follower) +/atom/movable/screen/alert/augury/proc/remove_follower(atom/movable/follower) followers -= follower follower.stop_orbit() -/obj/screen/alert/augury/proc/get_next_target() +/atom/movable/screen/alert/augury/proc/get_next_target() if(!length(next_targets)) return @@ -121,27 +121,27 @@ return target /// Called when someone stops orbiting our followed object, so they can actually get out of the loop. -/obj/screen/alert/augury/proc/remove_follower_on_stop_orbit(atom/movable/followed, atom/movable/follower) +/atom/movable/screen/alert/augury/proc/remove_follower_on_stop_orbit(atom/movable/followed, atom/movable/follower) SIGNAL_HANDLER // COMSIG_ATOM_ORBIT_STOP if(locateUID(follower.orbiting_uid) != follow_target) remove_follower(follower) // don't try to stop the orbit again /// Meteor alert. /// Appears during a meteor storm and allows for auto-following of debris. -/obj/screen/alert/augury/meteor +/atom/movable/screen/alert/augury/meteor name = "Meteors incoming!" desc = "Click to automatically follow debris, and click again to stop." -/obj/screen/alert/augury/meteor/Initialize(mapload) +/atom/movable/screen/alert/augury/meteor/Initialize(mapload) var/image/meteor_img = image(icon = 'icons/obj/meteor.dmi', icon_state = "flaming") . = ..(mapload, alert_overlay_override = meteor_img) START_PROCESSING(SSfastprocess, src) -/obj/screen/alert/augury/meteor/Destroy(force) +/atom/movable/screen/alert/augury/meteor/Destroy(force) . = ..() STOP_PROCESSING(SSfastprocess, src) -/obj/screen/alert/augury/meteor/process() +/atom/movable/screen/alert/augury/meteor/process() var/overridden = FALSE for(var/obj/effect/meteor/M in GLOB.meteor_list) if(!is_station_level(M.z)) diff --git a/code/_onclick/hud/fullscreen.dm b/code/_onclick/hud/fullscreen.dm index ec6bde573d6b..e93a0a206bd2 100644 --- a/code/_onclick/hud/fullscreen.dm +++ b/code/_onclick/hud/fullscreen.dm @@ -1,5 +1,5 @@ /mob/proc/overlay_fullscreen(category, type, severity) - var/obj/screen/fullscreen/screen = screens[category] + var/atom/movable/screen/fullscreen/screen = screens[category] if(!screen || screen.type != type) // needs to be recreated clear_fullscreen(category, FALSE) @@ -17,7 +17,7 @@ return screen /mob/proc/clear_fullscreen(category, animated = 10) - var/obj/screen/fullscreen/screen = screens[category] + var/atom/movable/screen/fullscreen/screen = screens[category] if(!screen) return @@ -41,7 +41,7 @@ /datum/hud/proc/reload_fullscreen() if(mymob.client) - var/obj/screen/fullscreen/screen + var/atom/movable/screen/fullscreen/screen var/list/screens = mymob.screens for(var/category in screens) screen = screens[category] @@ -51,7 +51,7 @@ else mymob.client.screen -= screen -/obj/screen/fullscreen +/atom/movable/screen/fullscreen icon = 'icons/mob/screen_full.dmi' icon_state = "default" screen_loc = "CENTER-7,CENTER-7" @@ -62,66 +62,66 @@ var/severity = 0 var/show_when_dead = FALSE -/obj/screen/fullscreen/proc/update_for_view(client_view) +/atom/movable/screen/fullscreen/proc/update_for_view(client_view) if(screen_loc == "CENTER-7,CENTER-7" && view != client_view) var/list/actualview = getviewsize(client_view) view = client_view transform = matrix(actualview[1]/FULLSCREEN_OVERLAY_RESOLUTION_X, 0, 0, 0, actualview[2]/FULLSCREEN_OVERLAY_RESOLUTION_Y, 0) -/obj/screen/fullscreen/proc/should_show_to(mob/mymob) +/atom/movable/screen/fullscreen/proc/should_show_to(mob/mymob) if(!show_when_dead && mymob.stat == DEAD) return FALSE return TRUE -/obj/screen/fullscreen/Destroy() +/atom/movable/screen/fullscreen/Destroy() severity = 0 return ..() -/obj/screen/fullscreen/brute +/atom/movable/screen/fullscreen/brute icon_state = "brutedamageoverlay" layer = UI_DAMAGE_LAYER -/obj/screen/fullscreen/oxy +/atom/movable/screen/fullscreen/oxy icon_state = "oxydamageoverlay" layer = UI_DAMAGE_LAYER -/obj/screen/fullscreen/crit +/atom/movable/screen/fullscreen/crit icon_state = "passage" layer = CRIT_LAYER -/obj/screen/fullscreen/blind +/atom/movable/screen/fullscreen/blind icon_state = "blackimageoverlay" layer = BLIND_LAYER -/obj/screen/fullscreen/impaired +/atom/movable/screen/fullscreen/impaired icon_state = "impairedoverlay" -/obj/screen/fullscreen/payback +/atom/movable/screen/fullscreen/payback icon = 'icons/mob/screen_payback.dmi' icon_state = "payback" show_when_dead = TRUE -/obj/screen/fullscreen/fog +/atom/movable/screen/fullscreen/fog icon = 'icons/mob/screen_fog.dmi' icon_state = "fog" color = "#FF0000" -/obj/screen/fullscreen/flash +/atom/movable/screen/fullscreen/flash icon = 'icons/mob/screen_gen.dmi' screen_loc = "WEST,SOUTH to EAST,NORTH" icon_state = "flash" -/obj/screen/fullscreen/flash/noise +/atom/movable/screen/fullscreen/flash/noise icon = 'icons/mob/screen_gen.dmi' screen_loc = "WEST,SOUTH to EAST,NORTH" icon_state = "noise" -/obj/screen/fullscreen/high +/atom/movable/screen/fullscreen/high icon = 'icons/mob/screen_gen.dmi' screen_loc = "WEST,SOUTH to EAST,NORTH" icon_state = "druggy" -/obj/screen/fullscreen/lighting_backdrop +/atom/movable/screen/fullscreen/lighting_backdrop icon = 'icons/mob/screen_gen.dmi' icon_state = "flash" transform = matrix(200, 0, 0, 0, 200, 0) @@ -130,18 +130,18 @@ show_when_dead = TRUE //Provides darkness to the back of the lighting plane -/obj/screen/fullscreen/lighting_backdrop/lit +/atom/movable/screen/fullscreen/lighting_backdrop/lit invisibility = INVISIBILITY_LIGHTING layer = BACKGROUND_LAYER+21 color = "#000" show_when_dead = TRUE //Provides whiteness in case you don't see lights so everything is still visible -/obj/screen/fullscreen/lighting_backdrop/unlit +/atom/movable/screen/fullscreen/lighting_backdrop/unlit layer = BACKGROUND_LAYER+20 show_when_dead = TRUE -/obj/screen/fullscreen/see_through_darkness +/atom/movable/screen/fullscreen/see_through_darkness icon_state = "nightvision" plane = LIGHTING_PLANE layer = LIGHTING_LAYER @@ -149,7 +149,7 @@ show_when_dead = TRUE /// An effect which tracks the cursor's location on the screen -/obj/screen/fullscreen/cursor_catcher +/atom/movable/screen/fullscreen/cursor_catcher icon_state = "fullscreen_blocker" // Fullscreen semi transparent icon plane = HUD_PLANE mouse_opacity = MOUSE_OPACITY_ICON @@ -167,14 +167,14 @@ var/mouse_params /// Links this up with a mob -/obj/screen/fullscreen/cursor_catcher/proc/assign_to_mob(mob/owner) +/atom/movable/screen/fullscreen/cursor_catcher/proc/assign_to_mob(mob/owner) src.owner = owner view_list = getviewsize(owner.client.view) RegisterSignal(owner, COMSIG_MOVABLE_MOVED, PROC_REF(on_move)) calculate_params() /// Update when the mob we're assigned to has moved -/obj/screen/fullscreen/cursor_catcher/proc/on_move(atom/source, atom/oldloc, dir, forced) +/atom/movable/screen/fullscreen/cursor_catcher/proc/on_move(atom/source, atom/oldloc, dir, forced) SIGNAL_HANDLER if(!given_turf) @@ -184,18 +184,18 @@ given_turf = locate(given_turf.x + x_offset, given_turf.y + y_offset, given_turf.z) -/obj/screen/fullscreen/cursor_catcher/MouseEntered(location, control, params) +/atom/movable/screen/fullscreen/cursor_catcher/MouseEntered(location, control, params) . = ..() MouseMove(location, control, params) if(usr == owner) calculate_params() -/obj/screen/fullscreen/cursor_catcher/MouseMove(location, control, params) +/atom/movable/screen/fullscreen/cursor_catcher/MouseMove(location, control, params) if(usr != owner) return mouse_params = params -/obj/screen/fullscreen/cursor_catcher/proc/calculate_params() +/atom/movable/screen/fullscreen/cursor_catcher/proc/calculate_params() var/list/modifiers = params2list(mouse_params) var/icon_x = text2num(LAZYACCESS(modifiers, "vis-x")) if(isnull(icon_x)) diff --git a/code/_onclick/hud/ghost_hud.dm b/code/_onclick/hud/ghost_hud.dm index ac71b9bf51c6..1ea78ca13718 100644 --- a/code/_onclick/hud/ghost_hud.dm +++ b/code/_onclick/hud/ghost_hud.dm @@ -3,47 +3,47 @@ hud_used = new /datum/hud/ghost(src) SEND_SIGNAL(src, COMSIG_MOB_HUD_CREATED) -/obj/screen/ghost +/atom/movable/screen/ghost icon = 'icons/mob/screen_ghost.dmi' -/obj/screen/ghost/MouseEntered() +/atom/movable/screen/ghost/MouseEntered() . = ..() flick(icon_state + "_anim", src) -/obj/screen/ghost/orbit +/atom/movable/screen/ghost/orbit name = "Orbit" icon_state = "orbit" -/obj/screen/ghost/orbit/Click() +/atom/movable/screen/ghost/orbit/Click() var/mob/dead/observer/G = usr G.follow() -/obj/screen/ghost/reenter_corpse +/atom/movable/screen/ghost/reenter_corpse name = "Re-enter corpse" icon_state = "reenter_corpse" -/obj/screen/ghost/reenter_corpse/Click() +/atom/movable/screen/ghost/reenter_corpse/Click() var/mob/dead/observer/G = usr G.reenter_corpse() -/obj/screen/ghost/teleport +/atom/movable/screen/ghost/teleport name = "Teleport" icon_state = "teleport" -/obj/screen/ghost/teleport/Click() +/atom/movable/screen/ghost/teleport/Click() var/mob/dead/observer/G = usr G.dead_tele() -/obj/screen/ghost/respawn_list +/atom/movable/screen/ghost/respawn_list name = "Ghost spawns" icon = 'icons/mob/screen_midnight.dmi' icon_state = "template" -/obj/screen/ghost/respawn_list/Initialize(mapload) +/atom/movable/screen/ghost/respawn_list/Initialize(mapload) . = ..() update_hidden_state() -/obj/screen/ghost/respawn_list/Click() +/atom/movable/screen/ghost/respawn_list/Click() var/client/C = hud.mymob.client hud.inventory_shown = !hud.inventory_shown if(hud.inventory_shown) @@ -52,7 +52,7 @@ C.screen -= hud.toggleable_inventory update_hidden_state() -/obj/screen/ghost/respawn_list/proc/update_hidden_state() +/atom/movable/screen/ghost/respawn_list/proc/update_hidden_state() var/matrix/M = matrix(transform) M.Turn(-90) @@ -61,19 +61,19 @@ img.transform = M overlays += img -/obj/screen/ghost/respawn_mob +/atom/movable/screen/ghost/respawn_mob name = "Mob spawners" icon_state = "mob_spawner" -/obj/screen/ghost/respawn_mob/Click() +/atom/movable/screen/ghost/respawn_mob/Click() var/mob/dead/observer/G = usr G.open_spawners_menu() -/obj/screen/ghost/respawn_pai +/atom/movable/screen/ghost/respawn_pai name = "Configure pAI" icon_state = "pai" -/obj/screen/ghost/respawn_pai/Click() +/atom/movable/screen/ghost/respawn_pai/Click() var/mob/dead/observer/G = usr if(!GLOB.paiController.check_recruit(G)) to_chat(G, "You are not eligible to become a pAI.") @@ -85,34 +85,34 @@ /datum/hud/ghost/New(mob/owner) ..() - var/obj/screen/using + var/atom/movable/screen/using - using = new /obj/screen/ghost/orbit() + using = new /atom/movable/screen/ghost/orbit() using.screen_loc = ui_ghost_orbit static_inventory += using - using = new /obj/screen/ghost/reenter_corpse() + using = new /atom/movable/screen/ghost/reenter_corpse() using.screen_loc = ui_ghost_reenter_corpse static_inventory += using - using = new /obj/screen/ghost/teleport() + using = new /atom/movable/screen/ghost/teleport() using.screen_loc = ui_ghost_teleport static_inventory += using static_inventory += using - using = new /obj/screen/ghost/respawn_list() + using = new /atom/movable/screen/ghost/respawn_list() using.screen_loc = ui_ghost_respawn_list static_inventory += using - using = new /obj/screen/ghost/respawn_mob() + using = new /atom/movable/screen/ghost/respawn_mob() using.screen_loc = ui_ghost_respawn_mob toggleable_inventory += using - using = new /obj/screen/ghost/respawn_pai() + using = new /atom/movable/screen/ghost/respawn_pai() using.screen_loc = ui_ghost_respawn_pai toggleable_inventory += using - for(var/obj/screen/S in (static_inventory + toggleable_inventory)) + for(var/atom/movable/screen/S in (static_inventory + toggleable_inventory)) S.hud = src /datum/hud/ghost/show_hud() diff --git a/code/_onclick/hud/guardian_hud.dm b/code/_onclick/hud/guardian_hud.dm index d00662f0c76d..122b2408c5e5 100644 --- a/code/_onclick/hud/guardian_hud.dm +++ b/code/_onclick/hud/guardian_hud.dm @@ -4,49 +4,49 @@ /datum/hud/guardian/New(mob/owner) ..() - var/obj/screen/using + var/atom/movable/screen/using - guardianhealthdisplay = new /obj/screen/healths/guardian() + guardianhealthdisplay = new /atom/movable/screen/healths/guardian() infodisplay += guardianhealthdisplay - using = new /obj/screen/act_intent/guardian() + using = new /atom/movable/screen/act_intent/guardian() using.icon_state = mymob.a_intent static_inventory += using action_intent = using - using = new /obj/screen/guardian/Manifest() + using = new /atom/movable/screen/guardian/Manifest() using.screen_loc = ui_rhand static_inventory += using - using = new /obj/screen/guardian/Recall() + using = new /atom/movable/screen/guardian/Recall() using.screen_loc = ui_lhand static_inventory += using - using = new /obj/screen/guardian/ToggleMode() + using = new /atom/movable/screen/guardian/ToggleMode() using.screen_loc = ui_storage1 static_inventory += using - using = new /obj/screen/guardian/ToggleLight() + using = new /atom/movable/screen/guardian/ToggleLight() using.screen_loc = ui_inventory static_inventory += using - using = new /obj/screen/guardian/Communicate() + using = new /atom/movable/screen/guardian/Communicate() using.screen_loc = ui_back static_inventory += using //HUD BUTTONS -/obj/screen/guardian +/atom/movable/screen/guardian icon = 'icons/mob/guardian.dmi' icon_state = "base" -/obj/screen/guardian/Manifest +/atom/movable/screen/guardian/Manifest icon_state = "manifest" name = "Manifest" desc = "Spring forth into battle!" -/obj/screen/guardian/Manifest/Click() +/atom/movable/screen/guardian/Manifest/Click() if(isguardian(usr)) var/mob/living/simple_animal/hostile/guardian/G = usr var/summoner_loc = G.summoner.loc @@ -59,43 +59,43 @@ if(G.loc == G.summoner) G.Manifest() -/obj/screen/guardian/Recall +/atom/movable/screen/guardian/Recall icon_state = "recall" name = "Recall" desc = "Return to your user." -/obj/screen/guardian/Recall/Click() +/atom/movable/screen/guardian/Recall/Click() if(isguardian(usr)) var/mob/living/simple_animal/hostile/guardian/G = usr G.Recall() -/obj/screen/guardian/ToggleMode +/atom/movable/screen/guardian/ToggleMode icon_state = "toggle" name = "Toggle Mode" desc = "Switch between ability modes." -/obj/screen/guardian/ToggleMode/Click() +/atom/movable/screen/guardian/ToggleMode/Click() if(isguardian(usr)) var/mob/living/simple_animal/hostile/guardian/G = usr G.ToggleMode() -/obj/screen/guardian/Communicate +/atom/movable/screen/guardian/Communicate icon_state = "communicate" name = "Communicate" desc = "Communicate telepathically with your user." -/obj/screen/guardian/Communicate/Click() +/atom/movable/screen/guardian/Communicate/Click() if(isguardian(usr)) var/mob/living/simple_animal/hostile/guardian/G = usr G.Communicate() -/obj/screen/guardian/ToggleLight +/atom/movable/screen/guardian/ToggleLight icon_state = "light" name = "Toggle Light" desc = "Glow like star dust." -/obj/screen/guardian/ToggleLight/Click() +/atom/movable/screen/guardian/ToggleLight/Click() if(isguardian(usr)) var/mob/living/simple_animal/hostile/guardian/G = usr G.ToggleLight() diff --git a/code/_onclick/hud/hud_datum.dm b/code/_onclick/hud/hud_datum.dm index 4d65d41e8cc2..6cfe661d3acf 100644 --- a/code/_onclick/hud/hud_datum.dm +++ b/code/_onclick/hud/hud_datum.dm @@ -12,36 +12,36 @@ var/inventory_shown = TRUE //the inventory var/hotkey_ui_hidden = FALSE //This is to hide the buttons that can be used via hotkeys. (hotkeybuttons list of buttons) - var/obj/screen/lingchemdisplay - var/obj/screen/lingstingdisplay - - var/obj/screen/guardianhealthdisplay - - var/obj/screen/blobpwrdisplay - var/obj/screen/blobhealthdisplay - var/obj/screen/vampire_blood_display - var/obj/screen/alien_plasma_display - var/obj/screen/nightvisionicon - var/obj/screen/action_intent - var/obj/screen/zone_select - var/obj/screen/move_intent - var/obj/screen/module_store_icon - var/obj/screen/combo/combo_display + var/atom/movable/screen/lingchemdisplay + var/atom/movable/screen/lingstingdisplay + + var/atom/movable/screen/guardianhealthdisplay + + var/atom/movable/screen/blobpwrdisplay + var/atom/movable/screen/blobhealthdisplay + var/atom/movable/screen/vampire_blood_display + var/atom/movable/screen/alien_plasma_display + var/atom/movable/screen/nightvisionicon + var/atom/movable/screen/action_intent + var/atom/movable/screen/zone_select + var/atom/movable/screen/move_intent + var/atom/movable/screen/module_store_icon + var/atom/movable/screen/combo/combo_display var/list/static_inventory = list() //the screen objects which are static var/list/toggleable_inventory = list() //the screen objects which can be hidden var/list/hotkeybuttons = list() //the buttons that can be used via hotkeys var/list/infodisplay = list() //the screen objects that display mob info (health, alien plasma, etc...) - var/list/inv_slots[SLOT_HUD_AMOUNT] // /obj/screen/inventory objects, ordered by their slot ID. + var/list/inv_slots[SLOT_HUD_AMOUNT] // /atom/movable/screen/inventory objects, ordered by their slot ID. - var/obj/screen/movable/action_button/hide_toggle/hide_actions_toggle + var/atom/movable/screen/movable/action_button/hide_toggle/hide_actions_toggle var/action_buttons_hidden = FALSE - var/list/obj/screen/plane_master/plane_masters = list() // see "appearance_flags" in the ref, assoc list of "[plane]" = object + var/list/atom/movable/screen/plane_master/plane_masters = list() // see "appearance_flags" in the ref, assoc list of "[plane]" = object ///Assoc list of controller groups, associated with key string group name with value of the plane master controller ref var/list/atom/movable/plane_master_controller/plane_master_controllers = list() ///UI for screentips that appear when you mouse over things - var/obj/screen/screentip/screentip_text + var/atom/movable/screen/screentip/screentip_text /mob/proc/create_mob_hud() if(client && !hud_used) @@ -53,8 +53,8 @@ hide_actions_toggle = new hide_actions_toggle.InitialiseIcon(mymob) - for(var/mytype in subtypesof(/obj/screen/plane_master)) - var/obj/screen/plane_master/instance = new mytype() + for(var/mytype in subtypesof(/atom/movable/screen/plane_master)) + var/atom/movable/screen/plane_master/instance = new mytype() plane_masters["[instance.plane]"] = instance instance.backdrop(mymob) @@ -181,7 +181,7 @@ /datum/hud/proc/plane_masters_update() // Plane masters are always shown to OUR mob, never to observers for(var/thing in plane_masters) - var/obj/screen/plane_master/PM = plane_masters[thing] + var/atom/movable/screen/plane_master/PM = plane_masters[thing] PM.backdrop(mymob) mymob.client.screen += PM diff --git a/code/_onclick/hud/human_hud.dm b/code/_onclick/hud/human_hud.dm index 1db2fe7cd1c3..67c9e2e66215 100644 --- a/code/_onclick/hud/human_hud.dm +++ b/code/_onclick/hud/human_hud.dm @@ -1,11 +1,11 @@ -/obj/screen/human +/atom/movable/screen/human icon = 'icons/mob/screen_midnight.dmi' -/obj/screen/human/toggle +/atom/movable/screen/human/toggle name = "toggle" icon_state = "toggle" -/obj/screen/human/toggle/Click() +/atom/movable/screen/human/toggle/Click() if(usr.hud_used.inventory_shown) usr.hud_used.inventory_shown = FALSE usr.client.screen -= usr.hud_used.toggleable_inventory @@ -15,28 +15,28 @@ usr.hud_used.hidden_inventory_update() -/obj/screen/human/equip +/atom/movable/screen/human/equip name = "equip" icon_state = "act_equip" -/obj/screen/human/equip/Click() +/atom/movable/screen/human/equip/Click() if(ismecha(usr.loc)) // stops inventory actions in a mech return 1 var/mob/living/carbon/human/H = usr H.quick_equip() -/obj/screen/ling +/atom/movable/screen/ling invisibility = INVISIBILITY_ABSTRACT -/obj/screen/ling/sting +/atom/movable/screen/ling/sting name = "current sting" screen_loc = ui_lingstingdisplay -/obj/screen/ling/sting/Click() +/atom/movable/screen/ling/sting/Click() var/datum/antagonist/changeling/cling = usr.mind.has_antag_datum(/datum/antagonist/changeling) cling?.chosen_sting?.unset_sting() -/obj/screen/ling/chems +/atom/movable/screen/ling/chems name = "chemical storage" icon_state = "power_display" screen_loc = ui_lingchemdisplay @@ -58,32 +58,32 @@ /datum/hud/human/New(mob/living/carbon/human/owner, ui_style = 'icons/mob/screen_white.dmi', ui_color = "#ffffff", ui_alpha = 255) ..() - owner.overlay_fullscreen("see_through_darkness", /obj/screen/fullscreen/see_through_darkness) + owner.overlay_fullscreen("see_through_darkness", /atom/movable/screen/fullscreen/see_through_darkness) - var/obj/screen/using - var/obj/screen/inventory/inv_box + var/atom/movable/screen/using + var/atom/movable/screen/inventory/inv_box hud_alpha = ui_alpha - using = new /obj/screen/craft + using = new /atom/movable/screen/craft using.icon = ui_style using.color = ui_color using.alpha = ui_alpha static_inventory += using - using = new /obj/screen/language_menu + using = new /atom/movable/screen/language_menu using.icon = ui_style using.color = ui_color using.alpha = ui_alpha static_inventory += using - using = new /obj/screen/act_intent() + using = new /atom/movable/screen/act_intent() using.icon_state = mymob.a_intent using.alpha = ui_alpha static_inventory += using action_intent = using - using = new /obj/screen/mov_intent() + using = new /atom/movable/screen/mov_intent() using.icon = ui_style using.icon_state = (mymob.m_intent == MOVE_INTENT_RUN ? "running" : "walking") using.screen_loc = ui_movi @@ -92,14 +92,14 @@ static_inventory += using move_intent = using - using = new /obj/screen/drop() + using = new /atom/movable/screen/drop() using.icon = ui_style using.screen_loc = ui_drop_throw using.color = ui_color using.alpha = ui_alpha static_inventory += using - inv_box = new /obj/screen/inventory() + inv_box = new /atom/movable/screen/inventory() inv_box.name = "i_clothing" inv_box.icon = ui_style inv_box.slot_id = SLOT_HUD_JUMPSUIT @@ -109,7 +109,7 @@ inv_box.alpha = ui_alpha toggleable_inventory += inv_box - inv_box = new /obj/screen/inventory() + inv_box = new /atom/movable/screen/inventory() inv_box.name = "o_clothing" inv_box.icon = ui_style inv_box.slot_id = SLOT_HUD_OUTER_SUIT @@ -119,7 +119,7 @@ inv_box.alpha = ui_alpha toggleable_inventory += inv_box - inv_box = new /obj/screen/inventory/hand() + inv_box = new /atom/movable/screen/inventory/hand() inv_box.name = "r_hand" inv_box.icon = ui_style inv_box.icon_state = "hand_r" @@ -129,7 +129,7 @@ inv_box.slot_id = SLOT_HUD_RIGHT_HAND static_inventory += inv_box - inv_box = new /obj/screen/inventory/hand() + inv_box = new /atom/movable/screen/inventory/hand() inv_box.name = "l_hand" inv_box.icon = ui_style inv_box.icon_state = "hand_l" @@ -139,7 +139,7 @@ inv_box.slot_id = SLOT_HUD_LEFT_HAND static_inventory += inv_box - using = new /obj/screen/swap_hand() + using = new /atom/movable/screen/swap_hand() using.name = "hand" using.icon = ui_style using.icon_state = "swap_1" @@ -148,7 +148,7 @@ using.alpha = ui_alpha static_inventory += using - using = new /obj/screen/swap_hand() + using = new /atom/movable/screen/swap_hand() using.name = "hand" using.icon = ui_style using.icon_state = "swap_2" @@ -157,7 +157,7 @@ using.alpha = ui_alpha static_inventory += using - inv_box = new /obj/screen/inventory() + inv_box = new /atom/movable/screen/inventory() inv_box.name = "id" inv_box.icon = ui_style inv_box.icon_state = "id" @@ -167,7 +167,7 @@ inv_box.alpha = ui_alpha static_inventory += inv_box - inv_box = new /obj/screen/inventory() + inv_box = new /atom/movable/screen/inventory() inv_box.name = "pda" inv_box.icon = ui_style inv_box.icon_state = "pda" @@ -177,7 +177,7 @@ inv_box.alpha = ui_alpha static_inventory += inv_box - inv_box = new /obj/screen/inventory() + inv_box = new /atom/movable/screen/inventory() inv_box.name = "mask" inv_box.icon = ui_style inv_box.icon_state = "mask" @@ -187,7 +187,7 @@ inv_box.alpha = ui_alpha toggleable_inventory += inv_box - inv_box = new /obj/screen/inventory() + inv_box = new /atom/movable/screen/inventory() inv_box.name = "back" inv_box.icon = ui_style inv_box.icon_state = "back" @@ -197,7 +197,7 @@ inv_box.alpha = ui_alpha static_inventory += inv_box - inv_box = new /obj/screen/inventory() + inv_box = new /atom/movable/screen/inventory() inv_box.name = "storage1" inv_box.icon = ui_style inv_box.icon_state = "pocket" @@ -207,7 +207,7 @@ inv_box.alpha = ui_alpha static_inventory += inv_box - inv_box = new /obj/screen/inventory() + inv_box = new /atom/movable/screen/inventory() inv_box.name = "storage2" inv_box.icon = ui_style inv_box.icon_state = "pocket" @@ -217,7 +217,7 @@ inv_box.alpha = ui_alpha static_inventory += inv_box - inv_box = new /obj/screen/inventory() + inv_box = new /atom/movable/screen/inventory() inv_box.name = "suit storage" inv_box.icon = ui_style inv_box.icon_state = "suit_storage" @@ -227,28 +227,28 @@ inv_box.slot_id = SLOT_HUD_SUIT_STORE static_inventory += inv_box - using = new /obj/screen/resist() + using = new /atom/movable/screen/resist() using.icon = ui_style using.color = ui_color using.alpha = ui_alpha using.screen_loc = ui_pull_resist hotkeybuttons += using - using = new /obj/screen/human/toggle() + using = new /atom/movable/screen/human/toggle() using.icon = ui_style using.color = ui_color using.alpha = ui_alpha using.screen_loc = ui_inventory static_inventory += using - using = new /obj/screen/human/equip() + using = new /atom/movable/screen/human/equip() using.icon = ui_style using.color = ui_color using.alpha = ui_alpha using.screen_loc = ui_equip static_inventory += using - inv_box = new /obj/screen/inventory() + inv_box = new /atom/movable/screen/inventory() inv_box.name = "gloves" inv_box.icon = ui_style inv_box.icon_state = "gloves" @@ -258,7 +258,7 @@ inv_box.alpha = ui_alpha toggleable_inventory += inv_box - inv_box = new /obj/screen/inventory() + inv_box = new /atom/movable/screen/inventory() inv_box.name = "eyes" inv_box.icon = ui_style inv_box.icon_state = "glasses" @@ -268,7 +268,7 @@ inv_box.alpha = ui_alpha toggleable_inventory += inv_box - inv_box = new /obj/screen/inventory() + inv_box = new /atom/movable/screen/inventory() inv_box.name = "l_ear" inv_box.icon = ui_style inv_box.icon_state = "ears" @@ -278,7 +278,7 @@ inv_box.alpha = ui_alpha toggleable_inventory += inv_box - inv_box = new /obj/screen/inventory() + inv_box = new /atom/movable/screen/inventory() inv_box.name = "r_ear" inv_box.icon = ui_style inv_box.icon_state = "ears" @@ -288,7 +288,7 @@ inv_box.alpha = ui_alpha toggleable_inventory += inv_box - inv_box = new /obj/screen/inventory() + inv_box = new /atom/movable/screen/inventory() inv_box.name = "head" inv_box.icon = ui_style inv_box.icon_state = "head" @@ -298,7 +298,7 @@ inv_box.alpha = ui_alpha toggleable_inventory += inv_box - inv_box = new /obj/screen/inventory() + inv_box = new /atom/movable/screen/inventory() inv_box.name = "shoes" inv_box.icon = ui_style inv_box.icon_state = "shoes" @@ -308,7 +308,7 @@ inv_box.alpha = ui_alpha toggleable_inventory += inv_box - inv_box = new /obj/screen/inventory() + inv_box = new /atom/movable/screen/inventory() inv_box.name = "belt" inv_box.icon = ui_style inv_box.icon_state = "belt" @@ -318,33 +318,33 @@ inv_box.alpha = ui_alpha static_inventory += inv_box - mymob.throw_icon = new /obj/screen/throw_catch() + mymob.throw_icon = new /atom/movable/screen/throw_catch() mymob.throw_icon.icon = ui_style mymob.throw_icon.screen_loc = ui_drop_throw mymob.throw_icon.color = ui_color mymob.throw_icon.alpha = ui_alpha hotkeybuttons += mymob.throw_icon - mymob.healths = new /obj/screen/healths() + mymob.healths = new /atom/movable/screen/healths() infodisplay += mymob.healths mymob.healthdoll = new() infodisplay += mymob.healthdoll - mymob.pullin = new /obj/screen/pull() + mymob.pullin = new /atom/movable/screen/pull() mymob.pullin.icon = ui_style mymob.pullin.hud = src mymob.pullin.update_icon(UPDATE_ICON_STATE) mymob.pullin.screen_loc = ui_pull_resist static_inventory += mymob.pullin - lingchemdisplay = new /obj/screen/ling/chems() + lingchemdisplay = new /atom/movable/screen/ling/chems() infodisplay += lingchemdisplay - lingstingdisplay = new /obj/screen/ling/sting() + lingstingdisplay = new /atom/movable/screen/ling/sting() infodisplay += lingstingdisplay - zone_select = new /obj/screen/zone_sel() + zone_select = new /atom/movable/screen/zone_sel() zone_select.color = ui_color zone_select.icon = ui_style zone_select.alpha = ui_alpha @@ -357,7 +357,7 @@ combo_display = new() infodisplay += combo_display - for(var/obj/screen/inventory/inv in (static_inventory + toggleable_inventory)) + for(var/atom/movable/screen/inventory/inv in (static_inventory + toggleable_inventory)) if(inv.slot_id) inv.hud = src inv_slots[inv.slot_id] = inv @@ -372,13 +372,13 @@ if(!istype(H) || !H.dna.species) return var/datum/species/S = H.dna.species - for(var/obj/screen/inventory/inv in (static_inventory + toggleable_inventory)) + for(var/atom/movable/screen/inventory/inv in (static_inventory + toggleable_inventory)) if(inv.slot_id) if(inv.slot_id in S.no_equip) inv.alpha = hud_alpha / 2 else inv.alpha = hud_alpha - for(var/obj/screen/craft/crafting in static_inventory) + for(var/atom/movable/screen/craft/crafting in static_inventory) if(!S.can_craft) crafting.invisibility = INVISIBILITY_ABSTRACT H.handcrafting?.close(H) diff --git a/code/_onclick/hud/map_popups.dm b/code/_onclick/hud/map_popups.dm index dc9e255cba93..fc12fae313e3 100644 --- a/code/_onclick/hud/map_popups.dm +++ b/code/_onclick/hud/map_popups.dm @@ -3,30 +3,15 @@ * Assoc list with all the active maps - when a screen obj is added to * a map, it's put in here as well. * - * Format: list( = list(/obj/screen)) + * Format: list( = list(/atom/movable/screen)) */ var/list/screen_maps = list() -/obj/screen - /** - * Map name assigned to this object. - * Automatically set by /client/proc/add_obj_to_map. - */ - var/assigned_map - /** - * Mark this object as garbage-collectible after you clean the map - * it was registered on. - * - * This could probably be changed to be a proc, for conditional removal. - * But for now, this works. - */ - var/del_on_map_removal = TRUE - /** * A screen object, which acts as a container for turfs and other things * you want to show on the map, which you usually attach to "vis_contents". */ -/obj/screen/map_view +/atom/movable/screen/map_view // Map view has to be on the lowest plane to enable proper lighting layer = GAME_PLANE plane = GAME_PLANE @@ -36,7 +21,7 @@ * It is also implicitly used to allocate a rectangle on the map, which will * be used for auto-scaling the map. */ -/obj/screen/background +/atom/movable/screen/background name = "background" icon = 'icons/mob/map_backgrounds.dmi' icon_state = "clear" @@ -49,7 +34,7 @@ * * If applicable, "assigned_map" has to be assigned before this proc call. */ -/obj/screen/proc/set_position(x, y, px = 0, py = 0) +/atom/movable/screen/proc/set_position(x, y, px = 0, py = 0) if(assigned_map) screen_loc = "[assigned_map]:[x]:[px],[y]:[py]" else @@ -60,7 +45,7 @@ * * If applicable, "assigned_map" has to be assigned before this proc call. */ -/obj/screen/proc/fill_rect(x1, y1, x2, y2) +/atom/movable/screen/proc/fill_rect(x1, y1, x2, y2) if(assigned_map) screen_loc = "[assigned_map]:[x1],[y1] to [x2],[y2]" else @@ -70,7 +55,7 @@ * Registers screen obj with the client, which makes it visible on the * assigned map, and becomes a part of the assigned map's lifecycle. */ -/client/proc/register_map_obj(obj/screen/screen_obj) +/client/proc/register_map_obj(atom/movable/screen/screen_obj) if(!screen_obj.assigned_map) CRASH("Can't register [screen_obj] without 'assigned_map' property.") if(!screen_maps[screen_obj.assigned_map]) @@ -92,7 +77,7 @@ /client/proc/clear_map(map_name) if(!map_name || !(map_name in screen_maps)) return FALSE - for(var/obj/screen/screen_obj in screen_maps[map_name]) + for(var/atom/movable/screen/screen_obj in screen_maps[map_name]) screen_maps[map_name] -= screen_obj if(screen_obj.del_on_map_removal) qdel(screen_obj) @@ -146,7 +131,7 @@ var/y_value = world.icon_size * tilesize * height var/map_name = create_popup(popup_name, x_value, y_value) - var/obj/screen/background/background = new + var/atom/movable/screen/background/background = new background.assigned_map = map_name background.fill_rect(1, 1, width, height) if(bg_icon) diff --git a/code/_onclick/hud/movable_screen_objects.dm b/code/_onclick/hud/movable_screen_objects.dm index 366931cea333..f43effee417d 100644 --- a/code/_onclick/hud/movable_screen_objects.dm +++ b/code/_onclick/hud/movable_screen_objects.dm @@ -8,7 +8,7 @@ //Movable Screen Object //Not tied to the grid, places it's center where the cursor is -/obj/screen/movable +/atom/movable/screen/movable var/snap2grid = FALSE var/moved = FALSE var/locked = TRUE @@ -18,10 +18,10 @@ //Snap Screen Object //Tied to the grid, snaps to the nearest turf -/obj/screen/movable/snap +/atom/movable/screen/movable/snap snap2grid = TRUE -/obj/screen/movable/MouseDrop(over_object, src_location, over_location, src_control, over_control, params) +/atom/movable/screen/movable/MouseDrop(over_object, src_location, over_location, src_control, over_control, params) if(locked) //no! I am locked! begone! return @@ -55,7 +55,7 @@ set category = "Debug" set name = "Spawn Movable UI Object" - var/obj/screen/movable/M = new() + var/atom/movable/screen/movable/M = new() M.name = "Movable UI Object" M.icon_state = "block" M.maptext = "Movable" @@ -73,7 +73,7 @@ set category = "Debug" set name = "Spawn Snap UI Object" - var/obj/screen/movable/snap/S = new() + var/atom/movable/screen/movable/snap/S = new() S.name = "Snap UI Object" S.icon_state = "block" S.maptext = "Snap" diff --git a/code/_onclick/hud/other_mobs_hud.dm b/code/_onclick/hud/other_mobs_hud.dm index 0472a34dbef6..8e87c837df20 100644 --- a/code/_onclick/hud/other_mobs_hud.dm +++ b/code/_onclick/hud/other_mobs_hud.dm @@ -4,11 +4,11 @@ /datum/hud/simple_animal/New(mob/user) ..() - mymob.healths = new /obj/screen/healths() + mymob.healths = new /atom/movable/screen/healths() infodisplay += mymob.healths - var/obj/screen/using - using = new /obj/screen/act_intent/simple_animal() + var/atom/movable/screen/using + using = new /atom/movable/screen/act_intent/simple_animal() using.icon_state = mymob.a_intent static_inventory += using action_intent = using @@ -21,10 +21,10 @@ /datum/hud/corgi/New(mob/user) ..() - mymob.healths = new /obj/screen/healths/corgi() + mymob.healths = new /atom/movable/screen/healths/corgi() infodisplay += mymob.healths - mymob.pullin = new /obj/screen/pull() + mymob.pullin = new /atom/movable/screen/pull() mymob.pullin.icon = 'icons/mob/screen_corgi.dmi' mymob.pullin.hud = src mymob.pullin.update_icon(UPDATE_ICON_STATE) diff --git a/code/_onclick/hud/parallax.dm b/code/_onclick/hud/parallax.dm index 75b34cfa1d3b..572538a1ab32 100644 --- a/code/_onclick/hud/parallax.dm +++ b/code/_onclick/hud/parallax.dm @@ -1,7 +1,7 @@ /client var/list/parallax_layers var/list/parallax_layers_cached - var/static/list/parallax_static_layers_tail = newlist(/obj/screen/parallax_pmaster, /obj/screen/parallax_space_whitifier) + var/static/list/parallax_static_layers_tail = newlist(/atom/movable/screen/parallax_pmaster, /atom/movable/screen/parallax_space_whitifier) var/atom/movable/movingmob var/turf/previous_turf var/dont_animate_parallax //world.time of when we can state animate()ing parallax again @@ -16,7 +16,7 @@ if(!apply_parallax_pref()) return // this is needed so it blends properly with the space plane and blackness plane. - var/obj/screen/plane_master/space/S = plane_masters["[PLANE_SPACE]"] + var/atom/movable/screen/plane_master/space/S = plane_masters["[PLANE_SPACE]"] if(C.prefs.toggles2 & PREFTOGGLE_2_PARALLAX_IN_DARKNESS) S.color = rgb(0, 0, 0, 0) else @@ -27,16 +27,16 @@ S.appearance_flags |= NO_CLIENT_COLOR if(!length(C.parallax_layers_cached)) C.parallax_layers_cached = list() - C.parallax_layers_cached += new /obj/screen/parallax_layer/layer_1(null, C.view) - C.parallax_layers_cached += new /obj/screen/parallax_layer/layer_2(null, C.view) - C.parallax_layers_cached += new /obj/screen/parallax_layer/planet(null, C.view) + C.parallax_layers_cached += new /atom/movable/screen/parallax_layer/layer_1(null, C.view) + C.parallax_layers_cached += new /atom/movable/screen/parallax_layer/layer_2(null, C.view) + C.parallax_layers_cached += new /atom/movable/screen/parallax_layer/planet(null, C.view) if(SSparallax.random_layer) C.parallax_layers_cached += new SSparallax.random_layer - C.parallax_layers_cached += new /obj/screen/parallax_layer/layer_3(null, C.view) + C.parallax_layers_cached += new /atom/movable/screen/parallax_layer/layer_3(null, C.view) C.parallax_layers = C.parallax_layers_cached.Copy() - var/obj/screen/plane_master/parallax/parallax_plane_master = plane_masters["[PLANE_SPACE_PARALLAX]"] + var/atom/movable/screen/plane_master/parallax/parallax_plane_master = plane_masters["[PLANE_SPACE_PARALLAX]"] if(C.prefs.toggles2 & PREFTOGGLE_2_PARALLAX_IN_DARKNESS) parallax_plane_master.blend_mode = BLEND_ADD else @@ -51,7 +51,7 @@ var/client/C = mymob.client C.screen -= (C.parallax_layers_cached + C.parallax_static_layers_tail) C.parallax_layers = null - var/obj/screen/plane_master/space/S = plane_masters["[PLANE_SPACE]"] + var/atom/movable/screen/plane_master/space/S = plane_masters["[PLANE_SPACE]"] S.color = null S.appearance_flags &= ~NO_CLIENT_COLOR @@ -101,7 +101,7 @@ if(!new_parallax_movedir) var/animate_time = 0 for(var/thing in C.parallax_layers) - var/obj/screen/parallax_layer/L = thing + var/atom/movable/screen/parallax_layer/L = thing L.icon_state = initial(L.icon_state) L.update_o(C.view) var/T = PARALLAX_LOOP_TIME / L.speed @@ -123,7 +123,7 @@ var/shortesttimer for(var/thing in C.parallax_layers) - var/obj/screen/parallax_layer/L = thing + var/atom/movable/screen/parallax_layer/L = thing var/T = PARALLAX_LOOP_TIME / L.speed if(isnull(shortesttimer)) @@ -148,7 +148,7 @@ /datum/hud/proc/update_parallax_motionblur(client/C, animatedir, new_parallax_movedir, matrix/newtransform) C.parallax_animate_timer = FALSE for(var/thing in C.parallax_layers) - var/obj/screen/parallax_layer/L = thing + var/atom/movable/screen/parallax_layer/L = thing if(!new_parallax_movedir) animate(L) continue @@ -206,7 +206,7 @@ C.last_parallax_shift = world.time for(var/thing in C.parallax_layers) - var/obj/screen/parallax_layer/L = thing + var/atom/movable/screen/parallax_layer/L = thing L.update_status(mymob) if(L.view_sized != C.view) L.update_o(C.view) @@ -236,7 +236,7 @@ if(M && M.client && M.hud_used && length(M.client.parallax_layers)) M.hud_used.update_parallax() -/obj/screen/parallax_layer +/atom/movable/screen/parallax_layer icon = 'icons/effects/parallax.dmi' var/speed = 1 var/offset_x = 0 @@ -249,13 +249,13 @@ mouse_opacity = 0 -/obj/screen/parallax_layer/New(view) +/atom/movable/screen/parallax_layer/New(view) ..() if(!view) view = world.view update_o(view) -/obj/screen/parallax_layer/proc/update_o(view) +/atom/movable/screen/parallax_layer/proc/update_o(view) if(!view) view = world.view @@ -278,70 +278,70 @@ // Cache this view_sized = view -/obj/screen/parallax_layer/proc/update_status(mob/M) +/atom/movable/screen/parallax_layer/proc/update_status(mob/M) return -/obj/screen/parallax_layer/layer_1 +/atom/movable/screen/parallax_layer/layer_1 icon_state = "layer1" speed = 0.6 layer = 1 -/obj/screen/parallax_layer/layer_2 +/atom/movable/screen/parallax_layer/layer_2 icon_state = "layer2" speed = 1 layer = 2 -/obj/screen/parallax_layer/layer_3 +/atom/movable/screen/parallax_layer/layer_3 icon_state = "layer3" speed = 1.4 layer = 3 -/obj/screen/parallax_layer/random +/atom/movable/screen/parallax_layer/random blend_mode = BLEND_OVERLAY speed = 3 layer = 3 -/obj/screen/parallax_layer/random/space_gas +/atom/movable/screen/parallax_layer/random/space_gas icon_state = "space_gas" -/obj/screen/parallax_layer/random/space_gas/New(view) +/atom/movable/screen/parallax_layer/random/space_gas/New(view) ..() add_atom_colour(SSparallax.random_parallax_color, ADMIN_COLOUR_PRIORITY) -/obj/screen/parallax_layer/random/asteroids +/atom/movable/screen/parallax_layer/random/asteroids icon_state = "asteroids" layer = 4 -/obj/screen/parallax_layer/planet +/atom/movable/screen/parallax_layer/planet icon_state = "planet_lava" blend_mode = BLEND_OVERLAY absolute = TRUE //Status of seperation speed = 3 layer = 30 -/obj/screen/parallax_layer/planet/Initialize(mapload) +/atom/movable/screen/parallax_layer/planet/Initialize(mapload) . = ..() if(SSmapping.lavaland_theme?.planet_icon_state) icon_state = SSmapping.lavaland_theme.planet_icon_state -/obj/screen/parallax_layer/planet/update_status(mob/M) +/atom/movable/screen/parallax_layer/planet/update_status(mob/M) var/turf/T = get_turf(M) if(is_station_level(T.z)) invisibility = 0 else invisibility = INVISIBILITY_ABSTRACT -/obj/screen/parallax_layer/planet/update_o() +/atom/movable/screen/parallax_layer/planet/update_o() return //Shit wont move -/obj/screen/parallax_pmaster +/atom/movable/screen/parallax_pmaster appearance_flags = PLANE_MASTER plane = PLANE_SPACE_PARALLAX blend_mode = BLEND_MULTIPLY mouse_opacity = FALSE screen_loc = "CENTER-7,CENTER-7" -/obj/screen/parallax_space_whitifier +/atom/movable/screen/parallax_space_whitifier appearance_flags = PLANE_MASTER plane = PLANE_SPACE color = list( diff --git a/code/_onclick/hud/picture_in_picture.dm b/code/_onclick/hud/picture_in_picture.dm index eda0cc5640d6..aae4ce37001c 100644 --- a/code/_onclick/hud/picture_in_picture.dm +++ b/code/_onclick/hud/picture_in_picture.dm @@ -1,4 +1,4 @@ -/obj/screen/movable/pic_in_pic +/atom/movable/screen/movable/pic_in_pic name = "Picture-in-picture" screen_loc = "CENTER" plane = FLOOR_PLANE @@ -7,18 +7,18 @@ var/height = 0 var/list/shown_to = list() var/list/viewing_turfs = list() - var/obj/screen/component_button/button_x - var/obj/screen/component_button/button_expand - var/obj/screen/component_button/button_shrink + var/atom/movable/screen/component_button/button_x + var/atom/movable/screen/component_button/button_expand + var/atom/movable/screen/component_button/button_shrink var/mutable_appearance/standard_background var/const/max_dimensions = 10 -/obj/screen/movable/pic_in_pic/Initialize() +/atom/movable/screen/movable/pic_in_pic/Initialize() . = ..() make_backgrounds() -/obj/screen/movable/pic_in_pic/Destroy() +/atom/movable/screen/movable/pic_in_pic/Destroy() for(var/C in shown_to) unshow_to(C) QDEL_NULL(button_x) @@ -26,7 +26,7 @@ QDEL_NULL(button_expand) return ..() -/obj/screen/movable/pic_in_pic/component_click(obj/screen/component_button/component, params) +/atom/movable/screen/movable/pic_in_pic/component_click(atom/movable/screen/component_button/component, params) if(component == button_x) qdel(src) else if(component == button_expand) @@ -34,13 +34,13 @@ else if(component == button_shrink) set_view_size(width-1, height-1) -/obj/screen/movable/pic_in_pic/proc/make_backgrounds() +/atom/movable/screen/movable/pic_in_pic/proc/make_backgrounds() standard_background = new /mutable_appearance() standard_background.icon = 'icons/misc/pic_in_pic.dmi' standard_background.icon_state = "background" standard_background.layer = SPACE_LAYER -/obj/screen/movable/pic_in_pic/proc/add_buttons() +/atom/movable/screen/movable/pic_in_pic/proc/add_buttons() var/static/mutable_appearance/move_tab if(!move_tab) move_tab = new /mutable_appearance() @@ -55,7 +55,7 @@ overlays += move_tab if(!button_x) - button_x = new /obj/screen/component_button(null, src) + button_x = new /atom/movable/screen/component_button(null, src) var/mutable_appearance/MA = new /mutable_appearance() MA.name = "close" MA.icon = 'icons/misc/pic_in_pic.dmi' @@ -68,7 +68,7 @@ vis_contents += button_x if(!button_expand) - button_expand = new /obj/screen/component_button(null, src) + button_expand = new /atom/movable/screen/component_button(null, src) var/mutable_appearance/MA = new /mutable_appearance() MA.name = "expand" MA.icon = 'icons/misc/pic_in_pic.dmi' @@ -81,7 +81,7 @@ vis_contents += button_expand if(!button_shrink) - button_shrink = new /obj/screen/component_button(null, src) + button_shrink = new /atom/movable/screen/component_button(null, src) var/mutable_appearance/MA = new /mutable_appearance() MA.name = "shrink" MA.icon = 'icons/misc/pic_in_pic.dmi' @@ -93,7 +93,7 @@ button_shrink.transform = M vis_contents += button_shrink -/obj/screen/movable/pic_in_pic/proc/add_background() +/atom/movable/screen/movable/pic_in_pic/proc/add_background() if((width > 0) && (height > 0)) var/matrix/M = matrix() M.Scale(width + 0.5, height + 0.5) @@ -101,7 +101,7 @@ standard_background.transform = M overlays += standard_background -/obj/screen/movable/pic_in_pic/proc/set_view_size(width, height, do_refresh = TRUE) +/atom/movable/screen/movable/pic_in_pic/proc/set_view_size(width, height, do_refresh = TRUE) width = clamp(width, 0, max_dimensions) height = clamp(height, 0, max_dimensions) src.width = width @@ -115,12 +115,12 @@ if(do_refresh) refresh_view() -/obj/screen/movable/pic_in_pic/proc/set_view_center(atom/target, do_refresh = TRUE) +/atom/movable/screen/movable/pic_in_pic/proc/set_view_center(atom/target, do_refresh = TRUE) center = target if(do_refresh) refresh_view() -/obj/screen/movable/pic_in_pic/proc/refresh_view() +/atom/movable/screen/movable/pic_in_pic/proc/refresh_view() vis_contents -= viewing_turfs if(!width || !height) return @@ -133,12 +133,12 @@ vis_contents += viewing_turfs -/obj/screen/movable/pic_in_pic/proc/show_to(client/C) +/atom/movable/screen/movable/pic_in_pic/proc/show_to(client/C) if(C) shown_to[C] = 1 C.screen += src -/obj/screen/movable/pic_in_pic/proc/unshow_to(client/C) +/atom/movable/screen/movable/pic_in_pic/proc/unshow_to(client/C) if(C) shown_to -= C C.screen -= src diff --git a/code/_onclick/hud/plane_master.dm b/code/_onclick/hud/plane_master.dm index 8a59bb69275d..d9da09946af9 100644 --- a/code/_onclick/hud/plane_master.dm +++ b/code/_onclick/hud/plane_master.dm @@ -1,4 +1,4 @@ -/obj/screen/plane_master +/atom/movable/screen/plane_master screen_loc = "CENTER" icon_state = "blank" appearance_flags = PLANE_MASTER|NO_CLIENT_COLOR @@ -6,58 +6,58 @@ var/show_alpha = 255 var/hide_alpha = 0 -/obj/screen/plane_master/proc/Show(override) +/atom/movable/screen/plane_master/proc/Show(override) alpha = override || show_alpha -/obj/screen/plane_master/proc/Hide(override) +/atom/movable/screen/plane_master/proc/Hide(override) alpha = override || hide_alpha //Why do plane masters need a backdrop sometimes? Read http://www.byond.com/forum/?post=2141928 //Trust me, you need one. Period. If you don't think you do, you're doing something extremely wrong. -/obj/screen/plane_master/proc/backdrop(mob/mymob) +/atom/movable/screen/plane_master/proc/backdrop(mob/mymob) addtimer(CALLBACK(src, TYPE_PROC_REF(/atom, add_filter), "displace", 1, displacement_map_filter(render_source = GRAVITY_PULSE_RENDER_TARGET, size = 10)), 2 SECONDS)//Why a timer vs just apply on initialize / async? I don't know. It just can't be, neither works correctly. Don't lower below 2 seconds unless you can see effects through walls with no issue. -/obj/screen/plane_master/floor +/atom/movable/screen/plane_master/floor name = "floor plane master" plane = FLOOR_PLANE appearance_flags = PLANE_MASTER blend_mode = BLEND_OVERLAY -/obj/screen/plane_master/game_world +/atom/movable/screen/plane_master/game_world name = "game world plane master" plane = GAME_PLANE appearance_flags = PLANE_MASTER blend_mode = BLEND_OVERLAY -/obj/screen/plane_master/game_world/backdrop(mob/mymob) +/atom/movable/screen/plane_master/game_world/backdrop(mob/mymob) . = ..() //if you delete it so help me god clear_filters() if(istype(mymob) && mymob.client && mymob.client.prefs && (mymob.client.prefs.toggles & PREFTOGGLE_AMBIENT_OCCLUSION)) add_filter("AO", 1, drop_shadow_filter(x = 0, y = -2, size = 4, color = "#04080FAA")) -/obj/screen/plane_master/lighting +/atom/movable/screen/plane_master/lighting name = "lighting plane master" plane = LIGHTING_PLANE appearance_flags = PLANE_MASTER blend_mode = BLEND_MULTIPLY mouse_opacity = MOUSE_OPACITY_TRANSPARENT -/obj/screen/plane_master/lighting/backdrop(mob/mymob) +/atom/movable/screen/plane_master/lighting/backdrop(mob/mymob) . = ..() - mymob.overlay_fullscreen("lighting_backdrop_lit", /obj/screen/fullscreen/lighting_backdrop/lit) - mymob.overlay_fullscreen("lighting_backdrop_unlit", /obj/screen/fullscreen/lighting_backdrop/unlit) + mymob.overlay_fullscreen("lighting_backdrop_lit", /atom/movable/screen/fullscreen/lighting_backdrop/lit) + mymob.overlay_fullscreen("lighting_backdrop_unlit", /atom/movable/screen/fullscreen/lighting_backdrop/unlit) -/obj/screen/plane_master/lighting/Initialize() +/atom/movable/screen/plane_master/lighting/Initialize() . = ..() add_filter("emissives", 1, alpha_mask_filter(render_source = EMISSIVE_RENDER_TARGET, flags = MASK_INVERSE)) -/obj/screen/plane_master/point +/atom/movable/screen/plane_master/point name = "point plane master" plane = POINT_PLANE appearance_flags = PLANE_MASTER //should use client color blend_mode = BLEND_OVERLAY -/obj/screen/plane_master/point/backdrop(mob/mymob) +/atom/movable/screen/plane_master/point/backdrop(mob/mymob) if(istype(mymob) && mymob.client && mymob.client.prefs) alpha = (mymob.client.prefs.toggles2 & PREFTOGGLE_2_THOUGHT_BUBBLE) ? 255 : 0 @@ -67,29 +67,29 @@ * Gets masked by blocking plane. Use for things that you want blocked by * mobs, items, etc. */ -/obj/screen/plane_master/emissive +/atom/movable/screen/plane_master/emissive name = "emissive plane master" plane = EMISSIVE_PLANE mouse_opacity = MOUSE_OPACITY_TRANSPARENT render_target = EMISSIVE_RENDER_TARGET -/obj/screen/plane_master/emissive/Initialize() +/atom/movable/screen/plane_master/emissive/Initialize() . = ..() add_filter("em_block_masking", 1, color_matrix_filter(GLOB.em_mask_matrix)) -/obj/screen/plane_master/space +/atom/movable/screen/plane_master/space name = "space plane master" plane = PLANE_SPACE appearance_flags = PLANE_MASTER blend_mode = BLEND_OVERLAY -/obj/screen/plane_master/parallax +/atom/movable/screen/plane_master/parallax name = "parallax plane master" plane = PLANE_SPACE_PARALLAX appearance_flags = PLANE_MASTER blend_mode = BLEND_MULTIPLY -/obj/screen/plane_master/blackness +/atom/movable/screen/plane_master/blackness name = "blackness plane master" plane = BLACKNESS_PLANE mouse_opacity = MOUSE_OPACITY_TRANSPARENT @@ -97,7 +97,7 @@ blend_mode = BLEND_ADD appearance_flags = PLANE_MASTER | NO_CLIENT_COLOR | PIXEL_SCALE -/obj/screen/plane_master/gravpulse +/atom/movable/screen/plane_master/gravpulse name = "gravpulse plane" mouse_opacity = MOUSE_OPACITY_TRANSPARENT plane = GRAVITY_PULSE_PLANE diff --git a/code/_onclick/hud/plane_master_controller.dm b/code/_onclick/hud/plane_master_controller.dm index aa67ed351724..c5bbbb743d28 100644 --- a/code/_onclick/hud/plane_master_controller.dm +++ b/code/_onclick/hud/plane_master_controller.dm @@ -11,7 +11,7 @@ owner_hud = hud var/assoc_controlled_planes = list() for(var/i in controlled_planes) - var/obj/screen/plane_master/instance = owner_hud.plane_masters["[i]"] + var/atom/movable/screen/plane_master/instance = owner_hud.plane_masters["[i]"] assoc_controlled_planes["[i]"] = instance controlled_planes = assoc_controlled_planes @@ -19,41 +19,41 @@ /atom/movable/plane_master_controller/add_filter(name, priority, list/params) . = ..() for(var/i in controlled_planes) - var/obj/screen/plane_master/pm_iterator = controlled_planes[i] + var/atom/movable/screen/plane_master/pm_iterator = controlled_planes[i] pm_iterator.add_filter(name, priority, params) ///Full override so we can just use filterrific /atom/movable/plane_master_controller/remove_filter(name_or_names) . = ..() for(var/i in controlled_planes) - var/obj/screen/plane_master/pm_iterator = controlled_planes[i] + var/atom/movable/screen/plane_master/pm_iterator = controlled_planes[i] pm_iterator.remove_filter(name_or_names) /atom/movable/plane_master_controller/update_filters() . = ..() for(var/i in controlled_planes) - var/obj/screen/plane_master/pm_iterator = controlled_planes[i] + var/atom/movable/screen/plane_master/pm_iterator = controlled_planes[i] pm_iterator.update_filters() ///Gets all filters for this controllers plane masters /atom/movable/plane_master_controller/proc/get_filters(name) . = list() for(var/i in controlled_planes) - var/obj/screen/plane_master/pm_iterator = controlled_planes[i] + var/atom/movable/screen/plane_master/pm_iterator = controlled_planes[i] . += pm_iterator.get_filter(name) ///Transitions all filters owned by this plane master controller /atom/movable/plane_master_controller/transition_filter(name, time, list/new_params, easing, loop) . = ..() for(var/i in controlled_planes) - var/obj/screen/plane_master/pm_iterator = controlled_planes[i] + var/atom/movable/screen/plane_master/pm_iterator = controlled_planes[i] pm_iterator.transition_filter(name, time, new_params, easing, loop) ///Full override so we can just use filterrific /atom/movable/plane_master_controller/add_atom_colour(coloration, colour_priority) . = ..() for(var/i in controlled_planes) - var/obj/screen/plane_master/pm_iterator = controlled_planes[i] + var/atom/movable/screen/plane_master/pm_iterator = controlled_planes[i] pm_iterator.add_atom_colour(coloration, colour_priority) @@ -61,14 +61,14 @@ /atom/movable/plane_master_controller/remove_atom_colour(colour_priority, coloration) . = ..() for(var/i in controlled_planes) - var/obj/screen/plane_master/pm_iterator = controlled_planes[i] + var/atom/movable/screen/plane_master/pm_iterator = controlled_planes[i] pm_iterator.remove_atom_colour(colour_priority, coloration) ///Resets the atom's color to null, and then sets it to the highest priority colour available /atom/movable/plane_master_controller/update_atom_colour() for(var/i in controlled_planes) - var/obj/screen/plane_master/pm_iterator = controlled_planes[i] + var/atom/movable/screen/plane_master/pm_iterator = controlled_planes[i] pm_iterator.update_atom_colour() diff --git a/code/_onclick/hud/radial.dm b/code/_onclick/hud/radial.dm index 451e4270fe78..4ffc018f2fe1 100644 --- a/code/_onclick/hud/radial.dm +++ b/code/_onclick/hud/radial.dm @@ -3,51 +3,51 @@ GLOBAL_LIST_EMPTY(radial_menus) -/obj/screen/radial +/atom/movable/screen/radial icon = 'icons/mob/radial.dmi' layer = ABOVE_HUD_LAYER plane = ABOVE_HUD_PLANE var/datum/radial_menu/parent -/obj/screen/radial/Destroy() +/atom/movable/screen/radial/Destroy() parent = null return ..() -/obj/screen/radial/slice +/atom/movable/screen/radial/slice icon_state = "radial_slice" var/choice var/next_page = FALSE -/obj/screen/radial/slice/MouseEntered(location, control, params) +/atom/movable/screen/radial/slice/MouseEntered(location, control, params) . = ..() icon_state = "radial_slice_focus" openToolTip(usr, src, params, title = name) -/obj/screen/radial/slice/MouseExited(location, control, params) +/atom/movable/screen/radial/slice/MouseExited(location, control, params) . = ..() icon_state = "radial_slice" closeToolTip(usr) -/obj/screen/radial/slice/Click(location, control, params) +/atom/movable/screen/radial/slice/Click(location, control, params) if(usr.client == parent.current_user) if(next_page) parent.next_page() else parent.element_chosen(choice,usr) -/obj/screen/radial/center +/atom/movable/screen/radial/center name = "Close Menu" icon_state = "radial_center" -/obj/screen/radial/center/Click(location, control, params) +/atom/movable/screen/radial/center/Click(location, control, params) if(usr.client == parent.current_user) parent.finished = TRUE -/obj/screen/radial/center/MouseEntered(location, control, params) +/atom/movable/screen/radial/center/MouseEntered(location, control, params) . = ..() openToolTip(usr, src, params, title = name) -/obj/screen/radial/center/MouseExited(location, control, params) +/atom/movable/screen/radial/center/MouseExited(location, control, params) . = ..() closeToolTip(usr) @@ -59,8 +59,8 @@ GLOBAL_LIST_EMPTY(radial_menus) var/selected_choice - var/list/obj/screen/elements = list() - var/obj/screen/radial/center/close_button + var/list/atom/movable/screen/elements = list() + var/atom/movable/screen/radial/center/close_button var/client/current_user var/atom/movable/anchor var/pixel_x_difference @@ -94,7 +94,7 @@ GLOBAL_LIST_EMPTY(radial_menus) if(elements.len < max_elements) var/elements_to_add = max_elements - elements.len for(var/i in 1 to elements_to_add) //Create all elements - var/obj/screen/radial/new_element = new /obj/screen/radial/slice + var/atom/movable/screen/radial/new_element = new /atom/movable/screen/radial/slice new_element.parent = src elements += new_element @@ -128,14 +128,14 @@ GLOBAL_LIST_EMPTY(radial_menus) pixel_x_difference = ((world.icon_size * anchor.x) + anchor.step_x + anchor.pixel_x) - ((world.icon_size * current_user.mob.x) + current_user.mob.step_x + current_user.mob.pixel_x) pixel_y_difference = ((world.icon_size * anchor.y) + anchor.step_y + anchor.pixel_y) - ((world.icon_size * current_user.mob.y) + current_user.mob.step_y + current_user.mob.pixel_y) for(var/i in 1 to elements.len) - var/obj/screen/radial/E = elements[i] + var/atom/movable/screen/radial/E = elements[i] var/angle = WRAP(starting_angle + (i - 1) * angle_per_element, 0, 360) if(i > page_choices.len) HideElement(E) else SetElement(E,page_choices[i], angle) -/datum/radial_menu/proc/HideElement(obj/screen/radial/slice/E) +/datum/radial_menu/proc/HideElement(atom/movable/screen/radial/slice/E) E.cut_overlays() E.alpha = 0 E.name = "None" @@ -144,7 +144,7 @@ GLOBAL_LIST_EMPTY(radial_menus) E.choice = null E.next_page = FALSE -/datum/radial_menu/proc/SetElement(obj/screen/radial/slice/E, choice_id, angle) +/datum/radial_menu/proc/SetElement(atom/movable/screen/radial/slice/E, choice_id, angle) //Position E.pixel_y = round(cos(angle) * radius) + py_shift E.pixel_x = round(sin(angle) * radius) diff --git a/code/_onclick/hud/robot_hud.dm b/code/_onclick/hud/robot_hud.dm index 1ec455d9274c..c34807563c54 100644 --- a/code/_onclick/hud/robot_hud.dm +++ b/code/_onclick/hud/robot_hud.dm @@ -1,11 +1,11 @@ -/obj/screen/robot +/atom/movable/screen/robot icon = 'icons/mob/screen_robot.dmi' -/obj/screen/robot/module +/atom/movable/screen/robot/module name = "cyborg module" icon_state = "nomod" -/obj/screen/robot/module/Click() +/atom/movable/screen/robot/module/Click() if(isrobot(usr)) var/mob/living/silicon/robot/R = usr if(R.module) @@ -13,76 +13,76 @@ return 1 R.pick_module() -/obj/screen/robot/module1 +/atom/movable/screen/robot/module1 name = "module1" icon_state = "inv1" -/obj/screen/robot/module1/Click() +/atom/movable/screen/robot/module1/Click() if(isrobot(usr)) var/mob/living/silicon/robot/R = usr R.toggle_module(1) -/obj/screen/robot/module2 +/atom/movable/screen/robot/module2 name = "module2" icon_state = "inv2" -/obj/screen/robot/module2/Click() +/atom/movable/screen/robot/module2/Click() if(isrobot(usr)) var/mob/living/silicon/robot/R = usr R.toggle_module(2) -/obj/screen/robot/module3 +/atom/movable/screen/robot/module3 name = "module3" icon_state = "inv3" -/obj/screen/robot/module3/Click() +/atom/movable/screen/robot/module3/Click() if(isrobot(usr)) var/mob/living/silicon/robot/R = usr R.toggle_module(3) -/obj/screen/robot/radio +/atom/movable/screen/robot/radio name = "radio" icon_state = "radio" -/obj/screen/robot/radio/Click() +/atom/movable/screen/robot/radio/Click() if(issilicon(usr)) var/mob/living/silicon/robot/R = usr R.radio_menu() -/obj/screen/robot/store +/atom/movable/screen/robot/store name = "store" icon_state = "store" -/obj/screen/robot/store/Click() +/atom/movable/screen/robot/store/Click() if(isrobot(usr)) var/mob/living/silicon/robot/R = usr R.uneq_active() R.hud_used.update_robot_modules_display() -/obj/screen/robot/lamp +/atom/movable/screen/robot/lamp name = "Toggle Headlamp" icon_state = "lamp0" screen_loc = ui_borg_lamp -/obj/screen/robot/lamp/Click() +/atom/movable/screen/robot/lamp/Click() if(isrobot(usr)) var/mob/living/silicon/robot/R = usr R.control_headlamp() -/obj/screen/robot/thrusters +/atom/movable/screen/robot/thrusters name = "ion thrusters" icon_state = "ionpulse0" -/obj/screen/robot/thrusters/Click() +/atom/movable/screen/robot/thrusters/Click() var/mob/living/silicon/robot/R = usr R.toggle_ionpulse() -/obj/screen/robot/mov_intent +/atom/movable/screen/robot/mov_intent name = "fast/slow toggle" icon_state = "running" -/obj/screen/robot/mov_intent/Click() +/atom/movable/screen/robot/mov_intent/Click() usr.toggle_move_intent() @@ -93,31 +93,31 @@ /datum/hud/robot/New(mob/user) ..() - var/obj/screen/using + var/atom/movable/screen/using var/mob/living/silicon/robot/mymobR = mymob //Language menu - using = new /obj/screen/language_menu + using = new /atom/movable/screen/language_menu using.screen_loc = ui_borg_lanugage_menu static_inventory += using //Radio - using = new /obj/screen/robot/radio() + using = new /atom/movable/screen/robot/radio() using.screen_loc = ui_borg_radio static_inventory += using //Module select - using = new /obj/screen/robot/module1() + using = new /atom/movable/screen/robot/module1() using.screen_loc = ui_inv1 static_inventory += using mymobR.inv1 = using - using = new /obj/screen/robot/module2() + using = new /atom/movable/screen/robot/module2() using.screen_loc = ui_inv2 static_inventory += using mymobR.inv2 = using - using = new /obj/screen/robot/module3() + using = new /atom/movable/screen/robot/module3() using.screen_loc = ui_inv3 static_inventory += using mymobR.inv3 = using @@ -125,55 +125,55 @@ //End of module select //Sec/Med HUDs - using = new /obj/screen/ai/sensors() + using = new /atom/movable/screen/ai/sensors() using.screen_loc = ui_borg_sensor static_inventory += using //Intent // Attack intent - using = new /obj/screen/act_intent/robot() + using = new /atom/movable/screen/act_intent/robot() using.icon_state = mymob.a_intent static_inventory += using action_intent = using // Movement intent - using = new /obj/screen/robot/mov_intent() + using = new /atom/movable/screen/robot/mov_intent() using.icon_state = (mymob.m_intent == MOVE_INTENT_RUN ? "running" : "walking") static_inventory += using using.screen_loc = ui_movi move_intent = using //Health - mymob.healths = new /obj/screen/healths/robot() + mymob.healths = new /atom/movable/screen/healths/robot() infodisplay += mymob.healths //Installed Module - mymobR.hands = new /obj/screen/robot/module() + mymobR.hands = new /atom/movable/screen/robot/module() mymobR.hands.screen_loc = ui_borg_module static_inventory += mymobR.hands - module_store_icon = new /obj/screen/robot/store() + module_store_icon = new /atom/movable/screen/robot/store() module_store_icon.screen_loc = ui_borg_store - mymob.pullin = new /obj/screen/pull() + mymob.pullin = new /atom/movable/screen/pull() mymob.pullin.icon = 'icons/mob/screen_robot.dmi' mymob.pullin.hud = src mymob.pullin.update_icon(UPDATE_ICON_STATE) mymob.pullin.screen_loc = ui_borg_pull hotkeybuttons += mymob.pullin - zone_select = new /obj/screen/zone_sel/robot() + zone_select = new /atom/movable/screen/zone_sel/robot() zone_select.hud = src zone_select.update_icon(UPDATE_OVERLAYS) static_inventory += zone_select //Headlamp - mymobR.lamp_button = new /obj/screen/robot/lamp() + mymobR.lamp_button = new /atom/movable/screen/robot/lamp() mymobR.lamp_button.screen_loc = ui_borg_lamp static_inventory += mymobR.lamp_button //Thrusters - using = new /obj/screen/robot/thrusters() + using = new /atom/movable/screen/robot/thrusters() using.screen_loc = ui_borg_thrusters static_inventory += using mymobR.thruster_button = using diff --git a/code/_onclick/hud/screen_objects.dm b/code/_onclick/hud/screen_objects.dm index 492e0e01cb57..c68d9c797ccd 100644 --- a/code/_onclick/hud/screen_objects.dm +++ b/code/_onclick/hud/screen_objects.dm @@ -1,34 +1,44 @@ /* - Screen objects + Screen "objects" Todo: improve/re-implement Screen objects are only used for the hud and should not appear anywhere "in-game". + They are not actually objects, which is counterintuitive to their name. They are used with the client/screen list and the screen_loc var. For more information, see the byond documentation on the screen_loc and screen vars. */ -/obj/screen +/atom/movable/screen name = "" icon = 'icons/mob/screen_gen.dmi' layer = HUD_LAYER plane = HUD_PLANE flags = NO_SCREENTIPS - resistance_flags = INDESTRUCTIBLE | LAVA_PROOF | FIRE_PROOF | UNACIDABLE | ACID_PROOF var/obj/master = null //A reference to the object in the slot. Grabs or items, generally. var/datum/hud/hud = null appearance_flags = NO_CLIENT_COLOR - -/obj/screen/take_damage() - return - -/obj/screen/Destroy() + /** + * Map name assigned to this object. + * Automatically set by /client/proc/add_obj_to_map. + */ + var/assigned_map + /** + * Mark this object as garbage-collectible after you clean the map + * it was registered on. + * + * This could probably be changed to be a proc, for conditional removal. + * But for now, this works. + */ + var/del_on_map_removal = TRUE + +/atom/movable/screen/Destroy() master = null hud = null return ..() -/obj/screen/proc/component_click(obj/screen/component_button/component, params) +/atom/movable/screen/proc/component_click(atom/movable/screen/component_button/component, params) return -/obj/screen/text +/atom/movable/screen/text icon = null icon_state = null mouse_opacity = MOUSE_OPACITY_TRANSPARENT @@ -36,44 +46,44 @@ maptext_height = 480 maptext_width = 480 -/obj/screen/close +/atom/movable/screen/close name = "close" layer = ABOVE_HUD_LAYER plane = ABOVE_HUD_PLANE -/obj/screen/close/Click() +/atom/movable/screen/close/Click() if(master) if(isstorage(master)) var/obj/item/storage/S = master S.close(usr) return 1 -/obj/screen/drop +/atom/movable/screen/drop name = "drop" icon_state = "act_drop" -/obj/screen/drop/Click() +/atom/movable/screen/drop/Click() usr.drop_item_v() -/obj/screen/grab +/atom/movable/screen/grab name = "grab" -/obj/screen/grab/Click() +/atom/movable/screen/grab/Click() var/obj/item/grab/G = master G.s_click(src) return 1 -/obj/screen/grab/attack_hand() +/atom/movable/screen/grab/attack_hand() return -/obj/screen/grab/attackby() +/atom/movable/screen/grab/attackby() return -/obj/screen/act_intent +/atom/movable/screen/act_intent name = "intent" icon_state = "help" screen_loc = ui_acti -/obj/screen/act_intent/Click(location, control, params) +/atom/movable/screen/act_intent/Click(location, control, params) if(ishuman(usr)) var/_x = text2num(params2list(params)["icon-x"]) var/_y = text2num(params2list(params)["icon-y"]) @@ -88,69 +98,69 @@ else usr.a_intent_change("right") -/obj/screen/act_intent/alien +/atom/movable/screen/act_intent/alien icon = 'icons/mob/screen_alien.dmi' screen_loc = ui_acti -/obj/screen/act_intent/robot +/atom/movable/screen/act_intent/robot icon = 'icons/mob/screen_robot.dmi' screen_loc = ui_borg_intents -/obj/screen/act_intent/robot/AI +/atom/movable/screen/act_intent/robot/AI screen_loc = "SOUTH+1:6,EAST-1:32" -/obj/screen/mov_intent +/atom/movable/screen/mov_intent name = "run/walk toggle" icon_state = "running" -/obj/screen/act_intent/simple_animal +/atom/movable/screen/act_intent/simple_animal icon = 'icons/mob/screen_simplemob.dmi' screen_loc = ui_acti -/obj/screen/act_intent/guardian +/atom/movable/screen/act_intent/guardian icon = 'icons/mob/guardian.dmi' screen_loc = ui_acti -/obj/screen/mov_intent/Click() +/atom/movable/screen/mov_intent/Click() usr.toggle_move_intent() -/obj/screen/pull +/atom/movable/screen/pull name = "stop pulling" icon_state = "pull" -/obj/screen/pull/Click() +/atom/movable/screen/pull/Click() usr.stop_pulling() -/obj/screen/pull/update_icon_state() +/atom/movable/screen/pull/update_icon_state() if(hud?.mymob?.pulling) icon_state = "pull" else icon_state = "pull0" -/obj/screen/resist +/atom/movable/screen/resist name = "resist" icon = 'icons/mob/screen_midnight.dmi' icon_state = "act_resist" -/obj/screen/resist/Click() +/atom/movable/screen/resist/Click() if(isliving(usr)) var/mob/living/L = usr L.resist() -/obj/screen/throw_catch +/atom/movable/screen/throw_catch name = "throw/catch" icon = 'icons/mob/screen_midnight.dmi' icon_state = "act_throw_off" -/obj/screen/throw_catch/Click() +/atom/movable/screen/throw_catch/Click() if(iscarbon(usr)) var/mob/living/carbon/C = usr C.toggle_throw_mode() -/obj/screen/storage +/atom/movable/screen/storage name = "storage" -/obj/screen/storage/Click(location, control, params) +/atom/movable/screen/storage/Click(location, control, params) if(world.time <= usr.next_move) return TRUE if(usr.incapacitated(ignore_restraints = TRUE)) @@ -163,7 +173,7 @@ master.attackby(I, usr, params) return TRUE -/obj/screen/storage/proc/is_item_accessible(obj/item/I, mob/user) +/atom/movable/screen/storage/proc/is_item_accessible(obj/item/I, mob/user) if(!user || !I) return FALSE @@ -180,7 +190,7 @@ return TRUE return FALSE -/obj/screen/storage/MouseDrop_T(obj/item/I, mob/user) +/atom/movable/screen/storage/MouseDrop_T(obj/item/I, mob/user) if(!user || !istype(I) || user.incapacitated(ignore_restraints = TRUE) || ismecha(user.loc) || !master) return @@ -219,7 +229,7 @@ S.attackby(I, user) return TRUE -/obj/screen/zone_sel +/atom/movable/screen/zone_sel name = "damage zone" icon_state = "zone_sel" screen_loc = ui_zonesel @@ -228,7 +238,7 @@ var/static/list/hover_overlays_cache = list() var/hovering -/obj/screen/zone_sel/Click(location, control,params) +/atom/movable/screen/zone_sel/Click(location, control,params) if(isobserver(usr)) return @@ -241,11 +251,11 @@ return set_selected_zone(choice, usr) -/obj/screen/zone_sel/MouseEntered(location, control, params) +/atom/movable/screen/zone_sel/MouseEntered(location, control, params) . = ..() MouseMove(location, control, params) -/obj/screen/zone_sel/MouseMove(location, control, params) +/atom/movable/screen/zone_sel/MouseMove(location, control, params) if(isobserver(usr)) return @@ -275,13 +285,13 @@ layer = ABOVE_HUD_LAYER plane = ABOVE_HUD_PLANE -/obj/screen/zone_sel/MouseExited(location, control, params) +/atom/movable/screen/zone_sel/MouseExited(location, control, params) if(!isobserver(usr) && hovering) cut_overlay(hover_overlays_cache[hovering]) hovering = null return ..() -/obj/screen/zone_sel/proc/get_zone_at(icon_x, icon_y) +/atom/movable/screen/zone_sel/proc/get_zone_at(icon_x, icon_y) switch(icon_y) if(1 to 3) //Feet switch(icon_x) @@ -325,7 +335,7 @@ return "eyes" return "head" -/obj/screen/zone_sel/proc/set_selected_zone(choice) +/atom/movable/screen/zone_sel/proc/set_selected_zone(choice) if(!hud) return if(isobserver(hud.mymob)) @@ -334,58 +344,58 @@ if(choice != selecting) selecting = choice update_icon(UPDATE_OVERLAYS) - return 1 + return TRUE -/obj/screen/zone_sel/update_overlays() +/atom/movable/screen/zone_sel/update_overlays() . = ..() var/image/sel = image(overlay_file, "[selecting]") sel.appearance_flags = RESET_COLOR . += sel hud.mymob.zone_selected = selecting -/obj/screen/zone_sel/alien +/atom/movable/screen/zone_sel/alien icon = 'icons/mob/screen_alien.dmi' overlay_file = 'icons/mob/screen_alien.dmi' -/obj/screen/zone_sel/robot +/atom/movable/screen/zone_sel/robot icon = 'icons/mob/screen_robot.dmi' -/obj/screen/craft +/atom/movable/screen/craft name = "crafting menu" icon = 'icons/mob/screen_midnight.dmi' icon_state = "craft" screen_loc = ui_crafting -/obj/screen/craft/Click() +/atom/movable/screen/craft/Click() var/mob/living/M = usr M.OpenCraftingMenu() -/obj/screen/language_menu +/atom/movable/screen/language_menu name = "language menu" icon = 'icons/mob/screen_midnight.dmi' icon_state = "talk_wheel" screen_loc = ui_language_menu -/obj/screen/language_menu/Click() +/atom/movable/screen/language_menu/Click() var/mob/M = usr if(!istype(M)) return M.check_languages() -/obj/screen/inventory +/atom/movable/screen/inventory var/slot_id //The indentifier for the slot. It has nothing to do with ID cards. var/list/object_overlays = list() -/obj/screen/inventory/MouseEntered() +/atom/movable/screen/inventory/MouseEntered() . = ..() add_overlays() -/obj/screen/inventory/MouseExited() +/atom/movable/screen/inventory/MouseExited() ..() cut_overlay(object_overlays) object_overlays.Cut() -/obj/screen/inventory/proc/add_overlays() +/atom/movable/screen/inventory/proc/add_overlays() var/mob/user = hud.mymob if(hud && user && slot_id) @@ -405,7 +415,7 @@ object_overlays += item_overlay add_overlay(object_overlays) -/obj/screen/inventory/MouseDrop(atom/over) +/atom/movable/screen/inventory/MouseDrop(atom/over) cut_overlay(object_overlays) object_overlays.Cut() if(could_be_click_lag()) @@ -414,7 +424,7 @@ return return ..() -/obj/screen/inventory/Click(location, control, params) +/atom/movable/screen/inventory/Click(location, control, params) // At this point in client Click() code we have passed the 1/10 sec check and little else // We don't even know if it's a middle click if(world.time <= usr.next_move) @@ -432,14 +442,14 @@ if(usr.attack_ui(slot_id)) usr.update_inv_l_hand() usr.update_inv_r_hand() - return 1 + return TRUE -/obj/screen/inventory/hand +/atom/movable/screen/inventory/hand var/image/active_overlay var/image/handcuff_overlay var/static/mutable_appearance/blocked_overlay = mutable_appearance('icons/mob/screen_gen.dmi', "blocked") -/obj/screen/inventory/hand/update_overlays() +/atom/movable/screen/inventory/hand/update_overlays() . = ..() if(!active_overlay) active_overlay = image("icon"=icon, "icon_state"="hand_active") @@ -462,7 +472,7 @@ else if(slot_id == SLOT_HUD_RIGHT_HAND && !hud.mymob.hand) . += active_overlay -/obj/screen/inventory/hand/Click() +/atom/movable/screen/inventory/hand/Click() // At this point in client Click() code we have passed the 1/10 sec check and little else // We don't even know if it's a middle click if(world.time <= usr.next_move) @@ -479,12 +489,12 @@ M.activate_hand("r") if("left hand", "l_hand") M.activate_hand("l") - return 1 + return TRUE -/obj/screen/swap_hand +/atom/movable/screen/swap_hand name = "swap hand" -/obj/screen/swap_hand/Click() +/atom/movable/screen/swap_hand/Click() // At this point in client Click() code we have passed the 1/10 sec check and little else // We don't even know if it's a middle click if(world.time <= usr.next_move) @@ -498,57 +508,57 @@ M.swap_hand() return 1 -/obj/screen/healths +/atom/movable/screen/healths name = "health" icon_state = "health0" screen_loc = ui_health -/obj/screen/healths/alien +/atom/movable/screen/healths/alien icon = 'icons/mob/screen_alien.dmi' screen_loc = ui_alien_health -/obj/screen/healths/bot +/atom/movable/screen/healths/bot icon = 'icons/mob/screen_bot.dmi' screen_loc = ui_borg_health -/obj/screen/healths/robot +/atom/movable/screen/healths/robot icon = 'icons/mob/screen_robot.dmi' screen_loc = ui_borg_health -/obj/screen/healths/corgi +/atom/movable/screen/healths/corgi icon = 'icons/mob/screen_corgi.dmi' -/obj/screen/healths/slime +/atom/movable/screen/healths/slime icon = 'icons/mob/screen_slime.dmi' icon_state = "slime_health0" screen_loc = ui_slime_health mouse_opacity = MOUSE_OPACITY_TRANSPARENT -/obj/screen/healths/guardian +/atom/movable/screen/healths/guardian name = "summoner health" icon = 'icons/mob/guardian.dmi' icon_state = "base" screen_loc = ui_health mouse_opacity = MOUSE_OPACITY_TRANSPARENT -/obj/screen/healthdoll +/atom/movable/screen/healthdoll name = "health doll" icon_state = "healthdoll_DEAD" screen_loc = ui_healthdoll var/list/cached_healthdoll_overlays = list() // List of icon states (strings) for overlays -/obj/screen/healthdoll/Click() +/atom/movable/screen/healthdoll/Click() if(ishuman(usr) && !usr.is_dead()) var/mob/living/carbon/H = usr H.check_self_for_injuries() -/obj/screen/component_button - var/obj/screen/parent +/atom/movable/screen/component_button + var/atom/movable/screen/parent -/obj/screen/component_button/Initialize(mapload, obj/screen/new_parent) +/atom/movable/screen/component_button/Initialize(mapload, atom/movable/screen/new_parent) . = ..() parent = new_parent -/obj/screen/component_button/Click(params) +/atom/movable/screen/component_button/Click(params) if(parent) parent.component_click(src, params) diff --git a/code/_onclick/hud/screentip.dm b/code/_onclick/hud/screentip.dm index beb8f033b9fd..542c96e626f2 100644 --- a/code/_onclick/hud/screentip.dm +++ b/code/_onclick/hud/screentip.dm @@ -1,4 +1,4 @@ -/obj/screen/screentip +/atom/movable/screen/screentip icon = null mouse_opacity = MOUSE_OPACITY_TRANSPARENT screen_loc = "TOP,LEFT" @@ -7,12 +7,12 @@ maptext_y = -50 maptext = "" -/obj/screen/screentip/Initialize(mapload, _hud) +/atom/movable/screen/screentip/Initialize(mapload, _hud) . = ..() hud = _hud update_view() -/obj/screen/screentip/proc/update_view(datum/source) +/atom/movable/screen/screentip/proc/update_view(datum/source) if(!hud) //Might not have been initialized by now return maptext_width = getviewsize(hud.mymob.client.view)[1] * world.icon_size diff --git a/code/_onclick/hud/slime_hud.dm b/code/_onclick/hud/slime_hud.dm index 273991a83c84..58a579e3599b 100644 --- a/code/_onclick/hud/slime_hud.dm +++ b/code/_onclick/hud/slime_hud.dm @@ -1,6 +1,6 @@ /datum/hud/slime/New(mob/living/simple_animal/slime/owner, ui_style = 'icons/mob/screen_slime.dmi') ..() - mymob.healths = new /obj/screen/healths/slime() + mymob.healths = new /atom/movable/screen/healths/slime() infodisplay += mymob.healths /mob/living/simple_animal/slime/create_mob_hud() diff --git a/code/controllers/subsystem/SSdebugview.dm b/code/controllers/subsystem/SSdebugview.dm index 0f973a5deb21..bbc2082c582c 100644 --- a/code/controllers/subsystem/SSdebugview.dm +++ b/code/controllers/subsystem/SSdebugview.dm @@ -44,7 +44,7 @@ SUBSYSTEM_DEF(debugview) C.debug_text_overlay.maptext = "[out_text]" /datum/controller/subsystem/debugview/proc/start_processing(client/C) - C.debug_text_overlay = new /obj/screen/debugtextholder(null, C) + C.debug_text_overlay = new /atom/movable/screen/debugtextholder(null, C) C.screen |= C.debug_text_overlay processing |= C @@ -53,7 +53,7 @@ SUBSYSTEM_DEF(debugview) C.screen -= C.debug_text_overlay QDEL_NULL(C.debug_text_overlay) -/obj/screen/debugtextholder +/atom/movable/screen/debugtextholder icon = 'icons/mob/screen_full.dmi' icon_state = "empty" screen_loc = "TOP,LEFT" @@ -61,11 +61,11 @@ SUBSYSTEM_DEF(debugview) maptext_height = 480 // 15 * 32 (15 tiles, 32 pixels each) maptext_width = 480 // changes with prefs -/obj/screen/debugtextholder/Initialize(mapload, client/C) +/atom/movable/screen/debugtextholder/Initialize(mapload, client/C) . = ..() update_view(C) -/obj/screen/debugtextholder/proc/update_view(client/C) +/atom/movable/screen/debugtextholder/proc/update_view(client/C) var/list/viewsizes = getviewsize(C.view) maptext_width = viewsizes[1] * world.icon_size diff --git a/code/controllers/subsystem/SSghost_spawns.dm b/code/controllers/subsystem/SSghost_spawns.dm index 9811088f742d..80e275ce9a1c 100644 --- a/code/controllers/subsystem/SSghost_spawns.dm +++ b/code/controllers/subsystem/SSghost_spawns.dm @@ -70,7 +70,7 @@ SUBSYSTEM_DEF(ghost_spawns) // If we somehow send two polls for the same mob type, but with a duration on the second one shorter than the time left on the first one, // we need to keep the first one's timeout rather than use the shorter one - var/obj/screen/alert/notify_action/current_alert = LAZYACCESS(M.alerts, category) + var/atom/movable/screen/alert/notify_action/current_alert = LAZYACCESS(M.alerts, category) var/alert_time = poll_time var/alert_poll = P if(current_alert && current_alert.timeout > (world.time + poll_time - world.tick_lag)) @@ -78,7 +78,7 @@ SUBSYSTEM_DEF(ghost_spawns) alert_poll = current_alert.poll // Send them an on-screen alert - var/obj/screen/alert/notify_action/A = M.throw_alert(category, /obj/screen/alert/notify_action, timeout_override = alert_time, no_anim = TRUE) + var/atom/movable/screen/alert/notify_action/A = M.throw_alert(category, /atom/movable/screen/alert/notify_action, timeout_override = alert_time, no_anim = TRUE) if(!A) continue diff --git a/code/controllers/subsystem/SSparallax.dm b/code/controllers/subsystem/SSparallax.dm index c0beb503d66a..99024fd0d1e9 100644 --- a/code/controllers/subsystem/SSparallax.dm +++ b/code/controllers/subsystem/SSparallax.dm @@ -17,7 +17,7 @@ SUBSYSTEM_DEF(parallax) /datum/controller/subsystem/parallax/PreInit() . = ..() if(prob(70)) //70% chance to pick a special extra layer - random_layer = pick(/obj/screen/parallax_layer/random/space_gas, /obj/screen/parallax_layer/random/asteroids) + random_layer = pick(/atom/movable/screen/parallax_layer/random/space_gas, /atom/movable/screen/parallax_layer/random/asteroids) random_parallax_color = pick(COLOR_TEAL, COLOR_GREEN, COLOR_SILVER, COLOR_YELLOW, COLOR_CYAN, COLOR_ORANGE, COLOR_PURPLE) //Special color for random_layer1. Has to be done here so everyone sees the same color. planet_y_offset = rand(100, 160) planet_x_offset = rand(100, 160) diff --git a/code/controllers/subsystem/SSticker.dm b/code/controllers/subsystem/SSticker.dm index 8713ce74d490..864eca693848 100644 --- a/code/controllers/subsystem/SSticker.dm +++ b/code/controllers/subsystem/SSticker.dm @@ -54,7 +54,7 @@ SUBSYSTEM_DEF(ticker) /// Holder for inital autotransfer vote timer var/next_autotransfer = 0 /// Used for station explosion cinematic - var/obj/screen/cinematic = null + var/atom/movable/screen/cinematic = null /// Spam Prevention. Announce round end only once. var/round_end_announced = FALSE /// Is the ticker currently processing? If FALSE, roundstart is delayed @@ -364,7 +364,7 @@ SUBSYSTEM_DEF(ticker) auto_toggle_ooc(TRUE) // Turn it on //initialise our cinematic screen object - cinematic = new /obj/screen(src) + cinematic = new /atom/movable/screen(src) cinematic.icon = 'icons/effects/station_explosion.dmi' cinematic.icon_state = "station_intact" cinematic.layer = 21 diff --git a/code/datums/action.dm b/code/datums/action.dm index 0e6dc66076dc..18fd40867741 100644 --- a/code/datums/action.dm +++ b/code/datums/action.dm @@ -12,7 +12,7 @@ var/desc = null var/obj/target = null var/check_flags = 0 - var/obj/screen/movable/action_button/button = null + var/atom/movable/screen/movable/action_button/button = null var/button_icon = 'icons/mob/actions/actions.dmi' var/background_icon_state = "bg_default" var/buttontooltipstyle = "" @@ -129,7 +129,7 @@ img.plane = FLOAT_PLANE + 1 button.add_overlay(img) -/datum/action/proc/ApplyIcon(obj/screen/movable/action_button/current_button) +/datum/action/proc/ApplyIcon(atom/movable/screen/movable/action_button/current_button) current_button.cut_overlays() if(icon_icon && button_icon_state) var/image/img = image(icon_icon, current_button, button_icon_state) @@ -165,7 +165,7 @@ I.ui_action_click(owner, type, left_click) return TRUE -/datum/action/item_action/ApplyIcon(obj/screen/movable/action_button/current_button) +/datum/action/item_action/ApplyIcon(atom/movable/screen/movable/action_button/current_button) if(use_itemicon) if(target) var/obj/item/I = target @@ -436,7 +436,7 @@ owner.research_scanner = FALSE ..() -/datum/action/item_action/toggle_research_scanner/ApplyIcon(obj/screen/movable/action_button/current_button) +/datum/action/item_action/toggle_research_scanner/ApplyIcon(atom/movable/screen/movable/action_button/current_button) current_button.cut_overlays() if(button_icon && button_icon_state) var/image/img = image(button_icon, current_button, "scan_mode") diff --git a/code/datums/click_intercept.dm b/code/datums/click_intercept.dm index 953e1272602f..78e8c8725f7d 100644 --- a/code/datums/click_intercept.dm +++ b/code/datums/click_intercept.dm @@ -8,8 +8,8 @@ /datum/click_intercept /// A reference to the client which is assigned this click intercept datum. var/client/holder = null - /// Any `obj/screen/buttons` the client is meant to receive when assigned this click intercept datum. - var/list/obj/screen/buttons = list() + /// Any `atom/movable/screen/buttons` the client is meant to receive when assigned this click intercept datum. + var/list/atom/movable/screen/buttons = list() /datum/click_intercept/New(client/C) create_buttons() diff --git a/code/datums/keybindings/mob_keybinds.dm b/code/datums/keybindings/mob_keybinds.dm index d2b3d2c9034a..55122bff7937 100644 --- a/code/datums/keybindings/mob_keybinds.dm +++ b/code/datums/keybindings/mob_keybinds.dm @@ -168,7 +168,7 @@ if(!C.check_has_body_select()) return - var/obj/screen/zone_sel/selector = C.mob.hud_used.zone_select + var/atom/movable/screen/zone_sel/selector = C.mob.hud_used.zone_select selector.set_selected_zone(body_part, C.mob) /datum/keybinding/mob/target/head diff --git a/code/datums/spells/mimic.dm b/code/datums/spells/mimic.dm index b7fe668761d9..15c1481c8fef 100644 --- a/code/datums/spells/mimic.dm +++ b/code/datums/spells/mimic.dm @@ -19,7 +19,7 @@ var/perfect_disguise = FALSE var/static/list/black_listed_form_types = list( - /obj/screen, + /atom/movable/screen, /obj/singularity, /obj/effect, /mob/living/simple_animal/hostile/megafauna, diff --git a/code/datums/status_effects/blob_burst.dm b/code/datums/status_effects/blob_burst.dm index 37170782b93b..d1381612a2c4 100644 --- a/code/datums/status_effects/blob_burst.dm +++ b/code/datums/status_effects/blob_burst.dm @@ -1,5 +1,5 @@ /datum/status_effect/blob_burst - alert_type = /obj/screen/alert/status_effect/blob_burst + alert_type = /atom/movable/screen/alert/status_effect/blob_burst var/datum/callback/blob_burst_callback /datum/status_effect/blob_burst/on_creation(mob/living/new_owner, duration = 120 SECONDS, datum/callback/burst_callback) @@ -20,7 +20,7 @@ /datum/status_effect/blob_burst/on_timeout() blob_burst_callback.Invoke() -/obj/screen/alert/status_effect/blob_burst +/atom/movable/screen/alert/status_effect/blob_burst name = "Blob burst" desc = "You're about to burst into a blob, be sure to find a safe place before that you burst!" icon = 'icons/mob/blob.dmi' diff --git a/code/datums/status_effects/buffs.dm b/code/datums/status_effects/buffs.dm index 61143bc0ccaf..7210c6a9cb55 100644 --- a/code/datums/status_effects/buffs.dm +++ b/code/datums/status_effects/buffs.dm @@ -4,18 +4,18 @@ id = "his_grace" duration = -1 tick_interval = 4 - alert_type = /obj/screen/alert/status_effect/his_grace + alert_type = /atom/movable/screen/alert/status_effect/his_grace var/bloodlust = 0 /// Attached His Grace toolbox var/obj/item/his_grace/toolbox -/obj/screen/alert/status_effect/his_grace +/atom/movable/screen/alert/status_effect/his_grace name = "His Grace" desc = "His Grace hungers, and you must feed Him." icon_state = "his_grace" alerttooltipstyle = "hisgrace" -/obj/screen/alert/status_effect/his_grace/MouseEntered(location, control, params) +/atom/movable/screen/alert/status_effect/his_grace/MouseEntered(location, control, params) desc = initial(desc) var/datum/status_effect/his_grace/HG = attached_effect desc += "
Current Bloodthirst: [HG.bloodlust]\ @@ -61,9 +61,9 @@ /datum/status_effect/shadow_mend id = "shadow_mend" duration = 3 SECONDS - alert_type = /obj/screen/alert/status_effect/shadow_mend + alert_type = /atom/movable/screen/alert/status_effect/shadow_mend -/obj/screen/alert/status_effect/shadow_mend +/atom/movable/screen/alert/status_effect/shadow_mend name = "Shadow Mend" desc = "Shadowy energies wrap around your wounds, sealing them at a price. After healing, you will slowly lose health every three seconds for thirty seconds." icon_state = "shadow_mend" @@ -88,10 +88,10 @@ duration = 30 SECONDS tick_interval = 3 SECONDS status_type = STATUS_EFFECT_REFRESH - alert_type = /obj/screen/alert/status_effect/void_price + alert_type = /atom/movable/screen/alert/status_effect/void_price var/price = 3 //This is how much hp you lose per tick. Each time the buff is refreshed, it increased by 1. Healing too much in a short period of time will cause your swift demise -/obj/screen/alert/status_effect/void_price +/atom/movable/screen/alert/status_effect/void_price name = "Void Price" desc = "Black tendrils cinch tightly against you, digging wicked barbs into your flesh." icon_state = "shadow_mend" @@ -108,10 +108,10 @@ id = "blooddrunk" duration = 10 tick_interval = 0 - alert_type = /obj/screen/alert/status_effect/blooddrunk + alert_type = /atom/movable/screen/alert/status_effect/blooddrunk var/blooddrunk_damage_mod_remove = 4 // Damage is multiplied by this at the end of the status effect. Modify this one, it changes the _add -/obj/screen/alert/status_effect/blooddrunk +/atom/movable/screen/alert/status_effect/blooddrunk name = "Blood-Drunk" desc = "You are drunk on blood! Your pulse thunders in your ears! Nothing can harm you!" //not true, and the item description mentions its actual effect icon_state = "blooddrunk" @@ -147,7 +147,7 @@ if(islist(owner.stun_absorption) && owner.stun_absorption["blooddrunk"]) owner.remove_stun_absorption("blooddrunk") -/obj/screen/alert/status_effect/dash +/atom/movable/screen/alert/status_effect/dash name = "Dash" desc = "Your have the ability to dash!" icon = 'icons/mob/actions/actions.dmi' @@ -157,16 +157,16 @@ id = "dash" duration = 5 SECONDS tick_interval = 0 - alert_type = /obj/screen/alert/status_effect/dash + alert_type = /atom/movable/screen/alert/status_effect/dash /datum/status_effect/bloodswell id = "bloodswell" duration = 30 SECONDS tick_interval = 0 - alert_type = /obj/screen/alert/status_effect/blood_swell + alert_type = /atom/movable/screen/alert/status_effect/blood_swell var/bonus_damage_applied = FALSE -/obj/screen/alert/status_effect/blood_swell +/atom/movable/screen/alert/status_effect/blood_swell name = "Blood Swell" desc = "Your body has been infused with crimson magics, your resistance to attacks has greatly increased!" icon = 'icons/mob/actions/actions.dmi' @@ -206,9 +206,9 @@ id = "vampire_gladiator" duration = 30 SECONDS tick_interval = 1 SECONDS - alert_type = /obj/screen/alert/status_effect/vampire_gladiator + alert_type = /atom/movable/screen/alert/status_effect/vampire_gladiator -/obj/screen/alert/status_effect/vampire_gladiator +/atom/movable/screen/alert/status_effect/vampire_gladiator name = "Gladiatorial Resilience" desc = "Roused by the thrill of the fight, your body has become more resistant to breaking!" icon = 'icons/mob/actions/actions.dmi' @@ -408,7 +408,7 @@ if(!heal_points) return -/obj/screen/alert/status_effect/regenerative_core +/atom/movable/screen/alert/status_effect/regenerative_core name = "Reinforcing Tendrils" desc = "You can move faster than your broken body could normally handle!" icon_state = "regenerative_core" @@ -418,7 +418,7 @@ id = "Regenerative Core" duration = 1 MINUTES status_type = STATUS_EFFECT_REPLACE - alert_type = /obj/screen/alert/status_effect/regenerative_core + alert_type = /atom/movable/screen/alert/status_effect/regenerative_core /datum/status_effect/regenerative_core/on_apply() ADD_TRAIT(owner, TRAIT_IGNOREDAMAGESLOWDOWN, id) @@ -551,9 +551,9 @@ id = "chainsaw_slaying" duration = 5 SECONDS status_type = STATUS_EFFECT_REFRESH - alert_type = /obj/screen/alert/status_effect/chainsaw + alert_type = /atom/movable/screen/alert/status_effect/chainsaw -/obj/screen/alert/status_effect/chainsaw +/atom/movable/screen/alert/status_effect/chainsaw name = "Revved up!" desc = "... guts, huge guts! Kill them... must kill them all!" icon_state = "chainsaw" @@ -585,9 +585,9 @@ duration = -1 tick_interval = 2 SECONDS status_type = STATUS_EFFECT_UNIQUE - alert_type = /obj/screen/alert/status_effect/hope + alert_type = /atom/movable/screen/alert/status_effect/hope -/obj/screen/alert/status_effect/hope +/atom/movable/screen/alert/status_effect/hope name = "Hope." desc = "A ray of hope beyond dispair." icon_state = "hope" @@ -640,13 +640,13 @@ return ..() /datum/status_effect/drill_payback/on_apply() - owner.overlay_fullscreen("payback", /obj/screen/fullscreen/payback, 0) + owner.overlay_fullscreen("payback", /atom/movable/screen/fullscreen/payback, 0) addtimer(CALLBACK(src, PROC_REF(payback_phase_2)), 2.7 SECONDS) return TRUE /datum/status_effect/drill_payback/proc/payback_phase_2() owner.clear_fullscreen("payback") - owner.overlay_fullscreen("payback", /obj/screen/fullscreen/payback, 1) + owner.overlay_fullscreen("payback", /atom/movable/screen/fullscreen/payback, 1) /datum/status_effect/drill_payback/tick() //They are not staying down. This will be a fight. if(!drilled_successfully && (get_dist(owner, drilled) >= 9)) //We don't want someone drilling the safe at arivals then raiding bridge with the buff @@ -752,9 +752,9 @@ id = "bearserker rage" duration = 5 SECONDS status_type = STATUS_EFFECT_REFRESH - alert_type = /obj/screen/alert/status_effect/bearserker_rage + alert_type = /atom/movable/screen/alert/status_effect/bearserker_rage -/obj/screen/alert/status_effect/bearserker_rage +/atom/movable/screen/alert/status_effect/bearserker_rage name = "Bearserker Rage" desc = "Blood flows between your fingers, and Foh'Sie roars; \"MORE BLOOD!\"" icon_state = "bearserker" diff --git a/code/datums/status_effects/debuffs.dm b/code/datums/status_effects/debuffs.dm index 327a8e4b3f6a..efcc3c3ab286 100644 --- a/code/datums/status_effects/debuffs.dm +++ b/code/datums/status_effects/debuffs.dm @@ -5,9 +5,9 @@ id = "his_wrath" duration = -1 tick_interval = 4 - alert_type = /obj/screen/alert/status_effect/his_wrath + alert_type = /atom/movable/screen/alert/status_effect/his_wrath -/obj/screen/alert/status_effect/his_wrath +/atom/movable/screen/alert/status_effect/his_wrath name = "His Wrath" desc = "You fled from His Grace instead of feeding Him, and now you suffer." icon_state = "his_grace" @@ -188,10 +188,10 @@ id = "teleportation sickness" duration = 30 SECONDS status_type = STATUS_EFFECT_REFRESH - alert_type = /obj/screen/alert/status_effect/teleport_sickness + alert_type = /atom/movable/screen/alert/status_effect/teleport_sickness var/teleports = 1 -/obj/screen/alert/status_effect/teleport_sickness +/atom/movable/screen/alert/status_effect/teleport_sickness name = "Teleportation sickness" desc = "You feel like you are going to throw up with all this teleporting." icon_state = "bluespace" @@ -464,7 +464,7 @@ owner.Slur(actual_strength) if(!alert_thrown) alert_thrown = TRUE - owner.throw_alert("drunk", /obj/screen/alert/drunk) + owner.throw_alert("drunk", /atom/movable/screen/alert/drunk) owner.sound_environment_override = SOUND_ENVIRONMENT_PSYCHOTIC // THRESHOLD_BRAWLING (60 SECONDS) if(M) @@ -1011,7 +1011,7 @@ /datum/status_effect/bubblegum_curse id = "bubblegum curse" - alert_type = /obj/screen/alert/status_effect/bubblegum_curse + alert_type = /atom/movable/screen/alert/status_effect/bubblegum_curse duration = -1 //Kill it. There is no other option. tick_interval = 1 SECONDS /// The damage the status effect does per tick. @@ -1023,7 +1023,7 @@ /datum/status_effect/bubblegum_curse/on_creation(mob/living/new_owner, mob/living/source) . = ..() source_UID = source.UID() - owner.overlay_fullscreen("Bubblegum", /obj/screen/fullscreen/fog, 1) + owner.overlay_fullscreen("Bubblegum", /atom/movable/screen/fullscreen/fog, 1) /datum/status_effect/bubblegum_curse/tick() var/mob/living/simple_animal/hostile/megafauna/bubblegum/attacker = locateUID(source_UID) @@ -1031,7 +1031,7 @@ qdel(src) if(attacker.health <= attacker.maxHealth / 2) owner.clear_fullscreen("Bubblegum") - owner.overlay_fullscreen("Bubblegum", /obj/screen/fullscreen/fog, 2) + owner.overlay_fullscreen("Bubblegum", /atom/movable/screen/fullscreen/fog, 2) if(!coward_checking) if(owner.z != attacker.z) addtimer(CALLBACK(src, PROC_REF(onstation_coward_callback)), 12 SECONDS) @@ -1123,20 +1123,20 @@ playsound(targetturf, 'sound/misc/exit_blood.ogg', 100, TRUE, -1) addtimer(CALLBACK(attacker, TYPE_PROC_REF(/mob/living/simple_animal/hostile/megafauna/bubblegum, FindTarget), list(owner), 1), 2) -/obj/screen/alert/status_effect/bubblegum_curse +/atom/movable/screen/alert/status_effect/bubblegum_curse name = "I SEE YOU" desc = "YOUR SOUL WILL BE MINE FOR YOUR INSOLENCE" icon_state = "bubblegumjumpscare" -/obj/screen/alert/status_effect/bubblegum_curse/Initialize(mapload) +/atom/movable/screen/alert/status_effect/bubblegum_curse/Initialize(mapload) . = ..() START_PROCESSING(SSobj, src) -/obj/screen/alert/status_effect/bubblegum_curse/Destroy() +/atom/movable/screen/alert/status_effect/bubblegum_curse/Destroy() STOP_PROCESSING(SSobj, src) return ..() -/obj/screen/alert/status_effect/bubblegum_curse/process() +/atom/movable/screen/alert/status_effect/bubblegum_curse/process() var/new_filter = isnull(get_filter("ray")) ray_filter_helper(1, 40,"#ce3030", 6, 20) if(new_filter) @@ -1146,10 +1146,10 @@ /datum/status_effect/abductor_cooldown id = "abductor_cooldown" - alert_type = /obj/screen/alert/status_effect/abductor_cooldown + alert_type = /atom/movable/screen/alert/status_effect/abductor_cooldown duration = 10 SECONDS -/obj/screen/alert/status_effect/abductor_cooldown +/atom/movable/screen/alert/status_effect/abductor_cooldown name = "Teleportation cooldown" desc = "Per article A-113, all experimentors must wait 10000 milliseconds between teleports in order to ensure no long term genetic or mental damage happens to experimentor or test subjects." icon_state = "bluespace" @@ -1160,7 +1160,7 @@ /// Purposebuilt for cursed slot machines. /datum/status_effect/cursed id = "cursed" - alert_type = /obj/screen/alert/status_effect/cursed + alert_type = /atom/movable/screen/alert/status_effect/cursed /// The max number of curses a target can incur with this status effect. var/max_curse_count = DEFAULT_MAX_CURSE_COUNT /// The amount of times we have been "applied" to the target. @@ -1304,12 +1304,12 @@ oxy = (curse_count * ticked_coefficient), ) -/obj/screen/alert/status_effect/cursed +/atom/movable/screen/alert/status_effect/cursed name = "Cursed!" desc = "The brand on your hand reminds you of your greed, yet you seem to be okay otherwise." icon_state = "cursed_by_slots" -/obj/screen/alert/status_effect/cursed/update_desc() +/atom/movable/screen/alert/status_effect/cursed/update_desc() . = ..() var/datum/status_effect/cursed/linked_effect = attached_effect var/curses = linked_effect.curse_count diff --git a/code/datums/status_effects/gas.dm b/code/datums/status_effects/gas.dm index 653238c6358a..fa1ed6ad2afa 100644 --- a/code/datums/status_effects/gas.dm +++ b/code/datums/status_effects/gas.dm @@ -2,11 +2,11 @@ id = "frozen" duration = 100 status_type = STATUS_EFFECT_UNIQUE - alert_type = /obj/screen/alert/status_effect/freon + alert_type = /atom/movable/screen/alert/status_effect/freon var/icon/cube var/can_melt = TRUE -/obj/screen/alert/status_effect/freon +/atom/movable/screen/alert/status_effect/freon name = "Frozen Solid" desc = "You're frozen inside an ice cube, and cannot move! You can still do stuff, like shooting. Resist out of the cube!" icon_state = "frozen" diff --git a/code/datums/status_effects/magic_disguise.dm b/code/datums/status_effects/magic_disguise.dm index 9da1fb8dc39b..97a3640de2b3 100644 --- a/code/datums/status_effects/magic_disguise.dm +++ b/code/datums/status_effects/magic_disguise.dm @@ -2,11 +2,11 @@ id = "magic_disguise" duration = -1 tick_interval = -1 - alert_type = /obj/screen/alert/status_effect/magic_disguise + alert_type = /atom/movable/screen/alert/status_effect/magic_disguise status_type = STATUS_EFFECT_REPLACE var/datum/icon_snapshot/disguise -/obj/screen/alert/status_effect/magic_disguise +/atom/movable/screen/alert/status_effect/magic_disguise name = "Disguised" desc = "You are disguised as a crewmember." icon = 'icons/mob/actions/actions.dmi' diff --git a/code/datums/status_effects/status_effect.dm b/code/datums/status_effects/status_effect.dm index b137ffe36601..65017ada48bb 100644 --- a/code/datums/status_effects/status_effect.dm +++ b/code/datums/status_effects/status_effect.dm @@ -10,8 +10,8 @@ var/status_type = STATUS_EFFECT_UNIQUE //How many of the effect can be on one mob, and what happens when you try to add another var/on_remove_on_mob_delete = FALSE //if we call on_remove() when the mob is deleted var/examine_text //If defined, this text will appear when the mob is examined - to use he, she etc. use "SUBJECTPRONOUN" and replace it in the examines themselves - var/alert_type = /obj/screen/alert/status_effect //the alert thrown by the status effect, contains name and description - var/obj/screen/alert/status_effect/linked_alert = null //the alert itself, if it exists + var/alert_type = /atom/movable/screen/alert/status_effect //the alert thrown by the status effect, contains name and description + var/atom/movable/screen/alert/status_effect/linked_alert = null //the alert itself, if it exists /datum/status_effect/New(list/arguments) on_creation(arglist(arguments)) @@ -28,7 +28,7 @@ duration = world.time + duration tick_interval = world.time + tick_interval if(alert_type) - var/obj/screen/alert/status_effect/A = owner.throw_alert(id, alert_type) + var/atom/movable/screen/alert/status_effect/A = owner.throw_alert(id, alert_type) A.attached_effect = src //so the alert can reference us, if it needs to linked_alert = A //so we can reference the alert, if we need to if(duration > 0 || initial(tick_interval) > 0) //don't process if we don't care @@ -89,12 +89,12 @@ // ALERT HOOK // //////////////// -/obj/screen/alert/status_effect +/atom/movable/screen/alert/status_effect name = "Curse of Mundanity" desc = "You don't feel any different..." var/datum/status_effect/attached_effect -/obj/screen/alert/status_effect/Destroy() +/atom/movable/screen/alert/status_effect/Destroy() if(attached_effect) attached_effect.linked_alert = null attached_effect = null diff --git a/code/game/gamemodes/miniantags/demons/shadow_demon/shadow_demon.dm b/code/game/gamemodes/miniantags/demons/shadow_demon/shadow_demon.dm index ae03f1889dac..045203e0e47c 100644 --- a/code/game/gamemodes/miniantags/demons/shadow_demon/shadow_demon.dm +++ b/code/game/gamemodes/miniantags/demons/shadow_demon/shadow_demon.dm @@ -164,7 +164,7 @@ if(lum_count > 0.2) if(!thrown_alert) thrown_alert = TRUE - throw_alert("light", /obj/screen/alert/lightexposure) + throw_alert("light", /atom/movable/screen/alert/lightexposure) alpha = 255 speed = initial(speed) else diff --git a/code/game/gamemodes/miniantags/guardian/types/assassin.dm b/code/game/gamemodes/miniantags/guardian/types/assassin.dm index 33263f8fb5a8..1e12643a117a 100644 --- a/code/game/gamemodes/miniantags/guardian/types/assassin.dm +++ b/code/game/gamemodes/miniantags/guardian/types/assassin.dm @@ -12,8 +12,8 @@ var/toggle = FALSE var/stealthcooldown = 0 var/default_stealth_cooldown = 10 SECONDS - var/obj/screen/alert/canstealthalert - var/obj/screen/alert/instealthalert + var/atom/movable/screen/alert/canstealthalert + var/atom/movable/screen/alert/instealthalert /mob/living/simple_animal/hostile/guardian/assassin/Initialize(mapload, mob/living/host) . = ..() @@ -88,12 +88,12 @@ if(stealthcooldown <= world.time) if(toggle) if(!instealthalert) - instealthalert = throw_alert("instealth", /obj/screen/alert/instealth) + instealthalert = throw_alert("instealth", /atom/movable/screen/alert/instealth) clear_alert("canstealth") canstealthalert = null else if(!canstealthalert) - canstealthalert = throw_alert("canstealth", /obj/screen/alert/canstealth) + canstealthalert = throw_alert("canstealth", /atom/movable/screen/alert/canstealth) clear_alert("instealth") instealthalert = null else diff --git a/code/game/gamemodes/miniantags/guardian/types/charger.dm b/code/game/gamemodes/miniantags/guardian/types/charger.dm index 4e293a639d27..fd5ae62d462a 100644 --- a/code/game/gamemodes/miniantags/guardian/types/charger.dm +++ b/code/game/gamemodes/miniantags/guardian/types/charger.dm @@ -11,13 +11,13 @@ tech_fluff_string = "Boot sequence complete. Charge modules loaded. Holoparasite swarm online." bio_fluff_string = "Your scarab swarm finishes mutating and stirs to life, ready to deal damage." var/charging = FALSE - var/obj/screen/alert/chargealert + var/atom/movable/screen/alert/chargealert /mob/living/simple_animal/hostile/guardian/charger/Life() . = ..() if(ranged_cooldown <= world.time) if(!chargealert) - chargealert = throw_alert("charge", /obj/screen/alert/cancharge) + chargealert = throw_alert("charge", /atom/movable/screen/alert/cancharge) else clear_alert("charge") chargealert = null diff --git a/code/game/gamemodes/miniantags/morph/spells/ambush.dm b/code/game/gamemodes/miniantags/morph/spells/ambush.dm index 2713a05beb05..36da7da9f922 100644 --- a/code/game/gamemodes/miniantags/morph/spells/ambush.dm +++ b/code/game/gamemodes/miniantags/morph/spells/ambush.dm @@ -40,7 +40,7 @@ id = "morph_ambush" duration = -1 tick_interval = MORPH_AMBUSH_PERFECTION_TIME - alert_type = /obj/screen/alert/status_effect/morph_ambush + alert_type = /atom/movable/screen/alert/status_effect/morph_ambush /datum/status_effect/morph_ambush/tick() STOP_PROCESSING(SSfastprocess, src) @@ -49,7 +49,7 @@ linked_alert.name = "Perfect Ambush!" linked_alert.desc = "You have prepared an ambush! Your disguise is flawless!" -/obj/screen/alert/status_effect/morph_ambush +/atom/movable/screen/alert/status_effect/morph_ambush name = "Ambush!" desc = "You have prepared an ambush!" icon_state = "morph_ambush" diff --git a/code/game/gamemodes/miniantags/pulsedemon/pulsedemon.dm b/code/game/gamemodes/miniantags/pulsedemon/pulsedemon.dm index 155cb343461f..b56ff3677864 100644 --- a/code/game/gamemodes/miniantags/pulsedemon/pulsedemon.dm +++ b/code/game/gamemodes/miniantags/pulsedemon/pulsedemon.dm @@ -502,7 +502,7 @@ // 2 * initial_rate - upgrade_level rate += initial(health_loss_rate) adjustHealth(rate) - throw_alert(ALERT_CATEGORY_NOPOWER, /obj/screen/alert/pulse_nopower) + throw_alert(ALERT_CATEGORY_NOPOWER, /atom/movable/screen/alert/pulse_nopower) if(regen_lock > 0) if(--regen_lock == 0) @@ -704,7 +704,7 @@ return visible_message("[src] [pick("fizzles", "wails", "flails")] in anguish!") playsound(get_turf(src), pick(hurt_sounds), 30, TRUE) - throw_alert(ALERT_CATEGORY_NOREGEN, /obj/screen/alert/pulse_noregen) + throw_alert(ALERT_CATEGORY_NOREGEN, /atom/movable/screen/alert/pulse_noregen) switch(severity) if(EMP_LIGHT) adjustHealth(round(max(initial(health) / 4, round(maxHealth / 8)))) @@ -843,12 +843,12 @@ cell_location.update_icon() //update power meters and such cell_to_charge.update_icon() -/obj/screen/alert/pulse_nopower +/atom/movable/screen/alert/pulse_nopower name = "No Power" desc = "You are not connected to a cable or machine and are losing health!" icon_state = "pd_nopower" -/obj/screen/alert/pulse_noregen +/atom/movable/screen/alert/pulse_noregen name = "Regeneration Stalled" desc = "You've been EMP'd and cannot regenerate health!" icon_state = "pd_noregen" diff --git a/code/game/gamemodes/wizard/soulstone.dm b/code/game/gamemodes/wizard/soulstone.dm index 74b672babc58..e983c7ed57fc 100644 --- a/code/game/gamemodes/wizard/soulstone.dm +++ b/code/game/gamemodes/wizard/soulstone.dm @@ -144,7 +144,7 @@ SEND_SOUND(player_client, sound('sound/misc/notice2.ogg')) window_flash(player_client) - var/obj/screen/alert/notify_soulstone/A = player_mob.throw_alert("\ref[src]_soulstone_thingy", /obj/screen/alert/notify_soulstone) + var/atom/movable/screen/alert/notify_soulstone/A = player_mob.throw_alert("\ref[src]_soulstone_thingy", /atom/movable/screen/alert/notify_soulstone) if(player_client.prefs && player_client.prefs.UI_style) A.icon = ui_style2icon(player_client.prefs.UI_style) diff --git a/code/game/machinery/camera/camera.dm b/code/game/machinery/camera/camera.dm index dcd66b06fba9..e018440008f7 100644 --- a/code/game/machinery/camera/camera.dm +++ b/code/game/machinery/camera/camera.dm @@ -390,7 +390,7 @@ /obj/machinery/camera/get_remote_view_fullscreens(mob/user) if(view_range == short_range) //unfocused - user.overlay_fullscreen("remote_view", /obj/screen/fullscreen/impaired, 2) + user.overlay_fullscreen("remote_view", /atom/movable/screen/fullscreen/impaired, 2) /obj/machinery/camera/update_remote_sight(mob/living/user) if(isXRay() && isAI(user)) diff --git a/code/game/machinery/computer/camera_advanced.dm b/code/game/machinery/computer/camera_advanced.dm index 792ce397af4e..bd648b911026 100644 --- a/code/game/machinery/computer/camera_advanced.dm +++ b/code/game/machinery/computer/camera_advanced.dm @@ -206,9 +206,9 @@ var/obj/machinery/camera/final = T[camera] playsound(origin, "terminal_type", 25, 0) if(final) - playsound(origin, 'sound/machines/terminal_prompt_confirm.ogg', 25, 0) + playsound(origin, 'sound/machines/terminal_prompt_confirm.ogg', 25, FALSE) remote_eye.setLoc(get_turf(final)) - C.overlay_fullscreen("flash", /obj/screen/fullscreen/flash/noise) + C.overlay_fullscreen("flash", /atom/movable/screen/fullscreen/flash/noise) C.clear_fullscreen("flash", 3) //Shorter flash than normal since it's an ~~advanced~~ console! else - playsound(origin, 'sound/machines/terminal_prompt_deny.ogg', 25, 0) + playsound(origin, 'sound/machines/terminal_prompt_deny.ogg', 25, FALSE) diff --git a/code/game/machinery/computer/camera_console.dm b/code/game/machinery/computer/camera_console.dm index 18cf4997b358..046d2445b448 100644 --- a/code/game/machinery/computer/camera_console.dm +++ b/code/game/machinery/computer/camera_console.dm @@ -15,10 +15,10 @@ // Stuff needed to render the map var/map_name var/const/default_map_size = 15 - var/obj/screen/map_view/cam_screen + var/atom/movable/screen/map_view/cam_screen /// All the plane masters that need to be applied. var/list/cam_plane_masters - var/obj/screen/background/cam_background + var/atom/movable/screen/background/cam_background // Parent object this camera is assigned to. Used for camera bugs var/atom/movable/parent @@ -39,8 +39,8 @@ cam_screen.del_on_map_removal = FALSE cam_screen.screen_loc = "[map_name]:1,1" cam_plane_masters = list() - for(var/plane in subtypesof(/obj/screen/plane_master)) - var/obj/screen/instance = new plane() + for(var/plane in subtypesof(/atom/movable/screen/plane_master)) + var/atom/movable/screen/instance = new plane() instance.assigned_map = map_name instance.del_on_map_removal = FALSE instance.screen_loc = "[map_name]:CENTER" diff --git a/code/game/machinery/computer/law.dm b/code/game/machinery/computer/law.dm index 39e01428a41e..211400fcef2d 100644 --- a/code/game/machinery/computer/law.dm +++ b/code/game/machinery/computer/law.dm @@ -94,10 +94,10 @@ /// pushes an alert to the AI and its borgs about the law changes /obj/machinery/computer/aiupload/proc/alert_silicons() current.show_laws() - current.throw_alert("newlaw", /obj/screen/alert/newlaw) + current.throw_alert("newlaw", /atom/movable/screen/alert/newlaw) for(var/mob/living/silicon/robot/borg in current.connected_robots) borg.cmd_show_laws() - borg.throw_alert("newlaw", /obj/screen/alert/newlaw) + borg.throw_alert("newlaw", /atom/movable/screen/alert/newlaw) /obj/machinery/computer/aiupload/attack_hand(mob/user) if(stat & NOPOWER) diff --git a/code/game/mecha/mecha.dm b/code/game/mecha/mecha.dm index 3af23927e211..61045970526b 100644 --- a/code/game/mecha/mecha.dm +++ b/code/game/mecha/mecha.dm @@ -329,7 +329,7 @@ if(move_type & (MECHAMOVE_RAND | MECHAMOVE_STEP) && occupant) var/obj/machinery/atmospherics/unary/portables_connector/possible_port = locate(/obj/machinery/atmospherics/unary/portables_connector) in loc if(possible_port) - var/obj/screen/alert/mech_port_available/A = occupant.throw_alert("mechaport", /obj/screen/alert/mech_port_available) + var/atom/movable/screen/alert/mech_port_available/A = occupant.throw_alert("mechaport", /atom/movable/screen/alert/mech_port_available) if(A) A.target = possible_port else @@ -1059,10 +1059,10 @@ if(occupant) occupant.clear_alert("mechaport") - occupant.throw_alert("mechaport_d", /obj/screen/alert/mech_port_disconnect) + occupant.throw_alert("mechaport_d", /atom/movable/screen/alert/mech_port_disconnect) log_message("Connected to gas port.") - return 1 + return TRUE /obj/mecha/proc/disconnect() if(!connected_port) @@ -1167,9 +1167,9 @@ else if(!hasInternalDamage()) SEND_SOUND(occupant, sound(nominalsound, volume = 50)) if(state) - H.throw_alert("locked", /obj/screen/alert/mech_maintenance) + H.throw_alert("locked", /atom/movable/screen/alert/mech_maintenance) if(connected_port) - H.throw_alert("mechaport_d", /obj/screen/alert/mech_port_disconnect) + H.throw_alert("mechaport_d", /atom/movable/screen/alert/mech_port_disconnect) return TRUE else return FALSE @@ -1394,20 +1394,20 @@ if(0.75 to INFINITY) occupant.clear_alert("charge") if(0.5 to 0.75) - occupant.throw_alert("charge", /obj/screen/alert/mech_lowcell, 1) + occupant.throw_alert("charge", /atom/movable/screen/alert/mech_lowcell, 1) if(0.25 to 0.5) - occupant.throw_alert("charge", /obj/screen/alert/mech_lowcell, 2) + occupant.throw_alert("charge", /atom/movable/screen/alert/mech_lowcell, 2) if(power_warned) power_warned = FALSE if(0.01 to 0.25) - occupant.throw_alert("charge", /obj/screen/alert/mech_lowcell, 3) + occupant.throw_alert("charge", /atom/movable/screen/alert/mech_lowcell, 3) if(!power_warned) SEND_SOUND(occupant, sound(lowpowersound, volume = 50)) power_warned = TRUE else - occupant.throw_alert("charge", /obj/screen/alert/mech_emptycell) + occupant.throw_alert("charge", /atom/movable/screen/alert/mech_emptycell) else - occupant.throw_alert("charge", /obj/screen/alert/mech_nocell) + occupant.throw_alert("charge", /atom/movable/screen/alert/mech_nocell) /obj/mecha/proc/reset_icon() if(initial_icon) diff --git a/code/game/mecha/mecha_topic.dm b/code/game/mecha/mecha_topic.dm index 24352468fe4c..d3cb66f5e467 100644 --- a/code/game/mecha/mecha_topic.dm +++ b/code/game/mecha/mecha_topic.dm @@ -331,7 +331,7 @@ state = 1 to_chat(user, "The securing bolts are now exposed.") if(occupant) - occupant.throw_alert("locked", /obj/screen/alert/mech_maintenance) + occupant.throw_alert("locked", /atom/movable/screen/alert/mech_maintenance) else if(state==1) state = 0 to_chat(user, "The securing bolts are now hidden.") diff --git a/code/game/objects/buckling.dm b/code/game/objects/buckling.dm index d6496b0f723f..9c82f3087b65 100644 --- a/code/game/objects/buckling.dm +++ b/code/game/objects/buckling.dm @@ -90,7 +90,7 @@ M.setDir(dir) buckled_mobs |= M ADD_TRAIT(M, TRAIT_IMMOBILIZED, BUCKLING_TRAIT) - M.throw_alert("buckled", /obj/screen/alert/restrained/buckled) + M.throw_alert("buckled", /atom/movable/screen/alert/restrained/buckled) post_buckle_mob(M) SEND_SIGNAL(src, COMSIG_MOVABLE_BUCKLE, M, force) return TRUE diff --git a/code/game/objects/items/weapons/holy_weapons.dm b/code/game/objects/items/weapons/holy_weapons.dm index c66d56f2eaa4..1519d002eeac 100644 --- a/code/game/objects/items/weapons/holy_weapons.dm +++ b/code/game/objects/items/weapons/holy_weapons.dm @@ -372,7 +372,7 @@ /datum/hud/sword/New(mob/user) ..() - mymob.healths = new /obj/screen/healths() + mymob.healths = new /atom/movable/screen/healths() infodisplay += mymob.healths /mob/living/simple_animal/shade/sword/ClickOn(atom/A, params) diff --git a/code/game/objects/items/weapons/storage/belt.dm b/code/game/objects/items/weapons/storage/belt.dm index a51a93e365fc..cf5b79d57c11 100644 --- a/code/game/objects/items/weapons/storage/belt.dm +++ b/code/game/objects/items/weapons/storage/belt.dm @@ -61,7 +61,7 @@ /obj/item/storage/belt/MouseDrop(obj/over_object, src_location, over_location) var/mob/M = usr - if(!istype(over_object, /obj/screen)) + if(!is_screen_atom(over_object)) return ..() playsound(loc, "rustle", 50, TRUE, -5) if(!M.restrained() && !M.stat && can_use()) diff --git a/code/game/objects/items/weapons/storage/internal.dm b/code/game/objects/items/weapons/storage/internal.dm index cd73c8b7e101..ea22a318deb5 100644 --- a/code/game/objects/items/weapons/storage/internal.dm +++ b/code/game/objects/items/weapons/storage/internal.dm @@ -37,10 +37,10 @@ if(over_object == user && Adjacent(user)) // this must come before the screen objects only block open(user) - return 0 + return FALSE - if(!istype(over_object, /obj/screen)) - return 1 + if(!is_screen_atom(over_object)) + return TRUE //makes sure master_item is equipped before putting it in hand, so that we can't drag it into our hand from miles away. //there's got to be a better way of doing this... diff --git a/code/game/objects/items/weapons/storage/storage_base.dm b/code/game/objects/items/weapons/storage/storage_base.dm index b0cde0fb715a..d929b202cc86 100644 --- a/code/game/objects/items/weapons/storage/storage_base.dm +++ b/code/game/objects/items/weapons/storage/storage_base.dm @@ -26,8 +26,8 @@ var/max_combined_w_class = 14 /// The number of storage slots in this container. var/storage_slots = 7 - var/obj/screen/storage/boxes = null - var/obj/screen/close/closer = null + var/atom/movable/screen/storage/boxes = null + var/atom/movable/screen/close/closer = null /// Set this to make it possible to use this item in an inverse way, so you can have the item in your hand and click items on the floor to pick them up. var/use_to_pickup = FALSE @@ -59,14 +59,14 @@ populate_contents() - boxes = new /obj/screen/storage() + boxes = new /atom/movable/screen/storage() boxes.name = "storage" boxes.master = src boxes.icon_state = "block" boxes.screen_loc = "7,7 to 10,8" boxes.layer = HUD_LAYER boxes.plane = HUD_PLANE - closer = new /obj/screen/close() + closer = new /atom/movable/screen/close() closer.master = src closer.icon_state = "backpack_close" closer.layer = ABOVE_HUD_LAYER @@ -136,7 +136,7 @@ update_icon() // For content-sensitive icons return - if(!(istype(over_object, /obj/screen))) + if(!is_screen_atom(over_object)) return ..() if(!(loc == M) || (loc && loc.loc == M)) return diff --git a/code/game/objects/structures/crates_lockers/closets.dm b/code/game/objects/structures/crates_lockers/closets.dm index 0e5146890c78..9acb55729184 100644 --- a/code/game/objects/structures/crates_lockers/closets.dm +++ b/code/game/objects/structures/crates_lockers/closets.dm @@ -233,7 +233,7 @@ /obj/structure/closet/MouseDrop_T(atom/movable/O, mob/living/user) ..() - if(istype(O, /obj/screen)) //fix for HUD elements making their way into the world -Pete + if(is_screen_atom(O)) //fix for HUD elements making their way into the world -Pete return if(O.loc == user) return @@ -371,7 +371,7 @@ /obj/structure/closet/get_remote_view_fullscreens(mob/user) if(user.stat == DEAD || !(user.sight & (SEEOBJS|SEEMOBS))) - user.overlay_fullscreen("remote_view", /obj/screen/fullscreen/impaired, 1) + user.overlay_fullscreen("remote_view", /atom/movable/screen/fullscreen/impaired, 1) /obj/structure/closet/ex_act(severity) for(var/atom/A in contents) diff --git a/code/game/objects/structures/morgue.dm b/code/game/objects/structures/morgue.dm index e7281879e280..5d80c18fe1a4 100644 --- a/code/game/objects/structures/morgue.dm +++ b/code/game/objects/structures/morgue.dm @@ -241,7 +241,7 @@ /obj/structure/morgue/get_remote_view_fullscreens(mob/user) if(user.stat == DEAD || !(user.sight & (SEEOBJS|SEEMOBS))) - user.overlay_fullscreen("remote_view", /obj/screen/fullscreen/impaired, 2) + user.overlay_fullscreen("remote_view", /atom/movable/screen/fullscreen/impaired, 2) /* * Morgue tray @@ -534,7 +534,7 @@ GLOBAL_LIST_EMPTY(crematoriums) /obj/structure/crematorium/get_remote_view_fullscreens(mob/user) if(user.stat == DEAD || !(user.sight & (SEEOBJS|SEEMOBS))) - user.overlay_fullscreen("remote_view", /obj/screen/fullscreen/impaired, 2) + user.overlay_fullscreen("remote_view", /atom/movable/screen/fullscreen/impaired, 2) /* * Crematorium tray diff --git a/code/game/objects/structures/safe.dm b/code/game/objects/structures/safe.dm index 63eaf9932be9..f3bd37e0600b 100644 --- a/code/game/objects/structures/safe.dm +++ b/code/game/objects/structures/safe.dm @@ -359,13 +359,13 @@ GLOBAL_LIST_EMPTY(safes) drill.song.start_playing(driller) notify_ghosts("Security assault in progress in [get_area(src)]!", enter_link="(Click to jump to!)", source = src, action = NOTIFY_FOLLOW) for(var/mob/dead/observer/O in GLOB.player_list) - O.overlay_fullscreen("payback", /obj/screen/fullscreen/payback, 0) + O.overlay_fullscreen("payback", /atom/movable/screen/fullscreen/payback, 0) addtimer(CALLBACK(src, PROC_REF(ghost_payback_phase_2)), 2.7 SECONDS) /obj/structure/safe/proc/ghost_payback_phase_2() for(var/mob/dead/observer/O in GLOB.player_list) O.clear_fullscreen("payback") - O.overlay_fullscreen("payback", /obj/screen/fullscreen/payback, 1) + O.overlay_fullscreen("payback", /atom/movable/screen/fullscreen/payback, 1) addtimer(CALLBACK(src, PROC_REF(clear_payback)), 2 MINUTES) /obj/structure/safe/proc/clear_payback() diff --git a/code/game/objects/structures/stool_bed_chair_nest/alien_nests.dm b/code/game/objects/structures/stool_bed_chair_nest/alien_nests.dm index 10a43fe214d3..0c3dd3edabc1 100644 --- a/code/game/objects/structures/stool_bed_chair_nest/alien_nests.dm +++ b/code/game/objects/structures/stool_bed_chair_nest/alien_nests.dm @@ -75,7 +75,7 @@ if(istype(hugger_mask) && !hugger_mask.sterile && (locate(/obj/item/organ/internal/body_egg/alien_embryo) in buckled_mob.internal_organs)) if(user && !isalien(user)) return - buckled_mob.throw_alert("ghost_nest", /obj/screen/alert/ghost) + buckled_mob.throw_alert("ghost_nest", /atom/movable/screen/alert/ghost) to_chat(buckled_mob, "You may now ghost, you keep respawnability in this state. You will be alerted when you're removed from the nest.") /obj/structure/bed/nest/post_buckle_mob(mob/living/M) diff --git a/code/modules/antagonists/vampire/vamp_datum.dm b/code/modules/antagonists/vampire/vamp_datum.dm index 3b5b91c81a0b..d5a096bcef52 100644 --- a/code/modules/antagonists/vampire/vamp_datum.dm +++ b/code/modules/antagonists/vampire/vamp_datum.dm @@ -260,7 +260,7 @@ if(owner.current.hud_used) var/datum/hud/hud = owner.current.hud_used if(!hud.vampire_blood_display) - hud.vampire_blood_display = new /obj/screen() + hud.vampire_blood_display = new /atom/movable/screen() hud.vampire_blood_display.name = "Usable Blood" hud.vampire_blood_display.icon_state = "blood_display" hud.vampire_blood_display.screen_loc = "WEST:6,CENTER-1:15" diff --git a/code/modules/atmospherics/machinery/components/unary_devices/cryo.dm b/code/modules/atmospherics/machinery/components/unary_devices/cryo.dm index f35ceb6ef5d7..f9867a8c621b 100644 --- a/code/modules/atmospherics/machinery/components/unary_devices/cryo.dm +++ b/code/modules/atmospherics/machinery/components/unary_devices/cryo.dm @@ -482,7 +482,7 @@ return /obj/machinery/atmospherics/unary/cryo_cell/get_remote_view_fullscreens(mob/user) - user.overlay_fullscreen("remote_view", /obj/screen/fullscreen/impaired, 1) + user.overlay_fullscreen("remote_view", /atom/movable/screen/fullscreen/impaired, 1) /obj/machinery/atmospherics/unary/cryo_cell/update_remote_sight(mob/living/user) return //we don't see the pipe network while inside cryo. diff --git a/code/modules/buildmode/buildmode.dm b/code/modules/buildmode/buildmode.dm index ce7fe813a6fe..0035bfbb491a 100644 --- a/code/modules/buildmode/buildmode.dm +++ b/code/modules/buildmode/buildmode.dm @@ -12,10 +12,10 @@ var/switch_state = BM_SWITCHSTATE_NONE var/switch_width = 5 // modeswitch UI - var/obj/screen/buildmode/mode/modebutton + var/atom/movable/screen/buildmode/mode/modebutton var/list/modeswitch_buttons = list() // dirswitch UI - var/obj/screen/buildmode/bdir/dirbutton + var/atom/movable/screen/buildmode/bdir/dirbutton var/list/dirswitch_buttons = list() /datum/click_intercept/buildmode/New() @@ -32,23 +32,23 @@ /datum/click_intercept/buildmode/create_buttons() // keep a reference so we can update it upon mode switch - modebutton = new /obj/screen/buildmode/mode(src) + modebutton = new /atom/movable/screen/buildmode/mode(src) buttons += modebutton - buttons += new /obj/screen/buildmode/help(src) + buttons += new /atom/movable/screen/buildmode/help(src) // keep a reference so we can update it upon dir switch - dirbutton = new /obj/screen/buildmode/bdir(src) + dirbutton = new /atom/movable/screen/buildmode/bdir(src) buttons += dirbutton - buttons += new /obj/screen/buildmode/quit(src) + buttons += new /atom/movable/screen/buildmode/quit(src) // build the list of modeswitching buttons - build_options_grid(subtypesof(/datum/buildmode_mode), modeswitch_buttons, /obj/screen/buildmode/modeswitch) - build_options_grid(list(SOUTH,EAST,WEST,NORTH,NORTHWEST), dirswitch_buttons, /obj/screen/buildmode/dirswitch) + build_options_grid(subtypesof(/datum/buildmode_mode), modeswitch_buttons, /atom/movable/screen/buildmode/modeswitch) + build_options_grid(list(SOUTH,EAST,WEST,NORTH,NORTHWEST), dirswitch_buttons, /atom/movable/screen/buildmode/dirswitch) /datum/click_intercept/buildmode/proc/build_options_grid(list/elements, list/buttonslist, buttontype) var/pos_idx = 0 for(var/thing in elements) var/x = pos_idx % switch_width var/y = FLOOR(pos_idx / switch_width, 1) - var/obj/screen/buildmode/B = new buttontype(src, thing) + var/atom/movable/screen/buildmode/B = new buttontype(src, thing) // this stuff is equivalent to the commented out line for 511 compat // B.screen_loc = "NORTH-[(1 + 0.5 + y*1.5)],WEST+[0.5 + x*1.5]" B.screen_loc = "NORTH-[1 + FLOOR(0.5 + 1.5*y, 1) + ((y + 1) % 2)]:[16*((y + 1) % 2)],WEST+[FLOOR(0.5 + 1.5*x, 1)]:[16*((x + 1) % 2)]" diff --git a/code/modules/buildmode/buildmode_hud.dm b/code/modules/buildmode/buildmode_hud.dm index 7c18de6be90c..3c26c03be6cc 100644 --- a/code/modules/buildmode/buildmode_hud.dm +++ b/code/modules/buildmode/buildmode_hud.dm @@ -1,22 +1,22 @@ -/obj/screen/buildmode +/atom/movable/screen/buildmode icon = 'icons/misc/buildmode.dmi' var/datum/click_intercept/buildmode/bd plane = HUD_PLANE_BUILDMODE -/obj/screen/buildmode/New(bld) +/atom/movable/screen/buildmode/New(bld) bd = bld return ..() -/obj/screen/buildmode/Destroy() +/atom/movable/screen/buildmode/Destroy() bd = null return ..() -/obj/screen/buildmode/mode +/atom/movable/screen/buildmode/mode name = "Toggle Mode" icon_state = "buildmode_basic" screen_loc = "NORTH,WEST" -/obj/screen/buildmode/mode/Click(location, control, params) +/atom/movable/screen/buildmode/mode/Click(location, control, params) var/list/pa = params2list(params) if(pa.Find("left")) @@ -26,64 +26,64 @@ update_icon() return TRUE -/obj/screen/buildmode/mode/update_icon_state() +/atom/movable/screen/buildmode/mode/update_icon_state() icon_state = bd.mode.get_button_iconstate() -/obj/screen/buildmode/help +/atom/movable/screen/buildmode/help icon_state = "buildhelp" screen_loc = "NORTH,WEST+1" name = "Buildmode Help" -/obj/screen/buildmode/help/Click() +/atom/movable/screen/buildmode/help/Click() bd.mode.show_help(usr) return TRUE -/obj/screen/buildmode/bdir +/atom/movable/screen/buildmode/bdir icon_state = "build" screen_loc = "NORTH,WEST+2" name = "Change Dir" -/obj/screen/buildmode/bdir/update_icon(updates=UPDATE_ICON_STATE) +/atom/movable/screen/buildmode/bdir/update_icon(updates=UPDATE_ICON_STATE) dir = bd.build_dir ..() -/obj/screen/buildmode/bdir/Click() +/atom/movable/screen/buildmode/bdir/Click() bd.toggle_dirswitch() update_icon() return TRUE // used to switch between modes -/obj/screen/buildmode/modeswitch +/atom/movable/screen/buildmode/modeswitch var/datum/buildmode_mode/modetype -/obj/screen/buildmode/modeswitch/New(bld, mt) +/atom/movable/screen/buildmode/modeswitch/New(bld, mt) modetype = mt icon_state = "buildmode_[initial(modetype.key)]" name = initial(modetype.key) return ..(bld) -/obj/screen/buildmode/modeswitch/Click() +/atom/movable/screen/buildmode/modeswitch/Click() bd.change_mode(modetype) return TRUE // used to switch between dirs -/obj/screen/buildmode/dirswitch +/atom/movable/screen/buildmode/dirswitch icon_state = "build" -/obj/screen/buildmode/dirswitch/New(bld, newdir) +/atom/movable/screen/buildmode/dirswitch/New(bld, newdir) dir = newdir name = dir2text(dir) return ..(bld) -/obj/screen/buildmode/dirswitch/Click() +/atom/movable/screen/buildmode/dirswitch/Click() bd.change_dir(dir) return TRUE -/obj/screen/buildmode/quit +/atom/movable/screen/buildmode/quit icon_state = "buildquit" screen_loc = "NORTH,WEST+3" name = "Quit Buildmode" -/obj/screen/buildmode/quit/Click() +/atom/movable/screen/buildmode/quit/Click() bd.quit() return TRUE diff --git a/code/modules/client/client_defines.dm b/code/modules/client/client_defines.dm index 390f425611c9..1cb3985bae65 100644 --- a/code/modules/client/client_defines.dm +++ b/code/modules/client/client_defines.dm @@ -56,7 +56,7 @@ preload_rsc = 0 // This is 0 so we can set it to an URL once the player logs in and have them download the resources from a different server. - var/obj/screen/click_catcher/void + var/atom/movable/screen/click_catcher/void var/ip_intel = "Disabled" @@ -66,7 +66,7 @@ var/datum/tooltip/tooltips // Overlay for showing debug info - var/obj/screen/debugtextholder/debug_text_overlay + var/atom/movable/screen/debugtextholder/debug_text_overlay /// Persistent storage for the flavour text of examined atoms. var/list/description_holders = list() diff --git a/code/modules/client/preference/link_processing.dm b/code/modules/client/preference/link_processing.dm index 894810687045..01a8dacd8fc4 100644 --- a/code/modules/client/preference/link_processing.dm +++ b/code/modules/client/preference/link_processing.dm @@ -1012,7 +1012,7 @@ if("thought_bubble") toggles2 ^= PREFTOGGLE_2_THOUGHT_BUBBLE if(length(parent?.screen)) - var/obj/screen/plane_master/point/PM = locate(/obj/screen/plane_master/point) in parent.screen + var/atom/movable/screen/plane_master/point/PM = locate(/atom/movable/screen/plane_master/point) in parent.screen PM.backdrop(parent.mob) if("be_special") @@ -1092,7 +1092,7 @@ if("ambientocclusion") toggles ^= PREFTOGGLE_AMBIENT_OCCLUSION if(length(parent?.screen)) - var/obj/screen/plane_master/game_world/PM = locate(/obj/screen/plane_master/game_world) in parent.screen + var/atom/movable/screen/plane_master/game_world/PM = locate(/atom/movable/screen/plane_master/game_world) in parent.screen PM.backdrop(parent.mob) if("parallax") diff --git a/code/modules/events/meteors_event.dm b/code/modules/events/meteors_event.dm index 24ede06bf922..39a2f79c5a6b 100644 --- a/code/modules/events/meteors_event.dm +++ b/code/modules/events/meteors_event.dm @@ -3,11 +3,11 @@ endWhen = 7 var/next_meteor = 6 var/waves = 1 - var/obj/screen/alert/augury/meteor/screen_alert + var/atom/movable/screen/alert/augury/meteor/screen_alert /datum/event/meteor_wave/setup() for(var/mob/dead/observer/O in GLOB.dead_mob_list) - var/obj/screen/alert/augury/meteor/A = O.throw_alert("\ref[src]_augury", /obj/screen/alert/augury/meteor) + var/atom/movable/screen/alert/augury/meteor/A = O.throw_alert("\ref[src]_augury", /atom/movable/screen/alert/augury/meteor) if(A) screen_alert = A @@ -23,7 +23,7 @@ /datum/event/meteor_wave/tick() // keep observers updated with the alert for(var/mob/dead/observer/O in GLOB.dead_mob_list) - O.throw_alert("\ref[src]_augury", /obj/screen/alert/augury/meteor) + O.throw_alert("\ref[src]_augury", /atom/movable/screen/alert/augury/meteor) if(waves && activeFor >= next_meteor) INVOKE_ASYNC(GLOBAL_PROC, GLOBAL_PROC_REF(spawn_meteors), get_meteor_count(), get_meteors()) next_meteor += rand(15, 30) / severity diff --git a/code/modules/games/cards.dm b/code/modules/games/cards.dm index eb3029bd4dac..0093de600011 100644 --- a/code/modules/games/cards.dm +++ b/code/modules/games/cards.dm @@ -239,7 +239,7 @@ if(!ishuman(M)) return - if(istype(over, /obj/screen)) + if(is_screen_atom(over)) if(!remove_item_from_storage(get_turf(M))) M.unEquip(src) switch(over.name) diff --git a/code/modules/hallucinations/effects/moderate.dm b/code/modules/hallucinations/effects/moderate.dm index 187639a5cc55..3e8a8f883e92 100644 --- a/code/modules/hallucinations/effects/moderate.dm +++ b/code/modules/hallucinations/effects/moderate.dm @@ -15,19 +15,19 @@ duration = list(10 SECONDS, 25 SECONDS) /// The possible alerts to be displayed. Key is alert type, value is alert category. var/list/alerts = list( - /obj/screen/alert/not_enough_oxy = "not_enough_oxy", - /obj/screen/alert/not_enough_tox = "not_enough_tox", - /obj/screen/alert/not_enough_co2 = "not_enough_co2", - /obj/screen/alert/not_enough_nitro = "not_enough_nitro", - /obj/screen/alert/too_much_oxy = "too_much_oxy", - /obj/screen/alert/too_much_co2 = "too_much_co2", - /obj/screen/alert/too_much_tox = "too_much_tox", - /obj/screen/alert/hunger/fat = "nutrition", - /obj/screen/alert/hunger/starving = "nutrition", - /obj/screen/alert/hot = "temp", - /obj/screen/alert/cold = "temp", - /obj/screen/alert/highpressure = "pressure", - /obj/screen/alert/lowpressure = "pressure", + /atom/movable/screen/alert/not_enough_oxy = "not_enough_oxy", + /atom/movable/screen/alert/not_enough_tox = "not_enough_tox", + /atom/movable/screen/alert/not_enough_co2 = "not_enough_co2", + /atom/movable/screen/alert/not_enough_nitro = "not_enough_nitro", + /atom/movable/screen/alert/too_much_oxy = "too_much_oxy", + /atom/movable/screen/alert/too_much_co2 = "too_much_co2", + /atom/movable/screen/alert/too_much_tox = "too_much_tox", + /atom/movable/screen/alert/hunger/fat = "nutrition", + /atom/movable/screen/alert/hunger/starving = "nutrition", + /atom/movable/screen/alert/hot = "temp", + /atom/movable/screen/alert/cold = "temp", + /atom/movable/screen/alert/highpressure = "pressure", + /atom/movable/screen/alert/lowpressure = "pressure", ) /// Alert severities. Only needed for some alerts such as temperature or pressure. Key is alert category, value is severity. var/list/severities = list( diff --git a/code/modules/maptext_alerts/location_blurbs.dm b/code/modules/maptext_alerts/location_blurbs.dm index b50b6b101308..050ca0a42eab 100644 --- a/code/modules/maptext_alerts/location_blurbs.dm +++ b/code/modules/maptext_alerts/location_blurbs.dm @@ -1,4 +1,4 @@ -/obj/screen/text/blurb +/atom/movable/screen/text/blurb maptext_height = 64 maptext_width = 512 screen_loc = "LEFT+1,BOTTOM+2" @@ -33,7 +33,7 @@ var/background_a = 0 -/obj/screen/text/blurb/proc/show_to(list/client/viewers) +/atom/movable/screen/text/blurb/proc/show_to(list/client/viewers) if(!blurb_text || !viewers) return @@ -52,12 +52,12 @@ print_text() if(hold_for) - addtimer(CALLBACK(src, TYPE_PROC_REF(/obj/screen/text/blurb, hide_from), viewers), hold_for) + addtimer(CALLBACK(src, TYPE_PROC_REF(/atom/movable/screen/text/blurb, hide_from), viewers), hold_for) else hide_from(viewers) -/obj/screen/text/blurb/proc/get_text_style() +/atom/movable/screen/text/blurb/proc/get_text_style() PRIVATE_PROC(TRUE) return {"\ @@ -69,25 +69,25 @@ color: [text_color]; "} -/obj/screen/text/blurb/proc/hide_from(list/client/viewers) +/atom/movable/screen/text/blurb/proc/hide_from(list/client/viewers) PRIVATE_PROC(TRUE) fade() - addtimer(CALLBACK(src, TYPE_PROC_REF(/obj/screen/text/blurb, remove_from_viewers), viewers), fade_animation_duration) + addtimer(CALLBACK(src, TYPE_PROC_REF(/atom/movable/screen/text/blurb, remove_from_viewers), viewers), fade_animation_duration) -/obj/screen/text/blurb/proc/appear() +/atom/movable/screen/text/blurb/proc/appear() PRIVATE_PROC(TRUE) animate(src, alpha = 255, time = appear_animation_duration) -/obj/screen/text/blurb/proc/fade() +/atom/movable/screen/text/blurb/proc/fade() PRIVATE_PROC(TRUE) animate(src, alpha = 0, time = fade_animation_duration) -/obj/screen/text/blurb/proc/print_text() +/atom/movable/screen/text/blurb/proc/print_text() PRIVATE_PROC(TRUE) var/text_style = get_text_style() @@ -97,10 +97,10 @@ maptext += get_formatted_text_segment(text_style, segment_start, segment_end) sleep(interval) -/obj/screen/text/blurb/proc/get_formatted_text_segment(style, segment_start, segment_end) +/atom/movable/screen/text/blurb/proc/get_formatted_text_segment(style, segment_start, segment_end) return "[copytext_char(blurb_text, segment_start, segment_end)]" -/obj/screen/text/blurb/proc/remove_from_viewers(list/client/viewers) +/atom/movable/screen/text/blurb/proc/remove_from_viewers(list/client/viewers) PRIVATE_PROC(TRUE) for(var/client/viewer as anything in viewers) @@ -116,7 +116,7 @@ return SEND_SOUND(show_blurb_to, sound('sound/machines/typewriter.ogg')) - var/obj/screen/text/blurb/location_blurb = new() + var/atom/movable/screen/text/blurb/location_blurb = new() if(antag_check.antag_datums) for(var/datum/antagonist/role) if(role.custom_blurb()) @@ -146,7 +146,7 @@ if(!length(GLOB.clients)) return - var/obj/screen/text/blurb/server_restart_blurb = new() + var/atom/movable/screen/text/blurb/server_restart_blurb = new() server_restart_blurb.text_color = COLOR_RED server_restart_blurb.blurb_text = "Round is restarting...\n[reason]" server_restart_blurb.hold_for = 90 SECONDS diff --git a/code/modules/maptext_alerts/text_blurbs.dm b/code/modules/maptext_alerts/text_blurbs.dm index 5177e2e129ab..285d39693c76 100644 --- a/code/modules/maptext_alerts/text_blurbs.dm +++ b/code/modules/maptext_alerts/text_blurbs.dm @@ -45,7 +45,7 @@ html_tags += list(html_tag, html_tag + 1, html_tag + 2, html_tag + 3) html_tag = findtext(message, regex(""), html_tag + 3) - var/obj/screen/text/T = new() + var/atom/movable/screen/text/T = new() T.screen_loc = screen_position switch(text_alignment) if("center") diff --git a/code/modules/martial_arts/martial.dm b/code/modules/martial_arts/martial.dm index 17d04d3232ff..e5fa16692b22 100644 --- a/code/modules/martial_arts/martial.dm +++ b/code/modules/martial_arts/martial.dm @@ -463,25 +463,25 @@ /obj/item/bostaff/hit_reaction(mob/living/carbon/human/owner, atom/movable/hitby, attack_text = "the attack", final_block_chance = 0, damage = 0, attack_type = MELEE_ATTACK) if(HAS_TRAIT(src, TRAIT_WIELDED)) return ..() - return 0 + return FALSE -/obj/screen/combo +/atom/movable/screen/combo icon_state = "" mouse_opacity = MOUSE_OPACITY_TRANSPARENT screen_loc = ui_combo layer = ABOVE_HUD_LAYER var/streak -/obj/screen/combo/proc/clear_streak() +/atom/movable/screen/combo/proc/clear_streak() cut_overlays() streak = "" icon_state = "" -/obj/screen/combo/update_icon(updates, _streak) +/atom/movable/screen/combo/update_icon(updates, _streak) streak = _streak return ..() -/obj/screen/combo/update_overlays() +/atom/movable/screen/combo/update_overlays() . = list() for(var/i in 1 to length(streak)) var/intent_text = copytext(streak, i, i + 1) @@ -489,7 +489,7 @@ intent_icon.pixel_x = 16 * (i - 1) - 8 * length(streak) . += intent_icon -/obj/screen/combo/update_icon_state() +/atom/movable/screen/combo/update_icon_state() icon_state = "" if(!streak) return diff --git a/code/modules/mining/lavaland/loot/tendril_loot.dm b/code/modules/mining/lavaland/loot/tendril_loot.dm index 5c643f07398c..fb565ec9893e 100644 --- a/code/modules/mining/lavaland/loot/tendril_loot.dm +++ b/code/modules/mining/lavaland/loot/tendril_loot.dm @@ -66,9 +66,9 @@ return if(!M.restrained() && !M.stat) - playsound(loc, "rustle", 50, 1, -5) + playsound(loc, "rustle", 50, TRUE, -5) - if(istype(over_object, /obj/screen/inventory/hand)) + if(istype(over_object, /atom/movable/screen/inventory/hand)) if(!M.unEquip(src)) return M.put_in_active_hand(src) diff --git a/code/modules/mob/dead/observer/observer_base.dm b/code/modules/mob/dead/observer/observer_base.dm index f766af39a439..07efb712c6f8 100644 --- a/code/modules/mob/dead/observer/observer_base.dm +++ b/code/modules/mob/dead/observer/observer_base.dm @@ -314,7 +314,7 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp if(message) to_chat(src, "[message]") if(source) - var/obj/screen/alert/A = throw_alert("\ref[source]_notify_cloning", /obj/screen/alert/notify_cloning) + var/atom/movable/screen/alert/A = throw_alert("\ref[source]_notify_cloning", /atom/movable/screen/alert/notify_cloning) if(A) if(client && client.prefs && client.prefs.UI_style) A.icon = ui_style2icon(client.prefs.UI_style) diff --git a/code/modules/mob/living/brain/MMI.dm b/code/modules/mob/living/brain/MMI.dm index e48f38e341e1..817b30b0cd96 100644 --- a/code/modules/mob/living/brain/MMI.dm +++ b/code/modules/mob/living/brain/MMI.dm @@ -200,7 +200,7 @@ mmi = null return ..() -/datum/action/generic/configure_mmi_radio/ApplyIcon(obj/screen/movable/action_button/current_button) +/datum/action/generic/configure_mmi_radio/ApplyIcon(atom/movable/screen/movable/action_button/current_button) icon_icon = mmi.icon button_icon_state = mmi.icon_state ..() diff --git a/code/modules/mob/living/carbon/alien/alien_base.dm b/code/modules/mob/living/carbon/alien/alien_base.dm index 97559889b956..c4a3b3ab08c8 100644 --- a/code/modules/mob/living/carbon/alien/alien_base.dm +++ b/code/modules/mob/living/carbon/alien/alien_base.dm @@ -91,7 +91,7 @@ // +/- 50 degrees from 310.15K is the 'safe' zone, where no damage is dealt. if(bodytemperature > 360.15) //Body temperature is too hot. - throw_alert("alien_fire", /obj/screen/alert/alien_fire) + throw_alert("alien_fire", /atom/movable/screen/alert/alien_fire) switch(bodytemperature) if(360 to 400) apply_damage(HEAT_DAMAGE_LEVEL_1, BURN) diff --git a/code/modules/mob/living/carbon/alien/alien_life.dm b/code/modules/mob/living/carbon/alien/alien_life.dm index 4c13daa7af00..962971a4b21e 100644 --- a/code/modules/mob/living/carbon/alien/alien_life.dm +++ b/code/modules/mob/living/carbon/alien/alien_life.dm @@ -15,7 +15,7 @@ if(Toxins_pp > tox_detect_threshold) // Detect toxins in air add_plasma(breath.toxins * 250) - throw_alert("alien_tox", /obj/screen/alert/alien_tox) + throw_alert("alien_tox", /atom/movable/screen/alert/alien_tox) toxins_used = breath.toxins diff --git a/code/modules/mob/living/carbon/alien/humanoid/humanoid_update_icons.dm b/code/modules/mob/living/carbon/alien/humanoid/humanoid_update_icons.dm index 70f37d83d213..f95bedded46e 100644 --- a/code/modules/mob/living/carbon/alien/humanoid/humanoid_update_icons.dm +++ b/code/modules/mob/living/carbon/alien/humanoid/humanoid_update_icons.dm @@ -72,7 +72,7 @@ /mob/living/carbon/alien/humanoid/update_inv_wear_suit() if(client && hud_used) - var/obj/screen/inventory/inv = hud_used.inv_slots[SLOT_HUD_OUTER_SUIT] + var/atom/movable/screen/inventory/inv = hud_used.inv_slots[SLOT_HUD_OUTER_SUIT] inv.update_icon() if(wear_suit) diff --git a/code/modules/mob/living/carbon/carbon.dm b/code/modules/mob/living/carbon/carbon.dm index 5a688ee701dd..272b3a190015 100644 --- a/code/modules/mob/living/carbon/carbon.dm +++ b/code/modules/mob/living/carbon/carbon.dm @@ -361,7 +361,7 @@ if((E && (E.status & ORGAN_DEAD)) || !.) return FALSE -/mob/living/carbon/flash_eyes(intensity = 1, override_blindness_check = 0, affect_silicon = 0, visual = 0, laser_pointer = FALSE, type = /obj/screen/fullscreen/flash) +/mob/living/carbon/flash_eyes(intensity = 1, override_blindness_check = 0, affect_silicon = 0, visual = 0, laser_pointer = FALSE, type = /atom/movable/screen/fullscreen/flash) //Parent proc checks if a mob can_be_flashed() . = ..() @@ -658,7 +658,7 @@ GLOBAL_LIST_INIT(ventcrawl_machinery, list(/obj/machinery/atmospherics/unary/ven return /mob/living/carbon/throw_item(atom/target) - if(!target || !isturf(loc) || istype(target, /obj/screen)) + if(!target || !isturf(loc) || is_screen_atom(target)) throw_mode_off() return @@ -745,7 +745,7 @@ GLOBAL_LIST_INIT(ventcrawl_machinery, list(/obj/machinery/atmospherics/unary/ven clear_alert("legcuffed") if(!legcuffed) return - throw_alert("legcuffed", /obj/screen/alert/restrained/legcuffed, new_master = legcuffed) + throw_alert("legcuffed", /atom/movable/screen/alert/restrained/legcuffed, new_master = legcuffed) if(m_intent != MOVE_INTENT_WALK) m_intent = MOVE_INTENT_WALK if(hud_used?.move_intent) @@ -1052,7 +1052,7 @@ GLOBAL_LIST_INIT(ventcrawl_machinery, list(/obj/machinery/atmospherics/unary/ven drop_r_hand() drop_l_hand() stop_pulling() - throw_alert("handcuffed", /obj/screen/alert/restrained/handcuffed, new_master = handcuffed) + throw_alert("handcuffed", /atom/movable/screen/alert/restrained/handcuffed, new_master = handcuffed) ADD_TRAIT(src, TRAIT_RESTRAINED, "handcuffed") else REMOVE_TRAIT(src, TRAIT_RESTRAINED, "handcuffed") @@ -1275,9 +1275,9 @@ so that different stomachs can handle things in different ways VB*/ /mob/living/carbon/proc/update_tint() var/tinttotal = get_total_tint() if(tinttotal >= TINT_BLIND) - overlay_fullscreen("tint", /obj/screen/fullscreen/blind) + overlay_fullscreen("tint", /atom/movable/screen/fullscreen/blind) else if(tinttotal >= TINT_IMPAIR) - overlay_fullscreen("tint", /obj/screen/fullscreen/impaired, 2) + overlay_fullscreen("tint", /atom/movable/screen/fullscreen/impaired, 2) else clear_fullscreen("tint", 0) diff --git a/code/modules/mob/living/carbon/carbon_life.dm b/code/modules/mob/living/carbon/carbon_life.dm index c5d4088cdf97..34df76d70673 100644 --- a/code/modules/mob/living/carbon/carbon_life.dm +++ b/code/modules/mob/living/carbon/carbon_life.dm @@ -112,7 +112,7 @@ //CRIT if(!breath || (breath.total_moles() == 0) || !lungs) adjustOxyLoss(1) - throw_alert("not_enough_oxy", /obj/screen/alert/not_enough_oxy) + throw_alert("not_enough_oxy", /atom/movable/screen/alert/not_enough_oxy) return FALSE var/safe_oxy_min = 16 @@ -138,7 +138,7 @@ oxygen_used = breath.oxygen*ratio else adjustOxyLoss(3) - throw_alert("not_enough_oxy", /obj/screen/alert/not_enough_oxy) + throw_alert("not_enough_oxy", /atom/movable/screen/alert/not_enough_oxy) else //Enough oxygen adjustOxyLoss(-5) @@ -167,7 +167,7 @@ if(Toxins_partialpressure > safe_tox_max) var/ratio = (breath.toxins/safe_tox_max) * 10 adjustToxLoss(clamp(ratio, MIN_TOXIC_GAS_DAMAGE, MAX_TOXIC_GAS_DAMAGE)) - throw_alert("too_much_tox", /obj/screen/alert/too_much_tox) + throw_alert("too_much_tox", /atom/movable/screen/alert/too_much_tox) else clear_alert("too_much_tox") @@ -315,7 +315,7 @@ severity = 9 if(-INFINITY to -95) severity = 10 - overlay_fullscreen("crit", /obj/screen/fullscreen/crit, severity) + overlay_fullscreen("crit", /atom/movable/screen/fullscreen/crit, severity) else if(stat == CONSCIOUS) if(check_death_method()) clear_fullscreen("crit") @@ -336,7 +336,7 @@ severity = 6 if(45 to INFINITY) severity = 7 - overlay_fullscreen("oxy", /obj/screen/fullscreen/oxy, severity) + overlay_fullscreen("oxy", /atom/movable/screen/fullscreen/oxy, severity) else clear_fullscreen("oxy") @@ -352,7 +352,7 @@ if(45 to 70) severity = 4 if(70 to 85) severity = 5 if(85 to INFINITY) severity = 6 - overlay_fullscreen("brute", /obj/screen/fullscreen/brute, severity) + overlay_fullscreen("brute", /atom/movable/screen/fullscreen/brute, severity) else clear_fullscreen("brute") diff --git a/code/modules/mob/living/carbon/carbon_update_icons.dm b/code/modules/mob/living/carbon/carbon_update_icons.dm index 5399f6cb059f..f174dd227ca8 100644 --- a/code/modules/mob/living/carbon/carbon_update_icons.dm +++ b/code/modules/mob/living/carbon/carbon_update_icons.dm @@ -35,9 +35,9 @@ /mob/living/carbon/proc/update_hands_hud() if(!hud_used) return - var/obj/screen/inventory/R = hud_used.inv_slots[SLOT_HUD_RIGHT_HAND] + var/atom/movable/screen/inventory/R = hud_used.inv_slots[SLOT_HUD_RIGHT_HAND] R?.update_icon() - var/obj/screen/inventory/L = hud_used.inv_slots[SLOT_HUD_LEFT_HAND] + var/atom/movable/screen/inventory/L = hud_used.inv_slots[SLOT_HUD_LEFT_HAND] L?.update_icon() /mob/living/carbon/update_inv_r_hand(ignore_cuffs) @@ -64,7 +64,7 @@ /mob/living/carbon/update_inv_back() if(client && hud_used && hud_used.inv_slots[SLOT_HUD_BACK]) - var/obj/screen/inventory/inv = hud_used.inv_slots[SLOT_HUD_BACK] + var/atom/movable/screen/inventory/inv = hud_used.inv_slots[SLOT_HUD_BACK] inv.update_icon() if(back) diff --git a/code/modules/mob/living/carbon/give.dm b/code/modules/mob/living/carbon/give.dm index c9ccef9f1c0f..d1ecf83ad18a 100644 --- a/code/modules/mob/living/carbon/give.dm +++ b/code/modules/mob/living/carbon/give.dm @@ -32,16 +32,16 @@ /datum/status_effect/offering_item id = "offering item" duration = 10 SECONDS - alert_type = /obj/screen/alert/status_effect/offering_item + alert_type = /atom/movable/screen/alert/status_effect/offering_item /datum/status_effect/offering_item/on_creation(mob/living/new_owner, receiver_UID, item_UID) . = ..() - var/obj/screen/alert/status_effect/offering_item/offer = linked_alert + var/atom/movable/screen/alert/status_effect/offering_item/offer = linked_alert offer.item_UID = item_UID offer.receiver_UID = receiver_UID -/obj/screen/alert/status_effect/offering_item +/atom/movable/screen/alert/status_effect/offering_item name = "Offering Item" desc = "You're currently offering an item someone. Make sure to keep the item in your hand so they can accept it! Click to stop offering your item." icon_state = "offering_item" @@ -50,7 +50,7 @@ /// UID of the item being given. var/item_UID -/obj/screen/alert/status_effect/offering_item/Click(location, control, params) +/atom/movable/screen/alert/status_effect/offering_item/Click(location, control, params) var/mob/living/carbon/receiver = locateUID(receiver_UID) var/mob/living/carbon/giver = attached_effect.owner var/obj/item/I = locateUID(item_UID) @@ -99,7 +99,7 @@ return // We use UID() here so that the receiver can have more then one give request at one time. // Otherwise, throwing a new "take item" alert would override any current one also named "take item". - receiver.throw_alert("take item [I.UID()]", /obj/screen/alert/take_item, alert_args = list(user, receiver, I)) + receiver.throw_alert("take item [I.UID()]", /atom/movable/screen/alert/take_item, alert_args = list(user, receiver, I)) item_offered = TRUE // TRUE so we don't give them the default chat message in Destroy. to_chat(user, "You offer [I] to [receiver].") qdel(src) @@ -111,7 +111,7 @@ * Alert which appears for a user when another player is attempting to offer them an item. * The user can click the alert to accept, or simply do nothing to not take the item. */ -/obj/screen/alert/take_item +/atom/movable/screen/alert/take_item name = "Take Item" desc = "someone wants to hand you an item!" icon_state = "template" @@ -124,7 +124,7 @@ var/item_UID -/obj/screen/alert/take_item/Initialize(mapload, mob/living/giver, mob/living/receiver, obj/item/I) +/atom/movable/screen/alert/take_item/Initialize(mapload, mob/living/giver, mob/living/receiver, obj/item/I) . = ..() desc = "[giver] wants to hand you \a [I]. Click here to accept it!" giver_UID = giver.UID() @@ -138,13 +138,13 @@ RegisterSignal(giver, list(COMSIG_PARENT_QDELETING, SIGNAL_ADDTRAIT(TRAIT_HANDS_BLOCKED), COMSIG_CARBON_SWAP_HANDS), PROC_REF(cancel_give)) -/obj/screen/alert/take_item/Destroy() +/atom/movable/screen/alert/take_item/Destroy() var/mob/living/giver = locateUID(giver_UID) giver.remove_status_effect(STATUS_EFFECT_OFFERING_ITEM) return ..() -/obj/screen/alert/take_item/proc/cancel_give() +/atom/movable/screen/alert/take_item/proc/cancel_give() SIGNAL_HANDLER var/mob/living/giver = locateUID(giver_UID) var/mob/living/receiver = locateUID(receiver_UID) @@ -153,7 +153,7 @@ receiver.clear_alert("take item [item_UID]") -/obj/screen/alert/take_item/Click(location, control, params) +/atom/movable/screen/alert/take_item/Click(location, control, params) var/mob/living/receiver = locateUID(receiver_UID) if(receiver.stat != CONSCIOUS) return @@ -178,7 +178,7 @@ receiver.clear_alert("take item [item_UID]") -/obj/screen/alert/take_item/do_timeout(mob/M, category) +/atom/movable/screen/alert/take_item/do_timeout(mob/M, category) var/mob/living/giver = locateUID(giver_UID) var/mob/living/receiver = locateUID(receiver_UID) // Make sure we're still nearby. We don't want to show a message if the giver not near us. diff --git a/code/modules/mob/living/carbon/human/human_life.dm b/code/modules/mob/living/carbon/human/human_life.dm index f4583c0c60e6..b796502eaa37 100644 --- a/code/modules/mob/living/carbon/human/human_life.dm +++ b/code/modules/mob/living/carbon/human/human_life.dm @@ -148,13 +148,13 @@ switch(S.breathid) if("o2") - throw_alert("not_enough_oxy", /obj/screen/alert/not_enough_oxy) + throw_alert("not_enough_oxy", /atom/movable/screen/alert/not_enough_oxy) if("tox") - throw_alert("not_enough_tox", /obj/screen/alert/not_enough_tox) + throw_alert("not_enough_tox", /atom/movable/screen/alert/not_enough_tox) if("co2") // currently unused - throw_alert("not_enough_co2", /obj/screen/alert/not_enough_co2) + throw_alert("not_enough_co2", /atom/movable/screen/alert/not_enough_co2) if("n2") - throw_alert("not_enough_nitro", /obj/screen/alert/not_enough_nitro) + throw_alert("not_enough_nitro", /atom/movable/screen/alert/not_enough_nitro) return FALSE // USED IN DEATHWHISPERS @@ -217,13 +217,13 @@ var/mult = dna.species.heatmod * physiology.heat_mod if(bodytemperature >= dna.species.heat_level_1 && bodytemperature <= dna.species.heat_level_2) - throw_alert("temp", /obj/screen/alert/hot, 1) + throw_alert("temp", /atom/movable/screen/alert/hot, 1) take_overall_damage(burn=mult*HEAT_DAMAGE_LEVEL_1, updating_health = TRUE, used_weapon = "High Body Temperature") if(bodytemperature > dna.species.heat_level_2 && bodytemperature <= dna.species.heat_level_3) - throw_alert("temp", /obj/screen/alert/hot, 2) + throw_alert("temp", /atom/movable/screen/alert/hot, 2) take_overall_damage(burn=mult*HEAT_DAMAGE_LEVEL_2, updating_health = TRUE, used_weapon = "High Body Temperature") if(bodytemperature > dna.species.heat_level_3 && bodytemperature < INFINITY) - throw_alert("temp", /obj/screen/alert/hot, 3) + throw_alert("temp", /atom/movable/screen/alert/hot, 3) if(on_fire) take_overall_damage(burn=mult*HEAT_DAMAGE_LEVEL_3, updating_health = TRUE, used_weapon = "Fire") else @@ -238,13 +238,13 @@ if(!istype(loc, /obj/machinery/atmospherics/unary/cryo_cell) && !(HAS_TRAIT(src, TRAIT_RESISTCOLD))) var/mult = dna.species.coldmod * physiology.cold_mod if(bodytemperature >= dna.species.cold_level_2 && bodytemperature <= dna.species.cold_level_1) - throw_alert("temp", /obj/screen/alert/cold, 1) + throw_alert("temp", /atom/movable/screen/alert/cold, 1) take_overall_damage(burn=mult*COLD_DAMAGE_LEVEL_1, updating_health = TRUE, used_weapon = "Low Body Temperature") if(bodytemperature >= dna.species.cold_level_3 && bodytemperature < dna.species.cold_level_2) - throw_alert("temp", /obj/screen/alert/cold, 2) + throw_alert("temp", /atom/movable/screen/alert/cold, 2) take_overall_damage(burn=mult*COLD_DAMAGE_LEVEL_2, updating_health = TRUE, used_weapon = "Low Body Temperature") if(bodytemperature > -INFINITY && bodytemperature < dna.species.cold_level_3) - throw_alert("temp", /obj/screen/alert/cold, 3) + throw_alert("temp", /atom/movable/screen/alert/cold, 3) take_overall_damage(burn=mult*COLD_DAMAGE_LEVEL_3, updating_health = TRUE, used_weapon = "Low Body Temperature") else clear_alert("temp") @@ -262,21 +262,21 @@ if(!HAS_TRAIT(src, TRAIT_RESISTHIGHPRESSURE)) var/pressure_damage = min(((adjusted_pressure / dna.species.hazard_high_pressure) - 1) * PRESSURE_DAMAGE_COEFFICIENT , MAX_HIGH_PRESSURE_DAMAGE) * physiology.pressure_mod take_overall_damage(brute=pressure_damage, updating_health = TRUE, used_weapon = "High Pressure") - throw_alert("pressure", /obj/screen/alert/highpressure, 2) + throw_alert("pressure", /atom/movable/screen/alert/highpressure, 2) else clear_alert("pressure") else if(adjusted_pressure >= dna.species.warning_high_pressure) - throw_alert("pressure", /obj/screen/alert/highpressure, 1) + throw_alert("pressure", /atom/movable/screen/alert/highpressure, 1) else if(adjusted_pressure >= dna.species.warning_low_pressure) clear_alert("pressure") else if(adjusted_pressure >= dna.species.hazard_low_pressure) - throw_alert("pressure", /obj/screen/alert/lowpressure, 1) + throw_alert("pressure", /atom/movable/screen/alert/lowpressure, 1) else if(HAS_TRAIT(src, TRAIT_RESISTLOWPRESSURE)) clear_alert("pressure") else take_overall_damage(brute = LOW_PRESSURE_DAMAGE * physiology.pressure_mod, updating_health = TRUE, used_weapon = "Low Pressure") - throw_alert("pressure", /obj/screen/alert/lowpressure, 2) + throw_alert("pressure", /atom/movable/screen/alert/lowpressure, 2) ///FIRE CODE @@ -685,7 +685,7 @@ new_hunger += "/[dna.species.hunger_type]" if(dna.species.hunger_level != new_hunger) dna.species.hunger_level = new_hunger - throw_alert("nutrition", "/obj/screen/alert/hunger/[new_hunger]", icon_override = dna.species.hunger_icon) + throw_alert("nutrition", "/atom/movable/screen/alert/hunger/[new_hunger]", icon_override = dna.species.hunger_icon) /mob/living/carbon/human/handle_random_events() // Puke if toxloss is too high diff --git a/code/modules/mob/living/carbon/human/human_update_icons.dm b/code/modules/mob/living/carbon/human/human_update_icons.dm index 355ddc11d8c0..e0d6c8ac37fc 100644 --- a/code/modules/mob/living/carbon/human/human_update_icons.dm +++ b/code/modules/mob/living/carbon/human/human_update_icons.dm @@ -573,7 +573,7 @@ GLOBAL_LIST_EMPTY(damage_icon_parts) /mob/living/carbon/human/update_inv_w_uniform() remove_overlay(UNIFORM_LAYER) if(client && hud_used) - var/obj/screen/inventory/inv = hud_used.inv_slots[SLOT_HUD_JUMPSUIT] + var/atom/movable/screen/inventory/inv = hud_used.inv_slots[SLOT_HUD_JUMPSUIT] if(inv) inv.update_icon() @@ -650,7 +650,7 @@ GLOBAL_LIST_EMPTY(damage_icon_parts) /mob/living/carbon/human/update_inv_wear_id() remove_overlay(ID_LAYER) if(client && hud_used) - var/obj/screen/inventory/inv = hud_used.inv_slots[SLOT_HUD_WEAR_ID] + var/atom/movable/screen/inventory/inv = hud_used.inv_slots[SLOT_HUD_WEAR_ID] if(inv) inv.update_icon() @@ -666,7 +666,7 @@ GLOBAL_LIST_EMPTY(damage_icon_parts) /mob/living/carbon/human/update_inv_gloves() remove_overlay(GLOVES_LAYER) if(client && hud_used) - var/obj/screen/inventory/inv = hud_used.inv_slots[SLOT_HUD_GLOVES] + var/atom/movable/screen/inventory/inv = hud_used.inv_slots[SLOT_HUD_GLOVES] if(inv) inv.update_icon() @@ -706,7 +706,7 @@ GLOBAL_LIST_EMPTY(damage_icon_parts) remove_overlay(OVER_MASK_LAYER) if(client && hud_used) - var/obj/screen/inventory/inv = hud_used.inv_slots[SLOT_HUD_GLASSES] + var/atom/movable/screen/inventory/inv = hud_used.inv_slots[SLOT_HUD_GLASSES] if(inv) inv.update_icon() @@ -744,12 +744,12 @@ GLOBAL_LIST_EMPTY(damage_icon_parts) /mob/living/carbon/human/update_inv_ears() remove_overlay(EARS_LAYER) if(client && hud_used) - var/obj/screen/inventory/inv = hud_used.inv_slots[SLOT_HUD_LEFT_EAR] + var/atom/movable/screen/inventory/inv = hud_used.inv_slots[SLOT_HUD_LEFT_EAR] if(inv) inv.update_icon() if(client && hud_used) - var/obj/screen/inventory/inv = hud_used.inv_slots[SLOT_HUD_RIGHT_EAR] + var/atom/movable/screen/inventory/inv = hud_used.inv_slots[SLOT_HUD_RIGHT_EAR] if(inv) inv.update_icon() @@ -792,7 +792,7 @@ GLOBAL_LIST_EMPTY(damage_icon_parts) /mob/living/carbon/human/update_inv_shoes() remove_overlay(SHOES_LAYER) if(client && hud_used) - var/obj/screen/inventory/inv = hud_used.inv_slots[SLOT_HUD_SHOES] + var/atom/movable/screen/inventory/inv = hud_used.inv_slots[SLOT_HUD_SHOES] if(inv) inv.update_icon() @@ -828,7 +828,7 @@ GLOBAL_LIST_EMPTY(damage_icon_parts) /mob/living/carbon/human/update_inv_s_store() remove_overlay(SUIT_STORE_LAYER) if(client && hud_used) - var/obj/screen/inventory/inv = hud_used.inv_slots[SLOT_HUD_SUIT_STORE] + var/atom/movable/screen/inventory/inv = hud_used.inv_slots[SLOT_HUD_SUIT_STORE] if(inv) inv.update_icon() @@ -850,7 +850,7 @@ GLOBAL_LIST_EMPTY(damage_icon_parts) ..() remove_overlay(HEAD_LAYER) if(client && hud_used) - var/obj/screen/inventory/inv = hud_used.inv_slots[SLOT_HUD_HEAD] + var/atom/movable/screen/inventory/inv = hud_used.inv_slots[SLOT_HUD_HEAD] if(inv) inv.update_icon() @@ -879,7 +879,7 @@ GLOBAL_LIST_EMPTY(damage_icon_parts) /mob/living/carbon/human/update_inv_belt() remove_overlay(BELT_LAYER) if(client && hud_used) - var/obj/screen/inventory/inv = hud_used.inv_slots[SLOT_HUD_BELT] + var/atom/movable/screen/inventory/inv = hud_used.inv_slots[SLOT_HUD_BELT] if(inv) inv.update_icon() @@ -905,7 +905,7 @@ GLOBAL_LIST_EMPTY(damage_icon_parts) /mob/living/carbon/human/update_inv_wear_suit() remove_overlay(SUIT_LAYER) if(client && hud_used) - var/obj/screen/inventory/inv = hud_used.inv_slots[SLOT_HUD_OUTER_SUIT] + var/atom/movable/screen/inventory/inv = hud_used.inv_slots[SLOT_HUD_OUTER_SUIT] if(inv) inv.update_icon() @@ -949,7 +949,7 @@ GLOBAL_LIST_EMPTY(damage_icon_parts) /mob/living/carbon/human/update_inv_pockets() if(client && hud_used) - var/obj/screen/inventory/inv + var/atom/movable/screen/inventory/inv inv = hud_used.inv_slots[SLOT_HUD_LEFT_STORE] if(inv) @@ -970,7 +970,7 @@ GLOBAL_LIST_EMPTY(damage_icon_parts) /mob/living/carbon/human/update_inv_wear_pda() if(client && hud_used) - var/obj/screen/inventory/inv = hud_used.inv_slots[SLOT_HUD_WEAR_PDA] + var/atom/movable/screen/inventory/inv = hud_used.inv_slots[SLOT_HUD_WEAR_PDA] if(inv) inv.update_icon() @@ -982,7 +982,7 @@ GLOBAL_LIST_EMPTY(damage_icon_parts) ..() remove_overlay(FACEMASK_LAYER) if(client && hud_used) - var/obj/screen/inventory/inv = hud_used.inv_slots[SLOT_HUD_WEAR_MASK] + var/atom/movable/screen/inventory/inv = hud_used.inv_slots[SLOT_HUD_WEAR_MASK] if(inv) inv.update_icon() if(wear_mask && (istype(wear_mask, /obj/item/clothing/mask) || istype(wear_mask, /obj/item/clothing/accessory))) diff --git a/code/modules/mob/living/carbon/human/human_update_status.dm b/code/modules/mob/living/carbon/human/human_update_status.dm index 0c48d4b5fa1b..855a3d39e747 100644 --- a/code/modules/mob/living/carbon/human/human_update_status.dm +++ b/code/modules/mob/living/carbon/human/human_update_status.dm @@ -13,7 +13,7 @@ /mob/living/carbon/human/update_nearsighted_effects() var/obj/item/clothing/glasses/G = glasses if(HAS_TRAIT(src, TRAIT_NEARSIGHT) && (!istype(G) || !G.prescription)) - overlay_fullscreen("nearsighted", /obj/screen/fullscreen/impaired, 1) + overlay_fullscreen("nearsighted", /atom/movable/screen/fullscreen/impaired, 1) else clear_fullscreen("nearsighted") diff --git a/code/modules/mob/living/carbon/human/species/diona_species.dm b/code/modules/mob/living/carbon/human/species/diona_species.dm index b25bfe9e191d..e68698ad4493 100644 --- a/code/modules/mob/living/carbon/human/species/diona_species.dm +++ b/code/modules/mob/living/carbon/human/species/diona_species.dm @@ -93,7 +93,7 @@ if(light_amount > 0) H.clear_alert("nolight") else - H.throw_alert("nolight", /obj/screen/alert/nolight) + H.throw_alert("nolight", /atom/movable/screen/alert/nolight) if(!is_vamp) H.adjust_nutrition(light_amount * 10) diff --git a/code/modules/mob/living/carbon/human/species/golem.dm b/code/modules/mob/living/carbon/human/species/golem.dm index 554048b09f31..ac5c1a5f8e41 100644 --- a/code/modules/mob/living/carbon/human/species/golem.dm +++ b/code/modules/mob/living/carbon/human/species/golem.dm @@ -313,7 +313,7 @@ if(light_amount > 0) H.clear_alert("nolight") else - H.throw_alert("nolight", /obj/screen/alert/nolight) + H.throw_alert("nolight", /atom/movable/screen/alert/nolight) H.adjust_nutrition(light_amount * 10) if(H.nutrition > NUTRITION_LEVEL_ALMOST_FULL) H.set_nutrition(NUTRITION_LEVEL_ALMOST_FULL) diff --git a/code/modules/mob/living/carbon/human/species/shadow.dm b/code/modules/mob/living/carbon/human/species/shadow.dm index 660c0f4dafbb..24ff15da2012 100644 --- a/code/modules/mob/living/carbon/human/species/shadow.dm +++ b/code/modules/mob/living/carbon/human/species/shadow.dm @@ -34,9 +34,9 @@ light_amount = T.get_lumcount() * 10 if(light_amount > 2) //if there's enough light, start dying - H.take_overall_damage(1,1) - H.throw_alert("lightexposure", /obj/screen/alert/lightexposure) + H.take_overall_damage(1, 1) + H.throw_alert("lightexposure", /atom/movable/screen/alert/lightexposure) else if(light_amount < 2) //heal in the dark - H.heal_overall_damage(1,1) + H.heal_overall_damage(1, 1) H.clear_alert("lightexposure") ..() diff --git a/code/modules/mob/living/living.dm b/code/modules/mob/living/living.dm index 9d8e832a937e..bb28b7d0ab7e 100644 --- a/code/modules/mob/living/living.dm +++ b/code/modules/mob/living/living.dm @@ -799,7 +799,7 @@ if(has_gravity) clear_alert("weightless") else - throw_alert("weightless", /obj/screen/alert/weightless) + throw_alert("weightless", /atom/movable/screen/alert/weightless) if(!flying) float(!has_gravity) @@ -829,7 +829,7 @@ return TRUE //called when the mob receives a bright flash -/mob/living/proc/flash_eyes(intensity = 1, override_blindness_check = 0, affect_silicon = 0, visual = 0, laser_pointer = FALSE, type = /obj/screen/fullscreen/flash) +/mob/living/proc/flash_eyes(intensity = 1, override_blindness_check = 0, affect_silicon = 0, visual = 0, laser_pointer = FALSE, type = /atom/movable/screen/fullscreen/flash) if(can_be_flashed(intensity, override_blindness_check)) overlay_fullscreen("flash", type) addtimer(CALLBACK(src, PROC_REF(clear_fullscreen), "flash", 25), 25) @@ -1146,7 +1146,7 @@ /mob/living/proc/set_forced_look(atom/A, track = FALSE) forced_look = track ? A.UID() : get_cardinal_dir(src, A) to_chat(src, "You are now facing [track ? A : dir2text(forced_look)]. To cancel this, shift-middleclick yourself.") - throw_alert("direction_lock", /obj/screen/alert/direction_lock) + throw_alert("direction_lock", /atom/movable/screen/alert/direction_lock) /** * Clears the mob's direction lock if enabled. diff --git a/code/modules/mob/living/living_defense.dm b/code/modules/mob/living/living_defense.dm index c1dd773bd43d..0ea4ff1bb98c 100644 --- a/code/modules/mob/living/living_defense.dm +++ b/code/modules/mob/living/living_defense.dm @@ -163,7 +163,7 @@ on_fire = TRUE visible_message("[src] catches fire!", "You're set on fire!") set_light(light_range + 3,l_color = "#ED9200") - throw_alert("fire", /obj/screen/alert/fire) + throw_alert("fire", /atom/movable/screen/alert/fire) update_fire() SEND_SIGNAL(src, COMSIG_LIVING_IGNITED) return TRUE diff --git a/code/modules/mob/living/living_life.dm b/code/modules/mob/living/living_life.dm index 39f9fd35f7eb..59b1b5a7c043 100644 --- a/code/modules/mob/living/living_life.dm +++ b/code/modules/mob/living/living_life.dm @@ -173,6 +173,6 @@ healths.icon_state = "health7" severity = 6 if(severity > 0) - overlay_fullscreen("brute", /obj/screen/fullscreen/brute, severity) + overlay_fullscreen("brute", /atom/movable/screen/fullscreen/brute, severity) else clear_fullscreen("brute") diff --git a/code/modules/mob/living/living_update_status.dm b/code/modules/mob/living/living_update_status.dm index d84ec9817c07..041d28afdf38 100644 --- a/code/modules/mob/living/living_update_status.dm +++ b/code/modules/mob/living/living_update_status.dm @@ -1,8 +1,8 @@ /mob/living/update_blind_effects() if(!has_vision(information_only=TRUE)) - overlay_fullscreen("blind", /obj/screen/fullscreen/blind) - throw_alert("blind", /obj/screen/alert/blind) - return 1 + overlay_fullscreen("blind", /atom/movable/screen/fullscreen/blind) + throw_alert("blind", /atom/movable/screen/alert/blind) + return TRUE else clear_fullscreen("blind") clear_alert("blind") @@ -19,8 +19,8 @@ /mob/living/update_druggy_effects() if(AmountDruggy()) - overlay_fullscreen("high", /obj/screen/fullscreen/high) - throw_alert("high", /obj/screen/alert/high) + overlay_fullscreen("high", /atom/movable/screen/fullscreen/high) + throw_alert("high", /atom/movable/screen/alert/high) sound_environment_override = SOUND_ENVIRONMENT_DRUGGED else clear_fullscreen("high") @@ -29,14 +29,14 @@ /mob/living/update_nearsighted_effects() if(HAS_TRAIT(src, TRAIT_NEARSIGHT)) - overlay_fullscreen("nearsighted", /obj/screen/fullscreen/impaired, 1) + overlay_fullscreen("nearsighted", /atom/movable/screen/fullscreen/impaired, 1) else clear_fullscreen("nearsighted") /mob/living/update_sleeping_effects(no_alert = FALSE) if(IsSleeping()) if(!no_alert) - throw_alert("asleep", /obj/screen/alert/asleep) + throw_alert("asleep", /atom/movable/screen/alert/asleep) else clear_alert("asleep") diff --git a/code/modules/mob/living/silicon/ai/ai_mob.dm b/code/modules/mob/living/silicon/ai/ai_mob.dm index d1257aaf2677..e1e39b605bf4 100644 --- a/code/modules/mob/living/silicon/ai/ai_mob.dm +++ b/code/modules/mob/living/silicon/ai/ai_mob.dm @@ -1539,7 +1539,7 @@ GLOBAL_LIST_INIT(ai_verbs_default, list( SEND_SOUND(src, sound('sound/machines/ai_start.ogg')) - var/obj/screen/text/blurb/location_blurb = new() + var/atom/movable/screen/text/blurb/location_blurb = new() location_blurb.maptext_x = 80 location_blurb.maptext_y = 16 location_blurb.maptext_width = 480 diff --git a/code/modules/mob/living/silicon/robot/robot_life.dm b/code/modules/mob/living/silicon/robot/robot_life.dm index 1a16490ed96d..2b0be3f6afc1 100644 --- a/code/modules/mob/living/silicon/robot/robot_life.dm +++ b/code/modules/mob/living/silicon/robot/robot_life.dm @@ -63,7 +63,7 @@ emagged = new_state update_icons() if(emagged) - throw_alert("hacked", /obj/screen/alert/hacked) + throw_alert("hacked", /atom/movable/screen/alert/hacked) else clear_alert("hacked") @@ -98,15 +98,15 @@ if(0.75 to INFINITY) clear_alert("charge") if(0.5 to 0.75) - throw_alert("charge", /obj/screen/alert/lowcell, 1) + throw_alert("charge", /atom/movable/screen/alert/lowcell, 1) if(0.25 to 0.5) - throw_alert("charge", /obj/screen/alert/lowcell, 2) + throw_alert("charge", /atom/movable/screen/alert/lowcell, 2) if(0.01 to 0.25) - throw_alert("charge", /obj/screen/alert/lowcell, 3) + throw_alert("charge", /atom/movable/screen/alert/lowcell, 3) else - throw_alert("charge", /obj/screen/alert/emptycell) + throw_alert("charge", /atom/movable/screen/alert/emptycell) else - throw_alert("charge", /obj/screen/alert/nocell) + throw_alert("charge", /atom/movable/screen/alert/nocell) diff --git a/code/modules/mob/living/silicon/robot/robot_mob.dm b/code/modules/mob/living/silicon/robot/robot_mob.dm index 90e501f99ab0..13a3652075ca 100644 --- a/code/modules/mob/living/silicon/robot/robot_mob.dm +++ b/code/modules/mob/living/silicon/robot/robot_mob.dm @@ -19,15 +19,15 @@ GLOBAL_LIST_INIT(robot_verbs_default, list( var/custom_sprite = FALSE //Due to all the sprites involved, a var for our custom borgs may be best //Hud stuff - var/obj/screen/hands = null - var/obj/screen/inv1 = null - var/obj/screen/inv2 = null - var/obj/screen/inv3 = null - var/obj/screen/lamp_button = null - var/obj/screen/thruster_button = null + var/atom/movable/screen/hands = null + var/atom/movable/screen/inv1 = null + var/atom/movable/screen/inv2 = null + var/atom/movable/screen/inv3 = null + var/atom/movable/screen/lamp_button = null + var/atom/movable/screen/thruster_button = null var/shown_robot_modules = FALSE //Used to determine whether they have the module menu shown or not - var/obj/screen/robot_modules_background + var/atom/movable/screen/robot_modules_background //3 Modules can be activated at any one time. var/obj/item/robot_module/module = null @@ -1296,7 +1296,7 @@ GLOBAL_LIST_INIT(robot_verbs_default, list( if(wires.is_cut(WIRE_BORG_LOCKED)) state = 1 if(state) - throw_alert("locked", /obj/screen/alert/locked) + throw_alert("locked", /atom/movable/screen/alert/locked) else clear_alert("locked") lockcharge = state diff --git a/code/modules/mob/living/silicon/silicon_laws.dm b/code/modules/mob/living/silicon/silicon_laws.dm index af3385c28f12..d7c9b0503311 100644 --- a/code/modules/mob/living/silicon/silicon_laws.dm +++ b/code/modules/mob/living/silicon/silicon_laws.dm @@ -10,7 +10,7 @@ return laws.zeroth_law != null /mob/living/silicon/proc/set_zeroth_law(law, law_borg) - throw_alert("newlaw", /obj/screen/alert/newlaw) + throw_alert("newlaw", /atom/movable/screen/alert/newlaw) laws_sanity_check() laws.set_zeroth_law(law, law_borg) if(!isnull(usr) && law) @@ -22,56 +22,56 @@ to_chat(src, "Internal camera is currently being accessed.") /mob/living/silicon/proc/add_ion_law(law) - throw_alert("newlaw", /obj/screen/alert/newlaw) + throw_alert("newlaw", /atom/movable/screen/alert/newlaw) laws_sanity_check() laws.add_ion_law(law) if(!isnull(usr) && law) log_and_message_admins("has given [src] the ion law: [law]") /mob/living/silicon/proc/add_inherent_law(law) - throw_alert("newlaw", /obj/screen/alert/newlaw) + throw_alert("newlaw", /atom/movable/screen/alert/newlaw) laws_sanity_check() laws.add_inherent_law(law) if(!isnull(usr) && law) log_and_message_admins("has given [src] the inherent law: [law]") /mob/living/silicon/proc/add_supplied_law(number, law) - throw_alert("newlaw", /obj/screen/alert/newlaw) + throw_alert("newlaw", /atom/movable/screen/alert/newlaw) laws_sanity_check() laws.add_supplied_law(number, law) if(!isnull(usr) && law) log_and_message_admins("has given [src] the supplied law: [law]") /mob/living/silicon/proc/delete_law(datum/ai_law/law) - throw_alert("newlaw", /obj/screen/alert/newlaw) + throw_alert("newlaw", /atom/movable/screen/alert/newlaw) laws_sanity_check() laws.delete_law(law) if(!isnull(usr) && law) log_and_message_admins("has deleted a law belonging to [src]: [law.law]") /mob/living/silicon/proc/clear_inherent_laws(silent = 0) - throw_alert("newlaw", /obj/screen/alert/newlaw) + throw_alert("newlaw", /atom/movable/screen/alert/newlaw) laws_sanity_check() laws.clear_inherent_laws() if(!silent && !isnull(usr)) log_and_message_admins("cleared the inherent laws of [src]") /mob/living/silicon/proc/clear_ion_laws(silent = 0) - throw_alert("newlaw", /obj/screen/alert/newlaw) + throw_alert("newlaw", /atom/movable/screen/alert/newlaw) laws_sanity_check() laws.clear_ion_laws() if(!silent && !isnull(usr)) log_and_message_admins("cleared the ion laws of [src]") /mob/living/silicon/proc/clear_supplied_laws(silent = 0) - throw_alert("newlaw", /obj/screen/alert/newlaw) + throw_alert("newlaw", /atom/movable/screen/alert/newlaw) laws_sanity_check() laws.clear_supplied_laws() if(!silent && !isnull(usr)) log_and_message_admins("cleared the supplied laws of [src]") /mob/living/silicon/proc/clear_zeroth_law(silent = FALSE) - throw_alert("newlaw", /obj/screen/alert/newlaw) + throw_alert("newlaw", /atom/movable/screen/alert/newlaw) laws_sanity_check() laws.clear_zeroth_laws() if(!silent && !isnull(usr)) diff --git a/code/modules/mob/living/silicon/silicon_mob.dm b/code/modules/mob/living/silicon/silicon_mob.dm index 9dd4a655f421..1b0a20083be8 100644 --- a/code/modules/mob/living/silicon/silicon_mob.dm +++ b/code/modules/mob/living/silicon/silicon_mob.dm @@ -409,7 +409,7 @@ /mob/living/silicon/get_access() return IGNORE_ACCESS //silicons always have access -/mob/living/silicon/flash_eyes(intensity = 1, override_blindness_check = 0, affect_silicon = 0, visual = 0, type = /obj/screen/fullscreen/flash/noise) +/mob/living/silicon/flash_eyes(intensity = 1, override_blindness_check = 0, affect_silicon = 0, visual = 0, type = /atom/movable/screen/fullscreen/flash/noise) if(affect_silicon) return ..() diff --git a/code/modules/mob/living/simple_animal/constructs.dm b/code/modules/mob/living/simple_animal/constructs.dm index ea8eea9b0d7b..c1187ee2682e 100644 --- a/code/modules/mob/living/simple_animal/constructs.dm +++ b/code/modules/mob/living/simple_animal/constructs.dm @@ -123,7 +123,7 @@ /mob/living/simple_animal/hostile/construct/Life(seconds, times_fired) if(holy_check(src)) - throw_alert("holy_fire", /obj/screen/alert/holy_fire, override = TRUE) + throw_alert("holy_fire", /atom/movable/screen/alert/holy_fire, override = TRUE) visible_message("[src] slowly crumbles to dust in this holy place!", \ "Your shell burns as you crumble to dust in this holy place!") playsound(loc, 'sound/items/welder.ogg', 150, TRUE) diff --git a/code/modules/mob/living/simple_animal/friendly/diona_nymph.dm b/code/modules/mob/living/simple_animal/friendly/diona_nymph.dm index 00099deea275..ff76eef39575 100644 --- a/code/modules/mob/living/simple_animal/friendly/diona_nymph.dm +++ b/code/modules/mob/living/simple_animal/friendly/diona_nymph.dm @@ -107,8 +107,8 @@ if(isdiona(M)) to_chat(M, "You feel your being twine with that of [src] as it merges with your biomass.") to_chat(src, "You feel your being twine with that of [M] as you merge with its biomass.") - throw_alert(GESTALT_ALERT, /obj/screen/alert/nymph, new_master = src) //adds a screen alert that can call resist - M.throw_alert(NYMPH_ALERT, /obj/screen/alert/gestalt, new_master = src) + throw_alert(GESTALT_ALERT, /atom/movable/screen/alert/nymph, new_master = src) //adds a screen alert that can call resist + M.throw_alert(NYMPH_ALERT, /atom/movable/screen/alert/gestalt, new_master = src) forceMove(M) else if(isrobot(M)) M.visible_message("[M] playfully boops [src] on the head!", "You playfully boop [src] on the head!") @@ -141,8 +141,8 @@ M.status_flags |= PASSEMOTES to_chat(src, "You feel your being twine with that of [M] as you merge with its biomass.") forceMove(M) - throw_alert(GESTALT_ALERT, /obj/screen/alert/nymph, new_master = src) //adds a screen alert that can call resist - M.throw_alert(NYMPH_ALERT, /obj/screen/alert/gestalt, new_master = src) + throw_alert(GESTALT_ALERT, /atom/movable/screen/alert/nymph, new_master = src) //adds a screen alert that can call resist + M.throw_alert(NYMPH_ALERT, /atom/movable/screen/alert/gestalt, new_master = src) return TRUE else return FALSE diff --git a/code/modules/mob/living/simple_animal/hostile/megafauna/bubblegum.dm b/code/modules/mob/living/simple_animal/hostile/megafauna/bubblegum.dm index 55cd79a6d15b..a4601d9bfff6 100644 --- a/code/modules/mob/living/simple_animal/hostile/megafauna/bubblegum.dm +++ b/code/modules/mob/living/simple_animal/hostile/megafauna/bubblegum.dm @@ -141,7 +141,7 @@ Difficulty: Hard H.apply_status_effect(STATUS_EFFECT_BUBBLEGUM_CURSE, src) if(second_life) H.clear_fullscreen("Bubblegum") - H.overlay_fullscreen("Bubblegum", /obj/screen/fullscreen/fog, 2) + H.overlay_fullscreen("Bubblegum", /atom/movable/screen/fullscreen/fog, 2) /mob/living/simple_animal/hostile/megafauna/bubblegum/death(gibbed) diff --git a/code/modules/mob/living/simple_animal/simple_animal.dm b/code/modules/mob/living/simple_animal/simple_animal.dm index 767cdf87a6af..9c42fa54e10d 100644 --- a/code/modules/mob/living/simple_animal/simple_animal.dm +++ b/code/modules/mob/living/simple_animal/simple_animal.dm @@ -305,20 +305,20 @@ if(atmos_requirements["min_oxy"] && oxy < atmos_requirements["min_oxy"]) atmos_suitable = 0 - throw_alert("not_enough_oxy", /obj/screen/alert/not_enough_oxy) + throw_alert("not_enough_oxy", /atom/movable/screen/alert/not_enough_oxy) else if(atmos_requirements["max_oxy"] && oxy > atmos_requirements["max_oxy"]) atmos_suitable = 0 - throw_alert("too_much_oxy", /obj/screen/alert/too_much_oxy) + throw_alert("too_much_oxy", /atom/movable/screen/alert/too_much_oxy) else clear_alert("not_enough_oxy") clear_alert("too_much_oxy") if(atmos_requirements["min_tox"] && tox < atmos_requirements["min_tox"]) atmos_suitable = 0 - throw_alert("not_enough_tox", /obj/screen/alert/not_enough_tox) + throw_alert("not_enough_tox", /atom/movable/screen/alert/not_enough_tox) else if(atmos_requirements["max_tox"] && tox > atmos_requirements["max_tox"]) atmos_suitable = 0 - throw_alert("too_much_tox", /obj/screen/alert/too_much_tox) + throw_alert("too_much_tox", /atom/movable/screen/alert/too_much_tox) else clear_alert("too_much_tox") clear_alert("not_enough_tox") diff --git a/code/modules/mob/living/simple_animal/slime/slime_life.dm b/code/modules/mob/living/simple_animal/slime/slime_life.dm index 8617910d8fa0..67d15345bea2 100644 --- a/code/modules/mob/living/simple_animal/slime/slime_life.dm +++ b/code/modules/mob/living/simple_animal/slime/slime_life.dm @@ -114,7 +114,7 @@ if(bodytemperature < (T0C + 5)) // start calculating temperature damage etc if(bodytemperature <= (T0C - 40)) // stun temperature Tempstun = TRUE - throw_alert("temp", /obj/screen/alert/cold, 3) + throw_alert("temp", /atom/movable/screen/alert/cold, 3) to_chat(src,"You suddenly freeze up, you cannot move!") if(bodytemperature <= (T0C - 50)) // hurt temperature diff --git a/code/modules/mob/living/simple_animal/slime/slime_mob.dm b/code/modules/mob/living/simple_animal/slime/slime_mob.dm index 4db2674ec93a..4b12a386e3ea 100644 --- a/code/modules/mob/living/simple_animal/slime/slime_mob.dm +++ b/code/modules/mob/living/simple_animal/slime/slime_mob.dm @@ -193,7 +193,7 @@ healths.icon_state = "slime_health7" severity = 6 if(severity > 0) - overlay_fullscreen("brute", /obj/screen/fullscreen/brute, severity) + overlay_fullscreen("brute", /atom/movable/screen/fullscreen/brute, severity) else clear_fullscreen("brute") diff --git a/code/modules/mob/mob.dm b/code/modules/mob/mob.dm index f0f5b2a4ca91..b5db7266944d 100644 --- a/code/modules/mob/mob.dm +++ b/code/modules/mob/mob.dm @@ -1490,14 +1490,14 @@ GLOBAL_LIST_INIT(slot_equipment_priority, list( \ /mob/proc/sync_lighting_plane_alpha() if(hud_used) - var/obj/screen/plane_master/lighting/L = hud_used.plane_masters["[LIGHTING_PLANE]"] + var/atom/movable/screen/plane_master/lighting/L = hud_used.plane_masters["[LIGHTING_PLANE]"] if(L) L.alpha = lighting_alpha sync_nightvision_screen() //Sync up the overlay used for nightvision to the amount of see_in_dark a mob has. This needs to be called everywhere sync_lighting_plane_alpha() is. /mob/proc/sync_nightvision_screen() - var/obj/screen/fullscreen/see_through_darkness/S = screens["see_through_darkness"] + var/atom/movable/screen/fullscreen/see_through_darkness/S = screens["see_through_darkness"] if(S) var/suffix = "" switch(see_in_dark) diff --git a/code/modules/mob/mob_grab.dm b/code/modules/mob/mob_grab.dm index ca1b4c9aad76..c501c3ee4d06 100644 --- a/code/modules/mob/mob_grab.dm +++ b/code/modules/mob/mob_grab.dm @@ -11,7 +11,7 @@ /obj/item/grab name = "grab" flags = NOBLUDGEON | ABSTRACT | DROPDEL - var/obj/screen/grab/hud = null + var/atom/movable/screen/grab/hud = null var/mob/living/affecting = null var/mob/living/assailant = null var/state = GRAB_PASSIVE @@ -48,7 +48,7 @@ RegisterSignal(affecting, COMSIG_MOVABLE_MOVED, PROC_REF(grab_moved)) RegisterSignal(assailant, COMSIG_MOVABLE_MOVED, PROC_REF(pull_grabbed)) - hud = new /obj/screen/grab(src) + hud = new /atom/movable/screen/grab(src) hud.icon_state = "reinforce" icon_state = "grabbed" hud.name = "reinforce grab" @@ -291,7 +291,7 @@ if(EAST) animate(affecting, pixel_x =-shift, pixel_y = 0, 5, 1, LINEAR_EASING) -/obj/item/grab/proc/s_click(obj/screen/S) +/obj/item/grab/proc/s_click(atom/movable/screen/S) if(!affecting) return if(state >= GRAB_AGGRESSIVE && HAS_TRAIT(assailant, TRAIT_PACIFISM)) diff --git a/code/modules/mob/mob_misc_procs.dm b/code/modules/mob/mob_misc_procs.dm index 6392a3fe3c2e..c388d4fc4a41 100644 --- a/code/modules/mob/mob_misc_procs.dm +++ b/code/modules/mob/mob_misc_procs.dm @@ -554,7 +554,7 @@ if(flashwindow) window_flash(O.client) if(source) - var/obj/screen/alert/notify_action/A = O.throw_alert("\ref[source]_notify_action", /obj/screen/alert/notify_action) + var/atom/movable/screen/alert/notify_action/A = O.throw_alert("\ref[source]_notify_action", /atom/movable/screen/alert/notify_action) if(A) if(O.client.prefs && O.client.prefs.UI_style) A.icon = ui_style2icon(O.client.prefs.UI_style) diff --git a/code/modules/mob/mob_movement.dm b/code/modules/mob/mob_movement.dm index 6de1b1b4d79f..3a354a4e4c0f 100644 --- a/code/modules/mob/mob_movement.dm +++ b/code/modules/mob/mob_movement.dm @@ -383,7 +383,7 @@ return /client/proc/check_has_body_select() - return mob && mob.hud_used && mob.hud_used.zone_select && istype(mob.hud_used.zone_select, /obj/screen/zone_sel) + return mob && mob.hud_used && mob.hud_used.zone_select && istype(mob.hud_used.zone_select, /atom/movable/screen/zone_sel) /client/verb/body_toggle_head() set name = "body-toggle-head" @@ -401,7 +401,7 @@ else next_in_line = BODY_ZONE_HEAD - var/obj/screen/zone_sel/selector = mob.hud_used.zone_select + var/atom/movable/screen/zone_sel/selector = mob.hud_used.zone_select selector.set_selected_zone(next_in_line, mob) /client/verb/body_r_arm() @@ -416,7 +416,7 @@ else next_in_line = BODY_ZONE_R_ARM - var/obj/screen/zone_sel/selector = mob.hud_used.zone_select + var/atom/movable/screen/zone_sel/selector = mob.hud_used.zone_select selector.set_selected_zone(next_in_line, mob) /client/verb/body_chest() @@ -426,7 +426,7 @@ if(!check_has_body_select()) return - var/obj/screen/zone_sel/selector = mob.hud_used.zone_select + var/atom/movable/screen/zone_sel/selector = mob.hud_used.zone_select selector.set_selected_zone(BODY_ZONE_CHEST, mob) /client/verb/body_l_arm() @@ -442,7 +442,7 @@ else next_in_line = BODY_ZONE_L_ARM - var/obj/screen/zone_sel/selector = mob.hud_used.zone_select + var/atom/movable/screen/zone_sel/selector = mob.hud_used.zone_select selector.set_selected_zone(next_in_line, mob) /client/verb/body_r_leg() @@ -458,7 +458,7 @@ else next_in_line = BODY_ZONE_R_LEG - var/obj/screen/zone_sel/selector = mob.hud_used.zone_select + var/atom/movable/screen/zone_sel/selector = mob.hud_used.zone_select selector.set_selected_zone(next_in_line, mob) /client/verb/body_groin() @@ -468,7 +468,7 @@ if(!check_has_body_select()) return - var/obj/screen/zone_sel/selector = mob.hud_used.zone_select + var/atom/movable/screen/zone_sel/selector = mob.hud_used.zone_select selector.set_selected_zone(BODY_ZONE_PRECISE_GROIN, mob) /client/verb/body_l_leg() @@ -484,7 +484,7 @@ else next_in_line = BODY_ZONE_L_LEG - var/obj/screen/zone_sel/selector = mob.hud_used.zone_select + var/atom/movable/screen/zone_sel/selector = mob.hud_used.zone_select selector.set_selected_zone(next_in_line, mob) /client/verb/toggle_walk_run() @@ -513,5 +513,5 @@ if(hud_used && hud_used.move_intent && hud_used.static_inventory) hud_used.move_intent.icon_state = icon_toggle - for(var/obj/screen/mov_intent/selector in hud_used.static_inventory) + for(var/atom/movable/screen/mov_intent/selector in hud_used.static_inventory) selector.update_icon() diff --git a/code/modules/mob/mob_vars.dm b/code/modules/mob/mob_vars.dm index cfd97814511f..8a0c3c0781a5 100644 --- a/code/modules/mob/mob_vars.dm +++ b/code/modules/mob/mob_vars.dm @@ -13,11 +13,11 @@ /// The zone this mob is currently targeting var/zone_selected = null - var/obj/screen/pullin = null - var/obj/screen/i_select = null - var/obj/screen/m_select = null - var/obj/screen/healths = null - var/obj/screen/throw_icon = null + var/atom/movable/screen/pullin = null + var/atom/movable/screen/i_select = null + var/atom/movable/screen/m_select = null + var/atom/movable/screen/healths = null + var/atom/movable/screen/throw_icon = null /*A bunch of this stuff really needs to go under their own defines instead of being globally attached to mob. A variable should only be globally attached to turfs/objects/whatever, when it is in fact needed as such. @@ -25,8 +25,8 @@ I'll make some notes on where certain variable defines should probably go. Changing this around would probably require a good look-over the pre-existing code. */ - var/obj/screen/leap_icon = null - var/obj/screen/healthdoll/healthdoll = null + var/atom/movable/screen/leap_icon = null + var/atom/movable/screen/healthdoll/healthdoll = null var/use_me = TRUE //Allows all mobs to use the me verb by default, will have to manually specify they cannot var/damageoverlaytemp = 0 @@ -215,7 +215,7 @@ var/suiciding = FALSE /// Used for some screen objects, such as var/list/screens = list() - /// lazy list. contains /obj/screen/alert only, On /mob so clientless mobs will throw alerts properly + /// lazy list. contains /atom/movable/screen/alert only, On /mob so clientless mobs will throw alerts properly var/list/alerts /// Makes items bloody if you touch them var/bloody_hands = 0 diff --git a/code/modules/mod/mod_control.dm b/code/modules/mod/mod_control.dm index 6cd38c1bec97..1064d5f79455 100644 --- a/code/modules/mod/mod_control.dm +++ b/code/modules/mod/mod_control.dm @@ -268,7 +268,7 @@ if(!M.restrained() && !M.stat) playsound(loc, "rustle", 50, TRUE, -5) - if(istype(over_object, /obj/screen/inventory/hand)) + if(istype(over_object, /atom/movable/screen/inventory/hand)) for(var/obj/item/part as anything in mod_parts) if(part.loc != src) to_chat(wearer, "Retract parts first!") @@ -657,7 +657,7 @@ if(!wearer) return if(!core) - wearer.throw_alert("mod_charge", /obj/screen/alert/nocell) + wearer.throw_alert("mod_charge", /atom/movable/screen/alert/nocell) return core.update_charge_alert() diff --git a/code/modules/mod/mod_core.dm b/code/modules/mod/mod_core.dm index 62f737b32786..62a214ce072c 100644 --- a/code/modules/mod/mod_core.dm +++ b/code/modules/mod/mod_core.dm @@ -131,20 +131,20 @@ /obj/item/mod/core/standard/update_charge_alert() var/obj/item/stock_parts/cell/charge_source = charge_source() if(!charge_source) - mod.wearer.throw_alert("mod_charge", /obj/screen/alert/nocell) + mod.wearer.throw_alert("mod_charge", /atom/movable/screen/alert/nocell) return var/remaining_cell = charge_amount() / max_charge_amount() switch(remaining_cell) if(0.75 to INFINITY) mod.wearer.clear_alert("mod_charge") if(0.5 to 0.75) - mod.wearer.throw_alert("mod_charge", /obj/screen/alert/lowcell, 1) + mod.wearer.throw_alert("mod_charge", /atom/movable/screen/alert/lowcell, 1) if(0.25 to 0.5) - mod.wearer.throw_alert("mod_charge", /obj/screen/alert/lowcell, 2) + mod.wearer.throw_alert("mod_charge", /atom/movable/screen/alert/lowcell, 2) if(0.01 to 0.25) - mod.wearer.throw_alert("mod_charge", /obj/screen/alert/lowcell, 3) + mod.wearer.throw_alert("mod_charge", /atom/movable/screen/alert/lowcell, 3) else - mod.wearer.throw_alert("mod_charge", /obj/screen/alert/emptycell) + mod.wearer.throw_alert("mod_charge", /atom/movable/screen/alert/emptycell) /obj/item/mod/core/standard/emp_act(severity) cell?.emp_act(severity) @@ -276,13 +276,13 @@ if(0.75 to INFINITY) mod.wearer.clear_alert("mod_charge") if(0.5 to 0.75) - mod.wearer.throw_alert("mod_charge", /obj/screen/alert/lowcell, 1) + mod.wearer.throw_alert("mod_charge", /atom/movable/screen/alert/lowcell, 1) if(0.25 to 0.5) - mod.wearer.throw_alert("mod_charge", /obj/screen/alert/lowcell, 2) + mod.wearer.throw_alert("mod_charge", /atom/movable/screen/alert/lowcell, 2) if(0.01 to 0.25) - mod.wearer.throw_alert("mod_charge", /obj/screen/alert/lowcell, 3) + mod.wearer.throw_alert("mod_charge", /atom/movable/screen/alert/lowcell, 3) else - mod.wearer.throw_alert("mod_charge", /obj/screen/alert/emptycell) + mod.wearer.throw_alert("mod_charge", /atom/movable/screen/alert/emptycell) /obj/item/mod/core/plasma/on_attackby(obj/item/attacking_item, mob/user, params) charge_plasma(attacking_item, user) diff --git a/code/modules/mod/modules/module_kinesis.dm b/code/modules/mod/modules/module_kinesis.dm index 99fea77d8b82..dcacecc17377 100644 --- a/code/modules/mod/modules/module_kinesis.dm +++ b/code/modules/mod/modules/module_kinesis.dm @@ -30,7 +30,7 @@ /// Overlay we add to each grabbed atom. var/image/kinesis_icon /// Our mouse movement catcher. - var/obj/screen/fullscreen/cursor_catcher/kinesis/kinesis_catcher + var/atom/movable/screen/fullscreen/cursor_catcher/kinesis/kinesis_catcher /// The sounds playing while we grabbed an object. var/datum/looping_sound/kinesis/soundloop ///The pixel_X of whatever we were grabbing before hand. @@ -83,7 +83,7 @@ pre_pixel_x = grabbed_atom.pixel_x pre_pixel_y = grabbed_atom.pixel_y beam.chain = beam.Beam(grabbed_atom, icon_state = "kinesis", icon='icons/effects/beam.dmi', time = 100 SECONDS, maxdistance = 15, beam_type = /obj/effect/ebeam, beam_sleep_time = 3) - kinesis_catcher = mod.wearer.overlay_fullscreen("kinesis", /obj/screen/fullscreen/cursor_catcher/kinesis, 0) + kinesis_catcher = mod.wearer.overlay_fullscreen("kinesis", /atom/movable/screen/fullscreen/cursor_catcher/kinesis, 0) kinesis_catcher.assign_to_mob(mod.wearer) soundloop.start() START_PROCESSING(SSfastprocess, src) @@ -249,7 +249,7 @@ complexity = 0 use_power_cost = DEFAULT_CHARGE_DRAIN * 5 -/obj/screen/fullscreen/cursor_catcher/kinesis +/atom/movable/screen/fullscreen/cursor_catcher/kinesis icon = 'icons/mob/screen_kinesis.dmi' icon_state = "kinesis" diff --git a/code/modules/paperwork/paperbin.dm b/code/modules/paperwork/paperbin.dm index 7f5a434af85e..c7339cb1585f 100644 --- a/code/modules/paperwork/paperbin.dm +++ b/code/modules/paperwork/paperbin.dm @@ -39,7 +39,7 @@ M.unEquip(src) M.put_in_hands(src) - else if(istype(over_object, /obj/screen)) + else if(is_screen_atom(over_object)) switch(over_object.name) if("r_hand") if(!remove_item_from_storage(M)) diff --git a/code/modules/paperwork/photography.dm b/code/modules/paperwork/photography.dm index 1682cab910b5..0e83962a8c89 100644 --- a/code/modules/paperwork/photography.dm +++ b/code/modules/paperwork/photography.dm @@ -142,7 +142,7 @@ if(ishuman(usr)) var/mob/M = usr - if(!istype(over_object, /obj/screen)) + if(!is_screen_atom(over_object)) return ..() playsound(loc, "rustle", 50, 1, -5) if((!M.restrained() && !M.stat && M.back == src)) diff --git a/code/modules/pda/PDA.dm b/code/modules/pda/PDA.dm index aaa3c6aeabdb..38022d19e7b7 100644 --- a/code/modules/pda/PDA.dm +++ b/code/modules/pda/PDA.dm @@ -123,7 +123,7 @@ GLOBAL_LIST_EMPTY(PDAs) /obj/item/pda/MouseDrop(obj/over_object as obj, src_location, over_location) var/mob/M = usr - if((!istype(over_object, /obj/screen)) && can_use()) + if((!is_screen_atom(over_object)) && can_use()) return attack_self(M) /obj/item/pda/attack_self(mob/user as mob) diff --git a/code/modules/power/apc/apc_malfunction.dm b/code/modules/power/apc/apc_malfunction.dm index 1494cef300e1..6f46ae9745c1 100644 --- a/code/modules/power/apc/apc_malfunction.dm +++ b/code/modules/power/apc/apc_malfunction.dm @@ -18,8 +18,8 @@ to_chat(malf, "Beginning override of APC systems. This takes some time, and you can only hack one APC at a time.") malf.malfhack = src malf.malfhacking = addtimer(CALLBACK(malf, TYPE_PROC_REF(/mob/living/silicon/ai, malfhacked), src), 600, TIMER_STOPPABLE) - var/obj/screen/alert/hackingapc/A - A = malf.throw_alert("hackingapc", /obj/screen/alert/hackingapc) + var/atom/movable/screen/alert/hackingapc/A + A = malf.throw_alert("hackingapc", /atom/movable/screen/alert/hackingapc) A.target = src /obj/machinery/power/apc/proc/malfoccupy(mob/living/silicon/ai/malf) diff --git a/code/modules/recycling/disposal.dm b/code/modules/recycling/disposal.dm index 50bc20252eb8..dd15c3f2a650 100644 --- a/code/modules/recycling/disposal.dm +++ b/code/modules/recycling/disposal.dm @@ -547,7 +547,7 @@ /obj/machinery/disposal/get_remote_view_fullscreens(mob/user) if(user.stat == DEAD || !(user.sight & (SEEOBJS|SEEMOBS))) - user.overlay_fullscreen("remote_view", /obj/screen/fullscreen/impaired, 2) + user.overlay_fullscreen("remote_view", /atom/movable/screen/fullscreen/impaired, 2) /obj/machinery/disposal/force_eject_occupant(mob/target) target.forceMove(get_turf(src)) diff --git a/code/modules/surgery/organs/organ_datums/lung_datum.dm b/code/modules/surgery/organs/organ_datums/lung_datum.dm index c939bbab6511..2bec8cdc8d17 100644 --- a/code/modules/surgery/organs/organ_datums/lung_datum.dm +++ b/code/modules/surgery/organs/organ_datums/lung_datum.dm @@ -65,13 +65,13 @@ H.adjustOxyLoss(5) if(safe_oxygen_min) - H.throw_alert("not_enough_oxy", /obj/screen/alert/not_enough_oxy) + H.throw_alert("not_enough_oxy", /atom/movable/screen/alert/not_enough_oxy) else if(safe_toxins_min) - H.throw_alert("not_enough_tox", /obj/screen/alert/not_enough_tox) + H.throw_alert("not_enough_tox", /atom/movable/screen/alert/not_enough_tox) else if(safe_co2_min) - H.throw_alert("not_enough_co2", /obj/screen/alert/not_enough_co2) + H.throw_alert("not_enough_co2", /atom/movable/screen/alert/not_enough_co2) else if(safe_nitro_min) - H.throw_alert("not_enough_nitro", /obj/screen/alert/not_enough_nitro) + H.throw_alert("not_enough_nitro", /atom/movable/screen/alert/not_enough_nitro) return FALSE @@ -95,7 +95,7 @@ if(O2_pp > safe_oxygen_max) var/ratio = (breath.oxygen / safe_oxygen_max / safe_oxygen_max) * 10 H.apply_damage_type(clamp(ratio, oxy_breath_dam_min, oxy_breath_dam_max), oxy_damage_type) - H.throw_alert("too_much_oxy", /obj/screen/alert/too_much_oxy) + H.throw_alert("too_much_oxy", /atom/movable/screen/alert/too_much_oxy) else H.clear_alert("too_much_oxy") @@ -103,7 +103,7 @@ if(safe_oxygen_min) if(O2_pp < safe_oxygen_min) gas_breathed = handle_too_little_breath(H, O2_pp, safe_oxygen_min, breath.oxygen) - H.throw_alert("not_enough_oxy", /obj/screen/alert/not_enough_oxy) + H.throw_alert("not_enough_oxy", /atom/movable/screen/alert/not_enough_oxy) else H.adjustOxyLoss(-HUMAN_MAX_OXYLOSS) gas_breathed = breath.oxygen @@ -121,7 +121,7 @@ if(N2_pp > safe_nitro_max) var/ratio = (breath.nitrogen / safe_nitro_max) * 10 H.apply_damage_type(clamp(ratio, nitro_breath_dam_min, nitro_breath_dam_max), nitro_damage_type) - H.throw_alert("too_much_nitro", /obj/screen/alert/too_much_nitro) + H.throw_alert("too_much_nitro", /atom/movable/screen/alert/too_much_nitro) else H.clear_alert("too_much_nitro") @@ -129,7 +129,7 @@ if(safe_nitro_min) if(N2_pp < safe_nitro_min) gas_breathed = handle_too_little_breath(H, N2_pp, safe_nitro_min, breath.nitrogen) - H.throw_alert("not_enough_nitro", /obj/screen/alert/not_enough_nitro) + H.throw_alert("not_enough_nitro", /atom/movable/screen/alert/not_enough_nitro) else H.adjustOxyLoss(-HUMAN_MAX_OXYLOSS) gas_breathed = breath.nitrogen @@ -152,7 +152,7 @@ H.apply_damage_type(HUMAN_MAX_OXYLOSS, co2_damage_type) // Lets hurt em a little, let them know we mean business if(world.time - H.co2overloadtime > 300) // They've been in here 30s now, lets start to kill them for their own good! H.apply_damage_type(15, co2_damage_type) - H.throw_alert("too_much_co2", /obj/screen/alert/too_much_co2) + H.throw_alert("too_much_co2", /atom/movable/screen/alert/too_much_co2) if(prob(20)) // Lets give them some chance to know somethings not right though I guess. H.emote("cough") @@ -164,7 +164,7 @@ if(safe_co2_min) if(CO2_pp < safe_co2_min) gas_breathed = handle_too_little_breath(H, CO2_pp, safe_co2_min, breath.carbon_dioxide) - H.throw_alert("not_enough_co2", /obj/screen/alert/not_enough_co2) + H.throw_alert("not_enough_co2", /atom/movable/screen/alert/not_enough_co2) else H.adjustOxyLoss(-HUMAN_MAX_OXYLOSS) gas_breathed = breath.carbon_dioxide @@ -183,7 +183,7 @@ if(Toxins_pp > safe_toxins_max) var/ratio = (breath.toxins / safe_toxins_max) * 10 H.apply_damage_type(clamp(ratio, tox_breath_dam_min, tox_breath_dam_max), tox_damage_type) - H.throw_alert("too_much_tox", /obj/screen/alert/too_much_tox) + H.throw_alert("too_much_tox", /atom/movable/screen/alert/too_much_tox) else H.clear_alert("too_much_tox") @@ -192,7 +192,7 @@ if(safe_toxins_min) if(Toxins_pp < safe_toxins_min) gas_breathed = handle_too_little_breath(H, Toxins_pp, safe_toxins_min, breath.toxins) - H.throw_alert("not_enough_tox", /obj/screen/alert/not_enough_tox) + H.throw_alert("not_enough_tox", /atom/movable/screen/alert/not_enough_tox) else H.adjustOxyLoss(-HUMAN_MAX_OXYLOSS) gas_breathed = breath.toxins diff --git a/code/modules/surgery/organs/organ_external.dm b/code/modules/surgery/organs/organ_external.dm index 4468194ed880..2f41331f7e41 100644 --- a/code/modules/surgery/organs/organ_external.dm +++ b/code/modules/surgery/organs/organ_external.dm @@ -207,7 +207,7 @@ parent.children.Add(src) if(owner.has_embedded_objects()) - owner.throw_alert("embeddedobject", /obj/screen/alert/embeddedobject) + owner.throw_alert("embeddedobject", /atom/movable/screen/alert/embeddedobject) /obj/item/organ/external/attempt_become_organ(obj/item/organ/external/parent,mob/living/carbon/human/H) if(parent_organ != parent.limb_name) @@ -926,7 +926,7 @@ Note that amputating the affected organ does in fact remove the infection from t forceMove(T) /obj/item/organ/external/proc/add_embedded_object(obj/item/I) - owner.throw_alert("embeddedobject", /obj/screen/alert/embeddedobject) + owner.throw_alert("embeddedobject", /atom/movable/screen/alert/embeddedobject) embedded_objects += I I.forceMove(owner) RegisterSignal(I, COMSIG_MOVABLE_MOVED, PROC_REF(remove_embedded_object)) diff --git a/code/modules/tooltip/tooltip.dm b/code/modules/tooltip/tooltip.dm index d6111c01b85f..f11341127f1e 100644 --- a/code/modules/tooltip/tooltip.dm +++ b/code/modules/tooltip/tooltip.dm @@ -13,7 +13,7 @@ Configuration: Usage: - Define mouse event procs on your (probably HUD) object and simply call the show and hide procs respectively: - /obj/screen/hud + /atom/movable/screen/hud MouseEntered(location, control, params) usr.client.tooltip.show(params, title = src.name, content = src.desc) diff --git a/code/modules/vote/vote_presets.dm b/code/modules/vote/vote_presets.dm index 069986746285..6927fa4fea7c 100644 --- a/code/modules/vote/vote_presets.dm +++ b/code/modules/vote/vote_presets.dm @@ -35,7 +35,7 @@ /datum/vote/map/announce() ..() for(var/mob/M in GLOB.player_list) - M.throw_alert("Map Vote", /obj/screen/alert/notify_mapvote, timeout_override = GLOB.configuration.vote.vote_time) + M.throw_alert("Map Vote", /atom/movable/screen/alert/notify_mapvote, timeout_override = GLOB.configuration.vote.vote_time) /datum/vote/map/handle_result(result) // Find target map. From 8677559b970586f45fe2c46b59dcabb75d41119e Mon Sep 17 00:00:00 2001 From: Charlie Nolan Date: Sun, 3 Mar 2024 09:48:48 -0800 Subject: [PATCH 13/23] Made sleepy pens awake enough to react. (#24401) --- code/modules/paperwork/pen.dm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/modules/paperwork/pen.dm b/code/modules/paperwork/pen.dm index 9ce82fb89937..da507d360a48 100644 --- a/code/modules/paperwork/pen.dm +++ b/code/modules/paperwork/pen.dm @@ -127,10 +127,11 @@ contained += "[round(reagent.volume, 0.01)]u [reagent]" if(reagents.total_volume && M.reagents) + var/fraction = min(transfer_amount / reagents.total_volume, 1) + reagents.reaction(M, REAGENT_INGEST, fraction) transfered = reagents.trans_to(M, transfer_amount) to_chat(user, "You sneakily stab [M] with the pen.") add_attack_logs(user, M, "Stabbed with (sleepy) [src]. [transfered]u of reagents transfered from pen containing [english_list(contained)].") - reagents.reaction(M, REAGENT_INGEST, 0.1) return TRUE From f7e63f0460c5713fde0f962553a51c14825b9926 Mon Sep 17 00:00:00 2001 From: Charlie Nolan Date: Sun, 3 Mar 2024 09:49:10 -0800 Subject: [PATCH 14/23] Remove account login from eftpos. (#24397) --- .../economy/economy_machinery/eftpos.dm | 20 +------------------ 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/code/modules/economy/economy_machinery/eftpos.dm b/code/modules/economy/economy_machinery/eftpos.dm index 9df87f8d06e2..a9709c5abf8d 100644 --- a/code/modules/economy/economy_machinery/eftpos.dm +++ b/code/modules/economy/economy_machinery/eftpos.dm @@ -105,25 +105,7 @@ if("link_account") if(!account_database) reconnect_database() - if(account_database) - var/attempt_account_num = tgui_input_number(user, "Enter account number to pay EFTPOS charges into:", "New account number", max_value = 9999999, min_value = 1000000) - if(!attempt_account_num) - return - var/attempt_pin = tgui_input_number(user, "Enter pin code", "Account pin", max_value = 99999, min_value = 10000) - if(!check_user_position(user) || !account_database || !attempt_pin) - return - var/datum/money_account/target_account = GLOB.station_money_database.find_user_account(attempt_account_num, include_departments = TRUE) - if(!target_account) - for(var/department_key in GLOB.station_money_database.department_accounts) - var/datum/money_account/department_account = GLOB.station_money_database.department_accounts[department_key] - if(department_account.account_number == attempt_account_num) - target_account = department_account - if(target_account && GLOB.station_money_database.try_authenticate_login(target_account, attempt_pin, TRUE, FALSE, FALSE)) - linked_account = target_account - else - to_chat(user, "[bicon(src)]Unable to connect to inputed account.") - return - else + if(!account_database) to_chat(user, "[bicon(src)]Unable to connect to accounts database.") return var/datum/money_account/target_account = locateUID(params["account"]) From 3d09c6d293f9998844fe81ba79a03fedd2dc23e9 Mon Sep 17 00:00:00 2001 From: warriorstar-orion Date: Sun, 3 Mar 2024 12:50:36 -0500 Subject: [PATCH 15/23] make no_lava mapping helper visible above rock walls (#24386) --- code/modules/mapping/mapping_helpers.dm | 1 + 1 file changed, 1 insertion(+) diff --git a/code/modules/mapping/mapping_helpers.dm b/code/modules/mapping/mapping_helpers.dm index e3afd6ffb080..a52cc4d9f462 100644 --- a/code/modules/mapping/mapping_helpers.dm +++ b/code/modules/mapping/mapping_helpers.dm @@ -66,6 +66,7 @@ /obj/effect/mapping_helpers/no_lava icon_state = "no_lava" + layer = ON_EDGED_TURF_LAYER /obj/effect/mapping_helpers/no_lava/New() var/turf/T = get_turf(src) From d6e34816e1de0c215b83c8d906179d6004cee337 Mon Sep 17 00:00:00 2001 From: GDN <96800819+GDNgit@users.noreply.github.com> Date: Sun, 3 Mar 2024 11:50:52 -0600 Subject: [PATCH 16/23] Deletes some unused vars (#24381) --- code/modules/admin/holder2.dm | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/code/modules/admin/holder2.dm b/code/modules/admin/holder2.dm index 344db25398c1..56accd28d924 100644 --- a/code/modules/admin/holder2.dm +++ b/code/modules/admin/holder2.dm @@ -2,19 +2,15 @@ GLOBAL_LIST_EMPTY(admin_datums) GLOBAL_PROTECT(admin_datums) // This is protected because we dont want people making their own admin ranks, for obvious reasons /datum/admins - var/rank = "Temporary Admin" - var/client/owner = null + var/rank = "Temporary Admin" + var/client/owner + /// Bitflag containing the current rights this admin holder is assigned to var/rights = 0 - var/fakekey = null - var/big_brother = 0 - + var/fakekey + var/big_brother = FALSE + /// Our currently linked marked datum var/datum/marked_datum - var/admincaster_screen = 0 //See newscaster.dm under machinery for a full description - var/datum/feed_message/admincaster_feed_message = new /datum/feed_message //These two will act as holders. - var/datum/feed_channel/admincaster_feed_channel = new /datum/feed_channel - var/admincaster_signature //What you'll sign the newsfeeds as - /datum/admins/New(initial_rank = "Temporary Admin", initial_rights = 0, ckey) if(IsAdminAdvancedProcCall()) to_chat(usr, "Admin rank creation blocked: Advanced ProcCall detected.") @@ -25,7 +21,6 @@ GLOBAL_PROTECT(admin_datums) // This is protected because we dont want people ma error("Admin datum created without a ckey argument. Datum has been deleted") qdel(src) return - admincaster_signature = "Nanotrasen Officer #[rand(0,9)][rand(0,9)][rand(0,9)]" rank = initial_rank rights = initial_rights GLOB.admin_datums[ckey] = src From 16c1a50f0fd90666069cbbc91156947a037215a3 Mon Sep 17 00:00:00 2001 From: Qwertytoforty <52090703+Qwertytoforty@users.noreply.github.com> Date: Sun, 3 Mar 2024 12:51:33 -0500 Subject: [PATCH 17/23] nearspace is radioactive again during radstorms (#24375) --- _maps/map_files/generic/centcomm.dmm | 20 ++++++++++---------- code/game/area/misc_areas.dm | 3 +++ icons/turf/areas.dmi | Bin 30725 -> 30883 bytes 3 files changed, 13 insertions(+), 10 deletions(-) diff --git a/_maps/map_files/generic/centcomm.dmm b/_maps/map_files/generic/centcomm.dmm index 6201efae4930..0520abc37123 100644 --- a/_maps/map_files/generic/centcomm.dmm +++ b/_maps/map_files/generic/centcomm.dmm @@ -1372,7 +1372,7 @@ /obj/structure/lattice, /obj/machinery/light/small, /turf/space, -/area/space/nearstation) +/area/space/nearstation/centcom) "fr" = ( /obj/docking_port/stationary/transit{ dir = 4; @@ -4568,7 +4568,7 @@ /area/shuttle/administration) "ps" = ( /turf/simulated/mineral/ancient/outer, -/area/space/nearstation) +/area/space/nearstation/centcom) "pt" = ( /obj/machinery/door/airlock/hatch{ name = "Armory" @@ -5803,7 +5803,7 @@ "tL" = ( /obj/structure/lattice, /turf/space, -/area/space/nearstation) +/area/space/nearstation/centcom) "tM" = ( /obj/structure/chair/comfy/shuttle{ dir = 8 @@ -7018,7 +7018,7 @@ "ya" = ( /obj/effect/mob_spawn/human/corpse/clown/corpse, /turf/simulated/floor/plating/asteroid/ancient/airless, -/area/space/nearstation) +/area/space/nearstation/centcom) "yc" = ( /obj/structure/table/reinforced, /obj/item/lighter/zippo/contractor, @@ -7029,7 +7029,7 @@ /turf/simulated/floor/plating/airless{ icon_state = "asteroidplating" }, -/area/space/nearstation) +/area/space/nearstation/centcom) "yg" = ( /mob/living/silicon/decoy{ name = "A.L.I.C.E." @@ -7110,7 +7110,7 @@ /turf/simulated/floor/plating/airless{ icon_state = "asteroidplating" }, -/area/space/nearstation) +/area/space/nearstation/centcom) "yL" = ( /obj/machinery/computer/card, /turf/simulated/floor/plasteel, @@ -10851,7 +10851,7 @@ "Mu" = ( /obj/item/coin/antagtoken, /turf/simulated/floor/plating/asteroid/ancient/airless, -/area/space/nearstation) +/area/space/nearstation/centcom) "Mv" = ( /obj/machinery/recharge_station/upgraded, /turf/simulated/floor/plasteel{ @@ -11598,7 +11598,7 @@ /area/shuttle/escape) "OK" = ( /turf/simulated/floor/plating/asteroid/ancient/airless, -/area/space/nearstation) +/area/space/nearstation/centcom) "OL" = ( /obj/structure/curtain/open/shower, /obj/machinery/shower{ @@ -13971,7 +13971,7 @@ /turf/simulated/floor/plating/airless{ icon_state = "asteroidplating" }, -/area/space/nearstation) +/area/space/nearstation/centcom) "Xt" = ( /obj/machinery/door/airlock/centcom{ name = "CentCom Customs" @@ -14329,7 +14329,7 @@ "YI" = ( /obj/effect/decal/remains/human, /turf/simulated/floor/plating/asteroid/ancient/airless, -/area/space/nearstation) +/area/space/nearstation/centcom) "YJ" = ( /obj/machinery/door/window/classic/normal{ name = "Cell B"; diff --git a/code/game/area/misc_areas.dm b/code/game/area/misc_areas.dm index b2c9fdaba23c..64595545136a 100644 --- a/code/game/area/misc_areas.dm +++ b/code/game/area/misc_areas.dm @@ -30,6 +30,9 @@ /area/space/nearstation/disposals icon_state = "nearspace_disposals" +/area/space/nearstation/centcom + icon_state = "space_near_cc" + /area/space/atmosalert() return diff --git a/icons/turf/areas.dmi b/icons/turf/areas.dmi index afddb44f48adfcf05e8e943202355abd52b20ccf..9c265a8f5e284b5da412c8a93827da1c0fec90d1 100755 GIT binary patch delta 28394 zcma&O1yodR^fx+`luF77NSAam3^e#X)AxW`yIZ>1zw)qmc?p5| zWMyY)xI7TK{ciB6LZ4Z$uIJ?ltJKL{msbX+E7n)pSge?L67Bj-97#4ZSAj&;UfT4x zP;1UmpLcl&+Kip)sU;{E>3}996X49J#ga46-m~6sf4^kEy4k~1-=y5sWnl1D3jEW4 zj&||hI^cG=(0OXWrmLG;a(Fs9ZujT(nCz(lPS+<^{z>=M$q%(wWhFnyc%d70P?>#DaB|V zmv7Cc1rqI9iD7Er(J2$HlWUuJ_&ZZ3)#ah&RW*QlL5$Ow(a7 zDi*DKhtS-7@~?q#HL2GVfCXAw{VGJ2)oDmpLMCjTuP`Riaw$!GJ}0=yfl4bY{~3Lp z?bq80Cc-Lb^4#}O4nN6n%^j@%CP*Y4d4B=PlcJd*UJ4c2T3dB7m>Najf#GN*>vT>_ zw50*5Z1>%duzB}RQ(1N^)aL5c=DgMBP!!>N4kXRW?T3sc6Oqr1c?p{p#mk}i^`-@X z{Nj@~6b)Ze*w-5%=%C=WV96#vCG+2+|1vE{wM~}~KA+;FkKBiqmnWL*j?1YIOy zuiHsQH18bT3}buqtwN$kZ?J)U3AO0sYsL#@M9-WY z+XtonRhF;wEYAVqQCi250HZQi2Ors^jeHp`Kfe>UF7EL94DXrJ2fGyVAnM-p zCjf(<+MlNjSkZTq4sG82#vE|sQJU-T?Nil~`TqW?%p0lPtH^nmyCL5?C+wC9Lvchf z0AGb)*v>{0XYBTDMOyx5SL)A2p93SYbMNEUZL8kD4hGO2r;3aC2ZY@pD%bc zV3Q2xy9`Q-Eh=fGQSe;m=a-VF^p9@KUJ+^?7h}{?Sz9Gt`kQ~2rFHrd*Tr-s_C19& z^Q2eF{ti%|`tG&Bd8S*}x3`or*{3V7o+QVA-zAEka@{3!LOJ+gW!Iymz2Y9DUHpq)NAT00Eu z6nWALzoe?-wRZ?nmY35sII8#h6|x*4LQ<}Go;An--;IR-)QAmBMa#Nx#q;P4kcbRO z?3KJ`L#Ds6F^hX`;q+w?b{bbt_7M5r5T-F)eD}^#!v;FNU|DM4&C}hxx#8*nePK31 zR8+{}_Baj#p@*ozcn$fQi@i9{hu`*~7Ak1l3AR26=5|L-}}md}#2yyc%V0`qYR$9oVxP?BSr0Jo>rQ zOAJfF@!ysMkCy$?-FMtua#q9!4ctrlCw@Eb1RkAj^Dpb$27e14Au`XX{%W;ri8{HS z_Bqxxf`&`E&tTQ;XeKIJ2+H^em!%) z#YNs$clhwhXm+%!3#KfHu| zJ8?bVssje9TK}-{o}%jM)bzgKtr^{y4FK86=&>*p@WNvo0vBab>BM0~Ak+~6Rj3<%_T90mr@dPnGVsJik!kiCd!Fw56-_yoD_^ zq|UDfZEPj`4HElmHzG0(C2FPI&>I4F#dqkt+*h(z=e_fs>k83mqP*cER-k_|W+bKR zF6@*bNkmBu!K~^3%L>%SPsWm_6Q^H3jK>F)tm(v7vW9$OV!qfU!yO$RzB&xjwyfi2 zM&6_(!P$b>j>|en^k|0P{b(Ny<4yHVy-jj7F^LBV#k~$uC z7}-u|3$K>8IJ`)|Vr^B_b2@7wi$k7X8j>b08zKZ{cu3L4{2e;;D{zq(aC6(k8$>t5 zA9d^ZB}(Jb0X{$ZiRm@})CFu{aykcE(W!RFb{=i2iC!&)hlk@_w0qI2X)RR#sNeI^ z_(aA)Ob1anqn961?D>>z{#XEKP+eU;OV2xZXMZ7w^Xg{k>kXb8nuc{RXH=T*!n)pP zWl73+<4cwQI;7K(E8;{C)jSw2s@0`q(~Y5g zgdqYa9@GwI)^Q_frSLn{!dz^OQw}9%%f6d|uSsu1ba0=97igpuY@fU*RmtR1 znL$fAS36fRTRsn--_lZV3+=sIzul_Ec=ZYI!_D2cujePX3Ashj&TzdTK>{8I3GDTF z$v_X=OCggKt1btU^@ktlJj2@>R*h&Fby!+r4CI6O8RFxO0{Dm-AnG(3v&!m(sYTuP zeoXw_#u>C9e_VSqP*L!Bc7v-q@<~b<_x*OPe&+hu?ul5r7XiJj`_6Z-GbJqh6^#_qM>Q-H9X5jb*!#-I+In=iGnlYY74 zbiXkmT|{BA9%wlsKgziHPJh?Idg4d60fXo=&9riMEkBih2YNEhZwD9)`ROP0!4P}J zwem#i#f`>XVG`LVS9&wJWLG8IJ;`$!1o&aZkRoYfy8cdF5>>trIAS{xqhJIkfVp%Z zQY5VX>JJ4S?0FkFTjJ+9N{Mevi0LgKueSDkq0Q{tbUc!qgYYoS*LCCrlvTrsR7T4w zlgzvDCSNQ}zKrB*uMv9;jb&joN!5HB19D-aht&g!8L$KpA+X02Eb+pamQKsIdCBvOURDap{}!L*_o#LgJxUq>LXt0(|Fr88B75 z0k+_qw&FA$G2E`p#;Di+P+$};x*To!b1qKb@ZDm>hCpNqvXjhJBZEfJYBv|kznz+j zpWAvIqt3oP6@wAJk!Gg>s$EbL&+ZO?H|OZKHTB-iTy@QAqpZmlh zfut~Lc=)yKl6fyJzjtp5_=$_$U+$--a%@f07#M5Grve(>$ERxFY+2g$=T(oF7lMDO zHo*^DGLXw&>0U_fn`ZJnd8D^}>#fcH;~y99mF{Z{WW4wr07PFtlsLW^(Cw z)eqlsVUl5y0TZc{N~e^W4Bl=(2@gqLC7M@B?DX<^@~LhO#B`};#sVk!TRXwN`^)Kt zM1dG}PU#!p9IlQKSFWItL#-s24US?y>+ki$J z@$Nd)!6E@~v0}`&5b7TZhxSjow)U7*_9ww}eELV}O z*LasF$(eWHYMHY~T{~}#UY@k_v_8@^Rjx+4_6#8qKLSk>(zu0`_Mu7x40&uJm@fM+ zkGB_{e-_o9>Q7PR*>}m?z)Ei`Ct5lj&WWrf{F=GoD*K@EDTw0H-i4hf5=rC`ZHuSf6?~++t=EA7#J^rJ&Ox$zF>KR)~xx zopx)#E>v5Jy6mf$ z?&sUvGm=@xcfkizj7MNl6mG3*5wJKt_A+;FD+=GU#{;Kg z-+Z|8dipfG?9wihg4KjBvj>G9IdXkv^QKO!C0AVqY5}w5`}4M&iRVve_o546;-p~l zfpGo>O~rsxcZq)hyU!p?w|m}1V2G(qgP_RcUfR@KV|BA(Wk z-)@m-C%QIF%#br;dhjoBkXB>HO|)_u@JsSP+1G4OWFlJIJa}7q1}&c+-_V_UroXfuj+U+2Ewq=fXkUu$vm@Vl80-|3KpzoCmwb z+>I{XCkT%(w^%L`#LzxlFcX*V!0k}Vi5hK|bR%9DT>}WGe=_mr`kVQzG49i^7;f+v zNKxefutX2ok1PqOdT0l;2clibS|dsOL?dGnENO@ZES9u0QuUlD1$-OTH>Bz}JJ=DH zwDIexmsy=k(5UJYJ3;|EP^M;#7zXta!nY%@A9kcdFG%YodGFCJV1Y7|+K`aAsG}1| zT1W+m=?WJVz|AYfPK^z-;GnbBBj9G=3Zai45TG|-|9(A2@%J9RsIBW@4Br@qPVydu<}N6 z5!I?SxpMtFT!sROHp}XV>j+&?9H%yutu|*m84F$g$$!F2b#04GZYJ9vz1p=KK9P9o z^VRO+a6^QXsuU;pvLF;g?z2Qp<6<*1tLMmL+FIU(wRYuIr)MedPIXePhxo} zW|lj)5>O~GelFGGM;rfSw^aI^!!YpZd2;3K4ti|ADJyVn$>ZpG>c36wS6QGf3@d$H ztxJ#n0}ds5q2aDWoLD0O`905Kx>J#+Wbl-r|8x%5 zZU9%toFJ^IW&6a|Owm1NHgowwvv*mLGWyUBob2eZ|Bjl{PP5D3lA9@u`?O(#6nygp zHkQ68N3O-y6Rv{ffCGyFDpG&y^5kNn{6%R_X4@Tk>DgOMQ*!FwEz|I4g4C!hTX5oM z(B#I#ohFe=(U)z+Nv|Ey8~{#xSc1rpt$F{0_c%cqxfySv*)^xGvFiDQ0LYg6E=DaT zW9P)r-sIHL>H6~#kpAJaEi+N;?#oaF>G@4d+|8vX{uuokhte63HUhOU;@3;UQ_STp zf^n4k^dd;MHslDR;#R+GE~eq&TQeolaVK8W-lkYe01O?bc#Y~qK;V;EZv+MIo5=XY z1X>mV97bH4c^k=ovIXqi4?i3PDt9q>_1^(SFf8NeSbLg!^2RbNa zCIOMnb^U%Q4{ZQ?80Eo@DuU9!tEM8QNPse8C&4ep5;dXsZ#V(V?{8GLgI{P3!;EX% zNQre<2$3GT%(V*3oN7EDiTY5f(tH5w=HVeJDDF9TDlVQpiHJZfLtFR$#Y9f8@iDO2PBGLioW7uci0vzmKQ4X__wW1+W-ibk%(&%Ri?pgkkc20CU|LwQ$YR}NNz<6ME-fOx0+hV3jFtWBw zQ&WAYqhm0#!^W${Juwfx16=jxq1ixbCV3e{%Si?Nbl&En0wT}r9#UP;YFz2xNVdVx z-s|y7BF(LK7auR@hx5>Y_w??o;gdR@$-&m#NAy)S-wp1TOfzl?Q0FK7ONXn53i+QW^;DDaJFyk%D>}A6IRPw;8IGe{?dw)6*%_)#?khtXp1Tq zQDd?=Ox}E}qk5bvq#kdK^mcA7y_>{yC-tF41w_)hw?5pHG8XY=s7LGN3$DuCy7Y22 z!IU{XX-yVbMi?=-=z2i-=Sb}`UyYxSau4bJB!ue*D%edt8-)~kU^NshN72S%4&18Q zcau2UiIaW%S+rkyi~*+!!GDXlsOyQx43nmyx|}=}_>~kN$6pW-Ke17m;%b6ZRBEQ^ zQ@_kEQ#n$2xuG3lO>}zjI{DBJd72=v6F-by!qm0yhMtnFS+lT5V(2KPa@T1*WS0)J zWA0GW1Jm}%rIC~oNKT zCc4`kN=7maicbn(x+GFM*peVU?Aec?qym-YH!1@`c8vvF%`);K<1a(D6R0u;Bh)q3 zVbHvyX<(Eo^?v*epWBQQ@)5mru@Uu1k$+c1of7o;+z!)LMzsuU-les$1;^VpC)V|G zIR-m}^n1Hb6Y<~gUnUI%DG$fH-@&sLJLvDuh=^k};S)GVmuS4-%E%X__N3t*p=J7o zlNjllDP2iW4`aLCU_ONNhUdOVTN1Vj-)b-=VJXn}*rc2A2DKh1Qj#6`Y{|Uci1_76 zr~awBa3=xDTnhsG~LWsC+fYvt)DH|!luVHU;*;P zS8?&$VX+DTkXLYp;gdulGwJdIbwW7^exz63KU=PjrHqd*>X7xDC>d~aVdFs_6_D2!@OFSYYe*a8GYDgif!3QbQP4Pe3pBaiZXhKJcwnUf?mGy;TOXeF z7}HaOX#bpE7D9Z$P7azoAam?s2K>d*;1NUKGb_CVFbzQM*#{HMKCJkw-$TG8_#>z1 zkmWJ-Vlk=N?EN47G(kiSm>^33!_Ur@iUN>I|AEgH>we##_8|QyvFklL?|H06aB}G@>)|f7;(% zSn`y!DH=C+CC&agiw|D!4Rfcg0tSynp=#+Z7(8$4az*4{3Z?bN@lwg?+t|;P&Mk z`Uhzp2aGhUW7CvC())|q#tjPu;&XF>t3hv$i|-MGIInBk6tWDo_)GT(9$(xbjN^-B z*v*=3c^}NypoaY?z|K(m>OaIHbw_byGZg3~9W?*hS6oy@+Rt9?6#1UF{<}q}^x>yz zGRFW(?w`#FxGwhB-h=sIUdF)E#-i*-9`$8Q6hN;X=*}kwLMB^*P>;w{ptUo zeZv3C_Tm31Zn$|`ktyb)B@8eA-4!Gn)3GEX=-9B7eS8w*pcHrNig(RVjFLlSE=q|c z6AkDdg0<{0{-u>Ox7WuX8ibG8{Oo2%Bf0>m zQ0IuQ>&wel5W|s5!sO91^*<1xS*)qw64YI;eI_S>L^Ee?A?dBA=fk_vQ?D#%_{6?6 zyZ{;u1J>Kt->o^Ii$lvBO|&Z;%sim#Ir=kv4TMEcO1GgiIHPR3BIpd1CqsRgK%bxwCYfiZia_le}-r8ql-sfWQ}JnuOD=SL^#jYYOT4WOEVY1FVqJz=Q;$+k z=G>xcMQhdmEQlCHE~Ca5zVgIJK2dO#JA?5^Cp*g3l=1#q(5a_@A^qR(|jg-~QH6Vt)k9cA1ih#391LR)YF zN-b7Rms?AxYpYJDPpBb=m0)QSRy!o5cMArb7@VKMB8lvOzGe|}3nyX}c>9*De;tHQ+suxSf6(w@9uH&FxiJ z`lKlG_Lt%(Z7aLs;R5o+ztscpYU)u+H}}}Q7#@BcRKNqsCo?LfnEnyH;T0IoMY?8& z#U&|z(%s0Z5jiDRHwd9>oWPCMQTdw)ttpJF!W(mFPCjC#{D-YF34+kC>d^o7Q-LOB$cI&hhc_A7dr9UHKJ&IA1T)q= zXm1q;8HscM0p1`!F!NNQm+^TRh=02n7?`q{#P>nH_>LfA)^5LwXs&hqUNkVFYrTVg zykL7FRb_X+fVJ(}RofZC)xG$HZI?T3`rAFz@0L2UQw%J#jv3Sh?Za!@9ND;UNQPY&K0w-y6(K z-(Dg5_6!@-DrA`M0|2y%aMFEiqN$D+9KF0qZ`ijvVU$cB$i};2!nt8WooQb*xhqj} zHj?aTI;`*xqqYm3KWAA+t--G#>WcKTkMHl`I?_=F{rK@i6#&jaml&q~#A2Mrln&Sx zZ+LQ+8?l57;@EYz4;%%gh!M2^hm^YeS2NP0h|jP*+}zwMFCfcXX=Q3f=clQ8+f9@$ zcuxx5*}k7*4MBF}Gb68kR`Xk5xDdI6Z?GW3N z@ZL7>L;5|~AKRAo0ACE|#Il&I z?HOtzyqhVJbWi1NHC2j9RNutpy#Yp)r|)Sd0A@H9x%Uv`xJui)OSdwY6tXeJP5%H)*W^ zn>S&%7(?n55L#>;vL3!~>k7Yyof^W~SN8~9)LcpSYcI5imhR1_EHExRo)!)j5f*TJ z0x+>g^Ywv}3K!8r$2p(NkH;Hk2}$m&es`W_PE?l*+0zV?Qsh?YIlU~!9@EY0ROJ%b ze=(_zhfl+aB=rv%UrhF51tE+u8nFO?x~b4#-E`axj@|Mw1ZV~n=ZilA?5pR&^4BaHrtIl2k~mJ$^|D`%EgGTh;T2j;IhUg>gE$n ztYH%d{`t%vnUW+jdRbsHi(y%mZP+!AGvPRzC?RWU+4VQXr^*k9qIx-ARcP;=A+H{0 z0ll3b9Ped@58#*Kdu6X5nqWSpk%4X2TKTIMvxKlj$x}uaE!F<=ovl)`d;R%HE!X}Q zOh$LmH32(pY->abR~@eeSr~gajaauXQvG5^5x4JQ1?G-;v>iXkirME|(i|%;uP0=- zkq3voH%+6y`*G_ue9&I~JZ+WSy{>A*Uf|JMV-S*|JsXc;jWkch4r38&SoK0%BqAP) z0i!SP|3o>e9kMv+2Zzr@mAa5vfX4W{Y0~EN41#ncv-j%tUXvwP$b}AIti4tm8`ifZt_EYf|#nkjKuJ>3BpYHxnoB{4b`Gaq?s9$hoi4hJ@_g-eA^yYa z7B5_{V5fsXgCIu*!2Y<5kX7Ww)`LmC{P`R#-vF!Ybnzm*Xy+7*Z|pUMQp>FzldhAB zZ-8z^CVP-BXbpnhbARZVV^^ybL+#a-==FV_%L|OO&rZ+IFoOI_$K}H>yhQJ{iGqz- zsvqv-ntu+y-4iA-qxbrz+tE{y_wEP6TPA#pI_;x@_ap}Zznp6i+lJPw(PqM1EcX-T z-0rEe+6=xo@wn3?bv&&jAi4E*F-CDQ_156^fla0}g8h;>VsDp8hL`%fB{Z_D)i!@C zq6@V-oDHUrUxRjBm)64>@LGR(S8*}X*jfa*qBIHOtZ1qdfOkvGYW*v*$$?*C*&@hu z$(<1}(82sO1_r5|nQVE}UT-f>Se+%pHAaTxSGGtyVF>eXOxTDt$-`J`1`9xn%4|_cOcdVho@XEaeoW?nKk0 z4F1)>nv@o$6>E0fB*-Oy=Cl2gdbSFPogI`mNe=#_n9X|vda3MD z&r0iaE&XU?q1k9WhE7GNm}ziV!8K3+HuTZ5Z%Q*emvjx@{8sTpA+DQoaelW1$EDG@ zd9)VM{G`0~s3~Ii_ae8_5Uq9^ULOK&Un)Tvoa#;k=5`22ZnE9sUmNb5{#kFn7F01JfUOk@Yiz5a9v$U3+#9a1SfCVRbMeNv&vgjsHGi**DmMplq#>0 z!af}&L=O3`Fh29Mk5CH=(Y~%ELP@va_j=x%Ee-1y33+aG?2+pck6E`I8ndw#MJZCW zzn`-wlA4&*2cy;=ch!&m_`@;@lcB~$q{WYK1`|A;>>VDxHFFh^%&x-XT>KL>J9y`^T44-65HB=)-lD6!aWVZv&ZSs9h zDlf;qq0y~N;}Yc2JEkGM1x4+E&Jf}K!v&?hGoITfG4`YB^HQNLJi_(RtA$e+uj%py zqXpI^gUx)V$Ekb=!8&<9sgbp^j|!=aJT8)srW%f>hcL(VA2TDq2_-F=%bN(W)9~k} z7|pU$@znCU<$liESj$q$tso57rAXy|90!2n}X%M8=Jf;nmL2zQ!Hxi;zKSP-2Z3Mho#9o(T@*DG&tnH0n2XCjr*+;={z8#Xc)V1c^@(?RhWzLqPz_ zBUCUAkS~6fx0|Q1mD3`3v>jkHnD=_MeO2Qd4Ig3O1w%M= z&MwrtaUnM_sI1@-4K#G}YOL-5#fL7MBy&uW?-@LEr#Z79utCSC%F|#u{96!EyMfSi zCTj7sy@*0dKSSJEn^*dY$eoco1LGf$5$=q@ZLg-b(e;eNv>u_%Ar;S*|?>+gAJ z`x&~3cc>GhYZIZX#mwzzLU8-#%aeC`=!uu7Kl9M2uO^eif5OklZ$7vpYnL}cw-eF) zj}l+;<0cM?5CeV6*{?2ZS4c>PZzLrsxbIH6AJ_4+Fy^JZh|}9Gy7m;UeB7Pmb_@%% z`#EES>nwS9@*se(8bP1YKUPo3(KPNR=u3c_22MR&DBh=*lEJlG|f`RC`e2_I9l zGlH=V;nBn?bg=H#VNop1y%*N9%(_JdYNfZsI(n0Wio=r+SIGvfgh zr)UfS;qiWwPv2Q#ka9G8bUN3WD!^d8s6%HtB$yVgxn62);kHZd9_qGvY2ZF@?q4?< z`qjy)?xOT`+?XiW33oJg*Ia(`ZjsCUi^414%&>P|BjX_wE!QSfOUV^9R4DZ2j_!rF zlc{#^gW3I^b>H~z9u|33YuVBjNvqL8dnjOCJaqoe(UID0??=vcmh}F`N+uE}bYCqK zF%h3pxhjrTbzy{JWX$sgu2zyO5oiSM$AMJj&lYb^nzPR)xL0mXoBnmABzK~9oSY`Q zlldQkzB!5C(l+BWKem$JTuzPK`ZD9{QZUsBGYjbr z9uxa*Hw{`t2Yq`TZIipsI!IYYQi5x3+N+Gx6P_M1vuG;c?+AHAexH3`2M_<KJ`I>ynu6fneQ{{CEuiky{weWeXFvG7C^HK55 zgN-OtZS8W?P%!oa|v>oof7 zmOE*~x5MVEd`=^%Pqm7P&QGcKU{(EH%@{uZ&saeQTG7bd&bNrdz6orcu-dt#y6~Q9+kWQ=Hb;^v zmq~>s>Tou!1l3X)Q@Cf{ml?->THcVcHPWeZxcUSQziv9i@&wL%C#9b8TP`Z>hhp{_ zcPeR>Ov3Y29%NVUdes4-ud*)cz+QgfHXdE~{@GDB#;`Rs)+_?AvcV{A=(|qy!$;OF z(z>c^otgc3){0#7-xu0BvUlM>DaaUd15HU5egysMpJ1WV*x*UysT8<3yQvt}a7Y)$ zCebGCnSO^|(qcnCY%>PRXvC~r0@SotlO374ar%>Y)oKdnewcrWJxKnZuUVkpga-Orho@f5pqQ*26ERM=0=*k9 z&MZc=y}3Y-;vFIY*XU(>!`qMi7>v&2)3|hJft`a$xTCeOJfV&yrqy!w`xjI0=#yq^ z6!4G8lREGno&hDE)bH^PDf#2Qp@rQ3OL_WMPR!y|p-RfBPS!)CcZ%Mvo!_roAxD|r7;$BzfwfmVZ zu5X>CZ}15}#V3qgpmsSJ&0Kh}&~Fn`#b~%2i zj7G2boj;PpFXJ&1pSrR9+ddv(`*;m^ZmG1^5f^#m(Wk7|I79n4+C$oVz+?UF78`XhkC3>R*d%C=S-kQ=8$I=p));c9!&C7J5b)q}Wn0VIZln9rk z#Vztmvqn_w(`$IH9|G@#V7cxD{nxvQP6|wdKl^K~^5B>744)$0HNu z)-iEqsB9-Qn;0f`ACTtC2zxhzW+_zr5c#rYlAL^s^-|vbak74WwDWjIPQxQv=eM|8 z^%G_h__N~(-sbB|P>2D>4-d~`-$Kw$r|X;fv?xyFCir+=NYW{-=pshjFwt4;*xByU z6u4Mqq(_yRn; ze7bda5UBkA{Y z$w0A$^r%qnGPhBOvdUtizFh|(or^%>x(3Zy zY}@xK+mFb0?5&qMq~#$q(`mpinE*mI!FW0vAa|q?@%BPpj)Xm3m^*RrtwMyl+LxjL z&ZDR6;DGpkE1jv%&-cT9%!n>&@sist7mE(iXL{ISQq zqR7$n8VssNn?^xP(7i+A^Pv5yjr&XFU;2EMwMc$?3EiWEwd|MY_jl%?CJGlE!G!^I zRJlx2OiOQvDsKLi%Z~ok5>?bn{Hwoqa~$22~9WB74KK{)XFuxyLCU2gW;=6*}jhg)}=3t{Pm;-A73S&_OiEBFPgB zqx9&so>d7f?a%>c&uok}!IqD+W_lDr?G^0-Ka05g3(tBV=h;Qy-LN=g%D4w1(rjfD zImOkF4AMB%xco97nnu`z=Jv$3&zVrh6n=1$FxsC^eroe>l1Ug01cW%vW~pZKOZRus z=}#Rrt`H;6vu?1cBq38(0zSnMeY(>3G7rH)ML&08-LsZ1l}SljEPTp=Qwse1AUNJ{ zlWjb(T*+p{1Y=UmPZ(ar8&Z^QkS209oZ1-f{<-RWT-1DxI^t)1VQtasgYg?OaPKUNwOaKYPtjm*oiC>HKC+$0)$AEEb3y17@IZdyVzCl#n+?TFO@TAJK z6Vo`s%Z*Q9*lDe9?xnLSP{boab1r`hN=4xuij6B;2BS>ic28j4?E2nDbh^C;BzMAi zK!t>XY4Y6$H&a2;Qo#(h5mG8I==fujELTngX zQXrQ^=6I$Yn@t24AJ2#&iyRxYm48GCtzD?qV@!S>EyAYl4cZmejiC|4AYHczPp1BJ zBa5Fu;+N}3O?BeQCG^l4 zQ633*Tga@wCnhrsHwtz+nJIYG3q)msY^3~se3qsXn9xVA^+uv!_eiqW^vuo(UAqD1Rj)a}p zCgHbluikRuEVQn!qV?S0HO1%yPms8D`)26$m!(!4*bR&q^^|sfrHJCvI5oYL`|wSDLhmr z0xz|@08L%FVD!;(@CtY`;Jp$NJJq!>Z%c{Y1rmM<1~UQInIA#LXRSn-lj@p?NLpLy zN)QnsH+&*88}J-Fp|o|82ZmFe$3j6L>PA^_%eC3=dDV`L73jrb0ipLHaEoM^y~Ks; z{tfu~I+>b@ArRfK7hAm4tOL#@ys4`ksbd?>(VjBpQP9oP1%^fh`YRy?{BXVZB*c5` zk=2AS?Gv2kiZf2bDwJ8e7bDf?C_LBKGXQ@ovua$vM%QABK| zm%q*Z=Sz8?Ir)`dHUM)AW^nf}m)qGW!^*YFqmAI|R`&t(^Hq_6FBYSgTN60lD6a+c z^GIHqvcLHduwHYiDF)t-+rM9Z;gcD-j@Rr`dYlS|Y#YMG?;>r!w2|UYdF^G*gm%1P zVU@SAoDRWt2j`N1Gb_bstCa|Y^UNyqLFnkh1{^RZx#w5vJbqP_wOih7H?LPw9!4NF zF6?;yOdgC{lW%8a=Hi-vk$VZMgzz3B*PmU;v-Va_o~tF1(2kHA^iiWXykreY;rpW2 zsi};&$Heu*neA>kzWw4BZ_9F8QWl2NV-01P&$6MreD{4k;_OPiNg*!P zb>O0A=WBajNS*utTs|^oVN`CK;3cr;we`LaLO+I&)<}0WQaqrdplEX5+95mLLN%m$ zaf=FZarq#pP>*um5l*^Z1w`w!p$w?s(`{751Fw{=#+lwt#0GL}8U*TC!|jY>d^Mfk z*H&e2=OtRTpJ;gAO&h1nh+6O!E$@yiteX8Xal11%^nu3Z; zT7H2U$3z-UUrlS`ezdi68*YJ+7F|r>y>oNEApQuEb(!s+h$+txkUMVQmSTU`6683{ zpe8a~ibprdvGFU}sV4T(pnI0MzIjhnXzf*gMJXQP?R4~)ao`~N-iy}^g0$mju{_m` zjb>h=Gd0&E3~1NUE49$0>S+8)Bt4EIS7Y0GMg%cCsH4o+F3qi`N~TXWUuLx-tTz$_ zc}__K|9m6Db#A%@;<03$&b;J44V25A=xC!%OQ-4&qZ7JkU5ZUh59xGuL%J)SRLE|U z?_>$&>|G*juiASfc12UT?IRD3?bZbz(>6`s-SHprBO)Ww2=GHq%>G^_@lsb;?ikNr zb!KG_KBz>@o>X3G_O`{sFP{#d7;PO~fEI}TRR#rNZh(i2UmmtB&HZ%!Wbj9$xM<|^ z^wCBRdGz%;N^)k4v-&~GsvV=OaNw8?j|_P5VEDypAzqx!#a_H&&Jd>ZrCg4oKO3W8 zTMF+hnQ`f_=<7!C6wsCz+#cNiPVIt*5TI%-8*~A{ub&Ih&km%>n+{^8r z=ydf=%u~<=JfU`(N71K+7S^H%h_TZ=Xdc2Ojf&L0k|(VQbzwQf!;on`LHO*@i=guE zhqz{qqwaHfgy#!iiRyQ%e3dWL#AVVe%_U9v3_pZa(dKrKh~#cll#CW`;1q)agy4yc zs4+BYuvz5W5|__OFG?+s6d#^5029{o@-*Bj%0t2c1w-x;vSG1v*P}f|+^TeZx@E3U z*(?}VzG9x+wnSmSSczCEC^-N=HGU{Z(hG~=s5ymvIeLq&s(14mt$xCa0Zjpl@*ngO z&$z&ofc*TG!w8A4QS>M?)<<+p4rut~&+LqYpuO7lg-wKqTNo@byQk=;KH?;@d}tu& z19ZokY;Dz3%MhMmK*Oo$*j7EQ(QQYKP(&!A%vHyOg2^g!*yd&CBU9QELTt!2 zm`;%9ZJqzfpq4P@!&<0aQ&-I1dB#*jZ&2%^AMj^AsJQV|zxcLtj*kGnr$;)53QpNq zomen3lI|G7@YzPTG&AOH6_ePMd-&(2umnotEjDKpTiLUM{_|qbTOHpG_xZDx*Ixcm zenjQ|KMvb6MYbpVCK0g>{(!QiMFIEhAx)sQtOcAFg<$Le7fA6q^7t|-fjykY-KxP{ z^)*l0@J8?t{08$26TZN?t>87nCt!?A(zd)T6bvs^4F(?LCYo6**!1~y?Vz3?U|bxu z<$xgZ?Jjr};Ooo0O;G*b&yJ4lx*oq01f5D(Q$NA$#_K9?i@?qe1TR(VW?)db-AdJb z>k}DXDqvqkvdr#6O2q6r7_!r+2VxRBkcc9>wY?gy3!Y6&bheiI*CdAr2)+qh4XLFo zxepyU!&JG6eswHg`ndQdI&5`wCrd}HYuM$)ypyNf51HY3x+dzx#3*h#mdeq6(gUX} z|GlK|V&u*(Llf$p-_vVm{MbFG@p{N-iI=D3q>>1^^n2>oi9(FR# zcP^Ak7{Vvz-5b&zO*(4&8$^FxYAA-jx9r60{Dstco3&y~BeC=-I-HUCF#+ad0({55 zeJ=kV5o|)taB|Y|v=xJ+xC)!cyCjr7QA*0{`Ypxo3jbFsJ8ft(KB+z*0z?vV%X=Uc z28ZDvXw!4!zJIe^tT%k>6Kk8>>Ky7sv6siht3P{6Ytc;*xKHaXxx$#UUo=?#NM`BL zoz9)T!<>j$@8lz}Io(P2#`N7S_eB*L6oZrN@lG8|>&KgzF&6qG_)_rD1GT$0iuct* zd{zv7su`nL`2~NwOUf)V)#nL|3HM_IudgXcC>ZtN<86L-fgXoC4 z*E?14LG2d1bxvIDN@e$MmKroYVd%k*BUOZpRIG-m)u}imW5cUi&13*{=8>zW(5JqZ z;+CMg)C3sP?2Qb>2Zg(c&lgJJk&@0cueXdQ_0H-QZid(OPdCT2FXx=Wf`ZyU8#KLP zlFC#LC)DVnO&zv!vhxjoJsq5gzukwpX{OaU>)2pS@IK}T)GiKrITkHY84_oM9;?9e zPC6G)845G@CSALIkiC2C8Ir(RoPs%3kBhK_gBq0X928{?;^2`|*}+JB<&@LIH| zNFd7kXX(@9-e$=i4ad*f4>Mn;fPJSMqU+CXS}AEwo5|D89Opgm48)6Xn9&4ErDcmS zW*4h<#z4MRQFRxS?aF&kZzzXf=eDtwww1JaN9nL(LN@haFU4gid<+3J_;)Gq@sALZ zZ(cRsqIRA=qpc~UW*+JgrGQb1m?2E*-Tx@wBw2+y64A)&W7uFPKYYo!<^Kpw%o!Nb zMzQwzBkPSSwNE?F6p@c$GXg1ajHaUimErxBb?D`C5mg5-?Bu)0eW}&#bzisUw(BaN zvS|5fpL@VS#}{eKtmb$glDV4iMwH`rCN?|L(CMEbha1|KUFh^L|I$yX9Qn99kSGye zjQ_E4B=NoCFJ3F+zl;I~e`S|qxx~bSK$1wx?EdvHW#!6`HodCDq_@LBD#$F5YMgOj zm}H*9Xp>^cp;ckw?AH#eLQ@Q)>%-dHkr4iM%18KD9i=j1QKHz$_E7#-C`;iEHRn_400T*POpPTn`u97*ASFBO?XiipZvm<|NenLL zd`*f83XR6H5sm96(m5I?xEJd&>$__)gP7aVgogmOgUiqUQ5Lj( z^!||vCZZ?WtqZV!5I0Fm1%z3(=5G=HRoh!lggVm_esKLcM)T&(0ak#J|JM&OVz-t^ zJ31|ae|Qp8_)l)SwfHY_7|cWi!!?TgB~9=4}6e1wIz&{?9+pH1EkfqE4&Is`_th z+K^MMSNtsF?ck+_QV$Ha#@yO}=~8VbV<-DX#&#@8FTOoX^yQVS7H2*SDzae%q6nqp6~lfvf`1IO*s3N^!FAe-8w5?PdQ?HqvsDa>Q^{| zke7{q*#*XLCmcUmGe<)TFU&vgGXMC`1Ymnd{4b<8EI5!{OnF=79Wwo&3*t}D3xe9Z zFkgEAo7y0N#{!3B%0I>iD27vMT9rFz5Hb*w_dQmRGq)B{Y`X2>h)b!zV~2lf-Q95#G-!5N6a_i&5_La>nMe$QH2oxtEfYpqQf7WVjEJ0&-wbN>Q`d?Y9|n_xNGJ9k)m z2z}|1n>5=@-j&@}+O|N~pEV4hEz(`~{EA}CsuisLoZReP@_=D3pk)}KydicaGUT+I%ZoguH^#i&}&}3lW zVTcCp?CH+xa&oO9dfdxkv#2zSpwCL3{e`uJViTfVIZ&V->Cn`S zTkxxsxYu}U3SOZ_efrBC!raFX{m}wjM<-2=`;g5%`<+dOO(|Kn40UI6dxfs}Oh413 znpVYZTU;D|7wVl~-$w#fw4(KCZ++avF~Q(0Mnq503s=&Hk?i6zvU% z2e8{%T3B$X_#|AMu|HZ3T~_pTd%G`=0-$^{cD~+b;STM;#&q6N%lN6jjfepBlJ4Tr z#PzLT>jD2nq7_w#kg8FT(enxAh=5)ydajQ#*fHC=$(e8P|V#a8ofig6weuDHQT|+t_E%g-@Q}m15;fS>75)p zoIQjJnP$N4IL{VFrh!VbL0r8%+hsIUs!q?6m-pEt`!jztjA)gGO^b?sr$BJB=ePJX z$^AYhKxNM^RrYNAdQl*%%7sOqLza=-2*J10$K3imeT~BZqDR_EtI$B zDaggIt(wqeathRM)=j*D{XBvZBv&SfL00R|JGk^)K_)H^E4%K)9f`HMi*}?AN9aR6l z+c*X+AO-xh#drYq0P`Q!3?n&jruBoc;gF6RpM%OVbD11C`YxhVd}N=Ne(mes3X3@m0hSljeYDzj|)77gXh-(0)$i;Y`K)N%M*K8es^_KP%#RsaziMoNOMe92(@pJy45-kLA_ zJz}yHvm+5%WrqE_htEY%0N7pcYkyZ@NW$Xf%(t`g+hgWg@)!&hQ{sR>~WWnzGT#wz7D!BQ^?hua6v0W;MrdMajQDS_A(l)Ft`k zExek80PUzo3OHMGlDkJr%j1FqjJLBu_@j|Wpj_+OlGc|{&(zKt)@zpJgFA|%Pb&Ud zBJ;}Qe(Qo;)n>j+T}mF+_VWGkzA7JjUXB-urYnTZwj(N?%>w5==BE(Tg~rKPeip+? z@2LgweCnUGTt>ih9u&w6?5lVjyeb$@9gboAUl-Tw7u%#32fX0@nz!_cxc^-;>w6Zc z;pY}mKbOK~U-}#NiGiIRd&|5r0|h^)XF4y(C4I})M)}{1zBfrO&x&w-`=t~?J`+4Z z4}mSrq+X0AQ8YbzE#!5B6H}Ug>f>M~s?%!L`k&ul-PO6HjA7A`ulCO>mN&g>J)>NWqe^ARp%eAUu{TQ(ScQznke``- zZ6)cy%(PD0WXX*NT^@(VbnBenH}RMZ;hldfKV!qXj@^6ZX<_L41dW{elzUOUlZ$xM zRNej)grZ(orkD~^Q(U&@9hS7J=IHzaAG@tq%k#7vOV?ubUQKmargUxRig0+xq_ee* zg{van?gS=7?x`x;XU~s!o+1sEO2nSCj%Cbswm9hA9R(9O-^OTN5gyFf8Ct#2^JV5e?Y~2Th}(ydiZn| z{^ong(iW=Oc=h#Bml?}Z@E<#)o@64T>t*y|C2?Eil!T^27QOZ`QO?n0ud#3HMyn6l z4Ar+JsxNZ+(+kb7w7~NExZ|onyo;g#%#RW?xOe^X^HEj?I#3Y(y%wL1t%*R^vfj_# z=ql#$hG|tnnIn0((va-Fn|)SPhTS zYm=i7vLjWq3`jFNba{xE=0&sZiCVw=S5gq{yxKxnmT(&1bU2YQI$Qkwf*W4X}u_|%E2F(+4mcZeG0Z%6~t(hJYOaQ_O5lyMP{8H&19ChOM% z;v8f`f92#B38W;5HdP6ZNIp@!n@di0#r^90Ft{CRV(A{QMdFi%%>f5k)}fdI&%Z0) zpcqc!D;y>dmN zwo&)I@p01{ZmZUXvRtxq=hB8Kzk=RYR&Q>zEx?Lx+rE1vv4pouz95$P0Ui8@hI6+DoDK?i#va_75`+ktEEagy1 z7^&i;a!o+FGW zMeX{To%!Ylt^BBp8*+j-_FtSs$;&(PW~n!0s+SlO_TL_wf{u!1%GEY3)D`ctI9$lB zc(UTDksT9FCnzaxDlrVo#m@;ME5&Izv-^?;e!80mJ#J|aZ9{nZy2!r$jwvp zzVC}f^I~@<7T^hS1&!oW|M(A=LAByKD&jGbYRyEjl%XPSPK@)Z=p`Cb=@Na=Rpd%B z{@FZNjrw5BuDo;gig1Tk$f^Ir2LVg=LoaF5M$C2dgmNhpJ$ej|_}WeYC8)fGcd)io zYUuzOF7YEE?d9om6Ktu)(cQXi0x9UDTEy?zQkD4)o2p=6n$;b$bF~f!9?k&jTP`Dz zvR&YOR#{Z$%bK}y{A*m$**XGny!U#NL2oF~sM$dDLN#q2ICE?W-a9=!3~VSkEJ-oN z4cXF0LA(8TB08Xx(ljtW)CEn(|67yWIlOX#(QV4Q*b%|q7rh)d{|l1O&(H7JHRJXt zvbR4q$yET6!02-2j=>y+^R;T||Ul=O>W<#;4npoB1_`FQKfhp5mTKlFTi?NaI~@3*=4H3-Ye z(7P*i(ld80!ie}eE1f@O{ceTRx%#q?H5K|L^?z)uX+zRdPKy8N-(g^CC8q*R3^0Xm z+jh0k8DM6cmOG%Fo4O-SYHCLpazieSyFEFQ5=X~GQ7Pkh(>BL? zruklyq%>XL^K*1OBxL`*lv+fCan6_(b>R27r-Qdk%9KnO%;CuR$ zpvJFarch06(s42TXutx-34?#kJ2I%AHhX%oxk>Okrd_yk#`9b=3&e+B`7FRmTW)YN zTy3>bv=zx4`01E{-CN z5mxE>)K<)5f(+sC`Tn!g;{mMlcKZhe-TRduRlDuNK94qG*yKjLAvU|4U)d_j{DiHV zzM^Z28xG@8af7!ZX|P|!Hn$r`+#BH$T4{U|+Fd$JjvC=vuLXwly1DYxsbC}M9K?|6 zB3*Df2Ix6Kpz}O3Jybd0zT$DI$^`Z!H<0U@E}DcHzqfKkxExU!l6Kgq z<$ythDC*_`V_srCHPCEDn1J$~i3Pt{6>au+^i=djDkT+j>W68;Y~l}nR z@MutwB7~WRR_cv8N2Oxng`dJ6S8RE7xP_VaQ&8SDmFIQ+1+{bBRm{mF5pHdzb3_=q zERzT{KW!v_(y$aj6jwjW@yv6CWsIDp5a_^w9EyVajj#IOJgTJ=AF0UQ1M>TvZw!`` z4;Ya2%V}!0{qcBPHKT;JI(7QQhL$ou*?1Gj5X1egB^B#o66#oz2+J$-_VpB~5FdJ0`c4oK~rsy zL|H5j4`Q(<#4(S06f~^2=&y-0x5~<|Flb!K8FN8?rZ+X39U)3c(2F{B`oQxpUSKo! z9(vU0C+WxK%4Hw)qi5OkUYc;)TtD&QCiI4Rs>^1q+&k#&s>!=}sTPZAq}HTYX;nw- zP6dmt#-oG4&L-EwLqyg%3-%~Ph+d)N^Y{`5Xt}JKH z{!|+>`46aG3Vfppde-sqDE%)@c)>?s+A?0w;Il~X9h zfV|RG&I3&PudzR5xNDnIiA_5{P{AFno@0eH^3`6xO30y)qai5=sNFC22CHd_Re~PI zWxZ6*(Pd^XtLCTc1RGLTwnm+0Jfk6=(bTnE^Mj`1V6Le=iW%QTmu-F)7+ixltCyY}Dfpx3vVj|ZuG5isGy<>R3; zB7NiSHpz{Oe!0X~ogD|frL`92S-uP75&yDRt>(T31+G)+NWAFm6YF*cM@p_17xDRY za%kL^lFrA-{NA12zCU*b);OkRlpZVH3T3w^ zK89~b#f}dk&n(2q8dU>p8rYsyR(8?DExuBc@(AgjTgDU?9a^X-i0((Qs{~$#9N3tP zC!zIC!wtsiPvj9IH&8e#57{q;9xb69WpGlwQk zx> zxe!G&N(=00El+y;-KahrPe;eYa4H9cT83`tA6Zi)x97;3D#Af5t&|cwBI#v0XlS=Z zV-yvMk<<%9c@l##)yaUXd0hk#KR$gpVhk8Dh{7$W5M6~iqPIaff6LD#hbX&(YE)5=H<049eG7$Q%4G24<#tL2cC!zqJ~=8%cd-;4T-S!K z^F}BtE4`z(FCvT`VEuAYPIesBgztfGE86&u#H0yY4v^C;+NnhheL;^E^ZQzfSuAM1 z9rFz=p^`9UGJxGbhx8*^X7n)SRK^vCHGngU5gW&*6-OQv(+<_y^1@tU4CULLJw zWSWXz2tpoZJoI{_FWUfT(7;t3TfBBWMqy~aW)f?P2|R4d!4jl*PS@bx+nw3UpH3)S z&DP|0-wLHs>JV%{!QH!^Sv|WqW}z~lOG1ZdKBV%x`)RFssJ>fyNzB^jQ;ZRd{V;>& zbnUGK{Hxdf?RC-w=rivuhD7U+)k}ZcGcnBE0Gvay454hxfWd2A^a)@m0|;zBL?1YF zO#_x06U@ISDLletZ2vjqQdU1 zWMdWAd>3ur?wo1w(E2S%x3NqIl9)q+7(IuivICJR@!WCP zuMpYCbs*E0nf5eVYUN|gL5@m9@S0=AS)O*k^Dcey{Aj!LZEq>GRlB&|MGN%8iE7Y% zt;zsn$*S51Y_88%Bw#Qp&ye9<(= z5%mclgr@km6EUF|O_FH=<`@`pwDY^0fbOa93u}s@=bq$oJba;!LhOeXG1U(qW`)Rz zuX=^bifhNxxiyW0=u_aEX5LH2Jhq#naGRZC4h>3rw|AJ;z$|LtcK$?kCn?V3khD~+ zVEUE4#J1vjwdIaa@cTTs#5gKo?xGZ&C8N$AvK>LGZ3@=M`Z#$4x_|XMfq|t1uVg_O1k0J1 zcN;Kgn$+1IZkp^!_nLeMtblc8sx5}+sTr~TGV49x{br)GHH9d7;EH~}p|K)O7cXG2 zlTK_ib=7_pP^p5H$3b+Vo`hdCPrGlB>vmlkS#cG+Hoy(0T@Uq_NT4w02sQi&SQ7MT(=W6LbU>8QtgD#3;y1m5s~sncEHQqMZ3`RI8L zKhLT}F(zS0LJ9V5wO|pB31uFmyw2Vd`*%@9tLGz5y~hc6^V7HY$;gy%I2%XDvXVr=jZU3T272+<5Kz+^ViP{e8aj~r_-K3QxyzZM0d9%pR*^f&|+qImu+ z+8&Eep|}hKb8mG%I0JdNxSKJvyjV?_C2odH{IQ0|)GP2HZq_Yk=4>C1TgHG$&LWa;`R&1NWEFv3$Lp>=B3rFgmlH2y zf`5y51uh$l;D�E(@$+NYXZIEQt>%;8p$Gr{j$lpo+)N{@nMlGwVqT?{QmNA81P9 zPaIkl6d`{jT?x{kt^|o8Uy;`jJ=*O$TwO}UA29}Cm&Aru{0%GnF2CBciN?KPy3(;r+?&NAH zG0H#xuoOE0idqgz7S&JpZj%?ybB(5A-AD*?#{xPZunVQl%--Rb&Lx|7J z-dRs4to@LDCAdrFqX;)$wm^z8vfjKywkfe>>BJKa_=h$ye23CRd?Jb!Q}lPfNt;9` zz3AktmjGe4dbOxQ<@J|NO#Y&0*v(im6JEXayijs4d9X)#+w7a~(G7>S7-9ykOfzJW zRn@H#)OWO1)YCR-cyv~jLmMG_qgAd(vHn-9XDeqV#lee04``T_Fw5CkPGz$R5U z@y5NxY5Mk~=hceN-UxS0MY%BZn}$AGspoc1%rmF{ZFVAK-zXV;1?5VpX!!i4HUsR3 zt6+--7S>{uJ#+heC;V{hC37bUf`dBE8Sv*N+*|fqIz3u0Gj6;+eAFv#c_8I-{1?|??6;@#wM&&rT~M`>MEZowsSbQs zpv2r-A$u)_1dqgT&zN{jF7S-+l;E!2)ceX8Q}?cB*JGA!cIJ@7U?#)6VY8mGH?0Pk z{rzAE{Bb=0m017FPjpvT059*QIN4&Yyef6ObI)hMycBLxlD{-!Ss!-sJG$6Z`j*|^ zQR{x%D}-yeV5%vt*(fw|otBZ5gqAO?_+*kXbM7y+8o0%3+>0}e(Am4!zW%A5I3fP} z#;}jf1WjGz)GXOlKQ%ercMLg3x-*$V)3TD1*_eg~8?DoH*_r7mKe;_=_-;46^!SRo z2-}sn4{LV@=`>%t*HvL?!i%~~zQBjR65WU~8$&AnVtpmo$6mEV?nlt?3!OIIxyOq4 zUPDLWk6=w$=+Y7o%gM5h0b^QQ5deKhbE3C-=TP~{ zWMRRyj2y-0ZGEjNY7z(ackX2VjTt!2Hy#$BIh76RA;TL^PVnzBb9$|DgVh18$6`FS z8h=Y})FNL--glIX!KWB%e`Ju}ThAF7Qw7)HN-|9`c0tGAaA2^xr+J^xcqR5nFl8d8 zW^Wyyx$7;{fI-Tr+ce}KxNbkV$EKwz`u9_Xlq9op_aA-VivRowa?-i1` zGWdx(pO=ljWb&{2tCU0kbr4r^)neZjNu*kP%hDumk}ijfK-eb3h$uolZjdryy!QUX z!P3NeD?O^*2Y%nVZcXg*#CY|Pmw@+N)_kPk*%cI10_SO5_=b62Ol|5iXUY5greNI` znx?x2kgm2mzMU2mmp(>n1V!4<7sH7r$?9K^eW(5d{#w1%-+bBnL{qTm$$GiPv@OT$ zjuB220fI=C(YC##{6wHK1>7pt3zoSi-v8x;z#tk@URts2zlEGp_wUAjpQSfuz1D=1*iAtJ$!5g8=tIOpcU+v~wYi*OY9&L79yl!r6{&P0} zz>tqXcc)w;&3%_OQ@*EKq{C>roHCLrOwCbWbHyvG>67Z;`?*gOm9bnLiBnZWZ~X95 zAkqg{w&hk^sWjIq2Jf-x!M9_dQSlOmX)Mo6$UwEiIuTLt0u9btgtLDhKafn*3)`C( zG?WjGOpZ;pDyBjls?U}tr%US?_JcLh&%c_(KM$|W3$S|-R-W|4LKcQrZflSc{y?BC zFu%9WP3FSGonUDjSyiOc@o3K*zUdtY8F{!aWA(bxFN;U-z+!$^B{c=>z)o9CM@y*@ zQ|=k8cw!+9M9)??I}86f(Q2&D(>FAzG}wN+pS@HRfPAzb8TUw@CedzR<74rN=I_dq z&xU+Sj_~=$N>-=!km)yv;gR`Gx%vBNc;yVwDPu=g)I5vZEe>O?eoCD zaX3*xq<0Z(Aq};*SwNhNarmJmyJXb*{#|WvLW33B=`8~9POKG13|XBC=5x(dmEcQb zVpQrm>+Swi%fCZqi5_qfp)E3551BO7yFmariS_sI{ywb3E90i+og8t<^HCB-ia0H< z`7C7P;LLjQ*12jv?{ZEvPS9EX?xH+@^Vdb(w4J2v`FT65_9E`jbjF9>=JS==54-(~ znC7Z<+{U39Zp7tcB16zfXLf3sPOu4a&W!gys^1X047=kp{~ZLu(PL)HOApSEq(qm+ jm8T)sFC+A)Q&!GF+9j`*xl0pLJPj2c_GLXXgIhbqe7qVTUO3tU#Tg9@Im@%H7hO>9X(` z_uWW;75|)r*H{K@exE7aG0CGvwgtWRD?Og!`cKDK+Qn-Zh;#pR)l78i!&9gGJ{sD7 zoCyUtwHK@Fs~`D>PB*kRj9|=}nFH%XRaL_yUgI-0O^&8jBO^+wFUxynigo_1*8;xq z-`C|7TtilM;xhA;ngQ20n8_M%1U_qOoYDG;*z*`TxX-q>LEBnQP$E}>2 zL0jYMWbzZSXoN?n2@1rAOKp~+VnwEiv=613N~9YP$S~JfjFtL%vseQQW8b?pSYorh z_B(M5>qoa!4uXuu;&VkDeb4gpIBewJ+dRBq5K{7^)M7u!d~kpyTFgI$;sUt#!n&R( zMl2E|Zio@*iUqBP3Vh?Q8&tZcn8{uY$hjoMmMO|rl5;j0vi`A8NZnC1tW4YM1+Nr# zO{PVE{QfEWU#2RM$ED+)eUM!1jiGSjh3CN@o%I2Jy?5A!ci83K75xgs?NeKvs2L-M z%u)a+K>bGWy_#JiYsbn;AIc|X%Q#Y(tVq_2X%VV5>>i?sH{XdL?3>0`xHBw zOLcrmDR{ao(yK}PW~aN$m<_L;r=8z!Hn`6I+Yu8iif5|a5^)~j#jiOmP);}y0qzu2COOrSW7 zUqdSZ5&JL7XFG3Yv|EPFn!mjic^9j?q&9+;{(I~t%#r#F>6(h4;K-oJg&cW|4%W{P zI+FyRoZDtki#`Dy8Mg5{F~P&ytR12>9x(gQN$S+2dALE}U}&?Y#=$v6tkJtIrXdRV zyk5l*r|+A*9#NIhmLb}rml7@8&*yxxsGK=*479ay@KH~fMNM5rA!Q`{m(o-u0B4f$ z8q~}nRE|pGc*|~>N?D5206FO=)Y^UpuVA(n{sQhFW4Ou?El1RkkSiS8p$IMh~5R>gsXbj3-5$+RkzeEu+3hxu3 z1e`EFtgi|qHh4awNKQS*)A>wIIOREh@094%Q`s?YPKanSK^{`6GPN(i%Rkfb!44gs z1&+@vcQJ^Ier!4EDa$U=snAcB?GDP@U$U6S0Wq-wzp7W*SNL2aGCw#uV92mJbqjB= z4CIw!f85r(L|GuxxfvAUf5xBtxWiWRO%U*lQuquiT!vT2x2Ww<-Y!%7ED*qE;tvv} z(p-pQ_<^t?S$-42N<+F|@$*BUuMigLALVkz@nNi?5~=jTr&&9< zQN$Y@A$q^#kza2fvV{H0qi)z(;g~jW{eBhM+f;8gEQbBe{mfq0J(c^}LDi^|z1%n_ zRM5JTM?dL#O5fKM-$}aUhx^Q^CI(N*Fco><2ojo*u97JP27fY&xWv}>?o(2G%Xb}o z>fT8D;JGk?>t~eFldgtmTelFGpYapx3IKsH%1{GF^PrgW!ef{Is{8a#Hu#x=Pn6!* zbW0zv1+JTZaP+q)YEaw|hyC2C47W+lJRclbUmx&vzqy#W0B$>yvDwY>HXsm2h^oR9 zJ)i8|Hvcas&lC1dvdV%L5~2vTW6zz*6uZ<}f*vv?%rh}Qp*ciLh)Rf34kef@DN-xaY56SMwO4SA=ur!-H#Hd+u6p~B^d`5_pMh~Ipe0UDLrU>|K@Y1#vI zI5@_p^jjsg`lfFz;f2? ztTyeYY9X$e3mSUDgUculftU-+-hVZS85!3cxGKAxK^Q>*fl$)LqfoIx0rOBny2j<8 ztL49szt!mDCuD#?_zf9R1=%Mf37QBp;va$~8Ya0?$8!bn#-%^w1@N>H=nLUneF;&d zqvHKnp@*0lRbL`5V&vZym1$shVL){AY(`pBgZ$4;yMMd14HSDIhr%hMIs$scGuymY zE#QrF7X~LQJX>beKmrO1i~9UOPtj!DJV?Mwn2jUOApGwydj{bvS;Oj}n@h`x2zGXM z-tFH$*%{C}>!IF=2(Og&(4Uya*+;D30)fu z9W-r$$7A+qVEG=VhQCu#QDaBD*A@A~(St|rpbQ=qlXCAsX*OjTZX zdU|@VjN?WPDI0xOHdowCs5sF*ILg-(bmmvr3Voka%#~`{frz zaF{N?_?h|0LAqy0_SNp`&J080YAF4S?Mnhq`Xcj)S-IZGAt$v@w5VW5llcG_e6*f+ zBE`qnFm_8#QkbW=-mYS*H!{UiNi&#G`}CW2VAgbyKvug7tPRsJBR(=RGRm#|qK_?j z&AoSi`k34=R?2<;gW}(pgrhDjOva|E5Wz;B`96`Ixr-Q2Q&E+K$RhGxNdYUnoYK?a zKAbcKGty$SLG}%pk4DNk`#bV`*$LIxb6pLaMv$Iu6ZPD!EikaHmnaT=J$( zM#d+ZVNn8DAJD|mpJ`l&Ip*(;8iQNbd<_kAY%>KSSB$@SKdTT|H?zTEhL@c=Q^2yv zIIfNFSqO^x_6lc0eShL4-LfvTT@qWVMEggDadveb?*OfN$1LuCXo|UyKdCw-zg9W# z97#!rQt!1l*Uil@IUkshu55<l>MG=R?^Uuo zq`B*5Bz~EEvAP;2V^n-!ACEL;1Re@A@DMUEPg*-D1Dv>T+d8V@GMZ0;95HJ1&A@CRC>eNy9-Sr-fpwxmtK|>jTFWvpFoyML7<>Vvs z^VREbz!Y5*F;tfch3MYbNsQl?0pP%D0KcVXr9^dVK}E2v*!|$r7*g7%ZVc_`uh+;K z6rOh`7zGeMM^{b?D&=v2*2l>zhs2s_VrCD$;t*u;t4YS%P{Uo7slJlEgN9Jl7m11a}U}3Xwhg*p(uYF zP=g%n_u8-;xKI#TUq)G3ZM75yMzG-rZW1B0qiY&9>EOK?X;Z-f*PyE(PEkF;tdOaR z@NLq_mB|=_uN~>DxLTEgkRL-BIh%?ExzclS$;~)@@dfkC05FD_$hm4eys`sI0g}wcnW%Ql zd%rB&Jt}w{PW4X}#O8@OXQyoF-6BCCoE}~*wHPkGwx4JV!&LJeFLSQm{a`Yr)cAuK z+|dfaan_#>Ij)ifssk4~d+}yxy>3%BFd7^36zJXc41iW2xViuSLX*7Z9z|V$)10^7 zs+RY#Nt<7F;J0!EkNxc_5AgmrP#`P&V;tLFgv@1j$7?YnB0BHM-OlvJ)5q&&8v;9a z-<=OavB60Rl8t_2W*4bfsX2>zyJ=3&XX*&b-{?7tZ+h7`V&$*5Vq2?4;8PSyTKA8=U^8KWMp@DSkLsN8Pz zfg53jnZBtSn8bxsMFx0#Q#FU{V385+ zuD^~tM=kr&6#r9WLHBg9%$(oZV!Vq8Vw?aC#YypbF9Ell#J8%={iFiNg$*Pw1FNM}wa`Nw^(yKT~1p9)EB0@VZ2ed{%A}@sAE{~Tq{()O&#JBT}duBu= zBlvE{R!=5gIEf>8oc!hinhpZz+gqg9MTMa+=U&V5FZua7_H$JW*eLCgL~P*p&}9rx z8UgG=l;s=_vznL>;C8|p6Sia$V%EQ3)GzP|V@NDBBA1w^b&)Oql$?IMmLk_OHC875 zc$jQjF>94JmLEiBARmfmgj%3}cha z9QDDA81_)<%!)}>h;W&kZ>ltt?fF+PGL~WRE+fgD{#Cc?46{ud>0_o^*;lG51P! zJ2sEl3>LmG;mp-0xY}SCo5mYjVPk*pvM4p6* z_{Zx$TopROvU~|+Ij=>k!axfgJ%6)MwKWpa%)cm-FA}qy%>Mg()@;0kD7TCgL3cuL z5*tau=gs)vzvz00D>1PRN+PY)ECN=){c+A;*^9>V?DIgcIyN739nCJ3FuEEe=h0}E z7D?z>E#6yQ0S528_y@>mB=UAe44e1i#3>v1MaA_lH~)OsB}?(`ySQmiT{Hd(lBODb;`YrJ;<)8**OH-4=6{?cg@p%*BDJ&T*6>|9^f(bB{Gh8>+|kC$L(4= zfexTlcJrGVb9>5O#Kjx0Nv!w8RPnUEb;De&O3m-Zuzds>=d>(`Qi4cMScyD+IP@Y2 zBH~I1A1@BDVC2UpwSR4sJR)vB4@=_}Byg*2pqHPs6v&h$Kgeb`;VpdX=oAi9Z#}<_ z_s|KkW07ut&>3Baur&&?d9oMOriWb zY6d72Ll{%0?LVB&IAh3koqUqEN)%naPb?LFKnDl(rVq|px_M| zMd!u_0j7<9xqt)(6!qXJpp+A!+W*d{>-~mLg*yKS0MRigcPFnuz)RD$kfA3KZzI6m zBp?SN6Y^CLLY2fQLk@`eP2~EM2SSWww9lRfIEZ8z2;UyF2Wbo6#(GN|3*Ww_Ne;Ya z$V6C0fg+?vlyyjf~=m8l3fovxZMu)WT6(LHg&2Z9lP1#U>B4k2FuI?-ar7?XB^^k?Sw2~J{V7p|4~sy z9Ph>*i0M+jlD+4_Mvr*h_YTZLwBF)IJYmSdc_n|>^y3?d_6aBH9fpIM2<-UcB#Mdg z{wOZXw&m5bjk_Vu{YXd|)j9Y|#ExT&z*J5~$k|?~5sQmn%LrD>4lz&0rvv7lM8_!> z3RkhrVqu*ieb8hOyUh(rcsgI}%YXa*otSpcn>JKA`VU1wMylE2pC8bJbHuigKurPM4P zz^9H|jT<~rOd0@>CsyU>{sE_wd{KOcieP&FU;DN3V&NtayZ@@qT6P^y8V1_+|E*Ww zngO~Kx$MC7@1%VVnosNvn@_g?rO^}w+)OYv3r=52wfp6!O_lNGgQ+z7G$^hrcjHg3 zA{Vd)UjBVvHIX8}_7kPIt9I`ZPP;~(%wbUG&71SAdj+Lc61ToHqr0o;`Ln$Tx?GGp z0d3jdLsK5t(io%gE81s&OSm(#i@vW96@sbkZmmsuO~h5hM>3Sb^x|)eyE)SxSJT)Lq-K0c>S^PxV(zv}*9WnD?o@_{(W- zFqIpkB>dj7I^9;coi0BgFE==-_=iG9qxwXADGM3#lZcywd(2ZWNVq#y-VhPfr3TX0 zG3GleBn8onksHHP!b)yF7vpSx5K~qTB*=6>S+OWe%B5#Pp8?;4Oi~vaPtqJ2&ZES9 z+=!_*;#z|ozB%U$-;1M=vaJD}%F2INJgknIn4BSXWwc#0tk?WDua-Im0T3tsB4(nIsdWlS&OFR}3V=JkB|v!~*#5!GnnXHE|# z)5oi1lExSWld>4FEk)TSDZR0Jhza#KaOOSqSsUcnK>|w783G|~$W2sxbcOdWMo_(a zGK!d0r0U&W^QHEfzOitaqN0)O7%4fKQ@5fnqG0^&_xQh=zpejmReZ8DlElDB4SZwa zmDHfUzCB-J#H;1zBiHjUkntz z=hr$5;Cb+HPq4P*tfm0&0(`8^1B?z1cM9N1w-nJFQ7!mTm$v7G|+hvncWsnn+bRuU-x`}*x462ZR~Vxo&qg0i9Lm7&)bxA8R8@+!5-bh z>P=S1?l<9g8Ip{P>SM8s*5W2zNtvgZyG?k-C>zaH!foH1qK#oTuIA~ie_l13$E|}bsEfvJo&X_S~Mpu53!^ingX?p^Wc7J zN122UuJ$usfT3%axwWiC4tI^ng1AxAZur70|E{B}9 z$+$%k8n|&XDHLs1&$+q3?(>gjW-cg8<>fw-e!wOj@xw+o;!`3Dr)un=ve_3j727?f zP2SQPvBJK~$jD8($z*@OHDZ=p8l}oB+m`!9Jf05na~>nm^Rvz0K@6HJyUL}WjMsaO zlZ`6?@BXpCaNi?Fwys{?iZ3`A^Aj=SRD_)3Zj~s%xWn5opu9xiX7Lwe=RN59o>6FE z=FEQD@kuzN%;!xvE}va1ecs0={&E!kEia`<=Leh;*3FP76dI}vY?NGe+B5Jw0D_qR z;_c)YlQ6ye&;Q6Z&HU0rPmNz=xj6ll1R$C6xr6dJVq7(TwkKGix|*2G+sTR)y|Xqz zf?=}34?Nyk7{}s)xo8qX#`}So=y$d+$ckO!EybWm2)g|IBPK$6u;eR$U-0DUojwa@ zAR>LikK^SEcvYrUV z&erTMBcppoxu_Ya2>JCV|D^p0%0`7i4)3AdQ_4*)NIeOoM1cg4p+`OIRGF|=#M55| zsof00#iRsOn~4bmXz#$-y#7wtrVV_>8;^I_`rbXXXwpDz^gFGRl8#aKZc_1dn1uX- zYkkicaloZ5L_x!(#B#$%y=(G-01Z@gA&^=UGDZqsLj^GD{SN}W)$NXc7yk#D<;}JN z70tG;AS42RA@c>V!4oiP|JQzefMOI({~>biE{M>x{|BKvF9x}GH{33I8{&;FhTztK8%950Ef@` zf8>+lRDIwgH~k-ZiDc@w{qNcSoz4Or2YK`7%k6#izOX3ru^MICC%yEp3V#7k&=;Agk^rtE*9Yf3T7ZrO5uyuEku4!VGL(@Nvo5PWGzKpath;{dYts>mO@jEk4AtmI-{AX5Kr5Oh{d!^dpWeYmm{@qbr0GuJ z=lz#}T5u`wvqa;-RCR{R4WjV#G`^CzOHyh0e&-8@D8L<@cGg;XoV>vpAH$%B{v!dj zS}@Uh_Gx=eGAU2}1#=41FA=d)XPDw=KUwaurz#CxkSF1^o|trQlT82MJGd;H)i(r% z-_K;q?|{2`mE!hl!1E?%DT14o9s0T}pqO&3-Bga_I|uD?iq^ZcQ)1#I9C9XpCV|cn zmUXV~h%+lmX4Y58uda24?K;u6W_P0#8Tree`dY@WfQn! zw_L&ykTl951cEL;iI}# zLy9M}3STCTS^k7Kv;A(%9$t#!@Ca~z5v3*NvACD`e(I*6#r(2s``wrcf1rhD$0l#O zbWQWiX2XE(&cE&L==>T2`=%+H=fj+uMi+URjLbHj)8Z@mE;qeYJGZ?OWC9CYOo}SX z&_9hKlp3S1w`g_@=hrW@u9si)z&rm?-XRy1V`Pib!Bt~sjhKpwI{`?jqqU5T%LXg= zlx@uzpugV^2u%N;tgPw6NV6>OE;V7M=;${TM#9K@JtK_+s10$(Io#l-#yAB|flL&6 zKN=Y4rYXRJ2EqoHwcol;Ic2mge~X)b2uv^MUHk7C1w&`%U^B}~Z0R5nkif@^&`1o! z<`n{jIXn9RUP=c6du&ZL{#qO*>_m3CB2_G<_xPMDnV1Ree;-KlWCCjqZR@wZ>~uoL zK>JIg9?EzTnq?s2wi6#%)r`}#{T>dMkZgz8F-vDAo6DK-Yj!Co5l53VC+cZ~HHBfA z6ABUFc(zR6go&9!JqLs#_TL?5IMrHfj$yo>iLUhy@!t{xo(tcm z@m}fYW+5;TD?}~>=W&v_?H;!$(#U?R7g{^V$nh5-oKED7S0NRnezf1F<-)wjjye3Q zZBM!zlTE_jJW7gtNDpj=U>y>q1=I=N<{bq3cUSf@W!1-#Ox#>QsyVj4(vx(tZqAc| zeDG(KW!@wh1-`6hr4X1e#m@F*Yz5tFEcyxs5ap_EJPkd@fSjPBsi56d@O6(!cqiA? z(g<{vdfgJ=?3vD${1EF&-`^mBY|>-KV=fU)OAA6k-%!=bM?gzMV=&1}3V*gpDh2E@ z5!%m*0gmj?urZ`@4tDB6fTnVw43aMrJ=Lp^bC z=4=^=E*WM#BtNR;`T6v`Nubc=@}yStPf@Hl+uWZr|FLz_}87JVlTFRO)E{ClOrPV(}isQE25WMUUBz&<0B(^ z`2(`)UbYjkDXs|`>Xm<;rX_#*k{ooy#>Q94CdfbSD%X2%jo#K}s#~^TKg45FyOa4{ z+8d9Ei07hDT3*Di(NXtJiWt`mVxlq7M=45q3_D8*@8~T9J0o@MfP(0e*Cget3lEg8#l1)KBI@$lNh(FTVoKUi^VCz{fh~HDNuct~ie}Lk?j%%f;V>f|5kvbZ#x;Y=Wu>X0NKW8NG)9wzRs#tI3 zaNEfaAE)bW{_6VRSD!jcr&_wqTv&#Rg z35F?wnqVkw8DA&zhN$}%_}Pqjt6sWz=E@MC_~?+(=VrBC_wDjzXNB$#5g|ke80luCtxc{D~{HpRa ziuX{uwxDF&VFm$d46;~p8T+CC5=>g-kD}_8-7+PE{zQQ{b~0xN9IzM zjCT7Y!eVtu@oIQPTdJcLXG3UpsP+TPvHI3j@e!jlOrB>`L7c)v!JEBv&zsmL7cD${ zpg{tOXc1F;tinsd(sMg6Z-gxII)l;S%^F2ppNI7o&y2Ehpba|P^i;^7c z^0FS29dBb-+jKQNbT7^P`v*hZbPc{-{xLd;>z|9!CE(|k-7&pn)jZBxMDsays zsuE=uJlX2+_=cs<7j%VhJ%C&Fx+#65lpst+-(9#_at!jTC8#acb&7yOQnPa}s2us* zT8|;-rFQl~gJr<9JLvF3Q!HIBO=ymYn81A2gP0y82WXezP;Hkyg3aL z1AuHqXT!|s&e@!e?e$xSs#1hqRyOL_PsF5*qKh87R;@dgE&98Dw6&`K50`M%D{)o! z5s5#KhtDc=y`%2fJKJyn0qM)rgU_TVDOCYh)i=54tu}qbA_H1;C)XwL3d`y4r;%l0 zUD@(y{OI8eeBEJ>mNR!=c6*BI_gozSO*9o>_Lb&8sbks1rUxLrS ztgd&kGZ&=o9`*l7f9Y=)a6V5#L^QVVB2^-2{d0-J%>4mZo zb)J#eug|U7B-;z=JNA8Tz*rIZf|h8j6+>HIVDm%t{wQ%X;ILun zXrjFo>Mq}VB1z9DzDgwbKI$iJlg#r7=(i`>1P+78-2S@I09&GO^Sau$&;{3HvlpSg z>RuPDZLiX_^mhY~7G2Ernhy7Gr!8&I8|igx&iiN502s66S?-PNU+T`Jw^pwU?;oATQt@XTxJ*V#ZtZ6WY$DK!$E7`;xCJs zVv_@ci?C5PQZZB4#h7*I-05w+8Rp`j0*Y)yOS?w$PliEGE9J^FfA`Oihc$bn(qh&! z4nSotOIXUa(uhoIUT)R7fjf`P(B1AiD%^7`2VIKOHIkvj^T*jm$u{qtyXl+L_nLPq zt+C$i`AL%;IovaQ5%8+AI=+P~U$j3h12MaHM6AGf304PW8Y{`g^=KyHZq zP3E2-)wJu#RG`)v`TWvcE~t=NhL!ylpw2rsQA`HgxzOn2Q&7>^?bvX(ZVLO`Jq{5u zN!7eVo*G3oclYL1sES;WNj~3C%~3j@(x7JC@6h(#$I;vZVWY*L;)nbtnW;S*L&Z&X z)`^Megg0!(ZHLDyW@18z%kbnKWM6T8JdJ6_-w7hsw4Dee&RVv)=CxS8Z~^E$qJFyN zM3R!IBV7%~uS@#$UvL$!`PRcSqQft!S@njFqJ!dT{nU0JezAVW;!fW0V z-5cjT1OpKykygKjn6y{PL;$Dmv=q)mYeKo>Ue5NE(nD*0xntdGL9!)WCEFnEeDsnf z+@8mc8-}ykkye&1Ry)k7N&fj|yeVtW01us6n!VeyMccsBH1eToJ||}Lt_7T4 zHY`lg4;g|_bF>T*yc{nfAv|mQXu(XWcXo@_! z+9dPem8gcpPA0DY7>hAPvoGI{#oeEG37jf>XbDr50fQ$lp_hnp{1Q=6kl4Q+P9b|D za6E*OCBjS%)Y>hxO9mW&e*fX8TUwwd4H4dKJzu)G3Xz-wD$#iHVSHC;xHm7QQ&B{` zZ5Eq|95jfKP8JpA_tzi6D&-ogX;3P{$P`W#T@uhN&XL`3%gjDEh<*`ofWt}5os~_( za_VF5C&()6-1bMDnc1&<*#Ev${XrXm`yz`9rihjSgX7Q+Q z-N;=kw3bf8?Au!`D~a^>u<(@24JT%5YIP%$eZ&~SCR>%?;wU1P;pW5dG>hXzo%O?9 z;KfLkq!KTY&O=lSsST#Apr>|XY!@Vn%A=Ta2_lT|IEQC?@t0P)F66vE`HQlYFU1>=~z0=L~?_(D(5-% z4vBiQiV^m7Cf2zI!^hP(@foHE)Mfpb=J?%9FU|% z{D-?U-@eUp02|O=f>iTuw6~-j;w|}meiCRl56ZdUy?8uHC-le1P`IyVIHGG^gpB{c zzg|qzt;=6J0xwvJ8jz4wX1Vu-OVd=uP7ZH9E5+xZD4Z-lS9geG>mX_jd@4urrF{nQ zu-dujB2pT)v5;l=-s)wupVKRA7PKhBrL#mGzygl=QR96RPD(n*-i;bXz$0hTn;g<5 z&Tbirn$sT-6K8sP;mY2HY9mnpWfYctAy8yqjTTB@mq+0c^eot?mOTF^RZ6ct0gM?a z?NSp?gnHx5w}~9U<)Asd`A&Pi9*ablDO46gCM*43p^i?6smVHdNhPy{JFb%{4>G%e zF)ADvZ}mQF&jFP@_O-#_LomL_Wtoc5#0!onjvy>+3B%%%oQl%XUEi@RPBv|wjee%z zMa;`BT|SO=(C8>YL_D`a#*~YzvKU}e5cx6^k4H^7_0u73UMVIam+r42)2>fO$WEVH zl3m@j+4yfPFy7Ffo8B584%Nb{%BPI^P!1SY~CX5w6#w#7gCP1=2T8f#-?$#km2)zErm!@TIY|8Jzhp=-?imo7vS-_T%fgD=S^?uc zzWTsh_v=ZjW-ApoSW&H@j-88p|4PM-Q&LAw!1yT^7IvFinwi|6^q+8!+w13mOGoDo zroVX--3@29^cR;s%g$7z66arb8o?@AkIsK7(^nvT=Uu?S5Zjmb8o`4B!$O+=yt%Ch z!v%2Bg?&ZERsYT7f|g$lL83pWcckRbk4Asz58cS+g8b{MO4uDZyD5ObaA_*`jf;ie zXE`yt+Pr8rn=`E*61mAvPl^OE_W7uRfsNF*+r^7jkD4hq+wUl1bUKxTD* zHd(Ba0IU+$2b~%R#JIOqbf8`%kyNdOX<9cn-?&`8%i{BU#%k5YRODJDP6m30B3ZY4 z49rVe9iUy=j9gb0z}1hllp7yXBje7IpqRBM^5BZjanS(=N>k6n%#dk&U%7VX7UY+3d-&1SJed%)E{6CO_4CF(AS1 zt|{h^S3lI@gTZoJ@5kYtCrYL#BhaALXY3ZA?;1$IPBSkD2IY2{mp$(nj3D&IJ`R_t zOV5GEi0J?Vn+3!P`o_tk7Y)dAYu}tD56dRUYU#D3`Q2)Y;=$tPJ!k%*b~TtZS-*)# zKcwuqq1IMY&7;W-NpQ0&gAeOKw4XOQdbSs;ZOwGN3h>5ym*B$fl;$$XD--P2HFImI zVk?tmD@Fy}LbD>?jl=KM9QywO(c8p;k+1Dp;Z!K$XecE8I z(IcUufxB%Be>Q>#eN?oG2E3w^5RBBfJ(RU}a&is8uxOZ0mCS#v<}bN=*GwqCH7gA4 zXN+K<3hlTLjBySu)wL118%1~~SaIW=vINM0or<@69Rb~3e?gS~Be6Ke4&3k7R(GVu z;~F$~RO?%_unX!4GUmIL42$~>YnXG>4<<0P~wb|>8Mig zz8k+J8QRR<2BpG}`kD4toJKp4N)urEl;tp6vFghSzcl&=Jel)Q>JpMsvee#8|G11= zcy^f(K5aKn$mKWDCrYtQFJl!L{V6zro%yHD&3syH9)pFbSC z6qJ^!;>A7KOLuTp^59aZx6QSmPR~EYagJr+lnrz{9Mg}yRSsSI5xmBDB4*citC3UD z|4q-pVr*Uk4(MnkDSpb;c(K?@SQCwEj2NF5 z>lv0%M1xYr8^h(lF*k4<&aknIAxpAsm-5cErh#(!s0cYzvv5+abtt;hgyN#6?yk+k zV`K5MU6(ICz5Zi|#C|tzuu9CxMBc;pvuPVA$6WF%PlIYGR_lIac43@V439-z;qZtb zaw=sd98JZ zH{k83MKMFzz~fo_(R9B*3M{BnWlCply2ok&yFbV4aiuljFohGQ07M zG&j^**N-vg(NF#lnIm$CS%#RX7F zdR(Zqs8~FNK4dg^Hh0lpDO$Q?SA(`=##GeSax>;RhiofOl0^~s zD{QHfpCL`!mRT4K+*go$oGZo)UcCoVJ;=H=$0gg`=Qbmem(PA?M^H;8bohFdRnqIQ z-1;DIKoeNwo1NvCr@e!R{-ryQ7^i`3(0MW7wNL{Fb$XJ4isJ}9o74>NA>1`>&2_9EC2sLb+YqM)qdzfGT?po?I6+YxrE`Y{4 z8w~ji)=6ihj3-Do@2Nu*dj23ML>a5Z5dlUjsqtHVPb)bz1JxbSC`cNzAMr91q0sMNZxQhJK{2esWb*dkLKsRl62Xx9no#GfGtJQC! z0FFF7Tm?fT+y^MgV}S3PGvJ3zL$Q3k)W}Grk2csxuJ+jt@|*HNJ5uc}ZW56xTN0xq zW}+zr;HYKa)>YX06g=zz{E(zT*DH^vKJZsdR5)x_`AT(7pcC!m|DSHO)avAI!l*-^zr$v{49&>s-K0j?dpw*jjFq8=Il?%>39X8oq zt6DTBBJ(SEn!YU=oL?;#_Px>KDv*n77@Av7)?IF(7(#A0kZI@l&ROr}sj0Y*=>fLT z(9ke8N$&c*T!J2g3nu$nA0q(a)%~aAay>phUSuigJk~`taGsg3JT<2A6upV-Y13&v zlK_)b>rL2;fTfc?;+=&Pv2X=d%$-1z<_Q0FLwB9H1g={sCLsb820;=z?filQA)qo4D7!39&eWPpL;OYdP={7ClU5c5oa5rf(ro=38t}hfL zJi47<(2>y|cui@q2ic`r?#;8|;M0;*b4$zpW<@uVhBMaD(3`j~?NQ(cS-_+pU%ltU z52_zJN;rdMpSR&8J(3duLX(@Ce!D1~Br`q+hF0OB@P*@Sqw0nN(0HyDtHBIY5 z)97W~IGjV;_v?-`W5K6*Oe|7|tY5yZPD5T4aeK8B!Ep9(Eol%m@YS`}?1L~XAJD4H1@7#0qZW}snSM54Xb_L`z95ImGJS*|vq zAz~RQrYc9-V%BAfn>bDSCI1Yl*q;&Eqd8XZ{_%R#sq9#hPr<2${}JoD1?W@nxae&* zkrNrHr1-SGM`}SQ%jBQ68+U#~y7SF`J|ku4M&>~$p?1Bag_V#S(YAAqxJk2VyggPd zp@~N)l#Y)H(U9J8-J?d;BW`ULTFY?cZNknvIc5=w=444kY~N8KVTucAiE4b3@39}+ z!x@e~VN+T2!zZUUc1{qXckqAOtcDENKcA^MiyPAHB&K014`g~XPPP$va8Dfk@*^T* zGl1zCx6#8?@YA{U^q;o#bgNqkyTmsWKFeD9yea8CVa5l@mX|6r5yvd|prX>g&=S0IxVi-Rs$}R2Y`E_zJpj_{Mk(Q(^D8@7o1{a0sFO({m z<2A$1Fa-k9*A0uF(#u}T)+icbeNsZ0-g|0RW)o%m<7}`3Cw?If`2d?}GKxxBjn^WK%a*bufTjc48xt zYTV7CoY6>bBUy53Z+tn1SQfu?@hsn*O@XeT(`U01HSI^I^JFn*XVPC4>MdsvWeUtd zpqS0d1;K_si-(IEuvm9^-?M!9CLF|?efJ>n>w{>DwtU-wS4rAd^hwXG7{EjT*sw4c z9JhNv>GrwKl9nCk?e&|_bhy}h?8w3_?mtVx)%$qsE5Y;KzgFVZyx8wB?N?iTRRv-r zGPbs@CuuL9U;hl>b8~ch%P)HS8{_TXqL-hEmE)|}{FdiiU%z>YncsS42(V5dm7=E5vFnqnSMmmfwZuyDY87ZWyn* zFP-?p)<3qEJQmGcCU^0t&Bq|aIcE}3Nh>EZ3 z$#fV}CuUqK$Fz(j1T`-g{m>eP2=DzP!2hxXs2>g*K#})?`QBtc;}8@UL@gK);=BgT z{4Vh>y%}0d1XE!hS1XTDk@0z+l2Kd$qM`Gwvnt32e8>1frxF;)Cou2It{+d6hl8Oa zBcgL)6l&_v8aab3QjdPd;$4y>xa1jSt~7ol^)|&ATfUpL94ZL zT#`;1bY2bqzc$W0s;RAO_gGM>5I~C5AXSfEaXCzs>&9&y7zvlsC2U4-P$suChN9`V` z_hKnD7-ksw1-arnHV3AF7MQgLnmK zLMLEkx{qw`&9;U#p!!LPaZ7?%BIFHW0!9Lx_UEh~N_3On*etQ77 zU^Nyld3q4AqVtg($VC34ShNf1w1fOg*x-oW0m<2_@l>viTyYLvuG^x_1nD+dTa1D8 zn&*5$dUH(l(^@QGW7VP_y-3&bac5Zf%^iMSnmk&o>!QvKP%N!>uXi5i{fXrK5_zFT z+)uWjvAzwOAG^w?gKbA{{+hD`T>77f|M(t5SZwUNYh8nk3CcOK+ZTH55U6RIa@z#f z^Az{C$B+uWmU+a@!>4;vW>Z{LLi<&W11`687qx`gekPKwNu51aagZ~ndL?W7AU=Ez zu6D(5Mfw3XeY)LM+FQj2c-j&dGO&UYQm4dJxQpFViK1!u7_agPm)*Y$ ziZFPqj{AMrZUl4lD6vLQX~HgUE=KQaND^7w$pujyqrC8pYiUk>G` zqA_H^D%i_L!;0Aw$_Rbbh2QiVx|etKro~&UCGgWNPM7=jn^P-{=@uTdniJF`xF*bQ zPSM9GCFMBC-IQVJ-r^v}hS}luP`Him5M*#~{57H5hd;3M_K}f=ZuZHcn3PZJd1p3Cd6#k?=9RPc7N`d8Qg&1Xjgju` zOL>1A&7VYi-H=V?m968<*7?*BE`1ICC280}+Q$k%L*xwm`|{p}1vYPs;@Tc^Swg2J z;Y-7Rnj}v?1B`n(O4x8S>bkd9-N4gX+1M^Y zm_%rDKvHCEhZ%kra{wqTm%3?GKbT+Yk+-uI87LAuvs~)7>l)fY(hwn>P=dU@Z|xEt zd5atLKG;k<8?tj(klQ++vJWDvQu%J2y%PyKMSSD$Y9QwcX)=X|4l_1Pk9!d!H_l8? zS6+ierD7!w5M$^i&~Z6U!+%*$`KakUn-T~-7vd5v&rb12h2z3EptMU=`~bO*eq_rH zSOac|5pHjU`?y&z`PKBu=qPW4uNbt`&C{xKP|r4_yyuI$kjm%Ld*i>6ImgB8w$@N# z>s=aIk);!6Py42gV}xrf9;7j~dm{4|@yD_$2V;1~^CA0sClXqc7>*(Aj(fdOd9=!+jC3H6Ckc*Rad@Ok`YPJSw*z?ic% z^qd6{Zcc*e_9xV4Di5tC!JHw+0w2f4xSuVAsgVF2%6S?~0*mzR^Z^~2Ui##5I(l{^ zzjd4x!5nrT4!18Ds|ljf2XSH0?t5F1t!LHml8tnlIH6x9OD`1F+_Grnfh^o@-iNPF zP7XEOq8#T*2c*_5=Tus98N`Js}=@HzN4+xxDsf05a=F^3-<{n$TZ z@J<+e)jr<0Cvv!MhW|B)^|Yr|LUBH^D)!T0cB(n!O7GQdmzqhyIPcdid5e@r><%5x zcs)FRRBezae6}iacHsY21yb2g(xazps?Kj7si2(u;B+}<-(OXE%2`J`V=@=*q@$Ph zasGjp1UIN})jzu8*RmH_h;Wf-s5JllPIx0KZd z`2@pKY;Kk2+SBJexwm9k4uX)gM`iR~yV;iWf0ke`^}Fh1%fM&fypu%m#dd+=OD z(Na)K{7&uSp~r7StpGY2{eYX(ge#g7^SW9s6`^8U!Fy?RBr;&aKz6W)c?p?ywmGe@@+<1sz{cEMPJs% zK)KXyFa7M|MvcN=3Td%|dHt`MbSgqZhbEuCDTAy)=tPHInIXXu+#aJ{?=U*v!mbqZ zL+RvsY|XWGo@~xPq$(Z>RfalXi<_Bg(8wA#PjsL^9h;}NdS6};HzP`theuMkL2aRn zJ)3J+!bHP?wjED(=op(axL9A=-DqTA!*E$s&TsHl%Sz<@dZ+gkc{|q=Vuypjb%KX_WK=?2?jLU6q`CDutMg%_QS*7qKptz| z{*P(0gwxY;#jK)Fnyp4!1Gw(T_wcnyYsLF82iJT7m~Kc86ZHx&`ZK5Br{%ebEa6ho zTL82zFJ8SwQz@m+oMfd~md0N8Rh)w#T{;%()prObQ|&wAf6m;;-yd9Je%+Bz^Dg?% z6K-e_N8UteeeX2a7fF)%WxK4#LEY1ZN!<|S4HdgDPNxcZ5APC7rP8!Nv6>_XO0hz` zEg<4WunTD*w2GYV)_}~Fu-gU7LpTfs0(F;ZHPD}COK)|a7mnK6OQ5sylOYGt^X_^R z2n4wAFLLoxb6CD1dPBrddRd*!kV7%2f~XFvCyq{+lC?>^JCUIoG8VLaC=2O{$;mqr z9)iqZAyFJy=#)NP1G3l@e08qP@jKJg!3@yR`e*sww+E%C{tjROb7!?BHpfrp+)6>O zir^IrXtVv98c=rISe^rzV~Ybj-wkMG|CFbAoC9qitp z?Mi*N(I+XLONjs)N|6+C2b<%*?C3vnc;wXz_tuNTy;K>A+THgDfA%#c##*P{KT6p? zNZo0?}pAS?)!|*V;l(o$=-0Ct0%LKM}YL&LbmX z*Z1A>LvZjlNJ>k})RmTd zf`q8I2Dr?Jozl<@iOdFhXh0JPekzR*3DX~hgDhnapAS1aWL@eyi%8!nnHn=VKOtAc zB+tIiht=)chTruDG~3D?Q`^@#Dho@lyk1S#^r^5)l7k`tG$y+z3PQB%S7C+4QPMYC`R$~LgnUhR2#Bn=V5Jz+!kung1r)9T5C?~yPPaX40?RuT zyz|JK{abMsjAWOi z98SjlBv3fT-EQzyhCX$pu8t~V$6+kIqqwPee1ykyk@KH6z8kjq*o~kLIZ|Z%p8P>x zx>(3e=AJQA#Lo}?S|l*lv}oZk2ZsZ78y!Q1lFfrGFNU1Us0i&8Ey3icG4~ONBr=Y5 z8PVSj?m}QxDpyl>8`IH+X?J*C!gwMwJ1lHN+f`o3J}!R}mr2)@NQo?fzXZ2mDsWcF z*&8Ze52NaRoC|#(T>I3AmsqFl=)on3(9)2Yh|(C}oPcvtSECw|`c!Px^R~7M{G%k- zwq9-R{PQAS-inem5V@Ohrz{`sWXd|yMaS_W`h}s)<+nOVlhL_`I?w>z->=i&#vM;j z3xD0-Y*#N2h6#UMC&|x)V!F06^p~VcNn3N5*c#RQ(D=?o>oImNhSxQFPqt1ukj|a_ zYEQ6&RXB_`UuKVWoO14l-j9oiceQPdz88scpc~$Ju>jW$0n+&INeW%`e{RzV%ZTB; z6Ya>oQyZD_w#N`SC{Ai61crHgd}_w%H+{R31#9n~AfjO_S!#0barOA=({khd{i+RShs z)%#k{46x~6b<37Zngx^2Bd5L1F^TN&|4;0MK=54NBqzPbS+z4LptyQGBhOD&;Vg+g zFxIZ(mI3w&-L^2)MXO1C?a=H*g#41}eon>)bh;*>U4_A4DydSpP z0-zIqDt>S9utB)mDPKAI$kYx5+5SU68Dk}UzBHWeVC7Pdd|AOw)tLTrL0VWoR8wPj zb-blwqKWV8m8^)fqxTQO?{J77R?Y?1;??Hqmt_dBDv=;uE(fvSsiZLaM%i4rRNT6a z7@l+x`B-`Hu;>)u=5mlGqV2C{yiNJz@Z(C2TvNKYn;o&bDXR$ocF)Enw{=H9!KNS!{dN>gp%}n$K4np<_0s#~$}s<5b1Uu}Y_vX)zc0FIn6sRTP$Zayp-FQDx{1X-xf4EoysSqbW7bWq zM-yZABhIXyIqF=HL$pmAy@BL;QQG4$BxksNVR?H!6HLpmPeVZmYRzH1#^(5_uni)A z-HOB4l-nFr+6xe_98DS5g2eht@+z>Ov&ZAJY>v^`r~CTqcmd{9N)gBv2-gs}TAO1b z+$eajYUmVfkM53F|Gzc3++Br+v+dx$p0oXS#I<*43$$y0ro6rY%d>SynRN*3YE!+; zu3+--94gSI@NQRjVM}=m%#!+l_K`NTe`z*5sBt!Fgv~H|7(!4sguOo294u7*dXd*Z> zh@WE9!WH%@FUdwQJUck~;W*q>`x#p;baEelS}l&h7tQ{<`CI3dhc!0S>Dm8&tX1=A zUv<5;Jo>E9eY1BUcBq1`Lb?M62Vuq=npqiOg1x3^S z{dTo?O1&7DPz55>BT@rhn@q9$aS7c@N=G?|h6-;j7*R^(q$|mb)(1W%Umn~B^W4Y% z+=tZ;|DEOIP8jN&LC=T%f2aBP!qTVT|2q9%?y4t{IyL%*-)d#%(kX|W}nE{eBf?Tr4+AM)@_!o!0rHj z&c24!=}~%%HnPjIk`_i{LZxe6283eS!6D^(-(lN`TC_dzpY;?z{S2fuHuekq|J{}I zoVOb6dPzT>7m?3+9EWf+O)(8?6F!{nb~pudV@||lHvvp}mYt%UAamW!ntD+b-{Eu(YZOgy6PS@(}!S7D_^EH3HeTT%B1)uCZ#;Y{f@N@9x)NSi0g@^M1?tKk|6PSIa2wDz~7fvfVsBwusGx_n4pTmeiG+PVBC{WgkaDw5^Tj z4>km2H`4M`xlA5QhiJnQLfcMHPWD&z$LpF>rK*pIK{0+ibO)@4i??{n6}&DCjQ`H= z{_V}rV8xkH1??W)lT;$RBt*BU64+@|WE0gq-% zg{on!ZpNK-<9NvRW|F9CwCPOkMqDra4RzZ2(WfoisR`c9STV^fXRZ9Dq+&&yLxlRf~a*OGz1gdHo6px-m8JfuE(DIhDR^PsuWxvk2tbLC;G40A{x<91hN~{7SJS!M% zvB4mxu7)Y{HarP*ky1q1ltzWLWli$z<6~4m!7rFwD*jyMukhJt z@jcx{H%}idv!G2Cm47KX_U|N;JLC@5TJiHcEbupzJEda0CUU-8_HkY^Bkf`Ma4$Nvo}o;*9W~3D&@Hivt_f z+=oeq*I2In%jysGvoxv-gsc4QkbSczY~IfmgC>WsbyFdOa%zEB6VFLgKJk$9%OTCD zN?e1gyK#Ut=ZaQW;dH%0AS?YYpu{w8DXGX7q|xKow5`wnxpFXnaNc5Ba7d|fR6 zXIjBQ?Ut;RIU`#+LBx_{&T~Z2vTVGkM#@r+lv;9C;-t=}%v;2j=aZ!b_FwSZ3aE{M zW{KXVuHOxKK#d}fK;BwHo^$#Csx$u8*)ToBF67DEPgvbIZ(VOZ*q~YknPhC?>w6%H z9d-=_3!Srpt~Jo3>eFsZgU&+_Ig;V>-${dC%QU!eINrc_FAz=k|)qlVMPlQc)+iAtHh;oEzT?JCsso zqBq^CIf&?ZxFoBwqJ%F_gU$LBq*q@|-9po|j4))>cY*JH1|zFR|7o{!uJAWs%G6Ld zF!)}7!`QbeiTuLFkmzJ98R&LpL&H@9usahcZaEsq@OU5m!_IsIe}=TyKmIwpLkWA3 zX~d2idDyv^W0~)uKUn+Iu}1RYu}m$tQRwYT4b`wmOD8VUR4~~3R-75_=5KY`~l7kX_V2nc+GRso_NQph?v!uhZ%5ku*045W5ML zo+1G%8hUs}U5S?SIOHUxM*9X1v4iVeH`R*aD2DDDJvw*M0obN_+3g;|Y8R|3-#QK) z(Ad{rtMo>qP%_+7ahYLrcP*SbbI7Iz!)#=up8O$GQ^LtK=p#`SN|~IzP{iT2e^Aq* z+14|c#c*qH4v&arPk3Ib$5*QXs-RCv!)C@QrpA??I+gAeY!eIuHT`h^x1G=Xhx5Kd zCh!d6H!Q|WGALX5q~|IlK~pj9X?qTTu?^h_#N|8c-3@(wBc)^g=g-yayn`d*GHF2L zQjMF>BXO{WWmE{c1SpLNPMBFLE(Wni_^Tx6`N;*)@ftPE--W-SZbKPZ@IOIq{R(}g z=l6Ez+(-$tbDCf}x*<0V>oW3{NtS}Jtbm);_dGbfz9Pm!v*ygHA&=lUa3>gb^|)yx zVusC7k{S;{1!HXVyK5nk*J$wRaiO_C2^>&24yBgei$^}_;kxww2oucX*QsMbu8~i1 zza@uQ4S>wdO4$sW&;7g-D>sAbDZzp#45;U6^90FYl$N?>9h@MLPTant)O)lVOK z)~zI64sys3)$@N$;WYLF#E6k{oeE;iqE0#AmTKz;Nm+!#1!0UwP3`|)X%$VRTWG_N znEB4cm?@aQDSJdwSj{!eDSFpG;<-1eWE+p z>_c?n<84r8{X=M*AeUA@(HNOgRM!1Kl`VvkveJf0eNGW&d*sUx416q^{Asi_?$=!I zlcEHg8=*Hb;Sn@i!+0oK#8%BRa}8S#=z=u&(>72ATum==%LFVM4iMyl2!%|*%N?(q z4${8^+PFf{2}(^H1+2?z)tZTff_#;5S}jGYKM(>hm7C4CL2S8gKU5kYpkfa z+v>Bv!GMFUG*8nM5TyXuz4$q|_xNB-;AlAKM3*#0bJ-(EUg|T%;`Yn&?aEdc0{X9B zR5GGY#vXZ`Q=Cgn9_RHoTw$4YRuV?pWRi@L+clp)c0{$-@X~^&RhPWL%cW3S2K>9A zpw7gj{7)UBN9^h96Lkb5vmz2Ew~2ex43uCoM5k%zS9FZR#aO(}H3V+4zd38&HzwM0gwe5Y$-SI$niwp zS66Yj1GT*XujVN3y;M1BrfT%?;bcRj19K3?7|xFW3o%Lbd$cYTb@S491ErgqSF$<> z{h-6|z%}x0Du(LmvZvt5=>j=~_{lD7!grrSpftTr81AkUVrE{=6xvUr9;S!D3d3L> zXUn9qjv?<>aa~NNlnWa`uZUh}s|ejU z-S4#oS>%ta5EUz!dHJy;PYDUm3Q(unQA3|j-p}p3jZM4YwT>mip}9MoF_=yej#p4= z88$tmhQU(G_82m8wZ$c@-qwm-`nb#?iXi`T$t=>i$VdyIt`F}PT|zZ~IG6BX92p-5tB{4zWXF`^Pt)JD{6@D8GCXsdSOK;# zU#7nk;KpRMYu-bTrChewlQtT*tf^sNFRQ1dm5E|%3G)39-j>f!pxHo0-qKhBx|z@z zX~8L5`fWGT0E{BeVg8E@*3Le<`Lv!esH=ekR`4L@_&S%GvEep;o_=ULH|LLEBfHYd z&n_on6Mdv4>7m86w9$cMA~{DyEJddiTIg?yB2xbH*p9D|P0c?2x%uW~v^MUWjeyK* z%|UCEbJg#TwV&lSUZs?K&}18c{k9FPnHp;}su8=^Miu8g9_p_gUw|KEP zQr&EODIU3Khc<9pYkj*M0EDb;rTP54!dT;(W{c9<2g&6f6y7Hll?HjM^wM#J5A@-f zHuuOS$?Y4FKSv_L7;3IGEV_fWt0eN$_xW-TCvElioV`6#@(U^XMGwUJ4XN9njwHwE zp*H0GD$M~92ZaGQa&jI9;639Q;b19HsbFGv5*VAPUYBHRc~8l&@@bw}D9$iDIc6&R z8#lw)wc*Ndi}pQ8kxj=1Y4p1A?ea=fU0GDX<)G>`HQI@9Mi~;zKIg{DH3Bgk=r9@Vi*}4&s>qeH!_C5gsxao|2nMCZXm@$J{prp^&k!U(b1HH z0v^#2?XvWsO*fO(I%+2~EKnOgWq z_C?`t@AzAbmmiF0C-u&m9@=MRPesV0D~+d(s8fOP=h>0yA}R~*7W(XJuRmYZ#SD!K z&7i0SUw)7U0I&@E;t#a;{+HuYMQ9Tp#!7%aIIp59T1AUmBIJcVmMTI3 z8gV$6$H$cFYIFvwo8c z(*HJ*NC6q-wfG@=UT^Nh6WdE?6*Z+ppE=1U_iel`DqCok`Cq*am;5=rC`1aEc%XbS z7XFozl2jK-%UpCpnJ>NMV|_#CRiBY0siN+SR?_V$(yu#L556#*;{9H^u6{^a*-bmR zOAgH5-oGJAqRL@<&giJ3H$xpbPR6 zBv;(5oGlxVUJqFpO==qd4NQF=T_lO*_ZMeJ;}{Es=k%qO9Wl}si?o!2w|_!L#DRXM z&}6mFJ-gXD?|{f7oII}>JCTnDmywTPng}(lXHN=IgL}4|whU@~&2_wmLJakN7ho_n z986B)G5aryfVGiw|KEo?m3K*7U0rHS+fyaay62W@z|fs&xfSEO7;Z$> z*>=Q*o0*qOpDL$q;9^b3+58(QAS>0w6jZE%UXR}f*H*tV7v-Fu#nj6FRIoydUjKm z8nfZ7?C8G9-lBsPbU}oJLr_}7(0EVdtVv+d)i%U-tv7I(P~?{(rxqea$wHSVGc0AD ztQDV?*{S^iKBQd}WE2$?7Ax;o$a@;zlo<}inUP)>OX65R_OF?t;<^ILndAd>6iRGng3Tp1o@IABqz?5BBAjnr{XOu$Rtj;zF+izF)uIn{!}@ zW3dt0?*1HmbndC73ro2G-CN*>7W~0^Gr-MOq(+N!M@`-nsI$Sw80DC(%;XSck|ybJKvkXGp}>pP65^)JF(8S}?) z_Dk(N*Wxd$eW&o+Qs1voxr7^S?Vzq3>N5hwXdF`Sh+Zr$Kt()e63`Hv7&mQSRq@7d z+fHgJK|V={7(QtZuF+&f=U}vUlb@B0;F~BV_x&6rR3X8p?PY@%!pTyjjGsxP^Kc1sp6%?RVLS)dsQXQafIYLRSDhHdz4sH z(#t3u%L&`yp2>8J{jHJvFNbFjUwU&o3GEq`-EpBAzWUlwk3VTVs|m>EbR{lkO-qET zEKSYJj%JLC(?5MwW_jJt+tRTdRV4}(T&B;yn#ce|I>?5?P0YMV9WIm0}4)E^w~dQRV$ z^%Hbe8S*xFJ4mt{59mHWrjM8R8As`;lZN?*&(dL=CkZtBI!f1ER_N7y!mdz!x85VYkZWi!Nr}=P>#_<;Y~4`O-OuMz_rvx1R};r>9ar~v zw$(b;w>QVV2KJ$}v(GmmG Date: Sun, 3 Mar 2024 14:53:44 -0300 Subject: [PATCH 18/23] NT Recruiter: Tweaks and replacing gender with DOB (#24132) * NT Recruiter: Tweaks and replacing gender with DOB * extra comma * adjusting numbers and clown tip * tgui conflict * rebuild --- .../computer/arcade_games/recruiter.dm | 35 ++++++++++--------- tgui/packages/tgui/interfaces/NTRecruiter.js | 16 +++++---- tgui/public/tgui.bundle.js | 2 +- 3 files changed, 30 insertions(+), 23 deletions(-) diff --git a/code/game/machinery/computer/arcade_games/recruiter.dm b/code/game/machinery/computer/arcade_games/recruiter.dm index 5e64517a629b..717d798d02fc 100644 --- a/code/game/machinery/computer/arcade_games/recruiter.dm +++ b/code/game/machinery/computer/arcade_games/recruiter.dm @@ -20,7 +20,7 @@ light_color = LIGHT_COLOR_WHITE circuit = /obj/item/circuitboard/arcade/recruiter var/candidate_name - var/candidate_gender + var/candidate_birth var/age var/datum/species/cand_species var/planet_of_origin @@ -53,9 +53,9 @@ "Awarded the medal of service for outstanding work in botany", "Hacked into the Head of Personnel's office to save Ian", "Has proven knowledge of SOP, but no working experience", "Has worked at Mr Changs", "Spent 2 years as a freelance journalist", "Known as a hero for keeping stations clean during attacks", - "Worked as a bureaucrat for SolGov", "Worked in Donk Corporation's R&D department", + "Worked as a bureaucrat for SolGov", "Worked in Donk Corporation's toy R&D department", "Did work for USSP as an translator", "Took care of Toxins, Xenobiology, Robotics and R&D as a single worker in the Research department", - "Served for 4 years as a soldier of the Prospero Order", "Traveled through various systems as a businessman", + "Did maintenance on multiple cybernetic limbs over Biotech Solutions", "Traveled through various systems as a businessman", "Worked as a waiter for one year", "Has previous experience as a cameraman", "Spent years of their life being a janitor at Clown College", "Was given numerous good reviews for delivering cargo requests on time", "Helped old people cross the holostreet", "Has proven ability to read", "Served 4 years in NT navy", @@ -68,7 +68,9 @@ "Has received several commendations due to visually appealing kitchen remodelings", "Is known to report any petty Space Law or SOP breakage to the relevant authorities", "As Chef, adapted their menus in order to appeal all stationed species", "Was part of the \"Pump Purgers\", famous for the streak of 102 shifts with no Supermatter Explosions", - "Virologist; took it upon themselves to distribute a vaccine to the crew", "Conducted experiments that generated high profits but many casualties") + "Virologist; took it upon themselves to distribute a vaccine to the crew", "Conducted experiments that generated high profits but many casualties", + "Did multiple cargo transport jobs for the Port Royal Inc", "Been a test pilot for the new Einstein Engines Inc prototype engines", + "Manufactured multiple energy guns at Shellguard Munitions", "Spent years cleaning Aussec Armory guns") var/list/incorrect_records = list("Caught littering on the NSS Cyberiad", "Scientist involved in the ###### incident", "Rescued four assistants from a plasma fire, but left behind the station blueprints", @@ -105,24 +107,25 @@ else cand_species = pick(hirable_species) - candidate_gender = pick(MALE, FEMALE, NEUTER) // Gender - - if(candidate_gender == NEUTER && initial(cand_species.has_gender)) // If the species has a gender it cannot be neuter! - good_candidate = FALSE - if(prob(PROB_CANDIDATE_ERRORS)) // Age age = pick(initial(cand_species.max_age) + rand(20, 100), (initial(cand_species.min_age) - rand(1, 7))) // Its either too young or too old for the job good_candidate = FALSE else age = rand(initial(cand_species.min_age), initial(cand_species.max_age)) + if(prob(PROB_CANDIDATE_ERRORS)) // Date of birth + candidate_birth = "[rand(1, 12)]/[GLOB.game_year - age + pick(-400, -300, -200, -100, 50, 100, 150)]" // The age doesn't match with the date of birth + good_candidate = FALSE + else + candidate_birth = "[rand(1, 12)]/[GLOB.game_year - age]" + if(prob(PROB_CANDIDATE_ERRORS)) // Name // Lets pick all species with a naming scheme and remove the selected one so we can have a mismatch var/datum/species/wrong_species = pick((hirable_species + /datum/species/monkey + /datum/species/golem - cand_species)) - candidate_name = random_name(candidate_gender, initial(wrong_species.name)) + candidate_name = random_name(species = initial(wrong_species.name)) good_candidate = FALSE else - candidate_name = random_name(candidate_gender, initial(cand_species.name)) + candidate_name = random_name(species = initial(cand_species.name)) if(prob(PROB_CANDIDATE_ERRORS)) // Planet planet_of_origin = pick(incorrect_planets) @@ -150,31 +153,31 @@ switch(unique_candidate) if(UNIQUE_STEVE) // Steve is special candidate_name = "Steve" - candidate_gender = MALE age = "30" + candidate_birth = "12/[GLOB.game_year - 30]" cand_species = /datum/species/human planet_of_origin = "Unknown" job_requested = "Central Command Intern" employment_records = "Experience in pressing buttons" if(UNIQUE_MIME) // Only hire mimes that don't fill their employment application candidate_name = "..." - candidate_gender = "..." + candidate_birth = "..." age = "..." planet_of_origin = "..." job_requested = "Mime" employment_records = "..." if(UNIQUE_CEO_CHILD) // Hes the son of the CEO, what do you expect? candidate_name = "Johnny Nanotrasen, Jr." - candidate_gender = MALE age = "12" + candidate_birth = "1/[GLOB.game_year - 12]" cand_species = /datum/species/human planet_of_origin = "Unknown" job_requested = "Captain" employment_records = "Whatever" if(UNIQUE_VIGILANTE) // For some reason vigilantes do get inside NT stations, let them slip in candidate_name = "Owlman" - candidate_gender = MALE age = "38" + candidate_birth = "6/[GLOB.game_year - 38]" cand_species = /datum/species/human planet_of_origin = "Unknown" job_requested = "Assistant" @@ -204,7 +207,7 @@ "gamestatus" = game_status, "cand_name" = candidate_name, - "cand_gender" = capitalize(candidate_gender), + "cand_birth" = candidate_birth, "cand_age" = age, "cand_species" = initial(cand_species.name), "cand_planet" = planet_of_origin, diff --git a/tgui/packages/tgui/interfaces/NTRecruiter.js b/tgui/packages/tgui/interfaces/NTRecruiter.js index 9ff6a44446b6..eeab78b429cc 100644 --- a/tgui/packages/tgui/interfaces/NTRecruiter.js +++ b/tgui/packages/tgui/interfaces/NTRecruiter.js @@ -7,7 +7,7 @@ export const NTRecruiter = (props, context) => { const { gamestatus, cand_name, - cand_gender, + cand_birth, cand_age, cand_species, cand_planet, @@ -125,6 +125,10 @@ export const NTRecruiter = (props, context) => { Keep your eyes open for incompatible naming schemes, no company wants a Vox named Joe! + + For some unknown reason clowns are never denied by the + company, no matter what. + @@ -153,14 +157,14 @@ export const NTRecruiter = (props, context) => { {cand_name} - - {cand_gender} + + {cand_species} {cand_age} - - {cand_species} + + {cand_birth} {cand_planet} @@ -237,7 +241,7 @@ export const NTRecruiter = (props, context) => {