=b.length?{done:!0}:{done:!1,value:b[_++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var g=(0,n.h)("hotkeys"),x={},f=[e.s6,e.Ri,e.iy,e.aW,e.Ss,e.re,e.gf,e.R,e.iU,e.zh,e.sP],h={},v=[],u=function(b){if(b===16)return"Shift";if(b===17)return"Ctrl";if(b===18)return"Alt";if(b===33)return"Northeast";if(b===34)return"Southeast";if(b===35)return"Southwest";if(b===36)return"Northwest";if(b===37)return"West";if(b===38)return"North";if(b===39)return"East";if(b===40)return"South";if(b===45)return"Insert";if(b===46)return"Delete";if(b>=48&&b<=57||b>=65&&b<=90)return String.fromCharCode(b);if(b>=96&&b<=105)return"Numpad"+(b-96);if(b>=112&&b<=123)return"F"+(b-111);if(b===188)return",";if(b===189)return"-";if(b===190)return"."},m=function(b){var O=String(b);if(O==="Ctrl+F5"||O==="Ctrl+R"){location.reload();return}if(O!=="Ctrl+F"&&!(b.event.defaultPrevented||b.isModifierKey()||f.includes(b.code))){var I=u(b.code);if(I){var _=x[I];if(_)return g.debug("macro",_),Byond.command(_);if(b.isDown()&&!h[I]){h[I]=!0;var M='TguiKeyDown "'+I+'"';return g.debug(M),Byond.command(M)}if(b.isUp()&&h[I]){h[I]=!1;var D='TguiKeyUp "'+I+'"';return g.debug(D),Byond.command(D)}}}},c=function(b){f.push(b)},d=function(b){var O=f.indexOf(b);O>=0&&f.splice(O,1)},p=function(){for(var b=a(Object.keys(h)),O;!(O=b()).done;){var I=O.value;h[I]&&(h[I]=!1,g.log('releasing key "'+I+'"'),Byond.command('TguiKeyUp "'+I+'"'))}},C=function(){Byond.winget("default.*").then(function(b){for(var O={},I=a(Object.keys(b)),_;!(_=I()).done;){var M=_.value,D=M.split("."),A=D[1],R=D[2];A&&R&&(O[A]||(O[A]={}),O[A][R]=b[M])}for(var K=/\\"/g,N=function(Q){return Q.substring(1,Q.length-1).replace(K,'"')},k=a(Object.keys(O)),V;!(V=k()).done;){var F=V.value,J=O[F],H=N(J.name);x[H]=N(J.command)}g.debug("loaded macros",x)}),s.Nh.on("window-blur",function(){p()}),s.Nh.on("key",function(b){for(var O=a(v),I;!(I=O()).done;){var _=I.value;_(b)}m(b)})},j=function(b){v.push(b);var O=!1;return function(){O||(O=!0,v.splice(v.indexOf(b),1))}}},15454:function(P,y,t){"use strict";t.r(y),t.d(y,{AICard:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,h=f.has_ai,v=f.integrity,u=f.backup_capacitor,m=f.flushing,c=f.has_laws,d=f.laws,p=f.wireless,C=f.radio;if(h===0)return(0,e.jsx)(r.p8,{width:600,height:470,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(n.wn,{title:"Stored AI",children:(0,e.jsx)(n.az,{children:(0,e.jsx)("h3",{children:"No AI detected."})})})})});var j=null;v>=75?j="green":v>=25?j="yellow":j="red";var b=null;return u>=75&&(b="green"),u>=25?b="yellow":b="red",(0,e.jsx)(r.p8,{width:600,height:470,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(n.wn,{title:"Stored AI",children:[(0,e.jsx)(n.az,{bold:!0,display:"inline-block",children:(0,e.jsx)("h3",{children:name})}),(0,e.jsx)(n.az,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Integrity",children:(0,e.jsx)(n.z2,{color:j,value:v/100})}),(0,e.jsx)(n.Ki.Item,{label:"Power",children:(0,e.jsx)(n.z2,{color:b,value:u/100})})]})}),(0,e.jsx)(n.az,{color:"red",children:(0,e.jsx)("h2",{children:m===1?"Wipe of AI in progress...":""})})]}),(0,e.jsx)(n.wn,{title:"Laws",children:!!c&&(0,e.jsx)(n.az,{children:d.map(function(O,I){return(0,e.jsx)(n.az,{display:"inline-block",children:O},I)})})||(0,e.jsx)(n.az,{color:"red",children:(0,e.jsx)("h3",{children:"No laws detected."})})}),(0,e.jsx)(n.wn,{title:"Actions",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Wireless Activity",children:(0,e.jsx)(n.$n,{icon:p?"check":"times",content:p?"Enabled":"Disabled",color:p?"green":"red",onClick:function(){return x("wireless")}})}),(0,e.jsx)(n.Ki.Item,{label:"Subspace Transceiver",children:(0,e.jsx)(n.$n,{icon:C?"check":"times",content:C?"Enabled":"Disabled",color:C?"green":"red",onClick:function(){return x("radio")}})}),(0,e.jsx)(n.Ki.Item,{label:"AI Power",children:(0,e.jsx)(n.$n.Confirm,{icon:"radiation",confirmIcon:"radiation",disabled:m||v===0,confirmColor:"red",content:"Shutdown",onClick:function(){return x("wipe")}})})]})})]})})}},85866:function(P,y,t){"use strict";t.r(y),t.d(y,{APC:function(){return g}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=t(13221),a=t(15665),g=function(m){var c=(0,s.Oc)(),d=c.act,p=c.data,C=(0,e.jsx)(h,{});return p.gridCheck?C=(0,e.jsx)(v,{}):p.failTime&&(C=(0,e.jsx)(u,{})),(0,e.jsx)(r.p8,{width:450,height:475,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:C})})},x={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"}},f={1:{icon:"terminal",content:"Override Programming",action:"hack"}},h=function(m){var c=(0,s.Oc)(),d=c.act,p=c.data,C=p.locked&&!p.siliconUser,j=p.normallyLocked,b=x[p.externalPower]||x[0],O=x[p.chargingStatus]||x[0],I=p.powerChannels||[],_=p.powerCellStatus/100;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.InterfaceLockNoticeBox,{deny:p.emagged,denialMessage:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.az,{color:"bad",fontSize:"1.5rem",children:"Fault in ID authenticator."}),(0,e.jsx)(n.az,{color:"bad",children:"Please contact maintenance for service."})]})}),(0,e.jsx)(n.wn,{title:"Power Status",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Main Breaker",color:b.color,buttons:(0,e.jsx)(n.$n,{icon:p.isOperating?"power-off":"times",content:p.isOperating?"On":"Off",selected:p.isOperating&&!C,color:p.isOperating?"":"bad",disabled:C,onClick:function(){return d("breaker")}}),children:["[ ",b.externalPowerText," ]"]}),(0,e.jsx)(n.Ki.Item,{label:"Power Cell",children:(0,e.jsx)(n.z2,{color:"good",value:_})}),(0,e.jsxs)(n.Ki.Item,{label:"Charge Mode",color:O.color,buttons:(0,e.jsx)(n.$n,{icon:p.chargeMode?"sync":"times",content:p.chargeMode?"Auto":"Off",selected:p.chargeMode,disabled:C,onClick:function(){return d("charge")}}),children:["[ ",O.chargingText," ]"]})]})}),(0,e.jsx)(n.wn,{title:"Power Channels",children:(0,e.jsxs)(n.Ki,{children:[I.map(function(M){var D=M.topicParams;return(0,e.jsxs)(n.Ki.Item,{label:M.title,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.az,{inline:!0,mx:2,color:M.status>=2?"good":"bad",children:M.status>=2?"On":"Off"}),(0,e.jsx)(n.$n,{icon:"sync",content:"Auto",selected:!C&&(M.status===1||M.status===3),disabled:C,onClick:function(){return d("channel",D.auto)}}),(0,e.jsx)(n.$n,{icon:"power-off",content:"On",selected:!C&&M.status===2,disabled:C,onClick:function(){return d("channel",D.on)}}),(0,e.jsx)(n.$n,{icon:"times",content:"Off",selected:!C&&M.status===0,disabled:C,onClick:function(){return d("channel",D.off)}})]}),children:[M.powerLoad," W"]},M.title)}),(0,e.jsx)(n.Ki.Item,{label:"Total Load",children:p.totalCharging?(0,e.jsxs)("b",{children:[p.totalLoad," W (+ ",p.totalCharging," W charging)"]}):(0,e.jsxs)("b",{children:[p.totalLoad," W"]})})]})}),(0,e.jsx)(n.wn,{title:"Misc",buttons:!!p.siliconUser&&(0,e.jsx)(n.$n,{icon:"lightbulb-o",content:"Overload",onClick:function(){return d("overload")}}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Cover Lock",buttons:(0,e.jsx)(n.$n,{icon:p.coverLocked?"lock":"unlock",content:p.coverLocked?"Engaged":"Disengaged",selected:p.coverLocked,disabled:C,onClick:function(){return d("cover")}})}),(0,e.jsx)(n.Ki.Item,{label:"Night Shift Lighting",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"lightbulb-o",content:"Disabled",selected:p.nightshiftSetting===2,onClick:function(){return d("nightshift",{nightshift:2})}}),(0,e.jsx)(n.$n,{icon:"lightbulb-o",content:"Automatic",selected:p.nightshiftSetting===1,onClick:function(){return d("nightshift",{nightshift:1})}}),(0,e.jsx)(n.$n,{icon:"lightbulb-o",content:"Enabled",selected:p.nightshiftSetting===3,onClick:function(){return d("nightshift",{nightshift:3})}})]})}),(0,e.jsx)(n.Ki.Item,{label:"Emergency Lighting",buttons:(0,e.jsx)(n.$n,{icon:"lightbulb-o",content:p.emergencyLights?"Enabled":"Disabled",selected:p.emergencyLights,onClick:function(){return d("emergency_lighting")}})})]})})]})},v=function(m){return(0,e.jsxs)(i.FullscreenNotice,{title:"System Failure",children:[(0,e.jsx)(n.az,{fontSize:"1.5rem",bold:!0,children:(0,e.jsx)(n.In,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"})}),(0,e.jsx)(n.az,{fontSize:"1.5rem",bold:!0,children:"Power surge detected, grid check in effect..."})]})},u=function(m){var c=(0,s.Oc)(),d=c.data,p=c.act,C=(0,e.jsx)(n.$n,{icon:"repeat",content:"Restart Now",color:"good",onClick:function(){return p("reboot")}});return d.locked&&!d.siliconUser&&(C=(0,e.jsx)(n.az,{color:"bad",children:"Swipe an ID card for manual reboot."})),(0,e.jsxs)(n.Rr,{textAlign:"center",children:[(0,e.jsx)(n.az,{color:"bad",children:(0,e.jsx)("h1",{children:"SYSTEM FAILURE"})}),(0,e.jsx)(n.az,{color:"average",children:(0,e.jsx)("h2",{children:"I/O regulators malfunction detected! Waiting for system reboot..."})}),(0,e.jsxs)(n.az,{color:"good",children:["Automatic reboot in ",d.failTime," seconds..."]}),(0,e.jsx)(n.az,{mt:4,children:C})]})}},95054:function(P,y,t){"use strict";t.r(y),t.d(y,{AccountsTerminal:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(h){var v=(0,s.Oc)(),u=v.act,m=v.data,c=m.id_inserted,d=m.id_card,p=m.access_level,C=m.machine_id;return(0,e.jsx)(r.p8,{width:400,height:640,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Machine",color:"average",children:C}),(0,e.jsx)(n.Ki.Item,{label:"ID",children:(0,e.jsx)(n.$n,{icon:c?"eject":"sign-in-alt",fluid:!0,content:d,onClick:function(){return u("insert_card")}})})]})}),p>0&&(0,e.jsx)(a,{})]})})},a=function(h){var v=(0,s.Oc)(),u=v.act,m=v.data,c=m.creating_new_account,d=m.detailed_account_view;return(0,e.jsxs)(n.wn,{title:"Menu",children:[(0,e.jsxs)(n.tU,{children:[(0,e.jsx)(n.tU.Tab,{selected:!c&&!d,icon:"home",onClick:function(){return u("view_accounts_list")},children:"Home"}),(0,e.jsx)(n.tU.Tab,{selected:c,icon:"cog",onClick:function(){return u("create_account")},children:"New Account"}),c?"":(0,e.jsx)(n.tU.Tab,{disabled:c,icon:"print",onClick:function(){return u("print")},children:"Print"})]}),c&&(0,e.jsx)(g,{})||d&&(0,e.jsx)(x,{})||(0,e.jsx)(f,{})]})},g=function(h){var v=(0,s.Oc)().act,u=(0,s.QY)("holder",""),m=u[0],c=u[1],d=(0,s.QY)("money",""),p=d[0],C=d[1];return(0,e.jsxs)(n.wn,{title:"Create Account",level:2,children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Account Holder",children:(0,e.jsx)(n.pd,{value:m,fluid:!0,onInput:function(j,b){return c(b)}})}),(0,e.jsx)(n.Ki.Item,{label:"Initial Deposit",children:(0,e.jsx)(n.pd,{value:p,fluid:!0,onInput:function(j,b){return C(b)}})})]}),(0,e.jsx)(n.$n,{disabled:!m||!p,mt:1,fluid:!0,icon:"plus",onClick:function(){return v("finalise_create_account",{holder_name:m,starting_funds:p})},content:"Create"})]})},x=function(h){var v=(0,s.Oc)(),u=v.act,m=v.data,c=m.access_level,d=m.station_account_number,p=m.account_number,C=m.owner_name,j=m.money,b=m.suspended,O=m.transactions;return(0,e.jsxs)(n.wn,{title:"Account Details",level:2,buttons:(0,e.jsx)(n.$n,{icon:"ban",selected:b,content:"Suspend",onClick:function(){return u("toggle_suspension")}}),children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Account Number",children:["#",p]}),(0,e.jsx)(n.Ki.Item,{label:"Holder",children:C}),(0,e.jsxs)(n.Ki.Item,{label:"Balance",children:[j,"\u20AE"]}),(0,e.jsx)(n.Ki.Item,{label:"Status",color:b?"bad":"good",children:b?"SUSPENDED":"Active"})]}),(0,e.jsx)(n.wn,{title:"CentCom Administrator",level:2,mt:1,children:(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Payroll",children:(0,e.jsx)(n.$n.Confirm,{color:"bad",fluid:!0,icon:"ban",confirmIcon:"ban",content:"Revoke",confirmContent:"This cannot be undone.",disabled:p===d,onClick:function(){return u("revoke_payroll")}})})})}),c>=2&&(0,e.jsxs)(n.wn,{title:"Silent Funds Transfer",level:2,children:[(0,e.jsx)(n.$n,{icon:"plus",onClick:function(){return u("add_funds")},content:"Add Funds"}),(0,e.jsx)(n.$n,{icon:"plus",onClick:function(){return u("remove_funds")},content:"Remove Funds"})]}),(0,e.jsx)(n.wn,{title:"Transactions",level:2,mt:1,children:(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{children:"Timestamp"}),(0,e.jsx)(n.XI.Cell,{children:"Target"}),(0,e.jsx)(n.XI.Cell,{children:"Reason"}),(0,e.jsx)(n.XI.Cell,{children:"Value"}),(0,e.jsx)(n.XI.Cell,{children:"Terminal"})]}),O.map(function(I,_){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsxs)(n.XI.Cell,{children:[I.date," ",I.time]}),(0,e.jsx)(n.XI.Cell,{children:I.target_name}),(0,e.jsx)(n.XI.Cell,{children:I.purpose}),(0,e.jsxs)(n.XI.Cell,{children:[I.amount,"\u20AE"]}),(0,e.jsx)(n.XI.Cell,{children:I.source_terminal})]},_)})]})})]})},f=function(h){var v=(0,s.Oc)(),u=v.act,m=v.data,c=m.accounts;return(0,e.jsx)(n.wn,{title:"NanoTrasen Accounts",level:2,children:c.length&&(0,e.jsx)(n.Ki,{children:c.map(function(d){return(0,e.jsx)(n.Ki.Item,{label:d.owner_name+d.suspended,color:d.suspended?"bad":null,children:(0,e.jsx)(n.$n,{fluid:!0,content:"#"+d.account_number,onClick:function(){return u("view_account_detail",{account_index:d.account_index})}})},d.account_index)})})||(0,e.jsx)(n.az,{color:"bad",children:"There are no accounts available."})})}},12704:function(P,y,t){"use strict";t.r(y),t.d(y,{AdminShuttleController:function(){return a},ShuttleList:function(){return g}});var e=t(88095),s=t(11358),n=t(4413),r=t(92514),i=t(68040),a=function(){return(0,e.jsx)(i.p8,{width:600,height:600,children:(0,e.jsx)(i.p8.Content,{scrollable:!0,children:(0,e.jsx)(g,{})})})},g=function(f){var h=(0,n.Oc)(),v=h.act,u=h.data,m=u.shuttles,c=u.overmap_ships;return(0,e.jsxs)(r.wn,{noTopPadding:!0,children:[(0,e.jsx)(r.wn,{title:"Classic Shuttles",children:(0,e.jsx)(r.XI,{children:(0,s.Ul)(function(d){return d.name})(m).map(function(d){return(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:(0,e.jsx)(r.$n,{m:0,content:"JMP",onClick:function(){return v("adminobserve",{ref:d.ref})}})}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:(0,e.jsx)(r.$n,{m:0,content:"Fly",onClick:function(){return v("classicmove",{ref:d.ref})}})}),(0,e.jsx)(r.XI.Cell,{children:d.name}),(0,e.jsx)(r.XI.Cell,{children:d.current_location}),(0,e.jsx)(r.XI.Cell,{children:x(d.status)})]},d.ref)})})}),(0,e.jsx)(r.wn,{title:"Overmap Ships",children:(0,e.jsx)(r.XI,{children:(0,s.Ul)(function(d){var p;return((p=d.name)==null?void 0:p.toLowerCase())||d.name||d.ref})(c).map(function(d){return(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:(0,e.jsx)(r.$n,{content:"JMP",onClick:function(){return v("adminobserve",{ref:d.ref})}})}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:(0,e.jsx)(r.$n,{content:"Control",onClick:function(){return v("overmap_control",{ref:d.ref})}})}),(0,e.jsx)(r.XI.Cell,{children:d.name})]},d.ref)})})})]})},x=function(f){switch(f){case 0:return"Idle";case 1:return"Warmup";case 2:return"Transit";default:return"UNK"}}},61633:function(P,y,t){"use strict";t.r(y),t.d(y,{AdminTicketPanel:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i={open:"Open",resolved:"Resolved",closed:"Closed",unknown:"Unknown"},a=function(g){var x=(0,s.Oc)(),f=x.act,h=x.data,v=h.id,u=h.title,m=h.name,c=h.state,d=h.opened_at,p=h.closed_at,C=h.opened_at_date,j=h.closed_at_date,b=h.actions,O=h.log;return(0,e.jsx)(r.p8,{width:900,height:600,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(n.wn,{title:"Ticket #"+v,buttons:(0,e.jsxs)(n.az,{nowrap:!0,children:[(0,e.jsx)(n.$n,{icon:"pen",content:"Rename Ticket",onClick:function(){return f("retitle")}})," ",(0,e.jsx)(n.$n,{content:"Legacy UI",onClick:function(){return f("legacy")}})]}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Admin Help Ticket",children:["#",v,": ",(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:m}})]}),(0,e.jsx)(n.Ki.Item,{label:"State",children:i[c]}),i[c]===i.open?(0,e.jsxs)(n.Ki.Item,{label:"Opened At",children:[C," (",Math.round(d/600*10)/10," ","minutes ago.)"]}):(0,e.jsxs)(n.Ki.Item,{label:"Closed At",children:[j," (",Math.round(p/600*10)/10," ","minutes ago.)"," ",(0,e.jsx)(n.$n,{content:"Reopen",onClick:function(){return f("reopen")}})]}),(0,e.jsx)(n.Ki.Item,{label:"Actions",children:(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:b}})}),(0,e.jsx)(n.Ki.Item,{label:"Log",children:Object.keys(O).map(function(I,_){return(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:O[I]}},_)})})]})})})})}},43587:function(P,y,t){"use strict";t.r(y),t.d(y,{AgentCard:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,h=f.entries,v=f.electronic_warfare;return(0,e.jsx)(r.p8,{width:550,height:400,theme:"syndicate",children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(n.wn,{title:"Info",children:(0,e.jsx)(n.XI,{children:h.map(function(u){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{onClick:function(){return x(u.name.toLowerCase().replace(/ /g,""))},icon:"cog"})}),(0,e.jsx)(n.XI.Cell,{children:u.name}),(0,e.jsx)(n.XI.Cell,{children:u.value})]},u.name)})})}),(0,e.jsx)(n.wn,{title:"Electronic Warfare",children:(0,e.jsx)(n.$n.Checkbox,{checked:v,content:v?"Electronic warfare is enabled. This will prevent you from being tracked by the AI.":"Electronic warfare disabled.",onClick:function(){return x("electronic_warfare")}})})]})})}},56307:function(P,y,t){"use strict";t.r(y),t.d(y,{AiAirlock:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i={2:{color:"good",localStatusText:"Optimal"},1:{color:"average",localStatusText:"Caution"},0:{color:"bad",localStatusText:"Offline"}},a=function(g){var x=(0,s.Oc)(),f=x.act,h=x.data,v=i[h.power.main]||i[0],u=i[h.power.backup]||i[0],m=i[h.shock]||i[0];return(0,e.jsx)(r.p8,{width:500,height:390,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(n.wn,{title:"Power Status",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Main",color:v.color,buttons:(0,e.jsx)(n.$n,{icon:"lightbulb-o",disabled:!h.power.main,content:"Disrupt",onClick:function(){return f("disrupt-main")}}),children:[h.power.main?"Online":"Offline"," ",(!h.wires.main_1||!h.wires.main_2)&&"[Wires have been cut!]"||h.power.main_timeleft>0&&"["+h.power.main_timeleft+"s]"]}),(0,e.jsxs)(n.Ki.Item,{label:"Backup",color:u.color,buttons:(0,e.jsx)(n.$n,{icon:"lightbulb-o",disabled:!h.power.backup,content:"Disrupt",onClick:function(){return f("disrupt-backup")}}),children:[h.power.backup?"Online":"Offline"," ",(!h.wires.backup_1||!h.wires.backup_2)&&"[Wires have been cut!]"||h.power.backup_timeleft>0&&"["+h.power.backup_timeleft+"s]"]}),(0,e.jsxs)(n.Ki.Item,{label:"Electrify",color:m.color,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"wrench",disabled:!(h.wires.shock&&h.shock===0),content:"Restore",onClick:function(){return f("shock-restore")}}),(0,e.jsx)(n.$n,{icon:"bolt",disabled:!h.wires.shock,content:"Temporary",onClick:function(){return f("shock-temp")}}),(0,e.jsx)(n.$n,{icon:"bolt",disabled:!h.wires.shock,content:"Permanent",onClick:function(){return f("shock-perm")}})]}),children:[h.shock===2?"Safe":"Electrified"," ",!h.wires.shock&&"[Wires have been cut!]"||h.shock_timeleft>0&&"["+h.shock_timeleft+"s]"||h.shock_timeleft===-1&&"[Permanent]"]})]})}),(0,e.jsx)(n.wn,{title:"Access and Door Control",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"ID Scan",color:"bad",buttons:(0,e.jsx)(n.$n,{icon:h.id_scanner?"power-off":"times",content:h.id_scanner?"Enabled":"Disabled",selected:h.id_scanner,disabled:!h.wires.id_scanner,onClick:function(){return f("idscan-toggle")}}),children:!h.wires.id_scanner&&"[Wires have been cut!]"}),(0,e.jsx)(n.Ki.Divider,{}),(0,e.jsx)(n.Ki.Item,{label:"Door Bolts",color:"bad",buttons:(0,e.jsx)(n.$n,{icon:h.locked?"lock":"unlock",content:h.locked?"Lowered":"Raised",selected:h.locked,disabled:!h.wires.bolts,onClick:function(){return f("bolt-toggle")}}),children:!h.wires.bolts&&"[Wires have been cut!]"}),(0,e.jsx)(n.Ki.Item,{label:"Door Bolt Lights",color:"bad",buttons:(0,e.jsx)(n.$n,{icon:h.lights?"power-off":"times",content:h.lights?"Enabled":"Disabled",selected:h.lights,disabled:!h.wires.lights,onClick:function(){return f("light-toggle")}}),children:!h.wires.lights&&"[Wires have been cut!]"}),(0,e.jsx)(n.Ki.Item,{label:"Door Force Sensors",color:"bad",buttons:(0,e.jsx)(n.$n,{icon:h.safe?"power-off":"times",content:h.safe?"Enabled":"Disabled",selected:h.safe,disabled:!h.wires.safe,onClick:function(){return f("safe-toggle")}}),children:!h.wires.safe&&"[Wires have been cut!]"}),(0,e.jsx)(n.Ki.Item,{label:"Door Timing Safety",color:"bad",buttons:(0,e.jsx)(n.$n,{icon:h.speed?"power-off":"times",content:h.speed?"Enabled":"Disabled",selected:h.speed,disabled:!h.wires.timing,onClick:function(){return f("speed-toggle")}}),children:!h.wires.timing&&"[Wires have been cut!]"}),(0,e.jsx)(n.Ki.Divider,{}),(0,e.jsx)(n.Ki.Item,{label:"Door Control",color:"bad",buttons:(0,e.jsx)(n.$n,{icon:h.opened?"sign-out-alt":"sign-in-alt",content:h.opened?"Open":"Closed",selected:h.opened,disabled:h.locked||h.welded,onClick:function(){return f("open-close")}}),children:!!(h.locked||h.welded)&&(0,e.jsxs)("span",{children:["[Door is ",h.locked?"bolted":"",h.locked&&h.welded?" and ":"",h.welded?"welded":"","!]"]})})]})})]})})}},43108:function(P,y,t){"use strict";t.r(y),t.d(y,{AiRestorer:function(){return i},AiRestorerContent:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(){return(0,e.jsx)(r.p8,{width:370,height:360,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(a,{})})})},a=function(g){var x=(0,s.Oc)(),f=x.act,h=x.data,v=h.AI_present,u=h.error,m=h.name,c=h.laws,d=h.isDead,p=h.restoring,C=h.health,j=h.ejectable;return(0,e.jsxs)(e.Fragment,{children:[u&&(0,e.jsx)(n.IC,{textAlign:"center",children:u}),!!j&&(0,e.jsx)(n.$n,{fluid:!0,icon:"eject",content:v?m:"----------",disabled:!v,onClick:function(){return f("PRG_eject")}}),!!v&&(0,e.jsxs)(n.wn,{title:j?"System Status":m,buttons:(0,e.jsx)(n.az,{inline:!0,bold:!0,color:d?"bad":"good",children:d?"Nonfunctional":"Functional"}),children:[(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Integrity",children:(0,e.jsx)(n.z2,{value:C,minValue:0,maxValue:100,ranges:{good:[70,1/0],average:[50,70],bad:[-1/0,50]}})})}),!!p&&(0,e.jsx)(n.az,{bold:!0,textAlign:"center",fontSize:"20px",color:"good",mt:1,children:"RECONSTRUCTION IN PROGRESS"}),(0,e.jsx)(n.$n,{fluid:!0,icon:"plus",content:"Begin Reconstruction",disabled:p,mt:1,onClick:function(){return f("PRG_beginReconstruction")}}),(0,e.jsx)(n.wn,{title:"Laws",level:2,children:c.map(function(b){return(0,e.jsx)(n.az,{className:"candystripe",children:b},b)})})]})]})}},75160:function(P,y,t){"use strict";t.r(y),t.d(y,{AiSupermatter:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=t(13221),a=function(f){var h=(0,s.Oc)().data,v=h.integrity_percentage,u=h.ambient_temp,m=h.ambient_pressure,c=h.detonating,d=(0,e.jsx)(x,{});return c&&(d=(0,e.jsx)(g,{})),(0,e.jsx)(r.p8,{width:500,height:300,children:(0,e.jsx)(r.p8.Content,{children:d})})},g=function(f){return(0,e.jsx)(i.FullscreenNotice,{title:"DETONATION IMMINENT",children:(0,e.jsxs)(n.az,{fontSize:"1.5rem",bold:!0,color:"bad",children:[(0,e.jsx)(n.In,{color:"bad",name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"}),(0,e.jsx)(n.az,{color:"bad",children:"CRYSTAL DELAMINATING"}),(0,e.jsx)(n.az,{color:"bad",children:"Evacuate area immediately"})]})})},x=function(f){var h=(0,s.Oc)().data,v=h.integrity_percentage,u=h.ambient_temp,m=h.ambient_pressure;return(0,e.jsx)(n.wn,{title:"Status",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Crystal Integrity",children:(0,e.jsx)(n.z2,{value:v,maxValue:100,ranges:{good:[90,1/0],average:[25,90],bad:[-1/0,25]}})}),(0,e.jsx)(n.Ki.Item,{label:"Environment Temperature",children:(0,e.jsxs)(n.z2,{value:u,maxValue:1e4,ranges:{bad:[5e3,1/0],average:[4e3,5e3],good:[-1/0,4e3]},children:[u," K"]})}),(0,e.jsxs)(n.Ki.Item,{label:"Environment Pressure",children:[m," kPa"]})]})})}},42537:function(P,y,t){"use strict";t.r(y),t.d(y,{AirAlarm:function(){return h}});var e=t(88095),s=t(5229),n=t(44583),r=t(4413),i=t(92514),a=t(1568),g=t(68040),x=t(10652),f=t(15665),h=function(O){var I=function(V){K(V)},_=(0,r.Oc)(),M=_.act,D=_.data,A=(0,n.useState)(""),R=A[0],K=A[1],N=D.locked&&!D.siliconUser&&!D.remoteUser;return(0,e.jsx)(g.p8,{width:440,height:650,children:(0,e.jsxs)(g.p8.Content,{scrollable:!0,children:[(0,e.jsx)(f.InterfaceLockNoticeBox,{}),(0,e.jsx)(v,{}),(0,e.jsx)(u,{}),!N&&(0,e.jsx)(c,{screen:R,onScreen:I})]})})},v=function(O){var I=(0,r.Oc)().data,_=(I.environment_data||[]).filter(function(A){return A.value>=.01}),M={0:{color:"good",localStatusText:"Optimal"},1:{color:"average",localStatusText:"Caution"},2:{color:"bad",localStatusText:"Danger (Internals Required)"}},D=M[I.danger_level]||M[0];return(0,e.jsx)(i.wn,{title:"Air Status",children:(0,e.jsxs)(i.Ki,{children:[_.length>0&&(0,e.jsxs)(e.Fragment,{children:[_.map(function(A){var R=M[A.danger_level]||M[0];return(0,e.jsxs)(i.Ki.Item,{label:(0,a.wM)(A.name),color:R.color,children:[(0,s.Mg)(A.value,2),A.unit]},A.name)}),(0,e.jsx)(i.Ki.Item,{label:"Local status",color:D.color,children:D.localStatusText}),(0,e.jsx)(i.Ki.Item,{label:"Area status",color:I.atmos_alarm||I.fire_alarm?"bad":"good",children:I.atmos_alarm&&"Atmosphere Alarm"||I.fire_alarm&&"Fire Alarm"||"Nominal"})]})||(0,e.jsx)(i.Ki.Item,{label:"Warning",color:"bad",children:"Cannot obtain air sample for analysis."}),!!I.emagged&&(0,e.jsx)(i.Ki.Item,{label:"Warning",color:"bad",children:"Safety measures offline. Device may exhibit abnormal behavior."})]})})},u=function(O){var I=(0,r.Oc)(),_=I.act,M=I.data,D=M.target_temperature,A=M.rcon;return(0,e.jsx)(i.wn,{title:"Comfort Settings",children:(0,e.jsxs)(i.Ki,{children:[(0,e.jsxs)(i.Ki.Item,{label:"Remote Control",children:[(0,e.jsx)(i.$n,{selected:A===1,content:"Off",onClick:function(){return _("rcon",{rcon:1})}}),(0,e.jsx)(i.$n,{selected:A===2,content:"Auto",onClick:function(){return _("rcon",{rcon:2})}}),(0,e.jsx)(i.$n,{selected:A===3,content:"On",onClick:function(){return _("rcon",{rcon:3})}})]}),(0,e.jsx)(i.Ki.Item,{label:"Thermostat",children:(0,e.jsx)(i.$n,{content:D,onClick:function(){return _("temperature")}})})]})})},m={home:{title:"Air Controls",component:function(){return d}},vents:{title:"Vent Controls",component:function(){return p}},scrubbers:{title:"Scrubber Controls",component:function(){return C}},modes:{title:"Operating Mode",component:function(){return j}},thresholds:{title:"Alarm Thresholds",component:function(){return b}}},c=function(O){var I=m[O.screen]||m.home,_=I.component();return(0,e.jsx)(i.wn,{title:I.title,buttons:O.screen&&(0,e.jsx)(i.$n,{icon:"arrow-left",content:"Back",onClick:function(){return O.onScreen()}}),children:(0,e.jsx)(_,{onScreen:O.onScreen})})},d=function(O){var I=(0,r.Oc)(),_=I.act,M=I.data,D=M.mode,A=M.atmos_alarm;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(i.$n,{icon:A?"exclamation-triangle":"exclamation",color:A&&"caution",content:"Area Atmosphere Alarm",onClick:function(){return _(A?"reset":"alarm")}}),(0,e.jsx)(i.az,{mt:1}),(0,e.jsx)(i.$n,{icon:D===3?"exclamation-triangle":"exclamation",color:D===3&&"danger",content:"Panic Siphon",onClick:function(){return _("mode",{mode:D===3?1:3})}}),(0,e.jsx)(i.az,{mt:2}),(0,e.jsx)(i.$n,{icon:"sign-out-alt",content:"Vent Controls",onClick:function(){return O.onScreen("vents")}}),(0,e.jsx)(i.az,{mt:1}),(0,e.jsx)(i.$n,{icon:"filter",content:"Scrubber Controls",onClick:function(){return O.onScreen("scrubbers")}}),(0,e.jsx)(i.az,{mt:1}),(0,e.jsx)(i.$n,{icon:"cog",content:"Operating Mode",onClick:function(){return O.onScreen("modes")}}),(0,e.jsx)(i.az,{mt:1}),(0,e.jsx)(i.$n,{icon:"chart-bar",content:"Alarm Thresholds",onClick:function(){return O.onScreen("thresholds")}})]})},p=function(O){var I=(0,r.Oc)().data,_=I.vents;return!_||_.length===0?"Nothing to show":_.map(function(M){return(0,e.jsx)(x.Vent,{vent:M},M.id_tag)})},C=function(O){var I=(0,r.Oc)().data,_=I.scrubbers;return!_||_.length===0?"Nothing to show":_.map(function(M){return(0,e.jsx)(x.Scrubber,{scrubber:M},M.id_tag)})},j=function(O){var I=(0,r.Oc)(),_=I.act,M=I.data,D=M.modes;return!D||D.length===0?"Nothing to show":D.map(function(A){return(0,e.jsxs)(n.Fragment,{children:[(0,e.jsx)(i.$n,{icon:A.selected?"check-square-o":"square-o",selected:A.selected,color:A.selected&&A.danger&&"danger",content:A.name,onClick:function(){return _("mode",{mode:A.mode})}}),(0,e.jsx)(i.az,{mt:1})]},A.mode)})},b=function(O){var I=(0,r.Oc)(),_=I.act,M=I.data,D=M.thresholds;return(0,e.jsxs)("table",{className:"LabeledList",style:{width:"100%"},children:[(0,e.jsx)("thead",{children:(0,e.jsxs)("tr",{children:[(0,e.jsx)("td",{}),(0,e.jsx)("td",{className:"color-bad",children:"min2"}),(0,e.jsx)("td",{className:"color-average",children:"min1"}),(0,e.jsx)("td",{className:"color-average",children:"max1"}),(0,e.jsx)("td",{className:"color-bad",children:"max2"})]})}),(0,e.jsx)("tbody",{children:D.map(function(A){return(0,e.jsxs)("tr",{children:[(0,e.jsx)("td",{className:"LabeledList__label",children:(0,e.jsx)("span",{className:"color-"+(0,a.b_)(A.name),children:(0,a.wM)(A.name)})}),A.settings.map(function(R){return(0,e.jsx)("td",{children:(0,e.jsx)(i.$n,{content:(0,s.Mg)(R.selected,2),onClick:function(){return _("threshold",{env:R.env,var:R.val})}})},R.val)})]},A.name)})})]})}},63397:function(P,y,t){"use strict";t.r(y),t.d(y,{AlertModal:function(){return h}});var e=t(88095),s=t(44583),n=t(61652),r=t(4413),i=t(92514),a=t(68040),g=t(18513),x=-1,f=1,h=function(m){var c=(0,r.Oc)(),d=c.act,p=c.data,C=p.autofocus,j=p.buttons,b=j===void 0?[]:j,O=p.large_buttons,I=p.message,_=I===void 0?"":I,M=p.timeout,D=p.title,A=(0,s.useState)(0),R=A[0],K=A[1],N=115+(_.length>30?Math.ceil(_.length/4):0)+(_.length&&O?5:0),k=325+(b.length>2?55:0),V=function(F){R===0&&F===x?K(b.length-1):R===b.length-1&&F===f?K(0):K(R+F)};return(0,e.jsxs)(a.p8,{height:N,title:D,width:k,children:[!!M&&(0,e.jsx)(g.Loader,{value:M}),(0,e.jsx)(a.p8.Content,{onKeyDown:function(F){var J=window.event?F.which:F.keyCode;J===n.iy||J===n.Ri?d("choose",{choice:b[R]}):J===n.s6?d("cancel"):J===n.iU?(F.preventDefault(),V(x)):(J===n.aW||J===n.zh)&&(F.preventDefault(),V(f))},children:(0,e.jsx)(i.wn,{fill:!0,children:(0,e.jsxs)(i.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(i.BJ.Item,{grow:!0,m:1,children:(0,e.jsx)(i.az,{color:"label",overflow:"hidden",children:_})}),(0,e.jsxs)(i.BJ.Item,{children:[!!C&&(0,e.jsx)(i.y5,{}),(0,e.jsx)(v,{selected:R})]})]})})})]})},v=function(m){var c=(0,r.Oc)().data,d=c.buttons,p=d===void 0?[]:d,C=c.large_buttons,j=c.swapped_buttons,b=m.selected;return(0,e.jsx)(i.so,{align:"center",direction:j?"row":"row-reverse",fill:!0,justify:"space-around",wrap:!0,children:p==null?void 0:p.map(function(O,I){return C&&p.length<3?(0,e.jsx)(i.so.Item,{grow:!0,children:(0,e.jsx)(u,{button:O,id:I.toString(),selected:b===I})},I):(0,e.jsx)(i.so.Item,{children:(0,e.jsx)(u,{button:O,id:I.toString(),selected:b===I})},I)})})},u=function(m){var c=(0,r.Oc)(),d=c.act,p=c.data,C=p.large_buttons,j=m.button,b=m.selected,O=j.length>7?j.length:7;return(0,e.jsx)(i.$n,{fluid:!!C,height:!!C&&2,onClick:function(){return d("choose",{choice:j})},m:.5,pl:2,pr:2,pt:C?.33:0,selected:b,textAlign:"center",width:!C&&O,children:C?j.toUpperCase():j})}},140:function(P,y,t){"use strict";t.r(y),t.d(y,{AlgaeFarm:function(){return a}});var e=t(88095),s=t(33854),n=t(4413),r=t(92514),i=t(68040),a=function(g){var x=(0,n.Oc)(),f=x.act,h=x.data,v=h.usePower,u=h.materials,m=h.last_flow_rate,c=h.last_power_draw,d=h.inputDir,p=h.outputDir,C=h.input,j=h.output,b=h.errorText;return(0,e.jsx)(i.p8,{width:500,height:300,children:(0,e.jsxs)(i.p8.Content,{children:[b&&(0,e.jsx)(r.IC,{warning:!0,children:(0,e.jsx)(r.az,{display:"inline-block",verticalAlign:"middle",children:b})}),(0,e.jsxs)(r.wn,{title:"Status",buttons:(0,e.jsx)(r.$n,{icon:"power-off",content:"Processing",selected:v===2,onClick:function(){return f("toggle")}}),children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Flow Rate",children:[m," L/s"]}),(0,e.jsxs)(r.Ki.Item,{label:"Power Draw",children:[c," W"]}),(0,e.jsx)(r.Ki.Divider,{size:1}),u.map(function(O){return(0,e.jsxs)(r.Ki.Item,{label:(0,s.ZH)(O.display),children:[(0,e.jsxs)(r.z2,{width:"80%",value:O.qty,maxValue:O.max,children:[O.qty,"/",O.max]}),(0,e.jsx)(r.$n,{ml:1,content:"Eject",onClick:function(){return f("ejectMaterial",{mat:O.name})}})]},O.name)})]}),(0,e.jsx)(r.XI,{mt:1,children:(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.wn,{title:"Gas Input ("+d+")",children:C?(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Total Pressure",children:[C.pressure," kPa"]}),(0,e.jsxs)(r.Ki.Item,{label:C.name,children:[C.percent,"% (",C.moles," moles)"]})]}):(0,e.jsx)(r.az,{color:"bad",children:"No connection detected."})})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.wn,{title:"Gas Output ("+p+")",children:j?(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Total Pressure",children:[j.pressure," kPa"]}),(0,e.jsxs)(r.Ki.Item,{label:j.name,children:[j.percent,"% (",j.moles," moles)"]})]}):(0,e.jsx)(r.az,{color:"bad",children:"No connection detected."})})})]})})]})]})})}},14600:function(P,y,t){"use strict";t.r(y),t.d(y,{AppearanceChanger:function(){return x}});var e=t(88095),s=t(11358),n=t(33854),r=t(44583),i=t(4413),a=t(92514),g=t(68040),x=function(j){var b=(0,i.Oc)(),O=b.act,I=b.config,_=b.data,M=_.name,D=_.specimen,A=_.gender,R=_.gender_id,K=_.hair_style,N=_.facial_hair_style,k=_.ear_style,V=_.tail_style,F=_.wing_style,J=_.markings,H=_.change_race,Q=_.change_gender,Z=_.change_eye_color,X=_.change_skin_tone,z=_.change_skin_color,Y=_.change_hair_color,ee=_.change_facial_hair_color,oe=_.change_hair,ne=_.change_facial_hair,ue=_.mapRef,ce=I.title,me=Z||X||z||Y||ee,xe=-1;H?xe=0:Q?xe=1:me?xe=2:oe?xe=4:ne&&(xe=5);var ve=(0,r.useState)(xe),be=ve[0],we=ve[1];return(0,e.jsx)(g.p8,{width:700,height:650,title:(0,n.jT)(ce),children:(0,e.jsxs)(g.p8.Content,{children:[(0,e.jsx)(a.wn,{title:"Reflection",children:(0,e.jsxs)(a.so,{children:[(0,e.jsx)(a.so.Item,{grow:1,children:(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"Name",children:M}),(0,e.jsx)(a.Ki.Item,{label:"Species",color:H?null:"grey",children:D}),(0,e.jsx)(a.Ki.Item,{label:"Biological Sex",color:Q?null:"grey",children:A?(0,n.ZH)(A):"Not Set"}),(0,e.jsx)(a.Ki.Item,{label:"Gender Identity",color:me?null:"grey",children:R?(0,n.ZH)(R):"Not Set"}),(0,e.jsx)(a.Ki.Item,{label:"Hair Style",color:oe?null:"grey",children:K?(0,n.ZH)(K):"Not Set"}),(0,e.jsx)(a.Ki.Item,{label:"Facial Hair Style",color:ne?null:"grey",children:N?(0,n.ZH)(N):"Not Set"}),(0,e.jsx)(a.Ki.Item,{label:"Ear Style",color:oe?null:"grey",children:k?(0,n.ZH)(k):"Not Set"}),(0,e.jsx)(a.Ki.Item,{label:"Tail Style",color:oe?null:"grey",children:V?(0,n.ZH)(V):"Not Set"}),(0,e.jsx)(a.Ki.Item,{label:"Wing Style",color:oe?null:"grey",children:F?(0,n.ZH)(F):"Not Set"})]})}),(0,e.jsx)(a.so.Item,{children:(0,e.jsx)(a.D1,{style:{width:"256px",height:"256px"},params:{id:ue,type:"map"}})})]})}),(0,e.jsxs)(a.tU,{children:[H?(0,e.jsx)(a.tU.Tab,{selected:be===0,onClick:function(){return we(0)},children:"Race"}):null,Q?(0,e.jsx)(a.tU.Tab,{selected:be===1,onClick:function(){return we(1)},children:"Gender & Sex"}):null,me?(0,e.jsx)(a.tU.Tab,{selected:be===2,onClick:function(){return we(2)},children:"Colors"}):null,oe?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.tU.Tab,{selected:be===3,onClick:function(){return we(3)},children:"Hair"}),(0,e.jsx)(a.tU.Tab,{selected:be===5,onClick:function(){return we(5)},children:"Ear"}),(0,e.jsx)(a.tU.Tab,{selected:be===6,onClick:function(){return we(6)},children:"Tail"}),(0,e.jsx)(a.tU.Tab,{selected:be===7,onClick:function(){return we(7)},children:"Wing"}),(0,e.jsx)(a.tU.Tab,{selected:be===8,onClick:function(){return we(8)},children:"Markings"})]}):null,ne?(0,e.jsx)(a.tU.Tab,{selected:be===4,onClick:function(){return we(4)},children:"Facial Hair"}):null]}),(0,e.jsxs)(a.az,{height:"43%",children:[H&&be===0?(0,e.jsx)(f,{}):null,Q&&be===1?(0,e.jsx)(h,{}):null,me&&be===2?(0,e.jsx)(v,{}):null,oe&&be===3?(0,e.jsx)(u,{}):null,ne&&be===4?(0,e.jsx)(m,{}):null,oe&&be===5?(0,e.jsx)(c,{}):null,oe&&be===6?(0,e.jsx)(d,{}):null,oe&&be===7?(0,e.jsx)(p,{}):null,oe&&be===8?(0,e.jsx)(C,{}):null]})]})})},f=function(j){var b=(0,i.Oc)(),O=b.act,I=b.data,_=I.species,M=I.specimen,D=(0,s.Ul)(function(A){return A.specimen})(_||[]);return(0,e.jsx)(a.wn,{title:"Species",fill:!0,scrollable:!0,children:D.map(function(A){return(0,e.jsx)(a.$n,{content:A.specimen,selected:M===A.specimen,onClick:function(){return O("race",{race:A.specimen})}},A.specimen)})})},h=function(j){var b=(0,i.Oc)(),O=b.act,I=b.data,_=I.gender,M=I.gender_id,D=I.genders,A=I.id_genders;return(0,e.jsx)(a.wn,{title:"Gender & Sex",fill:!0,scrollable:!0,children:(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"Biological Sex",children:D.map(function(R){return(0,e.jsx)(a.$n,{selected:R.gender_key===_,content:R.gender_name,onClick:function(){return O("gender",{gender:R.gender_key})}},R.gender_key)})}),(0,e.jsx)(a.Ki.Item,{label:"Gender Identity",children:A.map(function(R){return(0,e.jsx)(a.$n,{selected:R.gender_key===M,content:R.gender_name,onClick:function(){return O("gender_id",{gender_id:R.gender_key})}},R.gender_key)})})]})})},v=function(j){var b=(0,i.Oc)(),O=b.act,I=b.data,_=I.change_eye_color,M=I.change_skin_tone,D=I.change_skin_color,A=I.change_hair_color,R=I.change_facial_hair_color,K=I.eye_color,N=I.skin_color,k=I.hair_color,V=I.facial_hair_color,F=I.ears_color,J=I.ears2_color,H=I.tail_color,Q=I.tail2_color,Z=I.wing_color,X=I.wing2_color;return(0,e.jsxs)(a.wn,{title:"Colors",fill:!0,scrollable:!0,children:[_?(0,e.jsxs)(a.az,{children:[(0,e.jsx)(a.BK,{color:K,mr:1}),(0,e.jsx)(a.$n,{content:"Change Eye Color",onClick:function(){return O("eye_color")}})]}):null,M?(0,e.jsx)(a.az,{children:(0,e.jsx)(a.$n,{content:"Change Skin Tone",onClick:function(){return O("skin_tone")}})}):null,D?(0,e.jsxs)(a.az,{children:[(0,e.jsx)(a.BK,{color:N,mr:1}),(0,e.jsx)(a.$n,{content:"Change Skin Color",onClick:function(){return O("skin_color")}})]}):null,A?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(a.az,{children:[(0,e.jsx)(a.BK,{color:k,mr:1}),(0,e.jsx)(a.$n,{content:"Change Hair Color",onClick:function(){return O("hair_color")}})]}),(0,e.jsxs)(a.az,{children:[(0,e.jsx)(a.BK,{color:F,mr:1}),(0,e.jsx)(a.$n,{content:"Change Ears Color",onClick:function(){return O("ears_color")}})]}),(0,e.jsxs)(a.az,{children:[(0,e.jsx)(a.BK,{color:J,mr:1}),(0,e.jsx)(a.$n,{content:"Change Secondary Ears Color",onClick:function(){return O("ears2_color")}})]}),(0,e.jsxs)(a.az,{children:[(0,e.jsx)(a.BK,{color:H,mr:1}),(0,e.jsx)(a.$n,{content:"Change Tail Color",onClick:function(){return O("tail_color")}})]}),(0,e.jsxs)(a.az,{children:[(0,e.jsx)(a.BK,{color:Q,mr:1}),(0,e.jsx)(a.$n,{content:"Change Secondary Tail Color",onClick:function(){return O("tail2_color")}})]}),(0,e.jsxs)(a.az,{children:[(0,e.jsx)(a.BK,{color:Z,mr:1}),(0,e.jsx)(a.$n,{content:"Change Wing Color",onClick:function(){return O("wing_color")}})]}),(0,e.jsxs)(a.az,{children:[(0,e.jsx)(a.BK,{color:X,mr:1}),(0,e.jsx)(a.$n,{content:"Change Secondary Wing Color",onClick:function(){return O("wing2_color")}})]})]}):null,R?(0,e.jsxs)(a.az,{children:[(0,e.jsx)(a.BK,{color:V,mr:1}),(0,e.jsx)(a.$n,{content:"Change Facial Hair Color",onClick:function(){return O("facial_hair_color")}})]}):null]})},u=function(j){var b=(0,i.Oc)(),O=b.act,I=b.data,_=I.hair_style,M=I.hair_styles;return(0,e.jsx)(a.wn,{title:"Hair",fill:!0,scrollable:!0,children:M.map(function(D){return(0,e.jsx)(a.$n,{onClick:function(){return O("hair",{hair:D.hairstyle})},selected:D.hairstyle===_,content:D.hairstyle},D.hairstyle)})})},m=function(j){var b=(0,i.Oc)(),O=b.act,I=b.data,_=I.facial_hair_style,M=I.facial_hair_styles;return(0,e.jsx)(a.wn,{title:"Facial Hair",fill:!0,scrollable:!0,children:M.map(function(D){return(0,e.jsx)(a.$n,{onClick:function(){return O("facial_hair",{facial_hair:D.facialhairstyle})},selected:D.facialhairstyle===_,content:D.facialhairstyle},D.facialhairstyle)})})},c=function(j){var b=(0,i.Oc)(),O=b.act,I=b.data,_=I.ear_style,M=I.ear_styles;return(0,e.jsxs)(a.wn,{title:"Ears",fill:!0,scrollable:!0,children:[(0,e.jsx)(a.$n,{onClick:function(){return O("ear",{clear:!0})},selected:_===null,content:"-- Not Set --"}),(0,s.Ul)(function(D){return D.name.toLowerCase()})(M).map(function(D){return(0,e.jsx)(a.$n,{onClick:function(){return O("ear",{ref:D.instance})},selected:D.name===_,content:D.name},D.instance)})]})},d=function(j){var b=(0,i.Oc)(),O=b.act,I=b.data,_=I.tail_style,M=I.tail_styles;return(0,e.jsxs)(a.wn,{title:"Tails",fill:!0,scrollable:!0,children:[(0,e.jsx)(a.$n,{onClick:function(){return O("tail",{clear:!0})},selected:_===null,content:"-- Not Set --"}),(0,s.Ul)(function(D){return D.name.toLowerCase()})(M).map(function(D){return(0,e.jsx)(a.$n,{onClick:function(){return O("tail",{ref:D.instance})},selected:D.name===_,content:D.name},D.instance)})]})},p=function(j){var b=(0,i.Oc)(),O=b.act,I=b.data,_=I.wing_style,M=I.wing_styles;return(0,e.jsxs)(a.wn,{title:"Wings",fill:!0,scrollable:!0,children:[(0,e.jsx)(a.$n,{onClick:function(){return O("wing",{clear:!0})},selected:_===null,content:"-- Not Set --"}),(0,s.Ul)(function(D){return D.name.toLowerCase()})(M).map(function(D){return(0,e.jsx)(a.$n,{onClick:function(){return O("wing",{ref:D.instance})},selected:D.name===_,content:D.name},D.instance)})]})},C=function(j){var b=(0,i.Oc)(),O=b.act,I=b.data,_=I.markings;return(0,e.jsxs)(a.wn,{title:"Markings",fill:!0,scrollable:!0,children:[(0,e.jsx)(a.az,{children:(0,e.jsx)(a.$n,{content:"Add Marking",onClick:function(){return O("marking",{todo:1,name:"na"})}})}),(0,e.jsx)(a.Ki,{children:_.map(function(M){return(0,e.jsxs)(a.Ki.Item,{label:M.marking_name,children:[(0,e.jsx)(a.BK,{color:M.marking_color,mr:1}),(0,e.jsx)(a.$n,{content:"Change Color",onClick:function(){return O("marking",{todo:4,name:M.marking_name})}}),(0,e.jsx)(a.$n,{content:"-",onClick:function(){return O("marking",{todo:0,name:M.marking_name})}}),(0,e.jsx)(a.$n,{content:"Move down",onClick:function(){return O("marking",{todo:3,name:M.marking_name})}}),(0,e.jsx)(a.$n,{content:"Move up",onClick:function(){return O("marking",{todo:2,name:M.marking_name})}})]},M.marking_name)})})]})}},8536:function(P,y,t){"use strict";t.r(y),t.d(y,{ArcadeBattle:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,h=f.name,v=f.temp,u=f.enemyAction,m=f.enemyName,c=f.playerHP,d=f.playerMP,p=f.enemyHP,C=f.enemyMP,j=f.gameOver;return(0,e.jsx)(r.p8,{width:400,height:240,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsxs)(n.wn,{title:m,textAlign:"center",children:[(0,e.jsxs)(n.wn,{color:"label",children:[(0,e.jsx)(n.az,{children:v}),(0,e.jsx)(n.az,{children:!j&&u})]}),(0,e.jsxs)(n.so,{spacing:1,children:[(0,e.jsx)(n.so.Item,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Player Health",children:(0,e.jsxs)(n.z2,{value:c,minValue:0,maxValue:30,ranges:{olive:[31,1/0],good:[20,31],average:[10,20],bad:[-1/0,10]},children:[c,"HP"]})}),(0,e.jsx)(n.Ki.Item,{label:"Player Magic",children:(0,e.jsxs)(n.z2,{value:d,minValue:0,maxValue:10,ranges:{purple:[11,1/0],violet:[3,11],bad:[-1/0,3]},children:[d,"MP"]})})]})}),(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Enemy HP",children:(0,e.jsxs)(n.z2,{value:p,minValue:0,maxValue:45,ranges:{olive:[31,1/0],good:[20,31],average:[10,20],bad:[-1/0,10]},children:[p,"HP"]})})})})]}),j&&(0,e.jsx)(n.$n,{fluid:!0,mt:1,color:"green",content:"New Game",onClick:function(){return x("newgame")}})||(0,e.jsxs)(n.so,{mt:2,justify:"space-between",spacing:1,children:[(0,e.jsx)(n.so.Item,{grow:1,children:(0,e.jsx)(n.$n,{fluid:!0,icon:"fist-raised",tooltip:"Go in for the kill!",tooltipPosition:"top",onClick:function(){return x("attack")},content:"Attack!"})}),(0,e.jsx)(n.so.Item,{grow:1,children:(0,e.jsx)(n.$n,{fluid:!0,icon:"band-aid",tooltip:"Heal yourself!",tooltipPosition:"top",onClick:function(){return x("heal")},content:"Heal!"})}),(0,e.jsx)(n.so.Item,{grow:1,children:(0,e.jsx)(n.$n,{fluid:!0,icon:"magic",tooltip:"Recharge your magic!",tooltipPosition:"top",onClick:function(){return x("charge")},content:"Recharge!"})})]})]})})})}},59854:function(P,y,t){"use strict";t.r(y),t.d(y,{AreaScrubberControl:function(){return g}});var e=t(88095),s=t(33854),n=t(44583),r=t(4413),i=t(92514),a=t(68040),g=function(f){var h=(0,r.Oc)(),v=h.act,u=h.data,m=(0,n.useState)(!1),c=m[0],d=m[1],p=u.scrubbers;return p?(0,e.jsx)(a.p8,{width:600,height:400,children:(0,e.jsx)(a.p8.Content,{scrollable:!0,children:(0,e.jsxs)(i.wn,{children:[(0,e.jsxs)(i.so,{wrap:"wrap",children:[(0,e.jsx)(i.so.Item,{m:"2px",basis:"49%",children:(0,e.jsx)(i.$n,{textAlign:"center",fluid:!0,icon:"search",content:"Scan",onClick:function(){return v("scan")}})}),(0,e.jsx)(i.so.Item,{m:"2px",basis:"49%",grow:1,children:(0,e.jsx)(i.$n,{textAlign:"center",fluid:!0,icon:"layer-group",content:"Show Areas",selected:c,onClick:function(){return d(!c)}})}),(0,e.jsx)(i.so.Item,{m:"2px",basis:"49%",children:(0,e.jsx)(i.$n,{textAlign:"center",fluid:!0,icon:"toggle-on",content:"All On",onClick:function(){return v("allon")}})}),(0,e.jsx)(i.so.Item,{m:"2px",basis:"49%",grow:1,children:(0,e.jsx)(i.$n,{textAlign:"center",fluid:!0,icon:"toggle-off",content:"All Off",onClick:function(){return v("alloff")}})})]}),(0,e.jsx)(i.so,{wrap:"wrap",children:p.map(function(C){return(0,e.jsx)(i.so.Item,{m:"2px",basis:"32%",children:(0,e.jsx)(x,{scrubber:C,showArea:c})},C.id)})})]})})}):(0,e.jsxs)(i.wn,{title:"Error",children:[(0,e.jsx)(i.az,{color:"bad",children:"No Scrubbers Detected."}),(0,e.jsx)(i.$n,{fluid:!0,icon:"search",content:"Scan",onClick:function(){return v("scan")}})]})},x=function(f){var h=(0,r.Oc)().act,v=f.scrubber,u=f.showArea;return(0,e.jsxs)(i.wn,{title:v.name,children:[(0,e.jsx)(i.$n,{fluid:!0,icon:"power-off",content:v.on?"Enabled":"Disabled",selected:v.on,onClick:function(){return h("toggle",{id:v.id})}}),(0,e.jsxs)(i.Ki,{children:[(0,e.jsxs)(i.Ki.Item,{label:"Pressure",children:[v.pressure," kPa"]}),(0,e.jsxs)(i.Ki.Item,{label:"Flow Rate",children:[v.flow_rate," L/s"]}),(0,e.jsxs)(i.Ki.Item,{label:"Load",children:[v.load," W"]}),u&&(0,e.jsx)(i.Ki.Item,{label:"Area",children:(0,s.Sn)(v.area)})]})]})}},20251:function(P,y,t){"use strict";t.r(y),t.d(y,{AssemblyInfrared:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,h=f.on,v=f.visible;return(0,e.jsx)(r.p8,{children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(n.wn,{title:"Infrared Unit",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Laser",children:(0,e.jsx)(n.$n,{icon:"power-off",fluid:!0,selected:h,onClick:function(){return x("state")},children:h?"On":"Off"})}),(0,e.jsx)(n.Ki.Item,{label:"Visibility",children:(0,e.jsx)(n.$n,{icon:"eye",fluid:!0,selected:v,onClick:function(){return x("visible")},children:v?"Able to be seen":"Invisible"})})]})})})})}},54349:function(P,y,t){"use strict";t.r(y),t.d(y,{AssemblyProx:function(){return g}});var e=t(88095),s=t(5229),n=t(4413),r=t(92514),i=t(24158),a=t(68040),g=function(x){var f=(0,n.Oc)(),h=f.act,v=f.data,u=v.timing,m=v.time,c=v.range,d=v.maxRange,p=v.scanning;return(0,e.jsx)(a.p8,{children:(0,e.jsxs)(a.p8.Content,{children:[(0,e.jsx)(r.wn,{title:"Timing Unit",children:(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Timer",buttons:(0,e.jsx)(r.$n,{icon:"stopwatch",selected:u,onClick:function(){return h("timing")},children:u?"Counting Down":"Disabled"}),children:(0,e.jsx)(r.Q7,{animated:!0,fluid:!0,value:m/10,minValue:0,maxValue:600,format:function(C){return(0,i.fU)((0,s.LI)(C))},onDrag:function(C,j){return h("set_time",{time:j})}})})})}),(0,e.jsx)(r.wn,{title:"Prox Unit",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Range",children:(0,e.jsx)(r.Q7,{minValue:1,value:c,maxValue:d,onDrag:function(C,j){return h("range",{range:j})}})}),(0,e.jsxs)(r.Ki.Item,{label:"Armed",children:[(0,e.jsx)(r.$n,{mr:1,icon:p?"lock":"lock-open",selected:p,onClick:function(){return h("scanning")},children:p?"ARMED":"Unarmed"}),"Movement sensor is active when armed!"]})]})})]})})}},8327:function(P,y,t){"use strict";t.r(y),t.d(y,{AssemblyTimer:function(){return g}});var e=t(88095),s=t(5229),n=t(4413),r=t(92514),i=t(24158),a=t(68040),g=function(x){var f=(0,n.Oc)(),h=f.act,v=f.data,u=v.timing,m=v.time;return(0,e.jsx)(a.p8,{children:(0,e.jsx)(a.p8.Content,{children:(0,e.jsx)(r.wn,{title:"Timing Unit",children:(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Timer",buttons:(0,e.jsx)(r.$n,{icon:"stopwatch",selected:u,onClick:function(){return h("timing")},children:u?"Counting Down":"Disabled"}),children:(0,e.jsx)(r.Q7,{animated:!0,fluid:!0,value:m/10,minValue:0,maxValue:600,format:function(c){return(0,i.fU)((0,s.LI)(c))},onDrag:function(c,d){return h("set_time",{time:d})}})})})})})})}},49775:function(P,y,t){"use strict";t.r(y),t.d(y,{AtmosAlertConsole:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,h=f.priority_alarms||[],v=f.minor_alarms||[];return(0,e.jsx)(r.p8,{width:350,height:300,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(n.wn,{title:"Alarms",children:(0,e.jsxs)("ul",{children:[h.length===0&&(0,e.jsx)("li",{className:"color-good",children:"No Priority Alerts"}),h.map(function(u){return(0,e.jsx)("li",{children:(0,e.jsx)(n.$n,{icon:"times",content:u.name,color:"bad",onClick:function(){return x("clear",{ref:u.ref})}})},u.name)}),v.length===0&&(0,e.jsx)("li",{className:"color-good",children:"No Minor Alerts"}),v.map(function(u){return(0,e.jsx)("li",{children:(0,e.jsx)(n.$n,{icon:"times",content:u.name,color:"average",onClick:function(){return x("clear",{ref:u.ref})}})},u.name)})]})})})})}},42623:function(P,y,t){"use strict";t.r(y),t.d(y,{AtmosControl:function(){return f},AtmosControlContent:function(){return h}});var e=t(88095),s=t(11358),n=t(44583),r=t(4413),i=t(92514),a=t(68040),g=t(47868),x=(0,g.h)("fuck"),f=function(v){return(0,e.jsx)(a.p8,{width:600,height:440,children:(0,e.jsx)(a.p8.Content,{scrollable:!0,children:(0,e.jsx)(h,{})})})},h=function(v){var u=(0,r.Oc)(),m=u.act,c=u.data,d=u.config,p=(0,s.Ul)(function(D){return D.name})(c.alarms||[]),C=(0,n.useState)(0),j=C[0],b=C[1],O=(0,n.useState)(1),I=O[0],_=O[1],M;return j===0?M=(0,e.jsx)(i.wn,{title:"Alarms",children:p.map(function(D){return(0,e.jsx)(i.$n,{content:D.name,color:D.danger===2?"bad":D.danger===1?"average":"",onClick:function(){return m("alarm",{alarm:D.ref})}},D.name)})}):j===1&&(M=(0,e.jsx)(i.az,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.jsx)(i.tx,{zoomScale:c.zoomScale,onZoom:function(D){return _(D)},children:p.filter(function(D){return~~D.z===~~d.mapZLevel}).map(function(D){return(0,e.jsx)(i.tx.Marker,{x:D.x,y:D.y,zoom:I,icon:"bell",tooltip:D.name,color:D.danger?"red":"green",onClick:function(){return m("alarm",{alarm:D.ref})}},D.ref)})})})),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(i.tU,{children:[(0,e.jsxs)(i.tU.Tab,{selected:j===0,onClick:function(){return b(0)},children:[(0,e.jsx)(i.In,{name:"table"})," Alarm View"]},"AlarmView"),(0,e.jsxs)(i.tU.Tab,{selected:j===1,onClick:function(){return b(1)},children:[(0,e.jsx)(i.In,{name:"map-marked-alt"})," Map View"]},"MapView")]}),(0,e.jsx)(i.az,{m:2,children:M})]})}},45440:function(P,y,t){"use strict";t.r(y),t.d(y,{AtmosFilter:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,h=f.filter_types||[];return(0,e.jsx)(r.p8,{width:390,height:187,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(n.wn,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Power",children:(0,e.jsx)(n.$n,{icon:f.on?"power-off":"times",content:f.on?"On":"Off",selected:f.on,onClick:function(){return x("power")}})}),(0,e.jsxs)(n.Ki.Item,{label:"Transfer Rate",children:[(0,e.jsx)(n.az,{inline:!0,mr:1,children:(0,e.jsx)(n.zv,{value:f.last_flow_rate,format:function(v){return v+" L/s"}})}),(0,e.jsx)(n.Q7,{animated:!0,value:parseFloat(f.rate),width:"63px",unit:"L/s",minValue:0,maxValue:200,onDrag:function(v,u){return x("rate",{rate:u})}}),(0,e.jsx)(n.$n,{ml:1,icon:"plus",content:"Max",disabled:f.rate===f.max_rate,onClick:function(){return x("rate",{rate:"max"})}})]}),(0,e.jsx)(n.Ki.Item,{label:"Filter",children:h.map(function(v){return(0,e.jsx)(n.$n,{selected:v.selected,content:v.name,onClick:function(){return x("filter",{filterset:v.f_type})}},v.name)})})]})})})})}},15147:function(P,y,t){"use strict";t.r(y),t.d(y,{AtmosMixer:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data;return(0,e.jsx)(r.p8,{width:370,height:195,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(n.wn,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Power",children:(0,e.jsx)(n.$n,{icon:f.on?"power-off":"times",content:f.on?"On":"Off",selected:f.on,onClick:function(){return x("power")}})}),(0,e.jsxs)(n.Ki.Item,{label:"Output Pressure",children:[(0,e.jsx)(n.Q7,{animated:!0,value:parseFloat(f.set_pressure),unit:"kPa",width:"75px",minValue:0,maxValue:f.max_pressure,step:10,onChange:function(h,v){return x("pressure",{pressure:v})}}),(0,e.jsx)(n.$n,{ml:1,icon:"plus",content:"Max",disabled:f.set_pressure===f.max_pressure,onClick:function(){return x("pressure",{pressure:"max"})}})]}),(0,e.jsx)(n.Ki.Divider,{size:1}),(0,e.jsx)(n.Ki.Item,{color:"label",children:(0,e.jsx)("u",{children:"Concentrations"})}),(0,e.jsx)(n.Ki.Item,{label:"Node 1 ("+f.node1_dir+")",children:(0,e.jsx)(n.Q7,{animated:!0,value:f.node1_concentration,unit:"%",width:"60px",minValue:0,maxValue:100,stepPixelSize:2,onDrag:function(h,v){return x("node1",{concentration:v})}})}),(0,e.jsx)(n.Ki.Item,{label:"Node 2 ("+f.node2_dir+")",children:(0,e.jsx)(n.Q7,{animated:!0,value:f.node2_concentration,unit:"%",width:"60px",minValue:0,maxValue:100,stepPixelSize:2,onDrag:function(h,v){return x("node2",{concentration:v})}})})]})})})})}},80281:function(P,y,t){"use strict";t.r(y),t.d(y,{Autolathe:function(){return c}});var e=t(88095),s=t(11358),n=t(28763),r=t(33854),i=t(4413),a=t(92514),g=t(68040),x=t(47926);function f(d,p){(p==null||p>d.length)&&(p=d.length);for(var C=0,j=new Array(p);C=d.length?{done:!0}:{done:!1,value:d[j++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var m=function(d,p,C){var j=function(){var M=I.value,D=p.find(function(A){return A.name===M});if(!D)return"continue";if(D.amount=0)&&(C[b]=d[b]);return C}var f={Alphabetical:function(d,p){return d.name>p.name},"By availability":function(d,p){return-(d.affordable-p.affordable)},"By price":function(d,p){return d.price-p.price}},h=function(d){var p=function(J){D(J)},C=function(J){K(J)},j=function(J){V(J)},b=(0,r.Oc)(),O=b.act,I=b.data,_=(0,n.useState)(""),M=_[0],D=_[1],A=(0,n.useState)("Alphabetical"),R=A[0],K=A[1],N=(0,n.useState)(!1),k=N[0],V=N[1];return(0,e.jsx)(a.p8,{width:400,height:450,children:(0,e.jsx)(a.p8.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:I.processing&&(0,e.jsx)(i.wn,{title:"Processing",children:"The biogenerator is processing reagents!"})||(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(i.wn,{children:[I.points," points available.",(0,e.jsx)(i.$n,{ml:1,icon:"blender",onClick:function(){return O("activate")},children:"Activate"}),(0,e.jsx)(i.$n,{ml:1,icon:"eject",disabled:!I.beaker,onClick:function(){return O("detach")},children:"Eject Beaker"})]}),(0,e.jsx)(u,{searchText:M,sortOrder:R,descending:k,onSearchText:p,onSortOrder:C,onDescending:j}),(0,e.jsx)(v,{searchText:M,sortOrder:R,descending:k,onSearchText:p,onSortOrder:C,onDescending:j})]})})})},v=function(d){var p=(0,r.Oc)(),C=p.act,j=p.data,b=j.points,O=j.items,I=(0,s.XZ)(d.searchText,function(D){return D[0]}),_=!1,M=Object.entries(O).map(function(D,A){var R=Object.entries(D[1]).filter(I).map(function(K){return K[1].affordable=b>=K[1].price/j.build_eff,K[1]}).sort(f[d.sortOrder]);if(R.length!==0)return d.descending&&(R=R.reverse()),_=!0,(0,e.jsx)(c,{title:D[0],items:R},D[0])});return(0,e.jsx)(i.so.Item,{grow:"1",overflow:"auto",children:(0,e.jsx)(i.wn,{children:_?M:(0,e.jsx)(i.az,{color:"label",children:"No items matching your criteria was found!"})})})},u=function(d){return(0,e.jsx)(i.az,{mb:"0.5rem",children:(0,e.jsxs)(i.so,{width:"100%",children:[(0,e.jsx)(i.so.Item,{grow:"1",mr:"0.5rem",children:(0,e.jsx)(i.pd,{placeholder:"Search by item name..",value:d.searchText,width:"100%",onInput:function(p,C){return d.onSearchText(C)}})}),(0,e.jsx)(i.so.Item,{basis:"30%",children:(0,e.jsx)(i.ms,{selected:d.sortOrder,options:Object.keys(f),width:"100%",lineHeight:"19px",onSelected:function(p){return d.onSortOrder(p)}})}),(0,e.jsx)(i.so.Item,{children:(0,e.jsx)(i.$n,{icon:d.descending?"arrow-down":"arrow-up",height:"19px",tooltip:d.descending?"Descending order":"Ascending order",tooltipPosition:"bottom-end",ml:"0.5rem",onClick:function(){return d.onDescending(!d.descending)}})})]})})},m=function(d,p){return!(!d.affordable||d.reagent&&!p.beaker)},c=function(d){var p=(0,r.Oc)(),C=p.act,j=p.data,b=d.title,O=d.items,I=x(d,["title","items"]);return(0,e.jsx)(i.Nt,g({open:!0,title:b},I,{children:O.map(function(_){return(0,e.jsxs)(i.az,{children:[(0,e.jsx)(i.az,{display:"inline-block",verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:_.name}),(0,e.jsx)(i.$n,{disabled:!m(_,j),content:(_.price/j.build_eff).toLocaleString("en-US"),width:"15%",textAlign:"center",style:{float:"right"},onClick:function(){return C("purchase",{cat:b,name:_.name})}}),(0,e.jsx)(i.az,{style:{clear:"both"}})]},_.name)})}))}},90233:function(P,y,t){"use strict";t.r(y),t.d(y,{BodyDesigner:function(){return a}});var e=t(88095),s=t(33854),n=t(4413),r=t(92514),i=t(68040),a=function(m){var c=(0,n.Oc)(),d=c.act,p=c.data,C=p.menu,j=p.disk,b=p.diskStored,O=p.activeBodyRecord,I=u[C];return(0,e.jsx)(i.p8,{width:400,height:650,children:(0,e.jsxs)(i.p8.Content,{children:[j?(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.$n,{icon:"save",content:"Save To Disk",onClick:function(){return d("savetodisk")},disabled:!O}),(0,e.jsx)(r.$n,{icon:"save",content:"Load From Disk",onClick:function(){return d("loadfromdisk")},disabled:!b}),(0,e.jsx)(r.$n,{icon:"eject",content:"Eject",onClick:function(){return d("ejectdisk")}})]}):null,I]})})},g=function(m){var c=(0,n.Oc)(),d=c.act,p=c.data;return(0,e.jsxs)(r.wn,{title:"Database Functions",children:[(0,e.jsx)(r.$n,{icon:"eye",content:"View Individual Body Records",onClick:function(){return d("menu",{menu:"Body Records"})}}),(0,e.jsx)(r.$n,{icon:"eye",content:"View Stock Body Records",onClick:function(){return d("menu",{menu:"Stock Records"})}})]})},x=function(m){var c=(0,n.Oc)(),d=c.act,p=c.data,C=p.bodyrecords;return(0,e.jsx)(r.wn,{title:"Body Records",buttons:(0,e.jsx)(r.$n,{icon:"arrow-left",content:"Back",onClick:function(){return d("menu",{menu:"Main"})}}),children:C?C.map(function(j){return(0,e.jsx)(r.$n,{icon:"eye",content:j.name,onClick:function(){return d("view_brec",{view_brec:j.recref})}},j.name)}):""})},f=function(m){var c=(0,n.Oc)(),d=c.act,p=c.data,C=p.stock_bodyrecords;return(0,e.jsx)(r.wn,{title:"Stock Records",buttons:(0,e.jsx)(r.$n,{icon:"arrow-left",content:"Back",onClick:function(){return d("menu",{menu:"Main"})}}),children:C.map(function(j){return(0,e.jsx)(r.$n,{icon:"eye",content:j,onClick:function(){return d("view_stock_brec",{view_stock_brec:j})}},j)})})},h=function(m){var c=(0,n.Oc)(),d=c.act,p=c.data,C=p.activeBodyRecord,j=p.mapRef;return C?(0,e.jsxs)(r.so,{direction:"column",children:[(0,e.jsx)(r.so.Item,{basis:"165px",children:(0,e.jsx)(r.wn,{title:"Specific Record",buttons:(0,e.jsx)(r.$n,{icon:"arrow-left",content:"Back",onClick:function(){return d("menu",{menu:"Main"})}}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Name",children:C.real_name}),(0,e.jsx)(r.Ki.Item,{label:"Species",children:C.speciesname}),(0,e.jsx)(r.Ki.Item,{label:"Bio. Sex",children:(0,e.jsx)(r.$n,{icon:"pen",content:(0,s.ZH)(C.gender),onClick:function(){return d("href_conversion",{target_href:"bio_gender",target_value:1})}})}),(0,e.jsx)(r.Ki.Item,{label:"Synthetic",children:C.synthetic}),(0,e.jsxs)(r.Ki.Item,{label:"Mind Compat",children:[C.locked,(0,e.jsx)(r.$n,{ml:1,icon:"eye",content:"View OOC Notes",disabled:!C.booc,onClick:function(){return d("boocnotes")}})]})]})})}),(0,e.jsx)(r.so.Item,{basis:"130px",children:(0,e.jsx)(r.D1,{style:{width:"100%",height:"128px"},params:{id:j,type:"map"}})}),(0,e.jsx)(r.so.Item,{basis:"300px",children:(0,e.jsx)(r.wn,{title:"Customize",height:"300px",style:{overflow:"auto"},children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Scale",children:(0,e.jsx)(r.$n,{icon:"pen",content:C.scale,onClick:function(){return d("href_conversion",{target_href:"size_multiplier",target_value:1})}})}),Object.keys(C.styles).map(function(b){var O=C.styles[b];return(0,e.jsxs)(r.Ki.Item,{label:b,children:[O.styleHref?(0,e.jsx)(r.$n,{icon:"pen",content:O.style,onClick:function(){return d("href_conversion",{target_href:O.styleHref,target_value:1})}}):null,O.colorHref?(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.$n,{icon:"pen",content:O.color,onClick:function(){return d("href_conversion",{target_href:O.colorHref,target_value:1})}}),(0,e.jsx)(r.BK,{verticalAlign:"top",width:"32px",height:"20px",color:O.color,style:{border:"1px solid #fff"}})]}):null,O.colorHref2?(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.$n,{icon:"pen",content:O.color2,onClick:function(){return d("href_conversion",{target_href:O.colorHref2,target_value:1})}}),(0,e.jsx)(r.BK,{verticalAlign:"top",width:"32px",height:"20px",color:O.color2,style:{border:"1px solid #fff"}})]}):null]},b)}),(0,e.jsxs)(r.Ki.Item,{label:"Body Markings",children:[(0,e.jsx)(r.$n,{icon:"plus",content:"Add Marking",onClick:function(){return d("href_conversion",{target_href:"marking_style",target_value:1})}}),(0,e.jsx)(r.so,{wrap:"wrap",justify:"center",align:"center",children:Object.keys(C.markings).map(function(b){var O=C.markings[b];return(0,e.jsx)(r.so.Item,{basis:"100%",children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{mr:.2,fluid:!0,icon:"times",color:"red",onClick:function(){return d("href_conversion",{target_href:"marking_remove",target_value:b})}})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{fluid:!0,backgroundColor:O,content:b,onClick:function(){return d("href_conversion",{target_href:"marking_color",target_value:b})}})})]})},b)})})]})]})})})]}):(0,e.jsx)(r.az,{color:"bad",children:"ERROR: Record Not Found!"})},v=function(m){var c=(0,n.Oc)(),d=c.act,p=c.data,C=p.activeBodyRecord;return(0,e.jsx)(r.wn,{title:"Body OOC Notes (This is OOC!)",height:"100%",scrollable:!0,buttons:(0,e.jsx)(r.$n,{icon:"arrow-left",content:"Back",onClick:function(){return d("menu",{menu:"Specific Record"})}}),style:{"word-break":"break-all"},children:C&&C.booc||"ERROR: Body record not found!"})},u={Main:(0,e.jsx)(g,{}),"Body Records":(0,e.jsx)(x,{}),"Stock Records":(0,e.jsx)(f,{}),"Specific Record":(0,e.jsx)(h,{}),"OOC Notes":(0,e.jsx)(v,{})}},45922:function(P,y,t){"use strict";t.r(y),t.d(y,{BodyScanner:function(){return m}});var e=t(88095),s=t(5229),n=t(4413),r=t(92514),i=t(68040),a=[["good","Alive"],["average","Unconscious"],["bad","DEAD"]],g=[["hasBorer","bad",function(M){return"Large growth detected in frontal lobe, possibly cancerous. Surgical removal is recommended."}],["hasVirus","bad",function(M){return"Viral pathogen detected in blood stream."}],["blind","average",function(M){return"Cataracts detected."}],["colourblind","average",function(M){return"Photoreceptor abnormalities detected."}],["nearsighted","average",function(M){return"Retinal misalignment detected."}],["humanPrey","average",function(M){return"Foreign Humanoid(s) detected: "+M.humanPrey}],["livingPrey","average",function(M){return"Foreign Creature(s) detected: "+M.livingPrey}],["objectPrey","average",function(M){return"Foreign Object(s) detected: "+M.objectPrey}]],x=[["Respiratory","oxyLoss"],["Brain","brainLoss"],["Toxin","toxLoss"],["Radiation","radLoss"],["Brute","bruteLoss"],["Genetic","cloneLoss"],["Burn","fireLoss"],["Paralysis","paralysis"]],f={average:[.25,.5],bad:[.5,1/0]},h=function(M,D){for(var A=[],R=0;R0?M.reduce(function(D,A){return D===null?A:(0,e.jsxs)(e.Fragment,{children:[D,!!A&&(0,e.jsx)(r.az,{children:A})]})}):null},u=function(M){if(M>100){if(M<300)return"mild infection";if(M<400)return"mild infection+";if(M<500)return"mild infection++";if(M<700)return"acute infection";if(M<800)return"acute infection+";if(M<900)return"acute infection++";if(M>=900)return"septic"}return""},m=function(M){var D=(0,n.Oc)().data,A=D.occupied,R=D.occupant,K=R===void 0?{}:R,N=A?(0,e.jsx)(c,{occupant:K}):(0,e.jsx)(_,{});return(0,e.jsx)(i.p8,{width:690,height:600,children:(0,e.jsx)(i.p8.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:N})})},c=function(M){var D=M.occupant;return(0,e.jsxs)(r.az,{children:[(0,e.jsx)(d,{occupant:D}),(0,e.jsx)(p,{occupant:D}),(0,e.jsx)(C,{occupant:D}),(0,e.jsx)(j,{occupant:D}),(0,e.jsx)(O,{organs:D.extOrgan}),(0,e.jsx)(I,{organs:D.intOrgan})]})},d=function(M){var D=(0,n.Oc)(),A=D.act,R=D.data,K=R.occupant;return(0,e.jsx)(r.wn,{title:"Occupant",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"user-slash",onClick:function(){return A("ejectify")},children:"Eject"}),(0,e.jsx)(r.$n,{icon:"print",onClick:function(){return A("print_p")},children:"Print Report"})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Name",children:K.name}),(0,e.jsx)(r.Ki.Item,{label:"Health",children:(0,e.jsx)(r.z2,{min:"0",max:K.maxHealth,value:K.health/K.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.jsx)(r.Ki.Item,{label:"Status",color:a[K.stat][0],children:a[K.stat][1]}),(0,e.jsxs)(r.Ki.Item,{label:"Temperature",children:[(0,e.jsx)(r.zv,{value:(0,s.LI)(K.bodyTempC,0)}),"\xB0C,\xA0",(0,e.jsx)(r.zv,{value:(0,s.LI)(K.bodyTempF,0)}),"\xB0F"]}),(0,e.jsxs)(r.Ki.Item,{label:"Blood Volume",children:[(0,e.jsx)(r.zv,{value:(0,s.LI)(K.blood.volume,0)})," ","units\xA0(",(0,e.jsx)(r.zv,{value:(0,s.LI)(K.blood.percent,0)}),"%)"]}),(0,e.jsx)(r.Ki.Item,{label:"Weight",children:(0,s.LI)(R.occupant.weight)+"lbs, "+(0,s.LI)(R.occupant.weight/2.20463)+"kgs"})]})})},p=function(M){var D=M.occupant;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.wn,{title:"Blood Reagents",children:D.reagents?(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{header:!0,children:[(0,e.jsx)(r.XI.Cell,{children:"Reagent"}),(0,e.jsx)(r.XI.Cell,{textAlign:"right",children:"Amount"})]}),D.reagents.map(function(A){return(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{children:A.name}),(0,e.jsxs)(r.XI.Cell,{textAlign:"right",children:[A.amount," Units"," ",A.overdose?(0,e.jsx)(r.az,{color:"bad",children:"OVERDOSING"}):null]})]},A.name)})]}):(0,e.jsx)(r.az,{color:"good",children:"No Blood Reagents Detected"})}),(0,e.jsx)(r.wn,{title:"Stomach Reagents",children:D.ingested?(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{header:!0,children:[(0,e.jsx)(r.XI.Cell,{children:"Reagent"}),(0,e.jsx)(r.XI.Cell,{textAlign:"right",children:"Amount"})]}),D.ingested.map(function(A){return(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{children:A.name}),(0,e.jsxs)(r.XI.Cell,{textAlign:"right",children:[A.amount," Units"," ",A.overdose?(0,e.jsx)(r.az,{color:"bad",children:"OVERDOSING"}):null]})]},A.name)})]}):(0,e.jsx)(r.az,{color:"good",children:"No Stomach Reagents Detected"})})]})},C=function(M){var D=M.occupant,A=D.hasBorer||D.blind||D.colourblind||D.nearsighted||D.hasVirus;return A=A||D.humanPrey||D.livingPrey||D.objectPrey,A?(0,e.jsx)(r.wn,{title:"Abnormalities",children:g.map(function(R,K){if(D[R[0]])return(0,e.jsx)(r.az,{color:R[1],bold:R[1]==="bad",children:R[2](D)},K)})}):(0,e.jsx)(r.wn,{title:"Abnormalities",children:(0,e.jsx)(r.az,{color:"label",children:"No abnormalities found."})})},j=function(M){var D=M.occupant;return(0,e.jsx)(r.wn,{title:"Damage",children:(0,e.jsx)(r.XI,{children:h(x,function(A,R,K){return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(r.XI.Row,{color:"label",children:[(0,e.jsxs)(r.XI.Cell,{children:[A[0],":"]}),(0,e.jsx)(r.XI.Cell,{children:!!R&&R[0]+":"})]}),(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(b,{value:D[A[1]],marginBottom:K0&&"0.5rem",value:D.totalLoss/100,ranges:f,children:[(0,e.jsxs)(r.az,{float:"left",inline:!0,children:[!!D.bruteLoss&&(0,e.jsxs)(r.az,{inline:!0,position:"relative",children:[(0,e.jsx)(r.In,{name:"bone"}),(0,s.LI)(D.bruteLoss,0),"\xA0",(0,e.jsx)(r.m_,{position:"top",content:"Brute damage"})]}),!!D.fireLoss&&(0,e.jsxs)(r.az,{inline:!0,position:"relative",children:[(0,e.jsx)(r.In,{name:"fire"}),(0,s.LI)(D.fireLoss,0),(0,e.jsx)(r.m_,{position:"top",content:"Burn damage"})]})]}),(0,e.jsx)(r.az,{inline:!0,children:(0,s.LI)(D.totalLoss,0)})]})}),(0,e.jsxs)(r.XI.Cell,{textAlign:"right",width:"33%",children:[(0,e.jsx)(r.az,{color:"average",inline:!0,children:v([D.internalBleeding&&"Internal bleeding",!!D.status.bleeding&&"External bleeding",D.lungRuptured&&"Ruptured lung",D.destroyed&&"Destroyed",!!D.status.broken&&D.status.broken,u(D.germ_level),!!D.open&&"Open incision"])}),(0,e.jsxs)(r.az,{inline:!0,children:[v([!!D.status.splinted&&"Splinted",!!D.status.robotic&&"Robotic",!!D.status.dead&&(0,e.jsx)(r.az,{color:"bad",children:"DEAD"})]),v(D.implants.map(function(R){return R.known?R.name:"Unknown object"}))]})]})]},A)})]})})},I=function(M){return M.organs.length===0?(0,e.jsx)(r.wn,{title:"Internal Organs",children:(0,e.jsx)(r.az,{color:"label",children:"N/A"})}):(0,e.jsx)(r.wn,{title:"Internal Organs",children:(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{header:!0,children:[(0,e.jsx)(r.XI.Cell,{children:"Name"}),(0,e.jsx)(r.XI.Cell,{textAlign:"center",children:"Damage"}),(0,e.jsx)(r.XI.Cell,{textAlign:"right",children:"Injuries"})]}),M.organs.map(function(D,A){return(0,e.jsxs)(r.XI.Row,{style:{textTransform:"capitalize"},children:[(0,e.jsx)(r.XI.Cell,{width:"33%",children:D.name}),(0,e.jsx)(r.XI.Cell,{textAlign:"center",children:(0,e.jsx)(r.z2,{min:"0",max:D.maxHealth,value:D.damage/100,mt:A>0&&"0.5rem",ranges:f,children:(0,s.LI)(D.damage,0)})}),(0,e.jsxs)(r.XI.Cell,{textAlign:"right",width:"33%",children:[(0,e.jsx)(r.az,{color:"average",inline:!0,children:v([u(D.germ_level),!!D.inflamed&&"Appendicitis detected."])}),(0,e.jsx)(r.az,{inline:!0,children:v([D.robotic===1&&"Robotic",D.robotic===2&&"Assisted",!!D.dead&&(0,e.jsx)(r.az,{color:"bad",children:"DEAD"})])})]})]},A)})]})})},_=function(){return(0,e.jsx)(r.wn,{textAlign:"center",flexGrow:"1",children:(0,e.jsx)(r.so,{height:"100%",children:(0,e.jsxs)(r.so.Item,{grow:"1",align:"center",color:"label",children:[(0,e.jsx)(r.In,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.jsx)("br",{}),"No occupant detected."]})})})}},57199:function(P,y,t){"use strict";t.r(y),t.d(y,{BombTester:function(){return f}});var e=t(88095),s=t(44583),n=t(4413),r=t(92514),i=t(68040);function a(){return a=Object.assign||function(v){for(var u=1;u.5,O=Math.random()>.5;return d.state={x:b?p:0,y:O?C:0,reverseX:!1,reverseY:!1},d.process=setInterval(function(){d.setState(function(I){var _=a({},I);return _.reverseX?_.x-j<-5?(_.reverseX=!1,_.x+=j):_.x-=j:_.x+j>p?(_.reverseX=!0,_.x-=j):_.x+=j,_.reverseY?_.y-j<-20?(_.reverseY=!1,_.y+=j):_.y-=j:_.y+j>C?(_.reverseY=!0,_.y-=j):_.y+=j,_})},1),d}var m=u.prototype;return m.componentWillUnmount=function(){clearInterval(this.process)},m.render=function(){var d=this.state,p=d.x,C=d.y,j={position:"relative",left:p+"px",top:C+"px"};return(0,e.jsx)(r.wn,{title:"Simulation in progress!",fill:!0,children:(0,e.jsx)(r.az,{position:"absolute",style:{overflow:"hidden",width:"100%",height:"100%"},children:(0,e.jsx)(r.In,{style:j,name:"bomb",size:10,color:"red"})})})},u}(s.Component)},95678:function(P,y,t){"use strict";t.r(y),t.d(y,{BotanyEditor:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,h=f.activity,v=f.degradation,u=f.disk,m=f.sourceName,c=f.locus,d=f.loaded;return h?(0,e.jsx)(r.p8,{width:470,height:500,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(n.IC,{info:!0,children:"Scanning..."})})}):(0,e.jsx)(r.p8,{width:470,height:500,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{title:"Buffered Genetic Data",children:u&&(0,e.jsxs)(n.az,{children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Source",children:m}),(0,e.jsxs)(n.Ki.Item,{label:"Gene Decay",children:[v,"%"]}),(0,e.jsx)(n.Ki.Item,{label:"Locus",children:c})]}),(0,e.jsx)(n.$n,{mt:1,icon:"eject",onClick:function(){return x("eject_disk")},children:"Eject Loaded Disk"})]})||(0,e.jsx)(n.IC,{warning:!0,children:"No disk loaded."})}),(0,e.jsx)(n.wn,{title:"Loaded Material",children:d&&(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Target",children:d})}),(0,e.jsx)(n.$n,{mt:1,icon:"cog",onClick:function(){return x("apply_gene")},children:"Apply Gene Mods"}),(0,e.jsx)(n.$n,{mt:1,icon:"eject",onClick:function(){return x("eject_packet")},children:"Eject Target"})]})||(0,e.jsx)(n.IC,{warning:!0,children:"No target seed packet loaded."})})]})})}},72384:function(P,y,t){"use strict";t.r(y),t.d(y,{BotanyIsolator:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,h=f.geneMasks,v=f.activity,u=f.degradation,m=f.disk,c=f.loaded,d=f.hasGenetics,p=f.sourceName;return v?(0,e.jsx)(r.p8,{width:470,height:500,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(n.IC,{info:!0,children:"Scanning..."})})}):(0,e.jsx)(r.p8,{width:470,height:500,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{title:"Buffered Genetic Data",children:d&&(0,e.jsxs)(n.az,{children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Source",children:p}),(0,e.jsxs)(n.Ki.Item,{label:"Gene decay",children:[u,"%"]}),m&&h.length&&h.map(function(C){return(0,e.jsx)(n.Ki.Item,{label:C.mask,children:(0,e.jsx)(n.$n,{mb:-1,icon:"download",onClick:function(){return x("get_gene",{get_gene:C.tag})},children:"Extract"})},C.mask)})||null]}),m&&(0,e.jsxs)(n.az,{mt:1,children:[(0,e.jsx)(n.$n,{icon:"eject",onClick:function(){return x("eject_disk")},children:"Eject Loaded Disk"}),(0,e.jsx)(n.$n,{icon:"trash",onClick:function(){return x("clear_buffer")},children:"Clear Genetic Buffer"})]})||(0,e.jsx)(n.IC,{mt:1,warning:!0,children:"No disk inserted."})]})||(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.IC,{warning:!0,children:"No Data Buffered."}),m&&(0,e.jsx)(n.$n,{icon:"eject",onClick:function(){return x("eject_disk")},children:"Eject Loaded Disk"})||(0,e.jsx)(n.IC,{mt:1,warning:!0,children:"No disk inserted."})]})}),(0,e.jsx)(n.wn,{title:"Loaded Material",children:c&&(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Packet Loaded",children:c})}),(0,e.jsx)(n.$n,{mt:1,icon:"cog",onClick:function(){return x("scan_genome")},children:"Process Genome"}),(0,e.jsx)(n.$n,{icon:"eject",onClick:function(){return x("eject_packet")},children:"Eject Packet"})]})||(0,e.jsx)(n.IC,{warning:!0,children:"No packet loaded."})})]})})}},11515:function(P,y,t){"use strict";t.r(y),t.d(y,{BrigTimer:function(){return g}});var e=t(88095),s=t(5229),n=t(4413),r=t(92514),i=t(24158),a=t(68040),g=function(x){var f=(0,n.Oc)(),h=f.act,v=f.data;return(0,e.jsx)(a.p8,{width:300,height:138,children:(0,e.jsx)(a.p8.Content,{scrollable:!0,children:(0,e.jsxs)(r.wn,{title:"Cell Timer",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"clock-o",content:v.timing?"Stop":"Start",selected:v.timing,onClick:function(){return h(v.timing?"stop":"start")}}),v.flash_found&&(0,e.jsx)(r.$n,{icon:"lightbulb-o",content:v.flash_charging?"Recharging":"Flash",disabled:v.flash_charging,onClick:function(){return h("flash")}})||null]}),children:[(0,e.jsx)(r.Q7,{animated:!0,fluid:!0,value:v.time_left/10,minValue:0,maxValue:v.max_time_left/10,format:function(u){return(0,i.fU)((0,s.LI)(u))},onDrag:function(u,m){return h("time",{time:m})}}),(0,e.jsxs)(r.so,{mt:1,children:[(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{fluid:!0,icon:"hourglass-start",content:"Add "+(0,i.fU)(v.preset_short/10),onClick:function(){return h("preset",{preset:"short"})}})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{fluid:!0,icon:"hourglass-start",content:"Add "+(0,i.fU)(v.preset_medium/10),onClick:function(){return h("preset",{preset:"medium"})}})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{fluid:!0,icon:"hourglass-start",content:"Add "+(0,i.fU)(v.preset_long/10),onClick:function(){return h("preset",{preset:"long"})}})})]})]})})})}},96524:function(P,y,t){"use strict";t.r(y),t.d(y,{CameraConsole:function(){return u},CameraConsoleContent:function(){return m},prevNextCamera:function(){return h},selectCameras:function(){return v}});var e=t(88095),s=t(11358),n=t(28763),r=t(84352),i=t(33854),a=t(44583),g=t(4413),x=t(92514),f=t(68040),h=function(c,d){var p,C;if(!d)return[];var j=c.findIndex(function(b){return b.name===d.name});return[(p=c[j-1])==null?void 0:p.name,(C=c[j+1])==null?void 0:C.name]},v=function(c,d,p){d===void 0&&(d=""),p===void 0&&(p="");var C=(0,i.XZ)(d,function(j){return j.name});return(0,n.L)([(0,s.pb)(function(j){return j==null?void 0:j.name}),d&&(0,s.pb)(C),p&&(0,s.pb)(function(j){return j.networks.includes(p)}),(0,s.Ul)(function(j){return j.name})])(c)},u=function(c){var d=(0,g.Oc)(),p=d.act,C=d.data,j=C.mapRef,b=C.activeCamera,O=v(C.cameras),I=h(O,b),_=I[0],M=I[1];return(0,e.jsxs)(f.p8,{width:870,height:708,children:[(0,e.jsx)("div",{className:"CameraConsole__left",children:(0,e.jsx)(f.p8.Content,{scrollable:!0,children:(0,e.jsx)(m,{})})}),(0,e.jsxs)("div",{className:"CameraConsole__right",children:[(0,e.jsxs)("div",{className:"CameraConsole__toolbar",children:[(0,e.jsx)("b",{children:"Camera: "}),b&&b.name||"\u2014"]}),(0,e.jsxs)("div",{className:"CameraConsole__toolbarRight",children:["SEL:",(0,e.jsx)(x.$n,{icon:"chevron-left",disabled:!_,onClick:function(){return p("switch_camera",{name:_})}}),(0,e.jsx)(x.$n,{icon:"chevron-right",disabled:!M,onClick:function(){return p("switch_camera",{name:M})}}),"| PAN:",(0,e.jsx)(x.$n,{icon:"chevron-left",onClick:function(){return p("pan",{dir:8})}}),(0,e.jsx)(x.$n,{icon:"chevron-up",onClick:function(){return p("pan",{dir:1})}}),(0,e.jsx)(x.$n,{icon:"chevron-right",onClick:function(){return p("pan",{dir:4})}}),(0,e.jsx)(x.$n,{icon:"chevron-down",onClick:function(){return p("pan",{dir:2})}})]}),(0,e.jsx)(x.D1,{className:"CameraConsole__map",params:{id:j,type:"map"}})]})]})},m=function(c){var d=(0,g.Oc)(),p=d.act,C=d.data,j=(0,a.useState)(""),b=j[0],O=j[1],I=(0,a.useState)(""),_=I[0],M=I[1],D=C.activeCamera,A=C.allNetworks;A.sort();var R=v(C.cameras,b,_);return(0,e.jsxs)(x.so,{direction:"column",height:"100%",children:[(0,e.jsx)(x.so.Item,{children:(0,e.jsx)(x.pd,{autoFocus:!0,fluid:!0,mt:1,placeholder:"Search for a camera",onInput:function(K,N){return O(N)}})}),(0,e.jsx)(x.so.Item,{children:(0,e.jsxs)(x.so,{children:[(0,e.jsx)(x.so.Item,{children:(0,e.jsx)(x.ms,{mb:1,width:_?"155px":"177px",displayText:_||"No Filter",options:A,onSelected:function(K){return M(K)}})}),_?(0,e.jsx)(x.so.Item,{children:(0,e.jsx)(x.$n,{width:"22px",icon:"undo",color:"red",onClick:function(){M("")}})}):""]})}),(0,e.jsx)(x.so.Item,{height:"100%",children:(0,e.jsx)(x.wn,{fill:!0,scrollable:!0,children:R.map(function(K){return(0,e.jsx)("div",{title:K.name,className:(0,r.Ly)(["Button","Button--fluid","Button--color--transparent","Button--ellipsis",D&&K.name===D.name&&"Button--selected"]),onClick:function(){return p("switch_camera",{name:K.name})},children:K.name},K.name)})})})]})}},60997:function(P,y,t){"use strict";t.r(y),t.d(y,{Canister:function(){return g}});var e=t(88095),s=t(5229),n=t(4413),r=t(92514),i=t(24158),a=t(68040),g=function(x){var f=(0,n.Oc)(),h=f.act,v=f.data,u=v.connected,m=v.can_relabel,c=v.pressure,d=v.releasePressure,p=v.defaultReleasePressure,C=v.minReleasePressure,j=v.maxReleasePressure,b=v.valveOpen,O=v.holding;return(0,e.jsx)(a.p8,{width:360,height:242,children:(0,e.jsxs)(a.p8.Content,{children:[(0,e.jsx)(r.wn,{title:"Canister",buttons:(0,e.jsx)(r.$n,{icon:"pencil-alt",disabled:!m,content:"Relabel",onClick:function(){return h("relabel")}}),children:(0,e.jsxs)(r.Wx,{children:[(0,e.jsx)(r.Wx.Item,{minWidth:"66px",label:"Tank Pressure",children:(0,e.jsx)(r.zv,{value:c,format:function(I){return I<1e4?(0,s.Mg)(I)+" kPa":(0,i.QL)(I*1e3,1,"Pa")}})}),(0,e.jsx)(r.Wx.Item,{label:"Regulator",children:(0,e.jsxs)(r.az,{position:"relative",left:"-8px",children:[(0,e.jsx)(r.N6,{forcedInputWidth:"60px",size:1.25,color:!!b&&"yellow",value:d,unit:"kPa",minValue:C,maxValue:j,stepPixelSize:1,onDrag:function(I,_){return h("pressure",{pressure:_})}}),(0,e.jsx)(r.$n,{fluid:!0,position:"absolute",top:"-2px",right:"-20px",color:"transparent",icon:"fast-forward",onClick:function(){return h("pressure",{pressure:j})}}),(0,e.jsx)(r.$n,{fluid:!0,position:"absolute",top:"16px",right:"-20px",color:"transparent",icon:"undo",onClick:function(){return h("pressure",{pressure:p})}})]})}),(0,e.jsx)(r.Wx.Item,{label:"Valve",children:(0,e.jsx)(r.$n,{my:.5,width:"50px",lineHeight:2,fontSize:"11px",color:b?O?"caution":"danger":null,content:b?"Open":"Closed",onClick:function(){return h("valve")}})}),(0,e.jsx)(r.Wx.Item,{mr:1,label:"Port",children:(0,e.jsxs)(r.az,{position:"relative",children:[(0,e.jsx)(r.In,{size:1.25,name:u?"plug":"times",color:u?"good":"bad"}),(0,e.jsx)(r.m_,{content:u?"Connected":"Disconnected",position:"top"})]})})]})}),(0,e.jsxs)(r.wn,{title:"Holding Tank",buttons:!!O&&(0,e.jsx)(r.$n,{icon:"eject",color:b&&"danger",content:"Eject",onClick:function(){return h("eject")}}),children:[!!O&&(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Label",children:O.name}),(0,e.jsxs)(r.Ki.Item,{label:"Pressure",children:[(0,e.jsx)(r.zv,{value:O.pressure})," kPa"]})]}),!O&&(0,e.jsx)(r.az,{color:"average",children:"No Holding Tank"})]})]})})}},9550:function(P,y,t){"use strict";t.r(y),t.d(y,{Canvas:function(){return m}});var e=t(88095),s=t(44583),n=t(4413),r=t(92514),i=t(68040);function a(){return a=Object.assign||function(c){for(var d=1;d=0)&&(p[j]=c[j]);return p}function f(c,d){return f=Object.setPrototypeOf||function(C,j){return C.__proto__=j,C},f(c,d)}var h=24,v=function(c){"use strict";g(d,c);function d(C){var j;return j=c.call(this,C)||this,j.canvasRef=(0,s.createRef)(),j.onCVClick=C.onCanvasClick,j}var p=d.prototype;return p.componentDidMount=function(){this.drawCanvas(this.props)},p.componentDidUpdate=function(){this.drawCanvas(this.props)},p.drawCanvas=function(j){var b=this.canvasRef.current.getContext("2d"),O=j.value,I=O.length;if(I){var _=O[0].length,M=Math.round(this.canvasRef.current.width/I),D=Math.round(this.canvasRef.current.height/_);b.save(),b.scale(M,D);for(var A=0;A=0)&&(p[j]=c[j]);return p}var f={Alphabetical:function(c,d){return c.name>d.name},"By availability":function(c,d){return-(c.affordable-d.affordable)},"By price":function(c,d){return c.price-d.price}},h=function(){var c=function(K){b(K)},d=function(K){_(K)},p=function(K){A(K)},C=(0,n.useState)(""),j=C[0],b=C[1],O=(0,n.useState)("Alphabetical"),I=O[0],_=O[1],M=(0,n.useState)(!1),D=M[0],A=M[1];return(0,e.jsx)(a.p8,{width:400,height:450,children:(0,e.jsx)(a.p8.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(v,{searchText:j,sortOrder:I,descending:D,onSearchText:c,onSortOrder:d,onDescending:p}),(0,e.jsx)(u,{searchText:j,sortOrder:I,descending:D,onSearchText:c,onSortOrder:d,onDescending:p})]})})})},v=function(c){return(0,e.jsx)(i.az,{mb:"0.5rem",children:(0,e.jsxs)(i.so,{width:"100%",children:[(0,e.jsx)(i.so.Item,{grow:"1",mr:"0.5rem",children:(0,e.jsx)(i.pd,{placeholder:"Search by item name..",width:"100%",onInput:function(d,p){return c.onSearchText(p)}})}),(0,e.jsx)(i.so.Item,{basis:"30%",children:(0,e.jsx)(i.ms,{selected:c.sortOrder,options:Object.keys(f),width:"100%",lineHeight:"19px",onSelected:function(d){return c.onSortOrder(d)}})}),(0,e.jsx)(i.so.Item,{children:(0,e.jsx)(i.$n,{icon:c.descending?"arrow-down":"arrow-up",height:"19px",tooltip:c.descending?"Descending order":"Ascending order",tooltipPosition:"bottom-end",ml:"0.5rem",onClick:function(){return c.onDescending(!c.descending)}})})]})})},u=function(c){var d=(0,r.Oc)(),p=d.act,C=d.data,j=C.points,b=C.items,O=(0,s.XZ)(c.searchText,function(M){return M[0]}),I=!1,_=Object.entries(b).map(function(M,D){var A=Object.entries(M[1]).filter(O).map(function(R){return R[1].affordable=j>=R[1].price,R[1]}).sort(f[c.sortOrder]);if(A.length!==0)return c.descending&&(A=A.reverse()),I=!0,(0,e.jsx)(m,{title:M[0],items:A},M[0])});return(0,e.jsx)(i.so.Item,{grow:"1",overflow:"auto",children:(0,e.jsx)(i.wn,{children:I?_:(0,e.jsx)(i.az,{color:"label",children:"No items matching your criteria was found!"})})})},m=function(c){var d=(0,r.Oc)(),p=d.act,C=d.data,j=c.title,b=c.items,O=x(c,["title","items"]);return(0,e.jsx)(i.Nt,g({open:!0,title:j},O,{children:b.map(function(I){return(0,e.jsxs)(i.az,{children:[(0,e.jsx)(i.az,{display:"inline-block",verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:I.name}),(0,e.jsx)(i.$n,{content:I.price.toLocaleString("en-US"),width:"15%",textAlign:"center",style:{float:"right"},onClick:function(){return p("purchase",{cat:j,name:I.name,price:I.price,restriction:I.restriction})}}),(0,e.jsx)(i.az,{style:{clear:"both"}})]},I.name)})}))}},36136:function(P,y,t){"use strict";t.r(y),t.d(y,{CharacterDirectory:function(){return g}});var e=t(88095),s=t(44583),n=t(4413),r=t(92514),i=t(68040),a=function(v){switch(v){case"Unset":return"label";case"Pred":return"red";case"Pred-Pref":return"orange";case"Prey":return"blue";case"Prey-Pref":return"green";case"Switch":return"yellow";case"Non-Vore":return"black"}},g=function(v){var u=function(R){I(R)},m=(0,n.Oc)(),c=m.act,d=m.data,p=d.personalVisibility,C=d.personalTag,j=d.personalErpTag,b=(0,s.useState)(null),O=b[0],I=b[1],_=(0,s.useState)(!1),M=_[0],D=_[1];return(0,e.jsx)(i.p8,{width:640,height:480,resizeable:!0,children:(0,e.jsx)(i.p8.Content,{scrollable:!0,children:O&&(0,e.jsx)(x,{overlay:O,onOverlay:u})||(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.wn,{title:"Controls",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.az,{color:"label",inline:!0,children:"Save to current preferences slot:\xA0"}),(0,e.jsx)(r.$n,{icon:M?"toggle-on":"toggle-off",selected:M,content:M?"On":"Off",onClick:function(){return D(!M)}})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Visibility",children:(0,e.jsx)(r.$n,{fluid:!0,content:p?"Shown":"Not Shown",onClick:function(){return c("setVisible",{overwrite_prefs:M})}})}),(0,e.jsx)(r.Ki.Item,{label:"Vore Tag",children:(0,e.jsx)(r.$n,{fluid:!0,content:C,onClick:function(){return c("setTag",{overwrite_prefs:M})}})}),(0,e.jsx)(r.Ki.Item,{label:"ERP Tag",children:(0,e.jsx)(r.$n,{fluid:!0,content:j,onClick:function(){return c("setErpTag",{overwrite_prefs:M})}})}),(0,e.jsx)(r.Ki.Item,{label:"Advertisement",children:(0,e.jsx)(r.$n,{fluid:!0,content:"Edit Ad",onClick:function(){return c("editAd",{overwrite_prefs:M})}})})]})}),(0,e.jsx)(f,{onOverlay:u})]})})})},x=function(v){return(0,e.jsxs)(r.wn,{title:v.overlay.name,buttons:(0,e.jsx)(r.$n,{icon:"arrow-left",content:"Back",onClick:function(){return v.onOverlay(null)}}),children:[(0,e.jsx)(r.wn,{level:2,title:"Species",children:(0,e.jsx)(r.az,{children:v.overlay.species})}),(0,e.jsx)(r.wn,{level:2,title:"Vore Tag",children:(0,e.jsx)(r.az,{p:1,backgroundColor:a(v.overlay.tag),children:v.overlay.tag})}),(0,e.jsx)(r.wn,{level:2,title:"ERP Tag",children:(0,e.jsx)(r.az,{children:v.overlay.erptag})}),(0,e.jsx)(r.wn,{level:2,title:"Character Ad",children:(0,e.jsx)(r.az,{style:{"word-break":"break-all"},preserveWhitespace:!0,children:v.overlay.character_ad||"Unset."})}),(0,e.jsx)(r.wn,{level:2,title:"OOC Notes",children:(0,e.jsx)(r.az,{style:{"word-break":"break-all"},preserveWhitespace:!0,children:v.overlay.ooc_notes||"Unset."})}),(0,e.jsx)(r.wn,{level:2,title:"Flavor Text",children:(0,e.jsx)(r.az,{style:{"word-break":"break-all"},preserveWhitespace:!0,children:v.overlay.flavor_text||"Unset."})})]})},f=function(v){var u=function(A){O(A)},m=function(A){M(A)},c=(0,n.Oc)(),d=c.act,p=c.data,C=p.directory,j=(0,s.useState)("name"),b=j[0],O=j[1],I=(0,s.useState)("name"),_=I[0],M=I[1];return(0,e.jsx)(r.wn,{title:"Directory",buttons:(0,e.jsx)(r.$n,{icon:"sync",content:"Refresh",onClick:function(){return d("refresh")}}),children:(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{bold:!0,children:[(0,e.jsx)(h,{id:"name",sortId:b,sortOrder:_,onSortId:u,onSortOrder:m,children:"Name"}),(0,e.jsx)(h,{id:"species",sortId:b,sortOrder:_,onSortId:u,onSortOrder:m,children:"Species"}),(0,e.jsx)(h,{id:"tag",sortId:b,sortOrder:_,onSortId:u,onSortOrder:m,children:"Vore Tag"}),(0,e.jsx)(h,{id:"erptag",sortId:b,sortOrder:_,onSortId:u,onSortOrder:m,children:"ERP Tag"}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,textAlign:"right",children:"View"})]}),C.sort(function(D,A){var R=_?1:-1;return D[b].localeCompare(A[b])*R}).map(function(D,A){return(0,e.jsxs)(r.XI.Row,{backgroundColor:a(D.tag),children:[(0,e.jsx)(r.XI.Cell,{p:1,children:D.name}),(0,e.jsx)(r.XI.Cell,{children:D.species}),(0,e.jsx)(r.XI.Cell,{children:D.tag}),(0,e.jsx)(r.XI.Cell,{children:D.erptag}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,textAlign:"right",children:(0,e.jsx)(r.$n,{onClick:function(){return v.onOverlay(D)},color:"transparent",icon:"sticky-note",mr:1,content:"View"})})]},A)})]})})},h=function(v){var u=(0,n.Oc)(),m=u.act,c=u.data,d=v.id,p=v.children;return(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:(0,e.jsxs)(r.$n,{width:"100%",color:v.sortId!==d&&"transparent",onClick:function(){v.sortId===d?v.onSortOrder(!v.sortOrder):(v.onSortId(d),v.onSortOrder(!0))},children:[p,v.sortId===d&&(0,e.jsx)(r.In,{name:v.sortOrder?"sort-up":"sort-down",ml:"0.25rem;"})]})})}},98875:function(P,y,t){"use strict";t.r(y),t.d(y,{CheckboxInput:function(){return h}});var e=t(88095),s=t(33854),n=t(44583),r=t(4413),i=t(92514),a=t(86808),g=t(68040),x=t(12035),f=t(18513),h=function(v){var u=(0,r.Oc)().data,m=u.items,c=m===void 0?[]:m,d=u.min_checked,p=u.max_checked,C=u.message,j=u.timeout,b=u.title,O=(0,n.useState)([]),I=O[0],_=O[1],M=(0,n.useState)(""),D=M[0],A=M[1],R=(0,s.XZ)(D,function(k){return k}),K=c.filter(R),N=function(k){var V=I.includes(k)?I.filter(function(F){return F!==k}):[].concat(I,[k]);_(V)};return(0,e.jsxs)(g.p8,{title:b,width:425,height:300,children:[!!j&&(0,e.jsx)(f.Loader,{value:j}),(0,e.jsx)(g.p8.Content,{children:(0,e.jsxs)(i.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(i.BJ.Item,{children:(0,e.jsxs)(i.IC,{info:!0,textAlign:"center",children:[(0,s.jT)(C)," ",d>0&&" (Min: "+d+")",p<50&&" (Max: "+p+")"]})}),(0,e.jsx)(i.BJ.Item,{grow:!0,mt:0,children:(0,e.jsx)(i.wn,{fill:!0,scrollable:!0,children:(0,e.jsx)(i.XI,{children:K.map(function(k,V){return(0,e.jsx)(a.Hj,{className:"candystripe",children:(0,e.jsx)(a.nA,{children:(0,e.jsx)(i.$n.Checkbox,{checked:I.includes(k),disabled:I.length>=p&&!I.includes(k),fluid:!0,onClick:function(){return N(k)},children:k})})},V)})})})}),(0,e.jsxs)(i.BJ,{m:1,mb:0,children:[(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(i.m_,{content:"Search",position:"bottom",children:(0,e.jsx)(i.In,{name:"search",mt:.5})})}),(0,e.jsx)(i.BJ.Item,{grow:!0,children:(0,e.jsx)(i.pd,{fluid:!0,value:D,onInput:function(k,V){return A(V)}})})]}),(0,e.jsx)(i.BJ.Item,{mt:.7,children:(0,e.jsx)(i.wn,{children:(0,e.jsx)(x.InputButtons,{input:I})})})]})})]})}},6908:function(P,y,t){"use strict";t.r(y),t.d(y,{ChemDispenser:function(){return x}});var e=t(88095),s=t(4413),n=t(92514),r=t(62386),i=t(68040),a=[5,10,20,30,40,60],g=[1,5,10],x=function(u){return(0,e.jsx)(i.p8,{width:390,height:655,children:(0,e.jsxs)(i.p8.Content,{className:"Layout__content--flexColumn",children:[(0,e.jsx)(f,{}),(0,e.jsx)(h,{}),(0,e.jsx)(v,{})]})})},f=function(u){var m=(0,s.Oc)(),c=m.act,d=m.data,p=d.amount;return(0,e.jsx)(n.wn,{title:"Settings",flex:"content",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Dispense",verticalAlign:"middle",children:a.map(function(C,j){return(0,e.jsx)(n.$n,{textAlign:"center",selected:p===C,content:C+"u",m:"0",onClick:function(){return c("amount",{amount:C})}},j)})}),(0,e.jsx)(n.Ki.Item,{label:"Custom Amount",children:(0,e.jsx)(n.Ap,{step:1,stepPixelSize:5,value:p,minValue:1,maxValue:120,onDrag:function(C,j){return c("amount",{amount:j})}})})]})})},h=function(u){for(var m=(0,s.Oc)(),c=m.act,d=m.data,p=d.chemicals,C=p===void 0?[]:p,j=[],b=0;b<(C.length+1)%3;b++)j.push(!0);return(0,e.jsx)(n.wn,{title:d.glass?"Drink Dispenser":"Chemical Dispenser",flexGrow:"1",children:(0,e.jsxs)(n.so,{direction:"row",wrap:"wrap",height:"100%",align:"flex-start",children:[C.map(function(O,I){return(0,e.jsx)(n.so.Item,{grow:"1",m:.2,basis:"40%",height:"20px",children:(0,e.jsx)(n.$n,{icon:"arrow-circle-down",width:"100%",height:"100%",align:"flex-start",content:O.title+" ("+O.amount+")",onClick:function(){return c("dispense",{reagent:O.id})}})},I)}),j.map(function(O,I){return(0,e.jsx)(n.so.Item,{grow:"1",basis:"25%",height:"20px"},I)})]})})},v=function(u){var m=(0,s.Oc)(),c=m.act,d=m.data,p=d.isBeakerLoaded,C=d.beakerCurrentVolume,j=d.beakerMaxVolume,b=d.beakerContents,O=b===void 0?[]:b;return(0,e.jsx)(n.wn,{title:"Beaker",flex:"content",minHeight:"25%",buttons:(0,e.jsxs)(n.az,{children:[!!p&&(0,e.jsxs)(n.az,{inline:!0,color:"label",mr:2,children:[C," / ",j," units"]}),(0,e.jsx)(n.$n,{icon:"eject",content:"Eject",disabled:!p,onClick:function(){return c("ejectBeaker")}})]}),children:(0,e.jsx)(r.BeakerContents,{beakerLoaded:p,beakerContents:O,buttons:function(I){return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{content:"Isolate",icon:"compress-arrows-alt",onClick:function(){return c("remove",{reagent:I.id,amount:-1})}}),g.map(function(_,M){return(0,e.jsx)(n.$n,{content:_,onClick:function(){return c("remove",{reagent:I.id,amount:_})}},M)}),(0,e.jsx)(n.$n,{content:"ALL",onClick:function(){return c("remove",{reagent:I.id,amount:I.volume})}})]})}})})}},75191:function(P,y,t){"use strict";t.r(y),t.d(y,{ChemMaster:function(){return h}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=t(62386),a=t(5425),g=[1,5,10,30,60],x=null,f=function(p){var C=(0,s.Oc)(),j=C.act,b=C.data,O=p.args.analysis;return(0,e.jsx)(n.wn,{level:2,m:"-1rem",pb:"1rem",title:b.condi?"Condiment Analysis":"Reagent Analysis",children:(0,e.jsx)(n.az,{mx:"0.5rem",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Name",children:O.name}),(0,e.jsx)(n.Ki.Item,{label:"Description",children:(O.desc||"").length>0?O.desc:"N/A"}),O.blood_type&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.Ki.Item,{label:"Blood type",children:O.blood_type}),(0,e.jsx)(n.Ki.Item,{label:"Blood DNA",className:"LabeledList__breakContents",children:O.blood_dna})]}),!b.condi&&(0,e.jsx)(n.$n,{icon:b.printing?"spinner":"print",disabled:b.printing,iconSpin:!!b.printing,ml:"0.5rem",content:"Print",onClick:function(){return j("print",{idx:O.idx,beaker:p.args.beaker})}})]})})})},h=function(p){var C=(0,s.Oc)().data,j=C.condi,b=C.beaker,O=C.beaker_reagents,I=O===void 0?[]:O,_=C.buffer_reagents,M=_===void 0?[]:_,D=C.mode;return(0,e.jsxs)(r.p8,{width:575,height:500,children:[(0,e.jsx)(a.ComplexModal,{}),(0,e.jsxs)(r.p8.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:[(0,e.jsx)(v,{beaker:b,beakerReagents:I,bufferNonEmpty:M.length>0}),(0,e.jsx)(u,{mode:D,bufferReagents:M}),(0,e.jsx)(m,{isCondiment:j,bufferNonEmpty:M.length>0})]})]})},v=function(p){var C=(0,s.Oc)(),j=C.act,b=C.data,O=p.beaker,I=p.beakerReagents,_=p.bufferNonEmpty,M=_?(0,e.jsx)(n.$n.Confirm,{icon:"eject",disabled:!O,content:"Eject and Clear Buffer",onClick:function(){return j("eject")}}):(0,e.jsx)(n.$n,{icon:"eject",disabled:!O,content:"Eject and Clear Buffer",onClick:function(){return j("eject")}});return(0,e.jsx)(n.wn,{title:"Beaker",buttons:M,children:O?(0,e.jsx)(i.BeakerContents,{beakerLoaded:!0,beakerContents:I,buttons:function(D,A){return(0,e.jsxs)(n.az,{mb:A0?(0,e.jsx)(i.BeakerContents,{beakerLoaded:!0,beakerContents:O,buttons:function(I,_){return(0,e.jsxs)(n.az,{mb:_1?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.az,{color:i.lm.damageType.oxy,inline:!0,children:K[0]}),"\xA0|\xA0",(0,e.jsx)(r.az,{color:i.lm.damageType.toxin,inline:!0,children:K[2]}),"\xA0|\xA0",(0,e.jsx)(r.az,{color:i.lm.damageType.brute,inline:!0,children:K[3]}),"\xA0|\xA0",(0,e.jsx)(r.az,{color:i.lm.damageType.burn,inline:!0,children:K[1]})]}):(0,e.jsx)(r.az,{color:"bad",children:"Unknown"})}),(0,e.jsx)(r.Ki.Item,{label:"UI",className:"LabeledList__breakContents",children:A}),(0,e.jsx)(r.Ki.Item,{label:"SE",className:"LabeledList__breakContents",children:R}),(0,e.jsxs)(r.Ki.Item,{label:"Disk",children:[(0,e.jsx)(r.$n.Confirm,{disabled:!O.disk,icon:"arrow-circle-down",content:"Import",onClick:function(){return b("disk",{option:"load"})}}),(0,e.jsx)(r.$n,{disabled:!O.disk,icon:"arrow-circle-up",content:"Export UI",onClick:function(){return b("disk",{option:"save",savetype:"ui"})}}),(0,e.jsx)(r.$n,{disabled:!O.disk,icon:"arrow-circle-up",content:"Export UI and UE",onClick:function(){return b("disk",{option:"save",savetype:"ue"})}}),(0,e.jsx)(r.$n,{disabled:!O.disk,icon:"arrow-circle-up",content:"Export SE",onClick:function(){return b("disk",{option:"save",savetype:"se"})}})]}),(0,e.jsxs)(r.Ki.Item,{label:"Actions",children:[(0,e.jsx)(r.$n,{disabled:!O.podready,icon:"user-plus",content:"Clone",onClick:function(){return b("clone",{ref:_})}}),(0,e.jsx)(r.$n,{icon:"trash",content:"Delete",onClick:function(){return b("del_rec")}})]})]})})},h=function(C){var j=(0,n.Oc)(),b=j.act,O=j.data,I=O.menu;return(0,a.modalRegisterBodyOverride)("view_rec",f),(0,e.jsxs)(g.p8,{children:[(0,e.jsx)(a.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),(0,e.jsxs)(g.p8.Content,{className:"Layout__content--flexColumn",children:[(0,e.jsx)(d,{}),(0,e.jsx)(p,{}),(0,e.jsx)(v,{}),(0,e.jsx)(r.wn,{noTopPadding:!0,flexGrow:"1",children:(0,e.jsx)(u,{})})]})]})},v=function(C){var j=(0,n.Oc)(),b=j.act,O=j.data,I=O.menu;return(0,e.jsxs)(r.tU,{children:[(0,e.jsx)(r.tU.Tab,{selected:I===1,icon:"home",onClick:function(){return b("menu",{num:1})},children:"Main"}),(0,e.jsx)(r.tU.Tab,{selected:I===2,icon:"folder",onClick:function(){return b("menu",{num:2})},children:"Records"})]})},u=function(C){var j=(0,n.Oc)().data,b=j.menu,O;return b===1?O=(0,e.jsx)(m,{}):b===2&&(O=(0,e.jsx)(c,{})),O},m=function(C){var j=(0,n.Oc)(),b=j.act,O=j.data,I=O.loading,_=O.scantemp,M=O.occupant,D=O.locked,A=O.can_brainscan,R=O.scan_mode,K=O.numberofpods,N=O.pods,k=O.selected_pod,V=D&&!!M;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(r.wn,{title:"Scanner",level:"2",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.az,{inline:!0,color:"label",children:"Scanner Lock:\xA0"}),(0,e.jsx)(r.$n,{disabled:!M,selected:V,icon:V?"toggle-on":"toggle-off",content:V?"Engaged":"Disengaged",onClick:function(){return b("lock")}}),(0,e.jsx)(r.$n,{disabled:V||!M,icon:"user-slash",content:"Eject Occupant",onClick:function(){return b("eject")}})]}),children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Status",children:I?(0,e.jsxs)(r.az,{color:"average",children:[(0,e.jsx)(r.In,{name:"spinner",spin:!0}),"\xA0 Scanning..."]}):(0,e.jsx)(r.az,{color:_.color,children:_.text})}),!!A&&(0,e.jsx)(r.Ki.Item,{label:"Scan Mode",children:(0,e.jsx)(r.$n,{icon:R?"brain":"male",content:R?"Brain":"Body",onClick:function(){return b("toggle_mode")}})})]}),(0,e.jsx)(r.$n,{disabled:!M||I,icon:"user",content:"Scan Occupant",mt:"0.5rem",mb:"0",onClick:function(){return b("scan")}})]}),(0,e.jsx)(r.wn,{title:"Pods",level:"2",children:K?N.map(function(F,J){var H;return F.status==="cloning"?H=(0,e.jsx)(r.z2,{min:"0",max:"100",value:F.progress/100,ranges:{good:[.75,1/0],average:[.25,.75],bad:[-1/0,.25]},mt:"0.5rem",children:(0,e.jsx)(r.az,{textAlign:"center",children:(0,s.LI)(F.progress,0)+"%"})}):F.status==="mess"?H=(0,e.jsx)(r.az,{bold:!0,color:"bad",mt:"0.5rem",children:"ERROR"}):H=(0,e.jsx)(r.$n,{selected:k===F.pod,icon:k===F.pod&&"check",content:"Select",mt:"0.5rem",onClick:function(){return b("selectpod",{ref:F.pod})}}),(0,e.jsxs)(r.az,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,e.jsx)("img",{src:"pod_"+F.status+".gif",style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.jsxs)(r.az,{color:"label",children:["Pod #",J+1]}),(0,e.jsxs)(r.az,{bold:!0,color:F.biomass>=150?"good":"bad",inline:!0,children:[(0,e.jsx)(r.In,{name:F.biomass>=150?"circle":"circle-o"}),"\xA0",F.biomass]}),H]},J)}):(0,e.jsx)(r.az,{color:"bad",children:"No pods detected. Unable to clone."})})]})},c=function(C){var j=(0,n.Oc)(),b=j.act,O=j.data,I=O.records;return I.length?(0,e.jsx)(r.az,{mt:"0.5rem",children:I.map(function(_,M){return(0,e.jsx)(r.$n,{icon:"user",mb:"0.5rem",content:_.realname,onClick:function(){return b("view_rec",{ref:_.record})}},M)})}):(0,e.jsx)(r.so,{height:"100%",children:(0,e.jsxs)(r.so.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,e.jsx)(r.In,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.jsx)("br",{}),"No records found."]})})},d=function(C){var j=(0,n.Oc)(),b=j.act,O=j.data,I=O.temp;if(!(!I||!I.text||I.text.length<=0)){var _,M=(_={},_[I.style]=!0,_);return(0,e.jsxs)(r.IC,x({},M,{children:[(0,e.jsx)(r.az,{display:"inline-block",verticalAlign:"middle",children:I.text}),(0,e.jsx)(r.$n,{icon:"times-circle",float:"right",onClick:function(){return b("cleartemp")}}),(0,e.jsx)(r.az,{clear:"both"})]}))}},p=function(C){var j=(0,n.Oc)(),b=j.act,O=j.data,I=O.scanner,_=O.numberofpods,M=O.autoallowed,D=O.autoprocess,A=O.disk;return(0,e.jsx)(r.wn,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[!!M&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.az,{inline:!0,color:"label",children:"Auto-processing:\xA0"}),(0,e.jsx)(r.$n,{selected:D,icon:D?"toggle-on":"toggle-off",content:D?"Enabled":"Disabled",onClick:function(){return b("autoprocess",{on:D?0:1})}})]}),(0,e.jsx)(r.$n,{disabled:!A,icon:"eject",content:"Eject Disk",onClick:function(){return b("disk",{option:"eject"})}})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Scanner",children:I?(0,e.jsx)(r.az,{color:"good",children:"Connected"}):(0,e.jsx)(r.az,{color:"bad",children:"Not connected!"})}),(0,e.jsx)(r.Ki.Item,{label:"Pods",children:_?(0,e.jsxs)(r.az,{color:"good",children:[_," connected"]}):(0,e.jsx)(r.az,{color:"bad",children:"None connected!"})})]})})}},48418:function(P,y,t){"use strict";t.r(y),t.d(y,{ColorMate:function(){return i},ColorMateHSV:function(){return x},ColorMateMatrix:function(){return g},ColorMateTint:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(f,h){var v=(0,s.Oc)(h),u=v.act,m=v.data,c=m.activemode,d=m.temp,p=m.item||[];return(0,e.jsx)(r.p8,{width:"980",height:"720",resizable:!0,children:(0,e.jsx)(r.p8.Content,{overflow:"auto",children:(0,e.jsxs)(n.wn,{children:[d?(0,e.jsx)(n.IC,{children:d}):null,Object.keys(p).length?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(n.XI,{children:[(0,e.jsx)(n.XI.Cell,{width:"50%",children:(0,e.jsxs)(n.wn,{children:[(0,e.jsx)("center",{children:"Item:"}),(0,e.jsx)("img",{src:"data:image/jpeg;base64, "+p.sprite,width:"100%",height:"100%",style:{"-ms-interpolation-mode":"nearest-neighbor"}})]})}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsxs)(n.wn,{children:[(0,e.jsx)("center",{children:"Preview:"}),(0,e.jsx)("img",{src:"data:image/jpeg;base64, "+p.preview,width:"100%",height:"100%",style:{"-ms-interpolation-mode":"nearest-neighbor"}})]})})]}),(0,e.jsxs)(n.tU,{fluid:!0,children:[(0,e.jsx)(n.tU.Tab,{selected:c===1,onClick:function(){return u("switch_modes",{mode:1})},children:"Tint coloring (Simple)"},"1"),(0,e.jsx)(n.tU.Tab,{selected:c===2,onClick:function(){return u("switch_modes",{mode:2})},children:"HSV coloring (Normal)"},"2"),(0,e.jsx)(n.tU.Tab,{selected:c===3,onClick:function(){return u("switch_modes",{mode:3})},children:"Matrix coloring (Advanced)"},"3")]}),(0,e.jsxs)("center",{children:["Coloring: ",p.name]}),(0,e.jsxs)(n.XI,{mt:1,children:[(0,e.jsxs)(n.XI.Cell,{width:"33%",children:[(0,e.jsx)(n.$n,{fluid:!0,content:"Paint",icon:"fill",onClick:function(){return u("paint")}}),(0,e.jsx)(n.$n,{fluid:!0,content:"Clear",icon:"eraser",onClick:function(){return u("clear")}}),(0,e.jsx)(n.$n,{fluid:!0,content:"Eject",icon:"eject",onClick:function(){return u("drop")}})]}),(0,e.jsx)(n.XI.Cell,{width:"66%",children:c===1?(0,e.jsx)(a,{}):c===2?(0,e.jsx)(x,{}):(0,e.jsx)(g,{})})]})]}):(0,e.jsx)("center",{children:"No item inserted."})]})})})},a=function(f,h){var v=(0,s.Oc)(h),u=v.act,m=v.data;return(0,e.jsx)(n.$n,{fluid:!0,content:"Select new color",icon:"paint-brush",onClick:function(){return u("choose_color")}})},g=function(f,h){var v=(0,s.Oc)(h),u=v.act,m=v.data,c=m.matrixcolors||[];return(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Cell,{children:[(0,e.jsxs)(n.XI.Row,{children:["RR:"," ",(0,e.jsx)(n.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.rr,onChange:function(d,p){return u("set_matrix_color",{color:1,value:p})}})]}),(0,e.jsxs)(n.XI.Row,{children:["GR:"," ",(0,e.jsx)(n.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.gr,onChange:function(d,p){return u("set_matrix_color",{color:4,value:p})}})]}),(0,e.jsxs)(n.XI.Row,{children:["BR:"," ",(0,e.jsx)(n.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.br,onChange:function(d,p){return u("set_matrix_color",{color:7,value:p})}})]})]}),(0,e.jsxs)(n.XI.Cell,{children:[(0,e.jsxs)(n.XI.Row,{children:["RG:"," ",(0,e.jsx)(n.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.rg,onChange:function(d,p){return u("set_matrix_color",{color:2,value:p})}})]}),(0,e.jsxs)(n.XI.Row,{children:["GG:"," ",(0,e.jsx)(n.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.gg,onChange:function(d,p){return u("set_matrix_color",{color:5,value:p})}})]}),(0,e.jsxs)(n.XI.Row,{children:["BG:"," ",(0,e.jsx)(n.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.bg,onChange:function(d,p){return u("set_matrix_color",{color:8,value:p})}})]})]}),(0,e.jsxs)(n.XI.Cell,{children:[(0,e.jsxs)(n.XI.Row,{children:["RB:"," ",(0,e.jsx)(n.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.rb,onChange:function(d,p){return u("set_matrix_color",{color:3,value:p})}})]}),(0,e.jsxs)(n.XI.Row,{children:["GB:"," ",(0,e.jsx)(n.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.gb,onChange:function(d,p){return u("set_matrix_color",{color:6,value:p})}})]}),(0,e.jsxs)(n.XI.Row,{children:["BB:"," ",(0,e.jsx)(n.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.bb,onChange:function(d,p){return u("set_matrix_color",{color:9,value:p})}})]})]}),(0,e.jsxs)(n.XI.Cell,{children:[(0,e.jsxs)(n.XI.Row,{children:["CR:"," ",(0,e.jsx)(n.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.cr,onChange:function(d,p){return u("set_matrix_color",{color:10,value:p})}})]}),(0,e.jsxs)(n.XI.Row,{children:["CG:"," ",(0,e.jsx)(n.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.cg,onChange:function(d,p){return u("set_matrix_color",{color:11,value:p})}})]}),(0,e.jsxs)(n.XI.Row,{children:["CB:"," ",(0,e.jsx)(n.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.cb,onChange:function(d,p){return u("set_matrix_color",{color:12,value:p})}})]})]}),(0,e.jsxs)(n.XI.Cell,{width:"40%",children:[(0,e.jsx)(n.In,{name:"question-circle",color:"blue"})," RG means red will become this much green.",(0,e.jsx)("br",{}),(0,e.jsx)(n.In,{name:"question-circle",color:"blue"})," CR means this much red will be added."]})]})},x=function(f,h){var v=(0,s.Oc)(h),u=v.act,m=v.data,c=m.buildhue,d=m.buildsat,p=m.buildval;return(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)("center",{children:"Hue:"}),(0,e.jsx)(n.XI.Cell,{width:"85%",children:(0,e.jsx)(n.Ap,{minValue:0,maxValue:360,step:1,value:c,onDrag:function(C,j){return u("set_hue",{buildhue:j})}})})]}),(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)("center",{children:"Saturation:"}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.Ap,{minValue:-10,maxValue:10,step:.01,value:d,onDrag:function(C,j){return u("set_sat",{buildsat:j})}})})]}),(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)("center",{children:"Value:"}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.Ap,{minValue:-10,maxValue:10,step:.01,value:p,onDrag:function(C,j){return u("set_val",{buildval:j})}})})]})]})}},48022:function(P,y,t){"use strict";t.r(y),t.d(y,{CommunicationsConsole:function(){return i},CommunicationsConsoleContent:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(v){return(0,e.jsx)(r.p8,{width:400,height:600,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(a,{})})})},a=function(v){var u=(0,s.Oc)(),m=u.act,c=u.data,d=c.menu_state,p=(0,e.jsxs)(n.az,{color:"bad",children:["ERRROR. Unknown menu_state: ",d,"Please report this to NT Technical Support."]});return d===1?p=(0,e.jsx)(g,{}):d===2?p=(0,e.jsx)(h,{}):d===3&&(p=(0,e.jsx)(f,{})),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(x,{}),p]})},g=function(v){var u=(0,s.Oc)(),m=u.act,c=u.data,d=c.messages,p=c.msg_cooldown,C=c.emagged,j=c.cc_cooldown,b=c.str_security_level,O=c.levels,I=c.authmax,_=c.security_level,M=c.security_level_color,D=c.authenticated,A=c.atcsquelch,R=c.boss_short,K="View ("+d.length+")",N="Make Priority Announcement";p>0&&(N+=" ("+p+"s)");var k=C?"Message [UNKNOWN]":"Message "+R;j>0&&(k+=" ("+j+"s)");var V=b,F=O.map(function(J){return(0,e.jsx)(n.$n,{icon:J.icon,content:J.name,disabled:!D,selected:J.id===_,onClick:function(){return m("newalertlevel",{level:J.id})}},J.name)});return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.wn,{title:"Site Manager-Only Actions",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Announcement",children:(0,e.jsx)(n.$n,{icon:"bullhorn",content:N,disabled:!I||p>0,onClick:function(){return m("announce")}})}),!!C&&(0,e.jsxs)(n.Ki.Item,{label:"Transmit",children:[(0,e.jsx)(n.$n,{icon:"broadcast-tower",color:"red",content:k,disabled:!I||j>0,onClick:function(){return m("MessageSyndicate")}}),(0,e.jsx)(n.$n,{icon:"sync-alt",content:"Reset Relays",disabled:!I,onClick:function(){return m("RestoreBackup")}})]})||(0,e.jsx)(n.Ki.Item,{label:"Transmit",children:(0,e.jsx)(n.$n,{icon:"broadcast-tower",content:k,disabled:!I||j>0,onClick:function(){return m("MessageCentCom")}})})]})}),(0,e.jsx)(n.wn,{title:"Command Staff Actions",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Current Alert",color:M,children:V}),(0,e.jsx)(n.Ki.Item,{label:"Change Alert",children:F}),(0,e.jsx)(n.Ki.Item,{label:"Displays",children:(0,e.jsx)(n.$n,{icon:"tv",content:"Change Status Displays",disabled:!D,onClick:function(){return m("status")}})}),(0,e.jsx)(n.Ki.Item,{label:"Incoming Messages",children:(0,e.jsx)(n.$n,{icon:"folder-open",content:K,disabled:!D,onClick:function(){return m("messagelist")}})}),(0,e.jsx)(n.Ki.Item,{label:"Misc",children:(0,e.jsx)(n.$n,{icon:"microphone",content:A?"ATC Relay Disabled":"ATC Relay Enabled",disabled:!D,selected:A,onClick:function(){return m("toggleatc")}})})]})})]})},x=function(v){var u=(0,s.Oc)(),m=u.act,c=u.data,d=c.authenticated,p=c.is_ai,C=c.esc_status,j=c.esc_callable,b=c.esc_recallable,O;return d?p?O="AI":d===1?O="Command":d===2?O="Site Director":O="ERROR: Report This Bug!":O="Not Logged In",(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.wn,{title:"Authentication",children:(0,e.jsx)(n.Ki,{children:p&&(0,e.jsx)(n.Ki.Item,{label:"Access Level",children:"AI"})||(0,e.jsx)(n.Ki.Item,{label:"Actions",children:(0,e.jsx)(n.$n,{icon:d?"sign-out-alt":"id-card",selected:d,content:d?"Log Out ("+O+")":"Log In",onClick:function(){return m("auth")}})})})}),(0,e.jsx)(n.wn,{title:"Escape Shuttle",children:(0,e.jsxs)(n.Ki,{children:[!!C&&(0,e.jsx)(n.Ki.Item,{label:"Status",children:C}),!!j&&(0,e.jsx)(n.Ki.Item,{label:"Options",children:(0,e.jsx)(n.$n,{icon:"rocket",content:"Call Shuttle",disabled:!d,onClick:function(){return m("callshuttle")}})}),!!b&&(0,e.jsx)(n.Ki.Item,{label:"Options",children:(0,e.jsx)(n.$n,{icon:"times",content:"Recall Shuttle",disabled:!d||p,onClick:function(){return m("cancelshuttle")}})})]})})]})},f=function(v){var u=(0,s.Oc)(),m=u.act,c=u.data,d=c.message_current,p=c.message_deletion_allowed,C=c.authenticated,j=c.messages;if(d)return(0,e.jsx)(n.wn,{title:d.title,buttons:(0,e.jsx)(n.$n,{icon:"times",content:"Return To Message List",disabled:!C,onClick:function(){return m("messagelist")}}),children:(0,e.jsx)(n.az,{children:d.contents})});var b=j.map(function(O){return(0,e.jsxs)(n.Ki.Item,{label:O.title,children:[(0,e.jsx)(n.$n,{icon:"eye",content:"View",disabled:!C||d&&d.title===O.title,onClick:function(){return m("messagelist",{msgid:O.id})}}),(0,e.jsx)(n.$n,{icon:"times",content:"Delete",disabled:!C||!p,onClick:function(){return m("delmessage",{msgid:O.id})}})]},O.id)});return(0,e.jsx)(n.wn,{title:"Messages Received",buttons:(0,e.jsx)(n.$n,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){return m("main")}}),children:(0,e.jsx)(n.Ki,{children:j.length&&b||(0,e.jsx)(n.Ki.Item,{label:"404",color:"bad",children:"No messages."})})})},h=function(v){var u=(0,s.Oc)(),m=u.act,c=u.data,d=c.stat_display,p=c.authenticated,C=d.presets.map(function(j){return(0,e.jsx)(n.$n,{content:j.label,selected:j.name===d.type,disabled:!p,onClick:function(){return m("setstat",{statdisp:j.name})}},j.name)});return(0,e.jsx)(n.wn,{title:"Modify Status Screens",buttons:(0,e.jsx)(n.$n,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){return m("main")}}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Presets",children:C}),(0,e.jsx)(n.Ki.Item,{label:"Message Line 1",children:(0,e.jsx)(n.$n,{icon:"pencil-alt",content:d.line_1,disabled:!p,onClick:function(){return m("setmsg1")}})}),(0,e.jsx)(n.Ki.Item,{label:"Message Line 2",children:(0,e.jsx)(n.$n,{icon:"pencil-alt",content:d.line_2,disabled:!p,onClick:function(){return m("setmsg2")}})})]})})}},80273:function(P,y,t){"use strict";t.r(y),t.d(y,{Communicator:function(){return _}});var e=t(88095),s=t(11358),n=t(33854),r=t(44583),i=t(4413),a=t(92514),g=t(68040),x=t(41608),f=1,h=2,v=3,u=4,m=40,c=5,d=6,p=7,C=8,j=9,b=[f,h,v,u,m,c,d,p,C,j],O={};function I(Q){return b.includes(Q)}var _=function(Q){for(var Z=(0,i.Oc)(),X=Z.act,z=Z.data,Y=z.currentTab,ee=z.video_comm,oe=z.owner,ne=z.occupation,ue=z.connectionStatus,ce=z.address,me=z.visible,xe=z.ring,ve=z.selfie_mode,be=z.homeScreen,we=z.targetAddress,Je=z.voice_mobs,ze=z.phone_video_comm,Le=z.communicating,Be=z.requestsReceived,dt=z.invitesSent,xt=z.imContacts,lt=z.targetAddressName,rt=z.imList,Re=z.feeds,Ke=z.target_feed,Pe=z.latest_news,ke=z.note,Me=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F"],Ve=Me.map(function(je){return(0,e.jsx)(a.$n,{content:je,fontSize:2,fluid:!0,onClick:function(){return X("add_hex",{add_hex:je})}},je)}),We=[],He=0;HeX?Z.length>X?Z.slice(0,X)+"...":Z:Q+Z},F=function(Q,Z,X,z){if(X<0||X>z.length)return k(Q,Z)?"TinderMessage_First_Sent":"TinderMessage_First_Received";var Y=k(Q,Z),ee=k(z[X],Z);return Y&&ee?"TinderMessage_Subsequent_Sent":!Y&&!ee?"TinderMessage_Subsequent_Received":Y?"TinderMessage_First_Sent":"TinderMessage_First_Received"},J=function(Q,Z,X,z,Y){return Qz?"average":Q>Y?"bad":"good"},H=function(Q){var Z=(0,i.Oc)(),X=Z.act,z=Z.data,Y=z.aircontents,ee=z.weather,oe="\xB0";return(0,e.jsxs)(a.wn,{title:"Weather",children:[(0,e.jsx)(a.wn,{title:"Current Conditions",children:(0,e.jsx)(a.Ki,{children:(0,s.pb)(function(ne){return ne.val!=="0"||ne.entry==="Pressure"||ne.entry==="Temperature"})(Y).map(function(ne){return(0,e.jsxs)(a.Ki.Item,{label:ne.entry,color:J(ne.val,ne.bad_low,ne.poor_low,ne.poor_high,ne.bad_high),children:[ne.val,(0,n.jT)(ne.units)]},ne.entry)})})}),(0,e.jsx)(a.wn,{title:"Weather Reports",children:!!ee.length&&(0,e.jsx)(a.Ki,{children:ee.map(function(ne){return(0,e.jsx)(a.Ki.Item,{label:ne.Planet,children:(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"Time",children:ne.Time}),(0,e.jsx)(a.Ki.Item,{label:"Weather",children:(0,n.Sn)(ne.Weather)}),(0,e.jsxs)(a.Ki.Item,{label:"Temperature",children:["Current: ",ne.Temperature.toFixed()," ",oe,"C | High:"," ",ne.High.toFixed()," ",oe,"C | Low: ",ne.Low.toFixed()," ",oe,"C"]}),(0,e.jsx)(a.Ki.Item,{label:"Wind Direction",children:ne.WindDir}),(0,e.jsx)(a.Ki.Item,{label:"Wind Speed",children:ne.WindSpeed}),(0,e.jsx)(a.Ki.Item,{label:"Forecast",children:(0,n.jT)(ne.Forecast)})]})},ne.Planet)})})||(0,e.jsx)(a.az,{color:"bad",children:"No weather reports available. Please check back later."})})]})}},90734:function(P,y,t){"use strict";t.r(y),t.d(y,{ComputerFabricator:function(){return c}});var e=t(88095),s=t(33854),n=t(4413),r=t(92514),i=t(68040);function a(b,O){return O||(O=b.slice(0)),b.raw=O,b}function g(){var b=a(["\n Allows your device to operate without external utility power\n source. Advanced batteries increase battery life.\n "]);return g=function(){return b},b}function x(){var b=a(["\n Stores file on your device. Advanced drives can store more\n files, but use more power, shortening battery life.\n "]);return x=function(){return b},b}function f(){var b=a(["\n Allows your device to wirelessly connect to stationwide NTNet\n network. Basic cards are limited to on-station use, while\n advanced cards can operate anywhere near the station, which\n includes asteroid outposts\n "]);return f=function(){return b},b}function h(){var b=a(["\n A device that allows for various paperwork manipulations,\n such as, scanning of documents or printing new ones.\n This device was certified EcoFriendlyPlus and is capable of\n recycling existing paper for printing purposes.\n "]);return h=function(){return b},b}function v(){var b=a(["\n Adds a secondary RFID card reader, for manipulating or\n reading from a second standard RFID card.\n Please note that a primary card reader is necessary to\n allow the device to read your identification, but one\n is included in the base price.\n "]);return v=function(){return b},b}function u(){var b=a(["\n A component critical for your device's functionality.\n It allows you to run programs from your hard drive.\n Advanced CPUs use more power, but allow you to run\n more programs on background at once.\n "]);return u=function(){return b},b}function m(){var b=a(["\n An advanced wireless power relay that allows your device\n to connect to nearby area power controller to provide\n alternative power source. This component is currently\n unavailable on tablet computers due to size restrictions.\n "]);return m=function(){return b},b}var c=function(b){var O=(0,n.Oc)(),I=O.act,_=O.data;return(0,e.jsx)(i.p8,{title:"Personal Computer Vendor",width:500,height:420,children:(0,e.jsxs)(i.p8.Content,{children:[(0,e.jsx)(r.wn,{italic:!0,fontSize:"20px",children:"Your perfect device, only three steps away..."}),_.state!==0&&(0,e.jsx)(r.$n,{fluid:!0,mb:1,icon:"circle",content:"Clear Order",onClick:function(){return I("clean_order")}}),_.state===0&&(0,e.jsx)(d,{}),_.state===1&&(0,e.jsx)(p,{}),_.state===2&&(0,e.jsx)(C,{}),_.state===3&&(0,e.jsx)(j,{})]})})},d=function(b){var O=(0,n.Oc)(),I=O.act,_=O.data;return(0,e.jsxs)(r.wn,{title:"Step 1",minHeight:"306px",children:[(0,e.jsx)(r.az,{mt:5,bold:!0,textAlign:"center",fontSize:"40px",children:"Choose your Device"}),(0,e.jsx)(r.az,{mt:3,children:(0,e.jsxs)(r.xA,{width:"100%",children:[(0,e.jsx)(r.xA.Column,{children:(0,e.jsx)(r.$n,{fluid:!0,icon:"laptop",content:"Laptop",textAlign:"center",fontSize:"30px",lineHeight:2,onClick:function(){return I("pick_device",{pick:"1"})}})}),(0,e.jsx)(r.xA.Column,{children:(0,e.jsx)(r.$n,{fluid:!0,icon:"tablet-alt",content:"Tablet",textAlign:"center",fontSize:"30px",lineHeight:2,onClick:function(){return I("pick_device",{pick:"2"})}})})]})})]})},p=function(b){var O=(0,n.Oc)(),I=O.act,_=O.data;return(0,e.jsxs)(r.wn,{title:"Step 2: Customize your device",minHeight:"282px",buttons:(0,e.jsxs)(r.az,{bold:!0,color:"good",children:[_.totalprice,"\u20AE"]}),children:[(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsxs)(r.XI.Cell,{bold:!0,position:"relative",children:["Battery:",(0,e.jsx)(r.m_,{content:(0,s.c1)(g()),position:"right"})]}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"Standard",selected:_.hw_battery===1,onClick:function(){return I("hw_battery",{battery:"1"})}})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"Upgraded",selected:_.hw_battery===2,onClick:function(){return I("hw_battery",{battery:"2"})}})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"Advanced",selected:_.hw_battery===3,onClick:function(){return I("hw_battery",{battery:"3"})}})})]}),(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsxs)(r.XI.Cell,{bold:!0,position:"relative",children:["Hard Drive:",(0,e.jsx)(r.m_,{content:(0,s.c1)(x()),position:"right"})]}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"Standard",selected:_.hw_disk===1,onClick:function(){return I("hw_disk",{disk:"1"})}})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"Upgraded",selected:_.hw_disk===2,onClick:function(){return I("hw_disk",{disk:"2"})}})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"Advanced",selected:_.hw_disk===3,onClick:function(){return I("hw_disk",{disk:"3"})}})})]}),(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsxs)(r.XI.Cell,{bold:!0,position:"relative",children:["Network Card:",(0,e.jsx)(r.m_,{content:(0,s.c1)(f()),position:"right"})]}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"None",selected:_.hw_netcard===0,onClick:function(){return I("hw_netcard",{netcard:"0"})}})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"Standard",selected:_.hw_netcard===1,onClick:function(){return I("hw_netcard",{netcard:"1"})}})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"Advanced",selected:_.hw_netcard===2,onClick:function(){return I("hw_netcard",{netcard:"2"})}})})]}),(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsxs)(r.XI.Cell,{bold:!0,position:"relative",children:["Nano Printer:",(0,e.jsx)(r.m_,{content:(0,s.c1)(h()),position:"right"})]}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"None",selected:_.hw_nanoprint===0,onClick:function(){return I("hw_nanoprint",{print:"0"})}})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"Standard",selected:_.hw_nanoprint===1,onClick:function(){return I("hw_nanoprint",{print:"1"})}})})]}),(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsxs)(r.XI.Cell,{bold:!0,position:"relative",children:["Secondary Card Reader:",(0,e.jsx)(r.m_,{content:(0,s.c1)(v()),position:"right"})]}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"None",selected:_.hw_card===0,onClick:function(){return I("hw_card",{card:"0"})}})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"Standard",selected:_.hw_card===1,onClick:function(){return I("hw_card",{card:"1"})}})})]}),_.devtype!==2&&(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsxs)(r.XI.Cell,{bold:!0,position:"relative",children:["Processor Unit:",(0,e.jsx)(r.m_,{content:(0,s.c1)(u()),position:"right"})]}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"Standard",selected:_.hw_cpu===1,onClick:function(){return I("hw_cpu",{cpu:"1"})}})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"Advanced",selected:_.hw_cpu===2,onClick:function(){return I("hw_cpu",{cpu:"2"})}})})]}),(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsxs)(r.XI.Cell,{bold:!0,position:"relative",children:["Tesla Relay:",(0,e.jsx)(r.m_,{content:(0,s.c1)(m()),position:"right"})]}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"None",selected:_.hw_tesla===0,onClick:function(){return I("hw_tesla",{tesla:"0"})}})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"Standard",selected:_.hw_tesla===1,onClick:function(){return I("hw_tesla",{tesla:"1"})}})})]})]}),(0,e.jsx)(r.$n,{fluid:!0,mt:3,content:"Confirm Order",color:"good",textAlign:"center",fontSize:"18px",lineHeight:2,onClick:function(){return I("confirm_order")}})]})},C=function(b){var O=(0,n.Oc)(),I=O.act,_=O.data;return(0,e.jsxs)(r.wn,{title:"Step 3: Payment",minHeight:"282px",children:[(0,e.jsx)(r.az,{italic:!0,textAlign:"center",fontSize:"20px",children:"Your device is ready for fabrication..."}),(0,e.jsxs)(r.az,{bold:!0,mt:2,textAlign:"center",fontSize:"16px",children:[(0,e.jsx)(r.az,{inline:!0,children:"Please swipe your ID now to authorize payment of:"}),"\xA0",(0,e.jsxs)(r.az,{inline:!0,color:"good",children:[_.totalprice,"\u20AE"]})]})]})},j=function(b){return(0,e.jsxs)(r.wn,{minHeight:"282px",children:[(0,e.jsx)(r.az,{bold:!0,textAlign:"center",fontSize:"28px",mt:10,children:"Thank you for your purchase!"}),(0,e.jsx)(r.az,{italic:!0,mt:1,textAlign:"center",children:"If you experience any difficulties with your new device, please contact your local network administrator."})]})}},79415:function(P,y,t){"use strict";t.r(y),t.d(y,{CookingAppliance:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,h=f.temperature,v=f.optimalTemp,u=f.temperatureEnough,m=f.efficiency,c=f.containersRemovable,d=f.our_contents;return(0,e.jsx)(r.p8,{width:600,height:600,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{title:"Status",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Temperature",children:(0,e.jsxs)(n.z2,{color:u?"good":"blue",value:h,maxValue:v,children:[(0,e.jsx)(n.zv,{value:h}),"\xB0C / ",v,"\xB0C"]})}),(0,e.jsxs)(n.Ki.Item,{label:"Efficiency",children:[(0,e.jsx)(n.zv,{value:m}),"%"]})]})}),(0,e.jsx)(n.wn,{title:"Containers",children:(0,e.jsx)(n.Ki,{children:d.map(function(p,C){return p.empty?(0,e.jsx)(n.Ki.Item,{label:"Slot #"+(C+1),children:(0,e.jsx)(n.$n,{onClick:function(){return x("slot",{slot:C+1})},children:"Empty"})},C):(0,e.jsx)(n.Ki.Item,{label:"Slot #"+(C+1),verticalAlign:"middle",children:(0,e.jsxs)(n.so,{spacing:1,children:[(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(n.$n,{disabled:!c,onClick:function(){return x("slot",{slot:C+1})},children:p.container||"No Container"})}),(0,e.jsx)(n.so.Item,{grow:1,children:(0,e.jsx)(n.z2,{color:p.progressText[0],value:p.progress,maxValue:1,children:p.progressText[1]})})]})},C)})})})]})})}},41608:function(P,y,t){"use strict";t.r(y),t.d(y,{CrewManifest:function(){return g},CrewManifestContent:function(){return x}});var e=t(88095),s=t(33854),n=t(4413),r=t(92514),i=t(1568),a=t(68040),g=function(){return(0,e.jsx)(a.p8,{width:400,height:600,children:(0,e.jsx)(a.p8.Content,{scrollable:!0,children:(0,e.jsx)(x,{})})})},x=function(f){var h=(0,n.Oc)(),v=h.act,u=h.data,m=u.manifest;return(0,e.jsx)(r.wn,{title:"Crew Manifest",noTopPadding:!0,children:m.map(function(c){return!!c.elems.length&&(0,e.jsx)(r.wn,{title:(0,e.jsx)(r.az,{backgroundColor:i.lm.manifest[c.cat.toLowerCase()],m:-1,pt:1,pb:1,children:(0,e.jsx)(r.az,{ml:1,textAlign:"center",fontSize:1.4,children:c.cat})}),children:(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{header:!0,color:"white",children:[(0,e.jsx)(r.XI.Cell,{children:"Name"}),(0,e.jsx)(r.XI.Cell,{children:"Rank"}),(0,e.jsx)(r.XI.Cell,{children:"Active"})]}),c.elems.map(function(d){return(0,e.jsxs)(r.XI.Row,{color:"average",children:[(0,e.jsx)(r.XI.Cell,{children:(0,s.jT)(d.name)}),(0,e.jsx)(r.XI.Cell,{children:d.rank}),(0,e.jsx)(r.XI.Cell,{children:d.active})]},d.name+d.rank)})]})},c.cat)})})}},93643:function(P,y,t){"use strict";t.r(y),t.d(y,{CrewMonitor:function(){return h},CrewMonitorContent:function(){return v}});var e=t(88095),s=t(11358),n=t(28763),r=t(44583),i=t(4413),a=t(92514),g=t(68040),x=function(m){return m.dead?"Deceased":parseInt(m.stat,10)===1?"Unconscious":"Living"},f=function(m){return m.dead?"red":parseInt(m.stat,10)===1?"orange":"green"},h=function(){var m=function(_){C(_)},c=function(_){O(_)},d=(0,r.useState)(0),p=d[0],C=d[1],j=(0,r.useState)(1),b=j[0],O=j[1];return(0,e.jsx)(g.p8,{width:800,height:600,children:(0,e.jsx)(g.p8.Content,{children:(0,e.jsx)(v,{tabIndex:p,zoom:b,onTabIndex:m,onZoom:c})})})},v=function(m){var c=(0,i.Oc)(),d=c.act,p=c.data,C=c.config,j=(0,n.L)([(0,s.Ul)(function(O){return O.name}),(0,s.Ul)(function(O){return O==null?void 0:O.x}),(0,s.Ul)(function(O){return O==null?void 0:O.y}),(0,s.Ul)(function(O){return O==null?void 0:O.realZ})])(p.crewmembers||[]),b;return m.tabIndex===0?b=(0,e.jsxs)(a.XI,{children:[(0,e.jsxs)(a.XI.Row,{header:!0,children:[(0,e.jsx)(a.XI.Cell,{children:"Name"}),(0,e.jsx)(a.XI.Cell,{children:"Status"}),(0,e.jsx)(a.XI.Cell,{children:"Location"})]}),j.map(function(O){return(0,e.jsxs)(a.XI.Row,{children:[(0,e.jsxs)(a.XI.Cell,{children:[O.name," (",O.assignment,")"]}),(0,e.jsxs)(a.XI.Cell,{children:[(0,e.jsx)(a.az,{inline:!0,color:f(O),children:x(O)}),O.sensor_type>=2?(0,e.jsxs)(a.az,{inline:!0,children:["(",(0,e.jsx)(a.az,{inline:!0,color:"red",children:O.brute}),"|",(0,e.jsx)(a.az,{inline:!0,color:"orange",children:O.fire}),"|",(0,e.jsx)(a.az,{inline:!0,color:"green",children:O.tox}),"|",(0,e.jsx)(a.az,{inline:!0,color:"blue",children:O.oxy}),")"]}):null]}),(0,e.jsx)(a.XI.Cell,{children:O.sensor_type===3?p.isAI?(0,e.jsx)(a.$n,{fluid:!0,icon:"location-arrow",content:O.area+" ("+O.x+", "+O.y+")",onClick:function(){return d("track",{track:O.ref})}}):O.area+" ("+O.x+", "+O.y+", "+O.z+")":"Not Available"})]},O.ref)})]}):m.tabIndex===1?b=(0,e.jsx)(u,{zoom:m.zoom,onZoom:m.onZoom}):b="ERROR",(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(a.tU,{children:[(0,e.jsxs)(a.tU.Tab,{selected:m.tabIndex===0,onClick:function(){return m.onTabIndex(0)},children:[(0,e.jsx)(a.In,{name:"table"})," Data View"]},"DataView"),(0,e.jsxs)(a.tU.Tab,{selected:m.tabIndex===1,onClick:function(){return m.onTabIndex(1)},children:[(0,e.jsx)(a.In,{name:"map-marked-alt"})," Map View"]},"MapView")]}),(0,e.jsx)(a.az,{m:2,children:b})]})},u=function(m){var c=(0,i.Oc)(),d=c.act,p=c.config,C=c.data;return(0,e.jsx)(a.az,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.jsx)(a.tx,{zoomScale:C.zoomScale,onZoom:function(j){return m.onZoom(j)},children:C.crewmembers.filter(function(j){return j.sensor_type===3&&~~j.realZ===~~p.mapZLevel}).map(function(j){return(0,e.jsx)(a.tx.Marker,{x:j.x,y:j.y,zoom:m.zoom,icon:"circle",tooltip:j.name+" ("+j.assignment+")",color:f(j)},j.ref)})})})}},84097:function(P,y,t){"use strict";t.r(y),t.d(y,{Cryo:function(){return g}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=[{label:"Resp.",type:"oxyLoss"},{label:"Toxin",type:"toxLoss"},{label:"Brute",type:"bruteLoss"},{label:"Burn",type:"fireLoss"}],a=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],g=function(h){return(0,e.jsx)(r.p8,{width:520,height:470,resizeable:!0,children:(0,e.jsx)(r.p8.Content,{className:"Layout__content--flexColumn",children:(0,e.jsx)(x,{})})})},x=function(h){var v=(0,s.Oc)(),u=v.act,m=v.data,c=m.isOperating,d=m.hasOccupant,p=m.occupant,C=p===void 0?[]:p,j=m.cellTemperature,b=m.cellTemperatureStatus,O=m.isBeakerLoaded;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.wn,{title:"Occupant",flexGrow:"1",buttons:(0,e.jsx)(n.$n,{icon:"user-slash",onClick:function(){return u("ejectOccupant")},disabled:!d,children:"Eject"}),children:d?(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Occupant",children:C.name||"Unknown"}),(0,e.jsx)(n.Ki.Item,{label:"Health",children:(0,e.jsx)(n.z2,{min:C.health,max:C.maxHealth,value:C.health/C.maxHealth,color:C.health>0?"good":"average",children:(0,e.jsx)(n.zv,{value:Math.round(C.health)})})}),(0,e.jsx)(n.Ki.Item,{label:"Status",color:a[C.stat][0],children:a[C.stat][1]}),(0,e.jsxs)(n.Ki.Item,{label:"Temperature",children:[(0,e.jsx)(n.zv,{value:Math.round(C.bodyTemperature)})," K"]}),(0,e.jsx)(n.Ki.Divider,{}),i.map(function(I){return(0,e.jsx)(n.Ki.Item,{label:I.label,children:(0,e.jsx)(n.z2,{value:C[I.type]/100,ranges:{bad:[.01,1/0]},children:(0,e.jsx)(n.zv,{value:Math.round(C[I.type])})})},I.id)})]}):(0,e.jsx)(n.so,{height:"100%",textAlign:"center",children:(0,e.jsxs)(n.so.Item,{grow:"1",align:"center",color:"label",children:[(0,e.jsx)(n.In,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.jsx)("br",{}),"No occupant detected."]})})}),(0,e.jsx)(n.wn,{title:"Cell",buttons:(0,e.jsx)(n.$n,{icon:"eject",onClick:function(){return u("ejectBeaker")},disabled:!O,children:"Eject Beaker"}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Power",children:(0,e.jsx)(n.$n,{icon:"power-off",onClick:function(){return u(c?"switchOff":"switchOn")},selected:c,children:c?"On":"Off"})}),(0,e.jsxs)(n.Ki.Item,{label:"Temperature",color:b,children:[(0,e.jsx)(n.zv,{value:j})," K"]}),(0,e.jsx)(n.Ki.Item,{label:"Beaker",children:(0,e.jsx)(f,{})})]})})]})},f=function(h){var v=(0,s.Oc)(),u=v.act,m=v.data,c=m.isBeakerLoaded,d=m.beakerLabel,p=m.beakerVolume;return c?(0,e.jsxs)(e.Fragment,{children:[d||(0,e.jsx)(n.az,{color:"average",children:"No label"}),(0,e.jsx)(n.az,{color:!p&&"bad",children:p?(0,e.jsx)(n.zv,{value:p,format:function(C){return Math.round(C)+" units remaining"}}):"Beaker is empty"})]}):(0,e.jsx)(n.az,{color:"average",children:"No beaker loaded"})}},38210:function(P,y,t){"use strict";t.r(y),t.d(y,{CryoStorage:function(){return a},CryoStorageCrew:function(){return g},CryoStorageItems:function(){return x}});var e=t(88095),s=t(44583),n=t(4413),r=t(92514),i=t(68040),a=function(f){var h=(0,n.Oc)(),v=h.act,u=h.data,m=u.real_name,c=u.allow_items,d=(0,s.useState)(0),p=d[0],C=d[1];return(0,e.jsx)(i.p8,{width:400,height:600,children:(0,e.jsxs)(i.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(r.tU,{children:[(0,e.jsx)(r.tU.Tab,{selected:p===0,onClick:function(){return C(0)},children:"Crew"}),!!c&&(0,e.jsx)(r.tU.Tab,{selected:p===1,onClick:function(){return C(1)},children:"Items"})]}),(0,e.jsxs)(r.IC,{info:!0,children:["Welcome, ",m,"."]}),p===0&&(0,e.jsx)(g,{}),!!c&&p===1&&(0,e.jsx)(x,{})]})})},g=function(f){var h=(0,n.Oc)(),v=h.act,u=h.data,m=u.crew;return(0,e.jsx)(r.wn,{title:"Stored Crew",children:m.length&&m.map(function(c){return(0,e.jsx)(r.az,{color:"label",children:c},c)})||(0,e.jsx)(r.az,{color:"good",children:"No crew currently stored."})})},x=function(f){var h=(0,n.Oc)(),v=h.act,u=h.data,m=u.items;return(0,e.jsx)(r.wn,{title:"Stored Items",buttons:(0,e.jsx)(r.$n,{icon:"hand-rock",onClick:function(){return v("allitems")},children:"Claim All"}),children:m.length&&m.map(function(c){return(0,e.jsx)(r.$n,{icon:"hand-rock",onClick:function(){return v("item",{ref:c.ref})},children:c.name},c.ref)})||(0,e.jsx)(r.az,{color:"average",children:"No items stored."})})}},52102:function(P,y,t){"use strict";t.r(y),t.d(y,{CryoStorageItemsVr:function(){return x},CryoStorageVr:function(){return g}});var e=t(88095),s=t(44583),n=t(4413),r=t(92514),i=t(68040),a=t(38210),g=function(f){var h=(0,n.Oc)(),v=h.act,u=h.data,m=u.real_name,c=u.allow_items,d=(0,s.useState)(0),p=d[0],C=d[1];return(0,e.jsx)(i.p8,{width:400,height:600,children:(0,e.jsxs)(i.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(r.tU,{children:[(0,e.jsx)(r.tU.Tab,{selected:p===0,onClick:function(){return C(0)},children:"Crew"}),!!c&&(0,e.jsx)(r.tU.Tab,{selected:p===1,onClick:function(){return C(1)},children:"Items"})]}),(0,e.jsxs)(r.IC,{info:!0,children:["Welcome, ",m,"."]}),p===0&&(0,e.jsx)(a.CryoStorageCrew,{}),!!c&&p===1&&(0,e.jsx)(x,{})]})})},x=function(f){var h=(0,n.Oc)(),v=h.act,u=h.data,m=u.items;return(0,e.jsx)(r.wn,{title:"Stored Items",children:m.length&&m.map(function(c){return(0,e.jsx)(r.az,{color:"label",children:c},c)})||(0,e.jsx)(r.az,{color:"average",children:"No items stored."})})}},84909:function(P,y,t){"use strict";t.r(y),t.d(y,{DNAForensics:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,h=f.scan_progress,v=f.scanning,u=f.bloodsamp,m=f.bloodsamp_desc;return(0,e.jsx)(r.p8,{width:540,height:326,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(n.wn,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{selected:v,disabled:!u,icon:"power-off",onClick:function(){return x("scanItem")},children:v?"Halt Scan":"Begin Scan"}),(0,e.jsx)(n.$n,{disabled:!u,icon:"eject",onClick:function(){return x("ejectItem")},children:"Eject Bloodsample"})]}),children:(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Scan Progress",children:(0,e.jsx)(n.z2,{ranges:{good:[99,1/0],violet:[-1/0,99]},value:h,maxValue:100})})})}),(0,e.jsx)(n.wn,{title:"Blood Sample",children:u&&(0,e.jsxs)(n.az,{children:[u,(0,e.jsx)(n.az,{color:"label",children:m})]})||(0,e.jsx)(n.az,{color:"bad",children:"No blood sample inserted."})})]})})}},13732:function(P,y,t){"use strict";t.r(y),t.d(y,{DNAModifier:function(){return f}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=t(5425),a=[["good","Alive"],["average","Unconscious"],["bad","DEAD"]],g=[["ui","Modify U.I.","dna"],["se","Modify S.E.","dna"],["buffer","Transfer Buffers","syringe"],["rejuvenators","Rejuvenators","flask"]],x=[5,10,20,30,50],f=function(I){var _=(0,s.Oc)(),M=_.act,D=_.data,A=D.irradiating,R=D.dnaBlockSize,K=D.occupant,N=!K.isViableSubject||!K.uniqueIdentity||!K.structuralEnzymes,k;return A&&(k=(0,e.jsx)(b,{duration:A})),(0,e.jsxs)(r.p8,{width:660,height:870,children:[(0,e.jsx)(i.ComplexModal,{}),k,(0,e.jsxs)(r.p8.Content,{className:"Layout__content--flexColumn",children:[(0,e.jsx)(h,{isDNAInvalid:N}),(0,e.jsx)(v,{isDNAInvalid:N})]})]})},h=function(I){var _=(0,s.Oc)(),M=_.act,D=_.data,A=D.locked,R=D.hasOccupant,K=D.occupant;return(0,e.jsx)(n.wn,{title:"Occupant",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.az,{color:"label",inline:!0,mr:"0.5rem",children:"Door Lock:"}),(0,e.jsx)(n.$n,{disabled:!R,selected:A,icon:A?"toggle-on":"toggle-off",content:A?"Engaged":"Disengaged",onClick:function(){return M("toggleLock")}}),(0,e.jsx)(n.$n,{disabled:!R||A,icon:"user-slash",content:"Eject",onClick:function(){return M("ejectOccupant")}})]}),children:R?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.az,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Name",children:K.name}),(0,e.jsx)(n.Ki.Item,{label:"Health",children:(0,e.jsx)(n.z2,{min:K.minHealth,max:K.maxHealth,value:K.health/K.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.jsx)(n.Ki.Item,{label:"Status",color:a[K.stat][0],children:a[K.stat][1]}),(0,e.jsx)(n.Ki.Divider,{})]})}),I.isDNAInvalid?(0,e.jsxs)(n.az,{color:"bad",children:[(0,e.jsx)(n.In,{name:"exclamation-circle"}),"\xA0 The occupant's DNA structure is ruined beyond recognition, please insert a subject with an intact DNA structure."]}):(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Radiation",children:(0,e.jsx)(n.z2,{min:"0",max:"100",value:K.radiationLevel/100,color:"average"})}),(0,e.jsx)(n.Ki.Item,{label:"Unique Enzymes",children:D.occupant.uniqueEnzymes?D.occupant.uniqueEnzymes:(0,e.jsxs)(n.az,{color:"bad",children:[(0,e.jsx)(n.In,{name:"exclamation-circle"}),"\xA0 Unknown"]})})]})]}):(0,e.jsx)(n.az,{color:"label",children:"Cell unoccupied."})})},v=function(I){var _=(0,s.Oc)(),M=_.act,D=_.data,A=D.selectedMenuKey,R=D.hasOccupant,K=D.occupant;if(R){if(I.isDNAInvalid)return(0,e.jsx)(n.wn,{flexGrow:"1",children:(0,e.jsx)(n.so,{height:"100%",children:(0,e.jsxs)(n.so.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,e.jsx)(n.In,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.jsx)("br",{}),"No operation possible on this subject."]})})})}else return(0,e.jsx)(n.wn,{flexGrow:"1",children:(0,e.jsx)(n.so,{height:"100%",children:(0,e.jsxs)(n.so.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,e.jsx)(n.In,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.jsx)("br",{}),"No occupant in DNA modifier."]})})});var N;return A==="ui"?N=(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(u,{}),(0,e.jsx)(c,{})]}):A==="se"?N=(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(m,{}),(0,e.jsx)(c,{})]}):A==="buffer"?N=(0,e.jsx)(d,{}):A==="rejuvenators"&&(N=(0,e.jsx)(j,{})),(0,e.jsxs)(n.wn,{flexGrow:"1",children:[(0,e.jsx)(n.tU,{children:g.map(function(k,V){return(0,e.jsxs)(n.tU.Tab,{selected:A===k[0],onClick:function(){return M("selectMenuKey",{key:k[0]})},children:[(0,e.jsx)(n.In,{name:k[2]}),k[1]]},V)})}),N]})},u=function(I){var _=(0,s.Oc)(),M=_.act,D=_.data,A=D.selectedUIBlock,R=D.selectedUISubBlock,K=D.selectedUITarget,N=D.dnaBlockSize,k=D.occupant;return(0,e.jsxs)(n.wn,{title:"Modify Unique Identifier",level:"2",children:[(0,e.jsx)(O,{dnaString:k.uniqueIdentity,selectedBlock:A,selectedSubblock:R,blockSize:N,action:"selectUIBlock"}),(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Target",children:(0,e.jsx)(n.N6,{minValue:"1",maxValue:"15",stepPixelSize:"20",value:K,format:function(V){return V.toString(16).toUpperCase()},ml:"0",onChange:function(V,F){return M("changeUITarget",{value:F})}})})}),(0,e.jsx)(n.$n,{icon:"radiation",content:"Irradiate Block",mt:"0.5rem",onClick:function(){return M("pulseUIRadiation")}})]})},m=function(I){var _=(0,s.Oc)(),M=_.act,D=_.data,A=D.selectedSEBlock,R=D.selectedSESubBlock,K=D.dnaBlockSize,N=D.occupant;return(0,e.jsxs)(n.wn,{title:"Modify Structural Enzymes",level:"2",children:[(0,e.jsx)(O,{dnaString:N.structuralEnzymes,selectedBlock:A,selectedSubblock:R,blockSize:K,action:"selectSEBlock"}),(0,e.jsx)(n.$n,{icon:"radiation",content:"Irradiate Block",onClick:function(){return M("pulseSERadiation")}})]})},c=function(I){var _=(0,s.Oc)(),M=_.act,D=_.data,A=D.radiationIntensity,R=D.radiationDuration;return(0,e.jsxs)(n.wn,{title:"Radiation Emitter",level:"2",children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Intensity",children:(0,e.jsx)(n.N6,{minValue:"1",maxValue:"10",stepPixelSize:"20",value:A,popUpPosition:"right",ml:"0",onChange:function(K,N){return M("radiationIntensity",{value:N})}})}),(0,e.jsx)(n.Ki.Item,{label:"Duration",children:(0,e.jsx)(n.N6,{minValue:"1",maxValue:"20",stepPixelSize:"10",unit:"s",value:R,popUpPosition:"right",ml:"0",onChange:function(K,N){return M("radiationDuration",{value:N})}})})]}),(0,e.jsx)(n.$n,{icon:"radiation",content:"Pulse Radiation",tooltip:"Mutates a random block of either the occupant's UI or SE.",tooltipPosition:"top",mt:"0.5rem",onClick:function(){return M("pulseRadiation")}})]})},d=function(I){var _=(0,s.Oc)(),M=_.act,D=_.data,A=D.buffers,R=A.map(function(K,N){return(0,e.jsx)(p,{id:N+1,name:"Buffer "+(N+1),buffer:K},N)});return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.wn,{title:"Buffers",level:"2",children:R}),(0,e.jsx)(C,{})]})},p=function(I){var _=(0,s.Oc)(),M=_.act,D=_.data,A=I.id,R=I.name,K=I.buffer,N=D.isInjectorReady,k=R+(K.data?" - "+K.label:"");return(0,e.jsx)(n.az,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.jsxs)(n.wn,{title:k,level:"3",mx:"0",lineHeight:"18px",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n.Confirm,{disabled:!K.data,icon:"trash",content:"Clear",onClick:function(){return M("bufferOption",{option:"clear",id:A})}}),(0,e.jsx)(n.$n,{disabled:!K.data,icon:"pen",content:"Rename",onClick:function(){return M("bufferOption",{option:"changeLabel",id:A})}}),(0,e.jsx)(n.$n,{disabled:!K.data||!D.hasDisk,icon:"save",content:"Export",tooltip:"Exports this buffer to the currently loaded data disk.",tooltipPosition:"bottom-end",onClick:function(){return M("bufferOption",{option:"saveDisk",id:A})}})]}),children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Write",children:[(0,e.jsx)(n.$n,{icon:"arrow-circle-down",content:"Subject U.I",mb:"0",onClick:function(){return M("bufferOption",{option:"saveUI",id:A})}}),(0,e.jsx)(n.$n,{icon:"arrow-circle-down",content:"Subject U.I and U.E.",mb:"0",onClick:function(){return M("bufferOption",{option:"saveUIAndUE",id:A})}}),(0,e.jsx)(n.$n,{icon:"arrow-circle-down",content:"Subject S.E.",mb:"0",onClick:function(){return M("bufferOption",{option:"saveSE",id:A})}}),(0,e.jsx)(n.$n,{disabled:!D.hasDisk||!D.disk.data,icon:"arrow-circle-down",content:"From Disk",mb:"0",onClick:function(){return M("bufferOption",{option:"loadDisk",id:A})}})]}),!!K.data&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.Ki.Item,{label:"Subject",children:K.owner||(0,e.jsx)(n.az,{color:"average",children:"Unknown"})}),(0,e.jsxs)(n.Ki.Item,{label:"Data Type",children:[K.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!K.ue&&" and Unique Enzymes"]}),(0,e.jsxs)(n.Ki.Item,{label:"Transfer to",children:[(0,e.jsx)(n.$n,{disabled:!N,icon:N?"syringe":"spinner",iconSpin:!N,content:"Injector",mb:"0",onClick:function(){return M("bufferOption",{option:"createInjector",id:A})}}),(0,e.jsx)(n.$n,{disabled:!N,icon:N?"syringe":"spinner",iconSpin:!N,content:"Block Injector",mb:"0",onClick:function(){return M("bufferOption",{option:"createInjector",id:A,block:1})}}),(0,e.jsx)(n.$n,{icon:"user",content:"Subject",mb:"0",onClick:function(){return M("bufferOption",{option:"transfer",id:A})}})]})]})]}),!K.data&&(0,e.jsx)(n.az,{color:"label",mt:"0.5rem",children:"This buffer is empty."})]})})},C=function(I){var _=(0,s.Oc)(),M=_.act,D=_.data,A=D.hasDisk,R=D.disk;return(0,e.jsx)(n.wn,{title:"Data Disk",level:"2",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n.Confirm,{disabled:!A||!R.data,icon:"trash",content:"Wipe",onClick:function(){return M("wipeDisk")}}),(0,e.jsx)(n.$n,{disabled:!A,icon:"eject",content:"Eject",onClick:function(){return M("ejectDisk")}})]}),children:A?R.data?(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Label",children:R.label?R.label:"No label"}),(0,e.jsx)(n.Ki.Item,{label:"Subject",children:R.owner?R.owner:(0,e.jsx)(n.az,{color:"average",children:"Unknown"})}),(0,e.jsxs)(n.Ki.Item,{label:"Data Type",children:[R.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!R.ue&&" and Unique Enzymes"]})]}):(0,e.jsx)(n.az,{color:"label",children:"Disk is blank."}):(0,e.jsxs)(n.az,{color:"label",textAlign:"center",my:"1rem",children:[(0,e.jsx)(n.In,{name:"save-o",size:"4"}),(0,e.jsx)("br",{}),"No disk inserted."]})})},j=function(I){var _=(0,s.Oc)(),M=_.act,D=_.data,A=D.isBeakerLoaded,R=D.beakerVolume,K=D.beakerLabel;return(0,e.jsx)(n.wn,{title:"Rejuvenators and Beaker",level:"2",buttons:(0,e.jsx)(n.$n,{disabled:!A,icon:"eject",content:"Eject",onClick:function(){return M("ejectBeaker")}}),children:A?(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Inject",children:[x.map(function(N,k){return(0,e.jsx)(n.$n,{disabled:N>R,icon:"syringe",content:N,onClick:function(){return M("injectRejuvenators",{amount:N})}},k)}),(0,e.jsx)(n.$n,{disabled:R<=0,icon:"syringe",content:"All",onClick:function(){return M("injectRejuvenators",{amount:R})}})]}),(0,e.jsxs)(n.Ki.Item,{label:"Beaker",children:[(0,e.jsx)(n.az,{mb:"0.5rem",children:K||"No label"}),R?(0,e.jsxs)(n.az,{color:"good",children:[R," unit",R===1?"":"s"," remaining"]}):(0,e.jsx)(n.az,{color:"bad",children:"Empty"})]})]}):(0,e.jsxs)(n.az,{color:"label",textAlign:"center",my:"25%",children:[(0,e.jsx)(n.In,{name:"exclamation-triangle",size:"4"}),(0,e.jsx)("br",{}),"No beaker loaded."]})})},b=function(I){return(0,e.jsxs)(n.Rr,{textAlign:"center",children:[(0,e.jsx)(n.In,{name:"spinner",size:"5",spin:!0}),(0,e.jsx)("br",{}),(0,e.jsx)(n.az,{color:"average",children:(0,e.jsxs)("h1",{children:[(0,e.jsx)(n.In,{name:"radiation"}),"\xA0Irradiating occupant\xA0",(0,e.jsx)(n.In,{name:"radiation"})]})}),(0,e.jsx)(n.az,{color:"label",children:(0,e.jsxs)("h3",{children:["For ",I.duration," second",I.duration===1?"":"s"]})})]})},O=function(I){for(var _=function(Z){for(var X=function(oe){var ne=oe+1;Y.push((0,e.jsx)(n.$n,{selected:K===z&&N===ne,content:F[Z+oe],mb:"0",onClick:function(){return D(V,{block:z,subblock:ne})}}))},z=Z/k+1,Y=[],ee=0;ee1?"Dangerous!":null]},C.stage)})||(0,e.jsx)(n.az,{children:"No virus sample loaded."})}),(0,e.jsxs)(n.wn,{level:2,title:"Affected Species",color:"label",children:[!p||!p.length?"None":null,p.sort().join(", ")]}),(0,e.jsxs)(n.wn,{level:2,title:"Reverse Engineering",children:[(0,e.jsx)(n.az,{color:"bad",mb:1,children:(0,e.jsx)("i",{children:"CAUTION: Reverse engineering will destroy the viral sample."})}),m.map(function(C){return(0,e.jsx)(n.$n,{content:C.stage,icon:"exchange-alt",onClick:function(){return h("grab",{grab:C.reference})}},C.stage)}),(0,e.jsx)(n.$n,{content:"Species",icon:"exchange-alt",onClick:function(){return h("affected_species")}})]})]})]})},g=function(x){var f=(0,s.Oc)(),h=f.act,v=f.data,u=v.dish_inserted,m=v.buffer,c=v.species_buffer,d=v.effects,p=v.info,C=v.growth,j=v.affected_species,b=v.busy;return(0,e.jsxs)(n.wn,{title:"Storage",children:[(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Memory Buffer",children:m?(0,e.jsxs)(n.az,{children:[m.name," (",m.stage,")"]}):c?(0,e.jsx)(n.az,{children:c}):"Empty"})}),(0,e.jsx)(n.$n,{mt:1,icon:"save",content:"Save To Disk",disabled:!m&&!c,onClick:function(){return h("disk")}}),m?(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.$n,{icon:"pen",content:"Splice #1",disabled:m.stage>1,onClick:function(){return h("splice",{splice:1})}}),(0,e.jsx)(n.$n,{icon:"pen",content:"Splice #2",disabled:m.stage>2,onClick:function(){return h("splice",{splice:2})}}),(0,e.jsx)(n.$n,{icon:"pen",content:"Splice #3",disabled:m.stage>3,onClick:function(){return h("splice",{splice:3})}}),(0,e.jsx)(n.$n,{icon:"pen",content:"Splice #4",disabled:m.stage>4,onClick:function(){return h("splice",{splice:4})}})]}):c?(0,e.jsx)(n.az,{children:(0,e.jsx)(n.$n,{icon:"pen",content:"Splice Species",disabled:!c||p,onClick:function(){return h("splice",{splice:5})}})}):null]})}},44421:function(P,y,t){"use strict";t.r(y),t.d(y,{DishIncubator:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(24158),i=t(68040),a=function(g){var x=(0,s.Oc)(),f=x.act,h=x.data,v=h.on,u=h.system_in_use,m=h.food_supply,c=h.radiation,d=h.growth,p=h.toxins,C=h.chemicals_inserted,j=h.can_breed_virus,b=h.chemical_volume,O=h.max_chemical_volume,I=h.dish_inserted,_=h.blood_already_infected,M=h.virus,D=h.analysed,A=h.infection_rate;return(0,e.jsx)(i.p8,{width:400,height:600,children:(0,e.jsxs)(i.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(n.wn,{title:"Environmental Conditions",buttons:(0,e.jsx)(n.$n,{icon:"power-off",selected:v,content:v?"On":"Off",onClick:function(){return f("power")}}),children:[(0,e.jsxs)(n.so,{spacing:1,mb:1,children:[(0,e.jsx)(n.so.Item,{grow:1,children:(0,e.jsx)(n.$n,{fluid:!0,icon:"radiation",content:"Add Radiation",onClick:function(){return f("rad")}})}),(0,e.jsx)(n.so.Item,{grow:1,children:(0,e.jsx)(n.$n.Confirm,{fluid:!0,color:"red",icon:"trash",confirmIcon:"trash",content:"Flush System",disabled:!u,onClick:function(){return f("flush")}})})]}),(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Virus Food",children:(0,e.jsx)(n.z2,{minValue:0,maxValue:100,ranges:{good:[40,1/0],average:[20,40],bad:[-1/0,20]},value:m})}),(0,e.jsx)(n.Ki.Item,{label:"Radiation Level",children:(0,e.jsxs)(n.z2,{minValue:0,maxValue:100,color:c>=50?"bad":d>=25?"average":"good",value:c,children:[(0,r.qQ)(c*1e4)," \xB5Sv"]})}),(0,e.jsx)(n.Ki.Item,{label:"Toxicity",children:(0,e.jsx)(n.z2,{minValue:0,maxValue:100,ranges:{bad:[50,1/0],average:[25,50],good:[-1/0,25]},value:p})})]})]}),(0,e.jsx)(n.wn,{title:j?"Vial":"Chemicals",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"eject",content:"Eject "+(j?"Vial":"Chemicals"),disabled:!C,onClick:function(){return f("ejectchem")}}),(0,e.jsx)(n.$n,{icon:"virus",content:"Breed Virus",disabled:!j,onClick:function(){return f("virus")}})]}),children:C&&(0,e.jsx)(n.az,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Volume",children:(0,e.jsxs)(n.z2,{minValue:0,maxValue:O,value:b,children:[b,"/",O]})}),(0,e.jsxs)(n.Ki.Item,{label:"Breeding Environment",color:j?"good":"average",children:[I?j?"Suitable":"No hemolytic samples detected":"N/A",_?(0,e.jsx)(n.az,{color:"bad",children:"CAUTION: Viral infection detected in blood sample."}):null]})]})})||(0,e.jsx)(n.az,{color:"average",children:"No chemicals inserted."})}),(0,e.jsx)(n.wn,{title:"Virus Dish",buttons:(0,e.jsx)(n.$n,{icon:"eject",content:"Eject Dish",disabled:!I,onClick:function(){return f("ejectdish")}}),children:I?M?(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Growth Density",children:(0,e.jsx)(n.z2,{minValue:0,maxValue:100,ranges:{good:[50,1/0],average:[25,50],bad:[-1/0,25]},value:d})}),(0,e.jsx)(n.Ki.Item,{label:"Infection Rate",children:D?A:"Unknown."})]}):(0,e.jsx)(n.az,{color:"bad",children:"No virus detected."}):(0,e.jsx)(n.az,{color:"average",children:"No dish loaded."})})]})})}},26598:function(P,y,t){"use strict";t.r(y),t.d(y,{DisposalBin:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,h=f.mode,v=f.pressure,u=f.isAI,m=f.panel_open,c=f.flushing,d,p;return h===2?(d="good",p="Ready"):h<=0?(d="bad",p="N/A"):h===1?(d="average",p="Pressurizing"):(d="average",p="Idle"),(0,e.jsx)(r.p8,{width:300,height:250,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsxs)(n.wn,{children:[(0,e.jsx)(n.az,{bold:!0,m:1,children:"Status"}),(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"State",color:d,children:p}),(0,e.jsx)(n.Ki.Item,{label:"Pressure",children:(0,e.jsx)(n.z2,{ranges:{bad:[-1/0,0],average:[0,99],good:[99,1/0]},value:v,minValue:0,maxValue:100})})]}),(0,e.jsx)(n.az,{bold:!0,m:1,children:"Controls"}),(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Handle",children:[(0,e.jsx)(n.$n,{icon:"toggle-off",disabled:u||m,content:"Disengaged",selected:c?null:"selected",onClick:function(){return x("disengageHandle")}}),(0,e.jsx)(n.$n,{icon:"toggle-on",disabled:u||m,content:"Engaged",selected:c?"selected":null,onClick:function(){return x("engageHandle")}})]}),(0,e.jsxs)(n.Ki.Item,{label:"Power",children:[(0,e.jsx)(n.$n,{icon:"toggle-off",disabled:h===-1,content:"Off",selected:h?null:"selected",onClick:function(){return x("pumpOff")}}),(0,e.jsx)(n.$n,{icon:"toggle-on",disabled:h===-1,content:"On",selected:h?"selected":null,onClick:function(){return x("pumpOn")}})]}),(0,e.jsx)(n.Ki.Item,{label:"Eject",children:(0,e.jsx)(n.$n,{icon:"sign-out-alt",disabled:u,content:"Eject Contents",onClick:function(){return x("eject")}})})]})]})})})}},26763:function(P,y,t){"use strict";t.r(y),t.d(y,{DroneConsole:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,h=f.drones,v=f.areas,u=f.selected_area,m=f.fabricator,c=f.fabPower;return(0,e.jsx)(r.p8,{width:600,height:350,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{title:"Drone Fabricator",buttons:(0,e.jsx)(n.$n,{disabled:!m,selected:c,icon:"power-off",content:c?"Enabled":"Disabled",onClick:function(){return x("toggle_fab")}}),children:m?(0,e.jsx)(n.az,{color:"good",children:"Linked."}):(0,e.jsxs)(n.az,{color:"bad",children:["Fabricator not detected.",(0,e.jsx)(n.$n,{icon:"sync",content:"Search for Fabricator",onClick:function(){return x("search_fab")}})]})}),(0,e.jsxs)(n.wn,{title:"Request Drone",children:[(0,e.jsx)(n.ms,{options:v?v.sort():null,selected:u,width:"100%",onSelected:function(d){return x("set_dcall_area",{area:d})}}),(0,e.jsx)(n.$n,{icon:"share-square",content:"Send Ping",onClick:function(){return x("ping")}})]}),(0,e.jsx)(n.wn,{title:"Maintenance Units",children:h&&h.length?(0,e.jsx)(n.Ki,{children:h.map(function(d){return(0,e.jsx)(n.Ki.Item,{label:d.name,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"sync",content:"Resync",onClick:function(){return x("resync",{ref:d.ref})}}),(0,e.jsx)(n.$n.Confirm,{icon:"exclamation-triangle",color:"red",content:"Shutdown",onClick:function(){return x("shutdown",{ref:d.ref})}})]}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Location",children:d.loc}),(0,e.jsxs)(n.Ki.Item,{label:"Charge",children:[d.charge," / ",d.maxCharge]}),(0,e.jsx)(n.Ki.Item,{label:"Active",children:d.active?"Yes":"No"})]})},d.name)})}):(0,e.jsx)(n.az,{color:"bad",children:"No drones detected."})})]})})}},74680:function(P,y,t){"use strict";t.r(y),t.d(y,{EmbeddedController:function(){return x}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=t(47868),a=(0,i.h)("fuck"),g={},x=function(D){var A=(0,s.Oc)(),R=A.act,K=A.data,N=K.internalTemplateName,k=g[N];if(!k)throw Error("Unable to find Component for template name: "+N);return(0,e.jsx)(r.p8,{width:450,height:340,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(k,{})})})},f=function(D){var A=D.bars;return(0,e.jsx)(n.wn,{title:"Status",children:(0,e.jsx)(n.Ki,{children:A.map(function(R){return(0,e.jsx)(n.Ki.Item,{label:R.label,children:(0,e.jsx)(n.z2,{color:R.color(R.value),minValue:R.minValue,maxValue:R.maxValue,value:R.value,children:R.textValue})},R.label)})})})},h=function(D){var A=(0,s.Oc)(),R=A.data,K=A.act,N=!0;R.interior_status&&R.interior_status.state==="open"?N=!1:R.external_pressure&&R.chamber_pressure&&(N=!(Math.abs(R.external_pressure-R.chamber_pressure)>5));var k=!0;return R.exterior_status&&R.exterior_status.state==="open"?k=!1:R.internal_pressure&&R.chamber_pressure&&(k=!(Math.abs(R.internal_pressure-R.chamber_pressure)>5)),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.$n,{disabled:R.airlock_disabled,icon:"arrow-left",content:"Cycle to Exterior",onClick:function(){return K("cycle_ext")}}),(0,e.jsx)(n.$n,{disabled:R.airlock_disabled,icon:"arrow-right",content:"Cycle to Interior",onClick:function(){return K("cycle_int")}})]}),(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.$n.Confirm,{disabled:R.airlock_disabled,color:N?"":"bad",icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",content:"Force Exterior Door",onClick:function(){return K("force_ext")}}),(0,e.jsx)(n.$n.Confirm,{disabled:R.airlock_disabled,color:k?"":"bad",icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",content:"Force Interior Door",onClick:function(){return K("force_int")}})]})]})},v=function(D){var A=(0,s.Oc)(),R=A.data,K=A.act,N={docked:(0,e.jsx)(u,{}),undocking:(0,e.jsx)(n.az,{color:"average",children:"EJECTING-STAND CLEAR!"}),undocked:(0,e.jsx)(n.az,{color:"grey",children:"POD EJECTED"}),docking:(0,e.jsx)(n.az,{color:"good",children:"INITIALIZING..."})},k=(0,e.jsx)(n.az,{color:"bad",children:"ERROR"});return R.exterior_status.state==="open"?k=(0,e.jsx)(n.az,{color:"average",children:"OPEN"}):R.exterior_status.lock==="unlocked"?k=(0,e.jsx)(n.az,{color:"average",children:"UNSECURED"}):R.exterior_status.lock==="locked"&&(k=(0,e.jsx)(n.az,{color:"good",children:"SECURED"})),(0,e.jsx)(n.wn,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Escape Pod Status",children:N[R.docking_status]}),(0,e.jsx)(n.Ki.Item,{label:"Docking Hatch",children:k})]})})},u=function(D){var A=(0,s.Oc)(),R=A.data,K=A.act;return R.armed?(0,e.jsx)(n.az,{color:"average",children:"ARMED"}):(0,e.jsx)(n.az,{color:"good",children:"SYSTEMS OK"})},m=function(D){var A=(0,s.Oc)(),R=A.data,K=A.act;return(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.$n,{disabled:!R.override_enabled,icon:"exclamation-triangle",content:"Force Exterior Door",color:R.docking_status!=="docked"?"bad":"",onClick:function(){return K("force_door")}}),(0,e.jsx)(n.$n,{selected:R.override_enabled,color:R.docking_status!=="docked"?"bad":"average",icon:"exclamation-triangle",content:"Override",onClick:function(){return K("toggle_override")}})]})},c=function(D){var A=(0,s.Oc)(),R=A.data,K=A.act,N={docked:(0,e.jsx)(n.az,{color:"good",children:"DOCKED"}),docking:(0,e.jsx)(n.az,{color:"average",children:"DOCKING"}),undocking:(0,e.jsx)(n.az,{color:"average",children:"UNDOCKING"}),undocked:(0,e.jsx)(n.az,{color:"grey",children:"NOT IN USE"})},k=N[R.docking_status];return R.override_enabled&&(k=(0,e.jsxs)(n.az,{color:"bad",children:[R.docking_status.toUpperCase(),"-OVERRIDE ENABLED"]})),k},d=function(D){var A=(0,s.Oc)(),R=A.act,K=A.data,N=function(V){return V<80||V>120?"bad":V<95||V>110?"average":"good"},k=[{minValue:0,maxValue:202,value:K.external_pressure,label:"External Pressure",textValue:K.external_pressure+" kPa",color:N},{minValue:0,maxValue:202,value:K.chamber_pressure,label:"Chamber Pressure",textValue:K.chamber_pressure+" kPa",color:N},{minValue:0,maxValue:202,value:K.internal_pressure,label:"Internal Pressure",textValue:K.internal_pressure+" kPa",color:N}];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(f,{bars:k}),(0,e.jsxs)(n.wn,{title:"Controls",children:[(0,e.jsx)(h,{}),(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.$n,{icon:"sync",content:"Purge",onClick:function(){return R("purge")}}),(0,e.jsx)(n.$n,{icon:"lock-open",content:"Secure",onClick:function(){return R("secure")}})]}),(0,e.jsx)(n.az,{children:(0,e.jsx)(n.$n,{disabled:!K.processing,icon:"ban",color:"bad",content:"Abort",onClick:function(){return R("abort")}})})]})]})};g.AirlockConsoleAdvanced=d;var p=function(D){var A=(0,s.Oc)(),R=A.act,K=A.data,N=[{minValue:0,maxValue:202,value:K.chamber_pressure,label:"Chamber Pressure",textValue:K.chamber_pressure+" kPa",color:function(k){return k<80||k>120?"bad":k<95||k>110?"average":"good"}}];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(f,{bars:N}),(0,e.jsxs)(n.wn,{title:"Controls",children:[(0,e.jsx)(h,{}),(0,e.jsx)(n.az,{children:(0,e.jsx)(n.$n,{disabled:!K.processing,icon:"ban",color:"bad",content:"Abort",onClick:function(){return R("abort")}})})]})]})};g.AirlockConsoleSimple=p;var C=function(D){var A=(0,s.Oc)(),R=A.act,K=A.data,N=[{minValue:0,maxValue:202,value:K.chamber_pressure,label:"Chamber Pressure",textValue:K.chamber_pressure+" kPa",color:function(k){return k<80||k>120?"bad":k<95||k>110?"average":"good"}},{minValue:0,maxValue:100,value:K.chamber_phoron,label:"Chamber Phoron",textValue:K.chamber_phoron+" mol",color:function(k){return k>5?"bad":k>.5?"average":"good"}}];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(f,{bars:N}),(0,e.jsxs)(n.wn,{title:"Controls",children:[(0,e.jsx)(h,{}),(0,e.jsx)(n.az,{children:(0,e.jsx)(n.$n,{disabled:!K.processing,icon:"ban",color:"bad",content:"Abort",onClick:function(){return R("abort")}})})]})]})};g.AirlockConsolePhoron=C;var j=function(D){var A=(0,s.Oc)(),R=A.act,K=A.data,N=[{minValue:0,maxValue:202,value:K.chamber_pressure,label:"Chamber Pressure",textValue:K.chamber_pressure+" kPa",color:function(k){return k<80||k>120?"bad":k<95||k>110?"average":"good"}}];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.wn,{title:"Dock",buttons:K.airlock_disabled||K.override_enabled?(0,e.jsx)(n.$n,{icon:"exclamation-triangle",color:K.override_enabled?"red":"",content:"Override",onClick:function(){return R("toggle_override")}}):null,children:(0,e.jsx)(c,{})}),(0,e.jsx)(f,{bars:N}),(0,e.jsxs)(n.wn,{title:"Controls",children:[(0,e.jsx)(h,{}),(0,e.jsx)(n.az,{children:(0,e.jsx)(n.$n,{disabled:!K.processing,icon:"ban",color:"bad",content:"Abort",onClick:function(){return R("abort")}})})]})]})};g.AirlockConsoleDocking=j;var b=function(D){var A=(0,s.Oc)(),R=A.act,K=A.data,N=(0,e.jsx)(n.az,{color:"bad",children:"ERROR"});return K.exterior_status.state==="open"?N=(0,e.jsx)(n.az,{color:"average",children:"OPEN"}):K.exterior_status.lock==="unlocked"?N=(0,e.jsx)(n.az,{color:"average",children:"UNSECURED"}):K.exterior_status.lock==="locked"&&(N=(0,e.jsx)(n.az,{color:"good",children:"SECURED"})),(0,e.jsx)(n.wn,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"exclamation-triangle",disabled:!K.override_enabled,content:"Force exterior door",onClick:function(){return R("force_door")}}),(0,e.jsx)(n.$n,{icon:"exclamation-triangle",color:K.override_enabled?"red":"",content:"Override",onClick:function(){return R("toggle_override")}})]}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Dock Status",children:(0,e.jsx)(c,{})}),(0,e.jsx)(n.Ki.Item,{label:"Docking Hatch",children:N})]})})};g.DockingConsoleSimple=b;var O=function(D){var A=(0,s.Oc)().data;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.wn,{title:"Docking Status",children:(0,e.jsx)(c,{})}),(0,e.jsx)(n.wn,{title:"Airlocks",children:A.airlocks.length?(0,e.jsx)(n.Ki,{children:A.airlocks.map(function(R){return(0,e.jsx)(n.Ki.Item,{color:R.override_enabled?"bad":"good",label:R.name,children:R.override_enabled?"OVERRIDE ENABLED":"STATUS OK"},R.name)})}):(0,e.jsx)(n.so,{height:"100%",mt:"0.5em",children:(0,e.jsxs)(n.so.Item,{grow:"1",align:"center",textAlign:"center",color:"bad",children:[(0,e.jsx)(n.In,{name:"door-closed",mb:"0.5rem",size:"5"}),(0,e.jsx)("br",{}),"No airlocks found."]})})})]})};g.DockingConsoleMulti=O;var I=function(D){var A=(0,s.Oc)(),R=A.act,K=A.data,N=K.interior_status.state==="open"||K.exterior_status.state==="closed",k=K.exterior_status.state==="open"||K.interior_status.state==="closed";return(0,e.jsx)(n.wn,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:N?"arrow-left":"exclamation-triangle",content:N?"Cycle To Exterior":"Lock Exterior Door",onClick:function(){R(N?"cycle_ext_door":"force_ext")}}),(0,e.jsx)(n.$n,{icon:k?"arrow-right":"exclamation-triangle",content:k?"Cycle To Interior":"Lock Interior Door",onClick:function(){R(k?"cycle_int_door":"force_int")}})]}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Exterior Door Status",children:K.exterior_status.state==="closed"?"Locked":"Open"}),(0,e.jsx)(n.Ki.Item,{label:"Interior Door Status",children:K.interior_status.state==="closed"?"Locked":"Open"})]})})};g.DoorAccessConsole=I;var _=function(D){var A=(0,s.Oc)(),R=A.act,K=A.data;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(v,{}),(0,e.jsxs)(n.wn,{title:"Controls",children:[(0,e.jsx)(m,{}),(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.$n,{icon:"exclamation-triangle",disabled:K.armed,color:K.armed?"bad":"average",content:"ARM",onClick:function(){return R("manual_arm")}}),(0,e.jsx)(n.$n,{icon:"exclamation-triangle",disabled:!K.can_force,color:"bad",content:"MANUAL EJECT",onClick:function(){return R("force_launch")}})]})]})]})};g.EscapePodConsole=_;var M=function(D){var A=(0,s.Oc)().data;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(v,{}),(0,e.jsx)(n.wn,{title:"Controls",children:(0,e.jsx)(m,{})})]})};g.EscapePodBerthConsole=M},37624:function(P,y,t){"use strict";t.r(y),t.d(y,{DisplayDetails:function(){return x},EntityNarrate:function(){return a},EntitySelection:function(){return g},ModeSelector:function(){return f},NarrationInput:function(){return h}});var e=t(88095),s=t(44583),n=t(4413),r=t(92514),i=t(68040),a=function(v){var u=(0,n.Oc)(),m=u.act,c=u.data;return(0,e.jsx)(i.p8,{width:800,height:470,theme:"abstract",children:(0,e.jsx)(i.p8.Content,{scrollable:!0,children:(0,e.jsx)(r.wn,{children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{scrollable:!0,grow:2,fill:!0,children:(0,e.jsx)(r.wn,{scrollable:!0,children:(0,e.jsx)(g,{})})}),(0,e.jsx)(r.so.Item,{grow:.25,fill:!0,children:(0,e.jsx)(r.cG,{vertical:!0})}),(0,e.jsx)(r.so.Item,{grow:6.75,fill:!0,children:(0,e.jsx)(r.wn,{children:(0,e.jsxs)(r.so,{direction:"column",justify:"space-between",children:[(0,e.jsx)(r.so.Item,{Flex:!0,children:(0,e.jsx)(r.wn,{title:"Details",children:(0,e.jsx)(x,{})})}),(0,e.jsx)(r.so.Item,{Flex:!0,children:(0,e.jsx)(r.wn,{title:"Select Behaviour",children:(0,e.jsx)(f,{})})}),(0,e.jsx)(r.so.Item,{Flex:!0,children:(0,e.jsx)(h,{})})]})})})]})})})})},g=function(v){var u=(0,n.Oc)(),m=u.act,c=u.data,d=c.selection_mode,p=c.multi_id_selection,C=c.entity_names;return(0,e.jsx)(r.so,{direction:"column",grow:!0,children:(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.wn,{title:"Choose!",buttons:(0,e.jsx)(r.$n,{selected:d,fill:!0,content:"Multi-Selection",onClick:function(){return m("change_mode_multi")}}),children:(0,e.jsx)(r.tU,{vertical:!0,children:C.map(function(j){return(0,e.jsx)(r.tU.Tab,{selected:p.includes(j),onClick:function(){return m("select_entity",{id_selected:j})},children:(0,e.jsx)(r.az,{inline:!0,children:j})},j)})})})})})},x=function(v){var u=(0,n.Oc)(),m=u.act,c=u.data,d=c.selection_mode,p=c.number_mob_selected,C=c.selected_id,j=c.selected_name,b=c.selected_type;return d?(0,e.jsxs)(r.az,{children:[(0,e.jsx)("b",{children:"Number of entities selected:"})," ",p]}):(0,e.jsxs)(r.az,{children:[(0,e.jsx)("b",{children:"Selected ID:"})," ",C," ",(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Selected Name:"})," ",j," ",(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Selected Type:"})," ",b," ",(0,e.jsx)("br",{})]})},f=function(v){var u=(0,n.Oc)(),m=u.act,c=u.data,d=c.privacy_select,p=c.mode_select;return(0,e.jsxs)(r.so,{direction:"row",children:[(0,e.jsx)(r.so.Item,{grow:!0,children:(0,e.jsx)(r.$n,{onClick:function(){return m("change_mode_privacy")},selected:d,fluid:!0,tooltip:"This button changes whether your narration is loud (any who see/hear) or subtle (range of 1 tile) "+(d?"Click here to disable subtle mode":"Click here to enable subtle mode"),content:d?"Currently: Subtle":"Currently: Loud"})}),(0,e.jsx)(r.so.Item,{grow:!0,children:(0,e.jsx)(r.$n,{onClick:function(){return m("change_mode_narration")},selected:p,fluid:!0,tooltip:"This button sets your narration to talk audiably or emote visibly "+(p?"Click here to emote visibly.":"Click here to talk audiably."),content:p?"Currently: Emoting":"Currently: Talking"})})]})},h=function(v){var u=(0,n.Oc)(),m=u.act,c=u.data,d=(0,s.useState)(""),p=d[0],C=d[1];return(0,e.jsx)(r.wn,{title:"Narration Text",buttons:(0,e.jsx)(r.$n,{onClick:function(){return m("narrate",{message:p})},content:"Send Narration"}),children:(0,e.jsx)(r.so,{children:(0,e.jsx)(r.so.Item,{width:"85%",children:(0,e.jsx)(r.fs,{height:"18rem",onChange:function(j,b){return C(b)},value:p||""})})})})}},36907:function(P,y,t){"use strict";t.r(y),t.d(y,{ExonetNode:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,h=f.on,v=f.allowPDAs,u=f.allowCommunicators,m=f.allowNewscasters,c=f.logs;return(0,e.jsx)(r.p8,{width:400,height:400,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{title:"Status",buttons:(0,e.jsx)(n.$n,{icon:"power-off",selected:h,content:"Power "+(h?"On":"Off"),onClick:function(){return x("toggle_power")}}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Incoming PDA Messages",children:(0,e.jsx)(n.$n,{icon:"power-off",selected:v,content:v?"Open":"Closed",onClick:function(){return x("toggle_PDA_port")}})}),(0,e.jsx)(n.Ki.Item,{label:"Incoming Communicators",children:(0,e.jsx)(n.$n,{icon:"power-off",selected:u,content:u?"Open":"Closed",onClick:function(){return x("toggle_communicator_port")}})}),(0,e.jsx)(n.Ki.Item,{label:"Incoming Newscaster Content",children:(0,e.jsx)(n.$n,{icon:"power-off",selected:m,content:m?"Open":"Closed",onClick:function(){return x("toggle_newscaster_port")}})})]})}),(0,e.jsx)(n.wn,{title:"Logging",children:(0,e.jsxs)(n.so,{wrap:"wrap",children:[c.map(function(d,p){return(0,e.jsx)(n.so.Item,{m:"2px",basis:"49%",grow:p%2,children:d},p)}),!c||c.length===0?(0,e.jsx)(n.az,{color:"average",children:"No logs found."}):null]})})]})})}},47926:function(P,y,t){"use strict";t.r(y),t.d(y,{ExosuitFabricator:function(){return A},Materials:function(){return K}});var e=t(88095),s=t(11358),n=t(5229),r=t(84352),i=t(33854),a=t(44583),g=t(4413),x=t(92514),f=t(24158),h=t(68040);function v(X,z){(z==null||z>X.length)&&(z=X.length);for(var Y=0,ee=new Array(z);Y=X.length?{done:!0}:{done:!1,value:X[ee++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c={steel:"sheet-metal_3",glass:"sheet-glass_3",silver:"sheet-silver_3",graphite:"sheet-puck_3",plasteel:"sheet-plasteel_3",durasteel:"sheet-durasteel_3",verdantium:"sheet-wavy_3",morphium:"sheet-wavy_3",mhydrogen:"sheet-mythril_3",gold:"sheet-gold_3",diamond:"sheet-diamond",supermatter:"sheet-super_3",osmium:"sheet-silver_3",phoron:"sheet-phoron_3",uranium:"sheet-uranium_3",titanium:"sheet-titanium_3",lead:"sheet-adamantine_3",platinum:"sheet-adamantine_3",plastic:"sheet-plastic_3"},d=0,p=1,C=2,j,b=(j={},j[d]=!1,j[p]="average",j[C]="bad",j),O=function(X){var z={};return X.forEach(function(Y){z[Y.name]=Y.amount}),z},I=function(X,z,Y){return X>Y?{color:C,deficit:X-Y}:z>Y?{color:p,deficit:X}:X+z>Y?{color:p,deficit:X+z-Y}:{color:d,deficit:0}},_=function(X,z,Y){var ee={textColor:d};return Object.keys(Y.cost).forEach(function(oe){ee[oe]=I(Y.cost[oe],z[oe],X[oe]),ee[oe].color>ee.textColor&&(ee.textColor=ee[oe].color)}),ee},M=function(X,z){var Y={},ee={},oe={},ne={};return z.forEach(function(ue,ce){ne[ce]=d,Object.keys(ue.cost).forEach(function(me){Y[me]=Y[me]||0,oe[me]=oe[me]||0,ee[me]=I(ue.cost[me],Y[me],X[me]),ee[me].color!==d?ne[ce]1&&ne0});return ue.length===0?(0,e.jsxs)(x.az,{textAlign:"center",children:[(0,e.jsx)(x.In,{textAlign:"center",size:5,name:"inbox"}),(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"No Materials Loaded."})]}):(0,e.jsx)(x.so,{wrap:"wrap",children:ue.map(function(ce){return(0,e.jsxs)(x.so.Item,{width:"80px",children:[(0,e.jsx)(N,{name:ce.name,amount:ce.amount,formatsi:!0}),!oe&&(0,e.jsx)(x.az,{mt:1,style:{"text-align":"center"},children:(0,e.jsx)(R,{material:ce})})]},ce.name)||null})})},N=function(X){var z=X.name,Y=X.amount,ee=X.formatsi,oe=X.formatmoney,ne=X.color,ue=X.style,ce="0";return Y<1&&Y>0?ce=(0,n.Mg)(Y,2):ee?ce=(0,f.QL)(Y,0):oe?ce=(0,f.up)(Y):ce=Y,(0,e.jsxs)(x.so,{direction:"column",align:"center",children:[(0,e.jsx)(x.so.Item,{children:(0,e.jsx)(x.m_,{position:"bottom",content:(0,i.Sn)(z),children:(0,e.jsx)(x.az,{className:(0,r.Ly)(["sheetmaterials32x32",c[z]]),position:"relative",style:ue})})}),(0,e.jsx)(x.so.Item,{children:(0,e.jsx)(x.az,{textColor:ne,style:{"text-align":"center"},children:ce})})]})},k=function(X){var z=(0,g.Oc)().data,Y=z.partSets||[],ee=z.buildableParts||{},oe=(0,g.QY)("part_tab",Y.length?ee[0]:""),ne=oe[0],ue=oe[1];return(0,e.jsx)(x.tU,{vertical:!0,children:Y.map(function(ce){return!!ee[ce]&&(0,e.jsx)(x.tU.Tab,{selected:ce===ne,disabled:!ee[ce],onClick:function(){return ue(ce)},children:ce},ce)})})},V=function(X){var z=(0,g.Oc)().data,Y=function(Le){for(var Be=m(Le),dt;!(dt=Be()).done;){var xt=dt.value;if(oe[xt])return xt}return null},ee=z.partSets||[],oe=z.buildableParts||[],ne=X.queueMaterials,ue=X.materials,ce=(0,g.QY)("part_tab",Y(ee)),me=ce[0],xe=ce[1],ve=(0,g.QY)("search_text",""),be=ve[0],we=ve[1];if(!me||!oe[me]){var Je=Y(ee);if(Je)xe(Je);else return}var ze;return be?(ze=[],D(be,oe).forEach(function(Le){Le.format=_(ue,ne,Le),ze.push(Le)})):(ze={Parts:[]},oe[me].forEach(function(Le){if(Le.format=_(ue,ne,Le),!Le.subCategory){ze.Parts.push(Le);return}Le.subCategory in ze||(ze[Le.subCategory]=[]),ze[Le.subCategory].push(Le)})),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(x.wn,{children:(0,e.jsxs)(x.so,{children:[(0,e.jsx)(x.so.Item,{mr:1,children:(0,e.jsx)(x.In,{name:"search"})}),(0,e.jsx)(x.so.Item,{grow:1,children:(0,e.jsx)(x.pd,{fluid:!0,placeholder:"Search for...",value:be,onInput:function(Le,Be){return we(Be)}})})]})}),!!be&&(0,e.jsx)(F,{name:"Search Results",parts:ze,forceShow:!0,placeholder:"No matching results..."})||Object.keys(ze).map(function(Le){return(0,e.jsx)(F,{name:Le,parts:ze[Le]},Le)})]})},F=function(X){var z=(0,g.Oc)(),Y=z.act,ee=z.data,oe=ee.buildingPart,ne=X.parts,ue=X.name,ce=X.forceShow,me=X.placeholder,xe=(0,g.QY)("display_mats",!1),ve=xe[0];return(!!ne.length||ce)&&(0,e.jsxs)(x.wn,{title:ue,buttons:(0,e.jsx)(x.$n,{disabled:!ne.length,color:"good",content:"Queue All",icon:"plus-circle",onClick:function(){return Y("add_queue_set",{part_list:ne.map(function(be){return be.id})})}}),children:[!ne.length&&me,ne.map(function(be){return(0,e.jsxs)(a.Fragment,{children:[(0,e.jsxs)(x.so,{align:"center",children:[(0,e.jsx)(x.so.Item,{children:(0,e.jsx)(x.$n,{disabled:oe||be.format.textColor===C,color:"good",height:"20px",mr:1,icon:"play",onClick:function(){return Y("build_part",{id:be.id})}})}),(0,e.jsx)(x.so.Item,{children:(0,e.jsx)(x.$n,{color:"average",height:"20px",mr:1,icon:"plus-circle",onClick:function(){return Y("add_queue_part",{id:be.id})}})}),(0,e.jsx)(x.so.Item,{children:(0,e.jsx)(x.az,{inline:!0,textColor:b[be.format.textColor],children:be.name})}),(0,e.jsx)(x.so.Item,{grow:1}),(0,e.jsx)(x.so.Item,{children:(0,e.jsx)(x.$n,{icon:"question-circle",transparent:!0,height:"20px",tooltip:"Build Time: "+be.printTime+"s. "+(be.desc||""),tooltipPosition:"left"})})]}),ve&&(0,e.jsx)(x.so,{mb:2,children:Object.keys(be.cost).map(function(we){return(0,e.jsx)(x.so.Item,{width:"50px",color:b[be.format[we].color],children:(0,e.jsx)(N,{formatmoney:!0,style:{transform:"scale(0.75) translate(0%, 10%)"},name:we,amount:be.cost[we]})},we)})})]},be.name)})]})},J=function(X){var z=(0,g.Oc)(),Y=z.act,ee=z.data,oe=ee.isProcessingQueue,ne=ee.queue||[],ue=X.queueMaterials,ce=X.missingMaterials,me=X.textColors;return(0,e.jsxs)(x.so,{height:"100%",width:"100%",direction:"column",children:[(0,e.jsx)(x.so.Item,{height:0,grow:1,children:(0,e.jsx)(x.wn,{height:"100%",title:"Queue",overflowY:"auto",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(x.$n.Confirm,{disabled:!ne.length,color:"bad",icon:"minus-circle",content:"Clear Queue",onClick:function(){return Y("clear_queue")}}),!!oe&&(0,e.jsx)(x.$n,{disabled:!ne.length,content:"Stop",icon:"stop",onClick:function(){return Y("stop_queue")}})||(0,e.jsx)(x.$n,{disabled:!ne.length,content:"Build Queue",icon:"play",onClick:function(){return Y("build_queue")}})]}),children:(0,e.jsxs)(x.so,{direction:"column",height:"100%",children:[(0,e.jsx)(x.so.Item,{children:(0,e.jsx)(Z,{})}),(0,e.jsx)(x.so.Item,{children:(0,e.jsx)(Q,{textColors:me})})]})})}),!!ne.length&&(0,e.jsx)(x.so.Item,{mt:1,children:(0,e.jsx)(x.wn,{title:"Material Cost",children:(0,e.jsx)(H,{queueMaterials:ue,missingMaterials:ce})})})]})},H=function(X){var z=X.queueMaterials,Y=X.missingMaterials;return(0,e.jsx)(x.so,{wrap:"wrap",children:Object.keys(z).map(function(ee){return(0,e.jsxs)(x.so.Item,{width:"12%",children:[(0,e.jsx)(N,{formatmoney:!0,name:ee,amount:z[ee]}),!!Y[ee]&&(0,e.jsx)(x.az,{textColor:"bad",style:{"text-align":"center"},children:(0,f.up)(Y[ee])})]},ee)})})},Q=function(X){var z=(0,g.Oc)(),Y=z.act,ee=z.data,oe=X.textColors,ne=ee.queue||[];return ne.length?ne.map(function(ue,ce){return(0,e.jsx)(x.az,{children:(0,e.jsxs)(x.so,{mb:.5,direction:"column",justify:"center",wrap:"wrap",height:"20px",inline:!0,children:[(0,e.jsx)(x.so.Item,{basis:"content",children:(0,e.jsx)(x.$n,{height:"20px",mr:1,icon:"minus-circle",color:"bad",onClick:function(){return Y("del_queue_part",{index:ce+1})}})}),(0,e.jsx)(x.so.Item,{children:(0,e.jsx)(x.az,{inline:!0,textColor:b[oe[ce]],children:ue.name})})]})},ue.name)}):(0,e.jsx)(e.Fragment,{children:"No parts in queue."})},Z=function(X){var z=(0,g.Oc)().data,Y=z.buildingPart,ee=z.storedPart;if(ee){var oe=ee.name;return(0,e.jsx)(x.az,{children:(0,e.jsx)(x.z2,{minValue:0,maxValue:1,value:1,color:"average",children:(0,e.jsxs)(x.so,{children:[(0,e.jsx)(x.so.Item,{children:oe}),(0,e.jsx)(x.so.Item,{grow:1}),(0,e.jsx)(x.so.Item,{children:"Fabricator outlet obstructed..."})]})})})}if(Y){var ne=Y.name,ue=Y.duration,ce=Y.printTime,me=Math.ceil(ue/10);return(0,e.jsx)(x.az,{children:(0,e.jsx)(x.z2,{minValue:0,maxValue:ce,value:ue,children:(0,e.jsxs)(x.so,{children:[(0,e.jsx)(x.so.Item,{children:ne}),(0,e.jsx)(x.so.Item,{grow:1}),(0,e.jsx)(x.so.Item,{children:me>=0&&me+"s"||"Dispensing..."})]})})})}}},83151:function(P,y,t){"use strict";t.r(y),t.d(y,{Farmbot:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,h=f.on,v=f.locked,u=f.tank,m=f.tankVolume,c=f.tankMaxVolume,d=f.waters_trays,p=f.refills_water,C=f.uproots_weeds,j=f.replaces_nutriment,b=f.collects_produce,O=f.removes_dead;return(0,e.jsx)(r.p8,{width:450,height:540,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{title:"Automatic Hydroponic Assistance Unit v2.0",buttons:(0,e.jsx)(n.$n,{icon:"power-off",selected:h,onClick:function(){return x("power")},children:h?"On":"Off"}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Water Tank",children:u&&(0,e.jsxs)(n.z2,{value:m,maxValue:c,children:[m," / ",c]})||(0,e.jsx)(n.az,{color:"average",children:"No water tank detected."})}),(0,e.jsx)(n.Ki.Item,{label:"Behavior Controls",color:v?"good":"bad",children:v?"Locked":"Unlocked"})]})}),!v&&(0,e.jsxs)(n.wn,{title:"Behavior Controls",children:[(0,e.jsx)(n.wn,{level:2,title:"Watering Controls",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Water plants",children:(0,e.jsx)(n.$n,{icon:d?"toggle-on":"toggle-off",selected:d,onClick:function(){return x("water")},children:d?"Yes":"No"})}),(0,e.jsx)(n.Ki.Item,{label:"Refill watertank",children:(0,e.jsx)(n.$n,{icon:p?"toggle-on":"toggle-off",selected:p,onClick:function(){return x("refill")},children:p?"Yes":"No"})})]})}),(0,e.jsx)(n.wn,{level:2,title:"Weeding controls",children:(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Weed plants",children:(0,e.jsx)(n.$n,{icon:C?"toggle-on":"toggle-off",selected:C,onClick:function(){return x("weed")},children:C?"Yes":"No"})})})}),(0,e.jsx)(n.wn,{level:2,title:"Nutriment controls",children:(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Replace fertilizer",children:(0,e.jsx)(n.$n,{icon:j?"toggle-on":"toggle-off",selected:j,onClick:function(){return x("replacenutri")},children:j?"Yes":"No"})})})})]})||null]})})}},60381:function(P,y,t){"use strict";t.r(y),t.d(y,{Fax:function(){return g},FaxContent:function(){return x}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=t(71451),a=t(1887),g=function(v){var u=(0,s.Oc)().data,m=u.authenticated,c=u.copyItem,d=340;return c&&(d=358),m?(0,e.jsx)(r.p8,{width:600,height:d,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(f,{}),(0,e.jsx)(i.LoginInfo,{}),(0,e.jsx)(x,{})]})}):(0,e.jsx)(r.p8,{width:600,height:250,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(f,{}),(0,e.jsx)(a.LoginScreen,{machineType:"Fax"})]})})},x=function(v){var u=(0,s.Oc)(),m=u.act,c=u.data,d=c.bossName,p=c.copyItem,C=c.cooldown,j=c.destination,b=c.adminDepartments,O=new Set(b);return(0,e.jsxs)(n.wn,{children:[!!C&&(0,e.jsx)(n.IC,{info:!0,children:"Transmitter arrays realigning. Please stand by."}),(0,e.jsx)(n.Ki,{children:(0,e.jsxs)(n.Ki.Item,{label:"Network",children:[d," Quantum Entanglement Network"]})}),p&&(0,e.jsxs)(n.az,{mt:1,children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Currently Sending",children:[p," ",(0,e.jsx)(n.$n,{icon:"pen",onClick:function(){return m("rename")},tooltip:"Renames the paper. This changes its preview in staff chat when sending to centcom/job board/supply (admin departments). It is advisable to name your faxes something self-explanatory for quick response."})]}),(0,e.jsx)(n.Ki.Item,{label:"Sending To",children:(0,e.jsx)(n.$n,{icon:"map-marker-alt",content:j,onClick:function(){return m("dept")}})})]}),(0,e.jsx)(n.$n,{icon:"share-square",onClick:function(){return m("send")},content:"Send",fluid:!0})]})||(0,e.jsx)(n.az,{mt:1,children:"Please insert item to transmit."}),(0,e.jsx)(h,{})]})},f=function(v){var u=(0,s.Oc)(),m=u.act,c=u.data,d=c.copyItem;return d?(0,e.jsx)(n.az,{children:(0,e.jsx)(n.$n,{fluid:!0,icon:"eject",onClick:function(){return m("remove")},content:"Remove Item"})}):null},h=function(v){var u=(0,s.Oc)(),m=u.act,c=u.data,d=c.adminDepartments,p=c.destination,C=c.copyItem,j=new Set(d),b="1rem";return C&&(b="1.5rem"),!C||C&&j.has(p)?(0,e.jsxs)(n.az,{mt:"1.5rem",children:[(0,e.jsx)("b",{children:"Or submit an automated staff request."})," ",(0,e.jsx)("br",{})," ",(0,e.jsx)("br",{}),(0,e.jsxs)("i",{children:["The automated staff request form automatically populates the company job board ((sends to discord, but does not ping.)) without requiring intervention from central command clerks and officers. ",(0,e.jsx)("br",{}),"It also works without requiring a written request to be composed."]}),(0,e.jsx)("br",{}),(0,e.jsx)(n.az,{mt:"1.5rem",children:(0,e.jsx)(n.$n,{icon:"share-square",onClick:function(){return m("send_automated_staff_request")},content:"Send Automated Staff Request",fluid:!0})})]}):null}},90646:function(P,y,t){"use strict";t.r(y),t.d(y,{FileCabinet:function(){return a}});var e=t(88095),s=t(11358),n=t(4413),r=t(92514),i=t(68040),a=function(g){var x=(0,n.Oc)(),f=x.act,h=x.data,v=h.contents,u=(0,s.Ul)(function(m){return m.name})(v||[]);return(0,e.jsx)(i.p8,{width:350,height:300,children:(0,e.jsx)(i.p8.Content,{scrollable:!0,children:(0,e.jsx)(r.wn,{children:u.map(function(m){return(0,e.jsx)(r.$n,{fluid:!0,icon:"file",content:m.name,onClick:function(){return f("retrieve",{ref:m.ref})}},m.ref)})})})})}},67747:function(P,y,t){"use strict";t.r(y),t.d(y,{Floorbot:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,h=f.on,v=f.open,u=f.locked,m=f.vocal,c=f.amount,d=f.possible_bmode,p=f.improvefloors,C=f.eattiles,j=f.maketiles,b=f.bmode;return(0,e.jsx)(r.p8,{width:390,height:310,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{title:"Automatic Station Floor Repairer v2.0",buttons:(0,e.jsx)(n.$n,{icon:"power-off",selected:h,onClick:function(){return x("start")},children:h?"On":"Off"}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Tiles Left",children:(0,e.jsx)(n.zv,{value:c})}),(0,e.jsx)(n.Ki.Item,{label:"Maintenance Panel",color:v?"bad":"good",children:v?"Open":"Closed"}),(0,e.jsx)(n.Ki.Item,{label:"Behavior Controls",color:u?"good":"bad",children:u?"Locked":"Unlocked"})]})}),!u&&(0,e.jsx)(n.wn,{title:"Behavior Controls",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Speaker",children:(0,e.jsx)(n.$n,{icon:m?"toggle-on":"toggle-off",selected:m,onClick:function(){return x("vocal")},children:m?"On":"Off"})}),(0,e.jsx)(n.Ki.Item,{label:"Improves Floors",children:(0,e.jsx)(n.$n,{icon:p?"toggle-on":"toggle-off",selected:p,onClick:function(){return x("improve")},children:p?"On":"Off"})}),(0,e.jsx)(n.Ki.Item,{label:"Finds Tiles",children:(0,e.jsx)(n.$n,{icon:C?"toggle-on":"toggle-off",selected:C,onClick:function(){return x("tiles")},children:C?"On":"Off"})}),(0,e.jsx)(n.Ki.Item,{label:"Makes Metal Sheets into Tiles",children:(0,e.jsx)(n.$n,{icon:j?"toggle-on":"toggle-off",selected:j,onClick:function(){return x("make")},children:j?"On":"Off"})}),(0,e.jsx)(n.Ki.Item,{label:"Bridge Mode",children:(0,e.jsx)(n.ms,{over:!0,width:"100%",placeholder:"Disabled",selected:b,options:d,onSelected:function(O){return x("bridgemode",{dir:O})}})})]})})||null]})})}},79697:function(P,y,t){"use strict";t.r(y),t.d(y,{GasPump:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,h=f.on,v=f.pressure_set,u=f.last_flow_rate,m=f.last_power_draw,c=f.max_power_draw;return(0,e.jsx)(r.p8,{width:470,height:290,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(n.wn,{title:"Status",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Flow Rate",children:[(0,e.jsx)(n.zv,{value:u/10})," L/s"]}),(0,e.jsx)(n.Ki.Item,{label:"Load",children:(0,e.jsx)(n.z2,{value:m,minValue:0,maxValue:c,color:m=100?d="Running":!h&&v>0&&(d="DISCHARGING"),(0,e.jsx)(r.p8,{width:500,height:400,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(n.wn,{title:"Status",buttons:(0,e.jsx)(n.$n.Confirm,{icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",color:"red",content:"Toggle Breaker",confirmContent:h?"This will disable gravity!":"This will enable gravity!",onClick:function(){return x("gentoggle")}}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Breaker Setting",children:h?"Generator Enabled":"Generator Disabled"}),(0,e.jsxs)(n.Ki.Item,{label:"Charge Mode",children:["Generator ",d]}),(0,e.jsxs)(n.Ki.Item,{label:"Charge Status",children:[v,"%"]})]})})})})}},4171:function(P,y,t){"use strict";t.r(y),t.d(y,{GuestPass:function(){return a}});var e=t(88095),s=t(11358),n=t(4413),r=t(92514),i=t(68040),a=function(g){var x=(0,n.Oc)(),f=x.act,h=x.data,v=h.access,u=h.area,m=h.giver,c=h.giveName,d=h.reason,p=h.duration,C=h.mode,j=h.log,b=h.uid;return(0,e.jsx)(i.p8,{width:500,height:520,children:(0,e.jsx)(i.p8.Content,{scrollable:!0,children:C===1&&(0,e.jsxs)(r.wn,{title:"Activity Log",buttons:(0,e.jsx)(r.$n,{icon:"scroll",content:"Activity Log",selected:!0,onClick:function(){return f("mode",{mode:0})}}),children:[(0,e.jsx)(r.$n,{icon:"print",content:"Print",onClick:function(){return f("print")},fluid:!0,mb:1}),(0,e.jsx)(r.wn,{level:2,title:"Logs",children:j.length&&j.map(function(O){return(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:O}},O)})||(0,e.jsx)(r.az,{children:"No logs."})})]})||(0,e.jsxs)(r.wn,{title:"Guest pass terminal #"+b,buttons:(0,e.jsx)(r.$n,{icon:"scroll",content:"Activity Log",onClick:function(){return f("mode",{mode:1})}}),children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Issuing ID",children:(0,e.jsx)(r.$n,{content:m||"Insert ID",onClick:function(){return f("id")}})}),(0,e.jsx)(r.Ki.Item,{label:"Issued To",children:(0,e.jsx)(r.$n,{content:c,onClick:function(){return f("giv_name")}})}),(0,e.jsx)(r.Ki.Item,{label:"Reason",children:(0,e.jsx)(r.$n,{content:d,onClick:function(){return f("reason")}})}),(0,e.jsx)(r.Ki.Item,{label:"Duration (minutes)",children:(0,e.jsx)(r.$n,{content:p,onClick:function(){return f("duration")}})})]}),(0,e.jsx)(r.$n.Confirm,{icon:"check",fluid:!0,content:"Issue Pass",onClick:function(){return f("issue")}}),(0,e.jsx)(r.wn,{title:"Access",level:2,children:(0,s.Ul)(function(O){return O.area_name})(u).map(function(O){return(0,e.jsx)(r.$n.Checkbox,{checked:O.on,content:O.area_name,onClick:function(){return f("access",{access:O.area})}},O.area)})})]})})})}},92753:function(P,y,t){"use strict";t.r(y),t.d(y,{GyrotronControl:function(){return i},GyrotronControlContent:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(){return(0,e.jsx)(r.p8,{width:627,height:700,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(a,{})})})},a=function(g){var x=(0,s.Oc)(),f=x.act,h=x.data,v=h.gyros;return(0,e.jsx)(n.wn,{title:"Gyrotrons",buttons:(0,e.jsx)(n.$n,{icon:"pencil-alt",content:"Set Tag",onClick:function(){return f("set_tag")}}),children:(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{children:"Name"}),(0,e.jsx)(n.XI.Cell,{children:"Position"}),(0,e.jsx)(n.XI.Cell,{children:"Status"}),(0,e.jsx)(n.XI.Cell,{children:"Fire Delay"}),(0,e.jsx)(n.XI.Cell,{children:"Strength"})]}),v.map(function(u){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{children:u.name}),(0,e.jsxs)(n.XI.Cell,{children:[u.x,", ",u.y,", ",u.z]}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{icon:"power-off",content:u.active?"Online":"Offline",selected:u.active,disabled:!u.deployed,onClick:function(){return f("toggle_active",{gyro:u.ref})}})}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.N6,{forcedInputWidth:"60px",size:1.25,color:!!u.active&&"yellow",value:u.fire_delay,unit:"decisecond(s)",minValue:1,maxValue:60,stepPixelSize:1,onDrag:function(m,c){return f("set_rate",{gyro:u.ref,rate:c})}})}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.N6,{forcedInputWidth:"60px",size:1.25,color:!!u.active&&"yellow",value:u.strength,unit:"penta-dakw",minValue:1,maxValue:50,stepPixelSize:1,onDrag:function(m,c){return f("set_str",{gyro:u.ref,str:c})}})})]},u.name)})]})})}},75825:function(P,y,t){"use strict";t.r(y),t.d(y,{Holodeck:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,h=f.supportedPrograms,v=f.restrictedPrograms,u=f.currentProgram,m=f.isSilicon,c=f.safetyDisabled,d=f.emagged,p=f.gravity,C=h;return c&&(C=C.concat(v)),(0,e.jsx)(r.p8,{width:400,height:610,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{title:"Programs",children:C.map(function(j){return(0,e.jsx)(n.$n,{color:v.indexOf(j)!==-1?"bad":null,icon:"eye",content:j,selected:u===j,fluid:!0,onClick:function(){return x("program",{program:j})}},j)})}),!!m&&(0,e.jsx)(n.wn,{title:"Override",children:(0,e.jsxs)(n.$n,{icon:"exclamation-triangle",fluid:!0,disabled:d,color:c?"good":"bad",onClick:function(){return x("AIoverride")},children:[!!d&&"Error, unable to control. ",c?"Enable Safeties":"Disable Safeties"]})}),(0,e.jsx)(n.wn,{title:"Controls",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Safeties",children:c?(0,e.jsx)(n.az,{color:"bad",children:"DISABLED"}):(0,e.jsx)(n.az,{color:"good",children:"ENABLED"})}),(0,e.jsx)(n.Ki.Item,{label:"Gravity",children:(0,e.jsx)(n.$n,{icon:"user-astronaut",selected:p,onClick:function(){return x("gravity")},children:p?"Enabled":"Disabled"})})]})})]})})}},79258:function(P,y,t){"use strict";t.r(y),t.d(y,{ICAssembly:function(){return g}});var e=t(88095),s=t(5229),n=t(4413),r=t(92514),i=t(24158),a=t(68040),g=function(f){var h=(0,n.Oc)(),v=h.act,u=h.data,m=u.total_parts,c=u.max_components,d=u.total_complexity,p=u.max_complexity,C=u.battery_charge,j=u.battery_max,b=u.net_power,O=u.unremovable_circuits,I=u.removable_circuits;return(0,e.jsx)(a.p8,{width:600,height:380,children:(0,e.jsxs)(a.p8.Content,{scrollable:!0,children:[(0,e.jsx)(r.wn,{title:"Status",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Space in Assembly",children:(0,e.jsxs)(r.z2,{ranges:{good:[0,.25],average:[.5,.75],bad:[.75,1]},value:m/c,maxValue:1,children:[m," / ",c," (",(0,s.LI)(m/c*100,1),"%)"]})}),(0,e.jsx)(r.Ki.Item,{label:"Complexity",children:(0,e.jsxs)(r.z2,{ranges:{good:[0,.25],average:[.5,.75],bad:[.75,1]},value:d/p,maxValue:1,children:[d," / ",p," (",(0,s.LI)(d/p*100,1),"%)"]})}),(0,e.jsx)(r.Ki.Item,{label:"Cell Charge",children:C&&(0,e.jsxs)(r.z2,{ranges:{bad:[0,.25],average:[.5,.75],good:[.75,1]},value:C/j,maxValue:1,children:[C," / ",j," (",(0,s.LI)(C/j*100,1),"%)"]})||(0,e.jsx)(r.az,{color:"bad",children:"No cell detected."})}),(0,e.jsx)(r.Ki.Item,{label:"Net Energy",children:b===0&&"0 W/s"||(0,e.jsx)(r.zv,{value:b,format:function(_){return"-"+(0,i.d5)(Math.abs(_))+"/s"}})})]})}),O.length&&(0,e.jsx)(x,{title:"Built-in Components",circuits:O})||null,I.length&&(0,e.jsx)(x,{title:"Removable Components",circuits:I})||null]})})},x=function(f){var h=(0,n.Oc)().act,v=f.title,u=f.circuits;return(0,e.jsx)(r.wn,{title:v,children:(0,e.jsx)(r.Ki,{children:u.map(function(m){return(0,e.jsxs)(r.Ki.Item,{label:m.name,children:[(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return h("open_circuit",{ref:m.ref})},children:"View"}),(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return h("rename_circuit",{ref:m.ref})},children:"Rename"}),(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return h("scan_circuit",{ref:m.ref})},children:"Debugger Scan"}),(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return h("remove_circuit",{ref:m.ref})},children:"Remove"}),(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return h("bottom_circuit",{ref:m.ref})},children:"Move to Bottom"})]},m.ref)})})})}},36585:function(P,y,t){"use strict";t.r(y),t.d(y,{ICCircuit:function(){return g}});var e=t(88095),s=t(33854),n=t(4413),r=t(92514),i=t(24158),a=t(68040),g=function(h){var v=(0,n.Oc)(),u=v.act,m=v.data,c=m.name,d=m.desc,p=m.displayed_name,C=m.removable,j=m.complexity,b=m.power_draw_idle,O=m.power_draw_per_use,I=m.extended_desc,_=m.inputs,M=m.outputs,D=m.activators;return(0,e.jsx)(a.p8,{width:600,height:400,resizable:!0,title:p,children:(0,e.jsxs)(a.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(r.wn,{title:"Stats",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{onClick:function(){return u("rename")},children:"Rename"}),(0,e.jsx)(r.$n,{onClick:function(){return u("scan")},children:"Scan with Device"}),(0,e.jsx)(r.$n,{onClick:function(){return u("remove")},children:"Remove"})]}),children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Complexity",children:j}),b&&(0,e.jsx)(r.Ki.Item,{label:"Power Draw (Idle)",children:(0,i.d5)(b)})||null,O&&(0,e.jsx)(r.Ki.Item,{label:"Power Draw (Active)",children:(0,i.d5)(O)})||null]}),I]}),(0,e.jsxs)(r.wn,{title:"Circuit",children:[(0,e.jsxs)(r.so,{textAlign:"center",spacing:1,children:[_.length&&(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.wn,{title:"Inputs",children:(0,e.jsx)(x,{list:_})})})||null,(0,e.jsx)(r.so.Item,{basis:_.length&&M.length?"33%":_.length||M.length?"45%":"100%",children:(0,e.jsx)(r.wn,{title:p,mb:1,children:(0,e.jsx)(r.az,{children:d})})}),M.length&&(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.wn,{title:"Outputs",children:(0,e.jsx)(x,{list:M})})})||null]}),(0,e.jsx)(r.wn,{title:"Triggers",children:D.map(function(A){return(0,e.jsxs)(r.Ki.Item,{label:A.name,children:[(0,e.jsx)(r.$n,{onClick:function(){return u("pin_name",{pin:A.ref})},children:A.pulse_out?"":""}),(0,e.jsx)(f,{pin:A})]},A.name)})})]})]})})},x=function(h){var v=(0,n.Oc)().act,u=h.list;return u.map(function(m){return(0,e.jsxs)(r.az,{children:[(0,e.jsxs)(r.$n,{onClick:function(){return v("pin_name",{pin:m.ref})},children:[(0,s.jT)(m.type),": ",m.name]}),(0,e.jsx)(r.$n,{onClick:function(){return v("pin_data",{pin:m.ref})},children:m.data}),(0,e.jsx)(f,{pin:m})]},m.ref)})},f=function(h){var v=(0,n.Oc)().act,u=h.pin;return u.linked.map(function(m){return(0,e.jsxs)(r.az,{inline:!0,children:[(0,e.jsx)(r.$n,{onClick:function(){return v("pin_unwire",{pin:u.ref,link:m.ref})},children:m.name}),"@\xA0",(0,e.jsx)(r.$n,{onClick:function(){return v("examine",{ref:m.holder_ref})},children:m.holder_name})]},m.ref)})}},43040:function(P,y,t){"use strict";t.r(y),t.d(y,{ICDetailer:function(){return a}});var e=t(88095),s=t(33854),n=t(4413),r=t(92514),i=t(68040),a=function(g){var x=(0,n.Oc)(),f=x.act,h=x.data,v=h.detail_color,u=h.color_list;return(0,e.jsx)(i.p8,{width:420,height:254,children:(0,e.jsx)(i.p8.Content,{children:(0,e.jsx)(r.wn,{children:Object.keys(u).map(function(m,c){return(0,e.jsx)(r.$n,{ml:0,mr:0,mb:-.4,mt:0,tooltip:(0,s.Sn)(m),tooltipPosition:c%6===5?"left":"right",height:"64px",width:"64px",onClick:function(){return f("change_color",{color:m})},style:u[m]===v?{border:"4px solid black","border-radius":0}:{"border-radius":0},backgroundColor:u[m]},m)})})})})}},93204:function(P,y,t){"use strict";t.r(y),t.d(y,{ICPrinter:function(){return a}});var e=t(88095),s=t(11358),n=t(4413),r=t(92514),i=t(68040),a=function(f){var h=(0,n.Oc)(),v=h.act,u=h.data,m=u.metal,c=u.max_metal,d=u.metal_per_sheet,p=u.debug,C=u.upgraded,j=u.can_clone,b=u.assembly_to_clone,O=u.categories;return(0,e.jsx)(i.p8,{width:600,height:630,children:(0,e.jsxs)(i.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(r.wn,{title:"Status",children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Metal",children:(0,e.jsxs)(r.z2,{value:m,maxValue:c,children:[m/d," / ",c/d," sheets"]})}),(0,e.jsx)(r.Ki.Item,{label:"Circuits Available",children:C?"Advanced":"Regular"}),(0,e.jsx)(r.Ki.Item,{label:"Assembly Cloning",children:j?"Available":"Unavailable"})]}),(0,e.jsx)(r.az,{mt:1,children:"Note: A red component name means that the printer must be upgraded to create that component."})]}),(0,e.jsx)(x,{})]})})},g=function(f,h){return!(!f.can_build||f.cost>h.metal)},x=function(f){var h=(0,n.Oc)(),v=h.act,u=h.data,m=u.categories,c=u.debug,d=(0,n.QY)("categoryTarget",null),p=d[0],C=d[1],j=(0,s.pb)(function(b){return b.name===p})(m)[0];return(0,e.jsx)(r.wn,{title:"Circuits",children:(0,e.jsxs)(r.BJ,{fill:!0,children:[(0,e.jsx)(r.BJ.Item,{mr:2,children:(0,e.jsx)(r.tU,{vertical:!0,children:(0,s.Ul)(function(b){return b.name})(m).map(function(b){return(0,e.jsx)(r.tU.Tab,{selected:p===b.name,onClick:function(){return C(b.name)},children:b.name},b.name)})})}),(0,e.jsx)(r.BJ.Item,{children:j&&(0,e.jsx)(r.wn,{children:(0,e.jsx)(r.Ki,{children:(0,s.Ul)(function(b){return b.name})(j.items).map(function(b){return(0,e.jsx)(r.Ki.Item,{label:b.name,labelColor:b.can_build?"good":"bad",buttons:(0,e.jsx)(r.$n,{disabled:!g(b,u),icon:"print",onClick:function(){return v("build",{build:b.path})},children:"Print"}),children:b.desc},b.name)})})})||"No category selected."})]})})}},7627:function(P,y,t){"use strict";t.r(y),t.d(y,{IDCard:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=t(89863),a=function(g){var x=(0,s.Oc)().data,f=x.registered_name,h=x.sex,v=x.species,u=x.age,m=x.assignment,c=x.fingerprint_hash,d=x.blood_type,p=x.dna_hash,C=x.photo_front,j=[{name:"Sex",val:h},{name:"Species",val:v},{name:"Age",val:u},{name:"Blood Type",val:d},{name:"Fingerprint",val:c},{name:"DNA Hash",val:p}];return(0,e.jsx)(r.p8,{width:470,height:250,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsxs)(n.wn,{children:[(0,e.jsxs)(n.so,{children:[(0,e.jsx)(n.so.Item,{basis:"25%",textAlign:"left",children:(0,e.jsx)(n.az,{inline:!0,style:{width:"101px",height:"120px",overflow:"hidden",outline:"2px solid #4972a1"},children:C&&(0,e.jsx)("img",{src:C.substr(1,C.length-1),style:{width:"300px","margin-left":"-94px","-ms-interpolation-mode":"nearest-neighbor"}})||(0,e.jsx)(n.In,{name:"user",size:8,ml:1.5,mt:2.5})})}),(0,e.jsx)(n.so.Item,{basis:0,grow:1,children:(0,e.jsx)(n.Ki,{children:j.map(function(b){return(0,e.jsx)(n.Ki.Item,{label:b.name,children:b.val},b.name)})})})]}),(0,e.jsxs)(n.so,{className:"IDCard__NamePlate",align:"center",justify:"space-around",children:[(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(n.az,{textAlign:"center",children:f})}),(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(n.az,{textAlign:"center",children:(0,e.jsx)(i.RankIcon,{rank:m})})}),(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(n.az,{textAlign:"center",children:m})})]})]})})})}},17575:function(P,y,t){"use strict";t.r(y),t.d(y,{IdentificationComputer:function(){return f},IdentificationComputerAccessModification:function(){return u},IdentificationComputerContent:function(){return h},IdentificationComputerPrinting:function(){return v},IdentificationComputerRegions:function(){return m}});var e=t(88095),s=t(11358),n=t(33854),r=t(44583),i=t(4413),a=t(92514),g=t(68040),x=t(41608),f=function(){return(0,e.jsx)(g.p8,{width:600,height:700,children:(0,e.jsx)(g.p8.Content,{children:(0,e.jsx)(h,{})})})},h=function(c){var d=(0,i.Oc)(),p=d.act,C=d.data,j=c.ntos,b=C.mode,O=C.has_modify,I=C.printing,_=(0,e.jsx)(u,{ntos:j});return j&&!C.have_id_slot?_=(0,e.jsx)(x.CrewManifestContent,{}):I?_=(0,e.jsx)(v,{}):b===1&&(_=(0,e.jsx)(x.CrewManifestContent,{})),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(a.tU,{children:[(!j||!!C.have_id_slot)&&(0,e.jsx)(a.tU.Tab,{icon:"home",selected:b===0,onClick:function(){return p("mode",{mode_target:0})},children:"Access Modification"}),(0,e.jsx)(a.tU.Tab,{icon:"home",selected:b===1,onClick:function(){return p("mode",{mode_target:1})},children:"Crew Manifest"}),!j||!!C.have_printer&&(0,e.jsx)(a.tU.Tab,{float:"right",icon:"print",onClick:function(){return p("print")},disabled:!b&&!O,color:"",children:"Print"})]}),_]})},v=function(c){return(0,e.jsx)(a.wn,{title:"Printing",children:"Please wait..."})},u=function(c){var d=(0,i.Oc)(),p=d.act,C=d.data,j=c.ntos,b=C.station_name,O=C.target_name,I=C.target_owner,_=C.scan_name,M=C.authenticated,D=C.has_modify,A=C.account_number,R=C.centcom_access,K=C.all_centcom_access,N=C.regions,k=C.id_rank,V=C.departments;return(0,e.jsxs)(a.wn,{title:"Access Modification",children:[!M&&(0,e.jsx)(a.az,{italic:!0,mb:1,children:"Please insert the IDs into the terminal to proceed."}),(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"Target Identitity",children:(0,e.jsx)(a.$n,{icon:"eject",fluid:!0,content:O,onClick:function(){return p("modify")}})}),!j&&(0,e.jsx)(a.Ki.Item,{label:"Authorized Identitity",children:(0,e.jsx)(a.$n,{icon:"eject",fluid:!0,content:_,onClick:function(){return p("scan")}})})]}),!!M&&!!D&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.wn,{title:"Details",level:2,children:(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"Registered Name",children:(0,e.jsx)(a.pd,{value:I,fluid:!0,onInput:function(F,J){return p("reg",{reg:J})}})}),(0,e.jsx)(a.Ki.Item,{label:"Account Number",children:(0,e.jsx)(a.pd,{value:A,fluid:!0,onInput:function(F,J){return p("account",{account:J})}})}),(0,e.jsx)(a.Ki.Item,{label:"Dismissals",children:(0,e.jsx)(a.$n.Confirm,{color:"bad",icon:"exclamation-triangle",confirmIcon:"fire",fluid:!0,content:"Dismiss "+I,confirmContent:"You are dismissing "+I+", confirm?",onClick:function(){return p("terminate")}})})]})}),(0,e.jsx)(a.wn,{title:"Assignment",level:2,children:(0,e.jsxs)(a.XI,{children:[V.map(function(F){return(0,e.jsxs)(r.Fragment,{children:[(0,e.jsxs)(a.XI.Row,{children:[(0,e.jsx)(a.XI.Cell,{header:!0,verticalAlign:"middle",children:F.department_name}),(0,e.jsx)(a.XI.Cell,{children:F.jobs.map(function(J){return(0,e.jsx)(a.$n,{selected:J.job===k,onClick:function(){return p("assign",{assign_target:J.job})},children:(0,n.jT)(J.display_name)},J.job)})})]}),(0,e.jsx)(a.az,{mt:-1,children:"\xA0"})," "]},F.department_name)}),(0,e.jsxs)(a.XI.Row,{children:[(0,e.jsx)(a.XI.Cell,{header:!0,verticalAlign:"middle",children:"Special"}),(0,e.jsx)(a.XI.Cell,{children:(0,e.jsx)(a.$n,{onClick:function(){return p("assign",{assign_target:"Custom"})},children:"Custom"})})]})]})}),!!R&&(0,e.jsx)(a.wn,{title:"Central Command",level:2,children:K.map(function(F){return(0,e.jsx)(a.az,{children:(0,e.jsx)(a.$n,{fluid:!0,selected:F.allowed,onClick:function(){return p("access",{access_target:F.ref,allowed:F.allowed})},children:(0,n.jT)(F.desc)})},F.ref)})})||(0,e.jsx)(a.wn,{title:b,level:2,children:(0,e.jsx)(m,{actName:"access"})})]})]})},m=function(c){var d=(0,i.Oc)(),p=d.act,C=d.data,j=c.actName,b=C.regions;return(0,e.jsx)(a.so,{wrap:"wrap",spacing:1,children:(0,s.Ul)(function(O){return O.name})(b).map(function(O){return(0,e.jsx)(a.so.Item,{mb:1,basis:"content",grow:1,children:(0,e.jsx)(a.wn,{title:O.name,height:"100%",children:(0,s.Ul)(function(I){return I.desc})(O.accesses).map(function(I){return(0,e.jsx)(a.az,{children:(0,e.jsx)(a.$n,{fluid:!0,selected:I.allowed,onClick:function(){return p(j,{access_target:I.ref,allowed:I.allowed})},children:(0,n.jT)(I.desc)})},I.ref)})})},O.name)})})}},15654:function(P,y,t){"use strict";t.r(y),t.d(y,{InventoryPanel:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,h=f.slots,v=f.internalsValid;return(0,e.jsx)(r.p8,{width:400,height:200,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{children:(0,e.jsx)(n.Ki,{children:h&&h.length&&h.map(function(u){return(0,e.jsx)(n.Ki.Item,{label:u.name,children:(0,e.jsx)(n.$n,{mb:-1,icon:u.item?"hand-paper":"gift",onClick:function(){return x(u.act)},children:u.item||"Nothing"})},u.name)})})}),v&&(0,e.jsx)(n.wn,{title:"Actions",children:v&&(0,e.jsx)(n.$n,{fluid:!0,icon:"lungs",onClick:function(){return x("internals")},children:"Set Internals"})||null})||null]})})}},54577:function(P,y,t){"use strict";t.r(y),t.d(y,{InventoryPanelHuman:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,h=f.slots,v=f.specialSlots,u=f.internals,m=f.internalsValid,c=f.sensors,d=f.handcuffed,p=f.handcuffedParams,C=f.legcuffed,j=f.legcuffedParams,b=f.accessory;return(0,e.jsx)(r.p8,{width:400,height:600,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{children:(0,e.jsxs)(n.Ki,{children:[h&&h.length&&h.map(function(O){return(0,e.jsx)(n.Ki.Item,{label:O.name,children:(0,e.jsx)(n.$n,{mb:-1,icon:O.item?"hand-paper":"gift",onClick:function(){return x(O.act,O.params)},children:O.item||"Nothing"})},O.name)}),(0,e.jsx)(n.Ki.Divider,{}),v&&v.length&&v.map(function(O){return(0,e.jsx)(n.Ki.Item,{label:O.name,children:(0,e.jsx)(n.$n,{mb:-1,icon:O.item?"hand-paper":"gift",onClick:function(){return x(O.act,O.params)},children:O.item||"Nothing"})},O.name)})]})}),(0,e.jsxs)(n.wn,{title:"Actions",children:[(0,e.jsx)(n.$n,{fluid:!0,icon:"running",onClick:function(){return x("targetSlot",{slot:"splints"})},children:"Remove Splints"}),(0,e.jsx)(n.$n,{fluid:!0,icon:"hand-paper",onClick:function(){return x("targetSlot",{slot:"pockets"})},children:"Empty Pockets"}),m&&(0,e.jsx)(n.$n,{fluid:!0,icon:"lungs",onClick:function(){return x("targetSlot",{slot:"internals"})},children:"Set Internals"})||null,c&&(0,e.jsx)(n.$n,{fluid:!0,icon:"book-medical",onClick:function(){return x("targetSlot",{slot:"sensors"})},children:"Set Sensors"})||null,d&&(0,e.jsx)(n.$n,{fluid:!0,color:"bad",icon:"unlink",onClick:function(){return x("targetSlot",p)},children:"Handcuffed"})||null,C&&(0,e.jsx)(n.$n,{fluid:!0,color:"bad",icon:"unlink",onClick:function(){return x("targetSlot",j)},children:"Legcuffed"})||null,b&&(0,e.jsx)(n.$n,{fluid:!0,color:"bad",icon:"unlink",onClick:function(){return x("targetSlot",{slot:"tie"})},children:"Remove Accessory"})||null]})]})})}},46382:function(P,y,t){"use strict";t.r(y),t.d(y,{IsolationCentrifuge:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,h=f.busy,v=f.antibodies,u=f.pathogens,m=f.is_antibody_sample,c=f.sample_inserted,d=(0,e.jsx)(n.az,{color:"average",children:"No vial detected."});return c&&(!v&&!u?d=(0,e.jsx)(n.az,{color:"average",children:"No antibodies or viral strains detected."}):d=(0,e.jsxs)(e.Fragment,{children:[v?(0,e.jsx)(n.wn,{title:"Antibodies",children:v}):null,u.length?(0,e.jsx)(n.wn,{title:"Pathogens",children:(0,e.jsx)(n.Ki,{children:u.map(function(p){return(0,e.jsx)(n.Ki.Item,{label:p.name,children:p.spread_type},p.name)})})}):null]})),(0,e.jsx)(r.p8,{width:400,height:500,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:h?(0,e.jsx)(n.wn,{title:"The Centrifuge is currently busy.",color:"bad",children:(0,e.jsx)("center",{children:(0,e.jsx)(n.az,{color:"bad",children:h})})}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(n.wn,{title:m?"Antibody Sample":"Blood Sample",children:[(0,e.jsxs)(n.so,{spacing:1,mb:1,children:[(0,e.jsx)(n.so.Item,{grow:1,children:(0,e.jsx)(n.$n,{fluid:!0,icon:"print",content:"Print",disabled:!v&&!u.length,onClick:function(){return x("print")}})}),(0,e.jsx)(n.so.Item,{grow:1,children:(0,e.jsx)(n.$n,{fluid:!0,icon:"eject",content:"Eject Vial",disabled:!c,onClick:function(){return x("sample")}})})]}),d]}),v&&!m||u.length?(0,e.jsx)(n.wn,{title:"Controls",children:(0,e.jsxs)(n.Ki,{children:[v&&!m?(0,e.jsx)(n.Ki.Item,{label:"Isolate Antibodies",children:(0,e.jsx)(n.$n,{icon:"pen",content:v,onClick:function(){return x("antibody")}})}):null,u.length?(0,e.jsx)(n.Ki.Item,{label:"Isolate Strain",children:u.map(function(p){return(0,e.jsx)(n.$n,{icon:"pen",content:p.name,onClick:function(){return x("isolate",{isolate:p.reference})}},p.name)})}):null]})}):null]})})})}},58189:function(P,y,t){"use strict";t.r(y),t.d(y,{JanitorCart:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(x){var f=(0,s.Oc)(),h=f.act,v=f.data,u=v.mybag,m=v.mybucket,c=v.mymop,d=v.myspray,p=v.myreplacer,C=v.signs,j=v.icons;return(0,e.jsx)(r.p8,{width:210,height:180,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(n.$n,{width:"64px",height:"64px",position:"relative",tooltip:u||"Garbage Bag Slot",tooltipPosition:"bottom-end",color:u?"grey":"transparent",style:{border:u?null:"2px solid grey"},onClick:function(){return h("bag")},children:(0,e.jsx)(g,{iconkey:"mybag"})}),(0,e.jsx)(n.$n,{width:"64px",height:"64px",position:"relative",tooltip:m||"Bucket Slot",tooltipPosition:"bottom",color:m?"grey":"transparent",style:{border:m?null:"2px solid grey"},onClick:function(){return h("bucket")},children:(0,e.jsx)(g,{iconkey:"mybucket"})}),(0,e.jsx)(n.$n,{width:"64px",height:"64px",position:"relative",tooltip:c||"Mop Slot",tooltipPosition:"bottom-end",color:c?"grey":"transparent",style:{border:c?null:"2px solid grey"},onClick:function(){return h("mop")},children:(0,e.jsx)(g,{iconkey:"mymop"})}),(0,e.jsx)(n.$n,{width:"64px",height:"64px",position:"relative",tooltip:d||"Spray Slot",tooltipPosition:"top-end",color:d?"grey":"transparent",style:{border:d?null:"2px solid grey"},onClick:function(){return h("spray")},children:(0,e.jsx)(g,{iconkey:"myspray"})}),(0,e.jsx)(n.$n,{width:"64px",height:"64px",position:"relative",tooltip:p||"Light Replacer Slot",tooltipPosition:"top",color:p?"grey":"transparent",style:{border:p?null:"2px solid grey"},onClick:function(){return h("replacer")},children:(0,e.jsx)(g,{iconkey:"myreplacer"})}),(0,e.jsx)(n.$n,{width:"64px",height:"64px",position:"relative",tooltip:C||"Signs Slot",tooltipPosition:"top-start",color:C?"grey":"transparent",style:{border:C?null:"2px solid grey"},onClick:function(){return h("sign")},children:(0,e.jsx)(g,{iconkey:"signs"})})]})})},a={mybag:"trash",mybucket:"fill",mymop:"broom",myspray:"spray-can",myreplacer:"lightbulb",signs:"sign"},g=function(x){var f=(0,s.Oc)().data,h=x.iconkey,v=f.icons;return h in v?(0,e.jsx)("img",{src:v[h].substr(1,v[h].length-1),style:{position:"absolute",left:0,right:0,top:0,bottom:0,width:"64px",height:"64px","-ms-interpolation-mode":"nearest-neighbor"}}):(0,e.jsx)(n.In,{style:{position:"absolute",left:"4px",right:0,top:"20px",bottom:0,width:"64px",height:"64px"},fontSize:2,name:a[h]})}},11434:function(P,y,t){"use strict";t.r(y),t.d(y,{Jukebox:function(){return a}});var e=t(88095),s=t(5229),n=t(4413),r=t(92514),i=t(68040),a=function(g){var x=(0,n.Oc)(),f=x.act,h=x.data,v=h.playing,u=h.loop_mode,m=h.volume,c=h.current_track_ref,d=h.current_track,p=h.current_genre,C=h.percent,j=h.tracks,b=j.length&&j.reduce(function(I,_){var M=_.genre||"Uncategorized";return I[M]||(I[M]=[]),I[M].push(_),I},{}),O=v&&(p||"Uncategorized");return(0,e.jsx)(i.p8,{width:450,height:600,children:(0,e.jsxs)(i.p8.Content,{scrollable:!0,children:[(0,e.jsx)(r.wn,{title:"Currently Playing",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Title",children:v&&d&&(0,e.jsxs)(r.az,{children:[d.title," by ",d.artist||"Unkown"]})||(0,e.jsx)(r.az,{children:"Stopped"})}),(0,e.jsxs)(r.Ki.Item,{label:"Controls",children:[(0,e.jsx)(r.$n,{icon:"play",disabled:v,onClick:function(){return f("play")},children:"Play"}),(0,e.jsx)(r.$n,{icon:"stop",disabled:!v,onClick:function(){return f("stop")},children:"Stop"})]}),(0,e.jsxs)(r.Ki.Item,{label:"Loop Mode",children:[(0,e.jsx)(r.$n,{icon:"play",onClick:function(){return f("loopmode",{loopmode:1})},selected:u===1,children:"Next"}),(0,e.jsx)(r.$n,{icon:"random",onClick:function(){return f("loopmode",{loopmode:2})},selected:u===2,children:"Shuffle"}),(0,e.jsx)(r.$n,{icon:"redo",onClick:function(){return f("loopmode",{loopmode:3})},selected:u===3,children:"Repeat"}),(0,e.jsx)(r.$n,{icon:"step-forward",onClick:function(){return f("loopmode",{loopmode:4})},selected:u===4,children:"Once"})]}),(0,e.jsx)(r.Ki.Item,{label:"Progress",children:(0,e.jsx)(r.z2,{value:C,maxValue:1,color:"good"})}),(0,e.jsx)(r.Ki.Item,{label:"Volume",children:(0,e.jsx)(r.Ap,{minValue:0,step:1,value:m*100,maxValue:100,ranges:{good:[75,1/0],average:[25,75],bad:[0,25]},format:function(I){return(0,s.LI)(I,1)+"%"},onChange:function(I,_){return f("volume",{val:(0,s.LI)(_/100,2)})}})})]})}),(0,e.jsx)(r.wn,{title:"Available Tracks",children:j.length&&Object.keys(b).sort().map(function(I){return(0,e.jsx)(r.Nt,{title:I,color:O===I?"green":"default",child_mt:0,children:(0,e.jsx)("div",{style:{"margin-left":"1em"},children:b[I].map(function(_){return(0,e.jsx)(r.$n,{fluid:!0,icon:"play",selected:c===_.ref,onClick:function(){return f("change_track",{change_track:_.ref})},children:_.title},_.ref)})})},I)})||(0,e.jsx)(r.az,{color:"bad",children:"Error: No songs loaded."})})]})})}},58503:function(P,y,t){"use strict";t.r(y),t.d(y,{LawManager:function(){return g}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040);function i(){return i=Object.assign||function(u){for(var m=1;m=0)&&(c[p]=u[p]);return c}var g=function(u){var m=(0,s.Oc)(),c=m.act,d=m.data,p=d.isSlaved;return(0,e.jsx)(r.p8,{width:800,height:600,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[p&&(0,e.jsxs)(n.IC,{info:!0,children:["Law-synced to ",p]})||null,(0,e.jsx)(x,{})]})})},x=function(u){var m=(0,s.QY)("lawsTabIndex",0),c=m[0],d=m[1];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(n.tU,{children:[(0,e.jsx)(n.tU.Tab,{selected:c===0,onClick:function(){return d(0)},children:"Law Management"}),(0,e.jsx)(n.tU.Tab,{selected:c===1,onClick:function(){return d(1)},children:"Law Sets"})]}),c===0&&(0,e.jsx)(f,{})||null,c===1&&(0,e.jsx)(v,{})||null]})},f=function(u){var m=(0,s.Oc)(),c=m.act,d=m.data,p=d.ion_law_nr,C=d.ion_law,j=d.zeroth_law,b=d.inherent_law,O=d.supplied_law,I=d.supplied_law_position,_=d.zeroth_laws,M=d.has_zeroth_laws,D=d.ion_laws,A=d.has_ion_laws,R=d.inherent_laws,K=d.has_inherent_laws,N=d.supplied_laws,k=d.has_supplied_laws,V=d.isAI,F=d.isMalf,J=d.isAdmin,H=d.channel,Q=d.channels,Z=_.map(function(X){return X.zero=!0,X}).concat(R);return(0,e.jsxs)(n.wn,{children:[A&&(0,e.jsx)(h,{laws:D,title:p+" Laws:",mt:-2})||null,(M||K)&&(0,e.jsx)(h,{laws:Z,title:"Inherent Laws",mt:-2})||null,k&&(0,e.jsx)(h,{laws:N,title:"Supplied Laws",mt:-2})||null,(0,e.jsx)(n.wn,{level:2,title:"Controls",mt:-2,children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Statement Channel",children:Q.map(function(X){return(0,e.jsx)(n.$n,{content:X.channel,selected:H===X.channel,onClick:function(){return c("law_channel",{law_channel:X.channel})}},X.channel)})}),(0,e.jsx)(n.Ki.Item,{label:"State Laws",children:(0,e.jsx)(n.$n,{icon:"volume-up",onClick:function(){return c("state_laws")},children:"State Laws"})}),V&&(0,e.jsx)(n.Ki.Item,{label:"Law Notification",children:(0,e.jsx)(n.$n,{icon:"exclamation",onClick:function(){return c("notify_laws")},children:"Notify"})})||null]})}),F&&(0,e.jsx)(n.wn,{level:2,title:"Add Laws",mt:-2,children:(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:"Type"}),(0,e.jsx)(n.XI.Cell,{children:"Law"}),(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:"Index"}),(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:"Add"})]}),J&&!M&&(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:"Zero"}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.pd,{value:j,fluid:!0,onChange:function(X,z){return c("change_zeroth_law",{val:z})}})}),(0,e.jsx)(n.XI.Cell,{children:"N/A"}),(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:(0,e.jsx)(n.$n,{icon:"plus",onClick:function(){return c("add_zeroth_law")},children:"Add"})})]})||null,(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:"Ion"}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.pd,{value:C,fluid:!0,onChange:function(X,z){return c("change_ion_law",{val:z})}})}),(0,e.jsx)(n.XI.Cell,{children:"N/A"}),(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:(0,e.jsx)(n.$n,{icon:"plus",onClick:function(){return c("add_ion_law")},children:"Add"})})]}),(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{children:"Inherent"}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.pd,{value:b,fluid:!0,onChange:function(X,z){return c("change_inherent_law",{val:z})}})}),(0,e.jsx)(n.XI.Cell,{children:"N/A"}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{icon:"plus",onClick:function(){return c("add_inherent_law")},children:"Add"})})]}),(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{children:"Supplied"}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.pd,{value:O,fluid:!0,onChange:function(X,z){return c("change_supplied_law",{val:z})}})}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{icon:"pen",onClick:function(){return c("change_supplied_law_position")},children:I})}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{icon:"plus",onClick:function(){return c("add_supplied_law")},children:"Add"})})]})]})})||null]})},h=function(u){var m=(0,s.Oc)(),c=m.act,d=m.data,p=d.isMalf,C=d.isAdmin,j=u.laws,b=u.title,O=u.noButtons,I=a(u,["laws","title","noButtons"]);return(0,e.jsx)(n.wn,i({level:2,title:b},I,{children:(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:"Index"}),(0,e.jsx)(n.XI.Cell,{children:"Law"}),!O&&(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:"State"})||null,p&&!O&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:"Edit"}),(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:"Delete"})]})||null]}),j.map(function(_){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsxs)(n.XI.Cell,{collapsing:!0,children:[_.index,"."]}),(0,e.jsx)(n.XI.Cell,{color:_.zero?"bad":null,children:_.law}),!O&&(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:(0,e.jsx)(n.$n,{fluid:!0,icon:"volume-up",selected:_.state,onClick:function(){return c("state_law",{ref:_.ref,state_law:!_.state})},children:_.state?"Yes":"No"})})||null,p&&!O&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:(0,e.jsx)(n.$n,{disabled:_.zero&&!C,icon:"pen",onClick:function(){return c("edit_law",{edit_law:_.ref})},children:"Edit"})}),(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:(0,e.jsx)(n.$n,{disabled:_.zero&&!C,color:"bad",icon:"trash",onClick:function(){return c("delete_law",{delete_law:_.ref})},children:"Delete"})})]})||null]},_.index)})]})}))},v=function(u){var m=(0,s.Oc)(),c=m.act,d=m.data,p=d.isMalf,C=d.law_sets;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.IC,{children:"Remember: Stating laws other than those currently loaded may be grounds for decommissioning! - NanoTrasen"}),C.length&&C.map(function(j){return(0,e.jsxs)(n.wn,{title:j.name,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{disabled:!p,icon:"sync",onClick:function(){return c("transfer_laws",{transfer_laws:j.ref})},children:"Load Laws"}),(0,e.jsx)(n.$n,{icon:"volume-up",onClick:function(){return c("state_law_set",{state_law_set:j.ref})},children:"State Laws"})]}),children:[j.laws.has_ion_laws&&(0,e.jsx)(h,{noButtons:!0,laws:j.laws.ion_laws,title:j.laws.ion_law_nr+" Laws:"})||null,(j.laws.has_zeroth_laws||j.laws.has_inherent_laws)&&(0,e.jsx)(h,{noButtons:!0,laws:j.laws.zeroth_laws.concat(j.laws.inherent_laws),title:j.header})||null,j.laws.has_supplied_laws&&(0,e.jsx)(h,{noButtons:!0,laws:j.laws.supplied_laws,title:"Supplied Laws"})||null]},j.name)})||null]})}},93455:function(P,y,t){"use strict";t.r(y),t.d(y,{ListInputModal:function(){return f}});var e=t(88095),s=t(44583),n=t(61652),r=t(4413),i=t(92514),a=t(68040),g=t(12035),x=t(18513),f=function(u){var m=(0,r.Oc)(),c=m.act,d=m.data,p=d.items,C=p===void 0?[]:p,j=d.message,b=j===void 0?"":j,O=d.init_value,I=d.large_buttons,_=d.timeout,M=d.title,D=(0,s.useState)(C.indexOf(O)),A=D[0],R=D[1],K=(0,s.useState)(C.length>9),N=K[0],k=K[1],V=(0,s.useState)(""),F=V[0],J=V[1],H=function(ne){var ue=ee.length-1;if(ne===n.R)if(A===null||A===ue){var ce;R(0),(ce=document.getElementById("0"))==null||ce.scrollIntoView()}else{var me;R(A+1),(me=document.getElementById((A+1).toString()))==null||me.scrollIntoView()}else if(ne===n.gf)if(A===null||A===0){var xe;R(ue),(xe=document.getElementById(ue.toString()))==null||xe.scrollIntoView()}else{var ve;R(A-1),(ve=document.getElementById((A-1).toString()))==null||ve.scrollIntoView()}},Q=function(ne){ne!==A&&R(ne)},Z=function(){k(!1),k(!0)},X=function(ne){var ue=String.fromCharCode(ne),ce=C.find(function(ve){return ve==null?void 0:ve.toLowerCase().startsWith(ue==null?void 0:ue.toLowerCase())});if(ce){var me,xe=C.indexOf(ce);R(xe),(me=document.getElementById(xe.toString()))==null||me.scrollIntoView()}},z=function(ne){var ue;ne!==F&&(J(ne),R(0),(ue=document.getElementById("0"))==null||ue.scrollIntoView())},Y=function(){k(!N),J("")},ee=C.filter(function(ne){return ne==null?void 0:ne.toLowerCase().includes(F.toLowerCase())}),oe=325+Math.ceil(b.length/3)+(I?5:0);return N||setTimeout(function(){var ne;return(ne=document.getElementById(A.toString()))==null?void 0:ne.focus()},1),(0,e.jsxs)(a.p8,{title:M,width:325,height:oe,children:[_&&(0,e.jsx)(x.Loader,{value:_}),(0,e.jsx)(a.p8.Content,{onKeyDown:function(ne){var ue=window.event?ne.which:ne.keyCode;(ue===n.R||ue===n.gf)&&(ne.preventDefault(),H(ue)),ue===n.Ri&&(ne.preventDefault(),c("submit",{entry:ee[A]})),!N&&ue>=n.W8&&ue<=n.bh&&(ne.preventDefault(),X(ue)),ue===n.s6&&(ne.preventDefault(),c("cancel"))},children:(0,e.jsx)(i.wn,{buttons:(0,e.jsx)(i.$n,{compact:!0,icon:N?"search":"font",selected:!0,tooltip:N?"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(){return Y()}}),className:"ListInput__Section",fill:!0,title:b,children:(0,e.jsxs)(i.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(i.BJ.Item,{grow:!0,children:(0,e.jsx)(h,{filteredItems:ee,onClick:Q,onFocusSearch:Z,searchBarVisible:N,selected:A})}),N&&(0,e.jsx)(v,{filteredItems:ee,onSearch:z,searchQuery:F,selected:A}),(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(g.InputButtons,{input:ee[A]})})]})})})]})},h=function(u){var m=(0,r.Oc)().act,c=u.filteredItems,d=u.onClick,p=u.onFocusSearch,C=u.searchBarVisible,j=u.selected;return(0,e.jsxs)(i.wn,{fill:!0,scrollable:!0,children:[(0,e.jsx)(i.y5,{}),c.map(function(b,O){return(0,e.jsx)(i.$n,{color:"transparent",fluid:!0,onClick:function(){return d(O)},onDoubleClick:function(I){I.preventDefault(),m("submit",{entry:c[j]})},onKeyDown:function(I){var _=window.event?I.which:I.keyCode;C&&_>=n.W8&&_<=n.bh&&(I.preventDefault(),p())},selected:O===j,style:{animation:"none",transition:"none"},children:b.replace(/^\w/,function(I){return I.toUpperCase()})},O)})]})},v=function(u){var m=(0,r.Oc)().act,c=u.filteredItems,d=u.onSearch,p=u.searchQuery,C=u.selected;return(0,e.jsx)(i.pd,{autoFocus:!0,autoSelect:!0,fluid:!0,onEnter:function(j){j.preventDefault(),m("submit",{entry:c[C]})},onInput:function(j,b){return d(b)},placeholder:"Search...",value:p})}},4515:function(P,y,t){"use strict";t.r(y),t.d(y,{LookingGlass:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,h=f.supportedPrograms,v=f.currentProgram,u=f.immersion,m=f.gravity,c=Math.min(180+h.length*23,600);return(0,e.jsx)(r.p8,{width:300,height:c,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{title:"Programs",children:h.map(function(d){return(0,e.jsx)(n.$n,{fluid:!0,icon:"eye",selected:d===v,onClick:function(){return x("program",{program:d})},children:d},d)})}),(0,e.jsx)(n.wn,{title:"Controls",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Gravity",children:(0,e.jsx)(n.$n,{fluid:!0,icon:"user-astronaut",selected:m,onClick:function(){return x("gravity")},children:m?"Enabled":"Disabled"})}),(0,e.jsx)(n.Ki.Item,{label:"Full Immersion",children:(0,e.jsx)(n.$n,{mt:-1,fluid:!0,icon:"eye",selected:u,onClick:function(){return x("immersion")},children:u?"Enabled":"Disabled"})})]})})]})})}},17542:function(P,y,t){"use strict";t.r(y),t.d(y,{MechaControlConsole:function(){return a}});var e=t(88095),s=t(33854),n=t(4413),r=t(92514),i=t(68040),a=function(g){var x=(0,n.Oc)(),f=x.act,h=x.data,v=h.beacons,u=h.stored_data;return(0,e.jsx)(i.p8,{width:600,height:600,children:(0,e.jsxs)(i.p8.Content,{scrollable:!0,children:[u.length&&(0,e.jsx)(r.aF,{children:(0,e.jsx)(r.wn,{height:"400px",style:{"overflow-y":"auto"},title:"Log",buttons:(0,e.jsx)(r.$n,{icon:"window-close",onClick:function(){return f("clear_log")}}),children:u.map(function(m){return(0,e.jsxs)(r.az,{children:[(0,e.jsxs)(r.az,{color:"label",children:["(",m.time,") (",m.year,")"]}),(0,e.jsx)(r.az,{children:(0,s.jT)(m.message)})]},m.time)})})})||null,v.length&&v.map(function(m){return(0,e.jsx)(r.wn,{title:m.name,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"comment",onClick:function(){return f("send_message",{mt:m.ref})},children:"Message"}),(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return f("get_log",{mt:m.ref})},children:"View Log"}),(0,e.jsx)(r.$n.Confirm,{color:"red",content:"EMP",icon:"bomb",onClick:function(){return f("shock",{mt:m.ref})}})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Health",children:(0,e.jsx)(r.z2,{ranges:{good:[m.maxHealth*.75,1/0],average:[m.maxHealth*.5,m.maxHealth*.75],bad:[-1/0,m.maxHealth*.5]},value:m.health,maxValue:m.maxHealth})}),(0,e.jsx)(r.Ki.Item,{label:"Cell Charge",children:m.cell&&(0,e.jsx)(r.z2,{ranges:{good:[m.cellMaxCharge*.75,1/0],average:[m.cellMaxCharge*.5,m.cellMaxCharge*.75],bad:[-1/0,m.cellMaxCharge*.5]},value:m.cellCharge,maxValue:m.cellMaxCharge})||(0,e.jsx)(r.IC,{children:"No Cell Installed"})}),(0,e.jsxs)(r.Ki.Item,{label:"Air Tank",children:[m.airtank,"kPa"]}),(0,e.jsx)(r.Ki.Item,{label:"Pilot",children:m.pilot||"Unoccupied"}),(0,e.jsx)(r.Ki.Item,{label:"Location",children:(0,s.Sn)(m.location)||"Unknown"}),(0,e.jsx)(r.Ki.Item,{label:"Active Equipment",children:m.active||"None"}),m.cargoMax&&(0,e.jsx)(r.Ki.Item,{label:"Cargo Space",children:(0,e.jsx)(r.z2,{ranges:{bad:[m.cargoMax*.75,1/0],average:[m.cargoMax*.5,m.cargoMax*.75],good:[-1/0,m.cargoMax*.5]},value:m.cargoUsed,maxValue:m.cargoMax})})||null]})},m.name)})||(0,e.jsx)(r.IC,{children:"No mecha beacons found."})]})})}},97311:function(P,y,t){"use strict";t.r(y),t.d(y,{Medbot:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,h=f.on,v=f.open,u=f.beaker,m=f.beaker_total,c=f.beaker_max,d=f.locked,p=f.heal_threshold,C=f.heal_threshold_max,j=f.injection_amount_min,b=f.injection_amount,O=f.injection_amount_max,I=f.use_beaker,_=f.declare_treatment,M=f.vocal;return(0,e.jsx)(r.p8,{width:400,height:600,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{title:"Automatic Medical Unit v2.0",buttons:(0,e.jsx)(n.$n,{icon:"power-off",selected:h,onClick:function(){return x("power")},children:h?"On":"Off"}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Maintenance Panel",color:v?"bad":"good",children:v?"Open":"Closed"}),(0,e.jsx)(n.Ki.Item,{label:"Beaker",buttons:(0,e.jsx)(n.$n,{disabled:!u,icon:"eject",onClick:function(){return x("eject")},children:"Eject"}),children:u&&(0,e.jsxs)(n.z2,{value:m,maxValue:c,children:[m," / ",c]})||(0,e.jsx)(n.az,{color:"average",children:"No beaker loaded."})}),(0,e.jsx)(n.Ki.Item,{label:"Behavior Controls",color:d?"good":"bad",children:d?"Locked":"Unlocked"})]})}),!d&&(0,e.jsx)(n.wn,{title:"Behavioral Controls",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Healing Threshold",children:(0,e.jsx)(n.Q7,{fluid:!0,minValue:0,maxValue:C,value:p,onDrag:function(D,A){return x("adj_threshold",{val:A})}})}),(0,e.jsx)(n.Ki.Item,{label:"Injection Amount",children:(0,e.jsx)(n.Q7,{fluid:!0,minValue:j,maxValue:O,value:b,onDrag:function(D,A){return x("adj_inject",{val:A})}})}),(0,e.jsx)(n.Ki.Item,{label:"Reagent Source",children:(0,e.jsx)(n.$n,{fluid:!0,icon:I?"toggle-on":"toggle-off",selected:I,onClick:function(){return x("use_beaker")},children:I?"Loaded Beaker (When available)":"Internal Synthesizer"})}),(0,e.jsx)(n.Ki.Item,{label:"Treatment Report",children:(0,e.jsx)(n.$n,{fluid:!0,icon:_?"toggle-on":"toggle-off",selected:_,onClick:function(){return x("declaretreatment")},children:_?"On":"Off"})}),(0,e.jsx)(n.Ki.Item,{label:"Speaker",children:(0,e.jsx)(n.$n,{fluid:!0,icon:M?"toggle-on":"toggle-off",selected:M,onClick:function(){return x("togglevoice")},children:M?"On":"Off"})})]})})||null]})})}},98659:function(P,y,t){"use strict";t.r(y),t.d(y,{MedicalRecords:function(){return m}});var e=t(88095),s=t(44583),n=t(4413),r=t(92514),i=t(5425),a=t(68040),g=t(71451),x=t(1887),f=t(82489),h={Minor:"good",Medium:"average","Dangerous!":"bad",Harmful:"bad","BIOHAZARD THREAT!":"bad"},v=function(_){(0,i.modalOpen)("edit",{field:_.edit,value:_.value})},u=function(_){var M=(0,n.Oc)().act,D=_.args;return(0,e.jsx)(r.wn,{level:2,m:"-1rem",title:D.name||"Virus",buttons:(0,e.jsx)(r.$n,{icon:"times",color:"red",onClick:function(){return M("modal_close")}}),children:(0,e.jsx)(r.az,{mx:"0.5rem",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Spread",children:[D.spread_text," Transmission"]}),(0,e.jsx)(r.Ki.Item,{label:"Possible cure",children:D.antigen}),(0,e.jsx)(r.Ki.Item,{label:"Rate of Progression",children:D.rate}),(0,e.jsxs)(r.Ki.Item,{label:"Antibiotic Resistance",children:[D.resistance,"%"]}),(0,e.jsx)(r.Ki.Item,{label:"Species Affected",children:D.species}),(0,e.jsx)(r.Ki.Item,{label:"Symptoms",children:(0,e.jsx)(r.Ki,{children:D.symptoms.map(function(A){return(0,e.jsxs)(r.Ki.Item,{label:A.stage+". "+A.name,children:[(0,e.jsx)(r.az,{inline:!0,color:"label",children:"Strength:"})," ",A.strength,"\xA0",(0,e.jsx)(r.az,{inline:!0,color:"label",children:"Aggressiveness:"})," ",A.aggressiveness]},A.stage)})})})]})})})},m=function(_){var M=(0,n.Oc)().data,D=M.authenticated,A=M.screen;if(!D)return(0,e.jsx)(a.p8,{width:800,height:380,children:(0,e.jsx)(a.p8.Content,{children:(0,e.jsx)(x.LoginScreen,{})})});var R;return A===2?R=(0,e.jsx)(c,{}):A===3?R=(0,e.jsx)(d,{}):A===4?R=(0,e.jsx)(p,{}):A===5?R=(0,e.jsx)(b,{}):A===6&&(R=(0,e.jsx)(O,{})),(0,e.jsxs)(a.p8,{width:800,height:380,children:[(0,e.jsx)(i.ComplexModal,{maxHeight:"100%",maxWidth:"80%"}),(0,e.jsxs)(a.p8.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:[(0,e.jsx)(g.LoginInfo,{}),(0,e.jsx)(f.TemporaryNotice,{}),(0,e.jsx)(I,{}),(0,e.jsx)(r.wn,{height:"calc(100% - 5rem)",flexGrow:"1",children:R})]})]})},c=function(_){var M=(0,n.Oc)(),D=M.act,A=M.data,R=A.records;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.pd,{fluid:!0,placeholder:"Search by Name, DNA, or ID",onChange:function(K,N){return D("search",{t1:N})}}),(0,e.jsx)(r.az,{mt:"0.5rem",children:R.map(function(K,N){return(0,e.jsx)(r.$n,{icon:"user",mb:"0.5rem",content:K.id+": "+K.name,onClick:function(){return D("d_rec",{d_rec:K.ref})}},N)})})]})},d=function(_){var M=(0,n.Oc)().act;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"download",content:"Backup to Disk",disabled:!0}),(0,e.jsx)("br",{}),(0,e.jsx)(r.$n,{icon:"upload",content:"Upload from Disk",my:"0.5rem",disabled:!0})," ",(0,e.jsx)("br",{}),(0,e.jsx)(r.$n.Confirm,{icon:"trash",content:"Delete All Medical Records",onClick:function(){return M("del_all")}})]})},p=function(_){var M=(0,n.Oc)(),D=M.act,A=M.data,R=A.medical,K=A.printing;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.wn,{title:"General Data",level:2,mt:"-6px",children:(0,e.jsx)(C,{})}),(0,e.jsx)(r.wn,{title:"Medical Data",level:2,children:(0,e.jsx)(j,{})}),(0,e.jsxs)(r.wn,{title:"Actions",level:2,children:[(0,e.jsx)(r.$n.Confirm,{icon:"trash",disabled:!!R.empty,content:"Delete Medical Record",color:"bad",onClick:function(){return D("del_r")}}),(0,e.jsx)(r.$n,{icon:K?"spinner":"print",disabled:K,iconSpin:!!K,content:"Print Entry",ml:"0.5rem",onClick:function(){return D("print_p")}}),(0,e.jsx)("br",{}),(0,e.jsx)(r.$n,{icon:"arrow-left",content:"Back",mt:"0.5rem",onClick:function(){return D("screen",{screen:2})}})]})]})},C=function(_){var M=(0,n.Oc)().data,D=M.general;return!D||!D.fields?(0,e.jsx)(r.az,{color:"bad",children:"General records lost!"}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.az,{width:"50%",float:"left",children:(0,e.jsx)(r.Ki,{children:D.fields.map(function(A,R){return(0,e.jsxs)(r.Ki.Item,{label:A.field,children:[(0,e.jsx)(r.az,{height:"20px",display:"inline-block",preserveWhitespace:!0,children:A.value}),!!A.edit&&(0,e.jsx)(r.$n,{icon:"pen",ml:"0.5rem",onClick:function(){return v(A)}})]},R)})})}),(0,e.jsx)(r.az,{width:"50%",float:"right",textAlign:"right",children:!!D.has_photos&&D.photos.map(function(A,R){return(0,e.jsxs)(r.az,{display:"inline-block",textAlign:"center",color:"label",children:[(0,e.jsx)("img",{src:A.substr(1,A.length-1),style:{width:"96px","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.jsx)("br",{}),"Photo #",R+1]},R)})})]})},j=function(_){var M=(0,n.Oc)(),D=M.act,A=M.data,R=A.medical;return!R||!R.fields?(0,e.jsxs)(r.az,{color:"bad",children:["Medical records lost!",(0,e.jsx)(r.$n,{icon:"pen",content:"New Record",ml:"0.5rem",onClick:function(){return D("new")}})]}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.Ki,{children:R.fields.map(function(K,N){return(0,e.jsx)(r.Ki.Item,{label:K.field,children:(0,e.jsxs)(r.az,{preserveWhitespace:!0,children:[K.value,(0,e.jsx)(r.$n,{icon:"pen",ml:"0.5rem",mb:K.line_break?"1rem":"initial",onClick:function(){return v(K)}})]})},N)})}),(0,e.jsxs)(r.wn,{title:"Comments/Log",level:2,children:[R.comments.length===0?(0,e.jsx)(r.az,{color:"label",children:"No comments found."}):R.comments.map(function(K,N){return(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.az,{color:"label",inline:!0,children:K.header}),(0,e.jsx)("br",{}),K.text,(0,e.jsx)(r.$n,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){return D("del_c",{del_c:N+1})}})]},N)}),(0,e.jsx)(r.$n,{icon:"comment-medical",content:"Add Entry",color:"good",mt:"0.5rem",mb:"0",onClick:function(){return(0,i.modalOpen)("add_c")}})]})]})},b=function(_){var M=(0,n.Oc)(),D=M.act,A=M.data,R=A.virus;return R.sort(function(K,N){return K.name>N.name?1:-1}),R.map(function(K,N){return(0,e.jsxs)(s.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"flask",content:K.name,mb:"0.5rem",onClick:function(){return D("vir",{vir:K.D})}}),(0,e.jsx)("br",{})]},N)})},O=function(_){var M=(0,n.Oc)().data,D=M.medbots;return D.length===0?(0,e.jsx)(r.az,{color:"label",children:"There are no Medbots."}):D.map(function(A,R){return(0,e.jsx)(r.Nt,{open:!0,title:A.name,children:(0,e.jsx)(r.az,{px:"0.5rem",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Location",children:[A.area||"Unknown"," (",A.x,", ",A.y,")"]}),(0,e.jsx)(r.Ki.Item,{label:"Status",children:A.on?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.az,{color:"good",children:"Online"}),(0,e.jsx)(r.az,{mt:"0.5rem",children:A.use_beaker?"Reservoir: "+A.total_volume+"/"+A.maximum_volume:"Using internal synthesizer."})]}):(0,e.jsx)(r.az,{color:"average",children:"Offline"})})]})})},R)})},I=function(_){var M=(0,n.Oc)(),D=M.act,A=M.data,R=A.screen;return(0,e.jsxs)(r.tU,{children:[(0,e.jsxs)(r.tU.Tab,{selected:R===2,onClick:function(){return D("screen",{screen:2})},children:[(0,e.jsx)(r.In,{name:"list"}),"List Records"]}),(0,e.jsxs)(r.tU.Tab,{selected:R===5,onClick:function(){return D("screen",{screen:5})},children:[(0,e.jsx)(r.In,{name:"database"}),"Virus Database"]}),(0,e.jsxs)(r.tU.Tab,{selected:R===6,onClick:function(){return D("screen",{screen:6})},children:[(0,e.jsx)(r.In,{name:"plus-square"}),"Medbot Tracking"]}),(0,e.jsxs)(r.tU.Tab,{selected:R===3,onClick:function(){return D("screen",{screen:3})},children:[(0,e.jsx)(r.In,{name:"wrench"}),"Record Maintenance"]})]})};(0,i.modalRegisterBodyOverride)("virus",u)},31825:function(P,y,t){"use strict";t.r(y),t.d(y,{MentorTicketPanel:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i={open:"Open",resolved:"Resolved",unknown:"Unknown"},a=function(g){var x=(0,s.Oc)(),f=x.act,h=x.data,v=h.id,u=h.title,m=h.name,c=h.state,d=h.opened_at,p=h.closed_at,C=h.opened_at_date,j=h.closed_at_date,b=h.actions,O=h.log;return(0,e.jsx)(r.p8,{width:900,height:600,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(n.wn,{title:"Ticket #"+v,buttons:(0,e.jsxs)(n.az,{nowrap:!0,children:[(0,e.jsx)(n.$n,{icon:"arrow-up",content:"Escalate",onClick:function(){return f("escalate")}})," ",(0,e.jsx)(n.$n,{content:"Legacy UI",onClick:function(){return f("legacy")}})]}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Mentor Help Ticket",children:["#",v,": ",(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:m}})]}),(0,e.jsx)(n.Ki.Item,{label:"State",children:i[c]}),i[c]===i.open?(0,e.jsxs)(n.Ki.Item,{label:"Opened At",children:[C," (",Math.round(d/600*10)/10," ","minutes ago.)"]}):(0,e.jsxs)(n.Ki.Item,{label:"Closed At",children:[j," (",Math.round(p/600*10)/10," ","minutes ago.)"," ",(0,e.jsx)(n.$n,{content:"Reopen",onClick:function(){return f("reopen")}})]}),(0,e.jsx)(n.Ki.Item,{label:"Actions",children:(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:b}})}),(0,e.jsx)(n.Ki.Item,{label:"Log",children:Object.keys(O).map(function(I,_){return(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:O[I]}},_)})})]})})})})}},68607:function(P,y,t){"use strict";t.r(y),t.d(y,{MessageMonitor:function(){return f}});var e=t(88095),s=t(33854),n=t(44583),r=t(4413),i=t(92514),a=t(68040),g=t(13221),x=t(82489),f=function(C){var j=(0,r.Oc)(),b=j.act,O=j.data,I=O.auth,_=O.linkedServer,M=O.message,D=O.hacking,A=O.emag,R;return D||A?R=(0,e.jsx)(h,{}):I?_?R=(0,e.jsx)(u,{}):R=(0,e.jsx)(i.az,{color:"bad",children:"ERROR"}):R=(0,e.jsx)(v,{}),(0,e.jsx)(a.p8,{width:670,height:450,children:(0,e.jsxs)(a.p8.Content,{scrollable:!0,children:[(0,e.jsx)(x.TemporaryNotice,{}),R]})})},h=function(C){var j=(0,r.Oc)(),b=j.act,O=j.data,I=O.isMalfAI;return(0,e.jsx)(g.FullscreenNotice,{title:"ERROR",children:I?(0,e.jsx)(i.az,{children:"Brute-forcing for server key. It will take 20 seconds for every character that the password has."}):(0,e.jsxs)(i.az,{children:["01000010011100100111010101110100011001010010110",(0,e.jsx)("br",{}),"10110011001101111011100100110001101101001011011100110011",(0,e.jsx)("br",{}),"10010000001100110011011110111001000100000011100110110010",(0,e.jsx)("br",{}),"10111001001110110011001010111001000100000011010110110010",(0,e.jsx)("br",{}),"10111100100101110001000000100100101110100001000000111011",(0,e.jsx)("br",{}),"10110100101101100011011000010000001110100011000010110101",(0,e.jsx)("br",{}),"10110010100100000001100100011000000100000011100110110010",(0,e.jsx)("br",{}),"10110001101101111011011100110010001110011001000000110011",(0,e.jsx)("br",{}),"00110111101110010001000000110010101110110011001010111001",(0,e.jsx)("br",{}),"00111100100100000011000110110100001100001011100100110000",(0,e.jsx)("br",{}),"10110001101110100011001010111001000100000011101000110100",(0,e.jsx)("br",{}),"00110000101110100001000000111010001101000011001010010000",(0,e.jsx)("br",{}),"00111000001100001011100110111001101110111011011110111001",(0,e.jsx)("br",{}),"00110010000100000011010000110000101110011001011100010000",(0,e.jsx)("br",{}),"00100100101101110001000000111010001101000011001010010000",(0,e.jsx)("br",{}),"00110110101100101011000010110111001110100011010010110110",(0,e.jsx)("br",{}),"10110010100101100001000000111010001101000011010010111001",(0,e.jsx)("br",{}),"10010000001100011011011110110111001110011011011110110110",(0,e.jsx)("br",{}),"00110010100100000011000110110000101101110001000000111001",(0,e.jsx)("br",{}),"00110010101110110011001010110000101101100001000000111100",(0,e.jsx)("br",{}),"10110111101110101011100100010000001110100011100100111010",(0,e.jsx)("br",{}),"10110010100100000011010010110111001110100011001010110111",(0,e.jsx)("br",{}),"00111010001101001011011110110111001110011001000000110100",(0,e.jsx)("br",{}),"10110011000100000011110010110111101110101001000000110110",(0,e.jsx)("br",{}),"00110010101110100001000000111001101101111011011010110010",(0,e.jsx)("br",{}),"10110111101101110011001010010000001100001011000110110001",(0,e.jsx)("br",{}),"10110010101110011011100110010000001101001011101000010111",(0,e.jsx)("br",{}),"00010000001001101011000010110101101100101001000000111001",(0,e.jsx)("br",{}),"10111010101110010011001010010000001101110011011110010000",(0,e.jsx)("br",{}),"00110100001110101011011010110000101101110011100110010000",(0,e.jsx)("br",{}),"00110010101101110011101000110010101110010001000000111010",(0,e.jsx)("br",{}),"00110100001100101001000000111001001101111011011110110110",(0,e.jsx)("br",{}),"10010000001100100011101010111001001101001011011100110011",(0,e.jsx)("br",{}),"10010000001110100011010000110000101110100001000000111010",(0,e.jsx)("br",{}),"001101001011011010110010100101110"]})})},v=function(C){var j=(0,r.Oc)(),b=j.act,O=j.data,I=O.isMalfAI;return(0,e.jsxs)(g.FullscreenNotice,{title:"Welcome",children:[(0,e.jsxs)(i.az,{fontSize:"1.5rem",bold:!0,children:[(0,e.jsx)(i.In,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"}),"Unauthorized"]}),(0,e.jsxs)(i.az,{color:"label",my:"1rem",children:["Decryption Key:",(0,e.jsx)(i.pd,{placeholder:"Decryption Key",ml:"0.5rem",onChange:function(_,M){return b("auth",{key:M})}})]}),!!I&&(0,e.jsx)(i.$n,{icon:"terminal",content:"Hack",onClick:function(){return b("hack")}}),(0,e.jsx)(i.az,{color:"label",children:"Please authenticate with the server in order to show additional options."})]})},u=function(C){var j=(0,r.Oc)(),b=j.act,O=j.data,I=O.linkedServer,_=(0,n.useState)(0),M=_[0],D=_[1],A;return M===0?A=(0,e.jsx)(m,{}):M===1?A=(0,e.jsx)(c,{logs:I.pda_msgs,pda:!0}):M===2?A=(0,e.jsx)(c,{logs:I.rc_msgs,rc:!0}):M===3?A=(0,e.jsx)(d,{}):M===4&&(A=(0,e.jsx)(p,{})),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(i.tU,{children:[(0,e.jsxs)(i.tU.Tab,{selected:M===0,onClick:function(){return D(0)},children:[(0,e.jsx)(i.In,{name:"bars"})," Main Menu"]},"Main"),(0,e.jsxs)(i.tU.Tab,{selected:M===1,onClick:function(){return D(1)},children:[(0,e.jsx)(i.In,{name:"font"})," Message Logs"]},"MessageLogs"),(0,e.jsxs)(i.tU.Tab,{selected:M===2,onClick:function(){return D(2)},children:[(0,e.jsx)(i.In,{name:"bold"})," Request Logs"]},"RequestLogs"),(0,e.jsxs)(i.tU.Tab,{selected:M===3,onClick:function(){return D(3)},children:[(0,e.jsx)(i.In,{name:"comment-alt"})," Admin Messaging"]},"AdminMessage"),(0,e.jsxs)(i.tU.Tab,{selected:M===4,onClick:function(){return D(4)},children:[(0,e.jsx)(i.In,{name:"comment-slash"})," Spam Filter"]},"SpamFilter"),(0,e.jsxs)(i.tU.Tab,{color:"red",onClick:function(){return b("deauth")},children:[(0,e.jsx)(i.In,{name:"sign-out-alt"})," Log Out"]},"Logout")]}),(0,e.jsx)(i.az,{m:2,children:A})]})},m=function(C){var j=(0,r.Oc)(),b=j.act,O=j.data,I=O.linkedServer;return(0,e.jsxs)(i.wn,{title:"Main Menu",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(i.$n,{icon:"link",content:"Server Link",onClick:function(){return b("find")}}),(0,e.jsx)(i.$n,{icon:"power-off",content:"Server "+(I.active?"Enabled":"Disabled"),selected:I.active,onClick:function(){return b("active")}})]}),children:[(0,e.jsx)(i.Ki,{children:(0,e.jsx)(i.Ki.Item,{label:"Server Status",children:(0,e.jsx)(i.az,{color:"good",children:"Good"})})}),(0,e.jsx)(i.$n,{mt:1,icon:"key",content:"Set Custom Key",onClick:function(){return b("pass")}}),(0,e.jsx)(i.$n.Confirm,{color:"red",confirmIcon:"exclamation-triangle",icon:"exclamation-triangle",content:"Clear Message Logs"}),(0,e.jsx)(i.$n.Confirm,{color:"red",confirmIcon:"exclamation-triangle",icon:"exclamation-triangle",content:"Clear Request Logs"})]})},c=function(C){var j=(0,r.Oc)(),b=j.act,O=j.data,I=C.logs,_=C.pda,M=C.rc;return(0,e.jsx)(i.wn,{title:_?"PDA Logs":M?"Request Logs":"Logs",buttons:(0,e.jsx)(i.$n.Confirm,{color:"red",icon:"trash",confirmIcon:"trash",content:"Delete All",onClick:function(){return b(_?"del_pda":"del_rc")}}),children:(0,e.jsx)(i.so,{wrap:"wrap",children:I.map(function(D,A){return(0,e.jsx)(i.so.Item,{m:"2px",basis:"49%",grow:A%2,children:(0,e.jsx)(i.wn,{title:D.sender+" -> "+D.recipient,buttons:(0,e.jsx)(i.$n.Confirm,{confirmContent:"Delete Log?",color:"bad",icon:"trash",confirmIcon:"trash",onClick:function(){return b("delete",{id:D.ref,type:M?"rc":"pda"})}}),children:M?(0,e.jsxs)(i.Ki,{children:[(0,e.jsx)(i.Ki.Item,{label:"Message",children:D.message}),(0,e.jsx)(i.Ki.Item,{label:"Verification",color:D.id_auth==="Unauthenticated"?"bad":"good",children:(0,s.jT)(D.id_auth)}),(0,e.jsx)(i.Ki.Item,{label:"Stamp",children:D.stamp})]}):D.message})},D.ref)})})})},d=function(C){var j=(0,r.Oc)(),b=j.act,O=j.data,I=O.possibleRecipients,_=O.customsender,M=O.customrecepient,D=O.customjob,A=O.custommessage,R=Object.keys(I);return(0,e.jsxs)(i.wn,{title:"Admin Messaging",children:[(0,e.jsxs)(i.Ki,{children:[(0,e.jsx)(i.Ki.Item,{label:"Sender",children:(0,e.jsx)(i.pd,{fluid:!0,value:_,onChange:function(K,N){return b("set_sender",{val:N})}})}),(0,e.jsx)(i.Ki.Item,{label:"Sender's Job",children:(0,e.jsx)(i.pd,{fluid:!0,value:D,onChange:function(K,N){return b("set_sender_job",{val:N})}})}),(0,e.jsx)(i.Ki.Item,{label:"Recipient",children:(0,e.jsx)(i.ms,{selected:M,options:R,width:"100%",mb:-.7,onSelected:function(K){return b("set_recipient",{val:I[K]})}})}),(0,e.jsx)(i.Ki.Item,{label:"Message",verticalAlign:"top",children:(0,e.jsx)(i.pd,{fluid:!0,mb:.5,value:A,onChange:function(K,N){return b("set_message",{val:N})}})})]}),(0,e.jsx)(i.$n,{fluid:!0,icon:"comment",content:"Send Message",onClick:function(){return b("send_message")}})]})},p=function(C){var j=(0,r.Oc)(),b=j.act,O=j.data,I=O.linkedServer;return(0,e.jsxs)(i.wn,{title:"Spam Filtering",children:[(0,e.jsx)(i.Ki,{children:I.spamFilter.map(function(_){return(0,e.jsx)(i.Ki.Item,{label:_.index,buttons:(0,e.jsx)(i.$n,{icon:"trash",color:"bad",content:"Delete",onClick:function(){return b("deltoken",{deltoken:_.index})}}),children:_.token},_.index)})}),(0,e.jsx)(i.$n,{icon:"plus",content:"Add New Entry",onClick:function(){return b("addtoken")}})]})}},91015:function(P,y,t){"use strict";t.r(y),t.d(y,{Microwave:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.config,h=g.data,v=h.broken,u=h.operating,m=h.dirty,c=h.items;return(0,e.jsx)(r.p8,{width:400,height:500,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:v&&(0,e.jsx)(n.wn,{children:(0,e.jsx)(n.az,{color:"bad",children:"Bzzzzttttt!!"})})||u&&(0,e.jsx)(n.wn,{children:(0,e.jsxs)(n.az,{color:"good",children:["Microwaving in progress!",(0,e.jsx)("br",{}),"Please wait...!"]})})||m&&(0,e.jsx)(n.wn,{children:(0,e.jsxs)(n.az,{color:"bad",children:["This microwave is dirty!",(0,e.jsx)("br",{}),"Please clean it before use!"]})})||c.length&&(0,e.jsx)(n.wn,{level:1,title:"Ingredients",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"radiation",onClick:function(){return x("cook")},children:"Microwave"}),(0,e.jsx)(n.$n,{icon:"eject",onClick:function(){return x("dispose")},children:"Eject"})]}),children:(0,e.jsx)(n.Ki,{children:c.map(function(d){return(0,e.jsxs)(n.Ki.Item,{label:d.name,children:[d.amt," ",d.extra]},d.name)})})})||(0,e.jsx)(n.wn,{children:(0,e.jsxs)(n.az,{color:"bad",children:[f.title," is empty."]})})})})}},46258:function(P,y,t){"use strict";t.r(y),t.d(y,{MiningOreProcessingConsole:function(){return g}});var e=t(88095),s=t(33854),n=t(4413),r=t(92514),i=t(68040),a=t(4418),g=function(u){var m=(0,n.Oc)(),c=m.act,d=m.data,p=d.unclaimedPoints,C=d.ores,j=d.showAllOres,b=d.power,O=d.speed;return(0,e.jsx)(i.p8,{width:400,height:500,children:(0,e.jsxs)(i.p8.Content,{children:[(0,e.jsx)(a.MiningUser,{insertIdText:(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.$n,{icon:"arrow-right",mr:1,onClick:function(){return c("insert")},children:"Insert ID"}),"in order to claim points."]})}),(0,e.jsx)(r.wn,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"bolt",selected:O,onClick:function(){return c("speed_toggle")},children:O?"High-Speed Active":"High-Speed Inactive"}),(0,e.jsx)(r.$n,{icon:"power-off",selected:b,onClick:function(){return c("power")},children:b?"Smelting":"Not Smelting"})]}),children:(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Current unclaimed points",buttons:(0,e.jsx)(r.$n,{disabled:p<1,icon:"download",onClick:function(){return c("claim")},children:"Claim"}),children:(0,e.jsx)(r.zv,{value:p})})})}),(0,e.jsx)(v,{})]})})},x=["Not Processing","Smelting","Compressing","Alloying"],f=["verdantium","mhydrogen","diamond","platinum","uranium","gold","silver","rutile","phoron","marble","lead","sand","carbon","hematite"],h=function(u,m){return f.indexOf(u.ore)===-1||f.indexOf(m.ore)===-1?u.ore-m.ore:f.indexOf(m.ore)-f.indexOf(u.ore)},v=function(u){var m=(0,n.Oc)(),c=m.act,d=m.data,p=d.ores,C=d.showAllOres,j=d.power;return(0,e.jsx)(r.wn,{title:"Ore Processing Controls",buttons:(0,e.jsx)(r.$n,{icon:C?"toggle-on":"toggle-off",selected:C,onClick:function(){return c("showAllOres")},children:C?"All Ores":"Ores in Machine"}),children:(0,e.jsx)(r.Ki,{children:p.length&&p.sort(h).map(function(b){return(0,e.jsx)(r.Ki.Item,{label:(0,s.Sn)(b.name),buttons:(0,e.jsx)(r.ms,{width:"120px",color:b.processing===0&&"red"||b.processing===1&&"green"||b.processing===2&&"blue"||b.processing===3&&"yellow",options:x,selected:x[b.processing],onSelected:function(O){return c("toggleSmelting",{ore:b.ore,set:x.indexOf(O)})}}),children:(0,e.jsx)(r.az,{inline:!0,children:(0,e.jsx)(r.zv,{value:b.amount})})},b.ore)})||(0,e.jsx)(r.az,{color:"bad",textAlign:"center",children:"No ores in machine."})})})}},1703:function(P,y,t){"use strict";t.r(y),t.d(y,{MiningStackingConsole:function(){return a}});var e=t(88095),s=t(33854),n=t(4413),r=t(92514),i=t(68040),a=function(g){var x=(0,n.Oc)(),f=x.act,h=x.data,v=h.stacktypes,u=h.stackingAmt;return(0,e.jsx)(i.p8,{width:400,height:500,children:(0,e.jsx)(i.p8.Content,{children:(0,e.jsx)(r.wn,{title:"Stacker Controls",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Stacking",children:(0,e.jsx)(r.Q7,{fluid:!0,value:u,minValue:1,maxValue:50,stepPixelSize:5,onChange:function(m,c){return f("change_stack",{amt:c})}})}),(0,e.jsx)(r.Ki.Divider,{}),v.length&&v.sort().map(function(m){return(0,e.jsx)(r.Ki.Item,{label:(0,s.Sn)(m.type),buttons:(0,e.jsx)(r.$n,{icon:"eject",onClick:function(){return f("release_stack",{stack:m.type})},children:"Eject"}),children:(0,e.jsx)(r.zv,{value:m.amt})},m.type)})||(0,e.jsx)(r.Ki.Item,{label:"Empty",color:"average",children:"No stacks in machine."})]})})})})}},25620:function(P,y,t){"use strict";t.r(y),t.d(y,{MiningVendor:function(){return v}});var e=t(88095),s=t(33854),n=t(44583),r=t(4413),i=t(92514),a=t(68040),g=t(4418);function x(){return x=Object.assign||function(d){for(var p=1;p=0)&&(C[b]=d[b]);return C}var h={Alphabetical:function(d,p){return d.name>p.name},"By availability":function(d,p){return-(d.affordable-p.affordable)},"By price":function(d,p){return d.price-p.price}},v=function(d){var p=function(k){I(k)},C=function(k){D(k)},j=function(k){K(k)},b=(0,n.useState)(""),O=b[0],I=b[1],_=(0,n.useState)("Alphabetical"),M=_[0],D=_[1],A=(0,n.useState)(!1),R=A[0],K=A[1];return(0,e.jsx)(a.p8,{width:400,height:450,children:(0,e.jsxs)(a.p8.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:[(0,e.jsx)(g.MiningUser,{insertIdText:"Please insert an ID in order to make purchases."}),(0,e.jsx)(m,{searchText:O,sortOrder:M,descending:R,onSearchText:p,onSortOrder:C,onDescending:j}),(0,e.jsx)(u,{searchText:O,sortOrder:M,descending:R,onSearchText:p,onSortOrder:C,onDescending:j})]})})},u=function(d){var p=(0,r.Oc)(),C=p.act,j=p.data,b=j.has_id,O=j.id,I=j.items,_=(0,s.XZ)(d.searchText,function(A){return A[0]}),M=!1,D=Object.entries(I).map(function(A,R){var K=Object.entries(A[1]).filter(_).map(function(N){return N[1].affordable=b&&O.points>=N[1].price,N[1]}).sort(h[d.sortOrder]);if(K.length!==0)return d.descending&&(K=K.reverse()),M=!0,(0,e.jsx)(c,{title:A[0],items:K},A[0])});return(0,e.jsx)(i.so.Item,{grow:"1",overflow:"auto",children:(0,e.jsx)(i.wn,{children:M?D:(0,e.jsx)(i.az,{color:"label",children:"No items matching your criteria was found!"})})})},m=function(d){return(0,e.jsx)(i.az,{mb:"0.5rem",children:(0,e.jsxs)(i.so,{width:"100%",children:[(0,e.jsx)(i.so.Item,{grow:"1",mr:"0.5rem",children:(0,e.jsx)(i.pd,{placeholder:"Search by item name..",width:"100%",onInput:function(p,C){return d.onSearchText(C)}})}),(0,e.jsx)(i.so.Item,{basis:"30%",children:(0,e.jsx)(i.ms,{selected:"Alphabetical",options:Object.keys(h),width:"100%",lineHeight:"19px",onSelected:function(p){return d.onSortOrder(p)}})}),(0,e.jsx)(i.so.Item,{children:(0,e.jsx)(i.$n,{icon:d.descending?"arrow-down":"arrow-up",height:"19px",tooltip:d.descending?"Descending order":"Ascending order",tooltipPosition:"bottom-end",ml:"0.5rem",onClick:function(){return d.onDescending(!d.descending)}})})]})})},c=function(d){var p=(0,r.Oc)(),C=p.act,j=p.data,b=d.title,O=d.items,I=f(d,["title","items"]);return(0,e.jsx)(i.Nt,x({open:!0,title:b},I,{children:O.map(function(_){return(0,e.jsxs)(i.az,{children:[(0,e.jsx)(i.az,{display:"inline-block",verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:_.name}),(0,e.jsx)(i.$n,{disabled:!j.has_id||j.id.points<_.price,content:_.price.toLocaleString("en-US"),width:"15%",textAlign:"center",style:{float:"right"},onClick:function(){return C("purchase",{cat:b,name:_.name})}}),(0,e.jsx)(i.az,{style:{clear:"both"}})]},_.name)})}))}},83326:function(P,y,t){"use strict";t.r(y),t.d(y,{MobSpawner:function(){return a}});var e=t(88095),s=t(44583),n=t(4413),r=t(92514),i=t(68040),a=function(f){var h=function(Be){A.health=Be,Q(Be)},v=function(Be){A.max_health=Be,Q(Be)},u=function(Be){A.melee_damage_lower=Be,Q(Be)},m=function(Be){A.melee_damage_upper=Be,Q(Be)},c=function(Be){A.path_name=Be,Q(Be)},d=function(Be){A.desc=Be,Q(Be)},p=function(Be){A.flavor_text=Be,Q(Be)},C=function(Be){F(Be)},j=function(Be){z(Be)},b=function(Be){oe(Be)},O=function(Be){ce(Be)},I=function(Be){ve(Be)},_=function(Be){Je(Be)},M=(0,n.Oc)(),D=M.act,A=M.data,R=(0,s.useState)(0),K=R[0],N=R[1],k=(0,s.useState)(0),V=k[0],F=k[1],J=(0,s.useState)(),H=J[0],Q=J[1],Z=(0,s.useState)(A.initial_x),X=Z[0],z=Z[1],Y=(0,s.useState)(A.initial_y),ee=Y[0],oe=Y[1],ne=(0,s.useState)(A.initial_z),ue=ne[0],ce=ne[1],me=(0,s.useState)(100),xe=me[0],ve=me[1],be=(0,s.useState)(1),we=be[0],Je=be[1],ze=[];return ze[0]=(0,e.jsx)(g,{radius:V,x:X,y:ee,z:ue,sizeMultiplier:xe,amount:we,onRadius:C,onHealth:h,onMaxHealth:v,onMeleeDamageLower:u,onMeleeDamageupper:m,onName:c,onDesc:d,onFlavor:p,onX:j,onY:b,onZ:O,onSizeMultiplier:I,onAmount:_}),ze[1]=(0,e.jsx)(x,{}),(0,e.jsx)(i.p8,{width:890,height:880,theme:"abstract",children:(0,e.jsxs)(i.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(r.tU,{children:[(0,e.jsx)(r.tU.Tab,{selected:K===0,onClick:function(){return N(0)},children:"General Settings"}),(0,e.jsx)(r.tU.Tab,{selected:K===1,onClick:function(){return N(1)},children:"Vore Settings [WIP]"})]}),ze[K]||"Error"]})})},g=function(f){var h=(0,n.Oc)(),v=h.act,u=h.data;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.wn,{title:"General",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Mob Name",children:(0,e.jsx)(r.pd,{fluid:!0,value:u.path_name,onChange:function(m,c){return f.onName(c)}})}),(0,e.jsx)(r.Ki.Item,{label:"Mob Path",children:(0,e.jsx)(r.$n,{fluid:!0,content:u.path||"Select Path",onClick:function(m){return v("select_path")}})}),(0,e.jsx)(r.Ki.Item,{label:"Spawn Amount",children:(0,e.jsx)(r.Q7,{value:f.amount,minValue:0,maxValue:256,onChange:function(m,c){return f.onAmount(c)}})}),(0,e.jsx)(r.Ki.Item,{label:"Size ("+f.sizeMultiplier+"%)",children:(0,e.jsx)(r.N6,{value:f.sizeMultiplier,minValue:50,maxValue:200,unit:"%",onChange:function(m,c){return f.onSizeMultiplier(c)}})})]})}),(0,e.jsx)(r.wn,{title:"General Settings",children:(0,e.jsxs)(r.so,{horizontal:!0,children:[(0,e.jsx)(r.so.Item,{FlexGrow:!0,children:(0,e.jsx)(r.wn,{title:"Positional Settings",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Spawn (X/Y/Z) Coords",children:[(0,e.jsx)(r.Q7,{value:u.loc_lock?u.loc_x:f.x,minValue:0,maxValue:256,onChange:function(m,c){return f.onX(c)}}),(0,e.jsx)(r.Q7,{value:u.loc_lock?u.loc_y:f.y,minValue:0,maxValue:256,onChange:function(m,c){return f.onY(c)}}),(0,e.jsx)(r.Q7,{value:u.loc_lock?u.loc_z:f.z,minValue:0,maxValue:256,onChange:function(m,c){return f.onZ(c)}}),(0,e.jsx)(r.$n.Checkbox,{content:"Lock coords to self",checked:u.loc_lock,onClick:function(){return v("loc_lock")}})]}),(0,e.jsx)(r.Ki.Item,{label:"Spawn Radius (WIP)",children:(0,e.jsx)(r.Q7,{value:f.radius,disabled:!0,minValue:0,maxValue:256,onChange:function(m,c){return f.onRadius(c)}})})]})})}),(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.cG,{vertical:!0})}),(0,e.jsxs)(r.so.Item,{FlexGrow:!0,children:[(0,e.jsx)(r.wn,{title:"AI settings",buttons:(0,e.jsx)(r.$n,{selected:u.use_custom_ai,fill:!0,content:"Use Custom AI",onClick:function(){return v("toggle_custom_ai")}}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{children:(0,e.jsx)(r.$n,{fluid:!0,content:u.ai_type||"Choose AI Type",onClick:function(m){return v("set_ai_path")}})}),(0,e.jsx)(r.Ki.Item,{children:(0,e.jsx)(r.$n,{fluid:!0,content:u.faction||"Set Faction",onClick:function(m){return v("set_faction")}})}),(0,e.jsx)(r.Ki.Item,{children:(0,e.jsx)(r.$n,{fluid:!0,content:u.intent||"Set Intent",onClick:function(m){return v("set_intent")}})})]})}),(0,e.jsx)(r.wn,{title:"Health & Damage",children:(0,e.jsxs)(r.Ki,{children:[u.max_health&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.Ki.Item,{label:"Max Health",children:(0,e.jsx)(r.Q7,{value:u.max_health,onChange:function(m,c){return f.onMaxHealth(c)}})}),(0,e.jsx)(r.Ki.Item,{label:"Health",children:(0,e.jsx)(r.Q7,{value:u.health,onChange:function(m,c){return f.onHealth(c)}})}),(0,e.jsx)("br",{})]})||"Note: Only available for '/mob/living'",u.melee_damage_lower&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.Ki.Item,{label:"Melee Damage (Lower)",children:(0,e.jsx)(r.Q7,{value:u.melee_damage_lower,onChange:function(m,c){return f.onMeleeDamageLower(c)}})}),(0,e.jsx)(r.Ki.Item,{label:"Melee Damage (Upper)",children:(0,e.jsx)(r.Q7,{value:u.melee_damage_upper,onChange:function(m,c){return f.onMeleeDamageUpper(c)}})})]})||"Note: Only available for '/mob/living/simple_mob'"]})})]})]})}),(0,e.jsx)(r.wn,{title:"Descriptions",children:(0,e.jsxs)(r.so,{children:[(0,e.jsxs)(r.so.Item,{width:"50%",children:["Description:",(0,e.jsx)("br",{}),(0,e.jsx)(r.fs,{height:"18rem",onChange:function(m,c){return f.onDesc(c)},value:u.desc})]}),(0,e.jsxs)(r.so.Item,{width:"50%",children:["Flavor Text:",(0,e.jsx)("br",{}),(0,e.jsx)(r.fs,{height:"18rem",value:u.flavor_text,onChange:function(m,c){return f.onFlavor(c)}})]})]})}),(0,e.jsx)(r.$n,{fill:!0,content:"Spawn",color:"teal",onClick:function(){return v("start_spawn",{amount:f.amount,name:u.path_name,desc:u.desc,max_health:u.max_health,health:u.health,melee_damage_lower:u.melee_damage_lower,melee_damage_upper:u.melee_damage_upper,flavor_text:u.flavor_text,size_multiplier:f.sizeMultiplier*.01,x:u.loc_lock?u.loc_x:f.x,y:u.loc_lock?u.loc_y:f.y,z:u.loc_lock?u.loc_z:f.z,radius:f.radius})}})]})},x=function(f){var h=(0,n.Oc)(),v=h.act,u=h.data;return(0,e.jsxs)(r.wn,{title:"WIP",children:["This Tab is still under construction!",(0,e.jsx)("br",{}),"Functionality will be added in later updates."]})}},44372:function(P,y,t){"use strict";t.r(y),t.d(y,{MuleBot:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(x){var f=(0,s.Oc)(),h=f.act,v=f.data,u=v.suffix,m=v.load,c=v.hatch;return(0,e.jsx)(r.p8,{width:350,height:500,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsxs)(n.wn,{title:"Multiple Utility Load Effector Mk. III",children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"ID",children:u}),(0,e.jsx)(n.Ki.Item,{label:"Current Load",buttons:(0,e.jsx)(n.$n,{icon:"eject",content:"Unload Now",disabled:!m,onClick:function(){return h("unload")}}),children:m||"None."})]}),c?(0,e.jsx)(g,{}):(0,e.jsx)(a,{})]})})})},a=function(x){var f=(0,s.Oc)(),h=f.act,v=f.data,u=v.power,m=v.locked,c=v.issilicon,d=v.auto_return,p=v.crates_only;return(0,e.jsx)(n.wn,{title:"Controls",buttons:(0,e.jsx)(n.$n,{icon:"power-off",content:u?"On":"Off",selected:u,disabled:m&&!c,onClick:function(){return h("power")}}),children:m&&!c?(0,e.jsx)(n.az,{color:"bad",children:"This interface is currently locked."}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{fluid:!0,icon:"stop",content:"Stop",onClick:function(){return h("stop")}}),(0,e.jsx)(n.$n,{fluid:!0,icon:"truck-monster",content:"Proceed",onClick:function(){return h("go")}}),(0,e.jsx)(n.$n,{fluid:!0,icon:"home",content:"Return Home",onClick:function(){return h("home")}}),(0,e.jsx)(n.$n,{fluid:!0,icon:"map-marker-alt",content:"Set Destination",onClick:function(){return h("destination")}}),(0,e.jsx)(n.$n,{fluid:!0,icon:"cog",content:"Set Home",onClick:function(){return h("sethome")}}),(0,e.jsx)(n.$n,{fluid:!0,icon:"home",selected:d,content:"Auto Return Home: "+(d?"Enabled":"Disabled"),onClick:function(){return h("autoret")}}),(0,e.jsx)(n.$n,{fluid:!0,icon:"biking",selected:!p,content:"Non-standard Cargo: "+(p?"Disabled":"Enabled"),onClick:function(){return h("cargotypes")}})]})})},g=function(x){var f=(0,s.Oc)(),h=f.act,v=f.data,u=v.safety;return(0,e.jsx)(n.wn,{title:"Maintenance Panel",children:(0,e.jsx)(n.$n,{fluid:!0,icon:"skull-crossbones",color:u?"green":"red",content:"Safety: "+(u?"Engaged":"Disengaged (DANGER)"),onClick:function(){return h("safety")}})})}},72207:function(P,y,t){"use strict";t.r(y),t.d(y,{NIF:function(){return v}});var e=t(88095),s=t(44583),n=t(4413),r=t(92514),i=t(68040),a=0,g=1,x=2,f=3,h=4,v=function(p){var C=(0,n.Oc)(),j=C.act,b=C.config,O=C.data,I=O.theme,_=O.last_notification,M=(0,s.useState)(!1),D=M[0],A=M[1],R=(0,s.useState)(null),K=R[0],N=R[1];return(0,e.jsx)(i.p8,{theme:I,width:500,height:400,children:(0,e.jsxs)(i.p8.Content,{scrollable:!0,children:[!!_&&(0,e.jsx)(r.IC,{info:!0,children:(0,e.jsx)(r.XI,{verticalAlign:"middle",children:(0,e.jsxs)(r.XI.Row,{verticalAlign:"middle",children:[(0,e.jsx)(r.XI.Cell,{verticalAlign:"middle",children:_}),(0,e.jsx)(r.XI.Cell,{verticalAlign:"middle",collapsing:!0,children:(0,e.jsx)(r.$n,{color:"red",icon:"times",tooltip:"Dismiss",tooltipPosition:"left",onClick:function(){return j("dismissNotification")}})})]})})}),!!K&&(0,e.jsx)(r.aF,{m:1,p:0,color:"label",children:(0,e.jsxs)(r.wn,{m:0,title:K.name,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n.Confirm,{icon:"ban",color:"bad",content:"Uninstall",confirmIcon:"ban",confirmContent:"Uninstall "+K.name+"?",onClick:function(){j("uninstall",{module:K.ref}),N(null)}}),(0,e.jsx)(r.$n,{icon:"window-close",onClick:function(){return N(null)}})]}),children:[(0,e.jsx)(r.az,{children:K.desc}),(0,e.jsxs)(r.az,{children:["It consumes",(0,e.jsx)(r.az,{color:"good",inline:!0,children:K.p_drain}),"energy units while installed, and",(0,e.jsx)(r.az,{color:"average",inline:!0,children:K.a_drain}),"additionally while active."]}),(0,e.jsxs)(r.az,{color:K.illegal?"bad":"good",children:["It is ",K.illegal?"NOT ":"","a legal software package."]}),(0,e.jsxs)(r.az,{children:["The MSRP of the package is",(0,e.jsxs)(r.az,{color:"good",inline:!0,children:[K.cost,"\u20AE."]})]}),(0,e.jsxs)(r.az,{children:["The difficulty to construct the associated implant is\xA0",(0,e.jsxs)(r.az,{color:"good",inline:!0,children:["Rating ",K.wear]}),"."]})]})}),(0,e.jsx)(r.wn,{title:"Welcome to your NIF, "+b.user.name,buttons:(0,e.jsx)(r.$n,{icon:"cogs",tooltip:"Settings",tooltipPosition:"bottom-end",selected:D,onClick:function(){return A(!D)}}),children:D&&(0,e.jsx)(d,{})||(0,e.jsx)(c,{setViewing:N})})]})})},u=function(p,C){switch(p){case a:return C<25?"Service Needed Soon":"Operating Normally";case g:return"Insufficient Energy!";case x:return"System Failure!";case f:return"Adapting To User"}return"Unknown"},m=function(p,C){return C?p>=450?"Overcharged":p>=250?"Good Charge":"Low Charge":p>=250?"NIF Power Requirement met.":p>=150?"Fluctuations in available power.":"Power failure imminent."},c=function(p){var C=(0,n.Oc)(),j=C.act,b=C.config,O=C.data,I=O.nif_percent,_=O.nif_stat,M=O.nutrition,D=O.isSynthetic,A=O.modules,R=p.setViewing;return(0,e.jsxs)(r.az,{children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"NIF Condition",children:(0,e.jsxs)(r.z2,{value:I,minValue:0,maxValue:100,ranges:{good:[50,1/0],average:[25,50],bad:[-1/0,0]},children:[u(_,I)," (",(0,e.jsx)(r.zv,{value:I}),"%)"]})}),(0,e.jsx)(r.Ki.Item,{label:"NIF Power",children:(0,e.jsx)(r.z2,{value:M,minValue:0,maxValue:700,ranges:{good:[250,1/0],average:[150,250],bad:[0,150]},children:m(M,D)})})]}),(0,e.jsx)(r.wn,{level:2,title:"NIFSoft Modules",mt:1,children:(0,e.jsx)(r.Ki,{children:A.map(function(K){return(0,e.jsx)(r.Ki.Item,{label:K.name,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n.Confirm,{icon:"trash",color:"bad",confirmContent:"UNINSTALL?",confirmIcon:"trash",tooltip:"Uninstall Module",tooltipPosition:"left",onClick:function(){return j("uninstall",{module:K.ref})}}),(0,e.jsx)(r.$n,{icon:"search",onClick:function(){return R(K)},tooltip:"View Information",tooltipPosition:"left"})]}),children:K.activates&&(0,e.jsx)(r.$n,{fluid:!0,selected:K.active,content:K.stat_text,onClick:function(){return j("toggle_module",{module:K.ref})}})||(0,e.jsx)(r.az,{children:K.stat_text})},K.ref)})})})]})},d=function(p){var C=(0,n.Oc)(),j=C.act,b=C.data,O=b.valid_themes,I=b.theme;return(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"NIF Theme",verticalAlign:"top",children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.ms,{grow:1,selected:I||"default",options:O,onSelected:function(_){return j("setTheme",{theme:_})}})}),I?(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{width:"22px",icon:"undo",color:"red",onClick:function(){j("setTheme",{theme:null})}})}):""]})})})}},96576:function(P,y,t){"use strict";t.r(y),t.d(y,{NTNetRelay:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=t(13221),a=function(f){var h=(0,s.Oc)(),v=h.act,u=h.data,m=u.dos_crashed,c=u.enabled,d=u.dos_overload,p=u.dos_capacity,C=(0,e.jsx)(g,{});return m&&(C=(0,e.jsx)(x,{})),(0,e.jsx)(r.p8,{width:m?700:500,height:m?600:300,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:C})})},g=function(f){var h=(0,s.Oc)(),v=h.act,u=h.data,m=u.dos_crashed,c=u.enabled,d=u.dos_overload,p=u.dos_capacity;return(0,e.jsx)(n.wn,{title:"Status",buttons:(0,e.jsx)(n.$n,{icon:"power-off",selected:c,content:"Relay "+(c?"On":"Off"),onClick:function(){return v("toggle")}}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Network Buffer Status",children:[d," / ",p," GQ"]}),(0,e.jsx)(n.Ki.Item,{label:"Options",children:(0,e.jsx)(n.$n,{icon:"exclamation-triangle",content:"Purge network blacklist",onClick:function(){return v("purge")}})})]})})},x=function(f){var h=(0,s.Oc)(),v=h.act,u=h.data;return(0,e.jsxs)(i.FullscreenNotice,{title:"ERROR",children:[(0,e.jsxs)(n.az,{fontSize:"1.5rem",bold:!0,color:"bad",children:[(0,e.jsx)(n.In,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"}),(0,e.jsx)("h2",{children:"NETWORK BUFFERS OVERLOADED"}),(0,e.jsx)("h3",{children:"Overload Recovery Mode"}),(0,e.jsx)("i",{children:"This system is suffering temporary outage due to overflow of traffic buffers. Until buffered traffic is processed, all further requests will be dropped. Frequent occurences of this error may indicate insufficient hardware capacity of your network. Please contact your network planning department for instructions on how to resolve this issue."}),(0,e.jsx)("h3",{children:"ADMINISTRATIVE OVERRIDE"}),(0,e.jsx)("b",{children:" CAUTION - Data loss may occur "})]}),(0,e.jsx)(n.az,{children:(0,e.jsx)(n.$n,{icon:"exclamation-triangle",content:"Purge buffered traffic",onClick:function(){return v("restart")}})})]})}},80707:function(P,y,t){"use strict";t.r(y),t.d(y,{Newscaster:function(){return d}});var e=t(88095),s=t(33854),n=t(4413),r=t(92514),i=t(68040),a=t(82489),g="Main Menu",x="New Channel",f="View List",h="New Story",v="Print",u="New Wanted",m="View Wanted",c="View Selected Channel",d=function(R){var K=(0,n.Oc)(),N=K.act,k=K.data,V=k.screen,F=k.user;return(0,e.jsx)(i.p8,{width:600,height:600,children:(0,e.jsxs)(i.p8.Content,{scrollable:!0,children:[(0,e.jsx)(a.TemporaryNotice,{decode:!0}),(0,e.jsx)(p,{})]})})},p=function(R){var K=(0,n.Oc)(),N=K.act,k=K.data,V=k.user,F=(0,n.QY)("screen",g),J=F[0],H=F[1],Q=A[J];return(0,e.jsx)(r.az,{children:(0,e.jsx)(Q,{setScreen:H})})},C=function(R){var K=(0,n.Oc)(),N=K.act,k=K.data,V=k.securityCaster,F=k.wanted_issue,J=R.setScreen;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(r.wn,{title:"Main Menu",children:[F&&(0,e.jsx)(r.$n,{fluid:!0,icon:"eye",onClick:function(){return J(m)},color:"bad",children:"Read WANTED Issue"}),(0,e.jsx)(r.$n,{fluid:!0,icon:"eye",onClick:function(){return J(f)},children:"View Feed Channels"}),(0,e.jsx)(r.$n,{fluid:!0,icon:"plus",onClick:function(){return J(x)},children:"Create Feed Channel"}),(0,e.jsx)(r.$n,{fluid:!0,icon:"plus",onClick:function(){return J(h)},children:"Create Feed Message"}),(0,e.jsx)(r.$n,{fluid:!0,icon:"print",onClick:function(){return J(v)},children:"Print Newspaper"})]}),!!V&&(0,e.jsx)(r.wn,{title:"Feed Security Functions",children:(0,e.jsx)(r.$n,{fluid:!0,icon:"plus",onClick:function(){return J(u)},children:'Manage "Wanted" Issue'})})]})},j=function(R){var K=(0,n.Oc)(),N=K.act,k=K.data,V=k.channel_name,F=k.c_locked,J=k.user,H=R.setScreen;return(0,e.jsxs)(r.wn,{title:"Creating new Feed Channel",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return H(g)},children:"Back"}),children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Channel Name",children:(0,e.jsx)(r.pd,{fluid:!0,value:(0,s.jT)(V),onInput:function(Q,Z){return N("set_channel_name",{val:Z})}})}),(0,e.jsx)(r.Ki.Item,{label:"Channel Author",color:"good",children:J}),(0,e.jsx)(r.Ki.Item,{label:"Accept Public Feeds",children:(0,e.jsx)(r.$n,{icon:F?"lock":"lock-open",selected:!F,onClick:function(){return N("set_channel_lock")},children:F?"No":"Yes"})})]}),(0,e.jsx)(r.$n,{fluid:!0,color:"good",icon:"plus",onClick:function(){return N("submit_new_channel")},children:"Submit Channel"}),(0,e.jsx)(r.$n,{fluid:!0,color:"bad",icon:"undo",onClick:function(){return H(g)},children:"Cancel"})]})},b=function(R){var K=(0,n.Oc)(),N=K.act,k=K.data,V=k.channels,F=R.setScreen;return(0,e.jsx)(r.wn,{title:"Station Feed Channels",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return F(g)},children:"Back"}),children:V.map(function(J){return(0,e.jsx)(r.$n,{fluid:!0,icon:"eye",color:J.admin?"good":J.censored?"bad":"",onClick:function(){N("show_channel",{show_channel:J.ref}),F(c)},children:(0,s.jT)(J.name)},J.name)})})},O=function(R){var K=(0,n.Oc)(),N=K.act,k=K.data,V=k.channel_name,F=k.user,J=k.title,H=k.msg,Q=k.photo_data,Z=R.setScreen;return(0,e.jsxs)(r.wn,{title:"Creating new Feed Message...",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return Z(g)},children:"Back"}),children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Receiving Channel",children:(0,e.jsx)(r.$n,{fluid:!0,onClick:function(){return N("set_channel_receiving")},children:V||"Unset"})}),(0,e.jsx)(r.Ki.Item,{label:"Message Author",color:"good",children:F}),(0,e.jsx)(r.Ki.Item,{label:"Message Title",verticalAlign:"top",children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.wn,{width:"99%",inline:!0,children:J||"(no title yet)"})}),(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{verticalAlign:"top",onClick:function(){return N("set_new_title")},icon:"pen",tooltip:"Edit Title",tooltipPosition:"left"})})]})}),(0,e.jsx)(r.Ki.Item,{label:"Message Body",verticalAlign:"top",children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.wn,{width:"99%",inline:!0,children:H||"(no message yet)"})}),(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{verticalAlign:"top",onClick:function(){return N("set_new_message")},icon:"pen",tooltip:"Edit Message",tooltipPosition:"left"})})]})}),(0,e.jsx)(r.Ki.Item,{label:"Attach Photo",children:(0,e.jsx)(r.$n,{fluid:!0,icon:"image",onClick:function(){return N("set_attachment")},children:Q?"Photo Attached":"No Photo"})})]}),(0,e.jsx)(r.$n,{fluid:!0,color:"good",icon:"plus",onClick:function(){return N("submit_new_message")},children:"Submit Message"}),(0,e.jsx)(r.$n,{fluid:!0,color:"bad",icon:"undo",onClick:function(){return Z(g)},children:"Cancel"})]})},I=function(R){var K=(0,n.Oc)(),N=K.act,k=K.data,V=k.total_num,F=k.active_num,J=k.message_num,H=k.paper_remaining,Q=R.setScreen;return(0,e.jsxs)(r.wn,{title:"Printing",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return Q(g)},children:"Back"}),children:[(0,e.jsxs)(r.az,{color:"label",mb:1,children:["Newscaster currently serves a total of ",V," Feed channels,"," ",F," of which are active, and a total of ",J," Feed stories."]}),(0,e.jsx)(r.Ki,{children:(0,e.jsxs)(r.Ki.Item,{label:"Liquid Paper remaining",children:[H*100," cm\xB3"]})}),(0,e.jsx)(r.$n,{mt:1,fluid:!0,color:"good",icon:"plus",onClick:function(){return N("print_paper")},children:"Print Paper"}),(0,e.jsx)(r.$n,{fluid:!0,color:"bad",icon:"undo",onClick:function(){return Q(g)},children:"Cancel"})]})},_=function(R){var K=(0,n.Oc)(),N=K.act,k=K.data,V=k.channel_name,F=k.msg,J=k.photo_data,H=k.user,Q=k.wanted_issue,Z=R.setScreen;return(0,e.jsxs)(r.wn,{title:"Wanted Issue Handler",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return Z(g)},children:"Back"}),children:[(0,e.jsxs)(r.Ki,{children:[!!Q&&(0,e.jsx)(r.Ki.Item,{label:"Already In Circulation",children:"A wanted issue is already in circulation. You can edit or cancel it below."}),(0,e.jsx)(r.Ki.Item,{label:"Criminal Name",children:(0,e.jsx)(r.pd,{fluid:!0,value:(0,s.jT)(V),onInput:function(X,z){return N("set_channel_name",{val:z})}})}),(0,e.jsx)(r.Ki.Item,{label:"Description",children:(0,e.jsx)(r.pd,{fluid:!0,value:(0,s.jT)(F),onInput:function(X,z){return N("set_wanted_desc",{val:z})}})}),(0,e.jsx)(r.Ki.Item,{label:"Attach Photo",children:(0,e.jsx)(r.$n,{fluid:!0,icon:"image",onClick:function(){return N("set_attachment")},children:J?"Photo Attached":"No Photo"})}),(0,e.jsx)(r.Ki.Item,{label:"Prosecutor",color:"good",children:H})]}),(0,e.jsx)(r.$n,{mt:1,fluid:!0,color:"good",icon:"plus",onClick:function(){return N("submit_wanted")},children:"Submit Wanted Issue"}),!!Q&&(0,e.jsx)(r.$n,{fluid:!0,color:"average",icon:"minus",onClick:function(){return N("cancel_wanted")},children:"Take Down Issue"}),(0,e.jsx)(r.$n,{fluid:!0,color:"bad",icon:"undo",onClick:function(){return Z(g)},children:"Cancel"})]})},M=function(R){var K=(0,n.Oc)(),N=K.act,k=K.data,V=k.wanted_issue,F=R.setScreen;return V?(0,e.jsx)(r.wn,{title:"--STATIONWIDE WANTED ISSUE--",color:"bad",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return F(g)},children:"Back"}),children:(0,e.jsx)(r.az,{color:"white",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Submitted by",color:"good",children:(0,s.jT)(V.author)}),(0,e.jsx)(r.Ki.Divider,{}),(0,e.jsx)(r.Ki.Item,{label:"Criminal",children:(0,s.jT)(V.criminal)}),(0,e.jsx)(r.Ki.Item,{label:"Description",children:(0,s.jT)(V.desc)}),(0,e.jsx)(r.Ki.Item,{label:"Photo",children:V.img&&(0,e.jsx)("img",{src:V.img})||"None"})]})})}):(0,e.jsx)(r.wn,{title:"No Outstanding Wanted Issues",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return F(g)},children:"Back"}),children:"There are no wanted issues currently outstanding."})},D=function(R){var K=(0,n.Oc)(),N=K.act,k=K.data,V=k.viewing_channel,F=k.securityCaster,J=k.company,H=R.setScreen;return V?(0,e.jsxs)(r.wn,{title:(0,s.jT)(V.name),buttons:(0,e.jsxs)(e.Fragment,{children:[!!F&&(0,e.jsx)(r.$n.Confirm,{color:"bad",icon:"ban",confirmIcon:"ban",content:"Issue D-Notice",onClick:function(){return N("toggle_d_notice",{ref:V.ref})}}),(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return H(f)},children:"Back"})]}),children:[(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Channel Created By",children:F&&(0,e.jsx)(r.$n.Confirm,{color:"bad",icon:"strikethrough",confirmIcon:"strikethrough",content:(0,s.jT)(V.author),tooltip:"Censor?",confirmContent:"Censor Author",onClick:function(){return N("censor_channel_author",{ref:V.ref})}})||(0,e.jsx)(r.az,{children:(0,s.jT)(V.author)})})}),!!V.censored&&(0,e.jsxs)(r.az,{color:"bad",children:["ATTENTION: This channel has been deemed as threatening to the welfare of the station, and marked with a ",J," D-Notice. No further feed story additions are allowed while the D-Notice is in effect."]}),!!V.messages.length&&V.messages.map(function(Q){return(0,e.jsxs)(r.wn,{children:["- ",(0,s.jT)(Q.body),!!Q.img&&(0,e.jsxs)(r.az,{children:[(0,e.jsx)("img",{src:"data:image/png;base64,"+Q.img}),(0,s.jT)(Q.caption)||null]}),(0,e.jsxs)(r.az,{color:"grey",children:["[Story by ",(0,s.jT)(Q.author)," -"," ",Q.timestamp,"]"]}),!!F&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n.Confirm,{mt:1,color:"bad",icon:"strikethrough",confirmIcon:"strikethrough",content:"Censor Story",onClick:function(){return N("censor_channel_story_body",{ref:Q.ref})}}),(0,e.jsx)(r.$n.Confirm,{color:"bad",icon:"strikethrough",confirmIcon:"strikethrough",content:"Censor Author",onClick:function(){return N("censor_channel_story_author",{ref:Q.ref})}})]})]},Q.ref)})||!V.censored&&(0,e.jsx)(r.az,{color:"average",children:"No feed messages found in channel."})]}):(0,e.jsx)(r.wn,{title:"Channel Not Found",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return H(f)},children:"Back"}),children:"The channel you were looking for no longer exists."})},A={};A[g]=C,A[x]=j,A[f]=b,A[h]=O,A[v]=I,A[u]=_,A[m]=M,A[c]=D},58942:function(P,y,t){"use strict";t.r(y),t.d(y,{NoticeBoard:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,h=f.notices;return(0,e.jsx)(r.p8,{width:330,height:300,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(n.wn,{children:h.length?(0,e.jsx)(n.Ki,{children:h.map(function(v,u){return(0,e.jsxs)(n.Ki.Item,{label:v.name,children:[v.isphoto&&(0,e.jsx)(n.$n,{icon:"image",content:"Look",onClick:function(){return x("look",{ref:v.ref})}})||v.ispaper&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"sticky-note",content:"Read",onClick:function(){return x("read",{ref:v.ref})}}),(0,e.jsx)(n.$n,{icon:"pen",content:"Write",onClick:function(){return x("write",{ref:v.ref})}})]})||"Unknown Entity",(0,e.jsx)(n.$n,{icon:"minus-circle",content:"Remove",onClick:function(){return x("remove",{ref:v.ref})}})]},u)})}):(0,e.jsx)(n.az,{color:"average",children:"No notices posted here."})})})})}},90782:function(P,y,t){"use strict";t.r(y),t.d(y,{NtosAccessDecrypter:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=t(17575),a=function(g){var x=(0,s.Oc)(),f=x.act,h=x.data,v=h.message,u=h.running,m=h.rate,c=h.factor,d=h.regions,p=function(j){for(var b="";b.lengthc?b+="0":b+="1";return b},C=45;return(0,e.jsx)(r.Zm,{width:600,height:600,theme:"syndicate",children:(0,e.jsx)(r.Zm.Content,{children:v&&(0,e.jsx)(n.IC,{children:v})||u&&(0,e.jsxs)(n.wn,{children:["Attempting to decrypt network access codes. Please wait. Rate:"," ",m," PHash/s",(0,e.jsx)(n.az,{children:p(C)}),(0,e.jsx)(n.az,{children:p(C)}),(0,e.jsx)(n.az,{children:p(C)}),(0,e.jsx)(n.az,{children:p(C)}),(0,e.jsx)(n.az,{children:p(C)}),(0,e.jsx)(n.$n,{fluid:!0,icon:"ban",onClick:function(){return f("PRG_reset")},children:"Abort"})]})||(0,e.jsx)(n.wn,{title:"Pick access code to decrypt",children:d.length&&(0,e.jsx)(i.IdentificationComputerRegions,{actName:"PRG_execute"})||(0,e.jsx)(n.az,{children:"Please insert ID card."})})})})}},26042:function(P,y,t){"use strict";t.r(y),t.d(y,{NtosArcade:function(){return a}});var e=t(88095),s=t(80676),n=t(4413),r=t(92514),i=t(68040),a=function(g){var x=(0,n.Oc)(),f=x.act,h=x.data;return(0,e.jsx)(i.Zm,{width:450,height:350,children:(0,e.jsx)(i.Zm.Content,{children:(0,e.jsxs)(r.wn,{title:"Outbomb Cuban Pete Ultra",textAlign:"center",children:[(0,e.jsxs)(r.az,{children:[(0,e.jsxs)(r.xA,{children:[(0,e.jsxs)(r.xA.Column,{size:2,children:[(0,e.jsx)(r.az,{m:1}),(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Player Health",children:(0,e.jsxs)(r.z2,{value:h.PlayerHitpoints,minValue:0,maxValue:30,ranges:{olive:[31,1/0],good:[20,31],average:[10,20],bad:[-1/0,10]},children:[h.PlayerHitpoints,"HP"]})}),(0,e.jsx)(r.Ki.Item,{label:"Player Magic",children:(0,e.jsxs)(r.z2,{value:h.PlayerMP,minValue:0,maxValue:10,ranges:{purple:[11,1/0],violet:[3,11],bad:[-1/0,3]},children:[h.PlayerMP,"MP"]})})]}),(0,e.jsx)(r.az,{my:1,mx:4}),(0,e.jsx)(r.wn,{backgroundColor:h.PauseState===1?"#1b3622":"#471915",children:h.Status})]}),(0,e.jsxs)(r.xA.Column,{children:[(0,e.jsxs)(r.z2,{value:h.Hitpoints,minValue:0,maxValue:45,ranges:{good:[30,1/0],average:[5,30],bad:[-1/0,5]},children:[(0,e.jsx)(r.zv,{value:h.Hitpoints}),"HP"]}),(0,e.jsx)(r.az,{m:1}),(0,e.jsx)(r.wn,{inline:!0,width:"156px",textAlign:"center",children:(0,e.jsx)("img",{src:(0,s.l)(h.BossID)})})]})]}),(0,e.jsx)(r.az,{my:1,mx:4}),(0,e.jsx)(r.$n,{icon:"fist-raised",tooltip:"Go in for the kill!",tooltipPosition:"top",disabled:h.GameActive===0||h.PauseState===1,onClick:function(){return f("Attack")},content:"Attack!"}),(0,e.jsx)(r.$n,{icon:"band-aid",tooltip:"Heal yourself!",tooltipPosition:"top",disabled:h.GameActive===0||h.PauseState===1,onClick:function(){return f("Heal")},content:"Heal!"}),(0,e.jsx)(r.$n,{icon:"magic",tooltip:"Recharge your magic!",tooltipPosition:"top",disabled:h.GameActive===0||h.PauseState===1,onClick:function(){return f("Recharge_Power")},content:"Recharge!"})]}),(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.$n,{icon:"sync-alt",tooltip:"One more game couldn't hurt.",tooltipPosition:"top",disabled:h.GameActive===1,onClick:function(){return f("Start_Game")},content:"Begin Game"}),(0,e.jsx)(r.$n,{icon:"ticket-alt",tooltip:"Claim at your local Arcade Computer for Prizes!",tooltipPosition:"top",disabled:h.GameActive===1,onClick:function(){return f("Dispense_Tickets")},content:"Claim Tickets"})]}),(0,e.jsxs)(r.az,{color:h.TicketCount>=1?"good":"normal",children:["Earned Tickets: ",h.TicketCount]})]})})})}},30873:function(P,y,t){"use strict";t.r(y),t.d(y,{NtosAtmosControl:function(){return r}});var e=t(88095),s=t(68040),n=t(42623),r=function(){return(0,e.jsx)(s.Zm,{width:870,height:708,children:(0,e.jsx)(s.Zm.Content,{children:(0,e.jsx)(n.AtmosControlContent,{})})})}},44072:function(P,y,t){"use strict";t.r(y),t.d(y,{NtosCameraConsole:function(){return v},prevNextCamera:function(){return f},selectCameras:function(){return h}});var e=t(88095),s=t(11358),n=t(28763),r=t(33854),i=t(4413),a=t(92514),g=t(68040),x=t(96524),f=function(u,m){var c,d;if(!m)return[];var p=u.findIndex(function(C){return C.name===m.name});return[(c=u[p-1])==null?void 0:c.name,(d=u[p+1])==null?void 0:d.name]},h=function(u,m,c){m===void 0&&(m=""),c===void 0&&(c="");var d=(0,r.XZ)(m,function(p){return p.name});return(0,n.L)([(0,s.pb)(function(p){return p==null?void 0:p.name}),m&&(0,s.pb)(d),c&&(0,s.pb)(function(p){return p.networks.includes(c)}),(0,s.Ul)(function(p){return p.name})])(u)},v=function(u){var m=(0,i.Oc)(),c=m.act,d=m.data,p=d.mapRef,C=d.activeCamera,j=h(d.cameras),b=f(j,C),O=b[0],I=b[1];return(0,e.jsx)(g.Zm,{width:870,height:708,children:(0,e.jsxs)(g.Zm.Content,{children:[(0,e.jsx)("div",{className:"CameraConsole__left",children:(0,e.jsx)(x.CameraConsoleContent,{})}),(0,e.jsxs)("div",{className:"CameraConsole__right",children:[(0,e.jsxs)("div",{className:"CameraConsole__toolbar",children:[(0,e.jsx)("b",{children:"Camera: "}),C&&C.name||"\u2014"]}),(0,e.jsxs)("div",{className:"CameraConsole__toolbarRight",children:["SEL:",(0,e.jsx)(a.$n,{icon:"chevron-left",disabled:!O,onClick:function(){return c("switch_camera",{name:O})}}),(0,e.jsx)(a.$n,{icon:"chevron-right",disabled:!I,onClick:function(){return c("switch_camera",{name:I})}}),"| PAN:",(0,e.jsx)(a.$n,{icon:"chevron-left",onClick:function(){return c("pan",{dir:8})}}),(0,e.jsx)(a.$n,{icon:"chevron-up",onClick:function(){return c("pan",{dir:1})}}),(0,e.jsx)(a.$n,{icon:"chevron-right",onClick:function(){return c("pan",{dir:4})}}),(0,e.jsx)(a.$n,{icon:"chevron-down",onClick:function(){return c("pan",{dir:2})}})]}),(0,e.jsx)(a.D1,{className:"CameraConsole__map",params:{id:p,type:"map"}})]})]})})}},70568:function(P,y,t){"use strict";t.r(y),t.d(y,{NtosCommunicationsConsole:function(){return r}});var e=t(88095),s=t(68040),n=t(48022),r=function(){return(0,e.jsx)(s.Zm,{width:400,height:600,children:(0,e.jsx)(s.Zm.Content,{scrollable:!0,children:(0,e.jsx)(n.CommunicationsConsoleContent,{})})})}},78162:function(P,y,t){"use strict";t.r(y),t.d(y,{NtosConfiguration:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,h=f.PC_device_theme,v=f.power_usage,u=f.battery_exists,m=f.battery,c=m===void 0?{}:m,d=f.disk_size,p=f.disk_used,C=f.hardware,j=C===void 0?[]:C;return(0,e.jsx)(r.Zm,{theme:h,width:520,height:630,children:(0,e.jsxs)(r.Zm.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{title:"Power Supply",buttons:(0,e.jsxs)(n.az,{inline:!0,bold:!0,mr:1,children:["Power Draw: ",v,"W"]}),children:(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Battery Status",color:!u&&"average",children:u?(0,e.jsxs)(n.z2,{value:c.charge,minValue:0,maxValue:c.max,ranges:{good:[c.max/2,1/0],average:[c.max/4,c.max/2],bad:[-1/0,c.max/4]},children:[c.charge," / ",c.max]}):"Not Available"})})}),(0,e.jsx)(n.wn,{title:"File System",children:(0,e.jsxs)(n.z2,{value:p,minValue:0,maxValue:d,color:"good",children:[p," GQ / ",d," GQ"]})}),(0,e.jsx)(n.wn,{title:"Hardware Components",children:j.map(function(b){return(0,e.jsx)(n.wn,{title:b.name,level:2,buttons:(0,e.jsxs)(e.Fragment,{children:[!b.critical&&(0,e.jsx)(n.$n.Checkbox,{content:"Enabled",checked:b.enabled,mr:1,onClick:function(){return x("PC_toggle_component",{name:b.name})}}),(0,e.jsxs)(n.az,{inline:!0,bold:!0,mr:1,children:["Power Usage: ",b.powerusage,"W"]})]}),children:b.desc},b.name)})})]})})}},62260:function(P,y,t){"use strict";t.r(y),t.d(y,{NtosCrewManifest:function(){return r}});var e=t(88095),s=t(68040),n=t(41608),r=function(){return(0,e.jsx)(s.Zm,{width:800,height:600,children:(0,e.jsx)(s.Zm.Content,{children:(0,e.jsx)(n.CrewManifestContent,{})})})}},12941:function(P,y,t){"use strict";t.r(y),t.d(y,{NtosCrewMonitor:function(){return i}});var e=t(88095),s=t(44583),n=t(68040),r=t(93643),i=function(){var a=function(d){h(d)},g=function(d){m(d)},x=(0,s.useState)(0),f=x[0],h=x[1],v=(0,s.useState)(1),u=v[0],m=v[1];return(0,e.jsx)(n.Zm,{width:800,height:600,children:(0,e.jsx)(n.Zm.Content,{children:(0,e.jsx)(r.CrewMonitorContent,{tabIndex:f,zoom:u,onTabIndex:a,onZoom:g})})})}},657:function(P,y,t){"use strict";t.r(y),t.d(y,{NtosDigitalWarrant:function(){return a}});var e=t(88095),s=t(11358),n=t(4413),r=t(92514),i=t(68040),a=function(h){var v=(0,n.Oc)(),u=v.act,m=v.data,c=m.warrantname,d=m.warrantcharges,p=m.warrantauth,C=m.type,j=m.allwarrants,b=(0,e.jsx)(g,{});return p&&(b=(0,e.jsx)(f,{})),(0,e.jsx)(i.Zm,{width:500,height:350,children:(0,e.jsx)(i.Zm.Content,{scrollable:!0,children:b})})},g=function(h){var v=(0,n.Oc)(),u=v.act,m=v.data,c=m.allwarrants;return(0,e.jsxs)(r.wn,{title:"Warrants",children:[(0,e.jsx)(r.$n,{icon:"plus",fluid:!0,onClick:function(){return u("addwarrant")},children:"Create New Warrant"}),(0,e.jsx)(r.wn,{level:2,title:"Arrest Warrants",children:(0,e.jsx)(x,{type:"arrest"})}),(0,e.jsx)(r.wn,{level:2,title:"Search Warrants",children:(0,e.jsx)(x,{type:"search"})})]})},x=function(h){var v=(0,n.Oc)(),u=v.act,m=v.data,c=h.type,d=m.allwarrants,p=(0,s.pb)(function(C){return C.arrestsearch===c})(d);return(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{header:!0,children:[(0,e.jsx)(r.XI.Cell,{children:c==="arrest"?"Name":"Location"}),(0,e.jsx)(r.XI.Cell,{children:c==="arrest"?"Charges":"Reason"}),(0,e.jsx)(r.XI.Cell,{children:"Authorized By"}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:"Edit"})]}),p.length&&p.map(function(C){return(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{children:C.warrantname}),(0,e.jsx)(r.XI.Cell,{children:C.charges}),(0,e.jsx)(r.XI.Cell,{children:C.auth}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return u("editwarrant",{id:C.id})}})})]},C.id)})||(0,e.jsx)(r.XI.Row,{children:(0,e.jsxs)(r.XI.Cell,{colspan:"3",color:"bad",children:["No ",c," warrants found."]})})]})},f=function(h){var v=(0,n.Oc)(),u=v.act,m=v.data,c=m.warrantname,d=m.warrantcharges,p=m.warrantauth,C=m.type,j=C==="arrest",b=C==="arrest"?"Name":"Location",O=C==="arrest"?"Charges":"Reason";return(0,e.jsx)(r.wn,{title:j?"Editing Arrest Warrant":"Editing Search Warrant",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"save",onClick:function(){return u("savewarrant")},children:"Save"}),(0,e.jsx)(r.$n,{color:"bad",icon:"trash",onClick:function(){return u("deletewarrant")},children:"Delete"}),(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return u("back")},children:"Back"})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:b,buttons:j&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"search",onClick:function(){return u("editwarrantname")}}),(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return u("editwarrantnamecustom")}})]})||(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return u("editwarrantnamecustom")}}),children:c}),(0,e.jsx)(r.Ki.Item,{label:O,buttons:(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return u("editwarrantcharges")}}),children:d}),(0,e.jsx)(r.Ki.Item,{label:"Authorized By",buttons:(0,e.jsx)(r.$n,{icon:"balance-scale",onClick:function(){return u("editwarrantauth")}}),children:p})]})})}},5070:function(P,y,t){"use strict";t.r(y),t.d(y,{NtosEmailAdministration:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=t(23969),a=function(v){var u=(0,s.Oc)(),m=u.act,c=u.data,d=c.error,p=c.cur_title,C=c.current_account,j=(0,e.jsx)(g,{});return d?j=(0,e.jsx)(x,{}):p?j=(0,e.jsx)(f,{}):C&&(j=(0,e.jsx)(h,{})),(0,e.jsx)(r.Zm,{width:600,height:450,children:(0,e.jsx)(r.Zm.Content,{scrollable:!0,children:j})})},g=function(v){var u=(0,s.Oc)(),m=u.act,c=u.data,d=c.accounts;return(0,e.jsxs)(n.wn,{title:"Welcome to the NTNet Email Administration System",children:[(0,e.jsx)(n.az,{italic:!0,mb:1,children:"SECURE SYSTEM - Have your identification ready"}),(0,e.jsx)(n.$n,{fluid:!0,icon:"plus",onClick:function(){return m("newaccount")},children:"Create New Account"}),(0,e.jsx)(n.az,{bold:!0,mt:1,mb:1,children:"Select account to administrate"}),d.map(function(p){return(0,e.jsx)(n.$n,{fluid:!0,icon:"eye",onClick:function(){return m("viewaccount",{viewaccount:p.uid})},children:p.login},p.uid)})]})},x=function(v){var u=(0,s.Oc)(),m=u.act,c=u.data,d=c.error;return(0,e.jsx)(n.wn,{title:"Message",buttons:(0,e.jsx)(n.$n,{icon:"undo",onClick:function(){return m("back")},children:"Back"}),children:d})},f=function(v){var u=(0,s.Oc)(),m=u.act,c=u.data;return(0,e.jsx)(n.wn,{children:(0,e.jsx)(i.NtosEmailClientViewMessage,{administrator:!0})})},h=function(v){var u=(0,s.Oc)(),m=u.act,c=u.data,d=c.error,p=c.msg_title,C=c.msg_body,j=c.msg_timestamp,b=c.msg_source,O=c.current_account,I=c.cur_suspended,_=c.messages,M=c.accounts;return(0,e.jsxs)(n.wn,{title:"Viewing "+O+" in admin mode",buttons:(0,e.jsx)(n.$n,{icon:"undo",onClick:function(){return m("back")},children:"Back"}),children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Account Status",children:(0,e.jsx)(n.$n,{color:I?"bad":"",icon:"ban",tooltip:(I?"Uns":"S")+"uspend Account?",onClick:function(){return m("ban")},children:I?"Suspended":"Normal"})}),(0,e.jsx)(n.Ki.Item,{label:"Actions",children:(0,e.jsx)(n.$n,{icon:"key",onClick:function(){return m("changepass")},children:"Change Password"})})]}),(0,e.jsx)(n.wn,{level:2,title:"Messages",children:_.length&&(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{children:"Source"}),(0,e.jsx)(n.XI.Cell,{children:"Title"}),(0,e.jsx)(n.XI.Cell,{children:"Received at"}),(0,e.jsx)(n.XI.Cell,{children:"Actions"})]}),_.map(function(D){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{children:D.source}),(0,e.jsx)(n.XI.Cell,{children:D.title}),(0,e.jsx)(n.XI.Cell,{children:D.timestamp}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{icon:"eye",onClick:function(){return m("viewmail",{viewmail:D.uid})},children:"View"})})]},D.uid)})]})||(0,e.jsx)(n.az,{color:"average",children:"No messages found in selected account."})})]})}},23969:function(P,y,t){"use strict";t.r(y),t.d(y,{NtosEmailClient:function(){return a},NtosEmailClientViewMessage:function(){return h}});var e=t(88095),s=t(5229),n=t(4413),r=t(92514),i=t(68040),a=function(d){var p=(0,n.Oc)(),C=p.act,j=p.data,b=j.PC_device_theme,O=j.error,I=j.downloading,_=j.current_account,M=(0,e.jsx)(c,{});return O?M=(0,e.jsx)(m,{error:O}):I?M=(0,e.jsx)(g,{}):_&&(M=(0,e.jsx)(x,{})),(0,e.jsx)(i.Zm,{resizable:!0,theme:b,children:(0,e.jsx)(i.Zm.Content,{scrollable:!0,children:M})})},g=function(d){var p=(0,n.Oc)(),C=p.act,j=p.data,b=j.down_filename,O=j.down_progress,I=j.down_size,_=j.down_speed;return(0,e.jsx)(r.wn,{title:"Downloading...",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"File",children:[b," (",I," GQ)"]}),(0,e.jsxs)(r.Ki.Item,{label:"Speed",children:[(0,e.jsx)(r.zv,{value:_})," GQ/s"]}),(0,e.jsx)(r.Ki.Item,{label:"Progress",children:(0,e.jsxs)(r.z2,{color:"good",value:O,maxValue:I,children:[O,"/",I," (",(0,s.LI)(O/I*100,1),"%)"]})})]})})},x=function(d){var p=(0,n.Oc)(),C=p.act,j=p.data,b=j.current_account,O=j.addressbook,I=j.new_message,_=j.cur_title,M=(0,e.jsx)(f,{});return O?M=(0,e.jsx)(v,{}):I?M=(0,e.jsx)(u,{}):_&&(M=(0,e.jsx)(h,{})),(0,e.jsx)(r.wn,{title:"Logged in as: "+b,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"plus",tooltip:"New Message",tooltipPosition:"left",onClick:function(){return C("new_message")}}),(0,e.jsx)(r.$n,{icon:"cogs",tooltip:"Change Password",tooltipPosition:"left",onClick:function(){return C("changepassword")}}),(0,e.jsx)(r.$n,{icon:"sign-out-alt",tooltip:"Log Out",tooltipPosition:"left",onClick:function(){return C("logout")}})]}),children:M})},f=function(d){var p=(0,n.Oc)(),C=p.act,j=p.data,b=j.current_account,O=j.folder,I=j.messagecount,_=j.messages;return(0,e.jsxs)(r.wn,{level:2,noTopPadding:!0,children:[(0,e.jsxs)(r.tU,{children:[(0,e.jsx)(r.tU.Tab,{selected:O==="Inbox",onClick:function(){return C("set_folder",{set_folder:"Inbox"})},children:"Inbox"}),(0,e.jsx)(r.tU.Tab,{selected:O==="Spam",onClick:function(){return C("set_folder",{set_folder:"Spam"})},children:"Spam"}),(0,e.jsx)(r.tU.Tab,{selected:O==="Deleted",onClick:function(){return C("set_folder",{set_folder:"Deleted"})},children:"Deleted"})]}),I&&(0,e.jsx)(r.wn,{children:(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{header:!0,children:[(0,e.jsx)(r.XI.Cell,{children:"Source"}),(0,e.jsx)(r.XI.Cell,{children:"Title"}),(0,e.jsx)(r.XI.Cell,{children:"Received At"}),(0,e.jsx)(r.XI.Cell,{children:"Actions"})]}),_.map(function(M){return(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{children:M.source}),(0,e.jsx)(r.XI.Cell,{children:M.title}),(0,e.jsx)(r.XI.Cell,{children:M.timestamp}),(0,e.jsxs)(r.XI.Cell,{children:[(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return C("view",{view:M.uid})},tooltip:"View"}),(0,e.jsx)(r.$n,{icon:"share",onClick:function(){return C("reply",{reply:M.uid})},tooltip:"Reply"}),(0,e.jsx)(r.$n,{color:"bad",icon:"trash",onClick:function(){return C("delete",{delete:M.uid})},tooltip:"Delete"})]})]},M.timestamp+M.title)})]})})||(0,e.jsxs)(r.az,{color:"bad",children:["No emails found in ",O,"."]})]})},h=function(d){var p=(0,n.Oc)(),C=p.act,j=p.data,b=d.administrator,O=j.cur_title,I=j.cur_source,_=j.cur_timestamp,M=j.cur_body,D=j.cur_hasattachment,A=j.cur_attachment_filename,R=j.cur_attachment_size,K=j.cur_uid;return(0,e.jsx)(r.wn,{title:O,buttons:b?(0,e.jsx)(r.$n,{icon:"times",onClick:function(){return C("back")}}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"share",tooltip:"Reply",tooltipPosition:"left",onClick:function(){return C("reply",{reply:K})}}),(0,e.jsx)(r.$n,{color:"bad",icon:"trash",tooltip:"Delete",tooltipPosition:"left",onClick:function(){return C("delete",{delete:K})}}),(0,e.jsx)(r.$n,{icon:"save",tooltip:"Save To Disk",tooltipPosition:"left",onClick:function(){return C("save",{save:K})}}),D&&(0,e.jsx)(r.$n,{icon:"paperclip",tooltip:"Save Attachment",tooltipPosition:"left",onClick:function(){return C("downloadattachment")}})||null,(0,e.jsx)(r.$n,{icon:"times",tooltip:"Close",tooltipPosition:"left",onClick:function(){return C("cancel",{cancel:K})}})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"From",children:I}),(0,e.jsx)(r.Ki.Item,{label:"At",children:_}),D&&!b&&(0,e.jsxs)(r.Ki.Item,{label:"Attachment",color:"average",children:[A," (",R,"GQ)"]})||null,(0,e.jsx)(r.Ki.Item,{label:"Message",verticalAlign:"top",children:(0,e.jsx)(r.wn,{children:(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:M}})})})]})})},v=function(d){var p=(0,n.Oc)(),C=p.act,j=p.data,b=j.accounts;return(0,e.jsx)(r.wn,{title:"Address Book",level:2,buttons:(0,e.jsx)(r.$n,{color:"bad",icon:"times",onClick:function(){return C("set_recipient",{set_recipient:null})}}),children:b.map(function(O){return(0,e.jsx)(r.$n,{content:O.login,fluid:!0,onClick:function(){return C("set_recipient",{set_recipient:O.login})}},O.login)})})},u=function(d){var p=(0,n.Oc)(),C=p.act,j=p.data,b=j.current_account,O=j.msg_title,I=j.msg_recipient,_=j.msg_body,M=j.msg_hasattachment,D=j.msg_attachment_filename,A=j.msg_attachment_size;return(0,e.jsx)(r.wn,{title:"New Message",level:2,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"share",onClick:function(){return C("send")},children:"Send Message"}),(0,e.jsx)(r.$n,{color:"bad",icon:"times",onClick:function(){return C("cancel")}})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Title",children:(0,e.jsx)(r.pd,{fluid:!0,value:O,onInput:function(R,K){return C("edit_title",{val:K})}})}),(0,e.jsx)(r.Ki.Item,{label:"Recipient",verticalAlign:"top",children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.pd,{fluid:!0,value:I,onInput:function(R,K){return C("edit_recipient",{val:K})}})}),(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{icon:"address-book",onClick:function(){return C("addressbook")},tooltip:"Find Receipients",tooltipPosition:"left"})})]})}),(0,e.jsx)(r.Ki.Item,{label:"Attachments",buttons:M&&(0,e.jsx)(r.$n,{color:"bad",icon:"times",onClick:function(){return C("remove_attachment")},children:"Remove Attachment"})||(0,e.jsx)(r.$n,{icon:"plus",onClick:function(){return C("addattachment")},children:"Add Attachment"}),children:M&&(0,e.jsxs)(r.az,{inline:!0,children:[D," (",A,"GQ)"]})||null}),(0,e.jsx)(r.Ki.Item,{label:"Message",verticalAlign:"top",children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.wn,{width:"99%",inline:!0,children:(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:_}})})}),(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{verticalAlign:"top",onClick:function(){return C("edit_body")},icon:"pen",tooltip:"Edit Message",tooltipPosition:"left"})})]})})]})})},m=function(d){var p=(0,n.Oc)().act,C=d.error;return(0,e.jsx)(r.wn,{title:"Notification",buttons:(0,e.jsx)(r.$n,{icon:"arrow-left",content:"Return",onClick:function(){return p("reset")}}),children:(0,e.jsx)(r.az,{color:"bad",children:C})})},c=function(d){var p=(0,n.Oc)(),C=p.act,j=p.data,b=j.stored_login,O=j.stored_password;return(0,e.jsxs)(r.wn,{title:"Please Log In",children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Email address",children:(0,e.jsx)(r.pd,{fluid:!0,value:b,onInput:function(I,_){return C("edit_login",{val:_})}})}),(0,e.jsx)(r.Ki.Item,{label:"Password",children:(0,e.jsx)(r.pd,{fluid:!0,value:O,onInput:function(I,_){return C("edit_password",{val:_})}})})]}),(0,e.jsx)(r.$n,{icon:"sign-in-alt",onClick:function(){return C("login")},children:"Log In"})]})}},86411:function(P,y,t){"use strict";t.r(y),t.d(y,{NtosFileManager:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(g){var x=(0,s.Oc)(),f=x.act,h=x.data,v=h.PC_device_theme,u=h.usbconnected,m=h.filename,c=h.filedata,d=h.error,p=h.files,C=p===void 0?[]:p,j=h.usbfiles,b=j===void 0?[]:j;return(0,e.jsx)(r.Zm,{resizable:!0,theme:v,children:(0,e.jsxs)(r.Zm.Content,{scrollable:!0,children:[m&&(0,e.jsx)(n.wn,{title:"Viewing File "+m,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"pen",content:"Edit",onClick:function(){return f("PRG_edit")}}),(0,e.jsx)(n.$n,{icon:"print",content:"Print",onClick:function(){return f("PRG_printfile")}}),(0,e.jsx)(n.$n,{icon:"times",content:"Close",onClick:function(){return f("PRG_closefile")}})]}),children:c&&(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:c}})})||(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.wn,{children:(0,e.jsx)(a,{files:C,usbconnected:u,onUpload:function(O){return f("PRG_copytousb",{uid:O})},onDelete:function(O){return f("PRG_deletefile",{uid:O})},onOpen:function(O){return f("PRG_openfile",{uid:O})},onRename:function(O,I){return f("PRG_rename",{uid:O,new_name:I})},onDuplicate:function(O){return f("PRG_clone",{uid:O})}})}),u&&(0,e.jsx)(n.wn,{title:"Data Disk",children:(0,e.jsx)(a,{usbmode:!0,files:b,usbconnected:u,onUpload:function(O){return f("PRG_copyfromusb",{uid:O})},onDelete:function(O){return f("PRG_deletefile",{uid:O})},onOpen:function(O){return f("PRG_openfile",{uid:O})},onRename:function(O,I){return f("PRG_rename",{uid:O,new_name:I})},onDuplicate:function(O){return f("PRG_clone",{uid:O})}})})||null,(0,e.jsx)(n.wn,{children:(0,e.jsx)(n.$n,{icon:"plus",onClick:function(){return f("PRG_newtextfile")},children:"New Text File"})})]}),d&&(0,e.jsxs)(n.so,{wrap:"wrap",position:"fixed",bottom:"5px",children:[(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(n.wn,{children:(0,e.jsx)(n.$n,{bottom:"0",left:"0",icon:"ban",onClick:function(){return f("PRG_clearerror")}})})}),(0,e.jsx)(n.wn,{children:(0,e.jsx)(n.so.Item,{grow:!0,children:d})})]})]})})},a=function(g){var x=g.files,f=x===void 0?[]:x,h=g.usbconnected,v=g.usbmode,u=g.onUpload,m=g.onDelete,c=g.onRename,d=g.onOpen;return(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{children:"File"}),(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:"Type"}),(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:"Size"})]}),f.map(function(p){return(0,e.jsxs)(n.XI.Row,{className:"candystripe",children:[(0,e.jsx)(n.XI.Cell,{children:p.undeletable?p.name:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n.Input,{width:"80%",content:p.name,currentValue:p.name,tooltip:"Rename",onCommit:function(C,j){return c(p.uid,j)}}),(0,e.jsx)(n.$n,{content:"Open",onClick:function(){return d(p.uid)}})]})}),(0,e.jsx)(n.XI.Cell,{children:p.type}),(0,e.jsx)(n.XI.Cell,{children:p.size}),(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:!p.undeletable&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n.Confirm,{icon:"trash",confirmIcon:"times",confirmContent:"",tooltip:"Delete",onClick:function(){return m(p.uid)}}),!!h&&(v?(0,e.jsx)(n.$n,{icon:"download",tooltip:"Download",onClick:function(){return u(p.uid)}}):(0,e.jsx)(n.$n,{icon:"upload",tooltip:"Upload",onClick:function(){return u(p.uid)}}))]})})]},p.name)})]})}},96665:function(P,y,t){"use strict";t.r(y),t.d(y,{NtosIdentificationComputer:function(){return r}});var e=t(88095),s=t(68040),n=t(17575),r=function(){return(0,e.jsx)(s.Zm,{width:600,height:700,children:(0,e.jsx)(s.Zm.Content,{scrollable:!0,children:(0,e.jsx)(n.IdentificationComputerContent,{ntos:!0})})})}},44801:function(P,y,t){"use strict";t.r(y),t.d(y,{NtosMain:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i={compconfig:"cog",ntndownloader:"download",filemanager:"folder",smmonitor:"radiation",alarmmonitor:"bell",cardmod:"id-card",arcade:"gamepad",ntnrc_client:"comment-alt",nttransfer:"exchange-alt",powermonitor:"plug",job_manage:"address-book",crewmani:"clipboard-list",robocontrol:"robot",atmosscan:"thermometer-half",shipping:"tags"},a=function(g){var x=(0,s.Oc)(),f=x.act,h=x.data,v=h.device_theme,u=h.programs,m=u===void 0?[]:u,c=h.has_light,d=h.light_on,p=h.comp_light_color,C=h.removable_media,j=C===void 0?[]:C,b=h.login,O=b===void 0?[]:b;return(0,e.jsx)(r.Zm,{title:v==="syndicate"&&"Syndix Main Menu"||"NtOS Main Menu",theme:v,width:400,height:500,children:(0,e.jsxs)(r.Zm.Content,{scrollable:!0,children:[!!c&&(0,e.jsxs)(n.wn,{children:[(0,e.jsxs)(n.$n,{width:"144px",icon:"lightbulb",selected:d,onClick:function(){return f("PC_toggle_light")},children:["Flashlight: ",d?"ON":"OFF"]}),(0,e.jsxs)(n.$n,{ml:1,onClick:function(){return f("PC_light_color")},children:["Color:",(0,e.jsx)(n.BK,{ml:1,color:p})]})]}),(0,e.jsx)(n.wn,{title:"User Login",buttons:(0,e.jsx)(n.$n,{icon:"eject",content:"Eject ID",disabled:!O.IDName,onClick:function(){return f("PC_Eject_Disk",{name:"ID"})}}),children:(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{children:["ID Name: ",O.IDName]}),(0,e.jsxs)(n.XI.Row,{children:["Assignment: ",O.IDJob]})]})}),!!j.length&&(0,e.jsx)(n.wn,{title:"Media Eject",children:(0,e.jsx)(n.XI,{children:j.map(function(I){return(0,e.jsx)(n.XI.Row,{children:(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{fluid:!0,color:"transparent",icon:"eject",content:I,onClick:function(){return f("PC_Eject_Disk",{name:I})}})})},I)})})}),(0,e.jsx)(n.wn,{title:"Programs",children:(0,e.jsx)(n.XI,{children:m.map(function(I){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{fluid:!0,color:"transparent",icon:i[I.name]||"window-maximize-o",content:I.desc,onClick:function(){return f("PC_runprogram",{name:I.name})}})}),(0,e.jsx)(n.XI.Cell,{collapsing:!0,width:"18px",children:!!I.running&&(0,e.jsx)(n.$n,{color:"transparent",icon:"times",tooltip:"Close program",tooltipPosition:"left",onClick:function(){return f("PC_killprogram",{name:I.name})}})}),(0,e.jsx)(n.XI.Cell,{collapsing:!0,width:"18px",children:(0,e.jsx)(n.$n,{color:"transparent",tooltip:"Set Autorun",tooltipPosition:"left",selected:I.autorun,onClick:function(){return f("PC_setautorun",{name:I.name})},children:"AR"})})]},I.name)})})})]})})}},59895:function(P,y,t){"use strict";t.r(y),t.d(y,{NtosNetChat:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,h=f.can_admin,v=f.adminmode,u=f.authed,m=f.username,c=f.active_channel,d=f.is_operator,p=f.all_channels,C=p===void 0?[]:p,j=f.clients,b=j===void 0?[]:j,O=f.messages,I=O===void 0?[]:O,_=c!==null,M=u||v;return(0,e.jsx)(r.Zm,{width:900,height:675,children:(0,e.jsx)(r.Zm.Content,{children:(0,e.jsx)(n.wn,{height:"600px",children:(0,e.jsx)(n.XI,{height:"580px",children:(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsxs)(n.XI.Cell,{verticalAlign:"top",style:{width:"200px"},children:[(0,e.jsxs)(n.az,{height:"560px",overflowY:"scroll",children:[(0,e.jsx)(n.$n.Input,{fluid:!0,content:"New Channel...",onCommit:function(D,A){return x("PRG_newchannel",{new_channel_name:A})}}),C.map(function(D){return(0,e.jsx)(n.$n,{fluid:!0,content:D.chan,selected:D.id===c,color:"transparent",onClick:function(){return x("PRG_joinchannel",{id:D.id})}},D.chan)})]}),(0,e.jsx)(n.$n.Input,{fluid:!0,mt:1,content:m+"...",currentValue:m,onCommit:function(D,A){return x("PRG_changename",{new_name:A})}}),!!h&&(0,e.jsx)(n.$n,{fluid:!0,bold:!0,content:"ADMIN MODE: "+(v?"ON":"OFF"),color:v?"bad":"good",onClick:function(){return x("PRG_toggleadmin")}})]}),(0,e.jsxs)(n.XI.Cell,{children:[(0,e.jsx)(n.az,{height:"560px",overflowY:"scroll",children:_&&(M?I.map(function(D){return(0,e.jsx)(n.az,{children:D.msg},D.msg)}):(0,e.jsxs)(n.az,{textAlign:"center",children:[(0,e.jsx)(n.In,{name:"exclamation-triangle",mt:4,fontSize:"40px"}),(0,e.jsx)(n.az,{mt:1,bold:!0,fontSize:"18px",children:"THIS CHANNEL IS PASSWORD PROTECTED"}),(0,e.jsx)(n.az,{mt:1,children:"INPUT PASSWORD TO ACCESS"})]}))}),(0,e.jsx)(n.pd,{fluid:!0,selfClear:!0,mt:1,onEnter:function(D,A){return x("PRG_speak",{message:A})}})]}),(0,e.jsxs)(n.XI.Cell,{verticalAlign:"top",style:{width:"150px"},children:[(0,e.jsx)(n.az,{height:"465px",overflowY:"scroll",children:b.map(function(D){return(0,e.jsx)(n.az,{children:D.name},D.name)})}),_&&M&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n.Input,{fluid:!0,content:"Save log...",defaultValue:"new_log",onCommit:function(D,A){return x("PRG_savelog",{log_name:A})}}),(0,e.jsx)(n.$n.Confirm,{fluid:!0,content:"Leave Channel",onClick:function(){return x("PRG_leavechannel")}})]}),!!d&&u&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n.Confirm,{fluid:!0,content:"Delete Channel",onClick:function(){return x("PRG_deletechannel")}}),(0,e.jsx)(n.$n.Input,{fluid:!0,content:"Rename Channel...",onCommit:function(D,A){return x("PRG_renamechannel",{new_name:A})}}),(0,e.jsx)(n.$n.Input,{fluid:!0,content:"Set Password...",onCommit:function(D,A){return x("PRG_setpassword",{new_password:A})}})]})]})]})})})})})}},62607:function(P,y,t){"use strict";t.r(y),t.d(y,{NtosNetDos:function(){return i},NtosNetDosContent:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(){return(0,e.jsx)(r.Zm,{width:400,height:250,theme:"syndicate",children:(0,e.jsx)(r.Zm.Content,{children:(0,e.jsx)(a,{})})})},a=function(g){var x=(0,s.Oc)(),f=x.act,h=x.data,v=h.relays,u=v===void 0?[]:v,m=h.focus,c=h.target,d=h.speed,p=h.overload,C=h.capacity,j=h.error;if(j)return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.IC,{children:j}),(0,e.jsx)(n.$n,{fluid:!0,content:"Reset",textAlign:"center",onClick:function(){return f("PRG_reset")}})]});var b=function(I){for(var _="",M=p/C;_.lengthM?_+="0":_+="1";return _},O=45;return c?(0,e.jsxs)(n.wn,{fontFamily:"monospace",textAlign:"center",children:[(0,e.jsxs)(n.az,{children:["CURRENT SPEED: ",d," GQ/s"]}),(0,e.jsx)(n.az,{children:b(O)}),(0,e.jsx)(n.az,{children:b(O)}),(0,e.jsx)(n.az,{children:b(O)}),(0,e.jsx)(n.az,{children:b(O)}),(0,e.jsx)(n.az,{children:b(O)})]}):(0,e.jsxs)(n.wn,{children:[(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Target",children:u.map(function(I){return(0,e.jsx)(n.$n,{content:I.id,selected:m===I.id,onClick:function(){return f("PRG_target_relay",{targid:I.id})}},I.id)})})}),(0,e.jsx)(n.$n,{fluid:!0,bold:!0,content:"EXECUTE",color:"bad",textAlign:"center",disabled:!m,mt:1,onClick:function(){return f("PRG_execute")}})]})}},10864:function(P,y,t){"use strict";t.r(y),t.d(y,{NtosNetDownloader:function(){return a}});var e=t(88095),s=t(5229),n=t(4413),r=t(92514),i=t(68040),a=function(x){var f=(0,n.Oc)(),h=f.act,v=f.data,u=v.PC_device_theme,m=v.disk_size,c=v.disk_used,d=v.downloadable_programs,p=d===void 0?[]:d,C=v.error,j=v.hacked_programs,b=j===void 0?[]:j,O=v.hackedavailable;return(0,e.jsx)(i.Zm,{theme:u,width:480,height:735,children:(0,e.jsxs)(i.Zm.Content,{scrollable:!0,children:[!!C&&(0,e.jsxs)(r.IC,{children:[(0,e.jsx)(r.az,{mb:1,children:C}),(0,e.jsx)(r.$n,{content:"Reset",onClick:function(){return h("PRG_reseterror")}})]}),(0,e.jsx)(r.wn,{children:(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Disk usage",children:(0,e.jsx)(r.z2,{value:c,minValue:0,maxValue:m,children:c+" GQ / "+m+" GQ"})})})}),(0,e.jsx)(r.wn,{children:p.map(function(I){return(0,e.jsx)(g,{program:I},I.filename)})}),!!O&&(0,e.jsxs)(r.wn,{title:"UNKNOWN Software Repository",children:[(0,e.jsx)(r.IC,{mb:1,children:"Please note that Nanotrasen does not recommend download of software from non-official servers."}),b.map(function(I){return(0,e.jsx)(g,{program:I},I.filename)})]})]})})},g=function(x){var f=x.program,h=(0,n.Oc)(),v=h.act,u=h.data,m=u.disk_size,c=u.disk_used,d=u.downloadcompletion,p=u.downloading,C=u.downloadname,j=u.downloadsize,b=u.downloadspeed,O=u.downloads_queue,I=m-c;return(0,e.jsxs)(r.az,{mb:3,children:[(0,e.jsxs)(r.so,{align:"baseline",children:[(0,e.jsx)(r.so.Item,{bold:!0,grow:1,children:f.filedesc}),(0,e.jsxs)(r.so.Item,{color:"label",nowrap:!0,children:[f.size," GQ"]}),(0,e.jsx)(r.so.Item,{ml:2,width:"110px",textAlign:"center",children:f.filename===C&&(0,e.jsxs)(r.z2,{color:"green",minValue:0,maxValue:j,value:d,children:[(0,s.LI)(d/j*100,1),"%\xA0(",b,"GQ/s)"]})||O.indexOf(f.filename)!==-1&&(0,e.jsx)(r.$n,{icon:"ban",color:"bad",onClick:function(){return v("PRG_removequeued",{filename:f.filename})},children:"Queued..."})||(0,e.jsx)(r.$n,{fluid:!0,icon:"download",content:"Download",disabled:f.size>I,onClick:function(){return v("PRG_downloadfile",{filename:f.filename})}})})]}),f.compatibility!=="Compatible"&&(0,e.jsxs)(r.az,{mt:1,italic:!0,fontSize:"12px",position:"relative",children:[(0,e.jsx)(r.In,{mx:1,color:"red",name:"times"}),"Incompatible!"]}),f.size>I&&(0,e.jsxs)(r.az,{mt:1,italic:!0,fontSize:"12px",position:"relative",children:[(0,e.jsx)(r.In,{mx:1,color:"red",name:"times"}),"Not enough disk space!"]}),(0,e.jsx)(r.az,{mt:1,italic:!0,color:"label",fontSize:"12px",children:f.fileinfo})]})}},26055:function(P,y,t){"use strict";t.r(y),t.d(y,{NtosNetMonitor:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,h=f.ntnetrelays,v=f.ntnetstatus,u=f.config_softwaredownload,m=f.config_peertopeer,c=f.config_communication,d=f.config_systemcontrol,p=f.idsalarm,C=f.idsstatus,j=f.ntnetmaxlogs,b=f.maxlogs,O=f.minlogs,I=f.banned_nids,_=f.ntnetlogs,M=_===void 0?[]:_;return(0,e.jsx)(r.Zm,{children:(0,e.jsxs)(r.Zm.Content,{scrollable:!0,children:[(0,e.jsx)(n.IC,{children:"WARNING: Disabling wireless transmitters when using a wireless device may prevent you from reenabling them!"}),(0,e.jsx)(n.wn,{title:"Wireless Connectivity",buttons:(0,e.jsx)(n.$n.Confirm,{icon:v?"power-off":"times",content:v?"ENABLED":"DISABLED",selected:v,onClick:function(){return x("toggleWireless")}}),children:h?(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Active NTNet Relays",children:h})}):"No Relays Connected"}),(0,e.jsx)(n.wn,{title:"Firewall Configuration",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Software Downloads",buttons:(0,e.jsx)(n.$n,{icon:u?"power-off":"times",content:u?"ENABLED":"DISABLED",selected:u,onClick:function(){return x("toggle_function",{id:"1"})}})}),(0,e.jsx)(n.Ki.Item,{label:"Peer to Peer Traffic",buttons:(0,e.jsx)(n.$n,{icon:m?"power-off":"times",content:m?"ENABLED":"DISABLED",selected:m,onClick:function(){return x("toggle_function",{id:"2"})}})}),(0,e.jsx)(n.Ki.Item,{label:"Communication Systems",buttons:(0,e.jsx)(n.$n,{icon:c?"power-off":"times",content:c?"ENABLED":"DISABLED",selected:c,onClick:function(){return x("toggle_function",{id:"3"})}})}),(0,e.jsx)(n.Ki.Item,{label:"Remote System Control",buttons:(0,e.jsx)(n.$n,{icon:d?"power-off":"times",content:d?"ENABLED":"DISABLED",selected:d,onClick:function(){return x("toggle_function",{id:"4"})}})})]})}),(0,e.jsxs)(n.wn,{title:"Security Systems",children:[!!p&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.IC,{children:"NETWORK INCURSION DETECTED"}),(0,e.jsx)(n.az,{italics:!0,children:"Abnormal activity has been detected in the network. Check system logs for more information"})]}),(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Banned NIDs",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"ban",onClick:function(){return x("ban_nid")},children:"Ban NID"}),(0,e.jsx)(n.$n,{icon:"balance-scale",onClick:function(){return x("unban_nid")},children:"Unban NID"})]}),children:I.join(", ")||"None"}),(0,e.jsx)(n.Ki.Item,{label:"IDS Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:C?"power-off":"times",content:C?"ENABLED":"DISABLED",selected:C,onClick:function(){return x("toggleIDS")}}),(0,e.jsx)(n.$n,{icon:"sync",content:"Reset",color:"bad",onClick:function(){return x("resetIDS")}})]})}),(0,e.jsx)(n.Ki.Item,{label:"Max Log Count",buttons:(0,e.jsx)(n.Q7,{value:j,minValue:O,maxValue:b,width:"39px",onChange:function(D,A){return x("updatemaxlogs",{new_number:A})}})})]}),(0,e.jsx)(n.wn,{title:"System Log",level:2,buttons:(0,e.jsx)(n.$n.Confirm,{icon:"trash",content:"Clear Logs",onClick:function(){return x("purgelogs")}}),children:M.map(function(D){return(0,e.jsx)(n.az,{className:"candystripe",children:D.entry},D.entry)})})]})]})})}},10124:function(P,y,t){"use strict";t.r(y),t.d(y,{NtosNetTransfer:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(v){var u=(0,s.Oc)(),m=u.act,c=u.data,d=c.error,p=c.downloading,C=c.uploading,j=c.upload_filelist,b=(0,e.jsx)(h,{});return d?b=(0,e.jsx)(a,{}):p?b=(0,e.jsx)(g,{}):C?b=(0,e.jsx)(x,{}):j.length&&(b=(0,e.jsx)(f,{})),(0,e.jsx)(r.Zm,{width:575,height:700,children:(0,e.jsx)(r.Zm.Content,{scrollable:!0,children:b})})},a=function(v){var u=(0,s.Oc)(),m=u.act,c=u.data,d=c.error;return(0,e.jsxs)(n.wn,{title:"An error has occured during operation.",buttons:(0,e.jsx)(n.$n,{icon:"undo",onClick:function(){return m("PRG_reset")},children:"Reset"}),children:["Additional Information: ",d]})},g=function(v){var u=(0,s.Oc)(),m=u.act,c=u.data,d=c.download_name,p=c.download_progress,C=c.download_size,j=c.download_netspeed;return(0,e.jsx)(n.wn,{title:"Download in progress",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Downloaded File",children:d}),(0,e.jsx)(n.Ki.Item,{label:"Progress",children:(0,e.jsxs)(n.z2,{value:p,maxValue:C,children:[p," / ",C," GQ"]})}),(0,e.jsxs)(n.Ki.Item,{label:"Transfer Speed",children:[j," GQ/s"]}),(0,e.jsx)(n.Ki.Item,{label:"Controls",children:(0,e.jsx)(n.$n,{icon:"ban",onClick:function(){return m("PRG_reset")},children:"Cancel Download"})})]})})},x=function(v){var u=(0,s.Oc)(),m=u.act,c=u.data,d=c.upload_clients,p=c.upload_filename,C=c.upload_haspassword;return(0,e.jsx)(n.wn,{title:"Server enabled",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Clients Connected",children:d}),(0,e.jsx)(n.Ki.Item,{label:"Provided file",children:p}),(0,e.jsx)(n.Ki.Item,{label:"Server Password",children:C?"Enabled":"Disabled"}),(0,e.jsxs)(n.Ki.Item,{label:"Commands",children:[(0,e.jsx)(n.$n,{icon:"lock",onClick:function(){return m("PRG_setpassword")},children:"Set Password"}),(0,e.jsx)(n.$n,{icon:"ban",onClick:function(){return m("PRG_reset")},children:"Cancel Upload"})]})]})})},f=function(v){var u=(0,s.Oc)(),m=u.act,c=u.data,d=c.upload_filelist;return(0,e.jsxs)(n.wn,{title:"File transfer server ready.",buttons:(0,e.jsx)(n.$n,{icon:"undo",onClick:function(){return m("PRG_reset")},children:"Cancel"}),children:[(0,e.jsx)(n.$n,{fluid:!0,icon:"lock",onClick:function(){return m("PRG_setpassword")},children:"Set Password"}),(0,e.jsx)(n.wn,{title:"Pick file to serve.",level:2,children:d.map(function(p){return(0,e.jsxs)(n.$n,{fluid:!0,icon:"upload",onClick:function(){return m("PRG_uploadfile",{uid:p.uid})},children:[p.filename," (",p.size,"GQ)"]},p.uid)})})]})},h=function(v){var u=(0,s.Oc)(),m=u.act,c=u.data,d=c.servers;return(0,e.jsx)(n.wn,{title:"Available Files",buttons:(0,e.jsx)(n.$n,{icon:"upload",onClick:function(){return m("PRG_uploadmenu")},children:"Send File"}),children:d.length&&(0,e.jsx)(n.Ki,{children:d.map(function(p){return(0,e.jsxs)(n.Ki.Item,{label:p.uid,children:[!!p.haspassword&&(0,e.jsx)(n.In,{name:"lock",mr:1}),p.filename,"\xA0 (",p.size,"GQ)\xA0",(0,e.jsx)(n.$n,{icon:"download",onClick:function(){return m("PRG_downloadfile",{uid:p.uid})},children:"Download"})]},p.uid)})})||(0,e.jsx)(n.az,{children:"No upload servers found."})})}},90227:function(P,y,t){"use strict";t.r(y),t.d(y,{NtosNewsBrowser:function(){return a}});var e=t(88095),s=t(80676),n=t(4413),r=t(92514),i=t(68040),a=function(h){var v=(0,n.Oc)(),u=v.act,m=v.data,c=m.article,d=m.download,p=m.message,C=(0,e.jsx)(x,{});return c?C=(0,e.jsx)(g,{}):d&&(C=(0,e.jsx)(f,{})),(0,e.jsx)(i.Zm,{width:575,height:750,children:(0,e.jsxs)(i.Zm.Content,{scrollable:!0,children:[!!p&&(0,e.jsxs)(r.IC,{children:[p," ",(0,e.jsx)(r.$n,{icon:"times",onClick:function(){return u("PRG_clearmessage")}})]}),C]})})},g=function(h){var v=(0,n.Oc)(),u=v.act,m=v.data,c=m.article;if(!c)return(0,e.jsx)(r.wn,{children:"Error: Article not found."});var d=c.title,p=c.cover,C=c.content;return(0,e.jsxs)(r.wn,{title:"Viewing: "+d,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"save",onClick:function(){return u("PRG_savearticle")},children:"Save"}),(0,e.jsx)(r.$n,{icon:"times",onClick:function(){return u("PRG_reset")},children:"Close"})]}),children:[!!p&&(0,e.jsx)("img",{src:(0,s.l)(p)}),(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:C}})]})},x=function(h){var v=(0,n.Oc)(),u=v.act,m=v.data,c=m.showing_archived,d=m.all_articles;return(0,e.jsx)(r.wn,{title:"Articles List",buttons:(0,e.jsx)(r.$n.Checkbox,{onClick:function(){return u("PRG_toggle_archived")},checked:c,children:"Show Archived"}),children:(0,e.jsx)(r.Ki,{children:d.length&&d.map(function(p){return(0,e.jsxs)(r.Ki.Item,{label:p.name,buttons:(0,e.jsx)(r.$n,{icon:"download",onClick:function(){return u("PRG_openarticle",{uid:p.uid})}}),children:[p.size," GQ"]},p.uid)})||(0,e.jsx)(r.Ki.Item,{label:"Error",children:"There appear to be no outstanding news articles on NTNet today."})})})},f=function(h){var v=(0,n.Oc)(),u=v.act,m=v.data,c=m.download,d=c.download_progress,p=c.download_maxprogress,C=c.download_rate;return(0,e.jsx)(r.wn,{title:"Downloading...",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Progress",children:(0,e.jsxs)(r.z2,{color:"good",minValue:0,value:d,maxValue:p,children:[d," / ",p," GQ"]})}),(0,e.jsxs)(r.Ki.Item,{label:"Download Speed",children:[C," GQ/s"]}),(0,e.jsx)(r.Ki.Item,{label:"Controls",children:(0,e.jsx)(r.$n,{icon:"ban",fluid:!0,onClick:function(){return u("PRG_reset")},children:"Abort Download"})})]})})}},39360:function(P,y,t){"use strict";t.r(y),t.d(y,{NtosOvermapNavigation:function(){return r}});var e=t(88095),s=t(68040),n=t(15156),r=function(){return(0,e.jsx)(s.Zm,{width:380,height:530,children:(0,e.jsx)(s.Zm.Content,{scrollable:!0,children:(0,e.jsx)(n.OvermapNavigationContent,{})})})}},62243:function(P,y,t){"use strict";t.r(y),t.d(y,{NtosPowerMonitor:function(){return r}});var e=t(88095),s=t(68040),n=t(16421),r=function(){return(0,e.jsx)(s.Zm,{width:550,height:700,children:(0,e.jsx)(s.Zm.Content,{scrollable:!0,children:(0,e.jsx)(n.PowerMonitorContent,{})})})}},12638:function(P,y,t){"use strict";t.r(y),t.d(y,{NtosRCON:function(){return r}});var e=t(88095),s=t(68040),n=t(72128),r=function(){return(0,e.jsx)(s.Zm,{width:630,height:440,children:(0,e.jsx)(s.Zm.Content,{scrollable:!0,children:(0,e.jsx)(n.RCONContent,{})})})}},88475:function(P,y,t){"use strict";t.r(y),t.d(y,{NtosRevelation:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,h=f.armed;return(0,e.jsx)(r.Zm,{width:400,height:250,theme:"syndicate",children:(0,e.jsx)(r.Zm.Content,{children:(0,e.jsxs)(n.wn,{children:[(0,e.jsx)(n.$n.Input,{fluid:!0,content:"Obfuscate Name...",onCommit:function(v,u){return x("PRG_obfuscate",{new_name:u})},mb:1}),(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Payload Status",buttons:(0,e.jsx)(n.$n,{content:h?"ARMED":"DISARMED",color:h?"bad":"average",onClick:function(){return x("PRG_arm")}})})}),(0,e.jsx)(n.$n,{fluid:!0,bold:!0,content:"ACTIVATE",textAlign:"center",color:"bad",disabled:!h})]})})})}},17609:function(P,y,t){"use strict";t.r(y),t.d(y,{NtosShutoffMonitor:function(){return r}});var e=t(88095),s=t(68040),n=t(52735),r=function(){return(0,e.jsx)(s.Zm,{width:627,height:700,children:(0,e.jsx)(s.Zm.Content,{children:(0,e.jsx)(n.ShutoffMonitorContent,{})})})}},86431:function(P,y,t){"use strict";t.r(y),t.d(y,{NtosStationAlertConsole:function(){return r}});var e=t(88095),s=t(68040),n=t(47441),r=function(){return(0,e.jsx)(s.Zm,{width:315,height:500,children:(0,e.jsx)(s.Zm.Content,{scrollable:!0,children:(0,e.jsx)(n.StationAlertConsoleContent,{})})})}},21396:function(P,y,t){"use strict";t.r(y),t.d(y,{NtosSupermatterMonitor:function(){return r}});var e=t(88095),s=t(68040),n=t(67186),r=function(){return(0,e.jsx)(s.Zm,{width:600,height:400,children:(0,e.jsx)(s.Zm.Content,{scrollable:!0,children:(0,e.jsx)(n.SupermatterMonitorContent,{})})})}},77248:function(P,y,t){"use strict";t.r(y),t.d(y,{NtosUAV:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,h=f.current_uav,v=f.signal_strength,u=f.in_use,m=f.paired_uavs;return(0,e.jsx)(r.Zm,{width:600,height:500,children:(0,e.jsxs)(r.Zm.Content,{children:[(0,e.jsx)(n.wn,{title:"Selected UAV",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"UAV",children:h&&h.status||"[Not Connected]"}),(0,e.jsx)(n.Ki.Item,{label:"Signal",children:h&&v||"[Not Connected]"}),(0,e.jsx)(n.Ki.Item,{label:"Power",children:h&&(0,e.jsx)(n.$n,{icon:"power-off",selected:h.power,onClick:function(){return x("power_uav")},children:h.power?"Online":"Offline"})||"[Not Connected]"}),(0,e.jsx)(n.Ki.Item,{label:"Camera",children:h&&(0,e.jsx)(n.$n,{icon:"power-off",selected:u,disabled:!h.power,onClick:function(){return x("view_uav")},children:h.power?"Available":"Unavailable"})||"[Not Connected]"})]})}),(0,e.jsx)(n.wn,{title:"Paired UAVs",children:m.length&&m.map(function(c){return(0,e.jsxs)(n.so,{spacing:1,children:[(0,e.jsx)(n.so.Item,{grow:1,children:(0,e.jsx)(n.$n,{fluid:!0,icon:"quidditch",onClick:function(){return x("switch_uav",{switch_uav:c.uavref})},children:c.name})}),(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(n.$n,{color:"bad",icon:"times",onClick:function(){return x("del_uav",{del_uav:c.uavref})}})})]},c.uavref)})||(0,e.jsx)(n.az,{color:"average",children:"No UAVs Paired."})})]})})}},61728:function(P,y,t){"use strict";t.r(y),t.d(y,{NtosWordProcessor:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,h=f.PC_device_theme,v=f.error,u=f.browsing,m=f.files,c=f.usbconnected,d=f.usbfiles,p=f.filename,C=f.filedata;return(0,e.jsx)(r.Zm,{resizable:!0,theme:h,children:(0,e.jsx)(r.Zm.Content,{scrollable:!0,children:v&&(0,e.jsxs)(n.az,{color:"bad",children:[(0,e.jsx)("h2",{children:"An Error has occured:"}),"Additional Information: ",v,"Please try again. If the problem persists, contact your system administrator for assistance.",(0,e.jsx)(n.$n,{icon:"arrow-left",content:"Back to menu",onClick:function(){return x("PRG_backtomenu")}})]})||u&&(0,e.jsx)(n.wn,{title:"File Browser",buttons:(0,e.jsx)(n.$n,{icon:"arrow-left",content:"Back to editor",onClick:function(){return x("PRG_closebrowser")}}),children:(0,e.jsx)(n.wn,{title:"Available documents (local)",level:2,children:(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{children:"Name"}),(0,e.jsx)(n.XI.Cell,{children:"Size (GQ)"}),(0,e.jsx)(n.XI.Cell,{collapsing:!0})]}),m.map(function(j,b){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{children:j.name}),(0,e.jsx)(n.XI.Cell,{children:j.size}),(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:(0,e.jsx)(n.$n,{icon:"file-word",onClick:function(){return x("PRG_openfile",{PRG_openfile:j.name})},children:"Open"})})]},b)})]})})})||(0,e.jsxs)(n.wn,{title:"Document: "+p,children:[(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.$n,{onClick:function(){return x("PRG_newfile")},children:"New"}),(0,e.jsx)(n.$n,{onClick:function(){return x("PRG_loadmenu")},children:"Load"}),(0,e.jsx)(n.$n,{onClick:function(){return x("PRG_savefile")},children:"Save"}),(0,e.jsx)(n.$n,{onClick:function(){return x("PRG_saveasfile")},children:"Save As"})]}),(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.$n,{onClick:function(){return x("PRG_editfile")},children:"Edit"}),(0,e.jsx)(n.$n,{onClick:function(){return x("PRG_txtrpeview")},children:"Preview"}),(0,e.jsx)(n.$n,{onClick:function(){return x("PRG_taghelp")},children:"Formatting Help"}),(0,e.jsx)(n.$n,{disabled:!C,onClick:function(){return x("PRG_printfile")},children:"Print"})]}),(0,e.jsx)(n.wn,{mt:1,children:(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:C}})})]})})})}},8544:function(P,y,t){"use strict";t.r(y),t.d(y,{NumberInputModal:function(){return f}});var e=t(88095),s=t(72147),n=t(44583),r=t(4413),i=t(92514),a=t(68040),g=t(12035),x=t(18513),f=function(v){var u=(0,r.Oc)(),m=u.act,c=u.data,d=c.init_value,p=c.large_buttons,C=c.message,j=C===void 0?"":C,b=c.timeout,O=c.title,I=(0,n.useState)(d),_=I[0],M=I[1],D=function(R){R!==_&&M(R)},A=140+(j.length>30?Math.ceil(j.length/3):0)+(j.length&&p?5:0);return(0,e.jsxs)(a.p8,{title:O,width:270,height:A,children:[b&&(0,e.jsx)(x.Loader,{value:b}),(0,e.jsx)(a.p8.Content,{onKeyDown:function(R){R.key===s._.Enter&&m("submit",{entry:_}),R.key===s._.Escape&&m("cancel")},children:(0,e.jsx)(i.wn,{fill:!0,children:(0,e.jsxs)(i.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(i.BJ.Item,{grow:!0,children:(0,e.jsx)(i.az,{color:"label",children:j})}),(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(h,{input:_,onClick:D,onChange:D,onBlur:D})}),(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(g.InputButtons,{input:_})})]})})})]})},h=function(v){var u=(0,r.Oc)(),m=u.act,c=u.data,d=c.min_value,p=c.max_value,C=c.init_value,j=c.round_value,b=v.input,O=v.onClick,I=v.onChange,_=v.onBlur;return(0,e.jsxs)(i.BJ,{fill:!0,children:[(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(i.$n,{disabled:b===d,icon:"angle-double-left",onClick:function(){return O(d)},tooltip:d?"Min ("+d+")":"Min"})}),(0,e.jsx)(i.BJ.Item,{grow:!0,children:(0,e.jsx)(i.SM,{autoFocus:!0,autoSelect:!0,fluid:!0,allowFloats:!j,minValue:d,maxValue:p,onChange:function(M,D){return I(D)},onBlur:function(M,D){return _(D)},onEnter:function(M,D){return m("submit",{entry:D})},value:b})}),(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(i.$n,{disabled:b===p,icon:"angle-double-right",onClick:function(){return O(p)},tooltip:p?"Max ("+p+")":"Max"})}),(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(i.$n,{disabled:b===C,icon:"redo",onClick:function(){return O(C)},tooltip:C?"Reset ("+C+")":"Reset"})})]})}},953:function(P,y,t){"use strict";t.r(y),t.d(y,{OmniFilter:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(g){return g.input?"Input":g.output?"Output":g.f_type?g.f_type:"Disabled"},a=function(g){var x=(0,s.Oc)(),f=x.act,h=x.data,v=h.power,u=h.config,m=h.ports,c=h.set_flow_rate,d=h.last_flow_rate;return(0,e.jsx)(r.p8,{width:360,height:330,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(n.wn,{title:u?"Configuration":"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"power-off",content:v?"On":"Off",selected:v,disabled:u,onClick:function(){return f("power")}}),(0,e.jsx)(n.$n,{icon:"wrench",selected:u,onClick:function(){return f("configure")}})]}),children:(0,e.jsx)(n.Ki,{children:m?m.map(function(p){return(0,e.jsx)(n.Ki.Item,{label:p.dir+" Port",children:u?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{content:"IN",selected:p.input,icon:"compress-arrows-alt",onClick:function(){return f("switch_mode",{mode:"in",dir:p.dir})}}),(0,e.jsx)(n.$n,{content:"OUT",selected:p.output,icon:"expand-arrows-alt",onClick:function(){return f("switch_mode",{mode:"out",dir:p.dir})}}),(0,e.jsx)(n.$n,{icon:"wrench",disabled:p.input||p.output,content:p.f_type||"None",onClick:function(){return f("switch_filter",{mode:p.f_type,dir:p.dir})}})]}):i(p)},p.dir)}):(0,e.jsx)(n.az,{color:"bad",children:"No Ports Detected"})})}),(0,e.jsx)(n.wn,{title:"Flow Rate",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Current Flow Rate",children:[d," L/s"]}),(0,e.jsx)(n.Ki.Item,{label:"Flow Rate Limit",children:u?(0,e.jsx)(n.$n,{icon:"wrench",content:c+" L/s",onClick:function(){return f("set_flow_rate")}}):c+" L/s"})]})})]})})}},75520:function(P,y,t){"use strict";t.r(y),t.d(y,{OmniMixer:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(x){return x.input?"Input":x.output?"Output":x.f_type?x.f_type:"Disabled"},a=function(x){var f=(0,s.Oc)(),h=f.act,v=f.data,u=v.power,m=v.config,c=v.ports,d=v.set_flow_rate,p=v.last_flow_rate;return(0,e.jsx)(r.p8,{width:390,height:330,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(n.wn,{title:m?"Configuration":"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"power-off",content:u?"On":"Off",selected:u,disabled:m,onClick:function(){return h("power")}}),(0,e.jsx)(n.$n,{icon:"wrench",selected:m,onClick:function(){return h("configure")}})]}),children:(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:"Port"}),m?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:"Input"}),(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:"Output"})]}):(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:"Mode"}),(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:"Concentration"}),m?(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:"Lock"}):null]}),c?c.map(function(C){return(0,e.jsx)(g,{port:C,config:m},C.dir)}):(0,e.jsx)(n.az,{color:"bad",children:"No Ports Detected"})]})}),(0,e.jsx)(n.wn,{title:"Flow Rate",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Current Flow Rate",children:[p," L/s"]}),(0,e.jsx)(n.Ki.Item,{label:"Flow Rate Limit",children:m?(0,e.jsx)(n.$n,{icon:"wrench",content:d+" L/s",onClick:function(){return h("set_flow_rate")}}):d+" L/s"})]})})]})})},g=function(x){var f=(0,s.Oc)().act,h=x.port,v=x.config;return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:h.dir+" Port"}),(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:v?(0,e.jsx)(n.$n,{content:"IN",selected:h.input,disabled:h.output,icon:"compress-arrows-alt",onClick:function(){return f("switch_mode",{mode:h.input?"none":"in",dir:h.dir})}}):i(h)}),(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:v?(0,e.jsx)(n.$n,{content:"OUT",selected:h.output,icon:"expand-arrows-alt",onClick:function(){return f("switch_mode",{mode:"out",dir:h.dir})}}):h.concentration*100+"%"}),v?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.XI.Cell,{textAlign:"center",width:"20%",children:(0,e.jsx)(n.$n,{width:"100%",icon:"wrench",disabled:!h.input,content:h.input?h.concentration*100+" %":"-",onClick:function(){return f("switch_con",{dir:h.dir})}})}),(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:(0,e.jsx)(n.$n,{icon:h.con_lock?"lock":"lock-open",disabled:!h.input,selected:h.con_lock,content:h.f_type||"None",onClick:function(){return f("switch_conlock",{dir:h.dir})}})})]}):null]})}},37534:function(P,y,t){"use strict";t.r(y),t.d(y,{OperatingComputer:function(){return h}});var e=t(88095),s=t(5229),n=t(4413),r=t(92514),i=t(68040),a=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],g=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],x={average:[.25,.5],bad:[.5,1/0]},f=["bad","average","average","good","average","average","bad"],h=function(c){var d=(0,n.Oc)(),p=d.act,C=d.data,j=C.hasOccupant,b=C.choice,O;return b?O=(0,e.jsx)(m,{}):O=j?(0,e.jsx)(v,{}):(0,e.jsx)(u,{}),(0,e.jsx)(i.p8,{width:650,height:455,children:(0,e.jsxs)(i.p8.Content,{children:[(0,e.jsxs)(r.tU,{children:[(0,e.jsx)(r.tU.Tab,{selected:!b,icon:"user",onClick:function(){return p("choiceOff")},children:"Patient"}),(0,e.jsx)(r.tU.Tab,{selected:!!b,icon:"cog",onClick:function(){return p("choiceOn")},children:"Options"})]}),(0,e.jsx)(r.wn,{flexGrow:"1",children:O})]})})},v=function(c){var d=(0,n.Oc)().data,p=d.occupant;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.wn,{title:"Patient",level:"2",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Name",children:p.name}),(0,e.jsx)(r.Ki.Item,{label:"Status",color:a[p.stat][0],children:a[p.stat][1]}),(0,e.jsx)(r.Ki.Item,{label:"Health",children:(0,e.jsx)(r.z2,{min:"0",max:p.maxHealth,value:p.health/p.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),g.map(function(C,j){return(0,e.jsx)(r.Ki.Item,{label:C[0]+" Damage",children:(0,e.jsx)(r.z2,{min:"0",max:"100",value:p[C[1]]/100,ranges:x,children:(0,s.LI)(p[C[1]])},j)},j)}),(0,e.jsx)(r.Ki.Item,{label:"Temperature",children:(0,e.jsxs)(r.z2,{min:"0",max:p.maxTemp,value:p.bodyTemperature/p.maxTemp,color:f[p.temperatureSuitability+3],children:[(0,s.LI)(p.btCelsius),"\xB0C, ",(0,s.LI)(p.btFaren),"\xB0F"]})}),!!p.hasBlood&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.Ki.Item,{label:"Blood Level",children:(0,e.jsxs)(r.z2,{min:"0",max:p.bloodMax,value:p.bloodLevel/p.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[p.bloodPercent,"%, ",p.bloodLevel,"cl"]})}),(0,e.jsxs)(r.Ki.Item,{label:"Pulse",children:[p.pulse," BPM"]})]})]})}),(0,e.jsx)(r.wn,{title:"Current Procedure",level:"2",children:p.surgery&&p.surgery.length?(0,e.jsx)(r.Ki,{children:p.surgery.map(function(C){return(0,e.jsx)(r.Ki.Item,{label:C.name,children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Current State",children:C.currentStage}),(0,e.jsx)(r.Ki.Item,{label:"Possible Next Steps",children:C.nextSteps.map(function(j){return(0,e.jsx)("div",{children:j},j)})})]})},C.name)})}):(0,e.jsx)(r.az,{color:"label",children:"No procedure ongoing."})})]})},u=function(){return(0,e.jsx)(r.so,{textAlign:"center",height:"100%",children:(0,e.jsxs)(r.so.Item,{grow:"1",align:"center",color:"label",children:[(0,e.jsx)(r.In,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.jsx)("br",{}),"No patient detected."]})})},m=function(c){var d=(0,n.Oc)(),p=d.act,C=d.data,j=C.verbose,b=C.health,O=C.healthAlarm,I=C.oxy,_=C.oxyAlarm,M=C.crit;return(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Loudspeaker",children:(0,e.jsx)(r.$n,{selected:j,icon:j?"toggle-on":"toggle-off",content:j?"On":"Off",onClick:function(){return p(j?"verboseOff":"verboseOn")}})}),(0,e.jsx)(r.Ki.Item,{label:"Health Announcer",children:(0,e.jsx)(r.$n,{selected:b,icon:b?"toggle-on":"toggle-off",content:b?"On":"Off",onClick:function(){return p(b?"healthOff":"healthOn")}})}),(0,e.jsx)(r.Ki.Item,{label:"Health Announcer Threshold",children:(0,e.jsx)(r.N6,{bipolar:!0,minValue:"-100",maxValue:"100",value:O,stepPixelSize:"5",ml:"0",format:function(D){return D+"%"},onChange:function(D,A){return p("health_adj",{new:A})}})}),(0,e.jsx)(r.Ki.Item,{label:"Oxygen Alarm",children:(0,e.jsx)(r.$n,{selected:I,icon:I?"toggle-on":"toggle-off",content:I?"On":"Off",onClick:function(){return p(I?"oxyOff":"oxyOn")}})}),(0,e.jsx)(r.Ki.Item,{label:"Oxygen Alarm Threshold",children:(0,e.jsx)(r.N6,{bipolar:!0,minValue:"-100",maxValue:"100",value:_,stepPixelSize:"5",ml:"0",onChange:function(D,A){return p("oxy_adj",{new:A})}})}),(0,e.jsx)(r.Ki.Item,{label:"Critical Alert",children:(0,e.jsx)(r.$n,{selected:M,icon:M?"toggle-on":"toggle-off",content:M?"On":"Off",onClick:function(){return p(M?"critOff":"critOn")}})})]})}},17511:function(P,y,t){"use strict";t.r(y),t.d(y,{OvermapDisperser:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=t(7240),a=function(x){return(0,e.jsx)(r.p8,{width:400,height:550,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(g,{})})})},g=function(x){var f=(0,s.Oc)(),h=f.act,v=f.data,u=v.faillink,m=v.calibration,c=v.overmapdir,d=v.cal_accuracy,p=v.strength,C=v.range,j=v.next_shot,b=v.nopower,O=v.skill,I=v.chargeload;return u?(0,e.jsx)(n.wn,{title:"Error",children:"Machine is incomplete, out of range, or misaligned!"}):(0,e.jsxs)(n.so,{wrap:"wrap",spacing:1,children:[(0,e.jsx)(n.so.Item,{basis:"22%",children:(0,e.jsx)(n.wn,{title:"Targeting",textAlign:"center",children:(0,e.jsx)(i.OvermapPanControls,{actToDo:"choose",selected:function(_){return _===c}})})}),(0,e.jsx)(n.so.Item,{basis:"74%",grow:1,children:(0,e.jsx)(n.wn,{title:"Charge",children:(0,e.jsxs)(n.Ki,{children:[b&&(0,e.jsx)(n.Ki.Item,{label:"Error",children:"At least one part of the machine is unpowered."})||null,(0,e.jsx)(n.Ki.Item,{label:"Charge Load Type",children:I}),(0,e.jsx)(n.Ki.Item,{label:"Cooldown",children:j===0&&(0,e.jsx)(n.az,{color:"good",children:"Ready"})||j>1&&(0,e.jsxs)(n.az,{color:"average",children:[(0,e.jsx)(n.zv,{value:j})," Seconds",(0,e.jsx)(n.az,{color:"bad",children:"Warning: Do not fire during cooldown."})]})||null})]})})}),(0,e.jsx)(n.so.Item,{basis:"50%",mt:1,children:(0,e.jsxs)(n.wn,{title:"Calibration",children:[(0,e.jsx)(n.zv,{value:d}),"%",(0,e.jsx)(n.$n,{ml:1,icon:"exchange-alt",onClick:function(){return h("skill_calibration")},children:"Pre-Calibration"}),(0,e.jsx)(n.az,{mt:1,children:m.map(function(_,M){return(0,e.jsxs)(n.az,{children:["Cal #",M,":",(0,e.jsx)(n.$n,{ml:1,icon:"random",onClick:function(){return h("calibration",{calibration:M})},children:_.toString()})]},M)})})]})}),(0,e.jsx)(n.so.Item,{basis:"45%",grow:1,mt:1,children:(0,e.jsx)(n.wn,{title:"Setup",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Strength",children:(0,e.jsx)(n.$n,{fluid:!0,icon:"fist-raised",onClick:function(){return h("strength")},children:p})}),(0,e.jsx)(n.Ki.Item,{label:"Radius",children:(0,e.jsx)(n.$n,{fluid:!0,icon:"expand-arrows-alt",onClick:function(){return h("range")},children:C})})]})})}),(0,e.jsx)(n.so.Item,{grow:1,mt:1,children:(0,e.jsx)(n.$n,{fluid:!0,color:"red",icon:"bomb",onClick:function(){return h("fire")},children:"Fire ORB"})})]})}},98203:function(P,y,t){"use strict";t.r(y),t.d(y,{OvermapEngines:function(){return i},OvermapEnginesContent:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(g){return(0,e.jsx)(r.p8,{width:390,height:530,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(a,{})})})},a=function(g){var x=(0,s.Oc)(),f=x.act,h=x.data,v=h.global_state,u=h.global_limit,m=h.engines_info,c=h.total_thrust;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.wn,{title:"Status",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Engines",children:(0,e.jsx)(n.$n,{icon:"power-off",selected:v,onClick:function(){return f("global_toggle")},children:v?"Shut All Engines Down":"Start All Engines"})}),(0,e.jsxs)(n.Ki.Item,{label:"Volume Limit",children:[(0,e.jsx)(n.$n,{onClick:function(){return f("global_limit",{global_limit:-.1})},icon:"minus"}),(0,e.jsxs)(n.$n,{onClick:function(){return f("set_global_limit")},children:[u,"%"]}),(0,e.jsx)(n.$n,{onClick:function(){return f("global_limit",{global_limit:.1})},icon:"plus"})]}),(0,e.jsx)(n.Ki.Item,{label:"Total Thrust",children:(0,e.jsx)(n.zv,{value:c})})]})}),(0,e.jsx)(n.wn,{title:"Engines",height:"340px",style:{"overflow-y":"auto"},children:m.map(function(d,p){return(0,e.jsxs)(n.so,{spacing:1,mt:p!==0&&-1,children:[(0,e.jsx)(n.so.Item,{basis:"80%",children:(0,e.jsx)(n.Nt,{title:(0,e.jsxs)(n.az,{inline:!0,children:["Engine #",p+1," | Thrust:"," ",(0,e.jsx)(n.zv,{value:d.eng_thrust})," | Limit:"," ",(0,e.jsx)(n.zv,{value:d.eng_thrust_limiter,format:function(C){return C+"%"}})]}),children:(0,e.jsx)(n.wn,{width:"127%",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Type",children:d.eng_type}),(0,e.jsxs)(n.Ki.Item,{label:"Status",children:[(0,e.jsx)(n.az,{color:d.eng_on?d.eng_on===1?"good":"average":"bad",children:d.eng_on?d.eng_on===1?"Online":"Booting":"Offline"}),d.eng_status.map(function(C,j){return Array.isArray(C)?(0,e.jsx)(n.az,{color:C[1],children:C[0]},j):(0,e.jsx)(n.az,{children:C},j)})]}),(0,e.jsx)(n.Ki.Item,{label:"Current Thrust",children:d.eng_thrust}),(0,e.jsxs)(n.Ki.Item,{label:"Volume Limit",children:[(0,e.jsx)(n.$n,{onClick:function(){return f("limit",{limit:-.1,engine:d.eng_reference})},icon:"minus"}),(0,e.jsxs)(n.$n,{onClick:function(){return f("set_limit",{engine:d.eng_reference})},children:[d.eng_thrust_limiter,"%"]}),(0,e.jsx)(n.$n,{onClick:function(){return f("limit",{limit:.1,engine:d.eng_reference})},icon:"plus"})]})]})})})}),(0,e.jsx)(n.so.Item,{basis:"20%",children:(0,e.jsx)(n.$n,{fluid:!0,iconSpin:d.eng_on===-1,color:d.eng_on===-1?"purple":null,selected:d.eng_on===1,icon:"power-off",onClick:function(){return f("toggle_engine",{engine:d.eng_reference})},children:d.eng_on?d.eng_on===1?"Shutoff":"Booting":"Startup"})})]},p)})})]})}},79061:function(P,y,t){"use strict";t.r(y),t.d(y,{OvermapFull:function(){return x}});var e=t(88095),s=t(44583),n=t(92514),r=t(68040),i=t(98203),a=t(60224),g=t(89501),x=function(f){var h=(0,s.useState)(0),v=h[0],u=h[1];return(0,e.jsx)(r.p8,{width:800,height:800,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(n.tU,{children:[(0,e.jsx)(n.tU.Tab,{selected:v===0,onClick:function(){return u(0)},children:"Engines"}),(0,e.jsx)(n.tU.Tab,{selected:v===1,onClick:function(){return u(1)},children:"Helm"}),(0,e.jsx)(n.tU.Tab,{selected:v===2,onClick:function(){return u(2)},children:"Sensors"})]}),v===0&&(0,e.jsx)(i.OvermapEnginesContent,{}),v===1&&(0,e.jsx)(a.OvermapHelmContent,{}),v===2&&(0,e.jsx)(g.OvermapShipSensorsContent,{})]})})}},60224:function(P,y,t){"use strict";t.r(y),t.d(y,{OvermapFlightDataWrap:function(){return x},OvermapHelm:function(){return a},OvermapHelmContent:function(){return g}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=t(7240),a=function(u){return(0,e.jsx)(r.p8,{width:565,height:545,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(g,{})})})},g=function(u){return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(n.so,{children:[(0,e.jsx)(n.so.Item,{basis:"40%",height:"180px",children:(0,e.jsx)(x,{})}),(0,e.jsx)(n.so.Item,{basis:"25%",height:"180px",children:(0,e.jsx)(f,{})}),(0,e.jsx)(n.so.Item,{basis:"35%",height:"180px",children:(0,e.jsx)(h,{})})]}),(0,e.jsx)(v,{})]})},x=function(u){var m=(0,s.Oc)(),c=m.act,d=m.data;return(0,e.jsxs)("fieldset",{style:{height:"100%",border:"1px solid #4972a1",margin:"none"},className:"Section",children:[(0,e.jsx)("legend",{children:"Flight Data"}),(0,e.jsx)(i.OvermapFlightData,{})]})},f=function(u){var m=(0,s.Oc)(),c=m.act,d=m.data,p=d.canburn,C=d.manual_control;return(0,e.jsxs)("fieldset",{style:{height:"100%",border:"1px solid #4972a1"},className:"Section",children:[(0,e.jsx)("legend",{children:"Manual Control"}),(0,e.jsx)(n.so,{align:"center",justify:"center",children:(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(i.OvermapPanControls,{disabled:!p,actToDo:"move"})})}),(0,e.jsxs)(n.az,{textAlign:"center",mt:1,children:[(0,e.jsx)(n.az,{bold:!0,underline:!0,children:"Direct Control"}),(0,e.jsx)(n.$n,{selected:C,onClick:function(){return c("manual")},icon:"compass",children:C?"Enabled":"Disabled"})]})]})},h=function(u){var m=(0,s.Oc)(),c=m.act,d=m.data,p=d.dest,C=d.d_x,j=d.d_y,b=d.speedlimit,O=d.autopilot,I=d.autopilot_disabled;return I?(0,e.jsxs)("fieldset",{style:{height:"100%",border:"1px solid #4972a1"},className:"Section",children:[(0,e.jsx)("legend",{children:"Autopilot"}),(0,e.jsx)(n.az,{textAlign:"center",color:"bad",fontSize:1.2,children:"AUTOPILOT DISABLED"}),(0,e.jsx)(n.az,{textAlign:"center",color:"average",children:"Warning: This vessel is equipped with a class I autopilot. Class I autopilots are unable to do anything but fly in a straight line directly towards the target, and may result in collisions."}),(0,e.jsx)(n.az,{textAlign:"center",children:(0,e.jsx)(n.$n.Confirm,{mt:1,color:"bad",content:"Unlock Autopilot",confirmContent:"ACCEPT RISKS?",icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",onClick:function(){return c("apilot_lock")}})})]}):(0,e.jsxs)("fieldset",{style:{height:"100%",border:"1px solid #4972a1"},className:"Section",children:[(0,e.jsx)("legend",{children:"Autopilot"}),(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Target",children:p&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{onClick:function(){return c("setcoord",{setx:!0})},children:C}),(0,e.jsx)(n.$n,{onClick:function(){return c("setcoord",{sety:!0})},children:j})]})||(0,e.jsx)(n.$n,{icon:"pen",onClick:function(){return c("setcoord",{setx:!0,sety:!0})},children:"None"})}),(0,e.jsx)(n.Ki.Item,{label:"Speed Limit",children:(0,e.jsxs)(n.$n,{icon:"tachometer-alt",onClick:function(){return c("speedlimit")},children:[b," Gm/h"]})})]}),(0,e.jsx)(n.$n,{mt:1,fluid:!0,selected:O,disabled:!p,icon:"robot",onClick:function(){return c("apilot")},children:O?"Engaged":"Disengaged"}),(0,e.jsx)(n.$n,{fluid:!0,color:"good",icon:"exclamation-triangle",onClick:function(){return c("apilot_lock")},children:"Lock Autopilot"})]})},v=function(u){var m=(0,s.Oc)(),c=m.act,d=m.data,p=d.sector,C=d.s_x,j=d.s_y,b=d.sector_info,O=d.landed,I=d.locations;return(0,e.jsxs)(n.wn,{title:"Navigation Data",m:.3,mt:1,children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Location",children:p}),(0,e.jsxs)(n.Ki.Item,{label:"Coordinates",children:[C," : ",j]}),(0,e.jsx)(n.Ki.Item,{label:"Scan Data",children:b}),(0,e.jsx)(n.Ki.Item,{label:"Status",children:O})]}),(0,e.jsxs)(n.so,{mt:1,align:"center",justify:"center",spacing:1,children:[(0,e.jsx)(n.so.Item,{basis:"50%",children:(0,e.jsx)(n.$n,{fluid:!0,icon:"save",onClick:function(){return c("add",{add:"current"})},children:"Save Current Position"})}),(0,e.jsx)(n.so.Item,{basis:"50%",children:(0,e.jsx)(n.$n,{fluid:!0,icon:"sticky-note",onClick:function(){return c("add",{add:"new"})},children:"Add New Entry"})})]}),(0,e.jsx)(n.wn,{mt:1,scrollable:!0,height:"130px",children:(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{children:"Name"}),(0,e.jsx)(n.XI.Cell,{children:"Coordinates"}),(0,e.jsx)(n.XI.Cell,{children:"Actions"})]}),I.map(function(_){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{children:_.name}),(0,e.jsxs)(n.XI.Cell,{children:[_.x," : ",_.y]}),(0,e.jsxs)(n.XI.Cell,{collapsing:!0,children:[(0,e.jsx)(n.$n,{icon:"rocket",onClick:function(){return c("setds",{x:_.x,y:_.y})},children:"Plot Course"}),(0,e.jsx)(n.$n,{icon:"trash",onClick:function(){return c("remove",{remove:_.reference})},children:"Remove"})]})]},_.name)})]})})]})}},15156:function(P,y,t){"use strict";t.r(y),t.d(y,{OvermapNavigation:function(){return a},OvermapNavigationContent:function(){return g}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=t(7240),a=function(){return(0,e.jsx)(r.p8,{width:380,height:530,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(g,{})})})},g=function(x){var f=(0,s.Oc)(),h=f.act,v=f.data,u=v.sector,m=v.s_x,c=v.s_y,d=v.sector_info,p=v.viewing;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.wn,{title:"Current Location",buttons:(0,e.jsx)(n.$n,{icon:"eye",selected:p,onClick:function(){return h("viewing")},children:"Map View"}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Current Location",children:u}),(0,e.jsxs)(n.Ki.Item,{label:"Coordinates",children:[m," : ",c]}),(0,e.jsx)(n.Ki.Item,{label:"Additional Information",children:d})]})}),(0,e.jsx)(n.wn,{title:"Flight Data",children:(0,e.jsx)(i.OvermapFlightData,{disableLimiterControls:!0})})]})}},20576:function(P,y,t){"use strict";t.r(y),t.d(y,{OvermapShieldGenerator:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(f){return(0,e.jsx)(r.p8,{width:500,height:760,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(a,{})})})},a=function(f){var h=(0,s.Oc)(),v=h.act,u=h.data,m=u.modes,c=u.offline_for;return c?(0,e.jsxs)(n.wn,{title:"EMERGENCY SHUTDOWN",color:"bad",children:["An emergency shutdown has been initiated - generator cooling down. Please wait until the generator cools down before resuming operation. Estimated time left: ",c," seconds."]}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(g,{}),(0,e.jsx)(x,{}),(0,e.jsx)(n.wn,{title:"Field Calibration",children:m.map(function(d){return(0,e.jsxs)(n.wn,{title:d.name,level:2,buttons:(0,e.jsx)(n.$n,{icon:"power-off",selected:d.status,onClick:function(){return v("toggle_mode",{toggle_mode:d.flag})},children:d.status?"Enabled":"Disabled"}),children:[(0,e.jsx)(n.az,{color:"label",children:d.desc}),(0,e.jsxs)(n.az,{mt:.5,children:["Multiplier: ",d.multiplier]})]},d.name)})})]})},g=function(f){var h=(0,s.Oc)(),v=h.act,u=h.data,m=u.running,c=u.overloaded,d=u.mitigation_max,p=u.mitigation_physical,C=u.mitigation_em,j=u.mitigation_heat,b=u.field_integrity,O=u.max_energy,I=u.current_energy,_=u.percentage_energy,M=u.total_segments,D=u.functional_segments,A=u.field_radius,R=u.target_radius,K=u.input_cap_kw,N=u.upkeep_power_usage,k=u.power_usage,V=u.spinup_counter;return(0,e.jsx)(n.wn,{title:"System Status",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Generator is",children:m===1&&(0,e.jsx)(n.az,{color:"average",children:"Shutting Down"})||m===2&&(c&&(0,e.jsx)(n.az,{color:"bad",children:"Overloaded"})||(0,e.jsx)(n.az,{color:"good",children:"Running"}))||m===3&&(0,e.jsx)(n.az,{color:"average",children:"Inactive"})||m===4&&(0,e.jsxs)(n.az,{color:"blue",children:["Spinning Up\xA0",R!==A&&(0,e.jsx)(n.az,{inline:!0,children:"(Adjusting Radius)"})||(0,e.jsxs)(n.az,{inline:!0,children:[V*2,"s"]})]})||(0,e.jsx)(n.az,{color:"bad",children:"Offline"})}),(0,e.jsx)(n.Ki.Item,{label:"Energy Storage",children:(0,e.jsxs)(n.z2,{value:I,maxValue:O,children:[I," / ",O," MJ (",_,"%)"]})}),(0,e.jsxs)(n.Ki.Item,{label:"Shield Integrity",children:[(0,e.jsx)(n.zv,{value:b}),"%"]}),(0,e.jsxs)(n.Ki.Item,{label:"Mitigation",children:[C,"% EM / ",p,"% PH / ",j,"% HE / ",d,"% MAX"]}),(0,e.jsxs)(n.Ki.Item,{label:"Upkeep Energy Use",children:[(0,e.jsx)(n.zv,{value:N})," kW"]}),(0,e.jsx)(n.Ki.Item,{label:"Total Energy Use",children:K&&(0,e.jsx)(n.az,{children:(0,e.jsxs)(n.z2,{value:k,maxValue:K,children:[k," / ",K," kW"]})})||(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.zv,{value:k})," kW (No Limit)"]})}),(0,e.jsxs)(n.Ki.Item,{label:"Field Size",children:[(0,e.jsx)(n.zv,{value:D}),"\xA0/\xA0",(0,e.jsx)(n.zv,{value:M})," m\xB2 (radius"," ",(0,e.jsx)(n.zv,{value:A}),", target"," ",(0,e.jsx)(n.zv,{value:R}),")"]})]})})},x=function(f){var h=(0,s.Oc)(),v=h.act,u=h.data,m=u.running,c=u.hacked,d=u.idle_multiplier,p=u.idle_valid_values;return(0,e.jsxs)(n.wn,{title:"Controls",buttons:(0,e.jsxs)(e.Fragment,{children:[m>=2&&(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.$n,{icon:"power-off",onClick:function(){return v("begin_shutdown")},selected:!0,children:"Turn off"}),m===3&&(0,e.jsx)(n.$n,{icon:"power-off",onClick:function(){return v("toggle_idle",{toggle_idle:0})},children:"Activate"})||(0,e.jsx)(n.$n,{icon:"power-off",onClick:function(){return v("toggle_idle",{toggle_idle:1})},selected:!0,children:"Deactivate"})]})||(0,e.jsx)(n.$n,{icon:"power-off",onClick:function(){return v("start_generator")},children:"Turn on"}),m&&c&&(0,e.jsx)(n.$n,{icon:"exclamation-triangle",onClick:function(){return v("emergency_shutdown")},color:"bad",children:"EMERGENCY SHUTDOWN"})||null]}),children:[(0,e.jsx)(n.$n,{icon:"expand-arrows-alt",onClick:function(){return v("set_range")},children:"Set Field Range"}),(0,e.jsx)(n.$n,{icon:"bolt",onClick:function(){return v("set_input_cap")},children:"Set Input Cap"}),(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Set inactive power use intensity",children:p.map(function(C){return(0,e.jsx)(n.$n,{selected:C===d,disabled:m===4,onClick:function(){return v("switch_idle",{switch_idle:C})},children:C},C)})})})]})}},89501:function(P,y,t){"use strict";t.r(y),t.d(y,{OvermapShipSensors:function(){return i},OvermapShipSensorsContent:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(g){return(0,e.jsx)(r.p8,{width:375,height:545,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(a,{})})})},a=function(g){var x=(0,s.Oc)(),f=x.act,h=x.data,v=h.viewing,u=h.on,m=h.range,c=h.health,d=h.max_health,p=h.heat,C=h.critical_heat,j=h.status,b=h.contacts;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.wn,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"eye",selected:v,onClick:function(){return f("viewing")},children:"Map View"}),(0,e.jsx)(n.$n,{icon:"power-off",selected:u,onClick:function(){return f("toggle_sensor")},children:u?"Sensors Enabled":"Sensors Disabled"})]}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Status",children:j}),(0,e.jsx)(n.Ki.Item,{label:"Range",children:(0,e.jsx)(n.$n,{icon:"signal",onClick:function(){return f("range")},children:m})}),(0,e.jsx)(n.Ki.Item,{label:"Integrity",children:(0,e.jsxs)(n.z2,{ranges:{good:[d*.75,1/0],average:[d*.25,d*.75],bad:[-1/0,d*.25]},value:c,maxValue:d,children:[c," / ",d]})}),(0,e.jsx)(n.Ki.Item,{label:"Temperature",children:(0,e.jsx)(n.z2,{ranges:{bad:[C*.75,1/0],average:[C*.5,C*.75],good:[-1/0,C*.5]},value:p,maxValue:C,children:p0||!p)&&(0,e.jsx)(r.$n,{ml:1,icon:"times",onClick:function(){return h("cancel",{cancel:I+1})},children:"Cancel"})||null]},O)})||(0,e.jsx)(r.IC,{info:!0,children:"Queue Empty"})}),(0,e.jsx)(r.wn,{title:"Recipes",children:b.length&&b.map(function(O){return(0,e.jsx)(r.az,{children:(0,e.jsx)(r.$n,{icon:"wrench",onClick:function(){return h("queue",{queue:O.type})},children:(0,s.Sn)(O.name)})},O.name)})})]})})}},55725:function(P,y,t){"use strict";t.r(y),t.d(y,{PathogenicIsolator:function(){return x}});var e=t(88095),s=t(44583),n=t(4413),r=t(92514),i=t(5425),a=t(68040),g=function(v){var u=(0,n.Oc)(),m=u.act,c=u.data,d=c.can_print,p=v.args;return(0,e.jsx)(r.wn,{level:2,m:"-1rem",title:p.name||"Virus",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{disabled:!d,icon:"print",content:"Print",onClick:function(){return m("print",{type:"virus_record",vir:p.record})}}),(0,e.jsx)(r.$n,{icon:"times",color:"red",onClick:function(){return m("modal_close")}})]}),children:(0,e.jsx)(r.az,{mx:"0.5rem",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Spread",children:[p.spread_text," Transmission"]}),(0,e.jsx)(r.Ki.Item,{label:"Possible cure",children:p.antigen}),(0,e.jsx)(r.Ki.Item,{label:"Rate of Progression",children:p.rate}),(0,e.jsxs)(r.Ki.Item,{label:"Antibiotic Resistance",children:[p.resistance,"%"]}),(0,e.jsx)(r.Ki.Item,{label:"Species Affected",children:p.species}),(0,e.jsx)(r.Ki.Item,{label:"Symptoms",children:(0,e.jsx)(r.Ki,{children:p.symptoms.map(function(C){return(0,e.jsxs)(r.Ki.Item,{label:C.stage+". "+C.name,children:[(0,e.jsxs)(r.az,{inline:!0,children:[(0,e.jsx)(r.az,{inline:!0,color:"label",children:"Strength:"})," ",C.strength,"\xA0"]}),(0,e.jsxs)(r.az,{inline:!0,children:[(0,e.jsx)(r.az,{inline:!0,color:"label",children:"Aggressiveness:"})," ",C.aggressiveness]})]},C.stage)})})})]})})})},x=function(v){var u=(0,n.Oc)(),m=u.act,c=u.data,d=c.isolating,p=(0,s.useState)(0),C=p[0],j=p[1],b=null;return C===0?b=(0,e.jsx)(f,{}):C===1&&(b=(0,e.jsx)(h,{})),(0,i.modalRegisterBodyOverride)("virus",g),(0,e.jsxs)(a.p8,{height:500,width:520,children:[(0,e.jsx)(i.ComplexModal,{maxHeight:"100%",maxWidth:"95%"}),(0,e.jsxs)(a.p8.Content,{scrollable:!0,children:[d&&(0,e.jsx)(r.IC,{warning:!0,children:"The Isolator is currently isolating..."})||null,(0,e.jsxs)(r.tU,{children:[(0,e.jsx)(r.tU.Tab,{selected:C===0,onClick:function(){return j(0)},children:"Home"}),(0,e.jsx)(r.tU.Tab,{selected:C===1,onClick:function(){return j(1)},children:"Database"})]}),b]})]})},f=function(v){var u=(0,n.Oc)(),m=u.act,c=u.data,d=c.syringe_inserted,p=c.pathogen_pool,C=c.can_print;return(0,e.jsx)(r.wn,{title:"Pathogens",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"print",content:"Print",disabled:!C,onClick:function(){return m("print",{type:"patient_diagnosis"})}}),(0,e.jsx)(r.$n,{icon:"eject",content:"Eject Syringe",disabled:!d,onClick:function(){return m("eject")}})]}),children:p.length&&p.map(function(j){return(0,e.jsxs)(r.wn,{children:[(0,e.jsx)(r.az,{color:"label",children:(0,e.jsxs)(r.so,{align:"center",children:[(0,e.jsxs)(r.so.Item,{grow:1,children:[(0,e.jsxs)("u",{children:["Stamm #",j.unique_id]}),j.is_in_database?" (Analyzed)":" (Not Analyzed)"]}),(0,e.jsxs)(r.so.Item,{children:[(0,e.jsx)(r.$n,{icon:"virus",content:"Isolate",onClick:function(){return m("isolate",{isolate:j.reference})}}),(0,e.jsx)(r.$n,{icon:"search",content:"Database",disabled:!j.is_in_database,onClick:function(){return m("view_entry",{vir:j.record})}})]})]})}),(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.az,{color:"average",mb:1,children:j.name}),j.dna]})]},j.unique_id)})||(d?(0,e.jsx)(r.az,{color:"average",children:"No samples detected."}):(0,e.jsx)(r.az,{color:"average",children:"No syringe inserted."}))})},h=function(v){var u=(0,n.Oc)(),m=u.act,c=u.data,d=c.database,p=c.can_print;return(0,e.jsx)(r.wn,{title:"Database",buttons:(0,e.jsx)(r.$n,{icon:"print",content:"Print",disabled:!p,onClick:function(){return m("print",{type:"virus_list"})}}),children:d.length&&d.map(function(C){return(0,e.jsx)(r.$n,{fluid:!0,icon:"search",onClick:function(){return m("view_entry",{vir:C.record})},children:C.name},C.name)})||(0,e.jsx)(r.az,{color:"average",children:"The viral database is empty."})})}},34557:function(P,y,t){"use strict";t.r(y),t.d(y,{Pda:function(){return f}});var e=t(88095),s=t(44583),n=t(4413),r=t(92514),i=t(68040),a=t(82989),g=t(7339),x=function(m){var c;try{c=g("./"+m+".jsx")}catch(p){if(p.code==="MODULE_NOT_FOUND")return(0,a.z)("notFound",m);throw p}var d=c[m];return d||(0,a.z)("missingExport",m)},f=function(m){var c=function(R){D(R)},d=(0,n.Oc)(),p=d.act,C=d.data,j=C.app,b=C.owner,O=C.useRetro;if(!b)return(0,e.jsx)(i.p8,{children:(0,e.jsx)(i.p8.Content,{children:(0,e.jsx)(r.wn,{stretchContents:!0,children:"Warning: No ID information found! Please swipe ID!"})})});var I=x(j.template),_=(0,s.useState)(!1),M=_[0],D=_[1];return(0,e.jsx)(i.p8,{width:580,height:670,theme:O?"pda-retro":null,children:(0,e.jsxs)(i.p8.Content,{scrollable:!0,children:[(0,e.jsx)(h,{settingsMode:M,onSettingsMode:c}),M&&(0,e.jsx)(v,{})||(0,e.jsx)(r.wn,{title:(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.In,{name:j.icon,mr:1}),j.name]}),p:1,children:(0,e.jsx)(I,{})}),(0,e.jsx)(r.az,{mb:8}),(0,e.jsx)(u,{onSettingsMode:c})]})})},h=function(m){var c=(0,n.Oc)(),d=c.act,p=c.data,C=p.idInserted,j=p.idLink,b=p.cartridge_name,O=p.stationTime;return(0,e.jsx)(r.az,{mb:1,children:(0,e.jsxs)(r.so,{align:"center",justify:"space-between",children:[!!C&&(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{icon:"eject",color:"transparent",onClick:function(){return d("Authenticate")},content:j})}),(0,e.jsx)(r.so.Item,{grow:1,textAlign:"center",bold:!0,children:O}),(0,e.jsxs)(r.so.Item,{children:[(0,e.jsx)(r.$n,{selected:m.settingsMode,onClick:function(){return m.onSettingsMode(!m.settingsMode)},icon:"cog"}),(0,e.jsx)(r.$n,{onClick:function(){return d("Retro")},icon:"adjust"})]})]})})},v=function(m){var c=(0,n.Oc)(),d=c.act,p=c.data,C=p.idInserted,j=p.idLink,b=p.cartridge_name,O=p.touch_silent;return(0,e.jsx)(r.wn,{title:"Settings",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"R.E.T.R.O Mode",children:(0,e.jsx)(r.$n,{icon:"cog",content:"Retro Theme",onClick:function(){return d("Retro")}})}),(0,e.jsx)(r.Ki.Item,{label:"Touch Sounds",children:(0,e.jsx)(r.$n,{icon:"cog",selected:!O,content:O?"Disabled":"Enabled",onClick:function(){return d("TouchSounds")}})}),!!b&&(0,e.jsx)(r.Ki.Item,{label:"Cartridge",children:(0,e.jsx)(r.$n,{icon:"eject",onClick:function(){return d("Eject")},content:b})}),!!C&&(0,e.jsx)(r.Ki.Item,{label:"ID Card",children:(0,e.jsx)(r.$n,{icon:"eject",onClick:function(){return d("Authenticate")},content:j})})]})})},u=function(m){var c=(0,n.Oc)(),d=c.act,p=c.data,C=p.app,j=p.useRetro;return(0,e.jsx)(r.az,{position:"fixed",bottom:"0%",left:"0%",right:"0%",backgroundColor:j?"#6f7961":"#1b1b1b",children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{basis:"33%",children:(0,e.jsx)(r.$n,{fluid:!0,color:"transparent",iconColor:C.has_back?"white":"disabled",textAlign:"center",icon:"undo",mb:0,fontSize:1.7,onClick:function(){return d("Back")}})}),(0,e.jsx)(r.so.Item,{basis:"33%",children:(0,e.jsx)(r.$n,{fluid:!0,color:"transparent",iconColor:C.is_home?"disabled":"white",textAlign:"center",icon:"home",mb:0,fontSize:1.7,onClick:function(){m.onSettingsMode(!1),d("Home")}})})]})})}},47676:function(P,y,t){"use strict";t.r(y),t.d(y,{PersonalCrafting:function(){return h}});var e=t(88095),s=t(44583),n=t(4413),r=t(92514),i=t(68040);function a(u,m){(m==null||m>u.length)&&(m=u.length);for(var c=0,d=new Array(m);c=u.length?{done:!0}:{done:!1,value:u[d++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var h=function(u){for(var m,c=(0,n.Oc)(),d=c.act,p=c.data,C=p.busy,j=p.display_craftable_only,b=p.display_compact,O=p.crafting_recipes||{},I=[],_=[],M=f(Object.keys(O)),D;!(D=M()).done;){var A=D.value,R=O[A];if("has_subcats"in R){for(var K=f(Object.keys(R)),N;!(N=K()).done;){var k=N.value;if(k!=="has_subcats"){I.push({name:k,category:A,subcategory:k});for(var V=R[k],F=f(V),J;!(J=F()).done;){var H=J.value;_.push(g({},H,{category:k}))}}}continue}I.push({name:A,category:A});for(var Q=O[A],Z=f(Q),X;!(X=Z()).done;){var z=X.value;_.push(g({},z,{category:A}))}}var Y=(0,s.useState)((m=I[0])==null?void 0:m.name),ee=Y[0],oe=Y[1],ne=_.filter(function(ue){return ue.category===ee});return(0,e.jsx)(i.p8,{title:"Crafting Menu",width:700,height:800,children:(0,e.jsxs)(i.p8.Content,{scrollable:!0,children:[!!C&&(0,e.jsxs)(r.Rr,{fontSize:"32px",children:[(0,e.jsx)(r.In,{name:"cog",spin:1})," Crafting..."]}),(0,e.jsx)(r.wn,{title:"Personal Crafting",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n.Checkbox,{content:"Compact",checked:b,onClick:function(){return d("toggle_compact")}}),(0,e.jsx)(r.$n.Checkbox,{content:"Craftable Only",checked:j,onClick:function(){return d("toggle_recipes")}})]}),children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.tU,{vertical:!0,children:I.map(function(ue){return(0,e.jsx)(r.tU.Tab,{selected:ue.name===ee,onClick:function(){oe(ue.name),d("set_category",{category:ue.category,subcategory:ue.subcategory})},children:ue.name},ue.name)})})}),(0,e.jsx)(r.so.Item,{grow:1,basis:0,children:(0,e.jsx)(v,{craftables:ne})})]})})]})})},v=function(u){var m=u.craftables,c=m===void 0?[]:m,d=(0,n.Oc)(),p=d.act,C=d.data,j=C.craftability,b=j===void 0?{}:j,O=C.display_compact,I=C.display_craftable_only;return c.map(function(_){return I&&!b[_.ref]?null:O?(0,e.jsx)(r.Ki.Item,{label:_.name,className:"candystripe",buttons:(0,e.jsx)(r.$n,{icon:"cog",content:"Craft",disabled:!b[_.ref],tooltip:_.tool_text&&"Tools needed: "+_.tool_text,tooltipPosition:"left",onClick:function(){return p("make",{recipe:_.ref})}}),children:_.req_text},_.name):(0,e.jsx)(r.wn,{title:_.name,level:2,buttons:(0,e.jsx)(r.$n,{icon:"cog",content:"Craft",disabled:!b[_.ref],onClick:function(){return p("make",{recipe:_.ref})}}),children:(0,e.jsxs)(r.Ki,{children:[!!_.req_text&&(0,e.jsx)(r.Ki.Item,{label:"Required",children:_.req_text}),!!_.catalyst_text&&(0,e.jsx)(r.Ki.Item,{label:"Catalyst",children:_.catalyst_text}),!!_.tool_text&&(0,e.jsx)(r.Ki.Item,{label:"Tools",children:_.tool_text})]})},_.name)})}},24837:function(P,y,t){"use strict";t.r(y),t.d(y,{Phorochem:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,h=f.intensity,v=f.phoron,u=f.message,m=f.timeLeft,c=f.timeLeftMax;return(0,e.jsx)(r.p8,{width:425,height:270,resizable:!0,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(n.wn,{title:"Phorochemistry Control",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Commands",children:[(0,e.jsx)(n.$n,{content:"Recalibrate",onClick:function(){return x("recalibrate")}}),(0,e.jsx)(n.$n,{content:"Begin Test",onClick:function(){return x("beginTest")}}),(0,e.jsx)(n.$n,{content:"Abort Test",onClick:function(){return x("abortTest")}})]}),(0,e.jsxs)(n.Ki.Item,{label:"Intensity",children:[(0,e.jsx)(n.$n,{icon:"backward",onClick:function(){return x("remove_intensity")}}),(0,e.jsx)(n.$n,{content:"1",disabled:h!==1,selected:h===1}),(0,e.jsx)(n.$n,{content:"2",disabled:h!==2,selected:h===2}),(0,e.jsx)(n.$n,{content:"3",disabled:h!==3,selected:h===3}),(0,e.jsx)(n.$n,{content:"4",disabled:h!==4,selected:h===4}),(0,e.jsx)(n.$n,{content:"5",disabled:h!==5,selected:h===5}),(0,e.jsx)(n.$n,{icon:"forward",onClick:function(){return x("add_intensity")}})]})]})}),(0,e.jsxs)(n.wn,{title:"Information",children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Phoron",children:(0,e.jsx)(n.z2,{value:v,ranges:{good:[.35,1/0],average:[.15,.35],bad:[-1/0,.15]},children:v+" Moles"})}),(0,e.jsx)(n.Ki.Item,{label:"Progress",children:(0,e.jsx)(n.z2,{value:m,maxValue:c,ranges:{},children:m+"/"+c+" Seconds"})})]}),(0,e.jsx)(n.wn,{children:u})]})]})})}},75226:function(P,y,t){"use strict";t.r(y),t.d(y,{Photocopier:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(f){var h=(0,s.Oc)().data,v=h.isAI,u=h.has_toner,m=h.has_item;return(0,e.jsx)(r.p8,{title:"Photocopier",width:240,height:v?309:234,children:(0,e.jsxs)(r.p8.Content,{children:[u?(0,e.jsx)(a,{}):(0,e.jsx)(n.wn,{title:"Toner",children:(0,e.jsx)(n.az,{color:"average",children:"No inserted toner cartridge."})}),m?(0,e.jsx)(g,{}):(0,e.jsx)(n.wn,{title:"Options",children:(0,e.jsx)(n.az,{color:"average",children:"No inserted item."})}),!!v&&(0,e.jsx)(x,{})]})})},a=function(f){var h=(0,s.Oc)(),v=h.act,u=h.data,m=u.max_toner,c=u.current_toner,d=m*.66,p=m*.33;return(0,e.jsx)(n.wn,{title:"Toner",children:(0,e.jsx)(n.z2,{ranges:{good:[d,m],average:[p,d],bad:[0,p]},value:c,minValue:0,maxValue:m})})},g=function(f){var h=(0,s.Oc)(),v=h.act,u=h.data,m=u.num_copies,c=u.has_enough_toner;return(0,e.jsxs)(n.wn,{title:"Options",children:[(0,e.jsxs)(n.so,{children:[(0,e.jsx)(n.so.Item,{mt:.4,width:11,color:"label",children:"Make copies:"}),(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(n.Q7,{animate:!0,width:2.6,height:1.65,step:1,stepPixelSize:8,minValue:1,maxValue:10,value:m,onDrag:function(d,p){return v("set_copies",{num_copies:p})}})}),(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(n.$n,{ml:.2,icon:"copy",textAlign:"center",onClick:function(){return v("make_copy")},children:"Copy"})})]}),(0,e.jsx)(n.$n,{mt:.5,textAlign:"center",icon:"reply",fluid:!0,onClick:function(){return v("remove")},children:"Remove item"})]})},x=function(f){var h=(0,s.Oc)(),v=h.act,u=h.data,m=u.can_AI_print;return(0,e.jsx)(n.wn,{title:"AI Options",children:(0,e.jsx)(n.az,{children:(0,e.jsx)(n.$n,{fluid:!0,icon:"images",textAlign:"center",disabled:!m,onClick:function(){return v("ai_photo")},children:"Print photo from database"})})})}},23393:function(P,y,t){"use strict";t.r(y),t.d(y,{PipeDispenser:function(){return g}});var e=t(88095),s=t(44583),n=t(4413),r=t(92514),i=t(68040),a=t(62133),g=function(x){var f=(0,n.Oc)(),h=f.act,v=f.data,u=v.disposals,m=v.p_layer,c=v.pipe_layers,d=v.categories,p=d===void 0?[]:d,C=(0,s.useState)("categoryName"),j=C[0],b=C[1],O=p.find(function(I){return I.cat_name===j})||p[0];return(0,e.jsx)(i.p8,{width:425,height:515,children:(0,e.jsxs)(i.p8.Content,{scrollable:!0,children:[!u&&(0,e.jsx)(r.wn,{title:"Layer",children:(0,e.jsx)(r.az,{children:Object.keys(c).map(function(I){return(0,e.jsx)(r.$n.Checkbox,{fluid:!0,checked:c[I]===m,content:I,onClick:function(){return h("p_layer",{p_layer:c[I]})}},I)})})}),(0,e.jsxs)(r.wn,{title:"Pipes",children:[(0,e.jsx)(r.tU,{children:p.map(function(I,_){return(0,e.jsx)(r.tU.Tab,{fluid:!0,icon:a.ICON_BY_CATEGORY_NAME[I.cat_name],selected:I.cat_name===O.cat_name,onClick:function(){return b(I.cat_name)},children:I.cat_name},I.cat_name)})}),O==null?void 0:O.recipes.map(function(I){return(0,e.jsx)(r.$n,{fluid:!0,ellipsis:!0,content:I.pipe_name,title:I.pipe_name,onClick:function(){return h("dispense_pipe",{ref:I.ref,bent:I.bent,category:O.cat_name})}},I.pipe_name)})]})]})})}},28165:function(P,y,t){"use strict";t.r(y),t.d(y,{PlantAnalyzer:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(g){var x=(0,s.Oc)().data,f=250;return x.seed&&(f+=18*x.seed.trait_info.length),x.reagents&&x.reagents.length&&(f+=55,f+=20*x.reagents.length),(0,e.jsx)(r.p8,{width:400,height:f,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(a,{})})})},a=function(g){var x=(0,s.Oc)(),f=x.act,h=x.data,v=h.no_seed,u=h.seed,m=h.reagents;return v?(0,e.jsx)(n.wn,{title:"Analyzer Unused",children:"You should go scan a plant! There is no data currently loaded."}):(0,e.jsxs)(n.wn,{title:"Plant Information",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"print",onClick:function(){return f("print")},children:"Print Report"}),(0,e.jsx)(n.$n,{icon:"window-close",color:"red",onClick:function(){return f("close")}})]}),children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Plant Name",children:[u.name,"#",u.uid]}),(0,e.jsx)(n.Ki.Item,{label:"Endurance",children:u.endurance}),(0,e.jsx)(n.Ki.Item,{label:"Yield",children:u.yield}),(0,e.jsx)(n.Ki.Item,{label:"Maturation Time",children:u.maturation_time}),(0,e.jsx)(n.Ki.Item,{label:"Production Time",children:u.production_time}),(0,e.jsx)(n.Ki.Item,{label:"Potency",children:u.potency})]}),m.length&&(0,e.jsx)(n.wn,{level:2,title:"Plant Reagents",children:(0,e.jsx)(n.Ki,{children:m.map(function(c){return(0,e.jsxs)(n.Ki.Item,{label:c.name,children:[c.volume," unit(s)."]},c.name)})})})||null,(0,e.jsx)(n.wn,{level:2,title:"Other Data",children:u.trait_info.map(function(c){return(0,e.jsx)(n.az,{color:"label",mb:.4,children:c},c)})})]})}},73304:function(P,y,t){"use strict";t.r(y),t.d(y,{PlayerNotes:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,h=f.device_theme,v=f.filter,u=f.pages,m=f.ckeys,c=function(d){return d()};return(0,e.jsx)(r.p8,{title:"Player Notes",theme:h,width:400,height:500,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsxs)(n.wn,{title:"Player notes",children:[(0,e.jsx)(n.$n,{icon:"filter",onClick:function(){return x("filter_player_notes")},children:"Apply Filter"}),(0,e.jsx)(n.$n,{icon:"sidebar",onClick:function(){return x("open_legacy_ui")},children:"Open Legacy UI"}),(0,e.jsx)(n.cG,{}),(0,e.jsx)(n.$n.Input,{content:"CKEY to Open",onCommit:function(d,p){return x("show_player_info",{name:p})}}),(0,e.jsx)(n.cG,{vertical:!0}),(0,e.jsx)(n.$n,{color:"green",content:v,onClick:function(){return x("clear_player_info_filter")}}),(0,e.jsx)(n.cG,{}),(0,e.jsx)(n.XI,{children:m.map(function(d){return(0,e.jsx)(n.XI.Row,{children:(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{fluid:!0,color:"transparent",icon:"user",content:d.desc,onClick:function(){return x("show_player_info",{name:d.name})},children:d.name})})},d.name)})}),(0,e.jsx)(n.cG,{}),c(function(){for(var d=function(j){p.push((0,e.jsx)(n.$n,{onClick:function(){return x("set_page",{index:j})},children:j},j))},p=[],C=1;C=.5&&"good"||v>.15&&"average"||"bad";return(0,e.jsx)(i.p8,{width:450,height:340,children:(0,e.jsxs)(i.p8.Content,{scrollable:!0,children:[!h.anchored&&(0,e.jsx)(r.IC,{children:"Generator not anchored."}),(0,e.jsx)(r.wn,{title:"Status",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Power switch",children:(0,e.jsx)(r.$n,{icon:h.active?"power-off":"times",onClick:function(){return f("toggle_power")},selected:h.active,disabled:!h.ready_to_boot,children:h.active?"On":"Off"})}),(0,e.jsx)(r.Ki.Item,{label:"Fuel Type",buttons:h.fuel_stored>=1&&(0,e.jsx)(r.$n,{ml:1,icon:"eject",disabled:h.active,onClick:function(){return f("eject")},children:"Eject"}),children:(0,e.jsxs)(r.az,{color:u,children:[h.fuel_stored,"cm\xB3 ",h.sheet_name]})}),(0,e.jsx)(r.Ki.Item,{label:"Current fuel level",children:(0,e.jsxs)(r.z2,{value:h.fuel_stored/h.fuel_capacity,ranges:{good:[.5,1/0],average:[.15,.5],bad:[-1/0,.15]},children:[h.fuel_stored,"cm\xB3 / ",h.fuel_capacity,"cm\xB3"]})}),(0,e.jsxs)(r.Ki.Item,{label:"Fuel Usage",children:[h.fuel_usage," cm\xB3/s"]}),(0,e.jsx)(r.Ki.Item,{label:"Temperature",children:(0,e.jsxs)(r.z2,{value:h.temperature_current,maxValue:h.temperature_max+30,color:h.temperature_overheat?"bad":"good",children:[(0,s.LI)(h.temperature_current),"\xB0C"]})})]})}),(0,e.jsx)(r.wn,{title:"Output",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Current output",color:h.unsafe_output?"bad":null,children:h.power_output}),(0,e.jsxs)(r.Ki.Item,{label:"Adjust output",children:[(0,e.jsx)(r.$n,{icon:"minus",onClick:function(){return f("lower_power")},children:h.power_generated}),(0,e.jsx)(r.$n,{icon:"plus",onClick:function(){return f("higher_power")},children:h.power_generated})]}),(0,e.jsx)(r.Ki.Item,{label:"Power available",children:(0,e.jsx)(r.az,{inline:!0,color:!h.connected&&"bad",children:h.connected?h.power_available:"Unconnected"})})]})})]})})}},60185:function(P,y,t){"use strict";t.r(y),t.d(y,{PortablePump:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=t(62681),a=function(g){var x=(0,s.Oc)(),f=x.act,h=x.data,v=h.direction,u=h.target_pressure,m=h.default_pressure,c=h.min_pressure,d=h.max_pressure;return(0,e.jsx)(r.p8,{width:330,height:375,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(i.PortableBasicInfo,{}),(0,e.jsx)(n.wn,{title:"Pump",buttons:(0,e.jsx)(n.$n,{icon:v?"sign-in-alt":"sign-out-alt",content:v?"In":"Out",selected:v,onClick:function(){return f("direction")}}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Output",children:(0,e.jsx)(n.Ap,{mt:"0.4em",animated:!0,minValue:c,maxValue:d,value:u,unit:"kPa",stepPixelSize:.3,onChange:function(p,C){return f("pressure",{pressure:C})}})}),(0,e.jsxs)(n.Ki.Item,{label:"Presets",children:[(0,e.jsx)(n.$n,{icon:"minus",disabled:u===c,onClick:function(){return f("pressure",{pressure:"min"})}}),(0,e.jsx)(n.$n,{icon:"sync",disabled:u===m,onClick:function(){return f("pressure",{pressure:"reset"})}}),(0,e.jsx)(n.$n,{icon:"plus",disabled:u===d,onClick:function(){return f("pressure",{pressure:"max"})}})]})]})})]})})}},38605:function(P,y,t){"use strict";t.r(y),t.d(y,{PortableScrubber:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=t(62681),a=function(g){var x=(0,s.Oc)(),f=x.act,h=x.data,v=h.rate,u=h.minrate,m=h.maxrate;return(0,e.jsx)(r.p8,{width:320,height:350,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(i.PortableBasicInfo,{}),(0,e.jsx)(n.wn,{title:"Power Regulator",children:(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Volume Rate",children:(0,e.jsx)(n.Ap,{mt:"0.4em",animated:!0,minValue:u,maxValue:m,value:v,unit:"L/s",onChange:function(c,d){return f("volume_adj",{vol:d})}})})})})]})})}},81537:function(P,y,t){"use strict";t.r(y),t.d(y,{PortableTurret:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,h=f.locked,v=f.on,u=f.lethal,m=f.lethal_is_configurable,c=f.targetting_is_configurable,d=f.check_weapons,p=f.neutralize_noaccess,C=f.neutralize_norecord,j=f.neutralize_criminals,b=f.neutralize_all,O=f.neutralize_nonsynth,I=f.neutralize_unidentified,_=f.neutralize_down;return(0,e.jsx)(r.p8,{width:500,height:400,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(n.IC,{children:["Swipe an ID card to ",h?"unlock":"lock"," this interface."]}),(0,e.jsx)(n.wn,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Status",children:(0,e.jsx)(n.$n,{icon:v?"power-off":"times",content:v?"On":"Off",selected:v,disabled:h,onClick:function(){return x("power")}})}),!!m&&(0,e.jsx)(n.Ki.Item,{label:"Lethals",children:(0,e.jsx)(n.$n,{icon:u?"exclamation-triangle":"times",content:u?"On":"Off",color:u?"bad":"",disabled:h,onClick:function(){return x("lethal")}})})]})}),!!c&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(n.wn,{title:"Humanoid Targets",children:[(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:j,content:"Wanted Criminals",disabled:h,onClick:function(){return x("autharrest")}}),(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:C,content:"No Sec Record",disabled:h,onClick:function(){return x("authnorecord")}}),(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:d,content:"Unauthorized Weapons",disabled:h,onClick:function(){return x("authweapon")}}),(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:p,content:"Unauthorized Access",disabled:h,onClick:function(){return x("authaccess")}})]}),(0,e.jsxs)(n.wn,{title:"Other Targets",children:[(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:I,content:"Unidentified Lifesigns (Xenos, Animals, Etc)",disabled:h,onClick:function(){return x("authxeno")}}),(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:O,content:"All Non-Synthetics",disabled:h,onClick:function(){return x("authsynth")}}),(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:_,content:"Downed Targets",disabled:h,onClick:function(){return x("authdown")}}),(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:b,content:"All Entities",disabled:h,onClick:function(){return x("authall")}})]})]})]})})}},16421:function(P,y,t){"use strict";t.r(y),t.d(y,{AreaCharge:function(){return d},PowerMonitor:function(){return u},PowerMonitorContent:function(){return m},PowerMonitorFocus:function(){return c},powerRank:function(){return v}});var e=t(88095),s=t(11358),n=t(28763),r=t(5229),i=t(44583),a=t(4413),g=t(92514),x=t(68040);function f(){return f=Object.assign||function(C){for(var j=1;j50?"battery-half":"battery-quarter")||j===1&&"bolt"||j===2&&"battery-full",color:j===0&&(b>50?"yellow":"red")||j===1&&"yellow"||j===2&&"green"}),(0,e.jsx)(g.az,{inline:!0,width:"36px",textAlign:"right",children:(0,r.Mg)(b)+"%"})]})},p=function(C){var j=C.status,b=!!(j&2),O=!!(j&1),I=(b?"On":"Off")+(" ["+(O?"auto":"manual")+"]");return(0,e.jsx)(g.BK,{color:b?"good":"bad",content:O?void 0:"M",title:I})}},98071:function(P,y,t){"use strict";t.r(y),t.d(y,{PrecisionEditor:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(f){var h=(0,s.Oc)(),v=h.act,u=h.data,m=u.screenstate;return(0,e.jsx)(r.p8,{resizable:!0,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsxs)(n.wn,{title:"Seed status",children:[m==="main"&&(0,e.jsx)(a,{}),m==="colors"&&(0,e.jsx)(g,{}),m==="reagents"&&(0,e.jsx)(x,{})]})})})},a=function(f){var h=(0,s.Oc)(),v=h.act,u=h.data,m=u.health,c=u.plantcolor,d=u.fruitcolor,p=u.chems,C=u.seedname;return(0,e.jsx)(n.Ki,{children:p?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.Ki.Item,{label:"Name",children:C}),m<100?(0,e.jsx)(n.Ki.Item,{label:"Genetic Integrity",children:100-m+"%"}):(0,e.jsx)(n.Ki.Item,{label:"Genetic Integrity",children:"UNVIABLE"}),(0,e.jsx)(n.Ki.Item,{label:"Plant Color",children:c}),(0,e.jsx)(n.Ki.Item,{label:"Fruit Color",children:d}),(0,e.jsx)(n.Ki.Divider,{size:2}),(0,e.jsx)(n.Ki.Item,{label:"Chems produced in fruit (click to splice out)",children:p.map(function(j){return(0,e.jsx)(n.$n,{fluid:!0,content:j.displayname,onClick:function(){return v("prune",{gene_name:j.name})}},j.displayname)})}),(0,e.jsx)(n.$n,{content:"Edit Colors",onClick:function(){return v("change_focus",{window:"colors"})}}),(0,e.jsx)(n.$n,{content:"Add Reagents",onClick:function(){return v("change_focus",{window:"reagents"})}}),(0,e.jsx)(n.Ki.Divider,{size:2}),(0,e.jsx)(n.$n,{content:"Eject Seed",onClick:function(){return v("eject")}})]}):(0,e.jsx)(n.Ki.Item,{label:"Waiting",children:"There is currently no seed loaded."})})},g=function(f){var h=(0,s.Oc)(),v=h.act,u=h.data,m=u.plantcolor,c=u.fruitcolor;return(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Plant Color",children:m}),(0,e.jsx)(n.BK,{color:m}),(0,e.jsx)(n.Ki.Item,{label:"Fruit Color",children:c}),(0,e.jsx)(n.BK,{color:c}),(0,e.jsx)(n.$n,{content:"Change plant color",onClick:function(){return v("change_color",{option:0})}}),(0,e.jsx)(n.$n,{content:"Change fruit color",onClick:function(){return v("change_color",{option:1})}}),(0,e.jsx)(n.Ki.Divider,{size:2}),(0,e.jsx)(n.$n,{content:"Return",onClick:function(){return v("change_focus",{window:"main"})}})]})},x=function(f){var h=(0,s.Oc)(),v=h.act,u=h.data,m=u.beakerchems,c=u.health;return(0,e.jsxs)(n.Ki,{children:[c<100?(0,e.jsx)(n.Ki.Item,{label:"Genetic Integrity",children:100-c+"%"}):(0,e.jsx)(n.Ki.Item,{label:"Genetic Integrity",children:"UNVIABLE"}),(0,e.jsxs)(n.IC,{info:1,width:19,height:9,ml:1,children:["Available chems to choose are based on the reagents stored in the beaker. "," A minimum of 100 units of reagent is required to generate a viable sequence. ","The chosen reagent will be consumed in the process.",(0,e.jsx)(n.az,{bold:1,mt:1,children:"This process severely damages genetic integrity."})]}),(0,e.jsxs)(n.az,{width:20,opacity:.5,ml:1,mt:6,mb:2,children:["Plant will produce 1 additional unit for every 25 units beyond 100"," (modified by potency)"]}),m?(0,e.jsxs)(e.Fragment,{children:[c<100?(0,e.jsx)(n.Ki.Item,{label:"Available reagents",children:m.map(function(d){return(0,e.jsx)(n.$n,{fluid:!0,content:d.name,onClick:function(){return v("add_chem",{target_chem:d.id})}},d.name)})}):(0,e.jsx)(n.IC,{warning:1,children:"WARNING: Genetic integrity of seed is too poor to proceed."}),(0,e.jsx)(n.$n,{content:"Eject Beaker",onClick:function(){return v("eject_beaker")}})]}):(0,e.jsx)(n.Ki.Item,{label:"Waiting",children:"There is currently no beaker loaded."}),(0,e.jsx)(n.$n,{content:"Return",onClick:function(){return v("change_focus",{window:"main"})}})]})}},63054:function(P,y,t){"use strict";t.r(y),t.d(y,{PressureRegulator:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,h=f.on,v=f.pressure_set,u=f.max_pressure,m=f.input_pressure,c=f.output_pressure,d=f.regulate_mode,p=f.set_flow_rate,C=f.last_flow_rate;return(0,e.jsx)(r.p8,{width:470,height:370,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(n.wn,{title:"Status",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Input Pressure",children:[(0,e.jsx)(n.zv,{value:m/100})," kPa"]}),(0,e.jsxs)(n.Ki.Item,{label:"Output Pressure",children:[(0,e.jsx)(n.zv,{value:c/100})," kPa"]}),(0,e.jsxs)(n.Ki.Item,{label:"Flow Rate",children:[(0,e.jsx)(n.zv,{value:C/10})," L/s"]})]})}),(0,e.jsx)(n.wn,{title:"Controls",buttons:(0,e.jsx)(n.$n,{icon:"power-off",content:h?"Unlocked":"Closed",selected:h,onClick:function(){return x("toggle_valve")}}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Pressure Regulation",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"power-off",content:"Off",selected:d===0,onClick:function(){return x("regulate_mode",{mode:"off"})}}),(0,e.jsx)(n.$n,{icon:"compress-arrows-alt",content:"Input",selected:d===1,onClick:function(){return x("regulate_mode",{mode:"input"})}}),(0,e.jsx)(n.$n,{icon:"expand-arrows-alt",content:"Output",selected:d===2,onClick:function(){return x("regulate_mode",{mode:"output"})}})]})}),(0,e.jsxs)(n.Ki.Item,{label:"Desired Output Pressure",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"compress-arrows-alt",content:"MIN",onClick:function(){return x("set_press",{press:"min"})}}),(0,e.jsx)(n.$n,{icon:"expand-arrows-alt",content:"MAX",onClick:function(){return x("set_press",{press:"max"})}}),(0,e.jsx)(n.$n,{icon:"wrench",content:"SET",onClick:function(){return x("set_press",{press:"set"})}})]}),children:[v/100," kPa"]}),(0,e.jsxs)(n.Ki.Item,{label:"Flow Rate Limit",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"compress-arrows-alt",content:"MIN",onClick:function(){return x("set_flow_rate",{press:"min"})}}),(0,e.jsx)(n.$n,{icon:"expand-arrows-alt",content:"MAX",onClick:function(){return x("set_flow_rate",{press:"max"})}}),(0,e.jsx)(n.$n,{icon:"wrench",content:"SET",onClick:function(){return x("set_flow_rate",{press:"set"})}})]}),children:[p/10," L/s"]})]})})]})})}},21143:function(P,y,t){"use strict";t.r(y),t.d(y,{PrisonerManagement:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,h=f.locked,v=f.chemImplants,u=f.trackImplants;return(0,e.jsx)(r.p8,{width:500,height:400,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:h&&(0,e.jsxs)(n.wn,{title:"Locked",textAlign:"center",children:["This interface is currently locked.",(0,e.jsx)(n.az,{children:(0,e.jsx)(n.$n,{icon:"unlock",onClick:function(){return x("lock")},children:"Unlock"})})]})||(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.wn,{title:"Interface Lock",buttons:(0,e.jsx)(n.$n,{icon:"lock",onClick:function(){return x("lock")},children:"Lock Interface"})}),(0,e.jsx)(n.wn,{title:"Chemical Implants",children:v.length&&(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:"Host"}),(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:"Units Remaining"}),(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:"Inject"})]}),v.map(function(m){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:m.host}),(0,e.jsxs)(n.XI.Cell,{textAlign:"center",children:[m.units,"u remaining"]}),(0,e.jsxs)(n.XI.Cell,{textAlign:"center",children:[(0,e.jsx)(n.$n,{onClick:function(){return x("inject",{imp:m.ref,val:1})},children:"(1)"}),(0,e.jsx)(n.$n,{onClick:function(){return x("inject",{imp:m.ref,val:5})},children:"(5)"}),(0,e.jsx)(n.$n,{onClick:function(){return x("inject",{imp:m.ref,val:10})},children:"(10)"})]})]},m.ref)})]})||(0,e.jsx)(n.az,{color:"average",children:"No chemical implants found."})}),(0,e.jsx)(n.wn,{title:"Tracking Implants",children:u.length&&(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:"Host"}),(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:"Location"}),(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:"Message"})]}),u.map(function(m){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsxs)(n.XI.Cell,{textAlign:"center",children:[m.host," (",m.id,")"]}),(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:m.loc}),(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:(0,e.jsx)(n.$n,{onClick:function(){return x("warn",{imp:m.ref})},children:"Message"})})]},m.ref)})]})||(0,e.jsx)(n.az,{color:"average",children:"No chemical implants found."})})]})})})}},72128:function(P,y,t){"use strict";t.r(y),t.d(y,{RCON:function(){return h},RCONContent:function(){return v}});var e=t(88095),s=t(5229),n=t(33854),r=t(44583),i=t(4413),a=t(92514),g=t(24158),x=t(68040),f=1e3,h=function(p){return(0,e.jsx)(x.p8,{width:630,height:540,children:(0,e.jsx)(x.p8.Content,{scrollable:!0,children:(0,e.jsx)(v,{})})})},v=function(p){var C=(0,r.useState)(0),j=C[0],b=C[1],O;return j===0?O=(0,e.jsx)(u,{}):j===1&&(O=(0,e.jsx)(d,{})),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(a.tU,{children:[(0,e.jsxs)(a.tU.Tab,{selected:j===0,onClick:function(){return b(0)},children:[(0,e.jsx)(a.In,{name:"power-off"})," SMESs"]},"SMESs"),(0,e.jsxs)(a.tU.Tab,{selected:j===1,onClick:function(){return b(1)},children:[(0,e.jsx)(a.In,{name:"bolt"})," Breakers"]},"Breakers")]}),(0,e.jsx)(a.az,{m:2,children:O})]})},u=function(p){var C=(0,i.Oc)(),j=C.act,b=C.data,O=b.smes_info,I=b.pages,_=b.current_page,M=function(D){return D()};return(0,e.jsxs)(a.wn,{title:"SMESs (Page "+_+")",children:[(0,e.jsx)(a.BJ,{vertical:!0,children:O.map(function(D){return(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(m,{smes:D})},D.RCON_tag)})}),"Page Selection:",(0,e.jsx)("br",{}),M(function(){for(var D=function(K){A.push((0,e.jsx)(a.$n,{selected:_===K,onClick:function(){return j("set_smes_page",{index:K})},children:K},K))},A=[],R=1;R=2?(0,e.jsx)(r.az,{color:"bad",children:"-- MODULE DESTROYED --"}):(0,e.jsxs)(r.so,{spacing:1,children:[(0,e.jsxs)(r.so.Item,{grow:1,children:[(0,e.jsxs)(r.az,{color:"average",children:["Engage: ",j.engagecost]}),(0,e.jsxs)(r.az,{color:"average",children:["Active: ",j.activecost]}),(0,e.jsxs)(r.az,{color:"average",children:["Passive: ",j.passivecost]})]}),(0,e.jsx)(r.so.Item,{grow:1,children:j.desc})]}),j.charges?(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.wn,{title:"Module Charges",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Selected",children:(0,s.ZH)(j.chargetype)}),j.charges.map(function(O,I){return(0,e.jsx)(r.Ki.Item,{label:(0,s.ZH)(O.caption),children:(0,e.jsx)(r.$n,{selected:j.realchargetype===O.index,icon:"arrow-right",onClick:function(){return u("interact_module",{module:j.index,module_mode:"select_charge_type",charge_type:O.index})}})},O.caption)})]})})}):null]},j.name)})]})}},51065:function(P,y,t){"use strict";t.r(y),t.d(y,{Radio:function(){return g}});var e=t(88095),s=t(5229),n=t(4413),r=t(92514),i=t(1568),a=t(68040),g=function(x){var f=(0,n.Oc)(),h=f.act,v=f.data,u=v.rawfreq,m=v.minFrequency,c=v.maxFrequency,d=v.listening,p=v.broadcasting,C=v.subspace,j=v.subspaceSwitchable,b=v.chan_list,O=v.loudspeaker,I=v.mic_cut,_=v.spk_cut,M=v.useSyndMode,D=i.Fo.find(function(R){return R.freq===Number(u)}),A=156;return b&&b.length>0?A+=b.length*28+6:A+=24,j&&(A+=38),(0,e.jsx)(a.p8,{width:310,height:A,resizable:!0,theme:M?"syndicate":"",children:(0,e.jsxs)(a.p8.Content,{children:[(0,e.jsx)(r.wn,{children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Frequency",children:[(0,e.jsx)(r.Q7,{animated:!0,unit:"kHz",step:.2,stepPixelSize:10,minValue:m/10,maxValue:c/10,value:u/10,format:function(R){return(0,s.Mg)(R,1)},onDrag:function(R,K){return h("setFrequency",{freq:(0,s.LI)(K*10)})}}),D&&(0,e.jsxs)(r.az,{inline:!0,color:D.color,ml:2,children:["[",D.name,"]"]})]}),(0,e.jsxs)(r.Ki.Item,{label:"Audio",children:[(0,e.jsx)(r.$n,{textAlign:"center",width:"37px",icon:d?"volume-up":"volume-mute",selected:d,disabled:_,onClick:function(){return h("listen")}}),(0,e.jsx)(r.$n,{textAlign:"center",width:"37px",icon:p?"microphone":"microphone-slash",selected:p,disabled:I,onClick:function(){return h("broadcast")}}),!!j&&(0,e.jsx)(r.az,{children:(0,e.jsx)(r.$n,{icon:"bullhorn",selected:C,content:"Subspace Tx "+(C?"ON":"OFF"),onClick:function(){return h("subspace")}})}),!!j&&(0,e.jsx)(r.az,{children:(0,e.jsx)(r.$n,{icon:O?"volume-up":"volume-mute",selected:O,content:"Loudspeaker",onClick:function(){return h("toggleLoudspeaker")}})})]})]})}),(0,e.jsxs)(r.wn,{title:"Channels",children:[(!b||b.length===0)&&(0,e.jsx)(r.az,{inline:!0,color:"bad",children:"No channels detected."}),(0,e.jsx)(r.Ki,{children:b?b.map(function(R){var K=i.Fo.find(function(k){return k.freq===Number(R.freq)}),N="default";return K&&(N=K.color),(0,e.jsx)(r.Ki.Item,{label:R.display_name,labelColor:N,textAlign:"right",children:R.secure_channel&&C?(0,e.jsx)(r.$n,{icon:R.sec_channel_listen?"square-o":"check-square-o",selected:!R.sec_channel_listen,content:R.sec_channel_listen?"Off":"On",onClick:function(){return h("channel",{channel:R.chan})}}):(0,e.jsx)(r.$n,{content:"Switch",selected:R.chan===u,onClick:function(){return h("specFreq",{channel:R.chan})}})},R.chan)}):null})]})]})})}},62133:function(P,y,t){"use strict";t.r(y),t.d(y,{ICON_BY_CATEGORY_NAME:function(){return f},RapidPipeDispenser:function(){return c}});var e=t(88095),s=t(84352),n=t(33854),r=t(44583),i=t(4413),a=t(92514),g=t(68040),x=["Atmospherics","Disposals"],f={Atmospherics:"wrench",Disposals:"trash-alt","Transit Tubes":"bus",Pipes:"grip-lines","Disposal Pipes":"grip-lines",Devices:"microchip","Heat Exchange":"thermometer-half","Insulated pipes":"snowflake","Station Equipment":"microchip"},h=[{name:"Dispense",bitmask:1},{name:"Connect",bitmask:2},{name:"Destroy",bitmask:4},{name:"Paint",bitmask:8}],v=function(d){var p=(0,i.Oc)(),C=p.act,j=p.data,b=j.category,O=j.selected_color,I=j.mode;return(0,e.jsx)(a.wn,{children:(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"Category",children:x.map(function(_,M){return(0,e.jsx)(a.$n,{selected:b===M,icon:f[_],color:"transparent",onClick:function(){return C("category",{category:M})},children:_},_)})}),(0,e.jsx)(a.Ki.Item,{label:"Modes",children:(0,e.jsx)(a.BJ,{fill:!0,children:h.map(function(_){return(0,e.jsx)(a.BJ.Item,{grow:!0,children:(0,e.jsx)(a.$n.Checkbox,{checked:I&_.bitmask,fluid:!0,content:_.name,onClick:function(){return C("mode",{mode:_.bitmask})}})},_.bitmask)})})}),(0,e.jsxs)(a.Ki.Item,{label:"Color",children:[(0,e.jsx)(a.az,{inline:!0,width:"64px",color:j.paint_colors[O],children:(0,n.ZH)(O)}),Object.keys(j.paint_colors).map(function(_){return(0,e.jsx)(a.BK,{ml:1,color:j.paint_colors[_],onClick:function(){return C("color",{paint_color:_})}},_)})]})]})})},u=function(d){var p=(0,i.Oc)(),C=p.act,j=p.data,b=j.category,O=j.piping_layer,I=j.pipe_layers,_=j.preview_rows.flatMap(function(M){return M.previews});return(0,e.jsxs)(a.wn,{fill:!0,width:7.5,children:[b===0&&(0,e.jsx)(a.BJ,{vertical:!0,mb:1,children:Object.keys(I).map(function(M){return(0,e.jsx)(a.BJ.Item,{my:0,children:(0,e.jsx)(a.$n.Checkbox,{checked:I[M]===O,content:M,onClick:function(){return C("piping_layer",{piping_layer:I[M]})}})},M)})}),(0,e.jsx)(a.az,{width:"120px",children:_.map(function(M){return(0,e.jsx)(a.$n,{ml:0,title:M.dir_name,selected:M.selected,style:{width:"40px",height:"40px",padding:0},onClick:function(){return C("setdir",{dir:M.dir,flipped:M.flipped})},children:(0,e.jsx)(a.az,{className:(0,s.Ly)(["pipes32x32",M.dir+"-"+M.icon_state]),style:{transform:"scale(1.5) translate(9.5%, 9.5%)"}})},M.dir)})})]})},m=function(d){var p=(0,i.Oc)(),C=p.act,j=p.data,b=j.categories,O=b===void 0?[]:b,I=(0,r.useState)("categoryName"),_=I[0],M=I[1],D=O.find(function(A){return A.cat_name===_})||O[0];return(0,e.jsxs)(a.wn,{fill:!0,scrollable:!0,children:[(0,e.jsx)(a.tU,{children:O.map(function(A,R){return(0,e.jsx)(a.tU.Tab,{fluid:!0,icon:f[A.cat_name],selected:A.cat_name===D.cat_name,onClick:function(){return M(A.cat_name)},children:A.cat_name},A.cat_name)})}),D==null?void 0:D.recipes.map(function(A){return(0,e.jsx)(a.$n.Checkbox,{fluid:!0,ellipsis:!0,checked:A.selected,content:A.pipe_name,title:A.pipe_name,onClick:function(){return C("pipe_type",{pipe_type:A.pipe_index,category:D.cat_name})}},A.pipe_index)})]})},c=function(d){var p=(0,i.Oc)(),C=p.act,j=p.data,b=j.category;return(0,e.jsx)(g.p8,{width:550,height:570,children:(0,e.jsx)(g.p8.Content,{children:(0,e.jsxs)(a.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(v,{})}),(0,e.jsx)(a.BJ.Item,{grow:!0,children:(0,e.jsxs)(a.BJ,{fill:!0,children:[(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(a.BJ,{vertical:!0,fill:!0,children:(0,e.jsx)(a.BJ.Item,{grow:!0,children:(0,e.jsx)(u,{})})})}),(0,e.jsx)(a.BJ.Item,{grow:!0,children:(0,e.jsx)(m,{})})]})})]})})})}},53112:function(P,y,t){"use strict";t.r(y),t.d(y,{RequestConsole:function(){return R}});var e=t(88095),s=t(33854),n=t(4413),r=t(92514),i=t(68040),a=0,g=1,x=2,f=3,h=4,v=5,u=6,m=7,c=8,d=function(K){var N=(0,n.Oc)(),k=N.act,V=N.data,F=V.silent;return(0,e.jsx)(r.wn,{title:"Settings",children:(0,e.jsxs)(r.$n,{selected:!F,icon:F?"volume-mute":"volume-up",onClick:function(){return k("toggleSilent")},children:["Speaker ",F?"OFF":"ON"]})})},p=function(K){var N=(0,n.Oc)(),k=N.act,V=N.data,F=V.department,J=V.supply_dept;return(0,e.jsx)(r.wn,{title:"Supplies",children:(0,e.jsx)(b,{dept_list:J,department:F})})},C=function(K){var N=(0,n.Oc)(),k=N.act,V=N.data,F=V.department,J=V.assist_dept;return(0,e.jsx)(r.wn,{title:"Request assistance from another department",children:(0,e.jsx)(b,{dept_list:J,department:F})})},j=function(K){var N=(0,n.Oc)(),k=N.act,V=N.data,F=V.department,J=V.info_dept;return(0,e.jsx)(r.wn,{title:"Report Anonymous Information",children:(0,e.jsx)(b,{dept_list:J,department:F})})},b=function(K){var N=(0,n.Oc)().act,k=K.dept_list,V=K.department;return(0,e.jsx)(r.Ki,{children:k.sort().map(function(F){return F!==V&&(0,e.jsx)(r.Ki.Item,{label:F,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"envelope-open-text",onClick:function(){return N("write",{write:F,priority:1})},children:"Message"}),(0,e.jsx)(r.$n,{icon:"exclamation-triangle",onClick:function(){return N("write",{write:F,priority:2})},children:"High Priority"})]})})||null})})},O=function(K){var N=(0,n.Oc)(),k=N.act,V=N.data;return(0,e.jsxs)(r.wn,{children:[(0,e.jsx)(r.az,{fontSize:2,color:"good",children:"Message Sent Successfully"}),(0,e.jsx)(r.az,{children:(0,e.jsx)(r.$n,{icon:"arrow-right",onClick:function(){return k("setScreen",{setScreen:a})},children:"Continue"})})]})},I=function(K){var N=(0,n.Oc)(),k=N.act,V=N.data;return(0,e.jsxs)(r.wn,{children:[(0,e.jsx)(r.az,{fontSize:1.5,bold:!0,color:"bad",children:"An error occured. Message Not Sent."}),(0,e.jsx)(r.az,{children:(0,e.jsx)(r.$n,{icon:"arrow-right",onClick:function(){return k("setScreen",{setScreen:a})},children:"Continue"})})]})},_=function(K){var N=(0,n.Oc)(),k=N.act,V=N.data,F=V.message_log;return(0,e.jsx)(r.wn,{title:"Messages",children:F.length&&F.map(function(J,H){return(0,e.jsx)(r.Ki.Item,{label:(0,s.jT)(J[0]),buttons:(0,e.jsx)(r.$n,{icon:"print",onClick:function(){return k("print",{print:H+1})},children:"Print"}),children:(0,s.jT)(J[1])},H)})||(0,e.jsx)(r.az,{children:"No messages."})})},M=function(K){var N=(0,n.Oc)(),k=N.act,V=N.data,F=V.message,J=V.recipient,H=V.priority,Q=V.msgStamped,Z=V.msgVerified;return(0,e.jsxs)(r.wn,{title:"Message Authentication",children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Message for "+J,children:F}),(0,e.jsx)(r.Ki.Item,{label:"Priority",children:H===2?"High Priority":H===1?"Normal Priority":"Unknown"}),(0,e.jsx)(r.Ki.Item,{label:"Validated By",color:Z?"good":"bad",children:(0,s.jT)(Z)||"No Validation"}),(0,e.jsx)(r.Ki.Item,{label:"Stamped By",color:Q?"good":"bad",children:(0,s.jT)(Q)||"No Stamp"})]}),(0,e.jsx)(r.$n,{mt:1,icon:"share",onClick:function(){return k("department",{department:J})},children:"Send Message"}),(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return k("setScreen",{setScreen:a})},children:"Back"})]})},D=function(K){var N=(0,n.Oc)(),k=N.act,V=N.data,F=V.department,J=V.screen,H=V.message_log,Q=V.newmessagepriority,Z=V.silent,X=V.announcementConsole,z=V.assist_dept,Y=V.supply_dept,ee=V.info_dept,oe=V.message,ne=V.recipient,ue=V.priority,ce=V.msgStamped,me=V.msgVerified,xe=V.announceAuth;return(0,e.jsxs)(r.wn,{title:"Send Station-Wide Announcement",children:[xe&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.az,{bold:!0,color:"good",mb:1,children:"ID Verified. Authentication Accepted."}),(0,e.jsx)(r.wn,{title:"Message",mt:1,maxHeight:"200px",scrollable:!0,buttons:(0,e.jsx)(r.$n,{ml:1,icon:"pen",onClick:function(){return k("writeAnnouncement")},children:"Edit"}),children:oe||"No Message"})]})||(0,e.jsx)(r.az,{bold:!0,color:"bad",mb:1,children:"Swipe your ID card to authenticate yourself."}),(0,e.jsx)(r.$n,{disabled:!oe||!xe,icon:"share",onClick:function(){return k("sendAnnouncement")},children:"Announce"}),(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return k("setScreen",{setScreen:a})},children:"Back"})]})},A={};A[a]=d,A[g]=C,A[x]=p,A[f]=j,A[h]=O,A[v]=I,A[u]=_,A[m]=M,A[c]=D;var R=function(K){var N=(0,n.Oc)(),k=N.act,V=N.data,F=V.screen,J=V.newmessagepriority,H=V.announcementConsole,Q=A[F];return(0,e.jsx)(i.p8,{width:520,height:410,children:(0,e.jsxs)(i.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(r.tU,{children:[(0,e.jsx)(r.tU.Tab,{selected:F===u,onClick:function(){return k("setScreen",{setScreen:u})},icon:"envelope-open-text",children:"Messages"}),(0,e.jsx)(r.tU.Tab,{selected:F===g,onClick:function(){return k("setScreen",{setScreen:g})},icon:"share-square",children:"Assistance"}),(0,e.jsx)(r.tU.Tab,{selected:F===x,onClick:function(){return k("setScreen",{setScreen:x})},icon:"share-square",children:"Supplies"}),(0,e.jsx)(r.tU.Tab,{selected:F===f,onClick:function(){return k("setScreen",{setScreen:f})},icon:"share-square-o",children:"Report"}),H&&(0,e.jsx)(r.tU.Tab,{selected:F===c,onClick:function(){return k("setScreen",{setScreen:c})},icon:"volume-up",children:"Announce"})||null,(0,e.jsx)(r.tU.Tab,{selected:F===a,onClick:function(){return k("setScreen",{setScreen:a})},icon:"cog"})]}),J&&(0,e.jsx)(r.wn,{title:J>1?"NEW PRIORITY MESSAGES":"There are new messages!",color:J>1?"bad":"average",bold:J>1})||null,(0,e.jsx)(Q,{})]})})}},51634:function(P,y,t){"use strict";t.r(y),t.d(y,{ResearchConsole:function(){return O}});var e=t(88095),s=t(33854),n=t(44583),r=t(4413),i=t(92514),a=t(68040);function g(){return g=Object.assign||function(I){for(var _=1;_=150?"good":"bad",inline:!0,children:[(0,e.jsx)(r.In,{name:J.biomass>=150?"circle":"circle-o"}),"\xA0",J.biomass]}),Q]},H)}):null},O=function(A){var R=(0,n.Oc)(),K=R.act,N=R.data,k=N.sleevers,V=N.spods,F=N.selected_sleever;return k&&k.length?k.map(function(J,H){return(0,e.jsxs)(r.az,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,e.jsx)("img",{src:"sleeve_"+(J.occupied?"occupied":"empty")+".gif",style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.jsx)(r.az,{color:J.occupied?"label":"bad",children:J.name}),(0,e.jsx)(r.$n,{selected:F===J.sleever,icon:F===J.sleever&&"check",content:"Select",mt:V&&V.length?"3rem":"1.5rem",onClick:function(){return K("selectsleever",{ref:J.sleever})}})]},H)}):null},I=function(A){var R=(0,n.Oc)(),K=R.act,N=R.data,k=N.spods,V=N.selected_printer;return k&&k.length?k.map(function(F,J){var H;return F.status==="cloning"?H=(0,e.jsx)(r.z2,{min:"0",max:"100",value:F.progress/100,ranges:{good:[.75,1/0],average:[.25,.75],bad:[-1/0,.25]},mt:"0.5rem",children:(0,e.jsx)(r.az,{textAlign:"center",children:(0,s.LI)(F.progress,0)+"%"})}):F.status==="mess"?H=(0,e.jsx)(r.az,{bold:!0,color:"bad",mt:"0.5rem",children:"ERROR"}):H=(0,e.jsx)(r.$n,{selected:V===F.spod,icon:V===F.spod&&"check",content:"Select",mt:"0.5rem",onClick:function(){return K("selectprinter",{ref:F.spod})}}),(0,e.jsxs)(r.az,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,e.jsx)("img",{src:"synthprinter"+(F.busy?"_working":"")+".gif",style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.jsx)(r.az,{color:"label",children:F.name}),(0,e.jsxs)(r.az,{bold:!0,color:F.steel>=15e3?"good":"bad",inline:!0,children:[(0,e.jsx)(r.In,{name:F.steel>=15e3?"circle":"circle-o"}),"\xA0",F.steel]}),(0,e.jsxs)(r.az,{bold:!0,color:F.glass>=15e3?"good":"bad",inline:!0,children:[(0,e.jsx)(r.In,{name:F.glass>=15e3?"circle":"circle-o"}),"\xA0",F.glass]}),H]},J)}):null},_=function(A){var R=(0,n.Oc)().act,K=A.records,N=A.actToDo;return K.length?(0,e.jsx)(r.az,{mt:"0.5rem",children:K.map(function(k,V){return(0,e.jsx)(r.$n,{icon:"user",mb:"0.5rem",content:k.name,onClick:function(){return R(N,{ref:k.recref})}},V)})}):(0,e.jsx)(r.so,{height:"100%",mt:"0.5rem",children:(0,e.jsxs)(r.so.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,e.jsx)(r.In,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.jsx)("br",{}),"No records found."]})})},M=function(A){var R=(0,n.Oc)(),K=R.act,N=R.data,k=N.temp;if(!(!k||!k.text||k.text.length<=0)){var V,F=(V={},V[k.style]=!0,V);return(0,e.jsxs)(r.IC,g({},F,{children:[(0,e.jsx)(r.az,{display:"inline-block",verticalAlign:"middle",children:k.text}),(0,e.jsx)(r.$n,{icon:"times-circle",float:"right",onClick:function(){return K("cleartemp")}}),(0,e.jsx)(r.az,{clear:"both"})]}))}},D=function(A){var R=(0,n.Oc)(),K=R.act,N=R.data,k=N.pods,V=N.spods,F=N.sleevers,J=N.autoallowed,H=N.autoprocess,Q=N.disk;return(0,e.jsx)(r.wn,{title:"Status",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Pods",children:k&&k.length?(0,e.jsxs)(r.az,{color:"good",children:[k.length," connected"]}):(0,e.jsx)(r.az,{color:"bad",children:"None connected!"})}),(0,e.jsx)(r.Ki.Item,{label:"SynthFabs",children:V&&V.length?(0,e.jsxs)(r.az,{color:"good",children:[V.length," connected"]}):(0,e.jsx)(r.az,{color:"bad",children:"None connected!"})}),(0,e.jsx)(r.Ki.Item,{label:"Sleevers",children:F&&F.length?(0,e.jsxs)(r.az,{color:"good",children:[F.length," Connected"]}):(0,e.jsx)(r.az,{color:"bad",children:"None connected!"})})]})})}},26967:function(P,y,t){"use strict";t.r(y),t.d(y,{ResleevingPod:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(a){var g=(0,s.Oc)().data,x=g.occupied,f=g.name,h=g.health,v=g.maxHealth,u=g.stat,m=g.mindStatus,c=g.mindName,d=g.resleeveSick,p=g.initialSick;return(0,e.jsx)(r.p8,{width:300,height:350,resizeable:!0,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(n.wn,{title:"Occupant",children:x?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Name",children:f}),(0,e.jsx)(n.Ki.Item,{label:"Health",children:u===2?(0,e.jsx)(n.az,{color:"bad",children:"DEAD"}):u===1?(0,e.jsx)(n.az,{color:"average",children:"Unconscious"}):(0,e.jsxs)(n.z2,{ranges:{good:[.5,1/0],average:[.25,.5],bad:[-1/0,.25]},value:h/v,children:[h,"%"]})}),(0,e.jsx)(n.Ki.Item,{label:"Mind Status",children:m?"Present":"Missing"}),m?(0,e.jsx)(n.Ki.Item,{label:"Mind Occupying",children:c}):""]}),d?(0,e.jsxs)(n.az,{color:"average",mt:3,children:["Warning: Resleeving Sickness detected.",p?(0,e.jsxs)(e.Fragment,{children:[" ","Motion Sickness also detected. Please allow the newly resleeved person a moment to get their bearings. This warning will disappear when Motion Sickness is no longer detected."]}):""]}):""]}):(0,e.jsx)(n.az,{bold:!0,m:1,children:"Unoccupied."})})})})}},74367:function(P,y,t){"use strict";t.r(y),t.d(y,{RoboticsControlConsole:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(g){var x=(0,s.Oc)(),f=x.act,h=x.data,v=h.can_hack,u=h.safety,m=h.show_detonate_all,c=h.cyborgs,d=c===void 0?[]:c;return(0,e.jsx)(r.p8,{width:500,height:460,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[!!m&&(0,e.jsxs)(n.wn,{title:"Emergency Self Destruct",children:[(0,e.jsx)(n.$n,{icon:u?"lock":"unlock",content:u?"Disable Safety":"Enable Safety",selected:u,onClick:function(){return f("arm",{})}}),(0,e.jsx)(n.$n,{icon:"bomb",disabled:u,content:"Destroy ALL Cyborgs",color:"bad",onClick:function(){return f("nuke",{})}})]}),(0,e.jsx)(a,{cyborgs:d,can_hack:v})]})})},a=function(g){var x=g.cyborgs,f=g.can_hack,h=(0,s.Oc)(),v=h.act,u=h.data;return x.length?x.map(function(m){return(0,e.jsx)(n.wn,{title:m.name,buttons:(0,e.jsxs)(e.Fragment,{children:[!!m.hackable&&!m.emagged&&(0,e.jsx)(n.$n,{icon:"terminal",content:"Hack",color:"bad",onClick:function(){return v("hackbot",{ref:m.ref})}}),(0,e.jsx)(n.$n.Confirm,{icon:m.locked_down?"unlock":"lock",color:m.locked_down?"good":"default",content:m.locked_down?"Release":"Lockdown",disabled:!u.auth,onClick:function(){return v("stopbot",{ref:m.ref})}}),(0,e.jsx)(n.$n.Confirm,{icon:"bomb",content:"Detonate",disabled:!u.auth,color:"bad",onClick:function(){return v("killbot",{ref:m.ref})}})]}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Status",children:(0,e.jsx)(n.az,{color:m.status?"bad":m.locked_down?"average":"good",children:m.status?"Not Responding":m.locked_down?"Locked Down":"Nominal"})}),(0,e.jsx)(n.Ki.Item,{label:"Location",children:(0,e.jsx)(n.az,{children:m.locstring})}),(0,e.jsx)(n.Ki.Item,{label:"Integrity",children:(0,e.jsx)(n.z2,{color:m.health>50?"good":"bad",value:m.health/100})}),typeof m.charge=="number"&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.Ki.Item,{label:"Cell Charge",children:(0,e.jsx)(n.z2,{color:m.charge>30?"good":"bad",value:m.charge/100})}),(0,e.jsx)(n.Ki.Item,{label:"Cell Capacity",children:(0,e.jsx)(n.az,{color:m.cell_capacity<3e4?"average":"good",children:m.cell_capacity})})]})||(0,e.jsx)(n.Ki.Item,{label:"Cell",children:(0,e.jsx)(n.az,{color:"bad",children:"No Power Cell"})}),!!m.is_hacked&&(0,e.jsx)(n.Ki.Item,{label:"Safeties",children:(0,e.jsx)(n.az,{color:"bad",children:"DISABLED"})}),(0,e.jsx)(n.Ki.Item,{label:"Module",children:m.module}),(0,e.jsx)(n.Ki.Item,{label:"Master AI",children:(0,e.jsx)(n.az,{color:m.synchronization?"default":"average",children:m.synchronization||"None"})})]})},m.ref)}):(0,e.jsx)(n.IC,{children:"No cyborg units detected within access parameters."})}},35401:function(P,y,t){"use strict";t.r(y),t.d(y,{RogueZones:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,h=f.timeout_percent,v=f.diffstep,u=f.difficulty,m=f.occupied,c=f.scanning,d=f.updated,p=f.debug,C=f.shuttle_location,j=f.shuttle_at_station,b=f.scan_ready,O=f.can_recall_shuttle;return(0,e.jsx)(r.p8,{width:360,height:250,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(n.wn,{title:"Current Area",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Mineral Content",children:u}),(0,e.jsx)(n.Ki.Item,{label:"Shuttle Location",buttons:O&&(0,e.jsx)(n.$n,{color:"bad",icon:"rocket",onClick:function(){return x("recall_shuttle")},children:"Recall Shuttle"})||null,children:C}),m&&(0,e.jsxs)(n.Ki.Item,{color:"bad",labelColor:"bad",label:"Personnel",children:["WARNING: Area occupied by ",m," personnel!"]})||(0,e.jsx)(n.Ki.Item,{label:"Personnel",color:"good",children:"No personnel detected."})]})}),(0,e.jsx)(n.wn,{title:"Scanner",buttons:(0,e.jsx)(n.$n,{disabled:!b,fluid:!0,icon:"search",onClick:function(){return x("scan_for_new")},children:"Scan For Asteroids"}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Scn Ramestat Core",children:(0,e.jsx)(n.z2,{value:h,maxValue:100,ranges:{good:[100,1/0],average:[75,100],bad:[-1/0,75]}})}),c&&(0,e.jsx)(n.Ki.Item,{label:"Scanning",children:"In progress."})||null,d&&!c&&(0,e.jsx)(n.Ki.Item,{label:"Info",children:"Updated shuttle destination!"})||null,p&&(0,e.jsxs)(n.Ki.Item,{label:"Debug",labelColor:"bad",children:[(0,e.jsxs)(n.az,{children:["Timeout Percent: ",h]}),(0,e.jsxs)(n.az,{children:["Diffstep: ",v]}),(0,e.jsxs)(n.az,{children:["Difficulty: ",u]}),(0,e.jsxs)(n.az,{children:["Occupied: ",m]}),(0,e.jsxs)(n.az,{children:["Debug: ",p]}),(0,e.jsxs)(n.az,{children:["Shuttle Location: ",C]}),(0,e.jsxs)(n.az,{children:["Shuttle at station: ",j]}),(0,e.jsxs)(n.az,{children:["Scan Ready: ",b]})]})||null]})})]})})}},45653:function(P,y,t){"use strict";t.r(y),t.d(y,{RustCoreMonitor:function(){return i},RustCoreMonitorContent:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(){return(0,e.jsx)(r.p8,{width:627,height:700,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(a,{})})})},a=function(g){var x=(0,s.Oc)(),f=x.act,h=x.data,v=h.cores;return(0,e.jsx)(n.wn,{title:"Cores",buttons:(0,e.jsx)(n.$n,{icon:"pencil-alt",content:"Set Tag",onClick:function(){return f("set_tag")}}),children:(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{children:"Name"}),(0,e.jsx)(n.XI.Cell,{children:"Position"}),(0,e.jsx)(n.XI.Cell,{children:"Field Status"}),(0,e.jsx)(n.XI.Cell,{children:"Reactant Mode"}),(0,e.jsx)(n.XI.Cell,{children:"Field Instability"}),(0,e.jsx)(n.XI.Cell,{children:"Field Temperature"}),(0,e.jsx)(n.XI.Cell,{children:"Field Strength"}),(0,e.jsx)(n.XI.Cell,{children:"Plasma Content"})]}),v.map(function(u){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{children:u.name}),(0,e.jsxs)(n.XI.Cell,{children:[u.x,", ",u.y,", ",u.z]}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{icon:"power-off",content:u.has_field?"Online":"Offline",selected:u.has_field,disabled:!u.core_operational,onClick:function(){return f("toggle_active",{core:u.ref})}})}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{icon:"power-off",content:u.reactant_dump?"Dump":"Maintain",selected:u.has_field,disabled:!u.core_operational,onClick:function(){return f("toggle_reactantdump",{core:u.ref})}})}),(0,e.jsx)(n.XI.Cell,{children:u.field_instability}),(0,e.jsx)(n.XI.Cell,{children:u.field_temperature}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.N6,{forcedInputWidth:"60px",size:1.25,color:!!u.has_field&&"yellow",value:u.target_field_strength,unit:"(W.m^-3)",minValue:1,maxValue:1e3,stepPixelSize:1,onDrag:function(m,c){return f("set_fieldstr",{core:u.ref,fieldstr:c})}})}),(0,e.jsx)(n.XI.Cell,{})]},u.name)})]})})}},39899:function(P,y,t){"use strict";t.r(y),t.d(y,{RustFuelContent:function(){return a},RustFuelControl:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(){return(0,e.jsx)(r.p8,{width:627,height:700,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(a,{})})})},a=function(g){var x=(0,s.Oc)(),f=x.act,h=x.data,v=h.fuels;return(0,e.jsx)(n.wn,{title:"Fuel Injectors",buttons:(0,e.jsx)(n.$n,{icon:"pencil-alt",content:"Set Tag",onClick:function(){return f("set_tag")}}),children:(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{children:"Name"}),(0,e.jsx)(n.XI.Cell,{children:"Position"}),(0,e.jsx)(n.XI.Cell,{children:"Status"}),(0,e.jsx)(n.XI.Cell,{children:"Remaining Fuel"}),(0,e.jsx)(n.XI.Cell,{children:"Fuel Rod Composition"})]}),v.map(function(u){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{children:u.name}),(0,e.jsxs)(n.XI.Cell,{children:[u.x,", ",u.y,", ",u.z]}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{icon:"power-off",content:u.active?"Online":"Offline",selected:u.active,disabled:!u.deployed,onClick:function(){return f("toggle_active",{fuel:u.ref})}})}),(0,e.jsx)(n.XI.Cell,{children:u.fuel_amt}),(0,e.jsx)(n.XI.Cell,{children:u.fuel_type})]},u.name)})]})})}},19208:function(P,y,t){"use strict";t.r(y),t.d(y,{Secbot:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,h=f.on,v=f.open,u=f.locked,m=f.idcheck,c=f.check_records,d=f.check_arrest,p=f.arrest_type,C=f.declare_arrests,j=f.bot_patrolling,b=f.patrol;return(0,e.jsx)(r.p8,{width:390,height:320,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{title:"Automatic Security Unit v2.0",buttons:(0,e.jsx)(n.$n,{icon:"power-off",selected:h,onClick:function(){return x("power")},children:h?"On":"Off"}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Maintenance Panel",color:v?"bad":"good",children:v?"Open":"Closed"}),(0,e.jsx)(n.Ki.Item,{label:"Behavior Controls",color:u?"good":"bad",children:u?"Locked":"Unlocked"})]})}),!u&&(0,e.jsx)(n.wn,{title:"Behavior Controls",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Check for Weapon Authorization",children:(0,e.jsx)(n.$n,{icon:m?"toggle-on":"toggle-off",selected:m,onClick:function(){return x("idcheck")},children:m?"Yes":"No"})}),(0,e.jsx)(n.Ki.Item,{label:"Check Security Records",children:(0,e.jsx)(n.$n,{icon:c?"toggle-on":"toggle-off",selected:c,onClick:function(){return x("ignorerec")},children:c?"Yes":"No"})}),(0,e.jsx)(n.Ki.Item,{label:"Check Arrest Status",children:(0,e.jsx)(n.$n,{icon:d?"toggle-on":"toggle-off",selected:d,onClick:function(){return x("ignorearr")},children:d?"Yes":"No"})}),(0,e.jsx)(n.Ki.Item,{label:"Operating Mode",children:(0,e.jsx)(n.$n,{icon:p?"toggle-on":"toggle-off",selected:p,onClick:function(){return x("switchmode")},children:p?"Detain":"Arrest"})}),(0,e.jsx)(n.Ki.Item,{label:"Report Arrests",children:(0,e.jsx)(n.$n,{icon:C?"toggle-on":"toggle-off",selected:C,onClick:function(){return x("declarearrests")},children:C?"Yes":"No"})}),!!j&&(0,e.jsx)(n.Ki.Item,{label:"Auto Patrol",children:(0,e.jsx)(n.$n,{icon:b?"toggle-on":"toggle-off",selected:b,onClick:function(){return x("patrol")},children:b?"Yes":"No"})})]})})||null]})})}},46226:function(P,y,t){"use strict";t.r(y),t.d(y,{SecureSafe:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(g){var x=(0,s.Oc)(),f=x.act,h=x.data,v=[["1","4","7","R"],["2","5","8","0"],["3","6","9","E"]],u=h.locked,m=h.l_setshort,c=h.code,d=h.emagged;return(0,e.jsx)(n.az,{width:"185px",children:(0,e.jsx)(n.XI,{width:"1px",children:v.map(function(p){return(0,e.jsx)(n.XI.Cell,{children:p.map(function(C){return(0,e.jsx)(n.$n,{fluid:!0,bold:!0,mb:"6px",content:C,textAlign:"center",fontSize:"40px",height:"50px",lineHeight:1.25,disabled:!!d||!!m&&1||C!=="R"&&!u||c==="ERROR"&&C!=="R"&&1,onClick:function(){return f("type",{digit:C})}},C)})},p[0])})})})},a=function(g){var x=(0,s.Oc)(),f=x.act,h=x.data,v=h.code,u=h.l_setshort,m=h.l_set,c=h.emagged,d=h.locked,p=!(m||u);return(0,e.jsx)(r.p8,{width:250,height:380,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsxs)(n.az,{m:"6px",children:[p&&(0,e.jsx)(n.IC,{textAlign:"center",info:1,children:"ENTER NEW 5-DIGIT PASSCODE."}),!!c&&(0,e.jsx)(n.IC,{textAlign:"center",danger:1,children:"LOCKING SYSTEM ERROR - 1701"}),!!u&&(0,e.jsx)(n.IC,{textAlign:"center",danger:1,children:"ALERT: MEMORY SYSTEM ERROR - 6040 201"}),(0,e.jsx)(n.wn,{height:"60px",children:(0,e.jsx)(n.az,{textAlign:"center",position:"center",fontSize:"35px",children:v&&v||(0,e.jsx)(n.az,{textColor:d?"red":"green",children:d?"LOCKED":"UNLOCKED"})})}),(0,e.jsxs)(n.so,{ml:"3px",children:[(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(i,{})}),(0,e.jsx)(n.so.Item,{ml:"6px",width:"129px"})]})]})})})}},34200:function(P,y,t){"use strict";t.r(y),t.d(y,{SecurityRecords:function(){return h}});var e=t(88095),s=t(4413),n=t(92514),r=t(5425),i=t(68040),a=t(71451),g=t(1887),x=t(82489),f=function(C){(0,r.modalOpen)("edit",{field:C.edit,value:C.value})},h=function(C){var j=(0,s.Oc)().data,b=j.authenticated,O=j.screen;if(!b)return(0,e.jsx)(i.p8,{width:700,height:680,children:(0,e.jsx)(i.p8.Content,{children:(0,e.jsx)(g.LoginScreen,{})})});var I;return O===2?I=(0,e.jsx)(v,{}):O===3?I=(0,e.jsx)(u,{}):O===4&&(I=(0,e.jsx)(m,{})),(0,e.jsxs)(i.p8,{width:700,height:680,children:[(0,e.jsx)(r.ComplexModal,{maxHeight:"100%",maxWidth:"400px"}),(0,e.jsxs)(i.p8.Content,{scrollable:!0,children:[(0,e.jsx)(a.LoginInfo,{}),(0,e.jsx)(x.TemporaryNotice,{}),(0,e.jsx)(p,{}),(0,e.jsx)(n.wn,{flexGrow:!0,children:I})]})]})},v=function(C){var j=(0,s.Oc)(),b=j.act,O=j.data,I=O.records;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.pd,{fluid:!0,placeholder:"Search by Name, DNA, or ID",onChange:function(_,M){return b("search",{t1:M})}}),(0,e.jsx)(n.az,{mt:"0.5rem",children:I.map(function(_,M){return(0,e.jsx)(n.$n,{icon:"user",mb:"0.5rem",color:_.color,content:_.id+": "+_.name+" (Criminal Status: "+_.criminal+")",onClick:function(){return b("d_rec",{d_rec:_.ref})}},M)})})]})},u=function(C){var j=(0,s.Oc)().act;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"download",content:"Backup to Disk",disabled:!0}),(0,e.jsx)("br",{}),(0,e.jsx)(n.$n,{icon:"upload",content:"Upload from Disk",my:"0.5rem",disabled:!0})," ",(0,e.jsx)("br",{}),(0,e.jsx)(n.$n.Confirm,{icon:"trash",content:"Delete All Security Records",onClick:function(){return j("del_all")}})]})},m=function(C){var j=(0,s.Oc)(),b=j.act,O=j.data,I=O.security,_=O.printing;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.wn,{title:"General Data",mt:"-6px",children:(0,e.jsx)(c,{})}),(0,e.jsx)(n.wn,{title:"Security Data",children:(0,e.jsx)(d,{})}),(0,e.jsxs)(n.wn,{title:"Actions",children:[(0,e.jsx)(n.$n.Confirm,{icon:"trash",disabled:!!I.empty,content:"Delete Security Record",color:"bad",onClick:function(){return b("del_r")}}),(0,e.jsx)(n.$n.Confirm,{icon:"trash",disabled:!!I.empty,content:"Delete Record (All)",color:"bad",onClick:function(){return b("del_r_2")}}),(0,e.jsx)(n.$n,{icon:_?"spinner":"print",disabled:_,iconSpin:!!_,content:"Print Entry",ml:"0.5rem",onClick:function(){return b("print_p")}}),(0,e.jsx)("br",{}),(0,e.jsx)(n.$n,{icon:"arrow-left",content:"Back",mt:"0.5rem",onClick:function(){return b("screen",{screen:2})}})]})]})},c=function(C){var j=(0,s.Oc)(),b=j.act,O=j.data,I=O.general;return!I||!I.fields?(0,e.jsx)(n.az,{color:"bad",children:"General records lost!"}):(0,e.jsxs)(n.so,{children:[(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(n.Ki,{children:I.fields.map(function(_,M){return(0,e.jsxs)(n.Ki.Item,{label:_.field,children:[(0,e.jsx)(n.az,{height:"20px",inline:!0,preserveWhitespace:!0,children:_.value}),!!_.edit&&(0,e.jsx)(n.$n,{icon:"pen",ml:"0.5rem",onClick:function(){return f(_)}})]},M)})})}),(0,e.jsxs)(n.so.Item,{textAlign:"right",children:[!!I.has_photos&&I.photos.map(function(_,M){return(0,e.jsxs)(n.az,{display:"inline-block",textAlign:"center",color:"label",children:[(0,e.jsx)("img",{src:_.substr(1,_.length-1),style:{width:"96px","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.jsx)("br",{}),"Photo #",M+1]},M)}),(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.$n,{onClick:function(){return b("photo_front")},children:"Update Front Photo"}),(0,e.jsx)(n.$n,{onClick:function(){return b("photo_side")},children:"Update Side Photo"})]})]})]})},d=function(C){var j=(0,s.Oc)(),b=j.act,O=j.data,I=O.security;return!I||!I.fields?(0,e.jsxs)(n.az,{color:"bad",children:["Security records lost!",(0,e.jsx)(n.$n,{icon:"pen",content:"New Record",ml:"0.5rem",onClick:function(){return b("new")}})]}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.Ki,{children:I.fields.map(function(_,M){return(0,e.jsx)(n.Ki.Item,{label:_.field,children:(0,e.jsxs)(n.az,{preserveWhitespace:!0,children:[_.value,(0,e.jsx)(n.$n,{icon:"pen",ml:"0.5rem",mb:_.line_break?"1rem":"initial",onClick:function(){return f(_)}})]})},M)})}),(0,e.jsxs)(n.wn,{title:"Comments/Log",children:[I.comments.length===0?(0,e.jsx)(n.az,{color:"label",children:"No comments found."}):I.comments.map(function(_,M){return(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.az,{color:"label",inline:!0,children:_.header}),(0,e.jsx)("br",{}),_.text,(0,e.jsx)(n.$n,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){return b("del_c",{del_c:M+1})}})]},M)}),(0,e.jsx)(n.$n,{icon:"comment",content:"Add Entry",color:"good",mt:"0.5rem",mb:"0",onClick:function(){return(0,r.modalOpen)("add_c")}})]})]})},p=function(C){var j=(0,s.Oc)(),b=j.act,O=j.data,I=O.screen;return(0,e.jsxs)(n.tU,{children:[(0,e.jsx)(n.tU.Tab,{selected:I===2,icon:"list",onClick:function(){return b("screen",{screen:2})},children:"List Records"}),(0,e.jsx)(n.tU.Tab,{icon:"wrench",selected:I===3,onClick:function(){return b("screen",{screen:3})},children:"Record Maintenance"})]})}},2930:function(P,y,t){"use strict";t.r(y),t.d(y,{SeedStorage:function(){return g}});var e=t(88095),s=t(11358),n=t(33854),r=t(4413),i=t(92514),a=t(68040),g=function(x){var f=(0,r.Oc)(),h=f.act,v=f.data,u=v.scanner,m=v.seeds,c=(0,s.Ul)(function(d){return d.name.toLowerCase()})(m);return(0,e.jsx)(a.p8,{width:600,height:760,children:(0,e.jsx)(a.p8.Content,{scrollable:!0,children:(0,e.jsx)(i.wn,{title:"Seeds",children:c.map(function(d){return(0,e.jsxs)(i.so,{spacing:1,mt:-1,children:[(0,e.jsx)(i.so.Item,{basis:"60%",children:(0,e.jsx)(i.Nt,{title:(0,n.Sn)(d.name)+" #"+d.uid,children:(0,e.jsx)(i.wn,{width:"165%",title:"Traits",children:(0,e.jsx)(i.Ki,{children:Object.keys(d.traits).map(function(p){return(0,e.jsx)(i.Ki.Item,{label:(0,n.Sn)(p),children:d.traits[p]},p)})})})})}),(0,e.jsxs)(i.so.Item,{mt:.4,children:[d.amount," Remaining"]}),(0,e.jsx)(i.so.Item,{grow:1,children:(0,e.jsx)(i.$n,{fluid:!0,icon:"download",onClick:function(){return h("vend",{id:d.id})},children:"Vend"})}),(0,e.jsx)(i.so.Item,{grow:1,children:(0,e.jsx)(i.$n,{fluid:!0,icon:"trash",onClick:function(){return h("purge",{id:d.id})},children:"Purge"})})]},d.name+d.uid)})})})})}},7249:function(P,y,t){"use strict";t.r(y),t.d(y,{ShieldCapacitor:function(){return g}});var e=t(88095),s=t(5229),n=t(4413),r=t(92514),i=t(24158),a=t(68040),g=function(x){var f=(0,n.Oc)(),h=f.act,v=f.data,u=v.active,m=v.time_since_fail,c=v.stored_charge,d=v.max_charge,p=v.charge_rate,C=v.max_charge_rate;return(0,e.jsx)(a.p8,{width:500,height:400,children:(0,e.jsx)(a.p8.Content,{children:(0,e.jsx)(r.wn,{title:"Status",buttons:(0,e.jsx)(r.$n,{icon:"power-off",selected:u,content:u?"Online":"Offline",onClick:function(){return h("toggle")}}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Capacitor Status",children:m>2?(0,e.jsx)(r.az,{color:"good",children:"OK."}):(0,e.jsx)(r.az,{color:"bad",children:"Discharging!"})}),(0,e.jsxs)(r.Ki.Item,{label:"Stored Energy",children:[(0,e.jsx)(r.zv,{value:c,format:function(j){return(0,i.QL)(j,0,"J")}})," ","(",(0,e.jsx)(r.zv,{value:100*(0,s.LI)(c/d,1)}),"%)"]}),(0,e.jsx)(r.Ki.Item,{label:"Charge Rate",children:(0,e.jsx)(r.Q7,{value:p,step:100,stepPixelSize:.2,minValue:1e4,maxValue:C,format:function(j){return(0,i.d5)(j)},onDrag:function(j,b){return h("charge_rate",{rate:b})}})})]})})})})}},28010:function(P,y,t){"use strict";t.r(y),t.d(y,{ShieldGenerator:function(){return x}});var e=t(88095),s=t(5229),n=t(4413),r=t(92514),i=t(24158),a=t(68040),g=t(13221),x=function(v){var u=(0,n.Oc)(),m=u.act,c=u.data,d=c.locked;return(0,e.jsx)(a.p8,{width:500,height:400,children:(0,e.jsx)(a.p8.Content,{children:d?(0,e.jsx)(f,{}):(0,e.jsx)(h,{})})})},f=function(v){return(0,e.jsxs)(g.FullscreenNotice,{title:"Locked",children:[(0,e.jsx)(r.az,{fontSize:"1.5rem",bold:!0,children:(0,e.jsx)(r.In,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"})}),(0,e.jsx)(r.az,{color:"label",my:"1rem",children:"Swipe your ID to begin."})]})},h=function(v){var u=(0,n.Oc)(),m=u.act,c=u.data,d=c.lockedData,p=d.capacitors,C=d.active,j=d.failing,b=d.radius,O=d.max_radius,I=d.z_range,_=d.max_z_range,M=d.average_field_strength,D=d.target_field_strength,A=d.max_field_strength,R=d.shields,K=d.upkeep,N=d.strengthen_rate,k=d.max_strengthen_rate,V=d.gen_power,F=(p||[]).length;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.wn,{title:"Status",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Field Status",children:j?(0,e.jsx)(r.az,{color:"bad",children:"Unstable"}):(0,e.jsx)(r.az,{color:"good",children:"Stable"})}),(0,e.jsxs)(r.Ki.Item,{label:"Overall Field Strength",children:[(0,s.LI)(M,2)," Renwick (",D&&(0,s.LI)(100*M/D,1)||"NA","%)"]}),(0,e.jsx)(r.Ki.Item,{label:"Upkeep Power",children:(0,i.d5)(K)}),(0,e.jsx)(r.Ki.Item,{label:"Shield Generation Power",children:(0,i.d5)(V)}),(0,e.jsxs)(r.Ki.Item,{label:"Currently Shielded",children:[R," m\xB2"]}),(0,e.jsx)(r.Ki.Item,{label:"Capacitors",children:(0,e.jsx)(r.Ki,{children:F?p.map(function(J,H){return(0,e.jsxs)(r.Ki.Item,{label:"Capacitor #"+H,children:[J.active?(0,e.jsx)(r.az,{color:"good",children:"Online"}):(0,e.jsx)(r.az,{color:"bad",children:"Offline"}),(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Charge",children:[(0,i.QL)(J.stored_charge,0,"J")," (",100*(0,s.LI)(J.stored_charge/J.max_charge,2),"%)"]}),(0,e.jsx)(r.Ki.Item,{label:"Status",children:J.failing?(0,e.jsx)(r.az,{color:"bad",children:"Discharging"}):(0,e.jsx)(r.az,{color:"good",children:"OK."})})]})]},H)}):(0,e.jsx)(r.Ki.Item,{color:"bad",children:"No Capacitors Connected"})})})]})}),(0,e.jsx)(r.wn,{title:"Controls",buttons:(0,e.jsx)(r.$n,{icon:"power-off",content:C?"Online":"Offline",selected:C,onClick:function(){return m("toggle")}}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Coverage Radius",children:(0,e.jsx)(r.Q7,{fluid:!0,stepPixelSize:6,minValue:0,maxValue:O,value:b,unit:"m",onDrag:function(J,H){return m("change_radius",{val:H})}})}),(0,e.jsx)(r.Ki.Item,{label:"Vertical Shielding",children:(0,e.jsx)(r.Q7,{fluid:!0,stepPixelSize:12,minValue:0,maxValue:_,value:I,unit:"vertical range",onDrag:function(J,H){return m("z_range",{val:H})}})}),(0,e.jsx)(r.Ki.Item,{label:"Charge Rate",children:(0,e.jsx)(r.Q7,{fluid:!0,stepPixelSize:12,minValue:0,step:.1,maxValue:k,value:N,format:function(J){return(0,s.LI)(J,1)},unit:"Renwick/s",onDrag:function(J,H){return m("strengthen_rate",{val:H})}})}),(0,e.jsx)(r.Ki.Item,{label:"Maximum Field Strength",children:(0,e.jsx)(r.Q7,{fluid:!0,stepPixelSize:12,minValue:1,maxValue:A,value:D,unit:"Renwick",onDrag:function(J,H){return m("target_field_strength",{val:H})}})})]})})]})}},52735:function(P,y,t){"use strict";t.r(y),t.d(y,{ShutoffMonitor:function(){return i},ShutoffMonitorContent:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(g){return(0,e.jsx)(r.p8,{width:627,height:700,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(a,{})})})},a=function(g){var x=(0,s.Oc)(),f=x.act,h=x.data,v=h.valves;return(0,e.jsx)(n.wn,{title:"Valves",children:(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{children:"Name"}),(0,e.jsx)(n.XI.Cell,{children:"Position"}),(0,e.jsx)(n.XI.Cell,{children:"Open"}),(0,e.jsx)(n.XI.Cell,{children:"Mode"}),(0,e.jsx)(n.XI.Cell,{children:"Actions"})]}),v.map(function(u){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{children:u.name}),(0,e.jsxs)(n.XI.Cell,{children:[u.x,", ",u.y,", ",u.z]}),(0,e.jsx)(n.XI.Cell,{children:u.open?"Yes":"No"}),(0,e.jsx)(n.XI.Cell,{children:u.enabled?"Auto":"Manual"}),(0,e.jsxs)(n.XI.Cell,{children:[(0,e.jsx)(n.$n,{icon:"power-off",content:u.open?"Opened":"Closed",selected:u.open,disabled:!u.enabled,onClick:function(){return f("toggle_open",{valve:u.ref})}}),(0,e.jsx)(n.$n,{icon:"power-off",content:u.enabled?"Auto":"Manual",selected:u.enabled,onClick:function(){return f("toggle_enable",{valve:u.ref})}})]})]},u.name)})]})})}},72736:function(P,y,t){"use strict";t.r(y),t.d(y,{ShuttleControl:function(){return m}});var e=t(88095),s=t(33854),n=t(4413),r=t(92514),i=t(68040),a=function(c,d){var p="ERROR",C="bad",j=!1;return c==="docked"?(p="DOCKED",C="good"):c==="docking"?(p="DOCKING",C="average",j=!0):c==="undocking"?(p="UNDOCKING",C="average",j=!0):c==="undocked"&&(p="UNDOCKED",C="#676767"),j&&d&&(p=p+"-MANUAL"),(0,e.jsx)(r.az,{color:C,children:p})},g=function(c){var d=(0,n.Oc)(),p=d.act,C=d.data,j=c.engineName,b=j===void 0?"Bluespace Drive":j,O=C.shuttle_status,I=C.shuttle_state,_=C.has_docking,M=C.docking_status,D=C.docking_override,A=C.docking_codes;return(0,e.jsxs)(r.wn,{title:"Shuttle Status",children:[(0,e.jsx)(r.az,{color:"label",mb:1,children:O}),(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:b,children:I==="idle"&&(0,e.jsx)(r.az,{color:"#676767",bold:!0,children:"IDLE"})||I==="warmup"&&(0,e.jsx)(r.az,{color:"#336699",children:"SPINNING UP"})||I==="in_transit"&&(0,e.jsx)(r.az,{color:"#336699",children:"ENGAGED"})||(0,e.jsx)(r.az,{color:"bad",children:"ERROR"})}),_&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.Ki.Item,{label:"Docking Status",children:a(M,D)}),(0,e.jsx)(r.Ki.Item,{label:"Docking Codes",children:(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return p("set_codes")},children:A||"Not Set"})})]})||null]})]})},x=function(c){var d=(0,n.Oc)(),p=d.act,C=d.data,j=C.can_launch,b=C.can_cancel,O=C.can_force;return(0,e.jsx)(r.wn,{title:"Controls",children:(0,e.jsxs)(r.so,{spacing:1,children:[(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{onClick:function(){return p("move")},disabled:!j,icon:"rocket",fluid:!0,children:"Launch Shuttle"})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{onClick:function(){return p("cancel")},disabled:!b,icon:"ban",fluid:!0,children:"Cancel Launch"})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{onClick:function(){return p("force")},color:"bad",disabled:!O,icon:"exclamation-triangle",fluid:!0,children:"Force Launch"})})]})})},f=function(c){var d=(0,n.Oc)(),p=d.act,C=d.data;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(g,{}),(0,e.jsx)(x,{})]})},h=function(c){var d=(0,n.Oc)(),p=d.act,C=d.data,j=C.can_cloak,b=C.can_pick,O=C.legit,I=C.cloaked;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(g,{}),(0,e.jsx)(r.wn,{title:"Multishuttle Controls",children:(0,e.jsxs)(r.Ki,{children:[j&&(0,e.jsx)(r.Ki.Item,{label:O?"ATC Inhibitor":"Cloaking",children:(0,e.jsx)(r.$n,{selected:I,icon:I?"eye":"eye-o",onClick:function(){return p("toggle_cloaked")},children:I?"Enabled":"Disabled"})})||null,(0,e.jsx)(r.Ki.Item,{label:"Current Destination",children:(0,e.jsx)(r.$n,{content:c.destination_name,icon:"taxi",disabled:!b,onClick:function(){return p("pick")}})})]})}),(0,e.jsx)(x,{})]})},v=function(c){var d=(0,n.Oc)(),p=d.act,C=d.data,j=C.can_pick,b=C.destination_name,O=C.fuel_usage,I=C.fuel_span,_=C.remaining_fuel;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(g,{engineName:"Engines"}),(0,e.jsx)(r.wn,{title:"Jump Controls",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Current Destination",children:(0,e.jsx)(r.$n,{icon:"taxi",disabled:!j,onClick:function(){return p("pick")},children:b})}),O&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Est. Delta-V Budget",color:I,children:[_," m/s"]}),(0,e.jsxs)(r.Ki.Item,{label:"Avg. Delta-V Per Maneuver",children:[O," m/s"]})]})||null]})}),(0,e.jsx)(x,{})]})},u=function(c){var d=(0,n.Oc)(),p=d.act,C=d.data,j=C.autopilot,b=C.can_rename,O=C.shuttle_state,I=C.is_moving,_=C.skip_docking,M=C.docking_status,D=C.docking_override,A=C.shuttle_location,R=C.can_cloak,K=C.cloaked,N=C.can_autopilot,k=C.routes,V=C.is_in_transit,F=C.travel_progress,J=C.time_left,H=C.doors,Q=C.sensors;return(0,e.jsxs)(e.Fragment,{children:[j&&(0,e.jsx)(r.wn,{title:"AI PILOT (CLASS D) ACTIVE",children:(0,e.jsx)(r.az,{inline:!0,italic:!0,children:"This vessel will start and stop automatically. Ensure that all non-cycling capable hatches and doors are closed, as the automated system may not be able to control them. Docking and flight controls are locked. To unlock, disable the automated flight system."})})||null,(0,e.jsxs)(r.wn,{title:"Shuttle Status",buttons:b&&(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return p("rename_command")},children:"Rename"})||null,children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Engines",children:O==="idle"&&(0,e.jsx)(r.az,{color:"#676767",bold:!0,children:"IDLE"})||O==="warmup"&&(0,e.jsx)(r.az,{color:"#336699",children:"SPINNING UP"})||O==="in_transit"&&(0,e.jsx)(r.az,{color:"#336699",children:"ENGAGED"})||(0,e.jsx)(r.az,{color:"bad",children:"ERROR"})}),!I&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.Ki.Item,{label:"Current Location",children:(0,s.Sn)(A)}),!_&&(0,e.jsx)(r.Ki.Item,{label:"Docking Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{selected:M==="docked",disabled:M!=="undocked"&&M!=="docked",onClick:function(){return p("dock_command")},children:"Dock"}),(0,e.jsx)(r.$n,{selected:M==="undocked",disabled:M!=="docked"&&M!=="undocked",onClick:function(){return p("undock_command")},children:"Undock"})]}),children:(0,e.jsx)(r.az,{bold:!0,inline:!0,children:a(M,D)})})||null,R&&(0,e.jsx)(r.Ki.Item,{label:"Cloaking",children:(0,e.jsx)(r.$n,{selected:K,icon:K?"eye":"eye-o",onClick:function(){return p("toggle_cloaked")},children:K?"Enabled":"Disabled"})})||null,N&&(0,e.jsx)(r.Ki.Item,{label:"Autopilot",children:(0,e.jsx)(r.$n,{selected:j,icon:j?"eye":"eye-o",onClick:function(){return p("toggle_autopilot")},children:j?"Enabled":"Disabled"})})||null]})||null]}),!I&&(0,e.jsx)(r.wn,{level:2,title:"Available Destinations",children:(0,e.jsx)(r.Ki,{children:k.length&&k.map(function(Z){return(0,e.jsx)(r.Ki.Item,{label:Z.name,children:(0,e.jsx)(r.$n,{icon:"rocket",onClick:function(){return p("traverse",{traverse:Z.index})},children:Z.travel_time})},Z.name)})||(0,e.jsx)(r.Ki.Item,{label:"Error",color:"bad",children:"No routes found."})})})||null]}),V&&(0,e.jsx)(r.wn,{title:"Transit ETA",children:(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Distance from target",children:(0,e.jsxs)(r.z2,{color:"good",minValue:0,maxValue:100,value:F,children:[J,"s"]})})})})||null,Object.keys(H).length&&(0,e.jsx)(r.wn,{title:"Hatch Status",children:(0,e.jsx)(r.Ki,{children:Object.keys(H).map(function(Z){var X=H[Z];return(0,e.jsxs)(r.Ki.Item,{label:Z,children:[X.open&&(0,e.jsx)(r.az,{inline:!0,color:"bad",children:"Open"})||(0,e.jsx)(r.az,{inline:!0,color:"good",children:"Closed"}),"\xA0-\xA0",X.bolted&&(0,e.jsx)(r.az,{inline:!0,color:"good",children:"Bolted"})||(0,e.jsx)(r.az,{inline:!0,color:"bad",children:"Unbolted"})]},Z)})})})||null,Object.keys(Q).length&&(0,e.jsx)(r.wn,{title:"Sensors",children:(0,e.jsx)(r.Ki,{children:Object.keys(Q).map(function(Z,X){var z=Q[Z];return z.reading!==-1?(0,e.jsx)(r.Ki.Item,{label:Z,color:"bad",children:"Unable to get sensor air reading."},X):(0,e.jsx)(r.Ki.Item,{label:Z,children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Pressure",children:[z.pressure,"kPa"]}),(0,e.jsxs)(r.Ki.Item,{label:"Temperature",children:[z.temp,"\xB0C"]}),(0,e.jsxs)(r.Ki.Item,{label:"Oxygen",children:[z.oxygen,"%"]}),(0,e.jsxs)(r.Ki.Item,{label:"Nitrogen",children:[z.nitrogen,"%"]}),(0,e.jsxs)(r.Ki.Item,{label:"Carbon Dioxide",children:[z.carbon_dioxide,"%"]}),(0,e.jsxs)(r.Ki.Item,{label:"Phoron",children:[z.phoron,"%"]}),z.other&&(0,e.jsxs)(r.Ki.Item,{label:"Other",children:[z.other,"%"]})||null]})},Z)})})})||null]})},m=function(c){var d=(0,n.Oc)(),p=d.act,C=d.data,j=C.subtemplate,b=C.destination_name;return(0,e.jsx)(i.p8,{width:470,height:j==="ShuttleControlConsoleWeb"?560:370,children:(0,e.jsx)(i.p8.Content,{children:j==="ShuttleControlConsoleDefault"&&(0,e.jsx)(f,{})||j==="ShuttleControlConsoleMulti"&&(0,e.jsx)(h,{destination_name:b})||j==="ShuttleControlConsoleExploration"&&(0,e.jsx)(v,{})||j==="ShuttleControlConsoleWeb"&&(0,e.jsx)(u,{})})})}},42053:function(P,y,t){"use strict";t.r(y),t.d(y,{Signaler:function(){return a},SignalerContent:function(){return g}});var e=t(88095),s=t(5229),n=t(4413),r=t(92514),i=t(68040),a=function(){return(0,e.jsx)(i.p8,{width:280,height:132,children:(0,e.jsx)(i.p8.Content,{children:(0,e.jsx)(g,{})})})},g=function(x){var f=(0,n.Oc)(),h=f.act,v=f.data,u=v.code,m=v.frequency,c=v.minFrequency,d=v.maxFrequency;return(0,e.jsxs)(r.wn,{children:[(0,e.jsxs)(r.xA,{children:[(0,e.jsx)(r.xA.Column,{size:1.4,color:"label",children:"Frequency:"}),(0,e.jsx)(r.xA.Column,{children:(0,e.jsx)(r.Q7,{animate:!0,unit:"kHz",step:.2,stepPixelSize:6,minValue:c/10,maxValue:d/10,value:m/10,format:function(p){return(0,s.Mg)(p,1)},width:"80px",onDrag:function(p,C){return h("freq",{freq:C})}})}),(0,e.jsx)(r.xA.Column,{children:(0,e.jsx)(r.$n,{ml:1.3,icon:"sync",content:"Reset",onClick:function(){return h("reset",{reset:"freq"})}})})]}),(0,e.jsxs)(r.xA,{mt:.6,children:[(0,e.jsx)(r.xA.Column,{size:1.4,color:"label",children:"Code:"}),(0,e.jsx)(r.xA.Column,{children:(0,e.jsx)(r.Q7,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:u,width:"80px",onDrag:function(p,C){return h("code",{code:C})}})}),(0,e.jsx)(r.xA.Column,{children:(0,e.jsx)(r.$n,{ml:1.3,icon:"sync",content:"Reset",onClick:function(){return h("reset",{reset:"code"})}})})]}),(0,e.jsx)(r.xA,{mt:.8,children:(0,e.jsx)(r.xA.Column,{children:(0,e.jsx)(r.$n,{mb:-.1,fluid:!0,icon:"arrow-up",content:"Send Signal",textAlign:"center",onClick:function(){return h("signal")}})})})]})}},30636:function(P,y,t){"use strict";t.r(y),t.d(y,{Sleeper:function(){return h}});var e=t(88095),s=t(5229),n=t(4413),r=t(92514),i=t(68040),a=[["good","Alive"],["average","Unconscious"],["bad","DEAD"]],g=[["Resp","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],x={average:[.25,.5],bad:[.5,1/0]},f=["bad","average","average","good","average","average","bad"],h=function(C){var j=(0,n.Oc)(),b=j.act,O=j.data,I=O.hasOccupant,_=I?(0,e.jsx)(v,{}):(0,e.jsx)(p,{});return(0,e.jsx)(i.p8,{width:550,height:760,children:(0,e.jsx)(i.p8.Content,{className:"Layout__content--flexColumn",children:_})})},v=function(C){var j=(0,n.Oc)(),b=j.act,O=j.data,I=O.occupant,_=O.dialysis,M=O.stomachpumping;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(u,{}),(0,e.jsx)(m,{}),(0,e.jsx)(c,{title:"Dialysis",active:_,actToDo:"togglefilter"}),(0,e.jsx)(c,{title:"Stomach Pump",active:M,actToDo:"togglepump"}),(0,e.jsx)(d,{})]})},u=function(C){var j=(0,n.Oc)(),b=j.act,O=j.data,I=O.occupant,_=O.auto_eject_dead,M=O.stasis;return(0,e.jsx)(r.wn,{title:"Occupant",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.az,{color:"label",inline:!0,children:"Auto-eject if dead:\xA0"}),(0,e.jsx)(r.$n,{icon:_?"toggle-on":"toggle-off",selected:_,content:_?"On":"Off",onClick:function(){return b("auto_eject_dead_"+(_?"off":"on"))}}),(0,e.jsx)(r.$n,{icon:"user-slash",content:"Eject",onClick:function(){return b("ejectify")}}),(0,e.jsx)(r.$n,{content:M,onClick:function(){return b("changestasis")}})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Name",children:I.name}),(0,e.jsx)(r.Ki.Item,{label:"Health",children:(0,e.jsx)(r.z2,{min:0,max:I.maxHealth,value:I.health/I.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]},children:(0,s.LI)(I.health,0)})}),(0,e.jsx)(r.Ki.Item,{label:"Status",color:a[I.stat][0],children:a[I.stat][1]}),(0,e.jsx)(r.Ki.Item,{label:"Temperature",children:(0,e.jsxs)(r.z2,{min:"0",max:I.maxTemp,value:I.bodyTemperature/I.maxTemp,color:f[I.temperatureSuitability+3],children:[(0,s.LI)(I.btCelsius,0),"\xB0C,",(0,s.LI)(I.btFaren,0),"\xB0F"]})}),!!I.hasBlood&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.Ki.Item,{label:"Blood Level",children:(0,e.jsxs)(r.z2,{min:"0",max:I.bloodMax,value:I.bloodLevel/I.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[I.bloodPercent,"%, ",I.bloodLevel,"cl"]})}),(0,e.jsxs)(r.Ki.Item,{label:"Pulse",verticalAlign:"middle",children:[I.pulse," BPM"]})]})]})})},m=function(C){var j=(0,n.Oc)().data,b=j.occupant;return(0,e.jsx)(r.wn,{title:"Damage",children:(0,e.jsx)(r.Ki,{children:g.map(function(O,I){return(0,e.jsx)(r.Ki.Item,{label:O[0],children:(0,e.jsx)(r.z2,{min:"0",max:"100",value:b[O[1]]/100,ranges:x,children:(0,s.LI)(b[O[1]],0)},I)},I)})})})},c=function(C){var j=(0,n.Oc)(),b=j.act,O=j.data,I=O.isBeakerLoaded,_=O.beakerMaxSpace,M=O.beakerFreeSpace,D=C.active,A=C.actToDo,R=C.title,K=D&&M>0;return(0,e.jsx)(r.wn,{title:R,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{disabled:!I||M<=0,selected:K,icon:K?"toggle-on":"toggle-off",content:K?"Active":"Inactive",onClick:function(){return b(A)}}),(0,e.jsx)(r.$n,{disabled:!I,icon:"eject",content:"Eject",onClick:function(){return b("removebeaker")}})]}),children:I?(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Remaining Space",children:(0,e.jsxs)(r.z2,{min:"0",max:_,value:M/_,ranges:{good:[.5,1/0],average:[.25,.5],bad:[-1/0,.25]},children:[M,"u"]})})}):(0,e.jsx)(r.az,{color:"label",children:"No beaker loaded."})})},d=function(C){var j=(0,n.Oc)(),b=j.act,O=j.data,I=O.occupant,_=O.chemicals,M=O.maxchem,D=O.amounts;return(0,e.jsx)(r.wn,{title:"Chemicals",flexGrow:"1",children:_.map(function(A,R){var K="",N;return A.overdosing?(K="bad",N=(0,e.jsxs)(r.az,{color:"bad",children:[(0,e.jsx)(r.In,{name:"exclamation-circle"}),"\xA0 Overdosing!"]})):A.od_warning&&(K="average",N=(0,e.jsxs)(r.az,{color:"average",children:[(0,e.jsx)(r.In,{name:"exclamation-triangle"}),"\xA0 Close to overdosing"]})),(0,e.jsx)(r.az,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.jsx)(r.wn,{title:A.title,level:"3",mx:"0",lineHeight:"18px",buttons:N,children:(0,e.jsxs)(r.so,{align:"flex-start",children:[(0,e.jsxs)(r.z2,{min:"0",max:M,value:A.occ_amount/M,color:K,mr:"0.5rem",children:[A.pretty_amount,"/",M,"u"]}),D.map(function(k,V){return(0,e.jsx)(r.$n,{disabled:!A.injectable||A.occ_amount+k>M||I.stat===2,icon:"syringe",content:k,mb:"0",height:"19px",onClick:function(){return b("chemical",{chemid:A.id,amount:k})}},V)})]})})},R)})})},p=function(C){var j=(0,n.Oc)(),b=j.act,O=j.data,I=O.isBeakerLoaded;return(0,e.jsx)(r.wn,{textAlign:"center",flexGrow:"1",children:(0,e.jsx)(r.so,{height:"100%",children:(0,e.jsxs)(r.so.Item,{grow:"1",align:"center",color:"label",children:[(0,e.jsx)(r.In,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.jsx)("br",{}),"No occupant detected.",I&&(0,e.jsx)(r.az,{children:(0,e.jsx)(r.$n,{icon:"eject",content:"Remove Beaker",onClick:function(){return b("removebeaker")}})})||null]})})})}},438:function(P,y,t){"use strict";t.r(y),t.d(y,{SmartVend:function(){return a}});var e=t(88095),s=t(11358),n=t(4413),r=t(92514),i=t(68040),a=function(g){var x=(0,n.Oc)(),f=x.act,h=x.config,v=x.data;return(0,e.jsx)(i.p8,{width:500,height:550,children:(0,e.jsx)(i.p8.Content,{scrollable:!0,children:(0,e.jsxs)(r.wn,{title:"Storage",children:[v.secure&&(0,e.jsx)(r.IC,{danger:v.locked===-1,info:v.locked!==-1,children:v.locked===-1?(0,e.jsx)(r.az,{children:"Sec.re ACC_** //):securi_nt.diag=>##'or 1=1'%($..."}):(0,e.jsx)(r.az,{children:"Secure Access: Please have your identification ready."})})||null,v.contents.length===0&&(0,e.jsxs)(r.IC,{children:["Unfortunately, this ",h.title," is empty."]})||(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{header:!0,children:[(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:"Item"}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,textAlign:"center",children:"Amount"}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,textAlign:"center",children:"Dispense"})]}),(0,s.Tj)(function(u,m){return(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:u.name}),(0,e.jsxs)(r.XI.Cell,{collapsing:!0,textAlign:"center",children:[u.amount," in stock"]}),(0,e.jsxs)(r.XI.Cell,{collapsing:!0,children:[(0,e.jsx)(r.$n,{content:"1",disabled:u.amount<1,onClick:function(){return f("Release",{index:u.index,amount:1})}}),(0,e.jsx)(r.$n,{content:"5",disabled:u.amount<5,onClick:function(){return f("Release",{index:u.index,amount:5})}}),(0,e.jsx)(r.$n,{content:"25",disabled:u.amount<25,onClick:function(){return f("Release",{index:u.index,amount:25})}}),(0,e.jsx)(r.$n,{content:"50",disabled:u.amount<50,onClick:function(){return f("Release",{index:u.index,amount:50})}}),(0,e.jsx)(r.$n,{content:"Custom",disabled:u.amount<1,onClick:function(){return f("Release",{index:u.index})}}),(0,e.jsx)(r.$n,{content:"All",disabled:u.amount<1,onClick:function(){return f("Release",{index:u.index,amount:u.amount})}})]})]},m)})(v.contents)]})]})})})}},99278:function(P,y,t){"use strict";t.r(y),t.d(y,{Smes:function(){return x}});var e=t(88095),s=t(5229),n=t(4413),r=t(92514),i=t(24158),a=t(68040),g=1e3,x=function(f){var h=(0,n.Oc)(),v=h.act,u=h.data,m=u.capacityPercent,c=u.capacity,d=u.charge,p=u.inputAttempt,C=u.inputting,j=u.inputLevel,b=u.inputLevelMax,O=u.inputAvailable,I=u.outputAttempt,_=u.outputting,M=u.outputLevel,D=u.outputLevelMax,A=u.outputUsed,R=m>=100&&"good"||C&&"average"||"bad",K=_&&"good"||d>0&&"average"||"bad";return(0,e.jsx)(a.p8,{width:400,height:350,children:(0,e.jsxs)(a.p8.Content,{children:[(0,e.jsx)(r.wn,{title:"Stored Energy",children:(0,e.jsxs)(r.z2,{value:m*.01,ranges:{good:[.5,1/0],average:[.15,.5],bad:[-1/0,.15]},children:[(0,s.LI)(d/(1e3*60),1)," kWh /",(0,s.LI)(c/(1e3*60))," kWh (",m,"%)"]})}),(0,e.jsx)(r.wn,{title:"Input",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Charge Mode",buttons:(0,e.jsx)(r.$n,{icon:p?"sync-alt":"times",selected:p,onClick:function(){return v("tryinput")},children:p?"On":"Off"}),children:(0,e.jsx)(r.az,{color:R,children:m>=100&&"Fully Charged"||C&&"Charging"||"Not Charging"})}),(0,e.jsx)(r.Ki.Item,{label:"Target Input",children:(0,e.jsxs)(r.so,{inline:!0,width:"100%",children:[(0,e.jsxs)(r.so.Item,{children:[(0,e.jsx)(r.$n,{icon:"fast-backward",disabled:j===0,onClick:function(){return v("input",{target:"min"})}}),(0,e.jsx)(r.$n,{icon:"backward",disabled:j===0,onClick:function(){return v("input",{adjust:-1e4})}})]}),(0,e.jsx)(r.so.Item,{grow:1,mx:1,children:(0,e.jsx)(r.Ap,{value:j/g,fillValue:O/g,minValue:0,maxValue:b/g,step:5,stepPixelSize:4,format:function(N){return(0,i.d5)(N*g,1)},onDrag:function(N,k){return v("input",{target:k*g})}})}),(0,e.jsxs)(r.so.Item,{children:[(0,e.jsx)(r.$n,{icon:"forward",disabled:j===b,onClick:function(){return v("input",{adjust:1e4})}}),(0,e.jsx)(r.$n,{icon:"fast-forward",disabled:j===b,onClick:function(){return v("input",{target:"max"})}})]})]})}),(0,e.jsx)(r.Ki.Item,{label:"Available",children:(0,i.d5)(O)})]})}),(0,e.jsx)(r.wn,{title:"Output",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Output Mode",buttons:(0,e.jsx)(r.$n,{icon:I?"power-off":"times",selected:I,onClick:function(){return v("tryoutput")},children:I?"On":"Off"}),children:(0,e.jsx)(r.az,{color:K,children:_?"Sending":d>0?"Not Sending":"No Charge"})}),(0,e.jsx)(r.Ki.Item,{label:"Target Output",children:(0,e.jsxs)(r.so,{inline:!0,width:"100%",children:[(0,e.jsxs)(r.so.Item,{children:[(0,e.jsx)(r.$n,{icon:"fast-backward",disabled:M===0,onClick:function(){return v("output",{target:"min"})}}),(0,e.jsx)(r.$n,{icon:"backward",disabled:M===0,onClick:function(){return v("output",{adjust:-1e4})}})]}),(0,e.jsx)(r.so.Item,{grow:1,mx:1,children:(0,e.jsx)(r.Ap,{value:M/g,minValue:0,maxValue:D/g,step:5,stepPixelSize:4,format:function(N){return(0,i.d5)(N*g,1)},onDrag:function(N,k){return v("output",{target:k*g})}})}),(0,e.jsxs)(r.so.Item,{children:[(0,e.jsx)(r.$n,{icon:"forward",disabled:M===D,onClick:function(){return v("output",{adjust:1e4})}}),(0,e.jsx)(r.$n,{icon:"fast-forward",disabled:M===D,onClick:function(){return v("output",{target:"max"})}})]})]})}),(0,e.jsx)(r.Ki.Item,{label:"Outputting",children:(0,i.d5)(A)})]})})]})})}},42456:function(P,y,t){"use strict";t.r(y),t.d(y,{SolarControl:function(){return a}});var e=t(88095),s=t(5229),n=t(4413),r=t(92514),i=t(68040),a=function(g){var x=(0,n.Oc)(),f=x.act,h=x.data,v=h.generated,u=h.generated_ratio,m=h.sun_angle,c=h.array_angle,d=h.rotation_rate,p=h.max_rotation_rate,C=h.tracking_state,j=h.connected_panels,b=h.connected_tracker;return(0,e.jsx)(i.p8,{width:380,height:230,children:(0,e.jsxs)(i.p8.Content,{children:[(0,e.jsx)(r.wn,{title:"Status",buttons:(0,e.jsx)(r.$n,{icon:"sync",content:"Scan for new hardware",onClick:function(){return f("refresh")}}),children:(0,e.jsxs)(r.xA,{children:[(0,e.jsx)(r.xA.Column,{children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Solar tracker",color:b?"good":"bad",children:b?"OK":"N/A"}),(0,e.jsx)(r.Ki.Item,{label:"Solar panels",color:j>0?"good":"bad",children:j})]})}),(0,e.jsx)(r.xA.Column,{size:1.5,children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Power output",children:(0,e.jsx)(r.z2,{ranges:{good:[.66,1/0],average:[.33,.66],bad:[-1/0,.33]},minValue:0,maxValue:1,value:u,children:v+" W"})}),(0,e.jsxs)(r.Ki.Item,{label:"Star orientation",children:[m,"\xB0"]})]})})]})}),(0,e.jsx)(r.wn,{title:"Controls",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Tracking",children:[(0,e.jsx)(r.$n,{icon:"times",content:"Off",selected:C===0,onClick:function(){return f("tracking",{mode:0})}}),(0,e.jsx)(r.$n,{icon:"clock-o",content:"Timed",selected:C===1,onClick:function(){return f("tracking",{mode:1})}}),(0,e.jsx)(r.$n,{icon:"sync",content:"Auto",selected:C===2,disabled:!b,onClick:function(){return f("tracking",{mode:2})}})]}),(0,e.jsxs)(r.Ki.Item,{label:"Azimuth",children:[(C===0||C===1)&&(0,e.jsx)(r.Q7,{width:"52px",unit:"\xB0",step:1,stepPixelSize:2,minValue:-360,maxValue:720,value:c,format:function(O){var I=Math.sign(O)>0?" (CW)":" (CCW)";return Math.abs((0,s.LI)(O))+I},onDrag:function(O,I){return f("azimuth",{value:I})}}),C===1&&(0,e.jsx)(r.Q7,{width:"80px",unit:"deg/h",step:1,minValue:-p-.01,maxValue:p+.01,value:d,format:function(O){var I=Math.sign(O)>0?" (CW)":" (CCW)";return Math.abs((0,s.LI)(O))+I},onDrag:function(O,I){return f("azimuth_rate",{value:I})}}),C===2&&(0,e.jsxs)(r.az,{inline:!0,color:"label",mt:"3px",children:[c+"\xB0"," (auto)"]})]})]})})]})})}},96031:function(P,y,t){"use strict";t.r(y),t.d(y,{SpaceHeater:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(1568),i=t(68040),a=function(g){var x=(0,s.Oc)(),f=x.act,h=x.data,v=h.temp,u=h.minTemp,m=h.maxTemp,c=h.cell,d=h.power;return(0,e.jsx)(i.p8,{width:300,height:250,children:(0,e.jsxs)(i.p8.Content,{children:[(0,e.jsx)(n.wn,{title:"Status",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Target Temperature",children:[v," K (",v-r.Ai,"\xB0 C)"]}),(0,e.jsxs)(n.Ki.Item,{label:"Current Charge",children:[d,"% ",!c&&"(No Cell Inserted)"]})]})}),(0,e.jsx)(n.wn,{title:"Controls",children:(0,e.jsxs)(n.Wx,{children:[(0,e.jsx)(n.Wx.Item,{label:"Thermostat",children:(0,e.jsx)(n.N6,{animated:!0,value:v-r.Ai,minValue:u-r.Ai,maxValue:m-r.Ai,unit:"C",onChange:function(p,C){return f("temp",{newtemp:C+r.Ai})}})}),(0,e.jsx)(n.Wx.Item,{label:"Cell",children:c?(0,e.jsx)(n.$n,{icon:"eject",content:"Eject Cell",onClick:function(){return f("cellremove")}}):(0,e.jsx)(n.$n,{icon:"car-battery",content:"Insert Cell",onClick:function(){return f("cellinstall")}})})]})})]})})}},98932:function(P,y,t){"use strict";t.r(y),t.d(y,{Stack:function(){return x}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040);function i(m,c){(c==null||c>m.length)&&(c=m.length);for(var d=0,p=new Array(c);d=m.length?{done:!0}:{done:!1,value:m[p++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var x=function(m){var c=(0,s.Oc)(),d=c.act,p=c.data,C=p.amount,j=p.recipes;return(0,e.jsx)(r.p8,{width:400,height:600,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(n.wn,{title:"Amount: "+C,children:(0,e.jsx)(f,{recipes:j})})})})},f=function(m){var c=(0,s.Oc)(),d=c.act,p=c.data,C=m.recipes,j=Object.keys(C).sort();return j.map(function(b,O){var I=C[b];return I.ref===void 0?(0,e.jsx)(n.Nt,{ml:1,mb:-.7,color:"label",title:b,children:(0,e.jsx)(n.az,{ml:1,children:(0,e.jsx)(f,{recipes:I})})},O):(0,e.jsx)(u,{title:b,recipe:I},O)})},h=function(m,c){return m.req_amount>c?0:Math.floor(c/m.req_amount)},v=function(m){for(var c=function(){var A=D.value;O>=A&&_.push((0,e.jsx)(n.$n,{content:A*j.res_amount+"x",onClick:function(){return p("make",{ref:j.ref,multiplier:A})}}))},d=(0,s.Oc)(),p=d.act,C=d.data,j=m.recipe,b=m.maxMultiplier,O=Math.min(b,Math.floor(j.max_res_amount/j.res_amount)),I=[5,10,25],_=[],M=g(I),D;!(D=M()).done;)c();return I.indexOf(O)===-1&&_.push((0,e.jsx)(n.$n,{content:O*j.res_amount+"x",onClick:function(){return p("make",{ref:j.ref,multiplier:O})}})),_},u=function(m){var c=(0,s.Oc)(),d=c.act,p=c.data,C=p.amount,j=m.recipe,b=m.title,O=j.res_amount,I=j.max_res_amount,_=j.req_amount,M=j.ref,D=b;D+=" (",D+=_+" ",D+="sheet"+(_>1?"s":""),D+=")",O>1&&(D=O+"x "+D);var A=h(j,C);return(0,e.jsx)(n.az,{children:(0,e.jsx)(n.XI,{children:(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{fluid:!0,disabled:!A,icon:"wrench",content:D,onClick:function(){return d("make",{ref:j.ref,multiplier:1})}})}),I>1&&A>1&&(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:(0,e.jsx)(v,{recipe:j,maxMultiplier:A})})]})})})}},47441:function(P,y,t){"use strict";t.r(y),t.d(y,{StationAlertConsole:function(){return i},StationAlertConsoleContent:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(){return(0,e.jsx)(r.p8,{width:425,height:600,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(a,{})})})},a=function(g){var x=(0,s.Oc)(),f=x.act,h=x.data,v=h.categories,u=v===void 0?[]:v;return u.map(function(m){return(0,e.jsx)(n.wn,{title:m.category,children:(0,e.jsxs)("ul",{children:[m.alarms.length===0&&(0,e.jsx)("li",{className:"color-good",children:"Systems Nominal"}),m.alarms.map(function(c){var d="";return c.has_cameras?d=(0,e.jsx)(n.wn,{children:c.cameras.map(function(p){return(0,e.jsx)(n.$n,{disabled:p.deact,content:p.name+(p.deact?" (deactived)":""),icon:"video",onClick:function(){return f("switchTo",{camera:p.camera})}},p.name)})}):c.lost_sources&&(d=(0,e.jsxs)(n.az,{color:"bad",children:["Lost Alarm Sources: ",c.lost_sources]})),(0,e.jsxs)("li",{children:[c.name,c.origin_lost?(0,e.jsx)(n.az,{color:"bad",children:"Alarm Origin Lost."}):"",d]},c.name)})]})},m.category)})}},89052:function(P,y,t){"use strict";t.r(y),t.d(y,{StationBlueprints:function(){return i},StationBlueprintsContent:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(g){return(0,e.jsx)(r.p8,{width:870,height:708,children:(0,e.jsx)(a,{})})},a=function(g){var x=(0,s.Oc)(),f=x.act,h=x.data,v=x.config,u=h.mapRef,m=h.areas,c=h.turfs;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("div",{className:"CameraConsole__left",children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:"Honk!"})}),(0,e.jsx)("div",{className:"CameraConsole__right",children:(0,e.jsx)(n.D1,{className:"CameraConsole__map",params:{id:u,type:"map"}})})]})}},42135:function(P,y,t){"use strict";t.r(y),t.d(y,{StationBoiler:function(){return a}});var e=t(88095),s=t(33854),n=t(4413),r=t(92514),i=t(68040),a=function(g){var x=(0,n.Oc)(),f=x.act,h=x.data,v=h.input,u=h.output,m=h.materials,c=h.timeleft;return(0,e.jsx)(i.p8,{width:600,height:200,children:(0,e.jsx)(i.p8.Content,{children:(0,e.jsx)(r.wn,{title:"Station Boiler",children:(0,e.jsxs)(r.BJ,{nowrap:!0,children:[(0,e.jsx)(r.BJ.Item,{children:(0,e.jsx)(r.wn,{title:"Input Pipe",children:v?(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Total Pressure",children:[v.pressure," kPa"]}),(0,e.jsxs)(r.Ki.Item,{label:"Temperature",children:[v.temp,"C"]})]}):(0,e.jsx)(r.so,{color:"bad",children:"No connection detected."})})}),(0,e.jsx)(r.BJ.Item,{children:(0,e.jsx)(r.wn,{title:"Wood",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Divider,{size:1}),m.map(function(d){return(0,e.jsxs)(r.Ki.Item,{label:(0,s.ZH)(d.display),children:[(0,e.jsxs)(r.z2,{width:"70%",value:d.qty,maxValue:d.max,children:[d.qty,"/",d.max]}),(0,e.jsx)(r.$n,{ml:1,content:"Eject",onClick:function(){return f("ejectMaterial",{mat:d.name})}})]},d.name)}),(0,e.jsx)(r.Ki.Item,{label:"Time Left",children:(0,e.jsx)(r.zv,{value:c})}),(0,e.jsx)(r.Ki.Item,{label:"Actions",children:(0,e.jsx)(r.$n,{content:"Ignite",onClick:function(){return f("ignite")}})})]})})}),(0,e.jsx)(r.BJ.Item,{children:(0,e.jsx)(r.wn,{title:"Output Pipe",children:u?(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Total Pressure",children:[u.pressure," kPa"]}),(0,e.jsxs)(r.Ki.Item,{label:"Temperature",children:[u.temp,"C"]})]}):(0,e.jsx)(r.so,{color:"bad",children:"No connection detected."})})})]})})})})}},38501:function(P,y,t){"use strict";t.r(y),t.d(y,{StockExchange:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(u){var m=(0,s.Oc)(),c=m.act,d=m.data,p=d.screen,C=d.stationName,j;return p==="stocks"?j=(0,e.jsx)(a,{}):p==="logs"?j=(0,e.jsx)(f,{}):p==="archive"?j=(0,e.jsx)(h,{}):p==="graph"&&(j=(0,e.jsx)(v,{})),(0,e.jsx)(r.p8,{width:600,height:600,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(n.wn,{title:""+C+" Stock Exchange",children:j})})})},a=function(u){var m=(0,s.Oc)(),c=m.act,d=m.data,p=d.balance,C=d.stationName,j=d.viewMode,b=(0,e.jsx)(g,{});return j==="Full"?b=(0,e.jsx)(g,{}):j==="Compressed"&&(b=(0,e.jsx)(x,{})),(0,e.jsxs)(n.az,{children:[(0,e.jsxs)("span",{children:["Welcome, ",(0,e.jsxs)("b",{children:[C," Cargo Department"]})," |"," "]}),(0,e.jsxs)("span",{children:[(0,e.jsx)("b",{children:"Credits:"})," ",p]}),(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"View mode: "}),(0,e.jsx)(n.$n,{content:j,onClick:function(){return c("stocks_cycle_view")}}),(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Stock Transaction Log: "}),(0,e.jsx)(n.$n,{icon:"list",content:"Check",onClick:function(){return c("stocks_check")}}),(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"This is a work in progress. Certain features may not be available."}),(0,e.jsx)(n.wn,{title:"Listed Stocks",children:b})]})},g=function(u){var m=(0,s.Oc)(),c=m.act,d=m.data,p=d.stocks,C=p===void 0?[]:p;return(0,e.jsxs)(n.az,{children:[(0,e.jsx)("b",{children:"Actions:"})," + Buy, - Sell, (A)rchives, (H)istory",(0,e.jsx)(n.cG,{}),(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{bold:!0,children:"\xA0"}),(0,e.jsx)(n.XI.Cell,{children:"ID"}),(0,e.jsx)(n.XI.Cell,{children:"Name"}),(0,e.jsx)(n.XI.Cell,{children:"Value"}),(0,e.jsx)(n.XI.Cell,{children:"Owned"}),(0,e.jsx)(n.XI.Cell,{children:"Avail"}),(0,e.jsx)(n.XI.Cell,{children:"Actions"})]}),(0,e.jsx)(n.cG,{}),C.map(function(j){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{bold:!0,children:"\xA0"}),(0,e.jsx)(n.XI.Cell,{color:"label",children:j.ID}),(0,e.jsx)(n.XI.Cell,{color:"label",children:j.Name}),(0,e.jsx)(n.XI.Cell,{color:"label",children:j.Value}),(0,e.jsx)(n.XI.Cell,{color:"label",children:j.Owned}),(0,e.jsx)(n.XI.Cell,{color:"label",children:j.Avail}),(0,e.jsxs)(n.XI.Cell,{color:"label",children:[(0,e.jsx)(n.$n,{icon:"plus",disabled:!1,onClick:function(){return c("stocks_buy",{share:j.REF})}}),(0,e.jsx)(n.$n,{icon:"minus",disabled:!1,onClick:function(){return c("stocks_sell",{share:j.REF})}}),(0,e.jsx)("br",{}),(0,e.jsx)(n.$n,{content:"A",onClick:function(){return c("stocks_archive",{share:j.REF})}}),(0,e.jsx)(n.$n,{content:"H",onClick:function(){return c("stocks_history",{share:j.REF})}}),(0,e.jsx)("br",{})]})]},j.ID)})]})]})},x=function(u){var m=(0,s.Oc)(),c=m.act,d=m.data,p=d.stocks,C=p===void 0?[]:p;return(0,e.jsx)(n.az,{children:C.map(function(j){return(0,e.jsxs)(n.az,{children:[(0,e.jsx)("span",{children:j.name})," ",(0,e.jsx)("span",{children:j.ID}),j.bankrupt===1&&(0,e.jsx)("b",{color:"red",children:"BANKRUPT"}),(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Unified shares"})," ",j.Unification," ago.",(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Current value per share:"})," ",j.Value," |"," ",(0,e.jsx)(n.$n,{content:"View history",onClick:function(){return c("stocks_history",{share:j.REF})}}),(0,e.jsx)("br",{}),"You currently own ",(0,e.jsx)("b",{children:j.Owned})," shares in this company.",(0,e.jsx)("br",{}),"There are ",j.Avail," purchasable shares on the market currently.",(0,e.jsx)("br",{}),j.bankrupt===1?(0,e.jsx)("span",{children:"You cannot buy or sell shares in a bankrupt company!"}):(0,e.jsxs)("span",{children:[(0,e.jsx)(n.$n,{content:"Buy shares",onClick:function(){return c("stocks_buy",{share:j.REF})}})," ","|"," ",(0,e.jsx)(n.$n,{content:"Sell shares",onClick:function(){return c("stocks_sell",{share:j.REF})}})]}),(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Prominent products:"}),(0,e.jsx)("br",{}),(0,e.jsx)("i",{children:j.Products}),(0,e.jsx)("br",{}),(0,e.jsx)(n.$n,{content:"View news archives",onClick:function(){return c("stocks_archive",{share:j.REF})}})," ",(0,e.jsx)(n.cG,{})]},j.ID)})})},f=function(u){var m=(0,s.Oc)(),c=m.act,d=m.data,p=d.logs,C=p===void 0?[]:p;return(0,e.jsxs)(n.az,{children:[(0,e.jsx)("h2",{children:"Stock Transaction Logs"}),(0,e.jsx)("br",{}),(0,e.jsx)(n.$n,{content:"Go back",onClick:function(){return c("stocks_backbutton")}}),(0,e.jsx)(n.cG,{}),(0,e.jsx)("div",{children:C.map(function(j){return(0,e.jsxs)(n.az,{children:[j.type!=="borrow"?(0,e.jsxs)("div",{children:[j.time," | ",(0,e.jsx)("b",{children:j.user_name})," ",j.type==="transaction_bought"?(0,e.jsx)("span",{children:"bought"}):(0,e.jsx)("span",{children:"sold"})," ",(0,e.jsx)("b",{children:j.stocks})," stocks at ",j.shareprice," a share for"," ",(0,e.jsx)("b",{children:j.money})," total credits"," ",j.type==="transaction_bought"?(0,e.jsx)("span",{children:"in"}):(0,e.jsx)("span",{children:"from"})," ",(0,e.jsx)("b",{children:j.company_name}),".",(0,e.jsx)("br",{})]}):(0,e.jsxs)("div",{children:[j.time," | ",(0,e.jsx)("b",{children:j.user_name})," borrowed ",(0,e.jsx)("b",{children:j.stocks})," ","stocks with a deposit of ",(0,e.jsx)("b",{children:j.money})," credits in"," ",(0,e.jsx)("b",{children:j.company_name}),".",(0,e.jsx)("br",{})]}),(0,e.jsx)(n.cG,{})]},j.time)})})]})},h=function(u){var m=(0,s.Oc)(),c=m.act,d=m.data,p=d.name,C=d.events,j=C===void 0?[]:C,b=d.articles,O=b===void 0?[]:b;return(0,e.jsxs)(n.az,{children:[(0,e.jsxs)("h2",{children:["News feed for ",p]}),(0,e.jsx)(n.$n,{content:"Go back",onClick:function(){return c("stocks_backbutton")}}),(0,e.jsx)("h3",{children:"Events"}),(0,e.jsx)(n.cG,{}),(0,e.jsx)("div",{children:j.map(function(I){return(0,e.jsxs)(n.az,{children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("b",{children:I.current_title}),(0,e.jsx)("br",{}),I.current_desc]}),(0,e.jsx)(n.cG,{})]},I.current_title)})}),(0,e.jsx)("br",{}),(0,e.jsx)("h3",{children:"Articles"}),(0,e.jsx)(n.cG,{}),(0,e.jsx)("div",{children:O.map(function(I){return(0,e.jsxs)(n.az,{children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("b",{children:I.headline}),(0,e.jsx)("i",{children:I.subtitle}),(0,e.jsx)("br",{}),I.article,(0,e.jsx)("br",{}),"- ",I.author,", ",I.spacetime," (via"," ",(0,e.jsx)("i",{children:I.outlet}),")"]}),(0,e.jsx)(n.cG,{})]},I.headline)})})]})},v=function(u){var m=(0,s.Oc)(),c=m.act,d=m.data,p=d.name,C=d.maxValue,j=d.values,b=j===void 0?[]:j;return(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.$n,{content:"Go back",onClick:function(){return c("stocks_backbutton")}}),(0,e.jsx)(n.cG,{}),(0,e.jsx)(n.wn,{position:"relative",height:"100%",children:(0,e.jsx)(n.t1.Line,{fillPositionedParent:!0,data:b,rangeX:[0,b.length-1],rangeY:[0,C],strokeColor:"rgba(0, 181, 173, 1)",fillColor:"rgba(0, 181, 173, 0.25)"})}),(0,e.jsx)(n.cG,{}),(0,e.jsxs)("p",{children:[p," share value per share"]})]})}},21665:function(P,y,t){"use strict";t.r(y),t.d(y,{SuitCycler:function(){return a}});var e=t(88095),s=t(44583),n=t(4413),r=t(92514),i=t(68040),a=function(v){var u=function(V){D(V)},m=function(V){K(V)},c=(0,n.Oc)(),d=c.act,p=c.data,C=p.active,j=p.locked,b=p.uv_active,O=p.species,I=p.departments,_=(0,s.useState)(!!I&&I[0]||null),M=_[0],D=_[1],A=(0,s.useState)(!!O&&O[0]||null),R=A[0],K=A[1],N=(0,e.jsx)(g,{selectedDepartment:M,selectedSpecies:R,onSelectedDepartment:u,onSelectedSpecies:m});return b?N=(0,e.jsx)(x,{}):j?N=(0,e.jsx)(f,{}):C&&(N=(0,e.jsx)(h,{})),(0,e.jsx)(i.p8,{width:320,height:400,children:(0,e.jsx)(i.p8.Content,{children:N})})},g=function(v){var u=(0,n.Oc)(),m=u.act,c=u.data,d=c.safeties,p=c.occupied,C=c.suit,j=c.helmet,b=c.departments,O=c.species,I=c.uv_level,_=c.max_uv_level,M=c.can_repair,D=c.damage;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(r.wn,{title:"Storage",buttons:(0,e.jsx)(r.$n,{icon:"lock",content:"Lock",onClick:function(){return m("lock")}}),children:[!!(p&&d)&&(0,e.jsxs)(r.IC,{children:["Biological entity detected in suit chamber. Please remove before continuing with operation.",(0,e.jsx)(r.$n,{fluid:!0,icon:"eject",color:"red",content:"Eject Entity",onClick:function(){return m("eject_guy")}})]}),(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Helmet",children:(0,e.jsx)(r.$n,{icon:j?"square":"square-o",content:j||"Empty",disabled:!j,onClick:function(){return m("dispense",{item:"helmet"})}})}),(0,e.jsx)(r.Ki.Item,{label:"Suit",children:(0,e.jsx)(r.$n,{icon:C?"square":"square-o",content:C||"Empty",disabled:!C,onClick:function(){return m("dispense",{item:"suit"})}})}),M&&D?(0,e.jsxs)(r.Ki.Item,{label:"Suit Damage",children:[D,(0,e.jsx)(r.$n,{icon:"wrench",content:"Repair",onClick:function(){return m("repair_suit")}})]}):null]})]}),(0,e.jsxs)(r.wn,{title:"Customization",children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Target Paintjob",children:(0,e.jsx)(r.ms,{noscroll:!0,width:"150px",options:b,selected:v.selectedDepartment,onSelected:function(A){v.onSelectedDepartment(A),m("department",{department:A})}})}),(0,e.jsx)(r.Ki.Item,{label:"Target Species",children:(0,e.jsx)(r.ms,{width:"150px",maxHeight:"160px",options:O,selected:v.selectedSpecies,onSelected:function(A){v.onSelectedSpecies(A),m("species",{species:A})}})})]}),(0,e.jsx)(r.$n,{mt:1,fluid:!0,content:"Customize",onClick:function(){return m("apply_paintjob")}})]}),(0,e.jsx)(r.wn,{title:"UV Decontamination",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Radiation Level",children:(0,e.jsx)(r.Q7,{width:"50px",value:I,minValue:1,maxValue:_,stepPixelSize:30,onChange:function(A,R){return m("radlevel",{radlevel:R})}})}),(0,e.jsx)(r.Ki.Item,{label:"Decontaminate",children:(0,e.jsx)(r.$n,{fluid:!0,icon:"recycle",disabled:p&&d,textAlign:"center",onClick:function(){return m("uv")}})})]})})]})},x=function(v){return(0,e.jsx)(r.IC,{children:"Contents are currently being decontaminated. Please wait."})},f=function(v){var u=(0,n.Oc)(),m=u.act,c=u.data,d=c.model_text,p=c.userHasAccess;return(0,e.jsxs)(r.wn,{title:"Locked",textAlign:"center",children:[(0,e.jsxs)(r.az,{color:"bad",bold:!0,children:["The ",d," suit cycler is currently locked. Please contact your system administrator."]}),(0,e.jsx)(r.az,{children:(0,e.jsx)(r.$n,{icon:"unlock",content:"[Unlock]",disabled:!p,onClick:function(){return m("lock")}})})]})},h=function(v){return(0,e.jsx)(r.IC,{children:"Contents are currently being painted. Please wait."})}},42688:function(P,y,t){"use strict";t.r(y),t.d(y,{SuitStorageUnit:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(h){var v=(0,s.Oc)(),u=v.act,m=v.data,c=m.panelopen,d=m.uv_active,p=m.broken,C=(0,e.jsx)(a,{});return c?C=(0,e.jsx)(g,{}):d?C=(0,e.jsx)(x,{}):p&&(C=(0,e.jsx)(f,{})),(0,e.jsx)(r.p8,{width:400,height:365,children:(0,e.jsx)(r.p8.Content,{children:C})})},a=function(h){var v=(0,s.Oc)(),u=v.act,m=v.data,c=m.locked,d=m.open,p=m.safeties,C=m.occupied,j=m.suit,b=m.helmet,O=m.mask;return(0,e.jsxs)(n.wn,{title:"Storage",minHeight:"260px",buttons:(0,e.jsxs)(e.Fragment,{children:[!d&&(0,e.jsx)(n.$n,{icon:c?"unlock":"lock",content:c?"Unlock":"Lock",onClick:function(){return u("lock")}}),!c&&(0,e.jsx)(n.$n,{icon:d?"sign-out-alt":"sign-in-alt",content:d?"Close":"Open",onClick:function(){return u("door")}})]}),children:[!!(C&&p)&&(0,e.jsxs)(n.IC,{children:["Biological entity detected in suit chamber. Please remove before continuing with operation.",(0,e.jsx)(n.$n,{fluid:!0,icon:"eject",color:"red",content:"Eject Entity",onClick:function(){return u("eject_guy")}})]}),c&&(0,e.jsxs)(n.az,{mt:6,bold:!0,textAlign:"center",fontSize:"40px",children:[(0,e.jsx)(n.az,{children:"Unit Locked"}),(0,e.jsx)(n.In,{name:"lock"})]})||d&&(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Helmet",children:(0,e.jsx)(n.$n,{icon:b?"square":"square-o",content:b||"Empty",disabled:!b,onClick:function(){return u("dispense",{item:"helmet"})}})}),(0,e.jsx)(n.Ki.Item,{label:"Suit",children:(0,e.jsx)(n.$n,{icon:j?"square":"square-o",content:j||"Empty",disabled:!j,onClick:function(){return u("dispense",{item:"suit"})}})}),(0,e.jsx)(n.Ki.Item,{label:"Mask",children:(0,e.jsx)(n.$n,{icon:O?"square":"square-o",content:O||"Empty",disabled:!O,onClick:function(){return u("dispense",{item:"mask"})}})})]})||(0,e.jsx)(n.$n,{fluid:!0,icon:"recycle",content:"Decontaminate",disabled:C&&p,textAlign:"center",onClick:function(){return u("uv")}})]})},g=function(h){var v=(0,s.Oc)(),u=v.act,m=v.data,c=m.safeties,d=m.uv_super;return(0,e.jsxs)(n.wn,{title:"Maintenance Panel",children:[(0,e.jsx)(n.az,{color:"grey",children:"The panel is ridden with controls, button and meters, labeled in strange signs and symbols that you cannot understand. Probably the manufactoring world's language. Among other things, a few controls catch your eye."}),(0,e.jsx)("br",{}),(0,e.jsxs)(n.az,{children:["A small dial with a biohazard symbol next to it. It's pointing towards a gauge that reads ",d?"15nm":"185nm",".",(0,e.jsxs)(n.so,{mt:1,align:"center",textAlign:"center",children:[(0,e.jsx)(n.so.Item,{basis:"50%",textAlign:"center",children:(0,e.jsx)(n.N6,{size:2,inline:!0,value:d,minValue:0,maxValue:1,step:1,stepPixelSize:40,color:d?"red":"green",format:function(p){return p?"15nm":"185nm"},onChange:function(p,C){return u("toggleUV")}})}),(0,e.jsx)(n.so.Item,{basis:"50%",textAlign:"center",children:(0,e.jsx)(n.In,{name:"biohazard",size:3,color:"orange"})})]})]}),(0,e.jsx)("br",{}),(0,e.jsxs)(n.az,{children:["A thick old-style button, with 2 grimy LED lights next to it. The"," ",c?(0,e.jsx)("font",{color:"green",children:"GREEN"}):(0,e.jsx)("font",{color:"red",children:"RED"})," ","LED is on.",(0,e.jsxs)(n.so,{mt:1,align:"center",textAlign:"center",children:[(0,e.jsx)(n.so.Item,{basis:"50%",textAlign:"center",children:(0,e.jsx)(n.$n,{fontSize:"2rem",color:"grey",inline:!0,icon:"caret-square-right",style:{border:"4px solid #777","border-style":"outset"},onClick:function(){return u("togglesafeties")}})}),(0,e.jsxs)(n.so.Item,{basis:"50%",textAlign:"center",children:[(0,e.jsx)(n.In,{name:"circle",color:c?"black":"red",mr:2}),(0,e.jsx)(n.In,{name:"circle",color:c?"green":"black"})]})]})]})]})},x=function(h){return(0,e.jsx)(n.IC,{children:"Contents are currently being decontaminated. Please wait."})},f=function(h){return(0,e.jsx)(n.IC,{danger:!0,children:"Unit chamber is too contaminated to continue usage. Please call for a qualified individual to perform maintenance."})}},67186:function(P,y,t){"use strict";t.r(y),t.d(y,{SupermatterMonitor:function(){return g},SupermatterMonitorContent:function(){return x}});var e=t(88095),s=t(5229),n=t(33854),r=t(4413),i=t(92514),a=t(68040),g=function(v){return(0,e.jsx)(a.p8,{width:600,height:400,children:(0,e.jsx)(a.p8.Content,{scrollable:!0,children:(0,e.jsx)(x,{})})})},x=function(v){var u=(0,r.Oc)(),m=u.act,c=u.data,d=c.active;return d?(0,e.jsx)(h,{}):(0,e.jsx)(f,{})},f=function(v){var u=(0,r.Oc)(),m=u.act,c=u.data,d=c.supermatters;return(0,e.jsx)(i.wn,{title:"Supermatters Detected",buttons:(0,e.jsx)(i.$n,{content:"Refresh",icon:"sync",onClick:function(){return m("refresh")}}),children:(0,e.jsx)(i.so,{wrap:"wrap",children:d.map(function(p,C){return(0,e.jsx)(i.so.Item,{basis:"49%",grow:C%2,children:(0,e.jsx)(i.wn,{title:p.area_name+" (#"+p.uid+")",children:(0,e.jsxs)(i.Ki,{children:[(0,e.jsxs)(i.Ki.Item,{label:"Integrity",children:[p.integrity," %"]}),(0,e.jsx)(i.Ki.Item,{label:"Options",children:(0,e.jsx)(i.$n,{icon:"eye",content:"View Details",onClick:function(){return m("set",{set:p.uid})}})})]})})},C)})})})},h=function(v){var u=(0,r.Oc)(),m=u.act,c=u.data,d=c.SM_area,p=c.SM_integrity,C=c.SM_power,j=c.SM_ambienttemp,b=c.SM_ambientpressure,O=c.SM_EPR,I=c.SM_gas_O2,_=c.SM_gas_CO2,M=c.SM_gas_N2,D=c.SM_gas_PH,A=c.SM_gas_N2O;return(0,e.jsx)(i.wn,{title:(0,n.Sn)(d),buttons:(0,e.jsx)(i.$n,{icon:"arrow-left",content:"Return to Menu",onClick:function(){return m("clear")}}),children:(0,e.jsxs)(i.Ki,{children:[(0,e.jsx)(i.Ki.Item,{label:"Core Integrity",children:(0,e.jsx)(i.z2,{animated:!0,value:p,minValue:0,maxValue:100,ranges:{good:[100,100],average:[50,100],bad:[-1/0,50]}})}),(0,e.jsx)(i.Ki.Item,{label:"Relative EER",children:(0,e.jsx)(i.az,{color:C>300&&"bad"||C>150&&"average"||"good",children:(0,e.jsx)(i.zv,{format:function(R){return(0,s.LI)(R,2)+" MeV/cm\xB3"},value:C})})}),(0,e.jsx)(i.Ki.Item,{label:"Temperature",children:(0,e.jsx)(i.az,{color:j>5e3&&"bad"||j>4e3&&"average"||"good",children:(0,e.jsx)(i.zv,{format:function(R){return(0,s.LI)(R,2)+" K"},value:j})})}),(0,e.jsx)(i.Ki.Item,{label:"Pressure",children:(0,e.jsx)(i.az,{color:b>1e4&&"bad"||b>5e3&&"average"||"good",children:(0,e.jsx)(i.zv,{format:function(R){return(0,s.LI)(R,2)+" kPa"},value:b})})}),(0,e.jsx)(i.Ki.Item,{label:"Chamber EPR",children:(0,e.jsx)(i.az,{color:O>4&&"bad"||O>1&&"average"||"good",children:(0,e.jsx)(i.zv,{format:function(R){return(0,s.LI)(R,2)},value:O})})}),(0,e.jsx)(i.Ki.Item,{label:"Gas Composition",children:(0,e.jsxs)(i.Ki,{children:[(0,e.jsxs)(i.Ki.Item,{label:"O\xB2",children:[(0,e.jsx)(i.zv,{value:I}),"%"]}),(0,e.jsxs)(i.Ki.Item,{label:"CO\xB2",children:[(0,e.jsx)(i.zv,{value:_}),"%"]}),(0,e.jsxs)(i.Ki.Item,{label:"N\xB2",children:[(0,e.jsx)(i.zv,{value:M}),"%"]}),(0,e.jsxs)(i.Ki.Item,{label:"PH",children:[(0,e.jsx)(i.zv,{value:D}),"%"]}),(0,e.jsxs)(i.Ki.Item,{label:"N\xB2O",children:[(0,e.jsx)(i.zv,{value:A}),"%"]})]})})]})})}},85308:function(P,y,t){"use strict";t.r(y),t.d(y,{SupplyConsole:function(){return v}});var e=t(88095),s=t(11358),n=t(28763),r=t(44583),i=t(4413),a=t(92514),g=t(24158),x=t(5425),f=t(68040),h=function(C){var j=(0,i.Oc)(),b=j.act,O=j.data,I=O.supply_points,_=C.args,M=_.name,D=_.cost,A=_.manifest,R=_.ref,K=_.random;return(0,e.jsx)(a.wn,{width:"400px",level:2,m:"-1rem",pb:"1rem",title:M,buttons:(0,e.jsx)(a.$n,{icon:"shopping-cart",content:"Buy - "+D+" points",disabled:D>I,onClick:function(){return b("request_crate",{ref:R})}}),children:(0,e.jsx)(a.wn,{title:"Contains"+(K?" any "+K+" of:":""),scrollable:!0,height:"200px",children:A.map(function(N){return(0,e.jsx)(a.az,{children:N},N)})})})},v=function(C){var j=(0,i.Oc)(),b=j.act,O=j.data;return(0,x.modalRegisterBodyOverride)("view_crate",h),(0,e.jsx)(f.p8,{width:700,height:620,children:(0,e.jsxs)(f.p8.Content,{children:[(0,e.jsx)(x.ComplexModal,{maxWidth:"100%"}),(0,e.jsxs)(a.wn,{title:"Supply Records",children:[(0,e.jsx)(u,{}),(0,e.jsx)(m,{})]})]})})},u=function(C){var j=(0,i.Oc)(),b=j.act,O=j.data,I=O.supply_points,_=O.shuttle,M=O.shuttle_auth,D=null,A=!1;return M&&(_.launch===1&&_.mode===0?D=(0,e.jsx)(a.$n,{icon:"rocket",content:"Send Away",onClick:function(){return b("send_shuttle",{mode:"send_away"})}}):_.launch===2&&(_.mode===3||_.mode===1)?D=(0,e.jsx)(a.$n,{icon:"ban",content:"Cancel Launch",onClick:function(){return b("send_shuttle",{mode:"cancel_shuttle"})}}):_.launch===1&&_.mode===5&&(D=(0,e.jsx)(a.$n,{icon:"rocket",content:"Send Shuttle",onClick:function(){return b("send_shuttle",{mode:"send_to_station"})}})),_.force&&(A=!0)),(0,e.jsxs)(a.wn,{children:[(0,e.jsx)(a.Ki,{children:(0,e.jsx)(a.Ki.Item,{label:"Supply Points",children:(0,e.jsx)(a.zv,{value:I})})}),(0,e.jsx)(a.wn,{level:2,title:"Supply Shuttle",mt:2,children:(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"Location",buttons:(0,e.jsxs)(e.Fragment,{children:[D,A?(0,e.jsx)(a.$n,{icon:"exclamation-triangle",content:"Force Launch",onClick:function(){return b("send_shuttle",{mode:"force_shuttle"})}}):null]}),children:_.location}),(0,e.jsx)(a.Ki.Item,{label:"Engine",children:_.engine}),_.mode===4?(0,e.jsx)(a.Ki.Item,{label:"ETA",children:_.time>1?(0,g.fU)(_.time):"LATE"}):null]})})]})},m=function(C){var j=(0,i.Oc)(),b=j.act,O=j.data,I=O.order_auth,_=(0,r.useState)(0),M=_[0],D=_[1];return(0,e.jsxs)(a.wn,{title:"Menu",children:[(0,e.jsxs)(a.tU,{children:[(0,e.jsx)(a.tU.Tab,{icon:"box",selected:M===0,onClick:function(){return D(0)},children:"Request"}),(0,e.jsx)(a.tU.Tab,{icon:"check-circle-o",selected:M===1,onClick:function(){return D(1)},children:"Accepted"}),(0,e.jsx)(a.tU.Tab,{icon:"circle-o",selected:M===2,onClick:function(){return D(2)},children:"Requests"}),(0,e.jsx)(a.tU.Tab,{icon:"book",selected:M===3,onClick:function(){return D(3)},children:"Order history"}),(0,e.jsx)(a.tU.Tab,{icon:"book",selected:M===4,onClick:function(){return D(4)},children:"Export history"})]}),M===0?(0,e.jsx)(c,{}):null,M===1?(0,e.jsx)(d,{mode:"Approved"}):null,M===2?(0,e.jsx)(d,{mode:"Requested"}):null,M===3?(0,e.jsx)(d,{mode:"All"}):null,M===4?(0,e.jsx)(p,{}):null]})},c=function(C){var j=(0,i.Oc)(),b=j.act,O=j.data,I=O.categories,_=O.supply_packs,M=O.contraband,D=O.supply_points,A=(0,r.useState)(null),R=A[0],K=A[1],N=(0,n.L)([(0,s.pb)(function(k){return k.group===R}),(0,s.pb)(function(k){return!k.contraband||M}),(0,s.Ul)(function(k){return k.name}),(0,s.Ul)(function(k){return k.cost>D})])(_);return(0,e.jsx)(a.wn,{level:2,children:(0,e.jsxs)(a.BJ,{children:[(0,e.jsx)(a.BJ.Item,{basis:"25%",children:(0,e.jsx)(a.wn,{title:"Categories",scrollable:!0,fill:!0,height:"290px",children:I.map(function(k){return(0,e.jsx)(a.$n,{fluid:!0,content:k,selected:k===R,onClick:function(){return K(k)}},k)})})}),(0,e.jsx)(a.BJ.Item,{grow:1,ml:2,children:(0,e.jsx)(a.wn,{title:"Contents",scrollable:!0,fill:!0,height:"290px",children:N.map(function(k){return(0,e.jsx)(a.az,{children:(0,e.jsxs)(a.BJ,{align:"center",justify:"flex-start",children:[(0,e.jsx)(a.BJ.Item,{basis:"70%",children:(0,e.jsx)(a.$n,{fluid:!0,icon:"shopping-cart",ellipsis:!0,content:k.name,color:k.cost>D?"red":null,onClick:function(){return b("request_crate",{ref:k.ref})}})}),(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(a.$n,{content:"#",color:k.cost>D?"red":null,onClick:function(){return b("request_crate_multi",{ref:k.ref})}})}),(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(a.$n,{content:"C",color:k.cost>D?"red":null,onClick:function(){return b("view_crate",{crate:k.ref})}})}),(0,e.jsxs)(a.BJ.Item,{grow:1,children:[k.cost," points"]})]})},k.name)})})})]})})},d=function(C){var j=(0,i.Oc)(),b=j.act,O=j.data,I=C.mode,_=O.orders,M=O.order_auth,D=O.supply_points,A=_.filter(function(R){return R.status===I||I==="All"});return A.length?(0,e.jsxs)(a.wn,{level:2,children:[I==="Requested"&&M?(0,e.jsx)(a.$n,{mt:-1,mb:1,fluid:!0,color:"red",icon:"trash",content:"Clear all requests",onClick:function(){return b("clear_all_requests")}}):null,A.map(function(R,K){return(0,e.jsxs)(a.wn,{title:"Order "+(K+1),buttons:I==="All"&&M?(0,e.jsx)(a.$n,{color:"red",icon:"trash",content:"Delete Record",onClick:function(){return b("delete_order",{ref:R.ref})}}):null,children:[(0,e.jsxs)(a.Ki,{children:[R.entries.map(function(N,k){return N.entry?(0,e.jsx)(a.Ki.Item,{label:N.field,buttons:M?(0,e.jsx)(a.$n,{icon:"pen",content:"Edit",onClick:function(){b("edit_order_value",{ref:R.ref,edit:N.field,default:N.entry})}}):null,children:N.entry},k):null}),I==="All"?(0,e.jsx)(a.Ki.Item,{label:"Status",children:R.status}):null]}),M&&I==="Requested"?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.$n,{icon:"check",content:"Approve",disabled:R.cost>D,onClick:function(){return b("approve_order",{ref:R.ref})}}),(0,e.jsx)(a.$n,{icon:"times",content:"Deny",onClick:function(){return b("deny_order",{ref:R.ref})}})]}):null]},K)})]}):(0,e.jsx)(a.wn,{level:2,children:"No orders found."})},p=function(C){var j=(0,i.Oc)(),b=j.act,O=j.data,I=O.receipts,_=O.order_auth;return I.length?(0,e.jsx)(a.wn,{level:2,children:I.map(function(M,D){return(0,e.jsxs)(a.wn,{children:[(0,e.jsxs)(a.Ki,{children:[M.title.map(function(A){return(0,e.jsx)(a.Ki.Item,{label:A.field,buttons:_?(0,e.jsx)(a.$n,{icon:"pen",content:"Edit",onClick:function(){return b("export_edit",{ref:M.ref,edit:A.field,default:A.entry})}}):null,children:A.entry},A.field)}),M.error?(0,e.jsx)(a.Ki.Item,{labelColor:"red",label:"Error",children:M.error}):M.contents.map(function(A,R){return(0,e.jsxs)(a.Ki.Item,{label:A.object,buttons:_?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.$n,{icon:"pen",content:"Edit",onClick:function(){return b("export_edit_field",{ref:M.ref,index:R+1,edit:"meow",default:A.object})}}),(0,e.jsx)(a.$n,{icon:"trash",color:"red",content:"Delete",onClick:function(){return b("export_delete_field",{ref:M.ref,index:R+1})}})]}):null,children:[A.quantity,"x -> ",A.value," points"]},R)})]}),_?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.$n,{mt:1,icon:"plus",content:"Add Item To Record",onClick:function(){return b("export_add_field",{ref:M.ref})}}),(0,e.jsx)(a.$n,{icon:"trash",content:"Delete Record",onClick:function(){return b("export_delete",{ref:M.ref})}})]}):null]},D)})}):(0,e.jsx)(a.wn,{level:2,children:"No receipts found."})}},64460:function(P,y,t){"use strict";t.r(y),t.d(y,{TEGenerator:function(){return g}});var e=t(88095),s=t(5229),n=t(4413),r=t(92514),i=t(24158),a=t(68040),g=function(f){var h=(0,n.Oc)().data,v=h.totalOutput,u=h.maxTotalOutput,m=h.thermalOutput,c=h.primary,d=h.secondary;return(0,e.jsx)(a.p8,{width:550,height:310,children:(0,e.jsxs)(a.p8.Content,{children:[(0,e.jsx)(r.wn,{title:"Status",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Total Output",children:(0,e.jsx)(r.z2,{value:v,maxValue:u,children:(0,i.d5)(v)})}),(0,e.jsx)(r.Ki.Item,{label:"Thermal Output",children:(0,i.d5)(m)})]})}),c&&d?(0,e.jsxs)(r.so,{spacing:1,children:[(0,e.jsx)(r.so.Item,{shrink:1,grow:1,children:(0,e.jsx)(x,{name:"Primary Circulator",values:c})}),(0,e.jsx)(r.so.Item,{shrink:1,grow:1,children:(0,e.jsx)(x,{name:"Secondary Circulator",values:d})})]}):(0,e.jsx)(r.az,{color:"bad",children:"Warning! Both circulators must be connected in order to operate this machine."})]})})},x=function(f){var h=f.name,v=f.values,u=v.dir,m=v.output,c=v.flowCapacity,d=v.inletPressure,p=v.inletTemperature,C=v.outletPressure,j=v.outletTemperature;return(0,e.jsx)(r.wn,{title:h+" ("+u+")",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Turbine Output",children:(0,i.d5)(m)}),(0,e.jsxs)(r.Ki.Item,{label:"Flow Capacity",children:[(0,s.LI)(c,2),"%"]}),(0,e.jsx)(r.Ki.Item,{label:"Inlet Pressure",children:(0,i.QL)(d*1e3,0,"Pa")}),(0,e.jsxs)(r.Ki.Item,{label:"Inlet Temperature",children:[(0,s.LI)(p,2)," K"]}),(0,e.jsx)(r.Ki.Item,{label:"Outlet Pressure",children:(0,i.QL)(C*1e3,0,"Pa")}),(0,e.jsxs)(r.Ki.Item,{label:"Outlet Temperature",children:[(0,s.LI)(j,2)," K"]})]})})}},62646:function(P,y,t){"use strict";t.r(y),t.d(y,{Tank:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,h=f.connected,v=f.showToggle,u=v===void 0?!0:v,m=f.maskConnected,c=f.tankPressure,d=f.releasePressure,p=f.defaultReleasePressure,C=f.minReleasePressure,j=f.maxReleasePressure;return(0,e.jsx)(r.p8,{width:400,height:320,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(n.wn,{title:"Status",buttons:!!u&&(0,e.jsx)(n.$n,{icon:h?"air-freshener":"lock-open",selected:h,disabled:!m,content:"Mask Release Valve",onClick:function(){return x("toggle")}}),children:(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Mask Connected",children:m?"Yes":"No"})})}),(0,e.jsx)(n.wn,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Pressure",children:(0,e.jsx)(n.z2,{value:c/1013,ranges:{good:[.35,1/0],average:[.15,.35],bad:[-1/0,.15]},children:f.tankPressure+" kPa"})}),(0,e.jsxs)(n.Ki.Item,{label:"Pressure Regulator",children:[(0,e.jsx)(n.$n,{icon:"fast-backward",disabled:d===C,onClick:function(){return x("pressure",{pressure:"min"})}}),(0,e.jsx)(n.Q7,{animated:!0,value:parseFloat(d),width:"65px",unit:"kPa",minValue:C,maxValue:j,onChange:function(b,O){return x("pressure",{pressure:O})}}),(0,e.jsx)(n.$n,{icon:"fast-forward",disabled:d===j,onClick:function(){return x("pressure",{pressure:"max"})}}),(0,e.jsx)(n.$n,{icon:"undo",content:"",disabled:d===p,onClick:function(){return x("pressure",{pressure:"reset"})}})]})]})})]})})}},87867:function(P,y,t){"use strict";t.r(y),t.d(y,{TankDispenser:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,h=f.plasma,v=f.oxygen;return(0,e.jsx)(r.p8,{width:275,height:103,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(n.wn,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Phoron",buttons:(0,e.jsx)(n.$n,{icon:h?"square":"square-o",content:"Dispense",disabled:!h,onClick:function(){return x("plasma")}}),children:h}),(0,e.jsx)(n.Ki.Item,{label:"Oxygen",buttons:(0,e.jsx)(n.$n,{icon:v?"square":"square-o",content:"Dispense",disabled:!v,onClick:function(){return x("oxygen")}}),children:v})]})})})})}},32481:function(P,y,t){"use strict";t.r(y),t.d(y,{TelecommsLogBrowser:function(){return a}});var e=t(88095),s=t(5229),n=t(4413),r=t(92514),i=t(68040),a=function(h){var v=(0,n.Oc)(),u=v.act,m=v.data,c=m.universal_translate,d=m.network,p=m.temp,C=m.servers,j=m.selectedServer;return(0,e.jsx)(i.p8,{width:575,height:450,children:(0,e.jsxs)(i.p8.Content,{scrollable:!0,children:[p?(0,e.jsxs)(r.IC,{danger:p.color==="bad",warning:p.color!=="bad",children:[(0,e.jsx)(r.az,{display:"inline-box",verticalAlign:"middle",children:p.text}),(0,e.jsx)(r.$n,{icon:"times-circle",float:"right",onClick:function(){return u("cleartemp")}}),(0,e.jsx)(r.az,{clear:"both"})]}):null,(0,e.jsx)(r.wn,{title:"Network Control",children:(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Current Network",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"search",content:"Refresh",onClick:function(){return u("scan")}}),(0,e.jsx)(r.$n,{color:"bad",icon:"exclamation-triangle",content:"Flush Buffer",disabled:C.length===0,onClick:function(){return u("release")}})]}),children:(0,e.jsx)(r.$n,{content:d,icon:"pen",onClick:function(){return u("network")}})})})}),j?(0,e.jsx)(x,{network:d,server:j,universal_translate:c}):(0,e.jsx)(g,{network:d,servers:C})]})})},g=function(h){var v=(0,n.Oc)(),u=v.act,m=v.data,c=h.network,d=h.servers;return!d||!d.length?(0,e.jsxs)(r.wn,{title:"Detected Telecommunications Servers",children:[(0,e.jsx)(r.az,{color:"bad",children:"No servers detected."}),(0,e.jsx)(r.$n,{fluid:!0,content:"Scan",icon:"search",onClick:function(){return u("scan")}})]}):(0,e.jsx)(r.wn,{title:"Detected Telecommunications Servers",children:(0,e.jsx)(r.Ki,{children:d.map(function(p){return(0,e.jsx)(r.Ki.Item,{label:p.name+" ("+p.id+")",children:(0,e.jsx)(r.$n,{content:"View",icon:"eye",onClick:function(){return u("view",{id:p.id})}})},p.id)})})})},x=function(h){var v=(0,n.Oc)(),u=v.act,m=v.data,c=h.network,d=h.server,p=h.universal_translate;return(0,e.jsxs)(r.wn,{title:"Server ("+d.id+")",buttons:(0,e.jsx)(r.$n,{content:"Return",icon:"undo",onClick:function(){return u("mainmenu")}}),children:[(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Total Recorded Traffic",children:d.totalTraffic>=1024?(0,s.LI)(d.totalTraffic/1024)+" Terrabytes":d.totalTraffic+" Gigabytes"})}),(0,e.jsx)(r.wn,{title:"Stored Logs",mt:"4px",children:(0,e.jsx)(r.so,{wrap:"wrap",children:!d.logs||!d.logs.length?"No Logs Detected.":d.logs.map(function(C){return(0,e.jsx)(r.so.Item,{m:"2px",basis:"49%",grow:C.id%2,children:(0,e.jsx)(r.wn,{title:p||C.parameters.uspeech||C.parameters.intelligible||C.input_type==="Execution Error"?C.input_type:"Audio File",buttons:(0,e.jsx)(r.$n.Confirm,{confirmContent:"Delete Log?",color:"bad",icon:"trash",confirmIcon:"trash",onClick:function(){return u("delete",{id:C.id})}}),children:C.input_type==="Execution Error"?(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Data type",children:"Error"}),(0,e.jsx)(r.Ki.Item,{label:"Output",children:C.parameters.message}),(0,e.jsx)(r.Ki.Item,{label:"Delete",children:(0,e.jsx)(r.$n,{icon:"trash",onClick:function(){return u("delete",{id:C.id})}})})]}):p||C.parameters.uspeech||C.parameters.intelligible?(0,e.jsx)(f,{log:C}):(0,e.jsx)(f,{error:!0})})},C.id)})})})]})},f=function(h){var v=(0,n.Oc)(),u=v.act,m=v.data,c=h.log,d=h.error,p=c&&c.parameters||{none:"none"},C=p.timecode,j=p.name,b=p.race,O=p.job,I=p.message;return d?(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Time Recieved",children:C}),(0,e.jsx)(r.Ki.Item,{label:"Source",children:"Unidentifiable"}),(0,e.jsx)(r.Ki.Item,{label:"Class",children:b}),(0,e.jsx)(r.Ki.Item,{label:"Contents",children:"Unintelligible"})]}):(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Time Recieved",children:C}),(0,e.jsxs)(r.Ki.Item,{label:"Source",children:[j," (Job: ",O,")"]}),(0,e.jsx)(r.Ki.Item,{label:"Class",children:b}),(0,e.jsx)(r.Ki.Item,{label:"Contents",className:"LabeledList__breakContents",children:I})]})}},25058:function(P,y,t){"use strict";t.r(y),t.d(y,{TelecommsMachineBrowser:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(g){var x=(0,s.Oc)(),f=x.act,h=x.data,v=h.network,u=h.temp,m=h.machinelist,c=h.selectedMachine;return(0,e.jsx)(r.p8,{width:575,height:450,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[u?(0,e.jsxs)(n.IC,{danger:u.color==="bad",warning:u.color!=="bad",children:[(0,e.jsx)(n.az,{display:"inline-box",verticalAlign:"middle",children:u.text}),(0,e.jsx)(n.$n,{icon:"times-circle",float:"right",onClick:function(){return f("cleartemp")}}),(0,e.jsx)(n.az,{clear:"both"})]}):null,(0,e.jsx)(n.wn,{title:"Network Control",children:(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Current Network",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"search",content:"Probe Network",onClick:function(){return f("scan")}}),(0,e.jsx)(n.$n,{color:"bad",icon:"exclamation-triangle",content:"Flush Buffer",disabled:m.length===0,onClick:function(){return f("release")}})]}),children:(0,e.jsx)(n.$n,{content:v,icon:"pen",onClick:function(){return f("network")}})})})}),m&&m.length?(0,e.jsx)(a,{title:c?c.name+" ("+c.id+")":"Detected Network Entities",list:c?c.links:m,showBack:c}):(0,e.jsx)(n.wn,{title:"No Devices Found",children:(0,e.jsx)(n.$n,{icon:"search",content:"Probe Network",onClick:function(){return f("scan")}})})]})})},a=function(g){var x=(0,s.Oc)(),f=x.act,h=x.data,v=g.list,u=g.title,m=g.showBack;return(0,e.jsxs)(n.wn,{title:u,buttons:m&&(0,e.jsx)(n.$n,{icon:"undo",content:"Back to Main Menu",onClick:function(){return f("mainmenu")}}),children:[(0,e.jsx)(n.az,{color:"label",children:(0,e.jsx)("u",{children:"Linked entities"})}),(0,e.jsx)(n.Ki,{children:v.length?v.map(function(c){return(0,e.jsx)(n.Ki.Item,{label:c.name+" ("+c.id+")",children:(0,e.jsx)(n.$n,{content:"View",icon:"eye",onClick:function(){return f("view",{id:c.id})}})},c.id)}):(0,e.jsx)(n.Ki.Item,{color:"bad",children:"No links detected."})})]})}},45760:function(P,y,t){"use strict";t.r(y),t.d(y,{TelecommsMultitoolMenu:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=t(82489),a=function(f){var h=(0,s.Oc)(),v=h.act,u=h.data,m=u.temp,c=u.on,d=u.id,p=u.network,C=u.autolinkers,j=u.shadowlink,b=u.options,O=u.linked,I=u.filter,_=u.multitool,M=u.multitool_buffer;return(0,e.jsx)(r.p8,{width:520,height:540,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(i.TemporaryNotice,{}),(0,e.jsx)(g,{}),(0,e.jsx)(x,{options:b})]})})},g=function(f){var h=(0,s.Oc)(),v=h.act,u=h.data,m=u.temp,c=u.on,d=u.id,p=u.network,C=u.autolinkers,j=u.shadowlink,b=u.options,O=u.linked,I=u.filter,_=u.multitool,M=u.multitool_buffer;return(0,e.jsxs)(n.wn,{title:"Status",buttons:(0,e.jsx)(n.$n,{icon:"power-off",selected:c,content:c?"On":"Off",onClick:function(){return v("toggle")}}),children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Identification String",children:(0,e.jsx)(n.$n,{icon:"pen",content:d,onClick:function(){return v("id")}})}),(0,e.jsx)(n.Ki.Item,{label:"Network",children:(0,e.jsx)(n.$n,{icon:"pen",content:p,onClick:function(){return v("network")}})}),(0,e.jsx)(n.Ki.Item,{label:"Prefabrication",children:C?"TRUE":"FALSE"}),j?(0,e.jsx)(n.Ki.Item,{label:"Shadow Link",children:"Active."}):null,_?(0,e.jsxs)(n.Ki.Item,{label:"Multitool Buffer",children:[M?(0,e.jsxs)(e.Fragment,{children:[M.name," (",M.id,")"]}):null,(0,e.jsx)(n.$n,{color:M?"green":null,content:M?"Link ("+M.id+")":"Add Machine",icon:M?"link":"plus",onClick:M?function(){return v("link")}:function(){return v("buffer")}}),M?(0,e.jsx)(n.$n,{color:"red",content:"Flush",icon:"trash",onClick:function(){return v("flush")}}):null]}):null]}),(0,e.jsx)(n.wn,{title:"Linked network Entities",mt:1,children:(0,e.jsx)(n.Ki,{children:O.map(function(D){return(0,e.jsx)(n.Ki.Item,{label:D.ref+" "+D.name+" ("+D.id+")",buttons:(0,e.jsx)(n.$n.Confirm,{color:"red",icon:"trash",onClick:function(){return v("unlink",{unlink:D.index})}})},D.ref)})})}),(0,e.jsxs)(n.wn,{title:"Filtering Frequencies",mt:1,buttons:(0,e.jsx)(n.$n,{icon:"pen",content:"Add Frequency",onClick:function(){return v("freq")}}),children:[I.map(function(D){return(0,e.jsx)(n.$n.Confirm,{content:D.name+" GHz",confirmContent:"Delete?",confirmColor:"red",confirmIcon:"trash",onClick:function(){return v("delete",{delete:D.freq})}},D.index)}),!I||I.length===0?(0,e.jsx)(n.az,{color:"label",children:"No filters."}):null]})]})},x=function(f){var h=(0,s.Oc)(),v=h.act,u=h.data,m=f.options,c=m.use_listening_level,d=m.use_broadcasting,p=m.use_receiving,C=m.listening_level,j=m.broadcasting,b=m.receiving,O=m.use_change_freq,I=m.change_freq,_=m.use_broadcast_range,M=m.use_receive_range,D=m.range,A=m.minRange,R=m.maxRange;return!c&&!d&&!p&&!O&&!_&&!M?(0,e.jsx)(n.wn,{title:"No Options Found"}):(0,e.jsx)(n.wn,{title:"Options",children:(0,e.jsxs)(n.Ki,{children:[c?(0,e.jsx)(n.Ki.Item,{label:"Signal Locked to Station",children:(0,e.jsx)(n.$n,{icon:C?"lock-closed":"lock-open",content:C?"Yes":"No",onClick:function(){return v("change_listening")}})}):null,d?(0,e.jsx)(n.Ki.Item,{label:"Broadcasting",children:(0,e.jsx)(n.$n,{icon:"power-off",selected:j,content:j?"Yes":"No",onClick:function(){return v("broadcast")}})}):null,p?(0,e.jsx)(n.Ki.Item,{label:"Receving",children:(0,e.jsx)(n.$n,{icon:"power-off",selected:b,content:b?"Yes":"No",onClick:function(){return v("receive")}})}):null,O?(0,e.jsx)(n.Ki.Item,{label:"Change Signal Frequency",children:(0,e.jsx)(n.$n,{icon:"wave-square",selected:!!I,content:I?"Yes ("+I+")":"No",onClick:function(){return v("change_freq")}})}):null,_||M?(0,e.jsx)(n.Ki.Item,{label:(_?"Broadcast":"Receive")+" Range",children:(0,e.jsx)(n.Q7,{value:D,minValue:A,maxValue:R,unit:"gigameters",stepPixelSize:4,format:function(K){return K+1},onDrag:function(K,N){return v("range",{range:N})}})}):null]})})}},2268:function(P,y,t){"use strict";t.r(y),t.d(y,{Teleporter:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,h=f.locked_name,v=f.station_connected,u=f.hub_connected,m=f.calibrated,c=f.teleporter_on;return(0,e.jsx)(r.p8,{width:300,height:200,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(n.wn,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Target",children:(0,e.jsx)(n.$n,{fluid:!0,icon:"bullseye",onClick:function(){return x("select_target")},content:h})}),(0,e.jsx)(n.Ki.Item,{label:"Calibrated",children:(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:m,color:m?"good":"bad",onClick:function(){return x("test_fire")},content:m?"Accurate":"Test Fire"})}),(0,e.jsx)(n.Ki.Item,{label:"Teleporter",children:(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:c,color:c?"good":"bad",onClick:function(){return x("toggle_on")},content:c?"Online":"OFFLINE"})}),(0,e.jsx)(n.Ki.Item,{label:"Station",children:v?"Connected":"Not Connected"}),(0,e.jsx)(n.Ki.Item,{label:"Hub",children:u?"Connected":"Not Connected"})]})})})})}},33756:function(P,y,t){"use strict";t.r(y),t.d(y,{TelesciConsole:function(){return a},TelesciConsoleContent:function(){return x}});var e=t(88095),s=t(11358),n=t(4413),r=t(92514),i=t(68040),a=function(f){var h=(0,n.Oc)(),v=h.act,u=h.data,m=u.noTelepad;return(0,e.jsx)(i.p8,{width:400,height:450,children:(0,e.jsx)(i.p8.Content,{scrollable:!0,children:m&&(0,e.jsx)(g,{})||(0,e.jsx)(x,{})})})},g=function(f){return(0,e.jsxs)(r.wn,{title:"Error",color:"bad",children:["No telepad located.",(0,e.jsx)("br",{}),"Please add telepad data."]})},x=function(f){var h=(0,n.Oc)(),v=h.act,u=h.data,m=u.insertedGps,c=u.rotation,d=u.currentZ,p=u.cooldown,C=u.crystalCount,j=u.maxCrystals,b=u.maxPossibleDistance,O=u.maxAllowedDistance,I=u.distance,_=u.tempMsg,M=u.sectorOptions,D=u.lastTeleData;return(0,e.jsxs)(r.wn,{title:"Telepad Controls",buttons:(0,e.jsx)(r.$n,{icon:"eject",disabled:!m,onClick:function(){return v("ejectGPS")},content:"Eject GPS"}),children:[(0,e.jsx)(r.IC,{info:!0,children:p&&(0,e.jsxs)(r.az,{children:["Telepad is recharging. Please wait"," ",(0,e.jsx)(r.zv,{value:p})," seconds."]})||(0,e.jsx)(r.az,{children:_})}),(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Bearing",children:(0,e.jsx)(r.Q7,{fluid:!0,value:c,format:function(A){return A+"\xB0"},step:1,minValue:-900,maxValue:900,onDrag:function(A,R){return v("setrotation",{val:R})}})}),(0,e.jsx)(r.Ki.Item,{label:"Distance",children:(0,e.jsx)(r.Q7,{fluid:!0,value:I,format:function(A){return A+"/"+O+" m"},minValue:0,maxValue:O,step:1,stepPixelSize:4,onDrag:function(A,R){return v("setdistance",{val:R})}})}),(0,e.jsx)(r.Ki.Item,{label:"Sector",children:(0,s.Ul)(function(A){return Number(A)})(M).map(function(A){return(0,e.jsx)(r.$n,{icon:"check-circle",content:A,selected:d===A,onClick:function(){return v("setz",{setz:A})}},A)})}),(0,e.jsxs)(r.Ki.Item,{label:"Controls",children:[(0,e.jsx)(r.$n,{icon:"share",iconRotation:-90,onClick:function(){return v("send")},content:"Send"}),(0,e.jsx)(r.$n,{icon:"share",iconRotation:90,onClick:function(){return v("receive")},content:"Receive"}),(0,e.jsx)(r.$n,{icon:"sync",iconRotation:90,onClick:function(){return v("recal")},content:"Recalibrate"})]})]}),D&&(0,e.jsx)(r.wn,{mt:1,children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Telepad Location",children:[D.src_x,", ",D.src_y]}),(0,e.jsxs)(r.Ki.Item,{label:"Distance",children:[D.distance,"m"]}),(0,e.jsxs)(r.Ki.Item,{label:"Transit Time",children:[D.time," secs"]})]})})||(0,e.jsx)(r.wn,{mt:1,children:"No teleport data found."}),(0,e.jsxs)(r.wn,{children:["Crystals: ",C," / ",j]})]})}},27418:function(P,y,t){"use strict";t.r(y),t.d(y,{TextInputModal:function(){return v},removeAllSkiplines:function(){return h},sanitizeMultiline:function(){return f}});var e=t(88095),s=t(72147),n=t(44583),r=t(4413),i=t(92514),a=t(68040),g=t(12035),x=t(18513),f=function(m){return m.replace(/(\n|\r\n){3,}/,"\n\n")},h=function(m){return m.replace(/[\r\n]+/,"")},v=function(m){var c=(0,r.Oc)(),d=c.act,p=c.data,C=p.large_buttons,j=p.max_length,b=p.message,O=b===void 0?"":b,I=p.multiline,_=p.placeholder,M=_===void 0?"":_,D=p.timeout,A=p.title,R=(0,n.useState)(M||""),K=R[0],N=R[1],k=function(J){if(J!==K){var H=I?f(J):h(J);N(H)}},V=I||K.length>=30,F=135+(O.length>30?Math.ceil(O.length/4):0)+(V?75:0)+(O.length&&C?5:0);return(0,e.jsxs)(a.p8,{title:A,width:325,height:F,children:[D&&(0,e.jsx)(x.Loader,{value:D}),(0,e.jsx)(a.p8.Content,{onKeyDown:function(J){J.key===s._.Enter&&(!V||!J.shiftKey)&&d("submit",{entry:K}),J.key===s._.Escape&&d("cancel")},children:(0,e.jsx)(i.wn,{fill:!0,children:(0,e.jsxs)(i.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(i.az,{color:"label",children:O})}),(0,e.jsx)(i.BJ.Item,{grow:!0,children:(0,e.jsx)(u,{input:K,onType:k},A)}),(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(g.InputButtons,{input:K,message:K.length+"/"+j})})]})})})]})},u=function(m){var c=(0,r.Oc)(),d=c.act,p=c.data,C=p.max_length,j=p.multiline,b=m.input,O=m.onType,I=j||b.length>=30;return(0,e.jsx)(i.fs,{autoFocus:!0,autoSelect:!0,height:j||b.length>=30?"100%":"1.8rem",maxLength:C,onEscape:function(){return d("cancel")},onEnter:function(_){I&&_.shiftKey||(_.preventDefault(),d("submit",{entry:b}))},onChange:function(_,M){return O(M)},onInput:function(_,M){return O(M)},placeholder:"Type something...",value:b})}},98143:function(P,y,t){"use strict";t.r(y),t.d(y,{TimeClock:function(){return g}});var e=t(88095),s=t(5229),n=t(4413),r=t(92514),i=t(68040),a=t(89863),g=function(x){var f=(0,n.Oc)(),h=f.act,v=f.data,u=v.department_hours,m=v.user_name,c=v.card,d=v.assignment,p=v.job_datum,C=v.allow_change_job,j=v.job_choices;return(0,e.jsx)(i.p8,{width:500,height:520,children:(0,e.jsxs)(i.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(r.wn,{title:"OOC",children:[(0,e.jsx)(r.IC,{children:"OOC Note: PTO acquired is account-wide and shared across all characters. Info listed below is not IC information."}),(0,e.jsx)(r.wn,{level:2,title:"Time Off Balance for "+m,children:(0,e.jsx)(r.Ki,{children:Object.keys(u).map(function(b){return(0,e.jsxs)(r.Ki.Item,{label:b,color:u[b]>6?"good":u[b]>1?"average":"bad",children:[(0,s.Mg)(u[b],1)," ",u[b]===1?"hour":"hours"]},b)})})})]}),(0,e.jsx)(r.wn,{title:"Employee Info",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Employee ID",children:(0,e.jsx)(r.$n,{fluid:!0,icon:"user",onClick:function(){return h("id")},children:c||"Insert ID"})}),!!p&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.Ki.Item,{label:"Rank",children:(0,e.jsx)(r.az,{backgroundColor:p.selection_color,p:.8,children:(0,e.jsxs)(r.so,{justify:"space-between",align:"center",children:[(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.az,{ml:1,children:(0,e.jsx)(a.RankIcon,{color:"white",rank:p.title})})}),(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.az,{fontSize:1.5,inline:!0,mr:1,children:p.title})})]})})}),(0,e.jsx)(r.Ki.Item,{label:"Departments",children:p.departments}),(0,e.jsx)(r.Ki.Item,{label:"Pay Scale",children:p.economic_modifier}),(0,e.jsx)(r.Ki.Item,{label:"PTO Elegibility",children:p.timeoff_factor>0&&(0,e.jsxs)(r.az,{children:["Earns PTO - ",p.pto_department]})||p.timeoff_factor<0&&(0,e.jsxs)(r.az,{children:["Requires PTO - ",p.pto_department]})||(0,e.jsx)(r.az,{children:"Neutral"})})]})]})}),!!(C&&p&&p.timeoff_factor!==0&&d!=="Dismissed")&&(0,e.jsx)(r.wn,{title:"Employment Actions",children:p.timeoff_factor>0&&(u[p.pto_department]>0&&(0,e.jsx)(r.$n,{fluid:!0,icon:"exclamation-triangle",onClick:function(){return h("switch-to-offduty")},children:"Go Off-Duty"})||(0,e.jsx)(r.az,{color:"bad",children:"Warning: You do not have enough accrued time off to go off-duty."}))||Object.keys(j).length&&Object.keys(j).map(function(b){var O=j[b];return O.map(function(I){return(0,e.jsx)(r.$n,{icon:"suitcase",onClick:function(){return h("switch-to-onduty-rank",{"switch-to-onduty-rank":b,"switch-to-onduty-assignment":I})},children:I},I)})})||(0,e.jsx)(r.az,{color:"bad",children:"No Open Positions - See Head Of Personnel"})})]})})}},6048:function(P,y,t){"use strict";t.r(y),t.d(y,{TraitDescription:function(){return g},TraitSelection:function(){return a},TraitTutorial:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(x){var f=(0,s.Oc)(),h=f.act,v=f.data;return(0,e.jsx)(r.p8,{width:804,height:426,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(n.wn,{title:"Guide to Custom Traits",children:(0,e.jsx)(a,{})})})})},a=function(x){var f=(0,s.Oc)(),h=f.act,v=f.data,u=v.names,m=v.selection;return(0,e.jsxs)(n.BJ,{children:[(0,e.jsx)(n.BJ.Item,{shrink:!0,children:(0,e.jsx)(n.wn,{title:"Trait Selection",children:(0,e.jsx)(n.tU,{vertical:!0,children:u.map(function(c){return(0,e.jsx)(n.tU.Tab,{selected:c===m,onClick:function(){return h("select_trait",{name:c})},children:(0,e.jsx)(n.az,{inline:!0,children:c})},c)})})})}),(0,e.jsx)(n.BJ.Item,{grow:8,children:m&&(0,e.jsx)(n.wn,{title:m,children:(0,e.jsx)(g,{name:m})})})]})},g=function(x){var f=(0,s.Oc)(),h=f.act,v=f.data,u=x.name,m=v.descriptions,c=v.categories,d=v.tutorials;return(0,e.jsxs)(n.wn,{children:[(0,e.jsx)("b",{children:"Name:"})," ",u,(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Category:"})," ",c[u],(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Description:"})," ",m[u],(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Details & How to Use:"}),(0,e.jsx)("br",{}),(0,e.jsx)("br",{}),(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:d[u]}})]})}},81267:function(P,y,t){"use strict";t.r(y),t.d(y,{TransferValve:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,h=f.tank_one,v=f.tank_two,u=f.attached_device,m=f.valve;return(0,e.jsx)(r.p8,{children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(n.wn,{children:(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Valve Status",children:(0,e.jsx)(n.$n,{icon:m?"unlock":"lock",content:m?"Open":"Closed",disabled:!h||!v,onClick:function(){return x("toggle")}})})})}),(0,e.jsx)(n.wn,{title:"Assembly",buttons:(0,e.jsx)(n.$n,{textAlign:"center",width:"150px",icon:"cog",content:"Configure Assembly",disabled:!u,onClick:function(){return x("device")}}),children:(0,e.jsx)(n.Ki,{children:u?(0,e.jsx)(n.Ki.Item,{label:"Attachment",children:(0,e.jsx)(n.$n,{icon:"eject",content:u,disabled:!u,onClick:function(){return x("remove_device")}})}):(0,e.jsx)(n.IC,{textAlign:"center",children:"Attach Assembly"})})}),(0,e.jsx)(n.wn,{title:"Attachment One",children:(0,e.jsx)(n.Ki,{children:h?(0,e.jsx)(n.Ki.Item,{label:"Attachment",children:(0,e.jsx)(n.$n,{icon:"eject",content:h,disabled:!h,onClick:function(){return x("tankone")}})}):(0,e.jsx)(n.IC,{textAlign:"center",children:"Attach Tank"})})}),(0,e.jsx)(n.wn,{title:"Attachment Two",children:(0,e.jsx)(n.Ki,{children:v?(0,e.jsx)(n.Ki.Item,{label:"Attachment",children:(0,e.jsx)(n.$n,{icon:"eject",content:v,disabled:!v,onClick:function(){return x("tanktwo")}})}):(0,e.jsx)(n.IC,{textAlign:"center",children:"Attach Tank"})})})]})})}},96734:function(P,y,t){"use strict";t.r(y),t.d(y,{TurbineControl:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(24158),i=t(68040),a=function(g){var x=(0,s.Oc)(),f=x.act,h=x.data,v=h.connected,u=h.compressor_broke,m=h.turbine_broke,c=h.broken,d=h.door_status,p=h.online,C=h.power,j=h.rpm,b=h.temp;return(0,e.jsx)(i.p8,{width:520,height:440,children:(0,e.jsxs)(i.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{title:"Turbine Controller",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Status",children:c&&(0,e.jsxs)(n.az,{color:"bad",children:["Setup is broken",(0,e.jsx)(n.$n,{icon:"sync",onClick:function(){return f("reconnect")},content:"Reconnect"})]})||(0,e.jsx)(n.az,{color:p?"good":"bad",children:p&&!u&&!m?"Online":"Offline"})}),(0,e.jsx)(n.Ki.Item,{label:"Compressor",children:u&&(0,e.jsx)(n.az,{color:"bad",children:"Compressor is inoperable."})||m&&(0,e.jsx)(n.az,{color:"bad",children:"Turbine is inoperable."})||(0,e.jsx)(n.az,{children:(0,e.jsx)(n.$n.Checkbox,{checked:p,content:"Compressor Power",onClick:function(){return f(p?"power-off":"power-on")}})})}),(0,e.jsx)(n.Ki.Item,{label:"Vent Doors",children:(0,e.jsx)(n.$n.Checkbox,{checked:d,onClick:function(){return f("doors")},content:d?"Closed":"Open"})})]})}),(0,e.jsx)(n.wn,{title:"Status",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Turbine Speed",children:[c?"--":(0,e.jsx)(n.zv,{value:j})," RPM"]}),(0,e.jsxs)(n.Ki.Item,{label:"Internal Temperature",children:[c?"--":(0,e.jsx)(n.zv,{value:b})," K"]}),(0,e.jsx)(n.Ki.Item,{label:"Generated Power",children:c?"--":(0,e.jsx)(n.zv,{format:function(O){return(0,r.d5)(O)},value:Number(C)})})]})})]})})}},44027:function(P,y,t){"use strict";t.r(y),t.d(y,{Turbolift:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,h=f.floors,v=f.doors_open,u=f.fire_mode;return(0,e.jsx)(r.p8,{width:480,height:260+u*25,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsxs)(n.wn,{title:"Floor Selection",className:u?"Section--elevator--fire":null,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:v?"door-open":"door-closed",content:v?u?"Close Doors (SAFETY OFF)":"Doors Open":"Doors Closed",selected:v&&!u,color:u?"red":null,onClick:function(){return x("toggle_doors")}}),(0,e.jsx)(n.$n,{icon:"exclamation-triangle",color:"bad",content:"Emergency Stop",onClick:function(){return x("emergency_stop")}})]}),children:[!u||(0,e.jsx)(n.wn,{className:"Section--elevator--fire",textAlign:"center",title:"FIREFIGHTER MODE ENGAGED"}),(0,e.jsx)(n.so,{wrap:"wrap",children:h.map(function(m){return(0,e.jsx)(n.so.Item,{basis:"100%",children:(0,e.jsxs)(n.so,{align:"center",justify:"space-around",children:[(0,e.jsx)(n.so.Item,{basis:"22%",textAlign:"right",mr:"3px",children:m.label||"Floor #"+m.id}),(0,e.jsx)(n.so.Item,{basis:"8%",textAlign:"left",children:(0,e.jsx)(n.$n,{icon:"circle",color:m.current?"red":m.target?"green":m.queued?"yellow":null,onClick:function(){return x("move_to_floor",{ref:m.ref})}})}),(0,e.jsx)(n.so.Item,{basis:"50%",grow:1,children:m.name})]})},m.id)})})]})})})}},7829:function(P,y,t){"use strict";t.r(y),t.d(y,{GenericUplink:function(){return m},Uplink:function(){return h}});var e=t(88095),s=t(33854),n=t(44583),r=t(4413),i=t(92514),a=t(24158),g=t(68040);function x(){return x=Object.assign||function(d){for(var p=1;p").map(function(I){return(0,e.jsx)(i.az,{children:I},I)})})]})})||O.map(function(I){return(0,e.jsx)(i.$n,{icon:"eye",fluid:!0,content:I.name,onClick:function(){return C("view_exploits",{id:I.id})}},I.id)})})},m=function(d){var p,C,j=d.currencyAmount,b=j===void 0?0:j,O=d.currencySymbol,I=O===void 0?"\u20AE":O,_=(0,r.Oc)(),M=_.act,D=_.data,A=D.compactMode,R=D.lockable,K=D.categories,N=K===void 0?[]:K,k=(0,n.useState)(""),V=k[0],F=k[1],J=(0,n.useState)((p=N[0])==null?void 0:p.name),H=J[0],Q=J[1],Z=(0,s.XZ)(V,function(z){return z.name+z.desc}),X=V.length>0&&N.flatMap(function(z){return z.items||[]}).filter(Z).filter(function(z,Y){return Y0?"good":"bad",children:[(0,a.up)(b)," ",I]}),buttons:(0,e.jsxs)(e.Fragment,{children:["Search",(0,e.jsx)(i.pd,{autoFocus:!0,value:V,onInput:function(z,Y){return F(Y)},mx:1}),(0,e.jsx)(i.$n,{icon:A?"list":"info",content:A?"Compact":"Detailed",onClick:function(){return M("compact_toggle")}}),!!R&&(0,e.jsx)(i.$n,{icon:"lock",content:"Lock",onClick:function(){return M("lock")}})]}),children:(0,e.jsxs)(i.so,{children:[V.length===0&&(0,e.jsx)(i.so.Item,{children:(0,e.jsx)(i.tU,{vertical:!0,children:N.map(function(z){var Y;return(0,e.jsxs)(i.tU.Tab,{selected:z.name===H,onClick:function(){return Q(z.name)},children:[z.name," (",((Y=z.items)==null?void 0:Y.length)||0,")"]},z.name)})})}),(0,e.jsxs)(i.so.Item,{grow:1,basis:0,children:[X.length===0&&(0,e.jsx)(i.IC,{children:V.length===0?"No items in this category.":"No results found."}),(0,e.jsx)(c,{compactMode:V.length>0||A,currencyAmount:b,currencySymbol:I,items:X})]})]})})},c=function(d){var p=d.compactMode,C=d.currencyAmount,j=d.currencySymbol,b=(0,r.Oc)().act,O=(0,n.useState)({}),I=O[0],_=O[1],M=I&&I.cost||0,D=d.items.map(function(A){var R=I&&I.name!==A.name,K=C-M=0)&&(k[F]=K[F]);return k}var h=[null,"average","bad"],v={Hold:null,Digest:"red",Absorb:"purple",Unabsorb:"purple",Drain:"orange",Selective:"orange",Shrink:"teal",Grow:"teal","Size Steal":"teal",Heal:"green","Encase In Egg":"blue"},u={Hold:"being held.",Digest:"being digested.",Absorb:"being absorbed.",Unabsorb:"being unabsorbed.",Drain:"being drained.",Selective:"being processed.",Shrink:"being shrunken.",Grow:"being grown.","Size Steal":"having your size stolen.",Heal:"being healed.","Encase In Egg":"being encased in an egg."},m=function(K){var N=(0,i.Oc)(),k=N.act,V=N.data,F=(0,r.useState)(0),J=F[0],H=F[1],Q=[];return Q[0]=(0,e.jsx)(d,{}),Q[1]=(0,e.jsx)(A,{}),(0,e.jsx)(g.p8,{width:890,height:660,theme:"abstract",children:(0,e.jsxs)(g.p8.Content,{scrollable:!0,children:[V.unsaved_changes&&(0,e.jsx)(a.IC,{danger:!0,children:(0,e.jsxs)(a.so,{children:[(0,e.jsx)(a.so.Item,{basis:"90%",children:"Warning: Unsaved Changes!"}),(0,e.jsx)(a.so.Item,{children:(0,e.jsx)(a.$n,{content:"Save Prefs",icon:"save",onClick:function(){return k("saveprefs")}})}),(0,e.jsx)(a.so.Item,{children:(0,e.jsx)(a.$n,{content:"Save Prefs & Export Selected Belly",icon:"download",onClick:function(){k("saveprefs"),k("exportpanel")}})})]})})||null,(0,e.jsx)(c,{}),(0,e.jsxs)(a.tU,{children:[(0,e.jsxs)(a.tU.Tab,{selected:J===0,onClick:function(){return H(0)},children:["Bellies",(0,e.jsx)(a.In,{name:"list",ml:.5})]}),(0,e.jsxs)(a.tU.Tab,{selected:J===1,onClick:function(){return H(1)},children:["Preferences",(0,e.jsx)(a.In,{name:"user-cog",ml:.5})]})]}),Q[J]||"Error"]})})},c=function(K){var N=(0,i.Oc)(),k=N.act,V=N.data,F=V.inside,J=F.absorbed,H=F.belly_name,Q=F.belly_mode,Z=F.desc,X=F.pred,z=F.contents,Y=F.ref;return H?(0,e.jsxs)(a.wn,{title:"Inside",children:[(0,e.jsxs)(a.az,{color:"green",inline:!0,children:["You are currently ",J?"absorbed into":"inside"]}),"\xA0",(0,e.jsxs)(a.az,{color:"yellow",inline:!0,children:[X,"'s"]}),"\xA0",(0,e.jsx)(a.az,{color:"red",inline:!0,children:H}),"\xA0",(0,e.jsx)(a.az,{color:"yellow",inline:!0,children:"and you are"}),"\xA0",(0,e.jsx)(a.az,{color:v[Q],inline:!0,children:u[Q]}),"\xA0",(0,e.jsx)(a.az,{color:"label",children:Z}),z.length&&(0,e.jsx)(a.Nt,{title:"Belly Contents",children:(0,e.jsx)(D,{contents:z,belly:Y})})||"There is nothing else around you."]}):(0,e.jsx)(a.wn,{title:"Inside",children:"You aren't inside anyone."})},d=function(K){var N=(0,i.Oc)(),k=N.act,V=N.data,F=V.our_bellies,J=V.selected;return(0,e.jsxs)(a.so,{children:[(0,e.jsx)(a.so.Item,{shrink:!0,children:(0,e.jsx)(a.wn,{title:"My Bellies",scollable:!0,children:(0,e.jsxs)(a.tU,{vertical:!0,children:[(0,e.jsxs)(a.tU.Tab,{onClick:function(){return k("newbelly")},children:["New",(0,e.jsx)(a.In,{name:"plus",ml:.5})]}),(0,e.jsxs)(a.tU.Tab,{onClick:function(){return k("exportpanel")},children:["Export",(0,e.jsx)(a.In,{name:"file-export",ml:.5})]}),(0,e.jsx)(a.cG,{}),F.map(function(H){return(0,e.jsx)(a.tU.Tab,{selected:H.selected,textColor:v[H.digest_mode],onClick:function(){return k("bellypick",{bellypick:H.ref})},children:(0,e.jsxs)(a.az,{inline:!0,textColor:H.selected&&v[H.digest_mode]||null,children:[H.name," (",H.contents,")"]})},H.name)})]})})}),(0,e.jsx)(a.so.Item,{grow:!0,children:J&&(0,e.jsx)(a.wn,{title:J.belly_name,children:(0,e.jsx)(p,{belly:J})})})]})},p=function(K){var N=(0,i.Oc)().act,k=K.belly,V=k.contents,F=(0,r.useState)(0),J=F[0],H=F[1],Q=[];return Q[0]=(0,e.jsx)(C,{belly:k}),Q[1]=(0,e.jsx)(j,{belly:k}),Q[2]=(0,e.jsx)(b,{belly:k}),Q[3]=(0,e.jsx)(I,{belly:k}),Q[4]=(0,e.jsx)(_,{belly:k}),Q[5]=(0,e.jsx)(M,{belly:k}),Q[6]=(0,e.jsx)(D,{outside:!0,contents:V}),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(a.tU,{children:[(0,e.jsx)(a.tU.Tab,{selected:J===0,onClick:function(){return H(0)},children:"Controls"}),(0,e.jsx)(a.tU.Tab,{selected:J===1,onClick:function(){return H(1)},children:"Descriptions"}),(0,e.jsx)(a.tU.Tab,{selected:J===2,onClick:function(){return H(2)},children:"Options"}),(0,e.jsx)(a.tU.Tab,{selected:J===3,onClick:function(){return H(3)},children:"Sounds"}),(0,e.jsx)(a.tU.Tab,{selected:J===4,onClick:function(){return H(4)},children:"Visuals"}),(0,e.jsx)(a.tU.Tab,{selected:J===5,onClick:function(){return H(5)},children:"Interactions"}),(0,e.jsxs)(a.tU.Tab,{selected:J===6,onClick:function(){return H(6)},children:["Contents (",V.length,")"]})]}),Q[J]||"Error"]})},C=function(K){var N=(0,i.Oc)().act,k=K.belly,V=k.belly_name,F=k.mode,J=k.item_mode,H=k.addons;return(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"Name",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.$n,{icon:"arrow-up",tooltipPosition:"left",tooltip:"Move this belly tab up.",onClick:function(){return N("move_belly",{dir:-1})}}),(0,e.jsx)(a.$n,{icon:"arrow-down",tooltipPosition:"left",tooltip:"Move this belly tab down.",onClick:function(){return N("move_belly",{dir:1})}})]}),children:(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_name"})},content:V})}),(0,e.jsx)(a.Ki.Item,{label:"Mode",children:(0,e.jsx)(a.$n,{color:v[F],onClick:function(){return N("set_attribute",{attribute:"b_mode"})},content:F})}),(0,e.jsxs)(a.Ki.Item,{label:"Mode Addons",children:[H.length&&H.join(", ")||"None",(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_addons"})},ml:1,icon:"plus"})]}),(0,e.jsx)(a.Ki.Item,{label:"Item Mode",children:(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_item_mode"})},content:J})}),(0,e.jsx)(a.Ki.Item,{basis:"100%",mt:1,children:(0,e.jsx)(a.$n.Confirm,{fluid:!0,icon:"exclamation-triangle",confirmIcon:"trash",color:"red",content:"Delete Belly",confirmContent:"This is irreversable!",onClick:function(){return N("set_attribute",{attribute:"b_del"})}})})]})},j=function(K){var N=(0,i.Oc)().act,k=K.belly,V=k.verb,F=k.release_verb,J=k.desc,H=k.absorbed_desc;return(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"Description",buttons:(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_desc"})},icon:"pen"}),children:J}),(0,e.jsx)(a.Ki.Item,{label:"Description (Absorbed)",buttons:(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_absorbed_desc"})},icon:"pen"}),children:H}),(0,e.jsx)(a.Ki.Item,{label:"Vore Verb",children:(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_verb"})},content:V})}),(0,e.jsx)(a.Ki.Item,{label:"Release Verb",children:(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_release_verb"})},content:F})}),(0,e.jsxs)(a.Ki.Item,{label:"Examine Messages",children:[(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"em"})},content:"Examine Message (when full)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"ema"})},content:"Examine Message (with absorbed victims)"})]}),(0,e.jsxs)(a.Ki.Item,{label:"Struggle Messages",children:[(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"smo"})},content:"Struggle Message (outside)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"smi"})},content:"Struggle Message (inside)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"asmo"})},content:"Absorbed Struggle Message (outside)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"asmi"})},content:"Absorbed Struggle Message (inside)"})]}),(0,e.jsxs)(a.Ki.Item,{label:"Escape Messages",children:[(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"escap"})},content:"Escape Attempt Message (to prey)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"escao"})},content:"Escape Attempt Message (to you)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"escp"})},content:"Escape Message (to prey)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"esco"})},content:"Escape Message (to you)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"escout"})},content:"Escape Message (outside)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"escip"})},content:"Escape Item Message (to prey)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"escio"})},content:"Escape Item Message (to you)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"esciout"})},content:"Escape Item Message (outside)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"escfp"})},content:"Escape Fail Message (to prey)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"escfo"})},content:"Escape Fail Message (to you)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"aescap"})},content:"Absorbed Escape Attempt Message (to prey)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"aescao"})},content:"Absorbed Escape Attempt Message (to you)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"aescp"})},content:"Absorbed Escape Message (to prey)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"aesco"})},content:"Absorbed Escape Message (to you)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"aescout"})},content:"Absorbed Escape Message (outside)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"aescfp"})},content:"Absorbed Escape Fail Message (to prey)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"aescfo"})},content:"Absorbed Escape Fail Message (to you)"})]}),(0,e.jsxs)(a.Ki.Item,{label:"Transfer Messages",children:[(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"trnspp"})},content:"Primary Transfer Message (to prey)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"trnspo"})},content:"Primary Transfer Message (to you)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"trnssp"})},content:"Secondary Transfer Message (to prey)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"trnsso"})},content:"Secondary Transfer Message (to you)"})]}),(0,e.jsxs)(a.Ki.Item,{label:"Interaction Chance Messages",children:[(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"stmodp"})},content:"Interaction Chance Digest Message (to prey)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"stmodo"})},content:"Interaction Chance Digest Message (to you)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"stmoap"})},content:"Interaction Chance Absorb Message (to prey)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"stmoao"})},content:"Interaction Chance Absorb Message (to you)"})]}),(0,e.jsxs)(a.Ki.Item,{label:"Bellymode Messages",children:[(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"dmp"})},content:"Digest Message (to prey)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"dmo"})},content:"Digest Message (to you)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"amp"})},content:"Absorb Message (to prey)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"amo"})},content:"Absorb Message (to you)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"uamp"})},content:"Unabsorb Message (to prey)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"uamo"})},content:"Unabsorb Message (to you)"})]}),(0,e.jsxs)(a.Ki.Item,{label:"Idle Messages",children:[(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"im_hold"})},content:"Idle Messages (Hold)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"im_holdabsorbed"})},content:"Idle Messages (Hold Absorbed)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"im_digest"})},content:"Idle Messages (Digest)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"im_absorb"})},content:"Idle Messages (Absorb)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"im_unabsorb"})},content:"Idle Messages (Unabsorb)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"im_drain"})},content:"Idle Messages (Drain)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"im_heal"})},content:"Idle Messages (Heal)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"im_steal"})},content:"Idle Messages (Size Steal)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"im_shrink"})},content:"Idle Messages (Shrink)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"im_grow"})},content:"Idle Messages (Grow)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"im_egg"})},content:"Idle Messages (Encase In Egg)"})]}),(0,e.jsx)(a.Ki.Item,{label:"Reset Messages",children:(0,e.jsx)(a.$n,{color:"red",onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"reset"})},content:"Reset Messages"})})]})},b=function(K){var N=(0,i.Oc)(),k=N.act,V=N.data,F=V.host_mobtype,J=F.is_cyborg,H=F.is_vore_simple_mob,Q=K.belly,Z=Q.can_taste,X=Q.nutrition_percent,z=Q.digest_brute,Y=Q.digest_burn,ee=Q.digest_oxy,oe=Q.digest_tox,ne=Q.digest_clone,ue=Q.bulge_size,ce=Q.display_absorbed_examine,me=Q.shrink_grow_size,xe=Q.emote_time,ve=Q.emote_active,be=Q.contaminates,we=Q.contaminate_flavor,Je=Q.contaminate_color,ze=Q.egg_type,Le=Q.selective_preference,Be=Q.save_digest_mode,dt=Q.eating_privacy_local,xt=Q.silicon_belly_overlay_preference,lt=Q.belly_mob_mult,rt=Q.belly_item_mult,Re=Q.belly_overall_mult,Ke=Q.drainmode;return(0,e.jsxs)(a.so,{wrap:"wrap",children:[(0,e.jsxs)(a.so.Item,{basis:"49%",grow:1,children:[(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"Can Taste",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_tastes"})},icon:Z?"toggle-on":"toggle-off",selected:Z,content:Z?"Yes":"No"})}),(0,e.jsx)(a.Ki.Item,{label:"Contaminates",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_contaminate"})},icon:be?"toggle-on":"toggle-off",selected:be,content:be?"Yes":"No"})}),be&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.Ki.Item,{label:"Contamination Flavor",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_contamination_flavor"})},icon:"pen",content:we})}),(0,e.jsx)(a.Ki.Item,{label:"Contamination Color",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_contamination_color"})},icon:"pen",content:(0,n.ZH)(Je)})})]})||null,(0,e.jsx)(a.Ki.Item,{label:"Nutritional Gain",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_nutritionpercent"})},content:X+"%"})}),(0,e.jsx)(a.Ki.Item,{label:"Required Examine Size",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_bulge_size"})},content:ue*100+"%"})}),(0,e.jsx)(a.Ki.Item,{label:"Display Absorbed Examines",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_display_absorbed_examine"})},icon:ce?"toggle-on":"toggle-off",selected:ce,content:ce?"True":"False"})}),(0,e.jsx)(a.Ki.Item,{label:"Toggle Vore Privacy",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_eating_privacy"})},content:(0,n.ZH)(dt)})}),(0,e.jsx)(a.Ki.Item,{label:"Save Digest Mode",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_save_digest_mode"})},icon:Be?"toggle-on":"toggle-off",selected:Be,content:Be?"True":"False"})})]}),(0,e.jsx)(O,{belly:Q})]}),(0,e.jsx)(a.so.Item,{basis:"49%",grow:1,children:(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"Idle Emotes",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_emoteactive"})},icon:ve?"toggle-on":"toggle-off",selected:ve,content:ve?"Active":"Inactive"})}),(0,e.jsx)(a.Ki.Item,{label:"Idle Emote Delay",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_emotetime"})},content:xe+" seconds"})}),(0,e.jsx)(a.Ki.Item,{label:"Digest Brute Damage",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_brute_dmg"})},content:z})}),(0,e.jsx)(a.Ki.Item,{label:"Digest Burn Damage",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_burn_dmg"})},content:Y})}),(0,e.jsx)(a.Ki.Item,{label:"Digest Suffocation Damage",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_oxy_dmg"})},content:ee})}),(0,e.jsx)(a.Ki.Item,{label:"Digest Toxins Damage",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_tox_dmg"})},content:oe})}),(0,e.jsx)(a.Ki.Item,{label:"Digest Clone Damage",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_clone_dmg"})},content:ne})}),(0,e.jsx)(a.Ki.Item,{label:"Drain Finishing Mode",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_drainmode"})},content:Ke})}),(0,e.jsx)(a.Ki.Item,{label:"Shrink/Grow Size",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_grow_shrink"})},content:me*100+"%"})}),(0,e.jsx)(a.Ki.Item,{label:"Egg Type",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_egg_type"})},icon:"pen",content:(0,n.ZH)(ze)})}),(0,e.jsx)(a.Ki.Item,{label:"Selective Mode Preference",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_selective_mode_pref_toggle"})},content:(0,n.ZH)(Le)})})]})})]})},O=function(K){var N=(0,i.Oc)(),k=N.act,V=N.data,F=V.host_mobtype,J=F.is_cyborg,H=F.is_vore_simple_mob,Q=K.belly,Z=Q.silicon_belly_overlay_preference,X=Q.belly_mob_mult,z=Q.belly_item_mult,Y=Q.belly_overall_mult;return J?(0,e.jsx)(a.wn,{title:"Cyborg Controls",width:"80%",children:(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"Toggle Belly Overlay Mode",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_silicon_belly"})},content:(0,n.ZH)(Z)})}),(0,e.jsx)(a.Ki.Item,{label:"Mob Vorebelly Size Mult",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_belly_mob_mult"})},content:X})}),(0,e.jsx)(a.Ki.Item,{label:"Item Vorebelly Size Mult",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_belly_item_mult"})},content:z})}),(0,e.jsx)(a.Ki.Item,{label:"Belly Size Multiplier",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_belly_overall_mult"})},content:Y})})]})}):H?(0,e.jsx)(a.Ki,{children:(0,e.jsx)(a.Ki.Item,{})}):(0,e.jsx)(a.Ki,{children:(0,e.jsx)(a.Ki.Item,{})})},I=function(K){var N=(0,i.Oc)().act,k=K.belly,V=k.is_wet,F=k.wet_loop,J=k.fancy,H=k.sound,Q=k.release_sound;return(0,e.jsx)(a.so,{wrap:"wrap",children:(0,e.jsx)(a.so.Item,{basis:"49%",grow:1,children:(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"Fleshy Belly",children:(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_wetness"})},icon:V?"toggle-on":"toggle-off",selected:V,content:V?"Yes":"No"})}),(0,e.jsx)(a.Ki.Item,{label:"Internal Loop",children:(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_wetloop"})},icon:F?"toggle-on":"toggle-off",selected:F,content:F?"Yes":"No"})}),(0,e.jsx)(a.Ki.Item,{label:"Use Fancy Sounds",children:(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_fancy_sound"})},icon:J?"toggle-on":"toggle-off",selected:J,content:J?"Yes":"No"})}),(0,e.jsxs)(a.Ki.Item,{label:"Vore Sound",children:[(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_sound"})},content:H}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_soundtest"})},icon:"volume-up"})]}),(0,e.jsxs)(a.Ki.Item,{label:"Release Sound",children:[(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_release"})},content:Q}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_releasesoundtest"})},icon:"volume-up"})]})]})})})},_=function(K){var N=(0,i.Oc)().act,k=K.belly,V=k.belly_fullscreen,F=k.possible_fullscreens,J=k.disable_hud,H=k.belly_fullscreen_color,Q=k.belly_fullscreen_color_secondary,Z=k.belly_fullscreen_color_trinary,X=k.mapRef,z=k.colorization_enabled;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.wn,{title:"Belly Fullscreens Preview and Coloring",children:(0,e.jsxs)(a.so,{direction:"row",children:[(0,e.jsx)(a.az,{backgroundColor:H,width:"20px",height:"20px"}),(0,e.jsx)(a.$n,{icon:"eye-dropper",onClick:function(){return N("set_attribute",{attribute:"b_fullscreen_color",val:null})},children:"Select Primary Color"}),(0,e.jsx)(a.az,{backgroundColor:Q,width:"20px",height:"20px"}),(0,e.jsx)(a.$n,{icon:"eye-dropper",onClick:function(){return N("set_attribute",{attribute:"b_fullscreen_color_secondary",val:null})},children:"Select Secondary Color"}),(0,e.jsx)(a.az,{backgroundColor:Z,width:"20px",height:"20px"}),(0,e.jsx)(a.$n,{icon:"eye-dropper",onClick:function(){return N("set_attribute",{attribute:"b_fullscreen_color_trinary",val:null})},children:"Select Trinary Color"}),(0,e.jsx)(a.Ki.Item,{label:"Enable Coloration",children:(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_colorization_enabled"})},icon:z?"toggle-on":"toggle-off",selected:z,content:z?"Yes":"No"})}),(0,e.jsx)(a.Ki.Item,{label:"Preview Belly",children:(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_preview_belly"})},content:"Preview"})}),(0,e.jsx)(a.Ki.Item,{label:"Clear Preview",children:(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_clear_preview"})},content:"Clear"})})]})}),(0,e.jsxs)(a.wn,{children:[(0,e.jsx)(a.wn,{title:"Vore FX",children:(0,e.jsx)(a.Ki,{children:(0,e.jsx)(a.Ki.Item,{label:"Disable Prey HUD",children:(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_disable_hud"})},icon:J?"toggle-on":"toggle-off",selected:J,content:J?"Yes":"No"})})})}),(0,e.jsxs)(a.wn,{title:"Belly Fullscreens Styles",width:"800px",children:["Belly styles:",(0,e.jsx)(a.$n,{fluid:!0,selected:V===""||V===null,onClick:function(){return N("set_attribute",{attribute:"b_fullscreen",val:null})},children:"Disabled"}),Object.keys(F).map(function(Y,ee){return(0,e.jsx)("span",{style:{width:"256px"},children:(0,e.jsx)(a.$n,{width:"256px",height:"256px",selected:Y===V,onClick:function(){return N("set_attribute",{attribute:"b_fullscreen",val:Y})},children:(0,e.jsx)(a.az,{className:(0,s.Ly)(["vore240x240",Y]),style:{transform:"translate(0%, 4%)"}})},Y)},ee)})]})]})]})},M=function(K){var N=(0,i.Oc)().act,k=K.belly,V=k.escapable,F=k.interacts;return(0,e.jsx)(a.wn,{title:"Belly Interactions",buttons:(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_escapable"})},icon:V?"toggle-on":"toggle-off",selected:V,content:V?"Interactions On":"Interactions Off"}),children:V?(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"Escape Chance",children:(0,e.jsx)(a.$n,{content:F.escapechance+"%",onClick:function(){return N("set_attribute",{attribute:"b_escapechance"})}})}),(0,e.jsx)(a.Ki.Item,{label:"Absorbed Escape Chance",children:(0,e.jsx)(a.$n,{content:F.escapechance_absorbed+"%",onClick:function(){return N("set_attribute",{attribute:"b_escapechance_absorbed"})}})}),(0,e.jsx)(a.Ki.Item,{label:"Escape Time",children:(0,e.jsx)(a.$n,{content:F.escapetime/10+"s",onClick:function(){return N("set_attribute",{attribute:"b_escapetime"})}})}),(0,e.jsx)(a.Ki.Divider,{}),(0,e.jsx)(a.Ki.Item,{label:"Transfer Chance",children:(0,e.jsx)(a.$n,{content:F.transferchance+"%",onClick:function(){return N("set_attribute",{attribute:"b_transferchance"})}})}),(0,e.jsx)(a.Ki.Item,{label:"Transfer Location",children:(0,e.jsx)(a.$n,{content:F.transferlocation?F.transferlocation:"Disabled",onClick:function(){return N("set_attribute",{attribute:"b_transferlocation"})}})}),(0,e.jsx)(a.Ki.Divider,{}),(0,e.jsx)(a.Ki.Item,{label:"Secondary Transfer Chance",children:(0,e.jsx)(a.$n,{content:F.transferchance_secondary+"%",onClick:function(){return N("set_attribute",{attribute:"b_transferchance_secondary"})}})}),(0,e.jsx)(a.Ki.Item,{label:"Secondary Transfer Location",children:(0,e.jsx)(a.$n,{content:F.transferlocation_secondary?F.transferlocation_secondary:"Disabled",onClick:function(){return N("set_attribute",{attribute:"b_transferlocation_secondary"})}})}),(0,e.jsx)(a.Ki.Divider,{}),(0,e.jsx)(a.Ki.Item,{label:"Absorb Chance",children:(0,e.jsx)(a.$n,{content:F.absorbchance+"%",onClick:function(){return N("set_attribute",{attribute:"b_absorbchance"})}})}),(0,e.jsx)(a.Ki.Item,{label:"Digest Chance",children:(0,e.jsx)(a.$n,{content:F.digestchance+"%",onClick:function(){return N("set_attribute",{attribute:"b_digestchance"})}})})]}):"These options only display while interactions are turned on."})},D=function(K){var N=(0,i.Oc)(),k=N.act,V=N.data,F=V.show_pictures,J=K.contents,H=K.belly,Q=K.outside,Z=Q===void 0?!1:Q;return(0,e.jsxs)(e.Fragment,{children:[Z&&(0,e.jsx)(a.$n,{textAlign:"center",fluid:!0,mb:1,onClick:function(){return k("pick_from_outside",{pickall:!0})},children:"All"})||null,F&&(0,e.jsx)(a.so,{wrap:"wrap",justify:"center",align:"center",children:J.map(function(X){return(0,e.jsxs)(a.so.Item,{basis:"33%",children:[(0,e.jsx)(a.$n,{width:"64px",color:X.absorbed?"purple":h[X.stat],style:{"vertical-align":"middle","margin-right":"5px","border-radius":"20px"},onClick:function(){return k(X.outside?"pick_from_outside":"pick_from_inside",{pick:X.ref,belly:H})},children:(0,e.jsx)("img",{src:"data:image/jpeg;base64, "+X.icon,width:"64px",height:"64px",style:{"-ms-interpolation-mode":"nearest-neighbor","margin-left":"-5px"}})}),X.name]},X.name)})})||(0,e.jsx)(a.Ki,{children:J.map(function(X){return(0,e.jsx)(a.Ki.Item,{label:X.name,children:(0,e.jsx)(a.$n,{fluid:!0,mt:-1,mb:-1,color:X.absorbed?"purple":h[X.stat],onClick:function(){return k(X.outside?"pick_from_outside":"pick_from_inside",{pick:X.ref,belly:H})},children:"Interact"})},X.ref)})})]})},A=function(K){var N=(0,i.Oc)(),k=N.act,V=N.data,F=V.prefs,J=F.digestable,H=F.devourable,Q=F.resizable,Z=F.feeding,X=F.absorbable,z=F.digest_leave_remains,Y=F.allowmobvore,ee=F.permit_healbelly,oe=F.show_vore_fx,ne=F.can_be_drop_prey,ue=F.can_be_drop_pred,ce=F.allow_inbelly_spawning,me=F.allow_spontaneous_tf,xe=F.step_mechanics_active,ve=F.pickup_mechanics_active,be=F.noisy,we=F.drop_vore,Je=F.stumble_vore,ze=F.slip_vore,Le=F.throw_vore,Be=F.food_vore,dt=F.nutrition_message_visible,xt=F.weight_message_visible,lt=F.eating_privacy_global,rt=V.show_pictures,Re={digestion:{action:"toggle_digest",test:J,tooltip:{main:"This button is for those who don't like being digested. It can make you undigestable.",enable:"Click here to allow digestion.",disable:"Click here to prevent digestion."},content:{enabled:"Digestion Allowed",disabled:"No Digestion"}},absorbable:{action:"toggle_absorbable",test:X,tooltip:{main:"This button allows preds to know whether you prefer or don't prefer to be absorbed.",enable:"Click here to allow being absorbed.",disable:"Click here to disallow being absorbed."},content:{enabled:"Absorption Allowed",disabled:"No Absorption"}},devour:{action:"toggle_devour",test:H,tooltip:{main:"This button is to toggle your ability to be devoured by others.",enable:"Click here to allow being devoured.",disable:"Click here to prevent being devoured."},content:{enabled:"Devouring Allowed",disabled:"No Devouring"}},mobvore:{action:"toggle_mobvore",test:Y,tooltip:{main:"This button is for those who don't like being eaten by mobs.",enable:"Click here to allow being eaten by mobs.",disable:"Click here to prevent being eaten by mobs."},content:{enabled:"Mobs eating you allowed",disabled:"No Mobs eating you"}},feed:{action:"toggle_feed",test:Z,tooltip:{main:"This button is to toggle your ability to be fed to or by others vorishly.",enable:"Click here to allow being fed to/by other people.",disable:"Click here to prevent being fed to/by other people."},content:{enabled:"Feeding Allowed",disabled:"No Feeding"}},healbelly:{action:"toggle_healbelly",test:ee,tooltip:{main:"This button is for those who don't like healbelly used on them as a mechanic. It does not affect anything, but is displayed under mechanical prefs for ease of quick checks.",enable:"Click here to allow being heal-bellied.",disable:"Click here to prevent being heal-bellied."},content:{enabled:"Heal-bellies Allowed",disabled:"No Heal-bellies"}},dropnom_prey:{action:"toggle_dropnom_prey",test:ne,tooltip:{main:"This toggle is for spontaneous, environment related vore as prey, including drop-noms, teleporters, etc.",enable:"Click here to allow being spontaneous prey.",disable:"Click here to prevent being spontaneous prey."},content:{enabled:"Spontaneous Prey Enabled",disabled:"Spontaneous Prey Disabled"}},dropnom_pred:{action:"toggle_dropnom_pred",test:ue,tooltip:{main:"This toggle is for spontaneous, environment related vore as a predator, including drop-noms, teleporters, etc.",enable:"Click here to allow being spontaneous pred.",disable:"Click here to prevent being spontaneous pred."},content:{enabled:"Spontaneous Pred Enabled",disabled:"Spontaneous Pred Disabled"}},toggle_drop_vore:{action:"toggle_drop_vore",test:we,tooltip:{main:"Allows for dropnom spontaneous vore to occur. Note, you still need spontaneous vore pred and/or prey enabled.",enable:"Click here to allow for dropnoms.",disable:"Click here to disable dropnoms."},content:{enabled:"Drop Noms Enabled",disabled:"Drop Noms Disabled"}},toggle_slip_vore:{action:"toggle_slip_vore",test:ze,tooltip:{main:"Allows for slip related spontaneous vore to occur. Note, you still need spontaneous vore pred and/or prey enabled.",enable:"Click here to allow for slip vore.",disable:"Click here to disable slip vore."},content:{enabled:"Slip Vore Enabled",disabled:"Slip Vore Disabled"}},toggle_stumble_vore:{action:"toggle_stumble_vore",test:Je,tooltip:{main:"Allows for stumble related spontaneous vore to occur. Note, you still need spontaneous vore pred and/or prey enabled.",enable:"Click here to allow for stumble vore.",disable:"Click here to disable stumble vore."},content:{enabled:"Stumble Vore Enabled",disabled:"Stumble Vore Disabled"}},toggle_throw_vore:{action:"toggle_throw_vore",test:Le,tooltip:{main:"Allows for throw related spontaneous vore to occur. Note, you still need spontaneous vore pred and/or prey enabled.",enable:"Click here to allow for throw vore.",disable:"Click here to disable throw vore."},content:{enabled:"Throw Vore Enabled",disabled:"Throw Vore Disabled"}},toggle_food_vore:{action:"toggle_food_vore",test:Be,tooltip:{main:"Allows for food related spontaneous vore to occur. Note, you still need spontaneous vore pred and/or prey enabled.",enable:"Click here to allow for food vore.",disable:"Click here to disable food vore."},content:{enabled:"Food Vore Enabled",disabled:"Food Vore Disabled"}},inbelly_spawning:{action:"toggle_allow_inbelly_spawning",test:ce,tooltip:{main:"This toggle is ghosts being able to spawn in one of your bellies. You will have to confirm again when they attempt to.",enable:"Click here to allow prey to spawn in you.",disable:"Click here to prevent prey from spawning in you."},content:{enabled:"Inbelly Spawning Allowed",disabled:"Inbelly Spawning Forbidden"}},noisy:{action:"toggle_noisy",test:be,tooltip:{main:"Toggle audible hunger noises.",enable:"Click here to turn on hunger noises.",disable:"Click here to turn off hunger noises."},content:{enabled:"Hunger Noises Enabled",disabled:"Hunger Noises Disabled"}},resize:{action:"toggle_resize",test:Q,tooltip:{main:"This button is to toggle your ability to be resized by others.",enable:"Click here to allow being resized.",disable:"Click here to prevent being resized."},content:{enabled:"Resizing Allowed",disabled:"No Resizing"}},steppref:{action:"toggle_steppref",test:xe,tooltip:{main:"",enable:"You will not participate in step mechanics. Click to enable step mechanics.",disable:"This setting controls whether or not you participate in size-based step mechanics. Includes both stepping on others, as well as getting stepped on. Click to disable step mechanics."},content:{enabled:"Step Mechanics Enabled",disabled:"Step Mechanics Disabled"}},vore_fx:{action:"toggle_fx",test:oe,tooltip:{main:"",enable:"Regardless of Predator Setting, you will not see their FX settings. Click this to enable showing FX.",disable:"This setting controls whether or not a pred is allowed to mess with your HUD and fullscreen overlays. Click to disable all FX."},content:{enabled:"Show Vore FX",disabled:"Do Not Show Vore FX"}},remains:{action:"toggle_leaveremains",test:z,tooltip:{main:"",enable:"Regardless of Predator Setting, you will not leave remains behind. Click this to allow leaving remains.",disable:"Your Predator must have this setting enabled in their belly modes to allow remains to show up, if they do not, they will not leave your remains behind, even with this on. Click to disable remains."},content:{enabled:"Allow Leaving Remains",disabled:"Do Not Allow Leaving Remains"}},pickuppref:{action:"toggle_pickuppref",test:ve,tooltip:{main:"",enable:"You will not participate in pick-up mechanics. Click this to allow picking up/being picked up.",disable:"Allows macros to pick you up into their hands, and you to pick up micros. Click to disable pick-up mechanics."},content:{enabled:"Pick-up Mechanics Enabled",disabled:"Pick-up Mechanics Disabled"}},spontaneous_tf:{action:"toggle_allow_spontaneous_tf",test:me,tooltip:{main:"This toggle is for spontaneous or environment related transformation as a victim, such as via chemicals.",enable:"Click here to allow being spontaneously transformed.",disable:"Click here to disable being spontaneously transformed."},content:{enabled:"Spontaneous TF Enabled",disabled:"Spontaneous TF Disabled"}},examine_nutrition:{action:"toggle_nutrition_ex",test:dt,tooltip:{main:"",enable:"Click here to enable nutrition messages.",disable:"Click here to disable nutrition messages."},content:{enabled:"Examine Nutrition Messages Active",disabled:"Examine Nutrition Messages Inactive"}},examine_weight:{action:"toggle_weight_ex",test:xt,tooltip:{main:"",enable:"Click here to enable weight messages.",disable:"Click here to disable weight messages."},content:{enabled:"Examine Weight Messages Active",disabled:"Examine Weight Messages Inactive"}},eating_privacy_global:{action:"toggle_global_privacy",test:lt,tooltip:{main:"Sets default belly behaviour for vorebellies for announcing ingesting or expelling prey Overwritten by belly-specific preferences if set.",enable:" Click here to turn your messages subtle",disable:" Click here to turn your messages loud"},content:{enabled:"Global Vore Privacy: Subtle",disabled:"Global Vore Privacy: Loud"}}};return(0,e.jsxs)(a.wn,{title:"Mechanical Preferences",buttons:(0,e.jsxs)(a.$n,{icon:"eye",selected:rt,onClick:function(){return k("show_pictures")},children:["Contents Preference: ",rt?"Show Pictures":"Show List"]}),children:[(0,e.jsxs)(a.so,{spacing:1,wrap:"wrap",justify:"center",children:[(0,e.jsx)(a.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:Re.digestion})}),(0,e.jsx)(a.so.Item,{basis:"32%",grow:1,children:(0,e.jsx)(R,{spec:Re.absorbable})}),(0,e.jsx)(a.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:Re.devour})}),(0,e.jsx)(a.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:Re.mobvore})}),(0,e.jsx)(a.so.Item,{basis:"32%",grow:1,children:(0,e.jsx)(R,{spec:Re.feed})}),(0,e.jsx)(a.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:Re.healbelly,tooltipPosition:"top"})}),(0,e.jsx)(a.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:Re.dropnom_prey})}),(0,e.jsx)(a.so.Item,{basis:"32%",grow:1,children:(0,e.jsx)(R,{spec:Re.dropnom_pred})}),(0,e.jsx)(a.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:Re.toggle_drop_vore})}),(0,e.jsx)(a.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:Re.toggle_slip_vore})}),(0,e.jsx)(a.so.Item,{basis:"32%",grow:1,children:(0,e.jsx)(R,{spec:Re.toggle_stumble_vore})}),(0,e.jsx)(a.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:Re.toggle_throw_vore})}),(0,e.jsx)(a.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:Re.toggle_food_vore})}),(0,e.jsx)(a.so.Item,{basis:"32%",grow:1,children:(0,e.jsx)(R,{spec:Re.inbelly_spawning})}),(0,e.jsx)(a.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:Re.noisy})}),(0,e.jsx)(a.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:Re.resize})}),(0,e.jsx)(a.so.Item,{basis:"32%",grow:1,children:(0,e.jsx)(R,{spec:Re.steppref,tooltipPosition:"top"})}),(0,e.jsx)(a.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:Re.vore_fx,tooltipPosition:"top"})}),(0,e.jsx)(a.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:Re.remains,tooltipPosition:"top"})}),(0,e.jsx)(a.so.Item,{basis:"32%",grow:1,children:(0,e.jsx)(R,{spec:Re.pickuppref,tooltipPosition:"top"})}),(0,e.jsx)(a.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:Re.spontaneous_tf})}),(0,e.jsx)(a.so.Item,{basis:"32%",children:(0,e.jsx)(a.$n,{fluid:!0,content:"Selective Mode Preference",onClick:function(){return k("switch_selective_mode_pref")}})}),(0,e.jsx)(a.so.Item,{basis:"32%",grow:3,children:(0,e.jsx)(R,{spec:Re.eating_privacy_global})})]}),(0,e.jsx)(a.wn,{title:"Aesthetic Preferences",children:(0,e.jsxs)(a.so,{spacing:1,wrap:"wrap",justify:"center",children:[(0,e.jsx)(a.so.Item,{basis:"50%",grow:1,children:(0,e.jsx)(a.$n,{fluid:!0,content:"Set Taste",icon:"grin-tongue",onClick:function(){return k("setflavor")}})}),(0,e.jsx)(a.so.Item,{basis:"50%",children:(0,e.jsx)(a.$n,{fluid:!0,content:"Set Smell",icon:"wind",onClick:function(){return k("setsmell")}})}),(0,e.jsx)(a.so.Item,{basis:"50%",grow:1,children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_msgs",msgtype:"en"})},content:"Set Nutrition Examine Message",icon:"flask",fluid:!0})}),(0,e.jsx)(a.so.Item,{basis:"50%",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_msgs",msgtype:"ew"})},content:"Set Weight Examine Message",icon:"weight-hanging",fluid:!0})}),(0,e.jsx)(a.so.Item,{basis:"50%",grow:1,children:(0,e.jsx)(R,{spec:Re.examine_nutrition})}),(0,e.jsx)(a.so.Item,{basis:"50%",children:(0,e.jsx)(R,{spec:Re.examine_weight})})]})}),(0,e.jsx)(a.cG,{}),(0,e.jsx)(a.wn,{children:(0,e.jsxs)(a.so,{spacing:1,children:[(0,e.jsx)(a.so.Item,{basis:"49%",children:(0,e.jsx)(a.$n,{fluid:!0,content:"Save Prefs",icon:"save",onClick:function(){return k("saveprefs")}})}),(0,e.jsx)(a.so.Item,{basis:"49%",grow:1,children:(0,e.jsx)(a.$n,{fluid:!0,content:"Reload Prefs",icon:"undo",onClick:function(){return k("reloadprefs")}})})]})})]})},R=function(K){var N=(0,i.Oc)().act,k=K.spec,V=f(K,["spec"]),F=k.action,J=k.test,H=k.tooltip,Q=k.content;return(0,e.jsx)(a.$n,x({onClick:function(){return N(F)},icon:J?"toggle-on":"toggle-off",selected:J,fluid:!0,tooltip:H.main+" "+(J?H.disable:H.enable),content:J?Q.enabled:Q.disabled},V))}},85688:function(P,y,t){"use strict";t.r(y),t.d(y,{VorePanelExport:function(){return u}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i={Hold:'Hold',Digest:'Digest',Absorb:'Absorb',Drain:'Drain',Selective:'Selective',Unabsorb:'Unabsorb',Heal:'Heal',Shrink:'Shrink',Grow:'Grow',"Size Steal":'Size Steal',"Encase In Egg":'Encase In Egg'},a={Hold:'Item: Hold',"Digest (Food Only)":'Item: Digest (Food Only)',Digest:'Item: Digest'},g={Numbing:"",Stripping:"","Leave Remains":"",Muffles:"bi-volume-mute","Affect Worn Items":"","Jams Sensors":"bi-wifi-off","Complete Absorb":""},x=function(c){var d=[];return c==null||c.forEach(function(p){d.push(''+p+"")}),d.length===0&&d.push("No Addons Set"),d},f=function(c,d){var p=c.name,C=c.desc,j=c.absorbed_desc,b=c.vore_verb,O=c.release_verb,I=c.mode,_=c.addons,M=c.item_mode,D=c.digest_brute,A=c.digest_burn,R=c.digest_oxy,K=c.digest_tox,N=c.digest_clone,k=c.can_taste,V=c.contaminates,F=c.contamination_flavor,J=c.contamination_color,H=c.nutrition_percent,Q=c.bulge_size,Z=c.display_absorbed_examine,X=c.save_digest_mode,z=c.emote_active,Y=c.emote_time,ee=c.shrink_grow_size,oe=c.egg_type,ne=c.selective_preference,ue=c.struggle_messages_outside,ce=c.struggle_messages_inside,me=c.absorbed_struggle_messages_outside,xe=c.absorbed_struggle_messages_inside,ve=c.escape_attempt_messages_owner,be=c.escape_attempt_messages_prey,we=c.escape_messages_owner,Je=c.escape_messages_prey,ze=c.escape_messages_outside,Le=c.escape_item_messages_owner,Be=c.escape_item_messages_prey,dt=c.escape_item_messages_outside,xt=c.escape_fail_messages_owner,lt=c.escape_fail_messages_prey,rt=c.escape_attempt_absorbed_messages_owner,Re=c.escape_attempt_absorbed_messages_prey,Ke=c.escape_absorbed_messages_owner,Pe=c.escape_absorbed_messages_prey,ke=c.escape_absorbed_messages_outside,Me=c.escape_fail_absorbed_messages_owner,Ve=c.escape_fail_absorbed_messages_prey,We=c.primary_transfer_messages_owner,He=c.primary_transfer_messages_prey,gt=c.secondary_transfer_messages_owner,Mt=c.secondary_transfer_messages_prey,bt=c.digest_chance_messages_owner,Dt=c.digest_chance_messages_prey,ct=c.absorb_chance_messages_owner,Ge=c.absorb_chance_messages_prey,je=c.digest_messages_owner,Qe=c.digest_messages_prey,vt=c.absorb_messages_owner,Pt=c.absorb_messages_prey,zt=c.unabsorb_messages_owner,en=c.unabsorb_messages_prey,Wt=c.examine_messages,fn=c.examine_messages_absorbed,Tn=c.emotes_digest,Fn=c.emotes_hold,Vn=c.emotes_holdabsorbed,Eo=c.emotes_absorb,bo=c.emotes_heal,Io=c.emotes_drain,Xr=c.emotes_steal,Gr=c.emotes_egg,Hr=c.emotes_shrink,ta=c.emotes_grow,bn=c.emotes_unabsorb,Oo=c.is_wet,br=c.wet_loop,xn=c.fancy_vore,pn=c.vore_sound,sr=c.release_sound,Ir=c.disable_hud,_o=c.escapable,ni=c.escapechance,ri=c.escapechance_absorbed,oi=c.escapetime,An=c.transferchance,na=c.transferlocation,ra=c.transferchance_secondary,ai=c.transferlocation_secondary,oa=c.absorbchance,aa=c.digestchance,ae="";return ae+='",ae+='
',ae+='
',ae+="Addons:
"+x(_)+"
",ae+="
== Descriptions ==",ae+="Vore Verb:
"+b+"
",ae+="Release Verb:
"+O+"
",ae+='Description:
"'+C+'"
',ae+='Absorbed Description:
"'+j+'"
',ae+="
",ae+="
== Messages ==",ae+='
',ae+='
',ae+='
',ae+='
Escape Attempt Messages (Owner)',ae+='
Escape Attempt Messages (Prey)',ae+='
Escape Message (Owner)',ae+='
Escape Message (Prey)',ae+='
Escape Message (Outside)',ae+='
Escape Item Messages (Owner)',ae+='
Escape Item Messages (Prey)',ae+='
Escape Item Messages (Outside)',ae+='
Escape Fail Messages (Owner)',ae+='
Escape Fail Messages (Prey)',ae+='
Escape Attempt Absorbed Messages (Owner)',ae+='
Escape Attempt Absorbed Messages (Prey)',ae+='
Escape Absorbed Messages (Owner)',ae+='
Escape Absorbed Messages (Prey)',ae+='
Escape Absorbed Messages (Outside)',ae+='
Escape Fail Absorbed Messages (Owner)',ae+='
Escape Fail Absorbed Messages (Prey)',ae+='
Primary Transfer Messages (Owner)',ae+='
Primary Transfer Messages (Prey)',ae+='
Secondary Transfer Messages (Owner)',ae+='
Secondary Transfer Messages (Prey)',ae+='
Digest Chance Messages (Owner)',ae+='
Digest Chance Messages (Prey)',ae+='
Absorb Chance Messages (Owner)',ae+='
Absorb Chance Messages (Prey)',ae+='
Struggle Messages (Outside)',ae+='
Struggle Messages (Inside)',ae+='
Absorbed Struggle Messages (Outside)',ae+='
Absorbed Struggle Messages (Inside)',ae+='
Digest Messages (Owner)',ae+='
Digest Messages (Prey)',ae+='
Absorb Messages (Owner)',ae+='
Absorb Messages (Prey)',ae+='
Unabsorb Messages (Owner)',ae+='
Unabsorb Messages (Prey)',ae+='
Examine Messages',ae+='
Examine Messages (Absorbed)',ae+="
",ae+='
',ae+='
',ae+='
',ve==null||ve.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',be==null||be.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',we==null||we.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',Je==null||Je.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',ze==null||ze.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',Le==null||Le.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',Be==null||Be.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',dt==null||dt.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',xt==null||xt.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',lt==null||lt.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',rt==null||rt.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',Re==null||Re.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',Ke==null||Ke.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',Pe==null||Pe.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',ke==null||ke.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',Me==null||Me.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',Ve==null||Ve.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',We==null||We.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',He==null||He.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',gt==null||gt.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',Mt==null||Mt.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',bt==null||bt.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',Dt==null||Dt.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',ct==null||ct.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',Ge==null||Ge.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',ue==null||ue.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',ce==null||ce.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',me==null||me.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',xe==null||xe.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',je==null||je.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',Qe==null||Qe.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',vt==null||vt.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',Pt==null||Pt.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',zt==null||zt.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',en==null||en.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',Wt==null||Wt.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',fn==null||fn.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+="
",ae+="
",ae+="
",ae+="
= Idle Messages =
",ae+="Idle Messages (Hold):
",Fn==null||Fn.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+="Idle Messages (Hold Absorbed):
",Vn==null||Vn.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+="Idle Messages (Digest):
",Tn==null||Tn.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+="Idle Messages (Absorb):
",Eo==null||Eo.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+="Idle Messages (Unabsorb):
",bn==null||bn.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+="Idle Messages (Drain):
",Io==null||Io.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+="Idle Messages (Heal):
",bo==null||bo.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+="Idle Messages (Size Steal):
",Xr==null||Xr.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+="Idle Messages (Shrink):
",Hr==null||Hr.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+="Idle Messages (Grow):
",ta==null||ta.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+="Idle Messages (Encase In Egg):
",Gr==null||Gr.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+="",ae+="
",ae+='
',ae+='
',ae+='",ae+='
',ae+='
',ae+='
',ae+='- Can Taste: '+(k?'Yes':'No')+"
",ae+='- Contaminates: '+(V?'Yes':'No')+"
",ae+='- Contamination Flavor: '+F+"
",ae+='- Contamination Color: '+J+"
",ae+='- Nutritional Gain: '+H+"%
",ae+='- Required Examine Size: '+Q*100+"%
",ae+='- Display Absorbed Examines: '+(Z?'True':'False')+"
",ae+='- Save Digest Mode: '+(X?'True':'False')+"
",ae+='- Idle Emotes: '+(z?'Active':'Inactive')+"
",ae+='- Idle Emote Delay: '+Y+" seconds
",ae+='- Shrink/Grow Size: '+ee*100+"%
",ae+='- Egg Type: '+oe+"
",ae+='- Selective Mode Preference: '+ne+"
",ae+="
",ae+="
",ae+='
',ae+='",ae+='
',ae+='
',ae+='
',ae+='- Fleshy Belly: '+(Oo?'Yes':'No')+"
",ae+='- Internal Loop: '+(br?'Yes':'No')+"
",ae+='- Use Fancy Sounds: '+(xn?'Yes':'No')+"
",ae+='- Vore Sound: '+pn+"
",ae+='- Release Sound: '+sr+"
",ae+="
",ae+="
",ae+='
',ae+='",ae+='
",ae+='
',ae+="
Vore FX",ae+='
',ae+='- Disable Prey HUD: '+(Ir?'Yes':'No')+"
",ae+="
",ae+="
",ae+='
',ae+='",ae+='
',ae+='
',ae+="
Belly Interactions ("+(_o?'Enabled':'Disabled')+")",ae+='
',ae+='- Escape Chance: '+ni+"%
",ae+='- Escape Chance: '+ri+"%
",ae+='- Escape Time: '+oi/10+"s
",ae+='- Transfer Chance: '+An+"%
",ae+='- Transfer Location: '+na+"
",ae+='- Secondary Transfer Chance: '+ra+"%
",ae+='- Secondary Transfer Location: '+ai+"
",ae+='- Absorb Chance: '+oa+"%
",ae+='- Digest Chance: '+aa+"%
",ae+="
",ae+="
",ae+="
",ae},h=function(){var c=new Date,d=String(c.getHours());d.length<2&&(d="0"+d);var p=String(c.getMinutes());p.length<2&&(p="0"+p);var C=String(c.getDate());C.length<2&&(C="0"+C);var j=String(c.getMonth()+1);j.length<2&&(j="0"+j);var b=String(c.getFullYear());return" "+b+"-"+j+"-"+C+" ("+d+" "+p+")"},v=function(c){var d=(0,s.Oc)(),p=d.act,C=d.data,j=C.db_version,b=C.db_repo,O=C.mob_name,I=C.bellies,_=h(),M=O+_+c,D;if(c===".html"){var A="";D=new Blob(['
'+I.length+" Exported Bellies (DB_VER: "+b+"-"+j+')'+A+'
Bellies of '+O+'
Generated on: '+_+'
'],{type:"text/html;charset=utf8"}),I.forEach(function(R,K){D=new Blob([D,f(R,K)],{type:"text/html;charset=utf8"})}),D=new Blob([D,"
",'