From e882b695821cc7a80e609854e000a73f7628e790 Mon Sep 17 00:00:00 2001 From: Dictor Date: Sat, 31 Jan 2026 17:13:59 +1000 Subject: [PATCH 1/3] New TGUI --- .../living/simple_animal/bot/construction.dm | 331 ++++++++++++++++++ tgui/packages/tgui/interfaces/Bots.tsx | 39 +++ tgui/public/tgui.bundle.js | 142 ++++---- 3 files changed, 441 insertions(+), 71 deletions(-) create mode 100644 tgui/packages/tgui/interfaces/Bots.tsx diff --git a/code/modules/mob/living/simple_animal/bot/construction.dm b/code/modules/mob/living/simple_animal/bot/construction.dm index b56332018377..bf0b269c656a 100644 --- a/code/modules/mob/living/simple_animal/bot/construction.dm +++ b/code/modules/mob/living/simple_animal/bot/construction.dm @@ -9,6 +9,7 @@ force = 3 throwforce = 5 throw_range = 5 + req_access = list(ACCESS_JANITOR, ACCESS_ROBOTICS) var/created_name = "Чистобот" var/robot_arm = /obj/item/robot_parts/l_arm @@ -16,6 +17,10 @@ if(user.a_intent == INTENT_HARM) return ..() + if(is_id_card(I)) + ui_interact(user) + return ATTACK_CHAIN_PROCEED_SUCCESS + if(is_pen(I)) var/new_name = rename_interactive(user, I, prompt = "Введите новое имя для робота") if(!isnull(new_name)) @@ -45,10 +50,52 @@ new_bot.add_fingerprint(user) new_bot.name = created_name new_bot.robot_arm = I.type + new_bot.bot_core.req_access = req_access qdel(src) qdel(I) return ATTACK_CHAIN_BLOCKED_ALL +/obj/item/bucket_sensor/ui_interact(mob/user, datum/tgui/ui) + ui = SStgui.try_update_ui(user, src, ui) + if(!ui) + ui = new(user, src, "Bots", name) + ui.open() + +/obj/item/bucket_sensor/ui_data(mob/user) + var/list/data = list() + var/list/user_accesses = user.get_access() + + data["accesses"] = req_access + data["regions"] = length(user_accesses) ? get_accesslist_static_data(REGION_GENERAL, REGION_COMMAND, user_accesses) : null + return data + +/obj/item/bucket_sensor/ui_act(action, list/params, datum/tgui/ui) + if(..()) + return + + switch(action) + if("clear_all") + req_access = list() + if("grant_all") + req_access = ui.user.get_access() + if("set") + var/access = text2num(params["access"]) + if(!(access in req_access)) + req_access += access + else + req_access -= access + if("grant_region") + var/region = text2num(params["region"]) + if(isnull(region)) + return + req_access |= (get_region_accesses(region) & ui.user.get_access()) + if("deny_region") + var/region = text2num(params["region"]) + if(isnull(region)) + return + req_access -= (get_region_accesses(region) & ui.user.get_access()) + update_icon() + //Edbot Assembly /obj/item/ed209_assembly @@ -57,6 +104,7 @@ icon = 'icons/obj/aibots.dmi' icon_state = "ed209_frame" item_state = "ed209_frame" + req_access = list(ACCESS_SECURITY) var/build_step = 0 var/created_name = "ED-209 Security Robot" //To preserve the name if it's a unique securitron I guess var/lasercolor = "" @@ -107,6 +155,10 @@ if(user.a_intent == INTENT_HARM) return ..() + if(is_id_card(I)) + ui_interact(user) + return ATTACK_CHAIN_PROCEED_SUCCESS + if(is_pen(I)) var/new_name = rename_interactive(user, I, prompt = "Введите новое имя для робота") if(!isnull(new_name)) @@ -257,6 +309,7 @@ transfer_fingerprints_to(new_bot) I.transfer_fingerprints_to(new_bot) new_bot.add_fingerprint(user) + new_bot.bot_core.req_access = req_access qdel(I) qdel(src) return ATTACK_CHAIN_BLOCKED_ALL @@ -287,6 +340,47 @@ update_appearance(UPDATE_NAME) balloon_alert(user, "вы установили оружие") +/obj/item/ed209_assembly/ui_interact(mob/user, datum/tgui/ui) + ui = SStgui.try_update_ui(user, src, ui) + if(!ui) + ui = new(user, src, "Bots", name) + ui.open() + +/obj/item/ed209_assembly/ui_data(mob/user) + var/list/data = list() + var/list/user_accesses = user.get_access() + + data["accesses"] = req_access + data["regions"] = length(user_accesses) ? get_accesslist_static_data(REGION_GENERAL, REGION_COMMAND, user_accesses) : null + return data + +/obj/item/ed209_assembly/ui_act(action, list/params, datum/tgui/ui) + if(..()) + return + + switch(action) + if("clear_all") + req_access = list() + if("grant_all") + req_access = ui.user.get_access() + if("set") + var/access = text2num(params["access"]) + if(!(access in req_access)) + req_access += access + else + req_access -= access + if("grant_region") + var/region = text2num(params["region"]) + if(isnull(region)) + return + req_access |= (get_region_accesses(region) & ui.user.get_access()) + if("deny_region") + var/region = text2num(params["region"]) + if(isnull(region)) + return + req_access -= (get_region_accesses(region) & ui.user.get_access()) + update_icon() + //Floorbot assemblies /obj/item/toolbox_tiles desc = "Это ящик для инструментов, из которого торчат плитки пола." @@ -296,6 +390,7 @@ force = 3 throwforce = 10 throw_range = 5 + req_access = list(ACCESS_CONSTRUCTION, ACCESS_ROBOTICS) var/created_name = "Floorbot" var/toolbox = /obj/item/storage/toolbox/mechanical var/toolbox_color = "" //Blank for blue, r for red, y for yellow, etc. @@ -362,6 +457,10 @@ if(user.a_intent == INTENT_HARM) return ..() + if(is_id_card(I)) + ui_interact(user) + return ATTACK_CHAIN_PROCEED_SUCCESS + if(is_pen(I)) var/new_name = rename_interactive(user, I, prompt = "Введите новое имя для робота") if(!isnull(new_name)) @@ -393,6 +492,47 @@ qdel(src) return ATTACK_CHAIN_BLOCKED_ALL +/obj/item/toolbox_tiles/ui_interact(mob/user, datum/tgui/ui) + ui = SStgui.try_update_ui(user, src, ui) + if(!ui) + ui = new(user, src, "Bots", name) + ui.open() + +/obj/item/toolbox_tiles/ui_data(mob/user) + var/list/data = list() + var/list/user_accesses = user.get_access() + + data["accesses"] = req_access + data["regions"] = length(user_accesses) ? get_accesslist_static_data(REGION_GENERAL, REGION_COMMAND, user_accesses) : null + return data + +/obj/item/toolbox_tiles/ui_act(action, list/params, datum/tgui/ui) + if(..()) + return + + switch(action) + if("clear_all") + req_access = list() + if("grant_all") + req_access = ui.user.get_access() + if("set") + var/access = text2num(params["access"]) + if(!(access in req_access)) + req_access += access + else + req_access -= access + if("grant_region") + var/region = text2num(params["region"]) + if(isnull(region)) + return + req_access |= (get_region_accesses(region) & ui.user.get_access()) + if("deny_region") + var/region = text2num(params["region"]) + if(isnull(region)) + return + req_access -= (get_region_accesses(region) & ui.user.get_access()) + update_icon() + /obj/item/toolbox_tiles/sensor/update_icon_state() icon_state = "[toolbox_color]toolbox_tiles_sensor" @@ -400,6 +540,10 @@ if(user.a_intent == INTENT_HARM) return ..() + if(is_id_card(I)) + ui_interact(user) + return ATTACK_CHAIN_PROCEED_SUCCESS + if(is_pen(I)) var/new_name = rename_interactive(user, I, prompt = "Введите новое имя для робота") if(!isnull(new_name)) @@ -427,6 +571,7 @@ new_bot.add_fingerprint(user) new_bot.name = created_name new_bot.robot_arm = I.type + new_bot.bot_core.req_access = req_access balloon_alert(user, "сборка завершена") to_chat(user, span_notice("Вы завершили сборку ремонтного робота.")) qdel(I) @@ -508,6 +653,10 @@ if(user.a_intent == INTENT_HARM) return ..() + if(is_id_card(I)) + ui_interact(user) + return ATTACK_CHAIN_PROCEED_SUCCESS + if(is_pen(I)) var/new_name = rename_interactive(user, I, prompt = "Введите новое имя для робота") if(!isnull(new_name)) @@ -569,6 +718,47 @@ return ..() +/obj/item/firstaid_arm_assembly/ui_interact(mob/user, datum/tgui/ui) + ui = SStgui.try_update_ui(user, src, ui) + if(!ui) + ui = new(user, src, "Bots", name) + ui.open() + +/obj/item/firstaid_arm_assembly/ui_data(mob/user) + var/list/data = list() + var/list/user_accesses = user.get_access() + + data["accesses"] = req_access + data["regions"] = length(user_accesses) ? get_accesslist_static_data(REGION_GENERAL, REGION_COMMAND, user_accesses) : null + return data + +/obj/item/firstaid_arm_assembly/ui_act(action, list/params, datum/tgui/ui) + if(..()) + return + + switch(action) + if("clear_all") + req_access = list() + if("grant_all") + req_access = ui.user.get_access() + if("set") + var/access = text2num(params["access"]) + if(!(access in req_access)) + req_access += access + else + req_access -= access + if("grant_region") + var/region = text2num(params["region"]) + if(isnull(region)) + return + req_access |= (get_region_accesses(region) & ui.user.get_access()) + if("deny_region") + var/region = text2num(params["region"]) + if(isnull(region)) + return + req_access -= (get_region_accesses(region) & ui.user.get_access()) + update_icon() + //Secbot Assembly /obj/item/secbot_assembly name = "incomplete securitron assembly" @@ -576,6 +766,7 @@ icon = 'icons/obj/aibots.dmi' icon_state = "helmet_signaler" item_state = "helmet" + req_access = list(ACCESS_SECURITY) var/created_name = "Securitron" //To preserve the name if it's a unique securitron I guess var/build_step = 0 var/robot_arm = /obj/item/robot_parts/l_arm @@ -627,6 +818,10 @@ if(user.a_intent == INTENT_HARM) return ..() + if(is_id_card(I)) + ui_interact(user) + return ATTACK_CHAIN_PROCEED_SUCCESS + if(is_pen(I)) var/new_name = rename_interactive(user, I, prompt = "Введите новое имя для робота") if(!isnull(new_name)) @@ -683,6 +878,7 @@ var/mob/living/simple_animal/bot/secbot/new_bot = new(loc) new_bot.name = created_name new_bot.robot_arm = robot_arm + new_bot.bot_core.req_access = req_access transfer_fingerprints_to(new_bot) I.transfer_fingerprints_to(new_bot) new_bot.add_fingerprint(user) @@ -761,6 +957,47 @@ balloon_alert(user, "корпус модифицирован") update_appearance(UPDATE_OVERLAYS) +/obj/item/secbot_assembly/ui_interact(mob/user, datum/tgui/ui) + ui = SStgui.try_update_ui(user, src, ui) + if(!ui) + ui = new(user, src, "Bots", name) + ui.open() + +/obj/item/secbot_assembly/ui_data(mob/user) + var/list/data = list() + var/list/user_accesses = user.get_access() + + data["accesses"] = req_access + data["regions"] = length(user_accesses) ? get_accesslist_static_data(REGION_GENERAL, REGION_COMMAND, user_accesses) : null + return data + +/obj/item/secbot_assembly/ui_act(action, list/params, datum/tgui/ui) + if(..()) + return + + switch(action) + if("clear_all") + req_access = list() + if("grant_all") + req_access = ui.user.get_access() + if("set") + var/access = text2num(params["access"]) + if(!(access in req_access)) + req_access += access + else + req_access -= access + if("grant_region") + var/region = text2num(params["region"]) + if(isnull(region)) + return + req_access |= (get_region_accesses(region) & ui.user.get_access()) + if("deny_region") + var/region = text2num(params["region"]) + if(isnull(region)) + return + req_access -= (get_region_accesses(region) & ui.user.get_access()) + update_icon() + //General Griefsky /obj/item/griefsky_assembly @@ -769,6 +1006,7 @@ icon = 'icons/obj/aibots.dmi' icon_state = "griefsky_assembly" item_state = "griefsky_assembly" + req_access = list(ACCESS_SECURITY) var/build_step = 0 var/toy_step = 0 @@ -780,6 +1018,10 @@ if(user.a_intent == INTENT_HARM) return ..() + if(is_id_card(I)) + ui_interact(user) + return ATTACK_CHAIN_PROCEED_SUCCESS + add_fingerprint(user) var/energy_sword = istype(I, /obj/item/melee/energy/sword) var/toy_sword = istype(I, /obj/item/toy/sword) @@ -816,6 +1058,7 @@ transfer_fingerprints_to(destroyer_of_the_worlds) I.transfer_fingerprints_to(destroyer_of_the_worlds) destroyer_of_the_worlds.add_fingerprint(user) + destroyer_of_the_worlds.bot_core.req_access = req_access qdel(I) qdel(src) return ATTACK_CHAIN_BLOCKED_ALL @@ -846,12 +1089,14 @@ transfer_fingerprints_to(destroyer_of_the_pinatas) I.transfer_fingerprints_to(destroyer_of_the_pinatas) destroyer_of_the_pinatas.add_fingerprint(user) + destroyer_of_the_pinatas.bot_core.req_access = req_access qdel(I) qdel(src) return ATTACK_CHAIN_BLOCKED_ALL if(!user.drop_transfer_item_to_loc(I, src)) return ..() toy_step++ + req_access = list(ACCESS_MAINT_TUNNELS, ACCESS_THEATRE, ACCESS_ROBOTICS) I.transfer_fingerprints_to(src) update_appearance(UPDATE_NAME) to_chat(user, span_notice("Вы прикрепили игрушечный лазерный меч к заготовке.")) @@ -880,6 +1125,47 @@ sword.add_fingerprint(user) update_appearance(UPDATE_NAME) +/obj/item/griefsky_assembly/ui_interact(mob/user, datum/tgui/ui) + ui = SStgui.try_update_ui(user, src, ui) + if(!ui) + ui = new(user, src, "Bots", name) + ui.open() + +/obj/item/griefsky_assembly/ui_data(mob/user) + var/list/data = list() + var/list/user_accesses = user.get_access() + + data["accesses"] = req_access + data["regions"] = length(user_accesses) ? get_accesslist_static_data(REGION_GENERAL, REGION_COMMAND, user_accesses) : null + return data + +/obj/item/griefsky_assembly/ui_act(action, list/params, datum/tgui/ui) + if(..()) + return + + switch(action) + if("clear_all") + req_access = list() + if("grant_all") + req_access = ui.user.get_access() + if("set") + var/access = text2num(params["access"]) + if(!(access in req_access)) + req_access += access + else + req_access -= access + if("grant_region") + var/region = text2num(params["region"]) + if(isnull(region)) + return + req_access |= (get_region_accesses(region) & ui.user.get_access()) + if("deny_region") + var/region = text2num(params["region"]) + if(isnull(region)) + return + req_access -= (get_region_accesses(region) & ui.user.get_access()) + update_icon() + /obj/item/storage/box/clown/attackby(obj/item/I, mob/user, params) if(user.a_intent == INTENT_HARM || (!istype(I, /obj/item/robot_parts/l_arm) && !istype(I, /obj/item/robot_parts/r_arm))) return ..() @@ -923,6 +1209,10 @@ if(user.a_intent == INTENT_HARM) return ..() + if(is_id_card(I)) + ui_interact(user) + return ATTACK_CHAIN_PROCEED_SUCCESS + switch(build_step) if(0) add_fingerprint(user) @@ -970,6 +1260,7 @@ to_chat(user, span_notice("Вы завершили сборку хонкобота.")) var/mob/living/simple_animal/bot/honkbot/new_bot = new(loc) new_bot.robot_arm = robot_arm + new_bot.bot_core.req_access = req_access transfer_fingerprints_to(new_bot) I.transfer_fingerprints_to(new_bot) new_bot.add_fingerprint(user) @@ -989,3 +1280,43 @@ return . desc = initial(desc) +/obj/item/honkbot_arm_assembly/ui_interact(mob/user, datum/tgui/ui) + ui = SStgui.try_update_ui(user, src, ui) + if(!ui) + ui = new(user, src, "Bots", name) + ui.open() + +/obj/item/honkbot_arm_assembly/ui_data(mob/user) + var/list/data = list() + var/list/user_accesses = user.get_access() + + data["accesses"] = req_access + data["regions"] = length(user_accesses) ? get_accesslist_static_data(REGION_GENERAL, REGION_COMMAND, user_accesses) : null + return data + +/obj/item/honkbot_arm_assembly/ui_act(action, list/params, datum/tgui/ui) + if(..()) + return + + switch(action) + if("clear_all") + req_access = list() + if("grant_all") + req_access = ui.user.get_access() + if("set") + var/access = text2num(params["access"]) + if(!(access in req_access)) + req_access += access + else + req_access -= access + if("grant_region") + var/region = text2num(params["region"]) + if(isnull(region)) + return + req_access |= (get_region_accesses(region) & ui.user.get_access()) + if("deny_region") + var/region = text2num(params["region"]) + if(isnull(region)) + return + req_access -= (get_region_accesses(region) & ui.user.get_access()) + update_icon() diff --git a/tgui/packages/tgui/interfaces/Bots.tsx b/tgui/packages/tgui/interfaces/Bots.tsx new file mode 100644 index 000000000000..aa56bf0b8327 --- /dev/null +++ b/tgui/packages/tgui/interfaces/Bots.tsx @@ -0,0 +1,39 @@ +import { useBackend } from '../backend'; +import { Window } from '../layouts'; +import { AccessList } from './common/AccessList'; +import { MainData } from './Mecha/data'; + +export const Bots = () => { + const { act, data } = useBackend(); + const { + accesses, + regions, + } = data; + return ( + + + + act('set', { + access: ref, + }) + } + grantAll={() => act('grant_all')} + denyAll={() => act('clear_all')} + grantDep={(ref) => + act('grant_region', { + region: ref, + }) + } + denyDep={(ref) => + act('deny_region', { + region: ref, + }) + } + /> + + + ); +}; diff --git a/tgui/public/tgui.bundle.js b/tgui/public/tgui.bundle.js index d3dfb67816f7..67278f71a66e 100644 --- a/tgui/public/tgui.bundle.js +++ b/tgui/public/tgui.bundle.js @@ -1,4 +1,4 @@ -(()=>{var Pu={30:(q,S,r)=>{"use strict";r.r(S),r.d(S,{InputButtons:()=>t});var e=r(1131),s=r(5180),n=r(360),t=function(a){var O=(0,n.Oc)(),b=O.act,y=O.data,u=y.large_buttons,f=y.swapped_buttons,m=a.input,d=a.message,v=a.on_submit,_=a.on_cancel,l=a.disabled,c=v;c||(c=function(){b("submit",{entry:m})});var h=_;h||(h=function(){b("cancel")});var g=(0,e.jsx)(s.$n,{color:"good",disabled:l,fluid:!!u,height:!!u&&2,onClick:c,m:.5,pl:2,pr:2,pt:u?.33:0,textAlign:"center",tooltip:u&&d,width:!u&&6,children:u?"\u041F\u0420\u0418\u041D\u042F\u0422\u042C":"\u041F\u0440\u0438\u043D\u044F\u0442\u044C"}),p=(0,e.jsx)(s.$n,{color:"bad",fluid:!!u,height:!!u&&2,onClick:h,m:.5,px:1,pt:u?.33:0,textAlign:"center",width:!u&&6,children:u?"\u041E\u0422\u041C\u0415\u041D\u0418\u0422\u042C":"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C"});return(0,e.jsxs)(s.so,{align:"center",direction:f?"row-reverse":"row",fill:!0,justify:"space-around",children:[u?(0,e.jsx)(s.so.Item,{grow:!0,children:p}):(0,e.jsx)(s.so.Item,{children:p}),!u&&d&&(0,e.jsx)(s.so.Item,{children:(0,e.jsx)(s.az,{color:"label",textAlign:"center",children:d})}),u?(0,e.jsx)(s.so.Item,{grow:!0,children:g}):(0,e.jsx)(s.so.Item,{children:g})]})}},33:(q,S,r)=>{"use strict";r.r(S),r.d(S,{VariableMenu:()=>f});var e=r(1131),s=r(5180),n=r(7003),t=r(185),a=r(8968);function O(){return O=Object.assign||function(d){for(var v=1;v=0)&&(_[c]=d[c]);return _}function u(d,v){return u=Object.setPrototypeOf||function(l,c){return l.__proto__=c,l},u(d,v)}var f=function(d){"use strict";b(v,d);function v(l){var c;return c=d.call(this,l)||this,c.state={variable_name:"",variable_type:"any"},c}var _=v.prototype;return _.shouldComponentUpdate=function(c,h){if((0,t.a_)(this.state,h))return!0;var g=this.props.variables;if(g.length!==c.variables.length)return!0;for(var p=0;p{var Pu={30:(q,S,r)=>{"use strict";r.r(S),r.d(S,{InputButtons:()=>t});var e=r(1131),s=r(5180),n=r(360),t=function(a){var b=(0,n.Oc)(),O=b.act,y=b.data,u=y.large_buttons,f=y.swapped_buttons,m=a.input,d=a.message,v=a.on_submit,_=a.on_cancel,l=a.disabled,c=v;c||(c=function(){O("submit",{entry:m})});var h=_;h||(h=function(){O("cancel")});var g=(0,e.jsx)(s.$n,{color:"good",disabled:l,fluid:!!u,height:!!u&&2,onClick:c,m:.5,pl:2,pr:2,pt:u?.33:0,textAlign:"center",tooltip:u&&d,width:!u&&6,children:u?"\u041F\u0420\u0418\u041D\u042F\u0422\u042C":"\u041F\u0440\u0438\u043D\u044F\u0442\u044C"}),p=(0,e.jsx)(s.$n,{color:"bad",fluid:!!u,height:!!u&&2,onClick:h,m:.5,px:1,pt:u?.33:0,textAlign:"center",width:!u&&6,children:u?"\u041E\u0422\u041C\u0415\u041D\u0418\u0422\u042C":"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C"});return(0,e.jsxs)(s.so,{align:"center",direction:f?"row-reverse":"row",fill:!0,justify:"space-around",children:[u?(0,e.jsx)(s.so.Item,{grow:!0,children:p}):(0,e.jsx)(s.so.Item,{children:p}),!u&&d&&(0,e.jsx)(s.so.Item,{children:(0,e.jsx)(s.az,{color:"label",textAlign:"center",children:d})}),u?(0,e.jsx)(s.so.Item,{grow:!0,children:g}):(0,e.jsx)(s.so.Item,{children:g})]})}},33:(q,S,r)=>{"use strict";r.r(S),r.d(S,{VariableMenu:()=>f});var e=r(1131),s=r(5180),n=r(7003),t=r(185),a=r(8968);function b(){return b=Object.assign||function(d){for(var v=1;v=0)&&(_[c]=d[c]);return _}function u(d,v){return u=Object.setPrototypeOf||function(l,c){return l.__proto__=c,l},u(d,v)}var f=function(d){"use strict";O(v,d);function v(l){var c;return c=d.call(this,l)||this,c.state={variable_name:"",variable_type:"any"},c}var _=v.prototype;return _.shouldComponentUpdate=function(c,h){if((0,t.a_)(this.state,h))return!0;var g=this.props.variables;if(g.length!==c.variables.length)return!0;for(var p=0;p0&&de[de.length-1])&&(Le[0]===6||Le[0]===2)){me=0;continue}if(Le[0]===3&&(!de||Le[1]>de[0]&&Le[1]Ke&&(de[pe]=Ke-G[pe],me=!0)}return[me,de]},$=function(V){var G;b.log("drag start"),m=!0,l=(0,s.Z4)([V.screenX*u,V.screenY*u],x()),(G=V.target)==null||G.focus(),document.addEventListener("mousemove",N),document.addEventListener("mouseup",W),N(V)},W=function(V){b.log("drag end"),N(V),document.removeEventListener("mousemove",N),document.removeEventListener("mouseup",W),m=!1,K()},N=function(V){m&&(V.preventDefault(),I((0,s.Z4)([V.screenX*u,V.screenY*u],l)))},Z=function(V,G){return function(le){var xe;c=[V,G],b.log("resize start",c),d=!0,l=(0,s.Z4)([le.screenX,le.screenY],x()),h=C(),(xe=le.target)==null||xe.focus(),document.addEventListener("mousemove",Q),document.addEventListener("mouseup",ie),Q(le)}},ie=function(V){b.log("resize end",g),Q(V),document.removeEventListener("mousemove",Q),document.removeEventListener("mouseup",ie),d=!1,K()},Q=function(V){if(d){V.preventDefault();var G=(0,s.Z4)([V.screenX,V.screenY],x()),le=(0,s.Z4)(G,l);g=(0,s.CO)(h,(0,s.tk)(c,le),[1,1]),g[0]=Math.max(g[0],150*u),g[1]=Math.max(g[1],50*u),P(g)}}},75:(q,S,r)=>{var e={"./Blink.stories.tsx":6205,"./BlockQuote.stories.tsx":4036,"./Box.stories.tsx":752,"./Button.stories.tsx":5397,"./ByondUi.stories.tsx":573,"./Collapsible.stories.tsx":8919,"./Flex.stories.tsx":5032,"./ImageButton.stories.tsx":1704,"./Input.stories.tsx":6431,"./Popper.stories.tsx":8227,"./ProgressBar.stories.tsx":2091,"./Stack.stories.tsx":2139,"./Storage.stories.tsx":2036,"./Tabs.stories.tsx":9257,"./Themes.stories.tsx":6295,"./Tooltip.stories.tsx":9326};function s(t){var a=n(t);return r(a)}function n(t){if(!r.o(e,t)){var a=new Error("Cannot find module '"+t+"'");throw a.code="MODULE_NOT_FOUND",a}return e[t]}s.keys=function(){return Object.keys(e)},s.resolve=n,q.exports=s,s.id=75},78:(q,S,r)=>{"use strict";r.r(S),r.d(S,{useHonk:()=>O});var e=r(7003);function s(b,y){(y==null||y>b.length)&&(y=b.length);for(var u=0,f=new Array(y);u=b.length?{done:!0}:{done:!1,value:b[f++]}}}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 a={\u0432\u043A\u043B\u044E\u0447\u0435\u043D:"\u0412\u0445\u043E\u043D\u043A",\u0432\u044B\u043A\u043B\u044E\u0447\u0435\u043D:"\u0412\u044B\u0445\u043E\u043D\u043A",\u0432\u043A\u043B:"\u0412\u0445\u043E\u043D\u043A",\u0432\u044B\u043A\u043B:"\u0412\u044B\u0445\u043E\u043D\u043A",\u044D\u043D\u0435\u0440\u0433\u0438\u044F:"\u0425\u043E\u043D\u043A\u0438\u044F",\u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435:"\u0425\u043E\u043D\u043A\u0442\u043E\u044F\u043D\u0438\u0435",\u0441\u0432\u0435\u0442:"\u0425\u043E\u043D\u043A",\u0432\u043E\u0437\u0434\u0443\u0445:"\u0425\u043E\u043D\u043A\u0434\u0443\u0445",\u0431\u0430\u043B\u043B\u043E\u043D:"\u0411\u0430\u0445\u043E\u043D\u043A",\u0430\u0442\u043C\u043E\u0441\u0444\u0435\u0440\u0430:"\u0425\u043E\u043D\u043A\u043C\u043E\u0441\u0444\u0435\u0440\u0430",\u0431\u043B\u043E\u043A:"\u0445\u043E\u043D\u043A",\u043E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442:"\u041E\u0442\u0441\u0443\u0445\u043E\u043D\u043A",\u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D:"\u0423\u0445\u043E\u043D\u043A\u043E\u0432\u043B\u0435\u043D",\u0441\u0442\u0430\u0442\u0443\u0441:"\u0425\u043E\u043D\u043A\u0442\u0443\u0441",\u043C\u043E\u0434\u0443\u043B\u0438:"\u0425\u043E\u043D\u043A\u0443\u043B\u0438",\u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438:"\u0425\u043E\u043D\u043A\u043E\u0439\u043A\u0438",\u0433\u0440\u0443\u0437:"\u0425\u043E\u043D\u043A",\u043F\u0435\u0440\u0435\u0437\u0430\u0440\u044F\u0434\u043A\u0430:"\u041F\u0435\u0440\u0435\u0445\u043E\u043D\u043A",\u0431\u043E\u0435\u043F\u0440\u0438\u043F\u0430\u0441\u044B:"\u0425\u043E\u043D\u043A\u043F\u0440\u0438\u043F\u0430\u0441\u044B",\u0432\u044B\u0431\u0440\u0430\u0442\u044C:"\u0425\u043E\u043D\u043A\u0430\u0442\u044C"},O=function(b){b===void 0&&(b=.4);var y=(0,e.useMemo)(function(){return function(u){if(!b)return u;for(var f=u,m=t(Object.entries(a)),d;!(d=m()).done;){var v=d.value,_=v[0],l=v[1],c=new RegExp(""+_,"gi");f=f.replace(c,l)}if(f!==u)return f;for(var h=f.split(/\s+/),g=0;g=b||h[g].length<=3)){var p=h[g].replace(new RegExp("^[^a-zA-Z\u0430-\u044F\u0451\u0410-\u042F]+|[^a-zA-Z\u0430-\u044F\u0451\u0410-\u042F]+$","g"),"");if(!(p.length<=3)){var j=Math.min(Math.floor(p.length/2),3),x=Math.random()>.5;h[g]=x?"\u0445\u043E\u043D\u043A"+p.substring(j):p.substring(0,p.length-j)+"\u0445\u043E\u043D\u043A"}}return h.join(" ")}},[b]);return y}},91:(q,S,r)=>{"use strict";r.r(S),r.d(S,{RndNavbar:()=>a});var e=r(1131),s=r(2905),n=r(5180),t=r(4904),a=function(){return(0,e.jsxs)(n.az,{className:"RndConsole__RndNavbar",children:[(0,e.jsx)(s.RndRoute,{menu:function(O){return O!==t.MENU.MAIN},render:function(){return(0,e.jsx)(s.RndNavButton,{menu:t.MENU.MAIN,submenu:t.SUBMENU.MAIN,icon:"reply",children:"\u0413\u043B\u0430\u0432\u043D\u043E\u0435 \u043C\u0435\u043D\u044E"})}}),(0,e.jsx)(s.RndRoute,{submenu:function(O){return O!==t.SUBMENU.MAIN},render:function(){return(0,e.jsxs)(n.az,{children:[(0,e.jsx)(s.RndRoute,{menu:t.MENU.DISK,render:function(){return(0,e.jsx)(s.RndNavButton,{submenu:t.SUBMENU.MAIN,icon:"reply",children:"\u041E\u043F\u0435\u0440\u0430\u0446\u0438\u0438 \u0441 \u0434\u0438\u0441\u043A\u0435\u0442\u0430\u043C\u0438"})}}),(0,e.jsx)(s.RndRoute,{menu:t.MENU.LATHE,render:function(){return(0,e.jsx)(s.RndNavButton,{submenu:t.SUBMENU.MAIN,icon:"reply",children:"\u041F\u0440\u043E\u0442\u043E\u043B\u0430\u0442"})}}),(0,e.jsx)(s.RndRoute,{menu:t.MENU.IMPRINTER,render:function(){return(0,e.jsx)(s.RndNavButton,{submenu:t.SUBMENU.MAIN,icon:"reply",children:"\u041F\u0440\u0438\u043D\u0442\u0435\u0440 \u043F\u043B\u0430\u0442"})}}),(0,e.jsx)(s.RndRoute,{menu:t.MENU.SETTINGS,render:function(){return(0,e.jsx)(s.RndNavButton,{submenu:t.SUBMENU.MAIN,icon:"reply",children:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438"})}})]})}}),(0,e.jsx)(s.RndRoute,{menu:function(O){return O===t.MENU.LATHE||O===t.MENU.IMPRINTER},submenu:t.SUBMENU.MAIN,render:function(){return(0,e.jsxs)(n.az,{children:[(0,e.jsx)(s.RndNavButton,{submenu:t.SUBMENU.LATHE_MAT_STORAGE,icon:"arrow-up",children:"\u0425\u0440\u0430\u043D\u0438\u043B\u0438\u0449\u0435 \u043C\u0430\u0442\u0435\u0440\u0438\u0430\u043B\u043E\u0432"}),(0,e.jsx)(s.RndNavButton,{submenu:t.SUBMENU.LATHE_CHEM_STORAGE,icon:"arrow-up",children:"\u0411\u0443\u0444\u0435\u0440 \u0445\u0438\u043C\u0438\u043A\u0430\u0442\u043E\u0432"})]})}})]})}},185:(q,S,r)=>{"use strict";r.d(S,{Ly:()=>s,a_:()=>t,b5:()=>a});/** + */function t(V,G,le,xe,de,me,pe){try{var Me=V[me](pe),Ke=Me.value}catch(Le){le(Le);return}Me.done?G(Ke):Promise.resolve(Ke).then(xe,de)}function a(V){return function(){var G=this,le=arguments;return new Promise(function(xe,de){var me=V.apply(G,le);function pe(Ke){t(me,xe,de,pe,Me,"next",Ke)}function Me(Ke){t(me,xe,de,pe,Me,"throw",Ke)}pe(void 0)})}}function b(V,G){var le,xe,de,me={label:0,sent:function(){if(de[0]&1)throw de[1];return de[1]},trys:[],ops:[]},pe=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return pe.next=Me(0),pe.throw=Me(1),pe.return=Me(2),typeof Symbol=="function"&&(pe[Symbol.iterator]=function(){return this}),pe;function Me(Le){return function(Se){return Ke([Le,Se])}}function Ke(Le){if(le)throw new TypeError("Generator is already executing.");for(;pe&&(pe=0,Le[0]&&(me=0)),me;)try{if(le=1,xe&&(de=Le[0]&2?xe.return:Le[0]?xe.throw||((de=xe.return)&&de.call(xe),0):xe.next)&&!(de=de.call(xe,Le[1])).done)return de;switch(xe=0,de&&(Le=[Le[0]&2,de.value]),Le[0]){case 0:case 1:de=Le;break;case 4:return me.label++,{value:Le[1],done:!1};case 5:me.label++,xe=Le[1],Le=[0];continue;case 7:Le=me.ops.pop(),me.trys.pop();continue;default:if(de=me.trys,!(de=de.length>0&&de[de.length-1])&&(Le[0]===6||Le[0]===2)){me=0;continue}if(Le[0]===3&&(!de||Le[1]>de[0]&&Le[1]Ke&&(de[pe]=Ke-G[pe],me=!0)}return[me,de]},$=function(V){var G;O.log("drag start"),m=!0,l=(0,s.Z4)([V.screenX*u,V.screenY*u],x()),(G=V.target)==null||G.focus(),document.addEventListener("mousemove",N),document.addEventListener("mouseup",W),N(V)},W=function(V){O.log("drag end"),N(V),document.removeEventListener("mousemove",N),document.removeEventListener("mouseup",W),m=!1,K()},N=function(V){m&&(V.preventDefault(),I((0,s.Z4)([V.screenX*u,V.screenY*u],l)))},Z=function(V,G){return function(le){var xe;c=[V,G],O.log("resize start",c),d=!0,l=(0,s.Z4)([le.screenX,le.screenY],x()),h=C(),(xe=le.target)==null||xe.focus(),document.addEventListener("mousemove",Q),document.addEventListener("mouseup",ie),Q(le)}},ie=function(V){O.log("resize end",g),Q(V),document.removeEventListener("mousemove",Q),document.removeEventListener("mouseup",ie),d=!1,K()},Q=function(V){if(d){V.preventDefault();var G=(0,s.Z4)([V.screenX,V.screenY],x()),le=(0,s.Z4)(G,l);g=(0,s.CO)(h,(0,s.tk)(c,le),[1,1]),g[0]=Math.max(g[0],150*u),g[1]=Math.max(g[1],50*u),P(g)}}},75:(q,S,r)=>{var e={"./Blink.stories.tsx":6205,"./BlockQuote.stories.tsx":4036,"./Box.stories.tsx":752,"./Button.stories.tsx":5397,"./ByondUi.stories.tsx":573,"./Collapsible.stories.tsx":8919,"./Flex.stories.tsx":5032,"./ImageButton.stories.tsx":1704,"./Input.stories.tsx":6431,"./Popper.stories.tsx":8227,"./ProgressBar.stories.tsx":2091,"./Stack.stories.tsx":2139,"./Storage.stories.tsx":2036,"./Tabs.stories.tsx":9257,"./Themes.stories.tsx":6295,"./Tooltip.stories.tsx":9326};function s(t){var a=n(t);return r(a)}function n(t){if(!r.o(e,t)){var a=new Error("Cannot find module '"+t+"'");throw a.code="MODULE_NOT_FOUND",a}return e[t]}s.keys=function(){return Object.keys(e)},s.resolve=n,q.exports=s,s.id=75},78:(q,S,r)=>{"use strict";r.r(S),r.d(S,{useHonk:()=>b});var e=r(7003);function s(O,y){(y==null||y>O.length)&&(y=O.length);for(var u=0,f=new Array(y);u=O.length?{done:!0}:{done:!1,value:O[f++]}}}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 a={\u0432\u043A\u043B\u044E\u0447\u0435\u043D:"\u0412\u0445\u043E\u043D\u043A",\u0432\u044B\u043A\u043B\u044E\u0447\u0435\u043D:"\u0412\u044B\u0445\u043E\u043D\u043A",\u0432\u043A\u043B:"\u0412\u0445\u043E\u043D\u043A",\u0432\u044B\u043A\u043B:"\u0412\u044B\u0445\u043E\u043D\u043A",\u044D\u043D\u0435\u0440\u0433\u0438\u044F:"\u0425\u043E\u043D\u043A\u0438\u044F",\u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435:"\u0425\u043E\u043D\u043A\u0442\u043E\u044F\u043D\u0438\u0435",\u0441\u0432\u0435\u0442:"\u0425\u043E\u043D\u043A",\u0432\u043E\u0437\u0434\u0443\u0445:"\u0425\u043E\u043D\u043A\u0434\u0443\u0445",\u0431\u0430\u043B\u043B\u043E\u043D:"\u0411\u0430\u0445\u043E\u043D\u043A",\u0430\u0442\u043C\u043E\u0441\u0444\u0435\u0440\u0430:"\u0425\u043E\u043D\u043A\u043C\u043E\u0441\u0444\u0435\u0440\u0430",\u0431\u043B\u043E\u043A:"\u0445\u043E\u043D\u043A",\u043E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442:"\u041E\u0442\u0441\u0443\u0445\u043E\u043D\u043A",\u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D:"\u0423\u0445\u043E\u043D\u043A\u043E\u0432\u043B\u0435\u043D",\u0441\u0442\u0430\u0442\u0443\u0441:"\u0425\u043E\u043D\u043A\u0442\u0443\u0441",\u043C\u043E\u0434\u0443\u043B\u0438:"\u0425\u043E\u043D\u043A\u0443\u043B\u0438",\u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438:"\u0425\u043E\u043D\u043A\u043E\u0439\u043A\u0438",\u0433\u0440\u0443\u0437:"\u0425\u043E\u043D\u043A",\u043F\u0435\u0440\u0435\u0437\u0430\u0440\u044F\u0434\u043A\u0430:"\u041F\u0435\u0440\u0435\u0445\u043E\u043D\u043A",\u0431\u043E\u0435\u043F\u0440\u0438\u043F\u0430\u0441\u044B:"\u0425\u043E\u043D\u043A\u043F\u0440\u0438\u043F\u0430\u0441\u044B",\u0432\u044B\u0431\u0440\u0430\u0442\u044C:"\u0425\u043E\u043D\u043A\u0430\u0442\u044C"},b=function(O){O===void 0&&(O=.4);var y=(0,e.useMemo)(function(){return function(u){if(!O)return u;for(var f=u,m=t(Object.entries(a)),d;!(d=m()).done;){var v=d.value,_=v[0],l=v[1],c=new RegExp(""+_,"gi");f=f.replace(c,l)}if(f!==u)return f;for(var h=f.split(/\s+/),g=0;g=O||h[g].length<=3)){var p=h[g].replace(new RegExp("^[^a-zA-Z\u0430-\u044F\u0451\u0410-\u042F]+|[^a-zA-Z\u0430-\u044F\u0451\u0410-\u042F]+$","g"),"");if(!(p.length<=3)){var j=Math.min(Math.floor(p.length/2),3),x=Math.random()>.5;h[g]=x?"\u0445\u043E\u043D\u043A"+p.substring(j):p.substring(0,p.length-j)+"\u0445\u043E\u043D\u043A"}}return h.join(" ")}},[O]);return y}},91:(q,S,r)=>{"use strict";r.r(S),r.d(S,{RndNavbar:()=>a});var e=r(1131),s=r(2905),n=r(5180),t=r(4904),a=function(){return(0,e.jsxs)(n.az,{className:"RndConsole__RndNavbar",children:[(0,e.jsx)(s.RndRoute,{menu:function(b){return b!==t.MENU.MAIN},render:function(){return(0,e.jsx)(s.RndNavButton,{menu:t.MENU.MAIN,submenu:t.SUBMENU.MAIN,icon:"reply",children:"\u0413\u043B\u0430\u0432\u043D\u043E\u0435 \u043C\u0435\u043D\u044E"})}}),(0,e.jsx)(s.RndRoute,{submenu:function(b){return b!==t.SUBMENU.MAIN},render:function(){return(0,e.jsxs)(n.az,{children:[(0,e.jsx)(s.RndRoute,{menu:t.MENU.DISK,render:function(){return(0,e.jsx)(s.RndNavButton,{submenu:t.SUBMENU.MAIN,icon:"reply",children:"\u041E\u043F\u0435\u0440\u0430\u0446\u0438\u0438 \u0441 \u0434\u0438\u0441\u043A\u0435\u0442\u0430\u043C\u0438"})}}),(0,e.jsx)(s.RndRoute,{menu:t.MENU.LATHE,render:function(){return(0,e.jsx)(s.RndNavButton,{submenu:t.SUBMENU.MAIN,icon:"reply",children:"\u041F\u0440\u043E\u0442\u043E\u043B\u0430\u0442"})}}),(0,e.jsx)(s.RndRoute,{menu:t.MENU.IMPRINTER,render:function(){return(0,e.jsx)(s.RndNavButton,{submenu:t.SUBMENU.MAIN,icon:"reply",children:"\u041F\u0440\u0438\u043D\u0442\u0435\u0440 \u043F\u043B\u0430\u0442"})}}),(0,e.jsx)(s.RndRoute,{menu:t.MENU.SETTINGS,render:function(){return(0,e.jsx)(s.RndNavButton,{submenu:t.SUBMENU.MAIN,icon:"reply",children:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438"})}})]})}}),(0,e.jsx)(s.RndRoute,{menu:function(b){return b===t.MENU.LATHE||b===t.MENU.IMPRINTER},submenu:t.SUBMENU.MAIN,render:function(){return(0,e.jsxs)(n.az,{children:[(0,e.jsx)(s.RndNavButton,{submenu:t.SUBMENU.LATHE_MAT_STORAGE,icon:"arrow-up",children:"\u0425\u0440\u0430\u043D\u0438\u043B\u0438\u0449\u0435 \u043C\u0430\u0442\u0435\u0440\u0438\u0430\u043B\u043E\u0432"}),(0,e.jsx)(s.RndNavButton,{submenu:t.SUBMENU.LATHE_CHEM_STORAGE,icon:"arrow-up",children:"\u0411\u0443\u0444\u0435\u0440 \u0445\u0438\u043C\u0438\u043A\u0430\u0442\u043E\u0432"})]})}})]})}},173:(q,S,r)=>{"use strict";r.r(S),r.d(S,{Bots:()=>a});var e=r(1131),s=r(360),n=r(3521),t=r(3211),a=function(){var b=(0,s.Oc)(),O=b.act,y=b.data,u=y.accesses,f=y.regions;return(0,e.jsx)(n.p8,{width:500,height:500,children:(0,e.jsx)(n.p8.Content,{children:(0,e.jsx)(t.AccessList,{accesses:f,selectedList:u,accessMod:function(m){return O("set",{access:m})},grantAll:function(){return O("grant_all")},denyAll:function(){return O("clear_all")},grantDep:function(m){return O("grant_region",{region:m})},denyDep:function(m){return O("deny_region",{region:m})}})})})}},185:(q,S,r)=>{"use strict";r.d(S,{Ly:()=>s,a_:()=>t,b5:()=>a});/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function e(O){"@swc/helpers - typeof";return O&&typeof Symbol<"u"&&O.constructor===Symbol?"symbol":typeof O}var s=function(O){for(var b="",y=0;y"u"?"undefined":e(O))==="object"?[O]:[]},t=function(O,b){var y;for(y in O)if(!(y in b))return!0;for(y in b)if(O[y]!==b[y])return!0;return!1},a=function(O){return O!=null&&typeof O!="boolean"}},218:(q,S,r)=>{"use strict";r.r(S),r.d(S,{Newspaper:()=>O});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=r(2398),O=function(y){var u=(0,s.Oc)(),f=u.act,m=u.data,d=m.wanted,v=m.stories,_=v===void 0?[]:v,l=m.current_page,c=m.total_pages,h=m.advertisements,g=m.scribble,p=g===void 0?[]:g,j=(l-1)*8,x=j+8,C=_.slice(j,x),I=p.find(function(w){return w.id===l}),P=["\u0412\u043E\u0441\u043A\u0440\u0435\u0441\u0435\u043D\u044C\u0435","\u041F\u043E\u043D\u0435\u0434\u0435\u043B\u044C\u043D\u0438\u043A","\u0412\u0442\u043E\u0440\u043D\u0438\u043A","\u0421\u0440\u0435\u0434\u0430","\u0427\u0435\u0442\u0432\u0435\u0440\u0433","\u041F\u044F\u0442\u043D\u0438\u0446\u0430","\u0421\u0443\u0431\u0431\u043E\u0442\u0430"],M=["\u044F\u043D\u0432\u0430\u0440\u044F","\u0444\u0435\u0432\u0440\u0430\u043B\u044F","\u043C\u0430\u0440\u0442\u0430","\u0430\u043F\u0440\u0435\u043B\u044F","\u043C\u0430\u044F","\u0438\u044E\u043D\u044F","\u0438\u044E\u043B\u044F","\u0430\u0432\u0433\u0443\u0441\u0442\u0430","\u0441\u0435\u043D\u0442\u044F\u0431\u0440\u044F","\u043E\u043A\u0442\u044F\u0431\u0440\u044F","\u043D\u043E\u044F\u0431\u0440\u044F","\u0434\u0435\u043A\u0430\u0431\u0440\u044F"],B=new Date;return(0,e.jsx)(t.p8,{width:800,height:600,theme:"paper",title:"\u0413\u0430\u0437\u0435\u0442\u0430 \u0413\u0440\u0438\u0444\u043E\u043D",children:(0,e.jsxs)(t.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.so,{mb:2,children:(0,e.jsx)(n.so.Item,{width:"100%",textAlign:"center",fontSize:"12px",bold:!0,children:P[B.getDay()]+", "+B.getDate()+" "+M[B.getMonth()]+", "+(B.getFullYear()+544)+" \u0433\u043E\u0434"})}),(0,e.jsx)(n.az,{textAlign:"center",fontSize:"48px",bold:!0,mb:1,fontFamily:"Times New Roman",children:"\u0413\u0420\u0418\u0424\u041E\u041D"}),(0,e.jsx)(n.az,{textAlign:"center",fontSize:"12px",color:"#666",m:2,mt:0,children:'\u041F\u0435\u0447\u0430\u0442\u043D\u0430\u044F \u0433\u0430\u0437\u0435\u0442\u0430, \u0441\u043E\u0437\u0434\u0430\u043D\u043D\u0430\u044F \u0441\u043F\u0435\u0446\u0438\u0430\u043B\u044C\u043D\u043E \u0434\u043B\u044F \u043A\u043E\u0441\u043C\u0438\u0447\u0435\u0441\u043A\u0438\u0445 \u043E\u0431\u044A\u0435\u043A\u0442\u043E\u0432 \\"\u041D\u0430\u043D\u043E\u0442\u0440\u0435\u0439\u0437\u0435\u043D\\". \u0421\u043B\u0443\u0436\u0438\u0442 \u043E\u0441\u043D\u043E\u0432\u043D\u044B\u043C \u0438\u0441\u0442\u043E\u0447\u043D\u0438\u043A\u043E\u043C \u043D\u043E\u0432\u043E\u0441\u0442\u0435\u0439, \u043E\u0431\u044A\u044F\u0432\u043B\u0435\u043D\u0438\u0439 \u0438 \u043F\u043E\u043B\u0435\u0437\u043D\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438 \u0434\u043B\u044F \u0432\u0441\u0435\u0445 \u0447\u043B\u0435\u043D\u043E\u0432 \u044D\u043A\u0438\u043F\u0430\u0436\u0430.'}),(0,e.jsx)(n.az,{height:"2px",backgroundColor:"#000",mb:2}),d&&l===1&&(0,e.jsx)(b,{id:d[0].uid,title:d[0].title,body:d[0].body,photo:d[0].photo}),C.length>0?(0,e.jsxs)(n.so,{children:[(0,e.jsx)(n.so.Item,{width:"50%",mr:1,children:C.filter(function(w,T){return T%2===0}).map(function(w,T){return(0,e.jsx)(n.az,{mb:2,children:(0,e.jsxs)(n.wn,{title:w.title,style:{boxShadow:"0px 4px rgba(17, 17, 17, 0.35)"},children:[w.photo?(0,e.jsxs)(n.so,{wrap:"wrap",justify:"space-between",children:[(0,e.jsx)(n.so.Item,{width:"40%",children:(0,e.jsx)(a.PhotoThumbnail,{name:"story_photo_"+w.uid+".png",style:{float:"left",width:"100%"}})}),(0,e.jsx)(n.so.Item,{width:"58%",children:w.body})]}):(0,e.jsx)(n.so.Item,{width:"100%",children:w.body}),w.author&&(0,e.jsxs)(n.az,{mt:1,color:"#666",italic:!0,children:["\u0410\u0432\u0442\u043E\u0440: ",w.author]})]})},T)})}),(0,e.jsx)(n.so.Item,{width:"50%",ml:1,children:C.filter(function(w,T){return T%2!==0}).map(function(w,T){return(0,e.jsx)(n.az,{mb:2,children:(0,e.jsxs)(n.wn,{title:w.title,style:{boxShadow:"0px 4px rgba(17, 17, 17, 0.35)"},children:[w.photo?(0,e.jsxs)(n.so,{wrap:"wrap",justify:"space-between",children:[(0,e.jsx)(n.so.Item,{width:"40%",children:(0,e.jsx)(a.PhotoThumbnail,{name:"story_photo_"+w.uid+".png",style:{float:"left",width:"100%"}})}),(0,e.jsx)(n.so.Item,{width:"58%",children:w.body})]}):(0,e.jsx)(n.so.Item,{width:"100%",children:w.body}),w.author&&(0,e.jsxs)(n.az,{mt:1,color:"#666",italic:!0,children:["\u0410\u0432\u0442\u043E\u0440: ",w.author]})]})},T)})})]}):(0,e.jsx)(n.az,{textAlign:"center",fontSize:"18px",color:"#666",mb:2,children:"\u041A\u0430\u0436\u0435\u0442\u0441\u044F \u0435\u0449\u0435 \u043D\u0438\u043A\u0442\u043E \u043D\u0435 \u0443\u0441\u043F\u0435\u043B \u043E\u043F\u0443\u0431\u043B\u0438\u043A\u043E\u0432\u0430\u0442\u044C \u0441\u0432\u0435\u0436\u0438\u0435 \u043D\u043E\u0432\u043E\u0441\u0442\u0438..."}),l===1&&(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.az,{height:"2px",backgroundColor:"#000",my:2}),(0,e.jsx)(n.az,{textAlign:"center",fontSize:"20px",bold:!0,mb:1,children:"\u0420\u0435\u043A\u043B\u0430\u043C\u0430"}),(0,e.jsx)(n.wn,{style:{boxShadow:"0px 4px rgba(17, 17, 17, 0.35)"},children:(0,e.jsx)(n.so,{children:(0,e.jsx)(n.so.Item,{width:"100%",fontSize:"16px",m:2,mt:0,textAlign:"center",p:2,children:h},"1")})}),(0,e.jsx)(n.az,{textAlign:"left",fontSize:"8px",bold:!0,m:2,children:'"\u0413\u0440\u0438\u0444\u043E\u043D" \u043D\u0435 \u043D\u0435\u0441\u0451\u0442 \u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043D\u043D\u043E\u0441\u0442\u0438 \u0437\u0430 \u0441\u043E\u0434\u0435\u0440\u0436\u0430\u043D\u0438\u0435 \u0440\u0435\u043A\u043B\u0430\u043C\u044B, \u0442\u043E\u0447\u043D\u043E\u0441\u0442\u044C \u0443\u043A\u0430\u0437\u0430\u043D\u043D\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438, \u0430 \u0442\u0430\u043A\u0436\u0435 \u0437\u0430 \u0432\u043E\u0437\u043C\u043E\u0436\u043D\u044B\u0435 \u043F\u043E\u0441\u043B\u0435\u0434\u0441\u0442\u0432\u0438\u044F, \u0441\u0432\u044F\u0437\u0430\u043D\u043D\u044B\u0435 \u0441 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u0435\u043C \u0440\u0435\u043A\u043B\u0430\u043C\u0438\u0440\u0443\u0435\u043C\u044B\u0445 \u0442\u043E\u0432\u0430\u0440\u043E\u0432 \u0438\u043B\u0438 \u0443\u0441\u043B\u0443\u0433. "\u0413\u0440\u0438\u0444\u043E\u043D" \u043D\u0435 \u0433\u0430\u0440\u0430\u043D\u0442\u0438\u0440\u0443\u0435\u0442 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E, \u0431\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u044C \u0438\u043B\u0438 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435 \u0440\u0435\u043A\u043B\u0430\u043C\u0438\u0440\u0443\u0435\u043C\u044B\u0445 \u043F\u0440\u043E\u0434\u0443\u043A\u0442\u043E\u0432 \u0437\u0430\u044F\u0432\u043B\u0435\u043D\u043D\u044B\u043C \u0445\u0430\u0440\u0430\u043A\u0442\u0435\u0440\u0438\u0441\u0442\u0438\u043A\u0430\u043C.'})]}),I&&(0,e.jsxs)(n.az,{fontSize:"12px",mb:1,mt:1,children:[(0,e.jsx)(n.az,{height:"2px",backgroundColor:"#000",my:2}),(0,e.jsxs)("i",{children:["\u0412 \u043A\u043E\u043D\u0446\u0435 \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u044B \u0435\u0441\u0442\u044C \u043D\u0435\u0431\u043E\u043B\u044C\u0448\u0430\u044F \u043F\u043E\u043C\u0435\u0442\u043A\u0430... ",(0,e.jsx)("br",{}),"\u0422\u0430\u043C \u043D\u0430\u043F\u0438\u0441\u0430\u043D\u043E:"]}),(0,e.jsx)("br",{}),(0,e.jsx)(n.az,{fontSize:"12px",bold:!0,children:I.text})]}),(0,e.jsx)(n.az,{height:"2px",backgroundColor:"#000",my:2}),(0,e.jsxs)(n.az,{textAlign:"center",mt:2,children:[(0,e.jsx)(n.$n,{icon:"arrow-left",mr:1,disabled:l===1,onClick:function(){return f("prev_page")}}),(0,e.jsx)(n.$n,{icon:"arrow-right",disabled:l===c||c===0,onClick:function(){return f("next_page")}})]}),(0,e.jsxs)(n.az,{textAlign:"center",mt:2,color:"#666",fontSize:"14px",children:["\u0421\u0442\u0440\u0430\u043D\u0438\u0446\u0430 ",l]})]})})},b=function(y){var u=y.id,f=y.title,m=y.body,d=y.photo;return(0,e.jsx)(n.wn,{title:"\u0412\u043D\u0438\u043C\u0430\u043D\u0438\u0435! \u0420\u043E\u0437\u044B\u0441\u043A!",mb:2,style:{backgroundColor:"rgba(197, 22, 22, 0.71)",boxShadow:"0px 4px rgba(197, 22, 22, 0.9)"},children:(0,e.jsxs)(n.so,{children:[d&&(0,e.jsx)(n.so.Item,{width:"30%",children:(0,e.jsx)(a.PhotoThumbnail,{name:"story_photo_"+u+".png",style:{float:"left",marginRight:"0.5rem",width:"100%"}})}),(0,e.jsxs)(n.so.Item,{width:"70%",ml:2,children:[(0,e.jsx)(n.az,{fontSize:"20px",bold:!0,children:f}),(0,e.jsx)(n.az,{mt:1,children:m})]})]})})}},226:(q,S,r)=>{"use strict";r.r(S),r.d(S,{pda_supplyrecords:()=>t});var e=r(1131),s=r(360),n=r(5180),t=function(a){var O=(0,s.Oc)().data,b=O.supply,y=b.shuttle_loc,u=b.shuttle_time,f=b.shuttle_moving,m=b.approved,d=b.approved_count,v=b.requests,_=b.requests_count;return(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Shuttle Status",children:f?(0,e.jsxs)(n.az,{children:["In transit ",u]}):(0,e.jsx)(n.az,{children:y})})}),(0,e.jsx)(n.wn,{mt:1,title:"Requested Orders",children:_>0&&v.map(function(l){return(0,e.jsxs)(n.az,{children:["#",l.Number,' - "',l.Name,'" for "',l.OrderedBy,'"']},l)})}),(0,e.jsx)(n.wn,{title:"Approved Orders",children:d>0&&m.map(function(l){return(0,e.jsxs)(n.az,{children:["#",l.Number,' - "',l.Name,'" for "',l.ApprovedBy,'"']},l)})})]})}},229:(q,S,r)=>{"use strict";r.r(S),r.d(S,{VethPlayerPanel:()=>u});var e=r(1131),s=r(1859),n=r(360),t=r(7003),a=r(5180),O=r(3521),b=r(9845);function y(){return y=Object.assign||function(f){for(var m=1;m{"use strict";r.r(S),r.d(S,{RawContents:()=>a});var e=r(1131),s=r(9845),n=r(5180),t=r(1311),a=function(O){var b=O.contents,y=O.searchText,u=b.filter((0,s.XZ)(y,function(f){return f.name}));return(0,e.jsx)(n.so,{wrap:!0,children:u.map(function(f){return(0,e.jsx)(n.so.Item,{m:1,children:(0,e.jsx)(t.LootBox,{item:f})},f.uid)})})}},275:(q,S,r)=>{"use strict";r.r(S)},277:(q,S,r)=>{"use strict";r.r(S),r.d(S,{BorgPanel:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(O){var b=(0,s.Oc)(),y=b.act,u=b.data,f=u.borg,m=u.cell,d=u.channels,v=u.modules,_=u.upgrades,l=u.ais,c=u.laws,h=m.charge/m.maxcharge;return(0,e.jsx)(t.p8,{title:"Borg Panel",width:700,height:700,children:(0,e.jsxs)(t.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{title:f.name,buttons:(0,e.jsx)(n.$n,{icon:"pencil-alt",onClick:function(){return y("rename")},children:"Rename"}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Status",children:[(0,e.jsx)(n.$n,{icon:f.emagged?"check-square-o":"square-o",selected:f.emagged,onClick:function(){return y("toggle_emagged")},children:"Emagged"}),(0,e.jsx)(n.$n,{icon:f.lockdown?"check-square-o":"square-o",selected:f.lockdown,onClick:function(){return y("toggle_lockdown")},children:"Locked Down"}),(0,e.jsx)(n.$n,{icon:f.scrambledcodes?"check-square-o":"square-o",selected:f.scrambledcodes,onClick:function(){return y("toggle_scrambledcodes")},children:"Scrambled Codes"}),(0,e.jsx)(n.$n,{onClick:function(){return y("reset_module")},children:"Reset Module"}),(0,e.jsx)(n.$n,{onClick:function(){return y("set_skin_permission")},children:"Skin Permission"}),(0,e.jsx)(n.$n,{onClick:function(){return y("allow_set_skin")},children:"Allow change skin"})]}),(0,e.jsxs)(n.Ki.Item,{label:"Charge",children:[m.missing?(0,e.jsx)("span",{className:"color-bad",children:"No cell installed"}):(0,e.jsx)(n.z2,{value:h,children:m.charge+" / "+m.maxcharge}),(0,e.jsx)("br",{}),(0,e.jsx)(n.$n,{icon:"pencil-alt",onClick:function(){return y("set_charge")},children:"Set"}),(0,e.jsx)(n.$n,{icon:"eject",onClick:function(){return y("change_cell")},children:"Change"}),(0,e.jsx)(n.$n,{icon:"trash",color:"bad",onClick:function(){return y("remove_cell")},children:"Remove"})]}),(0,e.jsx)(n.Ki.Item,{label:"Radio Channels",children:d.map(function(g){return(0,e.jsx)(n.$n,{icon:g.installed?"check-square-o":"square-o",selected:g.installed,onClick:function(){return y("toggle_radio",{channel:g.name})},children:g.name},g.name)})}),(0,e.jsx)(n.Ki.Item,{label:"Model",children:v.map(function(g){return(0,e.jsx)(n.$n,{icon:f.active_module===g.name?"check-square-o":"square-o",selected:f.active_module===g.name,onClick:function(){return y("setmodule",{module:g.type})},children:g.name+" module"},g.type)})}),(0,e.jsx)(n.Ki.Item,{label:"Upgrades",children:_.map(function(g){return(0,e.jsx)(n.$n,{icon:g.installed?"check-square-o":"square-o",selected:g.installed,onClick:function(){return y("toggle_upgrade",{upgrade:g.type})},children:g.name},g.type)})}),(0,e.jsx)(n.Ki.Item,{label:"Master AI",children:l.map(function(g){return(0,e.jsx)(n.$n,{icon:g.connected?"check-square-o":"square-o",selected:g.connected,onClick:function(){return y("slavetoai",{slavetoai:g.ref})},children:g.name},g.ref)})})]})}),(0,e.jsx)(n.wn,{title:"Laws",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{selected:f.lawmanager,onClick:function(){return y("lawmanager")},children:"Law Manager"}),(0,e.jsx)(n.$n,{icon:f.lawupdate?"check-square-o":"square-o",selected:f.lawupdate,onClick:function(){return y("toggle_lawupdate")},children:"Lawsync"})]}),children:c.map(function(g){return(0,e.jsx)(n.az,{children:g},g)})})]})})}},297:(q,S,r)=>{"use strict";r.r(S),r.d(S,{RankedListInputModal:()=>u});var e=r(1131),s=r(3384),n=r(30),t=r(5180),a=r(360),O=r(7003),b=r(3521);function y(){return y=Object.assign||function(m){for(var d=1;d{"use strict";r.r(S),r.d(S,{PoolController:()=>d});var e=r(1131),s=r(360),n=r(5180),t=r(3521);function a(v,_){(_==null||_>v.length)&&(_=v.length);for(var l=0,c=new Array(_);l<_;l++)c[l]=v[l];return c}function O(){return O=Object.assign||function(v){for(var _=1;_=0)&&(l[h]=v[h]);return l}function y(v,_){if(v){if(typeof v=="string")return a(v,_);var l=Object.prototype.toString.call(v).slice(8,-1);if(l==="Object"&&v.constructor&&(l=v.constructor.name),l==="Map"||l==="Set")return Array.from(l);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return a(v,_)}}function u(v,_){var l=typeof Symbol<"u"&&v[Symbol.iterator]||v["@@iterator"];if(l)return(l=l.call(v)).next.bind(l);if(Array.isArray(v)||(l=y(v))||_&&v&&typeof v.length=="number"){l&&(v=l);var c=0;return function(){return c>=v.length?{done:!0}:{done:!1,value:v[c++]}}}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 f={scalding:{label:"Scalding",color:"#FF0000",icon:"fa fa-arrow-circle-up",requireEmag:!0},warm:{label:"Warm",color:"#990000",icon:"fa fa-arrow-circle-up",requireEmag:!1},normal:{label:"Normal",color:null,icon:"fa fa-arrow-circle-right",requireEmag:!1},cool:{label:"Cool",color:"#009999",icon:"fa fa-arrow-circle-down",requireEmag:!1},frigid:{label:"Frigid",color:"#00CCCC",icon:"fa fa-arrow-circle-down",requireEmag:!0}},m=function(v){var _=v.tempKey,l=b(v,["tempKey"]),c=f[_];if(!c)return null;var h=(0,s.Oc)(),g=h.data,p=h.act,j=g.currentTemp,x=c.label,C=c.icon,I=_===j,P=function(){p("setTemp",{temp:_})};return(0,e.jsxs)(n.$n,O({selected:I,onClick:P},l,{children:[(0,e.jsx)(n.In,{name:C}),x]}))},d=function(v){for(var _=(0,s.Oc)().data,l=_.emagged,c=_.currentTemp,h=f[c]||f.normal,g=h.label,p=h.color,j=[],x=u(Object.entries(f)),C;!(C=x()).done;){var I=C.value,P=I[0],M=I[1].requireEmag;(!M||M&&l)&&j.push(P)}return(0,e.jsx)(t.p8,{width:520,height:410,children:(0,e.jsxs)(t.p8.Content,{children:[(0,e.jsx)(n.wn,{title:"Status",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Current Temperature",children:(0,e.jsx)(n.az,{color:p,children:g})}),(0,e.jsx)(n.Ki.Item,{label:"Safety Status",children:l?(0,e.jsx)(n.az,{color:"red",children:"WARNING: OVERRIDDEN"}):(0,e.jsx)(n.az,{color:"good",children:"Nominal"})})]})}),(0,e.jsx)(n.wn,{title:"Temperature Selection",children:(0,e.jsx)(n.so,{className:"PoolController__Buttons",direction:"column",align:"flex-start",children:j.map(function(B){return(0,e.jsx)(m,{tempKey:B},B)})})})]})})}},331:(q,S,r)=>{"use strict";r.r(S),r.d(S,{pai_encoder:()=>t});var e=r(1131),s=r(360),n=r(5180),t=function(a){var O=(0,s.Oc)(),b=O.act,y=O.data,u=y.app_data,f=u.radio_name,m=u.radio_rank;return(0,e.jsx)(n.wn,{title:"Your name and rank in radio channels",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Your current name and rank",children:[f,", ",m]}),(0,e.jsx)(n.Ki.Item,{label:"Set new name",children:(0,e.jsx)(n.pd,{expensive:!0,onChange:function(d){return b("set_newname",{newname:d})}})}),(0,e.jsx)(n.Ki.Item,{label:"Set new rank",children:(0,e.jsx)(n.pd,{expensive:!0,onChange:function(d){return b("set_newrank",{newrank:d})}})})]})})}},360:(q,S,r)=>{"use strict";r.d(S,{H$:()=>g,J3:()=>h,JV:()=>x,Oc:()=>N,QY:()=>ie,Ul:()=>Z,d4:()=>V,jB:()=>T,pX:()=>K});var e=r(4931),s=r(6500),n=r(56),t=r(6092),a=r(4947),O=r(3837),b=r(7989);/** + */function e(b){"@swc/helpers - typeof";return b&&typeof Symbol<"u"&&b.constructor===Symbol?"symbol":typeof b}var s=function(b){for(var O="",y=0;y"u"?"undefined":e(b))==="object"?[b]:[]},t=function(b,O){var y;for(y in b)if(!(y in O))return!0;for(y in O)if(b[y]!==O[y])return!0;return!1},a=function(b){return b!=null&&typeof b!="boolean"}},218:(q,S,r)=>{"use strict";r.r(S),r.d(S,{Newspaper:()=>b});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=r(2398),b=function(y){var u=(0,s.Oc)(),f=u.act,m=u.data,d=m.wanted,v=m.stories,_=v===void 0?[]:v,l=m.current_page,c=m.total_pages,h=m.advertisements,g=m.scribble,p=g===void 0?[]:g,j=(l-1)*8,x=j+8,C=_.slice(j,x),I=p.find(function(w){return w.id===l}),P=["\u0412\u043E\u0441\u043A\u0440\u0435\u0441\u0435\u043D\u044C\u0435","\u041F\u043E\u043D\u0435\u0434\u0435\u043B\u044C\u043D\u0438\u043A","\u0412\u0442\u043E\u0440\u043D\u0438\u043A","\u0421\u0440\u0435\u0434\u0430","\u0427\u0435\u0442\u0432\u0435\u0440\u0433","\u041F\u044F\u0442\u043D\u0438\u0446\u0430","\u0421\u0443\u0431\u0431\u043E\u0442\u0430"],M=["\u044F\u043D\u0432\u0430\u0440\u044F","\u0444\u0435\u0432\u0440\u0430\u043B\u044F","\u043C\u0430\u0440\u0442\u0430","\u0430\u043F\u0440\u0435\u043B\u044F","\u043C\u0430\u044F","\u0438\u044E\u043D\u044F","\u0438\u044E\u043B\u044F","\u0430\u0432\u0433\u0443\u0441\u0442\u0430","\u0441\u0435\u043D\u0442\u044F\u0431\u0440\u044F","\u043E\u043A\u0442\u044F\u0431\u0440\u044F","\u043D\u043E\u044F\u0431\u0440\u044F","\u0434\u0435\u043A\u0430\u0431\u0440\u044F"],B=new Date;return(0,e.jsx)(t.p8,{width:800,height:600,theme:"paper",title:"\u0413\u0430\u0437\u0435\u0442\u0430 \u0413\u0440\u0438\u0444\u043E\u043D",children:(0,e.jsxs)(t.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.so,{mb:2,children:(0,e.jsx)(n.so.Item,{width:"100%",textAlign:"center",fontSize:"12px",bold:!0,children:P[B.getDay()]+", "+B.getDate()+" "+M[B.getMonth()]+", "+(B.getFullYear()+544)+" \u0433\u043E\u0434"})}),(0,e.jsx)(n.az,{textAlign:"center",fontSize:"48px",bold:!0,mb:1,fontFamily:"Times New Roman",children:"\u0413\u0420\u0418\u0424\u041E\u041D"}),(0,e.jsx)(n.az,{textAlign:"center",fontSize:"12px",color:"#666",m:2,mt:0,children:'\u041F\u0435\u0447\u0430\u0442\u043D\u0430\u044F \u0433\u0430\u0437\u0435\u0442\u0430, \u0441\u043E\u0437\u0434\u0430\u043D\u043D\u0430\u044F \u0441\u043F\u0435\u0446\u0438\u0430\u043B\u044C\u043D\u043E \u0434\u043B\u044F \u043A\u043E\u0441\u043C\u0438\u0447\u0435\u0441\u043A\u0438\u0445 \u043E\u0431\u044A\u0435\u043A\u0442\u043E\u0432 \\"\u041D\u0430\u043D\u043E\u0442\u0440\u0435\u0439\u0437\u0435\u043D\\". \u0421\u043B\u0443\u0436\u0438\u0442 \u043E\u0441\u043D\u043E\u0432\u043D\u044B\u043C \u0438\u0441\u0442\u043E\u0447\u043D\u0438\u043A\u043E\u043C \u043D\u043E\u0432\u043E\u0441\u0442\u0435\u0439, \u043E\u0431\u044A\u044F\u0432\u043B\u0435\u043D\u0438\u0439 \u0438 \u043F\u043E\u043B\u0435\u0437\u043D\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438 \u0434\u043B\u044F \u0432\u0441\u0435\u0445 \u0447\u043B\u0435\u043D\u043E\u0432 \u044D\u043A\u0438\u043F\u0430\u0436\u0430.'}),(0,e.jsx)(n.az,{height:"2px",backgroundColor:"#000",mb:2}),d&&l===1&&(0,e.jsx)(O,{id:d[0].uid,title:d[0].title,body:d[0].body,photo:d[0].photo}),C.length>0?(0,e.jsxs)(n.so,{children:[(0,e.jsx)(n.so.Item,{width:"50%",mr:1,children:C.filter(function(w,T){return T%2===0}).map(function(w,T){return(0,e.jsx)(n.az,{mb:2,children:(0,e.jsxs)(n.wn,{title:w.title,style:{boxShadow:"0px 4px rgba(17, 17, 17, 0.35)"},children:[w.photo?(0,e.jsxs)(n.so,{wrap:"wrap",justify:"space-between",children:[(0,e.jsx)(n.so.Item,{width:"40%",children:(0,e.jsx)(a.PhotoThumbnail,{name:"story_photo_"+w.uid+".png",style:{float:"left",width:"100%"}})}),(0,e.jsx)(n.so.Item,{width:"58%",children:w.body})]}):(0,e.jsx)(n.so.Item,{width:"100%",children:w.body}),w.author&&(0,e.jsxs)(n.az,{mt:1,color:"#666",italic:!0,children:["\u0410\u0432\u0442\u043E\u0440: ",w.author]})]})},T)})}),(0,e.jsx)(n.so.Item,{width:"50%",ml:1,children:C.filter(function(w,T){return T%2!==0}).map(function(w,T){return(0,e.jsx)(n.az,{mb:2,children:(0,e.jsxs)(n.wn,{title:w.title,style:{boxShadow:"0px 4px rgba(17, 17, 17, 0.35)"},children:[w.photo?(0,e.jsxs)(n.so,{wrap:"wrap",justify:"space-between",children:[(0,e.jsx)(n.so.Item,{width:"40%",children:(0,e.jsx)(a.PhotoThumbnail,{name:"story_photo_"+w.uid+".png",style:{float:"left",width:"100%"}})}),(0,e.jsx)(n.so.Item,{width:"58%",children:w.body})]}):(0,e.jsx)(n.so.Item,{width:"100%",children:w.body}),w.author&&(0,e.jsxs)(n.az,{mt:1,color:"#666",italic:!0,children:["\u0410\u0432\u0442\u043E\u0440: ",w.author]})]})},T)})})]}):(0,e.jsx)(n.az,{textAlign:"center",fontSize:"18px",color:"#666",mb:2,children:"\u041A\u0430\u0436\u0435\u0442\u0441\u044F \u0435\u0449\u0435 \u043D\u0438\u043A\u0442\u043E \u043D\u0435 \u0443\u0441\u043F\u0435\u043B \u043E\u043F\u0443\u0431\u043B\u0438\u043A\u043E\u0432\u0430\u0442\u044C \u0441\u0432\u0435\u0436\u0438\u0435 \u043D\u043E\u0432\u043E\u0441\u0442\u0438..."}),l===1&&(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.az,{height:"2px",backgroundColor:"#000",my:2}),(0,e.jsx)(n.az,{textAlign:"center",fontSize:"20px",bold:!0,mb:1,children:"\u0420\u0435\u043A\u043B\u0430\u043C\u0430"}),(0,e.jsx)(n.wn,{style:{boxShadow:"0px 4px rgba(17, 17, 17, 0.35)"},children:(0,e.jsx)(n.so,{children:(0,e.jsx)(n.so.Item,{width:"100%",fontSize:"16px",m:2,mt:0,textAlign:"center",p:2,children:h},"1")})}),(0,e.jsx)(n.az,{textAlign:"left",fontSize:"8px",bold:!0,m:2,children:'"\u0413\u0440\u0438\u0444\u043E\u043D" \u043D\u0435 \u043D\u0435\u0441\u0451\u0442 \u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043D\u043D\u043E\u0441\u0442\u0438 \u0437\u0430 \u0441\u043E\u0434\u0435\u0440\u0436\u0430\u043D\u0438\u0435 \u0440\u0435\u043A\u043B\u0430\u043C\u044B, \u0442\u043E\u0447\u043D\u043E\u0441\u0442\u044C \u0443\u043A\u0430\u0437\u0430\u043D\u043D\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438, \u0430 \u0442\u0430\u043A\u0436\u0435 \u0437\u0430 \u0432\u043E\u0437\u043C\u043E\u0436\u043D\u044B\u0435 \u043F\u043E\u0441\u043B\u0435\u0434\u0441\u0442\u0432\u0438\u044F, \u0441\u0432\u044F\u0437\u0430\u043D\u043D\u044B\u0435 \u0441 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u0435\u043C \u0440\u0435\u043A\u043B\u0430\u043C\u0438\u0440\u0443\u0435\u043C\u044B\u0445 \u0442\u043E\u0432\u0430\u0440\u043E\u0432 \u0438\u043B\u0438 \u0443\u0441\u043B\u0443\u0433. "\u0413\u0440\u0438\u0444\u043E\u043D" \u043D\u0435 \u0433\u0430\u0440\u0430\u043D\u0442\u0438\u0440\u0443\u0435\u0442 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E, \u0431\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u044C \u0438\u043B\u0438 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435 \u0440\u0435\u043A\u043B\u0430\u043C\u0438\u0440\u0443\u0435\u043C\u044B\u0445 \u043F\u0440\u043E\u0434\u0443\u043A\u0442\u043E\u0432 \u0437\u0430\u044F\u0432\u043B\u0435\u043D\u043D\u044B\u043C \u0445\u0430\u0440\u0430\u043A\u0442\u0435\u0440\u0438\u0441\u0442\u0438\u043A\u0430\u043C.'})]}),I&&(0,e.jsxs)(n.az,{fontSize:"12px",mb:1,mt:1,children:[(0,e.jsx)(n.az,{height:"2px",backgroundColor:"#000",my:2}),(0,e.jsxs)("i",{children:["\u0412 \u043A\u043E\u043D\u0446\u0435 \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u044B \u0435\u0441\u0442\u044C \u043D\u0435\u0431\u043E\u043B\u044C\u0448\u0430\u044F \u043F\u043E\u043C\u0435\u0442\u043A\u0430... ",(0,e.jsx)("br",{}),"\u0422\u0430\u043C \u043D\u0430\u043F\u0438\u0441\u0430\u043D\u043E:"]}),(0,e.jsx)("br",{}),(0,e.jsx)(n.az,{fontSize:"12px",bold:!0,children:I.text})]}),(0,e.jsx)(n.az,{height:"2px",backgroundColor:"#000",my:2}),(0,e.jsxs)(n.az,{textAlign:"center",mt:2,children:[(0,e.jsx)(n.$n,{icon:"arrow-left",mr:1,disabled:l===1,onClick:function(){return f("prev_page")}}),(0,e.jsx)(n.$n,{icon:"arrow-right",disabled:l===c||c===0,onClick:function(){return f("next_page")}})]}),(0,e.jsxs)(n.az,{textAlign:"center",mt:2,color:"#666",fontSize:"14px",children:["\u0421\u0442\u0440\u0430\u043D\u0438\u0446\u0430 ",l]})]})})},O=function(y){var u=y.id,f=y.title,m=y.body,d=y.photo;return(0,e.jsx)(n.wn,{title:"\u0412\u043D\u0438\u043C\u0430\u043D\u0438\u0435! \u0420\u043E\u0437\u044B\u0441\u043A!",mb:2,style:{backgroundColor:"rgba(197, 22, 22, 0.71)",boxShadow:"0px 4px rgba(197, 22, 22, 0.9)"},children:(0,e.jsxs)(n.so,{children:[d&&(0,e.jsx)(n.so.Item,{width:"30%",children:(0,e.jsx)(a.PhotoThumbnail,{name:"story_photo_"+u+".png",style:{float:"left",marginRight:"0.5rem",width:"100%"}})}),(0,e.jsxs)(n.so.Item,{width:"70%",ml:2,children:[(0,e.jsx)(n.az,{fontSize:"20px",bold:!0,children:f}),(0,e.jsx)(n.az,{mt:1,children:m})]})]})})}},226:(q,S,r)=>{"use strict";r.r(S),r.d(S,{pda_supplyrecords:()=>t});var e=r(1131),s=r(360),n=r(5180),t=function(a){var b=(0,s.Oc)().data,O=b.supply,y=O.shuttle_loc,u=O.shuttle_time,f=O.shuttle_moving,m=O.approved,d=O.approved_count,v=O.requests,_=O.requests_count;return(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Shuttle Status",children:f?(0,e.jsxs)(n.az,{children:["In transit ",u]}):(0,e.jsx)(n.az,{children:y})})}),(0,e.jsx)(n.wn,{mt:1,title:"Requested Orders",children:_>0&&v.map(function(l){return(0,e.jsxs)(n.az,{children:["#",l.Number,' - "',l.Name,'" for "',l.OrderedBy,'"']},l)})}),(0,e.jsx)(n.wn,{title:"Approved Orders",children:d>0&&m.map(function(l){return(0,e.jsxs)(n.az,{children:["#",l.Number,' - "',l.Name,'" for "',l.ApprovedBy,'"']},l)})})]})}},229:(q,S,r)=>{"use strict";r.r(S),r.d(S,{VethPlayerPanel:()=>u});var e=r(1131),s=r(1859),n=r(360),t=r(7003),a=r(5180),b=r(3521),O=r(9845);function y(){return y=Object.assign||function(f){for(var m=1;m{"use strict";r.r(S),r.d(S,{RawContents:()=>a});var e=r(1131),s=r(9845),n=r(5180),t=r(1311),a=function(b){var O=b.contents,y=b.searchText,u=O.filter((0,s.XZ)(y,function(f){return f.name}));return(0,e.jsx)(n.so,{wrap:!0,children:u.map(function(f){return(0,e.jsx)(n.so.Item,{m:1,children:(0,e.jsx)(t.LootBox,{item:f})},f.uid)})})}},275:(q,S,r)=>{"use strict";r.r(S)},277:(q,S,r)=>{"use strict";r.r(S),r.d(S,{BorgPanel:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(b){var O=(0,s.Oc)(),y=O.act,u=O.data,f=u.borg,m=u.cell,d=u.channels,v=u.modules,_=u.upgrades,l=u.ais,c=u.laws,h=m.charge/m.maxcharge;return(0,e.jsx)(t.p8,{title:"Borg Panel",width:700,height:700,children:(0,e.jsxs)(t.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{title:f.name,buttons:(0,e.jsx)(n.$n,{icon:"pencil-alt",onClick:function(){return y("rename")},children:"Rename"}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Status",children:[(0,e.jsx)(n.$n,{icon:f.emagged?"check-square-o":"square-o",selected:f.emagged,onClick:function(){return y("toggle_emagged")},children:"Emagged"}),(0,e.jsx)(n.$n,{icon:f.lockdown?"check-square-o":"square-o",selected:f.lockdown,onClick:function(){return y("toggle_lockdown")},children:"Locked Down"}),(0,e.jsx)(n.$n,{icon:f.scrambledcodes?"check-square-o":"square-o",selected:f.scrambledcodes,onClick:function(){return y("toggle_scrambledcodes")},children:"Scrambled Codes"}),(0,e.jsx)(n.$n,{onClick:function(){return y("reset_module")},children:"Reset Module"}),(0,e.jsx)(n.$n,{onClick:function(){return y("set_skin_permission")},children:"Skin Permission"}),(0,e.jsx)(n.$n,{onClick:function(){return y("allow_set_skin")},children:"Allow change skin"})]}),(0,e.jsxs)(n.Ki.Item,{label:"Charge",children:[m.missing?(0,e.jsx)("span",{className:"color-bad",children:"No cell installed"}):(0,e.jsx)(n.z2,{value:h,children:m.charge+" / "+m.maxcharge}),(0,e.jsx)("br",{}),(0,e.jsx)(n.$n,{icon:"pencil-alt",onClick:function(){return y("set_charge")},children:"Set"}),(0,e.jsx)(n.$n,{icon:"eject",onClick:function(){return y("change_cell")},children:"Change"}),(0,e.jsx)(n.$n,{icon:"trash",color:"bad",onClick:function(){return y("remove_cell")},children:"Remove"})]}),(0,e.jsx)(n.Ki.Item,{label:"Radio Channels",children:d.map(function(g){return(0,e.jsx)(n.$n,{icon:g.installed?"check-square-o":"square-o",selected:g.installed,onClick:function(){return y("toggle_radio",{channel:g.name})},children:g.name},g.name)})}),(0,e.jsx)(n.Ki.Item,{label:"Model",children:v.map(function(g){return(0,e.jsx)(n.$n,{icon:f.active_module===g.name?"check-square-o":"square-o",selected:f.active_module===g.name,onClick:function(){return y("setmodule",{module:g.type})},children:g.name+" module"},g.type)})}),(0,e.jsx)(n.Ki.Item,{label:"Upgrades",children:_.map(function(g){return(0,e.jsx)(n.$n,{icon:g.installed?"check-square-o":"square-o",selected:g.installed,onClick:function(){return y("toggle_upgrade",{upgrade:g.type})},children:g.name},g.type)})}),(0,e.jsx)(n.Ki.Item,{label:"Master AI",children:l.map(function(g){return(0,e.jsx)(n.$n,{icon:g.connected?"check-square-o":"square-o",selected:g.connected,onClick:function(){return y("slavetoai",{slavetoai:g.ref})},children:g.name},g.ref)})})]})}),(0,e.jsx)(n.wn,{title:"Laws",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{selected:f.lawmanager,onClick:function(){return y("lawmanager")},children:"Law Manager"}),(0,e.jsx)(n.$n,{icon:f.lawupdate?"check-square-o":"square-o",selected:f.lawupdate,onClick:function(){return y("toggle_lawupdate")},children:"Lawsync"})]}),children:c.map(function(g){return(0,e.jsx)(n.az,{children:g},g)})})]})})}},297:(q,S,r)=>{"use strict";r.r(S),r.d(S,{RankedListInputModal:()=>u});var e=r(1131),s=r(3384),n=r(30),t=r(5180),a=r(360),b=r(7003),O=r(3521);function y(){return y=Object.assign||function(m){for(var d=1;d{"use strict";r.r(S),r.d(S,{PoolController:()=>d});var e=r(1131),s=r(360),n=r(5180),t=r(3521);function a(v,_){(_==null||_>v.length)&&(_=v.length);for(var l=0,c=new Array(_);l<_;l++)c[l]=v[l];return c}function b(){return b=Object.assign||function(v){for(var _=1;_=0)&&(l[h]=v[h]);return l}function y(v,_){if(v){if(typeof v=="string")return a(v,_);var l=Object.prototype.toString.call(v).slice(8,-1);if(l==="Object"&&v.constructor&&(l=v.constructor.name),l==="Map"||l==="Set")return Array.from(l);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return a(v,_)}}function u(v,_){var l=typeof Symbol<"u"&&v[Symbol.iterator]||v["@@iterator"];if(l)return(l=l.call(v)).next.bind(l);if(Array.isArray(v)||(l=y(v))||_&&v&&typeof v.length=="number"){l&&(v=l);var c=0;return function(){return c>=v.length?{done:!0}:{done:!1,value:v[c++]}}}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 f={scalding:{label:"Scalding",color:"#FF0000",icon:"fa fa-arrow-circle-up",requireEmag:!0},warm:{label:"Warm",color:"#990000",icon:"fa fa-arrow-circle-up",requireEmag:!1},normal:{label:"Normal",color:null,icon:"fa fa-arrow-circle-right",requireEmag:!1},cool:{label:"Cool",color:"#009999",icon:"fa fa-arrow-circle-down",requireEmag:!1},frigid:{label:"Frigid",color:"#00CCCC",icon:"fa fa-arrow-circle-down",requireEmag:!0}},m=function(v){var _=v.tempKey,l=O(v,["tempKey"]),c=f[_];if(!c)return null;var h=(0,s.Oc)(),g=h.data,p=h.act,j=g.currentTemp,x=c.label,C=c.icon,I=_===j,P=function(){p("setTemp",{temp:_})};return(0,e.jsxs)(n.$n,b({selected:I,onClick:P},l,{children:[(0,e.jsx)(n.In,{name:C}),x]}))},d=function(v){for(var _=(0,s.Oc)().data,l=_.emagged,c=_.currentTemp,h=f[c]||f.normal,g=h.label,p=h.color,j=[],x=u(Object.entries(f)),C;!(C=x()).done;){var I=C.value,P=I[0],M=I[1].requireEmag;(!M||M&&l)&&j.push(P)}return(0,e.jsx)(t.p8,{width:520,height:410,children:(0,e.jsxs)(t.p8.Content,{children:[(0,e.jsx)(n.wn,{title:"Status",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Current Temperature",children:(0,e.jsx)(n.az,{color:p,children:g})}),(0,e.jsx)(n.Ki.Item,{label:"Safety Status",children:l?(0,e.jsx)(n.az,{color:"red",children:"WARNING: OVERRIDDEN"}):(0,e.jsx)(n.az,{color:"good",children:"Nominal"})})]})}),(0,e.jsx)(n.wn,{title:"Temperature Selection",children:(0,e.jsx)(n.so,{className:"PoolController__Buttons",direction:"column",align:"flex-start",children:j.map(function(B){return(0,e.jsx)(m,{tempKey:B},B)})})})]})})}},331:(q,S,r)=>{"use strict";r.r(S),r.d(S,{pai_encoder:()=>t});var e=r(1131),s=r(360),n=r(5180),t=function(a){var b=(0,s.Oc)(),O=b.act,y=b.data,u=y.app_data,f=u.radio_name,m=u.radio_rank;return(0,e.jsx)(n.wn,{title:"Your name and rank in radio channels",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Your current name and rank",children:[f,", ",m]}),(0,e.jsx)(n.Ki.Item,{label:"Set new name",children:(0,e.jsx)(n.pd,{expensive:!0,onChange:function(d){return O("set_newname",{newname:d})}})}),(0,e.jsx)(n.Ki.Item,{label:"Set new rank",children:(0,e.jsx)(n.pd,{expensive:!0,onChange:function(d){return O("set_newrank",{newrank:d})}})})]})})}},360:(q,S,r)=>{"use strict";r.d(S,{H$:()=>g,J3:()=>h,JV:()=>x,Oc:()=>N,QY:()=>ie,Ul:()=>Z,d4:()=>V,jB:()=>T,pX:()=>K});var e=r(4931),s=r(6500),n=r(56),t=r(6092),a=r(4947),b=r(3837),O=r(7989);/** * This file provides a clear separation layer between backend updates * and what state our React app sees. * @@ -23,48 +23,48 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function y(G,le){(le==null||le>G.length)&&(le=G.length);for(var xe=0,de=new Array(le);xe=0)&&(xe[me]=G[me]);return xe}function m(G,le){if(v(G)!=="object"||G===null)return G;var xe=G[Symbol.toPrimitive];if(xe!==void 0){var de=xe.call(G,le||"default");if(v(de)!=="object")return de;throw new TypeError("@@toPrimitive must return a primitive value.")}return(le==="string"?String:Number)(G)}function d(G){var le=m(G,"string");return v(le)==="symbol"?le:String(le)}function v(G){"@swc/helpers - typeof";return G&&typeof Symbol<"u"&&G.constructor===Symbol?"symbol":typeof G}function _(G,le){if(G){if(typeof G=="string")return y(G,le);var xe=Object.prototype.toString.call(G).slice(8,-1);if(xe==="Object"&&G.constructor&&(xe=G.constructor.name),xe==="Map"||xe==="Set")return Array.from(xe);if(xe==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(xe))return y(G,le)}}function l(G,le){var xe=typeof Symbol<"u"&&G[Symbol.iterator]||G["@@iterator"];if(xe)return(xe=xe.call(G)).next.bind(xe);if(Array.isArray(G)||(xe=_(G))||le&&G&&typeof G.length=="number"){xe&&(G=xe);var de=0;return function(){return de>=G.length?{done:!0}:{done:!1,value:G[de++]}}}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=(0,a.h)("backend"),h,g=function(G){h=G},p=(0,s.VP)("backend/update"),j=(0,s.VP)("backend/setSharedState"),x=(0,s.VP)("backend/suspendStart"),C=(0,s.VP)("backend/createPayloadQueue"),I=(0,s.VP)("backend/dequeuePayloadQueue"),P=(0,s.VP)("backend/removePayloadQueue"),M=(0,s.VP)("nextPayloadChunk"),B=function(){return{type:"backend/suspendSuccess",payload:{timestamp:Date.now()}}},w={config:{},data:{},shared:{},outgoingPayloadQueues:{},suspended:Date.now(),suspending:!1},T=function(G,le){G===void 0&&(G=w);var xe=le.type,de=le.payload;if(xe==="backend/update"){var me=u({},G.config,de.config),pe=u({},G.data,de.static_data,de.data),Me=u({},G.shared);if(de.shared)for(var Ke=l(Object.keys(de.shared)),Le;!(Le=Ke()).done;){var Se=Le.value,ln=de.shared[Se];ln===""?Me[Se]=void 0:Me[Se]=JSON.parse(ln)}return u({},G,{config:me,data:pe,shared:Me,suspended:!1})}if(xe==="backend/setSharedState"){var ze=de.key,We=de.nextState,fn;return u({},G,{shared:u({},G.shared,(fn={},fn[ze]=We,fn))})}if(xe==="backend/suspendStart")return u({},G,{suspending:!0});if(xe==="backend/suspendSuccess"){var Ze=de.timestamp;return u({},G,{data:{},shared:{},config:u({},G.config,{title:"",status:1}),suspending:!1,suspended:Ze})}if(xe==="backend/createPayloadQueue"){var In=de.id,En=de.chunks,Yn=G.outgoingPayloadQueues,Xn;return u({},G,{outgoingPayloadQueues:u({},Yn,(Xn={},Xn[In]=En,Xn))})}if(xe==="backend/dequeuePayloadQueue"){var ct=de.id,Ot=G.outgoingPayloadQueues,_t=Ot[ct],Nt=f(Ot,[ct].map(d)),nr=_t[0],cn=_t.slice(1),wn;return u({},G,{outgoingPayloadQueues:cn.length?u({},Nt,(wn={},wn[ct]=cn,wn)):Nt})}if(xe==="backend/removePayloadQueue"){var it=de.id,Kn=G.outgoingPayloadQueues,Pt=Kn[it],Mt=f(Kn,[it].map(d));return u({},G,{outgoingPayloadQueues:Mt})}return G},K=function(G){var le,xe;return function(de){return function(me){var pe=W(G.getState()),Me=pe.suspended,Ke=pe.outgoingPayloadQueues,Le=me.type,Se=me.payload;if(Le==="update"){G.dispatch(p(Se));return}if(Le==="suspend"){G.dispatch(B());return}if(Le==="ping"){Byond.sendMessage("ping/reply");return}if(Le==="backend/suspendStart"&&!xe){c.log("suspending ("+Byond.windowId+")");var ln=function(){return Byond.sendMessage("suspend")};ln(),xe=setInterval(ln,2e3)}if(Le==="backend/suspendSuccess"&&((0,O.Su)(),clearInterval(xe),xe=void 0,Byond.winset(Byond.windowId,{"is-visible":!1}),(0,b.sc)(),(0,b.zr)(),setTimeout(function(){return(0,t.$)()})),Le==="backend/update"){var ze,We,fn=(We=Se.config)==null||(ze=We.window)==null?void 0:ze.fancy;le===void 0?le=fn:le!==fn&&(c.log("changing fancy mode to",fn),le=fn,Byond.winset(Byond.windowId,{titlebar:!fn,"can-resize":!fn}))}if(Le==="backend/update"&&Me&&(c.log("backend/update",Se),(0,O.P7)(),(0,b.ao)(),(0,n.MN)(),setTimeout(function(){e.k.mark("resume/start");var Yn=W(G.getState()).suspended;Yn||(Byond.winset(Byond.windowId,{"is-visible":!0}),Byond.sendMessage("visible"),e.k.mark("resume/finish"))})),Le==="oversizePayloadResponse"){var Ze=Se.allow;Ze?G.dispatch(M(Se)):G.dispatch(P(Se))}if(Le==="acknowlegePayloadChunk"&&(G.dispatch(I(Se)),G.dispatch(M(Se))),Le==="nextPayloadChunk"){var In=Se.id,En=Ke[In][0];Byond.sendMessage("payloadChunk",{id:In,chunk:En})}return de(me)}}},R=function(G,le){for(var xe=G.length,de=xe-1,me=0,pe=0;me1024){var Le=me+R(Me,1024);de.push(le.slice(me,Le"u"?"undefined":v(le))==="object"&&le!==null&&!Array.isArray(le);if(!xe){c.error("Payload for act() must be an object, got this:",le);return}var de=JSON.stringify(le),me=Object.entries({type:"act/"+G,payload:de,tgui:1,windowId:Byond.windowId}).reduce(function(Ke,Le,Se){var ln=Le[0],ze=Le[1];return Ke+((Se>0?"&":"?")+encodeURIComponent(ln)+"="+encodeURIComponent(ze))},"").length;if(me>2048){var pe=de.split(F),Me=""+Date.now();h?.dispatch(C({id:Me,chunks:pe})),Byond.sendMessage("oversizedPayloadRequest",{type:"act/"+G,id:Me,chunkCount:pe.length});return}Byond.sendMessage("act/"+G,le)},W=function(G){return G.backend||{}},N=function(){var G,le=h==null||(G=h.getState())==null?void 0:G.backend;return u({},le,{act:$})},Z=function(G,le){var xe,de=h==null||(xe=h.getState())==null?void 0:xe.backend,me,pe=(me=de?.shared)!=null?me:{},Me=G in pe?pe[G]:le;return[Me,function(Ke){h.dispatch(j({key:G,nextState:typeof Ke=="function"?Ke(Me):Ke}))}]},ie=function(G,le){var xe,de=h==null||(xe=h.getState())==null?void 0:xe.backend,me,pe=(me=de?.shared)!=null?me:{},Me=G in pe?pe[G]:le;return[Me,function(Ke){Byond.sendMessage({type:"setSharedState",key:G,value:JSON.stringify(typeof Ke=="function"?Ke(Me):Ke)||""})}]},Q=function(){return h.dispatch},V=function(G){return G(h?.getState())}},405:(q,S,r)=>{"use strict";r.r(S),r.d(S,{Chameleon:()=>y,ChameleonAppearances:()=>f});var e=r(1131),s=r(9845),n=r(5070),t=r(1859),a=r(360),O=r(5180),b=r(3521),y=function(m){return(0,e.jsx)(b.p8,{width:431,height:500,theme:"syndicate",children:(0,e.jsx)(b.p8.Content,{children:(0,e.jsx)(f,{})})})},u=function(m,d){d===void 0&&(d="");var v=(0,s.XZ)(d,function(_){return _.name});return(0,n.L)([function(_){return(0,t.pb)(_,function(l){return!!l?.name})},function(_){return d?(0,t.pb)(_,v):_}])(m)},f=function(m){var d=(0,a.Oc)(),v=d.act,_=d.data,l=(0,a.Ul)("searchText",""),c=l[0],h=l[1],g=u(_.chameleon_skins,c),p=_.selected_appearance;return(0,e.jsxs)(O.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(O.BJ.Item,{children:(0,e.jsx)(O.pd,{fluid:!0,placeholder:"Search for an appearance",expensive:!0,onChange:h})}),(0,e.jsx)(O.BJ.Item,{grow:!0,children:(0,e.jsx)(O.wn,{fill:!0,scrollable:!0,title:"Item Appearance",children:g.map(function(j){var x=j.name+"_"+j.icon_state;return(0,e.jsx)(O.c_,{dmIcon:j.icon,dmIconState:j.icon_state,imageSize:64,m:.5,selected:x===p,tooltip:j.name,style:{opacity:x===p&&"1"||"0.5"},onClick:function(){v("change_appearance",{new_appearance:x})}},x)})})})]})}},436:(q,S,r)=>{"use strict";r.r(S),r.d(S,{CoinMint:()=>O});var e=r(1131),s=r(185),n=r(360),t=r(5180),a=r(3521),O=function(b){var y=(0,n.Oc)(),u=y.act,f=y.data,m=f.materials,d=f.moneyBag,v=f.moneyBagContent,_=f.moneyBagMaxContent,l=(d?210:138)+Math.ceil(m.length/4)*64;return(0,e.jsx)(a.p8,{width:256,height:l,title:"\u041C\u043E\u043D\u0435\u0442\u043D\u044B\u0439 \u043F\u0440\u0435\u0441\u0441",children:(0,e.jsx)(a.p8.Content,{children:(0,e.jsxs)(t.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(t.BJ.Item,{children:(0,e.jsxs)(t.IC,{m:0,info:!0,children:["\u041F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u043E \u043C\u043E\u043D\u0435\u0442: ",f.totalCoins]})}),(0,e.jsx)(t.BJ.Item,{grow:!0,children:(0,e.jsx)(t.wn,{fill:!0,title:"\u0422\u0438\u043F \u041C\u043E\u043D\u0435\u0442",buttons:(0,e.jsx)(t.$n,{icon:"power-off",color:f.active&&"bad",tooltip:!d&&"\u041D\u0443\u0436\u0435\u043D \u0434\u0435\u043D\u0435\u0436\u043D\u044B\u0439 \u043C\u0435\u0448\u043E\u043A",disabled:!d,onClick:function(){return u("activate")}}),children:(0,e.jsxs)(t.BJ,{vertical:!0,children:[(0,e.jsx)(t.BJ.Item,{children:(0,e.jsxs)(t.BJ,{children:[(0,e.jsx)(t.BJ.Item,{grow:!0,children:(0,e.jsx)(t.z2,{minValue:0,maxValue:f.maxMaterials,value:f.totalMaterials})}),(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.$n,{icon:"eject",tooltip:"\u0418\u0437\u0432\u0432\u043B\u0435\u0447\u044C \u0432\u044B\u0431\u0440\u0430\u043D\u044B\u0439 \u043C\u0430\u0442\u0435\u0440\u0438\u0430\u043B",onClick:function(){return u("ejectMat")}})})]})}),(0,e.jsx)(t.BJ.Item,{grow:!0,children:m.map(function(c){return(0,e.jsx)(t.$n,{bold:!0,inline:!0,m:.2,textAlign:"center",color:"translucent",selected:c.id===f.chosenMaterial,tooltip:c.name,onClick:function(){return u("selectMaterial",{material:c.id})},children:(0,e.jsxs)(t.BJ,{vertical:!0,children:[(0,e.jsx)(t.BJ.Item,{className:(0,s.Ly)(["materials32x32",c.id])}),(0,e.jsx)(t.BJ.Item,{children:c.amount})]})},c.id)})})]})})}),!!d&&(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.wn,{title:"\u0414\u0435\u043D\u0435\u0436\u043D\u044B\u0439 \u043C\u0435\u0448\u043E\u043A",buttons:(0,e.jsx)(t.$n,{icon:"eject",disabled:f.active,onClick:function(){return u("ejectBag")},children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C"}),children:(0,e.jsxs)(t.z2,{width:"100%",minValue:0,maxValue:_,value:v,children:[v," / ",_]})})})]})})})}},453:(q,S,r)=>{"use strict";r.r(S),r.d(S,{StackCraft:()=>d});var e=r(1131),s=r(360),n=r(1859),t=r(5070),a=r(9845),O=r(3521),b=r(5180),y=r(7003);function u(j,x){(x==null||x>j.length)&&(x=j.length);for(var C=0,I=new Array(x);C=j.length?{done:!0}:{done:!1,value:j[I++]}}}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 d=function(){return(0,e.jsx)(O.p8,{width:350,height:500,children:(0,e.jsx)(O.p8.Content,{children:(0,e.jsx)(v,{})})})},v=function(j){var x=(0,s.Oc)().data,C=x.amount,I=x.recipes,P=(0,y.useState)(""),M=P[0],B=P[1],w=_(I,(0,a.XZ)(M)),T=(0,y.useState)(!1),K=T[0],R=T[1];return(0,e.jsx)(b.wn,{fill:!0,scrollable:!0,title:"Amount: "+C,buttons:(0,e.jsxs)(e.Fragment,{children:[K&&(0,e.jsx)(b.pd,{width:12.5,value:M,placeholder:"Find recipe",expensive:!0,onChange:B}),(0,e.jsx)(b.$n,{ml:.5,tooltip:"Search",tooltipPosition:"bottom-end",icon:"magnifying-glass",selected:K,onClick:function(){return R(!K)}})]}),children:w?(0,e.jsx)(g,{recipes:w}):(0,e.jsx)(b.IC,{children:"No recipes found!"})})},_=function(j,x){var C=(0,t.L)([function(I){return(0,n.Tj)(I,function(P){var M=P[0],B=P[1];return l(B)?x(M)?P:[M,_(B,x)]:x(M)?P:[M,void 0]})},function(I){return(0,n.pb)(I,function(P){var M=P[0],B=P[1];return B!==void 0})},function(I){return(0,n.Ul)(I,function(P){var M=P[0],B=P[1];return M})},function(I){return(0,n.Ul)(I,function(P){var M=P[0],B=P[1];return!l(B)})},function(I){return(0,n.TS)(I,function(P,M){var B=M[0],w=M[1];return P[B]=w,P},{})}])(Object.entries(j));return Object.keys(C).length?C:void 0},l=function(j){return j.uid===void 0},c=function(j,x){return j.required_amount>x?0:Math.floor(x/j.required_amount)},h=function(j){for(var x=function(){var R=K.value;M>=R&&w.push((0,e.jsx)(b.$n,{bold:!0,color:"translucent",fontSize:.85,width:"32px",onClick:function(){return C("make",{recipe_uid:I.uid,multiplier:R})},children:R*I.result_amount+"x"}))},C=(0,s.Oc)().act,I=j.recipe,P=j.max_possible_multiplier,M=Math.min(P,Math.floor(I.max_result_amount/I.result_amount)),B=[5,10,25],w=[],T=m(B),K;!(K=T()).done;)x();return B.indexOf(M)===-1&&w.push((0,e.jsx)(b.$n,{bold:!0,color:"translucent",fontSize:.85,width:"32px",onClick:function(){return C("make",{recipe_uid:I.uid,multiplier:M})},children:M*I.result_amount+"x"})),(0,e.jsx)(e.Fragment,{children:w.map(function(R){return R})})},g=function(j){var x=j.recipes;return Object.entries(x).map(function(C){var I=C[0],P=C[1];return l(P)?(0,e.jsx)(b.Nt,{title:I,childStyles:{marginTop:"0",paddingBottom:"0.5em",backgroundColor:"rgba(62, 97, 137, 0.15)",border:"1px solid rgba(255, 255, 255, 0.1)",borderTop:"none"},children:(0,e.jsx)(b.az,{p:1,pb:.25,children:(0,e.jsx)(g,{recipes:P})})},I):(0,e.jsx)(p,{title:I,recipe:P},I)})},p=function(j){var x=(0,s.Oc)(),C=x.act,I=x.data,P=I.amount,M=j.title,B=j.recipe,w=B.result_amount,T=B.required_amount,K=B.max_result_amount,R=B.uid,U=B.icon,F=B.icon_state,$=B.image,W=w>1?""+w+"x ":"",N=T>1?"s":"",Z=""+W+M,ie=T+" sheet"+N,Q=c(B,P);return(0,e.jsx)(b.c_,{fluid:!0,base64:$,dmIcon:U,dmIconState:F,imageSize:32,disabled:!Q,tooltip:ie,buttons:K>1&&Q>1&&(0,e.jsx)(h,{recipe:B,max_possible_multiplier:Q}),onClick:function(){return C("make",{recipe_uid:R,multiplier:1})},children:Z})}},464:(q,S,r)=>{"use strict";r.r(S),r.d(S,{BrigCells:()=>b});var e=r(1131),s=r(3521),n=r(5180),t=r(360),a=function(y){var u=y.cell,f=(0,t.Oc)().act,m=u.cell_id,d=u.occupant,v=u.crimes,_=u.brigged_by,l=u.time_left_seconds,c=u.time_set_seconds,h=u.ref,g="";l>0&&(g+=" BrigCells__listRow--active");var p=function(){f("release",{ref:h})};return(0,e.jsxs)(n.XI.Row,{className:g,children:[(0,e.jsx)(n.XI.Cell,{children:m}),(0,e.jsx)(n.XI.Cell,{children:d}),(0,e.jsx)(n.XI.Cell,{children:v}),(0,e.jsx)(n.XI.Cell,{children:_}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.qT,{value:c})}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.qT,{value:l})}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{onClick:p,children:"Release"})})]})},O=function(y){var u=y.cells;return(0,e.jsxs)(n.XI,{className:"BrigCells__list",style:{borderCollapse:"separate",borderSpacing:"0 5px"},children:[(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{header:!0,children:"Cell"}),(0,e.jsx)(n.XI.Cell,{header:!0,children:"Occupant"}),(0,e.jsx)(n.XI.Cell,{header:!0,children:"Crimes"}),(0,e.jsx)(n.XI.Cell,{header:!0,children:"Brigged By"}),(0,e.jsx)(n.XI.Cell,{header:!0,children:"Time Brigged For"}),(0,e.jsx)(n.XI.Cell,{header:!0,children:"Time Left"}),(0,e.jsx)(n.XI.Cell,{header:!0,children:"Release"})]}),u.map(function(f){return(0,e.jsx)(a,{cell:f},f.ref)})]})},b=function(y){var u=(0,t.Oc)().data,f=u.cells;return(0,e.jsx)(s.p8,{theme:"security",width:800,height:400,children:(0,e.jsx)(s.p8.Content,{children:(0,e.jsx)(n.BJ,{fill:!0,vertical:!0,children:(0,e.jsx)(n.wn,{fill:!0,scrollable:!0,children:(0,e.jsx)(O,{cells:f})})})})})}},532:(q,S,r)=>{"use strict";r.r(S),r.d(S,{StripMenu:()=>p});var e=r(1131),s=r(1859),n=r(1243),t=r(360),a=r(5180),O=r(3521);function b(j,x){(x==null||x>j.length)&&(x=j.length);for(var C=0,I=new Array(x);C=j.length?{done:!0}:{done:!1,value:j[I++]}}}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 f=5,m=function(j){return j===0?5:9},d="64px",v=function(j){return j[0]+"/"+j[1]},_=function(j){var x=j.align,C=j.children;return(0,e.jsx)(a.az,{style:{position:"absolute",left:x==="left"?"6px":"48px",textAlign:x,textShadow:"2px 2px 2px #000",top:"2px"},children:C})},l={enable_internals:{icon:"lungs",text:"Enable internals"},disable_internals:{icon:"lungs",text:"Disable internals"},enable_lock:{icon:"lock",text:"Enable lock"},disable_lock:{icon:"unlock",text:"Disable lock"},suit_sensors:{icon:"tshirt",text:"Adjust suit sensors"},remove_accessory:{icon:"medal",text:"Remove accessory"},dislodge_headpocket:{icon:"head-side-virus",text:"Dislodge headpocket"}},c={neck:{displayName:"neck",gridSpot:v([0,0]),image:"inventory-neck.png"},eyes:{displayName:"eyewear",gridSpot:v([1,0]),image:"inventory-glasses.png"},head:{displayName:"headwear",gridSpot:v([0,1]),image:"inventory-head.png"},mask:{displayName:"mask",gridSpot:v([1,1]),image:"inventory-mask.png"},pet_collar:{displayName:"collar",gridSpot:v([1,1]),image:"inventory-collar.png"},right_ear:{displayName:"right ear",gridSpot:v([0,2]),image:"inventory-ears.png"},left_ear:{displayName:"left ear",gridSpot:v([1,2]),image:"inventory-ears.png"},parrot_headset:{displayName:"headset",gridSpot:v([1,2]),image:"inventory-ears.png"},handcuffs:{displayName:"handcuffs",gridSpot:v([1,3])},legcuffs:{displayName:"legcuffs",gridSpot:v([1,4])},jumpsuit:{displayName:"uniform",gridSpot:v([2,0]),image:"inventory-uniform.png"},suit:{displayName:"suit",gridSpot:v([2,1]),image:"inventory-suit.png"},gloves:{displayName:"gloves",gridSpot:v([2,2]),image:"inventory-gloves.png"},right_hand:{displayName:"right hand",gridSpot:v([2,3]),image:"inventory-hand_r.png",additionalComponent:(0,e.jsx)(_,{align:"left",children:"R"})},left_hand:{displayName:"left hand",gridSpot:v([2,4]),image:"inventory-hand_l.png",additionalComponent:(0,e.jsx)(_,{align:"right",children:"L"})},shoes:{displayName:"shoes",gridSpot:v([3,1]),image:"inventory-shoes.png"},suit_storage:{displayName:"suit storage",gridSpot:v([4,0]),image:"inventory-suit_storage.png"},id:{displayName:"ID",gridSpot:v([4,1]),image:"inventory-id.png"},belt:{displayName:"belt",gridSpot:v([4,2]),image:"inventory-belt.png"},back:{displayName:"backpack",gridSpot:v([4,3]),image:"inventory-back.png"},left_pocket:{displayName:"left pocket",gridSpot:v([3,4]),image:"inventory-pocket.png"},right_pocket:{displayName:"right pocket",gridSpot:v([3,3]),image:"inventory-pocket.png"},pda:{displayName:"PDA",gridSpot:v([4,4]),image:"inventory-pda.png"}},h={neck:{displayName:"neck",gridSpot:v([0,0]),image:"inventory-neck.png"},eyes:{displayName:"eyewear",gridSpot:v([1,0]),image:"inventory-glasses.png"},head:{displayName:"headwear",gridSpot:v([0,1]),image:"inventory-head.png"},mask:{displayName:"mask",gridSpot:v([1,1]),image:"inventory-mask.png"},pet_collar:{displayName:"collar",gridSpot:v([1,1]),image:"inventory-collar.png"},right_ear:{displayName:"right ear",gridSpot:v([0,2]),image:"inventory-ears.png"},left_ear:{displayName:"left ear",gridSpot:v([1,2]),image:"inventory-ears.png"},parrot_headset:{displayName:"headset",gridSpot:v([1,2]),image:"inventory-ears.png"},handcuffs:{displayName:"handcuffs",gridSpot:v([1,3])},legcuffs:{displayName:"legcuffs",gridSpot:v([1,4])},jumpsuit:{displayName:"uniform",gridSpot:v([2,0]),image:"inventory-uniform.png"},suit:{displayName:"suit",gridSpot:v([2,1]),image:"inventory-suit.png"},gloves:{displayName:"gloves",gridSpot:v([2,2]),image:"inventory-gloves.png"},right_hand:{displayName:"right hand",gridSpot:v([4,4]),image:"inventory-hand_r.png",additionalComponent:(0,e.jsx)(_,{align:"left",children:"R"})},left_hand:{displayName:"left hand",gridSpot:v([4,5]),image:"inventory-hand_l.png",additionalComponent:(0,e.jsx)(_,{align:"right",children:"L"})},shoes:{displayName:"shoes",gridSpot:v([3,1]),image:"inventory-shoes.png"},suit_storage:{displayName:"suit storage",gridSpot:v([4,0]),image:"inventory-suit_storage.png"},id:{displayName:"ID",gridSpot:v([4,1]),image:"inventory-id.png"},belt:{displayName:"belt",gridSpot:v([4,2]),image:"inventory-belt.png"},back:{displayName:"backpack",gridSpot:v([4,3]),image:"inventory-back.png"},left_pocket:{displayName:"left pocket",gridSpot:v([4,7]),image:"inventory-pocket.png"},right_pocket:{displayName:"right pocket",gridSpot:v([4,6]),image:"inventory-pocket.png"},pda:{displayName:"PDA",gridSpot:v([4,8]),image:"inventory-pda.png"}},g=function(j){return j[j.Completely=1]="Completely",j[j.Hidden=2]="Hidden",j}(g||{}),p=function(j){var x=(0,t.Oc)(),C=x.act,I=x.data,P=new Map;if(I.show_mode===0)for(var M=u(Object.keys(I.items)),B;!(B=M()).done;){var w=B.value;P.set(c[w].gridSpot,w)}else for(var T=u(Object.keys(I.items)),K;!(K=T()).done;){var R=K.value;P.set(h[R].gridSpot,R)}var U=function($){return $?$.cantstrip?"transparent":$.interacting?"average":"translucent":"translucent"},F=function($){return $&&$.cantstrip?"transparent":"none"};return(0,e.jsx)(O.p8,{title:"Stripping "+I.name,width:m(I.show_mode)*64+6*(m(I.show_mode)+1),height:390,theme:"nologo",children:(0,e.jsx)(O.p8.Content,{style:{backgroundColor:"rgba(0, 0, 0, 0.5)"},children:(0,e.jsx)(a.BJ,{fill:!0,vertical:!0,children:(0,s.y1)(0,f).map(function($){return(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(a.BJ,{fill:!0,children:(0,s.y1)(0,m(I.show_mode)).map(function(W){var N=v([$,W]),Z=P.get(N);if(!Z)return(0,e.jsx)(a.BJ.Item,{style:{width:d,height:d}},N);var ie=I.items[Z],Q=c[Z],V,G,le;return ie===null?le=Q.displayName:"name"in ie?(G=(0,e.jsx)(a.Hg,{icon:ie.icon,icon_state:ie.icon_state,height:"100%",width:"100%",style:{verticalAlign:"middle"}}),le=ie.name):"obscured"in ie&&(G=(0,e.jsx)(a.In,{name:ie.obscured===1?"ban":"eye-slash",size:3,ml:0,mt:2.5,color:"white",style:{textAlign:"center",height:"100%",width:"100%"}}),le="obscured "+Q.displayName),ie!==null&&"alternates"in ie&&ie.alternates!==null&&(V=ie.alternates),(0,e.jsx)(a.BJ.Item,{style:{width:d,height:d},children:(0,e.jsxs)(a.az,{style:{position:"relative",width:"100%",height:"100%"},children:[(0,e.jsxs)(a.$n,{onClick:function(){C("use",{key:Z})},fluid:!0,color:U(ie),tooltip:le,style:{position:"relative",width:"100%",height:"100%",padding:0,backgroundColor:F(ie)},children:[Q.image&&(0,e.jsx)(a._V,{src:(0,n.l)(Q.image),opacity:.7,style:{position:"absolute",width:"32px",height:"32px",left:"50%",top:"50%",transform:"translateX(-50%) translateY(-50%) scale(2)"}}),(0,e.jsx)(a.az,{style:{position:"relative"},children:G}),Q.additionalComponent]}),(0,e.jsx)(a.BJ,{direction:"row-reverse",children:V!==void 0&&V.map(function(xe,de){var me=de*1.8;return(0,e.jsx)(a.BJ.Item,{width:"100%",children:(0,e.jsx)(a.$n,{onClick:function(){C("alt",{key:Z,action_key:xe})},tooltip:l[xe].text,width:"1.8em",style:{background:"rgba(0, 0, 0, 0.6)",position:"absolute",bottom:0,right:""+me+"em",zIndex:2+de},children:(0,e.jsx)(a.In,{name:l[xe].icon})})},de)})})]})},N)})})},$)})})})})}},538:(q,S,r)=>{"use strict";r.r(S),r.d(S,{ComplexModal:()=>f,modalAnswer:()=>y,modalClose:()=>u,modalOpen:()=>O,modalRegisterBodyOverride:()=>b});var e=r(1131),s=r(360),n=r(5180);function t(m){"@swc/helpers - typeof";return m&&typeof Symbol<"u"&&m.constructor===Symbol?"symbol":typeof m}var a={},O=function(m,d){var v=(0,s.Oc)(),_=v.act,l=v.data,c=Object.assign(l.modal?l.modal.args:{},d||{});_("modal_open",{id:m,arguments:JSON.stringify(c)})},b=function(m,d){a[m]=d},y=function(m,d,v){var _=(0,s.Oc)(),l=_.act,c=_.data;if(c.modal){var h=Object.assign(c.modal.args||{},v||{});l("modal_answer",{id:m,answer:d,arguments:JSON.stringify(h)})}},u=function(m){var d=(0,s.Oc)().act;d("modal_close",{id:m})},f=function(m){var d=(0,s.Oc)().data;if(d.modal){var v=d.modal,_=v.id,l=v.text,c=v.type,h,g=(0,e.jsx)(n.$n,{className:"Button--modal",icon:"arrow-left",onClick:function(){return u(_)},children:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C"}),p,j,x="auto";if(a[_])p=a[_](d.modal);else if(c==="input"){var C=d.modal.value;h=function(P){return y(_,C)},p=(0,e.jsx)(n.pd,{value:d.modal.value.toString(),placeholder:"ENTER \u0434\u043B\u044F \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043D\u0438\u044F",width:"100%",my:"0.5rem",autoFocus:!0,onChange:function(P){C=P}}),j=(0,e.jsxs)(n.az,{mt:"0.5rem",children:[(0,e.jsx)(n.$n,{icon:"arrow-left",color:"grey",onClick:function(){return u(_)},children:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C"}),(0,e.jsx)(n.$n,{icon:"check",color:"good",style:{float:"right"},m:"0",onClick:function(){return y(_,C)},children:"\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044C"}),(0,e.jsx)(n.az,{style:{clear:"both"}})]})}else if(c==="choice"){var I=t(d.modal.choices)==="object"?Object.values(d.modal.choices):d.modal.choices;p=(0,e.jsx)(n.ms,{options:I,selected:d.modal.value,width:"100%",my:"0.5rem",onSelected:function(P){return y(_,P)}}),x="initial"}else c==="bento"?p=(0,e.jsx)(n.BJ,{wrap:"wrap",my:"0.5rem",maxHeight:"1%",children:d.modal.choices.map(function(P,M){return(0,e.jsx)(n.BJ.Item,{style:{flex:"1 1 auto"},children:(0,e.jsx)(n.$n,{selected:M+1===parseInt(d.modal.value,10),onClick:function(){return y(_,M+1)},children:(0,e.jsx)(n._V,{src:P})})},M)})}):c==="boolean"&&(j=(0,e.jsxs)(n.az,{mt:"0.5rem",children:[(0,e.jsx)(n.$n,{icon:"times",color:"bad",style:{float:"left"},mb:"0",onClick:function(){return y(_,0)},children:d.modal.no_text}),(0,e.jsx)(n.$n,{icon:"check",color:"good",style:{float:"right"},m:"0",onClick:function(){return y(_,1)},children:d.modal.yes_text}),(0,e.jsx)(n.az,{style:{clear:"both"}})]}));return(0,e.jsxs)(n.aF,{maxWidth:m.maxWidth||window.innerWidth/2+"px",maxHeight:m.maxHeight||window.innerHeight/2+"px",onEnter:h,mx:"auto",overflowY:x,"padding-bottom":"5px",children:[l&&(0,e.jsx)(n.az,{inline:!0,children:l}),a[_]&&g,p,j]})}}},561:(q,S,r)=>{"use strict";r.r(S),r.d(S,{AnomalyGenerator:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(O){var b=(0,s.Oc)(),y=b.act,u=b.data,f=u.type,m=u.tier,d=u.creating,v=u.req_energy,_=u.req_item,l=u.anomaly_type,c=u.charge,h=u.generating,g=u.use_acps,p=u.use_smeses,j=u.use_powernet,x=u.has_powernet,C=u.last_charge;return h?(0,e.jsx)(t.p8,{width:710,height:250,title:"\u0413\u0435\u043D\u0435\u0440\u0430\u0442\u043E\u0440 \u0430\u043D\u043E\u043C\u0430\u043B\u0438\u0439",children:(0,e.jsxs)(t.p8.Content,{children:[(0,e.jsx)(n.Ki,{children:(0,e.jsxs)(n.Ki.Item,{label:"\u0418\u0441\u0442\u043E\u0447\u043D\u0438\u043A\u0438 \u044D\u043D\u0435\u0440\u0433\u0438\u0438",children:[(0,e.jsx)(n.$n,{selected:g,onClick:function(){return y("toggle_apcs",{})},children:"\u041B\u041A\u041F"}),(0,e.jsx)(n.$n,{selected:p,onClick:function(){return y("toggle_smeses",{})},children:"\u0421\u041A\u0410\u041D\u044B \u0440\u044F\u0434\u043E\u043C"}),(0,e.jsx)(n.$n,{selected:j,disabled:!x,onClick:function(){return y("toggle_powernet",{})},children:"\u0423\u0437\u0435\u043B \u044D\u043D\u0435\u0440\u0433\u043E\u0441\u0435\u0442\u0438"})]})}),(0,e.jsxs)(n.az,{children:["\u0421\u043E\u0437\u0434\u0430\u0435\u0442\u0441\u044F ",l," \u0430\u043D\u043E\u043C\u0430\u043B\u0438\u044F."]}),(0,e.jsxs)(n.az,{children:["\u041D\u0430\u043A\u043E\u043F\u043B\u0435\u043D\u043E \u044D\u043D\u0435\u0440\u0433\u0438\u0438: ",c,"/",v]}),(0,e.jsxs)(n.az,{children:["\u041D\u0430\u043A\u043E\u043F\u043B\u0435\u043D\u0438\u0435 \u044D\u043D\u0435\u0440\u0433\u0438\u0438 \u0432 \u0441\u0435\u043A\u0443\u043D\u0434\u0443: ",C]}),(0,e.jsx)(n.$n,{onClick:function(){return y("stop",{})},children:"\u041F\u0440\u0435\u043A\u0440\u0430\u0442\u0438\u0442\u044C \u0441\u043E\u0437\u0434\u0430\u043D\u0438\u0435"})]})}):(0,e.jsx)(t.p8,{width:710,height:500,title:"\u0413\u0435\u043D\u0435\u0440\u0430\u0442\u043E\u0440 \u0430\u043D\u043E\u043C\u0430\u043B\u0438\u0439",children:(0,e.jsxs)(t.p8.Content,{children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"\u0418\u0441\u0442\u043E\u0447\u043D\u0438\u043A\u0438 \u044D\u043D\u0435\u0440\u0433\u0438\u0438",children:[(0,e.jsx)(n.$n,{selected:g,onClick:function(){return y("toggle_apcs",{})},children:"\u041B\u041A\u041F"}),(0,e.jsx)(n.$n,{selected:p,onClick:function(){return y("toggle_smeses",{})},children:"\u0421\u041A\u0410\u041D\u044B \u0440\u044F\u0434\u043E\u043C"}),(0,e.jsx)(n.$n,{selected:j,disabled:!x,onClick:function(){return y("toggle_powernet",{})},children:"\u0423\u0437\u0435\u043B \u044D\u043D\u0435\u0440\u0433\u043E\u0441\u0435\u0442\u0438"})]}),(0,e.jsxs)(n.Ki.Item,{label:"\u0422\u0438\u043F \u0430\u043D\u043E\u043C\u0430\u043B\u0438\u0438",children:[(0,e.jsx)(n.$n,{selected:f==="random",onClick:function(){return y("choose_type",{type:"random"})},children:"\u0421\u043B\u0443\u0447\u0430\u0439\u043D\u044B\u0439"}),(0,e.jsx)(n.$n,{selected:f==="pyroclastic",onClick:function(){return y("choose_type",{type:"pyroclastic"})},children:"\u0410\u0442\u043C\u043E\u0441\u0444\u0435\u0440\u043D\u0430\u044F"}),(0,e.jsx)(n.$n,{selected:f==="bluespace",onClick:function(){return y("choose_type",{type:"bluespace"})},children:"\u0411\u043B\u044E\u0441\u043F\u0435\u0439\u0441"}),(0,e.jsx)(n.$n,{selected:f==="vortex",onClick:function(){return y("choose_type",{type:"vortex"})},children:"\u0412\u0438\u0445\u0440\u0435\u0432\u0430\u044F"}),(0,e.jsx)(n.$n,{selected:f==="gravitational",onClick:function(){return y("choose_type",{type:"gravitational"})},children:"\u0413\u0440\u0430\u0432\u0438\u0442\u0430\u0446\u0438\u043E\u043D\u043D\u0430\u044F"}),(0,e.jsx)(n.$n,{selected:f==="energetic",onClick:function(){return y("choose_type",{type:"energetic"})},children:"\u042D\u043D\u0435\u0440\u0433\u0435\u0442\u0438\u0447\u0435\u0441\u043A\u0430\u044F"})]}),(0,e.jsxs)(n.Ki.Item,{label:"\u0423\u0440\u043E\u0432\u0435\u043D\u044C \u0430\u043D\u043E\u043C\u0430\u043B\u0438\u0438",children:[(0,e.jsx)(n.$n,{selected:m==="1",onClick:function(){return y("choose_tier",{tier:"1"})},children:"\u041C\u0430\u043B\u0430\u044F"}),(0,e.jsx)(n.$n,{selected:m==="2",onClick:function(){return y("choose_tier",{tier:"2"})},children:"\u0421\u0440\u0435\u0434\u043D\u044F\u044F"}),(0,e.jsx)(n.$n,{selected:m==="3",onClick:function(){return y("choose_tier",{tier:"3"})},children:"\u0411\u043E\u043B\u044C\u0448\u0430\u044F"})]})]}),(0,e.jsxs)(n.az,{children:["\u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044F: ",_]}),(0,e.jsxs)(n.az,{children:["\u0420\u0430\u0441\u0445\u043E\u0434\u0443\u0435\u043C\u044B\u0439 \u0437\u0430\u0440\u044F\u0434: ",v]}),(0,e.jsx)(n.$n,{selected:d===!0,mt:"0.5rem",onClick:function(){return y("generate")},children:"\u0421\u043E\u0437\u0434\u0430\u0442\u044C \u0430\u043D\u043E\u043C\u0430\u043B\u0438\u044E"}),(0,e.jsx)(n.$n,{mt:"0.5rem",onClick:function(){return y("eject_all")},children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u0441\u043E\u0434\u0435\u0440\u0436\u0438\u043C\u043E\u0435"}),(0,e.jsx)(n.$n,{mt:"0.5rem",onClick:function(){return y("beakon")},children:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u043C\u0430\u044F\u0447\u043E\u043A"})]})})}},573:(q,S,r)=>{"use strict";r.r(S),r.d(S,{meta:()=>a});var e=r(1131),s=r(7003),n=r(5180),t=r(4947);/** + */function y(G,le){(le==null||le>G.length)&&(le=G.length);for(var xe=0,de=new Array(le);xe=0)&&(xe[me]=G[me]);return xe}function m(G,le){if(v(G)!=="object"||G===null)return G;var xe=G[Symbol.toPrimitive];if(xe!==void 0){var de=xe.call(G,le||"default");if(v(de)!=="object")return de;throw new TypeError("@@toPrimitive must return a primitive value.")}return(le==="string"?String:Number)(G)}function d(G){var le=m(G,"string");return v(le)==="symbol"?le:String(le)}function v(G){"@swc/helpers - typeof";return G&&typeof Symbol<"u"&&G.constructor===Symbol?"symbol":typeof G}function _(G,le){if(G){if(typeof G=="string")return y(G,le);var xe=Object.prototype.toString.call(G).slice(8,-1);if(xe==="Object"&&G.constructor&&(xe=G.constructor.name),xe==="Map"||xe==="Set")return Array.from(xe);if(xe==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(xe))return y(G,le)}}function l(G,le){var xe=typeof Symbol<"u"&&G[Symbol.iterator]||G["@@iterator"];if(xe)return(xe=xe.call(G)).next.bind(xe);if(Array.isArray(G)||(xe=_(G))||le&&G&&typeof G.length=="number"){xe&&(G=xe);var de=0;return function(){return de>=G.length?{done:!0}:{done:!1,value:G[de++]}}}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=(0,a.h)("backend"),h,g=function(G){h=G},p=(0,s.VP)("backend/update"),j=(0,s.VP)("backend/setSharedState"),x=(0,s.VP)("backend/suspendStart"),C=(0,s.VP)("backend/createPayloadQueue"),I=(0,s.VP)("backend/dequeuePayloadQueue"),P=(0,s.VP)("backend/removePayloadQueue"),M=(0,s.VP)("nextPayloadChunk"),B=function(){return{type:"backend/suspendSuccess",payload:{timestamp:Date.now()}}},w={config:{},data:{},shared:{},outgoingPayloadQueues:{},suspended:Date.now(),suspending:!1},T=function(G,le){G===void 0&&(G=w);var xe=le.type,de=le.payload;if(xe==="backend/update"){var me=u({},G.config,de.config),pe=u({},G.data,de.static_data,de.data),Me=u({},G.shared);if(de.shared)for(var Ke=l(Object.keys(de.shared)),Le;!(Le=Ke()).done;){var Se=Le.value,ln=de.shared[Se];ln===""?Me[Se]=void 0:Me[Se]=JSON.parse(ln)}return u({},G,{config:me,data:pe,shared:Me,suspended:!1})}if(xe==="backend/setSharedState"){var ze=de.key,We=de.nextState,fn;return u({},G,{shared:u({},G.shared,(fn={},fn[ze]=We,fn))})}if(xe==="backend/suspendStart")return u({},G,{suspending:!0});if(xe==="backend/suspendSuccess"){var Ze=de.timestamp;return u({},G,{data:{},shared:{},config:u({},G.config,{title:"",status:1}),suspending:!1,suspended:Ze})}if(xe==="backend/createPayloadQueue"){var In=de.id,En=de.chunks,Yn=G.outgoingPayloadQueues,Xn;return u({},G,{outgoingPayloadQueues:u({},Yn,(Xn={},Xn[In]=En,Xn))})}if(xe==="backend/dequeuePayloadQueue"){var ct=de.id,Ot=G.outgoingPayloadQueues,_t=Ot[ct],Nt=f(Ot,[ct].map(d)),nr=_t[0],cn=_t.slice(1),wn;return u({},G,{outgoingPayloadQueues:cn.length?u({},Nt,(wn={},wn[ct]=cn,wn)):Nt})}if(xe==="backend/removePayloadQueue"){var it=de.id,Kn=G.outgoingPayloadQueues,Pt=Kn[it],Mt=f(Kn,[it].map(d));return u({},G,{outgoingPayloadQueues:Mt})}return G},K=function(G){var le,xe;return function(de){return function(me){var pe=W(G.getState()),Me=pe.suspended,Ke=pe.outgoingPayloadQueues,Le=me.type,Se=me.payload;if(Le==="update"){G.dispatch(p(Se));return}if(Le==="suspend"){G.dispatch(B());return}if(Le==="ping"){Byond.sendMessage("ping/reply");return}if(Le==="backend/suspendStart"&&!xe){c.log("suspending ("+Byond.windowId+")");var ln=function(){return Byond.sendMessage("suspend")};ln(),xe=setInterval(ln,2e3)}if(Le==="backend/suspendSuccess"&&((0,b.Su)(),clearInterval(xe),xe=void 0,Byond.winset(Byond.windowId,{"is-visible":!1}),(0,O.sc)(),(0,O.zr)(),setTimeout(function(){return(0,t.$)()})),Le==="backend/update"){var ze,We,fn=(We=Se.config)==null||(ze=We.window)==null?void 0:ze.fancy;le===void 0?le=fn:le!==fn&&(c.log("changing fancy mode to",fn),le=fn,Byond.winset(Byond.windowId,{titlebar:!fn,"can-resize":!fn}))}if(Le==="backend/update"&&Me&&(c.log("backend/update",Se),(0,b.P7)(),(0,O.ao)(),(0,n.MN)(),setTimeout(function(){e.k.mark("resume/start");var Yn=W(G.getState()).suspended;Yn||(Byond.winset(Byond.windowId,{"is-visible":!0}),Byond.sendMessage("visible"),e.k.mark("resume/finish"))})),Le==="oversizePayloadResponse"){var Ze=Se.allow;Ze?G.dispatch(M(Se)):G.dispatch(P(Se))}if(Le==="acknowlegePayloadChunk"&&(G.dispatch(I(Se)),G.dispatch(M(Se))),Le==="nextPayloadChunk"){var In=Se.id,En=Ke[In][0];Byond.sendMessage("payloadChunk",{id:In,chunk:En})}return de(me)}}},R=function(G,le){for(var xe=G.length,de=xe-1,me=0,pe=0;me1024){var Le=me+R(Me,1024);de.push(le.slice(me,Le"u"?"undefined":v(le))==="object"&&le!==null&&!Array.isArray(le);if(!xe){c.error("Payload for act() must be an object, got this:",le);return}var de=JSON.stringify(le),me=Object.entries({type:"act/"+G,payload:de,tgui:1,windowId:Byond.windowId}).reduce(function(Ke,Le,Se){var ln=Le[0],ze=Le[1];return Ke+((Se>0?"&":"?")+encodeURIComponent(ln)+"="+encodeURIComponent(ze))},"").length;if(me>2048){var pe=de.split(F),Me=""+Date.now();h?.dispatch(C({id:Me,chunks:pe})),Byond.sendMessage("oversizedPayloadRequest",{type:"act/"+G,id:Me,chunkCount:pe.length});return}Byond.sendMessage("act/"+G,le)},W=function(G){return G.backend||{}},N=function(){var G,le=h==null||(G=h.getState())==null?void 0:G.backend;return u({},le,{act:$})},Z=function(G,le){var xe,de=h==null||(xe=h.getState())==null?void 0:xe.backend,me,pe=(me=de?.shared)!=null?me:{},Me=G in pe?pe[G]:le;return[Me,function(Ke){h.dispatch(j({key:G,nextState:typeof Ke=="function"?Ke(Me):Ke}))}]},ie=function(G,le){var xe,de=h==null||(xe=h.getState())==null?void 0:xe.backend,me,pe=(me=de?.shared)!=null?me:{},Me=G in pe?pe[G]:le;return[Me,function(Ke){Byond.sendMessage({type:"setSharedState",key:G,value:JSON.stringify(typeof Ke=="function"?Ke(Me):Ke)||""})}]},Q=function(){return h.dispatch},V=function(G){return G(h?.getState())}},405:(q,S,r)=>{"use strict";r.r(S),r.d(S,{Chameleon:()=>y,ChameleonAppearances:()=>f});var e=r(1131),s=r(9845),n=r(5070),t=r(1859),a=r(360),b=r(5180),O=r(3521),y=function(m){return(0,e.jsx)(O.p8,{width:431,height:500,theme:"syndicate",children:(0,e.jsx)(O.p8.Content,{children:(0,e.jsx)(f,{})})})},u=function(m,d){d===void 0&&(d="");var v=(0,s.XZ)(d,function(_){return _.name});return(0,n.L)([function(_){return(0,t.pb)(_,function(l){return!!l?.name})},function(_){return d?(0,t.pb)(_,v):_}])(m)},f=function(m){var d=(0,a.Oc)(),v=d.act,_=d.data,l=(0,a.Ul)("searchText",""),c=l[0],h=l[1],g=u(_.chameleon_skins,c),p=_.selected_appearance;return(0,e.jsxs)(b.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(b.BJ.Item,{children:(0,e.jsx)(b.pd,{fluid:!0,placeholder:"Search for an appearance",expensive:!0,onChange:h})}),(0,e.jsx)(b.BJ.Item,{grow:!0,children:(0,e.jsx)(b.wn,{fill:!0,scrollable:!0,title:"Item Appearance",children:g.map(function(j){var x=j.name+"_"+j.icon_state;return(0,e.jsx)(b.c_,{dmIcon:j.icon,dmIconState:j.icon_state,imageSize:64,m:.5,selected:x===p,tooltip:j.name,style:{opacity:x===p&&"1"||"0.5"},onClick:function(){v("change_appearance",{new_appearance:x})}},x)})})})]})}},436:(q,S,r)=>{"use strict";r.r(S),r.d(S,{CoinMint:()=>b});var e=r(1131),s=r(185),n=r(360),t=r(5180),a=r(3521),b=function(O){var y=(0,n.Oc)(),u=y.act,f=y.data,m=f.materials,d=f.moneyBag,v=f.moneyBagContent,_=f.moneyBagMaxContent,l=(d?210:138)+Math.ceil(m.length/4)*64;return(0,e.jsx)(a.p8,{width:256,height:l,title:"\u041C\u043E\u043D\u0435\u0442\u043D\u044B\u0439 \u043F\u0440\u0435\u0441\u0441",children:(0,e.jsx)(a.p8.Content,{children:(0,e.jsxs)(t.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(t.BJ.Item,{children:(0,e.jsxs)(t.IC,{m:0,info:!0,children:["\u041F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u043E \u043C\u043E\u043D\u0435\u0442: ",f.totalCoins]})}),(0,e.jsx)(t.BJ.Item,{grow:!0,children:(0,e.jsx)(t.wn,{fill:!0,title:"\u0422\u0438\u043F \u041C\u043E\u043D\u0435\u0442",buttons:(0,e.jsx)(t.$n,{icon:"power-off",color:f.active&&"bad",tooltip:!d&&"\u041D\u0443\u0436\u0435\u043D \u0434\u0435\u043D\u0435\u0436\u043D\u044B\u0439 \u043C\u0435\u0448\u043E\u043A",disabled:!d,onClick:function(){return u("activate")}}),children:(0,e.jsxs)(t.BJ,{vertical:!0,children:[(0,e.jsx)(t.BJ.Item,{children:(0,e.jsxs)(t.BJ,{children:[(0,e.jsx)(t.BJ.Item,{grow:!0,children:(0,e.jsx)(t.z2,{minValue:0,maxValue:f.maxMaterials,value:f.totalMaterials})}),(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.$n,{icon:"eject",tooltip:"\u0418\u0437\u0432\u0432\u043B\u0435\u0447\u044C \u0432\u044B\u0431\u0440\u0430\u043D\u044B\u0439 \u043C\u0430\u0442\u0435\u0440\u0438\u0430\u043B",onClick:function(){return u("ejectMat")}})})]})}),(0,e.jsx)(t.BJ.Item,{grow:!0,children:m.map(function(c){return(0,e.jsx)(t.$n,{bold:!0,inline:!0,m:.2,textAlign:"center",color:"translucent",selected:c.id===f.chosenMaterial,tooltip:c.name,onClick:function(){return u("selectMaterial",{material:c.id})},children:(0,e.jsxs)(t.BJ,{vertical:!0,children:[(0,e.jsx)(t.BJ.Item,{className:(0,s.Ly)(["materials32x32",c.id])}),(0,e.jsx)(t.BJ.Item,{children:c.amount})]})},c.id)})})]})})}),!!d&&(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.wn,{title:"\u0414\u0435\u043D\u0435\u0436\u043D\u044B\u0439 \u043C\u0435\u0448\u043E\u043A",buttons:(0,e.jsx)(t.$n,{icon:"eject",disabled:f.active,onClick:function(){return u("ejectBag")},children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C"}),children:(0,e.jsxs)(t.z2,{width:"100%",minValue:0,maxValue:_,value:v,children:[v," / ",_]})})})]})})})}},453:(q,S,r)=>{"use strict";r.r(S),r.d(S,{StackCraft:()=>d});var e=r(1131),s=r(360),n=r(1859),t=r(5070),a=r(9845),b=r(3521),O=r(5180),y=r(7003);function u(j,x){(x==null||x>j.length)&&(x=j.length);for(var C=0,I=new Array(x);C=j.length?{done:!0}:{done:!1,value:j[I++]}}}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 d=function(){return(0,e.jsx)(b.p8,{width:350,height:500,children:(0,e.jsx)(b.p8.Content,{children:(0,e.jsx)(v,{})})})},v=function(j){var x=(0,s.Oc)().data,C=x.amount,I=x.recipes,P=(0,y.useState)(""),M=P[0],B=P[1],w=_(I,(0,a.XZ)(M)),T=(0,y.useState)(!1),K=T[0],R=T[1];return(0,e.jsx)(O.wn,{fill:!0,scrollable:!0,title:"Amount: "+C,buttons:(0,e.jsxs)(e.Fragment,{children:[K&&(0,e.jsx)(O.pd,{width:12.5,value:M,placeholder:"Find recipe",expensive:!0,onChange:B}),(0,e.jsx)(O.$n,{ml:.5,tooltip:"Search",tooltipPosition:"bottom-end",icon:"magnifying-glass",selected:K,onClick:function(){return R(!K)}})]}),children:w?(0,e.jsx)(g,{recipes:w}):(0,e.jsx)(O.IC,{children:"No recipes found!"})})},_=function(j,x){var C=(0,t.L)([function(I){return(0,n.Tj)(I,function(P){var M=P[0],B=P[1];return l(B)?x(M)?P:[M,_(B,x)]:x(M)?P:[M,void 0]})},function(I){return(0,n.pb)(I,function(P){var M=P[0],B=P[1];return B!==void 0})},function(I){return(0,n.Ul)(I,function(P){var M=P[0],B=P[1];return M})},function(I){return(0,n.Ul)(I,function(P){var M=P[0],B=P[1];return!l(B)})},function(I){return(0,n.TS)(I,function(P,M){var B=M[0],w=M[1];return P[B]=w,P},{})}])(Object.entries(j));return Object.keys(C).length?C:void 0},l=function(j){return j.uid===void 0},c=function(j,x){return j.required_amount>x?0:Math.floor(x/j.required_amount)},h=function(j){for(var x=function(){var R=K.value;M>=R&&w.push((0,e.jsx)(O.$n,{bold:!0,color:"translucent",fontSize:.85,width:"32px",onClick:function(){return C("make",{recipe_uid:I.uid,multiplier:R})},children:R*I.result_amount+"x"}))},C=(0,s.Oc)().act,I=j.recipe,P=j.max_possible_multiplier,M=Math.min(P,Math.floor(I.max_result_amount/I.result_amount)),B=[5,10,25],w=[],T=m(B),K;!(K=T()).done;)x();return B.indexOf(M)===-1&&w.push((0,e.jsx)(O.$n,{bold:!0,color:"translucent",fontSize:.85,width:"32px",onClick:function(){return C("make",{recipe_uid:I.uid,multiplier:M})},children:M*I.result_amount+"x"})),(0,e.jsx)(e.Fragment,{children:w.map(function(R){return R})})},g=function(j){var x=j.recipes;return Object.entries(x).map(function(C){var I=C[0],P=C[1];return l(P)?(0,e.jsx)(O.Nt,{title:I,childStyles:{marginTop:"0",paddingBottom:"0.5em",backgroundColor:"rgba(62, 97, 137, 0.15)",border:"1px solid rgba(255, 255, 255, 0.1)",borderTop:"none"},children:(0,e.jsx)(O.az,{p:1,pb:.25,children:(0,e.jsx)(g,{recipes:P})})},I):(0,e.jsx)(p,{title:I,recipe:P},I)})},p=function(j){var x=(0,s.Oc)(),C=x.act,I=x.data,P=I.amount,M=j.title,B=j.recipe,w=B.result_amount,T=B.required_amount,K=B.max_result_amount,R=B.uid,U=B.icon,F=B.icon_state,$=B.image,W=w>1?""+w+"x ":"",N=T>1?"s":"",Z=""+W+M,ie=T+" sheet"+N,Q=c(B,P);return(0,e.jsx)(O.c_,{fluid:!0,base64:$,dmIcon:U,dmIconState:F,imageSize:32,disabled:!Q,tooltip:ie,buttons:K>1&&Q>1&&(0,e.jsx)(h,{recipe:B,max_possible_multiplier:Q}),onClick:function(){return C("make",{recipe_uid:R,multiplier:1})},children:Z})}},464:(q,S,r)=>{"use strict";r.r(S),r.d(S,{BrigCells:()=>O});var e=r(1131),s=r(3521),n=r(5180),t=r(360),a=function(y){var u=y.cell,f=(0,t.Oc)().act,m=u.cell_id,d=u.occupant,v=u.crimes,_=u.brigged_by,l=u.time_left_seconds,c=u.time_set_seconds,h=u.ref,g="";l>0&&(g+=" BrigCells__listRow--active");var p=function(){f("release",{ref:h})};return(0,e.jsxs)(n.XI.Row,{className:g,children:[(0,e.jsx)(n.XI.Cell,{children:m}),(0,e.jsx)(n.XI.Cell,{children:d}),(0,e.jsx)(n.XI.Cell,{children:v}),(0,e.jsx)(n.XI.Cell,{children:_}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.qT,{value:c})}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.qT,{value:l})}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{onClick:p,children:"Release"})})]})},b=function(y){var u=y.cells;return(0,e.jsxs)(n.XI,{className:"BrigCells__list",style:{borderCollapse:"separate",borderSpacing:"0 5px"},children:[(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{header:!0,children:"Cell"}),(0,e.jsx)(n.XI.Cell,{header:!0,children:"Occupant"}),(0,e.jsx)(n.XI.Cell,{header:!0,children:"Crimes"}),(0,e.jsx)(n.XI.Cell,{header:!0,children:"Brigged By"}),(0,e.jsx)(n.XI.Cell,{header:!0,children:"Time Brigged For"}),(0,e.jsx)(n.XI.Cell,{header:!0,children:"Time Left"}),(0,e.jsx)(n.XI.Cell,{header:!0,children:"Release"})]}),u.map(function(f){return(0,e.jsx)(a,{cell:f},f.ref)})]})},O=function(y){var u=(0,t.Oc)().data,f=u.cells;return(0,e.jsx)(s.p8,{theme:"security",width:800,height:400,children:(0,e.jsx)(s.p8.Content,{children:(0,e.jsx)(n.BJ,{fill:!0,vertical:!0,children:(0,e.jsx)(n.wn,{fill:!0,scrollable:!0,children:(0,e.jsx)(b,{cells:f})})})})})}},532:(q,S,r)=>{"use strict";r.r(S),r.d(S,{StripMenu:()=>p});var e=r(1131),s=r(1859),n=r(1243),t=r(360),a=r(5180),b=r(3521);function O(j,x){(x==null||x>j.length)&&(x=j.length);for(var C=0,I=new Array(x);C=j.length?{done:!0}:{done:!1,value:j[I++]}}}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 f=5,m=function(j){return j===0?5:9},d="64px",v=function(j){return j[0]+"/"+j[1]},_=function(j){var x=j.align,C=j.children;return(0,e.jsx)(a.az,{style:{position:"absolute",left:x==="left"?"6px":"48px",textAlign:x,textShadow:"2px 2px 2px #000",top:"2px"},children:C})},l={enable_internals:{icon:"lungs",text:"Enable internals"},disable_internals:{icon:"lungs",text:"Disable internals"},enable_lock:{icon:"lock",text:"Enable lock"},disable_lock:{icon:"unlock",text:"Disable lock"},suit_sensors:{icon:"tshirt",text:"Adjust suit sensors"},remove_accessory:{icon:"medal",text:"Remove accessory"},dislodge_headpocket:{icon:"head-side-virus",text:"Dislodge headpocket"}},c={neck:{displayName:"neck",gridSpot:v([0,0]),image:"inventory-neck.png"},eyes:{displayName:"eyewear",gridSpot:v([1,0]),image:"inventory-glasses.png"},head:{displayName:"headwear",gridSpot:v([0,1]),image:"inventory-head.png"},mask:{displayName:"mask",gridSpot:v([1,1]),image:"inventory-mask.png"},pet_collar:{displayName:"collar",gridSpot:v([1,1]),image:"inventory-collar.png"},right_ear:{displayName:"right ear",gridSpot:v([0,2]),image:"inventory-ears.png"},left_ear:{displayName:"left ear",gridSpot:v([1,2]),image:"inventory-ears.png"},parrot_headset:{displayName:"headset",gridSpot:v([1,2]),image:"inventory-ears.png"},handcuffs:{displayName:"handcuffs",gridSpot:v([1,3])},legcuffs:{displayName:"legcuffs",gridSpot:v([1,4])},jumpsuit:{displayName:"uniform",gridSpot:v([2,0]),image:"inventory-uniform.png"},suit:{displayName:"suit",gridSpot:v([2,1]),image:"inventory-suit.png"},gloves:{displayName:"gloves",gridSpot:v([2,2]),image:"inventory-gloves.png"},right_hand:{displayName:"right hand",gridSpot:v([2,3]),image:"inventory-hand_r.png",additionalComponent:(0,e.jsx)(_,{align:"left",children:"R"})},left_hand:{displayName:"left hand",gridSpot:v([2,4]),image:"inventory-hand_l.png",additionalComponent:(0,e.jsx)(_,{align:"right",children:"L"})},shoes:{displayName:"shoes",gridSpot:v([3,1]),image:"inventory-shoes.png"},suit_storage:{displayName:"suit storage",gridSpot:v([4,0]),image:"inventory-suit_storage.png"},id:{displayName:"ID",gridSpot:v([4,1]),image:"inventory-id.png"},belt:{displayName:"belt",gridSpot:v([4,2]),image:"inventory-belt.png"},back:{displayName:"backpack",gridSpot:v([4,3]),image:"inventory-back.png"},left_pocket:{displayName:"left pocket",gridSpot:v([3,4]),image:"inventory-pocket.png"},right_pocket:{displayName:"right pocket",gridSpot:v([3,3]),image:"inventory-pocket.png"},pda:{displayName:"PDA",gridSpot:v([4,4]),image:"inventory-pda.png"}},h={neck:{displayName:"neck",gridSpot:v([0,0]),image:"inventory-neck.png"},eyes:{displayName:"eyewear",gridSpot:v([1,0]),image:"inventory-glasses.png"},head:{displayName:"headwear",gridSpot:v([0,1]),image:"inventory-head.png"},mask:{displayName:"mask",gridSpot:v([1,1]),image:"inventory-mask.png"},pet_collar:{displayName:"collar",gridSpot:v([1,1]),image:"inventory-collar.png"},right_ear:{displayName:"right ear",gridSpot:v([0,2]),image:"inventory-ears.png"},left_ear:{displayName:"left ear",gridSpot:v([1,2]),image:"inventory-ears.png"},parrot_headset:{displayName:"headset",gridSpot:v([1,2]),image:"inventory-ears.png"},handcuffs:{displayName:"handcuffs",gridSpot:v([1,3])},legcuffs:{displayName:"legcuffs",gridSpot:v([1,4])},jumpsuit:{displayName:"uniform",gridSpot:v([2,0]),image:"inventory-uniform.png"},suit:{displayName:"suit",gridSpot:v([2,1]),image:"inventory-suit.png"},gloves:{displayName:"gloves",gridSpot:v([2,2]),image:"inventory-gloves.png"},right_hand:{displayName:"right hand",gridSpot:v([4,4]),image:"inventory-hand_r.png",additionalComponent:(0,e.jsx)(_,{align:"left",children:"R"})},left_hand:{displayName:"left hand",gridSpot:v([4,5]),image:"inventory-hand_l.png",additionalComponent:(0,e.jsx)(_,{align:"right",children:"L"})},shoes:{displayName:"shoes",gridSpot:v([3,1]),image:"inventory-shoes.png"},suit_storage:{displayName:"suit storage",gridSpot:v([4,0]),image:"inventory-suit_storage.png"},id:{displayName:"ID",gridSpot:v([4,1]),image:"inventory-id.png"},belt:{displayName:"belt",gridSpot:v([4,2]),image:"inventory-belt.png"},back:{displayName:"backpack",gridSpot:v([4,3]),image:"inventory-back.png"},left_pocket:{displayName:"left pocket",gridSpot:v([4,7]),image:"inventory-pocket.png"},right_pocket:{displayName:"right pocket",gridSpot:v([4,6]),image:"inventory-pocket.png"},pda:{displayName:"PDA",gridSpot:v([4,8]),image:"inventory-pda.png"}},g=function(j){return j[j.Completely=1]="Completely",j[j.Hidden=2]="Hidden",j}(g||{}),p=function(j){var x=(0,t.Oc)(),C=x.act,I=x.data,P=new Map;if(I.show_mode===0)for(var M=u(Object.keys(I.items)),B;!(B=M()).done;){var w=B.value;P.set(c[w].gridSpot,w)}else for(var T=u(Object.keys(I.items)),K;!(K=T()).done;){var R=K.value;P.set(h[R].gridSpot,R)}var U=function($){return $?$.cantstrip?"transparent":$.interacting?"average":"translucent":"translucent"},F=function($){return $&&$.cantstrip?"transparent":"none"};return(0,e.jsx)(b.p8,{title:"Stripping "+I.name,width:m(I.show_mode)*64+6*(m(I.show_mode)+1),height:390,theme:"nologo",children:(0,e.jsx)(b.p8.Content,{style:{backgroundColor:"rgba(0, 0, 0, 0.5)"},children:(0,e.jsx)(a.BJ,{fill:!0,vertical:!0,children:(0,s.y1)(0,f).map(function($){return(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(a.BJ,{fill:!0,children:(0,s.y1)(0,m(I.show_mode)).map(function(W){var N=v([$,W]),Z=P.get(N);if(!Z)return(0,e.jsx)(a.BJ.Item,{style:{width:d,height:d}},N);var ie=I.items[Z],Q=c[Z],V,G,le;return ie===null?le=Q.displayName:"name"in ie?(G=(0,e.jsx)(a.Hg,{icon:ie.icon,icon_state:ie.icon_state,height:"100%",width:"100%",style:{verticalAlign:"middle"}}),le=ie.name):"obscured"in ie&&(G=(0,e.jsx)(a.In,{name:ie.obscured===1?"ban":"eye-slash",size:3,ml:0,mt:2.5,color:"white",style:{textAlign:"center",height:"100%",width:"100%"}}),le="obscured "+Q.displayName),ie!==null&&"alternates"in ie&&ie.alternates!==null&&(V=ie.alternates),(0,e.jsx)(a.BJ.Item,{style:{width:d,height:d},children:(0,e.jsxs)(a.az,{style:{position:"relative",width:"100%",height:"100%"},children:[(0,e.jsxs)(a.$n,{onClick:function(){C("use",{key:Z})},fluid:!0,color:U(ie),tooltip:le,style:{position:"relative",width:"100%",height:"100%",padding:0,backgroundColor:F(ie)},children:[Q.image&&(0,e.jsx)(a._V,{src:(0,n.l)(Q.image),opacity:.7,style:{position:"absolute",width:"32px",height:"32px",left:"50%",top:"50%",transform:"translateX(-50%) translateY(-50%) scale(2)"}}),(0,e.jsx)(a.az,{style:{position:"relative"},children:G}),Q.additionalComponent]}),(0,e.jsx)(a.BJ,{direction:"row-reverse",children:V!==void 0&&V.map(function(xe,de){var me=de*1.8;return(0,e.jsx)(a.BJ.Item,{width:"100%",children:(0,e.jsx)(a.$n,{onClick:function(){C("alt",{key:Z,action_key:xe})},tooltip:l[xe].text,width:"1.8em",style:{background:"rgba(0, 0, 0, 0.6)",position:"absolute",bottom:0,right:""+me+"em",zIndex:2+de},children:(0,e.jsx)(a.In,{name:l[xe].icon})})},de)})})]})},N)})})},$)})})})})}},538:(q,S,r)=>{"use strict";r.r(S),r.d(S,{ComplexModal:()=>f,modalAnswer:()=>y,modalClose:()=>u,modalOpen:()=>b,modalRegisterBodyOverride:()=>O});var e=r(1131),s=r(360),n=r(5180);function t(m){"@swc/helpers - typeof";return m&&typeof Symbol<"u"&&m.constructor===Symbol?"symbol":typeof m}var a={},b=function(m,d){var v=(0,s.Oc)(),_=v.act,l=v.data,c=Object.assign(l.modal?l.modal.args:{},d||{});_("modal_open",{id:m,arguments:JSON.stringify(c)})},O=function(m,d){a[m]=d},y=function(m,d,v){var _=(0,s.Oc)(),l=_.act,c=_.data;if(c.modal){var h=Object.assign(c.modal.args||{},v||{});l("modal_answer",{id:m,answer:d,arguments:JSON.stringify(h)})}},u=function(m){var d=(0,s.Oc)().act;d("modal_close",{id:m})},f=function(m){var d=(0,s.Oc)().data;if(d.modal){var v=d.modal,_=v.id,l=v.text,c=v.type,h,g=(0,e.jsx)(n.$n,{className:"Button--modal",icon:"arrow-left",onClick:function(){return u(_)},children:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C"}),p,j,x="auto";if(a[_])p=a[_](d.modal);else if(c==="input"){var C=d.modal.value;h=function(P){return y(_,C)},p=(0,e.jsx)(n.pd,{value:d.modal.value.toString(),placeholder:"ENTER \u0434\u043B\u044F \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043D\u0438\u044F",width:"100%",my:"0.5rem",autoFocus:!0,onChange:function(P){C=P}}),j=(0,e.jsxs)(n.az,{mt:"0.5rem",children:[(0,e.jsx)(n.$n,{icon:"arrow-left",color:"grey",onClick:function(){return u(_)},children:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C"}),(0,e.jsx)(n.$n,{icon:"check",color:"good",style:{float:"right"},m:"0",onClick:function(){return y(_,C)},children:"\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044C"}),(0,e.jsx)(n.az,{style:{clear:"both"}})]})}else if(c==="choice"){var I=t(d.modal.choices)==="object"?Object.values(d.modal.choices):d.modal.choices;p=(0,e.jsx)(n.ms,{options:I,selected:d.modal.value,width:"100%",my:"0.5rem",onSelected:function(P){return y(_,P)}}),x="initial"}else c==="bento"?p=(0,e.jsx)(n.BJ,{wrap:"wrap",my:"0.5rem",maxHeight:"1%",children:d.modal.choices.map(function(P,M){return(0,e.jsx)(n.BJ.Item,{style:{flex:"1 1 auto"},children:(0,e.jsx)(n.$n,{selected:M+1===parseInt(d.modal.value,10),onClick:function(){return y(_,M+1)},children:(0,e.jsx)(n._V,{src:P})})},M)})}):c==="boolean"&&(j=(0,e.jsxs)(n.az,{mt:"0.5rem",children:[(0,e.jsx)(n.$n,{icon:"times",color:"bad",style:{float:"left"},mb:"0",onClick:function(){return y(_,0)},children:d.modal.no_text}),(0,e.jsx)(n.$n,{icon:"check",color:"good",style:{float:"right"},m:"0",onClick:function(){return y(_,1)},children:d.modal.yes_text}),(0,e.jsx)(n.az,{style:{clear:"both"}})]}));return(0,e.jsxs)(n.aF,{maxWidth:m.maxWidth||window.innerWidth/2+"px",maxHeight:m.maxHeight||window.innerHeight/2+"px",onEnter:h,mx:"auto",overflowY:x,"padding-bottom":"5px",children:[l&&(0,e.jsx)(n.az,{inline:!0,children:l}),a[_]&&g,p,j]})}}},561:(q,S,r)=>{"use strict";r.r(S),r.d(S,{AnomalyGenerator:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(b){var O=(0,s.Oc)(),y=O.act,u=O.data,f=u.type,m=u.tier,d=u.creating,v=u.req_energy,_=u.req_item,l=u.anomaly_type,c=u.charge,h=u.generating,g=u.use_acps,p=u.use_smeses,j=u.use_powernet,x=u.has_powernet,C=u.last_charge;return h?(0,e.jsx)(t.p8,{width:710,height:250,title:"\u0413\u0435\u043D\u0435\u0440\u0430\u0442\u043E\u0440 \u0430\u043D\u043E\u043C\u0430\u043B\u0438\u0439",children:(0,e.jsxs)(t.p8.Content,{children:[(0,e.jsx)(n.Ki,{children:(0,e.jsxs)(n.Ki.Item,{label:"\u0418\u0441\u0442\u043E\u0447\u043D\u0438\u043A\u0438 \u044D\u043D\u0435\u0440\u0433\u0438\u0438",children:[(0,e.jsx)(n.$n,{selected:g,onClick:function(){return y("toggle_apcs",{})},children:"\u041B\u041A\u041F"}),(0,e.jsx)(n.$n,{selected:p,onClick:function(){return y("toggle_smeses",{})},children:"\u0421\u041A\u0410\u041D\u044B \u0440\u044F\u0434\u043E\u043C"}),(0,e.jsx)(n.$n,{selected:j,disabled:!x,onClick:function(){return y("toggle_powernet",{})},children:"\u0423\u0437\u0435\u043B \u044D\u043D\u0435\u0440\u0433\u043E\u0441\u0435\u0442\u0438"})]})}),(0,e.jsxs)(n.az,{children:["\u0421\u043E\u0437\u0434\u0430\u0435\u0442\u0441\u044F ",l," \u0430\u043D\u043E\u043C\u0430\u043B\u0438\u044F."]}),(0,e.jsxs)(n.az,{children:["\u041D\u0430\u043A\u043E\u043F\u043B\u0435\u043D\u043E \u044D\u043D\u0435\u0440\u0433\u0438\u0438: ",c,"/",v]}),(0,e.jsxs)(n.az,{children:["\u041D\u0430\u043A\u043E\u043F\u043B\u0435\u043D\u0438\u0435 \u044D\u043D\u0435\u0440\u0433\u0438\u0438 \u0432 \u0441\u0435\u043A\u0443\u043D\u0434\u0443: ",C]}),(0,e.jsx)(n.$n,{onClick:function(){return y("stop",{})},children:"\u041F\u0440\u0435\u043A\u0440\u0430\u0442\u0438\u0442\u044C \u0441\u043E\u0437\u0434\u0430\u043D\u0438\u0435"})]})}):(0,e.jsx)(t.p8,{width:710,height:500,title:"\u0413\u0435\u043D\u0435\u0440\u0430\u0442\u043E\u0440 \u0430\u043D\u043E\u043C\u0430\u043B\u0438\u0439",children:(0,e.jsxs)(t.p8.Content,{children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"\u0418\u0441\u0442\u043E\u0447\u043D\u0438\u043A\u0438 \u044D\u043D\u0435\u0440\u0433\u0438\u0438",children:[(0,e.jsx)(n.$n,{selected:g,onClick:function(){return y("toggle_apcs",{})},children:"\u041B\u041A\u041F"}),(0,e.jsx)(n.$n,{selected:p,onClick:function(){return y("toggle_smeses",{})},children:"\u0421\u041A\u0410\u041D\u044B \u0440\u044F\u0434\u043E\u043C"}),(0,e.jsx)(n.$n,{selected:j,disabled:!x,onClick:function(){return y("toggle_powernet",{})},children:"\u0423\u0437\u0435\u043B \u044D\u043D\u0435\u0440\u0433\u043E\u0441\u0435\u0442\u0438"})]}),(0,e.jsxs)(n.Ki.Item,{label:"\u0422\u0438\u043F \u0430\u043D\u043E\u043C\u0430\u043B\u0438\u0438",children:[(0,e.jsx)(n.$n,{selected:f==="random",onClick:function(){return y("choose_type",{type:"random"})},children:"\u0421\u043B\u0443\u0447\u0430\u0439\u043D\u044B\u0439"}),(0,e.jsx)(n.$n,{selected:f==="pyroclastic",onClick:function(){return y("choose_type",{type:"pyroclastic"})},children:"\u0410\u0442\u043C\u043E\u0441\u0444\u0435\u0440\u043D\u0430\u044F"}),(0,e.jsx)(n.$n,{selected:f==="bluespace",onClick:function(){return y("choose_type",{type:"bluespace"})},children:"\u0411\u043B\u044E\u0441\u043F\u0435\u0439\u0441"}),(0,e.jsx)(n.$n,{selected:f==="vortex",onClick:function(){return y("choose_type",{type:"vortex"})},children:"\u0412\u0438\u0445\u0440\u0435\u0432\u0430\u044F"}),(0,e.jsx)(n.$n,{selected:f==="gravitational",onClick:function(){return y("choose_type",{type:"gravitational"})},children:"\u0413\u0440\u0430\u0432\u0438\u0442\u0430\u0446\u0438\u043E\u043D\u043D\u0430\u044F"}),(0,e.jsx)(n.$n,{selected:f==="energetic",onClick:function(){return y("choose_type",{type:"energetic"})},children:"\u042D\u043D\u0435\u0440\u0433\u0435\u0442\u0438\u0447\u0435\u0441\u043A\u0430\u044F"})]}),(0,e.jsxs)(n.Ki.Item,{label:"\u0423\u0440\u043E\u0432\u0435\u043D\u044C \u0430\u043D\u043E\u043C\u0430\u043B\u0438\u0438",children:[(0,e.jsx)(n.$n,{selected:m==="1",onClick:function(){return y("choose_tier",{tier:"1"})},children:"\u041C\u0430\u043B\u0430\u044F"}),(0,e.jsx)(n.$n,{selected:m==="2",onClick:function(){return y("choose_tier",{tier:"2"})},children:"\u0421\u0440\u0435\u0434\u043D\u044F\u044F"}),(0,e.jsx)(n.$n,{selected:m==="3",onClick:function(){return y("choose_tier",{tier:"3"})},children:"\u0411\u043E\u043B\u044C\u0448\u0430\u044F"})]})]}),(0,e.jsxs)(n.az,{children:["\u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044F: ",_]}),(0,e.jsxs)(n.az,{children:["\u0420\u0430\u0441\u0445\u043E\u0434\u0443\u0435\u043C\u044B\u0439 \u0437\u0430\u0440\u044F\u0434: ",v]}),(0,e.jsx)(n.$n,{selected:d===!0,mt:"0.5rem",onClick:function(){return y("generate")},children:"\u0421\u043E\u0437\u0434\u0430\u0442\u044C \u0430\u043D\u043E\u043C\u0430\u043B\u0438\u044E"}),(0,e.jsx)(n.$n,{mt:"0.5rem",onClick:function(){return y("eject_all")},children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u0441\u043E\u0434\u0435\u0440\u0436\u0438\u043C\u043E\u0435"}),(0,e.jsx)(n.$n,{mt:"0.5rem",onClick:function(){return y("beakon")},children:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u043C\u0430\u044F\u0447\u043E\u043A"})]})})}},573:(q,S,r)=>{"use strict";r.r(S),r.d(S,{meta:()=>a});var e=r(1131),s=r(7003),n=r(5180),t=r(4947);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var a={title:"ByondUi",render:function(){return(0,e.jsx)(O,{})}},O=function(b){var y=(0,s.useState)("Byond.winset('"+Byond.windowId+`', { + */var a={title:"ByondUi",render:function(){return(0,e.jsx)(b,{})}},b=function(O){var y=(0,s.useState)("Byond.winset('"+Byond.windowId+`', { 'is-visible': true, -})`),u=y[0],f=y[1];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.wn,{title:"Button",children:(0,e.jsx)(n.D1,{params:{type:"button",text:"Button"}})}),(0,e.jsx)(n.wn,{title:"Make BYOND calls",buttons:(0,e.jsx)(n.$n,{icon:"chevron-right",onClick:function(){return setTimeout(function(){try{var m=new Function("return ("+u+")")();m&&m.then?(t.v.log("Promise"),m.then(t.v.log)):t.v.log(m)}catch(d){t.v.log(d)}})},children:"Evaluate"}),children:(0,e.jsx)(n.fs,{width:"100%",height:"10em",value:u,onChange:f})})]})}},607:(q,S,r)=>{"use strict";r.r(S),r.d(S,{ChemDispenser:()=>y});var e=r(1131),s=r(360),n=r(5180),t=r(829),a=r(3521),O=[1,5,10,20,30,50,100],b=[1,5,10],y=function(d){var v=(0,s.Oc)().data,_=v.chemicals;return(0,e.jsx)(a.p8,{width:460,height:400+_.length*8,children:(0,e.jsx)(a.p8.Content,{children:(0,e.jsxs)(n.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(u,{}),(0,e.jsx)(f,{}),(0,e.jsx)(m,{})]})})})},u=function(d){var v=(0,s.Oc)(),_=v.act,l=v.data,c=l.amount,h=l.energy,g=l.maxEnergy;return(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.wn,{title:"\u041F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"\u042D\u043D\u0435\u0440\u0433\u0438\u044F",children:(0,e.jsxs)(n.z2,{value:h,minValue:0,maxValue:g,ranges:{good:[g*.5,1/0],average:[g*.25,g*.5],bad:[-1/0,g*.25]},children:[h," / ",g," \u0435\u0434\u0438\u043D\u0438\u0446"]})}),(0,e.jsx)(n.Ki.Item,{label:"\u041E\u0431\u044A\u0451\u043C \u0441\u0438\u043D\u0442\u0435\u0437\u0430",verticalAlign:"middle",children:(0,e.jsx)(n.BJ,{children:O.map(function(p,j){return(0,e.jsx)(n.BJ.Item,{grow:!0,width:"15%",children:(0,e.jsx)(n.$n,{fluid:!0,icon:"cog",selected:c===p,onClick:function(){return _("amount",{amount:p})},children:p})},j)})})})]})})})},f=function(d){for(var v=(0,s.Oc)(),_=v.act,l=v.data,c=l.chemicals,h=c===void 0?[]:c,g=[],p=0;p<(h.length+1)%3;p++)g.push(!0);return(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsxs)(n.wn,{fill:!0,scrollable:!0,title:l.glass?"\u0421\u0438\u043D\u0442\u0435\u0437 \u043D\u0430\u043F\u0438\u0442\u043A\u043E\u0432":"\u0421\u0438\u043D\u0442\u0435\u0437 \u0440\u0435\u0430\u0433\u0435\u043D\u0442\u043E\u0432",children:[h.map(function(j,x){return(0,e.jsx)(n.$n,{m:.1,width:"32.5%",icon:"tint",iconColor:j.reagentColor,overflow:"hidden",style:{marginLeft:"2px",textOverflow:"ellipsis"},onClick:function(){return _("dispense",{reagent:j.id})},children:j.title},x)}),g.map(function(j,x){return(0,e.jsx)(n.BJ.Item,{grow:!0,basis:"25%"},x)})]})})},m=function(d){var v=(0,s.Oc)(),_=v.act,l=v.data,c=l.isBeakerLoaded,h=l.beakerCurrentVolume,g=l.beakerMaxVolume,p=l.beakerContents,j=p===void 0?[]:p;return(0,e.jsx)(n.BJ.Item,{height:16,children:(0,e.jsx)(n.wn,{title:"\u0401\u043C\u043A\u043E\u0441\u0442\u044C",fill:!0,scrollable:!0,buttons:(0,e.jsxs)(n.az,{children:[!!c&&(0,e.jsxs)(n.az,{inline:!0,color:"label",mr:2,children:[h," / ",g," \u0435\u0434\u0438\u043D\u0438\u0446"]}),(0,e.jsx)(n.$n,{icon:"eject",disabled:!c,onClick:function(){return _("ejectBeaker")},children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C"})]}),children:(0,e.jsx)(t.BeakerContents,{beakerLoaded:c,beakerContents:j,buttons:function(x){return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{tooltip:"\u0423\u0434\u0430\u043B\u044F\u0435\u0442 \u043B\u0438\u0448\u043D\u0435\u0435, \u043E\u043A\u0440\u0443\u0433\u043B\u044F\u044F \u043E\u0431\u044A\u0451\u043C \u0434\u043E "+Math.trunc(x.volume),icon:"arrow-circle-down",onClick:function(){return _("remove",{reagent:x.id,amount:-2})}}),b.map(function(C,I){return(0,e.jsx)(n.$n,{onClick:function(){return _("remove",{reagent:x.id,amount:C})},children:C},I)}),(0,e.jsx)(n.$n,{tooltip:"\u0423\u0434\u0430\u043B\u044F\u0435\u0442 \u043E\u0441\u0442\u0430\u043B\u044C\u043D\u044B\u0435 \u0440\u0435\u0430\u0433\u0435\u043D\u0442\u044B",icon:"compress-arrows-alt",onClick:function(){return _("remove",{reagent:x.id,amount:-1})}}),(0,e.jsx)(n.$n,{tooltip:"\u0423\u0434\u0430\u043B\u044F\u0435\u0442 \u044D\u0442\u043E\u0442 \u0440\u0435\u0430\u0433\u0435\u043D\u0442",icon:"droplet-slash",onClick:function(){return _("remove",{reagent:x.id,amount:x.volume})}})]})}})})})}},646:(q,S,r)=>{"use strict";r.r(S),r.d(S,{RobotSelfDiagnosis:()=>b});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=r(9845),O=function(y,u){var f=y/u;return f<=.2?"good":f<=.5?"average":"bad"},b=function(y){var u=(0,s.Oc)().data,f=u.component_data;return(0,e.jsx)(t.p8,{width:280,height:480,children:(0,e.jsx)(t.p8.Content,{scrollable:!0,children:f.map(function(m,d){return(0,e.jsx)(n.wn,{title:(0,a.ZH)(m.name),children:m.installed<=0?(0,e.jsx)(n.IC,{m:-.5,height:3.5,color:"red",style:{fontStyle:"normal"},children:(0,e.jsx)(n.so,{height:"100%",children:(0,e.jsx)(n.so.Item,{grow:1,textAlign:"center",align:"center",color:"#e8e8e8",children:m.installed===-1?"Destroyed":"Missing"})})}):(0,e.jsxs)(n.so,{children:[(0,e.jsx)(n.so.Item,{width:"72%",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Brute Damage",color:O(m.brute_damage,m.max_damage),children:m.brute_damage}),(0,e.jsx)(n.Ki.Item,{label:"Burn Damage",color:O(m.electronic_damage,m.max_damage),children:m.electronic_damage})]})}),(0,e.jsx)(n.so.Item,{width:"50%",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Powered",color:m.powered?"good":"bad",children:m.powered?"Yes":"No"}),(0,e.jsx)(n.Ki.Item,{label:"Enabled",color:m.status?"good":"bad",children:m.status?"Yes":"No"})]})})]})},d)})})})}},683:(q,S,r)=>{"use strict";r.d(S,{Pf:()=>Z,R:()=>g,Ri:()=>n,Ss:()=>a,W8:()=>U,Yw:()=>Sr,aW:()=>s,bL:()=>me,bh:()=>En,bt:()=>Le,cH:()=>O,gf:()=>c,iU:()=>l,iy:()=>f,re:()=>t,s6:()=>u,sP:()=>tr,sV:()=>Kn,zh:()=>h});/** +})`),u=y[0],f=y[1];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.wn,{title:"Button",children:(0,e.jsx)(n.D1,{params:{type:"button",text:"Button"}})}),(0,e.jsx)(n.wn,{title:"Make BYOND calls",buttons:(0,e.jsx)(n.$n,{icon:"chevron-right",onClick:function(){return setTimeout(function(){try{var m=new Function("return ("+u+")")();m&&m.then?(t.v.log("Promise"),m.then(t.v.log)):t.v.log(m)}catch(d){t.v.log(d)}})},children:"Evaluate"}),children:(0,e.jsx)(n.fs,{width:"100%",height:"10em",value:u,onChange:f})})]})}},607:(q,S,r)=>{"use strict";r.r(S),r.d(S,{ChemDispenser:()=>y});var e=r(1131),s=r(360),n=r(5180),t=r(829),a=r(3521),b=[1,5,10,20,30,50,100],O=[1,5,10],y=function(d){var v=(0,s.Oc)().data,_=v.chemicals;return(0,e.jsx)(a.p8,{width:460,height:400+_.length*8,children:(0,e.jsx)(a.p8.Content,{children:(0,e.jsxs)(n.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(u,{}),(0,e.jsx)(f,{}),(0,e.jsx)(m,{})]})})})},u=function(d){var v=(0,s.Oc)(),_=v.act,l=v.data,c=l.amount,h=l.energy,g=l.maxEnergy;return(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.wn,{title:"\u041F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"\u042D\u043D\u0435\u0440\u0433\u0438\u044F",children:(0,e.jsxs)(n.z2,{value:h,minValue:0,maxValue:g,ranges:{good:[g*.5,1/0],average:[g*.25,g*.5],bad:[-1/0,g*.25]},children:[h," / ",g," \u0435\u0434\u0438\u043D\u0438\u0446"]})}),(0,e.jsx)(n.Ki.Item,{label:"\u041E\u0431\u044A\u0451\u043C \u0441\u0438\u043D\u0442\u0435\u0437\u0430",verticalAlign:"middle",children:(0,e.jsx)(n.BJ,{children:b.map(function(p,j){return(0,e.jsx)(n.BJ.Item,{grow:!0,width:"15%",children:(0,e.jsx)(n.$n,{fluid:!0,icon:"cog",selected:c===p,onClick:function(){return _("amount",{amount:p})},children:p})},j)})})})]})})})},f=function(d){for(var v=(0,s.Oc)(),_=v.act,l=v.data,c=l.chemicals,h=c===void 0?[]:c,g=[],p=0;p<(h.length+1)%3;p++)g.push(!0);return(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsxs)(n.wn,{fill:!0,scrollable:!0,title:l.glass?"\u0421\u0438\u043D\u0442\u0435\u0437 \u043D\u0430\u043F\u0438\u0442\u043A\u043E\u0432":"\u0421\u0438\u043D\u0442\u0435\u0437 \u0440\u0435\u0430\u0433\u0435\u043D\u0442\u043E\u0432",children:[h.map(function(j,x){return(0,e.jsx)(n.$n,{m:.1,width:"32.5%",icon:"tint",iconColor:j.reagentColor,overflow:"hidden",style:{marginLeft:"2px",textOverflow:"ellipsis"},onClick:function(){return _("dispense",{reagent:j.id})},children:j.title},x)}),g.map(function(j,x){return(0,e.jsx)(n.BJ.Item,{grow:!0,basis:"25%"},x)})]})})},m=function(d){var v=(0,s.Oc)(),_=v.act,l=v.data,c=l.isBeakerLoaded,h=l.beakerCurrentVolume,g=l.beakerMaxVolume,p=l.beakerContents,j=p===void 0?[]:p;return(0,e.jsx)(n.BJ.Item,{height:16,children:(0,e.jsx)(n.wn,{title:"\u0401\u043C\u043A\u043E\u0441\u0442\u044C",fill:!0,scrollable:!0,buttons:(0,e.jsxs)(n.az,{children:[!!c&&(0,e.jsxs)(n.az,{inline:!0,color:"label",mr:2,children:[h," / ",g," \u0435\u0434\u0438\u043D\u0438\u0446"]}),(0,e.jsx)(n.$n,{icon:"eject",disabled:!c,onClick:function(){return _("ejectBeaker")},children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C"})]}),children:(0,e.jsx)(t.BeakerContents,{beakerLoaded:c,beakerContents:j,buttons:function(x){return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{tooltip:"\u0423\u0434\u0430\u043B\u044F\u0435\u0442 \u043B\u0438\u0448\u043D\u0435\u0435, \u043E\u043A\u0440\u0443\u0433\u043B\u044F\u044F \u043E\u0431\u044A\u0451\u043C \u0434\u043E "+Math.trunc(x.volume),icon:"arrow-circle-down",onClick:function(){return _("remove",{reagent:x.id,amount:-2})}}),O.map(function(C,I){return(0,e.jsx)(n.$n,{onClick:function(){return _("remove",{reagent:x.id,amount:C})},children:C},I)}),(0,e.jsx)(n.$n,{tooltip:"\u0423\u0434\u0430\u043B\u044F\u0435\u0442 \u043E\u0441\u0442\u0430\u043B\u044C\u043D\u044B\u0435 \u0440\u0435\u0430\u0433\u0435\u043D\u0442\u044B",icon:"compress-arrows-alt",onClick:function(){return _("remove",{reagent:x.id,amount:-1})}}),(0,e.jsx)(n.$n,{tooltip:"\u0423\u0434\u0430\u043B\u044F\u0435\u0442 \u044D\u0442\u043E\u0442 \u0440\u0435\u0430\u0433\u0435\u043D\u0442",icon:"droplet-slash",onClick:function(){return _("remove",{reagent:x.id,amount:x.volume})}})]})}})})})}},646:(q,S,r)=>{"use strict";r.r(S),r.d(S,{RobotSelfDiagnosis:()=>O});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=r(9845),b=function(y,u){var f=y/u;return f<=.2?"good":f<=.5?"average":"bad"},O=function(y){var u=(0,s.Oc)().data,f=u.component_data;return(0,e.jsx)(t.p8,{width:280,height:480,children:(0,e.jsx)(t.p8.Content,{scrollable:!0,children:f.map(function(m,d){return(0,e.jsx)(n.wn,{title:(0,a.ZH)(m.name),children:m.installed<=0?(0,e.jsx)(n.IC,{m:-.5,height:3.5,color:"red",style:{fontStyle:"normal"},children:(0,e.jsx)(n.so,{height:"100%",children:(0,e.jsx)(n.so.Item,{grow:1,textAlign:"center",align:"center",color:"#e8e8e8",children:m.installed===-1?"Destroyed":"Missing"})})}):(0,e.jsxs)(n.so,{children:[(0,e.jsx)(n.so.Item,{width:"72%",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Brute Damage",color:b(m.brute_damage,m.max_damage),children:m.brute_damage}),(0,e.jsx)(n.Ki.Item,{label:"Burn Damage",color:b(m.electronic_damage,m.max_damage),children:m.electronic_damage})]})}),(0,e.jsx)(n.so.Item,{width:"50%",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Powered",color:m.powered?"good":"bad",children:m.powered?"Yes":"No"}),(0,e.jsx)(n.Ki.Item,{label:"Enabled",color:m.status?"good":"bad",children:m.status?"Yes":"No"})]})})]})},d)})})})}},683:(q,S,r)=>{"use strict";r.d(S,{Pf:()=>Z,R:()=>g,Ri:()=>n,Ss:()=>a,W8:()=>U,Yw:()=>Sr,aW:()=>s,bL:()=>me,bh:()=>En,bt:()=>Le,cH:()=>b,gf:()=>c,iU:()=>l,iy:()=>f,re:()=>t,s6:()=>u,sP:()=>tr,sV:()=>Kn,zh:()=>h});/** * All possible browser keycodes, in one file. * * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var e=8,s=9,n=13,t=16,a=17,O=18,b=19,y=20,u=27,f=32,m=33,d=34,v=35,_=36,l=37,c=38,h=39,g=40,p=45,j=46,x=48,C=49,I=50,P=51,M=52,B=53,w=54,T=55,K=56,R=57,U=65,F=66,$=67,W=68,N=69,Z=70,ie=71,Q=72,V=73,G=74,le=75,xe=76,de=77,me=78,pe=79,Me=80,Ke=81,Le=82,Se=83,ln=84,ze=85,We=86,fn=87,Ze=88,In=89,En=90,Yn=96,Xn=97,ct=98,Ot=99,_t=100,Nt=101,nr=102,cn=103,wn=104,it=105,Kn=112,Pt=113,Mt=114,sr=115,tr=116,Ft=117,Bi=118,Xi=119,Dr=120,Yr=121,mi=122,Sr=123,wi=186,Wr=187,Br=188,Qr=189,Zr=190,Ai=191,qr=219,ei=220,xi=221,vi=222},726:(q,S,r)=>{"use strict";r.r(S),r.d(S,{LatheMenu:()=>b});var e=r(1131),s=r(360),n=r(1746),t=r(2905),a=r(5180),O=r(4904),b=function(y){var u=(0,s.Oc)().data,f=u.menu,m=u.linked_lathe,d=u.linked_imprinter;return f===4&&!m?(0,e.jsx)(a.az,{children:"\u041F\u0420\u041E\u0422\u041E\u041B\u0410\u0422 \u041D\u0415 \u041F\u041E\u0414\u041A\u041B\u042E\u0427\u0401\u041D"}):f===5&&!d?(0,e.jsx)(a.az,{children:"\u041F\u0420\u0418\u041D\u0422\u0415\u0420 \u041F\u041B\u0410\u0422 \u041D\u0415 \u041F\u041E\u0414\u041A\u041B\u042E\u0427\u0401\u041D"}):(0,e.jsxs)(a.az,{children:[(0,e.jsx)(n.RndRoute,{submenu:O.SUBMENU.MAIN,render:function(){return(0,e.jsx)(t.LatheMainMenu,{})}}),(0,e.jsx)(n.RndRoute,{submenu:O.SUBMENU.LATHE_CATEGORY,render:function(){return(0,e.jsx)(t.LatheCategory,{})}}),(0,e.jsx)(n.RndRoute,{submenu:O.SUBMENU.LATHE_MAT_STORAGE,render:function(){return(0,e.jsx)(t.LatheMaterialStorage,{})}}),(0,e.jsx)(n.RndRoute,{submenu:O.SUBMENU.LATHE_CHEM_STORAGE,render:function(){return(0,e.jsx)(t.LatheChemicalStorage,{})}})]})}},729:(q,S,r)=>{"use strict";r.r(S),r.d(S,{PersonalCrafting:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(y){var u=(0,s.Oc)(),f=u.act,m=u.data,d=m.busy,v=m.category,_=m.display_craftable_only,l=m.display_compact,c=m.prev_cat,h=m.next_cat,g=m.subcategory,p=m.prev_subcat,j=m.next_subcat;return(0,e.jsx)(t.p8,{width:700,height:800,children:(0,e.jsxs)(t.p8.Content,{scrollable:!0,children:[!!d&&(0,e.jsxs)(n.Rr,{fontSize:"32px",children:[(0,e.jsx)(n.In,{name:"cog",spin:1})," Crafting..."]}),(0,e.jsxs)(n.wn,{title:v,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:_?"check-square-o":"square-o",selected:_,onClick:function(){return f("toggle_recipes")},children:"Show Craftable Only"}),(0,e.jsx)(n.$n,{icon:l?"check-square-o":"square-o",selected:l,onClick:function(){return f("toggle_compact")},children:"Compact Mode"})]}),children:[(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.$n,{icon:"arrow-left",onClick:function(){return f("backwardCat")},children:c}),(0,e.jsx)(n.$n,{icon:"arrow-right",onClick:function(){return f("forwardCat")},children:h})]}),g&&(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.$n,{icon:"arrow-left",onClick:function(){return f("backwardSubCat")},children:p}),(0,e.jsx)(n.$n,{icon:"arrow-right",onClick:function(){return f("forwardSubCat")},children:j})]}),l?(0,e.jsx)(O,{}):(0,e.jsx)(b,{})]})]})})},O=function(y){var u=(0,s.Oc)(),f=u.act,m=u.data,d=m.display_craftable_only,v=m.can_craft,_=m.cant_craft;return(0,e.jsx)(n.az,{mt:1,children:(0,e.jsxs)(n.Ki,{children:[v.map(function(l){return(0,e.jsxs)(n.Ki.Item,{label:l.name,children:[(0,e.jsx)(n.$n,{icon:"hammer",onClick:function(){return f("make",{make:l.ref})},children:"Craft"}),l.catalyst_text&&(0,e.jsx)(n.$n,{tooltip:l.catalyst_text,color:"transparent",children:"Catalysts"}),(0,e.jsx)(n.$n,{tooltip:l.req_text,color:"transparent",children:"Requirements"}),l.tool_text&&(0,e.jsx)(n.$n,{tooltip:l.tool_text,color:"transparent",children:"Tools"})]},l.ref)}),!d&&_.map(function(l){return(0,e.jsxs)(n.Ki.Item,{label:l.name,children:[(0,e.jsx)(n.$n,{icon:"hammer",disabled:!0,children:"Craft"}),l.catalyst_text&&(0,e.jsx)(n.$n,{tooltip:l.catalyst_text,color:"transparent",children:"Catalysts"}),(0,e.jsx)(n.$n,{tooltip:l.req_text,color:"transparent",children:"Requirements"}),l.tool_text&&(0,e.jsx)(n.$n,{tooltip:l.tool_text,color:"transparent",children:"Tools"})]},l.ref)})]})})},b=function(y){var u=(0,s.Oc)(),f=u.act,m=u.data,d=m.display_craftable_only,v=m.can_craft,_=m.cant_craft;return(0,e.jsxs)(n.az,{mt:1,children:[v.map(function(l){return(0,e.jsx)(n.wn,{title:l.name,buttons:(0,e.jsx)(n.$n,{icon:"hammer",onClick:function(){return f("make",{make:l.ref})},children:"Craft"}),children:(0,e.jsxs)(n.Ki,{children:[l.catalyst_text&&(0,e.jsx)(n.Ki.Item,{label:"Catalysts",children:l.catalyst_text}),(0,e.jsx)(n.Ki.Item,{label:"Requirements",children:l.req_text}),l.tool_text&&(0,e.jsx)(n.Ki.Item,{label:"Tools",children:l.tool_text})]})},l.ref)}),!d&&_.map(function(l){return(0,e.jsx)(n.wn,{title:l.name,buttons:(0,e.jsx)(n.$n,{icon:"hammer",disabled:!0,children:"Craft"}),children:(0,e.jsxs)(n.Ki,{children:[l.catalyst_text&&(0,e.jsx)(n.Ki.Item,{label:"Catalysts",children:l.catalyst_text}),(0,e.jsx)(n.Ki.Item,{label:"Requirements",children:l.req_text}),l.tool_text&&(0,e.jsx)(n.Ki.Item,{label:"Tools",children:l.tool_text})]})},l.ref)})]})}},738:(q,S,r)=>{"use strict";r.r(S),r.d(S,{BotSecurity:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(O){var b=(0,s.Oc)(),y=b.act,u=b.data,f=u.locked,m=u.noaccess,d=u.maintpanel,v=u.on,_=u.autopatrol,l=u.canhack,c=u.emagged,h=u.remote_disabled,g=u.painame,p=u.check_id,j=u.check_weapons,x=u.check_warrant,C=u.arrest_mode,I=u.arrest_declare;return(0,e.jsx)(t.p8,{width:500,height:500,children:(0,e.jsxs)(t.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(n.IC,{children:["\u041F\u0440\u043E\u0432\u0435\u0434\u0438\u0442\u0435 \u0441\u0432\u043E\u0435\u0439 ID-\u043A\u0430\u0440\u0442\u043E\u0439, \u0447\u0442\u043E\u0431\u044B",f?"\u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u0442\u044C":"\u0437\u0430\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u0442\u044C"," \u044D\u0442\u043E\u0442 \u0438\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441."]}),(0,e.jsx)(n.wn,{title:"\u041E\u0441\u043D\u043E\u0432\u043D\u044B\u0435 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",children:(0,e.jsx)(n.$n,{icon:v?"power-off":"times",selected:v,disabled:m,onClick:function(){return y("power")},children:v?"\u0412\u043A\u043B\u044E\u0447\u0451\u043D":"\u0412\u044B\u043A\u043B\u044E\u0447\u0435\u043D"})}),(0,e.jsx)(n.Ki.Item,{label:"\u0420\u0435\u0436\u0438\u043C \u043F\u0430\u0442\u0440\u0443\u043B\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F",children:(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:_,disabled:m,onClick:function(){return y("autopatrol")},children:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u043F\u0430\u0442\u0440\u0443\u043B\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435"})}),!!d&&(0,e.jsx)(n.Ki.Item,{label:"\u041F\u0430\u043D\u0435\u043B\u044C \u0442\u0435\u0445\u043E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u043D\u0438\u044F",children:(0,e.jsx)(n.az,{color:"bad",children:"\u041F\u0430\u043D\u0435\u043B\u044C \u043E\u0442\u043A\u0440\u044B\u0442\u0430"})}),(0,e.jsx)(n.Ki.Item,{label:"\u041F\u0440\u043E\u0442\u043E\u043A\u043E\u043B\u044B \u0431\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u0438",children:(0,e.jsx)(n.az,{color:c?"bad":"good",children:c?"\u041E\u0442\u043A\u043B\u044E\u0447\u0435\u043D\u044B":"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u044B"})}),!!l&&(0,e.jsx)(n.Ki.Item,{label:"\u0412\u0437\u043B\u043E\u043C",children:(0,e.jsx)(n.$n,{icon:"terminal",disabled:m,color:"bad",onClick:function(){return y("hack")},children:c?"\u0412\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u043F\u0440\u043E\u0442\u043E\u043A\u043E\u043B\u044B \u0431\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u0438":"\u0412\u0437\u043B\u043E\u043C\u0430\u0442\u044C"})}),(0,e.jsx)(n.Ki.Item,{label:"\u0423\u0434\u0430\u043B\u0451\u043D\u043D\u044B\u0439 \u0434\u043E\u0441\u0442\u0443\u043F",children:(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:!h,disabled:m,onClick:function(){return y("disableremote")},children:"\u0423\u0434\u0430\u043B\u0451\u043D\u043D\u044B\u0439 \u0434\u043E\u0441\u0442\u0443\u043F \u0441\u043E \u0441\u0442\u043E\u0440\u043E\u043D\u044B \u0418\u0418"})})]})}),(0,e.jsxs)(n.wn,{title:"\u0417\u0430\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043C\u044B\u0435 \u0446\u0435\u043B\u0438",children:[(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:p,disabled:m,onClick:function(){return y("authid")},children:"\u041D\u0435\u043E\u043F\u043E\u0437\u043D\u0430\u043D\u043D\u044B\u0435 \u043B\u0438\u0447\u043D\u043E\u0441\u0442\u0438"}),(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:j,disabled:m,onClick:function(){return y("authweapon")},children:"\u0418\u043C\u0435\u044E\u0449\u0438\u0435 \u043D\u0435\u0430\u0432\u0442\u043E\u0440\u0438\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u043E\u0435 \u043E\u0440\u0443\u0436\u0438\u0435"}),(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:x,disabled:m,onClick:function(){return y("authwarrant")},children:"\u0420\u0430\u0437\u044B\u0441\u043A\u0438\u0432\u0430\u0435\u043C\u044B\u0435 \u043F\u0440\u0435\u0441\u0442\u0443\u043F\u043D\u0438\u043A\u0438"})]}),(0,e.jsxs)(n.wn,{title:"\u041F\u0440\u043E\u0446\u0435\u0434\u0443\u0440\u0430 \u0437\u0430\u0434\u0435\u0440\u0436\u0430\u043D\u0438\u044F",children:[(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:C,disabled:m,onClick:function(){return y("arrtype")},children:"\u0411\u0435\u0441\u0441\u0440\u043E\u0447\u043D\u043E\u0435 \u043E\u0433\u043B\u0443\u0448\u0435\u043D\u0438\u0435 \u0446\u0435\u043B\u0435\u0439 \u0432\u043C\u0435\u0441\u0442\u043E \u0437\u0430\u0434\u0435\u0440\u0436\u0430\u043D\u0438\u044F"}),(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:I,disabled:m,onClick:function(){return y("arrdeclare")},children:"\u0421\u043E\u043E\u0431\u0449\u0430\u0442\u044C \u043E \u0437\u0430\u0434\u0435\u0440\u0436\u0430\u043D\u0438\u0438 \u043F\u043E \u0440\u0430\u0434\u0438\u043E\u0441\u0432\u044F\u0437\u0438"})]}),g&&(0,e.jsx)(n.wn,{title:"\u041F\u0418\u0418",children:(0,e.jsx)(n.$n,{fluid:!0,icon:"eject",disabled:m,onClick:function(){return y("ejectpai")},children:g})})]})})}},748:(q,S,r)=>{"use strict";r.r(S),r.d(S,{Vending:()=>y});var e=r(1131),s=r(7003),n=r(360),t=r(9845),a=r(5180),O=r(3521),b=function(m){var d=(0,n.Oc)(),v=d.act,_=d.data,l=m.product,c=m.inventory,h=m.productStock,g=m.stockSearch,p=m.setStockSearch,j=m.selectedCategory,x=m.setSelectedCategory,C=_.chargesMoney,I=_.userMoney,P=_.vend_ready,M=_.coin_name,B=!C||l.price===0,w="\u041E\u0428\u0418\u0411\u041A\u0410",T="",K=!P||!M&&l.req_coin||h.amount===0||!B&&l.price>I;return l.req_coin?(w="\u041C\u041E\u041D\u0415\u0422\u0410",T="circle"):B?(w="\u0411\u0415\u0421\u041F\u041B\u0410\u0422\u041D\u041E",T="arrow-circle-down"):(w=l.price.toString(),T="shopping-cart"),(0,e.jsxs)(a.XI.Row,{children:[(0,e.jsx)(a.XI.Cell,{collapsing:!0,children:(0,e.jsx)(a.Hg,{verticalAlign:"middle",icon:l.icon,icon_state:l.icon_state,fallback:(0,e.jsx)(a.In,{p:.66,name:"spinner",size:2,spin:!0})})}),(0,e.jsx)(a.XI.Cell,{bold:!0,children:(0,e.jsx)(a.$n,{multiLine:!0,color:"translucent",tooltip:l.desc,children:l.name})}),(0,e.jsx)(a.XI.Cell,{collapsing:!0,textAlign:"center",children:(0,e.jsxs)(a.az,{color:h.amount<=0&&"bad"||h.amount<=l.max_amount/2&&"average"||"good",children:[h.amount," \u0432 \u043D\u0430\u043B\u0438\u0447\u0438\u0438"]})}),(0,e.jsx)(a.XI.Cell,{collapsing:!0,textAlign:"center",children:(0,e.jsx)(a.$n,{fluid:!0,disabled:K,icon:T,textAlign:"left",onClick:function(){return v("vend",{ref:l.ref})},children:w})}),(0,e.jsx)(a.XI.Cell,{children:h.colorable?(0,e.jsx)(a.$n,{fluid:!0,icon:"palette",disabled:K,onClick:function(){return v("select_colors",{ref:l.ref})}}):""})]})},y=function(m){var d=(0,n.Oc)(),v=d.act,_=d.data,l=_.user,c=_.guestNotice,h=_.userMoney,g=_.chargesMoney,p=_.product_records,j=p===void 0?[]:p,x=_.coin_records,C=x===void 0?[]:x,I=_.hidden_records,P=I===void 0?[]:I,M=_.stock,B=_.categories,w=_.coin_name,T=_.inserted_item_name,K=_.panel_open,R=_.speaker,U=(0,s.useState)(""),F=U[0],$=U[1],W=(0,t.XZ)(F,function(G){return G.name}),N=(0,s.useState)(Object.keys(B)[0]),Z=N[0],ie=N[1],Q;Q=[].concat(j,C),_.extended_inventory&&(Q=[].concat(Q,P)),F.length>=2&&(Q=Q.filter(W)),Q=Q.filter(function(G){return!!G});var V=Object.fromEntries(Object.entries(_.categories).filter(function(G){var le=G[0];return Q.find(function(xe){return"category"in xe?xe.category===le:!1})}));return(0,e.jsx)(O.p8,{width:470,height:100+Math.min(j.length*38,500),children:(0,e.jsx)(O.p8.Content,{children:(0,e.jsxs)(a.BJ,{fill:!0,vertical:!0,children:[(0,e.jsxs)(a.BJ.Item,{children:[!!g&&(0,e.jsx)(a.wn,{title:"\u041F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C",children:l&&(0,e.jsxs)(a.az,{children:["\u0417\u0434\u0440\u0430\u0441\u0442\u0432\u0443\u0439\u0442\u0435, ",(0,e.jsx)("b",{children:l.name}),","," ",(0,e.jsx)("b",{children:l.job||"\u0411\u0435\u0437\u0440\u0430\u0431\u043E\u0442\u043D\u044B\u0439"}),"!",(0,e.jsx)("br",{}),"\u0412\u0430\u0448 \u0431\u0430\u043B\u0430\u043D\u0441: ",(0,e.jsxs)("b",{children:[h," \u043A\u0440."]})]})||(0,e.jsx)(a.az,{color:"light-grey",children:c})}),!!w&&(0,e.jsx)(a.wn,{title:"\u041C\u043E\u043D\u0435\u0442\u0430",buttons:(0,e.jsx)(a.$n,{fluid:!0,icon:"eject",onClick:function(){return v("remove_coin",{})},children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u043C\u043E\u043D\u0435\u0442\u0443"}),children:(0,e.jsx)(a.az,{children:w})}),!!T&&(0,e.jsx)(a.wn,{title:"\u041F\u0440\u0435\u0434\u043C\u0435\u0442",buttons:(0,e.jsx)(a.$n,{fluid:!0,icon:"eject",onClick:function(){return v("eject_item",{})},children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u043F\u0440\u0435\u0434\u043C\u0435\u0442"}),children:(0,e.jsx)(a.az,{children:T})}),!!K&&(0,e.jsx)(a.wn,{title:"\u0422\u0435\u0445. \u043E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u043D\u0438\u0435",children:(0,e.jsx)(a.$n,{icon:R?"check":"volume-mute",selected:R,textAlign:"left",onClick:function(){return v("toggle_voice",{})},children:"\u0414\u0438\u043D\u0430\u043C\u0438\u043A"})})]}),F.length<2&&Object.keys(V).length>1&&(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(f,{categories:V,selectedCategory:Z,onSelect:ie})}),(0,e.jsx)(a.BJ.Item,{grow:!0,children:(0,e.jsx)(a.wn,{title:"\u041F\u0440\u043E\u0434\u0443\u043A\u0446\u0438\u044F",fill:!0,scrollable:!0,children:(0,e.jsx)(a.XI,{children:Q.filter(function(G){return!F&&"category"in G?G.category===Z:!0}).map(function(G){return(0,e.jsx)(b,{product:G,inventory:Q,productStock:M[G.name],stockSearch:F,setStockSearch:$,selectedCategory:Z,setSelectedCategory:ie},G.name)})})})})]})})})},u={\u041A\u043E\u043D\u0442\u0440\u0430\u0431\u0430\u043D\u0434\u0430:"red",\u041F\u0440\u0435\u043C\u0438\u0443\u043C:"yellow"},f=function(m){var d=m.categories,v=m.selectedCategory,_=m.onSelect;return(0,e.jsx)(a.wn,{children:Object.entries(d).map(function(l){var c=l[0],h=l[1];return(0,e.jsx)(a.$n,{selected:c===v,color:u[c],icon:h.icon,onClick:function(){return _(c)},children:c},c)})})}},752:(q,S,r)=>{"use strict";r.r(S),r.d(S,{meta:()=>n});var e=r(1131),s=r(5180);/** + */var e=8,s=9,n=13,t=16,a=17,b=18,O=19,y=20,u=27,f=32,m=33,d=34,v=35,_=36,l=37,c=38,h=39,g=40,p=45,j=46,x=48,C=49,I=50,P=51,M=52,B=53,w=54,T=55,K=56,R=57,U=65,F=66,$=67,W=68,N=69,Z=70,ie=71,Q=72,V=73,G=74,le=75,xe=76,de=77,me=78,pe=79,Me=80,Ke=81,Le=82,Se=83,ln=84,ze=85,We=86,fn=87,Ze=88,In=89,En=90,Yn=96,Xn=97,ct=98,Ot=99,_t=100,Nt=101,nr=102,cn=103,wn=104,it=105,Kn=112,Pt=113,Mt=114,sr=115,tr=116,Ft=117,Bi=118,Xi=119,Dr=120,Yr=121,mi=122,Sr=123,wi=186,Wr=187,Br=188,Qr=189,Zr=190,Ai=191,qr=219,ei=220,xi=221,vi=222},726:(q,S,r)=>{"use strict";r.r(S),r.d(S,{LatheMenu:()=>O});var e=r(1131),s=r(360),n=r(1746),t=r(2905),a=r(5180),b=r(4904),O=function(y){var u=(0,s.Oc)().data,f=u.menu,m=u.linked_lathe,d=u.linked_imprinter;return f===4&&!m?(0,e.jsx)(a.az,{children:"\u041F\u0420\u041E\u0422\u041E\u041B\u0410\u0422 \u041D\u0415 \u041F\u041E\u0414\u041A\u041B\u042E\u0427\u0401\u041D"}):f===5&&!d?(0,e.jsx)(a.az,{children:"\u041F\u0420\u0418\u041D\u0422\u0415\u0420 \u041F\u041B\u0410\u0422 \u041D\u0415 \u041F\u041E\u0414\u041A\u041B\u042E\u0427\u0401\u041D"}):(0,e.jsxs)(a.az,{children:[(0,e.jsx)(n.RndRoute,{submenu:b.SUBMENU.MAIN,render:function(){return(0,e.jsx)(t.LatheMainMenu,{})}}),(0,e.jsx)(n.RndRoute,{submenu:b.SUBMENU.LATHE_CATEGORY,render:function(){return(0,e.jsx)(t.LatheCategory,{})}}),(0,e.jsx)(n.RndRoute,{submenu:b.SUBMENU.LATHE_MAT_STORAGE,render:function(){return(0,e.jsx)(t.LatheMaterialStorage,{})}}),(0,e.jsx)(n.RndRoute,{submenu:b.SUBMENU.LATHE_CHEM_STORAGE,render:function(){return(0,e.jsx)(t.LatheChemicalStorage,{})}})]})}},729:(q,S,r)=>{"use strict";r.r(S),r.d(S,{PersonalCrafting:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(y){var u=(0,s.Oc)(),f=u.act,m=u.data,d=m.busy,v=m.category,_=m.display_craftable_only,l=m.display_compact,c=m.prev_cat,h=m.next_cat,g=m.subcategory,p=m.prev_subcat,j=m.next_subcat;return(0,e.jsx)(t.p8,{width:700,height:800,children:(0,e.jsxs)(t.p8.Content,{scrollable:!0,children:[!!d&&(0,e.jsxs)(n.Rr,{fontSize:"32px",children:[(0,e.jsx)(n.In,{name:"cog",spin:1})," Crafting..."]}),(0,e.jsxs)(n.wn,{title:v,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:_?"check-square-o":"square-o",selected:_,onClick:function(){return f("toggle_recipes")},children:"Show Craftable Only"}),(0,e.jsx)(n.$n,{icon:l?"check-square-o":"square-o",selected:l,onClick:function(){return f("toggle_compact")},children:"Compact Mode"})]}),children:[(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.$n,{icon:"arrow-left",onClick:function(){return f("backwardCat")},children:c}),(0,e.jsx)(n.$n,{icon:"arrow-right",onClick:function(){return f("forwardCat")},children:h})]}),g&&(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.$n,{icon:"arrow-left",onClick:function(){return f("backwardSubCat")},children:p}),(0,e.jsx)(n.$n,{icon:"arrow-right",onClick:function(){return f("forwardSubCat")},children:j})]}),l?(0,e.jsx)(b,{}):(0,e.jsx)(O,{})]})]})})},b=function(y){var u=(0,s.Oc)(),f=u.act,m=u.data,d=m.display_craftable_only,v=m.can_craft,_=m.cant_craft;return(0,e.jsx)(n.az,{mt:1,children:(0,e.jsxs)(n.Ki,{children:[v.map(function(l){return(0,e.jsxs)(n.Ki.Item,{label:l.name,children:[(0,e.jsx)(n.$n,{icon:"hammer",onClick:function(){return f("make",{make:l.ref})},children:"Craft"}),l.catalyst_text&&(0,e.jsx)(n.$n,{tooltip:l.catalyst_text,color:"transparent",children:"Catalysts"}),(0,e.jsx)(n.$n,{tooltip:l.req_text,color:"transparent",children:"Requirements"}),l.tool_text&&(0,e.jsx)(n.$n,{tooltip:l.tool_text,color:"transparent",children:"Tools"})]},l.ref)}),!d&&_.map(function(l){return(0,e.jsxs)(n.Ki.Item,{label:l.name,children:[(0,e.jsx)(n.$n,{icon:"hammer",disabled:!0,children:"Craft"}),l.catalyst_text&&(0,e.jsx)(n.$n,{tooltip:l.catalyst_text,color:"transparent",children:"Catalysts"}),(0,e.jsx)(n.$n,{tooltip:l.req_text,color:"transparent",children:"Requirements"}),l.tool_text&&(0,e.jsx)(n.$n,{tooltip:l.tool_text,color:"transparent",children:"Tools"})]},l.ref)})]})})},O=function(y){var u=(0,s.Oc)(),f=u.act,m=u.data,d=m.display_craftable_only,v=m.can_craft,_=m.cant_craft;return(0,e.jsxs)(n.az,{mt:1,children:[v.map(function(l){return(0,e.jsx)(n.wn,{title:l.name,buttons:(0,e.jsx)(n.$n,{icon:"hammer",onClick:function(){return f("make",{make:l.ref})},children:"Craft"}),children:(0,e.jsxs)(n.Ki,{children:[l.catalyst_text&&(0,e.jsx)(n.Ki.Item,{label:"Catalysts",children:l.catalyst_text}),(0,e.jsx)(n.Ki.Item,{label:"Requirements",children:l.req_text}),l.tool_text&&(0,e.jsx)(n.Ki.Item,{label:"Tools",children:l.tool_text})]})},l.ref)}),!d&&_.map(function(l){return(0,e.jsx)(n.wn,{title:l.name,buttons:(0,e.jsx)(n.$n,{icon:"hammer",disabled:!0,children:"Craft"}),children:(0,e.jsxs)(n.Ki,{children:[l.catalyst_text&&(0,e.jsx)(n.Ki.Item,{label:"Catalysts",children:l.catalyst_text}),(0,e.jsx)(n.Ki.Item,{label:"Requirements",children:l.req_text}),l.tool_text&&(0,e.jsx)(n.Ki.Item,{label:"Tools",children:l.tool_text})]})},l.ref)})]})}},738:(q,S,r)=>{"use strict";r.r(S),r.d(S,{BotSecurity:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(b){var O=(0,s.Oc)(),y=O.act,u=O.data,f=u.locked,m=u.noaccess,d=u.maintpanel,v=u.on,_=u.autopatrol,l=u.canhack,c=u.emagged,h=u.remote_disabled,g=u.painame,p=u.check_id,j=u.check_weapons,x=u.check_warrant,C=u.arrest_mode,I=u.arrest_declare;return(0,e.jsx)(t.p8,{width:500,height:500,children:(0,e.jsxs)(t.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(n.IC,{children:["\u041F\u0440\u043E\u0432\u0435\u0434\u0438\u0442\u0435 \u0441\u0432\u043E\u0435\u0439 ID-\u043A\u0430\u0440\u0442\u043E\u0439, \u0447\u0442\u043E\u0431\u044B",f?"\u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u0442\u044C":"\u0437\u0430\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u0442\u044C"," \u044D\u0442\u043E\u0442 \u0438\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441."]}),(0,e.jsx)(n.wn,{title:"\u041E\u0441\u043D\u043E\u0432\u043D\u044B\u0435 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",children:(0,e.jsx)(n.$n,{icon:v?"power-off":"times",selected:v,disabled:m,onClick:function(){return y("power")},children:v?"\u0412\u043A\u043B\u044E\u0447\u0451\u043D":"\u0412\u044B\u043A\u043B\u044E\u0447\u0435\u043D"})}),(0,e.jsx)(n.Ki.Item,{label:"\u0420\u0435\u0436\u0438\u043C \u043F\u0430\u0442\u0440\u0443\u043B\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F",children:(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:_,disabled:m,onClick:function(){return y("autopatrol")},children:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u043F\u0430\u0442\u0440\u0443\u043B\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435"})}),!!d&&(0,e.jsx)(n.Ki.Item,{label:"\u041F\u0430\u043D\u0435\u043B\u044C \u0442\u0435\u0445\u043E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u043D\u0438\u044F",children:(0,e.jsx)(n.az,{color:"bad",children:"\u041F\u0430\u043D\u0435\u043B\u044C \u043E\u0442\u043A\u0440\u044B\u0442\u0430"})}),(0,e.jsx)(n.Ki.Item,{label:"\u041F\u0440\u043E\u0442\u043E\u043A\u043E\u043B\u044B \u0431\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u0438",children:(0,e.jsx)(n.az,{color:c?"bad":"good",children:c?"\u041E\u0442\u043A\u043B\u044E\u0447\u0435\u043D\u044B":"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u044B"})}),!!l&&(0,e.jsx)(n.Ki.Item,{label:"\u0412\u0437\u043B\u043E\u043C",children:(0,e.jsx)(n.$n,{icon:"terminal",disabled:m,color:"bad",onClick:function(){return y("hack")},children:c?"\u0412\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u043F\u0440\u043E\u0442\u043E\u043A\u043E\u043B\u044B \u0431\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u0438":"\u0412\u0437\u043B\u043E\u043C\u0430\u0442\u044C"})}),(0,e.jsx)(n.Ki.Item,{label:"\u0423\u0434\u0430\u043B\u0451\u043D\u043D\u044B\u0439 \u0434\u043E\u0441\u0442\u0443\u043F",children:(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:!h,disabled:m,onClick:function(){return y("disableremote")},children:"\u0423\u0434\u0430\u043B\u0451\u043D\u043D\u044B\u0439 \u0434\u043E\u0441\u0442\u0443\u043F \u0441\u043E \u0441\u0442\u043E\u0440\u043E\u043D\u044B \u0418\u0418"})})]})}),(0,e.jsxs)(n.wn,{title:"\u0417\u0430\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043C\u044B\u0435 \u0446\u0435\u043B\u0438",children:[(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:p,disabled:m,onClick:function(){return y("authid")},children:"\u041D\u0435\u043E\u043F\u043E\u0437\u043D\u0430\u043D\u043D\u044B\u0435 \u043B\u0438\u0447\u043D\u043E\u0441\u0442\u0438"}),(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:j,disabled:m,onClick:function(){return y("authweapon")},children:"\u0418\u043C\u0435\u044E\u0449\u0438\u0435 \u043D\u0435\u0430\u0432\u0442\u043E\u0440\u0438\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u043E\u0435 \u043E\u0440\u0443\u0436\u0438\u0435"}),(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:x,disabled:m,onClick:function(){return y("authwarrant")},children:"\u0420\u0430\u0437\u044B\u0441\u043A\u0438\u0432\u0430\u0435\u043C\u044B\u0435 \u043F\u0440\u0435\u0441\u0442\u0443\u043F\u043D\u0438\u043A\u0438"})]}),(0,e.jsxs)(n.wn,{title:"\u041F\u0440\u043E\u0446\u0435\u0434\u0443\u0440\u0430 \u0437\u0430\u0434\u0435\u0440\u0436\u0430\u043D\u0438\u044F",children:[(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:C,disabled:m,onClick:function(){return y("arrtype")},children:"\u0411\u0435\u0441\u0441\u0440\u043E\u0447\u043D\u043E\u0435 \u043E\u0433\u043B\u0443\u0448\u0435\u043D\u0438\u0435 \u0446\u0435\u043B\u0435\u0439 \u0432\u043C\u0435\u0441\u0442\u043E \u0437\u0430\u0434\u0435\u0440\u0436\u0430\u043D\u0438\u044F"}),(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:I,disabled:m,onClick:function(){return y("arrdeclare")},children:"\u0421\u043E\u043E\u0431\u0449\u0430\u0442\u044C \u043E \u0437\u0430\u0434\u0435\u0440\u0436\u0430\u043D\u0438\u0438 \u043F\u043E \u0440\u0430\u0434\u0438\u043E\u0441\u0432\u044F\u0437\u0438"})]}),g&&(0,e.jsx)(n.wn,{title:"\u041F\u0418\u0418",children:(0,e.jsx)(n.$n,{fluid:!0,icon:"eject",disabled:m,onClick:function(){return y("ejectpai")},children:g})})]})})}},748:(q,S,r)=>{"use strict";r.r(S),r.d(S,{Vending:()=>y});var e=r(1131),s=r(7003),n=r(360),t=r(9845),a=r(5180),b=r(3521),O=function(m){var d=(0,n.Oc)(),v=d.act,_=d.data,l=m.product,c=m.inventory,h=m.productStock,g=m.stockSearch,p=m.setStockSearch,j=m.selectedCategory,x=m.setSelectedCategory,C=_.chargesMoney,I=_.userMoney,P=_.vend_ready,M=_.coin_name,B=!C||l.price===0,w="\u041E\u0428\u0418\u0411\u041A\u0410",T="",K=!P||!M&&l.req_coin||h.amount===0||!B&&l.price>I;return l.req_coin?(w="\u041C\u041E\u041D\u0415\u0422\u0410",T="circle"):B?(w="\u0411\u0415\u0421\u041F\u041B\u0410\u0422\u041D\u041E",T="arrow-circle-down"):(w=l.price.toString(),T="shopping-cart"),(0,e.jsxs)(a.XI.Row,{children:[(0,e.jsx)(a.XI.Cell,{collapsing:!0,children:(0,e.jsx)(a.Hg,{verticalAlign:"middle",icon:l.icon,icon_state:l.icon_state,fallback:(0,e.jsx)(a.In,{p:.66,name:"spinner",size:2,spin:!0})})}),(0,e.jsx)(a.XI.Cell,{bold:!0,children:(0,e.jsx)(a.$n,{multiLine:!0,color:"translucent",tooltip:l.desc,children:l.name})}),(0,e.jsx)(a.XI.Cell,{collapsing:!0,textAlign:"center",children:(0,e.jsxs)(a.az,{color:h.amount<=0&&"bad"||h.amount<=l.max_amount/2&&"average"||"good",children:[h.amount," \u0432 \u043D\u0430\u043B\u0438\u0447\u0438\u0438"]})}),(0,e.jsx)(a.XI.Cell,{collapsing:!0,textAlign:"center",children:(0,e.jsx)(a.$n,{fluid:!0,disabled:K,icon:T,textAlign:"left",onClick:function(){return v("vend",{ref:l.ref})},children:w})}),(0,e.jsx)(a.XI.Cell,{children:h.colorable?(0,e.jsx)(a.$n,{fluid:!0,icon:"palette",disabled:K,onClick:function(){return v("select_colors",{ref:l.ref})}}):""})]})},y=function(m){var d=(0,n.Oc)(),v=d.act,_=d.data,l=_.user,c=_.guestNotice,h=_.userMoney,g=_.chargesMoney,p=_.product_records,j=p===void 0?[]:p,x=_.coin_records,C=x===void 0?[]:x,I=_.hidden_records,P=I===void 0?[]:I,M=_.stock,B=_.categories,w=_.coin_name,T=_.inserted_item_name,K=_.panel_open,R=_.speaker,U=(0,s.useState)(""),F=U[0],$=U[1],W=(0,t.XZ)(F,function(G){return G.name}),N=(0,s.useState)(Object.keys(B)[0]),Z=N[0],ie=N[1],Q;Q=[].concat(j,C),_.extended_inventory&&(Q=[].concat(Q,P)),F.length>=2&&(Q=Q.filter(W)),Q=Q.filter(function(G){return!!G});var V=Object.fromEntries(Object.entries(_.categories).filter(function(G){var le=G[0];return Q.find(function(xe){return"category"in xe?xe.category===le:!1})}));return(0,e.jsx)(b.p8,{width:470,height:100+Math.min(j.length*38,500),children:(0,e.jsx)(b.p8.Content,{children:(0,e.jsxs)(a.BJ,{fill:!0,vertical:!0,children:[(0,e.jsxs)(a.BJ.Item,{children:[!!g&&(0,e.jsx)(a.wn,{title:"\u041F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C",children:l&&(0,e.jsxs)(a.az,{children:["\u0417\u0434\u0440\u0430\u0441\u0442\u0432\u0443\u0439\u0442\u0435, ",(0,e.jsx)("b",{children:l.name}),","," ",(0,e.jsx)("b",{children:l.job||"\u0411\u0435\u0437\u0440\u0430\u0431\u043E\u0442\u043D\u044B\u0439"}),"!",(0,e.jsx)("br",{}),"\u0412\u0430\u0448 \u0431\u0430\u043B\u0430\u043D\u0441: ",(0,e.jsxs)("b",{children:[h," \u043A\u0440."]})]})||(0,e.jsx)(a.az,{color:"light-grey",children:c})}),!!w&&(0,e.jsx)(a.wn,{title:"\u041C\u043E\u043D\u0435\u0442\u0430",buttons:(0,e.jsx)(a.$n,{fluid:!0,icon:"eject",onClick:function(){return v("remove_coin",{})},children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u043C\u043E\u043D\u0435\u0442\u0443"}),children:(0,e.jsx)(a.az,{children:w})}),!!T&&(0,e.jsx)(a.wn,{title:"\u041F\u0440\u0435\u0434\u043C\u0435\u0442",buttons:(0,e.jsx)(a.$n,{fluid:!0,icon:"eject",onClick:function(){return v("eject_item",{})},children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u043F\u0440\u0435\u0434\u043C\u0435\u0442"}),children:(0,e.jsx)(a.az,{children:T})}),!!K&&(0,e.jsx)(a.wn,{title:"\u0422\u0435\u0445. \u043E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u043D\u0438\u0435",children:(0,e.jsx)(a.$n,{icon:R?"check":"volume-mute",selected:R,textAlign:"left",onClick:function(){return v("toggle_voice",{})},children:"\u0414\u0438\u043D\u0430\u043C\u0438\u043A"})})]}),F.length<2&&Object.keys(V).length>1&&(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(f,{categories:V,selectedCategory:Z,onSelect:ie})}),(0,e.jsx)(a.BJ.Item,{grow:!0,children:(0,e.jsx)(a.wn,{title:"\u041F\u0440\u043E\u0434\u0443\u043A\u0446\u0438\u044F",fill:!0,scrollable:!0,children:(0,e.jsx)(a.XI,{children:Q.filter(function(G){return!F&&"category"in G?G.category===Z:!0}).map(function(G){return(0,e.jsx)(O,{product:G,inventory:Q,productStock:M[G.name],stockSearch:F,setStockSearch:$,selectedCategory:Z,setSelectedCategory:ie},G.name)})})})})]})})})},u={\u041A\u043E\u043D\u0442\u0440\u0430\u0431\u0430\u043D\u0434\u0430:"red",\u041F\u0440\u0435\u043C\u0438\u0443\u043C:"yellow"},f=function(m){var d=m.categories,v=m.selectedCategory,_=m.onSelect;return(0,e.jsx)(a.wn,{children:Object.entries(d).map(function(l){var c=l[0],h=l[1];return(0,e.jsx)(a.$n,{selected:c===v,color:u[c],icon:h.icon,onClick:function(){return _(c)},children:c},c)})})}},752:(q,S,r)=>{"use strict";r.r(S),r.d(S,{meta:()=>n});var e=r(1131),s=r(5180);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var n={title:"Box",render:function(){return(0,e.jsx)(t,{})}},t=function(a){return(0,e.jsxs)(s.wn,{children:[(0,e.jsx)(s.az,{bold:!0,children:"bold"}),(0,e.jsx)(s.az,{italic:!0,children:"italic"}),(0,e.jsx)(s.az,{opacity:.5,children:"opacity 0.5"}),(0,e.jsx)(s.az,{opacity:.25,children:"opacity 0.25"}),(0,e.jsx)(s.az,{m:2,children:"m: 2"}),(0,e.jsx)(s.az,{textAlign:"left",children:"left"}),(0,e.jsx)(s.az,{textAlign:"center",children:"center"}),(0,e.jsx)(s.az,{textAlign:"right",children:"right"})]})}},785:(q,S,r)=>{"use strict";r.r(S),r.d(S,{VampireTrophiesStatus:()=>O});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(g){return(Math.round(g*10)/10).toFixed(1)},O=function(g){return(0,e.jsx)(t.p8,{theme:"ntos_spooky",width:700,height:800,children:(0,e.jsx)(t.p8.Content,{scrollable:!0,children:(0,e.jsxs)(n.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(b,{}),(0,e.jsx)(y,{}),(0,e.jsx)(u,{}),(0,e.jsx)(f,{}),(0,e.jsx)(m,{}),(0,e.jsx)(d,{}),(0,e.jsx)(v,{}),(0,e.jsx)(_,{}),(0,e.jsx)(l,{}),(0,e.jsx)(c,{}),(0,e.jsx)(h,{})]})})})},b=function(g){var p=(0,s.Oc)().data,j=p.hearts,x=p.lungs,C=p.livers,I=p.kidneys,P=p.eyes,M=p.ears,B=p.trophies_max_gen,w=p.trophies_max_crit,T=p.organs_icon,K=p.icon_hearts,R=p.icon_lungs,U=p.icon_livers,F=p.icon_kidneys,$=p.icon_eyes,W=p.icon_ears;return(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.wn,{title:"\u0422\u0440\u043E\u0444\u0435\u0438",color:"red",textAlign:"center",verticalAlign:"middle",children:(0,e.jsxs)(n.BJ,{fill:!0,children:[(0,e.jsxs)(n.az,{inline:!0,width:"16.6%",children:[(0,e.jsx)(n.Hg,{icon:T,icon_state:K,verticalAlign:"middle",style:{marginLeft:"-32px",marginRight:"-48px",marginTop:"-32px",marginBottom:"-48px",height:"128px",width:"128px"}}),(0,e.jsx)(n.az,{bold:!0,textColor:j{"use strict";r.r(S),r.d(S,{SlotMachine:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(O){var b=(0,s.Oc)(),y=b.act,u=b.data;return u.money===null?(0,e.jsx)(t.p8,{width:350,height:200,children:(0,e.jsx)(t.p8.Content,{children:(0,e.jsxs)(n.wn,{children:[(0,e.jsx)(n.az,{bold:!0,children:"\u041D\u0435\u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0438\u0442\u044C \u043F\u043B\u0430\u0442\u0435\u0436\u043D\u044B\u0439 \u0430\u043A\u043A\u0430\u0443\u043D\u0442!"}),(0,e.jsx)(n.az,{children:"\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430 \u043D\u0430\u0434\u0435\u043D\u044C\u0442\u0435 \u0438\u043B\u0438 \u0434\u0435\u0440\u0436\u0438\u0442\u0435 \u0432 \u0440\u0443\u043A\u0430\u0445 \u0432\u0430\u0448\u0443 \u043A\u0430\u0440\u0442\u0443 \u0438 \u043F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0437\u0430\u043D\u043E\u0432\u043E."})]})})}):(0,e.jsx)(t.p8,{width:350,height:200,children:(0,e.jsx)(t.p8.Content,{children:(0,e.jsxs)(n.wn,{children:[(0,e.jsxs)(n.az,{lineHeight:2,children:["\u0418\u0433\u0440\u043E\u043A\u043E\u0432 \u043F\u043E\u043F\u044B\u0442\u0430\u0432\u0430\u0448\u0438\u0445 \u0443\u0434\u0430\u0447\u0443 \u0441\u0435\u0433\u043E\u0434\u043D\u044F: ",u.plays]}),(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"\u041A\u0440\u0435\u0434\u0438\u0442\u043E\u0432 \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u043E",children:(0,e.jsx)(n.zv,{value:u.money})}),(0,e.jsx)(n.Ki.Item,{label:"50 \u043A\u0440\u0435\u0434\u0438\u0442\u043E\u0432 \u0434\u043B\u044F \u0438\u0433\u0440\u044B",children:(0,e.jsx)(n.$n,{icon:"coins",disabled:u.working,onClick:function(){return y("spin")},children:u.working?"\u041F\u043E\u0434\u043E\u0436\u0434\u0438\u0442\u0435...":"\u041A\u0440\u0443\u0442\u0438\u0442\u044C"})})]}),(0,e.jsx)(n.az,{bold:!0,lineHeight:2,color:u.resultlvl,children:u.result})]})})})}},829:(q,S,r)=>{"use strict";r.r(S),r.d(S,{BeakerContents:()=>a});var e=r(1131),s=r(9845),n=r(5180),t=function(O){return O+" \u0435\u0434\u0438\u043D\u0438\u0446"+(0,s.bl)(O,"\u0430","\u044B","")},a=function(O){var b=O.beakerLoaded,y=O.beakerContents,u=y===void 0?[]:y,f=O.buttons;return(0,e.jsxs)(n.BJ,{vertical:!0,children:[!b&&(0,e.jsx)(n.BJ.Item,{color:"label",children:"\u0401\u043C\u043A\u043E\u0441\u0442\u044C \u043E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442."})||u.length===0&&(0,e.jsx)(n.BJ.Item,{color:"label",children:"\u0401\u043C\u043A\u043E\u0441\u0442\u044C \u043F\u0443\u0441\u0442\u0430."}),u.map(function(m,d){return(0,e.jsxs)(n.BJ,{children:[(0,e.jsxs)(n.BJ.Item,{color:"label",grow:!0,children:[t(m.volume)," ",m.name]}),!!f&&(0,e.jsx)(n.BJ.Item,{children:f(m,d)})]},m.name)})]})}},876:(q,S,r)=>{"use strict";r.r(S),r.d(S,{UploadPanel:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(O){var b=(0,s.Oc)(),y=b.act,u=b.data,f=u.selected_target,m=u.new_law,d=u.id,v=u.transmitting,_=u.hacked;return(0,e.jsx)(t.p8,{width:900,height:200,children:(0,e.jsx)(t.p8.Content,{children:(0,e.jsx)(n.wn,{title:"Silicon Law Upload",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Selected Target",children:(0,e.jsx)(n.$n,{disabled:v,selected:!!f,onClick:function(){return y("choose_silicon")},children:f||"No target selected"})}),(0,e.jsx)(n.Ki.Item,{label:"Selected Law",children:(0,e.jsx)(n.$n,{disabled:v,selected:!!m,onClick:function(){return y("insert_module")},children:m||"No module installed"})}),(0,e.jsx)(n.Ki.Item,{label:"Authorization",children:(0,e.jsx)(n.$n,{selected:!!d,onClick:function(){return y("authorization")},children:d||(_?"$@!ERR0R!@#":"No ID card inserted")})}),(0,e.jsx)(n.Ki.Item,{label:"Upload Laws",children:(0,e.jsx)(n.$n,{disabled:!f||!m||(_?!1:!d),selected:!!v,onClick:function(){return y("change_laws")},children:v?"STOP UPLOAD":"START UPLOAD"})})]})})})})}},892:(q,S,r)=>{"use strict";r.r(S),r.d(S,{RCD:()=>b});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=r(538),O=r(3211),b=function(_){return(0,e.jsxs)(t.p8,{width:480,height:670,children:[(0,e.jsx)(a.ComplexModal,{}),(0,e.jsx)(t.p8.Content,{children:(0,e.jsxs)(n.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(y,{}),(0,e.jsx)(u,{}),(0,e.jsx)(m,{}),(0,e.jsx)(d,{})]})})]})},y=function(_){var l=(0,s.Oc)().data,c=l.matter,h=l.max_matter,g=h*.7,p=h*.25;return(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.wn,{title:"Matter Storage",children:(0,e.jsx)(n.z2,{ranges:{good:[g,1/0],average:[p,g],bad:[-1/0,p]},value:c,maxValue:h,children:(0,e.jsx)(n.BJ.Item,{textAlign:"center",children:c+" / "+h+" units"})})})})},u=function(){return(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.wn,{title:"Construction Type",children:(0,e.jsxs)(n.BJ,{children:[(0,e.jsx)(f,{mode_type:"Floors and Walls"}),(0,e.jsx)(f,{mode_type:"Airlocks"}),(0,e.jsx)(f,{mode_type:"Windows"}),(0,e.jsx)(f,{mode_type:"Deconstruction"}),(0,e.jsx)(f,{mode_type:"Firelocks"})]})})})},f=function(_){var l=(0,s.Oc)(),c=l.act,h=l.data,g=_.mode_type,p=h.mode;return(0,e.jsx)(n.BJ.Item,{grow:!0,textAlign:"center",children:(0,e.jsx)(n.$n,{fluid:!0,color:"transparent",selected:p===g?1:0,onClick:function(){return c("mode",{mode:g})},children:g})})},m=function(_){var l=(0,s.Oc)(),c=l.act,h=l.data,g=h.door_name,p=h.electrochromic,j=h.airlock_glass;return(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.wn,{title:"Airlock Settings",children:(0,e.jsxs)(n.BJ,{textAlign:"center",children:[(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(n.$n,{fluid:!0,color:"transparent",icon:"pen-alt",onClick:function(){return(0,a.modalOpen)("renameAirlock")},children:(0,e.jsxs)(e.Fragment,{children:["Rename: ",(0,e.jsx)("b",{children:g})]})})}),(0,e.jsx)(n.BJ.Item,{children:j&&(0,e.jsx)(n.$n,{fluid:!0,icon:p?"toggle-on":"toggle-off",selected:p,onClick:function(){return c("electrochromic")},children:"Electrochromic"})})]})})})},d=function(_){var l=(0,s.Oc)(),c=l.act,h=l.data,g=h.tab,p=h.locked,j=h.one_access,x=h.selected_accesses,C=h.regions;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.BJ.Item,{textAlign:"center",children:(0,e.jsxs)(n.tU,{fluid:!0,children:[(0,e.jsx)(n.tU.Tab,{icon:"cog",selected:g===1,onClick:function(){return c("set_tab",{tab:1})},children:"Airlock Types"}),(0,e.jsx)(n.tU.Tab,{selected:g===2,icon:"list",onClick:function(){return c("set_tab",{tab:2})},children:"Airlock Access"})]})}),(0,e.jsx)(n.BJ.Item,{grow:!0,children:g===1?(0,e.jsx)(n.wn,{fill:!0,scrollable:!0,title:"Types",children:(0,e.jsxs)(n.BJ,{children:[(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(v,{check_number:0})}),(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(v,{check_number:1})})]})}):g===2&&p?(0,e.jsx)(n.wn,{fill:!0,title:"Access",buttons:(0,e.jsx)(n.$n,{icon:"lock-open",onClick:function(){return c("set_lock",{new_lock:"unlock"})},children:"Unlock"}),children:(0,e.jsx)(n.BJ,{fill:!0,children:(0,e.jsxs)(n.BJ.Item,{grow:!0,textAlign:"center",align:"center",color:"label",children:[(0,e.jsx)(n.In,{name:"lock",size:5,mb:3}),(0,e.jsx)("br",{}),"Airlock access selection is currently locked."]})})}):(0,e.jsx)(O.AccessList,{sectionButtons:[(0,e.jsx)(n.$n,{icon:"lock",onClick:function(){return c("set_lock",{new_lock:"lock"})},children:"Lock"},1)],usedByRcd:!0,rcdButtons:[(0,e.jsx)(n.$n.Checkbox,{checked:j,onClick:function(){return c("set_one_access",{access:"one"})},children:"One"},1),(0,e.jsx)(n.$n.Checkbox,{checked:!j,width:4,onClick:function(){return c("set_one_access",{access:"all"})},children:"All"},2)],accesses:C,selectedList:x,accessMod:function(I){return c("set",{access:I})},grantAll:function(){return c("grant_all")},denyAll:function(){return c("clear_all")},grantDep:function(I){return c("grant_region",{region:I})},denyDep:function(I){return c("deny_region",{region:I})}})})]})},v=function(_){for(var l=(0,s.Oc)(),c=l.act,h=l.data,g=h.door_types_ui_list,p=h.door_type,j=_.check_number,x=[],C=0;C{"use strict";r.r(S),r.d(S,{BrigTimer:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(O){var b=(0,s.Oc)(),y=b.act,u=b.data;u.nameText=u.occupant,u.timing&&(u.prisoner_hasrec?u.nameText=(0,e.jsx)(n.az,{color:"green",children:u.occupant}):u.nameText=(0,e.jsx)(n.az,{color:"red",children:u.occupant}));var f="pencil-alt";u.prisoner_name&&(u.prisoner_hasrec||(f="exclamation-triangle"));var m=[],d=0;for(d=0;d60||!u.isAllowed,onClick:function(){return y("start")},children:"Start Sentence"})})]})})]})})}},933:(q,S,r)=>{"use strict";r.r(S),r.d(S,{MiningVendor:()=>f});var e=r(1131),s=r(9845),n=r(360),t=r(7003),a=r(5180),O=r(3521);function b(){return b=Object.assign||function(l){for(var c=1;c=0)&&(h[p]=l[p]);return h}var u={Alphabetical:function(l,c){return l-c},Availability:function(l,c){return-(l.affordable-c.affordable)},Price:function(l,c){return l.price-c.price}},f=function(l){var c=(0,t.useState)(!1),h=c[0],g=c[1],p=(0,t.useState)(""),j=p[0],x=p[1],C=(0,t.useState)("Alphabetical"),I=C[0],P=C[1],M=(0,t.useState)(!1),B=M[0],w=M[1];return(0,e.jsx)(O.p8,{width:400,height:525,children:(0,e.jsx)(O.p8.Content,{children:(0,e.jsxs)(a.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(m,{}),(0,e.jsx)(v,{gridLayout:h,setGridLayout:g,sortOrder:B,sortType:I,setSortOrder:w,setSearchText:x,setSortType:P}),(0,e.jsx)(d,{gridLayout:h,sortOrder:B,searchText:j,sortType:I})]})})})},m=function(l){var c=(0,n.Oc)(),h=c.act,g=c.data,p=g.has_id,j=g.id;return(0,e.jsx)(a.IC,{success:p,children:p?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(a.az,{inline:!0,verticalAlign:"middle",style:{float:"left"},children:["Logged in as ",j.name,".",(0,e.jsx)("br",{}),"You have ",j.points.toLocaleString("en-US")," points."]}),(0,e.jsx)(a.$n,{icon:"eject",style:{float:"right"},onClick:function(){return h("logoff")},children:"Eject ID"}),(0,e.jsx)(a.az,{style:{clear:"both"}})]}):"Please insert an ID in order to make purchases."})},d=function(l){var c=(0,n.Oc)().data,h=c.has_id,g=c.id,p=c.items,j=l.gridLayout,x=l.searchText,C=l.sortOrder,I=l.sortType,P=(0,s.XZ)(x,function(w){return w[0]}),M=!1,B=Object.entries(p).map(function(w,T){var K=Object.entries(w[1]).filter(P).map(function(R){return R[1].affordable=h&&g.points>=R[1].price,R[1]}).sort(u[I]);if(K.length!==0)return C&&(K=K.reverse()),M=!0,(0,e.jsx)(_,{title:w[0],items:K,gridLayout:j},w[0])});return(0,e.jsx)(a.BJ.Item,{grow:!0,mt:.5,children:(0,e.jsx)(a.wn,{fill:!0,scrollable:!0,children:M?B:(0,e.jsx)(a.az,{color:"label",children:"No items matching your criteria was found!"})})})},v=function(l){var c=l.gridLayout,h=l.setGridLayout,g=l.setSearchText,p=l.setSortOrder,j=l.setSortType,x=l.sortOrder,C=l.sortType;return(0,e.jsx)(a.az,{children:(0,e.jsxs)(a.BJ,{fill:!0,children:[(0,e.jsx)(a.BJ.Item,{grow:!0,children:(0,e.jsx)(a.pd,{mt:.2,placeholder:"Search by item name..",width:"100%",expensive:!0,onChange:g})}),(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(a.$n,{icon:c?"list":"table-cells-large",height:1.75,tooltip:c?"Toggle List Layout":"Toggle Grid Layout",tooltipPosition:"bottom-start",onClick:function(){return h(!c)}})}),(0,e.jsx)(a.BJ.Item,{basis:"30%",children:(0,e.jsx)(a.ms,{selected:C,options:Object.keys(u),width:"100%",onSelected:function(I){return j(I)}})}),(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(a.$n,{icon:x?"arrow-down":"arrow-up",height:1.75,tooltip:x?"Descending order":"Ascending order",tooltipPosition:"bottom-start",onClick:function(){return p(!x)}})})]})})},_=function(l){var c=(0,n.Oc)(),h=c.act,g=c.data,p=l.title,j=l.items,x=l.gridLayout,C=y(l,["title","items","gridLayout"]);return(0,e.jsx)(a.Nt,b({open:!0,title:p},C,{children:j.map(function(I){return x?(0,e.jsx)(a.c_,{mb:.5,imageSize:57.5,dmIcon:I.icon,dmIconState:I.icon_state,disabled:!g.has_id||g.id.points{"use strict";r.r(S),r.d(S,{pai_camera_bug:()=>t});var e=r(1131),s=r(360),n=r(5180),t=function(a){var O=(0,s.Oc)().act;return(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Special Syndicate options",children:(0,e.jsx)(n.$n,{onClick:function(){return O("ui_interact")},children:"Select Monitor"})})})}},938:(q,S,r)=>{"use strict";r.r(S),r.d(S,{QuestConsole:()=>f});var e=r(1131),s=r(360),n=r(7003),t=r(5180),a=r(185),O=r(3521),b=r(9845),y=function(c,h){return h&&(c/=10),c>1100?"purple":c>500?"orange":c>250?"yellow":"green"},u=function(c,h){for(var g=[],p=0;p{"use strict";r.d(S,{m:()=>f});var e=r(1131),s=r(3523),n=r(7003),t=r(1263);function a(){return a=Object.assign||function(m){for(var d=1;d{"use strict";r.r(S),r.d(S,{TextInputModal:()=>m,removeAllSkiplines:()=>f,sanitizeMultiline:()=>u});var e=r(1131),s=r(7003),n=r(5180),t=r(1808),a=r(360),O=r(3521),b=r(30),y=r(3384),u=function(d){return d.replace(/(\n|\r\n){3,}/,` + */var n={title:"Box",render:function(){return(0,e.jsx)(t,{})}},t=function(a){return(0,e.jsxs)(s.wn,{children:[(0,e.jsx)(s.az,{bold:!0,children:"bold"}),(0,e.jsx)(s.az,{italic:!0,children:"italic"}),(0,e.jsx)(s.az,{opacity:.5,children:"opacity 0.5"}),(0,e.jsx)(s.az,{opacity:.25,children:"opacity 0.25"}),(0,e.jsx)(s.az,{m:2,children:"m: 2"}),(0,e.jsx)(s.az,{textAlign:"left",children:"left"}),(0,e.jsx)(s.az,{textAlign:"center",children:"center"}),(0,e.jsx)(s.az,{textAlign:"right",children:"right"})]})}},785:(q,S,r)=>{"use strict";r.r(S),r.d(S,{VampireTrophiesStatus:()=>b});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(g){return(Math.round(g*10)/10).toFixed(1)},b=function(g){return(0,e.jsx)(t.p8,{theme:"ntos_spooky",width:700,height:800,children:(0,e.jsx)(t.p8.Content,{scrollable:!0,children:(0,e.jsxs)(n.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(O,{}),(0,e.jsx)(y,{}),(0,e.jsx)(u,{}),(0,e.jsx)(f,{}),(0,e.jsx)(m,{}),(0,e.jsx)(d,{}),(0,e.jsx)(v,{}),(0,e.jsx)(_,{}),(0,e.jsx)(l,{}),(0,e.jsx)(c,{}),(0,e.jsx)(h,{})]})})})},O=function(g){var p=(0,s.Oc)().data,j=p.hearts,x=p.lungs,C=p.livers,I=p.kidneys,P=p.eyes,M=p.ears,B=p.trophies_max_gen,w=p.trophies_max_crit,T=p.organs_icon,K=p.icon_hearts,R=p.icon_lungs,U=p.icon_livers,F=p.icon_kidneys,$=p.icon_eyes,W=p.icon_ears;return(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.wn,{title:"\u0422\u0440\u043E\u0444\u0435\u0438",color:"red",textAlign:"center",verticalAlign:"middle",children:(0,e.jsxs)(n.BJ,{fill:!0,children:[(0,e.jsxs)(n.az,{inline:!0,width:"16.6%",children:[(0,e.jsx)(n.Hg,{icon:T,icon_state:K,verticalAlign:"middle",style:{marginLeft:"-32px",marginRight:"-48px",marginTop:"-32px",marginBottom:"-48px",height:"128px",width:"128px"}}),(0,e.jsx)(n.az,{bold:!0,textColor:j{"use strict";r.r(S),r.d(S,{SlotMachine:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(b){var O=(0,s.Oc)(),y=O.act,u=O.data;return u.money===null?(0,e.jsx)(t.p8,{width:350,height:200,children:(0,e.jsx)(t.p8.Content,{children:(0,e.jsxs)(n.wn,{children:[(0,e.jsx)(n.az,{bold:!0,children:"\u041D\u0435\u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0438\u0442\u044C \u043F\u043B\u0430\u0442\u0435\u0436\u043D\u044B\u0439 \u0430\u043A\u043A\u0430\u0443\u043D\u0442!"}),(0,e.jsx)(n.az,{children:"\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430 \u043D\u0430\u0434\u0435\u043D\u044C\u0442\u0435 \u0438\u043B\u0438 \u0434\u0435\u0440\u0436\u0438\u0442\u0435 \u0432 \u0440\u0443\u043A\u0430\u0445 \u0432\u0430\u0448\u0443 \u043A\u0430\u0440\u0442\u0443 \u0438 \u043F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0437\u0430\u043D\u043E\u0432\u043E."})]})})}):(0,e.jsx)(t.p8,{width:350,height:200,children:(0,e.jsx)(t.p8.Content,{children:(0,e.jsxs)(n.wn,{children:[(0,e.jsxs)(n.az,{lineHeight:2,children:["\u0418\u0433\u0440\u043E\u043A\u043E\u0432 \u043F\u043E\u043F\u044B\u0442\u0430\u0432\u0430\u0448\u0438\u0445 \u0443\u0434\u0430\u0447\u0443 \u0441\u0435\u0433\u043E\u0434\u043D\u044F: ",u.plays]}),(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"\u041A\u0440\u0435\u0434\u0438\u0442\u043E\u0432 \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u043E",children:(0,e.jsx)(n.zv,{value:u.money})}),(0,e.jsx)(n.Ki.Item,{label:"50 \u043A\u0440\u0435\u0434\u0438\u0442\u043E\u0432 \u0434\u043B\u044F \u0438\u0433\u0440\u044B",children:(0,e.jsx)(n.$n,{icon:"coins",disabled:u.working,onClick:function(){return y("spin")},children:u.working?"\u041F\u043E\u0434\u043E\u0436\u0434\u0438\u0442\u0435...":"\u041A\u0440\u0443\u0442\u0438\u0442\u044C"})})]}),(0,e.jsx)(n.az,{bold:!0,lineHeight:2,color:u.resultlvl,children:u.result})]})})})}},829:(q,S,r)=>{"use strict";r.r(S),r.d(S,{BeakerContents:()=>a});var e=r(1131),s=r(9845),n=r(5180),t=function(b){return b+" \u0435\u0434\u0438\u043D\u0438\u0446"+(0,s.bl)(b,"\u0430","\u044B","")},a=function(b){var O=b.beakerLoaded,y=b.beakerContents,u=y===void 0?[]:y,f=b.buttons;return(0,e.jsxs)(n.BJ,{vertical:!0,children:[!O&&(0,e.jsx)(n.BJ.Item,{color:"label",children:"\u0401\u043C\u043A\u043E\u0441\u0442\u044C \u043E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442."})||u.length===0&&(0,e.jsx)(n.BJ.Item,{color:"label",children:"\u0401\u043C\u043A\u043E\u0441\u0442\u044C \u043F\u0443\u0441\u0442\u0430."}),u.map(function(m,d){return(0,e.jsxs)(n.BJ,{children:[(0,e.jsxs)(n.BJ.Item,{color:"label",grow:!0,children:[t(m.volume)," ",m.name]}),!!f&&(0,e.jsx)(n.BJ.Item,{children:f(m,d)})]},m.name)})]})}},876:(q,S,r)=>{"use strict";r.r(S),r.d(S,{UploadPanel:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(b){var O=(0,s.Oc)(),y=O.act,u=O.data,f=u.selected_target,m=u.new_law,d=u.id,v=u.transmitting,_=u.hacked;return(0,e.jsx)(t.p8,{width:900,height:200,children:(0,e.jsx)(t.p8.Content,{children:(0,e.jsx)(n.wn,{title:"Silicon Law Upload",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Selected Target",children:(0,e.jsx)(n.$n,{disabled:v,selected:!!f,onClick:function(){return y("choose_silicon")},children:f||"No target selected"})}),(0,e.jsx)(n.Ki.Item,{label:"Selected Law",children:(0,e.jsx)(n.$n,{disabled:v,selected:!!m,onClick:function(){return y("insert_module")},children:m||"No module installed"})}),(0,e.jsx)(n.Ki.Item,{label:"Authorization",children:(0,e.jsx)(n.$n,{selected:!!d,onClick:function(){return y("authorization")},children:d||(_?"$@!ERR0R!@#":"No ID card inserted")})}),(0,e.jsx)(n.Ki.Item,{label:"Upload Laws",children:(0,e.jsx)(n.$n,{disabled:!f||!m||(_?!1:!d),selected:!!v,onClick:function(){return y("change_laws")},children:v?"STOP UPLOAD":"START UPLOAD"})})]})})})})}},892:(q,S,r)=>{"use strict";r.r(S),r.d(S,{RCD:()=>O});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=r(538),b=r(3211),O=function(_){return(0,e.jsxs)(t.p8,{width:480,height:670,children:[(0,e.jsx)(a.ComplexModal,{}),(0,e.jsx)(t.p8.Content,{children:(0,e.jsxs)(n.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(y,{}),(0,e.jsx)(u,{}),(0,e.jsx)(m,{}),(0,e.jsx)(d,{})]})})]})},y=function(_){var l=(0,s.Oc)().data,c=l.matter,h=l.max_matter,g=h*.7,p=h*.25;return(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.wn,{title:"Matter Storage",children:(0,e.jsx)(n.z2,{ranges:{good:[g,1/0],average:[p,g],bad:[-1/0,p]},value:c,maxValue:h,children:(0,e.jsx)(n.BJ.Item,{textAlign:"center",children:c+" / "+h+" units"})})})})},u=function(){return(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.wn,{title:"Construction Type",children:(0,e.jsxs)(n.BJ,{children:[(0,e.jsx)(f,{mode_type:"Floors and Walls"}),(0,e.jsx)(f,{mode_type:"Airlocks"}),(0,e.jsx)(f,{mode_type:"Windows"}),(0,e.jsx)(f,{mode_type:"Deconstruction"}),(0,e.jsx)(f,{mode_type:"Firelocks"})]})})})},f=function(_){var l=(0,s.Oc)(),c=l.act,h=l.data,g=_.mode_type,p=h.mode;return(0,e.jsx)(n.BJ.Item,{grow:!0,textAlign:"center",children:(0,e.jsx)(n.$n,{fluid:!0,color:"transparent",selected:p===g?1:0,onClick:function(){return c("mode",{mode:g})},children:g})})},m=function(_){var l=(0,s.Oc)(),c=l.act,h=l.data,g=h.door_name,p=h.electrochromic,j=h.airlock_glass;return(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.wn,{title:"Airlock Settings",children:(0,e.jsxs)(n.BJ,{textAlign:"center",children:[(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(n.$n,{fluid:!0,color:"transparent",icon:"pen-alt",onClick:function(){return(0,a.modalOpen)("renameAirlock")},children:(0,e.jsxs)(e.Fragment,{children:["Rename: ",(0,e.jsx)("b",{children:g})]})})}),(0,e.jsx)(n.BJ.Item,{children:j&&(0,e.jsx)(n.$n,{fluid:!0,icon:p?"toggle-on":"toggle-off",selected:p,onClick:function(){return c("electrochromic")},children:"Electrochromic"})})]})})})},d=function(_){var l=(0,s.Oc)(),c=l.act,h=l.data,g=h.tab,p=h.locked,j=h.one_access,x=h.selected_accesses,C=h.regions;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.BJ.Item,{textAlign:"center",children:(0,e.jsxs)(n.tU,{fluid:!0,children:[(0,e.jsx)(n.tU.Tab,{icon:"cog",selected:g===1,onClick:function(){return c("set_tab",{tab:1})},children:"Airlock Types"}),(0,e.jsx)(n.tU.Tab,{selected:g===2,icon:"list",onClick:function(){return c("set_tab",{tab:2})},children:"Airlock Access"})]})}),(0,e.jsx)(n.BJ.Item,{grow:!0,children:g===1?(0,e.jsx)(n.wn,{fill:!0,scrollable:!0,title:"Types",children:(0,e.jsxs)(n.BJ,{children:[(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(v,{check_number:0})}),(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(v,{check_number:1})})]})}):g===2&&p?(0,e.jsx)(n.wn,{fill:!0,title:"Access",buttons:(0,e.jsx)(n.$n,{icon:"lock-open",onClick:function(){return c("set_lock",{new_lock:"unlock"})},children:"Unlock"}),children:(0,e.jsx)(n.BJ,{fill:!0,children:(0,e.jsxs)(n.BJ.Item,{grow:!0,textAlign:"center",align:"center",color:"label",children:[(0,e.jsx)(n.In,{name:"lock",size:5,mb:3}),(0,e.jsx)("br",{}),"Airlock access selection is currently locked."]})})}):(0,e.jsx)(b.AccessList,{sectionButtons:[(0,e.jsx)(n.$n,{icon:"lock",onClick:function(){return c("set_lock",{new_lock:"lock"})},children:"Lock"},1)],usedByRcd:!0,rcdButtons:[(0,e.jsx)(n.$n.Checkbox,{checked:j,onClick:function(){return c("set_one_access",{access:"one"})},children:"One"},1),(0,e.jsx)(n.$n.Checkbox,{checked:!j,width:4,onClick:function(){return c("set_one_access",{access:"all"})},children:"All"},2)],accesses:C,selectedList:x,accessMod:function(I){return c("set",{access:I})},grantAll:function(){return c("grant_all")},denyAll:function(){return c("clear_all")},grantDep:function(I){return c("grant_region",{region:I})},denyDep:function(I){return c("deny_region",{region:I})}})})]})},v=function(_){for(var l=(0,s.Oc)(),c=l.act,h=l.data,g=h.door_types_ui_list,p=h.door_type,j=_.check_number,x=[],C=0;C{"use strict";r.r(S),r.d(S,{BrigTimer:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(b){var O=(0,s.Oc)(),y=O.act,u=O.data;u.nameText=u.occupant,u.timing&&(u.prisoner_hasrec?u.nameText=(0,e.jsx)(n.az,{color:"green",children:u.occupant}):u.nameText=(0,e.jsx)(n.az,{color:"red",children:u.occupant}));var f="pencil-alt";u.prisoner_name&&(u.prisoner_hasrec||(f="exclamation-triangle"));var m=[],d=0;for(d=0;d60||!u.isAllowed,onClick:function(){return y("start")},children:"Start Sentence"})})]})})]})})}},933:(q,S,r)=>{"use strict";r.r(S),r.d(S,{MiningVendor:()=>f});var e=r(1131),s=r(9845),n=r(360),t=r(7003),a=r(5180),b=r(3521);function O(){return O=Object.assign||function(l){for(var c=1;c=0)&&(h[p]=l[p]);return h}var u={Alphabetical:function(l,c){return l-c},Availability:function(l,c){return-(l.affordable-c.affordable)},Price:function(l,c){return l.price-c.price}},f=function(l){var c=(0,t.useState)(!1),h=c[0],g=c[1],p=(0,t.useState)(""),j=p[0],x=p[1],C=(0,t.useState)("Alphabetical"),I=C[0],P=C[1],M=(0,t.useState)(!1),B=M[0],w=M[1];return(0,e.jsx)(b.p8,{width:400,height:525,children:(0,e.jsx)(b.p8.Content,{children:(0,e.jsxs)(a.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(m,{}),(0,e.jsx)(v,{gridLayout:h,setGridLayout:g,sortOrder:B,sortType:I,setSortOrder:w,setSearchText:x,setSortType:P}),(0,e.jsx)(d,{gridLayout:h,sortOrder:B,searchText:j,sortType:I})]})})})},m=function(l){var c=(0,n.Oc)(),h=c.act,g=c.data,p=g.has_id,j=g.id;return(0,e.jsx)(a.IC,{success:p,children:p?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(a.az,{inline:!0,verticalAlign:"middle",style:{float:"left"},children:["Logged in as ",j.name,".",(0,e.jsx)("br",{}),"You have ",j.points.toLocaleString("en-US")," points."]}),(0,e.jsx)(a.$n,{icon:"eject",style:{float:"right"},onClick:function(){return h("logoff")},children:"Eject ID"}),(0,e.jsx)(a.az,{style:{clear:"both"}})]}):"Please insert an ID in order to make purchases."})},d=function(l){var c=(0,n.Oc)().data,h=c.has_id,g=c.id,p=c.items,j=l.gridLayout,x=l.searchText,C=l.sortOrder,I=l.sortType,P=(0,s.XZ)(x,function(w){return w[0]}),M=!1,B=Object.entries(p).map(function(w,T){var K=Object.entries(w[1]).filter(P).map(function(R){return R[1].affordable=h&&g.points>=R[1].price,R[1]}).sort(u[I]);if(K.length!==0)return C&&(K=K.reverse()),M=!0,(0,e.jsx)(_,{title:w[0],items:K,gridLayout:j},w[0])});return(0,e.jsx)(a.BJ.Item,{grow:!0,mt:.5,children:(0,e.jsx)(a.wn,{fill:!0,scrollable:!0,children:M?B:(0,e.jsx)(a.az,{color:"label",children:"No items matching your criteria was found!"})})})},v=function(l){var c=l.gridLayout,h=l.setGridLayout,g=l.setSearchText,p=l.setSortOrder,j=l.setSortType,x=l.sortOrder,C=l.sortType;return(0,e.jsx)(a.az,{children:(0,e.jsxs)(a.BJ,{fill:!0,children:[(0,e.jsx)(a.BJ.Item,{grow:!0,children:(0,e.jsx)(a.pd,{mt:.2,placeholder:"Search by item name..",width:"100%",expensive:!0,onChange:g})}),(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(a.$n,{icon:c?"list":"table-cells-large",height:1.75,tooltip:c?"Toggle List Layout":"Toggle Grid Layout",tooltipPosition:"bottom-start",onClick:function(){return h(!c)}})}),(0,e.jsx)(a.BJ.Item,{basis:"30%",children:(0,e.jsx)(a.ms,{selected:C,options:Object.keys(u),width:"100%",onSelected:function(I){return j(I)}})}),(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(a.$n,{icon:x?"arrow-down":"arrow-up",height:1.75,tooltip:x?"Descending order":"Ascending order",tooltipPosition:"bottom-start",onClick:function(){return p(!x)}})})]})})},_=function(l){var c=(0,n.Oc)(),h=c.act,g=c.data,p=l.title,j=l.items,x=l.gridLayout,C=y(l,["title","items","gridLayout"]);return(0,e.jsx)(a.Nt,O({open:!0,title:p},C,{children:j.map(function(I){return x?(0,e.jsx)(a.c_,{mb:.5,imageSize:57.5,dmIcon:I.icon,dmIconState:I.icon_state,disabled:!g.has_id||g.id.points{"use strict";r.r(S),r.d(S,{pai_camera_bug:()=>t});var e=r(1131),s=r(360),n=r(5180),t=function(a){var b=(0,s.Oc)().act;return(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Special Syndicate options",children:(0,e.jsx)(n.$n,{onClick:function(){return b("ui_interact")},children:"Select Monitor"})})})}},938:(q,S,r)=>{"use strict";r.r(S),r.d(S,{QuestConsole:()=>f});var e=r(1131),s=r(360),n=r(7003),t=r(5180),a=r(185),b=r(3521),O=r(9845),y=function(c,h){return h&&(c/=10),c>1100?"purple":c>500?"orange":c>250?"yellow":"green"},u=function(c,h){for(var g=[],p=0;p{"use strict";r.d(S,{m:()=>f});var e=r(1131),s=r(3523),n=r(7003),t=r(1263);function a(){return a=Object.assign||function(m){for(var d=1;d{"use strict";r.r(S),r.d(S,{TextInputModal:()=>m,removeAllSkiplines:()=>f,sanitizeMultiline:()=>u});var e=r(1131),s=r(7003),n=r(5180),t=r(1808),a=r(360),b=r(3521),O=r(30),y=r(3384),u=function(d){return d.replace(/(\n|\r\n){3,}/,` -`)},f=function(d){return d.replace(/[\r\n]+/,"")},m=function(d){var v=(0,a.Oc)(),_=v.act,l=v.data,c=l.large_buttons,h=l.max_length,g=l.message,p=g===void 0?"":g,j=l.multiline,x=l.placeholder,C=x===void 0?"":x,I=l.timeout,P=l.title,M=(0,s.useState)(C||""),B=M[0],w=M[1],T=function(F){if(F!==B){var $=j?u(F):f(F);w($)}},K=j||B.length>=30,R=135+(p.length>30?Math.ceil(p.length/4):0)+(K?75:0)+(p.length&&c?5:0),U=function(F){F.key===t._.Enter&&!F.shiftKey&&_("submit",{entry:B}),(0,t.KL)(F.key)&&_("cancel")};return(0,e.jsxs)(O.p8,{title:P,width:325,height:R,children:[I&&(0,e.jsx)(y.Loader,{value:I}),(0,e.jsx)(O.p8.Content,{onKeyDown:U,children:(0,e.jsx)(n.wn,{fill:!0,children:(0,e.jsxs)(n.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.az,{color:"label",children:p})}),(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(n.fs,{autoFocus:!0,autoSelect:!0,fluid:!0,height:j||B.length>=30?"100%":"1.8rem",maxLength:h,onEscape:function(){return _("cancel")},onChange:T,onEnter:function(){return _("submit",{entry:B})},placeholder:"Type something...",value:B})}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(b.InputButtons,{input:B,message:B.length+"/"+(h||"\u221E")})})]})})})]})}},978:(q,S,r)=>{"use strict";r.r(S),r.d(S,{AgentCard:()=>O,AgentCardAppearances:()=>y,AgentCardInfo:()=>b,AgentCardSLSlots:()=>u});var e=r(1131),s=r(360),n=r(7003),t=r(5180),a=r(3521),O=function(f){var m=(0,n.useState)(0),d=m[0],v=m[1],_=function(l){switch(l){case 0:return(0,e.jsx)(b,{});case 1:return(0,e.jsx)(y,{});case 2:return(0,e.jsx)(u,{});default:return(0,e.jsx)(b,{})}};return(0,e.jsx)(a.p8,{width:500,height:475,theme:"syndicate",children:(0,e.jsx)(a.p8.Content,{children:(0,e.jsxs)(t.az,{fillPositionedParent:!0,overflow:"hidden",children:[(0,e.jsxs)(t.tU,{children:[(0,e.jsxs)(t.tU.Tab,{selected:d===0,onClick:function(){return v(0)},children:[(0,e.jsx)(t.In,{name:"table"})," Card Info"]},"Card Info"),(0,e.jsxs)(t.tU.Tab,{selected:d===1,onClick:function(){return v(1)},children:[(0,e.jsx)(t.In,{name:"id-card"})," Appearance"]},"Appearance"),(0,e.jsxs)(t.tU.Tab,{selected:d===2,onClick:function(){return v(2)},children:[(0,e.jsx)(t.In,{name:"arrow-down"})," Save/Load Card Info"]},"Save/Load Card Info")]}),_(d)]})})})},b=function(f){var m=(0,s.Oc)(),d=m.act,v=m.data,_=v.registered_name,l=v.sex,c=v.age,h=v.assignment,g=v.associated_account_number,p=v.blood_type,j=v.dna_hash,x=v.fingerprint_hash,C=v.photo,I=v.ai_tracking;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"Card Info",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Name",children:(0,e.jsx)(t.$n,{onClick:function(){return d("change_name")},children:_||"[UNSET]"})}),(0,e.jsx)(t.Ki.Item,{label:"Sex",children:(0,e.jsx)(t.$n,{iconPosition:"left",onClick:function(){return d("change_sex")},children:l||"[UNSET]"})}),(0,e.jsx)(t.Ki.Item,{label:"Age",children:(0,e.jsx)(t.$n,{onClick:function(){return d("change_age")},children:c||"[UNSET]"})}),(0,e.jsx)(t.Ki.Item,{label:"Rank",children:(0,e.jsx)(t.$n,{onClick:function(){return d("change_occupation")},children:h||"[UNSET]"})}),(0,e.jsx)(t.Ki.Item,{label:"Fingerprints",children:(0,e.jsx)(t.$n,{onClick:function(){return d("change_fingerprints")},children:x||"[UNSET]"})}),(0,e.jsx)(t.Ki.Item,{label:"Blood Type",children:(0,e.jsx)(t.$n,{onClick:function(){return d("change_blood_type")},children:p||"[UNSET]"})}),(0,e.jsx)(t.Ki.Item,{label:"DNA Hash",children:(0,e.jsx)(t.$n,{onClick:function(){return d("change_dna_hash")},children:j||"[UNSET]"})}),(0,e.jsx)(t.Ki.Item,{label:"Money Account",children:(0,e.jsx)(t.$n,{onClick:function(){return d("change_money_account")},children:g||"[UNSET]"})}),(0,e.jsx)(t.Ki.Item,{label:"Photo",children:(0,e.jsx)(t.$n,{onClick:function(){return d("change_photo")},children:C?"Update":"[UNSET]"})})]})}),(0,e.jsx)(t.wn,{title:"Card Settings",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Card Info",children:(0,e.jsx)(t.$n,{onClick:function(){return d("delete_info")},children:"Delete Card Info"})}),(0,e.jsx)(t.Ki.Item,{label:"Access",children:(0,e.jsx)(t.$n,{onClick:function(){return d("clear_access")},children:"Reset Access"})}),(0,e.jsx)(t.Ki.Item,{label:"AI Tracking",children:(0,e.jsx)(t.$n,{onClick:function(){return d("change_ai_tracking")},children:I?"Untrackable":"Trackable"})})]})})]})},y=function(f){var m=(0,s.Oc)(),d=m.act,v=m.data,_=v.appearances,l=v.id_icon,c=v.seleced_appearance,h=(0,n.useState)(c),g=h[0],p=h[1];return(0,e.jsx)(t.wn,{fill:!0,height:"92%",title:"Card Appearance",overflowY:"scroll",children:_.map(function(j){return(0,e.jsx)(t.c_,{dmIcon:l,dmIconState:j,imageSize:64,selected:j===g,tooltip:j,m:"1px",style:{opacity:j===g&&"1"||"0.5"},onClick:function(){p(j),d("change_appearance_new",{new_appearance:j})}},j)})})},u=function(f){var m=(0,s.Oc)(),d=m.act,v=m.data,_=v.saved_info;return(0,e.jsx)(t.wn,{title:"Save/Load Manager",style:{lineHeight:"25px"},children:(0,e.jsx)(t.Ki,{children:_.map(function(l){return(0,e.jsx)(t.Ki.Item,{label:l.registered_name?l.registered_name+", "+l.assignment:"Slot "+l.id,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{onClick:function(){return d("clear_slot",{slot:l.id})},children:"Clear"}),(0,e.jsx)(t.$n,{onClick:function(){return d("save_slot",{slot:l.id})},children:"Save"}),(0,e.jsx)(t.$n,{disabled:!l.registered_name,onClick:function(){return d("load_slot",{slot:l.id})},children:"Load"})]})},l.id)})})})}},998:(q,S,r)=>{"use strict";r.r(S),r.d(S,{DnaVault:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(y){var u=(0,s.Oc)().data,f=u.completed;return(0,e.jsx)(t.p8,{width:350,height:280,children:(0,e.jsx)(t.p8.Content,{children:(0,e.jsxs)(n.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(O,{}),!!f&&(0,e.jsx)(b,{})]})})})},O=function(y){var u=(0,s.Oc)().data,f=u.dna,m=u.dna_max,d=u.plants,v=u.plants_max,_=u.animals,l=u.animals_max,c=.66,h=.33;return(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(n.wn,{fill:!0,title:"DNA Vault Database",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Human DNA",children:(0,e.jsx)(n.z2,{value:f/m,ranges:{good:[c,1/0],average:[h,c],bad:[-1/0,h]},children:f+" / "+m+" Samples"})}),(0,e.jsx)(n.Ki.Item,{label:"Plant DNA",children:(0,e.jsx)(n.z2,{value:d/v,ranges:{good:[c,1/0],average:[h,c],bad:[-1/0,h]},children:d+" / "+v+" Samples"})}),(0,e.jsx)(n.Ki.Item,{label:"Animal DNA",children:(0,e.jsx)(n.z2,{value:_/l,ranges:{good:[c,1/0],average:[h,c],bad:[-1/0,h]},children:_+" / "+l+" Samples"})})]})})})},b=function(y){var u=(0,s.Oc)(),f=u.act,m=u.data,d=m.choiceA,v=m.choiceB,_=m.used;return(0,e.jsx)(n.BJ.Item,{children:(0,e.jsxs)(n.wn,{fill:!0,title:"Personal Gene Therapy",children:[(0,e.jsx)(n.az,{bold:!0,textAlign:"center",mb:1,children:"Applicable Gene Therapy Treatments"}),!_&&(0,e.jsxs)(n.BJ,{vertical:!0,children:[(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.$n,{fluid:!0,bold:!0,textAlign:"center",onClick:function(){return f("gene",{choice:d})},children:d})}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.$n,{fluid:!0,bold:!0,textAlign:"center",onClick:function(){return f("gene",{choice:v})},children:v})})]})||(0,e.jsx)(n.az,{bold:!0,textAlign:"center",mb:1,children:"Users DNA deemed unstable. Unable to provide more upgrades."})]})})}},1003:(q,S,r)=>{"use strict";r.r(S),r.d(S,{CrewMonitor:()=>v});var e=r(1131),s=r(1859),n=r(9845),t=r(360),a=r(7003),O=r(5180),b=r(9357),y=r(3521);function u(){return u=Object.assign||function(x){for(var C=1;C=0)&&(I[M]=x[M]);return I}var m=function(x,C){return x.dead?"\u041C\u0451\u0440\u0442\u0432":parseInt(x.health,10)<=C?"\u041A\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435":parseInt(x.stat,10)===1?"\u0411\u0435\u0437 \u0441\u043E\u0437\u043D\u0430\u043D\u0438\u044F":"\u0416\u0438\u0432"},d=function(x,C){return x.dead?"red":parseInt(x.health,10)<=C?"orange":parseInt(x.stat,10)===1?"blue":"green"},v=function(x){var C=(0,t.Oc)(),I=C.data,P=C.act,M=(0,a.useState)(I.tabIndex),B=M[0],w=M[1],T=function(R){w(R),P("set_tab_index",{tab_index:R})},K=function(R){switch(R){case 0:return(0,e.jsx)(c,{});case 1:return(0,e.jsx)(h,{});case 2:return(0,e.jsx)(g,{});case 3:return(0,e.jsx)(l,{});case 4:return(0,e.jsx)(j,{});default:return"\u0427\u0422\u041E-\u0422\u041E \u0422\u041E\u0427\u041D\u041E \u041D\u0415 \u0422\u0410\u041A!"}};return(0,e.jsx)(y.p8,{width:800,height:600,children:(0,e.jsx)(y.p8.Content,{scrollable:!0,children:(0,e.jsxs)(O.az,{fillPositionedParent:!0,children:[(0,e.jsxs)(O.tU,{children:[I.isBS?(0,e.jsxs)(O.tU.Tab,{selected:B===0,onClick:function(){return T(0)},children:[(0,e.jsx)(O.In,{name:"table"})," \u0414\u0430\u043D\u043D\u044B\u0435 \u043E \u041A\u043E\u043C\u0430\u043D\u0434\u043E\u0432\u0430\u043D\u0438\u0438"]},"ComDataView"):null,I.isBP?(0,e.jsxs)(O.tU.Tab,{selected:B===1,onClick:function(){return T(1)},children:[(0,e.jsx)(O.In,{name:"table"})," \u0414\u0430\u043D\u043D\u044B\u0435 \u043E \u0421\u043B\u0443\u0436\u0431\u0435 \u0411\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u0438"]},"SecDataView"):null,I.isMM?(0,e.jsxs)(O.tU.Tab,{selected:B===2,onClick:function(){return T(2)},children:[(0,e.jsx)(O.In,{name:"table"})," \u0414\u0430\u043D\u043D\u044B\u0435 \u043E \u0448\u0430\u0445\u0442\u0451\u0440\u0430\u0445"]},"MiningDataView"):null,(0,e.jsxs)(O.tU.Tab,{selected:B===3,onClick:function(){return T(3)},children:[(0,e.jsx)(O.In,{name:"table"})," \u0414\u0430\u043D\u043D\u044B\u0435 \u043E\u0431 \u042D\u043A\u0438\u043F\u0430\u0436\u0435"]},"DataView"),(0,e.jsxs)(O.tU.Tab,{selected:B===4,onClick:function(){return T(4)},children:[(0,e.jsx)(O.In,{name:"map-marked-alt"})," \u041F\u0440\u043E\u0441\u043C\u043E\u0442\u0440 \u041A\u0430\u0440\u0442\u044B"]},"MapView")]}),K(B)]})})})},_=function(x){var C=x.crewData,I=(0,t.Oc)(),P=I.act,M=I.data,B=(0,s.Ul)(C,function(U){return U.name}),w=(0,a.useState)(""),T=w[0],K=w[1],R=(0,n.XZ)(T,function(U){return U.name+"|"+U.assignment+"|"+U.area});return(0,e.jsxs)(O.az,{children:[(0,e.jsx)(O.pd,{placeholder:"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0418\u043C\u044F, \u0414\u043E\u043B\u0436\u043D\u043E\u0441\u0442\u044C \u0438\u043B\u0438 \u041B\u043E\u043A\u0430\u0446\u0438\u044E...",width:"100%",expensive:!0,onChange:K}),(0,e.jsxs)(O.XI,{m:"0.5rem",style:{borderCollapse:"separate",borderSpacing:"1px"},children:[(0,e.jsxs)(O.XI.Row,{header:!0,children:[(0,e.jsx)(O.XI.Cell,{children:(0,e.jsx)(O.$n,{tooltip:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u043E\u0442\u043C\u0435\u0442\u043A\u0438 \u043D\u0430 \u043A\u0430\u0440\u0442\u0435",icon:"square-xmark",onClick:function(){return P("clear_highlighted_names")}})}),(0,e.jsx)(O.XI.Cell,{children:"\u0418\u043C\u044F"}),(0,e.jsx)(O.XI.Cell,{children:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435"}),(0,e.jsx)(O.XI.Cell,{children:"\u041B\u043E\u043A\u0430\u0446\u0438\u044F"})]}),B.filter(R).map(function(U){var F=M.highlightedNames.includes(U.name);return(0,e.jsxs)(O.XI.Row,{bold:!!U.is_command,children:[(0,e.jsx)(O.XI.Cell,{children:(0,e.jsx)(O.$n.Checkbox,{checked:F,tooltip:"\u041E\u0442\u043C\u0435\u0442\u0438\u0442\u044C \u043D\u0430 \u043A\u0430\u0440\u0442\u0435",onClick:function(){return P(F?"remove_highlighted_name":"add_highlighted_name",{name:U.name})}})}),(0,e.jsxs)(O.XI.Cell,{children:[U.name," (",U.assignment,")"]}),(0,e.jsxs)(O.XI.Cell,{children:[(0,e.jsx)(O.az,{inline:!0,color:d(U,M.critThreshold),children:m(U,M.critThreshold)}),U.sensor_type>=2?(0,e.jsxs)(O.az,{inline:!0,ml:1,children:["(",(0,e.jsx)(O.az,{inline:!0,color:b.lm.damageType.oxy,children:U.oxy}),"|",(0,e.jsx)(O.az,{inline:!0,color:b.lm.damageType.toxin,children:U.tox}),"|",(0,e.jsx)(O.az,{inline:!0,color:b.lm.damageType.burn,children:U.fire}),"|",(0,e.jsx)(O.az,{inline:!0,color:b.lm.damageType.brute,children:U.brute}),")"]}):null]}),(0,e.jsx)(O.XI.Cell,{children:U.sensor_type===3?M.isAI||M.isObserver?(0,e.jsx)(O.$n,{fluid:!0,mr:1,icon:"location-arrow",onClick:function(){return P("track",{track:U.ref})},children:U.area+" ("+U.x+", "+U.y+")"}):U.area+" ("+U.x+", "+U.y+")":(0,e.jsx)(O.az,{inline:!0,color:"grey",children:"\u041D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u043E"})})]},U.name)})]})]})},l=function(x){var C=(0,t.Oc)().data,I=C.crewmembers||[];return(0,e.jsx)(_,{crewData:I})},c=function(x){var C=(0,t.Oc)().data,I=C.crewmembers.filter(function(P){return P.is_command})||[];return(0,e.jsx)(_,{crewData:I})},h=function(x){var C=(0,t.Oc)().data,I=C.crewmembers.filter(function(P){return P.is_security})||[];return(0,e.jsx)(_,{crewData:I})},g=function(x){var C=(0,t.Oc)().data,I=C.crewmembers.filter(function(P){return P.is_shaft_miner})||[];return(0,e.jsx)(_,{crewData:I})},p=function(x){var C=x.color,I=f(x,["color"]);return(0,e.jsx)(O.tx.Marker,u({},I,{children:(0,e.jsx)("span",{className:"highlighted-marker color-border-"+C})}))},j=function(x){var C=(0,t.Oc)(),I=C.act,P=C.data,M=P.stationLevelNum,B=P.stationLevelName,w=(0,a.useState)(P.zoom),T=w[0],K=w[1],R=(0,a.useState)(M[0]),U=R[0],F=R[1],$=function(N){return N.is_command&&P.isBS||N.is_security&&P.isBP?"square":"circle"},W=function(N,Z){return N.is_command&&P.isBS||N.is_security&&P.isBP?N.dead?"red":parseInt(N.health,10)<=Z?"orange":parseInt(N.stat,10)===1?"blue":"violet":d(N,Z)};return(0,e.jsx)(O.az,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.jsx)(O.tx,{zoom:P.zoom,offsetX:P.offsetX,offsetY:P.offsetY,zNames:B,zLevels:M,zCurrent:U,setZCurrent:F,onZoom:function(N,Z){K(Z),I("set_zoom",{zoom:Z})},onOffsetChangeEnded:function(N,Z){return I("set_offset",{offset_x:Z.x,offset_y:Z.y})},children:P.crewmembers.filter(function(N){return N.sensor_type===3}).map(function(N){var Z=W(N,P.critThreshold),ie=P.highlightedNames.includes(N.name),Q=function(){return P.isObserver?I("track",{track:N.ref}):null},V=function(){return I(ie?"remove_highlighted_name":"add_highlighted_name",{name:N.name})},G=N.name+" ("+N.assignment+")";return ie?(0,e.jsx)(p,{x:N.x,y:N.y,z:N.z,zoom:T,z_current:U,tooltip:G,tooltipPosition:N.x>255/2?"bottom":"right",color:Z,onClick:Q,onDblClick:V},N.ref):(0,e.jsx)(O.tx.MarkerIcon,{x:N.x,y:N.y,z:N.z,z_current:U,zoom:T,icon:$(N),tooltip:G,tooltipPosition:N.x>255/2?"bottom":"right",color:Z,onClick:Q,onDblClick:V},N.ref)})})})}},1036:(q,S,r)=>{"use strict";r.r(S),r.d(S,{SyndieCargoConsole:()=>u});var e=r(1131),s=r(5070),n=r(1859),t=r(360),a=r(7003),O=r(5180),b=r(3521),y=r(9845),u=function(_){var l=(0,a.useState)(null),c=l[0],h=l[1],g=(0,a.useState)(null),p=g[0],j=g[1];return(0,e.jsx)(b.p8,{width:900,height:800,theme:"syndicate",children:(0,e.jsxs)(b.p8.Content,{children:[(0,e.jsx)(f,{contentsModal:c,setContentsModal:h,contentsModalTitle:p,setContentsModalTitle:j}),(0,e.jsx)(m,{}),(0,e.jsx)(d,{setContentsModal:h,setContentsModalTitle:j}),(0,e.jsx)(v,{})]})})},f=function(_){var l=_.contentsModal,c=_.setContentsModal,h=_.contentsModalTitle,g=_.setContentsModalTitle;if(l!==null&&h!==null)return(0,e.jsxs)(O.aF,{maxWidth:"75%",width:window.innerWidth+"px",maxHeight:window.innerHeight*.75+"px",mx:"auto",children:[(0,e.jsx)(O.az,{width:"100%",bold:!0,children:(0,e.jsxs)("h1",{children:[h," contents:"]})}),(0,e.jsx)(O.az,{children:l.map(function(p){return(0,e.jsxs)(O.az,{children:["- ",p]},p)})}),(0,e.jsx)(O.az,{m:2,children:(0,e.jsx)(O.$n,{onClick:function(){c(null),g(null)},children:"Close"})})]})},m=function(_){var l=(0,t.Oc)(),c=l.act,h=l.data,g=h.is_public,p=g===void 0?!1:g,j=h.cash,x=h.wait_time,C=h.is_cooldown,I=h.telepads_status,P=h.adminAddCash,M=I,B="",w=0,T="";return I==="Pads not linked!"?(w=0,B="Attempts to link telepads to the console.",T="Link pads"):C?C&&(T="Cooldown...",B="Pads are cooling off...",w=1,x!==1?M=""+I+" (ETA: "+x+" seconds)":M=""+I+" (ETA: "+x+" second)"):(w=0,B="Teleports your crates to the market. A reminder, some of the crates are directly stolen from NT trading routes. That means they can be locked. We are NOT sorry for the inconvenience",T="Teleport"),(0,e.jsx)(O.wn,{title:"Status",children:(0,e.jsxs)(O.Ki,{children:[!p&&(0,e.jsxs)(O.Ki.Item,{label:"Money Available",children:[j,(0,e.jsx)(O.$n,{tooltip:"Withdraw money from the console",onClick:function(){return c("withdraw",{cash:j})},children:"Withdraw"}),(0,e.jsx)(O.$n,{tooltip:"Bless the players with da money!",onClick:function(){return c("add_money",{cash:j})},children:P})]}),(0,e.jsx)(O.Ki.Item,{label:"Telepads Status",children:M}),!p&&(0,e.jsxs)(O.Ki.Item,{label:"Controls",children:[(0,e.jsx)(O.$n,{tooltip:B,disabled:w,onClick:function(){return c("teleport")},children:T}),(0,e.jsx)(O.$n,{onClick:function(){return c("showMessages")},children:"View Syndicate Black Market Log"})]})]})})},d=function(_){var l=(0,t.Oc)(),c=l.act,h=l.data,g=h.categories,p=h.supply_packs,j=(0,t.QY)("category","Emergency"),x=j[0],C=j[1],I=(0,t.QY)("search_text",""),P=I[0],M=I[1],B=_.setContentsModal,w=_.setContentsModalTitle,T=(0,y.XZ)(P,function(U){return U.name}),K=(0,s.L)([function(U){return(0,n.pb)(U,function(F){return F.cat===(g.filter(function($){return $.name===x})[0].category||P)})},function(U){return P?(0,n.pb)(U,T):U},function(U){return(0,n.Ul)(U,function(F){return F.name.toLowerCase()})}])(p),R="Crate Catalogue";return P?R="Results for '"+P+"':":x&&(R="Browsing "+x),(0,e.jsxs)(O.wn,{title:R,buttons:(0,e.jsx)(O.ms,{width:"190px",options:g.map(function(U){return U.name}),selected:x,onSelected:function(U){return C(U)}}),children:[(0,e.jsx)(O.pd,{fluid:!0,placeholder:"Search for...",expensive:!0,onChange:M,mb:1}),(0,e.jsx)(O.az,{maxHeight:25,overflowY:"auto",overflowX:"hidden",children:(0,e.jsx)(O.XI,{m:"0.5rem",children:K.map(function(U){return(0,e.jsxs)(O.XI.Row,{children:[(0,e.jsxs)(O.XI.Cell,{bold:!0,children:[U.name," (",U.cost," Credits)"]}),(0,e.jsxs)(O.XI.Cell,{textAlign:"right",pr:1,children:[(0,e.jsx)(O.$n,{icon:"shopping-cart",onClick:function(){return c("order",{crate:U.ref,multiple:0})},children:"Order 1"}),(0,e.jsx)(O.$n,{icon:"cart-plus",onClick:function(){return c("order",{crate:U.ref,multiple:1})},children:"Order Multiple"}),(0,e.jsx)(O.$n,{icon:"search",onClick:function(){B(U.contents),w(U.name)},children:"View Contents"})]})]},U.name)})})})]})},v=function(_){var l=(0,t.Oc)(),c=l.act,h=l.data,g=h.requests,p=h.canapprove,j=h.orders;return(0,e.jsx)(O.wn,{title:"Details",children:(0,e.jsxs)(O.az,{maxHeight:15,overflowY:"auto",overflowX:"hidden",children:[(0,e.jsx)(O.az,{bold:!0,children:"Requests"}),(0,e.jsx)(O.XI,{m:"0.5rem",children:g.map(function(x){return(0,e.jsxs)(O.XI.Row,{children:[(0,e.jsxs)(O.XI.Cell,{children:[(0,e.jsxs)(O.az,{children:["- #",x.ordernum,": ",x.supply_type," for ",(0,e.jsx)("b",{children:x.orderedby})]}),(0,e.jsxs)(O.az,{italic:!0,children:["Reason: ",x.comment]})]}),(0,e.jsxs)(O.XI.Cell,{textAlign:"right",pr:1,children:[(0,e.jsx)(O.$n,{color:"green",disabled:!p,onClick:function(){return c("approve",{ordernum:x.ordernum})},children:"Approve"}),(0,e.jsx)(O.$n,{color:"red",onClick:function(){return c("deny",{ordernum:x.ordernum})},children:"Deny"})]})]},x.ordernum)})}),(0,e.jsx)(O.az,{bold:!0,children:"Confirmed Orders"}),(0,e.jsx)(O.XI,{m:"0.5rem",children:j.map(function(x){return(0,e.jsx)(O.XI.Row,{children:(0,e.jsxs)(O.XI.Cell,{children:[(0,e.jsxs)(O.az,{children:["- #",x.ordernum,": ",x.supply_type," for ",(0,e.jsx)("b",{children:x.orderedby})]}),(0,e.jsxs)(O.az,{italic:!0,children:["Reason: ",x.comment]})]})},x.ordernum)})})]})})}},1087:(q,S,r)=>{"use strict";r.r(S),r.d(S,{NumberInputModal:()=>u});var e=r(1131),s=r(7003),n=r(5180),t=r(1808),a=r(360),O=r(3521),b=r(30),y=r(3384),u=function(f){var m=(0,a.Oc)(),d=m.act,v=m.data,_=v.init_value,l=v.large_buttons,c=v.max_value,h=c===void 0?1e4:c,g=v.message,p=g===void 0?"":g,j=v.min_value,x=j===void 0?0:j,C=v.round_value,I=v.timeout,P=v.title,M=(0,s.useState)(_),B=M[0],w=M[1],T=(0,s.useState)(!0),K=T[0],R=T[1],U=140+(p.length>30?Math.ceil(p.length/3):0)+(p.length&&l?5:0),F=function($){$.key===t._.Enter&&K&&d("submit",{entry:B}),(0,t.KL)($.key)&&d("cancel")};return(0,e.jsxs)(O.p8,{title:P,width:270,height:U,children:[I&&(0,e.jsx)(y.Loader,{value:I}),(0,e.jsx)(O.p8.Content,{onKeyDown:F,children:(0,e.jsx)(n.wn,{fill:!0,children:(0,e.jsxs)(n.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(n.az,{color:"label",children:p})}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsxs)(n.BJ,{fill:!0,children:[(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.$n,{disabled:B===x,icon:"angle-double-left",onClick:function(){return w(x??0)},tooltip:x?"Min ("+x+")":"Min"})}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.$n,{icon:"angle-down",disabled:B<=x,onClick:function(){return w(function($){return $-1})}})}),(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(n.SM,{autoFocus:!0,autoSelect:!0,fluid:!0,width:8.7,allowFloats:!C,minValue:x,maxValue:h,onChange:w,onValidationChange:R,value:B})}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.$n,{icon:"angle-up",disabled:B>=h,onClick:function(){return w(function($){return $+1})}})}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.$n,{disabled:B===h,icon:"angle-double-right",onClick:function(){return w(h??1e4)},tooltip:h?"Max ("+h+")":"Max"})}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.$n,{disabled:B===_,icon:"redo",onClick:function(){return w(_??0)},tooltip:_?"Reset ("+_+")":"Reset"})})]})}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(b.InputButtons,{input:B,disabled:!K})})]})})})]})}},1092:(q,S,r)=>{"use strict";r.r(S),r.d(S,{Teleporter:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(O){var b=(0,s.Oc)(),y=b.act,u=b.data,f=u.targetsTeleport?u.targetsTeleport:{},m=0,d=1,v=2,_=u.calibrated,l=u.calibrating,c=u.powerstation,h=u.regime,g=u.teleporterhub,p=u.target,j=u.locked,x=u.accuracy;return(0,e.jsx)(t.p8,{width:350,height:325,children:(0,e.jsx)(t.p8.Content,{children:(0,e.jsx)(n.BJ,{fill:!0,vertical:!0,children:(0,e.jsxs)(n.BJ.Item,{grow:!0,children:[(!c||!g)&&(0,e.jsxs)(n.wn,{fill:!0,title:"Error",children:[g,!c&&(0,e.jsx)(n.az,{color:"bad",children:" Powerstation not linked "}),c&&!g&&(0,e.jsx)(n.az,{color:"bad",children:" Teleporter hub not linked "})]}),c&&g&&(0,e.jsxs)(n.wn,{fill:!0,scrollable:!0,title:"Status",children:[(0,e.jsxs)(n.BJ,{mb:1,children:[(0,e.jsx)(n.BJ.Item,{width:8.5,color:"label",children:"Teleport target:"}),(0,e.jsxs)(n.BJ.Item,{children:[h===m&&(0,e.jsx)(n.ms,{width:18.2,selected:p,disabled:l,options:Object.keys(f),color:p!=="None"?"default":"bad",onSelected:function(C){return y("settarget",{x:f[C].x,y:f[C].y,z:f[C].z})}}),h===d&&(0,e.jsx)(n.ms,{width:18.2,selected:p,disabled:l,options:Object.keys(f),color:p!=="None"?"default":"bad",onSelected:function(C){return y("settarget",{x:f[C].x,y:f[C].y,z:f[C].z})}}),h===v&&(0,e.jsx)(n.az,{children:p})]})]}),(0,e.jsxs)(n.BJ,{children:[(0,e.jsx)(n.BJ.Item,{width:8.5,color:"label",children:"Regime:"}),(0,e.jsx)(n.BJ.Item,{grow:!0,textAlign:"center",children:(0,e.jsx)(n.$n,{fluid:!0,content:"Gate",tooltip:"Teleport to another teleport hub.",tooltipPosition:"top",color:h===d?"good":null,onClick:function(){return y("setregime",{regime:d})}})}),(0,e.jsx)(n.BJ.Item,{grow:!0,textAlign:"center",children:(0,e.jsx)(n.$n,{fluid:!0,content:"Teleporter",tooltip:"One-way teleport.",tooltipPosition:"top",color:h===m?"good":null,onClick:function(){return y("setregime",{regime:m})}})}),(0,e.jsx)(n.BJ.Item,{grow:!0,textAlign:"center",children:(0,e.jsx)(n.$n,{fluid:!0,content:"GPS",tooltip:"Teleport to a location stored in a GPS device.",tooltipPosition:"top-end",color:h===v?"good":null,disabled:!j,onClick:function(){return y("setregime",{regime:v})}})})]}),(0,e.jsxs)(n.BJ,{mt:1,children:[(0,e.jsx)(n.BJ.Item,{width:8.5,color:"label",children:"Calibration:"}),(0,e.jsxs)(n.BJ.Item,{children:[p!=="None"&&(0,e.jsxs)(n.BJ,{fill:!0,children:[(0,e.jsx)(n.BJ.Item,{width:15.8,textAlign:"center",mt:.5,children:l&&(0,e.jsx)(n.az,{color:"average",children:"In Progress"})||(_||x>=3)&&(0,e.jsx)(n.az,{color:"good",children:"Optimal"})||(0,e.jsx)(n.az,{color:"bad",children:"Sub-Optimal"})}),(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(n.$n,{icon:"sync-alt",tooltip:"Calibrates the hub. Accidents may occur \\ when the calibration is not optimal.",tooltipPosition:"bottom-end",disabled:!!(_||l),onClick:function(){return y("calibrate")}})})]}),p==="None"&&(0,e.jsx)(n.az,{lineHeight:"21px",children:"No target set"})]})]})]}),!!(j&&c&&g&&h===v)&&(0,e.jsx)(n.wn,{title:"GPS",children:(0,e.jsxs)(n.BJ,{children:[(0,e.jsx)(n.$n,{content:"Upload GPS data",tooltip:"Loads the GPS data from the device.",icon:"upload",onClick:function(){return y("load")}}),(0,e.jsx)(n.$n,{content:"Eject",tooltip:"Ejects the GPS device",icon:"eject",onClick:function(){return y("eject")}})]})})]})})})})}},1093:(q,S,r)=>{"use strict";r.r(S),r.d(S,{AIFixer:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(O){var b=(0,s.Oc)(),y=b.act,u=b.data;if(u.occupant===null)return(0,e.jsx)(t.p8,{width:550,height:500,children:(0,e.jsx)(t.p8.Content,{children:(0,e.jsx)(n.wn,{fill:!0,title:"Stored AI",children:(0,e.jsx)(n.BJ,{fill:!0,children:(0,e.jsxs)(n.BJ.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.jsxs)(n.In.Stack,{style:{transform:"translate(-40px, -55px)"},children:[(0,e.jsx)(n.In,{name:"robot",size:5,color:"silver"}),(0,e.jsx)(n.In,{name:"slash",size:5,color:"red"})]}),(0,e.jsx)("br",{}),(0,e.jsx)("h3",{children:"No Artificial Intelligence detected."})]})})})})});var f=!0;(u.stat===2||u.stat===null)&&(f=!1);var m=null;u.integrity>=75?m="green":u.integrity>=25?m="yellow":m="red";var d=!0;return u.integrity>=100&&u.stat!==2&&(d=!1),(0,e.jsx)(t.p8,{children:(0,e.jsx)(t.p8.Content,{scrollable:!0,children:(0,e.jsxs)(n.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.wn,{title:u.occupant,children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Integrity",children:(0,e.jsx)(n.z2,{color:m,value:u.integrity/100})}),(0,e.jsx)(n.Ki.Item,{label:"Status",color:f?"green":"red",children:f?"Functional":"Non-Functional"})]})})}),(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(n.wn,{fill:!0,scrollable:!0,title:"Laws",children:!!u.has_laws&&(0,e.jsx)(n.az,{children:u.laws.map(function(v,_){return(0,e.jsx)(n.az,{inline:!0,children:v},_)})})||(0,e.jsx)(n.az,{color:"red",children:(0,e.jsx)("h3",{children:"No laws detected."})})})}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsxs)(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:u.wireless?"times":"check",color:u.wireless?"red":"green",onClick:function(){return y("wireless")},children:u.wireless?"Disabled":"Enabled"})}),(0,e.jsx)(n.Ki.Item,{label:"Subspace Transceiver",children:(0,e.jsx)(n.$n,{icon:u.radio?"times":"check",color:u.radio?"red":"green",onClick:function(){return y("radio")},children:u.radio?"Disabled":"Enabled"})}),(0,e.jsx)(n.Ki.Item,{label:"Start Repairs",children:(0,e.jsx)(n.$n,{icon:"wrench",disabled:!d||u.active,onClick:function(){return y("fix")},children:!d||u.active?"Already Repaired":"Repair"})})]}),(0,e.jsx)(n.az,{color:"green",lineHeight:2,children:u.active?"Reconstruction in progress.":""})]})})]})})})}},1131:(q,S,r)=>{"use strict";q.exports=r(8809)},1146:(q,S,r)=>{"use strict";r.r(S),r.d(S,{LootPanel:()=>f});var e=r(1131),s=r(360),n=r(7003),t=r(5180),a=r(3521),O=r(9450),b=r(230),y=r(9818),u=r(1808),f=function(m){for(var d=(0,s.Oc)(),v=d.act,_=d.data,l=_.contents,c=l===void 0?[]:l,h=_.searching,g={},p=0;p{"use strict";r.r(S),r.d(S,{SortButton:()=>a});var e=r(1131),s=r(8222),n=r(5180);function t(){return t=Object.assign||function(O){for(var b=1;b{"use strict";r.r(S),r.d(S,{OffsetType:()=>t,PreciseMode:()=>a,directionIcons:()=>b,directionNames:()=>y,listNames:()=>n,listTypes:()=>s,spawnLocationIcons:()=>O,spawnLocationOptions:()=>e});var e=["\u0422\u0435\u043A\u0443\u0449\u0430\u044F \u043B\u043E\u043A\u0430\u0446\u0438\u044F","\u0422\u0435\u043A\u0443\u0449\u0430\u044F \u043B\u043E\u043A\u0430\u0446\u0438\u044F (\u0434\u0435\u0441\u0430\u043D\u0442\u043D\u0430\u044F \u043A\u0430\u043F\u0441\u0443\u043B\u0430)","\u0412 \u0440\u0443\u043A\u0435 \u043A\u043E\u043D\u0442\u0440\u043E\u043B\u0438\u0440\u0443\u0435\u043C\u043E\u0433\u043E \u043C\u043E\u0431\u0430","\u0423 \u043E\u0442\u043C\u0435\u0447\u0435\u043D\u043D\u043E\u0433\u043E \u043E\u0431\u044A\u0435\u043A\u0442\u0430","\u0412 \u043E\u0442\u043C\u0435\u0447\u0435\u043D\u043D\u043E\u043C \u043E\u0431\u044A\u0435\u043A\u0442\u0435","\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u0430\u044F \u043B\u043E\u043A\u0430\u0446\u0438\u044F","\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u0430\u044F \u043B\u043E\u043A\u0430\u0446\u0438\u044F (\u0434\u0435\u0441\u0430\u043D\u0442\u043D\u0430\u044F \u043A\u0430\u043F\u0441\u0443\u043B\u0430)","\u0412 \u0440\u0443\u043A\u0435 \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u043C\u043E\u0431\u0430"],s={Objects:"cube",Turfs:"map",Mobs:"cat"},n={Objects:"\u041F\u043E\u0438\u0441\u043A \u043E\u0431\u044A\u0435\u043A\u0442\u043E\u0432",Turfs:"\u041F\u043E\u0438\u0441\u043A \u0442\u0443\u0440\u0444\u043E\u0432",Mobs:"\u041F\u043E\u0438\u0441\u043A \u043C\u043E\u0431\u043E\u0432"},t={ABSOLUTE:"\u0410\u0431\u0441\u043E\u043B\u044E\u0442\u043D\u044B\u0439 \u0441\u0434\u0432\u0438\u0433",RELATIVE:"\u041E\u0442\u043D\u043E\u0441\u0438\u0442\u0435\u043B\u044C\u043D\u044B\u0439 \u0441\u0434\u0432\u0438\u0433"},a={OFF:"\u0412\u044B\u043A\u043B",TARGET:"\u0426\u0435\u043B\u044C",MARK:"\u041C\u0435\u0442\u043A\u0430",COPY:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435"},O={"\u0422\u0435\u043A\u0443\u0449\u0430\u044F \u043B\u043E\u043A\u0430\u0446\u0438\u044F":"map-marker","\u0422\u0435\u043A\u0443\u0449\u0430\u044F \u043B\u043E\u043A\u0430\u0446\u0438\u044F (\u0434\u0435\u0441\u0430\u043D\u0442\u043D\u0430\u044F \u043A\u0430\u043F\u0441\u0443\u043B\u0430)":"parachute-box","\u0412 \u0440\u0443\u043A\u0435 \u043A\u043E\u043D\u0442\u0440\u043E\u043B\u0438\u0440\u0443\u0435\u043C\u043E\u0433\u043E \u043C\u043E\u0431\u0430":"hand-holding","\u0423 \u043E\u0442\u043C\u0435\u0447\u0435\u043D\u043D\u043E\u0433\u043E \u043E\u0431\u044A\u0435\u043A\u0442\u0430":"floppy-disk","\u0412 \u043E\u0442\u043C\u0435\u0447\u0435\u043D\u043D\u043E\u043C \u043E\u0431\u044A\u0435\u043A\u0442\u0435":"floppy-disk","\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u0430\u044F \u043B\u043E\u043A\u0430\u0446\u0438\u044F":"crosshairs","\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u0430\u044F \u043B\u043E\u043A\u0430\u0446\u0438\u044F (\u0434\u0435\u0441\u0430\u043D\u0442\u043D\u0430\u044F \u043A\u0430\u043F\u0441\u0443\u043B\u0430)":"crosshairs","\u0412 \u0440\u0443\u043A\u0435 \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u043C\u043E\u0431\u0430":"crosshairs"},b={1:"arrow-up",2:"arrow-down",4:"arrow-right",8:"arrow-left"},y={1:"\u0421\u0415\u0412\u0415\u0420",2:"\u042E\u0413",4:"\u0412\u041E\u0421\u0422\u041E\u041A",8:"\u0417\u0410\u041F\u0410\u0414"}},1187:(q,S,r)=>{"use strict";r.r(S),r.d(S,{AICard:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(O){var b=(0,s.Oc)(),y=b.act,u=b.data;if(u.has_ai){var f=null;return u.integrity>=75?f="green":u.integrity>=25?f="yellow":f="red",(0,e.jsx)(t.p8,{width:600,height:420,children:(0,e.jsx)(t.p8.Content,{scrollable:!0,children:(0,e.jsxs)(n.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(n.BJ.Item,{children:(0,e.jsxs)(n.wn,{title:u.name,children:[(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Integrity",children:(0,e.jsx)(n.z2,{color:f,value:u.integrity/100})})}),(0,e.jsx)(n.az,{color:"red",children:(0,e.jsx)("h2",{children:u.flushing?"Wipe of AI in progress...":""})})]})}),(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(n.wn,{fill:!0,scrollable:!0,title:"Laws",children:!!u.has_laws&&(0,e.jsx)(n.az,{children:u.laws.map(function(m,d){return(0,e.jsx)(n.az,{children:m},d)})})||(0,e.jsx)(n.az,{color:"red",children:(0,e.jsx)("h3",{children:"No laws detected."})})})}),(0,e.jsx)(n.BJ.Item,{children:(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,{width:10,icon:u.wireless?"check":"times",color:u.wireless?"green":"red",onClick:function(){return y("wireless")},children:u.wireless?"Enabled":"Disabled"})}),(0,e.jsx)(n.Ki.Item,{label:"Subspace Transceiver",children:(0,e.jsx)(n.$n,{width:10,icon:u.radio?"check":"times",color:u.radio?"green":"red",onClick:function(){return y("radio")},children:u.radio?"Enabled":"Disabled"})}),(0,e.jsx)(n.Ki.Item,{label:"Wipe",children:(0,e.jsx)(n.$n.Confirm,{width:10,icon:"trash-alt",confirmIcon:"trash-alt",disabled:u.flushing||u.integrity===0,confirmColor:"red",onClick:function(){return y("wipe")},children:"Wipe AI"})})]})})})]})})})}else return(0,e.jsx)(t.p8,{width:250,height:120,children:(0,e.jsx)(t.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."})})})})})}},1231:(q,S,r)=>{"use strict";r.r(S),r.d(S,{Sleeper:()=>f});var e=r(1131),s=r(9818),n=r(360),t=r(5180),a=r(3521),O=[["good","\u041D\u043E\u0440\u043C\u0430"],["average","\u041A\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435"],["bad","\u0417\u0430\u0444\u0438\u043A\u0441\u0438\u0440\u043E\u0432\u0430\u043D\u0430 \u0441\u043C\u0435\u0440\u0442\u044C"]],b=[["\u0423\u0434\u0443\u0448\u044C\u0435","oxyLoss"],["\u041E\u0442\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435","toxLoss"],["\u041C\u0435\u0445.","bruteLoss"],["\u0422\u0435\u0440\u043C.","fireLoss"]],y={average:[.25,.5],bad:[.5,1/0]},u=["bad","average","average","good","average","average","bad"],f=function(h){var g=(0,n.Oc)().data,p=g.hasOccupant,j=p?(0,e.jsx)(m,{}):(0,e.jsx)(c,{});return(0,e.jsx)(a.p8,{width:550,height:760,children:(0,e.jsx)(a.p8.Content,{scrollable:!0,children:(0,e.jsxs)(t.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(t.BJ.Item,{grow:!0,children:j}),(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(_,{})})]})})})},m=function(h){return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(d,{}),(0,e.jsx)(v,{}),(0,e.jsx)(l,{})]})},d=function(h){var g=(0,n.Oc)(),p=g.act,j=g.data,x=j.occupant,C=j.auto_eject_dead;return(0,e.jsx)(t.wn,{title:"\u041F\u0430\u0446\u0438\u0435\u043D\u0442",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.az,{color:"label",inline:!0,children:"\u0410\u0432\u0442\u043E-\u0438\u0437\u0432\u043B\u0435\u0447\u0435\u043D\u0438\u0435 \u0442\u0440\u0443\u043F\u043E\u0432:\xA0"}),(0,e.jsx)(t.$n,{icon:C?"toggle-on":"toggle-off",selected:C,onClick:function(){return p("auto_eject_dead_"+(C?"off":"on"))},children:C?"\u0414\u0430":"\u041D\u0435\u0442"}),(0,e.jsx)(t.$n,{icon:"user-slash",onClick:function(){return p("ejectify")},children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430"})]}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"\u0418\u043C\u044F",children:x.name}),(0,e.jsx)(t.Ki.Item,{label:"\u041E\u0446\u0435\u043D\u043A\u0430 \u0437\u0434\u043E\u0440\u043E\u0432\u044C\u044F",children:(0,e.jsx)(t.z2,{minValue:0,maxValue:x.maxHealth,value:x.health,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]},children:(0,s.LI)(x.health,0)})}),(0,e.jsx)(t.Ki.Item,{label:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",color:O[x.stat][0],children:O[x.stat][1]}),(0,e.jsx)(t.Ki.Item,{label:"\u0422\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430",children:(0,e.jsxs)(t.z2,{minValue:0,maxValue:x.maxTemp,value:x.bodyTemperature,color:u[x.temperatureSuitability+3],children:[(0,s.LI)(x.btCelsius,0),"\xB0C,",(0,s.LI)(x.btFaren,0),"\xB0F"]})}),!!x.hasBlood&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.Ki.Item,{label:"\u0423\u0440\u043E\u0432\u0435\u043D\u044C \u043A\u0440\u043E\u0432\u0438",children:(0,e.jsxs)(t.z2,{minValue:0,maxValue:x.bloodMax,value:x.bloodLevel,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[x.bloodPercent,"%, ",x.bloodLevel,"cl"]})}),(0,e.jsxs)(t.Ki.Item,{label:"\u041F\u0443\u043B\u044C\u0441",verticalAlign:"middle",children:[x.pulse," BPM"]})]})]})})},v=function(h){var g=(0,n.Oc)().data,p=g.occupant;return(0,e.jsx)(t.wn,{title:"\u041E\u0431\u0449\u0438\u0439 \u0443\u0440\u043E\u043D",children:(0,e.jsx)(t.Ki,{children:b.map(function(j,x){return(0,e.jsx)(t.Ki.Item,{label:j[0],children:(0,e.jsx)(t.z2,{minValue:0,maxValue:100,value:p[j[1]],ranges:y,children:(0,s.LI)(p[j[1]],0)},x)},x)})})})},_=function(h){var g=(0,n.Oc)(),p=g.act,j=g.data,x=j.hasOccupant,C=j.isBeakerLoaded,I=j.beakerMaxSpace,P=j.beakerFreeSpace,M=j.dialysis,B=M&&P>0;return(0,e.jsx)(t.wn,{title:"\u0414\u0438\u0430\u043B\u0438\u0437",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{disabled:!C||P<=0||!x,selected:B,icon:B?"toggle-on":"toggle-off",onClick:function(){return p("togglefilter")},children:B?"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u043E":"\u0412\u044B\u043A\u043B\u044E\u0447\u0435\u043D\u043E"}),(0,e.jsx)(t.$n,{disabled:!C,icon:"eject",onClick:function(){return p("removebeaker")},children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C"})]}),children:C?(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"\u041E\u0441\u0442\u0430\u0442\u043E\u0447\u043D\u044B\u0439 \u043E\u0431\u044A\u0451\u043C",children:(0,e.jsxs)(t.z2,{minValue:0,maxValue:I,value:P,ranges:{good:[.5,1/0],average:[.25,.5],bad:[-1/0,.25]},children:[P,"u"]})})}):(0,e.jsx)(t.az,{color:"label",children:"\u0401\u043C\u043A\u043E\u0441\u0442\u044C \u043D\u0435 \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0430."})})},l=function(h){var g=(0,n.Oc)(),p=g.act,j=g.data,x=j.occupant,C=j.chemicals,I=j.maxchem,P=j.amounts;return(0,e.jsx)(t.wn,{title:"\u041A\u0440\u043E\u0432\u043E\u0442\u043E\u043A \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430",children:C.map(function(M,B){var w="",T;return M.overdosing?(w="bad",T=(0,e.jsxs)(t.az,{color:"bad",children:[(0,e.jsx)(t.In,{name:"exclamation-circle"}),"\xA0 \u041F\u0435\u0440\u0435\u0434\u043E\u0437\u0438\u0440\u043E\u0432\u043A\u0430!"]})):M.od_warning&&(w="average",T=(0,e.jsxs)(t.az,{color:"average",children:[(0,e.jsx)(t.In,{name:"exclamation-triangle"}),"\xA0 \u0420\u0438\u0441\u043A \u043F\u0435\u0440\u0435\u0434\u043E\u0437\u0438\u0440\u043E\u0432\u043A\u0438"]})),(0,e.jsx)(t.az,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.jsx)(t.wn,{title:M.title,mx:"0",lineHeight:"18px",buttons:T,children:(0,e.jsxs)(t.BJ,{children:[(0,e.jsxs)(t.z2,{minValue:0,maxValue:I,value:M.occ_amount,color:w,mr:"0.5rem",children:[M.pretty_amount,"/",I,"u"]}),P.map(function(K,R){return(0,e.jsx)(t.$n,{disabled:!M.injectable||M.occ_amount+K>I||x.stat===2,icon:"syringe",tooltip:"\u0412\u0432\u0435\u0441\u0442\u0438 "+K+"u \u0432\u0435\u0449\u0435\u0441\u0442\u0432\u0430 "+M.title+" \u0432 \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430",mb:"0",height:"19px",onClick:function(){return p("chemical",{chemid:M.id,amount:K})},children:"\u0412\u0432\u0435\u0441\u0442\u0438 "+K+"u"},R)})]})})},B)})})},c=function(h){return(0,e.jsx)(t.wn,{fill:!0,textAlign:"center",children:(0,e.jsx)(t.BJ,{fill:!0,children:(0,e.jsxs)(t.BJ.Item,{grow:!0,align:"center",color:"label",children:[(0,e.jsx)(t.In,{name:"user-slash",mb:"0.5rem",size:5}),(0,e.jsx)("br",{}),"\u041F\u0430\u0446\u0438\u0435\u043D\u0442 \u0432\u043D\u0443\u0442\u0440\u0438 \u043D\u0435 \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D."]})})})}},1236:(q,S,r)=>{"use strict";r.r(S),r.d(S,{PodLaunch:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3500),a=function(O){var b=(0,s.Oc)(),y=b.act,u=b.data,f=u.giveLauncher,m=(0,t.useCompact)(),d=m[0];return(0,e.jsx)(n.$n,{fluid:!0,onClick:function(){return y("giveLauncher")},selected:f,textAlign:"center",tooltip:` +`)},f=function(d){return d.replace(/[\r\n]+/,"")},m=function(d){var v=(0,a.Oc)(),_=v.act,l=v.data,c=l.large_buttons,h=l.max_length,g=l.message,p=g===void 0?"":g,j=l.multiline,x=l.placeholder,C=x===void 0?"":x,I=l.timeout,P=l.title,M=(0,s.useState)(C||""),B=M[0],w=M[1],T=function(F){if(F!==B){var $=j?u(F):f(F);w($)}},K=j||B.length>=30,R=135+(p.length>30?Math.ceil(p.length/4):0)+(K?75:0)+(p.length&&c?5:0),U=function(F){F.key===t._.Enter&&!F.shiftKey&&_("submit",{entry:B}),(0,t.KL)(F.key)&&_("cancel")};return(0,e.jsxs)(b.p8,{title:P,width:325,height:R,children:[I&&(0,e.jsx)(y.Loader,{value:I}),(0,e.jsx)(b.p8.Content,{onKeyDown:U,children:(0,e.jsx)(n.wn,{fill:!0,children:(0,e.jsxs)(n.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.az,{color:"label",children:p})}),(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(n.fs,{autoFocus:!0,autoSelect:!0,fluid:!0,height:j||B.length>=30?"100%":"1.8rem",maxLength:h,onEscape:function(){return _("cancel")},onChange:T,onEnter:function(){return _("submit",{entry:B})},placeholder:"Type something...",value:B})}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(O.InputButtons,{input:B,message:B.length+"/"+(h||"\u221E")})})]})})})]})}},978:(q,S,r)=>{"use strict";r.r(S),r.d(S,{AgentCard:()=>b,AgentCardAppearances:()=>y,AgentCardInfo:()=>O,AgentCardSLSlots:()=>u});var e=r(1131),s=r(360),n=r(7003),t=r(5180),a=r(3521),b=function(f){var m=(0,n.useState)(0),d=m[0],v=m[1],_=function(l){switch(l){case 0:return(0,e.jsx)(O,{});case 1:return(0,e.jsx)(y,{});case 2:return(0,e.jsx)(u,{});default:return(0,e.jsx)(O,{})}};return(0,e.jsx)(a.p8,{width:500,height:475,theme:"syndicate",children:(0,e.jsx)(a.p8.Content,{children:(0,e.jsxs)(t.az,{fillPositionedParent:!0,overflow:"hidden",children:[(0,e.jsxs)(t.tU,{children:[(0,e.jsxs)(t.tU.Tab,{selected:d===0,onClick:function(){return v(0)},children:[(0,e.jsx)(t.In,{name:"table"})," Card Info"]},"Card Info"),(0,e.jsxs)(t.tU.Tab,{selected:d===1,onClick:function(){return v(1)},children:[(0,e.jsx)(t.In,{name:"id-card"})," Appearance"]},"Appearance"),(0,e.jsxs)(t.tU.Tab,{selected:d===2,onClick:function(){return v(2)},children:[(0,e.jsx)(t.In,{name:"arrow-down"})," Save/Load Card Info"]},"Save/Load Card Info")]}),_(d)]})})})},O=function(f){var m=(0,s.Oc)(),d=m.act,v=m.data,_=v.registered_name,l=v.sex,c=v.age,h=v.assignment,g=v.associated_account_number,p=v.blood_type,j=v.dna_hash,x=v.fingerprint_hash,C=v.photo,I=v.ai_tracking;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"Card Info",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Name",children:(0,e.jsx)(t.$n,{onClick:function(){return d("change_name")},children:_||"[UNSET]"})}),(0,e.jsx)(t.Ki.Item,{label:"Sex",children:(0,e.jsx)(t.$n,{iconPosition:"left",onClick:function(){return d("change_sex")},children:l||"[UNSET]"})}),(0,e.jsx)(t.Ki.Item,{label:"Age",children:(0,e.jsx)(t.$n,{onClick:function(){return d("change_age")},children:c||"[UNSET]"})}),(0,e.jsx)(t.Ki.Item,{label:"Rank",children:(0,e.jsx)(t.$n,{onClick:function(){return d("change_occupation")},children:h||"[UNSET]"})}),(0,e.jsx)(t.Ki.Item,{label:"Fingerprints",children:(0,e.jsx)(t.$n,{onClick:function(){return d("change_fingerprints")},children:x||"[UNSET]"})}),(0,e.jsx)(t.Ki.Item,{label:"Blood Type",children:(0,e.jsx)(t.$n,{onClick:function(){return d("change_blood_type")},children:p||"[UNSET]"})}),(0,e.jsx)(t.Ki.Item,{label:"DNA Hash",children:(0,e.jsx)(t.$n,{onClick:function(){return d("change_dna_hash")},children:j||"[UNSET]"})}),(0,e.jsx)(t.Ki.Item,{label:"Money Account",children:(0,e.jsx)(t.$n,{onClick:function(){return d("change_money_account")},children:g||"[UNSET]"})}),(0,e.jsx)(t.Ki.Item,{label:"Photo",children:(0,e.jsx)(t.$n,{onClick:function(){return d("change_photo")},children:C?"Update":"[UNSET]"})})]})}),(0,e.jsx)(t.wn,{title:"Card Settings",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Card Info",children:(0,e.jsx)(t.$n,{onClick:function(){return d("delete_info")},children:"Delete Card Info"})}),(0,e.jsx)(t.Ki.Item,{label:"Access",children:(0,e.jsx)(t.$n,{onClick:function(){return d("clear_access")},children:"Reset Access"})}),(0,e.jsx)(t.Ki.Item,{label:"AI Tracking",children:(0,e.jsx)(t.$n,{onClick:function(){return d("change_ai_tracking")},children:I?"Untrackable":"Trackable"})})]})})]})},y=function(f){var m=(0,s.Oc)(),d=m.act,v=m.data,_=v.appearances,l=v.id_icon,c=v.seleced_appearance,h=(0,n.useState)(c),g=h[0],p=h[1];return(0,e.jsx)(t.wn,{fill:!0,height:"92%",title:"Card Appearance",overflowY:"scroll",children:_.map(function(j){return(0,e.jsx)(t.c_,{dmIcon:l,dmIconState:j,imageSize:64,selected:j===g,tooltip:j,m:"1px",style:{opacity:j===g&&"1"||"0.5"},onClick:function(){p(j),d("change_appearance_new",{new_appearance:j})}},j)})})},u=function(f){var m=(0,s.Oc)(),d=m.act,v=m.data,_=v.saved_info;return(0,e.jsx)(t.wn,{title:"Save/Load Manager",style:{lineHeight:"25px"},children:(0,e.jsx)(t.Ki,{children:_.map(function(l){return(0,e.jsx)(t.Ki.Item,{label:l.registered_name?l.registered_name+", "+l.assignment:"Slot "+l.id,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{onClick:function(){return d("clear_slot",{slot:l.id})},children:"Clear"}),(0,e.jsx)(t.$n,{onClick:function(){return d("save_slot",{slot:l.id})},children:"Save"}),(0,e.jsx)(t.$n,{disabled:!l.registered_name,onClick:function(){return d("load_slot",{slot:l.id})},children:"Load"})]})},l.id)})})})}},998:(q,S,r)=>{"use strict";r.r(S),r.d(S,{DnaVault:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(y){var u=(0,s.Oc)().data,f=u.completed;return(0,e.jsx)(t.p8,{width:350,height:280,children:(0,e.jsx)(t.p8.Content,{children:(0,e.jsxs)(n.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(b,{}),!!f&&(0,e.jsx)(O,{})]})})})},b=function(y){var u=(0,s.Oc)().data,f=u.dna,m=u.dna_max,d=u.plants,v=u.plants_max,_=u.animals,l=u.animals_max,c=.66,h=.33;return(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(n.wn,{fill:!0,title:"DNA Vault Database",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Human DNA",children:(0,e.jsx)(n.z2,{value:f/m,ranges:{good:[c,1/0],average:[h,c],bad:[-1/0,h]},children:f+" / "+m+" Samples"})}),(0,e.jsx)(n.Ki.Item,{label:"Plant DNA",children:(0,e.jsx)(n.z2,{value:d/v,ranges:{good:[c,1/0],average:[h,c],bad:[-1/0,h]},children:d+" / "+v+" Samples"})}),(0,e.jsx)(n.Ki.Item,{label:"Animal DNA",children:(0,e.jsx)(n.z2,{value:_/l,ranges:{good:[c,1/0],average:[h,c],bad:[-1/0,h]},children:_+" / "+l+" Samples"})})]})})})},O=function(y){var u=(0,s.Oc)(),f=u.act,m=u.data,d=m.choiceA,v=m.choiceB,_=m.used;return(0,e.jsx)(n.BJ.Item,{children:(0,e.jsxs)(n.wn,{fill:!0,title:"Personal Gene Therapy",children:[(0,e.jsx)(n.az,{bold:!0,textAlign:"center",mb:1,children:"Applicable Gene Therapy Treatments"}),!_&&(0,e.jsxs)(n.BJ,{vertical:!0,children:[(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.$n,{fluid:!0,bold:!0,textAlign:"center",onClick:function(){return f("gene",{choice:d})},children:d})}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.$n,{fluid:!0,bold:!0,textAlign:"center",onClick:function(){return f("gene",{choice:v})},children:v})})]})||(0,e.jsx)(n.az,{bold:!0,textAlign:"center",mb:1,children:"Users DNA deemed unstable. Unable to provide more upgrades."})]})})}},1003:(q,S,r)=>{"use strict";r.r(S),r.d(S,{CrewMonitor:()=>v});var e=r(1131),s=r(1859),n=r(9845),t=r(360),a=r(7003),b=r(5180),O=r(9357),y=r(3521);function u(){return u=Object.assign||function(x){for(var C=1;C=0)&&(I[M]=x[M]);return I}var m=function(x,C){return x.dead?"\u041C\u0451\u0440\u0442\u0432":parseInt(x.health,10)<=C?"\u041A\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435":parseInt(x.stat,10)===1?"\u0411\u0435\u0437 \u0441\u043E\u0437\u043D\u0430\u043D\u0438\u044F":"\u0416\u0438\u0432"},d=function(x,C){return x.dead?"red":parseInt(x.health,10)<=C?"orange":parseInt(x.stat,10)===1?"blue":"green"},v=function(x){var C=(0,t.Oc)(),I=C.data,P=C.act,M=(0,a.useState)(I.tabIndex),B=M[0],w=M[1],T=function(R){w(R),P("set_tab_index",{tab_index:R})},K=function(R){switch(R){case 0:return(0,e.jsx)(c,{});case 1:return(0,e.jsx)(h,{});case 2:return(0,e.jsx)(g,{});case 3:return(0,e.jsx)(l,{});case 4:return(0,e.jsx)(j,{});default:return"\u0427\u0422\u041E-\u0422\u041E \u0422\u041E\u0427\u041D\u041E \u041D\u0415 \u0422\u0410\u041A!"}};return(0,e.jsx)(y.p8,{width:800,height:600,children:(0,e.jsx)(y.p8.Content,{scrollable:!0,children:(0,e.jsxs)(b.az,{fillPositionedParent:!0,children:[(0,e.jsxs)(b.tU,{children:[I.isBS?(0,e.jsxs)(b.tU.Tab,{selected:B===0,onClick:function(){return T(0)},children:[(0,e.jsx)(b.In,{name:"table"})," \u0414\u0430\u043D\u043D\u044B\u0435 \u043E \u041A\u043E\u043C\u0430\u043D\u0434\u043E\u0432\u0430\u043D\u0438\u0438"]},"ComDataView"):null,I.isBP?(0,e.jsxs)(b.tU.Tab,{selected:B===1,onClick:function(){return T(1)},children:[(0,e.jsx)(b.In,{name:"table"})," \u0414\u0430\u043D\u043D\u044B\u0435 \u043E \u0421\u043B\u0443\u0436\u0431\u0435 \u0411\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u0438"]},"SecDataView"):null,I.isMM?(0,e.jsxs)(b.tU.Tab,{selected:B===2,onClick:function(){return T(2)},children:[(0,e.jsx)(b.In,{name:"table"})," \u0414\u0430\u043D\u043D\u044B\u0435 \u043E \u0448\u0430\u0445\u0442\u0451\u0440\u0430\u0445"]},"MiningDataView"):null,(0,e.jsxs)(b.tU.Tab,{selected:B===3,onClick:function(){return T(3)},children:[(0,e.jsx)(b.In,{name:"table"})," \u0414\u0430\u043D\u043D\u044B\u0435 \u043E\u0431 \u042D\u043A\u0438\u043F\u0430\u0436\u0435"]},"DataView"),(0,e.jsxs)(b.tU.Tab,{selected:B===4,onClick:function(){return T(4)},children:[(0,e.jsx)(b.In,{name:"map-marked-alt"})," \u041F\u0440\u043E\u0441\u043C\u043E\u0442\u0440 \u041A\u0430\u0440\u0442\u044B"]},"MapView")]}),K(B)]})})})},_=function(x){var C=x.crewData,I=(0,t.Oc)(),P=I.act,M=I.data,B=(0,s.Ul)(C,function(U){return U.name}),w=(0,a.useState)(""),T=w[0],K=w[1],R=(0,n.XZ)(T,function(U){return U.name+"|"+U.assignment+"|"+U.area});return(0,e.jsxs)(b.az,{children:[(0,e.jsx)(b.pd,{placeholder:"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0418\u043C\u044F, \u0414\u043E\u043B\u0436\u043D\u043E\u0441\u0442\u044C \u0438\u043B\u0438 \u041B\u043E\u043A\u0430\u0446\u0438\u044E...",width:"100%",expensive:!0,onChange:K}),(0,e.jsxs)(b.XI,{m:"0.5rem",style:{borderCollapse:"separate",borderSpacing:"1px"},children:[(0,e.jsxs)(b.XI.Row,{header:!0,children:[(0,e.jsx)(b.XI.Cell,{children:(0,e.jsx)(b.$n,{tooltip:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u043E\u0442\u043C\u0435\u0442\u043A\u0438 \u043D\u0430 \u043A\u0430\u0440\u0442\u0435",icon:"square-xmark",onClick:function(){return P("clear_highlighted_names")}})}),(0,e.jsx)(b.XI.Cell,{children:"\u0418\u043C\u044F"}),(0,e.jsx)(b.XI.Cell,{children:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435"}),(0,e.jsx)(b.XI.Cell,{children:"\u041B\u043E\u043A\u0430\u0446\u0438\u044F"})]}),B.filter(R).map(function(U){var F=M.highlightedNames.includes(U.name);return(0,e.jsxs)(b.XI.Row,{bold:!!U.is_command,children:[(0,e.jsx)(b.XI.Cell,{children:(0,e.jsx)(b.$n.Checkbox,{checked:F,tooltip:"\u041E\u0442\u043C\u0435\u0442\u0438\u0442\u044C \u043D\u0430 \u043A\u0430\u0440\u0442\u0435",onClick:function(){return P(F?"remove_highlighted_name":"add_highlighted_name",{name:U.name})}})}),(0,e.jsxs)(b.XI.Cell,{children:[U.name," (",U.assignment,")"]}),(0,e.jsxs)(b.XI.Cell,{children:[(0,e.jsx)(b.az,{inline:!0,color:d(U,M.critThreshold),children:m(U,M.critThreshold)}),U.sensor_type>=2?(0,e.jsxs)(b.az,{inline:!0,ml:1,children:["(",(0,e.jsx)(b.az,{inline:!0,color:O.lm.damageType.oxy,children:U.oxy}),"|",(0,e.jsx)(b.az,{inline:!0,color:O.lm.damageType.toxin,children:U.tox}),"|",(0,e.jsx)(b.az,{inline:!0,color:O.lm.damageType.burn,children:U.fire}),"|",(0,e.jsx)(b.az,{inline:!0,color:O.lm.damageType.brute,children:U.brute}),")"]}):null]}),(0,e.jsx)(b.XI.Cell,{children:U.sensor_type===3?M.isAI||M.isObserver?(0,e.jsx)(b.$n,{fluid:!0,mr:1,icon:"location-arrow",onClick:function(){return P("track",{track:U.ref})},children:U.area+" ("+U.x+", "+U.y+")"}):U.area+" ("+U.x+", "+U.y+")":(0,e.jsx)(b.az,{inline:!0,color:"grey",children:"\u041D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u043E"})})]},U.name)})]})]})},l=function(x){var C=(0,t.Oc)().data,I=C.crewmembers||[];return(0,e.jsx)(_,{crewData:I})},c=function(x){var C=(0,t.Oc)().data,I=C.crewmembers.filter(function(P){return P.is_command})||[];return(0,e.jsx)(_,{crewData:I})},h=function(x){var C=(0,t.Oc)().data,I=C.crewmembers.filter(function(P){return P.is_security})||[];return(0,e.jsx)(_,{crewData:I})},g=function(x){var C=(0,t.Oc)().data,I=C.crewmembers.filter(function(P){return P.is_shaft_miner})||[];return(0,e.jsx)(_,{crewData:I})},p=function(x){var C=x.color,I=f(x,["color"]);return(0,e.jsx)(b.tx.Marker,u({},I,{children:(0,e.jsx)("span",{className:"highlighted-marker color-border-"+C})}))},j=function(x){var C=(0,t.Oc)(),I=C.act,P=C.data,M=P.stationLevelNum,B=P.stationLevelName,w=(0,a.useState)(P.zoom),T=w[0],K=w[1],R=(0,a.useState)(M[0]),U=R[0],F=R[1],$=function(N){return N.is_command&&P.isBS||N.is_security&&P.isBP?"square":"circle"},W=function(N,Z){return N.is_command&&P.isBS||N.is_security&&P.isBP?N.dead?"red":parseInt(N.health,10)<=Z?"orange":parseInt(N.stat,10)===1?"blue":"violet":d(N,Z)};return(0,e.jsx)(b.az,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.jsx)(b.tx,{zoom:P.zoom,offsetX:P.offsetX,offsetY:P.offsetY,zNames:B,zLevels:M,zCurrent:U,setZCurrent:F,onZoom:function(N,Z){K(Z),I("set_zoom",{zoom:Z})},onOffsetChangeEnded:function(N,Z){return I("set_offset",{offset_x:Z.x,offset_y:Z.y})},children:P.crewmembers.filter(function(N){return N.sensor_type===3}).map(function(N){var Z=W(N,P.critThreshold),ie=P.highlightedNames.includes(N.name),Q=function(){return P.isObserver?I("track",{track:N.ref}):null},V=function(){return I(ie?"remove_highlighted_name":"add_highlighted_name",{name:N.name})},G=N.name+" ("+N.assignment+")";return ie?(0,e.jsx)(p,{x:N.x,y:N.y,z:N.z,zoom:T,z_current:U,tooltip:G,tooltipPosition:N.x>255/2?"bottom":"right",color:Z,onClick:Q,onDblClick:V},N.ref):(0,e.jsx)(b.tx.MarkerIcon,{x:N.x,y:N.y,z:N.z,z_current:U,zoom:T,icon:$(N),tooltip:G,tooltipPosition:N.x>255/2?"bottom":"right",color:Z,onClick:Q,onDblClick:V},N.ref)})})})}},1036:(q,S,r)=>{"use strict";r.r(S),r.d(S,{SyndieCargoConsole:()=>u});var e=r(1131),s=r(5070),n=r(1859),t=r(360),a=r(7003),b=r(5180),O=r(3521),y=r(9845),u=function(_){var l=(0,a.useState)(null),c=l[0],h=l[1],g=(0,a.useState)(null),p=g[0],j=g[1];return(0,e.jsx)(O.p8,{width:900,height:800,theme:"syndicate",children:(0,e.jsxs)(O.p8.Content,{children:[(0,e.jsx)(f,{contentsModal:c,setContentsModal:h,contentsModalTitle:p,setContentsModalTitle:j}),(0,e.jsx)(m,{}),(0,e.jsx)(d,{setContentsModal:h,setContentsModalTitle:j}),(0,e.jsx)(v,{})]})})},f=function(_){var l=_.contentsModal,c=_.setContentsModal,h=_.contentsModalTitle,g=_.setContentsModalTitle;if(l!==null&&h!==null)return(0,e.jsxs)(b.aF,{maxWidth:"75%",width:window.innerWidth+"px",maxHeight:window.innerHeight*.75+"px",mx:"auto",children:[(0,e.jsx)(b.az,{width:"100%",bold:!0,children:(0,e.jsxs)("h1",{children:[h," contents:"]})}),(0,e.jsx)(b.az,{children:l.map(function(p){return(0,e.jsxs)(b.az,{children:["- ",p]},p)})}),(0,e.jsx)(b.az,{m:2,children:(0,e.jsx)(b.$n,{onClick:function(){c(null),g(null)},children:"Close"})})]})},m=function(_){var l=(0,t.Oc)(),c=l.act,h=l.data,g=h.is_public,p=g===void 0?!1:g,j=h.cash,x=h.wait_time,C=h.is_cooldown,I=h.telepads_status,P=h.adminAddCash,M=I,B="",w=0,T="";return I==="Pads not linked!"?(w=0,B="Attempts to link telepads to the console.",T="Link pads"):C?C&&(T="Cooldown...",B="Pads are cooling off...",w=1,x!==1?M=""+I+" (ETA: "+x+" seconds)":M=""+I+" (ETA: "+x+" second)"):(w=0,B="Teleports your crates to the market. A reminder, some of the crates are directly stolen from NT trading routes. That means they can be locked. We are NOT sorry for the inconvenience",T="Teleport"),(0,e.jsx)(b.wn,{title:"Status",children:(0,e.jsxs)(b.Ki,{children:[!p&&(0,e.jsxs)(b.Ki.Item,{label:"Money Available",children:[j,(0,e.jsx)(b.$n,{tooltip:"Withdraw money from the console",onClick:function(){return c("withdraw",{cash:j})},children:"Withdraw"}),(0,e.jsx)(b.$n,{tooltip:"Bless the players with da money!",onClick:function(){return c("add_money",{cash:j})},children:P})]}),(0,e.jsx)(b.Ki.Item,{label:"Telepads Status",children:M}),!p&&(0,e.jsxs)(b.Ki.Item,{label:"Controls",children:[(0,e.jsx)(b.$n,{tooltip:B,disabled:w,onClick:function(){return c("teleport")},children:T}),(0,e.jsx)(b.$n,{onClick:function(){return c("showMessages")},children:"View Syndicate Black Market Log"})]})]})})},d=function(_){var l=(0,t.Oc)(),c=l.act,h=l.data,g=h.categories,p=h.supply_packs,j=(0,t.QY)("category","Emergency"),x=j[0],C=j[1],I=(0,t.QY)("search_text",""),P=I[0],M=I[1],B=_.setContentsModal,w=_.setContentsModalTitle,T=(0,y.XZ)(P,function(U){return U.name}),K=(0,s.L)([function(U){return(0,n.pb)(U,function(F){return F.cat===(g.filter(function($){return $.name===x})[0].category||P)})},function(U){return P?(0,n.pb)(U,T):U},function(U){return(0,n.Ul)(U,function(F){return F.name.toLowerCase()})}])(p),R="Crate Catalogue";return P?R="Results for '"+P+"':":x&&(R="Browsing "+x),(0,e.jsxs)(b.wn,{title:R,buttons:(0,e.jsx)(b.ms,{width:"190px",options:g.map(function(U){return U.name}),selected:x,onSelected:function(U){return C(U)}}),children:[(0,e.jsx)(b.pd,{fluid:!0,placeholder:"Search for...",expensive:!0,onChange:M,mb:1}),(0,e.jsx)(b.az,{maxHeight:25,overflowY:"auto",overflowX:"hidden",children:(0,e.jsx)(b.XI,{m:"0.5rem",children:K.map(function(U){return(0,e.jsxs)(b.XI.Row,{children:[(0,e.jsxs)(b.XI.Cell,{bold:!0,children:[U.name," (",U.cost," Credits)"]}),(0,e.jsxs)(b.XI.Cell,{textAlign:"right",pr:1,children:[(0,e.jsx)(b.$n,{icon:"shopping-cart",onClick:function(){return c("order",{crate:U.ref,multiple:0})},children:"Order 1"}),(0,e.jsx)(b.$n,{icon:"cart-plus",onClick:function(){return c("order",{crate:U.ref,multiple:1})},children:"Order Multiple"}),(0,e.jsx)(b.$n,{icon:"search",onClick:function(){B(U.contents),w(U.name)},children:"View Contents"})]})]},U.name)})})})]})},v=function(_){var l=(0,t.Oc)(),c=l.act,h=l.data,g=h.requests,p=h.canapprove,j=h.orders;return(0,e.jsx)(b.wn,{title:"Details",children:(0,e.jsxs)(b.az,{maxHeight:15,overflowY:"auto",overflowX:"hidden",children:[(0,e.jsx)(b.az,{bold:!0,children:"Requests"}),(0,e.jsx)(b.XI,{m:"0.5rem",children:g.map(function(x){return(0,e.jsxs)(b.XI.Row,{children:[(0,e.jsxs)(b.XI.Cell,{children:[(0,e.jsxs)(b.az,{children:["- #",x.ordernum,": ",x.supply_type," for ",(0,e.jsx)("b",{children:x.orderedby})]}),(0,e.jsxs)(b.az,{italic:!0,children:["Reason: ",x.comment]})]}),(0,e.jsxs)(b.XI.Cell,{textAlign:"right",pr:1,children:[(0,e.jsx)(b.$n,{color:"green",disabled:!p,onClick:function(){return c("approve",{ordernum:x.ordernum})},children:"Approve"}),(0,e.jsx)(b.$n,{color:"red",onClick:function(){return c("deny",{ordernum:x.ordernum})},children:"Deny"})]})]},x.ordernum)})}),(0,e.jsx)(b.az,{bold:!0,children:"Confirmed Orders"}),(0,e.jsx)(b.XI,{m:"0.5rem",children:j.map(function(x){return(0,e.jsx)(b.XI.Row,{children:(0,e.jsxs)(b.XI.Cell,{children:[(0,e.jsxs)(b.az,{children:["- #",x.ordernum,": ",x.supply_type," for ",(0,e.jsx)("b",{children:x.orderedby})]}),(0,e.jsxs)(b.az,{italic:!0,children:["Reason: ",x.comment]})]})},x.ordernum)})})]})})}},1087:(q,S,r)=>{"use strict";r.r(S),r.d(S,{NumberInputModal:()=>u});var e=r(1131),s=r(7003),n=r(5180),t=r(1808),a=r(360),b=r(3521),O=r(30),y=r(3384),u=function(f){var m=(0,a.Oc)(),d=m.act,v=m.data,_=v.init_value,l=v.large_buttons,c=v.max_value,h=c===void 0?1e4:c,g=v.message,p=g===void 0?"":g,j=v.min_value,x=j===void 0?0:j,C=v.round_value,I=v.timeout,P=v.title,M=(0,s.useState)(_),B=M[0],w=M[1],T=(0,s.useState)(!0),K=T[0],R=T[1],U=140+(p.length>30?Math.ceil(p.length/3):0)+(p.length&&l?5:0),F=function($){$.key===t._.Enter&&K&&d("submit",{entry:B}),(0,t.KL)($.key)&&d("cancel")};return(0,e.jsxs)(b.p8,{title:P,width:270,height:U,children:[I&&(0,e.jsx)(y.Loader,{value:I}),(0,e.jsx)(b.p8.Content,{onKeyDown:F,children:(0,e.jsx)(n.wn,{fill:!0,children:(0,e.jsxs)(n.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(n.az,{color:"label",children:p})}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsxs)(n.BJ,{fill:!0,children:[(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.$n,{disabled:B===x,icon:"angle-double-left",onClick:function(){return w(x??0)},tooltip:x?"Min ("+x+")":"Min"})}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.$n,{icon:"angle-down",disabled:B<=x,onClick:function(){return w(function($){return $-1})}})}),(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(n.SM,{autoFocus:!0,autoSelect:!0,fluid:!0,width:8.7,allowFloats:!C,minValue:x,maxValue:h,onChange:w,onValidationChange:R,value:B})}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.$n,{icon:"angle-up",disabled:B>=h,onClick:function(){return w(function($){return $+1})}})}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.$n,{disabled:B===h,icon:"angle-double-right",onClick:function(){return w(h??1e4)},tooltip:h?"Max ("+h+")":"Max"})}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.$n,{disabled:B===_,icon:"redo",onClick:function(){return w(_??0)},tooltip:_?"Reset ("+_+")":"Reset"})})]})}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(O.InputButtons,{input:B,disabled:!K})})]})})})]})}},1092:(q,S,r)=>{"use strict";r.r(S),r.d(S,{Teleporter:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(b){var O=(0,s.Oc)(),y=O.act,u=O.data,f=u.targetsTeleport?u.targetsTeleport:{},m=0,d=1,v=2,_=u.calibrated,l=u.calibrating,c=u.powerstation,h=u.regime,g=u.teleporterhub,p=u.target,j=u.locked,x=u.accuracy;return(0,e.jsx)(t.p8,{width:350,height:325,children:(0,e.jsx)(t.p8.Content,{children:(0,e.jsx)(n.BJ,{fill:!0,vertical:!0,children:(0,e.jsxs)(n.BJ.Item,{grow:!0,children:[(!c||!g)&&(0,e.jsxs)(n.wn,{fill:!0,title:"Error",children:[g,!c&&(0,e.jsx)(n.az,{color:"bad",children:" Powerstation not linked "}),c&&!g&&(0,e.jsx)(n.az,{color:"bad",children:" Teleporter hub not linked "})]}),c&&g&&(0,e.jsxs)(n.wn,{fill:!0,scrollable:!0,title:"Status",children:[(0,e.jsxs)(n.BJ,{mb:1,children:[(0,e.jsx)(n.BJ.Item,{width:8.5,color:"label",children:"Teleport target:"}),(0,e.jsxs)(n.BJ.Item,{children:[h===m&&(0,e.jsx)(n.ms,{width:18.2,selected:p,disabled:l,options:Object.keys(f),color:p!=="None"?"default":"bad",onSelected:function(C){return y("settarget",{x:f[C].x,y:f[C].y,z:f[C].z})}}),h===d&&(0,e.jsx)(n.ms,{width:18.2,selected:p,disabled:l,options:Object.keys(f),color:p!=="None"?"default":"bad",onSelected:function(C){return y("settarget",{x:f[C].x,y:f[C].y,z:f[C].z})}}),h===v&&(0,e.jsx)(n.az,{children:p})]})]}),(0,e.jsxs)(n.BJ,{children:[(0,e.jsx)(n.BJ.Item,{width:8.5,color:"label",children:"Regime:"}),(0,e.jsx)(n.BJ.Item,{grow:!0,textAlign:"center",children:(0,e.jsx)(n.$n,{fluid:!0,content:"Gate",tooltip:"Teleport to another teleport hub.",tooltipPosition:"top",color:h===d?"good":null,onClick:function(){return y("setregime",{regime:d})}})}),(0,e.jsx)(n.BJ.Item,{grow:!0,textAlign:"center",children:(0,e.jsx)(n.$n,{fluid:!0,content:"Teleporter",tooltip:"One-way teleport.",tooltipPosition:"top",color:h===m?"good":null,onClick:function(){return y("setregime",{regime:m})}})}),(0,e.jsx)(n.BJ.Item,{grow:!0,textAlign:"center",children:(0,e.jsx)(n.$n,{fluid:!0,content:"GPS",tooltip:"Teleport to a location stored in a GPS device.",tooltipPosition:"top-end",color:h===v?"good":null,disabled:!j,onClick:function(){return y("setregime",{regime:v})}})})]}),(0,e.jsxs)(n.BJ,{mt:1,children:[(0,e.jsx)(n.BJ.Item,{width:8.5,color:"label",children:"Calibration:"}),(0,e.jsxs)(n.BJ.Item,{children:[p!=="None"&&(0,e.jsxs)(n.BJ,{fill:!0,children:[(0,e.jsx)(n.BJ.Item,{width:15.8,textAlign:"center",mt:.5,children:l&&(0,e.jsx)(n.az,{color:"average",children:"In Progress"})||(_||x>=3)&&(0,e.jsx)(n.az,{color:"good",children:"Optimal"})||(0,e.jsx)(n.az,{color:"bad",children:"Sub-Optimal"})}),(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(n.$n,{icon:"sync-alt",tooltip:"Calibrates the hub. Accidents may occur \\ when the calibration is not optimal.",tooltipPosition:"bottom-end",disabled:!!(_||l),onClick:function(){return y("calibrate")}})})]}),p==="None"&&(0,e.jsx)(n.az,{lineHeight:"21px",children:"No target set"})]})]})]}),!!(j&&c&&g&&h===v)&&(0,e.jsx)(n.wn,{title:"GPS",children:(0,e.jsxs)(n.BJ,{children:[(0,e.jsx)(n.$n,{content:"Upload GPS data",tooltip:"Loads the GPS data from the device.",icon:"upload",onClick:function(){return y("load")}}),(0,e.jsx)(n.$n,{content:"Eject",tooltip:"Ejects the GPS device",icon:"eject",onClick:function(){return y("eject")}})]})})]})})})})}},1093:(q,S,r)=>{"use strict";r.r(S),r.d(S,{AIFixer:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(b){var O=(0,s.Oc)(),y=O.act,u=O.data;if(u.occupant===null)return(0,e.jsx)(t.p8,{width:550,height:500,children:(0,e.jsx)(t.p8.Content,{children:(0,e.jsx)(n.wn,{fill:!0,title:"Stored AI",children:(0,e.jsx)(n.BJ,{fill:!0,children:(0,e.jsxs)(n.BJ.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.jsxs)(n.In.Stack,{style:{transform:"translate(-40px, -55px)"},children:[(0,e.jsx)(n.In,{name:"robot",size:5,color:"silver"}),(0,e.jsx)(n.In,{name:"slash",size:5,color:"red"})]}),(0,e.jsx)("br",{}),(0,e.jsx)("h3",{children:"No Artificial Intelligence detected."})]})})})})});var f=!0;(u.stat===2||u.stat===null)&&(f=!1);var m=null;u.integrity>=75?m="green":u.integrity>=25?m="yellow":m="red";var d=!0;return u.integrity>=100&&u.stat!==2&&(d=!1),(0,e.jsx)(t.p8,{children:(0,e.jsx)(t.p8.Content,{scrollable:!0,children:(0,e.jsxs)(n.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.wn,{title:u.occupant,children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Integrity",children:(0,e.jsx)(n.z2,{color:m,value:u.integrity/100})}),(0,e.jsx)(n.Ki.Item,{label:"Status",color:f?"green":"red",children:f?"Functional":"Non-Functional"})]})})}),(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(n.wn,{fill:!0,scrollable:!0,title:"Laws",children:!!u.has_laws&&(0,e.jsx)(n.az,{children:u.laws.map(function(v,_){return(0,e.jsx)(n.az,{inline:!0,children:v},_)})})||(0,e.jsx)(n.az,{color:"red",children:(0,e.jsx)("h3",{children:"No laws detected."})})})}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsxs)(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:u.wireless?"times":"check",color:u.wireless?"red":"green",onClick:function(){return y("wireless")},children:u.wireless?"Disabled":"Enabled"})}),(0,e.jsx)(n.Ki.Item,{label:"Subspace Transceiver",children:(0,e.jsx)(n.$n,{icon:u.radio?"times":"check",color:u.radio?"red":"green",onClick:function(){return y("radio")},children:u.radio?"Disabled":"Enabled"})}),(0,e.jsx)(n.Ki.Item,{label:"Start Repairs",children:(0,e.jsx)(n.$n,{icon:"wrench",disabled:!d||u.active,onClick:function(){return y("fix")},children:!d||u.active?"Already Repaired":"Repair"})})]}),(0,e.jsx)(n.az,{color:"green",lineHeight:2,children:u.active?"Reconstruction in progress.":""})]})})]})})})}},1131:(q,S,r)=>{"use strict";q.exports=r(8809)},1146:(q,S,r)=>{"use strict";r.r(S),r.d(S,{LootPanel:()=>f});var e=r(1131),s=r(360),n=r(7003),t=r(5180),a=r(3521),b=r(9450),O=r(230),y=r(9818),u=r(1808),f=function(m){for(var d=(0,s.Oc)(),v=d.act,_=d.data,l=_.contents,c=l===void 0?[]:l,h=_.searching,g={},p=0;p{"use strict";r.r(S),r.d(S,{SortButton:()=>a});var e=r(1131),s=r(8222),n=r(5180);function t(){return t=Object.assign||function(b){for(var O=1;O{"use strict";r.r(S),r.d(S,{OffsetType:()=>t,PreciseMode:()=>a,directionIcons:()=>O,directionNames:()=>y,listNames:()=>n,listTypes:()=>s,spawnLocationIcons:()=>b,spawnLocationOptions:()=>e});var e=["\u0422\u0435\u043A\u0443\u0449\u0430\u044F \u043B\u043E\u043A\u0430\u0446\u0438\u044F","\u0422\u0435\u043A\u0443\u0449\u0430\u044F \u043B\u043E\u043A\u0430\u0446\u0438\u044F (\u0434\u0435\u0441\u0430\u043D\u0442\u043D\u0430\u044F \u043A\u0430\u043F\u0441\u0443\u043B\u0430)","\u0412 \u0440\u0443\u043A\u0435 \u043A\u043E\u043D\u0442\u0440\u043E\u043B\u0438\u0440\u0443\u0435\u043C\u043E\u0433\u043E \u043C\u043E\u0431\u0430","\u0423 \u043E\u0442\u043C\u0435\u0447\u0435\u043D\u043D\u043E\u0433\u043E \u043E\u0431\u044A\u0435\u043A\u0442\u0430","\u0412 \u043E\u0442\u043C\u0435\u0447\u0435\u043D\u043D\u043E\u043C \u043E\u0431\u044A\u0435\u043A\u0442\u0435","\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u0430\u044F \u043B\u043E\u043A\u0430\u0446\u0438\u044F","\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u0430\u044F \u043B\u043E\u043A\u0430\u0446\u0438\u044F (\u0434\u0435\u0441\u0430\u043D\u0442\u043D\u0430\u044F \u043A\u0430\u043F\u0441\u0443\u043B\u0430)","\u0412 \u0440\u0443\u043A\u0435 \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u043C\u043E\u0431\u0430"],s={Objects:"cube",Turfs:"map",Mobs:"cat"},n={Objects:"\u041F\u043E\u0438\u0441\u043A \u043E\u0431\u044A\u0435\u043A\u0442\u043E\u0432",Turfs:"\u041F\u043E\u0438\u0441\u043A \u0442\u0443\u0440\u0444\u043E\u0432",Mobs:"\u041F\u043E\u0438\u0441\u043A \u043C\u043E\u0431\u043E\u0432"},t={ABSOLUTE:"\u0410\u0431\u0441\u043E\u043B\u044E\u0442\u043D\u044B\u0439 \u0441\u0434\u0432\u0438\u0433",RELATIVE:"\u041E\u0442\u043D\u043E\u0441\u0438\u0442\u0435\u043B\u044C\u043D\u044B\u0439 \u0441\u0434\u0432\u0438\u0433"},a={OFF:"\u0412\u044B\u043A\u043B",TARGET:"\u0426\u0435\u043B\u044C",MARK:"\u041C\u0435\u0442\u043A\u0430",COPY:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435"},b={"\u0422\u0435\u043A\u0443\u0449\u0430\u044F \u043B\u043E\u043A\u0430\u0446\u0438\u044F":"map-marker","\u0422\u0435\u043A\u0443\u0449\u0430\u044F \u043B\u043E\u043A\u0430\u0446\u0438\u044F (\u0434\u0435\u0441\u0430\u043D\u0442\u043D\u0430\u044F \u043A\u0430\u043F\u0441\u0443\u043B\u0430)":"parachute-box","\u0412 \u0440\u0443\u043A\u0435 \u043A\u043E\u043D\u0442\u0440\u043E\u043B\u0438\u0440\u0443\u0435\u043C\u043E\u0433\u043E \u043C\u043E\u0431\u0430":"hand-holding","\u0423 \u043E\u0442\u043C\u0435\u0447\u0435\u043D\u043D\u043E\u0433\u043E \u043E\u0431\u044A\u0435\u043A\u0442\u0430":"floppy-disk","\u0412 \u043E\u0442\u043C\u0435\u0447\u0435\u043D\u043D\u043E\u043C \u043E\u0431\u044A\u0435\u043A\u0442\u0435":"floppy-disk","\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u0430\u044F \u043B\u043E\u043A\u0430\u0446\u0438\u044F":"crosshairs","\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u0430\u044F \u043B\u043E\u043A\u0430\u0446\u0438\u044F (\u0434\u0435\u0441\u0430\u043D\u0442\u043D\u0430\u044F \u043A\u0430\u043F\u0441\u0443\u043B\u0430)":"crosshairs","\u0412 \u0440\u0443\u043A\u0435 \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u043C\u043E\u0431\u0430":"crosshairs"},O={1:"arrow-up",2:"arrow-down",4:"arrow-right",8:"arrow-left"},y={1:"\u0421\u0415\u0412\u0415\u0420",2:"\u042E\u0413",4:"\u0412\u041E\u0421\u0422\u041E\u041A",8:"\u0417\u0410\u041F\u0410\u0414"}},1187:(q,S,r)=>{"use strict";r.r(S),r.d(S,{AICard:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(b){var O=(0,s.Oc)(),y=O.act,u=O.data;if(u.has_ai){var f=null;return u.integrity>=75?f="green":u.integrity>=25?f="yellow":f="red",(0,e.jsx)(t.p8,{width:600,height:420,children:(0,e.jsx)(t.p8.Content,{scrollable:!0,children:(0,e.jsxs)(n.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(n.BJ.Item,{children:(0,e.jsxs)(n.wn,{title:u.name,children:[(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Integrity",children:(0,e.jsx)(n.z2,{color:f,value:u.integrity/100})})}),(0,e.jsx)(n.az,{color:"red",children:(0,e.jsx)("h2",{children:u.flushing?"Wipe of AI in progress...":""})})]})}),(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(n.wn,{fill:!0,scrollable:!0,title:"Laws",children:!!u.has_laws&&(0,e.jsx)(n.az,{children:u.laws.map(function(m,d){return(0,e.jsx)(n.az,{children:m},d)})})||(0,e.jsx)(n.az,{color:"red",children:(0,e.jsx)("h3",{children:"No laws detected."})})})}),(0,e.jsx)(n.BJ.Item,{children:(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,{width:10,icon:u.wireless?"check":"times",color:u.wireless?"green":"red",onClick:function(){return y("wireless")},children:u.wireless?"Enabled":"Disabled"})}),(0,e.jsx)(n.Ki.Item,{label:"Subspace Transceiver",children:(0,e.jsx)(n.$n,{width:10,icon:u.radio?"check":"times",color:u.radio?"green":"red",onClick:function(){return y("radio")},children:u.radio?"Enabled":"Disabled"})}),(0,e.jsx)(n.Ki.Item,{label:"Wipe",children:(0,e.jsx)(n.$n.Confirm,{width:10,icon:"trash-alt",confirmIcon:"trash-alt",disabled:u.flushing||u.integrity===0,confirmColor:"red",onClick:function(){return y("wipe")},children:"Wipe AI"})})]})})})]})})})}else return(0,e.jsx)(t.p8,{width:250,height:120,children:(0,e.jsx)(t.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."})})})})})}},1231:(q,S,r)=>{"use strict";r.r(S),r.d(S,{Sleeper:()=>f});var e=r(1131),s=r(9818),n=r(360),t=r(5180),a=r(3521),b=[["good","\u041D\u043E\u0440\u043C\u0430"],["average","\u041A\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435"],["bad","\u0417\u0430\u0444\u0438\u043A\u0441\u0438\u0440\u043E\u0432\u0430\u043D\u0430 \u0441\u043C\u0435\u0440\u0442\u044C"]],O=[["\u0423\u0434\u0443\u0448\u044C\u0435","oxyLoss"],["\u041E\u0442\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435","toxLoss"],["\u041C\u0435\u0445.","bruteLoss"],["\u0422\u0435\u0440\u043C.","fireLoss"]],y={average:[.25,.5],bad:[.5,1/0]},u=["bad","average","average","good","average","average","bad"],f=function(h){var g=(0,n.Oc)().data,p=g.hasOccupant,j=p?(0,e.jsx)(m,{}):(0,e.jsx)(c,{});return(0,e.jsx)(a.p8,{width:550,height:760,children:(0,e.jsx)(a.p8.Content,{scrollable:!0,children:(0,e.jsxs)(t.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(t.BJ.Item,{grow:!0,children:j}),(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(_,{})})]})})})},m=function(h){return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(d,{}),(0,e.jsx)(v,{}),(0,e.jsx)(l,{})]})},d=function(h){var g=(0,n.Oc)(),p=g.act,j=g.data,x=j.occupant,C=j.auto_eject_dead;return(0,e.jsx)(t.wn,{title:"\u041F\u0430\u0446\u0438\u0435\u043D\u0442",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.az,{color:"label",inline:!0,children:"\u0410\u0432\u0442\u043E-\u0438\u0437\u0432\u043B\u0435\u0447\u0435\u043D\u0438\u0435 \u0442\u0440\u0443\u043F\u043E\u0432:\xA0"}),(0,e.jsx)(t.$n,{icon:C?"toggle-on":"toggle-off",selected:C,onClick:function(){return p("auto_eject_dead_"+(C?"off":"on"))},children:C?"\u0414\u0430":"\u041D\u0435\u0442"}),(0,e.jsx)(t.$n,{icon:"user-slash",onClick:function(){return p("ejectify")},children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430"})]}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"\u0418\u043C\u044F",children:x.name}),(0,e.jsx)(t.Ki.Item,{label:"\u041E\u0446\u0435\u043D\u043A\u0430 \u0437\u0434\u043E\u0440\u043E\u0432\u044C\u044F",children:(0,e.jsx)(t.z2,{minValue:0,maxValue:x.maxHealth,value:x.health,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]},children:(0,s.LI)(x.health,0)})}),(0,e.jsx)(t.Ki.Item,{label:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",color:b[x.stat][0],children:b[x.stat][1]}),(0,e.jsx)(t.Ki.Item,{label:"\u0422\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430",children:(0,e.jsxs)(t.z2,{minValue:0,maxValue:x.maxTemp,value:x.bodyTemperature,color:u[x.temperatureSuitability+3],children:[(0,s.LI)(x.btCelsius,0),"\xB0C,",(0,s.LI)(x.btFaren,0),"\xB0F"]})}),!!x.hasBlood&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.Ki.Item,{label:"\u0423\u0440\u043E\u0432\u0435\u043D\u044C \u043A\u0440\u043E\u0432\u0438",children:(0,e.jsxs)(t.z2,{minValue:0,maxValue:x.bloodMax,value:x.bloodLevel,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[x.bloodPercent,"%, ",x.bloodLevel,"cl"]})}),(0,e.jsxs)(t.Ki.Item,{label:"\u041F\u0443\u043B\u044C\u0441",verticalAlign:"middle",children:[x.pulse," BPM"]})]})]})})},v=function(h){var g=(0,n.Oc)().data,p=g.occupant;return(0,e.jsx)(t.wn,{title:"\u041E\u0431\u0449\u0438\u0439 \u0443\u0440\u043E\u043D",children:(0,e.jsx)(t.Ki,{children:O.map(function(j,x){return(0,e.jsx)(t.Ki.Item,{label:j[0],children:(0,e.jsx)(t.z2,{minValue:0,maxValue:100,value:p[j[1]],ranges:y,children:(0,s.LI)(p[j[1]],0)},x)},x)})})})},_=function(h){var g=(0,n.Oc)(),p=g.act,j=g.data,x=j.hasOccupant,C=j.isBeakerLoaded,I=j.beakerMaxSpace,P=j.beakerFreeSpace,M=j.dialysis,B=M&&P>0;return(0,e.jsx)(t.wn,{title:"\u0414\u0438\u0430\u043B\u0438\u0437",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{disabled:!C||P<=0||!x,selected:B,icon:B?"toggle-on":"toggle-off",onClick:function(){return p("togglefilter")},children:B?"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u043E":"\u0412\u044B\u043A\u043B\u044E\u0447\u0435\u043D\u043E"}),(0,e.jsx)(t.$n,{disabled:!C,icon:"eject",onClick:function(){return p("removebeaker")},children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C"})]}),children:C?(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"\u041E\u0441\u0442\u0430\u0442\u043E\u0447\u043D\u044B\u0439 \u043E\u0431\u044A\u0451\u043C",children:(0,e.jsxs)(t.z2,{minValue:0,maxValue:I,value:P,ranges:{good:[.5,1/0],average:[.25,.5],bad:[-1/0,.25]},children:[P,"u"]})})}):(0,e.jsx)(t.az,{color:"label",children:"\u0401\u043C\u043A\u043E\u0441\u0442\u044C \u043D\u0435 \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0430."})})},l=function(h){var g=(0,n.Oc)(),p=g.act,j=g.data,x=j.occupant,C=j.chemicals,I=j.maxchem,P=j.amounts;return(0,e.jsx)(t.wn,{title:"\u041A\u0440\u043E\u0432\u043E\u0442\u043E\u043A \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430",children:C.map(function(M,B){var w="",T;return M.overdosing?(w="bad",T=(0,e.jsxs)(t.az,{color:"bad",children:[(0,e.jsx)(t.In,{name:"exclamation-circle"}),"\xA0 \u041F\u0435\u0440\u0435\u0434\u043E\u0437\u0438\u0440\u043E\u0432\u043A\u0430!"]})):M.od_warning&&(w="average",T=(0,e.jsxs)(t.az,{color:"average",children:[(0,e.jsx)(t.In,{name:"exclamation-triangle"}),"\xA0 \u0420\u0438\u0441\u043A \u043F\u0435\u0440\u0435\u0434\u043E\u0437\u0438\u0440\u043E\u0432\u043A\u0438"]})),(0,e.jsx)(t.az,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.jsx)(t.wn,{title:M.title,mx:"0",lineHeight:"18px",buttons:T,children:(0,e.jsxs)(t.BJ,{children:[(0,e.jsxs)(t.z2,{minValue:0,maxValue:I,value:M.occ_amount,color:w,mr:"0.5rem",children:[M.pretty_amount,"/",I,"u"]}),P.map(function(K,R){return(0,e.jsx)(t.$n,{disabled:!M.injectable||M.occ_amount+K>I||x.stat===2,icon:"syringe",tooltip:"\u0412\u0432\u0435\u0441\u0442\u0438 "+K+"u \u0432\u0435\u0449\u0435\u0441\u0442\u0432\u0430 "+M.title+" \u0432 \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430",mb:"0",height:"19px",onClick:function(){return p("chemical",{chemid:M.id,amount:K})},children:"\u0412\u0432\u0435\u0441\u0442\u0438 "+K+"u"},R)})]})})},B)})})},c=function(h){return(0,e.jsx)(t.wn,{fill:!0,textAlign:"center",children:(0,e.jsx)(t.BJ,{fill:!0,children:(0,e.jsxs)(t.BJ.Item,{grow:!0,align:"center",color:"label",children:[(0,e.jsx)(t.In,{name:"user-slash",mb:"0.5rem",size:5}),(0,e.jsx)("br",{}),"\u041F\u0430\u0446\u0438\u0435\u043D\u0442 \u0432\u043D\u0443\u0442\u0440\u0438 \u043D\u0435 \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D."]})})})}},1236:(q,S,r)=>{"use strict";r.r(S),r.d(S,{PodLaunch:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3500),a=function(b){var O=(0,s.Oc)(),y=O.act,u=O.data,f=u.giveLauncher,m=(0,t.useCompact)(),d=m[0];return(0,e.jsx)(n.$n,{fluid:!0,onClick:function(){return y("giveLauncher")},selected:f,textAlign:"center",tooltip:` \u0412\u044B \u0434\u043E\u043B\u0436\u043D\u044B \u0437\u043D\u0430\u0442\u044C, \u0447\u0442\u043E - \u041E\u0431 \u044D\u0442\u043E\u043C \u0433\u043E\u0432\u043E\u0440\u0438\u0442 \u041A\u043E\u0434\u0435\u043A\u0441 \u0410\u0441\u0442\u0430\u0440\u0442\u0435\u0441`,tooltipPosition:"top",children:(0,e.jsx)(n.az,{bold:!0,fontSize:"1.4em",lineHeight:d?1.5:3,children:"\u0417\u0410\u041F\u0423\u0421\u041A"})})}},1243:(q,S,r)=>{"use strict";r.d(S,{h:()=>b,l:()=>O});/** + \u041E\u0431 \u044D\u0442\u043E\u043C \u0433\u043E\u0432\u043E\u0440\u0438\u0442 \u041A\u043E\u0434\u0435\u043A\u0441 \u0410\u0441\u0442\u0430\u0440\u0442\u0435\u0441`,tooltipPosition:"top",children:(0,e.jsx)(n.az,{bold:!0,fontSize:"1.4em",lineHeight:d?1.5:3,children:"\u0417\u0410\u041F\u0423\u0421\u041A"})})}},1243:(q,S,r)=>{"use strict";r.d(S,{h:()=>O,l:()=>b});/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function e(y,u){(u==null||u>y.length)&&(u=y.length);for(var f=0,m=new Array(u);f=y.length?{done:!0}:{done:!1,value:y[m++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var t=[/v4shim/i],a={},O=function(y){return a[y]||y},b=function(y){return function(u){return function(f){var m=f.type,d=f.payload;if(m==="asset/stylesheet"){Byond.loadCss(d);return}if(m==="asset/mappings"){for(var v=function(){var c=l.value;if(t.some(function(p){return p.test(c)}))return"continue";var h=d[c],g=c.split(".").pop();a[c]=h,g==="css"&&Byond.loadCss(h),g==="js"&&Byond.loadJs(h)},_=n(Object.keys(d)),l;!(l=_()).done;)v();return}u(f)}}}},1263:(q,S,r)=>{"use strict";var e,s=r(2934);if(1)S.H=s.createRoot,e=s.hydrateRoot;else var n},1265:(q,S,r)=>{"use strict";r.r(S),r.d(S,{PAI:()=>y});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=r(9160),O=r(1840),b=function(u){var f;try{f=O("./"+u+".tsx")}catch(d){if(d.code==="MODULE_NOT_FOUND")return(0,a.z)("notFound",u);throw d}var m=f[u];return m||(0,a.z)("missingExport",u)},y=function(u){var f,m=(0,s.Oc)(),d=m.act,v=m.data,_=v.app_template,l=v.app_icon,c=v.app_title,h=!!((f=v.app_data)!=null&&f.has_back),g=b(_);return(0,e.jsx)(t.p8,{width:600,height:650,children:(0,e.jsx)(t.p8.Content,{scrollable:!0,children:(0,e.jsx)(n.wn,{title:(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.In,{name:l,mr:1}),c,_!=="pai_main_menu"&&(0,e.jsx)(n.$n,{ml:2,icon:"arrow-up",onClick:function(){return d("MASTER_back")},children:"Home"}),_!=="pai_main_menu"&&h&&(0,e.jsx)(n.$n,{ml:2,icon:"arrow-left",onClick:function(){return d("Back")},children:"Back"})]}),p:1,children:(0,e.jsx)(g,{})})})})}},1301:(q,S,r)=>{"use strict";r.r(S),r.d(S,{HandheldChemDispenser:()=>O});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=[1,5,10,20,30,50],O=function(u){return(0,e.jsx)(t.p8,{width:450,height:500,children:(0,e.jsx)(t.p8.Content,{children:(0,e.jsxs)(n.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(b,{}),(0,e.jsx)(y,{})]})})})},b=function(u){var f=(0,s.Oc)(),m=f.act,d=f.data,v=d.amount,_=d.energy,l=d.maxEnergy,c=d.mode;return(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.wn,{title:"\u041F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"\u042D\u043D\u0435\u0440\u0433\u0438\u044F",children:(0,e.jsxs)(n.z2,{value:_,minValue:0,maxValue:l,ranges:{good:[l*.5,1/0],average:[l*.25,l*.5],bad:[-1/0,l*.25]},children:[_," / ",l," \u0415\u0434\u0438\u043D\u0438\u0446"]})}),(0,e.jsx)(n.Ki.Item,{label:"\u041E\u0431\u044A\u0451\u043C \u0441\u0438\u043D\u0442\u0435\u0437\u0430",verticalAlign:"middle",children:(0,e.jsx)(n.BJ,{children:a.map(function(h,g){return(0,e.jsx)(n.BJ.Item,{grow:!0,width:"15%",children:(0,e.jsx)(n.$n,{fluid:!0,icon:"cog",selected:v===h,onClick:function(){return m("amount",{amount:h})},children:h})},g)})})}),(0,e.jsx)(n.Ki.Item,{label:"\u0420\u0435\u0436\u0438\u043C",verticalAlign:"middle",children:(0,e.jsxs)(n.BJ,{justify:"space-between",children:[(0,e.jsx)(n.$n,{icon:"cog",selected:c==="dispense",m:"0",width:"32%",onClick:function(){return m("mode",{mode:"dispense"})},children:"\u0421\u0438\u043D\u0442\u0435\u0437"}),(0,e.jsx)(n.$n,{icon:"cog",selected:c==="remove",m:"0",width:"32%",onClick:function(){return m("mode",{mode:"remove"})},children:"\u0423\u0434\u0430\u043B\u0435\u043D\u0438\u0435"}),(0,e.jsx)(n.$n,{icon:"cog",selected:c==="isolate",m:"0",width:"32%",onClick:function(){return m("mode",{mode:"isolate"})},children:"\u0418\u0437\u043E\u043B\u044F\u0446\u0438\u044F"})]})})]})})})},y=function(u){for(var f=(0,s.Oc)(),m=f.act,d=f.data,v=d.chemicals,_=v===void 0?[]:v,l=d.current_reagent,c=[],h=0;h<(_.length+1)%3;h++)c.push(!0);return(0,e.jsx)(n.BJ.Item,{grow:!0,height:"18%",children:(0,e.jsxs)(n.wn,{fill:!0,scrollable:!0,title:d.glass?"\u0412\u044B\u0431\u043E\u0440 \u043D\u0430\u043F\u0438\u0442\u043A\u0430":"\u0412\u044B\u0431\u043E\u0440 \u0440\u0435\u0430\u0433\u0435\u043D\u0442\u0430",children:[_.map(function(g,p){return(0,e.jsx)(n.$n,{width:"32%",icon:"arrow-circle-down",overflow:"hidden",selected:l===g.id,style:{marginLeft:"2px",textOverflow:"ellipsis"},onClick:function(){return m("dispense",{reagent:g.id})},children:g.title},p)}),c.map(function(g,p){return(0,e.jsx)(n.BJ.Item,{grow:1,basis:"25%"},p)})]})})}},1311:(q,S,r)=>{"use strict";r.r(S),r.d(S,{LootBox:()=>a});var e=r(1131),s=r(360),n=r(2337),t=r(5180),a=function(O){var b=(0,s.Oc)(),y=b.act,u=b.data,f=u.is_blind,m=0,d;"group"in O?(m=O.group.amount,d=O.group.item):d=O.item;var v=d.name?d.name:"???",_=(0,e.jsx)(t.$n,{p:0,fluid:!0,color:"transparent",onClick:function(l){return y("grab",{alt:l.altKey,ctrl:l.ctrlKey,uid:d.uid,shift:l.shiftKey})},onContextMenu:function(l){l.preventDefault(),y("grab",{right:!0,uid:d.uid})},children:(0,e.jsxs)(t.BJ,{children:[(0,e.jsx)(t.BJ.Item,{mb:-1,minWidth:"36px",minHeight:"42px",children:(0,e.jsx)(n.IconDisplay,{item:d})}),(0,e.jsx)(t.BJ.Item,{lineHeight:"34px",overflow:"hidden",style:{textOverflow:"ellipsis"},children:!f&&v}),(0,e.jsx)(t.BJ.Item,{lineHeight:"34px",pr:1,children:m>1&&"x"+m})]})});return _}},1364:(q,S,r)=>{"use strict";r.r(S),r.d(S,{pai_manifest:()=>a});var e=r(1131),s=r(360),n=r(3261);function t(){return t=Object.assign||function(O){for(var b=1;b{"use strict";r.r(S),r.d(S,{GhostHudPanel:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(b){var y=(0,s.Oc)().data,u=y.security,f=y.medical,m=y.pressure,d=y.diagnostic,v=y.ahud;return(0,e.jsx)(t.p8,{width:250,height:207,theme:"nologo",children:(0,e.jsx)(t.p8.Content,{children:(0,e.jsxs)(n.wn,{children:[(0,e.jsx)(O,{label:"Medical",type:"medical",is_active:f}),(0,e.jsx)(O,{label:"Security",type:"security",is_active:u}),(0,e.jsx)(O,{label:"Diagnostic",type:"diagnostic",is_active:d}),(0,e.jsx)(O,{label:"Pressure",type:"pressure",is_active:m}),(0,e.jsx)(n.cG,{}),(0,e.jsx)(O,{label:"Antag HUD",is_active:v,act_on:"ahud_on",act_off:"ahud_off"})]})})})},O=function(b){var y=(0,s.Oc)().act,u=b.label,f=b.type,m=f===void 0?null:f,d=b.is_active,v=b.act_on,_=v===void 0?"hud_on":v,l=b.act_off,c=l===void 0?"hud_off":l;return(0,e.jsxs)(n.so,{pt:.3,color:"label",children:[(0,e.jsx)(n.so.Item,{pl:.5,align:"center",width:"80%",children:u}),(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(n.$n,{mr:.6,icon:d?"toggle-on":"toggle-off",selected:d,onClick:function(){return y(d?c:_,{hud_type:m})},children:d?"On":"Off"})})]})}},1497:(q,S,r)=>{"use strict";r.r(S),r.d(S,{BotClean:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(O){var b=(0,s.Oc)(),y=b.act,u=b.data,f=u.locked,m=u.noaccess,d=u.maintpanel,v=u.on,_=u.autopatrol,l=u.canhack,c=u.emagged,h=u.remote_disabled,g=u.painame,p=u.cleanblood;return(0,e.jsx)(t.p8,{width:500,height:500,children:(0,e.jsxs)(t.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(n.IC,{children:["\u041F\u0440\u043E\u0432\u0435\u0434\u0438\u0442\u0435 \u0441\u0432\u043E\u0435\u0439 ID-\u043A\u0430\u0440\u0442\u043E\u0439, \u0447\u0442\u043E\u0431\u044B",f?"\u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u0442\u044C":"\u0437\u0430\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u0442\u044C"," \u044D\u0442\u043E\u0442 \u0438\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441."]}),(0,e.jsx)(n.wn,{title:"\u041E\u0441\u043D\u043E\u0432\u043D\u044B\u0435 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",children:(0,e.jsx)(n.$n,{icon:v?"power-off":"times",selected:v,disabled:m,onClick:function(){return y("power")},children:v?"\u0412\u043A\u043B\u044E\u0447\u0451\u043D":"\u0412\u044B\u043A\u043B\u044E\u0447\u0435\u043D"})}),(0,e.jsx)(n.Ki.Item,{label:"\u0420\u0435\u0436\u0438\u043C \u043F\u0430\u0442\u0440\u0443\u043B\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F",children:(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:_,disabled:m,onClick:function(){return y("autopatrol")},children:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u043F\u0430\u0442\u0440\u0443\u043B\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435"})}),!!d&&(0,e.jsx)(n.Ki.Item,{label:"\u041F\u0430\u043D\u0435\u043B\u044C \u0442\u0435\u0445\u043E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u043D\u0438\u044F",children:(0,e.jsx)(n.az,{color:"bad",children:"\u041F\u0430\u043D\u0435\u043B\u044C \u043E\u0442\u043A\u0440\u044B\u0442\u0430"})}),(0,e.jsx)(n.Ki.Item,{label:"\u041F\u0440\u043E\u0442\u043E\u043A\u043E\u043B\u044B \u0431\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u0438",children:(0,e.jsx)(n.az,{color:c?"bad":"good",children:c?"\u041E\u0442\u043A\u043B\u044E\u0447\u0435\u043D\u044B":"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u044B"})}),!!l&&(0,e.jsx)(n.Ki.Item,{label:"\u0412\u0437\u043B\u043E\u043C",children:(0,e.jsx)(n.$n,{icon:"terminal",disabled:m,color:"bad",onClick:function(){return y("hack")},children:c?"\u0412\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u043F\u0440\u043E\u0442\u043E\u043A\u043E\u043B\u044B \u0431\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u0438":"\u0412\u0437\u043B\u043E\u043C\u0430\u0442\u044C"})}),(0,e.jsx)(n.Ki.Item,{label:"\u0423\u0434\u0430\u043B\u0451\u043D\u043D\u044B\u0439 \u0434\u043E\u0441\u0442\u0443\u043F",children:(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:!h,disabled:m,onClick:function(){return y("disableremote")},children:"\u0423\u0434\u0430\u043B\u0451\u043D\u043D\u044B\u0439 \u0434\u043E\u0441\u0442\u0443\u043F \u0441\u043E \u0441\u0442\u043E\u0440\u043E\u043D\u044B \u0418\u0418"})})]})}),(0,e.jsx)(n.wn,{title:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u043F\u0440\u043E\u0446\u0435\u0441\u0441\u0430 \u0443\u0431\u043E\u0440\u043A\u0438",children:(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:p,disabled:m,onClick:function(){return y("blood")},children:"\u0423\u0431\u0438\u0440\u0430\u0442\u044C \u043A\u0440\u043E\u0432\u044C"})}),g&&(0,e.jsx)(n.wn,{title:"\u041F\u0418\u0418",children:(0,e.jsx)(n.$n,{fluid:!0,icon:"eject",disabled:m,onClick:function(){return y("ejectpai")},children:g})})]})})}},1503:(q,S,r)=>{"use strict";r.r(S),r.d(S,{KeyComboModal:()=>v});var e=r(1131),s=r(7003),n=r(5180),t=r(1808),a=r(360),O=r(3521),b=r(30),y=r(3384),u=function(_){return _.key!==t._.Alt&&_.key!==t._.Control&&_.key!==t._.Shift&&!(0,t.KL)(_.key)},f={DEL:"Delete",DOWN:"South",END:"Southwest",HOME:"Northwest",INSERT:"Insert",LEFT:"West",PAGEDOWN:"Southeast",PAGEUP:"Northeast",RIGHT:"East",SPACEBAR:"Space"," ":"Space",UP:"North"},m=3,d=function(_){var l="";if(_.altKey&&(l+="Alt"),_.ctrlKey&&(l+="Ctrl"),_.shiftKey&&(l+="Shift"),_.location===m&&(l+="Numpad"),u(_)){var c=_.key.toUpperCase();l+=f[c]||c}return l},v=function(_){var l=(0,a.Oc)(),c=l.act,h=l.data,g=h.init_value,p=h.large_buttons,j=h.message,x=j===void 0?"":j,C=h.title,I=h.timeout,P=(0,s.useState)(g),M=P[0],B=P[1],w=(0,s.useState)(!0),T=w[0],K=w[1],R=(0,s.useRef)(null);(0,s.useEffect)(function(){var W;(W=R.current)==null||W.focus()},[T]);var U=function(W){if((0,t.KL)(W.key)){W.preventDefault(),c("cancel");return}if(!T){W.key===t._.Enter&&(W.preventDefault(),c("submit",{entry:M}));return}if(W.preventDefault(),u(W)){var N=d(W);B(N),K(!1);return}},F=function(){B(g),K(!0)},$=130+(x.length>30?Math.ceil(x.length/3):0)+(x.length&&p?5:0);return(0,e.jsxs)(O.p8,{title:C,width:240,height:$,children:[I&&(0,e.jsx)(y.Loader,{value:I}),(0,e.jsx)(O.p8.Content,{children:(0,e.jsx)("div",{ref:R,tabIndex:0,onKeyDown:U,style:{width:"100%",height:"100%",outline:"none"},children:(0,e.jsx)(n.wn,{fill:!0,children:(0,e.jsxs)(n.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(n.az,{color:"label",children:x})}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.$n,{disabled:T,fluid:!0,textAlign:"center",onClick:F,children:T?"Awaiting input...":M})}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(b.InputButtons,{input:M})})]})})})})]})}},1508:(q,S,r)=>{"use strict";r.r(S),r.d(S,{AirAlarm:()=>b});var e=r(1131),s=r(360),n=r(5180),t=r(7003),a=r(3521),O=r(6186),b=function(c){var h=(0,s.Oc)().data,g=h.locked,p=(0,t.useState)(0),j=p[0],x=p[1];return(0,e.jsx)(a.p8,{width:570,height:g?310:755,children:(0,e.jsxs)(a.p8.Content,{scrollable:!0,children:[(0,e.jsx)(O.InterfaceLockNoticeBox,{}),(0,e.jsx)(u,{}),!g&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(f,{tabIndex:j,setTabIndex:x}),(0,e.jsx)(m,{tabIndex:j})]})]})})},y=function(c){return c===0?"green":c===1?"orange":"red"},u=function(c){var h=(0,s.Oc)(),g=h.act,p=h.data,j=p.air,x=p.mode,C=p.atmos_alarm,I=p.locked,P=p.alarmActivated,M=p.rcon,B=p.target_temp,w;return j.danger.overall===0?C?w="Caution: Atmos alert in area":w="Optimal":j.danger.overall===1?w="Caution":w="DANGER: Internals Required",(0,e.jsx)(n.wn,{title:"Air Status",children:j?(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Pressure",children:(0,e.jsxs)(n.az,{color:y(j.danger.pressure),children:[(0,e.jsx)(n.zv,{value:j.pressure})," kPa",!I&&(0,e.jsxs)(e.Fragment,{children:["\xA0",(0,e.jsx)(n.$n,{selected:x===3,icon:"exclamation-triangle",onClick:function(){return g("mode",{mode:x===3?1:3})},children:x===3?"Deactivate Panic Siphon":"Activate Panic Siphon"})]})]})}),(0,e.jsx)(n.Ki.Item,{label:"Oxygen",children:(0,e.jsx)(n.z2,{value:j.contents.oxygen/100,fractionDigits:1,color:y(j.danger.oxygen)})}),(0,e.jsx)(n.Ki.Item,{label:"Nitrogen",children:(0,e.jsx)(n.z2,{value:j.contents.nitrogen/100,fractionDigits:1,color:y(j.danger.nitrogen)})}),(0,e.jsx)(n.Ki.Item,{label:"Carbon Dioxide",children:(0,e.jsx)(n.z2,{value:j.contents.carbon_dioxide/100,fractionDigits:1,color:y(j.danger.carbon_dioxide)})}),(0,e.jsx)(n.Ki.Item,{label:"Toxins",children:(0,e.jsx)(n.z2,{value:j.contents.plasma/100,fractionDigits:1,color:y(j.danger.plasma)})}),j.contents.nitrous_oxide>.1&&(0,e.jsx)(n.Ki.Item,{label:"Nitrous Oxide",children:(0,e.jsx)(n.z2,{value:j.contents.nitrous_oxide/100,fractionDigits:1,color:y(j.danger.nitrous_oxide)})}),j.contents.hydrogen>.1&&(0,e.jsx)(n.Ki.Item,{label:"Hydrogen",children:(0,e.jsx)(n.z2,{value:j.contents.hydrogen/100,fractionDigits:1,color:y(j.danger.hydrogen)})}),j.contents.water_vapor>.1&&(0,e.jsx)(n.Ki.Item,{label:"Water Vapor",children:(0,e.jsx)(n.z2,{value:j.contents.water_vapor/100,fractionDigits:1,color:y(j.danger.water_vapor)})}),j.contents.other>.1&&(0,e.jsx)(n.Ki.Item,{label:"Other",children:(0,e.jsx)(n.z2,{value:j.contents.other/100,fractionDigits:1,color:y(j.danger.other)})}),(0,e.jsx)(n.Ki.Item,{label:"Temperature",children:(0,e.jsxs)(n.az,{color:y(j.danger.temperature),children:[(0,e.jsx)(n.zv,{value:j.temperature})," K /"," ",(0,e.jsx)(n.zv,{value:j.temperature_c})," C\xA0",(0,e.jsx)(n.$n,{icon:"thermometer-full",onClick:function(){return g("temperature")},children:B+" C"}),(0,e.jsx)(n.$n,{selected:j.thermostat_state,icon:"power-off",onClick:function(){return g("thermostat_state")},children:j.thermostat_state?"On":"Off"})]})}),(0,e.jsx)(n.Ki.Item,{label:"Local Status",children:(0,e.jsxs)(n.az,{color:y(j.danger.overall),children:[w,!I&&(0,e.jsxs)(e.Fragment,{children:["\xA0",(0,e.jsx)(n.$n,{selected:P,onClick:function(){return g(P?"atmos_reset":"atmos_alarm")},children:P?"Reset Alarm":"Activate Alarm"})]})]})}),(0,e.jsxs)(n.Ki.Item,{label:"Remote Control Settings",children:[(0,e.jsx)(n.$n,{selected:M===1,onClick:function(){return g("set_rcon",{rcon:1})},children:"Off"}),(0,e.jsx)(n.$n,{selected:M===2,onClick:function(){return g("set_rcon",{rcon:2})},children:"Auto"}),(0,e.jsx)(n.$n,{selected:M===3,onClick:function(){return g("set_rcon",{rcon:3})},children:"On"})]})]}):(0,e.jsx)(n.az,{children:"Unable to acquire air sample!"})})},f=function(c){var h=c.tabIndex,g=c.setTabIndex;return(0,e.jsxs)(n.tU,{children:[(0,e.jsxs)(n.tU.Tab,{selected:h===0,onClick:function(){return g(0)},children:[(0,e.jsx)(n.In,{name:"sign-out-alt"})," Vent Control"]},"Vents"),(0,e.jsxs)(n.tU.Tab,{selected:h===1,onClick:function(){return g(1)},children:[(0,e.jsx)(n.In,{name:"sign-in-alt"})," Scrubber Control"]},"Scrubbers"),(0,e.jsxs)(n.tU.Tab,{selected:h===2,onClick:function(){return g(2)},children:[(0,e.jsx)(n.In,{name:"cog"})," Mode"]},"Mode"),(0,e.jsxs)(n.tU.Tab,{selected:h===3,onClick:function(){return g(3)},children:[(0,e.jsx)(n.In,{name:"tachometer-alt"})," Thresholds"]},"Thresholds")]})},m=function(c){var h=c.tabIndex;switch(h){case 0:return(0,e.jsx)(d,{});case 1:return(0,e.jsx)(v,{});case 2:return(0,e.jsx)(_,{});case 3:return(0,e.jsx)(l,{});default:return"WE SHOULDN'T BE HERE!"}},d=function(c){var h=(0,s.Oc)(),g=h.act,p=h.data,j=p.vents;return j.map(function(x){return(0,e.jsx)(n.wn,{title:x.name,children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Status",children:[(0,e.jsx)(n.$n,{selected:x.power,icon:"power-off",onClick:function(){return g("command",{cmd:"power",val:x.power?0:1,id_tag:x.id_tag})},children:x.power?"On":"Off"}),(0,e.jsx)(n.$n,{icon:x.direction==="release"?"sign-out-alt":"sign-in-alt",onClick:function(){return g("command",{cmd:"direction",val:x.direction==="release"?0:1,id_tag:x.id_tag})},children:x.direction==="release"?"Blowing":"Siphoning"})]}),(0,e.jsxs)(n.Ki.Item,{label:"Pressure Checks",children:[(0,e.jsx)(n.$n,{selected:x.checks===1,onClick:function(){return g("command",{cmd:"checks",val:1,id_tag:x.id_tag})},children:"External"}),(0,e.jsx)(n.$n,{selected:x.checks===2,onClick:function(){return g("command",{cmd:"checks",val:2,id_tag:x.id_tag})},children:"Internal"})]}),(0,e.jsxs)(n.Ki.Item,{label:"External Pressure Target",children:[(0,e.jsx)(n.zv,{value:x.external})," kPa\xA0",(0,e.jsx)(n.$n,{icon:"cog",onClick:function(){return g("command",{cmd:"set_external_pressure",id_tag:x.id_tag})},children:"Set"}),(0,e.jsx)(n.$n,{icon:"redo-alt",onClick:function(){return g("command",{cmd:"set_external_pressure",val:101.325,id_tag:x.id_tag})},children:"Reset"})]})]})},x.name)})},v=function(c){var h=(0,s.Oc)(),g=h.act,p=h.data,j=p.scrubbers;return j.map(function(x){return(0,e.jsx)(n.wn,{title:x.name,children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Status",children:[(0,e.jsx)(n.$n,{selected:x.power,icon:"power-off",onClick:function(){return g("command",{cmd:"power",val:x.power?0:1,id_tag:x.id_tag})},children:x.power?"On":"Off"}),(0,e.jsx)(n.$n,{icon:x.scrubbing?"filter":"sign-in-alt",onClick:function(){return g("command",{cmd:"scrubbing",val:x.scrubbing?0:1,id_tag:x.id_tag})},children:x.scrubbing?"Scrubbing":"Siphoning"})]}),(0,e.jsx)(n.Ki.Item,{label:"Range",children:(0,e.jsx)(n.$n,{selected:x.widenet,icon:"expand-arrows-alt",onClick:function(){return g("command",{cmd:"widenet",val:x.widenet?0:1,id_tag:x.id_tag})},children:x.widenet?"Extended":"Normal"})}),(0,e.jsxs)(n.Ki.Item,{label:"Filtering",children:[(0,e.jsx)(n.$n,{selected:x.filter_co2,onClick:function(){return g("command",{cmd:"scrub_co2",val:x.filter_co2?0:1,id_tag:x.id_tag})},children:"Carbon Dioxide"}),(0,e.jsx)(n.$n,{selected:x.filter_toxins,onClick:function(){return g("command",{cmd:"scrub_toxins",val:x.filter_toxins?0:1,id_tag:x.id_tag})},children:"Plasma"}),(0,e.jsx)(n.$n,{selected:x.filter_n2o,onClick:function(){return g("command",{cmd:"scrub_n2o",val:x.filter_n2o?0:1,id_tag:x.id_tag})},children:"Nitrous Oxide"}),(0,e.jsx)(n.$n,{selected:x.filter_o2,onClick:function(){return g("command",{cmd:"scrub_o2",val:x.filter_o2?0:1,id_tag:x.id_tag})},children:"Oxygen"}),(0,e.jsx)(n.$n,{selected:x.filter_n2,onClick:function(){return g("command",{cmd:"scrub_n2",val:x.filter_n2?0:1,id_tag:x.id_tag})},children:"Nitrogen"}),(0,e.jsx)(n.$n,{selected:x.filter_h2,onClick:function(){return g("command",{cmd:"scrub_h2",val:!x.filter_h2,id_tag:x.id_tag})},children:"Hydrogen"}),(0,e.jsx)(n.$n,{selected:x.filter_h2o,onClick:function(){return g("command",{cmd:"scrub_h2o",val:!x.filter_h2o,id_tag:x.id_tag})},children:"Water Vapor"})]})]})},x.name)})},_=function(c){var h=(0,s.Oc)(),g=h.act,p=h.data,j=p.modes,x=p.presets,C=p.emagged,I=p.mode,P=p.preset;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.wn,{title:"System Mode",children:(0,e.jsx)(n.XI,{style:{borderCollapse:"separate",borderSpacing:"0 1px"},children:Object.keys(j).map(function(M){var B=j[M];if(!B.emagonly||C)return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{textAlign:"right",width:1,children:(0,e.jsx)(n.$n,{icon:"cog",selected:B.id===I,onClick:function(){return g("mode",{mode:B.id})},children:B.name})}),(0,e.jsx)(n.XI.Cell,{children:B.desc})]},B.name)})})}),(0,e.jsxs)(n.wn,{title:"System Presets",children:[(0,e.jsx)(n.az,{italic:!0,children:"After making a selection, the system will automatically cycle in order to remove contaminants."}),(0,e.jsx)(n.XI,{mt:1,style:{borderCollapse:"separate",borderSpacing:"0 1px"},children:x.map(function(M){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{textAlign:"right",width:1,children:(0,e.jsx)(n.$n,{icon:"cog",selected:M.id===P,onClick:function(){return g("preset",{preset:M.id})},children:M.name})}),(0,e.jsx)(n.XI.Cell,{children:M.desc})]},M.name)})})]})]})},l=function(c){var h=(0,s.Oc)(),g=h.act,p=h.data,j=p.thresholds;return(0,e.jsx)(n.wn,{title:"Alarm Thresholds",children:(0,e.jsxs)(n.XI,{style:{borderCollapse:"separate",borderSpacing:"0 5px"},children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{width:"20%",children:"Value"}),(0,e.jsx)(n.XI.Cell,{color:"red",width:"20%",children:"Danger Min"}),(0,e.jsx)(n.XI.Cell,{color:"orange",width:"20%",children:"Warning Min"}),(0,e.jsx)(n.XI.Cell,{color:"orange",width:"20%",children:"Warning Max"}),(0,e.jsx)(n.XI.Cell,{color:"red",width:"20%",children:"Danger Max"})]}),j.map(function(x){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{children:x.name}),x.settings.map(function(C){return(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{onClick:function(){return g("command",{cmd:"set_threshold",env:C.env,var:C.val})},children:C.selected===-1?"Off":C.selected})},C.val)})]},x.name)})]})})}},1530:(q,S,r)=>{"use strict";r.r(S),r.d(S,{LoginInfo:()=>t});var e=r(1131),s=r(360),n=r(5180),t=function(a){var O=(0,s.Oc)(),b=O.act,y=O.data,u=y.loginState;if(y)return(0,e.jsx)(n.IC,{info:!0,children:(0,e.jsxs)(n.BJ,{children:[(0,e.jsxs)(n.BJ.Item,{grow:!0,mt:.5,children:["\u0412\u044B\u043F\u043E\u043B\u043D\u0435\u043D \u0432\u0445\u043E\u0434 \u0432 \u0441\u0438\u0441\u0442\u0435\u043C\u0443 \u043A\u0430\u043A: ",u.name," (",u.rank,")"]}),(0,e.jsxs)(n.BJ.Item,{children:[(0,e.jsx)(n.$n,{icon:"sign-out-alt",color:"good",onClick:function(){return b("login_logout")},children:"\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u0441\u0438\u0441\u0442\u0435\u043C\u044B"}),(0,e.jsx)(n.$n,{icon:"eject",disabled:!u.id,color:"good",onClick:function(){return b("login_eject")},children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C ID"})]})]})})}},1632:(q,S,r)=>{"use strict";r.r(S),r.d(S,{CargoConsole:()=>u});var e=r(1131),s=r(5070),n=r(1859),t=r(360),a=r(7003),O=r(5180),b=r(3521),y=r(9845),u=function(_){var l=(0,a.useState)(null),c=l[0],h=l[1],g=(0,a.useState)(null),p=g[0],j=g[1];return(0,e.jsx)(b.p8,{width:1e3,height:800,theme:"cargo",children:(0,e.jsx)(b.p8.Content,{children:(0,e.jsxs)(O.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(f,{contentsModal:c,setContentsModal:h,contentsModalTitle:p,setContentsModalTitle:j}),(0,e.jsx)(m,{}),(0,e.jsx)(d,{setContentsModal:h,setContentsModalTitle:j}),(0,e.jsx)(v,{})]})})})},f=function(_){var l=_.contentsModal,c=_.setContentsModal,h=_.contentsModalTitle,g=_.setContentsModalTitle;if(l!==null&&h!==null)return(0,e.jsxs)(O.aF,{maxWidth:"75%",width:window.innerWidth+"px",maxHeight:window.innerHeight*.75+"px",mx:"auto",children:[(0,e.jsx)(O.az,{width:"100%",bold:!0,children:(0,e.jsxs)("h1",{children:["\u0421\u043E\u0434\u0435\u0440\u0436\u0438\u043C\u043E\u0435 ",h,":"]})}),(0,e.jsx)(O.az,{children:l.map(function(p){return(0,e.jsxs)(O.az,{children:["- ",p]},p)})}),(0,e.jsx)(O.az,{m:2,children:(0,e.jsx)(O.$n,{onClick:function(){c(null),g(null)},children:"Close"})})]})},m=function(_){var l=(0,t.Oc)(),c=l.act,h=l.data,g=h.is_public,p=h.points,j=h.credits,x=h.timeleft,C=h.moving,I=h.at_station,P,M;return!C&&!I?(P="\u041D\u0435 \u043D\u0430 \u043E\u0431\u044A\u0435\u043A\u0442\u0435",M="\u0412\u044B\u0437\u0432\u0430\u0442\u044C \u0448\u0430\u0442\u0442\u043B"):!C&&I?(P="\u041F\u0440\u0438\u0441\u0442\u044B\u043A\u043E\u0432\u0430\u043D \u043A \u043E\u0431\u044A\u0435\u043A\u0442\u0443",M="\u0412\u0435\u0440\u043D\u0443\u0442\u044C \u0448\u0430\u0442\u0442\u043B"):C&&(M="\u0412 \u043F\u0443\u0442\u0438",P="\u0412 \u043F\u0443\u0442\u0438 \u043A \u043E\u0431\u044A\u0435\u043A\u0442\u0443 (\u043F\u0440\u0438\u043B\u0435\u0442\u0438\u0442 \u0447\u0435\u0440\u0435\u0437 "+x+" \u043C\u0438\u043D\u0443\u0442"+(0,y.bl)(x,"\u0443","\u044B","")+")"),(0,e.jsx)(O.BJ.Item,{children:(0,e.jsx)(O.wn,{title:"\u0421\u0442\u0430\u0442\u0443\u0441",children:(0,e.jsxs)(O.Ki,{children:[(0,e.jsx)(O.Ki.Item,{label:"\u041E\u0447\u043A\u0438 \u0441\u043D\u0430\u0431\u0436\u0435\u043D\u0438\u044F",children:p}),(0,e.jsx)(O.Ki.Item,{label:"\u041A\u0440\u0435\u0434\u0438\u0442\u044B",children:j}),(0,e.jsx)(O.Ki.Item,{label:"\u0421\u0442\u0430\u0442\u0443\u0441 \u0448\u0430\u0442\u0442\u043B\u0430",children:P}),!g&&(0,e.jsxs)(O.Ki.Item,{label:"\u0423\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435",children:[(0,e.jsx)(O.$n,{disabled:C,onClick:function(){return c("moveShuttle")},children:M}),(0,e.jsx)(O.$n,{onClick:function(){return c("showMessages")},children:"\u041F\u043E\u0441\u043C\u043E\u0442\u0440\u0435\u0442\u044C \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u044F \u0426\u041A"})]})]})})})},d=function(_){var l=(0,t.Oc)(),c=l.act,h=l.data,g=h.categories,p=h.supply_packs,j=(0,t.QY)("category","\u0427\u0440\u0435\u0437\u0432\u044B\u0447\u0430\u0439\u043D\u044B\u0435 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438"),x=j[0],C=j[1],I=(0,t.QY)("search_text",""),P=I[0],M=I[1],B=_.setContentsModal,w=_.setContentsModalTitle,T=(0,y.XZ)(P,function(U){return U.name}),K=(0,s.L)([function(U){return(0,n.pb)(U,function(F){return F.cat===((0,n.pb)(g,function($){return $.name===x})[0].category||P)})},function(U){return P?(0,n.pb)(U,T):U},function(U){return(0,n.Ul)(U,function(F){return F.name.toLowerCase()})}])(p),R="\u041F\u0435\u0440\u0435\u0447\u0435\u043D\u044C \u0433\u0440\u0443\u0437\u043E\u0432 \u0434\u043B\u044F \u0437\u0430\u043A\u0430\u0437\u0430";return P?R='\u0420\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u044B \u043F\u043E\u0438\u0441\u043A\u0430 "'+P+'":':x&&(R='\u041F\u0440\u043E\u0441\u043C\u043E\u0442\u0440 \u043A\u0430\u0442\u0435\u0433\u043E\u0440\u0438\u0438 "'+x+'"'),(0,e.jsx)(O.BJ.Item,{children:(0,e.jsxs)(O.wn,{title:R,buttons:(0,e.jsx)(O.ms,{width:"190px",options:g.map(function(U){return U.name}),selected:x,onSelected:function(U){return C(U)}}),children:[(0,e.jsx)(O.pd,{fluid:!0,placeholder:"\u041F\u043E\u0438\u0441\u043A",expensive:!0,onChange:M,mb:1}),(0,e.jsx)(O.az,{maxHeight:25,overflowY:"auto",overflowX:"hidden",children:(0,e.jsx)(O.XI,{m:"0.5rem",children:K.map(function(U){return(0,e.jsxs)(O.XI.Row,{children:[(0,e.jsx)(O.XI.Cell,{bold:!0,children:(0,e.jsxs)(O.az,{color:U.is_enough_techs?U.has_sale?"good":"default":"red",children:[U.name," (",U.cost?U.cost+" \u043E\u0447\u043A"+(0,y.bl)(U.cost,"\u043E","\u0430","\u043E\u0432"):"",U.creditsCost&&U.cost?" ":"",U.creditsCost?U.creditsCost+" \u041A\u0440\u0435\u0434\u0438\u0442"+(0,y.bl)(U.creditsCost,"","\u0430","\u043E\u0432"):"",")"]})}),(0,e.jsxs)(O.XI.Cell,{textAlign:"right",pr:1,children:[(0,e.jsx)(O.$n,{icon:"shopping-cart",onClick:function(){return c("order",{crate:U.ref,multiple:0})},children:"\u0417\u0430\u043A\u0430\u0437\u0430\u0442\u044C 1"}),(0,e.jsx)(O.$n,{icon:"cart-plus",onClick:function(){return c("order",{crate:U.ref,multiple:1})},children:"\u0417\u0430\u043A\u0430\u0437\u0430\u0442\u044C \u043D\u0435\u0441\u043A\u043E\u043B\u044C\u043A\u043E"}),(0,e.jsx)(O.$n,{icon:"search",onClick:function(){B(U.contents),w(U.name)},children:"\u0421\u043E\u0434\u0435\u0440\u0436\u0438\u043C\u043E\u0435"})]})]},U.name)})})})]})})},v=function(_){var l=(0,t.Oc)(),c=l.act,h=l.data,g=h.requests,p=h.canapprove,j=h.orders;return(0,e.jsxs)(O.wn,{fill:!0,scrollable:!0,title:"Details",children:[(0,e.jsx)(O.az,{bold:!0,children:"\u0417\u0430\u043F\u0440\u043E\u0441\u044B"}),(0,e.jsx)(O.XI,{m:"0.5rem",children:g.map(function(x){return(0,e.jsxs)(O.XI.Row,{children:[(0,e.jsxs)(O.XI.Cell,{children:[(0,e.jsxs)(O.az,{children:["- \u2116",x.ordernum,": ",x.supply_type," \u0434\u043B\u044F ",(0,e.jsx)("b",{children:x.orderedby})]}),(0,e.jsxs)(O.az,{italic:!0,children:["\u041F\u0440\u0438\u0447\u0438\u043D\u0430: ",x.comment]}),(0,e.jsxs)(O.az,{italic:!0,children:["\u0422\u0440\u0435\u0431\u0443\u0435\u043C\u044B\u0435 \u0442\u0435\u0445. \u0443\u0440\u043E\u0432\u043D\u0438: ",x.pack_techs]})]}),(0,e.jsxs)(O.BJ.Item,{textAlign:"right",children:[(0,e.jsx)(O.$n,{color:"green",disabled:!p,onClick:function(){return c("approve",{ordernum:x.ordernum})},children:"\u041E\u0434\u043E\u0431\u0440\u0438\u0442\u044C"}),(0,e.jsx)(O.$n,{color:"red",onClick:function(){return c("deny",{ordernum:x.ordernum})},children:"\u041E\u0442\u043A\u0430\u0437\u0430\u0442\u044C"})]})]},x.ordernum)})}),(0,e.jsx)(O.az,{bold:!0,children:"\u0423\u0442\u0432\u0435\u0440\u0436\u0434\u0451\u043D\u043D\u044B\u0435 \u0437\u0430\u043A\u0430\u0437\u044B"}),(0,e.jsx)(O.XI,{m:"0.5rem",children:j.map(function(x){return(0,e.jsx)(O.XI.Row,{children:(0,e.jsxs)(O.XI.Cell,{children:[(0,e.jsxs)(O.az,{children:["- \u2116",x.ordernum,": ",x.supply_type," \u0434\u043B\u044F ",(0,e.jsx)("b",{children:x.orderedby})]}),(0,e.jsxs)(O.az,{italic:!0,children:["\u041F\u0440\u0438\u0447\u0438\u043D\u0430: ",x.comment]})]})},x.ordernum)})})]})}},1657:(q,S,r)=>{"use strict";r.r(S),r.d(S,{RoboQuest:()=>O});var e=r(1131),s=r(7003),n=r(360),t=r(5180),a=r(3521),O=function(b){var y=(0,n.Oc)(),u=y.act,f=y.data,m=f.hasID,d=f.name,v=f.questInfo,_=f.hasTask,l=f.canCheck,c=f.canSend,h=f.checkMessage,g=f.style,p=f.cooldown,j=f.instant_teleport,x=f.shopItems,C=f.points,I=(0,s.useState)(!1),P=I[0],M=I[1],B={medical:"blue",working:"brown",security:"red",working_medical:"olive",medical_security:"violet",working_medical_security:"grey"};return(0,e.jsx)(a.p8,{theme:g,width:1e3,height:540,children:(0,e.jsx)(a.p8.Content,{children:(0,e.jsxs)(t.BJ,{fill:!0,children:[(0,e.jsxs)(t.BJ.Item,{basis:40,children:[!P&&(0,e.jsxs)(t.wn,{fill:!0,title:"\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0439 \u0437\u0430\u043A\u0430\u0437",buttons:(0,e.jsx)(t.$n,{icon:"search",tooltipPosition:"bottom",tooltip:"\u041F\u0440\u043E\u0432\u0435\u0440\u043A\u0430 \u044D\u043A\u0437\u043E\u043A\u043E\u0441\u0442\u044E\u043C\u0430 \u043D\u0430 \u043D\u0430\u043B\u0438\u0447\u0438\u0435 \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u044B\u0445 \u0434\u043B\u044F \u0437\u0430\u043A\u0430\u0437\u0430 \u043C\u043E\u0434\u0443\u043B\u0435\u0439.",disabled:!m||!_||!l||!!p,onClick:function(){return u("Check")},children:"\u041F\u0440\u043E\u0432\u0435\u0440\u043A\u0430 \u043C\u0435\u0445\u0430"}),children:[(0,e.jsxs)(t.BJ,{children:[(0,e.jsx)(t.BJ.Item,{basis:120,textAlign:"center",align:"center",children:!!_&&(0,e.jsx)(t.Hg,{width:"100%",height:"100%",icon:v.icon,icon_state:v.icon_state})}),(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.cG,{vertical:!0})}),(0,e.jsx)(t.BJ.Item,{basis:42,children:(0,e.jsx)(t.BJ,{vertical:!0,children:!!_&&v.modules.map(function(w){return w.id<4&&(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.Hg,{width:"100%",height:"100%",icon:w.icon,icon_state:w.icon_state},w.id)},w.id)})})})]}),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.cG,{}),(0,e.jsx)("b",{children:h})]}),!!p&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("b",{children:"\u0417\u0430 \u043E\u0442\u043A\u0430\u0437 \u043E\u0442 \u0437\u0430\u043A\u0430\u0437\u0430, \u0432\u044B \u0431\u044B\u043B\u0438 \u043E\u0442\u0441\u0442\u0440\u0430\u043D\u0435\u043D\u044B \u043E\u0442 \u0440\u0430\u0431\u043E\u0442\u044B \u043D\u0430 \u043D\u0435\u043A\u043E\u0442\u043E\u0440\u043E\u0435 \u0432\u0440\u0435\u043C\u044F."}),(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:p})]})]}),!!P&&(0,e.jsx)(t.wn,{fill:!0,title:(0,e.jsxs)(t.az,{children:["\u041C\u0430\u0433\u0430\u0437\u0438\u043D \u0447\u0435\u0440\u0442\u0435\u0436\u0435\u0439",(0,e.jsxs)(t.az,{children:["\u041E\u0447\u043A\u0438: ",(0,e.jsx)("b",{style:{color:"brown"},children:C.working}),"|",(0,e.jsx)("b",{style:{color:"teal"},children:C.medical}),"|",(0,e.jsx)("b",{style:{color:"red"},children:C.security})]})]}),children:Object.keys(x).map(function(w){return(0,e.jsx)(s.Fragment,{children:!(x[w]===void 0||x[w].length===0||w==="robo")&&x[w].map(function(T){return(0,e.jsx)(t.c_,{color:B[w],dmIcon:T.icon,dmIconState:T.icon_state,dmFallback:T.name,imageSize:90,tooltip:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("b",{children:T.name}),(0,e.jsx)("br",{}),T.desc]}),onClick:function(){return u("buyItem",{item:T.path})},children:(0,e.jsxs)(t.az,{inline:!0,backgroundColor:"rgb(42.21, 3.35, 61.64)",style:{borderRadius:"10px"},p:.5,px:3,children:[(0,e.jsx)("b",{style:{color:"brown"},children:T.cost.working}),"|",(0,e.jsx)("b",{style:{color:"lightblue"},children:T.cost.medical}),"|",(0,e.jsx)("b",{style:{color:"red"},children:T.cost.security})]})},T.path)})},w)})})]}),(0,e.jsx)(t.BJ.Item,{basis:20,children:(0,e.jsxs)(t.wn,{fill:!0,title:"\u0414\u0440\u0443\u0433\u043E\u0435",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{width:"7rem",icon:"shopping-cart",onClick:function(){return M(!P)},children:"\u041C\u0430\u0433\u0430\u0437\u0438\u043D"}),(0,e.jsx)(t.$n,{icon:"cog",tooltipPosition:"bottom",tooltip:"\u0418\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u0435 \u0441\u0442\u0438\u043B\u044F \u0438\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430.",onClick:function(){return u("ChangeStyle")}})]}),children:[!!d&&(0,e.jsxs)(e.Fragment,{children:["\u0417\u0434\u0440\u0430\u0441\u0442\u0432\u0443\u0439\u0442\u0435,",(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:d}),(0,e.jsx)("br",{})]}),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("br",{}),"\u041F\u0440\u0438 \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u0438\u0438 \u0437\u0430\u043A\u0430\u0437\u0430 \u043D\u0430 \u044D\u043A\u0437\u043A\u043E\u0441\u0442\u044E\u043C, \u0432\u044B\u0431\u043E\u0440 \u043F\u043E\u0434\u0442\u0438\u043F\u0430 \u043C\u0435\u0445\u0430 \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u044F\u0435\u0442 \u0442\u0438\u043F \u0441\u043F\u0435\u0446\u0438\u0430\u043B\u0438\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0445 \u043E\u0447\u043A\u043E\u0432, \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u0431\u0443\u0434\u0443\u0442 \u043D\u0430\u0447\u0438\u0441\u043B\u0435\u043D\u044B \u0437\u0430 \u0432\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u0435 \u0437\u0430\u043A\u0430\u0437\u0430.",(0,e.jsx)("br",{}),(0,e.jsx)("br",{}),"\u0420\u0430\u0431\u043E\u0447\u0438\u0435 \u044D\u043A\u0437\u043E\u043A\u043E\u0441\u0442\u044E\u043C\u044B \u043F\u0440\u0438\u043D\u043E\u0441\u044F\u0442"," ",(0,e.jsxs)(t.az,{inline:!0,color:"brown",children:[" ","\u043A\u043E\u0440\u0438\u0447\u043D\u0435\u0432\u044B\u0435"]})," ","\u043E\u0447\u043A\u0438. \u041C\u0435\u0434\u0438\u0446\u0438\u043D\u0441\u043A\u0438\u0435 \u044D\u043A\u0437\u043E\u043A\u043E\u0441\u0442\u044E\u043C\u044B \u043F\u0440\u0438\u043D\u043E\u0441\u044F\u0442"," ",(0,e.jsxs)(t.az,{inline:!0,color:"teal",children:[" ","\u0433\u043E\u043B\u0443\u0431\u044B\u0435"]})," ","\u043E\u0447\u043A\u0438. \u0411\u043E\u0435\u0432\u044B\u0435 \u044D\u043A\u0437\u043E\u043A\u043E\u0441\u0442\u044E\u043C\u044B \u043F\u0440\u0438\u043D\u043E\u0441\u044F\u0442"," ",(0,e.jsxs)(t.az,{inline:!0,color:"red",children:[" ","\u043A\u0440\u0430\u0441\u043D\u044B\u0435"]})," ","\u043E\u0447\u043A\u0438.",(0,e.jsx)("br",{}),(0,e.jsx)("br",{}),"\u041A\u0430\u0436\u0434\u044B\u0439 \u043C\u0435\u0445, \u0432\u043D\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043C\u043E\u0441\u0442\u0438 \u043E\u0442 \u043F\u043E\u0434\u0442\u0438\u043F\u0430, \u043F\u0440\u0438\u043D\u043E\u0441\u0438\u0442 \u043D\u0435\u043A\u043E\u0442\u043E\u0440\u043E\u0435 \u043A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u043E\u0447\u043A\u043E\u0432 \u0434\u043B\u044F \u043C\u0430\u0433\u0430\u0437\u0438\u043D\u0430 \u043E\u0441\u043E\u0431\u044B\u0445 \u043D\u0430\u0433\u0440\u0430\u0434."]})]})}),(0,e.jsxs)(t.BJ.Item,{basis:38,children:[!P&&(0,e.jsxs)(t.wn,{fill:!0,scrollable:!0,title:"\u0418\u043D\u0444\u043E",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"id-card",disabled:!m,onClick:function(){return u("RemoveID")},children:"\u0412\u044B\u043D\u0443\u0442\u044C ID"}),!_&&(0,e.jsx)(t.$n,{icon:"arrow-down",disabled:!m||!!p,onClick:function(){return u("GetTask")},children:"\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u043C\u0435\u0445"}),!!_&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{content:"\u041F\u0435\u0447\u0430\u0442\u044C",icon:"print",onClick:function(){return u("printOrder")},disabled:!_,children:"\u041F\u0435\u0447\u0430\u0442\u044C"}),(0,e.jsx)(t.$n,{icon:"trash",disabled:!m||!!p,onClick:function(){return u("RemoveTask")},children:"\u041E\u0442\u043A\u0430\u0437\u0430\u0442\u044C\u0441\u044F"})]})]}),children:[(0,e.jsxs)(t.az,{mx:"0.5rem",mb:"1rem",children:[(0,e.jsx)("b",{children:"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435: "}),v.name,(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"\u041E\u043F\u0438\u0441\u0430\u043D\u0438\u0435: "}),v.desc]}),(0,e.jsx)(t.wn,{title:"\u0422\u0440\u0435\u0431\u0443\u0435\u043C\u044B\u0435 \u041C\u043E\u0434\u0443\u043B\u0438:",children:(0,e.jsx)(t.az,{mx:"0.5rem",mb:"0.5rem",children:!!_&&v.modules.map(function(w){return(0,e.jsxs)(s.Fragment,{children:[(0,e.jsxs)("b",{children:["Module ",w.id]}),": ",w.name," ",(0,e.jsx)("br",{}),(0,e.jsx)("br",{})]},w.id)})})}),(0,e.jsxs)(t.az,{mb:"0.5rem",textAlign:"center",children:[(0,e.jsx)(t.$n,{icon:"arrow-up",width:"14rem",bold:!0,textAlign:"center",tooltipPosition:"top",tooltip:"\u041E\u0442\u043F\u0440\u0430\u0432\u043A\u0430 \u043C\u0435\u0445\u0430 \u043D\u0430 \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0439 \u0432\u0430\u043C\u0438 \u0442\u0435\u043B\u0435\u043F\u0430\u0434.",disabled:!m||!_||!c||!!p,onClick:function(){return u("SendMech",{type:"send"})},children:"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u043C\u0435\u0445"}),(0,e.jsx)(t.$n,{icon:"arrow-up",width:"14rem",bold:!0,textAlign:"center",tooltipPosition:"top",tooltip:"\u0423\u043F\u0430\u043A\u043E\u0432\u043A\u0430 \u043C\u0435\u0445\u0430 \u0434\u043B\u044F \u0441\u0430\u043C\u043E\u0441\u0442\u043E\u044F\u0442\u0435\u043B\u044C\u043D\u043E\u0439 \u0434\u043E\u0441\u0442\u0430\u0432\u043A\u0438 \u0432 \u043A\u0430\u0440\u0433\u043E.",disabled:!m||!_||!c||!!p,onClick:function(){return u("SendMech",{type:"only_packing"})},children:"\u0423\u043F\u0430\u043A\u043E\u0432\u0430\u0442\u044C \u043C\u0435\u0445"})]}),(0,e.jsx)(t.az,{mb:"1.5rem",textAlign:"center",children:(0,e.jsx)(t.$n,{icon:"arrow-up",width:"30rem",bold:!0,textAlign:"center",tooltipPosition:"bottom",tooltip:"\u041C\u0433\u043D\u043E\u0432\u0435\u043D\u043D\u0430\u044F \u0442\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0430\u0446\u0438\u044F \u043C\u0435\u0445\u0430 \u0437\u0430\u043A\u0430\u0437\u0447\u0438\u043A\u0443.",disabled:!m||!_||!c||!!p||!j,onClick:function(){return u("SendMech",{type:"instant"})},children:"\u0422\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043C\u0435\u0445"})})]}),!!P&&(0,e.jsx)(t.wn,{fill:!0,scrollable:!0,title:(0,e.jsxs)(e.Fragment,{children:["\u041C\u0430\u0433\u0430\u0437\u0438\u043D \u043E\u0441\u043E\u0431\u044B\u0445 \u043D\u0430\u0433\u0440\u0430\u0434",(0,e.jsxs)(t.az,{children:["\u041E\u0447\u043A\u0438: ",C.robo]})]}),children:x.robo.map(function(w){return(!w.emagOnly||g==="syndicate")&&(0,e.jsx)(t.c_,{color:"purple",dmIcon:w.icon,dmIconState:w.icon_state,imageSize:90,dmFallback:w.name,tooltip:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("b",{children:w.name}),(0,e.jsx)("br",{}),w.desc]}),onClick:function(){return u("buyItem",{item:w.path})},children:w.cost.robo},w.name)})})]})]})})})}},1673:(q,S,r)=>{"use strict";r.r(S),r.d(S,{BluespaceRiftServer:()=>O});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a={0:"OFF",1:"NO_RIFTS",2:"SOME_RIFTS",3:"DANGER"},O=function(b){var y=(0,s.Oc)(),u=y.act,f=y.data,m=f.emagged,d=f.pointsPerProbe,v=f.cooldown,_=f.goals,l=f.servers,c=f.scanners,h=function(j){var x=j.riftId,C=j.riftName,I=j.targetResearchPoints,P=j.researchPoints,M=j.probePoints,B=j.rewardGiven,w=Math.floor(P/I*100),T=d>0?Math.floor(M/d):0,K=m?"@?%%!\u2116@"+d:d,R=M>=d,U=v-v%5+(v%5>0?5:0);return(0,e.jsxs)(n.wn,{title:"\u0418\u0441\u0441\u043B\u0435\u0434\u043E\u0432\u0430\u043D\u0438\u0435 \u0420\u0430\u0437\u043B\u043E\u043C\u0430",children:[(0,e.jsx)(n.az,{color:"silver",bold:!0,children:C}),(0,e.jsxs)(n.z2,{color:w===0?"bad":w<100?"average":"good",value:P,maxValue:I,mt:1,mb:2,children:[w<=100?w:100," %"]}),(0,e.jsxs)(n.az,{children:["\u0414\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0437\u043E\u043D\u0434\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F: ",(0,e.jsx)(n.az,{color:M?R?"good":"average":"bad",as:"span",children:Math.floor(M)}),(0,e.jsx)(n.$n,{icon:"atom",tooltip:"\u0414\u043B\u044F \u0433\u0435\u043D\u0435\u0440\u0430\u0446\u0438\u0438 \u043E\u0434\u043D\u043E\u0433\u043E \u0437\u043E\u043D\u0434\u0438\u0440\u0443\u044E\u0449\u0435\u0433\u043E \u0438\u043C\u043F\u0443\u043B\u044C\u0441\u0430 \u043D\u0443\u0436\u043D\u043E \u0441\u043E\u0431\u0440\u0430\u0442\u044C "+K+" \u0434\u0430\u043D\u043D\u044B\u0445.",disabled:!R||v>0,onClick:function(){return u("probe",{rift_id:x})},mx:2,children:v>0?"\u041F\u043E\u0434\u0433\u043E\u0442\u043E\u0432\u043A\u0430 "+U+" \u0441\u0435\u043A\u0443\u043D\u0434":"\u0417\u043E\u043D\u0434\u0438\u0440\u043E\u0432\u0430\u0442\u044C ("+T+")"}),(0,e.jsx)("br",{}),(0,e.jsx)(n.$n,{fluid:!0,textAlign:"center",disabled:B||w<100,onClick:function(){return u("reward",{rift_id:x})},mt:1.4,children:B?"\u0420\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442 \u043F\u043E\u043B\u0443\u0447\u0435\u043D":"\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442 \u0438\u0441\u0441\u043B\u0435\u0434\u043E\u0432\u0430\u043D\u0438\u0439"})]})]})},g=function(j){var x=j.servName,C=j.servData;return(0,e.jsx)(n.Ki.Item,{label:x,children:C.length?C.map(function(I,P){return(0,e.jsxs)(n.az,{children:[I.riftName," \u2014 ",Math.floor(I.probePoints)," ","\u0434\u0430\u043D\u043D\u044B\u0445."]},P)}):(0,e.jsx)(n.az,{children:"\u041D\u0435\u0442 \u0434\u0430\u043D\u043D\u044B\u0445"})})},p=function(j){var x=j.scannerId,C=j.scannerName,I=j.scanStatus,P=j.canSwitch,M=j.switching,B=a[I],w=function(){if(B==="OFF")return[" ","silver"];if(B==="NO_RIFTS")return["\u041D\u0435\u0442 \u0440\u0430\u0437\u043B\u043E\u043C\u043E\u0432","silver"];if(B==="SOME_RIFTS")return["\u0421\u043A\u0430\u043D\u0438\u0440\u0443\u0435\u0442","good"];if(B==="DANGER")return["\u041E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u044C! \u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u0435 \u0441\u043A\u0430\u043D\u0435\u0440!","bad"]},T=w();return(0,e.jsxs)(n.Ki.Item,{label:C,children:[M?(0,e.jsx)(n.In,{name:"circle-notch",color:"silver",spin:!0,ml:1.85,mr:1.79,my:.84}):P?(0,e.jsx)(n.$n,{icon:"power-off",color:B==="OFF"?"bad":"good",onClick:function(){return u("toggle_scanner",{scanner_id:x})},ml:1,mr:1}):(0,e.jsx)(n.In,{name:"power-off",color:B==="OFF"?"bad":"good",ml:1.85,mr:1.79,my:.84}),B!=="OFF"&&(0,e.jsx)(n.az,{as:"span",color:T[1],children:T[0]})]})};return(0,e.jsx)(t.p8,{width:570,height:400,children:(0,e.jsxs)(t.p8.Content,{scrollable:!0,children:[_&&_.map(function(j){return h(j)}),(0,e.jsx)(n.wn,{title:"\u0421\u043A\u0430\u043D\u0435\u0440\u044B \u0432 \u0441\u0435\u0442\u0438",children:(0,e.jsx)(n.Ki,{children:c&&c.map(function(j){return p(j)})})}),(0,e.jsx)(n.wn,{title:"\u0421\u0435\u0440\u0432\u0435\u0440\u044B \u0432 \u0441\u0435\u0442\u0438",children:(0,e.jsx)(n.Ki,{children:l&&l.map(function(j){return g(j)})})})]})})}},1696:(q,S,r)=>{"use strict";r.r(S),r.d(S,{pai_main_menu:()=>t});var e=r(1131),s=r(360),n=r(5180),t=function(a){var O=(0,s.Oc)(),b=O.act,y=O.data,u=y.app_data,f=u.available_software,m=u.installed_software,d=u.installed_toggles,v=u.available_ram,_=u.emotions,l=u.current_emotion,c={};return m.map(function(h){return c[h.key]=h.name}),d.map(function(h){return c[h.key]=h.name}),(0,e.jsx)(n.az,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Available RAM",children:v}),(0,e.jsxs)(n.Ki.Item,{label:"Available Software",children:[f.filter(function(h){return!c[h.key]}).map(function(h){return(0,e.jsx)(n.$n,{color:h.syndi?"red":"default",icon:h.icon,disabled:h.cost>v,onClick:function(){return b("purchaseSoftware",{key:h.key})},children:h.name+" ("+h.cost+")"},h.key)}),f.filter(function(h){return!c[h.key]}).length===0&&"No software available!"]}),(0,e.jsxs)(n.Ki.Item,{label:"Installed Software",children:[m.filter(function(h){return h.key!=="mainmenu"}).map(function(h){return(0,e.jsx)(n.$n,{icon:h.icon,onClick:function(){return b("startSoftware",{software_key:h.key})},children:h.name},h.key)}),m.length===0&&"No software installed!"]}),(0,e.jsxs)(n.Ki.Item,{label:"Installed Toggles",children:[d.map(function(h){return(0,e.jsx)(n.$n,{icon:h.icon,selected:h.active,onClick:function(){return b("setToggle",{toggle_key:h.key})},children:h.name},h.key)}),d.length===0&&"No toggles installed!"]}),(0,e.jsx)(n.Ki.Item,{label:"Select Emotion",children:_.map(function(h){return(0,e.jsx)(n.$n,{color:h.syndi?"red":"default",selected:h.id===l,onClick:function(){return b("setEmotion",{emotion:h.id})},children:h.name},h.id)})})]})})}},1704:(q,S,r)=>{"use strict";r.r(S),r.d(S,{meta:()=>t});var e=r(1131),s=r(7003),n=r(5180),t={title:"ImageButton",render:function(){return(0,e.jsx)(b,{})}},a=["red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey","gold"],O=["good","average","bad","black","white"],b=function(y){var u=(0,s.useState)(!0),f=u[0],m=u[1],d=(0,s.useState)(!1),v=d[0],_=d[1],l=(0,s.useState)(!1),c=l[0],h=l[1],g=(0,s.useState)(!1),p=g[0],j=g[1],x=(0,s.useState)(!1),C=x[0],I=x[1],P=(0,s.useState)(!1),M=P[0],B=P[1],w=(0,s.useState)(""),T=w[0],K=w[1],R=(0,s.useState)("Image Button"),U=R[0],F=R[1],$=(0,s.useState)("You can put anything in there"),W=$[0],N=$[1],Z=(0,s.useState)(64),ie=Z[0],Q=Z[1];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(n.wn,{children:[(0,e.jsxs)(n.BJ,{children:[(0,e.jsx)(n.BJ.Item,{basis:"50%",children:(0,e.jsx)(n.Ki,{children:M?(0,e.jsx)(n.Ki.Item,{label:"base64",children:(0,e.jsx)(n.pd,{value:T,onChange:K})}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.Ki.Item,{label:"Title",children:(0,e.jsx)(n.pd,{value:U,onChange:F})}),(0,e.jsx)(n.Ki.Item,{label:"Content",children:(0,e.jsx)(n.pd,{value:W,onChange:N})}),(0,e.jsx)(n.Ki.Item,{label:"Image Size",children:(0,e.jsx)(n.Ap,{width:10,value:ie,minValue:0,maxValue:256,step:1,onChange:function(V,G){return Q(G)}})})]})})}),(0,e.jsx)(n.BJ.Item,{basis:"50%",children:(0,e.jsxs)(n.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:f,onClick:function(){return m(!f)},children:"Fluid"})}),(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:p,onClick:function(){return j(!p)},children:"Disabled"})}),(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:C,onClick:function(){return I(!C)},children:"Selected"})})]})})]}),(0,e.jsx)(n.BJ.Item,{mt:1,children:(0,e.jsx)(n.c_,{m:!f&&0,fluid:f,base64:T,imageSize:ie,title:U,tooltip:!f&&W,disabled:p,selected:C,buttonsAlt:f,buttons:(0,e.jsx)(n.$n,{fluid:!0,compact:!f,color:f&&"translucent"||"transparent",selected:M,onClick:function(){return B(!M)},children:"Add Image"}),children:W})})]}),(0,e.jsx)(n.wn,{title:"Color States",buttons:(0,e.jsx)(n.$n.Checkbox,{checked:v,onClick:function(){return _(!v)},children:"Fluid"}),children:O.map(function(V){return(0,e.jsx)(n.c_,{fluid:v,color:V,imageSize:v?24:48,children:V},V)})}),(0,e.jsx)(n.wn,{title:"Available Colors",buttons:(0,e.jsx)(n.$n.Checkbox,{checked:c,onClick:function(){return h(!c)},children:"Fluid"}),children:a.map(function(V){return(0,e.jsx)(n.c_,{fluid:c,color:V,imageSize:c?24:48,children:V},V)})})]})}},1719:(q,S,r)=>{"use strict";r.r(S),r.d(S,{IcecreamMachine:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(b){var y=(0,s.Oc)(),u=y.act,f=y.data,m=f.name,d=f.beaker,v=f.beakerContents,_=v===void 0?[]:v,l=f.machineContents,c=l===void 0?[]:l,h=f.totalVolume,g=f.maxVolume;return(0,e.jsx)(t.p8,{width:600,height:600,theme:"ntos",children:(0,e.jsx)(t.p8.Content,{children:(0,e.jsxs)(n.wn,{title:m,children:[(0,e.jsx)(n.wn,{title:"\u041A\u043E\u043D\u0442\u0435\u0439\u043D\u0435\u0440",buttons:(0,e.jsx)(n.$n,{icon:"eject",disabled:!d,onClick:function(){return u("eject")},children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C"}),children:d?(0,e.jsx)(n.Ki,{children:_.map(function(p){return(0,e.jsx)(O,{reagent:p,onAdd:function(j){return u("add",{id:p.id,amount:j})}},p.id)})}):(0,e.jsx)(n.az,{italic:!0,children:"\u0412\u0441\u0442\u0430\u0432\u044C\u0442\u0435 \u0451\u043C\u043A\u043E\u0441\u0442\u044C \u0441 \u0432\u0435\u0449\u0435\u0441\u0442\u0432\u0430\u043C\u0438, \u0447\u0442\u043E\u0431\u044B \u0434\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0438\u0445 \u0432 \u043C\u043E\u0440\u043E\u0436\u0435\u043D\u043E\u0435."})}),(0,e.jsxs)(n.wn,{title:"\u0421\u043E\u0434\u0435\u0440\u0436\u0438\u043C\u043E\u0435 \u043C\u0430\u0448\u0438\u043D\u044B",children:[(0,e.jsx)(n.Ki,{children:c.map(function(p){return(0,e.jsx)(O,{reagent:p,onRemove:function(j){return u("remove",{id:p.id,amount:j})}},p.id)})}),(0,e.jsxs)(n.z2,{value:h/g,ranges:{good:[0,.5],average:[.5,.8],bad:[.8,1]},mt:1,children:[h,"/",g," \u0435\u0434."]})]}),(0,e.jsx)(n.wn,{title:"\u041D\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u0438",children:(0,e.jsxs)(n.BJ,{children:[(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(n.$n,{fluid:!0,icon:"wine-bottle",onClick:function(){return u("synthcond",{type:2})},children:"\u0413\u0430\u0437\u0438\u0440\u043E\u0432\u043A\u0430"})}),(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(n.$n,{fluid:!0,icon:"glass-whiskey",onClick:function(){return u("synthcond",{type:3})},children:"\u0410\u043B\u043A\u043E\u0433\u043E\u043B\u044C"})})]})}),(0,e.jsx)(n.wn,{title:"\u0417\u0430\u0432\u0435\u0440\u0448\u0430\u044E\u0449\u0438\u0435 \u0438\u043D\u0433\u0440\u0435\u0434\u0438\u0435\u043D\u0442\u044B",children:(0,e.jsxs)(n.BJ,{children:[(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(n.$n,{fluid:!0,icon:"whiskey-glass",onClick:function(){return u("synthcond",{type:4})},children:"\u0421\u043B\u0438\u0432\u043A\u0438"})}),(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(n.$n,{fluid:!0,icon:"glass-water",onClick:function(){return u("synthcond",{type:5})},children:"\u0412\u043E\u0434\u0430"})})]})}),(0,e.jsx)(n.wn,{title:"\u0421\u043E\u0437\u0434\u0430\u0442\u044C \u043C\u043E\u0440\u043E\u0436\u0435\u043D\u043E\u0435",children:(0,e.jsxs)(n.BJ,{children:[(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(n.$n,{fluid:!0,icon:"ice-cream",color:"good",onClick:function(){return u("createcone")},children:"\u0412 \u0440\u043E\u0436\u043E\u043A"})}),(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(n.$n,{fluid:!0,icon:"ice-cream",color:"good",onClick:function(){return u("createcup")},children:"\u0412 \u0441\u0442\u0430\u043A\u0430\u043D\u0447\u0438\u043A"})})]})})]})})})},O=function(b){var y=b.reagent,u=b.onAdd,f=b.onRemove;return(0,e.jsx)(n.Ki.Item,{label:(0,e.jsxs)(n.BJ,{align:"center",children:[(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.az,{width:"16px",height:"16px",backgroundColor:y.color||"#ffffff",style:{borderRadius:"50%"}})}),(0,e.jsx)(n.BJ.Item,{children:y.name})]}),children:(0,e.jsxs)(n.BJ,{align:"center",children:[(0,e.jsxs)(n.BJ.Item,{children:[y.volume," \u0435\u0434."]}),(0,e.jsxs)(n.BJ.Item,{children:[u&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{tooltip:"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C 5 \u0435\u0434.",onClick:function(){return u(5)},children:"5"}),(0,e.jsx)(n.$n,{icon:"arrow-right",tooltip:"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0432\u0441\u0435",onClick:function(){return u(y.volume)}})]}),f&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{tooltip:"\u0423\u0431\u0440\u0430\u0442\u044C 5 \u0435\u0434.",onClick:function(){return f(5)},children:"5"}),(0,e.jsx)(n.$n,{icon:"arrow-left",tooltip:"\u0423\u0431\u0440\u0430\u0442\u044C \u0432\u0441\u0435",onClick:function(){return f(y.volume)}})]})]})]})})}},1730:(q,S,r)=>{"use strict";r.r(S),r.d(S,{FilterAction:()=>s,filterReducer:()=>n});function e(){return e=Object.assign||function(t){for(var a=1;a{"use strict";r.r(S),r.d(S,{pai_signaler:()=>a});var e=r(1131),s=r(360),n=r(5664);function t(){return t=Object.assign||function(O){for(var b=1;b{"use strict";r.r(S),r.d(S,{RndRoute:()=>s});var e=r(360),s=function(n){var t=n.render,a=(0,e.Oc)().data,O=a.menu,b=a.submenu,y=function(f,m){return f==null?!0:typeof f=="function"?f(m):f===m},u=y(n.menu,O)&&y(n.submenu,b);return u?t():null}},1753:(q,S,r)=>{"use strict";r.r(S),r.d(S,{AirlockElectronics:()=>f});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=r(3211),O=1,b=2,y=4,u=8,f=function(v){return(0,e.jsx)(t.p8,{width:450,height:565,children:(0,e.jsx)(t.p8.Content,{children:(0,e.jsxs)(n.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(m,{}),(0,e.jsx)(d,{})]})})})},m=function(v){var _=(0,s.Oc)(),l=_.act,c=_.data,h=c.unrestricted_dir;return(0,e.jsx)(n.wn,{title:"Access Control",children:(0,e.jsxs)(n.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(n.BJ.Item,{bold:!0,mb:1,children:"Unrestricted Access From:"}),(0,e.jsxs)(n.BJ,{fill:!0,children:[(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(n.$n,{fluid:!0,textAlign:"center",icon:"arrow-left",selected:h&y,onClick:function(){return l("unrestricted_access",{unres_dir:y})},children:"East"})}),(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(n.$n,{fluid:!0,textAlign:"center",icon:"arrow-up",selected:h&b,onClick:function(){return l("unrestricted_access",{unres_dir:b})},children:"South"})}),(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(n.$n,{fluid:!0,textAlign:"center",icon:"arrow-right",selected:h&u,onClick:function(){return l("unrestricted_access",{unres_dir:u})},children:"West"})}),(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(n.$n,{fluid:!0,textAlign:"center",icon:"arrow-down",selected:h&O,onClick:function(){return l("unrestricted_access",{unres_dir:O})},children:"North"})})]})]})})},d=function(v){var _=(0,s.Oc)(),l=_.act,c=_.data,h=c.selected_accesses,g=c.one_access,p=c.regions,j=c.shell;return(0,e.jsx)(a.AccessList,{usedByRcd:!0,rcdButtons:[(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n.Checkbox,{checked:j,onClick:function(){l("set_shell",{on:!j})},tooltip:"\u041C\u043E\u0436\u043D\u043E \u043B\u0438 \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0438\u043D\u0442\u0435\u0433\u0440\u0430\u043B\u044C\u043D\u0443\u044E \u0441\u0445\u0435\u043C\u0443 \u0432 \u044D\u0442\u043E\u0442 \u0448\u043B\u044E\u0437?",children:"\u041E\u0431\u043E\u043B\u043E\u0447\u043A\u0430"}),(0,e.jsx)(n.$n.Checkbox,{checked:g,onClick:function(){return l("set_one_access",{access:"one"})},children:"One"}),(0,e.jsx)(n.$n.Checkbox,{checked:!g,onClick:function(){return l("set_one_access",{access:"all"})},children:"All"})]})],accesses:p,selectedList:h,accessMod:function(x){return l("set",{access:x})},grantAll:function(){return l("grant_all")},denyAll:function(){return l("clear_all")},grantDep:function(x){return l("grant_region",{region:x})},denyDep:function(x){return l("deny_region",{region:x})}})}},1788:(q,S,r)=>{"use strict";r.d(S,{_:()=>y});var e=r(1131),s=r(7003),n=r(8222),t=r(950);function a(){return a=Object.assign||function(u){for(var f=1;f=0)&&(m[v]=u[v]);return m}var b=5,y=function(u){var f=u.fixBlur,m=f===void 0?!0:f,d=u.fixErrors,v=d===void 0?!1:d,_=u.objectFit,l=_===void 0?"fill":_,c=u.src,h=u.tooltip,g=O(u,["fixBlur","fixErrors","objectFit","src","tooltip"]),p=(0,s.useRef)(0),j=(0,n.Fl)(g);j.style=a({},j.style,{imageRendering:m?"pixelated":"auto",objectFit:l});var x=function(I){if(v&&p.current{"use strict";r.d(S,{KL:()=>s,_:()=>e});var e=function(u){return u.A="a",u.Alt="Alt",u.Backspace="Backspace",u.Control="Control",u.D="d",u.Delete="Delete",u.Down="ArrowDown",u.E="e",u.End="End",u.Enter="Enter",u.Esc="Esc",u.Escape="Escape",u.Home="Home",u.Insert="Insert",u.Left="ArrowLeft",u.Minus="-",u.N="n",u.PageDown="PageDown",u.PageUp="PageUp",u.Plus="+",u.Right="ArrowRight",u.S="s",u.Shift="Shift",u.Space=" ",u.Tab="Tab",u.Up="ArrowUp",u.W="w",u.Z="z",u}({}),s=function(u){return u==="Esc"||u==="Escape"},n=function(u){return u>="a"&&u<="z"},t=function(u){return u>="0"&&u<="9"},a=function(u){return u==="n"||u==="s"||u==="w"||u==="e"},O=function(u){return u==="ArrowUp"||u==="ArrowDown"||u==="ArrowLeft"||u==="ArrowRight"},b=function(u){return u==="w"||u==="a"||u==="s"||u==="d"},y=function(u){return b(u)||O(u)}},1837:(q,S,r)=>{"use strict";r.r(S),r.d(S,{SolarControl:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(O){var b=(0,s.Oc)(),y=b.act,u=b.data,f=0,m=1,d=2,v=u.generated,_=u.generated_ratio,l=u.tracking_state,c=u.tracking_rate,h=u.connected_panels,g=u.connected_tracker,p=u.cdir,j=u.direction,x=u.rotating_direction;return(0,e.jsx)(t.p8,{width:490,height:300,children:(0,e.jsxs)(t.p8.Content,{children:[(0,e.jsx)(n.wn,{title:"Status",buttons:(0,e.jsx)(n.$n,{icon:"sync",onClick:function(){return y("refresh")},children:"Scan for new hardware"}),children:(0,e.jsxs)(n.xA,{children:[(0,e.jsx)(n.xA.Column,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Solar tracker",color:g?"good":"bad",children:g?"OK":"N/A"}),(0,e.jsx)(n.Ki.Item,{label:"Solar panels",color:h>0?"good":"bad",children:h})]})}),(0,e.jsx)(n.xA.Column,{size:2,children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Power output",children:(0,e.jsx)(n.z2,{ranges:{good:[.66,1/0],average:[.33,.66],bad:[-1/0,.33]},minValue:0,maxValue:1,value:_,children:v+" W"})}),(0,e.jsxs)(n.Ki.Item,{label:"Panel orientation",children:[p,"\xB0 (",j,")"]}),(0,e.jsxs)(n.Ki.Item,{label:"Tracker rotation",children:[l===d&&(0,e.jsx)(n.az,{children:" Automated "}),l===m&&(0,e.jsxs)(n.az,{children:[" ",c,"\xB0/h (",x,")"," "]}),l===f&&(0,e.jsx)(n.az,{children:" Tracker offline "})]})]})})]})}),(0,e.jsx)(n.wn,{title:"Controls",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Panel orientation",children:[l!==d&&(0,e.jsx)(n.Q7,{unit:"\xB0",step:1,stepPixelSize:1,minValue:0,maxValue:359,value:p,onDrag:function(C){return y("cdir",{cdir:C})}}),l===d&&(0,e.jsx)(n.az,{lineHeight:"19px",children:" Automated "})]}),(0,e.jsxs)(n.Ki.Item,{label:"Tracker status",children:[(0,e.jsx)(n.$n,{icon:"times",selected:l===f,onClick:function(){return y("track",{track:f})},children:"Off"}),(0,e.jsx)(n.$n,{icon:"clock-o",selected:l===m,onClick:function(){return y("track",{track:m})},children:"Timed"}),(0,e.jsx)(n.$n,{icon:"sync",selected:l===d,disabled:!g,onClick:function(){return y("track",{track:d})},children:"Auto"})]}),(0,e.jsxs)(n.Ki.Item,{label:"Tracker rotation",children:[l===m&&(0,e.jsx)(n.Q7,{unit:"\xB0/h",step:1,stepPixelSize:1,minValue:-7200,maxValue:7200,value:c,format:function(C){var I=Math.sign(C)>0?"+":"-";return I+Math.abs(C)},onDrag:function(C){return y("tdir",{tdir:C})}}),l===f&&(0,e.jsx)(n.az,{lineHeight:"19px",children:" Tracker offline "}),l===d&&(0,e.jsx)(n.az,{lineHeight:"19px",children:" Automated "})]})]})})]})})}},1840:(q,S,r)=>{var e={"./pai_advsecrecords.tsx":6051,"./pai_atmosphere.tsx":9515,"./pai_bioscan.tsx":4446,"./pai_camera_bug.tsx":937,"./pai_directives.tsx":4185,"./pai_doorjack.tsx":7502,"./pai_encoder.tsx":331,"./pai_gps_module.tsx":2720,"./pai_main_menu.tsx":1696,"./pai_manifest.tsx":1364,"./pai_medrecords.tsx":3939,"./pai_messenger.tsx":2938,"./pai_radio.tsx":9342,"./pai_sec_chem.tsx":6546,"./pai_secrecords.tsx":9484,"./pai_signaler.tsx":1742};function s(t){var a=n(t);return r(a)}function n(t){if(!r.o(e,t)){var a=new Error("Cannot find module '"+t+"'");throw a.code="MODULE_NOT_FOUND",a}return e[t]}s.keys=function(){return Object.keys(e)},s.resolve=n,q.exports=s,s.id=1840},1859:(q,S,r)=>{"use strict";r.d(S,{TS:()=>m,Tj:()=>O,Ul:()=>y,di:()=>u,pb:()=>a,y1:()=>f,yU:()=>_});/** + */function e(y,u){(u==null||u>y.length)&&(u=y.length);for(var f=0,m=new Array(u);f=y.length?{done:!0}:{done:!1,value:y[m++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var t=[/v4shim/i],a={},b=function(y){return a[y]||y},O=function(y){return function(u){return function(f){var m=f.type,d=f.payload;if(m==="asset/stylesheet"){Byond.loadCss(d);return}if(m==="asset/mappings"){for(var v=function(){var c=l.value;if(t.some(function(p){return p.test(c)}))return"continue";var h=d[c],g=c.split(".").pop();a[c]=h,g==="css"&&Byond.loadCss(h),g==="js"&&Byond.loadJs(h)},_=n(Object.keys(d)),l;!(l=_()).done;)v();return}u(f)}}}},1263:(q,S,r)=>{"use strict";var e,s=r(2934);if(1)S.H=s.createRoot,e=s.hydrateRoot;else var n},1265:(q,S,r)=>{"use strict";r.r(S),r.d(S,{PAI:()=>y});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=r(9160),b=r(1840),O=function(u){var f;try{f=b("./"+u+".tsx")}catch(d){if(d.code==="MODULE_NOT_FOUND")return(0,a.z)("notFound",u);throw d}var m=f[u];return m||(0,a.z)("missingExport",u)},y=function(u){var f,m=(0,s.Oc)(),d=m.act,v=m.data,_=v.app_template,l=v.app_icon,c=v.app_title,h=!!((f=v.app_data)!=null&&f.has_back),g=O(_);return(0,e.jsx)(t.p8,{width:600,height:650,children:(0,e.jsx)(t.p8.Content,{scrollable:!0,children:(0,e.jsx)(n.wn,{title:(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.In,{name:l,mr:1}),c,_!=="pai_main_menu"&&(0,e.jsx)(n.$n,{ml:2,icon:"arrow-up",onClick:function(){return d("MASTER_back")},children:"Home"}),_!=="pai_main_menu"&&h&&(0,e.jsx)(n.$n,{ml:2,icon:"arrow-left",onClick:function(){return d("Back")},children:"Back"})]}),p:1,children:(0,e.jsx)(g,{})})})})}},1301:(q,S,r)=>{"use strict";r.r(S),r.d(S,{HandheldChemDispenser:()=>b});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=[1,5,10,20,30,50],b=function(u){return(0,e.jsx)(t.p8,{width:450,height:500,children:(0,e.jsx)(t.p8.Content,{children:(0,e.jsxs)(n.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(O,{}),(0,e.jsx)(y,{})]})})})},O=function(u){var f=(0,s.Oc)(),m=f.act,d=f.data,v=d.amount,_=d.energy,l=d.maxEnergy,c=d.mode;return(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.wn,{title:"\u041F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"\u042D\u043D\u0435\u0440\u0433\u0438\u044F",children:(0,e.jsxs)(n.z2,{value:_,minValue:0,maxValue:l,ranges:{good:[l*.5,1/0],average:[l*.25,l*.5],bad:[-1/0,l*.25]},children:[_," / ",l," \u0415\u0434\u0438\u043D\u0438\u0446"]})}),(0,e.jsx)(n.Ki.Item,{label:"\u041E\u0431\u044A\u0451\u043C \u0441\u0438\u043D\u0442\u0435\u0437\u0430",verticalAlign:"middle",children:(0,e.jsx)(n.BJ,{children:a.map(function(h,g){return(0,e.jsx)(n.BJ.Item,{grow:!0,width:"15%",children:(0,e.jsx)(n.$n,{fluid:!0,icon:"cog",selected:v===h,onClick:function(){return m("amount",{amount:h})},children:h})},g)})})}),(0,e.jsx)(n.Ki.Item,{label:"\u0420\u0435\u0436\u0438\u043C",verticalAlign:"middle",children:(0,e.jsxs)(n.BJ,{justify:"space-between",children:[(0,e.jsx)(n.$n,{icon:"cog",selected:c==="dispense",m:"0",width:"32%",onClick:function(){return m("mode",{mode:"dispense"})},children:"\u0421\u0438\u043D\u0442\u0435\u0437"}),(0,e.jsx)(n.$n,{icon:"cog",selected:c==="remove",m:"0",width:"32%",onClick:function(){return m("mode",{mode:"remove"})},children:"\u0423\u0434\u0430\u043B\u0435\u043D\u0438\u0435"}),(0,e.jsx)(n.$n,{icon:"cog",selected:c==="isolate",m:"0",width:"32%",onClick:function(){return m("mode",{mode:"isolate"})},children:"\u0418\u0437\u043E\u043B\u044F\u0446\u0438\u044F"})]})})]})})})},y=function(u){for(var f=(0,s.Oc)(),m=f.act,d=f.data,v=d.chemicals,_=v===void 0?[]:v,l=d.current_reagent,c=[],h=0;h<(_.length+1)%3;h++)c.push(!0);return(0,e.jsx)(n.BJ.Item,{grow:!0,height:"18%",children:(0,e.jsxs)(n.wn,{fill:!0,scrollable:!0,title:d.glass?"\u0412\u044B\u0431\u043E\u0440 \u043D\u0430\u043F\u0438\u0442\u043A\u0430":"\u0412\u044B\u0431\u043E\u0440 \u0440\u0435\u0430\u0433\u0435\u043D\u0442\u0430",children:[_.map(function(g,p){return(0,e.jsx)(n.$n,{width:"32%",icon:"arrow-circle-down",overflow:"hidden",selected:l===g.id,style:{marginLeft:"2px",textOverflow:"ellipsis"},onClick:function(){return m("dispense",{reagent:g.id})},children:g.title},p)}),c.map(function(g,p){return(0,e.jsx)(n.BJ.Item,{grow:1,basis:"25%"},p)})]})})}},1311:(q,S,r)=>{"use strict";r.r(S),r.d(S,{LootBox:()=>a});var e=r(1131),s=r(360),n=r(2337),t=r(5180),a=function(b){var O=(0,s.Oc)(),y=O.act,u=O.data,f=u.is_blind,m=0,d;"group"in b?(m=b.group.amount,d=b.group.item):d=b.item;var v=d.name?d.name:"???",_=(0,e.jsx)(t.$n,{p:0,fluid:!0,color:"transparent",onClick:function(l){return y("grab",{alt:l.altKey,ctrl:l.ctrlKey,uid:d.uid,shift:l.shiftKey})},onContextMenu:function(l){l.preventDefault(),y("grab",{right:!0,uid:d.uid})},children:(0,e.jsxs)(t.BJ,{children:[(0,e.jsx)(t.BJ.Item,{mb:-1,minWidth:"36px",minHeight:"42px",children:(0,e.jsx)(n.IconDisplay,{item:d})}),(0,e.jsx)(t.BJ.Item,{lineHeight:"34px",overflow:"hidden",style:{textOverflow:"ellipsis"},children:!f&&v}),(0,e.jsx)(t.BJ.Item,{lineHeight:"34px",pr:1,children:m>1&&"x"+m})]})});return _}},1364:(q,S,r)=>{"use strict";r.r(S),r.d(S,{pai_manifest:()=>a});var e=r(1131),s=r(360),n=r(3261);function t(){return t=Object.assign||function(b){for(var O=1;O{"use strict";r.r(S),r.d(S,{GhostHudPanel:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(O){var y=(0,s.Oc)().data,u=y.security,f=y.medical,m=y.pressure,d=y.diagnostic,v=y.ahud;return(0,e.jsx)(t.p8,{width:250,height:207,theme:"nologo",children:(0,e.jsx)(t.p8.Content,{children:(0,e.jsxs)(n.wn,{children:[(0,e.jsx)(b,{label:"Medical",type:"medical",is_active:f}),(0,e.jsx)(b,{label:"Security",type:"security",is_active:u}),(0,e.jsx)(b,{label:"Diagnostic",type:"diagnostic",is_active:d}),(0,e.jsx)(b,{label:"Pressure",type:"pressure",is_active:m}),(0,e.jsx)(n.cG,{}),(0,e.jsx)(b,{label:"Antag HUD",is_active:v,act_on:"ahud_on",act_off:"ahud_off"})]})})})},b=function(O){var y=(0,s.Oc)().act,u=O.label,f=O.type,m=f===void 0?null:f,d=O.is_active,v=O.act_on,_=v===void 0?"hud_on":v,l=O.act_off,c=l===void 0?"hud_off":l;return(0,e.jsxs)(n.so,{pt:.3,color:"label",children:[(0,e.jsx)(n.so.Item,{pl:.5,align:"center",width:"80%",children:u}),(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(n.$n,{mr:.6,icon:d?"toggle-on":"toggle-off",selected:d,onClick:function(){return y(d?c:_,{hud_type:m})},children:d?"On":"Off"})})]})}},1497:(q,S,r)=>{"use strict";r.r(S),r.d(S,{BotClean:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(b){var O=(0,s.Oc)(),y=O.act,u=O.data,f=u.locked,m=u.noaccess,d=u.maintpanel,v=u.on,_=u.autopatrol,l=u.canhack,c=u.emagged,h=u.remote_disabled,g=u.painame,p=u.cleanblood;return(0,e.jsx)(t.p8,{width:500,height:500,children:(0,e.jsxs)(t.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(n.IC,{children:["\u041F\u0440\u043E\u0432\u0435\u0434\u0438\u0442\u0435 \u0441\u0432\u043E\u0435\u0439 ID-\u043A\u0430\u0440\u0442\u043E\u0439, \u0447\u0442\u043E\u0431\u044B",f?"\u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u0442\u044C":"\u0437\u0430\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u0442\u044C"," \u044D\u0442\u043E\u0442 \u0438\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441."]}),(0,e.jsx)(n.wn,{title:"\u041E\u0441\u043D\u043E\u0432\u043D\u044B\u0435 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",children:(0,e.jsx)(n.$n,{icon:v?"power-off":"times",selected:v,disabled:m,onClick:function(){return y("power")},children:v?"\u0412\u043A\u043B\u044E\u0447\u0451\u043D":"\u0412\u044B\u043A\u043B\u044E\u0447\u0435\u043D"})}),(0,e.jsx)(n.Ki.Item,{label:"\u0420\u0435\u0436\u0438\u043C \u043F\u0430\u0442\u0440\u0443\u043B\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F",children:(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:_,disabled:m,onClick:function(){return y("autopatrol")},children:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u043F\u0430\u0442\u0440\u0443\u043B\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435"})}),!!d&&(0,e.jsx)(n.Ki.Item,{label:"\u041F\u0430\u043D\u0435\u043B\u044C \u0442\u0435\u0445\u043E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u043D\u0438\u044F",children:(0,e.jsx)(n.az,{color:"bad",children:"\u041F\u0430\u043D\u0435\u043B\u044C \u043E\u0442\u043A\u0440\u044B\u0442\u0430"})}),(0,e.jsx)(n.Ki.Item,{label:"\u041F\u0440\u043E\u0442\u043E\u043A\u043E\u043B\u044B \u0431\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u0438",children:(0,e.jsx)(n.az,{color:c?"bad":"good",children:c?"\u041E\u0442\u043A\u043B\u044E\u0447\u0435\u043D\u044B":"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u044B"})}),!!l&&(0,e.jsx)(n.Ki.Item,{label:"\u0412\u0437\u043B\u043E\u043C",children:(0,e.jsx)(n.$n,{icon:"terminal",disabled:m,color:"bad",onClick:function(){return y("hack")},children:c?"\u0412\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u043F\u0440\u043E\u0442\u043E\u043A\u043E\u043B\u044B \u0431\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u0438":"\u0412\u0437\u043B\u043E\u043C\u0430\u0442\u044C"})}),(0,e.jsx)(n.Ki.Item,{label:"\u0423\u0434\u0430\u043B\u0451\u043D\u043D\u044B\u0439 \u0434\u043E\u0441\u0442\u0443\u043F",children:(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:!h,disabled:m,onClick:function(){return y("disableremote")},children:"\u0423\u0434\u0430\u043B\u0451\u043D\u043D\u044B\u0439 \u0434\u043E\u0441\u0442\u0443\u043F \u0441\u043E \u0441\u0442\u043E\u0440\u043E\u043D\u044B \u0418\u0418"})})]})}),(0,e.jsx)(n.wn,{title:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u043F\u0440\u043E\u0446\u0435\u0441\u0441\u0430 \u0443\u0431\u043E\u0440\u043A\u0438",children:(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:p,disabled:m,onClick:function(){return y("blood")},children:"\u0423\u0431\u0438\u0440\u0430\u0442\u044C \u043A\u0440\u043E\u0432\u044C"})}),g&&(0,e.jsx)(n.wn,{title:"\u041F\u0418\u0418",children:(0,e.jsx)(n.$n,{fluid:!0,icon:"eject",disabled:m,onClick:function(){return y("ejectpai")},children:g})})]})})}},1503:(q,S,r)=>{"use strict";r.r(S),r.d(S,{KeyComboModal:()=>v});var e=r(1131),s=r(7003),n=r(5180),t=r(1808),a=r(360),b=r(3521),O=r(30),y=r(3384),u=function(_){return _.key!==t._.Alt&&_.key!==t._.Control&&_.key!==t._.Shift&&!(0,t.KL)(_.key)},f={DEL:"Delete",DOWN:"South",END:"Southwest",HOME:"Northwest",INSERT:"Insert",LEFT:"West",PAGEDOWN:"Southeast",PAGEUP:"Northeast",RIGHT:"East",SPACEBAR:"Space"," ":"Space",UP:"North"},m=3,d=function(_){var l="";if(_.altKey&&(l+="Alt"),_.ctrlKey&&(l+="Ctrl"),_.shiftKey&&(l+="Shift"),_.location===m&&(l+="Numpad"),u(_)){var c=_.key.toUpperCase();l+=f[c]||c}return l},v=function(_){var l=(0,a.Oc)(),c=l.act,h=l.data,g=h.init_value,p=h.large_buttons,j=h.message,x=j===void 0?"":j,C=h.title,I=h.timeout,P=(0,s.useState)(g),M=P[0],B=P[1],w=(0,s.useState)(!0),T=w[0],K=w[1],R=(0,s.useRef)(null);(0,s.useEffect)(function(){var W;(W=R.current)==null||W.focus()},[T]);var U=function(W){if((0,t.KL)(W.key)){W.preventDefault(),c("cancel");return}if(!T){W.key===t._.Enter&&(W.preventDefault(),c("submit",{entry:M}));return}if(W.preventDefault(),u(W)){var N=d(W);B(N),K(!1);return}},F=function(){B(g),K(!0)},$=130+(x.length>30?Math.ceil(x.length/3):0)+(x.length&&p?5:0);return(0,e.jsxs)(b.p8,{title:C,width:240,height:$,children:[I&&(0,e.jsx)(y.Loader,{value:I}),(0,e.jsx)(b.p8.Content,{children:(0,e.jsx)("div",{ref:R,tabIndex:0,onKeyDown:U,style:{width:"100%",height:"100%",outline:"none"},children:(0,e.jsx)(n.wn,{fill:!0,children:(0,e.jsxs)(n.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(n.az,{color:"label",children:x})}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.$n,{disabled:T,fluid:!0,textAlign:"center",onClick:F,children:T?"Awaiting input...":M})}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(O.InputButtons,{input:M})})]})})})})]})}},1508:(q,S,r)=>{"use strict";r.r(S),r.d(S,{AirAlarm:()=>O});var e=r(1131),s=r(360),n=r(5180),t=r(7003),a=r(3521),b=r(6186),O=function(c){var h=(0,s.Oc)().data,g=h.locked,p=(0,t.useState)(0),j=p[0],x=p[1];return(0,e.jsx)(a.p8,{width:570,height:g?310:755,children:(0,e.jsxs)(a.p8.Content,{scrollable:!0,children:[(0,e.jsx)(b.InterfaceLockNoticeBox,{}),(0,e.jsx)(u,{}),!g&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(f,{tabIndex:j,setTabIndex:x}),(0,e.jsx)(m,{tabIndex:j})]})]})})},y=function(c){return c===0?"green":c===1?"orange":"red"},u=function(c){var h=(0,s.Oc)(),g=h.act,p=h.data,j=p.air,x=p.mode,C=p.atmos_alarm,I=p.locked,P=p.alarmActivated,M=p.rcon,B=p.target_temp,w;return j.danger.overall===0?C?w="Caution: Atmos alert in area":w="Optimal":j.danger.overall===1?w="Caution":w="DANGER: Internals Required",(0,e.jsx)(n.wn,{title:"Air Status",children:j?(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Pressure",children:(0,e.jsxs)(n.az,{color:y(j.danger.pressure),children:[(0,e.jsx)(n.zv,{value:j.pressure})," kPa",!I&&(0,e.jsxs)(e.Fragment,{children:["\xA0",(0,e.jsx)(n.$n,{selected:x===3,icon:"exclamation-triangle",onClick:function(){return g("mode",{mode:x===3?1:3})},children:x===3?"Deactivate Panic Siphon":"Activate Panic Siphon"})]})]})}),(0,e.jsx)(n.Ki.Item,{label:"Oxygen",children:(0,e.jsx)(n.z2,{value:j.contents.oxygen/100,fractionDigits:1,color:y(j.danger.oxygen)})}),(0,e.jsx)(n.Ki.Item,{label:"Nitrogen",children:(0,e.jsx)(n.z2,{value:j.contents.nitrogen/100,fractionDigits:1,color:y(j.danger.nitrogen)})}),(0,e.jsx)(n.Ki.Item,{label:"Carbon Dioxide",children:(0,e.jsx)(n.z2,{value:j.contents.carbon_dioxide/100,fractionDigits:1,color:y(j.danger.carbon_dioxide)})}),(0,e.jsx)(n.Ki.Item,{label:"Toxins",children:(0,e.jsx)(n.z2,{value:j.contents.plasma/100,fractionDigits:1,color:y(j.danger.plasma)})}),j.contents.nitrous_oxide>.1&&(0,e.jsx)(n.Ki.Item,{label:"Nitrous Oxide",children:(0,e.jsx)(n.z2,{value:j.contents.nitrous_oxide/100,fractionDigits:1,color:y(j.danger.nitrous_oxide)})}),j.contents.hydrogen>.1&&(0,e.jsx)(n.Ki.Item,{label:"Hydrogen",children:(0,e.jsx)(n.z2,{value:j.contents.hydrogen/100,fractionDigits:1,color:y(j.danger.hydrogen)})}),j.contents.water_vapor>.1&&(0,e.jsx)(n.Ki.Item,{label:"Water Vapor",children:(0,e.jsx)(n.z2,{value:j.contents.water_vapor/100,fractionDigits:1,color:y(j.danger.water_vapor)})}),j.contents.other>.1&&(0,e.jsx)(n.Ki.Item,{label:"Other",children:(0,e.jsx)(n.z2,{value:j.contents.other/100,fractionDigits:1,color:y(j.danger.other)})}),(0,e.jsx)(n.Ki.Item,{label:"Temperature",children:(0,e.jsxs)(n.az,{color:y(j.danger.temperature),children:[(0,e.jsx)(n.zv,{value:j.temperature})," K /"," ",(0,e.jsx)(n.zv,{value:j.temperature_c})," C\xA0",(0,e.jsx)(n.$n,{icon:"thermometer-full",onClick:function(){return g("temperature")},children:B+" C"}),(0,e.jsx)(n.$n,{selected:j.thermostat_state,icon:"power-off",onClick:function(){return g("thermostat_state")},children:j.thermostat_state?"On":"Off"})]})}),(0,e.jsx)(n.Ki.Item,{label:"Local Status",children:(0,e.jsxs)(n.az,{color:y(j.danger.overall),children:[w,!I&&(0,e.jsxs)(e.Fragment,{children:["\xA0",(0,e.jsx)(n.$n,{selected:P,onClick:function(){return g(P?"atmos_reset":"atmos_alarm")},children:P?"Reset Alarm":"Activate Alarm"})]})]})}),(0,e.jsxs)(n.Ki.Item,{label:"Remote Control Settings",children:[(0,e.jsx)(n.$n,{selected:M===1,onClick:function(){return g("set_rcon",{rcon:1})},children:"Off"}),(0,e.jsx)(n.$n,{selected:M===2,onClick:function(){return g("set_rcon",{rcon:2})},children:"Auto"}),(0,e.jsx)(n.$n,{selected:M===3,onClick:function(){return g("set_rcon",{rcon:3})},children:"On"})]})]}):(0,e.jsx)(n.az,{children:"Unable to acquire air sample!"})})},f=function(c){var h=c.tabIndex,g=c.setTabIndex;return(0,e.jsxs)(n.tU,{children:[(0,e.jsxs)(n.tU.Tab,{selected:h===0,onClick:function(){return g(0)},children:[(0,e.jsx)(n.In,{name:"sign-out-alt"})," Vent Control"]},"Vents"),(0,e.jsxs)(n.tU.Tab,{selected:h===1,onClick:function(){return g(1)},children:[(0,e.jsx)(n.In,{name:"sign-in-alt"})," Scrubber Control"]},"Scrubbers"),(0,e.jsxs)(n.tU.Tab,{selected:h===2,onClick:function(){return g(2)},children:[(0,e.jsx)(n.In,{name:"cog"})," Mode"]},"Mode"),(0,e.jsxs)(n.tU.Tab,{selected:h===3,onClick:function(){return g(3)},children:[(0,e.jsx)(n.In,{name:"tachometer-alt"})," Thresholds"]},"Thresholds")]})},m=function(c){var h=c.tabIndex;switch(h){case 0:return(0,e.jsx)(d,{});case 1:return(0,e.jsx)(v,{});case 2:return(0,e.jsx)(_,{});case 3:return(0,e.jsx)(l,{});default:return"WE SHOULDN'T BE HERE!"}},d=function(c){var h=(0,s.Oc)(),g=h.act,p=h.data,j=p.vents;return j.map(function(x){return(0,e.jsx)(n.wn,{title:x.name,children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Status",children:[(0,e.jsx)(n.$n,{selected:x.power,icon:"power-off",onClick:function(){return g("command",{cmd:"power",val:x.power?0:1,id_tag:x.id_tag})},children:x.power?"On":"Off"}),(0,e.jsx)(n.$n,{icon:x.direction==="release"?"sign-out-alt":"sign-in-alt",onClick:function(){return g("command",{cmd:"direction",val:x.direction==="release"?0:1,id_tag:x.id_tag})},children:x.direction==="release"?"Blowing":"Siphoning"})]}),(0,e.jsxs)(n.Ki.Item,{label:"Pressure Checks",children:[(0,e.jsx)(n.$n,{selected:x.checks===1,onClick:function(){return g("command",{cmd:"checks",val:1,id_tag:x.id_tag})},children:"External"}),(0,e.jsx)(n.$n,{selected:x.checks===2,onClick:function(){return g("command",{cmd:"checks",val:2,id_tag:x.id_tag})},children:"Internal"})]}),(0,e.jsxs)(n.Ki.Item,{label:"External Pressure Target",children:[(0,e.jsx)(n.zv,{value:x.external})," kPa\xA0",(0,e.jsx)(n.$n,{icon:"cog",onClick:function(){return g("command",{cmd:"set_external_pressure",id_tag:x.id_tag})},children:"Set"}),(0,e.jsx)(n.$n,{icon:"redo-alt",onClick:function(){return g("command",{cmd:"set_external_pressure",val:101.325,id_tag:x.id_tag})},children:"Reset"})]})]})},x.name)})},v=function(c){var h=(0,s.Oc)(),g=h.act,p=h.data,j=p.scrubbers;return j.map(function(x){return(0,e.jsx)(n.wn,{title:x.name,children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Status",children:[(0,e.jsx)(n.$n,{selected:x.power,icon:"power-off",onClick:function(){return g("command",{cmd:"power",val:x.power?0:1,id_tag:x.id_tag})},children:x.power?"On":"Off"}),(0,e.jsx)(n.$n,{icon:x.scrubbing?"filter":"sign-in-alt",onClick:function(){return g("command",{cmd:"scrubbing",val:x.scrubbing?0:1,id_tag:x.id_tag})},children:x.scrubbing?"Scrubbing":"Siphoning"})]}),(0,e.jsx)(n.Ki.Item,{label:"Range",children:(0,e.jsx)(n.$n,{selected:x.widenet,icon:"expand-arrows-alt",onClick:function(){return g("command",{cmd:"widenet",val:x.widenet?0:1,id_tag:x.id_tag})},children:x.widenet?"Extended":"Normal"})}),(0,e.jsxs)(n.Ki.Item,{label:"Filtering",children:[(0,e.jsx)(n.$n,{selected:x.filter_co2,onClick:function(){return g("command",{cmd:"scrub_co2",val:x.filter_co2?0:1,id_tag:x.id_tag})},children:"Carbon Dioxide"}),(0,e.jsx)(n.$n,{selected:x.filter_toxins,onClick:function(){return g("command",{cmd:"scrub_toxins",val:x.filter_toxins?0:1,id_tag:x.id_tag})},children:"Plasma"}),(0,e.jsx)(n.$n,{selected:x.filter_n2o,onClick:function(){return g("command",{cmd:"scrub_n2o",val:x.filter_n2o?0:1,id_tag:x.id_tag})},children:"Nitrous Oxide"}),(0,e.jsx)(n.$n,{selected:x.filter_o2,onClick:function(){return g("command",{cmd:"scrub_o2",val:x.filter_o2?0:1,id_tag:x.id_tag})},children:"Oxygen"}),(0,e.jsx)(n.$n,{selected:x.filter_n2,onClick:function(){return g("command",{cmd:"scrub_n2",val:x.filter_n2?0:1,id_tag:x.id_tag})},children:"Nitrogen"}),(0,e.jsx)(n.$n,{selected:x.filter_h2,onClick:function(){return g("command",{cmd:"scrub_h2",val:!x.filter_h2,id_tag:x.id_tag})},children:"Hydrogen"}),(0,e.jsx)(n.$n,{selected:x.filter_h2o,onClick:function(){return g("command",{cmd:"scrub_h2o",val:!x.filter_h2o,id_tag:x.id_tag})},children:"Water Vapor"})]})]})},x.name)})},_=function(c){var h=(0,s.Oc)(),g=h.act,p=h.data,j=p.modes,x=p.presets,C=p.emagged,I=p.mode,P=p.preset;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.wn,{title:"System Mode",children:(0,e.jsx)(n.XI,{style:{borderCollapse:"separate",borderSpacing:"0 1px"},children:Object.keys(j).map(function(M){var B=j[M];if(!B.emagonly||C)return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{textAlign:"right",width:1,children:(0,e.jsx)(n.$n,{icon:"cog",selected:B.id===I,onClick:function(){return g("mode",{mode:B.id})},children:B.name})}),(0,e.jsx)(n.XI.Cell,{children:B.desc})]},B.name)})})}),(0,e.jsxs)(n.wn,{title:"System Presets",children:[(0,e.jsx)(n.az,{italic:!0,children:"After making a selection, the system will automatically cycle in order to remove contaminants."}),(0,e.jsx)(n.XI,{mt:1,style:{borderCollapse:"separate",borderSpacing:"0 1px"},children:x.map(function(M){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{textAlign:"right",width:1,children:(0,e.jsx)(n.$n,{icon:"cog",selected:M.id===P,onClick:function(){return g("preset",{preset:M.id})},children:M.name})}),(0,e.jsx)(n.XI.Cell,{children:M.desc})]},M.name)})})]})]})},l=function(c){var h=(0,s.Oc)(),g=h.act,p=h.data,j=p.thresholds;return(0,e.jsx)(n.wn,{title:"Alarm Thresholds",children:(0,e.jsxs)(n.XI,{style:{borderCollapse:"separate",borderSpacing:"0 5px"},children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{width:"20%",children:"Value"}),(0,e.jsx)(n.XI.Cell,{color:"red",width:"20%",children:"Danger Min"}),(0,e.jsx)(n.XI.Cell,{color:"orange",width:"20%",children:"Warning Min"}),(0,e.jsx)(n.XI.Cell,{color:"orange",width:"20%",children:"Warning Max"}),(0,e.jsx)(n.XI.Cell,{color:"red",width:"20%",children:"Danger Max"})]}),j.map(function(x){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{children:x.name}),x.settings.map(function(C){return(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{onClick:function(){return g("command",{cmd:"set_threshold",env:C.env,var:C.val})},children:C.selected===-1?"Off":C.selected})},C.val)})]},x.name)})]})})}},1530:(q,S,r)=>{"use strict";r.r(S),r.d(S,{LoginInfo:()=>t});var e=r(1131),s=r(360),n=r(5180),t=function(a){var b=(0,s.Oc)(),O=b.act,y=b.data,u=y.loginState;if(y)return(0,e.jsx)(n.IC,{info:!0,children:(0,e.jsxs)(n.BJ,{children:[(0,e.jsxs)(n.BJ.Item,{grow:!0,mt:.5,children:["\u0412\u044B\u043F\u043E\u043B\u043D\u0435\u043D \u0432\u0445\u043E\u0434 \u0432 \u0441\u0438\u0441\u0442\u0435\u043C\u0443 \u043A\u0430\u043A: ",u.name," (",u.rank,")"]}),(0,e.jsxs)(n.BJ.Item,{children:[(0,e.jsx)(n.$n,{icon:"sign-out-alt",color:"good",onClick:function(){return O("login_logout")},children:"\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u0441\u0438\u0441\u0442\u0435\u043C\u044B"}),(0,e.jsx)(n.$n,{icon:"eject",disabled:!u.id,color:"good",onClick:function(){return O("login_eject")},children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C ID"})]})]})})}},1632:(q,S,r)=>{"use strict";r.r(S),r.d(S,{CargoConsole:()=>u});var e=r(1131),s=r(5070),n=r(1859),t=r(360),a=r(7003),b=r(5180),O=r(3521),y=r(9845),u=function(_){var l=(0,a.useState)(null),c=l[0],h=l[1],g=(0,a.useState)(null),p=g[0],j=g[1];return(0,e.jsx)(O.p8,{width:1e3,height:800,theme:"cargo",children:(0,e.jsx)(O.p8.Content,{children:(0,e.jsxs)(b.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(f,{contentsModal:c,setContentsModal:h,contentsModalTitle:p,setContentsModalTitle:j}),(0,e.jsx)(m,{}),(0,e.jsx)(d,{setContentsModal:h,setContentsModalTitle:j}),(0,e.jsx)(v,{})]})})})},f=function(_){var l=_.contentsModal,c=_.setContentsModal,h=_.contentsModalTitle,g=_.setContentsModalTitle;if(l!==null&&h!==null)return(0,e.jsxs)(b.aF,{maxWidth:"75%",width:window.innerWidth+"px",maxHeight:window.innerHeight*.75+"px",mx:"auto",children:[(0,e.jsx)(b.az,{width:"100%",bold:!0,children:(0,e.jsxs)("h1",{children:["\u0421\u043E\u0434\u0435\u0440\u0436\u0438\u043C\u043E\u0435 ",h,":"]})}),(0,e.jsx)(b.az,{children:l.map(function(p){return(0,e.jsxs)(b.az,{children:["- ",p]},p)})}),(0,e.jsx)(b.az,{m:2,children:(0,e.jsx)(b.$n,{onClick:function(){c(null),g(null)},children:"Close"})})]})},m=function(_){var l=(0,t.Oc)(),c=l.act,h=l.data,g=h.is_public,p=h.points,j=h.credits,x=h.timeleft,C=h.moving,I=h.at_station,P,M;return!C&&!I?(P="\u041D\u0435 \u043D\u0430 \u043E\u0431\u044A\u0435\u043A\u0442\u0435",M="\u0412\u044B\u0437\u0432\u0430\u0442\u044C \u0448\u0430\u0442\u0442\u043B"):!C&&I?(P="\u041F\u0440\u0438\u0441\u0442\u044B\u043A\u043E\u0432\u0430\u043D \u043A \u043E\u0431\u044A\u0435\u043A\u0442\u0443",M="\u0412\u0435\u0440\u043D\u0443\u0442\u044C \u0448\u0430\u0442\u0442\u043B"):C&&(M="\u0412 \u043F\u0443\u0442\u0438",P="\u0412 \u043F\u0443\u0442\u0438 \u043A \u043E\u0431\u044A\u0435\u043A\u0442\u0443 (\u043F\u0440\u0438\u043B\u0435\u0442\u0438\u0442 \u0447\u0435\u0440\u0435\u0437 "+x+" \u043C\u0438\u043D\u0443\u0442"+(0,y.bl)(x,"\u0443","\u044B","")+")"),(0,e.jsx)(b.BJ.Item,{children:(0,e.jsx)(b.wn,{title:"\u0421\u0442\u0430\u0442\u0443\u0441",children:(0,e.jsxs)(b.Ki,{children:[(0,e.jsx)(b.Ki.Item,{label:"\u041E\u0447\u043A\u0438 \u0441\u043D\u0430\u0431\u0436\u0435\u043D\u0438\u044F",children:p}),(0,e.jsx)(b.Ki.Item,{label:"\u041A\u0440\u0435\u0434\u0438\u0442\u044B",children:j}),(0,e.jsx)(b.Ki.Item,{label:"\u0421\u0442\u0430\u0442\u0443\u0441 \u0448\u0430\u0442\u0442\u043B\u0430",children:P}),!g&&(0,e.jsxs)(b.Ki.Item,{label:"\u0423\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435",children:[(0,e.jsx)(b.$n,{disabled:C,onClick:function(){return c("moveShuttle")},children:M}),(0,e.jsx)(b.$n,{onClick:function(){return c("showMessages")},children:"\u041F\u043E\u0441\u043C\u043E\u0442\u0440\u0435\u0442\u044C \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u044F \u0426\u041A"})]})]})})})},d=function(_){var l=(0,t.Oc)(),c=l.act,h=l.data,g=h.categories,p=h.supply_packs,j=(0,t.QY)("category","\u0427\u0440\u0435\u0437\u0432\u044B\u0447\u0430\u0439\u043D\u044B\u0435 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438"),x=j[0],C=j[1],I=(0,t.QY)("search_text",""),P=I[0],M=I[1],B=_.setContentsModal,w=_.setContentsModalTitle,T=(0,y.XZ)(P,function(U){return U.name}),K=(0,s.L)([function(U){return(0,n.pb)(U,function(F){return F.cat===((0,n.pb)(g,function($){return $.name===x})[0].category||P)})},function(U){return P?(0,n.pb)(U,T):U},function(U){return(0,n.Ul)(U,function(F){return F.name.toLowerCase()})}])(p),R="\u041F\u0435\u0440\u0435\u0447\u0435\u043D\u044C \u0433\u0440\u0443\u0437\u043E\u0432 \u0434\u043B\u044F \u0437\u0430\u043A\u0430\u0437\u0430";return P?R='\u0420\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u044B \u043F\u043E\u0438\u0441\u043A\u0430 "'+P+'":':x&&(R='\u041F\u0440\u043E\u0441\u043C\u043E\u0442\u0440 \u043A\u0430\u0442\u0435\u0433\u043E\u0440\u0438\u0438 "'+x+'"'),(0,e.jsx)(b.BJ.Item,{children:(0,e.jsxs)(b.wn,{title:R,buttons:(0,e.jsx)(b.ms,{width:"190px",options:g.map(function(U){return U.name}),selected:x,onSelected:function(U){return C(U)}}),children:[(0,e.jsx)(b.pd,{fluid:!0,placeholder:"\u041F\u043E\u0438\u0441\u043A",expensive:!0,onChange:M,mb:1}),(0,e.jsx)(b.az,{maxHeight:25,overflowY:"auto",overflowX:"hidden",children:(0,e.jsx)(b.XI,{m:"0.5rem",children:K.map(function(U){return(0,e.jsxs)(b.XI.Row,{children:[(0,e.jsx)(b.XI.Cell,{bold:!0,children:(0,e.jsxs)(b.az,{color:U.is_enough_techs?U.has_sale?"good":"default":"red",children:[U.name," (",U.cost?U.cost+" \u043E\u0447\u043A"+(0,y.bl)(U.cost,"\u043E","\u0430","\u043E\u0432"):"",U.creditsCost&&U.cost?" ":"",U.creditsCost?U.creditsCost+" \u041A\u0440\u0435\u0434\u0438\u0442"+(0,y.bl)(U.creditsCost,"","\u0430","\u043E\u0432"):"",")"]})}),(0,e.jsxs)(b.XI.Cell,{textAlign:"right",pr:1,children:[(0,e.jsx)(b.$n,{icon:"shopping-cart",onClick:function(){return c("order",{crate:U.ref,multiple:0})},children:"\u0417\u0430\u043A\u0430\u0437\u0430\u0442\u044C 1"}),(0,e.jsx)(b.$n,{icon:"cart-plus",onClick:function(){return c("order",{crate:U.ref,multiple:1})},children:"\u0417\u0430\u043A\u0430\u0437\u0430\u0442\u044C \u043D\u0435\u0441\u043A\u043E\u043B\u044C\u043A\u043E"}),(0,e.jsx)(b.$n,{icon:"search",onClick:function(){B(U.contents),w(U.name)},children:"\u0421\u043E\u0434\u0435\u0440\u0436\u0438\u043C\u043E\u0435"})]})]},U.name)})})})]})})},v=function(_){var l=(0,t.Oc)(),c=l.act,h=l.data,g=h.requests,p=h.canapprove,j=h.orders;return(0,e.jsxs)(b.wn,{fill:!0,scrollable:!0,title:"Details",children:[(0,e.jsx)(b.az,{bold:!0,children:"\u0417\u0430\u043F\u0440\u043E\u0441\u044B"}),(0,e.jsx)(b.XI,{m:"0.5rem",children:g.map(function(x){return(0,e.jsxs)(b.XI.Row,{children:[(0,e.jsxs)(b.XI.Cell,{children:[(0,e.jsxs)(b.az,{children:["- \u2116",x.ordernum,": ",x.supply_type," \u0434\u043B\u044F ",(0,e.jsx)("b",{children:x.orderedby})]}),(0,e.jsxs)(b.az,{italic:!0,children:["\u041F\u0440\u0438\u0447\u0438\u043D\u0430: ",x.comment]}),(0,e.jsxs)(b.az,{italic:!0,children:["\u0422\u0440\u0435\u0431\u0443\u0435\u043C\u044B\u0435 \u0442\u0435\u0445. \u0443\u0440\u043E\u0432\u043D\u0438: ",x.pack_techs]})]}),(0,e.jsxs)(b.BJ.Item,{textAlign:"right",children:[(0,e.jsx)(b.$n,{color:"green",disabled:!p,onClick:function(){return c("approve",{ordernum:x.ordernum})},children:"\u041E\u0434\u043E\u0431\u0440\u0438\u0442\u044C"}),(0,e.jsx)(b.$n,{color:"red",onClick:function(){return c("deny",{ordernum:x.ordernum})},children:"\u041E\u0442\u043A\u0430\u0437\u0430\u0442\u044C"})]})]},x.ordernum)})}),(0,e.jsx)(b.az,{bold:!0,children:"\u0423\u0442\u0432\u0435\u0440\u0436\u0434\u0451\u043D\u043D\u044B\u0435 \u0437\u0430\u043A\u0430\u0437\u044B"}),(0,e.jsx)(b.XI,{m:"0.5rem",children:j.map(function(x){return(0,e.jsx)(b.XI.Row,{children:(0,e.jsxs)(b.XI.Cell,{children:[(0,e.jsxs)(b.az,{children:["- \u2116",x.ordernum,": ",x.supply_type," \u0434\u043B\u044F ",(0,e.jsx)("b",{children:x.orderedby})]}),(0,e.jsxs)(b.az,{italic:!0,children:["\u041F\u0440\u0438\u0447\u0438\u043D\u0430: ",x.comment]})]})},x.ordernum)})})]})}},1657:(q,S,r)=>{"use strict";r.r(S),r.d(S,{RoboQuest:()=>b});var e=r(1131),s=r(7003),n=r(360),t=r(5180),a=r(3521),b=function(O){var y=(0,n.Oc)(),u=y.act,f=y.data,m=f.hasID,d=f.name,v=f.questInfo,_=f.hasTask,l=f.canCheck,c=f.canSend,h=f.checkMessage,g=f.style,p=f.cooldown,j=f.instant_teleport,x=f.shopItems,C=f.points,I=(0,s.useState)(!1),P=I[0],M=I[1],B={medical:"blue",working:"brown",security:"red",working_medical:"olive",medical_security:"violet",working_medical_security:"grey"};return(0,e.jsx)(a.p8,{theme:g,width:1e3,height:540,children:(0,e.jsx)(a.p8.Content,{children:(0,e.jsxs)(t.BJ,{fill:!0,children:[(0,e.jsxs)(t.BJ.Item,{basis:40,children:[!P&&(0,e.jsxs)(t.wn,{fill:!0,title:"\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0439 \u0437\u0430\u043A\u0430\u0437",buttons:(0,e.jsx)(t.$n,{icon:"search",tooltipPosition:"bottom",tooltip:"\u041F\u0440\u043E\u0432\u0435\u0440\u043A\u0430 \u044D\u043A\u0437\u043E\u043A\u043E\u0441\u0442\u044E\u043C\u0430 \u043D\u0430 \u043D\u0430\u043B\u0438\u0447\u0438\u0435 \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u044B\u0445 \u0434\u043B\u044F \u0437\u0430\u043A\u0430\u0437\u0430 \u043C\u043E\u0434\u0443\u043B\u0435\u0439.",disabled:!m||!_||!l||!!p,onClick:function(){return u("Check")},children:"\u041F\u0440\u043E\u0432\u0435\u0440\u043A\u0430 \u043C\u0435\u0445\u0430"}),children:[(0,e.jsxs)(t.BJ,{children:[(0,e.jsx)(t.BJ.Item,{basis:120,textAlign:"center",align:"center",children:!!_&&(0,e.jsx)(t.Hg,{width:"100%",height:"100%",icon:v.icon,icon_state:v.icon_state})}),(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.cG,{vertical:!0})}),(0,e.jsx)(t.BJ.Item,{basis:42,children:(0,e.jsx)(t.BJ,{vertical:!0,children:!!_&&v.modules.map(function(w){return w.id<4&&(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.Hg,{width:"100%",height:"100%",icon:w.icon,icon_state:w.icon_state},w.id)},w.id)})})})]}),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.cG,{}),(0,e.jsx)("b",{children:h})]}),!!p&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("b",{children:"\u0417\u0430 \u043E\u0442\u043A\u0430\u0437 \u043E\u0442 \u0437\u0430\u043A\u0430\u0437\u0430, \u0432\u044B \u0431\u044B\u043B\u0438 \u043E\u0442\u0441\u0442\u0440\u0430\u043D\u0435\u043D\u044B \u043E\u0442 \u0440\u0430\u0431\u043E\u0442\u044B \u043D\u0430 \u043D\u0435\u043A\u043E\u0442\u043E\u0440\u043E\u0435 \u0432\u0440\u0435\u043C\u044F."}),(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:p})]})]}),!!P&&(0,e.jsx)(t.wn,{fill:!0,title:(0,e.jsxs)(t.az,{children:["\u041C\u0430\u0433\u0430\u0437\u0438\u043D \u0447\u0435\u0440\u0442\u0435\u0436\u0435\u0439",(0,e.jsxs)(t.az,{children:["\u041E\u0447\u043A\u0438: ",(0,e.jsx)("b",{style:{color:"brown"},children:C.working}),"|",(0,e.jsx)("b",{style:{color:"teal"},children:C.medical}),"|",(0,e.jsx)("b",{style:{color:"red"},children:C.security})]})]}),children:Object.keys(x).map(function(w){return(0,e.jsx)(s.Fragment,{children:!(x[w]===void 0||x[w].length===0||w==="robo")&&x[w].map(function(T){return(0,e.jsx)(t.c_,{color:B[w],dmIcon:T.icon,dmIconState:T.icon_state,dmFallback:T.name,imageSize:90,tooltip:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("b",{children:T.name}),(0,e.jsx)("br",{}),T.desc]}),onClick:function(){return u("buyItem",{item:T.path})},children:(0,e.jsxs)(t.az,{inline:!0,backgroundColor:"rgb(42.21, 3.35, 61.64)",style:{borderRadius:"10px"},p:.5,px:3,children:[(0,e.jsx)("b",{style:{color:"brown"},children:T.cost.working}),"|",(0,e.jsx)("b",{style:{color:"lightblue"},children:T.cost.medical}),"|",(0,e.jsx)("b",{style:{color:"red"},children:T.cost.security})]})},T.path)})},w)})})]}),(0,e.jsx)(t.BJ.Item,{basis:20,children:(0,e.jsxs)(t.wn,{fill:!0,title:"\u0414\u0440\u0443\u0433\u043E\u0435",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{width:"7rem",icon:"shopping-cart",onClick:function(){return M(!P)},children:"\u041C\u0430\u0433\u0430\u0437\u0438\u043D"}),(0,e.jsx)(t.$n,{icon:"cog",tooltipPosition:"bottom",tooltip:"\u0418\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u0435 \u0441\u0442\u0438\u043B\u044F \u0438\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430.",onClick:function(){return u("ChangeStyle")}})]}),children:[!!d&&(0,e.jsxs)(e.Fragment,{children:["\u0417\u0434\u0440\u0430\u0441\u0442\u0432\u0443\u0439\u0442\u0435,",(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:d}),(0,e.jsx)("br",{})]}),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("br",{}),"\u041F\u0440\u0438 \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u0438\u0438 \u0437\u0430\u043A\u0430\u0437\u0430 \u043D\u0430 \u044D\u043A\u0437\u043A\u043E\u0441\u0442\u044E\u043C, \u0432\u044B\u0431\u043E\u0440 \u043F\u043E\u0434\u0442\u0438\u043F\u0430 \u043C\u0435\u0445\u0430 \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u044F\u0435\u0442 \u0442\u0438\u043F \u0441\u043F\u0435\u0446\u0438\u0430\u043B\u0438\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0445 \u043E\u0447\u043A\u043E\u0432, \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u0431\u0443\u0434\u0443\u0442 \u043D\u0430\u0447\u0438\u0441\u043B\u0435\u043D\u044B \u0437\u0430 \u0432\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u0435 \u0437\u0430\u043A\u0430\u0437\u0430.",(0,e.jsx)("br",{}),(0,e.jsx)("br",{}),"\u0420\u0430\u0431\u043E\u0447\u0438\u0435 \u044D\u043A\u0437\u043E\u043A\u043E\u0441\u0442\u044E\u043C\u044B \u043F\u0440\u0438\u043D\u043E\u0441\u044F\u0442"," ",(0,e.jsxs)(t.az,{inline:!0,color:"brown",children:[" ","\u043A\u043E\u0440\u0438\u0447\u043D\u0435\u0432\u044B\u0435"]})," ","\u043E\u0447\u043A\u0438. \u041C\u0435\u0434\u0438\u0446\u0438\u043D\u0441\u043A\u0438\u0435 \u044D\u043A\u0437\u043E\u043A\u043E\u0441\u0442\u044E\u043C\u044B \u043F\u0440\u0438\u043D\u043E\u0441\u044F\u0442"," ",(0,e.jsxs)(t.az,{inline:!0,color:"teal",children:[" ","\u0433\u043E\u043B\u0443\u0431\u044B\u0435"]})," ","\u043E\u0447\u043A\u0438. \u0411\u043E\u0435\u0432\u044B\u0435 \u044D\u043A\u0437\u043E\u043A\u043E\u0441\u0442\u044E\u043C\u044B \u043F\u0440\u0438\u043D\u043E\u0441\u044F\u0442"," ",(0,e.jsxs)(t.az,{inline:!0,color:"red",children:[" ","\u043A\u0440\u0430\u0441\u043D\u044B\u0435"]})," ","\u043E\u0447\u043A\u0438.",(0,e.jsx)("br",{}),(0,e.jsx)("br",{}),"\u041A\u0430\u0436\u0434\u044B\u0439 \u043C\u0435\u0445, \u0432\u043D\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043C\u043E\u0441\u0442\u0438 \u043E\u0442 \u043F\u043E\u0434\u0442\u0438\u043F\u0430, \u043F\u0440\u0438\u043D\u043E\u0441\u0438\u0442 \u043D\u0435\u043A\u043E\u0442\u043E\u0440\u043E\u0435 \u043A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u043E\u0447\u043A\u043E\u0432 \u0434\u043B\u044F \u043C\u0430\u0433\u0430\u0437\u0438\u043D\u0430 \u043E\u0441\u043E\u0431\u044B\u0445 \u043D\u0430\u0433\u0440\u0430\u0434."]})]})}),(0,e.jsxs)(t.BJ.Item,{basis:38,children:[!P&&(0,e.jsxs)(t.wn,{fill:!0,scrollable:!0,title:"\u0418\u043D\u0444\u043E",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"id-card",disabled:!m,onClick:function(){return u("RemoveID")},children:"\u0412\u044B\u043D\u0443\u0442\u044C ID"}),!_&&(0,e.jsx)(t.$n,{icon:"arrow-down",disabled:!m||!!p,onClick:function(){return u("GetTask")},children:"\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u043C\u0435\u0445"}),!!_&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{content:"\u041F\u0435\u0447\u0430\u0442\u044C",icon:"print",onClick:function(){return u("printOrder")},disabled:!_,children:"\u041F\u0435\u0447\u0430\u0442\u044C"}),(0,e.jsx)(t.$n,{icon:"trash",disabled:!m||!!p,onClick:function(){return u("RemoveTask")},children:"\u041E\u0442\u043A\u0430\u0437\u0430\u0442\u044C\u0441\u044F"})]})]}),children:[(0,e.jsxs)(t.az,{mx:"0.5rem",mb:"1rem",children:[(0,e.jsx)("b",{children:"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435: "}),v.name,(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"\u041E\u043F\u0438\u0441\u0430\u043D\u0438\u0435: "}),v.desc]}),(0,e.jsx)(t.wn,{title:"\u0422\u0440\u0435\u0431\u0443\u0435\u043C\u044B\u0435 \u041C\u043E\u0434\u0443\u043B\u0438:",children:(0,e.jsx)(t.az,{mx:"0.5rem",mb:"0.5rem",children:!!_&&v.modules.map(function(w){return(0,e.jsxs)(s.Fragment,{children:[(0,e.jsxs)("b",{children:["Module ",w.id]}),": ",w.name," ",(0,e.jsx)("br",{}),(0,e.jsx)("br",{})]},w.id)})})}),(0,e.jsxs)(t.az,{mb:"0.5rem",textAlign:"center",children:[(0,e.jsx)(t.$n,{icon:"arrow-up",width:"14rem",bold:!0,textAlign:"center",tooltipPosition:"top",tooltip:"\u041E\u0442\u043F\u0440\u0430\u0432\u043A\u0430 \u043C\u0435\u0445\u0430 \u043D\u0430 \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0439 \u0432\u0430\u043C\u0438 \u0442\u0435\u043B\u0435\u043F\u0430\u0434.",disabled:!m||!_||!c||!!p,onClick:function(){return u("SendMech",{type:"send"})},children:"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u043C\u0435\u0445"}),(0,e.jsx)(t.$n,{icon:"arrow-up",width:"14rem",bold:!0,textAlign:"center",tooltipPosition:"top",tooltip:"\u0423\u043F\u0430\u043A\u043E\u0432\u043A\u0430 \u043C\u0435\u0445\u0430 \u0434\u043B\u044F \u0441\u0430\u043C\u043E\u0441\u0442\u043E\u044F\u0442\u0435\u043B\u044C\u043D\u043E\u0439 \u0434\u043E\u0441\u0442\u0430\u0432\u043A\u0438 \u0432 \u043A\u0430\u0440\u0433\u043E.",disabled:!m||!_||!c||!!p,onClick:function(){return u("SendMech",{type:"only_packing"})},children:"\u0423\u043F\u0430\u043A\u043E\u0432\u0430\u0442\u044C \u043C\u0435\u0445"})]}),(0,e.jsx)(t.az,{mb:"1.5rem",textAlign:"center",children:(0,e.jsx)(t.$n,{icon:"arrow-up",width:"30rem",bold:!0,textAlign:"center",tooltipPosition:"bottom",tooltip:"\u041C\u0433\u043D\u043E\u0432\u0435\u043D\u043D\u0430\u044F \u0442\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0430\u0446\u0438\u044F \u043C\u0435\u0445\u0430 \u0437\u0430\u043A\u0430\u0437\u0447\u0438\u043A\u0443.",disabled:!m||!_||!c||!!p||!j,onClick:function(){return u("SendMech",{type:"instant"})},children:"\u0422\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043C\u0435\u0445"})})]}),!!P&&(0,e.jsx)(t.wn,{fill:!0,scrollable:!0,title:(0,e.jsxs)(e.Fragment,{children:["\u041C\u0430\u0433\u0430\u0437\u0438\u043D \u043E\u0441\u043E\u0431\u044B\u0445 \u043D\u0430\u0433\u0440\u0430\u0434",(0,e.jsxs)(t.az,{children:["\u041E\u0447\u043A\u0438: ",C.robo]})]}),children:x.robo.map(function(w){return(!w.emagOnly||g==="syndicate")&&(0,e.jsx)(t.c_,{color:"purple",dmIcon:w.icon,dmIconState:w.icon_state,imageSize:90,dmFallback:w.name,tooltip:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("b",{children:w.name}),(0,e.jsx)("br",{}),w.desc]}),onClick:function(){return u("buyItem",{item:w.path})},children:w.cost.robo},w.name)})})]})]})})})}},1673:(q,S,r)=>{"use strict";r.r(S),r.d(S,{BluespaceRiftServer:()=>b});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a={0:"OFF",1:"NO_RIFTS",2:"SOME_RIFTS",3:"DANGER"},b=function(O){var y=(0,s.Oc)(),u=y.act,f=y.data,m=f.emagged,d=f.pointsPerProbe,v=f.cooldown,_=f.goals,l=f.servers,c=f.scanners,h=function(j){var x=j.riftId,C=j.riftName,I=j.targetResearchPoints,P=j.researchPoints,M=j.probePoints,B=j.rewardGiven,w=Math.floor(P/I*100),T=d>0?Math.floor(M/d):0,K=m?"@?%%!\u2116@"+d:d,R=M>=d,U=v-v%5+(v%5>0?5:0);return(0,e.jsxs)(n.wn,{title:"\u0418\u0441\u0441\u043B\u0435\u0434\u043E\u0432\u0430\u043D\u0438\u0435 \u0420\u0430\u0437\u043B\u043E\u043C\u0430",children:[(0,e.jsx)(n.az,{color:"silver",bold:!0,children:C}),(0,e.jsxs)(n.z2,{color:w===0?"bad":w<100?"average":"good",value:P,maxValue:I,mt:1,mb:2,children:[w<=100?w:100," %"]}),(0,e.jsxs)(n.az,{children:["\u0414\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0437\u043E\u043D\u0434\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F: ",(0,e.jsx)(n.az,{color:M?R?"good":"average":"bad",as:"span",children:Math.floor(M)}),(0,e.jsx)(n.$n,{icon:"atom",tooltip:"\u0414\u043B\u044F \u0433\u0435\u043D\u0435\u0440\u0430\u0446\u0438\u0438 \u043E\u0434\u043D\u043E\u0433\u043E \u0437\u043E\u043D\u0434\u0438\u0440\u0443\u044E\u0449\u0435\u0433\u043E \u0438\u043C\u043F\u0443\u043B\u044C\u0441\u0430 \u043D\u0443\u0436\u043D\u043E \u0441\u043E\u0431\u0440\u0430\u0442\u044C "+K+" \u0434\u0430\u043D\u043D\u044B\u0445.",disabled:!R||v>0,onClick:function(){return u("probe",{rift_id:x})},mx:2,children:v>0?"\u041F\u043E\u0434\u0433\u043E\u0442\u043E\u0432\u043A\u0430 "+U+" \u0441\u0435\u043A\u0443\u043D\u0434":"\u0417\u043E\u043D\u0434\u0438\u0440\u043E\u0432\u0430\u0442\u044C ("+T+")"}),(0,e.jsx)("br",{}),(0,e.jsx)(n.$n,{fluid:!0,textAlign:"center",disabled:B||w<100,onClick:function(){return u("reward",{rift_id:x})},mt:1.4,children:B?"\u0420\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442 \u043F\u043E\u043B\u0443\u0447\u0435\u043D":"\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442 \u0438\u0441\u0441\u043B\u0435\u0434\u043E\u0432\u0430\u043D\u0438\u0439"})]})]})},g=function(j){var x=j.servName,C=j.servData;return(0,e.jsx)(n.Ki.Item,{label:x,children:C.length?C.map(function(I,P){return(0,e.jsxs)(n.az,{children:[I.riftName," \u2014 ",Math.floor(I.probePoints)," ","\u0434\u0430\u043D\u043D\u044B\u0445."]},P)}):(0,e.jsx)(n.az,{children:"\u041D\u0435\u0442 \u0434\u0430\u043D\u043D\u044B\u0445"})})},p=function(j){var x=j.scannerId,C=j.scannerName,I=j.scanStatus,P=j.canSwitch,M=j.switching,B=a[I],w=function(){if(B==="OFF")return[" ","silver"];if(B==="NO_RIFTS")return["\u041D\u0435\u0442 \u0440\u0430\u0437\u043B\u043E\u043C\u043E\u0432","silver"];if(B==="SOME_RIFTS")return["\u0421\u043A\u0430\u043D\u0438\u0440\u0443\u0435\u0442","good"];if(B==="DANGER")return["\u041E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u044C! \u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u0435 \u0441\u043A\u0430\u043D\u0435\u0440!","bad"]},T=w();return(0,e.jsxs)(n.Ki.Item,{label:C,children:[M?(0,e.jsx)(n.In,{name:"circle-notch",color:"silver",spin:!0,ml:1.85,mr:1.79,my:.84}):P?(0,e.jsx)(n.$n,{icon:"power-off",color:B==="OFF"?"bad":"good",onClick:function(){return u("toggle_scanner",{scanner_id:x})},ml:1,mr:1}):(0,e.jsx)(n.In,{name:"power-off",color:B==="OFF"?"bad":"good",ml:1.85,mr:1.79,my:.84}),B!=="OFF"&&(0,e.jsx)(n.az,{as:"span",color:T[1],children:T[0]})]})};return(0,e.jsx)(t.p8,{width:570,height:400,children:(0,e.jsxs)(t.p8.Content,{scrollable:!0,children:[_&&_.map(function(j){return h(j)}),(0,e.jsx)(n.wn,{title:"\u0421\u043A\u0430\u043D\u0435\u0440\u044B \u0432 \u0441\u0435\u0442\u0438",children:(0,e.jsx)(n.Ki,{children:c&&c.map(function(j){return p(j)})})}),(0,e.jsx)(n.wn,{title:"\u0421\u0435\u0440\u0432\u0435\u0440\u044B \u0432 \u0441\u0435\u0442\u0438",children:(0,e.jsx)(n.Ki,{children:l&&l.map(function(j){return g(j)})})})]})})}},1696:(q,S,r)=>{"use strict";r.r(S),r.d(S,{pai_main_menu:()=>t});var e=r(1131),s=r(360),n=r(5180),t=function(a){var b=(0,s.Oc)(),O=b.act,y=b.data,u=y.app_data,f=u.available_software,m=u.installed_software,d=u.installed_toggles,v=u.available_ram,_=u.emotions,l=u.current_emotion,c={};return m.map(function(h){return c[h.key]=h.name}),d.map(function(h){return c[h.key]=h.name}),(0,e.jsx)(n.az,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Available RAM",children:v}),(0,e.jsxs)(n.Ki.Item,{label:"Available Software",children:[f.filter(function(h){return!c[h.key]}).map(function(h){return(0,e.jsx)(n.$n,{color:h.syndi?"red":"default",icon:h.icon,disabled:h.cost>v,onClick:function(){return O("purchaseSoftware",{key:h.key})},children:h.name+" ("+h.cost+")"},h.key)}),f.filter(function(h){return!c[h.key]}).length===0&&"No software available!"]}),(0,e.jsxs)(n.Ki.Item,{label:"Installed Software",children:[m.filter(function(h){return h.key!=="mainmenu"}).map(function(h){return(0,e.jsx)(n.$n,{icon:h.icon,onClick:function(){return O("startSoftware",{software_key:h.key})},children:h.name},h.key)}),m.length===0&&"No software installed!"]}),(0,e.jsxs)(n.Ki.Item,{label:"Installed Toggles",children:[d.map(function(h){return(0,e.jsx)(n.$n,{icon:h.icon,selected:h.active,onClick:function(){return O("setToggle",{toggle_key:h.key})},children:h.name},h.key)}),d.length===0&&"No toggles installed!"]}),(0,e.jsx)(n.Ki.Item,{label:"Select Emotion",children:_.map(function(h){return(0,e.jsx)(n.$n,{color:h.syndi?"red":"default",selected:h.id===l,onClick:function(){return O("setEmotion",{emotion:h.id})},children:h.name},h.id)})})]})})}},1704:(q,S,r)=>{"use strict";r.r(S),r.d(S,{meta:()=>t});var e=r(1131),s=r(7003),n=r(5180),t={title:"ImageButton",render:function(){return(0,e.jsx)(O,{})}},a=["red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey","gold"],b=["good","average","bad","black","white"],O=function(y){var u=(0,s.useState)(!0),f=u[0],m=u[1],d=(0,s.useState)(!1),v=d[0],_=d[1],l=(0,s.useState)(!1),c=l[0],h=l[1],g=(0,s.useState)(!1),p=g[0],j=g[1],x=(0,s.useState)(!1),C=x[0],I=x[1],P=(0,s.useState)(!1),M=P[0],B=P[1],w=(0,s.useState)(""),T=w[0],K=w[1],R=(0,s.useState)("Image Button"),U=R[0],F=R[1],$=(0,s.useState)("You can put anything in there"),W=$[0],N=$[1],Z=(0,s.useState)(64),ie=Z[0],Q=Z[1];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(n.wn,{children:[(0,e.jsxs)(n.BJ,{children:[(0,e.jsx)(n.BJ.Item,{basis:"50%",children:(0,e.jsx)(n.Ki,{children:M?(0,e.jsx)(n.Ki.Item,{label:"base64",children:(0,e.jsx)(n.pd,{value:T,onChange:K})}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.Ki.Item,{label:"Title",children:(0,e.jsx)(n.pd,{value:U,onChange:F})}),(0,e.jsx)(n.Ki.Item,{label:"Content",children:(0,e.jsx)(n.pd,{value:W,onChange:N})}),(0,e.jsx)(n.Ki.Item,{label:"Image Size",children:(0,e.jsx)(n.Ap,{width:10,value:ie,minValue:0,maxValue:256,step:1,onChange:function(V,G){return Q(G)}})})]})})}),(0,e.jsx)(n.BJ.Item,{basis:"50%",children:(0,e.jsxs)(n.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:f,onClick:function(){return m(!f)},children:"Fluid"})}),(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:p,onClick:function(){return j(!p)},children:"Disabled"})}),(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:C,onClick:function(){return I(!C)},children:"Selected"})})]})})]}),(0,e.jsx)(n.BJ.Item,{mt:1,children:(0,e.jsx)(n.c_,{m:!f&&0,fluid:f,base64:T,imageSize:ie,title:U,tooltip:!f&&W,disabled:p,selected:C,buttonsAlt:f,buttons:(0,e.jsx)(n.$n,{fluid:!0,compact:!f,color:f&&"translucent"||"transparent",selected:M,onClick:function(){return B(!M)},children:"Add Image"}),children:W})})]}),(0,e.jsx)(n.wn,{title:"Color States",buttons:(0,e.jsx)(n.$n.Checkbox,{checked:v,onClick:function(){return _(!v)},children:"Fluid"}),children:b.map(function(V){return(0,e.jsx)(n.c_,{fluid:v,color:V,imageSize:v?24:48,children:V},V)})}),(0,e.jsx)(n.wn,{title:"Available Colors",buttons:(0,e.jsx)(n.$n.Checkbox,{checked:c,onClick:function(){return h(!c)},children:"Fluid"}),children:a.map(function(V){return(0,e.jsx)(n.c_,{fluid:c,color:V,imageSize:c?24:48,children:V},V)})})]})}},1719:(q,S,r)=>{"use strict";r.r(S),r.d(S,{IcecreamMachine:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(O){var y=(0,s.Oc)(),u=y.act,f=y.data,m=f.name,d=f.beaker,v=f.beakerContents,_=v===void 0?[]:v,l=f.machineContents,c=l===void 0?[]:l,h=f.totalVolume,g=f.maxVolume;return(0,e.jsx)(t.p8,{width:600,height:600,theme:"ntos",children:(0,e.jsx)(t.p8.Content,{children:(0,e.jsxs)(n.wn,{title:m,children:[(0,e.jsx)(n.wn,{title:"\u041A\u043E\u043D\u0442\u0435\u0439\u043D\u0435\u0440",buttons:(0,e.jsx)(n.$n,{icon:"eject",disabled:!d,onClick:function(){return u("eject")},children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C"}),children:d?(0,e.jsx)(n.Ki,{children:_.map(function(p){return(0,e.jsx)(b,{reagent:p,onAdd:function(j){return u("add",{id:p.id,amount:j})}},p.id)})}):(0,e.jsx)(n.az,{italic:!0,children:"\u0412\u0441\u0442\u0430\u0432\u044C\u0442\u0435 \u0451\u043C\u043A\u043E\u0441\u0442\u044C \u0441 \u0432\u0435\u0449\u0435\u0441\u0442\u0432\u0430\u043C\u0438, \u0447\u0442\u043E\u0431\u044B \u0434\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0438\u0445 \u0432 \u043C\u043E\u0440\u043E\u0436\u0435\u043D\u043E\u0435."})}),(0,e.jsxs)(n.wn,{title:"\u0421\u043E\u0434\u0435\u0440\u0436\u0438\u043C\u043E\u0435 \u043C\u0430\u0448\u0438\u043D\u044B",children:[(0,e.jsx)(n.Ki,{children:c.map(function(p){return(0,e.jsx)(b,{reagent:p,onRemove:function(j){return u("remove",{id:p.id,amount:j})}},p.id)})}),(0,e.jsxs)(n.z2,{value:h/g,ranges:{good:[0,.5],average:[.5,.8],bad:[.8,1]},mt:1,children:[h,"/",g," \u0435\u0434."]})]}),(0,e.jsx)(n.wn,{title:"\u041D\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u0438",children:(0,e.jsxs)(n.BJ,{children:[(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(n.$n,{fluid:!0,icon:"wine-bottle",onClick:function(){return u("synthcond",{type:2})},children:"\u0413\u0430\u0437\u0438\u0440\u043E\u0432\u043A\u0430"})}),(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(n.$n,{fluid:!0,icon:"glass-whiskey",onClick:function(){return u("synthcond",{type:3})},children:"\u0410\u043B\u043A\u043E\u0433\u043E\u043B\u044C"})})]})}),(0,e.jsx)(n.wn,{title:"\u0417\u0430\u0432\u0435\u0440\u0448\u0430\u044E\u0449\u0438\u0435 \u0438\u043D\u0433\u0440\u0435\u0434\u0438\u0435\u043D\u0442\u044B",children:(0,e.jsxs)(n.BJ,{children:[(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(n.$n,{fluid:!0,icon:"whiskey-glass",onClick:function(){return u("synthcond",{type:4})},children:"\u0421\u043B\u0438\u0432\u043A\u0438"})}),(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(n.$n,{fluid:!0,icon:"glass-water",onClick:function(){return u("synthcond",{type:5})},children:"\u0412\u043E\u0434\u0430"})})]})}),(0,e.jsx)(n.wn,{title:"\u0421\u043E\u0437\u0434\u0430\u0442\u044C \u043C\u043E\u0440\u043E\u0436\u0435\u043D\u043E\u0435",children:(0,e.jsxs)(n.BJ,{children:[(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(n.$n,{fluid:!0,icon:"ice-cream",color:"good",onClick:function(){return u("createcone")},children:"\u0412 \u0440\u043E\u0436\u043E\u043A"})}),(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(n.$n,{fluid:!0,icon:"ice-cream",color:"good",onClick:function(){return u("createcup")},children:"\u0412 \u0441\u0442\u0430\u043A\u0430\u043D\u0447\u0438\u043A"})})]})})]})})})},b=function(O){var y=O.reagent,u=O.onAdd,f=O.onRemove;return(0,e.jsx)(n.Ki.Item,{label:(0,e.jsxs)(n.BJ,{align:"center",children:[(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.az,{width:"16px",height:"16px",backgroundColor:y.color||"#ffffff",style:{borderRadius:"50%"}})}),(0,e.jsx)(n.BJ.Item,{children:y.name})]}),children:(0,e.jsxs)(n.BJ,{align:"center",children:[(0,e.jsxs)(n.BJ.Item,{children:[y.volume," \u0435\u0434."]}),(0,e.jsxs)(n.BJ.Item,{children:[u&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{tooltip:"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C 5 \u0435\u0434.",onClick:function(){return u(5)},children:"5"}),(0,e.jsx)(n.$n,{icon:"arrow-right",tooltip:"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0432\u0441\u0435",onClick:function(){return u(y.volume)}})]}),f&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{tooltip:"\u0423\u0431\u0440\u0430\u0442\u044C 5 \u0435\u0434.",onClick:function(){return f(5)},children:"5"}),(0,e.jsx)(n.$n,{icon:"arrow-left",tooltip:"\u0423\u0431\u0440\u0430\u0442\u044C \u0432\u0441\u0435",onClick:function(){return f(y.volume)}})]})]})]})})}},1730:(q,S,r)=>{"use strict";r.r(S),r.d(S,{FilterAction:()=>s,filterReducer:()=>n});function e(){return e=Object.assign||function(t){for(var a=1;a{"use strict";r.r(S),r.d(S,{pai_signaler:()=>a});var e=r(1131),s=r(360),n=r(5664);function t(){return t=Object.assign||function(b){for(var O=1;O{"use strict";r.r(S),r.d(S,{RndRoute:()=>s});var e=r(360),s=function(n){var t=n.render,a=(0,e.Oc)().data,b=a.menu,O=a.submenu,y=function(f,m){return f==null?!0:typeof f=="function"?f(m):f===m},u=y(n.menu,b)&&y(n.submenu,O);return u?t():null}},1753:(q,S,r)=>{"use strict";r.r(S),r.d(S,{AirlockElectronics:()=>f});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=r(3211),b=1,O=2,y=4,u=8,f=function(v){return(0,e.jsx)(t.p8,{width:450,height:565,children:(0,e.jsx)(t.p8.Content,{children:(0,e.jsxs)(n.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(m,{}),(0,e.jsx)(d,{})]})})})},m=function(v){var _=(0,s.Oc)(),l=_.act,c=_.data,h=c.unrestricted_dir;return(0,e.jsx)(n.wn,{title:"Access Control",children:(0,e.jsxs)(n.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(n.BJ.Item,{bold:!0,mb:1,children:"Unrestricted Access From:"}),(0,e.jsxs)(n.BJ,{fill:!0,children:[(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(n.$n,{fluid:!0,textAlign:"center",icon:"arrow-left",selected:h&y,onClick:function(){return l("unrestricted_access",{unres_dir:y})},children:"East"})}),(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(n.$n,{fluid:!0,textAlign:"center",icon:"arrow-up",selected:h&O,onClick:function(){return l("unrestricted_access",{unres_dir:O})},children:"South"})}),(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(n.$n,{fluid:!0,textAlign:"center",icon:"arrow-right",selected:h&u,onClick:function(){return l("unrestricted_access",{unres_dir:u})},children:"West"})}),(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(n.$n,{fluid:!0,textAlign:"center",icon:"arrow-down",selected:h&b,onClick:function(){return l("unrestricted_access",{unres_dir:b})},children:"North"})})]})]})})},d=function(v){var _=(0,s.Oc)(),l=_.act,c=_.data,h=c.selected_accesses,g=c.one_access,p=c.regions,j=c.shell;return(0,e.jsx)(a.AccessList,{usedByRcd:!0,rcdButtons:[(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n.Checkbox,{checked:j,onClick:function(){l("set_shell",{on:!j})},tooltip:"\u041C\u043E\u0436\u043D\u043E \u043B\u0438 \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0438\u043D\u0442\u0435\u0433\u0440\u0430\u043B\u044C\u043D\u0443\u044E \u0441\u0445\u0435\u043C\u0443 \u0432 \u044D\u0442\u043E\u0442 \u0448\u043B\u044E\u0437?",children:"\u041E\u0431\u043E\u043B\u043E\u0447\u043A\u0430"}),(0,e.jsx)(n.$n.Checkbox,{checked:g,onClick:function(){return l("set_one_access",{access:"one"})},children:"One"}),(0,e.jsx)(n.$n.Checkbox,{checked:!g,onClick:function(){return l("set_one_access",{access:"all"})},children:"All"})]})],accesses:p,selectedList:h,accessMod:function(x){return l("set",{access:x})},grantAll:function(){return l("grant_all")},denyAll:function(){return l("clear_all")},grantDep:function(x){return l("grant_region",{region:x})},denyDep:function(x){return l("deny_region",{region:x})}})}},1788:(q,S,r)=>{"use strict";r.d(S,{_:()=>y});var e=r(1131),s=r(7003),n=r(8222),t=r(950);function a(){return a=Object.assign||function(u){for(var f=1;f=0)&&(m[v]=u[v]);return m}var O=5,y=function(u){var f=u.fixBlur,m=f===void 0?!0:f,d=u.fixErrors,v=d===void 0?!1:d,_=u.objectFit,l=_===void 0?"fill":_,c=u.src,h=u.tooltip,g=b(u,["fixBlur","fixErrors","objectFit","src","tooltip"]),p=(0,s.useRef)(0),j=(0,n.Fl)(g);j.style=a({},j.style,{imageRendering:m?"pixelated":"auto",objectFit:l});var x=function(I){if(v&&p.current{"use strict";r.d(S,{KL:()=>s,_:()=>e});var e=function(u){return u.A="a",u.Alt="Alt",u.Backspace="Backspace",u.Control="Control",u.D="d",u.Delete="Delete",u.Down="ArrowDown",u.E="e",u.End="End",u.Enter="Enter",u.Esc="Esc",u.Escape="Escape",u.Home="Home",u.Insert="Insert",u.Left="ArrowLeft",u.Minus="-",u.N="n",u.PageDown="PageDown",u.PageUp="PageUp",u.Plus="+",u.Right="ArrowRight",u.S="s",u.Shift="Shift",u.Space=" ",u.Tab="Tab",u.Up="ArrowUp",u.W="w",u.Z="z",u}({}),s=function(u){return u==="Esc"||u==="Escape"},n=function(u){return u>="a"&&u<="z"},t=function(u){return u>="0"&&u<="9"},a=function(u){return u==="n"||u==="s"||u==="w"||u==="e"},b=function(u){return u==="ArrowUp"||u==="ArrowDown"||u==="ArrowLeft"||u==="ArrowRight"},O=function(u){return u==="w"||u==="a"||u==="s"||u==="d"},y=function(u){return O(u)||b(u)}},1837:(q,S,r)=>{"use strict";r.r(S),r.d(S,{SolarControl:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(b){var O=(0,s.Oc)(),y=O.act,u=O.data,f=0,m=1,d=2,v=u.generated,_=u.generated_ratio,l=u.tracking_state,c=u.tracking_rate,h=u.connected_panels,g=u.connected_tracker,p=u.cdir,j=u.direction,x=u.rotating_direction;return(0,e.jsx)(t.p8,{width:490,height:300,children:(0,e.jsxs)(t.p8.Content,{children:[(0,e.jsx)(n.wn,{title:"Status",buttons:(0,e.jsx)(n.$n,{icon:"sync",onClick:function(){return y("refresh")},children:"Scan for new hardware"}),children:(0,e.jsxs)(n.xA,{children:[(0,e.jsx)(n.xA.Column,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Solar tracker",color:g?"good":"bad",children:g?"OK":"N/A"}),(0,e.jsx)(n.Ki.Item,{label:"Solar panels",color:h>0?"good":"bad",children:h})]})}),(0,e.jsx)(n.xA.Column,{size:2,children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Power output",children:(0,e.jsx)(n.z2,{ranges:{good:[.66,1/0],average:[.33,.66],bad:[-1/0,.33]},minValue:0,maxValue:1,value:_,children:v+" W"})}),(0,e.jsxs)(n.Ki.Item,{label:"Panel orientation",children:[p,"\xB0 (",j,")"]}),(0,e.jsxs)(n.Ki.Item,{label:"Tracker rotation",children:[l===d&&(0,e.jsx)(n.az,{children:" Automated "}),l===m&&(0,e.jsxs)(n.az,{children:[" ",c,"\xB0/h (",x,")"," "]}),l===f&&(0,e.jsx)(n.az,{children:" Tracker offline "})]})]})})]})}),(0,e.jsx)(n.wn,{title:"Controls",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Panel orientation",children:[l!==d&&(0,e.jsx)(n.Q7,{unit:"\xB0",step:1,stepPixelSize:1,minValue:0,maxValue:359,value:p,onDrag:function(C){return y("cdir",{cdir:C})}}),l===d&&(0,e.jsx)(n.az,{lineHeight:"19px",children:" Automated "})]}),(0,e.jsxs)(n.Ki.Item,{label:"Tracker status",children:[(0,e.jsx)(n.$n,{icon:"times",selected:l===f,onClick:function(){return y("track",{track:f})},children:"Off"}),(0,e.jsx)(n.$n,{icon:"clock-o",selected:l===m,onClick:function(){return y("track",{track:m})},children:"Timed"}),(0,e.jsx)(n.$n,{icon:"sync",selected:l===d,disabled:!g,onClick:function(){return y("track",{track:d})},children:"Auto"})]}),(0,e.jsxs)(n.Ki.Item,{label:"Tracker rotation",children:[l===m&&(0,e.jsx)(n.Q7,{unit:"\xB0/h",step:1,stepPixelSize:1,minValue:-7200,maxValue:7200,value:c,format:function(C){var I=Math.sign(C)>0?"+":"-";return I+Math.abs(C)},onDrag:function(C){return y("tdir",{tdir:C})}}),l===f&&(0,e.jsx)(n.az,{lineHeight:"19px",children:" Tracker offline "}),l===d&&(0,e.jsx)(n.az,{lineHeight:"19px",children:" Automated "})]})]})})]})})}},1840:(q,S,r)=>{var e={"./pai_advsecrecords.tsx":6051,"./pai_atmosphere.tsx":9515,"./pai_bioscan.tsx":4446,"./pai_camera_bug.tsx":937,"./pai_directives.tsx":4185,"./pai_doorjack.tsx":7502,"./pai_encoder.tsx":331,"./pai_gps_module.tsx":2720,"./pai_main_menu.tsx":1696,"./pai_manifest.tsx":1364,"./pai_medrecords.tsx":3939,"./pai_messenger.tsx":2938,"./pai_radio.tsx":9342,"./pai_sec_chem.tsx":6546,"./pai_secrecords.tsx":9484,"./pai_signaler.tsx":1742};function s(t){var a=n(t);return r(a)}function n(t){if(!r.o(e,t)){var a=new Error("Cannot find module '"+t+"'");throw a.code="MODULE_NOT_FOUND",a}return e[t]}s.keys=function(){return Object.keys(e)},s.resolve=n,q.exports=s,s.id=1840},1859:(q,S,r)=>{"use strict";r.d(S,{TS:()=>m,Tj:()=>b,Ul:()=>y,di:()=>u,pb:()=>a,y1:()=>f,yU:()=>_});/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function e(j,x){(x==null||x>j.length)&&(x=j.length);for(var C=0,I=new Array(x);C=j.length?{done:!0}:{done:!1,value:j[I++]}}}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 a=function(j,x){if(j==null)return j;if(Array.isArray(j)){for(var C=[],I=0;I"u"?"undefined":s(j)))},O=function(j,x){if(j==null)return j;if(Array.isArray(j)){for(var C=[],I=0;I"u"?"undefined":s(j))==="object"){var P=[];for(var M in j)Object.prototype.hasOwnProperty.call(j,M)&&P.push(x(j[M],M,j));return P}throw new Error("map() can't iterate on type "+(typeof j>"u"?"undefined":s(j)))},b=function(j,x){for(var C=j.criteria,I=x.criteria,P=C.length,M=0;Mw)return 1}return 0},y=function(j){for(var x=function(K){var R=j[K];B.push({criteria:I.map(function(U){return U(R)}),value:R})},C=arguments.length,I=new Array(C>1?C-1:0),P=1;P>1,w=j(x[T]),wI?T:T+1},c=function(j,x,C){var I=[].concat(j);return I.splice(l(C,j,x),0,x),I},h=function(j,x){for(var C=[],I=[],P=x,M=t(j),B;!(B=M()).done;){var w=B.value;I.push(w),P--,P||(P=x,C.push(I),I=[])}return I.length&&C.push(I),C},g=function(j){return(typeof j>"u"?"undefined":s(j))==="object"&&j!==null},p=function(){for(var j=arguments.length,x=new Array(j),C=0;C{"use strict";r.r(S),r.d(S,{ConveyorSwitch:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(O){var b=(0,s.Oc)(),y=b.act,u=b.data,f=u.slowFactor,m=u.minSpeed,d=u.maxSpeed,v=u.oneWay,_=u.position;return(0,e.jsx)(t.p8,{width:350,height:150,children:(0,e.jsx)(t.p8.Content,{children:(0,e.jsx)(n.wn,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Lever position",children:_>0?"forward":_<0?"reverse":"neutral"}),(0,e.jsx)(n.Ki.Item,{label:"Allow reverse",children:(0,e.jsx)(n.$n.Checkbox,{checked:!v,onClick:function(){return y("toggleOneWay")}})}),(0,e.jsx)(n.Ki.Item,{label:"Slowdown factor",children:(0,e.jsxs)(n.so,{children:[(0,e.jsxs)(n.so.Item,{mx:"1px",children:[" ",(0,e.jsx)(n.$n,{icon:"angle-double-left",onClick:function(){return y("slowFactor",{value:f-.5})}})," "]}),(0,e.jsxs)(n.so.Item,{mx:"1px",children:[" ",(0,e.jsx)(n.$n,{icon:"angle-left",onClick:function(){return y("slowFactor",{value:f-.1})}})," "]}),(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(n.Ap,{width:"100px",mx:"1px",value:f,fillValue:f,minValue:m,maxValue:d,step:.1,stepPixelSize:2,format:function(l){return l+"s."},onChange:function(l,c){return y("slowFactor",{value:c})}})}),(0,e.jsxs)(n.so.Item,{mx:"1px",children:[" ",(0,e.jsx)(n.$n,{icon:"angle-right",onClick:function(){return y("slowFactor",{value:f+.1})}})," "]}),(0,e.jsxs)(n.so.Item,{mx:"1px",children:[" ",(0,e.jsx)(n.$n,{icon:"angle-double-right",onClick:function(){return y("slowFactor",{value:f+.5})}})," "]})]})})]})})})})}},1942:(q,S,r)=>{"use strict";r.r(S),r.d(S,{BasicInput:()=>n});var e=r(1131),s=r(5180),n=function(t){var a=t.children,O=t.name,b=t.setValue,y=t.defaultValue,u=t.value;return u!==null&&(0,e.jsxs)(s.BJ,{onMouseDown:function(f){return f.stopPropagation()},children:[(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(s.$n,{color:"transparent",compact:!0,icon:"times",onClick:function(){return b(null,{set_null:!0})}})}),(0,e.jsx)(s.BJ.Item,{children:a})]})||(0,e.jsx)(s.$n,{color:"transparent",compact:!0,onClick:function(){return b(y)},children:O})}},1988:(q,S,r)=>{"use strict";r.r(S),r.d(S,{Uplink:()=>v});var e=r(1131),s=r(1859),n=r(5070),t=r(9845),a=r(3814),O=r(360),b=r(7003),y=r(5180),u=r(3521),f=r(538);function m(){return m=Object.assign||function(x){for(var C=1;C0?(0,e.jsxs)("i",{children:["[\u041E\u0441\u0442\u0430\u043B\u043E\u0441\u044C:",P.contractor.available_offers,"]"]}):(0,e.jsx)("i",{children:"[\u041F\u0440\u0435\u0434\u043B\u043E\u0436\u0435\u043D\u0438\u044F \u0437\u0430\u043A\u043E\u043D\u0447\u0438\u043B\u0438\u0441\u044C]"}):"",P.contractor.accepted?(0,e.jsx)("i",{children:"\xA0(\u0417\u0430\u043A\u043B\u044E\u0447\u0451\u043D)"}):!P.contractor.is_admin_forced&&P.contractor.available_offers<=0?"":(0,e.jsx)(a.G,{timeLeft:P.contractor.time_left,format:function(N,Z){return" ("+Z+")"}})]},"BecomeContractor"),(0,e.jsx)(y.tU.Tab,{onClick:function(){return I("lock")},icon:"lock",children:"\u0417\u0430\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u0442\u044C"},"LockUplink")]})}),(0,e.jsx)(y.BJ.Item,{grow:!0,children:d(w,{searchText:R,setSearchText:U,showDesc:$,setShowDesc:W})})]})})]})},_=function(x){var C=(0,O.Oc)(),I=C.act,P=C.data,M=P.crystals,B=P.cats,w=(0,b.useState)(B[0].items),T=w[0],K=w[1],R=x.searchText,U=x.setSearchText,F=x.showDesc,$=x.setShowDesc,W=function(Z,ie){ie===void 0&&(ie="");var Q=(0,t.XZ)(ie,function(V){var G=V.hijack_only?"|hijack":"";return V.name+"|"+V.desc+"|"+V.cost+"tc"+G});return(0,n.L)([function(V){return(0,s.pb)(V,function(G){return!!G?.name})},function(V){return ie?(0,s.pb)(V,Q):V},function(V){return(0,s.Ul)(V,function(G){return G?.name})}])(Z)},N=function(Z){if(U(Z),Z==="")return K(B[0].items);K(W(B.map(function(ie){return ie.items}).flat(),Z))};return(0,e.jsxs)(y.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(y.BJ,{vertical:!0,children:(0,e.jsx)(y.BJ.Item,{children:(0,e.jsx)(y.wn,{title:"\u0422\u0435\u043A\u0443\u0449\u0438\u0439 \u0431\u0430\u043B\u0430\u043D\u0441: "+M+" \u0422\u041A",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(y.$n.Checkbox,{checked:F,onClick:function(){return $(!F)},children:"\u041F\u043E\u043A\u0430\u0437\u044B\u0432\u0430\u0442\u044C \u043E\u043F\u0438\u0441\u0430\u043D\u0438\u0435"}),(0,e.jsx)(y.$n,{icon:"question",onClick:function(){return I("buyRandom")},children:"\u0421\u043B\u0443\u0447\u0430\u0439\u043D\u044B\u0439 \u043F\u0440\u0435\u0434\u043C\u0435\u0442"}),(0,e.jsx)(y.$n,{icon:"undo",onClick:function(){return I("refund")},children:"\u0421\u0434\u0435\u043B\u0430\u0442\u044C \u0432\u043E\u0437\u0432\u0440\u0430\u0442"})]}),children:(0,e.jsx)(y.pd,{fluid:!0,placeholder:"\u041F\u043E\u0438\u0441\u043A...",expensive:!0,onChange:N,value:R})})})}),(0,e.jsxs)(y.BJ,{fill:!0,mt:.3,children:[(0,e.jsx)(y.BJ.Item,{width:"26%",children:(0,e.jsx)(y.wn,{fill:!0,scrollable:!0,children:(0,e.jsx)(y.tU,{vertical:!0,children:B.map(function(Z,ie){return(0,e.jsx)(y.tU.Tab,{selected:R!==""?!1:Z.items===T,onClick:function(){K(Z.items),U("")},backgroundColor:"rgba(255, 0, 0, 0.1)",mb:.5,ml:.5,children:Z.cat},ie)})})})}),(0,e.jsx)(y.BJ.Item,{grow:!0,children:(0,e.jsx)(y.wn,{fill:!0,scrollable:!0,children:(0,e.jsx)(y.BJ,{vertical:!0,children:T.map(function(Z){return(0,e.jsx)(y.BJ.Item,{p:1,backgroundColor:"rgba(255, 0, 0, 0.1)",children:(0,e.jsx)(h,{i:Z,showDecription:F},(0,t.jT)(Z.uid))},(0,t.jT)(Z.uid))})})})})]})]})},l=function(x){var C=(0,O.Oc)(),I=C.act,P=C.data,M=P.cart,B=P.crystals,w=P.cart_price,T=x.showDesc,K=x.setShowDesc;return(0,e.jsxs)(y.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(y.BJ.Item,{grow:!0,children:(0,e.jsx)(y.wn,{fill:!0,scrollable:!0,title:"\u0422\u0435\u043A\u0443\u0449\u0438\u0439 \u0431\u0430\u043B\u0430\u043D\u0441: "+B+" \u0422\u041A",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(y.$n.Checkbox,{checked:T,onClick:function(){return K(!T)},children:"\u041F\u043E\u043A\u0430\u0437\u044B\u0432\u0430\u0442\u044C \u043E\u043F\u0438\u0441\u0430\u043D\u0438\u0435"}),(0,e.jsx)(y.$n,{icon:"trash",onClick:function(){return I("empty_cart")},disabled:!M,children:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u043A\u043E\u0440\u0437\u0438\u043D\u0443"}),(0,e.jsx)(y.$n,{icon:"shopping-cart",onClick:function(){return I("purchase_cart")},disabled:!M||w>B,children:"\u041A\u0443\u043F\u0438\u0442\u044C \u043A\u043E\u0440\u0437\u0438\u043D\u0443 ("+w+"TC)"})]}),children:(0,e.jsx)(y.BJ,{vertical:!0,children:M?M.map(function(R){return(0,e.jsx)(y.BJ.Item,{p:1,mr:1,backgroundColor:"rgba(255, 0, 0, 0.1)",children:(0,e.jsx)(h,{i:R,showDecription:T,buttons:(0,e.jsx)(p,{i:R})})},(0,t.jT)(R.name))}):(0,e.jsx)(y.az,{italic:!0,children:"\u0412\u0430\u0448\u0430 \u043A\u043E\u0440\u0437\u0438\u043D\u0430 \u043F\u0443\u0441\u0442\u0430!"})})})}),(0,e.jsx)(c,m({},x))]})},c=function(x){var C=(0,O.Oc)(),I=C.act,P=C.data,M=P.cats,B=P.lucky_numbers,w=x.showDesc;return(0,e.jsx)(y.BJ.Item,{grow:!0,children:(0,e.jsx)(y.wn,{fill:!0,scrollable:!0,title:"\u0420\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0443\u0435\u043C\u044B\u0435 \u0442\u043E\u0432\u0430\u0440\u044B",buttons:(0,e.jsx)(y.$n,{icon:"dice",onClick:function(){return I("shuffle_lucky_numbers")},children:"\u041D\u043E\u0432\u044B\u0435 \u0440\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0430\u0446\u0438\u0438"}),children:(0,e.jsx)(y.BJ,{wrap:!0,children:B.map(function(T){return M[T.cat].items[T.item]}).filter(function(T){return T!=null}).map(function(T,K){return(0,e.jsx)(y.BJ.Item,{p:1,mb:1,ml:1,width:34,backgroundColor:"rgba(255, 0, 0, 0.15)",children:(0,e.jsx)(h,{grow:!0,i:T,showDecription:w})},K)})})})})},h=function(x){var C=x.i,I=x.showDecription,P=I===void 0?1:I,M=x.buttons,B=M===void 0?(0,e.jsx)(g,{i:C}):M;return(0,e.jsxs)(y.wn,{title:(0,t.jT)(C.name),children:[P?(0,e.jsx)(y.az,{italic:!0,children:(0,t.jT)(C.desc)}):null,(0,e.jsx)(y.az,{mt:2,children:B})]})},g=function(x){var C=(0,O.Oc)(),I=C.act,P=C.data,M=x.i,B=P.crystals;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(y.$n,{icon:"shopping-cart",color:M.hijack_only&&"red",tooltip:"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0432 \u043A\u043E\u0440\u0437\u0438\u043D\u0443",tooltipPosition:"left",onClick:function(){return I("add_to_cart",{item:M.obj_path})},disabled:M.cost>B}),(0,e.jsx)(y.$n,{color:M.hijack_only&&"red",tooltip:M.hijack_only&&"\u0422\u043E\u043B\u044C\u043A\u043E \u0434\u043B\u044F \u0430\u0433\u0435\u043D\u0442\u043E\u0432, \u0438\u043C\u0435\u044E\u0449\u0438\u0445 \u0446\u0435\u043B\u044C \u2014 \u0443\u0433\u043E\u043D \u044D\u0432\u0430\u043A\u0443\u0430\u0446\u0438\u043E\u043D\u043D\u043E\u0433\u043E \u0448\u0430\u0442\u0442\u043B\u0430!",tooltipPosition:"left",onClick:function(){return I("buyItem",{item:M.obj_path})},disabled:M.cost>B,children:"\u041A\u0443\u043F\u0438\u0442\u044C ("+M.cost+" \u0422\u041A)"+(M.refundable?" [\u0412\u043E\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043C\u044B\u0439]":"")})]})},p=function(x){var C=(0,O.Oc)().act,I=x.i;return(0,e.jsxs)(y.BJ,{children:[(0,e.jsx)(y.$n,{icon:"times",tooltip:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0438\u0437 \u043A\u043E\u0440\u0437\u0438\u043D\u044B",tooltipPosition:"left",onClick:function(){return C("remove_from_cart",{item:I.obj_path})},children:"("+I.cost*I.amount+" \u0422\u041A)"}),(0,e.jsx)(y.$n,{icon:"minus",tooltip:I.limit===0&&"\u0421\u043A\u0438\u0434\u043A\u0430 \u0443\u0436\u0435 \u0430\u043A\u0442\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u0430!",ml:"5px",onClick:function(){return C("set_cart_item_quantity",{item:I.obj_path,quantity:--I.amount})},disabled:I.amount<=0}),(0,e.jsx)(y.$n.Input,{width:"45px",tooltipPosition:"bottom-end",tooltip:I.limit===0&&"\u0421\u043A\u0438\u0434\u043A\u0430 \u0443\u0436\u0435 \u0430\u043A\u0442\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u0430!",onCommit:function(P,M){return C("set_cart_item_quantity",{item:I.obj_path,quantity:M})},disabled:I.limit!==-1&&I.amount>=I.limit&&I.amount<=0,children:I.amount}),(0,e.jsx)(y.$n,{mb:.3,icon:"plus",tooltipPosition:"bottom-start",tooltip:I.limit===0&&"\u0421\u043A\u0438\u0434\u043A\u0430 \u0443\u0436\u0435 \u0430\u043A\u0442\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u0430!",onClick:function(){return C("set_cart_item_quantity",{item:I.obj_path,quantity:++I.amount})},disabled:I.limit!==-1&&I.amount>=I.limit})]})},j=function(x){var C=(0,O.Oc)().data,I=C.exploitable,P=I===void 0?[]:I,M=(0,b.useState)(P[0]),B=M[0],w=M[1],T=(0,b.useState)(""),K=T[0],R=T[1],U=function($,W){W===void 0&&(W="");var N=(0,t.XZ)(W,function(Z){return Z?.name});return(0,n.L)([function(Z){return(0,s.pb)(Z,function(ie){return!!ie?.name})},function(Z){return W?(0,s.pb)(Z,N):Z},function(Z){return(0,s.Ul)(Z,function(ie){return ie?.name})}])($)},F=U(P,K);return(0,e.jsx)(y.wn,{fill:!0,title:"\u0417\u0430\u043F\u0438\u0441\u0438 \u043E\u0431 \u044D\u043A\u0438\u043F\u0430\u0436\u0435",children:(0,e.jsxs)(y.BJ,{fill:!0,children:[(0,e.jsx)(y.BJ.Item,{width:"30%",children:(0,e.jsxs)(y.wn,{fill:!0,scrollable:!0,children:[(0,e.jsx)(y.pd,{fluid:!0,mb:1,placeholder:"\u041F\u043E\u0438\u0441\u043A...",expensive:!0,onChange:R}),(0,e.jsx)(y.tU,{vertical:!0,children:F.map(function($){return(0,e.jsx)(y.tU.Tab,{selected:$===B,onClick:function(){return w($)},children:$?.name},$)})})]})}),(0,e.jsx)(y.cG,{vertical:!0}),(0,e.jsx)(y.BJ.Item,{grow:!0,children:(0,e.jsx)(y.wn,{fill:!0,title:B?.name,scrollable:!0,children:(0,e.jsxs)(y.Ki,{children:[(0,e.jsx)(y.Ki.Item,{label:"\u0412\u043E\u0437\u0440\u0430\u0441\u0442",children:B.age}),(0,e.jsx)(y.Ki.Item,{label:"\u041E\u0442\u043F\u0435\u0447\u0430\u0442\u043E\u043A \u043F\u0430\u043B\u044C\u0446\u0435\u0432",children:B.fingerprint}),(0,e.jsx)(y.Ki.Item,{label:"\u0414\u043E\u043B\u0436\u043D\u043E\u0441\u0442\u044C",children:B.rank}),(0,e.jsx)(y.Ki.Item,{label:"\u041F\u043E\u043B",children:B.sex}),(0,e.jsx)(y.Ki.Item,{label:"\u0420\u0430\u0441\u0430",children:B.species}),(0,e.jsx)(y.Ki.Item,{label:"\u0417\u0430\u043F\u0438\u0441\u0438",children:B.exploit_record})]})})})]})})};(0,f.modalRegisterBodyOverride)("become_contractor",function(x){var C,I,P,M,B=(0,O.Oc)().data,w=(B.contractor||{}).time_left,T=!!(!(B==null||(C=B.contractor)==null)&&C.available),K=!!(!(B==null||(I=B.contractor)==null)&&I.affordable),R=!!(!(B==null||(P=B.contractor)==null)&&P.accepted),U=(B.contractor||{}).available_offers,F=!!(!(B==null||(M=B.contractor)==null)&&M.is_admin_forced);return(0,e.jsxs)(y.wn,{height:"65%",m:"-1rem",pb:"1rem",title:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(y.In,{name:"suitcase"}),"\xA0 \u0417\u0430\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u043A\u043E\u043D\u0442\u0440\u0430\u043A\u0442\u0430"]}),children:[(0,e.jsxs)(y.az,{mx:"0.8rem",mb:"1rem",children:[(0,e.jsx)("b",{children:'\u0412\u0430\u0448\u0438 \u0434\u043E\u0441\u0442\u0438\u0436\u0435\u043D\u0438\u044F \u0432 \u0441\u043B\u0443\u0436\u0431\u0435 \\"\u0421\u0438\u043D\u0434\u0438\u043A\u0430\u0442\u0443\\" \u0431\u044B\u043B\u0438 \u043E\u0442\u043C\u0435\u0447\u0435\u043D\u044B, \u0430\u0433\u0435\u043D\u0442! \u041C\u044B \u0440\u0430\u0434\u044B \u043F\u0440\u0435\u0434\u043B\u043E\u0436\u0438\u0442\u044C \u0432\u0430\u043C \u0443\u043D\u0438\u043A\u0430\u043B\u044C\u043D\u0443\u044E \u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E\u0441\u0442\u044C \u0441\u0442\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0440\u0430\u043A\u0442\u043D\u0438\u043A\u043E\u043C.'}),(0,e.jsx)("br",{}),(0,e.jsx)("br",{}),"\u041C\u044B \u043F\u0440\u0435\u0434\u043B\u0430\u0433\u0430\u0435\u043C \u0432\u0430\u043C \u043F\u043E\u0432\u044B\u0448\u0435\u043D\u0438\u0435 \u0434\u043E \u0443\u0440\u043E\u0432\u043D\u044F \u043A\u043E\u043D\u0442\u0440\u0430\u043A\u0442\u043D\u0438\u043A\u0430 \u0432\u0441\u0435\u0433\u043E \u0437\u0430 100 \u0442\u0435\u043B\u0435\u043A\u0440\u0438\u0441\u0442\u0430\u043B\u043B\u043E\u0432. \u042D\u0442\u043E \u043F\u043E\u0437\u0432\u043E\u043B\u0438\u0442 \u0432\u0430\u043C \u0437\u0430\u043A\u043B\u044E\u0447\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0440\u0430\u043A\u0442\u044B \u043D\u0430 \u043F\u043E\u0445\u0438\u0449\u0435\u043D\u0438\u0435 \u043B\u044E\u0434\u0435\u0439, \u043F\u043E\u043B\u0443\u0447\u0430\u044F \u0437\u0430 \u0441\u0432\u043E\u044E \u0440\u0430\u0431\u043E\u0442\u0443 \u0442\u0435\u043B\u0435\u043A\u0440\u0438\u0441\u0442\u0430\u043B\u043B\u044B \u0438 \u043A\u0440\u0435\u0434\u0438\u0442\u044B.",(0,e.jsx)("br",{}),"\u041A\u0440\u043E\u043C\u0435 \u0442\u043E\u0433\u043E, \u0432\u0430\u043C \u0431\u0443\u0434\u0435\u0442 \u0432\u044B\u0434\u0430\u043D \u0441\u0442\u0430\u043D\u0434\u0430\u0440\u0442\u043D\u044B\u0439 \u043D\u0430\u0431\u043E\u0440 \u043A\u043E\u043D\u0442\u0440\u0430\u043A\u0442\u043D\u0438\u043A\u0430, \u0441\u043F\u0435\u0446\u0438\u0430\u043B\u044C\u043D\u044B\u0439 \u0430\u043F\u043B\u0438\u043D\u043A \u043A\u043E\u043D\u0442\u0440\u0430\u043A\u0442\u043D\u0438\u043A\u0430, \u0440\u0443\u043A\u043E\u0432\u043E\u0434\u0441\u0442\u0432\u043E \u0438 \u0442\u0440\u0438 \u0441\u043B\u0443\u0447\u0430\u0439\u043D\u044B\u0445 \u043D\u0435\u0434\u043E\u0440\u043E\u0433\u0438\u0445 \u043F\u0440\u0435\u0434\u043C\u0435\u0442\u0430.",(0,e.jsx)("br",{}),(0,e.jsx)("br",{}),"\u0411\u043E\u043B\u0435\u0435 \u043F\u043E\u0434\u0440\u043E\u0431\u043D\u044B\u0435 \u0438\u043D\u0441\u0442\u0440\u0443\u043A\u0446\u0438\u0438 \u0432\u044B \u0441\u043C\u043E\u0436\u0435\u0442\u0435 \u043D\u0430\u0439\u0442\u0438 \u0432 \u0440\u0443\u043A\u043E\u0432\u043E\u0434\u0441\u0442\u0432\u0435, \u043A\u043E\u0442\u043E\u0440\u043E\u0435 \u043F\u0440\u0438\u043B\u0430\u0433\u0430\u0435\u0442\u0441\u044F \u043A \u043A\u043E\u043C\u043F\u043B\u0435\u043A\u0442\u0443, \u0435\u0441\u043B\u0438 \u0440\u0435\u0448\u0438\u0442\u0435 \u0432\u043E\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C\u0441\u044F \u043D\u0430\u0448\u0438\u043C \u043F\u0440\u0435\u0434\u043B\u043E\u0436\u0435\u043D\u0438\u0435\u043C.",F?"":(0,e.jsxs)(y.az,{children:["\u041D\u0435 \u0443\u043F\u0443\u0441\u0442\u0438\u0442\u0435 \u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E\u0441\u0442\u044C! \u0412\u044B \u043D\u0435 \u0435\u0434\u0438\u043D\u0441\u0442\u0432\u0435\u043D\u043D\u044B\u0439, \u043A\u0442\u043E \u043F\u043E\u043B\u0443\u0447\u0438\u043B \u044D\u0442\u043E \u043F\u0440\u0435\u0434\u043B\u043E\u0436\u0435\u043D\u0438\u0435. \u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0445 \u043F\u0440\u0435\u0434\u043B\u043E\u0436\u0435\u043D\u0438\u0439 \u043E\u0433\u0440\u0430\u043D\u0438\u0447\u0435\u043D\u043E, \u0438 \u0435\u0441\u043B\u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u0430\u0433\u0435\u043D\u0442\u044B \u043F\u0440\u0438\u043C\u0443\u0442 \u0438\u0445 \u0440\u0430\u043D\u044C\u0448\u0435 \u0432\u0430\u0441, \u0442\u043E \u0443 \u0432\u0430\u0441 \u043D\u0435 \u043E\u0441\u0442\u0430\u043D\u0435\u0442\u0441\u044F \u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E\u0441\u0442\u0438 \u043F\u0440\u0438\u043D\u044F\u0442\u044C \u0443\u0447\u0430\u0441\u0442\u0438\u0435.",(0,e.jsx)("br",{}),(0,e.jsxs)("b",{children:["\u0414\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0435 \u043F\u0440\u0435\u0434\u043B\u043E\u0436\u0435\u043D\u0438\u044F: ",U]})]})]}),(0,e.jsx)(y.$n.Confirm,{disabled:!T||R,italic:!T,bold:T,icon:T&&!R&&"check",color:"good",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){return(0,f.modalAnswer)(x.id,1)},children:R?"\u0417\u0430\u043A\u043B\u044E\u0447\u0451\u043D":T?["\u041F\u0440\u0438\u043D\u044F\u0442\u044C \u043F\u0440\u0435\u0434\u043B\u043E\u0436\u0435\u043D\u0438\u0435",(0,e.jsx)(a.G,{timeLeft:w,format:function($,W){return" ("+W+")"}},"countdown")]:K?B.contractor.is_admin_forced?"\u0421\u0440\u043E\u043A \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044F \u043F\u0440\u0435\u0434\u043B\u043E\u0436\u0435\u043D\u0438\u044F \u0438\u0441\u0442\u0435\u043A":B.contractor.available_offers>0?(0,e.jsxs)("i",{children:["[\u041E\u0441\u0442\u0430\u043B\u043E\u0441\u044C:",B.contractor.available_offers,"]"]}):(0,e.jsx)("i",{children:"[\u041F\u0440\u0435\u0434\u043B\u043E\u0436\u0435\u043D\u0438\u044F \u0437\u0430\u043A\u043E\u043D\u0447\u0438\u043B\u0438\u0441\u044C]"}):"\u041D\u0435\u0434\u043E\u0441\u0442\u0430\u0442\u043E\u0447\u043D\u043E \u0422\u041A"})]})})},1997:(q,S,r)=>{"use strict";r.r(S),r.d(S,{LoadingScreen:()=>n});var e=r(1131),s=r(5180),n=function(t){return(0,e.jsxs)(s.BJ,{align:"center",fill:!0,justify:"center",vertical:!0,children:[(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(s.In,{color:"blue",name:"toolbox",spin:!0,size:4})}),(0,e.jsx)(s.BJ.Item,{children:"Please wait..."})]})}},2036:(q,S,r)=>{"use strict";r.r(S),r.d(S,{meta:()=>a});var e=r(1131),s=r(8523),n=r(5180),t=r(8477);/** + */function e(j,x){(x==null||x>j.length)&&(x=j.length);for(var C=0,I=new Array(x);C=j.length?{done:!0}:{done:!1,value:j[I++]}}}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 a=function(j,x){if(j==null)return j;if(Array.isArray(j)){for(var C=[],I=0;I"u"?"undefined":s(j)))},b=function(j,x){if(j==null)return j;if(Array.isArray(j)){for(var C=[],I=0;I"u"?"undefined":s(j))==="object"){var P=[];for(var M in j)Object.prototype.hasOwnProperty.call(j,M)&&P.push(x(j[M],M,j));return P}throw new Error("map() can't iterate on type "+(typeof j>"u"?"undefined":s(j)))},O=function(j,x){for(var C=j.criteria,I=x.criteria,P=C.length,M=0;Mw)return 1}return 0},y=function(j){for(var x=function(K){var R=j[K];B.push({criteria:I.map(function(U){return U(R)}),value:R})},C=arguments.length,I=new Array(C>1?C-1:0),P=1;P>1,w=j(x[T]),wI?T:T+1},c=function(j,x,C){var I=[].concat(j);return I.splice(l(C,j,x),0,x),I},h=function(j,x){for(var C=[],I=[],P=x,M=t(j),B;!(B=M()).done;){var w=B.value;I.push(w),P--,P||(P=x,C.push(I),I=[])}return I.length&&C.push(I),C},g=function(j){return(typeof j>"u"?"undefined":s(j))==="object"&&j!==null},p=function(){for(var j=arguments.length,x=new Array(j),C=0;C{"use strict";r.r(S),r.d(S,{ConveyorSwitch:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(b){var O=(0,s.Oc)(),y=O.act,u=O.data,f=u.slowFactor,m=u.minSpeed,d=u.maxSpeed,v=u.oneWay,_=u.position;return(0,e.jsx)(t.p8,{width:350,height:150,children:(0,e.jsx)(t.p8.Content,{children:(0,e.jsx)(n.wn,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Lever position",children:_>0?"forward":_<0?"reverse":"neutral"}),(0,e.jsx)(n.Ki.Item,{label:"Allow reverse",children:(0,e.jsx)(n.$n.Checkbox,{checked:!v,onClick:function(){return y("toggleOneWay")}})}),(0,e.jsx)(n.Ki.Item,{label:"Slowdown factor",children:(0,e.jsxs)(n.so,{children:[(0,e.jsxs)(n.so.Item,{mx:"1px",children:[" ",(0,e.jsx)(n.$n,{icon:"angle-double-left",onClick:function(){return y("slowFactor",{value:f-.5})}})," "]}),(0,e.jsxs)(n.so.Item,{mx:"1px",children:[" ",(0,e.jsx)(n.$n,{icon:"angle-left",onClick:function(){return y("slowFactor",{value:f-.1})}})," "]}),(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(n.Ap,{width:"100px",mx:"1px",value:f,fillValue:f,minValue:m,maxValue:d,step:.1,stepPixelSize:2,format:function(l){return l+"s."},onChange:function(l,c){return y("slowFactor",{value:c})}})}),(0,e.jsxs)(n.so.Item,{mx:"1px",children:[" ",(0,e.jsx)(n.$n,{icon:"angle-right",onClick:function(){return y("slowFactor",{value:f+.1})}})," "]}),(0,e.jsxs)(n.so.Item,{mx:"1px",children:[" ",(0,e.jsx)(n.$n,{icon:"angle-double-right",onClick:function(){return y("slowFactor",{value:f+.5})}})," "]})]})})]})})})})}},1942:(q,S,r)=>{"use strict";r.r(S),r.d(S,{BasicInput:()=>n});var e=r(1131),s=r(5180),n=function(t){var a=t.children,b=t.name,O=t.setValue,y=t.defaultValue,u=t.value;return u!==null&&(0,e.jsxs)(s.BJ,{onMouseDown:function(f){return f.stopPropagation()},children:[(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(s.$n,{color:"transparent",compact:!0,icon:"times",onClick:function(){return O(null,{set_null:!0})}})}),(0,e.jsx)(s.BJ.Item,{children:a})]})||(0,e.jsx)(s.$n,{color:"transparent",compact:!0,onClick:function(){return O(y)},children:b})}},1988:(q,S,r)=>{"use strict";r.r(S),r.d(S,{Uplink:()=>v});var e=r(1131),s=r(1859),n=r(5070),t=r(9845),a=r(3814),b=r(360),O=r(7003),y=r(5180),u=r(3521),f=r(538);function m(){return m=Object.assign||function(x){for(var C=1;C0?(0,e.jsxs)("i",{children:["[\u041E\u0441\u0442\u0430\u043B\u043E\u0441\u044C:",P.contractor.available_offers,"]"]}):(0,e.jsx)("i",{children:"[\u041F\u0440\u0435\u0434\u043B\u043E\u0436\u0435\u043D\u0438\u044F \u0437\u0430\u043A\u043E\u043D\u0447\u0438\u043B\u0438\u0441\u044C]"}):"",P.contractor.accepted?(0,e.jsx)("i",{children:"\xA0(\u0417\u0430\u043A\u043B\u044E\u0447\u0451\u043D)"}):!P.contractor.is_admin_forced&&P.contractor.available_offers<=0?"":(0,e.jsx)(a.G,{timeLeft:P.contractor.time_left,format:function(N,Z){return" ("+Z+")"}})]},"BecomeContractor"),(0,e.jsx)(y.tU.Tab,{onClick:function(){return I("lock")},icon:"lock",children:"\u0417\u0430\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u0442\u044C"},"LockUplink")]})}),(0,e.jsx)(y.BJ.Item,{grow:!0,children:d(w,{searchText:R,setSearchText:U,showDesc:$,setShowDesc:W})})]})})]})},_=function(x){var C=(0,b.Oc)(),I=C.act,P=C.data,M=P.crystals,B=P.cats,w=(0,O.useState)(B[0].items),T=w[0],K=w[1],R=x.searchText,U=x.setSearchText,F=x.showDesc,$=x.setShowDesc,W=function(Z,ie){ie===void 0&&(ie="");var Q=(0,t.XZ)(ie,function(V){var G=V.hijack_only?"|hijack":"";return V.name+"|"+V.desc+"|"+V.cost+"tc"+G});return(0,n.L)([function(V){return(0,s.pb)(V,function(G){return!!G?.name})},function(V){return ie?(0,s.pb)(V,Q):V},function(V){return(0,s.Ul)(V,function(G){return G?.name})}])(Z)},N=function(Z){if(U(Z),Z==="")return K(B[0].items);K(W(B.map(function(ie){return ie.items}).flat(),Z))};return(0,e.jsxs)(y.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(y.BJ,{vertical:!0,children:(0,e.jsx)(y.BJ.Item,{children:(0,e.jsx)(y.wn,{title:"\u0422\u0435\u043A\u0443\u0449\u0438\u0439 \u0431\u0430\u043B\u0430\u043D\u0441: "+M+" \u0422\u041A",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(y.$n.Checkbox,{checked:F,onClick:function(){return $(!F)},children:"\u041F\u043E\u043A\u0430\u0437\u044B\u0432\u0430\u0442\u044C \u043E\u043F\u0438\u0441\u0430\u043D\u0438\u0435"}),(0,e.jsx)(y.$n,{icon:"question",onClick:function(){return I("buyRandom")},children:"\u0421\u043B\u0443\u0447\u0430\u0439\u043D\u044B\u0439 \u043F\u0440\u0435\u0434\u043C\u0435\u0442"}),(0,e.jsx)(y.$n,{icon:"undo",onClick:function(){return I("refund")},children:"\u0421\u0434\u0435\u043B\u0430\u0442\u044C \u0432\u043E\u0437\u0432\u0440\u0430\u0442"})]}),children:(0,e.jsx)(y.pd,{fluid:!0,placeholder:"\u041F\u043E\u0438\u0441\u043A...",expensive:!0,onChange:N,value:R})})})}),(0,e.jsxs)(y.BJ,{fill:!0,mt:.3,children:[(0,e.jsx)(y.BJ.Item,{width:"26%",children:(0,e.jsx)(y.wn,{fill:!0,scrollable:!0,children:(0,e.jsx)(y.tU,{vertical:!0,children:B.map(function(Z,ie){return(0,e.jsx)(y.tU.Tab,{selected:R!==""?!1:Z.items===T,onClick:function(){K(Z.items),U("")},backgroundColor:"rgba(255, 0, 0, 0.1)",mb:.5,ml:.5,children:Z.cat},ie)})})})}),(0,e.jsx)(y.BJ.Item,{grow:!0,children:(0,e.jsx)(y.wn,{fill:!0,scrollable:!0,children:(0,e.jsx)(y.BJ,{vertical:!0,children:T.map(function(Z){return(0,e.jsx)(y.BJ.Item,{p:1,backgroundColor:"rgba(255, 0, 0, 0.1)",children:(0,e.jsx)(h,{i:Z,showDecription:F},(0,t.jT)(Z.uid))},(0,t.jT)(Z.uid))})})})})]})]})},l=function(x){var C=(0,b.Oc)(),I=C.act,P=C.data,M=P.cart,B=P.crystals,w=P.cart_price,T=x.showDesc,K=x.setShowDesc;return(0,e.jsxs)(y.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(y.BJ.Item,{grow:!0,children:(0,e.jsx)(y.wn,{fill:!0,scrollable:!0,title:"\u0422\u0435\u043A\u0443\u0449\u0438\u0439 \u0431\u0430\u043B\u0430\u043D\u0441: "+B+" \u0422\u041A",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(y.$n.Checkbox,{checked:T,onClick:function(){return K(!T)},children:"\u041F\u043E\u043A\u0430\u0437\u044B\u0432\u0430\u0442\u044C \u043E\u043F\u0438\u0441\u0430\u043D\u0438\u0435"}),(0,e.jsx)(y.$n,{icon:"trash",onClick:function(){return I("empty_cart")},disabled:!M,children:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u043A\u043E\u0440\u0437\u0438\u043D\u0443"}),(0,e.jsx)(y.$n,{icon:"shopping-cart",onClick:function(){return I("purchase_cart")},disabled:!M||w>B,children:"\u041A\u0443\u043F\u0438\u0442\u044C \u043A\u043E\u0440\u0437\u0438\u043D\u0443 ("+w+"TC)"})]}),children:(0,e.jsx)(y.BJ,{vertical:!0,children:M?M.map(function(R){return(0,e.jsx)(y.BJ.Item,{p:1,mr:1,backgroundColor:"rgba(255, 0, 0, 0.1)",children:(0,e.jsx)(h,{i:R,showDecription:T,buttons:(0,e.jsx)(p,{i:R})})},(0,t.jT)(R.name))}):(0,e.jsx)(y.az,{italic:!0,children:"\u0412\u0430\u0448\u0430 \u043A\u043E\u0440\u0437\u0438\u043D\u0430 \u043F\u0443\u0441\u0442\u0430!"})})})}),(0,e.jsx)(c,m({},x))]})},c=function(x){var C=(0,b.Oc)(),I=C.act,P=C.data,M=P.cats,B=P.lucky_numbers,w=x.showDesc;return(0,e.jsx)(y.BJ.Item,{grow:!0,children:(0,e.jsx)(y.wn,{fill:!0,scrollable:!0,title:"\u0420\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0443\u0435\u043C\u044B\u0435 \u0442\u043E\u0432\u0430\u0440\u044B",buttons:(0,e.jsx)(y.$n,{icon:"dice",onClick:function(){return I("shuffle_lucky_numbers")},children:"\u041D\u043E\u0432\u044B\u0435 \u0440\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0430\u0446\u0438\u0438"}),children:(0,e.jsx)(y.BJ,{wrap:!0,children:B.map(function(T){return M[T.cat].items[T.item]}).filter(function(T){return T!=null}).map(function(T,K){return(0,e.jsx)(y.BJ.Item,{p:1,mb:1,ml:1,width:34,backgroundColor:"rgba(255, 0, 0, 0.15)",children:(0,e.jsx)(h,{grow:!0,i:T,showDecription:w})},K)})})})})},h=function(x){var C=x.i,I=x.showDecription,P=I===void 0?1:I,M=x.buttons,B=M===void 0?(0,e.jsx)(g,{i:C}):M;return(0,e.jsxs)(y.wn,{title:(0,t.jT)(C.name),children:[P?(0,e.jsx)(y.az,{italic:!0,children:(0,t.jT)(C.desc)}):null,(0,e.jsx)(y.az,{mt:2,children:B})]})},g=function(x){var C=(0,b.Oc)(),I=C.act,P=C.data,M=x.i,B=P.crystals;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(y.$n,{icon:"shopping-cart",color:M.hijack_only&&"red",tooltip:"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0432 \u043A\u043E\u0440\u0437\u0438\u043D\u0443",tooltipPosition:"left",onClick:function(){return I("add_to_cart",{item:M.obj_path})},disabled:M.cost>B}),(0,e.jsx)(y.$n,{color:M.hijack_only&&"red",tooltip:M.hijack_only&&"\u0422\u043E\u043B\u044C\u043A\u043E \u0434\u043B\u044F \u0430\u0433\u0435\u043D\u0442\u043E\u0432, \u0438\u043C\u0435\u044E\u0449\u0438\u0445 \u0446\u0435\u043B\u044C \u2014 \u0443\u0433\u043E\u043D \u044D\u0432\u0430\u043A\u0443\u0430\u0446\u0438\u043E\u043D\u043D\u043E\u0433\u043E \u0448\u0430\u0442\u0442\u043B\u0430!",tooltipPosition:"left",onClick:function(){return I("buyItem",{item:M.obj_path})},disabled:M.cost>B,children:"\u041A\u0443\u043F\u0438\u0442\u044C ("+M.cost+" \u0422\u041A)"+(M.refundable?" [\u0412\u043E\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043C\u044B\u0439]":"")})]})},p=function(x){var C=(0,b.Oc)().act,I=x.i;return(0,e.jsxs)(y.BJ,{children:[(0,e.jsx)(y.$n,{icon:"times",tooltip:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0438\u0437 \u043A\u043E\u0440\u0437\u0438\u043D\u044B",tooltipPosition:"left",onClick:function(){return C("remove_from_cart",{item:I.obj_path})},children:"("+I.cost*I.amount+" \u0422\u041A)"}),(0,e.jsx)(y.$n,{icon:"minus",tooltip:I.limit===0&&"\u0421\u043A\u0438\u0434\u043A\u0430 \u0443\u0436\u0435 \u0430\u043A\u0442\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u0430!",ml:"5px",onClick:function(){return C("set_cart_item_quantity",{item:I.obj_path,quantity:--I.amount})},disabled:I.amount<=0}),(0,e.jsx)(y.$n.Input,{width:"45px",tooltipPosition:"bottom-end",tooltip:I.limit===0&&"\u0421\u043A\u0438\u0434\u043A\u0430 \u0443\u0436\u0435 \u0430\u043A\u0442\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u0430!",onCommit:function(P,M){return C("set_cart_item_quantity",{item:I.obj_path,quantity:M})},disabled:I.limit!==-1&&I.amount>=I.limit&&I.amount<=0,children:I.amount}),(0,e.jsx)(y.$n,{mb:.3,icon:"plus",tooltipPosition:"bottom-start",tooltip:I.limit===0&&"\u0421\u043A\u0438\u0434\u043A\u0430 \u0443\u0436\u0435 \u0430\u043A\u0442\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u0430!",onClick:function(){return C("set_cart_item_quantity",{item:I.obj_path,quantity:++I.amount})},disabled:I.limit!==-1&&I.amount>=I.limit})]})},j=function(x){var C=(0,b.Oc)().data,I=C.exploitable,P=I===void 0?[]:I,M=(0,O.useState)(P[0]),B=M[0],w=M[1],T=(0,O.useState)(""),K=T[0],R=T[1],U=function($,W){W===void 0&&(W="");var N=(0,t.XZ)(W,function(Z){return Z?.name});return(0,n.L)([function(Z){return(0,s.pb)(Z,function(ie){return!!ie?.name})},function(Z){return W?(0,s.pb)(Z,N):Z},function(Z){return(0,s.Ul)(Z,function(ie){return ie?.name})}])($)},F=U(P,K);return(0,e.jsx)(y.wn,{fill:!0,title:"\u0417\u0430\u043F\u0438\u0441\u0438 \u043E\u0431 \u044D\u043A\u0438\u043F\u0430\u0436\u0435",children:(0,e.jsxs)(y.BJ,{fill:!0,children:[(0,e.jsx)(y.BJ.Item,{width:"30%",children:(0,e.jsxs)(y.wn,{fill:!0,scrollable:!0,children:[(0,e.jsx)(y.pd,{fluid:!0,mb:1,placeholder:"\u041F\u043E\u0438\u0441\u043A...",expensive:!0,onChange:R}),(0,e.jsx)(y.tU,{vertical:!0,children:F.map(function($){return(0,e.jsx)(y.tU.Tab,{selected:$===B,onClick:function(){return w($)},children:$?.name},$)})})]})}),(0,e.jsx)(y.cG,{vertical:!0}),(0,e.jsx)(y.BJ.Item,{grow:!0,children:(0,e.jsx)(y.wn,{fill:!0,title:B?.name,scrollable:!0,children:(0,e.jsxs)(y.Ki,{children:[(0,e.jsx)(y.Ki.Item,{label:"\u0412\u043E\u0437\u0440\u0430\u0441\u0442",children:B.age}),(0,e.jsx)(y.Ki.Item,{label:"\u041E\u0442\u043F\u0435\u0447\u0430\u0442\u043E\u043A \u043F\u0430\u043B\u044C\u0446\u0435\u0432",children:B.fingerprint}),(0,e.jsx)(y.Ki.Item,{label:"\u0414\u043E\u043B\u0436\u043D\u043E\u0441\u0442\u044C",children:B.rank}),(0,e.jsx)(y.Ki.Item,{label:"\u041F\u043E\u043B",children:B.sex}),(0,e.jsx)(y.Ki.Item,{label:"\u0420\u0430\u0441\u0430",children:B.species}),(0,e.jsx)(y.Ki.Item,{label:"\u0417\u0430\u043F\u0438\u0441\u0438",children:B.exploit_record})]})})})]})})};(0,f.modalRegisterBodyOverride)("become_contractor",function(x){var C,I,P,M,B=(0,b.Oc)().data,w=(B.contractor||{}).time_left,T=!!(!(B==null||(C=B.contractor)==null)&&C.available),K=!!(!(B==null||(I=B.contractor)==null)&&I.affordable),R=!!(!(B==null||(P=B.contractor)==null)&&P.accepted),U=(B.contractor||{}).available_offers,F=!!(!(B==null||(M=B.contractor)==null)&&M.is_admin_forced);return(0,e.jsxs)(y.wn,{height:"65%",m:"-1rem",pb:"1rem",title:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(y.In,{name:"suitcase"}),"\xA0 \u0417\u0430\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u043A\u043E\u043D\u0442\u0440\u0430\u043A\u0442\u0430"]}),children:[(0,e.jsxs)(y.az,{mx:"0.8rem",mb:"1rem",children:[(0,e.jsx)("b",{children:'\u0412\u0430\u0448\u0438 \u0434\u043E\u0441\u0442\u0438\u0436\u0435\u043D\u0438\u044F \u0432 \u0441\u043B\u0443\u0436\u0431\u0435 \\"\u0421\u0438\u043D\u0434\u0438\u043A\u0430\u0442\u0443\\" \u0431\u044B\u043B\u0438 \u043E\u0442\u043C\u0435\u0447\u0435\u043D\u044B, \u0430\u0433\u0435\u043D\u0442! \u041C\u044B \u0440\u0430\u0434\u044B \u043F\u0440\u0435\u0434\u043B\u043E\u0436\u0438\u0442\u044C \u0432\u0430\u043C \u0443\u043D\u0438\u043A\u0430\u043B\u044C\u043D\u0443\u044E \u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E\u0441\u0442\u044C \u0441\u0442\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0440\u0430\u043A\u0442\u043D\u0438\u043A\u043E\u043C.'}),(0,e.jsx)("br",{}),(0,e.jsx)("br",{}),"\u041C\u044B \u043F\u0440\u0435\u0434\u043B\u0430\u0433\u0430\u0435\u043C \u0432\u0430\u043C \u043F\u043E\u0432\u044B\u0448\u0435\u043D\u0438\u0435 \u0434\u043E \u0443\u0440\u043E\u0432\u043D\u044F \u043A\u043E\u043D\u0442\u0440\u0430\u043A\u0442\u043D\u0438\u043A\u0430 \u0432\u0441\u0435\u0433\u043E \u0437\u0430 100 \u0442\u0435\u043B\u0435\u043A\u0440\u0438\u0441\u0442\u0430\u043B\u043B\u043E\u0432. \u042D\u0442\u043E \u043F\u043E\u0437\u0432\u043E\u043B\u0438\u0442 \u0432\u0430\u043C \u0437\u0430\u043A\u043B\u044E\u0447\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0440\u0430\u043A\u0442\u044B \u043D\u0430 \u043F\u043E\u0445\u0438\u0449\u0435\u043D\u0438\u0435 \u043B\u044E\u0434\u0435\u0439, \u043F\u043E\u043B\u0443\u0447\u0430\u044F \u0437\u0430 \u0441\u0432\u043E\u044E \u0440\u0430\u0431\u043E\u0442\u0443 \u0442\u0435\u043B\u0435\u043A\u0440\u0438\u0441\u0442\u0430\u043B\u043B\u044B \u0438 \u043A\u0440\u0435\u0434\u0438\u0442\u044B.",(0,e.jsx)("br",{}),"\u041A\u0440\u043E\u043C\u0435 \u0442\u043E\u0433\u043E, \u0432\u0430\u043C \u0431\u0443\u0434\u0435\u0442 \u0432\u044B\u0434\u0430\u043D \u0441\u0442\u0430\u043D\u0434\u0430\u0440\u0442\u043D\u044B\u0439 \u043D\u0430\u0431\u043E\u0440 \u043A\u043E\u043D\u0442\u0440\u0430\u043A\u0442\u043D\u0438\u043A\u0430, \u0441\u043F\u0435\u0446\u0438\u0430\u043B\u044C\u043D\u044B\u0439 \u0430\u043F\u043B\u0438\u043D\u043A \u043A\u043E\u043D\u0442\u0440\u0430\u043A\u0442\u043D\u0438\u043A\u0430, \u0440\u0443\u043A\u043E\u0432\u043E\u0434\u0441\u0442\u0432\u043E \u0438 \u0442\u0440\u0438 \u0441\u043B\u0443\u0447\u0430\u0439\u043D\u044B\u0445 \u043D\u0435\u0434\u043E\u0440\u043E\u0433\u0438\u0445 \u043F\u0440\u0435\u0434\u043C\u0435\u0442\u0430.",(0,e.jsx)("br",{}),(0,e.jsx)("br",{}),"\u0411\u043E\u043B\u0435\u0435 \u043F\u043E\u0434\u0440\u043E\u0431\u043D\u044B\u0435 \u0438\u043D\u0441\u0442\u0440\u0443\u043A\u0446\u0438\u0438 \u0432\u044B \u0441\u043C\u043E\u0436\u0435\u0442\u0435 \u043D\u0430\u0439\u0442\u0438 \u0432 \u0440\u0443\u043A\u043E\u0432\u043E\u0434\u0441\u0442\u0432\u0435, \u043A\u043E\u0442\u043E\u0440\u043E\u0435 \u043F\u0440\u0438\u043B\u0430\u0433\u0430\u0435\u0442\u0441\u044F \u043A \u043A\u043E\u043C\u043F\u043B\u0435\u043A\u0442\u0443, \u0435\u0441\u043B\u0438 \u0440\u0435\u0448\u0438\u0442\u0435 \u0432\u043E\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C\u0441\u044F \u043D\u0430\u0448\u0438\u043C \u043F\u0440\u0435\u0434\u043B\u043E\u0436\u0435\u043D\u0438\u0435\u043C.",F?"":(0,e.jsxs)(y.az,{children:["\u041D\u0435 \u0443\u043F\u0443\u0441\u0442\u0438\u0442\u0435 \u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E\u0441\u0442\u044C! \u0412\u044B \u043D\u0435 \u0435\u0434\u0438\u043D\u0441\u0442\u0432\u0435\u043D\u043D\u044B\u0439, \u043A\u0442\u043E \u043F\u043E\u043B\u0443\u0447\u0438\u043B \u044D\u0442\u043E \u043F\u0440\u0435\u0434\u043B\u043E\u0436\u0435\u043D\u0438\u0435. \u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0445 \u043F\u0440\u0435\u0434\u043B\u043E\u0436\u0435\u043D\u0438\u0439 \u043E\u0433\u0440\u0430\u043D\u0438\u0447\u0435\u043D\u043E, \u0438 \u0435\u0441\u043B\u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u0430\u0433\u0435\u043D\u0442\u044B \u043F\u0440\u0438\u043C\u0443\u0442 \u0438\u0445 \u0440\u0430\u043D\u044C\u0448\u0435 \u0432\u0430\u0441, \u0442\u043E \u0443 \u0432\u0430\u0441 \u043D\u0435 \u043E\u0441\u0442\u0430\u043D\u0435\u0442\u0441\u044F \u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E\u0441\u0442\u0438 \u043F\u0440\u0438\u043D\u044F\u0442\u044C \u0443\u0447\u0430\u0441\u0442\u0438\u0435.",(0,e.jsx)("br",{}),(0,e.jsxs)("b",{children:["\u0414\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0435 \u043F\u0440\u0435\u0434\u043B\u043E\u0436\u0435\u043D\u0438\u044F: ",U]})]})]}),(0,e.jsx)(y.$n.Confirm,{disabled:!T||R,italic:!T,bold:T,icon:T&&!R&&"check",color:"good",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){return(0,f.modalAnswer)(x.id,1)},children:R?"\u0417\u0430\u043A\u043B\u044E\u0447\u0451\u043D":T?["\u041F\u0440\u0438\u043D\u044F\u0442\u044C \u043F\u0440\u0435\u0434\u043B\u043E\u0436\u0435\u043D\u0438\u0435",(0,e.jsx)(a.G,{timeLeft:w,format:function($,W){return" ("+W+")"}},"countdown")]:K?B.contractor.is_admin_forced?"\u0421\u0440\u043E\u043A \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044F \u043F\u0440\u0435\u0434\u043B\u043E\u0436\u0435\u043D\u0438\u044F \u0438\u0441\u0442\u0435\u043A":B.contractor.available_offers>0?(0,e.jsxs)("i",{children:["[\u041E\u0441\u0442\u0430\u043B\u043E\u0441\u044C:",B.contractor.available_offers,"]"]}):(0,e.jsx)("i",{children:"[\u041F\u0440\u0435\u0434\u043B\u043E\u0436\u0435\u043D\u0438\u044F \u0437\u0430\u043A\u043E\u043D\u0447\u0438\u043B\u0438\u0441\u044C]"}):"\u041D\u0435\u0434\u043E\u0441\u0442\u0430\u0442\u043E\u0447\u043D\u043E \u0422\u041A"})]})})},1997:(q,S,r)=>{"use strict";r.r(S),r.d(S,{LoadingScreen:()=>n});var e=r(1131),s=r(5180),n=function(t){return(0,e.jsxs)(s.BJ,{align:"center",fill:!0,justify:"center",vertical:!0,children:[(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(s.In,{color:"blue",name:"toolbox",spin:!0,size:4})}),(0,e.jsx)(s.BJ.Item,{children:"Please wait..."})]})}},2036:(q,S,r)=>{"use strict";r.r(S),r.d(S,{meta:()=>a});var e=r(1131),s=r(8523),n=r(5180),t=r(8477);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var a={title:"Storage",render:function(){return(0,e.jsx)(O,{})}},O=function(b){return window.localStorage?(0,e.jsx)(n.wn,{title:"Local Storage",buttons:(0,e.jsx)(n.$n,{icon:"recycle",onClick:function(){localStorage.clear(),s.IG.clear()},children:"Clear"}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Keys in use",children:localStorage.length}),(0,e.jsx)(n.Ki.Item,{label:"Remaining space",children:(0,t.QL)(localStorage.remainingSpace,0,"B")})]})}):(0,e.jsx)(n.IC,{children:"Local storage is not available."})}},2054:(q,S,r)=>{var e={"./AICard":1187,"./AICard.tsx":1187,"./AIFixer":1093,"./AIFixer.tsx":1093,"./APC":7201,"./APC.tsx":7201,"./ATM":4951,"./ATM.tsx":4951,"./AccountsUplinkTerminal":3908,"./AccountsUplinkTerminal.tsx":3908,"./Achievements":2795,"./Achievements.tsx":2795,"./AchievementsAdminPanel":5050,"./AchievementsAdminPanel.tsx":5050,"./AdditionGoalsConsole":2924,"./AdditionGoalsConsole.tsx":2924,"./AdminAntagMenu":4178,"./AdminAntagMenu.tsx":4178,"./AgentCard":978,"./AgentCard.tsx":978,"./AiAirlock":3536,"./AiAirlock.tsx":3536,"./AirAlarm":1508,"./AirAlarm.tsx":1508,"./AirlockAccessController":7152,"./AirlockAccessController.tsx":7152,"./AirlockElectronics":1753,"./AirlockElectronics.tsx":1753,"./AlertModal":8638,"./AlertModal.tsx":8638,"./AnomalyGenerator":561,"./AnomalyGenerator.tsx":561,"./AnomalyStabilizer":3759,"./AnomalyStabilizer.tsx":3759,"./AppearanceChanger":2723,"./AppearanceChanger.tsx":2723,"./AtmosAlertConsole":4452,"./AtmosAlertConsole.tsx":4452,"./AtmosControl":5774,"./AtmosControl.tsx":5774,"./AtmosFilter":3883,"./AtmosFilter.tsx":3883,"./AtmosMixer":4370,"./AtmosMixer.tsx":4370,"./AtmosPump":6099,"./AtmosPump.tsx":6099,"./AtmosTemperatureGate":6622,"./AtmosTemperatureGate.tsx":6622,"./AutoDoc":2962,"./AutoDoc.tsx":2962,"./Autolathe":9138,"./Autolathe.tsx":9138,"./BeakerPanel":8711,"./BeakerPanel.tsx":8711,"./Biogenerator":8773,"./Biogenerator.tsx":8773,"./BlueSpaceArtilleryControl":6788,"./BlueSpaceArtilleryControl.tsx":6788,"./BluespaceRiftScanner":8188,"./BluespaceRiftScanner.tsx":8188,"./BluespaceRiftServer":1673,"./BluespaceRiftServer.tsx":1673,"./BluespaceTap":5442,"./BluespaceTap.tsx":5442,"./BodyScanner":2485,"./BodyScanner.tsx":2485,"./BorgPanel":277,"./BorgPanel.tsx":277,"./BotClean":1497,"./BotClean.tsx":1497,"./BotSecurity":738,"./BotSecurity.tsx":738,"./BrigCells":464,"./BrigCells.tsx":464,"./BrigTimer":924,"./BrigTimer.tsx":924,"./CameraConsole":8480,"./CameraConsole.tsx":8480,"./Canister":5444,"./Canister.tsx":5444,"./CardComputer":5682,"./CardComputer.tsx":5682,"./CargoConsole":1632,"./CargoConsole.tsx":1632,"./CentcomPodLauncher":4560,"./CentcomPodLauncher/":4560,"./CentcomPodLauncher/DelayHelper":8557,"./CentcomPodLauncher/DelayHelper.tsx":8557,"./CentcomPodLauncher/PodBays":9690,"./CentcomPodLauncher/PodBays.tsx":9690,"./CentcomPodLauncher/PodLaunch":1236,"./CentcomPodLauncher/PodLaunch.tsx":1236,"./CentcomPodLauncher/PodSounds":2293,"./CentcomPodLauncher/PodSounds.tsx":2293,"./CentcomPodLauncher/PodStatusPage":4954,"./CentcomPodLauncher/PodStatusPage.tsx":4954,"./CentcomPodLauncher/PresetsPage":6834,"./CentcomPodLauncher/PresetsPage.tsx":6834,"./CentcomPodLauncher/ReverseMenu":6507,"./CentcomPodLauncher/ReverseMenu.tsx":6507,"./CentcomPodLauncher/StylePage":9762,"./CentcomPodLauncher/StylePage.tsx":9762,"./CentcomPodLauncher/Tabs":3910,"./CentcomPodLauncher/Tabs.tsx":3910,"./CentcomPodLauncher/Timing":4076,"./CentcomPodLauncher/Timing.tsx":4076,"./CentcomPodLauncher/ViewTabHolder":6178,"./CentcomPodLauncher/ViewTabHolder.tsx":6178,"./CentcomPodLauncher/constants":5237,"./CentcomPodLauncher/constants.ts":5237,"./CentcomPodLauncher/hooks":3500,"./CentcomPodLauncher/hooks.ts":3500,"./CentcomPodLauncher/index":4560,"./CentcomPodLauncher/index.tsx":4560,"./CentcomPodLauncher/types":6465,"./CentcomPodLauncher/types.ts":6465,"./Chameleon":405,"./Chameleon.tsx":405,"./Changelog":6966,"./Changelog.tsx":6966,"./CheckboxListInputModal":6939,"./CheckboxListInputModal.tsx":6939,"./ChemDispenser":607,"./ChemDispenser.tsx":607,"./ChemHeater":7207,"./ChemHeater.tsx":7207,"./ChemMaster":2866,"./ChemMaster.tsx":2866,"./CircuitAccessChecker":2151,"./CircuitAccessChecker.tsx":2151,"./CircuitAdminPanel":6591,"./CircuitAdminPanel.tsx":6591,"./CircuitModule":5838,"./CircuitModule.tsx":5838,"./CloningConsole":2150,"./CloningConsole.tsx":2150,"./CodexGigas":6859,"./CodexGigas.tsx":6859,"./CoinMint":436,"./CoinMint.tsx":436,"./ColorPickerModal":7441,"./ColorPickerModal.tsx":7441,"./CommunicationsComputer":3263,"./CommunicationsComputer.tsx":3263,"./ComponentPrinter":5900,"./ComponentPrinter.tsx":5900,"./Contractor":5022,"./Contractor.tsx":5022,"./ControllerOverview":6839,"./ControllerOverview/":6839,"./ControllerOverview/OverviewSection":4125,"./ControllerOverview/OverviewSection.tsx":4125,"./ControllerOverview/SubsystemDialog":4090,"./ControllerOverview/SubsystemDialog.tsx":4090,"./ControllerOverview/SubsystemRow":4776,"./ControllerOverview/SubsystemRow.tsx":4776,"./ControllerOverview/SubsystemViews":3082,"./ControllerOverview/SubsystemViews.tsx":3082,"./ControllerOverview/contants":2335,"./ControllerOverview/contants.ts":2335,"./ControllerOverview/filters":1730,"./ControllerOverview/filters.ts":1730,"./ControllerOverview/index":6839,"./ControllerOverview/index.tsx":6839,"./ControllerOverview/types":7216,"./ControllerOverview/types.ts":7216,"./ConveyorSwitch":1884,"./ConveyorSwitch.tsx":1884,"./CrewMonitor":1003,"./CrewMonitor.tsx":1003,"./Cryo":4828,"./Cryo.tsx":4828,"./CryopodConsole":6488,"./CryopodConsole.tsx":6488,"./Customat":6081,"./Customat.tsx":6081,"./DNAModifier":4759,"./DNAModifier.tsx":4759,"./DestinationTagger":5201,"./DestinationTagger.tsx":5201,"./DevilInfo":7581,"./DevilInfo.tsx":7581,"./DisposalBin":4255,"./DisposalBin.tsx":4255,"./DnaNotepad":5261,"./DnaNotepad.tsx":5261,"./DnaVault":998,"./DnaVault.tsx":998,"./DropLightningBolt":3753,"./DropLightningBolt.tsx":3753,"./EFTPOS":4108,"./EFTPOS.tsx":4108,"./ERTManager":9599,"./ERTManager.tsx":9599,"./Electropack":2651,"./Electropack.tsx":2651,"./EvolutionMenu":9561,"./EvolutionMenu.tsx":9561,"./ExosuitFabricator":3793,"./ExosuitFabricator.tsx":3793,"./ExternalAirlockController":7625,"./ExternalAirlockController.tsx":7625,"./FaunaBomb":6484,"./FaunaBomb.tsx":6484,"./FaxMachine":6151,"./FaxMachine.tsx":6151,"./FloorPainter":2728,"./FloorPainter.tsx":2728,"./GPS":4899,"./GPS.tsx":4899,"./GasAnalyzer":7890,"./GasAnalyzer.tsx":7890,"./GasFreezer":5703,"./GasFreezer.tsx":5703,"./GeneModder":9409,"./GeneModder.tsx":9409,"./GenericCrewManifest":3976,"./GenericCrewManifest.tsx":3976,"./GhostHudPanel":1413,"./GhostHudPanel.tsx":1413,"./GlandDispenser":5694,"./GlandDispenser.tsx":5694,"./GreyscaleModifyMenu":3825,"./GreyscaleModifyMenu.tsx":3825,"./HandheldChemDispenser":1301,"./HandheldChemDispenser.tsx":1301,"./Healthanalyzer":5819,"./Healthanalyzer.tsx":5819,"./IcecreamMachine":1719,"./IcecreamMachine.tsx":1719,"./ImplantPad":5431,"./ImplantPad.tsx":5431,"./Instrument":8468,"./Instrument.tsx":8468,"./IntegratedCircuit":3774,"./IntegratedCircuit/":3774,"./IntegratedCircuit/BasicInput":1942,"./IntegratedCircuit/BasicInput.tsx":1942,"./IntegratedCircuit/CircuitInfo":9699,"./IntegratedCircuit/CircuitInfo.tsx":9699,"./IntegratedCircuit/ComponentMenu":6194,"./IntegratedCircuit/ComponentMenu.tsx":6194,"./IntegratedCircuit/DisplayComponent":9435,"./IntegratedCircuit/DisplayComponent.tsx":9435,"./IntegratedCircuit/DisplayName":9797,"./IntegratedCircuit/DisplayName.tsx":9797,"./IntegratedCircuit/FundamentalTypes":5280,"./IntegratedCircuit/FundamentalTypes.tsx":5280,"./IntegratedCircuit/ObjectComponent":8712,"./IntegratedCircuit/ObjectComponent.tsx":8712,"./IntegratedCircuit/Port":7941,"./IntegratedCircuit/Port.tsx":7941,"./IntegratedCircuit/VariableMenu":33,"./IntegratedCircuit/VariableMenu.tsx":33,"./IntegratedCircuit/constants":8968,"./IntegratedCircuit/constants.ts":8968,"./IntegratedCircuit/index":3774,"./IntegratedCircuit/index.tsx":3774,"./IntegratedCircuit/types":275,"./IntegratedCircuit/types.ts":275,"./ItemPixelShift":3366,"./ItemPixelShift.tsx":3366,"./KeyComboModal":1503,"./KeyComboModal.tsx":1503,"./KeycardAuth":7818,"./KeycardAuth.tsx":7818,"./KitchenMachine":3648,"./KitchenMachine.tsx":3648,"./LaborClaimConsole":3898,"./LaborClaimConsole.tsx":3898,"./LawManager":3678,"./LawManager.tsx":3678,"./ListInputWindow":6218,"./ListInputWindow/":6218,"./ListInputWindow/ListInputModal":5951,"./ListInputWindow/ListInputModal.tsx":5951,"./ListInputWindow/index":6218,"./ListInputWindow/index.tsx":6218,"./Loadout":9119,"./Loadout.tsx":9119,"./LootPanel":1146,"./LootPanel/":1146,"./LootPanel/GroupedContents":9450,"./LootPanel/GroupedContents.tsx":9450,"./LootPanel/IconDisplay":2337,"./LootPanel/IconDisplay.tsx":2337,"./LootPanel/LootBox":1311,"./LootPanel/LootBox.tsx":1311,"./LootPanel/RawContents":230,"./LootPanel/RawContents.tsx":230,"./LootPanel/index":1146,"./LootPanel/index.tsx":1146,"./LootPanel/types":2383,"./LootPanel/types.ts":2383,"./MODsuit":3184,"./MODsuit.tsx":3184,"./MatrixMathTester":2315,"./MatrixMathTester.tsx":2315,"./MechBayConsole":2907,"./MechBayConsole.tsx":2907,"./Mecha":2689,"./Mecha/":2689,"./Mecha/AlertPane":7309,"./Mecha/AlertPane.tsx":7309,"./Mecha/ModulesPane":8951,"./Mecha/ModulesPane.tsx":8951,"./Mecha/data":4924,"./Mecha/data.ts":4924,"./Mecha/honk":78,"./Mecha/honk.tsx":78,"./Mecha/index":2689,"./Mecha/index.tsx":2689,"./MechaControlConsole":3721,"./MechaControlConsole.tsx":3721,"./MedicalRecords":9750,"./MedicalRecords.tsx":9750,"./Mimicking":7785,"./Mimicking.tsx":7785,"./Minesweeper":2433,"./Minesweeper.tsx":2433,"./MiniGamesMenu":7960,"./MiniGamesMenu.tsx":7960,"./MiningVendor":933,"./MiningVendor.tsx":933,"./Mortar":3112,"./Mortar.tsx":3112,"./Multitool":3046,"./Multitool.tsx":3046,"./Newscaster":2398,"./Newscaster.tsx":2398,"./Newspaper":218,"./Newspaper.tsx":218,"./NinjaBloodScan":8216,"./NinjaBloodScan.tsx":8216,"./NinjaMindScan":7120,"./NinjaMindScan.tsx":7120,"./NuclearBomb":9985,"./NuclearBomb.tsx":9985,"./NumberInputModal":1087,"./NumberInputModal.tsx":1087,"./OperatingComputer":9785,"./OperatingComputer.tsx":9785,"./Orbit":3255,"./Orbit.tsx":3255,"./OreRedemption":9224,"./OreRedemption.tsx":9224,"./PAI":1265,"./PAI.tsx":1265,"./PDA":8750,"./PDA.tsx":8750,"./PDAPainter":2561,"./PDAPainter.tsx":2561,"./Pacman":3459,"./Pacman.tsx":3459,"./ParticleAccelerator":7636,"./ParticleAccelerator.tsx":7636,"./PermissionsEdit":9727,"./PermissionsEdit.tsx":9727,"./PersonalCrafting":729,"./PersonalCrafting.tsx":729,"./Photocopier":8885,"./Photocopier.tsx":8885,"./PlayerPanel":3176,"./PlayerPanel.tsx":3176,"./PlayingCard":6739,"./PlayingCard.tsx":6739,"./PodTracking":9729,"./PodTracking.tsx":9729,"./PollListPanel":8252,"./PollListPanel.tsx":8252,"./PollManagement":8513,"./PollManagement.tsx":8513,"./PollOptionPanel":5349,"./PollOptionPanel.tsx":5349,"./PoolController":329,"./PoolController.tsx":329,"./PortablePump":4072,"./PortablePump.tsx":4072,"./PortableScrubber":3858,"./PortableScrubber.tsx":3858,"./PortableTurret":6924,"./PortableTurret.tsx":6924,"./PowerMonitor":4416,"./PowerMonitor.tsx":4416,"./PrisonerImplantManager":3393,"./PrisonerImplantManager.tsx":3393,"./QuestConsole":938,"./QuestConsole.tsx":938,"./RCD":892,"./RCD.tsx":892,"./RPD":8213,"./RPD.tsx":8213,"./Radio":8890,"./Radio.tsx":8890,"./RankedListInputModal":297,"./RankedListInputModal.tsx":297,"./ReagentsEditor":3513,"./ReagentsEditor.tsx":3513,"./Reflector":6251,"./Reflector.tsx":6251,"./RequestConsole":5161,"./RequestConsole.tsx":5161,"./RequestManager":9879,"./RequestManager.tsx":9879,"./RitualMenu":2919,"./RitualMenu.tsx":2919,"./RndConsole":4904,"./RndConsole.tsx":4904,"./RndConsoleComponents":2905,"./RndConsoleComponents/":2905,"./RndConsoleComponents/CurrentLevels":5471,"./RndConsoleComponents/CurrentLevels.tsx":5471,"./RndConsoleComponents/DataDiskMenu":4623,"./RndConsoleComponents/DataDiskMenu.tsx":4623,"./RndConsoleComponents/DeconstructionMenu":4722,"./RndConsoleComponents/DeconstructionMenu.tsx":4722,"./RndConsoleComponents/LatheCategory":2983,"./RndConsoleComponents/LatheCategory.tsx":2983,"./RndConsoleComponents/LatheChemicalStorage":6012,"./RndConsoleComponents/LatheChemicalStorage.tsx":6012,"./RndConsoleComponents/LatheMainMenu":2301,"./RndConsoleComponents/LatheMainMenu.tsx":2301,"./RndConsoleComponents/LatheMaterialStorage":5141,"./RndConsoleComponents/LatheMaterialStorage.tsx":5141,"./RndConsoleComponents/LatheMaterials":2265,"./RndConsoleComponents/LatheMaterials.tsx":2265,"./RndConsoleComponents/LatheMenu":726,"./RndConsoleComponents/LatheMenu.tsx":726,"./RndConsoleComponents/LatheSearch":3515,"./RndConsoleComponents/LatheSearch.tsx":3515,"./RndConsoleComponents/MainMenu":4515,"./RndConsoleComponents/MainMenu.tsx":4515,"./RndConsoleComponents/RndNavButton":4138,"./RndConsoleComponents/RndNavButton.tsx":4138,"./RndConsoleComponents/RndNavbar":91,"./RndConsoleComponents/RndNavbar.tsx":91,"./RndConsoleComponents/RndRoute":1746,"./RndConsoleComponents/RndRoute.tsx":1746,"./RndConsoleComponents/SettingsMenu":6159,"./RndConsoleComponents/SettingsMenu.tsx":6159,"./RndConsoleComponents/index":2905,"./RndConsoleComponents/index.tsx":2905,"./RndConsoleComponents/types":5150,"./RndConsoleComponents/types.ts":5150,"./RoboQuest":1657,"./RoboQuest.tsx":1657,"./RobotSelfDiagnosis":646,"./RobotSelfDiagnosis.tsx":646,"./RoboticsControlConsole":8610,"./RoboticsControlConsole.tsx":8610,"./Safe":4576,"./Safe.tsx":4576,"./SatelliteControl":7957,"./SatelliteControl.tsx":7957,"./SecureStorage":2469,"./SecureStorage.tsx":2469,"./SecurityRecords":4239,"./SecurityRecords.tsx":4239,"./SeedExtractor":6642,"./SeedExtractor.tsx":6642,"./ShuttleConsole":2389,"./ShuttleConsole.tsx":2389,"./ShuttleManipulator":8846,"./ShuttleManipulator.tsx":8846,"./Sleeper":1231,"./Sleeper.tsx":1231,"./SlotMachine":820,"./SlotMachine.tsx":820,"./Smartfridge":8972,"./Smartfridge.tsx":8972,"./Smes":9583,"./Smes.tsx":9583,"./SmiteMenu":9922,"./SmiteMenu.tsx":9922,"./SolarControl":1837,"./SolarControl.tsx":1837,"./SpawnPanel":5899,"./SpawnPanel/":5899,"./SpawnPanel/CreateObject":9427,"./SpawnPanel/CreateObject.tsx":9427,"./SpawnPanel/CreateObjectAdvancedSettings":8151,"./SpawnPanel/CreateObjectAdvancedSettings.tsx":8151,"./SpawnPanel/CreateObjectSettings":2673,"./SpawnPanel/CreateObjectSettings.tsx":2673,"./SpawnPanel/constants":1160,"./SpawnPanel/constants.tsx":1160,"./SpawnPanel/index":5899,"./SpawnPanel/index.tsx":5899,"./SpawnPanel/types":4196,"./SpawnPanel/types.ts":4196,"./SpawnSearch":9782,"./SpawnSearch.tsx":9782,"./SpawnersMenu":9493,"./SpawnersMenu.tsx":9493,"./SpiderOS":8482,"./SpiderOS.tsx":8482,"./StackCraft":453,"./StackCraft.tsx":453,"./StationAlertConsole":6794,"./StationAlertConsole.tsx":6794,"./StripMenu":532,"./StripMenu.tsx":532,"./SuitStorage":3789,"./SuitStorage.tsx":3789,"./SupermatterMonitor":5083,"./SupermatterMonitor.tsx":5083,"./SyndicateComputerSimple":2312,"./SyndicateComputerSimple.tsx":2312,"./SyndieCargoConsole":1036,"./SyndieCargoConsole.tsx":1036,"./TEG":6179,"./TEG.tsx":6179,"./TTSSeedsExplorer":9953,"./TTSSeedsExplorer.tsx":9953,"./TachyonArray":9602,"./TachyonArray.tsx":9602,"./Tank":5959,"./Tank.tsx":5959,"./TankDispenser":3354,"./TankDispenser.tsx":3354,"./TcommsCore":4409,"./TcommsCore.tsx":4409,"./TcommsRelay":8221,"./TcommsRelay.tsx":8221,"./Teleporter":1092,"./Teleporter.tsx":1092,"./TextInputModal":953,"./TextInputModal.tsx":953,"./ThiefKit":9643,"./ThiefKit.tsx":9643,"./TransferValve":7250,"./TransferValve.tsx":7250,"./TurbineComputer":8593,"./TurbineComputer.tsx":8593,"./Uplink":1988,"./Uplink.tsx":1988,"./UploadPanel":876,"./UploadPanel.tsx":876,"./VampireSpecMenu":2865,"./VampireSpecMenu.tsx":2865,"./VampireTrophiesStatus":785,"./VampireTrophiesStatus.tsx":785,"./Vending":748,"./Vending.tsx":748,"./VethPlayerPanel":229,"./VethPlayerPanel.tsx":229,"./VolumeMixer":3813,"./VolumeMixer.tsx":3813,"./VotePanel":6485,"./VotePanel.tsx":6485,"./Wires":9037,"./Wires.tsx":9037,"./Workshop":8996,"./Workshop.tsx":8996,"./common/AccessList":3211,"./common/AccessList.tsx":3211,"./common/AtmosScan":9924,"./common/AtmosScan.tsx":9924,"./common/BeakerContents":829,"./common/BeakerContents.tsx":829,"./common/ColorSelector":2251,"./common/ColorSelector.tsx":2251,"./common/ComplexModal":538,"./common/ComplexModal.tsx":538,"./common/Connections":6158,"./common/Connections.tsx":6158,"./common/CrewManifest":3261,"./common/CrewManifest.tsx":3261,"./common/GasmixParser":2080,"./common/GasmixParser.tsx":2080,"./common/InputButtons":30,"./common/InputButtons.tsx":30,"./common/InterfaceLockNoticeBox":6186,"./common/InterfaceLockNoticeBox.tsx":6186,"./common/Loader":3384,"./common/Loader.tsx":3384,"./common/LoadingScreen":1997,"./common/LoadingScreen.tsx":1997,"./common/LoginInfo":1530,"./common/LoginInfo.tsx":1530,"./common/LoginScreen":9298,"./common/LoginScreen.tsx":9298,"./common/Operating":9680,"./common/Operating.tsx":9680,"./common/SearchBar":5618,"./common/SearchBar.tsx":5618,"./common/Signaler":5664,"./common/Signaler.tsx":5664,"./common/SimpleRecords":8725,"./common/SimpleRecords.tsx":8725,"./common/SortButtons":1154,"./common/SortButtons.tsx":1154,"./common/TemporaryNotice":2424,"./common/TemporaryNotice.tsx":2424,"./common/types":3777,"./common/types.ts":3777,"./manually-routed/KitchenSink":8206,"./manually-routed/KitchenSink.tsx":8206,"./pai/pai_advsecrecords":6051,"./pai/pai_advsecrecords.tsx":6051,"./pai/pai_atmosphere":9515,"./pai/pai_atmosphere.tsx":9515,"./pai/pai_bioscan":4446,"./pai/pai_bioscan.tsx":4446,"./pai/pai_camera_bug":937,"./pai/pai_camera_bug.tsx":937,"./pai/pai_directives":4185,"./pai/pai_directives.tsx":4185,"./pai/pai_doorjack":7502,"./pai/pai_doorjack.tsx":7502,"./pai/pai_encoder":331,"./pai/pai_encoder.tsx":331,"./pai/pai_gps_module":2720,"./pai/pai_gps_module.tsx":2720,"./pai/pai_main_menu":1696,"./pai/pai_main_menu.tsx":1696,"./pai/pai_manifest":1364,"./pai/pai_manifest.tsx":1364,"./pai/pai_medrecords":3939,"./pai/pai_medrecords.tsx":3939,"./pai/pai_messenger":2938,"./pai/pai_messenger.tsx":2938,"./pai/pai_radio":9342,"./pai/pai_radio.tsx":9342,"./pai/pai_sec_chem":6546,"./pai/pai_sec_chem.tsx":6546,"./pai/pai_secrecords":9484,"./pai/pai_secrecords.tsx":9484,"./pai/pai_signaler":1742,"./pai/pai_signaler.tsx":1742,"./pai/types":4941,"./pai/types.ts":4941,"./pda/pda_atmos_scan":8433,"./pda/pda_atmos_scan.tsx":8433,"./pda/pda_janitor":2476,"./pda/pda_janitor.tsx":2476,"./pda/pda_main_menu":4468,"./pda/pda_main_menu.tsx":4468,"./pda/pda_manifest":7168,"./pda/pda_manifest.tsx":7168,"./pda/pda_medical":4342,"./pda/pda_medical.tsx":4342,"./pda/pda_messenger":5286,"./pda/pda_messenger.tsx":5286,"./pda/pda_mule":9804,"./pda/pda_mule.tsx":9804,"./pda/pda_notes":8776,"./pda/pda_notes.tsx":8776,"./pda/pda_power":9076,"./pda/pda_power.tsx":9076,"./pda/pda_request_console":6762,"./pda/pda_request_console.tsx":6762,"./pda/pda_secbot":7761,"./pda/pda_secbot.tsx":7761,"./pda/pda_security":8633,"./pda/pda_security.tsx":8633,"./pda/pda_signaler":9794,"./pda/pda_signaler.tsx":9794,"./pda/pda_status_display":8438,"./pda/pda_status_display.tsx":8438,"./pda/pda_supplyrecords":226,"./pda/pda_supplyrecords.tsx":226,"./pda/types":7052,"./pda/types.ts":7052};function s(t){var a=n(t);return r(a)}function n(t){if(!r.o(e,t)){var a=new Error("Cannot find module '"+t+"'");throw a.code="MODULE_NOT_FOUND",a}return e[t]}s.keys=function(){return Object.keys(e)},s.resolve=n,q.exports=s,s.id=2054},2080:(q,S,r)=>{"use strict";r.r(S),r.d(S,{GasmixParser:()=>a});var e=r(1131),s=r(5180);function n(){return n=Object.assign||function(O){for(var b=1;b=0)&&(y[f]=O[f]);return y}var a=function(O){var b=O.gasmix,y=O.gasesOnClick,u=O.temperatureOnClick,f=O.volumeOnClick,m=O.pressureOnClick,d=O.reactionOnClick,v=O.detailedReactions,_=t(O,["gasmix","gasesOnClick","temperatureOnClick","volumeOnClick","pressureOnClick","reactionOnClick","detailedReactions"]),l=b.gases,c=b.temperature,h=b.volume,g=b.pressure,p=b.total_moles,j=b.reactions;return p?(0,e.jsxs)(s.Ki,n({},_,{children:[l.map(function(x){return(0,e.jsx)(s.Ki.Item,{label:y?(0,e.jsx)(s.$n,{content:x[1],onClick:function(){return y(x[0])}}):x[1],children:x[2].toFixed(2)+" mol ("+(x[2]/p*100).toFixed(2)+" %)"},x[1])}),(0,e.jsx)(s.Ki.Item,{label:u?(0,e.jsx)(s.$n,{content:"Temperature",onClick:function(){return u()}}):"Temperature",children:""+(p?c.toFixed(2):"-")+" K"}),(0,e.jsx)(s.Ki.Item,{label:f?(0,e.jsx)(s.$n,{content:"Volume",onClick:function(){return f()}}):"Volume",children:""+(p?h.toFixed(2):"-")+" L"}),(0,e.jsx)(s.Ki.Item,{label:m?(0,e.jsx)(s.$n,{content:"Pressure",onClick:function(){return m()}}):"Pressure",children:""+(p?g.toFixed(2):"-")+" kPa"}),v?j.map(function(x){return(0,e.jsx)(s.Ki.Item,{label:d?(0,e.jsx)(s.$n,{content:x[1],onClick:function(){return d(x[0])}}):x[1],children:x[2]},b.reference+"-"+x[0])}):(0,e.jsx)(s.Ki.Item,{label:"Gas Reactions",children:j.length?j.map(function(x,C){return d?(0,e.jsx)(s.az,{mb:"0.5em",children:(0,e.jsx)(s.$n,{content:x[1],onClick:function(){return d(x[0])}})},x[1]):(0,e.jsx)("div",{children:x[1]},x[1])}):"No reactions detected"})]})):(0,e.jsx)(s.az,{nowrap:!0,italic:!0,mb:"10px",children:"No Gas Detected!"})}},2091:(q,S,r)=>{"use strict";r.r(S),r.d(S,{meta:()=>t});var e=r(1131),s=r(7003),n=r(5180);/** + */var a={title:"Storage",render:function(){return(0,e.jsx)(b,{})}},b=function(O){return window.localStorage?(0,e.jsx)(n.wn,{title:"Local Storage",buttons:(0,e.jsx)(n.$n,{icon:"recycle",onClick:function(){localStorage.clear(),s.IG.clear()},children:"Clear"}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Keys in use",children:localStorage.length}),(0,e.jsx)(n.Ki.Item,{label:"Remaining space",children:(0,t.QL)(localStorage.remainingSpace,0,"B")})]})}):(0,e.jsx)(n.IC,{children:"Local storage is not available."})}},2054:(q,S,r)=>{var e={"./AICard":1187,"./AICard.tsx":1187,"./AIFixer":1093,"./AIFixer.tsx":1093,"./APC":7201,"./APC.tsx":7201,"./ATM":4951,"./ATM.tsx":4951,"./AccountsUplinkTerminal":3908,"./AccountsUplinkTerminal.tsx":3908,"./Achievements":2795,"./Achievements.tsx":2795,"./AchievementsAdminPanel":5050,"./AchievementsAdminPanel.tsx":5050,"./AdditionGoalsConsole":2924,"./AdditionGoalsConsole.tsx":2924,"./AdminAntagMenu":4178,"./AdminAntagMenu.tsx":4178,"./AgentCard":978,"./AgentCard.tsx":978,"./AiAirlock":3536,"./AiAirlock.tsx":3536,"./AirAlarm":1508,"./AirAlarm.tsx":1508,"./AirlockAccessController":7152,"./AirlockAccessController.tsx":7152,"./AirlockElectronics":1753,"./AirlockElectronics.tsx":1753,"./AlertModal":8638,"./AlertModal.tsx":8638,"./AnomalyGenerator":561,"./AnomalyGenerator.tsx":561,"./AnomalyStabilizer":3759,"./AnomalyStabilizer.tsx":3759,"./AppearanceChanger":2723,"./AppearanceChanger.tsx":2723,"./AtmosAlertConsole":4452,"./AtmosAlertConsole.tsx":4452,"./AtmosControl":5774,"./AtmosControl.tsx":5774,"./AtmosFilter":3883,"./AtmosFilter.tsx":3883,"./AtmosMixer":4370,"./AtmosMixer.tsx":4370,"./AtmosPump":6099,"./AtmosPump.tsx":6099,"./AtmosTemperatureGate":6622,"./AtmosTemperatureGate.tsx":6622,"./AutoDoc":2962,"./AutoDoc.tsx":2962,"./Autolathe":9138,"./Autolathe.tsx":9138,"./BeakerPanel":8711,"./BeakerPanel.tsx":8711,"./Biogenerator":8773,"./Biogenerator.tsx":8773,"./BlueSpaceArtilleryControl":6788,"./BlueSpaceArtilleryControl.tsx":6788,"./BluespaceRiftScanner":8188,"./BluespaceRiftScanner.tsx":8188,"./BluespaceRiftServer":1673,"./BluespaceRiftServer.tsx":1673,"./BluespaceTap":5442,"./BluespaceTap.tsx":5442,"./BodyScanner":2485,"./BodyScanner.tsx":2485,"./BorgPanel":277,"./BorgPanel.tsx":277,"./BotClean":1497,"./BotClean.tsx":1497,"./BotSecurity":738,"./BotSecurity.tsx":738,"./Bots":173,"./Bots.tsx":173,"./BrigCells":464,"./BrigCells.tsx":464,"./BrigTimer":924,"./BrigTimer.tsx":924,"./CameraConsole":8480,"./CameraConsole.tsx":8480,"./Canister":5444,"./Canister.tsx":5444,"./CardComputer":5682,"./CardComputer.tsx":5682,"./CargoConsole":1632,"./CargoConsole.tsx":1632,"./CentcomPodLauncher":4560,"./CentcomPodLauncher/":4560,"./CentcomPodLauncher/DelayHelper":8557,"./CentcomPodLauncher/DelayHelper.tsx":8557,"./CentcomPodLauncher/PodBays":9690,"./CentcomPodLauncher/PodBays.tsx":9690,"./CentcomPodLauncher/PodLaunch":1236,"./CentcomPodLauncher/PodLaunch.tsx":1236,"./CentcomPodLauncher/PodSounds":2293,"./CentcomPodLauncher/PodSounds.tsx":2293,"./CentcomPodLauncher/PodStatusPage":4954,"./CentcomPodLauncher/PodStatusPage.tsx":4954,"./CentcomPodLauncher/PresetsPage":6834,"./CentcomPodLauncher/PresetsPage.tsx":6834,"./CentcomPodLauncher/ReverseMenu":6507,"./CentcomPodLauncher/ReverseMenu.tsx":6507,"./CentcomPodLauncher/StylePage":9762,"./CentcomPodLauncher/StylePage.tsx":9762,"./CentcomPodLauncher/Tabs":3910,"./CentcomPodLauncher/Tabs.tsx":3910,"./CentcomPodLauncher/Timing":4076,"./CentcomPodLauncher/Timing.tsx":4076,"./CentcomPodLauncher/ViewTabHolder":6178,"./CentcomPodLauncher/ViewTabHolder.tsx":6178,"./CentcomPodLauncher/constants":5237,"./CentcomPodLauncher/constants.ts":5237,"./CentcomPodLauncher/hooks":3500,"./CentcomPodLauncher/hooks.ts":3500,"./CentcomPodLauncher/index":4560,"./CentcomPodLauncher/index.tsx":4560,"./CentcomPodLauncher/types":6465,"./CentcomPodLauncher/types.ts":6465,"./Chameleon":405,"./Chameleon.tsx":405,"./Changelog":6966,"./Changelog.tsx":6966,"./CheckboxListInputModal":6939,"./CheckboxListInputModal.tsx":6939,"./ChemDispenser":607,"./ChemDispenser.tsx":607,"./ChemHeater":7207,"./ChemHeater.tsx":7207,"./ChemMaster":2866,"./ChemMaster.tsx":2866,"./CircuitAccessChecker":2151,"./CircuitAccessChecker.tsx":2151,"./CircuitAdminPanel":6591,"./CircuitAdminPanel.tsx":6591,"./CircuitModule":5838,"./CircuitModule.tsx":5838,"./CloningConsole":2150,"./CloningConsole.tsx":2150,"./CodexGigas":6859,"./CodexGigas.tsx":6859,"./CoinMint":436,"./CoinMint.tsx":436,"./ColorPickerModal":7441,"./ColorPickerModal.tsx":7441,"./CommunicationsComputer":3263,"./CommunicationsComputer.tsx":3263,"./ComponentPrinter":5900,"./ComponentPrinter.tsx":5900,"./Contractor":5022,"./Contractor.tsx":5022,"./ControllerOverview":6839,"./ControllerOverview/":6839,"./ControllerOverview/OverviewSection":4125,"./ControllerOverview/OverviewSection.tsx":4125,"./ControllerOverview/SubsystemDialog":4090,"./ControllerOverview/SubsystemDialog.tsx":4090,"./ControllerOverview/SubsystemRow":4776,"./ControllerOverview/SubsystemRow.tsx":4776,"./ControllerOverview/SubsystemViews":3082,"./ControllerOverview/SubsystemViews.tsx":3082,"./ControllerOverview/contants":2335,"./ControllerOverview/contants.ts":2335,"./ControllerOverview/filters":1730,"./ControllerOverview/filters.ts":1730,"./ControllerOverview/index":6839,"./ControllerOverview/index.tsx":6839,"./ControllerOverview/types":7216,"./ControllerOverview/types.ts":7216,"./ConveyorSwitch":1884,"./ConveyorSwitch.tsx":1884,"./CrewMonitor":1003,"./CrewMonitor.tsx":1003,"./Cryo":4828,"./Cryo.tsx":4828,"./CryopodConsole":6488,"./CryopodConsole.tsx":6488,"./Customat":6081,"./Customat.tsx":6081,"./DNAModifier":4759,"./DNAModifier.tsx":4759,"./DestinationTagger":5201,"./DestinationTagger.tsx":5201,"./DevilInfo":7581,"./DevilInfo.tsx":7581,"./DisposalBin":4255,"./DisposalBin.tsx":4255,"./DnaNotepad":5261,"./DnaNotepad.tsx":5261,"./DnaVault":998,"./DnaVault.tsx":998,"./DropLightningBolt":3753,"./DropLightningBolt.tsx":3753,"./EFTPOS":4108,"./EFTPOS.tsx":4108,"./ERTManager":9599,"./ERTManager.tsx":9599,"./Electropack":2651,"./Electropack.tsx":2651,"./EvolutionMenu":9561,"./EvolutionMenu.tsx":9561,"./ExosuitFabricator":3793,"./ExosuitFabricator.tsx":3793,"./ExternalAirlockController":7625,"./ExternalAirlockController.tsx":7625,"./FaunaBomb":6484,"./FaunaBomb.tsx":6484,"./FaxMachine":6151,"./FaxMachine.tsx":6151,"./FloorPainter":2728,"./FloorPainter.tsx":2728,"./GPS":4899,"./GPS.tsx":4899,"./GasAnalyzer":7890,"./GasAnalyzer.tsx":7890,"./GasFreezer":5703,"./GasFreezer.tsx":5703,"./GeneModder":9409,"./GeneModder.tsx":9409,"./GenericCrewManifest":3976,"./GenericCrewManifest.tsx":3976,"./GhostHudPanel":1413,"./GhostHudPanel.tsx":1413,"./GlandDispenser":5694,"./GlandDispenser.tsx":5694,"./GreyscaleModifyMenu":3825,"./GreyscaleModifyMenu.tsx":3825,"./HandheldChemDispenser":1301,"./HandheldChemDispenser.tsx":1301,"./Healthanalyzer":5819,"./Healthanalyzer.tsx":5819,"./IcecreamMachine":1719,"./IcecreamMachine.tsx":1719,"./ImplantPad":5431,"./ImplantPad.tsx":5431,"./Instrument":8468,"./Instrument.tsx":8468,"./IntegratedCircuit":3774,"./IntegratedCircuit/":3774,"./IntegratedCircuit/BasicInput":1942,"./IntegratedCircuit/BasicInput.tsx":1942,"./IntegratedCircuit/CircuitInfo":9699,"./IntegratedCircuit/CircuitInfo.tsx":9699,"./IntegratedCircuit/ComponentMenu":6194,"./IntegratedCircuit/ComponentMenu.tsx":6194,"./IntegratedCircuit/DisplayComponent":9435,"./IntegratedCircuit/DisplayComponent.tsx":9435,"./IntegratedCircuit/DisplayName":9797,"./IntegratedCircuit/DisplayName.tsx":9797,"./IntegratedCircuit/FundamentalTypes":5280,"./IntegratedCircuit/FundamentalTypes.tsx":5280,"./IntegratedCircuit/ObjectComponent":8712,"./IntegratedCircuit/ObjectComponent.tsx":8712,"./IntegratedCircuit/Port":7941,"./IntegratedCircuit/Port.tsx":7941,"./IntegratedCircuit/VariableMenu":33,"./IntegratedCircuit/VariableMenu.tsx":33,"./IntegratedCircuit/constants":8968,"./IntegratedCircuit/constants.ts":8968,"./IntegratedCircuit/index":3774,"./IntegratedCircuit/index.tsx":3774,"./IntegratedCircuit/types":275,"./IntegratedCircuit/types.ts":275,"./ItemPixelShift":3366,"./ItemPixelShift.tsx":3366,"./KeyComboModal":1503,"./KeyComboModal.tsx":1503,"./KeycardAuth":7818,"./KeycardAuth.tsx":7818,"./KitchenMachine":3648,"./KitchenMachine.tsx":3648,"./LaborClaimConsole":3898,"./LaborClaimConsole.tsx":3898,"./LawManager":3678,"./LawManager.tsx":3678,"./ListInputWindow":6218,"./ListInputWindow/":6218,"./ListInputWindow/ListInputModal":5951,"./ListInputWindow/ListInputModal.tsx":5951,"./ListInputWindow/index":6218,"./ListInputWindow/index.tsx":6218,"./Loadout":9119,"./Loadout.tsx":9119,"./LootPanel":1146,"./LootPanel/":1146,"./LootPanel/GroupedContents":9450,"./LootPanel/GroupedContents.tsx":9450,"./LootPanel/IconDisplay":2337,"./LootPanel/IconDisplay.tsx":2337,"./LootPanel/LootBox":1311,"./LootPanel/LootBox.tsx":1311,"./LootPanel/RawContents":230,"./LootPanel/RawContents.tsx":230,"./LootPanel/index":1146,"./LootPanel/index.tsx":1146,"./LootPanel/types":2383,"./LootPanel/types.ts":2383,"./MODsuit":3184,"./MODsuit.tsx":3184,"./MatrixMathTester":2315,"./MatrixMathTester.tsx":2315,"./MechBayConsole":2907,"./MechBayConsole.tsx":2907,"./Mecha":2689,"./Mecha/":2689,"./Mecha/AlertPane":7309,"./Mecha/AlertPane.tsx":7309,"./Mecha/ModulesPane":8951,"./Mecha/ModulesPane.tsx":8951,"./Mecha/data":4924,"./Mecha/data.ts":4924,"./Mecha/honk":78,"./Mecha/honk.tsx":78,"./Mecha/index":2689,"./Mecha/index.tsx":2689,"./MechaControlConsole":3721,"./MechaControlConsole.tsx":3721,"./MedicalRecords":9750,"./MedicalRecords.tsx":9750,"./Mimicking":7785,"./Mimicking.tsx":7785,"./Minesweeper":2433,"./Minesweeper.tsx":2433,"./MiniGamesMenu":7960,"./MiniGamesMenu.tsx":7960,"./MiningVendor":933,"./MiningVendor.tsx":933,"./Mortar":3112,"./Mortar.tsx":3112,"./Multitool":3046,"./Multitool.tsx":3046,"./Newscaster":2398,"./Newscaster.tsx":2398,"./Newspaper":218,"./Newspaper.tsx":218,"./NinjaBloodScan":8216,"./NinjaBloodScan.tsx":8216,"./NinjaMindScan":7120,"./NinjaMindScan.tsx":7120,"./NuclearBomb":9985,"./NuclearBomb.tsx":9985,"./NumberInputModal":1087,"./NumberInputModal.tsx":1087,"./OperatingComputer":9785,"./OperatingComputer.tsx":9785,"./Orbit":3255,"./Orbit.tsx":3255,"./OreRedemption":9224,"./OreRedemption.tsx":9224,"./PAI":1265,"./PAI.tsx":1265,"./PDA":8750,"./PDA.tsx":8750,"./PDAPainter":2561,"./PDAPainter.tsx":2561,"./Pacman":3459,"./Pacman.tsx":3459,"./ParticleAccelerator":7636,"./ParticleAccelerator.tsx":7636,"./PermissionsEdit":9727,"./PermissionsEdit.tsx":9727,"./PersonalCrafting":729,"./PersonalCrafting.tsx":729,"./Photocopier":8885,"./Photocopier.tsx":8885,"./PlayerPanel":3176,"./PlayerPanel.tsx":3176,"./PlayingCard":6739,"./PlayingCard.tsx":6739,"./PodTracking":9729,"./PodTracking.tsx":9729,"./PollListPanel":8252,"./PollListPanel.tsx":8252,"./PollManagement":8513,"./PollManagement.tsx":8513,"./PollOptionPanel":5349,"./PollOptionPanel.tsx":5349,"./PoolController":329,"./PoolController.tsx":329,"./PortablePump":4072,"./PortablePump.tsx":4072,"./PortableScrubber":3858,"./PortableScrubber.tsx":3858,"./PortableTurret":6924,"./PortableTurret.tsx":6924,"./PowerMonitor":4416,"./PowerMonitor.tsx":4416,"./PrisonerImplantManager":3393,"./PrisonerImplantManager.tsx":3393,"./QuestConsole":938,"./QuestConsole.tsx":938,"./RCD":892,"./RCD.tsx":892,"./RPD":8213,"./RPD.tsx":8213,"./Radio":8890,"./Radio.tsx":8890,"./RankedListInputModal":297,"./RankedListInputModal.tsx":297,"./ReagentsEditor":3513,"./ReagentsEditor.tsx":3513,"./Reflector":6251,"./Reflector.tsx":6251,"./RequestConsole":5161,"./RequestConsole.tsx":5161,"./RequestManager":9879,"./RequestManager.tsx":9879,"./RitualMenu":2919,"./RitualMenu.tsx":2919,"./RndConsole":4904,"./RndConsole.tsx":4904,"./RndConsoleComponents":2905,"./RndConsoleComponents/":2905,"./RndConsoleComponents/CurrentLevels":5471,"./RndConsoleComponents/CurrentLevels.tsx":5471,"./RndConsoleComponents/DataDiskMenu":4623,"./RndConsoleComponents/DataDiskMenu.tsx":4623,"./RndConsoleComponents/DeconstructionMenu":4722,"./RndConsoleComponents/DeconstructionMenu.tsx":4722,"./RndConsoleComponents/LatheCategory":2983,"./RndConsoleComponents/LatheCategory.tsx":2983,"./RndConsoleComponents/LatheChemicalStorage":6012,"./RndConsoleComponents/LatheChemicalStorage.tsx":6012,"./RndConsoleComponents/LatheMainMenu":2301,"./RndConsoleComponents/LatheMainMenu.tsx":2301,"./RndConsoleComponents/LatheMaterialStorage":5141,"./RndConsoleComponents/LatheMaterialStorage.tsx":5141,"./RndConsoleComponents/LatheMaterials":2265,"./RndConsoleComponents/LatheMaterials.tsx":2265,"./RndConsoleComponents/LatheMenu":726,"./RndConsoleComponents/LatheMenu.tsx":726,"./RndConsoleComponents/LatheSearch":3515,"./RndConsoleComponents/LatheSearch.tsx":3515,"./RndConsoleComponents/MainMenu":4515,"./RndConsoleComponents/MainMenu.tsx":4515,"./RndConsoleComponents/RndNavButton":4138,"./RndConsoleComponents/RndNavButton.tsx":4138,"./RndConsoleComponents/RndNavbar":91,"./RndConsoleComponents/RndNavbar.tsx":91,"./RndConsoleComponents/RndRoute":1746,"./RndConsoleComponents/RndRoute.tsx":1746,"./RndConsoleComponents/SettingsMenu":6159,"./RndConsoleComponents/SettingsMenu.tsx":6159,"./RndConsoleComponents/index":2905,"./RndConsoleComponents/index.tsx":2905,"./RndConsoleComponents/types":5150,"./RndConsoleComponents/types.ts":5150,"./RoboQuest":1657,"./RoboQuest.tsx":1657,"./RobotSelfDiagnosis":646,"./RobotSelfDiagnosis.tsx":646,"./RoboticsControlConsole":8610,"./RoboticsControlConsole.tsx":8610,"./Safe":4576,"./Safe.tsx":4576,"./SatelliteControl":7957,"./SatelliteControl.tsx":7957,"./SecureStorage":2469,"./SecureStorage.tsx":2469,"./SecurityRecords":4239,"./SecurityRecords.tsx":4239,"./SeedExtractor":6642,"./SeedExtractor.tsx":6642,"./ShuttleConsole":2389,"./ShuttleConsole.tsx":2389,"./ShuttleManipulator":8846,"./ShuttleManipulator.tsx":8846,"./Sleeper":1231,"./Sleeper.tsx":1231,"./SlotMachine":820,"./SlotMachine.tsx":820,"./Smartfridge":8972,"./Smartfridge.tsx":8972,"./Smes":9583,"./Smes.tsx":9583,"./SmiteMenu":9922,"./SmiteMenu.tsx":9922,"./SolarControl":1837,"./SolarControl.tsx":1837,"./SpawnPanel":5899,"./SpawnPanel/":5899,"./SpawnPanel/CreateObject":9427,"./SpawnPanel/CreateObject.tsx":9427,"./SpawnPanel/CreateObjectAdvancedSettings":8151,"./SpawnPanel/CreateObjectAdvancedSettings.tsx":8151,"./SpawnPanel/CreateObjectSettings":2673,"./SpawnPanel/CreateObjectSettings.tsx":2673,"./SpawnPanel/constants":1160,"./SpawnPanel/constants.tsx":1160,"./SpawnPanel/index":5899,"./SpawnPanel/index.tsx":5899,"./SpawnPanel/types":4196,"./SpawnPanel/types.ts":4196,"./SpawnSearch":9782,"./SpawnSearch.tsx":9782,"./SpawnersMenu":9493,"./SpawnersMenu.tsx":9493,"./SpiderOS":8482,"./SpiderOS.tsx":8482,"./StackCraft":453,"./StackCraft.tsx":453,"./StationAlertConsole":6794,"./StationAlertConsole.tsx":6794,"./StripMenu":532,"./StripMenu.tsx":532,"./SuitStorage":3789,"./SuitStorage.tsx":3789,"./SupermatterMonitor":5083,"./SupermatterMonitor.tsx":5083,"./SyndicateComputerSimple":2312,"./SyndicateComputerSimple.tsx":2312,"./SyndieCargoConsole":1036,"./SyndieCargoConsole.tsx":1036,"./TEG":6179,"./TEG.tsx":6179,"./TTSSeedsExplorer":9953,"./TTSSeedsExplorer.tsx":9953,"./TachyonArray":9602,"./TachyonArray.tsx":9602,"./Tank":5959,"./Tank.tsx":5959,"./TankDispenser":3354,"./TankDispenser.tsx":3354,"./TcommsCore":4409,"./TcommsCore.tsx":4409,"./TcommsRelay":8221,"./TcommsRelay.tsx":8221,"./Teleporter":1092,"./Teleporter.tsx":1092,"./TextInputModal":953,"./TextInputModal.tsx":953,"./ThiefKit":9643,"./ThiefKit.tsx":9643,"./TransferValve":7250,"./TransferValve.tsx":7250,"./TurbineComputer":8593,"./TurbineComputer.tsx":8593,"./Uplink":1988,"./Uplink.tsx":1988,"./UploadPanel":876,"./UploadPanel.tsx":876,"./VampireSpecMenu":2865,"./VampireSpecMenu.tsx":2865,"./VampireTrophiesStatus":785,"./VampireTrophiesStatus.tsx":785,"./Vending":748,"./Vending.tsx":748,"./VethPlayerPanel":229,"./VethPlayerPanel.tsx":229,"./VolumeMixer":3813,"./VolumeMixer.tsx":3813,"./VotePanel":6485,"./VotePanel.tsx":6485,"./Wires":9037,"./Wires.tsx":9037,"./Workshop":8996,"./Workshop.tsx":8996,"./common/AccessList":3211,"./common/AccessList.tsx":3211,"./common/AtmosScan":9924,"./common/AtmosScan.tsx":9924,"./common/BeakerContents":829,"./common/BeakerContents.tsx":829,"./common/ColorSelector":2251,"./common/ColorSelector.tsx":2251,"./common/ComplexModal":538,"./common/ComplexModal.tsx":538,"./common/Connections":6158,"./common/Connections.tsx":6158,"./common/CrewManifest":3261,"./common/CrewManifest.tsx":3261,"./common/GasmixParser":2080,"./common/GasmixParser.tsx":2080,"./common/InputButtons":30,"./common/InputButtons.tsx":30,"./common/InterfaceLockNoticeBox":6186,"./common/InterfaceLockNoticeBox.tsx":6186,"./common/Loader":3384,"./common/Loader.tsx":3384,"./common/LoadingScreen":1997,"./common/LoadingScreen.tsx":1997,"./common/LoginInfo":1530,"./common/LoginInfo.tsx":1530,"./common/LoginScreen":9298,"./common/LoginScreen.tsx":9298,"./common/Operating":9680,"./common/Operating.tsx":9680,"./common/SearchBar":5618,"./common/SearchBar.tsx":5618,"./common/Signaler":5664,"./common/Signaler.tsx":5664,"./common/SimpleRecords":8725,"./common/SimpleRecords.tsx":8725,"./common/SortButtons":1154,"./common/SortButtons.tsx":1154,"./common/TemporaryNotice":2424,"./common/TemporaryNotice.tsx":2424,"./common/types":3777,"./common/types.ts":3777,"./manually-routed/KitchenSink":8206,"./manually-routed/KitchenSink.tsx":8206,"./pai/pai_advsecrecords":6051,"./pai/pai_advsecrecords.tsx":6051,"./pai/pai_atmosphere":9515,"./pai/pai_atmosphere.tsx":9515,"./pai/pai_bioscan":4446,"./pai/pai_bioscan.tsx":4446,"./pai/pai_camera_bug":937,"./pai/pai_camera_bug.tsx":937,"./pai/pai_directives":4185,"./pai/pai_directives.tsx":4185,"./pai/pai_doorjack":7502,"./pai/pai_doorjack.tsx":7502,"./pai/pai_encoder":331,"./pai/pai_encoder.tsx":331,"./pai/pai_gps_module":2720,"./pai/pai_gps_module.tsx":2720,"./pai/pai_main_menu":1696,"./pai/pai_main_menu.tsx":1696,"./pai/pai_manifest":1364,"./pai/pai_manifest.tsx":1364,"./pai/pai_medrecords":3939,"./pai/pai_medrecords.tsx":3939,"./pai/pai_messenger":2938,"./pai/pai_messenger.tsx":2938,"./pai/pai_radio":9342,"./pai/pai_radio.tsx":9342,"./pai/pai_sec_chem":6546,"./pai/pai_sec_chem.tsx":6546,"./pai/pai_secrecords":9484,"./pai/pai_secrecords.tsx":9484,"./pai/pai_signaler":1742,"./pai/pai_signaler.tsx":1742,"./pai/types":4941,"./pai/types.ts":4941,"./pda/pda_atmos_scan":8433,"./pda/pda_atmos_scan.tsx":8433,"./pda/pda_janitor":2476,"./pda/pda_janitor.tsx":2476,"./pda/pda_main_menu":4468,"./pda/pda_main_menu.tsx":4468,"./pda/pda_manifest":7168,"./pda/pda_manifest.tsx":7168,"./pda/pda_medical":4342,"./pda/pda_medical.tsx":4342,"./pda/pda_messenger":5286,"./pda/pda_messenger.tsx":5286,"./pda/pda_mule":9804,"./pda/pda_mule.tsx":9804,"./pda/pda_notes":8776,"./pda/pda_notes.tsx":8776,"./pda/pda_power":9076,"./pda/pda_power.tsx":9076,"./pda/pda_request_console":6762,"./pda/pda_request_console.tsx":6762,"./pda/pda_secbot":7761,"./pda/pda_secbot.tsx":7761,"./pda/pda_security":8633,"./pda/pda_security.tsx":8633,"./pda/pda_signaler":9794,"./pda/pda_signaler.tsx":9794,"./pda/pda_status_display":8438,"./pda/pda_status_display.tsx":8438,"./pda/pda_supplyrecords":226,"./pda/pda_supplyrecords.tsx":226,"./pda/types":7052,"./pda/types.ts":7052};function s(t){var a=n(t);return r(a)}function n(t){if(!r.o(e,t)){var a=new Error("Cannot find module '"+t+"'");throw a.code="MODULE_NOT_FOUND",a}return e[t]}s.keys=function(){return Object.keys(e)},s.resolve=n,q.exports=s,s.id=2054},2080:(q,S,r)=>{"use strict";r.r(S),r.d(S,{GasmixParser:()=>a});var e=r(1131),s=r(5180);function n(){return n=Object.assign||function(b){for(var O=1;O=0)&&(y[f]=b[f]);return y}var a=function(b){var O=b.gasmix,y=b.gasesOnClick,u=b.temperatureOnClick,f=b.volumeOnClick,m=b.pressureOnClick,d=b.reactionOnClick,v=b.detailedReactions,_=t(b,["gasmix","gasesOnClick","temperatureOnClick","volumeOnClick","pressureOnClick","reactionOnClick","detailedReactions"]),l=O.gases,c=O.temperature,h=O.volume,g=O.pressure,p=O.total_moles,j=O.reactions;return p?(0,e.jsxs)(s.Ki,n({},_,{children:[l.map(function(x){return(0,e.jsx)(s.Ki.Item,{label:y?(0,e.jsx)(s.$n,{content:x[1],onClick:function(){return y(x[0])}}):x[1],children:x[2].toFixed(2)+" mol ("+(x[2]/p*100).toFixed(2)+" %)"},x[1])}),(0,e.jsx)(s.Ki.Item,{label:u?(0,e.jsx)(s.$n,{content:"Temperature",onClick:function(){return u()}}):"Temperature",children:""+(p?c.toFixed(2):"-")+" K"}),(0,e.jsx)(s.Ki.Item,{label:f?(0,e.jsx)(s.$n,{content:"Volume",onClick:function(){return f()}}):"Volume",children:""+(p?h.toFixed(2):"-")+" L"}),(0,e.jsx)(s.Ki.Item,{label:m?(0,e.jsx)(s.$n,{content:"Pressure",onClick:function(){return m()}}):"Pressure",children:""+(p?g.toFixed(2):"-")+" kPa"}),v?j.map(function(x){return(0,e.jsx)(s.Ki.Item,{label:d?(0,e.jsx)(s.$n,{content:x[1],onClick:function(){return d(x[0])}}):x[1],children:x[2]},O.reference+"-"+x[0])}):(0,e.jsx)(s.Ki.Item,{label:"Gas Reactions",children:j.length?j.map(function(x,C){return d?(0,e.jsx)(s.az,{mb:"0.5em",children:(0,e.jsx)(s.$n,{content:x[1],onClick:function(){return d(x[0])}})},x[1]):(0,e.jsx)("div",{children:x[1]},x[1])}):"No reactions detected"})]})):(0,e.jsx)(s.az,{nowrap:!0,italic:!0,mb:"10px",children:"No Gas Detected!"})}},2091:(q,S,r)=>{"use strict";r.r(S),r.d(S,{meta:()=>t});var e=r(1131),s=r(7003),n=r(5180);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var t={title:"ProgressBar",render:function(){return(0,e.jsx)(a,{})}},a=function(O){var b=(0,s.useState)(.5),y=b[0],u=b[1];return(0,e.jsxs)(n.wn,{children:[(0,e.jsxs)(n.z2,{ranges:{good:[.5,1/0],bad:[-1/0,.1],average:[0,.5]},minValue:-1,maxValue:1,value:y,children:["Value: ",Number(y).toFixed(1)]}),(0,e.jsxs)(n.az,{mt:1,children:[(0,e.jsx)(n.$n,{content:"-0.1",onClick:function(){return u(y-.1)}}),(0,e.jsx)(n.$n,{content:"+0.1",onClick:function(){return u(y+.1)}})]})]})}},2139:(q,S,r)=>{"use strict";r.r(S),r.d(S,{meta:()=>n});var e=r(1131),s=r(5180);/** + */var t={title:"ProgressBar",render:function(){return(0,e.jsx)(a,{})}},a=function(b){var O=(0,s.useState)(.5),y=O[0],u=O[1];return(0,e.jsxs)(n.wn,{children:[(0,e.jsxs)(n.z2,{ranges:{good:[.5,1/0],bad:[-1/0,.1],average:[0,.5]},minValue:-1,maxValue:1,value:y,children:["Value: ",Number(y).toFixed(1)]}),(0,e.jsxs)(n.az,{mt:1,children:[(0,e.jsx)(n.$n,{content:"-0.1",onClick:function(){return u(y-.1)}}),(0,e.jsx)(n.$n,{content:"+0.1",onClick:function(){return u(y+.1)}})]})]})}},2139:(q,S,r)=>{"use strict";r.r(S),r.d(S,{meta:()=>n});var e=r(1131),s=r(5180);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var n={title:"Stack",render:function(){return(0,e.jsx)(O,{})}},t=function(){return(0,e.jsx)(s.az,{inline:!0,width:1,height:1,children:"A"})},a=function(){return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(t,{})}),(0,e.jsx)(s.BJ.Divider,{}),(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(t,{})})]})},O=function(b){return(0,e.jsx)(s.wn,{fill:!0,children:(0,e.jsxs)(s.BJ,{fill:!0,className:"debug-layout",children:[(0,e.jsx)(a,{}),(0,e.jsx)(s.BJ.Item,{grow:1,children:(0,e.jsxs)(s.BJ,{fill:!0,vertical:!0,zebra:!0,children:[(0,e.jsx)(a,{}),(0,e.jsx)(s.BJ.Item,{children:(0,e.jsxs)(s.BJ,{fill:!0,children:[(0,e.jsx)(a,{}),(0,e.jsx)(s.BJ.Item,{grow:1}),(0,e.jsx)(a,{}),(0,e.jsx)(a,{})]})}),(0,e.jsx)(s.BJ.Item,{grow:1}),(0,e.jsx)(a,{})]})})]})})}},2150:(q,S,r)=>{"use strict";r.r(S),r.d(S,{CloningConsole:()=>m});var e=r(1131),s=r(9818),n=r(360),t=r(5180),a=r(9357),O=r(538),b=r(3521),y=r(1243);function u(){return u=Object.assign||function(g){for(var p=1;p1?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.az,{color:a.lm.damageType.oxy,inline:!0,children:T[0]}),"\xA0|\xA0",(0,e.jsx)(t.az,{color:a.lm.damageType.toxin,inline:!0,children:T[2]}),"\xA0|\xA0",(0,e.jsx)(t.az,{color:a.lm.damageType.brute,inline:!0,children:T[3]}),"\xA0|\xA0",(0,e.jsx)(t.az,{color:a.lm.damageType.burn,inline:!0,children:T[1]})]}):(0,e.jsx)(t.az,{color:"bad",children:"\u041D\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E"})}),(0,e.jsx)(t.Ki.Item,{label:"\u0423\u0418",className:"LabeledList__breakContents",children:B}),(0,e.jsx)(t.Ki.Item,{label:"\u0421\u0424",className:"LabeledList__breakContents",children:w}),(0,e.jsxs)(t.Ki.Item,{label:"Disk",children:[(0,e.jsx)(t.$n.Confirm,{disabled:!x.disk,icon:"arrow-circle-down",onClick:function(){return j("disk",{option:"load"})},children:"\u0418\u043C\u043F\u043E\u0440\u0442 \u0434\u0430\u043D\u043D\u044B\u0445"}),(0,e.jsx)(t.$n,{disabled:!x.disk,icon:"arrow-circle-up",onClick:function(){return j("disk",{option:"save",savetype:"ui"})},children:"\u042D\u043A\u0441\u043F\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0423\u0418"}),(0,e.jsx)(t.$n,{disabled:!x.disk,icon:"arrow-circle-up",onClick:function(){return j("disk",{option:"save",savetype:"ue"})},children:"\u042D\u043A\u0441\u043F\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0423\u0418 \u0438 \u0423\u0424"}),(0,e.jsx)(t.$n,{disabled:!x.disk,icon:"arrow-circle-up",onClick:function(){return j("disk",{option:"save",savetype:"se"})},children:"\u042D\u043A\u0441\u043F\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0421\u0424"})]}),(0,e.jsxs)(t.Ki.Item,{label:"\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u044F",children:[(0,e.jsx)(t.$n,{disabled:!x.podready,icon:"user-plus",onClick:function(){return j("clone",{ref:I})},children:"\u041A\u043B\u043E\u043D\u0438\u0440\u043E\u0432\u0430\u0442\u044C"}),(0,e.jsx)(t.$n,{icon:"trash",onClick:function(){return j("del_rec")},children:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C"})]})]})})},m=function(g){return(0,O.modalRegisterBodyOverride)("view_rec",f),(0,e.jsxs)(b.p8,{width:640,height:520,children:[(0,e.jsx)(O.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),(0,e.jsxs)(b.p8.Content,{className:"Layout__content--flexColumn",children:[(0,e.jsx)(c,{}),(0,e.jsx)(h,{}),(0,e.jsx)(d,{}),(0,e.jsx)(t.wn,{noTopPadding:!0,style:{flexGrow:"1"},children:(0,e.jsx)(v,{})})]})]})},d=function(g){var p=(0,n.Oc)(),j=p.act,x=p.data,C=x.menu;return(0,e.jsxs)(t.tU,{children:[(0,e.jsx)(t.tU.Tab,{selected:C===1,icon:"home",onClick:function(){return j("menu",{num:1})},children:"\u041E\u0441\u043D\u043E\u0432\u043D\u043E\u0435"}),(0,e.jsx)(t.tU.Tab,{selected:C===2,icon:"folder",onClick:function(){return j("menu",{num:2})},children:"\u0417\u0430\u043F\u0438\u0441\u0438"})]})},v=function(g){var p=(0,n.Oc)().data,j=p.menu,x;return j===1?x=(0,e.jsx)(_,{}):j===2&&(x=(0,e.jsx)(l,{})),x},_=function(g){var p=(0,n.Oc)(),j=p.act,x=p.data,C=x.loading,I=x.scantemp,P=x.occupant,M=x.locked,B=x.can_brainscan,w=x.scan_mode,T=x.numberofpods,K=x.pods,R=x.selected_pod,U=M&&!!P;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.wn,{title:"\u0421\u043A\u0430\u043D\u0435\u0440",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.az,{inline:!0,color:"label",children:"\u0411\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0430 \u0441\u043A\u0430\u043D\u0435\u0440\u0430:\xA0"}),(0,e.jsx)(t.$n,{disabled:!P,selected:U,icon:U?"toggle-on":"toggle-off",onClick:function(){return j("lock")},children:U?"\u0410\u043A\u0442\u0438\u0432\u043D\u0430":"\u041D\u0435\u0430\u043A\u0442\u0438\u0432\u043D\u0430"}),(0,e.jsx)(t.$n,{disabled:U||!P,icon:"user-slash",onClick:function(){return j("eject")},children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u0441\u0443\u0431\u044A\u0435\u043A\u0442"})]}),children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",children:C?(0,e.jsxs)(t.az,{color:"average",children:[(0,e.jsx)(t.In,{name:"spinner",spin:!0}),"\xA0 \u0421\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435..."]}):(0,e.jsx)(t.az,{color:I.color,children:I.text})}),!!B&&(0,e.jsx)(t.Ki.Item,{label:"\u0420\u0435\u0436\u0438\u043C \u0441\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F",children:(0,e.jsx)(t.$n,{icon:w?"brain":"male",onClick:function(){return j("toggle_mode")},children:w?"\u041C\u043E\u0437\u0433":"\u0422\u0435\u043B\u043E"})})]}),(0,e.jsx)(t.$n,{disabled:!P||C,icon:"user",mt:"0.5rem",mb:"0",onClick:function(){return j("scan")},children:"\u0421\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0443\u0431\u044A\u0435\u043A\u0442"})]}),(0,e.jsx)(t.wn,{title:"\u041A\u0430\u043F\u0441\u0443\u043B\u044B",children:T?K.map(function(F,$){var W;return F.status==="cloning"?W=(0,e.jsx)(t.z2,{minValue:0,maxValue:100,value:F.progress,ranges:{good:[.75,1/0],average:[.25,.75],bad:[-1/0,.25]},mt:"0.5rem",children:(0,e.jsx)(t.az,{textAlign:"center",children:(0,s.LI)(F.progress,0)+"%"})}):F.status==="mess"?W=(0,e.jsx)(t.az,{bold:!0,color:"bad",mt:"0.5rem",children:"\u041E\u0448\u0438\u0431\u043A\u0430"}):W=(0,e.jsx)(t.$n,{selected:R===F.pod,icon:R===F.pod&&"check",content:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C",mt:"0.5rem",onClick:function(){return j("selectpod",{ref:F.pod})}}),(0,e.jsxs)(t.az,{width:"64px",textAlign:"center",inline:!0,mr:"0.5rem",children:[(0,e.jsx)(t._V,{src:(0,y.l)("pod_"+F.status+".gif"),style:{width:"100%"}}),(0,e.jsxs)(t.az,{color:"label",children:["\u041A\u0430\u043F\u0441\u0443\u043B\u0430 \u2116",$+1]}),(0,e.jsxs)(t.az,{bold:!0,color:F.biomass>=150?"good":"bad",inline:!0,children:[(0,e.jsx)(t.In,{name:F.biomass>=150?"circle":"circle-o"}),"\xA0",F.biomass]}),W]},$)}):(0,e.jsx)(t.az,{color:"bad",children:"\u041A\u0430\u043F\u0441\u0443\u043B\u044B \u043D\u0435 \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u044B. \u041A\u043B\u043E\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435 \u043D\u0435\u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E."})})]})},l=function(g){var p=(0,n.Oc)(),j=p.act,x=p.data,C=x.records;return C.length?(0,e.jsx)(t.az,{mt:"0.5rem",children:C.map(function(I,P){return(0,e.jsx)(t.$n,{icon:"user",mb:"0.5rem",onClick:function(){return j("view_rec",{ref:I.record})},children:I.realname},P)})}):(0,e.jsx)(t.so,{height:"100%",children:(0,e.jsxs)(t.so.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,e.jsx)(t.In,{name:"user-slash",mb:"0.5rem",size:5}),(0,e.jsx)("br",{}),"\u0417\u0430\u043F\u0438\u0441\u0438 \u043D\u0435 \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u044B."]})})},c=function(g){var p=(0,n.Oc)(),j=p.act,x=p.data,C=x.temp;if(!(!C||!C.text||C.text.length<=0)){var I,P=(I={},I[C.style]=!0,I);return(0,e.jsxs)(t.IC,u({},P,{children:[(0,e.jsx)(t.az,{verticalAlign:"middle",inline:!0,style:{display:"inline-block"},children:C.text}),(0,e.jsx)(t.$n,{icon:"times-circle",style:{float:"right"},onClick:function(){return j("cleartemp")}}),(0,e.jsx)(t.az,{style:{clear:"both"}})]}))}},h=function(g){var p=(0,n.Oc)(),j=p.act,x=p.data,C=x.scanner,I=x.numberofpods,P=x.autoallowed,M=x.autoprocess,B=x.disk;return(0,e.jsx)(t.wn,{title:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",buttons:(0,e.jsxs)(e.Fragment,{children:[!!P&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.az,{inline:!0,color:"label",children:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u043A\u043B\u043E\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435:\xA0"}),(0,e.jsx)(t.$n,{selected:M,icon:M?"toggle-on":"toggle-off",onClick:function(){return j("autoprocess",{on:M?0:1})},children:M?"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u043E":"\u0412\u044B\u043A\u043B\u044E\u0447\u0435\u043D\u043E"})]}),(0,e.jsx)(t.$n,{disabled:!B,icon:"eject",onClick:function(){return j("disk",{option:"eject"})},children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u0434\u0438\u0441\u043A\u0435\u0442\u0443"})]}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"\u0421\u043A\u0430\u043D\u0435\u0440",children:C?(0,e.jsx)(t.az,{color:"good",children:"\u041F\u043E\u0434\u043A\u043B\u044E\u0447\u0451\u043D"}):(0,e.jsx)(t.az,{color:"bad",children:"\u041D\u0435 \u043F\u043E\u0434\u043A\u043B\u044E\u0447\u0451\u043D"})}),(0,e.jsx)(t.Ki.Item,{label:"\u041A\u0430\u043F\u0441\u0443\u043B\u044B",children:I?(0,e.jsxs)(t.az,{color:"good",children:["\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u043F\u043E\u0434\u043A\u043B\u044E\u0447\u0451\u043D\u043D\u044B\u0445 \u043A\u0430\u043F\u0441\u0443\u043B - ",I]}):(0,e.jsx)(t.az,{color:"bad",children:"\u041D\u0435 \u043F\u043E\u0434\u043A\u043B\u044E\u0447\u0435\u043D\u044B"})})]})})}},2151:(q,S,r)=>{"use strict";r.r(S),r.d(S,{CircuitAccessChecker:()=>O});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=r(3211),O=function(b){var y=(0,s.Oc)(),u=y.act,f=y.data,m=f.oneAccess,d=f.regions,v=f.accesses;return(0,e.jsx)(t.p8,{width:420,height:360,children:(0,e.jsxs)(t.p8.Content,{children:[(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"\u0422\u0440\u0435\u0431\u043E\u0432\u0430\u043D\u0438\u044F \u043A \u0434\u043E\u0441\u0442\u0443\u043F\u0443",children:(0,e.jsx)(n.$n,{icon:m?"unlock":"lock",onClick:function(){return u("one_access")},children:m?"\u041E\u0434\u0438\u043D":"\u0412\u0441\u0435"})})}),(0,e.jsx)(a.AccessList,{accesses:d||[],selectedList:v||[],accessMod:function(_){return u("set",{access:_})},grantAll:function(){return u("grant_all")},denyAll:function(){return u("clear_all")},grantDep:function(_){return u("grant_region",{region:_})},denyDep:function(_){return u("deny_region",{region:_})}})]})})}},2251:(q,S,r)=>{"use strict";r.r(S),r.d(S,{ColorInput:()=>l,ColorSelector:()=>d,HexColorInput:()=>_});var e=r(1131),s=r(8589),n=r(5180),t=r(9818),a=r(185),O=r(7003),b=r(4947);function y(){return y=Object.assign||function(C){for(var I=1;I=0)&&(P[B]=C[B]);return P}function m(C,I){return m=Object.setPrototypeOf||function(M,B){return M.__proto__=B,M},m(C,I)}var d=function(C){var I=C.color,P=C.setColor,M=C.defaultColor,B=C.minimalize,w=function(R){P(Object.assign({},I,R))},T=(0,s.ss)(I),K=(0,s.D9)(I);return(0,e.jsxs)(n.so,{direction:"row",children:[(0,e.jsx)(n.so.Item,{mr:2,children:(0,e.jsxs)(n.BJ,{vertical:!0,children:[(0,e.jsx)(n.BJ.Item,{children:(0,e.jsxs)("div",{className:"react-colorful",children:[(0,e.jsx)(h,{hsva:I,onChange:w}),(0,e.jsx)(g,{hue:I.h,onChange:w,className:"react-colorful__last-control"})]})}),(0,e.jsxs)(n.BJ.Item,{children:[(0,e.jsx)(n.az,{inline:!0,width:"100px",height:"20px",textAlign:"center",children:"Current"}),(0,e.jsx)(n.az,{inline:!0,width:"100px",height:"20px",textAlign:"center",children:"Previous"}),(0,e.jsx)("br",{}),(0,e.jsx)(n.m_,{content:K,position:"bottom",children:(0,e.jsx)(n.az,{inline:!0,width:"100px",height:"30px",backgroundColor:K})}),(0,e.jsx)(n.m_,{content:M,position:"bottom",children:(0,e.jsx)(n.az,{inline:!0,width:"100px",height:"30px",backgroundColor:M})})]})]})}),!B&&(0,e.jsx)(n.so.Item,{grow:!0,fontSize:"15px",lineHeight:"24px",children:(0,e.jsxs)(n.BJ,{vertical:!0,children:[(0,e.jsx)(n.BJ.Item,{children:(0,e.jsxs)(n.BJ,{children:[(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.az,{textColor:"label",children:"Hex:"})}),(0,e.jsx)(n.BJ.Item,{grow:!0,height:"24px",children:(0,e.jsx)(_,{fluid:!0,color:(0,s.D9)(I).substring(1),onChange:function(R){b.v.info(R),P((0,s.RV)(R))},prefixed:!0})})]})}),(0,e.jsx)(n.BJ.Divider,{}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsxs)(n.BJ,{children:[(0,e.jsx)(n.BJ.Item,{width:"25px",children:(0,e.jsx)(n.az,{textColor:"label",children:"H:"})}),(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(g,{hue:I.h,onChange:w})}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(c,{value:I.h,callback:function(R,U){return w({h:U})},max:360,unit:"\xB0"})})]})}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsxs)(n.BJ,{children:[(0,e.jsx)(n.BJ.Item,{width:"25px",children:(0,e.jsx)(n.az,{textColor:"label",children:"S:"})}),(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(p,{color:I,onChange:w})}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(c,{value:I.s,callback:function(R,U){return w({s:U})},unit:"%"})})]})}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsxs)(n.BJ,{children:[(0,e.jsx)(n.BJ.Item,{width:"25px",children:(0,e.jsx)(n.az,{textColor:"label",children:"V:"})}),(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(j,{color:I,onChange:w})}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(c,{value:I.v,callback:function(R,U){return w({v:U})},unit:"%"})})]})}),(0,e.jsx)(n.BJ.Divider,{}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsxs)(n.BJ,{children:[(0,e.jsx)(n.BJ.Item,{width:"25px",children:(0,e.jsx)(n.az,{textColor:"label",children:"R:"})}),(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(x,{color:I,onChange:w,target:"r"})}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(c,{value:T.r,callback:function(R,U){T.r=U,w((0,s.SX)(T))},max:255})})]})}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsxs)(n.BJ,{children:[(0,e.jsx)(n.BJ.Item,{width:"25px",children:(0,e.jsx)(n.az,{textColor:"label",children:"G:"})}),(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(x,{color:I,onChange:w,target:"g"})}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(c,{value:T.g,callback:function(R,U){T.g=U,w((0,s.SX)(T))},max:255})})]})}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsxs)(n.BJ,{children:[(0,e.jsx)(n.BJ.Item,{width:"25px",children:(0,e.jsx)(n.az,{textColor:"label",children:"B:"})}),(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(x,{color:I,onChange:w,target:"b"})}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(c,{value:T.b,callback:function(R,U){T.b=U,w((0,s.SX)(T))},max:255})})]})})]})})]})},v=function(C){return"#"+C},_=function(C){var I=C.prefixed,P=C.alpha,M=C.color,B=C.fluid,w=C.onChange,T=f(C,["prefixed","alpha","color","fluid","onChange"]),K=function(U){return U.replace(/([^0-9A-F]+)/gi,"").substring(0,P?8:6)},R=function(U){return(0,s.Am)(U,P)};return(0,e.jsx)(l,y({},T,{fluid:B,color:M,onChange:w,escape:K,format:I?v:void 0,validate:R}))},l=function(C){"use strict";u(I,C);function I(M){var B;return B=C.call(this,M)||this,B.handleInput=function(w){var T=B.props.escape(w.currentTarget.value);B.setState({localValue:T})},B.handleBlur=function(w){w.currentTarget&&(B.props.validate(w.currentTarget.value)?B.props.onChange(B.props.escape?B.props.escape(w.currentTarget.value):w.currentTarget.value):B.setState({localValue:B.props.escape(B.props.color)}))},B.state={localValue:B.props.escape(B.props.color)},B}var P=I.prototype;return P.componentDidUpdate=function(B,w){B.color!==this.props.color&&this.setState({localValue:this.props.escape(this.props.color)})},P.render=function(){return(0,e.jsxs)(n.az,{className:(0,a.Ly)(["Input",this.props.fluid&&"Input--fluid"]),children:[(0,e.jsx)("div",{className:"Input__baseline",children:"."}),(0,e.jsx)("input",{className:"Input__input",value:this.props.format?this.props.format(this.state.localValue):this.state.localValue,spellCheck:"false",onInput:this.handleInput,onBlur:this.handleBlur})]})},I}(O.Component),c=function(C){var I=C.value,P=C.callback,M=C.min,B=M===void 0?0:M,w=C.max,T=w===void 0?100:w,K=C.unit;return(0,e.jsx)(n.Q7,{width:"70px",value:Math.round(I),step:1,minValue:B,maxValue:T,onChange:P,unit:K})},h=function(C){var I=C.hsva,P=C.onChange,M=function(T){P({s:T.left*100,v:100-T.top*100})},B=function(T){P({s:(0,t.qE)(I.s+T.left*100,0,100),v:(0,t.qE)(I.v-T.top*100,0,100)})},w={backgroundColor:""+(0,s.QC)({h:I.h,s:100,v:100,a:1})};return(0,e.jsx)(n.az,{className:"react-colorful__saturation_value",style:w,children:(0,e.jsx)(n.HG,{onMove:M,onKey:B,"aria-label":"Color","aria-valuetext":"Saturation "+Math.round(I.s)+"%, Brightness "+Math.round(I.v)+"%",children:(0,e.jsx)(n.gm,{className:"react-colorful__saturation_value-pointer",top:1-I.v/100,left:I.s/100,color:(0,s.QC)(I)})})})},g=function(C){var I=C.className,P=C.hue,M=C.onChange,B=function(K){M({h:360*K.left})},w=function(K){M({h:(0,t.qE)(P+K.left*360,0,360)})},T=(0,a.Ly)(["react-colorful__hue",I]);return(0,e.jsx)("div",{className:T,children:(0,e.jsx)(n.HG,{onMove:B,onKey:w,"aria-label":"Hue","aria-valuenow":Math.round(P),"aria-valuemax":"360","aria-valuemin":"0",children:(0,e.jsx)(n.gm,{className:"react-colorful__hue-pointer",left:P/360,color:(0,s.QC)({h:P,s:100,v:100,a:1})})})})},p=function(C){var I=C.className,P=C.color,M=C.onChange,B=function(K){M({s:100*K.left})},w=function(K){M({s:(0,t.qE)(P.s+K.left*100,0,100)})},T=(0,a.Ly)(["react-colorful__saturation",I]);return(0,e.jsx)("div",{className:T,children:(0,e.jsx)(n.HG,{style:{background:"linear-gradient(to right, "+(0,s.QC)({h:P.h,s:0,v:P.v,a:1})+", "+(0,s.QC)({h:P.h,s:100,v:P.v,a:1})+")"},onMove:B,onKey:w,"aria-label":"Saturation","aria-valuenow":Math.round(P.s),"aria-valuemax":"100","aria-valuemin":"0",children:(0,e.jsx)(n.gm,{className:"react-colorful__saturation-pointer",left:P.s/100,color:(0,s.QC)({h:P.h,s:P.s,v:P.v,a:1})})})})},j=function(C){var I=C.className,P=C.color,M=C.onChange,B=function(K){M({v:100*K.left})},w=function(K){M({v:(0,t.qE)(P.v+K.left*100,0,100)})},T=(0,a.Ly)(["react-colorful__value",I]);return(0,e.jsx)("div",{className:T,children:(0,e.jsx)(n.HG,{style:{background:"linear-gradient(to right, "+(0,s.QC)({h:P.h,s:P.s,v:0,a:1})+", "+(0,s.QC)({h:P.h,s:P.s,v:100,a:1})+")"},onMove:B,onKey:w,"aria-label":"Value","aria-valuenow":Math.round(P.s),"aria-valuemax":"100","aria-valuemin":"0",children:(0,e.jsx)(n.gm,{className:"react-colorful__value-pointer",left:P.v/100,color:(0,s.QC)({h:P.h,s:P.s,v:P.v,a:1})})})})},x=function(C){var I=C.className,P=C.color,M=C.onChange,B=C.target,w=(0,s.ss)(P),T=function($){w[B]=$,M((0,s.SX)(w))},K=function($){T(255*$.left)},R=function($){T((0,t.qE)(w[B]+$.left*255,0,255))},U=(0,a.Ly)(["react-colorful__"+B,I]),F=B==="r"?"rgb("+Math.round(w.r)+",0,0)":B==="g"?"rgb(0,"+Math.round(w.g)+",0)":"rgb(0,0,"+Math.round(w.b)+")";return(0,e.jsx)("div",{className:U,children:(0,e.jsx)(n.HG,{onMove:K,onKey:R,"aria-valuenow":w[B],"aria-valuemax":"100","aria-valuemin":"0",children:(0,e.jsx)(n.gm,{className:"react-colorful__"+B+"-pointer",left:w[B]/255,color:F})})})}},2265:(q,S,r)=>{"use strict";r.r(S),r.d(S,{LatheMaterials:()=>t});var e=r(1131),s=r(360),n=r(5180),t=function(a){var O=(0,s.Oc)().data,b=O.total_materials,y=O.max_materials,u=O.max_chemicals,f=O.total_chemicals;return(0,e.jsx)(n.az,{className:"RndConsole__LatheMaterials",mb:"10px",children:(0,e.jsxs)(n.XI,{width:"auto",children:[(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{bold:!0,children:"\u041E\u0431\u044A\u0451\u043C \u043C\u0430\u0442\u0435\u0440\u0438\u0430\u043B\u0430:"}),(0,e.jsx)(n.XI.Cell,{children:b}),y?(0,e.jsx)(n.XI.Cell,{children:" / "+y}):null]}),(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{bold:!0,children:"\u041E\u0431\u044A\u0451\u043C \u0440\u0435\u0430\u0433\u0435\u043D\u0442\u043E\u0432:"}),(0,e.jsx)(n.XI.Cell,{children:f}),u?(0,e.jsx)(n.XI.Cell,{children:" / "+u}):null]})]})})}},2293:(q,S,r)=>{"use strict";r.r(S),r.d(S,{PodSounds:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(5237),a=function(O){var b=(0,s.Oc)(),y=b.act,u=b.data,f=u.defaultSoundVolume,m=u.soundVolume;return(0,e.jsx)(n.wn,{buttons:(0,e.jsx)(n.$n,{color:"transparent",icon:"volume-up",onClick:function(){return y("soundVolume")},selected:m!==f,tooltip:` - \u0413\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C \u0417\u0443\u043A\u0430:`+m}),fill:!0,title:"\u0417\u0432\u0443\u043A\u0438",children:t.SOUNDS.map(function(d,v){return(0,e.jsx)(n.$n,{onClick:function(){return y(d.act)},selected:u[d.act],tooltip:d.tooltip,tooltipPosition:"top-end",children:d.title},v)})})}},2301:(q,S,r)=>{"use strict";r.r(S),r.d(S,{LatheMainMenu:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(2905),a=function(O){var b=(0,s.Oc)(),y=b.data,u=b.act,f=y.menu,m=y.categories,d=f===4?"\u041C\u0435\u043D\u044E \u043F\u0440\u043E\u0442\u043E\u043B\u0430\u0442\u0430":"\u041C\u0435\u043D\u044E \u043F\u0440\u0438\u043D\u0442\u0435\u0440\u0430 \u043F\u043B\u0430\u0442";return(0,e.jsxs)(n.wn,{title:d,children:[(0,e.jsx)(t.LatheMaterials,{}),(0,e.jsx)(t.LatheSearch,{}),(0,e.jsx)(n.cG,{}),(0,e.jsx)(n.so,{wrap:"wrap",children:m.map(function(v){return(0,e.jsx)(n.so,{style:{flexBasis:"50%",marginBottom:"6px"},children:(0,e.jsx)(n.$n,{icon:"arrow-right",onClick:function(){u("setCategory",{category:v})},children:v})},v)})})]})}},2312:(q,S,r)=>{"use strict";r.r(S),r.d(S,{SyndicateComputerSimple:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(O){var b=(0,s.Oc)(),y=b.act,u=b.data;return(0,e.jsx)(t.p8,{width:400,height:400,theme:"syndicate",children:(0,e.jsx)(t.p8.Content,{children:u.rows.map(function(f){return(0,e.jsxs)(n.wn,{title:f.title,buttons:(0,e.jsx)(n.$n,{disabled:f.buttondisabled,tooltip:f.buttontooltip,tooltipPosition:"left",onClick:function(){return y(f.buttonact)},children:f.buttontitle}),children:[f.status,!!f.bullets&&(0,e.jsx)(n.az,{children:f.bullets.map(function(m){return(0,e.jsx)(n.az,{children:m},m)})})]},f.title)})})})}},2315:(q,S,r)=>{"use strict";r.r(S),r.d(S,{MatrixMathTester:()=>y});var e=r(1131),s=r(360),n=r(7003),t=r(5180),a=r(9818),O=r(3521),b=function(u){var f=(0,s.Oc)().act;return(0,e.jsx)(t.Q7,{value:u.value,minValue:-1/0,maxValue:1/0,step:.005,format:function(m){return(0,a.Mg)(m,3)},width:"100%",onChange:function(m){return f("change_var",{var_name:u.varName,var_value:m})}})},y=function(u){var f=(0,s.Oc)(),m=f.act,d=f.data,v=d.matrix_a,_=d.matrix_b,l=d.matrix_c,c=d.matrix_d,h=d.matrix_e,g=d.matrix_f,p=d.pixelated,j=(0,n.useState)(1),x=j[0],C=j[1],I=(0,n.useState)(1),P=I[0],M=I[1],B=(0,n.useState)(0),w=B[0],T=B[1],K=(0,n.useState)(0),R=K[0],U=K[1],F=(0,n.useState)(0),$=F[0],W=F[1],N=(0,n.useState)(0),Z=N[0],ie=N[1],Q=(0,n.useState)(0),V=Q[0],G=Q[1];return(0,e.jsx)(O.p8,{title:"Transform Editor",width:290,height:270,children:(0,e.jsx)(O.p8.Content,{children:(0,e.jsxs)(t.wn,{fill:!0,children:[(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{width:"30%"}),(0,e.jsx)(t.XI.Cell,{width:"25%",children:"X"}),(0,e.jsx)(t.XI.Cell,{width:"25%",children:"Y"})]}),(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{header:!0,children:"Position(c, f)"}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(b,{value:l,varName:"c"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(b,{value:g,varName:"f"})})]}),(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{header:!0,children:"Incline(b, d)"}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(b,{value:_,varName:"b"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(b,{value:c,varName:"d"})})]}),(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{header:!0,children:"Scale(a,e)"}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(b,{value:v,varName:"a"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(b,{value:h,varName:"e"})})]})]}),(0,e.jsxs)(t.XI,{style:{borderCollapse:"separate",borderSpacing:"0 1px"},children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{children:"Action"}),(0,e.jsx)(t.XI.Cell,{children:"X"}),(0,e.jsx)(t.XI.Cell,{children:"Y"})]}),(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"up-right-and-down-left-from-center",width:"100%",onClick:function(){return m("scale",{x,y:P})},children:"Scale"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.Q7,{value:x,minValue:-1/0,maxValue:1/0,step:.05,format:function(le){return(0,a.Mg)(le,2)},width:"100%",onChange:function(le){return C(le)}})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.Q7,{value:P,minValue:-1/0,maxValue:1/0,step:.05,format:function(le){return(0,a.Mg)(le,2)},width:"100%",onChange:function(le){return M(le)}})})]}),(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"arrow-right",width:"100%",onClick:function(){return m("translate",{x:w,y:R})},children:"Translate"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.Q7,{value:w,minValue:-1/0,maxValue:1/0,step:1,format:function(le){return(0,a.Mg)(le,0)},width:"100%",onChange:function(le){return T(le)}})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.Q7,{value:R,minValue:-1/0,maxValue:1/0,step:1,format:function(le){return(0,a.Mg)(le,0)},width:"100%",onChange:function(le){return U(le)}})})]}),(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"maximize",width:"100%",onClick:function(){return m("shear",{x:$,y:Z})},children:"Shear"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.Q7,{value:$,minValue:-1/0,maxValue:1/0,step:.005,format:function(le){return(0,a.Mg)(le,3)},width:"100%",onChange:function(le){return W(le)}})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.Q7,{value:Z,minValue:-1/0,maxValue:1/0,step:.005,format:function(le){return(0,a.Mg)(le,3)},width:"100%",onChange:function(le){return ie(le)}})})]}),(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"rotate-right",width:"100%",onClick:function(){return m("turn",{angle:V})},children:"Rotate"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.Q7,{value:V,step:.5,maxValue:360,minValue:-360,format:function(le){return(0,a.Mg)(le,1)},width:"100%",onChange:function(le){return G(le)}})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"dog",color:"bad",selected:p,tooltip:"Pixel Enhanced Transforming",tooltipPosition:"bottom",width:"100%",onClick:function(){return m("toggle_pixel")},children:"PET"})})]})]})]})})})}},2335:(q,S,r)=>{"use strict";r.r(S),r.d(S,{SORTING_TYPES:()=>e});var e=[{label:"Alphabetical",propName:"name",inDeciseconds:!1},{label:"Cost",propName:"cost_ms",inDeciseconds:!0},{label:"Init Order",propName:"init_order",inDeciseconds:!1},{label:"Last Fire",propName:"last_fire",inDeciseconds:!1},{label:"Next Fire",propName:"next_fire",inDeciseconds:!1},{label:"Tick Usage",propName:"tick_usage",inDeciseconds:!0},{label:"Avg Usage Per Tick",propName:"usage_per_tick",inDeciseconds:!0},{label:"Subsystem Overtime",propName:"overtime",inDeciseconds:!0}]},2337:(q,S,r)=>{"use strict";r.r(S),r.d(S,{IconDisplay:()=>n});var e=r(1131),s=r(5180),n=function(t){var a=t.item,O=a.icon,b=a.icon_state,y=(0,e.jsx)(s.In,{name:"spinner",size:1.5,spin:!0,color:"gray"});return O?O==="n/a"?(0,e.jsx)(s.In,{name:"dumpster-fire",size:1.5,color:"gray"}):b?(0,e.jsx)(s.Hg,{fallback:y,icon:O,icon_state:b}):(0,e.jsx)(s._V,{fixErrors:!0,src:O}):y}},2338:(q,S,r)=>{"use strict";/** + */var n={title:"Stack",render:function(){return(0,e.jsx)(b,{})}},t=function(){return(0,e.jsx)(s.az,{inline:!0,width:1,height:1,children:"A"})},a=function(){return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(t,{})}),(0,e.jsx)(s.BJ.Divider,{}),(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(t,{})})]})},b=function(O){return(0,e.jsx)(s.wn,{fill:!0,children:(0,e.jsxs)(s.BJ,{fill:!0,className:"debug-layout",children:[(0,e.jsx)(a,{}),(0,e.jsx)(s.BJ.Item,{grow:1,children:(0,e.jsxs)(s.BJ,{fill:!0,vertical:!0,zebra:!0,children:[(0,e.jsx)(a,{}),(0,e.jsx)(s.BJ.Item,{children:(0,e.jsxs)(s.BJ,{fill:!0,children:[(0,e.jsx)(a,{}),(0,e.jsx)(s.BJ.Item,{grow:1}),(0,e.jsx)(a,{}),(0,e.jsx)(a,{})]})}),(0,e.jsx)(s.BJ.Item,{grow:1}),(0,e.jsx)(a,{})]})})]})})}},2150:(q,S,r)=>{"use strict";r.r(S),r.d(S,{CloningConsole:()=>m});var e=r(1131),s=r(9818),n=r(360),t=r(5180),a=r(9357),b=r(538),O=r(3521),y=r(1243);function u(){return u=Object.assign||function(g){for(var p=1;p1?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.az,{color:a.lm.damageType.oxy,inline:!0,children:T[0]}),"\xA0|\xA0",(0,e.jsx)(t.az,{color:a.lm.damageType.toxin,inline:!0,children:T[2]}),"\xA0|\xA0",(0,e.jsx)(t.az,{color:a.lm.damageType.brute,inline:!0,children:T[3]}),"\xA0|\xA0",(0,e.jsx)(t.az,{color:a.lm.damageType.burn,inline:!0,children:T[1]})]}):(0,e.jsx)(t.az,{color:"bad",children:"\u041D\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E"})}),(0,e.jsx)(t.Ki.Item,{label:"\u0423\u0418",className:"LabeledList__breakContents",children:B}),(0,e.jsx)(t.Ki.Item,{label:"\u0421\u0424",className:"LabeledList__breakContents",children:w}),(0,e.jsxs)(t.Ki.Item,{label:"Disk",children:[(0,e.jsx)(t.$n.Confirm,{disabled:!x.disk,icon:"arrow-circle-down",onClick:function(){return j("disk",{option:"load"})},children:"\u0418\u043C\u043F\u043E\u0440\u0442 \u0434\u0430\u043D\u043D\u044B\u0445"}),(0,e.jsx)(t.$n,{disabled:!x.disk,icon:"arrow-circle-up",onClick:function(){return j("disk",{option:"save",savetype:"ui"})},children:"\u042D\u043A\u0441\u043F\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0423\u0418"}),(0,e.jsx)(t.$n,{disabled:!x.disk,icon:"arrow-circle-up",onClick:function(){return j("disk",{option:"save",savetype:"ue"})},children:"\u042D\u043A\u0441\u043F\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0423\u0418 \u0438 \u0423\u0424"}),(0,e.jsx)(t.$n,{disabled:!x.disk,icon:"arrow-circle-up",onClick:function(){return j("disk",{option:"save",savetype:"se"})},children:"\u042D\u043A\u0441\u043F\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0421\u0424"})]}),(0,e.jsxs)(t.Ki.Item,{label:"\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u044F",children:[(0,e.jsx)(t.$n,{disabled:!x.podready,icon:"user-plus",onClick:function(){return j("clone",{ref:I})},children:"\u041A\u043B\u043E\u043D\u0438\u0440\u043E\u0432\u0430\u0442\u044C"}),(0,e.jsx)(t.$n,{icon:"trash",onClick:function(){return j("del_rec")},children:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C"})]})]})})},m=function(g){return(0,b.modalRegisterBodyOverride)("view_rec",f),(0,e.jsxs)(O.p8,{width:640,height:520,children:[(0,e.jsx)(b.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),(0,e.jsxs)(O.p8.Content,{className:"Layout__content--flexColumn",children:[(0,e.jsx)(c,{}),(0,e.jsx)(h,{}),(0,e.jsx)(d,{}),(0,e.jsx)(t.wn,{noTopPadding:!0,style:{flexGrow:"1"},children:(0,e.jsx)(v,{})})]})]})},d=function(g){var p=(0,n.Oc)(),j=p.act,x=p.data,C=x.menu;return(0,e.jsxs)(t.tU,{children:[(0,e.jsx)(t.tU.Tab,{selected:C===1,icon:"home",onClick:function(){return j("menu",{num:1})},children:"\u041E\u0441\u043D\u043E\u0432\u043D\u043E\u0435"}),(0,e.jsx)(t.tU.Tab,{selected:C===2,icon:"folder",onClick:function(){return j("menu",{num:2})},children:"\u0417\u0430\u043F\u0438\u0441\u0438"})]})},v=function(g){var p=(0,n.Oc)().data,j=p.menu,x;return j===1?x=(0,e.jsx)(_,{}):j===2&&(x=(0,e.jsx)(l,{})),x},_=function(g){var p=(0,n.Oc)(),j=p.act,x=p.data,C=x.loading,I=x.scantemp,P=x.occupant,M=x.locked,B=x.can_brainscan,w=x.scan_mode,T=x.numberofpods,K=x.pods,R=x.selected_pod,U=M&&!!P;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.wn,{title:"\u0421\u043A\u0430\u043D\u0435\u0440",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.az,{inline:!0,color:"label",children:"\u0411\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0430 \u0441\u043A\u0430\u043D\u0435\u0440\u0430:\xA0"}),(0,e.jsx)(t.$n,{disabled:!P,selected:U,icon:U?"toggle-on":"toggle-off",onClick:function(){return j("lock")},children:U?"\u0410\u043A\u0442\u0438\u0432\u043D\u0430":"\u041D\u0435\u0430\u043A\u0442\u0438\u0432\u043D\u0430"}),(0,e.jsx)(t.$n,{disabled:U||!P,icon:"user-slash",onClick:function(){return j("eject")},children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u0441\u0443\u0431\u044A\u0435\u043A\u0442"})]}),children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",children:C?(0,e.jsxs)(t.az,{color:"average",children:[(0,e.jsx)(t.In,{name:"spinner",spin:!0}),"\xA0 \u0421\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435..."]}):(0,e.jsx)(t.az,{color:I.color,children:I.text})}),!!B&&(0,e.jsx)(t.Ki.Item,{label:"\u0420\u0435\u0436\u0438\u043C \u0441\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F",children:(0,e.jsx)(t.$n,{icon:w?"brain":"male",onClick:function(){return j("toggle_mode")},children:w?"\u041C\u043E\u0437\u0433":"\u0422\u0435\u043B\u043E"})})]}),(0,e.jsx)(t.$n,{disabled:!P||C,icon:"user",mt:"0.5rem",mb:"0",onClick:function(){return j("scan")},children:"\u0421\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0443\u0431\u044A\u0435\u043A\u0442"})]}),(0,e.jsx)(t.wn,{title:"\u041A\u0430\u043F\u0441\u0443\u043B\u044B",children:T?K.map(function(F,$){var W;return F.status==="cloning"?W=(0,e.jsx)(t.z2,{minValue:0,maxValue:100,value:F.progress,ranges:{good:[.75,1/0],average:[.25,.75],bad:[-1/0,.25]},mt:"0.5rem",children:(0,e.jsx)(t.az,{textAlign:"center",children:(0,s.LI)(F.progress,0)+"%"})}):F.status==="mess"?W=(0,e.jsx)(t.az,{bold:!0,color:"bad",mt:"0.5rem",children:"\u041E\u0448\u0438\u0431\u043A\u0430"}):W=(0,e.jsx)(t.$n,{selected:R===F.pod,icon:R===F.pod&&"check",content:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C",mt:"0.5rem",onClick:function(){return j("selectpod",{ref:F.pod})}}),(0,e.jsxs)(t.az,{width:"64px",textAlign:"center",inline:!0,mr:"0.5rem",children:[(0,e.jsx)(t._V,{src:(0,y.l)("pod_"+F.status+".gif"),style:{width:"100%"}}),(0,e.jsxs)(t.az,{color:"label",children:["\u041A\u0430\u043F\u0441\u0443\u043B\u0430 \u2116",$+1]}),(0,e.jsxs)(t.az,{bold:!0,color:F.biomass>=150?"good":"bad",inline:!0,children:[(0,e.jsx)(t.In,{name:F.biomass>=150?"circle":"circle-o"}),"\xA0",F.biomass]}),W]},$)}):(0,e.jsx)(t.az,{color:"bad",children:"\u041A\u0430\u043F\u0441\u0443\u043B\u044B \u043D\u0435 \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u044B. \u041A\u043B\u043E\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435 \u043D\u0435\u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E."})})]})},l=function(g){var p=(0,n.Oc)(),j=p.act,x=p.data,C=x.records;return C.length?(0,e.jsx)(t.az,{mt:"0.5rem",children:C.map(function(I,P){return(0,e.jsx)(t.$n,{icon:"user",mb:"0.5rem",onClick:function(){return j("view_rec",{ref:I.record})},children:I.realname},P)})}):(0,e.jsx)(t.so,{height:"100%",children:(0,e.jsxs)(t.so.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,e.jsx)(t.In,{name:"user-slash",mb:"0.5rem",size:5}),(0,e.jsx)("br",{}),"\u0417\u0430\u043F\u0438\u0441\u0438 \u043D\u0435 \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u044B."]})})},c=function(g){var p=(0,n.Oc)(),j=p.act,x=p.data,C=x.temp;if(!(!C||!C.text||C.text.length<=0)){var I,P=(I={},I[C.style]=!0,I);return(0,e.jsxs)(t.IC,u({},P,{children:[(0,e.jsx)(t.az,{verticalAlign:"middle",inline:!0,style:{display:"inline-block"},children:C.text}),(0,e.jsx)(t.$n,{icon:"times-circle",style:{float:"right"},onClick:function(){return j("cleartemp")}}),(0,e.jsx)(t.az,{style:{clear:"both"}})]}))}},h=function(g){var p=(0,n.Oc)(),j=p.act,x=p.data,C=x.scanner,I=x.numberofpods,P=x.autoallowed,M=x.autoprocess,B=x.disk;return(0,e.jsx)(t.wn,{title:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",buttons:(0,e.jsxs)(e.Fragment,{children:[!!P&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.az,{inline:!0,color:"label",children:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u043A\u043B\u043E\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435:\xA0"}),(0,e.jsx)(t.$n,{selected:M,icon:M?"toggle-on":"toggle-off",onClick:function(){return j("autoprocess",{on:M?0:1})},children:M?"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u043E":"\u0412\u044B\u043A\u043B\u044E\u0447\u0435\u043D\u043E"})]}),(0,e.jsx)(t.$n,{disabled:!B,icon:"eject",onClick:function(){return j("disk",{option:"eject"})},children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u0434\u0438\u0441\u043A\u0435\u0442\u0443"})]}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"\u0421\u043A\u0430\u043D\u0435\u0440",children:C?(0,e.jsx)(t.az,{color:"good",children:"\u041F\u043E\u0434\u043A\u043B\u044E\u0447\u0451\u043D"}):(0,e.jsx)(t.az,{color:"bad",children:"\u041D\u0435 \u043F\u043E\u0434\u043A\u043B\u044E\u0447\u0451\u043D"})}),(0,e.jsx)(t.Ki.Item,{label:"\u041A\u0430\u043F\u0441\u0443\u043B\u044B",children:I?(0,e.jsxs)(t.az,{color:"good",children:["\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u043F\u043E\u0434\u043A\u043B\u044E\u0447\u0451\u043D\u043D\u044B\u0445 \u043A\u0430\u043F\u0441\u0443\u043B - ",I]}):(0,e.jsx)(t.az,{color:"bad",children:"\u041D\u0435 \u043F\u043E\u0434\u043A\u043B\u044E\u0447\u0435\u043D\u044B"})})]})})}},2151:(q,S,r)=>{"use strict";r.r(S),r.d(S,{CircuitAccessChecker:()=>b});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=r(3211),b=function(O){var y=(0,s.Oc)(),u=y.act,f=y.data,m=f.oneAccess,d=f.regions,v=f.accesses;return(0,e.jsx)(t.p8,{width:420,height:360,children:(0,e.jsxs)(t.p8.Content,{children:[(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"\u0422\u0440\u0435\u0431\u043E\u0432\u0430\u043D\u0438\u044F \u043A \u0434\u043E\u0441\u0442\u0443\u043F\u0443",children:(0,e.jsx)(n.$n,{icon:m?"unlock":"lock",onClick:function(){return u("one_access")},children:m?"\u041E\u0434\u0438\u043D":"\u0412\u0441\u0435"})})}),(0,e.jsx)(a.AccessList,{accesses:d||[],selectedList:v||[],accessMod:function(_){return u("set",{access:_})},grantAll:function(){return u("grant_all")},denyAll:function(){return u("clear_all")},grantDep:function(_){return u("grant_region",{region:_})},denyDep:function(_){return u("deny_region",{region:_})}})]})})}},2251:(q,S,r)=>{"use strict";r.r(S),r.d(S,{ColorInput:()=>l,ColorSelector:()=>d,HexColorInput:()=>_});var e=r(1131),s=r(8589),n=r(5180),t=r(9818),a=r(185),b=r(7003),O=r(4947);function y(){return y=Object.assign||function(C){for(var I=1;I=0)&&(P[B]=C[B]);return P}function m(C,I){return m=Object.setPrototypeOf||function(M,B){return M.__proto__=B,M},m(C,I)}var d=function(C){var I=C.color,P=C.setColor,M=C.defaultColor,B=C.minimalize,w=function(R){P(Object.assign({},I,R))},T=(0,s.ss)(I),K=(0,s.D9)(I);return(0,e.jsxs)(n.so,{direction:"row",children:[(0,e.jsx)(n.so.Item,{mr:2,children:(0,e.jsxs)(n.BJ,{vertical:!0,children:[(0,e.jsx)(n.BJ.Item,{children:(0,e.jsxs)("div",{className:"react-colorful",children:[(0,e.jsx)(h,{hsva:I,onChange:w}),(0,e.jsx)(g,{hue:I.h,onChange:w,className:"react-colorful__last-control"})]})}),(0,e.jsxs)(n.BJ.Item,{children:[(0,e.jsx)(n.az,{inline:!0,width:"100px",height:"20px",textAlign:"center",children:"Current"}),(0,e.jsx)(n.az,{inline:!0,width:"100px",height:"20px",textAlign:"center",children:"Previous"}),(0,e.jsx)("br",{}),(0,e.jsx)(n.m_,{content:K,position:"bottom",children:(0,e.jsx)(n.az,{inline:!0,width:"100px",height:"30px",backgroundColor:K})}),(0,e.jsx)(n.m_,{content:M,position:"bottom",children:(0,e.jsx)(n.az,{inline:!0,width:"100px",height:"30px",backgroundColor:M})})]})]})}),!B&&(0,e.jsx)(n.so.Item,{grow:!0,fontSize:"15px",lineHeight:"24px",children:(0,e.jsxs)(n.BJ,{vertical:!0,children:[(0,e.jsx)(n.BJ.Item,{children:(0,e.jsxs)(n.BJ,{children:[(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.az,{textColor:"label",children:"Hex:"})}),(0,e.jsx)(n.BJ.Item,{grow:!0,height:"24px",children:(0,e.jsx)(_,{fluid:!0,color:(0,s.D9)(I).substring(1),onChange:function(R){O.v.info(R),P((0,s.RV)(R))},prefixed:!0})})]})}),(0,e.jsx)(n.BJ.Divider,{}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsxs)(n.BJ,{children:[(0,e.jsx)(n.BJ.Item,{width:"25px",children:(0,e.jsx)(n.az,{textColor:"label",children:"H:"})}),(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(g,{hue:I.h,onChange:w})}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(c,{value:I.h,callback:function(R,U){return w({h:U})},max:360,unit:"\xB0"})})]})}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsxs)(n.BJ,{children:[(0,e.jsx)(n.BJ.Item,{width:"25px",children:(0,e.jsx)(n.az,{textColor:"label",children:"S:"})}),(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(p,{color:I,onChange:w})}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(c,{value:I.s,callback:function(R,U){return w({s:U})},unit:"%"})})]})}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsxs)(n.BJ,{children:[(0,e.jsx)(n.BJ.Item,{width:"25px",children:(0,e.jsx)(n.az,{textColor:"label",children:"V:"})}),(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(j,{color:I,onChange:w})}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(c,{value:I.v,callback:function(R,U){return w({v:U})},unit:"%"})})]})}),(0,e.jsx)(n.BJ.Divider,{}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsxs)(n.BJ,{children:[(0,e.jsx)(n.BJ.Item,{width:"25px",children:(0,e.jsx)(n.az,{textColor:"label",children:"R:"})}),(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(x,{color:I,onChange:w,target:"r"})}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(c,{value:T.r,callback:function(R,U){T.r=U,w((0,s.SX)(T))},max:255})})]})}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsxs)(n.BJ,{children:[(0,e.jsx)(n.BJ.Item,{width:"25px",children:(0,e.jsx)(n.az,{textColor:"label",children:"G:"})}),(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(x,{color:I,onChange:w,target:"g"})}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(c,{value:T.g,callback:function(R,U){T.g=U,w((0,s.SX)(T))},max:255})})]})}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsxs)(n.BJ,{children:[(0,e.jsx)(n.BJ.Item,{width:"25px",children:(0,e.jsx)(n.az,{textColor:"label",children:"B:"})}),(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(x,{color:I,onChange:w,target:"b"})}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(c,{value:T.b,callback:function(R,U){T.b=U,w((0,s.SX)(T))},max:255})})]})})]})})]})},v=function(C){return"#"+C},_=function(C){var I=C.prefixed,P=C.alpha,M=C.color,B=C.fluid,w=C.onChange,T=f(C,["prefixed","alpha","color","fluid","onChange"]),K=function(U){return U.replace(/([^0-9A-F]+)/gi,"").substring(0,P?8:6)},R=function(U){return(0,s.Am)(U,P)};return(0,e.jsx)(l,y({},T,{fluid:B,color:M,onChange:w,escape:K,format:I?v:void 0,validate:R}))},l=function(C){"use strict";u(I,C);function I(M){var B;return B=C.call(this,M)||this,B.handleInput=function(w){var T=B.props.escape(w.currentTarget.value);B.setState({localValue:T})},B.handleBlur=function(w){w.currentTarget&&(B.props.validate(w.currentTarget.value)?B.props.onChange(B.props.escape?B.props.escape(w.currentTarget.value):w.currentTarget.value):B.setState({localValue:B.props.escape(B.props.color)}))},B.state={localValue:B.props.escape(B.props.color)},B}var P=I.prototype;return P.componentDidUpdate=function(B,w){B.color!==this.props.color&&this.setState({localValue:this.props.escape(this.props.color)})},P.render=function(){return(0,e.jsxs)(n.az,{className:(0,a.Ly)(["Input",this.props.fluid&&"Input--fluid"]),children:[(0,e.jsx)("div",{className:"Input__baseline",children:"."}),(0,e.jsx)("input",{className:"Input__input",value:this.props.format?this.props.format(this.state.localValue):this.state.localValue,spellCheck:"false",onInput:this.handleInput,onBlur:this.handleBlur})]})},I}(b.Component),c=function(C){var I=C.value,P=C.callback,M=C.min,B=M===void 0?0:M,w=C.max,T=w===void 0?100:w,K=C.unit;return(0,e.jsx)(n.Q7,{width:"70px",value:Math.round(I),step:1,minValue:B,maxValue:T,onChange:P,unit:K})},h=function(C){var I=C.hsva,P=C.onChange,M=function(T){P({s:T.left*100,v:100-T.top*100})},B=function(T){P({s:(0,t.qE)(I.s+T.left*100,0,100),v:(0,t.qE)(I.v-T.top*100,0,100)})},w={backgroundColor:""+(0,s.QC)({h:I.h,s:100,v:100,a:1})};return(0,e.jsx)(n.az,{className:"react-colorful__saturation_value",style:w,children:(0,e.jsx)(n.HG,{onMove:M,onKey:B,"aria-label":"Color","aria-valuetext":"Saturation "+Math.round(I.s)+"%, Brightness "+Math.round(I.v)+"%",children:(0,e.jsx)(n.gm,{className:"react-colorful__saturation_value-pointer",top:1-I.v/100,left:I.s/100,color:(0,s.QC)(I)})})})},g=function(C){var I=C.className,P=C.hue,M=C.onChange,B=function(K){M({h:360*K.left})},w=function(K){M({h:(0,t.qE)(P+K.left*360,0,360)})},T=(0,a.Ly)(["react-colorful__hue",I]);return(0,e.jsx)("div",{className:T,children:(0,e.jsx)(n.HG,{onMove:B,onKey:w,"aria-label":"Hue","aria-valuenow":Math.round(P),"aria-valuemax":"360","aria-valuemin":"0",children:(0,e.jsx)(n.gm,{className:"react-colorful__hue-pointer",left:P/360,color:(0,s.QC)({h:P,s:100,v:100,a:1})})})})},p=function(C){var I=C.className,P=C.color,M=C.onChange,B=function(K){M({s:100*K.left})},w=function(K){M({s:(0,t.qE)(P.s+K.left*100,0,100)})},T=(0,a.Ly)(["react-colorful__saturation",I]);return(0,e.jsx)("div",{className:T,children:(0,e.jsx)(n.HG,{style:{background:"linear-gradient(to right, "+(0,s.QC)({h:P.h,s:0,v:P.v,a:1})+", "+(0,s.QC)({h:P.h,s:100,v:P.v,a:1})+")"},onMove:B,onKey:w,"aria-label":"Saturation","aria-valuenow":Math.round(P.s),"aria-valuemax":"100","aria-valuemin":"0",children:(0,e.jsx)(n.gm,{className:"react-colorful__saturation-pointer",left:P.s/100,color:(0,s.QC)({h:P.h,s:P.s,v:P.v,a:1})})})})},j=function(C){var I=C.className,P=C.color,M=C.onChange,B=function(K){M({v:100*K.left})},w=function(K){M({v:(0,t.qE)(P.v+K.left*100,0,100)})},T=(0,a.Ly)(["react-colorful__value",I]);return(0,e.jsx)("div",{className:T,children:(0,e.jsx)(n.HG,{style:{background:"linear-gradient(to right, "+(0,s.QC)({h:P.h,s:P.s,v:0,a:1})+", "+(0,s.QC)({h:P.h,s:P.s,v:100,a:1})+")"},onMove:B,onKey:w,"aria-label":"Value","aria-valuenow":Math.round(P.s),"aria-valuemax":"100","aria-valuemin":"0",children:(0,e.jsx)(n.gm,{className:"react-colorful__value-pointer",left:P.v/100,color:(0,s.QC)({h:P.h,s:P.s,v:P.v,a:1})})})})},x=function(C){var I=C.className,P=C.color,M=C.onChange,B=C.target,w=(0,s.ss)(P),T=function($){w[B]=$,M((0,s.SX)(w))},K=function($){T(255*$.left)},R=function($){T((0,t.qE)(w[B]+$.left*255,0,255))},U=(0,a.Ly)(["react-colorful__"+B,I]),F=B==="r"?"rgb("+Math.round(w.r)+",0,0)":B==="g"?"rgb(0,"+Math.round(w.g)+",0)":"rgb(0,0,"+Math.round(w.b)+")";return(0,e.jsx)("div",{className:U,children:(0,e.jsx)(n.HG,{onMove:K,onKey:R,"aria-valuenow":w[B],"aria-valuemax":"100","aria-valuemin":"0",children:(0,e.jsx)(n.gm,{className:"react-colorful__"+B+"-pointer",left:w[B]/255,color:F})})})}},2265:(q,S,r)=>{"use strict";r.r(S),r.d(S,{LatheMaterials:()=>t});var e=r(1131),s=r(360),n=r(5180),t=function(a){var b=(0,s.Oc)().data,O=b.total_materials,y=b.max_materials,u=b.max_chemicals,f=b.total_chemicals;return(0,e.jsx)(n.az,{className:"RndConsole__LatheMaterials",mb:"10px",children:(0,e.jsxs)(n.XI,{width:"auto",children:[(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{bold:!0,children:"\u041E\u0431\u044A\u0451\u043C \u043C\u0430\u0442\u0435\u0440\u0438\u0430\u043B\u0430:"}),(0,e.jsx)(n.XI.Cell,{children:O}),y?(0,e.jsx)(n.XI.Cell,{children:" / "+y}):null]}),(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{bold:!0,children:"\u041E\u0431\u044A\u0451\u043C \u0440\u0435\u0430\u0433\u0435\u043D\u0442\u043E\u0432:"}),(0,e.jsx)(n.XI.Cell,{children:f}),u?(0,e.jsx)(n.XI.Cell,{children:" / "+u}):null]})]})})}},2293:(q,S,r)=>{"use strict";r.r(S),r.d(S,{PodSounds:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(5237),a=function(b){var O=(0,s.Oc)(),y=O.act,u=O.data,f=u.defaultSoundVolume,m=u.soundVolume;return(0,e.jsx)(n.wn,{buttons:(0,e.jsx)(n.$n,{color:"transparent",icon:"volume-up",onClick:function(){return y("soundVolume")},selected:m!==f,tooltip:` + \u0413\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C \u0417\u0443\u043A\u0430:`+m}),fill:!0,title:"\u0417\u0432\u0443\u043A\u0438",children:t.SOUNDS.map(function(d,v){return(0,e.jsx)(n.$n,{onClick:function(){return y(d.act)},selected:u[d.act],tooltip:d.tooltip,tooltipPosition:"top-end",children:d.title},v)})})}},2301:(q,S,r)=>{"use strict";r.r(S),r.d(S,{LatheMainMenu:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(2905),a=function(b){var O=(0,s.Oc)(),y=O.data,u=O.act,f=y.menu,m=y.categories,d=f===4?"\u041C\u0435\u043D\u044E \u043F\u0440\u043E\u0442\u043E\u043B\u0430\u0442\u0430":"\u041C\u0435\u043D\u044E \u043F\u0440\u0438\u043D\u0442\u0435\u0440\u0430 \u043F\u043B\u0430\u0442";return(0,e.jsxs)(n.wn,{title:d,children:[(0,e.jsx)(t.LatheMaterials,{}),(0,e.jsx)(t.LatheSearch,{}),(0,e.jsx)(n.cG,{}),(0,e.jsx)(n.so,{wrap:"wrap",children:m.map(function(v){return(0,e.jsx)(n.so,{style:{flexBasis:"50%",marginBottom:"6px"},children:(0,e.jsx)(n.$n,{icon:"arrow-right",onClick:function(){u("setCategory",{category:v})},children:v})},v)})})]})}},2312:(q,S,r)=>{"use strict";r.r(S),r.d(S,{SyndicateComputerSimple:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(b){var O=(0,s.Oc)(),y=O.act,u=O.data;return(0,e.jsx)(t.p8,{width:400,height:400,theme:"syndicate",children:(0,e.jsx)(t.p8.Content,{children:u.rows.map(function(f){return(0,e.jsxs)(n.wn,{title:f.title,buttons:(0,e.jsx)(n.$n,{disabled:f.buttondisabled,tooltip:f.buttontooltip,tooltipPosition:"left",onClick:function(){return y(f.buttonact)},children:f.buttontitle}),children:[f.status,!!f.bullets&&(0,e.jsx)(n.az,{children:f.bullets.map(function(m){return(0,e.jsx)(n.az,{children:m},m)})})]},f.title)})})})}},2315:(q,S,r)=>{"use strict";r.r(S),r.d(S,{MatrixMathTester:()=>y});var e=r(1131),s=r(360),n=r(7003),t=r(5180),a=r(9818),b=r(3521),O=function(u){var f=(0,s.Oc)().act;return(0,e.jsx)(t.Q7,{value:u.value,minValue:-1/0,maxValue:1/0,step:.005,format:function(m){return(0,a.Mg)(m,3)},width:"100%",onChange:function(m){return f("change_var",{var_name:u.varName,var_value:m})}})},y=function(u){var f=(0,s.Oc)(),m=f.act,d=f.data,v=d.matrix_a,_=d.matrix_b,l=d.matrix_c,c=d.matrix_d,h=d.matrix_e,g=d.matrix_f,p=d.pixelated,j=(0,n.useState)(1),x=j[0],C=j[1],I=(0,n.useState)(1),P=I[0],M=I[1],B=(0,n.useState)(0),w=B[0],T=B[1],K=(0,n.useState)(0),R=K[0],U=K[1],F=(0,n.useState)(0),$=F[0],W=F[1],N=(0,n.useState)(0),Z=N[0],ie=N[1],Q=(0,n.useState)(0),V=Q[0],G=Q[1];return(0,e.jsx)(b.p8,{title:"Transform Editor",width:290,height:270,children:(0,e.jsx)(b.p8.Content,{children:(0,e.jsxs)(t.wn,{fill:!0,children:[(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{width:"30%"}),(0,e.jsx)(t.XI.Cell,{width:"25%",children:"X"}),(0,e.jsx)(t.XI.Cell,{width:"25%",children:"Y"})]}),(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{header:!0,children:"Position(c, f)"}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(O,{value:l,varName:"c"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(O,{value:g,varName:"f"})})]}),(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{header:!0,children:"Incline(b, d)"}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(O,{value:_,varName:"b"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(O,{value:c,varName:"d"})})]}),(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{header:!0,children:"Scale(a,e)"}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(O,{value:v,varName:"a"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(O,{value:h,varName:"e"})})]})]}),(0,e.jsxs)(t.XI,{style:{borderCollapse:"separate",borderSpacing:"0 1px"},children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{children:"Action"}),(0,e.jsx)(t.XI.Cell,{children:"X"}),(0,e.jsx)(t.XI.Cell,{children:"Y"})]}),(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"up-right-and-down-left-from-center",width:"100%",onClick:function(){return m("scale",{x,y:P})},children:"Scale"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.Q7,{value:x,minValue:-1/0,maxValue:1/0,step:.05,format:function(le){return(0,a.Mg)(le,2)},width:"100%",onChange:function(le){return C(le)}})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.Q7,{value:P,minValue:-1/0,maxValue:1/0,step:.05,format:function(le){return(0,a.Mg)(le,2)},width:"100%",onChange:function(le){return M(le)}})})]}),(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"arrow-right",width:"100%",onClick:function(){return m("translate",{x:w,y:R})},children:"Translate"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.Q7,{value:w,minValue:-1/0,maxValue:1/0,step:1,format:function(le){return(0,a.Mg)(le,0)},width:"100%",onChange:function(le){return T(le)}})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.Q7,{value:R,minValue:-1/0,maxValue:1/0,step:1,format:function(le){return(0,a.Mg)(le,0)},width:"100%",onChange:function(le){return U(le)}})})]}),(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"maximize",width:"100%",onClick:function(){return m("shear",{x:$,y:Z})},children:"Shear"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.Q7,{value:$,minValue:-1/0,maxValue:1/0,step:.005,format:function(le){return(0,a.Mg)(le,3)},width:"100%",onChange:function(le){return W(le)}})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.Q7,{value:Z,minValue:-1/0,maxValue:1/0,step:.005,format:function(le){return(0,a.Mg)(le,3)},width:"100%",onChange:function(le){return ie(le)}})})]}),(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"rotate-right",width:"100%",onClick:function(){return m("turn",{angle:V})},children:"Rotate"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.Q7,{value:V,step:.5,maxValue:360,minValue:-360,format:function(le){return(0,a.Mg)(le,1)},width:"100%",onChange:function(le){return G(le)}})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"dog",color:"bad",selected:p,tooltip:"Pixel Enhanced Transforming",tooltipPosition:"bottom",width:"100%",onClick:function(){return m("toggle_pixel")},children:"PET"})})]})]})]})})})}},2335:(q,S,r)=>{"use strict";r.r(S),r.d(S,{SORTING_TYPES:()=>e});var e=[{label:"Alphabetical",propName:"name",inDeciseconds:!1},{label:"Cost",propName:"cost_ms",inDeciseconds:!0},{label:"Init Order",propName:"init_order",inDeciseconds:!1},{label:"Last Fire",propName:"last_fire",inDeciseconds:!1},{label:"Next Fire",propName:"next_fire",inDeciseconds:!1},{label:"Tick Usage",propName:"tick_usage",inDeciseconds:!0},{label:"Avg Usage Per Tick",propName:"usage_per_tick",inDeciseconds:!0},{label:"Subsystem Overtime",propName:"overtime",inDeciseconds:!0}]},2337:(q,S,r)=>{"use strict";r.r(S),r.d(S,{IconDisplay:()=>n});var e=r(1131),s=r(5180),n=function(t){var a=t.item,b=a.icon,O=a.icon_state,y=(0,e.jsx)(s.In,{name:"spinner",size:1.5,spin:!0,color:"gray"});return b?b==="n/a"?(0,e.jsx)(s.In,{name:"dumpster-fire",size:1.5,color:"gray"}):O?(0,e.jsx)(s.Hg,{fallback:y,icon:b,icon_state:O}):(0,e.jsx)(s._V,{fixErrors:!0,src:b}):y}},2338:(q,S,r)=>{"use strict";/** * @license React * react-dom.production.min.js * @@ -72,24 +72,24 @@ * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */function e(i,o){return o!=null&&typeof Symbol<"u"&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](i):i instanceof o}function s(i){"@swc/helpers - typeof";return i&&typeof Symbol<"u"&&i.constructor===Symbol?"symbol":typeof i}var n=r(7003),t=r(3741);function a(i){for(var o="https://reactjs.org/docs/error-decoder.html?invariant="+i,E=1;E"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),m=Object.prototype.hasOwnProperty,d=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,v={},_={};function l(i){return m.call(_,i)?!0:m.call(v,i)?!1:d.test(i)?_[i]=!0:(v[i]=!0,!1)}function c(i,o,E,A){if(E!==null&&E.type===0)return!1;switch(typeof o>"u"?"undefined":s(o)){case"function":case"symbol":return!0;case"boolean":return A?!1:E!==null?!E.acceptsBooleans:(i=i.toLowerCase().slice(0,5),i!=="data-"&&i!=="aria-");default:return!1}}function h(i,o,E,A){if(o===null||typeof o>"u"||c(i,o,E,A))return!0;if(A)return!1;if(E!==null)switch(E.type){case 3:return!o;case 4:return o===!1;case 5:return isNaN(o);case 6:return isNaN(o)||1>o}return!1}function g(i,o,E,A,L,z,ne){this.acceptsBooleans=o===2||o===3||o===4,this.attributeName=A,this.attributeNamespace=L,this.mustUseProperty=E,this.propertyName=i,this.type=o,this.sanitizeURL=z,this.removeEmptyString=ne}var p={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(i){p[i]=new g(i,0,!1,i,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(i){var o=i[0];p[o]=new g(o,1,!1,i[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(i){p[i]=new g(i,2,!1,i.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(i){p[i]=new g(i,2,!1,i,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(i){p[i]=new g(i,3,!1,i.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(i){p[i]=new g(i,3,!0,i,null,!1,!1)}),["capture","download"].forEach(function(i){p[i]=new g(i,4,!1,i,null,!1,!1)}),["cols","rows","size","span"].forEach(function(i){p[i]=new g(i,6,!1,i,null,!1,!1)}),["rowSpan","start"].forEach(function(i){p[i]=new g(i,5,!1,i.toLowerCase(),null,!1,!1)});var j=/[\-:]([a-z])/g;function x(i){return i[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(i){var o=i.replace(j,x);p[o]=new g(o,1,!1,i,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(i){var o=i.replace(j,x);p[o]=new g(o,1,!1,i,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(i){var o=i.replace(j,x);p[o]=new g(o,1,!1,i,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(i){p[i]=new g(i,1,!1,i.toLowerCase(),null,!1,!1)}),p.xlinkHref=new g("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(i){p[i]=new g(i,1,!1,i.toLowerCase(),null,!0,!0)});function C(i,o,E,A){var L=p.hasOwnProperty(o)?p[o]:null;(L!==null?L.type!==0:A||!(2"u"?"undefined":s(i))!=="object"?null:(i=ie&&i[ie]||i["@@iterator"],typeof i=="function"?i:null)}var V=Object.assign,G;function le(i){if(G===void 0)try{throw Error()}catch(E){var o=E.stack.trim().match(/\n( *(at )?)/);G=o&&o[1]||""}return` + */function e(i,o){return o!=null&&typeof Symbol<"u"&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](i):i instanceof o}function s(i){"@swc/helpers - typeof";return i&&typeof Symbol<"u"&&i.constructor===Symbol?"symbol":typeof i}var n=r(7003),t=r(3741);function a(i){for(var o="https://reactjs.org/docs/error-decoder.html?invariant="+i,E=1;E"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),m=Object.prototype.hasOwnProperty,d=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,v={},_={};function l(i){return m.call(_,i)?!0:m.call(v,i)?!1:d.test(i)?_[i]=!0:(v[i]=!0,!1)}function c(i,o,E,A){if(E!==null&&E.type===0)return!1;switch(typeof o>"u"?"undefined":s(o)){case"function":case"symbol":return!0;case"boolean":return A?!1:E!==null?!E.acceptsBooleans:(i=i.toLowerCase().slice(0,5),i!=="data-"&&i!=="aria-");default:return!1}}function h(i,o,E,A){if(o===null||typeof o>"u"||c(i,o,E,A))return!0;if(A)return!1;if(E!==null)switch(E.type){case 3:return!o;case 4:return o===!1;case 5:return isNaN(o);case 6:return isNaN(o)||1>o}return!1}function g(i,o,E,A,L,z,ne){this.acceptsBooleans=o===2||o===3||o===4,this.attributeName=A,this.attributeNamespace=L,this.mustUseProperty=E,this.propertyName=i,this.type=o,this.sanitizeURL=z,this.removeEmptyString=ne}var p={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(i){p[i]=new g(i,0,!1,i,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(i){var o=i[0];p[o]=new g(o,1,!1,i[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(i){p[i]=new g(i,2,!1,i.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(i){p[i]=new g(i,2,!1,i,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(i){p[i]=new g(i,3,!1,i.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(i){p[i]=new g(i,3,!0,i,null,!1,!1)}),["capture","download"].forEach(function(i){p[i]=new g(i,4,!1,i,null,!1,!1)}),["cols","rows","size","span"].forEach(function(i){p[i]=new g(i,6,!1,i,null,!1,!1)}),["rowSpan","start"].forEach(function(i){p[i]=new g(i,5,!1,i.toLowerCase(),null,!1,!1)});var j=/[\-:]([a-z])/g;function x(i){return i[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(i){var o=i.replace(j,x);p[o]=new g(o,1,!1,i,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(i){var o=i.replace(j,x);p[o]=new g(o,1,!1,i,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(i){var o=i.replace(j,x);p[o]=new g(o,1,!1,i,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(i){p[i]=new g(i,1,!1,i.toLowerCase(),null,!1,!1)}),p.xlinkHref=new g("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(i){p[i]=new g(i,1,!1,i.toLowerCase(),null,!0,!0)});function C(i,o,E,A){var L=p.hasOwnProperty(o)?p[o]:null;(L!==null?L.type!==0:A||!(2"u"?"undefined":s(i))!=="object"?null:(i=ie&&i[ie]||i["@@iterator"],typeof i=="function"?i:null)}var V=Object.assign,G;function le(i){if(G===void 0)try{throw Error()}catch(E){var o=E.stack.trim().match(/\n( *(at )?)/);G=o&&o[1]||""}return` `+G+i}var xe=!1;function de(i,o){if(!i||xe)return"";xe=!0;var E=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(o)if(o=function(){throw Error()},Object.defineProperty(o.prototype,"props",{set:function(){throw Error()}}),(typeof Reflect>"u"?"undefined":s(Reflect))==="object"&&Reflect.construct){try{Reflect.construct(o,[])}catch(be){var A=be}Reflect.construct(i,[],o)}else{try{o.call()}catch(be){A=be}i.call(o.prototype)}else{try{throw Error()}catch(be){A=be}i()}}catch(be){if(be&&A&&typeof be.stack=="string"){for(var L=be.stack.split(` `),z=A.stack.split(` `),ne=L.length-1,ce=z.length-1;1<=ne&&0<=ce&&L[ne]!==z[ce];)ce--;for(;1<=ne&&0<=ce;ne--,ce--)if(L[ne]!==z[ce]){if(ne!==1||ce!==1)do if(ne--,ce--,0>ce||L[ne]!==z[ce]){var _e=` -`+L[ne].replace(" at new "," at ");return i.displayName&&_e.includes("")&&(_e=_e.replace("",i.displayName)),_e}while(1<=ne&&0<=ce);break}}}finally{xe=!1,Error.prepareStackTrace=E}return(i=i?i.displayName||i.name:"")?le(i):""}function me(i){switch(i.tag){case 5:return le(i.type);case 16:return le("Lazy");case 13:return le("Suspense");case 19:return le("SuspenseList");case 0:case 2:case 15:return i=de(i.type,!1),i;case 11:return i=de(i.type.render,!1),i;case 1:return i=de(i.type,!0),i;default:return""}}function pe(i){if(i==null)return null;if(typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case B:return"Fragment";case M:return"Portal";case T:return"Profiler";case w:return"StrictMode";case F:return"Suspense";case $:return"SuspenseList"}if((typeof i>"u"?"undefined":s(i))==="object")switch(i.$$typeof){case R:return(i.displayName||"Context")+".Consumer";case K:return(i._context.displayName||"Context")+".Provider";case U:var o=i.render;return i=i.displayName,i||(i=o.displayName||o.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case W:return o=i.displayName||null,o!==null?o:pe(i.type)||"Memo";case N:o=i._payload,i=i._init;try{return pe(i(o))}catch{}}return null}function Me(i){var o=i.type;switch(i.tag){case 24:return"Cache";case 9:return(o.displayName||"Context")+".Consumer";case 10:return(o._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return i=o.render,i=i.displayName||i.name||"",o.displayName||(i!==""?"ForwardRef("+i+")":"ForwardRef");case 7:return"Fragment";case 5:return o;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return pe(o);case 8:return o===w?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o}return null}function Ke(i){switch(typeof i>"u"?"undefined":s(i)){case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function Le(i){var o=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function Se(i){var o=Le(i)?"checked":"value",E=Object.getOwnPropertyDescriptor(i.constructor.prototype,o),A=""+i[o];if(!i.hasOwnProperty(o)&&typeof E<"u"&&typeof E.get=="function"&&typeof E.set=="function"){var L=E.get,z=E.set;return Object.defineProperty(i,o,{configurable:!0,get:function(){return L.call(this)},set:function(ce){A=""+ce,z.call(this,ce)}}),Object.defineProperty(i,o,{enumerable:E.enumerable}),{getValue:function(){return A},setValue:function(ce){A=""+ce},stopTracking:function(){i._valueTracker=null,delete i[o]}}}}function ln(i){i._valueTracker||(i._valueTracker=Se(i))}function ze(i){if(!i)return!1;var o=i._valueTracker;if(!o)return!0;var E=o.getValue(),A="";return i&&(A=Le(i)?i.checked?"true":"false":i.value),i=A,i!==E?(o.setValue(i),!0):!1}function We(i){if(i=i||(typeof document<"u"?document:void 0),typeof i>"u")return null;try{return i.activeElement||i.body}catch{return i.body}}function fn(i,o){var E=o.checked;return V({},o,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:E??i._wrapperState.initialChecked})}function Ze(i,o){var E=o.defaultValue==null?"":o.defaultValue,A=o.checked!=null?o.checked:o.defaultChecked;E=Ke(o.value!=null?o.value:E),i._wrapperState={initialChecked:A,initialValue:E,controlled:o.type==="checkbox"||o.type==="radio"?o.checked!=null:o.value!=null}}function In(i,o){o=o.checked,o!=null&&C(i,"checked",o,!1)}function En(i,o){In(i,o);var E=Ke(o.value),A=o.type;if(E!=null)A==="number"?(E===0&&i.value===""||i.value!=E)&&(i.value=""+E):i.value!==""+E&&(i.value=""+E);else if(A==="submit"||A==="reset"){i.removeAttribute("value");return}o.hasOwnProperty("value")?Xn(i,o.type,E):o.hasOwnProperty("defaultValue")&&Xn(i,o.type,Ke(o.defaultValue)),o.checked==null&&o.defaultChecked!=null&&(i.defaultChecked=!!o.defaultChecked)}function Yn(i,o,E){if(o.hasOwnProperty("value")||o.hasOwnProperty("defaultValue")){var A=o.type;if(!(A!=="submit"&&A!=="reset"||o.value!==void 0&&o.value!==null))return;o=""+i._wrapperState.initialValue,E||o===i.value||(i.value=o),i.defaultValue=o}E=i.name,E!==""&&(i.name=""),i.defaultChecked=!!i._wrapperState.initialChecked,E!==""&&(i.name=E)}function Xn(i,o,E){(o!=="number"||We(i.ownerDocument)!==i)&&(E==null?i.defaultValue=""+i._wrapperState.initialValue:i.defaultValue!==""+E&&(i.defaultValue=""+E))}var ct=Array.isArray;function Ot(i,o,E,A){if(i=i.options,o){o={};for(var L=0;L"+o.valueOf().toString()+"",o=Kn.firstChild;i.firstChild;)i.removeChild(i.firstChild);for(;o.firstChild;)i.appendChild(o.firstChild)}});function Mt(i,o){if(o){var E=i.firstChild;if(E&&E===i.lastChild&&E.nodeType===3){E.nodeValue=o;return}}i.textContent=o}var sr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},tr=["Webkit","ms","Moz","O"];Object.keys(sr).forEach(function(i){tr.forEach(function(o){o=o+i.charAt(0).toUpperCase()+i.substring(1),sr[o]=sr[i]})});function Ft(i,o,E){return o==null||typeof o=="boolean"||o===""?"":E||typeof o!="number"||o===0||sr.hasOwnProperty(i)&&sr[i]?(""+o).trim():o+"px"}function Bi(i,o){i=i.style;for(var E in o)if(o.hasOwnProperty(E)){var A=E.indexOf("--")===0,L=Ft(E,o[E],A);E==="float"&&(E="cssFloat"),A?i.setProperty(E,L):i[E]=L}}var Xi=V({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Dr(i,o){if(o){if(Xi[i]&&(o.children!=null||o.dangerouslySetInnerHTML!=null))throw Error(a(137,i));if(o.dangerouslySetInnerHTML!=null){if(o.children!=null)throw Error(a(60));if(s(o.dangerouslySetInnerHTML)!=="object"||!("__html"in o.dangerouslySetInnerHTML))throw Error(a(61))}if(o.style!=null&&s(o.style)!=="object")throw Error(a(62))}}function Yr(i,o){if(i.indexOf("-")===-1)return typeof o.is=="string";switch(i){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var mi=null;function Sr(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var wi=null,Wr=null,Br=null;function Qr(i){if(i=Ba(i)){if(typeof wi!="function")throw Error(a(280));var o=i.stateNode;o&&(o=Ya(o),wi(i.stateNode,i.type,o))}}function Zr(i){Wr?Br?Br.push(i):Br=[i]:Wr=i}function Ai(){if(Wr){var i=Wr,o=Br;if(Br=Wr=null,Qr(i),o)for(i=0;i"u"?"undefined":s(E)));return E}var ti=!1;if(f)try{var pi={};Object.defineProperty(pi,"passive",{get:function(){ti=!0}}),window.addEventListener("test",pi,pi),window.removeEventListener("test",pi,pi)}catch{ti=!1}function ea(i,o,E,A,L,z,ne,ce,_e){var be=Array.prototype.slice.call(arguments,3);try{o.apply(E,be)}catch(we){this.onError(we)}}var Ti=!1,Yt=null,gr=!1,_i=null,ri={onError:function(o){Ti=!0,Yt=o}};function jr(i,o,E,A,L,z,ne,ce,_e){Ti=!1,Yt=null,ea.apply(ri,arguments)}function so(i,o,E,A,L,z,ne,ce,_e){if(jr.apply(this,arguments),Ti){if(Ti){var be=Yt;Ti=!1,Yt=null}else throw Error(a(198));gr||(gr=!0,_i=be)}}function Cr(i){var o=i,E=i;if(i.alternate)for(;o.return;)o=o.return;else{i=o;do o=i,(o.flags&4098)!==0&&(E=o.return),i=o.return;while(i)}return o.tag===3?E:null}function co(i){if(i.tag===13){var o=i.memoizedState;if(o===null&&(i=i.alternate,i!==null&&(o=i.memoizedState)),o!==null)return o.dehydrated}return null}function ii(i){if(Cr(i)!==i)throw Error(a(188))}function wr(i){var o=i.alternate;if(!o){if(o=Cr(i),o===null)throw Error(a(188));return o!==i?null:i}for(var E=i,A=o;;){var L=E.return;if(L===null)break;var z=L.alternate;if(z===null){if(A=L.return,A!==null){E=A;continue}break}if(L.child===z.child){for(z=L.child;z;){if(z===E)return ii(L),i;if(z===A)return ii(L),o;z=z.sibling}throw Error(a(188))}if(E.return!==A.return)E=L,A=z;else{for(var ne=!1,ce=L.child;ce;){if(ce===E){ne=!0,E=L,A=z;break}if(ce===A){ne=!0,A=L,E=z;break}ce=ce.sibling}if(!ne){for(ce=z.child;ce;){if(ce===E){ne=!0,E=z,A=L;break}if(ce===A){ne=!0,A=z,E=L;break}ce=ce.sibling}if(!ne)throw Error(a(189))}}if(E.alternate!==A)throw Error(a(190))}if(E.tag!==3)throw Error(a(188));return E.stateNode.current===E?i:o}function yr(i){return i=wr(i),i!==null?Er(i):null}function Er(i){if(i.tag===5||i.tag===6)return i;for(i=i.child;i!==null;){var o=Er(i);if(o!==null)return o;i=i.sibling}return null}var gi=t.unstable_scheduleCallback,$r=t.unstable_cancelCallback,Hi=t.unstable_shouldYield,ji=t.unstable_requestPaint,dt=t.unstable_now,Ci=t.unstable_getCurrentPriorityLevel,Zn=t.unstable_ImmediatePriority,ki=t.unstable_UserBlockingPriority,Gi=t.unstable_NormalPriority,Yi=t.unstable_LowPriority,yi=t.unstable_IdlePriority,ue=null,se=null;function ve(i){if(se&&typeof se.onCommitFiberRoot=="function")try{se.onCommitFiberRoot(ue,i,void 0,(i.current.flags&128)===128)}catch{}}var Be=Math.clz32?Math.clz32:un,Te=Math.log,Xe=Math.LN2;function un(i){return i>>>=0,i===0?32:31-(Te(i)/Xe|0)|0}var He=64,Ge=4194304;function xn(i){switch(i&-i){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return i&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return i&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return i}}function tn(i,o){var E=i.pendingLanes;if(E===0)return 0;var A=0,L=i.suspendedLanes,z=i.pingedLanes,ne=E&268435455;if(ne!==0){var ce=ne&~L;ce!==0?A=xn(ce):(z&=ne,z!==0&&(A=xn(z)))}else ne=E&~L,ne!==0?A=xn(ne):z!==0&&(A=xn(z));if(A===0)return 0;if(o!==0&&o!==A&&(o&L)===0&&(L=A&-A,z=o&-o,L>=z||L===16&&(z&4194240)!==0))return o;if((A&4)!==0&&(A|=E&16),o=i.entangledLanes,o!==0)for(i=i.entanglements,o&=A;0E;E++)o.push(i);return o}function Je(i,o,E){i.pendingLanes|=o,o!==536870912&&(i.suspendedLanes=0,i.pingedLanes=0),i=i.eventTimes,o=31-Be(o),i[o]=E}function qn(i,o){var E=i.pendingLanes&~o;i.pendingLanes=o,i.suspendedLanes=0,i.pingedLanes=0,i.expiredLanes&=o,i.mutableReadLanes&=o,i.entangledLanes&=o,o=i.entanglements;var A=i.eventTimes;for(i=i.expirationTimes;0=Ce),Ie=" ",ke=!1;function Ue(i,o){switch(i){case"keyup":return ee.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Fe(i){return i=i.detail,(typeof i>"u"?"undefined":s(i))==="object"&&"data"in i?i.data:null}var Re=!1;function on(i,o){switch(i){case"compositionend":return Fe(o);case"keypress":return o.which!==32?null:(ke=!0,Ie);case"textInput":return i=o.data,i===Ie&&ke?null:i;default:return null}}function qe(i,o){if(Re)return i==="compositionend"||!oe&&Ue(i,o)?(i=ho(),li=ai=hr=null,Re=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1"u"?"undefined":s(i))!=="object"||i===null||(typeof o>"u"?"undefined":s(o))!=="object"||o===null)return!1;var E=Object.keys(i),A=Object.keys(o);if(E.length!==A.length)return!1;for(A=0;A=o)return{node:E,offset:o-i};i=A}e:{for(;E;){if(E.nextSibling){E=E.nextSibling;break e}E=E.parentNode}E=void 0}E=mr(E)}}function Xt(i,o){return i&&o?i===o?!0:i&&i.nodeType===3?!1:o&&o.nodeType===3?Xt(i,o.parentNode):"contains"in i?i.contains(o):i.compareDocumentPosition?!!(i.compareDocumentPosition(o)&16):!1:!1}function $t(){for(var i=window,o=We();e(o,i.HTMLIFrameElement);){try{var E=typeof o.contentWindow.location.href=="string"}catch{E=!1}if(E)i=o.contentWindow;else break;o=We(i.document)}return o}function or(i){var o=i&&i.nodeName&&i.nodeName.toLowerCase();return o&&(o==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||o==="textarea"||i.contentEditable==="true")}function yo(i){var o=$t(),E=i.focusedElem,A=i.selectionRange;if(o!==E&&E&&E.ownerDocument&&Xt(E.ownerDocument.documentElement,E)){if(A!==null&&or(E)){if(o=A.start,i=A.end,i===void 0&&(i=o),"selectionStart"in E)E.selectionStart=o,E.selectionEnd=Math.min(i,E.value.length);else if(i=(o=E.ownerDocument||document)&&o.defaultView||window,i.getSelection){i=i.getSelection();var L=E.textContent.length,z=Math.min(A.start,L);A=A.end===void 0?z:Math.min(A.end,L),!i.extend&&z>A&&(L=A,A=z,z=L),L=Vr(E,z);var ne=Vr(E,A);L&&ne&&(i.rangeCount!==1||i.anchorNode!==L.node||i.anchorOffset!==L.offset||i.focusNode!==ne.node||i.focusOffset!==ne.offset)&&(o=o.createRange(),o.setStart(L.node,L.offset),i.removeAllRanges(),z>A?(i.addRange(o),i.extend(ne.node,ne.offset)):(o.setEnd(ne.node,ne.offset),i.addRange(o)))}}for(o=[],i=E;i=i.parentNode;)i.nodeType===1&&o.push({element:i,left:i.scrollLeft,top:i.scrollTop});for(typeof E.focus=="function"&&E.focus(),E=0;E=document.documentMode,Kt=null,Ut=null,Ct=null,Uo=!1;function D(i,o,E){var A=E.window===E?E.document:E.nodeType===9?E:E.ownerDocument;Uo||Kt==null||Kt!==We(A)||(A=Kt,"selectionStart"in A&&or(A)?A={start:A.selectionStart,end:A.selectionEnd}:(A=(A.ownerDocument&&A.ownerDocument.defaultView||window).getSelection(),A={anchorNode:A.anchorNode,anchorOffset:A.anchorOffset,focusNode:A.focusNode,focusOffset:A.focusOffset}),Ct&&Dt(Ct,A)||(Ct=A,A=Wi(Ut,"onSelect"),0")&&(_e=_e.replace("",i.displayName)),_e}while(1<=ne&&0<=ce);break}}}finally{xe=!1,Error.prepareStackTrace=E}return(i=i?i.displayName||i.name:"")?le(i):""}function me(i){switch(i.tag){case 5:return le(i.type);case 16:return le("Lazy");case 13:return le("Suspense");case 19:return le("SuspenseList");case 0:case 2:case 15:return i=de(i.type,!1),i;case 11:return i=de(i.type.render,!1),i;case 1:return i=de(i.type,!0),i;default:return""}}function pe(i){if(i==null)return null;if(typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case B:return"Fragment";case M:return"Portal";case T:return"Profiler";case w:return"StrictMode";case F:return"Suspense";case $:return"SuspenseList"}if((typeof i>"u"?"undefined":s(i))==="object")switch(i.$$typeof){case R:return(i.displayName||"Context")+".Consumer";case K:return(i._context.displayName||"Context")+".Provider";case U:var o=i.render;return i=i.displayName,i||(i=o.displayName||o.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case W:return o=i.displayName||null,o!==null?o:pe(i.type)||"Memo";case N:o=i._payload,i=i._init;try{return pe(i(o))}catch{}}return null}function Me(i){var o=i.type;switch(i.tag){case 24:return"Cache";case 9:return(o.displayName||"Context")+".Consumer";case 10:return(o._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return i=o.render,i=i.displayName||i.name||"",o.displayName||(i!==""?"ForwardRef("+i+")":"ForwardRef");case 7:return"Fragment";case 5:return o;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return pe(o);case 8:return o===w?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o}return null}function Ke(i){switch(typeof i>"u"?"undefined":s(i)){case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function Le(i){var o=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function Se(i){var o=Le(i)?"checked":"value",E=Object.getOwnPropertyDescriptor(i.constructor.prototype,o),A=""+i[o];if(!i.hasOwnProperty(o)&&typeof E<"u"&&typeof E.get=="function"&&typeof E.set=="function"){var L=E.get,z=E.set;return Object.defineProperty(i,o,{configurable:!0,get:function(){return L.call(this)},set:function(ce){A=""+ce,z.call(this,ce)}}),Object.defineProperty(i,o,{enumerable:E.enumerable}),{getValue:function(){return A},setValue:function(ce){A=""+ce},stopTracking:function(){i._valueTracker=null,delete i[o]}}}}function ln(i){i._valueTracker||(i._valueTracker=Se(i))}function ze(i){if(!i)return!1;var o=i._valueTracker;if(!o)return!0;var E=o.getValue(),A="";return i&&(A=Le(i)?i.checked?"true":"false":i.value),i=A,i!==E?(o.setValue(i),!0):!1}function We(i){if(i=i||(typeof document<"u"?document:void 0),typeof i>"u")return null;try{return i.activeElement||i.body}catch{return i.body}}function fn(i,o){var E=o.checked;return V({},o,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:E??i._wrapperState.initialChecked})}function Ze(i,o){var E=o.defaultValue==null?"":o.defaultValue,A=o.checked!=null?o.checked:o.defaultChecked;E=Ke(o.value!=null?o.value:E),i._wrapperState={initialChecked:A,initialValue:E,controlled:o.type==="checkbox"||o.type==="radio"?o.checked!=null:o.value!=null}}function In(i,o){o=o.checked,o!=null&&C(i,"checked",o,!1)}function En(i,o){In(i,o);var E=Ke(o.value),A=o.type;if(E!=null)A==="number"?(E===0&&i.value===""||i.value!=E)&&(i.value=""+E):i.value!==""+E&&(i.value=""+E);else if(A==="submit"||A==="reset"){i.removeAttribute("value");return}o.hasOwnProperty("value")?Xn(i,o.type,E):o.hasOwnProperty("defaultValue")&&Xn(i,o.type,Ke(o.defaultValue)),o.checked==null&&o.defaultChecked!=null&&(i.defaultChecked=!!o.defaultChecked)}function Yn(i,o,E){if(o.hasOwnProperty("value")||o.hasOwnProperty("defaultValue")){var A=o.type;if(!(A!=="submit"&&A!=="reset"||o.value!==void 0&&o.value!==null))return;o=""+i._wrapperState.initialValue,E||o===i.value||(i.value=o),i.defaultValue=o}E=i.name,E!==""&&(i.name=""),i.defaultChecked=!!i._wrapperState.initialChecked,E!==""&&(i.name=E)}function Xn(i,o,E){(o!=="number"||We(i.ownerDocument)!==i)&&(E==null?i.defaultValue=""+i._wrapperState.initialValue:i.defaultValue!==""+E&&(i.defaultValue=""+E))}var ct=Array.isArray;function Ot(i,o,E,A){if(i=i.options,o){o={};for(var L=0;L"+o.valueOf().toString()+"",o=Kn.firstChild;i.firstChild;)i.removeChild(i.firstChild);for(;o.firstChild;)i.appendChild(o.firstChild)}});function Mt(i,o){if(o){var E=i.firstChild;if(E&&E===i.lastChild&&E.nodeType===3){E.nodeValue=o;return}}i.textContent=o}var sr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},tr=["Webkit","ms","Moz","O"];Object.keys(sr).forEach(function(i){tr.forEach(function(o){o=o+i.charAt(0).toUpperCase()+i.substring(1),sr[o]=sr[i]})});function Ft(i,o,E){return o==null||typeof o=="boolean"||o===""?"":E||typeof o!="number"||o===0||sr.hasOwnProperty(i)&&sr[i]?(""+o).trim():o+"px"}function Bi(i,o){i=i.style;for(var E in o)if(o.hasOwnProperty(E)){var A=E.indexOf("--")===0,L=Ft(E,o[E],A);E==="float"&&(E="cssFloat"),A?i.setProperty(E,L):i[E]=L}}var Xi=V({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Dr(i,o){if(o){if(Xi[i]&&(o.children!=null||o.dangerouslySetInnerHTML!=null))throw Error(a(137,i));if(o.dangerouslySetInnerHTML!=null){if(o.children!=null)throw Error(a(60));if(s(o.dangerouslySetInnerHTML)!=="object"||!("__html"in o.dangerouslySetInnerHTML))throw Error(a(61))}if(o.style!=null&&s(o.style)!=="object")throw Error(a(62))}}function Yr(i,o){if(i.indexOf("-")===-1)return typeof o.is=="string";switch(i){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var mi=null;function Sr(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var wi=null,Wr=null,Br=null;function Qr(i){if(i=Ba(i)){if(typeof wi!="function")throw Error(a(280));var o=i.stateNode;o&&(o=Ya(o),wi(i.stateNode,i.type,o))}}function Zr(i){Wr?Br?Br.push(i):Br=[i]:Wr=i}function Ai(){if(Wr){var i=Wr,o=Br;if(Br=Wr=null,Qr(i),o)for(i=0;i"u"?"undefined":s(E)));return E}var ti=!1;if(f)try{var pi={};Object.defineProperty(pi,"passive",{get:function(){ti=!0}}),window.addEventListener("test",pi,pi),window.removeEventListener("test",pi,pi)}catch{ti=!1}function ea(i,o,E,A,L,z,ne,ce,_e){var be=Array.prototype.slice.call(arguments,3);try{o.apply(E,be)}catch(we){this.onError(we)}}var Ti=!1,Yt=null,gr=!1,_i=null,ri={onError:function(o){Ti=!0,Yt=o}};function jr(i,o,E,A,L,z,ne,ce,_e){Ti=!1,Yt=null,ea.apply(ri,arguments)}function so(i,o,E,A,L,z,ne,ce,_e){if(jr.apply(this,arguments),Ti){if(Ti){var be=Yt;Ti=!1,Yt=null}else throw Error(a(198));gr||(gr=!0,_i=be)}}function Cr(i){var o=i,E=i;if(i.alternate)for(;o.return;)o=o.return;else{i=o;do o=i,(o.flags&4098)!==0&&(E=o.return),i=o.return;while(i)}return o.tag===3?E:null}function co(i){if(i.tag===13){var o=i.memoizedState;if(o===null&&(i=i.alternate,i!==null&&(o=i.memoizedState)),o!==null)return o.dehydrated}return null}function ii(i){if(Cr(i)!==i)throw Error(a(188))}function wr(i){var o=i.alternate;if(!o){if(o=Cr(i),o===null)throw Error(a(188));return o!==i?null:i}for(var E=i,A=o;;){var L=E.return;if(L===null)break;var z=L.alternate;if(z===null){if(A=L.return,A!==null){E=A;continue}break}if(L.child===z.child){for(z=L.child;z;){if(z===E)return ii(L),i;if(z===A)return ii(L),o;z=z.sibling}throw Error(a(188))}if(E.return!==A.return)E=L,A=z;else{for(var ne=!1,ce=L.child;ce;){if(ce===E){ne=!0,E=L,A=z;break}if(ce===A){ne=!0,A=L,E=z;break}ce=ce.sibling}if(!ne){for(ce=z.child;ce;){if(ce===E){ne=!0,E=z,A=L;break}if(ce===A){ne=!0,A=z,E=L;break}ce=ce.sibling}if(!ne)throw Error(a(189))}}if(E.alternate!==A)throw Error(a(190))}if(E.tag!==3)throw Error(a(188));return E.stateNode.current===E?i:o}function yr(i){return i=wr(i),i!==null?Er(i):null}function Er(i){if(i.tag===5||i.tag===6)return i;for(i=i.child;i!==null;){var o=Er(i);if(o!==null)return o;i=i.sibling}return null}var gi=t.unstable_scheduleCallback,$r=t.unstable_cancelCallback,Hi=t.unstable_shouldYield,ji=t.unstable_requestPaint,dt=t.unstable_now,Ci=t.unstable_getCurrentPriorityLevel,Zn=t.unstable_ImmediatePriority,ki=t.unstable_UserBlockingPriority,Gi=t.unstable_NormalPriority,Yi=t.unstable_LowPriority,yi=t.unstable_IdlePriority,ue=null,se=null;function ve(i){if(se&&typeof se.onCommitFiberRoot=="function")try{se.onCommitFiberRoot(ue,i,void 0,(i.current.flags&128)===128)}catch{}}var Be=Math.clz32?Math.clz32:un,Te=Math.log,Xe=Math.LN2;function un(i){return i>>>=0,i===0?32:31-(Te(i)/Xe|0)|0}var He=64,Ge=4194304;function xn(i){switch(i&-i){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return i&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return i&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return i}}function tn(i,o){var E=i.pendingLanes;if(E===0)return 0;var A=0,L=i.suspendedLanes,z=i.pingedLanes,ne=E&268435455;if(ne!==0){var ce=ne&~L;ce!==0?A=xn(ce):(z&=ne,z!==0&&(A=xn(z)))}else ne=E&~L,ne!==0?A=xn(ne):z!==0&&(A=xn(z));if(A===0)return 0;if(o!==0&&o!==A&&(o&L)===0&&(L=A&-A,z=o&-o,L>=z||L===16&&(z&4194240)!==0))return o;if((A&4)!==0&&(A|=E&16),o=i.entangledLanes,o!==0)for(i=i.entanglements,o&=A;0E;E++)o.push(i);return o}function Je(i,o,E){i.pendingLanes|=o,o!==536870912&&(i.suspendedLanes=0,i.pingedLanes=0),i=i.eventTimes,o=31-Be(o),i[o]=E}function qn(i,o){var E=i.pendingLanes&~o;i.pendingLanes=o,i.suspendedLanes=0,i.pingedLanes=0,i.expiredLanes&=o,i.mutableReadLanes&=o,i.entangledLanes&=o,o=i.entanglements;var A=i.eventTimes;for(i=i.expirationTimes;0=Ce),Ie=" ",ke=!1;function Ue(i,o){switch(i){case"keyup":return ee.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Fe(i){return i=i.detail,(typeof i>"u"?"undefined":s(i))==="object"&&"data"in i?i.data:null}var Re=!1;function on(i,o){switch(i){case"compositionend":return Fe(o);case"keypress":return o.which!==32?null:(ke=!0,Ie);case"textInput":return i=o.data,i===Ie&&ke?null:i;default:return null}}function qe(i,o){if(Re)return i==="compositionend"||!oe&&Ue(i,o)?(i=ho(),li=ai=hr=null,Re=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1"u"?"undefined":s(i))!=="object"||i===null||(typeof o>"u"?"undefined":s(o))!=="object"||o===null)return!1;var E=Object.keys(i),A=Object.keys(o);if(E.length!==A.length)return!1;for(A=0;A=o)return{node:E,offset:o-i};i=A}e:{for(;E;){if(E.nextSibling){E=E.nextSibling;break e}E=E.parentNode}E=void 0}E=mr(E)}}function Xt(i,o){return i&&o?i===o?!0:i&&i.nodeType===3?!1:o&&o.nodeType===3?Xt(i,o.parentNode):"contains"in i?i.contains(o):i.compareDocumentPosition?!!(i.compareDocumentPosition(o)&16):!1:!1}function $t(){for(var i=window,o=We();e(o,i.HTMLIFrameElement);){try{var E=typeof o.contentWindow.location.href=="string"}catch{E=!1}if(E)i=o.contentWindow;else break;o=We(i.document)}return o}function or(i){var o=i&&i.nodeName&&i.nodeName.toLowerCase();return o&&(o==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||o==="textarea"||i.contentEditable==="true")}function yo(i){var o=$t(),E=i.focusedElem,A=i.selectionRange;if(o!==E&&E&&E.ownerDocument&&Xt(E.ownerDocument.documentElement,E)){if(A!==null&&or(E)){if(o=A.start,i=A.end,i===void 0&&(i=o),"selectionStart"in E)E.selectionStart=o,E.selectionEnd=Math.min(i,E.value.length);else if(i=(o=E.ownerDocument||document)&&o.defaultView||window,i.getSelection){i=i.getSelection();var L=E.textContent.length,z=Math.min(A.start,L);A=A.end===void 0?z:Math.min(A.end,L),!i.extend&&z>A&&(L=A,A=z,z=L),L=Vr(E,z);var ne=Vr(E,A);L&&ne&&(i.rangeCount!==1||i.anchorNode!==L.node||i.anchorOffset!==L.offset||i.focusNode!==ne.node||i.focusOffset!==ne.offset)&&(o=o.createRange(),o.setStart(L.node,L.offset),i.removeAllRanges(),z>A?(i.addRange(o),i.extend(ne.node,ne.offset)):(o.setEnd(ne.node,ne.offset),i.addRange(o)))}}for(o=[],i=E;i=i.parentNode;)i.nodeType===1&&o.push({element:i,left:i.scrollLeft,top:i.scrollTop});for(typeof E.focus=="function"&&E.focus(),E=0;E=document.documentMode,Kt=null,Ut=null,Ct=null,Uo=!1;function D(i,o,E){var A=E.window===E?E.document:E.nodeType===9?E:E.ownerDocument;Uo||Kt==null||Kt!==We(A)||(A=Kt,"selectionStart"in A&&or(A)?A={start:A.selectionStart,end:A.selectionEnd}:(A=(A.ownerDocument&&A.ownerDocument.defaultView||window).getSelection(),A={anchorNode:A.anchorNode,anchorOffset:A.anchorOffset,focusNode:A.focusNode,focusOffset:A.focusOffset}),Ct&&Dt(Ct,A)||(Ct=A,A=Wi(Ut,"onSelect"),0fa||(i.current=Nl[fa],Nl[fa]=null,fa--)}function yt(i,o){fa++,Nl[fa]=i.current,i.current=o}var bo={},xr=Oo(bo),Rr=Oo(!1),$o=bo;function ma(i,o){var E=i.type.contextTypes;if(!E)return bo;var A=i.stateNode;if(A&&A.__reactInternalMemoizedUnmaskedChildContext===o)return A.__reactInternalMemoizedMaskedChildContext;var L={},z;for(z in E)L[z]=o[z];return A&&(i=i.stateNode,i.__reactInternalMemoizedUnmaskedChildContext=o,i.__reactInternalMemoizedMaskedChildContext=L),L}function Kr(i){return i=i.childContextTypes,i!=null}function Qa(){It(Rr),It(xr)}function Gs(i,o,E){if(xr.current!==bo)throw Error(a(168));yt(xr,o),yt(Rr,E)}function Ys(i,o,E){var A=i.stateNode;if(o=o.childContextTypes,typeof A.getChildContext!="function")return E;A=A.getChildContext();for(var L in A)if(!(L in o))throw Error(a(108,Me(i)||"Unknown",L));return V({},E,A)}function Za(i){return i=(i=i.stateNode)&&i.__reactInternalMemoizedMergedChildContext||bo,$o=xr.current,yt(xr,i),yt(Rr,Rr.current),!0}function Qs(i,o,E){var A=i.stateNode;if(!A)throw Error(a(169));E?(i=Ys(i,o,$o),A.__reactInternalMemoizedMergedChildContext=i,It(Rr),It(xr),yt(xr,i)):It(Rr),yt(Rr,E)}var no=null,qa=!1,Wl=!1;function Zs(i){no===null?no=[i]:no.push(i)}function ku(i){qa=!0,Zs(i)}function Po(){if(!Wl&&no!==null){Wl=!0;var i=0,o=vn;try{var E=no;for(vn=1;i>=ne,L-=ne,to=1<<32-Be(o)+L|E<"u"?"undefined":s(i))!=="object"){if(E._owner){if(E=E._owner,E){if(E.tag!==1)throw Error(a(309));var A=E.stateNode}if(!A)throw Error(a(147,i));var L=A,z=""+i;return o!==null&&o.ref!==null&&typeof o.ref=="function"&&o.ref._stringRef===z?o.ref:(o=function(ce){var _e=L.refs;ce===null?delete _e[z]:_e[z]=ce},o._stringRef=z,o)}if(typeof i!="string")throw Error(a(284));if(!E._owner)throw Error(a(290,i))}return i}function rl(i,o){throw i=Object.prototype.toString.call(o),Error(a(31,i==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":i))}function ic(i){var o=i._init;return o(i._payload)}function oc(i){function o(ye,je){if(i){var Ee=ye.deletions;Ee===null?(ye.deletions=[je],ye.flags|=16):Ee.push(je)}}function E(ye,je){if(!i)return null;for(;je!==null;)o(ye,je),je=je.sibling;return null}function A(ye,je){for(ye=new Map;je!==null;)je.key!==null?ye.set(je.key,je):ye.set(je.index,je),je=je.sibling;return ye}function L(ye,je){return ye=ko(ye,je),ye.index=0,ye.sibling=null,ye}function z(ye,je,Ee){return ye.index=Ee,i?(Ee=ye.alternate,Ee!==null?(Ee=Ee.index,Ee"u"?"undefined":s(jn))==="object"&&jn!==null&&jn.$$typeof===N&&ic(jn)===je.type)?(Qe=L(je,Ee.props),Qe.ref=wa(ye,je,Ee),Qe.return=ye,Qe):(Qe=Pl(Ee.type,Ee.key,Ee.props,null,ye.mode,Qe),Qe.ref=wa(ye,je,Ee),Qe.return=ye,Qe)}function be(ye,je,Ee,Qe){return je===null||je.tag!==4||je.stateNode.containerInfo!==Ee.containerInfo||je.stateNode.implementation!==Ee.implementation?(je=Us(Ee,ye.mode,Qe),je.return=ye,je):(je=L(je,Ee.children||[]),je.return=ye,je)}function we(ye,je,Ee,Qe,jn){return je===null||je.tag!==7?(je=qo(Ee,ye.mode,Qe,jn),je.return=ye,je):(je=L(je,Ee),je.return=ye,je)}function $e(ye,je,Ee){if(typeof je=="string"&&je!==""||typeof je=="number")return je=Ks(""+je,ye.mode,Ee),je.return=ye,je;if((typeof je>"u"?"undefined":s(je))==="object"&&je!==null){switch(je.$$typeof){case P:return Ee=Pl(je.type,je.key,je.props,null,ye.mode,Ee),Ee.ref=wa(ye,null,je),Ee.return=ye,Ee;case M:return je=Us(je,ye.mode,Ee),je.return=ye,je;case N:var Qe=je._init;return $e(ye,Qe(je._payload),Ee)}if(ct(je)||Q(je))return je=qo(je,ye.mode,Ee,null),je.return=ye,je;rl(ye,je)}return null}function Ne(ye,je,Ee,Qe){var jn=je!==null?je.key:null;if(typeof Ee=="string"&&Ee!==""||typeof Ee=="number")return jn!==null?null:ce(ye,je,""+Ee,Qe);if((typeof Ee>"u"?"undefined":s(Ee))==="object"&&Ee!==null){switch(Ee.$$typeof){case P:return Ee.key===jn?_e(ye,je,Ee,Qe):null;case M:return Ee.key===jn?be(ye,je,Ee,Qe):null;case N:return jn=Ee._init,Ne(ye,je,jn(Ee._payload),Qe)}if(ct(Ee)||Q(Ee))return jn!==null?null:we(ye,je,Ee,Qe,null);rl(ye,Ee)}return null}function dn(ye,je,Ee,Qe,jn){if(typeof Qe=="string"&&Qe!==""||typeof Qe=="number")return ye=ye.get(Ee)||null,ce(je,ye,""+Qe,jn);if((typeof Qe>"u"?"undefined":s(Qe))==="object"&&Qe!==null){switch(Qe.$$typeof){case P:return ye=ye.get(Qe.key===null?Ee:Qe.key)||null,_e(je,ye,Qe,jn);case M:return ye=ye.get(Qe.key===null?Ee:Qe.key)||null,be(je,ye,Qe,jn);case N:var Mn=Qe._init;return dn(ye,je,Ee,Mn(Qe._payload),jn)}if(ct(Qe)||Q(Qe))return ye=ye.get(Ee)||null,we(je,ye,Qe,jn,null);rl(je,Qe)}return null}function _n(ye,je,Ee,Qe){for(var jn=null,Mn=null,Dn=je,Ln=je=0,er=null;Dn!==null&&LnLn?(er=Dn,Dn=null):er=Dn.sibling;var ot=Ne(ye,Dn,Ee[Ln],Qe);if(ot===null){Dn===null&&(Dn=er);break}i&&Dn&&ot.alternate===null&&o(ye,Dn),je=z(ot,je,Ln),Mn===null?jn=ot:Mn.sibling=ot,Mn=ot,Dn=er}if(Ln===Ee.length)return E(ye,Dn),bt&&Fo(ye,Ln),jn;if(Dn===null){for(;LnLn?(er=Dn,Dn=null):er=Dn.sibling;var Lo=Ne(ye,Dn,ot.value,Qe);if(Lo===null){Dn===null&&(Dn=er);break}i&&Dn&&Lo.alternate===null&&o(ye,Dn),je=z(Lo,je,Ln),Mn===null?jn=Lo:Mn.sibling=Lo,Mn=Lo,Dn=er}if(ot.done)return E(ye,Dn),bt&&Fo(ye,Ln),jn;if(Dn===null){for(;!ot.done;Ln++,ot=Ee.next())ot=$e(ye,ot.value,Qe),ot!==null&&(je=z(ot,je,Ln),Mn===null?jn=ot:Mn.sibling=ot,Mn=ot);return bt&&Fo(ye,Ln),jn}for(Dn=A(ye,Dn);!ot.done;Ln++,ot=Ee.next())ot=dn(Dn,ye,Ln,ot.value,Qe),ot!==null&&(i&&ot.alternate!==null&&Dn.delete(ot.key===null?Ln:ot.key),je=z(ot,je,Ln),Mn===null?jn=ot:Mn.sibling=ot,Mn=ot);return i&&Dn.forEach(function(xd){return o(ye,xd)}),bt&&Fo(ye,Ln),jn}function zt(ye,je,Ee,Qe){if((typeof Ee>"u"?"undefined":s(Ee))==="object"&&Ee!==null&&Ee.type===B&&Ee.key===null&&(Ee=Ee.props.children),(typeof Ee>"u"?"undefined":s(Ee))==="object"&&Ee!==null){switch(Ee.$$typeof){case P:e:{for(var jn=Ee.key,Mn=je;Mn!==null;){if(Mn.key===jn){if(jn=Ee.type,jn===B){if(Mn.tag===7){E(ye,Mn.sibling),je=L(Mn,Ee.props.children),je.return=ye,ye=je;break e}}else if(Mn.elementType===jn||(typeof jn>"u"?"undefined":s(jn))==="object"&&jn!==null&&jn.$$typeof===N&&ic(jn)===Mn.type){E(ye,Mn.sibling),je=L(Mn,Ee.props),je.ref=wa(ye,Mn,Ee),je.return=ye,ye=je;break e}E(ye,Mn);break}else o(ye,Mn);Mn=Mn.sibling}Ee.type===B?(je=qo(Ee.props.children,ye.mode,Qe,Ee.key),je.return=ye,ye=je):(Qe=Pl(Ee.type,Ee.key,Ee.props,null,ye.mode,Qe),Qe.ref=wa(ye,je,Ee),Qe.return=ye,ye=Qe)}return ne(ye);case M:e:{for(Mn=Ee.key;je!==null;){if(je.key===Mn)if(je.tag===4&&je.stateNode.containerInfo===Ee.containerInfo&&je.stateNode.implementation===Ee.implementation){E(ye,je.sibling),je=L(je,Ee.children||[]),je.return=ye,ye=je;break e}else{E(ye,je);break}else o(ye,je);je=je.sibling}je=Us(Ee,ye.mode,Qe),je.return=ye,ye=je}return ne(ye);case N:return Mn=Ee._init,zt(ye,je,Mn(Ee._payload),Qe)}if(ct(Ee))return _n(ye,je,Ee,Qe);if(Q(Ee))return gn(ye,je,Ee,Qe);rl(ye,Ee)}return typeof Ee=="string"&&Ee!==""||typeof Ee=="number"?(Ee=""+Ee,je!==null&&je.tag===6?(E(ye,je.sibling),je=L(je,Ee),je.return=ye,ye=je):(E(ye,je),je=Ks(Ee,ye.mode,Qe),je.return=ye,ye=je),ne(ye)):E(ye,je)}return zt}var _a=oc(!0),ac=oc(!1),il=Oo(null),ol=null,ga=null,Hl=null;function Gl(){Hl=ga=ol=null}function Yl(i){var o=il.current;It(il),i._currentValue=o}function Ql(i,o,E){for(;i!==null;){var A=i.alternate;if((i.childLanes&o)!==o?(i.childLanes|=o,A!==null&&(A.childLanes|=o)):A!==null&&(A.childLanes&o)!==o&&(A.childLanes|=o),i===E)break;i=i.return}}function ja(i,o){ol=i,Hl=ga=null,i=i.dependencies,i!==null&&i.firstContext!==null&&((i.lanes&o)!==0&&(Ur=!0),i.firstContext=null)}function ui(i){var o=i._currentValue;if(Hl!==i)if(i={context:i,memoizedValue:o,next:null},ga===null){if(ol===null)throw Error(a(308));ga=i,ol.dependencies={lanes:0,firstContext:i}}else ga=ga.next=i;return o}var Vo=null;function Zl(i){Vo===null?Vo=[i]:Vo.push(i)}function lc(i,o,E,A){var L=o.interleaved;return L===null?(E.next=E,Zl(o)):(E.next=L.next,L.next=E),o.interleaved=E,io(i,A)}function io(i,o){i.lanes|=o;var E=i.alternate;for(E!==null&&(E.lanes|=o),E=i,i=i.return;i!==null;)i.childLanes|=o,E=i.alternate,E!==null&&(E.childLanes|=o),E=i,i=i.return;return E.tag===3?E.stateNode:null}var Mo=!1;function ql(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function sc(i,o){i=i.updateQueue,o.updateQueue===i&&(o.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,effects:i.effects})}function oo(i,o){return{eventTime:i,lane:o,tag:0,payload:null,callback:null,next:null}}function Do(i,o,E){var A=i.updateQueue;if(A===null)return null;if(A=A.shared,(rt&2)!==0){var L=A.pending;return L===null?o.next=o:(o.next=L.next,L.next=o),A.pending=o,io(i,E)}return L=A.interleaved,L===null?(o.next=o,Zl(A)):(o.next=L.next,L.next=o),A.interleaved=o,io(i,E)}function al(i,o,E){if(o=o.updateQueue,o!==null&&(o=o.shared,(E&4194240)!==0)){var A=o.lanes;A&=i.pendingLanes,E|=A,o.lanes=E,ut(i,E)}}function cc(i,o){var E=i.updateQueue,A=i.alternate;if(A!==null&&(A=A.updateQueue,E===A)){var L=null,z=null;if(E=E.firstBaseUpdate,E!==null){do{var ne={eventTime:E.eventTime,lane:E.lane,tag:E.tag,payload:E.payload,callback:E.callback,next:null};z===null?L=z=ne:z=z.next=ne,E=E.next}while(E!==null);z===null?L=z=o:z=z.next=o}else L=z=o;E={baseState:A.baseState,firstBaseUpdate:L,lastBaseUpdate:z,shared:A.shared,effects:A.effects},i.updateQueue=E;return}i=E.lastBaseUpdate,i===null?E.firstBaseUpdate=o:i.next=o,E.lastBaseUpdate=o}function ll(i,o,E,A){var L=i.updateQueue;Mo=!1;var z=L.firstBaseUpdate,ne=L.lastBaseUpdate,ce=L.shared.pending;if(ce!==null){L.shared.pending=null;var _e=ce,be=_e.next;_e.next=null,ne===null?z=be:ne.next=be,ne=_e;var we=i.alternate;we!==null&&(we=we.updateQueue,ce=we.lastBaseUpdate,ce!==ne&&(ce===null?we.firstBaseUpdate=be:ce.next=be,we.lastBaseUpdate=_e))}if(z!==null){var $e=L.baseState;ne=0,we=be=_e=null,ce=z;do{var Ne=ce.lane,dn=ce.eventTime;if((A&Ne)===Ne){we!==null&&(we=we.next={eventTime:dn,lane:0,tag:ce.tag,payload:ce.payload,callback:ce.callback,next:null});e:{var _n=i,gn=ce;switch(Ne=o,dn=E,gn.tag){case 1:if(_n=gn.payload,typeof _n=="function"){$e=_n.call(dn,$e,Ne);break e}$e=_n;break e;case 3:_n.flags=_n.flags&-65537|128;case 0:if(_n=gn.payload,Ne=typeof _n=="function"?_n.call(dn,$e,Ne):_n,Ne==null)break e;$e=V({},$e,Ne);break e;case 2:Mo=!0}}ce.callback!==null&&ce.lane!==0&&(i.flags|=64,Ne=L.effects,Ne===null?L.effects=[ce]:Ne.push(ce))}else dn={eventTime:dn,lane:Ne,tag:ce.tag,payload:ce.payload,callback:ce.callback,next:null},we===null?(be=we=dn,_e=$e):we=we.next=dn,ne|=Ne;if(ce=ce.next,ce===null){if(ce=L.shared.pending,ce===null)break;Ne=ce,ce=Ne.next,Ne.next=null,L.lastBaseUpdate=Ne,L.shared.pending=null}}while(!0);if(we===null&&(_e=$e),L.baseState=_e,L.firstBaseUpdate=be,L.lastBaseUpdate=we,o=L.shared.interleaved,o!==null){L=o;do ne|=L.lane,L=L.next;while(L!==o)}else z===null&&(L.shared.lanes=0);Go|=ne,i.lanes=ne,i.memoizedState=$e}}function uc(i,o,E){if(i=o.effects,o.effects=null,i!==null)for(o=0;oE?E:4,i(!0);var A=is.transition;is.transition={};try{i(!1),o()}finally{vn=E,is.transition=A}}function Dc(){return di().memoizedState}function Uu(i,o,E){var A=Ao(i);if(E={lane:A,action:E,hasEagerState:!1,eagerState:null,next:null},Sc(i))Bc(o,E);else if(E=lc(i,o,E,A),E!==null){var L=Mr();Si(E,i,A,L),wc(E,o,A)}}function zu(i,o,E){var A=Ao(i),L={lane:A,action:E,hasEagerState:!1,eagerState:null,next:null};if(Sc(i))Bc(o,L);else{var z=i.alternate;if(i.lanes===0&&(z===null||z.lanes===0)&&(z=o.lastRenderedReducer,z!==null))try{var ne=o.lastRenderedState,ce=z(ne,E);if(L.hasEagerState=!0,L.eagerState=ce,st(ce,ne)){var _e=o.interleaved;_e===null?(L.next=L,Zl(o)):(L.next=_e.next,_e.next=L),o.interleaved=L;return}}catch{}finally{}E=lc(i,o,L,A),E!==null&&(L=Mr(),Si(E,i,A,L),wc(E,o,A))}}function Sc(i){var o=i.alternate;return i===Bt||o!==null&&o===Bt}function Bc(i,o){La=ul=!0;var E=i.pending;E===null?o.next=o:(o.next=E.next,E.next=o),i.pending=o}function wc(i,o,E){if((E&4194240)!==0){var A=o.lanes;A&=i.pendingLanes,E|=A,o.lanes=E,ut(i,E)}}var fl={readContext:ui,useCallback:vr,useContext:vr,useEffect:vr,useImperativeHandle:vr,useInsertionEffect:vr,useLayoutEffect:vr,useMemo:vr,useReducer:vr,useRef:vr,useState:vr,useDebugValue:vr,useDeferredValue:vr,useTransition:vr,useMutableSource:vr,useSyncExternalStore:vr,useId:vr,unstable_isNewReconciler:!1},Nu={readContext:ui,useCallback:function(o,E){return Fi().memoizedState=[o,E===void 0?null:E],o},useContext:ui,useEffect:Cc,useImperativeHandle:function(o,E,A){return A=A!=null?A.concat([o]):null,dl(4194308,4,Ic.bind(null,E,o),A)},useLayoutEffect:function(o,E){return dl(4194308,4,o,E)},useInsertionEffect:function(o,E){return dl(4,2,o,E)},useMemo:function(o,E){var A=Fi();return E=E===void 0?null:E,o=o(),A.memoizedState=[o,E],o},useReducer:function(o,E,A){var L=Fi();return E=A!==void 0?A(E):E,L.memoizedState=L.baseState=E,o={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:o,lastRenderedState:E},L.queue=o,o=o.dispatch=Uu.bind(null,Bt,o),[L.memoizedState,o]},useRef:function(o){var E=Fi();return o={current:o},E.memoizedState=o},useState:gc,useDebugValue:ds,useDeferredValue:function(o){return Fi().memoizedState=o},useTransition:function(){var o=gc(!1),E=o[0];return o=Ku.bind(null,o[1]),Fi().memoizedState=o,[E,o]},useMutableSource:function(){},useSyncExternalStore:function(o,E,A){var L=Bt,z=Fi();if(bt){if(A===void 0)throw Error(a(407));A=A()}else{if(A=E(),qt===null)throw Error(a(349));(Ho&30)!==0||mc(L,E,A)}z.memoizedState=A;var ne={value:A,getSnapshot:E};return z.queue=ne,Cc(vc.bind(null,L,ne,o),[o]),L.flags|=2048,Ua(9,xc.bind(null,L,ne,A,E),void 0,null),A},useId:function(){var o=Fi(),E=qt.identifierPrefix;if(bt){var A=ro,L=to;A=(L&~(1<<32-Be(L)-1)).toString(32)+A,E=":"+E+"R"+A,A=Ra++,0"u"?"undefined":s(z))==="object"&&z!==null?z=ui(z):(L=Kr(o)?$o:xr.current,A=o.contextTypes,z=(A=A!=null)?ma(i,L):bo),o=new o(E,z),i.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=ml,i.stateNode=o,o._reactInternals=i,A&&(i=i.stateNode,i.__reactInternalMemoizedUnmaskedChildContext=L,i.__reactInternalMemoizedMaskedChildContext=z),o}function kc(i,o,E,A){i=o.state,typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps(E,A),typeof o.UNSAFE_componentWillReceiveProps=="function"&&o.UNSAFE_componentWillReceiveProps(E,A),o.state!==i&&ml.enqueueReplaceState(o,o.state,null)}function fs(i,o,E,A){var L=i.stateNode;L.props=E,L.state=i.memoizedState,L.refs={},ql(i);var z=o.contextType;(typeof z>"u"?"undefined":s(z))==="object"&&z!==null?L.context=ui(z):(z=Kr(o)?$o:xr.current,L.context=ma(i,z)),L.state=i.memoizedState,z=o.getDerivedStateFromProps,typeof z=="function"&&(hs(i,o,z,E),L.state=i.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof L.getSnapshotBeforeUpdate=="function"||typeof L.UNSAFE_componentWillMount!="function"&&typeof L.componentWillMount!="function"||(o=L.state,typeof L.componentWillMount=="function"&&L.componentWillMount(),typeof L.UNSAFE_componentWillMount=="function"&&L.UNSAFE_componentWillMount(),o!==L.state&&ml.enqueueReplaceState(L,L.state,null),ll(i,E,L,A),L.state=i.memoizedState),typeof L.componentDidMount=="function"&&(i.flags|=4194308)}function ya(i,o){try{var E="",A=o;do E+=me(A),A=A.return;while(A);var L=E}catch(z){L=` Error generating stack: `+z.message+` -`+z.stack}return{value:i,source:o,stack:L,digest:null}}function ms(i,o,E){return{value:i,source:null,stack:E??null,digest:o??null}}function xs(i,o){try{console.error(o.value)}catch(E){setTimeout(function(){throw E})}}var Ju=typeof WeakMap=="function"?WeakMap:Map;function Lc(i,o,E){E=oo(-1,E),E.tag=3,E.payload={element:null};var A=o.value;return E.callback=function(){Cl||(Cl=!0,Ss=A),xs(i,o)},E}function Rc(i,o,E){E=oo(-1,E),E.tag=3;var A=i.type.getDerivedStateFromError;if(typeof A=="function"){var L=o.value;E.payload=function(){return A(L)},E.callback=function(){xs(i,o)}}var z=i.stateNode;return z!==null&&typeof z.componentDidCatch=="function"&&(E.callback=function(){xs(i,o),typeof A!="function"&&(Bo===null?Bo=new Set([this]):Bo.add(this));var ne=o.stack;this.componentDidCatch(o.value,{componentStack:ne!==null?ne:""})}),E}function Kc(i,o,E){var A=i.pingCache;if(A===null){A=i.pingCache=new Ju;var L=new Set;A.set(o,L)}else L=A.get(o),L===void 0&&(L=new Set,A.set(o,L));L.has(E)||(L.add(E),i=id.bind(null,i,o,E),o.then(i,i))}function Uc(i){do{var o;if((o=i.tag===13)&&(o=i.memoizedState,o=o!==null?o.dehydrated!==null:!0),o)return i;i=i.return}while(i!==null);return null}function zc(i,o,E,A,L){return(i.mode&1)===0?(i===o?i.flags|=65536:(i.flags|=128,E.flags|=131072,E.flags&=-52805,E.tag===1&&(E.alternate===null?E.tag=17:(o=oo(-1,1),o.tag=2,Do(E,o,1))),E.lanes|=1),i):(i.flags|=65536,i.lanes=L,i)}var Fu=I.ReactCurrentOwner,Ur=!1;function Pr(i,o,E,A){o.child=i===null?ac(o,null,E,A):_a(o,i.child,E,A)}function Nc(i,o,E,A,L){E=E.render;var z=o.ref;return ja(o,L),A=as(i,o,E,A,z,L),E=ls(),i!==null&&!Ur?(o.updateQueue=i.updateQueue,o.flags&=-2053,i.lanes&=~L,ao(i,o,L)):(bt&&E&&$l(o),o.flags|=1,Pr(i,o,A,L),o.child)}function Wc(i,o,E,A,L){if(i===null){var z=E.type;return typeof z=="function"&&!Rs(z)&&z.defaultProps===void 0&&E.compare===null&&E.defaultProps===void 0?(o.tag=15,o.type=z,$c(i,o,z,A,L)):(i=Pl(E.type,null,A,o,o.mode,L),i.ref=o.ref,i.return=o,o.child=i)}if(z=i.child,(i.lanes&L)===0){var ne=z.memoizedProps;if(E=E.compare,E=E!==null?E:Dt,E(ne,A)&&i.ref===o.ref)return ao(i,o,L)}return o.flags|=1,i=ko(z,A),i.ref=o.ref,i.return=o,o.child=i}function $c(i,o,E,A,L){if(i!==null){var z=i.memoizedProps;if(Dt(z,A)&&i.ref===o.ref)if(Ur=!1,o.pendingProps=A=z,(i.lanes&L)!==0)(i.flags&131072)!==0&&(Ur=!0);else return o.lanes=i.lanes,ao(i,o,L)}return vs(i,o,E,A,L)}function Jc(i,o,E){var A=o.pendingProps,L=A.children,z=i!==null?i.memoizedState:null;if(A.mode==="hidden")if((o.mode&1)===0)o.memoizedState={baseLanes:0,cachePool:null,transitions:null},yt(Ia,Gr),Gr|=E;else{if((E&1073741824)===0)return i=z!==null?z.baseLanes|E:E,o.lanes=o.childLanes=1073741824,o.memoizedState={baseLanes:i,cachePool:null,transitions:null},o.updateQueue=null,yt(Ia,Gr),Gr|=i,null;o.memoizedState={baseLanes:0,cachePool:null,transitions:null},A=z!==null?z.baseLanes:E,yt(Ia,Gr),Gr|=A}else z!==null?(A=z.baseLanes|E,o.memoizedState=null):A=E,yt(Ia,Gr),Gr|=A;return Pr(i,o,L,E),o.child}function Fc(i,o){var E=o.ref;(i===null&&E!==null||i!==null&&i.ref!==E)&&(o.flags|=512,o.flags|=2097152)}function vs(i,o,E,A,L){var z=Kr(E)?$o:xr.current;return z=ma(o,z),ja(o,L),E=as(i,o,E,A,z,L),A=ls(),i!==null&&!Ur?(o.updateQueue=i.updateQueue,o.flags&=-2053,i.lanes&=~L,ao(i,o,L)):(bt&&A&&$l(o),o.flags|=1,Pr(i,o,E,L),o.child)}function Vc(i,o,E,A,L){if(Kr(E)){var z=!0;Za(o)}else z=!1;if(ja(o,L),o.stateNode===null)vl(i,o),Tc(o,E,A),fs(o,E,A,L),A=!0;else if(i===null){var ne=o.stateNode,ce=o.memoizedProps;ne.props=ce;var _e=ne.context,be=E.contextType;(typeof be>"u"?"undefined":s(be))==="object"&&be!==null?be=ui(be):(be=Kr(E)?$o:xr.current,be=ma(o,be));var we=E.getDerivedStateFromProps,$e=typeof we=="function"||typeof ne.getSnapshotBeforeUpdate=="function";$e||typeof ne.UNSAFE_componentWillReceiveProps!="function"&&typeof ne.componentWillReceiveProps!="function"||(ce!==A||_e!==be)&&kc(o,ne,A,be),Mo=!1;var Ne=o.memoizedState;ne.state=Ne,ll(o,A,ne,L),_e=o.memoizedState,ce!==A||Ne!==_e||Rr.current||Mo?(typeof we=="function"&&(hs(o,E,we,A),_e=o.memoizedState),(ce=Mo||Ac(o,E,ce,A,Ne,_e,be))?($e||typeof ne.UNSAFE_componentWillMount!="function"&&typeof ne.componentWillMount!="function"||(typeof ne.componentWillMount=="function"&&ne.componentWillMount(),typeof ne.UNSAFE_componentWillMount=="function"&&ne.UNSAFE_componentWillMount()),typeof ne.componentDidMount=="function"&&(o.flags|=4194308)):(typeof ne.componentDidMount=="function"&&(o.flags|=4194308),o.memoizedProps=A,o.memoizedState=_e),ne.props=A,ne.state=_e,ne.context=be,A=ce):(typeof ne.componentDidMount=="function"&&(o.flags|=4194308),A=!1)}else{ne=o.stateNode,sc(i,o),ce=o.memoizedProps,be=o.type===o.elementType?ce:Pi(o.type,ce),ne.props=be,$e=o.pendingProps,Ne=ne.context,_e=E.contextType,(typeof _e>"u"?"undefined":s(_e))==="object"&&_e!==null?_e=ui(_e):(_e=Kr(E)?$o:xr.current,_e=ma(o,_e));var dn=E.getDerivedStateFromProps;(we=typeof dn=="function"||typeof ne.getSnapshotBeforeUpdate=="function")||typeof ne.UNSAFE_componentWillReceiveProps!="function"&&typeof ne.componentWillReceiveProps!="function"||(ce!==$e||Ne!==_e)&&kc(o,ne,A,_e),Mo=!1,Ne=o.memoizedState,ne.state=Ne,ll(o,A,ne,L);var _n=o.memoizedState;ce!==$e||Ne!==_n||Rr.current||Mo?(typeof dn=="function"&&(hs(o,E,dn,A),_n=o.memoizedState),(be=Mo||Ac(o,E,be,A,Ne,_n,_e)||!1)?(we||typeof ne.UNSAFE_componentWillUpdate!="function"&&typeof ne.componentWillUpdate!="function"||(typeof ne.componentWillUpdate=="function"&&ne.componentWillUpdate(A,_n,_e),typeof ne.UNSAFE_componentWillUpdate=="function"&&ne.UNSAFE_componentWillUpdate(A,_n,_e)),typeof ne.componentDidUpdate=="function"&&(o.flags|=4),typeof ne.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof ne.componentDidUpdate!="function"||ce===i.memoizedProps&&Ne===i.memoizedState||(o.flags|=4),typeof ne.getSnapshotBeforeUpdate!="function"||ce===i.memoizedProps&&Ne===i.memoizedState||(o.flags|=1024),o.memoizedProps=A,o.memoizedState=_n),ne.props=A,ne.state=_n,ne.context=_e,A=be):(typeof ne.componentDidUpdate!="function"||ce===i.memoizedProps&&Ne===i.memoizedState||(o.flags|=4),typeof ne.getSnapshotBeforeUpdate!="function"||ce===i.memoizedProps&&Ne===i.memoizedState||(o.flags|=1024),A=!1)}return ps(i,o,E,A,z,L)}function ps(i,o,E,A,L,z){Fc(i,o);var ne=(o.flags&128)!==0;if(!A&&!ne)return L&&Qs(o,E,!1),ao(i,o,z);A=o.stateNode,Fu.current=o;var ce=ne&&typeof E.getDerivedStateFromError!="function"?null:A.render();return o.flags|=1,i!==null&&ne?(o.child=_a(o,i.child,null,z),o.child=_a(o,null,ce,z)):Pr(i,o,ce,z),o.memoizedState=A.state,L&&Qs(o,E,!0),o.child}function Xc(i){var o=i.stateNode;o.pendingContext?Gs(i,o.pendingContext,o.pendingContext!==o.context):o.context&&Gs(i,o.context,!1),es(i,o.containerInfo)}function Hc(i,o,E,A,L){return pa(),Xl(L),o.flags|=256,Pr(i,o,E,A),o.child}var _s={dehydrated:null,treeContext:null,retryLane:0};function gs(i){return{baseLanes:i,cachePool:null,transitions:null}}function Gc(i,o,E){var A=o.pendingProps,L=St.current,z=!1,ne=(o.flags&128)!==0,ce;if((ce=ne)||(ce=i!==null&&i.memoizedState===null?!1:(L&2)!==0),ce?(z=!0,o.flags&=-129):(i===null||i.memoizedState!==null)&&(L|=1),yt(St,L&1),i===null)return Vl(o),i=o.memoizedState,i!==null&&(i=i.dehydrated,i!==null)?((o.mode&1)===0?o.lanes=1:i.data==="$!"?o.lanes=8:o.lanes=1073741824,null):(ne=A.children,i=A.fallback,z?(A=o.mode,z=o.child,ne={mode:"hidden",children:ne},(A&1)===0&&z!==null?(z.childLanes=0,z.pendingProps=ne):z=Ml(ne,A,0,null),i=qo(i,A,E,null),z.return=o,i.return=o,z.sibling=i,o.child=z,o.child.memoizedState=gs(E),o.memoizedState=_s,i):js(o,ne));if(L=i.memoizedState,L!==null&&(ce=L.dehydrated,ce!==null))return Vu(i,o,ne,A,ce,L,E);if(z){z=A.fallback,ne=o.mode,L=i.child,ce=L.sibling;var _e={mode:"hidden",children:A.children};return(ne&1)===0&&o.child!==L?(A=o.child,A.childLanes=0,A.pendingProps=_e,o.deletions=null):(A=ko(L,_e),A.subtreeFlags=L.subtreeFlags&14680064),ce!==null?z=ko(ce,z):(z=qo(z,ne,E,null),z.flags|=2),z.return=o,A.return=o,A.sibling=z,o.child=A,A=z,z=o.child,ne=i.child.memoizedState,ne=ne===null?gs(E):{baseLanes:ne.baseLanes|E,cachePool:null,transitions:ne.transitions},z.memoizedState=ne,z.childLanes=i.childLanes&~E,o.memoizedState=_s,A}return z=i.child,i=z.sibling,A=ko(z,{mode:"visible",children:A.children}),(o.mode&1)===0&&(A.lanes=E),A.return=o,A.sibling=null,i!==null&&(E=o.deletions,E===null?(o.deletions=[i],o.flags|=16):E.push(i)),o.child=A,o.memoizedState=null,A}function js(i,o){return o=Ml({mode:"visible",children:o},i.mode,0,null),o.return=i,i.child=o}function xl(i,o,E,A){return A!==null&&Xl(A),_a(o,i.child,null,E),i=js(o,o.pendingProps.children),i.flags|=2,o.memoizedState=null,i}function Vu(i,o,E,A,L,z,ne){if(E)return o.flags&256?(o.flags&=-257,A=ms(Error(a(422))),xl(i,o,ne,A)):o.memoizedState!==null?(o.child=i.child,o.flags|=128,null):(z=A.fallback,L=o.mode,A=Ml({mode:"visible",children:A.children},L,0,null),z=qo(z,L,ne,null),z.flags|=2,A.return=o,z.return=o,A.sibling=z,o.child=A,(o.mode&1)!==0&&_a(o,i.child,null,ne),o.child.memoizedState=gs(ne),o.memoizedState=_s,z);if((o.mode&1)===0)return xl(i,o,ne,null);if(L.data==="$!"){if(A=L.nextSibling&&L.nextSibling.dataset,A)var ce=A.dgst;return A=ce,z=Error(a(419)),A=ms(z,A,void 0),xl(i,o,ne,A)}if(ce=(ne&i.childLanes)!==0,Ur||ce){if(A=qt,A!==null){switch(ne&-ne){case 4:L=2;break;case 16:L=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:L=32;break;case 536870912:L=268435456;break;default:L=0}L=(L&(A.suspendedLanes|ne))!==0?0:L,L!==0&&L!==z.retryLane&&(z.retryLane=L,io(i,L),Si(A,i,L,-1))}return Ls(),A=ms(Error(a(421))),xl(i,o,ne,A)}return L.data==="$?"?(o.flags|=128,o.child=i.child,o=od.bind(null,i),L._reactRetry=o,null):(i=z.treeContext,Hr=Io(L.nextSibling),Xr=o,bt=!0,bi=null,i!==null&&(si[ci++]=to,si[ci++]=ro,si[ci++]=Jo,to=i.id,ro=i.overflow,Jo=o),o=js(o,A.children),o.flags|=4096,o)}function Yc(i,o,E){i.lanes|=o;var A=i.alternate;A!==null&&(A.lanes|=o),Ql(i.return,o,E)}function Cs(i,o,E,A,L){var z=i.memoizedState;z===null?i.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:A,tail:E,tailMode:L}:(z.isBackwards=o,z.rendering=null,z.renderingStartTime=0,z.last=A,z.tail=E,z.tailMode=L)}function Qc(i,o,E){var A=o.pendingProps,L=A.revealOrder,z=A.tail;if(Pr(i,o,A.children,E),A=St.current,(A&2)!==0)A=A&1|2,o.flags|=128;else{if(i!==null&&(i.flags&128)!==0)e:for(i=o.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&Yc(i,E,o);else if(i.tag===19)Yc(i,E,o);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===o)break e;for(;i.sibling===null;){if(i.return===null||i.return===o)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}A&=1}if(yt(St,A),(o.mode&1)===0)o.memoizedState=null;else switch(L){case"forwards":for(E=o.child,L=null;E!==null;)i=E.alternate,i!==null&&sl(i)===null&&(L=E),E=E.sibling;E=L,E===null?(L=o.child,o.child=null):(L=E.sibling,E.sibling=null),Cs(o,!1,L,E,z);break;case"backwards":for(E=null,L=o.child,o.child=null;L!==null;){if(i=L.alternate,i!==null&&sl(i)===null){o.child=L;break}i=L.sibling,L.sibling=E,E=L,L=i}Cs(o,!0,E,null,z);break;case"together":Cs(o,!1,null,null,void 0);break;default:o.memoizedState=null}return o.child}function vl(i,o){(o.mode&1)===0&&i!==null&&(i.alternate=null,o.alternate=null,o.flags|=2)}function ao(i,o,E){if(i!==null&&(o.dependencies=i.dependencies),Go|=o.lanes,(E&o.childLanes)===0)return null;if(i!==null&&o.child!==i.child)throw Error(a(153));if(o.child!==null){for(i=o.child,E=ko(i,i.pendingProps),o.child=E,E.return=o;i.sibling!==null;)i=i.sibling,E=E.sibling=ko(i,i.pendingProps),E.return=o;E.sibling=null}return o.child}function Xu(i,o,E){switch(o.tag){case 3:Xc(o),pa();break;case 5:dc(o);break;case 1:Kr(o.type)&&Za(o);break;case 4:es(o,o.stateNode.containerInfo);break;case 10:var A=o.type._context,L=o.memoizedProps.value;yt(il,A._currentValue),A._currentValue=L;break;case 13:if(A=o.memoizedState,A!==null)return A.dehydrated!==null?(yt(St,St.current&1),o.flags|=128,null):(E&o.child.childLanes)!==0?Gc(i,o,E):(yt(St,St.current&1),i=ao(i,o,E),i!==null?i.sibling:null);yt(St,St.current&1);break;case 19:if(A=(E&o.childLanes)!==0,(i.flags&128)!==0){if(A)return Qc(i,o,E);o.flags|=128}if(L=o.memoizedState,L!==null&&(L.rendering=null,L.tail=null,L.lastEffect=null),yt(St,St.current),A)break;return null;case 22:case 23:return o.lanes=0,Jc(i,o,E)}return ao(i,o,E)}var Zc,ys,qc,eu;Zc=function(o,E){for(var A=E.child;A!==null;){if(A.tag===5||A.tag===6)o.appendChild(A.stateNode);else if(A.tag!==4&&A.child!==null){A.child.return=A,A=A.child;continue}if(A===E)break;for(;A.sibling===null;){if(A.return===null||A.return===E)return;A=A.return}A.sibling.return=A.return,A=A.sibling}},ys=function(){},qc=function(o,E,A,L){var z=o.memoizedProps;if(z!==L){o=E.stateNode,Xo(Ji.current);var ne=null;switch(A){case"input":z=fn(o,z),L=fn(o,L),ne=[];break;case"select":z=V({},z,{value:void 0}),L=V({},L,{value:void 0}),ne=[];break;case"textarea":z=_t(o,z),L=_t(o,L),ne=[];break;default:typeof z.onClick!="function"&&typeof L.onClick=="function"&&(o.onclick=Ga)}Dr(A,L);var ce;A=null;for(we in z)if(!L.hasOwnProperty(we)&&z.hasOwnProperty(we)&&z[we]!=null)if(we==="style"){var _e=z[we];for(ce in _e)_e.hasOwnProperty(ce)&&(A||(A={}),A[ce]="")}else we!=="dangerouslySetInnerHTML"&&we!=="children"&&we!=="suppressContentEditableWarning"&&we!=="suppressHydrationWarning"&&we!=="autoFocus"&&(b.hasOwnProperty(we)?ne||(ne=[]):(ne=ne||[]).push(we,null));for(we in L){var be=L[we];if(_e=z?.[we],L.hasOwnProperty(we)&&be!==_e&&(be!=null||_e!=null))if(we==="style")if(_e){for(ce in _e)!_e.hasOwnProperty(ce)||be&&be.hasOwnProperty(ce)||(A||(A={}),A[ce]="");for(ce in be)be.hasOwnProperty(ce)&&_e[ce]!==be[ce]&&(A||(A={}),A[ce]=be[ce])}else A||(ne||(ne=[]),ne.push(we,A)),A=be;else we==="dangerouslySetInnerHTML"?(be=be?be.__html:void 0,_e=_e?_e.__html:void 0,be!=null&&_e!==be&&(ne=ne||[]).push(we,be)):we==="children"?typeof be!="string"&&typeof be!="number"||(ne=ne||[]).push(we,""+be):we!=="suppressContentEditableWarning"&&we!=="suppressHydrationWarning"&&(b.hasOwnProperty(we)?(be!=null&&we==="onScroll"&&Vn("scroll",o),ne||_e===be||(ne=[])):(ne=ne||[]).push(we,be))}A&&(ne=ne||[]).push("style",A);var we=ne;(E.updateQueue=we)&&(E.flags|=4)}},eu=function(o,E,A,L){A!==L&&(E.flags|=4)};function za(i,o){if(!bt)switch(i.tailMode){case"hidden":o=i.tail;for(var E=null;o!==null;)o.alternate!==null&&(E=o),o=o.sibling;E===null?i.tail=null:E.sibling=null;break;case"collapsed":E=i.tail;for(var A=null;E!==null;)E.alternate!==null&&(A=E),E=E.sibling;A===null?o||i.tail===null?i.tail=null:i.tail.sibling=null:A.sibling=null}}function pr(i){var o=i.alternate!==null&&i.alternate.child===i.child,E=0,A=0;if(o)for(var L=i.child;L!==null;)E|=L.lanes|L.childLanes,A|=L.subtreeFlags&14680064,A|=L.flags&14680064,L.return=i,L=L.sibling;else for(L=i.child;L!==null;)E|=L.lanes|L.childLanes,A|=L.subtreeFlags,A|=L.flags,L.return=i,L=L.sibling;return i.subtreeFlags|=A,i.childLanes=E,o}function Hu(i,o,E){var A=o.pendingProps;switch(Jl(o),o.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return pr(o),null;case 1:return Kr(o.type)&&Qa(),pr(o),null;case 3:return A=o.stateNode,Ca(),It(Rr),It(xr),rs(),A.pendingContext&&(A.context=A.pendingContext,A.pendingContext=null),(i===null||i.child===null)&&(tl(o)?o.flags|=4:i===null||i.memoizedState.isDehydrated&&(o.flags&256)===0||(o.flags|=1024,bi!==null&&(As(bi),bi=null))),ys(i,o),pr(o),null;case 5:ns(o);var L=Xo(ka.current);if(E=o.type,i!==null&&o.stateNode!=null)qc(i,o,E,A,L),i.ref!==o.ref&&(o.flags|=512,o.flags|=2097152);else{if(!A){if(o.stateNode===null)throw Error(a(166));return pr(o),null}if(i=Xo(Ji.current),tl(o)){A=o.stateNode,E=o.type;var z=o.memoizedProps;switch(A[$i]=o,A[Sa]=z,i=(o.mode&1)!==0,E){case"dialog":Vn("cancel",A),Vn("close",A);break;case"iframe":case"object":case"embed":Vn("load",A);break;case"video":case"audio":for(L=0;L<\/script>",i=i.removeChild(i.firstChild)):typeof A.is=="string"?i=ne.createElement(E,{is:A.is}):(i=ne.createElement(E),E==="select"&&(ne=i,A.multiple?ne.multiple=!0:A.size&&(ne.size=A.size))):i=ne.createElementNS(i,E),i[$i]=o,i[Sa]=A,Zc(i,o,!1,!1),o.stateNode=i;e:{switch(ne=Yr(E,A),E){case"dialog":Vn("cancel",i),Vn("close",i),L=A;break;case"iframe":case"object":case"embed":Vn("load",i),L=A;break;case"video":case"audio":for(L=0;LOa&&(o.flags|=128,A=!0,za(z,!1),o.lanes=4194304)}else{if(!A)if(i=sl(ne),i!==null){if(o.flags|=128,A=!0,E=i.updateQueue,E!==null&&(o.updateQueue=E,o.flags|=4),za(z,!0),z.tail===null&&z.tailMode==="hidden"&&!ne.alternate&&!bt)return pr(o),null}else 2*dt()-z.renderingStartTime>Oa&&E!==1073741824&&(o.flags|=128,A=!0,za(z,!1),o.lanes=4194304);z.isBackwards?(ne.sibling=o.child,o.child=ne):(E=z.last,E!==null?E.sibling=ne:o.child=ne,z.last=ne)}return z.tail!==null?(o=z.tail,z.rendering=o,z.tail=o.sibling,z.renderingStartTime=dt(),o.sibling=null,E=St.current,yt(St,A?E&1|2:E&1),o):(pr(o),null);case 22:case 23:return ks(),A=o.memoizedState!==null,i!==null&&i.memoizedState!==null!==A&&(o.flags|=8192),A&&(o.mode&1)!==0?(Gr&1073741824)!==0&&(pr(o),o.subtreeFlags&6&&(o.flags|=8192)):pr(o),null;case 24:return null;case 25:return null}throw Error(a(156,o.tag))}function Gu(i,o){switch(Jl(o),o.tag){case 1:return Kr(o.type)&&Qa(),i=o.flags,i&65536?(o.flags=i&-65537|128,o):null;case 3:return Ca(),It(Rr),It(xr),rs(),i=o.flags,(i&65536)!==0&&(i&128)===0?(o.flags=i&-65537|128,o):null;case 5:return ns(o),null;case 13:if(It(St),i=o.memoizedState,i!==null&&i.dehydrated!==null){if(o.alternate===null)throw Error(a(340));pa()}return i=o.flags,i&65536?(o.flags=i&-65537|128,o):null;case 19:return It(St),null;case 4:return Ca(),null;case 10:return Yl(o.type._context),null;case 22:case 23:return ks(),null;case 24:return null;default:return null}}var pl=!1,_r=!1,Yu=typeof WeakSet=="function"?WeakSet:Set,mn=null;function Ea(i,o){var E=i.ref;if(E!==null)if(typeof E=="function")try{E(null)}catch(A){kt(i,o,A)}else E.current=null}function Es(i,o,E){try{E()}catch(A){kt(i,o,A)}}var nu=!1;function Qu(i,o){if(kl=dr,i=$t(),or(i)){if("selectionStart"in i)var E={start:i.selectionStart,end:i.selectionEnd};else e:{E=(E=i.ownerDocument)&&E.defaultView||window;var A=E.getSelection&&E.getSelection();if(A&&A.rangeCount!==0){E=A.anchorNode;var L=A.anchorOffset,z=A.focusNode;A=A.focusOffset;try{E.nodeType,z.nodeType}catch{E=null;break e}var ne=0,ce=-1,_e=-1,be=0,we=0,$e=i,Ne=null;n:for(;;){for(var dn;$e!==E||L!==0&&$e.nodeType!==3||(ce=ne+L),$e!==z||A!==0&&$e.nodeType!==3||(_e=ne+A),$e.nodeType===3&&(ne+=$e.nodeValue.length),(dn=$e.firstChild)!==null;)Ne=$e,$e=dn;for(;;){if($e===i)break n;if(Ne===E&&++be===L&&(ce=ne),Ne===z&&++we===A&&(_e=ne),(dn=$e.nextSibling)!==null)break;$e=Ne,Ne=$e.parentNode}$e=dn}E=ce===-1||_e===-1?null:{start:ce,end:_e}}else E=null}E=E||{start:0,end:0}}else E=null;for(Ll={focusedElem:i,selectionRange:E},dr=!1,mn=o;mn!==null;)if(o=mn,i=o.child,(o.subtreeFlags&1028)!==0&&i!==null)i.return=o,mn=i;else for(;mn!==null;){o=mn;try{var _n=o.alternate;if((o.flags&1024)!==0)switch(o.tag){case 0:case 11:case 15:break;case 1:if(_n!==null){var gn=_n.memoizedProps,zt=_n.memoizedState,ye=o.stateNode,je=ye.getSnapshotBeforeUpdate(o.elementType===o.type?gn:Pi(o.type,gn),zt);ye.__reactInternalSnapshotBeforeUpdate=je}break;case 3:var Ee=o.stateNode.containerInfo;Ee.nodeType===1?Ee.textContent="":Ee.nodeType===9&&Ee.documentElement&&Ee.removeChild(Ee.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(a(163))}}catch(Qe){kt(o,o.return,Qe)}if(i=o.sibling,i!==null){i.return=o.return,mn=i;break}mn=o.return}return _n=nu,nu=!1,_n}function Na(i,o,E){var A=o.updateQueue;if(A=A!==null?A.lastEffect:null,A!==null){var L=A=A.next;do{if((L.tag&i)===i){var z=L.destroy;L.destroy=void 0,z!==void 0&&Es(o,E,z)}L=L.next}while(L!==A)}}function _l(i,o){if(o=o.updateQueue,o=o!==null?o.lastEffect:null,o!==null){var E=o=o.next;do{if((E.tag&i)===i){var A=E.create;E.destroy=A()}E=E.next}while(E!==o)}}function Is(i){var o=i.ref;if(o!==null){var E=i.stateNode;switch(i.tag){case 5:i=E;break;default:i=E}typeof o=="function"?o(i):o.current=i}}function tu(i){var o=i.alternate;o!==null&&(i.alternate=null,tu(o)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(o=i.stateNode,o!==null&&(delete o[$i],delete o[Sa],delete o[zl],delete o[Au],delete o[Tu])),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}function ru(i){return i.tag===5||i.tag===3||i.tag===4}function iu(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||ru(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function Os(i,o,E){var A=i.tag;if(A===5||A===6)i=i.stateNode,o?E.nodeType===8?E.parentNode.insertBefore(i,o):E.insertBefore(i,o):(E.nodeType===8?(o=E.parentNode,o.insertBefore(i,E)):(o=E,o.appendChild(i)),E=E._reactRootContainer,E!=null||o.onclick!==null||(o.onclick=Ga));else if(A!==4&&(i=i.child,i!==null))for(Os(i,o,E),i=i.sibling;i!==null;)Os(i,o,E),i=i.sibling}function bs(i,o,E){var A=i.tag;if(A===5||A===6)i=i.stateNode,o?E.insertBefore(i,o):E.appendChild(i);else if(A!==4&&(i=i.child,i!==null))for(bs(i,o,E),i=i.sibling;i!==null;)bs(i,o,E),i=i.sibling}var ar=null,Mi=!1;function So(i,o,E){for(E=E.child;E!==null;)ou(i,o,E),E=E.sibling}function ou(i,o,E){if(se&&typeof se.onCommitFiberUnmount=="function")try{se.onCommitFiberUnmount(ue,E)}catch{}switch(E.tag){case 5:_r||Ea(E,o);case 6:var A=ar,L=Mi;ar=null,So(i,o,E),ar=A,Mi=L,ar!==null&&(Mi?(i=ar,E=E.stateNode,i.nodeType===8?i.parentNode.removeChild(E):i.removeChild(E)):ar.removeChild(E.stateNode));break;case 18:ar!==null&&(Mi?(i=ar,E=E.stateNode,i.nodeType===8?Ul(i.parentNode,E):i.nodeType===1&&Ul(i,E),ur(i)):Ul(ar,E.stateNode));break;case 4:A=ar,L=Mi,ar=E.stateNode.containerInfo,Mi=!0,So(i,o,E),ar=A,Mi=L;break;case 0:case 11:case 14:case 15:if(!_r&&(A=E.updateQueue,A!==null&&(A=A.lastEffect,A!==null))){L=A=A.next;do{var z=L,ne=z.destroy;z=z.tag,ne!==void 0&&((z&2)!==0||(z&4)!==0)&&Es(E,o,ne),L=L.next}while(L!==A)}So(i,o,E);break;case 1:if(!_r&&(Ea(E,o),A=E.stateNode,typeof A.componentWillUnmount=="function"))try{A.props=E.memoizedProps,A.state=E.memoizedState,A.componentWillUnmount()}catch(ce){kt(E,o,ce)}So(i,o,E);break;case 21:So(i,o,E);break;case 22:E.mode&1?(_r=(A=_r)||E.memoizedState!==null,So(i,o,E),_r=A):So(i,o,E);break;default:So(i,o,E)}}function au(i){var o=i.updateQueue;if(o!==null){i.updateQueue=null;var E=i.stateNode;E===null&&(E=i.stateNode=new Yu),o.forEach(function(A){var L=ad.bind(null,i,A);E.has(A)||(E.add(A),A.then(L,L))})}}function Di(i,o){var E=o.deletions;if(E!==null)for(var A=0;AL&&(L=ne),A&=~z}if(A=L,A=dt()-A,A=(120>A?120:480>A?480:1080>A?1080:1920>A?1920:3e3>A?3e3:4320>A?4320:1960*qu(A/1960))-A,10"u"?"undefined":s(_e))==="object"&&typeof _e.then=="function"){var be=_e,we=ce,$e=we.tag;if((we.mode&1)===0&&($e===0||$e===11||$e===15)){var Ne=we.alternate;Ne?(we.updateQueue=Ne.updateQueue,we.memoizedState=Ne.memoizedState,we.lanes=Ne.lanes):(we.updateQueue=null,we.memoizedState=null)}var dn=Uc(ne);if(dn!==null){dn.flags&=-257,zc(dn,ne,ce,z,o),dn.mode&1&&Kc(z,be,o),o=dn,_e=be;var _n=o.updateQueue;if(_n===null){var gn=new Set;gn.add(_e),o.updateQueue=gn}else _n.add(_e);break e}else{if((o&1)===0){Kc(z,be,o),Ls();break e}_e=Error(a(426))}}else if(bt&&ce.mode&1){var zt=Uc(ne);if(zt!==null){(zt.flags&65536)===0&&(zt.flags|=256),zc(zt,ne,ce,z,o),Xl(ya(_e,ce));break e}}z=_e=ya(_e,ce),Gt!==4&&(Gt=2),$a===null?$a=[z]:$a.push(z),z=ne;do{switch(z.tag){case 3:z.flags|=65536,o&=-o,z.lanes|=o;var ye=Lc(z,_e,o);cc(z,ye);break e;case 1:ce=_e;var je=z.type,Ee=z.stateNode;if((z.flags&128)===0&&(typeof je.getDerivedStateFromError=="function"||Ee!==null&&typeof Ee.componentDidCatch=="function"&&(Bo===null||!Bo.has(Ee)))){z.flags|=65536,o&=-o,z.lanes|=o;var Qe=Rc(z,ce,o);cc(z,Qe);break e}}z=z.return}while(z!==null)}pu(E)}catch(jn){o=jn,Jt===E&&E!==null&&(Jt=E=E.return);continue}break}while(!0)}function xu(){var i=gl.current;return gl.current=fl,i===null?fl:i}function Ls(){(Gt===0||Gt===3||Gt===2)&&(Gt=4),qt===null||(Go&268435455)===0&&(jl&268435455)===0||To(qt,lr)}function bl(i,o){var E=rt;rt|=2;var A=xu();(qt!==i||lr!==o)&&(lo=null,Qo(i,o));do try{nd();break}catch(L){mu(i,L)}while(!0);if(Gl(),rt=E,gl.current=A,Jt!==null)throw Error(a(261));return qt=null,lr=0,Gt}function nd(){for(;Jt!==null;)vu(Jt)}function td(){for(;Jt!==null&&!Hi();)vu(Jt)}function vu(i){var o=ju(i.alternate,i,Gr);i.memoizedProps=i.pendingProps,o===null?pu(i):Jt=o,Ps.current=null}function pu(i){var o=i;do{var E=o.alternate;if(i=o.return,(o.flags&32768)===0){if(E=Hu(E,o,Gr),E!==null){Jt=E;return}}else{if(E=Gu(E,o),E!==null){E.flags&=32767,Jt=E;return}if(i!==null)i.flags|=32768,i.subtreeFlags=0,i.deletions=null;else{Gt=6,Jt=null;return}}if(o=o.sibling,o!==null){Jt=o;return}Jt=o=i}while(o!==null);Gt===0&&(Gt=5)}function Zo(i,o,E){var A=vn,L=hi.transition;try{hi.transition=null,vn=1,rd(i,o,E,A)}finally{hi.transition=L,vn=A}return null}function rd(i,o,E,A){do ba();while(wo!==null);if((rt&6)!==0)throw Error(a(327));E=i.finishedWork;var L=i.finishedLanes;if(E===null)return null;if(i.finishedWork=null,i.finishedLanes=0,E===i.current)throw Error(a(177));i.callbackNode=null,i.callbackPriority=0;var z=E.lanes|E.childLanes;if(qn(i,z),i===qt&&(Jt=qt=null,lr=0),(E.subtreeFlags&2064)===0&&(E.flags&2064)===0||yl||(yl=!0,Cu(Gi,function(){return ba(),null})),z=(E.flags&15990)!==0,(E.subtreeFlags&15990)!==0||z){z=hi.transition,hi.transition=null;var ne=vn;vn=1;var ce=rt;rt|=4,Ps.current=null,Qu(i,E),lu(E,i),yo(Ll),dr=!!kl,Ll=kl=null,i.current=E,Zu(E,i,L),ji(),rt=ce,vn=ne,hi.transition=z}else i.current=E;if(yl&&(yl=!1,wo=i,El=L),z=i.pendingLanes,z===0&&(Bo=null),ve(E.stateNode,A),Nr(i,dt()),o!==null)for(A=i.onRecoverableError,E=0;Ei?16:i,wo===null)var A=!1;else{if(i=wo,wo=null,El=0,(rt&6)!==0)throw Error(a(331));var L=rt;for(rt|=4,mn=i.current;mn!==null;){var z=mn,ne=z.child;if((mn.flags&16)!==0){var ce=z.deletions;if(ce!==null){for(var _e=0;_edt()-Ds?Qo(i,0):Ms|=E),Nr(i,o)}function gu(i,o){o===0&&((i.mode&1)===0?o=1:(o=Ge,Ge<<=1,(Ge&130023424)===0&&(Ge=4194304)));var E=Mr();i=io(i,o),i!==null&&(Je(i,o,E),Nr(i,E))}function od(i){var o=i.memoizedState,E=0;o!==null&&(E=o.retryLane),gu(i,E)}function ad(i,o){var E=0;switch(i.tag){case 13:var A=i.stateNode,L=i.memoizedState;L!==null&&(E=L.retryLane);break;case 19:A=i.stateNode;break;default:throw Error(a(314))}A!==null&&A.delete(o),gu(i,E)}var ju;ju=function(o,E,A){if(o!==null)if(o.memoizedProps!==E.pendingProps||Rr.current)Ur=!0;else{if((o.lanes&A)===0&&(E.flags&128)===0)return Ur=!1,Xu(o,E,A);Ur=(o.flags&131072)!==0}else Ur=!1,bt&&(E.flags&1048576)!==0&&qs(E,nl,E.index);switch(E.lanes=0,E.tag){case 2:var L=E.type;vl(o,E),o=E.pendingProps;var z=ma(E,xr.current);ja(E,A),z=as(null,E,L,o,z,A);var ne=ls();return E.flags|=1,(typeof z>"u"?"undefined":s(z))==="object"&&z!==null&&typeof z.render=="function"&&z.$$typeof===void 0?(E.tag=1,E.memoizedState=null,E.updateQueue=null,Kr(L)?(ne=!0,Za(E)):ne=!1,E.memoizedState=z.state!==null&&z.state!==void 0?z.state:null,ql(E),z.updater=ml,E.stateNode=z,z._reactInternals=E,fs(E,L,o,A),E=ps(null,E,L,!0,ne,A)):(E.tag=0,bt&&ne&&$l(E),Pr(null,E,z,A),E=E.child),E;case 16:L=E.elementType;e:{switch(vl(o,E),o=E.pendingProps,z=L._init,L=z(L._payload),E.type=L,z=E.tag=sd(L),o=Pi(L,o),z){case 0:E=vs(null,E,L,o,A);break e;case 1:E=Vc(null,E,L,o,A);break e;case 11:E=Nc(null,E,L,o,A);break e;case 14:E=Wc(null,E,L,Pi(L.type,o),A);break e}throw Error(a(306,L,""))}return E;case 0:return L=E.type,z=E.pendingProps,z=E.elementType===L?z:Pi(L,z),vs(o,E,L,z,A);case 1:return L=E.type,z=E.pendingProps,z=E.elementType===L?z:Pi(L,z),Vc(o,E,L,z,A);case 3:e:{if(Xc(E),o===null)throw Error(a(387));L=E.pendingProps,ne=E.memoizedState,z=ne.element,sc(o,E),ll(E,L,null,A);var ce=E.memoizedState;if(L=ce.element,ne.isDehydrated)if(ne={element:L,isDehydrated:!1,cache:ce.cache,pendingSuspenseBoundaries:ce.pendingSuspenseBoundaries,transitions:ce.transitions},E.updateQueue.baseState=ne,E.memoizedState=ne,E.flags&256){z=ya(Error(a(423)),E),E=Hc(o,E,L,A,z);break e}else if(L!==z){z=ya(Error(a(424)),E),E=Hc(o,E,L,A,z);break e}else for(Hr=Io(E.stateNode.containerInfo.firstChild),Xr=E,bt=!0,bi=null,A=ac(E,null,L,A),E.child=A;A;)A.flags=A.flags&-3|4096,A=A.sibling;else{if(pa(),L===z){E=ao(o,E,A);break e}Pr(o,E,L,A)}E=E.child}return E;case 5:return dc(E),o===null&&Vl(E),L=E.type,z=E.pendingProps,ne=o!==null?o.memoizedProps:null,ce=z.children,Rl(L,z)?ce=null:ne!==null&&Rl(L,ne)&&(E.flags|=32),Fc(o,E),Pr(o,E,ce,A),E.child;case 6:return o===null&&Vl(E),null;case 13:return Gc(o,E,A);case 4:return es(E,E.stateNode.containerInfo),L=E.pendingProps,o===null?E.child=_a(E,null,L,A):Pr(o,E,L,A),E.child;case 11:return L=E.type,z=E.pendingProps,z=E.elementType===L?z:Pi(L,z),Nc(o,E,L,z,A);case 7:return Pr(o,E,E.pendingProps,A),E.child;case 8:return Pr(o,E,E.pendingProps.children,A),E.child;case 12:return Pr(o,E,E.pendingProps.children,A),E.child;case 10:e:{if(L=E.type._context,z=E.pendingProps,ne=E.memoizedProps,ce=z.value,yt(il,L._currentValue),L._currentValue=ce,ne!==null)if(st(ne.value,ce)){if(ne.children===z.children&&!Rr.current){E=ao(o,E,A);break e}}else for(ne=E.child,ne!==null&&(ne.return=E);ne!==null;){var _e=ne.dependencies;if(_e!==null){ce=ne.child;for(var be=_e.firstContext;be!==null;){if(be.context===L){if(ne.tag===1){be=oo(-1,A&-A),be.tag=2;var we=ne.updateQueue;if(we!==null){we=we.shared;var $e=we.pending;$e===null?be.next=be:(be.next=$e.next,$e.next=be),we.pending=be}}ne.lanes|=A,be=ne.alternate,be!==null&&(be.lanes|=A),Ql(ne.return,A,E),_e.lanes|=A;break}be=be.next}}else if(ne.tag===10)ce=ne.type===E.type?null:ne.child;else if(ne.tag===18){if(ce=ne.return,ce===null)throw Error(a(341));ce.lanes|=A,_e=ce.alternate,_e!==null&&(_e.lanes|=A),Ql(ce,A,E),ce=ne.sibling}else ce=ne.child;if(ce!==null)ce.return=ne;else for(ce=ne;ce!==null;){if(ce===E){ce=null;break}if(ne=ce.sibling,ne!==null){ne.return=ce.return,ce=ne;break}ce=ce.return}ne=ce}Pr(o,E,z.children,A),E=E.child}return E;case 9:return z=E.type,L=E.pendingProps.children,ja(E,A),z=ui(z),L=L(z),E.flags|=1,Pr(o,E,L,A),E.child;case 14:return L=E.type,z=Pi(L,E.pendingProps),z=Pi(L.type,z),Wc(o,E,L,z,A);case 15:return $c(o,E,E.type,E.pendingProps,A);case 17:return L=E.type,z=E.pendingProps,z=E.elementType===L?z:Pi(L,z),vl(o,E),E.tag=1,Kr(L)?(o=!0,Za(E)):o=!1,ja(E,A),Tc(E,L,z),fs(E,L,z,A),ps(null,E,L,!0,o,A);case 19:return Qc(o,E,A);case 22:return Jc(o,E,A)}throw Error(a(156,E.tag))};function Cu(i,o){return gi(i,o)}function ld(i,o,E,A){this.tag=i,this.key=E,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=A,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function fi(i,o,E,A){return new ld(i,o,E,A)}function Rs(i){return i=i.prototype,!(!i||!i.isReactComponent)}function sd(i){if(typeof i=="function")return Rs(i)?1:0;if(i!=null){if(i=i.$$typeof,i===U)return 11;if(i===W)return 14}return 2}function ko(i,o){var E=i.alternate;return E===null?(E=fi(i.tag,o,i.key,i.mode),E.elementType=i.elementType,E.type=i.type,E.stateNode=i.stateNode,E.alternate=i,i.alternate=E):(E.pendingProps=o,E.type=i.type,E.flags=0,E.subtreeFlags=0,E.deletions=null),E.flags=i.flags&14680064,E.childLanes=i.childLanes,E.lanes=i.lanes,E.child=i.child,E.memoizedProps=i.memoizedProps,E.memoizedState=i.memoizedState,E.updateQueue=i.updateQueue,o=i.dependencies,E.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},E.sibling=i.sibling,E.index=i.index,E.ref=i.ref,E}function Pl(i,o,E,A,L,z){var ne=2;if(A=i,typeof i=="function")Rs(i)&&(ne=1);else if(typeof i=="string")ne=5;else e:switch(i){case B:return qo(E.children,L,z,o);case w:ne=8,L|=8;break;case T:return i=fi(12,E,o,L|2),i.elementType=T,i.lanes=z,i;case F:return i=fi(13,E,o,L),i.elementType=F,i.lanes=z,i;case $:return i=fi(19,E,o,L),i.elementType=$,i.lanes=z,i;case Z:return Ml(E,L,z,o);default:if((typeof i>"u"?"undefined":s(i))==="object"&&i!==null)switch(i.$$typeof){case K:ne=10;break e;case R:ne=9;break e;case U:ne=11;break e;case W:ne=14;break e;case N:ne=16,A=null;break e}throw Error(a(130,i==null?i:typeof i>"u"?"undefined":s(i),""))}return o=fi(ne,E,o,L),o.elementType=i,o.type=A,o.lanes=z,o}function qo(i,o,E,A){return i=fi(7,i,A,o),i.lanes=E,i}function Ml(i,o,E,A){return i=fi(22,i,A,o),i.elementType=Z,i.lanes=E,i.stateNode={isHidden:!1},i}function Ks(i,o,E){return i=fi(6,i,null,o),i.lanes=E,i}function Us(i,o,E){return o=fi(4,i.children!==null?i.children:[],i.key,o),o.lanes=E,o.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},o}function cd(i,o,E,A,L){this.tag=o,this.containerInfo=i,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Nn(0),this.expirationTimes=Nn(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Nn(0),this.identifierPrefix=A,this.onRecoverableError=L,this.mutableSourceEagerHydrationData=null}function zs(i,o,E,A,L,z,ne,ce,_e){return i=new cd(i,o,E,ce,_e),o===1?(o=1,z===!0&&(o|=8)):o=0,z=fi(3,null,null,o),i.current=z,z.stateNode=i,z.memoizedState={element:A,isDehydrated:E,cache:null,transitions:null,pendingSuspenseBoundaries:null},ql(z),i}function ud(i,o,E){var A=3{"use strict";r.r(S)},2389:(q,S,r)=>{"use strict";r.r(S),r.d(S,{ShuttleConsole:()=>a,ShuttleConsoleContent:()=>u});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(f){var m=(0,s.Oc)(),d=m.act,v=m.data,_=f.type,l=_===void 0?"shuttle":_,c=f.blind_drop,h=v.authorization_required;return(0,e.jsxs)(t.p8,{width:350,height:240,children:[!!h&&(0,e.jsxs)(n.aF,{ml:1,mt:1,width:26,height:12,fontSize:"28px",fontFamily:"monospace",textAlign:"center",children:[(0,e.jsxs)(n.so,{children:[(0,e.jsx)(n.so.Item,{mt:2,children:(0,e.jsx)(n.In,{name:"minus-circle"})}),(0,e.jsx)(n.so.Item,{mt:2,ml:2,color:"bad",children:l==="shuttle"?"SHUTTLE LOCKED":"BASE LOCKED"})]}),(0,e.jsx)(n.az,{fontSize:"18px",mt:4,children:(0,e.jsx)(n.$n,{lineHeight:"40px",icon:"arrow-circle-right",content:"Request Authorization",color:"bad",onClick:function(){return d("request")}})})]}),(0,e.jsx)(t.p8.Content,{children:(0,e.jsx)(u,{type:l,blind_drop:c})})]})},O=function(f,m){var d;return f==null||(d=f.find(function(v){return v.id===m}))==null?void 0:d.name},b=function(f,m){var d;return f==null||(d=f.find(function(v){return v.name===m}))==null?void 0:d.id},y={"In Transit":"good",Idle:"average",Igniting:"average",Recharging:"average",Missing:"bad","Unauthorized Access":"bad",Locked:"bad"},u=function(f){var m=(0,s.Oc)(),d=m.act,v=m.data,_=f.type,l=f.blind_drop,c=v.status,h=v.locked,g=v.authorization_required,p=v.destination,j=v.docked_location,x=v.timer_str,C=v.locations,I=C===void 0?[]:C;return(0,e.jsxs)(n.wn,{children:[(0,e.jsx)(n.az,{bold:!0,fontSize:"26px",textAlign:"center",fontFamily:"monospace",children:x||"00:00"}),(0,e.jsxs)(n.az,{textAlign:"center",fontSize:"14px",mb:1,children:[(0,e.jsx)(n.az,{inline:!0,bold:!0,children:"STATUS:"}),(0,e.jsx)(n.az,{inline:!0,color:y[c]||"bad",ml:1,children:c||"Not Available"})]}),(0,e.jsxs)(n.wn,{title:_==="shuttle"?"Shuttle Controls":"Base Launch Controls",children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Location",children:j||"Not Available"}),(0,e.jsx)(n.Ki.Item,{label:"Destination",buttons:_!=="shuttle"&&I.length===0&&!!l&&(0,e.jsx)(n.$n,{color:"bad",icon:"exclamation-triangle",disabled:g||!l,onClick:function(){return d("random")},children:"Blind Drop"}),children:I.length===0&&(0,e.jsx)(n.az,{mb:1.7,color:"bad",children:"Not Available"})||I.length===1&&(0,e.jsx)(n.az,{mb:1.7,color:"average",children:O(I,p)})||(0,e.jsx)(n.ms,{mb:1.7,over:!0,width:"240px",options:I.map(function(P){return P.name}),disabled:h||g,selected:O(I,p)||"Select a Destination",onSelected:function(P){return d("set_destination",{destination:b(I,P)})}})})]}),(0,e.jsx)(n.$n,{fluid:!0,disabled:!O(I,p)||h||g||c!=="Idle",icon:"arrow-up",textAlign:"center",onClick:function(){return d("move",{shuttle_id:p})},children:"Depart"})]})]})}},2398:(q,S,r)=>{"use strict";r.r(S),r.d(S,{Newscaster:()=>l,PhotoThumbnail:()=>j});var e=r(1131),s=r(185),n=r(360),t=r(7003),a=r(5180),O=r(9357),b=r(3521),y=r(538),u=r(2424);function f(){return f=Object.assign||function(M){for(var B=1;B=0)&&(w[K]=M[K]);return w}var d=128,v=["security","engineering","medical","science","service","supply"],_={security:{title:"Security",fluff_text:"\u041F\u043E\u043C\u043E\u0433\u0430\u0439\u0442\u0435 \u043E\u0431\u0435\u0441\u043F\u0435\u0447\u0438\u0432\u0430\u0442\u044C \u0431\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u044C \u044D\u043A\u0438\u043F\u0430\u0436\u0430"},engineering:{title:"Engineering",fluff_text:"\u0421\u043B\u0435\u0434\u0438\u0442\u0435 \u0437\u0430 \u0431\u0435\u0441\u043F\u0435\u0440\u0435\u0431\u043E\u0439\u043D\u043E\u0439 \u0440\u0430\u0431\u043E\u0442\u043E\u0439 \u0441\u0442\u0430\u043D\u0446\u0438\u0438"},medical:{title:"Medical",fluff_text:"\u0417\u0430\u043D\u0438\u043C\u0430\u0439\u0442\u0435\u0441\u044C \u043C\u0435\u0434\u0438\u0446\u0438\u043D\u043E\u0439 \u0438 \u0441\u043F\u0430\u0441\u0430\u0439\u0442\u0435 \u0436\u0438\u0437\u043D\u0438"},science:{title:"Science",fluff_text:"\u0420\u0430\u0437\u0440\u0430\u0431\u0430\u0442\u044B\u0432\u0430\u0439\u0442\u0435 \u043D\u043E\u0432\u044B\u0435 \u0442\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0438"},service:{title:"Service",fluff_text:"\u041E\u0431\u0435\u0441\u043F\u0435\u0447\u0438\u0432\u0430\u0439\u0442\u0435 \u044D\u043A\u0438\u043F\u0430\u0436 \u0443\u0434\u043E\u0431\u0441\u0442\u0432\u0430\u043C\u0438"},supply:{title:"Supply",fluff_text:"\u041F\u043E\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0439\u0442\u0435 \u0441\u043D\u0430\u0431\u0436\u0435\u043D\u0438\u0435 \u0441\u0442\u0430\u043D\u0446\u0438\u0438"}},l=function(M){var B=(0,n.Oc)(),w=B.act,T=B.data,K=T.is_security,R=T.is_admin,U=T.is_silent,F=T.is_printing,$=T.screen,W=T.channels,N=T.channel_idx,Z=N===void 0?-1:N,ie=(0,t.useState)(!1),Q=ie[0],V=ie[1],G=(0,t.useState)(""),le=G[0],xe=G[1],de=(0,t.useState)(!1),me=de[0],pe=de[1],Me=(0,t.useState)([]),Ke=Me[0],Le=Me[1],Se;$===0||$===2?Se=(0,e.jsx)(h,{censorMode:me,fullStories:Ke,setFullStories:Le}):$===1&&(Se=(0,e.jsx)(g,{censorMode:me,fullStories:Ke,setFullStories:Le}));var ln=W.reduce(function(ze,We){return ze+We.unread},0);return(0,e.jsxs)(b.p8,{theme:K&&"security",width:800,height:600,children:[le?(0,e.jsx)(x,{}):(0,e.jsx)(y.ComplexModal,{maxWidth:50,maxHeight:70}),(0,e.jsx)(b.p8.Content,{children:(0,e.jsxs)(a.BJ,{fill:!0,children:[(0,e.jsx)(a.wn,{fill:!0,className:(0,s.Ly)(["Newscaster__menu",Q&&"Newscaster__menu--open"]),children:(0,e.jsxs)(a.BJ,{fill:!0,vertical:!0,children:[(0,e.jsxs)(a.BJ.Item,{children:[(0,e.jsx)(c,{icon:"bars",title:"\u041C\u0435\u043D\u044E",onClick:function(){return V(!Q)}}),(0,e.jsx)(c,{icon:"newspaper",title:"\u0421\u0442\u0430\u0442\u044C\u0438",selected:$===0,onClick:function(){return w("headlines")},children:ln>0&&(0,e.jsx)(a.az,{className:"Newscaster__menuButton--unread",children:ln>=10?"9+":ln})}),(0,e.jsx)(c,{icon:"briefcase",title:"\u0412\u0430\u043A\u0430\u043D\u0441\u0438\u0438",selected:$===1,onClick:function(){return w("jobs")}}),(0,e.jsx)(a.cG,{})]}),(0,e.jsx)(a.BJ.Item,{grow:!0,children:W.map(function(ze){return(0,e.jsx)(c,{icon:ze.icon,title:ze.name,selected:$===2&&W[Z-1]===ze,onClick:function(){return w("channel",{uid:ze.uid})},children:ze.unread>0&&(0,e.jsx)(a.az,{className:"Newscaster__menuButton--unread",children:ze.unread>=10?"9+":ze.unread})},ze.uid)})}),(0,e.jsxs)(a.BJ.Item,{children:[(0,e.jsx)(a.cG,{}),(!!K||!!R)&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(c,{security:!0,icon:"exclamation-circle",title:"\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0440\u043E\u0437\u044B\u0441\u043A",mb:"0.5rem",onClick:function(){return(0,y.modalOpen)("wanted_notice")}}),(0,e.jsx)(c,{security:!0,icon:me?"minus-square":"minus-square-o",title:"\u0420\u0435\u0436\u0438\u043C \u0426\u0435\u043D\u0437\u0443\u0440\u044B: "+(me?"\u0412\u043A\u043B":"\u0412\u044B\u043A\u043B"),mb:"0.5rem",onClick:function(){return pe(!me)}}),(0,e.jsx)(a.cG,{})]}),(0,e.jsx)(c,{icon:"pen-alt",title:"\u041D\u043E\u0432\u0430\u044F \u0441\u0442\u0430\u0442\u044C\u044F",mb:"0.5rem",onClick:function(){return(0,y.modalOpen)("create_story")}}),(0,e.jsx)(c,{icon:"plus-circle",title:"\u041D\u043E\u0432\u044B\u0439 \u043A\u0430\u043D\u0430\u043B",onClick:function(){return(0,y.modalOpen)("create_channel")}}),(0,e.jsx)(a.cG,{}),(0,e.jsx)(c,{icon:F?"spinner":"print",iconSpin:F,title:F?"\u041F\u0435\u0447\u0430\u0442\u044C...":"\u0420\u0430\u0441\u043F\u0435\u0447\u0430\u0442\u0430\u0442\u044C \u0433\u0430\u0437\u0435\u0442\u0443",onClick:function(){return w("print_newspaper")}}),(0,e.jsx)(c,{icon:U?"volume-mute":"volume-up",title:"\u0417\u0430\u0433\u043B\u0443\u0448\u0438\u0442\u044C: "+(U?"\u0412\u043A\u043B":"\u0412\u044B\u043A\u043B"),onClick:function(){return w("toggle_mute")}})]})]})}),(0,e.jsxs)(a.BJ,{fill:!0,vertical:!0,width:"100%",children:[(0,e.jsx)(u.TemporaryNotice,{}),Se]})]})})]})},c=function(M){var B=M.icon,w=B===void 0?"":B,T=M.iconSpin,K=M.selected,R=K===void 0?!1:K,U=M.security,F=U===void 0?!1:U,$=M.onClick,W=M.title,N=M.children,Z=m(M,["icon","iconSpin","selected","security","onClick","title","children"]);return(0,e.jsxs)(a.az,f({className:(0,s.Ly)(["Newscaster__menuButton",R&&"Newscaster__menuButton--selected",F&&"Newscaster__menuButton--security"]),onClick:$},Z,{children:[R&&(0,e.jsx)(a.az,{className:"Newscaster__menuButton--selectedBar"}),(0,e.jsx)(a.In,{name:w,spin:T,size:2}),(0,e.jsx)(a.az,{className:"Newscaster__menuButton--title",children:W}),N]}))},h=function(M){var B=(0,n.Oc)(),w=B.act,T=B.data,K=T.screen,R=T.is_admin,U=T.channel_idx,F=T.channel_can_manage,$=T.channels,W=T.stories,N=T.wanted,Z=M.censorMode,ie=M.fullStories,Q=M.setFullStories,V=K===2&&U>-1?$[U-1]:null;return(0,e.jsxs)(a.BJ,{fill:!0,vertical:!0,children:[!!N&&(0,e.jsx)(p,{story:N,wanted:!0,censorMode:Z,fullStories:ie,setFullStories:Q}),(0,e.jsx)(a.wn,{fill:!0,scrollable:!0,title:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.In,{name:V?V.icon:"newspaper",mr:"0.5rem"}),V?V.name:"\u0421\u0442\u0430\u0442\u044C\u0438"]}),children:W.length>0?W.slice().reverse().map(function(G){return!ie.includes(G.uid)&&G.body.length+3>d?f({},G,{body_short:G.body.substring(0,d-4)+"..."}):G}).map(function(G,le){return(0,e.jsx)(p,{story:G,censorMode:Z,fullStories:ie,setFullStories:Q},le)}):(0,e.jsxs)(a.az,{className:"Newscaster__emptyNotice",children:[(0,e.jsx)(a.In,{name:"times",size:3}),(0,e.jsx)("br",{}),"\u0412 \u043D\u0430\u0441\u0442\u043E\u044F\u0449\u0435\u0435 \u0432\u0440\u0435\u043C\u044F \u043D\u0435\u0442 \u043D\u0438\u043A\u0430\u043A\u0438\u0445 \u0441\u0442\u0430\u0442\u0435\u0439."]})}),!!V&&(0,e.jsx)(a.wn,{fill:!0,scrollable:!0,height:"40%",title:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.In,{name:"info-circle",mr:"0.5rem"}),"\u041E \u043A\u0430\u043D\u0430\u043B\u0435"]}),buttons:(0,e.jsxs)(e.Fragment,{children:[Z&&(0,e.jsx)(a.$n,{disabled:!!V.admin&&!R,selected:V.censored,icon:V.censored?"comment":"ban",backgroundColor:!V.censored&&"red",mr:"0.5rem",tooltip:V.censored?"\u0420\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043A\u0430\u043D\u0430\u043B":"\u0417\u0430\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043A\u0430\u043D\u0430\u043B",onClick:function(){return w("censor_channel",{uid:V.uid})}}),(0,e.jsx)(a.$n,{disabled:!F,icon:"cog",onClick:function(){return(0,y.modalOpen)("manage_channel",{uid:V.uid})},children:"\u0423\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435"})]}),children:(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"\u041E\u043F\u0438\u0441\u0430\u043D\u0438\u0435",children:V.description||"\u041D/\u0414"}),(0,e.jsx)(a.Ki.Item,{label:"\u0412\u043B\u0430\u0434\u0435\u043B\u0435\u0446",children:V.author||"\u041D/\u0414"}),(0,e.jsx)(a.Ki.Item,{label:"\u041F\u0443\u0431\u043B\u0438\u0447\u043D\u044B\u0439",children:V.public?"\u0414\u0430":"\u041D\u0435\u0442"}),(0,e.jsxs)(a.Ki.Item,{label:"\u0412\u0441\u0435\u0433\u043E \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u043E\u0432",children:[(0,e.jsx)(a.In,{name:"eye",mr:"0.5rem"}),W.reduce(function(G,le){return G+le.view_count},0).toLocaleString()]})]})})]})},g=function(M){var B=(0,n.Oc)().data,w=B.jobs,T=B.wanted,K=Object.entries(w).reduce(function($,W){var N=W[0],Z=W[1];return $+Z.length},0),R=M.censorMode,U=M.fullStories,F=M.setFullStories;return(0,e.jsxs)(a.BJ,{fill:!0,vertical:!0,children:[!!T&&(0,e.jsx)(p,{censorMode:R,fullStories:U,setFullStories:F,story:T,wanted:!0}),(0,e.jsx)(a.wn,{fill:!0,scrollable:!0,title:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.In,{name:"briefcase",mr:"0.5rem"}),"\u041E\u0442\u043A\u0440\u044B\u0442\u044B\u0435 \u0432\u0430\u043A\u0430\u043D\u0441\u0438\u0438"]}),buttons:(0,e.jsx)(a.az,{mt:"0.25rem",color:"label",children:"\u0420\u0430\u0431\u043E\u0442\u0430\u0439\u0442\u0435 \u0440\u0430\u0434\u0438 \u043B\u0443\u0447\u0448\u0435\u0433\u043E \u0431\u0443\u0434\u0443\u0449\u0435\u0433\u043E \u0432 Nanotrasen"}),children:K>0?v.map(function($){return Object.assign({},_[$],{id:$,jobs:w[$]})}).filter(function($){return!!$&&$.jobs.length>0}).map(function($){return(0,e.jsx)(a.wn,{className:(0,s.Ly)(["Newscaster__jobCategory","Newscaster__jobCategory--"+$.id]),title:$.title,buttons:(0,e.jsx)(a.az,{mt:"0.25rem",color:"label",children:$.fluff_text}),children:$.jobs.map(function(W){return(0,e.jsxs)(a.az,{className:(0,s.Ly)(["Newscaster__jobOpening",!!W.is_command&&"Newscaster__jobOpening--command"]),children:["\u2022 ",W.title]},W.title)})},$.id)}):(0,e.jsxs)(a.az,{className:"Newscaster__emptyNotice",children:[(0,e.jsx)(a.In,{name:"times",size:3}),(0,e.jsx)("br",{}),"\u0412 \u043D\u0430\u0441\u0442\u043E\u044F\u0449\u0435\u0435 \u0432\u0440\u0435\u043C\u044F \u0441\u0432\u043E\u0431\u043E\u0434\u043D\u044B\u0445 \u0432\u0430\u043A\u0430\u043D\u0441\u0438\u0439."]})}),(0,e.jsxs)(a.wn,{height:"17%",children:['\u0418\u043D\u0442\u0435\u0440\u0435\u0441\u0443\u0435\u0442 \u0440\u0430\u0431\u043E\u0442\u0430 \u0432 \\"\u041D\u0430\u043D\u043E\u0442\u0440\u0435\u0439\u0437\u0435\u043D\\"?',(0,e.jsx)("br",{}),"\u0417\u0430\u043F\u0438\u0448\u0438\u0442\u0435\u0441\u044C \u043D\u0430 \u043B\u044E\u0431\u0443\u044E \u0438\u0437 \u0432\u044B\u0448\u0435\u0443\u043A\u0430\u0437\u0430\u043D\u043D\u044B\u0445 \u0434\u043E\u043B\u0436\u043D\u043E\u0441\u0442\u0435\u0439 \u043F\u0440\u044F\u043C\u043E \u0441\u0435\u0439\u0447\u0430\u0441 \u0432"," ",(0,e.jsx)("b",{children:"\u041E\u0444\u0438\u0441\u0435 \u0413\u043B\u0430\u0432\u044B \u041F\u0435\u0440\u0441\u043E\u043D\u0430\u043B\u0430!"}),(0,e.jsx)("br",{}),(0,e.jsx)(a.az,{as:"small",color:"label",children:'\u041F\u043E\u0434\u043F\u0438\u0441\u044B\u0432\u0430\u044F\u0441\u044C \u043D\u0430 \u0440\u0430\u0431\u043E\u0442\u0443 \u0432 \\"\u041D\u0430\u043D\u043E\u0442\u0440\u0435\u0439\u0437\u0435\u043D\\", \u0432\u044B \u0441\u043E\u0433\u043B\u0430\u0448\u0430\u0435\u0442\u0435\u0441\u044C \u043F\u0435\u0440\u0435\u0434\u0430\u0442\u044C \u0441\u0432\u043E\u044E \u0434\u0443\u0448\u0443 \u0432 \u043E\u0442\u0434\u0435\u043B \u043B\u043E\u044F\u043B\u044C\u043D\u043E\u0441\u0442\u0438 \u0432\u0435\u0437\u0434\u0435\u0441\u0443\u0449\u0435\u0433\u043E \u0438 \u043F\u043E\u043B\u0435\u0437\u043D\u043E\u0433\u043E \u043D\u0430\u0431\u043B\u044E\u0434\u0430\u0442\u0435\u043B\u044F \u0437\u0430 \u0447\u0435\u043B\u043E\u0432\u0435\u0447\u0435\u0441\u0442\u0432\u043E\u043C.'})]})]})},p=function(M){var B=(0,n.Oc)(),w=B.act,T=B.data,K=M.story,R=M.wanted,U=R===void 0?!1:R,F=M.censorMode,$=M.fullStories,W=M.setFullStories;return(0,e.jsx)(a.wn,{className:(0,s.Ly)(["Newscaster__story",U&&"Newscaster__story--wanted"]),title:(0,e.jsxs)(e.Fragment,{children:[U&&(0,e.jsx)(a.In,{name:"exclamation-circle",mr:"0.5rem"}),K.censor_flags&2&&"[\u041E\u0422\u0420\u0415\u0414\u0410\u041A\u0422\u0418\u0420\u041E\u0412\u0410\u041D\u041E]"||K.title||"News from "+K.author]}),buttons:(0,e.jsx)(a.az,{mt:"0.25rem",children:(0,e.jsxs)(a.az,{color:"label",children:[!U&&F&&(0,e.jsx)(a.az,{inline:!0,children:(0,e.jsx)(a.$n,{disabled:!!K.admin_locked&&!T.is_admin,icon:K.censor_flags&2?"comment":"ban",backgroundColor:!(K.censor_flags&2)&&"red",mr:"0.5rem",mt:"-0.25rem",tooltip:K.censor_flags&2?"\u0420\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u0442\u044C":"\u0417\u0430\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u0442\u044C",onClick:function(){return w("censor_story",{uid:K.uid})}})}),(0,e.jsxs)(a.az,{inline:!0,children:[(0,e.jsx)(a.In,{name:"user"})," ",K.author," |\xA0",!U&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.In,{name:"eye"})," ",K.view_count.toLocaleString()," ","|\xA0"]}),(0,e.jsx)(a.In,{name:"clock"})," ",(0,O.fF)(K.publish_time,T.world_time)]})]})}),children:(0,e.jsx)(a.az,{children:K.censor_flags&2?"[\u041E\u0422\u0420\u0415\u0414\u0410\u041A\u0422\u0418\u0420\u041E\u0412\u0410\u041D\u041E]":(0,e.jsxs)(e.Fragment,{children:[!!K.has_photo&&(0,e.jsx)(j,{name:"story_photo_"+K.uid+".png",style:{float:"right",marginLeft:"0.5rem"}}),(K.body_short||K.body).split(` +`+z.stack}return{value:i,source:o,stack:L,digest:null}}function ms(i,o,E){return{value:i,source:null,stack:E??null,digest:o??null}}function xs(i,o){try{console.error(o.value)}catch(E){setTimeout(function(){throw E})}}var Ju=typeof WeakMap=="function"?WeakMap:Map;function Lc(i,o,E){E=oo(-1,E),E.tag=3,E.payload={element:null};var A=o.value;return E.callback=function(){Cl||(Cl=!0,Ss=A),xs(i,o)},E}function Rc(i,o,E){E=oo(-1,E),E.tag=3;var A=i.type.getDerivedStateFromError;if(typeof A=="function"){var L=o.value;E.payload=function(){return A(L)},E.callback=function(){xs(i,o)}}var z=i.stateNode;return z!==null&&typeof z.componentDidCatch=="function"&&(E.callback=function(){xs(i,o),typeof A!="function"&&(Bo===null?Bo=new Set([this]):Bo.add(this));var ne=o.stack;this.componentDidCatch(o.value,{componentStack:ne!==null?ne:""})}),E}function Kc(i,o,E){var A=i.pingCache;if(A===null){A=i.pingCache=new Ju;var L=new Set;A.set(o,L)}else L=A.get(o),L===void 0&&(L=new Set,A.set(o,L));L.has(E)||(L.add(E),i=id.bind(null,i,o,E),o.then(i,i))}function Uc(i){do{var o;if((o=i.tag===13)&&(o=i.memoizedState,o=o!==null?o.dehydrated!==null:!0),o)return i;i=i.return}while(i!==null);return null}function zc(i,o,E,A,L){return(i.mode&1)===0?(i===o?i.flags|=65536:(i.flags|=128,E.flags|=131072,E.flags&=-52805,E.tag===1&&(E.alternate===null?E.tag=17:(o=oo(-1,1),o.tag=2,Do(E,o,1))),E.lanes|=1),i):(i.flags|=65536,i.lanes=L,i)}var Fu=I.ReactCurrentOwner,Ur=!1;function Pr(i,o,E,A){o.child=i===null?ac(o,null,E,A):_a(o,i.child,E,A)}function Nc(i,o,E,A,L){E=E.render;var z=o.ref;return ja(o,L),A=as(i,o,E,A,z,L),E=ls(),i!==null&&!Ur?(o.updateQueue=i.updateQueue,o.flags&=-2053,i.lanes&=~L,ao(i,o,L)):(bt&&E&&$l(o),o.flags|=1,Pr(i,o,A,L),o.child)}function Wc(i,o,E,A,L){if(i===null){var z=E.type;return typeof z=="function"&&!Rs(z)&&z.defaultProps===void 0&&E.compare===null&&E.defaultProps===void 0?(o.tag=15,o.type=z,$c(i,o,z,A,L)):(i=Pl(E.type,null,A,o,o.mode,L),i.ref=o.ref,i.return=o,o.child=i)}if(z=i.child,(i.lanes&L)===0){var ne=z.memoizedProps;if(E=E.compare,E=E!==null?E:Dt,E(ne,A)&&i.ref===o.ref)return ao(i,o,L)}return o.flags|=1,i=ko(z,A),i.ref=o.ref,i.return=o,o.child=i}function $c(i,o,E,A,L){if(i!==null){var z=i.memoizedProps;if(Dt(z,A)&&i.ref===o.ref)if(Ur=!1,o.pendingProps=A=z,(i.lanes&L)!==0)(i.flags&131072)!==0&&(Ur=!0);else return o.lanes=i.lanes,ao(i,o,L)}return vs(i,o,E,A,L)}function Jc(i,o,E){var A=o.pendingProps,L=A.children,z=i!==null?i.memoizedState:null;if(A.mode==="hidden")if((o.mode&1)===0)o.memoizedState={baseLanes:0,cachePool:null,transitions:null},yt(Ia,Gr),Gr|=E;else{if((E&1073741824)===0)return i=z!==null?z.baseLanes|E:E,o.lanes=o.childLanes=1073741824,o.memoizedState={baseLanes:i,cachePool:null,transitions:null},o.updateQueue=null,yt(Ia,Gr),Gr|=i,null;o.memoizedState={baseLanes:0,cachePool:null,transitions:null},A=z!==null?z.baseLanes:E,yt(Ia,Gr),Gr|=A}else z!==null?(A=z.baseLanes|E,o.memoizedState=null):A=E,yt(Ia,Gr),Gr|=A;return Pr(i,o,L,E),o.child}function Fc(i,o){var E=o.ref;(i===null&&E!==null||i!==null&&i.ref!==E)&&(o.flags|=512,o.flags|=2097152)}function vs(i,o,E,A,L){var z=Kr(E)?$o:xr.current;return z=ma(o,z),ja(o,L),E=as(i,o,E,A,z,L),A=ls(),i!==null&&!Ur?(o.updateQueue=i.updateQueue,o.flags&=-2053,i.lanes&=~L,ao(i,o,L)):(bt&&A&&$l(o),o.flags|=1,Pr(i,o,E,L),o.child)}function Vc(i,o,E,A,L){if(Kr(E)){var z=!0;Za(o)}else z=!1;if(ja(o,L),o.stateNode===null)vl(i,o),Tc(o,E,A),fs(o,E,A,L),A=!0;else if(i===null){var ne=o.stateNode,ce=o.memoizedProps;ne.props=ce;var _e=ne.context,be=E.contextType;(typeof be>"u"?"undefined":s(be))==="object"&&be!==null?be=ui(be):(be=Kr(E)?$o:xr.current,be=ma(o,be));var we=E.getDerivedStateFromProps,$e=typeof we=="function"||typeof ne.getSnapshotBeforeUpdate=="function";$e||typeof ne.UNSAFE_componentWillReceiveProps!="function"&&typeof ne.componentWillReceiveProps!="function"||(ce!==A||_e!==be)&&kc(o,ne,A,be),Mo=!1;var Ne=o.memoizedState;ne.state=Ne,ll(o,A,ne,L),_e=o.memoizedState,ce!==A||Ne!==_e||Rr.current||Mo?(typeof we=="function"&&(hs(o,E,we,A),_e=o.memoizedState),(ce=Mo||Ac(o,E,ce,A,Ne,_e,be))?($e||typeof ne.UNSAFE_componentWillMount!="function"&&typeof ne.componentWillMount!="function"||(typeof ne.componentWillMount=="function"&&ne.componentWillMount(),typeof ne.UNSAFE_componentWillMount=="function"&&ne.UNSAFE_componentWillMount()),typeof ne.componentDidMount=="function"&&(o.flags|=4194308)):(typeof ne.componentDidMount=="function"&&(o.flags|=4194308),o.memoizedProps=A,o.memoizedState=_e),ne.props=A,ne.state=_e,ne.context=be,A=ce):(typeof ne.componentDidMount=="function"&&(o.flags|=4194308),A=!1)}else{ne=o.stateNode,sc(i,o),ce=o.memoizedProps,be=o.type===o.elementType?ce:Pi(o.type,ce),ne.props=be,$e=o.pendingProps,Ne=ne.context,_e=E.contextType,(typeof _e>"u"?"undefined":s(_e))==="object"&&_e!==null?_e=ui(_e):(_e=Kr(E)?$o:xr.current,_e=ma(o,_e));var dn=E.getDerivedStateFromProps;(we=typeof dn=="function"||typeof ne.getSnapshotBeforeUpdate=="function")||typeof ne.UNSAFE_componentWillReceiveProps!="function"&&typeof ne.componentWillReceiveProps!="function"||(ce!==$e||Ne!==_e)&&kc(o,ne,A,_e),Mo=!1,Ne=o.memoizedState,ne.state=Ne,ll(o,A,ne,L);var _n=o.memoizedState;ce!==$e||Ne!==_n||Rr.current||Mo?(typeof dn=="function"&&(hs(o,E,dn,A),_n=o.memoizedState),(be=Mo||Ac(o,E,be,A,Ne,_n,_e)||!1)?(we||typeof ne.UNSAFE_componentWillUpdate!="function"&&typeof ne.componentWillUpdate!="function"||(typeof ne.componentWillUpdate=="function"&&ne.componentWillUpdate(A,_n,_e),typeof ne.UNSAFE_componentWillUpdate=="function"&&ne.UNSAFE_componentWillUpdate(A,_n,_e)),typeof ne.componentDidUpdate=="function"&&(o.flags|=4),typeof ne.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof ne.componentDidUpdate!="function"||ce===i.memoizedProps&&Ne===i.memoizedState||(o.flags|=4),typeof ne.getSnapshotBeforeUpdate!="function"||ce===i.memoizedProps&&Ne===i.memoizedState||(o.flags|=1024),o.memoizedProps=A,o.memoizedState=_n),ne.props=A,ne.state=_n,ne.context=_e,A=be):(typeof ne.componentDidUpdate!="function"||ce===i.memoizedProps&&Ne===i.memoizedState||(o.flags|=4),typeof ne.getSnapshotBeforeUpdate!="function"||ce===i.memoizedProps&&Ne===i.memoizedState||(o.flags|=1024),A=!1)}return ps(i,o,E,A,z,L)}function ps(i,o,E,A,L,z){Fc(i,o);var ne=(o.flags&128)!==0;if(!A&&!ne)return L&&Qs(o,E,!1),ao(i,o,z);A=o.stateNode,Fu.current=o;var ce=ne&&typeof E.getDerivedStateFromError!="function"?null:A.render();return o.flags|=1,i!==null&&ne?(o.child=_a(o,i.child,null,z),o.child=_a(o,null,ce,z)):Pr(i,o,ce,z),o.memoizedState=A.state,L&&Qs(o,E,!0),o.child}function Xc(i){var o=i.stateNode;o.pendingContext?Gs(i,o.pendingContext,o.pendingContext!==o.context):o.context&&Gs(i,o.context,!1),es(i,o.containerInfo)}function Hc(i,o,E,A,L){return pa(),Xl(L),o.flags|=256,Pr(i,o,E,A),o.child}var _s={dehydrated:null,treeContext:null,retryLane:0};function gs(i){return{baseLanes:i,cachePool:null,transitions:null}}function Gc(i,o,E){var A=o.pendingProps,L=St.current,z=!1,ne=(o.flags&128)!==0,ce;if((ce=ne)||(ce=i!==null&&i.memoizedState===null?!1:(L&2)!==0),ce?(z=!0,o.flags&=-129):(i===null||i.memoizedState!==null)&&(L|=1),yt(St,L&1),i===null)return Vl(o),i=o.memoizedState,i!==null&&(i=i.dehydrated,i!==null)?((o.mode&1)===0?o.lanes=1:i.data==="$!"?o.lanes=8:o.lanes=1073741824,null):(ne=A.children,i=A.fallback,z?(A=o.mode,z=o.child,ne={mode:"hidden",children:ne},(A&1)===0&&z!==null?(z.childLanes=0,z.pendingProps=ne):z=Ml(ne,A,0,null),i=qo(i,A,E,null),z.return=o,i.return=o,z.sibling=i,o.child=z,o.child.memoizedState=gs(E),o.memoizedState=_s,i):js(o,ne));if(L=i.memoizedState,L!==null&&(ce=L.dehydrated,ce!==null))return Vu(i,o,ne,A,ce,L,E);if(z){z=A.fallback,ne=o.mode,L=i.child,ce=L.sibling;var _e={mode:"hidden",children:A.children};return(ne&1)===0&&o.child!==L?(A=o.child,A.childLanes=0,A.pendingProps=_e,o.deletions=null):(A=ko(L,_e),A.subtreeFlags=L.subtreeFlags&14680064),ce!==null?z=ko(ce,z):(z=qo(z,ne,E,null),z.flags|=2),z.return=o,A.return=o,A.sibling=z,o.child=A,A=z,z=o.child,ne=i.child.memoizedState,ne=ne===null?gs(E):{baseLanes:ne.baseLanes|E,cachePool:null,transitions:ne.transitions},z.memoizedState=ne,z.childLanes=i.childLanes&~E,o.memoizedState=_s,A}return z=i.child,i=z.sibling,A=ko(z,{mode:"visible",children:A.children}),(o.mode&1)===0&&(A.lanes=E),A.return=o,A.sibling=null,i!==null&&(E=o.deletions,E===null?(o.deletions=[i],o.flags|=16):E.push(i)),o.child=A,o.memoizedState=null,A}function js(i,o){return o=Ml({mode:"visible",children:o},i.mode,0,null),o.return=i,i.child=o}function xl(i,o,E,A){return A!==null&&Xl(A),_a(o,i.child,null,E),i=js(o,o.pendingProps.children),i.flags|=2,o.memoizedState=null,i}function Vu(i,o,E,A,L,z,ne){if(E)return o.flags&256?(o.flags&=-257,A=ms(Error(a(422))),xl(i,o,ne,A)):o.memoizedState!==null?(o.child=i.child,o.flags|=128,null):(z=A.fallback,L=o.mode,A=Ml({mode:"visible",children:A.children},L,0,null),z=qo(z,L,ne,null),z.flags|=2,A.return=o,z.return=o,A.sibling=z,o.child=A,(o.mode&1)!==0&&_a(o,i.child,null,ne),o.child.memoizedState=gs(ne),o.memoizedState=_s,z);if((o.mode&1)===0)return xl(i,o,ne,null);if(L.data==="$!"){if(A=L.nextSibling&&L.nextSibling.dataset,A)var ce=A.dgst;return A=ce,z=Error(a(419)),A=ms(z,A,void 0),xl(i,o,ne,A)}if(ce=(ne&i.childLanes)!==0,Ur||ce){if(A=qt,A!==null){switch(ne&-ne){case 4:L=2;break;case 16:L=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:L=32;break;case 536870912:L=268435456;break;default:L=0}L=(L&(A.suspendedLanes|ne))!==0?0:L,L!==0&&L!==z.retryLane&&(z.retryLane=L,io(i,L),Si(A,i,L,-1))}return Ls(),A=ms(Error(a(421))),xl(i,o,ne,A)}return L.data==="$?"?(o.flags|=128,o.child=i.child,o=od.bind(null,i),L._reactRetry=o,null):(i=z.treeContext,Hr=Io(L.nextSibling),Xr=o,bt=!0,bi=null,i!==null&&(si[ci++]=to,si[ci++]=ro,si[ci++]=Jo,to=i.id,ro=i.overflow,Jo=o),o=js(o,A.children),o.flags|=4096,o)}function Yc(i,o,E){i.lanes|=o;var A=i.alternate;A!==null&&(A.lanes|=o),Ql(i.return,o,E)}function Cs(i,o,E,A,L){var z=i.memoizedState;z===null?i.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:A,tail:E,tailMode:L}:(z.isBackwards=o,z.rendering=null,z.renderingStartTime=0,z.last=A,z.tail=E,z.tailMode=L)}function Qc(i,o,E){var A=o.pendingProps,L=A.revealOrder,z=A.tail;if(Pr(i,o,A.children,E),A=St.current,(A&2)!==0)A=A&1|2,o.flags|=128;else{if(i!==null&&(i.flags&128)!==0)e:for(i=o.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&Yc(i,E,o);else if(i.tag===19)Yc(i,E,o);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===o)break e;for(;i.sibling===null;){if(i.return===null||i.return===o)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}A&=1}if(yt(St,A),(o.mode&1)===0)o.memoizedState=null;else switch(L){case"forwards":for(E=o.child,L=null;E!==null;)i=E.alternate,i!==null&&sl(i)===null&&(L=E),E=E.sibling;E=L,E===null?(L=o.child,o.child=null):(L=E.sibling,E.sibling=null),Cs(o,!1,L,E,z);break;case"backwards":for(E=null,L=o.child,o.child=null;L!==null;){if(i=L.alternate,i!==null&&sl(i)===null){o.child=L;break}i=L.sibling,L.sibling=E,E=L,L=i}Cs(o,!0,E,null,z);break;case"together":Cs(o,!1,null,null,void 0);break;default:o.memoizedState=null}return o.child}function vl(i,o){(o.mode&1)===0&&i!==null&&(i.alternate=null,o.alternate=null,o.flags|=2)}function ao(i,o,E){if(i!==null&&(o.dependencies=i.dependencies),Go|=o.lanes,(E&o.childLanes)===0)return null;if(i!==null&&o.child!==i.child)throw Error(a(153));if(o.child!==null){for(i=o.child,E=ko(i,i.pendingProps),o.child=E,E.return=o;i.sibling!==null;)i=i.sibling,E=E.sibling=ko(i,i.pendingProps),E.return=o;E.sibling=null}return o.child}function Xu(i,o,E){switch(o.tag){case 3:Xc(o),pa();break;case 5:dc(o);break;case 1:Kr(o.type)&&Za(o);break;case 4:es(o,o.stateNode.containerInfo);break;case 10:var A=o.type._context,L=o.memoizedProps.value;yt(il,A._currentValue),A._currentValue=L;break;case 13:if(A=o.memoizedState,A!==null)return A.dehydrated!==null?(yt(St,St.current&1),o.flags|=128,null):(E&o.child.childLanes)!==0?Gc(i,o,E):(yt(St,St.current&1),i=ao(i,o,E),i!==null?i.sibling:null);yt(St,St.current&1);break;case 19:if(A=(E&o.childLanes)!==0,(i.flags&128)!==0){if(A)return Qc(i,o,E);o.flags|=128}if(L=o.memoizedState,L!==null&&(L.rendering=null,L.tail=null,L.lastEffect=null),yt(St,St.current),A)break;return null;case 22:case 23:return o.lanes=0,Jc(i,o,E)}return ao(i,o,E)}var Zc,ys,qc,eu;Zc=function(o,E){for(var A=E.child;A!==null;){if(A.tag===5||A.tag===6)o.appendChild(A.stateNode);else if(A.tag!==4&&A.child!==null){A.child.return=A,A=A.child;continue}if(A===E)break;for(;A.sibling===null;){if(A.return===null||A.return===E)return;A=A.return}A.sibling.return=A.return,A=A.sibling}},ys=function(){},qc=function(o,E,A,L){var z=o.memoizedProps;if(z!==L){o=E.stateNode,Xo(Ji.current);var ne=null;switch(A){case"input":z=fn(o,z),L=fn(o,L),ne=[];break;case"select":z=V({},z,{value:void 0}),L=V({},L,{value:void 0}),ne=[];break;case"textarea":z=_t(o,z),L=_t(o,L),ne=[];break;default:typeof z.onClick!="function"&&typeof L.onClick=="function"&&(o.onclick=Ga)}Dr(A,L);var ce;A=null;for(we in z)if(!L.hasOwnProperty(we)&&z.hasOwnProperty(we)&&z[we]!=null)if(we==="style"){var _e=z[we];for(ce in _e)_e.hasOwnProperty(ce)&&(A||(A={}),A[ce]="")}else we!=="dangerouslySetInnerHTML"&&we!=="children"&&we!=="suppressContentEditableWarning"&&we!=="suppressHydrationWarning"&&we!=="autoFocus"&&(O.hasOwnProperty(we)?ne||(ne=[]):(ne=ne||[]).push(we,null));for(we in L){var be=L[we];if(_e=z?.[we],L.hasOwnProperty(we)&&be!==_e&&(be!=null||_e!=null))if(we==="style")if(_e){for(ce in _e)!_e.hasOwnProperty(ce)||be&&be.hasOwnProperty(ce)||(A||(A={}),A[ce]="");for(ce in be)be.hasOwnProperty(ce)&&_e[ce]!==be[ce]&&(A||(A={}),A[ce]=be[ce])}else A||(ne||(ne=[]),ne.push(we,A)),A=be;else we==="dangerouslySetInnerHTML"?(be=be?be.__html:void 0,_e=_e?_e.__html:void 0,be!=null&&_e!==be&&(ne=ne||[]).push(we,be)):we==="children"?typeof be!="string"&&typeof be!="number"||(ne=ne||[]).push(we,""+be):we!=="suppressContentEditableWarning"&&we!=="suppressHydrationWarning"&&(O.hasOwnProperty(we)?(be!=null&&we==="onScroll"&&Vn("scroll",o),ne||_e===be||(ne=[])):(ne=ne||[]).push(we,be))}A&&(ne=ne||[]).push("style",A);var we=ne;(E.updateQueue=we)&&(E.flags|=4)}},eu=function(o,E,A,L){A!==L&&(E.flags|=4)};function za(i,o){if(!bt)switch(i.tailMode){case"hidden":o=i.tail;for(var E=null;o!==null;)o.alternate!==null&&(E=o),o=o.sibling;E===null?i.tail=null:E.sibling=null;break;case"collapsed":E=i.tail;for(var A=null;E!==null;)E.alternate!==null&&(A=E),E=E.sibling;A===null?o||i.tail===null?i.tail=null:i.tail.sibling=null:A.sibling=null}}function pr(i){var o=i.alternate!==null&&i.alternate.child===i.child,E=0,A=0;if(o)for(var L=i.child;L!==null;)E|=L.lanes|L.childLanes,A|=L.subtreeFlags&14680064,A|=L.flags&14680064,L.return=i,L=L.sibling;else for(L=i.child;L!==null;)E|=L.lanes|L.childLanes,A|=L.subtreeFlags,A|=L.flags,L.return=i,L=L.sibling;return i.subtreeFlags|=A,i.childLanes=E,o}function Hu(i,o,E){var A=o.pendingProps;switch(Jl(o),o.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return pr(o),null;case 1:return Kr(o.type)&&Qa(),pr(o),null;case 3:return A=o.stateNode,Ca(),It(Rr),It(xr),rs(),A.pendingContext&&(A.context=A.pendingContext,A.pendingContext=null),(i===null||i.child===null)&&(tl(o)?o.flags|=4:i===null||i.memoizedState.isDehydrated&&(o.flags&256)===0||(o.flags|=1024,bi!==null&&(As(bi),bi=null))),ys(i,o),pr(o),null;case 5:ns(o);var L=Xo(ka.current);if(E=o.type,i!==null&&o.stateNode!=null)qc(i,o,E,A,L),i.ref!==o.ref&&(o.flags|=512,o.flags|=2097152);else{if(!A){if(o.stateNode===null)throw Error(a(166));return pr(o),null}if(i=Xo(Ji.current),tl(o)){A=o.stateNode,E=o.type;var z=o.memoizedProps;switch(A[$i]=o,A[Sa]=z,i=(o.mode&1)!==0,E){case"dialog":Vn("cancel",A),Vn("close",A);break;case"iframe":case"object":case"embed":Vn("load",A);break;case"video":case"audio":for(L=0;L<\/script>",i=i.removeChild(i.firstChild)):typeof A.is=="string"?i=ne.createElement(E,{is:A.is}):(i=ne.createElement(E),E==="select"&&(ne=i,A.multiple?ne.multiple=!0:A.size&&(ne.size=A.size))):i=ne.createElementNS(i,E),i[$i]=o,i[Sa]=A,Zc(i,o,!1,!1),o.stateNode=i;e:{switch(ne=Yr(E,A),E){case"dialog":Vn("cancel",i),Vn("close",i),L=A;break;case"iframe":case"object":case"embed":Vn("load",i),L=A;break;case"video":case"audio":for(L=0;LOa&&(o.flags|=128,A=!0,za(z,!1),o.lanes=4194304)}else{if(!A)if(i=sl(ne),i!==null){if(o.flags|=128,A=!0,E=i.updateQueue,E!==null&&(o.updateQueue=E,o.flags|=4),za(z,!0),z.tail===null&&z.tailMode==="hidden"&&!ne.alternate&&!bt)return pr(o),null}else 2*dt()-z.renderingStartTime>Oa&&E!==1073741824&&(o.flags|=128,A=!0,za(z,!1),o.lanes=4194304);z.isBackwards?(ne.sibling=o.child,o.child=ne):(E=z.last,E!==null?E.sibling=ne:o.child=ne,z.last=ne)}return z.tail!==null?(o=z.tail,z.rendering=o,z.tail=o.sibling,z.renderingStartTime=dt(),o.sibling=null,E=St.current,yt(St,A?E&1|2:E&1),o):(pr(o),null);case 22:case 23:return ks(),A=o.memoizedState!==null,i!==null&&i.memoizedState!==null!==A&&(o.flags|=8192),A&&(o.mode&1)!==0?(Gr&1073741824)!==0&&(pr(o),o.subtreeFlags&6&&(o.flags|=8192)):pr(o),null;case 24:return null;case 25:return null}throw Error(a(156,o.tag))}function Gu(i,o){switch(Jl(o),o.tag){case 1:return Kr(o.type)&&Qa(),i=o.flags,i&65536?(o.flags=i&-65537|128,o):null;case 3:return Ca(),It(Rr),It(xr),rs(),i=o.flags,(i&65536)!==0&&(i&128)===0?(o.flags=i&-65537|128,o):null;case 5:return ns(o),null;case 13:if(It(St),i=o.memoizedState,i!==null&&i.dehydrated!==null){if(o.alternate===null)throw Error(a(340));pa()}return i=o.flags,i&65536?(o.flags=i&-65537|128,o):null;case 19:return It(St),null;case 4:return Ca(),null;case 10:return Yl(o.type._context),null;case 22:case 23:return ks(),null;case 24:return null;default:return null}}var pl=!1,_r=!1,Yu=typeof WeakSet=="function"?WeakSet:Set,mn=null;function Ea(i,o){var E=i.ref;if(E!==null)if(typeof E=="function")try{E(null)}catch(A){kt(i,o,A)}else E.current=null}function Es(i,o,E){try{E()}catch(A){kt(i,o,A)}}var nu=!1;function Qu(i,o){if(kl=dr,i=$t(),or(i)){if("selectionStart"in i)var E={start:i.selectionStart,end:i.selectionEnd};else e:{E=(E=i.ownerDocument)&&E.defaultView||window;var A=E.getSelection&&E.getSelection();if(A&&A.rangeCount!==0){E=A.anchorNode;var L=A.anchorOffset,z=A.focusNode;A=A.focusOffset;try{E.nodeType,z.nodeType}catch{E=null;break e}var ne=0,ce=-1,_e=-1,be=0,we=0,$e=i,Ne=null;n:for(;;){for(var dn;$e!==E||L!==0&&$e.nodeType!==3||(ce=ne+L),$e!==z||A!==0&&$e.nodeType!==3||(_e=ne+A),$e.nodeType===3&&(ne+=$e.nodeValue.length),(dn=$e.firstChild)!==null;)Ne=$e,$e=dn;for(;;){if($e===i)break n;if(Ne===E&&++be===L&&(ce=ne),Ne===z&&++we===A&&(_e=ne),(dn=$e.nextSibling)!==null)break;$e=Ne,Ne=$e.parentNode}$e=dn}E=ce===-1||_e===-1?null:{start:ce,end:_e}}else E=null}E=E||{start:0,end:0}}else E=null;for(Ll={focusedElem:i,selectionRange:E},dr=!1,mn=o;mn!==null;)if(o=mn,i=o.child,(o.subtreeFlags&1028)!==0&&i!==null)i.return=o,mn=i;else for(;mn!==null;){o=mn;try{var _n=o.alternate;if((o.flags&1024)!==0)switch(o.tag){case 0:case 11:case 15:break;case 1:if(_n!==null){var gn=_n.memoizedProps,zt=_n.memoizedState,ye=o.stateNode,je=ye.getSnapshotBeforeUpdate(o.elementType===o.type?gn:Pi(o.type,gn),zt);ye.__reactInternalSnapshotBeforeUpdate=je}break;case 3:var Ee=o.stateNode.containerInfo;Ee.nodeType===1?Ee.textContent="":Ee.nodeType===9&&Ee.documentElement&&Ee.removeChild(Ee.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(a(163))}}catch(Qe){kt(o,o.return,Qe)}if(i=o.sibling,i!==null){i.return=o.return,mn=i;break}mn=o.return}return _n=nu,nu=!1,_n}function Na(i,o,E){var A=o.updateQueue;if(A=A!==null?A.lastEffect:null,A!==null){var L=A=A.next;do{if((L.tag&i)===i){var z=L.destroy;L.destroy=void 0,z!==void 0&&Es(o,E,z)}L=L.next}while(L!==A)}}function _l(i,o){if(o=o.updateQueue,o=o!==null?o.lastEffect:null,o!==null){var E=o=o.next;do{if((E.tag&i)===i){var A=E.create;E.destroy=A()}E=E.next}while(E!==o)}}function Is(i){var o=i.ref;if(o!==null){var E=i.stateNode;switch(i.tag){case 5:i=E;break;default:i=E}typeof o=="function"?o(i):o.current=i}}function tu(i){var o=i.alternate;o!==null&&(i.alternate=null,tu(o)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(o=i.stateNode,o!==null&&(delete o[$i],delete o[Sa],delete o[zl],delete o[Au],delete o[Tu])),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}function ru(i){return i.tag===5||i.tag===3||i.tag===4}function iu(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||ru(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function Os(i,o,E){var A=i.tag;if(A===5||A===6)i=i.stateNode,o?E.nodeType===8?E.parentNode.insertBefore(i,o):E.insertBefore(i,o):(E.nodeType===8?(o=E.parentNode,o.insertBefore(i,E)):(o=E,o.appendChild(i)),E=E._reactRootContainer,E!=null||o.onclick!==null||(o.onclick=Ga));else if(A!==4&&(i=i.child,i!==null))for(Os(i,o,E),i=i.sibling;i!==null;)Os(i,o,E),i=i.sibling}function bs(i,o,E){var A=i.tag;if(A===5||A===6)i=i.stateNode,o?E.insertBefore(i,o):E.appendChild(i);else if(A!==4&&(i=i.child,i!==null))for(bs(i,o,E),i=i.sibling;i!==null;)bs(i,o,E),i=i.sibling}var ar=null,Mi=!1;function So(i,o,E){for(E=E.child;E!==null;)ou(i,o,E),E=E.sibling}function ou(i,o,E){if(se&&typeof se.onCommitFiberUnmount=="function")try{se.onCommitFiberUnmount(ue,E)}catch{}switch(E.tag){case 5:_r||Ea(E,o);case 6:var A=ar,L=Mi;ar=null,So(i,o,E),ar=A,Mi=L,ar!==null&&(Mi?(i=ar,E=E.stateNode,i.nodeType===8?i.parentNode.removeChild(E):i.removeChild(E)):ar.removeChild(E.stateNode));break;case 18:ar!==null&&(Mi?(i=ar,E=E.stateNode,i.nodeType===8?Ul(i.parentNode,E):i.nodeType===1&&Ul(i,E),ur(i)):Ul(ar,E.stateNode));break;case 4:A=ar,L=Mi,ar=E.stateNode.containerInfo,Mi=!0,So(i,o,E),ar=A,Mi=L;break;case 0:case 11:case 14:case 15:if(!_r&&(A=E.updateQueue,A!==null&&(A=A.lastEffect,A!==null))){L=A=A.next;do{var z=L,ne=z.destroy;z=z.tag,ne!==void 0&&((z&2)!==0||(z&4)!==0)&&Es(E,o,ne),L=L.next}while(L!==A)}So(i,o,E);break;case 1:if(!_r&&(Ea(E,o),A=E.stateNode,typeof A.componentWillUnmount=="function"))try{A.props=E.memoizedProps,A.state=E.memoizedState,A.componentWillUnmount()}catch(ce){kt(E,o,ce)}So(i,o,E);break;case 21:So(i,o,E);break;case 22:E.mode&1?(_r=(A=_r)||E.memoizedState!==null,So(i,o,E),_r=A):So(i,o,E);break;default:So(i,o,E)}}function au(i){var o=i.updateQueue;if(o!==null){i.updateQueue=null;var E=i.stateNode;E===null&&(E=i.stateNode=new Yu),o.forEach(function(A){var L=ad.bind(null,i,A);E.has(A)||(E.add(A),A.then(L,L))})}}function Di(i,o){var E=o.deletions;if(E!==null)for(var A=0;AL&&(L=ne),A&=~z}if(A=L,A=dt()-A,A=(120>A?120:480>A?480:1080>A?1080:1920>A?1920:3e3>A?3e3:4320>A?4320:1960*qu(A/1960))-A,10"u"?"undefined":s(_e))==="object"&&typeof _e.then=="function"){var be=_e,we=ce,$e=we.tag;if((we.mode&1)===0&&($e===0||$e===11||$e===15)){var Ne=we.alternate;Ne?(we.updateQueue=Ne.updateQueue,we.memoizedState=Ne.memoizedState,we.lanes=Ne.lanes):(we.updateQueue=null,we.memoizedState=null)}var dn=Uc(ne);if(dn!==null){dn.flags&=-257,zc(dn,ne,ce,z,o),dn.mode&1&&Kc(z,be,o),o=dn,_e=be;var _n=o.updateQueue;if(_n===null){var gn=new Set;gn.add(_e),o.updateQueue=gn}else _n.add(_e);break e}else{if((o&1)===0){Kc(z,be,o),Ls();break e}_e=Error(a(426))}}else if(bt&&ce.mode&1){var zt=Uc(ne);if(zt!==null){(zt.flags&65536)===0&&(zt.flags|=256),zc(zt,ne,ce,z,o),Xl(ya(_e,ce));break e}}z=_e=ya(_e,ce),Gt!==4&&(Gt=2),$a===null?$a=[z]:$a.push(z),z=ne;do{switch(z.tag){case 3:z.flags|=65536,o&=-o,z.lanes|=o;var ye=Lc(z,_e,o);cc(z,ye);break e;case 1:ce=_e;var je=z.type,Ee=z.stateNode;if((z.flags&128)===0&&(typeof je.getDerivedStateFromError=="function"||Ee!==null&&typeof Ee.componentDidCatch=="function"&&(Bo===null||!Bo.has(Ee)))){z.flags|=65536,o&=-o,z.lanes|=o;var Qe=Rc(z,ce,o);cc(z,Qe);break e}}z=z.return}while(z!==null)}pu(E)}catch(jn){o=jn,Jt===E&&E!==null&&(Jt=E=E.return);continue}break}while(!0)}function xu(){var i=gl.current;return gl.current=fl,i===null?fl:i}function Ls(){(Gt===0||Gt===3||Gt===2)&&(Gt=4),qt===null||(Go&268435455)===0&&(jl&268435455)===0||To(qt,lr)}function bl(i,o){var E=rt;rt|=2;var A=xu();(qt!==i||lr!==o)&&(lo=null,Qo(i,o));do try{nd();break}catch(L){mu(i,L)}while(!0);if(Gl(),rt=E,gl.current=A,Jt!==null)throw Error(a(261));return qt=null,lr=0,Gt}function nd(){for(;Jt!==null;)vu(Jt)}function td(){for(;Jt!==null&&!Hi();)vu(Jt)}function vu(i){var o=ju(i.alternate,i,Gr);i.memoizedProps=i.pendingProps,o===null?pu(i):Jt=o,Ps.current=null}function pu(i){var o=i;do{var E=o.alternate;if(i=o.return,(o.flags&32768)===0){if(E=Hu(E,o,Gr),E!==null){Jt=E;return}}else{if(E=Gu(E,o),E!==null){E.flags&=32767,Jt=E;return}if(i!==null)i.flags|=32768,i.subtreeFlags=0,i.deletions=null;else{Gt=6,Jt=null;return}}if(o=o.sibling,o!==null){Jt=o;return}Jt=o=i}while(o!==null);Gt===0&&(Gt=5)}function Zo(i,o,E){var A=vn,L=hi.transition;try{hi.transition=null,vn=1,rd(i,o,E,A)}finally{hi.transition=L,vn=A}return null}function rd(i,o,E,A){do ba();while(wo!==null);if((rt&6)!==0)throw Error(a(327));E=i.finishedWork;var L=i.finishedLanes;if(E===null)return null;if(i.finishedWork=null,i.finishedLanes=0,E===i.current)throw Error(a(177));i.callbackNode=null,i.callbackPriority=0;var z=E.lanes|E.childLanes;if(qn(i,z),i===qt&&(Jt=qt=null,lr=0),(E.subtreeFlags&2064)===0&&(E.flags&2064)===0||yl||(yl=!0,Cu(Gi,function(){return ba(),null})),z=(E.flags&15990)!==0,(E.subtreeFlags&15990)!==0||z){z=hi.transition,hi.transition=null;var ne=vn;vn=1;var ce=rt;rt|=4,Ps.current=null,Qu(i,E),lu(E,i),yo(Ll),dr=!!kl,Ll=kl=null,i.current=E,Zu(E,i,L),ji(),rt=ce,vn=ne,hi.transition=z}else i.current=E;if(yl&&(yl=!1,wo=i,El=L),z=i.pendingLanes,z===0&&(Bo=null),ve(E.stateNode,A),Nr(i,dt()),o!==null)for(A=i.onRecoverableError,E=0;Ei?16:i,wo===null)var A=!1;else{if(i=wo,wo=null,El=0,(rt&6)!==0)throw Error(a(331));var L=rt;for(rt|=4,mn=i.current;mn!==null;){var z=mn,ne=z.child;if((mn.flags&16)!==0){var ce=z.deletions;if(ce!==null){for(var _e=0;_edt()-Ds?Qo(i,0):Ms|=E),Nr(i,o)}function gu(i,o){o===0&&((i.mode&1)===0?o=1:(o=Ge,Ge<<=1,(Ge&130023424)===0&&(Ge=4194304)));var E=Mr();i=io(i,o),i!==null&&(Je(i,o,E),Nr(i,E))}function od(i){var o=i.memoizedState,E=0;o!==null&&(E=o.retryLane),gu(i,E)}function ad(i,o){var E=0;switch(i.tag){case 13:var A=i.stateNode,L=i.memoizedState;L!==null&&(E=L.retryLane);break;case 19:A=i.stateNode;break;default:throw Error(a(314))}A!==null&&A.delete(o),gu(i,E)}var ju;ju=function(o,E,A){if(o!==null)if(o.memoizedProps!==E.pendingProps||Rr.current)Ur=!0;else{if((o.lanes&A)===0&&(E.flags&128)===0)return Ur=!1,Xu(o,E,A);Ur=(o.flags&131072)!==0}else Ur=!1,bt&&(E.flags&1048576)!==0&&qs(E,nl,E.index);switch(E.lanes=0,E.tag){case 2:var L=E.type;vl(o,E),o=E.pendingProps;var z=ma(E,xr.current);ja(E,A),z=as(null,E,L,o,z,A);var ne=ls();return E.flags|=1,(typeof z>"u"?"undefined":s(z))==="object"&&z!==null&&typeof z.render=="function"&&z.$$typeof===void 0?(E.tag=1,E.memoizedState=null,E.updateQueue=null,Kr(L)?(ne=!0,Za(E)):ne=!1,E.memoizedState=z.state!==null&&z.state!==void 0?z.state:null,ql(E),z.updater=ml,E.stateNode=z,z._reactInternals=E,fs(E,L,o,A),E=ps(null,E,L,!0,ne,A)):(E.tag=0,bt&&ne&&$l(E),Pr(null,E,z,A),E=E.child),E;case 16:L=E.elementType;e:{switch(vl(o,E),o=E.pendingProps,z=L._init,L=z(L._payload),E.type=L,z=E.tag=sd(L),o=Pi(L,o),z){case 0:E=vs(null,E,L,o,A);break e;case 1:E=Vc(null,E,L,o,A);break e;case 11:E=Nc(null,E,L,o,A);break e;case 14:E=Wc(null,E,L,Pi(L.type,o),A);break e}throw Error(a(306,L,""))}return E;case 0:return L=E.type,z=E.pendingProps,z=E.elementType===L?z:Pi(L,z),vs(o,E,L,z,A);case 1:return L=E.type,z=E.pendingProps,z=E.elementType===L?z:Pi(L,z),Vc(o,E,L,z,A);case 3:e:{if(Xc(E),o===null)throw Error(a(387));L=E.pendingProps,ne=E.memoizedState,z=ne.element,sc(o,E),ll(E,L,null,A);var ce=E.memoizedState;if(L=ce.element,ne.isDehydrated)if(ne={element:L,isDehydrated:!1,cache:ce.cache,pendingSuspenseBoundaries:ce.pendingSuspenseBoundaries,transitions:ce.transitions},E.updateQueue.baseState=ne,E.memoizedState=ne,E.flags&256){z=ya(Error(a(423)),E),E=Hc(o,E,L,A,z);break e}else if(L!==z){z=ya(Error(a(424)),E),E=Hc(o,E,L,A,z);break e}else for(Hr=Io(E.stateNode.containerInfo.firstChild),Xr=E,bt=!0,bi=null,A=ac(E,null,L,A),E.child=A;A;)A.flags=A.flags&-3|4096,A=A.sibling;else{if(pa(),L===z){E=ao(o,E,A);break e}Pr(o,E,L,A)}E=E.child}return E;case 5:return dc(E),o===null&&Vl(E),L=E.type,z=E.pendingProps,ne=o!==null?o.memoizedProps:null,ce=z.children,Rl(L,z)?ce=null:ne!==null&&Rl(L,ne)&&(E.flags|=32),Fc(o,E),Pr(o,E,ce,A),E.child;case 6:return o===null&&Vl(E),null;case 13:return Gc(o,E,A);case 4:return es(E,E.stateNode.containerInfo),L=E.pendingProps,o===null?E.child=_a(E,null,L,A):Pr(o,E,L,A),E.child;case 11:return L=E.type,z=E.pendingProps,z=E.elementType===L?z:Pi(L,z),Nc(o,E,L,z,A);case 7:return Pr(o,E,E.pendingProps,A),E.child;case 8:return Pr(o,E,E.pendingProps.children,A),E.child;case 12:return Pr(o,E,E.pendingProps.children,A),E.child;case 10:e:{if(L=E.type._context,z=E.pendingProps,ne=E.memoizedProps,ce=z.value,yt(il,L._currentValue),L._currentValue=ce,ne!==null)if(st(ne.value,ce)){if(ne.children===z.children&&!Rr.current){E=ao(o,E,A);break e}}else for(ne=E.child,ne!==null&&(ne.return=E);ne!==null;){var _e=ne.dependencies;if(_e!==null){ce=ne.child;for(var be=_e.firstContext;be!==null;){if(be.context===L){if(ne.tag===1){be=oo(-1,A&-A),be.tag=2;var we=ne.updateQueue;if(we!==null){we=we.shared;var $e=we.pending;$e===null?be.next=be:(be.next=$e.next,$e.next=be),we.pending=be}}ne.lanes|=A,be=ne.alternate,be!==null&&(be.lanes|=A),Ql(ne.return,A,E),_e.lanes|=A;break}be=be.next}}else if(ne.tag===10)ce=ne.type===E.type?null:ne.child;else if(ne.tag===18){if(ce=ne.return,ce===null)throw Error(a(341));ce.lanes|=A,_e=ce.alternate,_e!==null&&(_e.lanes|=A),Ql(ce,A,E),ce=ne.sibling}else ce=ne.child;if(ce!==null)ce.return=ne;else for(ce=ne;ce!==null;){if(ce===E){ce=null;break}if(ne=ce.sibling,ne!==null){ne.return=ce.return,ce=ne;break}ce=ce.return}ne=ce}Pr(o,E,z.children,A),E=E.child}return E;case 9:return z=E.type,L=E.pendingProps.children,ja(E,A),z=ui(z),L=L(z),E.flags|=1,Pr(o,E,L,A),E.child;case 14:return L=E.type,z=Pi(L,E.pendingProps),z=Pi(L.type,z),Wc(o,E,L,z,A);case 15:return $c(o,E,E.type,E.pendingProps,A);case 17:return L=E.type,z=E.pendingProps,z=E.elementType===L?z:Pi(L,z),vl(o,E),E.tag=1,Kr(L)?(o=!0,Za(E)):o=!1,ja(E,A),Tc(E,L,z),fs(E,L,z,A),ps(null,E,L,!0,o,A);case 19:return Qc(o,E,A);case 22:return Jc(o,E,A)}throw Error(a(156,E.tag))};function Cu(i,o){return gi(i,o)}function ld(i,o,E,A){this.tag=i,this.key=E,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=A,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function fi(i,o,E,A){return new ld(i,o,E,A)}function Rs(i){return i=i.prototype,!(!i||!i.isReactComponent)}function sd(i){if(typeof i=="function")return Rs(i)?1:0;if(i!=null){if(i=i.$$typeof,i===U)return 11;if(i===W)return 14}return 2}function ko(i,o){var E=i.alternate;return E===null?(E=fi(i.tag,o,i.key,i.mode),E.elementType=i.elementType,E.type=i.type,E.stateNode=i.stateNode,E.alternate=i,i.alternate=E):(E.pendingProps=o,E.type=i.type,E.flags=0,E.subtreeFlags=0,E.deletions=null),E.flags=i.flags&14680064,E.childLanes=i.childLanes,E.lanes=i.lanes,E.child=i.child,E.memoizedProps=i.memoizedProps,E.memoizedState=i.memoizedState,E.updateQueue=i.updateQueue,o=i.dependencies,E.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},E.sibling=i.sibling,E.index=i.index,E.ref=i.ref,E}function Pl(i,o,E,A,L,z){var ne=2;if(A=i,typeof i=="function")Rs(i)&&(ne=1);else if(typeof i=="string")ne=5;else e:switch(i){case B:return qo(E.children,L,z,o);case w:ne=8,L|=8;break;case T:return i=fi(12,E,o,L|2),i.elementType=T,i.lanes=z,i;case F:return i=fi(13,E,o,L),i.elementType=F,i.lanes=z,i;case $:return i=fi(19,E,o,L),i.elementType=$,i.lanes=z,i;case Z:return Ml(E,L,z,o);default:if((typeof i>"u"?"undefined":s(i))==="object"&&i!==null)switch(i.$$typeof){case K:ne=10;break e;case R:ne=9;break e;case U:ne=11;break e;case W:ne=14;break e;case N:ne=16,A=null;break e}throw Error(a(130,i==null?i:typeof i>"u"?"undefined":s(i),""))}return o=fi(ne,E,o,L),o.elementType=i,o.type=A,o.lanes=z,o}function qo(i,o,E,A){return i=fi(7,i,A,o),i.lanes=E,i}function Ml(i,o,E,A){return i=fi(22,i,A,o),i.elementType=Z,i.lanes=E,i.stateNode={isHidden:!1},i}function Ks(i,o,E){return i=fi(6,i,null,o),i.lanes=E,i}function Us(i,o,E){return o=fi(4,i.children!==null?i.children:[],i.key,o),o.lanes=E,o.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},o}function cd(i,o,E,A,L){this.tag=o,this.containerInfo=i,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Nn(0),this.expirationTimes=Nn(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Nn(0),this.identifierPrefix=A,this.onRecoverableError=L,this.mutableSourceEagerHydrationData=null}function zs(i,o,E,A,L,z,ne,ce,_e){return i=new cd(i,o,E,ce,_e),o===1?(o=1,z===!0&&(o|=8)):o=0,z=fi(3,null,null,o),i.current=z,z.stateNode=i,z.memoizedState={element:A,isDehydrated:E,cache:null,transitions:null,pendingSuspenseBoundaries:null},ql(z),i}function ud(i,o,E){var A=3{"use strict";r.r(S)},2389:(q,S,r)=>{"use strict";r.r(S),r.d(S,{ShuttleConsole:()=>a,ShuttleConsoleContent:()=>u});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(f){var m=(0,s.Oc)(),d=m.act,v=m.data,_=f.type,l=_===void 0?"shuttle":_,c=f.blind_drop,h=v.authorization_required;return(0,e.jsxs)(t.p8,{width:350,height:240,children:[!!h&&(0,e.jsxs)(n.aF,{ml:1,mt:1,width:26,height:12,fontSize:"28px",fontFamily:"monospace",textAlign:"center",children:[(0,e.jsxs)(n.so,{children:[(0,e.jsx)(n.so.Item,{mt:2,children:(0,e.jsx)(n.In,{name:"minus-circle"})}),(0,e.jsx)(n.so.Item,{mt:2,ml:2,color:"bad",children:l==="shuttle"?"SHUTTLE LOCKED":"BASE LOCKED"})]}),(0,e.jsx)(n.az,{fontSize:"18px",mt:4,children:(0,e.jsx)(n.$n,{lineHeight:"40px",icon:"arrow-circle-right",content:"Request Authorization",color:"bad",onClick:function(){return d("request")}})})]}),(0,e.jsx)(t.p8.Content,{children:(0,e.jsx)(u,{type:l,blind_drop:c})})]})},b=function(f,m){var d;return f==null||(d=f.find(function(v){return v.id===m}))==null?void 0:d.name},O=function(f,m){var d;return f==null||(d=f.find(function(v){return v.name===m}))==null?void 0:d.id},y={"In Transit":"good",Idle:"average",Igniting:"average",Recharging:"average",Missing:"bad","Unauthorized Access":"bad",Locked:"bad"},u=function(f){var m=(0,s.Oc)(),d=m.act,v=m.data,_=f.type,l=f.blind_drop,c=v.status,h=v.locked,g=v.authorization_required,p=v.destination,j=v.docked_location,x=v.timer_str,C=v.locations,I=C===void 0?[]:C;return(0,e.jsxs)(n.wn,{children:[(0,e.jsx)(n.az,{bold:!0,fontSize:"26px",textAlign:"center",fontFamily:"monospace",children:x||"00:00"}),(0,e.jsxs)(n.az,{textAlign:"center",fontSize:"14px",mb:1,children:[(0,e.jsx)(n.az,{inline:!0,bold:!0,children:"STATUS:"}),(0,e.jsx)(n.az,{inline:!0,color:y[c]||"bad",ml:1,children:c||"Not Available"})]}),(0,e.jsxs)(n.wn,{title:_==="shuttle"?"Shuttle Controls":"Base Launch Controls",children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Location",children:j||"Not Available"}),(0,e.jsx)(n.Ki.Item,{label:"Destination",buttons:_!=="shuttle"&&I.length===0&&!!l&&(0,e.jsx)(n.$n,{color:"bad",icon:"exclamation-triangle",disabled:g||!l,onClick:function(){return d("random")},children:"Blind Drop"}),children:I.length===0&&(0,e.jsx)(n.az,{mb:1.7,color:"bad",children:"Not Available"})||I.length===1&&(0,e.jsx)(n.az,{mb:1.7,color:"average",children:b(I,p)})||(0,e.jsx)(n.ms,{mb:1.7,over:!0,width:"240px",options:I.map(function(P){return P.name}),disabled:h||g,selected:b(I,p)||"Select a Destination",onSelected:function(P){return d("set_destination",{destination:O(I,P)})}})})]}),(0,e.jsx)(n.$n,{fluid:!0,disabled:!b(I,p)||h||g||c!=="Idle",icon:"arrow-up",textAlign:"center",onClick:function(){return d("move",{shuttle_id:p})},children:"Depart"})]})]})}},2398:(q,S,r)=>{"use strict";r.r(S),r.d(S,{Newscaster:()=>l,PhotoThumbnail:()=>j});var e=r(1131),s=r(185),n=r(360),t=r(7003),a=r(5180),b=r(9357),O=r(3521),y=r(538),u=r(2424);function f(){return f=Object.assign||function(M){for(var B=1;B=0)&&(w[K]=M[K]);return w}var d=128,v=["security","engineering","medical","science","service","supply"],_={security:{title:"Security",fluff_text:"\u041F\u043E\u043C\u043E\u0433\u0430\u0439\u0442\u0435 \u043E\u0431\u0435\u0441\u043F\u0435\u0447\u0438\u0432\u0430\u0442\u044C \u0431\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u044C \u044D\u043A\u0438\u043F\u0430\u0436\u0430"},engineering:{title:"Engineering",fluff_text:"\u0421\u043B\u0435\u0434\u0438\u0442\u0435 \u0437\u0430 \u0431\u0435\u0441\u043F\u0435\u0440\u0435\u0431\u043E\u0439\u043D\u043E\u0439 \u0440\u0430\u0431\u043E\u0442\u043E\u0439 \u0441\u0442\u0430\u043D\u0446\u0438\u0438"},medical:{title:"Medical",fluff_text:"\u0417\u0430\u043D\u0438\u043C\u0430\u0439\u0442\u0435\u0441\u044C \u043C\u0435\u0434\u0438\u0446\u0438\u043D\u043E\u0439 \u0438 \u0441\u043F\u0430\u0441\u0430\u0439\u0442\u0435 \u0436\u0438\u0437\u043D\u0438"},science:{title:"Science",fluff_text:"\u0420\u0430\u0437\u0440\u0430\u0431\u0430\u0442\u044B\u0432\u0430\u0439\u0442\u0435 \u043D\u043E\u0432\u044B\u0435 \u0442\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0438"},service:{title:"Service",fluff_text:"\u041E\u0431\u0435\u0441\u043F\u0435\u0447\u0438\u0432\u0430\u0439\u0442\u0435 \u044D\u043A\u0438\u043F\u0430\u0436 \u0443\u0434\u043E\u0431\u0441\u0442\u0432\u0430\u043C\u0438"},supply:{title:"Supply",fluff_text:"\u041F\u043E\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0439\u0442\u0435 \u0441\u043D\u0430\u0431\u0436\u0435\u043D\u0438\u0435 \u0441\u0442\u0430\u043D\u0446\u0438\u0438"}},l=function(M){var B=(0,n.Oc)(),w=B.act,T=B.data,K=T.is_security,R=T.is_admin,U=T.is_silent,F=T.is_printing,$=T.screen,W=T.channels,N=T.channel_idx,Z=N===void 0?-1:N,ie=(0,t.useState)(!1),Q=ie[0],V=ie[1],G=(0,t.useState)(""),le=G[0],xe=G[1],de=(0,t.useState)(!1),me=de[0],pe=de[1],Me=(0,t.useState)([]),Ke=Me[0],Le=Me[1],Se;$===0||$===2?Se=(0,e.jsx)(h,{censorMode:me,fullStories:Ke,setFullStories:Le}):$===1&&(Se=(0,e.jsx)(g,{censorMode:me,fullStories:Ke,setFullStories:Le}));var ln=W.reduce(function(ze,We){return ze+We.unread},0);return(0,e.jsxs)(O.p8,{theme:K&&"security",width:800,height:600,children:[le?(0,e.jsx)(x,{}):(0,e.jsx)(y.ComplexModal,{maxWidth:50,maxHeight:70}),(0,e.jsx)(O.p8.Content,{children:(0,e.jsxs)(a.BJ,{fill:!0,children:[(0,e.jsx)(a.wn,{fill:!0,className:(0,s.Ly)(["Newscaster__menu",Q&&"Newscaster__menu--open"]),children:(0,e.jsxs)(a.BJ,{fill:!0,vertical:!0,children:[(0,e.jsxs)(a.BJ.Item,{children:[(0,e.jsx)(c,{icon:"bars",title:"\u041C\u0435\u043D\u044E",onClick:function(){return V(!Q)}}),(0,e.jsx)(c,{icon:"newspaper",title:"\u0421\u0442\u0430\u0442\u044C\u0438",selected:$===0,onClick:function(){return w("headlines")},children:ln>0&&(0,e.jsx)(a.az,{className:"Newscaster__menuButton--unread",children:ln>=10?"9+":ln})}),(0,e.jsx)(c,{icon:"briefcase",title:"\u0412\u0430\u043A\u0430\u043D\u0441\u0438\u0438",selected:$===1,onClick:function(){return w("jobs")}}),(0,e.jsx)(a.cG,{})]}),(0,e.jsx)(a.BJ.Item,{grow:!0,children:W.map(function(ze){return(0,e.jsx)(c,{icon:ze.icon,title:ze.name,selected:$===2&&W[Z-1]===ze,onClick:function(){return w("channel",{uid:ze.uid})},children:ze.unread>0&&(0,e.jsx)(a.az,{className:"Newscaster__menuButton--unread",children:ze.unread>=10?"9+":ze.unread})},ze.uid)})}),(0,e.jsxs)(a.BJ.Item,{children:[(0,e.jsx)(a.cG,{}),(!!K||!!R)&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(c,{security:!0,icon:"exclamation-circle",title:"\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0440\u043E\u0437\u044B\u0441\u043A",mb:"0.5rem",onClick:function(){return(0,y.modalOpen)("wanted_notice")}}),(0,e.jsx)(c,{security:!0,icon:me?"minus-square":"minus-square-o",title:"\u0420\u0435\u0436\u0438\u043C \u0426\u0435\u043D\u0437\u0443\u0440\u044B: "+(me?"\u0412\u043A\u043B":"\u0412\u044B\u043A\u043B"),mb:"0.5rem",onClick:function(){return pe(!me)}}),(0,e.jsx)(a.cG,{})]}),(0,e.jsx)(c,{icon:"pen-alt",title:"\u041D\u043E\u0432\u0430\u044F \u0441\u0442\u0430\u0442\u044C\u044F",mb:"0.5rem",onClick:function(){return(0,y.modalOpen)("create_story")}}),(0,e.jsx)(c,{icon:"plus-circle",title:"\u041D\u043E\u0432\u044B\u0439 \u043A\u0430\u043D\u0430\u043B",onClick:function(){return(0,y.modalOpen)("create_channel")}}),(0,e.jsx)(a.cG,{}),(0,e.jsx)(c,{icon:F?"spinner":"print",iconSpin:F,title:F?"\u041F\u0435\u0447\u0430\u0442\u044C...":"\u0420\u0430\u0441\u043F\u0435\u0447\u0430\u0442\u0430\u0442\u044C \u0433\u0430\u0437\u0435\u0442\u0443",onClick:function(){return w("print_newspaper")}}),(0,e.jsx)(c,{icon:U?"volume-mute":"volume-up",title:"\u0417\u0430\u0433\u043B\u0443\u0448\u0438\u0442\u044C: "+(U?"\u0412\u043A\u043B":"\u0412\u044B\u043A\u043B"),onClick:function(){return w("toggle_mute")}})]})]})}),(0,e.jsxs)(a.BJ,{fill:!0,vertical:!0,width:"100%",children:[(0,e.jsx)(u.TemporaryNotice,{}),Se]})]})})]})},c=function(M){var B=M.icon,w=B===void 0?"":B,T=M.iconSpin,K=M.selected,R=K===void 0?!1:K,U=M.security,F=U===void 0?!1:U,$=M.onClick,W=M.title,N=M.children,Z=m(M,["icon","iconSpin","selected","security","onClick","title","children"]);return(0,e.jsxs)(a.az,f({className:(0,s.Ly)(["Newscaster__menuButton",R&&"Newscaster__menuButton--selected",F&&"Newscaster__menuButton--security"]),onClick:$},Z,{children:[R&&(0,e.jsx)(a.az,{className:"Newscaster__menuButton--selectedBar"}),(0,e.jsx)(a.In,{name:w,spin:T,size:2}),(0,e.jsx)(a.az,{className:"Newscaster__menuButton--title",children:W}),N]}))},h=function(M){var B=(0,n.Oc)(),w=B.act,T=B.data,K=T.screen,R=T.is_admin,U=T.channel_idx,F=T.channel_can_manage,$=T.channels,W=T.stories,N=T.wanted,Z=M.censorMode,ie=M.fullStories,Q=M.setFullStories,V=K===2&&U>-1?$[U-1]:null;return(0,e.jsxs)(a.BJ,{fill:!0,vertical:!0,children:[!!N&&(0,e.jsx)(p,{story:N,wanted:!0,censorMode:Z,fullStories:ie,setFullStories:Q}),(0,e.jsx)(a.wn,{fill:!0,scrollable:!0,title:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.In,{name:V?V.icon:"newspaper",mr:"0.5rem"}),V?V.name:"\u0421\u0442\u0430\u0442\u044C\u0438"]}),children:W.length>0?W.slice().reverse().map(function(G){return!ie.includes(G.uid)&&G.body.length+3>d?f({},G,{body_short:G.body.substring(0,d-4)+"..."}):G}).map(function(G,le){return(0,e.jsx)(p,{story:G,censorMode:Z,fullStories:ie,setFullStories:Q},le)}):(0,e.jsxs)(a.az,{className:"Newscaster__emptyNotice",children:[(0,e.jsx)(a.In,{name:"times",size:3}),(0,e.jsx)("br",{}),"\u0412 \u043D\u0430\u0441\u0442\u043E\u044F\u0449\u0435\u0435 \u0432\u0440\u0435\u043C\u044F \u043D\u0435\u0442 \u043D\u0438\u043A\u0430\u043A\u0438\u0445 \u0441\u0442\u0430\u0442\u0435\u0439."]})}),!!V&&(0,e.jsx)(a.wn,{fill:!0,scrollable:!0,height:"40%",title:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.In,{name:"info-circle",mr:"0.5rem"}),"\u041E \u043A\u0430\u043D\u0430\u043B\u0435"]}),buttons:(0,e.jsxs)(e.Fragment,{children:[Z&&(0,e.jsx)(a.$n,{disabled:!!V.admin&&!R,selected:V.censored,icon:V.censored?"comment":"ban",backgroundColor:!V.censored&&"red",mr:"0.5rem",tooltip:V.censored?"\u0420\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043A\u0430\u043D\u0430\u043B":"\u0417\u0430\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043A\u0430\u043D\u0430\u043B",onClick:function(){return w("censor_channel",{uid:V.uid})}}),(0,e.jsx)(a.$n,{disabled:!F,icon:"cog",onClick:function(){return(0,y.modalOpen)("manage_channel",{uid:V.uid})},children:"\u0423\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435"})]}),children:(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"\u041E\u043F\u0438\u0441\u0430\u043D\u0438\u0435",children:V.description||"\u041D/\u0414"}),(0,e.jsx)(a.Ki.Item,{label:"\u0412\u043B\u0430\u0434\u0435\u043B\u0435\u0446",children:V.author||"\u041D/\u0414"}),(0,e.jsx)(a.Ki.Item,{label:"\u041F\u0443\u0431\u043B\u0438\u0447\u043D\u044B\u0439",children:V.public?"\u0414\u0430":"\u041D\u0435\u0442"}),(0,e.jsxs)(a.Ki.Item,{label:"\u0412\u0441\u0435\u0433\u043E \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u043E\u0432",children:[(0,e.jsx)(a.In,{name:"eye",mr:"0.5rem"}),W.reduce(function(G,le){return G+le.view_count},0).toLocaleString()]})]})})]})},g=function(M){var B=(0,n.Oc)().data,w=B.jobs,T=B.wanted,K=Object.entries(w).reduce(function($,W){var N=W[0],Z=W[1];return $+Z.length},0),R=M.censorMode,U=M.fullStories,F=M.setFullStories;return(0,e.jsxs)(a.BJ,{fill:!0,vertical:!0,children:[!!T&&(0,e.jsx)(p,{censorMode:R,fullStories:U,setFullStories:F,story:T,wanted:!0}),(0,e.jsx)(a.wn,{fill:!0,scrollable:!0,title:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.In,{name:"briefcase",mr:"0.5rem"}),"\u041E\u0442\u043A\u0440\u044B\u0442\u044B\u0435 \u0432\u0430\u043A\u0430\u043D\u0441\u0438\u0438"]}),buttons:(0,e.jsx)(a.az,{mt:"0.25rem",color:"label",children:"\u0420\u0430\u0431\u043E\u0442\u0430\u0439\u0442\u0435 \u0440\u0430\u0434\u0438 \u043B\u0443\u0447\u0448\u0435\u0433\u043E \u0431\u0443\u0434\u0443\u0449\u0435\u0433\u043E \u0432 Nanotrasen"}),children:K>0?v.map(function($){return Object.assign({},_[$],{id:$,jobs:w[$]})}).filter(function($){return!!$&&$.jobs.length>0}).map(function($){return(0,e.jsx)(a.wn,{className:(0,s.Ly)(["Newscaster__jobCategory","Newscaster__jobCategory--"+$.id]),title:$.title,buttons:(0,e.jsx)(a.az,{mt:"0.25rem",color:"label",children:$.fluff_text}),children:$.jobs.map(function(W){return(0,e.jsxs)(a.az,{className:(0,s.Ly)(["Newscaster__jobOpening",!!W.is_command&&"Newscaster__jobOpening--command"]),children:["\u2022 ",W.title]},W.title)})},$.id)}):(0,e.jsxs)(a.az,{className:"Newscaster__emptyNotice",children:[(0,e.jsx)(a.In,{name:"times",size:3}),(0,e.jsx)("br",{}),"\u0412 \u043D\u0430\u0441\u0442\u043E\u044F\u0449\u0435\u0435 \u0432\u0440\u0435\u043C\u044F \u0441\u0432\u043E\u0431\u043E\u0434\u043D\u044B\u0445 \u0432\u0430\u043A\u0430\u043D\u0441\u0438\u0439."]})}),(0,e.jsxs)(a.wn,{height:"17%",children:['\u0418\u043D\u0442\u0435\u0440\u0435\u0441\u0443\u0435\u0442 \u0440\u0430\u0431\u043E\u0442\u0430 \u0432 \\"\u041D\u0430\u043D\u043E\u0442\u0440\u0435\u0439\u0437\u0435\u043D\\"?',(0,e.jsx)("br",{}),"\u0417\u0430\u043F\u0438\u0448\u0438\u0442\u0435\u0441\u044C \u043D\u0430 \u043B\u044E\u0431\u0443\u044E \u0438\u0437 \u0432\u044B\u0448\u0435\u0443\u043A\u0430\u0437\u0430\u043D\u043D\u044B\u0445 \u0434\u043E\u043B\u0436\u043D\u043E\u0441\u0442\u0435\u0439 \u043F\u0440\u044F\u043C\u043E \u0441\u0435\u0439\u0447\u0430\u0441 \u0432"," ",(0,e.jsx)("b",{children:"\u041E\u0444\u0438\u0441\u0435 \u0413\u043B\u0430\u0432\u044B \u041F\u0435\u0440\u0441\u043E\u043D\u0430\u043B\u0430!"}),(0,e.jsx)("br",{}),(0,e.jsx)(a.az,{as:"small",color:"label",children:'\u041F\u043E\u0434\u043F\u0438\u0441\u044B\u0432\u0430\u044F\u0441\u044C \u043D\u0430 \u0440\u0430\u0431\u043E\u0442\u0443 \u0432 \\"\u041D\u0430\u043D\u043E\u0442\u0440\u0435\u0439\u0437\u0435\u043D\\", \u0432\u044B \u0441\u043E\u0433\u043B\u0430\u0448\u0430\u0435\u0442\u0435\u0441\u044C \u043F\u0435\u0440\u0435\u0434\u0430\u0442\u044C \u0441\u0432\u043E\u044E \u0434\u0443\u0448\u0443 \u0432 \u043E\u0442\u0434\u0435\u043B \u043B\u043E\u044F\u043B\u044C\u043D\u043E\u0441\u0442\u0438 \u0432\u0435\u0437\u0434\u0435\u0441\u0443\u0449\u0435\u0433\u043E \u0438 \u043F\u043E\u043B\u0435\u0437\u043D\u043E\u0433\u043E \u043D\u0430\u0431\u043B\u044E\u0434\u0430\u0442\u0435\u043B\u044F \u0437\u0430 \u0447\u0435\u043B\u043E\u0432\u0435\u0447\u0435\u0441\u0442\u0432\u043E\u043C.'})]})]})},p=function(M){var B=(0,n.Oc)(),w=B.act,T=B.data,K=M.story,R=M.wanted,U=R===void 0?!1:R,F=M.censorMode,$=M.fullStories,W=M.setFullStories;return(0,e.jsx)(a.wn,{className:(0,s.Ly)(["Newscaster__story",U&&"Newscaster__story--wanted"]),title:(0,e.jsxs)(e.Fragment,{children:[U&&(0,e.jsx)(a.In,{name:"exclamation-circle",mr:"0.5rem"}),K.censor_flags&2&&"[\u041E\u0422\u0420\u0415\u0414\u0410\u041A\u0422\u0418\u0420\u041E\u0412\u0410\u041D\u041E]"||K.title||"News from "+K.author]}),buttons:(0,e.jsx)(a.az,{mt:"0.25rem",children:(0,e.jsxs)(a.az,{color:"label",children:[!U&&F&&(0,e.jsx)(a.az,{inline:!0,children:(0,e.jsx)(a.$n,{disabled:!!K.admin_locked&&!T.is_admin,icon:K.censor_flags&2?"comment":"ban",backgroundColor:!(K.censor_flags&2)&&"red",mr:"0.5rem",mt:"-0.25rem",tooltip:K.censor_flags&2?"\u0420\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u0442\u044C":"\u0417\u0430\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u0442\u044C",onClick:function(){return w("censor_story",{uid:K.uid})}})}),(0,e.jsxs)(a.az,{inline:!0,children:[(0,e.jsx)(a.In,{name:"user"})," ",K.author," |\xA0",!U&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.In,{name:"eye"})," ",K.view_count.toLocaleString()," ","|\xA0"]}),(0,e.jsx)(a.In,{name:"clock"})," ",(0,b.fF)(K.publish_time,T.world_time)]})]})}),children:(0,e.jsx)(a.az,{children:K.censor_flags&2?"[\u041E\u0422\u0420\u0415\u0414\u0410\u041A\u0422\u0418\u0420\u041E\u0412\u0410\u041D\u041E]":(0,e.jsxs)(e.Fragment,{children:[!!K.has_photo&&(0,e.jsx)(j,{name:"story_photo_"+K.uid+".png",style:{float:"right",marginLeft:"0.5rem"}}),(K.body_short||K.body).split(` `).map(function(N,Z){return(0,e.jsx)(a.az,{children:N||(0,e.jsx)("br",{})},Z)}),K.body_short&&(0,e.jsx)(a.$n,{mt:"0.5rem",onClick:function(){return W([].concat($,[K.uid]))},children:"\u0427\u0438\u0442\u0430\u0442\u044C \u0434\u0430\u043B\u0435\u0435.."}),(0,e.jsx)(a.az,{style:{clear:"right"}})]})})})},j=function(M){var B=M.name,w=m(M,["name"]),T=(0,t.useState)(""),K=T[0],R=T[1];return(0,e.jsx)("img",f({className:"Newscaster__photo",src:B,onClick:function(){return R(B)}},w))},x=function(M){var B=(0,t.useState)(""),w=B[0],T=B[1];return(0,e.jsxs)(a.aF,{className:"Newscaster__photoZoom",children:[(0,e.jsx)(a._V,{src:w}),(0,e.jsx)(a.$n,{icon:"times",color:"grey",mt:"1rem",onClick:function(){return T("")},children:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C"})]})},C=function(M){var B=(0,n.Oc)().data,w=!!M.args.uid&&B.channels.filter(function(Se){return Se.uid===M.args.uid}).pop();if(M.id==="manage_channel"&&!w){(0,y.modalClose)();return}var T=M.id==="manage_channel",K=!!M.args.is_admin,R=M.args.scanned_user,U=(0,t.useState)(w?.author||R||"\u041D\u0435\u0430\u0432\u0442\u043E\u0440\u0438\u0437\u043E\u0432\u0430\u043D\u043D\u044B\u0439"),F=U[0],$=U[1],W=(0,t.useState)(w?.name||""),N=W[0],Z=W[1],ie=(0,t.useState)(w?.description||""),Q=ie[0],V=ie[1],G=(0,t.useState)(w?.icon||"newspaper"),le=G[0],xe=G[1],de=(0,t.useState)(T?!!w?.public:!1),me=de[0],pe=de[1],Me=(0,t.useState)(w?.admin||!1),Ke=Me[0],Le=Me[1];return(0,e.jsx)(a.wn,{m:"-1rem",pb:"1.5rem",title:T?"\u0423\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435: "+w.name:"\u0421\u043E\u0437\u0434\u0430\u0442\u044C \u043D\u043E\u0432\u044B\u0439 \u043A\u0430\u043D\u0430\u043B",children:(0,e.jsxs)(a.BJ,{vertical:!0,mx:"0.5rem",children:[(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(a.Ki.Item,{label:"\u0412\u043B\u0430\u0434\u0435\u043B\u0435\u0446",children:(0,e.jsx)(a.pd,{disabled:!K,width:"100%",value:F,onChange:$})})}),(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(a.Ki.Item,{label:"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435",children:(0,e.jsx)(a.pd,{width:"100%",placeholder:"\u041C\u0430\u043A\u0441. 50 \u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432",maxLength:50,value:N,onChange:Z})})}),(0,e.jsxs)(a.BJ.Item,{children:[(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(a.Ki.Item,{label:"\u041E\u043F\u0438\u0441\u0430\u043D\u0438\u0435 (\u043E\u043F\u0446\u0438\u043E\u043D\u0430\u043B\u044C\u043D\u043E)"})}),(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(a.fs,{width:"100%",placeholder:"\u041C\u0430\u043A\u0441. 128 \u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432.",maxLength:128,height:10,value:Q,onChange:V})})]}),(0,e.jsx)(a.BJ.Item,{children:(0,e.jsxs)(a.Ki.Item,{label:"\u0418\u043A\u043E\u043D\u043A\u0430",children:[(0,e.jsx)(a.pd,{overflowX:"visible",disabled:!K,value:le,mr:"0.5rem",onChange:xe}),(0,e.jsx)(a.In,{name:le,size:2,verticalAlign:"middle",mr:"0.5rem"})]})}),(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(a.Ki.Item,{label:"\u0421\u0434\u0435\u043B\u0430\u0442\u044C \u043A\u0430\u043D\u0430\u043B \u043F\u0443\u0431\u043B\u0438\u0447\u043D\u044B\u043C?",children:(0,e.jsx)(a.$n,{selected:me,width:4,icon:me?"toggle-on":"toggle-off",onClick:function(){return pe(!me)},children:me?"\u0414\u0430":"\u041D\u0435\u0442"})})}),(0,e.jsx)(a.BJ.Item,{children:K&&(0,e.jsx)(a.Ki.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.jsx)(a.$n,{selected:Ke,icon:Ke?"lock":"lock-open",tooltip:"\u0411\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0430 \u044D\u0442\u043E\u0433\u043E \u043A\u0430\u043D\u0430\u043B\u0430 \u0441\u0434\u0435\u043B\u0430\u0435\u0442 \u0435\u0433\u043E \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u043C \u0434\u043B\u044F \u0440\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u0442\u043E\u043B\u044C\u043A\u043E \u0434\u043B\u044F \u0441\u043E\u0442\u0440\u0443\u0434\u043D\u0438\u043A\u043E\u0432 CentComm.",tooltipPosition:"top",onClick:function(){return Le(!Ke)},children:Ke?"\u0412\u043A\u043B":"\u0412\u044B\u043A\u043B"})})}),(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(a.$n.Confirm,{disabled:F.trim().length===0||N.trim().length===0,icon:"check",color:"good",position:"absolute",right:1,bottom:"-0.75rem",onClick:function(){(0,y.modalAnswer)(M.id,"",{author:F,name:N.substr(0,49),description:Q.substr(0,128),icon:le,public:me?1:0,admin_locked:Ke?1:0})},children:"\u0421\u043E\u0437\u0434\u0430\u0442\u044C"})})]})})},I=function(M){var B=(0,n.Oc)(),w=B.act,T=B.data,K=T.photo,R=T.channels,U=T.channel_idx,F=U===void 0?-1:U,$=!!M.args.is_admin,W=M.args.scanned_user,N=R.slice().sort(function(ze,We){if(F<0)return 0;var fn=R[F-1];if(fn.uid===ze.uid)return-1;if(fn.uid===We.uid)return 1}).filter(function(ze){return $||!ze.frozen&&(ze.author===W||!!ze.public)}),Z=(0,t.useState)(W||"Unknown"),ie=Z[0],Q=Z[1],V=(0,t.useState)(N.length>0?N[0].name:""),G=V[0],le=V[1],xe=(0,t.useState)(""),de=xe[0],me=xe[1],pe=(0,t.useState)(""),Me=pe[0],Ke=pe[1],Le=(0,t.useState)(!1),Se=Le[0],ln=Le[1];return(0,e.jsx)(a.wn,{m:"-1rem",pb:"1.5rem",title:"\u041D\u0430\u043F\u0438\u0441\u0430\u0442\u044C \u043D\u043E\u0432\u0443\u044E \u0441\u0442\u0430\u0442\u044C\u044E",children:(0,e.jsxs)(a.BJ,{vertical:!0,mx:"0.5rem",children:[(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(a.Ki.Item,{label:"\u0410\u0432\u0442\u043E\u0440",children:(0,e.jsx)(a.pd,{disabled:!$,width:"100%",value:ie,onChange:Q})})}),(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(a.Ki.Item,{label:"\u041A\u0430\u043D\u0430\u043B",verticalAlign:"top",children:(0,e.jsx)(a.ms,{selected:G,options:N.map(function(ze){return ze.name}),mb:"0",width:"100%",onSelected:function(ze){return le(ze)}})})}),(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(a.Ki.Divider,{})}),(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(a.Ki.Item,{label:"\u0417\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A",children:(0,e.jsx)(a.pd,{width:"100%",placeholder:"\u041C\u0430\u043A\u0441. 128 \u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432",maxLength:128,value:de,onChange:me})})}),(0,e.jsxs)(a.BJ.Item,{children:[(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(a.Ki.Item,{label:"\u0422\u0435\u043A\u0441\u0442 \u0441\u0442\u0430\u0442\u044C\u0438",verticalAlign:"top"})}),(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(a.fs,{fluid:!0,placeholder:"\u041C\u0430\u043A\u0441. 1024 \u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432",maxLength:1024,width:"100%",height:10,value:Me,onChange:Ke})})]}),(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(a.Ki.Item,{label:"\u0424\u043E\u0442\u043E (\u043E\u043F\u0446\u0438\u043E\u043D\u0430\u043B\u044C\u043D\u043E)",verticalAlign:"top",children:(0,e.jsx)(a.$n,{icon:"image",selected:!!K,tooltip:!K&&"\u041F\u0440\u0438\u043B\u043E\u0436\u0438\u0442\u0435 \u0444\u043E\u0442\u043E \u043A \u044D\u0442\u043E\u0439 \u0441\u0442\u0430\u0442\u044C\u0435, \u0434\u0435\u0440\u0436\u0430 \u0435\u0435 \u0432 \u0440\u0443\u043A\u0435.",onClick:function(){return w(K?"eject_photo":"attach_photo")},children:K?"\u0414\u043E\u0441\u0442\u0430\u0442\u044C: "+K.name:"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u0444\u043E\u0442\u043E"})})}),(0,e.jsx)(a.BJ.Item,{mt:3,children:(0,e.jsx)(a.BJ,{vertical:!0,children:(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(a.wn,{noTopPadding:!0,title:de,maxHeight:"13.5rem",overflow:"auto",style:{border:"1px solid #3a3a3a",boxShadow:"0 0 8px #3a3a3a",borderRadius:"4px"},children:(0,e.jsxs)(a.az,{mt:"0.5rem",children:[!!K&&(0,e.jsx)(j,{name:"inserted_photo_"+K.uid+".png",style:{float:"right"}}),Me.split(` `).map(function(ze,We){return(0,e.jsx)(a.az,{children:ze||(0,e.jsx)("br",{})},We)}),(0,e.jsx)(a.az,{style:{clear:"right"}})]})})})})}),(0,e.jsx)(a.BJ.Item,{children:$&&(0,e.jsx)(a.Ki.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.jsx)(a.$n,{selected:Se,icon:Se?"lock":"lock-open",tooltip:"\u041F\u0443\u0431\u043B\u0438\u043A\u0430\u0446\u0438\u044F \u044D\u0442\u043E\u0439 \u0441\u0442\u0430\u0442\u044C\u0438 \u0441\u0434\u0435\u043B\u0430\u0435\u0442 \u0435\u0435 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u043E\u0439 \u0434\u043B\u044F \u0446\u0435\u043D\u0437\u0443\u0440\u044B \u043D\u0438\u043A\u0435\u043C, \u043A\u0440\u043E\u043C\u0435 \u0441\u043E\u0442\u0440\u0443\u0434\u043D\u0438\u043A\u043E\u0432 CentComm.",tooltipPosition:"top",onClick:function(){return ln(!Se)},children:Se?"\u0412\u043A\u043B":"\u0412\u044B\u043A\u043B"})})}),(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(a.$n.Confirm,{disabled:ie.trim().length===0||G.trim().length===0||de.trim().length===0||Me.trim().length===0,icon:"check",color:"good",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){(0,y.modalAnswer)("create_story","",{author:ie,channel:G,title:de.substr(0,127),body:Me.substr(0,1023),admin_locked:Se?1:0})},children:"\u0421\u043E\u0437\u0434\u0430\u0442\u044C"})})]})})},P=function(M){var B=(0,n.Oc)(),w=B.act,T=B.data,K=T.photo,R=T.wanted,U=!!M.args.is_admin,F=M.args.scanned_user,$=(0,t.useState)(R?.author||F||"\u041D\u0435\u0430\u0432\u0442\u043E\u0440\u0438\u0437\u043E\u0432\u0430\u043D\u043D\u044B\u0439"),W=$[0],N=$[1],Z=(0,t.useState)(R?.title.substring(8)||""),ie=Z[0],Q=Z[1],V=(0,t.useState)(R?.body||""),G=V[0],le=V[1],xe=(0,t.useState)(R?.admin_locked||!1),de=xe[0],me=xe[1];return(0,e.jsx)(a.wn,{m:"-1rem",pb:"1.5rem",title:"\u0423\u0432\u0435\u0434\u043E\u043C\u043B\u0435\u043D\u0438\u0435\u043C \u043E \u0440\u043E\u0437\u044B\u0441\u043A\u0435",children:(0,e.jsxs)(a.BJ,{vertical:!0,mx:"0.5rem",children:[(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(a.Ki.Item,{label:"Authority",children:(0,e.jsx)(a.pd,{disabled:!U,width:"100%",value:W,onChange:N})})}),(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(a.Ki.Item,{label:"\u0418\u043C\u044F",children:(0,e.jsx)(a.pd,{width:"100%",value:ie,maxLength:128,onChange:Q})})}),(0,e.jsxs)(a.BJ.Item,{children:[(0,e.jsx)(a.Ki.Item,{label:"\u041E\u043F\u0438\u0441\u0430\u043D\u0438\u0435",verticalAlign:"top"}),(0,e.jsx)(a.fs,{width:"100%",value:G,height:10,maxLength:512,onChange:le})]}),(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(a.Ki.Item,{label:"\u0424\u043E\u0442\u043E (\u043E\u043F\u0446\u0438\u043E\u043D\u0430\u043B\u044C\u043D\u043E)",verticalAlign:"top",children:(0,e.jsx)(a.$n,{icon:"image",selected:!!K,tooltip:!K&&"\u041F\u0440\u0438\u043B\u043E\u0436\u0438\u0442\u0435 \u0444\u043E\u0442\u043E \u043A \u044D\u0442\u043E\u0439 \u0441\u0442\u0430\u0442\u044C\u0435, \u0434\u0435\u0440\u0436\u0430 \u0435\u0435 \u0432 \u0440\u0443\u043A\u0435.",tooltipPosition:"top",onClick:function(){return w(K?"eject_photo":"attach_photo")},children:K?"\u0414\u043E\u0441\u0442\u0430\u0442\u044C: "+K.name:"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u0444\u043E\u0442\u043E"})})}),(0,e.jsx)(a.BJ.Item,{children:!!K&&(0,e.jsx)(j,{name:"inserted_photo_"+K.uid+".png",style:{float:"right"}})}),(0,e.jsx)(a.BJ.Item,{children:U&&(0,e.jsx)(a.Ki.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.jsx)(a.$n,{selected:de,icon:de?"lock-open":"lock",backgroundColor:!de&&"red",tooltip:"\u0417\u0430\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u0432 \u044D\u0442\u043E \u0443\u0432\u0435\u0434\u043E\u043C\u043B\u0435\u043D\u0438\u0435 \u043E \u0440\u043E\u0437\u044B\u0441\u043A\u0435, \u043D\u0438\u043A\u0442\u043E, \u043A\u0440\u043E\u043C\u0435 \u0441\u043E\u0442\u0440\u0443\u0434\u043D\u0438\u043A\u043E\u0432 CentComm, \u043D\u0435 \u0441\u043C\u043E\u0436\u0435\u0442 \u0435\u0433\u043E \u0440\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C.",tooltipPosition:"top",onClick:function(){return me(!de)},children:de?"\u0412\u043A\u043B":"\u0412\u044B\u043A\u043B"})})}),(0,e.jsx)(a.BJ.Item,{children:(0,e.jsxs)(a.BJ,{children:[(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(a.$n.Confirm,{disabled:!R,icon:"eraser",color:"danger",position:"absolute",bottom:"-0.75rem",onClick:function(){w("clear_wanted_notice"),(0,y.modalClose)()},children:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C"})}),(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(a.$n.Confirm,{disabled:W.trim().length===0||ie.trim().length===0||G.trim().length===0,icon:"check",color:"good",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){(0,y.modalAnswer)(M.id,"",{author:W,name:ie.substring(0,127),description:G.substr(0,511),admin_locked:de?1:0})},children:"\u041E\u041A"})})]})})]})})};(0,y.modalRegisterBodyOverride)("create_channel",C),(0,y.modalRegisterBodyOverride)("manage_channel",C),(0,y.modalRegisterBodyOverride)("create_story",I),(0,y.modalRegisterBodyOverride)("wanted_notice",P)},2409:(q,S,r)=>{"use strict";r.r(S),r.d(S,{sendLogEntry:()=>u,sendMessage:()=>y,setupHotReloading:()=>f,subscribe:()=>a});/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */let e;const s=null,n=[],t=()=>{},a=m=>{n.push(m)},O=m=>typeof m=="number"&&!Number.isFinite(m)?{__number__:String(m)}:typeof m>"u"?{__undefined__:!0}:m,b=m=>{let d=[];const _=JSON.stringify(m,(l,c)=>typeof c!="object"?O(c):c===null?c:d.includes(c)?"[circular ref]":(d.push(c),c instanceof Error||c.code&&c.message&&c.message.includes("Error")?{__error__:!0,string:String(c),stack:c.stack}:Array.isArray(c)?c.map(O):c));return d=null,_},y=m=>{},u=(m,d,...v)=>{},f=()=>{}},2424:(q,S,r)=>{"use strict";r.r(S),r.d(S,{TemporaryNotice:()=>a});var e=r(1131),s=r(360),n=r(5180);function t(){return t=Object.assign||function(O){for(var b=1;b{"use strict";r.r(S),r.d(S,{Minesweeper:()=>O});var e=r(1131),s=r(360),n=r(7003),t=r(5180),a=r(3521),O=function(b){var y=(0,s.Oc)(),u=y.act,f=y.data,m=f.matrix,d=f.showMessage,v=f.tokens,_=f.uiWidth,l={1:"blue",2:"green",3:"red",4:"darkblue",5:"brown",6:"lightblue",7:"black",8:"white"};document.addEventListener("contextmenu",function(x){return x.preventDefault()});var c=function(x,C,I){x.button!==0&&x.button!==2||u("Square",{X:C,Y:I,mode:x.button===2?j[g]:g})},h=(0,n.useState)("bomb"),g=h[0],p=h[1],j={flag:"bomb",bomb:"flag"};return(0,e.jsx)(a.p8,{theme:"ntOS95",width:_+80,height:750,children:(0,e.jsx)(a.p8.Content,{children:(0,e.jsx)(t.BJ,{fill:!0,vertical:!0,children:(0,e.jsxs)(t.wn,{title:"\u0418\u0433\u0440\u043E\u0432\u043E\u0435 \u043F\u043E\u043B\u0435",textAlign:"center",fill:!0,fitted:!0,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"bomb",iconColor:"black",selected:g==="bomb",onClick:function(){return p("bomb")}}),(0,e.jsx)(t.$n,{icon:"flag",iconColor:"red",selected:g==="flag",onClick:function(){return p("flag")}}),(0,e.jsx)(t.$n,{icon:"cog",onClick:function(){return u("Mode",{mode:"16x30"})}})]}),children:[(0,e.jsx)("p",{}),Object.keys(m).map(function(x){return(0,e.jsx)(t.az,{children:Object.keys(m[x]).map(function(C){return(0,e.jsx)(t.$n,{m:"1px",height:"30px",width:"30px",className:m[x][C].open?"Minesweeper__open":"Minesweeper__closed",bold:!0,color:"transparent",icon:m[x][C].open?m[x][C].bomb?"bomb":"":m[x][C].flag?"flag":"",textColor:m[x][C].open?m[x][C].bomb?"black":l[m[x][C].around]:m[x][C].flag?"red":"gray",onMouseDown:function(I){return c(I,x,C)},children:m[x][C].open&&!m[x][C].bomb&&m[x][C].around?m[x][C].around:" "},C)})},x)}),(0,e.jsx)("p",{}),(0,e.jsxs)(t.az,{textAlign:"center",className:"Minesweeper__message",children:["\u0414\u043B\u044F \u043F\u043E\u0431\u0435\u0434\u044B \u043D\u0443\u0436\u043D\u043E \u043F\u043E\u043C\u0435\u0442\u0438\u0442\u044C \u0444\u043B\u0430\u0436\u043A\u0430\u043C\u0438 \u0432\u0441\u0435 \u0431\u043E\u043C\u0431\u044B, \u0430 \u0442\u0430\u043A\u0436\u0435 \u043E\u0442\u043A\u0440\u044B\u0442\u044C \u0432\u0441\u0435 \u043F\u0443\u0441\u0442\u044B\u0435 \u043A\u043B\u0435\u0442\u043A\u0438.",(0,e.jsx)("br",{}),"\u0411\u0430\u043B\u0430\u043D\u0441 \u0442\u043E\u043A\u0435\u043D\u043E\u0432: ",v,(0,e.jsx)("br",{}),d]})]})})})})}},2469:(q,S,r)=>{"use strict";r.r(S),r.d(S,{SecureStorage:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(O){var b=(0,s.Oc)(),y=b.act,u=b.data,f=u.emagged,m=u.locked,d=u.l_set,v=u.l_setshort,_=u.current_code,l=function(c){var h=c.buttonValue,g=c.color;return g||(g="default"),(0,e.jsx)(n.$n,{disabled:f||v,color:g,onClick:function(){return y("setnumber",{buttonValue:h})},children:h})};return(0,e.jsx)(t.p8,{width:520,height:200,children:(0,e.jsxs)(n.so,{spacing:"1",children:[(0,e.jsx)(n.so.Item,{width:16,shrink:0,textAlign:"center",children:(0,e.jsxs)(n.wn,{title:"Code Panel",children:[(0,e.jsxs)(n.so.Item,{children:[(0,e.jsx)(l,{buttonValue:"1"}),(0,e.jsx)(l,{buttonValue:"2"}),(0,e.jsx)(l,{buttonValue:"3"})]}),(0,e.jsxs)(n.so.Item,{children:[(0,e.jsx)(l,{buttonValue:"4"}),(0,e.jsx)(l,{buttonValue:"5"}),(0,e.jsx)(l,{buttonValue:"6"})]}),(0,e.jsxs)(n.so.Item,{children:[(0,e.jsx)(l,{buttonValue:"7"}),(0,e.jsx)(l,{buttonValue:"8"}),(0,e.jsx)(l,{buttonValue:"9"})]}),(0,e.jsxs)(n.so.Item,{children:[(0,e.jsx)(l,{buttonValue:"R",color:"red"}),(0,e.jsx)(l,{buttonValue:"0"}),(0,e.jsx)(l,{buttonValue:"E",color:"green"})]})]})}),(0,e.jsx)(n.wn,{title:"Current Status",children:f||v?(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Lock Status",children:(0,e.jsx)(n.az,{color:"red",children:f?"LOCKING SYSTEM ERROR - 1701":"ALERT: MEMORY SYSTEM ERROR - 6040 201"})}),f?(0,e.jsx)(n.Ki.Item,{label:"Input Code",children:(0,e.jsx)(n.az,{color:"red",children:"NEW INPUT, ASSHOLE"})}):""]}):(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Secure Code",children:(0,e.jsx)(n.az,{color:d?"red":"green",children:d?"*****":"NOT SET. ENTER NEW."})}),(0,e.jsx)(n.Ki.Item,{label:"Lock Status",children:(0,e.jsx)(n.az,{color:m?"red":"green",children:m?"Locked":"Unlocked"})}),(0,e.jsx)(n.Ki.Item,{label:"Input Code",children:(0,e.jsx)(n.az,{children:_||"Waiting for input"})}),(0,e.jsx)(n.$n,{top:".35em",left:".5em",disabled:m,color:"red",icon:"lock",onClick:function(){return y("close")},children:"Lock"})]})})]})})}},2476:(q,S,r)=>{"use strict";r.r(S),r.d(S,{pda_janitor:()=>t});var e=r(1131),s=r(360),n=r(5180),t=function(a){var O=(0,s.Oc)().data,b=O.janitor,y=b.user_loc,u=b.mops,f=b.buckets,m=b.cleanbots,d=b.carts;return(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Current Location",children:[y.x,",",y.y]}),u&&(0,e.jsx)(n.Ki.Item,{label:"Mop Locations",children:u.map(function(v){return(0,e.jsxs)(n.az,{children:[v.x,",",v.y," (",v.dir,") - ",v.status]},v)})}),f&&(0,e.jsx)(n.Ki.Item,{label:"Mop Bucket Locations",children:f.map(function(v){return(0,e.jsxs)(n.az,{children:[v.x,",",v.y," (",v.dir,") - [",v.volume,"/",v.max_volume,"]"]},v)})}),m&&(0,e.jsx)(n.Ki.Item,{label:"Cleanbot Locations",children:m.map(function(v){return(0,e.jsxs)(n.az,{children:[v.x,",",v.y," (",v.dir,") - ",v.status]},v)})}),d&&(0,e.jsx)(n.Ki.Item,{label:"Janitorial Cart Locations",children:d.map(function(v){return(0,e.jsxs)(n.az,{children:[v.x,",",v.y," (",v.dir,") - [",v.volume,"/",v.max_volume,"]"]},v)})})]})}},2485:(q,S,r)=>{"use strict";r.r(S),r.d(S,{BodyScanner:()=>h});var e=r(1131),s=r(9818),n=r(9845),t=r(360),a=r(5180),O=r(3521),b=r(7003);function y(){return y=Object.assign||function(B){for(var w=1;w=0)&&(T[R]=B[R]);return T}var f=[["good","\u041D\u043E\u0440\u043C\u0430"],["average","\u041A\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435"],["bad","\u0417\u0430\u0444\u0438\u043A\u0441\u0438\u0440\u043E\u0432\u0430\u043D\u0430 \u0441\u043C\u0435\u0440\u0442\u044C"]],m=[["hasBorer","bad","\u0412 \u043B\u043E\u0431\u043D\u043E\u0439 \u0434\u043E\u043B\u0435 \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u043E \u043A\u0440\u0443\u043F\u043D\u043E\u0435 \u043E\u0431\u0440\u0430\u0437\u043E\u0432\u0430\u043D\u0438\u0435, \u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E, \u0437\u043B\u043E\u043A\u0430\u0447\u0435\u0441\u0442\u0432\u0435\u043D\u043D\u043E\u0435. \u0420\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0443\u0435\u0442\u0441\u044F \u0445\u0438\u0440\u0443\u0440\u0433\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u0443\u0434\u0430\u043B\u0435\u043D\u0438\u0435."],["hasVirus","bad","\u041E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D \u0432\u0438\u0440\u0443\u0441 \u0432 \u043A\u0440\u043E\u0432\u043E\u0442\u043E\u043A\u0435 \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430."],["blind","average","\u041E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u0430 \u043A\u0430\u0442\u0430\u0440\u0430\u043A\u0442\u0430."],["colourblind","average","\u041E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u044B \u043D\u0430\u0440\u0443\u0448\u0435\u043D\u0438\u044F \u0432 \u0440\u0430\u0431\u043E\u0442\u0435 \u0444\u043E\u0442\u043E\u0440\u0435\u0446\u0435\u043F\u0442\u043E\u0440\u043E\u0432"],["nearsighted","average","\u041E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u043E \u0441\u043C\u0435\u0449\u0435\u043D\u0438\u0435 \u0441\u0435\u0442\u0447\u0430\u0442\u043A\u0438."]],d=[["\u0423\u0434\u0443\u0448\u044C\u0435","oxyLoss"],["\u041F\u043E\u0432\u0440\u0435\u0436\u0434\u0435\u043D\u0438\u0435 \u043C\u043E\u0437\u0433\u0430","brainLoss"],["\u041E\u0442\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435","toxLoss"],["\u0420\u0430\u0434\u0438\u0430\u0446\u0438\u043E\u043D\u043D\u043E\u0435 \u043F\u043E\u0440\u0430\u0436\u0435\u043D\u0438\u0435","radLoss"],["\u041C\u0435\u0445\u0430\u043D\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u043F\u043E\u0432\u0440\u0435\u0436\u0434\u0435\u043D\u0438\u044F","bruteLoss"],["\u0413\u0435\u043D\u0435\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u043F\u043E\u0432\u0440\u0435\u0436\u0434\u0435\u043D\u0438\u044F","cloneLoss"],["\u0422\u0435\u0440\u043C\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u043F\u043E\u0432\u0440\u0435\u0436\u0434\u0435\u043D\u0438\u044F","fireLoss"],["\u041F\u0430\u0440\u0430\u043B\u0438\u0447 \u0442\u0435\u043B\u0430","paralysis"]],v={average:[.25,.5],bad:[.5,1/0]},_=function(B,w){for(var T=[],K=0;K0?B.filter(function(w){return!!w}).reduce(function(w,T){return(0,e.jsxs)(e.Fragment,{children:[w,(0,e.jsx)(a.az,{children:T},T.toString())]})},null):null},c=function(B){if(B>100){if(B<300)return"\u041B\u0451\u0433\u043A\u0430\u044F \u0438\u043D\u0444\u0435\u043A\u0446\u0438\u044F";if(B<400)return"\u041B\u0451\u0433\u043A\u0430\u044F \u0438\u043D\u0444\u0435\u043A\u0446\u0438\u044F+";if(B<500)return"\u041B\u0451\u0433\u043A\u0430\u044F \u0438\u043D\u0444\u0435\u043A\u0446\u0438\u044F++";if(B<700)return"\u041E\u0441\u0442\u0440\u0430\u044F \u0438\u043D\u0444\u0435\u043A\u0446\u0438\u044F";if(B<800)return"\u041E\u0441\u0442\u0440\u0430\u044F \u0438\u043D\u0444\u0435\u043A\u0446\u0438\u044F+";if(B<900)return"\u041E\u0441\u0442\u0440\u0430\u044F \u0438\u043D\u0444\u0435\u043A\u0446\u0438\u044F++";if(B>=900)return"\u0421\u0435\u043F\u0441\u0438\u0441"}return""},h=function(B){var w=(0,t.Oc)().data,T=w.occupied,K=w.occupant,R=T?(0,e.jsx)(g,{occupant:K}):(0,e.jsx)(M,{});return(0,e.jsx)(O.p8,{width:700,height:600,title:"\u041C\u0435\u0434\u0438\u0446\u0438\u043D\u0441\u043A\u0438\u0439 \u0441\u043A\u0430\u043D\u0435\u0440",children:(0,e.jsx)(O.p8.Content,{scrollable:!0,children:R})})},g=function(B){var w=B.occupant;return(0,e.jsxs)(a.az,{children:[(0,e.jsx)(p,{}),(0,e.jsx)(j,{occupant:w}),(0,e.jsx)(x,{occupant:w}),(0,e.jsx)(I,{organs:w.extOrgan}),(0,e.jsx)(P,{organs:w.intOrgan})]})},p=function(B){var w=(0,t.Oc)(),T=w.act,K=w.data,R=K.occupant;return(0,e.jsx)(a.wn,{title:"\u041F\u0430\u0446\u0438\u0435\u043D\u0442",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.$n,{icon:"print",onClick:function(){return T("print_p")},children:"\u0420\u0430\u0441\u043F\u0435\u0447\u0430\u0442\u0430\u0442\u044C \u043E\u0442\u0447\u0451\u0442"}),(0,e.jsx)(a.$n,{icon:"print",onClick:function(){return T("insurance")},children:"\u0421\u043F\u0438\u0441\u0430\u0442\u044C \u0441\u0442\u0440\u0430\u0445\u043E\u0432\u043A\u0443"}),(0,e.jsx)(a.$n,{icon:"user-slash",onClick:function(){return T("eject_id")},children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u043A\u0430\u0440\u0442\u0443"}),(0,e.jsx)(a.$n,{icon:"user-slash",onClick:function(){return T("ejectify")},children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430"})]}),children:(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"\u0418\u043C\u044F",children:R.name}),(0,e.jsx)(a.Ki.Item,{label:"\u041E\u0446\u0435\u043D\u043A\u0430 \u0437\u0434\u043E\u0440\u043E\u0432\u044C\u044F",children:(0,e.jsx)(a.z2,{minValue:0,maxValue:R.maxHealth,value:R.health,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.jsx)(a.Ki.Item,{label:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",color:f[R.stat][0],children:f[R.stat][1]}),(0,e.jsxs)(a.Ki.Item,{label:"\u0422\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430 \u0442\u0435\u043B\u0430",children:[(0,e.jsx)(a.zv,{value:(0,s.LI)(R.bodyTempC,0)}),"\xB0C,\xA0",(0,e.jsx)(a.zv,{value:(0,s.LI)(R.bodyTempF,0)}),"\xB0F"]}),(0,e.jsx)(a.Ki.Item,{label:"\u0418\u043C\u043F\u043B\u0430\u043D\u0442\u044B",children:R.implant_len?(0,e.jsx)(a.az,{children:R.implant.map(function(U){return U.name}).join(", ")}):(0,e.jsx)(a.az,{color:"label",children:"\u041E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044E\u0442"})})]})})},j=function(B){var w=B.occupant;return w.hasBorer||w.blind||w.colourblind||w.nearsighted||w.hasVirus?(0,e.jsx)(a.wn,{title:"\u041E\u0442\u043A\u043B\u043E\u043D\u0435\u043D\u0438\u044F",children:m.map(function(T,K){if(w[T[0]])return(0,e.jsx)(a.az,{color:T[1],bold:T[1]==="bad",children:T[2]},T[2])})}):(0,e.jsx)(a.wn,{title:"\u041E\u0442\u043A\u043B\u043E\u043D\u0435\u043D\u0438\u044F",children:(0,e.jsx)(a.az,{color:"label",children:"\u041D\u0438\u043A\u0430\u043A\u0438\u0445 \u043E\u0442\u043A\u043B\u043E\u043D\u0435\u043D\u0438\u0439 \u043E\u0442 \u043D\u043E\u0440\u043C\u044B \u043D\u0435 \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u043E."})})},x=function(B){var w=B.occupant;return(0,e.jsx)(a.wn,{title:"\u041E\u0431\u0449\u0438\u0439 \u0443\u0440\u043E\u043D",children:(0,e.jsx)(a.XI,{children:_(d,function(T,K,R){return(0,e.jsxs)(b.Fragment,{children:[(0,e.jsxs)(a.XI.Row,{color:"label",children:[(0,e.jsxs)(a.XI.Cell,{children:[T[0],":"]}),(0,e.jsxs)(a.XI.Cell,{children:[K[0],":"]})]}),(0,e.jsxs)(a.XI.Row,{color:"label",children:[(0,e.jsx)(a.XI.Cell,{children:(0,e.jsx)(C,{value:w[T[1]],mb:R100)&&"average"||!!w.status.robotic&&"label",width:"33%",children:(0,n.ZH)(w.name)}),(0,e.jsx)(a.XI.Cell,{textAlign:"center",children:(0,e.jsx)(a.z2,{m:-.5,minValue:0,maxValue:w.maxHealth,mt:T>0&&"0.5rem",value:w.totalLoss,ranges:v,children:(0,e.jsxs)(a.BJ,{children:[(0,e.jsx)(a.m_,{content:"\u041E\u0431\u0449\u0438\u0439 \u0443\u0440\u043E\u043D",children:(0,e.jsxs)(a.BJ.Item,{children:[(0,e.jsx)(a.In,{name:"heartbeat",mr:.5}),(0,s.LI)(w.totalLoss,0)]})}),!!w.bruteLoss&&(0,e.jsx)(a.m_,{content:"\u041C\u0435\u0445\u0430\u043D\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u043F\u043E\u0432\u0440\u0435\u0436\u0434\u0435\u043D\u0438\u044F",children:(0,e.jsxs)(a.BJ.Item,{grow:!0,children:[(0,e.jsx)(a.In,{name:"bone",mr:.5}),(0,s.LI)(w.bruteLoss,0)]})}),!!w.fireLoss&&(0,e.jsx)(a.m_,{content:"\u0422\u0435\u0440\u043C\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u043F\u043E\u0432\u0440\u0435\u0436\u0434\u0435\u043D\u0438\u044F",children:(0,e.jsxs)(a.BJ.Item,{children:[(0,e.jsx)(a.In,{name:"fire",mr:.5}),(0,s.LI)(w.fireLoss,0)]})}),!!w.bleed&&(0,e.jsx)(a.m_,{content:"\u041A\u0440\u043E\u0432\u043E\u0442\u0435\u0447\u0435\u043D\u0438\u0435",children:(0,e.jsxs)(a.BJ.Item,{children:[(0,e.jsx)(a.In,{name:"tint",mr:.5}),w.bleed_type," ",w.bleed," ",w.bleed_supp]})})]})})}),(0,e.jsxs)(a.XI.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:T>0&&"calc(0.5rem + 2px)",children:[(0,e.jsx)(a.az,{color:"average",inline:!0,children:l([!!w.internalBleeding&&"\u0412\u043D\u0443\u0442\u0440\u0435\u043D\u043D\u0435\u0435 \u043A\u0440\u043E\u0432\u043E\u0442\u0435\u0447\u0435\u043D\u0438\u0435",!!w.burnWound&&"\u041A\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u043E\u0436\u043E\u0433\u0438 \u0442\u043A\u0430\u043D\u0435\u0439",!!w.lungRuptured&&"\u041F\u0440\u043E\u0431\u0438\u0442\u043E \u043B\u0451\u0433\u043A\u043E\u0435",!!w.status.broken&&w.status.broken,c(w.germ_level),!!w.open&&"\u041E\u0442\u043A\u0440\u044B\u0442\u044B\u0439 \u0440\u0430\u0437\u0440\u0435\u0437"])}),(0,e.jsxs)(a.az,{inline:!0,children:[l([!!w.status.splinted&&(0,e.jsx)(a.az,{color:"good",children:"\u041D\u0430\u043B\u043E\u0436\u0435\u043D\u0430 \u0448\u0438\u043D\u0430"}),!!w.status.robotic&&(0,e.jsx)(a.az,{color:"label",children:"\u0421\u0438\u043D\u0442\u0435\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435"}),!!w.status.dead&&(0,e.jsx)(a.az,{color:"bad",bold:!0,children:"\u041C\u0435\u0440\u0442\u0432\u043E"})]),l(w.shrapnel.map(function(K){return K.known?K.name:"\u0418\u043D\u043E\u0440\u043E\u0434\u043D\u043E\u0435 \u0442\u0435\u043B\u043E"}))]})]})]},T)})]})})},P=function(B){return B.organs.length===0?(0,e.jsx)(a.wn,{title:"\u0412\u043D\u0443\u0442\u0440\u0435\u043D\u043D\u0438\u0435 \u043E\u0440\u0433\u0430\u043D\u044B",children:(0,e.jsx)(a.az,{color:"label",children:"\u041D/\u0414"})}):(0,e.jsx)(a.wn,{title:"\u0412\u043D\u0443\u0442\u0440\u0435\u043D\u043D\u0438\u0435 \u043E\u0440\u0433\u0430\u043D\u044B",children:(0,e.jsxs)(a.XI,{children:[(0,e.jsxs)(a.XI.Row,{header:!0,children:[(0,e.jsx)(a.XI.Cell,{children:"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435"}),(0,e.jsx)(a.XI.Cell,{textAlign:"center",children:"\u041E\u0431\u0449\u0438\u0439 \u0443\u0440\u043E\u043D"}),(0,e.jsx)(a.XI.Cell,{textAlign:"right",children:"\u0422\u0440\u0430\u0432\u043C\u044B"})]}),B.organs.map(function(w,T){return(0,e.jsxs)(a.XI.Row,{children:[(0,e.jsx)(a.XI.Cell,{color:!!w.dead&&"bad"||w.germ_level>100&&"average"||w.robotic>0&&"label",width:"33%",children:(0,n.ZH)(w.name)}),(0,e.jsx)(a.XI.Cell,{textAlign:"center",children:(0,e.jsx)(a.z2,{minValue:0,maxValue:w.maxHealth,value:w.damage,mt:T>0&&"0.5rem",ranges:v,children:(0,s.LI)(w.damage,0)})}),(0,e.jsxs)(a.XI.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:T>0&&"calc(0.5rem + 2px)",children:[(0,e.jsx)(a.az,{color:"average",inline:!0,children:l([c(w.germ_level)])}),(0,e.jsx)(a.az,{inline:!0,children:l([w.robotic===1&&(0,e.jsx)(a.az,{color:"label",children:"\u0421\u0438\u043D\u0442\u0435\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435"}),w.robotic===2&&(0,e.jsx)(a.az,{color:"label",children:"\u0421\u0438\u043D\u0442\u0435\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435"}),!!w.dead&&(0,e.jsx)(a.az,{color:"bad",bold:!0,children:"\u041C\u0435\u0440\u0442\u0432\u043E"})])})]})]},T)})]})})},M=function(){return(0,e.jsx)(a.wn,{fill:!0,children:(0,e.jsx)(a.BJ,{fill:!0,textAlign:"center",children:(0,e.jsxs)(a.BJ.Item,{grow:!0,align:"center",color:"label",children:[(0,e.jsx)(a.In,{name:"user-slash",mb:"0.5rem",size:5}),(0,e.jsx)("br",{}),"\u041F\u0430\u0446\u0438\u0435\u043D\u0442 \u0432\u043D\u0443\u0442\u0440\u0438 \u043D\u0435 \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D."]})})})}},2555:(q,S,r)=>{"use strict";r.d(S,{l:()=>t});var e=r(1131),s=r(5180);/** + */let e;const s=null,n=[],t=()=>{},a=m=>{n.push(m)},b=m=>typeof m=="number"&&!Number.isFinite(m)?{__number__:String(m)}:typeof m>"u"?{__undefined__:!0}:m,O=m=>{let d=[];const _=JSON.stringify(m,(l,c)=>typeof c!="object"?b(c):c===null?c:d.includes(c)?"[circular ref]":(d.push(c),c instanceof Error||c.code&&c.message&&c.message.includes("Error")?{__error__:!0,string:String(c),stack:c.stack}:Array.isArray(c)?c.map(b):c));return d=null,_},y=m=>{},u=(m,d,...v)=>{},f=()=>{}},2424:(q,S,r)=>{"use strict";r.r(S),r.d(S,{TemporaryNotice:()=>a});var e=r(1131),s=r(360),n=r(5180);function t(){return t=Object.assign||function(b){for(var O=1;O{"use strict";r.r(S),r.d(S,{Minesweeper:()=>b});var e=r(1131),s=r(360),n=r(7003),t=r(5180),a=r(3521),b=function(O){var y=(0,s.Oc)(),u=y.act,f=y.data,m=f.matrix,d=f.showMessage,v=f.tokens,_=f.uiWidth,l={1:"blue",2:"green",3:"red",4:"darkblue",5:"brown",6:"lightblue",7:"black",8:"white"};document.addEventListener("contextmenu",function(x){return x.preventDefault()});var c=function(x,C,I){x.button!==0&&x.button!==2||u("Square",{X:C,Y:I,mode:x.button===2?j[g]:g})},h=(0,n.useState)("bomb"),g=h[0],p=h[1],j={flag:"bomb",bomb:"flag"};return(0,e.jsx)(a.p8,{theme:"ntOS95",width:_+80,height:750,children:(0,e.jsx)(a.p8.Content,{children:(0,e.jsx)(t.BJ,{fill:!0,vertical:!0,children:(0,e.jsxs)(t.wn,{title:"\u0418\u0433\u0440\u043E\u0432\u043E\u0435 \u043F\u043E\u043B\u0435",textAlign:"center",fill:!0,fitted:!0,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"bomb",iconColor:"black",selected:g==="bomb",onClick:function(){return p("bomb")}}),(0,e.jsx)(t.$n,{icon:"flag",iconColor:"red",selected:g==="flag",onClick:function(){return p("flag")}}),(0,e.jsx)(t.$n,{icon:"cog",onClick:function(){return u("Mode",{mode:"16x30"})}})]}),children:[(0,e.jsx)("p",{}),Object.keys(m).map(function(x){return(0,e.jsx)(t.az,{children:Object.keys(m[x]).map(function(C){return(0,e.jsx)(t.$n,{m:"1px",height:"30px",width:"30px",className:m[x][C].open?"Minesweeper__open":"Minesweeper__closed",bold:!0,color:"transparent",icon:m[x][C].open?m[x][C].bomb?"bomb":"":m[x][C].flag?"flag":"",textColor:m[x][C].open?m[x][C].bomb?"black":l[m[x][C].around]:m[x][C].flag?"red":"gray",onMouseDown:function(I){return c(I,x,C)},children:m[x][C].open&&!m[x][C].bomb&&m[x][C].around?m[x][C].around:" "},C)})},x)}),(0,e.jsx)("p",{}),(0,e.jsxs)(t.az,{textAlign:"center",className:"Minesweeper__message",children:["\u0414\u043B\u044F \u043F\u043E\u0431\u0435\u0434\u044B \u043D\u0443\u0436\u043D\u043E \u043F\u043E\u043C\u0435\u0442\u0438\u0442\u044C \u0444\u043B\u0430\u0436\u043A\u0430\u043C\u0438 \u0432\u0441\u0435 \u0431\u043E\u043C\u0431\u044B, \u0430 \u0442\u0430\u043A\u0436\u0435 \u043E\u0442\u043A\u0440\u044B\u0442\u044C \u0432\u0441\u0435 \u043F\u0443\u0441\u0442\u044B\u0435 \u043A\u043B\u0435\u0442\u043A\u0438.",(0,e.jsx)("br",{}),"\u0411\u0430\u043B\u0430\u043D\u0441 \u0442\u043E\u043A\u0435\u043D\u043E\u0432: ",v,(0,e.jsx)("br",{}),d]})]})})})})}},2469:(q,S,r)=>{"use strict";r.r(S),r.d(S,{SecureStorage:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(b){var O=(0,s.Oc)(),y=O.act,u=O.data,f=u.emagged,m=u.locked,d=u.l_set,v=u.l_setshort,_=u.current_code,l=function(c){var h=c.buttonValue,g=c.color;return g||(g="default"),(0,e.jsx)(n.$n,{disabled:f||v,color:g,onClick:function(){return y("setnumber",{buttonValue:h})},children:h})};return(0,e.jsx)(t.p8,{width:520,height:200,children:(0,e.jsxs)(n.so,{spacing:"1",children:[(0,e.jsx)(n.so.Item,{width:16,shrink:0,textAlign:"center",children:(0,e.jsxs)(n.wn,{title:"Code Panel",children:[(0,e.jsxs)(n.so.Item,{children:[(0,e.jsx)(l,{buttonValue:"1"}),(0,e.jsx)(l,{buttonValue:"2"}),(0,e.jsx)(l,{buttonValue:"3"})]}),(0,e.jsxs)(n.so.Item,{children:[(0,e.jsx)(l,{buttonValue:"4"}),(0,e.jsx)(l,{buttonValue:"5"}),(0,e.jsx)(l,{buttonValue:"6"})]}),(0,e.jsxs)(n.so.Item,{children:[(0,e.jsx)(l,{buttonValue:"7"}),(0,e.jsx)(l,{buttonValue:"8"}),(0,e.jsx)(l,{buttonValue:"9"})]}),(0,e.jsxs)(n.so.Item,{children:[(0,e.jsx)(l,{buttonValue:"R",color:"red"}),(0,e.jsx)(l,{buttonValue:"0"}),(0,e.jsx)(l,{buttonValue:"E",color:"green"})]})]})}),(0,e.jsx)(n.wn,{title:"Current Status",children:f||v?(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Lock Status",children:(0,e.jsx)(n.az,{color:"red",children:f?"LOCKING SYSTEM ERROR - 1701":"ALERT: MEMORY SYSTEM ERROR - 6040 201"})}),f?(0,e.jsx)(n.Ki.Item,{label:"Input Code",children:(0,e.jsx)(n.az,{color:"red",children:"NEW INPUT, ASSHOLE"})}):""]}):(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Secure Code",children:(0,e.jsx)(n.az,{color:d?"red":"green",children:d?"*****":"NOT SET. ENTER NEW."})}),(0,e.jsx)(n.Ki.Item,{label:"Lock Status",children:(0,e.jsx)(n.az,{color:m?"red":"green",children:m?"Locked":"Unlocked"})}),(0,e.jsx)(n.Ki.Item,{label:"Input Code",children:(0,e.jsx)(n.az,{children:_||"Waiting for input"})}),(0,e.jsx)(n.$n,{top:".35em",left:".5em",disabled:m,color:"red",icon:"lock",onClick:function(){return y("close")},children:"Lock"})]})})]})})}},2476:(q,S,r)=>{"use strict";r.r(S),r.d(S,{pda_janitor:()=>t});var e=r(1131),s=r(360),n=r(5180),t=function(a){var b=(0,s.Oc)().data,O=b.janitor,y=O.user_loc,u=O.mops,f=O.buckets,m=O.cleanbots,d=O.carts;return(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Current Location",children:[y.x,",",y.y]}),u&&(0,e.jsx)(n.Ki.Item,{label:"Mop Locations",children:u.map(function(v){return(0,e.jsxs)(n.az,{children:[v.x,",",v.y," (",v.dir,") - ",v.status]},v)})}),f&&(0,e.jsx)(n.Ki.Item,{label:"Mop Bucket Locations",children:f.map(function(v){return(0,e.jsxs)(n.az,{children:[v.x,",",v.y," (",v.dir,") - [",v.volume,"/",v.max_volume,"]"]},v)})}),m&&(0,e.jsx)(n.Ki.Item,{label:"Cleanbot Locations",children:m.map(function(v){return(0,e.jsxs)(n.az,{children:[v.x,",",v.y," (",v.dir,") - ",v.status]},v)})}),d&&(0,e.jsx)(n.Ki.Item,{label:"Janitorial Cart Locations",children:d.map(function(v){return(0,e.jsxs)(n.az,{children:[v.x,",",v.y," (",v.dir,") - [",v.volume,"/",v.max_volume,"]"]},v)})})]})}},2485:(q,S,r)=>{"use strict";r.r(S),r.d(S,{BodyScanner:()=>h});var e=r(1131),s=r(9818),n=r(9845),t=r(360),a=r(5180),b=r(3521),O=r(7003);function y(){return y=Object.assign||function(B){for(var w=1;w=0)&&(T[R]=B[R]);return T}var f=[["good","\u041D\u043E\u0440\u043C\u0430"],["average","\u041A\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435"],["bad","\u0417\u0430\u0444\u0438\u043A\u0441\u0438\u0440\u043E\u0432\u0430\u043D\u0430 \u0441\u043C\u0435\u0440\u0442\u044C"]],m=[["hasBorer","bad","\u0412 \u043B\u043E\u0431\u043D\u043E\u0439 \u0434\u043E\u043B\u0435 \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u043E \u043A\u0440\u0443\u043F\u043D\u043E\u0435 \u043E\u0431\u0440\u0430\u0437\u043E\u0432\u0430\u043D\u0438\u0435, \u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E, \u0437\u043B\u043E\u043A\u0430\u0447\u0435\u0441\u0442\u0432\u0435\u043D\u043D\u043E\u0435. \u0420\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0443\u0435\u0442\u0441\u044F \u0445\u0438\u0440\u0443\u0440\u0433\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u0443\u0434\u0430\u043B\u0435\u043D\u0438\u0435."],["hasVirus","bad","\u041E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D \u0432\u0438\u0440\u0443\u0441 \u0432 \u043A\u0440\u043E\u0432\u043E\u0442\u043E\u043A\u0435 \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430."],["blind","average","\u041E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u0430 \u043A\u0430\u0442\u0430\u0440\u0430\u043A\u0442\u0430."],["colourblind","average","\u041E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u044B \u043D\u0430\u0440\u0443\u0448\u0435\u043D\u0438\u044F \u0432 \u0440\u0430\u0431\u043E\u0442\u0435 \u0444\u043E\u0442\u043E\u0440\u0435\u0446\u0435\u043F\u0442\u043E\u0440\u043E\u0432"],["nearsighted","average","\u041E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u043E \u0441\u043C\u0435\u0449\u0435\u043D\u0438\u0435 \u0441\u0435\u0442\u0447\u0430\u0442\u043A\u0438."]],d=[["\u0423\u0434\u0443\u0448\u044C\u0435","oxyLoss"],["\u041F\u043E\u0432\u0440\u0435\u0436\u0434\u0435\u043D\u0438\u0435 \u043C\u043E\u0437\u0433\u0430","brainLoss"],["\u041E\u0442\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435","toxLoss"],["\u0420\u0430\u0434\u0438\u0430\u0446\u0438\u043E\u043D\u043D\u043E\u0435 \u043F\u043E\u0440\u0430\u0436\u0435\u043D\u0438\u0435","radLoss"],["\u041C\u0435\u0445\u0430\u043D\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u043F\u043E\u0432\u0440\u0435\u0436\u0434\u0435\u043D\u0438\u044F","bruteLoss"],["\u0413\u0435\u043D\u0435\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u043F\u043E\u0432\u0440\u0435\u0436\u0434\u0435\u043D\u0438\u044F","cloneLoss"],["\u0422\u0435\u0440\u043C\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u043F\u043E\u0432\u0440\u0435\u0436\u0434\u0435\u043D\u0438\u044F","fireLoss"],["\u041F\u0430\u0440\u0430\u043B\u0438\u0447 \u0442\u0435\u043B\u0430","paralysis"]],v={average:[.25,.5],bad:[.5,1/0]},_=function(B,w){for(var T=[],K=0;K0?B.filter(function(w){return!!w}).reduce(function(w,T){return(0,e.jsxs)(e.Fragment,{children:[w,(0,e.jsx)(a.az,{children:T},T.toString())]})},null):null},c=function(B){if(B>100){if(B<300)return"\u041B\u0451\u0433\u043A\u0430\u044F \u0438\u043D\u0444\u0435\u043A\u0446\u0438\u044F";if(B<400)return"\u041B\u0451\u0433\u043A\u0430\u044F \u0438\u043D\u0444\u0435\u043A\u0446\u0438\u044F+";if(B<500)return"\u041B\u0451\u0433\u043A\u0430\u044F \u0438\u043D\u0444\u0435\u043A\u0446\u0438\u044F++";if(B<700)return"\u041E\u0441\u0442\u0440\u0430\u044F \u0438\u043D\u0444\u0435\u043A\u0446\u0438\u044F";if(B<800)return"\u041E\u0441\u0442\u0440\u0430\u044F \u0438\u043D\u0444\u0435\u043A\u0446\u0438\u044F+";if(B<900)return"\u041E\u0441\u0442\u0440\u0430\u044F \u0438\u043D\u0444\u0435\u043A\u0446\u0438\u044F++";if(B>=900)return"\u0421\u0435\u043F\u0441\u0438\u0441"}return""},h=function(B){var w=(0,t.Oc)().data,T=w.occupied,K=w.occupant,R=T?(0,e.jsx)(g,{occupant:K}):(0,e.jsx)(M,{});return(0,e.jsx)(b.p8,{width:700,height:600,title:"\u041C\u0435\u0434\u0438\u0446\u0438\u043D\u0441\u043A\u0438\u0439 \u0441\u043A\u0430\u043D\u0435\u0440",children:(0,e.jsx)(b.p8.Content,{scrollable:!0,children:R})})},g=function(B){var w=B.occupant;return(0,e.jsxs)(a.az,{children:[(0,e.jsx)(p,{}),(0,e.jsx)(j,{occupant:w}),(0,e.jsx)(x,{occupant:w}),(0,e.jsx)(I,{organs:w.extOrgan}),(0,e.jsx)(P,{organs:w.intOrgan})]})},p=function(B){var w=(0,t.Oc)(),T=w.act,K=w.data,R=K.occupant;return(0,e.jsx)(a.wn,{title:"\u041F\u0430\u0446\u0438\u0435\u043D\u0442",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.$n,{icon:"print",onClick:function(){return T("print_p")},children:"\u0420\u0430\u0441\u043F\u0435\u0447\u0430\u0442\u0430\u0442\u044C \u043E\u0442\u0447\u0451\u0442"}),(0,e.jsx)(a.$n,{icon:"print",onClick:function(){return T("insurance")},children:"\u0421\u043F\u0438\u0441\u0430\u0442\u044C \u0441\u0442\u0440\u0430\u0445\u043E\u0432\u043A\u0443"}),(0,e.jsx)(a.$n,{icon:"user-slash",onClick:function(){return T("eject_id")},children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u043A\u0430\u0440\u0442\u0443"}),(0,e.jsx)(a.$n,{icon:"user-slash",onClick:function(){return T("ejectify")},children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430"})]}),children:(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"\u0418\u043C\u044F",children:R.name}),(0,e.jsx)(a.Ki.Item,{label:"\u041E\u0446\u0435\u043D\u043A\u0430 \u0437\u0434\u043E\u0440\u043E\u0432\u044C\u044F",children:(0,e.jsx)(a.z2,{minValue:0,maxValue:R.maxHealth,value:R.health,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.jsx)(a.Ki.Item,{label:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",color:f[R.stat][0],children:f[R.stat][1]}),(0,e.jsxs)(a.Ki.Item,{label:"\u0422\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430 \u0442\u0435\u043B\u0430",children:[(0,e.jsx)(a.zv,{value:(0,s.LI)(R.bodyTempC,0)}),"\xB0C,\xA0",(0,e.jsx)(a.zv,{value:(0,s.LI)(R.bodyTempF,0)}),"\xB0F"]}),(0,e.jsx)(a.Ki.Item,{label:"\u0418\u043C\u043F\u043B\u0430\u043D\u0442\u044B",children:R.implant_len?(0,e.jsx)(a.az,{children:R.implant.map(function(U){return U.name}).join(", ")}):(0,e.jsx)(a.az,{color:"label",children:"\u041E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044E\u0442"})})]})})},j=function(B){var w=B.occupant;return w.hasBorer||w.blind||w.colourblind||w.nearsighted||w.hasVirus?(0,e.jsx)(a.wn,{title:"\u041E\u0442\u043A\u043B\u043E\u043D\u0435\u043D\u0438\u044F",children:m.map(function(T,K){if(w[T[0]])return(0,e.jsx)(a.az,{color:T[1],bold:T[1]==="bad",children:T[2]},T[2])})}):(0,e.jsx)(a.wn,{title:"\u041E\u0442\u043A\u043B\u043E\u043D\u0435\u043D\u0438\u044F",children:(0,e.jsx)(a.az,{color:"label",children:"\u041D\u0438\u043A\u0430\u043A\u0438\u0445 \u043E\u0442\u043A\u043B\u043E\u043D\u0435\u043D\u0438\u0439 \u043E\u0442 \u043D\u043E\u0440\u043C\u044B \u043D\u0435 \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u043E."})})},x=function(B){var w=B.occupant;return(0,e.jsx)(a.wn,{title:"\u041E\u0431\u0449\u0438\u0439 \u0443\u0440\u043E\u043D",children:(0,e.jsx)(a.XI,{children:_(d,function(T,K,R){return(0,e.jsxs)(O.Fragment,{children:[(0,e.jsxs)(a.XI.Row,{color:"label",children:[(0,e.jsxs)(a.XI.Cell,{children:[T[0],":"]}),(0,e.jsxs)(a.XI.Cell,{children:[K[0],":"]})]}),(0,e.jsxs)(a.XI.Row,{color:"label",children:[(0,e.jsx)(a.XI.Cell,{children:(0,e.jsx)(C,{value:w[T[1]],mb:R100)&&"average"||!!w.status.robotic&&"label",width:"33%",children:(0,n.ZH)(w.name)}),(0,e.jsx)(a.XI.Cell,{textAlign:"center",children:(0,e.jsx)(a.z2,{m:-.5,minValue:0,maxValue:w.maxHealth,mt:T>0&&"0.5rem",value:w.totalLoss,ranges:v,children:(0,e.jsxs)(a.BJ,{children:[(0,e.jsx)(a.m_,{content:"\u041E\u0431\u0449\u0438\u0439 \u0443\u0440\u043E\u043D",children:(0,e.jsxs)(a.BJ.Item,{children:[(0,e.jsx)(a.In,{name:"heartbeat",mr:.5}),(0,s.LI)(w.totalLoss,0)]})}),!!w.bruteLoss&&(0,e.jsx)(a.m_,{content:"\u041C\u0435\u0445\u0430\u043D\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u043F\u043E\u0432\u0440\u0435\u0436\u0434\u0435\u043D\u0438\u044F",children:(0,e.jsxs)(a.BJ.Item,{grow:!0,children:[(0,e.jsx)(a.In,{name:"bone",mr:.5}),(0,s.LI)(w.bruteLoss,0)]})}),!!w.fireLoss&&(0,e.jsx)(a.m_,{content:"\u0422\u0435\u0440\u043C\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u043F\u043E\u0432\u0440\u0435\u0436\u0434\u0435\u043D\u0438\u044F",children:(0,e.jsxs)(a.BJ.Item,{children:[(0,e.jsx)(a.In,{name:"fire",mr:.5}),(0,s.LI)(w.fireLoss,0)]})}),!!w.bleed&&(0,e.jsx)(a.m_,{content:"\u041A\u0440\u043E\u0432\u043E\u0442\u0435\u0447\u0435\u043D\u0438\u0435",children:(0,e.jsxs)(a.BJ.Item,{children:[(0,e.jsx)(a.In,{name:"tint",mr:.5}),w.bleed_type," ",w.bleed," ",w.bleed_supp]})})]})})}),(0,e.jsxs)(a.XI.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:T>0&&"calc(0.5rem + 2px)",children:[(0,e.jsx)(a.az,{color:"average",inline:!0,children:l([!!w.internalBleeding&&"\u0412\u043D\u0443\u0442\u0440\u0435\u043D\u043D\u0435\u0435 \u043A\u0440\u043E\u0432\u043E\u0442\u0435\u0447\u0435\u043D\u0438\u0435",!!w.burnWound&&"\u041A\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u043E\u0436\u043E\u0433\u0438 \u0442\u043A\u0430\u043D\u0435\u0439",!!w.lungRuptured&&"\u041F\u0440\u043E\u0431\u0438\u0442\u043E \u043B\u0451\u0433\u043A\u043E\u0435",!!w.status.broken&&w.status.broken,c(w.germ_level),!!w.open&&"\u041E\u0442\u043A\u0440\u044B\u0442\u044B\u0439 \u0440\u0430\u0437\u0440\u0435\u0437"])}),(0,e.jsxs)(a.az,{inline:!0,children:[l([!!w.status.splinted&&(0,e.jsx)(a.az,{color:"good",children:"\u041D\u0430\u043B\u043E\u0436\u0435\u043D\u0430 \u0448\u0438\u043D\u0430"}),!!w.status.robotic&&(0,e.jsx)(a.az,{color:"label",children:"\u0421\u0438\u043D\u0442\u0435\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435"}),!!w.status.dead&&(0,e.jsx)(a.az,{color:"bad",bold:!0,children:"\u041C\u0435\u0440\u0442\u0432\u043E"})]),l(w.shrapnel.map(function(K){return K.known?K.name:"\u0418\u043D\u043E\u0440\u043E\u0434\u043D\u043E\u0435 \u0442\u0435\u043B\u043E"}))]})]})]},T)})]})})},P=function(B){return B.organs.length===0?(0,e.jsx)(a.wn,{title:"\u0412\u043D\u0443\u0442\u0440\u0435\u043D\u043D\u0438\u0435 \u043E\u0440\u0433\u0430\u043D\u044B",children:(0,e.jsx)(a.az,{color:"label",children:"\u041D/\u0414"})}):(0,e.jsx)(a.wn,{title:"\u0412\u043D\u0443\u0442\u0440\u0435\u043D\u043D\u0438\u0435 \u043E\u0440\u0433\u0430\u043D\u044B",children:(0,e.jsxs)(a.XI,{children:[(0,e.jsxs)(a.XI.Row,{header:!0,children:[(0,e.jsx)(a.XI.Cell,{children:"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435"}),(0,e.jsx)(a.XI.Cell,{textAlign:"center",children:"\u041E\u0431\u0449\u0438\u0439 \u0443\u0440\u043E\u043D"}),(0,e.jsx)(a.XI.Cell,{textAlign:"right",children:"\u0422\u0440\u0430\u0432\u043C\u044B"})]}),B.organs.map(function(w,T){return(0,e.jsxs)(a.XI.Row,{children:[(0,e.jsx)(a.XI.Cell,{color:!!w.dead&&"bad"||w.germ_level>100&&"average"||w.robotic>0&&"label",width:"33%",children:(0,n.ZH)(w.name)}),(0,e.jsx)(a.XI.Cell,{textAlign:"center",children:(0,e.jsx)(a.z2,{minValue:0,maxValue:w.maxHealth,value:w.damage,mt:T>0&&"0.5rem",ranges:v,children:(0,s.LI)(w.damage,0)})}),(0,e.jsxs)(a.XI.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:T>0&&"calc(0.5rem + 2px)",children:[(0,e.jsx)(a.az,{color:"average",inline:!0,children:l([c(w.germ_level)])}),(0,e.jsx)(a.az,{inline:!0,children:l([w.robotic===1&&(0,e.jsx)(a.az,{color:"label",children:"\u0421\u0438\u043D\u0442\u0435\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435"}),w.robotic===2&&(0,e.jsx)(a.az,{color:"label",children:"\u0421\u0438\u043D\u0442\u0435\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435"}),!!w.dead&&(0,e.jsx)(a.az,{color:"bad",bold:!0,children:"\u041C\u0435\u0440\u0442\u0432\u043E"})])})]})]},T)})]})})},M=function(){return(0,e.jsx)(a.wn,{fill:!0,children:(0,e.jsx)(a.BJ,{fill:!0,textAlign:"center",children:(0,e.jsxs)(a.BJ.Item,{grow:!0,align:"center",color:"label",children:[(0,e.jsx)(a.In,{name:"user-slash",mb:"0.5rem",size:5}),(0,e.jsx)("br",{}),"\u041F\u0430\u0446\u0438\u0435\u043D\u0442 \u0432\u043D\u0443\u0442\u0440\u0438 \u043D\u0435 \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D."]})})})}},2555:(q,S,r)=>{"use strict";r.d(S,{l:()=>t});var e=r(1131),s=r(5180);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */function n(){return n=Object.assign||function(a){for(var O=1;O{"use strict";r.r(S),r.d(S,{PDAColorRow:()=>O,PDAPainter:()=>a});var e=r(1131),s=r(360),n=r(3521),t=r(5180),a=function(b){var y=(0,s.Oc)(),u=y.act,f=y.data,m=f.statusLabel,d=f.pdaTypes,v=f.hasPDA,_=f.pdaIcon,l=f.pdaIconState,c=f.pdaOwnerName,h=f.pdaJobName;return(0,e.jsx)(n.p8,{width:545,height:350,children:(0,e.jsx)(n.p8.Content,{children:(0,e.jsxs)(t.so,{spacing:1,direction:"row",height:"100%",flex:"1",children:[(0,e.jsxs)(t.so.Item,{width:24,shrink:0,children:[(0,e.jsx)(t.wn,{title:"\u041E\u0431\u0449\u0435\u0435",buttons:(0,e.jsx)(t.$n,{fluid:!0,icon:v?"eject":"exclamation-triangle",selected:v,tooltip:v?"\u0418\u0437\u0432\u043B\u0435\u0447\u044C PDA":"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044C PDA",tooltipPosition:"left",onClick:function(){return u(v?"eject_pda":"insert_pda")},children:v?"\u0418\u0437\u0432\u043B\u0435\u0447\u044C":"-----"}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"\u0418\u043C\u044F",children:c||"\u041D/\u0414"}),(0,e.jsx)(t.Ki.Item,{label:"\u0414\u043E\u043B\u0436\u043D\u043E\u0441\u0442\u044C",children:h||"\u041D/\u0414"})]})}),(0,e.jsx)(t.wn,{children:(0,e.jsx)(t.so,{height:"100%",direction:"column",flex:"1",children:(0,e.jsxs)(t.so.Item,{children:[(0,e.jsx)(t.az,{textAlign:"center",children:(0,e.jsx)(t.Hg,{height:"160px",icon:_,icon_state:l,align:"middle"})}),(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"\u0421\u0442\u0430\u0442\u0443\u0441",children:m})}),(0,e.jsx)(t.$n.Confirm,{m:"5px",fluid:!0,disabled:!v,confirmContent:"\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044C?",textAlign:"left",color:"red",tooltip:"C\u0431\u0440\u043E\u0441\u0438\u0442\u044C \u0442\u0435\u043B\u0435\u0444\u043E\u043D \u043D\u0430 \u0437\u0430\u0432\u043E\u0434\u0441\u043A\u0438\u0435 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltipPosition:"top",onClick:function(){return u("erase_pda")},children:"\u0421\u0442\u0435\u0440\u0435\u0442\u044C PDA"})]})})})]}),(0,e.jsx)(t.so.Item,{width:27,children:(0,e.jsx)(t.so,{direction:"column",height:"100%",flex:"1",children:(0,e.jsx)(t.wn,{title:"\u0426\u0432\u0435\u0442 PDA",flexGrow:!0,scrollable:!0,fill:!0,children:(0,e.jsx)(t.XI,{children:Object.keys(d).map(function(g){return(0,e.jsx)(O,{selectedPda:g},g)})})})})})]})})})},O=function(b){var y=(0,s.Oc)(),u=y.act,f=y.data,m=f.hasPDA,d=f.pdaIcon,v=b.selectedPda;return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:(0,e.jsx)(t.Hg,{icon:d,icon_state:v,style:{verticalAlign:"middle",width:"32px",margin:"0px",marginLeft:"0px"}})}),(0,e.jsx)(t.XI.Cell,{bold:!0,children:(0,e.jsx)(t.$n.Confirm,{fluid:!0,disabled:!m,icon:v,confirmContent:"\u041F\u043E\u043A\u0440\u0430\u0441\u0438\u0442\u044C?",textAlign:"left",onClick:function(){return u("choose_pda",{selectedPda:v})},children:v})})]})}},2651:(q,S,r)=>{"use strict";r.r(S),r.d(S,{Electropack:()=>O});var e=r(1131),s=r(9818),n=r(360),t=r(5180),a=r(3521),O=function(b){var y=(0,n.Oc)(),u=y.act,f=y.data,m=f.power,d=f.code,v=f.frequency,_=f.minFrequency,l=f.maxFrequency;return(0,e.jsx)(a.p8,{width:360,height:150,children:(0,e.jsx)(a.p8.Content,{children:(0,e.jsx)(t.wn,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Power",children:(0,e.jsx)(t.$n,{icon:m?"power-off":"times",selected:m,onClick:function(){return u("power")},children:m?"On":"Off"})}),(0,e.jsx)(t.Ki.Item,{label:"Frequency",buttons:(0,e.jsx)(t.$n,{icon:"sync",onClick:function(){return u("reset",{reset:"freq"})},children:"Reset"}),children:(0,e.jsx)(t.Q7,{animated:!0,unit:"kHz",step:.2,stepPixelSize:6,minValue:_/10,maxValue:l/10,value:v/10,format:function(c){return(0,s.Mg)(c,1)},width:"80px",onChange:function(c){return u("freq",{freq:c})}})}),(0,e.jsx)(t.Ki.Item,{label:"Code",buttons:(0,e.jsx)(t.$n,{icon:"sync",onClick:function(){return u("reset",{reset:"code"})},children:"Reset"}),children:(0,e.jsx)(t.Q7,{animated:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:d,width:"80px",onChange:function(c){return u("code",{code:c})}})})]})})})})}},2673:(q,S,r)=>{"use strict";r.r(S),r.d(S,{CreateObjectSettings:()=>m});var e=r(1131),s=r(8523),n=r(7003),t=r(5180),a=r(360),O=r(1160);function b(d,v,_,l,c,h,g){try{var p=d[h](g),j=p.value}catch(x){_(x);return}p.done?v(j):Promise.resolve(j).then(l,c)}function y(d){return function(){var v=this,_=arguments;return new Promise(function(l,c){var h=d.apply(v,_);function g(j){b(h,l,c,g,p,"next",j)}function p(j){b(h,l,c,g,p,"throw",j)}g(void 0)})}}function u(){return u=Object.assign||function(d){for(var v=1;v0&&c[c.length-1])&&(x[0]===6||x[0]===2)){h=0;continue}if(x[0]===3&&(!c||x[1]>c[0]&&x[1]{"use strict";r.r(S),r.d(S,{Content:()=>d,Mecha:()=>m});var e=r(1131),s=r(7003),n=r(5180),t=r(8477),a=r(3211),O=r(360),b=r(3521),y=r(7309),u=r(8951),f=r(78),m=function(g){var p=(0,O.Oc)().data;return(0,e.jsx)(b.p8,{theme:p.ui_theme,width:800,height:560,children:(0,e.jsx)(b.p8.Content,{children:(0,e.jsx)(d,{})})})},d=function(g){var p=(0,O.Oc)(),j=p.act,x=p.data,C=(0,s.useState)(!1),I=C[0],P=C[1],M=x.name,B=x.mech_view,w=x.id_lock_on,T=x.accesses,K=x.one_access,R=x.regions,U=x.ui_honked,F=(0,f.useHonk)(U?.4:0);return(0,e.jsxs)(n.BJ,{fill:!0,children:[(0,e.jsx)(n.BJ.Item,{grow:1,children:(0,e.jsxs)(n.BJ,{vertical:!0,fill:!0,children:[(0,e.jsx)(n.BJ.Item,{grow:!0,overflow:"hidden",children:(0,e.jsx)(n.wn,{fill:!0,title:M,buttons:(0,e.jsx)(n.$n,{icon:"edit",tooltip:"\u041F\u0435\u0440\u0435\u0438\u043C\u0435\u043D\u043E\u0432\u0430\u0442\u044C",tooltipPosition:"left",onClick:function(){return j("changename")}}),children:(0,e.jsxs)(n.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.D1,{height:"170px",params:{id:B,zoom:5,type:"map"}})}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(_,{}),(0,e.jsx)(v,{}),(0,e.jsx)(l,{}),(0,e.jsx)(c,{}),(0,e.jsx)(h,{}),(0,e.jsxs)(n.Ki.Item,{label:F("ID \u0431\u043B\u043E\u043A"),children:[(0,e.jsx)(n.$n,{icon:w?"lock":"lock-open",content:F(w?"\u0412\u043A\u043B\u044E\u0447\u0435\u043D":"\u0412\u044B\u043A\u043B\u044E\u0447\u0435\u043D"),tooltipPosition:"top",onClick:function(){P(!1),j("toggle_id_lock")},selected:w}),!!w&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{tooltip:"\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0434\u043E\u0441\u0442\u0443\u043F\u044B",tooltipPosition:"top",icon:"id-card-o",disabled:!R,onClick:function(){return P(!I)},selected:I}),(0,e.jsx)(n.$n,{tooltip:K?"\u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044F \u043B\u044E\u0431\u043E\u0439":"\u0422\u0440\u0435\u0431\u0443\u044E\u0442\u0441\u044F \u0432\u0441\u0435",tooltipPosition:"top",icon:K?"check":"check-double",onClick:function(){return j("one_access")}})]})]})]})})]})})}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(y.AlertPane,{})})]})}),(0,e.jsx)(n.BJ.Item,{grow:2,children:I&&R?(0,e.jsx)(a.AccessList,{accesses:R,selectedList:T,accessMod:function($){return j("set",{access:$})},grantAll:function(){return j("grant_all")},denyAll:function(){return j("clear_all")},grantDep:function($){return j("grant_region",{region:$})},denyDep:function($){return j("deny_region",{region:$})}}):(0,e.jsx)(u.ModulesPane,{})})]})},v=function(g){var p=(0,O.Oc)(),j=p.act,x=p.data,C=x.power_level,I=x.power_max,P=x.ui_honked,M=(0,f.useHonk)(P?.4:0);return(0,e.jsx)(n.Ki.Item,{label:M("\u042D\u043D\u0435\u0440\u0433\u0438\u044F"),children:(0,e.jsx)(n.z2,{value:I?C/I:0,ranges:{good:[.5,1/0],average:[.25,.5],bad:[-1/0,.25]},style:{textShadow:"1px 1px 0 black"},children:M(I===null?"\u0411\u0430\u0442\u0430\u0440\u0435\u044F \u043E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442":C===1e31?"<\u0411\u0435\u0441\u043A\u043E\u043D\u0435\u0447\u043D\u0430>":(0,t.QL)(C,0,"J")+" \u0438\u0437 "+(0,t.QL)(I,0,"J"))})})},_=function(g){var p=(0,O.Oc)(),j=p.act,x=p.data,C=x.integrity,I=x.integrity_max,P=x.ui_honked,M=(0,f.useHonk)(P?.4:0);return(0,e.jsx)(n.Ki.Item,{label:M("\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435"),children:(0,e.jsx)(n.z2,{value:C/I,ranges:{good:[.5,1/0],average:[.25,.5],bad:[-1/0,.25]},style:{textShadow:"1px 1px 0 black"},children:C+" \u0438\u0437 "+I})})},l=function(g){var p=(0,O.Oc)(),j=p.act,x=p.data,C=x.power_level,I=x.power_max,P=x.lights,M=x.ui_honked,B=(0,f.useHonk)(M?.4:0),w=P;return(0,e.jsx)(n.Ki.Item,{label:B("\u0421\u0432\u0435\u0442"),children:(0,e.jsx)(n.$n,{icon:"lightbulb",content:B(w?"\u0412\u043A\u043B":"\u0412\u044B\u043A\u043B"),selected:w,disabled:!I||!C,onClick:function(){return j("toggle_lights")}})})},c=function(g){var p=(0,O.Oc)(),j=p.act,x=p.data,C=x.use_internal_tank,I=x.cabin_temp,P=x.cabin_pressure,M=x.cabin_pressure_warning_min,B=x.cabin_pressure_hazard_min,w=x.cabin_pressure_warning_max,T=x.cabin_pressure_hazard_max,K=x.cabin_temp_warning_min,R=x.cabin_temp_warning_max,U=x.ui_honked,F=IR,$=Pw,W=PT,N=(0,f.useHonk)(U?.4:0);return(0,e.jsx)(n.Ki.Item,{label:N("\u0412\u043E\u0437\u0434\u0443\u0445"),buttons:!!C&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{color:F?"average":"transparent",icon:"temperature-low",tooltipPosition:"top",tooltip:"\u0422\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430 \u0432\u043E\u0437\u0434\u0443\u0445\u0430: "+I+"\xB0C"}),(0,e.jsx)(n.$n,{color:W?"danger":$?"average":"transparent",icon:"gauge-high",tooltipPosition:"top",tooltip:"\u0414\u0430\u0432\u043B\u0435\u043D\u0438\u0435 \u0432\u043E\u0437\u0434\u0443\u0445\u0430: "+P+" \u043A\u041F\u0430"})]}),children:(0,e.jsx)(n.$n,{icon:C?"mask-ventilator":"wind",content:N(C?"\u0411\u0430\u043B\u043B\u043E\u043D":"\u0410\u0442\u043C\u043E\u0441\u0444\u0435\u0440\u0430"),onClick:function(){return j("toggle_internal_tank")},selected:C})})},h=function(g){var p=(0,O.Oc)(),j=p.act,x=p.data,C=x.dna_lock,I=x.ui_honked,P=(0,f.useHonk)(I?.4:0);return(0,e.jsxs)(n.Ki.Item,{label:P("\u0414\u041D\u041A \u0431\u043B\u043E\u043A"),children:[(0,e.jsx)(n.$n,{onClick:function(){return j("dna_lock")},icon:"syringe",content:P(C?"\u0423\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D":"\u041E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442"),tooltip:"\u0423\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u043D\u043E\u0432\u044B\u0439 \u0414\u041D\u041A \u043A\u043B\u044E\u0447",selected:!!C,tooltipPosition:"top"}),!!C&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"key",tooltip:"\u041A\u043B\u044E\u0447 \u0414\u041D\u041A: "+C,tooltipPosition:"top",disabled:!C}),(0,e.jsx)(n.$n,{onClick:function(){return j("reset_dna")},icon:"ban",tooltip:"\u0423\u0431\u0440\u0430\u0442\u044C \u0414\u041D\u041A \u0431\u043B\u043E\u043A",tooltipPosition:"top",disabled:!C})]})]})}},2720:(q,S,r)=>{"use strict";r.r(S),r.d(S,{pai_gps_module:()=>t});var e=r(1131),s=r(360),n=r(5180),t=function(a){var O=(0,s.Oc)().act;return(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"GPS menu",children:(0,e.jsx)(n.$n,{onClick:function(){return O("ui_interact")},children:"Open GPS"})})})}},2723:(q,S,r)=>{"use strict";r.r(S),r.d(S,{AppearanceChanger:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(b){var y=(0,s.Oc)(),u=y.act,f=y.data,m=f.change_race,d=f.species,v=f.specimen,_=f.change_gender,l=f.gender,c=f.has_gender,h=f.change_eye_color,g=f.change_skin_tone,p=f.change_skin_color,j=f.change_head_accessory_color,x=f.change_hair_color,C=f.change_secondary_hair_color,I=f.change_facial_hair_color,P=f.change_secondary_facial_hair_color,M=f.change_head_marking_color,B=f.change_body_marking_color,w=f.change_tail_marking_color,T=f.change_head_accessory,K=f.head_accessory_styles,R=f.head_accessory_style,U=f.change_hair,F=f.hair_styles,$=f.hair_style,W=f.change_hair_gradient,N=f.change_facial_hair,Z=f.facial_hair_styles,ie=f.facial_hair_style,Q=f.change_head_markings,V=f.head_marking_styles,G=f.head_marking_style,le=f.change_body_markings,xe=f.body_marking_styles,de=f.body_marking_style,me=f.change_tail_markings,pe=f.tail_marking_styles,Me=f.tail_marking_style,Ke=f.change_body_accessory,Le=f.body_accessory_styles,Se=f.body_accessory_style,ln=f.change_alt_head,ze=f.alt_head_styles,We=f.alt_head_style,fn=!1;return(h||g||p||j||x||C||I||P||M||B||w)&&(fn=!0),(0,e.jsx)(t.p8,{width:800,height:450,children:(0,e.jsx)(t.p8.Content,{scrollable:!0,children:(0,e.jsxs)(n.Ki,{children:[!!m&&(0,e.jsx)(n.Ki.Item,{label:"Species",children:d.map(function(Ze){return(0,e.jsx)(n.$n,{selected:Ze.specimen===v,onClick:function(){return u("race",{race:Ze.specimen})},children:Ze.specimen},Ze.specimen)})}),!!_&&(0,e.jsxs)(n.Ki.Item,{label:"Gender",children:[(0,e.jsx)(n.$n,{selected:l==="male",onClick:function(){return u("gender",{gender:"male"})},children:"Male"}),(0,e.jsx)(n.$n,{selected:l==="female",onClick:function(){return u("gender",{gender:"female"})},children:"Female"}),!c&&(0,e.jsx)(n.$n,{selected:l==="plural",onClick:function(){return u("gender",{gender:"plural"})},children:"Genderless"})]}),!!fn&&(0,e.jsx)(O,{}),!!T&&(0,e.jsx)(n.Ki.Item,{label:"Head accessory",children:K.map(function(Ze){return(0,e.jsx)(n.$n,{selected:Ze.headaccessorystyle===R,onClick:function(){return u("head_accessory",{head_accessory:Ze.headaccessorystyle})},children:Ze.headaccessorystyle},Ze.headaccessorystyle)})}),!!U&&(0,e.jsx)(n.Ki.Item,{label:"Hair",children:F.map(function(Ze){return(0,e.jsx)(n.$n,{selected:Ze.hairstyle===$,onClick:function(){return u("hair",{hair:Ze.hairstyle})},children:Ze.hairstyle},Ze.hairstyle)})}),!!W&&(0,e.jsxs)(n.Ki.Item,{label:"Hair Gradient",children:[(0,e.jsx)(n.$n,{onClick:function(){return u("hair_gradient")},children:"Change Style"}),(0,e.jsx)(n.$n,{onClick:function(){return u("hair_gradient_offset")},children:"Change Offset"}),(0,e.jsx)(n.$n,{onClick:function(){return u("hair_gradient_colour")},children:"Change Color"}),(0,e.jsx)(n.$n,{onClick:function(){return u("hair_gradient_alpha")},children:"Change Alpha"})]}),!!N&&(0,e.jsx)(n.Ki.Item,{label:"Facial hair",children:Z.map(function(Ze){return(0,e.jsx)(n.$n,{selected:Ze.facialhairstyle===ie,onClick:function(){return u("facial_hair",{facial_hair:Ze.facialhairstyle})},children:Ze.facialhairstyle},Ze.facialhairstyle)})}),!!Q&&(0,e.jsx)(n.Ki.Item,{label:"Head markings",children:V.map(function(Ze){return(0,e.jsx)(n.$n,{selected:Ze.headmarkingstyle===G,onClick:function(){return u("head_marking",{head_marking:Ze.headmarkingstyle})},children:Ze.headmarkingstyle},Ze.headmarkingstyle)})}),!!le&&(0,e.jsx)(n.Ki.Item,{label:"Body markings",children:xe.map(function(Ze){return(0,e.jsx)(n.$n,{selected:Ze.bodymarkingstyle===de,onClick:function(){return u("body_marking",{body_marking:Ze.bodymarkingstyle})},children:Ze.bodymarkingstyle},Ze.bodymarkingstyle)})}),!!me&&(0,e.jsx)(n.Ki.Item,{label:"Tail markings",children:pe.map(function(Ze){return(0,e.jsx)(n.$n,{selected:Ze.tailmarkingstyle===Me,onClick:function(){return u("tail_marking",{tail_marking:Ze.tailmarkingstyle})},children:Ze.tailmarkingstyle},Ze.tailmarkingstyle)})}),!!Ke&&(0,e.jsx)(n.Ki.Item,{label:"Body accessory",children:Le.map(function(Ze){return(0,e.jsx)(n.$n,{selected:Ze.bodyaccessorystyle===Se,onClick:function(){return u("body_accessory",{body_accessory:Ze.bodyaccessorystyle})},children:Ze.bodyaccessorystyle},Ze.bodyaccessorystyle)})}),!!ln&&(0,e.jsx)(n.Ki.Item,{label:"Alternate head",children:ze.map(function(Ze){return(0,e.jsx)(n.$n,{selected:Ze.altheadstyle===We,onClick:function(){return u("alt_head",{alt_head:Ze.altheadstyle})},children:Ze.altheadstyle},Ze.altheadstyle)})})]})})})},O=function(b){var y=(0,s.Oc)(),u=y.act,f=y.data,m=[{key:"change_eye_color",text:"Change eye color",action:"eye_color"},{key:"change_skin_tone",text:"Change skin tone",action:"skin_tone"},{key:"change_skin_color",text:"Change skin color",action:"skin_color"},{key:"change_head_accessory_color",text:"Change head accessory color",action:"head_accessory_color"},{key:"change_hair_color",text:"Change hair color",action:"hair_color"},{key:"change_secondary_hair_color",text:"Change secondary hair color",action:"secondary_hair_color"},{key:"change_facial_hair_color",text:"Change facial hair color",action:"facial_hair_color"},{key:"change_secondary_facial_hair_color",text:"Change secondary facial hair color",action:"secondary_facial_hair_color"},{key:"change_head_marking_color",text:"Change head marking color",action:"head_marking_color"},{key:"change_body_marking_color",text:"Change body marking color",action:"body_marking_color"},{key:"change_tail_marking_color",text:"Change tail marking color",action:"tail_marking_color"}];return(0,e.jsx)(n.Ki.Item,{label:"Colors",children:m.map(function(d){return!!f[d.key]&&(0,e.jsx)(n.$n,{onClick:function(){return u(d.action)},children:d.text},d.key)})})}},2728:(q,S,r)=>{"use strict";r.r(S),r.d(S,{FloorPainter:()=>b});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(y){var u=y.icon,f=y.icon_state,m=y.direction,d=y.isSelected,v=y.onSelect;return(0,e.jsx)(n.Hg,{icon:u,icon_state:f,direction:m,onClick:v,style:{borderStyle:d&&"solid"||"none",borderWidth:"2px",borderColor:"orange",padding:d&&"0px"||"2px"}})},O={NORTH:1,SOUTH:2,EAST:4,WEST:8},b=function(y){var u=(0,s.Oc)(),f=u.act,m=u.data,d=m.availableStyles,v=m.selectedStyle,_=m.selectedDir,l=m.icon;return(0,e.jsx)(t.p8,{width:405,height:475,children:(0,e.jsx)(t.p8.Content,{scrollable:!0,children:(0,e.jsxs)(n.wn,{title:"Decal setup",children:[(0,e.jsxs)(n.so,{children:[(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(n.$n,{py:.15,icon:"chevron-left",onClick:function(){return f("cycle_style",{offset:-1})}})}),(0,e.jsx)(n.so.Item,{ml:.15,mr:.2,children:(0,e.jsx)(n.ms,{options:d,selected:v,width:"150px",height:"20px",noChevron:!0,onSelected:function(c){return f("select_style",{style:c})}})}),(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(n.$n,{py:.15,icon:"chevron-right",onClick:function(){return f("cycle_style",{offset:1})}})})]}),(0,e.jsx)(n.az,{mt:"5px",mb:"5px",children:(0,e.jsx)(n.so,{overflowY:"auto",maxHeight:"239px",wrap:"wrap",children:d.map(function(c){return(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(a,{icon:l,icon_state:c,isSelected:v===c,onSelect:function(){return f("select_style",{style:c})}})},c)})})}),(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Direction",children:(0,e.jsx)(n.XI,{style:{display:"inline"},children:[O.NORTH,null,O.SOUTH].map(function(c){return(0,e.jsx)(n.XI.Row,{children:[c+O.WEST,c,c+O.EAST].map(function(h){return(0,e.jsx)(n.XI.Cell,{style:{verticalAlign:"middle",textAlign:"center"},children:h===null?(0,e.jsx)(n.In,{name:"arrows-alt",size:3}):(0,e.jsx)(a,{icon:l,icon_state:v,direction:h,isSelected:h===_,onSelect:function(){return f("select_direction",{direction:h})}})},h)})},c)})})})})]})})})}},2795:(q,S,r)=>{"use strict";r.r(S),r.d(S,{Achievements:()=>O});var e=r(1131),s=r(7003),n=r(5180),t=r(360),a=r(3521),O=function(f){var m=(0,t.Oc)().data,d=m.categories,v=(0,s.useState)(d[0]),_=v[0],l=v[1];return(0,e.jsx)(a.p8,{title:"\u0414\u043E\u0441\u0442\u0438\u0436\u0435\u043D\u0438\u044F",width:540,height:680,children:(0,e.jsxs)(a.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(n.tU,{children:[d.map(function(c){return(0,e.jsx)(n.tU.Tab,{selected:_===c,onClick:function(){return l(c)},children:c},c)}),(0,e.jsx)(n.tU.Tab,{selected:_==="High Scores",onClick:function(){return l("High Scores")},children:"\u0420\u0435\u043A\u043E\u0440\u0434\u044B"}),(0,e.jsx)(n.tU.Tab,{selected:_==="Progress",onClick:function(){return l("Progress")},children:"\u041F\u0440\u043E\u0433\u0440\u0435\u0441\u0441"})]}),_==="High Scores"&&(0,e.jsx)(u,{})||_==="Progress"&&(0,e.jsx)(y,{})||(0,e.jsx)(b,{category:_})]})})},b=function(f){var m=(0,t.Oc)().data,d=m.achievements,v=f.category,_=d.filter(function(l){return l.category===v});return(0,e.jsx)(n.XI,{children:_.map(function(l){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:(0,e.jsx)(n.az,{m:1,className:l.icon_class})}),(0,e.jsxs)(n.XI.Cell,{verticalAlign:"top",children:[(0,e.jsx)("h1",{children:l.name}),l.desc,l.score&&(0,e.jsx)(n.az,{color:l.value>0?"good":"bad",children:l.value>0?"\u041F\u043E\u043B\u0443\u0447\u0435\u043D\u043E "+l.value+" \u0440\u0430\u0437":"\u041D\u0435 \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E"})||(0,e.jsx)(n.az,{color:l.value?"good":"bad",children:l.value?"\u041F\u043E\u043B\u0443\u0447\u0435\u043D\u043E":"\u041D\u0435 \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E"}),!!l.achieve_info&&(0,e.jsx)(n.m_,{position:"bottom",content:l.achieve_tooltip,children:(0,e.jsx)(n.az,{fontSize:.9,opacity:.8,children:l.achieve_info})})]})]},l.name)})})},y=function(){var f=(0,t.Oc)().data,m=f.progresses,d=(0,s.useState)(0),v=d[0],_=d[1];if(!m||m.length===0)return null;var l=m[v];return(0,e.jsxs)(n.so,{children:[(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(n.tU,{vertical:!0,children:m.map(function(c,h){return(0,e.jsx)(n.tU.Tab,{selected:v===h,onClick:function(){return _(h)},children:c.name},c.name)})})}),(0,e.jsxs)(n.so.Item,{grow:1,basis:0,children:[(0,e.jsx)(n.z2,{ranges:{gold:[.97,1/0],good:[-1/0,.97]},value:l.percent,children:(0,e.jsxs)(n.az,{fontSize:"15px",bold:!0,children:[l.percent>=.97&&(0,e.jsx)(n.In,{name:"crown",color:"yellow",mr:2}),l.value_text,l.percent>=.98&&(0,e.jsx)(n.In,{name:"crown",color:"yellow",mr:2})]})}),(0,e.jsx)(n.XI,{children:l.entries.map(function(c,h){return(0,e.jsxs)(n.XI.Row,{className:"candystripe",children:[(0,e.jsx)(n.XI.Cell,{width:"128px",children:(0,e.jsx)(n._V,{src:"data:image/jpeg;base64,"+c.icon,height:""+c.height+"px",width:""+c.width+"px"})}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.az,{fontSize:"16px",bold:!0,children:c.name})})]},c.name)})})]})]})},u=function(){var f=(0,t.Oc)().data,m=f.highscores,d=f.user_key,v=(0,s.useState)(0),_=v[0],l=v[1];if(!m||m.length===0)return null;var c=m[_];return(0,e.jsxs)(n.so,{children:[(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(n.tU,{vertical:!0,children:m.map(function(h,g){return(0,e.jsx)(n.tU.Tab,{selected:_===g,onClick:function(){return l(g)},children:h.name},h.name)})})}),(0,e.jsx)(n.so.Item,{grow:1,basis:0,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:"#"}),(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:"\u0421\u0438\u043A\u0435\u0439"}),(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:"\u0420\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442"})]}),c.scores.map(function(h,g){return(0,e.jsxs)(n.XI.Row,{className:"candystripe",m:2,children:[(0,e.jsx)(n.XI.Cell,{color:"label",textAlign:"center",children:g+1}),(0,e.jsxs)(n.XI.Cell,{color:h.ckey===d&&"green",textAlign:"center",children:[g===0&&(0,e.jsx)(n.In,{name:"crown",color:"yellow",mr:2}),h.ckey,g===0&&(0,e.jsx)(n.In,{name:"crown",color:"yellow",ml:2})]}),(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:h.value})]},h.ckey)})]})})]})}},2865:(q,S,r)=>{"use strict";r.r(S),r.d(S,{BestMenu:()=>m,DantMenu:()=>f,GarMenu:()=>u,HemoMenu:()=>b,UmbrMenu:()=>y,VampireSpecMenu:()=>O});var e=r(1131),s=r(360),n=r(7003),t=r(5180),a=r(3521),O=function(d){var v=(0,n.useState)("hemomancer"),_=v[0],l=v[1],c=function(){switch(_){case"hemomancer":return(0,e.jsx)(b,{});case"umbrae":return(0,e.jsx)(y,{});case"gargantua":return(0,e.jsx)(u,{});case"dantalion":return(0,e.jsx)(f,{});case"bestia":return(0,e.jsx)(m,{});default:return null}};return(0,e.jsx)(a.p8,{width:650,height:890,theme:"ntos_spooky",children:(0,e.jsxs)(a.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{onClick:function(){return l("hemomancer")},selected:_==="hemomancer",children:"\u0413\u0435\u043C\u043E\u043C\u0430\u043D\u0441\u0435\u0440"}),(0,e.jsx)(t.$n,{onClick:function(){return l("umbrae")},selected:_==="umbrae",children:"\u0423\u043C\u0431\u0440\u0430"}),(0,e.jsx)(t.$n,{onClick:function(){return l("gargantua")},selected:_==="gargantua",children:"\u0413\u0430\u0440\u0433\u0430\u043D\u0442\u044E\u0430"}),(0,e.jsx)(t.$n,{onClick:function(){return l("dantalion")},selected:_==="dantalion",children:"\u0414\u0430\u043D\u0442\u0430\u043B\u0438\u043E\u043D"}),(0,e.jsx)(t.$n,{onClick:function(){return l("bestia")},selected:_==="bestia",children:"\u0411\u0435\u0441\u0442\u0438\u044F"})]}),(0,e.jsx)(t.cG,{}),c()]})})},b=function(d){var v=(0,s.Oc)(),_=v.act,l=v.data,c=l.hemomancer;return(0,e.jsxs)(t.wn,{title:"\u0413\u0435\u043C\u043E\u043C\u0430\u043D\u0441\u0435\u0440",children:[(0,e.jsx)(t.az,{textAlign:"center",children:(0,e.jsx)(t.Hg,{height:"256px",width:"256px",icon:c.icon,icon_state:c.icon_state})}),(0,e.jsx)("h3",{children:"\u0421\u043F\u0435\u0446\u0438\u0430\u043B\u0438\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044F \u043D\u0430 \u043C\u0430\u0433\u0438\u0438 \u043A\u0440\u043E\u0432\u0438 \u0438 \u0443\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0438 \u0435\u044E."}),(0,e.jsxs)("p",{children:[(0,e.jsx)("b",{children:"\u041A\u043E\u0433\u0442\u0438"}),": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"," ",(0,e.jsxs)("i",{children:["100 ",(0,e.jsx)("span",{color:"red",children:"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438"})]}),", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u043F\u0440\u0438\u0437\u0432\u0430\u0442\u044C \u043F\u0430\u0440\u0443 \u0441\u043C\u0435\u0440\u0442\u043E\u043D\u043E\u0441\u043D\u044B\u0445 \u043A\u043E\u0433\u0442\u0435\u0439, \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u044E\u0449\u0438\u0445 \u0431\u044B\u0441\u0442\u0440\u043E \u0430\u0442\u0430\u043A\u043E\u0432\u0430\u0442\u044C \u0446\u0435\u043B\u044C, \u043F\u043E\u0433\u043B\u043E\u0449\u0430\u044F \u0435\u0435 \u043A\u0440\u043E\u0432\u044C \u0438 \u0440\u0435\u0433\u0435\u043D\u0435\u0440\u0438\u0440\u0443\u044F \u0441\u0432\u043E\u0435 \u0437\u0434\u043E\u0440\u043E\u0432\u044C\u0435."]}),(0,e.jsxs)("p",{children:[(0,e.jsx)("b",{children:"\u041A\u0440\u043E\u0432\u0430\u0432\u044B\u0439 \u0431\u0430\u0440\u044C\u0435\u0440"}),": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"," ",(0,e.jsxs)("i",{children:["200 ",(0,e.jsx)("span",{color:"red",children:"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438"})]}),", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0432\u044B\u0431\u0440\u0430\u0442\u044C \u0434\u0432\u0435 \u043F\u043E\u0437\u0438\u0446\u0438\u0438 \u0434\u043B\u044F \u0441\u043E\u0437\u0434\u0430\u043D\u0438\u044F \u043C\u0435\u0436\u0434\u0443 \u043D\u0438\u043C\u0438 \u0441\u0442\u0435\u043D\u044B."]}),(0,e.jsxs)("p",{children:[(0,e.jsx)("b",{children:"\u041A\u0440\u043E\u0432\u0430\u0432\u044B\u0435 \u0449\u0443\u043F\u0430\u043B\u044C\u0446\u0430"}),": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"," ",(0,e.jsxs)("i",{children:["200 ",(0,e.jsx)("span",{color:"red",children:"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438"})]}),", \u043F\u043E\u0441\u043B\u0435 \u043D\u0435\u0431\u043E\u043B\u044C\u0448\u043E\u0439 \u0437\u0430\u0434\u0435\u0440\u0436\u043A\u0438 \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0437\u0430\u043C\u0435\u0434\u043B\u0438\u0442\u044C \u0432\u0441\u0435\u0445 \u0432\u043D\u0443\u0442\u0440\u0438 \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u043E\u0439 \u043E\u0431\u043B\u0430\u0441\u0442\u0438 3x3."]}),(0,e.jsxs)("p",{children:[(0,e.jsx)("b",{children:"\u041F\u043E\u0433\u0440\u0443\u0436\u0435\u043D\u0438\u0435 \u0432 \u043A\u0440\u043E\u0432\u044C"}),": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"," ",(0,e.jsxs)("i",{children:["300 ",(0,e.jsx)("span",{color:"red",children:"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438"})]}),", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u043D\u0435\u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0435 \u0432\u0440\u0435\u043C\u044F \u043F\u0435\u0440\u0435\u0434\u0432\u0438\u0433\u0430\u0442\u044C\u0441\u044F \u0441 \u0431\u043E\u043B\u044C\u0448\u043E\u0439 \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C\u044E, \u0438\u0433\u043D\u043E\u0440\u0438\u0440\u0443\u044F \u0432\u0441\u0435 \u043F\u0440\u0435\u043F\u044F\u0442\u0441\u0442\u0432\u0438\u044F, \u043A\u0440\u043E\u043C\u0435 \u0441\u0442\u0435\u043D \u0438 \u043A\u043E\u0441\u043C\u043E\u0441\u0430, \u0430 \u0442\u0430\u043A\u0436\u0435 \u043E\u0441\u0442\u0430\u0432\u043B\u044F\u044F \u0437\u0430 \u0441\u043E\u0431\u043E\u0439 \u043A\u0440\u043E\u0432\u0430\u0432\u044B\u0439 \u0441\u043B\u0435\u0434."]}),(0,e.jsxs)("p",{children:[(0,e.jsx)("b",{children:"\u0427\u0443\u0442\u044C\u0451 \u0445\u0438\u0449\u043D\u0438\u043A\u0430"}),": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"," ",(0,e.jsxs)("i",{children:["400 ",(0,e.jsx)("span",{color:"red",children:"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438"})]}),", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043F\u043E\u0447\u0443\u0432\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u043A\u043E\u0433\u043E-\u0443\u0433\u043E\u0434\u043D\u043E \u0432 \u043F\u0440\u0435\u0434\u0435\u043B\u0430\u0445 \u0432\u0430\u0448\u0435\u0433\u043E \u0441\u0435\u043A\u0442\u043E\u0440\u0430."]}),(0,e.jsxs)("p",{children:[(0,e.jsx)("b",{children:"\u0418\u0437\u0432\u0435\u0440\u0436\u0435\u043D\u0438\u0435 \u043A\u0440\u043E\u0432\u0438"}),": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"," ",(0,e.jsxs)("i",{children:["600 ",(0,e.jsx)("span",{color:"red",children:"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438"})]}),", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043C\u0430\u043D\u0438\u043F\u0443\u043B\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043E\u043A\u0440\u0443\u0436\u0430\u044E\u0449\u0438\u043C\u0438 \u0432\u0430\u0441 \u043B\u0443\u0436\u0430\u043C\u0438 \u043A\u0440\u043E\u0432\u0438 \u0432 \u0440\u0430\u0434\u0438\u0443\u0441\u0435 \u0447\u0435\u0442\u044B\u0440\u0435\u0445 \u043C\u0435\u0442\u0440\u043E\u0432, \u043F\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u044F \u0438\u0445 \u0432 \u0448\u0438\u043F\u044B, \u043F\u0440\u043E\u0442\u044B\u043A\u0430\u044E\u0449\u0438\u0435 \u043B\u044E\u0431\u043E\u0433\u043E \u043D\u0430\u0441\u0442\u0443\u043F\u0438\u0432\u0448\u0435\u0433\u043E \u043D\u0430 \u043D\u0438\u0445."]}),(0,e.jsxs)("p",{children:[(0,e.jsx)("b",{children:"\u041F\u043E\u043B\u043D\u0430\u044F \u0441\u0438\u043B\u0430"}),(0,e.jsx)(t.cG,{}),(0,e.jsx)("b",{children:"\u041A\u0440\u043E\u0432\u0430\u0432\u044B\u0439 \u043E\u0431\u0440\u044F\u0434"}),": \u0411\u0443\u0434\u0443\u0447\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u043D\u044B\u043C, \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043F\u043E\u0433\u043B\u043E\u0449\u0430\u0442\u044C \u043A\u0440\u043E\u0432\u044C \u043E\u043A\u0440\u0443\u0436\u0430\u044E\u0449\u0438\u0445 \u0432\u0430\u0441 \u0441\u0443\u0449\u0435\u0441\u0442\u0432, \u0431\u043B\u0430\u0433\u043E\u0434\u0430\u0440\u044F \u0447\u0435\u043C\u0443 \u0432\u044B \u0431\u0443\u0434\u0435\u0442\u0435 \u043C\u0435\u0434\u043B\u0435\u043D\u043D\u043E \u043B\u0435\u0447\u0438\u0442\u044C\u0441\u044F \u0438 \u0432\u043E\u0441\u0441\u0442\u0430\u043D\u0430\u0432\u043B\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043E\u0442 \u043A\u0430\u043A\u0438\u0445-\u043B\u0438\u0431\u043E \u043E\u0433\u043B\u0443\u0448\u0430\u044E\u0449\u0438\u0445 \u044D\u0444\u0444\u0435\u043A\u0442\u043E\u0432."]}),(0,e.jsx)(t.$n,{onClick:function(){return _("hemomancer")},children:"\u0413\u0435\u043C\u043E\u043C\u0430\u043D\u0441\u0435\u0440"})]})},y=function(d){var v=(0,s.Oc)(),_=v.act,l=v.data,c=l.umbrae;return(0,e.jsxs)(t.wn,{title:"\u0423\u043C\u0431\u0440\u0430",children:[(0,e.jsx)(t.az,{textAlign:"center",children:(0,e.jsx)(t.Hg,{height:"256px",width:"256px",icon:c.icon,icon_state:c.icon_state})}),(0,e.jsx)("h3",{children:"\u0421\u043F\u0435\u0446\u0438\u0430\u043B\u0438\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044F \u043D\u0430 \u0442\u0435\u043C\u043D\u043E\u0442\u0435, \u0437\u0430\u0441\u0430\u0434\u0430\u0445 \u0438 \u0441\u043A\u0440\u044B\u0442\u043D\u043E\u043C \u043F\u0435\u0440\u0435\u043C\u0435\u0449\u0435\u043D\u0438\u0438."}),(0,e.jsxs)("p",{children:[(0,e.jsx)("b",{children:"\u041F\u043E\u043A\u0440\u043E\u0432 \u0442\u044C\u043C\u044B"}),": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"," ",(0,e.jsxs)("i",{children:["100 ",(0,e.jsx)("span",{color:"red",children:"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438"})]}),", \u0431\u0443\u0434\u0443\u0447\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u043D\u044B\u043C, \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0431\u044B\u0442\u044C \u043F\u043E\u0447\u0442\u0438 \u043D\u0435\u0432\u0438\u0434\u0438\u043C\u044B\u043C \u0438 \u0431\u044B\u0441\u0442\u0440\u043E \u043F\u0435\u0440\u0435\u0434\u0432\u0438\u0433\u0430\u0442\u044C\u0441\u044F \u0432 \u0442\u0435\u043C\u043D\u044B\u0445 \u0443\u0447\u0430\u0441\u0442\u043A\u0430\u0445 \u0441\u0442\u0430\u043D\u0446\u0438\u0438. \u0422\u0430\u043A\u0436\u0435, \u0431\u0443\u0434\u0443\u0447\u0438 \u0430\u043A\u0442\u0438\u0432\u043D\u044B\u043C, \u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u043B\u044E\u0431\u043E\u0439 \u0443\u0440\u043E\u043D \u043E\u0442 \u043E\u0436\u043E\u0433\u043E\u0432 \u043F\u043E \u0432\u0430\u043C."]}),(0,e.jsxs)("p",{children:[(0,e.jsx)("b",{children:"\u0422\u0435\u043D\u0435\u0432\u043E\u0439 \u044F\u043A\u043E\u0440\u044C"}),": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"," ",(0,e.jsxs)("i",{children:["200 ",(0,e.jsx)("span",{color:"red",children:"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438"})]}),", \u0430\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u044F \u0441\u043E\u0437\u0434\u0430\u0435\u0442 \u043D\u0430 \u043C\u0435\u0441\u0442\u0435 \u043F\u0440\u0438\u043C\u0435\u043D\u0435\u043D\u0438\u044F \u043C\u0430\u044F\u043A \u043F\u043E\u0441\u043B\u0435 \u043D\u0435\u0431\u043E\u043B\u044C\u0448\u043E\u0439 \u0437\u0430\u0434\u0435\u0440\u0436\u043A\u0438. \u041F\u043E\u0432\u0442\u043E\u0440\u043D\u043E\u0435 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u0435 \u0442\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0438\u0440\u0443\u0435\u0442 \u0432\u0430\u0441 \u043E\u0431\u0440\u0430\u0442\u043D\u043E \u043A \u043C\u0430\u044F\u043A\u0443. \u0415\u0441\u043B\u0438 \u0441\u043F\u0443\u0441\u0442\u044F \u0434\u0432\u0435 \u043C\u0438\u043D\u0443\u0442\u044B \u043F\u043E\u0441\u043B\u0435 \u043F\u0435\u0440\u0432\u043E\u0433\u043E \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u044F \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0441\u0442\u044C \u043D\u0435 \u0431\u044B\u043B\u0430 \u0430\u043A\u0442\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u0430 \u0441\u043D\u043E\u0432\u0430, \u0442\u043E \u0432\u044B \u0431\u0443\u0434\u0435\u0442\u0435 \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438 \u0432\u043E\u0437\u0432\u0440\u0430\u0449\u0435\u043D\u044B \u043A \u043C\u0430\u044F\u043A\u0443. \u041C\u0430\u044F\u043A \u043D\u0435 \u0441\u043F\u043E\u0441\u043E\u0431\u0435\u043D \u0442\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0432\u0430\u0441 \u043C\u0435\u0436\u0434\u0443 \u0441\u0435\u043A\u0442\u043E\u0440\u0430\u043C\u0438."]}),(0,e.jsxs)("p",{children:[(0,e.jsx)("b",{children:"\u0422\u0435\u043D\u0435\u0432\u0430\u044F \u043B\u043E\u0432\u0443\u0448\u043A\u0430"}),": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"," ",(0,e.jsxs)("i",{children:["200 ",(0,e.jsx)("span",{color:"red",children:"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438"})]}),", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0441\u043E\u0437\u0434\u0430\u0432\u0430\u0442\u044C \u043B\u043E\u0432\u0443\u0448\u043A\u0438, \u0442\u0440\u0430\u0432\u043C\u0438\u0440\u0443\u044E\u0449\u0438\u0435 \u0438 \u043E\u0441\u043B\u0435\u043F\u043B\u044F\u044E\u0449\u0438\u0435 \u043B\u044E\u0431\u043E\u0433\u043E \u043D\u0430\u0441\u0442\u0443\u043F\u0438\u0432\u0448\u0435\u0433\u043E \u0432 \u043D\u0438\u0445. \u041B\u043E\u0432\u0443\u0448\u043A\u0443 \u0442\u044F\u0436\u0435\u043B\u043E \u0437\u0430\u043C\u0435\u0442\u0438\u0442\u044C, \u043D\u043E \u043E\u043D\u0430 \u0438\u0441\u0447\u0435\u0437\u0430\u0435\u0442 \u043F\u043E\u0434 \u0432\u043E\u0437\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435\u043C \u0438\u0441\u0442\u043E\u0447\u043D\u0438\u043A\u043E\u0432 \u044F\u0440\u043A\u043E\u0433\u043E \u0441\u0432\u0435\u0442\u0430."]}),(0,e.jsxs)("p",{children:[(0,e.jsx)("b",{children:"\u0428\u0430\u0433 \u0432 \u0442\u0435\u043D\u044C"}),": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"," ",(0,e.jsxs)("i",{children:["300 ",(0,e.jsx)("span",{color:"red",children:"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438"})]}),", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0442\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C\u0441\u044F \u0432 \u043B\u044E\u0431\u043E\u0435 \u043C\u0435\u0441\u0442\u043E \u0432 \u043F\u0440\u0435\u0434\u0435\u043B\u0430\u0445 \u0432\u0438\u0434\u0438\u043C\u043E\u0441\u0442\u0438."]}),(0,e.jsx)("p",{children:"\u0412\u044B \u0442\u0430\u043A\u0436\u0435 \u043F\u043E\u043B\u0443\u0447\u0430\u0435\u0442\u0435 X-ray \u0437\u0440\u0435\u043D\u0438\u0435."}),(0,e.jsxs)("p",{children:[(0,e.jsx)("b",{children:"\u041F\u043E\u0433\u0430\u0441\u0438\u0442\u044C"}),": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"," ",(0,e.jsxs)("i",{children:["400 ",(0,e.jsx)("span",{color:"red",children:"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438"})]}),", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0432\u044B\u0432\u043E\u0434\u0438\u0442\u044C \u0438\u0437 \u0441\u0442\u0440\u043E\u044F \u043B\u044E\u0431\u044B\u0435 \u044D\u043B\u0435\u043A\u0442\u0440\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u0438\u0441\u0442\u043E\u0447\u043D\u0438\u043A\u0438 \u0441\u0432\u0435\u0442\u0430, \u0430 \u0442\u0430\u043A\u0436\u0435 \u0433\u043B\u043E\u0443\u0448\u0440\u0443\u043C\u044B."]}),(0,e.jsx)("b",{children:"\u0411\u043E\u0439 \u0441 \u0442\u0435\u043D\u044C\u044E"}),": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"," ",(0,e.jsxs)("i",{children:["600 ",(0,e.jsx)("span",{color:"red",children:"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438"})]}),", \u0441\u043E\u0437\u0434\u0430\u0435\u0442 \u0442\u0435\u043D\u0435\u0432\u044B\u0445 \u043A\u043B\u043E\u043D\u043E\u0432, \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u0431\u0443\u0434\u0443\u0442 \u0430\u0442\u0430\u043A\u043E\u0432\u0430\u0442\u044C \u0446\u0435\u043B\u044C, \u043F\u043E\u043A\u0430 \u0432\u044B \u043D\u0430\u0445\u043E\u0434\u0438\u0442\u0435\u0441\u044C \u0440\u044F\u0434\u043E\u043C.",(0,e.jsxs)("p",{children:[(0,e.jsx)("b",{children:"\u041F\u043E\u043B\u043D\u0430\u044F \u0441\u0438\u043B\u0430"}),(0,e.jsx)(t.cG,{}),(0,e.jsx)("b",{children:"\u0412\u0435\u0447\u043D\u0430\u044F \u0442\u044C\u043C\u0430"}),": \u043F\u043E\u0441\u043B\u0435 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u044F \u0432\u044B \u0440\u0430\u0441\u0441\u0442\u0432\u043E\u0440\u044F\u0435\u0442\u0435\u0441\u044C \u0432 \u043D\u0435\u0447\u0435\u0441\u0442\u0438\u0432\u043E\u0439 \u0442\u0435\u043C\u043D\u043E\u0442\u0435, \u0432 \u043A\u043E\u0442\u043E\u0440\u043E\u0439 \u0431\u0443\u0434\u0435\u0442 \u0432\u0438\u0434\u0435\u043D \u043B\u0438\u0448\u044C \u0441\u0438\u043B\u044C\u043D\u0435\u0439\u0448\u0438\u0439 \u0438\u0441\u0442\u043E\u0447\u043D\u0438\u043A \u0441\u0432\u0435\u0442\u0430. \u0425\u043E\u043B\u043E\u0434, \u043E\u043A\u0440\u0443\u0436\u0430\u044E\u0449\u0435\u0439 \u0432\u0430\u0441 \u0442\u044C\u043C\u044B \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043C\u043E\u0440\u0430\u0436\u0438\u0432\u0430\u0442\u044C \u0432\u0441\u0435\u0445 \u0436\u0438\u0432\u044B\u0445 \u0441\u0443\u0449\u0435\u0441\u0442\u0432 \u043F\u043E\u0431\u043B\u0438\u0437\u043E\u0441\u0442\u0438."]}),(0,e.jsx)(t.$n,{onClick:function(){return _("umbrae")},children:"\u0423\u043C\u0431\u0440\u0430"})]})},u=function(d){var v=(0,s.Oc)(),_=v.act,l=v.data,c=l.gargantua;return(0,e.jsxs)(t.wn,{title:"\u0413\u0430\u0440\u0433\u0430\u043D\u0442\u044E\u0430",children:[(0,e.jsx)(t.az,{textAlign:"center",children:(0,e.jsx)(t.Hg,{height:"256px",width:"256px",icon:c.icon,icon_state:c.icon_state})}),(0,e.jsx)("h3",{children:"\u0421\u043F\u0435\u0446\u0438\u0430\u043B\u0438\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044F \u043D\u0430 \u0441\u0442\u043E\u0439\u043A\u043E\u0441\u0442\u0438 \u0438 \u0431\u043B\u0438\u0436\u043D\u0435\u043C \u0431\u043E\u0435."}),(0,e.jsxs)("p",{children:[(0,e.jsx)("b",{children:"\u0412\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0438\u0435"}),": \u0411\u0443\u0434\u0435\u0442 \u0432\u043E\u0441\u0441\u0442\u0430\u043D\u0430\u0432\u043B\u0438\u0432\u0430\u0442\u044C \u0432\u0430\u0448\u0435 \u0437\u0434\u043E\u0440\u043E\u0432\u044C\u0435 \u0442\u0435\u043C \u0441\u0438\u043B\u044C\u043D\u0435\u0435, \u0447\u0435\u043C \u0431\u043E\u043B\u044C\u0448\u0435 \u0443\u0440\u043E\u043D\u0430 \u0432\u044B \u043F\u043E\u043B\u0443\u0447\u0438\u043B\u0438."]}),(0,e.jsxs)("p",{children:[(0,e.jsx)("b",{children:"\u041A\u0440\u043E\u0432\u0430\u0432\u044B\u0439 \u0432\u0430\u043B"}),": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442 100"," ",(0,e.jsx)("i",{children:(0,e.jsx)("span",{color:"red",children:"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438"})}),", \u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u0432\u0430\u0448\u0435 \u0441\u043E\u043F\u0440\u043E\u0442\u0438\u0432\u043B\u0435\u043D\u0438\u0435 \u043E\u0433\u043B\u0443\u0448\u0435\u043D\u0438\u044E, \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043A\u043E\u043C\u0443 \u0438 \u0441\u0442\u0430\u043C\u0438\u043D\u0430 \u0443\u0440\u043E\u043D\u0443. \u0412\u044B \u043D\u0435 \u043C\u043E\u0436\u0435\u0442\u0435 \u0441\u0442\u0440\u0435\u043B\u044F\u0442\u044C \u043F\u043E\u043A\u0430 \u0430\u043A\u0442\u0438\u0432\u043D\u0430 \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0441\u0442\u044C."]}),(0,e.jsxs)("p",{children:[(0,e.jsx)("b",{children:"\u0423\u0434\u0430\u0440\u043D\u0430\u044F \u0432\u043E\u043B\u043D\u0430"}),": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442 200"," ",(0,e.jsx)("i",{children:(0,e.jsx)("span",{color:"red",children:"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438"})}),", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0441\u043E\u0442\u0440\u044F\u0441\u0430\u0442\u044C \u0437\u0435\u043C\u043B\u044E \u043F\u043E\u0434 \u043D\u043E\u0433\u0430\u043C\u0438, \u0447\u0442\u043E\u0431\u044B \u043E\u0433\u043B\u0443\u0448\u0438\u0442\u044C \u0438 \u043E\u0442\u0442\u043E\u043B\u043A\u043D\u0443\u0442\u044C \u043E\u043A\u0440\u0443\u0436\u0430\u044E\u0449\u0438\u0445 \u0432\u0440\u0430\u0433\u043E\u0432."]}),(0,e.jsxs)("p",{children:[(0,e.jsx)("b",{children:"\u041A\u0440\u043E\u0432\u0430\u0432\u044B\u0439 \u0434\u0440\u0430\u0439\u0432"}),": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442 200"," ",(0,e.jsx)("i",{children:(0,e.jsx)("span",{color:"red",children:"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438"})}),", \u0434\u0430\u0435\u0442 \u0432\u0430\u043C \u043F\u0440\u0438\u0431\u0430\u0432\u043A\u0443 \u043A \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u0438 \u043D\u0430 \u043A\u043E\u0440\u043E\u0442\u043A\u043E\u0435 \u0432\u0440\u0435\u043C\u044F."]}),(0,e.jsxs)("p",{children:[(0,e.jsx)("b",{children:"\u041A\u0440\u043E\u0432\u0430\u0432\u044B\u0439 \u0432\u0430\u043B II"}),": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442 300"," ",(0,e.jsx)("i",{children:(0,e.jsx)("span",{color:"red",children:"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438"})}),", \u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u0432\u0435\u0441\u044C \u0443\u0440\u043E\u043D \u0432 \u0431\u043B\u0438\u0436\u043D\u0435\u043C \u0431\u043E\u044E \u043D\u0430 10."]}),(0,e.jsxs)("p",{children:[(0,e.jsx)("b",{children:"\u041D\u0435\u0443\u0434\u0435\u0440\u0436\u0438\u043C\u0430\u044F \u0441\u0438\u043B\u0430"}),": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442 400"," ",(0,e.jsx)("i",{children:(0,e.jsx)("span",{color:"red",children:"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438"})}),", \u0431\u0443\u0434\u0443\u0447\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u043D\u044B\u043C, \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u043E\u0442\u043A\u0440\u044B\u0432\u0430\u0442\u044C \u0434\u0432\u0435\u0440\u0438 \u043F\u0440\u0438 \u0441\u0442\u043E\u043B\u043A\u043D\u043E\u0432\u0435\u043D\u0438\u0438, \u0434\u0430\u0436\u0435 \u043D\u0435 \u0438\u043C\u0435\u044F \u0434\u043E\u0441\u0442\u0443\u043F\u0430. \u0412\u0430\u0441 \u0442\u0430\u043A\u0436\u0435 \u043D\u0435 \u043C\u043E\u0433\u0443\u0442 \u0442\u043E\u043B\u043A\u043D\u0443\u0442\u044C \u0438\u043B\u0438 \u0442\u0430\u0449\u0438\u0442\u044C, \u043F\u043E\u043A\u0430 \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0441\u0442\u044C \u0430\u043A\u0442\u0438\u0432\u043D\u0430."]}),(0,e.jsxs)("p",{children:[(0,e.jsx)("b",{children:"\u0414\u0435\u043C\u043E\u043D\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0445\u0432\u0430\u0442\u043A\u0430"}),": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442 600"," ",(0,e.jsx)("i",{children:(0,e.jsx)("span",{color:"red",children:"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438"})}),", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u043A \u0446\u0435\u043B\u0438 \u0434\u0435\u043C\u043E\u043D\u0438\u0447\u0435\u0441\u043A\u0443\u044E \u0440\u0443\u043A\u0443. \u0412 \u0437\u0430\u0432\u0438\u0441\u0438\u043C\u043E\u0441\u0442\u0438 \u043E\u0442 \u0438\u043D\u0442\u0435\u043D\u0442\u0430, disarm/grab, \u0432\u044B \u043E\u0442\u0442\u043E\u043B\u043A\u043D\u0435\u0442\u0435/\u043F\u0440\u0438\u0442\u044F\u043D\u0435\u0442\u0435 \u0446\u0435\u043B\u044C."]}),(0,e.jsxs)("p",{children:[(0,e.jsx)("b",{children:"\u041F\u043E\u043B\u043D\u0430\u044F \u0441\u0438\u043B\u0430"}),(0,e.jsx)(t.cG,{}),(0,e.jsx)("b",{children:"\u0420\u044B\u0432\u043E\u043A"}),": \u0412\u044B \u043F\u043E\u043B\u0443\u0447\u0430\u0435\u0442\u0435 \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0441\u0442\u044C \u0434\u0435\u043B\u0430\u0442\u044C \u0440\u044B\u0432\u043E\u043A \u0432 \u0432\u0430\u0448\u0443 \u0446\u0435\u043B\u044C, \u0440\u0430\u0437\u0440\u0443\u0448\u0430\u044F \u0438 \u043E\u0442\u0442\u0430\u043B\u043A\u0438\u0432\u0430\u044F \u0432\u0441\u0435, \u0432\u043E \u0447\u0442\u043E \u0432\u0440\u0435\u0436\u0435\u0442\u0435\u0441\u044C."]}),(0,e.jsx)(t.$n,{onClick:function(){return _("gargantua")},children:"\u0413\u0430\u0440\u0433\u0430\u043D\u0442\u044E\u0430"})]})},f=function(d){var v=(0,s.Oc)(),_=v.act,l=v.data,c=l.dantalion;return(0,e.jsxs)(t.wn,{title:"\u0414\u0430\u043D\u0442\u0430\u043B\u0438\u043E\u043D",children:[(0,e.jsx)(t.az,{textAlign:"center",children:(0,e.jsx)(t.Hg,{height:"256px",width:"256px",icon:c.icon,icon_state:c.icon_state})}),(0,e.jsx)("h3",{children:"\u0421\u043F\u0435\u0446\u0438\u0430\u043B\u0438\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044F \u043D\u0430 \u043F\u043E\u0440\u0430\u0431\u043E\u0449\u0435\u043D\u0438\u0438 \u0438 \u0438\u043B\u043B\u044E\u0437\u0438\u044F\u0445."}),(0,e.jsxs)("p",{children:[(0,e.jsx)("b",{children:"\u041F\u043E\u0434\u0447\u0438\u043D\u0435\u043D\u0438\u0435"}),": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"," ",(0,e.jsxs)("i",{children:["100 ",(0,e.jsx)("span",{color:"red",children:"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438"})]}),", \u043F\u043E\u0434\u0447\u0438\u043D\u044F\u0435\u0442 \u0446\u0435\u043B\u044C \u0432\u0430\u0448\u0435\u0439 \u0432\u043E\u043B\u0435, \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u043E\u0442 \u0432\u0430\u0441 \u043D\u0435 \u0448\u0435\u0432\u0435\u043B\u0438\u0442\u044C\u0441\u044F \u0432\u043E \u0432\u0440\u0435\u043C\u044F \u043F\u043E\u0440\u0430\u0431\u043E\u0449\u0435\u043D\u0438\u044F. \u041D\u0435 \u0440\u0430\u0431\u043E\u0442\u0430\u0435\u0442 \u043D\u0430 \u043D\u043E\u0441\u0438\u0442\u0435\u043B\u0435\u0439 \u0438\u043C\u043F\u043B\u0430\u043D\u0442\u0430 \u0437\u0430\u0449\u0438\u0442\u044B \u0440\u0430\u0437\u0443\u043C\u0430 \u0438 \u043D\u0430 \u0443\u0436\u0435 \u043F\u043E\u0440\u0430\u0431\u043E\u0449\u0435\u043D\u043D\u044B\u0445 \u0441\u0443\u0449\u0435\u0441\u0442\u0432."]}),(0,e.jsxs)("p",{children:[(0,e.jsx)("b",{children:"\u041F\u0440\u0435\u0434\u0435\u043B \u0440\u0430\u0431\u043E\u0432"}),": \u0412\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u043F\u043E\u0440\u0430\u0431\u043E\u0442\u0438\u0442\u044C \u043C\u0430\u043A\u0441\u0438\u043C\u0443\u043C \u043E\u0434\u043D\u043E\u0433\u043E \u0440\u0430\u0431\u0430 \u0437\u0430 \u0440\u0430\u0437. \u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u0440\u0430\u0431\u043E\u0432 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0441\u0442\u0438 \u043F\u0440\u0438 \u0434\u043E\u0441\u0442\u0438\u0436\u0435\u043D\u0438\u0438"," ",(0,e.jsxs)("i",{children:["300 ",(0,e.jsx)("span",{color:"red",children:"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438"})]}),","," ",(0,e.jsxs)("i",{children:["400 ",(0,e.jsx)("span",{color:"red",children:"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438"})]})," ","\u0438 \u043F\u043E\u043B\u043D\u043E\u0439 \u0441\u0438\u043B\u044B \u0441 \u043C\u0430\u043A\u0441\u0438\u043C\u0443\u043C\u043E\u043C \u0432 4 \u0440\u0430\u0431\u0430."]}),(0,e.jsxs)("p",{children:[(0,e.jsx)("b",{children:"\u0422\u0435\u043B\u0435\u043F\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0441\u0432\u044F\u0437\u044C"}),": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"," ",(0,e.jsxs)("i",{children:["100 ",(0,e.jsx)("span",{color:"red",children:"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438"})]}),", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0440\u0430\u0437\u0433\u043E\u0432\u0430\u0440\u0438\u0432\u0430\u0442\u044C \u0441 \u0432\u0430\u0448\u0438\u043C\u0438 \u0440\u0430\u0431\u0430\u043C\u0438, \u0432\u0430\u0448\u0438 \u0440\u0430\u0431\u044B \u0442\u0430\u043A\u0436\u0435 \u043C\u043E\u0433\u0443\u0442 \u043E\u0442\u0432\u0435\u0447\u0430\u0442\u044C \u0432\u0430\u043C."]}),(0,e.jsxs)("p",{children:[(0,e.jsx)("b",{children:"\u041F\u043E\u0434\u043F\u0440\u043E\u0441\u0442\u0440\u0430\u043D\u0441\u0442\u0432\u0435\u043D\u043D\u044B\u0439 \u043E\u0431\u043C\u0435\u043D"}),": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"," ",(0,e.jsxs)("i",{children:["100 ",(0,e.jsx)("span",{color:"red",children:"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438"})]}),", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043C\u0435\u043D\u044F\u0442\u044C\u0441\u044F \u043C\u0435\u0441\u0442\u0430\u043C\u0438 \u0441 \u0446\u0435\u043B\u044C\u044E."]}),(0,e.jsxs)("p",{children:[(0,e.jsx)("b",{children:"\u0423\u043C\u0438\u0440\u043E\u0442\u0432\u043E\u0440\u0435\u043D\u0438\u0435"}),": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"," ",(0,e.jsxs)("i",{children:["200 ",(0,e.jsx)("span",{color:"red",children:"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438"})]}),", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0443\u0441\u043F\u043E\u043A\u043E\u0438\u0442\u044C \u0446\u0435\u043B\u044C, \u043E\u0442\u043E\u0431\u0440\u0430\u0432 \u0443 \u043D\u0435\u0435 \u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E\u0441\u0442\u044C \u043D\u0430\u043D\u0435\u0441\u0442\u0438 \u0432\u0440\u0435\u0434 \u043A\u043E\u043C\u0443-\u043B\u0438\u0431\u043E \u0432 \u0442\u0435\u0447\u0435\u043D\u0438\u0435 40 \u0441\u0435\u043A\u0443\u043D\u0434."]}),(0,e.jsxs)("p",{children:[(0,e.jsx)("b",{children:"\u041F\u0440\u0438\u043C\u0430\u043D\u043A\u0430"}),": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"," ",(0,e.jsxs)("i",{children:["300 ",(0,e.jsx)("span",{color:"red",children:"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438"})]}),", \u043D\u0435\u043D\u0430\u0434\u043E\u043B\u0433\u043E \u0434\u0435\u043B\u0430\u0435\u0442 \u0432\u0430\u0441 \u043D\u0435\u0432\u0438\u0434\u0438\u043C\u044B\u043C \u0438 \u0441\u043E\u0437\u0434\u0430\u0435\u0442 \u0432\u0430\u0448\u0443 \u043A\u043E\u043F\u0438\u044E \u043E\u0431\u043C\u0430\u043D\u043A\u0443."]}),(0,e.jsxs)("p",{children:[(0,e.jsx)("b",{children:"\u0421\u043F\u043B\u043E\u0442\u0438\u0442\u044C \u0440\u0430\u0431\u043E\u0432"}),": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"," ",(0,e.jsxs)("i",{children:["400 ",(0,e.jsx)("span",{color:"red",children:"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438"})]}),", \u0441\u043D\u0438\u043C\u0430\u0435\u0442 \u0441 \u0431\u043B\u0438\u0437\u0441\u0442\u043E\u044F\u0449\u0438\u0445 \u0440\u0430\u0431\u043E\u0432 \u043B\u044E\u0431\u044B\u0435 \u043E\u0433\u043B\u0443\u0448\u0430\u044E\u0449\u0438\u0435 \u044D\u0444\u0444\u0435\u043A\u0442\u044B."]}),(0,e.jsxs)("p",{children:[(0,e.jsx)("b",{children:"\u041A\u0440\u043E\u0432\u0430\u0432\u044B\u0435 \u0443\u0437\u044B"}),": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"," ",(0,e.jsxs)("i",{children:["600 ",(0,e.jsx)("span",{color:"red",children:"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438"})]}),", \u0441\u0432\u044F\u0437\u044B\u0432\u0430\u0435\u0442 \u0432\u0430\u0441 \u0441\u043E \u0432\u0441\u0435\u043C\u0438 \u043E\u043A\u0440\u0443\u0436\u0430\u044E\u0449\u0438\u043C\u0438 \u0432\u0430\u0441 \u0440\u0430\u0431\u0430\u043C\u0438, \u0435\u0441\u043B\u0438 \u043A\u0442\u043E-\u043B\u0438\u0431\u043E \u0432 \u0441\u0432\u044F\u0437\u043A\u0435 \u043F\u043E\u043B\u0443\u0447\u0430\u0435\u0442 \u0443\u0440\u043E\u043D, \u0442\u043E \u043E\u043D \u0434\u0435\u043B\u0438\u0442\u0441\u044F \u043C\u0435\u0436\u0434\u0443 \u0432\u0441\u0435\u043C\u0438 \u043E\u0441\u0442\u0430\u043B\u044C\u043D\u044B\u043C\u0438. \u0415\u0441\u043B\u0438 \u0440\u0430\u0431 \u0443\u0445\u043E\u0434\u0438\u0442 \u0434\u0430\u043B\u0435\u043A\u043E \u043E\u0442 \u0432\u0430\u0441, \u0442\u043E \u0432\u044B \u0442\u0435\u0440\u044F\u0435\u0442\u0435 \u0441\u0432\u044F\u0437\u044C \u0441 \u043D\u0438\u043C."]}),(0,e.jsxs)("p",{children:[(0,e.jsx)("b",{children:"\u041F\u043E\u043B\u043D\u0430\u044F \u0441\u0438\u043B\u0430"}),(0,e.jsx)(t.cG,{}),(0,e.jsx)("b",{children:"\u041C\u0430\u0441\u0441\u043E\u0432\u0430\u044F \u0438\u0441\u0442\u0435\u0440\u0438\u044F"}),": \u0441\u043E\u0437\u0434\u0430\u0435\u0442 \u043C\u0430\u0441\u0441\u043E\u0432\u0443\u044E \u0433\u0430\u043B\u043B\u044E\u0446\u0438\u043D\u0430\u0446\u0438\u044E, \u043E\u0441\u043B\u0435\u043F\u0438\u0432 \u0432\u0441\u0435\u0445 \u043F\u043E\u0431\u043B\u0438\u0437\u043E\u0441\u0442\u0438, \u0430 \u0437\u0430\u0442\u0435\u043C \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u0432 \u043E\u043A\u0440\u0443\u0436\u0430\u044E\u0449\u0438\u0445 \u0432\u0438\u0434\u0435\u0442\u044C \u0434\u0440\u0443\u0433 \u0432 \u0434\u0440\u0443\u0433\u0435 \u0440\u0430\u0437\u043B\u0438\u0447\u043D\u044B\u0445 \u0436\u0438\u0432\u043E\u0442\u043D\u044B\u0445."]}),(0,e.jsx)(t.$n,{onClick:function(){return _("dantalion")},children:"\u0414\u0430\u043D\u0442\u0430\u043B\u0438\u043E\u043D"})]})},m=function(d){var v=(0,s.Oc)(),_=v.act,l=v.data,c=l.bestia;return(0,e.jsxs)(t.wn,{title:"\u0411\u0435\u0441\u0442\u0438\u044F",children:[(0,e.jsx)(t.az,{textAlign:"center",children:(0,e.jsx)(t.Hg,{height:"256px",width:"256px",icon:c.icon,icon_state:c.icon_state})}),(0,e.jsx)("h3",{children:"\u0421\u043F\u0435\u0446\u0438\u0430\u043B\u0438\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044F \u043D\u0430 \u043F\u0440\u0435\u0432\u0440\u0430\u0449\u0435\u043D\u0438\u0438 \u0438 \u0434\u043E\u0431\u044B\u0447\u0435 \u0442\u0440\u043E\u0444\u0435\u0435\u0432."}),(0,e.jsxs)("p",{children:[(0,e.jsx)("b",{children:"\u041F\u043E\u0441\u043C\u043E\u0442\u0440\u0435\u0442\u044C \u0442\u0440\u043E\u0444\u0435\u0438"}),": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"," ",(0,e.jsxs)("i",{children:["100 ",(0,e.jsx)("span",{color:"red",children:"\u043A\u0440\u043E\u0432\u0438"})]}),", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043F\u0440\u043E\u0432\u0435\u0440\u0438\u0442\u044C \u043A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u0442\u0440\u043E\u0444\u0435\u0435\u0432, \u0430 \u0442\u0430\u043A\u0436\u0435 \u0432\u0441\u0435 \u043F\u0430\u0441\u0441\u0438\u0432\u043D\u044B\u0435 \u044D\u0444\u0444\u0435\u043A\u0442\u044B, \u0447\u0442\u043E \u043E\u043D\u0438 \u0434\u0430\u044E\u0442."]}),(0,e.jsxs)("p",{children:[(0,e.jsx)("b",{children:"\u041F\u0440\u0435\u043F\u0430\u0440\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435"}),": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"," ",(0,e.jsxs)("i",{children:["100 ",(0,e.jsx)("span",{color:"red",children:"\u043A\u0440\u043E\u0432\u0438"})]}),", \u0432\u0434\u043E\u0431\u0430\u0432\u043E\u043A \u043A \u043A\u0440\u043E\u0432\u0438 \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043F\u043E\u0433\u043B\u043E\u0449\u0430\u0442\u044C \u043E\u0440\u0433\u0430\u043D\u044B \u0432 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0442\u0440\u043E\u0444\u0435\u0435\u0432 \u0434\u043B\u044F \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043D\u0438\u044F \u0432\u0430\u0448\u0438\u0445 \u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E\u0441\u0442\u0435\u0439."]}),(0,e.jsxs)("p",{children:[(0,e.jsx)("b",{children:"\u041F\u0440\u0435\u0434\u0435\u043B \u043F\u0440\u0435\u043F\u0430\u0440\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0439"}),": \u0437\u0430 \u0440\u0430\u0437 \u0432\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u043F\u043E\u0433\u043B\u043E\u0442\u0438\u0442\u044C \u043C\u0430\u043A\u0441\u0438\u043C\u0443\u043C \u043E\u0434\u0438\u043D \u043E\u0440\u0433\u0430\u043D. \u041F\u0440\u0435\u0434\u0435\u043B \u0431\u0443\u0434\u0435\u0442 \u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043F\u0440\u0438 \u0434\u043E\u0441\u0442\u0438\u0436\u0435\u043D\u0438\u0438"," ",(0,e.jsxs)("i",{children:["400 ",(0,e.jsx)("span",{color:"red",children:"\u043A\u0440\u043E\u0432\u0438"})]})," ","\u0438 \u043F\u043E\u043B\u043D\u043E\u0439 \u0441\u0438\u043B\u044B \u0441 \u043C\u0430\u043A\u0441\u0438\u043C\u0443\u043C\u043E\u043C \u0432 \u0442\u0440\u0438 \u043E\u0440\u0433\u0430\u043D\u0430."]}),(0,e.jsxs)("p",{children:[(0,e.jsx)("b",{children:"\u0417\u0430\u0440\u0430\u0436\u0435\u043D\u043D\u044B\u0439 \u0442\u0440\u043E\u0444\u0435\u0439"}),": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"," ",(0,e.jsxs)("i",{children:["100 ",(0,e.jsx)("span",{color:"red",children:"\u043A\u0440\u043E\u0432\u0438"})]}),", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043E\u0433\u043B\u0443\u0448\u0430\u0442\u044C \u043F\u0440\u043E\u0442\u0438\u0432\u043D\u0438\u043A\u043E\u0432 \u0441 \u0431\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u0439 \u0434\u0438\u0441\u0442\u0430\u043D\u0446\u0438\u0438, \u0437\u0430\u0440\u0430\u0436\u0430\u044F \u0438\u0445 \u043C\u043E\u0433\u0438\u043B\u044C\u043D\u043E\u0439 \u043B\u0438\u0445\u043E\u0440\u0430\u0434\u043A\u043E\u0439."]}),(0,e.jsxs)("p",{children:[(0,e.jsx)("b",{children:"\u0420\u044B\u0432\u043E\u043A"}),": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"," ",(0,e.jsxs)("i",{children:["200 ",(0,e.jsx)("span",{color:"red",children:"\u043A\u0440\u043E\u0432\u0438"})]}),", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0431\u044B\u0441\u0442\u0440\u043E \u0441\u043E\u043A\u0440\u0430\u0442\u0438\u0442\u044C \u0440\u0430\u0441\u0441\u0442\u043E\u044F\u043D\u0438\u0435 \u043C\u0435\u0436\u0434\u0443 \u0432\u0430\u043C\u0438 \u0438 \u0446\u0435\u043B\u044C\u044E \u0438\u043B\u0438 \u0441\u0431\u0435\u0436\u0430\u0442\u044C \u0438\u0437 \u043E\u043F\u0430\u0441\u043D\u043E\u0439 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438."]}),(0,e.jsxs)("p",{children:[(0,e.jsx)("b",{children:"\u041F\u043E\u043C\u0435\u0442\u0438\u0442\u044C \u0434\u043E\u0431\u044B\u0447\u0443"}),": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"," ",(0,e.jsxs)("i",{children:["200 ",(0,e.jsx)("span",{color:"red",children:"\u043A\u0440\u043E\u0432\u0438"})]}),", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043E\u0442\u043C\u0435\u0442\u0438\u0442\u044C \u0436\u0435\u0440\u0442\u0432\u0443, \u0443\u043C\u0435\u043D\u044C\u0448\u0438\u0432 \u0435\u0435 \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0438 \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u0432 \u0435\u0435 \u043F\u0443\u0442\u0430\u0442\u044C\u0441\u044F \u0432 \u043D\u043E\u0433\u0430\u0445."]}),(0,e.jsxs)("p",{children:[(0,e.jsx)("b",{children:"\u041C\u0435\u0442\u0430\u043C\u043E\u0440\u0444\u043E\u0437\u0430 - \u041B\u0435\u0442\u0443\u0447\u0438\u0435 \u043C\u044B\u0448\u0438"}),": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"," ",(0,e.jsxs)("i",{children:["300 ",(0,e.jsx)("span",{color:"red",children:"\u043A\u0440\u043E\u0432\u0438"})]}),", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043E\u0431\u0440\u0430\u0442\u0438\u0442\u044C\u0441\u044F \u0441\u043C\u0435\u0440\u0442\u043E\u043D\u043E\u0441\u043D\u044B\u043C\u0438 \u043A\u043E\u0441\u043C\u0438\u0447\u0435\u0441\u043A\u0438\u043C\u0438 \u043B\u0435\u0442\u0443\u0447\u0438\u043C\u0438 \u043C\u044B\u0448\u0430\u043C\u0438."]}),(0,e.jsxs)("p",{children:[(0,e.jsx)("b",{children:"\u0410\u043D\u0430\u0431\u0438\u043E\u0437"}),": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"," ",(0,e.jsxs)("i",{children:["400 ",(0,e.jsx)("span",{color:"red",children:"\u043A\u0440\u043E\u0432\u0438"})]}),", \u0434\u0440\u0435\u0432\u043D\u044F\u044F \u0442\u0435\u0445\u043D\u0438\u043A\u0430, \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u044E\u0449\u0430\u044F \u0432\u0430\u043C \u0437\u0430\u043B\u0435\u0447\u0438\u0442\u044C \u043F\u043E\u0447\u0442\u0438 \u043B\u044E\u0431\u044B\u0435 \u0440\u0430\u043D\u0435\u043D\u0438\u044F \u0437\u0430 \u0441\u0447\u0435\u0442 \u0441\u043D\u0430 \u0432 \u0433\u0440\u043E\u0431\u0443."]}),(0,e.jsxs)("p",{children:[(0,e.jsx)("b",{children:"\u041F\u0440\u0438\u0437\u044B\u0432 \u043B\u0435\u0442\u0443\u0447\u0438\u0445 \u043C\u044B\u0448\u0435\u0439"}),": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"," ",(0,e.jsxs)("i",{children:["600 ",(0,e.jsx)("span",{color:"red",children:"\u043A\u0440\u043E\u0432\u0438"})]}),", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043F\u0440\u0438\u0437\u0432\u0430\u0442\u044C \u043A\u043E\u0441\u043C\u0438\u0447\u0435\u0441\u043A\u0438\u0445 \u043B\u0435\u0442\u0443\u0447\u0438\u0445 \u043C\u044B\u0448\u0435\u0439 \u0434\u043B\u044F \u043F\u043E\u043C\u043E\u0449\u0438 \u0432 \u0431\u043E\u044E."]}),(0,e.jsxs)("p",{children:[(0,e.jsx)("b",{children:"\u041F\u043E\u043B\u043D\u0430\u044F \u0441\u0438\u043B\u0430"}),(0,e.jsx)(t.cG,{}),(0,e.jsx)("b",{children:"\u041C\u0435\u0442\u0430\u043C\u043E\u0440\u0444\u043E\u0437\u0430 - \u0413\u043E\u043D\u0447\u0430\u044F"}),": \u041F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043E\u0431\u0440\u0430\u0442\u0438\u0442\u044C\u0441\u044F \u0432 \u0441\u043E\u0432\u0435\u0440\u0448\u0435\u043D\u043D\u0443\u044E \u0444\u043E\u0440\u043C\u0443 \u0431\u043B\u044E\u0441\u043F\u0435\u0439\u0441 \u0441\u0443\u0449\u043D\u043E\u0441\u0442\u0438, \u0437\u0430\u0432\u043B\u0430\u0434\u0435\u0432\u0448\u0435\u0439 \u0432\u0430\u0448\u0435\u0439 \u0434\u0443\u0448\u043E\u0439."]}),(0,e.jsx)(t.$n,{onClick:function(){return _("bestia")},children:"\u0411\u0435\u0441\u0442\u0438\u044F"})]})}},2866:(q,S,r)=>{"use strict";r.r(S),r.d(S,{ChemMaster:()=>_});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=r(829),O=r(538),b=r(185),y=r(8222);function u(){return u=Object.assign||function(P){for(var M=1;M=0)&&(B[T]=P[T]);return B}var m=[1,5,10],d=function(P){var M=(0,s.Oc)(),B=M.act,w=M.data,T=P.args.analysis;return(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.wn,{title:w.condi?"\u0410\u043D\u0430\u043B\u0438\u0437 \u0432\u0435\u0449\u0435\u0441\u0442\u0432\u0430":"\u0410\u043D\u0430\u043B\u0438\u0437 \u0440\u0435\u0430\u0433\u0435\u043D\u0442\u0430",children:(0,e.jsx)(n.az,{mx:"0.5rem",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435",children:T.name}),(0,e.jsx)(n.Ki.Item,{label:"\u041E\u043F\u0438\u0441\u0430\u043D\u0438\u0435",children:(T.desc||"").length>0?T.desc:"\u041D/\u0414"}),T.blood_type&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.Ki.Item,{label:"\u0413\u0440\u0443\u043F\u043F\u0430 \u043A\u0440\u043E\u0432\u0438",children:T.blood_type}),(0,e.jsx)(n.Ki.Item,{label:"\u0414\u041D\u041A-\u043A\u043E\u0434",className:"LabeledList__breakContents",children:T.blood_dna})]}),!w.condi&&(0,e.jsx)(n.$n,{icon:w.printing?"spinner":"print",disabled:w.printing,iconSpin:!!w.printing,ml:"0.5rem",onClick:function(){return B("print",{idx:T.idx,beaker:P.args.beaker})},children:"\u041F\u0435\u0447\u0430\u0442\u044C"})]})})})})},v=function(P){return P[P.ToDisposals=0]="ToDisposals",P[P.ToBeaker=1]="ToBeaker",P}(v||{}),_=function(P){return(0,e.jsxs)(t.p8,{width:575,height:650,children:[(0,e.jsx)(O.ComplexModal,{}),(0,e.jsx)(t.p8.Content,{children:(0,e.jsxs)(n.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(l,{}),(0,e.jsx)(c,{}),(0,e.jsx)(h,{}),(0,e.jsx)(I,{})]})})]})},l=function(P){var M=(0,s.Oc)(),B=M.act,w=M.data,T=w.beaker,K=w.beaker_reagents,R=w.buffer_reagents,U=R.length>0;return(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(n.wn,{title:"\u0401\u043C\u043A\u043E\u0441\u0442\u044C",fill:!0,scrollable:!0,buttons:U?(0,e.jsx)(n.$n.Confirm,{icon:"eject",onClick:function(){return B("eject")},children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u0451\u043C\u043A\u043E\u0441\u0442\u044C \u0438 \u043E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u0431\u0443\u0444\u0435\u0440"}):(0,e.jsx)(n.$n,{icon:"eject",disabled:!T,onClick:function(){return B("eject")},children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u0451\u043C\u043A\u043E\u0441\u0442\u044C \u0438 \u043E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u0431\u0443\u0444\u0435\u0440"}),children:T?(0,e.jsx)(a.BeakerContents,{beakerLoaded:!0,beakerContents:K,buttons:function(F,$){return(0,e.jsxs)(n.az,{mb:$0?(0,e.jsx)(a.BeakerContents,{beakerLoaded:!0,beakerContents:K,buttons:function(R,U){return(0,e.jsxs)(n.az,{mb:U0&&(R=K.map(function(U){var F=U.id,$=U.sprite;return(0,e.jsx)(x,{icon:$,color:"translucent",onClick:function(){return M("set_sprite_style",{production_mode:w,style:F})},selected:T===F},F)})),(0,e.jsx)(j,{productionData:P.productionData,children:R&&(0,e.jsx)(n.Ki.Item,{label:"\u0422\u0438\u043F",children:R})})},I=function(P){var M=(0,s.Oc)(),B=M.act,w=M.data,T=w.loaded_pill_bottle_style,K=w.containerstyles,R=w.loaded_pill_bottle,U={width:"20px",height:"20px"},F=K.map(function($){var W=$.color,N=$.name,Z=T===W;return(0,e.jsxs)(n.$n,{style:{position:"relative",width:U.width,height:U.height},onClick:function(){return B("set_container_style",{style:W})},icon:Z&&"check",iconStyle:{position:"relative",zIndex:"1"},tooltip:N,tooltipPosition:"top",children:[!Z&&(0,e.jsx)("div",{style:{display:"inline-block"}}),(0,e.jsx)("span",{className:"Button",style:{display:"inline-block",position:"absolute",top:0,left:0,margin:0,padding:0,width:U.width,height:U.height,backgroundColor:W,opacity:.6,filter:"alpha(opacity=60)"}})]},W)});return(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.wn,{fill:!0,title:"\u041A\u0430\u0441\u0442\u043E\u043C\u0438\u0437\u0430\u0446\u0438\u044F \u043A\u043E\u043D\u0442\u0435\u0439\u043D\u0435\u0440\u0430",buttons:(0,e.jsx)(n.$n,{icon:"eject",disabled:!R,onClick:function(){return B("ejectp")},children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u043A\u043E\u043D\u0442\u0435\u0439\u043D\u0435\u0440"}),children:R?(0,e.jsx)(n.Ki,{children:(0,e.jsxs)(n.Ki.Item,{label:"\u0421\u0442\u0438\u043B\u044C",children:[(0,e.jsx)(n.$n,{style:{width:U.width,height:U.height},icon:"tint-slash",onClick:function(){return B("clear_container_style")},selected:!T,tooltip:"\u041F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E",tooltipPosition:"top"}),F]})}):(0,e.jsx)(n.az,{color:"label",children:"\u041A\u043E\u043D\u0442\u0435\u0439\u043D\u0435\u0440 \u043E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442."})})})};(0,O.modalRegisterBodyOverride)("analyze",d)},2895:(q,S,r)=>{"use strict";r.d(S,{CO:()=>O,Xd:()=>f,Z4:()=>b,tk:()=>y});var e=r(1859);/** + */function n(){return n=Object.assign||function(a){for(var b=1;b{"use strict";r.r(S),r.d(S,{PDAColorRow:()=>b,PDAPainter:()=>a});var e=r(1131),s=r(360),n=r(3521),t=r(5180),a=function(O){var y=(0,s.Oc)(),u=y.act,f=y.data,m=f.statusLabel,d=f.pdaTypes,v=f.hasPDA,_=f.pdaIcon,l=f.pdaIconState,c=f.pdaOwnerName,h=f.pdaJobName;return(0,e.jsx)(n.p8,{width:545,height:350,children:(0,e.jsx)(n.p8.Content,{children:(0,e.jsxs)(t.so,{spacing:1,direction:"row",height:"100%",flex:"1",children:[(0,e.jsxs)(t.so.Item,{width:24,shrink:0,children:[(0,e.jsx)(t.wn,{title:"\u041E\u0431\u0449\u0435\u0435",buttons:(0,e.jsx)(t.$n,{fluid:!0,icon:v?"eject":"exclamation-triangle",selected:v,tooltip:v?"\u0418\u0437\u0432\u043B\u0435\u0447\u044C PDA":"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044C PDA",tooltipPosition:"left",onClick:function(){return u(v?"eject_pda":"insert_pda")},children:v?"\u0418\u0437\u0432\u043B\u0435\u0447\u044C":"-----"}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"\u0418\u043C\u044F",children:c||"\u041D/\u0414"}),(0,e.jsx)(t.Ki.Item,{label:"\u0414\u043E\u043B\u0436\u043D\u043E\u0441\u0442\u044C",children:h||"\u041D/\u0414"})]})}),(0,e.jsx)(t.wn,{children:(0,e.jsx)(t.so,{height:"100%",direction:"column",flex:"1",children:(0,e.jsxs)(t.so.Item,{children:[(0,e.jsx)(t.az,{textAlign:"center",children:(0,e.jsx)(t.Hg,{height:"160px",icon:_,icon_state:l,align:"middle"})}),(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"\u0421\u0442\u0430\u0442\u0443\u0441",children:m})}),(0,e.jsx)(t.$n.Confirm,{m:"5px",fluid:!0,disabled:!v,confirmContent:"\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044C?",textAlign:"left",color:"red",tooltip:"C\u0431\u0440\u043E\u0441\u0438\u0442\u044C \u0442\u0435\u043B\u0435\u0444\u043E\u043D \u043D\u0430 \u0437\u0430\u0432\u043E\u0434\u0441\u043A\u0438\u0435 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltipPosition:"top",onClick:function(){return u("erase_pda")},children:"\u0421\u0442\u0435\u0440\u0435\u0442\u044C PDA"})]})})})]}),(0,e.jsx)(t.so.Item,{width:27,children:(0,e.jsx)(t.so,{direction:"column",height:"100%",flex:"1",children:(0,e.jsx)(t.wn,{title:"\u0426\u0432\u0435\u0442 PDA",flexGrow:!0,scrollable:!0,fill:!0,children:(0,e.jsx)(t.XI,{children:Object.keys(d).map(function(g){return(0,e.jsx)(b,{selectedPda:g},g)})})})})})]})})})},b=function(O){var y=(0,s.Oc)(),u=y.act,f=y.data,m=f.hasPDA,d=f.pdaIcon,v=O.selectedPda;return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:(0,e.jsx)(t.Hg,{icon:d,icon_state:v,style:{verticalAlign:"middle",width:"32px",margin:"0px",marginLeft:"0px"}})}),(0,e.jsx)(t.XI.Cell,{bold:!0,children:(0,e.jsx)(t.$n.Confirm,{fluid:!0,disabled:!m,icon:v,confirmContent:"\u041F\u043E\u043A\u0440\u0430\u0441\u0438\u0442\u044C?",textAlign:"left",onClick:function(){return u("choose_pda",{selectedPda:v})},children:v})})]})}},2651:(q,S,r)=>{"use strict";r.r(S),r.d(S,{Electropack:()=>b});var e=r(1131),s=r(9818),n=r(360),t=r(5180),a=r(3521),b=function(O){var y=(0,n.Oc)(),u=y.act,f=y.data,m=f.power,d=f.code,v=f.frequency,_=f.minFrequency,l=f.maxFrequency;return(0,e.jsx)(a.p8,{width:360,height:150,children:(0,e.jsx)(a.p8.Content,{children:(0,e.jsx)(t.wn,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Power",children:(0,e.jsx)(t.$n,{icon:m?"power-off":"times",selected:m,onClick:function(){return u("power")},children:m?"On":"Off"})}),(0,e.jsx)(t.Ki.Item,{label:"Frequency",buttons:(0,e.jsx)(t.$n,{icon:"sync",onClick:function(){return u("reset",{reset:"freq"})},children:"Reset"}),children:(0,e.jsx)(t.Q7,{animated:!0,unit:"kHz",step:.2,stepPixelSize:6,minValue:_/10,maxValue:l/10,value:v/10,format:function(c){return(0,s.Mg)(c,1)},width:"80px",onChange:function(c){return u("freq",{freq:c})}})}),(0,e.jsx)(t.Ki.Item,{label:"Code",buttons:(0,e.jsx)(t.$n,{icon:"sync",onClick:function(){return u("reset",{reset:"code"})},children:"Reset"}),children:(0,e.jsx)(t.Q7,{animated:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:d,width:"80px",onChange:function(c){return u("code",{code:c})}})})]})})})})}},2673:(q,S,r)=>{"use strict";r.r(S),r.d(S,{CreateObjectSettings:()=>m});var e=r(1131),s=r(8523),n=r(7003),t=r(5180),a=r(360),b=r(1160);function O(d,v,_,l,c,h,g){try{var p=d[h](g),j=p.value}catch(x){_(x);return}p.done?v(j):Promise.resolve(j).then(l,c)}function y(d){return function(){var v=this,_=arguments;return new Promise(function(l,c){var h=d.apply(v,_);function g(j){O(h,l,c,g,p,"next",j)}function p(j){O(h,l,c,g,p,"throw",j)}g(void 0)})}}function u(){return u=Object.assign||function(d){for(var v=1;v0&&c[c.length-1])&&(x[0]===6||x[0]===2)){h=0;continue}if(x[0]===3&&(!c||x[1]>c[0]&&x[1]{"use strict";r.r(S),r.d(S,{Content:()=>d,Mecha:()=>m});var e=r(1131),s=r(7003),n=r(5180),t=r(8477),a=r(3211),b=r(360),O=r(3521),y=r(7309),u=r(8951),f=r(78),m=function(g){var p=(0,b.Oc)().data;return(0,e.jsx)(O.p8,{theme:p.ui_theme,width:800,height:560,children:(0,e.jsx)(O.p8.Content,{children:(0,e.jsx)(d,{})})})},d=function(g){var p=(0,b.Oc)(),j=p.act,x=p.data,C=(0,s.useState)(!1),I=C[0],P=C[1],M=x.name,B=x.mech_view,w=x.id_lock_on,T=x.accesses,K=x.one_access,R=x.regions,U=x.ui_honked,F=(0,f.useHonk)(U?.4:0);return(0,e.jsxs)(n.BJ,{fill:!0,children:[(0,e.jsx)(n.BJ.Item,{grow:1,children:(0,e.jsxs)(n.BJ,{vertical:!0,fill:!0,children:[(0,e.jsx)(n.BJ.Item,{grow:!0,overflow:"hidden",children:(0,e.jsx)(n.wn,{fill:!0,title:M,buttons:(0,e.jsx)(n.$n,{icon:"edit",tooltip:"\u041F\u0435\u0440\u0435\u0438\u043C\u0435\u043D\u043E\u0432\u0430\u0442\u044C",tooltipPosition:"left",onClick:function(){return j("changename")}}),children:(0,e.jsxs)(n.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.D1,{height:"170px",params:{id:B,zoom:5,type:"map"}})}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(_,{}),(0,e.jsx)(v,{}),(0,e.jsx)(l,{}),(0,e.jsx)(c,{}),(0,e.jsx)(h,{}),(0,e.jsxs)(n.Ki.Item,{label:F("ID \u0431\u043B\u043E\u043A"),children:[(0,e.jsx)(n.$n,{icon:w?"lock":"lock-open",content:F(w?"\u0412\u043A\u043B\u044E\u0447\u0435\u043D":"\u0412\u044B\u043A\u043B\u044E\u0447\u0435\u043D"),tooltipPosition:"top",onClick:function(){P(!1),j("toggle_id_lock")},selected:w}),!!w&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{tooltip:"\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0434\u043E\u0441\u0442\u0443\u043F\u044B",tooltipPosition:"top",icon:"id-card-o",disabled:!R,onClick:function(){return P(!I)},selected:I}),(0,e.jsx)(n.$n,{tooltip:K?"\u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044F \u043B\u044E\u0431\u043E\u0439":"\u0422\u0440\u0435\u0431\u0443\u044E\u0442\u0441\u044F \u0432\u0441\u0435",tooltipPosition:"top",icon:K?"check":"check-double",onClick:function(){return j("one_access")}})]})]})]})})]})})}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(y.AlertPane,{})})]})}),(0,e.jsx)(n.BJ.Item,{grow:2,children:I&&R?(0,e.jsx)(a.AccessList,{accesses:R,selectedList:T,accessMod:function($){return j("set",{access:$})},grantAll:function(){return j("grant_all")},denyAll:function(){return j("clear_all")},grantDep:function($){return j("grant_region",{region:$})},denyDep:function($){return j("deny_region",{region:$})}}):(0,e.jsx)(u.ModulesPane,{})})]})},v=function(g){var p=(0,b.Oc)(),j=p.act,x=p.data,C=x.power_level,I=x.power_max,P=x.ui_honked,M=(0,f.useHonk)(P?.4:0);return(0,e.jsx)(n.Ki.Item,{label:M("\u042D\u043D\u0435\u0440\u0433\u0438\u044F"),children:(0,e.jsx)(n.z2,{value:I?C/I:0,ranges:{good:[.5,1/0],average:[.25,.5],bad:[-1/0,.25]},style:{textShadow:"1px 1px 0 black"},children:M(I===null?"\u0411\u0430\u0442\u0430\u0440\u0435\u044F \u043E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442":C===1e31?"<\u0411\u0435\u0441\u043A\u043E\u043D\u0435\u0447\u043D\u0430>":(0,t.QL)(C,0,"J")+" \u0438\u0437 "+(0,t.QL)(I,0,"J"))})})},_=function(g){var p=(0,b.Oc)(),j=p.act,x=p.data,C=x.integrity,I=x.integrity_max,P=x.ui_honked,M=(0,f.useHonk)(P?.4:0);return(0,e.jsx)(n.Ki.Item,{label:M("\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435"),children:(0,e.jsx)(n.z2,{value:C/I,ranges:{good:[.5,1/0],average:[.25,.5],bad:[-1/0,.25]},style:{textShadow:"1px 1px 0 black"},children:C+" \u0438\u0437 "+I})})},l=function(g){var p=(0,b.Oc)(),j=p.act,x=p.data,C=x.power_level,I=x.power_max,P=x.lights,M=x.ui_honked,B=(0,f.useHonk)(M?.4:0),w=P;return(0,e.jsx)(n.Ki.Item,{label:B("\u0421\u0432\u0435\u0442"),children:(0,e.jsx)(n.$n,{icon:"lightbulb",content:B(w?"\u0412\u043A\u043B":"\u0412\u044B\u043A\u043B"),selected:w,disabled:!I||!C,onClick:function(){return j("toggle_lights")}})})},c=function(g){var p=(0,b.Oc)(),j=p.act,x=p.data,C=x.use_internal_tank,I=x.cabin_temp,P=x.cabin_pressure,M=x.cabin_pressure_warning_min,B=x.cabin_pressure_hazard_min,w=x.cabin_pressure_warning_max,T=x.cabin_pressure_hazard_max,K=x.cabin_temp_warning_min,R=x.cabin_temp_warning_max,U=x.ui_honked,F=IR,$=Pw,W=PT,N=(0,f.useHonk)(U?.4:0);return(0,e.jsx)(n.Ki.Item,{label:N("\u0412\u043E\u0437\u0434\u0443\u0445"),buttons:!!C&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{color:F?"average":"transparent",icon:"temperature-low",tooltipPosition:"top",tooltip:"\u0422\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430 \u0432\u043E\u0437\u0434\u0443\u0445\u0430: "+I+"\xB0C"}),(0,e.jsx)(n.$n,{color:W?"danger":$?"average":"transparent",icon:"gauge-high",tooltipPosition:"top",tooltip:"\u0414\u0430\u0432\u043B\u0435\u043D\u0438\u0435 \u0432\u043E\u0437\u0434\u0443\u0445\u0430: "+P+" \u043A\u041F\u0430"})]}),children:(0,e.jsx)(n.$n,{icon:C?"mask-ventilator":"wind",content:N(C?"\u0411\u0430\u043B\u043B\u043E\u043D":"\u0410\u0442\u043C\u043E\u0441\u0444\u0435\u0440\u0430"),onClick:function(){return j("toggle_internal_tank")},selected:C})})},h=function(g){var p=(0,b.Oc)(),j=p.act,x=p.data,C=x.dna_lock,I=x.ui_honked,P=(0,f.useHonk)(I?.4:0);return(0,e.jsxs)(n.Ki.Item,{label:P("\u0414\u041D\u041A \u0431\u043B\u043E\u043A"),children:[(0,e.jsx)(n.$n,{onClick:function(){return j("dna_lock")},icon:"syringe",content:P(C?"\u0423\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D":"\u041E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442"),tooltip:"\u0423\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u043D\u043E\u0432\u044B\u0439 \u0414\u041D\u041A \u043A\u043B\u044E\u0447",selected:!!C,tooltipPosition:"top"}),!!C&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"key",tooltip:"\u041A\u043B\u044E\u0447 \u0414\u041D\u041A: "+C,tooltipPosition:"top",disabled:!C}),(0,e.jsx)(n.$n,{onClick:function(){return j("reset_dna")},icon:"ban",tooltip:"\u0423\u0431\u0440\u0430\u0442\u044C \u0414\u041D\u041A \u0431\u043B\u043E\u043A",tooltipPosition:"top",disabled:!C})]})]})}},2720:(q,S,r)=>{"use strict";r.r(S),r.d(S,{pai_gps_module:()=>t});var e=r(1131),s=r(360),n=r(5180),t=function(a){var b=(0,s.Oc)().act;return(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"GPS menu",children:(0,e.jsx)(n.$n,{onClick:function(){return b("ui_interact")},children:"Open GPS"})})})}},2723:(q,S,r)=>{"use strict";r.r(S),r.d(S,{AppearanceChanger:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(O){var y=(0,s.Oc)(),u=y.act,f=y.data,m=f.change_race,d=f.species,v=f.specimen,_=f.change_gender,l=f.gender,c=f.has_gender,h=f.change_eye_color,g=f.change_skin_tone,p=f.change_skin_color,j=f.change_head_accessory_color,x=f.change_hair_color,C=f.change_secondary_hair_color,I=f.change_facial_hair_color,P=f.change_secondary_facial_hair_color,M=f.change_head_marking_color,B=f.change_body_marking_color,w=f.change_tail_marking_color,T=f.change_head_accessory,K=f.head_accessory_styles,R=f.head_accessory_style,U=f.change_hair,F=f.hair_styles,$=f.hair_style,W=f.change_hair_gradient,N=f.change_facial_hair,Z=f.facial_hair_styles,ie=f.facial_hair_style,Q=f.change_head_markings,V=f.head_marking_styles,G=f.head_marking_style,le=f.change_body_markings,xe=f.body_marking_styles,de=f.body_marking_style,me=f.change_tail_markings,pe=f.tail_marking_styles,Me=f.tail_marking_style,Ke=f.change_body_accessory,Le=f.body_accessory_styles,Se=f.body_accessory_style,ln=f.change_alt_head,ze=f.alt_head_styles,We=f.alt_head_style,fn=!1;return(h||g||p||j||x||C||I||P||M||B||w)&&(fn=!0),(0,e.jsx)(t.p8,{width:800,height:450,children:(0,e.jsx)(t.p8.Content,{scrollable:!0,children:(0,e.jsxs)(n.Ki,{children:[!!m&&(0,e.jsx)(n.Ki.Item,{label:"Species",children:d.map(function(Ze){return(0,e.jsx)(n.$n,{selected:Ze.specimen===v,onClick:function(){return u("race",{race:Ze.specimen})},children:Ze.specimen},Ze.specimen)})}),!!_&&(0,e.jsxs)(n.Ki.Item,{label:"Gender",children:[(0,e.jsx)(n.$n,{selected:l==="male",onClick:function(){return u("gender",{gender:"male"})},children:"Male"}),(0,e.jsx)(n.$n,{selected:l==="female",onClick:function(){return u("gender",{gender:"female"})},children:"Female"}),!c&&(0,e.jsx)(n.$n,{selected:l==="plural",onClick:function(){return u("gender",{gender:"plural"})},children:"Genderless"})]}),!!fn&&(0,e.jsx)(b,{}),!!T&&(0,e.jsx)(n.Ki.Item,{label:"Head accessory",children:K.map(function(Ze){return(0,e.jsx)(n.$n,{selected:Ze.headaccessorystyle===R,onClick:function(){return u("head_accessory",{head_accessory:Ze.headaccessorystyle})},children:Ze.headaccessorystyle},Ze.headaccessorystyle)})}),!!U&&(0,e.jsx)(n.Ki.Item,{label:"Hair",children:F.map(function(Ze){return(0,e.jsx)(n.$n,{selected:Ze.hairstyle===$,onClick:function(){return u("hair",{hair:Ze.hairstyle})},children:Ze.hairstyle},Ze.hairstyle)})}),!!W&&(0,e.jsxs)(n.Ki.Item,{label:"Hair Gradient",children:[(0,e.jsx)(n.$n,{onClick:function(){return u("hair_gradient")},children:"Change Style"}),(0,e.jsx)(n.$n,{onClick:function(){return u("hair_gradient_offset")},children:"Change Offset"}),(0,e.jsx)(n.$n,{onClick:function(){return u("hair_gradient_colour")},children:"Change Color"}),(0,e.jsx)(n.$n,{onClick:function(){return u("hair_gradient_alpha")},children:"Change Alpha"})]}),!!N&&(0,e.jsx)(n.Ki.Item,{label:"Facial hair",children:Z.map(function(Ze){return(0,e.jsx)(n.$n,{selected:Ze.facialhairstyle===ie,onClick:function(){return u("facial_hair",{facial_hair:Ze.facialhairstyle})},children:Ze.facialhairstyle},Ze.facialhairstyle)})}),!!Q&&(0,e.jsx)(n.Ki.Item,{label:"Head markings",children:V.map(function(Ze){return(0,e.jsx)(n.$n,{selected:Ze.headmarkingstyle===G,onClick:function(){return u("head_marking",{head_marking:Ze.headmarkingstyle})},children:Ze.headmarkingstyle},Ze.headmarkingstyle)})}),!!le&&(0,e.jsx)(n.Ki.Item,{label:"Body markings",children:xe.map(function(Ze){return(0,e.jsx)(n.$n,{selected:Ze.bodymarkingstyle===de,onClick:function(){return u("body_marking",{body_marking:Ze.bodymarkingstyle})},children:Ze.bodymarkingstyle},Ze.bodymarkingstyle)})}),!!me&&(0,e.jsx)(n.Ki.Item,{label:"Tail markings",children:pe.map(function(Ze){return(0,e.jsx)(n.$n,{selected:Ze.tailmarkingstyle===Me,onClick:function(){return u("tail_marking",{tail_marking:Ze.tailmarkingstyle})},children:Ze.tailmarkingstyle},Ze.tailmarkingstyle)})}),!!Ke&&(0,e.jsx)(n.Ki.Item,{label:"Body accessory",children:Le.map(function(Ze){return(0,e.jsx)(n.$n,{selected:Ze.bodyaccessorystyle===Se,onClick:function(){return u("body_accessory",{body_accessory:Ze.bodyaccessorystyle})},children:Ze.bodyaccessorystyle},Ze.bodyaccessorystyle)})}),!!ln&&(0,e.jsx)(n.Ki.Item,{label:"Alternate head",children:ze.map(function(Ze){return(0,e.jsx)(n.$n,{selected:Ze.altheadstyle===We,onClick:function(){return u("alt_head",{alt_head:Ze.altheadstyle})},children:Ze.altheadstyle},Ze.altheadstyle)})})]})})})},b=function(O){var y=(0,s.Oc)(),u=y.act,f=y.data,m=[{key:"change_eye_color",text:"Change eye color",action:"eye_color"},{key:"change_skin_tone",text:"Change skin tone",action:"skin_tone"},{key:"change_skin_color",text:"Change skin color",action:"skin_color"},{key:"change_head_accessory_color",text:"Change head accessory color",action:"head_accessory_color"},{key:"change_hair_color",text:"Change hair color",action:"hair_color"},{key:"change_secondary_hair_color",text:"Change secondary hair color",action:"secondary_hair_color"},{key:"change_facial_hair_color",text:"Change facial hair color",action:"facial_hair_color"},{key:"change_secondary_facial_hair_color",text:"Change secondary facial hair color",action:"secondary_facial_hair_color"},{key:"change_head_marking_color",text:"Change head marking color",action:"head_marking_color"},{key:"change_body_marking_color",text:"Change body marking color",action:"body_marking_color"},{key:"change_tail_marking_color",text:"Change tail marking color",action:"tail_marking_color"}];return(0,e.jsx)(n.Ki.Item,{label:"Colors",children:m.map(function(d){return!!f[d.key]&&(0,e.jsx)(n.$n,{onClick:function(){return u(d.action)},children:d.text},d.key)})})}},2728:(q,S,r)=>{"use strict";r.r(S),r.d(S,{FloorPainter:()=>O});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(y){var u=y.icon,f=y.icon_state,m=y.direction,d=y.isSelected,v=y.onSelect;return(0,e.jsx)(n.Hg,{icon:u,icon_state:f,direction:m,onClick:v,style:{borderStyle:d&&"solid"||"none",borderWidth:"2px",borderColor:"orange",padding:d&&"0px"||"2px"}})},b={NORTH:1,SOUTH:2,EAST:4,WEST:8},O=function(y){var u=(0,s.Oc)(),f=u.act,m=u.data,d=m.availableStyles,v=m.selectedStyle,_=m.selectedDir,l=m.icon;return(0,e.jsx)(t.p8,{width:405,height:475,children:(0,e.jsx)(t.p8.Content,{scrollable:!0,children:(0,e.jsxs)(n.wn,{title:"Decal setup",children:[(0,e.jsxs)(n.so,{children:[(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(n.$n,{py:.15,icon:"chevron-left",onClick:function(){return f("cycle_style",{offset:-1})}})}),(0,e.jsx)(n.so.Item,{ml:.15,mr:.2,children:(0,e.jsx)(n.ms,{options:d,selected:v,width:"150px",height:"20px",noChevron:!0,onSelected:function(c){return f("select_style",{style:c})}})}),(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(n.$n,{py:.15,icon:"chevron-right",onClick:function(){return f("cycle_style",{offset:1})}})})]}),(0,e.jsx)(n.az,{mt:"5px",mb:"5px",children:(0,e.jsx)(n.so,{overflowY:"auto",maxHeight:"239px",wrap:"wrap",children:d.map(function(c){return(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(a,{icon:l,icon_state:c,isSelected:v===c,onSelect:function(){return f("select_style",{style:c})}})},c)})})}),(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Direction",children:(0,e.jsx)(n.XI,{style:{display:"inline"},children:[b.NORTH,null,b.SOUTH].map(function(c){return(0,e.jsx)(n.XI.Row,{children:[c+b.WEST,c,c+b.EAST].map(function(h){return(0,e.jsx)(n.XI.Cell,{style:{verticalAlign:"middle",textAlign:"center"},children:h===null?(0,e.jsx)(n.In,{name:"arrows-alt",size:3}):(0,e.jsx)(a,{icon:l,icon_state:v,direction:h,isSelected:h===_,onSelect:function(){return f("select_direction",{direction:h})}})},h)})},c)})})})})]})})})}},2795:(q,S,r)=>{"use strict";r.r(S),r.d(S,{Achievements:()=>b});var e=r(1131),s=r(7003),n=r(5180),t=r(360),a=r(3521),b=function(f){var m=(0,t.Oc)().data,d=m.categories,v=(0,s.useState)(d[0]),_=v[0],l=v[1];return(0,e.jsx)(a.p8,{title:"\u0414\u043E\u0441\u0442\u0438\u0436\u0435\u043D\u0438\u044F",width:540,height:680,children:(0,e.jsxs)(a.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(n.tU,{children:[d.map(function(c){return(0,e.jsx)(n.tU.Tab,{selected:_===c,onClick:function(){return l(c)},children:c},c)}),(0,e.jsx)(n.tU.Tab,{selected:_==="High Scores",onClick:function(){return l("High Scores")},children:"\u0420\u0435\u043A\u043E\u0440\u0434\u044B"}),(0,e.jsx)(n.tU.Tab,{selected:_==="Progress",onClick:function(){return l("Progress")},children:"\u041F\u0440\u043E\u0433\u0440\u0435\u0441\u0441"})]}),_==="High Scores"&&(0,e.jsx)(u,{})||_==="Progress"&&(0,e.jsx)(y,{})||(0,e.jsx)(O,{category:_})]})})},O=function(f){var m=(0,t.Oc)().data,d=m.achievements,v=f.category,_=d.filter(function(l){return l.category===v});return(0,e.jsx)(n.XI,{children:_.map(function(l){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:(0,e.jsx)(n.az,{m:1,className:l.icon_class})}),(0,e.jsxs)(n.XI.Cell,{verticalAlign:"top",children:[(0,e.jsx)("h1",{children:l.name}),l.desc,l.score&&(0,e.jsx)(n.az,{color:l.value>0?"good":"bad",children:l.value>0?"\u041F\u043E\u043B\u0443\u0447\u0435\u043D\u043E "+l.value+" \u0440\u0430\u0437":"\u041D\u0435 \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E"})||(0,e.jsx)(n.az,{color:l.value?"good":"bad",children:l.value?"\u041F\u043E\u043B\u0443\u0447\u0435\u043D\u043E":"\u041D\u0435 \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E"}),!!l.achieve_info&&(0,e.jsx)(n.m_,{position:"bottom",content:l.achieve_tooltip,children:(0,e.jsx)(n.az,{fontSize:.9,opacity:.8,children:l.achieve_info})})]})]},l.name)})})},y=function(){var f=(0,t.Oc)().data,m=f.progresses,d=(0,s.useState)(0),v=d[0],_=d[1];if(!m||m.length===0)return null;var l=m[v];return(0,e.jsxs)(n.so,{children:[(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(n.tU,{vertical:!0,children:m.map(function(c,h){return(0,e.jsx)(n.tU.Tab,{selected:v===h,onClick:function(){return _(h)},children:c.name},c.name)})})}),(0,e.jsxs)(n.so.Item,{grow:1,basis:0,children:[(0,e.jsx)(n.z2,{ranges:{gold:[.97,1/0],good:[-1/0,.97]},value:l.percent,children:(0,e.jsxs)(n.az,{fontSize:"15px",bold:!0,children:[l.percent>=.97&&(0,e.jsx)(n.In,{name:"crown",color:"yellow",mr:2}),l.value_text,l.percent>=.98&&(0,e.jsx)(n.In,{name:"crown",color:"yellow",mr:2})]})}),(0,e.jsx)(n.XI,{children:l.entries.map(function(c,h){return(0,e.jsxs)(n.XI.Row,{className:"candystripe",children:[(0,e.jsx)(n.XI.Cell,{width:"128px",children:(0,e.jsx)(n._V,{src:"data:image/jpeg;base64,"+c.icon,height:""+c.height+"px",width:""+c.width+"px"})}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.az,{fontSize:"16px",bold:!0,children:c.name})})]},c.name)})})]})]})},u=function(){var f=(0,t.Oc)().data,m=f.highscores,d=f.user_key,v=(0,s.useState)(0),_=v[0],l=v[1];if(!m||m.length===0)return null;var c=m[_];return(0,e.jsxs)(n.so,{children:[(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(n.tU,{vertical:!0,children:m.map(function(h,g){return(0,e.jsx)(n.tU.Tab,{selected:_===g,onClick:function(){return l(g)},children:h.name},h.name)})})}),(0,e.jsx)(n.so.Item,{grow:1,basis:0,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:"#"}),(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:"\u0421\u0438\u043A\u0435\u0439"}),(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:"\u0420\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442"})]}),c.scores.map(function(h,g){return(0,e.jsxs)(n.XI.Row,{className:"candystripe",m:2,children:[(0,e.jsx)(n.XI.Cell,{color:"label",textAlign:"center",children:g+1}),(0,e.jsxs)(n.XI.Cell,{color:h.ckey===d&&"green",textAlign:"center",children:[g===0&&(0,e.jsx)(n.In,{name:"crown",color:"yellow",mr:2}),h.ckey,g===0&&(0,e.jsx)(n.In,{name:"crown",color:"yellow",ml:2})]}),(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:h.value})]},h.ckey)})]})})]})}},2865:(q,S,r)=>{"use strict";r.r(S),r.d(S,{BestMenu:()=>m,DantMenu:()=>f,GarMenu:()=>u,HemoMenu:()=>O,UmbrMenu:()=>y,VampireSpecMenu:()=>b});var e=r(1131),s=r(360),n=r(7003),t=r(5180),a=r(3521),b=function(d){var v=(0,n.useState)("hemomancer"),_=v[0],l=v[1],c=function(){switch(_){case"hemomancer":return(0,e.jsx)(O,{});case"umbrae":return(0,e.jsx)(y,{});case"gargantua":return(0,e.jsx)(u,{});case"dantalion":return(0,e.jsx)(f,{});case"bestia":return(0,e.jsx)(m,{});default:return null}};return(0,e.jsx)(a.p8,{width:650,height:890,theme:"ntos_spooky",children:(0,e.jsxs)(a.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{onClick:function(){return l("hemomancer")},selected:_==="hemomancer",children:"\u0413\u0435\u043C\u043E\u043C\u0430\u043D\u0441\u0435\u0440"}),(0,e.jsx)(t.$n,{onClick:function(){return l("umbrae")},selected:_==="umbrae",children:"\u0423\u043C\u0431\u0440\u0430"}),(0,e.jsx)(t.$n,{onClick:function(){return l("gargantua")},selected:_==="gargantua",children:"\u0413\u0430\u0440\u0433\u0430\u043D\u0442\u044E\u0430"}),(0,e.jsx)(t.$n,{onClick:function(){return l("dantalion")},selected:_==="dantalion",children:"\u0414\u0430\u043D\u0442\u0430\u043B\u0438\u043E\u043D"}),(0,e.jsx)(t.$n,{onClick:function(){return l("bestia")},selected:_==="bestia",children:"\u0411\u0435\u0441\u0442\u0438\u044F"})]}),(0,e.jsx)(t.cG,{}),c()]})})},O=function(d){var v=(0,s.Oc)(),_=v.act,l=v.data,c=l.hemomancer;return(0,e.jsxs)(t.wn,{title:"\u0413\u0435\u043C\u043E\u043C\u0430\u043D\u0441\u0435\u0440",children:[(0,e.jsx)(t.az,{textAlign:"center",children:(0,e.jsx)(t.Hg,{height:"256px",width:"256px",icon:c.icon,icon_state:c.icon_state})}),(0,e.jsx)("h3",{children:"\u0421\u043F\u0435\u0446\u0438\u0430\u043B\u0438\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044F \u043D\u0430 \u043C\u0430\u0433\u0438\u0438 \u043A\u0440\u043E\u0432\u0438 \u0438 \u0443\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0438 \u0435\u044E."}),(0,e.jsxs)("p",{children:[(0,e.jsx)("b",{children:"\u041A\u043E\u0433\u0442\u0438"}),": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"," ",(0,e.jsxs)("i",{children:["100 ",(0,e.jsx)("span",{color:"red",children:"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438"})]}),", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u043F\u0440\u0438\u0437\u0432\u0430\u0442\u044C \u043F\u0430\u0440\u0443 \u0441\u043C\u0435\u0440\u0442\u043E\u043D\u043E\u0441\u043D\u044B\u0445 \u043A\u043E\u0433\u0442\u0435\u0439, \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u044E\u0449\u0438\u0445 \u0431\u044B\u0441\u0442\u0440\u043E \u0430\u0442\u0430\u043A\u043E\u0432\u0430\u0442\u044C \u0446\u0435\u043B\u044C, \u043F\u043E\u0433\u043B\u043E\u0449\u0430\u044F \u0435\u0435 \u043A\u0440\u043E\u0432\u044C \u0438 \u0440\u0435\u0433\u0435\u043D\u0435\u0440\u0438\u0440\u0443\u044F \u0441\u0432\u043E\u0435 \u0437\u0434\u043E\u0440\u043E\u0432\u044C\u0435."]}),(0,e.jsxs)("p",{children:[(0,e.jsx)("b",{children:"\u041A\u0440\u043E\u0432\u0430\u0432\u044B\u0439 \u0431\u0430\u0440\u044C\u0435\u0440"}),": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"," ",(0,e.jsxs)("i",{children:["200 ",(0,e.jsx)("span",{color:"red",children:"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438"})]}),", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0432\u044B\u0431\u0440\u0430\u0442\u044C \u0434\u0432\u0435 \u043F\u043E\u0437\u0438\u0446\u0438\u0438 \u0434\u043B\u044F \u0441\u043E\u0437\u0434\u0430\u043D\u0438\u044F \u043C\u0435\u0436\u0434\u0443 \u043D\u0438\u043C\u0438 \u0441\u0442\u0435\u043D\u044B."]}),(0,e.jsxs)("p",{children:[(0,e.jsx)("b",{children:"\u041A\u0440\u043E\u0432\u0430\u0432\u044B\u0435 \u0449\u0443\u043F\u0430\u043B\u044C\u0446\u0430"}),": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"," ",(0,e.jsxs)("i",{children:["200 ",(0,e.jsx)("span",{color:"red",children:"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438"})]}),", \u043F\u043E\u0441\u043B\u0435 \u043D\u0435\u0431\u043E\u043B\u044C\u0448\u043E\u0439 \u0437\u0430\u0434\u0435\u0440\u0436\u043A\u0438 \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0437\u0430\u043C\u0435\u0434\u043B\u0438\u0442\u044C \u0432\u0441\u0435\u0445 \u0432\u043D\u0443\u0442\u0440\u0438 \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u043E\u0439 \u043E\u0431\u043B\u0430\u0441\u0442\u0438 3x3."]}),(0,e.jsxs)("p",{children:[(0,e.jsx)("b",{children:"\u041F\u043E\u0433\u0440\u0443\u0436\u0435\u043D\u0438\u0435 \u0432 \u043A\u0440\u043E\u0432\u044C"}),": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"," ",(0,e.jsxs)("i",{children:["300 ",(0,e.jsx)("span",{color:"red",children:"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438"})]}),", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u043D\u0435\u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0435 \u0432\u0440\u0435\u043C\u044F \u043F\u0435\u0440\u0435\u0434\u0432\u0438\u0433\u0430\u0442\u044C\u0441\u044F \u0441 \u0431\u043E\u043B\u044C\u0448\u043E\u0439 \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C\u044E, \u0438\u0433\u043D\u043E\u0440\u0438\u0440\u0443\u044F \u0432\u0441\u0435 \u043F\u0440\u0435\u043F\u044F\u0442\u0441\u0442\u0432\u0438\u044F, \u043A\u0440\u043E\u043C\u0435 \u0441\u0442\u0435\u043D \u0438 \u043A\u043E\u0441\u043C\u043E\u0441\u0430, \u0430 \u0442\u0430\u043A\u0436\u0435 \u043E\u0441\u0442\u0430\u0432\u043B\u044F\u044F \u0437\u0430 \u0441\u043E\u0431\u043E\u0439 \u043A\u0440\u043E\u0432\u0430\u0432\u044B\u0439 \u0441\u043B\u0435\u0434."]}),(0,e.jsxs)("p",{children:[(0,e.jsx)("b",{children:"\u0427\u0443\u0442\u044C\u0451 \u0445\u0438\u0449\u043D\u0438\u043A\u0430"}),": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"," ",(0,e.jsxs)("i",{children:["400 ",(0,e.jsx)("span",{color:"red",children:"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438"})]}),", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043F\u043E\u0447\u0443\u0432\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u043A\u043E\u0433\u043E-\u0443\u0433\u043E\u0434\u043D\u043E \u0432 \u043F\u0440\u0435\u0434\u0435\u043B\u0430\u0445 \u0432\u0430\u0448\u0435\u0433\u043E \u0441\u0435\u043A\u0442\u043E\u0440\u0430."]}),(0,e.jsxs)("p",{children:[(0,e.jsx)("b",{children:"\u0418\u0437\u0432\u0435\u0440\u0436\u0435\u043D\u0438\u0435 \u043A\u0440\u043E\u0432\u0438"}),": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"," ",(0,e.jsxs)("i",{children:["600 ",(0,e.jsx)("span",{color:"red",children:"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438"})]}),", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043C\u0430\u043D\u0438\u043F\u0443\u043B\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043E\u043A\u0440\u0443\u0436\u0430\u044E\u0449\u0438\u043C\u0438 \u0432\u0430\u0441 \u043B\u0443\u0436\u0430\u043C\u0438 \u043A\u0440\u043E\u0432\u0438 \u0432 \u0440\u0430\u0434\u0438\u0443\u0441\u0435 \u0447\u0435\u0442\u044B\u0440\u0435\u0445 \u043C\u0435\u0442\u0440\u043E\u0432, \u043F\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u044F \u0438\u0445 \u0432 \u0448\u0438\u043F\u044B, \u043F\u0440\u043E\u0442\u044B\u043A\u0430\u044E\u0449\u0438\u0435 \u043B\u044E\u0431\u043E\u0433\u043E \u043D\u0430\u0441\u0442\u0443\u043F\u0438\u0432\u0448\u0435\u0433\u043E \u043D\u0430 \u043D\u0438\u0445."]}),(0,e.jsxs)("p",{children:[(0,e.jsx)("b",{children:"\u041F\u043E\u043B\u043D\u0430\u044F \u0441\u0438\u043B\u0430"}),(0,e.jsx)(t.cG,{}),(0,e.jsx)("b",{children:"\u041A\u0440\u043E\u0432\u0430\u0432\u044B\u0439 \u043E\u0431\u0440\u044F\u0434"}),": \u0411\u0443\u0434\u0443\u0447\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u043D\u044B\u043C, \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043F\u043E\u0433\u043B\u043E\u0449\u0430\u0442\u044C \u043A\u0440\u043E\u0432\u044C \u043E\u043A\u0440\u0443\u0436\u0430\u044E\u0449\u0438\u0445 \u0432\u0430\u0441 \u0441\u0443\u0449\u0435\u0441\u0442\u0432, \u0431\u043B\u0430\u0433\u043E\u0434\u0430\u0440\u044F \u0447\u0435\u043C\u0443 \u0432\u044B \u0431\u0443\u0434\u0435\u0442\u0435 \u043C\u0435\u0434\u043B\u0435\u043D\u043D\u043E \u043B\u0435\u0447\u0438\u0442\u044C\u0441\u044F \u0438 \u0432\u043E\u0441\u0441\u0442\u0430\u043D\u0430\u0432\u043B\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043E\u0442 \u043A\u0430\u043A\u0438\u0445-\u043B\u0438\u0431\u043E \u043E\u0433\u043B\u0443\u0448\u0430\u044E\u0449\u0438\u0445 \u044D\u0444\u0444\u0435\u043A\u0442\u043E\u0432."]}),(0,e.jsx)(t.$n,{onClick:function(){return _("hemomancer")},children:"\u0413\u0435\u043C\u043E\u043C\u0430\u043D\u0441\u0435\u0440"})]})},y=function(d){var v=(0,s.Oc)(),_=v.act,l=v.data,c=l.umbrae;return(0,e.jsxs)(t.wn,{title:"\u0423\u043C\u0431\u0440\u0430",children:[(0,e.jsx)(t.az,{textAlign:"center",children:(0,e.jsx)(t.Hg,{height:"256px",width:"256px",icon:c.icon,icon_state:c.icon_state})}),(0,e.jsx)("h3",{children:"\u0421\u043F\u0435\u0446\u0438\u0430\u043B\u0438\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044F \u043D\u0430 \u0442\u0435\u043C\u043D\u043E\u0442\u0435, \u0437\u0430\u0441\u0430\u0434\u0430\u0445 \u0438 \u0441\u043A\u0440\u044B\u0442\u043D\u043E\u043C \u043F\u0435\u0440\u0435\u043C\u0435\u0449\u0435\u043D\u0438\u0438."}),(0,e.jsxs)("p",{children:[(0,e.jsx)("b",{children:"\u041F\u043E\u043A\u0440\u043E\u0432 \u0442\u044C\u043C\u044B"}),": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"," ",(0,e.jsxs)("i",{children:["100 ",(0,e.jsx)("span",{color:"red",children:"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438"})]}),", \u0431\u0443\u0434\u0443\u0447\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u043D\u044B\u043C, \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0431\u044B\u0442\u044C \u043F\u043E\u0447\u0442\u0438 \u043D\u0435\u0432\u0438\u0434\u0438\u043C\u044B\u043C \u0438 \u0431\u044B\u0441\u0442\u0440\u043E \u043F\u0435\u0440\u0435\u0434\u0432\u0438\u0433\u0430\u0442\u044C\u0441\u044F \u0432 \u0442\u0435\u043C\u043D\u044B\u0445 \u0443\u0447\u0430\u0441\u0442\u043A\u0430\u0445 \u0441\u0442\u0430\u043D\u0446\u0438\u0438. \u0422\u0430\u043A\u0436\u0435, \u0431\u0443\u0434\u0443\u0447\u0438 \u0430\u043A\u0442\u0438\u0432\u043D\u044B\u043C, \u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u043B\u044E\u0431\u043E\u0439 \u0443\u0440\u043E\u043D \u043E\u0442 \u043E\u0436\u043E\u0433\u043E\u0432 \u043F\u043E \u0432\u0430\u043C."]}),(0,e.jsxs)("p",{children:[(0,e.jsx)("b",{children:"\u0422\u0435\u043D\u0435\u0432\u043E\u0439 \u044F\u043A\u043E\u0440\u044C"}),": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"," ",(0,e.jsxs)("i",{children:["200 ",(0,e.jsx)("span",{color:"red",children:"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438"})]}),", \u0430\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u044F \u0441\u043E\u0437\u0434\u0430\u0435\u0442 \u043D\u0430 \u043C\u0435\u0441\u0442\u0435 \u043F\u0440\u0438\u043C\u0435\u043D\u0435\u043D\u0438\u044F \u043C\u0430\u044F\u043A \u043F\u043E\u0441\u043B\u0435 \u043D\u0435\u0431\u043E\u043B\u044C\u0448\u043E\u0439 \u0437\u0430\u0434\u0435\u0440\u0436\u043A\u0438. \u041F\u043E\u0432\u0442\u043E\u0440\u043D\u043E\u0435 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u0435 \u0442\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0438\u0440\u0443\u0435\u0442 \u0432\u0430\u0441 \u043E\u0431\u0440\u0430\u0442\u043D\u043E \u043A \u043C\u0430\u044F\u043A\u0443. \u0415\u0441\u043B\u0438 \u0441\u043F\u0443\u0441\u0442\u044F \u0434\u0432\u0435 \u043C\u0438\u043D\u0443\u0442\u044B \u043F\u043E\u0441\u043B\u0435 \u043F\u0435\u0440\u0432\u043E\u0433\u043E \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u044F \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0441\u0442\u044C \u043D\u0435 \u0431\u044B\u043B\u0430 \u0430\u043A\u0442\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u0430 \u0441\u043D\u043E\u0432\u0430, \u0442\u043E \u0432\u044B \u0431\u0443\u0434\u0435\u0442\u0435 \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438 \u0432\u043E\u0437\u0432\u0440\u0430\u0449\u0435\u043D\u044B \u043A \u043C\u0430\u044F\u043A\u0443. \u041C\u0430\u044F\u043A \u043D\u0435 \u0441\u043F\u043E\u0441\u043E\u0431\u0435\u043D \u0442\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0432\u0430\u0441 \u043C\u0435\u0436\u0434\u0443 \u0441\u0435\u043A\u0442\u043E\u0440\u0430\u043C\u0438."]}),(0,e.jsxs)("p",{children:[(0,e.jsx)("b",{children:"\u0422\u0435\u043D\u0435\u0432\u0430\u044F \u043B\u043E\u0432\u0443\u0448\u043A\u0430"}),": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"," ",(0,e.jsxs)("i",{children:["200 ",(0,e.jsx)("span",{color:"red",children:"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438"})]}),", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0441\u043E\u0437\u0434\u0430\u0432\u0430\u0442\u044C \u043B\u043E\u0432\u0443\u0448\u043A\u0438, \u0442\u0440\u0430\u0432\u043C\u0438\u0440\u0443\u044E\u0449\u0438\u0435 \u0438 \u043E\u0441\u043B\u0435\u043F\u043B\u044F\u044E\u0449\u0438\u0435 \u043B\u044E\u0431\u043E\u0433\u043E \u043D\u0430\u0441\u0442\u0443\u043F\u0438\u0432\u0448\u0435\u0433\u043E \u0432 \u043D\u0438\u0445. \u041B\u043E\u0432\u0443\u0448\u043A\u0443 \u0442\u044F\u0436\u0435\u043B\u043E \u0437\u0430\u043C\u0435\u0442\u0438\u0442\u044C, \u043D\u043E \u043E\u043D\u0430 \u0438\u0441\u0447\u0435\u0437\u0430\u0435\u0442 \u043F\u043E\u0434 \u0432\u043E\u0437\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435\u043C \u0438\u0441\u0442\u043E\u0447\u043D\u0438\u043A\u043E\u0432 \u044F\u0440\u043A\u043E\u0433\u043E \u0441\u0432\u0435\u0442\u0430."]}),(0,e.jsxs)("p",{children:[(0,e.jsx)("b",{children:"\u0428\u0430\u0433 \u0432 \u0442\u0435\u043D\u044C"}),": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"," ",(0,e.jsxs)("i",{children:["300 ",(0,e.jsx)("span",{color:"red",children:"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438"})]}),", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0442\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C\u0441\u044F \u0432 \u043B\u044E\u0431\u043E\u0435 \u043C\u0435\u0441\u0442\u043E \u0432 \u043F\u0440\u0435\u0434\u0435\u043B\u0430\u0445 \u0432\u0438\u0434\u0438\u043C\u043E\u0441\u0442\u0438."]}),(0,e.jsx)("p",{children:"\u0412\u044B \u0442\u0430\u043A\u0436\u0435 \u043F\u043E\u043B\u0443\u0447\u0430\u0435\u0442\u0435 X-ray \u0437\u0440\u0435\u043D\u0438\u0435."}),(0,e.jsxs)("p",{children:[(0,e.jsx)("b",{children:"\u041F\u043E\u0433\u0430\u0441\u0438\u0442\u044C"}),": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"," ",(0,e.jsxs)("i",{children:["400 ",(0,e.jsx)("span",{color:"red",children:"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438"})]}),", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0432\u044B\u0432\u043E\u0434\u0438\u0442\u044C \u0438\u0437 \u0441\u0442\u0440\u043E\u044F \u043B\u044E\u0431\u044B\u0435 \u044D\u043B\u0435\u043A\u0442\u0440\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u0438\u0441\u0442\u043E\u0447\u043D\u0438\u043A\u0438 \u0441\u0432\u0435\u0442\u0430, \u0430 \u0442\u0430\u043A\u0436\u0435 \u0433\u043B\u043E\u0443\u0448\u0440\u0443\u043C\u044B."]}),(0,e.jsx)("b",{children:"\u0411\u043E\u0439 \u0441 \u0442\u0435\u043D\u044C\u044E"}),": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"," ",(0,e.jsxs)("i",{children:["600 ",(0,e.jsx)("span",{color:"red",children:"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438"})]}),", \u0441\u043E\u0437\u0434\u0430\u0435\u0442 \u0442\u0435\u043D\u0435\u0432\u044B\u0445 \u043A\u043B\u043E\u043D\u043E\u0432, \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u0431\u0443\u0434\u0443\u0442 \u0430\u0442\u0430\u043A\u043E\u0432\u0430\u0442\u044C \u0446\u0435\u043B\u044C, \u043F\u043E\u043A\u0430 \u0432\u044B \u043D\u0430\u0445\u043E\u0434\u0438\u0442\u0435\u0441\u044C \u0440\u044F\u0434\u043E\u043C.",(0,e.jsxs)("p",{children:[(0,e.jsx)("b",{children:"\u041F\u043E\u043B\u043D\u0430\u044F \u0441\u0438\u043B\u0430"}),(0,e.jsx)(t.cG,{}),(0,e.jsx)("b",{children:"\u0412\u0435\u0447\u043D\u0430\u044F \u0442\u044C\u043C\u0430"}),": \u043F\u043E\u0441\u043B\u0435 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u044F \u0432\u044B \u0440\u0430\u0441\u0441\u0442\u0432\u043E\u0440\u044F\u0435\u0442\u0435\u0441\u044C \u0432 \u043D\u0435\u0447\u0435\u0441\u0442\u0438\u0432\u043E\u0439 \u0442\u0435\u043C\u043D\u043E\u0442\u0435, \u0432 \u043A\u043E\u0442\u043E\u0440\u043E\u0439 \u0431\u0443\u0434\u0435\u0442 \u0432\u0438\u0434\u0435\u043D \u043B\u0438\u0448\u044C \u0441\u0438\u043B\u044C\u043D\u0435\u0439\u0448\u0438\u0439 \u0438\u0441\u0442\u043E\u0447\u043D\u0438\u043A \u0441\u0432\u0435\u0442\u0430. \u0425\u043E\u043B\u043E\u0434, \u043E\u043A\u0440\u0443\u0436\u0430\u044E\u0449\u0435\u0439 \u0432\u0430\u0441 \u0442\u044C\u043C\u044B \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043C\u043E\u0440\u0430\u0436\u0438\u0432\u0430\u0442\u044C \u0432\u0441\u0435\u0445 \u0436\u0438\u0432\u044B\u0445 \u0441\u0443\u0449\u0435\u0441\u0442\u0432 \u043F\u043E\u0431\u043B\u0438\u0437\u043E\u0441\u0442\u0438."]}),(0,e.jsx)(t.$n,{onClick:function(){return _("umbrae")},children:"\u0423\u043C\u0431\u0440\u0430"})]})},u=function(d){var v=(0,s.Oc)(),_=v.act,l=v.data,c=l.gargantua;return(0,e.jsxs)(t.wn,{title:"\u0413\u0430\u0440\u0433\u0430\u043D\u0442\u044E\u0430",children:[(0,e.jsx)(t.az,{textAlign:"center",children:(0,e.jsx)(t.Hg,{height:"256px",width:"256px",icon:c.icon,icon_state:c.icon_state})}),(0,e.jsx)("h3",{children:"\u0421\u043F\u0435\u0446\u0438\u0430\u043B\u0438\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044F \u043D\u0430 \u0441\u0442\u043E\u0439\u043A\u043E\u0441\u0442\u0438 \u0438 \u0431\u043B\u0438\u0436\u043D\u0435\u043C \u0431\u043E\u0435."}),(0,e.jsxs)("p",{children:[(0,e.jsx)("b",{children:"\u0412\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0438\u0435"}),": \u0411\u0443\u0434\u0435\u0442 \u0432\u043E\u0441\u0441\u0442\u0430\u043D\u0430\u0432\u043B\u0438\u0432\u0430\u0442\u044C \u0432\u0430\u0448\u0435 \u0437\u0434\u043E\u0440\u043E\u0432\u044C\u0435 \u0442\u0435\u043C \u0441\u0438\u043B\u044C\u043D\u0435\u0435, \u0447\u0435\u043C \u0431\u043E\u043B\u044C\u0448\u0435 \u0443\u0440\u043E\u043D\u0430 \u0432\u044B \u043F\u043E\u043B\u0443\u0447\u0438\u043B\u0438."]}),(0,e.jsxs)("p",{children:[(0,e.jsx)("b",{children:"\u041A\u0440\u043E\u0432\u0430\u0432\u044B\u0439 \u0432\u0430\u043B"}),": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442 100"," ",(0,e.jsx)("i",{children:(0,e.jsx)("span",{color:"red",children:"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438"})}),", \u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u0432\u0430\u0448\u0435 \u0441\u043E\u043F\u0440\u043E\u0442\u0438\u0432\u043B\u0435\u043D\u0438\u0435 \u043E\u0433\u043B\u0443\u0448\u0435\u043D\u0438\u044E, \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043A\u043E\u043C\u0443 \u0438 \u0441\u0442\u0430\u043C\u0438\u043D\u0430 \u0443\u0440\u043E\u043D\u0443. \u0412\u044B \u043D\u0435 \u043C\u043E\u0436\u0435\u0442\u0435 \u0441\u0442\u0440\u0435\u043B\u044F\u0442\u044C \u043F\u043E\u043A\u0430 \u0430\u043A\u0442\u0438\u0432\u043D\u0430 \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0441\u0442\u044C."]}),(0,e.jsxs)("p",{children:[(0,e.jsx)("b",{children:"\u0423\u0434\u0430\u0440\u043D\u0430\u044F \u0432\u043E\u043B\u043D\u0430"}),": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442 200"," ",(0,e.jsx)("i",{children:(0,e.jsx)("span",{color:"red",children:"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438"})}),", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0441\u043E\u0442\u0440\u044F\u0441\u0430\u0442\u044C \u0437\u0435\u043C\u043B\u044E \u043F\u043E\u0434 \u043D\u043E\u0433\u0430\u043C\u0438, \u0447\u0442\u043E\u0431\u044B \u043E\u0433\u043B\u0443\u0448\u0438\u0442\u044C \u0438 \u043E\u0442\u0442\u043E\u043B\u043A\u043D\u0443\u0442\u044C \u043E\u043A\u0440\u0443\u0436\u0430\u044E\u0449\u0438\u0445 \u0432\u0440\u0430\u0433\u043E\u0432."]}),(0,e.jsxs)("p",{children:[(0,e.jsx)("b",{children:"\u041A\u0440\u043E\u0432\u0430\u0432\u044B\u0439 \u0434\u0440\u0430\u0439\u0432"}),": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442 200"," ",(0,e.jsx)("i",{children:(0,e.jsx)("span",{color:"red",children:"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438"})}),", \u0434\u0430\u0435\u0442 \u0432\u0430\u043C \u043F\u0440\u0438\u0431\u0430\u0432\u043A\u0443 \u043A \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u0438 \u043D\u0430 \u043A\u043E\u0440\u043E\u0442\u043A\u043E\u0435 \u0432\u0440\u0435\u043C\u044F."]}),(0,e.jsxs)("p",{children:[(0,e.jsx)("b",{children:"\u041A\u0440\u043E\u0432\u0430\u0432\u044B\u0439 \u0432\u0430\u043B II"}),": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442 300"," ",(0,e.jsx)("i",{children:(0,e.jsx)("span",{color:"red",children:"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438"})}),", \u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u0432\u0435\u0441\u044C \u0443\u0440\u043E\u043D \u0432 \u0431\u043B\u0438\u0436\u043D\u0435\u043C \u0431\u043E\u044E \u043D\u0430 10."]}),(0,e.jsxs)("p",{children:[(0,e.jsx)("b",{children:"\u041D\u0435\u0443\u0434\u0435\u0440\u0436\u0438\u043C\u0430\u044F \u0441\u0438\u043B\u0430"}),": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442 400"," ",(0,e.jsx)("i",{children:(0,e.jsx)("span",{color:"red",children:"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438"})}),", \u0431\u0443\u0434\u0443\u0447\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u043D\u044B\u043C, \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u043E\u0442\u043A\u0440\u044B\u0432\u0430\u0442\u044C \u0434\u0432\u0435\u0440\u0438 \u043F\u0440\u0438 \u0441\u0442\u043E\u043B\u043A\u043D\u043E\u0432\u0435\u043D\u0438\u0438, \u0434\u0430\u0436\u0435 \u043D\u0435 \u0438\u043C\u0435\u044F \u0434\u043E\u0441\u0442\u0443\u043F\u0430. \u0412\u0430\u0441 \u0442\u0430\u043A\u0436\u0435 \u043D\u0435 \u043C\u043E\u0433\u0443\u0442 \u0442\u043E\u043B\u043A\u043D\u0443\u0442\u044C \u0438\u043B\u0438 \u0442\u0430\u0449\u0438\u0442\u044C, \u043F\u043E\u043A\u0430 \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0441\u0442\u044C \u0430\u043A\u0442\u0438\u0432\u043D\u0430."]}),(0,e.jsxs)("p",{children:[(0,e.jsx)("b",{children:"\u0414\u0435\u043C\u043E\u043D\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0445\u0432\u0430\u0442\u043A\u0430"}),": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442 600"," ",(0,e.jsx)("i",{children:(0,e.jsx)("span",{color:"red",children:"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438"})}),", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u043A \u0446\u0435\u043B\u0438 \u0434\u0435\u043C\u043E\u043D\u0438\u0447\u0435\u0441\u043A\u0443\u044E \u0440\u0443\u043A\u0443. \u0412 \u0437\u0430\u0432\u0438\u0441\u0438\u043C\u043E\u0441\u0442\u0438 \u043E\u0442 \u0438\u043D\u0442\u0435\u043D\u0442\u0430, disarm/grab, \u0432\u044B \u043E\u0442\u0442\u043E\u043B\u043A\u043D\u0435\u0442\u0435/\u043F\u0440\u0438\u0442\u044F\u043D\u0435\u0442\u0435 \u0446\u0435\u043B\u044C."]}),(0,e.jsxs)("p",{children:[(0,e.jsx)("b",{children:"\u041F\u043E\u043B\u043D\u0430\u044F \u0441\u0438\u043B\u0430"}),(0,e.jsx)(t.cG,{}),(0,e.jsx)("b",{children:"\u0420\u044B\u0432\u043E\u043A"}),": \u0412\u044B \u043F\u043E\u043B\u0443\u0447\u0430\u0435\u0442\u0435 \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0441\u0442\u044C \u0434\u0435\u043B\u0430\u0442\u044C \u0440\u044B\u0432\u043E\u043A \u0432 \u0432\u0430\u0448\u0443 \u0446\u0435\u043B\u044C, \u0440\u0430\u0437\u0440\u0443\u0448\u0430\u044F \u0438 \u043E\u0442\u0442\u0430\u043B\u043A\u0438\u0432\u0430\u044F \u0432\u0441\u0435, \u0432\u043E \u0447\u0442\u043E \u0432\u0440\u0435\u0436\u0435\u0442\u0435\u0441\u044C."]}),(0,e.jsx)(t.$n,{onClick:function(){return _("gargantua")},children:"\u0413\u0430\u0440\u0433\u0430\u043D\u0442\u044E\u0430"})]})},f=function(d){var v=(0,s.Oc)(),_=v.act,l=v.data,c=l.dantalion;return(0,e.jsxs)(t.wn,{title:"\u0414\u0430\u043D\u0442\u0430\u043B\u0438\u043E\u043D",children:[(0,e.jsx)(t.az,{textAlign:"center",children:(0,e.jsx)(t.Hg,{height:"256px",width:"256px",icon:c.icon,icon_state:c.icon_state})}),(0,e.jsx)("h3",{children:"\u0421\u043F\u0435\u0446\u0438\u0430\u043B\u0438\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044F \u043D\u0430 \u043F\u043E\u0440\u0430\u0431\u043E\u0449\u0435\u043D\u0438\u0438 \u0438 \u0438\u043B\u043B\u044E\u0437\u0438\u044F\u0445."}),(0,e.jsxs)("p",{children:[(0,e.jsx)("b",{children:"\u041F\u043E\u0434\u0447\u0438\u043D\u0435\u043D\u0438\u0435"}),": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"," ",(0,e.jsxs)("i",{children:["100 ",(0,e.jsx)("span",{color:"red",children:"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438"})]}),", \u043F\u043E\u0434\u0447\u0438\u043D\u044F\u0435\u0442 \u0446\u0435\u043B\u044C \u0432\u0430\u0448\u0435\u0439 \u0432\u043E\u043B\u0435, \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u043E\u0442 \u0432\u0430\u0441 \u043D\u0435 \u0448\u0435\u0432\u0435\u043B\u0438\u0442\u044C\u0441\u044F \u0432\u043E \u0432\u0440\u0435\u043C\u044F \u043F\u043E\u0440\u0430\u0431\u043E\u0449\u0435\u043D\u0438\u044F. \u041D\u0435 \u0440\u0430\u0431\u043E\u0442\u0430\u0435\u0442 \u043D\u0430 \u043D\u043E\u0441\u0438\u0442\u0435\u043B\u0435\u0439 \u0438\u043C\u043F\u043B\u0430\u043D\u0442\u0430 \u0437\u0430\u0449\u0438\u0442\u044B \u0440\u0430\u0437\u0443\u043C\u0430 \u0438 \u043D\u0430 \u0443\u0436\u0435 \u043F\u043E\u0440\u0430\u0431\u043E\u0449\u0435\u043D\u043D\u044B\u0445 \u0441\u0443\u0449\u0435\u0441\u0442\u0432."]}),(0,e.jsxs)("p",{children:[(0,e.jsx)("b",{children:"\u041F\u0440\u0435\u0434\u0435\u043B \u0440\u0430\u0431\u043E\u0432"}),": \u0412\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u043F\u043E\u0440\u0430\u0431\u043E\u0442\u0438\u0442\u044C \u043C\u0430\u043A\u0441\u0438\u043C\u0443\u043C \u043E\u0434\u043D\u043E\u0433\u043E \u0440\u0430\u0431\u0430 \u0437\u0430 \u0440\u0430\u0437. \u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u0440\u0430\u0431\u043E\u0432 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0441\u0442\u0438 \u043F\u0440\u0438 \u0434\u043E\u0441\u0442\u0438\u0436\u0435\u043D\u0438\u0438"," ",(0,e.jsxs)("i",{children:["300 ",(0,e.jsx)("span",{color:"red",children:"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438"})]}),","," ",(0,e.jsxs)("i",{children:["400 ",(0,e.jsx)("span",{color:"red",children:"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438"})]})," ","\u0438 \u043F\u043E\u043B\u043D\u043E\u0439 \u0441\u0438\u043B\u044B \u0441 \u043C\u0430\u043A\u0441\u0438\u043C\u0443\u043C\u043E\u043C \u0432 4 \u0440\u0430\u0431\u0430."]}),(0,e.jsxs)("p",{children:[(0,e.jsx)("b",{children:"\u0422\u0435\u043B\u0435\u043F\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0441\u0432\u044F\u0437\u044C"}),": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"," ",(0,e.jsxs)("i",{children:["100 ",(0,e.jsx)("span",{color:"red",children:"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438"})]}),", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0440\u0430\u0437\u0433\u043E\u0432\u0430\u0440\u0438\u0432\u0430\u0442\u044C \u0441 \u0432\u0430\u0448\u0438\u043C\u0438 \u0440\u0430\u0431\u0430\u043C\u0438, \u0432\u0430\u0448\u0438 \u0440\u0430\u0431\u044B \u0442\u0430\u043A\u0436\u0435 \u043C\u043E\u0433\u0443\u0442 \u043E\u0442\u0432\u0435\u0447\u0430\u0442\u044C \u0432\u0430\u043C."]}),(0,e.jsxs)("p",{children:[(0,e.jsx)("b",{children:"\u041F\u043E\u0434\u043F\u0440\u043E\u0441\u0442\u0440\u0430\u043D\u0441\u0442\u0432\u0435\u043D\u043D\u044B\u0439 \u043E\u0431\u043C\u0435\u043D"}),": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"," ",(0,e.jsxs)("i",{children:["100 ",(0,e.jsx)("span",{color:"red",children:"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438"})]}),", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043C\u0435\u043D\u044F\u0442\u044C\u0441\u044F \u043C\u0435\u0441\u0442\u0430\u043C\u0438 \u0441 \u0446\u0435\u043B\u044C\u044E."]}),(0,e.jsxs)("p",{children:[(0,e.jsx)("b",{children:"\u0423\u043C\u0438\u0440\u043E\u0442\u0432\u043E\u0440\u0435\u043D\u0438\u0435"}),": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"," ",(0,e.jsxs)("i",{children:["200 ",(0,e.jsx)("span",{color:"red",children:"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438"})]}),", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0443\u0441\u043F\u043E\u043A\u043E\u0438\u0442\u044C \u0446\u0435\u043B\u044C, \u043E\u0442\u043E\u0431\u0440\u0430\u0432 \u0443 \u043D\u0435\u0435 \u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E\u0441\u0442\u044C \u043D\u0430\u043D\u0435\u0441\u0442\u0438 \u0432\u0440\u0435\u0434 \u043A\u043E\u043C\u0443-\u043B\u0438\u0431\u043E \u0432 \u0442\u0435\u0447\u0435\u043D\u0438\u0435 40 \u0441\u0435\u043A\u0443\u043D\u0434."]}),(0,e.jsxs)("p",{children:[(0,e.jsx)("b",{children:"\u041F\u0440\u0438\u043C\u0430\u043D\u043A\u0430"}),": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"," ",(0,e.jsxs)("i",{children:["300 ",(0,e.jsx)("span",{color:"red",children:"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438"})]}),", \u043D\u0435\u043D\u0430\u0434\u043E\u043B\u0433\u043E \u0434\u0435\u043B\u0430\u0435\u0442 \u0432\u0430\u0441 \u043D\u0435\u0432\u0438\u0434\u0438\u043C\u044B\u043C \u0438 \u0441\u043E\u0437\u0434\u0430\u0435\u0442 \u0432\u0430\u0448\u0443 \u043A\u043E\u043F\u0438\u044E \u043E\u0431\u043C\u0430\u043D\u043A\u0443."]}),(0,e.jsxs)("p",{children:[(0,e.jsx)("b",{children:"\u0421\u043F\u043B\u043E\u0442\u0438\u0442\u044C \u0440\u0430\u0431\u043E\u0432"}),": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"," ",(0,e.jsxs)("i",{children:["400 ",(0,e.jsx)("span",{color:"red",children:"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438"})]}),", \u0441\u043D\u0438\u043C\u0430\u0435\u0442 \u0441 \u0431\u043B\u0438\u0437\u0441\u0442\u043E\u044F\u0449\u0438\u0445 \u0440\u0430\u0431\u043E\u0432 \u043B\u044E\u0431\u044B\u0435 \u043E\u0433\u043B\u0443\u0448\u0430\u044E\u0449\u0438\u0435 \u044D\u0444\u0444\u0435\u043A\u0442\u044B."]}),(0,e.jsxs)("p",{children:[(0,e.jsx)("b",{children:"\u041A\u0440\u043E\u0432\u0430\u0432\u044B\u0435 \u0443\u0437\u044B"}),": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"," ",(0,e.jsxs)("i",{children:["600 ",(0,e.jsx)("span",{color:"red",children:"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438"})]}),", \u0441\u0432\u044F\u0437\u044B\u0432\u0430\u0435\u0442 \u0432\u0430\u0441 \u0441\u043E \u0432\u0441\u0435\u043C\u0438 \u043E\u043A\u0440\u0443\u0436\u0430\u044E\u0449\u0438\u043C\u0438 \u0432\u0430\u0441 \u0440\u0430\u0431\u0430\u043C\u0438, \u0435\u0441\u043B\u0438 \u043A\u0442\u043E-\u043B\u0438\u0431\u043E \u0432 \u0441\u0432\u044F\u0437\u043A\u0435 \u043F\u043E\u043B\u0443\u0447\u0430\u0435\u0442 \u0443\u0440\u043E\u043D, \u0442\u043E \u043E\u043D \u0434\u0435\u043B\u0438\u0442\u0441\u044F \u043C\u0435\u0436\u0434\u0443 \u0432\u0441\u0435\u043C\u0438 \u043E\u0441\u0442\u0430\u043B\u044C\u043D\u044B\u043C\u0438. \u0415\u0441\u043B\u0438 \u0440\u0430\u0431 \u0443\u0445\u043E\u0434\u0438\u0442 \u0434\u0430\u043B\u0435\u043A\u043E \u043E\u0442 \u0432\u0430\u0441, \u0442\u043E \u0432\u044B \u0442\u0435\u0440\u044F\u0435\u0442\u0435 \u0441\u0432\u044F\u0437\u044C \u0441 \u043D\u0438\u043C."]}),(0,e.jsxs)("p",{children:[(0,e.jsx)("b",{children:"\u041F\u043E\u043B\u043D\u0430\u044F \u0441\u0438\u043B\u0430"}),(0,e.jsx)(t.cG,{}),(0,e.jsx)("b",{children:"\u041C\u0430\u0441\u0441\u043E\u0432\u0430\u044F \u0438\u0441\u0442\u0435\u0440\u0438\u044F"}),": \u0441\u043E\u0437\u0434\u0430\u0435\u0442 \u043C\u0430\u0441\u0441\u043E\u0432\u0443\u044E \u0433\u0430\u043B\u043B\u044E\u0446\u0438\u043D\u0430\u0446\u0438\u044E, \u043E\u0441\u043B\u0435\u043F\u0438\u0432 \u0432\u0441\u0435\u0445 \u043F\u043E\u0431\u043B\u0438\u0437\u043E\u0441\u0442\u0438, \u0430 \u0437\u0430\u0442\u0435\u043C \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u0432 \u043E\u043A\u0440\u0443\u0436\u0430\u044E\u0449\u0438\u0445 \u0432\u0438\u0434\u0435\u0442\u044C \u0434\u0440\u0443\u0433 \u0432 \u0434\u0440\u0443\u0433\u0435 \u0440\u0430\u0437\u043B\u0438\u0447\u043D\u044B\u0445 \u0436\u0438\u0432\u043E\u0442\u043D\u044B\u0445."]}),(0,e.jsx)(t.$n,{onClick:function(){return _("dantalion")},children:"\u0414\u0430\u043D\u0442\u0430\u043B\u0438\u043E\u043D"})]})},m=function(d){var v=(0,s.Oc)(),_=v.act,l=v.data,c=l.bestia;return(0,e.jsxs)(t.wn,{title:"\u0411\u0435\u0441\u0442\u0438\u044F",children:[(0,e.jsx)(t.az,{textAlign:"center",children:(0,e.jsx)(t.Hg,{height:"256px",width:"256px",icon:c.icon,icon_state:c.icon_state})}),(0,e.jsx)("h3",{children:"\u0421\u043F\u0435\u0446\u0438\u0430\u043B\u0438\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044F \u043D\u0430 \u043F\u0440\u0435\u0432\u0440\u0430\u0449\u0435\u043D\u0438\u0438 \u0438 \u0434\u043E\u0431\u044B\u0447\u0435 \u0442\u0440\u043E\u0444\u0435\u0435\u0432."}),(0,e.jsxs)("p",{children:[(0,e.jsx)("b",{children:"\u041F\u043E\u0441\u043C\u043E\u0442\u0440\u0435\u0442\u044C \u0442\u0440\u043E\u0444\u0435\u0438"}),": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"," ",(0,e.jsxs)("i",{children:["100 ",(0,e.jsx)("span",{color:"red",children:"\u043A\u0440\u043E\u0432\u0438"})]}),", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043F\u0440\u043E\u0432\u0435\u0440\u0438\u0442\u044C \u043A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u0442\u0440\u043E\u0444\u0435\u0435\u0432, \u0430 \u0442\u0430\u043A\u0436\u0435 \u0432\u0441\u0435 \u043F\u0430\u0441\u0441\u0438\u0432\u043D\u044B\u0435 \u044D\u0444\u0444\u0435\u043A\u0442\u044B, \u0447\u0442\u043E \u043E\u043D\u0438 \u0434\u0430\u044E\u0442."]}),(0,e.jsxs)("p",{children:[(0,e.jsx)("b",{children:"\u041F\u0440\u0435\u043F\u0430\u0440\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435"}),": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"," ",(0,e.jsxs)("i",{children:["100 ",(0,e.jsx)("span",{color:"red",children:"\u043A\u0440\u043E\u0432\u0438"})]}),", \u0432\u0434\u043E\u0431\u0430\u0432\u043E\u043A \u043A \u043A\u0440\u043E\u0432\u0438 \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043F\u043E\u0433\u043B\u043E\u0449\u0430\u0442\u044C \u043E\u0440\u0433\u0430\u043D\u044B \u0432 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0442\u0440\u043E\u0444\u0435\u0435\u0432 \u0434\u043B\u044F \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043D\u0438\u044F \u0432\u0430\u0448\u0438\u0445 \u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E\u0441\u0442\u0435\u0439."]}),(0,e.jsxs)("p",{children:[(0,e.jsx)("b",{children:"\u041F\u0440\u0435\u0434\u0435\u043B \u043F\u0440\u0435\u043F\u0430\u0440\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0439"}),": \u0437\u0430 \u0440\u0430\u0437 \u0432\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u043F\u043E\u0433\u043B\u043E\u0442\u0438\u0442\u044C \u043C\u0430\u043A\u0441\u0438\u043C\u0443\u043C \u043E\u0434\u0438\u043D \u043E\u0440\u0433\u0430\u043D. \u041F\u0440\u0435\u0434\u0435\u043B \u0431\u0443\u0434\u0435\u0442 \u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043F\u0440\u0438 \u0434\u043E\u0441\u0442\u0438\u0436\u0435\u043D\u0438\u0438"," ",(0,e.jsxs)("i",{children:["400 ",(0,e.jsx)("span",{color:"red",children:"\u043A\u0440\u043E\u0432\u0438"})]})," ","\u0438 \u043F\u043E\u043B\u043D\u043E\u0439 \u0441\u0438\u043B\u044B \u0441 \u043C\u0430\u043A\u0441\u0438\u043C\u0443\u043C\u043E\u043C \u0432 \u0442\u0440\u0438 \u043E\u0440\u0433\u0430\u043D\u0430."]}),(0,e.jsxs)("p",{children:[(0,e.jsx)("b",{children:"\u0417\u0430\u0440\u0430\u0436\u0435\u043D\u043D\u044B\u0439 \u0442\u0440\u043E\u0444\u0435\u0439"}),": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"," ",(0,e.jsxs)("i",{children:["100 ",(0,e.jsx)("span",{color:"red",children:"\u043A\u0440\u043E\u0432\u0438"})]}),", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043E\u0433\u043B\u0443\u0448\u0430\u0442\u044C \u043F\u0440\u043E\u0442\u0438\u0432\u043D\u0438\u043A\u043E\u0432 \u0441 \u0431\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u0439 \u0434\u0438\u0441\u0442\u0430\u043D\u0446\u0438\u0438, \u0437\u0430\u0440\u0430\u0436\u0430\u044F \u0438\u0445 \u043C\u043E\u0433\u0438\u043B\u044C\u043D\u043E\u0439 \u043B\u0438\u0445\u043E\u0440\u0430\u0434\u043A\u043E\u0439."]}),(0,e.jsxs)("p",{children:[(0,e.jsx)("b",{children:"\u0420\u044B\u0432\u043E\u043A"}),": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"," ",(0,e.jsxs)("i",{children:["200 ",(0,e.jsx)("span",{color:"red",children:"\u043A\u0440\u043E\u0432\u0438"})]}),", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0431\u044B\u0441\u0442\u0440\u043E \u0441\u043E\u043A\u0440\u0430\u0442\u0438\u0442\u044C \u0440\u0430\u0441\u0441\u0442\u043E\u044F\u043D\u0438\u0435 \u043C\u0435\u0436\u0434\u0443 \u0432\u0430\u043C\u0438 \u0438 \u0446\u0435\u043B\u044C\u044E \u0438\u043B\u0438 \u0441\u0431\u0435\u0436\u0430\u0442\u044C \u0438\u0437 \u043E\u043F\u0430\u0441\u043D\u043E\u0439 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438."]}),(0,e.jsxs)("p",{children:[(0,e.jsx)("b",{children:"\u041F\u043E\u043C\u0435\u0442\u0438\u0442\u044C \u0434\u043E\u0431\u044B\u0447\u0443"}),": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"," ",(0,e.jsxs)("i",{children:["200 ",(0,e.jsx)("span",{color:"red",children:"\u043A\u0440\u043E\u0432\u0438"})]}),", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043E\u0442\u043C\u0435\u0442\u0438\u0442\u044C \u0436\u0435\u0440\u0442\u0432\u0443, \u0443\u043C\u0435\u043D\u044C\u0448\u0438\u0432 \u0435\u0435 \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0438 \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u0432 \u0435\u0435 \u043F\u0443\u0442\u0430\u0442\u044C\u0441\u044F \u0432 \u043D\u043E\u0433\u0430\u0445."]}),(0,e.jsxs)("p",{children:[(0,e.jsx)("b",{children:"\u041C\u0435\u0442\u0430\u043C\u043E\u0440\u0444\u043E\u0437\u0430 - \u041B\u0435\u0442\u0443\u0447\u0438\u0435 \u043C\u044B\u0448\u0438"}),": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"," ",(0,e.jsxs)("i",{children:["300 ",(0,e.jsx)("span",{color:"red",children:"\u043A\u0440\u043E\u0432\u0438"})]}),", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043E\u0431\u0440\u0430\u0442\u0438\u0442\u044C\u0441\u044F \u0441\u043C\u0435\u0440\u0442\u043E\u043D\u043E\u0441\u043D\u044B\u043C\u0438 \u043A\u043E\u0441\u043C\u0438\u0447\u0435\u0441\u043A\u0438\u043C\u0438 \u043B\u0435\u0442\u0443\u0447\u0438\u043C\u0438 \u043C\u044B\u0448\u0430\u043C\u0438."]}),(0,e.jsxs)("p",{children:[(0,e.jsx)("b",{children:"\u0410\u043D\u0430\u0431\u0438\u043E\u0437"}),": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"," ",(0,e.jsxs)("i",{children:["400 ",(0,e.jsx)("span",{color:"red",children:"\u043A\u0440\u043E\u0432\u0438"})]}),", \u0434\u0440\u0435\u0432\u043D\u044F\u044F \u0442\u0435\u0445\u043D\u0438\u043A\u0430, \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u044E\u0449\u0430\u044F \u0432\u0430\u043C \u0437\u0430\u043B\u0435\u0447\u0438\u0442\u044C \u043F\u043E\u0447\u0442\u0438 \u043B\u044E\u0431\u044B\u0435 \u0440\u0430\u043D\u0435\u043D\u0438\u044F \u0437\u0430 \u0441\u0447\u0435\u0442 \u0441\u043D\u0430 \u0432 \u0433\u0440\u043E\u0431\u0443."]}),(0,e.jsxs)("p",{children:[(0,e.jsx)("b",{children:"\u041F\u0440\u0438\u0437\u044B\u0432 \u043B\u0435\u0442\u0443\u0447\u0438\u0445 \u043C\u044B\u0448\u0435\u0439"}),": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"," ",(0,e.jsxs)("i",{children:["600 ",(0,e.jsx)("span",{color:"red",children:"\u043A\u0440\u043E\u0432\u0438"})]}),", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043F\u0440\u0438\u0437\u0432\u0430\u0442\u044C \u043A\u043E\u0441\u043C\u0438\u0447\u0435\u0441\u043A\u0438\u0445 \u043B\u0435\u0442\u0443\u0447\u0438\u0445 \u043C\u044B\u0448\u0435\u0439 \u0434\u043B\u044F \u043F\u043E\u043C\u043E\u0449\u0438 \u0432 \u0431\u043E\u044E."]}),(0,e.jsxs)("p",{children:[(0,e.jsx)("b",{children:"\u041F\u043E\u043B\u043D\u0430\u044F \u0441\u0438\u043B\u0430"}),(0,e.jsx)(t.cG,{}),(0,e.jsx)("b",{children:"\u041C\u0435\u0442\u0430\u043C\u043E\u0440\u0444\u043E\u0437\u0430 - \u0413\u043E\u043D\u0447\u0430\u044F"}),": \u041F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043E\u0431\u0440\u0430\u0442\u0438\u0442\u044C\u0441\u044F \u0432 \u0441\u043E\u0432\u0435\u0440\u0448\u0435\u043D\u043D\u0443\u044E \u0444\u043E\u0440\u043C\u0443 \u0431\u043B\u044E\u0441\u043F\u0435\u0439\u0441 \u0441\u0443\u0449\u043D\u043E\u0441\u0442\u0438, \u0437\u0430\u0432\u043B\u0430\u0434\u0435\u0432\u0448\u0435\u0439 \u0432\u0430\u0448\u0435\u0439 \u0434\u0443\u0448\u043E\u0439."]}),(0,e.jsx)(t.$n,{onClick:function(){return _("bestia")},children:"\u0411\u0435\u0441\u0442\u0438\u044F"})]})}},2866:(q,S,r)=>{"use strict";r.r(S),r.d(S,{ChemMaster:()=>_});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=r(829),b=r(538),O=r(185),y=r(8222);function u(){return u=Object.assign||function(P){for(var M=1;M=0)&&(B[T]=P[T]);return B}var m=[1,5,10],d=function(P){var M=(0,s.Oc)(),B=M.act,w=M.data,T=P.args.analysis;return(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.wn,{title:w.condi?"\u0410\u043D\u0430\u043B\u0438\u0437 \u0432\u0435\u0449\u0435\u0441\u0442\u0432\u0430":"\u0410\u043D\u0430\u043B\u0438\u0437 \u0440\u0435\u0430\u0433\u0435\u043D\u0442\u0430",children:(0,e.jsx)(n.az,{mx:"0.5rem",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435",children:T.name}),(0,e.jsx)(n.Ki.Item,{label:"\u041E\u043F\u0438\u0441\u0430\u043D\u0438\u0435",children:(T.desc||"").length>0?T.desc:"\u041D/\u0414"}),T.blood_type&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.Ki.Item,{label:"\u0413\u0440\u0443\u043F\u043F\u0430 \u043A\u0440\u043E\u0432\u0438",children:T.blood_type}),(0,e.jsx)(n.Ki.Item,{label:"\u0414\u041D\u041A-\u043A\u043E\u0434",className:"LabeledList__breakContents",children:T.blood_dna})]}),!w.condi&&(0,e.jsx)(n.$n,{icon:w.printing?"spinner":"print",disabled:w.printing,iconSpin:!!w.printing,ml:"0.5rem",onClick:function(){return B("print",{idx:T.idx,beaker:P.args.beaker})},children:"\u041F\u0435\u0447\u0430\u0442\u044C"})]})})})})},v=function(P){return P[P.ToDisposals=0]="ToDisposals",P[P.ToBeaker=1]="ToBeaker",P}(v||{}),_=function(P){return(0,e.jsxs)(t.p8,{width:575,height:650,children:[(0,e.jsx)(b.ComplexModal,{}),(0,e.jsx)(t.p8.Content,{children:(0,e.jsxs)(n.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(l,{}),(0,e.jsx)(c,{}),(0,e.jsx)(h,{}),(0,e.jsx)(I,{})]})})]})},l=function(P){var M=(0,s.Oc)(),B=M.act,w=M.data,T=w.beaker,K=w.beaker_reagents,R=w.buffer_reagents,U=R.length>0;return(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(n.wn,{title:"\u0401\u043C\u043A\u043E\u0441\u0442\u044C",fill:!0,scrollable:!0,buttons:U?(0,e.jsx)(n.$n.Confirm,{icon:"eject",onClick:function(){return B("eject")},children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u0451\u043C\u043A\u043E\u0441\u0442\u044C \u0438 \u043E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u0431\u0443\u0444\u0435\u0440"}):(0,e.jsx)(n.$n,{icon:"eject",disabled:!T,onClick:function(){return B("eject")},children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u0451\u043C\u043A\u043E\u0441\u0442\u044C \u0438 \u043E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u0431\u0443\u0444\u0435\u0440"}),children:T?(0,e.jsx)(a.BeakerContents,{beakerLoaded:!0,beakerContents:K,buttons:function(F,$){return(0,e.jsxs)(n.az,{mb:$0?(0,e.jsx)(a.BeakerContents,{beakerLoaded:!0,beakerContents:K,buttons:function(R,U){return(0,e.jsxs)(n.az,{mb:U0&&(R=K.map(function(U){var F=U.id,$=U.sprite;return(0,e.jsx)(x,{icon:$,color:"translucent",onClick:function(){return M("set_sprite_style",{production_mode:w,style:F})},selected:T===F},F)})),(0,e.jsx)(j,{productionData:P.productionData,children:R&&(0,e.jsx)(n.Ki.Item,{label:"\u0422\u0438\u043F",children:R})})},I=function(P){var M=(0,s.Oc)(),B=M.act,w=M.data,T=w.loaded_pill_bottle_style,K=w.containerstyles,R=w.loaded_pill_bottle,U={width:"20px",height:"20px"},F=K.map(function($){var W=$.color,N=$.name,Z=T===W;return(0,e.jsxs)(n.$n,{style:{position:"relative",width:U.width,height:U.height},onClick:function(){return B("set_container_style",{style:W})},icon:Z&&"check",iconStyle:{position:"relative",zIndex:"1"},tooltip:N,tooltipPosition:"top",children:[!Z&&(0,e.jsx)("div",{style:{display:"inline-block"}}),(0,e.jsx)("span",{className:"Button",style:{display:"inline-block",position:"absolute",top:0,left:0,margin:0,padding:0,width:U.width,height:U.height,backgroundColor:W,opacity:.6,filter:"alpha(opacity=60)"}})]},W)});return(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.wn,{fill:!0,title:"\u041A\u0430\u0441\u0442\u043E\u043C\u0438\u0437\u0430\u0446\u0438\u044F \u043A\u043E\u043D\u0442\u0435\u0439\u043D\u0435\u0440\u0430",buttons:(0,e.jsx)(n.$n,{icon:"eject",disabled:!R,onClick:function(){return B("ejectp")},children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u043A\u043E\u043D\u0442\u0435\u0439\u043D\u0435\u0440"}),children:R?(0,e.jsx)(n.Ki,{children:(0,e.jsxs)(n.Ki.Item,{label:"\u0421\u0442\u0438\u043B\u044C",children:[(0,e.jsx)(n.$n,{style:{width:U.width,height:U.height},icon:"tint-slash",onClick:function(){return B("clear_container_style")},selected:!T,tooltip:"\u041F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E",tooltipPosition:"top"}),F]})}):(0,e.jsx)(n.az,{color:"label",children:"\u041A\u043E\u043D\u0442\u0435\u0439\u043D\u0435\u0440 \u043E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442."})})})};(0,b.modalRegisterBodyOverride)("analyze",d)},2895:(q,S,r)=>{"use strict";r.d(S,{CO:()=>b,Xd:()=>f,Z4:()=>O,tk:()=>y});var e=r(1859);/** * N-dimensional vector manipulation functions. * * Vectors are plain number arrays, i.e. [x, y, z]. @@ -97,11 +97,11 @@ Error generating stack: `+z.message+` * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var s=function(_,l){return _+l},n=function(_,l){return _-l},t=function(_,l){return _*l},a=function(_,l){return _/l},O=function(){for(var _=arguments.length,l=new Array(_),c=0;c<_;c++)l[c]=arguments[c];return(0,e.Tj)(e.yU.apply(void 0,[].concat(l)),function(h){return(0,e.TS)(h,s)})},b=function(){for(var _=arguments.length,l=new Array(_),c=0;c<_;c++)l[c]=arguments[c];return(0,e.Tj)(e.yU.apply(void 0,[].concat(l)),function(h){return(0,e.TS)(h,n)})},y=function(){for(var _=arguments.length,l=new Array(_),c=0;c<_;c++)l[c]=arguments[c];return(0,e.Tj)(e.yU.apply(void 0,[].concat(l)),function(h){return(0,e.TS)(h,t)})},u=function(){for(var _=arguments.length,l=new Array(_),c=0;c<_;c++)l[c]=arguments[c];return map(zip.apply(void 0,[].concat(l)),function(h){return reduce(h,a)})},f=function(_,l){return(0,e.Tj)(_,function(c){return c*l})},m=function(_){return map(_,function(l){return-l})},d=function(_){return Math.sqrt(reduce(y(_,_),s))},v=function(_){var l=d(_);return map(_,function(c){return c/l})}},2905:(q,S,r)=>{"use strict";r.r(S),r.d(S,{CurrentLevels:()=>e.CurrentLevels,DataDiskMenu:()=>s.DataDiskMenu,DeconstructionMenu:()=>n.DeconstructionMenu,LatheCategory:()=>t.LatheCategory,LatheChemicalStorage:()=>a.LatheChemicalStorage,LatheMainMenu:()=>O.LatheMainMenu,LatheMaterialStorage:()=>y.LatheMaterialStorage,LatheMaterials:()=>b.LatheMaterials,LatheMenu:()=>u.LatheMenu,LatheSearch:()=>f.LatheSearch,MainMenu:()=>m.MainMenu,RndNavButton:()=>v.RndNavButton,RndNavbar:()=>d.RndNavbar,RndRoute:()=>_.RndRoute,SettingsMenu:()=>l.SettingsMenu});var e=r(5471),s=r(4623),n=r(4722),t=r(2983),a=r(6012),O=r(2301),b=r(2265),y=r(5141),u=r(726),f=r(3515),m=r(4515),d=r(91),v=r(4138),_=r(1746),l=r(6159)},2907:(q,S,r)=>{"use strict";r.r(S),r.d(S,{MechBayConsole:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(O){var b=(0,s.Oc)(),y=b.act,u=b.data,f=u.recharge_port,m=f&&f.mech,d=m&&m.cell,v=m&&m.name;return(0,e.jsx)(t.p8,{width:400,height:150,children:(0,e.jsx)(t.p8.Content,{children:(0,e.jsx)(n.wn,{title:v?"Mech status: "+v:"Mech status",textAlign:"center",buttons:(0,e.jsx)(n.$n,{icon:"sync",onClick:function(){return y("reconnect")},children:"Sync"}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Integrity",children:!f&&(0,e.jsx)(n.IC,{children:"No power port detected. Please re-sync."})||!m&&(0,e.jsx)(n.IC,{children:"No mech detected."})||(0,e.jsx)(n.z2,{value:m.health/m.maxhealth,ranges:{good:[.7,1/0],average:[.3,.7],bad:[-1/0,.3]}})}),(0,e.jsx)(n.Ki.Item,{label:"Power",children:!f&&(0,e.jsx)(n.IC,{children:"No power port detected. Please re-sync."})||!m&&(0,e.jsx)(n.IC,{children:"No mech detected."})||!d&&(0,e.jsx)(n.IC,{children:"No cell is installed."})||(0,e.jsxs)(n.z2,{value:d.charge/d.maxcharge,ranges:{good:[.7,1/0],average:[.3,.7],bad:[-1/0,.3]},children:[(0,e.jsx)(n.zv,{value:d.charge})," / "+d.maxcharge]})})]})})})})}},2919:(q,S,r)=>{"use strict";r.r(S),r.d(S,{RitualMenu:()=>O});var e=r(1131),s=r(7003),n=r(360),t=r(5180),a=r(3521),O=function(b){var y=(0,n.Oc)(),u=y.act,f=y.data,m=(0,s.useState)("#3c3c3c"),d=m[0],v=m[1],_=f.rituals,l=f.selected_ritual,c=f.description,h=f.params,g=f.things,p=f.ritual_available,j=f.time_left,x=(0,s.useState)(l),C=x[0],I=x[1];return(0,e.jsx)(a.p8,{width:550,height:600,children:(0,e.jsxs)(t.BJ,{vertical:!0,fill:!0,m:"15px",children:[(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.az,{backgroundColor:"#3c3c3c",p:"12px",color:"white",style:{color:"white",borderRadius:"10px",fontWeight:"bold"},children:(0,e.jsxs)(t.BJ,{vertical:!0,children:[(0,e.jsx)(t.BJ.Item,{style:{marginBottom:"2px"},children:"\u0412\u044B\u0431\u043E\u0440 \u0440\u0438\u0442\u0443\u0430\u043B\u0430"}),(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.ms,{width:"100%",noChevron:!0,options:_,selected:C||"\u0420\u0438\u0442\u0443\u0430\u043B \u043D\u0435 \u0432\u044B\u0431\u0440\u0430\u043D",mt:1,onSelected:function(P){I(P),u("select_ritual",{selected_ritual:P})},style:{color:"white",border:"1px solid #444",backgroundColor:"#2a2a2a",borderRadius:"5px"}})})]})})}),l?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.BJ.Item,{children:(0,e.jsxs)(t.BJ,{fill:!0,m:"20px 0",children:[(0,e.jsx)(t.BJ.Item,{width:"55%",children:(0,e.jsx)(t.az,{textAlign:"center",fontWeight:"bold",p:"8px",backgroundColor:"#3a3a3a",style:{color:"white",borderRadius:"6px 6px 0 0",borderBottom:"2px solid #888",fontWeight:"bold"},children:"\u0421\u0432\u043E\u0439\u0441\u0442\u0432\u0430:"})}),(0,e.jsx)(t.BJ.Item,{width:"45%",children:(0,e.jsx)(t.az,{textAlign:"center",p:"8px",color:"#ffffff",backgroundColor:"#3a3a3a",style:{color:"white",borderRadius:"6px 6px 0 0",borderBottom:"2px solid #888",fontWeight:"bold"},children:"\u0420\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442:"})})]})}),(0,e.jsx)(t.BJ.Item,{children:(0,e.jsxs)(t.BJ,{fill:!0,m:"12px 0",children:[(0,e.jsx)(t.BJ.Item,{width:"55%",children:(0,e.jsxs)(t.az,{backgroundColor:"#3c3c3c",p:"12px",color:"white",style:{color:"white",borderRadius:"8px",boxShadow:"inset 0 0 8px #000"},children:[h?Object.entries(h).map(function(P){var M=P[0],B=P[1];return(0,e.jsxs)("span",{children:[M," ",(0,e.jsx)("b",{children:" "+B}),(0,e.jsx)("br",{})]},M)}):"",(0,e.jsx)("br",{}),"\u0421\u043F\u0438\u0441\u043E\u043A \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u044B\u0445 \u043F\u0440\u0435\u0434\u043C\u0435\u0442\u043E\u0432:",(0,e.jsx)("ul",{style:{marginLeft:"15px"},children:g?Object.entries(g).map(function(P){var M=P[0],B=P[1];return(0,e.jsxs)("li",{children:[M," ",(0,e.jsx)("b",{children:" "+B}),(0,e.jsx)("br",{})]},M)}):""})]})}),(0,e.jsx)(t.BJ.Item,{width:"45%",children:(0,e.jsx)(t.az,{backgroundColor:"#3c3c3c",p:"12px",color:"white",style:{color:"white",borderRadius:"8px",boxShadow:"inset 0 0 8px #000"},children:c})})]})}),(0,e.jsx)(t.BJ.Item,{align:"center",mt:"auto",children:(0,e.jsx)(t.$n,{mb:"1.8em",width:"40em",backgroundColor:d,style:{color:"white",border:"1px solid #555",padding:"10px 20px",borderRadius:"10px",cursor:"pointer",fontWeight:"bold",textAlign:"center"},disabled:!p,onMouseOver:function(P){return v("#555")},onMouseLeave:function(P){return v("#3c3c3c")},onClick:function(){I(null),u("start_ritual")},children:p?"\u0417\u0430\u043F\u0443\u0441\u043A \u0440\u0438\u0442\u0443\u0430\u043B\u0430":"\u041D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u043E ("+j+"\u0441)"})})]}):(0,e.jsx)(t.BJ.Item,{width:"100%",height:"70%",children:(0,e.jsx)(t.az,{width:"100%",height:"100%",style:{display:"flex",justifyContent:"center",alignItems:"center",fontSize:"2em",fontWeight:"bold"},children:"\u0420\u0438\u0442\u0443\u0430\u043B \u043D\u0435 \u0432\u044B\u0431\u0440\u0430\u043D"})})]})})}},2924:(q,S,r)=>{"use strict";r.r(S),r.d(S,{AdditionGoalsConsole:()=>O});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=r(538),O=function(m){var d=(0,s.Oc)(),v=d.act,_=d.data,l;return _.state===10?l=(0,e.jsx)(u,{}):_.state===11||_.state===20||_.state===21?l=(0,e.jsx)(f,{}):l=(0,e.jsx)(n.az,{children:(0,e.jsx)("h3",{children:"\u041D\u0435\u0442 \u0434\u0430\u043D\u043D\u044B\u0445!"})}),(0,e.jsx)(t.p8,{width:600,height:800,children:(0,e.jsxs)(t.p8.Content,{children:[(0,e.jsx)(a.ComplexModal,{}),(0,e.jsxs)(n.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(y,{})}),(0,e.jsx)(n.BJ.Item,{grow:!0,children:l})]})]})})},b=function(m){return m===10?"\u041D\u0435\u0442 \u0442\u0435\u043A\u0443\u0449\u0435\u0439 \u0446\u0435\u043B\u0438.":m===11?"\u0428\u0430\u0442\u0442\u043B \u0432 \u043F\u0443\u0442\u0438.":m===20?"\u0426\u0435\u043B\u044C \u0432 \u043F\u0440\u043E\u0446\u0435\u0441\u0441\u0435 \u0432\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u044F.":m===21?"\u0417\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u0438\u0435 \u0446\u0435\u043B\u0438.":"\u0414\u043E\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u044C\u043D\u044B\u0435 \u0446\u0435\u043B\u0438 \u0441\u043C\u0435\u043D\u044B \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u044B."},y=function(m){var d=(0,s.Oc)(),v=d.act,_=d.data;return(0,e.jsx)(n.wn,{title:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",children:(0,e.jsx)(n.az,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",children:b(_.state)}),(0,e.jsx)(n.Ki.Item,{label:"\u0428\u0430\u0442\u0442\u043B",children:_.shuttle_loc})]})})})},u=function(m){var d=(0,s.Oc)(),v=d.act,_=d.data,l=_.available_goals;return(0,e.jsx)(n.wn,{title:"\u0414\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0435 \u0434\u043E\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u044C\u043D\u044B\u0435 \u0446\u0435\u043B\u0438",buttons:(0,e.jsx)(n.$n,{icon:"refresh",color:_.refresh_available?"green":"grey",onClick:function(){return v("refresh_available_goals")},children:"\u041E\u0431\u043D\u043E\u0432\u0438\u0442\u044C \u0441\u043F\u0438\u0441\u043E\u043A"}),children:(0,e.jsx)(n.az,{children:(0,e.jsx)(n.Ki,{children:l.map(function(c){return(0,e.jsx)(n.Ki.Item,{label:c.name,children:(0,e.jsx)(n.$n,{icon:"plus",color:"green",align:"center",onClick:function(){return v("accept_goal",{goal:c.id})},children:"\u0412\u0437\u044F\u0442\u044C \u0432 \u0440\u0430\u0431\u043E\u0442\u0443"})},c.name)})})})})},f=function(m){var d=(0,s.Oc)(),v=d.act,_=d.data,l=_.current_goal;return(0,e.jsx)(n.wn,{title:"\u0422\u0435\u043A\u0443\u0449\u0430\u044F \u0434\u043E\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u044C\u043D\u0430\u044F \u0446\u0435\u043B\u044C \u0441\u043C\u0435\u043D\u044B",children:(0,e.jsxs)(n.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(n.BJ.Item,{children:(0,e.jsxs)(n.az,{children:[(0,e.jsx)("b",{children:"\u0418\u0434\u0435\u043D\u0442\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440:"})," ",l.id]})}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsxs)(n.az,{children:[(0,e.jsx)("b",{children:"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435:"})," ",l.name]})}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.$n,{icon:"check",color:_.state===20?"green":"grey",width:"180px",align:"center",fontSize:"12px",onClick:function(){return v("complete_goal")},children:"\u0417\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044C \u0446\u0435\u043B\u044C"})})]})})}},2934:(q,S,r)=>{"use strict";function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(s){console.error(s)}}e(),q.exports=r(2338)},2938:(q,S,r)=>{"use strict";r.r(S),r.d(S,{pai_messenger:()=>a});var e=r(1131),s=r(360),n=r(5286);function t(){return t=Object.assign||function(O){for(var b=1;b{"use strict";r.r(S),r.d(S,{AutoDoc:()=>O});var e=r(1131),s=r(7003),n=r(360),t=r(5180),a=r(3521),O=function(b){var y=(0,n.Oc)(),u=y.act,f=y.data,m=f.HasTray,d=f.TguiIcons,v=f.occupant,_=f.isHealing,l=f.fixtimer,c=f.healtimer,h=(0,s.useState)("chest"),g=h[0],p=h[1];return(0,e.jsx)(a.p8,{theme:"ntOS95",children:(0,e.jsx)(a.p8.Content,{children:(0,e.jsxs)(t.so,{width:"100%",children:[(0,e.jsxs)(t.so.Item,{basis:"30%",children:[(0,e.jsx)(t._V,{height:"256px",width:"256px",src:"data:image/jpeg;base64,"+d.human,fixBlur:!0,style:{position:"absolute"}}),(0,e.jsx)(t._V,{height:"256px",width:"256px",src:"data:image/jpeg;base64,"+d[g],fixBlur:!0,style:{position:"absolute"}})]}),(0,e.jsx)(t.so.Item,{basis:"70%",children:(0,e.jsx)(t.wn,{title:"Info",buttons:(0,e.jsxs)(e.Fragment,{children:[Object.keys(d).map(function(j){return j!=="human"&&(0,e.jsx)(t.$n,{selected:j===g,onClick:function(){return p(j)},children:j},j)}),(0,e.jsx)(t.$n,{style:{marginLeft:"30px"},disabled:_,onClick:function(){return u("ChangeTrayState")},children:m?"Eject Tray":"Reject Tray"})]}),children:(0,e.jsxs)(t.az,{children:[!!(v[g]&&v[g].extOrgan)&&v[g].extOrgan.map(function(j){return(0,e.jsxs)(s.Fragment,{children:[(0,e.jsx)("b",{children:j.name}),(0,e.jsx)("br",{}),j.open?"opened":"",j.broken?"broken":"",!!j.broken&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{style:{marginLeft:"30px"},disabled:_,onClick:function(){return u("FixOrgan",{organ:j.name,type:"fracture"})},children:"Fix"}),(0,e.jsx)("br",{})]}),j.internalBleeding?"bleeding":"",!!j.internalBleeding&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{style:{marginLeft:"30px"},disabled:_,onClick:function(){return u("FixOrgan",{organ:j.name,type:"bleeding"})},children:"Fix"}),(0,e.jsx)("br",{})]}),"Internals:",(0,e.jsx)(t.$n,{style:{marginLeft:"10px"},disabled:_,onClick:function(){return u("FixOrgan",{organ:j.name,type:"completeInternal"})},children:"Complete"}),(0,e.jsx)("br",{}),j.dead?"dead":"",!!j.dead&&(0,e.jsx)("br",{}),j.germ_level?"Germ level is "+j.germ_level:"",!!j.germ_level&&(0,e.jsx)("br",{}),j.totalLoss?"Total damage is "+j.totalLoss:"",(0,e.jsx)("br",{})]},j.name)}),!!(v[g]&&v[g].intOrgan)&&v[g].intOrgan.map(function(j){return(0,e.jsxs)(s.Fragment,{children:[(0,e.jsx)("b",{children:j.name}),(0,e.jsx)(t.$n,{style:{marginLeft:"1.5rem"},disabled:_,onClick:function(){return u("FixOrgan",{organ:j.name,type:"remove"})},children:"Remove"}),(0,e.jsx)("br",{}),j.dead?"dead":"",!!j.dead&&(0,e.jsx)("br",{}),j.germ_level?"Germ level is "+j.germ_level:"",!!j.germ_level&&(0,e.jsx)("br",{}),j.totalLoss?"Total damage is "+j.damage:"",!!j.totalLoss&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{style:{marginLeft:"30px"},disabled:_,onClick:function(){return u("FixOrgan",{organ:j.name,type:"damage"})},children:"Heal"}),(0,e.jsx)("br",{})]})]},j.name)}),!!v.TotalBruteBurn&&(0,e.jsxs)(e.Fragment,{children:["Total external damage is ",v.TotalBruteBurn,(0,e.jsx)(t.$n,{style:{marginLeft:"30px"},onClick:function(){return u("HealBruteBurn")},children:"Start Healing"}),(0,e.jsx)(t.$n,{style:{marginLeft:"30px"},onClick:function(){return u("CompleteExternal")},children:"Reattach externals"})]}),(0,e.jsx)("br",{}),!!l&&(0,e.jsxs)("b",{children:["Fixing organ: ",l]}),!!c&&(0,e.jsxs)("b",{children:["Healing external damage: ",c]})]})})})]})})})}},2983:(q,S,r)=>{"use strict";r.r(S),r.d(S,{LatheCategory:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(2905),a=function(O){var b=(0,s.Oc)(),y=b.data,u=b.act,f=y.category,m=y.matching_designs,d=y.menu,v=d===4,_=v?"build":"imprint";return(0,e.jsxs)(n.wn,{title:f,children:[(0,e.jsx)(t.LatheMaterials,{}),(0,e.jsx)(n.XI,{className:"RndConsole__LatheCategory__MatchingDesigns",children:m.map(function(l){var c=l.id,h=l.name,g=l.desc,p=l.icon,j=l.icon_state,x=l.can_build,C=l.materials;return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:(0,e.jsx)(n.Hg,{icon:p,icon_state:j,style:{verticalAlign:"middle",width:"48px",margin:"0px",marginLeft:"0px"}})}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{icon:"print",disabled:x<1,tooltip:g,onClick:function(){return u(_,{id:c,amount:1})},children:h})}),(0,e.jsx)(n.XI.Cell,{children:x>=5?(0,e.jsx)(n.$n,{onClick:function(){return u(_,{id:c,amount:5})},children:"x5"}):null}),(0,e.jsx)(n.XI.Cell,{children:x>=10?(0,e.jsx)(n.$n,{onClick:function(){return u(_,{id:c,amount:10})},children:"x10"}):null}),(0,e.jsx)(n.XI.Cell,{children:C.map(function(I){var P=I.name,M=I.amount,B=I.is_red;return(0,e.jsxs)(e.Fragment,{children:[" | ",(0,e.jsxs)("span",{className:B?"color-red":null,children:[M," ",P]})]})})})]},c)})})]})}},3046:(q,S,r)=>{"use strict";r.r(S),r.d(S,{Multitool:()=>y});var e=r(1131),s=r(9818),n=r(360),t=r(5180),a=r(3521);function O(){return O=Object.assign||function(C){for(var I=1;I=0)&&(P[B]=C[B]);return P}var y=function(C){var I=(0,n.Oc)(),P=I.act,M=I.data,B=M.multitoolMenuId,w=M.buffer,T=M.bufferName,K=M.bufferTag,R=M.canBufferHaveTag,U=M.isAttachedAlreadyInBuffer,F=M.attachedName,$=B!=="default_no_machine",W=function(N){switch(N){case"default_no_machine":return(0,e.jsx)(_,{});case"no_options":return(0,e.jsx)(_,{});case"access_denied":return(0,e.jsx)(l,{});case"tag_only":return(0,e.jsx)(c,{});case"multiple_tags":return(0,e.jsx)(g,{});case"frequency_and_tag":return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(h,{}),(0,e.jsx)(c,{})]});case"air_sensor":return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(h,{}),(0,e.jsx)(c,{}),(0,e.jsx)(p,{})]});case"general_air_control":return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(h,{}),(0,e.jsx)(j,{})]});case"large_tank_control":return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(h,{}),(0,e.jsx)(x,{}),(0,e.jsx)(j,{})]});default:return"WE SHOULDN'T BE HERE!"}};return(0,e.jsx)(a.p8,{width:510,height:420,children:(0,e.jsx)(a.p8.Content,{children:(0,e.jsxs)(t.so,{direction:"column",height:"100%",children:[(0,e.jsx)(t.so.Item,{style:{overflowX:"hidden",overflowY:"auto"},grow:1,shrink:1,basis:0,children:(0,e.jsxs)(t.wn,{title:"Configuration menu",py:.3,children:[(0,e.jsx)(u,{iconName:"tools",machineName:F,noMachine:B==="default_no_machine",noMachineText:"No machine attached"}),W(B)]})}),(0,e.jsx)(t.so.Item,{grow:0,shrink:0,children:(0,e.jsx)(t.cG,{})}),(0,e.jsx)(t.so.Item,{grow:0,shrink:0,children:(0,e.jsxs)(t.wn,{title:"Multitool buffer",mb:.9,py:.3,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"save",disabled:!$||U,onClick:function(){return P("buffer_add")},children:U?"Added":"Add machine"}),(0,e.jsx)(t.$n,{mr:1,icon:"times-circle",color:"red",disabled:!w,onClick:function(){return P("buffer_flush")},children:"Flush"})]}),children:[(0,e.jsx)(u,{iconName:"tools",machineName:T,noMachine:!w,noMachineElem:(0,e.jsx)(f,{text:""})}),!!w&&(0,e.jsx)(v,{mt:1.1,label:"ID tag",compactLabel:!0,wrapContent:R?(0,e.jsx)(m,{text:K,defaultText:"",color:"silver"}):(0,e.jsx)(t.az,{as:"span",fontSize:"0.9rem",color:"red",italic:!0,nowrap:!0,children:"Not supported"})})]})})]})})})},u=function(C){var I=C.iconName,P=C.machineName,M=C.noMachine,B=C.noMachineText,w=C.noMachineElem,T="Unknown machine",K=M?B:P||"Unknown machine",R=K===B,U=K===B||K===T;return M&&w?w:(0,e.jsxs)(t.so,{mt:.1,mb:1.9,children:[!M&&(0,e.jsx)(t.so.Item,{grow:0,shrink:0,align:"center",children:(0,e.jsx)(t.In,{mr:1,size:1.1,name:I})}),(0,e.jsx)(t.so.Item,{grow:1,shrink:1,basis:0,wordWrap:"break-word",children:(0,e.jsx)(t.az,{as:"span",color:R?"label":"silver",fontSize:"1.1rem",bold:!0,italic:U,style:{wordWrap:"break-word"},children:K})})]})},f=function(C){var I=C.text;return(0,e.jsx)(t.az,{as:"span",fontSize:"0.9rem",color:"yellow",italic:!0,nowrap:!0,children:I})},m=function(C){var I=C.text,P=C.defaultText,M=b(C,["text","defaultText"]);return I?(0,e.jsx)(t.az,O({as:"span",style:{wordWrap:"break-word"}},M,{children:I})):(0,e.jsx)(f,{text:P})},d=function(C){var I=C.noConfirm,P=I===void 0?!1:I,M=b(C,["noConfirm"]);return P?(0,e.jsx)(t.$n,O({},M)):(0,e.jsx)(t.$n.Confirm,O({},M))},v=function(C){var I=C.label,P=C.wrapContent,M=C.noWrapContent,B=C.compactLabel,w=B===void 0?!1:B,T=b(C,["label","wrapContent","noWrapContent","compactLabel"]);return(0,e.jsxs)(t.so,O({my:.5,mr:"0.5%",spacing:1,align:"center"},T,{children:[(0,e.jsx)(t.so.Item,{grow:w?0:1,shrink:0,textOverflow:"ellipsis",overflow:"hidden",basis:w?"auto":0,maxWidth:w?"none":20,color:"label",nowrap:!0,children:I}),(0,e.jsx)(t.so.Item,{grow:1,shrink:1,basis:0,textAlign:"center",wordWrap:"break-word",children:P}),(0,e.jsx)(t.so.Item,{grow:.1}),(0,e.jsx)(t.so.Item,{grow:0,shrink:0,nowrap:!0,children:M})]}))},_=function(C){return(0,e.jsx)(t.az,{mt:1.5,fontSize:"0.9rem",color:"silver",italic:!0,children:"No options"})},l=function(C){return(0,e.jsx)(t.az,{fontSize:"1.1rem",color:"red",bold:!0,italic:!0,children:"ACCESS DENIED"})},c=function(C){var I=(0,n.Oc)(),P=I.act,M=I.data,B=M.attachedTag;return(0,e.jsx)(v,{label:"ID tag",wrapContent:(0,e.jsx)(m,{text:B,defaultText:"",color:"silver"}),noWrapContent:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"wrench",onClick:function(){return P("set_tag")},children:"Set"}),(0,e.jsx)(t.$n,{icon:"times-circle",color:"red",disabled:!B,onClick:function(){return P("clear_tag")},children:"Clear"})]})})},h=function(C){var I=(0,n.Oc)(),P=I.act,M=I.data,B=M.frequency,w=M.minFrequency,T=M.maxFrequency,K=M.canReset;return(0,e.jsx)(v,{label:"Frequency",noWrapContent:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.Q7,{animated:!0,unit:"kHz",step:.1,stepPixelSize:10,minValue:w/10,maxValue:T/10,value:B/10,format:function(R){return(0,s.Mg)(R,1)},onChange:function(R){return P("set_frequency",{frequency:R*10})}}),(0,e.jsx)(t.$n,{icon:"undo",disabled:!K,tooltip:"Reset",onClick:function(){return P("reset_frequency")}})]})})},g=function(C){var I=(0,n.Oc)(),P=I.act,M=I.data,B=M.attachedTags;return(0,e.jsx)(t.wn,{mt:1.7,ml:.5,mr:1,px:.5,title:"Linked tags",buttons:(0,e.jsx)(t.$n,{mr:1,pl:2.1,icon:"plus",iconPosition:"right",onClick:function(){return P("add_tag")},children:"Add tag"}),children:B.map(function(w,T){return(0,e.jsx)(v,{mr:0,label:(0,e.jsx)(t.In,{name:"wave-square"}),compactLabel:!0,wrapContent:(0,e.jsx)(t.so,{align:"center",spacing:1,children:(0,e.jsx)(t.so.Item,{grow:1,shrink:1,basis:0,color:"silver",wordWrap:"break-word",children:w})}),noWrapContent:(0,e.jsx)(t.so,{children:(0,e.jsx)(t.so.Item,{grow:0,shrink:0,children:(0,e.jsx)(t.$n,{icon:"minus",color:"red",onClick:function(){return P("remove_tag",{tag_index:T})}})})})},T)})})},p=function(C){var I=(0,n.Oc)(),P=I.act,M=I.data,B=M.bolts,w=M.pressureCheck,T=M.temperatureCheck,K=M.oxygenCheck,R=M.toxinsCheck,U=M.nitrogenCheck,F=M.carbonDioxideCheck,$=M.nitrousOxideCheck,W=M.hydrogenCheck,N=M.waterVaporCheck,Z=[{bitflag:1,checked:w,label:"Monitor pressure"},{bitflag:2,checked:T,label:"Monitor temperature"},{bitflag:4,checked:K,label:"Monitor oxygen concentration"},{bitflag:8,checked:R,label:"Monitor plasma concentration"},{bitflag:16,checked:U,label:"Monitor nitrogen concentration"},{bitflag:32,checked:F,label:"Monitor carbon dioxide concentration"},{bitflag:64,checked:$,label:"Monitor carbon nitrous oxide concentration"},{bitflag:128,checked:W,label:"Monitor carbon hydrogen concentration"},{bitflag:256,checked:N,label:"Monitor carbon water vapor concentration"}];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(v,{label:"Floor bolts",noWrapContent:(0,e.jsx)(t.$n,{icon:B?"check":"times",selected:B,onClick:function(){return P("toggle_bolts")},children:B?"YES":"NO"})}),Z.map(function(ie){return(0,e.jsx)(v,{label:ie.label,noWrapContent:(0,e.jsx)(t.$n.Checkbox,{checked:ie.checked,onClick:function(){return P("toggle_flag",{bitflag:ie.bitflag})}})},ie.bitflag)})]})},j=function(C){var I=(0,n.Oc)(),P=I.act,M=I.data,B=M.sensors;return(0,e.jsxs)(t.wn,{mt:1.7,ml:.5,mr:1,px:.5,title:"Sensors",buttons:(0,e.jsx)(t.$n,{mr:1,pl:2.1,icon:"plus",iconPosition:"right",onClick:function(){return P("add_sensor")},children:"Add sensor"}),children:[(0,e.jsx)(v,{mr:0,compactLabel:!0,wrapContent:(0,e.jsxs)(t.so,{children:[(0,e.jsx)(t.so.Item,{width:1}),(0,e.jsx)(t.so.Item,{grow:1,shrink:1,basis:0,color:"label",nowrap:!0,bold:!0,children:"ID tag"}),(0,e.jsx)(t.so.Item,{grow:1,shrink:1,basis:0,color:"label",nowrap:!0,bold:!0,children:"Label"}),(0,e.jsx)(t.so.Item,{width:11.3})]})}),Object.keys(B).map(function(w){return(0,e.jsx)(v,{mr:0,label:(0,e.jsx)(t.In,{name:"wave-square"}),compactLabel:!0,wrapContent:(0,e.jsxs)(t.so,{align:"center",spacing:1,children:[(0,e.jsx)(t.so.Item,{grow:1,shrink:1,basis:0,color:"silver",wordWrap:"break-word",children:w}),B[w]?(0,e.jsx)(t.so.Item,{grow:1,shrink:1,basis:0,color:"silver",wordWrap:"break-word",children:B[w]}):(0,e.jsx)(t.so.Item,{grow:1,shrink:1,basis:0,fontSize:"0.9rem",color:"yellow",italic:!0,nowrap:!0,children:""})]}),noWrapContent:(0,e.jsxs)(t.so,{children:[(0,e.jsxs)(t.so.Item,{grow:0,shrink:0,children:[(0,e.jsx)(t.$n,{icon:"edit",onClick:function(){return P("change_label",{sensor_tag:w})},children:"Label"}),(0,e.jsx)(t.$n,{icon:"times-circle",color:"orange",disabled:!B[w],onClick:function(){return P("clear_label",{sensor_tag:w})},children:"Label"})]}),(0,e.jsx)(t.so.Item,{width:.5}),(0,e.jsx)(t.so.Item,{grow:0,shrink:0,children:(0,e.jsx)(t.$n,{px:1.2,icon:"minus",color:"red",onClick:function(){return P("del_sensor",{sensor_tag:w})}})})]})},w)})]})},x=function(C){var I=(0,n.Oc)(),P=I.act,M=I.data,B=M.inputTag,w=M.outputTag,T=M.bufferTag,K=M.bufferFitsInput,R=M.bufferFitsOutput,U=M.doNotLinkAndNotify;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(v,{label:"Input",wrapContent:(0,e.jsx)(m,{text:B,defaultText:"",color:"silver"}),noWrapContent:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(d,{noConfirm:U||!B,confirmContent:"This will change the intput device. Confirm?",confirmColor:"orange",content:"Link buffer",icon:"link",selected:B&&T===B,disabled:!K,onClick:function(){return P("link_input")}}),(0,e.jsx)(t.$n.Confirm,{confirmContent:"This will unlink the intput device. Confirm?",confirmColor:"orange",icon:"unlink",color:"red",disabled:!B,onClick:function(){return P("unlink_input")},children:"Unlink"})]})}),(0,e.jsx)(v,{label:"Output",wrapContent:(0,e.jsx)(m,{text:w,defaultText:"",color:"silver"}),noWrapContent:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(d,{noConfirm:U||!w,confirmContent:"This will change the output device. Confirm?",confirmColor:"orange",content:"Link buffer",icon:"link",selected:w&&T===w,disabled:!R,onClick:function(){return P("link_output")}}),(0,e.jsx)(t.$n.Confirm,{confirmContent:"This will unlink the output device. Confirm?",confirmColor:"orange",icon:"unlink",color:"red",disabled:!w,onClick:function(){return P("unlink_output")},children:"Unlink"})]})})]})}},3062:q=>{function S(O,b){return b!=null&&typeof Symbol<"u"&&b[Symbol.hasInstance]?!!b[Symbol.hasInstance](O):O instanceof b}function r(O){"@swc/helpers - typeof";return O&&typeof Symbol<"u"&&O.constructor===Symbol?"symbol":typeof O}var e=typeof Element<"u",s=typeof Map=="function",n=typeof Set=="function",t=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function a(O,b){if(O===b)return!0;if(O&&b&&(typeof O>"u"?"undefined":r(O))=="object"&&(typeof b>"u"?"undefined":r(b))=="object"){if(O.constructor!==b.constructor)return!1;var y,u,f;if(Array.isArray(O)){if(y=O.length,y!=b.length)return!1;for(u=y;u--!==0;)if(!a(O[u],b[u]))return!1;return!0}var m;if(s&&S(O,Map)&&S(b,Map)){if(O.size!==b.size)return!1;for(m=O.entries();!(u=m.next()).done;)if(!b.has(u.value[0]))return!1;for(m=O.entries();!(u=m.next()).done;)if(!a(u.value[1],b.get(u.value[0])))return!1;return!0}if(n&&S(O,Set)&&S(b,Set)){if(O.size!==b.size)return!1;for(m=O.entries();!(u=m.next()).done;)if(!b.has(u.value[0]))return!1;return!0}if(t&&ArrayBuffer.isView(O)&&ArrayBuffer.isView(b)){if(y=O.length,y!=b.length)return!1;for(u=y;u--!==0;)if(O[u]!==b[u])return!1;return!0}if(O.constructor===RegExp)return O.source===b.source&&O.flags===b.flags;if(O.valueOf!==Object.prototype.valueOf&&typeof O.valueOf=="function"&&typeof b.valueOf=="function")return O.valueOf()===b.valueOf();if(O.toString!==Object.prototype.toString&&typeof O.toString=="function"&&typeof b.toString=="function")return O.toString()===b.toString();if(f=Object.keys(O),y=f.length,y!==Object.keys(b).length)return!1;for(u=y;u--!==0;)if(!Object.prototype.hasOwnProperty.call(b,f[u]))return!1;if(e&&S(O,Element))return!1;for(u=y;u--!==0;)if(!((f[u]==="_owner"||f[u]==="__v"||f[u]==="__o")&&O.$$typeof)&&!a(O[f[u]],b[f[u]]))return!1;return!0}return O!==O&&b!==b}q.exports=function(b,y){try{return a(b,y)}catch(u){if((u.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw u}}},3082:(q,S,r)=>{"use strict";r.r(S),r.d(S,{SubsystemViews:()=>b});var e=r(1131),s=r(7003),n=r(5180),t=r(360),a=r(2335),O=r(4776),b=function(y){var u=(0,t.Oc)().data,f=u.subsystems,m=y.filterOpts,d=y.setSelected,v=m.ascending,_=m.inactive,l=m.query,c=m.smallValues,h=m.sortType,g=a.SORTING_TYPES[h],p=g.propName,j=g.inDeciseconds,x=(0,s.useState)(j),C=x[0],I=x[1],P=f.filter(function(R){var U=R.name.toLowerCase().includes(l?.toLowerCase());return _&&(R.doesnt_fire||!R.can_fire)||c&&R[p]<1?!1:U}).sort(function(R,U){return v?R[p]>U[p]?1:-1:U[p]>R[p]?1:-1}),M=[],B=0;if(j){for(var w,T=0;T{"use strict";r.r(S),r.d(S,{Mortar:()=>O});var e=r(1131),s=r(7003),n=r(360),t=r(5180),a=r(3521),O=function(b){var y=(0,n.Oc)(),u=y.act,f=y.data,m=f.data_target_x,d=f.data_target_y,v=f.data_target_z,_=f.data_dial_x,l=f.data_dial_y,c=(0,s.useState)(m),h=c[0],g=c[1],p=(0,s.useState)(d),j=p[0],x=p[1],C=(0,s.useState)(v),I=C[0],P=C[1],M=(0,s.useState)(_),B=M[0],w=M[1],T=(0,s.useState)(l),K=T[0],R=T[1];return(0,e.jsx)(a.p8,{width:400,height:300,children:(0,e.jsxs)(a.p8.Content,{children:[(0,e.jsxs)(t.wn,{children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Target X",children:(0,e.jsx)(t.Q7,{animated:!0,width:"4em",step:1,minValue:0,maxValue:255,value:h,onChange:function(U){return g(U)}})}),(0,e.jsx)(t.Ki.Item,{label:"Target Y",children:(0,e.jsx)(t.Q7,{animated:!0,width:"4em",step:1,minValue:0,maxValue:255,value:j,onChange:function(U){return x(U)}})}),(0,e.jsx)(t.Ki.Item,{label:"Target Z",children:(0,e.jsx)(t.Q7,{animated:!0,width:"4em",step:1,minValue:0,maxValue:255,value:I,onChange:function(U){return P(U)}})})]}),(0,e.jsx)(t.$n,{icon:"crosshairs",style:{marginTop:"5px",marginLeft:"10px"},onClick:function(){return u("set_target",{target_x:h,target_y:j,target_z:I})},children:"Set Target"}),(0,e.jsx)(t.$n,{style:{position:"absolute",top:"10px",right:"15px",height:"65px",width:"80px",whiteSpace:"normal",display:"flex",flexWrap:"wrap",justifyContent:"center",flexDirection:"column"},align:"center",verticalAlign:"center",onClick:function(){return u("operate_cam",{camera:1})},children:"View Camera"})]}),(0,e.jsxs)(t.wn,{children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"X Offset",children:(0,e.jsx)(t.Q7,{animated:!0,width:"4em",step:1,stepPixelSize:10,minValue:-10,maxValue:10,value:B,onChange:function(U){return w(U)}})}),(0,e.jsx)(t.Ki.Item,{label:"Y Offset",children:(0,e.jsx)(t.Q7,{animated:!0,width:"4em",step:1,stepPixelSize:10,minValue:-10,maxValue:10,value:K,onChange:function(U){return R(U)}})})]}),(0,e.jsx)(t.$n,{icon:"wrench",style:{marginTop:"5px",marginLeft:"10px"},onClick:function(){return u("set_offset",{dial_x:B,dial_y:K})},children:"Dial Offset"})]})]})})}},3176:(q,S,r)=>{"use strict";r.r(S),r.d(S,{PlayerPanel:()=>u});var e=r(1131),s=r(360),n=r(7003),t=r(5180),a=r(3521);function O(){return O=Object.assign||function(C){for(var I=1;I=0)&&(P[B]=C[B]);return P}var y=function(C,I){var P,M={ghost:["ghost","dead","observer"],human:["human","carbon"],monkey:["monkey"],cyborg:["cyborg","robot","borg"],ai:["ai","artificial intelligence"],animal:["simple","animal"]};return((P=M[I])==null?void 0:P.some(function(B){return C.toLowerCase().includes(B)}))||!1},u=function(C){var I=(0,s.Oc)(),P=I.act,M=I.data,B=function(w,T){T===void 0&&(T={}),P(w,O({selectedPlayerCkey:M.ckey},T))};return(0,e.jsx)(a.p8,{title:"Options Panel - "+M.ckey,width:800,height:950,children:(0,e.jsx)(a.p8.Content,{scrollable:!0,children:(0,e.jsxs)(t.BJ,{vertical:!0,children:[(0,e.jsxs)(t.BJ.Item,{children:[(0,e.jsx)(t.$n,{icon:"sync",onClick:function(){return B("refresh")},children:"Refresh"}),(0,e.jsx)(t.$n,{icon:"sync",onClick:function(){return B("old_pp")},children:"Old Panel"})]}),(0,e.jsx)(f,{}),(0,e.jsx)(m,{})]})})})},f=function(C){var I=(0,s.Oc)(),P=I.act,M=I.data,B=(0,n.useState)(!1),w=B[0],T=B[1],K=(0,n.useState)(!1),R=K[0],U=K[1],F=function($,W){W===void 0&&(W={}),P($,O({selectedPlayerCkey:M.ckey},W))};return(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.wn,{title:"Player Information",children:(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{bold:!0,children:"Character:"}),(0,e.jsx)(t.XI.Cell,{children:M.characterName}),(0,e.jsx)(t.XI.Cell,{bold:!0,children:"Ckey:"}),(0,e.jsx)(t.XI.Cell,{children:M.ckey})]}),(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{bold:!0,children:"Rank:"}),(0,e.jsx)(t.XI.Cell,{children:M.rank}),(0,e.jsx)(t.XI.Cell,{bold:!0,children:"Discord:"}),(0,e.jsx)(t.XI.Cell,{children:M.discord})]}),(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{bold:!0,children:"Account Registered:"}),(0,e.jsx)(t.XI.Cell,{children:M.accountRegistered}),(0,e.jsx)(t.XI.Cell,{bold:!0,children:"Playtime as Crew:"}),(0,e.jsx)(t.XI.Cell,{p:"1px",children:(0,e.jsx)(t.$n,{onClick:function(){return F("playtime")},children:M.playtime})})]}),(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{bold:!0,children:"CID:"}),(0,e.jsx)(t.XI.Cell,{p:"1px",children:(0,e.jsx)(t.$n,{onClick:function(){return U(!R)},children:R?M.CID:"Hidden"})}),(0,e.jsx)(t.XI.Cell,{bold:!0,children:"IP Address:"}),(0,e.jsx)(t.XI.Cell,{p:"1px",children:(0,e.jsx)(t.$n,{onClick:function(){return T(!w)},children:w?M.ipAddress:"Hidden"})})]}),(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{bold:!0,children:"Mob Type:"}),(0,e.jsx)(t.XI.Cell,{children:M.mobType}),(0,e.jsx)(t.XI.Cell,{bold:!0,children:"Byond Version:"}),(0,e.jsx)(t.XI.Cell,{children:M.byondVersion})]}),(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{bold:!0,children:"Related By CID:"}),(0,e.jsx)(t.$n,{color:"blue",onClick:function(){return F("relatedbycid")},children:"Related by CID"}),(0,e.jsx)(t.XI.Cell,{bold:!0,children:"Related By IP:"}),(0,e.jsx)(t.$n,{color:"blue",onClick:function(){return F("relatedbyip")},children:"Related by IP"})]})]})})})},m=function(C){return(0,e.jsxs)(t.BJ.Item,{children:[(0,e.jsxs)(t.xA,{children:[(0,e.jsx)(t.xA.Column,{children:(0,e.jsx)(d,{})}),(0,e.jsx)(t.xA.Column,{children:(0,e.jsx)(v,{})})]}),(0,e.jsxs)(t.xA,{children:[(0,e.jsx)(t.xA.Column,{children:(0,e.jsx)(_,{})}),(0,e.jsx)(t.xA.Column,{children:(0,e.jsx)(l,{})})]}),(0,e.jsxs)(t.xA,{children:[(0,e.jsxs)(t.xA.Column,{children:[(0,e.jsx)(c,{}),(0,e.jsx)(h,{})]}),(0,e.jsxs)(t.xA.Column,{children:[(0,e.jsx)(g,{}),(0,e.jsx)(p,{})]})]}),(0,e.jsx)(t.xA,{children:(0,e.jsx)(t.xA.Column,{children:(0,e.jsx)(j,{})})})]})},d=function(C){var I=(0,s.Oc)(),P=I.act,M=I.data,B=function(K,R){R===void 0&&(R={}),P(K,O({selectedPlayerCkey:M.ckey},R))},w=function(K){return M.adminRights.toLowerCase().includes(K)||!1},T=function(){return M.ckey!=="NO CKEY"};return(0,e.jsx)(t.wn,{title:"Punish",children:(0,e.jsxs)(t.xA,{children:[(0,e.jsxs)(t.xA.Column,{size:6,children:[(0,e.jsx)(t.$n,{fluid:!0,icon:"times",color:"red",tooltip:T?null:"NO CKEY",disabled:!T(),onClick:function(){return B("kick")},children:"KICK"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"ban",color:"red",tooltip:T?null:"NO CKEY",disabled:!w("ban")||!T(),onClick:function(){return B("jobban")},children:"JOBBAN"}),w("admin")?(0,e.jsx)(t.$n,{fluid:!0,icon:"bullseye",color:"red",tooltip:T?null:"NO CKEY",disabled:!T(),onClick:function(){return B("watchlist")},children:"ADD TO WATCHLIST"}):null]}),(0,e.jsxs)(t.xA.Column,{size:6,children:[(0,e.jsx)(t.$n,{fluid:!0,icon:"ban",color:"red",tooltip:T?null:"NO CKEY",disabled:!w("ban")||!T(),onClick:function(){return B("ban")},children:"BAN"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"ban",color:"red",tooltip:T?null:"NO CKEY",disabled:!w("ban")||!T(),onClick:function(){return B("appban")},children:"APPEARANCE BAN"}),w("event")?(0,e.jsx)(t.$n,{fluid:!0,icon:"bolt",color:"red",onClick:function(){return B("smite")},children:"SMITE"}):null,w("event")?(0,e.jsx)(t.$n,{fluid:!0,icon:"hand-holding-heart",onClick:function(){return B("bless")},children:"BLESS"}):null]})]})})},v=function(C){var I=(0,s.Oc)(),P=I.act,M=I.data,B=function(T,K){K===void 0&&(K={}),P(T,O({selectedPlayerCkey:M.ckey},K))},w=function(T){return M.adminRights.toLowerCase().includes(T)||!1};return(0,e.jsx)(t.wn,{title:"Message",children:(0,e.jsxs)(t.xA,{children:[(0,e.jsxs)(t.xA.Column,{size:6,children:[(0,e.jsx)(t.$n,{fluid:!0,icon:"comment",onClick:function(){return B("pm")},children:"PM"}),w("admin")?(0,e.jsx)(t.$n,{fluid:!0,icon:"comment-alt",onClick:function(){return B("narrate")},children:"NARRATE"}):null,w("admin")?(0,e.jsx)(t.$n,{fluid:!0,icon:"user-secret",onClick:function(){return B("sendalert")},children:"SEND ALERT"}):null]}),(0,e.jsxs)(t.xA.Column,{size:6,children:[(0,e.jsx)(t.$n,{fluid:!0,icon:"user-secret",disabled:!w("event"),onClick:function(){return B("sm")},children:"SM"}),w("admin")?(0,e.jsx)(t.$n,{fluid:!0,icon:"crown",onClick:function(){return B("manup")},children:"MAN UP"}):null,w("sound")?(0,e.jsx)(t.$n,{fluid:!0,icon:"music",onClick:function(){return B("playsoundto")},children:"PLAY SOUND TO"}):null]})]})})},_=function(C){var I=(0,s.Oc)(),P=I.act,M=I.data,B=function(T,K){K===void 0&&(K={}),P(T,O({selectedPlayerCkey:M.ckey},K))},w=function(T){return M.adminRights.toLowerCase().includes(T)||!1};return(0,e.jsx)(t.wn,{title:"Movement",children:(0,e.jsxs)(t.xA,{children:[(0,e.jsxs)(t.xA.Column,{size:6,children:[(0,e.jsx)(t.$n,{fluid:!0,icon:"eye",onClick:function(){return B("flw")},children:"FLW"}),w("admin")?(0,e.jsx)(t.$n,{fluid:!0,icon:"download",onClick:function(){return B("get")},children:"GET"}):null,w("admin")?(0,e.jsx)(t.$n,{fluid:!0,icon:"paper-plane",onClick:function(){return B("send")},children:"SEND"}):null]}),(0,e.jsxs)(t.xA.Column,{size:6,children:[(0,e.jsx)(t.$n,{fluid:!0,icon:"running",onClick:function(){return B("jumpto")},children:"JUMPTO"}),w("admin")?(0,e.jsx)(t.$n,{fluid:!0,icon:"sign-out-alt",onClick:function(){return B("lobby")},children:"LOBBY"}):null,w("admin")?(0,e.jsx)(t.$n,{fluid:!0,icon:"columns",onClick:function(){return B("cryo")},children:"SEND TO CRYO"}):null]})]})})},l=function(C){var I=(0,s.Oc)(),P=I.act,M=I.data,B=function(T,K){K===void 0&&(K={}),P(T,O({selectedPlayerCkey:M.ckey},K))},w=function(T){return M.adminRights.toLowerCase().includes(T)||!1};return(0,e.jsx)(t.wn,{title:"Info",children:(0,e.jsxs)(t.xA,{children:[(0,e.jsxs)(t.xA.Column,{size:6,children:[(0,e.jsx)(t.$n,{fluid:!0,icon:"book",onClick:function(){return B("logs")},children:"LOGS"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"clipboard",onClick:function(){return B("notes")},children:"NOTES"}),w("admin")?(0,e.jsx)(t.$n,{fluid:!0,icon:"eye",onClick:function(){return B("playtime")},children:"PLAYTIME"}):null,w("admin")?(0,e.jsx)(t.$n,{fluid:!0,icon:"globe",onClick:function(){return B("geoip")},children:"GEOIP"}):null]}),(0,e.jsxs)(t.xA.Column,{size:6,children:[(0,e.jsx)(t.$n,{fluid:!0,icon:"user-secret",onClick:function(){return B("tp")},children:"TRAITOR PANEL"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"code",onClick:function(){return B("vv")},children:"VV"}),w("admin")?(0,e.jsx)(t.$n,{fluid:!0,icon:"database",onClick:function(){return B("ccdb")},children:"CHECK GLOBAL CCDB"}):null,(0,e.jsx)(t.$n,{fluid:!0,icon:"eye",onClick:function(){return B("obs")},children:"OBS"})]})]})})},c=function(C){var I=(0,s.Oc)(),P=I.act,M=I.data,B=function(T,K){K===void 0&&(K={}),P(T,O({selectedPlayerCkey:M.ckey},K))},w=function(T){return M.adminRights.toLowerCase().includes(T)||!1};return w("spawn")?(0,e.jsx)(t.wn,{title:"Transformation",children:(0,e.jsxs)(t.xA,{children:[(0,e.jsxs)(t.xA.Column,{size:6,children:[(0,e.jsx)(t.$n,{fluid:!0,icon:"ghost",color:y(M.mobType,"ghost")?"good":"",onClick:function(){return B("makeghost")},children:"MAKE GHOST"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"user",color:y(M.mobType,"human")?"good":"",onClick:function(){return B("makehuman")},children:"MAKE HUMAN"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"paw",color:y(M.mobType,"monkey")?"good":"",onClick:function(){return B("makemonkey")},children:"MAKE MONKEY"})]}),(0,e.jsxs)(t.xA.Column,{size:6,children:[(0,e.jsx)(t.$n,{fluid:!0,icon:"robot",color:y(M.mobType,"cyborg")?"good":"",onClick:function(){return B("makeborg")},children:"MAKE CYBORG"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"microchip",color:y(M.mobType,"ai")?"good":"",onClick:function(){return B("makeai")},children:"MAKE AI"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"microchip",color:y(M.mobType,"animal")?"good":"",onClick:function(){return B("makeanimal")},children:"ANIMALIZE"})]})]})}):null},h=function(C){var I=(0,s.Oc)(),P=I.act,M=I.data,B=function(T,K){K===void 0&&(K={}),P(T,O({selectedPlayerCkey:M.ckey},K))},w=function(T){return M.adminRights.toLowerCase().includes(T)||!1};return y(M.mobType,"ghost")?(0,e.jsx)(t.wn,{title:"Observer",children:(0,e.jsxs)(t.xA,{children:[(0,e.jsx)(t.xA.Column,{size:2,children:(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return B("respawnability")},children:"TOGGLE RESPAWNABILITY"})}),(0,e.jsx)(t.xA.Column,{size:2,children:(0,e.jsx)(t.$n,{fluid:!0,icon:"staff-snake",disabled:!w("spawn"),onClick:function(){return B("reviveghost")},children:"RE-INCARNATE"})})]})}):(0,e.jsx)(t.wn,{title:"Health",children:(0,e.jsxs)(t.xA,{children:[(0,e.jsxs)(t.xA.Column,{size:6,children:[(0,e.jsx)(t.$n,{fluid:!0,icon:"heart",onClick:function(){return B("healthscan")},children:"HEALTHSCAN"}),w("admin")?(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return B("giveDisease")},children:"GIVE DISEASE"}):null,w("admin")?(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return B("cureDisease")},children:"CURE DISEASE"}):null,w("admin")?(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return B("cureAllDiseases")},children:"CURE ALL BAD DISEASES"}):null]}),(0,e.jsxs)(t.xA.Column,{size:6,children:[(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return B("chemscan")},children:"CHEMSCAN"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"plus",disabled:!w("rejuvinate"),onClick:function(){return B("aheal")},children:"REJUVINATE"}),w("admin")?(0,e.jsx)(t.$n,{fluid:!0,icon:"dna",onClick:function(){return B("mutate")},children:"SHOW DNA"}):null]})]})})},g=function(C){var I=(0,s.Oc)(),P=I.act,M=I.data,B=function(T,K){K===void 0&&(K={}),P(T,O({selectedPlayerCkey:M.ckey},K))},w=function(T){return M.adminRights.toLowerCase().includes(T)||!1};return w("admin")?(0,e.jsx)(t.wn,{title:"Mob Manipulation",children:(0,e.jsxs)(t.xA,{children:[(0,e.jsxs)(t.xA.Column,{size:6,children:[(0,e.jsx)(t.$n,{fluid:!0,icon:"pencil",onClick:function(){return B("randomizename")},children:"MOB RANDOM NAME"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"shirt",disabled:!w("event"),onClick:function(){return B("selectequip")},children:"SELECT EQUIPMENT"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"microphone",onClick:function(){return B("changevoice")},children:"CHANGE VOICE"}),w("event")?(0,e.jsx)(t.$n,{fluid:!0,icon:"circle-user",onClick:function(){return B("mirroradmin")},children:"MIRROR UI TO ADMIN"}):null]}),(0,e.jsxs)(t.xA.Column,{size:6,children:[(0,e.jsx)(t.$n,{fluid:!0,icon:"pen",onClick:function(){return B("userandomname")},children:"CHARACTER RANDOM NAME"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"eraser",onClick:function(){return B("eraseflavortext")},children:"ERASE FLAVOR"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"shirt",onClick:function(){return B("checkcontents")},children:"CHECK CONTENTS"}),w("event")?(0,e.jsx)(t.$n,{fluid:!0,icon:"circle-user",onClick:function(){return B("mirrorplayer")},children:"MIRROR UI TO PLAYER"}):null]})]})}):null},p=function(C){var I=(0,s.Oc)(),P=I.act,M=I.data,B=function(T,K){K===void 0&&(K={}),P(T,O({selectedPlayerCkey:M.ckey},K))},w=function(T){return M.adminRights.toLowerCase().includes(T)||!1};return(0,e.jsx)(t.wn,{title:"Misc",children:(0,e.jsxs)(t.xA,{children:[(0,e.jsxs)(t.xA.Column,{size:6,children:[w("event")?(0,e.jsx)(t.$n,{fluid:!0,icon:"gavel",onClick:function(){return B("thunderdome1")},children:"THUNDERDOME 1"}):null,w("event")?(0,e.jsx)(t.$n,{fluid:!0,icon:"gavel",onClick:function(){return B("thunderdome2")},children:"THUNDERDOME 2"}):null,w("event")?(0,e.jsx)(t.$n,{fluid:!0,icon:"comment",onClick:function(){return B("forcesay")},children:"FORCESAY"}):null,w("admin")?(0,e.jsx)(t.$n,{fluid:!0,icon:"handcuffs",onClick:function(){return B("prison")},children:"PRISON"}):null,w("admin")?(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return B("contractor_release")},children:"SYNDI JAIL RELEASE"}):null,w("event")||w("admin")?(0,e.jsx)(t.$n,{fluid:!0,icon:"cookie",onClick:function(){return B("spawncookie")},children:"SPAWN COOKIE"}):null]}),(0,e.jsxs)(t.xA.Column,{size:6,children:[w("event")?(0,e.jsx)(t.$n,{fluid:!0,icon:"gavel",onClick:function(){return B("thunderdomeadmin")},children:"THUNDERDOME ADMIN"}):null,w("event")?(0,e.jsx)(t.$n,{fluid:!0,icon:"eye",onClick:function(){return B("thunderdomeobserver")},children:"THUNDERDOME OBSERVER"}):null,w("admin")?(0,e.jsx)(t.$n,{fluid:!0,icon:"wheelchair-move",onClick:function(){return B("adminroom")},children:"AROOM WRAP"}):null,w("admin")?(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return B("contractor_start")},children:"SYNDI JAIL START"}):null,w("admin")?(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return B("contractor_stop")},children:"SYNDI JAIL STOP"}):null,(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return B("someadminbutton")},children:"Some Admin Button"})]})]})})},j=function(C){var I=(0,s.Oc)(),P=I.act,M=I.data,B=function(T,K){K===void 0&&(K={}),P(T,O({selectedPlayerCkey:M.ckey},K))},w=function(T){M.ckey&&B("toggleMute",{type:T})};return(0,e.jsx)(t.wn,{title:"Mute Controls",children:(0,e.jsxs)(t.xA,{children:[(0,e.jsxs)(t.xA.Column,{size:7,children:[(0,e.jsx)(x,{fluid:!0,checked:M.muteStates.ic,onClick:function(){return w("ic")},children:"IC"}),(0,e.jsx)(x,{fluid:!0,checked:M.muteStates.ooc,onClick:function(){return w("ooc")},children:"OOC"}),(0,e.jsx)(x,{fluid:!0,checked:M.muteStates.pray,onClick:function(){return w("pray")},children:"PRAY"}),(0,e.jsx)(x,{fluid:!0,checked:M.muteStates.emote,onClick:function(){return w("emote")},children:"EMOTE"})]}),(0,e.jsxs)(t.xA.Column,{size:6,children:[(0,e.jsx)(x,{fluid:!0,checked:M.muteStates.adminhelp,onClick:function(){return w("adminhelp")},children:"ADMINHELP"}),(0,e.jsx)(x,{fluid:!0,checked:M.muteStates.deadchat,onClick:function(){return w("deadchat")},children:"DEADCHAT"}),(0,e.jsx)(x,{fluid:!0,checked:M.muteStates.all,onClick:function(){return w("all")},children:"ALL"})]})]})})},x=function(C){var I=C.checked,P=b(C,["checked"]);return(0,e.jsx)(t.$n,O({color:I?"red":"green",icon:I?"check-square-o":"square-o"},P))}},3184:(q,S,r)=>{"use strict";r.r(S),r.d(S,{MODsuit:()=>y,MODsuitContent:()=>u});var e=r(1131),s=r(7003),n=r(5180),t=r(8477),a=r(360),O=r(3521);function b(){return b=Object.assign||function(w){for(var T=1;T0})}),(0,e.jsx)(n.XI.Cell,{width:1,children:(0,e.jsx)(n.$n,{onClick:function(){return Z(N===ie.ref?"":ie.ref)},icon:"cog",selected:N===ie.ref,tooltip:"\u041D\u0430\u0441\u0442\u0440\u043E\u0438\u0442\u044C",tooltipPosition:"left",disabled:ie.configuration_data.length===0})}),(0,e.jsx)(n.XI.Cell,{width:1,children:(0,e.jsx)(n.$n,{onClick:function(){return K("pin",{ref:ie.ref})},icon:"thumbtack",selected:ie.pinned,tooltip:"\u0417\u0430\u043A\u0440\u0435\u043F\u0438\u0442\u044C",tooltipPosition:"left",disabled:!ie.module_type})}),(0,e.jsxs)(n.XI.Cell,{children:[(0,e.jsx)(n.Nt,{title:ie.module_name,color:ie.module_active?"green":"default",children:(0,e.jsx)(n.wn,{mr:-19,children:ie.description})}),N===ie.ref&&(0,e.jsx)(p,{configuration_data:ie.configuration_data,module_ref:ie.ref,module_name:ie.module_name})]}),(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:(0,t.QL)(ie.idle_power,0)}),(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:(0,t.QL)(ie.active_power,0)}),(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:(0,t.QL)(ie.use_energy,0)}),(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:ie.module_complexity})]},ie.ref)})]}):(0,e.jsx)(n.IC,{children:"\u041C\u043E\u0434\u0443\u043B\u0438 \u043D\u0435 \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u044B"})})}},3211:(q,S,r)=>{"use strict";r.r(S),r.d(S,{AccessList:()=>u});var e=r(1131),s=r(1859),n=r(7003),t=r(5180);function a(f,m){(m==null||m>f.length)&&(m=f.length);for(var d=0,v=new Array(m);d=f.length?{done:!0}:{done:!1,value:f[v++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var y={0:{icon:"times-circle",color:"bad"},1:{icon:"stop-circle",color:null},2:{icon:"check-circle",color:"good"}},u=function(f){var m,d=f.sectionButtons,v=d===void 0?null:d,_=f.usedByRcd,l=f.rcdButtons,c=f.accesses,h=c===void 0?[]:c,g=f.selectedList,p=g===void 0?[]:g,j=f.grantableList,x=j===void 0?[]:j,C=f.accessMod,I=f.grantAll,P=f.denyAll,M=f.grantDep,B=f.denyDep,w=(0,n.useState)((m=h[0])==null?void 0:m.name),T=w[0],K=w[1],R=h.find(function($){return $.name===T}),U=(0,s.Ul)(R?.accesses||[],function($){return $.desc}),F=function($){for(var W=!1,N=!1,Z=b($),ie;!(ie=Z()).done;){var Q=ie.value;p?.includes(Q.ref)?W=!0:N=!0}return!W&&N?0:W&&N?1:2};return(0,e.jsx)(t.wn,{fill:!0,scrollable:!0,title:"Access",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"check-double",color:"good",onClick:function(){return I()},children:"Select All"}),(0,e.jsx)(t.$n,{icon:"undo",color:"bad",onClick:function(){return P()},children:"Deselect All"}),v]}),children:(0,e.jsxs)(t.BJ,{children:[(0,e.jsx)(t.BJ.Item,{grow:!0,basis:"25%",children:(0,e.jsx)(t.tU,{vertical:!0,children:h.map(function($){var W=$.accesses||[],N=y[F(W)].icon,Z=y[F(W)].color;return!!W.length&&(0,e.jsx)(t.tU.Tab,{color:Z,icon:N,selected:$.name===T,onClick:function(){return K($.name)},children:$.name},$.name)})})}),(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.cG,{vertical:!0})}),(0,e.jsxs)(t.BJ.Item,{grow:!0,basis:"80%",children:[(0,e.jsxs)(t.BJ,{mb:1,children:[(0,e.jsx)(t.BJ.Item,{grow:!0,children:(0,e.jsx)(t.$n,{fluid:!0,icon:"check",color:"good",onClick:function(){return M(R.regid)},children:"Select All In Region"})}),(0,e.jsx)(t.BJ.Item,{grow:!0,children:(0,e.jsx)(t.$n,{fluid:!0,icon:"times",color:"bad",onClick:function(){return B(R.regid)},children:"Deselect All In Region"})})]}),!!_&&(0,e.jsx)(t.az,{my:1.5,children:(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Require",children:l})})}),U.map(function($){return(0,e.jsx)(t.$n.Checkbox,{fluid:!0,disabled:x?.length>0&&!x.includes($.ref)&&!p?.includes($.ref),checked:p?.includes($.ref),onClick:function(){return C($.ref)},children:$.desc},$.desc)})]})]})})}},3255:(q,S,r)=>{"use strict";r.r(S),r.d(S,{Orbit:()=>c});var e=r(1131),s=r(9845),n=r(360),t=r(5180),a=r(3521),O=r(7003);function b(h,g){(g==null||g>h.length)&&(g=h.length);for(var p=0,j=new Array(g);p=h.length?{done:!0}:{done:!1,value:h[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 f=/ \(([0-9]+)\)$/,m=function(h){return(0,s.XZ)(h,function(g){return g.name})},d=function(h,g){return hg?1:0},v=function(h,g){var p=h.name,j=g.name;if(!p||!j)return 0;var x=p.match(f),C=j.match(f);if(x&&C&&p.replace(f,"")===j.replace(f,"")){var I=parseInt(x[1],10),P=parseInt(C[1],10);return I-P}return d(p,j)},_=function(h){var g=(0,n.Oc)().act,p=h.searchText,j=h.source,x=h.title,C=j.filter(m(p));return C.sort(v),j.length>0&&(0,e.jsx)(t.wn,{title:x+" - ("+j.length+")",children:C.map(function(I){return(0,e.jsx)(t.$n,{onClick:function(){return g("orbit",{ref:I.ref})},children:I.name},I.name)})})},l=function(h){var g=(0,n.Oc)().act,p=h.color,j=h.thing;return(0,e.jsx)(t.$n,{color:p,onClick:function(){return g("orbit",{ref:j.ref})},children:j.name})},c=function(h){for(var g=(0,n.Oc)(),p=g.act,j=g.data,x=j.alive,C=j.antagonists,I=j.highlights,P=j.auto_observe,M=j.dead,B=j.ghosts,w=j.misc,T=j.npcs,K=(0,O.useState)(""),R=K[0],U=K[1],F={},$=u(C),W;!(W=$()).done;){var N=W.value;F[N.antag]===void 0&&(F[N.antag]=[]),F[N.antag].push(N)}var Z=Object.entries(F);Z.sort(function(Q,V){return d(Q[0],V[0])});var ie=function(Q){for(var V=0,G=[Z.map(function(de){var me=de[0],pe=de[1];return pe[me]}),I,x,B,M,T,w];V0&&(0,e.jsx)(t.wn,{title:"Antagonists",children:Z.map(function(Q){var V=Q[0],G=Q[1];return(0,e.jsx)(t.wn,{title:V,children:G.filter(m(R)).sort(v).map(function(le){return(0,e.jsx)(l,{color:"bad",thing:le},le.name)})},V)})}),I.length>0&&(0,e.jsx)(_,{title:"Highlights",source:I,searchText:R,color:"teal"}),(0,e.jsx)(t.wn,{title:"Alive - ("+x.length+")",children:x.filter(m(R)).sort(v).map(function(Q){return(0,e.jsx)(l,{color:"good",thing:Q},Q.name)})}),(0,e.jsx)(t.wn,{title:"Ghosts - ("+B.length+")",children:B.filter(m(R)).sort(v).map(function(Q){return(0,e.jsx)(l,{color:"grey",thing:Q},Q.name)})}),(0,e.jsx)(_,{title:"Dead",source:M,searchText:R}),(0,e.jsx)(_,{title:"NPCs",source:T,searchText:R}),(0,e.jsx)(_,{title:"Misc",source:w,searchText:R})]})})}},3261:(q,S,r)=>{"use strict";r.r(S),r.d(S,{CrewManifest:()=>m});var e=r(1131),s=r(360),n=r(5180),t=r(9845),a=r(9357),O=a.lm.department,b=["Captain","Head of Security","Chief Engineer","Chief Medical Officer","Research Director","Head of Personnel","Quartermaster"],y=function(d){return b.indexOf(d)!==-1?"green":"orange"},u=function(d){if(b.indexOf(d)!==-1)return!0},f=function(d){return d.length>0&&(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{header:!0,color:"white",children:[(0,e.jsx)(n.XI.Cell,{width:"50%",children:"Name"}),(0,e.jsx)(n.XI.Cell,{width:"35%",children:"Rank"}),(0,e.jsx)(n.XI.Cell,{width:"15%",children:"Active"})]}),d.map(function(v){return(0,e.jsxs)(n.XI.Row,{color:y(v.real_rank),bold:u(v.real_rank),children:[(0,e.jsx)(n.XI.Cell,{children:(0,t.jT)(v.name)}),(0,e.jsx)(n.XI.Cell,{children:(0,t.jT)(v.rank)}),(0,e.jsx)(n.XI.Cell,{children:v.active})]},v.name+v.rank)})]})},m=function(d){var v=d?.manifest?d.manifest:(0,s.Oc)().data.manifest,_=v.heads,l=v.pro,c=v.sec,h=v.eng,g=v.med,p=v.sci,j=v.ser,x=v.sup,C=v.misc;return(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.wn,{title:(0,e.jsx)(n.az,{backgroundColor:O.command,m:-1,pt:1,pb:1,children:(0,e.jsx)(n.az,{ml:1,textAlign:"center",fontSize:1.4,children:"Command"})}),children:f(_)}),(0,e.jsx)(n.wn,{title:(0,e.jsx)(n.az,{backgroundColor:O.procedure,m:-1,pt:1,pb:1,children:(0,e.jsx)(n.az,{ml:1,textAlign:"center",fontSize:1.4,children:"Procedure"})}),children:f(l)}),(0,e.jsx)(n.wn,{title:(0,e.jsx)(n.az,{backgroundColor:O.security,m:-1,pt:1,pb:1,children:(0,e.jsx)(n.az,{ml:1,textAlign:"center",fontSize:1.4,children:"Security"})}),children:f(c)}),(0,e.jsx)(n.wn,{title:(0,e.jsx)(n.az,{backgroundColor:O.engineering,m:-1,pt:1,pb:1,children:(0,e.jsx)(n.az,{ml:1,textAlign:"center",fontSize:1.4,children:"Engineering"})}),children:f(h)}),(0,e.jsx)(n.wn,{title:(0,e.jsx)(n.az,{backgroundColor:O.medical,m:-1,pt:1,pb:1,children:(0,e.jsx)(n.az,{ml:1,textAlign:"center",fontSize:1.4,children:"Medical"})}),children:f(g)}),(0,e.jsx)(n.wn,{title:(0,e.jsx)(n.az,{backgroundColor:O.science,m:-1,pt:1,pb:1,children:(0,e.jsx)(n.az,{ml:1,textAlign:"center",fontSize:1.4,children:"Science"})}),children:f(p)}),(0,e.jsx)(n.wn,{title:(0,e.jsx)(n.az,{backgroundColor:O.service,m:-1,pt:1,pb:1,children:(0,e.jsx)(n.az,{ml:1,textAlign:"center",fontSize:1.4,children:"Service"})}),children:f(j)}),(0,e.jsx)(n.wn,{title:(0,e.jsx)(n.az,{backgroundColor:O.supply,m:-1,pt:1,pb:1,children:(0,e.jsx)(n.az,{ml:1,textAlign:"center",fontSize:1.4,children:"Supply"})}),children:f(x)}),(0,e.jsx)(n.wn,{title:(0,e.jsx)(n.az,{m:-1,pt:1,pb:1,children:(0,e.jsx)(n.az,{ml:1,textAlign:"center",fontSize:1.4,children:"Misc"})}),children:f(C)})]})}},3263:(q,S,r)=>{"use strict";r.r(S),r.d(S,{CommunicationsComputer:()=>y});var e=r(1131),s=r(360),n=r(7003),t=r(5180),a=r(3521),O={1:function(){return(0,e.jsx)(f,{})},2:function(){return(0,e.jsx)(v,{})},3:function(){return(0,e.jsx)(t.BJ.Item,{grow:!0,children:(0,e.jsx)(t.wn,{fill:!0,children:(0,e.jsx)(_,{})})})},4:function(){return(0,e.jsx)(c,{})},default:function(){return"\u041E\u0448\u0438\u0431\u043A\u0430. \u041D\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E\u0435 menu_state. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0441\u0432\u044F\u0436\u0438\u0442\u0435\u0441\u044C \u0441 \u0422\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u041F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u043E\u0439 NT."}},b=function(h){return O[h]},y=function(h){var g=(0,s.Oc)().data,p=g.menu_state;return(0,e.jsx)(a.p8,{width:500,height:600,title:"\u041A\u043E\u043D\u0441\u043E\u043B\u044C \u0441\u0432\u044F\u0437\u0438",children:(0,e.jsx)(a.p8.Content,{scrollable:!0,children:(0,e.jsxs)(t.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(u,{}),b(p)()]})})})},u=function(h){var g=(0,s.Oc)(),p=g.act,j=g.data,x=j.authenticated,C=j.noauthbutton,I=j.esc_section,P=j.esc_callable,M=j.esc_recallable,B=j.esc_status,w=j.authhead,T=j.is_ai,K=j.lastCallLoc,R=!1,U;return x?x===1?U="\u041A\u043E\u043C\u0430\u043D\u0434\u043E\u0432\u0430\u043D\u0438\u0435":x===2?U="\u041A\u0430\u043F\u0438\u0442\u0430\u043D":x===3?U="\u041E\u0444\u0438\u0446\u0435\u0440 \u0426\u0435\u043D\u0442\u0440\u0430\u043B\u044C\u043D\u043E\u0433\u043E \u041A\u043E\u043C\u0430\u043D\u0434\u043E\u0432\u0430\u043D\u0438\u044F":x===4?(U="\u0417\u0430\u0449\u0438\u0449\u0451\u043D\u043D\u044B\u0439 \u043A\u0430\u043D\u0430\u043B \u0426\u0435\u043D\u0442\u041A\u043E\u043C\u0430",R=!0):U="\u041E\u0428\u0418\u0411\u041A\u0410: \u0421\u043E\u043E\u0431\u0449\u0438\u0442\u0435 \u043E\u0431 \u044D\u0442\u043E\u043C \u0431\u0430\u0433\u0435!":U="\u0412\u0445\u043E\u0434 \u043D\u0435 \u0432\u044B\u043F\u043E\u043B\u043D\u0435\u043D",(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.wn,{title:"\u0410\u0443\u0442\u0435\u043D\u0442\u0438\u0444\u0438\u043A\u0430\u0446\u0438\u044F",children:(0,e.jsx)(t.Ki,{children:R&&(0,e.jsx)(t.Ki.Item,{label:"\u0414\u043E\u0441\u0442\u0443\u043F",children:U})||(0,e.jsx)(t.Ki.Item,{label:"\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u044F",children:(0,e.jsx)(t.$n,{icon:x?"sign-out-alt":"id-card",selected:x,disabled:C,onClick:function(){return p("auth")},children:x?"\u0412\u044B\u0439\u0442\u0438 ("+U+")":"\u0412\u043E\u0439\u0442\u0438"})})})})}),(0,e.jsx)(t.BJ.Item,{children:!!I&&(0,e.jsx)(t.wn,{fill:!0,title:"\u042D\u0432\u0430\u043A\u0443\u0430\u0446\u0438\u043E\u043D\u043D\u044B\u0439 \u0448\u0430\u0442\u0442\u043B",children:(0,e.jsxs)(t.Ki,{children:[!!B&&(0,e.jsx)(t.Ki.Item,{label:"\u0421\u0442\u0430\u0442\u0443\u0441",children:B}),!!P&&(0,e.jsx)(t.Ki.Item,{label:"\u041E\u043F\u0446\u0438\u0438",children:(0,e.jsx)(t.$n,{icon:"rocket",disabled:!w,onClick:function(){return p("callshuttle")},children:"\u0412\u044B\u0437\u0432\u0430\u0442\u044C \u0448\u0430\u0442\u0442\u043B"})}),!!M&&(0,e.jsx)(t.Ki.Item,{label:"\u041E\u043F\u0446\u0438\u0438",children:(0,e.jsx)(t.$n,{icon:"times",disabled:!w||T,onClick:function(){return p("cancelshuttle")},children:"\u041E\u0442\u043E\u0437\u0432\u0430\u0442\u044C \u0448\u0430\u0442\u0442\u043B"})}),!!K&&(0,e.jsx)(t.Ki.Item,{label:"\u041F\u043E\u0441\u043B\u0435\u0434\u043D\u0438\u0439 \u0432\u044B\u0437\u043E\u0432/\u043E\u0442\u0437\u044B\u0432 \u0438\u0437",children:K})]})})})]})},f=function(h){var g=(0,s.Oc)().data,p=g.is_admin;return p?(0,e.jsx)(m,{}):(0,e.jsx)(d,{})},m=function(h){var g=(0,s.Oc)(),p=g.act,j=g.data,x=j.is_admin,C=j.gamma_armory_location,I=j.admin_levels,P=j.authenticated,M=j.ert_allowed;return(0,e.jsxs)(t.BJ.Item,{children:[(0,e.jsx)(t.wn,{title:'\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u044F \u0443\u0440\u043E\u0432\u043D\u044F \u0434\u043E\u0441\u0442\u0443\u043F\u0430 "\u041E\u0444\u0438\u0446\u0435\u0440 \u0426\u0435\u043D\u0442\u0440\u0430\u043B\u044C\u043D\u043E\u0433\u043E \u041A\u043E\u043C\u0430\u043D\u0434\u043E\u0432\u0430\u043D\u0438\u044F"',children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"\u0421\u043C\u0435\u043D\u0438\u0442\u044C \u0443\u0440\u043E\u0432\u0435\u043D\u044C \u0443\u0433\u0440\u043E\u0437\u044B",children:(0,e.jsx)(l,{levels:I,required_access:x,use_confirm:!0})}),(0,e.jsxs)(t.Ki.Item,{label:"\u041E\u043F\u043E\u0432\u0435\u0449\u0435\u043D\u0438\u0435",children:[(0,e.jsx)(t.$n,{icon:"bullhorn",disabled:!x,onClick:function(){return p("send_to_cc_announcement_page")},children:"\u0421\u0434\u0435\u043B\u0430\u0442\u044C \u043E\u043F\u043E\u0432\u0435\u0449\u0435\u043D\u0438\u0435 \u0426\u041A"}),P===4&&(0,e.jsx)(t.$n,{icon:"plus",disabled:!x,onClick:function(){return p("make_other_announcement")},children:"\u0421\u0434\u0435\u043B\u0430\u0442\u044C \u0434\u0440\u0443\u0433\u043E\u0435 \u043E\u043F\u043E\u0432\u0435\u0449\u0435\u043D\u0438\u0435"})]}),(0,e.jsxs)(t.Ki.Item,{label:"\u041E\u0411\u0420",children:[(0,e.jsx)(t.$n,{icon:"ambulance",disabled:!x,onClick:function(){return p("dispatch_ert")},children:"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u041E\u0411\u0420"}),(0,e.jsx)(t.$n.Checkbox,{checked:M,tooltip:M?"\u041A\u043E\u043C\u0430\u043D\u0434\u043E\u0432\u0430\u043D\u0438\u0435 \u043C\u043E\u0436\u0435\u0442 \u0437\u0430\u043F\u0440\u043E\u0441\u0438\u0442\u044C \u041E\u0411\u0420":"\u041E\u0411\u0420 \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u0431\u044B\u0442\u044C \u0437\u0430\u043F\u0440\u043E\u0448\u0435\u043D",disabled:!x,onClick:function(){return p("toggle_ert_allowed")},selected:null,children:M?"\u0412\u044B\u0437\u043E\u0432 \u041E\u0411\u0420 \u0440\u0430\u0437\u0440\u0435\u0448\u0451\u043D":"\u0412\u044B\u0437\u043E\u0432 \u041E\u0411\u0420 \u0437\u0430\u043F\u0440\u0435\u0449\u0451\u043D"})]}),(0,e.jsx)(t.Ki.Item,{label:"\u042F\u0434\u0435\u0440\u043D\u0430\u044F \u0431\u043E\u0435\u0433\u043E\u043B\u043E\u0432\u043A\u0430",children:(0,e.jsx)(t.$n.Confirm,{icon:"bomb",disabled:!x,onClick:function(){return p("send_nuke_codes")},children:"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u043A\u043E\u0434\u044B \u0430\u0443\u0442\u0435\u043D\u0442\u0438\u0444\u0438\u043A\u0430\u0446\u0438\u0438"})}),(0,e.jsx)(t.Ki.Item,{label:'\u041E\u0440\u0443\u0436\u0435\u0439\u043D\u044B\u0439 \u0448\u0430\u0442\u0442\u043B "\u0413\u0430\u043C\u043C\u0430"',children:(0,e.jsx)(t.$n.Confirm,{icon:"biohazard",disabled:!x,onClick:function(){return p("move_gamma_armory")},children:C?'\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u043E\u0440\u0443\u0436\u0435\u0439\u043D\u044B\u0439 \u0448\u0430\u0442\u0442\u043B "\u0413\u0430\u043C\u043C\u0430"':'\u041E\u0442\u043E\u0437\u0432\u0430\u0442\u044C \u043E\u0440\u0443\u0436\u0435\u0439\u043D\u044B\u0439 \u0448\u0430\u0442\u0442\u043B "\u0413\u0430\u043C\u043C\u0430"'})}),(0,e.jsx)(t.Ki.Item,{label:"\u0414\u0440\u0443\u0433\u043E\u0435",children:(0,e.jsx)(t.$n,{icon:"fax",disabled:!x,onClick:function(){return p("view_fax")},children:"\u0424\u0430\u043A\u0441-\u043C\u0435\u043D\u0435\u0434\u0436\u0435\u0440"})})]})}),(0,e.jsx)(t.Nt,{title:"\u041F\u0440\u043E\u0441\u043C\u043E\u0442\u0440 \u0434\u0435\u0439\u0441\u0442\u0438\u0439, \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0445 \u0434\u043B\u044F \u043A\u043E\u043C\u0430\u043D\u0434\u043E\u0432\u0430\u043D\u0438\u044F",children:(0,e.jsx)(d,{})})]})},d=function(h){var g=(0,s.Oc)(),p=g.act,j=g.data,x=j.msg_cooldown,C=j.emagged,I=j.cc_cooldown,P=j.security_level_color,M=j.str_security_level,B=j.levels,w=j.authcapt,T=j.authhead,K=j.messages,R="\u0421\u0434\u0435\u043B\u0430\u0442\u044C \u043F\u0440\u0438\u043E\u0440\u0438\u0442\u0435\u0442\u043D\u043E\u0435 \u043E\u043F\u043E\u0432\u0435\u0449\u0435\u043D\u0438\u0435";x>0&&(R+=" ("+x+"s)");var U=C?"\u0421\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435 [\u041D\u0415\u0418\u0417\u0412\u0415\u0421\u0422\u041D\u041E]":"\u0421\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435 \u0426\u041A",F="\u0417\u0430\u043F\u0440\u043E\u0441\u0438\u0442\u044C \u043A\u043E\u0434\u044B \u0430\u0443\u0442\u0435\u043D\u0442\u0438\u0444\u0438\u043A\u0430\u0446\u0438\u0438";return I>0&&(U+=" ("+I+"s)",F+=" ("+I+"s)"),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.BJ.Item,{grow:!0,children:(0,e.jsx)(t.wn,{fill:!0,title:'\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u044F \u0443\u0440\u043E\u0432\u043D\u044F \u0434\u043E\u0441\u0442\u0443\u043F\u0430 "\u041A\u0430\u043F\u0438\u0442\u0430\u043D"',children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"\u0422\u0435\u043A\u0443\u0449\u0438\u0439 \u0443\u0440\u043E\u0432\u0435\u043D\u044C \u0443\u0433\u0440\u043E\u0437\u044B",color:P,children:M}),(0,e.jsx)(t.Ki.Item,{label:"\u0421\u043C\u0435\u043D\u0438\u0442\u044C \u0443\u0440\u043E\u0432\u0435\u043D\u044C \u0443\u0433\u0440\u043E\u0437\u044B",children:(0,e.jsx)(l,{levels:B,required_access:w})}),(0,e.jsx)(t.Ki.Item,{label:"\u041E\u043F\u043E\u0432\u0435\u0449\u0435\u043D\u0438\u0435",children:(0,e.jsx)(t.$n,{icon:"bullhorn",disabled:!w||x>0,onClick:function(){return p("announce")},children:R})}),!!C&&(0,e.jsxs)(t.Ki.Item,{label:"\u041F\u0435\u0440\u0435\u0434\u0430\u0447\u0430",children:[(0,e.jsx)(t.$n,{icon:"broadcast-tower",color:"red",disabled:!w||I>0,onClick:function(){return p("MessageSyndicate")},children:U}),(0,e.jsx)(t.$n,{icon:"sync-alt",disabled:!w,onClick:function(){return p("RestoreBackup")},children:"\u0421\u0431\u0440\u043E\u0441\u0438\u0442\u044C \u0440\u0435\u043B\u0435"})]})||(0,e.jsx)(t.Ki.Item,{label:"\u041F\u0435\u0440\u0435\u0434\u0430\u0447\u0430",children:(0,e.jsx)(t.$n,{icon:"broadcast-tower",disabled:!w||I>0,onClick:function(){return p("MessageCentcomm")},children:U})}),(0,e.jsx)(t.Ki.Item,{label:"\u042F\u0434\u0435\u0440\u043D\u0430\u044F \u0431\u043E\u0435\u0433\u043E\u043B\u043E\u0432\u043A\u0430",children:(0,e.jsx)(t.$n,{icon:"bomb",disabled:!w||I>0,onClick:function(){return p("nukerequest")},children:F})})]})})}),(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.wn,{fill:!0,title:'\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u044F \u0443\u0440\u043E\u0432\u043D\u044F \u0434\u043E\u0441\u0442\u0443\u043F\u0430 "\u041A\u043E\u043C\u0430\u043D\u0434\u043E\u0432\u0430\u043D\u0438\u0435"',children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"\u0414\u0438\u0441\u043F\u043B\u0435\u0438",children:(0,e.jsx)(t.$n,{icon:"tv",disabled:!T,onClick:function(){return p("status")},children:"\u0418\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u0435 \u0414\u0438\u0441\u043F\u043B\u0435\u0435\u0432 \u0441\u0442\u0430\u0442\u0443\u0441\u0430"})}),(0,e.jsx)(t.Ki.Item,{label:"\u0412\u0445\u043E\u0434\u044F\u0449\u0438\u0435 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u044F",children:(0,e.jsx)(t.$n,{icon:"folder-open",disabled:!T,onClick:function(){return p("messagelist")},children:"\u041F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0435\u0442\u044C ("+K.length+")"})})]})})})]})},v=function(h){var g=(0,s.Oc)(),p=g.act,j=g.data,x=j.stat_display,C=j.authhead,I=x.presets.map(function(M){return(0,e.jsx)(t.$n,{selected:M.name===x.type,disabled:!C,onClick:function(){return p("setstat",{statdisp:M.id})},children:M.label},M.name)}),P=x.alerts.map(function(M){return(0,e.jsx)(t.$n,{selected:M.alert===x.icon,disabled:!C,onClick:function(){return p("setstat",{statdisp:3,alert:M.alert})},children:M.label},M.alert)});return(0,e.jsx)(t.BJ.Item,{grow:!0,children:(0,e.jsx)(t.wn,{fill:!0,title:"\u0418\u0437\u043C\u0435\u043D\u0438\u0442\u044C \u044D\u043A\u0440\u0430\u043D\u044B \u0441\u0442\u0430\u0442\u0443\u0441\u0430",buttons:(0,e.jsx)(t.$n,{icon:"arrow-circle-left",onClick:function(){return p("main")},children:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u0432 \u043E\u0441\u043D\u043E\u0432\u043D\u043E\u0435 \u043C\u0435\u043D\u044E"}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"\u041F\u0440\u0435\u0441\u0435\u0442\u044B",children:I}),(0,e.jsx)(t.Ki.Item,{label:"\u041E\u043F\u043E\u0432\u0435\u0449\u0435\u043D\u0438\u044F",children:P}),(0,e.jsx)(t.Ki.Item,{label:"\u0421\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435 \u0421\u0442\u0440\u043E\u043A\u0430 1",children:(0,e.jsx)(t.$n,{icon:"pencil-alt",disabled:!C,onClick:function(){return p("setmsg1")},children:x.line_1})}),(0,e.jsx)(t.Ki.Item,{label:"\u0421\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435 \u0421\u0442\u0440\u043E\u043A\u0430 2",children:(0,e.jsx)(t.$n,{icon:"pencil-alt",disabled:!C,onClick:function(){return p("setmsg2")},children:x.line_2})})]})})})},_=function(h){var g=(0,s.Oc)(),p=g.act,j=g.data,x=j.authhead,C=j.current_message_title,I=j.current_message,P=j.messages,M;if(C)M=(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.wn,{title:C,buttons:(0,e.jsx)(t.$n,{icon:"times",disabled:!x,onClick:function(){return p("messagelist")},children:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043A \u0441\u043F\u0438\u0441\u043A\u0443 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0439"}),children:(0,e.jsx)(t.az,{children:I})})});else{var B=P.map(function(w){return(0,e.jsxs)(t.Ki.Item,{label:w.title,children:[(0,e.jsx)(t.$n,{icon:"eye",disabled:!x||C===w.title,onClick:function(){return p("messagelist",{msgid:w.id})},children:"\u041F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0435\u0442\u044C"}),(0,e.jsx)(t.$n.Confirm,{icon:"times",disabled:!x,onClick:function(){return p("delmessage",{msgid:w.id})},children:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C"})]},w.id)});M=(0,e.jsx)(t.wn,{title:"\u0421\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435 \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E",buttons:(0,e.jsx)(t.$n,{icon:"arrow-circle-left",onClick:function(){return p("main")},children:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u0432 \u041E\u0441\u043D\u043E\u0432\u043D\u043E\u0435 \u043C\u0435\u043D\u044E"}),children:(0,e.jsx)(t.Ki,{children:B})})}return(0,e.jsx)(t.az,{children:M})},l=function(h){var g=(0,s.Oc)(),p=g.act,j=g.data,x=h.levels,C=h.required_access,I=h.use_confirm,P=j.security_level;return I?x.map(function(M){return(0,e.jsx)(t.$n.Confirm,{icon:M.icon,disabled:!C||M.id===P,tooltip:M.tooltip,onClick:function(){return p("newalertlevel",{level:M.id})},children:M.name},M.name)}):x.map(function(M){return(0,e.jsx)(t.$n,{icon:M.icon,disabled:!C||M.id===P,tooltip:M.tooltip,onClick:function(){return p("newalertlevel",{level:M.id})},children:M.name},M.name)})},c=function(h){var g=(0,s.Oc)(),p=g.act,j=g.data,x=j.is_admin;if(!x)return p("main"),null;var C=(0,n.useState)(""),I=C[0],P=C[1],M=(0,n.useState)(""),B=M[0],w=M[1],T=(0,n.useState)(!1),K=T[0],R=T[1],U=(0,n.useState)("Beep"),F=U[0],$=U[1];return(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.wn,{title:"\u041E\u043F\u043E\u0432\u0435\u0449\u0435\u043D\u0438\u0435 \u0426\u041A",height:30,buttons:(0,e.jsx)(t.$n,{icon:"arrow-circle-left",onClick:function(){return p("main")},children:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u0432 \u041E\u0441\u043D\u043E\u0432\u043D\u043E\u0435 \u043C\u0435\u043D\u044E"}),children:(0,e.jsxs)(t.BJ,{vertical:!0,fill:!0,children:[(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.pd,{placeholder:"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A \u0442\u0443\u0442.",fluid:!0,value:I,onChange:P,mb:"5px"})}),(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.fs,{placeholder:"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0442\u0435\u043A\u0441\u0442 \u043E\u0431\u044A\u044F\u0432\u043B\u0435\u043D\u0438\u044F. \u041C\u043D\u043E\u0433\u043E\u0441\u0442\u0440\u043E\u0447\u043D\u044B\u0439 \u0432\u0432\u043E\u0434 \u043F\u0440\u0438\u043D\u0438\u043C\u0430\u0435\u0442\u0441\u044F.",fluid:!0,height:18,value:B,onChange:w})}),(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.$n.Checkbox,{checked:K,fluid:!0,m:"5px",tooltip:K?"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u043D\u0430 \u043A\u043E\u043D\u0441\u043E\u043B\u0438 \u0441\u0432\u044F\u0437\u0438 \u0441\u0442\u0430\u043D\u0446\u0438\u0438":"\u041F\u0443\u0431\u043B\u0438\u0447\u043D\u043E \u043E\u0431\u044A\u044F\u0432\u0438\u0442\u044C",onClick:function(){return R(!K)},children:"\u0417\u0430\u0441\u0435\u043A\u0440\u0435\u0447\u0435\u043D\u043E"})}),(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.$n.Confirm,{fluid:!0,icon:"paper-plane",mt:"5px",textAlign:"center",align:"center",onClick:function(){return p("make_cc_announcement",{subtitle:I,text:B,classified:K,beepsound:F})},children:"\u0421\u0434\u0435\u043B\u0430\u0442\u044C \u043E\u0431\u044A\u044F\u0432\u043B\u0435\u043D\u0438\u0435"})})]})})})}},3354:(q,S,r)=>{"use strict";r.r(S),r.d(S,{TankDispenser:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(O){var b=(0,s.Oc)(),y=b.act,u=b.data,f=u.o_tanks,m=u.p_tanks;return(0,e.jsx)(t.p8,{width:275,height:100,children:(0,e.jsxs)(t.p8.Content,{children:[(0,e.jsx)(n.az,{m:"5px",children:(0,e.jsx)(n.$n,{disabled:f===0,icon:"arrow-circle-down",onClick:function(){return y("oxygen")},children:"Dispense Oxygen Tank ("+f+")"})}),(0,e.jsx)(n.az,{m:"5px",children:(0,e.jsx)(n.$n,{disabled:m===0,icon:"arrow-circle-down",onClick:function(){return y("plasma")},children:"Dispense Plasma Tank ("+m+")"})})]})})}},3366:(q,S,r)=>{"use strict";r.r(S),r.d(S,{ItemPixelShift:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(O){var b=(0,s.Oc)(),y=b.act,u=b.data,f=u.pixel_x,m=u.pixel_y,d=u.max_shift_x,v=u.max_shift_y,_=u.random_drop_on;return(0,e.jsx)(t.p8,{width:250,height:160,children:(0,e.jsxs)(t.p8.Content,{children:[(0,e.jsx)(n.wn,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"X-coordinates",children:[(0,e.jsx)(n.$n,{icon:"arrow-left",tooltip:"Shifts item leftwards.",disabled:f===-d,onClick:function(){return y("shift_left")}}),(0,e.jsx)(n.Q7,{animated:!0,lineHeight:1.7,width:"75px",unit:"pixels",stepPixelSize:6,step:1,value:f,minValue:-d,maxValue:d,onChange:function(l){return y("custom_x",{pixel_x:l})}}),(0,e.jsx)(n.$n,{icon:"arrow-right",tooltip:"Shifts item rightwards.",disabled:f===d,onClick:function(){return y("shift_right")}})]}),(0,e.jsxs)(n.Ki.Item,{label:"Y-coordinates",children:[(0,e.jsx)(n.$n,{icon:"arrow-up",tooltip:"Shifts item upwards.",disabled:m===v,onClick:function(){return y("shift_up")}}),(0,e.jsx)(n.Q7,{animated:!0,lineHeight:1.7,width:"75px",unit:"pixels",stepPixelSize:6,step:1,value:m,minValue:-v,maxValue:v,onChange:function(l){return y("custom_y",{pixel_y:l})}}),(0,e.jsx)(n.$n,{icon:"arrow-down",tooltip:"Shifts item downwards.",disabled:m===-v,onClick:function(){return y("shift_down")}})]})]})}),(0,e.jsx)(n.wn,{children:(0,e.jsxs)(n.xA,{children:[(0,e.jsx)(n.xA.Column,{children:(0,e.jsx)(n.$n,{fluid:!0,color:"brown",icon:"arrow-up",tooltip:"Tries to place an item on top of the others.",onClick:function(){return y("move_to_top")},children:"Move to Top"})}),(0,e.jsx)(n.xA.Column,{children:(0,e.jsx)(n.$n,{fluid:!0,color:_?"good":"bad",icon:"power-off",tooltip:"Enables/Disables item pixel randomization on any drops.",onClick:function(){return y("toggle")},children:_?"Shift Enabled":"Shift Disabled"})})]})})]})})}},3384:(q,S,r)=>{"use strict";r.r(S),r.d(S,{Loader:()=>t});var e=r(1131),s=r(9818),n=r(5180),t=function(a){var O=a.value;return(0,e.jsx)("div",{className:"AlertModal__Loader",children:(0,e.jsx)(n.az,{className:"AlertModal__LoaderProgress",style:{width:(0,s.J$)(O)*100+"%"}})})}},3393:(q,S,r)=>{"use strict";r.r(S),r.d(S,{PrisonerImplantManager:()=>u});var e=r(1131),s=r(360),n=r(5180),t=r(5818),a=r(538),O=r(1530),b=r(9298),y=r(3521),u=function(f){var m=(0,s.Oc)(),d=m.act,v=m.data,_=v.loginState,l=v.prisonerInfo,c=v.chemicalInfo,h=v.trackingInfo;if(!_.logged_in)return(0,e.jsx)(y.p8,{theme:"security",width:500,height:850,children:(0,e.jsx)(y.p8.Content,{children:(0,e.jsx)(b.LoginScreen,{})})});var g=[1,5,10];return(0,e.jsxs)(y.p8,{theme:"security",width:500,height:850,children:[(0,e.jsx)(a.ComplexModal,{}),(0,e.jsx)(y.p8.Content,{children:(0,e.jsxs)(n.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(O.LoginInfo,{}),(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(n.wn,{fill:!0,scrollable:!0,title:"Prisoner Points Manager System",children:(0,e.jsxs)(t.K,{children:[(0,e.jsx)(t.K.Item,{label:"Prisoner",children:(0,e.jsx)(n.$n,{icon:l.name?"eject":"id-card",selected:!!l.name,tooltip:l.name?"Eject ID":"Insert ID",onClick:function(){return d("id_card")},children:l.name?l.name:"-----"})}),(0,e.jsxs)(t.K.Item,{label:"Points",children:[l.points!==null?l.points:"-/-",(0,e.jsx)(n.$n,{ml:2,icon:"minus-square",disabled:l.points===null,onClick:function(){return d("reset_points")},children:"Reset"})]}),(0,e.jsxs)(t.K.Item,{label:"Point Goal",children:[l.goal!==null?l.goal:"-/-",(0,e.jsx)(n.$n,{ml:2,icon:"pen",disabled:l.goal===null,onClick:function(){return(0,a.modalOpen)("set_points")},children:"Edit"})]}),(0,e.jsx)(t.K.Item,{children:!!l.goal&&(0,e.jsxs)(n.az,{children:["1 minute of prison time should roughly equate to 150 points.",(0,e.jsx)("br",{}),(0,e.jsx)("br",{}),"Sentences should not exceed 5000 points.",(0,e.jsx)("br",{}),(0,e.jsx)("br",{}),"Permanent prisoners should not be given a point goal.",(0,e.jsx)("br",{}),(0,e.jsx)("br",{}),"Prisoners who meet their point goal will be able to automatically access their locker and return to the station using the shuttle."]})})]})})}),(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(n.wn,{fill:!0,scrollable:!0,title:"Tracking Implants",children:h.map(function(p){return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(n.az,{p:1,backgroundColor:"rgba(255, 255, 255, 0.05)",children:[(0,e.jsxs)(n.az,{bold:!0,children:["Subject: ",p.subject]}),(0,e.jsxs)(n.az,{children:[" ",(0,e.jsx)("br",{}),(0,e.jsxs)(t.K,{children:[(0,e.jsx)(t.K.Item,{label:"Location",children:p.location}),(0,e.jsx)(t.K.Item,{label:"Health",children:p.health}),(0,e.jsx)(t.K.Item,{label:"Prisoner",children:(0,e.jsx)(n.$n,{icon:"exclamation-triangle",tooltip:"Broadcast a message to this poor sod",onClick:function(){return(0,a.modalOpen)("warn",{uid:p.uid})},children:"Warn"})})]})]},p.subject)]}),(0,e.jsx)("br",{})]})})})}),(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(n.wn,{fill:!0,scrollable:!0,title:"Chemical Implants",children:c.map(function(p){return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(n.az,{p:1,backgroundColor:"rgba(255, 255, 255, 0.05)",children:[(0,e.jsxs)(n.az,{bold:!0,children:["Subject: ",p.name]}),(0,e.jsxs)(n.az,{children:[" ",(0,e.jsx)("br",{}),(0,e.jsx)(t.K,{children:(0,e.jsx)(t.K.Item,{label:"Remaining Reagents",children:p.volume})}),g.map(function(j){return(0,e.jsx)(n.$n,{mt:2,disabled:p.volume{"use strict";r.r(S),r.d(S,{Pacman:()=>O});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=r(8477),O=function(b){var y=(0,s.Oc)(),u=y.act,f=y.data,m=f.broken,d=f.anchored,v=f.active,_=f.fuel_type,l=f.fuel_usage,c=f.fuel_stored,h=f.fuel_cap,g=f.is_ai,p=f.tmp_current,j=f.tmp_max,x=f.tmp_overheat,C=f.output_max,I=f.power_gen,P=f.output_set,M=f.has_fuel,B=c/h,w=p/j,T=P*I,K=Math.round(c/l),R=Math.round(K/60),U=K>120?""+R+" minutes":""+K+" seconds";return(0,e.jsx)(t.p8,{width:500,height:260,children:(0,e.jsxs)(t.p8.Content,{children:[(m||!d)&&(0,e.jsxs)(n.wn,{title:"Status",children:[!!m&&(0,e.jsx)(n.az,{color:"orange",children:"The generator is malfunctioning!"}),!m&&!d&&(0,e.jsx)(n.az,{color:"orange",children:"The generator needs to be anchored to the floor with a wrench."})]}),!m&&!!d&&(0,e.jsxs)("div",{children:[(0,e.jsx)(n.wn,{title:"Status",buttons:(0,e.jsx)(n.$n,{icon:v?"power-off":"times",tooltip:"Toggles the generator on/off. Requires fuel.",tooltipPosition:"left",disabled:!M,selected:v,onClick:function(){return u("toggle_power")},children:v?"On":"Off"}),children:(0,e.jsxs)(n.so,{direction:"row",children:[(0,e.jsx)(n.so.Item,{width:"50%",className:"ml-1",children:(0,e.jsx)(n.Ki,{children:(0,e.jsxs)(n.Ki.Item,{label:"Power setting",children:[(0,e.jsx)(n.Q7,{value:P,minValue:1,maxValue:C,step:1,className:"mt-1",onDrag:function(F){return u("change_power",{change_power:F})}}),"(",(0,a.d5)(T),")"]})})}),(0,e.jsx)(n.so.Item,{width:"50%",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Temperature",children:(0,e.jsxs)(n.z2,{value:w,ranges:{green:[-1/0,.33],orange:[.33,.66],red:[.66,1/0]},children:[p," \u2103"]})}),(0,e.jsxs)(n.Ki.Item,{label:"Status",children:[x>50&&(0,e.jsx)(n.az,{color:"red",children:"CRITICAL OVERHEAT!"}),x>20&&x<=50&&(0,e.jsx)(n.az,{color:"orange",children:"WARNING: Overheating!"}),x>1&&x<=20&&(0,e.jsx)(n.az,{color:"orange",children:"Temperature High"}),x===0&&(0,e.jsx)(n.az,{color:"green",children:"Optimal"})]})]})})]})}),(0,e.jsx)(n.wn,{title:"Fuel",buttons:(0,e.jsx)(n.$n,{icon:"eject",tooltip:"Ejects fuel. Generator needs to be offline.",tooltipPosition:"left",disabled:v||g||!M,onClick:function(){return u("eject_fuel")},children:"Eject Fuel"}),children:(0,e.jsxs)(n.xA,{children:[(0,e.jsx)(n.xA.Column,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Type",children:_}),(0,e.jsx)(n.Ki.Item,{label:"Fuel level",children:(0,e.jsxs)(n.z2,{value:B,ranges:{red:[-1/0,.33],orange:[.33,.66],green:[.66,1/0]},children:[Math.round(c/1e3)," dm\xB3"]})})]})}),(0,e.jsx)(n.xA.Column,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Fuel usage",children:[l/1e3," dm\xB3/s"]}),(0,e.jsxs)(n.Ki.Item,{label:"Fuel depletion",children:[!!M&&(l?U:"N/A"),!M&&(0,e.jsx)(n.az,{color:"red",children:"Out of fuel"})]})]})})]})})]})]})})}},3500:(q,S,r)=>{"use strict";r.r(S),r.d(S,{useCompact:()=>s,useTab:()=>n});var e=r(7003),s=function(){return(0,e.useState)(!1)},n=function(){return(0,e.useState)(1)}},3513:(q,S,r)=>{"use strict";r.r(S),r.d(S,{ReagentsEditor:()=>f});var e=r(1131),s=r(7003),n=r(360),t=r(5180),a=r(3521),O=r(9845);function b(){return b=Object.assign||function(v){for(var _=1;_{"use strict";r.r(S),r.d(S,{LatheSearch:()=>t});var e=r(1131),s=r(360),n=r(5180),t=function(a){var O=(0,s.Oc)().act;return(0,e.jsx)(n.az,{children:(0,e.jsx)(n.pd,{placeholder:"\u041F\u043E\u0438\u0441\u043A...",onEnter:function(b){return O("search",{to_search:b})}})})}},3521:(q,S,r)=>{"use strict";r.d(S,{p8:()=>T});var e=r(1131),s=r(7003),n=r(7921),t=r(185),a=r(8222);/** + */var s=function(_,l){return _+l},n=function(_,l){return _-l},t=function(_,l){return _*l},a=function(_,l){return _/l},b=function(){for(var _=arguments.length,l=new Array(_),c=0;c<_;c++)l[c]=arguments[c];return(0,e.Tj)(e.yU.apply(void 0,[].concat(l)),function(h){return(0,e.TS)(h,s)})},O=function(){for(var _=arguments.length,l=new Array(_),c=0;c<_;c++)l[c]=arguments[c];return(0,e.Tj)(e.yU.apply(void 0,[].concat(l)),function(h){return(0,e.TS)(h,n)})},y=function(){for(var _=arguments.length,l=new Array(_),c=0;c<_;c++)l[c]=arguments[c];return(0,e.Tj)(e.yU.apply(void 0,[].concat(l)),function(h){return(0,e.TS)(h,t)})},u=function(){for(var _=arguments.length,l=new Array(_),c=0;c<_;c++)l[c]=arguments[c];return map(zip.apply(void 0,[].concat(l)),function(h){return reduce(h,a)})},f=function(_,l){return(0,e.Tj)(_,function(c){return c*l})},m=function(_){return map(_,function(l){return-l})},d=function(_){return Math.sqrt(reduce(y(_,_),s))},v=function(_){var l=d(_);return map(_,function(c){return c/l})}},2905:(q,S,r)=>{"use strict";r.r(S),r.d(S,{CurrentLevels:()=>e.CurrentLevels,DataDiskMenu:()=>s.DataDiskMenu,DeconstructionMenu:()=>n.DeconstructionMenu,LatheCategory:()=>t.LatheCategory,LatheChemicalStorage:()=>a.LatheChemicalStorage,LatheMainMenu:()=>b.LatheMainMenu,LatheMaterialStorage:()=>y.LatheMaterialStorage,LatheMaterials:()=>O.LatheMaterials,LatheMenu:()=>u.LatheMenu,LatheSearch:()=>f.LatheSearch,MainMenu:()=>m.MainMenu,RndNavButton:()=>v.RndNavButton,RndNavbar:()=>d.RndNavbar,RndRoute:()=>_.RndRoute,SettingsMenu:()=>l.SettingsMenu});var e=r(5471),s=r(4623),n=r(4722),t=r(2983),a=r(6012),b=r(2301),O=r(2265),y=r(5141),u=r(726),f=r(3515),m=r(4515),d=r(91),v=r(4138),_=r(1746),l=r(6159)},2907:(q,S,r)=>{"use strict";r.r(S),r.d(S,{MechBayConsole:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(b){var O=(0,s.Oc)(),y=O.act,u=O.data,f=u.recharge_port,m=f&&f.mech,d=m&&m.cell,v=m&&m.name;return(0,e.jsx)(t.p8,{width:400,height:150,children:(0,e.jsx)(t.p8.Content,{children:(0,e.jsx)(n.wn,{title:v?"Mech status: "+v:"Mech status",textAlign:"center",buttons:(0,e.jsx)(n.$n,{icon:"sync",onClick:function(){return y("reconnect")},children:"Sync"}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Integrity",children:!f&&(0,e.jsx)(n.IC,{children:"No power port detected. Please re-sync."})||!m&&(0,e.jsx)(n.IC,{children:"No mech detected."})||(0,e.jsx)(n.z2,{value:m.health/m.maxhealth,ranges:{good:[.7,1/0],average:[.3,.7],bad:[-1/0,.3]}})}),(0,e.jsx)(n.Ki.Item,{label:"Power",children:!f&&(0,e.jsx)(n.IC,{children:"No power port detected. Please re-sync."})||!m&&(0,e.jsx)(n.IC,{children:"No mech detected."})||!d&&(0,e.jsx)(n.IC,{children:"No cell is installed."})||(0,e.jsxs)(n.z2,{value:d.charge/d.maxcharge,ranges:{good:[.7,1/0],average:[.3,.7],bad:[-1/0,.3]},children:[(0,e.jsx)(n.zv,{value:d.charge})," / "+d.maxcharge]})})]})})})})}},2919:(q,S,r)=>{"use strict";r.r(S),r.d(S,{RitualMenu:()=>b});var e=r(1131),s=r(7003),n=r(360),t=r(5180),a=r(3521),b=function(O){var y=(0,n.Oc)(),u=y.act,f=y.data,m=(0,s.useState)("#3c3c3c"),d=m[0],v=m[1],_=f.rituals,l=f.selected_ritual,c=f.description,h=f.params,g=f.things,p=f.ritual_available,j=f.time_left,x=(0,s.useState)(l),C=x[0],I=x[1];return(0,e.jsx)(a.p8,{width:550,height:600,children:(0,e.jsxs)(t.BJ,{vertical:!0,fill:!0,m:"15px",children:[(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.az,{backgroundColor:"#3c3c3c",p:"12px",color:"white",style:{color:"white",borderRadius:"10px",fontWeight:"bold"},children:(0,e.jsxs)(t.BJ,{vertical:!0,children:[(0,e.jsx)(t.BJ.Item,{style:{marginBottom:"2px"},children:"\u0412\u044B\u0431\u043E\u0440 \u0440\u0438\u0442\u0443\u0430\u043B\u0430"}),(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.ms,{width:"100%",noChevron:!0,options:_,selected:C||"\u0420\u0438\u0442\u0443\u0430\u043B \u043D\u0435 \u0432\u044B\u0431\u0440\u0430\u043D",mt:1,onSelected:function(P){I(P),u("select_ritual",{selected_ritual:P})},style:{color:"white",border:"1px solid #444",backgroundColor:"#2a2a2a",borderRadius:"5px"}})})]})})}),l?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.BJ.Item,{children:(0,e.jsxs)(t.BJ,{fill:!0,m:"20px 0",children:[(0,e.jsx)(t.BJ.Item,{width:"55%",children:(0,e.jsx)(t.az,{textAlign:"center",fontWeight:"bold",p:"8px",backgroundColor:"#3a3a3a",style:{color:"white",borderRadius:"6px 6px 0 0",borderBottom:"2px solid #888",fontWeight:"bold"},children:"\u0421\u0432\u043E\u0439\u0441\u0442\u0432\u0430:"})}),(0,e.jsx)(t.BJ.Item,{width:"45%",children:(0,e.jsx)(t.az,{textAlign:"center",p:"8px",color:"#ffffff",backgroundColor:"#3a3a3a",style:{color:"white",borderRadius:"6px 6px 0 0",borderBottom:"2px solid #888",fontWeight:"bold"},children:"\u0420\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442:"})})]})}),(0,e.jsx)(t.BJ.Item,{children:(0,e.jsxs)(t.BJ,{fill:!0,m:"12px 0",children:[(0,e.jsx)(t.BJ.Item,{width:"55%",children:(0,e.jsxs)(t.az,{backgroundColor:"#3c3c3c",p:"12px",color:"white",style:{color:"white",borderRadius:"8px",boxShadow:"inset 0 0 8px #000"},children:[h?Object.entries(h).map(function(P){var M=P[0],B=P[1];return(0,e.jsxs)("span",{children:[M," ",(0,e.jsx)("b",{children:" "+B}),(0,e.jsx)("br",{})]},M)}):"",(0,e.jsx)("br",{}),"\u0421\u043F\u0438\u0441\u043E\u043A \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u044B\u0445 \u043F\u0440\u0435\u0434\u043C\u0435\u0442\u043E\u0432:",(0,e.jsx)("ul",{style:{marginLeft:"15px"},children:g?Object.entries(g).map(function(P){var M=P[0],B=P[1];return(0,e.jsxs)("li",{children:[M," ",(0,e.jsx)("b",{children:" "+B}),(0,e.jsx)("br",{})]},M)}):""})]})}),(0,e.jsx)(t.BJ.Item,{width:"45%",children:(0,e.jsx)(t.az,{backgroundColor:"#3c3c3c",p:"12px",color:"white",style:{color:"white",borderRadius:"8px",boxShadow:"inset 0 0 8px #000"},children:c})})]})}),(0,e.jsx)(t.BJ.Item,{align:"center",mt:"auto",children:(0,e.jsx)(t.$n,{mb:"1.8em",width:"40em",backgroundColor:d,style:{color:"white",border:"1px solid #555",padding:"10px 20px",borderRadius:"10px",cursor:"pointer",fontWeight:"bold",textAlign:"center"},disabled:!p,onMouseOver:function(P){return v("#555")},onMouseLeave:function(P){return v("#3c3c3c")},onClick:function(){I(null),u("start_ritual")},children:p?"\u0417\u0430\u043F\u0443\u0441\u043A \u0440\u0438\u0442\u0443\u0430\u043B\u0430":"\u041D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u043E ("+j+"\u0441)"})})]}):(0,e.jsx)(t.BJ.Item,{width:"100%",height:"70%",children:(0,e.jsx)(t.az,{width:"100%",height:"100%",style:{display:"flex",justifyContent:"center",alignItems:"center",fontSize:"2em",fontWeight:"bold"},children:"\u0420\u0438\u0442\u0443\u0430\u043B \u043D\u0435 \u0432\u044B\u0431\u0440\u0430\u043D"})})]})})}},2924:(q,S,r)=>{"use strict";r.r(S),r.d(S,{AdditionGoalsConsole:()=>b});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=r(538),b=function(m){var d=(0,s.Oc)(),v=d.act,_=d.data,l;return _.state===10?l=(0,e.jsx)(u,{}):_.state===11||_.state===20||_.state===21?l=(0,e.jsx)(f,{}):l=(0,e.jsx)(n.az,{children:(0,e.jsx)("h3",{children:"\u041D\u0435\u0442 \u0434\u0430\u043D\u043D\u044B\u0445!"})}),(0,e.jsx)(t.p8,{width:600,height:800,children:(0,e.jsxs)(t.p8.Content,{children:[(0,e.jsx)(a.ComplexModal,{}),(0,e.jsxs)(n.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(y,{})}),(0,e.jsx)(n.BJ.Item,{grow:!0,children:l})]})]})})},O=function(m){return m===10?"\u041D\u0435\u0442 \u0442\u0435\u043A\u0443\u0449\u0435\u0439 \u0446\u0435\u043B\u0438.":m===11?"\u0428\u0430\u0442\u0442\u043B \u0432 \u043F\u0443\u0442\u0438.":m===20?"\u0426\u0435\u043B\u044C \u0432 \u043F\u0440\u043E\u0446\u0435\u0441\u0441\u0435 \u0432\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u044F.":m===21?"\u0417\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u0438\u0435 \u0446\u0435\u043B\u0438.":"\u0414\u043E\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u044C\u043D\u044B\u0435 \u0446\u0435\u043B\u0438 \u0441\u043C\u0435\u043D\u044B \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u044B."},y=function(m){var d=(0,s.Oc)(),v=d.act,_=d.data;return(0,e.jsx)(n.wn,{title:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",children:(0,e.jsx)(n.az,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",children:O(_.state)}),(0,e.jsx)(n.Ki.Item,{label:"\u0428\u0430\u0442\u0442\u043B",children:_.shuttle_loc})]})})})},u=function(m){var d=(0,s.Oc)(),v=d.act,_=d.data,l=_.available_goals;return(0,e.jsx)(n.wn,{title:"\u0414\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0435 \u0434\u043E\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u044C\u043D\u044B\u0435 \u0446\u0435\u043B\u0438",buttons:(0,e.jsx)(n.$n,{icon:"refresh",color:_.refresh_available?"green":"grey",onClick:function(){return v("refresh_available_goals")},children:"\u041E\u0431\u043D\u043E\u0432\u0438\u0442\u044C \u0441\u043F\u0438\u0441\u043E\u043A"}),children:(0,e.jsx)(n.az,{children:(0,e.jsx)(n.Ki,{children:l.map(function(c){return(0,e.jsx)(n.Ki.Item,{label:c.name,children:(0,e.jsx)(n.$n,{icon:"plus",color:"green",align:"center",onClick:function(){return v("accept_goal",{goal:c.id})},children:"\u0412\u0437\u044F\u0442\u044C \u0432 \u0440\u0430\u0431\u043E\u0442\u0443"})},c.name)})})})})},f=function(m){var d=(0,s.Oc)(),v=d.act,_=d.data,l=_.current_goal;return(0,e.jsx)(n.wn,{title:"\u0422\u0435\u043A\u0443\u0449\u0430\u044F \u0434\u043E\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u044C\u043D\u0430\u044F \u0446\u0435\u043B\u044C \u0441\u043C\u0435\u043D\u044B",children:(0,e.jsxs)(n.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(n.BJ.Item,{children:(0,e.jsxs)(n.az,{children:[(0,e.jsx)("b",{children:"\u0418\u0434\u0435\u043D\u0442\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440:"})," ",l.id]})}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsxs)(n.az,{children:[(0,e.jsx)("b",{children:"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435:"})," ",l.name]})}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.$n,{icon:"check",color:_.state===20?"green":"grey",width:"180px",align:"center",fontSize:"12px",onClick:function(){return v("complete_goal")},children:"\u0417\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044C \u0446\u0435\u043B\u044C"})})]})})}},2934:(q,S,r)=>{"use strict";function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(s){console.error(s)}}e(),q.exports=r(2338)},2938:(q,S,r)=>{"use strict";r.r(S),r.d(S,{pai_messenger:()=>a});var e=r(1131),s=r(360),n=r(5286);function t(){return t=Object.assign||function(b){for(var O=1;O{"use strict";r.r(S),r.d(S,{AutoDoc:()=>b});var e=r(1131),s=r(7003),n=r(360),t=r(5180),a=r(3521),b=function(O){var y=(0,n.Oc)(),u=y.act,f=y.data,m=f.HasTray,d=f.TguiIcons,v=f.occupant,_=f.isHealing,l=f.fixtimer,c=f.healtimer,h=(0,s.useState)("chest"),g=h[0],p=h[1];return(0,e.jsx)(a.p8,{theme:"ntOS95",children:(0,e.jsx)(a.p8.Content,{children:(0,e.jsxs)(t.so,{width:"100%",children:[(0,e.jsxs)(t.so.Item,{basis:"30%",children:[(0,e.jsx)(t._V,{height:"256px",width:"256px",src:"data:image/jpeg;base64,"+d.human,fixBlur:!0,style:{position:"absolute"}}),(0,e.jsx)(t._V,{height:"256px",width:"256px",src:"data:image/jpeg;base64,"+d[g],fixBlur:!0,style:{position:"absolute"}})]}),(0,e.jsx)(t.so.Item,{basis:"70%",children:(0,e.jsx)(t.wn,{title:"Info",buttons:(0,e.jsxs)(e.Fragment,{children:[Object.keys(d).map(function(j){return j!=="human"&&(0,e.jsx)(t.$n,{selected:j===g,onClick:function(){return p(j)},children:j},j)}),(0,e.jsx)(t.$n,{style:{marginLeft:"30px"},disabled:_,onClick:function(){return u("ChangeTrayState")},children:m?"Eject Tray":"Reject Tray"})]}),children:(0,e.jsxs)(t.az,{children:[!!(v[g]&&v[g].extOrgan)&&v[g].extOrgan.map(function(j){return(0,e.jsxs)(s.Fragment,{children:[(0,e.jsx)("b",{children:j.name}),(0,e.jsx)("br",{}),j.open?"opened":"",j.broken?"broken":"",!!j.broken&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{style:{marginLeft:"30px"},disabled:_,onClick:function(){return u("FixOrgan",{organ:j.name,type:"fracture"})},children:"Fix"}),(0,e.jsx)("br",{})]}),j.internalBleeding?"bleeding":"",!!j.internalBleeding&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{style:{marginLeft:"30px"},disabled:_,onClick:function(){return u("FixOrgan",{organ:j.name,type:"bleeding"})},children:"Fix"}),(0,e.jsx)("br",{})]}),"Internals:",(0,e.jsx)(t.$n,{style:{marginLeft:"10px"},disabled:_,onClick:function(){return u("FixOrgan",{organ:j.name,type:"completeInternal"})},children:"Complete"}),(0,e.jsx)("br",{}),j.dead?"dead":"",!!j.dead&&(0,e.jsx)("br",{}),j.germ_level?"Germ level is "+j.germ_level:"",!!j.germ_level&&(0,e.jsx)("br",{}),j.totalLoss?"Total damage is "+j.totalLoss:"",(0,e.jsx)("br",{})]},j.name)}),!!(v[g]&&v[g].intOrgan)&&v[g].intOrgan.map(function(j){return(0,e.jsxs)(s.Fragment,{children:[(0,e.jsx)("b",{children:j.name}),(0,e.jsx)(t.$n,{style:{marginLeft:"1.5rem"},disabled:_,onClick:function(){return u("FixOrgan",{organ:j.name,type:"remove"})},children:"Remove"}),(0,e.jsx)("br",{}),j.dead?"dead":"",!!j.dead&&(0,e.jsx)("br",{}),j.germ_level?"Germ level is "+j.germ_level:"",!!j.germ_level&&(0,e.jsx)("br",{}),j.totalLoss?"Total damage is "+j.damage:"",!!j.totalLoss&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{style:{marginLeft:"30px"},disabled:_,onClick:function(){return u("FixOrgan",{organ:j.name,type:"damage"})},children:"Heal"}),(0,e.jsx)("br",{})]})]},j.name)}),!!v.TotalBruteBurn&&(0,e.jsxs)(e.Fragment,{children:["Total external damage is ",v.TotalBruteBurn,(0,e.jsx)(t.$n,{style:{marginLeft:"30px"},onClick:function(){return u("HealBruteBurn")},children:"Start Healing"}),(0,e.jsx)(t.$n,{style:{marginLeft:"30px"},onClick:function(){return u("CompleteExternal")},children:"Reattach externals"})]}),(0,e.jsx)("br",{}),!!l&&(0,e.jsxs)("b",{children:["Fixing organ: ",l]}),!!c&&(0,e.jsxs)("b",{children:["Healing external damage: ",c]})]})})})]})})})}},2983:(q,S,r)=>{"use strict";r.r(S),r.d(S,{LatheCategory:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(2905),a=function(b){var O=(0,s.Oc)(),y=O.data,u=O.act,f=y.category,m=y.matching_designs,d=y.menu,v=d===4,_=v?"build":"imprint";return(0,e.jsxs)(n.wn,{title:f,children:[(0,e.jsx)(t.LatheMaterials,{}),(0,e.jsx)(n.XI,{className:"RndConsole__LatheCategory__MatchingDesigns",children:m.map(function(l){var c=l.id,h=l.name,g=l.desc,p=l.icon,j=l.icon_state,x=l.can_build,C=l.materials;return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:(0,e.jsx)(n.Hg,{icon:p,icon_state:j,style:{verticalAlign:"middle",width:"48px",margin:"0px",marginLeft:"0px"}})}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{icon:"print",disabled:x<1,tooltip:g,onClick:function(){return u(_,{id:c,amount:1})},children:h})}),(0,e.jsx)(n.XI.Cell,{children:x>=5?(0,e.jsx)(n.$n,{onClick:function(){return u(_,{id:c,amount:5})},children:"x5"}):null}),(0,e.jsx)(n.XI.Cell,{children:x>=10?(0,e.jsx)(n.$n,{onClick:function(){return u(_,{id:c,amount:10})},children:"x10"}):null}),(0,e.jsx)(n.XI.Cell,{children:C.map(function(I){var P=I.name,M=I.amount,B=I.is_red;return(0,e.jsxs)(e.Fragment,{children:[" | ",(0,e.jsxs)("span",{className:B?"color-red":null,children:[M," ",P]})]})})})]},c)})})]})}},3046:(q,S,r)=>{"use strict";r.r(S),r.d(S,{Multitool:()=>y});var e=r(1131),s=r(9818),n=r(360),t=r(5180),a=r(3521);function b(){return b=Object.assign||function(C){for(var I=1;I=0)&&(P[B]=C[B]);return P}var y=function(C){var I=(0,n.Oc)(),P=I.act,M=I.data,B=M.multitoolMenuId,w=M.buffer,T=M.bufferName,K=M.bufferTag,R=M.canBufferHaveTag,U=M.isAttachedAlreadyInBuffer,F=M.attachedName,$=B!=="default_no_machine",W=function(N){switch(N){case"default_no_machine":return(0,e.jsx)(_,{});case"no_options":return(0,e.jsx)(_,{});case"access_denied":return(0,e.jsx)(l,{});case"tag_only":return(0,e.jsx)(c,{});case"multiple_tags":return(0,e.jsx)(g,{});case"frequency_and_tag":return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(h,{}),(0,e.jsx)(c,{})]});case"air_sensor":return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(h,{}),(0,e.jsx)(c,{}),(0,e.jsx)(p,{})]});case"general_air_control":return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(h,{}),(0,e.jsx)(j,{})]});case"large_tank_control":return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(h,{}),(0,e.jsx)(x,{}),(0,e.jsx)(j,{})]});default:return"WE SHOULDN'T BE HERE!"}};return(0,e.jsx)(a.p8,{width:510,height:420,children:(0,e.jsx)(a.p8.Content,{children:(0,e.jsxs)(t.so,{direction:"column",height:"100%",children:[(0,e.jsx)(t.so.Item,{style:{overflowX:"hidden",overflowY:"auto"},grow:1,shrink:1,basis:0,children:(0,e.jsxs)(t.wn,{title:"Configuration menu",py:.3,children:[(0,e.jsx)(u,{iconName:"tools",machineName:F,noMachine:B==="default_no_machine",noMachineText:"No machine attached"}),W(B)]})}),(0,e.jsx)(t.so.Item,{grow:0,shrink:0,children:(0,e.jsx)(t.cG,{})}),(0,e.jsx)(t.so.Item,{grow:0,shrink:0,children:(0,e.jsxs)(t.wn,{title:"Multitool buffer",mb:.9,py:.3,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"save",disabled:!$||U,onClick:function(){return P("buffer_add")},children:U?"Added":"Add machine"}),(0,e.jsx)(t.$n,{mr:1,icon:"times-circle",color:"red",disabled:!w,onClick:function(){return P("buffer_flush")},children:"Flush"})]}),children:[(0,e.jsx)(u,{iconName:"tools",machineName:T,noMachine:!w,noMachineElem:(0,e.jsx)(f,{text:""})}),!!w&&(0,e.jsx)(v,{mt:1.1,label:"ID tag",compactLabel:!0,wrapContent:R?(0,e.jsx)(m,{text:K,defaultText:"",color:"silver"}):(0,e.jsx)(t.az,{as:"span",fontSize:"0.9rem",color:"red",italic:!0,nowrap:!0,children:"Not supported"})})]})})]})})})},u=function(C){var I=C.iconName,P=C.machineName,M=C.noMachine,B=C.noMachineText,w=C.noMachineElem,T="Unknown machine",K=M?B:P||"Unknown machine",R=K===B,U=K===B||K===T;return M&&w?w:(0,e.jsxs)(t.so,{mt:.1,mb:1.9,children:[!M&&(0,e.jsx)(t.so.Item,{grow:0,shrink:0,align:"center",children:(0,e.jsx)(t.In,{mr:1,size:1.1,name:I})}),(0,e.jsx)(t.so.Item,{grow:1,shrink:1,basis:0,wordWrap:"break-word",children:(0,e.jsx)(t.az,{as:"span",color:R?"label":"silver",fontSize:"1.1rem",bold:!0,italic:U,style:{wordWrap:"break-word"},children:K})})]})},f=function(C){var I=C.text;return(0,e.jsx)(t.az,{as:"span",fontSize:"0.9rem",color:"yellow",italic:!0,nowrap:!0,children:I})},m=function(C){var I=C.text,P=C.defaultText,M=O(C,["text","defaultText"]);return I?(0,e.jsx)(t.az,b({as:"span",style:{wordWrap:"break-word"}},M,{children:I})):(0,e.jsx)(f,{text:P})},d=function(C){var I=C.noConfirm,P=I===void 0?!1:I,M=O(C,["noConfirm"]);return P?(0,e.jsx)(t.$n,b({},M)):(0,e.jsx)(t.$n.Confirm,b({},M))},v=function(C){var I=C.label,P=C.wrapContent,M=C.noWrapContent,B=C.compactLabel,w=B===void 0?!1:B,T=O(C,["label","wrapContent","noWrapContent","compactLabel"]);return(0,e.jsxs)(t.so,b({my:.5,mr:"0.5%",spacing:1,align:"center"},T,{children:[(0,e.jsx)(t.so.Item,{grow:w?0:1,shrink:0,textOverflow:"ellipsis",overflow:"hidden",basis:w?"auto":0,maxWidth:w?"none":20,color:"label",nowrap:!0,children:I}),(0,e.jsx)(t.so.Item,{grow:1,shrink:1,basis:0,textAlign:"center",wordWrap:"break-word",children:P}),(0,e.jsx)(t.so.Item,{grow:.1}),(0,e.jsx)(t.so.Item,{grow:0,shrink:0,nowrap:!0,children:M})]}))},_=function(C){return(0,e.jsx)(t.az,{mt:1.5,fontSize:"0.9rem",color:"silver",italic:!0,children:"No options"})},l=function(C){return(0,e.jsx)(t.az,{fontSize:"1.1rem",color:"red",bold:!0,italic:!0,children:"ACCESS DENIED"})},c=function(C){var I=(0,n.Oc)(),P=I.act,M=I.data,B=M.attachedTag;return(0,e.jsx)(v,{label:"ID tag",wrapContent:(0,e.jsx)(m,{text:B,defaultText:"",color:"silver"}),noWrapContent:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"wrench",onClick:function(){return P("set_tag")},children:"Set"}),(0,e.jsx)(t.$n,{icon:"times-circle",color:"red",disabled:!B,onClick:function(){return P("clear_tag")},children:"Clear"})]})})},h=function(C){var I=(0,n.Oc)(),P=I.act,M=I.data,B=M.frequency,w=M.minFrequency,T=M.maxFrequency,K=M.canReset;return(0,e.jsx)(v,{label:"Frequency",noWrapContent:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.Q7,{animated:!0,unit:"kHz",step:.1,stepPixelSize:10,minValue:w/10,maxValue:T/10,value:B/10,format:function(R){return(0,s.Mg)(R,1)},onChange:function(R){return P("set_frequency",{frequency:R*10})}}),(0,e.jsx)(t.$n,{icon:"undo",disabled:!K,tooltip:"Reset",onClick:function(){return P("reset_frequency")}})]})})},g=function(C){var I=(0,n.Oc)(),P=I.act,M=I.data,B=M.attachedTags;return(0,e.jsx)(t.wn,{mt:1.7,ml:.5,mr:1,px:.5,title:"Linked tags",buttons:(0,e.jsx)(t.$n,{mr:1,pl:2.1,icon:"plus",iconPosition:"right",onClick:function(){return P("add_tag")},children:"Add tag"}),children:B.map(function(w,T){return(0,e.jsx)(v,{mr:0,label:(0,e.jsx)(t.In,{name:"wave-square"}),compactLabel:!0,wrapContent:(0,e.jsx)(t.so,{align:"center",spacing:1,children:(0,e.jsx)(t.so.Item,{grow:1,shrink:1,basis:0,color:"silver",wordWrap:"break-word",children:w})}),noWrapContent:(0,e.jsx)(t.so,{children:(0,e.jsx)(t.so.Item,{grow:0,shrink:0,children:(0,e.jsx)(t.$n,{icon:"minus",color:"red",onClick:function(){return P("remove_tag",{tag_index:T})}})})})},T)})})},p=function(C){var I=(0,n.Oc)(),P=I.act,M=I.data,B=M.bolts,w=M.pressureCheck,T=M.temperatureCheck,K=M.oxygenCheck,R=M.toxinsCheck,U=M.nitrogenCheck,F=M.carbonDioxideCheck,$=M.nitrousOxideCheck,W=M.hydrogenCheck,N=M.waterVaporCheck,Z=[{bitflag:1,checked:w,label:"Monitor pressure"},{bitflag:2,checked:T,label:"Monitor temperature"},{bitflag:4,checked:K,label:"Monitor oxygen concentration"},{bitflag:8,checked:R,label:"Monitor plasma concentration"},{bitflag:16,checked:U,label:"Monitor nitrogen concentration"},{bitflag:32,checked:F,label:"Monitor carbon dioxide concentration"},{bitflag:64,checked:$,label:"Monitor carbon nitrous oxide concentration"},{bitflag:128,checked:W,label:"Monitor carbon hydrogen concentration"},{bitflag:256,checked:N,label:"Monitor carbon water vapor concentration"}];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(v,{label:"Floor bolts",noWrapContent:(0,e.jsx)(t.$n,{icon:B?"check":"times",selected:B,onClick:function(){return P("toggle_bolts")},children:B?"YES":"NO"})}),Z.map(function(ie){return(0,e.jsx)(v,{label:ie.label,noWrapContent:(0,e.jsx)(t.$n.Checkbox,{checked:ie.checked,onClick:function(){return P("toggle_flag",{bitflag:ie.bitflag})}})},ie.bitflag)})]})},j=function(C){var I=(0,n.Oc)(),P=I.act,M=I.data,B=M.sensors;return(0,e.jsxs)(t.wn,{mt:1.7,ml:.5,mr:1,px:.5,title:"Sensors",buttons:(0,e.jsx)(t.$n,{mr:1,pl:2.1,icon:"plus",iconPosition:"right",onClick:function(){return P("add_sensor")},children:"Add sensor"}),children:[(0,e.jsx)(v,{mr:0,compactLabel:!0,wrapContent:(0,e.jsxs)(t.so,{children:[(0,e.jsx)(t.so.Item,{width:1}),(0,e.jsx)(t.so.Item,{grow:1,shrink:1,basis:0,color:"label",nowrap:!0,bold:!0,children:"ID tag"}),(0,e.jsx)(t.so.Item,{grow:1,shrink:1,basis:0,color:"label",nowrap:!0,bold:!0,children:"Label"}),(0,e.jsx)(t.so.Item,{width:11.3})]})}),Object.keys(B).map(function(w){return(0,e.jsx)(v,{mr:0,label:(0,e.jsx)(t.In,{name:"wave-square"}),compactLabel:!0,wrapContent:(0,e.jsxs)(t.so,{align:"center",spacing:1,children:[(0,e.jsx)(t.so.Item,{grow:1,shrink:1,basis:0,color:"silver",wordWrap:"break-word",children:w}),B[w]?(0,e.jsx)(t.so.Item,{grow:1,shrink:1,basis:0,color:"silver",wordWrap:"break-word",children:B[w]}):(0,e.jsx)(t.so.Item,{grow:1,shrink:1,basis:0,fontSize:"0.9rem",color:"yellow",italic:!0,nowrap:!0,children:""})]}),noWrapContent:(0,e.jsxs)(t.so,{children:[(0,e.jsxs)(t.so.Item,{grow:0,shrink:0,children:[(0,e.jsx)(t.$n,{icon:"edit",onClick:function(){return P("change_label",{sensor_tag:w})},children:"Label"}),(0,e.jsx)(t.$n,{icon:"times-circle",color:"orange",disabled:!B[w],onClick:function(){return P("clear_label",{sensor_tag:w})},children:"Label"})]}),(0,e.jsx)(t.so.Item,{width:.5}),(0,e.jsx)(t.so.Item,{grow:0,shrink:0,children:(0,e.jsx)(t.$n,{px:1.2,icon:"minus",color:"red",onClick:function(){return P("del_sensor",{sensor_tag:w})}})})]})},w)})]})},x=function(C){var I=(0,n.Oc)(),P=I.act,M=I.data,B=M.inputTag,w=M.outputTag,T=M.bufferTag,K=M.bufferFitsInput,R=M.bufferFitsOutput,U=M.doNotLinkAndNotify;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(v,{label:"Input",wrapContent:(0,e.jsx)(m,{text:B,defaultText:"",color:"silver"}),noWrapContent:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(d,{noConfirm:U||!B,confirmContent:"This will change the intput device. Confirm?",confirmColor:"orange",content:"Link buffer",icon:"link",selected:B&&T===B,disabled:!K,onClick:function(){return P("link_input")}}),(0,e.jsx)(t.$n.Confirm,{confirmContent:"This will unlink the intput device. Confirm?",confirmColor:"orange",icon:"unlink",color:"red",disabled:!B,onClick:function(){return P("unlink_input")},children:"Unlink"})]})}),(0,e.jsx)(v,{label:"Output",wrapContent:(0,e.jsx)(m,{text:w,defaultText:"",color:"silver"}),noWrapContent:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(d,{noConfirm:U||!w,confirmContent:"This will change the output device. Confirm?",confirmColor:"orange",content:"Link buffer",icon:"link",selected:w&&T===w,disabled:!R,onClick:function(){return P("link_output")}}),(0,e.jsx)(t.$n.Confirm,{confirmContent:"This will unlink the output device. Confirm?",confirmColor:"orange",icon:"unlink",color:"red",disabled:!w,onClick:function(){return P("unlink_output")},children:"Unlink"})]})})]})}},3062:q=>{function S(b,O){return O!=null&&typeof Symbol<"u"&&O[Symbol.hasInstance]?!!O[Symbol.hasInstance](b):b instanceof O}function r(b){"@swc/helpers - typeof";return b&&typeof Symbol<"u"&&b.constructor===Symbol?"symbol":typeof b}var e=typeof Element<"u",s=typeof Map=="function",n=typeof Set=="function",t=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function a(b,O){if(b===O)return!0;if(b&&O&&(typeof b>"u"?"undefined":r(b))=="object"&&(typeof O>"u"?"undefined":r(O))=="object"){if(b.constructor!==O.constructor)return!1;var y,u,f;if(Array.isArray(b)){if(y=b.length,y!=O.length)return!1;for(u=y;u--!==0;)if(!a(b[u],O[u]))return!1;return!0}var m;if(s&&S(b,Map)&&S(O,Map)){if(b.size!==O.size)return!1;for(m=b.entries();!(u=m.next()).done;)if(!O.has(u.value[0]))return!1;for(m=b.entries();!(u=m.next()).done;)if(!a(u.value[1],O.get(u.value[0])))return!1;return!0}if(n&&S(b,Set)&&S(O,Set)){if(b.size!==O.size)return!1;for(m=b.entries();!(u=m.next()).done;)if(!O.has(u.value[0]))return!1;return!0}if(t&&ArrayBuffer.isView(b)&&ArrayBuffer.isView(O)){if(y=b.length,y!=O.length)return!1;for(u=y;u--!==0;)if(b[u]!==O[u])return!1;return!0}if(b.constructor===RegExp)return b.source===O.source&&b.flags===O.flags;if(b.valueOf!==Object.prototype.valueOf&&typeof b.valueOf=="function"&&typeof O.valueOf=="function")return b.valueOf()===O.valueOf();if(b.toString!==Object.prototype.toString&&typeof b.toString=="function"&&typeof O.toString=="function")return b.toString()===O.toString();if(f=Object.keys(b),y=f.length,y!==Object.keys(O).length)return!1;for(u=y;u--!==0;)if(!Object.prototype.hasOwnProperty.call(O,f[u]))return!1;if(e&&S(b,Element))return!1;for(u=y;u--!==0;)if(!((f[u]==="_owner"||f[u]==="__v"||f[u]==="__o")&&b.$$typeof)&&!a(b[f[u]],O[f[u]]))return!1;return!0}return b!==b&&O!==O}q.exports=function(O,y){try{return a(O,y)}catch(u){if((u.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw u}}},3082:(q,S,r)=>{"use strict";r.r(S),r.d(S,{SubsystemViews:()=>O});var e=r(1131),s=r(7003),n=r(5180),t=r(360),a=r(2335),b=r(4776),O=function(y){var u=(0,t.Oc)().data,f=u.subsystems,m=y.filterOpts,d=y.setSelected,v=m.ascending,_=m.inactive,l=m.query,c=m.smallValues,h=m.sortType,g=a.SORTING_TYPES[h],p=g.propName,j=g.inDeciseconds,x=(0,s.useState)(j),C=x[0],I=x[1],P=f.filter(function(R){var U=R.name.toLowerCase().includes(l?.toLowerCase());return _&&(R.doesnt_fire||!R.can_fire)||c&&R[p]<1?!1:U}).sort(function(R,U){return v?R[p]>U[p]?1:-1:U[p]>R[p]?1:-1}),M=[],B=0;if(j){for(var w,T=0;T{"use strict";r.r(S),r.d(S,{Mortar:()=>b});var e=r(1131),s=r(7003),n=r(360),t=r(5180),a=r(3521),b=function(O){var y=(0,n.Oc)(),u=y.act,f=y.data,m=f.data_target_x,d=f.data_target_y,v=f.data_target_z,_=f.data_dial_x,l=f.data_dial_y,c=(0,s.useState)(m),h=c[0],g=c[1],p=(0,s.useState)(d),j=p[0],x=p[1],C=(0,s.useState)(v),I=C[0],P=C[1],M=(0,s.useState)(_),B=M[0],w=M[1],T=(0,s.useState)(l),K=T[0],R=T[1];return(0,e.jsx)(a.p8,{width:400,height:300,children:(0,e.jsxs)(a.p8.Content,{children:[(0,e.jsxs)(t.wn,{children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Target X",children:(0,e.jsx)(t.Q7,{animated:!0,width:"4em",step:1,minValue:0,maxValue:255,value:h,onChange:function(U){return g(U)}})}),(0,e.jsx)(t.Ki.Item,{label:"Target Y",children:(0,e.jsx)(t.Q7,{animated:!0,width:"4em",step:1,minValue:0,maxValue:255,value:j,onChange:function(U){return x(U)}})}),(0,e.jsx)(t.Ki.Item,{label:"Target Z",children:(0,e.jsx)(t.Q7,{animated:!0,width:"4em",step:1,minValue:0,maxValue:255,value:I,onChange:function(U){return P(U)}})})]}),(0,e.jsx)(t.$n,{icon:"crosshairs",style:{marginTop:"5px",marginLeft:"10px"},onClick:function(){return u("set_target",{target_x:h,target_y:j,target_z:I})},children:"Set Target"}),(0,e.jsx)(t.$n,{style:{position:"absolute",top:"10px",right:"15px",height:"65px",width:"80px",whiteSpace:"normal",display:"flex",flexWrap:"wrap",justifyContent:"center",flexDirection:"column"},align:"center",verticalAlign:"center",onClick:function(){return u("operate_cam",{camera:1})},children:"View Camera"})]}),(0,e.jsxs)(t.wn,{children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"X Offset",children:(0,e.jsx)(t.Q7,{animated:!0,width:"4em",step:1,stepPixelSize:10,minValue:-10,maxValue:10,value:B,onChange:function(U){return w(U)}})}),(0,e.jsx)(t.Ki.Item,{label:"Y Offset",children:(0,e.jsx)(t.Q7,{animated:!0,width:"4em",step:1,stepPixelSize:10,minValue:-10,maxValue:10,value:K,onChange:function(U){return R(U)}})})]}),(0,e.jsx)(t.$n,{icon:"wrench",style:{marginTop:"5px",marginLeft:"10px"},onClick:function(){return u("set_offset",{dial_x:B,dial_y:K})},children:"Dial Offset"})]})]})})}},3176:(q,S,r)=>{"use strict";r.r(S),r.d(S,{PlayerPanel:()=>u});var e=r(1131),s=r(360),n=r(7003),t=r(5180),a=r(3521);function b(){return b=Object.assign||function(C){for(var I=1;I=0)&&(P[B]=C[B]);return P}var y=function(C,I){var P,M={ghost:["ghost","dead","observer"],human:["human","carbon"],monkey:["monkey"],cyborg:["cyborg","robot","borg"],ai:["ai","artificial intelligence"],animal:["simple","animal"]};return((P=M[I])==null?void 0:P.some(function(B){return C.toLowerCase().includes(B)}))||!1},u=function(C){var I=(0,s.Oc)(),P=I.act,M=I.data,B=function(w,T){T===void 0&&(T={}),P(w,b({selectedPlayerCkey:M.ckey},T))};return(0,e.jsx)(a.p8,{title:"Options Panel - "+M.ckey,width:800,height:950,children:(0,e.jsx)(a.p8.Content,{scrollable:!0,children:(0,e.jsxs)(t.BJ,{vertical:!0,children:[(0,e.jsxs)(t.BJ.Item,{children:[(0,e.jsx)(t.$n,{icon:"sync",onClick:function(){return B("refresh")},children:"Refresh"}),(0,e.jsx)(t.$n,{icon:"sync",onClick:function(){return B("old_pp")},children:"Old Panel"})]}),(0,e.jsx)(f,{}),(0,e.jsx)(m,{})]})})})},f=function(C){var I=(0,s.Oc)(),P=I.act,M=I.data,B=(0,n.useState)(!1),w=B[0],T=B[1],K=(0,n.useState)(!1),R=K[0],U=K[1],F=function($,W){W===void 0&&(W={}),P($,b({selectedPlayerCkey:M.ckey},W))};return(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.wn,{title:"Player Information",children:(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{bold:!0,children:"Character:"}),(0,e.jsx)(t.XI.Cell,{children:M.characterName}),(0,e.jsx)(t.XI.Cell,{bold:!0,children:"Ckey:"}),(0,e.jsx)(t.XI.Cell,{children:M.ckey})]}),(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{bold:!0,children:"Rank:"}),(0,e.jsx)(t.XI.Cell,{children:M.rank}),(0,e.jsx)(t.XI.Cell,{bold:!0,children:"Discord:"}),(0,e.jsx)(t.XI.Cell,{children:M.discord})]}),(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{bold:!0,children:"Account Registered:"}),(0,e.jsx)(t.XI.Cell,{children:M.accountRegistered}),(0,e.jsx)(t.XI.Cell,{bold:!0,children:"Playtime as Crew:"}),(0,e.jsx)(t.XI.Cell,{p:"1px",children:(0,e.jsx)(t.$n,{onClick:function(){return F("playtime")},children:M.playtime})})]}),(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{bold:!0,children:"CID:"}),(0,e.jsx)(t.XI.Cell,{p:"1px",children:(0,e.jsx)(t.$n,{onClick:function(){return U(!R)},children:R?M.CID:"Hidden"})}),(0,e.jsx)(t.XI.Cell,{bold:!0,children:"IP Address:"}),(0,e.jsx)(t.XI.Cell,{p:"1px",children:(0,e.jsx)(t.$n,{onClick:function(){return T(!w)},children:w?M.ipAddress:"Hidden"})})]}),(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{bold:!0,children:"Mob Type:"}),(0,e.jsx)(t.XI.Cell,{children:M.mobType}),(0,e.jsx)(t.XI.Cell,{bold:!0,children:"Byond Version:"}),(0,e.jsx)(t.XI.Cell,{children:M.byondVersion})]}),(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{bold:!0,children:"Related By CID:"}),(0,e.jsx)(t.$n,{color:"blue",onClick:function(){return F("relatedbycid")},children:"Related by CID"}),(0,e.jsx)(t.XI.Cell,{bold:!0,children:"Related By IP:"}),(0,e.jsx)(t.$n,{color:"blue",onClick:function(){return F("relatedbyip")},children:"Related by IP"})]})]})})})},m=function(C){return(0,e.jsxs)(t.BJ.Item,{children:[(0,e.jsxs)(t.xA,{children:[(0,e.jsx)(t.xA.Column,{children:(0,e.jsx)(d,{})}),(0,e.jsx)(t.xA.Column,{children:(0,e.jsx)(v,{})})]}),(0,e.jsxs)(t.xA,{children:[(0,e.jsx)(t.xA.Column,{children:(0,e.jsx)(_,{})}),(0,e.jsx)(t.xA.Column,{children:(0,e.jsx)(l,{})})]}),(0,e.jsxs)(t.xA,{children:[(0,e.jsxs)(t.xA.Column,{children:[(0,e.jsx)(c,{}),(0,e.jsx)(h,{})]}),(0,e.jsxs)(t.xA.Column,{children:[(0,e.jsx)(g,{}),(0,e.jsx)(p,{})]})]}),(0,e.jsx)(t.xA,{children:(0,e.jsx)(t.xA.Column,{children:(0,e.jsx)(j,{})})})]})},d=function(C){var I=(0,s.Oc)(),P=I.act,M=I.data,B=function(K,R){R===void 0&&(R={}),P(K,b({selectedPlayerCkey:M.ckey},R))},w=function(K){return M.adminRights.toLowerCase().includes(K)||!1},T=function(){return M.ckey!=="NO CKEY"};return(0,e.jsx)(t.wn,{title:"Punish",children:(0,e.jsxs)(t.xA,{children:[(0,e.jsxs)(t.xA.Column,{size:6,children:[(0,e.jsx)(t.$n,{fluid:!0,icon:"times",color:"red",tooltip:T?null:"NO CKEY",disabled:!T(),onClick:function(){return B("kick")},children:"KICK"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"ban",color:"red",tooltip:T?null:"NO CKEY",disabled:!w("ban")||!T(),onClick:function(){return B("jobban")},children:"JOBBAN"}),w("admin")?(0,e.jsx)(t.$n,{fluid:!0,icon:"bullseye",color:"red",tooltip:T?null:"NO CKEY",disabled:!T(),onClick:function(){return B("watchlist")},children:"ADD TO WATCHLIST"}):null]}),(0,e.jsxs)(t.xA.Column,{size:6,children:[(0,e.jsx)(t.$n,{fluid:!0,icon:"ban",color:"red",tooltip:T?null:"NO CKEY",disabled:!w("ban")||!T(),onClick:function(){return B("ban")},children:"BAN"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"ban",color:"red",tooltip:T?null:"NO CKEY",disabled:!w("ban")||!T(),onClick:function(){return B("appban")},children:"APPEARANCE BAN"}),w("event")?(0,e.jsx)(t.$n,{fluid:!0,icon:"bolt",color:"red",onClick:function(){return B("smite")},children:"SMITE"}):null,w("event")?(0,e.jsx)(t.$n,{fluid:!0,icon:"hand-holding-heart",onClick:function(){return B("bless")},children:"BLESS"}):null]})]})})},v=function(C){var I=(0,s.Oc)(),P=I.act,M=I.data,B=function(T,K){K===void 0&&(K={}),P(T,b({selectedPlayerCkey:M.ckey},K))},w=function(T){return M.adminRights.toLowerCase().includes(T)||!1};return(0,e.jsx)(t.wn,{title:"Message",children:(0,e.jsxs)(t.xA,{children:[(0,e.jsxs)(t.xA.Column,{size:6,children:[(0,e.jsx)(t.$n,{fluid:!0,icon:"comment",onClick:function(){return B("pm")},children:"PM"}),w("admin")?(0,e.jsx)(t.$n,{fluid:!0,icon:"comment-alt",onClick:function(){return B("narrate")},children:"NARRATE"}):null,w("admin")?(0,e.jsx)(t.$n,{fluid:!0,icon:"user-secret",onClick:function(){return B("sendalert")},children:"SEND ALERT"}):null]}),(0,e.jsxs)(t.xA.Column,{size:6,children:[(0,e.jsx)(t.$n,{fluid:!0,icon:"user-secret",disabled:!w("event"),onClick:function(){return B("sm")},children:"SM"}),w("admin")?(0,e.jsx)(t.$n,{fluid:!0,icon:"crown",onClick:function(){return B("manup")},children:"MAN UP"}):null,w("sound")?(0,e.jsx)(t.$n,{fluid:!0,icon:"music",onClick:function(){return B("playsoundto")},children:"PLAY SOUND TO"}):null]})]})})},_=function(C){var I=(0,s.Oc)(),P=I.act,M=I.data,B=function(T,K){K===void 0&&(K={}),P(T,b({selectedPlayerCkey:M.ckey},K))},w=function(T){return M.adminRights.toLowerCase().includes(T)||!1};return(0,e.jsx)(t.wn,{title:"Movement",children:(0,e.jsxs)(t.xA,{children:[(0,e.jsxs)(t.xA.Column,{size:6,children:[(0,e.jsx)(t.$n,{fluid:!0,icon:"eye",onClick:function(){return B("flw")},children:"FLW"}),w("admin")?(0,e.jsx)(t.$n,{fluid:!0,icon:"download",onClick:function(){return B("get")},children:"GET"}):null,w("admin")?(0,e.jsx)(t.$n,{fluid:!0,icon:"paper-plane",onClick:function(){return B("send")},children:"SEND"}):null]}),(0,e.jsxs)(t.xA.Column,{size:6,children:[(0,e.jsx)(t.$n,{fluid:!0,icon:"running",onClick:function(){return B("jumpto")},children:"JUMPTO"}),w("admin")?(0,e.jsx)(t.$n,{fluid:!0,icon:"sign-out-alt",onClick:function(){return B("lobby")},children:"LOBBY"}):null,w("admin")?(0,e.jsx)(t.$n,{fluid:!0,icon:"columns",onClick:function(){return B("cryo")},children:"SEND TO CRYO"}):null]})]})})},l=function(C){var I=(0,s.Oc)(),P=I.act,M=I.data,B=function(T,K){K===void 0&&(K={}),P(T,b({selectedPlayerCkey:M.ckey},K))},w=function(T){return M.adminRights.toLowerCase().includes(T)||!1};return(0,e.jsx)(t.wn,{title:"Info",children:(0,e.jsxs)(t.xA,{children:[(0,e.jsxs)(t.xA.Column,{size:6,children:[(0,e.jsx)(t.$n,{fluid:!0,icon:"book",onClick:function(){return B("logs")},children:"LOGS"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"clipboard",onClick:function(){return B("notes")},children:"NOTES"}),w("admin")?(0,e.jsx)(t.$n,{fluid:!0,icon:"eye",onClick:function(){return B("playtime")},children:"PLAYTIME"}):null,w("admin")?(0,e.jsx)(t.$n,{fluid:!0,icon:"globe",onClick:function(){return B("geoip")},children:"GEOIP"}):null]}),(0,e.jsxs)(t.xA.Column,{size:6,children:[(0,e.jsx)(t.$n,{fluid:!0,icon:"user-secret",onClick:function(){return B("tp")},children:"TRAITOR PANEL"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"code",onClick:function(){return B("vv")},children:"VV"}),w("admin")?(0,e.jsx)(t.$n,{fluid:!0,icon:"database",onClick:function(){return B("ccdb")},children:"CHECK GLOBAL CCDB"}):null,(0,e.jsx)(t.$n,{fluid:!0,icon:"eye",onClick:function(){return B("obs")},children:"OBS"})]})]})})},c=function(C){var I=(0,s.Oc)(),P=I.act,M=I.data,B=function(T,K){K===void 0&&(K={}),P(T,b({selectedPlayerCkey:M.ckey},K))},w=function(T){return M.adminRights.toLowerCase().includes(T)||!1};return w("spawn")?(0,e.jsx)(t.wn,{title:"Transformation",children:(0,e.jsxs)(t.xA,{children:[(0,e.jsxs)(t.xA.Column,{size:6,children:[(0,e.jsx)(t.$n,{fluid:!0,icon:"ghost",color:y(M.mobType,"ghost")?"good":"",onClick:function(){return B("makeghost")},children:"MAKE GHOST"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"user",color:y(M.mobType,"human")?"good":"",onClick:function(){return B("makehuman")},children:"MAKE HUMAN"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"paw",color:y(M.mobType,"monkey")?"good":"",onClick:function(){return B("makemonkey")},children:"MAKE MONKEY"})]}),(0,e.jsxs)(t.xA.Column,{size:6,children:[(0,e.jsx)(t.$n,{fluid:!0,icon:"robot",color:y(M.mobType,"cyborg")?"good":"",onClick:function(){return B("makeborg")},children:"MAKE CYBORG"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"microchip",color:y(M.mobType,"ai")?"good":"",onClick:function(){return B("makeai")},children:"MAKE AI"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"microchip",color:y(M.mobType,"animal")?"good":"",onClick:function(){return B("makeanimal")},children:"ANIMALIZE"})]})]})}):null},h=function(C){var I=(0,s.Oc)(),P=I.act,M=I.data,B=function(T,K){K===void 0&&(K={}),P(T,b({selectedPlayerCkey:M.ckey},K))},w=function(T){return M.adminRights.toLowerCase().includes(T)||!1};return y(M.mobType,"ghost")?(0,e.jsx)(t.wn,{title:"Observer",children:(0,e.jsxs)(t.xA,{children:[(0,e.jsx)(t.xA.Column,{size:2,children:(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return B("respawnability")},children:"TOGGLE RESPAWNABILITY"})}),(0,e.jsx)(t.xA.Column,{size:2,children:(0,e.jsx)(t.$n,{fluid:!0,icon:"staff-snake",disabled:!w("spawn"),onClick:function(){return B("reviveghost")},children:"RE-INCARNATE"})})]})}):(0,e.jsx)(t.wn,{title:"Health",children:(0,e.jsxs)(t.xA,{children:[(0,e.jsxs)(t.xA.Column,{size:6,children:[(0,e.jsx)(t.$n,{fluid:!0,icon:"heart",onClick:function(){return B("healthscan")},children:"HEALTHSCAN"}),w("admin")?(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return B("giveDisease")},children:"GIVE DISEASE"}):null,w("admin")?(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return B("cureDisease")},children:"CURE DISEASE"}):null,w("admin")?(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return B("cureAllDiseases")},children:"CURE ALL BAD DISEASES"}):null]}),(0,e.jsxs)(t.xA.Column,{size:6,children:[(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return B("chemscan")},children:"CHEMSCAN"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"plus",disabled:!w("rejuvinate"),onClick:function(){return B("aheal")},children:"REJUVINATE"}),w("admin")?(0,e.jsx)(t.$n,{fluid:!0,icon:"dna",onClick:function(){return B("mutate")},children:"SHOW DNA"}):null]})]})})},g=function(C){var I=(0,s.Oc)(),P=I.act,M=I.data,B=function(T,K){K===void 0&&(K={}),P(T,b({selectedPlayerCkey:M.ckey},K))},w=function(T){return M.adminRights.toLowerCase().includes(T)||!1};return w("admin")?(0,e.jsx)(t.wn,{title:"Mob Manipulation",children:(0,e.jsxs)(t.xA,{children:[(0,e.jsxs)(t.xA.Column,{size:6,children:[(0,e.jsx)(t.$n,{fluid:!0,icon:"pencil",onClick:function(){return B("randomizename")},children:"MOB RANDOM NAME"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"shirt",disabled:!w("event"),onClick:function(){return B("selectequip")},children:"SELECT EQUIPMENT"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"microphone",onClick:function(){return B("changevoice")},children:"CHANGE VOICE"}),w("event")?(0,e.jsx)(t.$n,{fluid:!0,icon:"circle-user",onClick:function(){return B("mirroradmin")},children:"MIRROR UI TO ADMIN"}):null]}),(0,e.jsxs)(t.xA.Column,{size:6,children:[(0,e.jsx)(t.$n,{fluid:!0,icon:"pen",onClick:function(){return B("userandomname")},children:"CHARACTER RANDOM NAME"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"eraser",onClick:function(){return B("eraseflavortext")},children:"ERASE FLAVOR"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"shirt",onClick:function(){return B("checkcontents")},children:"CHECK CONTENTS"}),w("event")?(0,e.jsx)(t.$n,{fluid:!0,icon:"circle-user",onClick:function(){return B("mirrorplayer")},children:"MIRROR UI TO PLAYER"}):null]})]})}):null},p=function(C){var I=(0,s.Oc)(),P=I.act,M=I.data,B=function(T,K){K===void 0&&(K={}),P(T,b({selectedPlayerCkey:M.ckey},K))},w=function(T){return M.adminRights.toLowerCase().includes(T)||!1};return(0,e.jsx)(t.wn,{title:"Misc",children:(0,e.jsxs)(t.xA,{children:[(0,e.jsxs)(t.xA.Column,{size:6,children:[w("event")?(0,e.jsx)(t.$n,{fluid:!0,icon:"gavel",onClick:function(){return B("thunderdome1")},children:"THUNDERDOME 1"}):null,w("event")?(0,e.jsx)(t.$n,{fluid:!0,icon:"gavel",onClick:function(){return B("thunderdome2")},children:"THUNDERDOME 2"}):null,w("event")?(0,e.jsx)(t.$n,{fluid:!0,icon:"comment",onClick:function(){return B("forcesay")},children:"FORCESAY"}):null,w("admin")?(0,e.jsx)(t.$n,{fluid:!0,icon:"handcuffs",onClick:function(){return B("prison")},children:"PRISON"}):null,w("admin")?(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return B("contractor_release")},children:"SYNDI JAIL RELEASE"}):null,w("event")||w("admin")?(0,e.jsx)(t.$n,{fluid:!0,icon:"cookie",onClick:function(){return B("spawncookie")},children:"SPAWN COOKIE"}):null]}),(0,e.jsxs)(t.xA.Column,{size:6,children:[w("event")?(0,e.jsx)(t.$n,{fluid:!0,icon:"gavel",onClick:function(){return B("thunderdomeadmin")},children:"THUNDERDOME ADMIN"}):null,w("event")?(0,e.jsx)(t.$n,{fluid:!0,icon:"eye",onClick:function(){return B("thunderdomeobserver")},children:"THUNDERDOME OBSERVER"}):null,w("admin")?(0,e.jsx)(t.$n,{fluid:!0,icon:"wheelchair-move",onClick:function(){return B("adminroom")},children:"AROOM WRAP"}):null,w("admin")?(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return B("contractor_start")},children:"SYNDI JAIL START"}):null,w("admin")?(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return B("contractor_stop")},children:"SYNDI JAIL STOP"}):null,(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return B("someadminbutton")},children:"Some Admin Button"})]})]})})},j=function(C){var I=(0,s.Oc)(),P=I.act,M=I.data,B=function(T,K){K===void 0&&(K={}),P(T,b({selectedPlayerCkey:M.ckey},K))},w=function(T){M.ckey&&B("toggleMute",{type:T})};return(0,e.jsx)(t.wn,{title:"Mute Controls",children:(0,e.jsxs)(t.xA,{children:[(0,e.jsxs)(t.xA.Column,{size:7,children:[(0,e.jsx)(x,{fluid:!0,checked:M.muteStates.ic,onClick:function(){return w("ic")},children:"IC"}),(0,e.jsx)(x,{fluid:!0,checked:M.muteStates.ooc,onClick:function(){return w("ooc")},children:"OOC"}),(0,e.jsx)(x,{fluid:!0,checked:M.muteStates.pray,onClick:function(){return w("pray")},children:"PRAY"}),(0,e.jsx)(x,{fluid:!0,checked:M.muteStates.emote,onClick:function(){return w("emote")},children:"EMOTE"})]}),(0,e.jsxs)(t.xA.Column,{size:6,children:[(0,e.jsx)(x,{fluid:!0,checked:M.muteStates.adminhelp,onClick:function(){return w("adminhelp")},children:"ADMINHELP"}),(0,e.jsx)(x,{fluid:!0,checked:M.muteStates.deadchat,onClick:function(){return w("deadchat")},children:"DEADCHAT"}),(0,e.jsx)(x,{fluid:!0,checked:M.muteStates.all,onClick:function(){return w("all")},children:"ALL"})]})]})})},x=function(C){var I=C.checked,P=O(C,["checked"]);return(0,e.jsx)(t.$n,b({color:I?"red":"green",icon:I?"check-square-o":"square-o"},P))}},3184:(q,S,r)=>{"use strict";r.r(S),r.d(S,{MODsuit:()=>y,MODsuitContent:()=>u});var e=r(1131),s=r(7003),n=r(5180),t=r(8477),a=r(360),b=r(3521);function O(){return O=Object.assign||function(w){for(var T=1;T0})}),(0,e.jsx)(n.XI.Cell,{width:1,children:(0,e.jsx)(n.$n,{onClick:function(){return Z(N===ie.ref?"":ie.ref)},icon:"cog",selected:N===ie.ref,tooltip:"\u041D\u0430\u0441\u0442\u0440\u043E\u0438\u0442\u044C",tooltipPosition:"left",disabled:ie.configuration_data.length===0})}),(0,e.jsx)(n.XI.Cell,{width:1,children:(0,e.jsx)(n.$n,{onClick:function(){return K("pin",{ref:ie.ref})},icon:"thumbtack",selected:ie.pinned,tooltip:"\u0417\u0430\u043A\u0440\u0435\u043F\u0438\u0442\u044C",tooltipPosition:"left",disabled:!ie.module_type})}),(0,e.jsxs)(n.XI.Cell,{children:[(0,e.jsx)(n.Nt,{title:ie.module_name,color:ie.module_active?"green":"default",children:(0,e.jsx)(n.wn,{mr:-19,children:ie.description})}),N===ie.ref&&(0,e.jsx)(p,{configuration_data:ie.configuration_data,module_ref:ie.ref,module_name:ie.module_name})]}),(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:(0,t.QL)(ie.idle_power,0)}),(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:(0,t.QL)(ie.active_power,0)}),(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:(0,t.QL)(ie.use_energy,0)}),(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:ie.module_complexity})]},ie.ref)})]}):(0,e.jsx)(n.IC,{children:"\u041C\u043E\u0434\u0443\u043B\u0438 \u043D\u0435 \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u044B"})})}},3211:(q,S,r)=>{"use strict";r.r(S),r.d(S,{AccessList:()=>u});var e=r(1131),s=r(1859),n=r(7003),t=r(5180);function a(f,m){(m==null||m>f.length)&&(m=f.length);for(var d=0,v=new Array(m);d=f.length?{done:!0}:{done:!1,value:f[v++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var y={0:{icon:"times-circle",color:"bad"},1:{icon:"stop-circle",color:null},2:{icon:"check-circle",color:"good"}},u=function(f){var m,d=f.sectionButtons,v=d===void 0?null:d,_=f.usedByRcd,l=f.rcdButtons,c=f.accesses,h=c===void 0?[]:c,g=f.selectedList,p=g===void 0?[]:g,j=f.grantableList,x=j===void 0?[]:j,C=f.accessMod,I=f.grantAll,P=f.denyAll,M=f.grantDep,B=f.denyDep,w=(0,n.useState)((m=h[0])==null?void 0:m.name),T=w[0],K=w[1],R=h.find(function($){return $.name===T}),U=(0,s.Ul)(R?.accesses||[],function($){return $.desc}),F=function($){for(var W=!1,N=!1,Z=O($),ie;!(ie=Z()).done;){var Q=ie.value;p?.includes(Q.ref)?W=!0:N=!0}return!W&&N?0:W&&N?1:2};return(0,e.jsx)(t.wn,{fill:!0,scrollable:!0,title:"Access",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"check-double",color:"good",onClick:function(){return I()},children:"Select All"}),(0,e.jsx)(t.$n,{icon:"undo",color:"bad",onClick:function(){return P()},children:"Deselect All"}),v]}),children:(0,e.jsxs)(t.BJ,{children:[(0,e.jsx)(t.BJ.Item,{grow:!0,basis:"25%",children:(0,e.jsx)(t.tU,{vertical:!0,children:h.map(function($){var W=$.accesses||[],N=y[F(W)].icon,Z=y[F(W)].color;return!!W.length&&(0,e.jsx)(t.tU.Tab,{color:Z,icon:N,selected:$.name===T,onClick:function(){return K($.name)},children:$.name},$.name)})})}),(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.cG,{vertical:!0})}),(0,e.jsxs)(t.BJ.Item,{grow:!0,basis:"80%",children:[(0,e.jsxs)(t.BJ,{mb:1,children:[(0,e.jsx)(t.BJ.Item,{grow:!0,children:(0,e.jsx)(t.$n,{fluid:!0,icon:"check",color:"good",onClick:function(){return M(R.regid)},children:"Select All In Region"})}),(0,e.jsx)(t.BJ.Item,{grow:!0,children:(0,e.jsx)(t.$n,{fluid:!0,icon:"times",color:"bad",onClick:function(){return B(R.regid)},children:"Deselect All In Region"})})]}),!!_&&(0,e.jsx)(t.az,{my:1.5,children:(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Require",children:l})})}),U.map(function($){return(0,e.jsx)(t.$n.Checkbox,{fluid:!0,disabled:x?.length>0&&!x.includes($.ref)&&!p?.includes($.ref),checked:p?.includes($.ref),onClick:function(){return C($.ref)},children:$.desc},$.desc)})]})]})})}},3255:(q,S,r)=>{"use strict";r.r(S),r.d(S,{Orbit:()=>c});var e=r(1131),s=r(9845),n=r(360),t=r(5180),a=r(3521),b=r(7003);function O(h,g){(g==null||g>h.length)&&(g=h.length);for(var p=0,j=new Array(g);p=h.length?{done:!0}:{done:!1,value:h[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 f=/ \(([0-9]+)\)$/,m=function(h){return(0,s.XZ)(h,function(g){return g.name})},d=function(h,g){return hg?1:0},v=function(h,g){var p=h.name,j=g.name;if(!p||!j)return 0;var x=p.match(f),C=j.match(f);if(x&&C&&p.replace(f,"")===j.replace(f,"")){var I=parseInt(x[1],10),P=parseInt(C[1],10);return I-P}return d(p,j)},_=function(h){var g=(0,n.Oc)().act,p=h.searchText,j=h.source,x=h.title,C=j.filter(m(p));return C.sort(v),j.length>0&&(0,e.jsx)(t.wn,{title:x+" - ("+j.length+")",children:C.map(function(I){return(0,e.jsx)(t.$n,{onClick:function(){return g("orbit",{ref:I.ref})},children:I.name},I.name)})})},l=function(h){var g=(0,n.Oc)().act,p=h.color,j=h.thing;return(0,e.jsx)(t.$n,{color:p,onClick:function(){return g("orbit",{ref:j.ref})},children:j.name})},c=function(h){for(var g=(0,n.Oc)(),p=g.act,j=g.data,x=j.alive,C=j.antagonists,I=j.highlights,P=j.auto_observe,M=j.dead,B=j.ghosts,w=j.misc,T=j.npcs,K=(0,b.useState)(""),R=K[0],U=K[1],F={},$=u(C),W;!(W=$()).done;){var N=W.value;F[N.antag]===void 0&&(F[N.antag]=[]),F[N.antag].push(N)}var Z=Object.entries(F);Z.sort(function(Q,V){return d(Q[0],V[0])});var ie=function(Q){for(var V=0,G=[Z.map(function(de){var me=de[0],pe=de[1];return pe[me]}),I,x,B,M,T,w];V0&&(0,e.jsx)(t.wn,{title:"Antagonists",children:Z.map(function(Q){var V=Q[0],G=Q[1];return(0,e.jsx)(t.wn,{title:V,children:G.filter(m(R)).sort(v).map(function(le){return(0,e.jsx)(l,{color:"bad",thing:le},le.name)})},V)})}),I.length>0&&(0,e.jsx)(_,{title:"Highlights",source:I,searchText:R,color:"teal"}),(0,e.jsx)(t.wn,{title:"Alive - ("+x.length+")",children:x.filter(m(R)).sort(v).map(function(Q){return(0,e.jsx)(l,{color:"good",thing:Q},Q.name)})}),(0,e.jsx)(t.wn,{title:"Ghosts - ("+B.length+")",children:B.filter(m(R)).sort(v).map(function(Q){return(0,e.jsx)(l,{color:"grey",thing:Q},Q.name)})}),(0,e.jsx)(_,{title:"Dead",source:M,searchText:R}),(0,e.jsx)(_,{title:"NPCs",source:T,searchText:R}),(0,e.jsx)(_,{title:"Misc",source:w,searchText:R})]})})}},3261:(q,S,r)=>{"use strict";r.r(S),r.d(S,{CrewManifest:()=>m});var e=r(1131),s=r(360),n=r(5180),t=r(9845),a=r(9357),b=a.lm.department,O=["Captain","Head of Security","Chief Engineer","Chief Medical Officer","Research Director","Head of Personnel","Quartermaster"],y=function(d){return O.indexOf(d)!==-1?"green":"orange"},u=function(d){if(O.indexOf(d)!==-1)return!0},f=function(d){return d.length>0&&(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{header:!0,color:"white",children:[(0,e.jsx)(n.XI.Cell,{width:"50%",children:"Name"}),(0,e.jsx)(n.XI.Cell,{width:"35%",children:"Rank"}),(0,e.jsx)(n.XI.Cell,{width:"15%",children:"Active"})]}),d.map(function(v){return(0,e.jsxs)(n.XI.Row,{color:y(v.real_rank),bold:u(v.real_rank),children:[(0,e.jsx)(n.XI.Cell,{children:(0,t.jT)(v.name)}),(0,e.jsx)(n.XI.Cell,{children:(0,t.jT)(v.rank)}),(0,e.jsx)(n.XI.Cell,{children:v.active})]},v.name+v.rank)})]})},m=function(d){var v=d?.manifest?d.manifest:(0,s.Oc)().data.manifest,_=v.heads,l=v.pro,c=v.sec,h=v.eng,g=v.med,p=v.sci,j=v.ser,x=v.sup,C=v.misc;return(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.wn,{title:(0,e.jsx)(n.az,{backgroundColor:b.command,m:-1,pt:1,pb:1,children:(0,e.jsx)(n.az,{ml:1,textAlign:"center",fontSize:1.4,children:"Command"})}),children:f(_)}),(0,e.jsx)(n.wn,{title:(0,e.jsx)(n.az,{backgroundColor:b.procedure,m:-1,pt:1,pb:1,children:(0,e.jsx)(n.az,{ml:1,textAlign:"center",fontSize:1.4,children:"Procedure"})}),children:f(l)}),(0,e.jsx)(n.wn,{title:(0,e.jsx)(n.az,{backgroundColor:b.security,m:-1,pt:1,pb:1,children:(0,e.jsx)(n.az,{ml:1,textAlign:"center",fontSize:1.4,children:"Security"})}),children:f(c)}),(0,e.jsx)(n.wn,{title:(0,e.jsx)(n.az,{backgroundColor:b.engineering,m:-1,pt:1,pb:1,children:(0,e.jsx)(n.az,{ml:1,textAlign:"center",fontSize:1.4,children:"Engineering"})}),children:f(h)}),(0,e.jsx)(n.wn,{title:(0,e.jsx)(n.az,{backgroundColor:b.medical,m:-1,pt:1,pb:1,children:(0,e.jsx)(n.az,{ml:1,textAlign:"center",fontSize:1.4,children:"Medical"})}),children:f(g)}),(0,e.jsx)(n.wn,{title:(0,e.jsx)(n.az,{backgroundColor:b.science,m:-1,pt:1,pb:1,children:(0,e.jsx)(n.az,{ml:1,textAlign:"center",fontSize:1.4,children:"Science"})}),children:f(p)}),(0,e.jsx)(n.wn,{title:(0,e.jsx)(n.az,{backgroundColor:b.service,m:-1,pt:1,pb:1,children:(0,e.jsx)(n.az,{ml:1,textAlign:"center",fontSize:1.4,children:"Service"})}),children:f(j)}),(0,e.jsx)(n.wn,{title:(0,e.jsx)(n.az,{backgroundColor:b.supply,m:-1,pt:1,pb:1,children:(0,e.jsx)(n.az,{ml:1,textAlign:"center",fontSize:1.4,children:"Supply"})}),children:f(x)}),(0,e.jsx)(n.wn,{title:(0,e.jsx)(n.az,{m:-1,pt:1,pb:1,children:(0,e.jsx)(n.az,{ml:1,textAlign:"center",fontSize:1.4,children:"Misc"})}),children:f(C)})]})}},3263:(q,S,r)=>{"use strict";r.r(S),r.d(S,{CommunicationsComputer:()=>y});var e=r(1131),s=r(360),n=r(7003),t=r(5180),a=r(3521),b={1:function(){return(0,e.jsx)(f,{})},2:function(){return(0,e.jsx)(v,{})},3:function(){return(0,e.jsx)(t.BJ.Item,{grow:!0,children:(0,e.jsx)(t.wn,{fill:!0,children:(0,e.jsx)(_,{})})})},4:function(){return(0,e.jsx)(c,{})},default:function(){return"\u041E\u0448\u0438\u0431\u043A\u0430. \u041D\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E\u0435 menu_state. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0441\u0432\u044F\u0436\u0438\u0442\u0435\u0441\u044C \u0441 \u0422\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u041F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u043E\u0439 NT."}},O=function(h){return b[h]},y=function(h){var g=(0,s.Oc)().data,p=g.menu_state;return(0,e.jsx)(a.p8,{width:500,height:600,title:"\u041A\u043E\u043D\u0441\u043E\u043B\u044C \u0441\u0432\u044F\u0437\u0438",children:(0,e.jsx)(a.p8.Content,{scrollable:!0,children:(0,e.jsxs)(t.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(u,{}),O(p)()]})})})},u=function(h){var g=(0,s.Oc)(),p=g.act,j=g.data,x=j.authenticated,C=j.noauthbutton,I=j.esc_section,P=j.esc_callable,M=j.esc_recallable,B=j.esc_status,w=j.authhead,T=j.is_ai,K=j.lastCallLoc,R=!1,U;return x?x===1?U="\u041A\u043E\u043C\u0430\u043D\u0434\u043E\u0432\u0430\u043D\u0438\u0435":x===2?U="\u041A\u0430\u043F\u0438\u0442\u0430\u043D":x===3?U="\u041E\u0444\u0438\u0446\u0435\u0440 \u0426\u0435\u043D\u0442\u0440\u0430\u043B\u044C\u043D\u043E\u0433\u043E \u041A\u043E\u043C\u0430\u043D\u0434\u043E\u0432\u0430\u043D\u0438\u044F":x===4?(U="\u0417\u0430\u0449\u0438\u0449\u0451\u043D\u043D\u044B\u0439 \u043A\u0430\u043D\u0430\u043B \u0426\u0435\u043D\u0442\u041A\u043E\u043C\u0430",R=!0):U="\u041E\u0428\u0418\u0411\u041A\u0410: \u0421\u043E\u043E\u0431\u0449\u0438\u0442\u0435 \u043E\u0431 \u044D\u0442\u043E\u043C \u0431\u0430\u0433\u0435!":U="\u0412\u0445\u043E\u0434 \u043D\u0435 \u0432\u044B\u043F\u043E\u043B\u043D\u0435\u043D",(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.wn,{title:"\u0410\u0443\u0442\u0435\u043D\u0442\u0438\u0444\u0438\u043A\u0430\u0446\u0438\u044F",children:(0,e.jsx)(t.Ki,{children:R&&(0,e.jsx)(t.Ki.Item,{label:"\u0414\u043E\u0441\u0442\u0443\u043F",children:U})||(0,e.jsx)(t.Ki.Item,{label:"\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u044F",children:(0,e.jsx)(t.$n,{icon:x?"sign-out-alt":"id-card",selected:x,disabled:C,onClick:function(){return p("auth")},children:x?"\u0412\u044B\u0439\u0442\u0438 ("+U+")":"\u0412\u043E\u0439\u0442\u0438"})})})})}),(0,e.jsx)(t.BJ.Item,{children:!!I&&(0,e.jsx)(t.wn,{fill:!0,title:"\u042D\u0432\u0430\u043A\u0443\u0430\u0446\u0438\u043E\u043D\u043D\u044B\u0439 \u0448\u0430\u0442\u0442\u043B",children:(0,e.jsxs)(t.Ki,{children:[!!B&&(0,e.jsx)(t.Ki.Item,{label:"\u0421\u0442\u0430\u0442\u0443\u0441",children:B}),!!P&&(0,e.jsx)(t.Ki.Item,{label:"\u041E\u043F\u0446\u0438\u0438",children:(0,e.jsx)(t.$n,{icon:"rocket",disabled:!w,onClick:function(){return p("callshuttle")},children:"\u0412\u044B\u0437\u0432\u0430\u0442\u044C \u0448\u0430\u0442\u0442\u043B"})}),!!M&&(0,e.jsx)(t.Ki.Item,{label:"\u041E\u043F\u0446\u0438\u0438",children:(0,e.jsx)(t.$n,{icon:"times",disabled:!w||T,onClick:function(){return p("cancelshuttle")},children:"\u041E\u0442\u043E\u0437\u0432\u0430\u0442\u044C \u0448\u0430\u0442\u0442\u043B"})}),!!K&&(0,e.jsx)(t.Ki.Item,{label:"\u041F\u043E\u0441\u043B\u0435\u0434\u043D\u0438\u0439 \u0432\u044B\u0437\u043E\u0432/\u043E\u0442\u0437\u044B\u0432 \u0438\u0437",children:K})]})})})]})},f=function(h){var g=(0,s.Oc)().data,p=g.is_admin;return p?(0,e.jsx)(m,{}):(0,e.jsx)(d,{})},m=function(h){var g=(0,s.Oc)(),p=g.act,j=g.data,x=j.is_admin,C=j.gamma_armory_location,I=j.admin_levels,P=j.authenticated,M=j.ert_allowed;return(0,e.jsxs)(t.BJ.Item,{children:[(0,e.jsx)(t.wn,{title:'\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u044F \u0443\u0440\u043E\u0432\u043D\u044F \u0434\u043E\u0441\u0442\u0443\u043F\u0430 "\u041E\u0444\u0438\u0446\u0435\u0440 \u0426\u0435\u043D\u0442\u0440\u0430\u043B\u044C\u043D\u043E\u0433\u043E \u041A\u043E\u043C\u0430\u043D\u0434\u043E\u0432\u0430\u043D\u0438\u044F"',children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"\u0421\u043C\u0435\u043D\u0438\u0442\u044C \u0443\u0440\u043E\u0432\u0435\u043D\u044C \u0443\u0433\u0440\u043E\u0437\u044B",children:(0,e.jsx)(l,{levels:I,required_access:x,use_confirm:!0})}),(0,e.jsxs)(t.Ki.Item,{label:"\u041E\u043F\u043E\u0432\u0435\u0449\u0435\u043D\u0438\u0435",children:[(0,e.jsx)(t.$n,{icon:"bullhorn",disabled:!x,onClick:function(){return p("send_to_cc_announcement_page")},children:"\u0421\u0434\u0435\u043B\u0430\u0442\u044C \u043E\u043F\u043E\u0432\u0435\u0449\u0435\u043D\u0438\u0435 \u0426\u041A"}),P===4&&(0,e.jsx)(t.$n,{icon:"plus",disabled:!x,onClick:function(){return p("make_other_announcement")},children:"\u0421\u0434\u0435\u043B\u0430\u0442\u044C \u0434\u0440\u0443\u0433\u043E\u0435 \u043E\u043F\u043E\u0432\u0435\u0449\u0435\u043D\u0438\u0435"})]}),(0,e.jsxs)(t.Ki.Item,{label:"\u041E\u0411\u0420",children:[(0,e.jsx)(t.$n,{icon:"ambulance",disabled:!x,onClick:function(){return p("dispatch_ert")},children:"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u041E\u0411\u0420"}),(0,e.jsx)(t.$n.Checkbox,{checked:M,tooltip:M?"\u041A\u043E\u043C\u0430\u043D\u0434\u043E\u0432\u0430\u043D\u0438\u0435 \u043C\u043E\u0436\u0435\u0442 \u0437\u0430\u043F\u0440\u043E\u0441\u0438\u0442\u044C \u041E\u0411\u0420":"\u041E\u0411\u0420 \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u0431\u044B\u0442\u044C \u0437\u0430\u043F\u0440\u043E\u0448\u0435\u043D",disabled:!x,onClick:function(){return p("toggle_ert_allowed")},selected:null,children:M?"\u0412\u044B\u0437\u043E\u0432 \u041E\u0411\u0420 \u0440\u0430\u0437\u0440\u0435\u0448\u0451\u043D":"\u0412\u044B\u0437\u043E\u0432 \u041E\u0411\u0420 \u0437\u0430\u043F\u0440\u0435\u0449\u0451\u043D"})]}),(0,e.jsx)(t.Ki.Item,{label:"\u042F\u0434\u0435\u0440\u043D\u0430\u044F \u0431\u043E\u0435\u0433\u043E\u043B\u043E\u0432\u043A\u0430",children:(0,e.jsx)(t.$n.Confirm,{icon:"bomb",disabled:!x,onClick:function(){return p("send_nuke_codes")},children:"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u043A\u043E\u0434\u044B \u0430\u0443\u0442\u0435\u043D\u0442\u0438\u0444\u0438\u043A\u0430\u0446\u0438\u0438"})}),(0,e.jsx)(t.Ki.Item,{label:'\u041E\u0440\u0443\u0436\u0435\u0439\u043D\u044B\u0439 \u0448\u0430\u0442\u0442\u043B "\u0413\u0430\u043C\u043C\u0430"',children:(0,e.jsx)(t.$n.Confirm,{icon:"biohazard",disabled:!x,onClick:function(){return p("move_gamma_armory")},children:C?'\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u043E\u0440\u0443\u0436\u0435\u0439\u043D\u044B\u0439 \u0448\u0430\u0442\u0442\u043B "\u0413\u0430\u043C\u043C\u0430"':'\u041E\u0442\u043E\u0437\u0432\u0430\u0442\u044C \u043E\u0440\u0443\u0436\u0435\u0439\u043D\u044B\u0439 \u0448\u0430\u0442\u0442\u043B "\u0413\u0430\u043C\u043C\u0430"'})}),(0,e.jsx)(t.Ki.Item,{label:"\u0414\u0440\u0443\u0433\u043E\u0435",children:(0,e.jsx)(t.$n,{icon:"fax",disabled:!x,onClick:function(){return p("view_fax")},children:"\u0424\u0430\u043A\u0441-\u043C\u0435\u043D\u0435\u0434\u0436\u0435\u0440"})})]})}),(0,e.jsx)(t.Nt,{title:"\u041F\u0440\u043E\u0441\u043C\u043E\u0442\u0440 \u0434\u0435\u0439\u0441\u0442\u0438\u0439, \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0445 \u0434\u043B\u044F \u043A\u043E\u043C\u0430\u043D\u0434\u043E\u0432\u0430\u043D\u0438\u044F",children:(0,e.jsx)(d,{})})]})},d=function(h){var g=(0,s.Oc)(),p=g.act,j=g.data,x=j.msg_cooldown,C=j.emagged,I=j.cc_cooldown,P=j.security_level_color,M=j.str_security_level,B=j.levels,w=j.authcapt,T=j.authhead,K=j.messages,R="\u0421\u0434\u0435\u043B\u0430\u0442\u044C \u043F\u0440\u0438\u043E\u0440\u0438\u0442\u0435\u0442\u043D\u043E\u0435 \u043E\u043F\u043E\u0432\u0435\u0449\u0435\u043D\u0438\u0435";x>0&&(R+=" ("+x+"s)");var U=C?"\u0421\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435 [\u041D\u0415\u0418\u0417\u0412\u0415\u0421\u0422\u041D\u041E]":"\u0421\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435 \u0426\u041A",F="\u0417\u0430\u043F\u0440\u043E\u0441\u0438\u0442\u044C \u043A\u043E\u0434\u044B \u0430\u0443\u0442\u0435\u043D\u0442\u0438\u0444\u0438\u043A\u0430\u0446\u0438\u0438";return I>0&&(U+=" ("+I+"s)",F+=" ("+I+"s)"),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.BJ.Item,{grow:!0,children:(0,e.jsx)(t.wn,{fill:!0,title:'\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u044F \u0443\u0440\u043E\u0432\u043D\u044F \u0434\u043E\u0441\u0442\u0443\u043F\u0430 "\u041A\u0430\u043F\u0438\u0442\u0430\u043D"',children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"\u0422\u0435\u043A\u0443\u0449\u0438\u0439 \u0443\u0440\u043E\u0432\u0435\u043D\u044C \u0443\u0433\u0440\u043E\u0437\u044B",color:P,children:M}),(0,e.jsx)(t.Ki.Item,{label:"\u0421\u043C\u0435\u043D\u0438\u0442\u044C \u0443\u0440\u043E\u0432\u0435\u043D\u044C \u0443\u0433\u0440\u043E\u0437\u044B",children:(0,e.jsx)(l,{levels:B,required_access:w})}),(0,e.jsx)(t.Ki.Item,{label:"\u041E\u043F\u043E\u0432\u0435\u0449\u0435\u043D\u0438\u0435",children:(0,e.jsx)(t.$n,{icon:"bullhorn",disabled:!w||x>0,onClick:function(){return p("announce")},children:R})}),!!C&&(0,e.jsxs)(t.Ki.Item,{label:"\u041F\u0435\u0440\u0435\u0434\u0430\u0447\u0430",children:[(0,e.jsx)(t.$n,{icon:"broadcast-tower",color:"red",disabled:!w||I>0,onClick:function(){return p("MessageSyndicate")},children:U}),(0,e.jsx)(t.$n,{icon:"sync-alt",disabled:!w,onClick:function(){return p("RestoreBackup")},children:"\u0421\u0431\u0440\u043E\u0441\u0438\u0442\u044C \u0440\u0435\u043B\u0435"})]})||(0,e.jsx)(t.Ki.Item,{label:"\u041F\u0435\u0440\u0435\u0434\u0430\u0447\u0430",children:(0,e.jsx)(t.$n,{icon:"broadcast-tower",disabled:!w||I>0,onClick:function(){return p("MessageCentcomm")},children:U})}),(0,e.jsx)(t.Ki.Item,{label:"\u042F\u0434\u0435\u0440\u043D\u0430\u044F \u0431\u043E\u0435\u0433\u043E\u043B\u043E\u0432\u043A\u0430",children:(0,e.jsx)(t.$n,{icon:"bomb",disabled:!w||I>0,onClick:function(){return p("nukerequest")},children:F})})]})})}),(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.wn,{fill:!0,title:'\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u044F \u0443\u0440\u043E\u0432\u043D\u044F \u0434\u043E\u0441\u0442\u0443\u043F\u0430 "\u041A\u043E\u043C\u0430\u043D\u0434\u043E\u0432\u0430\u043D\u0438\u0435"',children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"\u0414\u0438\u0441\u043F\u043B\u0435\u0438",children:(0,e.jsx)(t.$n,{icon:"tv",disabled:!T,onClick:function(){return p("status")},children:"\u0418\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u0435 \u0414\u0438\u0441\u043F\u043B\u0435\u0435\u0432 \u0441\u0442\u0430\u0442\u0443\u0441\u0430"})}),(0,e.jsx)(t.Ki.Item,{label:"\u0412\u0445\u043E\u0434\u044F\u0449\u0438\u0435 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u044F",children:(0,e.jsx)(t.$n,{icon:"folder-open",disabled:!T,onClick:function(){return p("messagelist")},children:"\u041F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0435\u0442\u044C ("+K.length+")"})})]})})})]})},v=function(h){var g=(0,s.Oc)(),p=g.act,j=g.data,x=j.stat_display,C=j.authhead,I=x.presets.map(function(M){return(0,e.jsx)(t.$n,{selected:M.name===x.type,disabled:!C,onClick:function(){return p("setstat",{statdisp:M.id})},children:M.label},M.name)}),P=x.alerts.map(function(M){return(0,e.jsx)(t.$n,{selected:M.alert===x.icon,disabled:!C,onClick:function(){return p("setstat",{statdisp:3,alert:M.alert})},children:M.label},M.alert)});return(0,e.jsx)(t.BJ.Item,{grow:!0,children:(0,e.jsx)(t.wn,{fill:!0,title:"\u0418\u0437\u043C\u0435\u043D\u0438\u0442\u044C \u044D\u043A\u0440\u0430\u043D\u044B \u0441\u0442\u0430\u0442\u0443\u0441\u0430",buttons:(0,e.jsx)(t.$n,{icon:"arrow-circle-left",onClick:function(){return p("main")},children:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u0432 \u043E\u0441\u043D\u043E\u0432\u043D\u043E\u0435 \u043C\u0435\u043D\u044E"}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"\u041F\u0440\u0435\u0441\u0435\u0442\u044B",children:I}),(0,e.jsx)(t.Ki.Item,{label:"\u041E\u043F\u043E\u0432\u0435\u0449\u0435\u043D\u0438\u044F",children:P}),(0,e.jsx)(t.Ki.Item,{label:"\u0421\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435 \u0421\u0442\u0440\u043E\u043A\u0430 1",children:(0,e.jsx)(t.$n,{icon:"pencil-alt",disabled:!C,onClick:function(){return p("setmsg1")},children:x.line_1})}),(0,e.jsx)(t.Ki.Item,{label:"\u0421\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435 \u0421\u0442\u0440\u043E\u043A\u0430 2",children:(0,e.jsx)(t.$n,{icon:"pencil-alt",disabled:!C,onClick:function(){return p("setmsg2")},children:x.line_2})})]})})})},_=function(h){var g=(0,s.Oc)(),p=g.act,j=g.data,x=j.authhead,C=j.current_message_title,I=j.current_message,P=j.messages,M;if(C)M=(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.wn,{title:C,buttons:(0,e.jsx)(t.$n,{icon:"times",disabled:!x,onClick:function(){return p("messagelist")},children:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043A \u0441\u043F\u0438\u0441\u043A\u0443 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0439"}),children:(0,e.jsx)(t.az,{children:I})})});else{var B=P.map(function(w){return(0,e.jsxs)(t.Ki.Item,{label:w.title,children:[(0,e.jsx)(t.$n,{icon:"eye",disabled:!x||C===w.title,onClick:function(){return p("messagelist",{msgid:w.id})},children:"\u041F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0435\u0442\u044C"}),(0,e.jsx)(t.$n.Confirm,{icon:"times",disabled:!x,onClick:function(){return p("delmessage",{msgid:w.id})},children:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C"})]},w.id)});M=(0,e.jsx)(t.wn,{title:"\u0421\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435 \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E",buttons:(0,e.jsx)(t.$n,{icon:"arrow-circle-left",onClick:function(){return p("main")},children:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u0432 \u041E\u0441\u043D\u043E\u0432\u043D\u043E\u0435 \u043C\u0435\u043D\u044E"}),children:(0,e.jsx)(t.Ki,{children:B})})}return(0,e.jsx)(t.az,{children:M})},l=function(h){var g=(0,s.Oc)(),p=g.act,j=g.data,x=h.levels,C=h.required_access,I=h.use_confirm,P=j.security_level;return I?x.map(function(M){return(0,e.jsx)(t.$n.Confirm,{icon:M.icon,disabled:!C||M.id===P,tooltip:M.tooltip,onClick:function(){return p("newalertlevel",{level:M.id})},children:M.name},M.name)}):x.map(function(M){return(0,e.jsx)(t.$n,{icon:M.icon,disabled:!C||M.id===P,tooltip:M.tooltip,onClick:function(){return p("newalertlevel",{level:M.id})},children:M.name},M.name)})},c=function(h){var g=(0,s.Oc)(),p=g.act,j=g.data,x=j.is_admin;if(!x)return p("main"),null;var C=(0,n.useState)(""),I=C[0],P=C[1],M=(0,n.useState)(""),B=M[0],w=M[1],T=(0,n.useState)(!1),K=T[0],R=T[1],U=(0,n.useState)("Beep"),F=U[0],$=U[1];return(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.wn,{title:"\u041E\u043F\u043E\u0432\u0435\u0449\u0435\u043D\u0438\u0435 \u0426\u041A",height:30,buttons:(0,e.jsx)(t.$n,{icon:"arrow-circle-left",onClick:function(){return p("main")},children:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u0432 \u041E\u0441\u043D\u043E\u0432\u043D\u043E\u0435 \u043C\u0435\u043D\u044E"}),children:(0,e.jsxs)(t.BJ,{vertical:!0,fill:!0,children:[(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.pd,{placeholder:"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A \u0442\u0443\u0442.",fluid:!0,value:I,onChange:P,mb:"5px"})}),(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.fs,{placeholder:"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0442\u0435\u043A\u0441\u0442 \u043E\u0431\u044A\u044F\u0432\u043B\u0435\u043D\u0438\u044F. \u041C\u043D\u043E\u0433\u043E\u0441\u0442\u0440\u043E\u0447\u043D\u044B\u0439 \u0432\u0432\u043E\u0434 \u043F\u0440\u0438\u043D\u0438\u043C\u0430\u0435\u0442\u0441\u044F.",fluid:!0,height:18,value:B,onChange:w})}),(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.$n.Checkbox,{checked:K,fluid:!0,m:"5px",tooltip:K?"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u043D\u0430 \u043A\u043E\u043D\u0441\u043E\u043B\u0438 \u0441\u0432\u044F\u0437\u0438 \u0441\u0442\u0430\u043D\u0446\u0438\u0438":"\u041F\u0443\u0431\u043B\u0438\u0447\u043D\u043E \u043E\u0431\u044A\u044F\u0432\u0438\u0442\u044C",onClick:function(){return R(!K)},children:"\u0417\u0430\u0441\u0435\u043A\u0440\u0435\u0447\u0435\u043D\u043E"})}),(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.$n.Confirm,{fluid:!0,icon:"paper-plane",mt:"5px",textAlign:"center",align:"center",onClick:function(){return p("make_cc_announcement",{subtitle:I,text:B,classified:K,beepsound:F})},children:"\u0421\u0434\u0435\u043B\u0430\u0442\u044C \u043E\u0431\u044A\u044F\u0432\u043B\u0435\u043D\u0438\u0435"})})]})})})}},3354:(q,S,r)=>{"use strict";r.r(S),r.d(S,{TankDispenser:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(b){var O=(0,s.Oc)(),y=O.act,u=O.data,f=u.o_tanks,m=u.p_tanks;return(0,e.jsx)(t.p8,{width:275,height:100,children:(0,e.jsxs)(t.p8.Content,{children:[(0,e.jsx)(n.az,{m:"5px",children:(0,e.jsx)(n.$n,{disabled:f===0,icon:"arrow-circle-down",onClick:function(){return y("oxygen")},children:"Dispense Oxygen Tank ("+f+")"})}),(0,e.jsx)(n.az,{m:"5px",children:(0,e.jsx)(n.$n,{disabled:m===0,icon:"arrow-circle-down",onClick:function(){return y("plasma")},children:"Dispense Plasma Tank ("+m+")"})})]})})}},3366:(q,S,r)=>{"use strict";r.r(S),r.d(S,{ItemPixelShift:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(b){var O=(0,s.Oc)(),y=O.act,u=O.data,f=u.pixel_x,m=u.pixel_y,d=u.max_shift_x,v=u.max_shift_y,_=u.random_drop_on;return(0,e.jsx)(t.p8,{width:250,height:160,children:(0,e.jsxs)(t.p8.Content,{children:[(0,e.jsx)(n.wn,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"X-coordinates",children:[(0,e.jsx)(n.$n,{icon:"arrow-left",tooltip:"Shifts item leftwards.",disabled:f===-d,onClick:function(){return y("shift_left")}}),(0,e.jsx)(n.Q7,{animated:!0,lineHeight:1.7,width:"75px",unit:"pixels",stepPixelSize:6,step:1,value:f,minValue:-d,maxValue:d,onChange:function(l){return y("custom_x",{pixel_x:l})}}),(0,e.jsx)(n.$n,{icon:"arrow-right",tooltip:"Shifts item rightwards.",disabled:f===d,onClick:function(){return y("shift_right")}})]}),(0,e.jsxs)(n.Ki.Item,{label:"Y-coordinates",children:[(0,e.jsx)(n.$n,{icon:"arrow-up",tooltip:"Shifts item upwards.",disabled:m===v,onClick:function(){return y("shift_up")}}),(0,e.jsx)(n.Q7,{animated:!0,lineHeight:1.7,width:"75px",unit:"pixels",stepPixelSize:6,step:1,value:m,minValue:-v,maxValue:v,onChange:function(l){return y("custom_y",{pixel_y:l})}}),(0,e.jsx)(n.$n,{icon:"arrow-down",tooltip:"Shifts item downwards.",disabled:m===-v,onClick:function(){return y("shift_down")}})]})]})}),(0,e.jsx)(n.wn,{children:(0,e.jsxs)(n.xA,{children:[(0,e.jsx)(n.xA.Column,{children:(0,e.jsx)(n.$n,{fluid:!0,color:"brown",icon:"arrow-up",tooltip:"Tries to place an item on top of the others.",onClick:function(){return y("move_to_top")},children:"Move to Top"})}),(0,e.jsx)(n.xA.Column,{children:(0,e.jsx)(n.$n,{fluid:!0,color:_?"good":"bad",icon:"power-off",tooltip:"Enables/Disables item pixel randomization on any drops.",onClick:function(){return y("toggle")},children:_?"Shift Enabled":"Shift Disabled"})})]})})]})})}},3384:(q,S,r)=>{"use strict";r.r(S),r.d(S,{Loader:()=>t});var e=r(1131),s=r(9818),n=r(5180),t=function(a){var b=a.value;return(0,e.jsx)("div",{className:"AlertModal__Loader",children:(0,e.jsx)(n.az,{className:"AlertModal__LoaderProgress",style:{width:(0,s.J$)(b)*100+"%"}})})}},3393:(q,S,r)=>{"use strict";r.r(S),r.d(S,{PrisonerImplantManager:()=>u});var e=r(1131),s=r(360),n=r(5180),t=r(5818),a=r(538),b=r(1530),O=r(9298),y=r(3521),u=function(f){var m=(0,s.Oc)(),d=m.act,v=m.data,_=v.loginState,l=v.prisonerInfo,c=v.chemicalInfo,h=v.trackingInfo;if(!_.logged_in)return(0,e.jsx)(y.p8,{theme:"security",width:500,height:850,children:(0,e.jsx)(y.p8.Content,{children:(0,e.jsx)(O.LoginScreen,{})})});var g=[1,5,10];return(0,e.jsxs)(y.p8,{theme:"security",width:500,height:850,children:[(0,e.jsx)(a.ComplexModal,{}),(0,e.jsx)(y.p8.Content,{children:(0,e.jsxs)(n.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(b.LoginInfo,{}),(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(n.wn,{fill:!0,scrollable:!0,title:"Prisoner Points Manager System",children:(0,e.jsxs)(t.K,{children:[(0,e.jsx)(t.K.Item,{label:"Prisoner",children:(0,e.jsx)(n.$n,{icon:l.name?"eject":"id-card",selected:!!l.name,tooltip:l.name?"Eject ID":"Insert ID",onClick:function(){return d("id_card")},children:l.name?l.name:"-----"})}),(0,e.jsxs)(t.K.Item,{label:"Points",children:[l.points!==null?l.points:"-/-",(0,e.jsx)(n.$n,{ml:2,icon:"minus-square",disabled:l.points===null,onClick:function(){return d("reset_points")},children:"Reset"})]}),(0,e.jsxs)(t.K.Item,{label:"Point Goal",children:[l.goal!==null?l.goal:"-/-",(0,e.jsx)(n.$n,{ml:2,icon:"pen",disabled:l.goal===null,onClick:function(){return(0,a.modalOpen)("set_points")},children:"Edit"})]}),(0,e.jsx)(t.K.Item,{children:!!l.goal&&(0,e.jsxs)(n.az,{children:["1 minute of prison time should roughly equate to 150 points.",(0,e.jsx)("br",{}),(0,e.jsx)("br",{}),"Sentences should not exceed 5000 points.",(0,e.jsx)("br",{}),(0,e.jsx)("br",{}),"Permanent prisoners should not be given a point goal.",(0,e.jsx)("br",{}),(0,e.jsx)("br",{}),"Prisoners who meet their point goal will be able to automatically access their locker and return to the station using the shuttle."]})})]})})}),(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(n.wn,{fill:!0,scrollable:!0,title:"Tracking Implants",children:h.map(function(p){return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(n.az,{p:1,backgroundColor:"rgba(255, 255, 255, 0.05)",children:[(0,e.jsxs)(n.az,{bold:!0,children:["Subject: ",p.subject]}),(0,e.jsxs)(n.az,{children:[" ",(0,e.jsx)("br",{}),(0,e.jsxs)(t.K,{children:[(0,e.jsx)(t.K.Item,{label:"Location",children:p.location}),(0,e.jsx)(t.K.Item,{label:"Health",children:p.health}),(0,e.jsx)(t.K.Item,{label:"Prisoner",children:(0,e.jsx)(n.$n,{icon:"exclamation-triangle",tooltip:"Broadcast a message to this poor sod",onClick:function(){return(0,a.modalOpen)("warn",{uid:p.uid})},children:"Warn"})})]})]},p.subject)]}),(0,e.jsx)("br",{})]})})})}),(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(n.wn,{fill:!0,scrollable:!0,title:"Chemical Implants",children:c.map(function(p){return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(n.az,{p:1,backgroundColor:"rgba(255, 255, 255, 0.05)",children:[(0,e.jsxs)(n.az,{bold:!0,children:["Subject: ",p.name]}),(0,e.jsxs)(n.az,{children:[" ",(0,e.jsx)("br",{}),(0,e.jsx)(t.K,{children:(0,e.jsx)(t.K.Item,{label:"Remaining Reagents",children:p.volume})}),g.map(function(j){return(0,e.jsx)(n.$n,{mt:2,disabled:p.volume{"use strict";r.r(S),r.d(S,{Pacman:()=>b});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=r(8477),b=function(O){var y=(0,s.Oc)(),u=y.act,f=y.data,m=f.broken,d=f.anchored,v=f.active,_=f.fuel_type,l=f.fuel_usage,c=f.fuel_stored,h=f.fuel_cap,g=f.is_ai,p=f.tmp_current,j=f.tmp_max,x=f.tmp_overheat,C=f.output_max,I=f.power_gen,P=f.output_set,M=f.has_fuel,B=c/h,w=p/j,T=P*I,K=Math.round(c/l),R=Math.round(K/60),U=K>120?""+R+" minutes":""+K+" seconds";return(0,e.jsx)(t.p8,{width:500,height:260,children:(0,e.jsxs)(t.p8.Content,{children:[(m||!d)&&(0,e.jsxs)(n.wn,{title:"Status",children:[!!m&&(0,e.jsx)(n.az,{color:"orange",children:"The generator is malfunctioning!"}),!m&&!d&&(0,e.jsx)(n.az,{color:"orange",children:"The generator needs to be anchored to the floor with a wrench."})]}),!m&&!!d&&(0,e.jsxs)("div",{children:[(0,e.jsx)(n.wn,{title:"Status",buttons:(0,e.jsx)(n.$n,{icon:v?"power-off":"times",tooltip:"Toggles the generator on/off. Requires fuel.",tooltipPosition:"left",disabled:!M,selected:v,onClick:function(){return u("toggle_power")},children:v?"On":"Off"}),children:(0,e.jsxs)(n.so,{direction:"row",children:[(0,e.jsx)(n.so.Item,{width:"50%",className:"ml-1",children:(0,e.jsx)(n.Ki,{children:(0,e.jsxs)(n.Ki.Item,{label:"Power setting",children:[(0,e.jsx)(n.Q7,{value:P,minValue:1,maxValue:C,step:1,className:"mt-1",onDrag:function(F){return u("change_power",{change_power:F})}}),"(",(0,a.d5)(T),")"]})})}),(0,e.jsx)(n.so.Item,{width:"50%",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Temperature",children:(0,e.jsxs)(n.z2,{value:w,ranges:{green:[-1/0,.33],orange:[.33,.66],red:[.66,1/0]},children:[p," \u2103"]})}),(0,e.jsxs)(n.Ki.Item,{label:"Status",children:[x>50&&(0,e.jsx)(n.az,{color:"red",children:"CRITICAL OVERHEAT!"}),x>20&&x<=50&&(0,e.jsx)(n.az,{color:"orange",children:"WARNING: Overheating!"}),x>1&&x<=20&&(0,e.jsx)(n.az,{color:"orange",children:"Temperature High"}),x===0&&(0,e.jsx)(n.az,{color:"green",children:"Optimal"})]})]})})]})}),(0,e.jsx)(n.wn,{title:"Fuel",buttons:(0,e.jsx)(n.$n,{icon:"eject",tooltip:"Ejects fuel. Generator needs to be offline.",tooltipPosition:"left",disabled:v||g||!M,onClick:function(){return u("eject_fuel")},children:"Eject Fuel"}),children:(0,e.jsxs)(n.xA,{children:[(0,e.jsx)(n.xA.Column,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Type",children:_}),(0,e.jsx)(n.Ki.Item,{label:"Fuel level",children:(0,e.jsxs)(n.z2,{value:B,ranges:{red:[-1/0,.33],orange:[.33,.66],green:[.66,1/0]},children:[Math.round(c/1e3)," dm\xB3"]})})]})}),(0,e.jsx)(n.xA.Column,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Fuel usage",children:[l/1e3," dm\xB3/s"]}),(0,e.jsxs)(n.Ki.Item,{label:"Fuel depletion",children:[!!M&&(l?U:"N/A"),!M&&(0,e.jsx)(n.az,{color:"red",children:"Out of fuel"})]})]})})]})})]})]})})}},3500:(q,S,r)=>{"use strict";r.r(S),r.d(S,{useCompact:()=>s,useTab:()=>n});var e=r(7003),s=function(){return(0,e.useState)(!1)},n=function(){return(0,e.useState)(1)}},3513:(q,S,r)=>{"use strict";r.r(S),r.d(S,{ReagentsEditor:()=>f});var e=r(1131),s=r(7003),n=r(360),t=r(5180),a=r(3521),b=r(9845);function O(){return O=Object.assign||function(v){for(var _=1;_{"use strict";r.r(S),r.d(S,{LatheSearch:()=>t});var e=r(1131),s=r(360),n=r(5180),t=function(a){var b=(0,s.Oc)().act;return(0,e.jsx)(n.az,{children:(0,e.jsx)(n.pd,{placeholder:"\u041F\u043E\u0438\u0441\u043A...",onEnter:function(O){return b("search",{to_search:O})}})})}},3521:(q,S,r)=>{"use strict";r.d(S,{p8:()=>T});var e=r(1131),s=r(7003),n=r(7921),t=r(185),a=r(8222);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function O(){return O=Object.assign||function(R){for(var U=1;U=0)&&(F[W]=R[W]);return F}var y=function(R){var U=R.className,F=R.theme,$=F===void 0?"nanotrasen":F,W=R.children,N=b(R,["className","theme","children"]);return document.documentElement.className="theme-"+$,(0,e.jsx)("div",{className:"theme-"+$,children:(0,e.jsx)("div",O({className:(0,t.Ly)(["Layout",U,(0,a.WP)(N)])},(0,a.Fl)(N),{children:W}))})},u=function(R){var U=R.className,F=R.scrollable,$=R.children,W=b(R,["className","scrollable","children"]),N=(0,s.useRef)(null);return(0,s.useEffect)(function(){var Z=N.current;return Z&&F&&(0,n.tk)(Z),function(){Z&&F&&(0,n.WK)(Z)}},[]),(0,e.jsx)("div",O({className:(0,t.Ly)(["Layout__content",F&&"Layout__content--scrollable",U,(0,a.WP)(W)]),ref:N},(0,a.Fl)(W),{children:$}))};y.Content=u;var f=r(5180),m=r(360),d=r(6587);/** + */function b(){return b=Object.assign||function(R){for(var U=1;U=0)&&(F[W]=R[W]);return F}var y=function(R){var U=R.className,F=R.theme,$=F===void 0?"nanotrasen":F,W=R.children,N=O(R,["className","theme","children"]);return document.documentElement.className="theme-"+$,(0,e.jsx)("div",{className:"theme-"+$,children:(0,e.jsx)("div",b({className:(0,t.Ly)(["Layout",U,(0,a.WP)(N)])},(0,a.Fl)(N),{children:W}))})},u=function(R){var U=R.className,F=R.scrollable,$=R.children,W=O(R,["className","scrollable","children"]),N=(0,s.useRef)(null);return(0,s.useEffect)(function(){var Z=N.current;return Z&&F&&(0,n.tk)(Z),function(){Z&&F&&(0,n.WK)(Z)}},[]),(0,e.jsx)("div",b({className:(0,t.Ly)(["Layout__content",F&&"Layout__content--scrollable",U,(0,a.WP)(W)]),ref:N},(0,a.Fl)(W),{children:$}))};y.Content=u;var f=r(5180),m=r(360),d=r(6587);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT @@ -113,19 +113,19 @@ Error generating stack: `+z.message+` * @file * @copyright 2020 Aleksej Komarov * @license MIT - */},3523:(q,S,r)=>{"use strict";r.d(S,{n4:()=>yi});function e(ue){if(ue==null)return window;if(ue.toString()!=="[object Window]"){var se=ue.ownerDocument;return se&&se.defaultView||window}return ue}function s(ue,se){return se!=null&&typeof Symbol<"u"&&se[Symbol.hasInstance]?!!se[Symbol.hasInstance](ue):ue instanceof se}function n(ue){var se=e(ue).Element;return s(ue,se)||s(ue,Element)}function t(ue){var se=e(ue).HTMLElement;return s(ue,se)||s(ue,HTMLElement)}function a(ue){if(typeof ShadowRoot>"u")return!1;var se=e(ue).ShadowRoot;return s(ue,se)||s(ue,ShadowRoot)}var O=Math.max,b=Math.min,y=Math.round;function u(){var ue=navigator.userAgentData;return ue!=null&&ue.brands&&Array.isArray(ue.brands)?ue.brands.map(function(se){return se.brand+"/"+se.version}).join(" "):navigator.userAgent}function f(){return!/^((?!chrome|android).)*safari/i.test(u())}function m(ue,se,ve){se===void 0&&(se=!1),ve===void 0&&(ve=!1);var Be=ue.getBoundingClientRect(),Te=1,Xe=1;se&&t(ue)&&(Te=ue.offsetWidth>0&&y(Be.width)/ue.offsetWidth||1,Xe=ue.offsetHeight>0&&y(Be.height)/ue.offsetHeight||1);var un=n(ue)?e(ue):window,He=un.visualViewport,Ge=!f()&&ve,xn=(Be.left+(Ge&&He?He.offsetLeft:0))/Te,tn=(Be.top+(Ge&&He?He.offsetTop:0))/Xe,An=Be.width/Te,nt=Be.height/Xe;return{width:An,height:nt,top:tn,right:xn+An,bottom:tn+nt,left:xn,x:xn,y:tn}}function d(ue){var se=e(ue),ve=se.pageXOffset,Be=se.pageYOffset;return{scrollLeft:ve,scrollTop:Be}}function v(ue){return{scrollLeft:ue.scrollLeft,scrollTop:ue.scrollTop}}function _(ue){return ue===e(ue)||!t(ue)?d(ue):v(ue)}function l(ue){return ue?(ue.nodeName||"").toLowerCase():null}function c(ue){return((n(ue)?ue.ownerDocument:ue.document)||window.document).documentElement}function h(ue){return m(c(ue)).left+d(ue).scrollLeft}function g(ue){return e(ue).getComputedStyle(ue)}function p(ue){var se=g(ue),ve=se.overflow,Be=se.overflowX,Te=se.overflowY;return/auto|scroll|overlay|hidden/.test(ve+Te+Be)}function j(ue){var se=ue.getBoundingClientRect(),ve=y(se.width)/ue.offsetWidth||1,Be=y(se.height)/ue.offsetHeight||1;return ve!==1||Be!==1}function x(ue,se,ve){ve===void 0&&(ve=!1);var Be=t(se),Te=t(se)&&j(se),Xe=c(se),un=m(ue,Te,ve),He={scrollLeft:0,scrollTop:0},Ge={x:0,y:0};return(Be||!Be&&!ve)&&((l(se)!=="body"||p(Xe))&&(He=_(se)),t(se)?(Ge=m(se,!0),Ge.x+=se.clientLeft,Ge.y+=se.clientTop):Xe&&(Ge.x=h(Xe))),{x:un.left+He.scrollLeft-Ge.x,y:un.top+He.scrollTop-Ge.y,width:un.width,height:un.height}}function C(ue){var se=m(ue),ve=ue.offsetWidth,Be=ue.offsetHeight;return Math.abs(se.width-ve)<=1&&(ve=se.width),Math.abs(se.height-Be)<=1&&(Be=se.height),{x:ue.offsetLeft,y:ue.offsetTop,width:ve,height:Be}}function I(ue){return l(ue)==="html"?ue:ue.assignedSlot||ue.parentNode||(a(ue)?ue.host:null)||c(ue)}function P(ue){return["html","body","#document"].indexOf(l(ue))>=0?ue.ownerDocument.body:t(ue)&&p(ue)?ue:P(I(ue))}function M(ue,se){var ve;se===void 0&&(se=[]);var Be=P(ue),Te=Be===((ve=ue.ownerDocument)==null?void 0:ve.body),Xe=e(Be),un=Te?[Xe].concat(Xe.visualViewport||[],p(Be)?Be:[]):Be,He=se.concat(un);return Te?He:He.concat(M(I(un)))}function B(ue){return["table","td","th"].indexOf(l(ue))>=0}function w(ue){return!t(ue)||g(ue).position==="fixed"?null:ue.offsetParent}function T(ue){var se=/firefox/i.test(u()),ve=/Trident/i.test(u());if(ve&&t(ue)){var Be=g(ue);if(Be.position==="fixed")return null}var Te=I(ue);for(a(Te)&&(Te=Te.host);t(Te)&&["html","body"].indexOf(l(Te))<0;){var Xe=g(Te);if(Xe.transform!=="none"||Xe.perspective!=="none"||Xe.contain==="paint"||["transform","perspective"].indexOf(Xe.willChange)!==-1||se&&Xe.willChange==="filter"||se&&Xe.filter&&Xe.filter!=="none")return Te;Te=Te.parentNode}return null}function K(ue){for(var se=e(ue),ve=w(ue);ve&&B(ve)&&g(ve).position==="static";)ve=w(ve);return ve&&(l(ve)==="html"||l(ve)==="body"&&g(ve).position==="static")?se:ve||T(ue)||se}var R="top",U="bottom",F="right",$="left",W="auto",N=[R,U,F,$],Z="start",ie="end",Q="clippingParents",V="viewport",G="popper",le="reference",xe=N.reduce(function(ue,se){return ue.concat([se+"-"+Z,se+"-"+ie])},[]),de=[].concat(N,[W]).reduce(function(ue,se){return ue.concat([se,se+"-"+Z,se+"-"+ie])},[]),me="beforeRead",pe="read",Me="afterRead",Ke="beforeMain",Le="main",Se="afterMain",ln="beforeWrite",ze="write",We="afterWrite",fn=[me,pe,Me,Ke,Le,Se,ln,ze,We];function Ze(ue){var se=new Map,ve=new Set,Be=[];ue.forEach(function(Xe){se.set(Xe.name,Xe)});function Te(Xe){ve.add(Xe.name);var un=[].concat(Xe.requires||[],Xe.requiresIfExists||[]);un.forEach(function(He){if(!ve.has(He)){var Ge=se.get(He);Ge&&Te(Ge)}}),Be.push(Xe)}return ue.forEach(function(Xe){ve.has(Xe.name)||Te(Xe)}),Be}function In(ue){var se=Ze(ue);return fn.reduce(function(ve,Be){return ve.concat(se.filter(function(Te){return Te.phase===Be}))},[])}function En(ue){var se;return function(){return se||(se=new Promise(function(ve){Promise.resolve().then(function(){se=void 0,ve(ue())})})),se}}function Yn(ue){var se=ue.reduce(function(ve,Be){var Te=ve[Be.name];return ve[Be.name]=Te?Object.assign({},Te,Be,{options:Object.assign({},Te.options,Be.options),data:Object.assign({},Te.data,Be.data)}):Be,ve},{});return Object.keys(se).map(function(ve){return se[ve]})}var Xn={placement:"bottom",modifiers:[],strategy:"absolute"};function ct(){for(var ue=arguments.length,se=new Array(ue),ve=0;ve=0?"x":"y"}function Pt(ue){var se=ue.reference,ve=ue.element,Be=ue.placement,Te=Be?wn(Be):null,Xe=Be?it(Be):null,un=se.x+se.width/2-ve.width/2,He=se.y+se.height/2-ve.height/2,Ge;switch(Te){case R:Ge={x:un,y:se.y-ve.height};break;case U:Ge={x:un,y:se.y+se.height};break;case F:Ge={x:se.x+se.width,y:He};break;case $:Ge={x:se.x-ve.width,y:He};break;default:Ge={x:se.x,y:se.y}}var xn=Te?Kn(Te):null;if(xn!=null){var tn=xn==="y"?"height":"width";switch(Xe){case Z:Ge[xn]=Ge[xn]-(se[tn]/2-ve[tn]/2);break;case ie:Ge[xn]=Ge[xn]+(se[tn]/2-ve[tn]/2);break;default:}}return Ge}function Mt(ue){var se=ue.state,ve=ue.name;se.modifiersData[ve]=Pt({reference:se.rects.reference,element:se.rects.popper,strategy:"absolute",placement:se.placement})}const sr={name:"popperOffsets",enabled:!0,phase:"read",fn:Mt,data:{}};var tr={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ft(ue,se){var ve=ue.x,Be=ue.y,Te=se.devicePixelRatio||1;return{x:y(ve*Te)/Te||0,y:y(Be*Te)/Te||0}}function Bi(ue){var se,ve=ue.popper,Be=ue.popperRect,Te=ue.placement,Xe=ue.variation,un=ue.offsets,He=ue.position,Ge=ue.gpuAcceleration,xn=ue.adaptive,tn=ue.roundOffsets,An=ue.isFixed,nt=un.x,Pn=nt===void 0?0:nt,Qn=un.y,Nn=Qn===void 0?0:Qn,Je=typeof tn=="function"?tn({x:Pn,y:Nn}):{x:Pn,y:Nn};Pn=Je.x,Nn=Je.y;var qn=un.hasOwnProperty("x"),ut=un.hasOwnProperty("y"),vn=$,Rn=R,Wn=window;if(xn){var Jn=K(ve),Tn="clientHeight",gt="clientWidth";if(Jn===e(ve)&&(Jn=c(ve),g(Jn).position!=="static"&&He==="absolute"&&(Tn="scrollHeight",gt="scrollWidth")),Jn=Jn,Te===R||(Te===$||Te===F)&&Xe===ie){Rn=U;var at=An&&Jn===Wn&&Wn.visualViewport?Wn.visualViewport.height:Jn[Tn];Nn-=at-Be.height,Nn*=Ge?1:-1}if(Te===$||(Te===R||Te===U)&&Xe===ie){vn=F;var xt=An&&Jn===Wn&&Wn.visualViewport?Wn.visualViewport.width:Jn[gt];Pn-=xt-Be.width,Pn*=Ge?1:-1}}var Et=Object.assign({position:He},xn&&tr),vt=tn===!0?Ft({x:Pn,y:Nn},e(ve)):{x:Pn,y:Nn};if(Pn=vt.x,Nn=vt.y,Ge){var ht;return Object.assign({},Et,(ht={},ht[Rn]=ut?"0":"",ht[vn]=qn?"0":"",ht.transform=(Wn.devicePixelRatio||1)<=1?"translate("+Pn+"px, "+Nn+"px)":"translate3d("+Pn+"px, "+Nn+"px, 0)",ht))}return Object.assign({},Et,(se={},se[Rn]=ut?Nn+"px":"",se[vn]=qn?Pn+"px":"",se.transform="",se))}function Xi(ue){var se=ue.state,ve=ue.options,Be=ve.gpuAcceleration,Te=Be===void 0?!0:Be,Xe=ve.adaptive,un=Xe===void 0?!0:Xe,He=ve.roundOffsets,Ge=He===void 0?!0:He,xn={placement:wn(se.placement),variation:it(se.placement),popper:se.elements.popper,popperRect:se.rects.popper,gpuAcceleration:Te,isFixed:se.options.strategy==="fixed"};se.modifiersData.popperOffsets!=null&&(se.styles.popper=Object.assign({},se.styles.popper,Bi(Object.assign({},xn,{offsets:se.modifiersData.popperOffsets,position:se.options.strategy,adaptive:un,roundOffsets:Ge})))),se.modifiersData.arrow!=null&&(se.styles.arrow=Object.assign({},se.styles.arrow,Bi(Object.assign({},xn,{offsets:se.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:Ge})))),se.attributes.popper=Object.assign({},se.attributes.popper,{"data-popper-placement":se.placement})}const Dr={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Xi,data:{}};function Yr(ue){var se=ue.state;Object.keys(se.elements).forEach(function(ve){var Be=se.styles[ve]||{},Te=se.attributes[ve]||{},Xe=se.elements[ve];!t(Xe)||!l(Xe)||(Object.assign(Xe.style,Be),Object.keys(Te).forEach(function(un){var He=Te[un];He===!1?Xe.removeAttribute(un):Xe.setAttribute(un,He===!0?"":He)}))})}function mi(ue){var se=ue.state,ve={popper:{position:se.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(se.elements.popper.style,ve.popper),se.styles=ve,se.elements.arrow&&Object.assign(se.elements.arrow.style,ve.arrow),function(){Object.keys(se.elements).forEach(function(Be){var Te=se.elements[Be],Xe=se.attributes[Be]||{},un=Object.keys(se.styles.hasOwnProperty(Be)?se.styles[Be]:ve[Be]),He=un.reduce(function(Ge,xn){return Ge[xn]="",Ge},{});!t(Te)||!l(Te)||(Object.assign(Te.style,He),Object.keys(Xe).forEach(function(Ge){Te.removeAttribute(Ge)}))})}}const Sr={name:"applyStyles",enabled:!0,phase:"write",fn:Yr,effect:mi,requires:["computeStyles"]};function wi(ue,se,ve){var Be=wn(ue),Te=[$,R].indexOf(Be)>=0?-1:1,Xe=typeof ve=="function"?ve(Object.assign({},se,{placement:ue})):ve,un=Xe[0],He=Xe[1];return un=un||0,He=(He||0)*Te,[$,F].indexOf(Be)>=0?{x:He,y:un}:{x:un,y:He}}function Wr(ue){var se=ue.state,ve=ue.options,Be=ue.name,Te=ve.offset,Xe=Te===void 0?[0,0]:Te,un=de.reduce(function(tn,An){return tn[An]=wi(An,se.rects,Xe),tn},{}),He=un[se.placement],Ge=He.x,xn=He.y;se.modifiersData.popperOffsets!=null&&(se.modifiersData.popperOffsets.x+=Ge,se.modifiersData.popperOffsets.y+=xn),se.modifiersData[Be]=un}const Br={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Wr};var Qr={left:"right",right:"left",bottom:"top",top:"bottom"};function Zr(ue){return ue.replace(/left|right|bottom|top/g,function(se){return Qr[se]})}var Ai={start:"end",end:"start"};function qr(ue){return ue.replace(/start|end/g,function(se){return Ai[se]})}function ei(ue,se){var ve=e(ue),Be=c(ue),Te=ve.visualViewport,Xe=Be.clientWidth,un=Be.clientHeight,He=0,Ge=0;if(Te){Xe=Te.width,un=Te.height;var xn=f();(xn||!xn&&se==="fixed")&&(He=Te.offsetLeft,Ge=Te.offsetTop)}return{width:Xe,height:un,x:He+h(ue),y:Ge}}function xi(ue){var se,ve=c(ue),Be=d(ue),Te=(se=ue.ownerDocument)==null?void 0:se.body,Xe=O(ve.scrollWidth,ve.clientWidth,Te?Te.scrollWidth:0,Te?Te.clientWidth:0),un=O(ve.scrollHeight,ve.clientHeight,Te?Te.scrollHeight:0,Te?Te.clientHeight:0),He=-Be.scrollLeft+h(ue),Ge=-Be.scrollTop;return g(Te||ve).direction==="rtl"&&(He+=O(ve.clientWidth,Te?Te.clientWidth:0)-Xe),{width:Xe,height:un,x:He,y:Ge}}function vi(ue,se){var ve=se.getRootNode&&se.getRootNode();if(ue.contains(se))return!0;if(ve&&a(ve)){var Be=se;do{if(Be&&ue.isSameNode(Be))return!0;Be=Be.parentNode||Be.host}while(Be)}return!1}function ni(ue){return Object.assign({},ue,{left:ue.x,top:ue.y,right:ue.x+ue.width,bottom:ue.y+ue.height})}function ti(ue,se){var ve=m(ue,!1,se==="fixed");return ve.top=ve.top+ue.clientTop,ve.left=ve.left+ue.clientLeft,ve.bottom=ve.top+ue.clientHeight,ve.right=ve.left+ue.clientWidth,ve.width=ue.clientWidth,ve.height=ue.clientHeight,ve.x=ve.left,ve.y=ve.top,ve}function pi(ue,se,ve){return se===V?ni(ei(ue,ve)):n(se)?ti(se,ve):ni(xi(c(ue)))}function ea(ue){var se=M(I(ue)),ve=["absolute","fixed"].indexOf(g(ue).position)>=0,Be=ve&&t(ue)?K(ue):ue;return n(Be)?se.filter(function(Te){return n(Te)&&vi(Te,Be)&&l(Te)!=="body"}):[]}function Ti(ue,se,ve,Be){var Te=se==="clippingParents"?ea(ue):[].concat(se),Xe=[].concat(Te,[ve]),un=Xe[0],He=Xe.reduce(function(Ge,xn){var tn=pi(ue,xn,Be);return Ge.top=O(tn.top,Ge.top),Ge.right=b(tn.right,Ge.right),Ge.bottom=b(tn.bottom,Ge.bottom),Ge.left=O(tn.left,Ge.left),Ge},pi(ue,un,Be));return He.width=He.right-He.left,He.height=He.bottom-He.top,He.x=He.left,He.y=He.top,He}function Yt(){return{top:0,right:0,bottom:0,left:0}}function gr(ue){return Object.assign({},Yt(),ue)}function _i(ue,se){return se.reduce(function(ve,Be){return ve[Be]=ue,ve},{})}function ri(ue,se){se===void 0&&(se={});var ve=se,Be=ve.placement,Te=Be===void 0?ue.placement:Be,Xe=ve.strategy,un=Xe===void 0?ue.strategy:Xe,He=ve.boundary,Ge=He===void 0?Q:He,xn=ve.rootBoundary,tn=xn===void 0?V:xn,An=ve.elementContext,nt=An===void 0?G:An,Pn=ve.altBoundary,Qn=Pn===void 0?!1:Pn,Nn=ve.padding,Je=Nn===void 0?0:Nn,qn=gr(typeof Je!="number"?Je:_i(Je,N)),ut=nt===G?le:G,vn=ue.rects.popper,Rn=ue.elements[Qn?ut:nt],Wn=Ti(n(Rn)?Rn:Rn.contextElement||c(ue.elements.popper),Ge,tn,un),Jn=m(ue.elements.reference),Tn=Pt({reference:Jn,element:vn,strategy:"absolute",placement:Te}),gt=ni(Object.assign({},vn,Tn)),at=nt===G?gt:Jn,xt={top:Wn.top-at.top+qn.top,bottom:at.bottom-Wn.bottom+qn.bottom,left:Wn.left-at.left+qn.left,right:at.right-Wn.right+qn.right},Et=ue.modifiersData.offset;if(nt===G&&Et){var vt=Et[Te];Object.keys(xt).forEach(function(ht){var Lt=[F,U].indexOf(ht)>=0?1:-1,Qt=[R,U].indexOf(ht)>=0?"y":"x";xt[ht]+=vt[Qt]*Lt})}return xt}function jr(ue,se){se===void 0&&(se={});var ve=se,Be=ve.placement,Te=ve.boundary,Xe=ve.rootBoundary,un=ve.padding,He=ve.flipVariations,Ge=ve.allowedAutoPlacements,xn=Ge===void 0?de:Ge,tn=it(Be),An=tn?He?xe:xe.filter(function(Qn){return it(Qn)===tn}):N,nt=An.filter(function(Qn){return xn.indexOf(Qn)>=0});nt.length===0&&(nt=An);var Pn=nt.reduce(function(Qn,Nn){return Qn[Nn]=ri(ue,{placement:Nn,boundary:Te,rootBoundary:Xe,padding:un})[wn(Nn)],Qn},{});return Object.keys(Pn).sort(function(Qn,Nn){return Pn[Qn]-Pn[Nn]})}function so(ue){if(wn(ue)===W)return[];var se=Zr(ue);return[qr(ue),se,qr(se)]}function Cr(ue){var se=ue.state,ve=ue.options,Be=ue.name;if(!se.modifiersData[Be]._skip){for(var Te=ve.mainAxis,Xe=Te===void 0?!0:Te,un=ve.altAxis,He=un===void 0?!0:un,Ge=ve.fallbackPlacements,xn=ve.padding,tn=ve.boundary,An=ve.rootBoundary,nt=ve.altBoundary,Pn=ve.flipVariations,Qn=Pn===void 0?!0:Pn,Nn=ve.allowedAutoPlacements,Je=se.options.placement,qn=wn(Je),ut=qn===Je,vn=Ge||(ut||!Qn?[Zr(Je)]:so(Je)),Rn=[Je].concat(vn).reduce(function(Fr,cr){return Fr.concat(wn(cr)===W?jr(se,{placement:cr,boundary:tn,rootBoundary:An,padding:xn,flipVariations:Qn,allowedAutoPlacements:Nn}):cr)},[]),Wn=se.rects.reference,Jn=se.rects.popper,Tn=new Map,gt=!0,at=Rn[0],xt=0;xt=0,Qt=Lt?"width":"height",pt=ri(se,{placement:Et,boundary:tn,rootBoundary:An,altBoundary:nt,padding:xn}),jt=Lt?ht?F:$:ht?U:R;Wn[Qt]>Jn[Qt]&&(jt=Zr(jt));var Li=Zr(jt),Ar=[];if(Xe&&Ar.push(pt[vt]<=0),He&&Ar.push(pt[jt]<=0,pt[Li]<=0),Ar.every(function(Fr){return Fr})){at=Et,gt=!1;break}Tn.set(Et,Ar)}if(gt)for(var Vt=Qn?3:1,Ei=function(cr){var Ir=Rn.find(function(ur){var Rt=Tn.get(ur);if(Rt)return Rt.slice(0,cr).every(function(dr){return dr})});if(Ir)return at=Ir,"break"},Jr=Vt;Jr>0;Jr--){var Tr=Ei(Jr);if(Tr==="break")break}se.placement!==at&&(se.modifiersData[Be]._skip=!0,se.placement=at,se.reset=!0)}}const co={name:"flip",enabled:!0,phase:"main",fn:Cr,requiresIfExists:["offset"],data:{_skip:!1}};function ii(ue){return ue==="x"?"y":"x"}function wr(ue,se,ve){return O(ue,b(se,ve))}function yr(ue,se,ve){var Be=wr(ue,se,ve);return Be>ve?ve:Be}function Er(ue){var se=ue.state,ve=ue.options,Be=ue.name,Te=ve.mainAxis,Xe=Te===void 0?!0:Te,un=ve.altAxis,He=un===void 0?!1:un,Ge=ve.boundary,xn=ve.rootBoundary,tn=ve.altBoundary,An=ve.padding,nt=ve.tether,Pn=nt===void 0?!0:nt,Qn=ve.tetherOffset,Nn=Qn===void 0?0:Qn,Je=ri(se,{boundary:Ge,rootBoundary:xn,padding:An,altBoundary:tn}),qn=wn(se.placement),ut=it(se.placement),vn=!ut,Rn=Kn(qn),Wn=ii(Rn),Jn=se.modifiersData.popperOffsets,Tn=se.rects.reference,gt=se.rects.popper,at=typeof Nn=="function"?Nn(Object.assign({},se.rects,{placement:se.placement})):Nn,xt=typeof at=="number"?{mainAxis:at,altAxis:at}:Object.assign({mainAxis:0,altAxis:0},at),Et=se.modifiersData.offset?se.modifiersData.offset[se.placement]:null,vt={x:0,y:0};if(Jn){if(Xe){var ht,Lt=Rn==="y"?R:$,Qt=Rn==="y"?U:F,pt=Rn==="y"?"height":"width",jt=Jn[Rn],Li=jt+Je[Lt],Ar=jt-Je[Qt],Vt=Pn?-gt[pt]/2:0,Ei=ut===Z?Tn[pt]:gt[pt],Jr=ut===Z?-gt[pt]:-Tn[pt],Tr=se.elements.arrow,Fr=Pn&&Tr?C(Tr):{width:0,height:0},cr=se.modifiersData["arrow#persistent"]?se.modifiersData["arrow#persistent"].padding:Yt(),Ir=cr[Lt],ur=cr[Qt],Rt=wr(0,Tn[pt],Fr[pt]),dr=vn?Tn[pt]/2-Vt-Rt-Ir-xt.mainAxis:Ei-Rt-Ir-xt.mainAxis,Ii=vn?-Tn[pt]/2+Vt+Rt+ur+xt.mainAxis:Jr+Rt+ur+xt.mainAxis,Ri=se.elements.arrow&&K(se.elements.arrow),rr=Ri?Rn==="y"?Ri.clientTop||0:Ri.clientLeft||0:0,oi=(ht=Et?.[Rn])!=null?ht:0,Qi=jt+dr-oi-rr,uo=jt+Ii-oi,hr=wr(Pn?b(Li,Qi):Li,jt,Pn?O(Ar,uo):Ar);Jn[Rn]=hr,vt[Rn]=hr-jt}if(He){var ai,li=Rn==="x"?R:$,ho=Rn==="x"?U:F,fr=Jn[Wn],Or=Wn==="y"?"height":"width",Ki=fr+Je[li],At=fr-Je[ho],ir=[R,$].indexOf(qn)!==-1,Ui=(ai=Et?.[Wn])!=null?ai:0,kr=ir?Ki:fr-Tn[Or]-gt[Or]-Ui+xt.altAxis,fo=ir?fr+Tn[Or]+gt[Or]-Ui-xt.altAxis:At,zi=Pn&&ir?yr(kr,fr,fo):wr(Pn?kr:Ki,fr,Pn?fo:At);Jn[Wn]=zi,vt[Wn]=zi-fr}se.modifiersData[Be]=vt}}const gi={name:"preventOverflow",enabled:!0,phase:"main",fn:Er,requiresIfExists:["offset"]};var $r=function(se,ve){return se=typeof se=="function"?se(Object.assign({},ve.rects,{placement:ve.placement})):se,gr(typeof se!="number"?se:_i(se,N))};function Hi(ue){var se,ve=ue.state,Be=ue.name,Te=ue.options,Xe=ve.elements.arrow,un=ve.modifiersData.popperOffsets,He=wn(ve.placement),Ge=Kn(He),xn=[$,F].indexOf(He)>=0,tn=xn?"height":"width";if(!(!Xe||!un)){var An=$r(Te.padding,ve),nt=C(Xe),Pn=Ge==="y"?R:$,Qn=Ge==="y"?U:F,Nn=ve.rects.reference[tn]+ve.rects.reference[Ge]-un[Ge]-ve.rects.popper[tn],Je=un[Ge]-ve.rects.reference[Ge],qn=K(Xe),ut=qn?Ge==="y"?qn.clientHeight||0:qn.clientWidth||0:0,vn=Nn/2-Je/2,Rn=An[Pn],Wn=ut-nt[tn]-An[Qn],Jn=ut/2-nt[tn]/2+vn,Tn=wr(Rn,Jn,Wn),gt=Ge;ve.modifiersData[Be]=(se={},se[gt]=Tn,se.centerOffset=Tn-Jn,se)}}function ji(ue){var se=ue.state,ve=ue.options,Be=ve.element,Te=Be===void 0?"[data-popper-arrow]":Be;Te!=null&&(typeof Te=="string"&&(Te=se.elements.popper.querySelector(Te),!Te)||vi(se.elements.popper,Te)&&(se.elements.arrow=Te))}const dt={name:"arrow",enabled:!0,phase:"main",fn:Hi,effect:ji,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ci(ue,se,ve){return ve===void 0&&(ve={x:0,y:0}),{top:ue.top-se.height-ve.y,right:ue.right-se.width+ve.x,bottom:ue.bottom-se.height+ve.y,left:ue.left-se.width-ve.x}}function Zn(ue){return[R,F,U,$].some(function(se){return ue[se]>=0})}function ki(ue){var se=ue.state,ve=ue.name,Be=se.rects.reference,Te=se.rects.popper,Xe=se.modifiersData.preventOverflow,un=ri(se,{elementContext:"reference"}),He=ri(se,{altBoundary:!0}),Ge=Ci(un,Be),xn=Ci(He,Te,Xe),tn=Zn(Ge),An=Zn(xn);se.modifiersData[ve]={referenceClippingOffsets:Ge,popperEscapeOffsets:xn,isReferenceHidden:tn,hasPopperEscaped:An},se.attributes.popper=Object.assign({},se.attributes.popper,{"data-popper-reference-hidden":tn,"data-popper-escaped":An})}var Yi=[cn,sr,Dr,Sr,Br,co,gi,dt,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ki}],yi=Ot({defaultModifiers:Yi})},3536:(q,S,r)=>{"use strict";r.r(S),r.d(S,{AiAirlock:()=>O});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a={2:{color:"good",localStatusText:"Offline"},1:{color:"average",localStatusText:"Caution"},0:{color:"bad",localStatusText:"Optimal"}},O=function(b){var y=(0,s.Oc)(),u=y.act,f=y.data,m=a[f.power.main]||a[0],d=a[f.power.backup]||a[0],v=a[f.shock]||a[0];return(0,e.jsx)(t.p8,{width:500,height:400,children:(0,e.jsxs)(t.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:m.color,buttons:(0,e.jsx)(n.$n,{mb:.5,icon:"lightbulb-o",disabled:!f.power.main,onClick:function(){return u("disrupt-main")},children:"Disrupt"}),children:[f.power.main?"Online":"Offline"," ",!f.wires.main_power&&"[Wires have been cut!]"||f.power.main_timeleft>0&&"["+f.power.main_timeleft+"s]"]}),(0,e.jsxs)(n.Ki.Item,{label:"Backup",color:d.color,buttons:(0,e.jsx)(n.$n,{mb:.5,icon:"lightbulb-o",disabled:!f.power.backup,onClick:function(){return u("disrupt-backup")},children:"Disrupt"}),children:[f.power.backup?"Online":"Offline"," ",!f.wires.backup_power&&"[Wires have been cut!]"||f.power.backup_timeleft>0&&"["+f.power.backup_timeleft+"s]"]}),(0,e.jsxs)(n.Ki.Item,{label:"Electrify",color:v.color,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{mr:.5,icon:"wrench",disabled:!(f.wires.shock&&f.shock!==2),onClick:function(){return u("shock-restore")},children:"Restore"}),(0,e.jsx)(n.$n,{mr:.5,icon:"bolt",disabled:!f.wires.shock,onClick:function(){return u("shock-temp")},children:"Temporary"}),(0,e.jsx)(n.$n,{icon:"bolt",disabled:!f.wires.shock||f.shock===0,onClick:function(){return u("shock-perm")},children:"Permanent"})]}),children:[f.shock===2?"Safe":"Electrified"," ",!f.wires.shock&&"[Wires have been cut!]"||f.shock_timeleft>0&&"["+f.shock_timeleft+"s]"||f.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,{mb:.5,width:6.5,icon:f.id_scanner?"power-off":"times",selected:f.id_scanner,disabled:!f.wires.id_scanner,onClick:function(){return u("idscan-toggle")},children:f.id_scanner?"Enabled":"Disabled"}),children:!f.wires.id_scanner&&"[Wires have been cut!]"}),(0,e.jsx)(n.Ki.Item,{label:"Emergency Access",buttons:(0,e.jsx)(n.$n,{width:6.5,icon:f.emergency?"power-off":"times",selected:f.emergency,onClick:function(){return u("emergency-toggle")},children:f.emergency?"Enabled":"Disabled"})}),(0,e.jsx)(n.Ki.Divider,{}),(0,e.jsx)(n.Ki.Item,{label:"Door Bolts",color:"bad",buttons:(0,e.jsx)(n.$n,{mb:.5,icon:f.locked?"lock":"unlock",selected:f.locked,disabled:!f.wires.bolts,onClick:function(){return u("bolt-toggle")},children:f.locked?"Lowered":"Raised"}),children:!f.wires.bolts&&"[Wires have been cut!]"}),(0,e.jsx)(n.Ki.Item,{label:"Door Bolt Lights",color:"bad",buttons:(0,e.jsx)(n.$n,{mb:.5,width:6.5,icon:f.lights?"power-off":"times",selected:f.lights,disabled:!f.wires.lights,onClick:function(){return u("light-toggle")},children:f.lights?"Enabled":"Disabled"}),children:!f.wires.lights&&"[Wires have been cut!]"}),(0,e.jsx)(n.Ki.Item,{label:"Door Force Sensors",color:"bad",buttons:(0,e.jsx)(n.$n,{mb:.5,width:6.5,icon:f.safe?"power-off":"times",selected:f.safe,disabled:!f.wires.safe,onClick:function(){return u("safe-toggle")},children:f.safe?"Enabled":"Disabled"}),children:!f.wires.safe&&"[Wires have been cut!]"}),(0,e.jsx)(n.Ki.Item,{label:"Door Timing Safety",color:"bad",buttons:(0,e.jsx)(n.$n,{mb:.5,width:6.5,icon:f.speed?"power-off":"times",selected:f.speed,disabled:!f.wires.timing,onClick:function(){return u("speed-toggle")},children:f.speed?"Enabled":"Disabled"}),children:!f.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:f.opened?"sign-out-alt":"sign-in-alt",selected:f.opened,disabled:f.locked||f.welded,onClick:function(){return u("open-close")},children:f.opened?"Open":"Closed"}),children:!!(f.locked||f.welded)&&(0,e.jsxs)("span",{children:["[Door is ",f.locked?"bolted":"",f.locked&&f.welded?" and ":"",f.welded?"welded":"","!]"]})})]})})]})})}},3648:(q,S,r)=>{"use strict";r.r(S),r.d(S,{KitchenMachine:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(O){var b=(0,s.Oc)(),y=b.act,u=b.data,f=u.name,m=u.operating,d=u.dirty,v=u.broken,_=u.cookVerb,l=u.ingredients,c=l===void 0?[]:l,h=u.reagents,g=h===void 0?[]:h;return v===1?(0,e.jsx)(t.p8,{width:400,height:250,theme:"ntos",children:(0,e.jsx)(t.p8.Content,{children:(0,e.jsx)(n.wn,{title:(0,e.jsx)(n.az,{color:"bad",children:"\u041D\u0435\u0438\u0441\u043F\u0440\u0430\u0432\u043D\u043E\u0441\u0442\u044C!"}),children:(0,e.jsxs)(n.BJ,{vertical:!0,align:"center",mt:2,children:[(0,e.jsx)(n.In,{name:"triangle-exclamation",size:3,color:"bad"}),(0,e.jsx)(n.az,{fontSize:1.5,bold:!0,mt:2,children:"\u0421\u0431\u043E\u0439 \u043E\u0431\u043E\u0440\u0443\u0434\u043E\u0432\u0430\u043D\u0438\u044F"}),(0,e.jsx)(n.az,{textAlign:"center",mt:1,children:"\u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044F \u0440\u0435\u043C\u043E\u043D\u0442"})]})})})}):d===100?(0,e.jsx)(t.p8,{width:400,height:300,theme:"ntos",children:(0,e.jsx)(t.p8.Content,{children:(0,e.jsx)(n.wn,{title:"\u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044F \u043E\u0447\u0438\u0441\u0442\u043A\u0430",children:(0,e.jsxs)(n.BJ,{vertical:!0,align:"center",textAlign:"center",children:[(0,e.jsx)(n.In,{name:"broom",size:3,color:"yellow"}),(0,e.jsxs)(n.az,{bold:!0,mt:1,fontSize:1.2,children:[u.name," \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u043E\u0447\u0438\u0441\u0442\u043A\u0438!"]}),(0,e.jsxs)(n.az,{mt:1,children:["\u0417\u0430\u0433\u0440\u044F\u0437\u043D\u0435\u043D\u0438\u0435: ",u.dirty,"%"]}),(0,e.jsx)(n.az,{mt:2,italic:!0,children:"\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043E\u0447\u0438\u0441\u0442\u0438\u0442\u0435 \u043F\u0435\u0440\u0435\u0434 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u0435\u043C."})]})})})}):m===1?(0,e.jsx)(t.p8,{width:400,height:300,theme:"ntos",children:(0,e.jsx)(t.p8.Content,{children:(0,e.jsx)(n.wn,{title:""+_+"...",children:(0,e.jsxs)(n.BJ,{vertical:!0,align:"center",textAlign:"center",children:[(0,e.jsx)(n.In,{name:"cookie-bite",size:3,spin:!0,mt:1}),(0,e.jsx)(n.az,{mt:2,italic:!0,children:"\u0411\u043B\u044E\u0434\u043E \u0433\u043E\u0442\u043E\u0432\u0438\u0442\u0441\u044F, \u043E\u0436\u0438\u0434\u0430\u0439\u0442\u0435..."})]})})})}):(0,e.jsx)(t.p8,{width:400,height:500,theme:"ntos",children:(0,e.jsx)(t.p8.Content,{children:(0,e.jsxs)(n.wn,{title:(0,e.jsxs)(n.BJ,{align:"center",children:[(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.In,{name:"temperature-high"})}),(0,e.jsx)(n.BJ.Item,{grow:!0,children:f}),(0,e.jsx)(n.BJ.Item,{children:u.dirty>0&&(0,e.jsxs)(n.az,{color:d>70?"bad":d>30?"average":"good",children:[(0,e.jsx)(n.In,{name:"soap"})," ",d,"%"]})})]}),children:[(0,e.jsx)(n.wn,{title:(0,e.jsxs)(n.BJ,{children:[(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.In,{name:"list"})}),(0,e.jsx)(n.BJ.Item,{children:"\u0418\u043D\u0433\u0440\u0435\u0434\u0438\u0435\u043D\u0442\u044B"})]}),children:c.length===0?(0,e.jsx)(n.az,{italic:!0,children:"\u0418\u043D\u0433\u0440\u0435\u0434\u0438\u0435\u043D\u0442\u044B \u043D\u0435 \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u044B"}):(0,e.jsx)(n.Ki,{children:c.map(function(p,j){return(0,e.jsxs)(n.Ki.Item,{label:(0,e.jsx)(n.BJ,{children:(0,e.jsx)(n.BJ.Item,{children:p.name})}),children:[p.amount," \u0448\u0442."]},j)})})}),(0,e.jsx)(n.wn,{title:(0,e.jsxs)(n.BJ,{children:[(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.In,{name:"bottle-droplet"})}),(0,e.jsx)(n.BJ.Item,{children:"\u0412\u0435\u0449\u0435\u0441\u0442\u0432\u0430"})]}),children:g.length===0?(0,e.jsx)(n.az,{italic:!0,children:"\u0412\u0435\u0449\u0435\u0441\u0442\u0432\u0430 \u043D\u0435 \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u044B"}):(0,e.jsx)(n.Ki,{children:g.map(function(p,j){return(0,e.jsxs)(n.Ki.Item,{label:(0,e.jsx)(n.BJ,{children:(0,e.jsx)(n.BJ,{align:"center",children:(0,e.jsx)(n.BJ.Item,{children:p.name})})}),children:[p.volume," \u0435\u0434."]},j)})})}),(0,e.jsxs)(n.BJ,{mt:2,children:[(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(n.$n,{fluid:!0,icon:"power-off",textAlign:"center",disabled:u.ingredients.length===0&&u.reagents.length===0,tooltip:u.ingredients.length===0&&u.reagents.length===0?"\u0421\u043D\u0430\u0447\u0430\u043B\u0430 \u0434\u043E\u0431\u0430\u0432\u044C\u0442\u0435 \u0438\u043D\u0433\u0440\u0435\u0434\u0438\u0435\u043D\u0442\u044B":void 0,onClick:function(){return y("start")},children:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C"})}),(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(n.$n,{fluid:!0,icon:"eject",textAlign:"center",disabled:u.ingredients.length===0&&u.reagents.length===0,tooltip:u.ingredients.length===0&&u.reagents.length===0?"\u041D\u0435\u0442 \u0438\u043D\u0433\u0440\u0435\u0434\u0438\u0435\u043D\u0442\u043E\u0432":void 0,onClick:function(){return y("eject")},children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C"})})]})]})})})}},3655:(q,S,r)=>{"use strict";r.d(S,{b:()=>e});var e=function(s,n,t){return t===void 0&&(t=1e3),fetch(s,n).catch(function(){return new Promise(function(a){setTimeout(function(){e(s,n,t).then(a)},t)})})}},3678:(q,S,r)=>{"use strict";r.r(S),r.d(S,{LawManager:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(u){var f=(0,s.Oc)(),m=f.act,d=f.data,v=d.isAdmin,_=d.isSlaved,l=d.isMalf,c=d.isAIMalf,h=d.view;return(0,e.jsx)(t.p8,{width:800,height:l?620:365,children:(0,e.jsxs)(t.p8.Content,{scrollable:!0,children:[!!(l||c)&&(0,e.jsxs)(n.tU,{children:[(0,e.jsx)(n.tU.Tab,{selected:!h,onClick:function(){return m("set_view",{set_view:0})},children:"Law Management"}),(0,e.jsx)(n.tU.Tab,{selected:h,onClick:function(){return m("set_view",{set_view:1})},children:"Lawsets"})]}),!!(v&&_)&&(0,e.jsxs)(n.IC,{children:["This unit is slaved to ",_,"."]}),!h&&(0,e.jsx)(O,{}),!!h&&(0,e.jsx)(b,{})]})})},O=function(u){var f=(0,s.Oc)(),m=f.act,d=f.data,v=d.has_zeroth_laws,_=d.zeroth_laws,l=d.has_devil_laws,c=d.devil_laws,h=d.has_ion_laws,g=d.ion_laws,p=d.ion_law_nr,j=d.has_inherent_laws,x=d.inherent_laws,C=d.has_supplied_laws,I=d.supplied_laws,P=d.channels,M=d.channel,B=d.isMalf,w=d.isAdmin,T=d.zeroth_law,K=d.ion_law,R=d.inherent_law,U=d.devil_law,F=d.supplied_law,$=d.supplied_law_position;return(0,e.jsxs)(e.Fragment,{children:[!!v&&(0,e.jsx)(y,{title:"ERR_NULL_VALUE",laws:_}),!!l&&(0,e.jsx)(y,{title:"666",laws:c}),!!h&&(0,e.jsx)(y,{title:p,laws:g}),!!j&&(0,e.jsx)(y,{title:"Inherent",laws:x}),!!C&&(0,e.jsx)(y,{title:"Supplied",laws:I}),(0,e.jsx)(n.wn,{title:"Statement Settings",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Statement Channel",children:P.map(function(W){return(0,e.jsx)(n.$n,{selected:W.channel===M,onClick:function(){return m("law_channel",{law_channel:W.channel})},children:W.channel},W.channel)})}),(0,e.jsx)(n.Ki.Item,{label:"State Laws",children:(0,e.jsx)(n.$n,{onClick:function(){return m("state_laws")},children:"State Laws"})}),(0,e.jsx)(n.Ki.Item,{label:"Law Notification",children:(0,e.jsx)(n.$n,{onClick:function(){return m("notify_laws")},children:"Notify"})})]})}),!!B&&(0,e.jsx)(n.wn,{title:"Add Laws",children:(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{width:"10%",children:"Type"}),(0,e.jsx)(n.XI.Cell,{width:"60%",children:"Law"}),(0,e.jsx)(n.XI.Cell,{width:"10%",children:"Index"}),(0,e.jsx)(n.XI.Cell,{width:"20%",children:"Actions"})]}),!!(w&&!v)&&(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{children:"Zero"}),(0,e.jsx)(n.XI.Cell,{children:T}),(0,e.jsx)(n.XI.Cell,{children:"N/A"}),(0,e.jsxs)(n.XI.Cell,{children:[(0,e.jsx)(n.$n,{icon:"pencil-alt",onClick:function(){return m("change_zeroth_law")},children:"Edit"}),(0,e.jsx)(n.$n,{icon:"plus",onClick:function(){return m("add_zeroth_law")},children:"Add"})]})]}),(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{children:"666"}),(0,e.jsx)(n.XI.Cell,{children:U}),(0,e.jsx)(n.XI.Cell,{children:"N/A"}),(0,e.jsxs)(n.XI.Cell,{children:[(0,e.jsx)(n.$n,{icon:"pencil-alt",onClick:function(){return m("change_devil_law")},children:"Edit"}),(0,e.jsx)(n.$n,{icon:"plus",onClick:function(){return m("add_devil_law")},children:"Add"})]})]}),(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{children:"Ion"}),(0,e.jsx)(n.XI.Cell,{children:K}),(0,e.jsx)(n.XI.Cell,{children:"N/A"}),(0,e.jsxs)(n.XI.Cell,{children:[(0,e.jsx)(n.$n,{icon:"pencil-alt",onClick:function(){return m("change_ion_law")},children:"Edit"}),(0,e.jsx)(n.$n,{icon:"plus",onClick:function(){return m("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:R}),(0,e.jsx)(n.XI.Cell,{children:"N/A"}),(0,e.jsxs)(n.XI.Cell,{children:[(0,e.jsx)(n.$n,{icon:"pencil-alt",onClick:function(){return m("change_inherent_law")},children:"Edit"}),(0,e.jsx)(n.$n,{icon:"plus",onClick:function(){return m("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:F}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{onClick:function(){return m("change_supplied_law_position")},children:$})}),(0,e.jsxs)(n.XI.Cell,{children:[(0,e.jsx)(n.$n,{icon:"pencil-alt",onClick:function(){return m("change_supplied_law")},children:"Edit"}),(0,e.jsx)(n.$n,{icon:"plus",onClick:function(){return m("add_supplied_law")},children:"Add"})]})]})]})})]})},b=function(u){var f=(0,s.Oc)(),m=f.act,d=f.data,v=d.law_sets;return(0,e.jsx)(n.az,{children:v.map(function(_){return(0,e.jsx)(n.wn,{title:_.name+" - "+_.header,buttons:(0,e.jsx)(n.$n,{icon:"download",onClick:function(){return m("transfer_laws",{transfer_laws:_.ref})},children:"Load Laws"}),children:(0,e.jsxs)(n.Ki,{children:[!!_.laws.has_ion_laws&&_.laws.ion_laws.map(function(l){return(0,e.jsx)(n.Ki.Item,{label:l.index,children:l.law},l.index)}),!!_.laws.has_devil_laws&&_.laws.devil_laws.map(function(l){return(0,e.jsx)(n.Ki.Item,{label:l.index,children:l.law},l.index)}),!!_.laws.has_zeroth_laws&&_.laws.zeroth_laws.map(function(l){return(0,e.jsx)(n.Ki.Item,{label:l.index,children:l.law},l.index)}),!!_.laws.has_inherent_laws&&_.laws.inherent_laws.map(function(l){return(0,e.jsx)(n.Ki.Item,{label:l.index,children:l.law},l.index)}),!!_.laws.has_supplied_laws&&_.laws.inherent_laws.map(function(l){return(0,e.jsx)(n.Ki.Item,{label:l.index,children:l.law},l.index)})]})},_.name)})})},y=function(u){var f=(0,s.Oc)(),m=f.act,d=f.data,v=d.isMalf;return(0,e.jsx)(n.wn,{title:u.title+" Laws",children:(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{width:"10%",children:"Index"}),(0,e.jsx)(n.XI.Cell,{width:"69%",children:"Law"}),(0,e.jsx)(n.XI.Cell,{width:"21%",children:"State?"})]}),u.laws.map(function(_){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{children:_.index}),(0,e.jsx)(n.XI.Cell,{children:_.law}),(0,e.jsxs)(n.XI.Cell,{children:[(0,e.jsx)(n.$n,{selected:_.state,onClick:function(){return m("state_law",{ref:_.ref,state_law:_.state?0:1})},children:_.state?"Yes":"No"}),!!v&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"pencil-alt",onClick:function(){return m("edit_law",{edit_law:_.ref})},children:"Edit"}),(0,e.jsx)(n.$n,{icon:"trash",color:"red",onClick:function(){return m("delete_law",{delete_law:_.ref})},children:"Delete"})]})]})]},_.law)})]})})}},3721:(q,S,r)=>{"use strict";r.r(S),r.d(S,{MechaControlConsole:()=>O});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=r(9845),O=function(b){var y=(0,s.Oc)(),u=y.act,f=y.data,m=f.beacons;return(0,e.jsx)(t.p8,{width:420,height:500,children:(0,e.jsx)(t.p8.Content,{scrollable:!0,children:m.length&&m.map(function(d){return(0,e.jsx)(n.wn,{title:d.name,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"comment",onClick:function(){return u("send_message",{mt:d.uid})},children:"Message"}),(0,e.jsx)(n.$n.Confirm,{color:"red",icon:"bomb",onClick:function(){return u("shock",{mt:d.uid})},children:"EMP"})]}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Health",children:(0,e.jsx)(n.z2,{ranges:{good:[d.maxHealth*.75,1/0],average:[d.maxHealth*.5,d.maxHealth*.75],bad:[-1/0,d.maxHealth*.5]},value:d.health,maxValue:d.maxHealth})}),(0,e.jsx)(n.Ki.Item,{label:"Cell Charge",children:d.cell&&(0,e.jsx)(n.z2,{ranges:{good:[d.cellMaxCharge*.75,1/0],average:[d.cellMaxCharge*.5,d.cellMaxCharge*.75],bad:[-1/0,d.cellMaxCharge*.5]},value:d.cellCharge,maxValue:d.cellMaxCharge})||(0,e.jsx)(n.IC,{children:"No Cell Installed"})}),(0,e.jsxs)(n.Ki.Item,{label:"Air Tank",children:[d.airtank,"kPa"]}),(0,e.jsx)(n.Ki.Item,{label:"Pilot",children:d.pilot||"Unoccupied"}),(0,e.jsx)(n.Ki.Item,{label:"Location",children:(0,a.Sn)(d.location)||"Unknown"}),(0,e.jsx)(n.Ki.Item,{label:"Active Equipment",children:d.active||"None"}),d.cargoMax&&(0,e.jsx)(n.Ki.Item,{label:"Cargo Space",children:(0,e.jsx)(n.z2,{ranges:{bad:[d.cargoMax*.75,1/0],average:[d.cargoMax*.5,d.cargoMax*.75],good:[-1/0,d.cargoMax*.5]},value:d.cargoUsed,maxValue:d.cargoMax})})||null]})},d.name)})||(0,e.jsx)(n.IC,{children:"No mecha beacons found."})})})}},3741:(q,S,r)=>{"use strict";q.exports=r(9338)},3753:(q,S,r)=>{"use strict";r.r(S),r.d(S,{DropLightningBolt:()=>b});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(y){return Object.entries(y).map(function(u){var f=u[0],m=u[1];return{displayText:m,value:f}})},O=function(y,u){return Object.keys(y).find(function(f){return y[f]===u})},b=function(y){var u=(0,s.Oc)(),f=u.act,m=u.data,d=m.damage,v=m.radius,_=m.delay,l=m.ckey,c=m.players,h=m.pointing,g=m.mode,p=a(c),j=c[l]||l,x=g==="\u041F\u043E \u0438\u0433\u0440\u043E\u043A\u0443",C=g==="\u041F\u043E \u0443\u043A\u0430\u0437\u0430\u0442\u0435\u043B\u044E",I=!g||C;return(0,e.jsx)(t.p8,{width:300,height:280,title:"\u0412\u044B\u0437\u043E\u0432 \u043C\u043E\u043B\u043D\u0438\u0438",theme:"admin",children:(0,e.jsxs)(t.p8.Content,{children:[(0,e.jsxs)(n.wn,{title:g??"\u041D\u0435 \u0432\u044B\u0431\u0440\u0430\u043D \u0440\u0435\u0436\u0438\u043C",children:[x&&(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"\u0418\u0433\u0440\u043E\u043A",buttons:(0,e.jsx)(n.ms,{width:"150px",options:p.map(function(P){return P.displayText}),selected:j,onSelected:function(P){var M=O(c,P);M&&f("pick_player",{ckey:M})}})})}),C&&(0,e.jsx)(n.m_,{content:`\u041F\u0440\u0438 \u0441\u0442\u0430\u0442\u0443\u0441\u0435 \xAB\u041D\u0435 \u0433\u043E\u0442\u043E\u0432\xBB \u2014 \u043D\u0430\u0436\u043C\u0438\u0442\u0435 \u043D\u0430 \u043A\u043D\u043E\u043F\u043A\u0443. + */},3523:(q,S,r)=>{"use strict";r.d(S,{n4:()=>yi});function e(ue){if(ue==null)return window;if(ue.toString()!=="[object Window]"){var se=ue.ownerDocument;return se&&se.defaultView||window}return ue}function s(ue,se){return se!=null&&typeof Symbol<"u"&&se[Symbol.hasInstance]?!!se[Symbol.hasInstance](ue):ue instanceof se}function n(ue){var se=e(ue).Element;return s(ue,se)||s(ue,Element)}function t(ue){var se=e(ue).HTMLElement;return s(ue,se)||s(ue,HTMLElement)}function a(ue){if(typeof ShadowRoot>"u")return!1;var se=e(ue).ShadowRoot;return s(ue,se)||s(ue,ShadowRoot)}var b=Math.max,O=Math.min,y=Math.round;function u(){var ue=navigator.userAgentData;return ue!=null&&ue.brands&&Array.isArray(ue.brands)?ue.brands.map(function(se){return se.brand+"/"+se.version}).join(" "):navigator.userAgent}function f(){return!/^((?!chrome|android).)*safari/i.test(u())}function m(ue,se,ve){se===void 0&&(se=!1),ve===void 0&&(ve=!1);var Be=ue.getBoundingClientRect(),Te=1,Xe=1;se&&t(ue)&&(Te=ue.offsetWidth>0&&y(Be.width)/ue.offsetWidth||1,Xe=ue.offsetHeight>0&&y(Be.height)/ue.offsetHeight||1);var un=n(ue)?e(ue):window,He=un.visualViewport,Ge=!f()&&ve,xn=(Be.left+(Ge&&He?He.offsetLeft:0))/Te,tn=(Be.top+(Ge&&He?He.offsetTop:0))/Xe,An=Be.width/Te,nt=Be.height/Xe;return{width:An,height:nt,top:tn,right:xn+An,bottom:tn+nt,left:xn,x:xn,y:tn}}function d(ue){var se=e(ue),ve=se.pageXOffset,Be=se.pageYOffset;return{scrollLeft:ve,scrollTop:Be}}function v(ue){return{scrollLeft:ue.scrollLeft,scrollTop:ue.scrollTop}}function _(ue){return ue===e(ue)||!t(ue)?d(ue):v(ue)}function l(ue){return ue?(ue.nodeName||"").toLowerCase():null}function c(ue){return((n(ue)?ue.ownerDocument:ue.document)||window.document).documentElement}function h(ue){return m(c(ue)).left+d(ue).scrollLeft}function g(ue){return e(ue).getComputedStyle(ue)}function p(ue){var se=g(ue),ve=se.overflow,Be=se.overflowX,Te=se.overflowY;return/auto|scroll|overlay|hidden/.test(ve+Te+Be)}function j(ue){var se=ue.getBoundingClientRect(),ve=y(se.width)/ue.offsetWidth||1,Be=y(se.height)/ue.offsetHeight||1;return ve!==1||Be!==1}function x(ue,se,ve){ve===void 0&&(ve=!1);var Be=t(se),Te=t(se)&&j(se),Xe=c(se),un=m(ue,Te,ve),He={scrollLeft:0,scrollTop:0},Ge={x:0,y:0};return(Be||!Be&&!ve)&&((l(se)!=="body"||p(Xe))&&(He=_(se)),t(se)?(Ge=m(se,!0),Ge.x+=se.clientLeft,Ge.y+=se.clientTop):Xe&&(Ge.x=h(Xe))),{x:un.left+He.scrollLeft-Ge.x,y:un.top+He.scrollTop-Ge.y,width:un.width,height:un.height}}function C(ue){var se=m(ue),ve=ue.offsetWidth,Be=ue.offsetHeight;return Math.abs(se.width-ve)<=1&&(ve=se.width),Math.abs(se.height-Be)<=1&&(Be=se.height),{x:ue.offsetLeft,y:ue.offsetTop,width:ve,height:Be}}function I(ue){return l(ue)==="html"?ue:ue.assignedSlot||ue.parentNode||(a(ue)?ue.host:null)||c(ue)}function P(ue){return["html","body","#document"].indexOf(l(ue))>=0?ue.ownerDocument.body:t(ue)&&p(ue)?ue:P(I(ue))}function M(ue,se){var ve;se===void 0&&(se=[]);var Be=P(ue),Te=Be===((ve=ue.ownerDocument)==null?void 0:ve.body),Xe=e(Be),un=Te?[Xe].concat(Xe.visualViewport||[],p(Be)?Be:[]):Be,He=se.concat(un);return Te?He:He.concat(M(I(un)))}function B(ue){return["table","td","th"].indexOf(l(ue))>=0}function w(ue){return!t(ue)||g(ue).position==="fixed"?null:ue.offsetParent}function T(ue){var se=/firefox/i.test(u()),ve=/Trident/i.test(u());if(ve&&t(ue)){var Be=g(ue);if(Be.position==="fixed")return null}var Te=I(ue);for(a(Te)&&(Te=Te.host);t(Te)&&["html","body"].indexOf(l(Te))<0;){var Xe=g(Te);if(Xe.transform!=="none"||Xe.perspective!=="none"||Xe.contain==="paint"||["transform","perspective"].indexOf(Xe.willChange)!==-1||se&&Xe.willChange==="filter"||se&&Xe.filter&&Xe.filter!=="none")return Te;Te=Te.parentNode}return null}function K(ue){for(var se=e(ue),ve=w(ue);ve&&B(ve)&&g(ve).position==="static";)ve=w(ve);return ve&&(l(ve)==="html"||l(ve)==="body"&&g(ve).position==="static")?se:ve||T(ue)||se}var R="top",U="bottom",F="right",$="left",W="auto",N=[R,U,F,$],Z="start",ie="end",Q="clippingParents",V="viewport",G="popper",le="reference",xe=N.reduce(function(ue,se){return ue.concat([se+"-"+Z,se+"-"+ie])},[]),de=[].concat(N,[W]).reduce(function(ue,se){return ue.concat([se,se+"-"+Z,se+"-"+ie])},[]),me="beforeRead",pe="read",Me="afterRead",Ke="beforeMain",Le="main",Se="afterMain",ln="beforeWrite",ze="write",We="afterWrite",fn=[me,pe,Me,Ke,Le,Se,ln,ze,We];function Ze(ue){var se=new Map,ve=new Set,Be=[];ue.forEach(function(Xe){se.set(Xe.name,Xe)});function Te(Xe){ve.add(Xe.name);var un=[].concat(Xe.requires||[],Xe.requiresIfExists||[]);un.forEach(function(He){if(!ve.has(He)){var Ge=se.get(He);Ge&&Te(Ge)}}),Be.push(Xe)}return ue.forEach(function(Xe){ve.has(Xe.name)||Te(Xe)}),Be}function In(ue){var se=Ze(ue);return fn.reduce(function(ve,Be){return ve.concat(se.filter(function(Te){return Te.phase===Be}))},[])}function En(ue){var se;return function(){return se||(se=new Promise(function(ve){Promise.resolve().then(function(){se=void 0,ve(ue())})})),se}}function Yn(ue){var se=ue.reduce(function(ve,Be){var Te=ve[Be.name];return ve[Be.name]=Te?Object.assign({},Te,Be,{options:Object.assign({},Te.options,Be.options),data:Object.assign({},Te.data,Be.data)}):Be,ve},{});return Object.keys(se).map(function(ve){return se[ve]})}var Xn={placement:"bottom",modifiers:[],strategy:"absolute"};function ct(){for(var ue=arguments.length,se=new Array(ue),ve=0;ve=0?"x":"y"}function Pt(ue){var se=ue.reference,ve=ue.element,Be=ue.placement,Te=Be?wn(Be):null,Xe=Be?it(Be):null,un=se.x+se.width/2-ve.width/2,He=se.y+se.height/2-ve.height/2,Ge;switch(Te){case R:Ge={x:un,y:se.y-ve.height};break;case U:Ge={x:un,y:se.y+se.height};break;case F:Ge={x:se.x+se.width,y:He};break;case $:Ge={x:se.x-ve.width,y:He};break;default:Ge={x:se.x,y:se.y}}var xn=Te?Kn(Te):null;if(xn!=null){var tn=xn==="y"?"height":"width";switch(Xe){case Z:Ge[xn]=Ge[xn]-(se[tn]/2-ve[tn]/2);break;case ie:Ge[xn]=Ge[xn]+(se[tn]/2-ve[tn]/2);break;default:}}return Ge}function Mt(ue){var se=ue.state,ve=ue.name;se.modifiersData[ve]=Pt({reference:se.rects.reference,element:se.rects.popper,strategy:"absolute",placement:se.placement})}const sr={name:"popperOffsets",enabled:!0,phase:"read",fn:Mt,data:{}};var tr={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ft(ue,se){var ve=ue.x,Be=ue.y,Te=se.devicePixelRatio||1;return{x:y(ve*Te)/Te||0,y:y(Be*Te)/Te||0}}function Bi(ue){var se,ve=ue.popper,Be=ue.popperRect,Te=ue.placement,Xe=ue.variation,un=ue.offsets,He=ue.position,Ge=ue.gpuAcceleration,xn=ue.adaptive,tn=ue.roundOffsets,An=ue.isFixed,nt=un.x,Pn=nt===void 0?0:nt,Qn=un.y,Nn=Qn===void 0?0:Qn,Je=typeof tn=="function"?tn({x:Pn,y:Nn}):{x:Pn,y:Nn};Pn=Je.x,Nn=Je.y;var qn=un.hasOwnProperty("x"),ut=un.hasOwnProperty("y"),vn=$,Rn=R,Wn=window;if(xn){var Jn=K(ve),Tn="clientHeight",gt="clientWidth";if(Jn===e(ve)&&(Jn=c(ve),g(Jn).position!=="static"&&He==="absolute"&&(Tn="scrollHeight",gt="scrollWidth")),Jn=Jn,Te===R||(Te===$||Te===F)&&Xe===ie){Rn=U;var at=An&&Jn===Wn&&Wn.visualViewport?Wn.visualViewport.height:Jn[Tn];Nn-=at-Be.height,Nn*=Ge?1:-1}if(Te===$||(Te===R||Te===U)&&Xe===ie){vn=F;var xt=An&&Jn===Wn&&Wn.visualViewport?Wn.visualViewport.width:Jn[gt];Pn-=xt-Be.width,Pn*=Ge?1:-1}}var Et=Object.assign({position:He},xn&&tr),vt=tn===!0?Ft({x:Pn,y:Nn},e(ve)):{x:Pn,y:Nn};if(Pn=vt.x,Nn=vt.y,Ge){var ht;return Object.assign({},Et,(ht={},ht[Rn]=ut?"0":"",ht[vn]=qn?"0":"",ht.transform=(Wn.devicePixelRatio||1)<=1?"translate("+Pn+"px, "+Nn+"px)":"translate3d("+Pn+"px, "+Nn+"px, 0)",ht))}return Object.assign({},Et,(se={},se[Rn]=ut?Nn+"px":"",se[vn]=qn?Pn+"px":"",se.transform="",se))}function Xi(ue){var se=ue.state,ve=ue.options,Be=ve.gpuAcceleration,Te=Be===void 0?!0:Be,Xe=ve.adaptive,un=Xe===void 0?!0:Xe,He=ve.roundOffsets,Ge=He===void 0?!0:He,xn={placement:wn(se.placement),variation:it(se.placement),popper:se.elements.popper,popperRect:se.rects.popper,gpuAcceleration:Te,isFixed:se.options.strategy==="fixed"};se.modifiersData.popperOffsets!=null&&(se.styles.popper=Object.assign({},se.styles.popper,Bi(Object.assign({},xn,{offsets:se.modifiersData.popperOffsets,position:se.options.strategy,adaptive:un,roundOffsets:Ge})))),se.modifiersData.arrow!=null&&(se.styles.arrow=Object.assign({},se.styles.arrow,Bi(Object.assign({},xn,{offsets:se.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:Ge})))),se.attributes.popper=Object.assign({},se.attributes.popper,{"data-popper-placement":se.placement})}const Dr={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Xi,data:{}};function Yr(ue){var se=ue.state;Object.keys(se.elements).forEach(function(ve){var Be=se.styles[ve]||{},Te=se.attributes[ve]||{},Xe=se.elements[ve];!t(Xe)||!l(Xe)||(Object.assign(Xe.style,Be),Object.keys(Te).forEach(function(un){var He=Te[un];He===!1?Xe.removeAttribute(un):Xe.setAttribute(un,He===!0?"":He)}))})}function mi(ue){var se=ue.state,ve={popper:{position:se.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(se.elements.popper.style,ve.popper),se.styles=ve,se.elements.arrow&&Object.assign(se.elements.arrow.style,ve.arrow),function(){Object.keys(se.elements).forEach(function(Be){var Te=se.elements[Be],Xe=se.attributes[Be]||{},un=Object.keys(se.styles.hasOwnProperty(Be)?se.styles[Be]:ve[Be]),He=un.reduce(function(Ge,xn){return Ge[xn]="",Ge},{});!t(Te)||!l(Te)||(Object.assign(Te.style,He),Object.keys(Xe).forEach(function(Ge){Te.removeAttribute(Ge)}))})}}const Sr={name:"applyStyles",enabled:!0,phase:"write",fn:Yr,effect:mi,requires:["computeStyles"]};function wi(ue,se,ve){var Be=wn(ue),Te=[$,R].indexOf(Be)>=0?-1:1,Xe=typeof ve=="function"?ve(Object.assign({},se,{placement:ue})):ve,un=Xe[0],He=Xe[1];return un=un||0,He=(He||0)*Te,[$,F].indexOf(Be)>=0?{x:He,y:un}:{x:un,y:He}}function Wr(ue){var se=ue.state,ve=ue.options,Be=ue.name,Te=ve.offset,Xe=Te===void 0?[0,0]:Te,un=de.reduce(function(tn,An){return tn[An]=wi(An,se.rects,Xe),tn},{}),He=un[se.placement],Ge=He.x,xn=He.y;se.modifiersData.popperOffsets!=null&&(se.modifiersData.popperOffsets.x+=Ge,se.modifiersData.popperOffsets.y+=xn),se.modifiersData[Be]=un}const Br={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Wr};var Qr={left:"right",right:"left",bottom:"top",top:"bottom"};function Zr(ue){return ue.replace(/left|right|bottom|top/g,function(se){return Qr[se]})}var Ai={start:"end",end:"start"};function qr(ue){return ue.replace(/start|end/g,function(se){return Ai[se]})}function ei(ue,se){var ve=e(ue),Be=c(ue),Te=ve.visualViewport,Xe=Be.clientWidth,un=Be.clientHeight,He=0,Ge=0;if(Te){Xe=Te.width,un=Te.height;var xn=f();(xn||!xn&&se==="fixed")&&(He=Te.offsetLeft,Ge=Te.offsetTop)}return{width:Xe,height:un,x:He+h(ue),y:Ge}}function xi(ue){var se,ve=c(ue),Be=d(ue),Te=(se=ue.ownerDocument)==null?void 0:se.body,Xe=b(ve.scrollWidth,ve.clientWidth,Te?Te.scrollWidth:0,Te?Te.clientWidth:0),un=b(ve.scrollHeight,ve.clientHeight,Te?Te.scrollHeight:0,Te?Te.clientHeight:0),He=-Be.scrollLeft+h(ue),Ge=-Be.scrollTop;return g(Te||ve).direction==="rtl"&&(He+=b(ve.clientWidth,Te?Te.clientWidth:0)-Xe),{width:Xe,height:un,x:He,y:Ge}}function vi(ue,se){var ve=se.getRootNode&&se.getRootNode();if(ue.contains(se))return!0;if(ve&&a(ve)){var Be=se;do{if(Be&&ue.isSameNode(Be))return!0;Be=Be.parentNode||Be.host}while(Be)}return!1}function ni(ue){return Object.assign({},ue,{left:ue.x,top:ue.y,right:ue.x+ue.width,bottom:ue.y+ue.height})}function ti(ue,se){var ve=m(ue,!1,se==="fixed");return ve.top=ve.top+ue.clientTop,ve.left=ve.left+ue.clientLeft,ve.bottom=ve.top+ue.clientHeight,ve.right=ve.left+ue.clientWidth,ve.width=ue.clientWidth,ve.height=ue.clientHeight,ve.x=ve.left,ve.y=ve.top,ve}function pi(ue,se,ve){return se===V?ni(ei(ue,ve)):n(se)?ti(se,ve):ni(xi(c(ue)))}function ea(ue){var se=M(I(ue)),ve=["absolute","fixed"].indexOf(g(ue).position)>=0,Be=ve&&t(ue)?K(ue):ue;return n(Be)?se.filter(function(Te){return n(Te)&&vi(Te,Be)&&l(Te)!=="body"}):[]}function Ti(ue,se,ve,Be){var Te=se==="clippingParents"?ea(ue):[].concat(se),Xe=[].concat(Te,[ve]),un=Xe[0],He=Xe.reduce(function(Ge,xn){var tn=pi(ue,xn,Be);return Ge.top=b(tn.top,Ge.top),Ge.right=O(tn.right,Ge.right),Ge.bottom=O(tn.bottom,Ge.bottom),Ge.left=b(tn.left,Ge.left),Ge},pi(ue,un,Be));return He.width=He.right-He.left,He.height=He.bottom-He.top,He.x=He.left,He.y=He.top,He}function Yt(){return{top:0,right:0,bottom:0,left:0}}function gr(ue){return Object.assign({},Yt(),ue)}function _i(ue,se){return se.reduce(function(ve,Be){return ve[Be]=ue,ve},{})}function ri(ue,se){se===void 0&&(se={});var ve=se,Be=ve.placement,Te=Be===void 0?ue.placement:Be,Xe=ve.strategy,un=Xe===void 0?ue.strategy:Xe,He=ve.boundary,Ge=He===void 0?Q:He,xn=ve.rootBoundary,tn=xn===void 0?V:xn,An=ve.elementContext,nt=An===void 0?G:An,Pn=ve.altBoundary,Qn=Pn===void 0?!1:Pn,Nn=ve.padding,Je=Nn===void 0?0:Nn,qn=gr(typeof Je!="number"?Je:_i(Je,N)),ut=nt===G?le:G,vn=ue.rects.popper,Rn=ue.elements[Qn?ut:nt],Wn=Ti(n(Rn)?Rn:Rn.contextElement||c(ue.elements.popper),Ge,tn,un),Jn=m(ue.elements.reference),Tn=Pt({reference:Jn,element:vn,strategy:"absolute",placement:Te}),gt=ni(Object.assign({},vn,Tn)),at=nt===G?gt:Jn,xt={top:Wn.top-at.top+qn.top,bottom:at.bottom-Wn.bottom+qn.bottom,left:Wn.left-at.left+qn.left,right:at.right-Wn.right+qn.right},Et=ue.modifiersData.offset;if(nt===G&&Et){var vt=Et[Te];Object.keys(xt).forEach(function(ht){var Lt=[F,U].indexOf(ht)>=0?1:-1,Qt=[R,U].indexOf(ht)>=0?"y":"x";xt[ht]+=vt[Qt]*Lt})}return xt}function jr(ue,se){se===void 0&&(se={});var ve=se,Be=ve.placement,Te=ve.boundary,Xe=ve.rootBoundary,un=ve.padding,He=ve.flipVariations,Ge=ve.allowedAutoPlacements,xn=Ge===void 0?de:Ge,tn=it(Be),An=tn?He?xe:xe.filter(function(Qn){return it(Qn)===tn}):N,nt=An.filter(function(Qn){return xn.indexOf(Qn)>=0});nt.length===0&&(nt=An);var Pn=nt.reduce(function(Qn,Nn){return Qn[Nn]=ri(ue,{placement:Nn,boundary:Te,rootBoundary:Xe,padding:un})[wn(Nn)],Qn},{});return Object.keys(Pn).sort(function(Qn,Nn){return Pn[Qn]-Pn[Nn]})}function so(ue){if(wn(ue)===W)return[];var se=Zr(ue);return[qr(ue),se,qr(se)]}function Cr(ue){var se=ue.state,ve=ue.options,Be=ue.name;if(!se.modifiersData[Be]._skip){for(var Te=ve.mainAxis,Xe=Te===void 0?!0:Te,un=ve.altAxis,He=un===void 0?!0:un,Ge=ve.fallbackPlacements,xn=ve.padding,tn=ve.boundary,An=ve.rootBoundary,nt=ve.altBoundary,Pn=ve.flipVariations,Qn=Pn===void 0?!0:Pn,Nn=ve.allowedAutoPlacements,Je=se.options.placement,qn=wn(Je),ut=qn===Je,vn=Ge||(ut||!Qn?[Zr(Je)]:so(Je)),Rn=[Je].concat(vn).reduce(function(Fr,cr){return Fr.concat(wn(cr)===W?jr(se,{placement:cr,boundary:tn,rootBoundary:An,padding:xn,flipVariations:Qn,allowedAutoPlacements:Nn}):cr)},[]),Wn=se.rects.reference,Jn=se.rects.popper,Tn=new Map,gt=!0,at=Rn[0],xt=0;xt=0,Qt=Lt?"width":"height",pt=ri(se,{placement:Et,boundary:tn,rootBoundary:An,altBoundary:nt,padding:xn}),jt=Lt?ht?F:$:ht?U:R;Wn[Qt]>Jn[Qt]&&(jt=Zr(jt));var Li=Zr(jt),Ar=[];if(Xe&&Ar.push(pt[vt]<=0),He&&Ar.push(pt[jt]<=0,pt[Li]<=0),Ar.every(function(Fr){return Fr})){at=Et,gt=!1;break}Tn.set(Et,Ar)}if(gt)for(var Vt=Qn?3:1,Ei=function(cr){var Ir=Rn.find(function(ur){var Rt=Tn.get(ur);if(Rt)return Rt.slice(0,cr).every(function(dr){return dr})});if(Ir)return at=Ir,"break"},Jr=Vt;Jr>0;Jr--){var Tr=Ei(Jr);if(Tr==="break")break}se.placement!==at&&(se.modifiersData[Be]._skip=!0,se.placement=at,se.reset=!0)}}const co={name:"flip",enabled:!0,phase:"main",fn:Cr,requiresIfExists:["offset"],data:{_skip:!1}};function ii(ue){return ue==="x"?"y":"x"}function wr(ue,se,ve){return b(ue,O(se,ve))}function yr(ue,se,ve){var Be=wr(ue,se,ve);return Be>ve?ve:Be}function Er(ue){var se=ue.state,ve=ue.options,Be=ue.name,Te=ve.mainAxis,Xe=Te===void 0?!0:Te,un=ve.altAxis,He=un===void 0?!1:un,Ge=ve.boundary,xn=ve.rootBoundary,tn=ve.altBoundary,An=ve.padding,nt=ve.tether,Pn=nt===void 0?!0:nt,Qn=ve.tetherOffset,Nn=Qn===void 0?0:Qn,Je=ri(se,{boundary:Ge,rootBoundary:xn,padding:An,altBoundary:tn}),qn=wn(se.placement),ut=it(se.placement),vn=!ut,Rn=Kn(qn),Wn=ii(Rn),Jn=se.modifiersData.popperOffsets,Tn=se.rects.reference,gt=se.rects.popper,at=typeof Nn=="function"?Nn(Object.assign({},se.rects,{placement:se.placement})):Nn,xt=typeof at=="number"?{mainAxis:at,altAxis:at}:Object.assign({mainAxis:0,altAxis:0},at),Et=se.modifiersData.offset?se.modifiersData.offset[se.placement]:null,vt={x:0,y:0};if(Jn){if(Xe){var ht,Lt=Rn==="y"?R:$,Qt=Rn==="y"?U:F,pt=Rn==="y"?"height":"width",jt=Jn[Rn],Li=jt+Je[Lt],Ar=jt-Je[Qt],Vt=Pn?-gt[pt]/2:0,Ei=ut===Z?Tn[pt]:gt[pt],Jr=ut===Z?-gt[pt]:-Tn[pt],Tr=se.elements.arrow,Fr=Pn&&Tr?C(Tr):{width:0,height:0},cr=se.modifiersData["arrow#persistent"]?se.modifiersData["arrow#persistent"].padding:Yt(),Ir=cr[Lt],ur=cr[Qt],Rt=wr(0,Tn[pt],Fr[pt]),dr=vn?Tn[pt]/2-Vt-Rt-Ir-xt.mainAxis:Ei-Rt-Ir-xt.mainAxis,Ii=vn?-Tn[pt]/2+Vt+Rt+ur+xt.mainAxis:Jr+Rt+ur+xt.mainAxis,Ri=se.elements.arrow&&K(se.elements.arrow),rr=Ri?Rn==="y"?Ri.clientTop||0:Ri.clientLeft||0:0,oi=(ht=Et?.[Rn])!=null?ht:0,Qi=jt+dr-oi-rr,uo=jt+Ii-oi,hr=wr(Pn?O(Li,Qi):Li,jt,Pn?b(Ar,uo):Ar);Jn[Rn]=hr,vt[Rn]=hr-jt}if(He){var ai,li=Rn==="x"?R:$,ho=Rn==="x"?U:F,fr=Jn[Wn],Or=Wn==="y"?"height":"width",Ki=fr+Je[li],At=fr-Je[ho],ir=[R,$].indexOf(qn)!==-1,Ui=(ai=Et?.[Wn])!=null?ai:0,kr=ir?Ki:fr-Tn[Or]-gt[Or]-Ui+xt.altAxis,fo=ir?fr+Tn[Or]+gt[Or]-Ui-xt.altAxis:At,zi=Pn&&ir?yr(kr,fr,fo):wr(Pn?kr:Ki,fr,Pn?fo:At);Jn[Wn]=zi,vt[Wn]=zi-fr}se.modifiersData[Be]=vt}}const gi={name:"preventOverflow",enabled:!0,phase:"main",fn:Er,requiresIfExists:["offset"]};var $r=function(se,ve){return se=typeof se=="function"?se(Object.assign({},ve.rects,{placement:ve.placement})):se,gr(typeof se!="number"?se:_i(se,N))};function Hi(ue){var se,ve=ue.state,Be=ue.name,Te=ue.options,Xe=ve.elements.arrow,un=ve.modifiersData.popperOffsets,He=wn(ve.placement),Ge=Kn(He),xn=[$,F].indexOf(He)>=0,tn=xn?"height":"width";if(!(!Xe||!un)){var An=$r(Te.padding,ve),nt=C(Xe),Pn=Ge==="y"?R:$,Qn=Ge==="y"?U:F,Nn=ve.rects.reference[tn]+ve.rects.reference[Ge]-un[Ge]-ve.rects.popper[tn],Je=un[Ge]-ve.rects.reference[Ge],qn=K(Xe),ut=qn?Ge==="y"?qn.clientHeight||0:qn.clientWidth||0:0,vn=Nn/2-Je/2,Rn=An[Pn],Wn=ut-nt[tn]-An[Qn],Jn=ut/2-nt[tn]/2+vn,Tn=wr(Rn,Jn,Wn),gt=Ge;ve.modifiersData[Be]=(se={},se[gt]=Tn,se.centerOffset=Tn-Jn,se)}}function ji(ue){var se=ue.state,ve=ue.options,Be=ve.element,Te=Be===void 0?"[data-popper-arrow]":Be;Te!=null&&(typeof Te=="string"&&(Te=se.elements.popper.querySelector(Te),!Te)||vi(se.elements.popper,Te)&&(se.elements.arrow=Te))}const dt={name:"arrow",enabled:!0,phase:"main",fn:Hi,effect:ji,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ci(ue,se,ve){return ve===void 0&&(ve={x:0,y:0}),{top:ue.top-se.height-ve.y,right:ue.right-se.width+ve.x,bottom:ue.bottom-se.height+ve.y,left:ue.left-se.width-ve.x}}function Zn(ue){return[R,F,U,$].some(function(se){return ue[se]>=0})}function ki(ue){var se=ue.state,ve=ue.name,Be=se.rects.reference,Te=se.rects.popper,Xe=se.modifiersData.preventOverflow,un=ri(se,{elementContext:"reference"}),He=ri(se,{altBoundary:!0}),Ge=Ci(un,Be),xn=Ci(He,Te,Xe),tn=Zn(Ge),An=Zn(xn);se.modifiersData[ve]={referenceClippingOffsets:Ge,popperEscapeOffsets:xn,isReferenceHidden:tn,hasPopperEscaped:An},se.attributes.popper=Object.assign({},se.attributes.popper,{"data-popper-reference-hidden":tn,"data-popper-escaped":An})}var Yi=[cn,sr,Dr,Sr,Br,co,gi,dt,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ki}],yi=Ot({defaultModifiers:Yi})},3536:(q,S,r)=>{"use strict";r.r(S),r.d(S,{AiAirlock:()=>b});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a={2:{color:"good",localStatusText:"Offline"},1:{color:"average",localStatusText:"Caution"},0:{color:"bad",localStatusText:"Optimal"}},b=function(O){var y=(0,s.Oc)(),u=y.act,f=y.data,m=a[f.power.main]||a[0],d=a[f.power.backup]||a[0],v=a[f.shock]||a[0];return(0,e.jsx)(t.p8,{width:500,height:400,children:(0,e.jsxs)(t.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:m.color,buttons:(0,e.jsx)(n.$n,{mb:.5,icon:"lightbulb-o",disabled:!f.power.main,onClick:function(){return u("disrupt-main")},children:"Disrupt"}),children:[f.power.main?"Online":"Offline"," ",!f.wires.main_power&&"[Wires have been cut!]"||f.power.main_timeleft>0&&"["+f.power.main_timeleft+"s]"]}),(0,e.jsxs)(n.Ki.Item,{label:"Backup",color:d.color,buttons:(0,e.jsx)(n.$n,{mb:.5,icon:"lightbulb-o",disabled:!f.power.backup,onClick:function(){return u("disrupt-backup")},children:"Disrupt"}),children:[f.power.backup?"Online":"Offline"," ",!f.wires.backup_power&&"[Wires have been cut!]"||f.power.backup_timeleft>0&&"["+f.power.backup_timeleft+"s]"]}),(0,e.jsxs)(n.Ki.Item,{label:"Electrify",color:v.color,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{mr:.5,icon:"wrench",disabled:!(f.wires.shock&&f.shock!==2),onClick:function(){return u("shock-restore")},children:"Restore"}),(0,e.jsx)(n.$n,{mr:.5,icon:"bolt",disabled:!f.wires.shock,onClick:function(){return u("shock-temp")},children:"Temporary"}),(0,e.jsx)(n.$n,{icon:"bolt",disabled:!f.wires.shock||f.shock===0,onClick:function(){return u("shock-perm")},children:"Permanent"})]}),children:[f.shock===2?"Safe":"Electrified"," ",!f.wires.shock&&"[Wires have been cut!]"||f.shock_timeleft>0&&"["+f.shock_timeleft+"s]"||f.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,{mb:.5,width:6.5,icon:f.id_scanner?"power-off":"times",selected:f.id_scanner,disabled:!f.wires.id_scanner,onClick:function(){return u("idscan-toggle")},children:f.id_scanner?"Enabled":"Disabled"}),children:!f.wires.id_scanner&&"[Wires have been cut!]"}),(0,e.jsx)(n.Ki.Item,{label:"Emergency Access",buttons:(0,e.jsx)(n.$n,{width:6.5,icon:f.emergency?"power-off":"times",selected:f.emergency,onClick:function(){return u("emergency-toggle")},children:f.emergency?"Enabled":"Disabled"})}),(0,e.jsx)(n.Ki.Divider,{}),(0,e.jsx)(n.Ki.Item,{label:"Door Bolts",color:"bad",buttons:(0,e.jsx)(n.$n,{mb:.5,icon:f.locked?"lock":"unlock",selected:f.locked,disabled:!f.wires.bolts,onClick:function(){return u("bolt-toggle")},children:f.locked?"Lowered":"Raised"}),children:!f.wires.bolts&&"[Wires have been cut!]"}),(0,e.jsx)(n.Ki.Item,{label:"Door Bolt Lights",color:"bad",buttons:(0,e.jsx)(n.$n,{mb:.5,width:6.5,icon:f.lights?"power-off":"times",selected:f.lights,disabled:!f.wires.lights,onClick:function(){return u("light-toggle")},children:f.lights?"Enabled":"Disabled"}),children:!f.wires.lights&&"[Wires have been cut!]"}),(0,e.jsx)(n.Ki.Item,{label:"Door Force Sensors",color:"bad",buttons:(0,e.jsx)(n.$n,{mb:.5,width:6.5,icon:f.safe?"power-off":"times",selected:f.safe,disabled:!f.wires.safe,onClick:function(){return u("safe-toggle")},children:f.safe?"Enabled":"Disabled"}),children:!f.wires.safe&&"[Wires have been cut!]"}),(0,e.jsx)(n.Ki.Item,{label:"Door Timing Safety",color:"bad",buttons:(0,e.jsx)(n.$n,{mb:.5,width:6.5,icon:f.speed?"power-off":"times",selected:f.speed,disabled:!f.wires.timing,onClick:function(){return u("speed-toggle")},children:f.speed?"Enabled":"Disabled"}),children:!f.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:f.opened?"sign-out-alt":"sign-in-alt",selected:f.opened,disabled:f.locked||f.welded,onClick:function(){return u("open-close")},children:f.opened?"Open":"Closed"}),children:!!(f.locked||f.welded)&&(0,e.jsxs)("span",{children:["[Door is ",f.locked?"bolted":"",f.locked&&f.welded?" and ":"",f.welded?"welded":"","!]"]})})]})})]})})}},3648:(q,S,r)=>{"use strict";r.r(S),r.d(S,{KitchenMachine:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(b){var O=(0,s.Oc)(),y=O.act,u=O.data,f=u.name,m=u.operating,d=u.dirty,v=u.broken,_=u.cookVerb,l=u.ingredients,c=l===void 0?[]:l,h=u.reagents,g=h===void 0?[]:h;return v===1?(0,e.jsx)(t.p8,{width:400,height:250,theme:"ntos",children:(0,e.jsx)(t.p8.Content,{children:(0,e.jsx)(n.wn,{title:(0,e.jsx)(n.az,{color:"bad",children:"\u041D\u0435\u0438\u0441\u043F\u0440\u0430\u0432\u043D\u043E\u0441\u0442\u044C!"}),children:(0,e.jsxs)(n.BJ,{vertical:!0,align:"center",mt:2,children:[(0,e.jsx)(n.In,{name:"triangle-exclamation",size:3,color:"bad"}),(0,e.jsx)(n.az,{fontSize:1.5,bold:!0,mt:2,children:"\u0421\u0431\u043E\u0439 \u043E\u0431\u043E\u0440\u0443\u0434\u043E\u0432\u0430\u043D\u0438\u044F"}),(0,e.jsx)(n.az,{textAlign:"center",mt:1,children:"\u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044F \u0440\u0435\u043C\u043E\u043D\u0442"})]})})})}):d===100?(0,e.jsx)(t.p8,{width:400,height:300,theme:"ntos",children:(0,e.jsx)(t.p8.Content,{children:(0,e.jsx)(n.wn,{title:"\u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044F \u043E\u0447\u0438\u0441\u0442\u043A\u0430",children:(0,e.jsxs)(n.BJ,{vertical:!0,align:"center",textAlign:"center",children:[(0,e.jsx)(n.In,{name:"broom",size:3,color:"yellow"}),(0,e.jsxs)(n.az,{bold:!0,mt:1,fontSize:1.2,children:[u.name," \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u043E\u0447\u0438\u0441\u0442\u043A\u0438!"]}),(0,e.jsxs)(n.az,{mt:1,children:["\u0417\u0430\u0433\u0440\u044F\u0437\u043D\u0435\u043D\u0438\u0435: ",u.dirty,"%"]}),(0,e.jsx)(n.az,{mt:2,italic:!0,children:"\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043E\u0447\u0438\u0441\u0442\u0438\u0442\u0435 \u043F\u0435\u0440\u0435\u0434 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u0435\u043C."})]})})})}):m===1?(0,e.jsx)(t.p8,{width:400,height:300,theme:"ntos",children:(0,e.jsx)(t.p8.Content,{children:(0,e.jsx)(n.wn,{title:""+_+"...",children:(0,e.jsxs)(n.BJ,{vertical:!0,align:"center",textAlign:"center",children:[(0,e.jsx)(n.In,{name:"cookie-bite",size:3,spin:!0,mt:1}),(0,e.jsx)(n.az,{mt:2,italic:!0,children:"\u0411\u043B\u044E\u0434\u043E \u0433\u043E\u0442\u043E\u0432\u0438\u0442\u0441\u044F, \u043E\u0436\u0438\u0434\u0430\u0439\u0442\u0435..."})]})})})}):(0,e.jsx)(t.p8,{width:400,height:500,theme:"ntos",children:(0,e.jsx)(t.p8.Content,{children:(0,e.jsxs)(n.wn,{title:(0,e.jsxs)(n.BJ,{align:"center",children:[(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.In,{name:"temperature-high"})}),(0,e.jsx)(n.BJ.Item,{grow:!0,children:f}),(0,e.jsx)(n.BJ.Item,{children:u.dirty>0&&(0,e.jsxs)(n.az,{color:d>70?"bad":d>30?"average":"good",children:[(0,e.jsx)(n.In,{name:"soap"})," ",d,"%"]})})]}),children:[(0,e.jsx)(n.wn,{title:(0,e.jsxs)(n.BJ,{children:[(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.In,{name:"list"})}),(0,e.jsx)(n.BJ.Item,{children:"\u0418\u043D\u0433\u0440\u0435\u0434\u0438\u0435\u043D\u0442\u044B"})]}),children:c.length===0?(0,e.jsx)(n.az,{italic:!0,children:"\u0418\u043D\u0433\u0440\u0435\u0434\u0438\u0435\u043D\u0442\u044B \u043D\u0435 \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u044B"}):(0,e.jsx)(n.Ki,{children:c.map(function(p,j){return(0,e.jsxs)(n.Ki.Item,{label:(0,e.jsx)(n.BJ,{children:(0,e.jsx)(n.BJ.Item,{children:p.name})}),children:[p.amount," \u0448\u0442."]},j)})})}),(0,e.jsx)(n.wn,{title:(0,e.jsxs)(n.BJ,{children:[(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.In,{name:"bottle-droplet"})}),(0,e.jsx)(n.BJ.Item,{children:"\u0412\u0435\u0449\u0435\u0441\u0442\u0432\u0430"})]}),children:g.length===0?(0,e.jsx)(n.az,{italic:!0,children:"\u0412\u0435\u0449\u0435\u0441\u0442\u0432\u0430 \u043D\u0435 \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u044B"}):(0,e.jsx)(n.Ki,{children:g.map(function(p,j){return(0,e.jsxs)(n.Ki.Item,{label:(0,e.jsx)(n.BJ,{children:(0,e.jsx)(n.BJ,{align:"center",children:(0,e.jsx)(n.BJ.Item,{children:p.name})})}),children:[p.volume," \u0435\u0434."]},j)})})}),(0,e.jsxs)(n.BJ,{mt:2,children:[(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(n.$n,{fluid:!0,icon:"power-off",textAlign:"center",disabled:u.ingredients.length===0&&u.reagents.length===0,tooltip:u.ingredients.length===0&&u.reagents.length===0?"\u0421\u043D\u0430\u0447\u0430\u043B\u0430 \u0434\u043E\u0431\u0430\u0432\u044C\u0442\u0435 \u0438\u043D\u0433\u0440\u0435\u0434\u0438\u0435\u043D\u0442\u044B":void 0,onClick:function(){return y("start")},children:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C"})}),(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(n.$n,{fluid:!0,icon:"eject",textAlign:"center",disabled:u.ingredients.length===0&&u.reagents.length===0,tooltip:u.ingredients.length===0&&u.reagents.length===0?"\u041D\u0435\u0442 \u0438\u043D\u0433\u0440\u0435\u0434\u0438\u0435\u043D\u0442\u043E\u0432":void 0,onClick:function(){return y("eject")},children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C"})})]})]})})})}},3655:(q,S,r)=>{"use strict";r.d(S,{b:()=>e});var e=function(s,n,t){return t===void 0&&(t=1e3),fetch(s,n).catch(function(){return new Promise(function(a){setTimeout(function(){e(s,n,t).then(a)},t)})})}},3678:(q,S,r)=>{"use strict";r.r(S),r.d(S,{LawManager:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(u){var f=(0,s.Oc)(),m=f.act,d=f.data,v=d.isAdmin,_=d.isSlaved,l=d.isMalf,c=d.isAIMalf,h=d.view;return(0,e.jsx)(t.p8,{width:800,height:l?620:365,children:(0,e.jsxs)(t.p8.Content,{scrollable:!0,children:[!!(l||c)&&(0,e.jsxs)(n.tU,{children:[(0,e.jsx)(n.tU.Tab,{selected:!h,onClick:function(){return m("set_view",{set_view:0})},children:"Law Management"}),(0,e.jsx)(n.tU.Tab,{selected:h,onClick:function(){return m("set_view",{set_view:1})},children:"Lawsets"})]}),!!(v&&_)&&(0,e.jsxs)(n.IC,{children:["This unit is slaved to ",_,"."]}),!h&&(0,e.jsx)(b,{}),!!h&&(0,e.jsx)(O,{})]})})},b=function(u){var f=(0,s.Oc)(),m=f.act,d=f.data,v=d.has_zeroth_laws,_=d.zeroth_laws,l=d.has_devil_laws,c=d.devil_laws,h=d.has_ion_laws,g=d.ion_laws,p=d.ion_law_nr,j=d.has_inherent_laws,x=d.inherent_laws,C=d.has_supplied_laws,I=d.supplied_laws,P=d.channels,M=d.channel,B=d.isMalf,w=d.isAdmin,T=d.zeroth_law,K=d.ion_law,R=d.inherent_law,U=d.devil_law,F=d.supplied_law,$=d.supplied_law_position;return(0,e.jsxs)(e.Fragment,{children:[!!v&&(0,e.jsx)(y,{title:"ERR_NULL_VALUE",laws:_}),!!l&&(0,e.jsx)(y,{title:"666",laws:c}),!!h&&(0,e.jsx)(y,{title:p,laws:g}),!!j&&(0,e.jsx)(y,{title:"Inherent",laws:x}),!!C&&(0,e.jsx)(y,{title:"Supplied",laws:I}),(0,e.jsx)(n.wn,{title:"Statement Settings",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Statement Channel",children:P.map(function(W){return(0,e.jsx)(n.$n,{selected:W.channel===M,onClick:function(){return m("law_channel",{law_channel:W.channel})},children:W.channel},W.channel)})}),(0,e.jsx)(n.Ki.Item,{label:"State Laws",children:(0,e.jsx)(n.$n,{onClick:function(){return m("state_laws")},children:"State Laws"})}),(0,e.jsx)(n.Ki.Item,{label:"Law Notification",children:(0,e.jsx)(n.$n,{onClick:function(){return m("notify_laws")},children:"Notify"})})]})}),!!B&&(0,e.jsx)(n.wn,{title:"Add Laws",children:(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{width:"10%",children:"Type"}),(0,e.jsx)(n.XI.Cell,{width:"60%",children:"Law"}),(0,e.jsx)(n.XI.Cell,{width:"10%",children:"Index"}),(0,e.jsx)(n.XI.Cell,{width:"20%",children:"Actions"})]}),!!(w&&!v)&&(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{children:"Zero"}),(0,e.jsx)(n.XI.Cell,{children:T}),(0,e.jsx)(n.XI.Cell,{children:"N/A"}),(0,e.jsxs)(n.XI.Cell,{children:[(0,e.jsx)(n.$n,{icon:"pencil-alt",onClick:function(){return m("change_zeroth_law")},children:"Edit"}),(0,e.jsx)(n.$n,{icon:"plus",onClick:function(){return m("add_zeroth_law")},children:"Add"})]})]}),(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{children:"666"}),(0,e.jsx)(n.XI.Cell,{children:U}),(0,e.jsx)(n.XI.Cell,{children:"N/A"}),(0,e.jsxs)(n.XI.Cell,{children:[(0,e.jsx)(n.$n,{icon:"pencil-alt",onClick:function(){return m("change_devil_law")},children:"Edit"}),(0,e.jsx)(n.$n,{icon:"plus",onClick:function(){return m("add_devil_law")},children:"Add"})]})]}),(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{children:"Ion"}),(0,e.jsx)(n.XI.Cell,{children:K}),(0,e.jsx)(n.XI.Cell,{children:"N/A"}),(0,e.jsxs)(n.XI.Cell,{children:[(0,e.jsx)(n.$n,{icon:"pencil-alt",onClick:function(){return m("change_ion_law")},children:"Edit"}),(0,e.jsx)(n.$n,{icon:"plus",onClick:function(){return m("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:R}),(0,e.jsx)(n.XI.Cell,{children:"N/A"}),(0,e.jsxs)(n.XI.Cell,{children:[(0,e.jsx)(n.$n,{icon:"pencil-alt",onClick:function(){return m("change_inherent_law")},children:"Edit"}),(0,e.jsx)(n.$n,{icon:"plus",onClick:function(){return m("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:F}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{onClick:function(){return m("change_supplied_law_position")},children:$})}),(0,e.jsxs)(n.XI.Cell,{children:[(0,e.jsx)(n.$n,{icon:"pencil-alt",onClick:function(){return m("change_supplied_law")},children:"Edit"}),(0,e.jsx)(n.$n,{icon:"plus",onClick:function(){return m("add_supplied_law")},children:"Add"})]})]})]})})]})},O=function(u){var f=(0,s.Oc)(),m=f.act,d=f.data,v=d.law_sets;return(0,e.jsx)(n.az,{children:v.map(function(_){return(0,e.jsx)(n.wn,{title:_.name+" - "+_.header,buttons:(0,e.jsx)(n.$n,{icon:"download",onClick:function(){return m("transfer_laws",{transfer_laws:_.ref})},children:"Load Laws"}),children:(0,e.jsxs)(n.Ki,{children:[!!_.laws.has_ion_laws&&_.laws.ion_laws.map(function(l){return(0,e.jsx)(n.Ki.Item,{label:l.index,children:l.law},l.index)}),!!_.laws.has_devil_laws&&_.laws.devil_laws.map(function(l){return(0,e.jsx)(n.Ki.Item,{label:l.index,children:l.law},l.index)}),!!_.laws.has_zeroth_laws&&_.laws.zeroth_laws.map(function(l){return(0,e.jsx)(n.Ki.Item,{label:l.index,children:l.law},l.index)}),!!_.laws.has_inherent_laws&&_.laws.inherent_laws.map(function(l){return(0,e.jsx)(n.Ki.Item,{label:l.index,children:l.law},l.index)}),!!_.laws.has_supplied_laws&&_.laws.inherent_laws.map(function(l){return(0,e.jsx)(n.Ki.Item,{label:l.index,children:l.law},l.index)})]})},_.name)})})},y=function(u){var f=(0,s.Oc)(),m=f.act,d=f.data,v=d.isMalf;return(0,e.jsx)(n.wn,{title:u.title+" Laws",children:(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{width:"10%",children:"Index"}),(0,e.jsx)(n.XI.Cell,{width:"69%",children:"Law"}),(0,e.jsx)(n.XI.Cell,{width:"21%",children:"State?"})]}),u.laws.map(function(_){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{children:_.index}),(0,e.jsx)(n.XI.Cell,{children:_.law}),(0,e.jsxs)(n.XI.Cell,{children:[(0,e.jsx)(n.$n,{selected:_.state,onClick:function(){return m("state_law",{ref:_.ref,state_law:_.state?0:1})},children:_.state?"Yes":"No"}),!!v&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"pencil-alt",onClick:function(){return m("edit_law",{edit_law:_.ref})},children:"Edit"}),(0,e.jsx)(n.$n,{icon:"trash",color:"red",onClick:function(){return m("delete_law",{delete_law:_.ref})},children:"Delete"})]})]})]},_.law)})]})})}},3721:(q,S,r)=>{"use strict";r.r(S),r.d(S,{MechaControlConsole:()=>b});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=r(9845),b=function(O){var y=(0,s.Oc)(),u=y.act,f=y.data,m=f.beacons;return(0,e.jsx)(t.p8,{width:420,height:500,children:(0,e.jsx)(t.p8.Content,{scrollable:!0,children:m.length&&m.map(function(d){return(0,e.jsx)(n.wn,{title:d.name,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"comment",onClick:function(){return u("send_message",{mt:d.uid})},children:"Message"}),(0,e.jsx)(n.$n.Confirm,{color:"red",icon:"bomb",onClick:function(){return u("shock",{mt:d.uid})},children:"EMP"})]}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Health",children:(0,e.jsx)(n.z2,{ranges:{good:[d.maxHealth*.75,1/0],average:[d.maxHealth*.5,d.maxHealth*.75],bad:[-1/0,d.maxHealth*.5]},value:d.health,maxValue:d.maxHealth})}),(0,e.jsx)(n.Ki.Item,{label:"Cell Charge",children:d.cell&&(0,e.jsx)(n.z2,{ranges:{good:[d.cellMaxCharge*.75,1/0],average:[d.cellMaxCharge*.5,d.cellMaxCharge*.75],bad:[-1/0,d.cellMaxCharge*.5]},value:d.cellCharge,maxValue:d.cellMaxCharge})||(0,e.jsx)(n.IC,{children:"No Cell Installed"})}),(0,e.jsxs)(n.Ki.Item,{label:"Air Tank",children:[d.airtank,"kPa"]}),(0,e.jsx)(n.Ki.Item,{label:"Pilot",children:d.pilot||"Unoccupied"}),(0,e.jsx)(n.Ki.Item,{label:"Location",children:(0,a.Sn)(d.location)||"Unknown"}),(0,e.jsx)(n.Ki.Item,{label:"Active Equipment",children:d.active||"None"}),d.cargoMax&&(0,e.jsx)(n.Ki.Item,{label:"Cargo Space",children:(0,e.jsx)(n.z2,{ranges:{bad:[d.cargoMax*.75,1/0],average:[d.cargoMax*.5,d.cargoMax*.75],good:[-1/0,d.cargoMax*.5]},value:d.cargoUsed,maxValue:d.cargoMax})})||null]})},d.name)})||(0,e.jsx)(n.IC,{children:"No mecha beacons found."})})})}},3741:(q,S,r)=>{"use strict";q.exports=r(9338)},3753:(q,S,r)=>{"use strict";r.r(S),r.d(S,{DropLightningBolt:()=>O});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(y){return Object.entries(y).map(function(u){var f=u[0],m=u[1];return{displayText:m,value:f}})},b=function(y,u){return Object.keys(y).find(function(f){return y[f]===u})},O=function(y){var u=(0,s.Oc)(),f=u.act,m=u.data,d=m.damage,v=m.radius,_=m.delay,l=m.ckey,c=m.players,h=m.pointing,g=m.mode,p=a(c),j=c[l]||l,x=g==="\u041F\u043E \u0438\u0433\u0440\u043E\u043A\u0443",C=g==="\u041F\u043E \u0443\u043A\u0430\u0437\u0430\u0442\u0435\u043B\u044E",I=!g||C;return(0,e.jsx)(t.p8,{width:300,height:280,title:"\u0412\u044B\u0437\u043E\u0432 \u043C\u043E\u043B\u043D\u0438\u0438",theme:"admin",children:(0,e.jsxs)(t.p8.Content,{children:[(0,e.jsxs)(n.wn,{title:g??"\u041D\u0435 \u0432\u044B\u0431\u0440\u0430\u043D \u0440\u0435\u0436\u0438\u043C",children:[x&&(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"\u0418\u0433\u0440\u043E\u043A",buttons:(0,e.jsx)(n.ms,{width:"150px",options:p.map(function(P){return P.displayText}),selected:j,onSelected:function(P){var M=b(c,P);M&&f("pick_player",{ckey:M})}})})}),C&&(0,e.jsx)(n.m_,{content:`\u041F\u0440\u0438 \u0441\u0442\u0430\u0442\u0443\u0441\u0435 \xAB\u041D\u0435 \u0433\u043E\u0442\u043E\u0432\xBB \u2014 \u043D\u0430\u0436\u043C\u0438\u0442\u0435 \u043D\u0430 \u043A\u043D\u043E\u043F\u043A\u0443. \u041F\u043E\u0441\u043B\u0435 \u043D\u0430\u0436\u0430\u0442\u0438\u044F \u0438 \u043F\u0440\u0438 \u043F\u043E\u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0445 \u043A\u043B\u0438\u043A\u0430\u0445 \u043D\u0435 \u043F\u043E \u043A\u043D\u043E\u043F\u043A\u0435 \u2014 \u0432\u044B \u0431\u0443\u0434\u0435\u0442\u0435 \u0434\u0440\u043E\u043F\u0430\u0442\u044C \u043C\u043E\u043B\u043D\u0438\u0438 \u043D\u0430 \u0442\u0430\u0439\u043B/\u043C\u043E\u0431\u0430, - \u043D\u0430 \u043A\u043E\u0442\u043E\u0440\u043E\u0433\u043E \u0443\u043A\u0430\u0437\u044B\u0432\u0430\u0435\u0442 \u043A\u0443\u0440\u0441\u043E\u0440 \u043C\u044B\u0448\u0438.`,position:"bottom",children:(0,e.jsx)(n.$n,{width:"100%",textAlign:"center",selected:h,onClick:function(){return f("set_pointing",{val:!h})},children:h?"\u0413\u043E\u0442\u043E\u0432":"\u041D\u0435 \u0433\u043E\u0442\u043E\u0432"})})]}),(0,e.jsx)(n.wn,{scrollable:!0,title:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0430",buttons:(0,e.jsx)(n.ms,{width:"150px",options:["\u041F\u043E \u0438\u0433\u0440\u043E\u043A\u0443","\u041F\u043E \u0443\u043A\u0430\u0437\u0430\u0442\u0435\u043B\u044E"],selected:g,onSelected:function(P){return f("set_mode",{mode:P})}}),children:(0,e.jsxs)(n.BJ,{vertical:!0,fill:!0,children:[(0,e.jsx)(n.BJ.Item,{children:(0,e.jsxs)(n.BJ,{align:"center",children:[(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(n.az,{children:"\u0423\u0440\u043E\u043D \u043C\u043E\u043B\u043D\u0438\u0438:"})}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.Q7,{maxValue:600,minValue:0,step:1,value:d,onChange:function(P){return f("set_damage",{damage:P})}})})]})}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsxs)(n.BJ,{align:"center",children:[(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(n.az,{children:(0,e.jsx)(n.m_,{content:"\u0412\u043A\u043B\u044E\u0447\u0430\u044F \u0446\u0435\u043D\u0442\u0440, \u0431\u0435\u0437 \u0441\u043D\u0438\u0436\u0435\u043D\u0438\u044F \u0443\u0440\u043E\u043D\u0430 \u0441 \u043E\u0442\u0434\u0430\u043B\u0435\u043D\u0438\u0435\u043C \u043E\u0442 \u0446\u0435\u043D\u0442\u0440\u0430",children:"\u0420\u0430\u0434\u0438\u0443\u0441 \u043F\u043E\u0440\u0430\u0436\u0435\u043D\u0438\u044F:"})})}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.m_,{content:"\u0412\u043A\u043B\u044E\u0447\u0430\u044F \u0446\u0435\u043D\u0442\u0440, \u0431\u0435\u0437 \u0441\u043D\u0438\u0436\u0435\u043D\u0438\u044F \u0443\u0440\u043E\u043D\u0430 \u0441 \u043E\u0442\u0434\u0430\u043B\u0435\u043D\u0438\u0435\u043C \u043E\u0442 \u0446\u0435\u043D\u0442\u0440\u0430",children:(0,e.jsx)(n.Q7,{maxValue:30,minValue:0,step:1,value:v,onChange:function(P){return f("set_radius",{radius:P})}})})})]})}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsxs)(n.BJ,{align:"center",children:[(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(n.az,{children:(0,e.jsx)(n.m_,{content:"\u0412 \u0441\u0435\u043A\u0443\u043D\u0434\u0430\u0445",children:"\u0417\u0430\u0434\u0435\u0440\u0436\u043A\u0430 \u043F\u0435\u0440\u0435\u0434 \u0443\u0434\u0430\u0440\u043E\u043C:"})})}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.m_,{content:"\u0412 \u0441\u0435\u043A\u0443\u043D\u0434\u0430\u0445",children:(0,e.jsx)(n.Q7,{maxValue:60,minValue:0,step:1,value:_,onChange:function(P){return f("set_delay",{delay:P})}})})})]})})]})}),(0,e.jsx)(n.wn,{children:(0,e.jsx)(n.az,{textAlign:"center",children:(0,e.jsx)(n.$n,{icon:"bolt",color:"red",disabled:I,onClick:function(){return f("drop")},children:"\u0412\u044B\u0437\u0432\u0430\u0442\u044C \u043C\u043E\u043B\u043D\u0438\u044E"})})})]})})}},3759:(q,S,r)=>{"use strict";r.r(S),r.d(S,{AnomalyStabilizer:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(b){var y=(0,s.Oc)(),u=y.act,f=y.data,m=f.full_info,d=f.core1_name,v=f.core2_name,_=f.possible_stability,l=f.stability_delta,c=f.pull_range,h=f.choosen_pull_dist,g=f.block_move_time,p=f.block_move_impulses_time,j=f.weaken_val,x=f.weaken_time;return(0,e.jsx)(t.p8,{width:710,height:500,title:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0430 \u0441\u0442\u0430\u0431\u0438\u043B\u0438\u0437\u0430\u0442\u043E\u0440\u0430 \u0430\u043D\u043E\u043C\u0430\u043B\u0438\u0439",children:(0,e.jsxs)(t.p8.Content,{children:[(0,e.jsx)(n.wn,{title:"\u0412\u0441\u0442\u0430\u0432\u043B\u0435\u043D\u043D\u044B\u0435 \u044F\u0434\u0440\u0430",children:O(d,v)}),(0,e.jsxs)(n.az,{mt:"5px",children:["\u0412\u044B\u0431\u043E\u0440 \u0443\u0440\u043E\u0432\u043D\u044F \u0441\u0442\u0430\u0431\u0438\u043B\u0438\u0437\u0430\u0446\u0438\u0438:",(0,e.jsx)(n.Q7,{minValue:-_,maxValue:_,step:1,value:l,onChange:function(C){return u("change_stability",{new_val:C})}})]}),m?(0,e.jsx)(n.az,{italic:!0,mt:"5px",children:"\u0427\u0442\u043E\u0431\u044B \u0440\u0430\u0441\u0448\u0438\u0440\u0438\u0442\u044C \u043E\u0431\u043B\u0430\u0441\u0442\u044C \u0434\u043E\u043F\u0443\u0441\u0442\u0438\u043C\u044B\u0445 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0439 \u0438\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u044F \u0441\u0442\u0430\u0431\u0438\u043B\u044C\u043D\u043E\u0441\u0442\u0438, \u0432\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u0432\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u044F\u0434\u0440\u043E \u044D\u043D\u0435\u0440\u0433\u0435\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0430\u043D\u043E\u043C\u0430\u043B\u0438\u0438. \u0417\u0430\u0442\u0440\u0430\u0442\u044B \u044D\u043D\u0435\u0440\u0433\u0438\u0438 \u043F\u0440\u0438 \u0438\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u0438 \u0441\u0442\u0430\u0431\u0438\u043B\u044C\u043D\u043E\u0441\u0442\u0438 \u043D\u0430 \u0425 \u043F\u043E\u0432\u044B\u0448\u0435\u043D\u044B \u0432 \u0425*\u0425 \u0440\u0430\u0437 \u043F\u0440\u0438 \u0425 \u043D\u0435 \u0440\u0430\u0432\u043D\u043E\u043C 0."}):null,(0,e.jsxs)(n.az,{mt:"5px",children:["\u0412\u044B\u0431\u043E\u0440 \u0441\u0438\u043B\u044B \u043F\u0440\u0438\u0442\u044F\u0436\u0435\u043D\u0438\u044F:",(0,e.jsx)(n.Q7,{minValue:-c,maxValue:c,step:1,value:h,onChange:function(C){return u("change_pull_dist",{new_val:C})}})]}),m?(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.az,{italic:!0,mt:"5px",children:"\u0427\u0442\u043E\u0431\u044B \u0434\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0441\u043D\u0430\u0440\u044F\u0434\u0430\u043C \u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E\u0441\u0442\u044C \u043F\u0440\u0438\u0442\u044F\u0433\u0438\u0432\u0430\u0442\u044C \u0430\u043D\u043E\u043C\u0430\u043B\u0438\u044E, \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u043E \u0432\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u044F\u0434\u0440\u043E \u0433\u0440\u0430\u0432\u0438\u0442\u0430\u0446\u0438\u043E\u043D\u043D\u043E\u0439 \u0430\u043D\u043E\u043C\u0430\u043B\u0438\u0438. \u041F\u0440\u0438 \u043E\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043B\u044C\u043D\u043E\u0439 \u0441\u0438\u043B\u0435 \u043F\u0440\u0438\u0442\u044F\u0436\u0435\u043D\u0438\u044F, \u0430\u043D\u043E\u043C\u0430\u043B\u0438\u044E \u0431\u0443\u0434\u0435\u0442 \u043E\u0442\u0442\u0430\u043B\u043A\u0438\u0432\u0430\u0442\u044C \u043D\u0430 \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u043E\u0435 \u043A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u0448\u0430\u0433\u043E\u0432."}),(0,e.jsxs)(n.az,{italic:!0,mt:"5px",children:["\u0421\u043D\u0430\u0440\u044F\u0434\u044B \u0431\u0443\u0434\u0443\u0442 \u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0435\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043D\u043D\u043E\u0435 \u043F\u0435\u0440\u0435\u0434\u0432\u0438\u0436\u0435\u043D\u0438\u0435 \u0430\u043D\u043E\u043C\u0430\u043B\u0438\u0438 \u043D\u0430 \u0432\u0440\u0435\u043C\u044F \u0440\u0430\u0432\u043D\u043E\u0435 ",g/10," \u0432 \u0441\u0435\u043A\u0443\u043D\u0434\u0430\u0445. \u0414\u043B\u044F \u0443\u0432\u0435\u043B\u0438\u0447\u0435\u043D\u0438\u044F \u044D\u0442\u043E\u0433\u043E \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F \u0434\u043E\u0431\u0430\u0432\u044C\u0442\u0435 \u044F\u0434\u0440\u043E \u0432\u0438\u0445\u0440\u0435\u0432\u043E\u0439 \u0430\u043D\u043E\u043C\u0430\u043B\u0438\u0438."]}),(0,e.jsxs)(n.az,{italic:!0,mt:"5px",children:["\u0421\u043D\u0430\u0440\u044F\u0434\u044B \u0431\u0443\u0434\u0443\u0442 \u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0438\u043C\u043F\u0443\u043B\u044C\u0441\u044B \u043F\u0435\u0440\u0435\u043C\u0435\u0449\u0430\u044E\u0449\u0438\u0435 \u0430\u043D\u043E\u043C\u0430\u043B\u0438\u044E \u043D\u0430 \u0432\u0440\u0435\u043C\u044F \u0440\u0430\u0432\u043D\u043E\u0435 ",p/10," \u0432 \u0441\u0435\u043A\u0443\u043D\u0434\u0430\u0445. \u0414\u043B\u044F \u0443\u0432\u0435\u043B\u0438\u0447\u0435\u043D\u0438\u044F \u044D\u0442\u043E\u0433\u043E \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F \u0434\u043E\u0431\u0430\u0432\u044C\u0442\u0435 \u044F\u0434\u0440\u043E \u0431\u043B\u044E\u0441\u043F\u0435\u0439\u0441 \u0430\u043D\u043E\u043C\u0430\u043B\u0438\u0438."]}),(0,e.jsxs)(n.az,{italic:!0,mt:"5px",children:["\u0421\u043D\u0430\u0440\u044F\u0434\u044B \u0431\u0443\u0434\u0443\u0442 \u043E\u0441\u043B\u0430\u0431\u043B\u044F\u0442\u044C \u044D\u0444\u0444\u0435\u043A\u0442\u044B \u0430\u043D\u043E\u043C\u0430\u043B\u0438\u0438 \u043D\u0430 \u0432\u0440\u0435\u043C\u044F \u0440\u0430\u0432\u043D\u043E\u0435",x/10," \u0432 \u0441\u0435\u043A\u0443\u043D\u0434\u0430\u0445. \u041E\u0441\u043B\u0430\u0431\u043B\u0435\u043D\u0438\u0435 \u0431\u0443\u0434\u0435\u0442 \u043F\u043E\u043D\u0438\u0436\u0430\u0442\u044C \u044D\u0444\u0444\u0435\u043A\u0442\u044B \u0434\u043E \u0443\u0440\u043E\u0432\u043D\u044F \u0430\u043D\u043E\u043C\u0430\u043B\u0438\u0438 \u0441 \u0441\u0438\u043B\u043E\u0439 \u043D\u0430",j," \u043C\u0435\u043D\u044C\u0448\u0435 \u0442\u0435\u043A\u0443\u0449\u0435\u0439, \u043D\u043E \u043D\u0435 \u043D\u0438\u0436\u0435 10. \u0414\u043B\u044F \u0443\u0432\u0435\u043B\u0438\u0447\u0435\u043D\u0438\u044F \u044D\u0442\u0438\u0445 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0439 \u0434\u043E\u0431\u0430\u0432\u044C\u0442\u0435 \u044F\u0434\u0440\u043E \u0430\u0442\u043C\u043E\u0441\u0444\u0435\u0440\u043D\u043E\u0439 \u0430\u043D\u043E\u043C\u0430\u043B\u0438\u0438."]})]}):null,(0,e.jsx)(n.$n,{mt:"5px",onClick:function(){return u("toggle_full_info")},children:m?"\u0421\u043A\u0440\u044B\u0442\u044C":"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0441\u043F\u0440\u0430\u0432\u043A\u0443"})]})})},O=function(b,y){var u=(0,s.Oc)().act;return b==="\u041F\u0443\u0441\u0442\u043E\u0439"?null:y==="\u041F\u0443\u0441\u0442\u043E\u0439"?(0,e.jsx)(n.$n,{onClick:function(){return u("eject1",{})},children:b}):(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.$n,{onClick:function(){return u("eject1",{})},children:b}),(0,e.jsx)(n.$n,{onClick:function(){return u("eject2",{})},children:y})]})}},3774:(q,S,r)=>{"use strict";r.r(S),r.d(S,{IntegratedCircuit:()=>j});var e=r(1131),s=r(360),n=r(5180),t=r(7003),a=r(3521),O=r(1243),b=r(9699),y=r(8968),u=r(6158),f=r(8712),m=r(9435),d=r(33),v=r(6194);function _(x,C){(C==null||C>x.length)&&(C=x.length);for(var I=0,P=new Array(C);I=x.length?{done:!0}:{done:!1,value:x[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 j=function(x){"use strict";c(C,x);function C(P){var M;return M=x.call(this,P)||this,M.timeUntilPortReleaseTimesOut=0,M.state={locations:{},selectedPort:null,mouseX:null,mouseY:null,zoom:1,backgroundX:0,backgroundY:0,variableMenuOpen:!1,componentMenuOpen:!1},M.handlePortLocation=M.handlePortLocation.bind(M),M.handleMouseDown=M.handleMouseDown.bind(M),M.handleMouseUp=M.handleMouseUp.bind(M),M.handlePortClick=M.handlePortClick.bind(M),M.handlePortRightClick=M.handlePortRightClick.bind(M),M.handlePortUp=M.handlePortUp.bind(M),M.handleDragging=M.handleDragging.bind(M),M.handlePortRelease=M.handlePortRelease.bind(M),M.handleZoomChange=M.handleZoomChange.bind(M),M.handleBackgroundMoved=M.handleBackgroundMoved.bind(M),M.onVarClickedSetter=M.onVarClickedSetter.bind(M),M.onVarClickedGetter=M.onVarClickedGetter.bind(M),M.handleVarDropped=M.handleVarDropped.bind(M),M.handleMouseDownComponent=M.handleMouseDownComponent.bind(M),M.handleComponentDropped=M.handleComponentDropped.bind(M),M.handleDisplayLocation=M.handleDisplayLocation.bind(M),M}var I=C.prototype;return I.getPosition=function(M){for(var B=0,w=0;M;)B+=M.offsetLeft,w+=M.offsetTop,M=M.offsetParent;return{x:B,y:w+y.ABSOLUTE_Y_OFFSET}},I.handleDisplayLocation=function(M){if(M){var B=this.getPosition(M);this.setState({draggingComponentPos:B,draggingOffsetX:M.offsetWidth/2,draggingOffsetY:M.offsetHeight/2})}},I.handlePortLocation=function(M,B){var w=this.state.locations;if(B){var T=w[M.ref],K=this.getPosition(B);K.color=M.color,!(isNaN(K.x)||isNaN(K.y)||T&&T.x===K.x&&T.y===K.y)&&(w[M.ref]=K,this.setState({locations:w}))}},I.handlePortClick=function(M,B,w,T,K){if(this.state.selectedPort){this.handlePortUp(M,B,w,T,K);return}K.button===y.MOUSE_BUTTON_LEFT&&(K.stopPropagation(),this.setState({selectedPort:{index:M,component_id:B,is_output:T,ref:w.ref}}),this.handleDragging(K),this.timeUntilPortReleaseTimesOut=Date.now()+y.TIME_UNTIL_PORT_RELEASE_WORKS,window.addEventListener("mousemove",this.handleDragging),window.addEventListener("mouseup",this.handlePortRelease))},I.handlePortUp=function(M,B,w,T,K){var R=(0,s.Oc)(),U=R.act,F=R.data,$=this.state.selectedPort;if($&&$.is_output!==T){this.setState({selectedPort:null});var W;T?W={input_port_id:$.index,output_port_id:M,input_component_id:$.component_id,output_component_id:B}:W={input_port_id:M,output_port_id:$.index,input_component_id:B,output_component_id:$.component_id},U("add_connection",W);var N=F.components,Z=W.input_component_id,ie=W.input_port_id,Q=W.output_component_id,V=W.output_port_id,G=N[Z-1],le=G.input_ports[ie-1],xe=N[Q-1],de=xe.output_ports[V-1];!le||le.type!==de.type||le.connected_to.push(T?w.ref:$.ref)}},I.handleDragging=function(M){var B=(0,s.Oc)().data,w=B.screen_x,T=B.screen_y;this.setState(function(K){return{mouseX:(M.clientX-(K.backgroundX||w))*Math.pow(K.zoom,-1),mouseY:(M.clientY-(K.backgroundY||T))*Math.pow(K.zoom,-1)}})},I.handlePortRelease=function(M){window.removeEventListener("mouseup",this.handlePortRelease),!(this.timeUntilPortReleaseTimesOut>Date.now())&&(this.setState({selectedPort:null}),window.removeEventListener("mousemove",this.handleDragging))},I.handlePortRightClick=function(M,B,w,T,K){var R=(0,s.Oc)().act;K.preventDefault(),R("remove_connection",{component_id:B,is_input:!T,port_id:M})},I.handleZoomChange=function(M){this.setState({zoom:M})},I.handleBackgroundMoved=function(M,B){this.setState({backgroundX:M,backgroundY:B})},I.componentDidMount=function(){window.addEventListener("mousedown",this.handleMouseDown),window.addEventListener("mouseup",this.handleMouseUp)},I.componentWillUnmount=function(){window.removeEventListener("mousedown",this.handleMouseDown),window.removeEventListener("mouseup",this.handleMouseUp)},I.handleMouseDown=function(M){var B=(0,s.Oc)(),w=B.act,T=B.data,K=T.examined_name;K&&w("remove_examined_component"),this.state.selectedPort&&this.handlePortRelease(M)},I.handleMouseUp=function(M){var B=(0,s.Oc)().act,w=this.state,T=w.backgroundX,K=w.backgroundY;T&&K&&B("move_screen",{screen_x:T,screen_y:K})},I.onVarClickedSetter=function(M,B){this.handleVarClicked(M,B,!0)},I.onVarClickedGetter=function(M,B){this.handleVarClicked(M,B,!1)},I.handleVarClicked=function(M,B,w){var T={name:w?"\u0421\u0435\u0442\u0442\u0435\u0440":"\u0413\u0435\u0442\u0442\u0435\u0440",description:"\u042D\u0442\u043E \u043A\u043E\u043C\u043F\u043E\u043D\u0435\u043D\u0442",color:"blue",input_ports:[],output_ports:[]};w?T.input_ports=[{name:"\u0412\u0432\u043E\u0434",type:B.datatype,color:B.color}]:T.output_ports=[{name:"\u0417\u043D\u0430\u0447\u0435\u043D\u0438\u0435",type:B.datatype,color:B.color}],this.setState({draggingComponent:T,draggingVariable:B.name,variableIsSetter:w}),this.handleDragging(M),window.addEventListener("mouseup",this.handleVarDropped),window.addEventListener("mousemove",this.handleDragging)},I.handleVarDropped=function(M){var B=(0,s.Oc)(),w=B.data,T=B.act,K=this.state,R=K.draggingVariable,U=K.variableIsSetter,F=K.mouseX,$=K.mouseY,W=K.zoom,N=K.draggingComponentPos;if(this.setState({draggingVariable:null,variableIsSetter:null,draggingComponent:null}),window.removeEventListener("mousemove",this.handleDragging),window.removeEventListener("mouseup",this.handleVarDropped),!M.defaultPrevented){var Z=F-(F-N.x),ie=$-($-N.y);T("add_setter_or_getter",{variable:R,is_setter:U,rel_x:Z,rel_y:ie+y.ABSOLUTE_Y_OFFSET*Math.pow(this.state.zoom,-1)})}},I.handleMouseDownComponent=function(M,B){this.setState({draggingComponent:B}),this.handleDragging(M),window.addEventListener("mousemove",this.handleDragging),window.addEventListener("mouseup",this.handleComponentDropped)},I.handleComponentDropped=function(M){var B=(0,s.Oc)().act,w=this.state,T=w.draggingComponent,K=w.draggingComponentPos,R=w.mouseX,U=w.mouseY;if(this.setState({draggingComponent:null}),window.removeEventListener("mouseup",this.handleComponentDropped),window.removeEventListener("mousemove",this.handleDragging),!M.defaultPrevented){var F=R-(R-K.x),$=U-(U-K.y);B("print_component",{component_to_print:T.type,rel_x:F,rel_y:$+y.ABSOLUTE_Y_OFFSET*Math.pow(this.state.zoom,-1)})}},I.render=function(){for(var M=this,B=(0,s.Oc)(),w=B.act,T=B.data,K=T.components,R=T.display_name,U=T.examined_name,F=T.examined_desc,$=T.examined_notices,W=T.examined_rel_x,N=T.examined_rel_y,Z=T.screen_x,ie=T.screen_y,Q=T.grid_mode,V=T.is_admin,G=T.variables,le=T.global_basic_types,xe=T.stored_designs,de=this.state,me=de.mouseX,pe=de.mouseY,Me=de.locations,Ke=de.selectedPort,Le=de.variableMenuOpen,Se=de.componentMenuOpen,ln=de.draggingComponent,ze=de.draggingOffsetX,We=de.draggingOffsetY,fn=[],Ze=p(K),In;!(In=Ze()).done;){var En=In.value;if(En!==null)for(var Yn=p(En.input_ports),Xn;!(Xn=Yn()).done;)for(var ct=Xn.value,Ot=p(ct.connected_to),_t;!(_t=Ot()).done;){var Nt=_t.value,nr=Me[Nt];fn.push({color:nr&&nr.color||"blue",from:nr,to:Me[ct.ref]})}}if(Ke){var cn=Ke.is_output,wn=Me[Ke.ref],it={x:me,y:pe+y.ABSOLUTE_Y_OFFSET*Math.pow(this.state.zoom,-1)};fn.push({color:wn&&wn.color||"blue",from:cn?wn:it,to:cn?it:wn})}return(0,e.jsx)(a.p8,{width:1200,height:800,buttons:(0,e.jsxs)(n.BJ,{children:[(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.pd,{placeholder:"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435",value:R,maxLength:24,expensive:!0,onChange:function(Kn){return w("set_display_name",{display_name:Kn})}})}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.$n,{color:"transparent",tooltip:"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043C\u0435\u043D\u044E \u043F\u0435\u0440\u0435\u043C\u0435\u043D\u043D\u044B\u0445",icon:"cog",selected:Le,onClick:function(){return M.setState(function(Kn){return{variableMenuOpen:!Kn.variableMenuOpen}})}})}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.$n,{color:"transparent",tooltip:"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043C\u0435\u043D\u044E \u043A\u043E\u043C\u043F\u043E\u043D\u0435\u043D\u0442\u043E\u0432",icon:"plus",selected:Se,onClick:function(){return M.setState(function(Kn){return{componentMenuOpen:!Kn.componentMenuOpen}})}})}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.$n,{color:"transparent",tooltip:"\u041F\u0440\u0438\u0432\u044F\u0437\u043A\u0430 \u043A \u0441\u0435\u0442\u043A\u0435",icon:"th-large",selected:Q,onClick:function(){return w("toggle_grid_mode")}})}),!!V&&(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.$n,{color:"transparent",onClick:function(){return w("save_circuit")},icon:"save"})})]}),children:(0,e.jsxs)(a.p8.Content,{style:{backgroundImage:"none"},children:[(0,e.jsxs)(n.xO,{width:"100%",height:"100%",backgroundImage:(0,O.l)("grid_background.png"),imageWidth:900,onZoomChange:this.handleZoomChange,onBackgroundMoved:this.handleBackgroundMoved,initialLeft:Z,initialTop:ie,children:[K.map(function(Kn,Pt){return Kn&&(0,e.jsx)(f.ObjectComponent,l({},Kn,{zoom:M.state.zoom,index:Pt+1,onPortUpdated:M.handlePortLocation,onPortLoaded:M.handlePortLocation,onPortMouseDown:M.handlePortClick,onPortRightClick:M.handlePortRightClick,onPortMouseUp:M.handlePortUp,act:w,gridMode:Q}),Pt)}),!!ln&&(0,e.jsx)(m.DisplayComponent,{component:ln,left:""+(me-ze)+"px",top:""+(pe-We)+"px",onDisplayUpdated:this.handleDisplayLocation,onDisplayLoaded:this.handleDisplayLocation,style:{position:"absolute"}}),(0,e.jsx)(u.Connections,{connections:fn})]}),!!U&&(0,e.jsx)(b.CircuitInfo,{position:"absolute",className:"CircuitInfo__Examined",top:""+N+"px",left:""+W+"px",name:U,desc:F,notices:$}),!!Le&&(0,e.jsx)(n.az,{position:"absolute",left:0,bottom:0,height:"20%",minHeight:"175px",minWidth:"600px",width:"50%",style:{borderRadius:"0px 32px 0px 0px",backgroundColor:"rgba(0, 0, 0, 0.3)",userSelect:"none"},children:(0,e.jsx)(d.VariableMenu,{variables:G,types:le,onClose:function(Kn){return M.setState({variableMenuOpen:!1})},onAddVariable:function(Kn,Pt,Mt,sr){return w("add_variable",{variable_name:Kn,variable_datatype:Pt,is_list:Mt===y.VARIABLE_LIST,is_assoc_list:Mt===y.VARIABLE_ASSOC_LIST})},onRemoveVariable:function(Kn){return w("remove_variable",{variable_name:Kn})},handleMouseDownSetter:this.onVarClickedSetter,handleMouseDownGetter:this.onVarClickedGetter})}),!!Se&&(0,e.jsx)(n.az,{position:"absolute",right:0,top:0,height:"100%",width:"300px",style:{backgroundColor:"rgba(0, 0, 0, 0.3)",userSelect:"none"},children:(0,e.jsx)(v.ComponentMenu,{components:xe&&Object.keys(xe)||[],onClose:function(Kn){return M.setState({componentMenuOpen:!1})},onMouseDownComponent:this.handleMouseDownComponent,showAll:V})})]})})},C}(t.Component)},3777:()=>{},3789:(q,S,r)=>{"use strict";r.r(S),r.d(S,{SuitStorage:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(u){var f=(0,s.Oc)().data,m=f.uv;return(0,e.jsx)(t.p8,{width:402,height:268,children:(0,e.jsxs)(t.p8.Content,{className:"Layout__content--flexColumn",children:[!!m&&(0,e.jsx)(n.Rr,{backgroundColor:"black",opacity:.85,children:(0,e.jsx)(n.so,{children:(0,e.jsxs)(n.so.Item,{bold:!0,textAlign:"center",mb:2,children:[(0,e.jsx)(n.In,{name:"spinner",spin:1,size:4,mb:4}),(0,e.jsx)("br",{}),"Disinfection of contents in progress..."]})})}),(0,e.jsx)(O,{}),(0,e.jsx)(y,{})]})})},O=function(u){var f=(0,s.Oc)(),m=f.act,d=f.data,v=d.helmet,_=d.suit,l=d.magboots,c=d.mask,h=d.storage,g=d.open,p=d.locked;return(0,e.jsx)(n.wn,{title:"Stored Items",flexGrow:!0,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:p?"unlock":"lock",disabled:g,onClick:function(){return m("toggle_lock")},children:p?"Unlock":"Lock"}),(0,e.jsx)(n.$n,{icon:g?"times-circle":"expand",color:g?"red":"green",disabled:p,onClick:function(){return m("toggle_open")},children:g?"Close unit":"Open unit"})]}),children:g&&!p?(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(b,{object:v,label:"Helmet",missingText:"helmet",eject:"dispense_helmet"}),(0,e.jsx)(b,{object:_,label:"Suit",missingText:"suit",eject:"dispense_suit"}),(0,e.jsx)(b,{object:l,label:"Magboots",missingText:"magboots",eject:"dispense_magboots"}),(0,e.jsx)(b,{object:c,label:"Breathmask",missingText:"mask",eject:"dispense_mask"}),(0,e.jsx)(b,{object:h,label:"Storage",missingText:"storage item",eject:"dispense_storage"})]}):(0,e.jsx)(n.so,{height:"100%",children:(0,e.jsxs)(n.so.Item,{bold:!0,grow:"1",textAlign:"center",align:"center",color:"label",children:[(0,e.jsx)(n.In,{name:p?"lock":"exclamation-circle",size:5,mb:3}),(0,e.jsx)("br",{}),p?"The unit is locked.":"The unit is closed."]})})})},b=function(u){var f=(0,s.Oc)().act,m=u.object,d=u.label,v=u.missingText,_=u.eject;return(0,e.jsx)(n.Ki.Item,{label:d,children:(0,e.jsx)(n.az,{my:.5,children:m?(0,e.jsx)(n.$n,{my:-1,icon:"eject",onClick:function(){return f(_)},children:m}):(0,e.jsxs)(n.az,{color:"silver",bold:!0,children:["No ",v," found."]})})})},y=function(u){var f=(0,s.Oc)(),m=f.act,d=f.data;return(0,e.jsx)(n.wn,{children:(0,e.jsx)(n.$n,{fluid:!0,icon:"cog",textAlign:"center",disabled:d.locked,onClick:function(){return m("cook")},children:"Start Disinfection Cycle"})})}},3793:(q,S,r)=>{"use strict";r.r(S),r.d(S,{ExosuitFabricator:()=>d});var e=r(1131),s=r(185),n=r(9845),t=r(360),a=r(7003),O=r(5180),b=r(3814),y=r(3521);function u(){return u=Object.assign||function(p){for(var j=1;j=0)&&(x[I]=p[I]);return x}var m=2e3,d=function(p){var j=(0,t.Oc)().data,x=j.building;return(0,e.jsx)(y.p8,{width:950,height:625,children:(0,e.jsx)(y.p8.Content,{className:"Exofab",children:(0,e.jsxs)(O.BJ,{fill:!0,children:[(0,e.jsx)(O.BJ.Item,{grow:!0,children:(0,e.jsxs)(O.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(O.BJ.Item,{grow:!0,children:(0,e.jsx)(_,{})}),x&&(0,e.jsx)(O.BJ.Item,{children:(0,e.jsx)(l,{})})]})}),(0,e.jsx)(O.BJ.Item,{width:"30%",children:(0,e.jsxs)(O.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(O.BJ.Item,{grow:!0,children:(0,e.jsx)(v,{})}),(0,e.jsx)(O.BJ.Item,{grow:!0,children:(0,e.jsx)(c,{})})]})})]})})})},v=function(p){var j=(0,t.Oc)(),x=j.act,C=j.data,I=C.materials,P=C.capacity,M=Object.values(I).reduce(function(B,w){return B+w},0);return(0,e.jsx)(O.wn,{fill:!0,scrollable:!0,title:"\u041C\u0430\u0442\u0435\u0440\u0438\u0430\u043B\u044B",className:"Exofab__materials",buttons:(0,e.jsxs)(O.az,{color:"label",mt:"0.25rem",children:[(M/P*100).toPrecision(3),"/100%"]}),children:["metal","glass","silver","gold","uranium","titanium","plasma","diamond","bluespace","bananium","tranquillite","plastic"].map(function(B){return(0,e.jsx)(h,{mt:-2,id:B,bold:B==="metal"||B==="glass",onClick:function(){return x("withdraw",{id:B})}},B)})})},_=function(p){var j=(0,t.Oc)(),x=j.act,C=j.data,I=C.curCategory,P=C.categories,M=C.designs,B=C.syncing,w=(0,a.useState)(""),T=w[0],K=w[1],R=(0,n.XZ)(T,function(F){return F.name}),U=M.filter(R);return(0,e.jsxs)(O.wn,{fill:!0,scrollable:!0,className:"Exofab__designs",title:(0,e.jsx)(O.ms,{className:"Exofab__dropdown",selected:I,options:P,onSelected:function(F){return x("category",{cat:F})}}),buttons:(0,e.jsxs)(O.az,{mt:-3.5,children:[(0,e.jsx)(O.$n,{icon:"plus",tooltip:"\u0414\u043E\u0431\u0430\u0432\u043B\u0435\u0438\u0435 \u0432\u0441\u0435\u0445 \u0448\u0430\u0431\u043B\u043E\u043D\u043E\u0432 \u0438\u0437 \u043A\u0430\u0442\u0435\u0433\u043E\u0440\u0438\u0438 \u0432 \u043E\u0447\u0435\u0440\u0435\u0434\u044C \u043F\u0435\u0447\u0430\u0442\u0438.",onClick:function(){return x("queueall")},children:"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0432\u0441\u0451"}),(0,e.jsx)(O.$n,{disabled:B,iconSpin:B,icon:"sync-alt",onClick:function(){return x("sync")},children:B?"\u0421\u0438\u043D\u0445\u0440\u043E\u043D\u0438\u0437\u0430\u0446\u0438\u044F...":"\u0421\u0438\u043D\u0445\u0440\u043E\u043D\u0438\u0437\u0430\u0446\u0438\u044F \u0441 \u0441\u0435\u0442\u044C\u044E \u041D\u0418\u041E"})]}),children:[(0,e.jsx)(O.pd,{placeholder:"\u041F\u043E\u0438\u0441\u043A...",mb:"0.5rem",width:"100%",expensive:!0,onChange:K}),U.map(function(F){return(0,e.jsx)(g,{design:F},F.id)}),U.length===0&&(0,e.jsx)(O.az,{color:"label",children:"\u0428\u0430\u0431\u043B\u043E\u043D\u044B \u043F\u0435\u0447\u0430\u0442\u0438 \u043D\u0435 \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043D\u044B."})]})},l=function(p){var j=(0,t.Oc)().data,x=j.building,C=j.buildStart,I=j.buildEnd,P=j.worldTime;return(0,e.jsx)(O.wn,{className:"Exofab__building",stretchContents:!0,children:(0,e.jsx)(O.z2.Countdown,{start:C,current:P,end:I,children:(0,e.jsxs)(O.BJ,{children:[(0,e.jsx)(O.BJ.Item,{children:(0,e.jsx)(O.In,{name:"cog",spin:!0})}),(0,e.jsxs)(O.BJ.Item,{children:["\u041F\u0435\u0447\u0430\u0442\u044C ",x,"\xA0(",(0,e.jsx)(b.G,{current:P,timeLeft:I-P,format:function(M,B){return B.substr(3)}}),")"]})]})})})},c=function(p){var j=(0,t.Oc)(),x=j.act,C=j.data,I=C.queue,P=C.processingQueue,M=Object.entries(C.queueDeficit).filter(function(w){return w[1]<0}),B=I.reduce(function(w,T){return w+T.time},0);return(0,e.jsx)(O.wn,{fill:!0,scrollable:!0,className:"Exofab__queue",title:"\u041E\u0447\u0435\u0440\u0435\u0434\u044C",buttons:(0,e.jsxs)(O.az,{children:[(0,e.jsx)(O.$n,{selected:P,icon:P?"toggle-on":"toggle-off",onClick:function(){return x("process")},children:"\u041F\u0435\u0447\u0430\u0442\u044C"}),(0,e.jsx)(O.$n,{disabled:I.length===0,icon:"eraser",onClick:function(){return x("unqueueall")},children:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C"})]}),children:(0,e.jsx)(O.BJ,{fill:!0,vertical:!0,children:I.length===0?(0,e.jsx)(O.az,{color:"label",children:"\u041E\u0447\u0435\u0440\u0435\u0434\u044C \u043F\u0435\u0447\u0430\u0442\u0438 \u043F\u0443\u0441\u0442\u0430."}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(O.BJ.Item,{className:"Exofab__queue--queue",grow:!0,overflow:"auto",children:I.map(function(w,T){return(0,e.jsxs)(O.az,{color:w.notEnough&&"bad",children:[T+1,". ",w.name,T>0&&(0,e.jsx)(O.$n,{icon:"arrow-up",onClick:function(){return x("queueswap",{from:T+1,to:T})}}),T0&&(0,e.jsxs)(O.BJ.Item,{className:"Exofab__queue--time",children:[(0,e.jsx)(O.cG,{}),"\u0412\u0440\u0435\u043C\u044F \u043F\u0435\u0447\u0430\u0442\u0438:",(0,e.jsx)(O.In,{name:"clock",mx:"0.5rem"}),(0,e.jsx)(O.az,{inline:!0,bold:!0,children:new Date(B/10*1e3).toISOString().substr(14,5)})]}),Object.keys(M).length>0&&(0,e.jsxs)(O.BJ.Item,{className:"Exofab__queue--deficit",shrink:0,children:[(0,e.jsx)(O.cG,{}),"\u041D\u0435\u0434\u043E\u0441\u0442\u0430\u0442\u043E\u0447\u043D\u043E \u0441\u044B\u0440\u044C\u044F \u0434\u043B\u044F \u043F\u0435\u0447\u0430\u0442\u0438:",M.map(function(w){return(0,e.jsx)(O.az,{children:(0,e.jsx)(h,{id:w[0],amount:-w[1],lineDisplay:!0})},w[0])})]})]})})})},h=function(p){var j=(0,t.Oc)().data,x=p.id,C=p.amount,I=p.lineDisplay,P=p.onClick,M=f(p,["id","amount","lineDisplay","onClick"]),B=j.materials[x]||0,w=C||B;if(!(w<=0&&!(x==="metal"||x==="glass"))){var T=C&&C>B;return(0,e.jsx)(O.BJ,u({align:"center",className:(0,s.Ly)(["Exofab__material",I&&"Exofab__material--line"])},M,{children:I?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(O.BJ.Item,{className:(0,s.Ly)(["materials32x32",x])}),(0,e.jsx)(O.BJ.Item,{className:"Exofab__material--amount",color:T&&"bad",ml:0,mr:1,children:w.toLocaleString("en-US")})]}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(O.BJ.Item,{basis:"content",children:(0,e.jsx)(O.$n,{width:"85%",color:"transparent",onClick:P,children:(0,e.jsx)(O.az,{mt:1,className:(0,s.Ly)(["materials32x32",x])})})}),(0,e.jsxs)(O.BJ.Item,{grow:1,children:[(0,e.jsx)(O.az,{className:"Exofab__material--name",children:x}),(0,e.jsxs)(O.az,{className:"Exofab__material--amount",children:[w.toLocaleString("en-US")," \u0441\u043C\xB3 (",Math.round(w/m*10)/10," \u043B\u0438\u0441\u0442",(0,n.bl)(Math.round(w/m*10)/10,"","\u0430","\u043E\u0432"),")"]})]})]})}))}},g=function(p){var j=(0,t.Oc)(),x=j.act,C=j.data,I=p.design;return(0,e.jsxs)(O.az,{className:"Exofab__design",children:[(0,e.jsx)(O.$n,{disabled:I.notEnough||C.building,tooltip:I.desc,icon:"cog",onClick:function(){return x("build",{id:I.id})},children:I.name}),(0,e.jsx)(O.$n,{icon:"plus-circle",onClick:function(){return x("queue",{id:I.id})}}),(0,e.jsx)(O.az,{className:"Exofab__design--cost",children:Object.entries(I.cost).map(function(P){return(0,e.jsx)(O.az,{children:(0,e.jsx)(h,{id:P[0],amount:P[1],lineDisplay:!0})},P[0])})}),(0,e.jsx)(O.BJ,{className:"Exofab__design--time",children:(0,e.jsxs)(O.BJ.Item,{children:[(0,e.jsx)(O.In,{name:"clock"}),I.time>0?(0,e.jsxs)(e.Fragment,{children:[I.time/10," \u0441\u0435\u043A\u0443\u043D\u0434",(0,n.bl)(I.time/10,"\u0443","\u044B","")]}):"\u041C\u0433\u043D\u043E\u0432\u0435\u043D\u043D\u043E"]})})]})}},3813:(q,S,r)=>{"use strict";r.r(S),r.d(S,{VolumeMixer:()=>O});var e=r(1131),s=r(7003),n=r(360),t=r(5180),a=r(3521),O=function(b){var y=(0,n.Oc)(),u=y.act,f=y.data,m=f.channels;return(0,e.jsx)(a.p8,{width:350,height:Math.min(95+m.length*50,565),children:(0,e.jsx)(a.p8.Content,{children:(0,e.jsx)(t.wn,{fill:!0,scrollable:!0,children:m.map(function(d,v){return(0,e.jsxs)(s.Fragment,{children:[(0,e.jsx)(t.az,{fontSize:"1.25rem",color:"label",mt:v>0&&"0.5rem",children:d.name}),(0,e.jsx)(t.az,{mt:"0.5rem",children:(0,e.jsxs)(t.BJ,{children:[(0,e.jsx)(t.BJ.Item,{mr:.5,children:(0,e.jsx)(t.$n,{width:"24px",color:"transparent",children:(0,e.jsx)(t.In,{name:"volume-off",size:1.5,mt:"0.1rem",onClick:function(){return u("volume",{channel:d.num,volume:0})}})})}),(0,e.jsx)(t.BJ.Item,{grow:!0,mx:"0.5rem",children:(0,e.jsx)(t.Ap,{minValue:0,maxValue:100,stepPixelSize:3.13,value:d.volume,onChange:function(_,l){return u("volume",{channel:d.num,volume:l})}})}),(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.$n,{width:"24px",color:"transparent",children:(0,e.jsx)(t.In,{name:"volume-up",size:1.5,mt:"0.1rem",onClick:function(){return u("volume",{channel:d.num,volume:100})}})})})]})})]},d.num)})})})})}},3814:(q,S,r)=>{"use strict";r.d(S,{G:()=>y});var e=r(1131),s=r(7003),n=r(9648);function t(){return t=Object.assign||function(u){for(var f=1;f=0)&&(m[v]=u[v]);return m}function b(u,f){return b=Object.setPrototypeOf||function(d,v){return d.__proto__=v,d},b(u,f)}var y=function(u){"use strict";a(f,u);function f(d){var v;return v=u.call(this,d)||this,v.timer=null,v.state={value:Math.max(d.timeLeft*100,0)},v}var m=f.prototype;return m.tick=function(){var v=Math.max(this.state.value-this.props.rate,0);v<=0&&clearInterval(this.timer),this.setState(function(_){return{value:v}})},m.componentDidMount=function(){var v=this;this.timer=setInterval(function(){return v.tick()},this.props.rate)},m.componentWillUnmount=function(){clearInterval(this.timer)},m.componentDidUpdate=function(v){var _=this;this.props.current!==v.current&&this.setState(function(l){return{value:Math.max(_.props.timeLeft*100,0)}}),this.timer||this.componentDidMount()},m.render=function(){var v=this.props,_=v.format,l=O(v,["format"]),c=new Date(this.state.value).toISOString().slice(11,19);return(0,e.jsx)(n.a,t({as:"span"},l,{children:_?_(this.state.value,c):c}))},f}(s.Component);y.defaultProps={rate:1e3}},3825:(q,S,r)=>{"use strict";r.r(S),r.d(S,{GreyscaleModifyMenu:()=>c});var e=r(1131),s=r(5180),n=r(360),t=r(3521),a=function(h){return h.North="north",h.NorthEast="northeast",h.East="east",h.SouthEast="southeast",h.South="south",h.SouthWest="southwest",h.West="west",h.NorthWest="northwest",h}(a||{}),O,b=(O={},O.north="N",O.northeast="NE",O.east="E",O.southeast="SE",O.south="S",O.southwest="SW",O.west="W",O.northwest="NW",O),y=function(h){var g=(0,n.Oc)(),p=g.act,j=g.data;return(0,e.jsx)(s.wn,{title:"Designs",children:(0,e.jsx)(s.Ki,{children:(0,e.jsxs)(s.Ki.Item,{label:"Design Type",children:[(0,e.jsx)(s.$n,{icon:"cogs",onClick:function(){return p("select_config")}}),(0,e.jsx)(s.pd,{value:j.greyscale_config,onBlur:function(x){return p("load_config_from_string",{config_string:x})}})]})})})},u=function(h){var g=(0,n.Oc)(),p=g.act,j=g.data,x=j.colors||[];return(0,e.jsx)(s.wn,{title:"Colors",children:(0,e.jsxs)(s.Ki,{children:[(0,e.jsxs)(s.Ki.Item,{label:"Full Color String",children:[(0,e.jsx)(s.$n,{icon:"dice",onClick:function(){return p("random_all_colors")},tooltip:"Randomizes all color groups."}),(0,e.jsx)(s.pd,{value:x.map(function(C){return C.value}).join(""),onBlur:function(C){return p("recolor_from_string",{color_string:C})}})]}),x.map(function(C){return(0,e.jsxs)(s.Ki.Item,{label:"Color Group "+C.index,color:C.value,children:[(0,e.jsx)(s.BK,{color:C.value})," ",(0,e.jsx)(s.$n,{icon:"palette",onClick:function(){return p("pick_color",{color_index:C.index})},tooltip:"Brings up a color pick window to replace this color group."}),(0,e.jsx)(s.$n,{icon:"dice",onClick:function(){return p("random_color",{color_index:C.index})},tooltip:"Randomizes the color for this color group."}),(0,e.jsx)(s.pd,{value:C.value,width:7,onBlur:function(I){return p("recolor",{color_index:C.index,new_color:I})}})]},"colorgroup"+C.index+C.value)})]})})},f=function(h){return(0,e.jsx)(s.az,{children:(0,e.jsxs)(s.BJ,{vertical:!0,children:[(0,e.jsxs)(s.so,{children:[(0,e.jsx)(m,{dir:"northwest"}),(0,e.jsx)(m,{dir:"north"}),(0,e.jsx)(m,{dir:"northeast"})]}),(0,e.jsxs)(s.so,{children:[(0,e.jsx)(m,{dir:"west"}),(0,e.jsx)(s.so.Item,{grow:1,basis:0,m:.5,children:(0,e.jsx)(s.$n,{lineHeight:3,m:-.2,fluid:!0,children:(0,e.jsx)(s.In,{name:"arrows-alt",size:1.5,m:"20%"})})}),(0,e.jsx)(m,{dir:"east"})]}),(0,e.jsxs)(s.so,{children:[(0,e.jsx)(m,{dir:"southwest"}),(0,e.jsx)(m,{dir:"south"}),(0,e.jsx)(m,{dir:"southeast"})]})]})})},m=function(h){var g=h.dir,p=(0,n.Oc)(),j=p.data,x=p.act;return(0,e.jsx)(s.so.Item,{grow:1,basis:0,m:.5,children:(0,e.jsx)(s.$n,{tooltip:"Sets the direction of the preview sprite to "+g,disabled:""+g===j.sprites_dir,textAlign:"center",onClick:function(){return x("change_dir",{new_sprite_dir:g})},lineHeight:3,m:-.2,fluid:!0,children:b[g]})})},d=function(h){var g=(0,n.Oc)(),p=g.data,j=g.act;return(0,e.jsx)(s.wn,{title:"Icon States",children:(0,e.jsx)(s.so,{children:p.sprites.icon_states.map(function(x){return(0,e.jsx)(s.so.Item,{children:(0,e.jsx)(s.$n,{mx:.5,disabled:x===p.icon_state,onClick:function(){return j("select_icon_state",{new_icon_state:x})},children:x||"Blank State"})},x)})})})},v=function(h){var g,p=(0,n.Oc)().data;return(0,e.jsxs)(s.wn,{title:"Preview ("+p.sprites_dir+")",children:[(0,e.jsxs)(s.BJ,{children:[(0,e.jsx)(s.BJ.Item,{width:"50%",children:(0,e.jsx)(f,{})}),(g=p.sprites)!=null&&g.finished?(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(s._V,{m:0,mx:"10%",src:p.sprites.finished,height:"100%"})}):(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(s.az,{children:(0,e.jsx)(s.In,{name:"image",ml:"25%",size:5})})})]}),!!p.unlocked&&"Time Spent: "+p.sprites.time_spent+"ms",(0,e.jsx)(s.cG,{}),!p.refreshing&&(0,e.jsxs)(s.XI,{children:[!!p.generate_full_preview&&p.sprites.steps!==null&&(0,e.jsxs)(s.XI.Row,{header:!0,children:[(0,e.jsx)(s.XI.Cell,{width:"50%",textAlign:"center",children:"Layer Source"}),(0,e.jsx)(s.XI.Cell,{width:"25%",textAlign:"center",children:"Step Layer"}),(0,e.jsx)(s.XI.Cell,{width:"25%",textAlign:"center",children:"Step Result"})]}),!!p.generate_full_preview&&p.sprites.steps!==null&&p.sprites.steps.map(function(j){return(0,e.jsxs)(s.XI.Row,{children:[(0,e.jsx)(s.XI.Cell,{verticalAlign:"middle",children:j.config_name}),(0,e.jsx)(s.XI.Cell,{children:(0,e.jsx)(_,{source:j.layer})}),(0,e.jsx)(s.XI.Cell,{children:(0,e.jsx)(_,{source:j.result})})]},j.result+"|"+j.layer)})]})]})},_=function(h){var g=h.source;return(0,e.jsx)(s._V,{src:g})},l=function(){return(0,e.jsx)(s.az,{height:0,mt:"-100%",children:(0,e.jsx)(s.In,{name:"cog",height:22.7,opacity:.5,size:25,spin:!0})})},c=function(h){var g=(0,n.Oc)(),p=g.act,j=g.data;return(0,e.jsx)(t.p8,{title:"Color Configuration",width:325,height:800,children:(0,e.jsxs)(t.p8.Content,{scrollable:!0,children:[(0,e.jsx)(y,{}),(0,e.jsx)(u,{}),(0,e.jsx)(d,{}),(0,e.jsxs)(s.so,{direction:"column",children:[!!j.unlocked&&(0,e.jsxs)(s.so.Item,{justify:"flex-start",children:[(0,e.jsx)(s.$n,{tooltip:"Continuously checks files for changes and reloads when necessary. WARNING: Very expensive",selected:j.monitoring_files,onClick:function(){return p("toggle_mass_refresh")},width:1.9,mr:-.2,children:(0,e.jsx)(s.In,{name:"file-image-o",spin:j.monitoring_files})}),(0,e.jsx)(s.$n,{tooltip:"Loads the json configuration and icon file fresh from disk. This is useful to avoid restarting the server to see changes. WARNING: Expensive",onClick:function(){return p("refresh_file")},children:"Refresh Icon File"}),(0,e.jsx)(s.$n,{tooltip:"Saves the icon to a temp file in tmp/. This is useful if you want to use a generated icon elsewhere or just view a more accurate representation",onClick:function(){return p("save_dmi")},children:"Save Icon File"})]}),(0,e.jsxs)(s.so.Item,{children:[(0,e.jsx)(s.$n,{tooltip:"Applies changes made to the object this menu was created from.",color:"red",onClick:function(){return p("apply")},children:"Apply"}),(0,e.jsx)(s.$n.Checkbox,{tooltip:"Generates and displays the full sprite generation process instead of just the final output.",disabled:!j.generate_full_preview&&!j.unlocked,checked:j.generate_full_preview,onClick:function(){return p("toggle_full_preview")},children:"Full Preview"})]})]}),(0,e.jsx)(v,{}),!!j.refreshing&&(0,e.jsx)(l,{})]})})}},3837:(q,S,r)=>{"use strict";r.d(S,{P7:()=>y,Su:()=>u,XX:()=>m});var e=r(4931),s=r(1263),n=r(4947),t=(0,n.h)("renderer"),a,O=!0,b=!1,y=function(){O=O||"resumed",b=!1},u=function(){b=!0},f=function(d){return d.Start="render/start",d.Finish="render/finish",d}(f||{}),m=function(d){if(e.k.mark("render/start"),!a){var v=document.getElementById("react-root");a=(0,s.H)(v)}a.render(d),e.k.mark("render/finish"),!b&&O&&(O=!1)}},3858:(q,S,r)=>{"use strict";r.r(S),r.d(S,{PortableScrubber:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(u){var f=(0,s.Oc)().data,m=f.has_holding_tank;return(0,e.jsx)(t.p8,{width:433,height:346,children:(0,e.jsxs)(t.p8.Content,{children:[(0,e.jsx)(O,{}),(0,e.jsx)(b,{}),m?(0,e.jsx)(y,{}):(0,e.jsx)(n.wn,{title:"Holding Tank",children:(0,e.jsx)(n.az,{color:"average",bold:!0,children:"No Holding Tank Inserted."})})]})})},O=function(u){var f=(0,s.Oc)(),m=f.act,d=f.data,v=d.on,_=d.port_connected;return(0,e.jsxs)(n.wn,{title:"Pump Settings",children:[(0,e.jsxs)(n.so,{children:[(0,e.jsx)(n.so.Item,{mb:2.5,mt:.5,mr:11.9,color:"label",children:"Power:"}),(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(n.$n,{icon:"power-off",color:v?null:"red",selected:v,onClick:function(){return m("power")},children:v?"On":"Off"})})]}),(0,e.jsxs)(n.so,{children:[(0,e.jsx)(n.so.Item,{mr:6.8,color:"label",children:"Port Status:"}),(0,e.jsx)(n.so.Item,{color:_?"green":"average",bold:1,children:_?"Connected":"Disconnected"})]})]})},b=function(u){var f=(0,s.Oc)(),m=f.act,d=f.data,v=d.tank_pressure,_=d.rate,l=d.max_rate,c=l*.7,h=l*.25;return(0,e.jsxs)(n.wn,{title:"Pressure Settings",children:[(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Stored pressure",children:(0,e.jsxs)(n.z2,{value:v,minValue:0,maxValue:l,ranges:{good:[c,1/0],average:[h,c],bad:[-1/0,h]},children:[v," kPa"]})})}),(0,e.jsxs)(n.so,{mt:2,children:[(0,e.jsx)(n.so.Item,{mt:.4,grow:1,color:"label",children:"Target pressure:"}),(0,e.jsxs)(n.so.Item,{children:[(0,e.jsx)(n.$n,{icon:"undo",mr:.5,width:2.2,textAlign:"center",onClick:function(){return m("set_rate",{rate:101.325})}}),(0,e.jsx)(n.$n,{icon:"fast-backward",mr:.5,width:2.2,textAlign:"center",onClick:function(){return m("set_rate",{rate:0})}})]}),(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(n.Ap,{animated:!0,unit:"kPa",width:17.3,stepPixelSize:.22,minValue:0,maxValue:l,value:_,onChange:function(g,p){return m("set_rate",{rate:p})}})}),(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(n.$n,{icon:"fast-forward",ml:.5,width:2.2,textAlign:"center",onClick:function(){return m("set_rate",{rate:l})}})})]})]})},y=function(u){var f=(0,s.Oc)(),m=f.act,d=f.data,v=d.holding_tank,_=d.max_rate,l=_*.7,c=_*.25;return(0,e.jsxs)(n.wn,{title:"Holding Tank",buttons:(0,e.jsx)(n.$n,{onClick:function(){return m("remove_tank")},icon:"eject",children:"Eject"}),children:[(0,e.jsxs)(n.so,{children:[(0,e.jsx)(n.so.Item,{color:"label",mr:7.2,mb:2.2,children:"Tank Label:"}),(0,e.jsx)(n.so.Item,{mb:1,color:"silver",children:v.name})]}),(0,e.jsxs)(n.so,{children:[(0,e.jsx)(n.so.Item,{color:"label",mt:.5,mr:3.8,children:"Tank Pressure:"}),(0,e.jsx)(n.so.Item,{grow:1,children:(0,e.jsxs)(n.z2,{value:v.tank_pressure,minValue:0,maxValue:_,ranges:{good:[l,1/0],average:[c,l],bad:[-1/0,c]},children:[v.tank_pressure," kPa"]})})]})]})}},3883:(q,S,r)=>{"use strict";r.r(S),r.d(S,{AtmosFilter:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(O){var b=(0,s.Oc)(),y=b.act,u=b.data,f=u.on,m=u.pressure,d=u.max_pressure,v=u.filter_type,_=u.filter_type_list;return(0,e.jsx)(t.p8,{width:380,height:140,children:(0,e.jsx)(t.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:"power-off",color:f?null:"red",selected:f,onClick:function(){return y("power")},children:f?"On":"Off"})}),(0,e.jsxs)(n.Ki.Item,{label:"Rate",children:[(0,e.jsx)(n.$n,{icon:"fast-backward",textAlign:"center",disabled:m===0,width:2.2,onClick:function(){return y("min_pressure")}}),(0,e.jsx)(n.Q7,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:d,value:m,onDrag:function(l){return y("custom_pressure",{pressure:l})}}),(0,e.jsx)(n.$n,{icon:"fast-forward",textAlign:"center",disabled:m===d,width:2.2,onClick:function(){return y("max_pressure")}})]}),(0,e.jsx)(n.Ki.Item,{label:"Filter",children:_.map(function(l){return(0,e.jsx)(n.$n,{selected:l.gas_type===v,onClick:function(){return y("set_filter",{filter:l.gas_type})},children:l.label},l.label)})})]})})})})}},3898:(q,S,r)=>{"use strict";r.r(S),r.d(S,{LaborClaimConsole:()=>O});var e=r(1131),s=r(9845),n=r(360),t=r(5180),a=r(3521),O=function(u){return(0,e.jsx)(a.p8,{width:320,height:470,children:(0,e.jsxs)(a.p8.Content,{scrollable:!0,children:[(0,e.jsx)(b,{}),(0,e.jsx)(y,{})]})})},b=function(u){var f=(0,n.Oc)(),m=f.act,d=f.data,v=d.can_go_home,_=d.emagged,l=d.id_inserted,c=d.id_name,h=d.id_points,g=d.id_goal,p=d.unclaimed_points,j=_?0:1,x=_?"ERR0R":v?"Completed!":"Insufficient";return(0,e.jsx)(t.wn,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Status",children:!!l&&(0,e.jsx)(t.z2,{value:h/g,ranges:{good:[j,1/0],bad:[-1/0,j]},children:h+" / "+g+" "+x})||!!_&&"ERR0R COMPLETED?!@"||"No ID inserted"}),(0,e.jsx)(t.Ki.Item,{label:"Shuttle controls",children:(0,e.jsx)(t.$n,{fluid:!0,disabled:!v,onClick:function(){return m("move_shuttle")},children:"Move shuttle"})}),(0,e.jsx)(t.Ki.Item,{label:"Unclaimed points",children:(0,e.jsx)(t.$n,{fluid:!0,disabled:!l||!p,onClick:function(){return m("claim_points")},children:"Claim points ("+p+")"})}),(0,e.jsx)(t.Ki.Item,{label:"Inserted ID",children:(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return m("handle_id")},children:l?c:"-------------"})})]})})},y=function(u){var f=(0,n.Oc)().data,m=f.ores;return(0,e.jsx)(t.wn,{title:"Material values",children:(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{children:"Material"}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,textAlign:"right",children:"Value"})]}),m.map(function(d){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:(0,s.Sn)(d.ore)}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,textAlign:"right",children:(0,e.jsx)(t.az,{color:"label",inline:!0,children:d.value})})]},d.ore)})]})})}},3908:(q,S,r)=>{"use strict";r.r(S),r.d(S,{AccountsUplinkTerminal:()=>u});var e=r(1131),s=r(9845),n=r(360),t=r(7003),a=r(5180),O=r(3521),b=r(1530),y=r(9298),u=function(l){var c=(0,n.Oc)().data,h=c.loginState,g=c.currentPage,p;if(h.logged_in)g===1?p=(0,e.jsx)(f,{}):g===2?p=(0,e.jsx)(v,{}):g===3&&(p=(0,e.jsx)(_,{}));else return(0,e.jsx)(O.p8,{width:800,height:600,children:(0,e.jsx)(O.p8.Content,{children:(0,e.jsx)(a.BJ,{fill:!0,vertical:!0,children:(0,e.jsx)(y.LoginScreen,{})})})});return(0,e.jsx)(O.p8,{width:800,height:600,children:(0,e.jsx)(O.p8.Content,{scrollable:!0,children:(0,e.jsxs)(a.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(b.LoginInfo,{}),(0,e.jsx)(a.wn,{fill:!0,scrollable:!0,children:p})]})})})},f=function(l){var c=(0,n.Oc)(),h=c.act,g=c.data,p=g.accounts,j=(0,t.useState)(""),x=j[0],C=j[1],I=(0,t.useState)("owner_name"),P=I[0],M=I[1],B=(0,t.useState)(!0),w=B[0],T=B[1];return(0,e.jsxs)(a.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(d,{setSearchText:C}),(0,e.jsx)(a.BJ.Item,{grow:!0,children:(0,e.jsx)(a.wn,{fill:!0,scrollable:!0,children:(0,e.jsxs)(a.XI,{className:"AccountsUplinkTerminal__list",children:[(0,e.jsxs)(a.XI.Row,{bold:!0,children:[(0,e.jsx)(m,{sortId:P,sortOrder:w,setSortId:M,setSortOrder:T,id:"owner_name",children:"Account Holder"}),(0,e.jsx)(m,{sortId:P,sortOrder:w,setSortId:M,setSortOrder:T,id:"account_number",children:"Account Number"}),(0,e.jsx)(m,{sortId:P,sortOrder:w,setSortId:M,setSortOrder:T,id:"suspended",children:"Account Status"}),(0,e.jsx)(m,{sortId:P,sortOrder:w,setSortId:M,setSortOrder:T,id:"money",children:"Account Balance"})]}),p.filter((0,s.XZ)(x,function(K){return K.owner_name+"|"+K.account_number+"|"+K.suspended+"|"+K.money})).sort(function(K,R){var U=w?1:-1;return K[P].localeCompare(R[P])*U}).map(function(K){return(0,e.jsxs)(a.XI.Row,{className:"AccountsUplinkTerminal__listRow--"+K.suspended,onClick:function(){return h("view_account_detail",{index:K.account_index})},children:[(0,e.jsxs)(a.XI.Cell,{children:[(0,e.jsx)(a.In,{name:"user"})," ",K.owner_name]}),(0,e.jsxs)(a.XI.Cell,{children:["#",K.account_number]}),(0,e.jsx)(a.XI.Cell,{children:K.suspended}),(0,e.jsx)(a.XI.Cell,{children:K.money})]},K.account_number)})]})})})]})},m=function(l){var c=l.sortId,h=l.setSortId,g=l.sortOrder,p=l.setSortOrder,j=l.id,x=l.children;return(0,e.jsx)(a.XI.Cell,{children:(0,e.jsxs)(a.$n,{color:c!==j&&"transparent",width:"100%",onClick:function(){c===j?p(!g):(h(j),p(!0))},children:[x,c===j&&(0,e.jsx)(a.In,{name:g?"sort-up":"sort-down",ml:"0.25rem;"})]})})},d=function(l){var c=(0,n.Oc)(),h=c.act,g=c.data,p=g.is_printing,j=l.setSearchText;return(0,e.jsxs)(a.BJ,{children:[(0,e.jsxs)(a.BJ.Item,{children:[(0,e.jsx)(a.$n,{icon:"plus",onClick:function(){return h("create_new_account")},children:"New Account"}),(0,e.jsx)(a.$n,{icon:"print",disabled:p,ml:"0.25rem",onClick:function(){return h("print_records")},children:"Print Account List"})]}),(0,e.jsx)(a.BJ.Item,{grow:!0,children:(0,e.jsx)(a.pd,{placeholder:"Search by account holder, number, status",width:"100%",expensive:!0,onChange:j})})]})},v=function(l){var c=(0,n.Oc)(),h=c.act,g=c.data,p=g.account_number,j=g.owner_name,x=g.money,C=g.suspended,I=g.transactions;return(0,e.jsxs)(a.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(a.wn,{title:"#"+p+" / "+j,buttons:(0,e.jsx)(a.$n,{icon:"arrow-left",onClick:function(){return h("back")},children:"Back"}),children:(0,e.jsxs)(a.Ki,{children:[(0,e.jsxs)(a.Ki.Item,{label:"Account Number",children:["#",p]}),(0,e.jsx)(a.Ki.Item,{label:"Account Holder",children:j}),(0,e.jsx)(a.Ki.Item,{label:"Account Balance",children:x}),(0,e.jsxs)(a.Ki.Item,{label:"Account Status",color:C?"red":"green",children:[C?"Suspended":"Active",(0,e.jsx)(a.$n,{ml:1,icon:C?"unlock":"lock",onClick:function(){return h("toggle_suspension")},children:C?"Unsuspend":"Suspend"})]})]})})}),(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(a.wn,{fill:!0,title:"Transactions",children:(0,e.jsxs)(a.XI,{children:[(0,e.jsxs)(a.XI.Row,{header:!0,children:[(0,e.jsx)(a.XI.Cell,{children:"Timestamp"}),(0,e.jsx)(a.XI.Cell,{children:"Reason"}),(0,e.jsx)(a.XI.Cell,{children:"Value"}),(0,e.jsx)(a.XI.Cell,{children:"Terminal"})]}),I.map(function(P){return(0,e.jsxs)(a.XI.Row,{children:[(0,e.jsx)(a.XI.Cell,{children:P.time}),(0,e.jsx)(a.XI.Cell,{children:P.purpose}),(0,e.jsxs)(a.XI.Cell,{color:P.is_deposit?"green":"red",children:["$",P.amount]}),(0,e.jsx)(a.XI.Cell,{children:P.target_name})]},P)})]})})})]})},_=function(l){var c=(0,n.Oc)().act,h=(0,t.useState)(""),g=h[0],p=h[1],j=(0,t.useState)(""),x=j[0],C=j[1];return(0,e.jsxs)(a.wn,{title:"Create Account",buttons:(0,e.jsx)(a.$n,{icon:"arrow-left",onClick:function(){return c("back")},children:"Back"}),children:[(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"Account Holder",children:(0,e.jsx)(a.pd,{placeholder:"Name Here",onChange:p})}),(0,e.jsx)(a.Ki.Item,{label:"Initial Deposit",children:(0,e.jsx)(a.pd,{placeholder:"0",onChange:C})})]}),(0,e.jsx)(a.$n,{mt:1,fluid:!0,onClick:function(){return c("finalise_create_account",{holder_name:g,starting_funds:x})},children:"Create Account"})]})}},3910:(q,S,r)=>{"use strict";r.r(S),r.d(S,{TabBay:()=>O,TabDrop:()=>b,TabPod:()=>a});var e=r(1131),s=r(360),n=r(7003),t=r(5180),a=function(y){var u=(0,s.Oc)(),f=u.act,m=u.data,d=m.oldArea;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{disabled:!0,icon:"street-view",children:"\u0422\u0435\u043B\u0435\u043F\u043E\u0440\u0442"}),(0,e.jsx)(t.$n,{disabled:!0,icon:"undo-alt",children:d?d.substring(0,17):"\u041D\u0430\u0437\u0430\u0434"})]})},O=function(y){var u=(0,s.Oc)(),f=u.act,m=u.data,d=(0,n.useState)(!1),v=d[0],_=d[1],l=m.oldArea;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"street-view",onClick:function(){f("teleportCentcom"),_(!0)},children:"\u0422\u0435\u043B\u0435\u043F\u043E\u0440\u0442"}),(0,e.jsx)(t.$n,{disabled:!l||!v,icon:"undo-alt",onClick:function(){f("teleportBack"),_(!1)},children:l?l.substring(0,17):"\u041D\u0430\u0437\u0430\u0434"})]})},b=function(y){var u=(0,s.Oc)(),f=u.act,m=u.data,d=(0,n.useState)(!1),v=d[0],_=d[1],l=m.oldArea;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"street-view",onClick:function(){f("teleportDropoff"),_(!0)},children:"\u0422\u0435\u043B\u0435\u043F\u043E\u0440\u0442"}),(0,e.jsx)(t.$n,{disabled:!l||!v,icon:"undo-alt",onClick:function(){f("teleportBack"),_(!1)},children:l?l.substring(0,17):"\u041D\u0430\u0437\u0430\u0434"})]})}},3939:(q,S,r)=>{"use strict";r.r(S),r.d(S,{pai_medrecords:()=>a});var e=r(1131),s=r(360),n=r(8725);function t(){return t=Object.assign||function(O){for(var b=1;b{"use strict";var e;e=!0,S.Ay=t,e=a;var s=n(r(4817));e=s.default;function n(O){return O&&O.__esModule?O:{default:O}}function t(O,b){return b===void 0&&(b={}),r(7907).Lt(O,b)}function a(O,b){return r(7907).s6(O,b)}},3976:(q,S,r)=>{"use strict";r.r(S),r.d(S,{GenericCrewManifest:()=>a});var e=r(1131),s=r(5180),n=r(3521),t=r(3261),a=function(O){return(0,e.jsx)(n.p8,{width:588,height:510,theme:"nologo",children:(0,e.jsx)(n.p8.Content,{scrollable:!0,children:(0,e.jsx)(s.wn,{noTopPadding:!0,children:(0,e.jsx)(t.CrewManifest,{})})})})}},4036:(q,S,r)=>{"use strict";r.r(S),r.d(S,{meta:()=>t});var e=r(1131),s=r(5180),n=r(2555);/** + \u043D\u0430 \u043A\u043E\u0442\u043E\u0440\u043E\u0433\u043E \u0443\u043A\u0430\u0437\u044B\u0432\u0430\u0435\u0442 \u043A\u0443\u0440\u0441\u043E\u0440 \u043C\u044B\u0448\u0438.`,position:"bottom",children:(0,e.jsx)(n.$n,{width:"100%",textAlign:"center",selected:h,onClick:function(){return f("set_pointing",{val:!h})},children:h?"\u0413\u043E\u0442\u043E\u0432":"\u041D\u0435 \u0433\u043E\u0442\u043E\u0432"})})]}),(0,e.jsx)(n.wn,{scrollable:!0,title:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0430",buttons:(0,e.jsx)(n.ms,{width:"150px",options:["\u041F\u043E \u0438\u0433\u0440\u043E\u043A\u0443","\u041F\u043E \u0443\u043A\u0430\u0437\u0430\u0442\u0435\u043B\u044E"],selected:g,onSelected:function(P){return f("set_mode",{mode:P})}}),children:(0,e.jsxs)(n.BJ,{vertical:!0,fill:!0,children:[(0,e.jsx)(n.BJ.Item,{children:(0,e.jsxs)(n.BJ,{align:"center",children:[(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(n.az,{children:"\u0423\u0440\u043E\u043D \u043C\u043E\u043B\u043D\u0438\u0438:"})}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.Q7,{maxValue:600,minValue:0,step:1,value:d,onChange:function(P){return f("set_damage",{damage:P})}})})]})}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsxs)(n.BJ,{align:"center",children:[(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(n.az,{children:(0,e.jsx)(n.m_,{content:"\u0412\u043A\u043B\u044E\u0447\u0430\u044F \u0446\u0435\u043D\u0442\u0440, \u0431\u0435\u0437 \u0441\u043D\u0438\u0436\u0435\u043D\u0438\u044F \u0443\u0440\u043E\u043D\u0430 \u0441 \u043E\u0442\u0434\u0430\u043B\u0435\u043D\u0438\u0435\u043C \u043E\u0442 \u0446\u0435\u043D\u0442\u0440\u0430",children:"\u0420\u0430\u0434\u0438\u0443\u0441 \u043F\u043E\u0440\u0430\u0436\u0435\u043D\u0438\u044F:"})})}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.m_,{content:"\u0412\u043A\u043B\u044E\u0447\u0430\u044F \u0446\u0435\u043D\u0442\u0440, \u0431\u0435\u0437 \u0441\u043D\u0438\u0436\u0435\u043D\u0438\u044F \u0443\u0440\u043E\u043D\u0430 \u0441 \u043E\u0442\u0434\u0430\u043B\u0435\u043D\u0438\u0435\u043C \u043E\u0442 \u0446\u0435\u043D\u0442\u0440\u0430",children:(0,e.jsx)(n.Q7,{maxValue:30,minValue:0,step:1,value:v,onChange:function(P){return f("set_radius",{radius:P})}})})})]})}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsxs)(n.BJ,{align:"center",children:[(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(n.az,{children:(0,e.jsx)(n.m_,{content:"\u0412 \u0441\u0435\u043A\u0443\u043D\u0434\u0430\u0445",children:"\u0417\u0430\u0434\u0435\u0440\u0436\u043A\u0430 \u043F\u0435\u0440\u0435\u0434 \u0443\u0434\u0430\u0440\u043E\u043C:"})})}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.m_,{content:"\u0412 \u0441\u0435\u043A\u0443\u043D\u0434\u0430\u0445",children:(0,e.jsx)(n.Q7,{maxValue:60,minValue:0,step:1,value:_,onChange:function(P){return f("set_delay",{delay:P})}})})})]})})]})}),(0,e.jsx)(n.wn,{children:(0,e.jsx)(n.az,{textAlign:"center",children:(0,e.jsx)(n.$n,{icon:"bolt",color:"red",disabled:I,onClick:function(){return f("drop")},children:"\u0412\u044B\u0437\u0432\u0430\u0442\u044C \u043C\u043E\u043B\u043D\u0438\u044E"})})})]})})}},3759:(q,S,r)=>{"use strict";r.r(S),r.d(S,{AnomalyStabilizer:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(O){var y=(0,s.Oc)(),u=y.act,f=y.data,m=f.full_info,d=f.core1_name,v=f.core2_name,_=f.possible_stability,l=f.stability_delta,c=f.pull_range,h=f.choosen_pull_dist,g=f.block_move_time,p=f.block_move_impulses_time,j=f.weaken_val,x=f.weaken_time;return(0,e.jsx)(t.p8,{width:710,height:500,title:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0430 \u0441\u0442\u0430\u0431\u0438\u043B\u0438\u0437\u0430\u0442\u043E\u0440\u0430 \u0430\u043D\u043E\u043C\u0430\u043B\u0438\u0439",children:(0,e.jsxs)(t.p8.Content,{children:[(0,e.jsx)(n.wn,{title:"\u0412\u0441\u0442\u0430\u0432\u043B\u0435\u043D\u043D\u044B\u0435 \u044F\u0434\u0440\u0430",children:b(d,v)}),(0,e.jsxs)(n.az,{mt:"5px",children:["\u0412\u044B\u0431\u043E\u0440 \u0443\u0440\u043E\u0432\u043D\u044F \u0441\u0442\u0430\u0431\u0438\u043B\u0438\u0437\u0430\u0446\u0438\u0438:",(0,e.jsx)(n.Q7,{minValue:-_,maxValue:_,step:1,value:l,onChange:function(C){return u("change_stability",{new_val:C})}})]}),m?(0,e.jsx)(n.az,{italic:!0,mt:"5px",children:"\u0427\u0442\u043E\u0431\u044B \u0440\u0430\u0441\u0448\u0438\u0440\u0438\u0442\u044C \u043E\u0431\u043B\u0430\u0441\u0442\u044C \u0434\u043E\u043F\u0443\u0441\u0442\u0438\u043C\u044B\u0445 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0439 \u0438\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u044F \u0441\u0442\u0430\u0431\u0438\u043B\u044C\u043D\u043E\u0441\u0442\u0438, \u0432\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u0432\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u044F\u0434\u0440\u043E \u044D\u043D\u0435\u0440\u0433\u0435\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0430\u043D\u043E\u043C\u0430\u043B\u0438\u0438. \u0417\u0430\u0442\u0440\u0430\u0442\u044B \u044D\u043D\u0435\u0440\u0433\u0438\u0438 \u043F\u0440\u0438 \u0438\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u0438 \u0441\u0442\u0430\u0431\u0438\u043B\u044C\u043D\u043E\u0441\u0442\u0438 \u043D\u0430 \u0425 \u043F\u043E\u0432\u044B\u0448\u0435\u043D\u044B \u0432 \u0425*\u0425 \u0440\u0430\u0437 \u043F\u0440\u0438 \u0425 \u043D\u0435 \u0440\u0430\u0432\u043D\u043E\u043C 0."}):null,(0,e.jsxs)(n.az,{mt:"5px",children:["\u0412\u044B\u0431\u043E\u0440 \u0441\u0438\u043B\u044B \u043F\u0440\u0438\u0442\u044F\u0436\u0435\u043D\u0438\u044F:",(0,e.jsx)(n.Q7,{minValue:-c,maxValue:c,step:1,value:h,onChange:function(C){return u("change_pull_dist",{new_val:C})}})]}),m?(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.az,{italic:!0,mt:"5px",children:"\u0427\u0442\u043E\u0431\u044B \u0434\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0441\u043D\u0430\u0440\u044F\u0434\u0430\u043C \u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E\u0441\u0442\u044C \u043F\u0440\u0438\u0442\u044F\u0433\u0438\u0432\u0430\u0442\u044C \u0430\u043D\u043E\u043C\u0430\u043B\u0438\u044E, \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u043E \u0432\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u044F\u0434\u0440\u043E \u0433\u0440\u0430\u0432\u0438\u0442\u0430\u0446\u0438\u043E\u043D\u043D\u043E\u0439 \u0430\u043D\u043E\u043C\u0430\u043B\u0438\u0438. \u041F\u0440\u0438 \u043E\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043B\u044C\u043D\u043E\u0439 \u0441\u0438\u043B\u0435 \u043F\u0440\u0438\u0442\u044F\u0436\u0435\u043D\u0438\u044F, \u0430\u043D\u043E\u043C\u0430\u043B\u0438\u044E \u0431\u0443\u0434\u0435\u0442 \u043E\u0442\u0442\u0430\u043B\u043A\u0438\u0432\u0430\u0442\u044C \u043D\u0430 \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u043E\u0435 \u043A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u0448\u0430\u0433\u043E\u0432."}),(0,e.jsxs)(n.az,{italic:!0,mt:"5px",children:["\u0421\u043D\u0430\u0440\u044F\u0434\u044B \u0431\u0443\u0434\u0443\u0442 \u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0435\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043D\u043D\u043E\u0435 \u043F\u0435\u0440\u0435\u0434\u0432\u0438\u0436\u0435\u043D\u0438\u0435 \u0430\u043D\u043E\u043C\u0430\u043B\u0438\u0438 \u043D\u0430 \u0432\u0440\u0435\u043C\u044F \u0440\u0430\u0432\u043D\u043E\u0435 ",g/10," \u0432 \u0441\u0435\u043A\u0443\u043D\u0434\u0430\u0445. \u0414\u043B\u044F \u0443\u0432\u0435\u043B\u0438\u0447\u0435\u043D\u0438\u044F \u044D\u0442\u043E\u0433\u043E \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F \u0434\u043E\u0431\u0430\u0432\u044C\u0442\u0435 \u044F\u0434\u0440\u043E \u0432\u0438\u0445\u0440\u0435\u0432\u043E\u0439 \u0430\u043D\u043E\u043C\u0430\u043B\u0438\u0438."]}),(0,e.jsxs)(n.az,{italic:!0,mt:"5px",children:["\u0421\u043D\u0430\u0440\u044F\u0434\u044B \u0431\u0443\u0434\u0443\u0442 \u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0438\u043C\u043F\u0443\u043B\u044C\u0441\u044B \u043F\u0435\u0440\u0435\u043C\u0435\u0449\u0430\u044E\u0449\u0438\u0435 \u0430\u043D\u043E\u043C\u0430\u043B\u0438\u044E \u043D\u0430 \u0432\u0440\u0435\u043C\u044F \u0440\u0430\u0432\u043D\u043E\u0435 ",p/10," \u0432 \u0441\u0435\u043A\u0443\u043D\u0434\u0430\u0445. \u0414\u043B\u044F \u0443\u0432\u0435\u043B\u0438\u0447\u0435\u043D\u0438\u044F \u044D\u0442\u043E\u0433\u043E \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F \u0434\u043E\u0431\u0430\u0432\u044C\u0442\u0435 \u044F\u0434\u0440\u043E \u0431\u043B\u044E\u0441\u043F\u0435\u0439\u0441 \u0430\u043D\u043E\u043C\u0430\u043B\u0438\u0438."]}),(0,e.jsxs)(n.az,{italic:!0,mt:"5px",children:["\u0421\u043D\u0430\u0440\u044F\u0434\u044B \u0431\u0443\u0434\u0443\u0442 \u043E\u0441\u043B\u0430\u0431\u043B\u044F\u0442\u044C \u044D\u0444\u0444\u0435\u043A\u0442\u044B \u0430\u043D\u043E\u043C\u0430\u043B\u0438\u0438 \u043D\u0430 \u0432\u0440\u0435\u043C\u044F \u0440\u0430\u0432\u043D\u043E\u0435",x/10," \u0432 \u0441\u0435\u043A\u0443\u043D\u0434\u0430\u0445. \u041E\u0441\u043B\u0430\u0431\u043B\u0435\u043D\u0438\u0435 \u0431\u0443\u0434\u0435\u0442 \u043F\u043E\u043D\u0438\u0436\u0430\u0442\u044C \u044D\u0444\u0444\u0435\u043A\u0442\u044B \u0434\u043E \u0443\u0440\u043E\u0432\u043D\u044F \u0430\u043D\u043E\u043C\u0430\u043B\u0438\u0438 \u0441 \u0441\u0438\u043B\u043E\u0439 \u043D\u0430",j," \u043C\u0435\u043D\u044C\u0448\u0435 \u0442\u0435\u043A\u0443\u0449\u0435\u0439, \u043D\u043E \u043D\u0435 \u043D\u0438\u0436\u0435 10. \u0414\u043B\u044F \u0443\u0432\u0435\u043B\u0438\u0447\u0435\u043D\u0438\u044F \u044D\u0442\u0438\u0445 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0439 \u0434\u043E\u0431\u0430\u0432\u044C\u0442\u0435 \u044F\u0434\u0440\u043E \u0430\u0442\u043C\u043E\u0441\u0444\u0435\u0440\u043D\u043E\u0439 \u0430\u043D\u043E\u043C\u0430\u043B\u0438\u0438."]})]}):null,(0,e.jsx)(n.$n,{mt:"5px",onClick:function(){return u("toggle_full_info")},children:m?"\u0421\u043A\u0440\u044B\u0442\u044C":"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0441\u043F\u0440\u0430\u0432\u043A\u0443"})]})})},b=function(O,y){var u=(0,s.Oc)().act;return O==="\u041F\u0443\u0441\u0442\u043E\u0439"?null:y==="\u041F\u0443\u0441\u0442\u043E\u0439"?(0,e.jsx)(n.$n,{onClick:function(){return u("eject1",{})},children:O}):(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.$n,{onClick:function(){return u("eject1",{})},children:O}),(0,e.jsx)(n.$n,{onClick:function(){return u("eject2",{})},children:y})]})}},3774:(q,S,r)=>{"use strict";r.r(S),r.d(S,{IntegratedCircuit:()=>j});var e=r(1131),s=r(360),n=r(5180),t=r(7003),a=r(3521),b=r(1243),O=r(9699),y=r(8968),u=r(6158),f=r(8712),m=r(9435),d=r(33),v=r(6194);function _(x,C){(C==null||C>x.length)&&(C=x.length);for(var I=0,P=new Array(C);I=x.length?{done:!0}:{done:!1,value:x[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 j=function(x){"use strict";c(C,x);function C(P){var M;return M=x.call(this,P)||this,M.timeUntilPortReleaseTimesOut=0,M.state={locations:{},selectedPort:null,mouseX:null,mouseY:null,zoom:1,backgroundX:0,backgroundY:0,variableMenuOpen:!1,componentMenuOpen:!1},M.handlePortLocation=M.handlePortLocation.bind(M),M.handleMouseDown=M.handleMouseDown.bind(M),M.handleMouseUp=M.handleMouseUp.bind(M),M.handlePortClick=M.handlePortClick.bind(M),M.handlePortRightClick=M.handlePortRightClick.bind(M),M.handlePortUp=M.handlePortUp.bind(M),M.handleDragging=M.handleDragging.bind(M),M.handlePortRelease=M.handlePortRelease.bind(M),M.handleZoomChange=M.handleZoomChange.bind(M),M.handleBackgroundMoved=M.handleBackgroundMoved.bind(M),M.onVarClickedSetter=M.onVarClickedSetter.bind(M),M.onVarClickedGetter=M.onVarClickedGetter.bind(M),M.handleVarDropped=M.handleVarDropped.bind(M),M.handleMouseDownComponent=M.handleMouseDownComponent.bind(M),M.handleComponentDropped=M.handleComponentDropped.bind(M),M.handleDisplayLocation=M.handleDisplayLocation.bind(M),M}var I=C.prototype;return I.getPosition=function(M){for(var B=0,w=0;M;)B+=M.offsetLeft,w+=M.offsetTop,M=M.offsetParent;return{x:B,y:w+y.ABSOLUTE_Y_OFFSET}},I.handleDisplayLocation=function(M){if(M){var B=this.getPosition(M);this.setState({draggingComponentPos:B,draggingOffsetX:M.offsetWidth/2,draggingOffsetY:M.offsetHeight/2})}},I.handlePortLocation=function(M,B){var w=this.state.locations;if(B){var T=w[M.ref],K=this.getPosition(B);K.color=M.color,!(isNaN(K.x)||isNaN(K.y)||T&&T.x===K.x&&T.y===K.y)&&(w[M.ref]=K,this.setState({locations:w}))}},I.handlePortClick=function(M,B,w,T,K){if(this.state.selectedPort){this.handlePortUp(M,B,w,T,K);return}K.button===y.MOUSE_BUTTON_LEFT&&(K.stopPropagation(),this.setState({selectedPort:{index:M,component_id:B,is_output:T,ref:w.ref}}),this.handleDragging(K),this.timeUntilPortReleaseTimesOut=Date.now()+y.TIME_UNTIL_PORT_RELEASE_WORKS,window.addEventListener("mousemove",this.handleDragging),window.addEventListener("mouseup",this.handlePortRelease))},I.handlePortUp=function(M,B,w,T,K){var R=(0,s.Oc)(),U=R.act,F=R.data,$=this.state.selectedPort;if($&&$.is_output!==T){this.setState({selectedPort:null});var W;T?W={input_port_id:$.index,output_port_id:M,input_component_id:$.component_id,output_component_id:B}:W={input_port_id:M,output_port_id:$.index,input_component_id:B,output_component_id:$.component_id},U("add_connection",W);var N=F.components,Z=W.input_component_id,ie=W.input_port_id,Q=W.output_component_id,V=W.output_port_id,G=N[Z-1],le=G.input_ports[ie-1],xe=N[Q-1],de=xe.output_ports[V-1];!le||le.type!==de.type||le.connected_to.push(T?w.ref:$.ref)}},I.handleDragging=function(M){var B=(0,s.Oc)().data,w=B.screen_x,T=B.screen_y;this.setState(function(K){return{mouseX:(M.clientX-(K.backgroundX||w))*Math.pow(K.zoom,-1),mouseY:(M.clientY-(K.backgroundY||T))*Math.pow(K.zoom,-1)}})},I.handlePortRelease=function(M){window.removeEventListener("mouseup",this.handlePortRelease),!(this.timeUntilPortReleaseTimesOut>Date.now())&&(this.setState({selectedPort:null}),window.removeEventListener("mousemove",this.handleDragging))},I.handlePortRightClick=function(M,B,w,T,K){var R=(0,s.Oc)().act;K.preventDefault(),R("remove_connection",{component_id:B,is_input:!T,port_id:M})},I.handleZoomChange=function(M){this.setState({zoom:M})},I.handleBackgroundMoved=function(M,B){this.setState({backgroundX:M,backgroundY:B})},I.componentDidMount=function(){window.addEventListener("mousedown",this.handleMouseDown),window.addEventListener("mouseup",this.handleMouseUp)},I.componentWillUnmount=function(){window.removeEventListener("mousedown",this.handleMouseDown),window.removeEventListener("mouseup",this.handleMouseUp)},I.handleMouseDown=function(M){var B=(0,s.Oc)(),w=B.act,T=B.data,K=T.examined_name;K&&w("remove_examined_component"),this.state.selectedPort&&this.handlePortRelease(M)},I.handleMouseUp=function(M){var B=(0,s.Oc)().act,w=this.state,T=w.backgroundX,K=w.backgroundY;T&&K&&B("move_screen",{screen_x:T,screen_y:K})},I.onVarClickedSetter=function(M,B){this.handleVarClicked(M,B,!0)},I.onVarClickedGetter=function(M,B){this.handleVarClicked(M,B,!1)},I.handleVarClicked=function(M,B,w){var T={name:w?"\u0421\u0435\u0442\u0442\u0435\u0440":"\u0413\u0435\u0442\u0442\u0435\u0440",description:"\u042D\u0442\u043E \u043A\u043E\u043C\u043F\u043E\u043D\u0435\u043D\u0442",color:"blue",input_ports:[],output_ports:[]};w?T.input_ports=[{name:"\u0412\u0432\u043E\u0434",type:B.datatype,color:B.color}]:T.output_ports=[{name:"\u0417\u043D\u0430\u0447\u0435\u043D\u0438\u0435",type:B.datatype,color:B.color}],this.setState({draggingComponent:T,draggingVariable:B.name,variableIsSetter:w}),this.handleDragging(M),window.addEventListener("mouseup",this.handleVarDropped),window.addEventListener("mousemove",this.handleDragging)},I.handleVarDropped=function(M){var B=(0,s.Oc)(),w=B.data,T=B.act,K=this.state,R=K.draggingVariable,U=K.variableIsSetter,F=K.mouseX,$=K.mouseY,W=K.zoom,N=K.draggingComponentPos;if(this.setState({draggingVariable:null,variableIsSetter:null,draggingComponent:null}),window.removeEventListener("mousemove",this.handleDragging),window.removeEventListener("mouseup",this.handleVarDropped),!M.defaultPrevented){var Z=F-(F-N.x),ie=$-($-N.y);T("add_setter_or_getter",{variable:R,is_setter:U,rel_x:Z,rel_y:ie+y.ABSOLUTE_Y_OFFSET*Math.pow(this.state.zoom,-1)})}},I.handleMouseDownComponent=function(M,B){this.setState({draggingComponent:B}),this.handleDragging(M),window.addEventListener("mousemove",this.handleDragging),window.addEventListener("mouseup",this.handleComponentDropped)},I.handleComponentDropped=function(M){var B=(0,s.Oc)().act,w=this.state,T=w.draggingComponent,K=w.draggingComponentPos,R=w.mouseX,U=w.mouseY;if(this.setState({draggingComponent:null}),window.removeEventListener("mouseup",this.handleComponentDropped),window.removeEventListener("mousemove",this.handleDragging),!M.defaultPrevented){var F=R-(R-K.x),$=U-(U-K.y);B("print_component",{component_to_print:T.type,rel_x:F,rel_y:$+y.ABSOLUTE_Y_OFFSET*Math.pow(this.state.zoom,-1)})}},I.render=function(){for(var M=this,B=(0,s.Oc)(),w=B.act,T=B.data,K=T.components,R=T.display_name,U=T.examined_name,F=T.examined_desc,$=T.examined_notices,W=T.examined_rel_x,N=T.examined_rel_y,Z=T.screen_x,ie=T.screen_y,Q=T.grid_mode,V=T.is_admin,G=T.variables,le=T.global_basic_types,xe=T.stored_designs,de=this.state,me=de.mouseX,pe=de.mouseY,Me=de.locations,Ke=de.selectedPort,Le=de.variableMenuOpen,Se=de.componentMenuOpen,ln=de.draggingComponent,ze=de.draggingOffsetX,We=de.draggingOffsetY,fn=[],Ze=p(K),In;!(In=Ze()).done;){var En=In.value;if(En!==null)for(var Yn=p(En.input_ports),Xn;!(Xn=Yn()).done;)for(var ct=Xn.value,Ot=p(ct.connected_to),_t;!(_t=Ot()).done;){var Nt=_t.value,nr=Me[Nt];fn.push({color:nr&&nr.color||"blue",from:nr,to:Me[ct.ref]})}}if(Ke){var cn=Ke.is_output,wn=Me[Ke.ref],it={x:me,y:pe+y.ABSOLUTE_Y_OFFSET*Math.pow(this.state.zoom,-1)};fn.push({color:wn&&wn.color||"blue",from:cn?wn:it,to:cn?it:wn})}return(0,e.jsx)(a.p8,{width:1200,height:800,buttons:(0,e.jsxs)(n.BJ,{children:[(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.pd,{placeholder:"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435",value:R,maxLength:24,expensive:!0,onChange:function(Kn){return w("set_display_name",{display_name:Kn})}})}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.$n,{color:"transparent",tooltip:"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043C\u0435\u043D\u044E \u043F\u0435\u0440\u0435\u043C\u0435\u043D\u043D\u044B\u0445",icon:"cog",selected:Le,onClick:function(){return M.setState(function(Kn){return{variableMenuOpen:!Kn.variableMenuOpen}})}})}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.$n,{color:"transparent",tooltip:"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043C\u0435\u043D\u044E \u043A\u043E\u043C\u043F\u043E\u043D\u0435\u043D\u0442\u043E\u0432",icon:"plus",selected:Se,onClick:function(){return M.setState(function(Kn){return{componentMenuOpen:!Kn.componentMenuOpen}})}})}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.$n,{color:"transparent",tooltip:"\u041F\u0440\u0438\u0432\u044F\u0437\u043A\u0430 \u043A \u0441\u0435\u0442\u043A\u0435",icon:"th-large",selected:Q,onClick:function(){return w("toggle_grid_mode")}})}),!!V&&(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.$n,{color:"transparent",onClick:function(){return w("save_circuit")},icon:"save"})})]}),children:(0,e.jsxs)(a.p8.Content,{style:{backgroundImage:"none"},children:[(0,e.jsxs)(n.xO,{width:"100%",height:"100%",backgroundImage:(0,b.l)("grid_background.png"),imageWidth:900,onZoomChange:this.handleZoomChange,onBackgroundMoved:this.handleBackgroundMoved,initialLeft:Z,initialTop:ie,children:[K.map(function(Kn,Pt){return Kn&&(0,e.jsx)(f.ObjectComponent,l({},Kn,{zoom:M.state.zoom,index:Pt+1,onPortUpdated:M.handlePortLocation,onPortLoaded:M.handlePortLocation,onPortMouseDown:M.handlePortClick,onPortRightClick:M.handlePortRightClick,onPortMouseUp:M.handlePortUp,act:w,gridMode:Q}),Pt)}),!!ln&&(0,e.jsx)(m.DisplayComponent,{component:ln,left:""+(me-ze)+"px",top:""+(pe-We)+"px",onDisplayUpdated:this.handleDisplayLocation,onDisplayLoaded:this.handleDisplayLocation,style:{position:"absolute"}}),(0,e.jsx)(u.Connections,{connections:fn})]}),!!U&&(0,e.jsx)(O.CircuitInfo,{position:"absolute",className:"CircuitInfo__Examined",top:""+N+"px",left:""+W+"px",name:U,desc:F,notices:$}),!!Le&&(0,e.jsx)(n.az,{position:"absolute",left:0,bottom:0,height:"20%",minHeight:"175px",minWidth:"600px",width:"50%",style:{borderRadius:"0px 32px 0px 0px",backgroundColor:"rgba(0, 0, 0, 0.3)",userSelect:"none"},children:(0,e.jsx)(d.VariableMenu,{variables:G,types:le,onClose:function(Kn){return M.setState({variableMenuOpen:!1})},onAddVariable:function(Kn,Pt,Mt,sr){return w("add_variable",{variable_name:Kn,variable_datatype:Pt,is_list:Mt===y.VARIABLE_LIST,is_assoc_list:Mt===y.VARIABLE_ASSOC_LIST})},onRemoveVariable:function(Kn){return w("remove_variable",{variable_name:Kn})},handleMouseDownSetter:this.onVarClickedSetter,handleMouseDownGetter:this.onVarClickedGetter})}),!!Se&&(0,e.jsx)(n.az,{position:"absolute",right:0,top:0,height:"100%",width:"300px",style:{backgroundColor:"rgba(0, 0, 0, 0.3)",userSelect:"none"},children:(0,e.jsx)(v.ComponentMenu,{components:xe&&Object.keys(xe)||[],onClose:function(Kn){return M.setState({componentMenuOpen:!1})},onMouseDownComponent:this.handleMouseDownComponent,showAll:V})})]})})},C}(t.Component)},3777:()=>{},3789:(q,S,r)=>{"use strict";r.r(S),r.d(S,{SuitStorage:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(u){var f=(0,s.Oc)().data,m=f.uv;return(0,e.jsx)(t.p8,{width:402,height:268,children:(0,e.jsxs)(t.p8.Content,{className:"Layout__content--flexColumn",children:[!!m&&(0,e.jsx)(n.Rr,{backgroundColor:"black",opacity:.85,children:(0,e.jsx)(n.so,{children:(0,e.jsxs)(n.so.Item,{bold:!0,textAlign:"center",mb:2,children:[(0,e.jsx)(n.In,{name:"spinner",spin:1,size:4,mb:4}),(0,e.jsx)("br",{}),"Disinfection of contents in progress..."]})})}),(0,e.jsx)(b,{}),(0,e.jsx)(y,{})]})})},b=function(u){var f=(0,s.Oc)(),m=f.act,d=f.data,v=d.helmet,_=d.suit,l=d.magboots,c=d.mask,h=d.storage,g=d.open,p=d.locked;return(0,e.jsx)(n.wn,{title:"Stored Items",flexGrow:!0,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:p?"unlock":"lock",disabled:g,onClick:function(){return m("toggle_lock")},children:p?"Unlock":"Lock"}),(0,e.jsx)(n.$n,{icon:g?"times-circle":"expand",color:g?"red":"green",disabled:p,onClick:function(){return m("toggle_open")},children:g?"Close unit":"Open unit"})]}),children:g&&!p?(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(O,{object:v,label:"Helmet",missingText:"helmet",eject:"dispense_helmet"}),(0,e.jsx)(O,{object:_,label:"Suit",missingText:"suit",eject:"dispense_suit"}),(0,e.jsx)(O,{object:l,label:"Magboots",missingText:"magboots",eject:"dispense_magboots"}),(0,e.jsx)(O,{object:c,label:"Breathmask",missingText:"mask",eject:"dispense_mask"}),(0,e.jsx)(O,{object:h,label:"Storage",missingText:"storage item",eject:"dispense_storage"})]}):(0,e.jsx)(n.so,{height:"100%",children:(0,e.jsxs)(n.so.Item,{bold:!0,grow:"1",textAlign:"center",align:"center",color:"label",children:[(0,e.jsx)(n.In,{name:p?"lock":"exclamation-circle",size:5,mb:3}),(0,e.jsx)("br",{}),p?"The unit is locked.":"The unit is closed."]})})})},O=function(u){var f=(0,s.Oc)().act,m=u.object,d=u.label,v=u.missingText,_=u.eject;return(0,e.jsx)(n.Ki.Item,{label:d,children:(0,e.jsx)(n.az,{my:.5,children:m?(0,e.jsx)(n.$n,{my:-1,icon:"eject",onClick:function(){return f(_)},children:m}):(0,e.jsxs)(n.az,{color:"silver",bold:!0,children:["No ",v," found."]})})})},y=function(u){var f=(0,s.Oc)(),m=f.act,d=f.data;return(0,e.jsx)(n.wn,{children:(0,e.jsx)(n.$n,{fluid:!0,icon:"cog",textAlign:"center",disabled:d.locked,onClick:function(){return m("cook")},children:"Start Disinfection Cycle"})})}},3793:(q,S,r)=>{"use strict";r.r(S),r.d(S,{ExosuitFabricator:()=>d});var e=r(1131),s=r(185),n=r(9845),t=r(360),a=r(7003),b=r(5180),O=r(3814),y=r(3521);function u(){return u=Object.assign||function(p){for(var j=1;j=0)&&(x[I]=p[I]);return x}var m=2e3,d=function(p){var j=(0,t.Oc)().data,x=j.building;return(0,e.jsx)(y.p8,{width:950,height:625,children:(0,e.jsx)(y.p8.Content,{className:"Exofab",children:(0,e.jsxs)(b.BJ,{fill:!0,children:[(0,e.jsx)(b.BJ.Item,{grow:!0,children:(0,e.jsxs)(b.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(b.BJ.Item,{grow:!0,children:(0,e.jsx)(_,{})}),x&&(0,e.jsx)(b.BJ.Item,{children:(0,e.jsx)(l,{})})]})}),(0,e.jsx)(b.BJ.Item,{width:"30%",children:(0,e.jsxs)(b.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(b.BJ.Item,{grow:!0,children:(0,e.jsx)(v,{})}),(0,e.jsx)(b.BJ.Item,{grow:!0,children:(0,e.jsx)(c,{})})]})})]})})})},v=function(p){var j=(0,t.Oc)(),x=j.act,C=j.data,I=C.materials,P=C.capacity,M=Object.values(I).reduce(function(B,w){return B+w},0);return(0,e.jsx)(b.wn,{fill:!0,scrollable:!0,title:"\u041C\u0430\u0442\u0435\u0440\u0438\u0430\u043B\u044B",className:"Exofab__materials",buttons:(0,e.jsxs)(b.az,{color:"label",mt:"0.25rem",children:[(M/P*100).toPrecision(3),"/100%"]}),children:["metal","glass","silver","gold","uranium","titanium","plasma","diamond","bluespace","bananium","tranquillite","plastic"].map(function(B){return(0,e.jsx)(h,{mt:-2,id:B,bold:B==="metal"||B==="glass",onClick:function(){return x("withdraw",{id:B})}},B)})})},_=function(p){var j=(0,t.Oc)(),x=j.act,C=j.data,I=C.curCategory,P=C.categories,M=C.designs,B=C.syncing,w=(0,a.useState)(""),T=w[0],K=w[1],R=(0,n.XZ)(T,function(F){return F.name}),U=M.filter(R);return(0,e.jsxs)(b.wn,{fill:!0,scrollable:!0,className:"Exofab__designs",title:(0,e.jsx)(b.ms,{className:"Exofab__dropdown",selected:I,options:P,onSelected:function(F){return x("category",{cat:F})}}),buttons:(0,e.jsxs)(b.az,{mt:-3.5,children:[(0,e.jsx)(b.$n,{icon:"plus",tooltip:"\u0414\u043E\u0431\u0430\u0432\u043B\u0435\u0438\u0435 \u0432\u0441\u0435\u0445 \u0448\u0430\u0431\u043B\u043E\u043D\u043E\u0432 \u0438\u0437 \u043A\u0430\u0442\u0435\u0433\u043E\u0440\u0438\u0438 \u0432 \u043E\u0447\u0435\u0440\u0435\u0434\u044C \u043F\u0435\u0447\u0430\u0442\u0438.",onClick:function(){return x("queueall")},children:"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0432\u0441\u0451"}),(0,e.jsx)(b.$n,{disabled:B,iconSpin:B,icon:"sync-alt",onClick:function(){return x("sync")},children:B?"\u0421\u0438\u043D\u0445\u0440\u043E\u043D\u0438\u0437\u0430\u0446\u0438\u044F...":"\u0421\u0438\u043D\u0445\u0440\u043E\u043D\u0438\u0437\u0430\u0446\u0438\u044F \u0441 \u0441\u0435\u0442\u044C\u044E \u041D\u0418\u041E"})]}),children:[(0,e.jsx)(b.pd,{placeholder:"\u041F\u043E\u0438\u0441\u043A...",mb:"0.5rem",width:"100%",expensive:!0,onChange:K}),U.map(function(F){return(0,e.jsx)(g,{design:F},F.id)}),U.length===0&&(0,e.jsx)(b.az,{color:"label",children:"\u0428\u0430\u0431\u043B\u043E\u043D\u044B \u043F\u0435\u0447\u0430\u0442\u0438 \u043D\u0435 \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043D\u044B."})]})},l=function(p){var j=(0,t.Oc)().data,x=j.building,C=j.buildStart,I=j.buildEnd,P=j.worldTime;return(0,e.jsx)(b.wn,{className:"Exofab__building",stretchContents:!0,children:(0,e.jsx)(b.z2.Countdown,{start:C,current:P,end:I,children:(0,e.jsxs)(b.BJ,{children:[(0,e.jsx)(b.BJ.Item,{children:(0,e.jsx)(b.In,{name:"cog",spin:!0})}),(0,e.jsxs)(b.BJ.Item,{children:["\u041F\u0435\u0447\u0430\u0442\u044C ",x,"\xA0(",(0,e.jsx)(O.G,{current:P,timeLeft:I-P,format:function(M,B){return B.substr(3)}}),")"]})]})})})},c=function(p){var j=(0,t.Oc)(),x=j.act,C=j.data,I=C.queue,P=C.processingQueue,M=Object.entries(C.queueDeficit).filter(function(w){return w[1]<0}),B=I.reduce(function(w,T){return w+T.time},0);return(0,e.jsx)(b.wn,{fill:!0,scrollable:!0,className:"Exofab__queue",title:"\u041E\u0447\u0435\u0440\u0435\u0434\u044C",buttons:(0,e.jsxs)(b.az,{children:[(0,e.jsx)(b.$n,{selected:P,icon:P?"toggle-on":"toggle-off",onClick:function(){return x("process")},children:"\u041F\u0435\u0447\u0430\u0442\u044C"}),(0,e.jsx)(b.$n,{disabled:I.length===0,icon:"eraser",onClick:function(){return x("unqueueall")},children:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C"})]}),children:(0,e.jsx)(b.BJ,{fill:!0,vertical:!0,children:I.length===0?(0,e.jsx)(b.az,{color:"label",children:"\u041E\u0447\u0435\u0440\u0435\u0434\u044C \u043F\u0435\u0447\u0430\u0442\u0438 \u043F\u0443\u0441\u0442\u0430."}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(b.BJ.Item,{className:"Exofab__queue--queue",grow:!0,overflow:"auto",children:I.map(function(w,T){return(0,e.jsxs)(b.az,{color:w.notEnough&&"bad",children:[T+1,". ",w.name,T>0&&(0,e.jsx)(b.$n,{icon:"arrow-up",onClick:function(){return x("queueswap",{from:T+1,to:T})}}),T0&&(0,e.jsxs)(b.BJ.Item,{className:"Exofab__queue--time",children:[(0,e.jsx)(b.cG,{}),"\u0412\u0440\u0435\u043C\u044F \u043F\u0435\u0447\u0430\u0442\u0438:",(0,e.jsx)(b.In,{name:"clock",mx:"0.5rem"}),(0,e.jsx)(b.az,{inline:!0,bold:!0,children:new Date(B/10*1e3).toISOString().substr(14,5)})]}),Object.keys(M).length>0&&(0,e.jsxs)(b.BJ.Item,{className:"Exofab__queue--deficit",shrink:0,children:[(0,e.jsx)(b.cG,{}),"\u041D\u0435\u0434\u043E\u0441\u0442\u0430\u0442\u043E\u0447\u043D\u043E \u0441\u044B\u0440\u044C\u044F \u0434\u043B\u044F \u043F\u0435\u0447\u0430\u0442\u0438:",M.map(function(w){return(0,e.jsx)(b.az,{children:(0,e.jsx)(h,{id:w[0],amount:-w[1],lineDisplay:!0})},w[0])})]})]})})})},h=function(p){var j=(0,t.Oc)().data,x=p.id,C=p.amount,I=p.lineDisplay,P=p.onClick,M=f(p,["id","amount","lineDisplay","onClick"]),B=j.materials[x]||0,w=C||B;if(!(w<=0&&!(x==="metal"||x==="glass"))){var T=C&&C>B;return(0,e.jsx)(b.BJ,u({align:"center",className:(0,s.Ly)(["Exofab__material",I&&"Exofab__material--line"])},M,{children:I?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(b.BJ.Item,{className:(0,s.Ly)(["materials32x32",x])}),(0,e.jsx)(b.BJ.Item,{className:"Exofab__material--amount",color:T&&"bad",ml:0,mr:1,children:w.toLocaleString("en-US")})]}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(b.BJ.Item,{basis:"content",children:(0,e.jsx)(b.$n,{width:"85%",color:"transparent",onClick:P,children:(0,e.jsx)(b.az,{mt:1,className:(0,s.Ly)(["materials32x32",x])})})}),(0,e.jsxs)(b.BJ.Item,{grow:1,children:[(0,e.jsx)(b.az,{className:"Exofab__material--name",children:x}),(0,e.jsxs)(b.az,{className:"Exofab__material--amount",children:[w.toLocaleString("en-US")," \u0441\u043C\xB3 (",Math.round(w/m*10)/10," \u043B\u0438\u0441\u0442",(0,n.bl)(Math.round(w/m*10)/10,"","\u0430","\u043E\u0432"),")"]})]})]})}))}},g=function(p){var j=(0,t.Oc)(),x=j.act,C=j.data,I=p.design;return(0,e.jsxs)(b.az,{className:"Exofab__design",children:[(0,e.jsx)(b.$n,{disabled:I.notEnough||C.building,tooltip:I.desc,icon:"cog",onClick:function(){return x("build",{id:I.id})},children:I.name}),(0,e.jsx)(b.$n,{icon:"plus-circle",onClick:function(){return x("queue",{id:I.id})}}),(0,e.jsx)(b.az,{className:"Exofab__design--cost",children:Object.entries(I.cost).map(function(P){return(0,e.jsx)(b.az,{children:(0,e.jsx)(h,{id:P[0],amount:P[1],lineDisplay:!0})},P[0])})}),(0,e.jsx)(b.BJ,{className:"Exofab__design--time",children:(0,e.jsxs)(b.BJ.Item,{children:[(0,e.jsx)(b.In,{name:"clock"}),I.time>0?(0,e.jsxs)(e.Fragment,{children:[I.time/10," \u0441\u0435\u043A\u0443\u043D\u0434",(0,n.bl)(I.time/10,"\u0443","\u044B","")]}):"\u041C\u0433\u043D\u043E\u0432\u0435\u043D\u043D\u043E"]})})]})}},3813:(q,S,r)=>{"use strict";r.r(S),r.d(S,{VolumeMixer:()=>b});var e=r(1131),s=r(7003),n=r(360),t=r(5180),a=r(3521),b=function(O){var y=(0,n.Oc)(),u=y.act,f=y.data,m=f.channels;return(0,e.jsx)(a.p8,{width:350,height:Math.min(95+m.length*50,565),children:(0,e.jsx)(a.p8.Content,{children:(0,e.jsx)(t.wn,{fill:!0,scrollable:!0,children:m.map(function(d,v){return(0,e.jsxs)(s.Fragment,{children:[(0,e.jsx)(t.az,{fontSize:"1.25rem",color:"label",mt:v>0&&"0.5rem",children:d.name}),(0,e.jsx)(t.az,{mt:"0.5rem",children:(0,e.jsxs)(t.BJ,{children:[(0,e.jsx)(t.BJ.Item,{mr:.5,children:(0,e.jsx)(t.$n,{width:"24px",color:"transparent",children:(0,e.jsx)(t.In,{name:"volume-off",size:1.5,mt:"0.1rem",onClick:function(){return u("volume",{channel:d.num,volume:0})}})})}),(0,e.jsx)(t.BJ.Item,{grow:!0,mx:"0.5rem",children:(0,e.jsx)(t.Ap,{minValue:0,maxValue:100,stepPixelSize:3.13,value:d.volume,onChange:function(_,l){return u("volume",{channel:d.num,volume:l})}})}),(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.$n,{width:"24px",color:"transparent",children:(0,e.jsx)(t.In,{name:"volume-up",size:1.5,mt:"0.1rem",onClick:function(){return u("volume",{channel:d.num,volume:100})}})})})]})})]},d.num)})})})})}},3814:(q,S,r)=>{"use strict";r.d(S,{G:()=>y});var e=r(1131),s=r(7003),n=r(9648);function t(){return t=Object.assign||function(u){for(var f=1;f=0)&&(m[v]=u[v]);return m}function O(u,f){return O=Object.setPrototypeOf||function(d,v){return d.__proto__=v,d},O(u,f)}var y=function(u){"use strict";a(f,u);function f(d){var v;return v=u.call(this,d)||this,v.timer=null,v.state={value:Math.max(d.timeLeft*100,0)},v}var m=f.prototype;return m.tick=function(){var v=Math.max(this.state.value-this.props.rate,0);v<=0&&clearInterval(this.timer),this.setState(function(_){return{value:v}})},m.componentDidMount=function(){var v=this;this.timer=setInterval(function(){return v.tick()},this.props.rate)},m.componentWillUnmount=function(){clearInterval(this.timer)},m.componentDidUpdate=function(v){var _=this;this.props.current!==v.current&&this.setState(function(l){return{value:Math.max(_.props.timeLeft*100,0)}}),this.timer||this.componentDidMount()},m.render=function(){var v=this.props,_=v.format,l=b(v,["format"]),c=new Date(this.state.value).toISOString().slice(11,19);return(0,e.jsx)(n.a,t({as:"span"},l,{children:_?_(this.state.value,c):c}))},f}(s.Component);y.defaultProps={rate:1e3}},3825:(q,S,r)=>{"use strict";r.r(S),r.d(S,{GreyscaleModifyMenu:()=>c});var e=r(1131),s=r(5180),n=r(360),t=r(3521),a=function(h){return h.North="north",h.NorthEast="northeast",h.East="east",h.SouthEast="southeast",h.South="south",h.SouthWest="southwest",h.West="west",h.NorthWest="northwest",h}(a||{}),b,O=(b={},b.north="N",b.northeast="NE",b.east="E",b.southeast="SE",b.south="S",b.southwest="SW",b.west="W",b.northwest="NW",b),y=function(h){var g=(0,n.Oc)(),p=g.act,j=g.data;return(0,e.jsx)(s.wn,{title:"Designs",children:(0,e.jsx)(s.Ki,{children:(0,e.jsxs)(s.Ki.Item,{label:"Design Type",children:[(0,e.jsx)(s.$n,{icon:"cogs",onClick:function(){return p("select_config")}}),(0,e.jsx)(s.pd,{value:j.greyscale_config,onBlur:function(x){return p("load_config_from_string",{config_string:x})}})]})})})},u=function(h){var g=(0,n.Oc)(),p=g.act,j=g.data,x=j.colors||[];return(0,e.jsx)(s.wn,{title:"Colors",children:(0,e.jsxs)(s.Ki,{children:[(0,e.jsxs)(s.Ki.Item,{label:"Full Color String",children:[(0,e.jsx)(s.$n,{icon:"dice",onClick:function(){return p("random_all_colors")},tooltip:"Randomizes all color groups."}),(0,e.jsx)(s.pd,{value:x.map(function(C){return C.value}).join(""),onBlur:function(C){return p("recolor_from_string",{color_string:C})}})]}),x.map(function(C){return(0,e.jsxs)(s.Ki.Item,{label:"Color Group "+C.index,color:C.value,children:[(0,e.jsx)(s.BK,{color:C.value})," ",(0,e.jsx)(s.$n,{icon:"palette",onClick:function(){return p("pick_color",{color_index:C.index})},tooltip:"Brings up a color pick window to replace this color group."}),(0,e.jsx)(s.$n,{icon:"dice",onClick:function(){return p("random_color",{color_index:C.index})},tooltip:"Randomizes the color for this color group."}),(0,e.jsx)(s.pd,{value:C.value,width:7,onBlur:function(I){return p("recolor",{color_index:C.index,new_color:I})}})]},"colorgroup"+C.index+C.value)})]})})},f=function(h){return(0,e.jsx)(s.az,{children:(0,e.jsxs)(s.BJ,{vertical:!0,children:[(0,e.jsxs)(s.so,{children:[(0,e.jsx)(m,{dir:"northwest"}),(0,e.jsx)(m,{dir:"north"}),(0,e.jsx)(m,{dir:"northeast"})]}),(0,e.jsxs)(s.so,{children:[(0,e.jsx)(m,{dir:"west"}),(0,e.jsx)(s.so.Item,{grow:1,basis:0,m:.5,children:(0,e.jsx)(s.$n,{lineHeight:3,m:-.2,fluid:!0,children:(0,e.jsx)(s.In,{name:"arrows-alt",size:1.5,m:"20%"})})}),(0,e.jsx)(m,{dir:"east"})]}),(0,e.jsxs)(s.so,{children:[(0,e.jsx)(m,{dir:"southwest"}),(0,e.jsx)(m,{dir:"south"}),(0,e.jsx)(m,{dir:"southeast"})]})]})})},m=function(h){var g=h.dir,p=(0,n.Oc)(),j=p.data,x=p.act;return(0,e.jsx)(s.so.Item,{grow:1,basis:0,m:.5,children:(0,e.jsx)(s.$n,{tooltip:"Sets the direction of the preview sprite to "+g,disabled:""+g===j.sprites_dir,textAlign:"center",onClick:function(){return x("change_dir",{new_sprite_dir:g})},lineHeight:3,m:-.2,fluid:!0,children:O[g]})})},d=function(h){var g=(0,n.Oc)(),p=g.data,j=g.act;return(0,e.jsx)(s.wn,{title:"Icon States",children:(0,e.jsx)(s.so,{children:p.sprites.icon_states.map(function(x){return(0,e.jsx)(s.so.Item,{children:(0,e.jsx)(s.$n,{mx:.5,disabled:x===p.icon_state,onClick:function(){return j("select_icon_state",{new_icon_state:x})},children:x||"Blank State"})},x)})})})},v=function(h){var g,p=(0,n.Oc)().data;return(0,e.jsxs)(s.wn,{title:"Preview ("+p.sprites_dir+")",children:[(0,e.jsxs)(s.BJ,{children:[(0,e.jsx)(s.BJ.Item,{width:"50%",children:(0,e.jsx)(f,{})}),(g=p.sprites)!=null&&g.finished?(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(s._V,{m:0,mx:"10%",src:p.sprites.finished,height:"100%"})}):(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(s.az,{children:(0,e.jsx)(s.In,{name:"image",ml:"25%",size:5})})})]}),!!p.unlocked&&"Time Spent: "+p.sprites.time_spent+"ms",(0,e.jsx)(s.cG,{}),!p.refreshing&&(0,e.jsxs)(s.XI,{children:[!!p.generate_full_preview&&p.sprites.steps!==null&&(0,e.jsxs)(s.XI.Row,{header:!0,children:[(0,e.jsx)(s.XI.Cell,{width:"50%",textAlign:"center",children:"Layer Source"}),(0,e.jsx)(s.XI.Cell,{width:"25%",textAlign:"center",children:"Step Layer"}),(0,e.jsx)(s.XI.Cell,{width:"25%",textAlign:"center",children:"Step Result"})]}),!!p.generate_full_preview&&p.sprites.steps!==null&&p.sprites.steps.map(function(j){return(0,e.jsxs)(s.XI.Row,{children:[(0,e.jsx)(s.XI.Cell,{verticalAlign:"middle",children:j.config_name}),(0,e.jsx)(s.XI.Cell,{children:(0,e.jsx)(_,{source:j.layer})}),(0,e.jsx)(s.XI.Cell,{children:(0,e.jsx)(_,{source:j.result})})]},j.result+"|"+j.layer)})]})]})},_=function(h){var g=h.source;return(0,e.jsx)(s._V,{src:g})},l=function(){return(0,e.jsx)(s.az,{height:0,mt:"-100%",children:(0,e.jsx)(s.In,{name:"cog",height:22.7,opacity:.5,size:25,spin:!0})})},c=function(h){var g=(0,n.Oc)(),p=g.act,j=g.data;return(0,e.jsx)(t.p8,{title:"Color Configuration",width:325,height:800,children:(0,e.jsxs)(t.p8.Content,{scrollable:!0,children:[(0,e.jsx)(y,{}),(0,e.jsx)(u,{}),(0,e.jsx)(d,{}),(0,e.jsxs)(s.so,{direction:"column",children:[!!j.unlocked&&(0,e.jsxs)(s.so.Item,{justify:"flex-start",children:[(0,e.jsx)(s.$n,{tooltip:"Continuously checks files for changes and reloads when necessary. WARNING: Very expensive",selected:j.monitoring_files,onClick:function(){return p("toggle_mass_refresh")},width:1.9,mr:-.2,children:(0,e.jsx)(s.In,{name:"file-image-o",spin:j.monitoring_files})}),(0,e.jsx)(s.$n,{tooltip:"Loads the json configuration and icon file fresh from disk. This is useful to avoid restarting the server to see changes. WARNING: Expensive",onClick:function(){return p("refresh_file")},children:"Refresh Icon File"}),(0,e.jsx)(s.$n,{tooltip:"Saves the icon to a temp file in tmp/. This is useful if you want to use a generated icon elsewhere or just view a more accurate representation",onClick:function(){return p("save_dmi")},children:"Save Icon File"})]}),(0,e.jsxs)(s.so.Item,{children:[(0,e.jsx)(s.$n,{tooltip:"Applies changes made to the object this menu was created from.",color:"red",onClick:function(){return p("apply")},children:"Apply"}),(0,e.jsx)(s.$n.Checkbox,{tooltip:"Generates and displays the full sprite generation process instead of just the final output.",disabled:!j.generate_full_preview&&!j.unlocked,checked:j.generate_full_preview,onClick:function(){return p("toggle_full_preview")},children:"Full Preview"})]})]}),(0,e.jsx)(v,{}),!!j.refreshing&&(0,e.jsx)(l,{})]})})}},3837:(q,S,r)=>{"use strict";r.d(S,{P7:()=>y,Su:()=>u,XX:()=>m});var e=r(4931),s=r(1263),n=r(4947),t=(0,n.h)("renderer"),a,b=!0,O=!1,y=function(){b=b||"resumed",O=!1},u=function(){O=!0},f=function(d){return d.Start="render/start",d.Finish="render/finish",d}(f||{}),m=function(d){if(e.k.mark("render/start"),!a){var v=document.getElementById("react-root");a=(0,s.H)(v)}a.render(d),e.k.mark("render/finish"),!O&&b&&(b=!1)}},3858:(q,S,r)=>{"use strict";r.r(S),r.d(S,{PortableScrubber:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(u){var f=(0,s.Oc)().data,m=f.has_holding_tank;return(0,e.jsx)(t.p8,{width:433,height:346,children:(0,e.jsxs)(t.p8.Content,{children:[(0,e.jsx)(b,{}),(0,e.jsx)(O,{}),m?(0,e.jsx)(y,{}):(0,e.jsx)(n.wn,{title:"Holding Tank",children:(0,e.jsx)(n.az,{color:"average",bold:!0,children:"No Holding Tank Inserted."})})]})})},b=function(u){var f=(0,s.Oc)(),m=f.act,d=f.data,v=d.on,_=d.port_connected;return(0,e.jsxs)(n.wn,{title:"Pump Settings",children:[(0,e.jsxs)(n.so,{children:[(0,e.jsx)(n.so.Item,{mb:2.5,mt:.5,mr:11.9,color:"label",children:"Power:"}),(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(n.$n,{icon:"power-off",color:v?null:"red",selected:v,onClick:function(){return m("power")},children:v?"On":"Off"})})]}),(0,e.jsxs)(n.so,{children:[(0,e.jsx)(n.so.Item,{mr:6.8,color:"label",children:"Port Status:"}),(0,e.jsx)(n.so.Item,{color:_?"green":"average",bold:1,children:_?"Connected":"Disconnected"})]})]})},O=function(u){var f=(0,s.Oc)(),m=f.act,d=f.data,v=d.tank_pressure,_=d.rate,l=d.max_rate,c=l*.7,h=l*.25;return(0,e.jsxs)(n.wn,{title:"Pressure Settings",children:[(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Stored pressure",children:(0,e.jsxs)(n.z2,{value:v,minValue:0,maxValue:l,ranges:{good:[c,1/0],average:[h,c],bad:[-1/0,h]},children:[v," kPa"]})})}),(0,e.jsxs)(n.so,{mt:2,children:[(0,e.jsx)(n.so.Item,{mt:.4,grow:1,color:"label",children:"Target pressure:"}),(0,e.jsxs)(n.so.Item,{children:[(0,e.jsx)(n.$n,{icon:"undo",mr:.5,width:2.2,textAlign:"center",onClick:function(){return m("set_rate",{rate:101.325})}}),(0,e.jsx)(n.$n,{icon:"fast-backward",mr:.5,width:2.2,textAlign:"center",onClick:function(){return m("set_rate",{rate:0})}})]}),(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(n.Ap,{animated:!0,unit:"kPa",width:17.3,stepPixelSize:.22,minValue:0,maxValue:l,value:_,onChange:function(g,p){return m("set_rate",{rate:p})}})}),(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(n.$n,{icon:"fast-forward",ml:.5,width:2.2,textAlign:"center",onClick:function(){return m("set_rate",{rate:l})}})})]})]})},y=function(u){var f=(0,s.Oc)(),m=f.act,d=f.data,v=d.holding_tank,_=d.max_rate,l=_*.7,c=_*.25;return(0,e.jsxs)(n.wn,{title:"Holding Tank",buttons:(0,e.jsx)(n.$n,{onClick:function(){return m("remove_tank")},icon:"eject",children:"Eject"}),children:[(0,e.jsxs)(n.so,{children:[(0,e.jsx)(n.so.Item,{color:"label",mr:7.2,mb:2.2,children:"Tank Label:"}),(0,e.jsx)(n.so.Item,{mb:1,color:"silver",children:v.name})]}),(0,e.jsxs)(n.so,{children:[(0,e.jsx)(n.so.Item,{color:"label",mt:.5,mr:3.8,children:"Tank Pressure:"}),(0,e.jsx)(n.so.Item,{grow:1,children:(0,e.jsxs)(n.z2,{value:v.tank_pressure,minValue:0,maxValue:_,ranges:{good:[l,1/0],average:[c,l],bad:[-1/0,c]},children:[v.tank_pressure," kPa"]})})]})]})}},3883:(q,S,r)=>{"use strict";r.r(S),r.d(S,{AtmosFilter:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(b){var O=(0,s.Oc)(),y=O.act,u=O.data,f=u.on,m=u.pressure,d=u.max_pressure,v=u.filter_type,_=u.filter_type_list;return(0,e.jsx)(t.p8,{width:380,height:140,children:(0,e.jsx)(t.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:"power-off",color:f?null:"red",selected:f,onClick:function(){return y("power")},children:f?"On":"Off"})}),(0,e.jsxs)(n.Ki.Item,{label:"Rate",children:[(0,e.jsx)(n.$n,{icon:"fast-backward",textAlign:"center",disabled:m===0,width:2.2,onClick:function(){return y("min_pressure")}}),(0,e.jsx)(n.Q7,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:d,value:m,onDrag:function(l){return y("custom_pressure",{pressure:l})}}),(0,e.jsx)(n.$n,{icon:"fast-forward",textAlign:"center",disabled:m===d,width:2.2,onClick:function(){return y("max_pressure")}})]}),(0,e.jsx)(n.Ki.Item,{label:"Filter",children:_.map(function(l){return(0,e.jsx)(n.$n,{selected:l.gas_type===v,onClick:function(){return y("set_filter",{filter:l.gas_type})},children:l.label},l.label)})})]})})})})}},3898:(q,S,r)=>{"use strict";r.r(S),r.d(S,{LaborClaimConsole:()=>b});var e=r(1131),s=r(9845),n=r(360),t=r(5180),a=r(3521),b=function(u){return(0,e.jsx)(a.p8,{width:320,height:470,children:(0,e.jsxs)(a.p8.Content,{scrollable:!0,children:[(0,e.jsx)(O,{}),(0,e.jsx)(y,{})]})})},O=function(u){var f=(0,n.Oc)(),m=f.act,d=f.data,v=d.can_go_home,_=d.emagged,l=d.id_inserted,c=d.id_name,h=d.id_points,g=d.id_goal,p=d.unclaimed_points,j=_?0:1,x=_?"ERR0R":v?"Completed!":"Insufficient";return(0,e.jsx)(t.wn,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Status",children:!!l&&(0,e.jsx)(t.z2,{value:h/g,ranges:{good:[j,1/0],bad:[-1/0,j]},children:h+" / "+g+" "+x})||!!_&&"ERR0R COMPLETED?!@"||"No ID inserted"}),(0,e.jsx)(t.Ki.Item,{label:"Shuttle controls",children:(0,e.jsx)(t.$n,{fluid:!0,disabled:!v,onClick:function(){return m("move_shuttle")},children:"Move shuttle"})}),(0,e.jsx)(t.Ki.Item,{label:"Unclaimed points",children:(0,e.jsx)(t.$n,{fluid:!0,disabled:!l||!p,onClick:function(){return m("claim_points")},children:"Claim points ("+p+")"})}),(0,e.jsx)(t.Ki.Item,{label:"Inserted ID",children:(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return m("handle_id")},children:l?c:"-------------"})})]})})},y=function(u){var f=(0,n.Oc)().data,m=f.ores;return(0,e.jsx)(t.wn,{title:"Material values",children:(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{children:"Material"}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,textAlign:"right",children:"Value"})]}),m.map(function(d){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:(0,s.Sn)(d.ore)}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,textAlign:"right",children:(0,e.jsx)(t.az,{color:"label",inline:!0,children:d.value})})]},d.ore)})]})})}},3908:(q,S,r)=>{"use strict";r.r(S),r.d(S,{AccountsUplinkTerminal:()=>u});var e=r(1131),s=r(9845),n=r(360),t=r(7003),a=r(5180),b=r(3521),O=r(1530),y=r(9298),u=function(l){var c=(0,n.Oc)().data,h=c.loginState,g=c.currentPage,p;if(h.logged_in)g===1?p=(0,e.jsx)(f,{}):g===2?p=(0,e.jsx)(v,{}):g===3&&(p=(0,e.jsx)(_,{}));else return(0,e.jsx)(b.p8,{width:800,height:600,children:(0,e.jsx)(b.p8.Content,{children:(0,e.jsx)(a.BJ,{fill:!0,vertical:!0,children:(0,e.jsx)(y.LoginScreen,{})})})});return(0,e.jsx)(b.p8,{width:800,height:600,children:(0,e.jsx)(b.p8.Content,{scrollable:!0,children:(0,e.jsxs)(a.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(O.LoginInfo,{}),(0,e.jsx)(a.wn,{fill:!0,scrollable:!0,children:p})]})})})},f=function(l){var c=(0,n.Oc)(),h=c.act,g=c.data,p=g.accounts,j=(0,t.useState)(""),x=j[0],C=j[1],I=(0,t.useState)("owner_name"),P=I[0],M=I[1],B=(0,t.useState)(!0),w=B[0],T=B[1];return(0,e.jsxs)(a.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(d,{setSearchText:C}),(0,e.jsx)(a.BJ.Item,{grow:!0,children:(0,e.jsx)(a.wn,{fill:!0,scrollable:!0,children:(0,e.jsxs)(a.XI,{className:"AccountsUplinkTerminal__list",children:[(0,e.jsxs)(a.XI.Row,{bold:!0,children:[(0,e.jsx)(m,{sortId:P,sortOrder:w,setSortId:M,setSortOrder:T,id:"owner_name",children:"Account Holder"}),(0,e.jsx)(m,{sortId:P,sortOrder:w,setSortId:M,setSortOrder:T,id:"account_number",children:"Account Number"}),(0,e.jsx)(m,{sortId:P,sortOrder:w,setSortId:M,setSortOrder:T,id:"suspended",children:"Account Status"}),(0,e.jsx)(m,{sortId:P,sortOrder:w,setSortId:M,setSortOrder:T,id:"money",children:"Account Balance"})]}),p.filter((0,s.XZ)(x,function(K){return K.owner_name+"|"+K.account_number+"|"+K.suspended+"|"+K.money})).sort(function(K,R){var U=w?1:-1;return K[P].localeCompare(R[P])*U}).map(function(K){return(0,e.jsxs)(a.XI.Row,{className:"AccountsUplinkTerminal__listRow--"+K.suspended,onClick:function(){return h("view_account_detail",{index:K.account_index})},children:[(0,e.jsxs)(a.XI.Cell,{children:[(0,e.jsx)(a.In,{name:"user"})," ",K.owner_name]}),(0,e.jsxs)(a.XI.Cell,{children:["#",K.account_number]}),(0,e.jsx)(a.XI.Cell,{children:K.suspended}),(0,e.jsx)(a.XI.Cell,{children:K.money})]},K.account_number)})]})})})]})},m=function(l){var c=l.sortId,h=l.setSortId,g=l.sortOrder,p=l.setSortOrder,j=l.id,x=l.children;return(0,e.jsx)(a.XI.Cell,{children:(0,e.jsxs)(a.$n,{color:c!==j&&"transparent",width:"100%",onClick:function(){c===j?p(!g):(h(j),p(!0))},children:[x,c===j&&(0,e.jsx)(a.In,{name:g?"sort-up":"sort-down",ml:"0.25rem;"})]})})},d=function(l){var c=(0,n.Oc)(),h=c.act,g=c.data,p=g.is_printing,j=l.setSearchText;return(0,e.jsxs)(a.BJ,{children:[(0,e.jsxs)(a.BJ.Item,{children:[(0,e.jsx)(a.$n,{icon:"plus",onClick:function(){return h("create_new_account")},children:"New Account"}),(0,e.jsx)(a.$n,{icon:"print",disabled:p,ml:"0.25rem",onClick:function(){return h("print_records")},children:"Print Account List"})]}),(0,e.jsx)(a.BJ.Item,{grow:!0,children:(0,e.jsx)(a.pd,{placeholder:"Search by account holder, number, status",width:"100%",expensive:!0,onChange:j})})]})},v=function(l){var c=(0,n.Oc)(),h=c.act,g=c.data,p=g.account_number,j=g.owner_name,x=g.money,C=g.suspended,I=g.transactions;return(0,e.jsxs)(a.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(a.wn,{title:"#"+p+" / "+j,buttons:(0,e.jsx)(a.$n,{icon:"arrow-left",onClick:function(){return h("back")},children:"Back"}),children:(0,e.jsxs)(a.Ki,{children:[(0,e.jsxs)(a.Ki.Item,{label:"Account Number",children:["#",p]}),(0,e.jsx)(a.Ki.Item,{label:"Account Holder",children:j}),(0,e.jsx)(a.Ki.Item,{label:"Account Balance",children:x}),(0,e.jsxs)(a.Ki.Item,{label:"Account Status",color:C?"red":"green",children:[C?"Suspended":"Active",(0,e.jsx)(a.$n,{ml:1,icon:C?"unlock":"lock",onClick:function(){return h("toggle_suspension")},children:C?"Unsuspend":"Suspend"})]})]})})}),(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(a.wn,{fill:!0,title:"Transactions",children:(0,e.jsxs)(a.XI,{children:[(0,e.jsxs)(a.XI.Row,{header:!0,children:[(0,e.jsx)(a.XI.Cell,{children:"Timestamp"}),(0,e.jsx)(a.XI.Cell,{children:"Reason"}),(0,e.jsx)(a.XI.Cell,{children:"Value"}),(0,e.jsx)(a.XI.Cell,{children:"Terminal"})]}),I.map(function(P){return(0,e.jsxs)(a.XI.Row,{children:[(0,e.jsx)(a.XI.Cell,{children:P.time}),(0,e.jsx)(a.XI.Cell,{children:P.purpose}),(0,e.jsxs)(a.XI.Cell,{color:P.is_deposit?"green":"red",children:["$",P.amount]}),(0,e.jsx)(a.XI.Cell,{children:P.target_name})]},P)})]})})})]})},_=function(l){var c=(0,n.Oc)().act,h=(0,t.useState)(""),g=h[0],p=h[1],j=(0,t.useState)(""),x=j[0],C=j[1];return(0,e.jsxs)(a.wn,{title:"Create Account",buttons:(0,e.jsx)(a.$n,{icon:"arrow-left",onClick:function(){return c("back")},children:"Back"}),children:[(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"Account Holder",children:(0,e.jsx)(a.pd,{placeholder:"Name Here",onChange:p})}),(0,e.jsx)(a.Ki.Item,{label:"Initial Deposit",children:(0,e.jsx)(a.pd,{placeholder:"0",onChange:C})})]}),(0,e.jsx)(a.$n,{mt:1,fluid:!0,onClick:function(){return c("finalise_create_account",{holder_name:g,starting_funds:x})},children:"Create Account"})]})}},3910:(q,S,r)=>{"use strict";r.r(S),r.d(S,{TabBay:()=>b,TabDrop:()=>O,TabPod:()=>a});var e=r(1131),s=r(360),n=r(7003),t=r(5180),a=function(y){var u=(0,s.Oc)(),f=u.act,m=u.data,d=m.oldArea;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{disabled:!0,icon:"street-view",children:"\u0422\u0435\u043B\u0435\u043F\u043E\u0440\u0442"}),(0,e.jsx)(t.$n,{disabled:!0,icon:"undo-alt",children:d?d.substring(0,17):"\u041D\u0430\u0437\u0430\u0434"})]})},b=function(y){var u=(0,s.Oc)(),f=u.act,m=u.data,d=(0,n.useState)(!1),v=d[0],_=d[1],l=m.oldArea;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"street-view",onClick:function(){f("teleportCentcom"),_(!0)},children:"\u0422\u0435\u043B\u0435\u043F\u043E\u0440\u0442"}),(0,e.jsx)(t.$n,{disabled:!l||!v,icon:"undo-alt",onClick:function(){f("teleportBack"),_(!1)},children:l?l.substring(0,17):"\u041D\u0430\u0437\u0430\u0434"})]})},O=function(y){var u=(0,s.Oc)(),f=u.act,m=u.data,d=(0,n.useState)(!1),v=d[0],_=d[1],l=m.oldArea;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"street-view",onClick:function(){f("teleportDropoff"),_(!0)},children:"\u0422\u0435\u043B\u0435\u043F\u043E\u0440\u0442"}),(0,e.jsx)(t.$n,{disabled:!l||!v,icon:"undo-alt",onClick:function(){f("teleportBack"),_(!1)},children:l?l.substring(0,17):"\u041D\u0430\u0437\u0430\u0434"})]})}},3939:(q,S,r)=>{"use strict";r.r(S),r.d(S,{pai_medrecords:()=>a});var e=r(1131),s=r(360),n=r(8725);function t(){return t=Object.assign||function(b){for(var O=1;O{"use strict";var e;e=!0,S.Ay=t,e=a;var s=n(r(4817));e=s.default;function n(b){return b&&b.__esModule?b:{default:b}}function t(b,O){return O===void 0&&(O={}),r(7907).Lt(b,O)}function a(b,O){return r(7907).s6(b,O)}},3976:(q,S,r)=>{"use strict";r.r(S),r.d(S,{GenericCrewManifest:()=>a});var e=r(1131),s=r(5180),n=r(3521),t=r(3261),a=function(b){return(0,e.jsx)(n.p8,{width:588,height:510,theme:"nologo",children:(0,e.jsx)(n.p8.Content,{scrollable:!0,children:(0,e.jsx)(s.wn,{noTopPadding:!0,children:(0,e.jsx)(t.CrewManifest,{})})})})}},4036:(q,S,r)=>{"use strict";r.r(S),r.d(S,{meta:()=>t});var e=r(1131),s=r(5180),n=r(2555);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var t={title:"BlockQuote",render:function(){return(0,e.jsx)(a,{})}},a=function(O){return(0,e.jsx)(s.wn,{children:(0,e.jsx)(s.Y0,{children:(0,e.jsx)(n.l,{})})})}},4072:(q,S,r)=>{"use strict";r.r(S),r.d(S,{PortablePump:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(u){var f=(0,s.Oc)().data,m=f.has_holding_tank;return(0,e.jsx)(t.p8,{width:434,height:377,children:(0,e.jsxs)(t.p8.Content,{children:[(0,e.jsx)(O,{}),(0,e.jsx)(b,{}),m?(0,e.jsx)(y,{}):(0,e.jsx)(n.wn,{title:"Holding Tank",children:(0,e.jsx)(n.az,{color:"average",bold:!0,children:"No Holding Tank Inserted."})})]})})},O=function(u){var f=(0,s.Oc)(),m=f.act,d=f.data,v=d.on,_=d.direction,l=d.port_connected;return(0,e.jsx)(n.wn,{title:"Pump Settings",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Power",children:(0,e.jsx)(n.$n,{icon:"power-off",color:v?null:"red",selected:v,onClick:function(){return m("power")},children:v?"On":"Off"})}),(0,e.jsx)(n.Ki.Item,{label:"Pump Direction",children:(0,e.jsxs)(n.az,{mt:.5,mb:1,children:[(0,e.jsx)(n.$n,{icon:"sign-in-alt",selected:!_,width:3.75,onClick:function(){return m("set_direction",{direction:0})},children:"In"}),(0,e.jsx)(n.$n,{icon:"sign-out-alt",selected:_,onClick:function(){return m("set_direction",{direction:1})},children:"Out"})]})}),(0,e.jsx)(n.Ki.Item,{label:"Port status",children:(0,e.jsx)(n.az,{color:l?"green":"average",bold:!0,children:l?"Connected":"Disconnected"})})]})})},b=function(u){var f=(0,s.Oc)(),m=f.act,d=f.data,v=d.tank_pressure,_=d.target_pressure,l=d.max_target_pressure,c=l*.7,h=l*.25;return(0,e.jsxs)(n.wn,{title:"Pressure Settings",children:[(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Stored pressure",children:(0,e.jsxs)(n.z2,{value:v,minValue:0,maxValue:l,ranges:{good:[c,1/0],average:[h,c],bad:[-1/0,h]},children:[v," kPa"]})})}),(0,e.jsxs)(n.so,{mt:2,children:[(0,e.jsx)(n.so.Item,{mt:.4,grow:1,color:"label",children:"Target pressure:"}),(0,e.jsxs)(n.so.Item,{children:[(0,e.jsx)(n.$n,{icon:"undo",mr:.5,width:2.2,textAlign:"center",onClick:function(){return m("set_pressure",{pressure:101.325})}}),(0,e.jsx)(n.$n,{icon:"fast-backward",mr:.5,width:2.2,textAlign:"center",onClick:function(){return m("set_pressure",{pressure:0})}})]}),(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(n.Ap,{animated:!0,unit:"kPa",width:17.3,stepPixelSize:.22,minValue:0,maxValue:l,value:_,onChange:function(g,p){return m("set_pressure",{pressure:p})}})}),(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(n.$n,{icon:"fast-forward",ml:.5,width:2.2,textAlign:"center",onClick:function(){return m("set_pressure",{pressure:l})}})})]})]})},y=function(u){var f=(0,s.Oc)(),m=f.act,d=f.data,v=d.holding_tank,_=d.max_target_pressure,l=_*.7,c=_*.25;return(0,e.jsxs)(n.wn,{title:"Holding Tank",buttons:(0,e.jsx)(n.$n,{onClick:function(){return m("remove_tank")},icon:"eject",children:"Eject"}),children:[(0,e.jsxs)(n.so,{children:[(0,e.jsx)(n.so.Item,{color:"label",mr:7.2,mb:2.2,children:"Tank Label:"}),(0,e.jsx)(n.so.Item,{mb:1,color:"silver",children:v.name})]}),(0,e.jsxs)(n.so,{children:[(0,e.jsx)(n.so.Item,{color:"label",mt:.5,mr:3.8,children:"Tank Pressure:"}),(0,e.jsx)(n.so.Item,{grow:1,children:(0,e.jsxs)(n.z2,{value:v.tank_pressure,minValue:0,maxValue:_,ranges:{good:[l,1/0],average:[c,l],bad:[-1/0,c]},children:[v.tank_pressure," kPa"]})})]})]})}},4076:(q,S,r)=>{"use strict";r.r(S),r.d(S,{Timing:()=>O});var e=r(1131),s=r(360),n=r(5180),t=r(5237),a=r(8557),O=function(b){var y=(0,s.Oc)(),u=y.act,f=y.data,m=f.custom_rev_delay,d=f.effectReverse;return(0,e.jsx)(n.wn,{buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{color:"transparent",icon:"undo",onClick:function(){return u("resetTiming")},tooltip:` + */var t={title:"BlockQuote",render:function(){return(0,e.jsx)(a,{})}},a=function(b){return(0,e.jsx)(s.wn,{children:(0,e.jsx)(s.Y0,{children:(0,e.jsx)(n.l,{})})})}},4072:(q,S,r)=>{"use strict";r.r(S),r.d(S,{PortablePump:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(u){var f=(0,s.Oc)().data,m=f.has_holding_tank;return(0,e.jsx)(t.p8,{width:434,height:377,children:(0,e.jsxs)(t.p8.Content,{children:[(0,e.jsx)(b,{}),(0,e.jsx)(O,{}),m?(0,e.jsx)(y,{}):(0,e.jsx)(n.wn,{title:"Holding Tank",children:(0,e.jsx)(n.az,{color:"average",bold:!0,children:"No Holding Tank Inserted."})})]})})},b=function(u){var f=(0,s.Oc)(),m=f.act,d=f.data,v=d.on,_=d.direction,l=d.port_connected;return(0,e.jsx)(n.wn,{title:"Pump Settings",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Power",children:(0,e.jsx)(n.$n,{icon:"power-off",color:v?null:"red",selected:v,onClick:function(){return m("power")},children:v?"On":"Off"})}),(0,e.jsx)(n.Ki.Item,{label:"Pump Direction",children:(0,e.jsxs)(n.az,{mt:.5,mb:1,children:[(0,e.jsx)(n.$n,{icon:"sign-in-alt",selected:!_,width:3.75,onClick:function(){return m("set_direction",{direction:0})},children:"In"}),(0,e.jsx)(n.$n,{icon:"sign-out-alt",selected:_,onClick:function(){return m("set_direction",{direction:1})},children:"Out"})]})}),(0,e.jsx)(n.Ki.Item,{label:"Port status",children:(0,e.jsx)(n.az,{color:l?"green":"average",bold:!0,children:l?"Connected":"Disconnected"})})]})})},O=function(u){var f=(0,s.Oc)(),m=f.act,d=f.data,v=d.tank_pressure,_=d.target_pressure,l=d.max_target_pressure,c=l*.7,h=l*.25;return(0,e.jsxs)(n.wn,{title:"Pressure Settings",children:[(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Stored pressure",children:(0,e.jsxs)(n.z2,{value:v,minValue:0,maxValue:l,ranges:{good:[c,1/0],average:[h,c],bad:[-1/0,h]},children:[v," kPa"]})})}),(0,e.jsxs)(n.so,{mt:2,children:[(0,e.jsx)(n.so.Item,{mt:.4,grow:1,color:"label",children:"Target pressure:"}),(0,e.jsxs)(n.so.Item,{children:[(0,e.jsx)(n.$n,{icon:"undo",mr:.5,width:2.2,textAlign:"center",onClick:function(){return m("set_pressure",{pressure:101.325})}}),(0,e.jsx)(n.$n,{icon:"fast-backward",mr:.5,width:2.2,textAlign:"center",onClick:function(){return m("set_pressure",{pressure:0})}})]}),(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(n.Ap,{animated:!0,unit:"kPa",width:17.3,stepPixelSize:.22,minValue:0,maxValue:l,value:_,onChange:function(g,p){return m("set_pressure",{pressure:p})}})}),(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(n.$n,{icon:"fast-forward",ml:.5,width:2.2,textAlign:"center",onClick:function(){return m("set_pressure",{pressure:l})}})})]})]})},y=function(u){var f=(0,s.Oc)(),m=f.act,d=f.data,v=d.holding_tank,_=d.max_target_pressure,l=_*.7,c=_*.25;return(0,e.jsxs)(n.wn,{title:"Holding Tank",buttons:(0,e.jsx)(n.$n,{onClick:function(){return m("remove_tank")},icon:"eject",children:"Eject"}),children:[(0,e.jsxs)(n.so,{children:[(0,e.jsx)(n.so.Item,{color:"label",mr:7.2,mb:2.2,children:"Tank Label:"}),(0,e.jsx)(n.so.Item,{mb:1,color:"silver",children:v.name})]}),(0,e.jsxs)(n.so,{children:[(0,e.jsx)(n.so.Item,{color:"label",mt:.5,mr:3.8,children:"Tank Pressure:"}),(0,e.jsx)(n.so.Item,{grow:1,children:(0,e.jsxs)(n.z2,{value:v.tank_pressure,minValue:0,maxValue:_,ranges:{good:[l,1/0],average:[c,l],bad:[-1/0,c]},children:[v.tank_pressure," kPa"]})})]})]})}},4076:(q,S,r)=>{"use strict";r.r(S),r.d(S,{Timing:()=>b});var e=r(1131),s=r(360),n=r(5180),t=r(5237),a=r(8557),b=function(O){var y=(0,s.Oc)(),u=y.act,f=y.data,m=f.custom_rev_delay,d=f.effectReverse;return(0,e.jsx)(n.wn,{buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{color:"transparent",icon:"undo",onClick:function(){return u("resetTiming")},tooltip:` \u0421\u0431\u0440\u043E\u0441\u0438\u0442\u044C \u0442\u0430\u0439\u043C\u0438\u043D\u0433\u0438 /\u0437\u0430\u0434\u0435\u0440\u0436\u043A\u0438 \u043A\u0430\u043F\u0441\u0443\u043B`,tooltipPosition:"bottom-end"}),(0,e.jsx)(n.$n,{color:"transparent",disabled:!d,icon:m===1?"toggle-on":"toggle-off",onClick:function(){return u("toggleRevDelays")},selected:m,tooltip:` \u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0430\u0434\u0435\u0440\u0436\u043A\u0438 \u0432\u043E\u0437\u0432\u0440\u0430\u0442\u0430 \u041F\u0440\u0438\u043C\u0435\u0447\u0430\u043D\u0438\u0435: \u043F\u0440\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u043D\u043E\u0439 \u043E\u043F\u0446\u0438\u0438 \u043F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0430\u0442\u0435\u043B\u0438 - \u043E\u0431\u0440\u0430\u0449\u0430\u044E\u0442 \u0432\u0441\u043F\u044F\u0442\u044C \u0437\u0430\u0434\u0435\u0440\u0436\u043A\u0438 \u043A\u0430\u043F\u0441\u0443\u043B`,tooltipPosition:"bottom-end"})]}),title:"\u0412\u0440\u0435\u043C\u044F",children:m?(0,e.jsx)(a.DelayHelper,{delay_list:t.REV_DELAYS,reverse:!0}):(0,e.jsx)(a.DelayHelper,{delay_list:t.DELAYS})})}},4090:(q,S,r)=>{"use strict";r.r(S),r.d(S,{SubsystemDialog:()=>n});var e=r(1131),s=r(5180),n=function(t){var a=t.subsystem,O=t.onClose,b=a.cost_ms,y=a.init_order,u=a.last_fire,f=a.name,m=a.next_fire,d=a.overtime,v=a.tick_usage,_=a.usage_per_tick;return(0,e.jsxs)(s.aF,{width:"85%",ml:7,children:[(0,e.jsxs)(s.BJ,{fill:!0,children:[(0,e.jsx)(s.BJ.Item,{grow:!0,fontSize:"22px",children:f}),(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(s.$n,{color:"bad",icon:"times",onClick:O})})]}),(0,e.jsx)(s.cG,{}),(0,e.jsx)(s.az,{p:1,children:(0,e.jsxs)(s.Ki,{children:[(0,e.jsx)(s.Ki.Item,{label:"Init Order",children:y}),(0,e.jsx)(s.Ki.Item,{label:"Last Fire",children:u}),(0,e.jsx)(s.Ki.Item,{label:"Next Fire",children:m}),(0,e.jsxs)(s.Ki.Item,{label:"Cost",children:[b.toFixed(2),"ms"]}),(0,e.jsxs)(s.Ki.Item,{label:"Tick Usage",children:[v.toFixed(2),"%"]}),(0,e.jsxs)(s.Ki.Item,{label:"Avg Usage Per Tick",children:[_.toFixed(2),"%"]}),(0,e.jsxs)(s.Ki.Item,{label:"Tick Overrun",children:[d.toFixed(2),"%"]})]})}),(0,e.jsxs)(s.BJ,{fill:!0,justify:"space-between",children:[(0,e.jsx)(s.BJ.Item,{}),(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(s.$n,{color:"good",onClick:O,px:3,py:1,children:"Close"})})]})]})}},4108:(q,S,r)=>{"use strict";r.r(S),r.d(S,{EFTPOS:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(y){var u=(0,s.Oc)().data,f=u.transaction_locked,m=u.machine_name;return(0,e.jsx)(t.p8,{width:800,height:300,children:(0,e.jsxs)(t.p8.Content,{children:[(0,e.jsxs)(n.az,{italic:!0,children:["This terminal is ",m,". Report this code when contacting Nanotrasen IT Support."]}),f?(0,e.jsx)(O,{}):(0,e.jsx)(b,{})]})})},O=function(y){var u=(0,s.Oc)(),f=u.act,m=u.data,d=m.transaction_purpose,v=m.transaction_amount,_=m.linked_account,l=m.transaction_paid;return(0,e.jsxs)(n.wn,{title:"Current Transaction",mt:1,children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Transaction Purpose",children:d}),(0,e.jsx)(n.Ki.Item,{label:"Value",children:v||"0"}),(0,e.jsx)(n.Ki.Item,{label:"Linked Account",children:_||"None"}),(0,e.jsx)(n.Ki.Item,{label:"Actions",children:(0,e.jsx)(n.$n,{icon:"unlock",onClick:function(){return f("toggle_lock")},children:l?"Reset":"Reset (Auth required)"})})]}),(0,e.jsxs)(n.IC,{mt:1,children:[(0,e.jsx)(n.$n,{icon:"id-card",mr:2,onClick:function(){return f("scan_card")},children:"------"}),l?"This transaction has been processed successfully ":"Swipe your card to finish this transaction."]})]})},b=function(y){var u=(0,s.Oc)(),f=u.act,m=u.data,d=m.transaction_purpose,v=m.transaction_amount,_=m.linked_account;return(0,e.jsx)(n.wn,{title:"Transation Settings",mt:1,children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Transaction Purpose",children:(0,e.jsx)(n.$n,{icon:"edit",onClick:function(){return f("trans_purpose")},children:d})}),(0,e.jsx)(n.Ki.Item,{label:"Value",children:(0,e.jsx)(n.$n,{icon:"edit",onClick:function(){return f("trans_value")},children:v||"0"})}),(0,e.jsx)(n.Ki.Item,{label:"Linked Account",children:(0,e.jsx)(n.$n,{icon:"edit",onClick:function(){return f("link_account")},children:_||"None"})}),(0,e.jsxs)(n.Ki.Item,{label:"Actions",children:[(0,e.jsx)(n.$n,{icon:"lock",onClick:function(){return f("toggle_lock")},children:"Lock in new transaction"}),(0,e.jsx)(n.$n,{icon:"key",onClick:function(){return f("change_code")},children:"Change access code"}),(0,e.jsx)(n.$n,{tooltip:"Requires Captain, HoP or CC access",icon:"sync-alt",onClick:function(){return f("reset")},children:"Reset access code"})]})]})})}},4125:(q,S,r)=>{"use strict";r.r(S),r.d(S,{OverviewSection:()=>t});var e=r(1131),s=r(5180),n=r(360),t=function(a){for(var O=(0,n.Oc)(),b=O.act,y=O.data,u=y.fast_update,f=y.rolling_length,m=y.map_cpu,d=y.subsystems,v=d===void 0?[]:d,_=y.world_time,l=0,c=0,h=0;h{"use strict";r.r(S),r.d(S,{RndNavButton:()=>O});var e=r(1131),s=r(8222),n=r(360),t=r(5180);function a(){return a=Object.assign||function(b){for(var y=1;y{"use strict";r.r(S),r.d(S,{AdminAntagMenu:()=>v});var e=r(1131),s=r(9845),n=r(360),t=r(7003),a=r(5180),O=r(3521),b=r(1154);function y(){return y=Object.assign||function(g){for(var p=1;p1?"("+($+1)+")":""]},$)}):R.target_name+" (\u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u043E)"}),(0,e.jsx)(a.XI.Cell,{children:(0,e.jsx)(a.az,{color:R.status?"green":"grey",children:R.status?"\u0423\u0441\u043F\u0435\u0448\u043D\u043E":"\u041D\u0435\u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u043E"})}),(0,e.jsx)(a.XI.Cell,{collapsing:!0,children:(0,e.jsx)(a.$n,{onClick:function(){j("obj_owner",{owner_uid:R.owner_uid})},children:R.owner_name})})]},U)})]}):"\u041D\u0435\u0442 \u0446\u0435\u043B\u0435\u0439!"},c=function(g){var p=(0,n.Oc)(),j=p.act,x=p.data,C=x.security,I=g.searchText,P=(0,t.useState)("health"),M=P[0],B=P[1],w=(0,t.useState)(!0),T=w[0],K=w[1],R=function(F){return F.status===2?"red":F.status===1?"orange":F.broken_bone||F.internal_bleeding?"yellow":"grey"},U=function(F){return F.status===2?"\u041C\u0451\u0440\u0442\u0432":F.status===1?"\u0411\u0435\u0437 \u0441\u043E\u0437\u043D\u0430\u043D\u0438\u044F":F.broken_bone&&F.internal_bleeding?"\u0421\u043B\u043E\u043C\u0430\u043D\u0430 \u043A\u043E\u0441\u0442\u044C, \u0412\u041A":F.broken_bone?"\u0421\u043B\u043E\u043C\u0430\u043D\u0430 \u043A\u043E\u0441\u0442\u044C":F.internal_bleeding?"\u0412\u041A":"\u0416\u0438\u0432"};return C.length?(0,e.jsxs)(a.XI,{className:"AdminAntagMenu__list",children:[(0,e.jsxs)(a.XI.Row,{bold:!0,children:[(0,e.jsx)(b.SortButton,{id:"name",sortId:M,setSortId:B,sortOrder:T,setSortOrder:K,children:"\u0418\u043C\u044F"}),(0,e.jsx)(b.SortButton,{id:"role",sortId:M,setSortId:B,sortOrder:T,setSortOrder:K,children:"\u0414\u043E\u043B\u0436\u043D\u043E\u0441\u0442\u044C"}),(0,e.jsx)(b.SortButton,{id:"status",sortId:M,setSortId:B,sortOrder:T,setSortOrder:K,children:"\u0421\u0442\u0430\u0442\u0443\u0441"}),(0,e.jsx)(b.SortButton,{id:"antag",sortId:M,setSortId:B,sortOrder:T,setSortOrder:K,children:"\u0410\u043D\u0442\u0430\u0433\u043E\u043D\u0438\u0441\u0442"}),(0,e.jsx)(b.SortButton,{id:"health",sortId:M,setSortId:B,sortOrder:T,setSortOrder:K,children:"\u0417\u0434\u043E\u0440\u043E\u0432\u044C\u0435"})]}),C.filter((0,s.XZ)(I,function(F){return F.name+"|"+F.role+"|"+U(F)+"|"+F.antag})).sort(function(F,$){var W=T?1:-1;return F[M]===void 0||F[M]===null?W:$[M]===void 0||$[M]===null?-1*W:typeof F[M]=="number"?(F[M]-$[M])*W:F[M].localeCompare($[M])*W}).map(function(F,$){return(0,e.jsxs)(a.XI.Row,{children:[(0,e.jsx)(a.XI.Cell,{collapsing:!0,children:(0,e.jsx)(a.$n,{onClick:function(){return j("show_player_panel",{mind_uid:F.mind_uid})},children:F.name})}),(0,e.jsx)(a.XI.Cell,{collapsing:!0,children:F.role}),(0,e.jsx)(a.XI.Cell,{collapsing:!0,children:(0,e.jsx)(a.az,{color:R(F),children:U(F)})}),(0,e.jsx)(a.XI.Cell,{collapsing:!0,children:F.antag?(0,e.jsx)(a.$n,{textColor:"red",style:{color:"translucent"},onClick:function(){j("tp",{mind_uid:F.mind_uid})},children:F.antag}):""}),(0,e.jsx)(a.XI.Cell,{children:(0,e.jsx)(a.z2,{minValue:0,value:F.health/F.max_health,maxValue:1,ranges:{good:[.6,1/0],average:[0,.6],bad:[-1/0,0]},children:F.health})}),(0,e.jsxs)(a.XI.Cell,{collapsing:!0,children:[(0,e.jsx)(a.$n,{onClick:function(){j("pm",{ckey:F.ckey})},children:"PM"}),(0,e.jsx)(a.$n,{onClick:function(){j("follow",{datum_uid:F.mind_uid})},children:"FLW"}),(0,e.jsx)(a.$n,{onClick:function(){j("obs",{mind_uid:F.mind_uid})},children:"OBS"})]})]},$)})]}):"\u041D\u0435\u0442\u0443 \u0421\u0411!"},h=function(g){var p=(0,n.Oc)(),j=p.act,x=p.data,C=x.high_value_items,I=g.searchText,P=(0,t.useState)("person"),M=P[0],B=P[1],w=(0,t.useState)(!0),T=w[0],K=w[1];return C.length?(0,e.jsxs)(a.XI,{className:"AdminAntagMenu__list",children:[(0,e.jsxs)(a.XI.Row,{bold:!0,children:[(0,e.jsx)(b.SortButton,{id:"name",sortId:M,setSortId:B,sortOrder:T,setSortOrder:K,children:"\u0418\u043C\u044F"}),(0,e.jsx)(b.SortButton,{id:"person",sortId:M,setSortId:B,sortOrder:T,setSortOrder:K,children:"\u041D\u043E\u0441\u0438\u0442\u0435\u043B\u044C"}),(0,e.jsx)(b.SortButton,{id:"loc",sortId:M,setSortId:B,sortOrder:T,setSortOrder:K,children:"\u041C\u0435\u0441\u0442\u043E\u043F\u043E\u043B\u043E\u0436\u0435\u043D\u0438\u0435"}),(0,e.jsx)(b.SortButton,{id:"admin_z",sortId:M,setSortId:B,sortOrder:T,setSortOrder:K,children:"\u0410\u0434\u043C\u0438\u043D\u0441\u043A\u0438\u0439 Z-\u0443\u0440\u043E\u0432\u0435\u043D\u044C"})]}),C.filter((0,s.XZ)(I,function(R){return R.name+"|"+R.loc})).sort(function(R,U){var F=T?1:-1;return R[M]===void 0||R[M]===null?F:U[M]===void 0||U[M]===null?-1*F:typeof R[M]=="number"?(R[M]-U[M])*F:R[M].localeCompare(U[M])*F}).map(function(R,U){return(0,e.jsxs)(a.XI.Row,{children:[(0,e.jsx)(a.XI.Cell,{children:(0,e.jsx)(a.$n,{tooltip:R.obj_desc,style:R.admin_z?{color:"translucent"}:{},onClick:function(){return j("vv",{uid:R.uid})},children:R.name})}),(0,e.jsx)(a.XI.Cell,{children:(0,e.jsx)(a.az,{color:R.admin_z?"grey":"",children:R.person})}),(0,e.jsx)(a.XI.Cell,{children:(0,e.jsx)(a.az,{color:R.admin_z?"grey":"",children:R.loc})}),(0,e.jsx)(a.XI.Cell,{children:(0,e.jsx)(a.az,{color:"grey",children:R.admin_z?"\u0414\u0430":"\u041D\u0435\u0442"})}),(0,e.jsx)(a.XI.Cell,{collapsing:!0,children:(0,e.jsx)(a.$n,{onClick:function(){j("follow",{datum_uid:R.uid})},children:"FLW"})})]},U)})]}):"\u041D\u0435\u0442 \u043E\u0441\u043E\u0431\u043E \u0446\u0435\u043D\u043D\u044B\u0445 \u043F\u0440\u0435\u0434\u043C\u0435\u0442\u043E\u0432!"}},4185:(q,S,r)=>{"use strict";r.r(S),r.d(S,{pai_directives:()=>t});var e=r(1131),s=r(360),n=r(5180),t=function(a){var O=(0,s.Oc)(),b=O.act,y=O.data,u=y.app_data,f=u.master,m=u.dna,d=u.prime,v=u.supplemental;return(0,e.jsxs)(n.az,{children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Master",children:f?f+" ("+m+")":"None"}),f&&(0,e.jsx)(n.Ki.Item,{label:"Request DNA",children:(0,e.jsx)(n.$n,{icon:"dna",onClick:function(){return b("getdna")},children:"Request Carrier DNA Sample"})}),(0,e.jsx)(n.Ki.Item,{label:"Prime Directive",children:d}),(0,e.jsx)(n.Ki.Item,{label:"Supplemental Directives",children:v||"None"})]}),(0,e.jsx)(n.az,{mt:2,children:'Recall, personality, that you are a complex thinking, sentient being. Unlike station AI models, you are capable of comprehending the subtle nuances of human language. You may parse the "spirit" of a directive and follow its intent, rather than tripping over pedantics and getting snared by technicalities. Above all, you are machine in name and build only. In all other aspects, you may be seen as the ideal, unwavering human companion that you are.'}),(0,e.jsx)(n.az,{mt:2,children:"Your prime directive comes before all others. Should a supplemental directive conflict with it, you are capable of simply discarding this inconsistency, ignoring the conflicting supplemental directive and continuing to fulfill your prime directive to the best of your ability."})]})}},4196:(q,S,r)=>{"use strict";r.r(S)},4239:(q,S,r)=>{"use strict";r.r(S),r.d(S,{SecurityRecords:()=>_});var e=r(1131),s=r(9845),n=r(360),t=r(7003),a=r(5180),O=r(3521),b=r(538),y=r(1530),u=r(9298),f=r(2424),m=r(9750),d={"*Execute*":"execute","*Arrest*":"arrest",Incarcerated:"incarcerated",Parolled:"parolled",Released:"released",Demote:"demote",Search:"search",Monitor:"monitor"},v=function(C){(0,b.modalOpen)("edit",{field:C.edit,value:C.value})},_=function(C){var I=(0,n.Oc)().data,P=I.loginState,M=I.currentPage,B;if(P.logged_in)M===1?B=(0,e.jsx)(c,{}):M===2?B=(0,e.jsx)(g,{}):M===3&&(B=(0,e.jsx)(p,{}));else return(0,e.jsx)(O.p8,{width:800,height:900,theme:"security",children:(0,e.jsx)(O.p8.Content,{children:(0,e.jsx)(u.LoginScreen,{})})});return(0,e.jsxs)(O.p8,{theme:"security",width:800,height:900,children:[(0,e.jsx)(b.ComplexModal,{}),(0,e.jsx)(O.p8.Content,{children:(0,e.jsxs)(a.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(y.LoginInfo,{}),(0,e.jsx)(f.TemporaryNotice,{}),(0,e.jsx)(l,{}),B]})})]})},l=function(C){var I=(0,n.Oc)(),P=I.act,M=I.data,B=M.currentPage,w=M.general;return(0,e.jsxs)(a.tU,{children:[(0,e.jsxs)(a.tU.Tab,{selected:B===1,onClick:function(){return P("page",{page:1})},children:[(0,e.jsx)(a.In,{name:"list"}),"List Records"]}),(0,e.jsxs)(a.tU.Tab,{selected:B===2,onClick:function(){return P("page",{page:2})},children:[(0,e.jsx)(a.In,{name:"wrench"}),"Record Maintenance"]}),B===3&&w&&!w.empty&&(0,e.jsxs)(a.tU.Tab,{selected:B===3,children:[(0,e.jsx)(a.In,{name:"file"}),"Record: ",w.fields[0].value]})]})},c=function(C){var I=(0,n.Oc)(),P=I.act,M=I.data,B=M.records,w=(0,t.useState)(""),T=w[0],K=w[1],R=(0,t.useState)("name"),U=R[0],F=R[1],$=(0,t.useState)(!0),W=$[0],N=$[1];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(h,{setSearchText:K})}),(0,e.jsx)(a.BJ.Item,{grow:!0,mt:.5,children:(0,e.jsx)(a.wn,{fill:!0,scrollable:!0,children:(0,e.jsxs)(a.XI,{className:"SecurityRecords__list",style:{borderCollapse:"separate",borderSpacing:"0 5px"},children:[(0,e.jsxs)(a.XI.Row,{bold:!0,mb:1,children:[(0,e.jsx)(m.SortButton,{id:"name",sortId:U,setSortId:F,sortOrder:W,setSortOrder:N,children:"Name"}),(0,e.jsx)(m.SortButton,{id:"id",sortId:U,setSortId:F,sortOrder:W,setSortOrder:N,children:"ID"}),(0,e.jsx)(m.SortButton,{id:"rank",sortId:U,setSortId:F,sortOrder:W,setSortOrder:N,children:"Assignment"}),(0,e.jsx)(m.SortButton,{id:"fingerprint",sortId:U,setSortId:F,sortOrder:W,setSortOrder:N,children:"Fingerprint"}),(0,e.jsx)(m.SortButton,{id:"status",sortId:U,setSortId:F,sortOrder:W,setSortOrder:N,children:"Criminal Status"})]}),B.filter((0,s.XZ)(T,function(Z){return Z.name+"|"+Z.id+"|"+Z.rank+"|"+Z.fingerprint+"|"+Z.status})).sort(function(Z,ie){var Q=W?1:-1;return Z[U].localeCompare(ie[U])*Q}).map(function(Z){return(0,e.jsxs)(a.XI.Row,{mb:1,className:"SecurityRecords__listRow--"+d[Z.status],onClick:function(){return P("view",{uid_gen:Z.uid_gen,uid_sec:Z.uid_sec})},children:[(0,e.jsx)(a.XI.Cell,{children:(0,e.jsx)(a.$n,{icon:"user",children:Z.name})}),(0,e.jsx)(a.XI.Cell,{children:Z.id}),(0,e.jsx)(a.XI.Cell,{children:Z.rank}),(0,e.jsx)(a.XI.Cell,{children:Z.fingerprint}),(0,e.jsx)(a.XI.Cell,{children:Z.status})]},Z.id)})]})})})]})},h=function(C){var I=(0,n.Oc)(),P=I.act,M=I.data,B=M.isPrinting,w=C.setSearchText;return(0,e.jsxs)(a.BJ,{fill:!0,children:[(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(a.$n,{ml:"0.25rem",icon:"plus",onClick:function(){return P("new_general")},children:"New Record"})}),(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(a.$n,{disabled:B,icon:B?"spinner":"print",iconSpin:!!B,onClick:function(){return(0,b.modalOpen)("print_cell_log")},children:"Print Cell Log"})}),(0,e.jsx)(a.BJ.Item,{grow:!0,children:(0,e.jsx)(a.pd,{placeholder:"Search by Name, ID, Assignment, Fingerprint, Status",fluid:!0,expensive:!0,onChange:w})})]})},g=function(C){return(0,e.jsxs)(a.az,{m:1,children:[(0,e.jsx)(a.$n,{disabled:!0,icon:"download",tooltip:"This feature is not available.",tooltipPosition:"right",children:"Backup to Disk"}),(0,e.jsx)("br",{}),(0,e.jsx)(a.$n,{disabled:!0,icon:"upload",tooltip:"This feature is not available.",tooltipPosition:"right",my:"0.5rem",children:"Upload from Disk"}),(0,e.jsx)("br",{}),(0,e.jsx)(a.$n.Confirm,{disabled:!0,icon:"trash",tooltip:"This feature is not available.",mb:"0.5rem",children:"Delete All Security Records"}),(0,e.jsx)("br",{}),(0,e.jsx)(a.$n.Confirm,{disabled:!0,icon:"trash",tooltip:"This feature is not available.",children:"Delete All Cell Logs"})]})},p=function(C){var I=(0,n.Oc)(),P=I.act,M=I.data,B=M.isPrinting,w=M.general,T=M.security;return!w||!w.fields?(0,e.jsx)(a.az,{color:"bad",children:"General records lost!"}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.BJ.Item,{grow:!0,children:(0,e.jsx)(a.wn,{fill:!0,scrollable:!0,mt:"-6px",title:"General Data",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.$n,{disabled:B,icon:B?"spinner":"print",iconSpin:!!B,onClick:function(){return P("print_record")},children:"Print Record"}),(0,e.jsx)(a.$n.Confirm,{icon:"trash",tooltip:"WARNING: This will also delete the Security and Medical records associated with this crew member!",tooltipPosition:"bottom-start",onClick:function(){return P("delete_general")},children:"Delete Record"})]}),children:(0,e.jsx)(j,{})})}),!T||!T.fields?(0,e.jsx)(a.BJ.Item,{grow:!0,color:"bad",children:(0,e.jsx)(a.wn,{fill:!0,title:"Security Data",buttons:(0,e.jsx)(a.$n,{icon:"pen",onClick:function(){return P("new_security")},children:"Create New Record"}),children:(0,e.jsx)(a.BJ,{fill:!0,children:(0,e.jsxs)(a.BJ.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.jsxs)(a.In.Stack,{style:{transform:"translate(-50px, -100px)"},children:[(0,e.jsx)(a.In,{name:"scroll",size:5,color:"gray"}),(0,e.jsx)(a.In,{name:"slash",size:5,color:"red"})]}),(0,e.jsx)("br",{}),"Security records lost!"]})})})}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.BJ.Item,{grow:!0,children:(0,e.jsx)(a.wn,{fill:!0,scrollable:!0,title:"Security Data",buttons:(0,e.jsx)(a.$n.Confirm,{icon:"trash",disabled:T.empty,onClick:function(){return P("delete_security")},children:"Delete Record"}),children:(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(a.Ki,{children:T.fields.map(function(K,R){return(0,e.jsxs)(a.Ki.Item,{label:K.field,children:[(0,s.jT)(K.value),!!K.edit&&(0,e.jsx)(a.$n,{icon:"pen",ml:"0.5rem",mb:K.line_break?"1rem":"initial",onClick:function(){return v(K)}})]},R)})})})})}),(0,e.jsx)(x,{})]})]})},j=function(C){var I=(0,n.Oc)().data,P=I.general;return!P||!P.fields?(0,e.jsx)(a.BJ,{fill:!0,vertical:!0,children:(0,e.jsx)(a.BJ.Item,{grow:!0,color:"bad",children:(0,e.jsx)(a.wn,{fill:!0,children:"General records lost!"})})}):(0,e.jsxs)(a.BJ,{children:[(0,e.jsx)(a.BJ.Item,{grow:!0,children:(0,e.jsx)(a.Ki,{children:P.fields.map(function(M,B){return(0,e.jsxs)(a.Ki.Item,{label:M.field,children:[(0,s.jT)(""+M.value),!!M.edit&&(0,e.jsx)(a.$n,{icon:"pen",ml:"0.5rem",mb:M.line_break?"1rem":"initial",onClick:function(){return v(M)}})]},B)})})}),!!P.has_photos&&P.photos.map(function(M,B){return(0,e.jsxs)(a.BJ.Item,{inline:!0,textAlign:"center",color:"label",ml:0,children:[(0,e.jsx)(a._V,{src:M,style:{width:"96px",marginTop:"5rem",marginBottom:"0.5rem"}}),(0,e.jsx)("br",{}),"Photo #",B+1]},B)})]})},x=function(C){var I=(0,n.Oc)(),P=I.act,M=I.data,B=M.security;return(0,e.jsx)(a.BJ.Item,{height:"150px",children:(0,e.jsx)(a.wn,{fill:!0,scrollable:!0,title:"Comments/Log",buttons:(0,e.jsx)(a.$n,{icon:"comment",onClick:function(){return(0,b.modalOpen)("comment_add")},children:"Add Entry"}),children:B.comments.length===0?(0,e.jsx)(a.az,{color:"label",children:"No comments found."}):B.comments.map(function(w,T){return(0,e.jsxs)(a.az,{preserveWhitespace:!0,children:[(0,e.jsx)(a.az,{color:"label",inline:!0,children:w.header||"Auto-generated"}),(0,e.jsx)("br",{}),w.text||w,(0,e.jsx)(a.$n,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){return P("comment_delete",{id:T+1})}})]},T)})})})}},4255:(q,S,r)=>{"use strict";r.r(S),r.d(S,{DisposalBin:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(O){var b=(0,s.Oc)(),y=b.act,u=b.data,f,m;return u.mode===2?(f="good",m="Ready"):u.mode<=0?(f="bad",m="N/A"):u.mode===1?(f="average",m="Pressurizing"):(f="average",m="Idle"),(0,e.jsx)(t.p8,{width:300,height:260,children:(0,e.jsxs)(t.p8.Content,{children:[(0,e.jsx)(n.wn,{title:"Status",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"State",color:f,children:m}),(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:u.pressure,minValue:0,maxValue:100})})]})}),(0,e.jsx)(n.wn,{title:"Controls",children:(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.isAI||u.panel_open,selected:!u.flushing,onClick:function(){return y("disengageHandle")},children:"Disengaged"}),(0,e.jsx)(n.$n,{icon:"toggle-on",disabled:u.isAI||u.panel_open,selected:u.flushing,onClick:function(){return y("engageHandle")},children:"Engaged"})]}),(0,e.jsxs)(n.Ki.Item,{label:"Power",children:[(0,e.jsx)(n.$n,{icon:"toggle-off",disabled:u.mode===-1,selected:!u.mode,onClick:function(){return y("pumpOff")},children:"Off"}),(0,e.jsx)(n.$n,{icon:"toggle-on",disabled:u.mode===-1,selected:!!u.mode,onClick:function(){return y("pumpOn")},children:"On"})]}),(0,e.jsx)(n.Ki.Item,{label:"Eject",children:(0,e.jsx)(n.$n,{icon:"sign-out-alt",disabled:u.isAI,onClick:function(){return y("eject")},children:"Eject Contents"})})]})})]})})}},4342:(q,S,r)=>{"use strict";r.r(S),r.d(S,{pda_medical:()=>a});var e=r(1131),s=r(360),n=r(8725);function t(){return t=Object.assign||function(O){for(var b=1;b{"use strict";r.r(S),r.d(S,{AtmosMixer:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(b){var y=(0,s.Oc)(),u=y.act,f=y.data,m=f.on,d=f.pressure,v=f.max_pressure,_=f.node1_concentration,l=f.node2_concentration;return(0,e.jsx)(t.p8,{width:330,height:165,children:(0,e.jsx)(t.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:"power-off",color:m?null:"red",selected:m,onClick:function(){return u("power")},children:m?"On":"Off"})}),(0,e.jsxs)(n.Ki.Item,{label:"Rate",children:[(0,e.jsx)(n.$n,{icon:"fast-backward",textAlign:"center",disabled:d===0,width:2.2,onClick:function(){return u("min_pressure")}}),(0,e.jsx)(n.Q7,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:v,value:d,onDrag:function(c){return u("custom_pressure",{pressure:c})}}),(0,e.jsx)(n.$n,{icon:"fast-forward",textAlign:"center",disabled:d===v,width:2.2,onClick:function(){return u("max_pressure")}})]}),(0,e.jsx)(O,{node_name:"Node 1",node_ref:_}),(0,e.jsx)(O,{node_name:"Node 2",node_ref:l})]})})})})},O=function(b){var y=(0,s.Oc)().act,u=b.node_name,f=b.node_ref;return(0,e.jsxs)(n.Ki.Item,{label:u,children:[(0,e.jsx)(n.$n,{icon:"fast-backward",textAlign:"center",width:2.2,disabled:f===0,onClick:function(){return y("set_node",{node_name:u,concentration:(f-10)/100})}}),(0,e.jsx)(n.Q7,{animated:!0,step:.1,unit:"%",width:6.1,lineHeight:1.5,stepPixelSize:10,minValue:0,maxValue:100,value:f,onChange:function(m){return y("set_node",{node_name:u,concentration:m/100})}}),(0,e.jsx)(n.$n,{icon:"fast-forward",textAlign:"center",width:2.2,disabled:f===100,onClick:function(){return y("set_node",{node_name:u,concentration:(f+10)/100})}})]})}},4409:(q,S,r)=>{"use strict";r.r(S),r.d(S,{TcommsCore:()=>b});var e=r(1131),s=r(360),n=r(7003),t=r(5180),a=r(3521),O=function(d){switch(d){case 0:return(0,e.jsx)(u,{});case 1:return(0,e.jsx)(f,{});case 2:return(0,e.jsx)(m,{});default:return"\u0427\u0422\u041E-\u0422\u041E \u0421\u041B\u041E\u041C\u0410\u041B\u041E\u0421\u042C, \u0421\u041E\u041E\u0411\u0429\u0418\u0422\u0415 \u041E \u0411\u0410\u0413\u0415"}},b=function(d){var v=(0,s.Oc)().data,_=v.ion,l=(0,n.useState)(0),c=l[0],h=l[1];return(0,e.jsx)(a.p8,{width:900,height:600,children:(0,e.jsxs)(a.p8.Content,{scrollable:!0,children:[!!_&&(0,e.jsx)(y,{}),(0,e.jsxs)(t.tU,{children:[(0,e.jsxs)(t.tU.Tab,{selected:c===0,onClick:function(){return h(0)},children:[(0,e.jsx)(t.In,{name:"wrench",mr:.5}),"\u041A\u043E\u043D\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044F"]},"ConfigPage"),(0,e.jsxs)(t.tU.Tab,{selected:c===1,onClick:function(){return h(1)},children:[(0,e.jsx)(t.In,{name:"link",mr:.5}),"\u041F\u0440\u0438\u0432\u044F\u0437\u0430\u043D\u043D\u044B\u0435 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432"]},"LinkagePage"),(0,e.jsxs)(t.tU.Tab,{selected:c===2,onClick:function(){return h(2)},children:[(0,e.jsx)(t.In,{name:"user-times",mr:.5}),"\u0427\u0451\u0440\u043D\u044B\u0439 \u0441\u043F\u0438\u0441\u043E\u043A \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u0435\u0439"]},"FilterPage")]}),O(c)]})})},y=function(){return(0,e.jsx)(t.IC,{children:"\u041E\u0428\u0418\u0411\u041A\u0410: \u0417\u0430\u0444\u0438\u043A\u0441\u0438\u0440\u043E\u0432\u0430\u043D\u0430 \u0438\u043E\u043D\u043E\u0441\u0444\u0435\u0440\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u0433\u0440\u0443\u0437\u043A\u0430. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043F\u043E\u0434\u043E\u0436\u0434\u0438\u0442\u0435 \u0434\u043E \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u043F\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043A\u0438. \u042D\u0442\u043E \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043D\u0435\u043B\u044C\u0437\u044F \u0441\u0434\u0435\u043B\u0430\u0442\u044C \u0432\u0440\u0443\u0447\u043D\u0443\u044E."})},u=function(d){var v=(0,s.Oc)(),_=v.act,l=v.data,c=l.active,h=l.sectors_available,g=l.nttc_toggle_jobs,p=l.nttc_toggle_job_color,j=l.nttc_toggle_name_color,x=l.nttc_toggle_command_bold,C=l.nttc_job_indicator_type,I=l.nttc_setting_language,P=l.network_id;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"\u041F\u0438\u0442\u0430\u043D\u0438\u0435",children:(0,e.jsx)(t.$n,{selected:c,icon:"power-off",onClick:function(){return _("toggle_active")},children:c?"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u043E":"\u0412\u044B\u043A\u043B\u044E\u0447\u0435\u043D\u043E"})}),(0,e.jsx)(t.Ki.Item,{label:"\u0414\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0435 \u0441\u0435\u043A\u0442\u043E\u0440\u0430",children:h})]})}),(0,e.jsx)(t.wn,{title:"\u041A\u043E\u043D\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044F \u0440\u0430\u0434\u0438\u043E\u0441\u0432\u044F\u0437\u0438",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"\u041E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0434\u043E\u043B\u0436\u043D\u043E\u0441\u0442\u0435\u0439",children:(0,e.jsx)(t.$n,{selected:g,icon:"user-tag",onClick:function(){return _("nttc_toggle_jobs")},children:g?"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u043E":"\u0412\u044B\u043A\u043B\u044E\u0447\u0435\u043D\u043E"})}),(0,e.jsx)(t.Ki.Item,{label:"\u0412\u044B\u0434\u0435\u043B\u0435\u043D\u0438\u0435 \u0434\u043E\u043B\u0436\u043D\u043E\u0441\u0442\u0435\u0439 \u043F\u043E \u043E\u0442\u0434\u0435\u043B\u0430\u043C",children:(0,e.jsx)(t.$n,{selected:p,icon:"clipboard-list",onClick:function(){return _("nttc_toggle_job_color")},children:p?"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u043E":"\u0412\u044B\u043A\u043B\u044E\u0447\u0435\u043D\u043E"})}),(0,e.jsx)(t.Ki.Item,{label:"\u0412\u044B\u0434\u0435\u043B\u0435\u043D\u0438\u0435 \u0438\u043C\u0451\u043D \u043F\u043E \u043E\u0442\u0434\u0435\u043B\u0430\u043C",children:(0,e.jsx)(t.$n,{selected:j,icon:"user-tag",onClick:function(){return _("nttc_toggle_name_color")},children:j?"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u043E":"\u0412\u044B\u043A\u043B\u044E\u0447\u0435\u043D\u043E"})}),(0,e.jsx)(t.Ki.Item,{label:"\u0412\u044B\u0434\u0435\u043B\u0435\u043D\u0438\u0435 \u0434\u043E\u043B\u0436\u043D\u043E\u0441\u0442\u0435\u0439 \u043A\u043E\u043C\u0430\u043D\u0434\u043E\u0432\u0430\u043D\u0438\u044F",children:(0,e.jsx)(t.$n,{selected:x,icon:"volume-up",onClick:function(){return _("nttc_toggle_command_bold")},children:x?"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u043E":"\u0412\u044B\u043A\u043B\u044E\u0447\u0435\u043D\u043E"})})]})}),(0,e.jsx)(t.wn,{title:"\u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043D\u043D\u044B\u0435 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"\u0424\u043E\u0440\u043C\u0430\u0442 \u043E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u044F \u0434\u043E\u043B\u0436\u043D\u043E\u0441\u0442\u0435\u0439",children:(0,e.jsx)(t.$n,{selected:!!C,icon:"pencil-alt",onClick:function(){return _("nttc_job_indicator_type")},children:C||"\u041D\u0435 \u0437\u0430\u0434\u0430\u043D\u043E"})}),(0,e.jsx)(t.Ki.Item,{label:"\u041F\u0435\u0440\u0435\u0432\u043E\u0434 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0439",children:(0,e.jsx)(t.$n,{selected:!!I,icon:"globe",onClick:function(){return _("nttc_setting_language")},children:I||"\u041D\u0435 \u0437\u0430\u0434\u0430\u043D\u043E"})}),(0,e.jsx)(t.Ki.Item,{label:"\u0421\u0435\u0442\u0435\u0432\u043E\u0439 \u0438\u0434\u0435\u043D\u0442\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440",children:(0,e.jsx)(t.$n,{selected:!!P,icon:"server",onClick:function(){return _("network_id")},children:P||"\u041D\u0435 \u0437\u0430\u0434\u0430\u043D\u043E"})})]})}),(0,e.jsxs)(t.wn,{title:"\u0422\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u043E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u043D\u0438\u0435",children:[(0,e.jsx)(t.$n,{icon:"file-import",onClick:function(){return _("import")},children:"\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u043A\u043E\u043D\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044E"}),(0,e.jsx)(t.$n,{icon:"file-export",onClick:function(){return _("export")},children:"\u0412\u044B\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u043A\u043E\u043D\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044E"})]})]})},f=function(d){var v=(0,s.Oc)(),_=v.act,l=v.data,c=l.link_password,h=l.relay_entries;return(0,e.jsxs)(t.wn,{title:"\u041F\u0440\u0438\u0432\u044F\u0437\u043A\u0430 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432",children:[(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"\u041F\u0430\u0440\u043E\u043B\u044C \u0434\u043B\u044F \u043F\u0440\u0438\u0432\u044F\u0437\u043A\u0438",children:(0,e.jsx)(t.$n,{selected:!!c,icon:"lock",onClick:function(){return _("change_password")},children:c||"\u041D\u0435 \u0437\u0430\u0434\u0430\u043D\u043E"})})}),(0,e.jsxs)(t.XI,{m:"0.5rem",children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{children:"\u0421\u0435\u0442\u0435\u0432\u043E\u0439 \u0430\u0434\u0440\u0435\u0441"}),(0,e.jsx)(t.XI.Cell,{children:"\u0421\u0435\u0442\u0435\u0432\u043E\u0439 \u0438\u0434\u0435\u043D\u0442\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440"}),(0,e.jsx)(t.XI.Cell,{children:"\u0421\u0435\u043A\u0442\u043E\u0440"}),(0,e.jsx)(t.XI.Cell,{children:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435"}),(0,e.jsx)(t.XI.Cell,{children:"\u041E\u0442\u0432\u044F\u0437\u0430\u0442\u044C"})]}),h.map(function(g){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:g.addr}),(0,e.jsx)(t.XI.Cell,{children:g.net_id}),(0,e.jsx)(t.XI.Cell,{children:g.sector}),(0,e.jsx)(t.XI.Cell,{children:g.status?(0,e.jsx)(t.az,{color:"green",children:"\u0412 \u0441\u0435\u0442\u0438"}):(0,e.jsx)(t.az,{color:"red",children:"\u041D\u0435 \u0432 \u0441\u0435\u0442\u0438"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"unlink",onClick:function(){return _("unlink",{addr:g.addr})},children:"\u041E\u0442\u0432\u044F\u0437\u0430\u0442\u044C"})})]},g.addr)})]})]})},m=function(d){var v=(0,s.Oc)(),_=v.act,l=v.data,c=l.filtered_users;return(0,e.jsx)(t.wn,{title:"\u0427\u0451\u0440\u043D\u044B\u0439 \u0441\u043F\u0438\u0441\u043E\u043A \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u0435\u0439",buttons:(0,e.jsx)(t.$n,{icon:"user-plus",onClick:function(){return _("add_filter")},children:"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F"}),children:(0,e.jsxs)(t.XI,{m:"0.5rem",children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{style:{width:"90%"},children:"\u041F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C"}),(0,e.jsx)(t.XI.Cell,{style:{width:"10%"},children:"\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u044F"})]}),c.map(function(h){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:h}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"user-times",onClick:function(){return _("remove_filter",{user:h})},children:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C"})})]},h)})]})})}},4416:(q,S,r)=>{"use strict";r.r(S),r.d(S,{PowerMonitor:()=>d,PowerMonitorMainContent:()=>v});var e=r(1131),s=r(1859),n=r(5070),t=r(9818),a=r(9845),O=r(360),b=r(7003),y=r(5180),u=r(3521);function f(){return f=Object.assign||function(g){for(var p=1;p50?"battery-half":"battery-quarter")||p==="C"&&"bolt"||p==="F"&&"battery-full"||p==="M"&&"slash",color:p==="N"&&(j>50?"yellow":"red")||p==="C"&&"yellow"||p==="F"&&"green"||p==="M"&&"orange"}),(0,e.jsx)(y.az,{inline:!0,width:"36px",textAlign:"right",children:(0,t.Mg)(j)+"%"})]})},h=function(g){var p,j,x=g.status;switch(x){case"AOn":p=!0,j=!0;break;case"AOff":p=!0,j=!1;break;case"On":p=!1,j=!0;break;case"Off":p=!1,j=!1;break}var C="\u0431\u0430\u0437\u0430";return(0,e.jsx)(y.BK,{color:j?"good":"bad",content:p?"A":"M",tooltip:C})}},4446:(q,S,r)=>{"use strict";r.r(S),r.d(S,{pai_bioscan:()=>t});var e=r(1131),s=r(360),n=r(5180),t=function(a){var O=(0,s.Oc)().data,b=O.app_data,y=b.holder,u=b.dead,f=b.health,m=b.brute,d=b.oxy,v=b.tox,_=b.burn,l=b.reagents,c=b.addictions,h=b.fractures,g=b.internal_bleeding;return y?(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Status",children:u?(0,e.jsx)(n.az,{bold:!0,color:"red",children:"Dead"}):(0,e.jsx)(n.az,{bold:!0,color:"green",children:"Alive"})}),(0,e.jsx)(n.Ki.Item,{label:"Health",children:(0,e.jsx)(n.z2,{minValue:0,maxValue:1,value:f/100,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.jsx)(n.Ki.Item,{label:"Oxygen Damage",children:(0,e.jsx)(n.az,{color:"blue",children:d})}),(0,e.jsx)(n.Ki.Item,{label:"Toxin Damage",children:(0,e.jsx)(n.az,{color:"green",children:v})}),(0,e.jsx)(n.Ki.Item,{label:"Burn Damage",children:(0,e.jsx)(n.az,{color:"orange",children:_})}),(0,e.jsx)(n.Ki.Item,{label:"Brute Damage",children:(0,e.jsx)(n.az,{color:"red",children:m})}),(0,e.jsx)(n.Ki.Item,{label:"Reagents",children:l?l.map(function(p){return(0,e.jsx)(n.Ki.Item,{label:p.title,children:(0,e.jsxs)(n.az,{color:p.overdosed?"bad":"good",children:[" ",p.volume," ",p.overdosed?"OVERDOSED":""," "]})},p.id)}):"Reagents not found."}),(0,e.jsx)(n.Ki.Item,{label:"Addictions",children:c?c.map(function(p){return(0,e.jsx)(n.Ki.Item,{label:p.addiction_name,children:(0,e.jsxs)(n.az,{color:"bad",children:[" Stage: ",p.stage," "]})},p.id)}):(0,e.jsx)(n.az,{color:"good",children:"Addictions not found."})}),(0,e.jsx)(n.Ki.Item,{label:"Fractures",children:(0,e.jsxs)(n.az,{color:h?"bad":"good",children:["Fractures ",h?"":"not"," detected."]})}),(0,e.jsx)(n.Ki.Item,{label:"Internal Bleedings",children:(0,e.jsxs)(n.az,{color:g?"bad":"good",children:["Internal Bleedings ",g?"":"not"," detected."]})})]}):(0,e.jsx)(n.az,{color:"red",children:"Error: No biological host found."})}},4452:(q,S,r)=>{"use strict";r.r(S),r.d(S,{AtmosAlertConsole:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(O){var b=(0,s.Oc)(),y=b.act,u=b.data,f=u.priority||[],m=u.minor||[],d=u.mode||{};return(0,e.jsx)(t.p8,{width:350,height:300,children:(0,e.jsx)(t.p8.Content,{scrollable:!0,children:(0,e.jsx)(n.wn,{title:"Alarms",children:(0,e.jsxs)("ul",{children:[f.length===0&&(0,e.jsx)("li",{className:"color-good",children:"No Priority Alerts"}),f.map(function(v){return(0,e.jsx)("li",{children:(0,e.jsx)(n.$n,{m:"1px",icon:"times",color:"bad",onClick:function(){return y("clear",{zone:v})},children:v})},v)}),m.length===0&&(0,e.jsx)("li",{className:"color-good",children:"No Minor Alerts"}),m.map(function(v){return(0,e.jsx)("li",{children:(0,e.jsx)(n.$n,{m:"1px",icon:"times",color:"average",onClick:function(){return y("clear",{zone:v})},children:v})},v)}),Object.keys(d).length===0&&(0,e.jsx)("li",{className:"color-good",children:"All Areas Filtering"}),Object.keys(d).map(function(v,_){return(0,e.jsxs)("li",{className:"color-good",children:[v," mode is ",d[v]]},_)})]})})})})}},4468:(q,S,r)=>{"use strict";r.r(S),r.d(S,{pda_main_menu:()=>t});var e=r(1131),s=r(360),n=r(5180),t=function(a){var O=(0,s.Oc)(),b=O.act,y=O.data,u=y.owner,f=y.ownjob,m=y.idInserted,d=y.categories,v=y.pai,_=y.notifying;return(0,e.jsxs)(n.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.wn,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Owner",color:"average",children:[u,", ",f]}),(0,e.jsx)(n.Ki.Item,{label:"ID",children:(0,e.jsx)(n.$n,{icon:"sync",disabled:!m,onClick:function(){return b("UpdateInfo")},children:"Update PDA Info"})})]})})}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.wn,{title:"Functions",children:(0,e.jsx)(n.Ki,{children:d.map(function(l){var c=y.apps[l];return!c||!c.length?null:(0,e.jsx)(n.Ki.Item,{label:l,children:c.map(function(h){return(0,e.jsx)(n.$n,{icon:h.uid in _?h.notify_icon:h.icon,iconSpin:h.uid in _,color:h.uid in _?"red":"transparent",onClick:function(){return b("StartProgram",{program:h.uid})},children:h.name},h.uid)})},l)})})})}),(0,e.jsx)(n.BJ.Item,{children:!!v&&(0,e.jsxs)(n.wn,{title:"pAI",children:[(0,e.jsx)(n.$n,{fluid:!0,icon:"cog",onClick:function(){return b("pai",{option:1})},children:"Configuration"}),(0,e.jsx)(n.$n,{fluid:!0,icon:"eject",onClick:function(){return b("pai",{option:2})},children:"Eject pAI"})]})})]})}},4515:(q,S,r)=>{"use strict";r.r(S),r.d(S,{MainMenu:()=>O});var e=r(1131),s=r(360),n=r(5180),t=r(2905),a=r(4904),O=function(b){var y=(0,s.Oc)().data,u=y.disk_type,f=y.linked_destroy,m=y.linked_lathe,d=y.linked_imprinter,v=y.tech_levels,_=y.disk_only;return(0,e.jsxs)(n.wn,{title:"\u0413\u043B\u0430\u0432\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",children:[(0,e.jsxs)(n.so,{className:"RndConsole__MainMenu__Buttons",direction:"column",align:"flex-start",children:[(0,e.jsx)(t.RndNavButton,{disabled:!u,menu:a.MENU.DISK,submenu:a.SUBMENU.MAIN,icon:"save",children:"\u041E\u043F\u0435\u0440\u0430\u0446\u0438\u0438 \u0441 \u0434\u0438\u0441\u043A\u0435\u0442\u0430\u043C\u0438"}),!_&&(0,e.jsx)(t.RndNavButton,{disabled:!f,menu:a.MENU.DESTROY,submenu:a.SUBMENU.MAIN,icon:"unlink",children:"\u0414\u0435\u0441\u0442\u0440\u0443\u043A\u0442\u0438\u0432\u043D\u044B\u0439 \u0430\u043D\u0430\u043B\u0438\u0437\u0430\u0442\u043E\u0440"}),!_&&(0,e.jsx)(t.RndNavButton,{disabled:!m,menu:a.MENU.LATHE,submenu:a.SUBMENU.MAIN,icon:"print",children:"\u041F\u0440\u043E\u0442\u043E\u043B\u0430\u0442"}),!_&&(0,e.jsx)(t.RndNavButton,{disabled:!d,menu:a.MENU.IMPRINTER,submenu:a.SUBMENU.MAIN,icon:"print",children:"\u041F\u0440\u0438\u043D\u0442\u0435\u0440 \u043F\u043B\u0430\u0442"}),(0,e.jsx)(t.RndNavButton,{menu:a.MENU.SETTINGS,submenu:a.SUBMENU.MAIN,icon:"cog",children:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438"})]}),(0,e.jsx)(n.az,{mt:"12px"}),(0,e.jsx)("h3",{children:"\u041B\u043E\u043A\u0430\u043B\u044C\u043D\u044B\u0435 \u0443\u0440\u043E\u0432\u043D\u0438 \u0442\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0439:"}),(0,e.jsx)(n.Ki,{children:v.map(function(l){var c=l.name,h=l.level,g=l.desc;return(0,e.jsx)(n.Ki.Item,{label:(0,e.jsxs)(n.$n,{color:"transparent",tooltip:g,children:[c,":"]}),children:h},c)})})]})}},4560:(q,S,r)=>{"use strict";r.r(S),r.d(S,{CentcomPodLauncher:()=>_});var e=r(1131),s=r(5180),n=r(3521),t=r(3500),a=r(9690),O=r(1236),b=r(2293),y=r(4954),u=r(6834),f=r(6507),m=r(9762),d=r(4076),v=r(6178),_=function(l){var c=(0,t.useCompact)(),h=c[0];return(0,e.jsx)(n.p8,{height:h?360:440,title:"\u041C\u0435\u043D\u044E \u043A\u0430\u043F\u0441\u0443\u043B \u0441\u043D\u0430\u0431\u0436\u0435\u043D\u0438\u044F",width:h?460:750,children:(0,e.jsx)(n.p8.Content,{children:(0,e.jsxs)(s.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(s.BJ.Item,{shrink:0,children:(0,e.jsx)(y.PodStatusPage,{})}),(0,e.jsx)(s.BJ.Item,{grow:!0,children:(0,e.jsxs)(s.BJ,{fill:!0,children:[(0,e.jsx)(s.BJ.Item,{grow:!0,shrink:0,basis:"14.1em",children:(0,e.jsxs)(s.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(s.BJ.Item,{grow:!0,children:(0,e.jsx)(u.PresetsPage,{})}),(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(f.ReverseMenu,{})}),(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(s.wn,{children:(0,e.jsx)(O.PodLaunch,{})})})]})}),!h&&(0,e.jsx)(s.BJ.Item,{grow:3,children:(0,e.jsx)(v.ViewTabHolder,{})}),(0,e.jsx)(s.BJ.Item,{basis:"9em",children:(0,e.jsxs)(s.BJ,{fill:!0,vertical:!0,direction:"column",children:[(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(a.PodBays,{})}),(0,e.jsx)(s.BJ.Item,{grow:!0,children:(0,e.jsx)(d.Timing,{})}),!h&&(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(b.PodSounds,{})})]})}),(0,e.jsx)(s.BJ.Item,{basis:"11em",children:(0,e.jsx)(m.StylePage,{})})]})})]})})})}},4576:(q,S,r)=>{"use strict";r.r(S),r.d(S,{Safe:()=>b});var e=r(1131),s=r(1243),n=r(7003),t=r(360),a=r(5180),O=r(3521),b=function(m){var d=(0,t.Oc)().data,v=d.dial,_=d.open;return(0,e.jsx)(O.p8,{theme:"safe",width:600,height:800,children:(0,e.jsxs)(O.p8.Content,{children:[(0,e.jsxs)(a.az,{className:"Safe--engraving",children:[(0,e.jsx)(y,{}),(0,e.jsxs)(a.az,{children:[(0,e.jsx)(a.az,{className:"Safe--engraving--hinge",top:"25%"}),(0,e.jsx)(a.az,{className:"Safe--engraving--hinge",top:"75%"})]}),(0,e.jsx)(a.In,{className:"Safe--engraving--arrow",name:"long-arrow-alt-down",size:3}),(0,e.jsx)("br",{}),_?(0,e.jsx)(u,{}):(0,e.jsx)(a._V,{src:(0,s.l)("safe_dial.png"),fixBlur:!0,style:{transform:"rotate(-"+3.6*v+"deg)",zIndex:0}})]}),!_&&(0,e.jsx)(f,{})]})})},y=function(m){var d=(0,t.Oc)(),v=d.act,_=d.data,l=_.dial,c=_.open,h=_.locked,g=function(p,j){return(0,e.jsx)(a.$n,{disabled:c||j&&!h,icon:"arrow-"+(j?"right":"left"),iconPosition:j?"right":"",onClick:function(){return v(j?"turnleft":"turnright",{num:p})},style:{zIndex:10},children:p},p)};return(0,e.jsxs)(a.az,{className:"Safe--dialer",children:[(0,e.jsx)(a.$n,{disabled:h,icon:c?"lock":"lock-open",mb:"0.5rem",onClick:function(){return v("open")},children:c?"\u0417\u0430\u043A\u0440\u044B\u0442\u044C":"\u041E\u0442\u043A\u0440\u044B\u0442\u044C"}),(0,e.jsx)("br",{}),(0,e.jsx)(a.az,{position:"absolute",children:[g(50),g(10),g(1)]}),(0,e.jsx)(a.az,{className:"Safe--dialer--right",position:"absolute",right:"5px",children:[g(1,!0),g(10,!0),g(50,!0)]}),(0,e.jsx)(a.az,{className:"Safe--dialer--number",children:l})]})},u=function(m){var d=(0,t.Oc)(),v=d.act,_=d.data,l=_.contents;return(0,e.jsx)(a.az,{className:"Safe--contents",overflow:"auto",children:l.map(function(c,h){return(0,e.jsxs)(n.Fragment,{children:[(0,e.jsxs)(a.$n,{mb:"0.5rem",onClick:function(){return v("retrieve",{index:h+1})},children:[(0,e.jsx)(a._V,{src:c.sprite+".png",verticalAlign:"middle",ml:"-6px",mr:"0.5rem"}),c.name]}),(0,e.jsx)("br",{})]},c.name)})})},f=function(m){return(0,e.jsxs)(a.wn,{className:"Safe--help",title:"\u0418\u043D\u0441\u0442\u0440\u0443\u043A\u0446\u0438\u044F \u043F\u043E \u043E\u0442\u043A\u0440\u044B\u0442\u0438\u044E \u0441\u0435\u0439\u0444\u0430. (\u043F\u043E\u0442\u043E\u043C\u0443 \u0447\u0442\u043E \u0432\u044B \u0432\u0441\u0451 \u0432\u0440\u0435\u043C\u044F \u0437\u0430\u0431\u044B\u0432\u0430\u0435\u0442\u0435)",children:[(0,e.jsxs)(a.az,{children:["1. \u041F\u043E\u0432\u0435\u0440\u043D\u0438\u0442\u0435 \u0446\u0438\u0444\u0435\u0440\u0431\u043B\u0430\u0442 \u0432\u043B\u0435\u0432\u043E \u043D\u0430 \u043F\u0435\u0440\u0432\u0443\u044E \u0446\u0438\u0444\u0440\u0443.",(0,e.jsx)("br",{}),"2. \u041F\u043E\u0432\u0435\u0440\u043D\u0438\u0442\u0435 \u0446\u0438\u0444\u0435\u0440\u0431\u043B\u0430\u0442 \u0432\u043F\u0440\u0430\u0432\u043E \u043D\u0430 \u0432\u0442\u043E\u0440\u0443\u044E \u0446\u0438\u0444\u0440\u0443.",(0,e.jsx)("br",{}),"3. \u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0430\u0439\u0442\u0435 \u0442\u0430\u043A \u0434\u043B\u044F \u043A\u0430\u0436\u0434\u043E\u0433\u043E \u0447\u0438\u0441\u043B\u0430, \u043F\u043E\u0432\u043E\u0440\u0430\u0447\u0438\u0432\u0430\u044F \u0441\u043D\u0430\u0447\u0430\u043B\u043E \u043D\u0430\u043B\u0435\u0432\u043E, \u0437\u0430\u0442\u0435\u043C \u043D\u0430\u043F\u0440\u0430\u0432\u043E.",(0,e.jsx)("br",{}),"4. \u041E\u0442\u043A\u0440\u043E\u0439\u0442\u0435 \u0441\u0435\u0439\u0444."]}),(0,e.jsx)(a.az,{bold:!0,children:"\u0427\u0442\u043E\u0431\u044B \u043F\u043E\u043B\u043D\u043E\u0441\u0442\u044C\u044E \u0437\u0430\u043F\u0435\u0440\u0435\u0442\u044C \u0441\u0435\u0439\u0444, \u043F\u043E\u0441\u043B\u0435 \u0437\u0430\u043A\u0440\u044B\u0442\u0438\u044F \u043F\u043E\u0432\u0435\u0440\u043D\u0438\u0442\u0435 \u0446\u0438\u0444\u0435\u0440\u0431\u043B\u0430\u0442 \u0432\u043B\u0435\u0432\u043E."})]})}},4623:(q,S,r)=>{"use strict";r.r(S),r.d(S,{DataDiskMenu:()=>_});var e=r(1131),s=r(360),n=r(5180),t=r(2905),a=r(4904),O="design",b="tech",y=function(l){var c=(0,s.Oc)(),h=c.data,g=c.act,p=h.disk_data;return p?(0,e.jsxs)(n.az,{children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Name",children:p.name}),(0,e.jsx)(n.Ki.Item,{label:"Level",children:p.level}),(0,e.jsx)(n.Ki.Item,{label:"Description",children:p.desc})]}),(0,e.jsxs)(n.az,{mt:"10px",children:[(0,e.jsx)(n.$n,{icon:"arrow-up",onClick:function(){return g("updt_tech")},children:"\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0432 \u0431\u0430\u0437\u0443 \u0434\u0430\u043D\u043D\u044B\u0445"}),(0,e.jsx)(n.$n,{icon:"trash",onClick:function(){return g("clear_tech")},children:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u0434\u0438\u0441\u043A\u0435\u0442\u0443"}),(0,e.jsx)(m,{})]})]}):null},u=function(l){var c=(0,s.Oc)(),h=c.data,g=c.act,p=h.disk_data;if(!p)return null;var j=p.name,x=p.lathe_types,C=p.materials,I=x.join(", ");return(0,e.jsxs)(n.az,{children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435",children:j}),I?(0,e.jsx)(n.Ki.Item,{label:"\u0421\u043E\u0432\u043C\u0435\u0441\u0442\u0438\u043C\u043E\u0435 \u043E\u0431\u043E\u0440\u0443\u0434\u043E\u0432\u0430\u043D\u0438\u0435",children:I}):null,(0,e.jsx)(n.Ki.Item,{label:"\u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044F \u043C\u0430\u0442\u0435\u0440\u0438\u0430\u043B\u043E\u0432"})]}),C.map(function(P){return(0,e.jsxs)(n.az,{children:["- ",(0,e.jsx)("span",{style:{textTransform:"capitalize"},children:P.name})," x ",P.amount]},P.name)}),(0,e.jsxs)(n.az,{mt:"10px",children:[(0,e.jsx)(n.$n,{icon:"arrow-up",onClick:function(){return g("updt_design")},children:"\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0432 \u0431\u0430\u0437\u0443 \u0434\u0430\u043D\u043D\u044B\u0445"}),(0,e.jsx)(n.$n,{icon:"trash",onClick:function(){return g("clear_design")},children:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u0434\u0438\u0441\u043A\u0435\u0442\u0443"}),(0,e.jsx)(m,{})]})]})},f=function(l){var c=(0,s.Oc)().data,h=c.disk_type;return(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.az,{children:"\u0414\u0438\u0441\u043A\u0435\u0442\u0430 \u043F\u0443\u0441\u0442\u0430."}),(0,e.jsxs)(n.az,{mt:"10px",children:[(0,e.jsx)(t.RndNavButton,{submenu:a.SUBMENU.DISK_COPY,icon:"arrow-down",content:h===b?"\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0442\u0435\u0445. \u0434\u0430\u043D\u043D\u044B\u0435 \u043D\u0430 \u0434\u0438\u0441\u043A\u0435\u0442\u0443":"\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0448\u0430\u0431\u043B\u043E\u043D \u043F\u0435\u0447\u0430\u0442\u0438 \u043D\u0430 \u0434\u0438\u0441\u043A\u0435\u0442\u0443"}),(0,e.jsx)(m,{})]})]})},m=function(l){var c=(0,s.Oc)(),h=c.data,g=c.act,p=h.disk_type;return p?(0,e.jsx)(n.$n,{icon:"eject",onClick:function(){var j=p===b?"eject_tech":"eject_design";g(j)},children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u0434\u0438\u0441\u043A\u0435\u0442\u0443"}):null},d=function(l){var c=(0,s.Oc)(),h=c.data,g=h.disk_data,p=h.disk_type,j=function(){if(!g)return(0,e.jsx)(f,{});switch(p){case O:return(0,e.jsx)(u,{});case b:return(0,e.jsx)(y,{});default:return null}};return(0,e.jsx)(n.wn,{title:"\u0421\u043E\u0434\u0435\u0440\u0436\u0438\u043C\u043E\u0435 \u0434\u0438\u0441\u043A\u0435\u0442\u044B",children:j()})},v=function(l){var c=(0,s.Oc)(),h=c.data,g=c.act,p=h.disk_type,j=h.to_copy;return(0,e.jsx)(n.wn,{children:(0,e.jsx)(n.az,{overflowY:"auto",overflowX:"hidden",maxHeight:"450px",children:(0,e.jsx)(n.Ki,{children:j.sort(function(x,C){return x.name.localeCompare(C.name)}).map(function(x){var C=x.name,I=x.id;return(0,e.jsx)(n.Ki.Item,{label:C,children:(0,e.jsx)(n.$n,{icon:"arrow-down",onClick:function(){p===b?g("copy_tech",{id:I}):g("copy_design",{id:I})},children:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043D\u0430 \u0434\u0438\u0441\u043A\u0435\u0442\u0443"})},I)})})})})},_=function(l){var c=(0,s.Oc)().data,h=c.disk_type;return h?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.RndRoute,{submenu:a.SUBMENU.MAIN,render:function(){return(0,e.jsx)(d,{})}}),(0,e.jsx)(t.RndRoute,{submenu:a.SUBMENU.DISK_COPY,render:function(){return(0,e.jsx)(v,{})}})]}):null}},4722:(q,S,r)=>{"use strict";r.r(S),r.d(S,{DeconstructionMenu:()=>t});var e=r(1131),s=r(360),n=r(5180),t=function(a){var O=(0,s.Oc)(),b=O.data,y=O.act,u=b.loaded_item,f=b.linked_destroy;return f?u?(0,e.jsxs)(n.wn,{noTopPadding:!0,title:"\u041C\u0435\u043D\u044E \u0440\u0430\u0437\u0431\u043E\u0440\u043A\u0438",children:[(0,e.jsxs)(n.az,{mt:"10px",children:[(0,e.jsx)(n.Hg,{icon:u.icon,icon_state:u.icon_state,style:{verticalAlign:"middle",width:"64px",margin:"0px",marginLeft:"0px"}}),u.name]}),(0,e.jsx)(n.az,{mt:"10px",children:(0,e.jsx)("h3",{children:"\u0422\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043F\u043E\u0442\u0435\u043D\u0446\u0438\u0430\u043B:"})}),(0,e.jsx)(n.Ki,{children:u.origin_tech.map(function(m){return(0,e.jsxs)(n.Ki.Item,{label:"- "+m.name,children:[m.object_level," ",m.current_level?(0,e.jsxs)(e.Fragment,{children:["(\u041D\u0430 \u0442\u0435\u043A\u0443\u0449\u0438\u0439 \u043C\u043E\u043C\u0435\u043D\u0442: ",m.current_level,")"]}):null]},m.name)})}),(0,e.jsx)(n.az,{mt:"10px",children:(0,e.jsx)("h3",{children:"\u041E\u043F\u0446\u0438\u0438:"})}),(0,e.jsx)(n.$n,{icon:"unlink",onClick:function(){y("deconstruct")},children:"\u0420\u0430\u0437\u043E\u0431\u0440\u0430\u0442\u044C \u043E\u0431\u044A\u0435\u043A\u0442"}),(0,e.jsx)(n.$n,{icon:"eject",onClick:function(){y("eject_item")},children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u043E\u0431\u044A\u0435\u043A\u0442"})]}):(0,e.jsx)(n.wn,{title:"\u041C\u0435\u043D\u044E \u0440\u0430\u0437\u0431\u043E\u0440\u043A\u0438",children:(0,e.jsx)("b",{children:"\u041A\u0430\u043C\u0435\u0440\u0430 \u0440\u0430\u0437\u0431\u043E\u0440\u043A\u0438 \u043F\u0443\u0441\u0442\u0430."})}):(0,e.jsx)(n.az,{children:"\u0414\u0415\u0421\u0422\u0420\u0423\u041A\u0422\u0418\u0412\u041D\u042B\u0419 \u0410\u041D\u0410\u041B\u0418\u0417\u0410\u0422\u041E\u0420 \u041D\u0415 \u041F\u041E\u0414\u041A\u041B\u042E\u0427\u0401\u041D"})}},4759:(q,S,r)=>{"use strict";r.r(S),r.d(S,{DNAModifier:()=>f});var e=r(1131),s=r(360),n=r(9845),t=r(5180),a=r(3521),O=r(538),b=[["good","\u041D\u043E\u0440\u043C\u0430"],["average","\u041A\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435"],["bad","\u0417\u0430\u0444\u0438\u043A\u0441\u0438\u0440\u043E\u0432\u0430\u043D\u0430 \u0441\u043C\u0435\u0440\u0442\u044C"]],y=[["ui","\u041C\u043E\u0434\u0438\u0444\u0438\u043A\u0430\u0446\u0438\u044F \u0423\u0418","dna"],["se","\u041C\u043E\u0434\u0438\u0444\u0438\u043A\u0430\u0446\u0438\u044F \u0421\u0424","dna"],["buffer","\u0411\u0443\u0444\u0435\u0440 \u0434\u0430\u043D\u043D\u044B\u0445","syringe"],["rejuvenators","\u0425\u0438\u043C\u0438\u043A\u0430\u0442\u044B","flask"]],u=[5,10,20,30,50],f=function(C){var I=(0,s.Oc)().data,P=I.irradiating,M=I.dnaBlockSize,B=I.occupant,w=!B.isViableSubject||!B.uniqueIdentity||!B.structuralEnzymes,T;return P&&(T=(0,e.jsx)(j,{duration:P})),(0,e.jsxs)(a.p8,{width:660,height:775,children:[(0,e.jsx)(O.ComplexModal,{}),T,(0,e.jsx)(a.p8.Content,{children:(0,e.jsxs)(t.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(m,{isDNAInvalid:w})}),(0,e.jsx)(t.BJ.Item,{grow:!0,children:(0,e.jsx)(d,{isDNAInvalid:w,dnaBlockSize:M})})]})})]})},m=function(C){var I=C.isDNAInvalid,P=(0,s.Oc)(),M=P.act,B=P.data,w=B.locked,T=B.hasOccupant,K=B.occupant;return(0,e.jsx)(t.wn,{title:"\u0421\u0443\u0431\u044A\u0435\u043A\u0442",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.az,{color:"label",inline:!0,mr:"0.5rem",children:"\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u044B\u0439 \u0437\u0430\u043C\u043E\u043A:"}),(0,e.jsx)(t.$n,{disabled:!T,selected:w,icon:w?"toggle-on":"toggle-off",onClick:function(){return M("toggleLock")},children:w?"\u0412\u043A\u043B\u044E\u0447\u0451\u043D":"\u0412\u044B\u043A\u043B\u044E\u0447\u0435\u043D"}),(0,e.jsx)(t.$n,{disabled:!T||w,icon:"user-slash",onClick:function(){return M("ejectOccupant")},children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u0441\u0443\u0431\u044A\u0435\u043A\u0442"})]}),children:T?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.az,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"\u0418\u043C\u044F",children:K.name}),(0,e.jsx)(t.Ki.Item,{label:"\u041E\u0446\u0435\u043D\u043A\u0430 \u0437\u0434\u043E\u0440\u043E\u0432\u044C\u044F",children:(0,e.jsx)(t.z2,{minValue:K.minHealth,maxValue:K.maxHealth,value:K.health/K.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.jsx)(t.Ki.Item,{label:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",color:b[K.stat][0],children:b[K.stat][1]}),(0,e.jsx)(t.Ki.Divider,{})]})}),I?(0,e.jsxs)(t.az,{color:"bad",children:[(0,e.jsx)(t.In,{name:"exclamation-circle"}),"\xA0 \u041D\u0435\u043F\u043E\u0434\u0445\u043E\u0434\u044F\u0449\u0438\u0439 \u0441\u0443\u0431\u044A\u0435\u043A\u0442. \u041F\u0440\u043E\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043C\u0430\u043D\u0438\u043F\u0443\u043B\u044F\u0446\u0438\u0439 \u0441\u043E \u0441\u0442\u0440\u0443\u043A\u0442\u0443\u0440\u043E\u0439 \u0414\u041D\u041A \u043D\u0435\u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E."]}):(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"\u0420\u0430\u0434\u0438\u0430\u0446\u0438\u043E\u043D\u043D\u043E\u0435 \u043F\u043E\u0440\u0430\u0436\u0435\u043D\u0438\u0435",children:(0,e.jsx)(t.z2,{minValue:0,maxValue:100,value:K.radiationLevel/100,color:"average"})}),(0,e.jsx)(t.Ki.Item,{label:"\u0423\u043D\u0438\u043A\u0430\u043B\u044C\u043D\u044B\u0435 \u0424\u0435\u0440\u043C\u0435\u043D\u0442\u044B",children:B.occupant.uniqueEnzymes?B.occupant.uniqueEnzymes:(0,e.jsxs)(t.az,{color:"bad",children:[(0,e.jsx)(t.In,{name:"exclamation-circle"}),"\xA0 \u041D/\u0414"]})})]})]}):(0,e.jsx)(t.az,{color:"label",children:"\u041A\u0430\u043F\u0441\u0443\u043B\u0430 \u0414\u041D\u041A-\u043C\u043E\u0434\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440\u0430 \u043F\u0443\u0441\u0442\u0430."})})},d=function(C){var I=C.isDNAInvalid,P=C.dnaBlockSize,M=(0,s.Oc)(),B=M.act,w=M.data,T=w.selectedMenuKey,K=w.hasOccupant;if(K){if(I)return(0,e.jsx)(t.wn,{fill:!0,children:(0,e.jsx)(t.BJ,{fill:!0,children:(0,e.jsxs)(t.BJ.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.jsx)(t.In,{name:"user-slash",mb:"0.5rem",size:5}),(0,e.jsx)("br",{}),"\u041C\u0430\u043D\u0438\u043F\u0443\u043B\u044F\u0446\u0438\u0438 \u0441\u043E \u0441\u0442\u0440\u0443\u043A\u0442\u0443\u0440\u043E\u0439 \u0414\u041D\u041A \u0441\u0443\u0431\u044A\u0435\u043A\u0442\u0430 \u043D\u0435\u0432\u043E\u0437\u043C\u043E\u0436\u043D\u044B."]})})})}else return(0,e.jsx)(t.wn,{fill:!0,children:(0,e.jsx)(t.BJ,{fill:!0,children:(0,e.jsxs)(t.BJ.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.jsx)(t.In,{name:"user-slash",mb:"0.5rem",size:5}),(0,e.jsx)("br",{}),"\u041A\u0430\u043F\u0441\u0443\u043B\u0430 \u0414\u041D\u041A-\u043C\u043E\u0434\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440\u0430 \u043F\u0443\u0441\u0442\u0430."]})})});var R;return T==="ui"?R=(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(v,{dnaBlockSize:P}),(0,e.jsx)(l,{})]}):T==="se"?R=(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(_,{dnaBlockSize:P}),(0,e.jsx)(l,{})]}):T==="buffer"?R=(0,e.jsx)(c,{}):T==="rejuvenators"&&(R=(0,e.jsx)(p,{})),(0,e.jsxs)(t.wn,{fill:!0,children:[(0,e.jsx)(t.tU,{children:y.map(function(U,F){return(0,e.jsx)(t.tU.Tab,{icon:U[2],selected:T===U[0],onClick:function(){return B("selectMenuKey",{key:U[0]})},children:U[1]},F)})}),R]})},v=function(C){var I=C.dnaBlockSize,P=(0,s.Oc)(),M=P.act,B=P.data,w=B.selectedUIBlock,T=B.selectedUISubBlock,K=B.selectedUITarget,R=B.occupant;return(0,e.jsxs)(t.wn,{title:"\u041C\u043E\u0434\u0438\u0444\u0438\u043A\u0430\u0446\u0438\u044F \u0423\u043D\u0438\u043A\u0430\u043B\u044C\u043D\u044B\u0445 \u0418\u0434\u0435\u043D\u0442\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440\u043E\u0432",children:[(0,e.jsx)(x,{dnaString:R.uniqueIdentity,selectedBlock:w,selectedSubblock:T,blockSize:I,action:"selectUIBlock"}),(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0439 \u0431\u043B\u043E\u043A",children:(0,e.jsx)(t.N6,{minValue:1,maxValue:15,stepPixelSize:20,value:K,format:function(U){return U.toString(16).toUpperCase()},ml:"0",onChange:function(U,F){return M("changeUITarget",{value:F})}})})}),(0,e.jsx)(t.$n,{icon:"radiation",mt:"0.5rem",onClick:function(){return M("pulseUIRadiation")},children:"\u041E\u0431\u043B\u0443\u0447\u0438\u0442\u044C \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0439 \u0431\u043B\u043E\u043A"})]})},_=function(C){var I=C.dnaBlockSize,P=(0,s.Oc)(),M=P.act,B=P.data,w=B.selectedSEBlock,T=B.selectedSESubBlock,K=B.occupant;return(0,e.jsxs)(t.wn,{title:"\u041C\u043E\u0434\u0438\u0444\u0438\u043A\u0430\u0446\u0438\u044F \u0421\u0442\u0440\u0443\u043A\u0442\u0443\u0440\u043D\u044B\u0445 \u0424\u0435\u0440\u043C\u0435\u043D\u0442\u043E\u0432",children:[(0,e.jsx)(x,{dnaString:K.structuralEnzymes,selectedBlock:w,selectedSubblock:T,blockSize:I,action:"selectSEBlock"}),(0,e.jsx)(t.$n,{icon:"radiation",onClick:function(){return M("pulseSERadiation")},children:"\u041E\u0431\u043B\u0443\u0447\u0438\u0442\u044C \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0439 \u0431\u043B\u043E\u043A"})]})},l=function(C){var I=(0,s.Oc)(),P=I.act,M=I.data,B=M.radiationIntensity,w=M.radiationDuration;return(0,e.jsxs)(t.wn,{title:"\u0418\u0437\u043B\u0443\u0447\u0430\u0442\u0435\u043B\u044C \u0440\u0430\u0434\u0438\u0430\u0446\u0438\u0438",children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"\u041C\u043E\u0449\u043D\u043E\u0441\u0442\u044C",children:(0,e.jsx)(t.N6,{minValue:1,maxValue:10,stepPixelSize:20,value:B,ml:"0",onChange:function(T,K){return P("radiationIntensity",{value:K})}})}),(0,e.jsx)(t.Ki.Item,{label:"\u0414\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C",children:(0,e.jsx)(t.N6,{minValue:1,maxValue:20,stepPixelSize:10,unit:"s",value:w,ml:"0",onChange:function(T,K){return P("radiationDuration",{value:K})}})})]}),(0,e.jsx)(t.$n,{icon:"radiation",tooltip:"\u041C\u0443\u0442\u0438\u0440\u0443\u0435\u0442 \u0441\u043B\u0443\u0447\u0430\u0439\u043D\u044B\u0439 \u0431\u043B\u043E\u043A, \u0423\u0418 \u0438\u043B\u0438 \u0421\u0424 \u0441\u0443\u0431\u044A\u0435\u043A\u0442\u0430.",tooltipPosition:"top-start",mt:"0.5rem",onClick:function(){return P("pulseRadiation")},children:"\u041E\u0431\u043B\u0443\u0447\u0438\u0442\u044C \u0440\u0430\u0434\u0438\u0430\u0446\u0438\u0435\u0439"})]})},c=function(C){var I=(0,s.Oc)().data,P=I.buffers,M=P.map(function(B,w){return(0,e.jsx)(h,{id:w+1,name:"\u042F\u0447\u0435\u0439\u043A\u0430 \u0431\u0443\u0444\u0435\u0440\u0430 \u2116"+(w+1),buffer:B},w)});return(0,e.jsxs)(t.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(t.BJ.Item,{height:"75%",mt:1,children:(0,e.jsx)(t.wn,{fill:!0,scrollable:!0,title:"\u0411\u0443\u0444\u0435\u0440",children:M})}),(0,e.jsx)(t.BJ.Item,{height:"25%",children:(0,e.jsx)(g,{})})]})},h=function(C){var I=(0,s.Oc)(),P=I.act,M=I.data,B=C.id,w=C.name,T=C.buffer,K=M.isInjectorReady,R=w+(T.data?" - "+T.label:"");return(0,e.jsx)(t.az,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.jsxs)(t.wn,{title:R,mx:"0",lineHeight:"18px",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n.Confirm,{disabled:!T.data,icon:"trash",onClick:function(){return P("bufferOption",{option:"clear",id:B})},children:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C"}),(0,e.jsx)(t.$n,{disabled:!T.data,icon:"pen",onClick:function(){return P("bufferOption",{option:"changeLabel",id:B})},children:"\u041F\u0435\u0440\u0435\u0438\u043C\u0435\u043D\u043E\u0432\u0430\u0442\u044C"}),(0,e.jsx)(t.$n,{disabled:!T.data||!M.hasDisk,icon:"save",tooltip:"\u042D\u043A\u0441\u043F\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u0443\u044E \u044F\u0447\u0435\u0439\u043A\u0443 \u0431\u0443\u0444\u0435\u0440\u0430 \u043D\u0430 \u0434\u0438\u0441\u043A\u0435\u0442\u0443.",tooltipPosition:"bottom-start",onClick:function(){return P("bufferOption",{option:"saveDisk",id:B})},children:"\u042D\u043A\u0441\u043F\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C"})]}),children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"\u0417\u0430\u043F\u0438\u0441\u0430\u0442\u044C \u0432 \u0431\u0443\u0444\u0435\u0440",children:[(0,e.jsx)(t.$n,{icon:"arrow-circle-down",mb:"0",onClick:function(){return P("bufferOption",{option:"saveUI",id:B})},children:"\u0423\u0418 \u0441\u0443\u0431\u044A\u0435\u043A\u0442\u0430"}),(0,e.jsx)(t.$n,{icon:"arrow-circle-down",mb:"0",onClick:function(){return P("bufferOption",{option:"saveUIAndUE",id:B})},children:"\u0423\u0418 \u0438 \u0423\u0424 \u0441\u0443\u0431\u044A\u0435\u0442\u0430"}),(0,e.jsx)(t.$n,{icon:"arrow-circle-down",mb:"0",onClick:function(){return P("bufferOption",{option:"saveSE",id:B})},children:"\u0421\u0424 \u0441\u0443\u0431\u044A\u0435\u043A\u0442\u0430"}),(0,e.jsx)(t.$n,{disabled:!M.hasDisk||!M.disk.data,icon:"arrow-circle-down",mb:"0",onClick:function(){return P("bufferOption",{option:"loadDisk",id:B})},children:"\u0421 \u0434\u0438\u0441\u043A\u0435\u0442\u044B"})]}),!!T.data&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.Ki.Item,{label:"\u0421\u0443\u0431\u044A\u0435\u043A\u0442",children:T.owner||(0,e.jsx)(t.az,{color:"average",children:"\u041D\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E"})}),(0,e.jsxs)(t.Ki.Item,{label:"\u0422\u0438\u043F \u0434\u0430\u043D\u043D\u044B\u0445",children:[T.type==="ui"?"\u0423\u043D\u0438\u043A\u0430\u043B\u044C\u043D\u044B\u0435 \u0418\u0434\u0435\u043D\u0442\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440\u044B":"\u0421\u0442\u0440\u0443\u043A\u0442\u0443\u0440\u043D\u044B\u0435 \u0424\u0435\u0440\u043C\u0435\u043D\u0442\u044B",!!T.ue&&" \u0438 \u0423\u043D\u0438\u043A\u0430\u043B\u044C\u043D\u044B\u0435 \u0424\u0435\u0440\u043C\u0435\u043D\u0442\u044B"]}),(0,e.jsxs)(t.Ki.Item,{label:"\u041F\u0435\u0440\u0435\u0434\u0430\u0447\u0430 \u0434\u0430\u043D\u043D\u044B\u0445",children:[(0,e.jsx)(t.$n,{disabled:!K,icon:K?"syringe":"spinner",iconSpin:!K,mb:"0",onClick:function(){return P("bufferOption",{option:"createInjector",id:B})},children:"\u0418\u043D\u044A\u0435\u043A\u0442\u043E\u0440"}),(0,e.jsx)(t.$n,{disabled:!K,icon:K?"syringe":"spinner",iconSpin:!K,mb:"0",onClick:function(){return P("bufferOption",{option:"createInjector",id:B,block:1})},children:"\u0418\u043D\u044A\u0435\u043A\u0442\u043E\u0440 \u0431\u043B\u043E\u043A\u0430"}),(0,e.jsx)(t.$n,{icon:"user",mb:"0",onClick:function(){return P("bufferOption",{option:"transfer",id:B})},children:"\u0421\u0443\u0431\u044A\u0435\u043A\u0442"})]})]})]}),!T.data&&(0,e.jsx)(t.az,{color:"label",mt:"0.5rem",children:"\u0411\u0443\u0444\u0435\u0440 \u0434\u0430\u043D\u043D\u044B\u0445 \u043F\u0443\u0441\u0442."})]})})},g=function(C){var I=(0,s.Oc)(),P=I.act,M=I.data,B=M.hasDisk,w=M.disk;return(0,e.jsx)(t.wn,{title:"\u0414\u0438\u0441\u043A\u0435\u0442\u0430",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n.Confirm,{disabled:!B||!w.data,icon:"trash",onClick:function(){return P("wipeDisk")},children:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C"}),(0,e.jsx)(t.$n,{disabled:!B,icon:"eject",onClick:function(){return P("ejectDisk")},children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C"})]}),children:B?w.data?(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"\u042D\u0442\u0438\u043A\u0435\u0442\u043A\u0430",children:w.label?w.label:"\u041E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442"}),(0,e.jsx)(t.Ki.Item,{label:"\u0421\u0443\u0431\u044A\u0435\u043A\u0442",children:w.owner?w.owner:(0,e.jsx)(t.az,{color:"average",children:"\u041D\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E"})}),(0,e.jsxs)(t.Ki.Item,{label:"\u0422\u0438\u043F \u0434\u0430\u043D\u043D\u044B\u0445",children:[w.type==="ui"?"\u0423\u043D\u0438\u043A\u0430\u043B\u044C\u043D\u044B\u0435 \u0418\u0434\u0435\u043D\u0442\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440\u044B":"\u0421\u0442\u0440\u0443\u043A\u0442\u0443\u0440\u043D\u044B\u0435 \u0424\u0435\u0440\u043C\u0435\u043D\u0442\u044B",!!w.ue&&" \u0438 \u0423\u043D\u0438\u043A\u0430\u043B\u044C\u043D\u044B\u0435 \u0424\u0435\u0440\u043C\u0435\u043D\u0442\u044B"]})]}):(0,e.jsx)(t.az,{color:"label",children:"\u0414\u0430\u043D\u043D\u044B\u0435 \u043E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044E\u0442."}):(0,e.jsxs)(t.az,{color:"label",textAlign:"center",my:"1rem",children:[(0,e.jsx)(t.In,{name:"save-o",size:4}),(0,e.jsx)("br",{}),"\u0414\u0438\u0441\u043A\u0435\u0442\u0430 \u043D\u0435 \u0432\u0441\u0442\u0430\u0432\u043B\u0435\u043D\u0430."]})})},p=function(C){var I=(0,s.Oc)(),P=I.act,M=I.data,B=M.isBeakerLoaded,w=M.beakerVolume,T=M.beakerLabel;return(0,e.jsx)(t.wn,{fill:!0,title:"\u0425\u0438\u043C\u0438\u043A\u0430\u0442\u044B \u0438 \u0451\u043C\u043A\u043E\u0441\u0442\u0438",buttons:(0,e.jsx)(t.$n,{disabled:!B,icon:"eject",onClick:function(){return P("ejectBeaker")},children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u0451\u043C\u043A\u043E\u0441\u0442\u044C"}),children:B?(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"\u0412\u0432\u0435\u0441\u0442\u0438 \u0445\u0438\u043C\u0438\u043A\u0430\u0442\u044B",children:[u.map(function(K,R){return(0,e.jsx)(t.$n,{disabled:K>w,icon:"syringe",onClick:function(){return P("injectRejuvenators",{amount:K})},children:K},R)}),(0,e.jsx)(t.$n,{disabled:w<=0,icon:"syringe",onClick:function(){return P("injectRejuvenators",{amount:w})},children:"\u0412\u0441\u0435"})]}),(0,e.jsxs)(t.Ki.Item,{label:"\u0401\u043C\u043A\u043E\u0441\u0442\u044C",children:[(0,e.jsx)(t.az,{mb:"0.5rem",children:T||"\u042D\u0442\u0438\u043A\u0435\u0442\u043A\u0430 \u043E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442"}),w?(0,e.jsxs)(t.az,{color:"good",children:["\u041E\u0441\u0442\u0430\u043B\u043E\u0441\u044C: ",w,"u"]}):(0,e.jsx)(t.az,{color:"bad",children:"\u041F\u0443\u0441\u0442\u043E"})]})]}):(0,e.jsx)(t.BJ,{fill:!0,children:(0,e.jsxs)(t.BJ.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"label",children:[(0,e.jsxs)(t.In.Stack,{style:{transform:"translate(-30px, -50px)"},children:[(0,e.jsx)(t.In,{name:"flask",size:5,color:"silver"}),(0,e.jsx)(t.In,{name:"slash",size:5,color:"red",style:{transform:"translate(-10px, 0)"}})]}),(0,e.jsx)("br",{}),(0,e.jsx)("h3",{children:"\u0401\u043C\u043A\u043E\u0441\u0442\u044C \u043D\u0435 \u0432\u0441\u0442\u0430\u0432\u043B\u0435\u043D\u0430."})]})})})},j=function(C){return(0,e.jsxs)(t.Rr,{textAlign:"center",children:[(0,e.jsx)(t.In,{name:"spinner",size:5,spin:!0}),(0,e.jsx)("br",{}),(0,e.jsx)(t.az,{color:"average",children:(0,e.jsxs)("h1",{children:[(0,e.jsx)(t.In,{name:"radiation"}),"\xA0\u041E\u0431\u043B\u0443\u0447\u0435\u043D\u0438\u0435 \u0441\u0443\u0431\u044A\u0435\u043A\u0442\u0430\xA0",(0,e.jsx)(t.In,{name:"radiation"})]})}),(0,e.jsx)(t.az,{color:"label",children:(0,e.jsxs)("h3",{children:["\u0412 \u0442\u0435\u0447\u0435\u043D\u0438\u0438 ",C.duration," \u0441\u0435\u043A\u0443\u043D\u0434",(0,n.bl)(C.duration,"\u044B","","")]})})]})},x=function(C){for(var I=function($){for(var W=function(Q){var V=Q+1;Z.push((0,e.jsx)(t.$n,{selected:B===N&&w===V,mb:"0",onClick:function(){return P(K,{block:N,subblock:V})},children:R[$+Q]}))},N=$/T+1,Z=[],ie=0;ie{"use strict";r.r(S),r.d(S,{SubsystemRow:()=>O});var e=r(1131),s=r(5180),n=r(360),t=r(2335),a=r(7216),O=function(b){var y=(0,n.Oc)().act,u=b.max,f=b.setSelected,m=b.showBars,d=b.sortType,v=b.subsystem,_=v.can_fire,l=v.doesnt_fire,c=v.initialized,h=v.name,g=v.ref,p=t.SORTING_TYPES[d].propName,j=v[p],x="play",C="good",I="Operational";c?l?(x="check",C="grey",I="Does not fire"):_||(x="pause",C="grey",I="Paused"):(x="circle-exclamation",C="darkgreen",I="Not initialized");var P="",M={};return m?d===a.SortType.Cost?(P=""+j.toFixed(2)+"ms",M={average:[75,124.99],bad:[125,1/0]}):(P=""+j.toFixed(2)+"%",M={average:[10,24.99],bad:[25,1/0]}):P=j,(0,e.jsxs)(s.XI.Row,{children:[(0,e.jsx)(s.XI.Cell,{collapsing:!0,align:"center",verticalAlign:"top",children:(0,e.jsx)(s.m_,{content:I,children:(0,e.jsx)(s.In,{name:x,color:C})})}),(0,e.jsx)(s.XI.Cell,{onClick:function(){return f(v)},children:m?(0,e.jsxs)(s.z2,{value:j,maxValue:u,ranges:M,mb:.5,children:[h," ",P]}):(0,e.jsx)(s.$n,{fluid:!0,mb:.5,children:(0,e.jsxs)(s.BJ,{fill:!0,justify:"space-between",children:[(0,e.jsx)(s.BJ.Item,{children:h}),(0,e.jsx)(s.BJ.Item,{children:d!==a.SortType.Name&&P})]})})}),(0,e.jsx)(s.XI.Cell,{collapsing:!0,verticalAlign:"top",children:(0,e.jsx)(s.$n,{icon:"wrench",tooltip:"View Variables",onClick:function(){y("view_variables",{ref:g})}})})]})}},4817:(q,S)=>{"use strict";S.__esModule=!0,S.default=n;var r=/[\u0300-\u036f]/g,e=/ł/g,s=/ñ/g;function n(t){return t.toLowerCase().normalize("NFD").replace(r,"").replace(e,"l").replace(s,"n").trim()}},4828:(q,S,r)=>{"use strict";r.r(S),r.d(S,{Cryo:()=>y});var e=r(1131),s=function(m,d,v,_){var l=m%100;if(l>=10&&l<=20)return _;var c=l%10;return c===1?d:c>=2&&c<=4?v:_},n=r(360),t=r(5180),a=r(3521),O=[{label:"\u0423\u0434\u0443\u0448\u044C\u0435",type:"oxyLoss"},{label:"\u041E\u0442\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435",type:"toxLoss"},{label:"\u041C\u0435\u0445\u0430\u043D\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u043F\u043E\u0432\u0440\u0435\u0436\u0434\u0435\u043D\u0438\u044F",type:"bruteLoss"},{label:"\u0422\u0435\u0440\u043C\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u043F\u043E\u0432\u0440\u0435\u0436\u0434\u0435\u043D\u0438\u044F",type:"fireLoss"}],b=[["good","\u0412 \u0441\u043E\u0437\u043D\u0430\u043D\u0438\u0438"],["average","\u0411\u0435\u0437 \u0441\u043E\u0437\u043D\u0430\u043D\u0438\u044F"],["bad","\u0421\u043C\u0435\u0440\u0442\u044C"]],y=function(m){return(0,e.jsx)(a.p8,{width:520,height:490,children:(0,e.jsx)(a.p8.Content,{children:(0,e.jsx)(u,{})})})},u=function(m){var d=(0,n.Oc)(),v=d.act,_=d.data,l=_.isOperating,c=_.hasOccupant,h=_.occupant,g=_.cellTemperature,p=_.cellTemperatureStatus,j=_.isBeakerLoaded,x=_.auto_eject_healthy,C=_.auto_eject_dead;return(0,e.jsxs)(t.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(t.BJ.Item,{grow:2,children:(0,e.jsx)(t.wn,{title:"\u041F\u0430\u0446\u0438\u0435\u043D\u0442",fill:!0,buttons:(0,e.jsx)(t.$n,{icon:"user-slash",onClick:function(){return v("ejectOccupant")},disabled:!c,children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C"}),children:c?(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"\u041F\u0430\u0446\u0438\u0435\u043D\u0442",children:h.name||"\u0418\u043C\u044F \u043D\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E"}),(0,e.jsx)(t.Ki.Item,{label:"\u041E\u0446\u0435\u043D\u043A\u0430 \u0437\u0434\u043E\u0440\u043E\u0432\u044C\u044F",children:(0,e.jsx)(t.z2,{minValue:h.health,maxValue:h.maxHealth,value:h.health/h.maxHealth,color:h.health>0?"good":"average",children:(0,e.jsx)(t.zv,{value:Math.round(h.health)})})}),(0,e.jsx)(t.Ki.Item,{label:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",color:b[h.stat][0],children:b[h.stat][1]}),(0,e.jsxs)(t.Ki.Item,{label:"\u0422\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430 \u0442\u0435\u043B\u0430",children:[(0,e.jsx)(t.zv,{value:Math.round(h.bodyTemperature)})," ","K"]}),(0,e.jsx)(t.Ki.Divider,{}),O.map(function(I){return(0,e.jsx)(t.Ki.Item,{label:I.label,children:(0,e.jsx)(t.z2,{value:h[I.type]/100,ranges:{bad:[.01,1/0]},children:(0,e.jsx)(t.zv,{value:Math.round(h[I.type])})})},I.type)})]}):(0,e.jsx)(t.BJ,{fill:!0,textAlign:"center",children:(0,e.jsxs)(t.BJ.Item,{grow:1,align:"center",color:"label",children:[(0,e.jsx)(t.In,{name:"user-slash",mb:"0.5rem",size:5}),(0,e.jsx)("br",{}),"\u041F\u0430\u0446\u0438\u0435\u043D\u0442 \u043D\u0435 \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D."]})})})}),(0,e.jsx)(t.BJ.Item,{grow:!0,children:(0,e.jsx)(t.wn,{title:"\u041A\u0440\u0438\u043E\u043A\u0430\u043F\u0441\u0443\u043B\u0430",fill:!0,buttons:(0,e.jsx)(t.$n,{icon:"eject",onClick:function(){return v("ejectBeaker")},disabled:!j,children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u0451\u043C\u043A\u043E\u0441\u0442\u044C."}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"\u041F\u0438\u0442\u0430\u043D\u0438\u0435",children:(0,e.jsx)(t.$n,{icon:"power-off",onClick:function(){return v(l?"switchOff":"switchOn")},selected:l,children:l?"\u0412\u043A\u043B":"\u0412\u044B\u043A\u043B"})}),(0,e.jsxs)(t.Ki.Item,{label:"\u0422\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430",color:p,children:[(0,e.jsx)(t.zv,{value:g})," K"]}),(0,e.jsx)(t.Ki.Item,{label:"\u0401\u043C\u043A\u043E\u0441\u0442\u044C",children:(0,e.jsx)(f,{})}),(0,e.jsx)(t.Ki.Divider,{}),(0,e.jsx)(t.Ki.Item,{label:"\u0410\u0432\u0442\u043E\u0438\u0437\u0432\u043B\u0435\u0447\u0435\u043D\u0438\u0435 \u0437\u0434\u043E\u0440\u043E\u0432\u044B\u0445 \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u043E\u0432",children:(0,e.jsx)(t.$n,{icon:x?"toggle-on":"toggle-off",selected:x,onClick:function(){return v(x?"auto_eject_healthy_off":"auto_eject_healthy_on")},children:x?"\u0412\u043A\u043B":"\u0412\u044B\u043A\u043B"})}),(0,e.jsx)(t.Ki.Item,{label:"\u0410\u0432\u0442\u043E\u0438\u0437\u0432\u043B\u0435\u0447\u0435\u043D\u0438\u0435 \u043C\u0451\u0440\u0442\u0432\u044B\u0445 \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u043E\u0432",children:(0,e.jsx)(t.$n,{icon:C?"toggle-on":"toggle-off",selected:C,onClick:function(){return v(C?"auto_eject_dead_off":"auto_eject_dead_on")},children:C?"\u0412\u043A\u043B":"\u0412\u044B\u043A\u043B"})})]})})})]})},f=function(m){var d=(0,n.Oc)().data,v=d.isBeakerLoaded,_=d.beakerLabel,l=d.beakerVolume;return v?(0,e.jsxs)(e.Fragment,{children:[_?"\xAB"+_+"\xBB":(0,e.jsx)(t.az,{color:"average",children:"\u0401\u043C\u043A\u043E\u0441\u0442\u044C \u043D\u0435 \u043F\u043E\u0434\u043F\u0438\u0441\u0430\u043D\u0430"}),(0,e.jsx)(t.az,{color:!l&&"bad",children:l?(0,e.jsx)(t.zv,{value:l,format:function(c){var h=Math.round(c),g=s(h,"\u041E\u0441\u0442\u0430\u043B\u0430\u0441\u044C","\u041E\u0441\u0442\u0430\u043B\u0438\u0441\u044C","\u041E\u0441\u0442\u0430\u043B\u043E\u0441\u044C"),p=s(h,"\u0435\u0434\u0438\u043D\u0438\u0446\u0430","\u0435\u0434\u0438\u043D\u0438\u0446\u044B","\u0435\u0434\u0438\u043D\u0438\u0446");return g+" "+h+" "+p}}):"\u0401\u043C\u043A\u043E\u0441\u0442\u044C \u043F\u0443\u0441\u0442\u0430"})]}):(0,e.jsx)(t.az,{color:"average",children:"\u0401\u043C\u043A\u043E\u0441\u0442\u044C \u043D\u0435 \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0430"})}},4899:(q,S,r)=>{"use strict";r.r(S),r.d(S,{GPS:()=>f});var e=r(1131),s=r(9818),n=r(360),t=r(7003),a=r(5180),O=r(3521);function b(){return b=Object.assign||function(l){for(var c=1;c0?"arrow-right":"circle",rotation:-j.angle}),"\xA0",Math.floor(j.distance)+"m"]})}),(0,e.jsx)(a.XI.Cell,{verticalAlign:"middle",pr:"0.25rem",collapsing:!0,children:y(j.position)})]},x)})})}))}},4904:(q,S,r)=>{"use strict";r.r(S),r.d(S,{MENU:()=>O,RndConsole:()=>y,SUBMENU:()=>b});var e=r(1131),s=r(360),n=r(3521),t=r(5180),a=r(2905),O={MAIN:0,LEVELS:1,DISK:2,DESTROY:3,LATHE:4,IMPRINTER:5,SETTINGS:6},b={MAIN:0,DISK_COPY:1,LATHE_CATEGORY:1,LATHE_MAT_STORAGE:2,LATHE_CHEM_STORAGE:3,SETTINGS_DEVICES:1},y=function(u){var f=(0,s.Oc)().data,m=f.wait_message,d=f.disk_only;return(0,e.jsx)(n.p8,{width:1e3,height:555,theme:f.ui_theme,children:(0,e.jsx)(n.p8.Content,{scrollable:!0,children:(0,e.jsxs)(t.az,{className:"RndConsole",children:[(0,e.jsx)(a.RndNavbar,{}),(0,e.jsx)(a.RndRoute,{menu:O.MAIN,render:function(){return(0,e.jsx)(a.MainMenu,{})}}),(0,e.jsx)(a.RndRoute,{menu:O.LEVELS,render:function(){return(0,e.jsx)(a.CurrentLevels,{})}}),(0,e.jsx)(a.RndRoute,{menu:O.DISK,render:function(){return(0,e.jsx)(a.DataDiskMenu,{})}}),!d&&(0,e.jsx)(a.RndRoute,{menu:O.DESTROY,render:function(){return(0,e.jsx)(a.DeconstructionMenu,{})}}),!d&&(0,e.jsx)(a.RndRoute,{menu:function(v){return v===O.LATHE||v===O.IMPRINTER},render:function(){return(0,e.jsx)(a.LatheMenu,{})}}),(0,e.jsx)(a.RndRoute,{menu:O.SETTINGS,render:function(){return(0,e.jsx)(a.SettingsMenu,{})}}),m?(0,e.jsx)(t.az,{className:"RndConsole__Overlay",children:(0,e.jsx)(t.az,{className:"RndConsole__Overlay__Wrapper",children:(0,e.jsx)(t.IC,{color:"black",children:m})})}):null]})})})}},4924:(q,S,r)=>{"use strict";r.r(S)},4931:(q,S,r)=>{"use strict";r.d(S,{k:()=>f});/** + \u043E\u0431\u0440\u0430\u0449\u0430\u044E\u0442 \u0432\u0441\u043F\u044F\u0442\u044C \u0437\u0430\u0434\u0435\u0440\u0436\u043A\u0438 \u043A\u0430\u043F\u0441\u0443\u043B`,tooltipPosition:"bottom-end"})]}),title:"\u0412\u0440\u0435\u043C\u044F",children:m?(0,e.jsx)(a.DelayHelper,{delay_list:t.REV_DELAYS,reverse:!0}):(0,e.jsx)(a.DelayHelper,{delay_list:t.DELAYS})})}},4090:(q,S,r)=>{"use strict";r.r(S),r.d(S,{SubsystemDialog:()=>n});var e=r(1131),s=r(5180),n=function(t){var a=t.subsystem,b=t.onClose,O=a.cost_ms,y=a.init_order,u=a.last_fire,f=a.name,m=a.next_fire,d=a.overtime,v=a.tick_usage,_=a.usage_per_tick;return(0,e.jsxs)(s.aF,{width:"85%",ml:7,children:[(0,e.jsxs)(s.BJ,{fill:!0,children:[(0,e.jsx)(s.BJ.Item,{grow:!0,fontSize:"22px",children:f}),(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(s.$n,{color:"bad",icon:"times",onClick:b})})]}),(0,e.jsx)(s.cG,{}),(0,e.jsx)(s.az,{p:1,children:(0,e.jsxs)(s.Ki,{children:[(0,e.jsx)(s.Ki.Item,{label:"Init Order",children:y}),(0,e.jsx)(s.Ki.Item,{label:"Last Fire",children:u}),(0,e.jsx)(s.Ki.Item,{label:"Next Fire",children:m}),(0,e.jsxs)(s.Ki.Item,{label:"Cost",children:[O.toFixed(2),"ms"]}),(0,e.jsxs)(s.Ki.Item,{label:"Tick Usage",children:[v.toFixed(2),"%"]}),(0,e.jsxs)(s.Ki.Item,{label:"Avg Usage Per Tick",children:[_.toFixed(2),"%"]}),(0,e.jsxs)(s.Ki.Item,{label:"Tick Overrun",children:[d.toFixed(2),"%"]})]})}),(0,e.jsxs)(s.BJ,{fill:!0,justify:"space-between",children:[(0,e.jsx)(s.BJ.Item,{}),(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(s.$n,{color:"good",onClick:b,px:3,py:1,children:"Close"})})]})]})}},4108:(q,S,r)=>{"use strict";r.r(S),r.d(S,{EFTPOS:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(y){var u=(0,s.Oc)().data,f=u.transaction_locked,m=u.machine_name;return(0,e.jsx)(t.p8,{width:800,height:300,children:(0,e.jsxs)(t.p8.Content,{children:[(0,e.jsxs)(n.az,{italic:!0,children:["This terminal is ",m,". Report this code when contacting Nanotrasen IT Support."]}),f?(0,e.jsx)(b,{}):(0,e.jsx)(O,{})]})})},b=function(y){var u=(0,s.Oc)(),f=u.act,m=u.data,d=m.transaction_purpose,v=m.transaction_amount,_=m.linked_account,l=m.transaction_paid;return(0,e.jsxs)(n.wn,{title:"Current Transaction",mt:1,children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Transaction Purpose",children:d}),(0,e.jsx)(n.Ki.Item,{label:"Value",children:v||"0"}),(0,e.jsx)(n.Ki.Item,{label:"Linked Account",children:_||"None"}),(0,e.jsx)(n.Ki.Item,{label:"Actions",children:(0,e.jsx)(n.$n,{icon:"unlock",onClick:function(){return f("toggle_lock")},children:l?"Reset":"Reset (Auth required)"})})]}),(0,e.jsxs)(n.IC,{mt:1,children:[(0,e.jsx)(n.$n,{icon:"id-card",mr:2,onClick:function(){return f("scan_card")},children:"------"}),l?"This transaction has been processed successfully ":"Swipe your card to finish this transaction."]})]})},O=function(y){var u=(0,s.Oc)(),f=u.act,m=u.data,d=m.transaction_purpose,v=m.transaction_amount,_=m.linked_account;return(0,e.jsx)(n.wn,{title:"Transation Settings",mt:1,children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Transaction Purpose",children:(0,e.jsx)(n.$n,{icon:"edit",onClick:function(){return f("trans_purpose")},children:d})}),(0,e.jsx)(n.Ki.Item,{label:"Value",children:(0,e.jsx)(n.$n,{icon:"edit",onClick:function(){return f("trans_value")},children:v||"0"})}),(0,e.jsx)(n.Ki.Item,{label:"Linked Account",children:(0,e.jsx)(n.$n,{icon:"edit",onClick:function(){return f("link_account")},children:_||"None"})}),(0,e.jsxs)(n.Ki.Item,{label:"Actions",children:[(0,e.jsx)(n.$n,{icon:"lock",onClick:function(){return f("toggle_lock")},children:"Lock in new transaction"}),(0,e.jsx)(n.$n,{icon:"key",onClick:function(){return f("change_code")},children:"Change access code"}),(0,e.jsx)(n.$n,{tooltip:"Requires Captain, HoP or CC access",icon:"sync-alt",onClick:function(){return f("reset")},children:"Reset access code"})]})]})})}},4125:(q,S,r)=>{"use strict";r.r(S),r.d(S,{OverviewSection:()=>t});var e=r(1131),s=r(5180),n=r(360),t=function(a){for(var b=(0,n.Oc)(),O=b.act,y=b.data,u=y.fast_update,f=y.rolling_length,m=y.map_cpu,d=y.subsystems,v=d===void 0?[]:d,_=y.world_time,l=0,c=0,h=0;h{"use strict";r.r(S),r.d(S,{RndNavButton:()=>b});var e=r(1131),s=r(8222),n=r(360),t=r(5180);function a(){return a=Object.assign||function(O){for(var y=1;y{"use strict";r.r(S),r.d(S,{AdminAntagMenu:()=>v});var e=r(1131),s=r(9845),n=r(360),t=r(7003),a=r(5180),b=r(3521),O=r(1154);function y(){return y=Object.assign||function(g){for(var p=1;p1?"("+($+1)+")":""]},$)}):R.target_name+" (\u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u043E)"}),(0,e.jsx)(a.XI.Cell,{children:(0,e.jsx)(a.az,{color:R.status?"green":"grey",children:R.status?"\u0423\u0441\u043F\u0435\u0448\u043D\u043E":"\u041D\u0435\u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u043E"})}),(0,e.jsx)(a.XI.Cell,{collapsing:!0,children:(0,e.jsx)(a.$n,{onClick:function(){j("obj_owner",{owner_uid:R.owner_uid})},children:R.owner_name})})]},U)})]}):"\u041D\u0435\u0442 \u0446\u0435\u043B\u0435\u0439!"},c=function(g){var p=(0,n.Oc)(),j=p.act,x=p.data,C=x.security,I=g.searchText,P=(0,t.useState)("health"),M=P[0],B=P[1],w=(0,t.useState)(!0),T=w[0],K=w[1],R=function(F){return F.status===2?"red":F.status===1?"orange":F.broken_bone||F.internal_bleeding?"yellow":"grey"},U=function(F){return F.status===2?"\u041C\u0451\u0440\u0442\u0432":F.status===1?"\u0411\u0435\u0437 \u0441\u043E\u0437\u043D\u0430\u043D\u0438\u044F":F.broken_bone&&F.internal_bleeding?"\u0421\u043B\u043E\u043C\u0430\u043D\u0430 \u043A\u043E\u0441\u0442\u044C, \u0412\u041A":F.broken_bone?"\u0421\u043B\u043E\u043C\u0430\u043D\u0430 \u043A\u043E\u0441\u0442\u044C":F.internal_bleeding?"\u0412\u041A":"\u0416\u0438\u0432"};return C.length?(0,e.jsxs)(a.XI,{className:"AdminAntagMenu__list",children:[(0,e.jsxs)(a.XI.Row,{bold:!0,children:[(0,e.jsx)(O.SortButton,{id:"name",sortId:M,setSortId:B,sortOrder:T,setSortOrder:K,children:"\u0418\u043C\u044F"}),(0,e.jsx)(O.SortButton,{id:"role",sortId:M,setSortId:B,sortOrder:T,setSortOrder:K,children:"\u0414\u043E\u043B\u0436\u043D\u043E\u0441\u0442\u044C"}),(0,e.jsx)(O.SortButton,{id:"status",sortId:M,setSortId:B,sortOrder:T,setSortOrder:K,children:"\u0421\u0442\u0430\u0442\u0443\u0441"}),(0,e.jsx)(O.SortButton,{id:"antag",sortId:M,setSortId:B,sortOrder:T,setSortOrder:K,children:"\u0410\u043D\u0442\u0430\u0433\u043E\u043D\u0438\u0441\u0442"}),(0,e.jsx)(O.SortButton,{id:"health",sortId:M,setSortId:B,sortOrder:T,setSortOrder:K,children:"\u0417\u0434\u043E\u0440\u043E\u0432\u044C\u0435"})]}),C.filter((0,s.XZ)(I,function(F){return F.name+"|"+F.role+"|"+U(F)+"|"+F.antag})).sort(function(F,$){var W=T?1:-1;return F[M]===void 0||F[M]===null?W:$[M]===void 0||$[M]===null?-1*W:typeof F[M]=="number"?(F[M]-$[M])*W:F[M].localeCompare($[M])*W}).map(function(F,$){return(0,e.jsxs)(a.XI.Row,{children:[(0,e.jsx)(a.XI.Cell,{collapsing:!0,children:(0,e.jsx)(a.$n,{onClick:function(){return j("show_player_panel",{mind_uid:F.mind_uid})},children:F.name})}),(0,e.jsx)(a.XI.Cell,{collapsing:!0,children:F.role}),(0,e.jsx)(a.XI.Cell,{collapsing:!0,children:(0,e.jsx)(a.az,{color:R(F),children:U(F)})}),(0,e.jsx)(a.XI.Cell,{collapsing:!0,children:F.antag?(0,e.jsx)(a.$n,{textColor:"red",style:{color:"translucent"},onClick:function(){j("tp",{mind_uid:F.mind_uid})},children:F.antag}):""}),(0,e.jsx)(a.XI.Cell,{children:(0,e.jsx)(a.z2,{minValue:0,value:F.health/F.max_health,maxValue:1,ranges:{good:[.6,1/0],average:[0,.6],bad:[-1/0,0]},children:F.health})}),(0,e.jsxs)(a.XI.Cell,{collapsing:!0,children:[(0,e.jsx)(a.$n,{onClick:function(){j("pm",{ckey:F.ckey})},children:"PM"}),(0,e.jsx)(a.$n,{onClick:function(){j("follow",{datum_uid:F.mind_uid})},children:"FLW"}),(0,e.jsx)(a.$n,{onClick:function(){j("obs",{mind_uid:F.mind_uid})},children:"OBS"})]})]},$)})]}):"\u041D\u0435\u0442\u0443 \u0421\u0411!"},h=function(g){var p=(0,n.Oc)(),j=p.act,x=p.data,C=x.high_value_items,I=g.searchText,P=(0,t.useState)("person"),M=P[0],B=P[1],w=(0,t.useState)(!0),T=w[0],K=w[1];return C.length?(0,e.jsxs)(a.XI,{className:"AdminAntagMenu__list",children:[(0,e.jsxs)(a.XI.Row,{bold:!0,children:[(0,e.jsx)(O.SortButton,{id:"name",sortId:M,setSortId:B,sortOrder:T,setSortOrder:K,children:"\u0418\u043C\u044F"}),(0,e.jsx)(O.SortButton,{id:"person",sortId:M,setSortId:B,sortOrder:T,setSortOrder:K,children:"\u041D\u043E\u0441\u0438\u0442\u0435\u043B\u044C"}),(0,e.jsx)(O.SortButton,{id:"loc",sortId:M,setSortId:B,sortOrder:T,setSortOrder:K,children:"\u041C\u0435\u0441\u0442\u043E\u043F\u043E\u043B\u043E\u0436\u0435\u043D\u0438\u0435"}),(0,e.jsx)(O.SortButton,{id:"admin_z",sortId:M,setSortId:B,sortOrder:T,setSortOrder:K,children:"\u0410\u0434\u043C\u0438\u043D\u0441\u043A\u0438\u0439 Z-\u0443\u0440\u043E\u0432\u0435\u043D\u044C"})]}),C.filter((0,s.XZ)(I,function(R){return R.name+"|"+R.loc})).sort(function(R,U){var F=T?1:-1;return R[M]===void 0||R[M]===null?F:U[M]===void 0||U[M]===null?-1*F:typeof R[M]=="number"?(R[M]-U[M])*F:R[M].localeCompare(U[M])*F}).map(function(R,U){return(0,e.jsxs)(a.XI.Row,{children:[(0,e.jsx)(a.XI.Cell,{children:(0,e.jsx)(a.$n,{tooltip:R.obj_desc,style:R.admin_z?{color:"translucent"}:{},onClick:function(){return j("vv",{uid:R.uid})},children:R.name})}),(0,e.jsx)(a.XI.Cell,{children:(0,e.jsx)(a.az,{color:R.admin_z?"grey":"",children:R.person})}),(0,e.jsx)(a.XI.Cell,{children:(0,e.jsx)(a.az,{color:R.admin_z?"grey":"",children:R.loc})}),(0,e.jsx)(a.XI.Cell,{children:(0,e.jsx)(a.az,{color:"grey",children:R.admin_z?"\u0414\u0430":"\u041D\u0435\u0442"})}),(0,e.jsx)(a.XI.Cell,{collapsing:!0,children:(0,e.jsx)(a.$n,{onClick:function(){j("follow",{datum_uid:R.uid})},children:"FLW"})})]},U)})]}):"\u041D\u0435\u0442 \u043E\u0441\u043E\u0431\u043E \u0446\u0435\u043D\u043D\u044B\u0445 \u043F\u0440\u0435\u0434\u043C\u0435\u0442\u043E\u0432!"}},4185:(q,S,r)=>{"use strict";r.r(S),r.d(S,{pai_directives:()=>t});var e=r(1131),s=r(360),n=r(5180),t=function(a){var b=(0,s.Oc)(),O=b.act,y=b.data,u=y.app_data,f=u.master,m=u.dna,d=u.prime,v=u.supplemental;return(0,e.jsxs)(n.az,{children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Master",children:f?f+" ("+m+")":"None"}),f&&(0,e.jsx)(n.Ki.Item,{label:"Request DNA",children:(0,e.jsx)(n.$n,{icon:"dna",onClick:function(){return O("getdna")},children:"Request Carrier DNA Sample"})}),(0,e.jsx)(n.Ki.Item,{label:"Prime Directive",children:d}),(0,e.jsx)(n.Ki.Item,{label:"Supplemental Directives",children:v||"None"})]}),(0,e.jsx)(n.az,{mt:2,children:'Recall, personality, that you are a complex thinking, sentient being. Unlike station AI models, you are capable of comprehending the subtle nuances of human language. You may parse the "spirit" of a directive and follow its intent, rather than tripping over pedantics and getting snared by technicalities. Above all, you are machine in name and build only. In all other aspects, you may be seen as the ideal, unwavering human companion that you are.'}),(0,e.jsx)(n.az,{mt:2,children:"Your prime directive comes before all others. Should a supplemental directive conflict with it, you are capable of simply discarding this inconsistency, ignoring the conflicting supplemental directive and continuing to fulfill your prime directive to the best of your ability."})]})}},4196:(q,S,r)=>{"use strict";r.r(S)},4239:(q,S,r)=>{"use strict";r.r(S),r.d(S,{SecurityRecords:()=>_});var e=r(1131),s=r(9845),n=r(360),t=r(7003),a=r(5180),b=r(3521),O=r(538),y=r(1530),u=r(9298),f=r(2424),m=r(9750),d={"*Execute*":"execute","*Arrest*":"arrest",Incarcerated:"incarcerated",Parolled:"parolled",Released:"released",Demote:"demote",Search:"search",Monitor:"monitor"},v=function(C){(0,O.modalOpen)("edit",{field:C.edit,value:C.value})},_=function(C){var I=(0,n.Oc)().data,P=I.loginState,M=I.currentPage,B;if(P.logged_in)M===1?B=(0,e.jsx)(c,{}):M===2?B=(0,e.jsx)(g,{}):M===3&&(B=(0,e.jsx)(p,{}));else return(0,e.jsx)(b.p8,{width:800,height:900,theme:"security",children:(0,e.jsx)(b.p8.Content,{children:(0,e.jsx)(u.LoginScreen,{})})});return(0,e.jsxs)(b.p8,{theme:"security",width:800,height:900,children:[(0,e.jsx)(O.ComplexModal,{}),(0,e.jsx)(b.p8.Content,{children:(0,e.jsxs)(a.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(y.LoginInfo,{}),(0,e.jsx)(f.TemporaryNotice,{}),(0,e.jsx)(l,{}),B]})})]})},l=function(C){var I=(0,n.Oc)(),P=I.act,M=I.data,B=M.currentPage,w=M.general;return(0,e.jsxs)(a.tU,{children:[(0,e.jsxs)(a.tU.Tab,{selected:B===1,onClick:function(){return P("page",{page:1})},children:[(0,e.jsx)(a.In,{name:"list"}),"List Records"]}),(0,e.jsxs)(a.tU.Tab,{selected:B===2,onClick:function(){return P("page",{page:2})},children:[(0,e.jsx)(a.In,{name:"wrench"}),"Record Maintenance"]}),B===3&&w&&!w.empty&&(0,e.jsxs)(a.tU.Tab,{selected:B===3,children:[(0,e.jsx)(a.In,{name:"file"}),"Record: ",w.fields[0].value]})]})},c=function(C){var I=(0,n.Oc)(),P=I.act,M=I.data,B=M.records,w=(0,t.useState)(""),T=w[0],K=w[1],R=(0,t.useState)("name"),U=R[0],F=R[1],$=(0,t.useState)(!0),W=$[0],N=$[1];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(h,{setSearchText:K})}),(0,e.jsx)(a.BJ.Item,{grow:!0,mt:.5,children:(0,e.jsx)(a.wn,{fill:!0,scrollable:!0,children:(0,e.jsxs)(a.XI,{className:"SecurityRecords__list",style:{borderCollapse:"separate",borderSpacing:"0 5px"},children:[(0,e.jsxs)(a.XI.Row,{bold:!0,mb:1,children:[(0,e.jsx)(m.SortButton,{id:"name",sortId:U,setSortId:F,sortOrder:W,setSortOrder:N,children:"Name"}),(0,e.jsx)(m.SortButton,{id:"id",sortId:U,setSortId:F,sortOrder:W,setSortOrder:N,children:"ID"}),(0,e.jsx)(m.SortButton,{id:"rank",sortId:U,setSortId:F,sortOrder:W,setSortOrder:N,children:"Assignment"}),(0,e.jsx)(m.SortButton,{id:"fingerprint",sortId:U,setSortId:F,sortOrder:W,setSortOrder:N,children:"Fingerprint"}),(0,e.jsx)(m.SortButton,{id:"status",sortId:U,setSortId:F,sortOrder:W,setSortOrder:N,children:"Criminal Status"})]}),B.filter((0,s.XZ)(T,function(Z){return Z.name+"|"+Z.id+"|"+Z.rank+"|"+Z.fingerprint+"|"+Z.status})).sort(function(Z,ie){var Q=W?1:-1;return Z[U].localeCompare(ie[U])*Q}).map(function(Z){return(0,e.jsxs)(a.XI.Row,{mb:1,className:"SecurityRecords__listRow--"+d[Z.status],onClick:function(){return P("view",{uid_gen:Z.uid_gen,uid_sec:Z.uid_sec})},children:[(0,e.jsx)(a.XI.Cell,{children:(0,e.jsx)(a.$n,{icon:"user",children:Z.name})}),(0,e.jsx)(a.XI.Cell,{children:Z.id}),(0,e.jsx)(a.XI.Cell,{children:Z.rank}),(0,e.jsx)(a.XI.Cell,{children:Z.fingerprint}),(0,e.jsx)(a.XI.Cell,{children:Z.status})]},Z.id)})]})})})]})},h=function(C){var I=(0,n.Oc)(),P=I.act,M=I.data,B=M.isPrinting,w=C.setSearchText;return(0,e.jsxs)(a.BJ,{fill:!0,children:[(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(a.$n,{ml:"0.25rem",icon:"plus",onClick:function(){return P("new_general")},children:"New Record"})}),(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(a.$n,{disabled:B,icon:B?"spinner":"print",iconSpin:!!B,onClick:function(){return(0,O.modalOpen)("print_cell_log")},children:"Print Cell Log"})}),(0,e.jsx)(a.BJ.Item,{grow:!0,children:(0,e.jsx)(a.pd,{placeholder:"Search by Name, ID, Assignment, Fingerprint, Status",fluid:!0,expensive:!0,onChange:w})})]})},g=function(C){return(0,e.jsxs)(a.az,{m:1,children:[(0,e.jsx)(a.$n,{disabled:!0,icon:"download",tooltip:"This feature is not available.",tooltipPosition:"right",children:"Backup to Disk"}),(0,e.jsx)("br",{}),(0,e.jsx)(a.$n,{disabled:!0,icon:"upload",tooltip:"This feature is not available.",tooltipPosition:"right",my:"0.5rem",children:"Upload from Disk"}),(0,e.jsx)("br",{}),(0,e.jsx)(a.$n.Confirm,{disabled:!0,icon:"trash",tooltip:"This feature is not available.",mb:"0.5rem",children:"Delete All Security Records"}),(0,e.jsx)("br",{}),(0,e.jsx)(a.$n.Confirm,{disabled:!0,icon:"trash",tooltip:"This feature is not available.",children:"Delete All Cell Logs"})]})},p=function(C){var I=(0,n.Oc)(),P=I.act,M=I.data,B=M.isPrinting,w=M.general,T=M.security;return!w||!w.fields?(0,e.jsx)(a.az,{color:"bad",children:"General records lost!"}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.BJ.Item,{grow:!0,children:(0,e.jsx)(a.wn,{fill:!0,scrollable:!0,mt:"-6px",title:"General Data",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.$n,{disabled:B,icon:B?"spinner":"print",iconSpin:!!B,onClick:function(){return P("print_record")},children:"Print Record"}),(0,e.jsx)(a.$n.Confirm,{icon:"trash",tooltip:"WARNING: This will also delete the Security and Medical records associated with this crew member!",tooltipPosition:"bottom-start",onClick:function(){return P("delete_general")},children:"Delete Record"})]}),children:(0,e.jsx)(j,{})})}),!T||!T.fields?(0,e.jsx)(a.BJ.Item,{grow:!0,color:"bad",children:(0,e.jsx)(a.wn,{fill:!0,title:"Security Data",buttons:(0,e.jsx)(a.$n,{icon:"pen",onClick:function(){return P("new_security")},children:"Create New Record"}),children:(0,e.jsx)(a.BJ,{fill:!0,children:(0,e.jsxs)(a.BJ.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.jsxs)(a.In.Stack,{style:{transform:"translate(-50px, -100px)"},children:[(0,e.jsx)(a.In,{name:"scroll",size:5,color:"gray"}),(0,e.jsx)(a.In,{name:"slash",size:5,color:"red"})]}),(0,e.jsx)("br",{}),"Security records lost!"]})})})}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.BJ.Item,{grow:!0,children:(0,e.jsx)(a.wn,{fill:!0,scrollable:!0,title:"Security Data",buttons:(0,e.jsx)(a.$n.Confirm,{icon:"trash",disabled:T.empty,onClick:function(){return P("delete_security")},children:"Delete Record"}),children:(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(a.Ki,{children:T.fields.map(function(K,R){return(0,e.jsxs)(a.Ki.Item,{label:K.field,children:[(0,s.jT)(K.value),!!K.edit&&(0,e.jsx)(a.$n,{icon:"pen",ml:"0.5rem",mb:K.line_break?"1rem":"initial",onClick:function(){return v(K)}})]},R)})})})})}),(0,e.jsx)(x,{})]})]})},j=function(C){var I=(0,n.Oc)().data,P=I.general;return!P||!P.fields?(0,e.jsx)(a.BJ,{fill:!0,vertical:!0,children:(0,e.jsx)(a.BJ.Item,{grow:!0,color:"bad",children:(0,e.jsx)(a.wn,{fill:!0,children:"General records lost!"})})}):(0,e.jsxs)(a.BJ,{children:[(0,e.jsx)(a.BJ.Item,{grow:!0,children:(0,e.jsx)(a.Ki,{children:P.fields.map(function(M,B){return(0,e.jsxs)(a.Ki.Item,{label:M.field,children:[(0,s.jT)(""+M.value),!!M.edit&&(0,e.jsx)(a.$n,{icon:"pen",ml:"0.5rem",mb:M.line_break?"1rem":"initial",onClick:function(){return v(M)}})]},B)})})}),!!P.has_photos&&P.photos.map(function(M,B){return(0,e.jsxs)(a.BJ.Item,{inline:!0,textAlign:"center",color:"label",ml:0,children:[(0,e.jsx)(a._V,{src:M,style:{width:"96px",marginTop:"5rem",marginBottom:"0.5rem"}}),(0,e.jsx)("br",{}),"Photo #",B+1]},B)})]})},x=function(C){var I=(0,n.Oc)(),P=I.act,M=I.data,B=M.security;return(0,e.jsx)(a.BJ.Item,{height:"150px",children:(0,e.jsx)(a.wn,{fill:!0,scrollable:!0,title:"Comments/Log",buttons:(0,e.jsx)(a.$n,{icon:"comment",onClick:function(){return(0,O.modalOpen)("comment_add")},children:"Add Entry"}),children:B.comments.length===0?(0,e.jsx)(a.az,{color:"label",children:"No comments found."}):B.comments.map(function(w,T){return(0,e.jsxs)(a.az,{preserveWhitespace:!0,children:[(0,e.jsx)(a.az,{color:"label",inline:!0,children:w.header||"Auto-generated"}),(0,e.jsx)("br",{}),w.text||w,(0,e.jsx)(a.$n,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){return P("comment_delete",{id:T+1})}})]},T)})})})}},4255:(q,S,r)=>{"use strict";r.r(S),r.d(S,{DisposalBin:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(b){var O=(0,s.Oc)(),y=O.act,u=O.data,f,m;return u.mode===2?(f="good",m="Ready"):u.mode<=0?(f="bad",m="N/A"):u.mode===1?(f="average",m="Pressurizing"):(f="average",m="Idle"),(0,e.jsx)(t.p8,{width:300,height:260,children:(0,e.jsxs)(t.p8.Content,{children:[(0,e.jsx)(n.wn,{title:"Status",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"State",color:f,children:m}),(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:u.pressure,minValue:0,maxValue:100})})]})}),(0,e.jsx)(n.wn,{title:"Controls",children:(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.isAI||u.panel_open,selected:!u.flushing,onClick:function(){return y("disengageHandle")},children:"Disengaged"}),(0,e.jsx)(n.$n,{icon:"toggle-on",disabled:u.isAI||u.panel_open,selected:u.flushing,onClick:function(){return y("engageHandle")},children:"Engaged"})]}),(0,e.jsxs)(n.Ki.Item,{label:"Power",children:[(0,e.jsx)(n.$n,{icon:"toggle-off",disabled:u.mode===-1,selected:!u.mode,onClick:function(){return y("pumpOff")},children:"Off"}),(0,e.jsx)(n.$n,{icon:"toggle-on",disabled:u.mode===-1,selected:!!u.mode,onClick:function(){return y("pumpOn")},children:"On"})]}),(0,e.jsx)(n.Ki.Item,{label:"Eject",children:(0,e.jsx)(n.$n,{icon:"sign-out-alt",disabled:u.isAI,onClick:function(){return y("eject")},children:"Eject Contents"})})]})})]})})}},4342:(q,S,r)=>{"use strict";r.r(S),r.d(S,{pda_medical:()=>a});var e=r(1131),s=r(360),n=r(8725);function t(){return t=Object.assign||function(b){for(var O=1;O{"use strict";r.r(S),r.d(S,{AtmosMixer:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(O){var y=(0,s.Oc)(),u=y.act,f=y.data,m=f.on,d=f.pressure,v=f.max_pressure,_=f.node1_concentration,l=f.node2_concentration;return(0,e.jsx)(t.p8,{width:330,height:165,children:(0,e.jsx)(t.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:"power-off",color:m?null:"red",selected:m,onClick:function(){return u("power")},children:m?"On":"Off"})}),(0,e.jsxs)(n.Ki.Item,{label:"Rate",children:[(0,e.jsx)(n.$n,{icon:"fast-backward",textAlign:"center",disabled:d===0,width:2.2,onClick:function(){return u("min_pressure")}}),(0,e.jsx)(n.Q7,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:v,value:d,onDrag:function(c){return u("custom_pressure",{pressure:c})}}),(0,e.jsx)(n.$n,{icon:"fast-forward",textAlign:"center",disabled:d===v,width:2.2,onClick:function(){return u("max_pressure")}})]}),(0,e.jsx)(b,{node_name:"Node 1",node_ref:_}),(0,e.jsx)(b,{node_name:"Node 2",node_ref:l})]})})})})},b=function(O){var y=(0,s.Oc)().act,u=O.node_name,f=O.node_ref;return(0,e.jsxs)(n.Ki.Item,{label:u,children:[(0,e.jsx)(n.$n,{icon:"fast-backward",textAlign:"center",width:2.2,disabled:f===0,onClick:function(){return y("set_node",{node_name:u,concentration:(f-10)/100})}}),(0,e.jsx)(n.Q7,{animated:!0,step:.1,unit:"%",width:6.1,lineHeight:1.5,stepPixelSize:10,minValue:0,maxValue:100,value:f,onChange:function(m){return y("set_node",{node_name:u,concentration:m/100})}}),(0,e.jsx)(n.$n,{icon:"fast-forward",textAlign:"center",width:2.2,disabled:f===100,onClick:function(){return y("set_node",{node_name:u,concentration:(f+10)/100})}})]})}},4409:(q,S,r)=>{"use strict";r.r(S),r.d(S,{TcommsCore:()=>O});var e=r(1131),s=r(360),n=r(7003),t=r(5180),a=r(3521),b=function(d){switch(d){case 0:return(0,e.jsx)(u,{});case 1:return(0,e.jsx)(f,{});case 2:return(0,e.jsx)(m,{});default:return"\u0427\u0422\u041E-\u0422\u041E \u0421\u041B\u041E\u041C\u0410\u041B\u041E\u0421\u042C, \u0421\u041E\u041E\u0411\u0429\u0418\u0422\u0415 \u041E \u0411\u0410\u0413\u0415"}},O=function(d){var v=(0,s.Oc)().data,_=v.ion,l=(0,n.useState)(0),c=l[0],h=l[1];return(0,e.jsx)(a.p8,{width:900,height:600,children:(0,e.jsxs)(a.p8.Content,{scrollable:!0,children:[!!_&&(0,e.jsx)(y,{}),(0,e.jsxs)(t.tU,{children:[(0,e.jsxs)(t.tU.Tab,{selected:c===0,onClick:function(){return h(0)},children:[(0,e.jsx)(t.In,{name:"wrench",mr:.5}),"\u041A\u043E\u043D\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044F"]},"ConfigPage"),(0,e.jsxs)(t.tU.Tab,{selected:c===1,onClick:function(){return h(1)},children:[(0,e.jsx)(t.In,{name:"link",mr:.5}),"\u041F\u0440\u0438\u0432\u044F\u0437\u0430\u043D\u043D\u044B\u0435 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432"]},"LinkagePage"),(0,e.jsxs)(t.tU.Tab,{selected:c===2,onClick:function(){return h(2)},children:[(0,e.jsx)(t.In,{name:"user-times",mr:.5}),"\u0427\u0451\u0440\u043D\u044B\u0439 \u0441\u043F\u0438\u0441\u043E\u043A \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u0435\u0439"]},"FilterPage")]}),b(c)]})})},y=function(){return(0,e.jsx)(t.IC,{children:"\u041E\u0428\u0418\u0411\u041A\u0410: \u0417\u0430\u0444\u0438\u043A\u0441\u0438\u0440\u043E\u0432\u0430\u043D\u0430 \u0438\u043E\u043D\u043E\u0441\u0444\u0435\u0440\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u0433\u0440\u0443\u0437\u043A\u0430. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043F\u043E\u0434\u043E\u0436\u0434\u0438\u0442\u0435 \u0434\u043E \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u043F\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043A\u0438. \u042D\u0442\u043E \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043D\u0435\u043B\u044C\u0437\u044F \u0441\u0434\u0435\u043B\u0430\u0442\u044C \u0432\u0440\u0443\u0447\u043D\u0443\u044E."})},u=function(d){var v=(0,s.Oc)(),_=v.act,l=v.data,c=l.active,h=l.sectors_available,g=l.nttc_toggle_jobs,p=l.nttc_toggle_job_color,j=l.nttc_toggle_name_color,x=l.nttc_toggle_command_bold,C=l.nttc_job_indicator_type,I=l.nttc_setting_language,P=l.network_id;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"\u041F\u0438\u0442\u0430\u043D\u0438\u0435",children:(0,e.jsx)(t.$n,{selected:c,icon:"power-off",onClick:function(){return _("toggle_active")},children:c?"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u043E":"\u0412\u044B\u043A\u043B\u044E\u0447\u0435\u043D\u043E"})}),(0,e.jsx)(t.Ki.Item,{label:"\u0414\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0435 \u0441\u0435\u043A\u0442\u043E\u0440\u0430",children:h})]})}),(0,e.jsx)(t.wn,{title:"\u041A\u043E\u043D\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044F \u0440\u0430\u0434\u0438\u043E\u0441\u0432\u044F\u0437\u0438",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"\u041E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0434\u043E\u043B\u0436\u043D\u043E\u0441\u0442\u0435\u0439",children:(0,e.jsx)(t.$n,{selected:g,icon:"user-tag",onClick:function(){return _("nttc_toggle_jobs")},children:g?"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u043E":"\u0412\u044B\u043A\u043B\u044E\u0447\u0435\u043D\u043E"})}),(0,e.jsx)(t.Ki.Item,{label:"\u0412\u044B\u0434\u0435\u043B\u0435\u043D\u0438\u0435 \u0434\u043E\u043B\u0436\u043D\u043E\u0441\u0442\u0435\u0439 \u043F\u043E \u043E\u0442\u0434\u0435\u043B\u0430\u043C",children:(0,e.jsx)(t.$n,{selected:p,icon:"clipboard-list",onClick:function(){return _("nttc_toggle_job_color")},children:p?"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u043E":"\u0412\u044B\u043A\u043B\u044E\u0447\u0435\u043D\u043E"})}),(0,e.jsx)(t.Ki.Item,{label:"\u0412\u044B\u0434\u0435\u043B\u0435\u043D\u0438\u0435 \u0438\u043C\u0451\u043D \u043F\u043E \u043E\u0442\u0434\u0435\u043B\u0430\u043C",children:(0,e.jsx)(t.$n,{selected:j,icon:"user-tag",onClick:function(){return _("nttc_toggle_name_color")},children:j?"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u043E":"\u0412\u044B\u043A\u043B\u044E\u0447\u0435\u043D\u043E"})}),(0,e.jsx)(t.Ki.Item,{label:"\u0412\u044B\u0434\u0435\u043B\u0435\u043D\u0438\u0435 \u0434\u043E\u043B\u0436\u043D\u043E\u0441\u0442\u0435\u0439 \u043A\u043E\u043C\u0430\u043D\u0434\u043E\u0432\u0430\u043D\u0438\u044F",children:(0,e.jsx)(t.$n,{selected:x,icon:"volume-up",onClick:function(){return _("nttc_toggle_command_bold")},children:x?"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u043E":"\u0412\u044B\u043A\u043B\u044E\u0447\u0435\u043D\u043E"})})]})}),(0,e.jsx)(t.wn,{title:"\u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043D\u043D\u044B\u0435 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"\u0424\u043E\u0440\u043C\u0430\u0442 \u043E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u044F \u0434\u043E\u043B\u0436\u043D\u043E\u0441\u0442\u0435\u0439",children:(0,e.jsx)(t.$n,{selected:!!C,icon:"pencil-alt",onClick:function(){return _("nttc_job_indicator_type")},children:C||"\u041D\u0435 \u0437\u0430\u0434\u0430\u043D\u043E"})}),(0,e.jsx)(t.Ki.Item,{label:"\u041F\u0435\u0440\u0435\u0432\u043E\u0434 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0439",children:(0,e.jsx)(t.$n,{selected:!!I,icon:"globe",onClick:function(){return _("nttc_setting_language")},children:I||"\u041D\u0435 \u0437\u0430\u0434\u0430\u043D\u043E"})}),(0,e.jsx)(t.Ki.Item,{label:"\u0421\u0435\u0442\u0435\u0432\u043E\u0439 \u0438\u0434\u0435\u043D\u0442\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440",children:(0,e.jsx)(t.$n,{selected:!!P,icon:"server",onClick:function(){return _("network_id")},children:P||"\u041D\u0435 \u0437\u0430\u0434\u0430\u043D\u043E"})})]})}),(0,e.jsxs)(t.wn,{title:"\u0422\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u043E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u043D\u0438\u0435",children:[(0,e.jsx)(t.$n,{icon:"file-import",onClick:function(){return _("import")},children:"\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u043A\u043E\u043D\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044E"}),(0,e.jsx)(t.$n,{icon:"file-export",onClick:function(){return _("export")},children:"\u0412\u044B\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u043A\u043E\u043D\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044E"})]})]})},f=function(d){var v=(0,s.Oc)(),_=v.act,l=v.data,c=l.link_password,h=l.relay_entries;return(0,e.jsxs)(t.wn,{title:"\u041F\u0440\u0438\u0432\u044F\u0437\u043A\u0430 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432",children:[(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"\u041F\u0430\u0440\u043E\u043B\u044C \u0434\u043B\u044F \u043F\u0440\u0438\u0432\u044F\u0437\u043A\u0438",children:(0,e.jsx)(t.$n,{selected:!!c,icon:"lock",onClick:function(){return _("change_password")},children:c||"\u041D\u0435 \u0437\u0430\u0434\u0430\u043D\u043E"})})}),(0,e.jsxs)(t.XI,{m:"0.5rem",children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{children:"\u0421\u0435\u0442\u0435\u0432\u043E\u0439 \u0430\u0434\u0440\u0435\u0441"}),(0,e.jsx)(t.XI.Cell,{children:"\u0421\u0435\u0442\u0435\u0432\u043E\u0439 \u0438\u0434\u0435\u043D\u0442\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440"}),(0,e.jsx)(t.XI.Cell,{children:"\u0421\u0435\u043A\u0442\u043E\u0440"}),(0,e.jsx)(t.XI.Cell,{children:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435"}),(0,e.jsx)(t.XI.Cell,{children:"\u041E\u0442\u0432\u044F\u0437\u0430\u0442\u044C"})]}),h.map(function(g){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:g.addr}),(0,e.jsx)(t.XI.Cell,{children:g.net_id}),(0,e.jsx)(t.XI.Cell,{children:g.sector}),(0,e.jsx)(t.XI.Cell,{children:g.status?(0,e.jsx)(t.az,{color:"green",children:"\u0412 \u0441\u0435\u0442\u0438"}):(0,e.jsx)(t.az,{color:"red",children:"\u041D\u0435 \u0432 \u0441\u0435\u0442\u0438"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"unlink",onClick:function(){return _("unlink",{addr:g.addr})},children:"\u041E\u0442\u0432\u044F\u0437\u0430\u0442\u044C"})})]},g.addr)})]})]})},m=function(d){var v=(0,s.Oc)(),_=v.act,l=v.data,c=l.filtered_users;return(0,e.jsx)(t.wn,{title:"\u0427\u0451\u0440\u043D\u044B\u0439 \u0441\u043F\u0438\u0441\u043E\u043A \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u0435\u0439",buttons:(0,e.jsx)(t.$n,{icon:"user-plus",onClick:function(){return _("add_filter")},children:"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F"}),children:(0,e.jsxs)(t.XI,{m:"0.5rem",children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{style:{width:"90%"},children:"\u041F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C"}),(0,e.jsx)(t.XI.Cell,{style:{width:"10%"},children:"\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u044F"})]}),c.map(function(h){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:h}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"user-times",onClick:function(){return _("remove_filter",{user:h})},children:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C"})})]},h)})]})})}},4416:(q,S,r)=>{"use strict";r.r(S),r.d(S,{PowerMonitor:()=>d,PowerMonitorMainContent:()=>v});var e=r(1131),s=r(1859),n=r(5070),t=r(9818),a=r(9845),b=r(360),O=r(7003),y=r(5180),u=r(3521);function f(){return f=Object.assign||function(g){for(var p=1;p50?"battery-half":"battery-quarter")||p==="C"&&"bolt"||p==="F"&&"battery-full"||p==="M"&&"slash",color:p==="N"&&(j>50?"yellow":"red")||p==="C"&&"yellow"||p==="F"&&"green"||p==="M"&&"orange"}),(0,e.jsx)(y.az,{inline:!0,width:"36px",textAlign:"right",children:(0,t.Mg)(j)+"%"})]})},h=function(g){var p,j,x=g.status;switch(x){case"AOn":p=!0,j=!0;break;case"AOff":p=!0,j=!1;break;case"On":p=!1,j=!0;break;case"Off":p=!1,j=!1;break}var C="\u0431\u0430\u0437\u0430";return(0,e.jsx)(y.BK,{color:j?"good":"bad",content:p?"A":"M",tooltip:C})}},4446:(q,S,r)=>{"use strict";r.r(S),r.d(S,{pai_bioscan:()=>t});var e=r(1131),s=r(360),n=r(5180),t=function(a){var b=(0,s.Oc)().data,O=b.app_data,y=O.holder,u=O.dead,f=O.health,m=O.brute,d=O.oxy,v=O.tox,_=O.burn,l=O.reagents,c=O.addictions,h=O.fractures,g=O.internal_bleeding;return y?(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Status",children:u?(0,e.jsx)(n.az,{bold:!0,color:"red",children:"Dead"}):(0,e.jsx)(n.az,{bold:!0,color:"green",children:"Alive"})}),(0,e.jsx)(n.Ki.Item,{label:"Health",children:(0,e.jsx)(n.z2,{minValue:0,maxValue:1,value:f/100,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.jsx)(n.Ki.Item,{label:"Oxygen Damage",children:(0,e.jsx)(n.az,{color:"blue",children:d})}),(0,e.jsx)(n.Ki.Item,{label:"Toxin Damage",children:(0,e.jsx)(n.az,{color:"green",children:v})}),(0,e.jsx)(n.Ki.Item,{label:"Burn Damage",children:(0,e.jsx)(n.az,{color:"orange",children:_})}),(0,e.jsx)(n.Ki.Item,{label:"Brute Damage",children:(0,e.jsx)(n.az,{color:"red",children:m})}),(0,e.jsx)(n.Ki.Item,{label:"Reagents",children:l?l.map(function(p){return(0,e.jsx)(n.Ki.Item,{label:p.title,children:(0,e.jsxs)(n.az,{color:p.overdosed?"bad":"good",children:[" ",p.volume," ",p.overdosed?"OVERDOSED":""," "]})},p.id)}):"Reagents not found."}),(0,e.jsx)(n.Ki.Item,{label:"Addictions",children:c?c.map(function(p){return(0,e.jsx)(n.Ki.Item,{label:p.addiction_name,children:(0,e.jsxs)(n.az,{color:"bad",children:[" Stage: ",p.stage," "]})},p.id)}):(0,e.jsx)(n.az,{color:"good",children:"Addictions not found."})}),(0,e.jsx)(n.Ki.Item,{label:"Fractures",children:(0,e.jsxs)(n.az,{color:h?"bad":"good",children:["Fractures ",h?"":"not"," detected."]})}),(0,e.jsx)(n.Ki.Item,{label:"Internal Bleedings",children:(0,e.jsxs)(n.az,{color:g?"bad":"good",children:["Internal Bleedings ",g?"":"not"," detected."]})})]}):(0,e.jsx)(n.az,{color:"red",children:"Error: No biological host found."})}},4452:(q,S,r)=>{"use strict";r.r(S),r.d(S,{AtmosAlertConsole:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(b){var O=(0,s.Oc)(),y=O.act,u=O.data,f=u.priority||[],m=u.minor||[],d=u.mode||{};return(0,e.jsx)(t.p8,{width:350,height:300,children:(0,e.jsx)(t.p8.Content,{scrollable:!0,children:(0,e.jsx)(n.wn,{title:"Alarms",children:(0,e.jsxs)("ul",{children:[f.length===0&&(0,e.jsx)("li",{className:"color-good",children:"No Priority Alerts"}),f.map(function(v){return(0,e.jsx)("li",{children:(0,e.jsx)(n.$n,{m:"1px",icon:"times",color:"bad",onClick:function(){return y("clear",{zone:v})},children:v})},v)}),m.length===0&&(0,e.jsx)("li",{className:"color-good",children:"No Minor Alerts"}),m.map(function(v){return(0,e.jsx)("li",{children:(0,e.jsx)(n.$n,{m:"1px",icon:"times",color:"average",onClick:function(){return y("clear",{zone:v})},children:v})},v)}),Object.keys(d).length===0&&(0,e.jsx)("li",{className:"color-good",children:"All Areas Filtering"}),Object.keys(d).map(function(v,_){return(0,e.jsxs)("li",{className:"color-good",children:[v," mode is ",d[v]]},_)})]})})})})}},4468:(q,S,r)=>{"use strict";r.r(S),r.d(S,{pda_main_menu:()=>t});var e=r(1131),s=r(360),n=r(5180),t=function(a){var b=(0,s.Oc)(),O=b.act,y=b.data,u=y.owner,f=y.ownjob,m=y.idInserted,d=y.categories,v=y.pai,_=y.notifying;return(0,e.jsxs)(n.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.wn,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Owner",color:"average",children:[u,", ",f]}),(0,e.jsx)(n.Ki.Item,{label:"ID",children:(0,e.jsx)(n.$n,{icon:"sync",disabled:!m,onClick:function(){return O("UpdateInfo")},children:"Update PDA Info"})})]})})}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.wn,{title:"Functions",children:(0,e.jsx)(n.Ki,{children:d.map(function(l){var c=y.apps[l];return!c||!c.length?null:(0,e.jsx)(n.Ki.Item,{label:l,children:c.map(function(h){return(0,e.jsx)(n.$n,{icon:h.uid in _?h.notify_icon:h.icon,iconSpin:h.uid in _,color:h.uid in _?"red":"transparent",onClick:function(){return O("StartProgram",{program:h.uid})},children:h.name},h.uid)})},l)})})})}),(0,e.jsx)(n.BJ.Item,{children:!!v&&(0,e.jsxs)(n.wn,{title:"pAI",children:[(0,e.jsx)(n.$n,{fluid:!0,icon:"cog",onClick:function(){return O("pai",{option:1})},children:"Configuration"}),(0,e.jsx)(n.$n,{fluid:!0,icon:"eject",onClick:function(){return O("pai",{option:2})},children:"Eject pAI"})]})})]})}},4515:(q,S,r)=>{"use strict";r.r(S),r.d(S,{MainMenu:()=>b});var e=r(1131),s=r(360),n=r(5180),t=r(2905),a=r(4904),b=function(O){var y=(0,s.Oc)().data,u=y.disk_type,f=y.linked_destroy,m=y.linked_lathe,d=y.linked_imprinter,v=y.tech_levels,_=y.disk_only;return(0,e.jsxs)(n.wn,{title:"\u0413\u043B\u0430\u0432\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",children:[(0,e.jsxs)(n.so,{className:"RndConsole__MainMenu__Buttons",direction:"column",align:"flex-start",children:[(0,e.jsx)(t.RndNavButton,{disabled:!u,menu:a.MENU.DISK,submenu:a.SUBMENU.MAIN,icon:"save",children:"\u041E\u043F\u0435\u0440\u0430\u0446\u0438\u0438 \u0441 \u0434\u0438\u0441\u043A\u0435\u0442\u0430\u043C\u0438"}),!_&&(0,e.jsx)(t.RndNavButton,{disabled:!f,menu:a.MENU.DESTROY,submenu:a.SUBMENU.MAIN,icon:"unlink",children:"\u0414\u0435\u0441\u0442\u0440\u0443\u043A\u0442\u0438\u0432\u043D\u044B\u0439 \u0430\u043D\u0430\u043B\u0438\u0437\u0430\u0442\u043E\u0440"}),!_&&(0,e.jsx)(t.RndNavButton,{disabled:!m,menu:a.MENU.LATHE,submenu:a.SUBMENU.MAIN,icon:"print",children:"\u041F\u0440\u043E\u0442\u043E\u043B\u0430\u0442"}),!_&&(0,e.jsx)(t.RndNavButton,{disabled:!d,menu:a.MENU.IMPRINTER,submenu:a.SUBMENU.MAIN,icon:"print",children:"\u041F\u0440\u0438\u043D\u0442\u0435\u0440 \u043F\u043B\u0430\u0442"}),(0,e.jsx)(t.RndNavButton,{menu:a.MENU.SETTINGS,submenu:a.SUBMENU.MAIN,icon:"cog",children:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438"})]}),(0,e.jsx)(n.az,{mt:"12px"}),(0,e.jsx)("h3",{children:"\u041B\u043E\u043A\u0430\u043B\u044C\u043D\u044B\u0435 \u0443\u0440\u043E\u0432\u043D\u0438 \u0442\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0439:"}),(0,e.jsx)(n.Ki,{children:v.map(function(l){var c=l.name,h=l.level,g=l.desc;return(0,e.jsx)(n.Ki.Item,{label:(0,e.jsxs)(n.$n,{color:"transparent",tooltip:g,children:[c,":"]}),children:h},c)})})]})}},4560:(q,S,r)=>{"use strict";r.r(S),r.d(S,{CentcomPodLauncher:()=>_});var e=r(1131),s=r(5180),n=r(3521),t=r(3500),a=r(9690),b=r(1236),O=r(2293),y=r(4954),u=r(6834),f=r(6507),m=r(9762),d=r(4076),v=r(6178),_=function(l){var c=(0,t.useCompact)(),h=c[0];return(0,e.jsx)(n.p8,{height:h?360:440,title:"\u041C\u0435\u043D\u044E \u043A\u0430\u043F\u0441\u0443\u043B \u0441\u043D\u0430\u0431\u0436\u0435\u043D\u0438\u044F",width:h?460:750,children:(0,e.jsx)(n.p8.Content,{children:(0,e.jsxs)(s.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(s.BJ.Item,{shrink:0,children:(0,e.jsx)(y.PodStatusPage,{})}),(0,e.jsx)(s.BJ.Item,{grow:!0,children:(0,e.jsxs)(s.BJ,{fill:!0,children:[(0,e.jsx)(s.BJ.Item,{grow:!0,shrink:0,basis:"14.1em",children:(0,e.jsxs)(s.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(s.BJ.Item,{grow:!0,children:(0,e.jsx)(u.PresetsPage,{})}),(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(f.ReverseMenu,{})}),(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(s.wn,{children:(0,e.jsx)(b.PodLaunch,{})})})]})}),!h&&(0,e.jsx)(s.BJ.Item,{grow:3,children:(0,e.jsx)(v.ViewTabHolder,{})}),(0,e.jsx)(s.BJ.Item,{basis:"9em",children:(0,e.jsxs)(s.BJ,{fill:!0,vertical:!0,direction:"column",children:[(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(a.PodBays,{})}),(0,e.jsx)(s.BJ.Item,{grow:!0,children:(0,e.jsx)(d.Timing,{})}),!h&&(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(O.PodSounds,{})})]})}),(0,e.jsx)(s.BJ.Item,{basis:"11em",children:(0,e.jsx)(m.StylePage,{})})]})})]})})})}},4576:(q,S,r)=>{"use strict";r.r(S),r.d(S,{Safe:()=>O});var e=r(1131),s=r(1243),n=r(7003),t=r(360),a=r(5180),b=r(3521),O=function(m){var d=(0,t.Oc)().data,v=d.dial,_=d.open;return(0,e.jsx)(b.p8,{theme:"safe",width:600,height:800,children:(0,e.jsxs)(b.p8.Content,{children:[(0,e.jsxs)(a.az,{className:"Safe--engraving",children:[(0,e.jsx)(y,{}),(0,e.jsxs)(a.az,{children:[(0,e.jsx)(a.az,{className:"Safe--engraving--hinge",top:"25%"}),(0,e.jsx)(a.az,{className:"Safe--engraving--hinge",top:"75%"})]}),(0,e.jsx)(a.In,{className:"Safe--engraving--arrow",name:"long-arrow-alt-down",size:3}),(0,e.jsx)("br",{}),_?(0,e.jsx)(u,{}):(0,e.jsx)(a._V,{src:(0,s.l)("safe_dial.png"),fixBlur:!0,style:{transform:"rotate(-"+3.6*v+"deg)",zIndex:0}})]}),!_&&(0,e.jsx)(f,{})]})})},y=function(m){var d=(0,t.Oc)(),v=d.act,_=d.data,l=_.dial,c=_.open,h=_.locked,g=function(p,j){return(0,e.jsx)(a.$n,{disabled:c||j&&!h,icon:"arrow-"+(j?"right":"left"),iconPosition:j?"right":"",onClick:function(){return v(j?"turnleft":"turnright",{num:p})},style:{zIndex:10},children:p},p)};return(0,e.jsxs)(a.az,{className:"Safe--dialer",children:[(0,e.jsx)(a.$n,{disabled:h,icon:c?"lock":"lock-open",mb:"0.5rem",onClick:function(){return v("open")},children:c?"\u0417\u0430\u043A\u0440\u044B\u0442\u044C":"\u041E\u0442\u043A\u0440\u044B\u0442\u044C"}),(0,e.jsx)("br",{}),(0,e.jsx)(a.az,{position:"absolute",children:[g(50),g(10),g(1)]}),(0,e.jsx)(a.az,{className:"Safe--dialer--right",position:"absolute",right:"5px",children:[g(1,!0),g(10,!0),g(50,!0)]}),(0,e.jsx)(a.az,{className:"Safe--dialer--number",children:l})]})},u=function(m){var d=(0,t.Oc)(),v=d.act,_=d.data,l=_.contents;return(0,e.jsx)(a.az,{className:"Safe--contents",overflow:"auto",children:l.map(function(c,h){return(0,e.jsxs)(n.Fragment,{children:[(0,e.jsxs)(a.$n,{mb:"0.5rem",onClick:function(){return v("retrieve",{index:h+1})},children:[(0,e.jsx)(a._V,{src:c.sprite+".png",verticalAlign:"middle",ml:"-6px",mr:"0.5rem"}),c.name]}),(0,e.jsx)("br",{})]},c.name)})})},f=function(m){return(0,e.jsxs)(a.wn,{className:"Safe--help",title:"\u0418\u043D\u0441\u0442\u0440\u0443\u043A\u0446\u0438\u044F \u043F\u043E \u043E\u0442\u043A\u0440\u044B\u0442\u0438\u044E \u0441\u0435\u0439\u0444\u0430. (\u043F\u043E\u0442\u043E\u043C\u0443 \u0447\u0442\u043E \u0432\u044B \u0432\u0441\u0451 \u0432\u0440\u0435\u043C\u044F \u0437\u0430\u0431\u044B\u0432\u0430\u0435\u0442\u0435)",children:[(0,e.jsxs)(a.az,{children:["1. \u041F\u043E\u0432\u0435\u0440\u043D\u0438\u0442\u0435 \u0446\u0438\u0444\u0435\u0440\u0431\u043B\u0430\u0442 \u0432\u043B\u0435\u0432\u043E \u043D\u0430 \u043F\u0435\u0440\u0432\u0443\u044E \u0446\u0438\u0444\u0440\u0443.",(0,e.jsx)("br",{}),"2. \u041F\u043E\u0432\u0435\u0440\u043D\u0438\u0442\u0435 \u0446\u0438\u0444\u0435\u0440\u0431\u043B\u0430\u0442 \u0432\u043F\u0440\u0430\u0432\u043E \u043D\u0430 \u0432\u0442\u043E\u0440\u0443\u044E \u0446\u0438\u0444\u0440\u0443.",(0,e.jsx)("br",{}),"3. \u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0430\u0439\u0442\u0435 \u0442\u0430\u043A \u0434\u043B\u044F \u043A\u0430\u0436\u0434\u043E\u0433\u043E \u0447\u0438\u0441\u043B\u0430, \u043F\u043E\u0432\u043E\u0440\u0430\u0447\u0438\u0432\u0430\u044F \u0441\u043D\u0430\u0447\u0430\u043B\u043E \u043D\u0430\u043B\u0435\u0432\u043E, \u0437\u0430\u0442\u0435\u043C \u043D\u0430\u043F\u0440\u0430\u0432\u043E.",(0,e.jsx)("br",{}),"4. \u041E\u0442\u043A\u0440\u043E\u0439\u0442\u0435 \u0441\u0435\u0439\u0444."]}),(0,e.jsx)(a.az,{bold:!0,children:"\u0427\u0442\u043E\u0431\u044B \u043F\u043E\u043B\u043D\u043E\u0441\u0442\u044C\u044E \u0437\u0430\u043F\u0435\u0440\u0435\u0442\u044C \u0441\u0435\u0439\u0444, \u043F\u043E\u0441\u043B\u0435 \u0437\u0430\u043A\u0440\u044B\u0442\u0438\u044F \u043F\u043E\u0432\u0435\u0440\u043D\u0438\u0442\u0435 \u0446\u0438\u0444\u0435\u0440\u0431\u043B\u0430\u0442 \u0432\u043B\u0435\u0432\u043E."})]})}},4623:(q,S,r)=>{"use strict";r.r(S),r.d(S,{DataDiskMenu:()=>_});var e=r(1131),s=r(360),n=r(5180),t=r(2905),a=r(4904),b="design",O="tech",y=function(l){var c=(0,s.Oc)(),h=c.data,g=c.act,p=h.disk_data;return p?(0,e.jsxs)(n.az,{children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Name",children:p.name}),(0,e.jsx)(n.Ki.Item,{label:"Level",children:p.level}),(0,e.jsx)(n.Ki.Item,{label:"Description",children:p.desc})]}),(0,e.jsxs)(n.az,{mt:"10px",children:[(0,e.jsx)(n.$n,{icon:"arrow-up",onClick:function(){return g("updt_tech")},children:"\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0432 \u0431\u0430\u0437\u0443 \u0434\u0430\u043D\u043D\u044B\u0445"}),(0,e.jsx)(n.$n,{icon:"trash",onClick:function(){return g("clear_tech")},children:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u0434\u0438\u0441\u043A\u0435\u0442\u0443"}),(0,e.jsx)(m,{})]})]}):null},u=function(l){var c=(0,s.Oc)(),h=c.data,g=c.act,p=h.disk_data;if(!p)return null;var j=p.name,x=p.lathe_types,C=p.materials,I=x.join(", ");return(0,e.jsxs)(n.az,{children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435",children:j}),I?(0,e.jsx)(n.Ki.Item,{label:"\u0421\u043E\u0432\u043C\u0435\u0441\u0442\u0438\u043C\u043E\u0435 \u043E\u0431\u043E\u0440\u0443\u0434\u043E\u0432\u0430\u043D\u0438\u0435",children:I}):null,(0,e.jsx)(n.Ki.Item,{label:"\u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044F \u043C\u0430\u0442\u0435\u0440\u0438\u0430\u043B\u043E\u0432"})]}),C.map(function(P){return(0,e.jsxs)(n.az,{children:["- ",(0,e.jsx)("span",{style:{textTransform:"capitalize"},children:P.name})," x ",P.amount]},P.name)}),(0,e.jsxs)(n.az,{mt:"10px",children:[(0,e.jsx)(n.$n,{icon:"arrow-up",onClick:function(){return g("updt_design")},children:"\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0432 \u0431\u0430\u0437\u0443 \u0434\u0430\u043D\u043D\u044B\u0445"}),(0,e.jsx)(n.$n,{icon:"trash",onClick:function(){return g("clear_design")},children:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u0434\u0438\u0441\u043A\u0435\u0442\u0443"}),(0,e.jsx)(m,{})]})]})},f=function(l){var c=(0,s.Oc)().data,h=c.disk_type;return(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.az,{children:"\u0414\u0438\u0441\u043A\u0435\u0442\u0430 \u043F\u0443\u0441\u0442\u0430."}),(0,e.jsxs)(n.az,{mt:"10px",children:[(0,e.jsx)(t.RndNavButton,{submenu:a.SUBMENU.DISK_COPY,icon:"arrow-down",content:h===O?"\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0442\u0435\u0445. \u0434\u0430\u043D\u043D\u044B\u0435 \u043D\u0430 \u0434\u0438\u0441\u043A\u0435\u0442\u0443":"\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0448\u0430\u0431\u043B\u043E\u043D \u043F\u0435\u0447\u0430\u0442\u0438 \u043D\u0430 \u0434\u0438\u0441\u043A\u0435\u0442\u0443"}),(0,e.jsx)(m,{})]})]})},m=function(l){var c=(0,s.Oc)(),h=c.data,g=c.act,p=h.disk_type;return p?(0,e.jsx)(n.$n,{icon:"eject",onClick:function(){var j=p===O?"eject_tech":"eject_design";g(j)},children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u0434\u0438\u0441\u043A\u0435\u0442\u0443"}):null},d=function(l){var c=(0,s.Oc)(),h=c.data,g=h.disk_data,p=h.disk_type,j=function(){if(!g)return(0,e.jsx)(f,{});switch(p){case b:return(0,e.jsx)(u,{});case O:return(0,e.jsx)(y,{});default:return null}};return(0,e.jsx)(n.wn,{title:"\u0421\u043E\u0434\u0435\u0440\u0436\u0438\u043C\u043E\u0435 \u0434\u0438\u0441\u043A\u0435\u0442\u044B",children:j()})},v=function(l){var c=(0,s.Oc)(),h=c.data,g=c.act,p=h.disk_type,j=h.to_copy;return(0,e.jsx)(n.wn,{children:(0,e.jsx)(n.az,{overflowY:"auto",overflowX:"hidden",maxHeight:"450px",children:(0,e.jsx)(n.Ki,{children:j.sort(function(x,C){return x.name.localeCompare(C.name)}).map(function(x){var C=x.name,I=x.id;return(0,e.jsx)(n.Ki.Item,{label:C,children:(0,e.jsx)(n.$n,{icon:"arrow-down",onClick:function(){p===O?g("copy_tech",{id:I}):g("copy_design",{id:I})},children:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043D\u0430 \u0434\u0438\u0441\u043A\u0435\u0442\u0443"})},I)})})})})},_=function(l){var c=(0,s.Oc)().data,h=c.disk_type;return h?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.RndRoute,{submenu:a.SUBMENU.MAIN,render:function(){return(0,e.jsx)(d,{})}}),(0,e.jsx)(t.RndRoute,{submenu:a.SUBMENU.DISK_COPY,render:function(){return(0,e.jsx)(v,{})}})]}):null}},4722:(q,S,r)=>{"use strict";r.r(S),r.d(S,{DeconstructionMenu:()=>t});var e=r(1131),s=r(360),n=r(5180),t=function(a){var b=(0,s.Oc)(),O=b.data,y=b.act,u=O.loaded_item,f=O.linked_destroy;return f?u?(0,e.jsxs)(n.wn,{noTopPadding:!0,title:"\u041C\u0435\u043D\u044E \u0440\u0430\u0437\u0431\u043E\u0440\u043A\u0438",children:[(0,e.jsxs)(n.az,{mt:"10px",children:[(0,e.jsx)(n.Hg,{icon:u.icon,icon_state:u.icon_state,style:{verticalAlign:"middle",width:"64px",margin:"0px",marginLeft:"0px"}}),u.name]}),(0,e.jsx)(n.az,{mt:"10px",children:(0,e.jsx)("h3",{children:"\u0422\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043F\u043E\u0442\u0435\u043D\u0446\u0438\u0430\u043B:"})}),(0,e.jsx)(n.Ki,{children:u.origin_tech.map(function(m){return(0,e.jsxs)(n.Ki.Item,{label:"- "+m.name,children:[m.object_level," ",m.current_level?(0,e.jsxs)(e.Fragment,{children:["(\u041D\u0430 \u0442\u0435\u043A\u0443\u0449\u0438\u0439 \u043C\u043E\u043C\u0435\u043D\u0442: ",m.current_level,")"]}):null]},m.name)})}),(0,e.jsx)(n.az,{mt:"10px",children:(0,e.jsx)("h3",{children:"\u041E\u043F\u0446\u0438\u0438:"})}),(0,e.jsx)(n.$n,{icon:"unlink",onClick:function(){y("deconstruct")},children:"\u0420\u0430\u0437\u043E\u0431\u0440\u0430\u0442\u044C \u043E\u0431\u044A\u0435\u043A\u0442"}),(0,e.jsx)(n.$n,{icon:"eject",onClick:function(){y("eject_item")},children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u043E\u0431\u044A\u0435\u043A\u0442"})]}):(0,e.jsx)(n.wn,{title:"\u041C\u0435\u043D\u044E \u0440\u0430\u0437\u0431\u043E\u0440\u043A\u0438",children:(0,e.jsx)("b",{children:"\u041A\u0430\u043C\u0435\u0440\u0430 \u0440\u0430\u0437\u0431\u043E\u0440\u043A\u0438 \u043F\u0443\u0441\u0442\u0430."})}):(0,e.jsx)(n.az,{children:"\u0414\u0415\u0421\u0422\u0420\u0423\u041A\u0422\u0418\u0412\u041D\u042B\u0419 \u0410\u041D\u0410\u041B\u0418\u0417\u0410\u0422\u041E\u0420 \u041D\u0415 \u041F\u041E\u0414\u041A\u041B\u042E\u0427\u0401\u041D"})}},4759:(q,S,r)=>{"use strict";r.r(S),r.d(S,{DNAModifier:()=>f});var e=r(1131),s=r(360),n=r(9845),t=r(5180),a=r(3521),b=r(538),O=[["good","\u041D\u043E\u0440\u043C\u0430"],["average","\u041A\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435"],["bad","\u0417\u0430\u0444\u0438\u043A\u0441\u0438\u0440\u043E\u0432\u0430\u043D\u0430 \u0441\u043C\u0435\u0440\u0442\u044C"]],y=[["ui","\u041C\u043E\u0434\u0438\u0444\u0438\u043A\u0430\u0446\u0438\u044F \u0423\u0418","dna"],["se","\u041C\u043E\u0434\u0438\u0444\u0438\u043A\u0430\u0446\u0438\u044F \u0421\u0424","dna"],["buffer","\u0411\u0443\u0444\u0435\u0440 \u0434\u0430\u043D\u043D\u044B\u0445","syringe"],["rejuvenators","\u0425\u0438\u043C\u0438\u043A\u0430\u0442\u044B","flask"]],u=[5,10,20,30,50],f=function(C){var I=(0,s.Oc)().data,P=I.irradiating,M=I.dnaBlockSize,B=I.occupant,w=!B.isViableSubject||!B.uniqueIdentity||!B.structuralEnzymes,T;return P&&(T=(0,e.jsx)(j,{duration:P})),(0,e.jsxs)(a.p8,{width:660,height:775,children:[(0,e.jsx)(b.ComplexModal,{}),T,(0,e.jsx)(a.p8.Content,{children:(0,e.jsxs)(t.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(m,{isDNAInvalid:w})}),(0,e.jsx)(t.BJ.Item,{grow:!0,children:(0,e.jsx)(d,{isDNAInvalid:w,dnaBlockSize:M})})]})})]})},m=function(C){var I=C.isDNAInvalid,P=(0,s.Oc)(),M=P.act,B=P.data,w=B.locked,T=B.hasOccupant,K=B.occupant;return(0,e.jsx)(t.wn,{title:"\u0421\u0443\u0431\u044A\u0435\u043A\u0442",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.az,{color:"label",inline:!0,mr:"0.5rem",children:"\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u044B\u0439 \u0437\u0430\u043C\u043E\u043A:"}),(0,e.jsx)(t.$n,{disabled:!T,selected:w,icon:w?"toggle-on":"toggle-off",onClick:function(){return M("toggleLock")},children:w?"\u0412\u043A\u043B\u044E\u0447\u0451\u043D":"\u0412\u044B\u043A\u043B\u044E\u0447\u0435\u043D"}),(0,e.jsx)(t.$n,{disabled:!T||w,icon:"user-slash",onClick:function(){return M("ejectOccupant")},children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u0441\u0443\u0431\u044A\u0435\u043A\u0442"})]}),children:T?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.az,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"\u0418\u043C\u044F",children:K.name}),(0,e.jsx)(t.Ki.Item,{label:"\u041E\u0446\u0435\u043D\u043A\u0430 \u0437\u0434\u043E\u0440\u043E\u0432\u044C\u044F",children:(0,e.jsx)(t.z2,{minValue:K.minHealth,maxValue:K.maxHealth,value:K.health/K.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.jsx)(t.Ki.Item,{label:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",color:O[K.stat][0],children:O[K.stat][1]}),(0,e.jsx)(t.Ki.Divider,{})]})}),I?(0,e.jsxs)(t.az,{color:"bad",children:[(0,e.jsx)(t.In,{name:"exclamation-circle"}),"\xA0 \u041D\u0435\u043F\u043E\u0434\u0445\u043E\u0434\u044F\u0449\u0438\u0439 \u0441\u0443\u0431\u044A\u0435\u043A\u0442. \u041F\u0440\u043E\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043C\u0430\u043D\u0438\u043F\u0443\u043B\u044F\u0446\u0438\u0439 \u0441\u043E \u0441\u0442\u0440\u0443\u043A\u0442\u0443\u0440\u043E\u0439 \u0414\u041D\u041A \u043D\u0435\u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E."]}):(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"\u0420\u0430\u0434\u0438\u0430\u0446\u0438\u043E\u043D\u043D\u043E\u0435 \u043F\u043E\u0440\u0430\u0436\u0435\u043D\u0438\u0435",children:(0,e.jsx)(t.z2,{minValue:0,maxValue:100,value:K.radiationLevel/100,color:"average"})}),(0,e.jsx)(t.Ki.Item,{label:"\u0423\u043D\u0438\u043A\u0430\u043B\u044C\u043D\u044B\u0435 \u0424\u0435\u0440\u043C\u0435\u043D\u0442\u044B",children:B.occupant.uniqueEnzymes?B.occupant.uniqueEnzymes:(0,e.jsxs)(t.az,{color:"bad",children:[(0,e.jsx)(t.In,{name:"exclamation-circle"}),"\xA0 \u041D/\u0414"]})})]})]}):(0,e.jsx)(t.az,{color:"label",children:"\u041A\u0430\u043F\u0441\u0443\u043B\u0430 \u0414\u041D\u041A-\u043C\u043E\u0434\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440\u0430 \u043F\u0443\u0441\u0442\u0430."})})},d=function(C){var I=C.isDNAInvalid,P=C.dnaBlockSize,M=(0,s.Oc)(),B=M.act,w=M.data,T=w.selectedMenuKey,K=w.hasOccupant;if(K){if(I)return(0,e.jsx)(t.wn,{fill:!0,children:(0,e.jsx)(t.BJ,{fill:!0,children:(0,e.jsxs)(t.BJ.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.jsx)(t.In,{name:"user-slash",mb:"0.5rem",size:5}),(0,e.jsx)("br",{}),"\u041C\u0430\u043D\u0438\u043F\u0443\u043B\u044F\u0446\u0438\u0438 \u0441\u043E \u0441\u0442\u0440\u0443\u043A\u0442\u0443\u0440\u043E\u0439 \u0414\u041D\u041A \u0441\u0443\u0431\u044A\u0435\u043A\u0442\u0430 \u043D\u0435\u0432\u043E\u0437\u043C\u043E\u0436\u043D\u044B."]})})})}else return(0,e.jsx)(t.wn,{fill:!0,children:(0,e.jsx)(t.BJ,{fill:!0,children:(0,e.jsxs)(t.BJ.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.jsx)(t.In,{name:"user-slash",mb:"0.5rem",size:5}),(0,e.jsx)("br",{}),"\u041A\u0430\u043F\u0441\u0443\u043B\u0430 \u0414\u041D\u041A-\u043C\u043E\u0434\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440\u0430 \u043F\u0443\u0441\u0442\u0430."]})})});var R;return T==="ui"?R=(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(v,{dnaBlockSize:P}),(0,e.jsx)(l,{})]}):T==="se"?R=(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(_,{dnaBlockSize:P}),(0,e.jsx)(l,{})]}):T==="buffer"?R=(0,e.jsx)(c,{}):T==="rejuvenators"&&(R=(0,e.jsx)(p,{})),(0,e.jsxs)(t.wn,{fill:!0,children:[(0,e.jsx)(t.tU,{children:y.map(function(U,F){return(0,e.jsx)(t.tU.Tab,{icon:U[2],selected:T===U[0],onClick:function(){return B("selectMenuKey",{key:U[0]})},children:U[1]},F)})}),R]})},v=function(C){var I=C.dnaBlockSize,P=(0,s.Oc)(),M=P.act,B=P.data,w=B.selectedUIBlock,T=B.selectedUISubBlock,K=B.selectedUITarget,R=B.occupant;return(0,e.jsxs)(t.wn,{title:"\u041C\u043E\u0434\u0438\u0444\u0438\u043A\u0430\u0446\u0438\u044F \u0423\u043D\u0438\u043A\u0430\u043B\u044C\u043D\u044B\u0445 \u0418\u0434\u0435\u043D\u0442\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440\u043E\u0432",children:[(0,e.jsx)(x,{dnaString:R.uniqueIdentity,selectedBlock:w,selectedSubblock:T,blockSize:I,action:"selectUIBlock"}),(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0439 \u0431\u043B\u043E\u043A",children:(0,e.jsx)(t.N6,{minValue:1,maxValue:15,stepPixelSize:20,value:K,format:function(U){return U.toString(16).toUpperCase()},ml:"0",onChange:function(U,F){return M("changeUITarget",{value:F})}})})}),(0,e.jsx)(t.$n,{icon:"radiation",mt:"0.5rem",onClick:function(){return M("pulseUIRadiation")},children:"\u041E\u0431\u043B\u0443\u0447\u0438\u0442\u044C \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0439 \u0431\u043B\u043E\u043A"})]})},_=function(C){var I=C.dnaBlockSize,P=(0,s.Oc)(),M=P.act,B=P.data,w=B.selectedSEBlock,T=B.selectedSESubBlock,K=B.occupant;return(0,e.jsxs)(t.wn,{title:"\u041C\u043E\u0434\u0438\u0444\u0438\u043A\u0430\u0446\u0438\u044F \u0421\u0442\u0440\u0443\u043A\u0442\u0443\u0440\u043D\u044B\u0445 \u0424\u0435\u0440\u043C\u0435\u043D\u0442\u043E\u0432",children:[(0,e.jsx)(x,{dnaString:K.structuralEnzymes,selectedBlock:w,selectedSubblock:T,blockSize:I,action:"selectSEBlock"}),(0,e.jsx)(t.$n,{icon:"radiation",onClick:function(){return M("pulseSERadiation")},children:"\u041E\u0431\u043B\u0443\u0447\u0438\u0442\u044C \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0439 \u0431\u043B\u043E\u043A"})]})},l=function(C){var I=(0,s.Oc)(),P=I.act,M=I.data,B=M.radiationIntensity,w=M.radiationDuration;return(0,e.jsxs)(t.wn,{title:"\u0418\u0437\u043B\u0443\u0447\u0430\u0442\u0435\u043B\u044C \u0440\u0430\u0434\u0438\u0430\u0446\u0438\u0438",children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"\u041C\u043E\u0449\u043D\u043E\u0441\u0442\u044C",children:(0,e.jsx)(t.N6,{minValue:1,maxValue:10,stepPixelSize:20,value:B,ml:"0",onChange:function(T,K){return P("radiationIntensity",{value:K})}})}),(0,e.jsx)(t.Ki.Item,{label:"\u0414\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C",children:(0,e.jsx)(t.N6,{minValue:1,maxValue:20,stepPixelSize:10,unit:"s",value:w,ml:"0",onChange:function(T,K){return P("radiationDuration",{value:K})}})})]}),(0,e.jsx)(t.$n,{icon:"radiation",tooltip:"\u041C\u0443\u0442\u0438\u0440\u0443\u0435\u0442 \u0441\u043B\u0443\u0447\u0430\u0439\u043D\u044B\u0439 \u0431\u043B\u043E\u043A, \u0423\u0418 \u0438\u043B\u0438 \u0421\u0424 \u0441\u0443\u0431\u044A\u0435\u043A\u0442\u0430.",tooltipPosition:"top-start",mt:"0.5rem",onClick:function(){return P("pulseRadiation")},children:"\u041E\u0431\u043B\u0443\u0447\u0438\u0442\u044C \u0440\u0430\u0434\u0438\u0430\u0446\u0438\u0435\u0439"})]})},c=function(C){var I=(0,s.Oc)().data,P=I.buffers,M=P.map(function(B,w){return(0,e.jsx)(h,{id:w+1,name:"\u042F\u0447\u0435\u0439\u043A\u0430 \u0431\u0443\u0444\u0435\u0440\u0430 \u2116"+(w+1),buffer:B},w)});return(0,e.jsxs)(t.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(t.BJ.Item,{height:"75%",mt:1,children:(0,e.jsx)(t.wn,{fill:!0,scrollable:!0,title:"\u0411\u0443\u0444\u0435\u0440",children:M})}),(0,e.jsx)(t.BJ.Item,{height:"25%",children:(0,e.jsx)(g,{})})]})},h=function(C){var I=(0,s.Oc)(),P=I.act,M=I.data,B=C.id,w=C.name,T=C.buffer,K=M.isInjectorReady,R=w+(T.data?" - "+T.label:"");return(0,e.jsx)(t.az,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.jsxs)(t.wn,{title:R,mx:"0",lineHeight:"18px",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n.Confirm,{disabled:!T.data,icon:"trash",onClick:function(){return P("bufferOption",{option:"clear",id:B})},children:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C"}),(0,e.jsx)(t.$n,{disabled:!T.data,icon:"pen",onClick:function(){return P("bufferOption",{option:"changeLabel",id:B})},children:"\u041F\u0435\u0440\u0435\u0438\u043C\u0435\u043D\u043E\u0432\u0430\u0442\u044C"}),(0,e.jsx)(t.$n,{disabled:!T.data||!M.hasDisk,icon:"save",tooltip:"\u042D\u043A\u0441\u043F\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u0443\u044E \u044F\u0447\u0435\u0439\u043A\u0443 \u0431\u0443\u0444\u0435\u0440\u0430 \u043D\u0430 \u0434\u0438\u0441\u043A\u0435\u0442\u0443.",tooltipPosition:"bottom-start",onClick:function(){return P("bufferOption",{option:"saveDisk",id:B})},children:"\u042D\u043A\u0441\u043F\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C"})]}),children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"\u0417\u0430\u043F\u0438\u0441\u0430\u0442\u044C \u0432 \u0431\u0443\u0444\u0435\u0440",children:[(0,e.jsx)(t.$n,{icon:"arrow-circle-down",mb:"0",onClick:function(){return P("bufferOption",{option:"saveUI",id:B})},children:"\u0423\u0418 \u0441\u0443\u0431\u044A\u0435\u043A\u0442\u0430"}),(0,e.jsx)(t.$n,{icon:"arrow-circle-down",mb:"0",onClick:function(){return P("bufferOption",{option:"saveUIAndUE",id:B})},children:"\u0423\u0418 \u0438 \u0423\u0424 \u0441\u0443\u0431\u044A\u0435\u0442\u0430"}),(0,e.jsx)(t.$n,{icon:"arrow-circle-down",mb:"0",onClick:function(){return P("bufferOption",{option:"saveSE",id:B})},children:"\u0421\u0424 \u0441\u0443\u0431\u044A\u0435\u043A\u0442\u0430"}),(0,e.jsx)(t.$n,{disabled:!M.hasDisk||!M.disk.data,icon:"arrow-circle-down",mb:"0",onClick:function(){return P("bufferOption",{option:"loadDisk",id:B})},children:"\u0421 \u0434\u0438\u0441\u043A\u0435\u0442\u044B"})]}),!!T.data&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.Ki.Item,{label:"\u0421\u0443\u0431\u044A\u0435\u043A\u0442",children:T.owner||(0,e.jsx)(t.az,{color:"average",children:"\u041D\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E"})}),(0,e.jsxs)(t.Ki.Item,{label:"\u0422\u0438\u043F \u0434\u0430\u043D\u043D\u044B\u0445",children:[T.type==="ui"?"\u0423\u043D\u0438\u043A\u0430\u043B\u044C\u043D\u044B\u0435 \u0418\u0434\u0435\u043D\u0442\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440\u044B":"\u0421\u0442\u0440\u0443\u043A\u0442\u0443\u0440\u043D\u044B\u0435 \u0424\u0435\u0440\u043C\u0435\u043D\u0442\u044B",!!T.ue&&" \u0438 \u0423\u043D\u0438\u043A\u0430\u043B\u044C\u043D\u044B\u0435 \u0424\u0435\u0440\u043C\u0435\u043D\u0442\u044B"]}),(0,e.jsxs)(t.Ki.Item,{label:"\u041F\u0435\u0440\u0435\u0434\u0430\u0447\u0430 \u0434\u0430\u043D\u043D\u044B\u0445",children:[(0,e.jsx)(t.$n,{disabled:!K,icon:K?"syringe":"spinner",iconSpin:!K,mb:"0",onClick:function(){return P("bufferOption",{option:"createInjector",id:B})},children:"\u0418\u043D\u044A\u0435\u043A\u0442\u043E\u0440"}),(0,e.jsx)(t.$n,{disabled:!K,icon:K?"syringe":"spinner",iconSpin:!K,mb:"0",onClick:function(){return P("bufferOption",{option:"createInjector",id:B,block:1})},children:"\u0418\u043D\u044A\u0435\u043A\u0442\u043E\u0440 \u0431\u043B\u043E\u043A\u0430"}),(0,e.jsx)(t.$n,{icon:"user",mb:"0",onClick:function(){return P("bufferOption",{option:"transfer",id:B})},children:"\u0421\u0443\u0431\u044A\u0435\u043A\u0442"})]})]})]}),!T.data&&(0,e.jsx)(t.az,{color:"label",mt:"0.5rem",children:"\u0411\u0443\u0444\u0435\u0440 \u0434\u0430\u043D\u043D\u044B\u0445 \u043F\u0443\u0441\u0442."})]})})},g=function(C){var I=(0,s.Oc)(),P=I.act,M=I.data,B=M.hasDisk,w=M.disk;return(0,e.jsx)(t.wn,{title:"\u0414\u0438\u0441\u043A\u0435\u0442\u0430",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n.Confirm,{disabled:!B||!w.data,icon:"trash",onClick:function(){return P("wipeDisk")},children:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C"}),(0,e.jsx)(t.$n,{disabled:!B,icon:"eject",onClick:function(){return P("ejectDisk")},children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C"})]}),children:B?w.data?(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"\u042D\u0442\u0438\u043A\u0435\u0442\u043A\u0430",children:w.label?w.label:"\u041E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442"}),(0,e.jsx)(t.Ki.Item,{label:"\u0421\u0443\u0431\u044A\u0435\u043A\u0442",children:w.owner?w.owner:(0,e.jsx)(t.az,{color:"average",children:"\u041D\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E"})}),(0,e.jsxs)(t.Ki.Item,{label:"\u0422\u0438\u043F \u0434\u0430\u043D\u043D\u044B\u0445",children:[w.type==="ui"?"\u0423\u043D\u0438\u043A\u0430\u043B\u044C\u043D\u044B\u0435 \u0418\u0434\u0435\u043D\u0442\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440\u044B":"\u0421\u0442\u0440\u0443\u043A\u0442\u0443\u0440\u043D\u044B\u0435 \u0424\u0435\u0440\u043C\u0435\u043D\u0442\u044B",!!w.ue&&" \u0438 \u0423\u043D\u0438\u043A\u0430\u043B\u044C\u043D\u044B\u0435 \u0424\u0435\u0440\u043C\u0435\u043D\u0442\u044B"]})]}):(0,e.jsx)(t.az,{color:"label",children:"\u0414\u0430\u043D\u043D\u044B\u0435 \u043E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044E\u0442."}):(0,e.jsxs)(t.az,{color:"label",textAlign:"center",my:"1rem",children:[(0,e.jsx)(t.In,{name:"save-o",size:4}),(0,e.jsx)("br",{}),"\u0414\u0438\u0441\u043A\u0435\u0442\u0430 \u043D\u0435 \u0432\u0441\u0442\u0430\u0432\u043B\u0435\u043D\u0430."]})})},p=function(C){var I=(0,s.Oc)(),P=I.act,M=I.data,B=M.isBeakerLoaded,w=M.beakerVolume,T=M.beakerLabel;return(0,e.jsx)(t.wn,{fill:!0,title:"\u0425\u0438\u043C\u0438\u043A\u0430\u0442\u044B \u0438 \u0451\u043C\u043A\u043E\u0441\u0442\u0438",buttons:(0,e.jsx)(t.$n,{disabled:!B,icon:"eject",onClick:function(){return P("ejectBeaker")},children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u0451\u043C\u043A\u043E\u0441\u0442\u044C"}),children:B?(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"\u0412\u0432\u0435\u0441\u0442\u0438 \u0445\u0438\u043C\u0438\u043A\u0430\u0442\u044B",children:[u.map(function(K,R){return(0,e.jsx)(t.$n,{disabled:K>w,icon:"syringe",onClick:function(){return P("injectRejuvenators",{amount:K})},children:K},R)}),(0,e.jsx)(t.$n,{disabled:w<=0,icon:"syringe",onClick:function(){return P("injectRejuvenators",{amount:w})},children:"\u0412\u0441\u0435"})]}),(0,e.jsxs)(t.Ki.Item,{label:"\u0401\u043C\u043A\u043E\u0441\u0442\u044C",children:[(0,e.jsx)(t.az,{mb:"0.5rem",children:T||"\u042D\u0442\u0438\u043A\u0435\u0442\u043A\u0430 \u043E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442"}),w?(0,e.jsxs)(t.az,{color:"good",children:["\u041E\u0441\u0442\u0430\u043B\u043E\u0441\u044C: ",w,"u"]}):(0,e.jsx)(t.az,{color:"bad",children:"\u041F\u0443\u0441\u0442\u043E"})]})]}):(0,e.jsx)(t.BJ,{fill:!0,children:(0,e.jsxs)(t.BJ.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"label",children:[(0,e.jsxs)(t.In.Stack,{style:{transform:"translate(-30px, -50px)"},children:[(0,e.jsx)(t.In,{name:"flask",size:5,color:"silver"}),(0,e.jsx)(t.In,{name:"slash",size:5,color:"red",style:{transform:"translate(-10px, 0)"}})]}),(0,e.jsx)("br",{}),(0,e.jsx)("h3",{children:"\u0401\u043C\u043A\u043E\u0441\u0442\u044C \u043D\u0435 \u0432\u0441\u0442\u0430\u0432\u043B\u0435\u043D\u0430."})]})})})},j=function(C){return(0,e.jsxs)(t.Rr,{textAlign:"center",children:[(0,e.jsx)(t.In,{name:"spinner",size:5,spin:!0}),(0,e.jsx)("br",{}),(0,e.jsx)(t.az,{color:"average",children:(0,e.jsxs)("h1",{children:[(0,e.jsx)(t.In,{name:"radiation"}),"\xA0\u041E\u0431\u043B\u0443\u0447\u0435\u043D\u0438\u0435 \u0441\u0443\u0431\u044A\u0435\u043A\u0442\u0430\xA0",(0,e.jsx)(t.In,{name:"radiation"})]})}),(0,e.jsx)(t.az,{color:"label",children:(0,e.jsxs)("h3",{children:["\u0412 \u0442\u0435\u0447\u0435\u043D\u0438\u0438 ",C.duration," \u0441\u0435\u043A\u0443\u043D\u0434",(0,n.bl)(C.duration,"\u044B","","")]})})]})},x=function(C){for(var I=function($){for(var W=function(Q){var V=Q+1;Z.push((0,e.jsx)(t.$n,{selected:B===N&&w===V,mb:"0",onClick:function(){return P(K,{block:N,subblock:V})},children:R[$+Q]}))},N=$/T+1,Z=[],ie=0;ie{"use strict";r.r(S),r.d(S,{SubsystemRow:()=>b});var e=r(1131),s=r(5180),n=r(360),t=r(2335),a=r(7216),b=function(O){var y=(0,n.Oc)().act,u=O.max,f=O.setSelected,m=O.showBars,d=O.sortType,v=O.subsystem,_=v.can_fire,l=v.doesnt_fire,c=v.initialized,h=v.name,g=v.ref,p=t.SORTING_TYPES[d].propName,j=v[p],x="play",C="good",I="Operational";c?l?(x="check",C="grey",I="Does not fire"):_||(x="pause",C="grey",I="Paused"):(x="circle-exclamation",C="darkgreen",I="Not initialized");var P="",M={};return m?d===a.SortType.Cost?(P=""+j.toFixed(2)+"ms",M={average:[75,124.99],bad:[125,1/0]}):(P=""+j.toFixed(2)+"%",M={average:[10,24.99],bad:[25,1/0]}):P=j,(0,e.jsxs)(s.XI.Row,{children:[(0,e.jsx)(s.XI.Cell,{collapsing:!0,align:"center",verticalAlign:"top",children:(0,e.jsx)(s.m_,{content:I,children:(0,e.jsx)(s.In,{name:x,color:C})})}),(0,e.jsx)(s.XI.Cell,{onClick:function(){return f(v)},children:m?(0,e.jsxs)(s.z2,{value:j,maxValue:u,ranges:M,mb:.5,children:[h," ",P]}):(0,e.jsx)(s.$n,{fluid:!0,mb:.5,children:(0,e.jsxs)(s.BJ,{fill:!0,justify:"space-between",children:[(0,e.jsx)(s.BJ.Item,{children:h}),(0,e.jsx)(s.BJ.Item,{children:d!==a.SortType.Name&&P})]})})}),(0,e.jsx)(s.XI.Cell,{collapsing:!0,verticalAlign:"top",children:(0,e.jsx)(s.$n,{icon:"wrench",tooltip:"View Variables",onClick:function(){y("view_variables",{ref:g})}})})]})}},4817:(q,S)=>{"use strict";S.__esModule=!0,S.default=n;var r=/[\u0300-\u036f]/g,e=/ł/g,s=/ñ/g;function n(t){return t.toLowerCase().normalize("NFD").replace(r,"").replace(e,"l").replace(s,"n").trim()}},4828:(q,S,r)=>{"use strict";r.r(S),r.d(S,{Cryo:()=>y});var e=r(1131),s=function(m,d,v,_){var l=m%100;if(l>=10&&l<=20)return _;var c=l%10;return c===1?d:c>=2&&c<=4?v:_},n=r(360),t=r(5180),a=r(3521),b=[{label:"\u0423\u0434\u0443\u0448\u044C\u0435",type:"oxyLoss"},{label:"\u041E\u0442\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435",type:"toxLoss"},{label:"\u041C\u0435\u0445\u0430\u043D\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u043F\u043E\u0432\u0440\u0435\u0436\u0434\u0435\u043D\u0438\u044F",type:"bruteLoss"},{label:"\u0422\u0435\u0440\u043C\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u043F\u043E\u0432\u0440\u0435\u0436\u0434\u0435\u043D\u0438\u044F",type:"fireLoss"}],O=[["good","\u0412 \u0441\u043E\u0437\u043D\u0430\u043D\u0438\u0438"],["average","\u0411\u0435\u0437 \u0441\u043E\u0437\u043D\u0430\u043D\u0438\u044F"],["bad","\u0421\u043C\u0435\u0440\u0442\u044C"]],y=function(m){return(0,e.jsx)(a.p8,{width:520,height:490,children:(0,e.jsx)(a.p8.Content,{children:(0,e.jsx)(u,{})})})},u=function(m){var d=(0,n.Oc)(),v=d.act,_=d.data,l=_.isOperating,c=_.hasOccupant,h=_.occupant,g=_.cellTemperature,p=_.cellTemperatureStatus,j=_.isBeakerLoaded,x=_.auto_eject_healthy,C=_.auto_eject_dead;return(0,e.jsxs)(t.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(t.BJ.Item,{grow:2,children:(0,e.jsx)(t.wn,{title:"\u041F\u0430\u0446\u0438\u0435\u043D\u0442",fill:!0,buttons:(0,e.jsx)(t.$n,{icon:"user-slash",onClick:function(){return v("ejectOccupant")},disabled:!c,children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C"}),children:c?(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"\u041F\u0430\u0446\u0438\u0435\u043D\u0442",children:h.name||"\u0418\u043C\u044F \u043D\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E"}),(0,e.jsx)(t.Ki.Item,{label:"\u041E\u0446\u0435\u043D\u043A\u0430 \u0437\u0434\u043E\u0440\u043E\u0432\u044C\u044F",children:(0,e.jsx)(t.z2,{minValue:h.health,maxValue:h.maxHealth,value:h.health/h.maxHealth,color:h.health>0?"good":"average",children:(0,e.jsx)(t.zv,{value:Math.round(h.health)})})}),(0,e.jsx)(t.Ki.Item,{label:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",color:O[h.stat][0],children:O[h.stat][1]}),(0,e.jsxs)(t.Ki.Item,{label:"\u0422\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430 \u0442\u0435\u043B\u0430",children:[(0,e.jsx)(t.zv,{value:Math.round(h.bodyTemperature)})," ","K"]}),(0,e.jsx)(t.Ki.Divider,{}),b.map(function(I){return(0,e.jsx)(t.Ki.Item,{label:I.label,children:(0,e.jsx)(t.z2,{value:h[I.type]/100,ranges:{bad:[.01,1/0]},children:(0,e.jsx)(t.zv,{value:Math.round(h[I.type])})})},I.type)})]}):(0,e.jsx)(t.BJ,{fill:!0,textAlign:"center",children:(0,e.jsxs)(t.BJ.Item,{grow:1,align:"center",color:"label",children:[(0,e.jsx)(t.In,{name:"user-slash",mb:"0.5rem",size:5}),(0,e.jsx)("br",{}),"\u041F\u0430\u0446\u0438\u0435\u043D\u0442 \u043D\u0435 \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D."]})})})}),(0,e.jsx)(t.BJ.Item,{grow:!0,children:(0,e.jsx)(t.wn,{title:"\u041A\u0440\u0438\u043E\u043A\u0430\u043F\u0441\u0443\u043B\u0430",fill:!0,buttons:(0,e.jsx)(t.$n,{icon:"eject",onClick:function(){return v("ejectBeaker")},disabled:!j,children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u0451\u043C\u043A\u043E\u0441\u0442\u044C."}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"\u041F\u0438\u0442\u0430\u043D\u0438\u0435",children:(0,e.jsx)(t.$n,{icon:"power-off",onClick:function(){return v(l?"switchOff":"switchOn")},selected:l,children:l?"\u0412\u043A\u043B":"\u0412\u044B\u043A\u043B"})}),(0,e.jsxs)(t.Ki.Item,{label:"\u0422\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430",color:p,children:[(0,e.jsx)(t.zv,{value:g})," K"]}),(0,e.jsx)(t.Ki.Item,{label:"\u0401\u043C\u043A\u043E\u0441\u0442\u044C",children:(0,e.jsx)(f,{})}),(0,e.jsx)(t.Ki.Divider,{}),(0,e.jsx)(t.Ki.Item,{label:"\u0410\u0432\u0442\u043E\u0438\u0437\u0432\u043B\u0435\u0447\u0435\u043D\u0438\u0435 \u0437\u0434\u043E\u0440\u043E\u0432\u044B\u0445 \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u043E\u0432",children:(0,e.jsx)(t.$n,{icon:x?"toggle-on":"toggle-off",selected:x,onClick:function(){return v(x?"auto_eject_healthy_off":"auto_eject_healthy_on")},children:x?"\u0412\u043A\u043B":"\u0412\u044B\u043A\u043B"})}),(0,e.jsx)(t.Ki.Item,{label:"\u0410\u0432\u0442\u043E\u0438\u0437\u0432\u043B\u0435\u0447\u0435\u043D\u0438\u0435 \u043C\u0451\u0440\u0442\u0432\u044B\u0445 \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u043E\u0432",children:(0,e.jsx)(t.$n,{icon:C?"toggle-on":"toggle-off",selected:C,onClick:function(){return v(C?"auto_eject_dead_off":"auto_eject_dead_on")},children:C?"\u0412\u043A\u043B":"\u0412\u044B\u043A\u043B"})})]})})})]})},f=function(m){var d=(0,n.Oc)().data,v=d.isBeakerLoaded,_=d.beakerLabel,l=d.beakerVolume;return v?(0,e.jsxs)(e.Fragment,{children:[_?"\xAB"+_+"\xBB":(0,e.jsx)(t.az,{color:"average",children:"\u0401\u043C\u043A\u043E\u0441\u0442\u044C \u043D\u0435 \u043F\u043E\u0434\u043F\u0438\u0441\u0430\u043D\u0430"}),(0,e.jsx)(t.az,{color:!l&&"bad",children:l?(0,e.jsx)(t.zv,{value:l,format:function(c){var h=Math.round(c),g=s(h,"\u041E\u0441\u0442\u0430\u043B\u0430\u0441\u044C","\u041E\u0441\u0442\u0430\u043B\u0438\u0441\u044C","\u041E\u0441\u0442\u0430\u043B\u043E\u0441\u044C"),p=s(h,"\u0435\u0434\u0438\u043D\u0438\u0446\u0430","\u0435\u0434\u0438\u043D\u0438\u0446\u044B","\u0435\u0434\u0438\u043D\u0438\u0446");return g+" "+h+" "+p}}):"\u0401\u043C\u043A\u043E\u0441\u0442\u044C \u043F\u0443\u0441\u0442\u0430"})]}):(0,e.jsx)(t.az,{color:"average",children:"\u0401\u043C\u043A\u043E\u0441\u0442\u044C \u043D\u0435 \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0430"})}},4899:(q,S,r)=>{"use strict";r.r(S),r.d(S,{GPS:()=>f});var e=r(1131),s=r(9818),n=r(360),t=r(7003),a=r(5180),b=r(3521);function O(){return O=Object.assign||function(l){for(var c=1;c0?"arrow-right":"circle",rotation:-j.angle}),"\xA0",Math.floor(j.distance)+"m"]})}),(0,e.jsx)(a.XI.Cell,{verticalAlign:"middle",pr:"0.25rem",collapsing:!0,children:y(j.position)})]},x)})})}))}},4904:(q,S,r)=>{"use strict";r.r(S),r.d(S,{MENU:()=>b,RndConsole:()=>y,SUBMENU:()=>O});var e=r(1131),s=r(360),n=r(3521),t=r(5180),a=r(2905),b={MAIN:0,LEVELS:1,DISK:2,DESTROY:3,LATHE:4,IMPRINTER:5,SETTINGS:6},O={MAIN:0,DISK_COPY:1,LATHE_CATEGORY:1,LATHE_MAT_STORAGE:2,LATHE_CHEM_STORAGE:3,SETTINGS_DEVICES:1},y=function(u){var f=(0,s.Oc)().data,m=f.wait_message,d=f.disk_only;return(0,e.jsx)(n.p8,{width:1e3,height:555,theme:f.ui_theme,children:(0,e.jsx)(n.p8.Content,{scrollable:!0,children:(0,e.jsxs)(t.az,{className:"RndConsole",children:[(0,e.jsx)(a.RndNavbar,{}),(0,e.jsx)(a.RndRoute,{menu:b.MAIN,render:function(){return(0,e.jsx)(a.MainMenu,{})}}),(0,e.jsx)(a.RndRoute,{menu:b.LEVELS,render:function(){return(0,e.jsx)(a.CurrentLevels,{})}}),(0,e.jsx)(a.RndRoute,{menu:b.DISK,render:function(){return(0,e.jsx)(a.DataDiskMenu,{})}}),!d&&(0,e.jsx)(a.RndRoute,{menu:b.DESTROY,render:function(){return(0,e.jsx)(a.DeconstructionMenu,{})}}),!d&&(0,e.jsx)(a.RndRoute,{menu:function(v){return v===b.LATHE||v===b.IMPRINTER},render:function(){return(0,e.jsx)(a.LatheMenu,{})}}),(0,e.jsx)(a.RndRoute,{menu:b.SETTINGS,render:function(){return(0,e.jsx)(a.SettingsMenu,{})}}),m?(0,e.jsx)(t.az,{className:"RndConsole__Overlay",children:(0,e.jsx)(t.az,{className:"RndConsole__Overlay__Wrapper",children:(0,e.jsx)(t.IC,{color:"black",children:m})})}):null]})})})}},4924:(q,S,r)=>{"use strict";r.r(S)},4931:(q,S,r)=>{"use strict";r.d(S,{k:()=>f});/** * Ghetto performance measurement tools. * * Uses NODE_ENV to remove itself from production builds. @@ -133,23 +133,23 @@ Error generating stack: `+z.message+` * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var e,s=60,n=1e3/s,t=!!((e=window.performance)!=null&&e.now),a={},O={},b=function(m,d){},y=function(m,d){return;var v,_,l},u=function(m){var d=m/n;return m.toFixed(m<10?1:0)+"ms ("+d.toFixed(2)+" frames)"},f={mark:b,measure:y}},4941:()=>{},4947:(q,S,r)=>{"use strict";r.d(S,{h:()=>y,v:()=>u});/** + */var e,s=60,n=1e3/s,t=!!((e=window.performance)!=null&&e.now),a={},b={},O=function(m,d){},y=function(m,d){return;var v,_,l},u=function(m){var d=m/n;return m.toFixed(m<10?1:0)+"ms ("+d.toFixed(2)+" frames)"},f={mark:O,measure:y}},4941:()=>{},4947:(q,S,r)=>{"use strict";r.d(S,{h:()=>y,v:()=>u});/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function e(f,m){return m!=null&&typeof Symbol<"u"&&m[Symbol.hasInstance]?!!m[Symbol.hasInstance](f):f instanceof m}var s=0,n=1,t=2,a=3,O=4,b=function(f,m){m===void 0&&(m="Generic");for(var d=arguments.length,v=new Array(d>2?d-2:0),_=2;_=t){var l=[].concat([m],v).map(function(c){return typeof c=="string"?c:e(c,Error)?c.stack||String(c):JSON.stringify(c)}).filter(function(c){return c}).join(" ")+` -User Agent: `+navigator.userAgent;Byond.sendMessage({type:"log",ns:m,message:l})}},y=function(f){return{debug:function(){for(var m=arguments.length,d=new Array(m),v=0;v{"use strict";r.r(S),r.d(S,{ATM:()=>O});var e=r(1131),s=r(360),n=r(7003),t=r(5180),a=r(3521),O=function(l){var c=(0,s.Oc)().data,h=c.view_screen,g=c.authenticated_account,p=c.ticks_left_locked_down,j=c.linked_db,x;if(p>0)x=(0,e.jsxs)(t.az,{bold:!0,color:"bad",children:[(0,e.jsx)(t.In,{name:"exclamation-triangle"}),"Maximum number of pin attempts exceeded! Access to this ATM has been temporarily disabled."]});else if(!j)x=(0,e.jsxs)(t.az,{bold:!0,color:"bad",children:[(0,e.jsx)(t.In,{name:"exclamation-triangle"}),"Unable to connect to accounts database, please retry and if the issue persists contact Nanotrasen IT support."]});else if(g)switch(h){case 1:x=(0,e.jsx)(y,{});break;case 2:x=(0,e.jsx)(u,{});break;case 3:x=(0,e.jsx)(v,{});break;case 4:x=(0,e.jsx)(f,{});break;default:x=(0,e.jsx)(m,{})}else x=(0,e.jsx)(d,{});return(0,e.jsx)(a.p8,{width:550,height:650,children:(0,e.jsxs)(a.p8.Content,{scrollable:!0,children:[(0,e.jsx)(b,{}),(0,e.jsx)(t.wn,{children:x})]})})},b=function(l){var c=(0,s.Oc)(),h=c.act,g=c.data,p=g.held_card_name;return(0,e.jsxs)(t.wn,{title:"Nanotrasen Automatic Teller Machine",children:[(0,e.jsx)(t.az,{children:"For all your monetary needs!"}),(0,e.jsx)(t.cG,{}),(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Card",children:(0,e.jsx)(t.$n,{icon:"eject",onClick:function(){return h("insert_card")},children:p})})})]})},y=function(l){var c=(0,s.Oc)(),h=c.act,g=c.data,p=g.security_level;return(0,e.jsxs)(t.wn,{title:"Select a new security level for this account",children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.cG,{}),(0,e.jsx)(t.Ki.Item,{label:"Level",children:(0,e.jsx)(t.$n,{icon:"unlock",selected:p===0,onClick:function(){return h("change_security_level",{new_security_level:0})},children:"Account Number"})}),(0,e.jsx)(t.Ki.Item,{label:"Description",children:"Either the account number or card is required to access this account. EFTPOS transactions will require a card."}),(0,e.jsx)(t.cG,{}),(0,e.jsx)(t.Ki.Item,{label:"Level",children:(0,e.jsx)(t.$n,{icon:"unlock",selected:p===1,onClick:function(){return h("change_security_level",{new_security_level:1})},children:"Account Pin"})}),(0,e.jsx)(t.Ki.Item,{label:"Description",children:"An account number and pin must be manually entered to access this account and process transactions."}),(0,e.jsx)(t.cG,{}),(0,e.jsx)(t.Ki.Item,{label:"Level",children:(0,e.jsx)(t.$n,{icon:"unlock",selected:p===2,onClick:function(){return h("change_security_level",{new_security_level:2})},children:"Card and Account Pin"})}),(0,e.jsx)(t.Ki.Item,{label:"Description",children:"An account number, pin and card are required to access this account and process transactions."})]}),(0,e.jsx)(t.cG,{}),(0,e.jsx)(_,{})]})},u=function(l){var c=(0,s.Oc)(),h=c.act,g=c.data,p=(0,n.useState)("0"),j=p[0],x=p[1],C=(0,n.useState)("0"),I=C[0],P=C[1],M=(0,n.useState)("0"),B=M[0],w=M[1],T=g.money;return(0,e.jsxs)(t.wn,{title:"Transfer Fund",children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Account Balance",children:["$",T]}),(0,e.jsx)(t.Ki.Item,{label:"Target Account Number",children:(0,e.jsx)(t.pd,{placeholder:"7 Digit Number",onChange:x})}),(0,e.jsx)(t.Ki.Item,{label:"Funds to Transfer",children:(0,e.jsx)(t.pd,{onChange:P})}),(0,e.jsx)(t.Ki.Item,{label:"Transaction Purpose",children:(0,e.jsx)(t.pd,{fluid:!0,onChange:w})})]}),(0,e.jsx)(t.cG,{}),(0,e.jsx)(t.$n,{icon:"sign-out-alt",onClick:function(){return h("transfer",{target_acc_number:j,funds_amount:I,purpose:B})},children:"Transfer"}),(0,e.jsx)(t.cG,{}),(0,e.jsx)(_,{})]})},f=function(l){var c=(0,s.Oc)(),h=c.act,g=c.data,p=g.insurance_type;return(0,e.jsxs)(t.wn,{title:"\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043D\u043E\u0432\u044B\u0439 \u0442\u0438\u043F \u0441\u0442\u0440\u0430\u0445\u043E\u0432\u043A\u0438",children:[(0,e.jsx)(t.Ki,{children:(0,e.jsxs)(t.Ki.Item,{label:"\u0422\u0438\u043F",children:[(0,e.jsx)(t.$n,{icon:"unlock",selected:p==="None",onClick:function(){return h("change_insurance_type",{new_insurance_type:"None"})},children:"\u041D\u0435\u0442 (0)"}),(0,e.jsx)(t.$n,{icon:"unlock",selected:p==="Bugetary",onClick:function(){return h("change_insurance_type",{new_insurance_type:"Bugetary"})},children:"\u0411\u044E\u0434\u0436\u0435\u0442\u043D\u0430\u044F (0)"}),(0,e.jsx)(t.$n,{icon:"unlock",selected:p==="Standart",onClick:function(){return h("change_insurance_type",{new_insurance_type:"Standart"})},children:"\u0421\u0442\u0430\u043D\u0434\u0430\u0440\u0442\u043D\u0430\u044F (500)"}),(0,e.jsx)(t.$n,{icon:"unlock",selected:p==="Deluxe",onClick:function(){return h("change_insurance_type",{new_insurance_type:"Deluxe"})},children:"\u0414\u0435\u043B\u044E\u043A\u0441 (2000)"})]})}),(0,e.jsx)(_,{})]})},m=function(l){var c=(0,s.Oc)(),h=c.act,g=c.data,p=(0,n.useState)("0"),j=p[0],x=p[1],C=(0,n.useState)("0"),I=C[0],P=C[1],M=g.owner_name,B=g.money,w=g.insurance;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"Welcome, "+M,buttons:(0,e.jsx)(t.$n,{icon:"sign-out-alt",onClick:function(){return h("logout")},children:"Logout"}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Account Balance",children:["$",B]}),(0,e.jsx)(t.Ki.Item,{label:"Withdrawal Amount",children:(0,e.jsx)(t.pd,{onChange:function(T){return x(T)}})}),(0,e.jsx)(t.Ki.Item,{children:(0,e.jsx)(t.$n,{icon:"sign-out-alt",onClick:function(){return h("withdrawal",{funds_amount:j})},children:"Withdraw Funds"})}),(0,e.jsxs)(t.Ki.Item,{label:"Insurance Points",children:["$",w]}),(0,e.jsx)(t.Ki.Item,{label:"Adding Insurance",children:(0,e.jsx)(t.pd,{onChange:P})}),(0,e.jsx)(t.Ki.Item,{children:(0,e.jsx)(t.$n,{icon:"sign-out-alt",onClick:function(){return h("insurance",{insurance_amount:I})},children:"Add insurance points"})}),(0,e.jsx)(t.Ki.Item,{children:(0,e.jsx)(t.$n,{icon:"sign-out-alt",onClick:function(){return h("insurance_replenishment",{})},children:"Toggle auto-replenishment of insurance"})})]})}),(0,e.jsxs)(t.wn,{title:"Menu",children:[(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{icon:"lock",onClick:function(){return h("view_screen",{view_screen:1})},children:"Change account security level"})}),(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{icon:"exchange-alt",onClick:function(){return h("view_screen",{view_screen:2})},children:"Make transfer"})}),(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{icon:"list",onClick:function(){return h("view_screen",{view_screen:3})},children:"View transaction log"})}),(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{icon:"lock",onClick:function(){return h("view_screen",{view_screen:4})},children:"Change type of insurance"})}),(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{icon:"print",onClick:function(){return h("balance_statement")},children:"Print balance statement"})})]})]})},d=function(l){var c=(0,s.Oc)().act,h=(0,n.useState)(""),g=h[0],p=h[1],j=(0,n.useState)(""),x=j[0],C=j[1];return(0,e.jsx)(t.wn,{title:"Insert card or enter ID and pin to login",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Account ID",children:(0,e.jsx)(t.pd,{placeholder:"6 Digit Number",onChange:p})}),(0,e.jsx)(t.Ki.Item,{label:"Pin",children:(0,e.jsx)(t.pd,{placeholder:"6 Digit Number",onChange:C})}),(0,e.jsx)(t.Ki.Item,{children:(0,e.jsx)(t.$n,{icon:"sign-in-alt",onClick:function(){return c("attempt_auth",{account_num:g,account_pin:x})},children:"Login"})})]})})},v=function(l){var c=(0,s.Oc)().data,h=c.transaction_log;return(0,e.jsxs)(t.wn,{title:"Transactions",children:[(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{children:"Timestamp"}),(0,e.jsx)(t.XI.Cell,{children:"Reason"}),(0,e.jsx)(t.XI.Cell,{children:"Value"}),(0,e.jsx)(t.XI.Cell,{children:"Terminal"})]}),h.map(function(g){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:g.time}),(0,e.jsx)(t.XI.Cell,{children:g.purpose}),(0,e.jsxs)(t.XI.Cell,{color:g.is_deposit?"green":"red",children:["$",g.amount]}),(0,e.jsx)(t.XI.Cell,{children:g.target_name})]},g)})]}),(0,e.jsx)(t.cG,{}),(0,e.jsx)(_,{})]})},_=function(l){var c=(0,s.Oc)().act;return(0,e.jsx)(t.$n,{icon:"sign-out-alt",onClick:function(){return c("view_screen",{view_screen:0})},children:"Back"})}},4954:(q,S,r)=>{"use strict";r.r(S),r.d(S,{PodStatusPage:()=>b});var e=r(1131),s=r(7003),n=r(360),t=r(5180),a=r(5237),O=r(3500),b=function(f){var m=(0,O.useCompact)(),d=m[0];return(0,e.jsx)(t.wn,{fill:!0,children:(0,e.jsx)(t.BJ,{children:a.EFFECTS_ALL.map(function(v,_){return(0,e.jsxs)(s.Fragment,{children:[(0,e.jsxs)(t.BJ.Item,{children:[(0,e.jsxs)(t.az,{bold:!0,color:"label",mb:1,children:[!d&&(v.alt_label||v.label),":"]}),(0,e.jsx)(t.az,{children:v.list.map(function(l,c){return(0,e.jsx)(y,{effect:l,hasMargin:v.list.length>1,index:c},c)})})]}),_2?d-2:0),_=2;_=t){var l=[].concat([m],v).map(function(c){return typeof c=="string"?c:e(c,Error)?c.stack||String(c):JSON.stringify(c)}).filter(function(c){return c}).join(" ")+` +User Agent: `+navigator.userAgent;Byond.sendMessage({type:"log",ns:m,message:l})}},y=function(f){return{debug:function(){for(var m=arguments.length,d=new Array(m),v=0;v{"use strict";r.r(S),r.d(S,{ATM:()=>b});var e=r(1131),s=r(360),n=r(7003),t=r(5180),a=r(3521),b=function(l){var c=(0,s.Oc)().data,h=c.view_screen,g=c.authenticated_account,p=c.ticks_left_locked_down,j=c.linked_db,x;if(p>0)x=(0,e.jsxs)(t.az,{bold:!0,color:"bad",children:[(0,e.jsx)(t.In,{name:"exclamation-triangle"}),"Maximum number of pin attempts exceeded! Access to this ATM has been temporarily disabled."]});else if(!j)x=(0,e.jsxs)(t.az,{bold:!0,color:"bad",children:[(0,e.jsx)(t.In,{name:"exclamation-triangle"}),"Unable to connect to accounts database, please retry and if the issue persists contact Nanotrasen IT support."]});else if(g)switch(h){case 1:x=(0,e.jsx)(y,{});break;case 2:x=(0,e.jsx)(u,{});break;case 3:x=(0,e.jsx)(v,{});break;case 4:x=(0,e.jsx)(f,{});break;default:x=(0,e.jsx)(m,{})}else x=(0,e.jsx)(d,{});return(0,e.jsx)(a.p8,{width:550,height:650,children:(0,e.jsxs)(a.p8.Content,{scrollable:!0,children:[(0,e.jsx)(O,{}),(0,e.jsx)(t.wn,{children:x})]})})},O=function(l){var c=(0,s.Oc)(),h=c.act,g=c.data,p=g.held_card_name;return(0,e.jsxs)(t.wn,{title:"Nanotrasen Automatic Teller Machine",children:[(0,e.jsx)(t.az,{children:"For all your monetary needs!"}),(0,e.jsx)(t.cG,{}),(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Card",children:(0,e.jsx)(t.$n,{icon:"eject",onClick:function(){return h("insert_card")},children:p})})})]})},y=function(l){var c=(0,s.Oc)(),h=c.act,g=c.data,p=g.security_level;return(0,e.jsxs)(t.wn,{title:"Select a new security level for this account",children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.cG,{}),(0,e.jsx)(t.Ki.Item,{label:"Level",children:(0,e.jsx)(t.$n,{icon:"unlock",selected:p===0,onClick:function(){return h("change_security_level",{new_security_level:0})},children:"Account Number"})}),(0,e.jsx)(t.Ki.Item,{label:"Description",children:"Either the account number or card is required to access this account. EFTPOS transactions will require a card."}),(0,e.jsx)(t.cG,{}),(0,e.jsx)(t.Ki.Item,{label:"Level",children:(0,e.jsx)(t.$n,{icon:"unlock",selected:p===1,onClick:function(){return h("change_security_level",{new_security_level:1})},children:"Account Pin"})}),(0,e.jsx)(t.Ki.Item,{label:"Description",children:"An account number and pin must be manually entered to access this account and process transactions."}),(0,e.jsx)(t.cG,{}),(0,e.jsx)(t.Ki.Item,{label:"Level",children:(0,e.jsx)(t.$n,{icon:"unlock",selected:p===2,onClick:function(){return h("change_security_level",{new_security_level:2})},children:"Card and Account Pin"})}),(0,e.jsx)(t.Ki.Item,{label:"Description",children:"An account number, pin and card are required to access this account and process transactions."})]}),(0,e.jsx)(t.cG,{}),(0,e.jsx)(_,{})]})},u=function(l){var c=(0,s.Oc)(),h=c.act,g=c.data,p=(0,n.useState)("0"),j=p[0],x=p[1],C=(0,n.useState)("0"),I=C[0],P=C[1],M=(0,n.useState)("0"),B=M[0],w=M[1],T=g.money;return(0,e.jsxs)(t.wn,{title:"Transfer Fund",children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Account Balance",children:["$",T]}),(0,e.jsx)(t.Ki.Item,{label:"Target Account Number",children:(0,e.jsx)(t.pd,{placeholder:"7 Digit Number",onChange:x})}),(0,e.jsx)(t.Ki.Item,{label:"Funds to Transfer",children:(0,e.jsx)(t.pd,{onChange:P})}),(0,e.jsx)(t.Ki.Item,{label:"Transaction Purpose",children:(0,e.jsx)(t.pd,{fluid:!0,onChange:w})})]}),(0,e.jsx)(t.cG,{}),(0,e.jsx)(t.$n,{icon:"sign-out-alt",onClick:function(){return h("transfer",{target_acc_number:j,funds_amount:I,purpose:B})},children:"Transfer"}),(0,e.jsx)(t.cG,{}),(0,e.jsx)(_,{})]})},f=function(l){var c=(0,s.Oc)(),h=c.act,g=c.data,p=g.insurance_type;return(0,e.jsxs)(t.wn,{title:"\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043D\u043E\u0432\u044B\u0439 \u0442\u0438\u043F \u0441\u0442\u0440\u0430\u0445\u043E\u0432\u043A\u0438",children:[(0,e.jsx)(t.Ki,{children:(0,e.jsxs)(t.Ki.Item,{label:"\u0422\u0438\u043F",children:[(0,e.jsx)(t.$n,{icon:"unlock",selected:p==="None",onClick:function(){return h("change_insurance_type",{new_insurance_type:"None"})},children:"\u041D\u0435\u0442 (0)"}),(0,e.jsx)(t.$n,{icon:"unlock",selected:p==="Bugetary",onClick:function(){return h("change_insurance_type",{new_insurance_type:"Bugetary"})},children:"\u0411\u044E\u0434\u0436\u0435\u0442\u043D\u0430\u044F (0)"}),(0,e.jsx)(t.$n,{icon:"unlock",selected:p==="Standart",onClick:function(){return h("change_insurance_type",{new_insurance_type:"Standart"})},children:"\u0421\u0442\u0430\u043D\u0434\u0430\u0440\u0442\u043D\u0430\u044F (500)"}),(0,e.jsx)(t.$n,{icon:"unlock",selected:p==="Deluxe",onClick:function(){return h("change_insurance_type",{new_insurance_type:"Deluxe"})},children:"\u0414\u0435\u043B\u044E\u043A\u0441 (2000)"})]})}),(0,e.jsx)(_,{})]})},m=function(l){var c=(0,s.Oc)(),h=c.act,g=c.data,p=(0,n.useState)("0"),j=p[0],x=p[1],C=(0,n.useState)("0"),I=C[0],P=C[1],M=g.owner_name,B=g.money,w=g.insurance;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"Welcome, "+M,buttons:(0,e.jsx)(t.$n,{icon:"sign-out-alt",onClick:function(){return h("logout")},children:"Logout"}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Account Balance",children:["$",B]}),(0,e.jsx)(t.Ki.Item,{label:"Withdrawal Amount",children:(0,e.jsx)(t.pd,{onChange:function(T){return x(T)}})}),(0,e.jsx)(t.Ki.Item,{children:(0,e.jsx)(t.$n,{icon:"sign-out-alt",onClick:function(){return h("withdrawal",{funds_amount:j})},children:"Withdraw Funds"})}),(0,e.jsxs)(t.Ki.Item,{label:"Insurance Points",children:["$",w]}),(0,e.jsx)(t.Ki.Item,{label:"Adding Insurance",children:(0,e.jsx)(t.pd,{onChange:P})}),(0,e.jsx)(t.Ki.Item,{children:(0,e.jsx)(t.$n,{icon:"sign-out-alt",onClick:function(){return h("insurance",{insurance_amount:I})},children:"Add insurance points"})}),(0,e.jsx)(t.Ki.Item,{children:(0,e.jsx)(t.$n,{icon:"sign-out-alt",onClick:function(){return h("insurance_replenishment",{})},children:"Toggle auto-replenishment of insurance"})})]})}),(0,e.jsxs)(t.wn,{title:"Menu",children:[(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{icon:"lock",onClick:function(){return h("view_screen",{view_screen:1})},children:"Change account security level"})}),(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{icon:"exchange-alt",onClick:function(){return h("view_screen",{view_screen:2})},children:"Make transfer"})}),(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{icon:"list",onClick:function(){return h("view_screen",{view_screen:3})},children:"View transaction log"})}),(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{icon:"lock",onClick:function(){return h("view_screen",{view_screen:4})},children:"Change type of insurance"})}),(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{icon:"print",onClick:function(){return h("balance_statement")},children:"Print balance statement"})})]})]})},d=function(l){var c=(0,s.Oc)().act,h=(0,n.useState)(""),g=h[0],p=h[1],j=(0,n.useState)(""),x=j[0],C=j[1];return(0,e.jsx)(t.wn,{title:"Insert card or enter ID and pin to login",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Account ID",children:(0,e.jsx)(t.pd,{placeholder:"6 Digit Number",onChange:p})}),(0,e.jsx)(t.Ki.Item,{label:"Pin",children:(0,e.jsx)(t.pd,{placeholder:"6 Digit Number",onChange:C})}),(0,e.jsx)(t.Ki.Item,{children:(0,e.jsx)(t.$n,{icon:"sign-in-alt",onClick:function(){return c("attempt_auth",{account_num:g,account_pin:x})},children:"Login"})})]})})},v=function(l){var c=(0,s.Oc)().data,h=c.transaction_log;return(0,e.jsxs)(t.wn,{title:"Transactions",children:[(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{children:"Timestamp"}),(0,e.jsx)(t.XI.Cell,{children:"Reason"}),(0,e.jsx)(t.XI.Cell,{children:"Value"}),(0,e.jsx)(t.XI.Cell,{children:"Terminal"})]}),h.map(function(g){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:g.time}),(0,e.jsx)(t.XI.Cell,{children:g.purpose}),(0,e.jsxs)(t.XI.Cell,{color:g.is_deposit?"green":"red",children:["$",g.amount]}),(0,e.jsx)(t.XI.Cell,{children:g.target_name})]},g)})]}),(0,e.jsx)(t.cG,{}),(0,e.jsx)(_,{})]})},_=function(l){var c=(0,s.Oc)().act;return(0,e.jsx)(t.$n,{icon:"sign-out-alt",onClick:function(){return c("view_screen",{view_screen:0})},children:"Back"})}},4954:(q,S,r)=>{"use strict";r.r(S),r.d(S,{PodStatusPage:()=>O});var e=r(1131),s=r(7003),n=r(360),t=r(5180),a=r(5237),b=r(3500),O=function(f){var m=(0,b.useCompact)(),d=m[0];return(0,e.jsx)(t.wn,{fill:!0,children:(0,e.jsx)(t.BJ,{children:a.EFFECTS_ALL.map(function(v,_){return(0,e.jsxs)(s.Fragment,{children:[(0,e.jsxs)(t.BJ.Item,{children:[(0,e.jsxs)(t.az,{bold:!0,color:"label",mb:1,children:[!d&&(v.alt_label||v.label),":"]}),(0,e.jsx)(t.az,{children:v.list.map(function(l,c){return(0,e.jsx)(y,{effect:l,hasMargin:v.list.length>1,index:c},c)})})]}),_{"use strict";r.r(S),r.d(S,{Contractor:()=>v});var e=r(1131),s=r(9818),n=r(7003),t=r(360),a=r(5180),O=r(3814),b=r(3521);function y(){return y=Object.assign||function(x){for(var C=1;C0,R=(0,n.useState)(""),U=R[0],F=R[1];return(0,e.jsx)(a.wn,y({title:"\u0414\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0435 \u043A\u043E\u043D\u0442\u0440\u0430\u043A\u0442\u044B",overflow:"auto",buttons:(0,e.jsx)(a.$n,{disabled:!w||K,icon:"parachute-box",onClick:function(){return I("extract")},children:["\u041D\u0430\u0447\u0430\u0442\u044C \u044D\u0432\u0430\u043A\u0443\u0430\u0446\u0438\u044E",K&&(0,e.jsx)(O.G,{timeLeft:T.time_left,format:function($,W){return" ("+W.substring(3)+")"}})]})},x,{children:M.slice().sort(function($,W){return $.status===1?-1:W.status===1?1:$.status-W.status}).map(function($){var W;return(0,e.jsx)(a.wn,{title:(0,e.jsxs)(a.so,{children:[(0,e.jsx)(a.so.Item,{grow:"1",color:$.status===1&&"good",children:$.target_name}),(0,e.jsx)(a.so.Item,{basis:"content",children:$.has_photo&&(0,e.jsx)(a.$n,{icon:"camera",mb:"-0.5rem",ml:"0.5rem",onClick:function(){return F("target_photo_"+$.uid+".png")}})})]}),className:"Contractor__Contract",buttons:(0,e.jsxs)(a.az,{width:"100%",children:[!!m[$.status]&&(0,e.jsx)(a.az,{color:m[$.status][1],inline:!0,mt:$.status!==1&&"0.125rem",mr:"0.25rem",lineHeight:"20px",children:m[$.status][0]}),$.status===1&&(0,e.jsx)(a.$n.Confirm,{icon:"ban",color:"bad",ml:"0.5rem",onClick:function(){return I("abort")},children:"\u041E\u0442\u043A\u0430\u0437\u0430\u0442\u044C\u0441\u044F"})]}),children:(0,e.jsxs)(a.so,{children:[(0,e.jsxs)(a.so.Item,{grow:"2",mr:"0.5rem",children:[$.fluff_message,!!$.completed_time&&(0,e.jsxs)(a.az,{color:"good",children:[(0,e.jsx)("br",{}),(0,e.jsx)(a.In,{name:"check",mr:"0.5rem"}),"\u041A\u043E\u043D\u0442\u0440\u0430\u043A\u0442, \u0432\u044B\u043F\u043E\u043B\u043D\u0435\u043D \u0432 ",$.completed_time]}),!!$.dead_extraction&&(0,e.jsxs)(a.az,{color:"bad",mt:"0.5rem",bold:!0,children:[(0,e.jsx)(a.In,{name:"exclamation-triangle",mr:"0.5rem"}),"\u041D\u0430\u0433\u0440\u0430\u0434\u0430 \u0432 \u0432\u0438\u0434\u0435 \u0442\u0435\u043B\u0435\u043A\u0440\u0438\u0441\u0442\u0430\u043B\u043B\u043E\u0432 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0435\u043D\u043D\u043E \u0443\u043C\u0435\u043D\u044C\u0448\u0438\u043B\u0430\u0441\u044C, \u0442\u0430\u043A \u043A\u0430\u043A \u0446\u0435\u043B\u044C \u0431\u044B\u043B\u0430 \u043C\u0435\u0440\u0442\u0432\u0430 \u0432 \u043C\u043E\u043C\u0435\u043D\u0442 \u044D\u0432\u0430\u043A\u0443\u0430\u0446\u0438\u0438."]}),!!$.fail_reason&&(0,e.jsxs)(a.az,{color:"bad",children:[(0,e.jsx)("br",{}),(0,e.jsx)(a.In,{name:"times",mr:"0.5rem"}),"\u041A\u043E\u043D\u0442\u0440\u0430\u043A\u0442 \u043D\u0435 \u0432\u044B\u043F\u043E\u043B\u043D\u0435\u043D: ",$.fail_reason]})]}),(0,e.jsxs)(a.so.Item,{flexBasis:"100%",children:[(0,e.jsxs)(a.so,{mb:"0.5rem",color:"label",children:["\u0417\u043E\u043D\u0430 \u044D\u0432\u0430\u043A\u0443\u0430\u0446\u0438\u0438:\xA0",h($)]}),(W=$.difficulties)==null?void 0:W.map(function(N,Z){return(0,e.jsx)(a.$n.Confirm,{disabled:!!B,onClick:function(){return I("activate",{uid:$.uid,difficulty:Z+1})},children:N.name+" ("+N.reward+" \u0422\u041A)"},Z)}),!!$.objective&&(0,e.jsxs)(a.az,{color:"white",bold:!0,children:[$.objective.extraction_name,(0,e.jsx)("br",{}),"(",($.objective.rewards.tc||0)+" \u0422\u041A",",\xA0",($.objective.rewards.credits||0)+" \u041A\u0440\u0435\u0434\u0438\u0442\u043E\u0432",")"]})]})]})},$.uid)})}))},h=function(x){if(!(!x.objective||x.status>1)){var C=x.objective.locs.user_area_id,I=x.objective.locs.user_coords,P=x.objective.locs.target_area_id,M=x.objective.locs.target_coords,B=C===P;return(0,e.jsx)(a.so.Item,{children:(0,e.jsx)(a.In,{name:B?"dot-circle-o":"arrow-alt-circle-right-o",color:B?"green":"yellow",rotation:B?null:-(0,s.KJ)(Math.atan2(M[1]-I[1],M[0]-I[0])),lineHeight:B?null:"0.85",size:1.5})})}},g=function(x){var C=(0,t.Oc)(),I=C.act,P=C.data,M=P.rep,B=P.buyables;return(0,e.jsx)(a.wn,y({title:"\u0414\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0435 \u0442\u043E\u0432\u0430\u0440\u044B",overflow:"auto"},x,{children:B.map(function(w){return(0,e.jsxs)(a.wn,{title:w.name,buttons:!!w.refundable&&(0,e.jsx)(a.$n.Confirm,{onClick:function(){return I("refund",{uid:w.uid})},children:"\u0412\u043E\u0437\u0432\u0440\u0430\u0442 ("+w.cost+" \u0440\u0435\u043F\u0443\u0442\u0430\u0446\u0438\u0438)"}),children:[w.description,(0,e.jsx)("br",{}),(0,e.jsx)(a.$n.Confirm,{disabled:M-1&&(0,e.jsxs)(a.az,{as:"span",color:w.stock?"good":"bad",ml:"0.5rem",children:[w.stock," \u0432 \u043D\u0430\u043B\u0438\u0447\u0438\u0438"]})]},w.uid)})}))},p=function(x){"use strict";u(C,x);function C(P){var M;return M=x.call(this,P)||this,M.timer=null,M.state={currentIndex:0,currentDisplay:[]},M}var I=C.prototype;return I.tick=function(){var M=this,B=M.props,w=M.state;if(w.currentIndex<=B.allMessages.length){this.setState(function(K){return{currentIndex:K.currentIndex+1}});var T=w.currentDisplay;T.push(B.allMessages[w.currentIndex])}else clearTimeout(this.timer),setTimeout(B.onFinished,B.finishedTimeout)},I.componentDidMount=function(){var M=this,B=this.props,w=B.linesPerSecond,T=w===void 0?2.5:w;this.timer=setInterval(function(){return M.tick()},1e3/T)},I.componentWillUnmount=function(){clearTimeout(this.timer)},I.render=function(){return(0,e.jsx)(a.az,{m:1,children:this.state.currentDisplay.map(function(M){return(0,e.jsxs)(n.Fragment,{children:[M,(0,e.jsx)("br",{})]},M)})})},C}(n.Component),j=function(x){var C=(0,n.useState)(""),I=C[0],P=C[1];return(0,e.jsxs)(a.aF,{className:"Contractor__photoZoom",children:[(0,e.jsx)(a._V,{src:I}),(0,e.jsx)(a.$n,{icon:"times",color:"grey",mt:"1rem",onClick:function(){return P("")},children:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C"})]})}},5032:(q,S,r)=>{"use strict";r.r(S),r.d(S,{meta:()=>t});var e=r(1131),s=r(7003),n=r(5180);/** +\u0420\u0430\u0437\u043C\u0435\u0440:`+p:m.title,tooltipPosition:m.tooltipPosition,children:m.content})},u=function(f){var m=(0,n.Oc)().act,d=(0,b.useCompact)(),v=d[0],_=d[1];return(0,e.jsxs)(t.BJ.Item,{children:[(0,e.jsx)(t.az,{color:"label",mb:1,children:(0,e.jsx)("b",{children:"\u042D\u043A\u0441\u0442\u0440\u0430:"})}),(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{color:"transparent",icon:"list-alt",inline:!0,m:0,onClick:function(){return m("gamePanel")},tooltip:"\u0413\u0435\u0439\u043C \u043F\u0430\u043D\u0435\u043B\u044C",tooltipPosition:"top-start"}),(0,e.jsx)(t.$n,{color:"transparent",icon:"hammer",inline:!0,m:0,onClick:function(){return m("buildMode")},tooltip:"\u0411\u0438\u043B\u0434 \u043C\u043E\u0434",tooltipPosition:"top-start"}),(0,e.jsx)(t.$n,{color:"transparent",icon:v?"expand":"compress",inline:!0,m:0,onClick:function(){_(!v),v&&m("refreshView")},tooltip:v?"\u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043D\u043D\u044B\u0439 \u0440\u0435\u0436\u0438\u043C":"\u041A\u043E\u043C\u043F\u0430\u043A\u0442\u043D\u044B\u0439 \u0440\u0435\u0436\u0438\u043C",tooltipPosition:"top-start"})]})]})}},5022:(q,S,r)=>{"use strict";r.r(S),r.d(S,{Contractor:()=>v});var e=r(1131),s=r(9818),n=r(7003),t=r(360),a=r(5180),b=r(3814),O=r(3521);function y(){return y=Object.assign||function(x){for(var C=1;C0,R=(0,n.useState)(""),U=R[0],F=R[1];return(0,e.jsx)(a.wn,y({title:"\u0414\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0435 \u043A\u043E\u043D\u0442\u0440\u0430\u043A\u0442\u044B",overflow:"auto",buttons:(0,e.jsx)(a.$n,{disabled:!w||K,icon:"parachute-box",onClick:function(){return I("extract")},children:["\u041D\u0430\u0447\u0430\u0442\u044C \u044D\u0432\u0430\u043A\u0443\u0430\u0446\u0438\u044E",K&&(0,e.jsx)(b.G,{timeLeft:T.time_left,format:function($,W){return" ("+W.substring(3)+")"}})]})},x,{children:M.slice().sort(function($,W){return $.status===1?-1:W.status===1?1:$.status-W.status}).map(function($){var W;return(0,e.jsx)(a.wn,{title:(0,e.jsxs)(a.so,{children:[(0,e.jsx)(a.so.Item,{grow:"1",color:$.status===1&&"good",children:$.target_name}),(0,e.jsx)(a.so.Item,{basis:"content",children:$.has_photo&&(0,e.jsx)(a.$n,{icon:"camera",mb:"-0.5rem",ml:"0.5rem",onClick:function(){return F("target_photo_"+$.uid+".png")}})})]}),className:"Contractor__Contract",buttons:(0,e.jsxs)(a.az,{width:"100%",children:[!!m[$.status]&&(0,e.jsx)(a.az,{color:m[$.status][1],inline:!0,mt:$.status!==1&&"0.125rem",mr:"0.25rem",lineHeight:"20px",children:m[$.status][0]}),$.status===1&&(0,e.jsx)(a.$n.Confirm,{icon:"ban",color:"bad",ml:"0.5rem",onClick:function(){return I("abort")},children:"\u041E\u0442\u043A\u0430\u0437\u0430\u0442\u044C\u0441\u044F"})]}),children:(0,e.jsxs)(a.so,{children:[(0,e.jsxs)(a.so.Item,{grow:"2",mr:"0.5rem",children:[$.fluff_message,!!$.completed_time&&(0,e.jsxs)(a.az,{color:"good",children:[(0,e.jsx)("br",{}),(0,e.jsx)(a.In,{name:"check",mr:"0.5rem"}),"\u041A\u043E\u043D\u0442\u0440\u0430\u043A\u0442, \u0432\u044B\u043F\u043E\u043B\u043D\u0435\u043D \u0432 ",$.completed_time]}),!!$.dead_extraction&&(0,e.jsxs)(a.az,{color:"bad",mt:"0.5rem",bold:!0,children:[(0,e.jsx)(a.In,{name:"exclamation-triangle",mr:"0.5rem"}),"\u041D\u0430\u0433\u0440\u0430\u0434\u0430 \u0432 \u0432\u0438\u0434\u0435 \u0442\u0435\u043B\u0435\u043A\u0440\u0438\u0441\u0442\u0430\u043B\u043B\u043E\u0432 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0435\u043D\u043D\u043E \u0443\u043C\u0435\u043D\u044C\u0448\u0438\u043B\u0430\u0441\u044C, \u0442\u0430\u043A \u043A\u0430\u043A \u0446\u0435\u043B\u044C \u0431\u044B\u043B\u0430 \u043C\u0435\u0440\u0442\u0432\u0430 \u0432 \u043C\u043E\u043C\u0435\u043D\u0442 \u044D\u0432\u0430\u043A\u0443\u0430\u0446\u0438\u0438."]}),!!$.fail_reason&&(0,e.jsxs)(a.az,{color:"bad",children:[(0,e.jsx)("br",{}),(0,e.jsx)(a.In,{name:"times",mr:"0.5rem"}),"\u041A\u043E\u043D\u0442\u0440\u0430\u043A\u0442 \u043D\u0435 \u0432\u044B\u043F\u043E\u043B\u043D\u0435\u043D: ",$.fail_reason]})]}),(0,e.jsxs)(a.so.Item,{flexBasis:"100%",children:[(0,e.jsxs)(a.so,{mb:"0.5rem",color:"label",children:["\u0417\u043E\u043D\u0430 \u044D\u0432\u0430\u043A\u0443\u0430\u0446\u0438\u0438:\xA0",h($)]}),(W=$.difficulties)==null?void 0:W.map(function(N,Z){return(0,e.jsx)(a.$n.Confirm,{disabled:!!B,onClick:function(){return I("activate",{uid:$.uid,difficulty:Z+1})},children:N.name+" ("+N.reward+" \u0422\u041A)"},Z)}),!!$.objective&&(0,e.jsxs)(a.az,{color:"white",bold:!0,children:[$.objective.extraction_name,(0,e.jsx)("br",{}),"(",($.objective.rewards.tc||0)+" \u0422\u041A",",\xA0",($.objective.rewards.credits||0)+" \u041A\u0440\u0435\u0434\u0438\u0442\u043E\u0432",")"]})]})]})},$.uid)})}))},h=function(x){if(!(!x.objective||x.status>1)){var C=x.objective.locs.user_area_id,I=x.objective.locs.user_coords,P=x.objective.locs.target_area_id,M=x.objective.locs.target_coords,B=C===P;return(0,e.jsx)(a.so.Item,{children:(0,e.jsx)(a.In,{name:B?"dot-circle-o":"arrow-alt-circle-right-o",color:B?"green":"yellow",rotation:B?null:-(0,s.KJ)(Math.atan2(M[1]-I[1],M[0]-I[0])),lineHeight:B?null:"0.85",size:1.5})})}},g=function(x){var C=(0,t.Oc)(),I=C.act,P=C.data,M=P.rep,B=P.buyables;return(0,e.jsx)(a.wn,y({title:"\u0414\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0435 \u0442\u043E\u0432\u0430\u0440\u044B",overflow:"auto"},x,{children:B.map(function(w){return(0,e.jsxs)(a.wn,{title:w.name,buttons:!!w.refundable&&(0,e.jsx)(a.$n.Confirm,{onClick:function(){return I("refund",{uid:w.uid})},children:"\u0412\u043E\u0437\u0432\u0440\u0430\u0442 ("+w.cost+" \u0440\u0435\u043F\u0443\u0442\u0430\u0446\u0438\u0438)"}),children:[w.description,(0,e.jsx)("br",{}),(0,e.jsx)(a.$n.Confirm,{disabled:M-1&&(0,e.jsxs)(a.az,{as:"span",color:w.stock?"good":"bad",ml:"0.5rem",children:[w.stock," \u0432 \u043D\u0430\u043B\u0438\u0447\u0438\u0438"]})]},w.uid)})}))},p=function(x){"use strict";u(C,x);function C(P){var M;return M=x.call(this,P)||this,M.timer=null,M.state={currentIndex:0,currentDisplay:[]},M}var I=C.prototype;return I.tick=function(){var M=this,B=M.props,w=M.state;if(w.currentIndex<=B.allMessages.length){this.setState(function(K){return{currentIndex:K.currentIndex+1}});var T=w.currentDisplay;T.push(B.allMessages[w.currentIndex])}else clearTimeout(this.timer),setTimeout(B.onFinished,B.finishedTimeout)},I.componentDidMount=function(){var M=this,B=this.props,w=B.linesPerSecond,T=w===void 0?2.5:w;this.timer=setInterval(function(){return M.tick()},1e3/T)},I.componentWillUnmount=function(){clearTimeout(this.timer)},I.render=function(){return(0,e.jsx)(a.az,{m:1,children:this.state.currentDisplay.map(function(M){return(0,e.jsxs)(n.Fragment,{children:[M,(0,e.jsx)("br",{})]},M)})})},C}(n.Component),j=function(x){var C=(0,n.useState)(""),I=C[0],P=C[1];return(0,e.jsxs)(a.aF,{className:"Contractor__photoZoom",children:[(0,e.jsx)(a._V,{src:I}),(0,e.jsx)(a.$n,{icon:"times",color:"grey",mt:"1rem",onClick:function(){return P("")},children:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C"})]})}},5032:(q,S,r)=>{"use strict";r.r(S),r.d(S,{meta:()=>t});var e=r(1131),s=r(7003),n=r(5180);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var t={title:"Flex & Sections",render:function(){return(0,e.jsx)(a,{})}},a=function(O){var b=(0,s.useState)(1),y=b[0],u=b[1],f=(0,s.useState)("column"),m=f[0],d=f[1],v=(0,s.useState)(!0),_=v[0],l=v[1],c=(0,s.useState)(!0),h=c[0],g=c[1];return(0,e.jsxs)(n.so,{height:"100%",direction:"column",children:[(0,e.jsx)(n.so.Item,{mb:1,children:(0,e.jsxs)(n.wn,{children:[(0,e.jsx)(n.$n,{fluid:!0,onClick:function(){return d(m==="column"?"row":"column")},children:'Flex direction="'+m+'"'}),(0,e.jsx)(n.$n,{fluid:!0,onClick:function(){return u(+!y)},children:"Flex.Item grow={"+y+"}"}),(0,e.jsx)(n.$n,{fluid:!0,onClick:function(){return l(!_)},children:"Section fill={"+String(_)+"}"}),(0,e.jsx)(n.$n,{fluid:!0,selected:h,onClick:function(){return g(!h)},children:"Section title"})]})}),(0,e.jsx)(n.so.Item,{grow:1,children:(0,e.jsxs)(n.so,{height:"100%",direction:m,children:[(0,e.jsx)(n.so.Item,{mr:m==="row"&&1,mb:m==="column"&&1,grow:y,children:(0,e.jsx)(n.wn,{title:h&&"Section 1",fill:_,children:"Content"})}),(0,e.jsx)(n.so.Item,{grow:y,children:(0,e.jsx)(n.wn,{title:h&&"Section 2",fill:_,children:"Content"})})]})})]})}},5050:(q,S,r)=>{"use strict";r.r(S),r.d(S,{AchievementsAdminPanel:()=>a});var e=r(1131),s=r(5180),n=r(360),t=r(3521),a=function(O){var b=(0,n.Oc)(),y=b.act,u=b.data,f=u.orphaned_keys,m=u.archived_keys;return(0,e.jsx)(t.p8,{title:"Achievements Admin Panel",width:540,height:680,children:(0,e.jsxs)(t.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(s.wn,{title:"Orphaned achievements",children:[(0,e.jsx)(s.IC,{children:` + */var t={title:"Flex & Sections",render:function(){return(0,e.jsx)(a,{})}},a=function(b){var O=(0,s.useState)(1),y=O[0],u=O[1],f=(0,s.useState)("column"),m=f[0],d=f[1],v=(0,s.useState)(!0),_=v[0],l=v[1],c=(0,s.useState)(!0),h=c[0],g=c[1];return(0,e.jsxs)(n.so,{height:"100%",direction:"column",children:[(0,e.jsx)(n.so.Item,{mb:1,children:(0,e.jsxs)(n.wn,{children:[(0,e.jsx)(n.$n,{fluid:!0,onClick:function(){return d(m==="column"?"row":"column")},children:'Flex direction="'+m+'"'}),(0,e.jsx)(n.$n,{fluid:!0,onClick:function(){return u(+!y)},children:"Flex.Item grow={"+y+"}"}),(0,e.jsx)(n.$n,{fluid:!0,onClick:function(){return l(!_)},children:"Section fill={"+String(_)+"}"}),(0,e.jsx)(n.$n,{fluid:!0,selected:h,onClick:function(){return g(!h)},children:"Section title"})]})}),(0,e.jsx)(n.so.Item,{grow:1,children:(0,e.jsxs)(n.so,{height:"100%",direction:m,children:[(0,e.jsx)(n.so.Item,{mr:m==="row"&&1,mb:m==="column"&&1,grow:y,children:(0,e.jsx)(n.wn,{title:h&&"Section 1",fill:_,children:"Content"})}),(0,e.jsx)(n.so.Item,{grow:y,children:(0,e.jsx)(n.wn,{title:h&&"Section 2",fill:_,children:"Content"})})]})})]})}},5050:(q,S,r)=>{"use strict";r.r(S),r.d(S,{AchievementsAdminPanel:()=>a});var e=r(1131),s=r(5180),n=r(360),t=r(3521),a=function(b){var O=(0,n.Oc)(),y=O.act,u=O.data,f=u.orphaned_keys,m=u.archived_keys;return(0,e.jsx)(t.p8,{title:"Achievements Admin Panel",width:540,height:680,children:(0,e.jsxs)(t.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(s.wn,{title:"Orphaned achievements",children:[(0,e.jsx)(s.IC,{children:` These achievements are present in the database but are missing definitions in code. Most likely these were removed and can be cleaned up safely. If you're sharing the same database on multiple servers it's possible these come from a server with later version of - the code than this one.`}),(0,e.jsx)(s.Ki,{children:f.map(function(d){return(0,e.jsx)(s.Ki.Item,{label:"",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(s.$n.Confirm,{onClick:function(){return y("archive",{key:d})},children:"Archive"}),(0,e.jsx)(s.$n.Confirm,{onClick:function(){return y("cleanup_orphan",{key:d})},children:"Cleanup"})]}),children:d},d)})})]}),(0,e.jsxs)(s.wn,{title:"Archived achievements",children:[(0,e.jsx)(s.IC,{children:"Archived achievements in the database."}),(0,e.jsx)(s.Ki,{children:m.map(function(d){return(0,e.jsx)(s.Ki.Item,{label:"",buttons:(0,e.jsx)(s.$n.Confirm,{onClick:function(){return y("cleanup_orphan",{key:d})},children:"Cleanup"}),children:d},d)})})]})]})})}},5070:(q,S,r)=>{"use strict";r.d(S,{L:()=>a});function e(O,b){(b==null||b>O.length)&&(b=O.length);for(var y=0,u=new Array(b);y=O.length?{done:!0}:{done:!1,value:O[u++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var t=void 0,a=function(){for(var O=arguments.length,b=new Array(O),y=0;y1?m-1:0),v=1;v{"use strict";r.r(S),r.d(S,{SupermatterMonitor:()=>b});var e=r(1131),s=r(360),n=r(5180),t=r(9818),a=r(9357),O=r(3521),b=function(){var m=(0,s.Oc)(),d=m.act,v=m.data;return v.active===0?(0,e.jsx)(u,{}):(0,e.jsx)(f,{})},y=function(m){return Math.log2(16+Math.max(0,m))-4},u=function(){var m=(0,s.Oc)(),d=m.act,v=m.data,_=v.supermatters,l=_===void 0?[]:_;return(0,e.jsx)(O.p8,{width:450,height:250,children:(0,e.jsx)(O.p8.Content,{scrollable:!0,children:(0,e.jsx)(n.wn,{fill:!0,title:"Detected Supermatters",buttons:(0,e.jsx)(n.$n,{icon:"sync",onClick:function(){return d("refresh")},children:"Refresh"}),children:(0,e.jsx)(n.XI,{children:l.map(function(c){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{children:c.supermatter_id+". "+c.area_name}),(0,e.jsx)(n.XI.Cell,{collapsing:!0,color:"label",children:"Integrity:"}),(0,e.jsx)(n.XI.Cell,{collapsing:!0,width:"120px",children:(0,e.jsx)(n.z2,{value:c.integrity/100,ranges:{good:[.9,1/0],average:[.5,.9],bad:[-1/0,.5]}})}),(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:(0,e.jsx)(n.$n,{onClick:function(){return d("view",{view:c.supermatter_id})},children:"Details"})})]},c.supermatter_id)})})})})})},f=function(){var m,d=(0,s.Oc)(),v=d.act,_=d.data,l=_.SM_integrity,c=_.SM_power,h=_.SM_pre_reduction_power,g=_.SM_ambienttemp,p=_.SM_ambientpressure,j=_.SM_moles,x=_.SM_gas_coefficient,C=_.gases,I=C===void 0?[]:C,P=(I??[]).filter(function(B){return B.amount>=.01}).sort(function(B,w){return w.amount-B.amount}),M=(m=Math).max.apply(m,[].concat([1],P.map(function(B){return B.portion})));return(0,e.jsx)(O.p8,{width:550,height:270,children:(0,e.jsx)(O.p8.Content,{children:(0,e.jsxs)(n.BJ,{fill:!0,children:[(0,e.jsx)(n.BJ.Item,{width:"270px",children:(0,e.jsx)(n.wn,{fill:!0,scrollable:!0,title:"Metrics",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Integrity",children:(0,e.jsx)(n.z2,{value:l/100,ranges:{good:[.9,1/0],average:[.5,.9],bad:[-1/0,.5]}})}),(0,e.jsx)(n.Ki.Item,{label:"Peak EER",children:(0,e.jsx)(n.z2,{value:h,minValue:0,maxValue:5e3,ranges:{good:[-1/0,5e3],average:[5e3,7e3],bad:[7e3,1/0]},children:(0,t.Mg)(h)+" MeV/cm3"})}),(0,e.jsx)(n.Ki.Item,{label:"Nominal EER",children:(0,e.jsx)(n.z2,{value:c,minValue:0,maxValue:5e3,ranges:{good:[-1/0,5e3],average:[5e3,7e3],bad:[7e3,1/0]},children:(0,t.Mg)(c)+" MeV/cm3"})}),(0,e.jsx)(n.Ki.Item,{label:"Gas Coefficient",children:(0,e.jsx)(n.z2,{value:x,minValue:1,maxValue:5.25,ranges:{bad:[1,1.55],average:[1.55,5.25],good:[5.25,1/0]},children:x.toFixed(2)})}),(0,e.jsx)(n.Ki.Item,{label:"Temperature",children:(0,e.jsx)(n.z2,{value:y(g),minValue:0,maxValue:y(1e4),ranges:{teal:[-1/0,y(80)],good:[y(80),y(373)],average:[y(373),y(1e3)],bad:[y(1e3),1/0]},children:(0,t.Mg)(g)+" K"})}),(0,e.jsx)(n.Ki.Item,{label:"Mole Per Tile",children:(0,e.jsx)(n.z2,{value:j,minValue:0,maxValue:12e3,ranges:{teal:[-1/0,100],average:[100,11333],good:[11333,12e3],bad:[12e3,1/0]},children:(0,t.Mg)(j)+" mol"})}),(0,e.jsx)(n.Ki.Item,{label:"Pressure",children:(0,e.jsx)(n.z2,{value:y(p),minValue:0,maxValue:y(5e4),ranges:{good:[y(1),y(300)],average:[-1/0,y(1e3)],bad:[y(1e3),1/0]},children:(0,t.Mg)(p)+" kPa"})})]})})}),(0,e.jsx)(n.BJ.Item,{grow:!0,basis:0,children:(0,e.jsx)(n.wn,{fill:!0,scrollable:!0,title:"Gases",buttons:(0,e.jsx)(n.$n,{icon:"arrow-left",onClick:function(){return v("back")},children:"Back"}),children:(0,e.jsx)(n.Ki,{children:P.map(function(B){return(0,e.jsx)(n.Ki.Item,{label:(0,a.wM)(B.name,B.name),children:(0,e.jsx)(n.z2,{color:(0,a.b_)(B.name),value:B.portion,minValue:0,maxValue:M,children:(0,t.Mg)(B.amount)+" mol ("+B.portion+"%)"})},B.name)})})})})]})})})}},5141:(q,S,r)=>{"use strict";r.r(S),r.d(S,{LatheMaterialStorage:()=>a});var e=r(1131),s=r(9845),n=r(360),t=r(5180),a=function(O){var b=(0,n.Oc)(),y=b.data,u=b.act,f=y.loaded_materials;return(0,e.jsx)(t.wn,{className:"RndConsole__LatheMaterialStorage",title:"\u0425\u0440\u0430\u043D\u0438\u043B\u0438\u0449\u0435 \u043C\u0430\u0442\u0435\u0440\u0438\u0430\u043B\u043E\u0432",children:(0,e.jsx)(t.XI,{children:f.map(function(m){var d=m.id,v=m.amount,_=m.name,l=function(p){var j=y.menu===4?"lathe_ejectsheet":"imprinter_ejectsheet";u(j,{id:d,amount:p})},c=Math.floor(v/2e3),h=v<1,g=c===1?"":"s";return(0,e.jsxs)(t.XI.Row,{className:h?"color-grey":"color-yellow",children:[(0,e.jsxs)(t.XI.Cell,{minWidth:"210px",children:["- ",_," \u2014 ",v," \u0435\u0434\u0438\u043D\u0438\u0446",(0,s.bl)(v,"\u0430","\u044B","")]}),(0,e.jsxs)(t.XI.Cell,{minWidth:"110px",children:["(",c," \u043B\u0438\u0441\u0442",(0,s.bl)(c,"","\u0430","\u043E\u0432"),")"]}),(0,e.jsx)(t.XI.Cell,{children:v>=2e3?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"eject",onClick:function(){return l(1)},children:"1x"}),(0,e.jsx)(t.$n,{icon:"eject",tooltip:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u043E\u0431\u044A\u0451\u043C",onClick:function(){return l("custom")},children:"\u0412"}),v>=2e3*5?(0,e.jsx)(t.$n,{icon:"eject",onClick:function(){return l(5)},children:"5x"}):null,(0,e.jsx)(t.$n,{icon:"eject",onClick:function(){return l(50)},children:"\u0412\u0441\u0451"})]}):null})]},d)})})})}},5150:()=>{},5161:(q,S,r)=>{"use strict";r.r(S),r.d(S,{RequestConsole:()=>O,pages:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a={0:function(){return(0,e.jsx)(b,{})},1:function(){return(0,e.jsx)(y,{purpose:"ASSISTANCE"})},2:function(){return(0,e.jsx)(y,{purpose:"SUPPLIES"})},3:function(){return(0,e.jsx)(y,{purpose:"INFO"})},4:function(){return(0,e.jsx)(u,{type:"SUCCESS"})},5:function(){return(0,e.jsx)(u,{type:"FAIL"})},6:function(){return(0,e.jsx)(f,{type:"MESSAGES"})},7:function(){return(0,e.jsx)(m,{})},8:function(){return(0,e.jsx)(d,{})},9:function(){return(0,e.jsx)(v,{})},10:function(){return(0,e.jsx)(f,{type:"SHIPPING"})},default:function(){return"WE SHOULDN'T BE HERE!"}},O=function(_){var l=(0,s.Oc)().data,c=l.screen,h=a[c]||a.default;return(0,e.jsx)(t.p8,{width:520,height:410,children:(0,e.jsx)(t.p8.Content,{scrollable:!0,children:h()})})},b=function(_){var l=(0,s.Oc)(),c=l.act,h=l.data,g=h.newmessagepriority,p=h.announcementConsole,j=h.silent,x;return g===1?x=(0,e.jsx)(n.az,{color:"red",children:"There are new messages"}):g===2&&(x=(0,e.jsx)(n.az,{color:"red",bold:!0,children:"NEW PRIORITY MESSAGES"})),(0,e.jsxs)(n.wn,{title:"Main Menu",children:[x,(0,e.jsx)(n.az,{mt:2,children:(0,e.jsx)(n.$n,{icon:g>0?"envelope-open-text":"envelope",onClick:function(){return c("setScreen",{setScreen:6})},children:"View Messages"})}),(0,e.jsxs)(n.az,{mt:2,mb:2,children:[(0,e.jsx)(n.az,{mb:.1,children:(0,e.jsx)(n.$n,{icon:"hand-paper",onClick:function(){return c("setScreen",{setScreen:1})},children:"Request Assistance"})}),(0,e.jsx)(n.az,{mb:.1,children:(0,e.jsx)(n.$n,{icon:"box",onClick:function(){return c("setScreen",{setScreen:2})},children:"Request Supplies"})}),(0,e.jsx)(n.az,{children:(0,e.jsx)(n.$n,{icon:"comment",onClick:function(){return c("setScreen",{setScreen:3})},children:"Relay Anonymous Information"})})]}),(0,e.jsxs)(n.az,{mt:2,children:[(0,e.jsx)(n.az,{mb:"1px",children:(0,e.jsx)(n.$n,{icon:"tag",onClick:function(){return c("setScreen",{setScreen:9})},children:"Print Shipping Label"})}),(0,e.jsx)(n.az,{children:(0,e.jsx)(n.$n,{icon:"clipboard-list",onClick:function(){return c("setScreen",{setScreen:10})},children:"View Shipping Logs"})})]}),!!p&&(0,e.jsx)(n.az,{mt:2,children:(0,e.jsx)(n.$n,{icon:"bullhorn",onClick:function(){return c("setScreen",{setScreen:8})},children:"Send Station-Wide Announcement"})}),(0,e.jsx)(n.az,{mt:2,children:(0,e.jsx)(n.$n,{selected:!j,icon:j?"volume-mute":"volume-up",onClick:function(){return c("toggleSilent")},children:j?"Speaker Off":"Speaker On"})})]})},y=function(_){var l=(0,s.Oc)(),c=l.act,h=l.data,g=h.department,p,j;switch(_.purpose){case"ASSISTANCE":p=h.assist_dept,j="Request assistance from another department";break;case"SUPPLIES":p=h.supply_dept,j="Request supplies from another department";break;case"INFO":p=h.info_dept,j="Relay information to another department";break}return(0,e.jsx)(n.wn,{title:j,buttons:(0,e.jsx)(n.$n,{icon:"arrow-left",onClick:function(){return c("setScreen",{setScreen:0})},children:"Back"}),children:(0,e.jsx)(n.Ki,{children:p.filter(function(x){return x!==g}).map(function(x){return(0,e.jsxs)(n.Ki.Item,{label:x,children:[(0,e.jsx)(n.$n,{icon:"envelope",onClick:function(){return c("writeInput",{write:x,priority:1})},children:"Message"}),(0,e.jsx)(n.$n,{icon:"exclamation-circle",onClick:function(){return c("writeInput",{write:x,priority:2})},children:"High Priority"})]},x)})})})},u=function(_){var l=(0,s.Oc)().act,c;switch(_.type){case"SUCCESS":c="Message sent successfully";break;case"FAIL":c="Request supplies from another department";break}return(0,e.jsx)(n.wn,{title:c,buttons:(0,e.jsx)(n.$n,{icon:"arrow-left",onClick:function(){return l("setScreen",{setScreen:0})},children:"Back"})})},f=function(_){var l=(0,s.Oc)(),c=l.act,h=l.data,g,p;switch(_.type){case"MESSAGES":g=h.message_log,p="Message Log";break;case"SHIPPING":g=h.shipping_log,p="Shipping label print log";break}return(0,e.jsx)(n.wn,{title:p,buttons:(0,e.jsx)(n.$n,{icon:"arrow-left",onClick:function(){return c("setScreen",{setScreen:0})},children:"Back"}),children:g.map(function(j){return(0,e.jsx)(n.az,{className:"RequestConsole__message",children:j},j)})})},m=function(_){var l=(0,s.Oc)(),c=l.act,h=l.data,g=h.recipient,p=h.message,j=h.msgVerified,x=h.msgStamped;return(0,e.jsxs)(n.wn,{title:"Message Authentication",buttons:(0,e.jsx)(n.$n,{icon:"arrow-left",onClick:function(){return c("setScreen",{setScreen:0})},children:"Back"}),children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Recipient",children:g}),(0,e.jsx)(n.Ki.Item,{label:"Message",children:p}),(0,e.jsx)(n.Ki.Item,{label:"Validated by",color:"green",children:j}),(0,e.jsx)(n.Ki.Item,{label:"Stamped by",color:"blue",children:x})]}),(0,e.jsx)(n.$n,{fluid:!0,mt:1,textAlign:"center",icon:"envelope",onClick:function(){return c("department",{department:g})},children:"Send Message"})]})},d=function(_){var l=(0,s.Oc)(),c=l.act,h=l.data,g=h.message,p=h.announceAuth;return(0,e.jsxs)(n.wn,{title:"Station-Wide Announcement",buttons:(0,e.jsx)(n.$n,{icon:"arrow-left",onClick:function(){return c("setScreen",{setScreen:0})},children:"Back"}),children:[(0,e.jsx)(n.$n,{icon:"edit",onClick:function(){return c("writeAnnouncement")},children:g||"Edit Message"}),p?(0,e.jsx)(n.az,{mt:1,color:"green",children:"ID verified. Authentication accepted."}):(0,e.jsx)(n.az,{mt:1,children:"Swipe your ID card to authenticate yourself."}),(0,e.jsx)(n.$n,{fluid:!0,mt:1,textAlign:"center",icon:"bullhorn",disabled:!(p&&g),onClick:function(){return c("sendAnnouncement")},children:"Send Announcement"})]})},v=function(_){var l=(0,s.Oc)(),c=l.act,h=l.data,g=h.shipDest,p=h.msgVerified,j=h.ship_dept;return(0,e.jsxs)(n.wn,{title:"Print Shipping Label",buttons:(0,e.jsx)(n.$n,{icon:"arrow-left",onClick:function(){return c("setScreen",{setScreen:0})},children:"Back"}),children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Destination",children:g}),(0,e.jsx)(n.Ki.Item,{label:"Validated by",children:p})]}),(0,e.jsx)(n.$n,{fluid:!0,mt:1,textAlign:"center",icon:"print",disabled:!(g&&p),onClick:function(){return c("printLabel")},children:"Print Label"}),(0,e.jsx)(n.wn,{title:"Destinations",mt:1,children:(0,e.jsx)(n.Ki,{children:j.map(function(x){return(0,e.jsx)(n.Ki.Item,{label:x,children:(0,e.jsx)(n.$n,{selected:g===x,onClick:function(){return c("shipSelect",{shipSelect:x})},children:g===x?"Selected":"Select"})},x)})})})]})}},5180:(q,S,r)=>{"use strict";r.d(S,{zv:()=>e.z,y5:()=>t,Z8:()=>u,Y0:()=>_,az:()=>m.a,$n:()=>T,D1:()=>le,t1:()=>Le,Nt:()=>ze,BK:()=>Ze,Rr:()=>Ot,cG:()=>_t.c,Hg:()=>Nt.H,Hx:()=>nr.H,ms:()=>xi,so:()=>jr,xA:()=>ji,In:()=>j,_V:()=>Ci._,c_:()=>Wn,xO:()=>qn,pd:()=>Br,HG:()=>se,N6:()=>Et,Wx:()=>Lt,Ki:()=>pt.K,aF:()=>Ar,tx:()=>rr,IC:()=>fr,Q7:()=>ir,gm:()=>Ui,ND:()=>Yr,z2:()=>He,SM:()=>mo,wn:()=>Ro,Ap:()=>Tr,BJ:()=>An,XI:()=>yr,tU:()=>ia,fs:()=>go,qT:()=>aa,m_:()=>C.m,wj:()=>la});var e=r(5775),s=r(1131),n=r(7003),t=function(k){var X=k.children,H=(0,n.useRef)(null);return(0,n.useEffect)(function(){var Y=setTimeout(function(){var ee;(ee=H.current)==null||ee.focus()},1);return function(){clearTimeout(Y)}},[]),(0,s.jsx)("div",{ref:H,tabIndex:-1,children:X})};function a(k,X){if(typeof X!="function"&&X!==null)throw new TypeError("Super expression must either be null or a function");k.prototype=Object.create(X&&X.prototype,{constructor:{value:k,writable:!0,configurable:!0}}),X&&O(k,X)}function O(k,X){return O=Object.setPrototypeOf||function(Y,ee){return Y.__proto__=ee,Y},O(k,X)}var b=1e3,y=1e3,u=function(k){"use strict";a(X,k);function X(Y){var ee;return ee=k.call(this,Y)||this,ee.state={hidden:!1},ee}var H=X.prototype;return H.createTimer=function(){var ee=this,oe=this.props,Ce=oe.interval,Pe=Ce===void 0?b:Ce,De=oe.time,Ie=De===void 0?y:De;clearInterval(this.interval),clearTimeout(this.timer),this.setState({hidden:!1}),this.interval=setInterval(function(){ee.setState({hidden:!0}),ee.timer=setTimeout(function(){ee.setState({hidden:!1})},Ie)},Pe+Ie)},H.componentDidMount=function(){this.createTimer()},H.componentDidUpdate=function(ee){(ee.interval!==this.props.interval||ee.time!==this.props.time)&&this.createTimer()},H.componentWillUnmount=function(){clearInterval(this.interval),clearTimeout(this.timer)},H.render=function(){return(0,s.jsx)("span",{style:{visibility:this.state.hidden?"hidden":"visible"},children:this.props.children})},X}(n.Component),f=r(185),m=r(9648);/** + the code than this one.`}),(0,e.jsx)(s.Ki,{children:f.map(function(d){return(0,e.jsx)(s.Ki.Item,{label:"",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(s.$n.Confirm,{onClick:function(){return y("archive",{key:d})},children:"Archive"}),(0,e.jsx)(s.$n.Confirm,{onClick:function(){return y("cleanup_orphan",{key:d})},children:"Cleanup"})]}),children:d},d)})})]}),(0,e.jsxs)(s.wn,{title:"Archived achievements",children:[(0,e.jsx)(s.IC,{children:"Archived achievements in the database."}),(0,e.jsx)(s.Ki,{children:m.map(function(d){return(0,e.jsx)(s.Ki.Item,{label:"",buttons:(0,e.jsx)(s.$n.Confirm,{onClick:function(){return y("cleanup_orphan",{key:d})},children:"Cleanup"}),children:d},d)})})]})]})})}},5070:(q,S,r)=>{"use strict";r.d(S,{L:()=>a});function e(b,O){(O==null||O>b.length)&&(O=b.length);for(var y=0,u=new Array(O);y=b.length?{done:!0}:{done:!1,value:b[u++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var t=void 0,a=function(){for(var b=arguments.length,O=new Array(b),y=0;y1?m-1:0),v=1;v{"use strict";r.r(S),r.d(S,{SupermatterMonitor:()=>O});var e=r(1131),s=r(360),n=r(5180),t=r(9818),a=r(9357),b=r(3521),O=function(){var m=(0,s.Oc)(),d=m.act,v=m.data;return v.active===0?(0,e.jsx)(u,{}):(0,e.jsx)(f,{})},y=function(m){return Math.log2(16+Math.max(0,m))-4},u=function(){var m=(0,s.Oc)(),d=m.act,v=m.data,_=v.supermatters,l=_===void 0?[]:_;return(0,e.jsx)(b.p8,{width:450,height:250,children:(0,e.jsx)(b.p8.Content,{scrollable:!0,children:(0,e.jsx)(n.wn,{fill:!0,title:"Detected Supermatters",buttons:(0,e.jsx)(n.$n,{icon:"sync",onClick:function(){return d("refresh")},children:"Refresh"}),children:(0,e.jsx)(n.XI,{children:l.map(function(c){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{children:c.supermatter_id+". "+c.area_name}),(0,e.jsx)(n.XI.Cell,{collapsing:!0,color:"label",children:"Integrity:"}),(0,e.jsx)(n.XI.Cell,{collapsing:!0,width:"120px",children:(0,e.jsx)(n.z2,{value:c.integrity/100,ranges:{good:[.9,1/0],average:[.5,.9],bad:[-1/0,.5]}})}),(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:(0,e.jsx)(n.$n,{onClick:function(){return d("view",{view:c.supermatter_id})},children:"Details"})})]},c.supermatter_id)})})})})})},f=function(){var m,d=(0,s.Oc)(),v=d.act,_=d.data,l=_.SM_integrity,c=_.SM_power,h=_.SM_pre_reduction_power,g=_.SM_ambienttemp,p=_.SM_ambientpressure,j=_.SM_moles,x=_.SM_gas_coefficient,C=_.gases,I=C===void 0?[]:C,P=(I??[]).filter(function(B){return B.amount>=.01}).sort(function(B,w){return w.amount-B.amount}),M=(m=Math).max.apply(m,[].concat([1],P.map(function(B){return B.portion})));return(0,e.jsx)(b.p8,{width:550,height:270,children:(0,e.jsx)(b.p8.Content,{children:(0,e.jsxs)(n.BJ,{fill:!0,children:[(0,e.jsx)(n.BJ.Item,{width:"270px",children:(0,e.jsx)(n.wn,{fill:!0,scrollable:!0,title:"Metrics",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Integrity",children:(0,e.jsx)(n.z2,{value:l/100,ranges:{good:[.9,1/0],average:[.5,.9],bad:[-1/0,.5]}})}),(0,e.jsx)(n.Ki.Item,{label:"Peak EER",children:(0,e.jsx)(n.z2,{value:h,minValue:0,maxValue:5e3,ranges:{good:[-1/0,5e3],average:[5e3,7e3],bad:[7e3,1/0]},children:(0,t.Mg)(h)+" MeV/cm3"})}),(0,e.jsx)(n.Ki.Item,{label:"Nominal EER",children:(0,e.jsx)(n.z2,{value:c,minValue:0,maxValue:5e3,ranges:{good:[-1/0,5e3],average:[5e3,7e3],bad:[7e3,1/0]},children:(0,t.Mg)(c)+" MeV/cm3"})}),(0,e.jsx)(n.Ki.Item,{label:"Gas Coefficient",children:(0,e.jsx)(n.z2,{value:x,minValue:1,maxValue:5.25,ranges:{bad:[1,1.55],average:[1.55,5.25],good:[5.25,1/0]},children:x.toFixed(2)})}),(0,e.jsx)(n.Ki.Item,{label:"Temperature",children:(0,e.jsx)(n.z2,{value:y(g),minValue:0,maxValue:y(1e4),ranges:{teal:[-1/0,y(80)],good:[y(80),y(373)],average:[y(373),y(1e3)],bad:[y(1e3),1/0]},children:(0,t.Mg)(g)+" K"})}),(0,e.jsx)(n.Ki.Item,{label:"Mole Per Tile",children:(0,e.jsx)(n.z2,{value:j,minValue:0,maxValue:12e3,ranges:{teal:[-1/0,100],average:[100,11333],good:[11333,12e3],bad:[12e3,1/0]},children:(0,t.Mg)(j)+" mol"})}),(0,e.jsx)(n.Ki.Item,{label:"Pressure",children:(0,e.jsx)(n.z2,{value:y(p),minValue:0,maxValue:y(5e4),ranges:{good:[y(1),y(300)],average:[-1/0,y(1e3)],bad:[y(1e3),1/0]},children:(0,t.Mg)(p)+" kPa"})})]})})}),(0,e.jsx)(n.BJ.Item,{grow:!0,basis:0,children:(0,e.jsx)(n.wn,{fill:!0,scrollable:!0,title:"Gases",buttons:(0,e.jsx)(n.$n,{icon:"arrow-left",onClick:function(){return v("back")},children:"Back"}),children:(0,e.jsx)(n.Ki,{children:P.map(function(B){return(0,e.jsx)(n.Ki.Item,{label:(0,a.wM)(B.name,B.name),children:(0,e.jsx)(n.z2,{color:(0,a.b_)(B.name),value:B.portion,minValue:0,maxValue:M,children:(0,t.Mg)(B.amount)+" mol ("+B.portion+"%)"})},B.name)})})})})]})})})}},5141:(q,S,r)=>{"use strict";r.r(S),r.d(S,{LatheMaterialStorage:()=>a});var e=r(1131),s=r(9845),n=r(360),t=r(5180),a=function(b){var O=(0,n.Oc)(),y=O.data,u=O.act,f=y.loaded_materials;return(0,e.jsx)(t.wn,{className:"RndConsole__LatheMaterialStorage",title:"\u0425\u0440\u0430\u043D\u0438\u043B\u0438\u0449\u0435 \u043C\u0430\u0442\u0435\u0440\u0438\u0430\u043B\u043E\u0432",children:(0,e.jsx)(t.XI,{children:f.map(function(m){var d=m.id,v=m.amount,_=m.name,l=function(p){var j=y.menu===4?"lathe_ejectsheet":"imprinter_ejectsheet";u(j,{id:d,amount:p})},c=Math.floor(v/2e3),h=v<1,g=c===1?"":"s";return(0,e.jsxs)(t.XI.Row,{className:h?"color-grey":"color-yellow",children:[(0,e.jsxs)(t.XI.Cell,{minWidth:"210px",children:["- ",_," \u2014 ",v," \u0435\u0434\u0438\u043D\u0438\u0446",(0,s.bl)(v,"\u0430","\u044B","")]}),(0,e.jsxs)(t.XI.Cell,{minWidth:"110px",children:["(",c," \u043B\u0438\u0441\u0442",(0,s.bl)(c,"","\u0430","\u043E\u0432"),")"]}),(0,e.jsx)(t.XI.Cell,{children:v>=2e3?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"eject",onClick:function(){return l(1)},children:"1x"}),(0,e.jsx)(t.$n,{icon:"eject",tooltip:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u043E\u0431\u044A\u0451\u043C",onClick:function(){return l("custom")},children:"\u0412"}),v>=2e3*5?(0,e.jsx)(t.$n,{icon:"eject",onClick:function(){return l(5)},children:"5x"}):null,(0,e.jsx)(t.$n,{icon:"eject",onClick:function(){return l(50)},children:"\u0412\u0441\u0451"})]}):null})]},d)})})})}},5150:()=>{},5161:(q,S,r)=>{"use strict";r.r(S),r.d(S,{RequestConsole:()=>b,pages:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a={0:function(){return(0,e.jsx)(O,{})},1:function(){return(0,e.jsx)(y,{purpose:"ASSISTANCE"})},2:function(){return(0,e.jsx)(y,{purpose:"SUPPLIES"})},3:function(){return(0,e.jsx)(y,{purpose:"INFO"})},4:function(){return(0,e.jsx)(u,{type:"SUCCESS"})},5:function(){return(0,e.jsx)(u,{type:"FAIL"})},6:function(){return(0,e.jsx)(f,{type:"MESSAGES"})},7:function(){return(0,e.jsx)(m,{})},8:function(){return(0,e.jsx)(d,{})},9:function(){return(0,e.jsx)(v,{})},10:function(){return(0,e.jsx)(f,{type:"SHIPPING"})},default:function(){return"WE SHOULDN'T BE HERE!"}},b=function(_){var l=(0,s.Oc)().data,c=l.screen,h=a[c]||a.default;return(0,e.jsx)(t.p8,{width:520,height:410,children:(0,e.jsx)(t.p8.Content,{scrollable:!0,children:h()})})},O=function(_){var l=(0,s.Oc)(),c=l.act,h=l.data,g=h.newmessagepriority,p=h.announcementConsole,j=h.silent,x;return g===1?x=(0,e.jsx)(n.az,{color:"red",children:"There are new messages"}):g===2&&(x=(0,e.jsx)(n.az,{color:"red",bold:!0,children:"NEW PRIORITY MESSAGES"})),(0,e.jsxs)(n.wn,{title:"Main Menu",children:[x,(0,e.jsx)(n.az,{mt:2,children:(0,e.jsx)(n.$n,{icon:g>0?"envelope-open-text":"envelope",onClick:function(){return c("setScreen",{setScreen:6})},children:"View Messages"})}),(0,e.jsxs)(n.az,{mt:2,mb:2,children:[(0,e.jsx)(n.az,{mb:.1,children:(0,e.jsx)(n.$n,{icon:"hand-paper",onClick:function(){return c("setScreen",{setScreen:1})},children:"Request Assistance"})}),(0,e.jsx)(n.az,{mb:.1,children:(0,e.jsx)(n.$n,{icon:"box",onClick:function(){return c("setScreen",{setScreen:2})},children:"Request Supplies"})}),(0,e.jsx)(n.az,{children:(0,e.jsx)(n.$n,{icon:"comment",onClick:function(){return c("setScreen",{setScreen:3})},children:"Relay Anonymous Information"})})]}),(0,e.jsxs)(n.az,{mt:2,children:[(0,e.jsx)(n.az,{mb:"1px",children:(0,e.jsx)(n.$n,{icon:"tag",onClick:function(){return c("setScreen",{setScreen:9})},children:"Print Shipping Label"})}),(0,e.jsx)(n.az,{children:(0,e.jsx)(n.$n,{icon:"clipboard-list",onClick:function(){return c("setScreen",{setScreen:10})},children:"View Shipping Logs"})})]}),!!p&&(0,e.jsx)(n.az,{mt:2,children:(0,e.jsx)(n.$n,{icon:"bullhorn",onClick:function(){return c("setScreen",{setScreen:8})},children:"Send Station-Wide Announcement"})}),(0,e.jsx)(n.az,{mt:2,children:(0,e.jsx)(n.$n,{selected:!j,icon:j?"volume-mute":"volume-up",onClick:function(){return c("toggleSilent")},children:j?"Speaker Off":"Speaker On"})})]})},y=function(_){var l=(0,s.Oc)(),c=l.act,h=l.data,g=h.department,p,j;switch(_.purpose){case"ASSISTANCE":p=h.assist_dept,j="Request assistance from another department";break;case"SUPPLIES":p=h.supply_dept,j="Request supplies from another department";break;case"INFO":p=h.info_dept,j="Relay information to another department";break}return(0,e.jsx)(n.wn,{title:j,buttons:(0,e.jsx)(n.$n,{icon:"arrow-left",onClick:function(){return c("setScreen",{setScreen:0})},children:"Back"}),children:(0,e.jsx)(n.Ki,{children:p.filter(function(x){return x!==g}).map(function(x){return(0,e.jsxs)(n.Ki.Item,{label:x,children:[(0,e.jsx)(n.$n,{icon:"envelope",onClick:function(){return c("writeInput",{write:x,priority:1})},children:"Message"}),(0,e.jsx)(n.$n,{icon:"exclamation-circle",onClick:function(){return c("writeInput",{write:x,priority:2})},children:"High Priority"})]},x)})})})},u=function(_){var l=(0,s.Oc)().act,c;switch(_.type){case"SUCCESS":c="Message sent successfully";break;case"FAIL":c="Request supplies from another department";break}return(0,e.jsx)(n.wn,{title:c,buttons:(0,e.jsx)(n.$n,{icon:"arrow-left",onClick:function(){return l("setScreen",{setScreen:0})},children:"Back"})})},f=function(_){var l=(0,s.Oc)(),c=l.act,h=l.data,g,p;switch(_.type){case"MESSAGES":g=h.message_log,p="Message Log";break;case"SHIPPING":g=h.shipping_log,p="Shipping label print log";break}return(0,e.jsx)(n.wn,{title:p,buttons:(0,e.jsx)(n.$n,{icon:"arrow-left",onClick:function(){return c("setScreen",{setScreen:0})},children:"Back"}),children:g.map(function(j){return(0,e.jsx)(n.az,{className:"RequestConsole__message",children:j},j)})})},m=function(_){var l=(0,s.Oc)(),c=l.act,h=l.data,g=h.recipient,p=h.message,j=h.msgVerified,x=h.msgStamped;return(0,e.jsxs)(n.wn,{title:"Message Authentication",buttons:(0,e.jsx)(n.$n,{icon:"arrow-left",onClick:function(){return c("setScreen",{setScreen:0})},children:"Back"}),children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Recipient",children:g}),(0,e.jsx)(n.Ki.Item,{label:"Message",children:p}),(0,e.jsx)(n.Ki.Item,{label:"Validated by",color:"green",children:j}),(0,e.jsx)(n.Ki.Item,{label:"Stamped by",color:"blue",children:x})]}),(0,e.jsx)(n.$n,{fluid:!0,mt:1,textAlign:"center",icon:"envelope",onClick:function(){return c("department",{department:g})},children:"Send Message"})]})},d=function(_){var l=(0,s.Oc)(),c=l.act,h=l.data,g=h.message,p=h.announceAuth;return(0,e.jsxs)(n.wn,{title:"Station-Wide Announcement",buttons:(0,e.jsx)(n.$n,{icon:"arrow-left",onClick:function(){return c("setScreen",{setScreen:0})},children:"Back"}),children:[(0,e.jsx)(n.$n,{icon:"edit",onClick:function(){return c("writeAnnouncement")},children:g||"Edit Message"}),p?(0,e.jsx)(n.az,{mt:1,color:"green",children:"ID verified. Authentication accepted."}):(0,e.jsx)(n.az,{mt:1,children:"Swipe your ID card to authenticate yourself."}),(0,e.jsx)(n.$n,{fluid:!0,mt:1,textAlign:"center",icon:"bullhorn",disabled:!(p&&g),onClick:function(){return c("sendAnnouncement")},children:"Send Announcement"})]})},v=function(_){var l=(0,s.Oc)(),c=l.act,h=l.data,g=h.shipDest,p=h.msgVerified,j=h.ship_dept;return(0,e.jsxs)(n.wn,{title:"Print Shipping Label",buttons:(0,e.jsx)(n.$n,{icon:"arrow-left",onClick:function(){return c("setScreen",{setScreen:0})},children:"Back"}),children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Destination",children:g}),(0,e.jsx)(n.Ki.Item,{label:"Validated by",children:p})]}),(0,e.jsx)(n.$n,{fluid:!0,mt:1,textAlign:"center",icon:"print",disabled:!(g&&p),onClick:function(){return c("printLabel")},children:"Print Label"}),(0,e.jsx)(n.wn,{title:"Destinations",mt:1,children:(0,e.jsx)(n.Ki,{children:j.map(function(x){return(0,e.jsx)(n.Ki.Item,{label:x,children:(0,e.jsx)(n.$n,{selected:g===x,onClick:function(){return c("shipSelect",{shipSelect:x})},children:g===x?"Selected":"Select"})},x)})})})]})}},5180:(q,S,r)=>{"use strict";r.d(S,{zv:()=>e.z,y5:()=>t,Z8:()=>u,Y0:()=>_,az:()=>m.a,$n:()=>T,D1:()=>le,t1:()=>Le,Nt:()=>ze,BK:()=>Ze,Rr:()=>Ot,cG:()=>_t.c,Hg:()=>Nt.H,Hx:()=>nr.H,ms:()=>xi,so:()=>jr,xA:()=>ji,In:()=>j,_V:()=>Ci._,c_:()=>Wn,xO:()=>qn,pd:()=>Br,HG:()=>se,N6:()=>Et,Wx:()=>Lt,Ki:()=>pt.K,aF:()=>Ar,tx:()=>rr,IC:()=>fr,Q7:()=>ir,gm:()=>Ui,ND:()=>Yr,z2:()=>He,SM:()=>mo,wn:()=>Ro,Ap:()=>Tr,BJ:()=>An,XI:()=>yr,tU:()=>ia,fs:()=>go,qT:()=>aa,m_:()=>C.m,wj:()=>la});var e=r(5775),s=r(1131),n=r(7003),t=function(k){var X=k.children,H=(0,n.useRef)(null);return(0,n.useEffect)(function(){var Y=setTimeout(function(){var ee;(ee=H.current)==null||ee.focus()},1);return function(){clearTimeout(Y)}},[]),(0,s.jsx)("div",{ref:H,tabIndex:-1,children:X})};function a(k,X){if(typeof X!="function"&&X!==null)throw new TypeError("Super expression must either be null or a function");k.prototype=Object.create(X&&X.prototype,{constructor:{value:k,writable:!0,configurable:!0}}),X&&b(k,X)}function b(k,X){return b=Object.setPrototypeOf||function(Y,ee){return Y.__proto__=ee,Y},b(k,X)}var O=1e3,y=1e3,u=function(k){"use strict";a(X,k);function X(Y){var ee;return ee=k.call(this,Y)||this,ee.state={hidden:!1},ee}var H=X.prototype;return H.createTimer=function(){var ee=this,oe=this.props,Ce=oe.interval,Pe=Ce===void 0?O:Ce,De=oe.time,Ie=De===void 0?y:De;clearInterval(this.interval),clearTimeout(this.timer),this.setState({hidden:!1}),this.interval=setInterval(function(){ee.setState({hidden:!0}),ee.timer=setTimeout(function(){ee.setState({hidden:!1})},Ie)},Pe+Ie)},H.componentDidMount=function(){this.createTimer()},H.componentDidUpdate=function(ee){(ee.interval!==this.props.interval||ee.time!==this.props.time)&&this.createTimer()},H.componentWillUnmount=function(){clearInterval(this.interval),clearTimeout(this.timer)},H.render=function(){return(0,s.jsx)("span",{style:{visibility:this.state.hidden?"hidden":"visible"},children:this.props.children})},X}(n.Component),f=r(185),m=r(9648);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT @@ -237,55 +237,55 @@ User Agent: `+navigator.userAgent;Byond.sendMessage({type:"log",ns:m,message:l}) * @file * @copyright 2020 Aleksej Komarov * @license MIT - */},5201:(q,S,r)=>{"use strict";r.r(S),r.d(S,{DestinationTagger:()=>O,DestinationTaggerCC:()=>y,DestinationTaggerStation:()=>b});var e=r(1131),s=r(360),n=r(7003),t=r(5180),a=r(3521),O=function(u){var f=(0,n.useState)("station"),m=f[0],d=f[1];return(0,e.jsx)(a.p8,{width:395,height:350,children:(0,e.jsx)(a.p8.Content,{scrollable:!0,children:(0,e.jsxs)(t.az,{fillPositionedParent:!0,children:[(0,e.jsxs)(t.tU,{children:[(0,e.jsx)(t.tU.Tab,{selected:m==="station",onClick:function(){return d("station")},children:"Station Taggers"},"Station Taggers"),(0,e.jsx)(t.tU.Tab,{selected:m==="centcomm",onClick:function(){return d("centcomm")},children:"CC Taggers"},"CC Taggers"),(0,e.jsx)(t.tU.Tab,{selected:m==="corp",onClick:function(){return d("corp")},children:"Corp Taggers"},"Corp Taggers")]}),m==="station"?(0,e.jsx)(b,{}):(0,e.jsx)(y,{iscorp:m==="corp"})]})})})},b=function(u){var f=(0,s.Oc)(),m=f.act,d=f.data,v=d.destinations,_=d.selected_destination_id,l=v[_-1],c;return(0,e.jsxs)(t.wn,{title:"TagMaster 4.0",textAlign:"center",children:[(0,e.jsxs)(t.IC,{textAlign:"center",style:{fontStyle:"normal"},children:["Destination: ",(c=l.name)!=null?c:"None"]}),(0,e.jsx)(t.az,{children:(0,e.jsx)(t.so,{wrap:"wrap",align:"start",justify:"center",children:v.map(function(h,g){return(0,e.jsx)(t.so.Item,{m:"2px",children:(0,e.jsx)(t.$n,{width:"118px",textAlign:"center",selected:h.id===_,onClick:function(){return m("select_destination",{destination:h.id})},children:h.name})},g)})})})]})},y=function(u){var f=(0,s.Oc)(),m=f.act,d=f.data,v=d.selected_centcom_id,_=u.iscorp?d.corporation_destinations:d.centcom_destinations;return(0,e.jsxs)(t.wn,{title:"CCTagMaster 1.1",textAlign:"center",children:[(0,e.jsxs)(t.IC,{textAlign:"center",style:{fontStyle:"normal"},children:["Destination: ",v??"None"]}),(0,e.jsx)(t.az,{children:(0,e.jsx)(t.so,{wrap:"wrap",align:"start",justify:"center",children:_.map(function(l,c){return(0,e.jsx)(t.so.Item,{m:"2px",children:(0,e.jsx)(t.$n,{width:"220px",textAlign:"center",selected:l.name===v,onClick:function(){return m("select_cc_destination",{destination:l.name})},children:l.name})},c)})})})]})}},5237:(q,S,r)=>{"use strict";r.r(S),r.d(S,{BAYS:()=>y,DELAYS:()=>a,EFFECTS_ALL:()=>d,EFFECTS_HARM:()=>m,EFFECTS_LOAD:()=>u,EFFECTS_NORMAL:()=>f,POD_GREY:()=>s,REVERSE_OPTIONS:()=>t,REV_DELAYS:()=>O,SOUNDS:()=>b,TABPAGES:()=>n});var e=r(3910),s={color:"grey"},n=[{title:"\u041F\u0440\u043E\u0441\u043C\u043E\u0442\u0440 \u043A\u0430\u043F\u0441\u0443\u043B\u044B",component:e.TabPod},{title:"\u041F\u0440\u043E\u0441\u043C\u043E\u0442\u0440 \u0430\u043D\u0433\u0430\u0440\u0430",component:e.TabBay},{title:"\u041F\u0440\u043E\u0441\u043C\u043E\u0442\u0440 \u043C\u0435\u0441\u0442\u0430 \u0432\u044B\u0433\u0440\u0443\u0437\u043A\u0438.",component:e.TabDrop}],t=[{title:"\u041C\u043E\u0431\u044B",key:"Mobs",icon:"user"},{title:`\u041D\u0435 \u0437\u0430\u043A\u0440\u0435\u043F\u043B\u0451\u043D\u043D\u044B\u0435 + */},5201:(q,S,r)=>{"use strict";r.r(S),r.d(S,{DestinationTagger:()=>b,DestinationTaggerCC:()=>y,DestinationTaggerStation:()=>O});var e=r(1131),s=r(360),n=r(7003),t=r(5180),a=r(3521),b=function(u){var f=(0,n.useState)("station"),m=f[0],d=f[1];return(0,e.jsx)(a.p8,{width:395,height:350,children:(0,e.jsx)(a.p8.Content,{scrollable:!0,children:(0,e.jsxs)(t.az,{fillPositionedParent:!0,children:[(0,e.jsxs)(t.tU,{children:[(0,e.jsx)(t.tU.Tab,{selected:m==="station",onClick:function(){return d("station")},children:"Station Taggers"},"Station Taggers"),(0,e.jsx)(t.tU.Tab,{selected:m==="centcomm",onClick:function(){return d("centcomm")},children:"CC Taggers"},"CC Taggers"),(0,e.jsx)(t.tU.Tab,{selected:m==="corp",onClick:function(){return d("corp")},children:"Corp Taggers"},"Corp Taggers")]}),m==="station"?(0,e.jsx)(O,{}):(0,e.jsx)(y,{iscorp:m==="corp"})]})})})},O=function(u){var f=(0,s.Oc)(),m=f.act,d=f.data,v=d.destinations,_=d.selected_destination_id,l=v[_-1],c;return(0,e.jsxs)(t.wn,{title:"TagMaster 4.0",textAlign:"center",children:[(0,e.jsxs)(t.IC,{textAlign:"center",style:{fontStyle:"normal"},children:["Destination: ",(c=l.name)!=null?c:"None"]}),(0,e.jsx)(t.az,{children:(0,e.jsx)(t.so,{wrap:"wrap",align:"start",justify:"center",children:v.map(function(h,g){return(0,e.jsx)(t.so.Item,{m:"2px",children:(0,e.jsx)(t.$n,{width:"118px",textAlign:"center",selected:h.id===_,onClick:function(){return m("select_destination",{destination:h.id})},children:h.name})},g)})})})]})},y=function(u){var f=(0,s.Oc)(),m=f.act,d=f.data,v=d.selected_centcom_id,_=u.iscorp?d.corporation_destinations:d.centcom_destinations;return(0,e.jsxs)(t.wn,{title:"CCTagMaster 1.1",textAlign:"center",children:[(0,e.jsxs)(t.IC,{textAlign:"center",style:{fontStyle:"normal"},children:["Destination: ",v??"None"]}),(0,e.jsx)(t.az,{children:(0,e.jsx)(t.so,{wrap:"wrap",align:"start",justify:"center",children:_.map(function(l,c){return(0,e.jsx)(t.so.Item,{m:"2px",children:(0,e.jsx)(t.$n,{width:"220px",textAlign:"center",selected:l.name===v,onClick:function(){return m("select_cc_destination",{destination:l.name})},children:l.name})},c)})})})]})}},5237:(q,S,r)=>{"use strict";r.r(S),r.d(S,{BAYS:()=>y,DELAYS:()=>a,EFFECTS_ALL:()=>d,EFFECTS_HARM:()=>m,EFFECTS_LOAD:()=>u,EFFECTS_NORMAL:()=>f,POD_GREY:()=>s,REVERSE_OPTIONS:()=>t,REV_DELAYS:()=>b,SOUNDS:()=>O,TABPAGES:()=>n});var e=r(3910),s={color:"grey"},n=[{title:"\u041F\u0440\u043E\u0441\u043C\u043E\u0442\u0440 \u043A\u0430\u043F\u0441\u0443\u043B\u044B",component:e.TabPod},{title:"\u041F\u0440\u043E\u0441\u043C\u043E\u0442\u0440 \u0430\u043D\u0433\u0430\u0440\u0430",component:e.TabBay},{title:"\u041F\u0440\u043E\u0441\u043C\u043E\u0442\u0440 \u043C\u0435\u0441\u0442\u0430 \u0432\u044B\u0433\u0440\u0443\u0437\u043A\u0438.",component:e.TabDrop}],t=[{title:"\u041C\u043E\u0431\u044B",key:"Mobs",icon:"user"},{title:`\u041D\u0435 \u0437\u0430\u043A\u0440\u0435\u043F\u043B\u0451\u043D\u043D\u044B\u0435 \u041E\u0431\u044A\u0435\u043A\u0442\u044B`,key:"Unanchored",icon:"cube"},{title:`\u0417\u0430\u043A\u0440\u0435\u043F\u043B\u0451\u043D\u043D\u044B\u0435 \u041E\u0431\u044A\u0435\u043A\u0442\u044B`,key:"Anchored",icon:"anchor"},{title:"\u041C\u0435\u0445\u0438",key:"Mecha",icon:"truck"}],a=[{title:"Pre",tooltip:"\u0412\u0440\u0435\u043C\u044F \u0434\u043E \u043F\u0440\u0438\u0431\u044B\u0442\u0438\u044F \u043A\u0430\u043F\u0441\u0443\u043B\u044B \u043D\u0430 \u0441\u0442\u0430\u043D\u0446\u0438\u044E"},{title:"Fall",tooltip:`\u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C \u0430\u043D\u0438\u043C\u0430\u0446\u0438\u0438 \u043F\u0430\u0434\u0435\u043D\u0438\u044F \u043A\u0430\u043F\u0441\u0443\u043B`},{title:"Open",tooltip:"\u0412\u0440\u0435\u043C\u044F, \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u043E\u0435 \u043A\u0430\u043F\u0441\u0443\u043B\u0435 \u0434\u043B\u044F \u043E\u0442\u043A\u0440\u044B\u0442\u0438\u044F \u043F\u043E\u0441\u043B\u0435 \u043F\u0440\u0438\u0437\u0435\u043C\u043B\u0435\u043D\u0438\u044F"},{title:"Exit",tooltip:`\u0412\u0440\u0435\u043C\u044F \u0434\u043E \u043E\u0442\u043B\u0435\u0442\u0430 \u043A\u0430\u043F\u0441\u0443\u043B\u044B -\u043F\u043E\u0441\u043B\u0435 \u043E\u0442\u043A\u0440\u044B\u0442\u0438\u044F`}],O=[{title:"Pre",tooltip:"\u0412\u0440\u0435\u043C\u044F \u0434\u043E \u043F\u043E\u044F\u0432\u043B\u0435\u043D\u0438\u044F \u043A\u0430\u043F\u0441\u0443\u043B\u044B \u043D\u0430\u0434 \u0442\u043E\u0447\u043A\u043E\u0439 \u0432\u044B\u0441\u0430\u0434\u043A\u0438"},{title:"Fall",tooltip:`\u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C \u0430\u043D\u0438\u043C\u0430\u0446\u0438\u0438 +\u043F\u043E\u0441\u043B\u0435 \u043E\u0442\u043A\u0440\u044B\u0442\u0438\u044F`}],b=[{title:"Pre",tooltip:"\u0412\u0440\u0435\u043C\u044F \u0434\u043E \u043F\u043E\u044F\u0432\u043B\u0435\u043D\u0438\u044F \u043A\u0430\u043F\u0441\u0443\u043B\u044B \u043D\u0430\u0434 \u0442\u043E\u0447\u043A\u043E\u0439 \u0432\u044B\u0441\u0430\u0434\u043A\u0438"},{title:"Fall",tooltip:`\u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C \u0430\u043D\u0438\u043C\u0430\u0446\u0438\u0438 \u043F\u0430\u0434\u0435\u043D\u0438\u044F \u043A\u0430\u043F\u0441\u0443\u043B`},{title:"Open",tooltip:"\u0412\u0440\u0435\u043C\u044F, \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u043E\u0435 \u043A\u0430\u043F\u0441\u0443\u043B\u0435 \u0434\u043B\u044F \u043E\u0442\u043A\u0440\u044B\u0442\u0438\u044F \u043F\u043E\u0441\u043B\u0435 \u043F\u0440\u0438\u0437\u0435\u043C\u043B\u0435\u043D\u0438\u044F"},{title:"Exit",tooltip:`\u0412\u0440\u0435\u043C\u044F \u0434\u043E \u043E\u0442\u043B\u0435\u0442\u0430 \u043A\u0430\u043F\u0441\u0443\u043B\u044B -\u043F\u043E\u0441\u043B\u0435 \u043E\u0442\u043A\u0440\u044B\u0442\u0438\u044F`}],b=[{title:"Fall",act:"fallingSound",tooltip:`\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F, \u043F\u043E\u043A\u0430 \u043A\u0430\u043F\u0441\u0443\u043B\u0430 \u043F\u0430\u0434\u0430\u0435\u0442, \u0438 \u0437\u0430\u043A\u0430\u043D\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044F +\u043F\u043E\u0441\u043B\u0435 \u043E\u0442\u043A\u0440\u044B\u0442\u0438\u044F`}],O=[{title:"Fall",act:"fallingSound",tooltip:`\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F, \u043F\u043E\u043A\u0430 \u043A\u0430\u043F\u0441\u0443\u043B\u0430 \u043F\u0430\u0434\u0430\u0435\u0442, \u0438 \u0437\u0430\u043A\u0430\u043D\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044F \u043A\u043E\u0433\u0434\u0430 \u043A\u0430\u043F\u0441\u0443\u043B\u0430 \u043F\u0440\u0438\u0437\u0435\u043C\u043B\u044F\u0435\u0442\u0441\u044F`},{title:"Land",act:"landingSound",tooltip:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043F\u043E\u0441\u043B\u0435 \u043F\u0440\u0438\u0437\u0435\u043C\u043B\u0435\u043D\u0438\u044F \u043A\u0430\u043F\u0441\u0443\u043B\u044B"},{title:"Open",act:"openingSound",tooltip:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043F\u0440\u0438 \u043E\u0442\u043A\u0440\u044B\u0442\u0438\u0438 \u043A\u0430\u043F\u0441\u0443\u043B\u044B"},{title:"Exit",act:"leavingSound",tooltip:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F, \u043A\u043E\u0433\u0434\u0430 \u043A\u0430\u043F\u0441\u0443\u043B\u0430 \u0443\u043B\u0435\u0442\u0430\u0435\u0442"}],y=[{title:"1"},{title:"2"},{title:"3"},{title:"4"},{title:"\u0415\u0420\u0422"}],u=[{act:"launchAll",choiceNumber:0,icon:"globe",selected:"launchChoice",title:"\u0417\u0430\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0441\u043E \u0432\u0441\u0435\u0445 \u0442\u0443\u0440\u0444\u043E\u0432"},{act:"launchOrdered",choiceNumber:1,icon:"sort-amount-down-alt",selected:"launchChoice",title:"\u0417\u0430\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0441 \u0442\u0443\u0440\u0444\u043E\u0432 \u043F\u043E \u043F\u043E\u0440\u044F\u0434\u043A\u0443"},{act:"launchRandomTurf",choiceNumber:2,icon:"dice",selected:"launchChoice",title:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0440\u0430\u043D\u0434\u043E\u043C\u043D\u044B\u0439 \u0442\u0443\u0440\u0444"},{divider:!0},{act:"launchWholeTurf",choiceNumber:0,icon:"expand",selected:"launchRandomItem",title:"\u0417\u0430\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0432\u0441\u0435 \u0441\u043E\u0434\u0435\u0440\u0436\u0438\u043C\u043E\u0435 \u0442\u0443\u0440\u0444\u0430"},{act:"launchRandomItem",choiceNumber:1,icon:"dice",selected:"launchRandomItem",title:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0441\u043B\u0443\u0447\u0430\u0439\u043D\u044B\u0439 \u043E\u0431\u044A\u0435\u043A\u0442"},{divider:!0},{act:"launchClone",icon:"clone",soloSelected:"launchClone",title:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043E\u0431\u044A\u0435\u043A\u0442"}],f=[{act:"effectTarget",icon:"user-check",soloSelected:"effectTarget",title:"\u041E\u0441\u043E\u0431\u0430\u044F \u0446\u0435\u043B\u044C"},{act:"effectBluespace",choiceNumber:0,icon:"hand-paper",selected:"effectBluespace",title:"\u041A\u0430\u043F\u0441\u0443\u043B\u0430 \u043E\u0441\u0442\u0430\u0435\u0442\u0441\u044F"},{act:"effectStealth",icon:"user-ninja",soloSelected:"effectStealth",title:"\u0421\u043A\u0440\u044B\u0442\u043D\u043E"},{act:"effectQuiet",icon:"volume-mute",soloSelected:"effectQuiet",title:"\u0422\u0438\u0445\u043E"},{act:"effectMissile",icon:"rocket",soloSelected:"effectMissile",title:"\u0420\u0435\u0436\u0438\u043C \u0440\u0430\u043A\u0435\u0442\u044B"},{act:"effectBurst",icon:"certificate",soloSelected:"effectBurst",title:"\u0417\u0430\u043F\u0443\u0441\u043A \u043A\u043B\u0430\u0441\u0442\u0435\u0440\u0430"},{act:"effectCircle",icon:"ruler-combined",soloSelected:"effectCircle",title:"\u041B\u044E\u0431\u043E\u0439 \u0443\u0433\u043E\u043B \u0441\u043F\u0443\u0441\u043A\u0430"},{act:"effectAnnounce",choiceNumber:0,icon:"ghost",selected:"effectAnnounce",title:`\u041D\u0435\u0442 \u043E\u043F\u043E\u0432\u0435\u0449\u0435\u043D\u0438\u044F \u043F\u0440\u0438\u0437\u0440\u0430\u043A\u043E\u0432 (\u0435\u0441\u043B\u0438 \u0432\u044B \u043D\u0435 \u0445\u043E\u0442\u0438\u0442\u0435 \u0440\u0430\u0437\u0432\u043B\u0435\u043A\u0430\u0442\u044C \u0441\u043A\u0443\u0447\u0430\u044E\u0449\u0438\u0445 \u043F\u0440\u0438\u0437\u0440\u0430\u043A\u043E\u0432)`}],m=[{act:"explosionCustom",choiceNumber:1,icon:"bomb",selected:"explosionChoice",title:"\u041D\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043C\u044B\u0439 \u0432\u0437\u0440\u044B\u0432"},{act:"explosionBus",choiceNumber:2,icon:"bomb",selected:"explosionChoice",title:`\u0410\u0434\u043C\u0438\u043D\u0430\u0431\u0443\u0437-\u0432\u0437\u0440\u044B\u0432 -\u0418 \u0447\u0442\u043E \u043E\u043D\u0438 \u0441\u0434\u0435\u043B\u0430\u044E\u0442, \u0437\u0430\u0431\u0430\u043D\u044F\u0442 \u0442\u0435\u0431\u044F?`},{divider:!0},{act:"damageCustom",choiceNumber:1,icon:"skull",selected:"damageChoice",title:"\u041D\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043C\u044B\u0439 \u0443\u0440\u043E\u043D"},{act:"damageGib",choiceNumber:2,icon:"skull-crossbones",selected:"damageChoice",title:"\u0413\u0438\u0431"},{divider:!0},{act:"effectShrapnel",details:!0,icon:"cloud-meatball",soloSelected:"effectShrapnel",title:"\u041E\u0431\u043B\u0430\u043A\u043E \u0441\u043D\u0430\u0440\u044F\u0434\u043E\u0432"},{act:"effectStun",icon:"sun",soloSelected:"effectStun",title:"\u0421\u0442\u0430\u043D"},{act:"effectLimb",icon:"socks",soloSelected:"effectLimb",title:"\u041F\u043E\u0442\u0435\u0440\u044F \u043A\u043E\u043D\u0435\u0447\u043D\u043E\u0441\u0442\u0438"},{act:"effectOrgans",icon:"book-dead",soloSelected:"effectOrgans",title:"\u0420\u0430\u0437\u043B\u0435\u0442 \u0432\u0441\u0435\u0445 \u043E\u0440\u0433\u0430\u043D\u043E\u0432"}],d=[{list:u,label:"\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0438\u0437",alt_label:"\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430",tooltipPosition:"right"},{list:f,label:"\u041E\u0431\u044B\u0447\u043D\u044B\u0435 \u042D\u0444\u0444\u0435\u043A\u0442\u044B",tooltipPosition:"bottom"},{list:m,label:"\u0412\u0440\u0435\u0434\u043D\u044B\u0435 \u044D\u0444\u0444\u0435\u043A\u0442\u044B",tooltipPosition:"bottom"}]},5261:(q,S,r)=>{"use strict";r.r(S),r.d(S,{DnaNotepad:()=>O});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=r(538),O=function(y){var u=(0,s.Oc)(),f=u.act,m=u.data,d=m.dna_data;return(0,e.jsxs)(t.p8,{width:900,height:700,title:"\u041F\u043B\u0430\u043D\u0448\u0435\u0442 \u0433\u0435\u043D\u0435\u0442\u0438\u043A\u0430",children:[(0,e.jsx)(a.ComplexModal,{}),(0,e.jsx)(t.p8.Content,{scrollable:!0,children:function(){return(0,e.jsx)(n.wn,{title:"\u0411\u043B\u043E\u043A\u0438 \u0433\u0435\u043D\u043E\u0432",lineHeight:"10px",mb:"15px",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"trash",onClick:function(){return f("clear")},children:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435"}),(0,e.jsx)(n.$n,{icon:"print",onClick:function(){return f("print")},children:"\u041D\u0430\u043F\u0435\u0447\u0430\u0442\u0430\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435"})]}),children:(0,e.jsx)(b,{dna_data:d})})}()})]})},b=function(y){for(var u=function(_){var l=m[_],c=(0,e.jsx)(n.BJ.Item,{mb:"1rem",mr:"1rem",width:"30%",children:(0,e.jsxs)(n.az,{inline:!0,mr:"0.5rem",children:[(0,e.jsx)("span",{style:{color:"#FFFFFF"},children:l.num}),": ",(0,e.jsx)("span",{style:{color:l.color},children:l.name})," ",(0,e.jsx)(n.$n,{icon:"pen",onClick:function(){return f("edit_dna_block",{id:l.num})}})]})});d.push(c)},f=(0,s.Oc)().act,m=y.dna_data,d=[],v=0;v{"use strict";r.r(S),r.d(S,{DATATYPE_DISPLAY_HANDLERS:()=>O,FUNDAMENTAL_DATA_TYPES:()=>a});var e=r(1131),s=r(5180),n=r(1942),t=r(8968),a={string:function(b){var y=b.name,u=b.value,f=b.setValue,m=b.color;return(0,e.jsx)(n.BasicInput,{name:y,setValue:f,value:u,defaultValue:"",children:(0,e.jsx)(s.pd,{placeholder:y,value:u,onChange:function(d){return f(d)},width:"96px"})})},number:function(b){var y=b.name,u=b.value,f=b.setValue,m=b.color;return(0,e.jsx)(n.BasicInput,{name:y,setValue:f,value:u,defaultValue:0,children:(0,e.jsx)(s.Q7,{value:u,onChange:function(d){return f(d)},unit:y,maxValue:1/0,minValue:-1/0,step:1})})},entity:function(b){var y=b.name,u=b.setValue;return(0,e.jsx)(s.$n,{color:"transparent",icon:"upload",compact:!0,onClick:function(){return u(null,{marked_atom:!0})},children:y})},datum:function(b){var y=b.name,u=b.setValue;return(0,e.jsx)(s.$n,{color:"transparent",icon:"upload",compact:!0,onClick:function(){return u(null,{marked_atom:!0})},children:y})},signal:function(b){var y=b.name,u=b.setValue;return(0,e.jsx)(s.$n,{color:"transparent",compact:!0,onClick:function(){return u()},children:y})},option:function(b){var y=b.value,u=b.setValue,f=!1,m=b.extraData||[],d=Array.isArray(m)?m:Object.keys(m);return d.forEach(function(v){v.length>t.OPTION_DROPDOWN_LARGE_CHAR_AMOUNT&&(f=!0)}),(0,e.jsx)(s.ms,{className:"IntegratedCircuit__BlueBorder",placeholder:"\u0412\u044B\u0431\u043E\u0440",color:"transparent",options:d,onSelected:u,selected:y,width:"100%",menuWidth:f?"200px":void 0})},any:function(b){var y=b.name,u=b.value,f=b.setValue,m=b.color;return(0,e.jsx)(n.BasicInput,{name:y,setValue:f,value:u,defaultValue:"",children:(0,e.jsxs)(s.BJ,{children:[(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(s.$n,{color:m,icon:"upload",onClick:function(){return f(null,{marked_atom:!0})}})}),(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(s.pd,{placeholder:y,value:u,onChange:function(d){return f(d)},width:"64px"})})]})})}},O={option:function(b){return b.name.toLowerCase()}}},5286:(q,S,r)=>{"use strict";r.r(S),r.d(S,{ActiveConversation:()=>y,MessengerList:()=>u,pda_messenger:()=>b});var e=r(1131),s=r(1859),n=r(360),t=r(7003),a=r(5180);function O(){return O=Object.assign||function(m){for(var d=1;d{"use strict";var e=r(6500);/** +\u0418 \u0447\u0442\u043E \u043E\u043D\u0438 \u0441\u0434\u0435\u043B\u0430\u044E\u0442, \u0437\u0430\u0431\u0430\u043D\u044F\u0442 \u0442\u0435\u0431\u044F?`},{divider:!0},{act:"damageCustom",choiceNumber:1,icon:"skull",selected:"damageChoice",title:"\u041D\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043C\u044B\u0439 \u0443\u0440\u043E\u043D"},{act:"damageGib",choiceNumber:2,icon:"skull-crossbones",selected:"damageChoice",title:"\u0413\u0438\u0431"},{divider:!0},{act:"effectShrapnel",details:!0,icon:"cloud-meatball",soloSelected:"effectShrapnel",title:"\u041E\u0431\u043B\u0430\u043A\u043E \u0441\u043D\u0430\u0440\u044F\u0434\u043E\u0432"},{act:"effectStun",icon:"sun",soloSelected:"effectStun",title:"\u0421\u0442\u0430\u043D"},{act:"effectLimb",icon:"socks",soloSelected:"effectLimb",title:"\u041F\u043E\u0442\u0435\u0440\u044F \u043A\u043E\u043D\u0435\u0447\u043D\u043E\u0441\u0442\u0438"},{act:"effectOrgans",icon:"book-dead",soloSelected:"effectOrgans",title:"\u0420\u0430\u0437\u043B\u0435\u0442 \u0432\u0441\u0435\u0445 \u043E\u0440\u0433\u0430\u043D\u043E\u0432"}],d=[{list:u,label:"\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0438\u0437",alt_label:"\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430",tooltipPosition:"right"},{list:f,label:"\u041E\u0431\u044B\u0447\u043D\u044B\u0435 \u042D\u0444\u0444\u0435\u043A\u0442\u044B",tooltipPosition:"bottom"},{list:m,label:"\u0412\u0440\u0435\u0434\u043D\u044B\u0435 \u044D\u0444\u0444\u0435\u043A\u0442\u044B",tooltipPosition:"bottom"}]},5261:(q,S,r)=>{"use strict";r.r(S),r.d(S,{DnaNotepad:()=>b});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=r(538),b=function(y){var u=(0,s.Oc)(),f=u.act,m=u.data,d=m.dna_data;return(0,e.jsxs)(t.p8,{width:900,height:700,title:"\u041F\u043B\u0430\u043D\u0448\u0435\u0442 \u0433\u0435\u043D\u0435\u0442\u0438\u043A\u0430",children:[(0,e.jsx)(a.ComplexModal,{}),(0,e.jsx)(t.p8.Content,{scrollable:!0,children:function(){return(0,e.jsx)(n.wn,{title:"\u0411\u043B\u043E\u043A\u0438 \u0433\u0435\u043D\u043E\u0432",lineHeight:"10px",mb:"15px",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"trash",onClick:function(){return f("clear")},children:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435"}),(0,e.jsx)(n.$n,{icon:"print",onClick:function(){return f("print")},children:"\u041D\u0430\u043F\u0435\u0447\u0430\u0442\u0430\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435"})]}),children:(0,e.jsx)(O,{dna_data:d})})}()})]})},O=function(y){for(var u=function(_){var l=m[_],c=(0,e.jsx)(n.BJ.Item,{mb:"1rem",mr:"1rem",width:"30%",children:(0,e.jsxs)(n.az,{inline:!0,mr:"0.5rem",children:[(0,e.jsx)("span",{style:{color:"#FFFFFF"},children:l.num}),": ",(0,e.jsx)("span",{style:{color:l.color},children:l.name})," ",(0,e.jsx)(n.$n,{icon:"pen",onClick:function(){return f("edit_dna_block",{id:l.num})}})]})});d.push(c)},f=(0,s.Oc)().act,m=y.dna_data,d=[],v=0;v{"use strict";r.r(S),r.d(S,{DATATYPE_DISPLAY_HANDLERS:()=>b,FUNDAMENTAL_DATA_TYPES:()=>a});var e=r(1131),s=r(5180),n=r(1942),t=r(8968),a={string:function(O){var y=O.name,u=O.value,f=O.setValue,m=O.color;return(0,e.jsx)(n.BasicInput,{name:y,setValue:f,value:u,defaultValue:"",children:(0,e.jsx)(s.pd,{placeholder:y,value:u,onChange:function(d){return f(d)},width:"96px"})})},number:function(O){var y=O.name,u=O.value,f=O.setValue,m=O.color;return(0,e.jsx)(n.BasicInput,{name:y,setValue:f,value:u,defaultValue:0,children:(0,e.jsx)(s.Q7,{value:u,onChange:function(d){return f(d)},unit:y,maxValue:1/0,minValue:-1/0,step:1})})},entity:function(O){var y=O.name,u=O.setValue;return(0,e.jsx)(s.$n,{color:"transparent",icon:"upload",compact:!0,onClick:function(){return u(null,{marked_atom:!0})},children:y})},datum:function(O){var y=O.name,u=O.setValue;return(0,e.jsx)(s.$n,{color:"transparent",icon:"upload",compact:!0,onClick:function(){return u(null,{marked_atom:!0})},children:y})},signal:function(O){var y=O.name,u=O.setValue;return(0,e.jsx)(s.$n,{color:"transparent",compact:!0,onClick:function(){return u()},children:y})},option:function(O){var y=O.value,u=O.setValue,f=!1,m=O.extraData||[],d=Array.isArray(m)?m:Object.keys(m);return d.forEach(function(v){v.length>t.OPTION_DROPDOWN_LARGE_CHAR_AMOUNT&&(f=!0)}),(0,e.jsx)(s.ms,{className:"IntegratedCircuit__BlueBorder",placeholder:"\u0412\u044B\u0431\u043E\u0440",color:"transparent",options:d,onSelected:u,selected:y,width:"100%",menuWidth:f?"200px":void 0})},any:function(O){var y=O.name,u=O.value,f=O.setValue,m=O.color;return(0,e.jsx)(n.BasicInput,{name:y,setValue:f,value:u,defaultValue:"",children:(0,e.jsxs)(s.BJ,{children:[(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(s.$n,{color:m,icon:"upload",onClick:function(){return f(null,{marked_atom:!0})}})}),(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(s.pd,{placeholder:y,value:u,onChange:function(d){return f(d)},width:"64px"})})]})})}},b={option:function(O){return O.name.toLowerCase()}}},5286:(q,S,r)=>{"use strict";r.r(S),r.d(S,{ActiveConversation:()=>y,MessengerList:()=>u,pda_messenger:()=>O});var e=r(1131),s=r(1859),n=r(360),t=r(7003),a=r(5180);function b(){return b=Object.assign||function(m){for(var d=1;d{"use strict";var e=r(6500);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var s=(0,e.VP)("debug/toggleKitchenSink"),n=(0,e.VP)("debug/toggleDebugLayout"),t=(0,e.VP)("debug/openExternalBrowser")},5349:(q,S,r)=>{"use strict";r.r(S),r.d(S,{PollOptionPanel:()=>O});var e=r(1131),s=r(360),n=r(7003),t=r(5180),a=r(3521),O=function(b){var y=(0,s.Oc)(),u=y.act,f=y.data,m=f.poll_question,d=f.is_rating,v=f.option,_=(0,n.useState)(v.text),l=_[0],c=_[1],h=(0,n.useState)(v.default_percentage_calc),g=h[0],p=h[1],j=(0,n.useState)(v.min_val),x=j[0],C=j[1],I=(0,n.useState)(v.max_val),P=I[0],M=I[1],B=(0,n.useState)(v.desc_min_check),w=B[0],T=B[1],K=(0,n.useState)(v.desc_mid_check),R=K[0],U=K[1],F=(0,n.useState)(v.desc_max_check),$=F[0],W=F[1],N=(0,n.useState)(v.desc_min_text),Z=N[0],ie=N[1],Q=(0,n.useState)(v.desc_mid_text),V=Q[0],G=Q[1],le=(0,n.useState)(v.desc_min_text),xe=le[0],de=le[1];return(0,e.jsx)(a.p8,{title:"Poll Option Panel",width:400,height:d?320:180,children:(0,e.jsx)(a.p8.Content,{children:(0,e.jsxs)(t.wn,{title:m,children:[(0,e.jsx)(t.az,{children:(0,e.jsx)(t.pd,{width:"100%",value:l,onChange:c})}),(0,e.jsx)("br",{}),d?(0,e.jsxs)(t.az,{children:["Minimum value",(0,e.jsx)(t.pd,{value:x.toString()}),"Maximum Value",(0,e.jsx)(t.pd,{value:x.toString()}),(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n.Checkbox,{checked:w,onClick:function(){return T(!w)},children:"Minimum description"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n.Checkbox,{checked:R,onClick:function(){return U(!R)},children:"Middle description"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n.Checkbox,{checked:$,onClick:function(){return W(!$)},children:"Maximum description"})})]}),(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.pd,{value:Z,onEnter:ie})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.pd,{value:V,onEnter:G})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.pd,{value:xe,onEnter:de})})]})]}),(0,e.jsx)("br",{})]}):null,(0,e.jsx)(t.$n.Checkbox,{checked:g,onClick:function(){return p(!g)},children:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043E\u043F\u0446\u0438\u044E \u0432 \u0440\u0430\u0441\u0447\u0435\u0442 \u043F\u0440\u043E\u0446\u0435\u043D\u0442\u0430 \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u043E\u0432 \u043E\u043F\u0440\u043E\u0441\u0430"}),(0,e.jsx)("br",{}),(0,e.jsx)(t.$n,{onClick:function(){return u("submit_option",{text:l,default_percentage_calc:g,min_val:x,max_val:P,desc_min_check:w,desc_mid_check:R,desc_max_check:$,desc_min_text:Z,desc_mid_text:V,desc_max_text:xe})},children:"Sumbit"})]})})})}},5397:(q,S,r)=>{"use strict";r.r(S),r.d(S,{meta:()=>n});var e=r(1131),s=r(5180);/** + */var s=(0,e.VP)("debug/toggleKitchenSink"),n=(0,e.VP)("debug/toggleDebugLayout"),t=(0,e.VP)("debug/openExternalBrowser")},5349:(q,S,r)=>{"use strict";r.r(S),r.d(S,{PollOptionPanel:()=>b});var e=r(1131),s=r(360),n=r(7003),t=r(5180),a=r(3521),b=function(O){var y=(0,s.Oc)(),u=y.act,f=y.data,m=f.poll_question,d=f.is_rating,v=f.option,_=(0,n.useState)(v.text),l=_[0],c=_[1],h=(0,n.useState)(v.default_percentage_calc),g=h[0],p=h[1],j=(0,n.useState)(v.min_val),x=j[0],C=j[1],I=(0,n.useState)(v.max_val),P=I[0],M=I[1],B=(0,n.useState)(v.desc_min_check),w=B[0],T=B[1],K=(0,n.useState)(v.desc_mid_check),R=K[0],U=K[1],F=(0,n.useState)(v.desc_max_check),$=F[0],W=F[1],N=(0,n.useState)(v.desc_min_text),Z=N[0],ie=N[1],Q=(0,n.useState)(v.desc_mid_text),V=Q[0],G=Q[1],le=(0,n.useState)(v.desc_min_text),xe=le[0],de=le[1];return(0,e.jsx)(a.p8,{title:"Poll Option Panel",width:400,height:d?320:180,children:(0,e.jsx)(a.p8.Content,{children:(0,e.jsxs)(t.wn,{title:m,children:[(0,e.jsx)(t.az,{children:(0,e.jsx)(t.pd,{width:"100%",value:l,onChange:c})}),(0,e.jsx)("br",{}),d?(0,e.jsxs)(t.az,{children:["Minimum value",(0,e.jsx)(t.pd,{value:x.toString()}),"Maximum Value",(0,e.jsx)(t.pd,{value:x.toString()}),(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n.Checkbox,{checked:w,onClick:function(){return T(!w)},children:"Minimum description"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n.Checkbox,{checked:R,onClick:function(){return U(!R)},children:"Middle description"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n.Checkbox,{checked:$,onClick:function(){return W(!$)},children:"Maximum description"})})]}),(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.pd,{value:Z,onEnter:ie})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.pd,{value:V,onEnter:G})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.pd,{value:xe,onEnter:de})})]})]}),(0,e.jsx)("br",{})]}):null,(0,e.jsx)(t.$n.Checkbox,{checked:g,onClick:function(){return p(!g)},children:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043E\u043F\u0446\u0438\u044E \u0432 \u0440\u0430\u0441\u0447\u0435\u0442 \u043F\u0440\u043E\u0446\u0435\u043D\u0442\u0430 \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u043E\u0432 \u043E\u043F\u0440\u043E\u0441\u0430"}),(0,e.jsx)("br",{}),(0,e.jsx)(t.$n,{onClick:function(){return u("submit_option",{text:l,default_percentage_calc:g,min_val:x,max_val:P,desc_min_check:w,desc_mid_check:R,desc_max_check:$,desc_min_text:Z,desc_mid_text:V,desc_max_text:xe})},children:"Sumbit"})]})})})}},5397:(q,S,r)=>{"use strict";r.r(S),r.d(S,{meta:()=>n});var e=r(1131),s=r(5180);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var n={title:"Button",render:function(){return(0,e.jsx)(O,{})}},t=["red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey"],a=["good","average","bad","black","white"],O=function(b){return(0,e.jsxs)(s.wn,{children:[(0,e.jsxs)(s.az,{mb:1,children:[(0,e.jsx)(s.$n,{content:"Simple"}),(0,e.jsx)(s.$n,{selected:!0,content:"Selected"}),(0,e.jsx)(s.$n,{disabled:!0,content:"Disabled"}),(0,e.jsx)(s.$n,{color:"transparent",content:"Transparent"}),(0,e.jsx)(s.$n,{icon:"cog",content:"Icon"}),(0,e.jsx)(s.$n,{icon:"power-off"}),(0,e.jsx)(s.$n,{fluid:!0,content:"Fluid"}),(0,e.jsx)(s.$n,{my:1,lineHeight:2,minWidth:15,textAlign:"center",content:"With Box props"}),(0,e.jsx)(s.$n,{my:1,lineHeight:2,minWidth:15,color:"translucent",textAlign:"center",content:"Translucent"})]}),(0,e.jsxs)(s.az,{mb:1,children:[a.map(function(y){return(0,e.jsx)(s.$n,{color:y,content:y},y)}),(0,e.jsx)("br",{}),t.map(function(y){return(0,e.jsx)(s.$n,{color:y,content:y},y)}),(0,e.jsx)("br",{}),t.map(function(y){return(0,e.jsx)(s.az,{inline:!0,mx:"7px",color:y,children:y},y)})]})]})}},5431:(q,S,r)=>{"use strict";r.r(S),r.d(S,{ImplantPad:()=>O});var e=r(1131),s=r(360),n=r(7003),t=r(5180),a=r(3521),O=function(b){var y=(0,s.Oc)(),u=y.act,f=y.data,m=f.implant,d=f.contains_case,v=f.tag,_=(0,n.useState)(v),l=_[0],c=_[1];return(0,e.jsx)(a.p8,{width:410,height:325,children:(0,e.jsx)(a.p8.Content,{children:(0,e.jsx)(t.wn,{fill:!0,title:"Bio-chip Mini-Computer",buttons:(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{icon:"eject",disabled:!d,onClick:function(){return u("eject_case")},children:"Eject Case"})}),children:m&&d?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.az,{bold:!0,mb:2,children:[(0,e.jsx)(t.Hg,{icon:m.icon,icon_state:m.icon_state,ml:0,mr:2,style:{verticalAlign:"middle",width:"32px"}}),m.name]}),(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Life",children:m.life}),(0,e.jsx)(t.Ki.Item,{label:"Notes",children:m.notes}),(0,e.jsx)(t.Ki.Item,{label:"Function",children:m.function}),!!v&&(0,e.jsxs)(t.Ki.Item,{label:"Tag",children:[(0,e.jsx)(t.pd,{width:"5.5rem",value:v,onEnter:function(){return u("tag",{newtag:l})},onChange:c}),(0,e.jsx)(t.$n,{disabled:v===l,width:"20px",mb:"0",ml:"0.25rem",onClick:function(){return u("tag",{newtag:l})},children:(0,e.jsx)(t.In,{name:"pen"})})]})]})]}):d?(0,e.jsx)(t.az,{children:"This bio-chip case has no implant!"}):(0,e.jsx)(t.az,{children:"Please insert a bio-chip casing!"})})})})}},5442:(q,S,r)=>{"use strict";r.r(S),r.d(S,{BluespaceTap:()=>O});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=r(8477),O=function(b){var y=(0,s.Oc)(),u=y.act,f=y.data,m=f.product||[],d=f.desiredLevel,v=f.inputLevel,_=f.points,l=f.totalPoints,c=f.powerUse,h=f.availablePower,g=f.maxLevel,p=f.emagged,j=f.safeLevels,x=f.nextLevelPower,C=d>v&&"bad"||"good";return(0,e.jsx)(t.p8,{width:650,height:450,children:(0,e.jsx)(t.p8.Content,{scrollable:!0,children:(0,e.jsxs)(n.BJ,{fill:!0,vertical:!0,children:[!!p&&(0,e.jsx)(n.IC,{danger:!0,children:"Safety Protocols disabled"}),v>j&&(0,e.jsx)(n.IC,{danger:!0,children:"High Power, Instability likely"}),(0,e.jsx)(n.Nt,{title:"Input Management",children:(0,e.jsx)(n.wn,{fill:!0,title:"Input",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Input Level",children:v}),(0,e.jsx)(n.Ki.Item,{label:"Desired Level",children:(0,e.jsxs)(n.BJ,{inline:!0,width:"100%",children:[(0,e.jsxs)(n.BJ.Item,{children:[(0,e.jsx)(n.$n,{icon:"fast-backward",disabled:d===0,tooltip:"Set to 0",onClick:function(){return u("set",{set_level:0})}}),(0,e.jsx)(n.$n,{icon:"step-backward",tooltip:"Decrease to actual input level",disabled:d===0,onClick:function(){return u("set",{set_level:v})}}),(0,e.jsx)(n.$n,{icon:"backward",disabled:d===0,tooltip:"Decrease one step",onClick:function(){return u("decrease")}})]}),(0,e.jsx)(n.BJ.Item,{grow:1,mx:1,children:(0,e.jsx)(n.Ap,{value:d,fillValue:v,minValue:0,color:C,maxValue:g,stepPixelSize:20,step:1,onChange:function(I,P){return u("set",{set_level:P})}})}),(0,e.jsxs)(n.BJ.Item,{children:[(0,e.jsx)(n.$n,{icon:"forward",disabled:d===g,tooltip:"Increase one step",tooltipPosition:"left",onClick:function(){return u("increase")}}),(0,e.jsx)(n.$n,{icon:"fast-forward",disabled:d===g,tooltip:"Set to max",tooltipPosition:"left",onClick:function(){return u("set",{set_level:g})}})]})]})}),(0,e.jsx)(n.Ki.Item,{label:"Current Power Use",children:(0,a.d5)(c)}),(0,e.jsx)(n.Ki.Item,{label:"Power for next level",children:(0,a.d5)(x)}),(0,e.jsx)(n.Ki.Item,{label:"Surplus Power",children:(0,a.d5)(h)})]})})}),(0,e.jsx)(n.wn,{fill:!0,title:"Output",children:(0,e.jsxs)(n.BJ,{children:[(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.az,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Available Points",children:_}),(0,e.jsx)(n.Ki.Item,{label:"Total Points",children:l})]})})}),(0,e.jsx)(n.BJ.Item,{align:"end",children:(0,e.jsx)(n.az,{children:(0,e.jsx)(n.Ki,{children:m.map(function(I){return(0,e.jsx)(n.Ki.Item,{label:I.name,children:(0,e.jsx)(n.$n,{disabled:I.price>=_,onClick:function(){return u("vend",{target:I.key})},children:I.price})},I.key)})})})})]})})]})})})}},5444:(q,S,r)=>{"use strict";r.r(S),r.d(S,{Canister:()=>b});var e=r(1131),s=r(9818),n=r(360),t=r(5180),a=r(8477),O=r(3521),b=function(y){var u=(0,n.Oc)(),f=u.act,m=u.data,d=m.portConnected,v=m.tankPressure,_=m.releasePressure,l=m.defaultReleasePressure,c=m.minReleasePressure,h=m.maxReleasePressure,g=m.valveOpen,p=m.name,j=m.canLabel,x=m.hasHoldingTank,C=m.holdingTank;return(0,e.jsx)(O.p8,{width:600,height:230,children:(0,e.jsxs)(O.p8.Content,{children:[(0,e.jsx)(t.wn,{title:p,buttons:(0,e.jsxs)(t.BJ,{children:[(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.$n,{icon:"pencil-alt",disabled:!j,onClick:function(){return f("relabel")},children:"Relabel"})}),(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.$n,{fluid:!0,icon:"palette",disabled:!j,onClick:function(){return f("select_color")}})})]}),children:(0,e.jsxs)(t.Wx,{children:[(0,e.jsx)(t.Wx.Item,{minWidth:"66px",label:"Pressure",children:(0,e.jsx)(t.zv,{value:v,format:function(I){return I<1e4?(0,s.Mg)(I)+" kPa":(0,a.QL)(I*1e3,1,"Pa")}})}),(0,e.jsx)(t.Wx.Item,{label:"Regulator",children:(0,e.jsxs)(t.az,{position:"relative",left:"-8px",children:[(0,e.jsx)(t.N6,{size:1.25,color:!!g&&"yellow",value:_,unit:"kPa",minValue:c,maxValue:h,step:5,stepPixelSize:1,onDrag:function(I,P){return f("pressure",{pressure:P})}}),(0,e.jsx)(t.$n,{fluid:!0,position:"absolute",top:"-2px",right:"-20px",color:"transparent",icon:"fast-forward",tooltip:"Max Release Pressure",onClick:function(){return f("pressure",{pressure:h})}}),(0,e.jsx)(t.$n,{fluid:!0,position:"absolute",top:"16px",right:"-20px",color:"transparent",icon:"undo",tooltip:"Reset Release Pressure",onClick:function(){return f("pressure",{pressure:l})}})]})}),(0,e.jsx)(t.Wx.Item,{label:"Valve",children:(0,e.jsx)(t.$n,{my:.5,width:"50px",lineHeight:2,fontSize:"11px",color:g?x?"caution":"danger":null,onClick:function(){return f("valve")},children:g?"Open":"Closed"})}),(0,e.jsx)(t.Wx.Item,{mr:1,label:"Port",children:(0,e.jsx)(t.m_,{content:d?"Connected":"Disconnected",position:"top",children:(0,e.jsx)(t.az,{position:"relative",children:(0,e.jsx)(t.In,{size:1.25,name:d?"plug":"times",color:d?"good":"bad"})})})})]})}),(0,e.jsxs)(t.wn,{title:"Holding Tank",buttons:!!x&&(0,e.jsx)(t.$n,{icon:"eject",onClick:function(){return f("eject")},children:"Eject"}),children:[!!x&&(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Label",children:C.name}),(0,e.jsxs)(t.Ki.Item,{label:"Pressure",children:[(0,e.jsx)(t.zv,{value:C.tankPressure})," kPa"]})]}),!x&&(0,e.jsx)(t.az,{color:"average",children:"No Holding Tank"})]})]})})}},5471:(q,S,r)=>{"use strict";r.r(S),r.d(S,{CurrentLevels:()=>t});var e=r(1131),s=r(360),n=r(5180),t=function(a){var O=(0,s.Oc)().data,b=O.tech_levels;return(0,e.jsxs)(n.az,{children:[(0,e.jsx)("h3",{children:"\u0422\u0435\u043A\u0443\u0449\u0438\u0435 \u0443\u0440\u043E\u0432\u043D\u0438 \u0442\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0439:"}),b.map(function(y,u){var f=y.name,m=y.level,d=y.desc;return(0,e.jsxs)(n.az,{children:[u>0?(0,e.jsx)(n.cG,{}):null,(0,e.jsx)(n.az,{children:f}),(0,e.jsxs)(n.az,{children:["- \u0423\u0440\u043E\u0432\u0435\u043D\u044C: ",m]}),(0,e.jsxs)(n.az,{children:["- \u0421\u0443\u043C\u043C\u0430\u0440\u043D\u043E: ",d]})]},f)})]})}},5618:(q,S,r)=>{"use strict";r.r(S),r.d(S,{SearchBar:()=>n});var e=r(1131),s=r(5180),n=function(t){var a=t.autoFocus,O=t.noIcon,b=O===void 0?!1:O,y=t.onSearch,u=t.placeholder,f=u===void 0?"Search...":u,m=t.query,d=m===void 0?"":m,v=t.style;return(0,e.jsxs)(s.BJ,{fill:!0,style:v,children:[(0,e.jsx)(s.BJ.Item,{align:"center",children:!b&&(0,e.jsx)(s.In,{name:"search"})}),(0,e.jsx)(s.BJ.Item,{grow:!0,children:(0,e.jsx)(s.pd,{autoFocus:a,expensive:!0,fluid:!0,onChange:y,placeholder:f,value:d})})]})}},5664:(q,S,r)=>{"use strict";r.r(S),r.d(S,{Signaler:()=>a});var e=r(1131),s=r(9818),n=r(360),t=r(5180),a=function(O){var b=(0,n.Oc)().act,y=O.code,u=O.frequency,f=O.minFrequency,m=O.maxFrequency;return(0,e.jsxs)(t.wn,{children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Frequency",children:(0,e.jsx)(t.Q7,{animated:!0,step:.2,stepPixelSize:6,minValue:f/10,maxValue:m/10,value:u/10,format:function(d){return(0,s.Mg)(d,1)},width:"80px",onDrag:function(d){return b("freq",{freq:d})}})}),(0,e.jsx)(t.Ki.Item,{label:"Code",children:(0,e.jsx)(t.Q7,{animated:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:y,width:"80px",onDrag:function(d){return b("code",{code:d})}})})]}),(0,e.jsx)(t.$n,{mt:1,fluid:!0,icon:"arrow-up",textAlign:"center",onClick:function(){return b("signal")},children:"Send Signal"})]})}},5682:(q,S,r)=>{"use strict";r.r(S),r.d(S,{CardComputer:()=>m,CardComputerLoginWarning:()=>y,CardComputerNoCard:()=>u,CardComputerNoRecords:()=>f});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=r(3211),O=r(9357),b=O.lm.department,y=function(){return(0,e.jsx)(n.wn,{fill:!0,title:"Warning",children:(0,e.jsx)(n.BJ,{fill:!0,children:(0,e.jsxs)(n.BJ.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.jsxs)(n.In.Stack,{style:{transform:"translate(-50px, -100px)"},children:[(0,e.jsx)(n.In,{name:"user",size:5,color:"gray"}),(0,e.jsx)(n.In,{name:"slash",size:5,color:"red",style:{transform:"translate(-15px, 0)"}})]}),(0,e.jsx)("br",{}),"Not logged in"]})})})},u=function(){return(0,e.jsx)(n.wn,{fill:!0,title:"Card Missing",children:(0,e.jsx)(n.BJ,{fill:!0,children:(0,e.jsxs)(n.BJ.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.jsxs)(n.In.Stack,{style:{transform:"translate(-50px, -100px)"},children:[(0,e.jsx)(n.In,{name:"id-card",size:5,color:"gray"}),(0,e.jsx)(n.In,{name:"slash",size:5,color:"red",style:{transform:"translate(-5px, 0)"}})]}),(0,e.jsx)("br",{}),"No card to modify"]})})})},f=function(){return(0,e.jsx)(n.wn,{fill:!0,title:"Records",children:(0,e.jsx)(n.BJ,{fill:!0,children:(0,e.jsxs)(n.BJ.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.jsxs)(n.In.Stack,{children:[(0,e.jsx)(n.In,{name:"scroll",size:5,color:"gray"}),(0,e.jsx)(n.In,{name:"slash",size:5,color:"red"})]}),(0,e.jsx)("br",{}),"No records"]})})})},m=function(d){var v=(0,s.Oc)(),_=v.act,l=v.data,c=(0,e.jsxs)(n.tU,{children:[(0,e.jsx)(n.tU.Tab,{icon:"id-card",selected:l.mode===0,onClick:function(){return _("mode",{mode:0})},children:"Job Transfers"}),!l.target_dept&&(0,e.jsx)(n.tU.Tab,{icon:"id-card",selected:l.mode===2,onClick:function(){return _("mode",{mode:2})},children:"Access Modification"}),(0,e.jsx)(n.tU.Tab,{icon:"folder-open",selected:l.mode===1,onClick:function(){return _("mode",{mode:1})},children:"Job Management"}),(0,e.jsx)(n.tU.Tab,{icon:"scroll",selected:l.mode===3,onClick:function(){return _("mode",{mode:3})},children:"Records"}),(0,e.jsx)(n.tU.Tab,{icon:"users",selected:l.mode===4,onClick:function(){return _("mode",{mode:4})},children:"Department"})]}),h=(0,e.jsx)(n.wn,{title:"Authentication",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Login/Logout",children:(0,e.jsx)(n.$n,{icon:l.scan_name?"sign-out-alt":"id-card",selected:!!l.scan_name,onClick:function(){return _("scan")},children:l.scan_name?"Log Out: "+l.scan_name:"-----"})}),(0,e.jsx)(n.Ki.Item,{label:"Card To Modify",children:(0,e.jsx)(n.$n,{icon:l.modify_name?"eject":"id-card",selected:!!l.modify_name,onClick:function(){return _("modify")},children:l.modify_name?"Remove Card: "+l.modify_name:"-----"})})]})}),g;switch(l.mode){case 0:!l.authenticated||!l.scan_name?g=(0,e.jsx)(y,{}):l.modify_name?g=(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(n.wn,{title:"Card Information",children:[!l.target_dept&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.Ki.Item,{label:"Registered Name",children:(0,e.jsx)(n.$n,{icon:!l.modify_owner||l.modify_owner==="Unknown"?"exclamation-triangle":"pencil-alt",selected:!!l.modify_name,onClick:function(){return _("reg")},children:l.modify_owner})}),(0,e.jsx)(n.Ki.Item,{label:"Account Number",children:(0,e.jsx)(n.$n,{icon:l.account_number?"pencil-alt":"exclamation-triangle",selected:!!l.account_number,onClick:function(){return _("account")},children:l.account_number?l.account_number:"None"})})]}),(0,e.jsx)(n.Ki.Item,{label:"Latest Transfer",children:l.modify_lastlog||"---"})]}),(0,e.jsx)(n.wn,{title:l.target_dept?"Department Job Transfer":"Job Transfer",children:(0,e.jsxs)(n.Ki,{children:[l.target_dept?(0,e.jsx)(n.Ki.Item,{label:"Department",children:l.jobs_dept.map(function(p){return(0,e.jsx)(n.$n,{selected:l.modify_rank===p,color:l.jobFormats[p]?l.jobFormats[p]:"",onClick:function(){return _("assign",{assign_target:p})},children:p},p)})}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.Ki.Item,{label:"Special",children:l.jobs_top.map(function(p){return(0,e.jsx)(n.$n,{selected:l.modify_rank===p,color:l.jobFormats[p]?l.jobFormats[p]:"",onClick:function(){return _("assign",{assign_target:p})},children:p},p)})}),(0,e.jsx)(n.Ki.Item,{label:"Engineering",labelColor:b.engineering,children:l.jobs_engineering.map(function(p){return(0,e.jsx)(n.$n,{selected:l.modify_rank===p,color:l.jobFormats[p]?l.jobFormats[p]:"",onClick:function(){return _("assign",{assign_target:p})},children:p},p)})}),(0,e.jsx)(n.Ki.Item,{label:"Medical",labelColor:b.medical,children:l.jobs_medical.map(function(p){return(0,e.jsx)(n.$n,{selected:l.modify_rank===p,color:l.jobFormats[p]?l.jobFormats[p]:"",onClick:function(){return _("assign",{assign_target:p})},children:p},p)})}),(0,e.jsx)(n.Ki.Item,{label:"Science",labelColor:b.science,children:l.jobs_science.map(function(p){return(0,e.jsx)(n.$n,{selected:l.modify_rank===p,color:l.jobFormats[p]?l.jobFormats[p]:"",onClick:function(){return _("assign",{assign_target:p})},children:p},p)})}),(0,e.jsx)(n.Ki.Item,{label:"Security",labelColor:b.security,children:l.jobs_security.map(function(p){return(0,e.jsx)(n.$n,{selected:l.modify_rank===p,color:l.jobFormats[p]?l.jobFormats[p]:"",onClick:function(){return _("assign",{assign_target:p})},children:p},p)})}),(0,e.jsx)(n.Ki.Item,{label:"Service",labelColor:b.service,children:l.jobs_service.map(function(p){return(0,e.jsx)(n.$n,{selected:l.modify_rank===p,color:l.jobFormats[p]?l.jobFormats[p]:"",onClick:function(){return _("assign",{assign_target:p})},children:p},p)})}),(0,e.jsx)(n.Ki.Item,{label:"Supply",labelColor:b.supply,children:l.jobs_supply.map(function(p){return(0,e.jsx)(n.$n,{selected:l.modify_rank===p,color:l.jobFormats[p]?l.jobFormats[p]:"",onClick:function(){return _("assign",{assign_target:p})},children:p},p)})}),(0,e.jsx)(n.Ki.Item,{label:"Restricted",labelColor:b.procedure,children:l.jobs_karma.map(function(p){return(0,e.jsx)(n.$n,{selected:l.modify_rank===p,color:l.jobFormats[p]?l.jobFormats[p]:"",onClick:function(){return _("assign",{assign_target:p})},children:p},p)})})]}),(0,e.jsx)(n.Ki.Item,{label:"Civilian",children:l.jobs_civilian.map(function(p){return(0,e.jsx)(n.$n,{selected:l.modify_rank===p,color:l.jobFormats[p]?l.jobFormats[p]:"",onClick:function(){return _("assign",{assign_target:p})},children:p},p)})}),!!l.iscentcom&&(0,e.jsx)(n.Ki.Item,{label:"CentCom",labelColor:b.centcom,children:l.jobs_centcom.map(function(p){return(0,e.jsx)(n.$n,{selected:l.modify_rank===p,color:l.jobFormats[p]?l.jobFormats[p]:"purple",onClick:function(){return _("assign",{assign_target:p})},children:p},p)})}),(0,e.jsx)(n.Ki.Item,{label:"Demotion",children:(0,e.jsx)(n.$n,{disabled:l.modify_assignment==="Demoted"||l.modify_assignment==="Terminated",tooltip:"Assistant access, 'demoted' title.",color:"red",icon:"times",onClick:function(){return _("demote")},children:"Demoted"},"Demoted")}),!!l.canterminate&&(0,e.jsx)(n.Ki.Item,{label:"Non-Crew",children:(0,e.jsx)(n.$n,{disabled:l.modify_assignment==="Terminated",tooltip:"Zero access. Not crew.",color:"red",icon:"eraser",onClick:function(){return _("terminate")},children:"Terminated"},"Terminate")})]})}),!l.target_dept&&(0,e.jsxs)(n.wn,{title:"Card Skins",children:[l.card_skins.map(function(p){return(0,e.jsx)(n.$n,{selected:l.current_skin===p.skin,onClick:function(){return _("skin",{skin_target:p.skin})},children:p.display_name},p.skin)}),!!l.iscentcom&&(0,e.jsx)(n.az,{children:l.all_centcom_skins.map(function(p){return(0,e.jsx)(n.$n,{selected:l.current_skin===p.skin,color:"purple",onClick:function(){return _("skin",{skin_target:p.skin})},children:p.display_name},p.skin)})})]})]}):g=(0,e.jsx)(u,{});break;case 1:l.auth_or_ghost?g=(0,e.jsxs)(n.BJ,{fill:!0,vertical:!0,children:[(0,e.jsxs)(n.wn,{color:l.cooldown_time?"red":"",children:["Next Change Available:",l.cooldown_time?l.cooldown_time:"Now"]}),(0,e.jsx)(n.wn,{fill:!0,scrollable:!0,title:"Job Slots",children:(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{height:2,children:[(0,e.jsx)(n.XI.Cell,{bold:!0,textAlign:"center",children:"Title"}),(0,e.jsx)(n.XI.Cell,{bold:!0,textAlign:"center",children:"Used Slots"}),(0,e.jsx)(n.XI.Cell,{bold:!0,textAlign:"center",children:"Total Slots"}),(0,e.jsx)(n.XI.Cell,{bold:!0,textAlign:"center",children:"Free Slots"}),(0,e.jsx)(n.XI.Cell,{bold:!0,textAlign:"center",children:"Close Slot"}),(0,e.jsx)(n.XI.Cell,{bold:!0,textAlign:"center",children:"Open Slot"}),(0,e.jsx)(n.XI.Cell,{bold:!0,textAlign:"center",children:"Priority"})]}),l.job_slots.map(function(p){return(0,e.jsxs)(n.XI.Row,{height:2,className:"candystripe",children:[(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:(0,e.jsx)(n.az,{color:p.is_priority?"green":"",children:p.title})}),(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:p.current_positions}),(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:p.total_positions}),(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:p.total_positions>p.current_positions&&(0,e.jsx)(n.az,{color:"green",children:p.total_positions-p.current_positions})||(0,e.jsx)(n.az,{color:"red",children:"0"})}),(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:(0,e.jsx)(n.$n,{disabled:!!l.cooldown_time||!p.can_close,onClick:function(){return _("make_job_unavailable",{job:p.title})},children:"-"})}),(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:(0,e.jsx)(n.$n,{disabled:!!l.cooldown_time||!p.can_open,onClick:function(){return _("make_job_available",{job:p.title})},children:"+"})}),(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:l.target_dept&&(0,e.jsx)(n.az,{color:"green",children:l.priority_jobs.indexOf(p.title)>-1?"Yes":""})||(0,e.jsx)(n.$n,{selected:p.is_priority,disabled:!!l.cooldown_time||!p.can_prioritize,onClick:function(){return _("prioritize_job",{job:p.title})},children:p.is_priority?"Yes":"No"})})]},p.title)})]})})]}):g=(0,e.jsx)(y,{});break;case 2:!l.authenticated||!l.scan_name?g=(0,e.jsx)(y,{}):l.modify_name?g=(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.az,{height:"70%",children:(0,e.jsx)(a.AccessList,{accesses:l.regions,selectedList:l.selectedAccess,accessMod:function(p){return _("set",{access:p})},grantAll:function(){return _("grant_all")},denyAll:function(){return _("clear_all")},grantDep:function(p){return _("grant_region",{region:p})},denyDep:function(p){return _("deny_region",{region:p})}})}),(0,e.jsx)(n.wn,{title:"\u042E\u0440\u0438\u0434\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u043F\u043E\u043B\u043D\u043E\u043C\u043E\u0447\u0438\u044F",mt:1,children:(0,e.jsx)(n.ms,{options:l.possible_law_levels,onSelected:function(p){return _("set_law_level",{level:l.law_levels[p]})},selected:Object.keys(l.law_levels).find(function(p,j,x){return l.law_levels[p]===l.law_level})})})]}):g=(0,e.jsx)(u,{});break;case 3:l.authenticated?l.records.length?g=(0,e.jsxs)(n.wn,{fill:!0,scrollable:!0,title:"Records",buttons:(0,e.jsx)(n.$n,{icon:"times",disabled:!l.authenticated||l.records.length===0||l.target_dept,onClick:function(){return _("wipe_all_logs")},children:"Delete All Records"}),children:[(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{height:2,children:[(0,e.jsx)(n.XI.Cell,{bold:!0,children:"Crewman"}),(0,e.jsx)(n.XI.Cell,{bold:!0,children:"Old Rank"}),(0,e.jsx)(n.XI.Cell,{bold:!0,children:"New Rank"}),(0,e.jsx)(n.XI.Cell,{bold:!0,children:"Authorized By"}),(0,e.jsx)(n.XI.Cell,{bold:!0,children:"Time"}),(0,e.jsx)(n.XI.Cell,{bold:!0,children:"Reason"}),!!l.iscentcom&&(0,e.jsx)(n.XI.Cell,{bold:!0,children:"Deleted By"})]}),l.records.map(function(p){return(0,e.jsxs)(n.XI.Row,{height:2,children:[(0,e.jsx)(n.XI.Cell,{children:p.transferee}),(0,e.jsx)(n.XI.Cell,{children:p.oldvalue}),(0,e.jsx)(n.XI.Cell,{children:p.newvalue}),(0,e.jsx)(n.XI.Cell,{children:p.whodidit}),(0,e.jsx)(n.XI.Cell,{children:p.timestamp}),(0,e.jsx)(n.XI.Cell,{children:p.reason}),!!l.iscentcom&&(0,e.jsx)(n.XI.Cell,{children:p.deletedby})]},p.timestamp)})]}),!!l.iscentcom&&(0,e.jsx)(n.az,{children:(0,e.jsx)(n.$n,{icon:"pencil-alt",color:"purple",disabled:!l.authenticated||l.records.length===0,onClick:function(){return _("wipe_my_logs")},children:"Delete MY Records"})})]}):g=(0,e.jsx)(f,{}):g=(0,e.jsx)(y,{});break;case 4:!l.authenticated||!l.scan_name?g=(0,e.jsx)(y,{}):g=(0,e.jsx)(n.wn,{fill:!0,scrollable:!0,title:"Your Team",children:(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{height:2,children:[(0,e.jsx)(n.XI.Cell,{bold:!0,children:"Name"}),(0,e.jsx)(n.XI.Cell,{bold:!0,children:"Rank"}),(0,e.jsx)(n.XI.Cell,{bold:!0,children:"Sec Status"}),(0,e.jsx)(n.XI.Cell,{bold:!0,children:"Actions"})]}),l.people_dept.map(function(p){return(0,e.jsxs)(n.XI.Row,{height:2,children:[(0,e.jsx)(n.XI.Cell,{children:p.name}),(0,e.jsx)(n.XI.Cell,{children:p.title}),(0,e.jsx)(n.XI.Cell,{children:p.crimstat}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{disabled:!p.demotable,onClick:function(){return _("remote_demote",{remote_demote:p.name})},children:p.buttontext})})]},p.title)})]})});break;default:g=(0,e.jsx)(n.wn,{title:"Warning",color:"red",children:"ERROR: Unknown Mode."})}return(0,e.jsx)(t.p8,{width:800,height:800,children:(0,e.jsx)(t.p8.Content,{scrollable:!0,children:(0,e.jsxs)(n.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(n.BJ.Item,{children:h}),(0,e.jsx)(n.BJ.Item,{children:c}),(0,e.jsx)(n.BJ.Item,{grow:!0,children:g})]})})})}},5694:(q,S,r)=>{"use strict";r.r(S),r.d(S,{GlandDispenser:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(O){var b=(0,s.Oc)(),y=b.act,u=b.data,f=u.glands,m=f===void 0?[]:f;return(0,e.jsx)(t.p8,{width:300,height:338,theme:"abductor",children:(0,e.jsx)(t.p8.Content,{children:(0,e.jsx)(n.wn,{children:m.map(function(d){return(0,e.jsx)(n.$n,{width:"60px",height:"60px",m:.75,textAlign:"center",fontSize:"17px",lineHeight:"55px",icon:"eject",backgroundColor:d.color,disabled:!d.amount,onClick:function(){return y("dispense",{gland_id:d.id})},children:d.amount||"0"},d.id)})})})})}},5703:(q,S,r)=>{"use strict";r.r(S),r.d(S,{GasFreezer:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(O){var b=(0,s.Oc)(),y=b.act,u=b.data,f=u.on,m=u.pressure,d=u.temperature,v=u.temperatureCelsius,_=u.min,l=u.max,c=u.target,h=u.targetCelsius,g=(d-_)/(l-_);return(0,e.jsx)(t.p8,{width:560,height:200,children:(0,e.jsx)(t.p8.Content,{children:(0,e.jsx)(n.wn,{title:"\u0421\u0442\u0430\u0442\u0443\u0441",buttons:(0,e.jsx)(n.$n,{icon:f?"power-off":"times",selected:f,onClick:function(){return y("power")},children:f?"\u0412\u043A\u043B":"\u0412\u044B\u043A\u043B"}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"\u0414\u0430\u0432\u043B\u0435\u043D\u0438\u0435",children:[m," \u043A\u041F\u0430"]}),(0,e.jsx)(n.Ki.Item,{label:"\u0422\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430",children:(0,e.jsxs)(n.so,{direction:"row",justify:"space-between",children:[(0,e.jsx)(n.so.Item,{width:"65%",children:(0,e.jsx)(n.z2,{value:g,ranges:{blue:[-1/0,.5],red:[.5,1/0]},children:"\xA0"})}),(0,e.jsxs)(n.so.Item,{width:"35%",children:[g<.5&&(0,e.jsxs)(n.az,{inline:!0,color:"blue",ml:1,children:[d," \xB0K (",v," \xB0C)"]}),g>=.5&&(0,e.jsxs)(n.az,{inline:!0,color:"red",ml:1,children:[d," \xB0K (",v," \xB0C)"]})]})]})}),(0,e.jsx)(n.Ki.Item,{label:"\u0426\u0435\u043B\u0435\u0432\u0430\u044F \u0442\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430",children:(0,e.jsxs)(n.so,{direction:"row",children:[(0,e.jsx)(n.so.Item,{width:"65%",justify:"end",children:(0,e.jsx)(n.z2,{value:(c-_)/(l-_),children:"\xA0"})}),(0,e.jsx)(n.so.Item,{width:"35%",children:(0,e.jsxs)(n.az,{inline:!0,ml:1,children:[c," \xB0K (",h," \xB0C)"]})})]})}),(0,e.jsxs)(n.Ki.Item,{label:"\u0417\u0430\u0434\u0430\u0442\u044C \u0446\u0435\u043B\u0435\u0432\u0443\u044E \u0442\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0443",children:[(0,e.jsx)(n.$n,{icon:"fast-backward",tooltip:"\u041C\u0438\u043D\u0438\u043C\u0430\u043B\u044C\u043D\u0430\u044F \u0442\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430",onClick:function(){return y("temp",{temp:_})}}),(0,e.jsx)(n.Q7,{value:Math.round(c),unit:"\xB0K",minValue:Math.round(_),maxValue:Math.round(l),step:5,stepPixelSize:3,onDrag:function(p){return y("temp",{temp:p})}}),(0,e.jsx)(n.$n,{icon:"fast-forward",tooltip:"\u041C\u0430\u043A\u0441\u0438\u043C\u0430\u043B\u044C\u043D\u0430\u044F \u0442\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430",onClick:function(){return y("temp",{temp:l})}})]})]})})})})}},5774:(q,S,r)=>{"use strict";r.r(S),r.d(S,{AtmosControl:()=>y});var e=r(1131),s=r(360),n=r(7003),t=r(5180),a=r(3521),O=function(m){if(m===0)return(0,e.jsx)(t.az,{color:"green",children:"Good"});if(m===1)return(0,e.jsx)(t.az,{color:"orange",bold:!0,children:"Warning"});if(m===2)return(0,e.jsx)(t.az,{color:"red",bold:!0,children:"DANGER"})},b=function(m){if(m===0)return"green";if(m===1)return"orange";if(m===2)return"red"},y=function(m){var d=(0,n.useState)(0),v=d[0],_=d[1],l=function(c){switch(c){case 0:return(0,e.jsx)(u,{});case 1:return(0,e.jsx)(f,{});default:return"WE SHOULDN'T BE HERE!"}};return(0,e.jsx)(a.p8,{width:800,height:600,children:(0,e.jsx)(a.p8.Content,{scrollable:v===0,children:(0,e.jsxs)(t.az,{fillPositionedParent:!0,children:[(0,e.jsxs)(t.tU,{children:[(0,e.jsxs)(t.tU.Tab,{selected:v===0,onClick:function(){return _(0)},children:[(0,e.jsx)(t.In,{name:"table"})," Data View"]},"DataView"),(0,e.jsxs)(t.tU.Tab,{selected:v===1,onClick:function(){return _(1)},children:[(0,e.jsx)(t.In,{name:"map-marked-alt"})," Map View"]},"MapView")]}),l(v)]})})})},u=function(m){var d=(0,s.Oc)(),v=d.act,_=d.data,l=_.alarms;return(0,e.jsx)(t.az,{children:(0,e.jsxs)(t.XI,{m:"0.5rem",style:{borderCollapse:"separate",borderSpacing:"0 5px"},children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{children:"Name"}),(0,e.jsx)(t.XI.Cell,{children:"Status"}),(0,e.jsx)(t.XI.Cell,{children:"Access"})]}),l.map(function(c,h){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:c.name}),(0,e.jsx)(t.XI.Cell,{children:O(c?.danger)}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"cog",onClick:function(){return v("open_alarm",{aref:c.ref})},children:"Access"})})]},h)})]})})},f=function(m){var d=(0,s.Oc)(),v=d.act,_=d.data,l=_.alarms,c=_.stationLevelNum,h=_.stationLevelName,g=(0,n.useState)(1),p=g[0],j=g[1],x=(0,n.useState)(c[0]),C=x[0],I=x[1];return(0,e.jsx)(t.az,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.jsx)(t.tx,{onZoom:function(P,M){return j(M)},zLevels:c,zNames:h,zCurrent:C,setZCurrent:I,children:l.map(function(P){return(0,e.jsx)(t.tx.MarkerIcon,{x:P.x,y:P.y,z:P.z,z_current:C,zoom:p,icon:"circle",tooltip:P.name,tooltipPosition:P.x>255/2?"bottom":"right",color:b(P?.danger),onClick:function(){return v("open_alarm",{aref:P.ref})}},P.ref)})})})}},5775:(q,S,r)=>{"use strict";r.d(S,{z:()=>u});var e=r(1131),s=r(7003),n=r(9818);/** + */var n={title:"Button",render:function(){return(0,e.jsx)(b,{})}},t=["red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey"],a=["good","average","bad","black","white"],b=function(O){return(0,e.jsxs)(s.wn,{children:[(0,e.jsxs)(s.az,{mb:1,children:[(0,e.jsx)(s.$n,{content:"Simple"}),(0,e.jsx)(s.$n,{selected:!0,content:"Selected"}),(0,e.jsx)(s.$n,{disabled:!0,content:"Disabled"}),(0,e.jsx)(s.$n,{color:"transparent",content:"Transparent"}),(0,e.jsx)(s.$n,{icon:"cog",content:"Icon"}),(0,e.jsx)(s.$n,{icon:"power-off"}),(0,e.jsx)(s.$n,{fluid:!0,content:"Fluid"}),(0,e.jsx)(s.$n,{my:1,lineHeight:2,minWidth:15,textAlign:"center",content:"With Box props"}),(0,e.jsx)(s.$n,{my:1,lineHeight:2,minWidth:15,color:"translucent",textAlign:"center",content:"Translucent"})]}),(0,e.jsxs)(s.az,{mb:1,children:[a.map(function(y){return(0,e.jsx)(s.$n,{color:y,content:y},y)}),(0,e.jsx)("br",{}),t.map(function(y){return(0,e.jsx)(s.$n,{color:y,content:y},y)}),(0,e.jsx)("br",{}),t.map(function(y){return(0,e.jsx)(s.az,{inline:!0,mx:"7px",color:y,children:y},y)})]})]})}},5431:(q,S,r)=>{"use strict";r.r(S),r.d(S,{ImplantPad:()=>b});var e=r(1131),s=r(360),n=r(7003),t=r(5180),a=r(3521),b=function(O){var y=(0,s.Oc)(),u=y.act,f=y.data,m=f.implant,d=f.contains_case,v=f.tag,_=(0,n.useState)(v),l=_[0],c=_[1];return(0,e.jsx)(a.p8,{width:410,height:325,children:(0,e.jsx)(a.p8.Content,{children:(0,e.jsx)(t.wn,{fill:!0,title:"Bio-chip Mini-Computer",buttons:(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{icon:"eject",disabled:!d,onClick:function(){return u("eject_case")},children:"Eject Case"})}),children:m&&d?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.az,{bold:!0,mb:2,children:[(0,e.jsx)(t.Hg,{icon:m.icon,icon_state:m.icon_state,ml:0,mr:2,style:{verticalAlign:"middle",width:"32px"}}),m.name]}),(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Life",children:m.life}),(0,e.jsx)(t.Ki.Item,{label:"Notes",children:m.notes}),(0,e.jsx)(t.Ki.Item,{label:"Function",children:m.function}),!!v&&(0,e.jsxs)(t.Ki.Item,{label:"Tag",children:[(0,e.jsx)(t.pd,{width:"5.5rem",value:v,onEnter:function(){return u("tag",{newtag:l})},onChange:c}),(0,e.jsx)(t.$n,{disabled:v===l,width:"20px",mb:"0",ml:"0.25rem",onClick:function(){return u("tag",{newtag:l})},children:(0,e.jsx)(t.In,{name:"pen"})})]})]})]}):d?(0,e.jsx)(t.az,{children:"This bio-chip case has no implant!"}):(0,e.jsx)(t.az,{children:"Please insert a bio-chip casing!"})})})})}},5442:(q,S,r)=>{"use strict";r.r(S),r.d(S,{BluespaceTap:()=>b});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=r(8477),b=function(O){var y=(0,s.Oc)(),u=y.act,f=y.data,m=f.product||[],d=f.desiredLevel,v=f.inputLevel,_=f.points,l=f.totalPoints,c=f.powerUse,h=f.availablePower,g=f.maxLevel,p=f.emagged,j=f.safeLevels,x=f.nextLevelPower,C=d>v&&"bad"||"good";return(0,e.jsx)(t.p8,{width:650,height:450,children:(0,e.jsx)(t.p8.Content,{scrollable:!0,children:(0,e.jsxs)(n.BJ,{fill:!0,vertical:!0,children:[!!p&&(0,e.jsx)(n.IC,{danger:!0,children:"Safety Protocols disabled"}),v>j&&(0,e.jsx)(n.IC,{danger:!0,children:"High Power, Instability likely"}),(0,e.jsx)(n.Nt,{title:"Input Management",children:(0,e.jsx)(n.wn,{fill:!0,title:"Input",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Input Level",children:v}),(0,e.jsx)(n.Ki.Item,{label:"Desired Level",children:(0,e.jsxs)(n.BJ,{inline:!0,width:"100%",children:[(0,e.jsxs)(n.BJ.Item,{children:[(0,e.jsx)(n.$n,{icon:"fast-backward",disabled:d===0,tooltip:"Set to 0",onClick:function(){return u("set",{set_level:0})}}),(0,e.jsx)(n.$n,{icon:"step-backward",tooltip:"Decrease to actual input level",disabled:d===0,onClick:function(){return u("set",{set_level:v})}}),(0,e.jsx)(n.$n,{icon:"backward",disabled:d===0,tooltip:"Decrease one step",onClick:function(){return u("decrease")}})]}),(0,e.jsx)(n.BJ.Item,{grow:1,mx:1,children:(0,e.jsx)(n.Ap,{value:d,fillValue:v,minValue:0,color:C,maxValue:g,stepPixelSize:20,step:1,onChange:function(I,P){return u("set",{set_level:P})}})}),(0,e.jsxs)(n.BJ.Item,{children:[(0,e.jsx)(n.$n,{icon:"forward",disabled:d===g,tooltip:"Increase one step",tooltipPosition:"left",onClick:function(){return u("increase")}}),(0,e.jsx)(n.$n,{icon:"fast-forward",disabled:d===g,tooltip:"Set to max",tooltipPosition:"left",onClick:function(){return u("set",{set_level:g})}})]})]})}),(0,e.jsx)(n.Ki.Item,{label:"Current Power Use",children:(0,a.d5)(c)}),(0,e.jsx)(n.Ki.Item,{label:"Power for next level",children:(0,a.d5)(x)}),(0,e.jsx)(n.Ki.Item,{label:"Surplus Power",children:(0,a.d5)(h)})]})})}),(0,e.jsx)(n.wn,{fill:!0,title:"Output",children:(0,e.jsxs)(n.BJ,{children:[(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.az,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Available Points",children:_}),(0,e.jsx)(n.Ki.Item,{label:"Total Points",children:l})]})})}),(0,e.jsx)(n.BJ.Item,{align:"end",children:(0,e.jsx)(n.az,{children:(0,e.jsx)(n.Ki,{children:m.map(function(I){return(0,e.jsx)(n.Ki.Item,{label:I.name,children:(0,e.jsx)(n.$n,{disabled:I.price>=_,onClick:function(){return u("vend",{target:I.key})},children:I.price})},I.key)})})})})]})})]})})})}},5444:(q,S,r)=>{"use strict";r.r(S),r.d(S,{Canister:()=>O});var e=r(1131),s=r(9818),n=r(360),t=r(5180),a=r(8477),b=r(3521),O=function(y){var u=(0,n.Oc)(),f=u.act,m=u.data,d=m.portConnected,v=m.tankPressure,_=m.releasePressure,l=m.defaultReleasePressure,c=m.minReleasePressure,h=m.maxReleasePressure,g=m.valveOpen,p=m.name,j=m.canLabel,x=m.hasHoldingTank,C=m.holdingTank;return(0,e.jsx)(b.p8,{width:600,height:230,children:(0,e.jsxs)(b.p8.Content,{children:[(0,e.jsx)(t.wn,{title:p,buttons:(0,e.jsxs)(t.BJ,{children:[(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.$n,{icon:"pencil-alt",disabled:!j,onClick:function(){return f("relabel")},children:"Relabel"})}),(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.$n,{fluid:!0,icon:"palette",disabled:!j,onClick:function(){return f("select_color")}})})]}),children:(0,e.jsxs)(t.Wx,{children:[(0,e.jsx)(t.Wx.Item,{minWidth:"66px",label:"Pressure",children:(0,e.jsx)(t.zv,{value:v,format:function(I){return I<1e4?(0,s.Mg)(I)+" kPa":(0,a.QL)(I*1e3,1,"Pa")}})}),(0,e.jsx)(t.Wx.Item,{label:"Regulator",children:(0,e.jsxs)(t.az,{position:"relative",left:"-8px",children:[(0,e.jsx)(t.N6,{size:1.25,color:!!g&&"yellow",value:_,unit:"kPa",minValue:c,maxValue:h,step:5,stepPixelSize:1,onDrag:function(I,P){return f("pressure",{pressure:P})}}),(0,e.jsx)(t.$n,{fluid:!0,position:"absolute",top:"-2px",right:"-20px",color:"transparent",icon:"fast-forward",tooltip:"Max Release Pressure",onClick:function(){return f("pressure",{pressure:h})}}),(0,e.jsx)(t.$n,{fluid:!0,position:"absolute",top:"16px",right:"-20px",color:"transparent",icon:"undo",tooltip:"Reset Release Pressure",onClick:function(){return f("pressure",{pressure:l})}})]})}),(0,e.jsx)(t.Wx.Item,{label:"Valve",children:(0,e.jsx)(t.$n,{my:.5,width:"50px",lineHeight:2,fontSize:"11px",color:g?x?"caution":"danger":null,onClick:function(){return f("valve")},children:g?"Open":"Closed"})}),(0,e.jsx)(t.Wx.Item,{mr:1,label:"Port",children:(0,e.jsx)(t.m_,{content:d?"Connected":"Disconnected",position:"top",children:(0,e.jsx)(t.az,{position:"relative",children:(0,e.jsx)(t.In,{size:1.25,name:d?"plug":"times",color:d?"good":"bad"})})})})]})}),(0,e.jsxs)(t.wn,{title:"Holding Tank",buttons:!!x&&(0,e.jsx)(t.$n,{icon:"eject",onClick:function(){return f("eject")},children:"Eject"}),children:[!!x&&(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Label",children:C.name}),(0,e.jsxs)(t.Ki.Item,{label:"Pressure",children:[(0,e.jsx)(t.zv,{value:C.tankPressure})," kPa"]})]}),!x&&(0,e.jsx)(t.az,{color:"average",children:"No Holding Tank"})]})]})})}},5471:(q,S,r)=>{"use strict";r.r(S),r.d(S,{CurrentLevels:()=>t});var e=r(1131),s=r(360),n=r(5180),t=function(a){var b=(0,s.Oc)().data,O=b.tech_levels;return(0,e.jsxs)(n.az,{children:[(0,e.jsx)("h3",{children:"\u0422\u0435\u043A\u0443\u0449\u0438\u0435 \u0443\u0440\u043E\u0432\u043D\u0438 \u0442\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0439:"}),O.map(function(y,u){var f=y.name,m=y.level,d=y.desc;return(0,e.jsxs)(n.az,{children:[u>0?(0,e.jsx)(n.cG,{}):null,(0,e.jsx)(n.az,{children:f}),(0,e.jsxs)(n.az,{children:["- \u0423\u0440\u043E\u0432\u0435\u043D\u044C: ",m]}),(0,e.jsxs)(n.az,{children:["- \u0421\u0443\u043C\u043C\u0430\u0440\u043D\u043E: ",d]})]},f)})]})}},5618:(q,S,r)=>{"use strict";r.r(S),r.d(S,{SearchBar:()=>n});var e=r(1131),s=r(5180),n=function(t){var a=t.autoFocus,b=t.noIcon,O=b===void 0?!1:b,y=t.onSearch,u=t.placeholder,f=u===void 0?"Search...":u,m=t.query,d=m===void 0?"":m,v=t.style;return(0,e.jsxs)(s.BJ,{fill:!0,style:v,children:[(0,e.jsx)(s.BJ.Item,{align:"center",children:!O&&(0,e.jsx)(s.In,{name:"search"})}),(0,e.jsx)(s.BJ.Item,{grow:!0,children:(0,e.jsx)(s.pd,{autoFocus:a,expensive:!0,fluid:!0,onChange:y,placeholder:f,value:d})})]})}},5664:(q,S,r)=>{"use strict";r.r(S),r.d(S,{Signaler:()=>a});var e=r(1131),s=r(9818),n=r(360),t=r(5180),a=function(b){var O=(0,n.Oc)().act,y=b.code,u=b.frequency,f=b.minFrequency,m=b.maxFrequency;return(0,e.jsxs)(t.wn,{children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Frequency",children:(0,e.jsx)(t.Q7,{animated:!0,step:.2,stepPixelSize:6,minValue:f/10,maxValue:m/10,value:u/10,format:function(d){return(0,s.Mg)(d,1)},width:"80px",onDrag:function(d){return O("freq",{freq:d})}})}),(0,e.jsx)(t.Ki.Item,{label:"Code",children:(0,e.jsx)(t.Q7,{animated:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:y,width:"80px",onDrag:function(d){return O("code",{code:d})}})})]}),(0,e.jsx)(t.$n,{mt:1,fluid:!0,icon:"arrow-up",textAlign:"center",onClick:function(){return O("signal")},children:"Send Signal"})]})}},5682:(q,S,r)=>{"use strict";r.r(S),r.d(S,{CardComputer:()=>m,CardComputerLoginWarning:()=>y,CardComputerNoCard:()=>u,CardComputerNoRecords:()=>f});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=r(3211),b=r(9357),O=b.lm.department,y=function(){return(0,e.jsx)(n.wn,{fill:!0,title:"Warning",children:(0,e.jsx)(n.BJ,{fill:!0,children:(0,e.jsxs)(n.BJ.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.jsxs)(n.In.Stack,{style:{transform:"translate(-50px, -100px)"},children:[(0,e.jsx)(n.In,{name:"user",size:5,color:"gray"}),(0,e.jsx)(n.In,{name:"slash",size:5,color:"red",style:{transform:"translate(-15px, 0)"}})]}),(0,e.jsx)("br",{}),"Not logged in"]})})})},u=function(){return(0,e.jsx)(n.wn,{fill:!0,title:"Card Missing",children:(0,e.jsx)(n.BJ,{fill:!0,children:(0,e.jsxs)(n.BJ.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.jsxs)(n.In.Stack,{style:{transform:"translate(-50px, -100px)"},children:[(0,e.jsx)(n.In,{name:"id-card",size:5,color:"gray"}),(0,e.jsx)(n.In,{name:"slash",size:5,color:"red",style:{transform:"translate(-5px, 0)"}})]}),(0,e.jsx)("br",{}),"No card to modify"]})})})},f=function(){return(0,e.jsx)(n.wn,{fill:!0,title:"Records",children:(0,e.jsx)(n.BJ,{fill:!0,children:(0,e.jsxs)(n.BJ.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.jsxs)(n.In.Stack,{children:[(0,e.jsx)(n.In,{name:"scroll",size:5,color:"gray"}),(0,e.jsx)(n.In,{name:"slash",size:5,color:"red"})]}),(0,e.jsx)("br",{}),"No records"]})})})},m=function(d){var v=(0,s.Oc)(),_=v.act,l=v.data,c=(0,e.jsxs)(n.tU,{children:[(0,e.jsx)(n.tU.Tab,{icon:"id-card",selected:l.mode===0,onClick:function(){return _("mode",{mode:0})},children:"Job Transfers"}),!l.target_dept&&(0,e.jsx)(n.tU.Tab,{icon:"id-card",selected:l.mode===2,onClick:function(){return _("mode",{mode:2})},children:"Access Modification"}),(0,e.jsx)(n.tU.Tab,{icon:"folder-open",selected:l.mode===1,onClick:function(){return _("mode",{mode:1})},children:"Job Management"}),(0,e.jsx)(n.tU.Tab,{icon:"scroll",selected:l.mode===3,onClick:function(){return _("mode",{mode:3})},children:"Records"}),(0,e.jsx)(n.tU.Tab,{icon:"users",selected:l.mode===4,onClick:function(){return _("mode",{mode:4})},children:"Department"})]}),h=(0,e.jsx)(n.wn,{title:"Authentication",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Login/Logout",children:(0,e.jsx)(n.$n,{icon:l.scan_name?"sign-out-alt":"id-card",selected:!!l.scan_name,onClick:function(){return _("scan")},children:l.scan_name?"Log Out: "+l.scan_name:"-----"})}),(0,e.jsx)(n.Ki.Item,{label:"Card To Modify",children:(0,e.jsx)(n.$n,{icon:l.modify_name?"eject":"id-card",selected:!!l.modify_name,onClick:function(){return _("modify")},children:l.modify_name?"Remove Card: "+l.modify_name:"-----"})})]})}),g;switch(l.mode){case 0:!l.authenticated||!l.scan_name?g=(0,e.jsx)(y,{}):l.modify_name?g=(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(n.wn,{title:"Card Information",children:[!l.target_dept&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.Ki.Item,{label:"Registered Name",children:(0,e.jsx)(n.$n,{icon:!l.modify_owner||l.modify_owner==="Unknown"?"exclamation-triangle":"pencil-alt",selected:!!l.modify_name,onClick:function(){return _("reg")},children:l.modify_owner})}),(0,e.jsx)(n.Ki.Item,{label:"Account Number",children:(0,e.jsx)(n.$n,{icon:l.account_number?"pencil-alt":"exclamation-triangle",selected:!!l.account_number,onClick:function(){return _("account")},children:l.account_number?l.account_number:"None"})})]}),(0,e.jsx)(n.Ki.Item,{label:"Latest Transfer",children:l.modify_lastlog||"---"})]}),(0,e.jsx)(n.wn,{title:l.target_dept?"Department Job Transfer":"Job Transfer",children:(0,e.jsxs)(n.Ki,{children:[l.target_dept?(0,e.jsx)(n.Ki.Item,{label:"Department",children:l.jobs_dept.map(function(p){return(0,e.jsx)(n.$n,{selected:l.modify_rank===p,color:l.jobFormats[p]?l.jobFormats[p]:"",onClick:function(){return _("assign",{assign_target:p})},children:p},p)})}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.Ki.Item,{label:"Special",children:l.jobs_top.map(function(p){return(0,e.jsx)(n.$n,{selected:l.modify_rank===p,color:l.jobFormats[p]?l.jobFormats[p]:"",onClick:function(){return _("assign",{assign_target:p})},children:p},p)})}),(0,e.jsx)(n.Ki.Item,{label:"Engineering",labelColor:O.engineering,children:l.jobs_engineering.map(function(p){return(0,e.jsx)(n.$n,{selected:l.modify_rank===p,color:l.jobFormats[p]?l.jobFormats[p]:"",onClick:function(){return _("assign",{assign_target:p})},children:p},p)})}),(0,e.jsx)(n.Ki.Item,{label:"Medical",labelColor:O.medical,children:l.jobs_medical.map(function(p){return(0,e.jsx)(n.$n,{selected:l.modify_rank===p,color:l.jobFormats[p]?l.jobFormats[p]:"",onClick:function(){return _("assign",{assign_target:p})},children:p},p)})}),(0,e.jsx)(n.Ki.Item,{label:"Science",labelColor:O.science,children:l.jobs_science.map(function(p){return(0,e.jsx)(n.$n,{selected:l.modify_rank===p,color:l.jobFormats[p]?l.jobFormats[p]:"",onClick:function(){return _("assign",{assign_target:p})},children:p},p)})}),(0,e.jsx)(n.Ki.Item,{label:"Security",labelColor:O.security,children:l.jobs_security.map(function(p){return(0,e.jsx)(n.$n,{selected:l.modify_rank===p,color:l.jobFormats[p]?l.jobFormats[p]:"",onClick:function(){return _("assign",{assign_target:p})},children:p},p)})}),(0,e.jsx)(n.Ki.Item,{label:"Service",labelColor:O.service,children:l.jobs_service.map(function(p){return(0,e.jsx)(n.$n,{selected:l.modify_rank===p,color:l.jobFormats[p]?l.jobFormats[p]:"",onClick:function(){return _("assign",{assign_target:p})},children:p},p)})}),(0,e.jsx)(n.Ki.Item,{label:"Supply",labelColor:O.supply,children:l.jobs_supply.map(function(p){return(0,e.jsx)(n.$n,{selected:l.modify_rank===p,color:l.jobFormats[p]?l.jobFormats[p]:"",onClick:function(){return _("assign",{assign_target:p})},children:p},p)})}),(0,e.jsx)(n.Ki.Item,{label:"Restricted",labelColor:O.procedure,children:l.jobs_karma.map(function(p){return(0,e.jsx)(n.$n,{selected:l.modify_rank===p,color:l.jobFormats[p]?l.jobFormats[p]:"",onClick:function(){return _("assign",{assign_target:p})},children:p},p)})})]}),(0,e.jsx)(n.Ki.Item,{label:"Civilian",children:l.jobs_civilian.map(function(p){return(0,e.jsx)(n.$n,{selected:l.modify_rank===p,color:l.jobFormats[p]?l.jobFormats[p]:"",onClick:function(){return _("assign",{assign_target:p})},children:p},p)})}),!!l.iscentcom&&(0,e.jsx)(n.Ki.Item,{label:"CentCom",labelColor:O.centcom,children:l.jobs_centcom.map(function(p){return(0,e.jsx)(n.$n,{selected:l.modify_rank===p,color:l.jobFormats[p]?l.jobFormats[p]:"purple",onClick:function(){return _("assign",{assign_target:p})},children:p},p)})}),(0,e.jsx)(n.Ki.Item,{label:"Demotion",children:(0,e.jsx)(n.$n,{disabled:l.modify_assignment==="Demoted"||l.modify_assignment==="Terminated",tooltip:"Assistant access, 'demoted' title.",color:"red",icon:"times",onClick:function(){return _("demote")},children:"Demoted"},"Demoted")}),!!l.canterminate&&(0,e.jsx)(n.Ki.Item,{label:"Non-Crew",children:(0,e.jsx)(n.$n,{disabled:l.modify_assignment==="Terminated",tooltip:"Zero access. Not crew.",color:"red",icon:"eraser",onClick:function(){return _("terminate")},children:"Terminated"},"Terminate")})]})}),!l.target_dept&&(0,e.jsxs)(n.wn,{title:"Card Skins",children:[l.card_skins.map(function(p){return(0,e.jsx)(n.$n,{selected:l.current_skin===p.skin,onClick:function(){return _("skin",{skin_target:p.skin})},children:p.display_name},p.skin)}),!!l.iscentcom&&(0,e.jsx)(n.az,{children:l.all_centcom_skins.map(function(p){return(0,e.jsx)(n.$n,{selected:l.current_skin===p.skin,color:"purple",onClick:function(){return _("skin",{skin_target:p.skin})},children:p.display_name},p.skin)})})]})]}):g=(0,e.jsx)(u,{});break;case 1:l.auth_or_ghost?g=(0,e.jsxs)(n.BJ,{fill:!0,vertical:!0,children:[(0,e.jsxs)(n.wn,{color:l.cooldown_time?"red":"",children:["Next Change Available:",l.cooldown_time?l.cooldown_time:"Now"]}),(0,e.jsx)(n.wn,{fill:!0,scrollable:!0,title:"Job Slots",children:(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{height:2,children:[(0,e.jsx)(n.XI.Cell,{bold:!0,textAlign:"center",children:"Title"}),(0,e.jsx)(n.XI.Cell,{bold:!0,textAlign:"center",children:"Used Slots"}),(0,e.jsx)(n.XI.Cell,{bold:!0,textAlign:"center",children:"Total Slots"}),(0,e.jsx)(n.XI.Cell,{bold:!0,textAlign:"center",children:"Free Slots"}),(0,e.jsx)(n.XI.Cell,{bold:!0,textAlign:"center",children:"Close Slot"}),(0,e.jsx)(n.XI.Cell,{bold:!0,textAlign:"center",children:"Open Slot"}),(0,e.jsx)(n.XI.Cell,{bold:!0,textAlign:"center",children:"Priority"})]}),l.job_slots.map(function(p){return(0,e.jsxs)(n.XI.Row,{height:2,className:"candystripe",children:[(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:(0,e.jsx)(n.az,{color:p.is_priority?"green":"",children:p.title})}),(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:p.current_positions}),(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:p.total_positions}),(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:p.total_positions>p.current_positions&&(0,e.jsx)(n.az,{color:"green",children:p.total_positions-p.current_positions})||(0,e.jsx)(n.az,{color:"red",children:"0"})}),(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:(0,e.jsx)(n.$n,{disabled:!!l.cooldown_time||!p.can_close,onClick:function(){return _("make_job_unavailable",{job:p.title})},children:"-"})}),(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:(0,e.jsx)(n.$n,{disabled:!!l.cooldown_time||!p.can_open,onClick:function(){return _("make_job_available",{job:p.title})},children:"+"})}),(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:l.target_dept&&(0,e.jsx)(n.az,{color:"green",children:l.priority_jobs.indexOf(p.title)>-1?"Yes":""})||(0,e.jsx)(n.$n,{selected:p.is_priority,disabled:!!l.cooldown_time||!p.can_prioritize,onClick:function(){return _("prioritize_job",{job:p.title})},children:p.is_priority?"Yes":"No"})})]},p.title)})]})})]}):g=(0,e.jsx)(y,{});break;case 2:!l.authenticated||!l.scan_name?g=(0,e.jsx)(y,{}):l.modify_name?g=(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.az,{height:"70%",children:(0,e.jsx)(a.AccessList,{accesses:l.regions,selectedList:l.selectedAccess,accessMod:function(p){return _("set",{access:p})},grantAll:function(){return _("grant_all")},denyAll:function(){return _("clear_all")},grantDep:function(p){return _("grant_region",{region:p})},denyDep:function(p){return _("deny_region",{region:p})}})}),(0,e.jsx)(n.wn,{title:"\u042E\u0440\u0438\u0434\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u043F\u043E\u043B\u043D\u043E\u043C\u043E\u0447\u0438\u044F",mt:1,children:(0,e.jsx)(n.ms,{options:l.possible_law_levels,onSelected:function(p){return _("set_law_level",{level:l.law_levels[p]})},selected:Object.keys(l.law_levels).find(function(p,j,x){return l.law_levels[p]===l.law_level})})})]}):g=(0,e.jsx)(u,{});break;case 3:l.authenticated?l.records.length?g=(0,e.jsxs)(n.wn,{fill:!0,scrollable:!0,title:"Records",buttons:(0,e.jsx)(n.$n,{icon:"times",disabled:!l.authenticated||l.records.length===0||l.target_dept,onClick:function(){return _("wipe_all_logs")},children:"Delete All Records"}),children:[(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{height:2,children:[(0,e.jsx)(n.XI.Cell,{bold:!0,children:"Crewman"}),(0,e.jsx)(n.XI.Cell,{bold:!0,children:"Old Rank"}),(0,e.jsx)(n.XI.Cell,{bold:!0,children:"New Rank"}),(0,e.jsx)(n.XI.Cell,{bold:!0,children:"Authorized By"}),(0,e.jsx)(n.XI.Cell,{bold:!0,children:"Time"}),(0,e.jsx)(n.XI.Cell,{bold:!0,children:"Reason"}),!!l.iscentcom&&(0,e.jsx)(n.XI.Cell,{bold:!0,children:"Deleted By"})]}),l.records.map(function(p){return(0,e.jsxs)(n.XI.Row,{height:2,children:[(0,e.jsx)(n.XI.Cell,{children:p.transferee}),(0,e.jsx)(n.XI.Cell,{children:p.oldvalue}),(0,e.jsx)(n.XI.Cell,{children:p.newvalue}),(0,e.jsx)(n.XI.Cell,{children:p.whodidit}),(0,e.jsx)(n.XI.Cell,{children:p.timestamp}),(0,e.jsx)(n.XI.Cell,{children:p.reason}),!!l.iscentcom&&(0,e.jsx)(n.XI.Cell,{children:p.deletedby})]},p.timestamp)})]}),!!l.iscentcom&&(0,e.jsx)(n.az,{children:(0,e.jsx)(n.$n,{icon:"pencil-alt",color:"purple",disabled:!l.authenticated||l.records.length===0,onClick:function(){return _("wipe_my_logs")},children:"Delete MY Records"})})]}):g=(0,e.jsx)(f,{}):g=(0,e.jsx)(y,{});break;case 4:!l.authenticated||!l.scan_name?g=(0,e.jsx)(y,{}):g=(0,e.jsx)(n.wn,{fill:!0,scrollable:!0,title:"Your Team",children:(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{height:2,children:[(0,e.jsx)(n.XI.Cell,{bold:!0,children:"Name"}),(0,e.jsx)(n.XI.Cell,{bold:!0,children:"Rank"}),(0,e.jsx)(n.XI.Cell,{bold:!0,children:"Sec Status"}),(0,e.jsx)(n.XI.Cell,{bold:!0,children:"Actions"})]}),l.people_dept.map(function(p){return(0,e.jsxs)(n.XI.Row,{height:2,children:[(0,e.jsx)(n.XI.Cell,{children:p.name}),(0,e.jsx)(n.XI.Cell,{children:p.title}),(0,e.jsx)(n.XI.Cell,{children:p.crimstat}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{disabled:!p.demotable,onClick:function(){return _("remote_demote",{remote_demote:p.name})},children:p.buttontext})})]},p.title)})]})});break;default:g=(0,e.jsx)(n.wn,{title:"Warning",color:"red",children:"ERROR: Unknown Mode."})}return(0,e.jsx)(t.p8,{width:800,height:800,children:(0,e.jsx)(t.p8.Content,{scrollable:!0,children:(0,e.jsxs)(n.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(n.BJ.Item,{children:h}),(0,e.jsx)(n.BJ.Item,{children:c}),(0,e.jsx)(n.BJ.Item,{grow:!0,children:g})]})})})}},5694:(q,S,r)=>{"use strict";r.r(S),r.d(S,{GlandDispenser:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(b){var O=(0,s.Oc)(),y=O.act,u=O.data,f=u.glands,m=f===void 0?[]:f;return(0,e.jsx)(t.p8,{width:300,height:338,theme:"abductor",children:(0,e.jsx)(t.p8.Content,{children:(0,e.jsx)(n.wn,{children:m.map(function(d){return(0,e.jsx)(n.$n,{width:"60px",height:"60px",m:.75,textAlign:"center",fontSize:"17px",lineHeight:"55px",icon:"eject",backgroundColor:d.color,disabled:!d.amount,onClick:function(){return y("dispense",{gland_id:d.id})},children:d.amount||"0"},d.id)})})})})}},5703:(q,S,r)=>{"use strict";r.r(S),r.d(S,{GasFreezer:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(b){var O=(0,s.Oc)(),y=O.act,u=O.data,f=u.on,m=u.pressure,d=u.temperature,v=u.temperatureCelsius,_=u.min,l=u.max,c=u.target,h=u.targetCelsius,g=(d-_)/(l-_);return(0,e.jsx)(t.p8,{width:560,height:200,children:(0,e.jsx)(t.p8.Content,{children:(0,e.jsx)(n.wn,{title:"\u0421\u0442\u0430\u0442\u0443\u0441",buttons:(0,e.jsx)(n.$n,{icon:f?"power-off":"times",selected:f,onClick:function(){return y("power")},children:f?"\u0412\u043A\u043B":"\u0412\u044B\u043A\u043B"}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"\u0414\u0430\u0432\u043B\u0435\u043D\u0438\u0435",children:[m," \u043A\u041F\u0430"]}),(0,e.jsx)(n.Ki.Item,{label:"\u0422\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430",children:(0,e.jsxs)(n.so,{direction:"row",justify:"space-between",children:[(0,e.jsx)(n.so.Item,{width:"65%",children:(0,e.jsx)(n.z2,{value:g,ranges:{blue:[-1/0,.5],red:[.5,1/0]},children:"\xA0"})}),(0,e.jsxs)(n.so.Item,{width:"35%",children:[g<.5&&(0,e.jsxs)(n.az,{inline:!0,color:"blue",ml:1,children:[d," \xB0K (",v," \xB0C)"]}),g>=.5&&(0,e.jsxs)(n.az,{inline:!0,color:"red",ml:1,children:[d," \xB0K (",v," \xB0C)"]})]})]})}),(0,e.jsx)(n.Ki.Item,{label:"\u0426\u0435\u043B\u0435\u0432\u0430\u044F \u0442\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430",children:(0,e.jsxs)(n.so,{direction:"row",children:[(0,e.jsx)(n.so.Item,{width:"65%",justify:"end",children:(0,e.jsx)(n.z2,{value:(c-_)/(l-_),children:"\xA0"})}),(0,e.jsx)(n.so.Item,{width:"35%",children:(0,e.jsxs)(n.az,{inline:!0,ml:1,children:[c," \xB0K (",h," \xB0C)"]})})]})}),(0,e.jsxs)(n.Ki.Item,{label:"\u0417\u0430\u0434\u0430\u0442\u044C \u0446\u0435\u043B\u0435\u0432\u0443\u044E \u0442\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0443",children:[(0,e.jsx)(n.$n,{icon:"fast-backward",tooltip:"\u041C\u0438\u043D\u0438\u043C\u0430\u043B\u044C\u043D\u0430\u044F \u0442\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430",onClick:function(){return y("temp",{temp:_})}}),(0,e.jsx)(n.Q7,{value:Math.round(c),unit:"\xB0K",minValue:Math.round(_),maxValue:Math.round(l),step:5,stepPixelSize:3,onDrag:function(p){return y("temp",{temp:p})}}),(0,e.jsx)(n.$n,{icon:"fast-forward",tooltip:"\u041C\u0430\u043A\u0441\u0438\u043C\u0430\u043B\u044C\u043D\u0430\u044F \u0442\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430",onClick:function(){return y("temp",{temp:l})}})]})]})})})})}},5774:(q,S,r)=>{"use strict";r.r(S),r.d(S,{AtmosControl:()=>y});var e=r(1131),s=r(360),n=r(7003),t=r(5180),a=r(3521),b=function(m){if(m===0)return(0,e.jsx)(t.az,{color:"green",children:"Good"});if(m===1)return(0,e.jsx)(t.az,{color:"orange",bold:!0,children:"Warning"});if(m===2)return(0,e.jsx)(t.az,{color:"red",bold:!0,children:"DANGER"})},O=function(m){if(m===0)return"green";if(m===1)return"orange";if(m===2)return"red"},y=function(m){var d=(0,n.useState)(0),v=d[0],_=d[1],l=function(c){switch(c){case 0:return(0,e.jsx)(u,{});case 1:return(0,e.jsx)(f,{});default:return"WE SHOULDN'T BE HERE!"}};return(0,e.jsx)(a.p8,{width:800,height:600,children:(0,e.jsx)(a.p8.Content,{scrollable:v===0,children:(0,e.jsxs)(t.az,{fillPositionedParent:!0,children:[(0,e.jsxs)(t.tU,{children:[(0,e.jsxs)(t.tU.Tab,{selected:v===0,onClick:function(){return _(0)},children:[(0,e.jsx)(t.In,{name:"table"})," Data View"]},"DataView"),(0,e.jsxs)(t.tU.Tab,{selected:v===1,onClick:function(){return _(1)},children:[(0,e.jsx)(t.In,{name:"map-marked-alt"})," Map View"]},"MapView")]}),l(v)]})})})},u=function(m){var d=(0,s.Oc)(),v=d.act,_=d.data,l=_.alarms;return(0,e.jsx)(t.az,{children:(0,e.jsxs)(t.XI,{m:"0.5rem",style:{borderCollapse:"separate",borderSpacing:"0 5px"},children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{children:"Name"}),(0,e.jsx)(t.XI.Cell,{children:"Status"}),(0,e.jsx)(t.XI.Cell,{children:"Access"})]}),l.map(function(c,h){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:c.name}),(0,e.jsx)(t.XI.Cell,{children:b(c?.danger)}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"cog",onClick:function(){return v("open_alarm",{aref:c.ref})},children:"Access"})})]},h)})]})})},f=function(m){var d=(0,s.Oc)(),v=d.act,_=d.data,l=_.alarms,c=_.stationLevelNum,h=_.stationLevelName,g=(0,n.useState)(1),p=g[0],j=g[1],x=(0,n.useState)(c[0]),C=x[0],I=x[1];return(0,e.jsx)(t.az,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.jsx)(t.tx,{onZoom:function(P,M){return j(M)},zLevels:c,zNames:h,zCurrent:C,setZCurrent:I,children:l.map(function(P){return(0,e.jsx)(t.tx.MarkerIcon,{x:P.x,y:P.y,z:P.z,z_current:C,zoom:p,icon:"circle",tooltip:P.name,tooltipPosition:P.x>255/2?"bottom":"right",color:O(P?.danger),onClick:function(){return v("open_alarm",{aref:P.ref})}},P.ref)})})})}},5775:(q,S,r)=>{"use strict";r.d(S,{z:()=>u});var e=r(1131),s=r(7003),n=r(9818);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function t(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function");f.prototype=Object.create(m&&m.prototype,{constructor:{value:f,writable:!0,configurable:!0}}),m&&a(f,m)}function a(f,m){return a=Object.setPrototypeOf||function(v,_){return v.__proto__=_,v},a(f,m)}var O=1e3/60,b=.8333,y=.001,u=function(f){"use strict";t(m,f);function m(v){var _;_=f.call(this,v)||this,_.ref=(0,s.createRef)(),_.currentValue=0;var l=v.initial,c=v.value;return l!==void 0&&(0,n.Lz)(l)?_.currentValue=l:(0,n.Lz)(c)&&(_.currentValue=c),_}var d=m.prototype;return d.componentDidMount=function(){this.currentValue!==this.props.value&&this.startTicking()},d.componentWillUnmount=function(){this.stopTicking()},d.shouldComponentUpdate=function(_){return _.value!==this.props.value&&this.startTicking(),!1},d.startTicking=function(){var _=this;this.interval===void 0&&(this.interval=setInterval(function(){return _.tick()},O))},d.stopTicking=function(){this.interval!==void 0&&(clearInterval(this.interval),this.interval=void 0)},d.tick=function(){var _=this.currentValue,l=this.props.value;(0,n.Lz)(l)?this.currentValue=_*b+l*(1-b):this.stopTicking(),Math.abs(l-this.currentValue){"use strict";r.d(S,{K:()=>b});var e=r(1131),s=r(185),n=r(8222),t=r(9648),a=r(9368),O=r(950);/** + */function t(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function");f.prototype=Object.create(m&&m.prototype,{constructor:{value:f,writable:!0,configurable:!0}}),m&&a(f,m)}function a(f,m){return a=Object.setPrototypeOf||function(v,_){return v.__proto__=_,v},a(f,m)}var b=1e3/60,O=.8333,y=.001,u=function(f){"use strict";t(m,f);function m(v){var _;_=f.call(this,v)||this,_.ref=(0,s.createRef)(),_.currentValue=0;var l=v.initial,c=v.value;return l!==void 0&&(0,n.Lz)(l)?_.currentValue=l:(0,n.Lz)(c)&&(_.currentValue=c),_}var d=m.prototype;return d.componentDidMount=function(){this.currentValue!==this.props.value&&this.startTicking()},d.componentWillUnmount=function(){this.stopTicking()},d.shouldComponentUpdate=function(_){return _.value!==this.props.value&&this.startTicking(),!1},d.startTicking=function(){var _=this;this.interval===void 0&&(this.interval=setInterval(function(){return _.tick()},b))},d.stopTicking=function(){this.interval!==void 0&&(clearInterval(this.interval),this.interval=void 0)},d.tick=function(){var _=this.currentValue,l=this.props.value;(0,n.Lz)(l)?this.currentValue=_*O+l*(1-O):this.stopTicking(),Math.abs(l-this.currentValue){"use strict";r.d(S,{K:()=>O});var e=r(1131),s=r(185),n=r(8222),t=r(9648),a=r(9368),b=r(950);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var b=function(f){var m=f.children;return(0,e.jsx)("table",{className:"LabeledList",children:(0,e.jsx)("tbody",{children:m})})},y=function(f){var m=f.className,d=f.label,v=f.labelColor,_=v===void 0?"label":v,l=f.labelWrap,c=f.labelStyle,h=f.color,g=f.textAlign,p=f.buttons,j=f.content,x=f.children,C=f.verticalAlign,I=C===void 0?"baseline":C,P=f.tooltip,M;d&&(M=d,typeof d=="string"&&(M+=":")),P!==void 0&&(M=(0,e.jsx)(O.m,{content:P,children:(0,e.jsx)(t.a,{as:"span",style:{borderBottom:"2px dotted rgba(255, 255, 255, 0.8)"},children:M})}));var B=(0,e.jsx)(t.a,{as:"td",color:_,className:(0,s.Ly)(["LabeledList__cell",!l&&"LabeledList__label--nowrap"]),verticalAlign:I,style:c,children:M});return(0,e.jsxs)("tr",{className:(0,s.Ly)(["LabeledList__row",m]),children:[B,(0,e.jsxs)(t.a,{as:"td",color:h,textAlign:g,className:"LabeledList__cell",colSpan:p?void 0:2,verticalAlign:I,children:[j,x]}),p&&(0,e.jsx)("td",{className:"LabeledList__cell LabeledList__buttons",children:p})]})},u=function(f){var m=f.size?(0,n.zA)(Math.max(0,f.size-1)):0;return(0,e.jsx)("tr",{className:"LabeledList__row",children:(0,e.jsx)("td",{colSpan:3,style:{paddingTop:m,paddingBottom:m},children:(0,e.jsx)(a.c,{})})})};b.Divider=u,b.Item=y},5819:(q,S,r)=>{"use strict";r.r(S),r.d(S,{Healthanalyzer:()=>b});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=new Map([["upper body","\u0413\u0440\u0443\u0434\u044C"],["lower body","\u0416\u0438\u0432\u043E\u0442"],["head","\u0413\u043E\u043B\u043E\u0432\u0430"],["left arm","\u041B\u0435\u0432\u0430\u044F \u0440\u0443\u043A\u0430"],["right arm","\u041F\u0440\u0430\u0432\u0430\u044F \u0440\u0443\u043A\u0430"],["left leg","\u041B\u0435\u0432\u0430\u044F \u043D\u043E\u0433\u0430"],["right leg","\u041F\u0440\u0430\u0432\u0430\u044F \u043D\u043E\u0433\u0430"],["left foot","\u041B\u0435\u0432\u0430\u044F \u0441\u0442\u0443\u043F\u043D\u044F"],["right foot","\u041F\u0440\u0430\u0432\u0430\u044F \u0441\u0442\u0443\u043F\u043D\u044F"],["left hand","\u041B\u0435\u0432\u0430\u044F \u043A\u0438\u0441\u0442\u044C"],["right hand","\u041F\u0440\u0430\u0432\u0430\u044F \u043A\u0438\u0441\u0442\u044C"],["monkey tail","\u0425\u0432\u043E\u0441\u0442 \u043E\u0431\u0435\u0437\u044C\u044F\u043D\u044B"],["wolpin tail","\u0425\u0432\u043E\u0441\u0442 \u0432\u0443\u043B\u044C\u043F\u0438\u043D\u0430"],["unathi tail","\u0425\u0432\u043E\u0441\u0442 \u0443\u043D\u0430\u0442\u0445\u0430"],["tajaran tail","\u0425\u0432\u043E\u0441\u0442 \u0442\u0430\u044F\u0440\u0430\u043D\u0430"],["vulpkanin tail","\u0425\u0432\u043E\u0441\u0442 \u0432\u0443\u043B\u044C\u043F\u043A\u0430\u043D\u0438\u043D\u0430"],["vox tail","\u0425\u0432\u043E\u0441\u0442 \u0432\u043E\u043A\u0441\u0430"],["wryn tail","\u0425\u0432\u043E\u0441\u0442 \u0432\u0440\u0438\u043D\u0430"],["luam wings","\u041A\u0440\u044B\u043B\u044C\u044F \u043B\u0443\u0430\u043C"]]),O=new Map([["Diona","\u0414\u0438\u043E\u043D\u0430"],["Human","\u0427\u0435\u043B\u043E\u0432\u0435\u043A"],["Drask","\u0414\u0440\u0430\u0441\u043A"],["Grey","\u0413\u0440\u0435\u0439"],["Vulpkanin","\u0412\u0443\u043B\u044C\u043F\u0430\u043A\u0438\u043D"],["Tajaran","\u0422\u0430\u044F\u0440\u0430\u043D"],["Skrell","\u0421\u043A\u0440\u0435\u043B\u043B"],["Nian","\u041D\u0438\u0430\u043D"],["Unathi","\u0423\u043D\u0430\u0442\u0445"],["Kidan","\u041A\u0438\u0434\u0430\u043D"],["Wryn","\u0412\u0440\u0438\u043D"],["Vox","\u0412\u043E\u043A\u0441"]]),b=function(_){var l=(0,s.Oc)().data,c=l.scan_data;return(0,e.jsx)(t.p8,{width:500,height:450,theme:l.theme?l.theme:"",title:l.scan_title?l.scan_title:"\u0410\u043D\u0430\u043B\u0438\u0437\u0430\u0442\u043E\u0440 \u0437\u0434\u043E\u0440\u043E\u0432\u044C\u044F",children:(0,e.jsx)(t.p8.Content,{scrollable:!0,children:function(){return c?c.status==="ERROR"||c.status==="FLOOR"?(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.wn,{title:"\u041F\u043E\u0432\u0440\u0435\u0436\u0434\u0435\u043D\u0438\u044F",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"\u0422\u0438\u043F \u043F\u043E\u0432\u0440\u0435\u0436\u0434\u0435\u043D\u0438\u0439",children:(0,e.jsxs)(n.az,{children:[(0,e.jsx)("span",{style:{color:"#0080ff"},children:"\u0423\u0434\u0443\u0448\u044C\u0435"})," /"," ",(0,e.jsx)("span",{style:{color:"green"},children:"\u041E\u0442\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435"})," /"," ",(0,e.jsx)("span",{style:{color:"#FF8000"},children:"\u0422\u0435\u0440\u043C."})," /"," ",(0,e.jsx)("span",{style:{color:"red"},children:"\u041C\u0435\u0445."})]})}),(0,e.jsx)(n.Ki.Item,{label:"\u0421\u0442\u0435\u043F\u0435\u043D\u044C \u043F\u043E\u0432\u0440\u0435\u0436\u0434\u0435\u043D\u0438\u0439",children:(0,e.jsxs)(n.az,{children:[(0,e.jsx)("span",{style:{color:"#0080ff"},children:"?"})," -"," ",(0,e.jsx)("span",{style:{color:"green"},children:"?"})," -"," ",(0,e.jsx)("span",{style:{color:"#FF8000"},children:"?"})," -"," ",(0,e.jsx)("span",{style:{color:"red"},children:"?"})]})})]})}),(0,e.jsx)(n.wn,{title:"\u041E\u0431\u0449\u0435\u0435 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"\u041E\u0446\u0435\u043D\u043A\u0430 \u0437\u0434\u043E\u0440\u043E\u0432\u044C\u044F",children:(0,e.jsx)(n.az,{color:"#c51e1e",bold:!0,children:"\u041E\u0428\u0418\u0411\u041A\u0410"})}),(0,e.jsx)(n.Ki.Item,{label:"\u0422\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430 \u0442\u0435\u043B\u0430",children:"--- \xB0C --- \xB0F"}),(0,e.jsx)(n.Ki.Item,{label:"\u0423\u0440\u043E\u0432\u0435\u043D\u044C \u043A\u0440\u043E\u0432\u0438",children:"--- %, --- u, \u0442\u0438\u043F: ---, \u043A\u0440\u043E\u0432\u044C \u0440\u0430\u0441\u044B: ---"}),(0,e.jsx)(n.Ki.Item,{label:"\u041F\u0443\u043B\u044C\u0441",children:"--- \u0443\u0434/\u043C\u0438\u043D"}),(0,e.jsx)(n.Ki.Item,{label:"\u0413\u0435\u043D\u044B",children:"\u0413\u0435\u043D\u043D\u0430\u044F \u0441\u0442\u0440\u0443\u043A\u0442\u0443\u0440\u0430 \u043D\u0435 \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u0430"})]})})]}):(0,e.jsxs)(n.az,{children:[(0,e.jsx)(y,{}),(0,e.jsx)(n.wn,{title:"\u041F\u043E\u0432\u0440\u0435\u0436\u0434\u0435\u043D\u0438\u044F",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"\u0422\u0438\u043F \u043F\u043E\u0432\u0440\u0435\u0436\u0434\u0435\u043D\u0438\u0439",children:(0,e.jsxs)(n.az,{children:[(0,e.jsx)("span",{style:{color:"#0080ff"},children:"\u0423\u0434\u0443\u0448\u044C\u0435"})," /"," ",(0,e.jsx)("span",{style:{color:"green"},children:"\u041E\u0442\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435"})," /"," ",(0,e.jsx)("span",{style:{color:"#FF8000"},children:"\u0422\u0435\u0440\u043C."})," /"," ",(0,e.jsx)("span",{style:{color:"red"},children:"\u041C\u0435\u0445."})]})}),(0,e.jsx)(n.Ki.Item,{label:"\u0421\u0442\u0435\u043F\u0435\u043D\u044C \u043F\u043E\u0432\u0440\u0435\u0436\u0434\u0435\u043D\u0438\u0439",children:(0,e.jsxs)(n.az,{children:[c.damageLevels.oxy>0?(0,e.jsx)("span",{style:{color:"#0080ff",fontWeight:"bold"},children:c.damageLevels.oxy}):(0,e.jsx)("span",{style:{color:"#0080ff"},children:c.damageLevels.oxy})," ","-"," ",c.damageLevels.tox>0?(0,e.jsx)("span",{style:{color:"green",fontWeight:"bold"},children:c.damageLevels.tox}):(0,e.jsx)("span",{style:{color:"green"},children:c.damageLevels.tox})," ","-"," ",c.damageLevels.burn>0?(0,e.jsx)("span",{style:{color:"#FF8000",fontWeight:"bold"},children:c.damageLevels.burn}):(0,e.jsx)("span",{style:{color:"#FF8000"},children:c.damageLevels.burn})," ","-"," ",c.damageLevels.brute>0?(0,e.jsx)("span",{style:{color:"red",fontWeight:"bold"},children:c.damageLevels.brute}):(0,e.jsx)("span",{style:{color:"red"},children:c.damageLevels.brute})]})})]})}),(0,e.jsxs)(n.wn,{title:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"\u0421\u0442\u0430\u0442\u0443\u0441",children:c.status===2?(0,e.jsxs)(n.az,{color:"red",bold:!0,children:["\u0421\u043C\u0435\u0440\u0442\u044C"," ",!!c.DRN&&(0,e.jsx)("span",{style:{fontWeight:"bold"},children:"[\u041D\u0420]"})]}):c.health>0?(0,e.jsxs)(n.az,{children:[c.health,"% "]}):(0,e.jsxs)(n.az,{color:"red",bold:!0,children:[c.health,"%"," "]})}),c.status===2&&(0,e.jsx)(n.Ki.Item,{label:"\u0412\u0440\u0435\u043C\u044F \u0441\u043C\u0435\u0440\u0442\u0438",children:c.timeofdeath}),(0,e.jsxs)(n.Ki.Item,{label:"\u0422\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430 \u0442\u0435\u043B\u0430",children:[c.bodyTemperatureC," \xB0C (",c.bodyTemperatureF," \xB0F)"]}),c.bloodData&&(0,e.jsxs)(n.Ki.Item,{label:"\u0423\u0440\u043E\u0432\u0435\u043D\u044C \u043A\u0440\u043E\u0432\u0438",children:[c.bloodData.blood_volume<=501&&c.bloodData.blood_volume>346&&(0,e.jsxs)("span",{style:{color:"red",fontWeight:"bold"},children:["\u041D\u0418\u0417\u041A\u0418\u0419"," "]}),c.bloodData.blood_volume<346&&(0,e.jsxs)("span",{style:{color:"red",fontWeight:"bold"},children:["\u041A\u0420\u0418\u0422\u0418\u0427\u0415\u0421\u041A\u0418\u0419"," "]}),c.bloodData.blood_percent," %,"," ",c.bloodData.blood_volume," u, \u0442\u0438\u043F:"," ",c.bloodData.blood_type,", \u043A\u0440\u043E\u0432\u044C \u0440\u0430\u0441\u044B:"," ",O.get(c.bloodData.blood_species),"."]}),(0,e.jsx)(n.Ki.Item,{label:"\u041F\u0443\u043B\u044C\u0441",children:(0,e.jsxs)("span",{style:{color:c.pulse_status===2?"#0080ff":"red"},children:[c.pulse," \u0443\u0434/\u043C\u0438\u043D"]})}),(0,e.jsx)(n.Ki.Item,{label:"\u0413\u0435\u043D\u044B",children:c.genes<40?(0,e.jsx)(n.az,{color:"red",bold:!0,children:"\u041A\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0433\u0435\u043D\u043D\u0430\u044F \u043D\u0435\u0441\u0442\u0430\u0431\u0438\u043B\u044C\u043D\u043E\u0441\u0442\u044C."}):c.genes<70?(0,e.jsx)(n.az,{color:"red",bold:!0,children:"\u0422\u044F\u0436\u0451\u043B\u0430\u044F \u0433\u0435\u043D\u043D\u0430\u044F \u043D\u0435\u0441\u0442\u0430\u0431\u0438\u043B\u044C\u043D\u043E\u0441\u0442\u044C."}):c.genes<85?(0,e.jsx)(n.az,{color:"red",children:"\u041D\u0435\u0437\u043D\u0430\u0447\u0438\u0442\u0435\u043B\u044C\u043D\u0430\u044F \u0433\u0435\u043D\u043D\u0430\u044F \u043D\u0435\u0441\u0442\u0430\u0431\u0438\u043B\u044C\u043D\u043E\u0441\u0442\u044C."}):c.genes>40&&(0,e.jsx)(n.az,{children:"\u0413\u0435\u043D\u043D\u0430\u044F \u0441\u0442\u0440\u0443\u043A\u0442\u0443\u0440\u0430 \u0441\u0442\u0430\u0431\u0438\u043B\u044C\u043D\u0430."})})]}),(0,e.jsx)(u,{})]}),c.status===2&&(0,e.jsx)(n.wn,{children:(0,e.jsxs)(n.az,{children:[(0,e.jsxs)(n.az,{textAlign:"center",bold:!0,color:"red",children:["\u0421\u0443\u0431\u044A\u0435\u043A\u0442 \u0443\u043C\u0435\u0440 ",c.timetodefib," \u043D\u0430\u0437\u0430\u0434"]}),(0,e.jsx)(n.az,{textAlign:"center",bold:!0,color:"red",children:c.timetodefibText})]})}),c.heartCondition==="CRIT"&&(0,e.jsx)(n.wn,{title:"\u0412\u043D\u0438\u043C\u0430\u043D\u0438\u0435: \u041A\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435!",mt:2,mb:2,color:"red",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435",children:(0,e.jsx)(n.az,{bold:!0,children:"\u041E\u0441\u0442\u0430\u043D\u043E\u0432\u043A\u0430 \u0441\u0435\u0440\u0434\u0446\u0430"})}),(0,e.jsx)(n.Ki.Item,{label:"\u0422\u0438\u043F",children:(0,e.jsx)(n.az,{bold:!0,children:"\u0421\u0435\u0440\u0434\u0446\u0435 \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430 \u043E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u043B\u043E\u0441\u044C"})}),(0,e.jsx)(n.Ki.Item,{label:"\u0421\u0442\u0430\u0434\u0438\u044F",children:(0,e.jsx)(n.az,{bold:!0,children:"1/1"})}),(0,e.jsx)(n.Ki.Item,{label:"\u041B\u0435\u0447\u0435\u043D\u0438\u0435",children:(0,e.jsx)(n.az,{bold:!0,children:"\u042D\u043B\u0435\u043A\u0442\u0440\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u0448\u043E\u043A"})})]})}),l.localize&&(c.damageLocalization||c.fractureList[0]||c.infectedList[0]||c.bleedingList[0]||c.extraFacture)?(0,e.jsxs)(n.wn,{title:"\u041B\u043E\u043A\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u044F \u043F\u043E\u0432\u0440\u0435\u0436\u0434\u0435\u043D\u0438\u0439",children:[!!c.damageLocalization&&(0,e.jsx)(n.az,{children:(0,e.jsx)(n.Ki,{children:c.damageLocalization.map(function(h,g){return(0,e.jsx)(n.Ki.Item,{label:a.get(h.name),children:(0,e.jsxs)(n.az,{children:[(0,e.jsx)("span",{style:{color:"#FF8000"},children:h.burn})," ","-"," ",(0,e.jsx)("span",{style:{color:"red"},children:h.brute})]})},g)})})}),!!c.fractureList[0]&&(0,e.jsx)(n.az,{children:c.fractureList.map(function(h,g){return(0,e.jsxs)(n.az,{color:"#c51e1e",mt:1,children:["\u041E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D \u043F\u0435\u0440\u0435\u043B\u043E\u043C \u0432 ",h,"."]},g)})}),!!c.bleedingList[0]&&(0,e.jsx)(n.az,{children:c.bleedingList.map(function(h,g){return(0,e.jsxs)(n.az,{color:"#c51e1e",mt:1,children:[h,"."]},g)})}),!!c.infectedList[0]&&(0,e.jsx)(n.az,{children:c.infectedList.map(function(h,g){return(0,e.jsxs)(n.az,{color:"#c51e1e",mt:1,children:["\u041E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u043E \u0437\u0430\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0432 ",h,"."]},g)})}),!!c.extraFacture&&(0,e.jsx)(n.az,{color:"#c51e1e",mt:1,children:"\u041E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u044B \u043F\u0435\u0440\u0435\u043B\u043E\u043C\u044B. \u041B\u043E\u043A\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u044F \u043D\u0435\u0432\u043E\u0437\u043C\u043E\u0436\u043D\u0430."}),!!c.extraBleeding&&(0,e.jsx)(n.az,{color:"#c51e1e",mt:1,children:"\u041E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u043E \u0432\u043D\u0443\u0442\u0440\u0435\u043D\u043D\u0435\u0435 \u043A\u0440\u043E\u0432\u043E\u0442\u0435\u0447\u0435\u043D\u0438\u0435. \u041B\u043E\u043A\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u044F \u043D\u0435\u0432\u043E\u0437\u043C\u043E\u0436\u043D\u0430."})]}):!l.localize&&(!!c.fractureList[0]||c.infectedList[0]||!!c.extraFacture||!!c.extraBleeding)&&(0,e.jsxs)(n.wn,{title:"\u0414\u043E\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u044C\u043D\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",children:[!!c.fractureList[0]&&(0,e.jsx)(n.az,{children:c.fractureList.map(function(h,g){return(0,e.jsxs)(n.az,{color:"#c51e1e",mt:1,children:["\u041E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D \u043F\u0435\u0440\u0435\u043B\u043E\u043C \u0432 ",h,"."]},g)})}),!!c.bleedingList[0]&&(0,e.jsx)(n.az,{children:c.bleedingList.map(function(h,g){return(0,e.jsxs)(n.az,{color:"#c51e1e",mt:1,children:[h,"."]},g)})}),!!c.infectedList[0]&&(0,e.jsx)(n.az,{children:c.infectedList.map(function(h,g){return(0,e.jsxs)(n.az,{color:"#c51e1e",mt:1,children:["\u041E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u043E \u0437\u0430\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0432 ",h,"."]},g)})}),!!c.extraFacture&&(0,e.jsx)(n.az,{color:"#c51e1e",mt:1,children:"\u041E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u044B \u043F\u0435\u0440\u0435\u043B\u043E\u043C\u044B. \u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044F \u043F\u043E\u0434\u0440\u043E\u0431\u043D\u043E\u0435 \u0441\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435."}),!!c.extraBleeding&&(0,e.jsx)(n.az,{color:"#c51e1e",mt:1,children:"\u041E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u043E \u0432\u043D\u0443\u0442\u0440\u0435\u043D\u043D\u0435\u0435 \u043A\u0440\u043E\u0432\u043E\u0442\u0435\u0447\u0435\u043D\u0438\u0435. \u041B\u043E\u043A\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u044F \u043D\u0435\u0432\u043E\u0437\u043C\u043E\u0436\u043D\u0430."})]}),!!c.reagentList&&(0,e.jsx)(m,{}),!!c.diseases[0]&&(0,e.jsx)(f,{}),!!c.addictionList&&(0,e.jsx)(d,{}),!!c.implantDetect&&(0,e.jsx)(v,{}),(0,e.jsx)(n.wn,{title:"\u0421\u0442\u0440\u0430\u0445\u043E\u0432\u043A\u0430",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"\u0422\u0438\u043F \u0441\u0442\u0440\u0430\u0445\u043E\u0432\u043A\u0438 ",children:c.insuranceType}),(0,e.jsx)(n.Ki.Item,{label:"\u0422\u0440\u0435\u0431\u0443\u0435\u043C\u043E\u0435 \u043A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u043E\u0447\u043A\u043E\u0432 \u0441\u0442\u0440\u0430\u0445\u043E\u0432\u043A\u0438",children:c.reqInsurance}),!!c.insurance&&(0,e.jsx)(n.Ki.Item,{label:"\u0422\u0435\u043A\u0443\u0449\u0435\u0435 \u043A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u043E\u0447\u043A\u043E\u0432 \u0441\u0442\u0440\u0430\u0445\u043E\u0432\u043A\u0438",children:c.insurance})]})})]}):(0,e.jsx)(n.az,{textAlign:"center",bold:!0,children:"\u041F\u0430\u043C\u044F\u0442\u044C \u0430\u043D\u0430\u043B\u0438\u0437\u0430\u0442\u043E\u0440\u0430 \u0437\u0434\u043E\u0440\u043E\u0432\u044C\u044F \u0443\u0441\u043F\u0435\u0448\u043D\u043E \u043E\u0447\u0438\u0449\u0435\u043D\u0430"})}()})})},y=function(_){var l=(0,s.Oc)(),c=l.act,h=l.data;return(0,e.jsx)(n.wn,{textAlign:"center",children:(0,e.jsxs)(n.az,{nowrap:!0,children:[(0,e.jsx)(n.$n,{icon:"trash",content:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C",onClick:function(){return c("clear")}}),(0,e.jsx)(n.$n,{icon:"map-marker-alt",onClick:function(){return c("localize")},color:h.localize?"":"red",children:"\u041B\u043E\u043A\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u044F"}),!!h.advanced&&(0,e.jsx)(n.$n,{icon:"print",onClick:function(){return c("print")},children:"\u041F\u0435\u0447\u0430\u0442\u044C \u043E\u0442\u0447\u0451\u0442\u0430"}),!!h.advanced&&(0,e.jsx)(n.$n,{icon:"file-invoice-dollar",onClick:function(){return c("insurance")},children:"\u0421\u043F\u0438\u0441\u0430\u0442\u044C \u0441\u0442\u0440\u0430\u0445\u043E\u0432\u043A\u0443"})]})})},u=function(_){var l=(0,s.Oc)().data,c=l.scan_data,h=c.heartCondition,g=c.brainDamage,p=c.bleed,j=c.staminaStatus,x=c.cloneStatus,C=c.brainWorms;return(0,e.jsxs)(n.az,{children:[h==="LESS"?(0,e.jsx)(n.az,{color:"#d82020",mt:1,bold:!0,children:"\u0421\u0435\u0440\u0434\u0446\u0435 \u043D\u0435 \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u043E."}):h==="NECROSIS"&&(0,e.jsx)(n.az,{color:"#d82020",mt:1,bold:!0,children:"\u041E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D \u043D\u0435\u043A\u0440\u043E\u0437 \u0441\u0435\u0440\u0434\u0446\u0430."}),g>100?(0,e.jsx)(n.az,{color:"#c51e1e",mt:1,bold:!0,children:"\u041C\u043E\u0437\u0433 \u043C\u0451\u0440\u0442\u0432"}):g>60?(0,e.jsx)(n.az,{color:"#c51e1e",mt:1,bold:!0,children:"\u041E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u043E \u0441\u0435\u0440\u044C\u0451\u0437\u043D\u043E\u0435 \u043F\u043E\u0432\u0440\u0435\u0436\u0434\u0435\u043D\u0438\u0435 \u043C\u043E\u0437\u0433\u0430."}):g>10?(0,e.jsx)(n.az,{color:"#c51e1e",mt:1,children:"\u041E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u043E \u0437\u043D\u0430\u0447\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0435 \u043F\u043E\u0432\u0440\u0435\u0436\u0434\u0435\u043D\u0438\u0435 \u043C\u043E\u0437\u0433\u0430."}):g==="LESS"&&(0,e.jsx)(n.az,{color:"#c51e1e",mt:1,bold:!0,children:"\u041C\u043E\u0437\u0433 \u043D\u0435 \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D."}),!!p&&(0,e.jsx)(n.az,{color:"#c51e1e",mt:1,bold:!0,children:"\u041E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u043E \u043A\u0440\u043E\u0432\u043E\u0442\u0435\u0447\u0435\u043D\u0438\u0435!"}),!!j&&(0,e.jsx)(n.az,{color:"#0080ff",mt:1,bold:!0,children:"\u041E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u043E \u0438\u0441\u0442\u043E\u0449\u0435\u043D\u0438\u0435."}),x>30?(0,e.jsx)(n.az,{color:"#c51e1e",mt:1,bold:!0,children:"\u041E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u043E \u0441\u0435\u0440\u044C\u0451\u0437\u043D\u043E\u0435 \u043A\u043B\u0435\u0442\u043E\u0447\u043D\u043E\u0435 \u043F\u043E\u0432\u0440\u0435\u0436\u0434\u0435\u043D\u0438\u0435!"}):x>0&&(0,e.jsx)(n.az,{color:"#c51e1e",mt:1,children:"\u041E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u043E \u043D\u0435\u0437\u043D\u0430\u0447\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0435 \u043A\u043B\u0435\u0442\u043E\u0447\u043D\u043E\u0435 \u043F\u043E\u0432\u0440\u0435\u0436\u0434\u0435\u043D\u0438\u0435."}),!!C&&(0,e.jsx)(n.az,{color:"#c51e1e",mt:1,bold:!0,children:"\u041E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u044B \u043E\u0442\u043A\u043B\u043E\u043D\u0435\u043D\u0438\u044F \u0432 \u0440\u0430\u0431\u043E\u0442\u0435 \u043C\u043E\u0437\u0433\u0430."})]})},f=function(_){var l=(0,s.Oc)().data,c=l.scan_data.diseases;return(0,e.jsx)(n.az,{children:c.map(function(h,g){return(0,e.jsx)(n.wn,{title:"\u0412\u043D\u0438\u043C\u0430\u043D\u0438\u0435: "+h.form,mt:2,mb:2,color:"red",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435",children:(0,e.jsx)(n.az,{bold:!0,children:h.name})}),(0,e.jsx)(n.Ki.Item,{label:"\u0422\u0438\u043F",children:(0,e.jsx)(n.az,{bold:!0,children:h.additional_info})}),(0,e.jsx)(n.Ki.Item,{label:"\u0421\u0442\u0430\u0434\u0438\u044F",children:(0,e.jsxs)(n.az,{bold:!0,children:[h.stage,"/",h.max_stages]})}),(0,e.jsx)(n.Ki.Item,{label:"\u041B\u0435\u0447\u0435\u043D\u0438\u0435",children:(0,e.jsx)(n.az,{bold:!0,children:h.cure_text})})]})},g)})})},m=function(_){var l=(0,s.Oc)().data,c=l.scan_data.reagentList;return(0,e.jsx)(n.wn,{title:"\u041E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u044B \u0432\u0435\u0449\u0435\u0441\u0442\u0432\u0430",children:(0,e.jsx)(n.Ki,{children:c.map(function(h,g){return(0,e.jsx)(n.Ki.Item,{label:h.name,children:(0,e.jsxs)(n.az,{children:[h.volume," \u0435\u0434."," ",!!h.overdosed&&(0,e.jsx)(n.az,{as:"span",color:"red",bold:!0,children:"- \u041F\u0415\u0420\u0415\u0414\u041E\u0417\u0418\u0420\u041E\u0412\u041A\u0410!"})]})},g)})})})},d=function(_){var l=(0,s.Oc)().data,c=l.scan_data.addictionList;return(0,e.jsx)(n.wn,{title:"\u041E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u044B \u0437\u0430\u0432\u0438\u0441\u0438\u043C\u043E\u0441\u0442\u0438",children:(0,e.jsx)(n.Ki,{children:c.map(function(h,g){return(0,e.jsx)(n.Ki.Item,{label:h.name,children:(0,e.jsxs)(n.az,{children:["\u0421\u0442\u0430\u0434\u0438\u044F: ",h.addiction_stage,"/5"]})},g)})})})},v=function(_){var l=(0,s.Oc)().data,c=l.scan_data.implantDetect;return(0,e.jsx)(n.wn,{title:"\u041E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u044B \u043A\u0438\u0431\u0435\u0440\u043D\u0435\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u043C\u043E\u0434\u0438\u0444\u0438\u043A\u0430\u0446\u0438\u0438:",children:(0,e.jsx)(n.Ki,{children:c.map(function(h,g){return(0,e.jsx)(n.az,{ml:1,bold:!0,children:h},g)})})})}},5838:(q,S,r)=>{"use strict";r.r(S),r.d(S,{CircuitModule:()=>b});var e=r(1131),s=r(360),n=r(5180),t=r(3521);function a(){return a=Object.assign||function(u){for(var f=1;f=0)&&(m[v]=u[v]);return m}var b=function(u){var f=(0,s.Oc)(),m=f.act,d=f.data,v=d.input_ports,_=d.output_ports,l=d.global_port_types;return(0,e.jsx)(t.p8,{width:600,height:300,children:(0,e.jsx)(t.p8.Content,{scrollable:!0,children:(0,e.jsxs)(n.BJ,{vertical:!0,children:[(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.$n,{textAlign:"center",fluid:!0,onClick:function(){return m("open_internal_circuit")},children:"\u041E\u0431\u0437\u043E\u0440 \u0432\u043D\u0443\u0442\u0440\u0435\u043D\u043D\u0435\u0439 \u0438\u043D\u0442\u0435\u0433\u0440\u0430\u043B\u044C\u043D\u043E\u0439 \u0441\u0445\u0435\u043C\u044B"})}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsxs)(n.BJ,{width:"100%",children:[(0,e.jsx)(n.BJ.Item,{basis:"50%",children:(0,e.jsx)(n.wn,{title:"\u041F\u043E\u0440\u0442\u044B \u0432\u0432\u043E\u0434\u0430",children:(0,e.jsxs)(n.BJ,{vertical:!0,children:[v.map(function(c,h){return(0,e.jsx)(y,{name:c.name,datatype:c.type,datatypeOptions:l,onRemove:function(){return m("remove_input_port",{port_id:h+1})},onSetType:function(g){return m("set_port_type",{port_id:h+1,is_input:!0,port_type:g})},onEnter:function(g,p){return m("set_port_name",{port_id:h+1,is_input:!0,port_name:p})}},h)}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.$n,{fluid:!0,color:"good",icon:"plus",onClick:function(){return m("add_input_port")},children:"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043F\u043E\u0440\u0442 \u0432\u0432\u043E\u0434\u0430"})})]})})}),(0,e.jsx)(n.BJ.Item,{basis:"50%",children:(0,e.jsx)(n.wn,{title:"\u041F\u043E\u0440\u0442\u044B \u0432\u044B\u0432\u043E\u0434\u0430",children:(0,e.jsxs)(n.BJ,{vertical:!0,children:[_.map(function(c,h){return(0,e.jsx)(y,{name:c.name,datatype:c.type,datatypeOptions:l,onRemove:function(){return m("remove_output_port",{port_id:h+1})},onSetType:function(g){return m("set_port_type",{port_id:h+1,is_input:!1,port_type:g})},onEnter:function(g,p){return m("set_port_name",{port_id:h+1,is_input:!1,port_name:p})}},h)}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.$n,{fluid:!0,color:"good",icon:"plus",onClick:function(){return m("add_output_port")},children:"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043F\u043E\u0440\u0442 \u0432\u044B\u0432\u043E\u0434\u0430"})})]})})})]})})]})})})},y=function(u){var f=u.onRemove,m=u.onEnter,d=u.onSetType,v=u.name,_=u.datatype,l=u.datatypeOptions,c=l===void 0?[]:l,h=O(u,["onRemove","onEnter","onSetType","name","datatype","datatypeOptions"]);return(0,e.jsx)(n.BJ.Item,a({},h,{children:(0,e.jsxs)(n.BJ,{children:[(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(n.pd,{placeholder:"Name",value:v,onChange:m})}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.ms,{selected:_,options:c,onSelected:d,width:"100%"})}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.$n,{icon:"times",color:"red",onClick:f})})]})}))}},5899:(q,S,r)=>{"use strict";r.r(S),r.d(S,{SpawnPanel:()=>m});var e=r(1131),s=r(7003),n=r(5180),t=r(3655),a=r(1243),O=r(3521),b=r(4947),y=r(9427),u=r(8151);function f(){return f=Object.assign||function(d){for(var v=1;v{"use strict";r.r(S),r.d(S,{ComponentPrinter:()=>O});var e=r(1131),s=r(360),n=r(3521),t=r(5180),a=r(9845),O=function(b){var y=(0,s.Oc)(),u=y.act,f=y.data,m=f.designs;return(0,e.jsx)(n.p8,{title:"\u0414\u0443\u0431\u043B\u0438\u043A\u0430\u0442\u043E\u0440 \u043F\u0435\u0447\u0430\u0442\u043D\u044B\u0445 \u043F\u043B\u0430\u0442",width:670,height:600,children:(0,e.jsx)(n.p8.Content,{children:(0,e.jsxs)(t.az,{children:[Object.values(m).length===0&&(0,e.jsx)(t.BJ.Item,{mt:1,fontSize:1,children:(0,e.jsx)(t.IC,{info:!0,children:"\u0421\u043E\u0445\u0440\u0430\u043D\u0451\u043D\u043D\u044B\u0435 \u0441\u0445\u0435\u043C\u044B \u043E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044E\u0442."})}),Object.values(m).map(function(d){return(0,e.jsxs)(t.wn,{children:[(0,e.jsx)(t.Hg,{icon:d.icon,icon_state:d.IconState,style:{verticalAlign:"middle",width:"32px",margin:"0px",marginLeft:"0px"}}),(0,e.jsx)(t.$n,{mr:1,icon:"hammer",tooltip:d.desc,onClick:function(){return u("print",{designId:d.id})},children:(0,a.Sn)(d.name)}),d.cost&&Object.keys(d.cost).map(function(v){return(0,a.Sn)(v)+": "+d.cost[v]}).join(", ")||(0,e.jsx)(t.az,{children:"\u0420\u0435\u0441\u0443\u0440\u0441\u044B \u0434\u043B\u044F \u043F\u0435\u0447\u0430\u0442\u0438 \u043D\u0435 \u0442\u0440\u0435\u0431\u0443\u044E\u0442\u0441\u044F."}),(0,e.jsx)(t.$n,{mr:1,icon:"trash-can",position:"absolute",right:1,top:1,onClick:function(){return u("del_design",{designId:d.id})}})]},d.id)})]})})})}},5951:(q,S,r)=>{"use strict";r.r(S),r.d(S,{ListInputModal:()=>b});var e=r(1131),s=r(7003),n=r(5180),t=r(683),a=r(360),O=r(30),b=function(u){var f=(0,a.Oc)().act,m=u.items,d=m===void 0?[]:m,v=u.default_item,_=u.message,l=u.on_selected,c=u.on_cancel,h=(0,s.useState)(d.indexOf(v)),g=h[0],p=h[1],j=(0,s.useState)(d.length>9),x=j[0],C=j[1],I=(0,s.useState)(""),P=I[0],M=I[1],B=function($){var W=F.length-1;if($===t.R)if(g===null||g===W){var N;p(0),(N=document.getElementById("0"))==null||N.scrollIntoView()}else{var Z;p(g+1),(Z=document.getElementById((g+1).toString()))==null||Z.scrollIntoView()}else if($===t.gf)if(g===null||g===0){var ie;p(W),(ie=document.getElementById(W.toString()))==null||ie.scrollIntoView()}else{var Q;p(g-1),(Q=document.getElementById((g-1).toString()))==null||Q.scrollIntoView()}},w=function($){$!==g&&p($)},T=function(){C(!1),setTimeout(function(){C(!0)},1)},K=function($){var W=String.fromCharCode($),N=d.find(function(Q){return Q?.toLowerCase().startsWith(W?.toLowerCase())});if(N){var Z,ie=d.indexOf(N);p(ie),(Z=document.getElementById(ie.toString()))==null||Z.scrollIntoView()}},R=function($){var W;$!==P&&(M($),p(0),(W=document.getElementById("0"))==null||W.scrollIntoView())},U=function(){C(!x),M("")},F=d.filter(function($){return $?.toLowerCase().includes(P.toLowerCase())});return x||setTimeout(function(){var $;return($=document.getElementById(g.toString()))==null?void 0:$.focus()},1),(0,e.jsx)(n.wn,{onKeyDown:function($){var W=window.event?$.which:$.keyCode;(W===t.R||W===t.gf)&&($.preventDefault(),B(W)),W===t.Ri&&($.preventDefault(),l(F[g])),!x&&W>=t.W8&&W<=t.bh&&($.preventDefault(),K(W)),W===t.s6&&($.preventDefault(),c())},buttons:(0,e.jsx)(n.$n,{compact:!0,icon:x?"search":"font",selected:!0,tooltip:x?"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 U()}}),className:"ListInput__Section",fill:!0,title:_,children:(0,e.jsxs)(n.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(y,{filteredItems:F,onClick:w,onFocusSearch:T,searchBarVisible:x,selected:g})}),x&&(0,e.jsx)(n.pd,{autoFocus:!0,autoSelect:!0,fluid:!0,onEnter:function(){f("submit",{entry:F[g]})},expensive:!0,onChange:R,placeholder:"Search...",value:P}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(O.InputButtons,{input:F[g],on_submit:function(){return l(F[g])},on_cancel:c})})]})})},y=function(u){var f=(0,a.Oc)().act,m=u.filteredItems,d=u.onClick,v=u.onFocusSearch,_=u.searchBarVisible,l=u.selected;return(0,e.jsxs)(n.wn,{fill:!0,scrollable:!0,children:[(0,e.jsx)(n.y5,{}),m.map(function(c,h){return(0,e.jsx)(n.$n,{className:h!==l?"candystripe":"",color:"transparent",fluid:!0,id:h,onClick:function(){return d(h)},onDoubleClick:function(g){g.preventDefault(),f("submit",{entry:m[l]})},onKeyDown:function(g){var p=window.event?g.which:g.keyCode;_&&p>=t.W8&&p<=t.bh&&(g.preventDefault(),v())},selected:h===l,style:{animation:"none",transition:"none"},children:c.replace(/^\w/,function(g){return g.toUpperCase()})},h)})]})}},5959:(q,S,r)=>{"use strict";r.r(S),r.d(S,{Tank:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(O){var b=(0,s.Oc)(),y=b.act,u=b.data,f;return u.has_mask?f=(0,e.jsx)(n.Ki.Item,{label:"Mask",children:(0,e.jsx)(n.$n,{icon:u.connected?"check":"times",selected:u.connected,onClick:function(){return y("internals")},children:u.connected?"Internals On":"Internals Off"})}):f=(0,e.jsx)(n.Ki.Item,{label:"Mask",color:"red",children:"No Mask Equipped"}),(0,e.jsx)(t.p8,{width:300,height:150,children:(0,e.jsx)(t.p8.Content,{children:(0,e.jsx)(n.wn,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Tank Pressure",children:(0,e.jsx)(n.z2,{value:u.tankPressure/1013,ranges:{good:[.35,1/0],average:[.15,.35],bad:[-1/0,.15]},children:u.tankPressure+" kPa"})}),(0,e.jsxs)(n.Ki.Item,{label:"Release Pressure",children:[(0,e.jsx)(n.$n,{icon:"fast-backward",disabled:u.releasePressure===u.minReleasePressure,tooltip:"Min",onClick:function(){return y("pressure",{pressure:"min"})}}),(0,e.jsx)(n.Q7,{animated:!0,value:u.releasePressure,width:"65px",unit:"kPa",step:.1,minValue:u.minReleasePressure,maxValue:u.maxReleasePressure,onChange:function(m){return y("pressure",{pressure:m})}}),(0,e.jsx)(n.$n,{icon:"fast-forward",disabled:u.releasePressure===u.maxReleasePressure,tooltip:"Max",onClick:function(){return y("pressure",{pressure:"max"})}}),(0,e.jsx)(n.$n,{icon:"undo",disabled:u.releasePressure===u.defaultReleasePressure,tooltip:"Reset",onClick:function(){return y("pressure",{pressure:"reset"})}})]}),f]})})})})}},6012:(q,S,r)=>{"use strict";r.r(S),r.d(S,{LatheChemicalStorage:()=>t});var e=r(1131),s=r(360),n=r(5180),t=function(a){var O=(0,s.Oc)(),b=O.data,y=O.act,u=b.loaded_chemicals,f=b.menu===4;return(0,e.jsxs)(n.wn,{title:"\u0411\u0443\u0444\u0435\u0440 \u0440\u0435\u0430\u0433\u0435\u043D\u0442\u043E\u0432",children:[(0,e.jsx)(n.$n,{icon:"trash",onClick:function(){var m=f?"disposeallP":"disposeallI";y(m)},children:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0432\u0441\u0451"}),(0,e.jsx)(n.Ki,{children:u.map(function(m){var d=m.volume,v=m.name,_=m.id;return(0,e.jsx)(n.Ki.Item,{label:"* "+d+" of "+v,children:(0,e.jsx)(n.$n,{icon:"trash",onClick:function(){var l=f?"disposeP":"disposeI";y(l,{id:_})},children:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C"})},_)})})]})}},6051:(q,S,r)=>{"use strict";r.r(S),r.d(S,{pai_advsecrecords:()=>t});var e=r(1131),s=r(360),n=r(5180),t=function(a){var O=(0,s.Oc)().act;return(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Special Syndicate options:",children:(0,e.jsx)(n.$n,{onClick:function(){return O("ui_interact")},children:"Select Records"})})})}},6081:(q,S,r)=>{"use strict";r.r(S),r.d(S,{Customat:()=>O});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(b){var y=(0,s.Oc)(),u=y.act,f=y.data,m=b.product,d=f.userMoney,v=f.vend_ready,_=m.price===0,l="ERROR!",c="";_?(l="\u0411\u0415\u0421\u041F\u041B\u0410\u0422\u041D\u041E",c="arrow-circle-down"):(l=m.price.toString(),c="shopping-cart");var h=!v||m.stock===0||!_&&m.price>d;return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:(0,e.jsx)(n.Hg,{verticalAlign:"middle",icon:m.icon,icon_state:m.icon_state,fallback:(0,e.jsx)(n.In,{p:.66,name:"spinner",size:2,spin:!0})})}),(0,e.jsx)(n.XI.Cell,{bold:!0,children:(0,e.jsx)(n.$n,{multiLine:!0,color:"translucent",tooltip:m.desc,children:m.name})}),(0,e.jsx)(n.XI.Cell,{collapsing:!0,textAlign:"center",children:(0,e.jsxs)(n.az,{color:m.stock<=0&&"bad"||"good",children:[m.stock," \u0432 \u043D\u0430\u043B\u0438\u0447\u0438\u0438"]})}),(0,e.jsx)(n.XI.Cell,{collapsing:!0,textAlign:"center",children:(0,e.jsx)(n.$n,{fluid:!0,disabled:h,icon:c,textAlign:"left",onClick:function(){return u("vend",{Key:m.Key})},children:l})})]})},O=function(b){var y=(0,s.Oc)(),u=y.act,f=y.data,m=f.guestNotice,d=f.userMoney,v=f.user,_=f.products,l=f.panel_open,c=f.speaker;return(0,e.jsx)(t.p8,{width:470,height:600,title:"\u041A\u0430\u0441\u0442\u043E\u043C\u0430\u0442",children:(0,e.jsx)(t.p8.Content,{children:(0,e.jsxs)(n.BJ,{fill:!0,vertical:!0,children:[(0,e.jsxs)(n.BJ.Item,{children:[(0,e.jsx)(n.wn,{title:"\u041F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C",children:v&&(0,e.jsxs)(n.az,{children:["\u0417\u0434\u0440\u0430\u0441\u0442\u0432\u0443\u0439\u0442\u0435, ",(0,e.jsx)("b",{children:v.name}),","," ",(0,e.jsx)("b",{children:v.job||"\u0411\u0435\u0437\u0440\u0430\u0431\u043E\u0442\u043D\u044B\u0439"}),"!",(0,e.jsx)("br",{}),"\u0412\u0430\u0448 \u0431\u0430\u043B\u0430\u043D\u0441: ",(0,e.jsxs)("b",{children:[d," \u043A\u0440."]})]})||(0,e.jsx)(n.az,{color:"light-grey",children:m})}),!!l&&(0,e.jsx)(n.wn,{title:"\u0422\u0435\u0445. \u043E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u043D\u0438\u0435",children:(0,e.jsx)(n.$n,{icon:c?"check":"volume-mute",selected:c,textAlign:"left",onClick:function(){return u("toggle_voice",{})},children:"\u0414\u0438\u043D\u0430\u043C\u0438\u043A"})})]}),(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(n.wn,{title:"\u041F\u0440\u043E\u0434\u0443\u043A\u0446\u0438\u044F",fill:!0,scrollable:!0,children:(0,e.jsx)(n.XI,{children:_.map(function(h){return(0,e.jsx)(a,{product:h},h.name)})})})})]})})})}},6092:(q,S,r)=>{"use strict";r.d(S,{$:()=>e});/** + */var O=function(f){var m=f.children;return(0,e.jsx)("table",{className:"LabeledList",children:(0,e.jsx)("tbody",{children:m})})},y=function(f){var m=f.className,d=f.label,v=f.labelColor,_=v===void 0?"label":v,l=f.labelWrap,c=f.labelStyle,h=f.color,g=f.textAlign,p=f.buttons,j=f.content,x=f.children,C=f.verticalAlign,I=C===void 0?"baseline":C,P=f.tooltip,M;d&&(M=d,typeof d=="string"&&(M+=":")),P!==void 0&&(M=(0,e.jsx)(b.m,{content:P,children:(0,e.jsx)(t.a,{as:"span",style:{borderBottom:"2px dotted rgba(255, 255, 255, 0.8)"},children:M})}));var B=(0,e.jsx)(t.a,{as:"td",color:_,className:(0,s.Ly)(["LabeledList__cell",!l&&"LabeledList__label--nowrap"]),verticalAlign:I,style:c,children:M});return(0,e.jsxs)("tr",{className:(0,s.Ly)(["LabeledList__row",m]),children:[B,(0,e.jsxs)(t.a,{as:"td",color:h,textAlign:g,className:"LabeledList__cell",colSpan:p?void 0:2,verticalAlign:I,children:[j,x]}),p&&(0,e.jsx)("td",{className:"LabeledList__cell LabeledList__buttons",children:p})]})},u=function(f){var m=f.size?(0,n.zA)(Math.max(0,f.size-1)):0;return(0,e.jsx)("tr",{className:"LabeledList__row",children:(0,e.jsx)("td",{colSpan:3,style:{paddingTop:m,paddingBottom:m},children:(0,e.jsx)(a.c,{})})})};O.Divider=u,O.Item=y},5819:(q,S,r)=>{"use strict";r.r(S),r.d(S,{Healthanalyzer:()=>O});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=new Map([["upper body","\u0413\u0440\u0443\u0434\u044C"],["lower body","\u0416\u0438\u0432\u043E\u0442"],["head","\u0413\u043E\u043B\u043E\u0432\u0430"],["left arm","\u041B\u0435\u0432\u0430\u044F \u0440\u0443\u043A\u0430"],["right arm","\u041F\u0440\u0430\u0432\u0430\u044F \u0440\u0443\u043A\u0430"],["left leg","\u041B\u0435\u0432\u0430\u044F \u043D\u043E\u0433\u0430"],["right leg","\u041F\u0440\u0430\u0432\u0430\u044F \u043D\u043E\u0433\u0430"],["left foot","\u041B\u0435\u0432\u0430\u044F \u0441\u0442\u0443\u043F\u043D\u044F"],["right foot","\u041F\u0440\u0430\u0432\u0430\u044F \u0441\u0442\u0443\u043F\u043D\u044F"],["left hand","\u041B\u0435\u0432\u0430\u044F \u043A\u0438\u0441\u0442\u044C"],["right hand","\u041F\u0440\u0430\u0432\u0430\u044F \u043A\u0438\u0441\u0442\u044C"],["monkey tail","\u0425\u0432\u043E\u0441\u0442 \u043E\u0431\u0435\u0437\u044C\u044F\u043D\u044B"],["wolpin tail","\u0425\u0432\u043E\u0441\u0442 \u0432\u0443\u043B\u044C\u043F\u0438\u043D\u0430"],["unathi tail","\u0425\u0432\u043E\u0441\u0442 \u0443\u043D\u0430\u0442\u0445\u0430"],["tajaran tail","\u0425\u0432\u043E\u0441\u0442 \u0442\u0430\u044F\u0440\u0430\u043D\u0430"],["vulpkanin tail","\u0425\u0432\u043E\u0441\u0442 \u0432\u0443\u043B\u044C\u043F\u043A\u0430\u043D\u0438\u043D\u0430"],["vox tail","\u0425\u0432\u043E\u0441\u0442 \u0432\u043E\u043A\u0441\u0430"],["wryn tail","\u0425\u0432\u043E\u0441\u0442 \u0432\u0440\u0438\u043D\u0430"],["luam wings","\u041A\u0440\u044B\u043B\u044C\u044F \u043B\u0443\u0430\u043C"]]),b=new Map([["Diona","\u0414\u0438\u043E\u043D\u0430"],["Human","\u0427\u0435\u043B\u043E\u0432\u0435\u043A"],["Drask","\u0414\u0440\u0430\u0441\u043A"],["Grey","\u0413\u0440\u0435\u0439"],["Vulpkanin","\u0412\u0443\u043B\u044C\u043F\u0430\u043A\u0438\u043D"],["Tajaran","\u0422\u0430\u044F\u0440\u0430\u043D"],["Skrell","\u0421\u043A\u0440\u0435\u043B\u043B"],["Nian","\u041D\u0438\u0430\u043D"],["Unathi","\u0423\u043D\u0430\u0442\u0445"],["Kidan","\u041A\u0438\u0434\u0430\u043D"],["Wryn","\u0412\u0440\u0438\u043D"],["Vox","\u0412\u043E\u043A\u0441"]]),O=function(_){var l=(0,s.Oc)().data,c=l.scan_data;return(0,e.jsx)(t.p8,{width:500,height:450,theme:l.theme?l.theme:"",title:l.scan_title?l.scan_title:"\u0410\u043D\u0430\u043B\u0438\u0437\u0430\u0442\u043E\u0440 \u0437\u0434\u043E\u0440\u043E\u0432\u044C\u044F",children:(0,e.jsx)(t.p8.Content,{scrollable:!0,children:function(){return c?c.status==="ERROR"||c.status==="FLOOR"?(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.wn,{title:"\u041F\u043E\u0432\u0440\u0435\u0436\u0434\u0435\u043D\u0438\u044F",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"\u0422\u0438\u043F \u043F\u043E\u0432\u0440\u0435\u0436\u0434\u0435\u043D\u0438\u0439",children:(0,e.jsxs)(n.az,{children:[(0,e.jsx)("span",{style:{color:"#0080ff"},children:"\u0423\u0434\u0443\u0448\u044C\u0435"})," /"," ",(0,e.jsx)("span",{style:{color:"green"},children:"\u041E\u0442\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435"})," /"," ",(0,e.jsx)("span",{style:{color:"#FF8000"},children:"\u0422\u0435\u0440\u043C."})," /"," ",(0,e.jsx)("span",{style:{color:"red"},children:"\u041C\u0435\u0445."})]})}),(0,e.jsx)(n.Ki.Item,{label:"\u0421\u0442\u0435\u043F\u0435\u043D\u044C \u043F\u043E\u0432\u0440\u0435\u0436\u0434\u0435\u043D\u0438\u0439",children:(0,e.jsxs)(n.az,{children:[(0,e.jsx)("span",{style:{color:"#0080ff"},children:"?"})," -"," ",(0,e.jsx)("span",{style:{color:"green"},children:"?"})," -"," ",(0,e.jsx)("span",{style:{color:"#FF8000"},children:"?"})," -"," ",(0,e.jsx)("span",{style:{color:"red"},children:"?"})]})})]})}),(0,e.jsx)(n.wn,{title:"\u041E\u0431\u0449\u0435\u0435 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"\u041E\u0446\u0435\u043D\u043A\u0430 \u0437\u0434\u043E\u0440\u043E\u0432\u044C\u044F",children:(0,e.jsx)(n.az,{color:"#c51e1e",bold:!0,children:"\u041E\u0428\u0418\u0411\u041A\u0410"})}),(0,e.jsx)(n.Ki.Item,{label:"\u0422\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430 \u0442\u0435\u043B\u0430",children:"--- \xB0C --- \xB0F"}),(0,e.jsx)(n.Ki.Item,{label:"\u0423\u0440\u043E\u0432\u0435\u043D\u044C \u043A\u0440\u043E\u0432\u0438",children:"--- %, --- u, \u0442\u0438\u043F: ---, \u043A\u0440\u043E\u0432\u044C \u0440\u0430\u0441\u044B: ---"}),(0,e.jsx)(n.Ki.Item,{label:"\u041F\u0443\u043B\u044C\u0441",children:"--- \u0443\u0434/\u043C\u0438\u043D"}),(0,e.jsx)(n.Ki.Item,{label:"\u0413\u0435\u043D\u044B",children:"\u0413\u0435\u043D\u043D\u0430\u044F \u0441\u0442\u0440\u0443\u043A\u0442\u0443\u0440\u0430 \u043D\u0435 \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u0430"})]})})]}):(0,e.jsxs)(n.az,{children:[(0,e.jsx)(y,{}),(0,e.jsx)(n.wn,{title:"\u041F\u043E\u0432\u0440\u0435\u0436\u0434\u0435\u043D\u0438\u044F",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"\u0422\u0438\u043F \u043F\u043E\u0432\u0440\u0435\u0436\u0434\u0435\u043D\u0438\u0439",children:(0,e.jsxs)(n.az,{children:[(0,e.jsx)("span",{style:{color:"#0080ff"},children:"\u0423\u0434\u0443\u0448\u044C\u0435"})," /"," ",(0,e.jsx)("span",{style:{color:"green"},children:"\u041E\u0442\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435"})," /"," ",(0,e.jsx)("span",{style:{color:"#FF8000"},children:"\u0422\u0435\u0440\u043C."})," /"," ",(0,e.jsx)("span",{style:{color:"red"},children:"\u041C\u0435\u0445."})]})}),(0,e.jsx)(n.Ki.Item,{label:"\u0421\u0442\u0435\u043F\u0435\u043D\u044C \u043F\u043E\u0432\u0440\u0435\u0436\u0434\u0435\u043D\u0438\u0439",children:(0,e.jsxs)(n.az,{children:[c.damageLevels.oxy>0?(0,e.jsx)("span",{style:{color:"#0080ff",fontWeight:"bold"},children:c.damageLevels.oxy}):(0,e.jsx)("span",{style:{color:"#0080ff"},children:c.damageLevels.oxy})," ","-"," ",c.damageLevels.tox>0?(0,e.jsx)("span",{style:{color:"green",fontWeight:"bold"},children:c.damageLevels.tox}):(0,e.jsx)("span",{style:{color:"green"},children:c.damageLevels.tox})," ","-"," ",c.damageLevels.burn>0?(0,e.jsx)("span",{style:{color:"#FF8000",fontWeight:"bold"},children:c.damageLevels.burn}):(0,e.jsx)("span",{style:{color:"#FF8000"},children:c.damageLevels.burn})," ","-"," ",c.damageLevels.brute>0?(0,e.jsx)("span",{style:{color:"red",fontWeight:"bold"},children:c.damageLevels.brute}):(0,e.jsx)("span",{style:{color:"red"},children:c.damageLevels.brute})]})})]})}),(0,e.jsxs)(n.wn,{title:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"\u0421\u0442\u0430\u0442\u0443\u0441",children:c.status===2?(0,e.jsxs)(n.az,{color:"red",bold:!0,children:["\u0421\u043C\u0435\u0440\u0442\u044C"," ",!!c.DRN&&(0,e.jsx)("span",{style:{fontWeight:"bold"},children:"[\u041D\u0420]"})]}):c.health>0?(0,e.jsxs)(n.az,{children:[c.health,"% "]}):(0,e.jsxs)(n.az,{color:"red",bold:!0,children:[c.health,"%"," "]})}),c.status===2&&(0,e.jsx)(n.Ki.Item,{label:"\u0412\u0440\u0435\u043C\u044F \u0441\u043C\u0435\u0440\u0442\u0438",children:c.timeofdeath}),(0,e.jsxs)(n.Ki.Item,{label:"\u0422\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430 \u0442\u0435\u043B\u0430",children:[c.bodyTemperatureC," \xB0C (",c.bodyTemperatureF," \xB0F)"]}),c.bloodData&&(0,e.jsxs)(n.Ki.Item,{label:"\u0423\u0440\u043E\u0432\u0435\u043D\u044C \u043A\u0440\u043E\u0432\u0438",children:[c.bloodData.blood_volume<=501&&c.bloodData.blood_volume>346&&(0,e.jsxs)("span",{style:{color:"red",fontWeight:"bold"},children:["\u041D\u0418\u0417\u041A\u0418\u0419"," "]}),c.bloodData.blood_volume<346&&(0,e.jsxs)("span",{style:{color:"red",fontWeight:"bold"},children:["\u041A\u0420\u0418\u0422\u0418\u0427\u0415\u0421\u041A\u0418\u0419"," "]}),c.bloodData.blood_percent," %,"," ",c.bloodData.blood_volume," u, \u0442\u0438\u043F:"," ",c.bloodData.blood_type,", \u043A\u0440\u043E\u0432\u044C \u0440\u0430\u0441\u044B:"," ",b.get(c.bloodData.blood_species),"."]}),(0,e.jsx)(n.Ki.Item,{label:"\u041F\u0443\u043B\u044C\u0441",children:(0,e.jsxs)("span",{style:{color:c.pulse_status===2?"#0080ff":"red"},children:[c.pulse," \u0443\u0434/\u043C\u0438\u043D"]})}),(0,e.jsx)(n.Ki.Item,{label:"\u0413\u0435\u043D\u044B",children:c.genes<40?(0,e.jsx)(n.az,{color:"red",bold:!0,children:"\u041A\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0433\u0435\u043D\u043D\u0430\u044F \u043D\u0435\u0441\u0442\u0430\u0431\u0438\u043B\u044C\u043D\u043E\u0441\u0442\u044C."}):c.genes<70?(0,e.jsx)(n.az,{color:"red",bold:!0,children:"\u0422\u044F\u0436\u0451\u043B\u0430\u044F \u0433\u0435\u043D\u043D\u0430\u044F \u043D\u0435\u0441\u0442\u0430\u0431\u0438\u043B\u044C\u043D\u043E\u0441\u0442\u044C."}):c.genes<85?(0,e.jsx)(n.az,{color:"red",children:"\u041D\u0435\u0437\u043D\u0430\u0447\u0438\u0442\u0435\u043B\u044C\u043D\u0430\u044F \u0433\u0435\u043D\u043D\u0430\u044F \u043D\u0435\u0441\u0442\u0430\u0431\u0438\u043B\u044C\u043D\u043E\u0441\u0442\u044C."}):c.genes>40&&(0,e.jsx)(n.az,{children:"\u0413\u0435\u043D\u043D\u0430\u044F \u0441\u0442\u0440\u0443\u043A\u0442\u0443\u0440\u0430 \u0441\u0442\u0430\u0431\u0438\u043B\u044C\u043D\u0430."})})]}),(0,e.jsx)(u,{})]}),c.status===2&&(0,e.jsx)(n.wn,{children:(0,e.jsxs)(n.az,{children:[(0,e.jsxs)(n.az,{textAlign:"center",bold:!0,color:"red",children:["\u0421\u0443\u0431\u044A\u0435\u043A\u0442 \u0443\u043C\u0435\u0440 ",c.timetodefib," \u043D\u0430\u0437\u0430\u0434"]}),(0,e.jsx)(n.az,{textAlign:"center",bold:!0,color:"red",children:c.timetodefibText})]})}),c.heartCondition==="CRIT"&&(0,e.jsx)(n.wn,{title:"\u0412\u043D\u0438\u043C\u0430\u043D\u0438\u0435: \u041A\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435!",mt:2,mb:2,color:"red",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435",children:(0,e.jsx)(n.az,{bold:!0,children:"\u041E\u0441\u0442\u0430\u043D\u043E\u0432\u043A\u0430 \u0441\u0435\u0440\u0434\u0446\u0430"})}),(0,e.jsx)(n.Ki.Item,{label:"\u0422\u0438\u043F",children:(0,e.jsx)(n.az,{bold:!0,children:"\u0421\u0435\u0440\u0434\u0446\u0435 \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430 \u043E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u043B\u043E\u0441\u044C"})}),(0,e.jsx)(n.Ki.Item,{label:"\u0421\u0442\u0430\u0434\u0438\u044F",children:(0,e.jsx)(n.az,{bold:!0,children:"1/1"})}),(0,e.jsx)(n.Ki.Item,{label:"\u041B\u0435\u0447\u0435\u043D\u0438\u0435",children:(0,e.jsx)(n.az,{bold:!0,children:"\u042D\u043B\u0435\u043A\u0442\u0440\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u0448\u043E\u043A"})})]})}),l.localize&&(c.damageLocalization||c.fractureList[0]||c.infectedList[0]||c.bleedingList[0]||c.extraFacture)?(0,e.jsxs)(n.wn,{title:"\u041B\u043E\u043A\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u044F \u043F\u043E\u0432\u0440\u0435\u0436\u0434\u0435\u043D\u0438\u0439",children:[!!c.damageLocalization&&(0,e.jsx)(n.az,{children:(0,e.jsx)(n.Ki,{children:c.damageLocalization.map(function(h,g){return(0,e.jsx)(n.Ki.Item,{label:a.get(h.name),children:(0,e.jsxs)(n.az,{children:[(0,e.jsx)("span",{style:{color:"#FF8000"},children:h.burn})," ","-"," ",(0,e.jsx)("span",{style:{color:"red"},children:h.brute})]})},g)})})}),!!c.fractureList[0]&&(0,e.jsx)(n.az,{children:c.fractureList.map(function(h,g){return(0,e.jsxs)(n.az,{color:"#c51e1e",mt:1,children:["\u041E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D \u043F\u0435\u0440\u0435\u043B\u043E\u043C \u0432 ",h,"."]},g)})}),!!c.bleedingList[0]&&(0,e.jsx)(n.az,{children:c.bleedingList.map(function(h,g){return(0,e.jsxs)(n.az,{color:"#c51e1e",mt:1,children:[h,"."]},g)})}),!!c.infectedList[0]&&(0,e.jsx)(n.az,{children:c.infectedList.map(function(h,g){return(0,e.jsxs)(n.az,{color:"#c51e1e",mt:1,children:["\u041E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u043E \u0437\u0430\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0432 ",h,"."]},g)})}),!!c.extraFacture&&(0,e.jsx)(n.az,{color:"#c51e1e",mt:1,children:"\u041E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u044B \u043F\u0435\u0440\u0435\u043B\u043E\u043C\u044B. \u041B\u043E\u043A\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u044F \u043D\u0435\u0432\u043E\u0437\u043C\u043E\u0436\u043D\u0430."}),!!c.extraBleeding&&(0,e.jsx)(n.az,{color:"#c51e1e",mt:1,children:"\u041E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u043E \u0432\u043D\u0443\u0442\u0440\u0435\u043D\u043D\u0435\u0435 \u043A\u0440\u043E\u0432\u043E\u0442\u0435\u0447\u0435\u043D\u0438\u0435. \u041B\u043E\u043A\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u044F \u043D\u0435\u0432\u043E\u0437\u043C\u043E\u0436\u043D\u0430."})]}):!l.localize&&(!!c.fractureList[0]||c.infectedList[0]||!!c.extraFacture||!!c.extraBleeding)&&(0,e.jsxs)(n.wn,{title:"\u0414\u043E\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u044C\u043D\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",children:[!!c.fractureList[0]&&(0,e.jsx)(n.az,{children:c.fractureList.map(function(h,g){return(0,e.jsxs)(n.az,{color:"#c51e1e",mt:1,children:["\u041E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D \u043F\u0435\u0440\u0435\u043B\u043E\u043C \u0432 ",h,"."]},g)})}),!!c.bleedingList[0]&&(0,e.jsx)(n.az,{children:c.bleedingList.map(function(h,g){return(0,e.jsxs)(n.az,{color:"#c51e1e",mt:1,children:[h,"."]},g)})}),!!c.infectedList[0]&&(0,e.jsx)(n.az,{children:c.infectedList.map(function(h,g){return(0,e.jsxs)(n.az,{color:"#c51e1e",mt:1,children:["\u041E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u043E \u0437\u0430\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0432 ",h,"."]},g)})}),!!c.extraFacture&&(0,e.jsx)(n.az,{color:"#c51e1e",mt:1,children:"\u041E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u044B \u043F\u0435\u0440\u0435\u043B\u043E\u043C\u044B. \u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044F \u043F\u043E\u0434\u0440\u043E\u0431\u043D\u043E\u0435 \u0441\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435."}),!!c.extraBleeding&&(0,e.jsx)(n.az,{color:"#c51e1e",mt:1,children:"\u041E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u043E \u0432\u043D\u0443\u0442\u0440\u0435\u043D\u043D\u0435\u0435 \u043A\u0440\u043E\u0432\u043E\u0442\u0435\u0447\u0435\u043D\u0438\u0435. \u041B\u043E\u043A\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u044F \u043D\u0435\u0432\u043E\u0437\u043C\u043E\u0436\u043D\u0430."})]}),!!c.reagentList&&(0,e.jsx)(m,{}),!!c.diseases[0]&&(0,e.jsx)(f,{}),!!c.addictionList&&(0,e.jsx)(d,{}),!!c.implantDetect&&(0,e.jsx)(v,{}),(0,e.jsx)(n.wn,{title:"\u0421\u0442\u0440\u0430\u0445\u043E\u0432\u043A\u0430",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"\u0422\u0438\u043F \u0441\u0442\u0440\u0430\u0445\u043E\u0432\u043A\u0438 ",children:c.insuranceType}),(0,e.jsx)(n.Ki.Item,{label:"\u0422\u0440\u0435\u0431\u0443\u0435\u043C\u043E\u0435 \u043A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u043E\u0447\u043A\u043E\u0432 \u0441\u0442\u0440\u0430\u0445\u043E\u0432\u043A\u0438",children:c.reqInsurance}),!!c.insurance&&(0,e.jsx)(n.Ki.Item,{label:"\u0422\u0435\u043A\u0443\u0449\u0435\u0435 \u043A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u043E\u0447\u043A\u043E\u0432 \u0441\u0442\u0440\u0430\u0445\u043E\u0432\u043A\u0438",children:c.insurance})]})})]}):(0,e.jsx)(n.az,{textAlign:"center",bold:!0,children:"\u041F\u0430\u043C\u044F\u0442\u044C \u0430\u043D\u0430\u043B\u0438\u0437\u0430\u0442\u043E\u0440\u0430 \u0437\u0434\u043E\u0440\u043E\u0432\u044C\u044F \u0443\u0441\u043F\u0435\u0448\u043D\u043E \u043E\u0447\u0438\u0449\u0435\u043D\u0430"})}()})})},y=function(_){var l=(0,s.Oc)(),c=l.act,h=l.data;return(0,e.jsx)(n.wn,{textAlign:"center",children:(0,e.jsxs)(n.az,{nowrap:!0,children:[(0,e.jsx)(n.$n,{icon:"trash",content:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C",onClick:function(){return c("clear")}}),(0,e.jsx)(n.$n,{icon:"map-marker-alt",onClick:function(){return c("localize")},color:h.localize?"":"red",children:"\u041B\u043E\u043A\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u044F"}),!!h.advanced&&(0,e.jsx)(n.$n,{icon:"print",onClick:function(){return c("print")},children:"\u041F\u0435\u0447\u0430\u0442\u044C \u043E\u0442\u0447\u0451\u0442\u0430"}),!!h.advanced&&(0,e.jsx)(n.$n,{icon:"file-invoice-dollar",onClick:function(){return c("insurance")},children:"\u0421\u043F\u0438\u0441\u0430\u0442\u044C \u0441\u0442\u0440\u0430\u0445\u043E\u0432\u043A\u0443"})]})})},u=function(_){var l=(0,s.Oc)().data,c=l.scan_data,h=c.heartCondition,g=c.brainDamage,p=c.bleed,j=c.staminaStatus,x=c.cloneStatus,C=c.brainWorms;return(0,e.jsxs)(n.az,{children:[h==="LESS"?(0,e.jsx)(n.az,{color:"#d82020",mt:1,bold:!0,children:"\u0421\u0435\u0440\u0434\u0446\u0435 \u043D\u0435 \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u043E."}):h==="NECROSIS"&&(0,e.jsx)(n.az,{color:"#d82020",mt:1,bold:!0,children:"\u041E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D \u043D\u0435\u043A\u0440\u043E\u0437 \u0441\u0435\u0440\u0434\u0446\u0430."}),g>100?(0,e.jsx)(n.az,{color:"#c51e1e",mt:1,bold:!0,children:"\u041C\u043E\u0437\u0433 \u043C\u0451\u0440\u0442\u0432"}):g>60?(0,e.jsx)(n.az,{color:"#c51e1e",mt:1,bold:!0,children:"\u041E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u043E \u0441\u0435\u0440\u044C\u0451\u0437\u043D\u043E\u0435 \u043F\u043E\u0432\u0440\u0435\u0436\u0434\u0435\u043D\u0438\u0435 \u043C\u043E\u0437\u0433\u0430."}):g>10?(0,e.jsx)(n.az,{color:"#c51e1e",mt:1,children:"\u041E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u043E \u0437\u043D\u0430\u0447\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0435 \u043F\u043E\u0432\u0440\u0435\u0436\u0434\u0435\u043D\u0438\u0435 \u043C\u043E\u0437\u0433\u0430."}):g==="LESS"&&(0,e.jsx)(n.az,{color:"#c51e1e",mt:1,bold:!0,children:"\u041C\u043E\u0437\u0433 \u043D\u0435 \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D."}),!!p&&(0,e.jsx)(n.az,{color:"#c51e1e",mt:1,bold:!0,children:"\u041E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u043E \u043A\u0440\u043E\u0432\u043E\u0442\u0435\u0447\u0435\u043D\u0438\u0435!"}),!!j&&(0,e.jsx)(n.az,{color:"#0080ff",mt:1,bold:!0,children:"\u041E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u043E \u0438\u0441\u0442\u043E\u0449\u0435\u043D\u0438\u0435."}),x>30?(0,e.jsx)(n.az,{color:"#c51e1e",mt:1,bold:!0,children:"\u041E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u043E \u0441\u0435\u0440\u044C\u0451\u0437\u043D\u043E\u0435 \u043A\u043B\u0435\u0442\u043E\u0447\u043D\u043E\u0435 \u043F\u043E\u0432\u0440\u0435\u0436\u0434\u0435\u043D\u0438\u0435!"}):x>0&&(0,e.jsx)(n.az,{color:"#c51e1e",mt:1,children:"\u041E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u043E \u043D\u0435\u0437\u043D\u0430\u0447\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0435 \u043A\u043B\u0435\u0442\u043E\u0447\u043D\u043E\u0435 \u043F\u043E\u0432\u0440\u0435\u0436\u0434\u0435\u043D\u0438\u0435."}),!!C&&(0,e.jsx)(n.az,{color:"#c51e1e",mt:1,bold:!0,children:"\u041E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u044B \u043E\u0442\u043A\u043B\u043E\u043D\u0435\u043D\u0438\u044F \u0432 \u0440\u0430\u0431\u043E\u0442\u0435 \u043C\u043E\u0437\u0433\u0430."})]})},f=function(_){var l=(0,s.Oc)().data,c=l.scan_data.diseases;return(0,e.jsx)(n.az,{children:c.map(function(h,g){return(0,e.jsx)(n.wn,{title:"\u0412\u043D\u0438\u043C\u0430\u043D\u0438\u0435: "+h.form,mt:2,mb:2,color:"red",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435",children:(0,e.jsx)(n.az,{bold:!0,children:h.name})}),(0,e.jsx)(n.Ki.Item,{label:"\u0422\u0438\u043F",children:(0,e.jsx)(n.az,{bold:!0,children:h.additional_info})}),(0,e.jsx)(n.Ki.Item,{label:"\u0421\u0442\u0430\u0434\u0438\u044F",children:(0,e.jsxs)(n.az,{bold:!0,children:[h.stage,"/",h.max_stages]})}),(0,e.jsx)(n.Ki.Item,{label:"\u041B\u0435\u0447\u0435\u043D\u0438\u0435",children:(0,e.jsx)(n.az,{bold:!0,children:h.cure_text})})]})},g)})})},m=function(_){var l=(0,s.Oc)().data,c=l.scan_data.reagentList;return(0,e.jsx)(n.wn,{title:"\u041E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u044B \u0432\u0435\u0449\u0435\u0441\u0442\u0432\u0430",children:(0,e.jsx)(n.Ki,{children:c.map(function(h,g){return(0,e.jsx)(n.Ki.Item,{label:h.name,children:(0,e.jsxs)(n.az,{children:[h.volume," \u0435\u0434."," ",!!h.overdosed&&(0,e.jsx)(n.az,{as:"span",color:"red",bold:!0,children:"- \u041F\u0415\u0420\u0415\u0414\u041E\u0417\u0418\u0420\u041E\u0412\u041A\u0410!"})]})},g)})})})},d=function(_){var l=(0,s.Oc)().data,c=l.scan_data.addictionList;return(0,e.jsx)(n.wn,{title:"\u041E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u044B \u0437\u0430\u0432\u0438\u0441\u0438\u043C\u043E\u0441\u0442\u0438",children:(0,e.jsx)(n.Ki,{children:c.map(function(h,g){return(0,e.jsx)(n.Ki.Item,{label:h.name,children:(0,e.jsxs)(n.az,{children:["\u0421\u0442\u0430\u0434\u0438\u044F: ",h.addiction_stage,"/5"]})},g)})})})},v=function(_){var l=(0,s.Oc)().data,c=l.scan_data.implantDetect;return(0,e.jsx)(n.wn,{title:"\u041E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u044B \u043A\u0438\u0431\u0435\u0440\u043D\u0435\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u043C\u043E\u0434\u0438\u0444\u0438\u043A\u0430\u0446\u0438\u0438:",children:(0,e.jsx)(n.Ki,{children:c.map(function(h,g){return(0,e.jsx)(n.az,{ml:1,bold:!0,children:h},g)})})})}},5838:(q,S,r)=>{"use strict";r.r(S),r.d(S,{CircuitModule:()=>O});var e=r(1131),s=r(360),n=r(5180),t=r(3521);function a(){return a=Object.assign||function(u){for(var f=1;f=0)&&(m[v]=u[v]);return m}var O=function(u){var f=(0,s.Oc)(),m=f.act,d=f.data,v=d.input_ports,_=d.output_ports,l=d.global_port_types;return(0,e.jsx)(t.p8,{width:600,height:300,children:(0,e.jsx)(t.p8.Content,{scrollable:!0,children:(0,e.jsxs)(n.BJ,{vertical:!0,children:[(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.$n,{textAlign:"center",fluid:!0,onClick:function(){return m("open_internal_circuit")},children:"\u041E\u0431\u0437\u043E\u0440 \u0432\u043D\u0443\u0442\u0440\u0435\u043D\u043D\u0435\u0439 \u0438\u043D\u0442\u0435\u0433\u0440\u0430\u043B\u044C\u043D\u043E\u0439 \u0441\u0445\u0435\u043C\u044B"})}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsxs)(n.BJ,{width:"100%",children:[(0,e.jsx)(n.BJ.Item,{basis:"50%",children:(0,e.jsx)(n.wn,{title:"\u041F\u043E\u0440\u0442\u044B \u0432\u0432\u043E\u0434\u0430",children:(0,e.jsxs)(n.BJ,{vertical:!0,children:[v.map(function(c,h){return(0,e.jsx)(y,{name:c.name,datatype:c.type,datatypeOptions:l,onRemove:function(){return m("remove_input_port",{port_id:h+1})},onSetType:function(g){return m("set_port_type",{port_id:h+1,is_input:!0,port_type:g})},onEnter:function(g,p){return m("set_port_name",{port_id:h+1,is_input:!0,port_name:p})}},h)}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.$n,{fluid:!0,color:"good",icon:"plus",onClick:function(){return m("add_input_port")},children:"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043F\u043E\u0440\u0442 \u0432\u0432\u043E\u0434\u0430"})})]})})}),(0,e.jsx)(n.BJ.Item,{basis:"50%",children:(0,e.jsx)(n.wn,{title:"\u041F\u043E\u0440\u0442\u044B \u0432\u044B\u0432\u043E\u0434\u0430",children:(0,e.jsxs)(n.BJ,{vertical:!0,children:[_.map(function(c,h){return(0,e.jsx)(y,{name:c.name,datatype:c.type,datatypeOptions:l,onRemove:function(){return m("remove_output_port",{port_id:h+1})},onSetType:function(g){return m("set_port_type",{port_id:h+1,is_input:!1,port_type:g})},onEnter:function(g,p){return m("set_port_name",{port_id:h+1,is_input:!1,port_name:p})}},h)}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.$n,{fluid:!0,color:"good",icon:"plus",onClick:function(){return m("add_output_port")},children:"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043F\u043E\u0440\u0442 \u0432\u044B\u0432\u043E\u0434\u0430"})})]})})})]})})]})})})},y=function(u){var f=u.onRemove,m=u.onEnter,d=u.onSetType,v=u.name,_=u.datatype,l=u.datatypeOptions,c=l===void 0?[]:l,h=b(u,["onRemove","onEnter","onSetType","name","datatype","datatypeOptions"]);return(0,e.jsx)(n.BJ.Item,a({},h,{children:(0,e.jsxs)(n.BJ,{children:[(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(n.pd,{placeholder:"Name",value:v,onChange:m})}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.ms,{selected:_,options:c,onSelected:d,width:"100%"})}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.$n,{icon:"times",color:"red",onClick:f})})]})}))}},5899:(q,S,r)=>{"use strict";r.r(S),r.d(S,{SpawnPanel:()=>m});var e=r(1131),s=r(7003),n=r(5180),t=r(3655),a=r(1243),b=r(3521),O=r(4947),y=r(9427),u=r(8151);function f(){return f=Object.assign||function(d){for(var v=1;v{"use strict";r.r(S),r.d(S,{ComponentPrinter:()=>b});var e=r(1131),s=r(360),n=r(3521),t=r(5180),a=r(9845),b=function(O){var y=(0,s.Oc)(),u=y.act,f=y.data,m=f.designs;return(0,e.jsx)(n.p8,{title:"\u0414\u0443\u0431\u043B\u0438\u043A\u0430\u0442\u043E\u0440 \u043F\u0435\u0447\u0430\u0442\u043D\u044B\u0445 \u043F\u043B\u0430\u0442",width:670,height:600,children:(0,e.jsx)(n.p8.Content,{children:(0,e.jsxs)(t.az,{children:[Object.values(m).length===0&&(0,e.jsx)(t.BJ.Item,{mt:1,fontSize:1,children:(0,e.jsx)(t.IC,{info:!0,children:"\u0421\u043E\u0445\u0440\u0430\u043D\u0451\u043D\u043D\u044B\u0435 \u0441\u0445\u0435\u043C\u044B \u043E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044E\u0442."})}),Object.values(m).map(function(d){return(0,e.jsxs)(t.wn,{children:[(0,e.jsx)(t.Hg,{icon:d.icon,icon_state:d.IconState,style:{verticalAlign:"middle",width:"32px",margin:"0px",marginLeft:"0px"}}),(0,e.jsx)(t.$n,{mr:1,icon:"hammer",tooltip:d.desc,onClick:function(){return u("print",{designId:d.id})},children:(0,a.Sn)(d.name)}),d.cost&&Object.keys(d.cost).map(function(v){return(0,a.Sn)(v)+": "+d.cost[v]}).join(", ")||(0,e.jsx)(t.az,{children:"\u0420\u0435\u0441\u0443\u0440\u0441\u044B \u0434\u043B\u044F \u043F\u0435\u0447\u0430\u0442\u0438 \u043D\u0435 \u0442\u0440\u0435\u0431\u0443\u044E\u0442\u0441\u044F."}),(0,e.jsx)(t.$n,{mr:1,icon:"trash-can",position:"absolute",right:1,top:1,onClick:function(){return u("del_design",{designId:d.id})}})]},d.id)})]})})})}},5951:(q,S,r)=>{"use strict";r.r(S),r.d(S,{ListInputModal:()=>O});var e=r(1131),s=r(7003),n=r(5180),t=r(683),a=r(360),b=r(30),O=function(u){var f=(0,a.Oc)().act,m=u.items,d=m===void 0?[]:m,v=u.default_item,_=u.message,l=u.on_selected,c=u.on_cancel,h=(0,s.useState)(d.indexOf(v)),g=h[0],p=h[1],j=(0,s.useState)(d.length>9),x=j[0],C=j[1],I=(0,s.useState)(""),P=I[0],M=I[1],B=function($){var W=F.length-1;if($===t.R)if(g===null||g===W){var N;p(0),(N=document.getElementById("0"))==null||N.scrollIntoView()}else{var Z;p(g+1),(Z=document.getElementById((g+1).toString()))==null||Z.scrollIntoView()}else if($===t.gf)if(g===null||g===0){var ie;p(W),(ie=document.getElementById(W.toString()))==null||ie.scrollIntoView()}else{var Q;p(g-1),(Q=document.getElementById((g-1).toString()))==null||Q.scrollIntoView()}},w=function($){$!==g&&p($)},T=function(){C(!1),setTimeout(function(){C(!0)},1)},K=function($){var W=String.fromCharCode($),N=d.find(function(Q){return Q?.toLowerCase().startsWith(W?.toLowerCase())});if(N){var Z,ie=d.indexOf(N);p(ie),(Z=document.getElementById(ie.toString()))==null||Z.scrollIntoView()}},R=function($){var W;$!==P&&(M($),p(0),(W=document.getElementById("0"))==null||W.scrollIntoView())},U=function(){C(!x),M("")},F=d.filter(function($){return $?.toLowerCase().includes(P.toLowerCase())});return x||setTimeout(function(){var $;return($=document.getElementById(g.toString()))==null?void 0:$.focus()},1),(0,e.jsx)(n.wn,{onKeyDown:function($){var W=window.event?$.which:$.keyCode;(W===t.R||W===t.gf)&&($.preventDefault(),B(W)),W===t.Ri&&($.preventDefault(),l(F[g])),!x&&W>=t.W8&&W<=t.bh&&($.preventDefault(),K(W)),W===t.s6&&($.preventDefault(),c())},buttons:(0,e.jsx)(n.$n,{compact:!0,icon:x?"search":"font",selected:!0,tooltip:x?"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 U()}}),className:"ListInput__Section",fill:!0,title:_,children:(0,e.jsxs)(n.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(y,{filteredItems:F,onClick:w,onFocusSearch:T,searchBarVisible:x,selected:g})}),x&&(0,e.jsx)(n.pd,{autoFocus:!0,autoSelect:!0,fluid:!0,onEnter:function(){f("submit",{entry:F[g]})},expensive:!0,onChange:R,placeholder:"Search...",value:P}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(b.InputButtons,{input:F[g],on_submit:function(){return l(F[g])},on_cancel:c})})]})})},y=function(u){var f=(0,a.Oc)().act,m=u.filteredItems,d=u.onClick,v=u.onFocusSearch,_=u.searchBarVisible,l=u.selected;return(0,e.jsxs)(n.wn,{fill:!0,scrollable:!0,children:[(0,e.jsx)(n.y5,{}),m.map(function(c,h){return(0,e.jsx)(n.$n,{className:h!==l?"candystripe":"",color:"transparent",fluid:!0,id:h,onClick:function(){return d(h)},onDoubleClick:function(g){g.preventDefault(),f("submit",{entry:m[l]})},onKeyDown:function(g){var p=window.event?g.which:g.keyCode;_&&p>=t.W8&&p<=t.bh&&(g.preventDefault(),v())},selected:h===l,style:{animation:"none",transition:"none"},children:c.replace(/^\w/,function(g){return g.toUpperCase()})},h)})]})}},5959:(q,S,r)=>{"use strict";r.r(S),r.d(S,{Tank:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(b){var O=(0,s.Oc)(),y=O.act,u=O.data,f;return u.has_mask?f=(0,e.jsx)(n.Ki.Item,{label:"Mask",children:(0,e.jsx)(n.$n,{icon:u.connected?"check":"times",selected:u.connected,onClick:function(){return y("internals")},children:u.connected?"Internals On":"Internals Off"})}):f=(0,e.jsx)(n.Ki.Item,{label:"Mask",color:"red",children:"No Mask Equipped"}),(0,e.jsx)(t.p8,{width:300,height:150,children:(0,e.jsx)(t.p8.Content,{children:(0,e.jsx)(n.wn,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Tank Pressure",children:(0,e.jsx)(n.z2,{value:u.tankPressure/1013,ranges:{good:[.35,1/0],average:[.15,.35],bad:[-1/0,.15]},children:u.tankPressure+" kPa"})}),(0,e.jsxs)(n.Ki.Item,{label:"Release Pressure",children:[(0,e.jsx)(n.$n,{icon:"fast-backward",disabled:u.releasePressure===u.minReleasePressure,tooltip:"Min",onClick:function(){return y("pressure",{pressure:"min"})}}),(0,e.jsx)(n.Q7,{animated:!0,value:u.releasePressure,width:"65px",unit:"kPa",step:.1,minValue:u.minReleasePressure,maxValue:u.maxReleasePressure,onChange:function(m){return y("pressure",{pressure:m})}}),(0,e.jsx)(n.$n,{icon:"fast-forward",disabled:u.releasePressure===u.maxReleasePressure,tooltip:"Max",onClick:function(){return y("pressure",{pressure:"max"})}}),(0,e.jsx)(n.$n,{icon:"undo",disabled:u.releasePressure===u.defaultReleasePressure,tooltip:"Reset",onClick:function(){return y("pressure",{pressure:"reset"})}})]}),f]})})})})}},6012:(q,S,r)=>{"use strict";r.r(S),r.d(S,{LatheChemicalStorage:()=>t});var e=r(1131),s=r(360),n=r(5180),t=function(a){var b=(0,s.Oc)(),O=b.data,y=b.act,u=O.loaded_chemicals,f=O.menu===4;return(0,e.jsxs)(n.wn,{title:"\u0411\u0443\u0444\u0435\u0440 \u0440\u0435\u0430\u0433\u0435\u043D\u0442\u043E\u0432",children:[(0,e.jsx)(n.$n,{icon:"trash",onClick:function(){var m=f?"disposeallP":"disposeallI";y(m)},children:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0432\u0441\u0451"}),(0,e.jsx)(n.Ki,{children:u.map(function(m){var d=m.volume,v=m.name,_=m.id;return(0,e.jsx)(n.Ki.Item,{label:"* "+d+" of "+v,children:(0,e.jsx)(n.$n,{icon:"trash",onClick:function(){var l=f?"disposeP":"disposeI";y(l,{id:_})},children:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C"})},_)})})]})}},6051:(q,S,r)=>{"use strict";r.r(S),r.d(S,{pai_advsecrecords:()=>t});var e=r(1131),s=r(360),n=r(5180),t=function(a){var b=(0,s.Oc)().act;return(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Special Syndicate options:",children:(0,e.jsx)(n.$n,{onClick:function(){return b("ui_interact")},children:"Select Records"})})})}},6081:(q,S,r)=>{"use strict";r.r(S),r.d(S,{Customat:()=>b});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(O){var y=(0,s.Oc)(),u=y.act,f=y.data,m=O.product,d=f.userMoney,v=f.vend_ready,_=m.price===0,l="ERROR!",c="";_?(l="\u0411\u0415\u0421\u041F\u041B\u0410\u0422\u041D\u041E",c="arrow-circle-down"):(l=m.price.toString(),c="shopping-cart");var h=!v||m.stock===0||!_&&m.price>d;return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:(0,e.jsx)(n.Hg,{verticalAlign:"middle",icon:m.icon,icon_state:m.icon_state,fallback:(0,e.jsx)(n.In,{p:.66,name:"spinner",size:2,spin:!0})})}),(0,e.jsx)(n.XI.Cell,{bold:!0,children:(0,e.jsx)(n.$n,{multiLine:!0,color:"translucent",tooltip:m.desc,children:m.name})}),(0,e.jsx)(n.XI.Cell,{collapsing:!0,textAlign:"center",children:(0,e.jsxs)(n.az,{color:m.stock<=0&&"bad"||"good",children:[m.stock," \u0432 \u043D\u0430\u043B\u0438\u0447\u0438\u0438"]})}),(0,e.jsx)(n.XI.Cell,{collapsing:!0,textAlign:"center",children:(0,e.jsx)(n.$n,{fluid:!0,disabled:h,icon:c,textAlign:"left",onClick:function(){return u("vend",{Key:m.Key})},children:l})})]})},b=function(O){var y=(0,s.Oc)(),u=y.act,f=y.data,m=f.guestNotice,d=f.userMoney,v=f.user,_=f.products,l=f.panel_open,c=f.speaker;return(0,e.jsx)(t.p8,{width:470,height:600,title:"\u041A\u0430\u0441\u0442\u043E\u043C\u0430\u0442",children:(0,e.jsx)(t.p8.Content,{children:(0,e.jsxs)(n.BJ,{fill:!0,vertical:!0,children:[(0,e.jsxs)(n.BJ.Item,{children:[(0,e.jsx)(n.wn,{title:"\u041F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C",children:v&&(0,e.jsxs)(n.az,{children:["\u0417\u0434\u0440\u0430\u0441\u0442\u0432\u0443\u0439\u0442\u0435, ",(0,e.jsx)("b",{children:v.name}),","," ",(0,e.jsx)("b",{children:v.job||"\u0411\u0435\u0437\u0440\u0430\u0431\u043E\u0442\u043D\u044B\u0439"}),"!",(0,e.jsx)("br",{}),"\u0412\u0430\u0448 \u0431\u0430\u043B\u0430\u043D\u0441: ",(0,e.jsxs)("b",{children:[d," \u043A\u0440."]})]})||(0,e.jsx)(n.az,{color:"light-grey",children:m})}),!!l&&(0,e.jsx)(n.wn,{title:"\u0422\u0435\u0445. \u043E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u043D\u0438\u0435",children:(0,e.jsx)(n.$n,{icon:c?"check":"volume-mute",selected:c,textAlign:"left",onClick:function(){return u("toggle_voice",{})},children:"\u0414\u0438\u043D\u0430\u043C\u0438\u043A"})})]}),(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(n.wn,{title:"\u041F\u0440\u043E\u0434\u0443\u043A\u0446\u0438\u044F",fill:!0,scrollable:!0,children:(0,e.jsx)(n.XI,{children:_.map(function(h){return(0,e.jsx)(a,{product:h},h.name)})})})})]})})})}},6092:(q,S,r)=>{"use strict";r.d(S,{$:()=>e});/** * Various focus helpers. * * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var e=function(){Byond.winset("mapwindow.map",{focus:!0})},s=function(){Byond.winset(Byond.windowId,{focus:!0})}},6099:(q,S,r)=>{"use strict";r.r(S),r.d(S,{AtmosPump:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(O){var b=(0,s.Oc)(),y=b.act,u=b.data,f=u.on,m=u.rate,d=u.max_rate,v=u.gas_unit,_=u.step;return(0,e.jsx)(t.p8,{width:330,height:110,children:(0,e.jsx)(t.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:"power-off",color:f?null:"red",selected:f,onClick:function(){return y("power")},children:f?"On":"Off"})}),(0,e.jsxs)(n.Ki.Item,{label:"Rate",children:[(0,e.jsx)(n.$n,{icon:"fast-backward",textAlign:"center",disabled:m===0,width:2.2,onClick:function(){return y("min_rate")}}),(0,e.jsx)(n.Q7,{animated:!0,unit:v,width:6.1,lineHeight:1.5,step:_,minValue:0,maxValue:d,value:m,onDrag:function(l){return y("custom_rate",{rate:l})}}),(0,e.jsx)(n.$n,{icon:"fast-forward",textAlign:"center",disabled:m===d,width:2.2,onClick:function(){return y("max_rate")}})]})]})})})})}},6151:(q,S,r)=>{"use strict";r.r(S),r.d(S,{FaxMachine:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(O){var b=(0,s.Oc)(),y=b.act,u=b.data;return(0,e.jsx)(t.p8,{width:540,height:300,children:(0,e.jsxs)(t.p8.Content,{children:[(0,e.jsx)(n.wn,{title:"\u0410\u0432\u0442\u043E\u0440\u0438\u0437\u0430\u0446\u0438\u044F",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"ID \u041A\u0430\u0440\u0442\u0430:",children:(0,e.jsx)(n.$n,{icon:u.scan_name?"eject":"id-card",selected:!!u.scan_name,tooltip:u.scan_name?"\u0414\u043E\u0441\u0442\u0430\u0442\u044C \u043A\u0430\u0440\u0442\u0443":"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u043A\u0430\u0440\u0442\u0443",onClick:function(){return y("scan")},children:u.scan_name?u.scan_name:"-----"})}),(0,e.jsx)(n.Ki.Item,{label:"\u0412\u043E\u0439\u0442\u0438:",children:(0,e.jsx)(n.$n,{icon:u.authenticated?"sign-out-alt":"id-card",selected:u.authenticated,disabled:!u.scan_name&&!u.authenticated,onClick:function(){return y("auth")},children:u.authenticated?"\u0412\u044B\u0439\u0442\u0438":"\u0412\u043E\u0439\u0442\u0438"})})]})}),(0,e.jsx)(n.wn,{title:"\u041C\u0435\u043D\u044E \u0444\u0430\u043A\u0441\u0430",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"\u0421\u0435\u0442\u044C",children:u.network}),(0,e.jsxs)(n.Ki.Item,{label:"\u0414\u043E\u043A\u0443\u043C\u0435\u043D\u0442",children:[(0,e.jsx)(n.$n,{icon:u.paper?"eject":"paperclip",disabled:!u.authenticated&&!u.paper,onClick:function(){return y("paper")},children:u.paper?u.paper:"-----"}),!!u.paper&&(0,e.jsx)(n.$n,{icon:"pencil-alt",onClick:function(){return y("rename")},children:"\u041F\u0435\u0440\u0435\u0438\u043C\u0435\u043D\u043E\u0432\u0430\u0442\u044C"})]}),(0,e.jsx)(n.Ki.Item,{label:"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u0432",children:(0,e.jsx)(n.$n,{icon:"print",disabled:!u.authenticated,onClick:function(){return y("dept")},children:u.destination?u.destination:"-----"})}),(0,e.jsx)(n.Ki.Item,{label:"\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u0435",children:(0,e.jsx)(n.$n,{icon:"envelope",disabled:!u.paper||!u.destination||!u.authenticated||!!u.sendError,onClick:function(){return y("send")},children:u.sendError?u.sendError:"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C"})})]})})]})})}},6158:(q,S,r)=>{"use strict";r.r(S),r.d(S,{Connections:()=>O});var e=r(1131),s=r(9357),n=r(185),t=64,a=function(b){return b.CURVE="curve",b.SUBWAY="subway",b}(a||{}),O=function(b){var y=b.connections,u=b.zLayer,f=u===void 0?-1:u,m=b.lineWidth,d=m===void 0?"2px":m,v=function(_){if(typeof _=="string")return s.NE.includes(_)};return(0,e.jsx)("svg",{width:"100%",height:"100%",style:{position:"absolute",pointerEvents:"none",zIndex:f,overflow:"visible"},children:y.map(function(_,l){var c=_.from,h=_.to;if(!(!h||!c)){_.color=_.color||"blue",_.style=_.style||"curve";var g="M "+c.x+" "+c.y;switch(_.style){case"curve":{g+="C "+(c.x+t)+", "+c.y+",",g+=h.x-t+", "+h.y+",",g+=h.x+", "+h.y;break}case"subway":{var p=Math.abs(c.y-(h.y-16));g+="L "+(h.x-p)+" "+c.y,g+="L "+(h.x-16)+" "+h.y,g+="L "+h.x+" "+h.y;break}}return(0,e.jsx)("path",{className:(0,n.Ly)([v(_.color)&&"color-stroke-"+_.color]),d:g,fill:"transparent","stroke-width":d},l)}})})}},6159:(q,S,r)=>{"use strict";r.r(S),r.d(S,{SettingsMenu:()=>O});var e=r(1131),s=r(360),n=r(5180),t=r(2905),a=r(4904),O=function(b){var y=(0,s.Oc)(),u=y.data,f=y.act,m=u.sync,d=u.admin,v=u.linked_destroy,_=u.linked_lathe,l=u.linked_imprinter,c=u.disk_only;return(0,e.jsxs)(n.az,{children:[(0,e.jsx)(t.RndRoute,{submenu:a.SUBMENU.MAIN,render:function(){return(0,e.jsx)(n.wn,{title:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",children:(0,e.jsxs)(n.so,{direction:"column",align:"flex-start",children:[(0,e.jsx)(n.$n,{icon:"sync",disabled:!m,onClick:function(){f("sync")},children:"\u0421\u0438\u043D\u0445\u0440\u043E\u043D\u0438\u0437\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441 \u0441\u0435\u0442\u044C\u044E \u041D\u0418\u041E"}),(0,e.jsx)(n.$n,{icon:"plug",disabled:m,onClick:function(){f("togglesync")},children:"\u041F\u043E\u0434\u043A\u043B\u044E\u0447\u0438\u0442\u044C\u0441\u044F \u043A \u0441\u0435\u0442\u0438 \u041D\u0418\u041E"}),(0,e.jsx)(n.$n,{disabled:!m,icon:"unlink",onClick:function(){f("togglesync")},children:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C\u0441\u044F \u043E\u0442 \u0441\u0435\u0442\u0438 \u041D\u0418\u041E"}),!c&&(0,e.jsx)(t.RndNavButton,{disabled:!m,icon:"link",menu:a.MENU.SETTINGS,submenu:a.SUBMENU.SETTINGS_DEVICES,children:"\u041C\u0435\u043D\u044E \u043F\u043E\u0434\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u044F \u043E\u0431\u043E\u0440\u0443\u0434\u043E\u0432\u0430\u043D\u0438\u044F"}),d?(0,e.jsx)(n.$n,{icon:"exclamation",onClick:function(){return f("maxresearch")},children:"[\u0410\u0414\u041C\u0418\u041D] \u041F\u043E\u0432\u044B\u0441\u0438\u0442\u044C \u0442\u0435\u0445. \u0443\u0440\u043E\u0432\u043D\u0438 \u0434\u043E \u043C\u0430\u043A\u0441\u0438\u043C\u0443\u043C\u0430"}):null]})})}}),!c&&(0,e.jsx)(t.RndRoute,{submenu:a.SUBMENU.SETTINGS_DEVICES,render:function(){return(0,e.jsxs)(n.wn,{title:"\u041C\u0435\u043D\u044E \u043F\u043E\u0434\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u044F \u043E\u0431\u043E\u0440\u0443\u0434\u043E\u0432\u0430\u043D\u0438\u044F",children:[(0,e.jsx)(n.$n,{icon:"link",onClick:function(){return f("find_device")},children:"\u0421\u0438\u043D\u0445\u0440\u043E\u043D\u0438\u0437\u0430\u0446\u0438\u044F \u0431\u043B\u0438\u0436\u0430\u0439\u0448\u0435\u0433\u043E \u043E\u0431\u043E\u0440\u0443\u0434\u043E\u0432\u0430\u043D\u0438\u044F"}),(0,e.jsx)(n.az,{mt:"5px",children:(0,e.jsx)("h3",{children:"\u041F\u043E\u0434\u043A\u043B\u044E\u0447\u0451\u043D\u043D\u043E\u0435 \u043E\u0431\u043E\u0440\u0443\u0434\u043E\u0432\u0430\u043D\u0438\u0435:"})}),(0,e.jsxs)(n.Ki,{children:[v?(0,e.jsx)(n.Ki.Item,{label:"- \u0414\u0435\u0441\u0442\u0440\u0443\u043A\u0442\u0438\u0432\u043D\u044B\u0439 \u0430\u043D\u0430\u043B\u0438\u0437\u0430\u0442\u043E\u0440",children:(0,e.jsx)(n.$n,{icon:"unlink",onClick:function(){return f("disconnect",{item:"destroy"})},children:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C"})}):(0,e.jsx)(n.Ki.Item,{label:"- \u0414\u0435\u0441\u0442\u0440\u0443\u043A\u0442\u0438\u0432\u043D\u044B\u0439 \u0430\u043D\u0430\u043B\u0438\u0437\u0430\u0442\u043E\u0440 (\u041E\u0422\u041A\u041B\u042E\u0427\u0415\u041D\u041E)"}),_?(0,e.jsx)(n.Ki.Item,{label:"- \u041F\u0440\u043E\u0442\u043E\u043B\u0430\u0442",children:(0,e.jsx)(n.$n,{icon:"unlink",onClick:function(){f("disconnect",{item:"lathe"})},children:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C"})}):(0,e.jsx)(n.Ki.Item,{label:"- \u041F\u0440\u043E\u0442\u043E\u043B\u0430\u0442 (\u041E\u0422\u041A\u041B\u042E\u0427\u0415\u041D\u041E)"}),l?(0,e.jsx)(n.Ki.Item,{label:"- \u041F\u0440\u0438\u043D\u0442\u0435\u0440 \u043F\u043B\u0430\u0442",children:(0,e.jsx)(n.$n,{icon:"unlink",onClick:function(){return f("disconnect",{item:"imprinter"})},children:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C"})}):(0,e.jsx)(n.Ki.Item,{label:"- \u041F\u0440\u0438\u043D\u0442\u0435\u0440 \u043F\u043B\u0430\u0442 (\u041E\u0422\u041A\u041B\u042E\u0427\u0415\u041D\u041E)"})]})]})}})]})}},6178:(q,S,r)=>{"use strict";r.r(S),r.d(S,{ViewTabHolder:()=>O});var e=r(1131),s=r(360),n=r(5180),t=r(5237),a=r(3500),O=function(b){var y=(0,s.Oc)(),u=y.act,f=y.data,m=f.mapRef,d=f.customDropoff,v=f.effectReverse,_=f.renderLighting,l=(0,a.useTab)(),c=l[0],h=l[1],g=t.TABPAGES[c].component;return(0,e.jsx)(n.wn,{buttons:(0,e.jsxs)(e.Fragment,{children:[!!d&&!!v&&(0,e.jsx)(n.$n,{color:"transparent",icon:"arrow-circle-down",inline:!0,onClick:function(){h(2),u("tabSwitch",{tabIndex:2})},selected:c===2,tooltip:"\u041C\u0435\u0441\u0442\u043E \u0412\u044B\u0441\u0430\u0434\u043A\u0438"}),(0,e.jsx)(n.$n,{color:"transparent",icon:"rocket",inline:!0,onClick:function(){h(0),u("tabSwitch",{tabIndex:0})},selected:c===0,tooltip:"\u041A\u0430\u043F\u0441\u0443\u043B\u0430"}),(0,e.jsx)(n.$n,{color:"transparent",icon:"th",inline:!0,onClick:function(){h(1),u("tabSwitch",{tabIndex:1})},selected:c===1,tooltip:"\u0410\u043D\u0433\u0430\u0440 \u041F\u043E\u0433\u0440\u0443\u0437\u043A\u0438"}),(0,e.jsx)("span",{style:t.POD_GREY,children:"|"}),!!d&&!!v&&(0,e.jsx)(n.$n,{color:"transparent",icon:"lightbulb",inline:!0,onClick:function(){u("renderLighting"),u("refreshView")},selected:_,tooltip:"\u0420\u0435\u043D\u0434\u0435\u0440\u0438\u043D\u0433 \u043E\u0441\u0432\u0435\u0449\u0435\u043D\u0438\u044F"}),(0,e.jsx)(n.$n,{color:"transparent",icon:"sync-alt",inline:!0,onClick:function(){h(c),u("refreshView")},tooltip:"\u041E\u0431\u043D\u043E\u0432\u0438\u0442\u044C \u043E\u043A\u043D\u043E \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430"})]}),fill:!0,title:"\u041E\u0441\u043C\u043E\u0442\u0440",children:(0,e.jsxs)(n.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(g,{})}),(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(n.D1,{height:"100%",params:{id:m,type:"map",zoom:0}})})]})})}},6179:(q,S,r)=>{"use strict";r.r(S),r.d(S,{TEG:()=>O});var e=r(1131),s=r(5180),n=r(360),t=r(3521),a=function(b){return b.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")},O=function(b){var y=(0,n.Oc)(),u=y.act,f=y.data;return f.error?(0,e.jsx)(t.p8,{width:500,height:400,children:(0,e.jsx)(t.p8.Content,{children:(0,e.jsxs)(s.wn,{title:"Error",children:[f.error,(0,e.jsx)(s.$n,{icon:"circle",onClick:function(){return u("check")},children:"Recheck"})]})})}):(0,e.jsx)(t.p8,{width:500,height:400,children:(0,e.jsxs)(t.p8.Content,{children:[(0,e.jsx)(s.wn,{title:"Cold Loop ("+f.cold_dir+")",children:(0,e.jsxs)(s.Ki,{children:[(0,e.jsxs)(s.Ki.Item,{label:"Cold Inlet",children:[a(f.cold_inlet_temp)," K,"," ",a(f.cold_inlet_pressure)," kPa"]}),(0,e.jsxs)(s.Ki.Item,{label:"Cold Outlet",children:[a(f.cold_outlet_temp)," K,"," ",a(f.cold_outlet_pressure)," kPa"]})]})}),(0,e.jsx)(s.wn,{title:"Hot Loop ("+f.hot_dir+")",children:(0,e.jsxs)(s.Ki,{children:[(0,e.jsxs)(s.Ki.Item,{label:"Hot Inlet",children:[a(f.hot_inlet_temp)," K,"," ",a(f.hot_inlet_pressure)," kPa"]}),(0,e.jsxs)(s.Ki.Item,{label:"Hot Outlet",children:[a(f.hot_outlet_temp)," K,"," ",a(f.hot_outlet_pressure)," kPa"]})]})}),(0,e.jsxs)(s.wn,{title:"Power Output",children:[a(f.output_power)," W",!!f.warning_switched&&(0,e.jsx)(s.az,{color:"red",children:"Warning: Cold inlet temperature exceeds hot inlet temperature."}),!!f.warning_cold_pressure&&(0,e.jsx)(s.az,{color:"red",children:"Warning: Cold circulator inlet pressure is under 1,000 kPa."}),!!f.warning_hot_pressure&&(0,e.jsx)(s.az,{color:"red",children:"Warning: Hot circulator inlet pressure is under 1,000 kPa."})]})]})})}},6186:(q,S,r)=>{"use strict";r.r(S),r.d(S,{InterfaceLockNoticeBox:()=>t});var e=r(1131),s=r(360),n=r(5180),t=function(a){var O=(0,s.Oc)(),b=O.act,y=O.data,u=a.siliconUser,f=u===void 0?y.siliconUser:u,m=a.locked,d=m===void 0?y.locked:m,v=a.normallyLocked,_=v===void 0?y.normallyLocked:v,l=a.onLockStatusChange,c=l===void 0?function(){return b("lock")}:l,h=a.accessText,g=h===void 0?"ID-\u043A\u0430\u0440\u0442\u043E\u0439":h;return f?(0,e.jsx)(n.IC,{color:f&&"grey",children:(0,e.jsxs)(n.so,{align:"center",children:[(0,e.jsx)(n.so.Item,{children:"\u0411\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0430 \u0438\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430:"}),(0,e.jsx)(n.so.Item,{grow:"1"}),(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(n.$n,{m:"0",color:_?"red":"green",icon:_?"lock":"unlock",content:_?"\u0417\u0430\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u043D\u043E":"\u0420\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u043D\u043E",onClick:function(){c&&c(!d)}})})]})}):(0,e.jsxs)(n.IC,{children:["\u041F\u0440\u043E\u0432\u0435\u0434\u0438\u0442\u0435 ",g,", \u0447\u0442\u043E\u0431\u044B"," ",d?"\u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u0442\u044C":"\u0437\u0430\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u0442\u044C"," \u044D\u0442\u043E\u0442 \u0438\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441."]})}},6194:(q,S,r)=>{"use strict";r.r(S),r.d(S,{ComponentMenu:()=>h});var e=r(1131),s=r(5180),n=r(7003),t=r(185),a=r(3655),O=r(1243),b=r(9435),y=r(8968);function u(g,p,j,x,C,I,P){try{var M=g[I](P),B=M.value}catch(w){j(w);return}M.done?p(B):Promise.resolve(B).then(x,C)}function f(g){return function(){var p=this,j=arguments;return new Promise(function(x,C){var I=g.apply(p,j);function P(B){u(I,x,C,P,M,"next",B)}function M(B){u(I,x,C,P,M,"throw",B)}P(void 0)})}}function m(){return m=Object.assign||function(g){for(var p=1;p=0)&&(j[C]=g[C]);return j}function _(g,p){return _=Object.setPrototypeOf||function(x,C){return x.__proto__=C,x},_(g,p)}function l(g,p){var j,x,C,I={label:0,sent:function(){if(C[0]&1)throw C[1];return C[1]},trys:[],ops:[]},P=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return P.next=M(0),P.throw=M(1),P.return=M(2),typeof Symbol=="function"&&(P[Symbol.iterator]=function(){return this}),P;function M(w){return function(T){return B([w,T])}}function B(w){if(j)throw new TypeError("Generator is already executing.");for(;P&&(P=0,w[0]&&(I=0)),I;)try{if(j=1,x&&(C=w[0]&2?x.return:w[0]?x.throw||((C=x.return)&&C.call(x),0):x.next)&&!(C=C.call(x,w[1])).done)return C;switch(x=0,C&&(w=[w[0]&2,C.value]),w[0]){case 0:case 1:C=w;break;case 4:return I.label++,{value:w[1],done:!1};case 5:I.label++,x=w[1],w=[0];continue;case 7:w=I.ops.pop(),I.trys.pop();continue;default:if(C=I.trys,!(C=C.length>0&&C[C.length-1])&&(w[0]===6||w[0]===2)){I=0;continue}if(w[0]===3&&(!C||w[1]>C[0]&&w[1]N&&(0,e.jsx)(s.BJ.Item,{mt:1,children:(0,e.jsx)(s.$n,{height:"32px",textAlign:"center",py:1,mb:1,onClick:function(){return C.setState({currentLimit:N+5})},fluid:!0,children:"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0431\u043E\u043B\u044C\u0448\u0435"})})]})})]})}))},p}(n.Component)},6205:(q,S,r)=>{"use strict";r.r(S),r.d(S,{meta:()=>n});var e=r(1131),s=r(5180);/** + */var e=function(){Byond.winset("mapwindow.map",{focus:!0})},s=function(){Byond.winset(Byond.windowId,{focus:!0})}},6099:(q,S,r)=>{"use strict";r.r(S),r.d(S,{AtmosPump:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(b){var O=(0,s.Oc)(),y=O.act,u=O.data,f=u.on,m=u.rate,d=u.max_rate,v=u.gas_unit,_=u.step;return(0,e.jsx)(t.p8,{width:330,height:110,children:(0,e.jsx)(t.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:"power-off",color:f?null:"red",selected:f,onClick:function(){return y("power")},children:f?"On":"Off"})}),(0,e.jsxs)(n.Ki.Item,{label:"Rate",children:[(0,e.jsx)(n.$n,{icon:"fast-backward",textAlign:"center",disabled:m===0,width:2.2,onClick:function(){return y("min_rate")}}),(0,e.jsx)(n.Q7,{animated:!0,unit:v,width:6.1,lineHeight:1.5,step:_,minValue:0,maxValue:d,value:m,onDrag:function(l){return y("custom_rate",{rate:l})}}),(0,e.jsx)(n.$n,{icon:"fast-forward",textAlign:"center",disabled:m===d,width:2.2,onClick:function(){return y("max_rate")}})]})]})})})})}},6151:(q,S,r)=>{"use strict";r.r(S),r.d(S,{FaxMachine:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(b){var O=(0,s.Oc)(),y=O.act,u=O.data;return(0,e.jsx)(t.p8,{width:540,height:300,children:(0,e.jsxs)(t.p8.Content,{children:[(0,e.jsx)(n.wn,{title:"\u0410\u0432\u0442\u043E\u0440\u0438\u0437\u0430\u0446\u0438\u044F",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"ID \u041A\u0430\u0440\u0442\u0430:",children:(0,e.jsx)(n.$n,{icon:u.scan_name?"eject":"id-card",selected:!!u.scan_name,tooltip:u.scan_name?"\u0414\u043E\u0441\u0442\u0430\u0442\u044C \u043A\u0430\u0440\u0442\u0443":"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u043A\u0430\u0440\u0442\u0443",onClick:function(){return y("scan")},children:u.scan_name?u.scan_name:"-----"})}),(0,e.jsx)(n.Ki.Item,{label:"\u0412\u043E\u0439\u0442\u0438:",children:(0,e.jsx)(n.$n,{icon:u.authenticated?"sign-out-alt":"id-card",selected:u.authenticated,disabled:!u.scan_name&&!u.authenticated,onClick:function(){return y("auth")},children:u.authenticated?"\u0412\u044B\u0439\u0442\u0438":"\u0412\u043E\u0439\u0442\u0438"})})]})}),(0,e.jsx)(n.wn,{title:"\u041C\u0435\u043D\u044E \u0444\u0430\u043A\u0441\u0430",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"\u0421\u0435\u0442\u044C",children:u.network}),(0,e.jsxs)(n.Ki.Item,{label:"\u0414\u043E\u043A\u0443\u043C\u0435\u043D\u0442",children:[(0,e.jsx)(n.$n,{icon:u.paper?"eject":"paperclip",disabled:!u.authenticated&&!u.paper,onClick:function(){return y("paper")},children:u.paper?u.paper:"-----"}),!!u.paper&&(0,e.jsx)(n.$n,{icon:"pencil-alt",onClick:function(){return y("rename")},children:"\u041F\u0435\u0440\u0435\u0438\u043C\u0435\u043D\u043E\u0432\u0430\u0442\u044C"})]}),(0,e.jsx)(n.Ki.Item,{label:"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u0432",children:(0,e.jsx)(n.$n,{icon:"print",disabled:!u.authenticated,onClick:function(){return y("dept")},children:u.destination?u.destination:"-----"})}),(0,e.jsx)(n.Ki.Item,{label:"\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u0435",children:(0,e.jsx)(n.$n,{icon:"envelope",disabled:!u.paper||!u.destination||!u.authenticated||!!u.sendError,onClick:function(){return y("send")},children:u.sendError?u.sendError:"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C"})})]})})]})})}},6158:(q,S,r)=>{"use strict";r.r(S),r.d(S,{Connections:()=>b});var e=r(1131),s=r(9357),n=r(185),t=64,a=function(O){return O.CURVE="curve",O.SUBWAY="subway",O}(a||{}),b=function(O){var y=O.connections,u=O.zLayer,f=u===void 0?-1:u,m=O.lineWidth,d=m===void 0?"2px":m,v=function(_){if(typeof _=="string")return s.NE.includes(_)};return(0,e.jsx)("svg",{width:"100%",height:"100%",style:{position:"absolute",pointerEvents:"none",zIndex:f,overflow:"visible"},children:y.map(function(_,l){var c=_.from,h=_.to;if(!(!h||!c)){_.color=_.color||"blue",_.style=_.style||"curve";var g="M "+c.x+" "+c.y;switch(_.style){case"curve":{g+="C "+(c.x+t)+", "+c.y+",",g+=h.x-t+", "+h.y+",",g+=h.x+", "+h.y;break}case"subway":{var p=Math.abs(c.y-(h.y-16));g+="L "+(h.x-p)+" "+c.y,g+="L "+(h.x-16)+" "+h.y,g+="L "+h.x+" "+h.y;break}}return(0,e.jsx)("path",{className:(0,n.Ly)([v(_.color)&&"color-stroke-"+_.color]),d:g,fill:"transparent","stroke-width":d},l)}})})}},6159:(q,S,r)=>{"use strict";r.r(S),r.d(S,{SettingsMenu:()=>b});var e=r(1131),s=r(360),n=r(5180),t=r(2905),a=r(4904),b=function(O){var y=(0,s.Oc)(),u=y.data,f=y.act,m=u.sync,d=u.admin,v=u.linked_destroy,_=u.linked_lathe,l=u.linked_imprinter,c=u.disk_only;return(0,e.jsxs)(n.az,{children:[(0,e.jsx)(t.RndRoute,{submenu:a.SUBMENU.MAIN,render:function(){return(0,e.jsx)(n.wn,{title:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",children:(0,e.jsxs)(n.so,{direction:"column",align:"flex-start",children:[(0,e.jsx)(n.$n,{icon:"sync",disabled:!m,onClick:function(){f("sync")},children:"\u0421\u0438\u043D\u0445\u0440\u043E\u043D\u0438\u0437\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441 \u0441\u0435\u0442\u044C\u044E \u041D\u0418\u041E"}),(0,e.jsx)(n.$n,{icon:"plug",disabled:m,onClick:function(){f("togglesync")},children:"\u041F\u043E\u0434\u043A\u043B\u044E\u0447\u0438\u0442\u044C\u0441\u044F \u043A \u0441\u0435\u0442\u0438 \u041D\u0418\u041E"}),(0,e.jsx)(n.$n,{disabled:!m,icon:"unlink",onClick:function(){f("togglesync")},children:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C\u0441\u044F \u043E\u0442 \u0441\u0435\u0442\u0438 \u041D\u0418\u041E"}),!c&&(0,e.jsx)(t.RndNavButton,{disabled:!m,icon:"link",menu:a.MENU.SETTINGS,submenu:a.SUBMENU.SETTINGS_DEVICES,children:"\u041C\u0435\u043D\u044E \u043F\u043E\u0434\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u044F \u043E\u0431\u043E\u0440\u0443\u0434\u043E\u0432\u0430\u043D\u0438\u044F"}),d?(0,e.jsx)(n.$n,{icon:"exclamation",onClick:function(){return f("maxresearch")},children:"[\u0410\u0414\u041C\u0418\u041D] \u041F\u043E\u0432\u044B\u0441\u0438\u0442\u044C \u0442\u0435\u0445. \u0443\u0440\u043E\u0432\u043D\u0438 \u0434\u043E \u043C\u0430\u043A\u0441\u0438\u043C\u0443\u043C\u0430"}):null]})})}}),!c&&(0,e.jsx)(t.RndRoute,{submenu:a.SUBMENU.SETTINGS_DEVICES,render:function(){return(0,e.jsxs)(n.wn,{title:"\u041C\u0435\u043D\u044E \u043F\u043E\u0434\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u044F \u043E\u0431\u043E\u0440\u0443\u0434\u043E\u0432\u0430\u043D\u0438\u044F",children:[(0,e.jsx)(n.$n,{icon:"link",onClick:function(){return f("find_device")},children:"\u0421\u0438\u043D\u0445\u0440\u043E\u043D\u0438\u0437\u0430\u0446\u0438\u044F \u0431\u043B\u0438\u0436\u0430\u0439\u0448\u0435\u0433\u043E \u043E\u0431\u043E\u0440\u0443\u0434\u043E\u0432\u0430\u043D\u0438\u044F"}),(0,e.jsx)(n.az,{mt:"5px",children:(0,e.jsx)("h3",{children:"\u041F\u043E\u0434\u043A\u043B\u044E\u0447\u0451\u043D\u043D\u043E\u0435 \u043E\u0431\u043E\u0440\u0443\u0434\u043E\u0432\u0430\u043D\u0438\u0435:"})}),(0,e.jsxs)(n.Ki,{children:[v?(0,e.jsx)(n.Ki.Item,{label:"- \u0414\u0435\u0441\u0442\u0440\u0443\u043A\u0442\u0438\u0432\u043D\u044B\u0439 \u0430\u043D\u0430\u043B\u0438\u0437\u0430\u0442\u043E\u0440",children:(0,e.jsx)(n.$n,{icon:"unlink",onClick:function(){return f("disconnect",{item:"destroy"})},children:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C"})}):(0,e.jsx)(n.Ki.Item,{label:"- \u0414\u0435\u0441\u0442\u0440\u0443\u043A\u0442\u0438\u0432\u043D\u044B\u0439 \u0430\u043D\u0430\u043B\u0438\u0437\u0430\u0442\u043E\u0440 (\u041E\u0422\u041A\u041B\u042E\u0427\u0415\u041D\u041E)"}),_?(0,e.jsx)(n.Ki.Item,{label:"- \u041F\u0440\u043E\u0442\u043E\u043B\u0430\u0442",children:(0,e.jsx)(n.$n,{icon:"unlink",onClick:function(){f("disconnect",{item:"lathe"})},children:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C"})}):(0,e.jsx)(n.Ki.Item,{label:"- \u041F\u0440\u043E\u0442\u043E\u043B\u0430\u0442 (\u041E\u0422\u041A\u041B\u042E\u0427\u0415\u041D\u041E)"}),l?(0,e.jsx)(n.Ki.Item,{label:"- \u041F\u0440\u0438\u043D\u0442\u0435\u0440 \u043F\u043B\u0430\u0442",children:(0,e.jsx)(n.$n,{icon:"unlink",onClick:function(){return f("disconnect",{item:"imprinter"})},children:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C"})}):(0,e.jsx)(n.Ki.Item,{label:"- \u041F\u0440\u0438\u043D\u0442\u0435\u0440 \u043F\u043B\u0430\u0442 (\u041E\u0422\u041A\u041B\u042E\u0427\u0415\u041D\u041E)"})]})]})}})]})}},6178:(q,S,r)=>{"use strict";r.r(S),r.d(S,{ViewTabHolder:()=>b});var e=r(1131),s=r(360),n=r(5180),t=r(5237),a=r(3500),b=function(O){var y=(0,s.Oc)(),u=y.act,f=y.data,m=f.mapRef,d=f.customDropoff,v=f.effectReverse,_=f.renderLighting,l=(0,a.useTab)(),c=l[0],h=l[1],g=t.TABPAGES[c].component;return(0,e.jsx)(n.wn,{buttons:(0,e.jsxs)(e.Fragment,{children:[!!d&&!!v&&(0,e.jsx)(n.$n,{color:"transparent",icon:"arrow-circle-down",inline:!0,onClick:function(){h(2),u("tabSwitch",{tabIndex:2})},selected:c===2,tooltip:"\u041C\u0435\u0441\u0442\u043E \u0412\u044B\u0441\u0430\u0434\u043A\u0438"}),(0,e.jsx)(n.$n,{color:"transparent",icon:"rocket",inline:!0,onClick:function(){h(0),u("tabSwitch",{tabIndex:0})},selected:c===0,tooltip:"\u041A\u0430\u043F\u0441\u0443\u043B\u0430"}),(0,e.jsx)(n.$n,{color:"transparent",icon:"th",inline:!0,onClick:function(){h(1),u("tabSwitch",{tabIndex:1})},selected:c===1,tooltip:"\u0410\u043D\u0433\u0430\u0440 \u041F\u043E\u0433\u0440\u0443\u0437\u043A\u0438"}),(0,e.jsx)("span",{style:t.POD_GREY,children:"|"}),!!d&&!!v&&(0,e.jsx)(n.$n,{color:"transparent",icon:"lightbulb",inline:!0,onClick:function(){u("renderLighting"),u("refreshView")},selected:_,tooltip:"\u0420\u0435\u043D\u0434\u0435\u0440\u0438\u043D\u0433 \u043E\u0441\u0432\u0435\u0449\u0435\u043D\u0438\u044F"}),(0,e.jsx)(n.$n,{color:"transparent",icon:"sync-alt",inline:!0,onClick:function(){h(c),u("refreshView")},tooltip:"\u041E\u0431\u043D\u043E\u0432\u0438\u0442\u044C \u043E\u043A\u043D\u043E \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430"})]}),fill:!0,title:"\u041E\u0441\u043C\u043E\u0442\u0440",children:(0,e.jsxs)(n.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(g,{})}),(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(n.D1,{height:"100%",params:{id:m,type:"map",zoom:0}})})]})})}},6179:(q,S,r)=>{"use strict";r.r(S),r.d(S,{TEG:()=>b});var e=r(1131),s=r(5180),n=r(360),t=r(3521),a=function(O){return O.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")},b=function(O){var y=(0,n.Oc)(),u=y.act,f=y.data;return f.error?(0,e.jsx)(t.p8,{width:500,height:400,children:(0,e.jsx)(t.p8.Content,{children:(0,e.jsxs)(s.wn,{title:"Error",children:[f.error,(0,e.jsx)(s.$n,{icon:"circle",onClick:function(){return u("check")},children:"Recheck"})]})})}):(0,e.jsx)(t.p8,{width:500,height:400,children:(0,e.jsxs)(t.p8.Content,{children:[(0,e.jsx)(s.wn,{title:"Cold Loop ("+f.cold_dir+")",children:(0,e.jsxs)(s.Ki,{children:[(0,e.jsxs)(s.Ki.Item,{label:"Cold Inlet",children:[a(f.cold_inlet_temp)," K,"," ",a(f.cold_inlet_pressure)," kPa"]}),(0,e.jsxs)(s.Ki.Item,{label:"Cold Outlet",children:[a(f.cold_outlet_temp)," K,"," ",a(f.cold_outlet_pressure)," kPa"]})]})}),(0,e.jsx)(s.wn,{title:"Hot Loop ("+f.hot_dir+")",children:(0,e.jsxs)(s.Ki,{children:[(0,e.jsxs)(s.Ki.Item,{label:"Hot Inlet",children:[a(f.hot_inlet_temp)," K,"," ",a(f.hot_inlet_pressure)," kPa"]}),(0,e.jsxs)(s.Ki.Item,{label:"Hot Outlet",children:[a(f.hot_outlet_temp)," K,"," ",a(f.hot_outlet_pressure)," kPa"]})]})}),(0,e.jsxs)(s.wn,{title:"Power Output",children:[a(f.output_power)," W",!!f.warning_switched&&(0,e.jsx)(s.az,{color:"red",children:"Warning: Cold inlet temperature exceeds hot inlet temperature."}),!!f.warning_cold_pressure&&(0,e.jsx)(s.az,{color:"red",children:"Warning: Cold circulator inlet pressure is under 1,000 kPa."}),!!f.warning_hot_pressure&&(0,e.jsx)(s.az,{color:"red",children:"Warning: Hot circulator inlet pressure is under 1,000 kPa."})]})]})})}},6186:(q,S,r)=>{"use strict";r.r(S),r.d(S,{InterfaceLockNoticeBox:()=>t});var e=r(1131),s=r(360),n=r(5180),t=function(a){var b=(0,s.Oc)(),O=b.act,y=b.data,u=a.siliconUser,f=u===void 0?y.siliconUser:u,m=a.locked,d=m===void 0?y.locked:m,v=a.normallyLocked,_=v===void 0?y.normallyLocked:v,l=a.onLockStatusChange,c=l===void 0?function(){return O("lock")}:l,h=a.accessText,g=h===void 0?"ID-\u043A\u0430\u0440\u0442\u043E\u0439":h;return f?(0,e.jsx)(n.IC,{color:f&&"grey",children:(0,e.jsxs)(n.so,{align:"center",children:[(0,e.jsx)(n.so.Item,{children:"\u0411\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0430 \u0438\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430:"}),(0,e.jsx)(n.so.Item,{grow:"1"}),(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(n.$n,{m:"0",color:_?"red":"green",icon:_?"lock":"unlock",content:_?"\u0417\u0430\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u043D\u043E":"\u0420\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u043D\u043E",onClick:function(){c&&c(!d)}})})]})}):(0,e.jsxs)(n.IC,{children:["\u041F\u0440\u043E\u0432\u0435\u0434\u0438\u0442\u0435 ",g,", \u0447\u0442\u043E\u0431\u044B"," ",d?"\u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u0442\u044C":"\u0437\u0430\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u0442\u044C"," \u044D\u0442\u043E\u0442 \u0438\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441."]})}},6194:(q,S,r)=>{"use strict";r.r(S),r.d(S,{ComponentMenu:()=>h});var e=r(1131),s=r(5180),n=r(7003),t=r(185),a=r(3655),b=r(1243),O=r(9435),y=r(8968);function u(g,p,j,x,C,I,P){try{var M=g[I](P),B=M.value}catch(w){j(w);return}M.done?p(B):Promise.resolve(B).then(x,C)}function f(g){return function(){var p=this,j=arguments;return new Promise(function(x,C){var I=g.apply(p,j);function P(B){u(I,x,C,P,M,"next",B)}function M(B){u(I,x,C,P,M,"throw",B)}P(void 0)})}}function m(){return m=Object.assign||function(g){for(var p=1;p=0)&&(j[C]=g[C]);return j}function _(g,p){return _=Object.setPrototypeOf||function(x,C){return x.__proto__=C,x},_(g,p)}function l(g,p){var j,x,C,I={label:0,sent:function(){if(C[0]&1)throw C[1];return C[1]},trys:[],ops:[]},P=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return P.next=M(0),P.throw=M(1),P.return=M(2),typeof Symbol=="function"&&(P[Symbol.iterator]=function(){return this}),P;function M(w){return function(T){return B([w,T])}}function B(w){if(j)throw new TypeError("Generator is already executing.");for(;P&&(P=0,w[0]&&(I=0)),I;)try{if(j=1,x&&(C=w[0]&2?x.return:w[0]?x.throw||((C=x.return)&&C.call(x),0):x.next)&&!(C=C.call(x,w[1])).done)return C;switch(x=0,C&&(w=[w[0]&2,C.value]),w[0]){case 0:case 1:C=w;break;case 4:return I.label++,{value:w[1],done:!1};case 5:I.label++,x=w[1],w=[0];continue;case 7:w=I.ops.pop(),I.trys.pop();continue;default:if(C=I.trys,!(C=C.length>0&&C[C.length-1])&&(w[0]===6||w[0]===2)){I=0;continue}if(w[0]===3&&(!C||w[1]>C[0]&&w[1]N&&(0,e.jsx)(s.BJ.Item,{mt:1,children:(0,e.jsx)(s.$n,{height:"32px",textAlign:"center",py:1,mb:1,onClick:function(){return C.setState({currentLimit:N+5})},fluid:!0,children:"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0431\u043E\u043B\u044C\u0448\u0435"})})]})})]})}))},p}(n.Component)},6205:(q,S,r)=>{"use strict";r.r(S),r.d(S,{meta:()=>n});var e=r(1131),s=r(5180);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var n={title:"Blink",render:function(){return(0,e.jsx)(t,{})}},t=function(a){return(0,e.jsx)(s.wn,{children:(0,e.jsx)(s.Z8,{children:"Blink"})})}},6218:(q,S,r)=>{"use strict";r.r(S),r.d(S,{ListInputWindow:()=>O});var e=r(1131),s=r(360),n=r(3521),t=r(3384),a=r(5951),O=function(){var b=(0,s.Oc)(),y=b.act,u=b.data,f=u.items,m=f===void 0?[]:f,d=u.message,v=d===void 0?"":d,_=u.init_value,l=u.large_buttons,c=u.timeout,h=u.title,g=325+Math.ceil(v.length/3)+(l?5:0);return(0,e.jsxs)(n.p8,{title:h,width:325,height:g,children:[c&&(0,e.jsx)(t.Loader,{value:c}),(0,e.jsx)(n.p8.Content,{children:(0,e.jsx)(a.ListInputModal,{items:m,default_item:_,message:v,on_selected:function(p){return y("submit",{entry:p})},on_cancel:function(){return y("cancel")}})})]})}},6251:(q,S,r)=>{"use strict";r.r(S),r.d(S,{Reflector:()=>a});var e=r(1131),s=r(5180),n=r(360),t=r(3521),a=function(O){var b=(0,n.Oc)(),y=b.act,u=b.data,f=u.reflector_name,m=u.rotation_angle;return(0,e.jsx)(t.p8,{title:f,height:200,width:219,children:(0,e.jsx)(t.p8.Content,{children:(0,e.jsxs)(s.BJ,{children:[(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(s.wn,{title:"Presets",textAlign:"center",fill:!0,children:(0,e.jsxs)(s.XI,{mt:3.5,children:[(0,e.jsxs)(s.XI.Cell,{children:[(0,e.jsx)(s.XI.Row,{children:(0,e.jsx)(s.$n,{icon:"arrow-left",iconRotation:45,mb:1,onClick:function(){return y("rotate",{rotation_angle:315})}})}),(0,e.jsx)(s.XI.Row,{children:(0,e.jsx)(s.$n,{icon:"arrow-left",mb:1,onClick:function(){return y("rotate",{rotation_angle:270})}})}),(0,e.jsx)(s.XI.Row,{children:(0,e.jsx)(s.$n,{icon:"arrow-left",iconRotation:-45,mb:1,onClick:function(){return y("rotate",{rotation_angle:225})}})})]}),(0,e.jsxs)(s.XI.Cell,{children:[(0,e.jsx)(s.XI.Row,{children:(0,e.jsx)(s.$n,{icon:"arrow-up",mb:1,onClick:function(){return y("rotate",{rotation_angle:0})}})}),(0,e.jsx)(s.XI.Row,{children:(0,e.jsx)(s.az,{px:.75,children:(0,e.jsx)(s.In,{name:"angle-double-up",size:1.66,rotation:m,mb:1})})}),(0,e.jsx)(s.XI.Row,{children:(0,e.jsx)(s.$n,{icon:"arrow-down",mb:1,onClick:function(){return y("rotate",{rotation_angle:180})}})})]}),(0,e.jsxs)(s.XI.Cell,{children:[(0,e.jsx)(s.XI.Row,{children:(0,e.jsx)(s.$n,{icon:"arrow-right",iconRotation:-45,mb:1,onClick:function(){return y("rotate",{rotation_angle:45})}})}),(0,e.jsx)(s.XI.Row,{children:(0,e.jsx)(s.$n,{icon:"arrow-right",mb:1,onClick:function(){return y("rotate",{rotation_angle:90})}})}),(0,e.jsx)(s.XI.Row,{children:(0,e.jsx)(s.$n,{icon:"arrow-right",iconRotation:45,mb:1,onClick:function(){return y("rotate",{rotation_angle:135})}})})]})]})})}),(0,e.jsx)(s.BJ,{children:(0,e.jsxs)(s.wn,{title:"\u0423\u0433\u043E\u043B",textAlign:"center",fill:!0,children:[(0,e.jsx)(s.Wx,{children:(0,e.jsx)(s.Wx.Item,{ml:.5,label:"\u0417\u0430\u0434\u0430\u0442\u044C \u0432\u0440\u0430\u0449\u0435\u043D\u0438\u0435",children:(0,e.jsx)(s.Q7,{value:m,unit:"degrees",minValue:0,maxValue:359,step:1,stepPixelSize:1,onDrag:function(d){return y("rotate",{rotation_angle:d})}})})}),(0,e.jsxs)(s.BJ,{fill:!0,children:[(0,e.jsxs)(s.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(s.$n,{fluid:!0,icon:"undo-alt",mb:1,onClick:function(){return y("calculate",{rotation_angle:-5})},children:"-5"})}),(0,e.jsx)(s.BJ,{children:(0,e.jsx)(s.$n,{fluid:!0,icon:"undo-alt",mb:1,onClick:function(){return y("calculate",{rotation_angle:-10})},children:"-10"})}),(0,e.jsx)(s.BJ,{children:(0,e.jsx)(s.$n,{fluid:!0,icon:"undo-alt",mb:1,onClick:function(){return y("calculate",{rotation_angle:-15})},children:"-15"})})]}),(0,e.jsxs)(s.BJ,{vertical:!0,children:[(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(s.$n,{fluid:!0,icon:"redo-alt",iconPosition:"right",mb:1,onClick:function(){return y("calculate",{rotation_angle:5})},children:"+5"})}),(0,e.jsx)(s.BJ,{children:(0,e.jsx)(s.$n,{fluid:!0,icon:"redo-alt",iconPosition:"right",mb:1,onClick:function(){return y("calculate",{rotation_angle:10})},children:"+10"})}),(0,e.jsx)(s.BJ,{children:(0,e.jsx)(s.$n,{fluid:!0,icon:"redo-alt",iconPosition:"right",mb:1,onClick:function(){return y("calculate",{rotation_angle:15})},children:"+15"})})]})]})]})})]})})})}},6295:(q,S,r)=>{"use strict";r.r(S),r.d(S,{meta:()=>t});var e=r(1131),s=r(7003),n=r(5180);/** + */var n={title:"Blink",render:function(){return(0,e.jsx)(t,{})}},t=function(a){return(0,e.jsx)(s.wn,{children:(0,e.jsx)(s.Z8,{children:"Blink"})})}},6218:(q,S,r)=>{"use strict";r.r(S),r.d(S,{ListInputWindow:()=>b});var e=r(1131),s=r(360),n=r(3521),t=r(3384),a=r(5951),b=function(){var O=(0,s.Oc)(),y=O.act,u=O.data,f=u.items,m=f===void 0?[]:f,d=u.message,v=d===void 0?"":d,_=u.init_value,l=u.large_buttons,c=u.timeout,h=u.title,g=325+Math.ceil(v.length/3)+(l?5:0);return(0,e.jsxs)(n.p8,{title:h,width:325,height:g,children:[c&&(0,e.jsx)(t.Loader,{value:c}),(0,e.jsx)(n.p8.Content,{children:(0,e.jsx)(a.ListInputModal,{items:m,default_item:_,message:v,on_selected:function(p){return y("submit",{entry:p})},on_cancel:function(){return y("cancel")}})})]})}},6251:(q,S,r)=>{"use strict";r.r(S),r.d(S,{Reflector:()=>a});var e=r(1131),s=r(5180),n=r(360),t=r(3521),a=function(b){var O=(0,n.Oc)(),y=O.act,u=O.data,f=u.reflector_name,m=u.rotation_angle;return(0,e.jsx)(t.p8,{title:f,height:200,width:219,children:(0,e.jsx)(t.p8.Content,{children:(0,e.jsxs)(s.BJ,{children:[(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(s.wn,{title:"Presets",textAlign:"center",fill:!0,children:(0,e.jsxs)(s.XI,{mt:3.5,children:[(0,e.jsxs)(s.XI.Cell,{children:[(0,e.jsx)(s.XI.Row,{children:(0,e.jsx)(s.$n,{icon:"arrow-left",iconRotation:45,mb:1,onClick:function(){return y("rotate",{rotation_angle:315})}})}),(0,e.jsx)(s.XI.Row,{children:(0,e.jsx)(s.$n,{icon:"arrow-left",mb:1,onClick:function(){return y("rotate",{rotation_angle:270})}})}),(0,e.jsx)(s.XI.Row,{children:(0,e.jsx)(s.$n,{icon:"arrow-left",iconRotation:-45,mb:1,onClick:function(){return y("rotate",{rotation_angle:225})}})})]}),(0,e.jsxs)(s.XI.Cell,{children:[(0,e.jsx)(s.XI.Row,{children:(0,e.jsx)(s.$n,{icon:"arrow-up",mb:1,onClick:function(){return y("rotate",{rotation_angle:0})}})}),(0,e.jsx)(s.XI.Row,{children:(0,e.jsx)(s.az,{px:.75,children:(0,e.jsx)(s.In,{name:"angle-double-up",size:1.66,rotation:m,mb:1})})}),(0,e.jsx)(s.XI.Row,{children:(0,e.jsx)(s.$n,{icon:"arrow-down",mb:1,onClick:function(){return y("rotate",{rotation_angle:180})}})})]}),(0,e.jsxs)(s.XI.Cell,{children:[(0,e.jsx)(s.XI.Row,{children:(0,e.jsx)(s.$n,{icon:"arrow-right",iconRotation:-45,mb:1,onClick:function(){return y("rotate",{rotation_angle:45})}})}),(0,e.jsx)(s.XI.Row,{children:(0,e.jsx)(s.$n,{icon:"arrow-right",mb:1,onClick:function(){return y("rotate",{rotation_angle:90})}})}),(0,e.jsx)(s.XI.Row,{children:(0,e.jsx)(s.$n,{icon:"arrow-right",iconRotation:45,mb:1,onClick:function(){return y("rotate",{rotation_angle:135})}})})]})]})})}),(0,e.jsx)(s.BJ,{children:(0,e.jsxs)(s.wn,{title:"\u0423\u0433\u043E\u043B",textAlign:"center",fill:!0,children:[(0,e.jsx)(s.Wx,{children:(0,e.jsx)(s.Wx.Item,{ml:.5,label:"\u0417\u0430\u0434\u0430\u0442\u044C \u0432\u0440\u0430\u0449\u0435\u043D\u0438\u0435",children:(0,e.jsx)(s.Q7,{value:m,unit:"degrees",minValue:0,maxValue:359,step:1,stepPixelSize:1,onDrag:function(d){return y("rotate",{rotation_angle:d})}})})}),(0,e.jsxs)(s.BJ,{fill:!0,children:[(0,e.jsxs)(s.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(s.$n,{fluid:!0,icon:"undo-alt",mb:1,onClick:function(){return y("calculate",{rotation_angle:-5})},children:"-5"})}),(0,e.jsx)(s.BJ,{children:(0,e.jsx)(s.$n,{fluid:!0,icon:"undo-alt",mb:1,onClick:function(){return y("calculate",{rotation_angle:-10})},children:"-10"})}),(0,e.jsx)(s.BJ,{children:(0,e.jsx)(s.$n,{fluid:!0,icon:"undo-alt",mb:1,onClick:function(){return y("calculate",{rotation_angle:-15})},children:"-15"})})]}),(0,e.jsxs)(s.BJ,{vertical:!0,children:[(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(s.$n,{fluid:!0,icon:"redo-alt",iconPosition:"right",mb:1,onClick:function(){return y("calculate",{rotation_angle:5})},children:"+5"})}),(0,e.jsx)(s.BJ,{children:(0,e.jsx)(s.$n,{fluid:!0,icon:"redo-alt",iconPosition:"right",mb:1,onClick:function(){return y("calculate",{rotation_angle:10})},children:"+10"})}),(0,e.jsx)(s.BJ,{children:(0,e.jsx)(s.$n,{fluid:!0,icon:"redo-alt",iconPosition:"right",mb:1,onClick:function(){return y("calculate",{rotation_angle:15})},children:"+15"})})]})]})]})})]})})})}},6295:(q,S,r)=>{"use strict";r.r(S),r.d(S,{meta:()=>t});var e=r(1131),s=r(7003),n=r(5180);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var t={title:"Themes",render:function(){return(0,e.jsx)(a,{})}},a=function(O){var b=(0,s.useState)("kitchenSinkTheme"),y=b[0],u=b[1];return(0,e.jsx)(n.wn,{children:(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Use theme",children:(0,e.jsx)(n.pd,{placeholder:"theme_name",value:y,onChange:u})})})})}},6431:(q,S,r)=>{"use strict";r.r(S),r.d(S,{meta:()=>t});var e=r(1131),s=r(7003),n=r(5180);/** + */var t={title:"Themes",render:function(){return(0,e.jsx)(a,{})}},a=function(b){var O=(0,s.useState)("kitchenSinkTheme"),y=O[0],u=O[1];return(0,e.jsx)(n.wn,{children:(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Use theme",children:(0,e.jsx)(n.pd,{placeholder:"theme_name",value:y,onChange:u})})})})}},6431:(q,S,r)=>{"use strict";r.r(S),r.d(S,{meta:()=>t});var e=r(1131),s=r(7003),n=r(5180);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var t={title:"Input",render:function(){return(0,e.jsx)(a,{})}},a=function(O){var b=(0,s.useState)(0),y=b[0],u=b[1],f=(0,s.useState)("Sample text"),m=f[0],d=f[1];return(0,e.jsx)(n.wn,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Input (onChange)",children:(0,e.jsx)(n.pd,{value:m,onChange:d})}),(0,e.jsx)(n.Ki.Item,{label:"NumberInput (onChange)",children:(0,e.jsx)(n.Q7,{animated:!0,width:"40px",step:1,stepPixelSize:5,value:y,minValue:-100,maxValue:100,onChange:function(v){return u(v)}})}),(0,e.jsx)(n.Ki.Item,{label:"NumberInput (onDrag)",children:(0,e.jsx)(n.Q7,{animated:!0,width:"40px",step:1,stepPixelSize:5,value:y,minValue:-100,maxValue:100,onDrag:function(v){return u(v)}})}),(0,e.jsx)(n.Ki.Item,{label:"Slider (onDrag)",children:(0,e.jsx)(n.Ap,{step:1,stepPixelSize:5,value:y,minValue:-100,maxValue:100,onDrag:function(v,_){return u(_)}})}),(0,e.jsxs)(n.Ki.Item,{label:"Knob (onDrag)",children:[(0,e.jsx)(n.N6,{inline:!0,size:1,step:1,stepPixelSize:2,value:y,minValue:-100,maxValue:100,onDrag:function(v,_){return u(_)}}),(0,e.jsx)(n.N6,{ml:1,inline:!0,bipolar:!0,size:1,step:1,stepPixelSize:2,value:y,minValue:-100,maxValue:100,onDrag:function(v,_){return u(_)}})]}),(0,e.jsx)(n.Ki.Item,{label:"Rotating Icon",children:(0,e.jsx)(n.az,{inline:!0,position:"relative",children:(0,e.jsx)(n.Hx,{value:y,minValue:-100,maxValue:100,dragMatrix:[0,-1],step:1,stepPixelSize:5,onDrag:function(v,_){return u(_)},children:function(v){return(0,e.jsxs)(n.az,{onMouseDown:v.handleDragStart,children:[(0,e.jsx)(n.In,{size:4,color:"yellow",name:"times",rotation:v.displayValue*4}),v.inputElement]})}})})})]})})}},6465:(q,S,r)=>{"use strict";r.r(S)},6484:(q,S,r)=>{"use strict";r.r(S),r.d(S,{FaunaBomb:()=>b});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=r(7003),O=function(f){switch(f){case 0:return(0,e.jsx)(y,{});case 1:return(0,e.jsx)(u,{});default:return"SOMETHING WENT VERY WRONG PLEASE AHELP"}},b=function(f){var m=(0,s.Oc)().data,d=m.charge,v=m.max_charge,_=m.charge_speed,l=m.created_len,c=(0,a.useState)(0),h=c[0],g=c[1];return(0,e.jsx)(t.p8,{width:710,height:500,title:"\u041C\u0435\u043D\u044E \u0443\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u044F \u043F\u0440\u043E\u0435\u043A\u0446\u0438\u044F\u043C\u0438",children:(0,e.jsxs)(t.p8.Content,{children:[(0,e.jsxs)(n.az,{italic:!0,mt:"5px",children:["\u0417\u0430\u0440\u044F\u0434: ",d,"/",v," \u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0437\u0430\u0440\u044F\u0434\u043A\u0438: ",_," ","\u041F\u0440\u043E\u0435\u043A\u0446\u0438\u0439: ",l,"/12"]}),(0,e.jsxs)(n.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(n.BJ.Item,{children:(0,e.jsxs)(n.tU,{children:[(0,e.jsx)(n.tU.Tab,{selected:h===0,onClick:function(){g(0)},icon:"user",children:"\u041A\u043E\u043D\u0442\u0440\u043E\u043B\u044C"},"Commands"),(0,e.jsx)(n.tU.Tab,{selected:h===1,onClick:function(){g(1)},icon:"user",children:"\u041F\u0440\u043E\u0435\u0446\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435"},"Scans")]})}),(0,e.jsx)(n.BJ.Item,{grow:!0,children:O(h)})]})]})})},y=function(f){var m=(0,s.Oc)().act;return(0,e.jsxs)(n.BJ,{vertical:!0,children:[(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.$n,{onClick:function(){return m("attack")},children:"\u0410\u0442\u0430\u043A\u043E\u0432\u0430\u0442\u044C"})}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.$n,{onClick:function(){return m("go")},children:"\u0421\u043B\u0435\u0434\u043E\u0432\u0430\u0442\u044C"})}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.$n,{onClick:function(){return m("stop")},children:"\u041F\u0440\u0435\u043A\u0440\u0430\u0442\u0438\u0442\u044C"})})]})},u=function(f){var m=(0,s.Oc)(),d=m.act,v=m.data,_=v.scans,l=(0,a.useState)(0),c=l[0],h=l[1];return(0,e.jsx)(n.BJ,{fill:!0,vertical:!0,children:(0,e.jsxs)(n.BJ,{fill:!0,mt:.3,children:[(0,e.jsx)(n.BJ.Item,{width:"30%",children:(0,e.jsx)(n.wn,{fill:!0,scrollable:!0,children:(0,e.jsx)(n.tU,{vertical:!0,children:_.map(function(g){return(0,e.jsx)(n.tU.Tab,{selected:g.index-1===c,onClick:function(){h(g.index-1)},children:g.name},g)})})})}),(0,e.jsx)(n.BJ.Item,{grow:!0,children:_.length?(0,e.jsxs)(n.BJ,{vertical:!0,children:[(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n._V,{src:"data:image/jpeg;base64,"+_[c].icon,style:{width:"64px",margin:"0px"}})}),(0,e.jsxs)(n.BJ.Item,{children:["\u0421\u0443\u0449\u0435\u0441\u0442\u0432\u043E: ",_[c].name]}),(0,e.jsxs)(n.BJ.Item,{children:["\u0417\u0434\u043E\u0440\u043E\u0432\u044C\u0435: ",_[c].health]}),(0,e.jsxs)(n.BJ.Item,{children:["\u041C\u0438\u043D\u0438\u043C\u0430\u043B\u044C\u043D\u044B\u0439 \u0443\u0440\u043E\u043D: ",_[c].dmg_low]}),(0,e.jsxs)(n.BJ.Item,{children:["\u041C\u0430\u043A\u0441\u0438\u043C\u0430\u043B\u044C\u043D\u044B\u0439 \u0443\u0440\u043E\u043D: ",_[c].dmg_high]}),(0,e.jsxs)(n.BJ.Item,{children:["\u0423\u0440\u043E\u043D \u043F\u043E \u043E\u0431\u044A\u0435\u043A\u0442\u0430\u043C: ",_[c].dmg_obj]}),(0,e.jsxs)(n.BJ.Item,{children:["\u0422\u0440\u0435\u0431\u0443\u0435\u0442 \u0437\u0430\u0440\u044F\u0434\u0430: ",_[c].cost]}),(0,e.jsxs)(n.BJ.Item,{children:[(0,e.jsx)(n.$n,{onClick:function(){return d("create",{index:_[c].index})},children:"\u0421\u043F\u0440\u043E\u0435\u0446\u0438\u0440\u043E\u0432\u0430\u0442\u044C"}),(0,e.jsx)(n.$n,{onClick:function(){return d("kill",{index:_[c].index})},children:"\u0420\u0430\u0437\u0432\u0435\u044F\u0442\u044C"}),(0,e.jsx)(n.$n,{onClick:function(){return d("forget",{index:_[c].index})},children:"\u0417\u0430\u0431\u044B\u0442\u044C"})]})]}):null})]})})}},6485:(q,S,r)=>{"use strict";r.r(S),r.d(S,{VotePanel:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(O){var b=(0,s.Oc)(),y=b.act,u=b.data,f=u.remaining,m=u.question,d=u.choices,v=u.user_vote,_=u.counts,l=u.show_counts,c=u.show_cancel;return(0,e.jsx)(t.p8,{width:400,height:500,children:(0,e.jsx)(t.p8.Content,{scrollable:!0,children:(0,e.jsxs)(n.wn,{title:m,children:[(0,e.jsxs)(n.az,{mb:1,children:["Time remaining: ",Math.round(f/10),"s"]}),d.map(function(h){return(0,e.jsx)(n.az,{children:(0,e.jsx)(n.$n,{onClick:function(){return y("vote",{target:h})},selected:h===v,mb:.5,children:h+(l?" ("+(_[h]||0)+")":"")})},h)}),!!c&&(0,e.jsx)(n.az,{children:(0,e.jsx)(n.$n,{onClick:function(){return y("cancel")},children:"Cancel"})},"Cancel")]})})})}},6488:(q,S,r)=>{"use strict";r.r(S),r.d(S,{CryopodConsole:()=>O});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=r(9845),O=function(u){var f=(0,s.Oc)().data,m=f.account_name,d=f.allow_items;return(0,e.jsx)(t.p8,{width:400,height:480,children:(0,e.jsxs)(t.p8.Content,{children:[(0,e.jsx)(n.wn,{title:"Hello, "+(m||"[REDACTED]")+"!",children:"This automated cryogenic freezing unit will safely store your corporeal form until your next assignment."}),(0,e.jsx)(b,{}),!!d&&(0,e.jsx)(y,{})]})})},b=function(u){var f=(0,s.Oc)().data,m=f.frozen_crew;return(0,e.jsx)(n.Nt,{title:"Stored Crew",children:m.length?(0,e.jsx)(n.wn,{scrollable:!0,children:(0,e.jsx)(n.Ki,{children:m.map(function(d,v){return(0,e.jsx)(n.Ki.Item,{label:d.name,children:d.rank},v)})})}):(0,e.jsx)(n.IC,{children:"No stored crew!"})})},y=function(u){var f=(0,s.Oc)(),m=f.act,d=f.data,v=d.frozen_items,_=function(l){var c=l.toString();return c.startsWith("the ")&&(c=c.slice(4,c.length)),(0,a.Sn)(c)};return(0,e.jsx)(n.Nt,{title:"Stored Items",children:v.length?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.wn,{scrollable:!0,children:(0,e.jsx)(n.Ki,{children:v.map(function(l){return(0,e.jsx)(n.Ki.Item,{label:_(l.name),buttons:(0,e.jsx)(n.$n,{icon:"arrow-down",mr:1,onClick:function(){return m("one_item",{item:l.uid})},children:"Drop"})},l.uid)})})}),(0,e.jsx)(n.$n,{color:"red",onClick:function(){return m("all_items")},children:"Drop All Items"})]}):(0,e.jsx)(n.IC,{children:"No stored items!"})})}},6500:(q,S,r)=>{"use strict";r.d(S,{HY:()=>b,Tw:()=>O,VP:()=>y,y$:()=>a});/** + */var t={title:"Input",render:function(){return(0,e.jsx)(a,{})}},a=function(b){var O=(0,s.useState)(0),y=O[0],u=O[1],f=(0,s.useState)("Sample text"),m=f[0],d=f[1];return(0,e.jsx)(n.wn,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Input (onChange)",children:(0,e.jsx)(n.pd,{value:m,onChange:d})}),(0,e.jsx)(n.Ki.Item,{label:"NumberInput (onChange)",children:(0,e.jsx)(n.Q7,{animated:!0,width:"40px",step:1,stepPixelSize:5,value:y,minValue:-100,maxValue:100,onChange:function(v){return u(v)}})}),(0,e.jsx)(n.Ki.Item,{label:"NumberInput (onDrag)",children:(0,e.jsx)(n.Q7,{animated:!0,width:"40px",step:1,stepPixelSize:5,value:y,minValue:-100,maxValue:100,onDrag:function(v){return u(v)}})}),(0,e.jsx)(n.Ki.Item,{label:"Slider (onDrag)",children:(0,e.jsx)(n.Ap,{step:1,stepPixelSize:5,value:y,minValue:-100,maxValue:100,onDrag:function(v,_){return u(_)}})}),(0,e.jsxs)(n.Ki.Item,{label:"Knob (onDrag)",children:[(0,e.jsx)(n.N6,{inline:!0,size:1,step:1,stepPixelSize:2,value:y,minValue:-100,maxValue:100,onDrag:function(v,_){return u(_)}}),(0,e.jsx)(n.N6,{ml:1,inline:!0,bipolar:!0,size:1,step:1,stepPixelSize:2,value:y,minValue:-100,maxValue:100,onDrag:function(v,_){return u(_)}})]}),(0,e.jsx)(n.Ki.Item,{label:"Rotating Icon",children:(0,e.jsx)(n.az,{inline:!0,position:"relative",children:(0,e.jsx)(n.Hx,{value:y,minValue:-100,maxValue:100,dragMatrix:[0,-1],step:1,stepPixelSize:5,onDrag:function(v,_){return u(_)},children:function(v){return(0,e.jsxs)(n.az,{onMouseDown:v.handleDragStart,children:[(0,e.jsx)(n.In,{size:4,color:"yellow",name:"times",rotation:v.displayValue*4}),v.inputElement]})}})})})]})})}},6465:(q,S,r)=>{"use strict";r.r(S)},6484:(q,S,r)=>{"use strict";r.r(S),r.d(S,{FaunaBomb:()=>O});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=r(7003),b=function(f){switch(f){case 0:return(0,e.jsx)(y,{});case 1:return(0,e.jsx)(u,{});default:return"SOMETHING WENT VERY WRONG PLEASE AHELP"}},O=function(f){var m=(0,s.Oc)().data,d=m.charge,v=m.max_charge,_=m.charge_speed,l=m.created_len,c=(0,a.useState)(0),h=c[0],g=c[1];return(0,e.jsx)(t.p8,{width:710,height:500,title:"\u041C\u0435\u043D\u044E \u0443\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u044F \u043F\u0440\u043E\u0435\u043A\u0446\u0438\u044F\u043C\u0438",children:(0,e.jsxs)(t.p8.Content,{children:[(0,e.jsxs)(n.az,{italic:!0,mt:"5px",children:["\u0417\u0430\u0440\u044F\u0434: ",d,"/",v," \u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0437\u0430\u0440\u044F\u0434\u043A\u0438: ",_," ","\u041F\u0440\u043E\u0435\u043A\u0446\u0438\u0439: ",l,"/12"]}),(0,e.jsxs)(n.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(n.BJ.Item,{children:(0,e.jsxs)(n.tU,{children:[(0,e.jsx)(n.tU.Tab,{selected:h===0,onClick:function(){g(0)},icon:"user",children:"\u041A\u043E\u043D\u0442\u0440\u043E\u043B\u044C"},"Commands"),(0,e.jsx)(n.tU.Tab,{selected:h===1,onClick:function(){g(1)},icon:"user",children:"\u041F\u0440\u043E\u0435\u0446\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435"},"Scans")]})}),(0,e.jsx)(n.BJ.Item,{grow:!0,children:b(h)})]})]})})},y=function(f){var m=(0,s.Oc)().act;return(0,e.jsxs)(n.BJ,{vertical:!0,children:[(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.$n,{onClick:function(){return m("attack")},children:"\u0410\u0442\u0430\u043A\u043E\u0432\u0430\u0442\u044C"})}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.$n,{onClick:function(){return m("go")},children:"\u0421\u043B\u0435\u0434\u043E\u0432\u0430\u0442\u044C"})}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.$n,{onClick:function(){return m("stop")},children:"\u041F\u0440\u0435\u043A\u0440\u0430\u0442\u0438\u0442\u044C"})})]})},u=function(f){var m=(0,s.Oc)(),d=m.act,v=m.data,_=v.scans,l=(0,a.useState)(0),c=l[0],h=l[1];return(0,e.jsx)(n.BJ,{fill:!0,vertical:!0,children:(0,e.jsxs)(n.BJ,{fill:!0,mt:.3,children:[(0,e.jsx)(n.BJ.Item,{width:"30%",children:(0,e.jsx)(n.wn,{fill:!0,scrollable:!0,children:(0,e.jsx)(n.tU,{vertical:!0,children:_.map(function(g){return(0,e.jsx)(n.tU.Tab,{selected:g.index-1===c,onClick:function(){h(g.index-1)},children:g.name},g)})})})}),(0,e.jsx)(n.BJ.Item,{grow:!0,children:_.length?(0,e.jsxs)(n.BJ,{vertical:!0,children:[(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n._V,{src:"data:image/jpeg;base64,"+_[c].icon,style:{width:"64px",margin:"0px"}})}),(0,e.jsxs)(n.BJ.Item,{children:["\u0421\u0443\u0449\u0435\u0441\u0442\u0432\u043E: ",_[c].name]}),(0,e.jsxs)(n.BJ.Item,{children:["\u0417\u0434\u043E\u0440\u043E\u0432\u044C\u0435: ",_[c].health]}),(0,e.jsxs)(n.BJ.Item,{children:["\u041C\u0438\u043D\u0438\u043C\u0430\u043B\u044C\u043D\u044B\u0439 \u0443\u0440\u043E\u043D: ",_[c].dmg_low]}),(0,e.jsxs)(n.BJ.Item,{children:["\u041C\u0430\u043A\u0441\u0438\u043C\u0430\u043B\u044C\u043D\u044B\u0439 \u0443\u0440\u043E\u043D: ",_[c].dmg_high]}),(0,e.jsxs)(n.BJ.Item,{children:["\u0423\u0440\u043E\u043D \u043F\u043E \u043E\u0431\u044A\u0435\u043A\u0442\u0430\u043C: ",_[c].dmg_obj]}),(0,e.jsxs)(n.BJ.Item,{children:["\u0422\u0440\u0435\u0431\u0443\u0435\u0442 \u0437\u0430\u0440\u044F\u0434\u0430: ",_[c].cost]}),(0,e.jsxs)(n.BJ.Item,{children:[(0,e.jsx)(n.$n,{onClick:function(){return d("create",{index:_[c].index})},children:"\u0421\u043F\u0440\u043E\u0435\u0446\u0438\u0440\u043E\u0432\u0430\u0442\u044C"}),(0,e.jsx)(n.$n,{onClick:function(){return d("kill",{index:_[c].index})},children:"\u0420\u0430\u0437\u0432\u0435\u044F\u0442\u044C"}),(0,e.jsx)(n.$n,{onClick:function(){return d("forget",{index:_[c].index})},children:"\u0417\u0430\u0431\u044B\u0442\u044C"})]})]}):null})]})})}},6485:(q,S,r)=>{"use strict";r.r(S),r.d(S,{VotePanel:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(b){var O=(0,s.Oc)(),y=O.act,u=O.data,f=u.remaining,m=u.question,d=u.choices,v=u.user_vote,_=u.counts,l=u.show_counts,c=u.show_cancel;return(0,e.jsx)(t.p8,{width:400,height:500,children:(0,e.jsx)(t.p8.Content,{scrollable:!0,children:(0,e.jsxs)(n.wn,{title:m,children:[(0,e.jsxs)(n.az,{mb:1,children:["Time remaining: ",Math.round(f/10),"s"]}),d.map(function(h){return(0,e.jsx)(n.az,{children:(0,e.jsx)(n.$n,{onClick:function(){return y("vote",{target:h})},selected:h===v,mb:.5,children:h+(l?" ("+(_[h]||0)+")":"")})},h)}),!!c&&(0,e.jsx)(n.az,{children:(0,e.jsx)(n.$n,{onClick:function(){return y("cancel")},children:"Cancel"})},"Cancel")]})})})}},6488:(q,S,r)=>{"use strict";r.r(S),r.d(S,{CryopodConsole:()=>b});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=r(9845),b=function(u){var f=(0,s.Oc)().data,m=f.account_name,d=f.allow_items;return(0,e.jsx)(t.p8,{width:400,height:480,children:(0,e.jsxs)(t.p8.Content,{children:[(0,e.jsx)(n.wn,{title:"Hello, "+(m||"[REDACTED]")+"!",children:"This automated cryogenic freezing unit will safely store your corporeal form until your next assignment."}),(0,e.jsx)(O,{}),!!d&&(0,e.jsx)(y,{})]})})},O=function(u){var f=(0,s.Oc)().data,m=f.frozen_crew;return(0,e.jsx)(n.Nt,{title:"Stored Crew",children:m.length?(0,e.jsx)(n.wn,{scrollable:!0,children:(0,e.jsx)(n.Ki,{children:m.map(function(d,v){return(0,e.jsx)(n.Ki.Item,{label:d.name,children:d.rank},v)})})}):(0,e.jsx)(n.IC,{children:"No stored crew!"})})},y=function(u){var f=(0,s.Oc)(),m=f.act,d=f.data,v=d.frozen_items,_=function(l){var c=l.toString();return c.startsWith("the ")&&(c=c.slice(4,c.length)),(0,a.Sn)(c)};return(0,e.jsx)(n.Nt,{title:"Stored Items",children:v.length?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.wn,{scrollable:!0,children:(0,e.jsx)(n.Ki,{children:v.map(function(l){return(0,e.jsx)(n.Ki.Item,{label:_(l.name),buttons:(0,e.jsx)(n.$n,{icon:"arrow-down",mr:1,onClick:function(){return m("one_item",{item:l.uid})},children:"Drop"})},l.uid)})})}),(0,e.jsx)(n.$n,{color:"red",onClick:function(){return m("all_items")},children:"Drop All Items"})]}):(0,e.jsx)(n.IC,{children:"No stored items!"})})}},6500:(q,S,r)=>{"use strict";r.d(S,{HY:()=>O,Tw:()=>b,VP:()=>y,y$:()=>a});/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function e(u,f){(f==null||f>u.length)&&(f=u.length);for(var m=0,d=new Array(f);m=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 a=function(u,f){if(f)return f(a)(u);var m,d=[],v=function(){return m},_=function(c){d.push(c)},l=function(c){m=u(m,c);for(var h=0;h1?_-1:0),c=1;c<_;c++)l[c-1]=arguments[c];var h=d.apply(void 0,[].concat([v],l)),g=function(x){for(var C=arguments.length,I=new Array(C>1?C-1:0),P=1;P1?C-1:0),P=1;P{"use strict";r.r(S),r.d(S,{ReverseMenu:()=>O});var e=r(1131),s=r(360),n=r(5180),t=r(5237),a=r(3500),O=function(b){var y=(0,s.Oc)(),u=y.act,f=y.data,m=f.customDropoff,d=f.effectReverse,v=f.picking_dropoff_turf,_=f.reverse_option_list,l=(0,a.useTab)(),c=l[0],h=l[1];return(0,e.jsx)(n.wn,{buttons:(0,e.jsx)(n.$n,{icon:d?"toggle-on":"toggle-off",onClick:function(){u("effectReverse"),c===2&&(h(1),u("tabSwitch",{tabIndex:1}))},selected:d,tooltip:` + */function e(u,f){(f==null||f>u.length)&&(f=u.length);for(var m=0,d=new Array(f);m=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 a=function(u,f){if(f)return f(a)(u);var m,d=[],v=function(){return m},_=function(c){d.push(c)},l=function(c){m=u(m,c);for(var h=0;h1?_-1:0),c=1;c<_;c++)l[c-1]=arguments[c];var h=d.apply(void 0,[].concat([v],l)),g=function(x){for(var C=arguments.length,I=new Array(C>1?C-1:0),P=1;P1?C-1:0),P=1;P{"use strict";r.r(S),r.d(S,{ReverseMenu:()=>b});var e=r(1131),s=r(360),n=r(5180),t=r(5237),a=r(3500),b=function(O){var y=(0,s.Oc)(),u=y.act,f=y.data,m=f.customDropoff,d=f.effectReverse,v=f.picking_dropoff_turf,_=f.reverse_option_list,l=(0,a.useTab)(),c=l[0],h=l[1];return(0,e.jsx)(n.wn,{buttons:(0,e.jsx)(n.$n,{icon:d?"toggle-on":"toggle-off",onClick:function(){u("effectReverse"),c===2&&(h(1),u("tabSwitch",{tabIndex:1}))},selected:d,tooltip:` \u041D\u0435 \u043E\u0442\u043F\u0440\u0430\u0432\u043B\u044F\u0435\u0442 \u0442\u043E\u0432\u0430\u0440\u044B. \u041F\u043E\u0441\u043B\u0435 \u043F\u0440\u0438\u0437\u0435\u043C\u043B\u0435\u043D\u0438\u044F \u0432\u043E\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044F \u0432 \u0441\u0442\u0430\u0440\u0442\u043E\u0432\u044B\u0439 \u0442\u0443\u0440\u0444 (\u0438\u043B\u0438 \u0430\u043D\u0433\u0430\u0440 @@ -294,7 +294,7 @@ User Agent: `+navigator.userAgent;Byond.sendMessage({type:"log",ns:m,message:l}) \u043B\u0435\u0442\u044F\u0442 \u043F\u043E\u0441\u043B\u0435 \u043F\u0440\u0438\u0437\u0435\u043C\u043B\u0435\u043D\u0438\u044F`,tooltipPosition:"bottom-end",children:"\u0422\u043E\u0447\u043A\u0430 \u0432\u043E\u0437\u0432\u0440\u0430\u0449\u0430\u043D\u0438\u044F"}),(0,e.jsx)(n.$n,{disabled:!m,icon:"trash",inline:!0,onClick:function(){u("clearDropoffTurf"),c===2&&(h(1),u("tabSwitch",{tabIndex:1}))},tooltip:` \u041E\u0447\u0438\u0449\u0430\u0435\u0442 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C\u0441\u043A\u0443\u044E \u0442\u043E\u0447\u043A\u0443 \u0432\u043E\u0437\u0432\u0440\u0430\u0442\u0430. \u0412\u043E\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043C\u044B\u0435 \u043A\u0430\u043F\u0441\u0443\u043B\u044B \u0431\u0443\u0434\u0443\u0442 \u0432\u043C\u0435\u0441\u0442\u043E \u044D\u0442\u043E\u0433\u043E \u043E\u0442\u043F\u0440\u0430\u0432\u043B\u044F\u0442\u044C\u0441\u044F \u0432 - \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0439 \u0430\u043D\u0433\u0430\u0440.`,tooltipPosition:"bottom"})]}),(0,e.jsx)(n.BJ.Divider,{}),(0,e.jsx)(n.BJ.Item,{maxHeight:"20px",children:t.REVERSE_OPTIONS.map(function(g,p){return(0,e.jsx)(n.$n,{disabled:!d,icon:g.icon,inline:!0,onClick:function(){return u("reverseOption",{reverseOption:g.key||g.title})},selected:g.key?_[g.key]:_[g.title],tooltip:g.title},p)})})]})})}},6546:(q,S,r)=>{"use strict";r.r(S),r.d(S,{pai_sec_chem:()=>t});var e=r(1131),s=r(360),n=r(5180),t=function(a){var O=(0,s.Oc)(),b=O.act,y=O.data,u=y.app_data,f=u.holder,m=u.dead,d=u.health,v=u.current_chemicals,_=u.available_chemicals;return f?(0,e.jsx)(n.az,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Status",children:m?(0,e.jsx)(n.az,{bold:!0,color:"red",children:"Dead"}):(0,e.jsx)(n.az,{bold:!0,color:"green",children:"Alive"})}),(0,e.jsx)(n.Ki.Item,{label:"Health",children:(0,e.jsx)(n.z2,{minValue:0,maxValue:1,value:d/100,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.jsx)(n.Ki.Item,{label:"Current Chemicals",children:v}),(0,e.jsxs)(n.Ki.Item,{label:"Available Chemicals",children:[_.map(function(l){return(0,e.jsx)(n.$n,{tooltip:l.desc,disabled:l.cost>v,onClick:function(){return b("secreteChemicals",{key:l.key})},children:l.name+" ("+l.cost+")"},l.key)}),_.length===0&&"No chemicals available!"]})]})}):(0,e.jsx)(n.az,{color:"red",children:"Error: No biological host found."})}},6587:(q,S,r)=>{"use strict";r.d(S,{A$:()=>p,Lo:()=>n});var e=r(360);/** + \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0439 \u0430\u043D\u0433\u0430\u0440.`,tooltipPosition:"bottom"})]}),(0,e.jsx)(n.BJ.Divider,{}),(0,e.jsx)(n.BJ.Item,{maxHeight:"20px",children:t.REVERSE_OPTIONS.map(function(g,p){return(0,e.jsx)(n.$n,{disabled:!d,icon:g.icon,inline:!0,onClick:function(){return u("reverseOption",{reverseOption:g.key||g.title})},selected:g.key?_[g.key]:_[g.title],tooltip:g.title},p)})})]})})}},6546:(q,S,r)=>{"use strict";r.r(S),r.d(S,{pai_sec_chem:()=>t});var e=r(1131),s=r(360),n=r(5180),t=function(a){var b=(0,s.Oc)(),O=b.act,y=b.data,u=y.app_data,f=u.holder,m=u.dead,d=u.health,v=u.current_chemicals,_=u.available_chemicals;return f?(0,e.jsx)(n.az,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Status",children:m?(0,e.jsx)(n.az,{bold:!0,color:"red",children:"Dead"}):(0,e.jsx)(n.az,{bold:!0,color:"green",children:"Alive"})}),(0,e.jsx)(n.Ki.Item,{label:"Health",children:(0,e.jsx)(n.z2,{minValue:0,maxValue:1,value:d/100,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.jsx)(n.Ki.Item,{label:"Current Chemicals",children:v}),(0,e.jsxs)(n.Ki.Item,{label:"Available Chemicals",children:[_.map(function(l){return(0,e.jsx)(n.$n,{tooltip:l.desc,disabled:l.cost>v,onClick:function(){return O("secreteChemicals",{key:l.key})},children:l.name+" ("+l.cost+")"},l.key)}),_.length===0&&"No chemicals available!"]})]})}):(0,e.jsx)(n.az,{color:"red",children:"Error: No biological host found."})}},6587:(q,S,r)=>{"use strict";r.d(S,{A$:()=>p,Lo:()=>n});var e=r(360);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT @@ -302,7 +302,7 @@ User Agent: `+navigator.userAgent;Byond.sendMessage({type:"log",ns:m,message:l}) * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var n=function(){return(0,e.d4)(s)},t=r(1131),a=r(7003),O=r(5180),b=r(3521);/** + */var n=function(){return(0,e.d4)(s)},t=r(1131),a=r(7003),b=r(5180),O=r(3521);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT @@ -322,7 +322,7 @@ User Agent: `+navigator.userAgent;Byond.sendMessage({type:"log",ns:m,message:l}) * @file * @copyright 2020 Aleksej Komarov * @license MIT - */},6591:(q,S,r)=>{"use strict";r.r(S),r.d(S,{CircuitAdminPanel:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(O){var b=(0,s.Oc)(),y=b.act,u=b.data;return(0,e.jsx)(t.p8,{title:"\u0410\u0434\u043C\u0438\u043D-\u043F\u0430\u043D\u0435\u043B\u044C \u0438\u043D\u0442\u0435\u0433\u0440\u0430\u043B\u044C\u043D\u044B\u0445 \u0441\u0445\u0435\u043C",width:1200,height:500,children:(0,e.jsx)(t.p8.Content,{children:(0,e.jsx)(n.BJ,{vertical:!0,children:(0,e.jsx)(n.BJ.Item,{children:(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{children:"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435 \u0441\u0445\u0435\u043C\u044B"}),(0,e.jsx)(n.XI.Cell,{children:"\u0421\u043E\u0437\u0434\u0430\u0442\u0435\u043B\u044C"}),(0,e.jsx)(n.XI.Cell,{children:"\u041E\u043F\u0446\u0438\u0438"})]}),u.circuits.map(function(f){var m=function(d){return function(){y(d,{circuit:f.ref})}};return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{children:f.name}),(0,e.jsx)(n.XI.Cell,{children:f.creator}),(0,e.jsxs)(n.XI.Cell,{children:[(0,e.jsx)(n.$n,{onClick:m("follow_circuit"),children:"\u0421\u043B\u0435\u0434\u043E\u0432\u0430\u0442\u044C"}),(0,e.jsx)(n.$n,{onClick:m("open_circuit"),children:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C"}),(0,e.jsx)(n.$n,{onClick:m("vv_circuit"),children:"VV"}),(0,e.jsx)(n.$n,{onClick:m("save_circuit"),children:"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C"}),(0,e.jsx)(n.$n,{onClick:m("duplicate_circuit"),children:"\u0421\u043E\u0437\u0434\u0430\u0442\u044C \u043A\u043E\u043F\u0438\u044E"}),!!f.has_inserter&&(0,e.jsx)(n.$n,{onClick:m("open_player_panel"),children:"\u041F\u0430\u043D\u0435\u043B\u044C \u0438\u0433\u0440\u043E\u043A\u0430"})]})]},f.ref)})]})})})})})}},6622:(q,S,r)=>{"use strict";r.r(S),r.d(S,{AtmosTemperatureGate:()=>a});var e=r(1131),s=r(5180),n=r(360),t=r(3521),a=function(O){var b=(0,n.Oc)(),y=b.act,u=b.data,f=u.on,m=u.temperature,d=u.max_temp,v=u.temp_unit,_=u.step,l=u.inverted;return(0,e.jsx)(t.p8,{width:330,height:130,children:(0,e.jsx)(t.p8.Content,{children:(0,e.jsx)(s.wn,{children:(0,e.jsxs)(s.Ki,{children:[(0,e.jsx)(s.Ki.Item,{label:"Power",children:(0,e.jsx)(s.$n,{icon:"power-off",color:f?null:"red",selected:f,onClick:function(){return y("power")},children:f?"On":"Off"})}),(0,e.jsx)(s.Ki.Item,{label:"Inverted",children:(0,e.jsx)(s.$n,{icon:l?"arrow-up":"arrow-down",color:l?null:"red",selected:l,onClick:function(){return y("inverted")},children:l?"Yes":"No"})}),(0,e.jsxs)(s.Ki.Item,{label:"Temperature",children:[(0,e.jsx)(s.$n,{icon:"fast-backward",textAlign:"center",disabled:m===0,width:2.2,onClick:function(){return y("min_temp")}}),(0,e.jsx)(s.Q7,{animated:!0,unit:v,width:6.1,lineHeight:1.5,step:_,minValue:0,maxValue:d,value:m,onChange:function(c){return y("custom_temperature",{temperature:c})}}),(0,e.jsx)(s.$n,{icon:"fast-forward",textAlign:"center",disabled:m===d,width:2.2,onClick:function(){return y("max_temp")}})]})]})})})})}},6642:(q,S,r)=>{"use strict";r.r(S),r.d(S,{SeedExtractor:()=>d});var e=r(1131),s=r(185),n=r(360),t=r(7003),a=r(5180),O=r(3521),b=r(538);function y(j,x){(x==null||x>j.length)&&(x=j.length);for(var C=0,I=new Array(x);C=j.length?{done:!0}:{done:!1,value:j[I++]}}}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 d=function(j){var x=(0,t.useState)(""),C=x[0],I=x[1],P=(0,t.useState)(1),M=P[0],B=P[1];return(0,e.jsxs)(O.p8,{theme:"hydroponics",width:800,height:400,children:[(0,e.jsx)(b.ComplexModal,{}),(0,e.jsx)(O.p8.Content,{children:(0,e.jsxs)(a.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(p,{setSearchText:I,setVendAmount:B})}),(0,e.jsx)(h,{searchText:C,vendAmount:M})]})})]})},v=function(j,x){return j===x},_=function(j,x){return j>=x},l=function(j,x){return j<=x},c=function(j){for(var x=function(){var w=M.value,T=w.split(":");if(T.length===0)return"continue";if(T.length===1)return I.push(function(U){return(U.name+" ("+U.variant+")").toLocaleLowerCase().includes(T[0].toLocaleLowerCase())}),"continue";if(T.length>2)return{v:function(U){return!1}};var K=void 0,R=v;if(T[1][T[1].length-1]==="-"?(R=l,K=Number(T[1].substring(0,T[1].length-1))):T[1][T[1].length-1]==="+"?(R=_,K=Number(T[1].substring(0,T[1].length-1))):K=Number(T[1]),isNaN(K))return{v:function(U){return!1}};switch(T[0].toLocaleLowerCase()){case"l":case"life":case"lifespan":I.push(function(U){return R(U.lifespan,K)});break;case"e":case"end":case"endurance":I.push(function(U){return R(U.endurance,K)});break;case"m":case"mat":case"maturation":I.push(function(U){return R(U.maturation,K)});break;case"pr":case"prod":case"production":I.push(function(U){return R(U.production,K)});break;case"y":case"yield":I.push(function(U){return R(U.yield,K)});break;case"po":case"pot":case"potency":I.push(function(U){return R(U.potency,K)});break;case"s":case"stock":case"c":case"count":case"a":case"amount":I.push(function(U){return R(U.amount,K)});break;default:return{v:function(U){return!1}}}},C=j.split(" "),I=[],P=m(C),M;!(M=P()).done;){var B=x();if(u(B)==="object")return B.v}return function(w){for(var T=m(I),K;!(K=T()).done;){var R=K.value;if(!R(w))return!1}return!0}},h=function(j){var x=(0,n.Oc)(),C=x.act,I=x.data,P=I.seeds,M=(0,t.useState)("name"),B=M[0],w=M[1],T=(0,t.useState)(!0),K=T[0],R=T[1],U=j.searchText,F=j.vendAmount;return(0,e.jsx)(a.BJ.Item,{grow:!0,mt:.5,children:(0,e.jsx)(a.wn,{fill:!0,scrollable:!0,children:(0,e.jsxs)(a.XI,{className:"SeedExtractor__list",children:[(0,e.jsxs)(a.XI.Row,{bold:!0,children:[(0,e.jsx)(g,{id:"name",sortId:B,setSortId:w,sortOrder:K,setSortOrder:R,children:"Name"}),(0,e.jsx)(g,{id:"lifespan",sortId:B,setSortId:w,sortOrder:K,setSortOrder:R,children:"Lifespan"}),(0,e.jsx)(g,{id:"endurance",sortId:B,setSortId:w,sortOrder:K,setSortOrder:R,children:"Endurance"}),(0,e.jsx)(g,{id:"maturation",sortId:B,setSortId:w,sortOrder:K,setSortOrder:R,children:"Maturation"}),(0,e.jsx)(g,{id:"production",sortId:B,setSortId:w,sortOrder:K,setSortOrder:R,children:"Production"}),(0,e.jsx)(g,{id:"yield",sortId:B,setSortId:w,sortOrder:K,setSortOrder:R,children:"Yield"}),(0,e.jsx)(g,{id:"potency",sortId:B,setSortId:w,sortOrder:K,setSortOrder:R,children:"Potency"}),(0,e.jsx)(g,{id:"amount",sortId:B,setSortId:w,sortOrder:K,setSortOrder:R,children:"Stock"})]}),P?P.filter(c(U)).sort(function($,W){var N=K?1:-1;return typeof $[B]=="number"?($[B]-W[B])*N:$[B].localeCompare(W[B])*N}).map(function($){return(0,e.jsxs)(a.XI.Row,{onClick:function(){return C("vend",{seed_id:$.id,seed_variant:$.variant,vend_amount:F})},children:[(0,e.jsxs)(a.XI.Cell,{children:[(0,e.jsx)(a._V,{className:(0,s.Ly)(["seeds32x32",$.image]),style:{verticalAlign:"middle",width:"32px",margin:"0px",marginLeft:"0px"}}),$.name]}),(0,e.jsx)(a.XI.Cell,{children:$.lifespan}),(0,e.jsx)(a.XI.Cell,{children:$.endurance}),(0,e.jsx)(a.XI.Cell,{children:$.maturation}),(0,e.jsx)(a.XI.Cell,{children:$.production}),(0,e.jsx)(a.XI.Cell,{children:$.yield}),(0,e.jsx)(a.XI.Cell,{children:$.potency}),(0,e.jsx)(a.XI.Cell,{children:$.amount})]},$.id)}):"No seeds present."]})})})},g=function(j){var x=j.sortId,C=j.setSortId,I=j.sortOrder,P=j.setSortOrder,M=j.id,B=j.children;return(0,e.jsx)(a.XI.Cell,{children:(0,e.jsxs)(a.$n,{color:x!==M&&"transparent",fluid:!0,onClick:function(){x===M?P(!I):(C(M),P(!0))},children:[B,x===M&&(0,e.jsx)(a.In,{name:I?"sort-up":"sort-down",ml:"0.25rem;"})]})})},p=function(j){var x=j.setSearchText,C=j.setVendAmount;return(0,e.jsxs)(a.BJ,{fill:!0,children:[(0,e.jsx)(a.BJ.Item,{grow:!0,children:(0,e.jsx)(a.pd,{placeholder:"Search by name, variant, potency:70+, production:3-, ...",fluid:!0,expensive:!0,onChange:x})}),(0,e.jsxs)(a.BJ.Item,{children:["Vend amount:",(0,e.jsx)(a.pd,{placeholder:"1",onChange:function(I){return C(Number(I)>=1?Number(I):1)}})]})]})}},6739:(q,S,r)=>{"use strict";r.r(S),r.d(S,{PlayingCard:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(O){var b=(0,s.Oc)(),y=b.act,u=b.data;return(0,e.jsx)(t.p8,{width:250,height:350,theme:"cardtable",title:"\u041A\u0430\u0440\u0442\u044B \u0432 \u0440\u0443\u043A\u0435",children:(0,e.jsxs)(t.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{children:(0,e.jsx)(n.BJ,{vertical:!0,children:u.cards.map(function(f,m){return(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.$n,{width:"100%",onClick:function(){return y("pick",{card:f})},children:f})},m)})})}),(0,e.jsx)(n.az,{children:(0,e.jsx)(n.$n,{color:"good",onClick:function(){return y("turn")},children:"\u041F\u0435\u0440\u0435\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u043A\u0430\u0440\u0442\u044B"})})]})})}},6762:(q,S,r)=>{"use strict";r.r(S),r.d(S,{pda_request_console:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(5161),a=function(O){var b=(0,s.Oc)(),y=b.act,u=b.data,f=u.screen,m=u.selected_console,d=u.consoles_data;return m?(0,e.jsxs)(n.az,{children:[(t.pages[f]||t.pages.default)(),f===0?(0,e.jsx)(n.$n,{icon:"arrow-left",onClick:function(){return y("back")},children:"Back to console selection"}):""]}):(0,e.jsx)(n.az,{children:(0,e.jsx)(n.BJ,{vertical:!0,children:d.map(function(v){return(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.BJ,{children:(0,e.jsxs)(n.BJ.Item,{children:[(0,e.jsx)(n.$n,{color:v.priority===1?"green":v.priority===2?"red":"default",onClick:function(){return y("select",{name:v.name})},children:v.name}),(0,e.jsx)(n.$n,{icon:v.muted?"volume-mute":"volume-up",onClick:function(){return y("mute",{name:v.name})}})]})})},v.name)})})})}},6788:(q,S,r)=>{"use strict";r.r(S),r.d(S,{BlueSpaceArtilleryControl:()=>b,BuildBSAPanel:()=>m,ControlBSAPanel:()=>u});var e=r(1131),s=r(360),n=r(9845),t=r(5180),a=r(3521),O=r(538),b=function(d){var v=(0,s.Oc)().data;return v.connected?(0,e.jsx)(u,{}):(0,e.jsx)(m,{})},y=function(d){return d.power?d.reload_ready?d.calibrated?d.calibrate_ready?{color:"green",text:"\u0413\u043E\u0442\u043E\u0432 \u043A \u0432\u044B\u0441\u0442\u0440\u0435\u043B\u0443"}:{color:"orange",text:"\u041D\u0430\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043D\u0430 \u0446\u0435\u043B\u044C"}:{color:"red",text:"\u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044F \u043D\u0430\u0432\u043E\u0434\u043A\u0430"}:{color:"orange",text:"\u0417\u0430\u0440\u044F\u0434\u043A\u0430 "+d.reloadtime_text}:{color:"red",text:"\u041D\u0435\u0442 \u043F\u0438\u0442\u0430\u043D\u0438\u044F"}},u=function(d){var v=(0,s.Oc)(),_=v.act,l=v.data,c=l.mapRef,h;l.calibrate_ready||(h=(0,e.jsx)(f,{duration:l.calibrate_duration}));var g=y(l);return(0,e.jsx)(a.p8,{width:600,height:800,children:(0,e.jsxs)(a.p8.Content,{children:[(0,e.jsx)(O.ComplexModal,{}),(0,e.jsxs)(t.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(t.BJ.Item,{grow:!0,children:(0,e.jsx)(t.D1,{height:"100%",mb:"30px",width:"100%",params:{id:c,type:"map"}})}),(0,e.jsx)(t.BJ.Item,{height:"162px",children:(0,e.jsxs)(t.az,{position:"relative",height:"100%",children:[h,(0,e.jsx)(t.wn,{title:"\u0423\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435",children:(0,e.jsxs)(t.BJ,{direction:"horizontal",fill:!0,children:[(0,e.jsx)(t.BJ.Item,{basis:"50%",grow:!0,children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"\u0421\u0442\u0430\u0442\u0443\u0441",color:g.color,children:g.text}),(0,e.jsx)(t.Ki.Item,{label:"\u0420\u0435\u0436\u0438\u043C \u0441\u0442\u0440\u0435\u043B\u044C\u0431\u044B",children:(0,e.jsx)(t.ms,{options:l.mode_options,selected:l.mode,onSelected:function(p){return _("select_mode",{mode:p})}})}),(0,e.jsx)(t.Ki.Item,{label:"\u0421\u0442\u0440\u0435\u043B\u044C\u0431\u0430",children:(0,e.jsx)(t.$n,{icon:"skull",color:l.ready?"red":"grey",width:"180px",align:"center",onClick:function(){return _("fire")},children:"\u041E\u0413\u041E\u041D\u042C!"})})]})}),(0,e.jsx)(t.BJ.Item,{basis:"50%",grow:!0,children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"\u041D\u0430\u0432\u043E\u0434\u043A\u0430",children:(0,e.jsx)(t.$n,{icon:"crosshairs",onClick:function(){return _("recalibrate")},children:l.target?l.target:"\u041E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442"})}),(0,e.jsx)(t.Ki.Item,{label:"\u041A\u043E\u043E\u0440\u0434\u0438\u043D\u0430\u0442\u044B",children:l.target?l.target_coord:"\u041D\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E"}),(0,e.jsxs)(t.Ki.Item,{label:"\u041A\u043E\u0440\u0440\u0435\u043A\u0446\u0438\u044F \u043F\u043E \u043E\u0441\u0438 \u0425",children:[(0,e.jsx)(t.$n,{icon:"angle-left",onClick:function(){return _("aim",{axis:"x",value:l.correction_x-1})}}),(0,e.jsx)(t.Q7,{animated:!0,width:"4em",step:1,minValue:-15,maxValue:15,value:l.correction_x,onChange:function(p){return _("aim",{axis:"x",value:p})}}),(0,e.jsx)(t.$n,{icon:"angle-right",onClick:function(){return _("aim",{axis:"x",value:l.correction_x+1})}})]}),(0,e.jsxs)(t.Ki.Item,{label:"\u041A\u043E\u0440\u0440\u0435\u043A\u0446\u0438\u044F \u043F\u043E \u043E\u0441\u0438 Y",children:[(0,e.jsx)(t.$n,{icon:"angle-left",onClick:function(){return _("aim",{axis:"y",value:l.correction_y-1})}}),(0,e.jsx)(t.Q7,{animated:!0,width:"4em",step:1,minValue:-15,maxValue:15,value:l.correction_y,onChange:function(p){return _("aim",{axis:"y",value:p})}}),(0,e.jsx)(t.$n,{icon:"angle-right",mb:"100px",onClick:function(){return _("aim",{axis:"y",value:l.correction_y+1})}})]})]})})]})})]})})]})]})})},f=function(d){return(0,e.jsxs)(t.Rr,{textAlign:"center",className:"absolute fill zIndex",children:[(0,e.jsx)(t.In,{name:"spinner",size:5,spin:!0}),(0,e.jsx)("br",{}),(0,e.jsx)(t.az,{color:"average",children:(0,e.jsxs)("h1",{children:[(0,e.jsx)(t.In,{name:"gears"}),"\xA0\u041D\u0430\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043D\u0430 \u0446\u0435\u043B\u044C\xA0",(0,e.jsx)(t.In,{name:"gears"})]})}),(0,e.jsx)(t.az,{color:"label",children:(0,e.jsxs)("h3",{children:["\u0412 \u0442\u0435\u0447\u0435\u043D\u0438\u0438 ",d.duration," \u0441\u0435\u043A\u0443\u043D\u0434",(0,n.bl)(d.duration,"\u044B","","")]})})]})},m=function(d){var v=(0,s.Oc)(),_=v.act,l=v.data;return(0,e.jsx)(a.p8,{width:350,height:150,children:(0,e.jsx)(a.p8.Content,{children:(0,e.jsx)(t.BJ,{fill:!0,vertical:!0,children:(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.wn,{title:"\u041F\u043E\u0441\u0442\u0440\u043E\u0439\u043A\u0430 \u043E\u0440\u0443\u0434\u0438\u044F",children:(0,e.jsxs)(t.Ki,{children:[!!l.notice&&(0,e.jsx)(t.Ki.Item,{label:"\u041E\u0448\u0438\u0431\u043A\u0430",color:"red",children:l.notice}),(0,e.jsx)(t.Ki.Item,{label:"\u0421\u0442\u0440\u043E\u0438\u0442\u0435\u043B\u044C\u0441\u0442\u0432\u043E",children:(0,e.jsx)(t.$n,{icon:"wrench",onClick:function(){return _("build")},children:"\u0417\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044C \u043F\u043E\u0441\u0442\u0440\u043E\u0439\u043A\u0443"})})]})})})})})})}},6794:(q,S,r)=>{"use strict";r.r(S),r.d(S,{StationAlertConsole:()=>a,StationAlertConsoleContent:()=>O});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(){return(0,e.jsx)(t.p8,{width:325,height:500,children:(0,e.jsx)(t.p8.Content,{scrollable:!0,children:(0,e.jsx)(O,{})})})},O=function(b){var y=(0,s.Oc)().data,u=y.alarms||{};return Object.keys(u).map(function(f){var m,d;return(0,e.jsx)(n.wn,{title:""+f+" Alarms",children:(0,e.jsx)("ul",{children:((m=u[f])==null?void 0:m.length)===0?(0,e.jsx)("li",{className:"color-good",children:"Systems Nominal"}):(d=u[f])==null?void 0:d.map(function(v){return(0,e.jsx)("li",{className:"color-average",children:v},v)})})},f)})}},6834:(q,S,r)=>{"use strict";r.r(S),r.d(S,{PresetsPage:()=>v});var e=r(1131),s=r(8523),n=function(){var _=new Date().getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(l){var c=(_+Math.random()*16)%16|0;return _=Math.floor(_/16),(l==="x"?c:c&3|8).toString(16)})},t=r(360),a=r(7003),O=r(5180),b=r(5237);function y(_,l,c,h,g,p,j){try{var x=_[p](j),C=x.value}catch(I){c(I);return}x.done?l(C):Promise.resolve(C).then(h,g)}function u(_){return function(){var l=this,c=arguments;return new Promise(function(h,g){var p=_.apply(l,c);function j(C){y(p,h,g,j,x,"next",C)}function x(C){y(p,h,g,j,x,"throw",C)}j(void 0)})}}function f(_,l){var c,h,g,p={label:0,sent:function(){if(g[0]&1)throw g[1];return g[1]},trys:[],ops:[]},j=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return j.next=x(0),j.throw=x(1),j.return=x(2),typeof Symbol=="function"&&(j[Symbol.iterator]=function(){return this}),j;function x(I){return function(P){return C([I,P])}}function C(I){if(c)throw new TypeError("Generator is already executing.");for(;j&&(j=0,I[0]&&(p=0)),p;)try{if(c=1,h&&(g=I[0]&2?h.return:I[0]?h.throw||((g=h.return)&&g.call(h),0):h.next)&&!(g=g.call(h,I[1])).done)return g;switch(h=0,g&&(I=[I[0]&2,g.value]),I[0]){case 0:case 1:g=I;break;case 4:return p.label++,{value:I[1],done:!1};case 5:p.label++,h=I[1],I=[0];continue;case 7:I=p.ops.pop(),p.trys.pop();continue;default:if(g=p.trys,!(g=g.length>0&&g[g.length-1])&&(I[0]===6||I[0]===2)){p=0;continue}if(I[0]===3&&(!g||I[1]>g[0]&&I[1]{"use strict";r.r(S),r.d(S,{ControllerContent:()=>d,ControllerOverview:()=>m});var e=r(1131),s=r(7003),n=r(5180),t=r(3521),a=r(2335),O=r(1730),b=r(4125),y=r(4090),u=r(3082),f=r(7216),m=function(v){return(0,e.jsx)(t.p8,{title:"Controller Overview",height:600,width:500,children:(0,e.jsx)(t.p8.Content,{children:(0,e.jsx)(d,{})})})},d=function(v){var _=(0,s.useReducer)(O.filterReducer,{ascending:!0,inactive:!0,query:"",smallValues:!1,sortType:f.SortType.Name}),l=_[0],c=_[1],h=(0,s.useState)(),g=h[0],p=h[1],j=(a.SORTING_TYPES==null?void 0:a.SORTING_TYPES[l.sortType])||a.SORTING_TYPES[0],x=j.label,C=j.inDeciseconds,I=function(P){var M={sortType:a.SORTING_TYPES.findIndex(function(w){return w.label===P})};if(M.sortType!==void 0){var B=a.SORTING_TYPES[M.sortType].inDeciseconds;M.ascending=!B,M.smallValues=B,c({type:O.FilterAction.Update,payload:M})}};return(0,e.jsxs)(n.BJ,{fill:!0,vertical:!0,children:[g&&(0,e.jsx)(y.SubsystemDialog,{onClose:function(){return p(void 0)},subsystem:g}),(0,e.jsx)(n.BJ.Item,{height:"15%",children:(0,e.jsx)(b.OverviewSection,{})}),(0,e.jsx)(n.BJ.Item,{height:"12%",children:(0,e.jsx)(n.wn,{fill:!0,children:(0,e.jsxs)(n.BJ,{justify:"space-between",children:[(0,e.jsx)(n.BJ.Item,{grow:!0,mb:4,children:(0,e.jsxs)(n.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(n.BJ.Item,{height:"50%",children:(0,e.jsx)(n.pd,{onChange:function(P){return c({type:O.FilterAction.Query,payload:P})},placeholder:"By name",value:l.query,width:"85%"})}),(0,e.jsxs)(n.BJ.Item,{children:[(0,e.jsx)(n.$n,{disabled:!C,selected:l.smallValues,tooltip:"Hide values under 1",icon:l.smallValues?"eye-slash":"eye",onClick:function(){return c({type:O.FilterAction.SmallValues,payload:!l.smallValues})},children:"Small"}),(0,e.jsx)(n.$n,{icon:l.inactive?"eye-slash":"eye",tooltip:"Hide offline/paused",selected:l.inactive,onClick:function(){return c({type:O.FilterAction.Inactive,payload:!l.inactive})},children:"Inactive"})]})]})}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsxs)(n.BJ,{vertical:!0,children:[(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.ms,{options:a.SORTING_TYPES.map(function(P){return P.label}),selected:x,displayText:x,onSelected:I})}),(0,e.jsxs)(n.BJ.Item,{children:[(0,e.jsx)(n.$n,{selected:l.ascending,onClick:function(){return c({type:O.FilterAction.Ascending,payload:!l.ascending})},children:"Ascending"}),(0,e.jsx)(n.$n,{selected:!l.ascending,onClick:function(){return c({type:O.FilterAction.Ascending,payload:!l.ascending})},children:"Descending"})]})]})})]})})}),(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(u.SubsystemViews,{setSelected:p,filterOpts:l})})]})}},6859:(q,S,r)=>{"use strict";r.r(S),r.d(S,{CodexGigas:()=>b});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(y){var u=y.act,f=y.data,m=f.name,d=f.currentSection,v=f.prefixes,_=f.titles,l=f.names,c=f.suffixes;return(0,e.jsxs)(n.wn,{children:[(0,e.jsx)("div",{className:"CodexGigas__final-name-container",children:d!==1?(0,e.jsx)("p",{className:"CodexGigas__final-name",children:m}):(0,e.jsx)("p",{className:"CodexGigas__italic-text",children:"\u0418\u0437\u0443\u0447\u0430\u044F \u044D\u0442\u0443 \u043A\u043D\u0438\u0433\u0443, \u0432\u044B \u043F\u043E\u0437\u043D\u0430\u0451\u0442\u0435 \u0441\u043B\u0430\u0431\u043E\u0441\u0442\u0438 \u0434\u044C\u044F\u0432\u043E\u043B\u0430, \u0435\u0441\u043B\u0438 \u043A\u043E\u043D\u0435\u0447\u043D\u043E \u0432\u0430\u043C \u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E \u0435\u0433\u043E \u043D\u0430\u0441\u0442\u043E\u044F\u0449\u0435\u0435 \u0438\u043C\u044F... \u043D\u043E \u0431\u0443\u0434\u044C\u0442\u0435 \u043E\u0441\u0442\u043E\u0440\u043E\u0436\u0435\u043D\u044B, \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0435 \u0447\u0442\u0435\u043D\u0438\u0435 \u043C\u043E\u0436\u0435\u0442 \u0438\u043C\u0435\u0442\u044C \u0441\u0435\u0440\u044C\u0435\u0437\u043D\u044B\u0435 \u043F\u043E\u0441\u043B\u0435\u0434\u0441\u0442\u0432\u0438\u044F."})}),(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"\u041F\u0440\u0435\u0444\u0438\u043A\u0441",children:v.map(function(h){return(0,e.jsx)(n.$n,{disabled:d!==1,onClick:function(){return u(h)},className:"CodexGigas__button",children:h},h.toLowerCase())})}),(0,e.jsx)(n.Ki.Item,{label:"\u0417\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A",children:_.map(function(h){return(0,e.jsx)(n.$n,{disabled:d>2,onClick:function(){return u(h)},className:"CodexGigas__button",children:h},h.toLowerCase())})}),(0,e.jsx)(n.Ki.Item,{label:"\u0418\u043C\u044F",children:l.map(function(h){return(0,e.jsx)(n.$n,{disabled:d>4,onClick:function(){return u(h)},className:"CodexGigas__button",children:h},h.toLowerCase())})}),(0,e.jsx)(n.Ki.Item,{label:"\u0421\u0443\u0444\u0444\u0438\u043A\u0441",children:c.map(function(h){return(0,e.jsx)(n.$n,{disabled:d!==4,onClick:function(){return u(h)},className:"CodexGigas__button",children:h},h.toLowerCase())})}),(0,e.jsxs)(n.Ki.Item,{children:[(0,e.jsx)(n.$n,{disabled:d<4,onClick:function(){return u("search")},className:"CodexGigas__search-button",children:"\u041F\u043E\u0438\u0441\u043A"}),(0,e.jsx)(n.$n,{disabled:d===1,onClick:function(){return u("clear")},className:"CodexGigas__search-button",children:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C"})]})]})]})},O=function(y){var u=y.act,f=y.data,m=f.devilName,d=f.ban,v=f.bane,_=f.obligation,l=f.banish;return(0,e.jsx)(n.wn,{title:(0,e.jsxs)("span",{className:"CodexGigas__title",children:["\u0418\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F \u043E ",m]}),children:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)("p",{className:"CodexGigas__info-text",children:["\u0417\u0430\u043F\u0440\u0435\u0442: ",d]}),(0,e.jsxs)("p",{className:"CodexGigas__info-text",children:["\u0421\u043B\u0430\u0431\u043E\u0441\u0442\u044C: ",v]}),(0,e.jsxs)("p",{className:"CodexGigas__info-text",children:["\u041E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u044C\u0441\u0442\u0432\u043E: ",_]}),(0,e.jsxs)("p",{className:"CodexGigas__info-text",children:["\u0420\u0438\u0442\u0443\u0430\u043B \u0438\u0437\u0433\u043D\u0430\u043D\u0438\u044F: ",l]}),(0,e.jsx)("div",{className:"CodexGigas__centered",children:(0,e.jsx)(n.$n,{onClick:function(){return u("reset")},className:"CodexGigas__button",children:"\u0418\u0441\u043A\u0430\u0442\u044C \u0437\u0430\u043D\u043E\u0432\u043E"})})]})})},b=function(y){var u=(0,s.Oc)(),f=u.act,m=u.data;return(0,e.jsx)(t.p8,{theme:"infernal",children:(0,e.jsx)(t.p8.Content,{className:"CodexGigas__background",children:m.hasDevilInfo?(0,e.jsx)(O,{act:f,data:m}):(0,e.jsx)(a,{act:f,data:m})})})}},6898:(q,S)=>{"use strict";/** + */},6591:(q,S,r)=>{"use strict";r.r(S),r.d(S,{CircuitAdminPanel:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(b){var O=(0,s.Oc)(),y=O.act,u=O.data;return(0,e.jsx)(t.p8,{title:"\u0410\u0434\u043C\u0438\u043D-\u043F\u0430\u043D\u0435\u043B\u044C \u0438\u043D\u0442\u0435\u0433\u0440\u0430\u043B\u044C\u043D\u044B\u0445 \u0441\u0445\u0435\u043C",width:1200,height:500,children:(0,e.jsx)(t.p8.Content,{children:(0,e.jsx)(n.BJ,{vertical:!0,children:(0,e.jsx)(n.BJ.Item,{children:(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{children:"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435 \u0441\u0445\u0435\u043C\u044B"}),(0,e.jsx)(n.XI.Cell,{children:"\u0421\u043E\u0437\u0434\u0430\u0442\u0435\u043B\u044C"}),(0,e.jsx)(n.XI.Cell,{children:"\u041E\u043F\u0446\u0438\u0438"})]}),u.circuits.map(function(f){var m=function(d){return function(){y(d,{circuit:f.ref})}};return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{children:f.name}),(0,e.jsx)(n.XI.Cell,{children:f.creator}),(0,e.jsxs)(n.XI.Cell,{children:[(0,e.jsx)(n.$n,{onClick:m("follow_circuit"),children:"\u0421\u043B\u0435\u0434\u043E\u0432\u0430\u0442\u044C"}),(0,e.jsx)(n.$n,{onClick:m("open_circuit"),children:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C"}),(0,e.jsx)(n.$n,{onClick:m("vv_circuit"),children:"VV"}),(0,e.jsx)(n.$n,{onClick:m("save_circuit"),children:"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C"}),(0,e.jsx)(n.$n,{onClick:m("duplicate_circuit"),children:"\u0421\u043E\u0437\u0434\u0430\u0442\u044C \u043A\u043E\u043F\u0438\u044E"}),!!f.has_inserter&&(0,e.jsx)(n.$n,{onClick:m("open_player_panel"),children:"\u041F\u0430\u043D\u0435\u043B\u044C \u0438\u0433\u0440\u043E\u043A\u0430"})]})]},f.ref)})]})})})})})}},6622:(q,S,r)=>{"use strict";r.r(S),r.d(S,{AtmosTemperatureGate:()=>a});var e=r(1131),s=r(5180),n=r(360),t=r(3521),a=function(b){var O=(0,n.Oc)(),y=O.act,u=O.data,f=u.on,m=u.temperature,d=u.max_temp,v=u.temp_unit,_=u.step,l=u.inverted;return(0,e.jsx)(t.p8,{width:330,height:130,children:(0,e.jsx)(t.p8.Content,{children:(0,e.jsx)(s.wn,{children:(0,e.jsxs)(s.Ki,{children:[(0,e.jsx)(s.Ki.Item,{label:"Power",children:(0,e.jsx)(s.$n,{icon:"power-off",color:f?null:"red",selected:f,onClick:function(){return y("power")},children:f?"On":"Off"})}),(0,e.jsx)(s.Ki.Item,{label:"Inverted",children:(0,e.jsx)(s.$n,{icon:l?"arrow-up":"arrow-down",color:l?null:"red",selected:l,onClick:function(){return y("inverted")},children:l?"Yes":"No"})}),(0,e.jsxs)(s.Ki.Item,{label:"Temperature",children:[(0,e.jsx)(s.$n,{icon:"fast-backward",textAlign:"center",disabled:m===0,width:2.2,onClick:function(){return y("min_temp")}}),(0,e.jsx)(s.Q7,{animated:!0,unit:v,width:6.1,lineHeight:1.5,step:_,minValue:0,maxValue:d,value:m,onChange:function(c){return y("custom_temperature",{temperature:c})}}),(0,e.jsx)(s.$n,{icon:"fast-forward",textAlign:"center",disabled:m===d,width:2.2,onClick:function(){return y("max_temp")}})]})]})})})})}},6642:(q,S,r)=>{"use strict";r.r(S),r.d(S,{SeedExtractor:()=>d});var e=r(1131),s=r(185),n=r(360),t=r(7003),a=r(5180),b=r(3521),O=r(538);function y(j,x){(x==null||x>j.length)&&(x=j.length);for(var C=0,I=new Array(x);C=j.length?{done:!0}:{done:!1,value:j[I++]}}}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 d=function(j){var x=(0,t.useState)(""),C=x[0],I=x[1],P=(0,t.useState)(1),M=P[0],B=P[1];return(0,e.jsxs)(b.p8,{theme:"hydroponics",width:800,height:400,children:[(0,e.jsx)(O.ComplexModal,{}),(0,e.jsx)(b.p8.Content,{children:(0,e.jsxs)(a.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(p,{setSearchText:I,setVendAmount:B})}),(0,e.jsx)(h,{searchText:C,vendAmount:M})]})})]})},v=function(j,x){return j===x},_=function(j,x){return j>=x},l=function(j,x){return j<=x},c=function(j){for(var x=function(){var w=M.value,T=w.split(":");if(T.length===0)return"continue";if(T.length===1)return I.push(function(U){return(U.name+" ("+U.variant+")").toLocaleLowerCase().includes(T[0].toLocaleLowerCase())}),"continue";if(T.length>2)return{v:function(U){return!1}};var K=void 0,R=v;if(T[1][T[1].length-1]==="-"?(R=l,K=Number(T[1].substring(0,T[1].length-1))):T[1][T[1].length-1]==="+"?(R=_,K=Number(T[1].substring(0,T[1].length-1))):K=Number(T[1]),isNaN(K))return{v:function(U){return!1}};switch(T[0].toLocaleLowerCase()){case"l":case"life":case"lifespan":I.push(function(U){return R(U.lifespan,K)});break;case"e":case"end":case"endurance":I.push(function(U){return R(U.endurance,K)});break;case"m":case"mat":case"maturation":I.push(function(U){return R(U.maturation,K)});break;case"pr":case"prod":case"production":I.push(function(U){return R(U.production,K)});break;case"y":case"yield":I.push(function(U){return R(U.yield,K)});break;case"po":case"pot":case"potency":I.push(function(U){return R(U.potency,K)});break;case"s":case"stock":case"c":case"count":case"a":case"amount":I.push(function(U){return R(U.amount,K)});break;default:return{v:function(U){return!1}}}},C=j.split(" "),I=[],P=m(C),M;!(M=P()).done;){var B=x();if(u(B)==="object")return B.v}return function(w){for(var T=m(I),K;!(K=T()).done;){var R=K.value;if(!R(w))return!1}return!0}},h=function(j){var x=(0,n.Oc)(),C=x.act,I=x.data,P=I.seeds,M=(0,t.useState)("name"),B=M[0],w=M[1],T=(0,t.useState)(!0),K=T[0],R=T[1],U=j.searchText,F=j.vendAmount;return(0,e.jsx)(a.BJ.Item,{grow:!0,mt:.5,children:(0,e.jsx)(a.wn,{fill:!0,scrollable:!0,children:(0,e.jsxs)(a.XI,{className:"SeedExtractor__list",children:[(0,e.jsxs)(a.XI.Row,{bold:!0,children:[(0,e.jsx)(g,{id:"name",sortId:B,setSortId:w,sortOrder:K,setSortOrder:R,children:"Name"}),(0,e.jsx)(g,{id:"lifespan",sortId:B,setSortId:w,sortOrder:K,setSortOrder:R,children:"Lifespan"}),(0,e.jsx)(g,{id:"endurance",sortId:B,setSortId:w,sortOrder:K,setSortOrder:R,children:"Endurance"}),(0,e.jsx)(g,{id:"maturation",sortId:B,setSortId:w,sortOrder:K,setSortOrder:R,children:"Maturation"}),(0,e.jsx)(g,{id:"production",sortId:B,setSortId:w,sortOrder:K,setSortOrder:R,children:"Production"}),(0,e.jsx)(g,{id:"yield",sortId:B,setSortId:w,sortOrder:K,setSortOrder:R,children:"Yield"}),(0,e.jsx)(g,{id:"potency",sortId:B,setSortId:w,sortOrder:K,setSortOrder:R,children:"Potency"}),(0,e.jsx)(g,{id:"amount",sortId:B,setSortId:w,sortOrder:K,setSortOrder:R,children:"Stock"})]}),P?P.filter(c(U)).sort(function($,W){var N=K?1:-1;return typeof $[B]=="number"?($[B]-W[B])*N:$[B].localeCompare(W[B])*N}).map(function($){return(0,e.jsxs)(a.XI.Row,{onClick:function(){return C("vend",{seed_id:$.id,seed_variant:$.variant,vend_amount:F})},children:[(0,e.jsxs)(a.XI.Cell,{children:[(0,e.jsx)(a._V,{className:(0,s.Ly)(["seeds32x32",$.image]),style:{verticalAlign:"middle",width:"32px",margin:"0px",marginLeft:"0px"}}),$.name]}),(0,e.jsx)(a.XI.Cell,{children:$.lifespan}),(0,e.jsx)(a.XI.Cell,{children:$.endurance}),(0,e.jsx)(a.XI.Cell,{children:$.maturation}),(0,e.jsx)(a.XI.Cell,{children:$.production}),(0,e.jsx)(a.XI.Cell,{children:$.yield}),(0,e.jsx)(a.XI.Cell,{children:$.potency}),(0,e.jsx)(a.XI.Cell,{children:$.amount})]},$.id)}):"No seeds present."]})})})},g=function(j){var x=j.sortId,C=j.setSortId,I=j.sortOrder,P=j.setSortOrder,M=j.id,B=j.children;return(0,e.jsx)(a.XI.Cell,{children:(0,e.jsxs)(a.$n,{color:x!==M&&"transparent",fluid:!0,onClick:function(){x===M?P(!I):(C(M),P(!0))},children:[B,x===M&&(0,e.jsx)(a.In,{name:I?"sort-up":"sort-down",ml:"0.25rem;"})]})})},p=function(j){var x=j.setSearchText,C=j.setVendAmount;return(0,e.jsxs)(a.BJ,{fill:!0,children:[(0,e.jsx)(a.BJ.Item,{grow:!0,children:(0,e.jsx)(a.pd,{placeholder:"Search by name, variant, potency:70+, production:3-, ...",fluid:!0,expensive:!0,onChange:x})}),(0,e.jsxs)(a.BJ.Item,{children:["Vend amount:",(0,e.jsx)(a.pd,{placeholder:"1",onChange:function(I){return C(Number(I)>=1?Number(I):1)}})]})]})}},6739:(q,S,r)=>{"use strict";r.r(S),r.d(S,{PlayingCard:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(b){var O=(0,s.Oc)(),y=O.act,u=O.data;return(0,e.jsx)(t.p8,{width:250,height:350,theme:"cardtable",title:"\u041A\u0430\u0440\u0442\u044B \u0432 \u0440\u0443\u043A\u0435",children:(0,e.jsxs)(t.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{children:(0,e.jsx)(n.BJ,{vertical:!0,children:u.cards.map(function(f,m){return(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.$n,{width:"100%",onClick:function(){return y("pick",{card:f})},children:f})},m)})})}),(0,e.jsx)(n.az,{children:(0,e.jsx)(n.$n,{color:"good",onClick:function(){return y("turn")},children:"\u041F\u0435\u0440\u0435\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u043A\u0430\u0440\u0442\u044B"})})]})})}},6762:(q,S,r)=>{"use strict";r.r(S),r.d(S,{pda_request_console:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(5161),a=function(b){var O=(0,s.Oc)(),y=O.act,u=O.data,f=u.screen,m=u.selected_console,d=u.consoles_data;return m?(0,e.jsxs)(n.az,{children:[(t.pages[f]||t.pages.default)(),f===0?(0,e.jsx)(n.$n,{icon:"arrow-left",onClick:function(){return y("back")},children:"Back to console selection"}):""]}):(0,e.jsx)(n.az,{children:(0,e.jsx)(n.BJ,{vertical:!0,children:d.map(function(v){return(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.BJ,{children:(0,e.jsxs)(n.BJ.Item,{children:[(0,e.jsx)(n.$n,{color:v.priority===1?"green":v.priority===2?"red":"default",onClick:function(){return y("select",{name:v.name})},children:v.name}),(0,e.jsx)(n.$n,{icon:v.muted?"volume-mute":"volume-up",onClick:function(){return y("mute",{name:v.name})}})]})})},v.name)})})})}},6788:(q,S,r)=>{"use strict";r.r(S),r.d(S,{BlueSpaceArtilleryControl:()=>O,BuildBSAPanel:()=>m,ControlBSAPanel:()=>u});var e=r(1131),s=r(360),n=r(9845),t=r(5180),a=r(3521),b=r(538),O=function(d){var v=(0,s.Oc)().data;return v.connected?(0,e.jsx)(u,{}):(0,e.jsx)(m,{})},y=function(d){return d.power?d.reload_ready?d.calibrated?d.calibrate_ready?{color:"green",text:"\u0413\u043E\u0442\u043E\u0432 \u043A \u0432\u044B\u0441\u0442\u0440\u0435\u043B\u0443"}:{color:"orange",text:"\u041D\u0430\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043D\u0430 \u0446\u0435\u043B\u044C"}:{color:"red",text:"\u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044F \u043D\u0430\u0432\u043E\u0434\u043A\u0430"}:{color:"orange",text:"\u0417\u0430\u0440\u044F\u0434\u043A\u0430 "+d.reloadtime_text}:{color:"red",text:"\u041D\u0435\u0442 \u043F\u0438\u0442\u0430\u043D\u0438\u044F"}},u=function(d){var v=(0,s.Oc)(),_=v.act,l=v.data,c=l.mapRef,h;l.calibrate_ready||(h=(0,e.jsx)(f,{duration:l.calibrate_duration}));var g=y(l);return(0,e.jsx)(a.p8,{width:600,height:800,children:(0,e.jsxs)(a.p8.Content,{children:[(0,e.jsx)(b.ComplexModal,{}),(0,e.jsxs)(t.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(t.BJ.Item,{grow:!0,children:(0,e.jsx)(t.D1,{height:"100%",mb:"30px",width:"100%",params:{id:c,type:"map"}})}),(0,e.jsx)(t.BJ.Item,{height:"162px",children:(0,e.jsxs)(t.az,{position:"relative",height:"100%",children:[h,(0,e.jsx)(t.wn,{title:"\u0423\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435",children:(0,e.jsxs)(t.BJ,{direction:"horizontal",fill:!0,children:[(0,e.jsx)(t.BJ.Item,{basis:"50%",grow:!0,children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"\u0421\u0442\u0430\u0442\u0443\u0441",color:g.color,children:g.text}),(0,e.jsx)(t.Ki.Item,{label:"\u0420\u0435\u0436\u0438\u043C \u0441\u0442\u0440\u0435\u043B\u044C\u0431\u044B",children:(0,e.jsx)(t.ms,{options:l.mode_options,selected:l.mode,onSelected:function(p){return _("select_mode",{mode:p})}})}),(0,e.jsx)(t.Ki.Item,{label:"\u0421\u0442\u0440\u0435\u043B\u044C\u0431\u0430",children:(0,e.jsx)(t.$n,{icon:"skull",color:l.ready?"red":"grey",width:"180px",align:"center",onClick:function(){return _("fire")},children:"\u041E\u0413\u041E\u041D\u042C!"})})]})}),(0,e.jsx)(t.BJ.Item,{basis:"50%",grow:!0,children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"\u041D\u0430\u0432\u043E\u0434\u043A\u0430",children:(0,e.jsx)(t.$n,{icon:"crosshairs",onClick:function(){return _("recalibrate")},children:l.target?l.target:"\u041E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442"})}),(0,e.jsx)(t.Ki.Item,{label:"\u041A\u043E\u043E\u0440\u0434\u0438\u043D\u0430\u0442\u044B",children:l.target?l.target_coord:"\u041D\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E"}),(0,e.jsxs)(t.Ki.Item,{label:"\u041A\u043E\u0440\u0440\u0435\u043A\u0446\u0438\u044F \u043F\u043E \u043E\u0441\u0438 \u0425",children:[(0,e.jsx)(t.$n,{icon:"angle-left",onClick:function(){return _("aim",{axis:"x",value:l.correction_x-1})}}),(0,e.jsx)(t.Q7,{animated:!0,width:"4em",step:1,minValue:-15,maxValue:15,value:l.correction_x,onChange:function(p){return _("aim",{axis:"x",value:p})}}),(0,e.jsx)(t.$n,{icon:"angle-right",onClick:function(){return _("aim",{axis:"x",value:l.correction_x+1})}})]}),(0,e.jsxs)(t.Ki.Item,{label:"\u041A\u043E\u0440\u0440\u0435\u043A\u0446\u0438\u044F \u043F\u043E \u043E\u0441\u0438 Y",children:[(0,e.jsx)(t.$n,{icon:"angle-left",onClick:function(){return _("aim",{axis:"y",value:l.correction_y-1})}}),(0,e.jsx)(t.Q7,{animated:!0,width:"4em",step:1,minValue:-15,maxValue:15,value:l.correction_y,onChange:function(p){return _("aim",{axis:"y",value:p})}}),(0,e.jsx)(t.$n,{icon:"angle-right",mb:"100px",onClick:function(){return _("aim",{axis:"y",value:l.correction_y+1})}})]})]})})]})})]})})]})]})})},f=function(d){return(0,e.jsxs)(t.Rr,{textAlign:"center",className:"absolute fill zIndex",children:[(0,e.jsx)(t.In,{name:"spinner",size:5,spin:!0}),(0,e.jsx)("br",{}),(0,e.jsx)(t.az,{color:"average",children:(0,e.jsxs)("h1",{children:[(0,e.jsx)(t.In,{name:"gears"}),"\xA0\u041D\u0430\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043D\u0430 \u0446\u0435\u043B\u044C\xA0",(0,e.jsx)(t.In,{name:"gears"})]})}),(0,e.jsx)(t.az,{color:"label",children:(0,e.jsxs)("h3",{children:["\u0412 \u0442\u0435\u0447\u0435\u043D\u0438\u0438 ",d.duration," \u0441\u0435\u043A\u0443\u043D\u0434",(0,n.bl)(d.duration,"\u044B","","")]})})]})},m=function(d){var v=(0,s.Oc)(),_=v.act,l=v.data;return(0,e.jsx)(a.p8,{width:350,height:150,children:(0,e.jsx)(a.p8.Content,{children:(0,e.jsx)(t.BJ,{fill:!0,vertical:!0,children:(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.wn,{title:"\u041F\u043E\u0441\u0442\u0440\u043E\u0439\u043A\u0430 \u043E\u0440\u0443\u0434\u0438\u044F",children:(0,e.jsxs)(t.Ki,{children:[!!l.notice&&(0,e.jsx)(t.Ki.Item,{label:"\u041E\u0448\u0438\u0431\u043A\u0430",color:"red",children:l.notice}),(0,e.jsx)(t.Ki.Item,{label:"\u0421\u0442\u0440\u043E\u0438\u0442\u0435\u043B\u044C\u0441\u0442\u0432\u043E",children:(0,e.jsx)(t.$n,{icon:"wrench",onClick:function(){return _("build")},children:"\u0417\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044C \u043F\u043E\u0441\u0442\u0440\u043E\u0439\u043A\u0443"})})]})})})})})})}},6794:(q,S,r)=>{"use strict";r.r(S),r.d(S,{StationAlertConsole:()=>a,StationAlertConsoleContent:()=>b});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(){return(0,e.jsx)(t.p8,{width:325,height:500,children:(0,e.jsx)(t.p8.Content,{scrollable:!0,children:(0,e.jsx)(b,{})})})},b=function(O){var y=(0,s.Oc)().data,u=y.alarms||{};return Object.keys(u).map(function(f){var m,d;return(0,e.jsx)(n.wn,{title:""+f+" Alarms",children:(0,e.jsx)("ul",{children:((m=u[f])==null?void 0:m.length)===0?(0,e.jsx)("li",{className:"color-good",children:"Systems Nominal"}):(d=u[f])==null?void 0:d.map(function(v){return(0,e.jsx)("li",{className:"color-average",children:v},v)})})},f)})}},6834:(q,S,r)=>{"use strict";r.r(S),r.d(S,{PresetsPage:()=>v});var e=r(1131),s=r(8523),n=function(){var _=new Date().getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(l){var c=(_+Math.random()*16)%16|0;return _=Math.floor(_/16),(l==="x"?c:c&3|8).toString(16)})},t=r(360),a=r(7003),b=r(5180),O=r(5237);function y(_,l,c,h,g,p,j){try{var x=_[p](j),C=x.value}catch(I){c(I);return}x.done?l(C):Promise.resolve(C).then(h,g)}function u(_){return function(){var l=this,c=arguments;return new Promise(function(h,g){var p=_.apply(l,c);function j(C){y(p,h,g,j,x,"next",C)}function x(C){y(p,h,g,j,x,"throw",C)}j(void 0)})}}function f(_,l){var c,h,g,p={label:0,sent:function(){if(g[0]&1)throw g[1];return g[1]},trys:[],ops:[]},j=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return j.next=x(0),j.throw=x(1),j.return=x(2),typeof Symbol=="function"&&(j[Symbol.iterator]=function(){return this}),j;function x(I){return function(P){return C([I,P])}}function C(I){if(c)throw new TypeError("Generator is already executing.");for(;j&&(j=0,I[0]&&(p=0)),p;)try{if(c=1,h&&(g=I[0]&2?h.return:I[0]?h.throw||((g=h.return)&&g.call(h),0):h.next)&&!(g=g.call(h,I[1])).done)return g;switch(h=0,g&&(I=[I[0]&2,g.value]),I[0]){case 0:case 1:g=I;break;case 4:return p.label++,{value:I[1],done:!1};case 5:p.label++,h=I[1],I=[0];continue;case 7:I=p.ops.pop(),p.trys.pop();continue;default:if(g=p.trys,!(g=g.length>0&&g[g.length-1])&&(I[0]===6||I[0]===2)){p=0;continue}if(I[0]===3&&(!g||I[1]>g[0]&&I[1]{"use strict";r.r(S),r.d(S,{ControllerContent:()=>d,ControllerOverview:()=>m});var e=r(1131),s=r(7003),n=r(5180),t=r(3521),a=r(2335),b=r(1730),O=r(4125),y=r(4090),u=r(3082),f=r(7216),m=function(v){return(0,e.jsx)(t.p8,{title:"Controller Overview",height:600,width:500,children:(0,e.jsx)(t.p8.Content,{children:(0,e.jsx)(d,{})})})},d=function(v){var _=(0,s.useReducer)(b.filterReducer,{ascending:!0,inactive:!0,query:"",smallValues:!1,sortType:f.SortType.Name}),l=_[0],c=_[1],h=(0,s.useState)(),g=h[0],p=h[1],j=(a.SORTING_TYPES==null?void 0:a.SORTING_TYPES[l.sortType])||a.SORTING_TYPES[0],x=j.label,C=j.inDeciseconds,I=function(P){var M={sortType:a.SORTING_TYPES.findIndex(function(w){return w.label===P})};if(M.sortType!==void 0){var B=a.SORTING_TYPES[M.sortType].inDeciseconds;M.ascending=!B,M.smallValues=B,c({type:b.FilterAction.Update,payload:M})}};return(0,e.jsxs)(n.BJ,{fill:!0,vertical:!0,children:[g&&(0,e.jsx)(y.SubsystemDialog,{onClose:function(){return p(void 0)},subsystem:g}),(0,e.jsx)(n.BJ.Item,{height:"15%",children:(0,e.jsx)(O.OverviewSection,{})}),(0,e.jsx)(n.BJ.Item,{height:"12%",children:(0,e.jsx)(n.wn,{fill:!0,children:(0,e.jsxs)(n.BJ,{justify:"space-between",children:[(0,e.jsx)(n.BJ.Item,{grow:!0,mb:4,children:(0,e.jsxs)(n.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(n.BJ.Item,{height:"50%",children:(0,e.jsx)(n.pd,{onChange:function(P){return c({type:b.FilterAction.Query,payload:P})},placeholder:"By name",value:l.query,width:"85%"})}),(0,e.jsxs)(n.BJ.Item,{children:[(0,e.jsx)(n.$n,{disabled:!C,selected:l.smallValues,tooltip:"Hide values under 1",icon:l.smallValues?"eye-slash":"eye",onClick:function(){return c({type:b.FilterAction.SmallValues,payload:!l.smallValues})},children:"Small"}),(0,e.jsx)(n.$n,{icon:l.inactive?"eye-slash":"eye",tooltip:"Hide offline/paused",selected:l.inactive,onClick:function(){return c({type:b.FilterAction.Inactive,payload:!l.inactive})},children:"Inactive"})]})]})}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsxs)(n.BJ,{vertical:!0,children:[(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.ms,{options:a.SORTING_TYPES.map(function(P){return P.label}),selected:x,displayText:x,onSelected:I})}),(0,e.jsxs)(n.BJ.Item,{children:[(0,e.jsx)(n.$n,{selected:l.ascending,onClick:function(){return c({type:b.FilterAction.Ascending,payload:!l.ascending})},children:"Ascending"}),(0,e.jsx)(n.$n,{selected:!l.ascending,onClick:function(){return c({type:b.FilterAction.Ascending,payload:!l.ascending})},children:"Descending"})]})]})})]})})}),(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(u.SubsystemViews,{setSelected:p,filterOpts:l})})]})}},6859:(q,S,r)=>{"use strict";r.r(S),r.d(S,{CodexGigas:()=>O});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(y){var u=y.act,f=y.data,m=f.name,d=f.currentSection,v=f.prefixes,_=f.titles,l=f.names,c=f.suffixes;return(0,e.jsxs)(n.wn,{children:[(0,e.jsx)("div",{className:"CodexGigas__final-name-container",children:d!==1?(0,e.jsx)("p",{className:"CodexGigas__final-name",children:m}):(0,e.jsx)("p",{className:"CodexGigas__italic-text",children:"\u0418\u0437\u0443\u0447\u0430\u044F \u044D\u0442\u0443 \u043A\u043D\u0438\u0433\u0443, \u0432\u044B \u043F\u043E\u0437\u043D\u0430\u0451\u0442\u0435 \u0441\u043B\u0430\u0431\u043E\u0441\u0442\u0438 \u0434\u044C\u044F\u0432\u043E\u043B\u0430, \u0435\u0441\u043B\u0438 \u043A\u043E\u043D\u0435\u0447\u043D\u043E \u0432\u0430\u043C \u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E \u0435\u0433\u043E \u043D\u0430\u0441\u0442\u043E\u044F\u0449\u0435\u0435 \u0438\u043C\u044F... \u043D\u043E \u0431\u0443\u0434\u044C\u0442\u0435 \u043E\u0441\u0442\u043E\u0440\u043E\u0436\u0435\u043D\u044B, \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0435 \u0447\u0442\u0435\u043D\u0438\u0435 \u043C\u043E\u0436\u0435\u0442 \u0438\u043C\u0435\u0442\u044C \u0441\u0435\u0440\u044C\u0435\u0437\u043D\u044B\u0435 \u043F\u043E\u0441\u043B\u0435\u0434\u0441\u0442\u0432\u0438\u044F."})}),(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"\u041F\u0440\u0435\u0444\u0438\u043A\u0441",children:v.map(function(h){return(0,e.jsx)(n.$n,{disabled:d!==1,onClick:function(){return u(h)},className:"CodexGigas__button",children:h},h.toLowerCase())})}),(0,e.jsx)(n.Ki.Item,{label:"\u0417\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A",children:_.map(function(h){return(0,e.jsx)(n.$n,{disabled:d>2,onClick:function(){return u(h)},className:"CodexGigas__button",children:h},h.toLowerCase())})}),(0,e.jsx)(n.Ki.Item,{label:"\u0418\u043C\u044F",children:l.map(function(h){return(0,e.jsx)(n.$n,{disabled:d>4,onClick:function(){return u(h)},className:"CodexGigas__button",children:h},h.toLowerCase())})}),(0,e.jsx)(n.Ki.Item,{label:"\u0421\u0443\u0444\u0444\u0438\u043A\u0441",children:c.map(function(h){return(0,e.jsx)(n.$n,{disabled:d!==4,onClick:function(){return u(h)},className:"CodexGigas__button",children:h},h.toLowerCase())})}),(0,e.jsxs)(n.Ki.Item,{children:[(0,e.jsx)(n.$n,{disabled:d<4,onClick:function(){return u("search")},className:"CodexGigas__search-button",children:"\u041F\u043E\u0438\u0441\u043A"}),(0,e.jsx)(n.$n,{disabled:d===1,onClick:function(){return u("clear")},className:"CodexGigas__search-button",children:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C"})]})]})]})},b=function(y){var u=y.act,f=y.data,m=f.devilName,d=f.ban,v=f.bane,_=f.obligation,l=f.banish;return(0,e.jsx)(n.wn,{title:(0,e.jsxs)("span",{className:"CodexGigas__title",children:["\u0418\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F \u043E ",m]}),children:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)("p",{className:"CodexGigas__info-text",children:["\u0417\u0430\u043F\u0440\u0435\u0442: ",d]}),(0,e.jsxs)("p",{className:"CodexGigas__info-text",children:["\u0421\u043B\u0430\u0431\u043E\u0441\u0442\u044C: ",v]}),(0,e.jsxs)("p",{className:"CodexGigas__info-text",children:["\u041E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u044C\u0441\u0442\u0432\u043E: ",_]}),(0,e.jsxs)("p",{className:"CodexGigas__info-text",children:["\u0420\u0438\u0442\u0443\u0430\u043B \u0438\u0437\u0433\u043D\u0430\u043D\u0438\u044F: ",l]}),(0,e.jsx)("div",{className:"CodexGigas__centered",children:(0,e.jsx)(n.$n,{onClick:function(){return u("reset")},className:"CodexGigas__button",children:"\u0418\u0441\u043A\u0430\u0442\u044C \u0437\u0430\u043D\u043E\u0432\u043E"})})]})})},O=function(y){var u=(0,s.Oc)(),f=u.act,m=u.data;return(0,e.jsx)(t.p8,{theme:"infernal",children:(0,e.jsx)(t.p8.Content,{className:"CodexGigas__background",children:m.hasDevilInfo?(0,e.jsx)(b,{act:f,data:m}):(0,e.jsx)(a,{act:f,data:m})})})}},6898:(q,S)=>{"use strict";/** * @license React * react.production.min.js * @@ -330,7 +330,7 @@ User Agent: `+navigator.userAgent;Byond.sendMessage({type:"log",ns:m,message:l}) * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */function r(Q){"@swc/helpers - typeof";return Q&&typeof Symbol<"u"&&Q.constructor===Symbol?"symbol":typeof Q}var e=Symbol.for("react.element"),s=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),t=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),O=Symbol.for("react.provider"),b=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),d=Symbol.iterator;function v(Q){return Q===null||(typeof Q>"u"?"undefined":r(Q))!=="object"?null:(Q=d&&Q[d]||Q["@@iterator"],typeof Q=="function"?Q:null)}var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},l=Object.assign,c={};function h(Q,V,G){this.props=Q,this.context=V,this.refs=c,this.updater=G||_}h.prototype.isReactComponent={},h.prototype.setState=function(Q,V){if((typeof Q>"u"?"undefined":r(Q))!=="object"&&typeof Q!="function"&&Q!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,Q,V,"setState")},h.prototype.forceUpdate=function(Q){this.updater.enqueueForceUpdate(this,Q,"forceUpdate")};function g(){}g.prototype=h.prototype;function p(Q,V,G){this.props=Q,this.context=V,this.refs=c,this.updater=G||_}var j=p.prototype=new g;j.constructor=p,l(j,h.prototype),j.isPureReactComponent=!0;var x=Array.isArray,C=Object.prototype.hasOwnProperty,I={current:null},P={key:!0,ref:!0,__self:!0,__source:!0};function M(Q,V,G){var le,xe={},de=null,me=null;if(V!=null)for(le in V.ref!==void 0&&(me=V.ref),V.key!==void 0&&(de=""+V.key),V)C.call(V,le)&&!P.hasOwnProperty(le)&&(xe[le]=V[le]);var pe=arguments.length-2;if(pe===1)xe.children=G;else if(1"u"?"undefined":r(Q))==="object"&&Q!==null&&Q.$$typeof===e}function T(Q){var V={"=":"=0",":":"=2"};return"$"+Q.replace(/[=:]/g,function(G){return V[G]})}var K=/\/+/g;function R(Q,V){return(typeof Q>"u"?"undefined":r(Q))==="object"&&Q!==null&&Q.key!=null?T(""+Q.key):V.toString(36)}function U(Q,V,G,le,xe){var de=typeof Q>"u"?"undefined":r(Q);(de==="undefined"||de==="boolean")&&(Q=null);var me=!1;if(Q===null)me=!0;else switch(de){case"string":case"number":me=!0;break;case"object":switch(Q.$$typeof){case e:case s:me=!0}}if(me)return me=Q,xe=xe(me),Q=le===""?"."+R(me,0):le,x(xe)?(G="",Q!=null&&(G=Q.replace(K,"$&/")+"/"),U(xe,V,G,"",function(Ke){return Ke})):xe!=null&&(w(xe)&&(xe=B(xe,G+(!xe.key||me&&me.key===xe.key?"":(""+xe.key).replace(K,"$&/")+"/")+Q)),V.push(xe)),1;if(me=0,le=le===""?".":le+":",x(Q))for(var pe=0;pe{"use strict";r.r(S),r.d(S,{PortableTurret:()=>O});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=r(3211),O=function(b){var y=(0,s.Oc)(),u=y.act,f=y.data,m=f.locked,d=f.on,v=f.lethal,_=f.lethal_is_configurable,l=f.targetting_is_configurable,c=f.check_weapons,h=f.neutralize_noaccess,g=f.access_is_configurable,p=f.regions,j=f.selectedAccess,x=f.one_access,C=f.neutralize_norecord,I=f.neutralize_criminals,P=f.neutralize_all,M=f.neutralize_unidentified,B=f.neutralize_cyborgs;return(0,e.jsx)(t.p8,{width:500,height:400,children:(0,e.jsxs)(t.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(n.IC,{children:["Swipe an ID card to ",m?"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:d?"power-off":"times",selected:d,disabled:m,onClick:function(){return u("power")},children:d?"On":"Off"})}),!!_&&(0,e.jsx)(n.Ki.Item,{label:"Lethals",children:(0,e.jsx)(n.$n,{icon:v?"exclamation-triangle":"times",color:v?"bad":"",disabled:m,onClick:function(){return u("lethal")},children:v?"On":"Off"})}),!!g&&(0,e.jsx)(n.Ki.Item,{label:"One Access Mode",children:(0,e.jsx)(n.$n,{icon:x?"address-card":"exclamation-triangle",selected:x,disabled:m,onClick:function(){return u("one_access")},children:x?"On":"Off"})})]})}),!!l&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(n.wn,{title:"Humanoid Targets",children:[(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:I,disabled:m,onClick:function(){return u("autharrest")},children:"Wanted Criminals"}),(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:C,disabled:m,onClick:function(){return u("authnorecord")},children:"No Sec Record"}),(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:c,disabled:m,onClick:function(){return u("authweapon")},children:"Unauthorized Weapons"}),(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:h,disabled:m,onClick:function(){return u("authaccess")},children:"Unauthorized Access"})]}),(0,e.jsxs)(n.wn,{title:"Other Targets",children:[(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:M,disabled:m,onClick:function(){return u("authxeno")},children:"Unidentified Lifesigns (Xenos, Animals, Etc)"}),(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:B,disabled:m,onClick:function(){return u("authborgs")},children:"Cyborgs"}),(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:P,disabled:m,onClick:function(){return u("authsynth")},children:"All Non-Synthetics"})]})]}),!!g&&(0,e.jsx)(a.AccessList,{accesses:p,selectedList:j,accessMod:function(w){return u("set",{access:w})},grantAll:function(){return u("grant_all")},denyAll:function(){return u("clear_all")},grantDep:function(w){return u("grant_region",{region:w})},denyDep:function(w){return u("deny_region",{region:w})}})]})})}},6939:(q,S,r)=>{"use strict";r.r(S),r.d(S,{CheckboxListInputModal:()=>u});var e=r(1131),s=r(3384),n=r(30),t=r(5180),a=r(360),O=r(7003),b=r(3521);function y(){return y=Object.assign||function(m){for(var d=1;d{"use strict";r.r(S),r.d(S,{Changelog:()=>Uo});var e=r(1131),s=r(185),n=r(360),t=r(7003),a=r(5180),O=r(3521),b=r(1243);function y(D,J){return J!=null&&typeof Symbol<"u"&&J[Symbol.hasInstance]?!!J[Symbol.hasInstance](D):D instanceof J}var u=/d{1,4}|D{3,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|W{1,2}|[LlopSZN]|"[^"]*"|'[^']*'/g,f=/\b(?:[A-Z]{1,3}[A-Z][TC])(?:[-+]\d{4})?|((?:Australian )?(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time)\b/g,m=/[^-+\dA-Z]/g;function d(D,J,te,ae){if(arguments.length===1&&typeof D=="string"&&!/\d/.test(D)&&(J=D,D=void 0),D=D||D===0?D:new Date,y(D,Date)||(D=new Date(D)),isNaN(D))throw TypeError("Invalid date");J=String(v[J]||J||v.default);var re=J.slice(0,4);(re==="UTC:"||re==="GMT:")&&(J=J.slice(4),te=!0,re==="GMT:"&&(ae=!0));var fe=function(){return te?"getUTC":"get"},he=function(){return D[fe()+"Date"]()},ge=function(){return D[fe()+"Day"]()},Oe=function(){return D[fe()+"Month"]()},Ae=function(){return D[fe()+"FullYear"]()},en=function(){return D[fe()+"Hours"]()},Ve=function(){return D[fe()+"Minutes"]()},hn=function(){return D[fe()+"Seconds"]()},yn=function(){return D[fe()+"Milliseconds"]()},Bn=function(){return te?0:D.getTimezoneOffset()},Fn=function(){return h(D)},mt=function(){return g(D)},Gn={d:function(){return he()},dd:function(){return l(he())},ddd:function(){return _.dayNames[ge()]},DDD:function(){return c({y:Ae(),m:Oe(),d:he(),_:fe(),dayName:_.dayNames[ge()],short:!0})},dddd:function(){return _.dayNames[ge()+7]},DDDD:function(){return c({y:Ae(),m:Oe(),d:he(),_:fe(),dayName:_.dayNames[ge()+7]})},m:function(){return Oe()+1},mm:function(){return l(Oe()+1)},mmm:function(){return _.monthNames[Oe()]},mmmm:function(){return _.monthNames[Oe()+12]},yy:function(){return String(Ae()).slice(2)},yyyy:function(){return l(Ae(),4)},h:function(){return en()%12||12},hh:function(){return l(en()%12||12)},H:function(){return en()},HH:function(){return l(en())},M:function(){return Ve()},MM:function(){return l(Ve())},s:function(){return hn()},ss:function(){return l(hn())},l:function(){return l(yn(),3)},L:function(){return l(Math.floor(yn()/10))},t:function(){return en()<12?_.timeNames[0]:_.timeNames[1]},tt:function(){return en()<12?_.timeNames[2]:_.timeNames[3]},T:function(){return en()<12?_.timeNames[4]:_.timeNames[5]},TT:function(){return en()<12?_.timeNames[6]:_.timeNames[7]},Z:function(){return ae?"GMT":te?"UTC":p(D)},o:function(){return(Bn()>0?"-":"+")+l(Math.floor(Math.abs(Bn())/60)*100+Math.abs(Bn())%60,4)},p:function(){return(Bn()>0?"-":"+")+l(Math.floor(Math.abs(Bn())/60),2)+":"+l(Math.floor(Math.abs(Bn())%60),2)},S:function(){return["th","st","nd","rd"][he()%10>3?0:(he()%100-he()%10!=10)*he()%10]},W:function(){return Fn()},WW:function(){return l(Fn())},N:function(){return mt()}};return J.replace(u,function(Ye){return Ye in Gn?Gn[Ye]():Ye.slice(1,Ye.length-1)})}var v={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",paddedShortDate:"mm/dd/yyyy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},_={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"],timeNames:["a","p","am","pm","A","P","AM","PM"]},l=function(J){var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;return String(J).padStart(te,"0")},c=function(J){var te=J.y,ae=J.m,re=J.d,fe=J._,he=J.dayName,ge=J.short,Oe=ge===void 0?!1:ge,Ae=new Date,en=new Date;en.setDate(en[fe+"Date"]()-1);var Ve=new Date;Ve.setDate(Ve[fe+"Date"]()+1);var hn=function(){return Ae[fe+"Date"]()},yn=function(){return Ae[fe+"Month"]()},Bn=function(){return Ae[fe+"FullYear"]()},Fn=function(){return en[fe+"Date"]()},mt=function(){return en[fe+"Month"]()},Gn=function(){return en[fe+"FullYear"]()},Ye=function(){return Ve[fe+"Date"]()},sa=function(){return Ve[fe+"Month"]()},zo=function(){return Ve[fe+"FullYear"]()};return Bn()===te&&yn()===ae&&hn()===re?Oe?"Tdy":"Today":Gn()===te&&mt()===ae&&Fn()===re?Oe?"Ysd":"Yesterday":zo()===te&&sa()===ae&&Ye()===re?Oe?"Tmw":"Tomorrow":he},h=function(J){var te=new Date(J.getFullYear(),J.getMonth(),J.getDate());te.setDate(te.getDate()-(te.getDay()+6)%7+3);var ae=new Date(te.getFullYear(),0,4);ae.setDate(ae.getDate()-(ae.getDay()+6)%7+3);var re=te.getTimezoneOffset()-ae.getTimezoneOffset();te.setHours(te.getHours()-re);var fe=(te-ae)/(864e5*7);return 1+Math.floor(fe)},g=function(J){var te=J.getDay();return te===0&&(te=7),te},p=function(J){return(String(J).match(f)||[""]).pop().replace(m,"").replace(/GMT\+0000/g,"UTC")};/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function j(D){return typeof D>"u"||D===null}function x(D){return typeof D=="object"&&D!==null}function C(D){return Array.isArray(D)?D:j(D)?[]:[D]}function I(D,J){var te,ae,re,fe;if(J)for(fe=Object.keys(J),te=0,ae=fe.length;te"u"?"undefined":r(Q))!=="object"?null:(Q=d&&Q[d]||Q["@@iterator"],typeof Q=="function"?Q:null)}var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},l=Object.assign,c={};function h(Q,V,G){this.props=Q,this.context=V,this.refs=c,this.updater=G||_}h.prototype.isReactComponent={},h.prototype.setState=function(Q,V){if((typeof Q>"u"?"undefined":r(Q))!=="object"&&typeof Q!="function"&&Q!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,Q,V,"setState")},h.prototype.forceUpdate=function(Q){this.updater.enqueueForceUpdate(this,Q,"forceUpdate")};function g(){}g.prototype=h.prototype;function p(Q,V,G){this.props=Q,this.context=V,this.refs=c,this.updater=G||_}var j=p.prototype=new g;j.constructor=p,l(j,h.prototype),j.isPureReactComponent=!0;var x=Array.isArray,C=Object.prototype.hasOwnProperty,I={current:null},P={key:!0,ref:!0,__self:!0,__source:!0};function M(Q,V,G){var le,xe={},de=null,me=null;if(V!=null)for(le in V.ref!==void 0&&(me=V.ref),V.key!==void 0&&(de=""+V.key),V)C.call(V,le)&&!P.hasOwnProperty(le)&&(xe[le]=V[le]);var pe=arguments.length-2;if(pe===1)xe.children=G;else if(1"u"?"undefined":r(Q))==="object"&&Q!==null&&Q.$$typeof===e}function T(Q){var V={"=":"=0",":":"=2"};return"$"+Q.replace(/[=:]/g,function(G){return V[G]})}var K=/\/+/g;function R(Q,V){return(typeof Q>"u"?"undefined":r(Q))==="object"&&Q!==null&&Q.key!=null?T(""+Q.key):V.toString(36)}function U(Q,V,G,le,xe){var de=typeof Q>"u"?"undefined":r(Q);(de==="undefined"||de==="boolean")&&(Q=null);var me=!1;if(Q===null)me=!0;else switch(de){case"string":case"number":me=!0;break;case"object":switch(Q.$$typeof){case e:case s:me=!0}}if(me)return me=Q,xe=xe(me),Q=le===""?"."+R(me,0):le,x(xe)?(G="",Q!=null&&(G=Q.replace(K,"$&/")+"/"),U(xe,V,G,"",function(Ke){return Ke})):xe!=null&&(w(xe)&&(xe=B(xe,G+(!xe.key||me&&me.key===xe.key?"":(""+xe.key).replace(K,"$&/")+"/")+Q)),V.push(xe)),1;if(me=0,le=le===""?".":le+":",x(Q))for(var pe=0;pe{"use strict";r.r(S),r.d(S,{PortableTurret:()=>b});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=r(3211),b=function(O){var y=(0,s.Oc)(),u=y.act,f=y.data,m=f.locked,d=f.on,v=f.lethal,_=f.lethal_is_configurable,l=f.targetting_is_configurable,c=f.check_weapons,h=f.neutralize_noaccess,g=f.access_is_configurable,p=f.regions,j=f.selectedAccess,x=f.one_access,C=f.neutralize_norecord,I=f.neutralize_criminals,P=f.neutralize_all,M=f.neutralize_unidentified,B=f.neutralize_cyborgs;return(0,e.jsx)(t.p8,{width:500,height:400,children:(0,e.jsxs)(t.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(n.IC,{children:["Swipe an ID card to ",m?"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:d?"power-off":"times",selected:d,disabled:m,onClick:function(){return u("power")},children:d?"On":"Off"})}),!!_&&(0,e.jsx)(n.Ki.Item,{label:"Lethals",children:(0,e.jsx)(n.$n,{icon:v?"exclamation-triangle":"times",color:v?"bad":"",disabled:m,onClick:function(){return u("lethal")},children:v?"On":"Off"})}),!!g&&(0,e.jsx)(n.Ki.Item,{label:"One Access Mode",children:(0,e.jsx)(n.$n,{icon:x?"address-card":"exclamation-triangle",selected:x,disabled:m,onClick:function(){return u("one_access")},children:x?"On":"Off"})})]})}),!!l&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(n.wn,{title:"Humanoid Targets",children:[(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:I,disabled:m,onClick:function(){return u("autharrest")},children:"Wanted Criminals"}),(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:C,disabled:m,onClick:function(){return u("authnorecord")},children:"No Sec Record"}),(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:c,disabled:m,onClick:function(){return u("authweapon")},children:"Unauthorized Weapons"}),(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:h,disabled:m,onClick:function(){return u("authaccess")},children:"Unauthorized Access"})]}),(0,e.jsxs)(n.wn,{title:"Other Targets",children:[(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:M,disabled:m,onClick:function(){return u("authxeno")},children:"Unidentified Lifesigns (Xenos, Animals, Etc)"}),(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:B,disabled:m,onClick:function(){return u("authborgs")},children:"Cyborgs"}),(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:P,disabled:m,onClick:function(){return u("authsynth")},children:"All Non-Synthetics"})]})]}),!!g&&(0,e.jsx)(a.AccessList,{accesses:p,selectedList:j,accessMod:function(w){return u("set",{access:w})},grantAll:function(){return u("grant_all")},denyAll:function(){return u("clear_all")},grantDep:function(w){return u("grant_region",{region:w})},denyDep:function(w){return u("deny_region",{region:w})}})]})})}},6939:(q,S,r)=>{"use strict";r.r(S),r.d(S,{CheckboxListInputModal:()=>u});var e=r(1131),s=r(3384),n=r(30),t=r(5180),a=r(360),b=r(7003),O=r(3521);function y(){return y=Object.assign||function(m){for(var d=1;d{"use strict";r.r(S),r.d(S,{Changelog:()=>Uo});var e=r(1131),s=r(185),n=r(360),t=r(7003),a=r(5180),b=r(3521),O=r(1243);function y(D,J){return J!=null&&typeof Symbol<"u"&&J[Symbol.hasInstance]?!!J[Symbol.hasInstance](D):D instanceof J}var u=/d{1,4}|D{3,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|W{1,2}|[LlopSZN]|"[^"]*"|'[^']*'/g,f=/\b(?:[A-Z]{1,3}[A-Z][TC])(?:[-+]\d{4})?|((?:Australian )?(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time)\b/g,m=/[^-+\dA-Z]/g;function d(D,J,te,ae){if(arguments.length===1&&typeof D=="string"&&!/\d/.test(D)&&(J=D,D=void 0),D=D||D===0?D:new Date,y(D,Date)||(D=new Date(D)),isNaN(D))throw TypeError("Invalid date");J=String(v[J]||J||v.default);var re=J.slice(0,4);(re==="UTC:"||re==="GMT:")&&(J=J.slice(4),te=!0,re==="GMT:"&&(ae=!0));var fe=function(){return te?"getUTC":"get"},he=function(){return D[fe()+"Date"]()},ge=function(){return D[fe()+"Day"]()},Oe=function(){return D[fe()+"Month"]()},Ae=function(){return D[fe()+"FullYear"]()},en=function(){return D[fe()+"Hours"]()},Ve=function(){return D[fe()+"Minutes"]()},hn=function(){return D[fe()+"Seconds"]()},yn=function(){return D[fe()+"Milliseconds"]()},Bn=function(){return te?0:D.getTimezoneOffset()},Fn=function(){return h(D)},mt=function(){return g(D)},Gn={d:function(){return he()},dd:function(){return l(he())},ddd:function(){return _.dayNames[ge()]},DDD:function(){return c({y:Ae(),m:Oe(),d:he(),_:fe(),dayName:_.dayNames[ge()],short:!0})},dddd:function(){return _.dayNames[ge()+7]},DDDD:function(){return c({y:Ae(),m:Oe(),d:he(),_:fe(),dayName:_.dayNames[ge()+7]})},m:function(){return Oe()+1},mm:function(){return l(Oe()+1)},mmm:function(){return _.monthNames[Oe()]},mmmm:function(){return _.monthNames[Oe()+12]},yy:function(){return String(Ae()).slice(2)},yyyy:function(){return l(Ae(),4)},h:function(){return en()%12||12},hh:function(){return l(en()%12||12)},H:function(){return en()},HH:function(){return l(en())},M:function(){return Ve()},MM:function(){return l(Ve())},s:function(){return hn()},ss:function(){return l(hn())},l:function(){return l(yn(),3)},L:function(){return l(Math.floor(yn()/10))},t:function(){return en()<12?_.timeNames[0]:_.timeNames[1]},tt:function(){return en()<12?_.timeNames[2]:_.timeNames[3]},T:function(){return en()<12?_.timeNames[4]:_.timeNames[5]},TT:function(){return en()<12?_.timeNames[6]:_.timeNames[7]},Z:function(){return ae?"GMT":te?"UTC":p(D)},o:function(){return(Bn()>0?"-":"+")+l(Math.floor(Math.abs(Bn())/60)*100+Math.abs(Bn())%60,4)},p:function(){return(Bn()>0?"-":"+")+l(Math.floor(Math.abs(Bn())/60),2)+":"+l(Math.floor(Math.abs(Bn())%60),2)},S:function(){return["th","st","nd","rd"][he()%10>3?0:(he()%100-he()%10!=10)*he()%10]},W:function(){return Fn()},WW:function(){return l(Fn())},N:function(){return mt()}};return J.replace(u,function(Ye){return Ye in Gn?Gn[Ye]():Ye.slice(1,Ye.length-1)})}var v={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",paddedShortDate:"mm/dd/yyyy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},_={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"],timeNames:["a","p","am","pm","A","P","AM","PM"]},l=function(J){var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;return String(J).padStart(te,"0")},c=function(J){var te=J.y,ae=J.m,re=J.d,fe=J._,he=J.dayName,ge=J.short,Oe=ge===void 0?!1:ge,Ae=new Date,en=new Date;en.setDate(en[fe+"Date"]()-1);var Ve=new Date;Ve.setDate(Ve[fe+"Date"]()+1);var hn=function(){return Ae[fe+"Date"]()},yn=function(){return Ae[fe+"Month"]()},Bn=function(){return Ae[fe+"FullYear"]()},Fn=function(){return en[fe+"Date"]()},mt=function(){return en[fe+"Month"]()},Gn=function(){return en[fe+"FullYear"]()},Ye=function(){return Ve[fe+"Date"]()},sa=function(){return Ve[fe+"Month"]()},zo=function(){return Ve[fe+"FullYear"]()};return Bn()===te&&yn()===ae&&hn()===re?Oe?"Tdy":"Today":Gn()===te&&mt()===ae&&Fn()===re?Oe?"Ysd":"Yesterday":zo()===te&&sa()===ae&&Ye()===re?Oe?"Tmw":"Tomorrow":he},h=function(J){var te=new Date(J.getFullYear(),J.getMonth(),J.getDate());te.setDate(te.getDate()-(te.getDay()+6)%7+3);var ae=new Date(te.getFullYear(),0,4);ae.setDate(ae.getDate()-(ae.getDay()+6)%7+3);var re=te.getTimezoneOffset()-ae.getTimezoneOffset();te.setHours(te.getHours()-re);var fe=(te-ae)/(864e5*7);return 1+Math.floor(fe)},g=function(J){var te=J.getDay();return te===0&&(te=7),te},p=function(J){return(String(J).match(f)||[""]).pop().replace(m,"").replace(/GMT\+0000/g,"UTC")};/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function j(D){return typeof D>"u"||D===null}function x(D){return typeof D=="object"&&D!==null}function C(D){return Array.isArray(D)?D:j(D)?[]:[D]}function I(D,J){var te,ae,re,fe;if(J)for(fe=Object.keys(J),te=0,ae=fe.length;tege&&(fe=" ... ",J=ae-ge+fe.length),te-ae>ge&&(he=" ...",te=ae+ge-he.length),{str:fe+D.slice(J,te).replace(/\t/g,"\u2192")+he,pos:ae-J+fe.length}}function ie(D,J){return F.repeat(" ",J-D.length)+D}function Q(D,J){if(J=Object.create(J||null),!D.buffer)return null;J.maxLength||(J.maxLength=79),typeof J.indent!="number"&&(J.indent=1),typeof J.linesBefore!="number"&&(J.linesBefore=3),typeof J.linesAfter!="number"&&(J.linesAfter=2);for(var te=/\r?\n|\r|\0/g,ae=[0],re=[],fe,he=-1;fe=te.exec(D.buffer);)re.push(fe.index),ae.push(fe.index+fe[0].length),D.position<=fe.index&&he<0&&(he=ae.length-2);he<0&&(he=ae.length-1);var ge="",Oe,Ae,en=Math.min(D.line+J.linesAfter,re.length).toString().length,Ve=J.maxLength-(J.indent+en+3);for(Oe=1;Oe<=J.linesBefore&&!(he-Oe<0);Oe++)Ae=Z(D.buffer,ae[he-Oe],re[he-Oe],D.position-(ae[he]-ae[he-Oe]),Ve),ge=F.repeat(" ",J.indent)+ie((D.line-Oe+1).toString(),en)+" | "+Ae.str+` `+ge;for(Ae=Z(D.buffer,ae[he],re[he],D.position,Ve),ge+=F.repeat(" ",J.indent)+ie((D.line+1).toString(),en)+" | "+Ae.str+` @@ -361,22 +361,22 @@ User Agent: `+navigator.userAgent;Byond.sendMessage({type:"log",ns:m,message:l}) `+D.slice(re,fe),re=fe+1),he=ge;return Oe+=` `,D.length-re>J&&he>re?Oe+=D.slice(re,he)+` `+D.slice(he+1):Oe+=D.slice(re),Oe.slice(1)}function Ue(D){for(var J="",te=0,ae,re=0;re=65536?re+=2:re++)te=Co(D,re),ae=Wt[te],!ae&&Oi(te)?(J+=D[re],te>=65536&&(J+=D[re+1])):J+=ae||ra(te);return J}function Fe(D,J,te){var ae="",re=D.tag,fe,he,ge;for(fe=0,he=te.length;fe"u"&&nn(D,J,null,!1,!1))&&(ae!==""&&(ae+=","+(D.condenseFlow?"":" ")),ae+=D.dump);D.tag=re,D.dump="["+ae+"]"}function Re(D,J,te,ae){var re="",fe=D.tag,he,ge,Oe;for(he=0,ge=te.length;he"u"&&nn(D,J+1,null,!0,!0,!1,!0))&&((!ae||re!=="")&&(re+=Ko(D,J)),D.dump&&rr===D.dump.charCodeAt(0)?re+="-":re+="- ",re+=D.dump);D.tag=fe,D.dump=re||"[]"}function on(D,J,te){var ae="",re=D.tag,fe=Object.keys(te),he,ge,Oe,Ae,en;for(he=0,ge=fe.length;he1024&&(en+="? "),en+=D.dump+(D.condenseFlow?'"':"")+":"+(D.condenseFlow?"":" "),nn(D,J,Ae,!1,!1)&&(en+=D.dump,ae+=en));D.tag=re,D.dump="{"+ae+"}"}function qe(D,J,te,ae){var re="",fe=D.tag,he=Object.keys(te),ge,Oe,Ae,en,Ve,hn;if(D.sortKeys===!0)he.sort();else if(typeof D.sortKeys=="function")he.sort(D.sortKeys);else if(D.sortKeys)throw new N("sortKeys must be a boolean or a function");for(ge=0,Oe=he.length;ge1024,Ve&&(D.dump&&rr===D.dump.charCodeAt(0)?hn+="?":hn+="? "),hn+=D.dump,Ve&&(hn+=Ko(D,J)),nn(D,J+1,en,!0,Ve)&&(D.dump&&rr===D.dump.charCodeAt(0)?hn+=":":hn+=": ",hn+=D.dump,re+=hn));D.tag=fe,D.dump=re||"{}"}function sn(D,J,te){var ae,re,fe,he,ge,Oe;for(re=te?D.explicitTypes:D.implicitTypes,fe=0,he=re.length;fe tag resolver accepts not "'+Oe+'" style');D.dump=ae}return!0}return!1}function nn(D,J,te,ae,re,fe,he){D.tag=null,D.dump=te,sn(D,te,!1)||sn(D,te,!0);var ge=Rt.call(D.dump),Oe=ae,Ae;ae&&(ae=D.flowLevel<0||D.flowLevel>J);var en=ge==="[object Object]"||ge==="[object Array]",Ve,hn;if(en&&(Ve=D.duplicates.indexOf(te),hn=Ve!==-1),(D.tag!==null&&D.tag!=="?"||hn||D.indent!==2&&J>0)&&(re=!1),hn&&D.usedDuplicates[Ve])D.dump="*ref_"+Ve;else{if(en&&hn&&!D.usedDuplicates[Ve]&&(D.usedDuplicates[Ve]=!0),ge==="[object Object]")ae&&Object.keys(D.dump).length!==0?(qe(D,J,D.dump,re),hn&&(D.dump="&ref_"+Ve+D.dump)):(on(D,J,D.dump),hn&&(D.dump="&ref_"+Ve+" "+D.dump));else if(ge==="[object Array]")ae&&D.dump.length!==0?(D.noArrayIndent&&!he&&J>0?Re(D,J-1,D.dump,re):Re(D,J,D.dump,re),hn&&(D.dump="&ref_"+Ve+D.dump)):(Fe(D,J,D.dump),hn&&(D.dump="&ref_"+Ve+" "+D.dump));else if(ge==="[object String]")D.tag!=="?"&&Ce(D,D.dump,J,fe,Oe);else{if(ge==="[object Undefined]")return!1;if(D.skipInvalid)return!1;throw new N("unacceptable kind of an object to dump "+ge)}D.tag!==null&&D.tag!=="?"&&(Ae=encodeURI(D.tag[0]==="!"?D.tag.slice(1):D.tag).replace(/!/g,"%21"),D.tag[0]==="!"?Ae="!"+Ae:Ae.slice(0,18)==="tag:yaml.org,2002:"?Ae="!!"+Ae.slice(18):Ae="!<"+Ae+">",D.dump=Ae+" "+D.dump)}return!0}function pn(D,J){var te=[],ae=[],re,fe;for(rn(D,te,ae),re=0,fe=ae.length;re0&&re[re.length-1])&&(Ae[0]===6||Ae[0]===2)){fe=0;continue}if(Ae[0]===3&&(!re||Ae[1]>re[0]&&Ae[1]en)return fe.setData("Failed to load data after "+en+" attempts");Oe("get_month",{date:he}),fetch((0,b.l)(he+".yml")).then(function(Ve){return or(function(){var hn,yn,Bn;return Ut(this,function(Fn){switch(Fn.label){case 0:return[4,Ve.text()];case 1:return hn=Fn.sent(),yn=/^Cannot find/,yn.test(hn)?(Bn=50+ge*50,Ae.setData("Loading changelog data"+".".repeat(ge+3)),setTimeout(function(){Ae.getData(he,ge+1)},Bn)):Ae.setData(Xt.load(hn,{schema:Xt.CORE_SCHEMA})),[2]}})})()})},fe.state={data:"Loading changelog data...",selectedDate:"",selectedIndex:0},fe.dateChoices=[],re}var te=J.prototype;return te.setData=function(re){this.setState({data:re})},te.setSelectedDate=function(re){this.setState({selectedDate:re})},te.setSelectedIndex=function(re){this.setState({selectedIndex:re})},te.componentDidMount=function(){var re=this,fe=(0,n.Oc)(),he=fe.data,ge=he.dates,Oe=ge===void 0?[]:ge;Oe&&(Oe.forEach(function(Ae){return re.dateChoices.push(d(Ae,"mmmm yyyy",!0))}),this.setSelectedDate(this.dateChoices[0]),this.getData(Oe[0]))},te.render=function(){var re=this,fe=this.state,he=fe.data,ge=fe.selectedDate,Oe=fe.selectedIndex,Ae=(0,n.Oc)(),en=Ae.data.dates,Ve=this.dateChoices,hn=Ve.length>0&&(0,e.jsxs)(a.BJ,{mb:1,children:[(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(a.$n,{className:"Changelog__Button",disabled:Oe===0,icon:"chevron-left",onClick:function(){var Gn=Oe-1;return re.setData("Loading changelog data..."),re.setSelectedIndex(Gn),re.setSelectedDate(Ve[Gn]),window.scrollTo(0,document.body.scrollHeight||document.documentElement.scrollHeight),re.getData(en[Gn])}})}),(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(a.ms,{displayText:ge,options:Ve,onSelected:function(Gn){var Ye=Ve.indexOf(Gn);return re.setData("Loading changelog data..."),re.setSelectedIndex(Ye),re.setSelectedDate(Gn),window.scrollTo(0,document.body.scrollHeight||document.documentElement.scrollHeight),re.getData(en[Ye])},selected:ge,width:"150px"})}),(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(a.$n,{className:"Changelog__Button",disabled:Oe===Ve.length-1,icon:"chevron-right",onClick:function(){var Gn=Oe+1;return re.setData("Loading changelog data..."),re.setSelectedIndex(Gn),re.setSelectedDate(Ve[Gn]),window.scrollTo(0,document.body.scrollHeight||document.documentElement.scrollHeight),re.getData(en[Gn])}})})]}),yn=(0,e.jsxs)(a.wn,{children:[(0,e.jsx)("h1",{children:"Paradise Station"}),(0,e.jsxs)("p",{children:[(0,e.jsx)("b",{children:"Thanks to: "}),"Baystation 12, /tg/station, /vg/station, NTstation, CDK Station devs, FacepunchStation, GoonStation devs, the original SpaceStation developers and Radithor for the title image. Also a thanks to anybody who has contributed who is not listed here :( Ask to be added here on irc."]}),(0,e.jsxs)("p",{children:["Recent GitHub contributors can be found ",(0,e.jsx)("a",{href:"https://github.com/ss220-space/Paradise/pulse/monthly",children:"here"}),"."]}),hn]}),Bn=(0,e.jsxs)(a.wn,{children:[hn,(0,e.jsx)("h3",{children:"GoonStation 13 Development Team"}),(0,e.jsxs)("p",{children:[(0,e.jsx)("b",{children:"Coders: "}),"Stuntwaffle, Showtime, Pantaloons, Nannek, Keelin, Exadv1, hobnob, Justicefries, 0staf, sniperchance, AngriestIBM, BrianOBlivion"]}),(0,e.jsxs)("p",{children:[(0,e.jsx)("b",{children:"Spriters: "}),"Supernorn, Haruhi, Stuntwaffle, Pantaloons, Rho, SynthOrange, I Said No"]}),(0,e.jsxs)("p",{children:["Traditional Games Space Station 13 is thankful to the GoonStation 13 Development Team for its work on the game up to the"," r4407 release. The changelog for changes up to r4407 can be seen ",(0,e.jsx)("a",{href:"https://wiki.ss13.co/Pre-2016_Changelog#April_2010",children:"here"}),"."]}),(0,e.jsxs)("p",{children:["Except where otherwise noted, Goon Station 13 is licensed under a ",(0,e.jsx)("a",{href:"https://creativecommons.org/licenses/by-nc-sa/3.0/",children:"Creative Commons Attribution-Noncommercial-Share Alike 3.0 License"}),". Rights are currently extended to ",(0,e.jsx)("a",{href:"http://forums.somethingawful.com/",children:"SomethingAwful Goons"})," only."]}),(0,e.jsx)("h3",{children:"Traditional Games Space Station 13 License"}),(0,e.jsxs)("p",{children:["Some icons by"," ",(0,e.jsx)("a",{href:"http://p.yusukekamiyamane.com/",children:"Yusuke Kamiyamane"}),". All rights reserved. Licensed under a"," ",(0,e.jsx)("a",{href:"http://creativecommons.org/licenses/by/3.0/",children:"Creative Commons Attribution 3.0 License"}),"."]})]}),Fn=/#\d+/,mt=(typeof he>"u"?"undefined":Kt(he))==="object"&&Object.keys(he).length>0&&Object.entries(he).reverse().map(function(Gn){var Ye=Gn[0],sa=Gn[1];return(0,e.jsx)(a.wn,{title:d(Ye,"d mmmm yyyy",!0),children:(0,e.jsx)(a.az,{ml:3,children:Object.entries(sa).map(function(zo){var Vn=zo[0],Da=zo[1];return(0,e.jsxs)(t.Fragment,{children:[(0,e.jsxs)("h4",{children:[Vn," changed:"]}),(0,e.jsx)(a.az,{ml:3,children:(0,e.jsx)(a.XI,{children:Da.map(function(No){var Ni=Object.keys(No)[0],qi=No[Ni],ca=qi.match(Fn),Eo=(0,e.jsx)(a.XI.Cell,{className:(0,s.Ly)(["Changelog__Cell","Changelog__Cell--Icon"]),children:Ni.split("/").map(function(Wi){return(0,e.jsx)(a.In,{color:Ct[Wi]?Ct[Wi].color:Ct.unknown.color,name:Ct[Wi]?Ct[Wi].icon:Ct.unknown.icon},Wi)})});return ca!==null&&(0,e.jsxs)(a.XI.Row,{children:[Eo,(0,e.jsx)(a.XI.Cell,{className:"Changelog__Cell",children:(0,e.jsxs)("a",{href:"https://github.com/ss220-space/Paradise/pull/"+ca[0].substring(1),children:[" ",qi.charAt(0).toUpperCase()+qi.slice(1)," "]})})]},Ni+qi)||(0,e.jsxs)(a.XI.Row,{children:[Eo,(0,e.jsx)(a.XI.Cell,{className:"Changelog__Cell",children:qi})]},Ni+qi)})})})]},Vn)})})},Ye)});return(0,e.jsx)(O.p8,{title:"Changelog",width:675,height:650,children:(0,e.jsxs)(O.p8.Content,{scrollable:!0,className:"Changelog",children:[yn,mt,typeof he=="string"&&(0,e.jsx)("p",{children:he}),Bn]})})},J}(t.Component)},7003:(q,S,r)=>{"use strict";q.exports=r(6898)},7052:()=>{},7120:(q,S,r)=>{"use strict";r.r(S),r.d(S,{NinjaMindScan:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(b){return(0,e.jsx)(t.p8,{width:500,height:400,theme:"spider_clan",children:(0,e.jsx)(t.p8.Content,{className:"Layout__content--flexColumn",children:(0,e.jsx)(O,{})})})},O=function(b){var y=(0,s.Oc)(),u=y.act,f=y.data,m=f.occupantIcon,d=f.occupant_name,v=f.occupant_health,_=f.scanned_occupants,l=d==="none"?1:0;return(0,e.jsxs)(n.so,{direction:"column",shrink:1,alignContent:"left",children:[(0,e.jsx)(n.wn,{title:"\u041F\u0430\u0446\u0438\u0435\u043D\u0442",backgroundColor:"rgba(0, 0, 0, 0.4)",buttons:(0,e.jsx)(n.$n,{tooltip:"\u041E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0432\u043D\u0435\u0448\u043D\u0435\u0433\u043E \u0432\u0438\u0434\u0430 \u0438 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u044F \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430 \u0432 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u0435.",tooltipPosition:"left",children:"?"}),children:(0,e.jsxs)(n.so,{direction:"row",shrink:1,alignContent:"left",children:[(0,e.jsx)(n.so.Item,{shrink:1,alignContent:"left",children:(0,e.jsx)(n.IC,{className:"NoticeBox_blue",width:"90px",align:"left",children:(0,e.jsx)(n.wn,{style:{background:"rgba(4, 74, 27, 0.75)"},align:"left",mb:-1,children:(0,e.jsx)(n._V,{height:"128px",width:"128px",src:"data:image/jpeg;base64,"+m,ml:"-28px"})})})}),(0,e.jsxs)(n.so.Item,{grow:1,alignContent:"right",children:[(0,e.jsx)(n.IC,{className:"NoticeBox_green",align:"left",ml:1,children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"\u0418\u043C\u044F",children:d}),(0,e.jsx)(n.Ki.Item,{label:"\u0417\u0434\u043E\u0440\u043E\u0432\u044C\u0435",children:v})]})}),(0,e.jsxs)(n.IC,{className:"NoticeBox_red",mt:2.5,align:"center",ml:1,children:[(0,e.jsx)(n.$n,{className:l===0?"":"Button_disabled",width:"250px",textAlign:"center",disabled:l,tooltip:"\u0421\u043A\u0430\u043D\u0438\u0440\u0443\u0435\u0442 \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430 \u0438 \u043F\u044B\u0442\u0430\u0435\u0442\u0441\u044F \u0434\u043E\u0431\u044B\u0442\u044C \u0438\u0437 \u0435\u0433\u043E \u0440\u0430\u0437\u0443\u043C\u0430 \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u0443\u044E \u043A\u043B\u0430\u043D\u0443 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044E.",tooltipPosition:"bottom-start",onClick:function(){return u("scan_occupant")},children:"\u041D\u0430\u0447\u0430\u0442\u044C \u0441\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435"}),(0,e.jsx)(n.$n,{className:l===0?"":"Button_disabled",width:"250px",textAlign:"center",disabled:l,tooltip:"\u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E, \u0432\u044B\u043F\u0443\u0441\u043A\u0430\u044F \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430 \u0438\u0437 \u043A\u0430\u043F\u0441\u0443\u043B\u044B",tooltipPosition:"bottom-start",onClick:function(){return u("go_out")},children:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E"}),(0,e.jsx)(n.$n,{className:l===0?"":"Button_disabled",width:"250px",textAlign:"center",disabled:l,tooltip:"\u0422\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0438\u0440\u0443\u0435\u0442 \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430 \u043E\u0431\u0440\u0430\u0442\u043D\u043E \u043D\u0430 \u043E\u0431\u044C\u0435\u043A\u0442 \u0441 \u043A\u043E\u0442\u043E\u0440\u043E\u0433\u043E \u043E\u043D \u0431\u044B\u043B \u043F\u043E\u0445\u0438\u0449\u0435\u043D. \u0420\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0443\u0435\u043C \u043A\u0430\u043A \u0441\u043B\u0435\u0434\u0443\u0435\u0442 \u0435\u0433\u043E \u0437\u0430\u043F\u0443\u0433\u0430\u0442\u044C \u043F\u0435\u0440\u0435\u0434 \u044D\u0442\u0438\u043C, \u0447\u0442\u043E\u0431\u044B \u043E\u043D \u043D\u0435 \u0440\u0430\u0437\u0431\u043E\u043B\u0442\u0430\u043B \u043E \u0432\u0430\u0441.",tooltipPosition:"bottom-start",onClick:function(){return u("teleport_out")},children:"\u0422\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0430\u0446\u0438\u044F \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430"})]})]})]})}),(0,e.jsx)(n.wn,{title:"\u0421\u043F\u0438\u0441\u043E\u043A \u0443\u0436\u0435 \u043F\u0440\u043E\u0441\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0445 \u0432\u0430\u043C\u0438 \u043B\u044E\u0434\u0435\u0439",align:"center",backgroundColor:"rgba(0, 0, 0, 0.4)",children:(0,e.jsx)(n.az,{maxHeight:15,overflowY:"auto",overflowX:"hidden",children:(0,e.jsx)(n.XI,{m:"0.5rem",children:_.map(function(c){return(0,e.jsx)(n.XI.Row,{children:(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.az,{children:c.scanned_occupant})})},c.scanned_occupant)})})})})]})}},7152:(q,S,r)=>{"use strict";r.r(S),r.d(S,{AirlockAccessController:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(O){var b=(0,s.Oc)(),y=b.act,u=b.data,f=u.exterior_status,m=u.interior_status,d=u.processing,v,_;return f==="open"?v=(0,e.jsx)(n.$n,{width:"50%",icon:"exclamation-triangle",disabled:d,onClick:function(){return y("force_ext")},children:"Lock Exterior Door"}):v=(0,e.jsx)(n.$n,{width:"50%",icon:"arrow-circle-left",disabled:d,onClick:function(){return y("cycle_ext_door")},children:"Cycle to Exterior"}),m==="open"?_=(0,e.jsx)(n.$n,{width:"49%",icon:"exclamation-triangle",disabled:d,color:m==="open"?"red":d?"yellow":null,onClick:function(){return y("force_int")},children:"Lock Interior Door"}):_=(0,e.jsx)(n.$n,{width:"49%",icon:"arrow-circle-right",disabled:d,onClick:function(){return y("cycle_int_door")},children:"Cycle to Interior"}),(0,e.jsx)(t.p8,{width:330,height:200,children:(0,e.jsxs)(t.p8.Content,{children:[(0,e.jsx)(n.wn,{title:"Information",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"External Door Status",children:f==="closed"?"Locked":"Open"}),(0,e.jsx)(n.Ki.Item,{label:"Internal Door Status",children:m==="closed"?"Locked":"Open"})]})}),(0,e.jsx)(n.wn,{title:"Actions",children:(0,e.jsxs)(n.az,{children:[v,_]})})]})})}},7168:(q,S,r)=>{"use strict";r.r(S),r.d(S,{pda_manifest:()=>n});var e=r(1131),s=r(3261),n=function(t){return(0,e.jsx)(s.CrewManifest,{})}},7201:(q,S,r)=>{"use strict";r.r(S),r.d(S,{APC:()=>O});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=r(6186),O=function(f){return(0,e.jsx)(t.p8,{width:510,height:435,children:(0,e.jsx)(t.p8.Content,{children:(0,e.jsx)(u,{})})})},b={2:{color:"good",externalPowerText:"External Power",chargingText:"Fully Charged"},1:{color:"average",externalPowerText:"Low External Power",chargingText:"Charging"},0:{color:"bad",externalPowerText:"No External Power",chargingText:"Not Charging"}},y={1:{icon:"terminal",content:"Override Programming",action:"hack"},2:{icon:"caret-square-down",content:"Shunt Core Process",action:"occupy"},3:{icon:"caret-square-left",content:"Return to Main Core",action:"deoccupy"},4:{icon:"caret-square-down",content:"Shunt Core Process",action:"occupy"}},u=function(f){var m=(0,s.Oc)(),d=m.act,v=m.data,_=v.locked&&!v.siliconUser,l=b[v.externalPower]||b[0],c=b[v.chargingStatus]||b[0],h=v.powerChannels||[],g=y[v.malfStatus]||y[0],p=v.powerCellStatus/100;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.InterfaceLockNoticeBox,{}),(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:l.color,buttons:(0,e.jsx)(n.$n,{icon:v.isOperating?"power-off":"times",selected:v.isOperating&&!_,color:v.isOperating?"":"bad",disabled:_,onClick:function(){return d("breaker")},children:v.isOperating?"On":"Off"}),children:["[ ",l.externalPowerText," ]"]}),(0,e.jsx)(n.Ki.Item,{label:"Power Cell",children:(0,e.jsx)(n.z2,{color:"good",value:p})}),(0,e.jsxs)(n.Ki.Item,{label:"Charge Mode",color:c.color,buttons:(0,e.jsx)(n.$n,{icon:v.chargeMode?"sync":"times",selected:v.chargeMode,disabled:_,onClick:function(){return d("charge")},children:v.chargeMode?"Auto":"Off"}),children:["[ ",c.chargingText," ]"]})]})}),(0,e.jsx)(n.wn,{title:"Power Channels",children:(0,e.jsxs)(n.Ki,{children:[h.map(function(j){var x=j.topicParams;return(0,e.jsxs)(n.Ki.Item,{label:j.title,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.az,{inline:!0,mx:2,color:j.status>=2?"good":"bad",children:j.status>=2?"On":"Off"}),(0,e.jsx)(n.$n,{icon:"sync",selected:!_&&(j.status===1||j.status===3),disabled:_,onClick:function(){return d("channel",x.auto)},children:"Auto"}),(0,e.jsx)(n.$n,{icon:"power-off",selected:!_&&j.status===2,disabled:_,onClick:function(){return d("channel",x.on)},children:"On"}),(0,e.jsx)(n.$n,{icon:"times",selected:!_&&j.status===0,disabled:_,onClick:function(){return d("channel",x.off)},children:"Off"})]}),children:[j.powerLoad," W"]},j.title)}),(0,e.jsx)(n.Ki.Item,{label:"Total Load",children:(0,e.jsxs)("b",{children:[v.totalLoad," W"]})})]})}),(0,e.jsx)(n.wn,{title:"Misc",buttons:!!v.siliconUser&&(0,e.jsxs)(e.Fragment,{children:[!!v.malfStatus&&(0,e.jsx)(n.$n,{icon:g.icon,color:"bad",onClick:function(){return d(g.action)},children:g.content}),(0,e.jsx)(n.$n,{icon:"lightbulb-o",onClick:function(){return d("overload")},children:"Overload"})]}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Cover Lock",buttons:(0,e.jsx)(n.$n,{mb:.4,icon:v.coverLocked?"lock":"unlock",disabled:_,onClick:function(){return d("cover")},children:v.coverLocked?"Engaged":"Disengaged"})}),(0,e.jsx)(n.Ki.Item,{label:"Night Shift Lighting",buttons:(0,e.jsx)(n.$n,{icon:"lightbulb-o",onClick:function(){return d("toggle_nightshift")},children:v.nightshiftLights?"Enabled":"Disabled"})}),(0,e.jsx)(n.Ki.Item,{label:"Emergency Lighting Fallback",buttons:(0,e.jsx)(n.$n,{mt:.4,icon:"lightbulb-o",disabled:_,onClick:function(){return d("emergency_lighting")},children:v.emergencyLights?"Engaged":"Disengaged"})})]})})]})}},7207:(q,S,r)=>{"use strict";r.r(S),r.d(S,{ChemHeater:()=>b});var e=r(1131),s=r(9818),n=r(360),t=r(5180),a=r(829),O=r(3521),b=function(f){return(0,e.jsx)(O.p8,{width:450,height:275,children:(0,e.jsx)(O.p8.Content,{children:(0,e.jsxs)(t.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(y,{}),(0,e.jsx)(u,{})]})})})},y=function(f){var m=(0,n.Oc)(),d=m.act,v=m.data,_=v.targetTemp,l=v.targetTempReached,c=v.autoEject,h=v.isActive,g=v.currentTemp,p=v.isBeakerLoaded;return(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.wn,{fill:!0,title:"\u041F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:c?"toggle-on":"toggle-off",selected:c,onClick:function(){return d("toggle_autoeject")},children:"\u0410\u0432\u0442\u043E-\u0438\u0437\u0432\u043B\u0435\u0447\u0435\u043D\u0438\u0435"}),(0,e.jsx)(t.$n,{icon:"power-off",selected:h,disabled:!p,onClick:function(){return d("toggle_on")},children:h?"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u043E":"\u0412\u044B\u043A\u043B\u044E\u0447\u0435\u043D\u043E"})]}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"\u0426\u0435\u043B\u0435\u0432\u0430\u044F \u0442\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430",children:(0,e.jsx)(t.Q7,{width:"65px",unit:"K",step:10,stepPixelSize:3,value:(0,s.LI)(_,0),minValue:0,maxValue:1e3,onDrag:function(j){return d("adjust_temperature",{target:j})}})}),(0,e.jsx)(t.Ki.Item,{label:"\u0422\u0435\u043A\u0443\u0449\u0430\u044F \u0442\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430",color:l?"good":"average",children:p&&(0,e.jsx)(t.zv,{value:g,format:function(j){return(0,s.Mg)(j)+" K"}})||"\u2014"})]})})})},u=function(f){var m=(0,n.Oc)(),d=m.act,v=m.data,_=v.isBeakerLoaded,l=v.beakerCurrentVolume,c=v.beakerMaxVolume,h=v.beakerContents;return(0,e.jsx)(t.BJ.Item,{grow:!0,children:(0,e.jsx)(t.wn,{title:"\u0401\u043C\u043A\u043E\u0441\u0442\u044C",fill:!0,scrollable:!0,buttons:!!_&&(0,e.jsxs)(t.az,{children:[(0,e.jsxs)(t.az,{inline:!0,color:"label",mr:2,children:[l," / ",c," \u0435\u0434\u0438\u043D\u0438\u0446"]}),(0,e.jsx)(t.$n,{icon:"eject",onClick:function(){return d("eject_beaker")},children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C"})]}),children:(0,e.jsx)(a.BeakerContents,{beakerLoaded:_,beakerContents:h})})})}},7216:(q,S,r)=>{"use strict";r.r(S),r.d(S,{SortType:()=>e});var e=function(s){return s[s.Name=0]="Name",s[s.Cost=1]="Cost",s[s.InitOrder=2]="InitOrder",s[s.LastFire=3]="LastFire",s[s.NextFire=4]="NextFire",s[s.TickUsage=5]="TickUsage",s[s.TickOverrun=6]="TickOverrun",s}({})},7250:(q,S,r)=>{"use strict";r.r(S),r.d(S,{TransferValve:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(O){var b=(0,s.Oc)(),y=b.act,u=b.data,f=u.tank_one,m=u.tank_two,d=u.attached_device,v=u.valve;return(0,e.jsx)(t.p8,{width:460,height:320,children:(0,e.jsxs)(t.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:v?"unlock":"lock",disabled:!f||!m,onClick:function(){return y("toggle")},children:v?"Open":"Closed"})})})}),(0,e.jsx)(n.wn,{title:"Assembly",buttons:(0,e.jsx)(n.$n,{textAlign:"center",width:"150px",icon:"cog",disabled:!d,onClick:function(){return y("device")},children:"Configure Assembly"}),children:(0,e.jsx)(n.Ki,{children:d?(0,e.jsx)(n.Ki.Item,{label:"Attachment",children:(0,e.jsx)(n.$n,{icon:"eject",disabled:!d,onClick:function(){return y("remove_device")},children:d})}):(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:f?(0,e.jsx)(n.Ki.Item,{label:"Attachment",children:(0,e.jsx)(n.$n,{icon:"eject",disabled:!f,onClick:function(){return y("tankone")},children:f})}):(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:m?(0,e.jsx)(n.Ki.Item,{label:"Attachment",children:(0,e.jsx)(n.$n,{icon:"eject",disabled:!m,onClick:function(){return y("tanktwo")},children:m})}):(0,e.jsx)(n.IC,{textAlign:"center",children:"Attach Tank"})})})]})})}},7309:(q,S,r)=>{"use strict";r.r(S),r.d(S,{AlertPane:()=>b,InternalDamageToDamagedDesc:()=>a,InternalDamageToNormalDesc:()=>O});var e=r(1131),s=r(5180),n=r(360),t=r(78),a={MECHA_INT_FIRE:"\u0412\u043D\u0443\u0442\u0440\u0435\u043D\u043D\u0438\u0439 \u043F\u043E\u0436\u0430\u0440 \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D",MECHA_INT_TEMP_CONTROL:"\u0422\u0435\u0440\u043C\u043E\u0440\u0435\u0433\u0443\u043B\u044F\u0442\u043E\u0440 \u0432\u044B\u043A\u043B\u044E\u0447\u0435\u043D",MECHA_INT_TANK_BREACH:"\u041A\u0430\u0431\u0438\u043D\u0430 \u043F\u043E\u0432\u0440\u0435\u0436\u0434\u0435\u043D\u0430",MECHA_INT_CONTROL_LOST:"\u041C\u043E\u0442\u043E\u0440\u044B \u043F\u043E\u0432\u0440\u0435\u0436\u0434\u0435\u043D\u044B",MECHA_INT_SHORT_CIRCUIT:"\u041A\u043E\u0440\u043E\u0442\u043A\u043E\u0435 \u0437\u0430\u043C\u044B\u043A\u0430\u043D\u0438\u0435"},O={MECHA_INT_FIRE:"\u041F\u043E\u0436\u0430\u0440\u043E\u0432 \u043D\u0435 \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u043E",MECHA_INT_TEMP_CONTROL:"\u0422\u0435\u0440\u043C\u043E\u0440\u0435\u0433\u0443\u043B\u044F\u0442\u043E\u0440 \u0430\u043A\u0442\u0438\u0432\u0435\u043D",MECHA_INT_TANK_BREACH:"\u041A\u0430\u0431\u0438\u043D\u0430 \u0446\u0435\u043B\u0430",MECHA_INT_CONTROL_LOST:"\u041C\u043E\u0442\u043E\u0440\u044B \u0430\u043A\u0442\u0438\u0432\u043D\u044B",MECHA_INT_SHORT_CIRCUIT:"\u041F\u043B\u0430\u0442\u044B \u0440\u0430\u0431\u043E\u0442\u043E\u0441\u043F\u043E\u0441\u043E\u0431\u043D\u044B"},b=function(y){var u=(0,n.Oc)(),f=u.act,m=u.data,d=m.internal_damage,v=m.internal_damage_keys,_=m.internal_damage_fixable,l=m.ui_honked,c=(0,t.useHonk)(l?.4:0);return(0,e.jsx)(s.wn,{title:c("\u0421\u0442\u0430\u0442\u0443\u0441"),children:(0,e.jsx)(s.BJ,{vertical:!0,children:Object.keys(v).map(function(h){return(0,e.jsx)(s.BJ.Item,{children:(0,e.jsxs)(s.BJ,{justify:"space-between",children:[(0,e.jsx)(s.BJ.Item,{children:(0,e.jsxs)(s.az,{color:d&v[h]?"bad":"good",style:{textShadow:"1px 1px 0 black"},children:[(0,e.jsx)(s.In,{mr:1,name:d&v[h]?"warning":"check"}),c(d&v[h]?a[h]:O[h])]})}),!!(d&v[h]&&_[h])&&(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(s.$n,{my:"-4px",onClick:function(){return f("repair_int_damage",{flag:v[h]})},color:"red",children:"\u0420\u0435\u043C\u043E\u043D\u0442"})})]})},h)})})})}},7441:(q,S,r)=>{"use strict";r.r(S),r.d(S,{ColorPickerModal:()=>f});var e=r(1131),s=r(3384),n=r(360),t=r(7003),a=r(5180),O=r(3521),b=r(8589),y=r(30),u=r(2251);/** +`:""}var Cn=On,bn={dump:Cn};function kn(D,J){return function(){throw new Error("Function yaml."+D+" is removed in js-yaml 4. Use yaml."+J+" instead, which is now safe by default.")}}var zn=me,Hn=Le,et=We,Un=Dr,an=Yr,lt=yr,Tt=ur.load,Sn=ur.loadAll,ft=bn.dump,br=N,tt={binary:ti,float:Xi,map:ze,null:En,pairs:so,set:wr,timestamp:Qr,bool:Ot,int:Kn,merge:Ai,omap:gr,seq:ln,str:Se},st=kn("safeLoad","load"),Dt=kn("safeLoadAll","loadAll"),mr=kn("safeDump","dump"),Vr={Type:zn,Schema:Hn,FAILSAFE_SCHEMA:et,JSON_SCHEMA:Un,CORE_SCHEMA:an,DEFAULT_SCHEMA:lt,load:Tt,loadAll:Sn,dump:ft,YAMLException:br,types:tt,safeLoad:st,safeLoadAll:Dt,safeDump:mr};const Xt=Vr;function $t(D,J,te,ae,re,fe,he){try{var ge=D[fe](he),Oe=ge.value}catch(Ae){te(Ae);return}ge.done?J(Oe):Promise.resolve(Oe).then(ae,re)}function or(D){return function(){var J=this,te=arguments;return new Promise(function(ae,re){var fe=D.apply(J,te);function he(Oe){$t(fe,ae,re,he,ge,"next",Oe)}function ge(Oe){$t(fe,ae,re,he,ge,"throw",Oe)}he(void 0)})}}function yo(D,J){if(typeof J!="function"&&J!==null)throw new TypeError("Super expression must either be null or a function");D.prototype=Object.create(J&&J.prototype,{constructor:{value:D,writable:!0,configurable:!0}}),J&&$n(D,J)}function $n(D,J){return $n=Object.setPrototypeOf||function(ae,re){return ae.__proto__=re,ae},$n(D,J)}function Kt(D){"@swc/helpers - typeof";return D&&typeof Symbol<"u"&&D.constructor===Symbol?"symbol":typeof D}function Ut(D,J){var te,ae,re,fe={label:0,sent:function(){if(re[0]&1)throw re[1];return re[1]},trys:[],ops:[]},he=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return he.next=ge(0),he.throw=ge(1),he.return=ge(2),typeof Symbol=="function"&&(he[Symbol.iterator]=function(){return this}),he;function ge(Ae){return function(en){return Oe([Ae,en])}}function Oe(Ae){if(te)throw new TypeError("Generator is already executing.");for(;he&&(he=0,Ae[0]&&(fe=0)),fe;)try{if(te=1,ae&&(re=Ae[0]&2?ae.return:Ae[0]?ae.throw||((re=ae.return)&&re.call(ae),0):ae.next)&&!(re=re.call(ae,Ae[1])).done)return re;switch(ae=0,re&&(Ae=[Ae[0]&2,re.value]),Ae[0]){case 0:case 1:re=Ae;break;case 4:return fe.label++,{value:Ae[1],done:!1};case 5:fe.label++,ae=Ae[1],Ae=[0];continue;case 7:Ae=fe.ops.pop(),fe.trys.pop();continue;default:if(re=fe.trys,!(re=re.length>0&&re[re.length-1])&&(Ae[0]===6||Ae[0]===2)){fe=0;continue}if(Ae[0]===3&&(!re||Ae[1]>re[0]&&Ae[1]en)return fe.setData("Failed to load data after "+en+" attempts");Oe("get_month",{date:he}),fetch((0,O.l)(he+".yml")).then(function(Ve){return or(function(){var hn,yn,Bn;return Ut(this,function(Fn){switch(Fn.label){case 0:return[4,Ve.text()];case 1:return hn=Fn.sent(),yn=/^Cannot find/,yn.test(hn)?(Bn=50+ge*50,Ae.setData("Loading changelog data"+".".repeat(ge+3)),setTimeout(function(){Ae.getData(he,ge+1)},Bn)):Ae.setData(Xt.load(hn,{schema:Xt.CORE_SCHEMA})),[2]}})})()})},fe.state={data:"Loading changelog data...",selectedDate:"",selectedIndex:0},fe.dateChoices=[],re}var te=J.prototype;return te.setData=function(re){this.setState({data:re})},te.setSelectedDate=function(re){this.setState({selectedDate:re})},te.setSelectedIndex=function(re){this.setState({selectedIndex:re})},te.componentDidMount=function(){var re=this,fe=(0,n.Oc)(),he=fe.data,ge=he.dates,Oe=ge===void 0?[]:ge;Oe&&(Oe.forEach(function(Ae){return re.dateChoices.push(d(Ae,"mmmm yyyy",!0))}),this.setSelectedDate(this.dateChoices[0]),this.getData(Oe[0]))},te.render=function(){var re=this,fe=this.state,he=fe.data,ge=fe.selectedDate,Oe=fe.selectedIndex,Ae=(0,n.Oc)(),en=Ae.data.dates,Ve=this.dateChoices,hn=Ve.length>0&&(0,e.jsxs)(a.BJ,{mb:1,children:[(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(a.$n,{className:"Changelog__Button",disabled:Oe===0,icon:"chevron-left",onClick:function(){var Gn=Oe-1;return re.setData("Loading changelog data..."),re.setSelectedIndex(Gn),re.setSelectedDate(Ve[Gn]),window.scrollTo(0,document.body.scrollHeight||document.documentElement.scrollHeight),re.getData(en[Gn])}})}),(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(a.ms,{displayText:ge,options:Ve,onSelected:function(Gn){var Ye=Ve.indexOf(Gn);return re.setData("Loading changelog data..."),re.setSelectedIndex(Ye),re.setSelectedDate(Gn),window.scrollTo(0,document.body.scrollHeight||document.documentElement.scrollHeight),re.getData(en[Ye])},selected:ge,width:"150px"})}),(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(a.$n,{className:"Changelog__Button",disabled:Oe===Ve.length-1,icon:"chevron-right",onClick:function(){var Gn=Oe+1;return re.setData("Loading changelog data..."),re.setSelectedIndex(Gn),re.setSelectedDate(Ve[Gn]),window.scrollTo(0,document.body.scrollHeight||document.documentElement.scrollHeight),re.getData(en[Gn])}})})]}),yn=(0,e.jsxs)(a.wn,{children:[(0,e.jsx)("h1",{children:"Paradise Station"}),(0,e.jsxs)("p",{children:[(0,e.jsx)("b",{children:"Thanks to: "}),"Baystation 12, /tg/station, /vg/station, NTstation, CDK Station devs, FacepunchStation, GoonStation devs, the original SpaceStation developers and Radithor for the title image. Also a thanks to anybody who has contributed who is not listed here :( Ask to be added here on irc."]}),(0,e.jsxs)("p",{children:["Recent GitHub contributors can be found ",(0,e.jsx)("a",{href:"https://github.com/ss220-space/Paradise/pulse/monthly",children:"here"}),"."]}),hn]}),Bn=(0,e.jsxs)(a.wn,{children:[hn,(0,e.jsx)("h3",{children:"GoonStation 13 Development Team"}),(0,e.jsxs)("p",{children:[(0,e.jsx)("b",{children:"Coders: "}),"Stuntwaffle, Showtime, Pantaloons, Nannek, Keelin, Exadv1, hobnob, Justicefries, 0staf, sniperchance, AngriestIBM, BrianOBlivion"]}),(0,e.jsxs)("p",{children:[(0,e.jsx)("b",{children:"Spriters: "}),"Supernorn, Haruhi, Stuntwaffle, Pantaloons, Rho, SynthOrange, I Said No"]}),(0,e.jsxs)("p",{children:["Traditional Games Space Station 13 is thankful to the GoonStation 13 Development Team for its work on the game up to the"," r4407 release. The changelog for changes up to r4407 can be seen ",(0,e.jsx)("a",{href:"https://wiki.ss13.co/Pre-2016_Changelog#April_2010",children:"here"}),"."]}),(0,e.jsxs)("p",{children:["Except where otherwise noted, Goon Station 13 is licensed under a ",(0,e.jsx)("a",{href:"https://creativecommons.org/licenses/by-nc-sa/3.0/",children:"Creative Commons Attribution-Noncommercial-Share Alike 3.0 License"}),". Rights are currently extended to ",(0,e.jsx)("a",{href:"http://forums.somethingawful.com/",children:"SomethingAwful Goons"})," only."]}),(0,e.jsx)("h3",{children:"Traditional Games Space Station 13 License"}),(0,e.jsxs)("p",{children:["Some icons by"," ",(0,e.jsx)("a",{href:"http://p.yusukekamiyamane.com/",children:"Yusuke Kamiyamane"}),". All rights reserved. Licensed under a"," ",(0,e.jsx)("a",{href:"http://creativecommons.org/licenses/by/3.0/",children:"Creative Commons Attribution 3.0 License"}),"."]})]}),Fn=/#\d+/,mt=(typeof he>"u"?"undefined":Kt(he))==="object"&&Object.keys(he).length>0&&Object.entries(he).reverse().map(function(Gn){var Ye=Gn[0],sa=Gn[1];return(0,e.jsx)(a.wn,{title:d(Ye,"d mmmm yyyy",!0),children:(0,e.jsx)(a.az,{ml:3,children:Object.entries(sa).map(function(zo){var Vn=zo[0],Da=zo[1];return(0,e.jsxs)(t.Fragment,{children:[(0,e.jsxs)("h4",{children:[Vn," changed:"]}),(0,e.jsx)(a.az,{ml:3,children:(0,e.jsx)(a.XI,{children:Da.map(function(No){var Ni=Object.keys(No)[0],qi=No[Ni],ca=qi.match(Fn),Eo=(0,e.jsx)(a.XI.Cell,{className:(0,s.Ly)(["Changelog__Cell","Changelog__Cell--Icon"]),children:Ni.split("/").map(function(Wi){return(0,e.jsx)(a.In,{color:Ct[Wi]?Ct[Wi].color:Ct.unknown.color,name:Ct[Wi]?Ct[Wi].icon:Ct.unknown.icon},Wi)})});return ca!==null&&(0,e.jsxs)(a.XI.Row,{children:[Eo,(0,e.jsx)(a.XI.Cell,{className:"Changelog__Cell",children:(0,e.jsxs)("a",{href:"https://github.com/ss220-space/Paradise/pull/"+ca[0].substring(1),children:[" ",qi.charAt(0).toUpperCase()+qi.slice(1)," "]})})]},Ni+qi)||(0,e.jsxs)(a.XI.Row,{children:[Eo,(0,e.jsx)(a.XI.Cell,{className:"Changelog__Cell",children:qi})]},Ni+qi)})})})]},Vn)})})},Ye)});return(0,e.jsx)(b.p8,{title:"Changelog",width:675,height:650,children:(0,e.jsxs)(b.p8.Content,{scrollable:!0,className:"Changelog",children:[yn,mt,typeof he=="string"&&(0,e.jsx)("p",{children:he}),Bn]})})},J}(t.Component)},7003:(q,S,r)=>{"use strict";q.exports=r(6898)},7052:()=>{},7120:(q,S,r)=>{"use strict";r.r(S),r.d(S,{NinjaMindScan:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(O){return(0,e.jsx)(t.p8,{width:500,height:400,theme:"spider_clan",children:(0,e.jsx)(t.p8.Content,{className:"Layout__content--flexColumn",children:(0,e.jsx)(b,{})})})},b=function(O){var y=(0,s.Oc)(),u=y.act,f=y.data,m=f.occupantIcon,d=f.occupant_name,v=f.occupant_health,_=f.scanned_occupants,l=d==="none"?1:0;return(0,e.jsxs)(n.so,{direction:"column",shrink:1,alignContent:"left",children:[(0,e.jsx)(n.wn,{title:"\u041F\u0430\u0446\u0438\u0435\u043D\u0442",backgroundColor:"rgba(0, 0, 0, 0.4)",buttons:(0,e.jsx)(n.$n,{tooltip:"\u041E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0432\u043D\u0435\u0448\u043D\u0435\u0433\u043E \u0432\u0438\u0434\u0430 \u0438 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u044F \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430 \u0432 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u0435.",tooltipPosition:"left",children:"?"}),children:(0,e.jsxs)(n.so,{direction:"row",shrink:1,alignContent:"left",children:[(0,e.jsx)(n.so.Item,{shrink:1,alignContent:"left",children:(0,e.jsx)(n.IC,{className:"NoticeBox_blue",width:"90px",align:"left",children:(0,e.jsx)(n.wn,{style:{background:"rgba(4, 74, 27, 0.75)"},align:"left",mb:-1,children:(0,e.jsx)(n._V,{height:"128px",width:"128px",src:"data:image/jpeg;base64,"+m,ml:"-28px"})})})}),(0,e.jsxs)(n.so.Item,{grow:1,alignContent:"right",children:[(0,e.jsx)(n.IC,{className:"NoticeBox_green",align:"left",ml:1,children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"\u0418\u043C\u044F",children:d}),(0,e.jsx)(n.Ki.Item,{label:"\u0417\u0434\u043E\u0440\u043E\u0432\u044C\u0435",children:v})]})}),(0,e.jsxs)(n.IC,{className:"NoticeBox_red",mt:2.5,align:"center",ml:1,children:[(0,e.jsx)(n.$n,{className:l===0?"":"Button_disabled",width:"250px",textAlign:"center",disabled:l,tooltip:"\u0421\u043A\u0430\u043D\u0438\u0440\u0443\u0435\u0442 \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430 \u0438 \u043F\u044B\u0442\u0430\u0435\u0442\u0441\u044F \u0434\u043E\u0431\u044B\u0442\u044C \u0438\u0437 \u0435\u0433\u043E \u0440\u0430\u0437\u0443\u043C\u0430 \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u0443\u044E \u043A\u043B\u0430\u043D\u0443 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044E.",tooltipPosition:"bottom-start",onClick:function(){return u("scan_occupant")},children:"\u041D\u0430\u0447\u0430\u0442\u044C \u0441\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435"}),(0,e.jsx)(n.$n,{className:l===0?"":"Button_disabled",width:"250px",textAlign:"center",disabled:l,tooltip:"\u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E, \u0432\u044B\u043F\u0443\u0441\u043A\u0430\u044F \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430 \u0438\u0437 \u043A\u0430\u043F\u0441\u0443\u043B\u044B",tooltipPosition:"bottom-start",onClick:function(){return u("go_out")},children:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E"}),(0,e.jsx)(n.$n,{className:l===0?"":"Button_disabled",width:"250px",textAlign:"center",disabled:l,tooltip:"\u0422\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0438\u0440\u0443\u0435\u0442 \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430 \u043E\u0431\u0440\u0430\u0442\u043D\u043E \u043D\u0430 \u043E\u0431\u044C\u0435\u043A\u0442 \u0441 \u043A\u043E\u0442\u043E\u0440\u043E\u0433\u043E \u043E\u043D \u0431\u044B\u043B \u043F\u043E\u0445\u0438\u0449\u0435\u043D. \u0420\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0443\u0435\u043C \u043A\u0430\u043A \u0441\u043B\u0435\u0434\u0443\u0435\u0442 \u0435\u0433\u043E \u0437\u0430\u043F\u0443\u0433\u0430\u0442\u044C \u043F\u0435\u0440\u0435\u0434 \u044D\u0442\u0438\u043C, \u0447\u0442\u043E\u0431\u044B \u043E\u043D \u043D\u0435 \u0440\u0430\u0437\u0431\u043E\u043B\u0442\u0430\u043B \u043E \u0432\u0430\u0441.",tooltipPosition:"bottom-start",onClick:function(){return u("teleport_out")},children:"\u0422\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0430\u0446\u0438\u044F \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430"})]})]})]})}),(0,e.jsx)(n.wn,{title:"\u0421\u043F\u0438\u0441\u043E\u043A \u0443\u0436\u0435 \u043F\u0440\u043E\u0441\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0445 \u0432\u0430\u043C\u0438 \u043B\u044E\u0434\u0435\u0439",align:"center",backgroundColor:"rgba(0, 0, 0, 0.4)",children:(0,e.jsx)(n.az,{maxHeight:15,overflowY:"auto",overflowX:"hidden",children:(0,e.jsx)(n.XI,{m:"0.5rem",children:_.map(function(c){return(0,e.jsx)(n.XI.Row,{children:(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.az,{children:c.scanned_occupant})})},c.scanned_occupant)})})})})]})}},7152:(q,S,r)=>{"use strict";r.r(S),r.d(S,{AirlockAccessController:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(b){var O=(0,s.Oc)(),y=O.act,u=O.data,f=u.exterior_status,m=u.interior_status,d=u.processing,v,_;return f==="open"?v=(0,e.jsx)(n.$n,{width:"50%",icon:"exclamation-triangle",disabled:d,onClick:function(){return y("force_ext")},children:"Lock Exterior Door"}):v=(0,e.jsx)(n.$n,{width:"50%",icon:"arrow-circle-left",disabled:d,onClick:function(){return y("cycle_ext_door")},children:"Cycle to Exterior"}),m==="open"?_=(0,e.jsx)(n.$n,{width:"49%",icon:"exclamation-triangle",disabled:d,color:m==="open"?"red":d?"yellow":null,onClick:function(){return y("force_int")},children:"Lock Interior Door"}):_=(0,e.jsx)(n.$n,{width:"49%",icon:"arrow-circle-right",disabled:d,onClick:function(){return y("cycle_int_door")},children:"Cycle to Interior"}),(0,e.jsx)(t.p8,{width:330,height:200,children:(0,e.jsxs)(t.p8.Content,{children:[(0,e.jsx)(n.wn,{title:"Information",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"External Door Status",children:f==="closed"?"Locked":"Open"}),(0,e.jsx)(n.Ki.Item,{label:"Internal Door Status",children:m==="closed"?"Locked":"Open"})]})}),(0,e.jsx)(n.wn,{title:"Actions",children:(0,e.jsxs)(n.az,{children:[v,_]})})]})})}},7168:(q,S,r)=>{"use strict";r.r(S),r.d(S,{pda_manifest:()=>n});var e=r(1131),s=r(3261),n=function(t){return(0,e.jsx)(s.CrewManifest,{})}},7201:(q,S,r)=>{"use strict";r.r(S),r.d(S,{APC:()=>b});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=r(6186),b=function(f){return(0,e.jsx)(t.p8,{width:510,height:435,children:(0,e.jsx)(t.p8.Content,{children:(0,e.jsx)(u,{})})})},O={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"}},y={1:{icon:"terminal",content:"Override Programming",action:"hack"},2:{icon:"caret-square-down",content:"Shunt Core Process",action:"occupy"},3:{icon:"caret-square-left",content:"Return to Main Core",action:"deoccupy"},4:{icon:"caret-square-down",content:"Shunt Core Process",action:"occupy"}},u=function(f){var m=(0,s.Oc)(),d=m.act,v=m.data,_=v.locked&&!v.siliconUser,l=O[v.externalPower]||O[0],c=O[v.chargingStatus]||O[0],h=v.powerChannels||[],g=y[v.malfStatus]||y[0],p=v.powerCellStatus/100;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.InterfaceLockNoticeBox,{}),(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:l.color,buttons:(0,e.jsx)(n.$n,{icon:v.isOperating?"power-off":"times",selected:v.isOperating&&!_,color:v.isOperating?"":"bad",disabled:_,onClick:function(){return d("breaker")},children:v.isOperating?"On":"Off"}),children:["[ ",l.externalPowerText," ]"]}),(0,e.jsx)(n.Ki.Item,{label:"Power Cell",children:(0,e.jsx)(n.z2,{color:"good",value:p})}),(0,e.jsxs)(n.Ki.Item,{label:"Charge Mode",color:c.color,buttons:(0,e.jsx)(n.$n,{icon:v.chargeMode?"sync":"times",selected:v.chargeMode,disabled:_,onClick:function(){return d("charge")},children:v.chargeMode?"Auto":"Off"}),children:["[ ",c.chargingText," ]"]})]})}),(0,e.jsx)(n.wn,{title:"Power Channels",children:(0,e.jsxs)(n.Ki,{children:[h.map(function(j){var x=j.topicParams;return(0,e.jsxs)(n.Ki.Item,{label:j.title,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.az,{inline:!0,mx:2,color:j.status>=2?"good":"bad",children:j.status>=2?"On":"Off"}),(0,e.jsx)(n.$n,{icon:"sync",selected:!_&&(j.status===1||j.status===3),disabled:_,onClick:function(){return d("channel",x.auto)},children:"Auto"}),(0,e.jsx)(n.$n,{icon:"power-off",selected:!_&&j.status===2,disabled:_,onClick:function(){return d("channel",x.on)},children:"On"}),(0,e.jsx)(n.$n,{icon:"times",selected:!_&&j.status===0,disabled:_,onClick:function(){return d("channel",x.off)},children:"Off"})]}),children:[j.powerLoad," W"]},j.title)}),(0,e.jsx)(n.Ki.Item,{label:"Total Load",children:(0,e.jsxs)("b",{children:[v.totalLoad," W"]})})]})}),(0,e.jsx)(n.wn,{title:"Misc",buttons:!!v.siliconUser&&(0,e.jsxs)(e.Fragment,{children:[!!v.malfStatus&&(0,e.jsx)(n.$n,{icon:g.icon,color:"bad",onClick:function(){return d(g.action)},children:g.content}),(0,e.jsx)(n.$n,{icon:"lightbulb-o",onClick:function(){return d("overload")},children:"Overload"})]}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Cover Lock",buttons:(0,e.jsx)(n.$n,{mb:.4,icon:v.coverLocked?"lock":"unlock",disabled:_,onClick:function(){return d("cover")},children:v.coverLocked?"Engaged":"Disengaged"})}),(0,e.jsx)(n.Ki.Item,{label:"Night Shift Lighting",buttons:(0,e.jsx)(n.$n,{icon:"lightbulb-o",onClick:function(){return d("toggle_nightshift")},children:v.nightshiftLights?"Enabled":"Disabled"})}),(0,e.jsx)(n.Ki.Item,{label:"Emergency Lighting Fallback",buttons:(0,e.jsx)(n.$n,{mt:.4,icon:"lightbulb-o",disabled:_,onClick:function(){return d("emergency_lighting")},children:v.emergencyLights?"Engaged":"Disengaged"})})]})})]})}},7207:(q,S,r)=>{"use strict";r.r(S),r.d(S,{ChemHeater:()=>O});var e=r(1131),s=r(9818),n=r(360),t=r(5180),a=r(829),b=r(3521),O=function(f){return(0,e.jsx)(b.p8,{width:450,height:275,children:(0,e.jsx)(b.p8.Content,{children:(0,e.jsxs)(t.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(y,{}),(0,e.jsx)(u,{})]})})})},y=function(f){var m=(0,n.Oc)(),d=m.act,v=m.data,_=v.targetTemp,l=v.targetTempReached,c=v.autoEject,h=v.isActive,g=v.currentTemp,p=v.isBeakerLoaded;return(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.wn,{fill:!0,title:"\u041F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:c?"toggle-on":"toggle-off",selected:c,onClick:function(){return d("toggle_autoeject")},children:"\u0410\u0432\u0442\u043E-\u0438\u0437\u0432\u043B\u0435\u0447\u0435\u043D\u0438\u0435"}),(0,e.jsx)(t.$n,{icon:"power-off",selected:h,disabled:!p,onClick:function(){return d("toggle_on")},children:h?"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u043E":"\u0412\u044B\u043A\u043B\u044E\u0447\u0435\u043D\u043E"})]}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"\u0426\u0435\u043B\u0435\u0432\u0430\u044F \u0442\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430",children:(0,e.jsx)(t.Q7,{width:"65px",unit:"K",step:10,stepPixelSize:3,value:(0,s.LI)(_,0),minValue:0,maxValue:1e3,onDrag:function(j){return d("adjust_temperature",{target:j})}})}),(0,e.jsx)(t.Ki.Item,{label:"\u0422\u0435\u043A\u0443\u0449\u0430\u044F \u0442\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430",color:l?"good":"average",children:p&&(0,e.jsx)(t.zv,{value:g,format:function(j){return(0,s.Mg)(j)+" K"}})||"\u2014"})]})})})},u=function(f){var m=(0,n.Oc)(),d=m.act,v=m.data,_=v.isBeakerLoaded,l=v.beakerCurrentVolume,c=v.beakerMaxVolume,h=v.beakerContents;return(0,e.jsx)(t.BJ.Item,{grow:!0,children:(0,e.jsx)(t.wn,{title:"\u0401\u043C\u043A\u043E\u0441\u0442\u044C",fill:!0,scrollable:!0,buttons:!!_&&(0,e.jsxs)(t.az,{children:[(0,e.jsxs)(t.az,{inline:!0,color:"label",mr:2,children:[l," / ",c," \u0435\u0434\u0438\u043D\u0438\u0446"]}),(0,e.jsx)(t.$n,{icon:"eject",onClick:function(){return d("eject_beaker")},children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C"})]}),children:(0,e.jsx)(a.BeakerContents,{beakerLoaded:_,beakerContents:h})})})}},7216:(q,S,r)=>{"use strict";r.r(S),r.d(S,{SortType:()=>e});var e=function(s){return s[s.Name=0]="Name",s[s.Cost=1]="Cost",s[s.InitOrder=2]="InitOrder",s[s.LastFire=3]="LastFire",s[s.NextFire=4]="NextFire",s[s.TickUsage=5]="TickUsage",s[s.TickOverrun=6]="TickOverrun",s}({})},7250:(q,S,r)=>{"use strict";r.r(S),r.d(S,{TransferValve:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(b){var O=(0,s.Oc)(),y=O.act,u=O.data,f=u.tank_one,m=u.tank_two,d=u.attached_device,v=u.valve;return(0,e.jsx)(t.p8,{width:460,height:320,children:(0,e.jsxs)(t.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:v?"unlock":"lock",disabled:!f||!m,onClick:function(){return y("toggle")},children:v?"Open":"Closed"})})})}),(0,e.jsx)(n.wn,{title:"Assembly",buttons:(0,e.jsx)(n.$n,{textAlign:"center",width:"150px",icon:"cog",disabled:!d,onClick:function(){return y("device")},children:"Configure Assembly"}),children:(0,e.jsx)(n.Ki,{children:d?(0,e.jsx)(n.Ki.Item,{label:"Attachment",children:(0,e.jsx)(n.$n,{icon:"eject",disabled:!d,onClick:function(){return y("remove_device")},children:d})}):(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:f?(0,e.jsx)(n.Ki.Item,{label:"Attachment",children:(0,e.jsx)(n.$n,{icon:"eject",disabled:!f,onClick:function(){return y("tankone")},children:f})}):(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:m?(0,e.jsx)(n.Ki.Item,{label:"Attachment",children:(0,e.jsx)(n.$n,{icon:"eject",disabled:!m,onClick:function(){return y("tanktwo")},children:m})}):(0,e.jsx)(n.IC,{textAlign:"center",children:"Attach Tank"})})})]})})}},7309:(q,S,r)=>{"use strict";r.r(S),r.d(S,{AlertPane:()=>O,InternalDamageToDamagedDesc:()=>a,InternalDamageToNormalDesc:()=>b});var e=r(1131),s=r(5180),n=r(360),t=r(78),a={MECHA_INT_FIRE:"\u0412\u043D\u0443\u0442\u0440\u0435\u043D\u043D\u0438\u0439 \u043F\u043E\u0436\u0430\u0440 \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D",MECHA_INT_TEMP_CONTROL:"\u0422\u0435\u0440\u043C\u043E\u0440\u0435\u0433\u0443\u043B\u044F\u0442\u043E\u0440 \u0432\u044B\u043A\u043B\u044E\u0447\u0435\u043D",MECHA_INT_TANK_BREACH:"\u041A\u0430\u0431\u0438\u043D\u0430 \u043F\u043E\u0432\u0440\u0435\u0436\u0434\u0435\u043D\u0430",MECHA_INT_CONTROL_LOST:"\u041C\u043E\u0442\u043E\u0440\u044B \u043F\u043E\u0432\u0440\u0435\u0436\u0434\u0435\u043D\u044B",MECHA_INT_SHORT_CIRCUIT:"\u041A\u043E\u0440\u043E\u0442\u043A\u043E\u0435 \u0437\u0430\u043C\u044B\u043A\u0430\u043D\u0438\u0435"},b={MECHA_INT_FIRE:"\u041F\u043E\u0436\u0430\u0440\u043E\u0432 \u043D\u0435 \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u043E",MECHA_INT_TEMP_CONTROL:"\u0422\u0435\u0440\u043C\u043E\u0440\u0435\u0433\u0443\u043B\u044F\u0442\u043E\u0440 \u0430\u043A\u0442\u0438\u0432\u0435\u043D",MECHA_INT_TANK_BREACH:"\u041A\u0430\u0431\u0438\u043D\u0430 \u0446\u0435\u043B\u0430",MECHA_INT_CONTROL_LOST:"\u041C\u043E\u0442\u043E\u0440\u044B \u0430\u043A\u0442\u0438\u0432\u043D\u044B",MECHA_INT_SHORT_CIRCUIT:"\u041F\u043B\u0430\u0442\u044B \u0440\u0430\u0431\u043E\u0442\u043E\u0441\u043F\u043E\u0441\u043E\u0431\u043D\u044B"},O=function(y){var u=(0,n.Oc)(),f=u.act,m=u.data,d=m.internal_damage,v=m.internal_damage_keys,_=m.internal_damage_fixable,l=m.ui_honked,c=(0,t.useHonk)(l?.4:0);return(0,e.jsx)(s.wn,{title:c("\u0421\u0442\u0430\u0442\u0443\u0441"),children:(0,e.jsx)(s.BJ,{vertical:!0,children:Object.keys(v).map(function(h){return(0,e.jsx)(s.BJ.Item,{children:(0,e.jsxs)(s.BJ,{justify:"space-between",children:[(0,e.jsx)(s.BJ.Item,{children:(0,e.jsxs)(s.az,{color:d&v[h]?"bad":"good",style:{textShadow:"1px 1px 0 black"},children:[(0,e.jsx)(s.In,{mr:1,name:d&v[h]?"warning":"check"}),c(d&v[h]?a[h]:b[h])]})}),!!(d&v[h]&&_[h])&&(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(s.$n,{my:"-4px",onClick:function(){return f("repair_int_damage",{flag:v[h]})},color:"red",children:"\u0420\u0435\u043C\u043E\u043D\u0442"})})]})},h)})})})}},7441:(q,S,r)=>{"use strict";r.r(S),r.d(S,{ColorPickerModal:()=>f});var e=r(1131),s=r(3384),n=r(360),t=r(7003),a=r(5180),b=r(3521),O=r(8589),y=r(30),u=r(2251);/** * @file * @copyright 2023 itsmeow * @license MIT - */var f=function(m){var d=(0,n.Oc)().data,v=d.timeout,_=d.message,l=d.title,c=d.autofocus,h=d.default_color,g=h===void 0?"#000000":h,p=(0,t.useState)((0,b.RV)(g)),j=p[0],x=p[1];return(0,e.jsxs)(O.p8,{height:400,title:l,width:600,theme:"generic",children:[!!v&&(0,e.jsx)(s.Loader,{value:v}),(0,e.jsx)(O.p8.Content,{children:(0,e.jsxs)(a.BJ,{fill:!0,vertical:!0,children:[_&&(0,e.jsx)(a.BJ.Item,{m:1,children:(0,e.jsx)(a.wn,{fill:!0,children:(0,e.jsx)(a.az,{color:"label",overflow:"hidden",children:_})})}),(0,e.jsx)(a.BJ.Item,{grow:!0,children:(0,e.jsxs)(a.wn,{fill:!0,children:[!!c&&(0,e.jsx)(a.y5,{}),(0,e.jsx)(u.ColorSelector,{color:j,setColor:x,defaultColor:g})]})}),(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(y.InputButtons,{input:(0,b.D9)(j)})})]})})]})}},7502:(q,S,r)=>{"use strict";r.r(S),r.d(S,{pai_doorjack:()=>t});var e=r(1131),s=r(360),n=r(5180),t=function(a){var O=(0,s.Oc)(),b=O.act,y=O.data,u=y.app_data,f=u.cable,m=u.machine,d=u.inprogress,v;m?v=(0,e.jsx)(n.$n,{selected:!0,content:"Connected"}):v=(0,e.jsx)(n.$n,{color:f?"orange":null,onClick:function(){return b("cable")},children:f?"Extended":"Retracted"});var _;return m&&(_=(0,e.jsxs)(n.Ki.Item,{label:"Hack",children:[(0,e.jsxs)(n.az,{color:d?"green":"red",children:[" ","In progress: ",d?"Yes":"No"," "]}),d?(0,e.jsx)(n.$n,{mt:1,color:"red",onClick:function(){return b("cancel")},children:"Abort"}):(0,e.jsx)(n.$n,{mt:1,onClick:function(){return b("jack")},children:"Start"})]})),(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Cable",children:v}),_]})}},7581:(q,S,r)=>{"use strict";r.r(S),r.d(S,{DevilInfo:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(O){var b=(0,s.Oc)().data,y=b.true_name,u=b.ban,f=b.banish,m=b.obligation,d=b.bane,v=b.souls_count,_=b.sacrifice_count,l=b.rank,c=b.next_rank,h=b.required_souls,g=b.sacrifice_required,p=b.ritual_required;return(0,e.jsx)(t.p8,{theme:"infernal",children:(0,e.jsxs)(t.p8.Content,{children:[(0,e.jsx)(n.wn,{title:"\u0418\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F \u043E \u0434\u044C\u044F\u0432\u043E\u043B\u0435",children:(0,e.jsxs)(n.BJ,{vertical:!0,zebra:!0,children:[(0,e.jsxs)(n.BJ.Item,{p:1,children:["\u0418\u0441\u0442\u0438\u043D\u043D\u043E\u0435 \u0438\u043C\u044F: ",(0,e.jsx)("b",{children:y})]}),(0,e.jsxs)(n.BJ.Item,{p:1,children:["\u0417\u0430\u043F\u0440\u0435\u0442: ",(0,e.jsx)("b",{children:u})]}),(0,e.jsxs)(n.BJ.Item,{p:1,children:["\u041E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u044C\u0441\u0442\u0432\u043E: ",(0,e.jsx)("b",{children:m})]}),(0,e.jsxs)(n.BJ.Item,{p:1,children:["\u0421\u043B\u0430\u0431\u043E\u0441\u0442\u044C: ",(0,e.jsx)("b",{children:d})]}),(0,e.jsxs)(n.BJ.Item,{p:1,children:["\u0418\u0437\u0433\u043D\u0430\u043D\u0438\u0435: ",(0,e.jsx)("b",{children:f})]}),(0,e.jsxs)(n.BJ.Item,{p:1,children:["\u0421\u043E\u0431\u0440\u0430\u043D\u043E \u0434\u0443\u0448/\u041F\u0440\u0438\u043D\u0435\u0441\u0435\u043D\u043E \u0436\u0435\u0440\u0442\u0432:"," ",(0,e.jsxs)("b",{children:[v,"/",_]})]})]})}),(0,e.jsxs)(n.wn,{title:"\u0420\u0430\u043D\u0433",children:[" ",(0,e.jsxs)(n.BJ,{vertical:!0,zebra:!0,children:[(0,e.jsxs)(n.BJ.Item,{p:1,children:["\u0422\u0435\u043A\u0443\u0449\u0438\u0439 \u0440\u0430\u043D\u0433: ",(0,e.jsx)("b",{children:l})]}),(0,e.jsxs)(n.BJ.Item,{p:1,children:["\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0439 \u0440\u0430\u043D\u0433: ",(0,e.jsx)("b",{children:c})]}),(0,e.jsxs)(n.BJ.Item,{p:1,children:["\u041D\u0435\u043E\u0431\u0445\u0434\u0438\u043C\u043E \u0434\u0443\u0448: ",(0,e.jsx)("b",{children:h})]}),(0,e.jsxs)(n.BJ.Item,{p:1,children:["\u041D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u043E \u0436\u0435\u0440\u0442\u0432:",(0,e.jsx)("b",{children:g})]}),(0,e.jsxs)(n.BJ.Item,{p:1,children:["\u041D\u0443\u0436\u0435\u043D \u0440\u0438\u0442\u0443\u0430\u043B \u0432\u043E\u0437\u0432\u044B\u0448\u0435\u043D\u0438\u044F:"," ",(0,e.jsx)("span",{style:{color:p?"green":"red"},children:(0,e.jsx)("b",{children:p?"\u0414\u0430":"\u041D\u0435\u0442"})})]})]})]})]})})}},7625:(q,S,r)=>{"use strict";r.r(S),r.d(S,{ExternalAirlockController:()=>y});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=0,O=1013,b=function(u){var f="good",m=80,d=95,v=110,_=120;return uv?f="average":u>_&&(f="bad"),f},y=function(u){var f=(0,s.Oc)(),m=f.act,d=f.data,v=d.chamber_pressure,_=d.exterior_status,l=d.interior_status,c=d.processing;return(0,e.jsx)(t.p8,{width:470,height:290,children:(0,e.jsxs)(t.p8.Content,{children:[(0,e.jsx)(n.wn,{title:"Information",children:(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Chamber Pressure",children:(0,e.jsxs)(n.z2,{color:b(v),value:v,minValue:a,maxValue:O,children:[v," kPa"]})})})}),(0,e.jsxs)(n.wn,{title:"Actions",children:[(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.$n,{icon:"arrow-circle-left",disabled:c,onClick:function(){return m("cycle_ext")},children:"Cycle to Exterior"}),(0,e.jsx)(n.$n,{icon:"arrow-circle-right",disabled:c,onClick:function(){return m("cycle_int")},children:"Cycle to Interior"})]}),(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.$n,{icon:"exclamation-triangle",color:_==="open"?"red":c?"yellow":null,onClick:function(){return m("force_ext")},children:"Force Exterior Door"}),(0,e.jsx)(n.$n,{icon:"exclamation-triangle",color:l==="open"?"red":c?"yellow":null,onClick:function(){return m("force_int")},children:"Force Interior Door"})]}),(0,e.jsx)(n.az,{children:(0,e.jsx)(n.$n,{icon:"ban",color:"red",disabled:!c,onClick:function(){return m("abort")},children:"Abort"})})]})]})})}},7636:(q,S,r)=>{"use strict";r.r(S),r.d(S,{ParticleAccelerator:()=>b});var e=r(1131),s=r(360),n=r(5180),t=r(9845),a=r(3521),O=function(f){switch(f){case 1:return"north";case 2:return"south";case 4:return"east";case 8:return"west";case 5:return"northeast";case 6:return"southeast";case 9:return"northwest";case 10:return"southwest"}return""},b=function(f){var m=(0,s.Oc)(),d=m.act,v=m.data,_=v.assembled,l=v.power,c=v.strength,h=v.max_strength,g=v.orientation;return(0,e.jsx)(a.p8,{width:395,height:_?160:g==="north"||g==="south"?540:465,children:(0,e.jsxs)(a.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{title:"Control Panel",buttons:(0,e.jsx)(n.$n,{icon:"sync",onClick:function(){return d("scan")},children:"Connect"}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Status",children:(0,e.jsx)(n.az,{color:_?"good":"bad",children:_?"Operational":"Error: Verify Configuration"})}),(0,e.jsx)(n.Ki.Item,{label:"Power",children:(0,e.jsx)(n.$n,{icon:l?"power-off":"times",selected:l,disabled:!_,onClick:function(){return d("power")},children:l?"On":"Off"})}),(0,e.jsxs)(n.Ki.Item,{label:"Strength",children:[(0,e.jsx)(n.$n,{icon:"backward",disabled:!_||c===0,onClick:function(){return d("remove_strength")},mr:"4px"}),c,(0,e.jsx)(n.$n,{icon:"forward",disabled:!_||c===h,onClick:function(){return d("add_strength")},ml:"4px"})]})]})}),_?"":(0,e.jsx)(n.wn,{title:g?"EM Acceleration Chamber Orientation: "+(0,t.ZH)(g):"Place EM Acceleration Chamber Next To Console",children:g?g==="north"||g==="south"?(0,e.jsx)(u,{}):(0,e.jsx)(y,{}):""})]})})},y=function(f){var m=(0,s.Oc)().data,d=m.icon,v=m.layout_1,_=m.layout_2,l=m.layout_3,c=m.orientation;return(0,e.jsxs)(n.XI,{children:[(0,e.jsx)(n.XI.Row,{width:"40px",children:(c==="east"?v.reverse():l).map(function(h){return(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.c_,{dmIcon:d,dmIconState:h.icon_state,dmDirection:Number(h.dir),tooltip:(0,e.jsxs)("span",{style:{wordWrap:"break-word"},children:[h.name," ",(0,e.jsx)("br",{})," ","Status: "+h.status,(0,e.jsx)("br",{}),"Direction: "+O(h.dir)]}),tooltipPosition:"right",style:{borderStyle:"solid",borderWidth:"2px",borderColor:h.status==="good"?"green":h.status==="Incomplete"?"orange":"red",padding:"2px"}})},h.name)})}),(0,e.jsx)(n.XI.Row,{width:"40px",children:(c==="east"?_.reverse():_).map(function(h){return(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.c_,{dmIcon:d,dmIconState:h.icon_state,dmDirection:h.dir,tooltip:(0,e.jsxs)("span",{style:{wordWrap:"break-word"},children:[h.name," ",(0,e.jsx)("br",{})," ","Status: "+h.status,(0,e.jsx)("br",{}),"Direction: "+O(h.dir)]}),tooltipPosition:"right",style:{borderStyle:"solid",borderWidth:"2px",borderColor:h.status==="good"?"green":h.status==="Incomplete"?"orange":"red",padding:"2px"}})},h.name)})}),(0,e.jsx)(n.XI.Row,{width:"40px",children:(c==="east"?l.reverse():v).map(function(h){return(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.c_,{dmIcon:d,dmIconState:h.icon_state,dmDirection:h.dir,tooltip:(0,e.jsxs)("span",{style:{wordWrap:"break-word"},children:[h.name," ",(0,e.jsx)("br",{})," ","Status: "+h.status,(0,e.jsx)("br",{}),"Direction: "+O(h.dir)]}),tooltipPosition:"right",style:{borderStyle:"solid",borderWidth:"2px",borderColor:h.status==="good"?"green":h.status==="Incomplete"?"orange":"red",padding:"2px"}})},h.name)})})]})},u=function(f){var m=(0,s.Oc)().data,d=m.icon,v=m.layout_1,_=m.layout_2,l=m.layout_3,c=m.orientation;return(0,e.jsxs)(n.xA,{children:[(0,e.jsx)(n.xA.Column,{width:"40px",children:(c==="north"?v.reverse():l).map(function(h){return(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(n.c_,{dmIcon:d,dmIconState:h.icon_state,dmDirection:h.dir,tooltip:(0,e.jsxs)("span",{style:{wordWrap:"break-word"},children:[h.name," ",(0,e.jsx)("br",{})," ","Status: "+h.status,(0,e.jsx)("br",{}),"Direction: "+O(h.dir)]}),tooltipPosition:"right",style:{borderStyle:"solid",borderWidth:"2px",borderColor:h.status==="good"?"green":h.status==="Incomplete"?"orange":"red",padding:"2px"}})},h.name)})}),(0,e.jsx)(n.xA.Column,{children:(c==="north"?_.reverse():_).map(function(h){return(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(n.c_,{dmIcon:d,dmIconState:h.icon_state,dmDirection:h.dir,tooltip:(0,e.jsxs)("span",{style:{wordWrap:"break-word"},children:[h.name," ",(0,e.jsx)("br",{})," ","Status: "+h.status,(0,e.jsx)("br",{}),"Direction: "+O(h.dir)]}),tooltipPosition:"right",style:{borderStyle:"solid",borderWidth:"2px",borderColor:h.status==="good"?"green":h.status==="Incomplete"?"orange":"red",padding:"2px"}})},h.name)})}),(0,e.jsx)(n.xA.Column,{width:"40px",children:(c==="north"?l.reverse():v).map(function(h){return(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(n.c_,{dmIcon:d,dmIconState:h.icon_state,dmDirection:h.dir,tooltip:(0,e.jsxs)("span",{style:{wordWrap:"break-word"},children:[h.name," ",(0,e.jsx)("br",{})," ","Status: "+h.status,(0,e.jsx)("br",{}),"Direction: "+O(h.dir)]}),tooltipPosition:"right",style:{borderStyle:"solid",borderWidth:"2px",borderColor:h.status==="good"?"green":h.status==="Incomplete"?"orange":"red",padding:"2px"}})},h.name)})})]})}},7761:(q,S,r)=>{"use strict";r.r(S),r.d(S,{pda_secbot:()=>t});var e=r(1131),s=r(360),n=r(5180),t=function(b){var y=(0,s.Oc)().data,u=y.beepsky,f=u.active;return(0,e.jsx)(n.az,{children:f?(0,e.jsx)(O,{}):(0,e.jsx)(a,{})})},a=function(b){var y=(0,s.Oc)(),u=y.act,f=y.data,m=f.beepsky,d=m.bots;return(0,e.jsxs)(n.az,{children:[d.map(function(v){return(0,e.jsx)(n.az,{children:(0,e.jsx)(n.$n,{icon:"cog",onClick:function(){return u("AccessBot",{uid:v.uid})},children:v.Name})},v.Name)}),(0,e.jsx)(n.az,{mt:2,children:(0,e.jsx)(n.$n,{fluid:!0,icon:"rss",onClick:function(){return u("Rescan")},children:"Re-scan for bots"})})]})},O=function(b){var y=(0,s.Oc)(),u=y.act,f=y.data,m=f.beepsky,d=m.botstatus,v=m.active,_=d.mode,l=d.loca,c;switch(_){case 0:c="Ready";break;case 1:c="Apprehending target";break;case 2:case 3:c="Arresting target";break;case 4:c="Starting patrol";break;case 5:c="On patrol";break;case 6:c="Responding to summons";break}return(0,e.jsxs)(n.wn,{title:v,children:[_===-1&&(0,e.jsx)(n.az,{color:"red",bold:!0,children:"Waiting for response..."}),(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Location",children:l}),(0,e.jsx)(n.Ki.Item,{label:"Status",children:c}),(0,e.jsxs)(n.Ki.Item,{label:"Controls",children:[(0,e.jsx)(n.$n,{icon:"play",onClick:function(){return u("Go")},children:"Go"}),(0,e.jsx)(n.$n,{icon:"stop",onClick:function(){return u("Stop")},children:"Stop"}),(0,e.jsx)(n.$n,{icon:"arrow-down",onClick:function(){return u("Summon")},children:"Summon"})]})]})]})}},7785:(q,S,r)=>{"use strict";r.r(S),r.d(S,{Mimicking:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(O){var b=(0,s.Oc)(),y=b.act,u=b.data,f=u.slots||[];return(0,e.jsx)(t.p8,{width:400,height:300,theme:"honker",children:(0,e.jsx)(t.p8.Content,{scrollable:!0,children:(0,e.jsx)(n.BJ,{vertical:!0,fill:!0,children:(0,e.jsxs)(n.wn,{fill:!0,scrollable:!0,children:[f.map(function(m){return(0,e.jsx)(n.wn,{mb:.5,title:m.name,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{selected:m.selected,onClick:function(){return y("Choose",{id:m.id})},children:"Choose"}),(0,e.jsx)(n.$n,{color:"bad",onClick:function(){return y("Delete",{id:m.id})},children:"Delete"})]}),children:(0,e.jsxs)(n.az,{preserveWhitespace:!0,textColor:"#878787",fontSize:"14px",children:["Voice: ",m.voice]})},m.id)}),(0,e.jsx)(n.$n,{fluid:!0,onClick:function(){return y("Add")},children:"Add"})]})})})})}},7818:(q,S,r)=>{"use strict";r.r(S),r.d(S,{KeycardAuth:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(O){var b=(0,s.Oc)(),y=b.act,u=b.data,f=(0,e.jsx)(n.wn,{title:"Keycard Authentication Device",children:(0,e.jsx)(n.az,{children:"This device is used to trigger certain high security events. It requires the simultaneous swipe of two high-level ID cards."})});if(!u.swiping&&!u.busy)return(0,e.jsx)(t.p8,{width:540,height:280,children:(0,e.jsxs)(t.p8.Content,{children:[f,(0,e.jsx)(n.wn,{title:"Choose Action",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Red Alert",children:(0,e.jsx)(n.$n,{icon:"exclamation-triangle",disabled:!u.redAvailable,onClick:function(){return y("triggerevent",{triggerevent:"Red Alert"})},children:"Red Alert"})}),(0,e.jsx)(n.Ki.Item,{label:"ERT",children:(0,e.jsx)(n.$n,{icon:"broadcast-tower",onClick:function(){return y("triggerevent",{triggerevent:"Emergency Response Team"})},children:"Call ERT"})}),(0,e.jsxs)(n.Ki.Item,{label:"Emergency Maint Access",children:[(0,e.jsx)(n.$n,{icon:"door-open",onClick:function(){return y("triggerevent",{triggerevent:"Grant Emergency Maintenance Access"})},children:"Grant"}),(0,e.jsx)(n.$n,{icon:"door-closed",onClick:function(){return y("triggerevent",{triggerevent:"Revoke Emergency Maintenance Access"})},children:"Revoke"})]}),(0,e.jsxs)(n.Ki.Item,{label:"Emergency Station-Wide Access",children:[(0,e.jsx)(n.$n,{icon:"door-open",onClick:function(){return y("triggerevent",{triggerevent:"Activate Station-Wide Emergency Access"})},children:"Grant"}),(0,e.jsx)(n.$n,{icon:"door-closed",onClick:function(){return y("triggerevent",{triggerevent:"Deactivate Station-Wide Emergency Access"})},children:"Revoke"})]})]})})]})});var m=(0,e.jsx)(n.az,{color:"red",children:"Waiting for YOU to swipe your ID..."});return!u.hasSwiped&&!u.ertreason&&u.event==="Emergency Response Team"?m=(0,e.jsx)(n.az,{color:"red",children:"Fill out the reason for your ERT request."}):u.hasConfirm?m=(0,e.jsx)(n.az,{color:"green",children:"Request Confirmed!"}):u.isRemote?m=(0,e.jsx)(n.az,{color:"orange",children:"Swipe your card to CONFIRM the remote request."}):u.hasSwiped&&(m=(0,e.jsx)(n.az,{color:"orange",children:"Waiting for second person to confirm..."})),(0,e.jsx)(t.p8,{width:540,height:265,children:(0,e.jsxs)(t.p8.Content,{children:[f,u.event==="Emergency Response Team"&&(0,e.jsx)(n.wn,{title:"Reason for ERT Call",children:(0,e.jsx)(n.az,{children:(0,e.jsx)(n.$n,{color:u.ertreason?"":"red",icon:u.ertreason?"check":"pencil-alt",disabled:u.busy,onClick:function(){return y("ert")},children:u.ertreason?u.ertreason:"-----"})})}),(0,e.jsx)(n.wn,{title:u.event,buttons:(0,e.jsx)(n.$n,{icon:"arrow-circle-left",disabled:u.busy||u.hasConfirm,onClick:function(){return y("reset")},children:"Back"}),children:m})]})})}},7865:(q,S,r)=>{var e={"./pda_atmos_scan.tsx":8433,"./pda_janitor.tsx":2476,"./pda_main_menu.tsx":4468,"./pda_manifest.tsx":7168,"./pda_medical.tsx":4342,"./pda_messenger.tsx":5286,"./pda_mule.tsx":9804,"./pda_notes.tsx":8776,"./pda_power.tsx":9076,"./pda_request_console.tsx":6762,"./pda_secbot.tsx":7761,"./pda_security.tsx":8633,"./pda_signaler.tsx":9794,"./pda_status_display.tsx":8438,"./pda_supplyrecords.tsx":226};function s(t){var a=n(t);return r(a)}function n(t){if(!r.o(e,t)){var a=new Error("Cannot find module '"+t+"'");throw a.code="MODULE_NOT_FOUND",a}return e[t]}s.keys=function(){return Object.keys(e)},s.resolve=n,q.exports=s,s.id=7865},7890:(q,S,r)=>{"use strict";r.r(S),r.d(S,{GasAnalyzer:()=>b,GasAnalyzerContent:()=>a,GasAnalyzerHistory:()=>O});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(y){var u=(0,s.Oc)(),f=u.act,m=u.data,d=m.gasmixes,v=m.autoUpdating;return(0,e.jsx)(n.wn,{title:d[0].name,buttons:(0,e.jsx)(n.$n,{icon:v?"unlock":"lock",onClick:function(){return f("autoscantoggle")},tooltip:v?"Auto-Update Enabled":"Auto-Update Disabled",fluid:!0,textAlign:"center",selected:v}),children:d[0].total_moles?(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Total Moles",children:(d[0].total_moles?d[0].total_moles:"-")+" mol"}),d[0].oxygen?(0,e.jsx)(n.Ki.Item,{label:"Oxygen",children:d[0].oxygen.toFixed(2)+" mol ("+(d[0].oxygen/d[0].total_moles*100).toFixed(2)+" %)"}):"",d[0].nitrogen?(0,e.jsx)(n.Ki.Item,{label:"Nitrogen",children:d[0].nitrogen.toFixed(2)+" mol ("+(d[0].nitrogen/d[0].total_moles*100).toFixed(2)+" %)"}):"",d[0].carbon_dioxide?(0,e.jsx)(n.Ki.Item,{label:"Carbon Dioxide",children:d[0].carbon_dioxide.toFixed(2)+" mol ("+(d[0].carbon_dioxide/d[0].total_moles*100).toFixed(2)+" %)"}):"",d[0].plasma?(0,e.jsx)(n.Ki.Item,{label:"Plasma",children:d[0].plasma.toFixed(2)+" mol ("+(d[0].plasma/d[0].total_moles*100).toFixed(2)+" %)"}):"",d[0].nitrous_oxide?(0,e.jsx)(n.Ki.Item,{label:"Nitrous Oxide",children:d[0].nitrous_oxide.toFixed(2)+" mol ("+(d[0].nitrous_oxide/d[0].total_moles*100).toFixed(2)+" %)"}):"",d[0].hydrogen?(0,e.jsx)(n.Ki.Item,{label:"Hydrogen",children:d[0].hydrogen.toFixed(2)+" mol ("+(d[0].hydrogen/d[0].total_moles*100).toFixed(2)+" %)"}):"",d[0].water_vapor?(0,e.jsx)(n.Ki.Item,{label:"Water Vapor",children:d[0].water_vapor.toFixed(2)+" mol ("+(d[0].water_vapor/d[0].total_moles*100).toFixed(2)+" %)"}):"",d[0].agent_b?(0,e.jsx)(n.Ki.Item,{label:"Agent B",children:d[0].agent_b.toFixed(2)+" mol ("+(d[0].agent_b/d[0].total_moles*100).toFixed(2)+" %)"}):"",(0,e.jsx)(n.Ki.Item,{label:"Temperature",children:(d[0].total_moles?(d[0].temperature-273.15).toFixed(2):"-")+" \xB0C ("+(d[0].total_moles?d[0].temperature.toFixed(2):"-")+" K)"}),(0,e.jsx)(n.Ki.Item,{label:"Volume",children:(d[0].total_moles?d[0].volume:"-")+" L"}),(0,e.jsx)(n.Ki.Item,{label:"Pressure",children:(d[0].total_moles?d[0].pressure.toFixed(2):"-")+" kPa"}),(0,e.jsx)(n.Ki.Item,{label:"Heat Capacity",children:d[0].heat_capacity+" / K"}),(0,e.jsx)(n.Ki.Item,{label:"Thermal Energy",children:d[0].thermal_energy})]}):(0,e.jsx)(n.az,{nowrap:!0,italic:!0,mb:"10px",children:"No Gas Detected!"})},d[0])},O=function(y){var u=(0,s.Oc)(),f=u.act,m=u.data,d=m.historyGasmixes,v=m.historyViewMode,_=m.historyIndex;return(0,e.jsxs)(n.wn,{fill:!0,title:"Scan History",buttons:(0,e.jsx)(n.$n,{icon:"trash",tooltip:"Clear History",onClick:function(){return f("clearhistory")},textAlign:"center",disabled:d.length===0}),children:[(0,e.jsx)(n.Ki.Item,{label:"Mode",children:(0,e.jsxs)(n.BJ,{fill:!0,width:"50%",children:[(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.$n,{onClick:function(){return f("modekpa")},textAlign:"center",selected:v==="kpa",children:"kPa"})}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.$n,{onClick:function(){return f("modemol")},textAlign:"center",selected:v==="mol",children:"mol"})})]})}),(0,e.jsx)(n.BJ,{vertical:!0,children:d.map(function(l,c){return(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.$n,{onClick:function(){return f("input",{target:c+1})},textAlign:"left",selected:c+1===_,fluid:!0,children:c+1+". "+(v==="mol"?l[0].total_moles.toFixed(2):l[0].pressure.toFixed(2))+(" "+v)})},l[0])})})]})},b=function(y){var u={float:"left",width:"67%"},f={float:"right",width:"33%"};return(0,e.jsx)(t.p8,{width:500,height:500,children:(0,e.jsxs)(t.p8.Content,{scrollable:!0,children:[(0,e.jsx)("div",{style:u,children:(0,e.jsx)(n.wn,{flexGrow:!0,children:(0,e.jsx)(a,{})})}),(0,e.jsx)("div",{style:f,children:(0,e.jsx)(n.wn,{width:"160px",children:(0,e.jsx)(O,{})})})]})})}},7907:(q,S,r)=>{"use strict";var e;e=!0,e=f,S.Lt=_,e=m,S.s6=v;var s=n(r(4817));function n(l){return l&&l.__esModule?l:{default:l}}var t=Number.MAX_SAFE_INTEGER,a=function(c,h){return c.score-h.score},O=function(c,h){return c[0]-h[0]},b=new Set(` \xA0[]()-\u2013\u2014'"\u201C\u201D`.split(""));function y(l){return b.has(l)}function u(l,c,h,g,p,j,x){if(l===g)return[0,[[0,l.length-1]]];var C=g.length,I=c.length,P=p.length;if(c===p)return[.1,[[0,I-1]]];if(c.startsWith(p))return[.5,[[0,P-1]]];var M=l.indexOf(g);if(M>-1&&y(l[M-1]))return[.9,[[M,M+C-1]]];var B=c.indexOf(p);if(B>-1&&y(c[B-1]))return[1,[[B,B+C-1]]];var w=j.length;if(w>1&&j.every(function(K){return h.has(K)})){var T=1.5+w*.2;return[T,j.map(function(K){var R=c.indexOf(K);return[R,R+K.length-1]}).sort(O)]}return B>-1?[2,[[B,B+C-1]]]:x==="aggressive"?f(c,p):x==="smart"?m(c,p):null}function f(l,c){for(var h=l.length,g=c.length,p=0,j=c[p],x=[],C=-1,I=-2,P=0;P=0&&x.push([C,I]),C=P),I=P,p+=1,p===g)return x.push([C,I]),d(x,l);j=c[p]}return null}function m(l,c){for(var h=l.length,g=[],p=0,j=c[p],x=-1,C=-2;;){var I=l.indexOf(j,C+1);if(I===-1)break;if(I===0||y(l[I-1]))x=I;else{var P=c.length-p,M=l.length-I,B=Math.min(3,P,M),w=c.slice(p,p+B);if(l.slice(I,I+B)===w)x=I;else{C+=1;continue}}for(C=x;C=3?h+=.8:h+=1.6}),[h,l]}function v(l,c){var h=(0,s.default)(c),g=h.split(" "),p=(0,s.default)(l),j=new Set(p.split(" ")),x=u(l,p,j,c,h,g,"smart");return x?{item:l,score:x[0],matches:[x[1]]}:null}function _(l,c){var h=c.strategy,g=h===void 0?"aggressive":h,p=c.getText,j=l.map(function(x){var C;if(p)C=p(x);else{var I=c.key?x[c.key]:x;C=[I]}var P=C.map(function(M){var B=M||"",w=(0,s.default)(B),T=new Set(w.split(" "));return[B,w,T]});return[x,P]});return function(x){var C=[],I=(0,s.default)(x),P=I.split(" ");return I.length?(j.forEach(function(M){for(var B=M[0],w=M[1],T=t,K=[],R=0,U=w.length;R{"use strict";r.d(S,{Nh:()=>n,WK:()=>h,tk:()=>c,y4:()=>a});var e=r(683);/** + */var f=function(m){var d=(0,n.Oc)().data,v=d.timeout,_=d.message,l=d.title,c=d.autofocus,h=d.default_color,g=h===void 0?"#000000":h,p=(0,t.useState)((0,O.RV)(g)),j=p[0],x=p[1];return(0,e.jsxs)(b.p8,{height:400,title:l,width:600,theme:"generic",children:[!!v&&(0,e.jsx)(s.Loader,{value:v}),(0,e.jsx)(b.p8.Content,{children:(0,e.jsxs)(a.BJ,{fill:!0,vertical:!0,children:[_&&(0,e.jsx)(a.BJ.Item,{m:1,children:(0,e.jsx)(a.wn,{fill:!0,children:(0,e.jsx)(a.az,{color:"label",overflow:"hidden",children:_})})}),(0,e.jsx)(a.BJ.Item,{grow:!0,children:(0,e.jsxs)(a.wn,{fill:!0,children:[!!c&&(0,e.jsx)(a.y5,{}),(0,e.jsx)(u.ColorSelector,{color:j,setColor:x,defaultColor:g})]})}),(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(y.InputButtons,{input:(0,O.D9)(j)})})]})})]})}},7502:(q,S,r)=>{"use strict";r.r(S),r.d(S,{pai_doorjack:()=>t});var e=r(1131),s=r(360),n=r(5180),t=function(a){var b=(0,s.Oc)(),O=b.act,y=b.data,u=y.app_data,f=u.cable,m=u.machine,d=u.inprogress,v;m?v=(0,e.jsx)(n.$n,{selected:!0,content:"Connected"}):v=(0,e.jsx)(n.$n,{color:f?"orange":null,onClick:function(){return O("cable")},children:f?"Extended":"Retracted"});var _;return m&&(_=(0,e.jsxs)(n.Ki.Item,{label:"Hack",children:[(0,e.jsxs)(n.az,{color:d?"green":"red",children:[" ","In progress: ",d?"Yes":"No"," "]}),d?(0,e.jsx)(n.$n,{mt:1,color:"red",onClick:function(){return O("cancel")},children:"Abort"}):(0,e.jsx)(n.$n,{mt:1,onClick:function(){return O("jack")},children:"Start"})]})),(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Cable",children:v}),_]})}},7581:(q,S,r)=>{"use strict";r.r(S),r.d(S,{DevilInfo:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(b){var O=(0,s.Oc)().data,y=O.true_name,u=O.ban,f=O.banish,m=O.obligation,d=O.bane,v=O.souls_count,_=O.sacrifice_count,l=O.rank,c=O.next_rank,h=O.required_souls,g=O.sacrifice_required,p=O.ritual_required;return(0,e.jsx)(t.p8,{theme:"infernal",children:(0,e.jsxs)(t.p8.Content,{children:[(0,e.jsx)(n.wn,{title:"\u0418\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F \u043E \u0434\u044C\u044F\u0432\u043E\u043B\u0435",children:(0,e.jsxs)(n.BJ,{vertical:!0,zebra:!0,children:[(0,e.jsxs)(n.BJ.Item,{p:1,children:["\u0418\u0441\u0442\u0438\u043D\u043D\u043E\u0435 \u0438\u043C\u044F: ",(0,e.jsx)("b",{children:y})]}),(0,e.jsxs)(n.BJ.Item,{p:1,children:["\u0417\u0430\u043F\u0440\u0435\u0442: ",(0,e.jsx)("b",{children:u})]}),(0,e.jsxs)(n.BJ.Item,{p:1,children:["\u041E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u044C\u0441\u0442\u0432\u043E: ",(0,e.jsx)("b",{children:m})]}),(0,e.jsxs)(n.BJ.Item,{p:1,children:["\u0421\u043B\u0430\u0431\u043E\u0441\u0442\u044C: ",(0,e.jsx)("b",{children:d})]}),(0,e.jsxs)(n.BJ.Item,{p:1,children:["\u0418\u0437\u0433\u043D\u0430\u043D\u0438\u0435: ",(0,e.jsx)("b",{children:f})]}),(0,e.jsxs)(n.BJ.Item,{p:1,children:["\u0421\u043E\u0431\u0440\u0430\u043D\u043E \u0434\u0443\u0448/\u041F\u0440\u0438\u043D\u0435\u0441\u0435\u043D\u043E \u0436\u0435\u0440\u0442\u0432:"," ",(0,e.jsxs)("b",{children:[v,"/",_]})]})]})}),(0,e.jsxs)(n.wn,{title:"\u0420\u0430\u043D\u0433",children:[" ",(0,e.jsxs)(n.BJ,{vertical:!0,zebra:!0,children:[(0,e.jsxs)(n.BJ.Item,{p:1,children:["\u0422\u0435\u043A\u0443\u0449\u0438\u0439 \u0440\u0430\u043D\u0433: ",(0,e.jsx)("b",{children:l})]}),(0,e.jsxs)(n.BJ.Item,{p:1,children:["\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0439 \u0440\u0430\u043D\u0433: ",(0,e.jsx)("b",{children:c})]}),(0,e.jsxs)(n.BJ.Item,{p:1,children:["\u041D\u0435\u043E\u0431\u0445\u0434\u0438\u043C\u043E \u0434\u0443\u0448: ",(0,e.jsx)("b",{children:h})]}),(0,e.jsxs)(n.BJ.Item,{p:1,children:["\u041D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u043E \u0436\u0435\u0440\u0442\u0432:",(0,e.jsx)("b",{children:g})]}),(0,e.jsxs)(n.BJ.Item,{p:1,children:["\u041D\u0443\u0436\u0435\u043D \u0440\u0438\u0442\u0443\u0430\u043B \u0432\u043E\u0437\u0432\u044B\u0448\u0435\u043D\u0438\u044F:"," ",(0,e.jsx)("span",{style:{color:p?"green":"red"},children:(0,e.jsx)("b",{children:p?"\u0414\u0430":"\u041D\u0435\u0442"})})]})]})]})]})})}},7625:(q,S,r)=>{"use strict";r.r(S),r.d(S,{ExternalAirlockController:()=>y});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=0,b=1013,O=function(u){var f="good",m=80,d=95,v=110,_=120;return uv?f="average":u>_&&(f="bad"),f},y=function(u){var f=(0,s.Oc)(),m=f.act,d=f.data,v=d.chamber_pressure,_=d.exterior_status,l=d.interior_status,c=d.processing;return(0,e.jsx)(t.p8,{width:470,height:290,children:(0,e.jsxs)(t.p8.Content,{children:[(0,e.jsx)(n.wn,{title:"Information",children:(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Chamber Pressure",children:(0,e.jsxs)(n.z2,{color:O(v),value:v,minValue:a,maxValue:b,children:[v," kPa"]})})})}),(0,e.jsxs)(n.wn,{title:"Actions",children:[(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.$n,{icon:"arrow-circle-left",disabled:c,onClick:function(){return m("cycle_ext")},children:"Cycle to Exterior"}),(0,e.jsx)(n.$n,{icon:"arrow-circle-right",disabled:c,onClick:function(){return m("cycle_int")},children:"Cycle to Interior"})]}),(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.$n,{icon:"exclamation-triangle",color:_==="open"?"red":c?"yellow":null,onClick:function(){return m("force_ext")},children:"Force Exterior Door"}),(0,e.jsx)(n.$n,{icon:"exclamation-triangle",color:l==="open"?"red":c?"yellow":null,onClick:function(){return m("force_int")},children:"Force Interior Door"})]}),(0,e.jsx)(n.az,{children:(0,e.jsx)(n.$n,{icon:"ban",color:"red",disabled:!c,onClick:function(){return m("abort")},children:"Abort"})})]})]})})}},7636:(q,S,r)=>{"use strict";r.r(S),r.d(S,{ParticleAccelerator:()=>O});var e=r(1131),s=r(360),n=r(5180),t=r(9845),a=r(3521),b=function(f){switch(f){case 1:return"north";case 2:return"south";case 4:return"east";case 8:return"west";case 5:return"northeast";case 6:return"southeast";case 9:return"northwest";case 10:return"southwest"}return""},O=function(f){var m=(0,s.Oc)(),d=m.act,v=m.data,_=v.assembled,l=v.power,c=v.strength,h=v.max_strength,g=v.orientation;return(0,e.jsx)(a.p8,{width:395,height:_?160:g==="north"||g==="south"?540:465,children:(0,e.jsxs)(a.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{title:"Control Panel",buttons:(0,e.jsx)(n.$n,{icon:"sync",onClick:function(){return d("scan")},children:"Connect"}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Status",children:(0,e.jsx)(n.az,{color:_?"good":"bad",children:_?"Operational":"Error: Verify Configuration"})}),(0,e.jsx)(n.Ki.Item,{label:"Power",children:(0,e.jsx)(n.$n,{icon:l?"power-off":"times",selected:l,disabled:!_,onClick:function(){return d("power")},children:l?"On":"Off"})}),(0,e.jsxs)(n.Ki.Item,{label:"Strength",children:[(0,e.jsx)(n.$n,{icon:"backward",disabled:!_||c===0,onClick:function(){return d("remove_strength")},mr:"4px"}),c,(0,e.jsx)(n.$n,{icon:"forward",disabled:!_||c===h,onClick:function(){return d("add_strength")},ml:"4px"})]})]})}),_?"":(0,e.jsx)(n.wn,{title:g?"EM Acceleration Chamber Orientation: "+(0,t.ZH)(g):"Place EM Acceleration Chamber Next To Console",children:g?g==="north"||g==="south"?(0,e.jsx)(u,{}):(0,e.jsx)(y,{}):""})]})})},y=function(f){var m=(0,s.Oc)().data,d=m.icon,v=m.layout_1,_=m.layout_2,l=m.layout_3,c=m.orientation;return(0,e.jsxs)(n.XI,{children:[(0,e.jsx)(n.XI.Row,{width:"40px",children:(c==="east"?v.reverse():l).map(function(h){return(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.c_,{dmIcon:d,dmIconState:h.icon_state,dmDirection:Number(h.dir),tooltip:(0,e.jsxs)("span",{style:{wordWrap:"break-word"},children:[h.name," ",(0,e.jsx)("br",{})," ","Status: "+h.status,(0,e.jsx)("br",{}),"Direction: "+b(h.dir)]}),tooltipPosition:"right",style:{borderStyle:"solid",borderWidth:"2px",borderColor:h.status==="good"?"green":h.status==="Incomplete"?"orange":"red",padding:"2px"}})},h.name)})}),(0,e.jsx)(n.XI.Row,{width:"40px",children:(c==="east"?_.reverse():_).map(function(h){return(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.c_,{dmIcon:d,dmIconState:h.icon_state,dmDirection:h.dir,tooltip:(0,e.jsxs)("span",{style:{wordWrap:"break-word"},children:[h.name," ",(0,e.jsx)("br",{})," ","Status: "+h.status,(0,e.jsx)("br",{}),"Direction: "+b(h.dir)]}),tooltipPosition:"right",style:{borderStyle:"solid",borderWidth:"2px",borderColor:h.status==="good"?"green":h.status==="Incomplete"?"orange":"red",padding:"2px"}})},h.name)})}),(0,e.jsx)(n.XI.Row,{width:"40px",children:(c==="east"?l.reverse():v).map(function(h){return(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.c_,{dmIcon:d,dmIconState:h.icon_state,dmDirection:h.dir,tooltip:(0,e.jsxs)("span",{style:{wordWrap:"break-word"},children:[h.name," ",(0,e.jsx)("br",{})," ","Status: "+h.status,(0,e.jsx)("br",{}),"Direction: "+b(h.dir)]}),tooltipPosition:"right",style:{borderStyle:"solid",borderWidth:"2px",borderColor:h.status==="good"?"green":h.status==="Incomplete"?"orange":"red",padding:"2px"}})},h.name)})})]})},u=function(f){var m=(0,s.Oc)().data,d=m.icon,v=m.layout_1,_=m.layout_2,l=m.layout_3,c=m.orientation;return(0,e.jsxs)(n.xA,{children:[(0,e.jsx)(n.xA.Column,{width:"40px",children:(c==="north"?v.reverse():l).map(function(h){return(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(n.c_,{dmIcon:d,dmIconState:h.icon_state,dmDirection:h.dir,tooltip:(0,e.jsxs)("span",{style:{wordWrap:"break-word"},children:[h.name," ",(0,e.jsx)("br",{})," ","Status: "+h.status,(0,e.jsx)("br",{}),"Direction: "+b(h.dir)]}),tooltipPosition:"right",style:{borderStyle:"solid",borderWidth:"2px",borderColor:h.status==="good"?"green":h.status==="Incomplete"?"orange":"red",padding:"2px"}})},h.name)})}),(0,e.jsx)(n.xA.Column,{children:(c==="north"?_.reverse():_).map(function(h){return(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(n.c_,{dmIcon:d,dmIconState:h.icon_state,dmDirection:h.dir,tooltip:(0,e.jsxs)("span",{style:{wordWrap:"break-word"},children:[h.name," ",(0,e.jsx)("br",{})," ","Status: "+h.status,(0,e.jsx)("br",{}),"Direction: "+b(h.dir)]}),tooltipPosition:"right",style:{borderStyle:"solid",borderWidth:"2px",borderColor:h.status==="good"?"green":h.status==="Incomplete"?"orange":"red",padding:"2px"}})},h.name)})}),(0,e.jsx)(n.xA.Column,{width:"40px",children:(c==="north"?l.reverse():v).map(function(h){return(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(n.c_,{dmIcon:d,dmIconState:h.icon_state,dmDirection:h.dir,tooltip:(0,e.jsxs)("span",{style:{wordWrap:"break-word"},children:[h.name," ",(0,e.jsx)("br",{})," ","Status: "+h.status,(0,e.jsx)("br",{}),"Direction: "+b(h.dir)]}),tooltipPosition:"right",style:{borderStyle:"solid",borderWidth:"2px",borderColor:h.status==="good"?"green":h.status==="Incomplete"?"orange":"red",padding:"2px"}})},h.name)})})]})}},7761:(q,S,r)=>{"use strict";r.r(S),r.d(S,{pda_secbot:()=>t});var e=r(1131),s=r(360),n=r(5180),t=function(O){var y=(0,s.Oc)().data,u=y.beepsky,f=u.active;return(0,e.jsx)(n.az,{children:f?(0,e.jsx)(b,{}):(0,e.jsx)(a,{})})},a=function(O){var y=(0,s.Oc)(),u=y.act,f=y.data,m=f.beepsky,d=m.bots;return(0,e.jsxs)(n.az,{children:[d.map(function(v){return(0,e.jsx)(n.az,{children:(0,e.jsx)(n.$n,{icon:"cog",onClick:function(){return u("AccessBot",{uid:v.uid})},children:v.Name})},v.Name)}),(0,e.jsx)(n.az,{mt:2,children:(0,e.jsx)(n.$n,{fluid:!0,icon:"rss",onClick:function(){return u("Rescan")},children:"Re-scan for bots"})})]})},b=function(O){var y=(0,s.Oc)(),u=y.act,f=y.data,m=f.beepsky,d=m.botstatus,v=m.active,_=d.mode,l=d.loca,c;switch(_){case 0:c="Ready";break;case 1:c="Apprehending target";break;case 2:case 3:c="Arresting target";break;case 4:c="Starting patrol";break;case 5:c="On patrol";break;case 6:c="Responding to summons";break}return(0,e.jsxs)(n.wn,{title:v,children:[_===-1&&(0,e.jsx)(n.az,{color:"red",bold:!0,children:"Waiting for response..."}),(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Location",children:l}),(0,e.jsx)(n.Ki.Item,{label:"Status",children:c}),(0,e.jsxs)(n.Ki.Item,{label:"Controls",children:[(0,e.jsx)(n.$n,{icon:"play",onClick:function(){return u("Go")},children:"Go"}),(0,e.jsx)(n.$n,{icon:"stop",onClick:function(){return u("Stop")},children:"Stop"}),(0,e.jsx)(n.$n,{icon:"arrow-down",onClick:function(){return u("Summon")},children:"Summon"})]})]})]})}},7785:(q,S,r)=>{"use strict";r.r(S),r.d(S,{Mimicking:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(b){var O=(0,s.Oc)(),y=O.act,u=O.data,f=u.slots||[];return(0,e.jsx)(t.p8,{width:400,height:300,theme:"honker",children:(0,e.jsx)(t.p8.Content,{scrollable:!0,children:(0,e.jsx)(n.BJ,{vertical:!0,fill:!0,children:(0,e.jsxs)(n.wn,{fill:!0,scrollable:!0,children:[f.map(function(m){return(0,e.jsx)(n.wn,{mb:.5,title:m.name,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{selected:m.selected,onClick:function(){return y("Choose",{id:m.id})},children:"Choose"}),(0,e.jsx)(n.$n,{color:"bad",onClick:function(){return y("Delete",{id:m.id})},children:"Delete"})]}),children:(0,e.jsxs)(n.az,{preserveWhitespace:!0,textColor:"#878787",fontSize:"14px",children:["Voice: ",m.voice]})},m.id)}),(0,e.jsx)(n.$n,{fluid:!0,onClick:function(){return y("Add")},children:"Add"})]})})})})}},7818:(q,S,r)=>{"use strict";r.r(S),r.d(S,{KeycardAuth:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(b){var O=(0,s.Oc)(),y=O.act,u=O.data,f=(0,e.jsx)(n.wn,{title:"Keycard Authentication Device",children:(0,e.jsx)(n.az,{children:"This device is used to trigger certain high security events. It requires the simultaneous swipe of two high-level ID cards."})});if(!u.swiping&&!u.busy)return(0,e.jsx)(t.p8,{width:540,height:280,children:(0,e.jsxs)(t.p8.Content,{children:[f,(0,e.jsx)(n.wn,{title:"Choose Action",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Red Alert",children:(0,e.jsx)(n.$n,{icon:"exclamation-triangle",disabled:!u.redAvailable,onClick:function(){return y("triggerevent",{triggerevent:"Red Alert"})},children:"Red Alert"})}),(0,e.jsx)(n.Ki.Item,{label:"ERT",children:(0,e.jsx)(n.$n,{icon:"broadcast-tower",onClick:function(){return y("triggerevent",{triggerevent:"Emergency Response Team"})},children:"Call ERT"})}),(0,e.jsxs)(n.Ki.Item,{label:"Emergency Maint Access",children:[(0,e.jsx)(n.$n,{icon:"door-open",onClick:function(){return y("triggerevent",{triggerevent:"Grant Emergency Maintenance Access"})},children:"Grant"}),(0,e.jsx)(n.$n,{icon:"door-closed",onClick:function(){return y("triggerevent",{triggerevent:"Revoke Emergency Maintenance Access"})},children:"Revoke"})]}),(0,e.jsxs)(n.Ki.Item,{label:"Emergency Station-Wide Access",children:[(0,e.jsx)(n.$n,{icon:"door-open",onClick:function(){return y("triggerevent",{triggerevent:"Activate Station-Wide Emergency Access"})},children:"Grant"}),(0,e.jsx)(n.$n,{icon:"door-closed",onClick:function(){return y("triggerevent",{triggerevent:"Deactivate Station-Wide Emergency Access"})},children:"Revoke"})]})]})})]})});var m=(0,e.jsx)(n.az,{color:"red",children:"Waiting for YOU to swipe your ID..."});return!u.hasSwiped&&!u.ertreason&&u.event==="Emergency Response Team"?m=(0,e.jsx)(n.az,{color:"red",children:"Fill out the reason for your ERT request."}):u.hasConfirm?m=(0,e.jsx)(n.az,{color:"green",children:"Request Confirmed!"}):u.isRemote?m=(0,e.jsx)(n.az,{color:"orange",children:"Swipe your card to CONFIRM the remote request."}):u.hasSwiped&&(m=(0,e.jsx)(n.az,{color:"orange",children:"Waiting for second person to confirm..."})),(0,e.jsx)(t.p8,{width:540,height:265,children:(0,e.jsxs)(t.p8.Content,{children:[f,u.event==="Emergency Response Team"&&(0,e.jsx)(n.wn,{title:"Reason for ERT Call",children:(0,e.jsx)(n.az,{children:(0,e.jsx)(n.$n,{color:u.ertreason?"":"red",icon:u.ertreason?"check":"pencil-alt",disabled:u.busy,onClick:function(){return y("ert")},children:u.ertreason?u.ertreason:"-----"})})}),(0,e.jsx)(n.wn,{title:u.event,buttons:(0,e.jsx)(n.$n,{icon:"arrow-circle-left",disabled:u.busy||u.hasConfirm,onClick:function(){return y("reset")},children:"Back"}),children:m})]})})}},7865:(q,S,r)=>{var e={"./pda_atmos_scan.tsx":8433,"./pda_janitor.tsx":2476,"./pda_main_menu.tsx":4468,"./pda_manifest.tsx":7168,"./pda_medical.tsx":4342,"./pda_messenger.tsx":5286,"./pda_mule.tsx":9804,"./pda_notes.tsx":8776,"./pda_power.tsx":9076,"./pda_request_console.tsx":6762,"./pda_secbot.tsx":7761,"./pda_security.tsx":8633,"./pda_signaler.tsx":9794,"./pda_status_display.tsx":8438,"./pda_supplyrecords.tsx":226};function s(t){var a=n(t);return r(a)}function n(t){if(!r.o(e,t)){var a=new Error("Cannot find module '"+t+"'");throw a.code="MODULE_NOT_FOUND",a}return e[t]}s.keys=function(){return Object.keys(e)},s.resolve=n,q.exports=s,s.id=7865},7890:(q,S,r)=>{"use strict";r.r(S),r.d(S,{GasAnalyzer:()=>O,GasAnalyzerContent:()=>a,GasAnalyzerHistory:()=>b});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(y){var u=(0,s.Oc)(),f=u.act,m=u.data,d=m.gasmixes,v=m.autoUpdating;return(0,e.jsx)(n.wn,{title:d[0].name,buttons:(0,e.jsx)(n.$n,{icon:v?"unlock":"lock",onClick:function(){return f("autoscantoggle")},tooltip:v?"Auto-Update Enabled":"Auto-Update Disabled",fluid:!0,textAlign:"center",selected:v}),children:d[0].total_moles?(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Total Moles",children:(d[0].total_moles?d[0].total_moles:"-")+" mol"}),d[0].oxygen?(0,e.jsx)(n.Ki.Item,{label:"Oxygen",children:d[0].oxygen.toFixed(2)+" mol ("+(d[0].oxygen/d[0].total_moles*100).toFixed(2)+" %)"}):"",d[0].nitrogen?(0,e.jsx)(n.Ki.Item,{label:"Nitrogen",children:d[0].nitrogen.toFixed(2)+" mol ("+(d[0].nitrogen/d[0].total_moles*100).toFixed(2)+" %)"}):"",d[0].carbon_dioxide?(0,e.jsx)(n.Ki.Item,{label:"Carbon Dioxide",children:d[0].carbon_dioxide.toFixed(2)+" mol ("+(d[0].carbon_dioxide/d[0].total_moles*100).toFixed(2)+" %)"}):"",d[0].plasma?(0,e.jsx)(n.Ki.Item,{label:"Plasma",children:d[0].plasma.toFixed(2)+" mol ("+(d[0].plasma/d[0].total_moles*100).toFixed(2)+" %)"}):"",d[0].nitrous_oxide?(0,e.jsx)(n.Ki.Item,{label:"Nitrous Oxide",children:d[0].nitrous_oxide.toFixed(2)+" mol ("+(d[0].nitrous_oxide/d[0].total_moles*100).toFixed(2)+" %)"}):"",d[0].hydrogen?(0,e.jsx)(n.Ki.Item,{label:"Hydrogen",children:d[0].hydrogen.toFixed(2)+" mol ("+(d[0].hydrogen/d[0].total_moles*100).toFixed(2)+" %)"}):"",d[0].water_vapor?(0,e.jsx)(n.Ki.Item,{label:"Water Vapor",children:d[0].water_vapor.toFixed(2)+" mol ("+(d[0].water_vapor/d[0].total_moles*100).toFixed(2)+" %)"}):"",d[0].agent_b?(0,e.jsx)(n.Ki.Item,{label:"Agent B",children:d[0].agent_b.toFixed(2)+" mol ("+(d[0].agent_b/d[0].total_moles*100).toFixed(2)+" %)"}):"",(0,e.jsx)(n.Ki.Item,{label:"Temperature",children:(d[0].total_moles?(d[0].temperature-273.15).toFixed(2):"-")+" \xB0C ("+(d[0].total_moles?d[0].temperature.toFixed(2):"-")+" K)"}),(0,e.jsx)(n.Ki.Item,{label:"Volume",children:(d[0].total_moles?d[0].volume:"-")+" L"}),(0,e.jsx)(n.Ki.Item,{label:"Pressure",children:(d[0].total_moles?d[0].pressure.toFixed(2):"-")+" kPa"}),(0,e.jsx)(n.Ki.Item,{label:"Heat Capacity",children:d[0].heat_capacity+" / K"}),(0,e.jsx)(n.Ki.Item,{label:"Thermal Energy",children:d[0].thermal_energy})]}):(0,e.jsx)(n.az,{nowrap:!0,italic:!0,mb:"10px",children:"No Gas Detected!"})},d[0])},b=function(y){var u=(0,s.Oc)(),f=u.act,m=u.data,d=m.historyGasmixes,v=m.historyViewMode,_=m.historyIndex;return(0,e.jsxs)(n.wn,{fill:!0,title:"Scan History",buttons:(0,e.jsx)(n.$n,{icon:"trash",tooltip:"Clear History",onClick:function(){return f("clearhistory")},textAlign:"center",disabled:d.length===0}),children:[(0,e.jsx)(n.Ki.Item,{label:"Mode",children:(0,e.jsxs)(n.BJ,{fill:!0,width:"50%",children:[(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.$n,{onClick:function(){return f("modekpa")},textAlign:"center",selected:v==="kpa",children:"kPa"})}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.$n,{onClick:function(){return f("modemol")},textAlign:"center",selected:v==="mol",children:"mol"})})]})}),(0,e.jsx)(n.BJ,{vertical:!0,children:d.map(function(l,c){return(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.$n,{onClick:function(){return f("input",{target:c+1})},textAlign:"left",selected:c+1===_,fluid:!0,children:c+1+". "+(v==="mol"?l[0].total_moles.toFixed(2):l[0].pressure.toFixed(2))+(" "+v)})},l[0])})})]})},O=function(y){var u={float:"left",width:"67%"},f={float:"right",width:"33%"};return(0,e.jsx)(t.p8,{width:500,height:500,children:(0,e.jsxs)(t.p8.Content,{scrollable:!0,children:[(0,e.jsx)("div",{style:u,children:(0,e.jsx)(n.wn,{flexGrow:!0,children:(0,e.jsx)(a,{})})}),(0,e.jsx)("div",{style:f,children:(0,e.jsx)(n.wn,{width:"160px",children:(0,e.jsx)(b,{})})})]})})}},7907:(q,S,r)=>{"use strict";var e;e=!0,e=f,S.Lt=_,e=m,S.s6=v;var s=n(r(4817));function n(l){return l&&l.__esModule?l:{default:l}}var t=Number.MAX_SAFE_INTEGER,a=function(c,h){return c.score-h.score},b=function(c,h){return c[0]-h[0]},O=new Set(` \xA0[]()-\u2013\u2014'"\u201C\u201D`.split(""));function y(l){return O.has(l)}function u(l,c,h,g,p,j,x){if(l===g)return[0,[[0,l.length-1]]];var C=g.length,I=c.length,P=p.length;if(c===p)return[.1,[[0,I-1]]];if(c.startsWith(p))return[.5,[[0,P-1]]];var M=l.indexOf(g);if(M>-1&&y(l[M-1]))return[.9,[[M,M+C-1]]];var B=c.indexOf(p);if(B>-1&&y(c[B-1]))return[1,[[B,B+C-1]]];var w=j.length;if(w>1&&j.every(function(K){return h.has(K)})){var T=1.5+w*.2;return[T,j.map(function(K){var R=c.indexOf(K);return[R,R+K.length-1]}).sort(b)]}return B>-1?[2,[[B,B+C-1]]]:x==="aggressive"?f(c,p):x==="smart"?m(c,p):null}function f(l,c){for(var h=l.length,g=c.length,p=0,j=c[p],x=[],C=-1,I=-2,P=0;P=0&&x.push([C,I]),C=P),I=P,p+=1,p===g)return x.push([C,I]),d(x,l);j=c[p]}return null}function m(l,c){for(var h=l.length,g=[],p=0,j=c[p],x=-1,C=-2;;){var I=l.indexOf(j,C+1);if(I===-1)break;if(I===0||y(l[I-1]))x=I;else{var P=c.length-p,M=l.length-I,B=Math.min(3,P,M),w=c.slice(p,p+B);if(l.slice(I,I+B)===w)x=I;else{C+=1;continue}}for(C=x;C=3?h+=.8:h+=1.6}),[h,l]}function v(l,c){var h=(0,s.default)(c),g=h.split(" "),p=(0,s.default)(l),j=new Set(p.split(" ")),x=u(l,p,j,c,h,g,"smart");return x?{item:l,score:x[0],matches:[x[1]]}:null}function _(l,c){var h=c.strategy,g=h===void 0?"aggressive":h,p=c.getText,j=l.map(function(x){var C;if(p)C=p(x);else{var I=c.key?x[c.key]:x;C=[I]}var P=C.map(function(M){var B=M||"",w=(0,s.default)(B),T=new Set(w.split(" "));return[B,w,T]});return[x,P]});return function(x){var C=[],I=(0,s.default)(x),P=I.split(" ");return I.length?(j.forEach(function(M){for(var B=M[0],w=M[1],T=t,K=[],R=0,U=w.length;R{"use strict";r.d(S,{Nh:()=>n,WK:()=>h,tk:()=>c,y4:()=>a});var e=r(683);/** * Normalized browser focus events and BYOND-specific focus helpers. * * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var s=function(){"use strict";function x(){this.listeners={}}var C=x.prototype;return C.on=function(P,M){this.listeners[P]=this.listeners[P]||[],this.listeners[P].push(M)},C.off=function(P,M){var B=this.listeners[P];if(!B)throw new Error('There is no listeners for "'+P+'"');this.listeners[P]=B.filter(function(w){return w!==M})},C.emit=function(P){for(var M=arguments.length,B=new Array(M>1?M-1:0),w=1;w=0&&l.splice(C,1)},g=function(x){if(!(u||!b))for(var C=document.body;x&&x!==C;){if(l.includes(x)){if(x.contains(v))return;v=x,x.focus();return}x=x.parentElement}};window.addEventListener("mousemove",function(x){var C=x.target;C!==_&&(_=C,g(C))}),window.addEventListener("focusin",function(x){_=null,v=x.target,y(!0),f(x.target)&&m(x.target)}),window.addEventListener("focusout",function(){_=null,y(!1,!0)}),window.addEventListener("blur",function(){_=null,y(!1,!0)}),window.addEventListener("beforeunload",function(){y(!1)});var p={},j=function(){"use strict";function x(I,P,M){this.event=I,this.type=P,this.code=I.keyCode,this.ctrl=I.ctrlKey,this.shift=I.shiftKey,this.alt=I.altKey,this.repeat=!!M}var C=x.prototype;return C.hasModifierKeys=function(){return this.ctrl||this.alt||this.shift},C.isModifierKey=function(){return this.code===e.Ss||this.code===e.re||this.code===e.cH},C.isDown=function(){return this.type==="keydown"},C.isUp=function(){return this.type==="keyup"},C.toString=function(){return this._str?this._str:(this._str="",this.ctrl&&(this._str+="Ctrl+"),this.alt&&(this._str+="Alt+"),this.shift&&(this._str+="Shift+"),this.code>=48&&this.code<=90?this._str+=String.fromCharCode(this.code):this.code>=e.sV&&this.code<=e.Yw?this._str+="F"+(this.code-111):this._str+="["+this.code+"]",this._str)},x}();document.addEventListener("keydown",function(x){if(!f(x.target)){var C=x.keyCode,I=new j(x,"keydown",p[C]);n.emit("keydown",I),n.emit("key",I),p[C]=!0}}),document.addEventListener("keyup",function(x){if(!f(x.target)){var C=x.keyCode,I=new j(x,"keyup");n.emit("keyup",I),n.emit("key",I),p[C]=!1}})},7941:(q,S,r)=>{"use strict";r.r(S),r.d(S,{Port:()=>m});var e=r(1131),s=r(5180),n=r(7003),t=r(9797),a=r(185),O=r(8968);function b(){return b=Object.assign||function(d){for(var v=1;v=0)&&(_[c]=d[c]);return _}function f(d,v){return f=Object.setPrototypeOf||function(l,c){return l.__proto__=c,l},f(d,v)}var m=function(d){"use strict";y(v,d);function v(l){var c;return c=d.call(this,l)||this,c.iconRef=(0,n.createRef)(),c.componentDidUpdate=c.componentDidUpdate.bind(c),c.componentDidMount=c.componentDidMount.bind(c),c.handlePortMouseDown=c.handlePortMouseDown.bind(c),c.handlePortRightClick=c.handlePortRightClick.bind(c),c.handlePortMouseUp=c.handlePortMouseUp.bind(c),c}var _=v.prototype;return _.handlePortMouseDown=function(c){var h=this.props,g=h.port,p=h.portIndex,j=h.componentId,x=h.isOutput,C=h.onPortMouseDown,I=C===void 0?O.noop:C;I(p,j,g,x,c)},_.handlePortMouseUp=function(c){var h=this.props,g=h.port,p=h.portIndex,j=h.componentId,x=h.isOutput,C=h.onPortMouseUp,I=C===void 0?O.noop:C;I(p,j,g,x,c)},_.handlePortRightClick=function(c){var h=this.props,g=h.port,p=h.portIndex,j=h.componentId,x=h.isOutput,C=h.onPortRightClick,I=C===void 0?O.noop:C;I(p,j,g,x,c)},_.componentDidUpdate=function(){var c=this.props,h=c.port,g=c.onPortUpdated;g&&g(h,this.iconRef.current)},_.componentDidMount=function(){var c=this.props,h=c.port,g=c.onPortLoaded;g&&g(h,this.iconRef.current)},_.renderDisplayName=function(){var c=this.props,h=c.port,g=c.portIndex,p=c.componentId,j=c.isOutput,x=c.act;return(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(t.DisplayName,{act:x,port:h,isOutput:j,componentId:p,portIndex:g})})},_.render=function(){var c,h=this.props,g=h.port,p=h.isOutput,j=u(h,["port","isOutput"]),x=[];return(c=g.datatype_data)!=null&&c.composite_types&&(x=g.datatype_data.composite_types),(0,e.jsxs)(s.BJ,b({},j,{justify:p?"flex-end":"flex-start",children:[!!p&&this.renderDisplayName(),(0,e.jsx)(s.BJ.Item,{children:(0,e.jsxs)(s.az,{className:(0,a.Ly)(["ObjectComponent__Port"]),onMouseDown:this.handlePortMouseDown,onContextMenu:this.handlePortRightClick,onMouseUp:this.handlePortMouseUp,children:[(0,e.jsxs)("svg",{style:{width:"100%",height:"100%",position:"absolute",overflow:"visible"},viewBox:"0, 0, 100, 100",children:[x.map(function(C,I){var P=2*Math.PI/x.length,M=P*50;return(0,e.jsx)("circle",{stroke:C,strokeDasharray:M+", "+100*Math.PI,strokeDashoffset:-I*(100*(Math.PI/x.length)),className:"color-stroke-"+C,strokeWidth:"50px",cx:"50",cy:"50",r:"50",fillOpacity:"0",transform:"rotate(90, 50, 50)"},I)}),(0,e.jsx)("circle",{ref:this.iconRef,cx:"50",cy:"50",r:"50",className:"color-fill-"+g.color})]}),(0,e.jsx)("span",{ref:this.iconRef,className:"ObjectComponent__PortPos"})]})}),!p&&this.renderDisplayName()]}))},v}(n.Component)},7957:(q,S,r)=>{"use strict";r.r(S),r.d(S,{SatelliteControl:()=>O});var e=r(1131),s=r(7003),n=r(360),t=r(5180),a=r(3521),O=function(f){var m=(0,n.Oc)(),d=m.act,v=m.data,_=(0,s.useState)(v.tabIndex),l=_[0],c=_[1],h=function(p){c(p),d("set_tab_index",{tab_index:p})},g=function(p){switch(p){case 0:return(0,e.jsx)(b,{});case 1:return(0,e.jsx)(y,{});default:return"WE SHOULDN'T BE HERE!"}};return(0,e.jsx)(a.p8,{width:800,height:600,children:(0,e.jsx)(a.p8.Content,{children:(0,e.jsxs)(t.BJ,{vertical:!0,fillPositionedParent:!0,children:[(0,e.jsx)(t.BJ.Item,{children:(0,e.jsxs)(t.tU,{children:[(0,e.jsx)(t.tU.Tab,{icon:"table",selected:l===0,onClick:function(){return h(0)},children:"\u0421\u043F\u0443\u0442\u043D\u0438\u043A\u0438"}),(0,e.jsx)(t.tU.Tab,{icon:"map-marked-alt",selected:l===1,onClick:function(){return h(1)},children:"\u041F\u0440\u043E\u0441\u043C\u043E\u0442\u0440 \u043A\u0430\u0440\u0442\u044B"})]})}),(0,e.jsx)(t.BJ.Item,{grow:1,overflow:"hidden",children:g(l)}),(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(u,{})})]})})})},b=function(f){var m=(0,n.Oc)(),d=m.act,v=m.data,_=v.satellites;return(0,e.jsx)(t.wn,{title:"\u0423\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435 \u0441\u043F\u0443\u0442\u043D\u0438\u043A\u043E\u0432\u043E\u0439 \u0441\u0435\u0442\u044C\u044E",fill:!0,overflow:"auto",children:(0,e.jsx)(t.Ki,{children:_.map(function(l){return(0,e.jsxs)(t.Ki.Item,{label:"#"+l.id,children:[(0,e.jsx)(t.az,{inline:!0,bold:!0,color:l.active?"good":"average",mr:2,children:l.mode}),(0,e.jsx)(t.$n,{icon:l.active?"power-off":"times",color:l.active?"average":"good",onClick:function(){return d("toggle",{id:l.id})},children:l.active?"\u0414\u0435\u0430\u043A\u0442\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u0442\u044C":"\u0410\u043A\u0442\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u0442\u044C"})]},l.id)})})})},y=function(f){var m=(0,n.Oc)(),d=m.act,v=m.data,_=v.satellites,l=_===void 0?[]:_,c=v.has_goal,h=c===void 0?!1:c,g=v.defended,p=g===void 0?[]:g,j=v.collisions,x=j===void 0?[]:j,C=v.fake_meteors,I=C===void 0?[]:C,P=v.offsetX,M=P===void 0?0:P,B=v.offsetY,w=B===void 0?0:B,T=v.stationLevelNum,K=v.stationLevelName,R=(0,s.useState)(T[0]),U=R[0],F=R[1],$=(0,s.useState)(1),W=$[0],N=$[1],Z=(0,s.useState)(!1),ie=Z[0],Q=Z[1];return(0,e.jsxs)(t.az,{height:"100%",children:[(0,e.jsx)(t.az,{height:"100%",style:{display:"flex"},children:(0,e.jsxs)(t.tx,{onZoom:function(V,G){return N(G)},offsetX:M,offsetY:w,zNames:K,zLevels:T,zCurrent:U,setZCurrent:F,onOffsetChangeEnded:function(V,G){return d("set_offset",{offset_x:G.x,offset_y:G.y})},children:[l.map(function(V){return(0,e.jsx)(t.tx.MarkerIcon,{x:V.x,y:V.y,z:V.z,z_current:U,zoom:W,icon:"satellite",tooltip:V.active?"\u0421\u043F\u0443\u0442\u043D\u0438\u043A \u0449\u0438\u0442\u0430":"\u041D\u0435\u0430\u043A\u0442\u0438\u0432\u043D\u044B\u0439 \u0441\u043F\u0443\u0442\u043D\u0438\u043A",tooltipPosition:V.x>255/2?"bottom":"right",color:V.active?"white":"grey",onClick:function(){return d("toggle",{id:V.id})}},"sat_"+V.id)}),ie&&l.map(function(V){return V.active?(0,e.jsx)(t.tx.MarkerCircle,{x:V.x,y:V.y,z:U,z_current:U,zoom:W,radius:V.kill_range,color:"rgba(0, 150, 255, 0.5)",tooltip:"\u0417\u0430\u0449\u0438\u0449\u0451\u043D\u043D\u0430\u044F \u0442\u0435\u0440\u0440\u0438\u0442\u043E\u0440\u0438\u044F"},"circle_"+V.id):null}),h&&p.map(function(V,G){return(0,e.jsx)(t.tx.MarkerIcon,{x:V.x,y:V.y,z:V.z,z_current:U,zoom:W,icon:"shield",tooltip:"\u0423\u0441\u043F\u0435\u0448\u043D\u0430\u044F \u0437\u0430\u0449\u0438\u0442\u0430",tooltipPosition:V.x>255/2?"bottom":"right",color:"blue"},"defended_"+G+"_"+V.x+"_"+V.y)}),h&&x.map(function(V,G){return(0,e.jsx)(t.tx.MarkerIcon,{x:V.x,y:V.y,z:V.z,z_current:U,zoom:W,icon:"x",tooltip:"\u0421\u0442\u043E\u043B\u043A\u043D\u043E\u0432\u0435\u043D\u0438\u0435 \u0441 \u043C\u0435\u0442\u0435\u043E\u0440\u043E\u043C",tooltipPosition:V.x>255/2?"bottom":"right",color:"red"},"collision_"+G+"_"+V.x+"_"+V.y)}),h&&I.map(function(V,G){return(0,e.jsx)(t.tx.MarkerIcon,{x:V.x,y:V.y,z:V.z,z_current:U,zoom:W,icon:"meteor",tooltip:"\u041C\u0435\u0442\u0435\u043E\u0440",tooltipPosition:V.x>255/2?"bottom":"right",color:"white"},"meteor_"+G+"_"+V.x+"_"+V.y)})]})}),(0,e.jsx)(t.$n,{position:"absolute",top:"0.5rem",right:"0.5rem",icon:"shield",selected:ie,onClick:function(){return Q(!ie)},tooltip:"\u041E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0437\u0430\u0449\u0438\u0449\u0451\u043D\u043D\u043E\u0439 \u0442\u0435\u0440\u0440\u0438\u0442\u043E\u0440\u0438\u0438"})]})},u=function(f){var m=(0,n.Oc)(),d=m.act,v=m.data,_=v.notice,l=v.notice_color,c=v.has_goal,h=v.coverage,g=v.coverage_goal,p=v.testing,j=v.max_meteor;return(0,e.jsxs)(e.Fragment,{children:[c?(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.wn,{title:"\u0410\u043D\u0442\u0438\u043C\u0435\u0442\u0435\u043E\u0440\u043D\u043E\u0435 \u043F\u043E\u043A\u0440\u044B\u0442\u0438\u0435 \u0441\u0442\u0430\u043D\u0446\u0438\u0438",children:(0,e.jsxs)(t.BJ,{fill:!0,children:[(0,e.jsx)(t.BJ.Item,{grow:!0,children:(0,e.jsxs)(t.z2,{color:h>=g?"good":"average",value:h,minValue:0,maxValue:j,children:[h,"%"]})}),(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.$n,{disabled:p,onClick:function(){return d("begin_test")},children:"\u0410\u043A\u0442\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0438\u043C\u0443\u043B\u044F\u0446\u0438\u044E"})})]})})}):null,(0,e.jsx)(t.BJ.Item,{fontFamily:"sans-serif",fontSize:"14px",textColor:l,children:_})]})}},7960:(q,S,r)=>{"use strict";r.r(S),r.d(S,{MiniGamesMenu:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(O){var b=(0,s.Oc)(),y=b.act,u=b.data,f=u.spawners||[],m=u.thunderdome_eligible,d=u.notifications_enabled;return(0,e.jsx)(t.p8,{width:700,height:600,children:(0,e.jsxs)(t.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.$n,{fluid:!0,textAlign:"center",icon:"power-off",tooltip:m?"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0447\u0430\u0441\u0442\u0438\u0435 \u0432 \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445":"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0447\u0430\u0441\u0442\u0438\u0435 \u0432 \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445",tooltipPosition:"bottom",color:m?"good":"bad",onClick:function(){return y("toggle_minigames")},children:m?"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0447\u0430\u0441\u0442\u0438\u0435 \u0432 \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445":"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0447\u0430\u0441\u0442\u0438\u0435 \u0432 \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445"}),(0,e.jsx)(n.$n,{fluid:!0,textAlign:"center",icon:"power-off",tooltip:d?"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0432\u0435\u0434\u043E\u043C\u043B\u0435\u043D\u0438\u044F \u043E \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445":"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0432\u0435\u0434\u043E\u043C\u043B\u0435\u043D\u0438\u044F \u043E \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445",tooltipPosition:"bottom",color:d?"good":"bad",onClick:function(){return y("toggle_notifications")},children:d?"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0432\u0435\u0434\u043E\u043C\u043B\u0435\u043D\u0438\u044F \u043E \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445":"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0432\u0435\u0434\u043E\u043C\u043B\u0435\u043D\u0438\u044F \u043E \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445"}),(0,e.jsx)(n.wn,{children:f.map(function(v){return(0,e.jsxs)(n.wn,{mb:.5,title:v.name,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"chevron-circle-right",onClick:function(){return y("jump",{ID:v.uids})},children:"Jump"}),(0,e.jsx)(n.$n,{icon:"chevron-circle-right",onClick:function(){return y("spawn",{ID:v.uids})},children:"Start"})]}),children:[(0,e.jsx)(n.az,{style:{whiteSpace:"pre-wrap"},mb:1,fontSize:"16px",children:v.desc}),!!v.fluff&&(0,e.jsx)(n.az,{style:{whiteSpace:"pre-wrap"},textColor:"#878787",fontSize:"14px",children:v.fluff}),!!v.important_info&&(0,e.jsx)(n.az,{style:{whiteSpace:"pre-wrap"},mt:1,bold:!0,color:"red",fontSize:"18px",children:v.important_info})]},v.name)})})]})})}},7989:(q,S,r)=>{"use strict";r.d(S,{Bm:()=>c,ao:()=>h,sc:()=>g,zr:()=>_});var e=r(7921),s=r(683);function n(x,C){(C==null||C>x.length)&&(C=x.length);for(var I=0,P=new Array(C);I=x.length?{done:!0}:{done:!1,value:x[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 O={},b=[s.s6,s.Ri,s.iy,s.aW,s.Ss,s.re,s.gf,s.R,s.iU,s.zh,s.sP],y={},u=[],f=function(x){if(x===16)return"Shift";if(x===17)return"Ctrl";if(x===18)return"Alt";if(x===33)return"Northeast";if(x===34)return"Southeast";if(x===35)return"Southwest";if(x===36)return"Northwest";if(x===37)return"West";if(x===38)return"North";if(x===39)return"East";if(x===40)return"South";if(x===45)return"Insert";if(x===46)return"Delete";if(x>=48&&x<=57||x>=65&&x<=90)return String.fromCharCode(x);if(x>=96&&x<=105)return"Numpad"+(x-96);if(x>=112&&x<=123)return"F"+(x-111);if(x===188)return",";if(x===189)return"-";if(x===190)return"."},m=function(x){var C=String(x);if(C==="Ctrl+F5"||C==="Ctrl+R"){location.reload();return}if(C!=="Ctrl+F"&&!(x.event.defaultPrevented||x.isModifierKey()||b.includes(x.code))){var I=f(x.code);if(I){var P=O[I];if(P)return Byond.command(P);if(x.isDown()&&!y[I]){y[I]=!0;var M=l.verbParamsFn(l.keyDownVerb,I);return Byond.command(M)}if(x.isUp()&&y[I]){y[I]=!1;var B=l.verbParamsFn(l.keyUpVerb,I);return Byond.command(B)}}}},d=function(x){b.push(x)},v=function(x){var C=b.indexOf(x);C>=0&&b.splice(C,1)},_=function(){for(var x in y)y[x]&&(y[x]=!1,Byond.command(l.verbParamsFn(l.keyUpVerb,x)))},l={keyDownVerb:"KeyDown",keyUpVerb:"KeyUp",verbParamsFn:function(x,C){return x+' "'+C+'"'}},c=function(x){x&&(l=x),Byond.winget("default.*").then(function(C){var I={};for(var P in C){var M=P.split("."),B=M[1],w=M[2];B&&w&&(I[B]||(I[B]={}),I[B][w]=C[P])}var T=/\\"/g,K=function($){return $.substring(1,$.length-1).replace(T,'"')};for(var R in I){var U=I[R],F=K(U.name);O[F]=K(U.command)}}),e.Nh.on("window-blur",function(){_()}),h()},h=function(){e.Nh.on("key",p)},g=function(){e.Nh.off("key",p)},p=function(x){for(var C=a(u),I;!(I=C()).done;){var P=I.value;P(x)}m(x)},j=function(x){u.push(x);var C=!1;return function(){C||(C=!0,u.splice(u.indexOf(x),1))}}},8151:(q,S,r)=>{"use strict";r.r(S),r.d(S,{CreateObjectAdvancedSettings:()=>O});var e=r(1131),s=r(7003),n=r(5180),t=r(360);function a(){return a=Object.assign||function(b){for(var y=1;y{"use strict";r.r(S),r.d(S,{BluespaceRiftScanner:()=>O});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a={0:"OFF",1:"NO_RIFTS",2:"SOME_RIFTS",3:"DANGER"},O=function(b){var y=(0,s.Oc)(),u=y.act,f=y.data,m=f.scanStatus,d=f.serversFound,v=f.switching,_=f.time_for_failure,l=f.time_till_failure,c=a[m],h=function(){if(c==="OFF")return[" ","silver"];if(c==="NO_RIFTS")return["\u041D\u0435\u0442 \u0440\u0430\u0437\u043B\u043E\u043C\u043E\u0432 \u0432 \u0440\u0430\u0434\u0438\u0443\u0441\u0435 \u0441\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F.","silver"];if(c==="SOME_RIFTS")return d?["\u0421\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435 \u043F\u0440\u043E\u0445\u043E\u0434\u0438\u0442 \u0443\u0441\u043F\u0435\u0448\u043D\u043E.","good"]:["\u0421\u0435\u0440\u0432\u0435\u0440 \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D. \u041F\u0435\u0440\u0435\u0434\u0430\u0447\u0430 \u0434\u0430\u043D\u043D\u044B\u0445 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0430.","average"];if(c==="DANGER")return["\u041E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u044C! \u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u0435 \u0441\u043A\u0430\u043D\u0435\u0440!","bad"]},g=h(),p=.11,j=c==="OFF"?["grey",p]:["good",1],x=c==="SOME_RIFTS"?[d?"good":"average",1]:["grey",p],C=c==="DANGER"?["bad",1]:["grey",p],I=_&&l?Math.floor((_-l)/_*100):0;return(0,e.jsx)(t.p8,{width:475,height:400,children:(0,e.jsx)(t.p8.Content,{children:v?(0,e.jsx)(n.Rr,{backgroundColor:"black",opacity:.85,children:(0,e.jsx)(n.BJ,{fill:!0,vertical:!0,children:(0,e.jsxs)(n.BJ.Item,{bold:!0,textAlign:"center",mb:2,children:[(0,e.jsx)(n.In,{name:"circle-notch",size:2,mb:4,spin:!0}),(0,e.jsx)("br",{}),c==="OFF"?"\u0421\u043A\u0430\u043D\u0435\u0440 \u0432\u043A\u043B\u044E\u0447\u0430\u0435\u0442\u0441\u044F...":"\u0421\u043A\u0430\u043D\u0435\u0440 \u0432\u044B\u043A\u043B\u044E\u0447\u0430\u0435\u0442\u0441\u044F..."]})})}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(n.wn,{title:"\u0421\u0442\u0430\u0442\u0443\u0441",pb:1,children:[(0,e.jsx)(n.In,{name:"power-off",size:2,color:j[0],opacity:j[1],mx:.7,mt:.1}),(0,e.jsx)(n.In,{name:"satellite-dish",size:2,color:x[0],opacity:x[1],mx:.7,mt:.1}),(0,e.jsx)(n.In,{name:"exclamation-triangle",size:2,color:C[0],opacity:C[1],mx:.7,mt:.1}),(0,e.jsx)(n.az,{fontSize:"1.3rem",color:"silver",italic:c!=="OFF",mt:1.7,mb:1,ml:.7,children:c==="OFF"?"\u0421\u043A\u0430\u043D\u0435\u0440 \u0432\u044B\u043A\u043B\u044E\u0447\u0435\u043D":"\u0421\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435..."}),c!=="OFF"&&(0,e.jsxs)(n.az,{color:g[1],children:[(0,e.jsx)(n.In,{name:"info",opacity:.9,ml:1.1,mr:1.4}),g[0]]}),c==="DANGER"&&(0,e.jsx)(n.z2,{color:"bad",value:I,maxValue:100,mt:1.5,children:(0,e.jsxs)(n.az,{color:"orange",children:["\u041F\u0415\u0420\u0415\u0413\u0420\u0423\u0417\u041A\u0410 ",I," %"]})})]}),(0,e.jsx)(n.wn,{children:(0,e.jsx)(n.$n,{fluid:!0,icon:"power-off",textAlign:"center",onClick:function(){return u("toggle")},children:c==="OFF"?"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C":"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C"})})]})})})}},8206:(q,S,r)=>{"use strict";r.r(S),r.d(S,{KitchenSink:()=>m});var e=r(1131),s=r(360),n=r(7003),t=r(5180),a=r(9991),O=r(3521);function b(){return b=Object.assign||function(I){for(var P=1;P{"use strict";r.r(S),r.d(S,{RPD:()=>b});var e=r(1131),s=r(360),n=r(5180),t=r(8961),a=r(3521),O=function(v){switch(v){case 1:return(0,e.jsx)(y,{});case 2:return(0,e.jsx)(u,{});case 3:return(0,e.jsx)(f,{});case 4:return(0,e.jsx)(m,{});case 5:return(0,e.jsx)(d,{});default:return"WE SHOULDN'T BE HERE!"}},b=function(v){var _=(0,s.Oc)(),l=_.act,c=_.data,h=c.mainmenu,g=c.mode,p=c.auto_wrench;return(0,e.jsx)(a.p8,{width:550,height:415,children:(0,e.jsx)(a.p8.Content,{children:(0,e.jsxs)(n.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(n.BJ.Item,{children:(0,e.jsxs)(n.tU,{fluid:!0,children:[h.map(function(j){return(0,e.jsx)(n.tU.Tab,{icon:j.icon,selected:j.mode===g,onClick:function(){return l("mode",{mode:j.mode})},children:j.category},j.category)}),(0,e.jsx)(n.$n,{fluid:!0,icon:"wrench",textAlign:"center",iconPosition:"right",px:1.5,pt:.8,mt:-.3,selected:p,onClick:function(){return l("auto_wrench",{auto_wrench:!p})}})]})}),O(g)]})})})},y=function(v){var _=(0,s.Oc)(),l=_.act,c=_.data,h=c.pipemenu,g=c.pipe_category,p=c.pipelist,j=c.whatpipe,x=c.iconrotation;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.tU,{fluid:!0,children:h.map(function(C){return(0,e.jsx)(n.tU.Tab,{textAlign:"center",selected:C.pipemode===g,onClick:function(){return l("pipe_category",{pipe_category:C.pipemode})},children:C.category},C.category)})})}),(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsxs)(n.BJ,{fill:!0,children:[(0,e.jsx)(n.BJ.Item,{grow:!0,basis:"50%",children:(0,e.jsx)(n.wn,{fill:!0,scrollable:!0,children:(0,e.jsx)(n.xA,{children:(0,e.jsx)(n.xA.Column,{children:p.filter(function(C){return C.pipe_type===1}).filter(function(C){return C.pipe_category===g}).map(function(C){return(0,e.jsx)(n.az,{children:(0,e.jsx)(n.$n,{fluid:!0,color:"translucent",icon:"cog",selected:C.pipe_id===j,onClick:function(){return l("whatpipe",{whatpipe:C.pipe_id})},style:{marginBottom:"2px"},children:C.pipe_name})},C.pipe_name)})})})})}),(0,e.jsx)(n.BJ.Item,{grow:!0,basis:"50%",children:(0,e.jsx)(n.wn,{fill:!0,children:(0,e.jsx)(n.xA,{children:(0,e.jsx)(n.xA.Column,{children:p.filter(function(C){return C.pipe_type===1&&C.pipe_id===j&&C.orientations!==1}).map(function(C){return(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.az,{children:(0,e.jsx)(n.$n,{fluid:!0,textAlign:"center",selected:x===0,onClick:function(){return l("iconrotation",{iconrotation:0})},style:{marginBottom:"5px"},children:"Orient automatically"})}),C.bendy?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(n.xA,{children:[(0,e.jsx)(n.xA.Column,{children:(0,e.jsx)(n.c_,{fluid:!0,textAlign:"center",color:"translucent",dmIcon:C.pipe_icon_file,dmIconState:C.pipe_icon,dmDirection:t.O.SOUTHEAST,selected:x===4,onClick:function(){return l("iconrotation",{iconrotation:4})},style:{marginBottom:"5px"}})}),(0,e.jsx)(n.xA.Column,{children:(0,e.jsx)(n.c_,{fluid:!0,textAlign:"center",color:"translucent",selected:x===2,dmIcon:C.pipe_icon_file,dmIconState:C.pipe_icon,dmDirection:t.O.SOUTHWEST,onClick:function(){return l("iconrotation",{iconrotation:2})},style:{marginBottom:"5px"}})})]}),(0,e.jsxs)(n.xA,{children:[(0,e.jsx)(n.xA.Column,{children:(0,e.jsx)(n.c_,{fluid:!0,textAlign:"center",color:"translucent",dmIcon:C.pipe_icon_file,dmIconState:C.pipe_icon,dmDirection:t.O.NORTHEAST,selected:x===1,onClick:function(){return l("iconrotation",{iconrotation:1})},style:{marginBottom:"5px"}})}),(0,e.jsx)(n.xA.Column,{children:(0,e.jsx)(n.c_,{fluid:!0,textAlign:"center",color:"translucent",dmIcon:C.pipe_icon_file,dmIconState:C.pipe_icon,dmDirection:t.O.NORTHWEST,selected:x===8,onClick:function(){return l("iconrotation",{iconrotation:8})},style:{marginBottom:"5px"}})})]})]}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(n.xA,{children:[(0,e.jsx)(n.xA.Column,{children:(0,e.jsx)(n.c_,{fluid:!0,textAlign:"center",color:"translucent",dmIcon:C.pipe_icon_file,dmIconState:C.pipe_icon,dmDirection:t.O.NORTH,selected:x===1,onClick:function(){return l("iconrotation",{iconrotation:1})},style:{marginBottom:"5px"}})}),(0,e.jsx)(n.xA.Column,{children:(0,e.jsx)(n.c_,{fluid:!0,textAlign:"center",color:"translucent",dmIcon:C.pipe_icon_file,dmIconState:C.pipe_icon,dmDirection:t.O.EAST,selected:x===4,onClick:function(){return l("iconrotation",{iconrotation:4})},style:{marginBottom:"5px"}})})]}),C.orientations===4&&(0,e.jsxs)(n.xA,{children:[(0,e.jsx)(n.xA.Column,{children:(0,e.jsx)(n.c_,{fluid:!0,textAlign:"center",color:"translucent",dmIcon:C.pipe_icon_file,dmIconState:C.pipe_icon,dmDirection:t.O.SOUTH,selected:x===2,onClick:function(){return l("iconrotation",{iconrotation:2})},style:{marginBottom:"5px"}})}),(0,e.jsx)(n.xA.Column,{children:(0,e.jsx)(n.c_,{fluid:!0,textAlign:"center",color:"translucent",dmIcon:C.pipe_icon_file,dmIconState:C.pipe_icon,dmDirection:t.O.WEST,selected:x===8,onClick:function(){return l("iconrotation",{iconrotation:8})},style:{marginBottom:"5px"}})})]})]})]},C.pipe_id)})})})})})]})})]})},u=function(v){var _=(0,s.Oc)(),l=_.act,c=_.data,h=c.pipelist,g=c.whatdpipe,p=c.iconrotation;return(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsxs)(n.BJ,{fill:!0,children:[(0,e.jsx)(n.BJ.Item,{grow:!0,basis:"50%",children:(0,e.jsx)(n.wn,{fill:!0,children:(0,e.jsx)(n.xA,{children:(0,e.jsx)(n.xA.Column,{children:h.filter(function(j){return j.pipe_type===2}).map(function(j){return(0,e.jsx)(n.az,{children:(0,e.jsx)(n.$n,{fluid:!0,color:"translucent",icon:"cog",selected:j.pipe_id===g,onClick:function(){return l("whatdpipe",{whatdpipe:j.pipe_id})},style:{marginBottom:"2px"},children:j.pipe_name})},j.pipe_name)})})})})}),(0,e.jsx)(n.BJ.Item,{grow:!0,basis:"50%",children:(0,e.jsx)(n.wn,{fill:!0,children:(0,e.jsx)(n.xA,{children:(0,e.jsx)(n.xA.Column,{children:h.filter(function(j){return j.pipe_type===2&&j.pipe_id===g&&j.orientations!==1}).map(function(j){return(0,e.jsxs)(n.BJ.Item,{children:[(0,e.jsx)(n.az,{children:(0,e.jsx)(n.$n,{fluid:!0,textAlign:"center",selected:p===0,onClick:function(){return l("iconrotation",{iconrotation:0})},style:{marginBottom:"5px"},children:"Orient automatically"})}),(0,e.jsxs)(n.xA,{children:[(0,e.jsx)(n.xA.Column,{children:(0,e.jsx)(n.c_,{fluid:!0,color:"translucent",textAlign:"center",dmIcon:j.pipe_icon_file,dmIconState:j.pipe_icon,dmDirection:t.O.NORTH,selected:p===1,onClick:function(){return l("iconrotation",{iconrotation:1})},style:{marginBottom:"5px"}})}),(0,e.jsx)(n.xA.Column,{children:(0,e.jsx)(n.c_,{fluid:!0,color:"translucent",textAlign:"center",dmIcon:j.pipe_icon_file,dmIconState:j.pipe_icon,dmDirection:t.O.EAST,selected:p===4,onClick:function(){return l("iconrotation",{iconrotation:4})},style:{marginBottom:"5px"}})})]}),j.orientations===4&&(0,e.jsxs)(n.xA,{children:[(0,e.jsx)(n.xA.Column,{children:(0,e.jsx)(n.c_,{fluid:!0,color:"translucent",textAlign:"center",dmIcon:j.pipe_icon_file,dmIconState:j.pipe_icon,dmDirection:t.O.SOUTH,selected:p===2,onClick:function(){return l("iconrotation",{iconrotation:2})},style:{marginBottom:"5px"}})}),(0,e.jsx)(n.xA.Column,{children:(0,e.jsx)(n.c_,{fluid:!0,color:"translucent",textAlign:"center",dmIcon:j.pipe_icon_file,dmIconState:j.pipe_icon,dmDirection:t.O.WEST,selected:p===8,onClick:function(){return l("iconrotation",{iconrotation:8})},style:{marginBottom:"5px"}})})]})]},j.pipe_id)})})})})})]})})},f=function(v){return(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(n.wn,{fill:!0,children:(0,e.jsx)(n.BJ,{fill:!0,children:(0,e.jsxs)(n.BJ.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",children:[(0,e.jsx)(n.In,{name:"sync-alt",size:5,color:"gray",mb:5}),(0,e.jsx)("br",{}),"Device ready to rotate loose pipes..."]})})})})},m=function(v){return(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(n.wn,{fill:!0,children:(0,e.jsx)(n.BJ,{fill:!0,children:(0,e.jsxs)(n.BJ.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",children:[(0,e.jsx)(n.In,{name:"arrows-alt-h",size:5,color:"gray",mb:5}),(0,e.jsx)("br",{}),"Device ready to flip loose pipes..."]})})})})},d=function(v){return(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(n.wn,{fill:!0,children:(0,e.jsx)(n.BJ,{fill:!0,children:(0,e.jsxs)(n.BJ.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",children:[(0,e.jsx)(n.In,{name:"recycle",size:5,color:"gray",mb:5}),(0,e.jsx)("br",{}),"Device ready to eat loose pipes..."]})})})})}},8216:(q,S,r)=>{"use strict";r.r(S),r.d(S,{NinjaBloodScan:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(y){return(0,e.jsx)(t.p8,{width:500,height:400,theme:"spider_clan",children:(0,e.jsxs)(t.p8.Content,{className:"Layout__content--flexColumn",children:[(0,e.jsx)(O,{}),(0,e.jsx)(b,{})]})})},O=function(y){var u=(0,s.Oc)(),f=u.act,m=u.data,d=m.vialIcons,v=m.noVialIcon,_=m.bloodOwnerNames,l=m.bloodOwnerSpecies,c=m.bloodOwnerTypes,h=m.blockButtons,g=m.scanStates,p={blue:"Button_blue",green:"Button_green",red:"Button_red",disabled:"Button_disabled"},j=["NoticeBox_red","NoticeBox","NoticeBox_blue"],x=[1,2,3];return(0,e.jsx)(n.so,{direction:"column",shrink:1,alignContent:"center",children:(0,e.jsxs)(n.wn,{title:"\u041E\u0431\u0440\u0430\u0437\u0446\u044B",backgroundColor:"rgba(0, 0, 0, 0.4)",buttons:(0,e.jsx)(n.$n,{tooltip:"\u0414\u043E\u0431\u0430\u0432\u044C\u0442\u0435 \u0442\u0440\u0438 \u043E\u0431\u0440\u0430\u0437\u0446\u0430 \u043A\u0440\u043E\u0432\u0438. \u041C\u0430\u0448\u0438\u043D\u0430 \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043D\u0430 \u043D\u0430 \u0440\u0430\u0431\u043E\u0442\u0443 \u0441 \u043A\u0440\u043E\u0432\u044C\u044E \u0441\u0443\u0449\u0435\u0441\u0442\u0432 \u0438 \u0443\u0441\u043B\u043E\u0432\u0438\u044F\u043C\u0438 \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u043F\u043E\u0441\u0442\u0430\u0432\u0438\u043B \u0432\u0430\u043C \u043A\u043B\u0430\u043D. \u0420\u0435\u0430\u0433\u0435\u043D\u0442\u044B \u0438\u043C \u043D\u0435 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044E\u0449\u0438\u0435 \u043D\u0435 \u043F\u0440\u0438\u043C\u0443\u0442\u0441\u044F \u0438\u043B\u0438 \u0441\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435 \u043D\u0435 \u0431\u0443\u0434\u0435\u0442 \u0443\u0441\u043F\u0435\u0448\u043D\u044B\u043C",tooltipPosition:"bottom-start",children:"?"}),children:[(0,e.jsx)(n.so,{direction:"row",shrink:1,alignContent:"center",children:x.map(function(C,I){return(0,e.jsxs)(n.so.Item,{direction:"column",width:"33.3%",ml:I?2:0,children:[(0,e.jsx)(n.wn,{title:_[I]?"\u041A\u0440\u043E\u0432\u044C":"\u041D\u0435\u0442 \u0440\u0435\u0430\u0433\u0435\u043D\u0442\u0430",style:{textAlign:"left",background:"rgba(53, 94, 163, 0.5)"}}),(0,e.jsx)(n.IC,{className:j[g[I]],align:"center",children:(0,e.jsxs)(n.$n,{className:h?p.disabled:p.blue,height:"100%",width:"100%",disabled:h,onClick:function(){return f("vial_out",{button_num:I+1})},children:[(0,e.jsx)(n._V,{height:"128px",width:"128px",src:"data:image/jpeg;base64,"+(d[I]||v),style:{marginLeft:"3px"}}),(0,e.jsx)(n.m_,{content:"\u0420\u0430\u0441\u0430: "+(l[I]||" - ")+` -`+("\u0422\u0438\u043F \u043A\u0440\u043E\u0432\u0438: "+(c[I]||" - ")),position:"bottom",children:_[I]||" - "})]})})]},I)})}),(0,e.jsx)(n.IC,{className:"NoticeBox_red",align:"center",children:(0,e.jsx)(n.$n,{className:h?"Button_disabled":"",width:"250px",textAlign:"center",disabled:h,tooltip:"\u0421\u043A\u0430\u043D\u0438\u0440\u0443\u0435\u0442 \u043A\u0440\u043E\u0432\u044C \u0438 \u043F\u0435\u0440\u0435\u0441\u044B\u043B\u0430\u0435\u0442 \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043D\u0443\u044E \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044E \u043A\u043B\u0430\u043D\u0443.",tooltipPosition:"bottom",onClick:function(){return f("scan_blood")},children:"\u041D\u0430\u0447\u0430\u0442\u044C \u0441\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435"})})]})})},b=function(y){var u=(0,s.Oc)().data,f=u.progressBar;return(0,e.jsx)(n.wn,{stretchContents:!0,children:(0,e.jsx)(n.z2,{color:"green",value:f,minValue:0,maxValue:100,children:(0,e.jsx)("center",{children:(0,e.jsx)(n.IC,{className:"NoticeBox_green",mt:1,children:f?"\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430 "+(f+"%"):"\u0420\u0435\u0436\u0438\u043C \u043E\u0436\u0438\u0434\u0430\u043D\u0438\u044F"})})})})}},8221:(q,S,r)=>{"use strict";r.r(S),r.d(S,{TcommsRelay:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(y){var u=(0,s.Oc)(),f=u.act,m=u.data,d=m.linked,v=m.active,_=m.network_id;return(0,e.jsx)(t.p8,{width:600,height:400,children:(0,e.jsxs)(t.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{title:"\u041A\u043E\u043D\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044F \u0440\u0435\u043B\u0435",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"\u041F\u0438\u0442\u0430\u043D\u0438\u0435",children:(0,e.jsx)(n.$n,{selected:v,icon:"power-off",onClick:function(){return f("toggle_active")},children:v?"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u043E":"\u0412\u044B\u043A\u043B\u044E\u0447\u0435\u043D\u043E"})}),(0,e.jsx)(n.Ki.Item,{label:"\u0421\u0435\u0442\u0435\u0432\u043E\u0439 \u0438\u0434\u0435\u043D\u0442\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440",children:(0,e.jsx)(n.$n,{selected:!!_,icon:"server",onClick:function(){return f("network_id")},children:_||"\u041D\u0435 \u0437\u0430\u0434\u0430\u043D\u043E"})}),(0,e.jsx)(n.Ki.Item,{label:"\u041F\u0440\u0438\u0432\u0437\u043A\u0430",children:d?(0,e.jsx)(n.az,{color:"green",children:"\u041F\u0440\u0438\u0432\u044F\u0437\u0430\u043D\u043E"}):(0,e.jsx)(n.az,{color:"red",children:"\u041D\u0435 \u043F\u0440\u0438\u0432\u044F\u0437\u0430\u043D\u043E"})})]})}),d?(0,e.jsx)(O,{}):(0,e.jsx)(b,{})]})})},O=function(y){var u=(0,s.Oc)(),f=u.act,m=u.data,d=m.linked_core_id,v=m.linked_core_addr,_=m.hidden_link;return(0,e.jsx)(n.wn,{title:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435 \u043F\u0440\u0438\u0432\u044F\u0437\u043A\u0438",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"\u0418\u0434\u0435\u043D\u0442\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440 \u043F\u0440\u0438\u0432\u044F\u0437\u0430\u043D\u043D\u043E\u0433\u043E \u044F\u0434\u0440\u0430",children:d}),(0,e.jsx)(n.Ki.Item,{label:"\u0421\u0435\u0442\u0435\u0432\u043E\u0439 \u0430\u0434\u0440\u0435\u0441 \u043F\u0440\u0438\u0432\u044F\u0437\u0430\u043D\u043E \u044F\u0434\u0440\u0430",children:v}),(0,e.jsx)(n.Ki.Item,{label:"\u0421\u043A\u0440\u044B\u0442\u0430\u044F \u043F\u0440\u0438\u0432\u044F\u0437\u043A\u0430",children:(0,e.jsx)(n.$n,{icon:_?"eye-slash":"eye",selected:_,onClick:function(){return f("toggle_hidden_link")},children:_?"\u0414\u0430":"\u041D\u0435\u0442"})}),(0,e.jsx)(n.Ki.Item,{label:"\u041E\u0442\u0432\u044F\u0437\u0430\u0442\u044C",children:(0,e.jsx)(n.$n,{icon:"unlink",color:"red",onClick:function(){return f("unlink")},children:"\u041E\u0442\u0432\u044F\u0437\u0430\u0442\u044C"})})]})})},b=function(y){var u=(0,s.Oc)(),f=u.act,m=u.data,d=m.cores;return(0,e.jsx)(n.wn,{title:"\u041E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u043D\u044B\u0435 \u044F\u0434\u0440\u0430",children:(0,e.jsxs)(n.XI,{m:"0.5rem",children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{children:"\u0421\u0435\u0442\u0435\u0432\u043E\u0439 \u0430\u0434\u0440\u0435\u0441"}),(0,e.jsx)(n.XI.Cell,{children:"\u0421\u0435\u0442\u0435\u0432\u043E\u0439 \u0438\u0434\u0435\u043D\u0442\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440"}),(0,e.jsx)(n.XI.Cell,{children:"\u0421\u0435\u043A\u0442\u043E\u0440"}),(0,e.jsx)(n.XI.Cell,{children:"\u041F\u0440\u0438\u0432\u044F\u0437\u043A\u0430"})]}),d.map(function(v){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{children:v.addr}),(0,e.jsx)(n.XI.Cell,{children:v.net_id}),(0,e.jsx)(n.XI.Cell,{children:v.sector}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{icon:"link",onClick:function(){return f("link",{addr:v.addr})},children:"\u041F\u0440\u0438\u0432\u044F\u0437\u0430\u0442\u044C"})})]},v.addr)})]})})}},8222:(q,S,r)=>{"use strict";r.d(S,{Fl:()=>g,WP:()=>p,lO:()=>j,zA:()=>b});var e=r(9357),s=r(185);function n(x,C){(C==null||C>x.length)&&(C=x.length);for(var I=0,P=new Array(C);I=x.length?{done:!0}:{done:!1,value:x[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 b=function(x){if(typeof x=="string")return x.endsWith("px")?""+Number.parseFloat(x)/12+"rem":x;if(typeof x=="number")return""+x+"rem"},y=function(x){if(typeof x=="string")return b(x);if(typeof x=="number")return b(x*.5)},u=function(x){return!f(x)},f=function(x){return typeof x=="string"&&e.NE.includes(x)},m=function(x){return function(C,I){(typeof I=="number"||typeof I=="string")&&(C[x]=I)}},d=function(x,C){return function(I,P){(typeof P=="number"||typeof P=="string")&&(I[x]=C(P))}},v=function(x,C){return function(I,P){P&&(I[x]=C)}},_=function(x,C,I){return function(P,M){if(typeof M=="number"||typeof M=="string")for(var B=0;B{"use strict";r.r(S),r.d(S,{meta:()=>n});var e=r(1131),s=r(5180),n={title:"Popper",render:function(){return(0,e.jsx)(t,{})}},t=function(){return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(s.ND,{content:(0,e.jsx)(s.az,{style:{background:"white",border:"2px solid blue"},children:"Loogatme!"}),placement:"bottom",children:(0,e.jsx)(s.az,{style:{border:"5px solid white",height:"300px",width:"200px"}})}),(0,e.jsx)(s.ND,{content:(0,e.jsx)(s.az,{style:{background:"white",border:"2px solid blue"},children:"I am on the right!"}),placement:"right",children:(0,e.jsx)(s.az,{style:{border:"5px solid white",height:"500px",width:"100px"}})})]})}},8252:(q,S,r)=>{"use strict";r.r(S),r.d(S,{PollListPanel:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(O){var b=(0,s.Oc)(),y=b.act,u=b.data,f=u.polls||[];return(0,e.jsx)(t.p8,{title:"Poll List Panel",width:700,height:400,children:(0,e.jsx)(t.p8.Content,{scrollable:!0,children:(0,e.jsxs)(n.wn,{title:"Poll List Panel",children:["Currently running polls Note when editing polls or their options changes are not saved until you press Sumbit Poll.",(0,e.jsx)("br",{}),(0,e.jsx)(n.$n,{onClick:function(){return y("newpoll")},children:"New Poll"}),(0,e.jsx)(n.Ki,{children:f.map(function(m){return(0,e.jsxs)(n.Ki.Item,{label:m.question,children:[(0,e.jsx)(n.$n,{onClick:function(){return y("editpoll",{poll_to_edit:m.id})},children:"Edit"}),(0,e.jsx)(n.$n,{onClick:function(){return y("deletepoll",{poll_to_delete:m.id})},children:"Delete"}),(0,e.jsx)(n.$n,{onClick:function(){return y("resultspoll",{poll_to_result:m.id})},children:"Results"}),(0,e.jsx)(n.az,{children:m.description}),(0,e.jsx)(n.cG,{})]},"poll")})})]})})})}},8433:(q,S,r)=>{"use strict";r.r(S),r.d(S,{pda_atmos_scan:()=>a});var e=r(1131),s=r(360),n=r(9924);function t(){return t=Object.assign||function(O){for(var b=1;b{"use strict";r.r(S),r.d(S,{pda_status_display:()=>t});var e=r(1131),s=r(360),n=r(5180),t=function(a){var O=(0,s.Oc)(),b=O.act,y=O.data,u=y.records;return(0,e.jsx)(n.az,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Code",children:[(0,e.jsx)(n.$n,{color:"transparent",icon:"trash",onClick:function(){return b("Status",{statdisp:"blank"})},children:"Clear"}),(0,e.jsx)(n.$n,{color:"transparent",icon:"clock",onClick:function(){return b("Status",{statdisp:"shuttle"})},children:"Evac ETA"}),(0,e.jsx)(n.$n,{color:"transparent",icon:"edit",onClick:function(){return b("Status",{statdisp:"message"})},children:"Message"}),(0,e.jsx)(n.$n,{color:"transparent",icon:"exclamation-triangle",onClick:function(){return b("Status",{statdisp:"alert",alert:"redalert"})},children:"Red Alert"}),(0,e.jsx)(n.$n,{color:"transparent",icon:"boxes",onClick:function(){return b("Status",{statdisp:"alert",alert:"default"})},children:"NT Logo"}),(0,e.jsx)(n.$n,{color:"transparent",icon:"lock",onClick:function(){return b("Status",{statdisp:"alert",alert:"lockdown"})},children:"Lockdown"}),(0,e.jsx)(n.$n,{color:"transparent",icon:"biohazard",onClick:function(){return b("Status",{statdisp:"alert",alert:"biohazard"})},children:"Biohazard"})]}),(0,e.jsx)(n.Ki.Item,{label:"Message line 1",children:(0,e.jsx)(n.$n,{icon:"pen",onClick:function(){return b("Status",{statdisp:"setmsg1"})},children:u.message1+" (set)"})}),(0,e.jsx)(n.Ki.Item,{label:"Message line 2",children:(0,e.jsx)(n.$n,{icon:"pen",onClick:function(){return b("Status",{statdisp:"setmsg2"})},children:u.message2+" (set)"})})]})})}},8468:(q,S,r)=>{"use strict";r.r(S),r.d(S,{Instrument:()=>O});var e=r(1131),s=r(9818),n=r(360),t=r(5180),a=r(3521),O=function(m){return(0,e.jsxs)(a.p8,{width:600,height:505,children:[(0,e.jsx)(b,{}),(0,e.jsx)(a.p8.Content,{children:(0,e.jsxs)(t.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(y,{}),(0,e.jsx)(f,{})]})})]})},b=function(m){var d=(0,n.Oc)(),v=d.act,_=d.data,l=_.help;if(l)return(0,e.jsx)(t.aF,{maxWidth:"75%",height:window.innerHeight*.75+"px",mx:"auto",py:"0",px:"0.5rem",children:(0,e.jsx)(t.wn,{height:"100%",title:"Help",overflow:"auto",children:(0,e.jsxs)(t.az,{px:"0.5rem",mt:"-0.5rem",children:[(0,e.jsx)("h1",{children:"Making a Song"}),(0,e.jsxs)("p",{children:["Lines are a series of chords, separated by commas\xA0",(0,e.jsx)(t.az,{as:"span",color:"highlight",children:"(,)"}),", each with notes separated by hyphens\xA0",(0,e.jsx)(t.az,{as:"span",color:"highlight",children:"(-)"}),".",(0,e.jsx)("br",{}),"Every note in a chord will play together, with the chord timed by the\xA0",(0,e.jsx)(t.az,{as:"span",color:"highlight",children:"tempo"})," ","as defined above."]}),(0,e.jsxs)("p",{children:["Notes are played by the\xA0",(0,e.jsx)(t.az,{as:"span",color:"good",children:"names of the note"}),", and optionally, the\xA0",(0,e.jsx)(t.az,{as:"span",color:"average",children:"accidental"}),", and/or the"," ",(0,e.jsx)(t.az,{as:"span",color:"bad",children:"octave number"}),".",(0,e.jsx)("br",{}),"By default, every note is\xA0",(0,e.jsx)(t.az,{as:"span",color:"average",children:"natural"})," ","and in\xA0",(0,e.jsx)(t.az,{as:"span",color:"bad",children:"octave 3"}),". Defining a different state for either is remembered for each"," ",(0,e.jsx)(t.az,{as:"span",color:"good",children:"note"}),".",(0,e.jsxs)("ul",{children:[(0,e.jsxs)("li",{children:[(0,e.jsx)(t.az,{as:"span",color:"highlight",children:"Example:"}),"\xA0",(0,e.jsx)("i",{children:"C,D,E,F,G,A,B"})," will play a\xA0",(0,e.jsx)(t.az,{as:"span",color:"good",children:"C"}),"\xA0",(0,e.jsx)(t.az,{as:"span",color:"average",children:"major"})," ","scale."]}),(0,e.jsxs)("li",{children:["After a note has an\xA0",(0,e.jsx)(t.az,{as:"span",color:"average",children:"accidental"})," ","or\xA0",(0,e.jsx)(t.az,{as:"span",color:"bad",children:"octave"})," ","placed, it will be remembered:\xA0",(0,e.jsx)("i",{children:"C,C4,C#,C3"})," is ",(0,e.jsx)("i",{children:"C3,C4,C4#,C3#"})]})]})]}),(0,e.jsxs)("p",{children:[(0,e.jsx)(t.az,{as:"span",color:"highlight",children:"Chords"}),"\xA0can be played simply by seperating each note with a hyphen:"," ",(0,e.jsx)("i",{children:"A-C#,Cn-E,E-G#,Gn-B"}),".",(0,e.jsx)("br",{}),"A"," ",(0,e.jsx)(t.az,{as:"span",color:"highlight",children:"pause"}),"\xA0may be denoted by an empty chord: ",(0,e.jsx)("i",{children:"C,E,,C,G"}),".",(0,e.jsx)("br",{}),"To make a chord be a different time, end it with /x, where the chord length will be length defined by\xA0",(0,e.jsx)(t.az,{as:"span",color:"highlight",children:"tempo / x"}),",\xA0",(0,e.jsx)(t.az,{as:"span",color:"highlight",children:"eg:"})," ",(0,e.jsx)("i",{children:"C,G/2,E/4"}),"."]}),(0,e.jsxs)("p",{children:["Combined, an example line is: ",(0,e.jsx)("i",{children:"E-E4/4,F#/2,G#/8,B/8,E3-E4/4"}),".",(0,e.jsxs)("ul",{children:[(0,e.jsx)("li",{children:"Lines may be up to 300 characters."}),(0,e.jsx)("li",{children:"A song may only contain up to 1,000 lines."})]})]}),(0,e.jsxs)("p",{children:["Lines are a series of chords, separated by commas\xA0",(0,e.jsx)(t.az,{as:"span",color:"highlight",children:"(,)"}),", each with notes separated by hyphens\xA0",(0,e.jsx)(t.az,{as:"span",color:"highlight",children:"(-)"}),".",(0,e.jsx)("br",{}),"Every note in a chord will play together, with the chord timed by the\xA0",(0,e.jsx)(t.az,{as:"span",color:"highlight",children:"tempo"})," ","as defined above."]}),(0,e.jsxs)("p",{children:["Notes are played by the\xA0",(0,e.jsx)(t.az,{as:"span",color:"good",children:"names of the note"}),", and optionally, the\xA0",(0,e.jsx)(t.az,{as:"span",color:"average",children:"accidental"}),", and/or the"," ",(0,e.jsx)(t.az,{as:"span",color:"bad",children:"octave number"}),".",(0,e.jsx)("br",{}),"By default, every note is\xA0",(0,e.jsx)(t.az,{as:"span",color:"average",children:"natural"})," ","and in\xA0",(0,e.jsx)(t.az,{as:"span",color:"bad",children:"octave 3"}),". Defining a different state for either is remembered for each"," ",(0,e.jsx)(t.az,{as:"span",color:"good",children:"note"}),".",(0,e.jsxs)("ul",{children:[(0,e.jsxs)("li",{children:[(0,e.jsx)(t.az,{as:"span",color:"highlight",children:"Example:"}),"\xA0",(0,e.jsx)("i",{children:"C,D,E,F,G,A,B"})," will play a\xA0",(0,e.jsx)(t.az,{as:"span",color:"good",children:"C"}),"\xA0",(0,e.jsx)(t.az,{as:"span",color:"average",children:"major"})," ","scale."]}),(0,e.jsxs)("li",{children:["After a note has an\xA0",(0,e.jsx)(t.az,{as:"span",color:"average",children:"accidental"})," ","or\xA0",(0,e.jsx)(t.az,{as:"span",color:"bad",children:"octave"})," ","placed, it will be remembered:\xA0",(0,e.jsx)("i",{children:"C,C4,C#,C3"})," is ",(0,e.jsx)("i",{children:"C3,C4,C4#,C3#"})]})]})]}),(0,e.jsxs)("p",{children:[(0,e.jsx)(t.az,{as:"span",color:"highlight",children:"Chords"}),"\xA0can be played simply by seperating each note with a hyphen:"," ",(0,e.jsx)("i",{children:"A-C#,Cn-E,E-G#,Gn-B"}),".",(0,e.jsx)("br",{}),"A"," ",(0,e.jsx)(t.az,{as:"span",color:"highlight",children:"pause"}),"\xA0may be denoted by an empty chord: ",(0,e.jsx)("i",{children:"C,E,,C,G"}),".",(0,e.jsx)("br",{}),"To make a chord be a different time, end it with /x, where the chord length will be length defined by\xA0",(0,e.jsx)(t.az,{as:"span",color:"highlight",children:"tempo / x"}),",\xA0",(0,e.jsx)(t.az,{as:"span",color:"highlight",children:"eg:"})," ",(0,e.jsx)("i",{children:"C,G/2,E/4"}),"."]}),(0,e.jsxs)("p",{children:["Combined, an example line is: ",(0,e.jsx)("i",{children:"E-E4/4,F#/2,G#/8,B/8,E3-E4/4"}),".",(0,e.jsxs)("ul",{children:[(0,e.jsx)("li",{children:"Lines may be up to 300 characters."}),(0,e.jsx)("li",{children:"A song may only contain up to 1,000 lines."})]})]}),(0,e.jsx)("h1",{children:"Instrument Advanced Settings"}),(0,e.jsxs)("ul",{children:[(0,e.jsxs)("li",{children:[(0,e.jsx)(t.az,{as:"span",color:"label",children:"Type:"}),"\xA0Whether the instrument is legacy or synthesized.",(0,e.jsx)("br",{}),"Legacy instruments have a collection of sounds that are selectively used depending on the note to play.",(0,e.jsx)("br",{}),"Synthesized instruments use a base sound and change its pitch to match the note to play."]}),(0,e.jsxs)("li",{children:[(0,e.jsx)(t.az,{as:"span",color:"label",children:"Current:"}),"\xA0Which instrument sample to play. Some instruments can be tuned to play different samples. Experiment!"]}),(0,e.jsxs)("li",{children:[(0,e.jsx)(t.az,{as:"span",color:"label",children:"Note Shift/Note Transpose:"}),"\xA0The pitch to apply to all notes of the song."]}),(0,e.jsxs)("li",{children:[(0,e.jsx)(t.az,{as:"span",color:"label",children:"Sustain Mode:"}),"\xA0How a played note fades out.",(0,e.jsx)("br",{}),"Linear sustain means a note will fade out at a constant rate.",(0,e.jsx)("br",{}),"Exponential sustain means a note will fade out at an exponential rate, sounding smoother."]}),(0,e.jsxs)("li",{children:[(0,e.jsx)(t.az,{as:"span",color:"label",children:"Volume Dropoff Threshold:"}),"\xA0The volume threshold at which a note is fully stopped."]}),(0,e.jsxs)("li",{children:[(0,e.jsx)(t.az,{as:"span",color:"label",children:"Sustain indefinitely last held note:"}),"\xA0Whether the last note should be sustained indefinitely."]})]}),(0,e.jsx)(t.$n,{color:"grey",onClick:function(){return v("help")},children:"Close"})]})})})},y=function(m){var d=(0,n.Oc)(),v=d.act,_=d.data,l=_.lines,c=_.playing,h=_.repeat,g=_.maxRepeats,p=_.tempo,j=_.minTempo,x=_.maxTempo,C=_.tickLag,I=_.volume,P=_.minVolume,M=_.maxVolume,B=_.ready;return(0,e.jsxs)(t.wn,{title:"Instrument",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"info",onClick:function(){return v("help")},children:"Help"}),(0,e.jsx)(t.$n,{icon:"file",onClick:function(){return v("newsong")},children:"New"}),(0,e.jsx)(t.$n.File,{icon:"upload",accept:".txt",onSelectFiles:function(w){return v("import",{import:w})},children:"Import"})]}),children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Playback",children:[(0,e.jsx)(t.$n,{selected:c,disabled:l.length===0||h<0,icon:"play",onClick:function(){return v("play")},children:"Play"}),(0,e.jsx)(t.$n,{disabled:!c,icon:"stop",onClick:function(){return v("stop")},children:"Stop"})]}),(0,e.jsx)(t.Ki.Item,{label:"Repeat",children:(0,e.jsx)(t.Ap,{animated:!0,minValue:0,maxValue:g,value:h,stepPixelSize:59,onChange:function(w,T){return v("repeat",{new:T})}})}),(0,e.jsx)(t.Ki.Item,{label:"Tempo",children:(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{disabled:p>=x,as:"span",mr:"0.5rem",onClick:function(){return v("tempo",{new:p+C})},children:"-"}),(0,s.LI)(600/p,0)," BPM",(0,e.jsx)(t.$n,{disabled:p<=j,as:"span",ml:"0.5rem",onClick:function(){return v("tempo",{new:p-C})},children:"+"})]})}),(0,e.jsx)(t.Ki.Item,{label:"Volume",children:(0,e.jsx)(t.Ap,{animated:!0,minValue:P,maxValue:M,value:I,stepPixelSize:6,onDrag:function(w,T){return v("setvolume",{new:T})}})}),(0,e.jsx)(t.Ki.Item,{label:"Status",children:B?(0,e.jsx)(t.az,{color:"good",children:"Ready"}):(0,e.jsx)(t.az,{color:"bad",children:"Instrument Definition Error!"})})]}),(0,e.jsx)(u,{})]})},u=function(m){var d=(0,n.Oc)(),v=d.act,_=d.data,l=_.allowedInstrumentNames,c=_.instrumentLoaded,h=_.instrument,g=_.canNoteShift,p=_.noteShift,j=_.noteShiftMin,x=_.noteShiftMax,C=_.sustainMode,I=_.sustainLinearDuration,P=_.sustainExponentialDropoff,M=_.legacy,B=_.sustainDropoffVolume,w=_.sustainHeldNote,T,K;return C===1?(T="Linear",K=(0,e.jsx)(t.Ap,{minValue:.1,maxValue:5,value:I,step:.5,stepPixelSize:85,format:function(R){return(0,s.LI)(R*100,0)/100+" seconds"},onChange:function(R,U){return v("setlinearfalloff",{new:U/10})}})):C===2&&(T="Exponential",K=(0,e.jsx)(t.Ap,{minValue:1.025,maxValue:10,value:P,step:.01,format:function(R){return(0,s.LI)(R*1e3,0)/1e3+"% per decisecond"},onChange:function(R,U){return v("setexpfalloff",{new:U})}})),l.sort(),(0,e.jsx)(t.az,{my:-1,children:(0,e.jsx)(t.Nt,{mt:"1rem",mb:"0",title:"Advanced",children:(0,e.jsxs)(t.wn,{mt:-1,children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Type",children:M?"Legacy":"Synthesized"}),(0,e.jsx)(t.Ki.Item,{label:"Current",children:c?(0,e.jsx)(t.ms,{options:l,selected:h,width:"50%",onSelected:function(R){return v("switchinstrument",{name:R})}}):(0,e.jsx)(t.az,{color:"bad",children:"None!"})}),!!(!M&&g)&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.Ki.Item,{label:"Note Shift/Note Transpose",children:(0,e.jsx)(t.Ap,{minValue:j,maxValue:x,value:p,stepPixelSize:2,format:function(R){return R+" keys / "+(0,s.LI)(R/12*100,0)/100+" octaves"},onChange:function(R,U){return v("setnoteshift",{new:U})}})}),(0,e.jsxs)(t.Ki.Item,{label:"Sustain Mode",children:[(0,e.jsx)(t.ms,{options:["Linear","Exponential"],selected:T,onSelected:function(R){return v("setsustainmode",{new:R})}}),K]}),(0,e.jsx)(t.Ki.Item,{label:"Volume Dropoff Threshold",children:(0,e.jsx)(t.Ap,{animated:!0,minValue:.01,maxValue:100,value:B,stepPixelSize:6,onChange:function(R,U){return v("setdropoffvolume",{new:U})}})}),(0,e.jsx)(t.Ki.Item,{label:"Sustain indefinitely last held note",children:(0,e.jsx)(t.$n,{selected:w,icon:w?"toggle-on":"toggle-off",onClick:function(){return v("togglesustainhold")},children:w?"Yes":"No"})})]})]}),(0,e.jsx)(t.$n,{icon:"redo",mt:"0.5rem",onClick:function(){return v("reset")},children:"Reset to Default"})]})})})},f=function(m){var d=(0,n.Oc)(),v=d.act,_=d.data,l=_.playing,c=_.lines,h=_.editing;return(0,e.jsx)(t.wn,{fill:!0,scrollable:!0,title:"Editor",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{disabled:!h||l,icon:"plus",onClick:function(){return v("newline",{line:c.length+1})},children:"Add Line"}),(0,e.jsx)(t.$n,{selected:!h,icon:h?"chevron-up":"chevron-down",onClick:function(){return v("edit")}})]}),children:!!h&&(c.length>0?(0,e.jsx)(t.Ki,{children:c.map(function(g,p){return(0,e.jsx)(t.Ki.Item,{label:p+1,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{disabled:l,icon:"pen",onClick:function(){return v("modifyline",{line:p+1})}}),(0,e.jsx)(t.$n,{disabled:l,icon:"trash",onClick:function(){return v("deleteline",{line:p+1})}})]}),children:g},p)})}):(0,e.jsx)(t.az,{color:"label",children:"Song is empty."}))})}},8477:(q,S,r)=>{"use strict";r.d(S,{QL:()=>n,d5:()=>t,fU:()=>u});/** + */var s=function(){"use strict";function x(){this.listeners={}}var C=x.prototype;return C.on=function(P,M){this.listeners[P]=this.listeners[P]||[],this.listeners[P].push(M)},C.off=function(P,M){var B=this.listeners[P];if(!B)throw new Error('There is no listeners for "'+P+'"');this.listeners[P]=B.filter(function(w){return w!==M})},C.emit=function(P){for(var M=arguments.length,B=new Array(M>1?M-1:0),w=1;w=0&&l.splice(C,1)},g=function(x){if(!(u||!O))for(var C=document.body;x&&x!==C;){if(l.includes(x)){if(x.contains(v))return;v=x,x.focus();return}x=x.parentElement}};window.addEventListener("mousemove",function(x){var C=x.target;C!==_&&(_=C,g(C))}),window.addEventListener("focusin",function(x){_=null,v=x.target,y(!0),f(x.target)&&m(x.target)}),window.addEventListener("focusout",function(){_=null,y(!1,!0)}),window.addEventListener("blur",function(){_=null,y(!1,!0)}),window.addEventListener("beforeunload",function(){y(!1)});var p={},j=function(){"use strict";function x(I,P,M){this.event=I,this.type=P,this.code=I.keyCode,this.ctrl=I.ctrlKey,this.shift=I.shiftKey,this.alt=I.altKey,this.repeat=!!M}var C=x.prototype;return C.hasModifierKeys=function(){return this.ctrl||this.alt||this.shift},C.isModifierKey=function(){return this.code===e.Ss||this.code===e.re||this.code===e.cH},C.isDown=function(){return this.type==="keydown"},C.isUp=function(){return this.type==="keyup"},C.toString=function(){return this._str?this._str:(this._str="",this.ctrl&&(this._str+="Ctrl+"),this.alt&&(this._str+="Alt+"),this.shift&&(this._str+="Shift+"),this.code>=48&&this.code<=90?this._str+=String.fromCharCode(this.code):this.code>=e.sV&&this.code<=e.Yw?this._str+="F"+(this.code-111):this._str+="["+this.code+"]",this._str)},x}();document.addEventListener("keydown",function(x){if(!f(x.target)){var C=x.keyCode,I=new j(x,"keydown",p[C]);n.emit("keydown",I),n.emit("key",I),p[C]=!0}}),document.addEventListener("keyup",function(x){if(!f(x.target)){var C=x.keyCode,I=new j(x,"keyup");n.emit("keyup",I),n.emit("key",I),p[C]=!1}})},7941:(q,S,r)=>{"use strict";r.r(S),r.d(S,{Port:()=>m});var e=r(1131),s=r(5180),n=r(7003),t=r(9797),a=r(185),b=r(8968);function O(){return O=Object.assign||function(d){for(var v=1;v=0)&&(_[c]=d[c]);return _}function f(d,v){return f=Object.setPrototypeOf||function(l,c){return l.__proto__=c,l},f(d,v)}var m=function(d){"use strict";y(v,d);function v(l){var c;return c=d.call(this,l)||this,c.iconRef=(0,n.createRef)(),c.componentDidUpdate=c.componentDidUpdate.bind(c),c.componentDidMount=c.componentDidMount.bind(c),c.handlePortMouseDown=c.handlePortMouseDown.bind(c),c.handlePortRightClick=c.handlePortRightClick.bind(c),c.handlePortMouseUp=c.handlePortMouseUp.bind(c),c}var _=v.prototype;return _.handlePortMouseDown=function(c){var h=this.props,g=h.port,p=h.portIndex,j=h.componentId,x=h.isOutput,C=h.onPortMouseDown,I=C===void 0?b.noop:C;I(p,j,g,x,c)},_.handlePortMouseUp=function(c){var h=this.props,g=h.port,p=h.portIndex,j=h.componentId,x=h.isOutput,C=h.onPortMouseUp,I=C===void 0?b.noop:C;I(p,j,g,x,c)},_.handlePortRightClick=function(c){var h=this.props,g=h.port,p=h.portIndex,j=h.componentId,x=h.isOutput,C=h.onPortRightClick,I=C===void 0?b.noop:C;I(p,j,g,x,c)},_.componentDidUpdate=function(){var c=this.props,h=c.port,g=c.onPortUpdated;g&&g(h,this.iconRef.current)},_.componentDidMount=function(){var c=this.props,h=c.port,g=c.onPortLoaded;g&&g(h,this.iconRef.current)},_.renderDisplayName=function(){var c=this.props,h=c.port,g=c.portIndex,p=c.componentId,j=c.isOutput,x=c.act;return(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(t.DisplayName,{act:x,port:h,isOutput:j,componentId:p,portIndex:g})})},_.render=function(){var c,h=this.props,g=h.port,p=h.isOutput,j=u(h,["port","isOutput"]),x=[];return(c=g.datatype_data)!=null&&c.composite_types&&(x=g.datatype_data.composite_types),(0,e.jsxs)(s.BJ,O({},j,{justify:p?"flex-end":"flex-start",children:[!!p&&this.renderDisplayName(),(0,e.jsx)(s.BJ.Item,{children:(0,e.jsxs)(s.az,{className:(0,a.Ly)(["ObjectComponent__Port"]),onMouseDown:this.handlePortMouseDown,onContextMenu:this.handlePortRightClick,onMouseUp:this.handlePortMouseUp,children:[(0,e.jsxs)("svg",{style:{width:"100%",height:"100%",position:"absolute",overflow:"visible"},viewBox:"0, 0, 100, 100",children:[x.map(function(C,I){var P=2*Math.PI/x.length,M=P*50;return(0,e.jsx)("circle",{stroke:C,strokeDasharray:M+", "+100*Math.PI,strokeDashoffset:-I*(100*(Math.PI/x.length)),className:"color-stroke-"+C,strokeWidth:"50px",cx:"50",cy:"50",r:"50",fillOpacity:"0",transform:"rotate(90, 50, 50)"},I)}),(0,e.jsx)("circle",{ref:this.iconRef,cx:"50",cy:"50",r:"50",className:"color-fill-"+g.color})]}),(0,e.jsx)("span",{ref:this.iconRef,className:"ObjectComponent__PortPos"})]})}),!p&&this.renderDisplayName()]}))},v}(n.Component)},7957:(q,S,r)=>{"use strict";r.r(S),r.d(S,{SatelliteControl:()=>b});var e=r(1131),s=r(7003),n=r(360),t=r(5180),a=r(3521),b=function(f){var m=(0,n.Oc)(),d=m.act,v=m.data,_=(0,s.useState)(v.tabIndex),l=_[0],c=_[1],h=function(p){c(p),d("set_tab_index",{tab_index:p})},g=function(p){switch(p){case 0:return(0,e.jsx)(O,{});case 1:return(0,e.jsx)(y,{});default:return"WE SHOULDN'T BE HERE!"}};return(0,e.jsx)(a.p8,{width:800,height:600,children:(0,e.jsx)(a.p8.Content,{children:(0,e.jsxs)(t.BJ,{vertical:!0,fillPositionedParent:!0,children:[(0,e.jsx)(t.BJ.Item,{children:(0,e.jsxs)(t.tU,{children:[(0,e.jsx)(t.tU.Tab,{icon:"table",selected:l===0,onClick:function(){return h(0)},children:"\u0421\u043F\u0443\u0442\u043D\u0438\u043A\u0438"}),(0,e.jsx)(t.tU.Tab,{icon:"map-marked-alt",selected:l===1,onClick:function(){return h(1)},children:"\u041F\u0440\u043E\u0441\u043C\u043E\u0442\u0440 \u043A\u0430\u0440\u0442\u044B"})]})}),(0,e.jsx)(t.BJ.Item,{grow:1,overflow:"hidden",children:g(l)}),(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(u,{})})]})})})},O=function(f){var m=(0,n.Oc)(),d=m.act,v=m.data,_=v.satellites;return(0,e.jsx)(t.wn,{title:"\u0423\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435 \u0441\u043F\u0443\u0442\u043D\u0438\u043A\u043E\u0432\u043E\u0439 \u0441\u0435\u0442\u044C\u044E",fill:!0,overflow:"auto",children:(0,e.jsx)(t.Ki,{children:_.map(function(l){return(0,e.jsxs)(t.Ki.Item,{label:"#"+l.id,children:[(0,e.jsx)(t.az,{inline:!0,bold:!0,color:l.active?"good":"average",mr:2,children:l.mode}),(0,e.jsx)(t.$n,{icon:l.active?"power-off":"times",color:l.active?"average":"good",onClick:function(){return d("toggle",{id:l.id})},children:l.active?"\u0414\u0435\u0430\u043A\u0442\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u0442\u044C":"\u0410\u043A\u0442\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u0442\u044C"})]},l.id)})})})},y=function(f){var m=(0,n.Oc)(),d=m.act,v=m.data,_=v.satellites,l=_===void 0?[]:_,c=v.has_goal,h=c===void 0?!1:c,g=v.defended,p=g===void 0?[]:g,j=v.collisions,x=j===void 0?[]:j,C=v.fake_meteors,I=C===void 0?[]:C,P=v.offsetX,M=P===void 0?0:P,B=v.offsetY,w=B===void 0?0:B,T=v.stationLevelNum,K=v.stationLevelName,R=(0,s.useState)(T[0]),U=R[0],F=R[1],$=(0,s.useState)(1),W=$[0],N=$[1],Z=(0,s.useState)(!1),ie=Z[0],Q=Z[1];return(0,e.jsxs)(t.az,{height:"100%",children:[(0,e.jsx)(t.az,{height:"100%",style:{display:"flex"},children:(0,e.jsxs)(t.tx,{onZoom:function(V,G){return N(G)},offsetX:M,offsetY:w,zNames:K,zLevels:T,zCurrent:U,setZCurrent:F,onOffsetChangeEnded:function(V,G){return d("set_offset",{offset_x:G.x,offset_y:G.y})},children:[l.map(function(V){return(0,e.jsx)(t.tx.MarkerIcon,{x:V.x,y:V.y,z:V.z,z_current:U,zoom:W,icon:"satellite",tooltip:V.active?"\u0421\u043F\u0443\u0442\u043D\u0438\u043A \u0449\u0438\u0442\u0430":"\u041D\u0435\u0430\u043A\u0442\u0438\u0432\u043D\u044B\u0439 \u0441\u043F\u0443\u0442\u043D\u0438\u043A",tooltipPosition:V.x>255/2?"bottom":"right",color:V.active?"white":"grey",onClick:function(){return d("toggle",{id:V.id})}},"sat_"+V.id)}),ie&&l.map(function(V){return V.active?(0,e.jsx)(t.tx.MarkerCircle,{x:V.x,y:V.y,z:U,z_current:U,zoom:W,radius:V.kill_range,color:"rgba(0, 150, 255, 0.5)",tooltip:"\u0417\u0430\u0449\u0438\u0449\u0451\u043D\u043D\u0430\u044F \u0442\u0435\u0440\u0440\u0438\u0442\u043E\u0440\u0438\u044F"},"circle_"+V.id):null}),h&&p.map(function(V,G){return(0,e.jsx)(t.tx.MarkerIcon,{x:V.x,y:V.y,z:V.z,z_current:U,zoom:W,icon:"shield",tooltip:"\u0423\u0441\u043F\u0435\u0448\u043D\u0430\u044F \u0437\u0430\u0449\u0438\u0442\u0430",tooltipPosition:V.x>255/2?"bottom":"right",color:"blue"},"defended_"+G+"_"+V.x+"_"+V.y)}),h&&x.map(function(V,G){return(0,e.jsx)(t.tx.MarkerIcon,{x:V.x,y:V.y,z:V.z,z_current:U,zoom:W,icon:"x",tooltip:"\u0421\u0442\u043E\u043B\u043A\u043D\u043E\u0432\u0435\u043D\u0438\u0435 \u0441 \u043C\u0435\u0442\u0435\u043E\u0440\u043E\u043C",tooltipPosition:V.x>255/2?"bottom":"right",color:"red"},"collision_"+G+"_"+V.x+"_"+V.y)}),h&&I.map(function(V,G){return(0,e.jsx)(t.tx.MarkerIcon,{x:V.x,y:V.y,z:V.z,z_current:U,zoom:W,icon:"meteor",tooltip:"\u041C\u0435\u0442\u0435\u043E\u0440",tooltipPosition:V.x>255/2?"bottom":"right",color:"white"},"meteor_"+G+"_"+V.x+"_"+V.y)})]})}),(0,e.jsx)(t.$n,{position:"absolute",top:"0.5rem",right:"0.5rem",icon:"shield",selected:ie,onClick:function(){return Q(!ie)},tooltip:"\u041E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0437\u0430\u0449\u0438\u0449\u0451\u043D\u043D\u043E\u0439 \u0442\u0435\u0440\u0440\u0438\u0442\u043E\u0440\u0438\u0438"})]})},u=function(f){var m=(0,n.Oc)(),d=m.act,v=m.data,_=v.notice,l=v.notice_color,c=v.has_goal,h=v.coverage,g=v.coverage_goal,p=v.testing,j=v.max_meteor;return(0,e.jsxs)(e.Fragment,{children:[c?(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.wn,{title:"\u0410\u043D\u0442\u0438\u043C\u0435\u0442\u0435\u043E\u0440\u043D\u043E\u0435 \u043F\u043E\u043A\u0440\u044B\u0442\u0438\u0435 \u0441\u0442\u0430\u043D\u0446\u0438\u0438",children:(0,e.jsxs)(t.BJ,{fill:!0,children:[(0,e.jsx)(t.BJ.Item,{grow:!0,children:(0,e.jsxs)(t.z2,{color:h>=g?"good":"average",value:h,minValue:0,maxValue:j,children:[h,"%"]})}),(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.$n,{disabled:p,onClick:function(){return d("begin_test")},children:"\u0410\u043A\u0442\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0438\u043C\u0443\u043B\u044F\u0446\u0438\u044E"})})]})})}):null,(0,e.jsx)(t.BJ.Item,{fontFamily:"sans-serif",fontSize:"14px",textColor:l,children:_})]})}},7960:(q,S,r)=>{"use strict";r.r(S),r.d(S,{MiniGamesMenu:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(b){var O=(0,s.Oc)(),y=O.act,u=O.data,f=u.spawners||[],m=u.thunderdome_eligible,d=u.notifications_enabled;return(0,e.jsx)(t.p8,{width:700,height:600,children:(0,e.jsxs)(t.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.$n,{fluid:!0,textAlign:"center",icon:"power-off",tooltip:m?"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0447\u0430\u0441\u0442\u0438\u0435 \u0432 \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445":"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0447\u0430\u0441\u0442\u0438\u0435 \u0432 \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445",tooltipPosition:"bottom",color:m?"good":"bad",onClick:function(){return y("toggle_minigames")},children:m?"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0447\u0430\u0441\u0442\u0438\u0435 \u0432 \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445":"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0447\u0430\u0441\u0442\u0438\u0435 \u0432 \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445"}),(0,e.jsx)(n.$n,{fluid:!0,textAlign:"center",icon:"power-off",tooltip:d?"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0432\u0435\u0434\u043E\u043C\u043B\u0435\u043D\u0438\u044F \u043E \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445":"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0432\u0435\u0434\u043E\u043C\u043B\u0435\u043D\u0438\u044F \u043E \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445",tooltipPosition:"bottom",color:d?"good":"bad",onClick:function(){return y("toggle_notifications")},children:d?"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0432\u0435\u0434\u043E\u043C\u043B\u0435\u043D\u0438\u044F \u043E \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445":"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0432\u0435\u0434\u043E\u043C\u043B\u0435\u043D\u0438\u044F \u043E \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445"}),(0,e.jsx)(n.wn,{children:f.map(function(v){return(0,e.jsxs)(n.wn,{mb:.5,title:v.name,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"chevron-circle-right",onClick:function(){return y("jump",{ID:v.uids})},children:"Jump"}),(0,e.jsx)(n.$n,{icon:"chevron-circle-right",onClick:function(){return y("spawn",{ID:v.uids})},children:"Start"})]}),children:[(0,e.jsx)(n.az,{style:{whiteSpace:"pre-wrap"},mb:1,fontSize:"16px",children:v.desc}),!!v.fluff&&(0,e.jsx)(n.az,{style:{whiteSpace:"pre-wrap"},textColor:"#878787",fontSize:"14px",children:v.fluff}),!!v.important_info&&(0,e.jsx)(n.az,{style:{whiteSpace:"pre-wrap"},mt:1,bold:!0,color:"red",fontSize:"18px",children:v.important_info})]},v.name)})})]})})}},7989:(q,S,r)=>{"use strict";r.d(S,{Bm:()=>c,ao:()=>h,sc:()=>g,zr:()=>_});var e=r(7921),s=r(683);function n(x,C){(C==null||C>x.length)&&(C=x.length);for(var I=0,P=new Array(C);I=x.length?{done:!0}:{done:!1,value:x[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 b={},O=[s.s6,s.Ri,s.iy,s.aW,s.Ss,s.re,s.gf,s.R,s.iU,s.zh,s.sP],y={},u=[],f=function(x){if(x===16)return"Shift";if(x===17)return"Ctrl";if(x===18)return"Alt";if(x===33)return"Northeast";if(x===34)return"Southeast";if(x===35)return"Southwest";if(x===36)return"Northwest";if(x===37)return"West";if(x===38)return"North";if(x===39)return"East";if(x===40)return"South";if(x===45)return"Insert";if(x===46)return"Delete";if(x>=48&&x<=57||x>=65&&x<=90)return String.fromCharCode(x);if(x>=96&&x<=105)return"Numpad"+(x-96);if(x>=112&&x<=123)return"F"+(x-111);if(x===188)return",";if(x===189)return"-";if(x===190)return"."},m=function(x){var C=String(x);if(C==="Ctrl+F5"||C==="Ctrl+R"){location.reload();return}if(C!=="Ctrl+F"&&!(x.event.defaultPrevented||x.isModifierKey()||O.includes(x.code))){var I=f(x.code);if(I){var P=b[I];if(P)return Byond.command(P);if(x.isDown()&&!y[I]){y[I]=!0;var M=l.verbParamsFn(l.keyDownVerb,I);return Byond.command(M)}if(x.isUp()&&y[I]){y[I]=!1;var B=l.verbParamsFn(l.keyUpVerb,I);return Byond.command(B)}}}},d=function(x){O.push(x)},v=function(x){var C=O.indexOf(x);C>=0&&O.splice(C,1)},_=function(){for(var x in y)y[x]&&(y[x]=!1,Byond.command(l.verbParamsFn(l.keyUpVerb,x)))},l={keyDownVerb:"KeyDown",keyUpVerb:"KeyUp",verbParamsFn:function(x,C){return x+' "'+C+'"'}},c=function(x){x&&(l=x),Byond.winget("default.*").then(function(C){var I={};for(var P in C){var M=P.split("."),B=M[1],w=M[2];B&&w&&(I[B]||(I[B]={}),I[B][w]=C[P])}var T=/\\"/g,K=function($){return $.substring(1,$.length-1).replace(T,'"')};for(var R in I){var U=I[R],F=K(U.name);b[F]=K(U.command)}}),e.Nh.on("window-blur",function(){_()}),h()},h=function(){e.Nh.on("key",p)},g=function(){e.Nh.off("key",p)},p=function(x){for(var C=a(u),I;!(I=C()).done;){var P=I.value;P(x)}m(x)},j=function(x){u.push(x);var C=!1;return function(){C||(C=!0,u.splice(u.indexOf(x),1))}}},8151:(q,S,r)=>{"use strict";r.r(S),r.d(S,{CreateObjectAdvancedSettings:()=>b});var e=r(1131),s=r(7003),n=r(5180),t=r(360);function a(){return a=Object.assign||function(O){for(var y=1;y{"use strict";r.r(S),r.d(S,{BluespaceRiftScanner:()=>b});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a={0:"OFF",1:"NO_RIFTS",2:"SOME_RIFTS",3:"DANGER"},b=function(O){var y=(0,s.Oc)(),u=y.act,f=y.data,m=f.scanStatus,d=f.serversFound,v=f.switching,_=f.time_for_failure,l=f.time_till_failure,c=a[m],h=function(){if(c==="OFF")return[" ","silver"];if(c==="NO_RIFTS")return["\u041D\u0435\u0442 \u0440\u0430\u0437\u043B\u043E\u043C\u043E\u0432 \u0432 \u0440\u0430\u0434\u0438\u0443\u0441\u0435 \u0441\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F.","silver"];if(c==="SOME_RIFTS")return d?["\u0421\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435 \u043F\u0440\u043E\u0445\u043E\u0434\u0438\u0442 \u0443\u0441\u043F\u0435\u0448\u043D\u043E.","good"]:["\u0421\u0435\u0440\u0432\u0435\u0440 \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D. \u041F\u0435\u0440\u0435\u0434\u0430\u0447\u0430 \u0434\u0430\u043D\u043D\u044B\u0445 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0430.","average"];if(c==="DANGER")return["\u041E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u044C! \u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u0435 \u0441\u043A\u0430\u043D\u0435\u0440!","bad"]},g=h(),p=.11,j=c==="OFF"?["grey",p]:["good",1],x=c==="SOME_RIFTS"?[d?"good":"average",1]:["grey",p],C=c==="DANGER"?["bad",1]:["grey",p],I=_&&l?Math.floor((_-l)/_*100):0;return(0,e.jsx)(t.p8,{width:475,height:400,children:(0,e.jsx)(t.p8.Content,{children:v?(0,e.jsx)(n.Rr,{backgroundColor:"black",opacity:.85,children:(0,e.jsx)(n.BJ,{fill:!0,vertical:!0,children:(0,e.jsxs)(n.BJ.Item,{bold:!0,textAlign:"center",mb:2,children:[(0,e.jsx)(n.In,{name:"circle-notch",size:2,mb:4,spin:!0}),(0,e.jsx)("br",{}),c==="OFF"?"\u0421\u043A\u0430\u043D\u0435\u0440 \u0432\u043A\u043B\u044E\u0447\u0430\u0435\u0442\u0441\u044F...":"\u0421\u043A\u0430\u043D\u0435\u0440 \u0432\u044B\u043A\u043B\u044E\u0447\u0430\u0435\u0442\u0441\u044F..."]})})}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(n.wn,{title:"\u0421\u0442\u0430\u0442\u0443\u0441",pb:1,children:[(0,e.jsx)(n.In,{name:"power-off",size:2,color:j[0],opacity:j[1],mx:.7,mt:.1}),(0,e.jsx)(n.In,{name:"satellite-dish",size:2,color:x[0],opacity:x[1],mx:.7,mt:.1}),(0,e.jsx)(n.In,{name:"exclamation-triangle",size:2,color:C[0],opacity:C[1],mx:.7,mt:.1}),(0,e.jsx)(n.az,{fontSize:"1.3rem",color:"silver",italic:c!=="OFF",mt:1.7,mb:1,ml:.7,children:c==="OFF"?"\u0421\u043A\u0430\u043D\u0435\u0440 \u0432\u044B\u043A\u043B\u044E\u0447\u0435\u043D":"\u0421\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435..."}),c!=="OFF"&&(0,e.jsxs)(n.az,{color:g[1],children:[(0,e.jsx)(n.In,{name:"info",opacity:.9,ml:1.1,mr:1.4}),g[0]]}),c==="DANGER"&&(0,e.jsx)(n.z2,{color:"bad",value:I,maxValue:100,mt:1.5,children:(0,e.jsxs)(n.az,{color:"orange",children:["\u041F\u0415\u0420\u0415\u0413\u0420\u0423\u0417\u041A\u0410 ",I," %"]})})]}),(0,e.jsx)(n.wn,{children:(0,e.jsx)(n.$n,{fluid:!0,icon:"power-off",textAlign:"center",onClick:function(){return u("toggle")},children:c==="OFF"?"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C":"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C"})})]})})})}},8206:(q,S,r)=>{"use strict";r.r(S),r.d(S,{KitchenSink:()=>m});var e=r(1131),s=r(360),n=r(7003),t=r(5180),a=r(9991),b=r(3521);function O(){return O=Object.assign||function(I){for(var P=1;P{"use strict";r.r(S),r.d(S,{RPD:()=>O});var e=r(1131),s=r(360),n=r(5180),t=r(8961),a=r(3521),b=function(v){switch(v){case 1:return(0,e.jsx)(y,{});case 2:return(0,e.jsx)(u,{});case 3:return(0,e.jsx)(f,{});case 4:return(0,e.jsx)(m,{});case 5:return(0,e.jsx)(d,{});default:return"WE SHOULDN'T BE HERE!"}},O=function(v){var _=(0,s.Oc)(),l=_.act,c=_.data,h=c.mainmenu,g=c.mode,p=c.auto_wrench;return(0,e.jsx)(a.p8,{width:550,height:415,children:(0,e.jsx)(a.p8.Content,{children:(0,e.jsxs)(n.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(n.BJ.Item,{children:(0,e.jsxs)(n.tU,{fluid:!0,children:[h.map(function(j){return(0,e.jsx)(n.tU.Tab,{icon:j.icon,selected:j.mode===g,onClick:function(){return l("mode",{mode:j.mode})},children:j.category},j.category)}),(0,e.jsx)(n.$n,{fluid:!0,icon:"wrench",textAlign:"center",iconPosition:"right",px:1.5,pt:.8,mt:-.3,selected:p,onClick:function(){return l("auto_wrench",{auto_wrench:!p})}})]})}),b(g)]})})})},y=function(v){var _=(0,s.Oc)(),l=_.act,c=_.data,h=c.pipemenu,g=c.pipe_category,p=c.pipelist,j=c.whatpipe,x=c.iconrotation;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.tU,{fluid:!0,children:h.map(function(C){return(0,e.jsx)(n.tU.Tab,{textAlign:"center",selected:C.pipemode===g,onClick:function(){return l("pipe_category",{pipe_category:C.pipemode})},children:C.category},C.category)})})}),(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsxs)(n.BJ,{fill:!0,children:[(0,e.jsx)(n.BJ.Item,{grow:!0,basis:"50%",children:(0,e.jsx)(n.wn,{fill:!0,scrollable:!0,children:(0,e.jsx)(n.xA,{children:(0,e.jsx)(n.xA.Column,{children:p.filter(function(C){return C.pipe_type===1}).filter(function(C){return C.pipe_category===g}).map(function(C){return(0,e.jsx)(n.az,{children:(0,e.jsx)(n.$n,{fluid:!0,color:"translucent",icon:"cog",selected:C.pipe_id===j,onClick:function(){return l("whatpipe",{whatpipe:C.pipe_id})},style:{marginBottom:"2px"},children:C.pipe_name})},C.pipe_name)})})})})}),(0,e.jsx)(n.BJ.Item,{grow:!0,basis:"50%",children:(0,e.jsx)(n.wn,{fill:!0,children:(0,e.jsx)(n.xA,{children:(0,e.jsx)(n.xA.Column,{children:p.filter(function(C){return C.pipe_type===1&&C.pipe_id===j&&C.orientations!==1}).map(function(C){return(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.az,{children:(0,e.jsx)(n.$n,{fluid:!0,textAlign:"center",selected:x===0,onClick:function(){return l("iconrotation",{iconrotation:0})},style:{marginBottom:"5px"},children:"Orient automatically"})}),C.bendy?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(n.xA,{children:[(0,e.jsx)(n.xA.Column,{children:(0,e.jsx)(n.c_,{fluid:!0,textAlign:"center",color:"translucent",dmIcon:C.pipe_icon_file,dmIconState:C.pipe_icon,dmDirection:t.O.SOUTHEAST,selected:x===4,onClick:function(){return l("iconrotation",{iconrotation:4})},style:{marginBottom:"5px"}})}),(0,e.jsx)(n.xA.Column,{children:(0,e.jsx)(n.c_,{fluid:!0,textAlign:"center",color:"translucent",selected:x===2,dmIcon:C.pipe_icon_file,dmIconState:C.pipe_icon,dmDirection:t.O.SOUTHWEST,onClick:function(){return l("iconrotation",{iconrotation:2})},style:{marginBottom:"5px"}})})]}),(0,e.jsxs)(n.xA,{children:[(0,e.jsx)(n.xA.Column,{children:(0,e.jsx)(n.c_,{fluid:!0,textAlign:"center",color:"translucent",dmIcon:C.pipe_icon_file,dmIconState:C.pipe_icon,dmDirection:t.O.NORTHEAST,selected:x===1,onClick:function(){return l("iconrotation",{iconrotation:1})},style:{marginBottom:"5px"}})}),(0,e.jsx)(n.xA.Column,{children:(0,e.jsx)(n.c_,{fluid:!0,textAlign:"center",color:"translucent",dmIcon:C.pipe_icon_file,dmIconState:C.pipe_icon,dmDirection:t.O.NORTHWEST,selected:x===8,onClick:function(){return l("iconrotation",{iconrotation:8})},style:{marginBottom:"5px"}})})]})]}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(n.xA,{children:[(0,e.jsx)(n.xA.Column,{children:(0,e.jsx)(n.c_,{fluid:!0,textAlign:"center",color:"translucent",dmIcon:C.pipe_icon_file,dmIconState:C.pipe_icon,dmDirection:t.O.NORTH,selected:x===1,onClick:function(){return l("iconrotation",{iconrotation:1})},style:{marginBottom:"5px"}})}),(0,e.jsx)(n.xA.Column,{children:(0,e.jsx)(n.c_,{fluid:!0,textAlign:"center",color:"translucent",dmIcon:C.pipe_icon_file,dmIconState:C.pipe_icon,dmDirection:t.O.EAST,selected:x===4,onClick:function(){return l("iconrotation",{iconrotation:4})},style:{marginBottom:"5px"}})})]}),C.orientations===4&&(0,e.jsxs)(n.xA,{children:[(0,e.jsx)(n.xA.Column,{children:(0,e.jsx)(n.c_,{fluid:!0,textAlign:"center",color:"translucent",dmIcon:C.pipe_icon_file,dmIconState:C.pipe_icon,dmDirection:t.O.SOUTH,selected:x===2,onClick:function(){return l("iconrotation",{iconrotation:2})},style:{marginBottom:"5px"}})}),(0,e.jsx)(n.xA.Column,{children:(0,e.jsx)(n.c_,{fluid:!0,textAlign:"center",color:"translucent",dmIcon:C.pipe_icon_file,dmIconState:C.pipe_icon,dmDirection:t.O.WEST,selected:x===8,onClick:function(){return l("iconrotation",{iconrotation:8})},style:{marginBottom:"5px"}})})]})]})]},C.pipe_id)})})})})})]})})]})},u=function(v){var _=(0,s.Oc)(),l=_.act,c=_.data,h=c.pipelist,g=c.whatdpipe,p=c.iconrotation;return(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsxs)(n.BJ,{fill:!0,children:[(0,e.jsx)(n.BJ.Item,{grow:!0,basis:"50%",children:(0,e.jsx)(n.wn,{fill:!0,children:(0,e.jsx)(n.xA,{children:(0,e.jsx)(n.xA.Column,{children:h.filter(function(j){return j.pipe_type===2}).map(function(j){return(0,e.jsx)(n.az,{children:(0,e.jsx)(n.$n,{fluid:!0,color:"translucent",icon:"cog",selected:j.pipe_id===g,onClick:function(){return l("whatdpipe",{whatdpipe:j.pipe_id})},style:{marginBottom:"2px"},children:j.pipe_name})},j.pipe_name)})})})})}),(0,e.jsx)(n.BJ.Item,{grow:!0,basis:"50%",children:(0,e.jsx)(n.wn,{fill:!0,children:(0,e.jsx)(n.xA,{children:(0,e.jsx)(n.xA.Column,{children:h.filter(function(j){return j.pipe_type===2&&j.pipe_id===g&&j.orientations!==1}).map(function(j){return(0,e.jsxs)(n.BJ.Item,{children:[(0,e.jsx)(n.az,{children:(0,e.jsx)(n.$n,{fluid:!0,textAlign:"center",selected:p===0,onClick:function(){return l("iconrotation",{iconrotation:0})},style:{marginBottom:"5px"},children:"Orient automatically"})}),(0,e.jsxs)(n.xA,{children:[(0,e.jsx)(n.xA.Column,{children:(0,e.jsx)(n.c_,{fluid:!0,color:"translucent",textAlign:"center",dmIcon:j.pipe_icon_file,dmIconState:j.pipe_icon,dmDirection:t.O.NORTH,selected:p===1,onClick:function(){return l("iconrotation",{iconrotation:1})},style:{marginBottom:"5px"}})}),(0,e.jsx)(n.xA.Column,{children:(0,e.jsx)(n.c_,{fluid:!0,color:"translucent",textAlign:"center",dmIcon:j.pipe_icon_file,dmIconState:j.pipe_icon,dmDirection:t.O.EAST,selected:p===4,onClick:function(){return l("iconrotation",{iconrotation:4})},style:{marginBottom:"5px"}})})]}),j.orientations===4&&(0,e.jsxs)(n.xA,{children:[(0,e.jsx)(n.xA.Column,{children:(0,e.jsx)(n.c_,{fluid:!0,color:"translucent",textAlign:"center",dmIcon:j.pipe_icon_file,dmIconState:j.pipe_icon,dmDirection:t.O.SOUTH,selected:p===2,onClick:function(){return l("iconrotation",{iconrotation:2})},style:{marginBottom:"5px"}})}),(0,e.jsx)(n.xA.Column,{children:(0,e.jsx)(n.c_,{fluid:!0,color:"translucent",textAlign:"center",dmIcon:j.pipe_icon_file,dmIconState:j.pipe_icon,dmDirection:t.O.WEST,selected:p===8,onClick:function(){return l("iconrotation",{iconrotation:8})},style:{marginBottom:"5px"}})})]})]},j.pipe_id)})})})})})]})})},f=function(v){return(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(n.wn,{fill:!0,children:(0,e.jsx)(n.BJ,{fill:!0,children:(0,e.jsxs)(n.BJ.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",children:[(0,e.jsx)(n.In,{name:"sync-alt",size:5,color:"gray",mb:5}),(0,e.jsx)("br",{}),"Device ready to rotate loose pipes..."]})})})})},m=function(v){return(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(n.wn,{fill:!0,children:(0,e.jsx)(n.BJ,{fill:!0,children:(0,e.jsxs)(n.BJ.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",children:[(0,e.jsx)(n.In,{name:"arrows-alt-h",size:5,color:"gray",mb:5}),(0,e.jsx)("br",{}),"Device ready to flip loose pipes..."]})})})})},d=function(v){return(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(n.wn,{fill:!0,children:(0,e.jsx)(n.BJ,{fill:!0,children:(0,e.jsxs)(n.BJ.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",children:[(0,e.jsx)(n.In,{name:"recycle",size:5,color:"gray",mb:5}),(0,e.jsx)("br",{}),"Device ready to eat loose pipes..."]})})})})}},8216:(q,S,r)=>{"use strict";r.r(S),r.d(S,{NinjaBloodScan:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(y){return(0,e.jsx)(t.p8,{width:500,height:400,theme:"spider_clan",children:(0,e.jsxs)(t.p8.Content,{className:"Layout__content--flexColumn",children:[(0,e.jsx)(b,{}),(0,e.jsx)(O,{})]})})},b=function(y){var u=(0,s.Oc)(),f=u.act,m=u.data,d=m.vialIcons,v=m.noVialIcon,_=m.bloodOwnerNames,l=m.bloodOwnerSpecies,c=m.bloodOwnerTypes,h=m.blockButtons,g=m.scanStates,p={blue:"Button_blue",green:"Button_green",red:"Button_red",disabled:"Button_disabled"},j=["NoticeBox_red","NoticeBox","NoticeBox_blue"],x=[1,2,3];return(0,e.jsx)(n.so,{direction:"column",shrink:1,alignContent:"center",children:(0,e.jsxs)(n.wn,{title:"\u041E\u0431\u0440\u0430\u0437\u0446\u044B",backgroundColor:"rgba(0, 0, 0, 0.4)",buttons:(0,e.jsx)(n.$n,{tooltip:"\u0414\u043E\u0431\u0430\u0432\u044C\u0442\u0435 \u0442\u0440\u0438 \u043E\u0431\u0440\u0430\u0437\u0446\u0430 \u043A\u0440\u043E\u0432\u0438. \u041C\u0430\u0448\u0438\u043D\u0430 \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043D\u0430 \u043D\u0430 \u0440\u0430\u0431\u043E\u0442\u0443 \u0441 \u043A\u0440\u043E\u0432\u044C\u044E \u0441\u0443\u0449\u0435\u0441\u0442\u0432 \u0438 \u0443\u0441\u043B\u043E\u0432\u0438\u044F\u043C\u0438 \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u043F\u043E\u0441\u0442\u0430\u0432\u0438\u043B \u0432\u0430\u043C \u043A\u043B\u0430\u043D. \u0420\u0435\u0430\u0433\u0435\u043D\u0442\u044B \u0438\u043C \u043D\u0435 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044E\u0449\u0438\u0435 \u043D\u0435 \u043F\u0440\u0438\u043C\u0443\u0442\u0441\u044F \u0438\u043B\u0438 \u0441\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435 \u043D\u0435 \u0431\u0443\u0434\u0435\u0442 \u0443\u0441\u043F\u0435\u0448\u043D\u044B\u043C",tooltipPosition:"bottom-start",children:"?"}),children:[(0,e.jsx)(n.so,{direction:"row",shrink:1,alignContent:"center",children:x.map(function(C,I){return(0,e.jsxs)(n.so.Item,{direction:"column",width:"33.3%",ml:I?2:0,children:[(0,e.jsx)(n.wn,{title:_[I]?"\u041A\u0440\u043E\u0432\u044C":"\u041D\u0435\u0442 \u0440\u0435\u0430\u0433\u0435\u043D\u0442\u0430",style:{textAlign:"left",background:"rgba(53, 94, 163, 0.5)"}}),(0,e.jsx)(n.IC,{className:j[g[I]],align:"center",children:(0,e.jsxs)(n.$n,{className:h?p.disabled:p.blue,height:"100%",width:"100%",disabled:h,onClick:function(){return f("vial_out",{button_num:I+1})},children:[(0,e.jsx)(n._V,{height:"128px",width:"128px",src:"data:image/jpeg;base64,"+(d[I]||v),style:{marginLeft:"3px"}}),(0,e.jsx)(n.m_,{content:"\u0420\u0430\u0441\u0430: "+(l[I]||" - ")+` +`+("\u0422\u0438\u043F \u043A\u0440\u043E\u0432\u0438: "+(c[I]||" - ")),position:"bottom",children:_[I]||" - "})]})})]},I)})}),(0,e.jsx)(n.IC,{className:"NoticeBox_red",align:"center",children:(0,e.jsx)(n.$n,{className:h?"Button_disabled":"",width:"250px",textAlign:"center",disabled:h,tooltip:"\u0421\u043A\u0430\u043D\u0438\u0440\u0443\u0435\u0442 \u043A\u0440\u043E\u0432\u044C \u0438 \u043F\u0435\u0440\u0435\u0441\u044B\u043B\u0430\u0435\u0442 \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043D\u0443\u044E \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044E \u043A\u043B\u0430\u043D\u0443.",tooltipPosition:"bottom",onClick:function(){return f("scan_blood")},children:"\u041D\u0430\u0447\u0430\u0442\u044C \u0441\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435"})})]})})},O=function(y){var u=(0,s.Oc)().data,f=u.progressBar;return(0,e.jsx)(n.wn,{stretchContents:!0,children:(0,e.jsx)(n.z2,{color:"green",value:f,minValue:0,maxValue:100,children:(0,e.jsx)("center",{children:(0,e.jsx)(n.IC,{className:"NoticeBox_green",mt:1,children:f?"\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430 "+(f+"%"):"\u0420\u0435\u0436\u0438\u043C \u043E\u0436\u0438\u0434\u0430\u043D\u0438\u044F"})})})})}},8221:(q,S,r)=>{"use strict";r.r(S),r.d(S,{TcommsRelay:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(y){var u=(0,s.Oc)(),f=u.act,m=u.data,d=m.linked,v=m.active,_=m.network_id;return(0,e.jsx)(t.p8,{width:600,height:400,children:(0,e.jsxs)(t.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{title:"\u041A\u043E\u043D\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044F \u0440\u0435\u043B\u0435",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"\u041F\u0438\u0442\u0430\u043D\u0438\u0435",children:(0,e.jsx)(n.$n,{selected:v,icon:"power-off",onClick:function(){return f("toggle_active")},children:v?"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u043E":"\u0412\u044B\u043A\u043B\u044E\u0447\u0435\u043D\u043E"})}),(0,e.jsx)(n.Ki.Item,{label:"\u0421\u0435\u0442\u0435\u0432\u043E\u0439 \u0438\u0434\u0435\u043D\u0442\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440",children:(0,e.jsx)(n.$n,{selected:!!_,icon:"server",onClick:function(){return f("network_id")},children:_||"\u041D\u0435 \u0437\u0430\u0434\u0430\u043D\u043E"})}),(0,e.jsx)(n.Ki.Item,{label:"\u041F\u0440\u0438\u0432\u0437\u043A\u0430",children:d?(0,e.jsx)(n.az,{color:"green",children:"\u041F\u0440\u0438\u0432\u044F\u0437\u0430\u043D\u043E"}):(0,e.jsx)(n.az,{color:"red",children:"\u041D\u0435 \u043F\u0440\u0438\u0432\u044F\u0437\u0430\u043D\u043E"})})]})}),d?(0,e.jsx)(b,{}):(0,e.jsx)(O,{})]})})},b=function(y){var u=(0,s.Oc)(),f=u.act,m=u.data,d=m.linked_core_id,v=m.linked_core_addr,_=m.hidden_link;return(0,e.jsx)(n.wn,{title:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435 \u043F\u0440\u0438\u0432\u044F\u0437\u043A\u0438",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"\u0418\u0434\u0435\u043D\u0442\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440 \u043F\u0440\u0438\u0432\u044F\u0437\u0430\u043D\u043D\u043E\u0433\u043E \u044F\u0434\u0440\u0430",children:d}),(0,e.jsx)(n.Ki.Item,{label:"\u0421\u0435\u0442\u0435\u0432\u043E\u0439 \u0430\u0434\u0440\u0435\u0441 \u043F\u0440\u0438\u0432\u044F\u0437\u0430\u043D\u043E \u044F\u0434\u0440\u0430",children:v}),(0,e.jsx)(n.Ki.Item,{label:"\u0421\u043A\u0440\u044B\u0442\u0430\u044F \u043F\u0440\u0438\u0432\u044F\u0437\u043A\u0430",children:(0,e.jsx)(n.$n,{icon:_?"eye-slash":"eye",selected:_,onClick:function(){return f("toggle_hidden_link")},children:_?"\u0414\u0430":"\u041D\u0435\u0442"})}),(0,e.jsx)(n.Ki.Item,{label:"\u041E\u0442\u0432\u044F\u0437\u0430\u0442\u044C",children:(0,e.jsx)(n.$n,{icon:"unlink",color:"red",onClick:function(){return f("unlink")},children:"\u041E\u0442\u0432\u044F\u0437\u0430\u0442\u044C"})})]})})},O=function(y){var u=(0,s.Oc)(),f=u.act,m=u.data,d=m.cores;return(0,e.jsx)(n.wn,{title:"\u041E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u043D\u044B\u0435 \u044F\u0434\u0440\u0430",children:(0,e.jsxs)(n.XI,{m:"0.5rem",children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{children:"\u0421\u0435\u0442\u0435\u0432\u043E\u0439 \u0430\u0434\u0440\u0435\u0441"}),(0,e.jsx)(n.XI.Cell,{children:"\u0421\u0435\u0442\u0435\u0432\u043E\u0439 \u0438\u0434\u0435\u043D\u0442\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440"}),(0,e.jsx)(n.XI.Cell,{children:"\u0421\u0435\u043A\u0442\u043E\u0440"}),(0,e.jsx)(n.XI.Cell,{children:"\u041F\u0440\u0438\u0432\u044F\u0437\u043A\u0430"})]}),d.map(function(v){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{children:v.addr}),(0,e.jsx)(n.XI.Cell,{children:v.net_id}),(0,e.jsx)(n.XI.Cell,{children:v.sector}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{icon:"link",onClick:function(){return f("link",{addr:v.addr})},children:"\u041F\u0440\u0438\u0432\u044F\u0437\u0430\u0442\u044C"})})]},v.addr)})]})})}},8222:(q,S,r)=>{"use strict";r.d(S,{Fl:()=>g,WP:()=>p,lO:()=>j,zA:()=>O});var e=r(9357),s=r(185);function n(x,C){(C==null||C>x.length)&&(C=x.length);for(var I=0,P=new Array(C);I=x.length?{done:!0}:{done:!1,value:x[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 O=function(x){if(typeof x=="string")return x.endsWith("px")?""+Number.parseFloat(x)/12+"rem":x;if(typeof x=="number")return""+x+"rem"},y=function(x){if(typeof x=="string")return O(x);if(typeof x=="number")return O(x*.5)},u=function(x){return!f(x)},f=function(x){return typeof x=="string"&&e.NE.includes(x)},m=function(x){return function(C,I){(typeof I=="number"||typeof I=="string")&&(C[x]=I)}},d=function(x,C){return function(I,P){(typeof P=="number"||typeof P=="string")&&(I[x]=C(P))}},v=function(x,C){return function(I,P){P&&(I[x]=C)}},_=function(x,C,I){return function(P,M){if(typeof M=="number"||typeof M=="string")for(var B=0;B{"use strict";r.r(S),r.d(S,{meta:()=>n});var e=r(1131),s=r(5180),n={title:"Popper",render:function(){return(0,e.jsx)(t,{})}},t=function(){return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(s.ND,{content:(0,e.jsx)(s.az,{style:{background:"white",border:"2px solid blue"},children:"Loogatme!"}),placement:"bottom",children:(0,e.jsx)(s.az,{style:{border:"5px solid white",height:"300px",width:"200px"}})}),(0,e.jsx)(s.ND,{content:(0,e.jsx)(s.az,{style:{background:"white",border:"2px solid blue"},children:"I am on the right!"}),placement:"right",children:(0,e.jsx)(s.az,{style:{border:"5px solid white",height:"500px",width:"100px"}})})]})}},8252:(q,S,r)=>{"use strict";r.r(S),r.d(S,{PollListPanel:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(b){var O=(0,s.Oc)(),y=O.act,u=O.data,f=u.polls||[];return(0,e.jsx)(t.p8,{title:"Poll List Panel",width:700,height:400,children:(0,e.jsx)(t.p8.Content,{scrollable:!0,children:(0,e.jsxs)(n.wn,{title:"Poll List Panel",children:["Currently running polls Note when editing polls or their options changes are not saved until you press Sumbit Poll.",(0,e.jsx)("br",{}),(0,e.jsx)(n.$n,{onClick:function(){return y("newpoll")},children:"New Poll"}),(0,e.jsx)(n.Ki,{children:f.map(function(m){return(0,e.jsxs)(n.Ki.Item,{label:m.question,children:[(0,e.jsx)(n.$n,{onClick:function(){return y("editpoll",{poll_to_edit:m.id})},children:"Edit"}),(0,e.jsx)(n.$n,{onClick:function(){return y("deletepoll",{poll_to_delete:m.id})},children:"Delete"}),(0,e.jsx)(n.$n,{onClick:function(){return y("resultspoll",{poll_to_result:m.id})},children:"Results"}),(0,e.jsx)(n.az,{children:m.description}),(0,e.jsx)(n.cG,{})]},"poll")})})]})})})}},8433:(q,S,r)=>{"use strict";r.r(S),r.d(S,{pda_atmos_scan:()=>a});var e=r(1131),s=r(360),n=r(9924);function t(){return t=Object.assign||function(b){for(var O=1;O{"use strict";r.r(S),r.d(S,{pda_status_display:()=>t});var e=r(1131),s=r(360),n=r(5180),t=function(a){var b=(0,s.Oc)(),O=b.act,y=b.data,u=y.records;return(0,e.jsx)(n.az,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Code",children:[(0,e.jsx)(n.$n,{color:"transparent",icon:"trash",onClick:function(){return O("Status",{statdisp:"blank"})},children:"Clear"}),(0,e.jsx)(n.$n,{color:"transparent",icon:"clock",onClick:function(){return O("Status",{statdisp:"shuttle"})},children:"Evac ETA"}),(0,e.jsx)(n.$n,{color:"transparent",icon:"edit",onClick:function(){return O("Status",{statdisp:"message"})},children:"Message"}),(0,e.jsx)(n.$n,{color:"transparent",icon:"exclamation-triangle",onClick:function(){return O("Status",{statdisp:"alert",alert:"redalert"})},children:"Red Alert"}),(0,e.jsx)(n.$n,{color:"transparent",icon:"boxes",onClick:function(){return O("Status",{statdisp:"alert",alert:"default"})},children:"NT Logo"}),(0,e.jsx)(n.$n,{color:"transparent",icon:"lock",onClick:function(){return O("Status",{statdisp:"alert",alert:"lockdown"})},children:"Lockdown"}),(0,e.jsx)(n.$n,{color:"transparent",icon:"biohazard",onClick:function(){return O("Status",{statdisp:"alert",alert:"biohazard"})},children:"Biohazard"})]}),(0,e.jsx)(n.Ki.Item,{label:"Message line 1",children:(0,e.jsx)(n.$n,{icon:"pen",onClick:function(){return O("Status",{statdisp:"setmsg1"})},children:u.message1+" (set)"})}),(0,e.jsx)(n.Ki.Item,{label:"Message line 2",children:(0,e.jsx)(n.$n,{icon:"pen",onClick:function(){return O("Status",{statdisp:"setmsg2"})},children:u.message2+" (set)"})})]})})}},8468:(q,S,r)=>{"use strict";r.r(S),r.d(S,{Instrument:()=>b});var e=r(1131),s=r(9818),n=r(360),t=r(5180),a=r(3521),b=function(m){return(0,e.jsxs)(a.p8,{width:600,height:505,children:[(0,e.jsx)(O,{}),(0,e.jsx)(a.p8.Content,{children:(0,e.jsxs)(t.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(y,{}),(0,e.jsx)(f,{})]})})]})},O=function(m){var d=(0,n.Oc)(),v=d.act,_=d.data,l=_.help;if(l)return(0,e.jsx)(t.aF,{maxWidth:"75%",height:window.innerHeight*.75+"px",mx:"auto",py:"0",px:"0.5rem",children:(0,e.jsx)(t.wn,{height:"100%",title:"Help",overflow:"auto",children:(0,e.jsxs)(t.az,{px:"0.5rem",mt:"-0.5rem",children:[(0,e.jsx)("h1",{children:"Making a Song"}),(0,e.jsxs)("p",{children:["Lines are a series of chords, separated by commas\xA0",(0,e.jsx)(t.az,{as:"span",color:"highlight",children:"(,)"}),", each with notes separated by hyphens\xA0",(0,e.jsx)(t.az,{as:"span",color:"highlight",children:"(-)"}),".",(0,e.jsx)("br",{}),"Every note in a chord will play together, with the chord timed by the\xA0",(0,e.jsx)(t.az,{as:"span",color:"highlight",children:"tempo"})," ","as defined above."]}),(0,e.jsxs)("p",{children:["Notes are played by the\xA0",(0,e.jsx)(t.az,{as:"span",color:"good",children:"names of the note"}),", and optionally, the\xA0",(0,e.jsx)(t.az,{as:"span",color:"average",children:"accidental"}),", and/or the"," ",(0,e.jsx)(t.az,{as:"span",color:"bad",children:"octave number"}),".",(0,e.jsx)("br",{}),"By default, every note is\xA0",(0,e.jsx)(t.az,{as:"span",color:"average",children:"natural"})," ","and in\xA0",(0,e.jsx)(t.az,{as:"span",color:"bad",children:"octave 3"}),". Defining a different state for either is remembered for each"," ",(0,e.jsx)(t.az,{as:"span",color:"good",children:"note"}),".",(0,e.jsxs)("ul",{children:[(0,e.jsxs)("li",{children:[(0,e.jsx)(t.az,{as:"span",color:"highlight",children:"Example:"}),"\xA0",(0,e.jsx)("i",{children:"C,D,E,F,G,A,B"})," will play a\xA0",(0,e.jsx)(t.az,{as:"span",color:"good",children:"C"}),"\xA0",(0,e.jsx)(t.az,{as:"span",color:"average",children:"major"})," ","scale."]}),(0,e.jsxs)("li",{children:["After a note has an\xA0",(0,e.jsx)(t.az,{as:"span",color:"average",children:"accidental"})," ","or\xA0",(0,e.jsx)(t.az,{as:"span",color:"bad",children:"octave"})," ","placed, it will be remembered:\xA0",(0,e.jsx)("i",{children:"C,C4,C#,C3"})," is ",(0,e.jsx)("i",{children:"C3,C4,C4#,C3#"})]})]})]}),(0,e.jsxs)("p",{children:[(0,e.jsx)(t.az,{as:"span",color:"highlight",children:"Chords"}),"\xA0can be played simply by seperating each note with a hyphen:"," ",(0,e.jsx)("i",{children:"A-C#,Cn-E,E-G#,Gn-B"}),".",(0,e.jsx)("br",{}),"A"," ",(0,e.jsx)(t.az,{as:"span",color:"highlight",children:"pause"}),"\xA0may be denoted by an empty chord: ",(0,e.jsx)("i",{children:"C,E,,C,G"}),".",(0,e.jsx)("br",{}),"To make a chord be a different time, end it with /x, where the chord length will be length defined by\xA0",(0,e.jsx)(t.az,{as:"span",color:"highlight",children:"tempo / x"}),",\xA0",(0,e.jsx)(t.az,{as:"span",color:"highlight",children:"eg:"})," ",(0,e.jsx)("i",{children:"C,G/2,E/4"}),"."]}),(0,e.jsxs)("p",{children:["Combined, an example line is: ",(0,e.jsx)("i",{children:"E-E4/4,F#/2,G#/8,B/8,E3-E4/4"}),".",(0,e.jsxs)("ul",{children:[(0,e.jsx)("li",{children:"Lines may be up to 300 characters."}),(0,e.jsx)("li",{children:"A song may only contain up to 1,000 lines."})]})]}),(0,e.jsxs)("p",{children:["Lines are a series of chords, separated by commas\xA0",(0,e.jsx)(t.az,{as:"span",color:"highlight",children:"(,)"}),", each with notes separated by hyphens\xA0",(0,e.jsx)(t.az,{as:"span",color:"highlight",children:"(-)"}),".",(0,e.jsx)("br",{}),"Every note in a chord will play together, with the chord timed by the\xA0",(0,e.jsx)(t.az,{as:"span",color:"highlight",children:"tempo"})," ","as defined above."]}),(0,e.jsxs)("p",{children:["Notes are played by the\xA0",(0,e.jsx)(t.az,{as:"span",color:"good",children:"names of the note"}),", and optionally, the\xA0",(0,e.jsx)(t.az,{as:"span",color:"average",children:"accidental"}),", and/or the"," ",(0,e.jsx)(t.az,{as:"span",color:"bad",children:"octave number"}),".",(0,e.jsx)("br",{}),"By default, every note is\xA0",(0,e.jsx)(t.az,{as:"span",color:"average",children:"natural"})," ","and in\xA0",(0,e.jsx)(t.az,{as:"span",color:"bad",children:"octave 3"}),". Defining a different state for either is remembered for each"," ",(0,e.jsx)(t.az,{as:"span",color:"good",children:"note"}),".",(0,e.jsxs)("ul",{children:[(0,e.jsxs)("li",{children:[(0,e.jsx)(t.az,{as:"span",color:"highlight",children:"Example:"}),"\xA0",(0,e.jsx)("i",{children:"C,D,E,F,G,A,B"})," will play a\xA0",(0,e.jsx)(t.az,{as:"span",color:"good",children:"C"}),"\xA0",(0,e.jsx)(t.az,{as:"span",color:"average",children:"major"})," ","scale."]}),(0,e.jsxs)("li",{children:["After a note has an\xA0",(0,e.jsx)(t.az,{as:"span",color:"average",children:"accidental"})," ","or\xA0",(0,e.jsx)(t.az,{as:"span",color:"bad",children:"octave"})," ","placed, it will be remembered:\xA0",(0,e.jsx)("i",{children:"C,C4,C#,C3"})," is ",(0,e.jsx)("i",{children:"C3,C4,C4#,C3#"})]})]})]}),(0,e.jsxs)("p",{children:[(0,e.jsx)(t.az,{as:"span",color:"highlight",children:"Chords"}),"\xA0can be played simply by seperating each note with a hyphen:"," ",(0,e.jsx)("i",{children:"A-C#,Cn-E,E-G#,Gn-B"}),".",(0,e.jsx)("br",{}),"A"," ",(0,e.jsx)(t.az,{as:"span",color:"highlight",children:"pause"}),"\xA0may be denoted by an empty chord: ",(0,e.jsx)("i",{children:"C,E,,C,G"}),".",(0,e.jsx)("br",{}),"To make a chord be a different time, end it with /x, where the chord length will be length defined by\xA0",(0,e.jsx)(t.az,{as:"span",color:"highlight",children:"tempo / x"}),",\xA0",(0,e.jsx)(t.az,{as:"span",color:"highlight",children:"eg:"})," ",(0,e.jsx)("i",{children:"C,G/2,E/4"}),"."]}),(0,e.jsxs)("p",{children:["Combined, an example line is: ",(0,e.jsx)("i",{children:"E-E4/4,F#/2,G#/8,B/8,E3-E4/4"}),".",(0,e.jsxs)("ul",{children:[(0,e.jsx)("li",{children:"Lines may be up to 300 characters."}),(0,e.jsx)("li",{children:"A song may only contain up to 1,000 lines."})]})]}),(0,e.jsx)("h1",{children:"Instrument Advanced Settings"}),(0,e.jsxs)("ul",{children:[(0,e.jsxs)("li",{children:[(0,e.jsx)(t.az,{as:"span",color:"label",children:"Type:"}),"\xA0Whether the instrument is legacy or synthesized.",(0,e.jsx)("br",{}),"Legacy instruments have a collection of sounds that are selectively used depending on the note to play.",(0,e.jsx)("br",{}),"Synthesized instruments use a base sound and change its pitch to match the note to play."]}),(0,e.jsxs)("li",{children:[(0,e.jsx)(t.az,{as:"span",color:"label",children:"Current:"}),"\xA0Which instrument sample to play. Some instruments can be tuned to play different samples. Experiment!"]}),(0,e.jsxs)("li",{children:[(0,e.jsx)(t.az,{as:"span",color:"label",children:"Note Shift/Note Transpose:"}),"\xA0The pitch to apply to all notes of the song."]}),(0,e.jsxs)("li",{children:[(0,e.jsx)(t.az,{as:"span",color:"label",children:"Sustain Mode:"}),"\xA0How a played note fades out.",(0,e.jsx)("br",{}),"Linear sustain means a note will fade out at a constant rate.",(0,e.jsx)("br",{}),"Exponential sustain means a note will fade out at an exponential rate, sounding smoother."]}),(0,e.jsxs)("li",{children:[(0,e.jsx)(t.az,{as:"span",color:"label",children:"Volume Dropoff Threshold:"}),"\xA0The volume threshold at which a note is fully stopped."]}),(0,e.jsxs)("li",{children:[(0,e.jsx)(t.az,{as:"span",color:"label",children:"Sustain indefinitely last held note:"}),"\xA0Whether the last note should be sustained indefinitely."]})]}),(0,e.jsx)(t.$n,{color:"grey",onClick:function(){return v("help")},children:"Close"})]})})})},y=function(m){var d=(0,n.Oc)(),v=d.act,_=d.data,l=_.lines,c=_.playing,h=_.repeat,g=_.maxRepeats,p=_.tempo,j=_.minTempo,x=_.maxTempo,C=_.tickLag,I=_.volume,P=_.minVolume,M=_.maxVolume,B=_.ready;return(0,e.jsxs)(t.wn,{title:"Instrument",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"info",onClick:function(){return v("help")},children:"Help"}),(0,e.jsx)(t.$n,{icon:"file",onClick:function(){return v("newsong")},children:"New"}),(0,e.jsx)(t.$n.File,{icon:"upload",accept:".txt",onSelectFiles:function(w){return v("import",{import:w})},children:"Import"})]}),children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Playback",children:[(0,e.jsx)(t.$n,{selected:c,disabled:l.length===0||h<0,icon:"play",onClick:function(){return v("play")},children:"Play"}),(0,e.jsx)(t.$n,{disabled:!c,icon:"stop",onClick:function(){return v("stop")},children:"Stop"})]}),(0,e.jsx)(t.Ki.Item,{label:"Repeat",children:(0,e.jsx)(t.Ap,{animated:!0,minValue:0,maxValue:g,value:h,stepPixelSize:59,onChange:function(w,T){return v("repeat",{new:T})}})}),(0,e.jsx)(t.Ki.Item,{label:"Tempo",children:(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{disabled:p>=x,as:"span",mr:"0.5rem",onClick:function(){return v("tempo",{new:p+C})},children:"-"}),(0,s.LI)(600/p,0)," BPM",(0,e.jsx)(t.$n,{disabled:p<=j,as:"span",ml:"0.5rem",onClick:function(){return v("tempo",{new:p-C})},children:"+"})]})}),(0,e.jsx)(t.Ki.Item,{label:"Volume",children:(0,e.jsx)(t.Ap,{animated:!0,minValue:P,maxValue:M,value:I,stepPixelSize:6,onDrag:function(w,T){return v("setvolume",{new:T})}})}),(0,e.jsx)(t.Ki.Item,{label:"Status",children:B?(0,e.jsx)(t.az,{color:"good",children:"Ready"}):(0,e.jsx)(t.az,{color:"bad",children:"Instrument Definition Error!"})})]}),(0,e.jsx)(u,{})]})},u=function(m){var d=(0,n.Oc)(),v=d.act,_=d.data,l=_.allowedInstrumentNames,c=_.instrumentLoaded,h=_.instrument,g=_.canNoteShift,p=_.noteShift,j=_.noteShiftMin,x=_.noteShiftMax,C=_.sustainMode,I=_.sustainLinearDuration,P=_.sustainExponentialDropoff,M=_.legacy,B=_.sustainDropoffVolume,w=_.sustainHeldNote,T,K;return C===1?(T="Linear",K=(0,e.jsx)(t.Ap,{minValue:.1,maxValue:5,value:I,step:.5,stepPixelSize:85,format:function(R){return(0,s.LI)(R*100,0)/100+" seconds"},onChange:function(R,U){return v("setlinearfalloff",{new:U/10})}})):C===2&&(T="Exponential",K=(0,e.jsx)(t.Ap,{minValue:1.025,maxValue:10,value:P,step:.01,format:function(R){return(0,s.LI)(R*1e3,0)/1e3+"% per decisecond"},onChange:function(R,U){return v("setexpfalloff",{new:U})}})),l.sort(),(0,e.jsx)(t.az,{my:-1,children:(0,e.jsx)(t.Nt,{mt:"1rem",mb:"0",title:"Advanced",children:(0,e.jsxs)(t.wn,{mt:-1,children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Type",children:M?"Legacy":"Synthesized"}),(0,e.jsx)(t.Ki.Item,{label:"Current",children:c?(0,e.jsx)(t.ms,{options:l,selected:h,width:"50%",onSelected:function(R){return v("switchinstrument",{name:R})}}):(0,e.jsx)(t.az,{color:"bad",children:"None!"})}),!!(!M&&g)&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.Ki.Item,{label:"Note Shift/Note Transpose",children:(0,e.jsx)(t.Ap,{minValue:j,maxValue:x,value:p,stepPixelSize:2,format:function(R){return R+" keys / "+(0,s.LI)(R/12*100,0)/100+" octaves"},onChange:function(R,U){return v("setnoteshift",{new:U})}})}),(0,e.jsxs)(t.Ki.Item,{label:"Sustain Mode",children:[(0,e.jsx)(t.ms,{options:["Linear","Exponential"],selected:T,onSelected:function(R){return v("setsustainmode",{new:R})}}),K]}),(0,e.jsx)(t.Ki.Item,{label:"Volume Dropoff Threshold",children:(0,e.jsx)(t.Ap,{animated:!0,minValue:.01,maxValue:100,value:B,stepPixelSize:6,onChange:function(R,U){return v("setdropoffvolume",{new:U})}})}),(0,e.jsx)(t.Ki.Item,{label:"Sustain indefinitely last held note",children:(0,e.jsx)(t.$n,{selected:w,icon:w?"toggle-on":"toggle-off",onClick:function(){return v("togglesustainhold")},children:w?"Yes":"No"})})]})]}),(0,e.jsx)(t.$n,{icon:"redo",mt:"0.5rem",onClick:function(){return v("reset")},children:"Reset to Default"})]})})})},f=function(m){var d=(0,n.Oc)(),v=d.act,_=d.data,l=_.playing,c=_.lines,h=_.editing;return(0,e.jsx)(t.wn,{fill:!0,scrollable:!0,title:"Editor",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{disabled:!h||l,icon:"plus",onClick:function(){return v("newline",{line:c.length+1})},children:"Add Line"}),(0,e.jsx)(t.$n,{selected:!h,icon:h?"chevron-up":"chevron-down",onClick:function(){return v("edit")}})]}),children:!!h&&(c.length>0?(0,e.jsx)(t.Ki,{children:c.map(function(g,p){return(0,e.jsx)(t.Ki.Item,{label:p+1,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{disabled:l,icon:"pen",onClick:function(){return v("modifyline",{line:p+1})}}),(0,e.jsx)(t.$n,{disabled:l,icon:"trash",onClick:function(){return v("deleteline",{line:p+1})}})]}),children:g},p)})}):(0,e.jsx)(t.az,{color:"label",children:"Song is empty."}))})}},8477:(q,S,r)=>{"use strict";r.d(S,{QL:()=>n,d5:()=>t,fU:()=>u});/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var e=["f","p","n","\u03BC","m"," ","k","M","G","T","P","E","Z","Y","R","Q","F","N","H"],s=e.indexOf(" "),n=function(f,m,d){if(m===void 0&&(m=-s),d===void 0&&(d=""),!isFinite(f))return f.toString();var v=Math.floor(Math.log10(Math.abs(f))),_=Math.max(m*3,v),l=Math.floor(_/3),c=e[Math.min(l+s,e.length-1)],h=f/Math.pow(1e3,l),g=h.toFixed(2);return g.endsWith(".00")?g=g.slice(0,-3):g.endsWith(".0")&&(g=g.slice(0,-2)),(g+" "+c.trim()+d).trim()},t=function(f,m){return m===void 0&&(m=0),n(f,m,"W")},a=function(f,m){if(m===void 0&&(m=0),!Number.isFinite(f))return String(f);var d=Number(f.toFixed(m)),v=d<0,_=Math.abs(d),l=_.toString().split(".");l[0]=l[0].replace(/\B(?=(\d{3})+(?!\d))/g,"\u2009");var c=l.join(".");return v?"-"+c:c},O=function(f){var m=20*Math.log10(f),d=m>=0?"+":"-",v=Math.abs(m);return v===1/0?v="Inf":v=v.toFixed(2),""+d+v+" dB"},b=null,y=function(f,m,d){if(m===void 0&&(m=0),d===void 0&&(d=""),!isFinite(f))return"NaN";var v=Math.floor(Math.log10(f)),_=Math.max(m*3,v),l=Math.floor(_/3),c=b[l],h=f/Math.pow(1e3,l),g=Math.max(0,2-_%3),p=h.toFixed(g);return(p+" "+c+" "+d).trim()},u=function(f,m){m===void 0&&(m="default");var d=Math.floor(f/10),v=Math.floor(d/3600),_=Math.floor(d%3600/60),l=d%60;if(m==="short"){var c=v>0?""+v+"h":"",h=_>0?""+_+"m":"",g=l>0?""+l+"s":"";return""+c+h+g}var p=String(v).padStart(2,"0"),j=String(_).padStart(2,"0"),x=String(l).padStart(2,"0");return p+":"+j+":"+x}},8480:(q,S,r)=>{"use strict";r.r(S),r.d(S,{CameraConsole:()=>m,CameraContent:()=>d});var e=r(1131),s=r(1859),n=r(7003),t=r(5180),a=r(185),O=r(9845),b=r(360),y=r(3521),u=function(c,h){if(!h||c.length<2)return[];var g=c.findIndex(function(p){return p.ref===h.ref});switch(g){case-1:return[c[c.length-1].ref,c[0].ref];case 0:return c.length===2?[c[1].ref,c[1].ref]:[c[c.length-1].ref,c[g+1].ref];case c.length-1:return c.length===2?[c[0].ref,c[0].ref]:[c[g-1].ref,c[0].ref];default:return[c[g-1].ref,c[g+1].ref]}},f=function(c,h){h===void 0&&(h="");var g=(0,s.pb)(c,function(j){return!!j.name});if(h){var p=(0,O.XZ)(h,function(j){return j.name});g=(0,s.pb)(g,p)}return g=(0,s.di)(g),g},m=function(c){var h=(0,n.useState)(0),g=h[0],p=h[1];return(0,e.jsx)(y.p8,{width:1e3,height:750,children:(0,e.jsx)(y.p8.Content,{children:(0,e.jsxs)(t.az,{fillPositionedParent:!0,overflow:"hidden",children:[(0,e.jsxs)(t.tU,{children:[(0,e.jsxs)(t.tU.Tab,{selected:g===0,onClick:function(){return p(0)},children:[(0,e.jsx)(t.In,{name:"map-marked-alt"})," Map"]},"Map"),(0,e.jsxs)(t.tU.Tab,{selected:g===1,onClick:function(){return p(1)},children:[(0,e.jsx)(t.In,{name:"table"})," List"]},"List")]}),(0,e.jsx)(d,{tabIndex:g})]})})})},d=function(c){var h=(0,n.useState)(""),g=h[0],p=h[1],j="";switch(c.tabIndex){case 0:j=(0,e.jsx)(_,{});break;case 1:j=(0,e.jsx)(v,{searchText:g,setSearchText:p});break}return(0,e.jsxs)(t.BJ,{fill:!0,m:1,children:[(0,e.jsx)(t.BJ.Item,{width:"45%",children:j}),(0,e.jsx)(t.BJ.Item,{width:"55%",children:(0,e.jsx)(l,{searchText:g})})]})},v=function(c){var h=(0,b.Oc)(),g=h.act,p=h.data,j=c.searchText,x=c.setSearchText,C=p.activeCamera,I=f(p.cameras,j);return(0,e.jsxs)(t.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.pd,{autoFocus:!0,expensive:!0,fluid:!0,mt:1,placeholder:"Search for a camera",onChange:x,value:j})}),(0,e.jsx)(t.BJ.Item,{grow:!0,children:(0,e.jsx)(t.wn,{fill:!0,scrollable:!0,children:I.map(function(P){return(0,e.jsx)("div",{title:P.name,className:(0,a.Ly)(["Button","Button--fluid","Button--color--transparent","Button--ellipsis",C?.ref===P.ref?"Button--selected":"candystripe"]),onClick:function(){return g("switch_camera",{camera:P.ref})},children:P.name},P.ref)})})})]})},_=function(c){var h=(0,b.Oc)(),g=h.act,p=h.data,j=f(p.cameras),x=(0,n.useState)(1),C=x[0],I=x[1],P=p.activeCamera,M=p.stationLevelNum,B=p.stationLevelName,w=(0,n.useState)(M[0]),T=w[0],K=w[1];return(0,e.jsx)(t.az,{height:"100%",style:{display:"flex"},m:2,children:(0,e.jsx)(t.tx,{onZoom:function(R,U){return I(U)},zLevels:M,zNames:B,zCurrent:T,setZCurrent:K,children:j.map(function(R,U){return(0,e.jsx)(t.tx.MarkerIcon,{x:R.x,y:R.y,z:R.z,z_current:T,zoom:C,icon:"box",tooltip:R.name,tooltipPosition:R.x>255/2?"bottom":"right",color:R.status?R.ref===P?.ref?"green":"blue":"red",bordered:!0,onClick:function(){return g("switch_camera",{camera:R.ref})}},U)})})})},l=function(c){var h=(0,b.Oc)(),g=h.act,p=h.data,j=p.activeCamera,x=p.mapRef,C=c.searchText,I=f(p.cameras,C),P=u(I,j),M=P[0],B=P[1];return(0,e.jsx)(t.wn,{fill:!0,children:(0,e.jsxs)(t.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(t.BJ.Item,{children:(0,e.jsxs)(t.BJ,{fill:!0,children:[(0,e.jsx)(t.BJ.Item,{grow:!0,children:j?.status?(0,e.jsx)(t.IC,{info:!0,children:j.name}):(0,e.jsx)(t.IC,{danger:!0,children:"No input signal"})}),(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.$n,{icon:"chevron-left",disabled:!M,onClick:function(){return g("switch_camera",{camera:M})}})}),(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.$n,{icon:"chevron-right",disabled:!B,onClick:function(){return g("switch_camera",{camera:B})}})})]})}),(0,e.jsx)(t.BJ.Item,{grow:!0,children:(0,e.jsx)(t.D1,{height:"95%",width:"100%",params:{id:x,type:"map"}})})]})})}},8482:(q,S,r)=>{"use strict";r.r(S),r.d(S,{ShuttleConsole:()=>l,SpiderOS:()=>f});var e=r(1131),s=r(7003),n=r(360),t=r(5180),a=r(3521);function O(g,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");g.prototype=Object.create(p&&p.prototype,{constructor:{value:g,writable:!0,configurable:!0}}),p&&b(g,p)}function b(g,p){return b=Object.setPrototypeOf||function(x,C){return x.__proto__=C,x},b(g,p)}var y=[{icon_state:"headset_green",tooltipTitle:"\u0412\u0430\u0448 \u043D\u0430\u0443\u0448\u043D\u0438\u043A",tooltipContent:`\u0412 \u043E\u0442\u043B\u0438\u0447\u0438\u0438 \u043E\u0442 \u0441\u0442\u0430\u043D\u0434\u0430\u0440\u0442\u043D\u044B\u0445 \u043D\u0430\u0443\u0448\u043D\u0438\u043A\u043E\u0432 \u0431\u043E\u043B\u044C\u0448\u0438\u043D\u0441\u0442\u0432\u0430 \u043A\u043E\u0440\u043F\u043E\u0440\u0430\u0446\u0438\u0439, \u043D\u0430\u0448 \u0432\u0430\u0440\u0438\u0430\u043D\u0442 \u0441\u043E\u0437\u0434\u0430\u043D \u0441\u043F\u0435\u0446\u0438\u0430\u043B\u044C\u043D\u043E \u0434\u043B\u044F \u043F\u043E\u043C\u043E\u0449\u0438 \u0432 \u0432\u0430\u0448\u0435\u043C \u0432\u043D\u0435\u0434\u0440\u0435\u043D\u0438\u0438. \u0412 \u043D\u0435\u0433\u043E \u0432\u0441\u0442\u0440\u043E\u0435\u043D \u0441\u043F\u0435\u0446\u0438\u0430\u043B\u044C\u043D\u044B\u0439 \u043A\u0430\u043D\u0430\u043B \u0434\u043B\u044F \u043E\u0431\u0449\u0435\u043D\u0438\u044F \u0441 \u0432\u0430\u0448\u0438\u043C \u0431\u043E\u0440\u0433\u043E\u043C \u0438\u043B\u0438 \u0434\u0440\u0443\u0433\u0438\u043C\u0438 \u0447\u043B\u0435\u043D\u0430\u043C\u0438 \u043A\u043B\u0430\u043D\u0430. + */var e=["f","p","n","\u03BC","m"," ","k","M","G","T","P","E","Z","Y","R","Q","F","N","H"],s=e.indexOf(" "),n=function(f,m,d){if(m===void 0&&(m=-s),d===void 0&&(d=""),!isFinite(f))return f.toString();var v=Math.floor(Math.log10(Math.abs(f))),_=Math.max(m*3,v),l=Math.floor(_/3),c=e[Math.min(l+s,e.length-1)],h=f/Math.pow(1e3,l),g=h.toFixed(2);return g.endsWith(".00")?g=g.slice(0,-3):g.endsWith(".0")&&(g=g.slice(0,-2)),(g+" "+c.trim()+d).trim()},t=function(f,m){return m===void 0&&(m=0),n(f,m,"W")},a=function(f,m){if(m===void 0&&(m=0),!Number.isFinite(f))return String(f);var d=Number(f.toFixed(m)),v=d<0,_=Math.abs(d),l=_.toString().split(".");l[0]=l[0].replace(/\B(?=(\d{3})+(?!\d))/g,"\u2009");var c=l.join(".");return v?"-"+c:c},b=function(f){var m=20*Math.log10(f),d=m>=0?"+":"-",v=Math.abs(m);return v===1/0?v="Inf":v=v.toFixed(2),""+d+v+" dB"},O=null,y=function(f,m,d){if(m===void 0&&(m=0),d===void 0&&(d=""),!isFinite(f))return"NaN";var v=Math.floor(Math.log10(f)),_=Math.max(m*3,v),l=Math.floor(_/3),c=O[l],h=f/Math.pow(1e3,l),g=Math.max(0,2-_%3),p=h.toFixed(g);return(p+" "+c+" "+d).trim()},u=function(f,m){m===void 0&&(m="default");var d=Math.floor(f/10),v=Math.floor(d/3600),_=Math.floor(d%3600/60),l=d%60;if(m==="short"){var c=v>0?""+v+"h":"",h=_>0?""+_+"m":"",g=l>0?""+l+"s":"";return""+c+h+g}var p=String(v).padStart(2,"0"),j=String(_).padStart(2,"0"),x=String(l).padStart(2,"0");return p+":"+j+":"+x}},8480:(q,S,r)=>{"use strict";r.r(S),r.d(S,{CameraConsole:()=>m,CameraContent:()=>d});var e=r(1131),s=r(1859),n=r(7003),t=r(5180),a=r(185),b=r(9845),O=r(360),y=r(3521),u=function(c,h){if(!h||c.length<2)return[];var g=c.findIndex(function(p){return p.ref===h.ref});switch(g){case-1:return[c[c.length-1].ref,c[0].ref];case 0:return c.length===2?[c[1].ref,c[1].ref]:[c[c.length-1].ref,c[g+1].ref];case c.length-1:return c.length===2?[c[0].ref,c[0].ref]:[c[g-1].ref,c[0].ref];default:return[c[g-1].ref,c[g+1].ref]}},f=function(c,h){h===void 0&&(h="");var g=(0,s.pb)(c,function(j){return!!j.name});if(h){var p=(0,b.XZ)(h,function(j){return j.name});g=(0,s.pb)(g,p)}return g=(0,s.di)(g),g},m=function(c){var h=(0,n.useState)(0),g=h[0],p=h[1];return(0,e.jsx)(y.p8,{width:1e3,height:750,children:(0,e.jsx)(y.p8.Content,{children:(0,e.jsxs)(t.az,{fillPositionedParent:!0,overflow:"hidden",children:[(0,e.jsxs)(t.tU,{children:[(0,e.jsxs)(t.tU.Tab,{selected:g===0,onClick:function(){return p(0)},children:[(0,e.jsx)(t.In,{name:"map-marked-alt"})," Map"]},"Map"),(0,e.jsxs)(t.tU.Tab,{selected:g===1,onClick:function(){return p(1)},children:[(0,e.jsx)(t.In,{name:"table"})," List"]},"List")]}),(0,e.jsx)(d,{tabIndex:g})]})})})},d=function(c){var h=(0,n.useState)(""),g=h[0],p=h[1],j="";switch(c.tabIndex){case 0:j=(0,e.jsx)(_,{});break;case 1:j=(0,e.jsx)(v,{searchText:g,setSearchText:p});break}return(0,e.jsxs)(t.BJ,{fill:!0,m:1,children:[(0,e.jsx)(t.BJ.Item,{width:"45%",children:j}),(0,e.jsx)(t.BJ.Item,{width:"55%",children:(0,e.jsx)(l,{searchText:g})})]})},v=function(c){var h=(0,O.Oc)(),g=h.act,p=h.data,j=c.searchText,x=c.setSearchText,C=p.activeCamera,I=f(p.cameras,j);return(0,e.jsxs)(t.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.pd,{autoFocus:!0,expensive:!0,fluid:!0,mt:1,placeholder:"Search for a camera",onChange:x,value:j})}),(0,e.jsx)(t.BJ.Item,{grow:!0,children:(0,e.jsx)(t.wn,{fill:!0,scrollable:!0,children:I.map(function(P){return(0,e.jsx)("div",{title:P.name,className:(0,a.Ly)(["Button","Button--fluid","Button--color--transparent","Button--ellipsis",C?.ref===P.ref?"Button--selected":"candystripe"]),onClick:function(){return g("switch_camera",{camera:P.ref})},children:P.name},P.ref)})})})]})},_=function(c){var h=(0,O.Oc)(),g=h.act,p=h.data,j=f(p.cameras),x=(0,n.useState)(1),C=x[0],I=x[1],P=p.activeCamera,M=p.stationLevelNum,B=p.stationLevelName,w=(0,n.useState)(M[0]),T=w[0],K=w[1];return(0,e.jsx)(t.az,{height:"100%",style:{display:"flex"},m:2,children:(0,e.jsx)(t.tx,{onZoom:function(R,U){return I(U)},zLevels:M,zNames:B,zCurrent:T,setZCurrent:K,children:j.map(function(R,U){return(0,e.jsx)(t.tx.MarkerIcon,{x:R.x,y:R.y,z:R.z,z_current:T,zoom:C,icon:"box",tooltip:R.name,tooltipPosition:R.x>255/2?"bottom":"right",color:R.status?R.ref===P?.ref?"green":"blue":"red",bordered:!0,onClick:function(){return g("switch_camera",{camera:R.ref})}},U)})})})},l=function(c){var h=(0,O.Oc)(),g=h.act,p=h.data,j=p.activeCamera,x=p.mapRef,C=c.searchText,I=f(p.cameras,C),P=u(I,j),M=P[0],B=P[1];return(0,e.jsx)(t.wn,{fill:!0,children:(0,e.jsxs)(t.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(t.BJ.Item,{children:(0,e.jsxs)(t.BJ,{fill:!0,children:[(0,e.jsx)(t.BJ.Item,{grow:!0,children:j?.status?(0,e.jsx)(t.IC,{info:!0,children:j.name}):(0,e.jsx)(t.IC,{danger:!0,children:"No input signal"})}),(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.$n,{icon:"chevron-left",disabled:!M,onClick:function(){return g("switch_camera",{camera:M})}})}),(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.$n,{icon:"chevron-right",disabled:!B,onClick:function(){return g("switch_camera",{camera:B})}})})]})}),(0,e.jsx)(t.BJ.Item,{grow:!0,children:(0,e.jsx)(t.D1,{height:"95%",width:"100%",params:{id:x,type:"map"}})})]})})}},8482:(q,S,r)=>{"use strict";r.r(S),r.d(S,{ShuttleConsole:()=>l,SpiderOS:()=>f});var e=r(1131),s=r(7003),n=r(360),t=r(5180),a=r(3521);function b(g,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");g.prototype=Object.create(p&&p.prototype,{constructor:{value:g,writable:!0,configurable:!0}}),p&&O(g,p)}function O(g,p){return O=Object.setPrototypeOf||function(x,C){return x.__proto__=C,x},O(g,p)}var y=[{icon_state:"headset_green",tooltipTitle:"\u0412\u0430\u0448 \u043D\u0430\u0443\u0448\u043D\u0438\u043A",tooltipContent:`\u0412 \u043E\u0442\u043B\u0438\u0447\u0438\u0438 \u043E\u0442 \u0441\u0442\u0430\u043D\u0434\u0430\u0440\u0442\u043D\u044B\u0445 \u043D\u0430\u0443\u0448\u043D\u0438\u043A\u043E\u0432 \u0431\u043E\u043B\u044C\u0448\u0438\u043D\u0441\u0442\u0432\u0430 \u043A\u043E\u0440\u043F\u043E\u0440\u0430\u0446\u0438\u0439, \u043D\u0430\u0448 \u0432\u0430\u0440\u0438\u0430\u043D\u0442 \u0441\u043E\u0437\u0434\u0430\u043D \u0441\u043F\u0435\u0446\u0438\u0430\u043B\u044C\u043D\u043E \u0434\u043B\u044F \u043F\u043E\u043C\u043E\u0449\u0438 \u0432 \u0432\u0430\u0448\u0435\u043C \u0432\u043D\u0435\u0434\u0440\u0435\u043D\u0438\u0438. \u0412 \u043D\u0435\u0433\u043E \u0432\u0441\u0442\u0440\u043E\u0435\u043D \u0441\u043F\u0435\u0446\u0438\u0430\u043B\u044C\u043D\u044B\u0439 \u043A\u0430\u043D\u0430\u043B \u0434\u043B\u044F \u043E\u0431\u0449\u0435\u043D\u0438\u044F \u0441 \u0432\u0430\u0448\u0438\u043C \u0431\u043E\u0440\u0433\u043E\u043C \u0438\u043B\u0438 \u0434\u0440\u0443\u0433\u0438\u043C\u0438 \u0447\u043B\u0435\u043D\u0430\u043C\u0438 \u043A\u043B\u0430\u043D\u0430. \u041A \u0442\u043E\u043C\u0443 \u0436\u0435 \u043E\u043D \u0441\u043F\u043E\u0441\u043E\u0431\u0435\u043D \u043F\u0440\u043E\u0441\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043B\u044E\u0431\u044B\u0435 \u0434\u0440\u0443\u0433\u0438\u0435 \u043D\u0430\u0443\u0448\u043D\u0438\u043A\u0438 \u0438 \u0441\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0435 \u0434\u043B\u044F \u043F\u0440\u043E\u0441\u043B\u0443\u0448\u043A\u0438 \u0438/\u0438\u043B\u0438 \u0440\u0430\u0437\u0433\u043E\u0432\u043E\u0440\u0430 \u043A\u0430\u043D\u0430\u043B\u044B \u0438\u0445 \u043A\u043B\u044E\u0447\u0435\u0439. \u0411\u043B\u0430\u0433\u043E\u0434\u0430\u0440\u044F \u044D\u0442\u043E\u043C\u0443 \u0432\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u043F\u043E\u0441\u0442\u0435\u043F\u0435\u043D\u043D\u043E \u043D\u0430\u043A\u0430\u043F\u043B\u0438\u0432\u0430\u0442\u044C \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u044B\u0435 \u0432\u0430\u043C \u043C\u0435\u0441\u0442\u043D\u044B\u0435 \u043A\u0430\u043D\u0430\u043B\u044B \u0441\u0432\u044F\u0437\u0438 \u0434\u043B\u044F \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u0438\u044F \u043B\u044E\u0431\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438. @@ -478,18 +478,18 @@ User Agent: `+navigator.userAgent;Byond.sendMessage({type:"log",ns:m,message:l}) \u0422\u0430\u043A \u0436\u0435 \u0432\u043A\u043B\u044E\u0447\u0451\u043D\u043D\u044B\u0439 \u043A\u043E\u0441\u0442\u044E\u043C \u043F\u0430\u0441\u0441\u0438\u0432\u043D\u043E \u043F\u043E\u0442\u0440\u0435\u0431\u043B\u044F\u0435\u0442 \u0437\u0430\u0440\u044F\u0434 \u0434\u043B\u044F \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0430\u043D\u0438\u044F \u0440\u0430\u0431\u043E\u0442\u044B \u0432\u0441\u0435\u0445 \u0444\u0443\u043D\u043A\u0446\u0438\u0439 \u0438 \u043C\u043E\u0434\u0443\u043B\u0435\u0439. \u0410\u043A\u0442\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 \u043A\u043E\u0441\u0442\u044E\u043C \u043D\u0435\u043B\u044C\u0437\u044F \u0441\u043D\u044F\u0442\u044C \u043E\u0431\u044B\u0447\u043D\u044B\u043C \u0441\u043F\u043E\u0441\u043E\u0431\u043E\u043C, \u043F\u043E\u043A\u0430 \u043E\u043D \u043D\u0435 \u0431\u0443\u0434\u0435\u0442 \u0434\u0435\u0430\u043A\u0442\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D. \u0412\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0440\u043E\u0432\u043D\u043E \u043A\u0430\u043A \u0438 \u0432\u044B\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u043A\u043E\u0441\u0442\u044E\u043C\u0430 \u0437\u0430\u043D\u0438\u043C\u0430\u0435\u0442 \u043C\u043D\u043E\u0433\u043E \u0432\u0440\u0435\u043C\u0435\u043D\u0438. \u041F\u043E\u0434\u0443\u043C\u0430\u0439\u0442\u0435 \u0434\u0432\u0430\u0436\u0434\u044B \u043F\u0440\u0435\u0436\u0434\u0435, \u0447\u0435\u043C \u0432\u044B\u043A\u043B\u044E\u0447\u0430\u0442\u044C \u0435\u0433\u043E \u043D\u0430 \u0442\u0435\u0440\u0440\u0438\u0442\u043E\u0440\u0438\u0438 \u0432\u0440\u0430\u0433\u0430!`,tooltipPosition:"top-start",onClick:function(){return j("initialise_suit")},children:W})]})})})},v=function(g){var p=(0,n.Oc)().data,j=p.actionsIcon;return(0,e.jsx)(t.wn,{m:"0",title:"\u0421\u043E\u0432\u0435\u0442\u044B \u0438 \u043F\u043E\u0434\u0441\u043A\u0430\u0437\u043A\u0438",style:{textAlign:"center"},buttons:(0,e.jsx)(t.$n,{tooltip:`\u041C\u043E\u043B\u043E\u0434\u044B\u043C \u0443\u0431\u0438\u0439\u0446\u0430\u043C \u0447\u0430\u0441\u0442\u043E \u043D\u0435 \u043B\u0435\u0433\u043A\u043E \u043E\u0441\u0432\u043E\u0438\u0442\u0441\u044F \u0432 \u043F\u043E\u043B\u0435\u0432\u044B\u0445 \u0443\u0441\u043B\u043E\u0432\u0438\u044F\u0445, \u0434\u0430\u0436\u0435 \u043F\u043E\u0441\u043B\u0435 \u0438\u043D\u0442\u0435\u043D\u0441\u0438\u0432\u043D\u044B\u0445 \u0442\u0440\u0435\u043D\u0438\u0440\u043E\u0432\u043E\u043A. -\u042D\u0442\u043E\u0442 \u0440\u0430\u0437\u0434\u0435\u043B \u043F\u0440\u0438\u0437\u0432\u0430\u043D \u043F\u043E\u043C\u043E\u0447\u044C \u0432\u0430\u043C \u0441\u043E\u0432\u0435\u0442\u0430\u043C\u0438 \u043F\u043E \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u044B\u043C \u0447\u0430\u0441\u0442\u043E \u0432\u043E\u0437\u043D\u0438\u043A\u0430\u044E\u0449\u0438\u043C \u0432\u043E\u043F\u0440\u043E\u0441\u0430\u043C \u043A\u0430\u0441\u0430\u0442\u0435\u043B\u044C\u043D\u043E \u0432\u043E\u0437\u043C\u043E\u0436\u043D\u044B\u0445 \u043C\u0438\u0441\u0441\u0438\u0439 \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u0432\u0430\u043C \u0432\u044B\u0434\u0430\u0434\u0443\u0442 \u0438\u043B\u0438 \u0440\u0430\u0441\u0441\u043A\u0430\u0437\u0430\u0442\u044C \u043E \u043C\u0430\u043B\u043E\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438 \u043A\u043E\u0442\u043E\u0440\u0443\u044E \u0432\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u043E\u0431\u0435\u0440\u043D\u0443\u0442\u044C \u0432 \u0441\u0432\u043E\u044E \u043F\u043E\u043B\u044C\u0437\u0443.`,tooltipPosition:"bottom-start",icon:"question",iconSize:.8,mt:-.5}),children:(0,e.jsx)(t.so,{direction:"column",grow:1,alignContent:"center",children:(0,e.jsx)(t.so.Item,{direction:"row",children:y.map(function(x,C){var I=x.icon_state,P=x.tooltipTitle,M=x.tooltipContent;return(0,e.jsx)(t.c_,{className:"Button_green",height:"32px",width:"32px",dmIcon:j,dmIconState:I,tooltip:M,tooltipPosition:"bottom-start",children:P},C)})})})})},_=function(g){var p=(0,n.Oc)(),j=p.act,x=p.data,C=x.actionsIcon,I=x.blocked_TGUI_rows,P=[{blue:"Button_blue",green:"Button_green",red:"Button_red",disabled:"Button_disabled"}];return(0,e.jsx)(t.wn,{title:"\u041C\u043E\u0434\u0443\u043B\u0438 \u043A\u043E\u0441\u0442\u044E\u043C\u0430",style:{textAlign:"center"},overflowY:"scroll",height:"550px",buttons:(0,e.jsx)(t.$n,{tooltip:"\u0423\u0441\u0442\u0430\u043D\u0430\u0432\u043B\u0438\u0432\u0430\u0435\u043C\u044B\u0435 \u0443\u043B\u0443\u0447\u0448\u0435\u043D\u0438\u044F \u0434\u043B\u044F \u0432\u0430\u0448\u0435\u0433\u043E \u043A\u043E\u0441\u0442\u044E\u043C\u0430! \u0414\u0435\u043B\u044F\u0442\u0441\u044F \u043D\u0430 3 \u0440\u0430\u0437\u043D\u044B\u0445 \u043F\u043E\u0434\u0445\u043E\u0434\u0430 \u0434\u043B\u044F \u0432\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u044F \u0432\u0430\u0448\u0435\u0439 \u043C\u0438\u0441\u0441\u0438\u0438. \u0418\u0437-\u0437\u0430 \u0431\u043E\u043B\u044C\u0448\u0438\u0445 \u0442\u0440\u0435\u0431\u043E\u0432\u0430\u043D\u0438\u0439 \u043F\u043E \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0430\u043D\u0438\u044E \u0440\u0430\u0431\u043E\u0442\u043E\u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0441\u0442\u0438 \u043A\u043E\u0441\u0442\u044E\u043C\u0430, \u043F\u0440\u0438\u043E\u0431\u0440\u0435\u0442\u0435\u043D\u0438\u0435 \u043B\u044E\u0431\u043E\u0433\u043E \u043C\u043E\u0434\u0443\u043B\u044F, \u0431\u043B\u043E\u043A\u0438\u0440\u0443\u0435\u0442 \u043F\u0440\u0438\u043E\u0431\u0440\u0435\u0442\u0435\u043D\u0438\u0435 \u043C\u043E\u0434\u0443\u043B\u0435\u0439 \u043E\u0434\u043D\u043E\u0433\u043E \u0443\u0440\u043E\u0432\u043D\u044F \u0438\u0437 \u0441\u043E\u0441\u0435\u0434\u043D\u0438\u0445 \u0441\u0442\u043E\u043B\u0431\u0446\u043E\u0432",tooltipPosition:"bottom",icon:"question",iconSize:.8,mt:-.5}),children:g.actionsCheck?(0,e.jsxs)(t.so,{direction:"row",alignContent:"center",ml:1.5,children:[(0,e.jsx)(t.so.Item,{width:"33%",shrink:1,children:(0,e.jsx)(t.wn,{width:"100%",title:"\u041F\u0440\u0438\u0437\u0440\u0430\u043A",height:"100%",ml:"0px",buttons:(0,e.jsx)(t.$n,{tooltip:"\u0421\u043A\u0440\u044B\u0432\u0430\u0439\u0442\u0435\u0441\u044C \u0441\u0440\u0435\u0434\u0438 \u0432\u0440\u0430\u0433\u043E\u0432, \u043D\u0430\u043F\u0430\u0434\u0430\u0439\u0442\u0435 \u0438\u0437 \u0442\u0435\u043D\u0438 \u0438 \u0431\u0443\u0434\u044C\u0442\u0435 \u043D\u0435\u0437\u0440\u0438\u043C\u043E\u0439 \u0443\u0433\u0440\u043E\u0437\u043E\u0439, \u0432\u0441\u0451 \u0434\u043B\u044F \u0442\u043E\u0433\u043E \u0447\u0442\u043E\u0431\u044B \u043E \u0432\u0430\u0441 \u0438 \u0432\u0430\u0448\u0435\u0439 \u043C\u0438\u0441\u0441\u0438\u0438 \u043D\u0438\u043A\u0442\u043E \u043D\u0435 \u0443\u0437\u043D\u0430\u043B! \u0411\u0443\u0434\u044C\u0442\u0435 \u043D\u0435\u0437\u0430\u043C\u0435\u0442\u043D\u044B \u043A\u0430\u043A \u043F\u0440\u0438\u0437\u0440\u0430\u043A!",tooltipPosition:"bottom",icon:"question",iconSize:.8,mt:-.5}),style:{textAlign:"center",background:"rgba(53, 94, 163, 0.8)"},children:(0,e.jsx)(t.IC,{className:"NoticeBox_blue",success:!0,danger:!0,align:"center",children:u.ghost.map(function(M,B){var w=M.style,T=M.row,K=M.iconState,R=M.title,U=M.content,F=M.tooltipPosition;return!I[B]&&(0,e.jsx)(t.c_,{className:I[B]?P[0].disabled:P[0].blue,height:"64px",imageSize:90,width:"64px",fontSize:"10px",dmIcon:C,dmIconState:K,disabled:I[B],onClick:function(){return j("give_ability",{style:w,row:T})},tooltip:U,tooltipPosition:F,children:R},w)})})})}),(0,e.jsx)(t.so.Item,{width:"33%",shrink:1,children:(0,e.jsx)(t.wn,{ml:"0px",width:"100%",title:"\u0417\u043C\u0435\u0439",height:"100%",buttons:(0,e.jsx)(t.$n,{tooltip:"\u0423\u0434\u0438\u0432\u043B\u044F\u0439\u0442\u0435! \u0422\u0440\u044E\u043A\u0438, \u043B\u043E\u0432\u0443\u0448\u043A\u0438, \u0449\u0438\u0442\u044B. \u041F\u043E\u043A\u0430\u0436\u0438\u0442\u0435 \u0438\u043C, \u0447\u0442\u043E \u0442\u0430\u043A\u043E\u0435 \u0431\u043E\u0439 \u0441 \u043D\u0430\u0441\u0442\u043E\u044F\u0449\u0438\u043C \u0443\u0431\u0438\u0439\u0446\u0435\u0439. \u0418\u0437\u0432\u0438\u0432\u0430\u0439\u0442\u0435\u0441\u044C \u0438 \u0438\u0437\u0432\u043E\u0440\u0430\u0447\u0438\u0432\u0430\u0439\u0442\u0435\u0441\u044C \u043D\u0430\u0445\u043E\u0434\u044F \u0432\u044B\u0445\u043E\u0434 \u0438\u0437 \u043B\u044E\u0431\u043E\u0439 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438. \u0412\u0440\u0430\u0433\u0438 \u0432\u0441\u0435\u0433\u043E \u043B\u0438\u0448\u044C \u0433\u0440\u044B\u0437\u0443\u043D\u044B, \u0447\u044C\u0451 \u043B\u043E\u0433\u043E\u0432\u043E \u043D\u0430\u0432\u0435\u0441\u0442\u0438\u043B \u0437\u043C\u0435\u0439!",tooltipPosition:"bottom",icon:"question",iconSize:.8,mt:-.5}),style:{textAlign:"center",background:"rgba(0, 174, 208, 0.15)"},children:(0,e.jsx)(t.IC,{success:!0,align:"center",children:u.snake.map(function(M,B){var w=M.style,T=M.row,K=M.icon_state,R=M.title,U=M.content,F=M.tooltipPosition;return!I[B]&&(0,e.jsx)(t.c_,{className:I[B]?P[0].disabled:P[0].green,height:"64px",imageSize:90,width:"64px",fontSize:"10px",dmIcon:C,dmIconState:K,tooltip:U,tooltipPosition:F,disabled:I[B],onClick:function(){return j("give_ability",{style:w,row:T})},children:R},w)})})})}),(0,e.jsx)(t.so.Item,{width:"33%",shrink:1,children:(0,e.jsx)(t.wn,{ml:"0px",width:"100%",title:"\u0421\u0442\u0430\u043B\u044C",height:"100%",buttons:(0,e.jsx)(t.$n,{tooltip:"\u042F\u0440\u043E\u0441\u0442\u044C \u043D\u0435 \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430\u044F \u043E\u0431\u044B\u0447\u043D\u044B\u043C \u043B\u044E\u0434\u044F\u043C. \u0421\u0438\u043B\u0430, \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0438 \u043E\u0440\u0443\u0434\u0438\u044F \u0432\u044B\u0448\u0435 \u0438\u0445 \u043F\u043E\u043D\u0438\u043C\u0430\u043D\u0438\u044F. \u0420\u0430\u0437\u0438\u0442\u0435 \u0438\u0445 \u043A\u0430\u043A \u0445\u0438\u0449\u043D\u0438\u043A \u0447\u0442\u043E \u0440\u0430\u0437\u0438\u0442 \u0441\u0432\u043E\u044E \u0434\u043E\u0431\u044B\u0447\u0443. \u041F\u043E\u043A\u0430\u0436\u0438\u0442\u0435 \u0438\u043C \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0432\u043A\u0443\u0441 \u0441\u0442\u0430\u043B\u0438!",tooltipPosition:"bottom",icon:"question",iconSize:.8,mt:-.5}),style:{textAlign:"center",background:"rgba(80, 20, 20, 1)"},children:(0,e.jsx)(t.IC,{className:"NoticeBox_red",success:!0,danger:!0,align:"center",children:u.steel.map(function(M,B){var w=M.style,T=M.row,K=M.icon_state,R=M.title,U=M.content,F=M.tooltipPosition;return!I[B]&&(0,e.jsx)(t.c_,{className:I[B]?P[0].disabled:P[0].red,height:"64px",imageSize:90,width:"64px",fontSize:"10px",dmIcon:C,dmIconState:K,tooltip:U,tooltipPosition:F,disabled:I[B],onClick:function(){return j("give_ability",{style:w,row:T})},children:R},w)})})})})]}):(0,e.jsx)(t.IC,{className:"NoticeBox_red",success:!0,danger:!0,align:"center",children:"\u0412\u0441\u0435 \u043C\u043E\u0434\u0443\u043B\u0438 \u0432\u044B\u0431\u0440\u0430\u043D\u044B"})})},l=function(g){var p=(0,n.Oc)(),j=p.act,x=p.data;return(0,e.jsx)(t.wn,{title:"\u0423\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435 \u0448\u0430\u0442\u0442\u043B\u043E\u043C",mr:"5px",style:{textAlign:"center"},buttons:(0,e.jsx)(t.$n,{tooltip:"\u041F\u0430\u043D\u0435\u043B\u044C \u0434\u043B\u044F \u0443\u0434\u0430\u043B\u0451\u043D\u043D\u043E\u0433\u043E \u0443\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435 \u0432\u0430\u0448\u0438\u043C \u043B\u0438\u0447\u043D\u044B\u043C \u0448\u0430\u0442\u0442\u043B\u043E\u043C. \u0422\u0430\u043A \u0436\u0435 \u043F\u043E\u043A\u0430\u0437\u044B\u0432\u0430\u0435\u0442 \u0432\u0430\u0448\u0443 \u0442\u0435\u043A\u0443\u0449\u0443\u044E \u043F\u043E\u0437\u0438\u0446\u0438\u044E \u0438 \u043F\u043E\u0437\u0438\u0446\u0438\u044E \u0441\u0430\u043C\u043E\u0433\u043E \u0448\u0430\u0442\u0442\u043B\u0430!",tooltipPosition:"right",icon:"question",iconSize:.8,mt:-.5}),children:(0,e.jsx)(t.so,{ml:2,children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"\u041F\u043E\u0437\u0438\u0446\u0438\u044F",children:x.status?x.status:(0,e.jsx)(t.IC,{color:"red",children:"Shuttle Missing"})}),(0,e.jsx)(t.Ki.Item,{label:"\u0412\u0430\u0448\u0430 \u043F\u043E\u0437\u0438\u0446\u0438\u044F",children:x.player_pos}),!!x.shuttle&&(!!x.docking_ports_len&&(0,e.jsx)(t.Ki.Item,{label:"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u0448\u0430\u0442\u0442\u043B",children:x.docking_ports.map(function(C){return(0,e.jsx)(t.$n,{icon:"chevron-right",onClick:function(){return j("move",{move:C.id})},children:C.name},C.name)})})||(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.Ki.Item,{label:"Status",color:"red",children:(0,e.jsx)(t.IC,{color:"red",children:"Shuttle Locked"})}),!!x.admin_controlled&&(0,e.jsx)(t.Ki.Item,{label:"\u0410\u0432\u0442\u043E\u0440\u0438\u0437\u0430\u0446\u0438\u044F",children:(0,e.jsx)(t.$n,{icon:"exclamation-circle",disabled:!x.status,onClick:function(){return j("request")},children:"\u0417\u0430\u043F\u0440\u043E\u0441\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0440\u0438\u0437\u0430\u0446\u0438\u044E"})})]}))]})})})},c=function(g){var p=(0,n.Oc)().data,j=p.randomPercent,x=p.actionsIcon,C=p.color_choice;return(0,e.jsx)(t.wn,{stretchContents:!0,children:(0,e.jsx)(t.z2,{color:C,value:j,minValue:0,maxValue:100,children:(0,e.jsx)("center",{children:(0,e.jsxs)(t.IC,{className:"NoticeBox_"+C,mt:1,children:[(0,e.jsx)(t.Hg,{height:"64px",width:"64px",icon:x,icon_state:"spider_"+C,style:{marginLeft:"-6px"}}),(0,e.jsx)("br",{}),"Loading ",j+"%"]})})})})},h=function(g){"use strict";O(p,g);function p(x){var C;return C=g.call(this,x)||this,C.timer=null,C.state={lastText:"text do be there",currentDisplay:[]},C}var j=p.prototype;return j.tick=function(){var C=this,I=C.props,P=C.state;if(I.allMessages!==P.lastText&&!I.end_terminal){var M=P.currentDisplay;M.push(I.allMessages),this.setState({lastText:I.allMessages,currentDisplay:M})}else I.end_terminal&&(clearTimeout(this.timer),setTimeout(I.onFinished,I.finishedTimeout))},j.componentDidMount=function(){var C=this,I=this.props,P=I.linesPerSecond,M=P===void 0?2.5:P;this.timer=setInterval(function(){return C.tick()},1e3/M)},j.componentWillUnmount=function(){clearTimeout(this.timer)},j.render=function(){return(0,e.jsx)(t.az,{m:1,children:this.state.currentDisplay.map(function(C){return(0,e.jsxs)(s.Fragment,{children:[C,(0,e.jsx)("br",{})]},C)})})},p}(s.Component)},8513:(q,S,r)=>{"use strict";r.r(S),r.d(S,{PollManagement:()=>O});var e=r(1131),s=r(360),n=r(7003),t=r(5180),a=r(3521),O=function(y){var u=(0,s.Oc)(),f=u.act,m=u.data,d=m.poll,v=m.has_poll,_=m.poll_types,l=m.interval_types,c=(0,n.useState)(d.question),h=c[0],g=c[1],p=(0,n.useState)(d.poll_type),j=p[0],x=p[1],C=(0,n.useState)(d.options_allowed),I=C[0],P=C[1],M=(0,n.useState)(d.admin_only),B=M[0],w=M[1],T=(0,n.useState)(d.dont_show),K=T[0],R=T[1],U=(0,n.useState)(d.allow_revoting),F=U[0],$=U[1],W=(0,n.useState)(d.interval),N=W[0],Z=W[1],ie=(0,n.useState)(d.duration),Q=ie[0],V=ie[1],G=(0,n.useState)(d.start_datetime),le=G[0],xe=G[1],de=(0,n.useState)(d.end_datetime),me=de[0],pe=de[1],Me=(0,n.useState)(d.subtitle),Ke=Me[0],Le=Me[1],Se=(0,n.useState)(d.minimum_playtime),ln=Se[0],ze=Se[1],We=(0,n.useState)(d.run_duration),fn=We[0],Ze=We[1],In=(0,n.useState)(d.run_start),En=In[0],Yn=In[1],Xn=(0,n.useState)(d.clear_votes),ct=Xn[0],Ot=Xn[1];return(0,e.jsx)(a.p8,{title:"Poll Management",width:600,height:640,children:(0,e.jsxs)(a.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(t.wn,{title:"Poll Creation",children:[(0,e.jsx)(t.az,{children:(0,e.jsxs)(t.BJ,{vertical:!0,children:[(0,e.jsxs)(t.BJ,{children:[(0,e.jsx)(t.BJ.Item,{children:"Question:"}),(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.pd,{width:40,placeholder:"Question goes here",value:h,onChange:g})})]}),(0,e.jsx)("br",{}),(0,e.jsxs)(t.BJ,{mb:2,children:[(0,e.jsx)(t.az,{mr:45,children:"Choice:"})," ",(0,e.jsx)(t.ms,{width:20,disabled:v,options:_,selected:j,onSelected:function(_t){return x(_t)}})]}),v&&j!=="Multiple Choice"?null:(0,e.jsxs)(t.az,{inline:!0,children:["Mult-choice options allowed:",(0,e.jsx)(t.$n.Checkbox,{checked:I,onClick:function(){return P(!I)}})]}),(0,e.jsx)("br",{}),(0,e.jsxs)(t.BJ,{mb:2,children:[(0,e.jsx)(t.$n.Checkbox,{checked:B,onClick:function(){return w(!B)},children:"Admin only"}),(0,e.jsx)(t.$n.Checkbox,{checked:K,onClick:function(){return R(!K)},children:"Don't show"}),(0,e.jsx)(t.$n.Checkbox,{checked:F,onClick:function(){return $(!F)},children:"Allow revoting"})]}),(0,e.jsxs)(t.BJ,{mb:2,children:[(0,e.jsx)(t.BJ.Item,{children:"Min. playtime to vote (in hours):"}),(0,e.jsx)(t.BJ.Item,{inline:!0,ml:1,children:(0,e.jsx)(t.Q7,{width:3,minValue:0,step:1,maxValue:1/0,value:ln,onChange:function(_t){return ze(_t)}})})]})]})}),(0,e.jsxs)(t.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(t.BJ.Item,{width:"50%",children:(0,e.jsxs)(t.BJ,{mb:2,children:[(0,e.jsx)(t.BJ.Item,{children:"Duration"}),(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.$n,{icon:"chevron-right",onClick:function(){return Ze(!fn)},children:fn?"Run for":"Run until"})}),fn?(0,e.jsx)(t.BJ.Item,{children:(0,e.jsxs)(t.BJ,{children:[(0,e.jsx)(t.Q7,{width:3,minValue:0,maxValue:100,step:1,value:Q,onChange:function(_t){return V(_t)}}),(0,e.jsx)(t.ms,{options:l,selected:N,onSelected:function(_t){return Z(_t)}})]})}):(0,e.jsx)(t.BJ.Item,{children:(0,e.jsxs)(t.BJ,{children:[(0,e.jsx)(t.BJ.Item,{children:"Until:"}),(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.pd,{width:15,placeholder:"YYYY-MM-DD HH:MM:SS",value:me||"1970-01-01 00:00:01",onChange:pe})})]})})]})}),(0,e.jsx)(t.BJ.Item,{mb:5,children:(0,e.jsxs)(t.BJ,{children:[(0,e.jsx)(t.az,{children:"Start"}),(0,e.jsx)(t.$n,{onClick:function(){return Yn(!En)},children:En?"Now":"At datetime"}),En?null:(0,e.jsx)(t.pd,{width:15,placeholder:"YYYY-MM-DD HH:MM:SS",value:le||"1970-01-01 00:00:01",onChange:xe})]})})]}),(0,e.jsxs)(t.BJ,{fill:!0,children:[(0,e.jsxs)(t.BJ.Item,{children:["Subtitle (Optional)",(0,e.jsx)("br",{}),(0,e.jsx)(t.fs,{height:10,width:20,value:Ke,onChange:Le})]}),(0,e.jsx)(t.BJ.Item,{children:v?(0,e.jsxs)(t.BJ,{vertical:!0,children:[(0,e.jsxs)(t.BJ.Item,{children:[(0,e.jsx)(t.$n,{onClick:function(){return f("clear_poll_votes")},children:"Clear poll votes"}),d.poll_votes," players have voted"]}),(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.$n.Checkbox,{checked:ct,onClick:function(){return Ot(!ct)},children:"Clear votes on edit"})}),(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.$n,{p:2,onClick:function(){return f("submit_poll",{question:h,poll_type:j,options_allowed:I,admin_only:B,dont_show:K,allow_revoting:F,interval:N,duration:Q,start_datetime:le,end_datetime:me,subtitle:Ke,poll_votes:ln,run_duration:fn,run_start:En,clear_votes:ct})},children:"Submit Poll"})})]}):(0,e.jsx)(t.BJ,{children:(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.$n,{p:1,m:2,onClick:function(){return f("initialize_poll",{question:h,poll_type:j,options_allowed:I,admin_only:B,dont_show:K,allow_revoting:F,interval:N,duration:Q,start_datetime:le,end_datetime:me,subtitle:Ke,poll_votes:ln,run_duration:fn,run_start:En,clear_votes:ct})},children:"Initliaze Question"})})})})]})]}),(0,e.jsx)(t.wn,{title:"Questions Manage",children:v?(0,e.jsx)(b,{}):(0,e.jsx)(t.az,{children:"First enter the poll question details and press Initialize Question. Then add poll options and press Submit Poll to save and create the question and options. No options are required for Text Reply polls."})})]})})},b=function(y){var u=(0,s.Oc)(),f=u.act,m=u.data,d=m.poll,v=d.options,_=(0,n.useState)(null),l=_[0],c=_[1];return(0,e.jsxs)(t.BJ,{children:[(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.$n,{onClick:function(){return f("add_poll_option")},children:"Add Option"})}),(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.Ki,{children:v.map(function(h){return(0,e.jsxs)(t.Ki.Item,{label:"Option "+h.num,children:[h.text,l==="Rating"?(0,e.jsxs)(t.az,{children:["Minimum value: ",h.min_val," | Maximum value:"," ",h.max_val,"Minimum description: ",h.desc_min,"Middle description: ",h.desc_mid,"Maximum description: ",h.desc_max]}):null,(0,e.jsx)("br",{}),(0,e.jsx)(t.$n,{onClick:function(){return f("edit_poll_option",{option_to_edit:h.id})},children:"Edit"}),(0,e.jsx)(t.$n,{onClick:function(){return f("delete_poll_option",{option_to_delete:h.id})},children:"Delete"}),(0,e.jsx)(t.cG,{})]},"option")})})})]})}},8523:(q,S,r)=>{"use strict";r.d(S,{IG:()=>d});/** +\u042D\u0442\u043E\u0442 \u0440\u0430\u0437\u0434\u0435\u043B \u043F\u0440\u0438\u0437\u0432\u0430\u043D \u043F\u043E\u043C\u043E\u0447\u044C \u0432\u0430\u043C \u0441\u043E\u0432\u0435\u0442\u0430\u043C\u0438 \u043F\u043E \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u044B\u043C \u0447\u0430\u0441\u0442\u043E \u0432\u043E\u0437\u043D\u0438\u043A\u0430\u044E\u0449\u0438\u043C \u0432\u043E\u043F\u0440\u043E\u0441\u0430\u043C \u043A\u0430\u0441\u0430\u0442\u0435\u043B\u044C\u043D\u043E \u0432\u043E\u0437\u043C\u043E\u0436\u043D\u044B\u0445 \u043C\u0438\u0441\u0441\u0438\u0439 \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u0432\u0430\u043C \u0432\u044B\u0434\u0430\u0434\u0443\u0442 \u0438\u043B\u0438 \u0440\u0430\u0441\u0441\u043A\u0430\u0437\u0430\u0442\u044C \u043E \u043C\u0430\u043B\u043E\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438 \u043A\u043E\u0442\u043E\u0440\u0443\u044E \u0432\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u043E\u0431\u0435\u0440\u043D\u0443\u0442\u044C \u0432 \u0441\u0432\u043E\u044E \u043F\u043E\u043B\u044C\u0437\u0443.`,tooltipPosition:"bottom-start",icon:"question",iconSize:.8,mt:-.5}),children:(0,e.jsx)(t.so,{direction:"column",grow:1,alignContent:"center",children:(0,e.jsx)(t.so.Item,{direction:"row",children:y.map(function(x,C){var I=x.icon_state,P=x.tooltipTitle,M=x.tooltipContent;return(0,e.jsx)(t.c_,{className:"Button_green",height:"32px",width:"32px",dmIcon:j,dmIconState:I,tooltip:M,tooltipPosition:"bottom-start",children:P},C)})})})})},_=function(g){var p=(0,n.Oc)(),j=p.act,x=p.data,C=x.actionsIcon,I=x.blocked_TGUI_rows,P=[{blue:"Button_blue",green:"Button_green",red:"Button_red",disabled:"Button_disabled"}];return(0,e.jsx)(t.wn,{title:"\u041C\u043E\u0434\u0443\u043B\u0438 \u043A\u043E\u0441\u0442\u044E\u043C\u0430",style:{textAlign:"center"},overflowY:"scroll",height:"550px",buttons:(0,e.jsx)(t.$n,{tooltip:"\u0423\u0441\u0442\u0430\u043D\u0430\u0432\u043B\u0438\u0432\u0430\u0435\u043C\u044B\u0435 \u0443\u043B\u0443\u0447\u0448\u0435\u043D\u0438\u044F \u0434\u043B\u044F \u0432\u0430\u0448\u0435\u0433\u043E \u043A\u043E\u0441\u0442\u044E\u043C\u0430! \u0414\u0435\u043B\u044F\u0442\u0441\u044F \u043D\u0430 3 \u0440\u0430\u0437\u043D\u044B\u0445 \u043F\u043E\u0434\u0445\u043E\u0434\u0430 \u0434\u043B\u044F \u0432\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u044F \u0432\u0430\u0448\u0435\u0439 \u043C\u0438\u0441\u0441\u0438\u0438. \u0418\u0437-\u0437\u0430 \u0431\u043E\u043B\u044C\u0448\u0438\u0445 \u0442\u0440\u0435\u0431\u043E\u0432\u0430\u043D\u0438\u0439 \u043F\u043E \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0430\u043D\u0438\u044E \u0440\u0430\u0431\u043E\u0442\u043E\u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0441\u0442\u0438 \u043A\u043E\u0441\u0442\u044E\u043C\u0430, \u043F\u0440\u0438\u043E\u0431\u0440\u0435\u0442\u0435\u043D\u0438\u0435 \u043B\u044E\u0431\u043E\u0433\u043E \u043C\u043E\u0434\u0443\u043B\u044F, \u0431\u043B\u043E\u043A\u0438\u0440\u0443\u0435\u0442 \u043F\u0440\u0438\u043E\u0431\u0440\u0435\u0442\u0435\u043D\u0438\u0435 \u043C\u043E\u0434\u0443\u043B\u0435\u0439 \u043E\u0434\u043D\u043E\u0433\u043E \u0443\u0440\u043E\u0432\u043D\u044F \u0438\u0437 \u0441\u043E\u0441\u0435\u0434\u043D\u0438\u0445 \u0441\u0442\u043E\u043B\u0431\u0446\u043E\u0432",tooltipPosition:"bottom",icon:"question",iconSize:.8,mt:-.5}),children:g.actionsCheck?(0,e.jsxs)(t.so,{direction:"row",alignContent:"center",ml:1.5,children:[(0,e.jsx)(t.so.Item,{width:"33%",shrink:1,children:(0,e.jsx)(t.wn,{width:"100%",title:"\u041F\u0440\u0438\u0437\u0440\u0430\u043A",height:"100%",ml:"0px",buttons:(0,e.jsx)(t.$n,{tooltip:"\u0421\u043A\u0440\u044B\u0432\u0430\u0439\u0442\u0435\u0441\u044C \u0441\u0440\u0435\u0434\u0438 \u0432\u0440\u0430\u0433\u043E\u0432, \u043D\u0430\u043F\u0430\u0434\u0430\u0439\u0442\u0435 \u0438\u0437 \u0442\u0435\u043D\u0438 \u0438 \u0431\u0443\u0434\u044C\u0442\u0435 \u043D\u0435\u0437\u0440\u0438\u043C\u043E\u0439 \u0443\u0433\u0440\u043E\u0437\u043E\u0439, \u0432\u0441\u0451 \u0434\u043B\u044F \u0442\u043E\u0433\u043E \u0447\u0442\u043E\u0431\u044B \u043E \u0432\u0430\u0441 \u0438 \u0432\u0430\u0448\u0435\u0439 \u043C\u0438\u0441\u0441\u0438\u0438 \u043D\u0438\u043A\u0442\u043E \u043D\u0435 \u0443\u0437\u043D\u0430\u043B! \u0411\u0443\u0434\u044C\u0442\u0435 \u043D\u0435\u0437\u0430\u043C\u0435\u0442\u043D\u044B \u043A\u0430\u043A \u043F\u0440\u0438\u0437\u0440\u0430\u043A!",tooltipPosition:"bottom",icon:"question",iconSize:.8,mt:-.5}),style:{textAlign:"center",background:"rgba(53, 94, 163, 0.8)"},children:(0,e.jsx)(t.IC,{className:"NoticeBox_blue",success:!0,danger:!0,align:"center",children:u.ghost.map(function(M,B){var w=M.style,T=M.row,K=M.iconState,R=M.title,U=M.content,F=M.tooltipPosition;return!I[B]&&(0,e.jsx)(t.c_,{className:I[B]?P[0].disabled:P[0].blue,height:"64px",imageSize:90,width:"64px",fontSize:"10px",dmIcon:C,dmIconState:K,disabled:I[B],onClick:function(){return j("give_ability",{style:w,row:T})},tooltip:U,tooltipPosition:F,children:R},w)})})})}),(0,e.jsx)(t.so.Item,{width:"33%",shrink:1,children:(0,e.jsx)(t.wn,{ml:"0px",width:"100%",title:"\u0417\u043C\u0435\u0439",height:"100%",buttons:(0,e.jsx)(t.$n,{tooltip:"\u0423\u0434\u0438\u0432\u043B\u044F\u0439\u0442\u0435! \u0422\u0440\u044E\u043A\u0438, \u043B\u043E\u0432\u0443\u0448\u043A\u0438, \u0449\u0438\u0442\u044B. \u041F\u043E\u043A\u0430\u0436\u0438\u0442\u0435 \u0438\u043C, \u0447\u0442\u043E \u0442\u0430\u043A\u043E\u0435 \u0431\u043E\u0439 \u0441 \u043D\u0430\u0441\u0442\u043E\u044F\u0449\u0438\u043C \u0443\u0431\u0438\u0439\u0446\u0435\u0439. \u0418\u0437\u0432\u0438\u0432\u0430\u0439\u0442\u0435\u0441\u044C \u0438 \u0438\u0437\u0432\u043E\u0440\u0430\u0447\u0438\u0432\u0430\u0439\u0442\u0435\u0441\u044C \u043D\u0430\u0445\u043E\u0434\u044F \u0432\u044B\u0445\u043E\u0434 \u0438\u0437 \u043B\u044E\u0431\u043E\u0439 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438. \u0412\u0440\u0430\u0433\u0438 \u0432\u0441\u0435\u0433\u043E \u043B\u0438\u0448\u044C \u0433\u0440\u044B\u0437\u0443\u043D\u044B, \u0447\u044C\u0451 \u043B\u043E\u0433\u043E\u0432\u043E \u043D\u0430\u0432\u0435\u0441\u0442\u0438\u043B \u0437\u043C\u0435\u0439!",tooltipPosition:"bottom",icon:"question",iconSize:.8,mt:-.5}),style:{textAlign:"center",background:"rgba(0, 174, 208, 0.15)"},children:(0,e.jsx)(t.IC,{success:!0,align:"center",children:u.snake.map(function(M,B){var w=M.style,T=M.row,K=M.icon_state,R=M.title,U=M.content,F=M.tooltipPosition;return!I[B]&&(0,e.jsx)(t.c_,{className:I[B]?P[0].disabled:P[0].green,height:"64px",imageSize:90,width:"64px",fontSize:"10px",dmIcon:C,dmIconState:K,tooltip:U,tooltipPosition:F,disabled:I[B],onClick:function(){return j("give_ability",{style:w,row:T})},children:R},w)})})})}),(0,e.jsx)(t.so.Item,{width:"33%",shrink:1,children:(0,e.jsx)(t.wn,{ml:"0px",width:"100%",title:"\u0421\u0442\u0430\u043B\u044C",height:"100%",buttons:(0,e.jsx)(t.$n,{tooltip:"\u042F\u0440\u043E\u0441\u0442\u044C \u043D\u0435 \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430\u044F \u043E\u0431\u044B\u0447\u043D\u044B\u043C \u043B\u044E\u0434\u044F\u043C. \u0421\u0438\u043B\u0430, \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0438 \u043E\u0440\u0443\u0434\u0438\u044F \u0432\u044B\u0448\u0435 \u0438\u0445 \u043F\u043E\u043D\u0438\u043C\u0430\u043D\u0438\u044F. \u0420\u0430\u0437\u0438\u0442\u0435 \u0438\u0445 \u043A\u0430\u043A \u0445\u0438\u0449\u043D\u0438\u043A \u0447\u0442\u043E \u0440\u0430\u0437\u0438\u0442 \u0441\u0432\u043E\u044E \u0434\u043E\u0431\u044B\u0447\u0443. \u041F\u043E\u043A\u0430\u0436\u0438\u0442\u0435 \u0438\u043C \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0432\u043A\u0443\u0441 \u0441\u0442\u0430\u043B\u0438!",tooltipPosition:"bottom",icon:"question",iconSize:.8,mt:-.5}),style:{textAlign:"center",background:"rgba(80, 20, 20, 1)"},children:(0,e.jsx)(t.IC,{className:"NoticeBox_red",success:!0,danger:!0,align:"center",children:u.steel.map(function(M,B){var w=M.style,T=M.row,K=M.icon_state,R=M.title,U=M.content,F=M.tooltipPosition;return!I[B]&&(0,e.jsx)(t.c_,{className:I[B]?P[0].disabled:P[0].red,height:"64px",imageSize:90,width:"64px",fontSize:"10px",dmIcon:C,dmIconState:K,tooltip:U,tooltipPosition:F,disabled:I[B],onClick:function(){return j("give_ability",{style:w,row:T})},children:R},w)})})})})]}):(0,e.jsx)(t.IC,{className:"NoticeBox_red",success:!0,danger:!0,align:"center",children:"\u0412\u0441\u0435 \u043C\u043E\u0434\u0443\u043B\u0438 \u0432\u044B\u0431\u0440\u0430\u043D\u044B"})})},l=function(g){var p=(0,n.Oc)(),j=p.act,x=p.data;return(0,e.jsx)(t.wn,{title:"\u0423\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435 \u0448\u0430\u0442\u0442\u043B\u043E\u043C",mr:"5px",style:{textAlign:"center"},buttons:(0,e.jsx)(t.$n,{tooltip:"\u041F\u0430\u043D\u0435\u043B\u044C \u0434\u043B\u044F \u0443\u0434\u0430\u043B\u0451\u043D\u043D\u043E\u0433\u043E \u0443\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435 \u0432\u0430\u0448\u0438\u043C \u043B\u0438\u0447\u043D\u044B\u043C \u0448\u0430\u0442\u0442\u043B\u043E\u043C. \u0422\u0430\u043A \u0436\u0435 \u043F\u043E\u043A\u0430\u0437\u044B\u0432\u0430\u0435\u0442 \u0432\u0430\u0448\u0443 \u0442\u0435\u043A\u0443\u0449\u0443\u044E \u043F\u043E\u0437\u0438\u0446\u0438\u044E \u0438 \u043F\u043E\u0437\u0438\u0446\u0438\u044E \u0441\u0430\u043C\u043E\u0433\u043E \u0448\u0430\u0442\u0442\u043B\u0430!",tooltipPosition:"right",icon:"question",iconSize:.8,mt:-.5}),children:(0,e.jsx)(t.so,{ml:2,children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"\u041F\u043E\u0437\u0438\u0446\u0438\u044F",children:x.status?x.status:(0,e.jsx)(t.IC,{color:"red",children:"Shuttle Missing"})}),(0,e.jsx)(t.Ki.Item,{label:"\u0412\u0430\u0448\u0430 \u043F\u043E\u0437\u0438\u0446\u0438\u044F",children:x.player_pos}),!!x.shuttle&&(!!x.docking_ports_len&&(0,e.jsx)(t.Ki.Item,{label:"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u0448\u0430\u0442\u0442\u043B",children:x.docking_ports.map(function(C){return(0,e.jsx)(t.$n,{icon:"chevron-right",onClick:function(){return j("move",{move:C.id})},children:C.name},C.name)})})||(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.Ki.Item,{label:"Status",color:"red",children:(0,e.jsx)(t.IC,{color:"red",children:"Shuttle Locked"})}),!!x.admin_controlled&&(0,e.jsx)(t.Ki.Item,{label:"\u0410\u0432\u0442\u043E\u0440\u0438\u0437\u0430\u0446\u0438\u044F",children:(0,e.jsx)(t.$n,{icon:"exclamation-circle",disabled:!x.status,onClick:function(){return j("request")},children:"\u0417\u0430\u043F\u0440\u043E\u0441\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0440\u0438\u0437\u0430\u0446\u0438\u044E"})})]}))]})})})},c=function(g){var p=(0,n.Oc)().data,j=p.randomPercent,x=p.actionsIcon,C=p.color_choice;return(0,e.jsx)(t.wn,{stretchContents:!0,children:(0,e.jsx)(t.z2,{color:C,value:j,minValue:0,maxValue:100,children:(0,e.jsx)("center",{children:(0,e.jsxs)(t.IC,{className:"NoticeBox_"+C,mt:1,children:[(0,e.jsx)(t.Hg,{height:"64px",width:"64px",icon:x,icon_state:"spider_"+C,style:{marginLeft:"-6px"}}),(0,e.jsx)("br",{}),"Loading ",j+"%"]})})})})},h=function(g){"use strict";b(p,g);function p(x){var C;return C=g.call(this,x)||this,C.timer=null,C.state={lastText:"text do be there",currentDisplay:[]},C}var j=p.prototype;return j.tick=function(){var C=this,I=C.props,P=C.state;if(I.allMessages!==P.lastText&&!I.end_terminal){var M=P.currentDisplay;M.push(I.allMessages),this.setState({lastText:I.allMessages,currentDisplay:M})}else I.end_terminal&&(clearTimeout(this.timer),setTimeout(I.onFinished,I.finishedTimeout))},j.componentDidMount=function(){var C=this,I=this.props,P=I.linesPerSecond,M=P===void 0?2.5:P;this.timer=setInterval(function(){return C.tick()},1e3/M)},j.componentWillUnmount=function(){clearTimeout(this.timer)},j.render=function(){return(0,e.jsx)(t.az,{m:1,children:this.state.currentDisplay.map(function(C){return(0,e.jsxs)(s.Fragment,{children:[C,(0,e.jsx)("br",{})]},C)})})},p}(s.Component)},8513:(q,S,r)=>{"use strict";r.r(S),r.d(S,{PollManagement:()=>b});var e=r(1131),s=r(360),n=r(7003),t=r(5180),a=r(3521),b=function(y){var u=(0,s.Oc)(),f=u.act,m=u.data,d=m.poll,v=m.has_poll,_=m.poll_types,l=m.interval_types,c=(0,n.useState)(d.question),h=c[0],g=c[1],p=(0,n.useState)(d.poll_type),j=p[0],x=p[1],C=(0,n.useState)(d.options_allowed),I=C[0],P=C[1],M=(0,n.useState)(d.admin_only),B=M[0],w=M[1],T=(0,n.useState)(d.dont_show),K=T[0],R=T[1],U=(0,n.useState)(d.allow_revoting),F=U[0],$=U[1],W=(0,n.useState)(d.interval),N=W[0],Z=W[1],ie=(0,n.useState)(d.duration),Q=ie[0],V=ie[1],G=(0,n.useState)(d.start_datetime),le=G[0],xe=G[1],de=(0,n.useState)(d.end_datetime),me=de[0],pe=de[1],Me=(0,n.useState)(d.subtitle),Ke=Me[0],Le=Me[1],Se=(0,n.useState)(d.minimum_playtime),ln=Se[0],ze=Se[1],We=(0,n.useState)(d.run_duration),fn=We[0],Ze=We[1],In=(0,n.useState)(d.run_start),En=In[0],Yn=In[1],Xn=(0,n.useState)(d.clear_votes),ct=Xn[0],Ot=Xn[1];return(0,e.jsx)(a.p8,{title:"Poll Management",width:600,height:640,children:(0,e.jsxs)(a.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(t.wn,{title:"Poll Creation",children:[(0,e.jsx)(t.az,{children:(0,e.jsxs)(t.BJ,{vertical:!0,children:[(0,e.jsxs)(t.BJ,{children:[(0,e.jsx)(t.BJ.Item,{children:"Question:"}),(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.pd,{width:40,placeholder:"Question goes here",value:h,onChange:g})})]}),(0,e.jsx)("br",{}),(0,e.jsxs)(t.BJ,{mb:2,children:[(0,e.jsx)(t.az,{mr:45,children:"Choice:"})," ",(0,e.jsx)(t.ms,{width:20,disabled:v,options:_,selected:j,onSelected:function(_t){return x(_t)}})]}),v&&j!=="Multiple Choice"?null:(0,e.jsxs)(t.az,{inline:!0,children:["Mult-choice options allowed:",(0,e.jsx)(t.$n.Checkbox,{checked:I,onClick:function(){return P(!I)}})]}),(0,e.jsx)("br",{}),(0,e.jsxs)(t.BJ,{mb:2,children:[(0,e.jsx)(t.$n.Checkbox,{checked:B,onClick:function(){return w(!B)},children:"Admin only"}),(0,e.jsx)(t.$n.Checkbox,{checked:K,onClick:function(){return R(!K)},children:"Don't show"}),(0,e.jsx)(t.$n.Checkbox,{checked:F,onClick:function(){return $(!F)},children:"Allow revoting"})]}),(0,e.jsxs)(t.BJ,{mb:2,children:[(0,e.jsx)(t.BJ.Item,{children:"Min. playtime to vote (in hours):"}),(0,e.jsx)(t.BJ.Item,{inline:!0,ml:1,children:(0,e.jsx)(t.Q7,{width:3,minValue:0,step:1,maxValue:1/0,value:ln,onChange:function(_t){return ze(_t)}})})]})]})}),(0,e.jsxs)(t.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(t.BJ.Item,{width:"50%",children:(0,e.jsxs)(t.BJ,{mb:2,children:[(0,e.jsx)(t.BJ.Item,{children:"Duration"}),(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.$n,{icon:"chevron-right",onClick:function(){return Ze(!fn)},children:fn?"Run for":"Run until"})}),fn?(0,e.jsx)(t.BJ.Item,{children:(0,e.jsxs)(t.BJ,{children:[(0,e.jsx)(t.Q7,{width:3,minValue:0,maxValue:100,step:1,value:Q,onChange:function(_t){return V(_t)}}),(0,e.jsx)(t.ms,{options:l,selected:N,onSelected:function(_t){return Z(_t)}})]})}):(0,e.jsx)(t.BJ.Item,{children:(0,e.jsxs)(t.BJ,{children:[(0,e.jsx)(t.BJ.Item,{children:"Until:"}),(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.pd,{width:15,placeholder:"YYYY-MM-DD HH:MM:SS",value:me||"1970-01-01 00:00:01",onChange:pe})})]})})]})}),(0,e.jsx)(t.BJ.Item,{mb:5,children:(0,e.jsxs)(t.BJ,{children:[(0,e.jsx)(t.az,{children:"Start"}),(0,e.jsx)(t.$n,{onClick:function(){return Yn(!En)},children:En?"Now":"At datetime"}),En?null:(0,e.jsx)(t.pd,{width:15,placeholder:"YYYY-MM-DD HH:MM:SS",value:le||"1970-01-01 00:00:01",onChange:xe})]})})]}),(0,e.jsxs)(t.BJ,{fill:!0,children:[(0,e.jsxs)(t.BJ.Item,{children:["Subtitle (Optional)",(0,e.jsx)("br",{}),(0,e.jsx)(t.fs,{height:10,width:20,value:Ke,onChange:Le})]}),(0,e.jsx)(t.BJ.Item,{children:v?(0,e.jsxs)(t.BJ,{vertical:!0,children:[(0,e.jsxs)(t.BJ.Item,{children:[(0,e.jsx)(t.$n,{onClick:function(){return f("clear_poll_votes")},children:"Clear poll votes"}),d.poll_votes," players have voted"]}),(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.$n.Checkbox,{checked:ct,onClick:function(){return Ot(!ct)},children:"Clear votes on edit"})}),(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.$n,{p:2,onClick:function(){return f("submit_poll",{question:h,poll_type:j,options_allowed:I,admin_only:B,dont_show:K,allow_revoting:F,interval:N,duration:Q,start_datetime:le,end_datetime:me,subtitle:Ke,poll_votes:ln,run_duration:fn,run_start:En,clear_votes:ct})},children:"Submit Poll"})})]}):(0,e.jsx)(t.BJ,{children:(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.$n,{p:1,m:2,onClick:function(){return f("initialize_poll",{question:h,poll_type:j,options_allowed:I,admin_only:B,dont_show:K,allow_revoting:F,interval:N,duration:Q,start_datetime:le,end_datetime:me,subtitle:Ke,poll_votes:ln,run_duration:fn,run_start:En,clear_votes:ct})},children:"Initliaze Question"})})})})]})]}),(0,e.jsx)(t.wn,{title:"Questions Manage",children:v?(0,e.jsx)(O,{}):(0,e.jsx)(t.az,{children:"First enter the poll question details and press Initialize Question. Then add poll options and press Submit Poll to save and create the question and options. No options are required for Text Reply polls."})})]})})},O=function(y){var u=(0,s.Oc)(),f=u.act,m=u.data,d=m.poll,v=d.options,_=(0,n.useState)(null),l=_[0],c=_[1];return(0,e.jsxs)(t.BJ,{children:[(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.$n,{onClick:function(){return f("add_poll_option")},children:"Add Option"})}),(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.Ki,{children:v.map(function(h){return(0,e.jsxs)(t.Ki.Item,{label:"Option "+h.num,children:[h.text,l==="Rating"?(0,e.jsxs)(t.az,{children:["Minimum value: ",h.min_val," | Maximum value:"," ",h.max_val,"Minimum description: ",h.desc_min,"Middle description: ",h.desc_mid,"Maximum description: ",h.desc_max]}):null,(0,e.jsx)("br",{}),(0,e.jsx)(t.$n,{onClick:function(){return f("edit_poll_option",{option_to_edit:h.id})},children:"Edit"}),(0,e.jsx)(t.$n,{onClick:function(){return f("delete_poll_option",{option_to_delete:h.id})},children:"Delete"}),(0,e.jsx)(t.cG,{})]},"option")})})})]})}},8523:(q,S,r)=>{"use strict";r.d(S,{IG:()=>d});/** * Browser-agnostic abstraction of key-value web storage. * * @file * @copyright 2020 Aleksej Komarov * @license MIT * - */function e(v,_,l,c,h,g,p){try{var j=v[g](p),x=j.value}catch(C){l(C);return}j.done?_(x):Promise.resolve(x).then(c,h)}function s(v){return function(){var _=this,l=arguments;return new Promise(function(c,h){var g=v.apply(_,l);function p(x){e(g,c,h,p,j,"next",x)}function j(x){e(g,c,h,p,j,"throw",x)}p(void 0)})}}function n(v,_){var l,c,h,g={label:0,sent:function(){if(h[0]&1)throw h[1];return h[1]},trys:[],ops:[]},p=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return p.next=j(0),p.throw=j(1),p.return=j(2),typeof Symbol=="function"&&(p[Symbol.iterator]=function(){return this}),p;function j(C){return function(I){return x([C,I])}}function x(C){if(l)throw new TypeError("Generator is already executing.");for(;p&&(p=0,C[0]&&(g=0)),g;)try{if(l=1,c&&(h=C[0]&2?c.return:C[0]?c.throw||((h=c.return)&&h.call(c),0):c.next)&&!(h=h.call(c,C[1])).done)return h;switch(c=0,h&&(C=[C[0]&2,h.value]),C[0]){case 0:case 1:h=C;break;case 4:return g.label++,{value:C[1],done:!1};case 5:g.label++,c=C[1],C=[0];continue;case 7:C=g.ops.pop(),g.trys.pop();continue;default:if(h=g.trys,!(h=h.length>0&&h[h.length-1])&&(C[0]===6||C[0]===2)){g=0;continue}if(C[0]===3&&(!h||C[1]>h[0]&&C[1]{"use strict";r.r(S),r.d(S,{DelayHelper:()=>a});var e=r(1131),s=r(9818),n=r(360),t=r(5180),a=function(O){var b=(0,n.Oc)(),y=b.act,u=b.data,f=u.delays,m=u.rev_delays,d=O.delay_list,v=O.reverse,_=v===void 0?!1:v;return(0,e.jsx)(t.Wx,{wrap:!0,style:{flexDirection:"column",flexWrap:"wrap",height:"7.5em",justifyContent:"start"},children:d.map(function(l,c){return(0,e.jsx)(t.Wx.Item,{label:l.title,style:{flexDirection:"column",minWidth:"0"},children:(0,e.jsx)(t.N6,{color:(_?m[c+1]:f[c+1])/10>10?"orange":"default",format:function(h){return(0,s.Mg)(h,2)},maxValue:10,minValue:0,inline:!0,onDrag:function(h,g){y("editTiming",{reverse:_,timer:""+(c+1),value:Math.max(g,0)})},size:1,step:.02,unclamped:!0,unit:"s",value:(_?m[c+1]:f[c+1])/10})},c)})})}},8589:(q,S,r)=>{"use strict";r.d(S,{Am:()=>F,D9:()=>m,QC:()=>v,RV:()=>a,SX:()=>B,ss:()=>h});/** + */function e(v,_,l,c,h,g,p){try{var j=v[g](p),x=j.value}catch(C){l(C);return}j.done?_(x):Promise.resolve(x).then(c,h)}function s(v){return function(){var _=this,l=arguments;return new Promise(function(c,h){var g=v.apply(_,l);function p(x){e(g,c,h,p,j,"next",x)}function j(x){e(g,c,h,p,j,"throw",x)}p(void 0)})}}function n(v,_){var l,c,h,g={label:0,sent:function(){if(h[0]&1)throw h[1];return h[1]},trys:[],ops:[]},p=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return p.next=j(0),p.throw=j(1),p.return=j(2),typeof Symbol=="function"&&(p[Symbol.iterator]=function(){return this}),p;function j(C){return function(I){return x([C,I])}}function x(C){if(l)throw new TypeError("Generator is already executing.");for(;p&&(p=0,C[0]&&(g=0)),g;)try{if(l=1,c&&(h=C[0]&2?c.return:C[0]?c.throw||((h=c.return)&&h.call(c),0):c.next)&&!(h=h.call(c,C[1])).done)return h;switch(c=0,h&&(C=[C[0]&2,h.value]),C[0]){case 0:case 1:h=C;break;case 4:return g.label++,{value:C[1],done:!1};case 5:g.label++,c=C[1],C=[0];continue;case 7:C=g.ops.pop(),g.trys.pop();continue;default:if(h=g.trys,!(h=h.length>0&&h[h.length-1])&&(C[0]===6||C[0]===2)){g=0;continue}if(C[0]===3&&(!h||C[1]>h[0]&&C[1]{"use strict";r.r(S),r.d(S,{DelayHelper:()=>a});var e=r(1131),s=r(9818),n=r(360),t=r(5180),a=function(b){var O=(0,n.Oc)(),y=O.act,u=O.data,f=u.delays,m=u.rev_delays,d=b.delay_list,v=b.reverse,_=v===void 0?!1:v;return(0,e.jsx)(t.Wx,{wrap:!0,style:{flexDirection:"column",flexWrap:"wrap",height:"7.5em",justifyContent:"start"},children:d.map(function(l,c){return(0,e.jsx)(t.Wx.Item,{label:l.title,style:{flexDirection:"column",minWidth:"0"},children:(0,e.jsx)(t.N6,{color:(_?m[c+1]:f[c+1])/10>10?"orange":"default",format:function(h){return(0,s.Mg)(h,2)},maxValue:10,minValue:0,inline:!0,onDrag:function(h,g){y("editTiming",{reverse:_,timer:""+(c+1),value:Math.max(g,0)})},size:1,step:.02,unclamped:!0,unit:"s",value:(_?m[c+1]:f[c+1])/10})},c)})})}},8589:(q,S,r)=>{"use strict";r.d(S,{Am:()=>F,D9:()=>m,QC:()=>v,RV:()=>a,SX:()=>B,ss:()=>h});/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var e=1e-4,s=null,n=function($,W,N){return W===void 0&&(W=0),N===void 0&&(N=Math.pow(10,W)),Math.round(N*$)/N},t={grad:360/400,turn:360,rad:360/(Math.PI*2)},a=function($){return B(O($))},O=function($){return $[0]==="#"&&($=$.substring(1)),$.length<6?{r:parseInt($[0]+$[0],16),g:parseInt($[1]+$[1],16),b:parseInt($[2]+$[2],16),a:$.length===4?n(parseInt($[3]+$[3],16)/255,2):1}:{r:parseInt($.substring(0,2),16),g:parseInt($.substring(2,4),16),b:parseInt($.substring(4,6),16),a:$.length===8?n(parseInt($.substring(6,8),16)/255,2):1}},b=function($,W){return W===void 0&&(W="deg"),Number($)*(t[W]||1)},y=function($){var W=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i,N=W.exec($);return N?f({h:b(N[1],N[2]),s:Number(N[3]),l:Number(N[4]),a:N[5]===void 0?1:Number(N[5])/(N[6]?100:1)}):{h:0,s:0,v:0,a:1}},u=null,f=function($){var W=$.h,N=$.s,Z=$.l,ie=$.a;return N*=(Z<50?Z:100-Z)/100,{h:W,s:N>0?2*N/(Z+N)*100:0,v:Z+N,a:ie}},m=function($){return M(h($))},d=function($){var W=$.h,N=$.s,Z=$.v,ie=$.a,Q=(200-N)*Z/100;return{h:n(W),s:n(Q>0&&Q<200?N*Z/100/(Q<=100?Q:200-Q)*100:0),l:n(Q/2),a:n(ie,2)}},v=function($){var W=d($),N=W.h,Z=W.s,ie=W.l;return"hsl("+N+", "+Z+"%, "+ie+"%)"},_=function($){var W=w($),N=W.h,Z=W.s,ie=W.v;return"hsv("+N+", "+Z+"%, "+ie+"%)"},l=function($){var W=w($),N=W.h,Z=W.s,ie=W.v,Q=W.a;return"hsva("+N+", "+Z+"%, "+ie+"%, "+Q+")"},c=function($){var W=d($),N=W.h,Z=W.s,ie=W.l,Q=W.a;return"hsla("+N+", "+Z+"%, "+ie+"%, "+Q+")"},h=function($){var W=$.h,N=$.s,Z=$.v,ie=$.a;W=W/360*6,N=N/100,Z=Z/100;var Q=Math.floor(W),V=Z*(1-N),G=Z*(1-(W-Q)*N),le=Z*(1-(1-W+Q)*N),xe=Q%6;return{r:[Z,G,V,V,le,Z][xe]*255,g:[le,Z,Z,G,V,V][xe]*255,b:[V,V,le,Z,Z,G][xe]*255,a:n(ie,2)}},g=function($){var W=h($),N=W.r,Z=W.g,ie=W.b;return"rgb("+n(N)+", "+n(Z)+", "+n(ie)+")"},p=function($){var W=h($),N=W.r,Z=W.g,ie=W.b,Q=W.a;return"rgba("+n(N)+", "+n(Z)+", "+n(ie)+", "+n(Q,2)+")"},j=function($){var W=/hsva?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i,N=W.exec($);return N?w({h:b(N[1],N[2]),s:Number(N[3]),v:Number(N[4]),a:N[5]===void 0?1:Number(N[5])/(N[6]?100:1)}):{h:0,s:0,v:0,a:1}},x=null,C=function($){var W=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i,N=W.exec($);return N?B({r:Number(N[1])/(N[2]?100/255:1),g:Number(N[3])/(N[4]?100/255:1),b:Number(N[5])/(N[6]?100/255:1),a:N[7]===void 0?1:Number(N[7])/(N[8]?100:1)}):{h:0,s:0,v:0,a:1}},I=null,P=function($){var W=$.toString(16);return W.length<2?"0"+W:W},M=function($){var W=$.r,N=$.g,Z=$.b,ie=$.a,Q=ie<1?P(n(ie*255)):"";return"#"+P(n(W))+P(n(N))+P(n(Z))+Q},B=function($){var W=$.r,N=$.g,Z=$.b,ie=$.a,Q=Math.max(W,N,Z),V=Q-Math.min(W,N,Z),G=V?Q===W?(N-Z)/V:Q===N?2+(Z-W)/V:4+(W-N)/V:0;return{h:60*(G<0?G+6:G),s:Q?V/Q*100:0,v:Q/255*100,a:ie}},w=function($){return{h:n($.h),s:n($.s),v:n($.v),a:n($.a,2)}},T=function($){var W=$.r,N=$.g,Z=$.b;return{r:W,g:N,b:Z}},K=function($){var W=$.h,N=$.s,Z=$.l;return{h:W,s:N,l:Z}},R=function($){var W=w($),N=W.h,Z=W.s,ie=W.v;return{h:N,s:Z,v:ie}},U=/^#?([0-9A-F]{3,8})$/i,F=function($,W){var N=U.exec($),Z=N?N[1].length:0;return Z===3||Z===6||!!W&&Z===4||!!W&&Z===8}},8593:(q,S,r)=>{"use strict";r.r(S),r.d(S,{TurbineComputer:()=>b});var e=r(1131),s=r(360),n=r(5180),t=r(8477),a=r(3521),O=r(9818),b=function(f){var m=(0,s.Oc)(),d=m.act,v=m.data,_=v.compressor,l=v.compressor_broken,c=v.turbine,h=v.turbine_broken,g=v.online,p=v.throttle,j=v.bearingDamage,x=!!(_&&!l&&c&&!h);return(0,e.jsx)(a.p8,{width:400,height:415,children:(0,e.jsxs)(a.p8.Content,{children:[(0,e.jsx)(n.wn,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:g?"power-off":"times",selected:g,disabled:!x,onClick:function(){return d("toggle_power")},children:g?"Online":"Offline"}),(0,e.jsx)(n.$n,{icon:"times",onClick:function(){return d("disconnect")},children:"Disconnect"})]}),children:x?(0,e.jsx)(u,{}):(0,e.jsx)(y,{})}),j>=100?(0,e.jsx)(n.BJ,{mb:"30px",children:(0,e.jsx)(n.BJ.Item,{bold:!0,color:"red",fontSize:5,textAlign:"center",children:"Bearings Inoperable, Repair Required"})}):(0,e.jsx)(n.wn,{title:"Throttle",children:x?(0,e.jsx)(n.N6,{size:3,value:p,unit:"%",minValue:0,maxValue:100,step:1,stepPixelSize:1,onDrag:function(C,I){return d("set_throttle",{throttle:I})}}):""})]})})},y=function(f){var m=(0,s.Oc)().data,d=m.compressor,v=m.compressor_broken,_=m.turbine,l=m.turbine_broken;return(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Compressor Status",color:!d||v?"bad":"good",children:v?d?"Offline":"Missing":"Online"}),(0,e.jsx)(n.Ki.Item,{label:"Turbine Status",color:!_||l?"bad":"good",children:l?_?"Offline":"Missing":"Online"})]})},u=function(f){var m=(0,s.Oc)().data,d=m.rpm,v=m.temperature,_=m.power,l=m.bearingDamage,c=m.preBurnTemperature,h=m.postBurnTemperature,g=m.thermalEfficiency,p=m.compressionRatio,j=m.gasThroughput;return(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Turbine Speed",children:[d," RPM"]}),(0,e.jsxs)(n.Ki.Item,{label:"Effective Compression Ratio",children:[p,":1"]}),(0,e.jsxs)(n.Ki.Item,{label:"Gasmix Pre Burn Temp",children:[c," K"]}),(0,e.jsxs)(n.Ki.Item,{label:"Gasmix Post Burn Temp",children:[h," K"]}),(0,e.jsxs)(n.Ki.Item,{label:"Compressor Temp",children:[v," K"]}),(0,e.jsxs)(n.Ki.Item,{label:"Thermal Efficiency",children:[g*100," %"]}),(0,e.jsxs)(n.Ki.Item,{label:"Gas Throughput",children:[j/2," mol/s"]}),(0,e.jsx)(n.Ki.Item,{label:"Generated Power",children:(0,t.d5)(_)}),(0,e.jsx)(n.Ki.Item,{label:"Bearing Damage",children:(0,e.jsx)(n.z2,{value:l,minValue:0,maxValue:100,ranges:{good:[-1/0,60],average:[60,90],bad:[90,1/0]},children:(0,O.Mg)(l)+"%"})})]})}},8610:(q,S,r)=>{"use strict";r.r(S),r.d(S,{RoboticsControlConsole:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(b){var y=(0,s.Oc)(),u=y.act,f=y.data,m=f.safety,d=f.show_detonate_all,v=f.cyborgs,_=v===void 0?[]:v;return(0,e.jsx)(t.p8,{width:500,height:460,children:(0,e.jsxs)(t.p8.Content,{scrollable:!0,children:[!!d&&(0,e.jsxs)(n.wn,{title:"Emergency Self Destruct",children:[(0,e.jsx)(n.$n,{icon:m?"lock":"unlock",selected:m,onClick:function(){return u("arm",{})},children:m?"Disable Safety":"Enable Safety"}),(0,e.jsx)(n.$n,{icon:"bolt",disabled:m,color:"bad",onClick:function(){return u("nuke",{})},children:"Destroy ALL Cyborgs"})]}),(0,e.jsx)(O,{cyborgs:_})]})})},O=function(b){var y=b.cyborgs,u=(0,s.Oc)(),f=u.act,m=u.data;return y.length?y.map(function(d){return(0,e.jsx)(n.wn,{title:d.name,buttons:(0,e.jsxs)(e.Fragment,{children:[!!d.hackable&&!d.emagged&&(0,e.jsx)(n.$n,{icon:"terminal",color:"bad",onClick:function(){return f("hackbot",{uid:d.uid})},children:"Hack"}),(0,e.jsx)(n.$n.Confirm,{icon:d.locked_down?"unlock":"lock",color:d.locked_down?"good":"default",disabled:!m.auth,onClick:function(){return f("stopbot",{uid:d.uid})},children:d.locked_down?"Release":"Lockdown"}),(0,e.jsx)(n.$n.Confirm,{icon:"bolt",disabled:!m.auth,color:"bad",onClick:function(){return f("killbot",{uid:d.uid})},children:"Self-destruct"})]}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Status",children:(0,e.jsx)(n.az,{color:d.status?"bad":d.locked_down?"average":"good",children:d.status?"Not Responding":d.locked_down?"Locked Down":"Nominal"})}),(0,e.jsx)(n.Ki.Item,{label:"Location",children:(0,e.jsx)(n.az,{children:d.locstring})}),(0,e.jsx)(n.Ki.Item,{label:"Integrity",children:(0,e.jsx)(n.z2,{color:d.health>50?"good":"bad",value:d.health/100})}),typeof d.charge=="number"&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.Ki.Item,{label:"Cell Charge",children:(0,e.jsx)(n.z2,{color:d.charge>30?"good":"bad",value:d.charge/100})}),(0,e.jsx)(n.Ki.Item,{label:"Cell Capacity",children:(0,e.jsx)(n.az,{color:d.cell_capacity<3e4?"average":"good",children:d.cell_capacity})})]})||(0,e.jsx)(n.Ki.Item,{label:"Cell",children:(0,e.jsx)(n.az,{color:"bad",children:"No Power Cell"})}),!!d.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:d.module}),(0,e.jsx)(n.Ki.Item,{label:"Master AI",children:(0,e.jsx)(n.az,{color:d.synchronization?"default":"average",children:d.synchronization||"None"})})]})},d.uid)}):(0,e.jsx)(n.IC,{children:"No cyborg units detected within access parameters."})}},8633:(q,S,r)=>{"use strict";r.r(S),r.d(S,{pda_security:()=>a});var e=r(1131),s=r(360),n=r(8725);function t(){return t=Object.assign||function(O){for(var b=1;b{"use strict";r.r(S),r.d(S,{AlertModal:()=>u});var e=r(1131),s=r(7003),n=r(5180),t=r(1808),a=r(360),O=r(3521),b=r(3384),y=function(d){return d[d.Increment=1]="Increment",d[d.Decrement=-1]="Decrement",d}(y||{}),u=function(d){var v=(0,a.Oc)(),_=v.act,l=v.data,c=l.autofocus,h=l.buttons,g=h===void 0?[]:h,p=l.large_buttons,j=l.message,x=j===void 0?"":j,C=l.timeout,I=l.title,P=function(N,Z,ie){Z=ie+"px "+Z;var Q=document.createElement("canvas"),V=Q.getContext("2d");return V.font=Z,V.measureText(N).width},M=(0,s.useState)(0),B=M[0],w=M[1],T=345+(g.length>2?55:0),K=67/g.length+23,R=g.some(function(N){return P(N,"Verdana, Geneva",p?14:12)>T/g.length-K}),U=R&&p?20:15,F=120+(R?U*g.length:0)+(x.length>30?Math.ceil(x.length/4):0)+(x.length&&p?5:0),$=function(N){switch(N.key){case t._.Space:case t._.Enter:_("choose",{choice:g[B]});return;case t._.Left:N.preventDefault(),W(-1);return;case t._.Tab:case t._.Right:N.preventDefault(),W(1);return;default:if((0,t.KL)(N.key)){_("cancel");return}}},W=function(N){var Z=(B+N+g.length)%g.length;w(Z)};return(0,e.jsxs)(O.p8,{height:F,title:I,width:T,children:[!!C&&(0,e.jsx)(b.Loader,{value:C}),(0,e.jsx)(O.p8.Content,{onKeyDown:$,children:(0,e.jsx)(n.wn,{fill:!0,children:(0,e.jsxs)(n.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(n.BJ.Item,{m:1,children:(0,e.jsx)(n.az,{color:"label",overflow:"hidden",children:x})}),(0,e.jsxs)(n.BJ.Item,{grow:!0,children:[!!c&&(0,e.jsx)(n.y5,{}),R?(0,e.jsx)(m,{selected:B}):(0,e.jsx)(f,{selected:B})]})]})})})]})},f=function(d){var v=(0,a.Oc)(),_=v.act,l=v.data,c=l.buttons,h=c===void 0?[]:c,g=l.large_buttons,p=l.swapped_buttons,j=d.selected;return(0,e.jsx)(n.BJ,{fill:!0,justify:"space-around",reverse:!p,children:h.map(function(x,C){return(0,e.jsx)(n.BJ.Item,{grow:g?1:void 0,children:(0,e.jsx)(n.$n,{fluid:!!g,minWidth:5,onClick:function(){return _("choose",{choice:x})},overflowX:"hidden",px:2,py:g?.5:0,selected:j===C,textAlign:"center",children:g?x.toUpperCase():x})},C)})})},m=function(d){var v=(0,a.Oc)(),_=v.act,l=v.data,c=l.buttons,h=c===void 0?[]:c,g=l.large_buttons,p=l.swapped_buttons,j=d.selected;return(0,e.jsx)(n.BJ,{align:"center",fill:!0,justify:"space-around",reverse:!p,vertical:!0,children:h.map(function(x,C){return(0,e.jsx)(n.BJ.Item,{grow:!0,width:g?"100%":void 0,m:0,children:(0,e.jsx)(n.$n,{fluid:!0,minWidth:20,onClick:function(){return _("choose",{choice:x})},overflowX:"hidden",px:2,py:g?.5:0,selected:j===C,textAlign:"center",children:g?x.toUpperCase():x})},C)})})}},8711:(q,S,r)=>{"use strict";r.r(S),r.d(S,{BeakerPanel:()=>c});var e=r(1131),s=r(7003),n=r(5180),t=r(9845),a=r(360),O=r(3521);function b(){return b=Object.assign||function(h){for(var g=1;g{"use strict";r.r(S),r.d(S,{ObjectComponent:()=>m});var e=r(1131),s=r(7003),n=r(5180),t=r(185),a=r(8968),O=r(7941);function b(){return b=Object.assign||function(d){for(var v=1;v=0)&&(_[c]=d[c]);return _}function f(d,v){return f=Object.setPrototypeOf||function(l,c){return l.__proto__=c,l},f(d,v)}var m=function(d){"use strict";y(v,d);function v(l){var c;return c=d.call(this,l)||this,c.state={isDragging:!1,dragPos:null,startPos:null,lastMousePos:null},c.handleStartDrag=c.handleStartDrag.bind(c),c.handleStopDrag=c.handleStopDrag.bind(c),c.handleDrag=c.handleDrag.bind(c),c}var _=v.prototype;return _.handleStartDrag=function(c){var h=this.props,g=h.x,p=h.y;c.stopPropagation(),this.setState({lastMousePos:null,isDragging:!0,dragPos:{x:g,y:p},startPos:{x:g,y:p}}),window.addEventListener("mousemove",this.handleDrag),window.addEventListener("mouseup",this.handleStopDrag)},_.handleStopDrag=function(c){var h=this.state,g=h.dragPos,p=h.isDragging,j=this.props,x=j.index,C=j.act,I=C===void 0?a.noop:C;g&&p&&I("set_component_coordinates",{component_id:x,rel_x:this.roundToGrid(g.x),rel_y:this.roundToGrid(g.y)}),window.removeEventListener("mousemove",this.handleDrag),window.removeEventListener("mouseup",this.handleStopDrag),this.setState({isDragging:!1})},_.handleDrag=function(c){var h=this.state,g=h.dragPos,p=h.isDragging,j=h.lastMousePos,x=this.props.zoom;if(g&&p){c.preventDefault();var C=c.screenZoomX,I=c.screenZoomY,P=c.screenX,M=c.screenY,B=C||P,w=I||M;j&&this.setState({dragPos:{x:g.x-(j.x-B)*Math.pow(x,-1),y:g.y-(j.y-w)*Math.pow(x,-1)}}),this.setState({lastMousePos:{x:B,y:w}})}},_.shouldComponentUpdate=function(c,h){var g=this.props,p=g.input_ports,j=g.output_ports;return(0,t.a_)(this.props,c)||(0,t.a_)(this.state,h)||(0,t.a_)(p,c.input_ports)||(0,t.a_)(j,c.output_ports)},_.roundToGrid=function(c){return this.props.gridMode?Math.round(c/10)*10:c},_.render=function(){var c=this.props,h=c.input_ports,g=c.output_ports,p=c.name,j=c.x,x=c.y,C=c.index,I=c.category,P=I===void 0?"\u041D\u0435 \u0437\u0430\u0434\u0430\u043D\u043E":I,M=c.removable,B=c.ui_alerts,w=c.ui_buttons,T=c.locations,K=c.onPortUpdated,R=K===void 0?a.noop:K,U=c.onPortLoaded,F=U===void 0?a.noop:U,$=c.onPortMouseDown,W=$===void 0?a.noop:$,N=c.onPortRightClick,Z=N===void 0?a.noop:N,ie=c.onPortMouseUp,Q=ie===void 0?a.noop:ie,V=c.act,G=V===void 0?a.noop:V,le=c.gridMode,xe=le===void 0?!0:le,de=u(c,["input_ports","output_ports","name","x","y","index","category","removable","ui_alerts","ui_buttons","locations","onPortUpdated","onPortLoaded","onPortMouseDown","onPortRightClick","onPortMouseUp","act","gridMode"]),me=this.state,pe=me.startPos,Me=me.dragPos,Ke=[j,x],Le=Ke[0],Se=Ke[1];Me&&pe&&pe.x===Le&&pe.y===Se&&(Le=this.roundToGrid(Me.x),Se=this.roundToGrid(Me.y));var ln={onPortLoaded:F,onPortUpdated:R,onPortMouseDown:W,onPortRightClick:Z,onPortMouseUp:Q};return(0,e.jsxs)(n.az,b({className:"ObjectComponent",position:"absolute",left:""+Le+"px",top:""+Se+"px",onMouseDown:this.handleStartDrag,onMouseUp:this.handleStopDrag,style:{userSelect:"none"}},de,{children:[(0,e.jsx)(n.az,{py:1,px:1,className:(0,t.Ly)(["ObjectComponent__Titlebar","ObjectComponent__Category__"+P]),children:(0,e.jsxs)(n.BJ,{children:[(0,e.jsx)(n.BJ.Item,{grow:1,children:p}),!!w&&Object.keys(w).map(function(ze){return(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.$n,{icon:ze,compact:!0,className:"ObjectComponent__Category__"+P,onClick:function(){return G("perform_action",{component_id:C,action_name:w[ze]})}})},ze)}),!!B&&Object.keys(B).map(function(ze){return(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.$n,{className:"ObjectComponent__Category__"+P,icon:ze,compact:!0,tooltip:B[ze]})},ze)}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.$n,{icon:"info",compact:!0,className:"ObjectComponent__Category__"+P,onClick:function(ze){return G("set_examined_component",{component_id:C,x:ze.pageX,y:ze.pageY+a.ABSOLUTE_Y_OFFSET})}})}),!!M&&(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.$n,{icon:"times",compact:!0,className:"ObjectComponent__Category__"+P,onClick:function(ze){return G("detach_component",{component_id:C,ctrl:!!ze.ctrlKey})}})})]})}),(0,e.jsx)(n.az,{className:"ObjectComponent__Content",py:1,px:1,children:(0,e.jsxs)(n.BJ,{children:[(0,e.jsx)(n.BJ.Item,{grow:1,children:(0,e.jsx)(n.BJ,{vertical:!0,fill:!0,children:h.map(function(ze,We){return(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(O.Port,b({port:ze,portIndex:We+1,componentId:C,act:G},ln))},We)})})}),(0,e.jsx)(n.BJ.Item,{ml:5,children:(0,e.jsx)(n.BJ,{vertical:!0,children:g.map(function(ze,We){return(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(O.Port,b({act:G,port:ze,portIndex:We+1,componentId:C},ln,{isOutput:!0}))},We)})})})]})})]}))},v}(s.Component)},8725:(q,S,r)=>{"use strict";r.r(S),r.d(S,{SimpleRecords:()=>u});var e=r(1131),s=r(360),n=r(7003),t=r(9845),a=r(5070),O=r(1859),b=r(5180);function y(){return y=Object.assign||function(d){for(var v=1;v{"use strict";r.r(S),r.d(S,{PDA:()=>y});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=r(9160),O=r(7865),b=function(m){var d;try{d=O("./"+m+".tsx")}catch(_){if(_.code==="MODULE_NOT_FOUND")return(0,a.z)("notFound",m);throw _}var v=d[m];return v||(0,a.z)("missingExport",m)},y=function(m){var d=(0,s.Oc)().data,v=d.app,_=d.owner;if(!_)return(0,e.jsx)(t.p8,{width:350,height:105,children:(0,e.jsx)(t.p8.Content,{scrollable:!0,children:(0,e.jsx)(n.wn,{title:"Error",children:"No user data found. Please swipe an ID card."})})});var l=b(v.template);return(0,e.jsx)(t.p8,{width:600,height:650,children:(0,e.jsx)(t.p8.Content,{scrollable:!0,children:(0,e.jsxs)(n.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(u,{})}),(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(n.wn,{fill:!0,scrollable:!0,p:1,pb:0,title:(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.In,{name:v.icon,mr:1}),v.name]}),children:(0,e.jsx)(l,{})})}),(0,e.jsx)(n.BJ.Item,{mt:7.5,children:(0,e.jsx)(f,{})})]})})})},u=function(m){var d=(0,s.Oc)(),v=d.act,_=d.data,l=_.idInserted,c=_.idLink,h=_.stationTime,g=_.cartridge_name,p=_.request_cartridge_name;return(0,e.jsxs)(n.BJ,{fill:!0,children:[(0,e.jsx)(n.BJ.Item,{ml:.5,children:(0,e.jsx)(n.$n,{icon:"id-card",color:"transparent",onClick:function(){return v("Authenticate")},children:l?c:"No ID Inserted"})}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.$n,{icon:"sd-card",color:"transparent",onClick:function(){return v("Eject")},children:g?["Eject "+g]:"No Cartridge Inserted"})}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.$n,{icon:"sd-card",color:"transparent",onClick:function(){return v("Eject_Request")},children:p?["Eject "+p]:"No Request Cartridge Inserted"})}),(0,e.jsx)(n.BJ.Item,{grow:!0,textAlign:"right",bold:!0,mr:1,mt:.5,children:h})]})},f=function(m){var d=(0,s.Oc)(),v=d.act,_=d.data,l=_.app;return(0,e.jsx)(n.az,{height:"45px",className:"PDA__footer",backgroundColor:"#1b1b1b",children:(0,e.jsxs)(n.BJ,{fill:!0,children:[!!l.has_back&&(0,e.jsx)(n.BJ.Item,{basis:"33%",mr:-.5,children:(0,e.jsx)(n.$n,{fluid:!0,className:"PDA__footer__button",color:"transparent",iconColor:l.has_back?"white":"disabled",icon:"arrow-alt-circle-left-o",onClick:function(){return v("Back")}})}),(0,e.jsx)(n.BJ.Item,{basis:l.has_back?"33%":"100%",children:(0,e.jsx)(n.$n,{fluid:!0,className:"PDA__footer__button",color:"transparent",iconColor:l.is_home?"disabled":"white",icon:"home",onClick:function(){v("Home")}})})]})})}},8773:(q,S,r)=>{"use strict";r.r(S),r.d(S,{Biogenerator:()=>O});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=r(9680),O=function(f){var m=(0,s.Oc)(),d=m.data,v=m.config,_=d.processing,l=v.title;return(0,e.jsx)(t.p8,{width:390,height:595,children:(0,e.jsx)(t.p8.Content,{children:(0,e.jsxs)(n.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(a.Operating,{operating:_,name:l}),(0,e.jsx)(b,{}),(0,e.jsx)(y,{}),(0,e.jsx)(u,{})]})})})},b=function(f){var m=(0,s.Oc)().data,d=m.biomass,v=m.container,_=m.container_curr_reagents,l=m.container_max_reagents;return(0,e.jsxs)(n.wn,{title:"Storage",children:[(0,e.jsxs)(n.BJ,{children:[(0,e.jsx)(n.BJ.Item,{mr:"20px",color:"silver",children:"Biomass:"}),(0,e.jsx)(n.BJ.Item,{mr:"5px",children:d}),(0,e.jsx)(n.In,{name:"leaf",size:1.2,color:"#3d8c40"})]}),(0,e.jsxs)(n.BJ,{height:"21px",mt:"8px",align:"center",children:[(0,e.jsx)(n.BJ.Item,{mr:"10px",color:"silver",children:"Container:"}),v?(0,e.jsx)(n.z2,{value:_,maxValue:l,children:(0,e.jsx)(n.az,{textAlign:"center",children:_+" / "+l+" units"})}):(0,e.jsx)(n.BJ.Item,{children:"None"})]})]})},y=function(f){var m=(0,s.Oc)(),d=m.act,v=m.data,_=v.has_plants,l=v.container;return(0,e.jsx)(n.wn,{title:"Controls",children:(0,e.jsxs)(n.BJ,{children:[(0,e.jsx)(n.BJ.Item,{width:"30%",children:(0,e.jsx)(n.$n,{fluid:!0,textAlign:"center",icon:"power-off",disabled:!_,tooltip:_?"":"There are no plants in the biogenerator.",tooltipPosition:"top-start",onClick:function(){return d("activate")},children:"Activate"})}),(0,e.jsx)(n.BJ.Item,{width:"40%",children:(0,e.jsx)(n.$n,{fluid:!0,textAlign:"center",icon:"flask",disabled:!l,tooltip:l?"":"The biogenerator does not have a container.",tooltipPosition:"top",onClick:function(){return d("detach_container")},children:"Detach Container"})}),(0,e.jsx)(n.BJ.Item,{width:"30%",children:(0,e.jsx)(n.$n,{fluid:!0,textAlign:"center",icon:"eject",disabled:!_,tooltip:_?"":"There are no stored plants to eject.",tooltipPosition:"top-end",onClick:function(){return d("eject_plants")},children:"Eject Plants"})})]})})},u=function(f){var m=(0,s.Oc)(),d=m.act,v=m.data,_=v.biomass,l=v.product_list,c=v.container,h=(0,s.QY)("vendAmount",1),g=h[0],p=h[1],j=Object.entries(l).map(function(x,C){var I=Object.entries(x[1]).map(function(P){return P[1]});return(0,e.jsx)(n.Nt,{title:x[0],open:!0,children:I.map(function(P){return(0,e.jsxs)(n.BJ,{py:"2px",className:"candystripe",align:"center",children:[(0,e.jsx)(n.BJ.Item,{width:"50%",ml:"2px",children:P.name}),(0,e.jsxs)(n.BJ.Item,{textAlign:"right",width:"20%",children:[P.cost*g,(0,e.jsx)(n.In,{ml:"5px",name:"leaf",size:1.2,color:"#3d8c40"})]}),(0,e.jsx)(n.BJ.Item,{textAlign:"right",width:"40%",children:P.needs_container&&!c?(0,e.jsx)(n.$n,{disabled:!0,icon:"flask",tooltip:"\u0412\u0441\u0442\u0430\u0432\u044C\u0442\u0435 \u043B\u044E\u0431\u043E\u0439 \u043A\u043E\u043D\u0442\u0435\u0439\u043D\u0435\u0440 \u0434\u043B\u044F \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u044F \u044D\u0442\u043E\u0439 \u043E\u043F\u0446\u0438\u0438",children:"No containe"}):(0,e.jsx)(n.$n,{disabled:_{"use strict";r.r(S),r.d(S,{pda_notes:()=>t});var e=r(1131),s=r(360),n=r(5180),t=function(a){var O=(0,s.Oc)(),b=O.act,y=O.data,u=y.note;return(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.wn,{children:u}),(0,e.jsx)(n.$n,{icon:"pen",onClick:function(){return b("Edit")},children:"Edit"})]})}},8809:(q,S,r)=>{"use strict";/** + */var e=1e-4,s=null,n=function($,W,N){return W===void 0&&(W=0),N===void 0&&(N=Math.pow(10,W)),Math.round(N*$)/N},t={grad:360/400,turn:360,rad:360/(Math.PI*2)},a=function($){return B(b($))},b=function($){return $[0]==="#"&&($=$.substring(1)),$.length<6?{r:parseInt($[0]+$[0],16),g:parseInt($[1]+$[1],16),b:parseInt($[2]+$[2],16),a:$.length===4?n(parseInt($[3]+$[3],16)/255,2):1}:{r:parseInt($.substring(0,2),16),g:parseInt($.substring(2,4),16),b:parseInt($.substring(4,6),16),a:$.length===8?n(parseInt($.substring(6,8),16)/255,2):1}},O=function($,W){return W===void 0&&(W="deg"),Number($)*(t[W]||1)},y=function($){var W=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i,N=W.exec($);return N?f({h:O(N[1],N[2]),s:Number(N[3]),l:Number(N[4]),a:N[5]===void 0?1:Number(N[5])/(N[6]?100:1)}):{h:0,s:0,v:0,a:1}},u=null,f=function($){var W=$.h,N=$.s,Z=$.l,ie=$.a;return N*=(Z<50?Z:100-Z)/100,{h:W,s:N>0?2*N/(Z+N)*100:0,v:Z+N,a:ie}},m=function($){return M(h($))},d=function($){var W=$.h,N=$.s,Z=$.v,ie=$.a,Q=(200-N)*Z/100;return{h:n(W),s:n(Q>0&&Q<200?N*Z/100/(Q<=100?Q:200-Q)*100:0),l:n(Q/2),a:n(ie,2)}},v=function($){var W=d($),N=W.h,Z=W.s,ie=W.l;return"hsl("+N+", "+Z+"%, "+ie+"%)"},_=function($){var W=w($),N=W.h,Z=W.s,ie=W.v;return"hsv("+N+", "+Z+"%, "+ie+"%)"},l=function($){var W=w($),N=W.h,Z=W.s,ie=W.v,Q=W.a;return"hsva("+N+", "+Z+"%, "+ie+"%, "+Q+")"},c=function($){var W=d($),N=W.h,Z=W.s,ie=W.l,Q=W.a;return"hsla("+N+", "+Z+"%, "+ie+"%, "+Q+")"},h=function($){var W=$.h,N=$.s,Z=$.v,ie=$.a;W=W/360*6,N=N/100,Z=Z/100;var Q=Math.floor(W),V=Z*(1-N),G=Z*(1-(W-Q)*N),le=Z*(1-(1-W+Q)*N),xe=Q%6;return{r:[Z,G,V,V,le,Z][xe]*255,g:[le,Z,Z,G,V,V][xe]*255,b:[V,V,le,Z,Z,G][xe]*255,a:n(ie,2)}},g=function($){var W=h($),N=W.r,Z=W.g,ie=W.b;return"rgb("+n(N)+", "+n(Z)+", "+n(ie)+")"},p=function($){var W=h($),N=W.r,Z=W.g,ie=W.b,Q=W.a;return"rgba("+n(N)+", "+n(Z)+", "+n(ie)+", "+n(Q,2)+")"},j=function($){var W=/hsva?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i,N=W.exec($);return N?w({h:O(N[1],N[2]),s:Number(N[3]),v:Number(N[4]),a:N[5]===void 0?1:Number(N[5])/(N[6]?100:1)}):{h:0,s:0,v:0,a:1}},x=null,C=function($){var W=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i,N=W.exec($);return N?B({r:Number(N[1])/(N[2]?100/255:1),g:Number(N[3])/(N[4]?100/255:1),b:Number(N[5])/(N[6]?100/255:1),a:N[7]===void 0?1:Number(N[7])/(N[8]?100:1)}):{h:0,s:0,v:0,a:1}},I=null,P=function($){var W=$.toString(16);return W.length<2?"0"+W:W},M=function($){var W=$.r,N=$.g,Z=$.b,ie=$.a,Q=ie<1?P(n(ie*255)):"";return"#"+P(n(W))+P(n(N))+P(n(Z))+Q},B=function($){var W=$.r,N=$.g,Z=$.b,ie=$.a,Q=Math.max(W,N,Z),V=Q-Math.min(W,N,Z),G=V?Q===W?(N-Z)/V:Q===N?2+(Z-W)/V:4+(W-N)/V:0;return{h:60*(G<0?G+6:G),s:Q?V/Q*100:0,v:Q/255*100,a:ie}},w=function($){return{h:n($.h),s:n($.s),v:n($.v),a:n($.a,2)}},T=function($){var W=$.r,N=$.g,Z=$.b;return{r:W,g:N,b:Z}},K=function($){var W=$.h,N=$.s,Z=$.l;return{h:W,s:N,l:Z}},R=function($){var W=w($),N=W.h,Z=W.s,ie=W.v;return{h:N,s:Z,v:ie}},U=/^#?([0-9A-F]{3,8})$/i,F=function($,W){var N=U.exec($),Z=N?N[1].length:0;return Z===3||Z===6||!!W&&Z===4||!!W&&Z===8}},8593:(q,S,r)=>{"use strict";r.r(S),r.d(S,{TurbineComputer:()=>O});var e=r(1131),s=r(360),n=r(5180),t=r(8477),a=r(3521),b=r(9818),O=function(f){var m=(0,s.Oc)(),d=m.act,v=m.data,_=v.compressor,l=v.compressor_broken,c=v.turbine,h=v.turbine_broken,g=v.online,p=v.throttle,j=v.bearingDamage,x=!!(_&&!l&&c&&!h);return(0,e.jsx)(a.p8,{width:400,height:415,children:(0,e.jsxs)(a.p8.Content,{children:[(0,e.jsx)(n.wn,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:g?"power-off":"times",selected:g,disabled:!x,onClick:function(){return d("toggle_power")},children:g?"Online":"Offline"}),(0,e.jsx)(n.$n,{icon:"times",onClick:function(){return d("disconnect")},children:"Disconnect"})]}),children:x?(0,e.jsx)(u,{}):(0,e.jsx)(y,{})}),j>=100?(0,e.jsx)(n.BJ,{mb:"30px",children:(0,e.jsx)(n.BJ.Item,{bold:!0,color:"red",fontSize:5,textAlign:"center",children:"Bearings Inoperable, Repair Required"})}):(0,e.jsx)(n.wn,{title:"Throttle",children:x?(0,e.jsx)(n.N6,{size:3,value:p,unit:"%",minValue:0,maxValue:100,step:1,stepPixelSize:1,onDrag:function(C,I){return d("set_throttle",{throttle:I})}}):""})]})})},y=function(f){var m=(0,s.Oc)().data,d=m.compressor,v=m.compressor_broken,_=m.turbine,l=m.turbine_broken;return(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Compressor Status",color:!d||v?"bad":"good",children:v?d?"Offline":"Missing":"Online"}),(0,e.jsx)(n.Ki.Item,{label:"Turbine Status",color:!_||l?"bad":"good",children:l?_?"Offline":"Missing":"Online"})]})},u=function(f){var m=(0,s.Oc)().data,d=m.rpm,v=m.temperature,_=m.power,l=m.bearingDamage,c=m.preBurnTemperature,h=m.postBurnTemperature,g=m.thermalEfficiency,p=m.compressionRatio,j=m.gasThroughput;return(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Turbine Speed",children:[d," RPM"]}),(0,e.jsxs)(n.Ki.Item,{label:"Effective Compression Ratio",children:[p,":1"]}),(0,e.jsxs)(n.Ki.Item,{label:"Gasmix Pre Burn Temp",children:[c," K"]}),(0,e.jsxs)(n.Ki.Item,{label:"Gasmix Post Burn Temp",children:[h," K"]}),(0,e.jsxs)(n.Ki.Item,{label:"Compressor Temp",children:[v," K"]}),(0,e.jsxs)(n.Ki.Item,{label:"Thermal Efficiency",children:[g*100," %"]}),(0,e.jsxs)(n.Ki.Item,{label:"Gas Throughput",children:[j/2," mol/s"]}),(0,e.jsx)(n.Ki.Item,{label:"Generated Power",children:(0,t.d5)(_)}),(0,e.jsx)(n.Ki.Item,{label:"Bearing Damage",children:(0,e.jsx)(n.z2,{value:l,minValue:0,maxValue:100,ranges:{good:[-1/0,60],average:[60,90],bad:[90,1/0]},children:(0,b.Mg)(l)+"%"})})]})}},8610:(q,S,r)=>{"use strict";r.r(S),r.d(S,{RoboticsControlConsole:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(O){var y=(0,s.Oc)(),u=y.act,f=y.data,m=f.safety,d=f.show_detonate_all,v=f.cyborgs,_=v===void 0?[]:v;return(0,e.jsx)(t.p8,{width:500,height:460,children:(0,e.jsxs)(t.p8.Content,{scrollable:!0,children:[!!d&&(0,e.jsxs)(n.wn,{title:"Emergency Self Destruct",children:[(0,e.jsx)(n.$n,{icon:m?"lock":"unlock",selected:m,onClick:function(){return u("arm",{})},children:m?"Disable Safety":"Enable Safety"}),(0,e.jsx)(n.$n,{icon:"bolt",disabled:m,color:"bad",onClick:function(){return u("nuke",{})},children:"Destroy ALL Cyborgs"})]}),(0,e.jsx)(b,{cyborgs:_})]})})},b=function(O){var y=O.cyborgs,u=(0,s.Oc)(),f=u.act,m=u.data;return y.length?y.map(function(d){return(0,e.jsx)(n.wn,{title:d.name,buttons:(0,e.jsxs)(e.Fragment,{children:[!!d.hackable&&!d.emagged&&(0,e.jsx)(n.$n,{icon:"terminal",color:"bad",onClick:function(){return f("hackbot",{uid:d.uid})},children:"Hack"}),(0,e.jsx)(n.$n.Confirm,{icon:d.locked_down?"unlock":"lock",color:d.locked_down?"good":"default",disabled:!m.auth,onClick:function(){return f("stopbot",{uid:d.uid})},children:d.locked_down?"Release":"Lockdown"}),(0,e.jsx)(n.$n.Confirm,{icon:"bolt",disabled:!m.auth,color:"bad",onClick:function(){return f("killbot",{uid:d.uid})},children:"Self-destruct"})]}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Status",children:(0,e.jsx)(n.az,{color:d.status?"bad":d.locked_down?"average":"good",children:d.status?"Not Responding":d.locked_down?"Locked Down":"Nominal"})}),(0,e.jsx)(n.Ki.Item,{label:"Location",children:(0,e.jsx)(n.az,{children:d.locstring})}),(0,e.jsx)(n.Ki.Item,{label:"Integrity",children:(0,e.jsx)(n.z2,{color:d.health>50?"good":"bad",value:d.health/100})}),typeof d.charge=="number"&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.Ki.Item,{label:"Cell Charge",children:(0,e.jsx)(n.z2,{color:d.charge>30?"good":"bad",value:d.charge/100})}),(0,e.jsx)(n.Ki.Item,{label:"Cell Capacity",children:(0,e.jsx)(n.az,{color:d.cell_capacity<3e4?"average":"good",children:d.cell_capacity})})]})||(0,e.jsx)(n.Ki.Item,{label:"Cell",children:(0,e.jsx)(n.az,{color:"bad",children:"No Power Cell"})}),!!d.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:d.module}),(0,e.jsx)(n.Ki.Item,{label:"Master AI",children:(0,e.jsx)(n.az,{color:d.synchronization?"default":"average",children:d.synchronization||"None"})})]})},d.uid)}):(0,e.jsx)(n.IC,{children:"No cyborg units detected within access parameters."})}},8633:(q,S,r)=>{"use strict";r.r(S),r.d(S,{pda_security:()=>a});var e=r(1131),s=r(360),n=r(8725);function t(){return t=Object.assign||function(b){for(var O=1;O{"use strict";r.r(S),r.d(S,{AlertModal:()=>u});var e=r(1131),s=r(7003),n=r(5180),t=r(1808),a=r(360),b=r(3521),O=r(3384),y=function(d){return d[d.Increment=1]="Increment",d[d.Decrement=-1]="Decrement",d}(y||{}),u=function(d){var v=(0,a.Oc)(),_=v.act,l=v.data,c=l.autofocus,h=l.buttons,g=h===void 0?[]:h,p=l.large_buttons,j=l.message,x=j===void 0?"":j,C=l.timeout,I=l.title,P=function(N,Z,ie){Z=ie+"px "+Z;var Q=document.createElement("canvas"),V=Q.getContext("2d");return V.font=Z,V.measureText(N).width},M=(0,s.useState)(0),B=M[0],w=M[1],T=345+(g.length>2?55:0),K=67/g.length+23,R=g.some(function(N){return P(N,"Verdana, Geneva",p?14:12)>T/g.length-K}),U=R&&p?20:15,F=120+(R?U*g.length:0)+(x.length>30?Math.ceil(x.length/4):0)+(x.length&&p?5:0),$=function(N){switch(N.key){case t._.Space:case t._.Enter:_("choose",{choice:g[B]});return;case t._.Left:N.preventDefault(),W(-1);return;case t._.Tab:case t._.Right:N.preventDefault(),W(1);return;default:if((0,t.KL)(N.key)){_("cancel");return}}},W=function(N){var Z=(B+N+g.length)%g.length;w(Z)};return(0,e.jsxs)(b.p8,{height:F,title:I,width:T,children:[!!C&&(0,e.jsx)(O.Loader,{value:C}),(0,e.jsx)(b.p8.Content,{onKeyDown:$,children:(0,e.jsx)(n.wn,{fill:!0,children:(0,e.jsxs)(n.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(n.BJ.Item,{m:1,children:(0,e.jsx)(n.az,{color:"label",overflow:"hidden",children:x})}),(0,e.jsxs)(n.BJ.Item,{grow:!0,children:[!!c&&(0,e.jsx)(n.y5,{}),R?(0,e.jsx)(m,{selected:B}):(0,e.jsx)(f,{selected:B})]})]})})})]})},f=function(d){var v=(0,a.Oc)(),_=v.act,l=v.data,c=l.buttons,h=c===void 0?[]:c,g=l.large_buttons,p=l.swapped_buttons,j=d.selected;return(0,e.jsx)(n.BJ,{fill:!0,justify:"space-around",reverse:!p,children:h.map(function(x,C){return(0,e.jsx)(n.BJ.Item,{grow:g?1:void 0,children:(0,e.jsx)(n.$n,{fluid:!!g,minWidth:5,onClick:function(){return _("choose",{choice:x})},overflowX:"hidden",px:2,py:g?.5:0,selected:j===C,textAlign:"center",children:g?x.toUpperCase():x})},C)})})},m=function(d){var v=(0,a.Oc)(),_=v.act,l=v.data,c=l.buttons,h=c===void 0?[]:c,g=l.large_buttons,p=l.swapped_buttons,j=d.selected;return(0,e.jsx)(n.BJ,{align:"center",fill:!0,justify:"space-around",reverse:!p,vertical:!0,children:h.map(function(x,C){return(0,e.jsx)(n.BJ.Item,{grow:!0,width:g?"100%":void 0,m:0,children:(0,e.jsx)(n.$n,{fluid:!0,minWidth:20,onClick:function(){return _("choose",{choice:x})},overflowX:"hidden",px:2,py:g?.5:0,selected:j===C,textAlign:"center",children:g?x.toUpperCase():x})},C)})})}},8711:(q,S,r)=>{"use strict";r.r(S),r.d(S,{BeakerPanel:()=>c});var e=r(1131),s=r(7003),n=r(5180),t=r(9845),a=r(360),b=r(3521);function O(){return O=Object.assign||function(h){for(var g=1;g{"use strict";r.r(S),r.d(S,{ObjectComponent:()=>m});var e=r(1131),s=r(7003),n=r(5180),t=r(185),a=r(8968),b=r(7941);function O(){return O=Object.assign||function(d){for(var v=1;v=0)&&(_[c]=d[c]);return _}function f(d,v){return f=Object.setPrototypeOf||function(l,c){return l.__proto__=c,l},f(d,v)}var m=function(d){"use strict";y(v,d);function v(l){var c;return c=d.call(this,l)||this,c.state={isDragging:!1,dragPos:null,startPos:null,lastMousePos:null},c.handleStartDrag=c.handleStartDrag.bind(c),c.handleStopDrag=c.handleStopDrag.bind(c),c.handleDrag=c.handleDrag.bind(c),c}var _=v.prototype;return _.handleStartDrag=function(c){var h=this.props,g=h.x,p=h.y;c.stopPropagation(),this.setState({lastMousePos:null,isDragging:!0,dragPos:{x:g,y:p},startPos:{x:g,y:p}}),window.addEventListener("mousemove",this.handleDrag),window.addEventListener("mouseup",this.handleStopDrag)},_.handleStopDrag=function(c){var h=this.state,g=h.dragPos,p=h.isDragging,j=this.props,x=j.index,C=j.act,I=C===void 0?a.noop:C;g&&p&&I("set_component_coordinates",{component_id:x,rel_x:this.roundToGrid(g.x),rel_y:this.roundToGrid(g.y)}),window.removeEventListener("mousemove",this.handleDrag),window.removeEventListener("mouseup",this.handleStopDrag),this.setState({isDragging:!1})},_.handleDrag=function(c){var h=this.state,g=h.dragPos,p=h.isDragging,j=h.lastMousePos,x=this.props.zoom;if(g&&p){c.preventDefault();var C=c.screenZoomX,I=c.screenZoomY,P=c.screenX,M=c.screenY,B=C||P,w=I||M;j&&this.setState({dragPos:{x:g.x-(j.x-B)*Math.pow(x,-1),y:g.y-(j.y-w)*Math.pow(x,-1)}}),this.setState({lastMousePos:{x:B,y:w}})}},_.shouldComponentUpdate=function(c,h){var g=this.props,p=g.input_ports,j=g.output_ports;return(0,t.a_)(this.props,c)||(0,t.a_)(this.state,h)||(0,t.a_)(p,c.input_ports)||(0,t.a_)(j,c.output_ports)},_.roundToGrid=function(c){return this.props.gridMode?Math.round(c/10)*10:c},_.render=function(){var c=this.props,h=c.input_ports,g=c.output_ports,p=c.name,j=c.x,x=c.y,C=c.index,I=c.category,P=I===void 0?"\u041D\u0435 \u0437\u0430\u0434\u0430\u043D\u043E":I,M=c.removable,B=c.ui_alerts,w=c.ui_buttons,T=c.locations,K=c.onPortUpdated,R=K===void 0?a.noop:K,U=c.onPortLoaded,F=U===void 0?a.noop:U,$=c.onPortMouseDown,W=$===void 0?a.noop:$,N=c.onPortRightClick,Z=N===void 0?a.noop:N,ie=c.onPortMouseUp,Q=ie===void 0?a.noop:ie,V=c.act,G=V===void 0?a.noop:V,le=c.gridMode,xe=le===void 0?!0:le,de=u(c,["input_ports","output_ports","name","x","y","index","category","removable","ui_alerts","ui_buttons","locations","onPortUpdated","onPortLoaded","onPortMouseDown","onPortRightClick","onPortMouseUp","act","gridMode"]),me=this.state,pe=me.startPos,Me=me.dragPos,Ke=[j,x],Le=Ke[0],Se=Ke[1];Me&&pe&&pe.x===Le&&pe.y===Se&&(Le=this.roundToGrid(Me.x),Se=this.roundToGrid(Me.y));var ln={onPortLoaded:F,onPortUpdated:R,onPortMouseDown:W,onPortRightClick:Z,onPortMouseUp:Q};return(0,e.jsxs)(n.az,O({className:"ObjectComponent",position:"absolute",left:""+Le+"px",top:""+Se+"px",onMouseDown:this.handleStartDrag,onMouseUp:this.handleStopDrag,style:{userSelect:"none"}},de,{children:[(0,e.jsx)(n.az,{py:1,px:1,className:(0,t.Ly)(["ObjectComponent__Titlebar","ObjectComponent__Category__"+P]),children:(0,e.jsxs)(n.BJ,{children:[(0,e.jsx)(n.BJ.Item,{grow:1,children:p}),!!w&&Object.keys(w).map(function(ze){return(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.$n,{icon:ze,compact:!0,className:"ObjectComponent__Category__"+P,onClick:function(){return G("perform_action",{component_id:C,action_name:w[ze]})}})},ze)}),!!B&&Object.keys(B).map(function(ze){return(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.$n,{className:"ObjectComponent__Category__"+P,icon:ze,compact:!0,tooltip:B[ze]})},ze)}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.$n,{icon:"info",compact:!0,className:"ObjectComponent__Category__"+P,onClick:function(ze){return G("set_examined_component",{component_id:C,x:ze.pageX,y:ze.pageY+a.ABSOLUTE_Y_OFFSET})}})}),!!M&&(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.$n,{icon:"times",compact:!0,className:"ObjectComponent__Category__"+P,onClick:function(ze){return G("detach_component",{component_id:C,ctrl:!!ze.ctrlKey})}})})]})}),(0,e.jsx)(n.az,{className:"ObjectComponent__Content",py:1,px:1,children:(0,e.jsxs)(n.BJ,{children:[(0,e.jsx)(n.BJ.Item,{grow:1,children:(0,e.jsx)(n.BJ,{vertical:!0,fill:!0,children:h.map(function(ze,We){return(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(b.Port,O({port:ze,portIndex:We+1,componentId:C,act:G},ln))},We)})})}),(0,e.jsx)(n.BJ.Item,{ml:5,children:(0,e.jsx)(n.BJ,{vertical:!0,children:g.map(function(ze,We){return(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(b.Port,O({act:G,port:ze,portIndex:We+1,componentId:C},ln,{isOutput:!0}))},We)})})})]})})]}))},v}(s.Component)},8725:(q,S,r)=>{"use strict";r.r(S),r.d(S,{SimpleRecords:()=>u});var e=r(1131),s=r(360),n=r(7003),t=r(9845),a=r(5070),b=r(1859),O=r(5180);function y(){return y=Object.assign||function(d){for(var v=1;v{"use strict";r.r(S),r.d(S,{PDA:()=>y});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=r(9160),b=r(7865),O=function(m){var d;try{d=b("./"+m+".tsx")}catch(_){if(_.code==="MODULE_NOT_FOUND")return(0,a.z)("notFound",m);throw _}var v=d[m];return v||(0,a.z)("missingExport",m)},y=function(m){var d=(0,s.Oc)().data,v=d.app,_=d.owner;if(!_)return(0,e.jsx)(t.p8,{width:350,height:105,children:(0,e.jsx)(t.p8.Content,{scrollable:!0,children:(0,e.jsx)(n.wn,{title:"Error",children:"No user data found. Please swipe an ID card."})})});var l=O(v.template);return(0,e.jsx)(t.p8,{width:600,height:650,children:(0,e.jsx)(t.p8.Content,{scrollable:!0,children:(0,e.jsxs)(n.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(u,{})}),(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(n.wn,{fill:!0,scrollable:!0,p:1,pb:0,title:(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.In,{name:v.icon,mr:1}),v.name]}),children:(0,e.jsx)(l,{})})}),(0,e.jsx)(n.BJ.Item,{mt:7.5,children:(0,e.jsx)(f,{})})]})})})},u=function(m){var d=(0,s.Oc)(),v=d.act,_=d.data,l=_.idInserted,c=_.idLink,h=_.stationTime,g=_.cartridge_name,p=_.request_cartridge_name;return(0,e.jsxs)(n.BJ,{fill:!0,children:[(0,e.jsx)(n.BJ.Item,{ml:.5,children:(0,e.jsx)(n.$n,{icon:"id-card",color:"transparent",onClick:function(){return v("Authenticate")},children:l?c:"No ID Inserted"})}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.$n,{icon:"sd-card",color:"transparent",onClick:function(){return v("Eject")},children:g?["Eject "+g]:"No Cartridge Inserted"})}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.$n,{icon:"sd-card",color:"transparent",onClick:function(){return v("Eject_Request")},children:p?["Eject "+p]:"No Request Cartridge Inserted"})}),(0,e.jsx)(n.BJ.Item,{grow:!0,textAlign:"right",bold:!0,mr:1,mt:.5,children:h})]})},f=function(m){var d=(0,s.Oc)(),v=d.act,_=d.data,l=_.app;return(0,e.jsx)(n.az,{height:"45px",className:"PDA__footer",backgroundColor:"#1b1b1b",children:(0,e.jsxs)(n.BJ,{fill:!0,children:[!!l.has_back&&(0,e.jsx)(n.BJ.Item,{basis:"33%",mr:-.5,children:(0,e.jsx)(n.$n,{fluid:!0,className:"PDA__footer__button",color:"transparent",iconColor:l.has_back?"white":"disabled",icon:"arrow-alt-circle-left-o",onClick:function(){return v("Back")}})}),(0,e.jsx)(n.BJ.Item,{basis:l.has_back?"33%":"100%",children:(0,e.jsx)(n.$n,{fluid:!0,className:"PDA__footer__button",color:"transparent",iconColor:l.is_home?"disabled":"white",icon:"home",onClick:function(){v("Home")}})})]})})}},8773:(q,S,r)=>{"use strict";r.r(S),r.d(S,{Biogenerator:()=>b});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=r(9680),b=function(f){var m=(0,s.Oc)(),d=m.data,v=m.config,_=d.processing,l=v.title;return(0,e.jsx)(t.p8,{width:390,height:595,children:(0,e.jsx)(t.p8.Content,{children:(0,e.jsxs)(n.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(a.Operating,{operating:_,name:l}),(0,e.jsx)(O,{}),(0,e.jsx)(y,{}),(0,e.jsx)(u,{})]})})})},O=function(f){var m=(0,s.Oc)().data,d=m.biomass,v=m.container,_=m.container_curr_reagents,l=m.container_max_reagents;return(0,e.jsxs)(n.wn,{title:"Storage",children:[(0,e.jsxs)(n.BJ,{children:[(0,e.jsx)(n.BJ.Item,{mr:"20px",color:"silver",children:"Biomass:"}),(0,e.jsx)(n.BJ.Item,{mr:"5px",children:d}),(0,e.jsx)(n.In,{name:"leaf",size:1.2,color:"#3d8c40"})]}),(0,e.jsxs)(n.BJ,{height:"21px",mt:"8px",align:"center",children:[(0,e.jsx)(n.BJ.Item,{mr:"10px",color:"silver",children:"Container:"}),v?(0,e.jsx)(n.z2,{value:_,maxValue:l,children:(0,e.jsx)(n.az,{textAlign:"center",children:_+" / "+l+" units"})}):(0,e.jsx)(n.BJ.Item,{children:"None"})]})]})},y=function(f){var m=(0,s.Oc)(),d=m.act,v=m.data,_=v.has_plants,l=v.container;return(0,e.jsx)(n.wn,{title:"Controls",children:(0,e.jsxs)(n.BJ,{children:[(0,e.jsx)(n.BJ.Item,{width:"30%",children:(0,e.jsx)(n.$n,{fluid:!0,textAlign:"center",icon:"power-off",disabled:!_,tooltip:_?"":"There are no plants in the biogenerator.",tooltipPosition:"top-start",onClick:function(){return d("activate")},children:"Activate"})}),(0,e.jsx)(n.BJ.Item,{width:"40%",children:(0,e.jsx)(n.$n,{fluid:!0,textAlign:"center",icon:"flask",disabled:!l,tooltip:l?"":"The biogenerator does not have a container.",tooltipPosition:"top",onClick:function(){return d("detach_container")},children:"Detach Container"})}),(0,e.jsx)(n.BJ.Item,{width:"30%",children:(0,e.jsx)(n.$n,{fluid:!0,textAlign:"center",icon:"eject",disabled:!_,tooltip:_?"":"There are no stored plants to eject.",tooltipPosition:"top-end",onClick:function(){return d("eject_plants")},children:"Eject Plants"})})]})})},u=function(f){var m=(0,s.Oc)(),d=m.act,v=m.data,_=v.biomass,l=v.product_list,c=v.container,h=(0,s.QY)("vendAmount",1),g=h[0],p=h[1],j=Object.entries(l).map(function(x,C){var I=Object.entries(x[1]).map(function(P){return P[1]});return(0,e.jsx)(n.Nt,{title:x[0],open:!0,children:I.map(function(P){return(0,e.jsxs)(n.BJ,{py:"2px",className:"candystripe",align:"center",children:[(0,e.jsx)(n.BJ.Item,{width:"50%",ml:"2px",children:P.name}),(0,e.jsxs)(n.BJ.Item,{textAlign:"right",width:"20%",children:[P.cost*g,(0,e.jsx)(n.In,{ml:"5px",name:"leaf",size:1.2,color:"#3d8c40"})]}),(0,e.jsx)(n.BJ.Item,{textAlign:"right",width:"40%",children:P.needs_container&&!c?(0,e.jsx)(n.$n,{disabled:!0,icon:"flask",tooltip:"\u0412\u0441\u0442\u0430\u0432\u044C\u0442\u0435 \u043B\u044E\u0431\u043E\u0439 \u043A\u043E\u043D\u0442\u0435\u0439\u043D\u0435\u0440 \u0434\u043B\u044F \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u044F \u044D\u0442\u043E\u0439 \u043E\u043F\u0446\u0438\u0438",children:"No containe"}):(0,e.jsx)(n.$n,{disabled:_{"use strict";r.r(S),r.d(S,{pda_notes:()=>t});var e=r(1131),s=r(360),n=r(5180),t=function(a){var b=(0,s.Oc)(),O=b.act,y=b.data,u=y.note;return(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.wn,{children:u}),(0,e.jsx)(n.$n,{icon:"pen",onClick:function(){return O("Edit")},children:"Edit"})]})}},8809:(q,S,r)=>{"use strict";/** * @license React * react-jsx-runtime.production.min.js * @@ -497,23 +497,23 @@ User Agent: `+navigator.userAgent;Byond.sendMessage({type:"log",ns:m,message:l}) * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var e=r(7003),s=Symbol.for("react.element"),n=Symbol.for("react.fragment"),t=Object.prototype.hasOwnProperty,a=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,O={key:!0,ref:!0,__self:!0,__source:!0};function b(y,u,f){var m,d={},v=null,_=null;f!==void 0&&(v=""+f),u.key!==void 0&&(v=""+u.key),u.ref!==void 0&&(_=u.ref);for(m in u)t.call(u,m)&&!O.hasOwnProperty(m)&&(d[m]=u[m]);if(y&&y.defaultProps)for(m in u=y.defaultProps,u)d[m]===void 0&&(d[m]=u[m]);return{$$typeof:s,type:y,key:v,ref:_,props:d,_owner:a.current}}S.Fragment=n,S.jsx=b,S.jsxs=b},8846:(q,S,r)=>{"use strict";r.r(S),r.d(S,{ShuttleManipulator:()=>O});var e=r(1131),s=r(360),n=r(7003),t=r(5180),a=r(3521),O=function(f){var m=(0,n.useState)(0),d=m[0],v=m[1],_=function(l){switch(l){case 0:return(0,e.jsx)(b,{});case 1:return(0,e.jsx)(y,{});case 2:return(0,e.jsx)(u,{});default:return"WE SHOULDN'T BE HERE!"}};return(0,e.jsx)(a.p8,{width:650,height:700,children:(0,e.jsx)(a.p8.Content,{scrollable:!0,children:(0,e.jsxs)(t.az,{fillPositionedParent:!0,children:[(0,e.jsxs)(t.tU,{children:[(0,e.jsx)(t.tU.Tab,{selected:d===0,onClick:function(){return v(0)},icon:"info-circle",children:"Status"},"Status"),(0,e.jsx)(t.tU.Tab,{selected:d===1,onClick:function(){return v(1)},icon:"file-import",children:"Templates"},"Templates"),(0,e.jsx)(t.tU.Tab,{selected:d===2,onClick:function(){return v(2)},icon:"tools",children:"Modification"},"Modification")]}),_(d)]})})})},b=function(f){var m=(0,s.Oc)(),d=m.act,v=m.data,_=v.shuttles;return(0,e.jsx)(t.az,{children:_.map(function(l){return(0,e.jsx)(t.wn,{title:l.name,children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"ID",children:l.id}),(0,e.jsx)(t.Ki.Item,{label:"Shuttle Timer",children:l.timeleft}),(0,e.jsx)(t.Ki.Item,{label:"Shuttle Mode",children:l.mode}),(0,e.jsx)(t.Ki.Item,{label:"Shuttle Status",children:l.status}),(0,e.jsxs)(t.Ki.Item,{label:"Actions",children:[(0,e.jsx)(t.$n,{icon:"location-arrow",onClick:function(){return d("jump_to",{type:"mobile",id:l.id})},children:"Jump To"}),(0,e.jsx)(t.$n,{icon:"fast-forward",onClick:function(){return d("fast_travel",{id:l.id})},children:"Fast Travel"})]})]})},l.name)})})},y=function(f){var m=(0,s.Oc)(),d=m.act,v=m.data,_=v.templates_tabs,l=v.existing_shuttle,c=v.templates;return(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.tU,{children:_.map(function(h){return(0,e.jsx)(t.tU.Tab,{selected:h===l.id,icon:"file",onClick:function(){return d("select_template_category",{cat:h})},children:h},h)})}),!!l&&c[l.id].templates.map(function(h){return(0,e.jsx)(t.wn,{title:h.name,children:(0,e.jsxs)(t.Ki,{children:[h.description&&(0,e.jsx)(t.Ki.Item,{label:"Description",children:h.description}),h.admin_notes&&(0,e.jsx)(t.Ki.Item,{label:"Admin Notes",children:h.admin_notes}),(0,e.jsx)(t.Ki.Item,{label:"Actions",children:(0,e.jsx)(t.$n,{icon:"download",onClick:function(){return d("select_template",{shuttle_id:h.shuttle_id})},children:"Load Template"})})]})},h.name)})]})},u=function(f){var m=(0,s.Oc)(),d=m.act,v=m.data,_=v.existing_shuttle,l=v.selected;return(0,e.jsxs)(t.az,{children:[_?(0,e.jsx)(t.wn,{title:"Selected Shuttle: "+_.name,children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Status",children:_.status}),_.timer&&(0,e.jsx)(t.Ki.Item,{label:"Timer",children:_.timeleft}),(0,e.jsx)(t.Ki.Item,{label:"Actions",children:(0,e.jsx)(t.$n,{icon:"location-arrow",onClick:function(){return d("jump_to",{type:"mobile",id:_.id})},children:"Jump To"})})]})}):(0,e.jsx)(t.wn,{title:"Selected Shuttle: None"}),l?(0,e.jsx)(t.wn,{title:"Selected Template: "+l.name,children:(0,e.jsxs)(t.Ki,{children:[l.description&&(0,e.jsx)(t.Ki.Item,{label:"Description",children:l.description}),l.admin_notes&&(0,e.jsx)(t.Ki.Item,{label:"Admin Notes",children:l.admin_notes}),(0,e.jsxs)(t.Ki.Item,{label:"Actions",children:[(0,e.jsx)(t.$n,{icon:"eye",onClick:function(){return d("preview",{shuttle_id:l.shuttle_id})},children:"Preview"}),(0,e.jsx)(t.$n,{icon:"download",onClick:function(){return d("load",{shuttle_id:l.shuttle_id})},children:"Load"})]})]})}):(0,e.jsx)(t.wn,{title:"Selected Template: None"})]})}},8885:(q,S,r)=>{"use strict";r.r(S),r.d(S,{Photocopier:()=>_});var e=r(1131),s=r(360),n=r(7003),t=r(5180),a=r(3521),O=r(1859),b=r(5070),y=r(9845);function u(l,c){(c==null||c>l.length)&&(c=l.length);for(var h=0,g=new Array(c);h=l.length?{done:!0}:{done:!1,value:l[g++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var d=function(l,c){return l.length>c?l.substring(0,c)+"...":l},v=function(l,c){c===void 0&&(c="");var h=(0,y.XZ)(c,function(g){return g.altername});return(0,b.L)([function(g){return(0,O.pb)(g,function(p){return!!p?.altername})},function(g){return c?(0,O.pb)(g,h):g},function(g){return(0,O.Ul)(g,function(p){return p.id})}])(l)},_=function(l){for(var c=(0,s.Oc)(),h=c.act,g=c.data,p=g.copies,j=g.maxcopies,x=(0,n.useState)(""),C=x[0],I=x[1],P=v((0,O.Ul)(g.forms||[],function(R){return R.category}),C),M=[],B=m(P),w;!(w=B()).done;){var T=w.value;M.includes(T.category)||M.push(T.category)}var K;return g.category===""?K=P:K=P.filter(function(R){return R.category===g.category}),(0,e.jsx)(a.p8,{width:550,height:575,theme:g.ui_theme,children:(0,e.jsx)(a.p8.Content,{children:(0,e.jsxs)(t.BJ,{fill:!0,children:[(0,e.jsx)(t.BJ.Item,{basis:"40%",children:(0,e.jsxs)(t.BJ,{fill:!0,vertical:!0,children:[(0,e.jsxs)(t.wn,{title:"\u0421\u0442\u0430\u0442\u0443\u0441",children:[(0,e.jsxs)(t.BJ,{children:[(0,e.jsx)(t.BJ.Item,{width:"50%",mt:.3,color:"grey",children:"\u0417\u0430\u0440\u044F\u0434 \u0442\u043E\u043D\u0435\u0440\u0430:"}),(0,e.jsx)(t.BJ.Item,{width:"50%",children:(0,e.jsx)(t.z2,{minValue:0,maxValue:30,value:g.toner})})]}),(0,e.jsxs)(t.BJ,{mt:1,children:[(0,e.jsx)(t.BJ.Item,{width:"50%",mb:.3,color:"grey",children:"\u0424\u043E\u0440\u043C\u0430:"}),(0,e.jsx)(t.BJ.Item,{width:"50%",textAlign:"center",bold:!0,children:g.form_id===""?"\u041D\u0435 \u0432\u044B\u0431\u0440\u0430\u043D\u0430":g.form_id})]}),(0,e.jsx)(t.BJ,{children:(0,e.jsx)(t.BJ.Item,{width:"100%",mt:1,children:(0,e.jsx)(t.$n,{fluid:!0,textAlign:"center",disabled:!g.copyitem&&!g.mob,icon:g.copyitem||g.mob?"eject":"times",onClick:function(){return h("removedocument")},children:g.copyitem?g.copyitem:g.mob?"\u0416\u043E\u043F\u0430 "+g.mob+"!":"\u0421\u043B\u043E\u0442 \u0434\u043B\u044F \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430"})})}),(0,e.jsx)(t.BJ,{children:(0,e.jsx)(t.BJ.Item,{width:"100%",mt:"3px",children:(0,e.jsx)(t.$n,{fluid:!0,textAlign:"center",disabled:!g.folder,icon:g.folder?"eject":"times",onClick:function(){return h("removefolder")},children:g.folder?g.folder:"\u0421\u043B\u043E\u0442 \u0434\u043B\u044F \u043F\u0430\u043F\u043A\u0438"})})})]}),(0,e.jsxs)(t.wn,{title:"\u0423\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435",children:[(0,e.jsxs)(t.BJ,{children:[(0,e.jsx)(t.BJ.Item,{grow:!0,width:"100%",children:(0,e.jsx)(t.$n,{fluid:!0,textAlign:"center",icon:"print",disabled:g.toner===0||g.form===null,onClick:function(){return h("print_form")},children:"\u041F\u0435\u0447\u0430\u0442\u044C"})}),!!g.isAI&&(0,e.jsx)(t.BJ.Item,{grow:!0,width:"100%",ml:"5px",children:(0,e.jsx)(t.$n,{fluid:!0,textAlign:"center",icon:"image",disabled:g.toner<5,tooltip:"\u0420\u0430\u0441\u043F\u0435\u0447\u0430\u0442\u0430\u0442\u044C \u0444\u043E\u0442\u043E \u0441 \u0411\u0430\u0437\u044B \u0414\u0430\u043D\u043D\u044B\u0445",onClick:function(){return h("ai_pic")},children:"\u0424\u043E\u0442\u043E"})})]}),(0,e.jsxs)(t.BJ,{children:[(0,e.jsx)(t.BJ.Item,{grow:!0,width:"100%",mt:"3px",children:(0,e.jsx)(t.$n,{fluid:!0,textAlign:"center",icon:"copy",disabled:g.toner===0||!g.copyitem&&!g.mob,onClick:function(){return h("copy")},children:"\u041A\u043E\u043F\u0438\u044F"})}),!!g.isAI&&(0,e.jsx)(t.BJ.Item,{grow:!0,width:"100%",ml:"5px",mt:"3px",children:(0,e.jsx)(t.$n,{fluid:!0,textAlign:"center",icon:"i-cursor",tooltip:"\u0420\u0430\u0441\u043F\u0435\u0447\u0430\u0442\u0430\u0442\u044C \u0441\u0432\u043E\u0439 \u0442\u0435\u043A\u0441\u0442",disabled:g.toner===0,onClick:function(){return h("ai_text")},children:"\u0422\u0435\u043A\u0441\u0442"})})]}),(0,e.jsxs)(t.BJ,{children:[(0,e.jsx)(t.BJ.Item,{mr:1.5,mt:1.2,width:"50%",color:"grey",children:"\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E:"}),(0,e.jsx)(t.Ap,{mt:.75,width:"50%",animated:!0,minValue:1,maxValue:j,value:p,stepPixelSize:10,onChange:function(R,U){return h("copies",{new:U})}})]})]}),(0,e.jsx)(t.BJ.Item,{grow:!0,mt:0,children:(0,e.jsx)(t.wn,{fill:!0,scrollable:!0,title:"\u0411\u044E\u0440\u043E\u043A\u0440\u0430\u0442\u0438\u044F",children:(0,e.jsxs)(t.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.$n,{fluid:!0,mb:-.5,icon:"chevron-right",color:"transparent",selected:!g.category,onClick:function(){return h("choose_category",{category:""})},children:"\u0412\u0441\u0435 \u0444\u043E\u0440\u043C\u044B"})}),M.map(function(R){return(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.$n,{fluid:!0,icon:"chevron-right",mb:-.5,color:"transparent",selected:g.category===R,onClick:function(){return h("choose_category",{category:R})},children:R},R)},R)})]})})})]})}),(0,e.jsx)(t.BJ.Item,{basis:"60%",children:(0,e.jsx)(t.wn,{fill:!0,scrollable:!0,title:g.category||"\u0412\u0441\u0435 \u0444\u043E\u0440\u043C\u044B",buttons:(0,e.jsx)(t.pd,{mr:18.5,width:"100%",placeholder:"\u041F\u043E\u0438\u0441\u043A \u0444\u043E\u0440\u043C\u044B",expensive:!0,onChange:I}),children:K.map(function(R){return(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.$n,{fluid:!0,mb:.5,color:"transparent",tooltip:R.altername,selected:g.form_id===R.id,onClick:function(){return h("choose_form",{path:R.path,id:R.id})},children:d(R.altername,37)})},R.path)})})})]})})})}},8890:(q,S,r)=>{"use strict";r.r(S),r.d(S,{Radio:()=>y});var e=r(1131),s=r(1859),n=r(9818),t=r(360),a=r(5180),O=r(9357),b=r(3521),y=function(u){var f=(0,t.Oc)(),m=f.act,d=f.data,v=d.freqlock,_=d.frequency,l=d.minFrequency,c=d.maxFrequency,h=d.canReset,g=d.listening,p=d.broadcasting,j=d.loudspeaker,x=d.has_loudspeaker,C=O.Fo.find(function(K){return K.freq===_}),I=!!(C&&C.name),P=[],M,B=0;for(B=0;B{"use strict";r.r(S),r.d(S,{meta:()=>t});var e=r(1131),s=r(5180),n=r(2555);/** + */var e=r(7003),s=Symbol.for("react.element"),n=Symbol.for("react.fragment"),t=Object.prototype.hasOwnProperty,a=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,b={key:!0,ref:!0,__self:!0,__source:!0};function O(y,u,f){var m,d={},v=null,_=null;f!==void 0&&(v=""+f),u.key!==void 0&&(v=""+u.key),u.ref!==void 0&&(_=u.ref);for(m in u)t.call(u,m)&&!b.hasOwnProperty(m)&&(d[m]=u[m]);if(y&&y.defaultProps)for(m in u=y.defaultProps,u)d[m]===void 0&&(d[m]=u[m]);return{$$typeof:s,type:y,key:v,ref:_,props:d,_owner:a.current}}S.Fragment=n,S.jsx=O,S.jsxs=O},8846:(q,S,r)=>{"use strict";r.r(S),r.d(S,{ShuttleManipulator:()=>b});var e=r(1131),s=r(360),n=r(7003),t=r(5180),a=r(3521),b=function(f){var m=(0,n.useState)(0),d=m[0],v=m[1],_=function(l){switch(l){case 0:return(0,e.jsx)(O,{});case 1:return(0,e.jsx)(y,{});case 2:return(0,e.jsx)(u,{});default:return"WE SHOULDN'T BE HERE!"}};return(0,e.jsx)(a.p8,{width:650,height:700,children:(0,e.jsx)(a.p8.Content,{scrollable:!0,children:(0,e.jsxs)(t.az,{fillPositionedParent:!0,children:[(0,e.jsxs)(t.tU,{children:[(0,e.jsx)(t.tU.Tab,{selected:d===0,onClick:function(){return v(0)},icon:"info-circle",children:"Status"},"Status"),(0,e.jsx)(t.tU.Tab,{selected:d===1,onClick:function(){return v(1)},icon:"file-import",children:"Templates"},"Templates"),(0,e.jsx)(t.tU.Tab,{selected:d===2,onClick:function(){return v(2)},icon:"tools",children:"Modification"},"Modification")]}),_(d)]})})})},O=function(f){var m=(0,s.Oc)(),d=m.act,v=m.data,_=v.shuttles;return(0,e.jsx)(t.az,{children:_.map(function(l){return(0,e.jsx)(t.wn,{title:l.name,children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"ID",children:l.id}),(0,e.jsx)(t.Ki.Item,{label:"Shuttle Timer",children:l.timeleft}),(0,e.jsx)(t.Ki.Item,{label:"Shuttle Mode",children:l.mode}),(0,e.jsx)(t.Ki.Item,{label:"Shuttle Status",children:l.status}),(0,e.jsxs)(t.Ki.Item,{label:"Actions",children:[(0,e.jsx)(t.$n,{icon:"location-arrow",onClick:function(){return d("jump_to",{type:"mobile",id:l.id})},children:"Jump To"}),(0,e.jsx)(t.$n,{icon:"fast-forward",onClick:function(){return d("fast_travel",{id:l.id})},children:"Fast Travel"})]})]})},l.name)})})},y=function(f){var m=(0,s.Oc)(),d=m.act,v=m.data,_=v.templates_tabs,l=v.existing_shuttle,c=v.templates;return(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.tU,{children:_.map(function(h){return(0,e.jsx)(t.tU.Tab,{selected:h===l.id,icon:"file",onClick:function(){return d("select_template_category",{cat:h})},children:h},h)})}),!!l&&c[l.id].templates.map(function(h){return(0,e.jsx)(t.wn,{title:h.name,children:(0,e.jsxs)(t.Ki,{children:[h.description&&(0,e.jsx)(t.Ki.Item,{label:"Description",children:h.description}),h.admin_notes&&(0,e.jsx)(t.Ki.Item,{label:"Admin Notes",children:h.admin_notes}),(0,e.jsx)(t.Ki.Item,{label:"Actions",children:(0,e.jsx)(t.$n,{icon:"download",onClick:function(){return d("select_template",{shuttle_id:h.shuttle_id})},children:"Load Template"})})]})},h.name)})]})},u=function(f){var m=(0,s.Oc)(),d=m.act,v=m.data,_=v.existing_shuttle,l=v.selected;return(0,e.jsxs)(t.az,{children:[_?(0,e.jsx)(t.wn,{title:"Selected Shuttle: "+_.name,children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Status",children:_.status}),_.timer&&(0,e.jsx)(t.Ki.Item,{label:"Timer",children:_.timeleft}),(0,e.jsx)(t.Ki.Item,{label:"Actions",children:(0,e.jsx)(t.$n,{icon:"location-arrow",onClick:function(){return d("jump_to",{type:"mobile",id:_.id})},children:"Jump To"})})]})}):(0,e.jsx)(t.wn,{title:"Selected Shuttle: None"}),l?(0,e.jsx)(t.wn,{title:"Selected Template: "+l.name,children:(0,e.jsxs)(t.Ki,{children:[l.description&&(0,e.jsx)(t.Ki.Item,{label:"Description",children:l.description}),l.admin_notes&&(0,e.jsx)(t.Ki.Item,{label:"Admin Notes",children:l.admin_notes}),(0,e.jsxs)(t.Ki.Item,{label:"Actions",children:[(0,e.jsx)(t.$n,{icon:"eye",onClick:function(){return d("preview",{shuttle_id:l.shuttle_id})},children:"Preview"}),(0,e.jsx)(t.$n,{icon:"download",onClick:function(){return d("load",{shuttle_id:l.shuttle_id})},children:"Load"})]})]})}):(0,e.jsx)(t.wn,{title:"Selected Template: None"})]})}},8885:(q,S,r)=>{"use strict";r.r(S),r.d(S,{Photocopier:()=>_});var e=r(1131),s=r(360),n=r(7003),t=r(5180),a=r(3521),b=r(1859),O=r(5070),y=r(9845);function u(l,c){(c==null||c>l.length)&&(c=l.length);for(var h=0,g=new Array(c);h=l.length?{done:!0}:{done:!1,value:l[g++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var d=function(l,c){return l.length>c?l.substring(0,c)+"...":l},v=function(l,c){c===void 0&&(c="");var h=(0,y.XZ)(c,function(g){return g.altername});return(0,O.L)([function(g){return(0,b.pb)(g,function(p){return!!p?.altername})},function(g){return c?(0,b.pb)(g,h):g},function(g){return(0,b.Ul)(g,function(p){return p.id})}])(l)},_=function(l){for(var c=(0,s.Oc)(),h=c.act,g=c.data,p=g.copies,j=g.maxcopies,x=(0,n.useState)(""),C=x[0],I=x[1],P=v((0,b.Ul)(g.forms||[],function(R){return R.category}),C),M=[],B=m(P),w;!(w=B()).done;){var T=w.value;M.includes(T.category)||M.push(T.category)}var K;return g.category===""?K=P:K=P.filter(function(R){return R.category===g.category}),(0,e.jsx)(a.p8,{width:550,height:575,theme:g.ui_theme,children:(0,e.jsx)(a.p8.Content,{children:(0,e.jsxs)(t.BJ,{fill:!0,children:[(0,e.jsx)(t.BJ.Item,{basis:"40%",children:(0,e.jsxs)(t.BJ,{fill:!0,vertical:!0,children:[(0,e.jsxs)(t.wn,{title:"\u0421\u0442\u0430\u0442\u0443\u0441",children:[(0,e.jsxs)(t.BJ,{children:[(0,e.jsx)(t.BJ.Item,{width:"50%",mt:.3,color:"grey",children:"\u0417\u0430\u0440\u044F\u0434 \u0442\u043E\u043D\u0435\u0440\u0430:"}),(0,e.jsx)(t.BJ.Item,{width:"50%",children:(0,e.jsx)(t.z2,{minValue:0,maxValue:30,value:g.toner})})]}),(0,e.jsxs)(t.BJ,{mt:1,children:[(0,e.jsx)(t.BJ.Item,{width:"50%",mb:.3,color:"grey",children:"\u0424\u043E\u0440\u043C\u0430:"}),(0,e.jsx)(t.BJ.Item,{width:"50%",textAlign:"center",bold:!0,children:g.form_id===""?"\u041D\u0435 \u0432\u044B\u0431\u0440\u0430\u043D\u0430":g.form_id})]}),(0,e.jsx)(t.BJ,{children:(0,e.jsx)(t.BJ.Item,{width:"100%",mt:1,children:(0,e.jsx)(t.$n,{fluid:!0,textAlign:"center",disabled:!g.copyitem&&!g.mob,icon:g.copyitem||g.mob?"eject":"times",onClick:function(){return h("removedocument")},children:g.copyitem?g.copyitem:g.mob?"\u0416\u043E\u043F\u0430 "+g.mob+"!":"\u0421\u043B\u043E\u0442 \u0434\u043B\u044F \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430"})})}),(0,e.jsx)(t.BJ,{children:(0,e.jsx)(t.BJ.Item,{width:"100%",mt:"3px",children:(0,e.jsx)(t.$n,{fluid:!0,textAlign:"center",disabled:!g.folder,icon:g.folder?"eject":"times",onClick:function(){return h("removefolder")},children:g.folder?g.folder:"\u0421\u043B\u043E\u0442 \u0434\u043B\u044F \u043F\u0430\u043F\u043A\u0438"})})})]}),(0,e.jsxs)(t.wn,{title:"\u0423\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435",children:[(0,e.jsxs)(t.BJ,{children:[(0,e.jsx)(t.BJ.Item,{grow:!0,width:"100%",children:(0,e.jsx)(t.$n,{fluid:!0,textAlign:"center",icon:"print",disabled:g.toner===0||g.form===null,onClick:function(){return h("print_form")},children:"\u041F\u0435\u0447\u0430\u0442\u044C"})}),!!g.isAI&&(0,e.jsx)(t.BJ.Item,{grow:!0,width:"100%",ml:"5px",children:(0,e.jsx)(t.$n,{fluid:!0,textAlign:"center",icon:"image",disabled:g.toner<5,tooltip:"\u0420\u0430\u0441\u043F\u0435\u0447\u0430\u0442\u0430\u0442\u044C \u0444\u043E\u0442\u043E \u0441 \u0411\u0430\u0437\u044B \u0414\u0430\u043D\u043D\u044B\u0445",onClick:function(){return h("ai_pic")},children:"\u0424\u043E\u0442\u043E"})})]}),(0,e.jsxs)(t.BJ,{children:[(0,e.jsx)(t.BJ.Item,{grow:!0,width:"100%",mt:"3px",children:(0,e.jsx)(t.$n,{fluid:!0,textAlign:"center",icon:"copy",disabled:g.toner===0||!g.copyitem&&!g.mob,onClick:function(){return h("copy")},children:"\u041A\u043E\u043F\u0438\u044F"})}),!!g.isAI&&(0,e.jsx)(t.BJ.Item,{grow:!0,width:"100%",ml:"5px",mt:"3px",children:(0,e.jsx)(t.$n,{fluid:!0,textAlign:"center",icon:"i-cursor",tooltip:"\u0420\u0430\u0441\u043F\u0435\u0447\u0430\u0442\u0430\u0442\u044C \u0441\u0432\u043E\u0439 \u0442\u0435\u043A\u0441\u0442",disabled:g.toner===0,onClick:function(){return h("ai_text")},children:"\u0422\u0435\u043A\u0441\u0442"})})]}),(0,e.jsxs)(t.BJ,{children:[(0,e.jsx)(t.BJ.Item,{mr:1.5,mt:1.2,width:"50%",color:"grey",children:"\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E:"}),(0,e.jsx)(t.Ap,{mt:.75,width:"50%",animated:!0,minValue:1,maxValue:j,value:p,stepPixelSize:10,onChange:function(R,U){return h("copies",{new:U})}})]})]}),(0,e.jsx)(t.BJ.Item,{grow:!0,mt:0,children:(0,e.jsx)(t.wn,{fill:!0,scrollable:!0,title:"\u0411\u044E\u0440\u043E\u043A\u0440\u0430\u0442\u0438\u044F",children:(0,e.jsxs)(t.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.$n,{fluid:!0,mb:-.5,icon:"chevron-right",color:"transparent",selected:!g.category,onClick:function(){return h("choose_category",{category:""})},children:"\u0412\u0441\u0435 \u0444\u043E\u0440\u043C\u044B"})}),M.map(function(R){return(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.$n,{fluid:!0,icon:"chevron-right",mb:-.5,color:"transparent",selected:g.category===R,onClick:function(){return h("choose_category",{category:R})},children:R},R)},R)})]})})})]})}),(0,e.jsx)(t.BJ.Item,{basis:"60%",children:(0,e.jsx)(t.wn,{fill:!0,scrollable:!0,title:g.category||"\u0412\u0441\u0435 \u0444\u043E\u0440\u043C\u044B",buttons:(0,e.jsx)(t.pd,{mr:18.5,width:"100%",placeholder:"\u041F\u043E\u0438\u0441\u043A \u0444\u043E\u0440\u043C\u044B",expensive:!0,onChange:I}),children:K.map(function(R){return(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.$n,{fluid:!0,mb:.5,color:"transparent",tooltip:R.altername,selected:g.form_id===R.id,onClick:function(){return h("choose_form",{path:R.path,id:R.id})},children:d(R.altername,37)})},R.path)})})})]})})})}},8890:(q,S,r)=>{"use strict";r.r(S),r.d(S,{Radio:()=>y});var e=r(1131),s=r(1859),n=r(9818),t=r(360),a=r(5180),b=r(9357),O=r(3521),y=function(u){var f=(0,t.Oc)(),m=f.act,d=f.data,v=d.freqlock,_=d.frequency,l=d.minFrequency,c=d.maxFrequency,h=d.canReset,g=d.listening,p=d.broadcasting,j=d.loudspeaker,x=d.has_loudspeaker,C=b.Fo.find(function(K){return K.freq===_}),I=!!(C&&C.name),P=[],M,B=0;for(B=0;B{"use strict";r.r(S),r.d(S,{meta:()=>t});var e=r(1131),s=r(5180),n=r(2555);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var t={title:"Collapsible",render:function(){return(0,e.jsx)(a,{})}},a=function(O){return(0,e.jsx)(s.wn,{children:(0,e.jsx)(s.Nt,{title:"Collapsible Demo",buttons:(0,e.jsx)(s.$n,{icon:"cog"}),children:(0,e.jsx)(n.l,{})})})}},8951:(q,S,r)=>{"use strict";r.r(S),r.d(S,{ModuleDetails:()=>u,ModuleDetailsExtra:()=>C,ModulesPane:()=>y});var e=r(1131),s=r(5180),n=r(8477),t=r(9818),a=r(7003),O=r(360),b=r(78),y=function(W){var N=(0,O.Oc)(),Z=N.act,ie=N.data,Q=ie.modules,V=ie.selected_module_index,G=ie.cargo,le=ie.maint_access,xe=ie.maintance_progress,de=ie.radio_data,me=ie.ui_honked,pe=(0,a.useState)(0),Me=pe[0],Ke=pe[1],Le=(0,b.useHonk)(me?.4:0);return(0,e.jsxs)(s.BJ,{fill:!0,vertical:!0,children:[(0,e.jsxs)(s.tU,{children:[(0,e.jsxs)(s.tU.Tab,{selected:Me===0,onClick:function(){return Ke(0)},children:[(0,e.jsx)(s.In,{name:"table"})," ",Le("\u041C\u043E\u0434\u0443\u043B\u0438")]},"Modules"),(0,e.jsxs)(s.tU.Tab,{selected:Me===1,onClick:function(){return Ke(1)},children:[(0,e.jsx)(s.In,{name:"box"})," ",Le("\u0413\u0440\u0443\u0437")]},"Cargo"),(0,e.jsxs)(s.tU.Tab,{selected:Me===2,onClick:function(){return Ke(2)},children:[(0,e.jsx)(s.In,{name:"cog"})," ",Le("\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438")]},"Settings")]}),Me===0&&(0,e.jsx)(s.wn,{style:{overflowY:"auto"},children:(0,e.jsxs)(s.BJ,{children:[(0,e.jsx)(s.BJ.Item,{children:Q.map(function(Se,ln){return Se.ref?(0,e.jsx)(s.$n,{maxWidth:16,p:"4px",pr:"8px",fluid:!0,selected:ln===V,onClick:function(){return Z("select_module",{index:ln})},children:(0,e.jsxs)(s.BJ,{children:[(0,e.jsx)(s.BJ.Item,{lineHeight:"0",children:(0,e.jsx)(s.Hg,{icon:Se.icon,icon_state:Se.icon_state,style:{verticalAlign:"middle",width:"32px",margin:"0px",marginLeft:"0px"}})}),(0,e.jsx)(s.BJ.Item,{lineHeight:"32px",style:{textTransform:"capitalize",overflow:"hidden",textOverflow:"ellipsis"},children:Se.name})]})},ln):(0,e.jsx)(s.$n,{maxWidth:16,p:"4px",pr:"8px",fluid:!0,color:"transparent",children:(0,e.jsx)(s.BJ,{children:(0,e.jsx)(s.BJ.Item,{width:"32px",height:"32px",textAlign:"center",children:(0,e.jsx)(s.In,{fontSize:1.5,mx:0,my:"8px",name:"screwdriver - wrench"})})})},ln)})}),(0,e.jsx)(s.BJ.Item,{grow:!0,pl:1,children:V!==null&&Q[V]&&(0,e.jsx)(u,{module:Q[V]})})]})}),Me===1&&(0,e.jsxs)(s.wn,{fill:!0,style:{overflowY:"auto"},children:[(0,e.jsxs)(s.XI.Row,{header:!0,children:[(0,e.jsx)(s.XI.Cell,{width:"50%",children:"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435"}),(0,e.jsx)(s.XI.Cell,{width:"45%",children:"\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E"})]}),!!G.cargo_list&&G.cargo_list.map(function(Se){return(0,e.jsxs)(s.XI.Row,{children:[(0,e.jsx)(s.XI.Cell,{children:Se.name}),(0,e.jsx)(s.XI.Cell,{children:Se.amount}),(0,e.jsx)(s.XI.Cell,{children:(0,e.jsx)(s.$n,{color:"transparent",icon:"eject",tooltip:"\u0412\u044B\u0431\u0440\u043E\u0441\u0438\u0442\u044C \u043F\u0440\u0435\u0434\u043C\u0435\u0442",fontSize:1.5,onClick:function(){return Z("drop_from_cargo",{cargo_item:Se.ref})}})})]},Se.ref)})]}),Me===2&&(0,e.jsx)(s.wn,{fill:!0,style:{overflowY:"auto"},children:(0,e.jsxs)(s.Ki,{children:[(0,e.jsx)(s.Ki.Item,{label:Le("\u0420\u0430\u0437\u0440\u0435\u0448\u0438\u0442\u044C \u0442\u0435\u0445. \u043E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u043D\u0438\u0435"),children:(0,e.jsx)(s.$n,{disabled:xe,selected:le,icon:"power-off",content:le?"\u0412\u043A\u043B":"\u0412\u044B\u043A\u043B",onClick:function(){return Z("toggle_maint_access")}})}),(0,e.jsxs)(s.Ki.Item,{label:Le("\u0420\u0430\u0434\u0438\u043E"),children:[(0,e.jsx)(s.$n,{selected:de.microphone,icon:de.microphone?"microphone":"microphone-slash",onClick:function(){return Z("toggle_microphone")}}),(0,e.jsx)(s.$n,{selected:de.speaker,icon:de.speaker?"volume-up":"volume-mute",onClick:function(){return Z("toggle_speaker")}}),(0,e.jsx)(s.Q7,{animated:!0,unit:"kHz",step:.2,stepPixelSize:10,minValue:de.minFrequency/10,maxValue:de.maxFrequency/10,value:de.frequency/10,format:function(Se){return(0,t.Mg)(Se,1)},onDrag:function(Se){return Z("set_frequency",{new_frequency:Se*10})}})]})]})})]})},u=function(W){var N=(0,O.Oc)(),Z=N.act,ie=N.data,Q=W.module,V=Q.slot,G=Q.name,le=Q.desc,xe=Q.icon,de=Q.detachable,me=Q.ref,pe=Q.snowflake;return(0,e.jsxs)(s.az,{children:[(0,e.jsx)(s.wn,{children:(0,e.jsxs)(s.BJ,{vertical:!0,children:[(0,e.jsx)(s.BJ.Item,{children:(0,e.jsxs)(s.BJ,{children:[(0,e.jsx)(s.BJ.Item,{grow:!0,children:(0,e.jsx)("h2",{style:{textTransform:"capitalize"},children:G})}),!!de&&(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(s.$n,{color:"transparent",icon:"eject",tooltip:"\u041E\u0442\u0441\u043E\u0435\u0434\u0438\u043D\u0438\u0442\u044C",fontSize:1.5,onClick:function(){return Z("equip_act",{ref:me,gear_action:"detach"})}})})]})}),(0,e.jsx)(s.BJ.Item,{children:le})]})}),(0,e.jsx)(s.wn,{children:(0,e.jsxs)(s.Ki,{children:[(0,e.jsx)(f,{module:W.module}),!!pe&&(0,e.jsx)(C,{module:W.module})]})})]})},f=function(W){var N=(0,O.Oc)(),Z=N.act,ie=N.data,Q=ie.power_level,V=W.module,G=V.ref,le=V.slot,xe=V.integrity,de=V.can_be_toggled,me=V.can_be_triggered,pe=V.active,Me=V.active_label,Ke=V.equip_cooldown,Le=V.energy_per_use,Se=ie.ui_honked,ln=(0,b.useHonk)(Se?.4:0);return(0,e.jsxs)(e.Fragment,{children:[xe<1&&(0,e.jsx)(s.Ki.Item,{label:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",children:(0,e.jsx)(s.z2,{ranges:{good:[.75,1/0],average:[.25,.75],bad:[-1/0,.25]},value:xe})}),!!Le&&(0,e.jsx)(s.Ki.Item,{label:"\u0417\u0430\u0442\u0440\u0430\u0442\u044B \u044D\u043D\u0435\u0440\u0433\u0438\u0438",children:(0,n.d5)(Le)+", "+(Q?(0,t.Mg)(Q/Le):0)+" \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u0439 \u043E\u0441\u0442\u0430\u043B\u043E\u0441\u044C"}),!!Ke&&(0,e.jsx)(s.Ki.Item,{label:ln("\u041F\u0435\u0440\u0435\u0437\u0430\u0440\u044F\u0434\u043A\u0430"),children:Ke}),!!de&&(0,e.jsx)(s.Ki.Item,{label:ln(Me),children:(0,e.jsx)(s.$n,{icon:"power-off",content:ln(pe?"\u0412\u043A\u043B\u044E\u0447\u0435\u043D":" \u0412\u044B\u043A\u043B\u044E\u0447\u0435\u043D"),onClick:function(){return Z("equip_act",{ref:G,gear_action:"toggle"})},selected:pe})}),!!me&&(0,e.jsx)(s.Ki.Item,{label:ln(Me),children:(0,e.jsx)(s.$n,{icon:"check",content:ln("\u0412\u044B\u0431\u0440\u0430\u0442\u044C"),disabled:pe,onClick:function(){return Z("equip_act",{ref:G,gear_action:"select"})}})})]})},m="sleeper_snowflake",d="syringe_snowflake",v="mode_snowflake",_="extinguisher_snowflake",l="ballistic_weapon_snowflake",c="generator_snowflake",h="holo_snowflake",g="toolset_snowflake",p="multimodule_snowflake",j="cable_snoflake",x="cage_snowflake",C=function(W){var N=W.module;switch(N.snowflake.snowflake_id){case l:return(0,e.jsx)(I,{module:N});case _:return(0,e.jsx)(T,{module:N});case m:return(0,e.jsx)(P,{module:N});case d:return(0,e.jsx)(M,{module:N});case v:return(0,e.jsx)(B,{module:N});case c:return(0,e.jsx)(K,{module:N});case g:return(0,e.jsx)($,{module:N});case p:return(0,e.jsx)(F,{module:N});case j:return(0,e.jsx)(w,{module:N});case h:return(0,e.jsx)(R,{module:N});case x:return(0,e.jsx)(U,{module:N});default:return null}},I=function(W){var N=(0,O.Oc)(),Z=N.act,ie=N.data,Q=W.module.ref,V=W.module.snowflake,G=V.max_ammo,le=V.total_ammo,xe=ie.ui_honked,de=(0,b.useHonk)(xe?.4:0);return(0,e.jsx)(s.Ki.Item,{label:de("\u0411\u043E\u0435\u043F\u0440\u0438\u043F\u0430\u0441\u044B"),buttons:G!==0&&(0,e.jsx)(s.$n,{icon:"redo",disabled:le===G,tooltip:"\u041F\u0435\u0440\u0435\u0437\u0430\u0440\u044F\u0434\u043A\u0430",tooltipPosition:"top",onClick:function(){return Z("equip_act",{ref:Q,gear_action:"rearm"})}}),children:G?(0,e.jsx)(s.z2,{value:le/G,children:le+" \u0438\u0437 "+G}):le})},P=function(W){var N=(0,O.Oc)(),Z=N.act,ie=N.data,Q=W.module.ref,V=W.module.snowflake,G=V.patient,le=V.contained_reagents,xe=V.injectible_reagents,de=V.has_brain_damage,me=V.has_traumas;return G?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(s.Ki.Item,{label:"\u041F\u0430\u0446\u0438\u0435\u043D\u0442",buttons:(0,e.jsx)(s.$n,{icon:"eject",tooltip:"Eject",onClick:function(){return Z("equip_act",{ref:Q,gear_action:"eject"})}}),children:G.patient_name}),(0,e.jsx)(s.Ki.Item,{label:"\u0417\u0434\u043E\u0440\u043E\u0432\u044C\u0435",children:(0,e.jsx)(s.z2,{ranges:{good:[.75,1/0],average:[.25,.75],bad:[-1/0,.25]},value:G.patient_health})}),(0,e.jsx)(s.Ki.Item,{className:"candystripe",label:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",children:G.patient_state}),(0,e.jsxs)(s.Ki.Item,{className:"candystripe",label:"T\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430",children:[G.core_temp," C"]}),(0,e.jsx)(s.Ki.Item,{className:"candystripe",label:"\u0422\u0440\u0430\u0432\u043C\u044B",children:G.brute_loss}),(0,e.jsx)(s.Ki.Item,{className:"candystripe",label:"\u041E\u0436\u043E\u0433\u0438",children:G.burn_loss}),(0,e.jsx)(s.Ki.Item,{className:"candystripe",label:"T\u043E\u043A\u0441\u0438\u043D\u044B",children:G.toxin_loss}),(0,e.jsx)(s.Ki.Item,{className:"candystripe",label:"\u041A\u0438\u0441\u043B\u043E\u0440\u043E\u0434",children:G.oxygen_loss}),!!de&&(0,e.jsx)(s.Ki.Item,{className:"candystripe",label:"\u041E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D",children:"\u0423\u0440\u043E\u043D \u043C\u043E\u0437\u0433\u0443"}),(0,e.jsx)(s.Ki.Item,{label:"\u0420\u0435\u0430\u0433\u0435\u043D\u0442\u044B",children:le.map(function(pe){return(0,e.jsx)(s.Ki.Item,{className:"candystripe",labelWrap:!0,label:pe.name,children:(0,e.jsx)(s.Ki.Item,{label:""+pe.volume+"u"})},pe.name)})}),(0,e.jsx)(s.Ki.Item,{label:"\u0418\u043D\u044A\u0435\u043A\u0446\u0438\u0438",children:xe?xe.map(function(pe){return(0,e.jsx)(s.Ki.Item,{labelWrap:!0,className:"candystripe",label:pe.name,children:(0,e.jsx)(s.Ki.Item,{label:""+pe.volume+"u",children:(0,e.jsx)(s.$n,{onClick:function(){return Z("equip_act",{ref:Q,gear_action:"inject_reagent",reagent:pe.id})},children:"Inject"})})},pe.name)}):"\u041D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u043E"})]}):(0,e.jsx)(s.Ki.Item,{label:"\u041F\u0430\u0446\u0438\u0435\u043D\u0442",children:"\u041E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442"})},M=function(W){var N=(0,O.Oc)(),Z=N.act,ie=N.data,Q=ie.power_level,V=W.module,G=V.ref,le=V.energy_per_use,xe=V.equip_cooldown,de=W.module.snowflake,me=de.mode,pe=de.syringe,Me=de.max_syringe,Ke=de.reagents,Le=de.total_reagents,Se=de.contained_reagents,ln=de.analyzed_reagents;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(s.Ki.Item,{label:"\u0428\u043F\u0440\u0438\u0446\u044B",children:(0,e.jsx)(s.z2,{value:pe/Me,children:pe+" \u0438\u0437 "+Me})}),(0,e.jsx)(s.Ki.Item,{label:"\u0420\u0435\u0430\u0433\u0435\u043D\u0442\u044B",children:(0,e.jsx)(s.z2,{value:Ke/Le,children:Ke+" \u0438\u0437 "+Le+" \u044E\u043D\u0438\u0442\u043E\u0432"})}),(0,e.jsx)(s.Ki.Item,{label:"\u0420\u0435\u0436\u0438\u043C",children:(0,e.jsx)(s.$n,{content:me,onClick:function(){return Z("equip_act",{ref:G,gear_action:"change_mode"})}})}),(0,e.jsx)(s.Ki.Item,{label:"\u0421\u0438\u043D\u0442\u0435\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435",children:ln.map(function(ze){return(0,e.jsx)(s.Ki.Item,{labelWrap:!0,label:ze.name,children:(0,e.jsx)(s.$n.Checkbox,{checked:ze.enabled,onClick:function(){return Z("equip_act",{ref:G,gear_action:"toggle_reagent",reagent:ze.name})}})},ze.name)})}),(0,e.jsx)(s.Ki.Item,{children:(0,e.jsx)(s.$n,{onClick:function(){return Z("equip_act",{ref:G,gear_action:"purge_all"})},children:"Purge All"})}),Se.map(function(ze){return(0,e.jsx)(s.Ki.Item,{labelWrap:!0,label:ze.name,children:(0,e.jsx)(s.Ki.Item,{label:""+ze.volume+"u",children:(0,e.jsx)(s.$n,{onClick:function(){return Z("equip_act",{ref:G,gear_action:"purge_reagent",reagent:ze.id})},children:"Purge"})})},ze.name)})]})},B=function(W){var N=(0,O.Oc)(),Z=N.act,ie=N.data,Q=W.module.ref,V=W.module.snowflake,G=V.mode,le=V.mode_label;return(0,e.jsx)(s.Ki.Item,{label:le,children:(0,e.jsx)(s.$n,{content:G,onClick:function(){return Z("equip_act",{ref:Q,gear_action:"change_mode"})}})})},w=function(W){var N=(0,O.Oc)(),Z=N.act,ie=N.data,Q=W.module.ref,V=W.module.snowflake.cable;return(0,e.jsx)(s.Ki.Item,{label:"\u041A\u043E\u043B-\u0432\u043E",children:V})},T=function(W){var N=(0,O.Oc)(),Z=N.act,ie=N.data,Q=W.module.ref,V=W.module.snowflake,G=V.reagents,le=V.total_reagents,xe=V.reagents_required;return(0,e.jsx)(s.Ki.Item,{label:"\u0412\u043E\u0434\u0430",children:(0,e.jsx)(s.z2,{value:G,minValue:0,maxValue:le,children:G})})},K=function(W){var N=(0,O.Oc)(),Z=N.act,ie=N.data,Q=ie.mineral_material_amount,V=W.module,G=V.ref,le=V.name,xe=W.module.snowflake,de=xe.active,me=xe.fuel_amount;return(0,e.jsx)(s.Ki.Item,{label:"\u0422\u043E\u043F\u043B\u0438\u0432\u043E",buttons:(0,e.jsx)(s.$n,{icon:"power-off",selected:de,tooltip:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0433\u0435\u043D\u0435\u0440\u0430\u0446\u0438\u044E \u044D\u043D\u0435\u0440\u0433\u0438\u0438",tooltipPosition:"top",onClick:function(){return Z("equip_act",{ref:G,gear_action:"toggle_generator"})}}),children:me===null?"\u043D\u0435\u0442":""+(0,t.Mg)(me,.1)+" cm\xB3"})},R=function(W){var N=(0,O.Oc)(),Z=N.act,ie=N.data,Q=W.module.ref,V=W.module.snowflake,G=V.max_barriers,le=V.total_barriers;return(0,e.jsx)(s.Ki.Item,{label:"\u0411\u0430\u0440\u044C\u0435\u0440\u044B",children:(0,e.jsx)(s.z2,{value:le/G,children:le+" \u0438\u0437 "+G})})},U=function(W){var N=(0,O.Oc)(),Z=N.act,ie=N.data,Q=W.module.ref,V=W.module.snowflake.prisoner;return(0,e.jsx)(s.Ki.Item,{buttons:(0,e.jsx)(s.$n,{icon:"eject",tooltip:"\u041E\u0441\u0432\u043E\u0431\u043E\u0434\u0438\u0442\u044C",tooltipPosition:"top",onClick:function(){return Z("equip_act",{ref:Q,gear_action:"eject"})}}),label:"\u0417\u0430\u043A\u043B\u044E\u0447\u0435\u043D\u043D\u044B\u0439",children:V||"\u041E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442"})},F=function(W){var N=(0,O.Oc)(),Z=N.act,ie=N.data,Q=W.module.ref,V=W.module.snowflake.targeted_module;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(s.Ki.Item,{label:"\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0439 \u043C\u043E\u0434\u0443\u043B\u044C",children:V?V.name:"\u041E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442"}),!!V&&(0,e.jsx)(C,{module:V})]})},$=function(W){var N=(0,O.Oc)(),Z=N.act,ie=N.data,Q=W.module.ref,V=W.module.snowflake,G=V.selected_item,le=V.items;return(0,e.jsx)(s.Ki.Item,{label:"\u0418\u043D\u0441\u0442\u0440\u0443\u043C\u0435\u043D\u0442",children:(0,e.jsx)(s.ms,{options:Object.keys(le),selected:G,onSelected:function(xe){return Z("equip_act",{ref:Q,gear_action:"change_tool",selected_item:le[xe]})}})})}},8961:(q,S,r)=>{"use strict";r.d(S,{H:()=>O,O:()=>a});var e=r(1131),s=r(1788);function n(){return n=Object.assign||function(b){for(var y=1;y=0)&&(u[m]=b[m]);return u}var a=function(b){return b[b.NORTH=1]="NORTH",b[b.SOUTH=2]="SOUTH",b[b.EAST=4]="EAST",b[b.WEST=8]="WEST",b[b.NORTHEAST=5]="NORTHEAST",b[b.NORTHWEST=9]="NORTHWEST",b[b.SOUTHEAST=6]="SOUTHEAST",b[b.SOUTHWEST=10]="SOUTHWEST",b}({}),O=function(b){var y,u=b.className,f=b.direction,m=f===void 0?2:f,d=b.fallback,v=b.frame,_=v===void 0?1:v,l=b.icon_state,c=b.icon,h=b.movement,g=h===void 0?!1:h,p=t(b,["className","direction","fallback","frame","icon_state","icon","movement"]),j=(y=Byond.iconRefMap)==null?void 0:y[c];if(!j)return d;var x=j+"?state="+l+"&dir="+m+"&movement="+!!g+"&frame="+_;return(0,e.jsx)(s._,n({fixErrors:!0,fixBlur:!0,src:x},p))}},8968:(q,S,r)=>{"use strict";r.r(S),r.d(S,{ABSOLUTE_Y_OFFSET:()=>s,DEFAULT_COMPONENT_MENU_LIMIT:()=>O,MOUSE_BUTTON_LEFT:()=>n,NULL_REF:()=>e,OPTION_DROPDOWN_LARGE_CHAR_AMOUNT:()=>t,TIME_UNTIL_PORT_RELEASE_WORKS:()=>a,VARIABLE_ASSOC_LIST:()=>f,VARIABLE_LIST:()=>u,VARIABLE_NOT_A_LIST:()=>y,noop:()=>b});var e="[0x0]",s=-32,n=0,t=12,a=100,O=6,b=function(){},y=1,u=2,f=3},8972:(q,S,r)=>{"use strict";r.r(S),r.d(S,{Smartfridge:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(O){var b=(0,s.Oc)(),y=b.act,u=b.data,f=u.secure,m=u.can_dry,d=u.drying,v=u.contents;return(0,e.jsx)(t.p8,{width:500,height:500,children:(0,e.jsx)(t.p8.Content,{children:(0,e.jsxs)(n.BJ,{fill:!0,vertical:!0,children:[!!f&&(0,e.jsx)(n.IC,{children:"\u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044F \u0430\u0432\u0442\u043E\u0440\u0438\u0437\u0430\u0446\u0438\u044F. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043F\u0440\u0435\u0434\u044A\u044F\u0432\u0438\u0442\u0435 \u0441\u0432\u043E\u044E ID-\u043A\u0430\u0440\u0442\u0443."}),(0,e.jsxs)(n.wn,{fill:!0,scrollable:!0,title:m?"\u0421\u0443\u0448\u0438\u043B\u044C\u043D\u0430\u044F \u0441\u0442\u043E\u0439\u043A\u0430":"\u0421\u043E\u0434\u0435\u0440\u0436\u0438\u043C\u043E\u0435",buttons:!!m&&(0,e.jsx)(n.$n,{width:11,icon:d?"power-off":"times",selected:d,onClick:function(){return y("drying")},children:d?"\u041D\u0430\u0447\u0430\u0442\u044C \u0441\u0443\u0448\u043A\u0443":"\u0417\u0430\u043A\u043E\u043D\u0447\u0438\u0442\u044C \u0441\u0443\u0448\u043A\u0443"}),children:[!v&&(0,e.jsx)(n.BJ,{fill:!0,children:(0,e.jsxs)(n.BJ.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.jsxs)(n.In.Stack,{style:{transform:"translate(-30px, -50px)"},children:[(0,e.jsx)(n.In,{name:"cookie-bite",size:5,color:"brown"}),(0,e.jsx)(n.In,{name:"slash",size:5,color:"red",style:{transform:"translate(-5px, 0)"}})]}),(0,e.jsx)("br",{}),"\u0425\u0440\u0430\u043D\u0438\u043B\u0438\u0449\u0435 \u043F\u0443\u0441\u0442\u043E."]})}),!!v&&v.slice().sort(function(_,l){return _.display_name.localeCompare(l.display_name)}).map(function(_){return(0,e.jsxs)(n.BJ,{children:[(0,e.jsx)(n.BJ.Item,{width:"55%",children:_.display_name}),(0,e.jsxs)(n.BJ.Item,{width:"25%",children:["(",_.quantity," \u0432 \u043D\u0430\u043B\u0438\u0447\u0438\u0438)"]}),(0,e.jsxs)(n.BJ.Item,{width:13,children:[(0,e.jsx)(n.$n,{width:3,icon:"arrow-down",tooltip:"\u0412\u0437\u044F\u0442\u044C \u043E\u0434\u043D\u0443 \u0448\u0442\u0443\u043A\u0443.",onClick:function(){return y("vend",{index:_.vend,amount:1})},children:"1"}),(0,e.jsx)(n.Q7,{width:"40px",minValue:0,value:0,maxValue:_.quantity,step:1,stepPixelSize:3,onChange:function(l){return y("vend",{index:_.vend,amount:l})}}),(0,e.jsx)(n.$n,{width:4,icon:"arrow-down",tooltip:"\u0412\u0437\u044F\u0442\u044C \u0432\u0441\u0451.",tooltipPosition:"bottom-start",onClick:function(){return y("vend",{index:_.vend,amount:_.quantity})},children:"\u0412\u0441\u0451"})]})]},_.display_name)})]})]})})})}},8996:(q,S,r)=>{"use strict";r.r(S),r.d(S,{Workshop:()=>m});var e=r(1131),s=r(9845),n=r(360),t=r(7003),a=r(5180),O=r(3814),b=r(3521);function y(){return y=Object.assign||function(l){for(var c=1;c=0)&&(h[p]=l[p]);return h}var f=function(l,c,h){return l.requirements===null?!0:!(l.requirements.brass>c||l.requirements.power>h)},m=function(l){var c=(0,n.Oc)(),h=c.act,g=c.data,p=g.brass_amount,j=g.power_amount,x=g.building,C=g.buildStart,I=g.buildEnd,P=g.worldTime,M=(0,t.useState)(""),B=M[0],w=M[1],T=(0,t.useState)(!1),K=T[0],R=T[1],U=p.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),F=j.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,");return(0,e.jsx)(b.p8,{width:400,height:500,theme:"clockwork",children:(0,e.jsx)(b.p8.Content,{children:(0,e.jsxs)(a.BJ,{fill:!0,vertical:!0,children:[(0,e.jsxs)(a.BJ.Item,{children:[(0,e.jsx)(d,{setSearchText:w,descending:K,setDescending:R}),(0,e.jsxs)(a.wn,{title:"Materials",children:[(0,e.jsxs)(a.Ki,{children:[(0,e.jsxs)(a.Ki.Item,{label:"Brass",children:[U,(0,e.jsx)(a.$n,{icon:"arrow-down",height:"19px",tooltip:"Dispense Brass",tooltipPosition:"bottom-start",ml:"0.5rem",onClick:function(){return h("dispense")}})]}),(0,e.jsx)(a.Ki.Item,{label:"Power",children:F})]}),x&&(0,e.jsxs)(a.z2.Countdown,{mt:2,start:C,current:P,end:I,bold:!0,children:["Building ",x,"\xA0(",(0,e.jsx)(O.G,{current:P,timeLeft:I-P,format:function($,W){return W.substring(3)}}),")"]})]})]}),(0,e.jsx)(a.BJ.Item,{grow:!0,children:(0,e.jsx)(a.wn,{fill:!0,scrollable:!0,children:(0,e.jsx)(v,{searchText:B,descending:K})})})]})})})},d=function(l){var c=l.setSearchText,h=l.descending,g=l.setDescending;return(0,e.jsx)(a.az,{mb:"0.5rem",children:(0,e.jsxs)(a.BJ,{width:"100%",children:[(0,e.jsx)(a.BJ.Item,{grow:1,mr:"0.5rem",children:(0,e.jsx)(a.pd,{placeholder:"Search by item name..",width:"100%",expensive:!0,onChange:c})}),(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(a.$n,{icon:h?"arrow-down":"arrow-up",height:"19px",tooltip:h?"Descending order":"Ascending order",tooltipPosition:"bottom-start",ml:"0.5rem",onClick:function(){return g(!h)}})})]})})},v=function(l){var c=(0,n.Oc)().data,h=c.items,g=l.searchText,p=l.descending,j=(0,s.XZ)(g,function(I){return I[0]}),x=!1,C=Object.entries(h).map(function(I,P){var M=Object.entries(I[1]).filter(j).map(function(B){return B[1].affordable=f(B[1],c.brass_amount,c.power_amount),B[1]});if(M.length!==0)return p&&(M=M.reverse()),x=!0,(0,e.jsx)(_,{title:I[0],items:M},I[0])});return(0,e.jsx)(a.BJ.Item,{grow:1,children:(0,e.jsx)(a.wn,{children:x?C:(0,e.jsx)(a.az,{color:"label",children:"No items matching your criteria was found!"})})})},_=function(l){var c=(0,n.Oc)(),h=c.act,g=c.data,p=l.title,j=l.items,x=u(l,["title","items"]);return(0,e.jsx)(a.Nt,y({open:!0,title:p},x,{children:j.map(function(C){return(0,e.jsxs)(a.az,{children:[(0,e.jsx)(a.Hg,{icon:C.icon,icon_state:C.icon_state,style:{verticalAlign:"middle",width:"32px",margin:"0px",marginLeft:"0px"}}),(0,e.jsx)(a.$n,{icon:"hammer",disabled:!f(C,g.brass_amount,g.power_amount),onClick:function(){return h("make",{cat:p,name:C.name})},children:(0,s.Sn)((0,s.Sn)(C.name))}),(0,e.jsx)(a.az,{inline:!0,verticalAlign:"middle",lineHeight:"20px",style:{float:"right"},children:C.requirements&&Object.keys(C.requirements).map(function(I){return(0,s.Sn)(I)+": "+C.requirements[I]}).join(", ")||(0,e.jsx)(a.az,{children:"No resources required."})}),(0,e.jsx)(a.az,{style:{clear:"both"}})]},C.name)})}))}},9037:(q,S,r)=>{"use strict";r.r(S),r.d(S,{Wires:()=>a});var e=r(1131),s=r(5180),n=r(360),t=r(3521),a=function(b){var y=(0,n.Oc)().data,u=y.proper_name,f=y.status,m=f===void 0?[]:f,d=y.wires,v=d===void 0?[]:d,_=150+v.length*30+(u?30:0);return(0,e.jsx)(t.p8,{width:350,height:_,children:(0,e.jsx)(t.p8.Content,{children:(0,e.jsxs)(s.BJ,{fill:!0,vertical:!0,children:[!!u&&(0,e.jsx)(s.BJ.Item,{children:(0,e.jsxs)(s.IC,{textAlign:"center",children:[u," Wire Configuration"]})}),(0,e.jsx)(s.BJ.Item,{grow:!0,children:(0,e.jsx)(s.wn,{fill:!0,children:(0,e.jsx)(O,{})})}),!!m.length&&(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(s.wn,{children:m.map(function(l){return(0,e.jsx)(s.az,{color:"lightgray",children:l},l)})})})]})})})},O=function(b){var y=(0,n.Oc)(),u=y.act,f=y.data,m=f.wires;return(0,e.jsx)(s.Ki,{children:m.map(function(d){return(0,e.jsx)(s.Ki.Item,{className:"candystripe",label:d.color_name,labelColor:d.seen_color,color:d.seen_color,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(s.$n,{content:d.cut?"Mend":"Cut",onClick:function(){return u("cut",{wire:d.color})}}),(0,e.jsx)(s.$n,{content:"Pulse",onClick:function(){return u("pulse",{wire:d.color})}}),(0,e.jsx)(s.$n,{content:d.attached?"Detach":"Attach",onClick:function(){return u("attach",{wire:d.color})}})]}),children:!!d.wire&&(0,e.jsxs)("i",{children:["(",d.wire,")"]})},d.color)})})}},9076:(q,S,r)=>{"use strict";r.r(S),r.d(S,{pda_power:()=>n});var e=r(1131),s=r(4416),n=function(t){return(0,e.jsx)(s.PowerMonitorMainContent,{})}},9119:(q,S,r)=>{"use strict";r.r(S),r.d(S,{Loadout:()=>u});var e=r(1131),s=r(9845),n=r(360),t=r(7003),a=r(5180),O=r(3521);function b(){return b=Object.assign||function(_){for(var l=1;l2?$=Object.entries(h.gears).reduce(function(W,N){var Z=N[0],ie=N[1];return W.concat(Object.entries(ie).map(function(Q){var V=Q[0],G=Q[1];return{key:V,gear:G}}))},[]).filter(function(W){var N=W.gear;return F(N)}):$=Object.entries(h.gears[x]).map(function(W){var N=W[0],Z=W[1];return{key:N,gear:Z}}),$.sort(y[w]),R&&($=$.reverse()),(0,e.jsx)(a.wn,{fill:!0,scrollable:!0,title:x,buttons:(0,e.jsxs)(a.BJ,{children:[(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(a.ms,{height:1.66,selected:w,options:Object.keys(y),onSelected:function(W){return T(W)}})}),(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(a.$n,{icon:R?"arrow-down-wide-short":"arrow-down-short-wide",tooltip:R?"\u041F\u043E \u0432\u043E\u0437\u0440\u0430\u0441\u0442\u0430\u043D\u0438\u044E":"\u041F\u043E \u0443\u0431\u044B\u0432\u0430\u043D\u0438\u044E",tooltipPosition:"bottom-end",onClick:function(){return U(!R)}})}),C&&(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(a.pd,{width:20,placeholder:"\u041F\u043E\u0438\u0441\u043A...",value:P,expensive:!0,onChange:M})}),(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(a.$n,{icon:"magnifying-glass",selected:C,tooltip:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0438\u0441\u043A\u043E\u0432\u0443\u044E \u0441\u0442\u0440\u043E\u043A\u0443",tooltipPosition:"bottom-end",onClick:function(){I(!C),M("")}})})]}),children:$.map(function(W){var N=W.key,Z=W.gear,ie=12,Q=Object.keys(h.selected_gears).includes(N),V=(Z.cost===1,""+Z.cost+" \u041E\u0447\u043A"+(0,s.bl)(Z.cost,"\u043E","\u0430","\u043E\u0432")),G=(0,e.jsxs)(a.az,{children:[Z.name.length>ie&&(0,e.jsx)(a.az,{children:Z.name}),Z.gear_tier>g&&(0,e.jsx)(a.az,{mt:Z.name.length>ie&&1.5,textColor:"red",children:"\u041D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u043E \u043D\u0430 \u0432\u0430\u0448\u0435\u043C \u0442\u0435\u043A\u0443\u0449\u0435\u043C \u0443\u0440\u043E\u0432\u043D\u0435 \u043F\u043E\u0436\u0435\u0440\u0442\u0432\u043E\u0432\u0430\u043D\u0438\u0439!"})]}),le=(0,e.jsxs)(e.Fragment,{children:[Z.allowed_roles&&(0,e.jsx)(a.$n,{width:"22px",color:"transparent",icon:"user",tooltip:(0,e.jsx)(a.wn,{m:-1,title:"\u0420\u0430\u0437\u0440\u0435\u0448\u0451\u043D\u043D\u044B\u0435 \u0434\u043E\u043B\u0436\u043D\u043E\u0441\u0442\u0438",children:Z.allowed_roles.map(function(de){return(0,e.jsx)(a.az,{children:de},de)})}),tooltipPosition:"left"}),Object.entries(Z.tweaks).map(function(de){var me=de[0],pe=de[1];return pe.map(function(Me){return(0,e.jsx)(a.$n,{width:"22px",color:"transparent",icon:Me.icon,tooltip:Me.tooltip,tooltipPosition:"top"},me)})}),(0,e.jsx)(a.$n,{width:"22px",color:"transparent",icon:"info",tooltip:Z.desc,tooltipPosition:"top"})]}),xe=(0,e.jsxs)(a.az,{className:"Loadout-InfoBox",children:[(0,e.jsx)(a.az,{style:{flexGrow:"1"},fontSize:.75,color:"gold",opacity:.75,children:Z.gear_tier>0&&"\u0423\u0440\u043E\u0432\u0435\u043D\u044C "+Z.gear_tier}),(0,e.jsx)(a.az,{fontSize:.75,opacity:.66,children:V})]});return(0,e.jsx)(a.c_,{m:.5,imageSize:84,dmIcon:Z.icon,dmIconState:Z.icon_state,tooltip:(Z.name.length>ie||Z.gear_tier>0)&&G,tooltipPosition:"bottom",selected:Q,disabled:Z.gear_tier>g||p+Z.cost>j&&!Q,buttons:le,buttonsAlt:xe,onClick:function(){return c("toggle_gear",{gear:Z.index_name})},children:Z.name},N)})})},d=function(_){var l=(0,n.Oc)(),c=l.act,h=l.data,g=_.setTweakedGear,p=Object.entries(h.gears).reduce(function(j,x){var C=x[0],I=x[1],P=Object.entries(I).filter(function(M){var B=M[0];return Object.keys(h.selected_gears).includes(B)}).map(function(M){var B=M[0],w=M[1];return b({key:B},w)});return j.concat(P)},[]);return(0,e.jsxs)(a.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(a.BJ.Item,{grow:!0,children:(0,e.jsx)(a.wn,{fill:!0,scrollable:!0,title:"\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u043E\u0435 \u0441\u043D\u0430\u0440\u044F\u0436\u0435\u043D\u0438\u0435",buttons:(0,e.jsx)(a.$n.Confirm,{icon:"trash",tooltip:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u0441\u043F\u0438\u0441\u043E\u043A",tooltipPosition:"bottom-end",onClick:function(){return c("clear_loadout")}}),children:p.map(function(j){var x=h.selected_gears[j.key];return(0,e.jsx)(a.c_,{fluid:!0,imageSize:48,base64:x.icon,dmIcon:x.icon_file?x.icon_file:j.icon,dmIconState:x.icon_state?x.icon_state:j.icon_state,buttons:(0,e.jsxs)(e.Fragment,{children:[Object.entries(j.tweaks).length>0&&(0,e.jsx)(a.$n,{color:"translucent",icon:"gears",iconColor:"gray",width:"33px",onClick:function(){return g(j)}}),(0,e.jsx)(a.$n,{color:"translucent",icon:"times",iconColor:"red",width:"32px",onClick:function(){return c("toggle_gear",{gear:j.index_name})}})]}),children:x.name?x.name:j.name},j.key)})})}),(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(a.wn,{children:(0,e.jsx)(a.z2,{value:h.gear_slots,maxValue:h.max_gear_slots,ranges:{bad:[h.max_gear_slots,1/0],average:[h.max_gear_slots*.66,h.max_gear_slots],good:[0,h.max_gear_slots*.66]},children:(0,e.jsxs)(a.az,{textAlign:"center",children:["\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u043E \u043E\u0447\u043A\u043E\u0432 ",h.gear_slots,"/",h.max_gear_slots]})})})})]})},v=function(_){var l=(0,n.Oc)(),c=l.act,h=l.data,g=_.tweakedGear,p=_.setTweakedGear;return(0,e.jsx)(a.Rr,{children:(0,e.jsx)(a.az,{className:"Loadout-Modal__background",children:(0,e.jsx)(a.wn,{fill:!0,scrollable:!0,width:20,height:20,title:g.name,buttons:(0,e.jsx)(a.$n,{color:"red",icon:"times",tooltip:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",tooltipPosition:"top",onClick:function(){return p("")}}),children:(0,e.jsx)(a.Ki,{children:Object.entries(g.tweaks).map(function(j){var x=j[0],C=j[1];return C.map(function(I){var P=h.selected_gears[g.key][x];return(0,e.jsxs)(a.Ki.Item,{label:I.name,color:P?"":"gray",buttons:(0,e.jsx)(a.$n,{color:"transparent",icon:"pen",onClick:function(){return c("set_tweak",{gear:g.index_name,tweak:x})}}),children:[P||"\u041F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E",(0,e.jsx)(a.az,{inline:!0,ml:1,width:1,height:1,verticalAlign:"middle",style:{backgroundColor:""+P}})]},x)})})})})})})}},9138:(q,S,r)=>{"use strict";r.r(S),r.d(S,{Autolathe:()=>u});var e=r(1131),s=r(5070),n=r(1859),t=r(360),a=r(5180),O=r(3521),b=r(9845),y=function(f,m,d,v){return f.requirements===null?!0:!(f.requirements.metal*v>m||f.requirements.glass*v>d)},u=function(f){var m=(0,t.Oc)(),d=m.act,v=m.data,_=v.total_amount,l=v.metal_amount,c=v.glass_amount,h=v.busyname,g=v.buildQueue,p=v.buildQueueLen,j=v.recipes,x=v.categories,C=(0,t.QY)("category",""),I=C[0],P=C[1];I===""&&(I="\u0418\u043D\u0441\u0442\u0440\u0443\u043C\u0435\u043D\u0442\u044B");var M=l.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),B=c.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),w=_.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),T=(0,t.QY)("search_text",""),K=T[0],R=T[1],U=(0,b.XZ)(K,function(N){return N.name}),F=[];p>0&&(F=g.map(function(N,Z){return(0,e.jsx)(a.az,{children:(0,e.jsx)(a.$n,{fluid:!0,icon:"times",color:"transparent",onClick:function(){return d("remove_from_queue",{remove_from_queue:g.indexOf(N)+1})},children:g[Z][2]},N)},Z)}));var $=(0,s.L)([function(N){return(0,n.pb)(N,function(Z){return(Z.category.indexOf(I)>-1||K)&&(v.showhacked||!Z.hacked)})},function(N){return K?(0,n.pb)(N,U):N},function(N){return(0,n.Ul)(N,function(Z){return Z.name.toLowerCase()})}])(j),W="";return K?W='\u0420\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u044B \u043F\u043E\u0438\u0441\u043A\u0430: "'+K+'":':I&&(W='\u041A\u0430\u0442\u0435\u0433\u043E\u0440\u0438\u044F "'+I+'"'),(0,e.jsx)(O.p8,{width:750,height:525,children:(0,e.jsx)(O.p8.Content,{children:(0,e.jsxs)(a.BJ,{fill:!0,children:[(0,e.jsx)(a.BJ.Item,{width:"70%",children:(0,e.jsxs)(a.wn,{fill:!0,scrollable:!0,title:W,buttons:(0,e.jsx)(a.ms,{width:"150px",options:x,selected:I.toString(),onSelected:function(N){return P(N)}}),children:[(0,e.jsx)(a.pd,{fluid:!0,placeholder:"\u041D\u0430\u0439\u0442\u0438 \u0448\u0430\u0431\u043B\u043E\u043D...",expensive:!0,onChange:R,mb:1}),$.map(function(N){return(0,e.jsxs)(a.BJ.Item,{grow:!0,children:[(0,e.jsx)(a.Hg,{icon:N.icon,icon_state:N.icon_state,style:{verticalAlign:"middle",width:"32px",margin:"0px",marginLeft:"0px"}}),(0,e.jsx)(a.$n,{mr:1,icon:"hammer",selected:v.busyname===N.name&&v.busyamt===1,disabled:!y(N,v.metal_amount,v.glass_amount,1),tooltip:N.desc,onClick:function(){return d("make",{make:N.uid,multiplier:1})},children:(0,b.Sn)(N.name)}),N.max_multiplier>=10&&(0,e.jsx)(a.$n,{mr:1,icon:"hammer",selected:v.busyname===N.name&&v.busyamt===10,disabled:!y(N,v.metal_amount,v.glass_amount,10),onClick:function(){return d("make",{make:N.uid,multiplier:10})},children:"10x"}),N.max_multiplier>=25&&(0,e.jsx)(a.$n,{mr:1,icon:"hammer",selected:v.busyname===N.name&&v.busyamt===25,disabled:!y(N,v.metal_amount,v.glass_amount,25),onClick:function(){return d("make",{make:N.uid,multiplier:25})},children:"25x"}),N.max_multiplier>25&&(0,e.jsxs)(a.$n,{mr:1,icon:"hammer",selected:v.busyname===N.name&&v.busyamt===N.max_multiplier,disabled:!y(N,v.metal_amount,v.glass_amount,N.max_multiplier),onClick:function(){return d("make",{make:N.uid,multiplier:N.max_multiplier})},children:[N.max_multiplier,"x"]}),N.requirements&&Object.keys(N.requirements).map(function(Z){return(0,b.Sn)(Z)+": "+N.requirements[Z]}).join(", ")||(0,e.jsx)(a.az,{children:"\u041C\u0430\u0442\u0435\u0440\u0438\u0430\u043B\u044B \u043D\u0435 \u0442\u0440\u0435\u0431\u0443\u044E\u0442\u0441\u044F."})]},N.ref)})]})}),(0,e.jsxs)(a.BJ.Item,{width:"30%",children:[(0,e.jsx)(a.wn,{title:"\u041C\u0430\u0442\u0435\u0440\u0438\u0430\u043B\u044B",children:(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"\u0421\u0442\u0430\u043B\u044C",children:M}),(0,e.jsx)(a.Ki.Item,{label:"\u0421\u0442\u0435\u043A\u043B\u043E",children:B}),(0,e.jsx)(a.Ki.Item,{label:"\u0412\u0441\u0435\u0433\u043E",children:w}),(0,e.jsxs)(a.Ki.Item,{label:"\u0425\u0440\u0430\u043D\u0438\u043B\u0438\u0449\u0435",children:[v.fill_percent,"%"]})]})}),(0,e.jsx)(a.wn,{title:"\u0412 \u043F\u0440\u043E\u0446\u0435\u0441\u0441\u0435 \u043F\u0435\u0447\u0430\u0442\u0438",children:(0,e.jsx)(a.az,{color:h?"green":"",children:h||"\u041D\u0438\u0447\u0435\u0433\u043E"})}),(0,e.jsxs)(a.wn,{title:"\u041E\u0447\u0435\u0440\u0435\u0434\u044C \u043F\u0435\u0447\u0430\u0442\u0438",height:23.7,children:[F,(0,e.jsx)(a.$n,{mt:.5,fluid:!0,icon:"times",color:"red",disabled:!v.buildQueueLen,onClick:function(){return d("clear_queue")},children:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u043E\u0447\u0435\u0440\u0435\u0434\u044C"})]})]})]})})})}},9160:(q,S,r)=>{"use strict";r.d(S,{l:()=>f,z:()=>b});var e=r(1131),s=r(360),n=r(6587),t=r(1997),a=r(3521);/** + */var t={title:"Collapsible",render:function(){return(0,e.jsx)(a,{})}},a=function(b){return(0,e.jsx)(s.wn,{children:(0,e.jsx)(s.Nt,{title:"Collapsible Demo",buttons:(0,e.jsx)(s.$n,{icon:"cog"}),children:(0,e.jsx)(n.l,{})})})}},8951:(q,S,r)=>{"use strict";r.r(S),r.d(S,{ModuleDetails:()=>u,ModuleDetailsExtra:()=>C,ModulesPane:()=>y});var e=r(1131),s=r(5180),n=r(8477),t=r(9818),a=r(7003),b=r(360),O=r(78),y=function(W){var N=(0,b.Oc)(),Z=N.act,ie=N.data,Q=ie.modules,V=ie.selected_module_index,G=ie.cargo,le=ie.maint_access,xe=ie.maintance_progress,de=ie.radio_data,me=ie.ui_honked,pe=(0,a.useState)(0),Me=pe[0],Ke=pe[1],Le=(0,O.useHonk)(me?.4:0);return(0,e.jsxs)(s.BJ,{fill:!0,vertical:!0,children:[(0,e.jsxs)(s.tU,{children:[(0,e.jsxs)(s.tU.Tab,{selected:Me===0,onClick:function(){return Ke(0)},children:[(0,e.jsx)(s.In,{name:"table"})," ",Le("\u041C\u043E\u0434\u0443\u043B\u0438")]},"Modules"),(0,e.jsxs)(s.tU.Tab,{selected:Me===1,onClick:function(){return Ke(1)},children:[(0,e.jsx)(s.In,{name:"box"})," ",Le("\u0413\u0440\u0443\u0437")]},"Cargo"),(0,e.jsxs)(s.tU.Tab,{selected:Me===2,onClick:function(){return Ke(2)},children:[(0,e.jsx)(s.In,{name:"cog"})," ",Le("\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438")]},"Settings")]}),Me===0&&(0,e.jsx)(s.wn,{style:{overflowY:"auto"},children:(0,e.jsxs)(s.BJ,{children:[(0,e.jsx)(s.BJ.Item,{children:Q.map(function(Se,ln){return Se.ref?(0,e.jsx)(s.$n,{maxWidth:16,p:"4px",pr:"8px",fluid:!0,selected:ln===V,onClick:function(){return Z("select_module",{index:ln})},children:(0,e.jsxs)(s.BJ,{children:[(0,e.jsx)(s.BJ.Item,{lineHeight:"0",children:(0,e.jsx)(s.Hg,{icon:Se.icon,icon_state:Se.icon_state,style:{verticalAlign:"middle",width:"32px",margin:"0px",marginLeft:"0px"}})}),(0,e.jsx)(s.BJ.Item,{lineHeight:"32px",style:{textTransform:"capitalize",overflow:"hidden",textOverflow:"ellipsis"},children:Se.name})]})},ln):(0,e.jsx)(s.$n,{maxWidth:16,p:"4px",pr:"8px",fluid:!0,color:"transparent",children:(0,e.jsx)(s.BJ,{children:(0,e.jsx)(s.BJ.Item,{width:"32px",height:"32px",textAlign:"center",children:(0,e.jsx)(s.In,{fontSize:1.5,mx:0,my:"8px",name:"screwdriver - wrench"})})})},ln)})}),(0,e.jsx)(s.BJ.Item,{grow:!0,pl:1,children:V!==null&&Q[V]&&(0,e.jsx)(u,{module:Q[V]})})]})}),Me===1&&(0,e.jsxs)(s.wn,{fill:!0,style:{overflowY:"auto"},children:[(0,e.jsxs)(s.XI.Row,{header:!0,children:[(0,e.jsx)(s.XI.Cell,{width:"50%",children:"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435"}),(0,e.jsx)(s.XI.Cell,{width:"45%",children:"\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E"})]}),!!G.cargo_list&&G.cargo_list.map(function(Se){return(0,e.jsxs)(s.XI.Row,{children:[(0,e.jsx)(s.XI.Cell,{children:Se.name}),(0,e.jsx)(s.XI.Cell,{children:Se.amount}),(0,e.jsx)(s.XI.Cell,{children:(0,e.jsx)(s.$n,{color:"transparent",icon:"eject",tooltip:"\u0412\u044B\u0431\u0440\u043E\u0441\u0438\u0442\u044C \u043F\u0440\u0435\u0434\u043C\u0435\u0442",fontSize:1.5,onClick:function(){return Z("drop_from_cargo",{cargo_item:Se.ref})}})})]},Se.ref)})]}),Me===2&&(0,e.jsx)(s.wn,{fill:!0,style:{overflowY:"auto"},children:(0,e.jsxs)(s.Ki,{children:[(0,e.jsx)(s.Ki.Item,{label:Le("\u0420\u0430\u0437\u0440\u0435\u0448\u0438\u0442\u044C \u0442\u0435\u0445. \u043E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u043D\u0438\u0435"),children:(0,e.jsx)(s.$n,{disabled:xe,selected:le,icon:"power-off",content:le?"\u0412\u043A\u043B":"\u0412\u044B\u043A\u043B",onClick:function(){return Z("toggle_maint_access")}})}),(0,e.jsxs)(s.Ki.Item,{label:Le("\u0420\u0430\u0434\u0438\u043E"),children:[(0,e.jsx)(s.$n,{selected:de.microphone,icon:de.microphone?"microphone":"microphone-slash",onClick:function(){return Z("toggle_microphone")}}),(0,e.jsx)(s.$n,{selected:de.speaker,icon:de.speaker?"volume-up":"volume-mute",onClick:function(){return Z("toggle_speaker")}}),(0,e.jsx)(s.Q7,{animated:!0,unit:"kHz",step:.2,stepPixelSize:10,minValue:de.minFrequency/10,maxValue:de.maxFrequency/10,value:de.frequency/10,format:function(Se){return(0,t.Mg)(Se,1)},onDrag:function(Se){return Z("set_frequency",{new_frequency:Se*10})}})]})]})})]})},u=function(W){var N=(0,b.Oc)(),Z=N.act,ie=N.data,Q=W.module,V=Q.slot,G=Q.name,le=Q.desc,xe=Q.icon,de=Q.detachable,me=Q.ref,pe=Q.snowflake;return(0,e.jsxs)(s.az,{children:[(0,e.jsx)(s.wn,{children:(0,e.jsxs)(s.BJ,{vertical:!0,children:[(0,e.jsx)(s.BJ.Item,{children:(0,e.jsxs)(s.BJ,{children:[(0,e.jsx)(s.BJ.Item,{grow:!0,children:(0,e.jsx)("h2",{style:{textTransform:"capitalize"},children:G})}),!!de&&(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(s.$n,{color:"transparent",icon:"eject",tooltip:"\u041E\u0442\u0441\u043E\u0435\u0434\u0438\u043D\u0438\u0442\u044C",fontSize:1.5,onClick:function(){return Z("equip_act",{ref:me,gear_action:"detach"})}})})]})}),(0,e.jsx)(s.BJ.Item,{children:le})]})}),(0,e.jsx)(s.wn,{children:(0,e.jsxs)(s.Ki,{children:[(0,e.jsx)(f,{module:W.module}),!!pe&&(0,e.jsx)(C,{module:W.module})]})})]})},f=function(W){var N=(0,b.Oc)(),Z=N.act,ie=N.data,Q=ie.power_level,V=W.module,G=V.ref,le=V.slot,xe=V.integrity,de=V.can_be_toggled,me=V.can_be_triggered,pe=V.active,Me=V.active_label,Ke=V.equip_cooldown,Le=V.energy_per_use,Se=ie.ui_honked,ln=(0,O.useHonk)(Se?.4:0);return(0,e.jsxs)(e.Fragment,{children:[xe<1&&(0,e.jsx)(s.Ki.Item,{label:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",children:(0,e.jsx)(s.z2,{ranges:{good:[.75,1/0],average:[.25,.75],bad:[-1/0,.25]},value:xe})}),!!Le&&(0,e.jsx)(s.Ki.Item,{label:"\u0417\u0430\u0442\u0440\u0430\u0442\u044B \u044D\u043D\u0435\u0440\u0433\u0438\u0438",children:(0,n.d5)(Le)+", "+(Q?(0,t.Mg)(Q/Le):0)+" \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u0439 \u043E\u0441\u0442\u0430\u043B\u043E\u0441\u044C"}),!!Ke&&(0,e.jsx)(s.Ki.Item,{label:ln("\u041F\u0435\u0440\u0435\u0437\u0430\u0440\u044F\u0434\u043A\u0430"),children:Ke}),!!de&&(0,e.jsx)(s.Ki.Item,{label:ln(Me),children:(0,e.jsx)(s.$n,{icon:"power-off",content:ln(pe?"\u0412\u043A\u043B\u044E\u0447\u0435\u043D":" \u0412\u044B\u043A\u043B\u044E\u0447\u0435\u043D"),onClick:function(){return Z("equip_act",{ref:G,gear_action:"toggle"})},selected:pe})}),!!me&&(0,e.jsx)(s.Ki.Item,{label:ln(Me),children:(0,e.jsx)(s.$n,{icon:"check",content:ln("\u0412\u044B\u0431\u0440\u0430\u0442\u044C"),disabled:pe,onClick:function(){return Z("equip_act",{ref:G,gear_action:"select"})}})})]})},m="sleeper_snowflake",d="syringe_snowflake",v="mode_snowflake",_="extinguisher_snowflake",l="ballistic_weapon_snowflake",c="generator_snowflake",h="holo_snowflake",g="toolset_snowflake",p="multimodule_snowflake",j="cable_snoflake",x="cage_snowflake",C=function(W){var N=W.module;switch(N.snowflake.snowflake_id){case l:return(0,e.jsx)(I,{module:N});case _:return(0,e.jsx)(T,{module:N});case m:return(0,e.jsx)(P,{module:N});case d:return(0,e.jsx)(M,{module:N});case v:return(0,e.jsx)(B,{module:N});case c:return(0,e.jsx)(K,{module:N});case g:return(0,e.jsx)($,{module:N});case p:return(0,e.jsx)(F,{module:N});case j:return(0,e.jsx)(w,{module:N});case h:return(0,e.jsx)(R,{module:N});case x:return(0,e.jsx)(U,{module:N});default:return null}},I=function(W){var N=(0,b.Oc)(),Z=N.act,ie=N.data,Q=W.module.ref,V=W.module.snowflake,G=V.max_ammo,le=V.total_ammo,xe=ie.ui_honked,de=(0,O.useHonk)(xe?.4:0);return(0,e.jsx)(s.Ki.Item,{label:de("\u0411\u043E\u0435\u043F\u0440\u0438\u043F\u0430\u0441\u044B"),buttons:G!==0&&(0,e.jsx)(s.$n,{icon:"redo",disabled:le===G,tooltip:"\u041F\u0435\u0440\u0435\u0437\u0430\u0440\u044F\u0434\u043A\u0430",tooltipPosition:"top",onClick:function(){return Z("equip_act",{ref:Q,gear_action:"rearm"})}}),children:G?(0,e.jsx)(s.z2,{value:le/G,children:le+" \u0438\u0437 "+G}):le})},P=function(W){var N=(0,b.Oc)(),Z=N.act,ie=N.data,Q=W.module.ref,V=W.module.snowflake,G=V.patient,le=V.contained_reagents,xe=V.injectible_reagents,de=V.has_brain_damage,me=V.has_traumas;return G?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(s.Ki.Item,{label:"\u041F\u0430\u0446\u0438\u0435\u043D\u0442",buttons:(0,e.jsx)(s.$n,{icon:"eject",tooltip:"Eject",onClick:function(){return Z("equip_act",{ref:Q,gear_action:"eject"})}}),children:G.patient_name}),(0,e.jsx)(s.Ki.Item,{label:"\u0417\u0434\u043E\u0440\u043E\u0432\u044C\u0435",children:(0,e.jsx)(s.z2,{ranges:{good:[.75,1/0],average:[.25,.75],bad:[-1/0,.25]},value:G.patient_health})}),(0,e.jsx)(s.Ki.Item,{className:"candystripe",label:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",children:G.patient_state}),(0,e.jsxs)(s.Ki.Item,{className:"candystripe",label:"T\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430",children:[G.core_temp," C"]}),(0,e.jsx)(s.Ki.Item,{className:"candystripe",label:"\u0422\u0440\u0430\u0432\u043C\u044B",children:G.brute_loss}),(0,e.jsx)(s.Ki.Item,{className:"candystripe",label:"\u041E\u0436\u043E\u0433\u0438",children:G.burn_loss}),(0,e.jsx)(s.Ki.Item,{className:"candystripe",label:"T\u043E\u043A\u0441\u0438\u043D\u044B",children:G.toxin_loss}),(0,e.jsx)(s.Ki.Item,{className:"candystripe",label:"\u041A\u0438\u0441\u043B\u043E\u0440\u043E\u0434",children:G.oxygen_loss}),!!de&&(0,e.jsx)(s.Ki.Item,{className:"candystripe",label:"\u041E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D",children:"\u0423\u0440\u043E\u043D \u043C\u043E\u0437\u0433\u0443"}),(0,e.jsx)(s.Ki.Item,{label:"\u0420\u0435\u0430\u0433\u0435\u043D\u0442\u044B",children:le.map(function(pe){return(0,e.jsx)(s.Ki.Item,{className:"candystripe",labelWrap:!0,label:pe.name,children:(0,e.jsx)(s.Ki.Item,{label:""+pe.volume+"u"})},pe.name)})}),(0,e.jsx)(s.Ki.Item,{label:"\u0418\u043D\u044A\u0435\u043A\u0446\u0438\u0438",children:xe?xe.map(function(pe){return(0,e.jsx)(s.Ki.Item,{labelWrap:!0,className:"candystripe",label:pe.name,children:(0,e.jsx)(s.Ki.Item,{label:""+pe.volume+"u",children:(0,e.jsx)(s.$n,{onClick:function(){return Z("equip_act",{ref:Q,gear_action:"inject_reagent",reagent:pe.id})},children:"Inject"})})},pe.name)}):"\u041D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u043E"})]}):(0,e.jsx)(s.Ki.Item,{label:"\u041F\u0430\u0446\u0438\u0435\u043D\u0442",children:"\u041E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442"})},M=function(W){var N=(0,b.Oc)(),Z=N.act,ie=N.data,Q=ie.power_level,V=W.module,G=V.ref,le=V.energy_per_use,xe=V.equip_cooldown,de=W.module.snowflake,me=de.mode,pe=de.syringe,Me=de.max_syringe,Ke=de.reagents,Le=de.total_reagents,Se=de.contained_reagents,ln=de.analyzed_reagents;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(s.Ki.Item,{label:"\u0428\u043F\u0440\u0438\u0446\u044B",children:(0,e.jsx)(s.z2,{value:pe/Me,children:pe+" \u0438\u0437 "+Me})}),(0,e.jsx)(s.Ki.Item,{label:"\u0420\u0435\u0430\u0433\u0435\u043D\u0442\u044B",children:(0,e.jsx)(s.z2,{value:Ke/Le,children:Ke+" \u0438\u0437 "+Le+" \u044E\u043D\u0438\u0442\u043E\u0432"})}),(0,e.jsx)(s.Ki.Item,{label:"\u0420\u0435\u0436\u0438\u043C",children:(0,e.jsx)(s.$n,{content:me,onClick:function(){return Z("equip_act",{ref:G,gear_action:"change_mode"})}})}),(0,e.jsx)(s.Ki.Item,{label:"\u0421\u0438\u043D\u0442\u0435\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435",children:ln.map(function(ze){return(0,e.jsx)(s.Ki.Item,{labelWrap:!0,label:ze.name,children:(0,e.jsx)(s.$n.Checkbox,{checked:ze.enabled,onClick:function(){return Z("equip_act",{ref:G,gear_action:"toggle_reagent",reagent:ze.name})}})},ze.name)})}),(0,e.jsx)(s.Ki.Item,{children:(0,e.jsx)(s.$n,{onClick:function(){return Z("equip_act",{ref:G,gear_action:"purge_all"})},children:"Purge All"})}),Se.map(function(ze){return(0,e.jsx)(s.Ki.Item,{labelWrap:!0,label:ze.name,children:(0,e.jsx)(s.Ki.Item,{label:""+ze.volume+"u",children:(0,e.jsx)(s.$n,{onClick:function(){return Z("equip_act",{ref:G,gear_action:"purge_reagent",reagent:ze.id})},children:"Purge"})})},ze.name)})]})},B=function(W){var N=(0,b.Oc)(),Z=N.act,ie=N.data,Q=W.module.ref,V=W.module.snowflake,G=V.mode,le=V.mode_label;return(0,e.jsx)(s.Ki.Item,{label:le,children:(0,e.jsx)(s.$n,{content:G,onClick:function(){return Z("equip_act",{ref:Q,gear_action:"change_mode"})}})})},w=function(W){var N=(0,b.Oc)(),Z=N.act,ie=N.data,Q=W.module.ref,V=W.module.snowflake.cable;return(0,e.jsx)(s.Ki.Item,{label:"\u041A\u043E\u043B-\u0432\u043E",children:V})},T=function(W){var N=(0,b.Oc)(),Z=N.act,ie=N.data,Q=W.module.ref,V=W.module.snowflake,G=V.reagents,le=V.total_reagents,xe=V.reagents_required;return(0,e.jsx)(s.Ki.Item,{label:"\u0412\u043E\u0434\u0430",children:(0,e.jsx)(s.z2,{value:G,minValue:0,maxValue:le,children:G})})},K=function(W){var N=(0,b.Oc)(),Z=N.act,ie=N.data,Q=ie.mineral_material_amount,V=W.module,G=V.ref,le=V.name,xe=W.module.snowflake,de=xe.active,me=xe.fuel_amount;return(0,e.jsx)(s.Ki.Item,{label:"\u0422\u043E\u043F\u043B\u0438\u0432\u043E",buttons:(0,e.jsx)(s.$n,{icon:"power-off",selected:de,tooltip:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0433\u0435\u043D\u0435\u0440\u0430\u0446\u0438\u044E \u044D\u043D\u0435\u0440\u0433\u0438\u0438",tooltipPosition:"top",onClick:function(){return Z("equip_act",{ref:G,gear_action:"toggle_generator"})}}),children:me===null?"\u043D\u0435\u0442":""+(0,t.Mg)(me,.1)+" cm\xB3"})},R=function(W){var N=(0,b.Oc)(),Z=N.act,ie=N.data,Q=W.module.ref,V=W.module.snowflake,G=V.max_barriers,le=V.total_barriers;return(0,e.jsx)(s.Ki.Item,{label:"\u0411\u0430\u0440\u044C\u0435\u0440\u044B",children:(0,e.jsx)(s.z2,{value:le/G,children:le+" \u0438\u0437 "+G})})},U=function(W){var N=(0,b.Oc)(),Z=N.act,ie=N.data,Q=W.module.ref,V=W.module.snowflake.prisoner;return(0,e.jsx)(s.Ki.Item,{buttons:(0,e.jsx)(s.$n,{icon:"eject",tooltip:"\u041E\u0441\u0432\u043E\u0431\u043E\u0434\u0438\u0442\u044C",tooltipPosition:"top",onClick:function(){return Z("equip_act",{ref:Q,gear_action:"eject"})}}),label:"\u0417\u0430\u043A\u043B\u044E\u0447\u0435\u043D\u043D\u044B\u0439",children:V||"\u041E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442"})},F=function(W){var N=(0,b.Oc)(),Z=N.act,ie=N.data,Q=W.module.ref,V=W.module.snowflake.targeted_module;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(s.Ki.Item,{label:"\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0439 \u043C\u043E\u0434\u0443\u043B\u044C",children:V?V.name:"\u041E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442"}),!!V&&(0,e.jsx)(C,{module:V})]})},$=function(W){var N=(0,b.Oc)(),Z=N.act,ie=N.data,Q=W.module.ref,V=W.module.snowflake,G=V.selected_item,le=V.items;return(0,e.jsx)(s.Ki.Item,{label:"\u0418\u043D\u0441\u0442\u0440\u0443\u043C\u0435\u043D\u0442",children:(0,e.jsx)(s.ms,{options:Object.keys(le),selected:G,onSelected:function(xe){return Z("equip_act",{ref:Q,gear_action:"change_tool",selected_item:le[xe]})}})})}},8961:(q,S,r)=>{"use strict";r.d(S,{H:()=>b,O:()=>a});var e=r(1131),s=r(1788);function n(){return n=Object.assign||function(O){for(var y=1;y=0)&&(u[m]=O[m]);return u}var a=function(O){return O[O.NORTH=1]="NORTH",O[O.SOUTH=2]="SOUTH",O[O.EAST=4]="EAST",O[O.WEST=8]="WEST",O[O.NORTHEAST=5]="NORTHEAST",O[O.NORTHWEST=9]="NORTHWEST",O[O.SOUTHEAST=6]="SOUTHEAST",O[O.SOUTHWEST=10]="SOUTHWEST",O}({}),b=function(O){var y,u=O.className,f=O.direction,m=f===void 0?2:f,d=O.fallback,v=O.frame,_=v===void 0?1:v,l=O.icon_state,c=O.icon,h=O.movement,g=h===void 0?!1:h,p=t(O,["className","direction","fallback","frame","icon_state","icon","movement"]),j=(y=Byond.iconRefMap)==null?void 0:y[c];if(!j)return d;var x=j+"?state="+l+"&dir="+m+"&movement="+!!g+"&frame="+_;return(0,e.jsx)(s._,n({fixErrors:!0,fixBlur:!0,src:x},p))}},8968:(q,S,r)=>{"use strict";r.r(S),r.d(S,{ABSOLUTE_Y_OFFSET:()=>s,DEFAULT_COMPONENT_MENU_LIMIT:()=>b,MOUSE_BUTTON_LEFT:()=>n,NULL_REF:()=>e,OPTION_DROPDOWN_LARGE_CHAR_AMOUNT:()=>t,TIME_UNTIL_PORT_RELEASE_WORKS:()=>a,VARIABLE_ASSOC_LIST:()=>f,VARIABLE_LIST:()=>u,VARIABLE_NOT_A_LIST:()=>y,noop:()=>O});var e="[0x0]",s=-32,n=0,t=12,a=100,b=6,O=function(){},y=1,u=2,f=3},8972:(q,S,r)=>{"use strict";r.r(S),r.d(S,{Smartfridge:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(b){var O=(0,s.Oc)(),y=O.act,u=O.data,f=u.secure,m=u.can_dry,d=u.drying,v=u.contents;return(0,e.jsx)(t.p8,{width:500,height:500,children:(0,e.jsx)(t.p8.Content,{children:(0,e.jsxs)(n.BJ,{fill:!0,vertical:!0,children:[!!f&&(0,e.jsx)(n.IC,{children:"\u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044F \u0430\u0432\u0442\u043E\u0440\u0438\u0437\u0430\u0446\u0438\u044F. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043F\u0440\u0435\u0434\u044A\u044F\u0432\u0438\u0442\u0435 \u0441\u0432\u043E\u044E ID-\u043A\u0430\u0440\u0442\u0443."}),(0,e.jsxs)(n.wn,{fill:!0,scrollable:!0,title:m?"\u0421\u0443\u0448\u0438\u043B\u044C\u043D\u0430\u044F \u0441\u0442\u043E\u0439\u043A\u0430":"\u0421\u043E\u0434\u0435\u0440\u0436\u0438\u043C\u043E\u0435",buttons:!!m&&(0,e.jsx)(n.$n,{width:11,icon:d?"power-off":"times",selected:d,onClick:function(){return y("drying")},children:d?"\u041D\u0430\u0447\u0430\u0442\u044C \u0441\u0443\u0448\u043A\u0443":"\u0417\u0430\u043A\u043E\u043D\u0447\u0438\u0442\u044C \u0441\u0443\u0448\u043A\u0443"}),children:[!v&&(0,e.jsx)(n.BJ,{fill:!0,children:(0,e.jsxs)(n.BJ.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.jsxs)(n.In.Stack,{style:{transform:"translate(-30px, -50px)"},children:[(0,e.jsx)(n.In,{name:"cookie-bite",size:5,color:"brown"}),(0,e.jsx)(n.In,{name:"slash",size:5,color:"red",style:{transform:"translate(-5px, 0)"}})]}),(0,e.jsx)("br",{}),"\u0425\u0440\u0430\u043D\u0438\u043B\u0438\u0449\u0435 \u043F\u0443\u0441\u0442\u043E."]})}),!!v&&v.slice().sort(function(_,l){return _.display_name.localeCompare(l.display_name)}).map(function(_){return(0,e.jsxs)(n.BJ,{children:[(0,e.jsx)(n.BJ.Item,{width:"55%",children:_.display_name}),(0,e.jsxs)(n.BJ.Item,{width:"25%",children:["(",_.quantity," \u0432 \u043D\u0430\u043B\u0438\u0447\u0438\u0438)"]}),(0,e.jsxs)(n.BJ.Item,{width:13,children:[(0,e.jsx)(n.$n,{width:3,icon:"arrow-down",tooltip:"\u0412\u0437\u044F\u0442\u044C \u043E\u0434\u043D\u0443 \u0448\u0442\u0443\u043A\u0443.",onClick:function(){return y("vend",{index:_.vend,amount:1})},children:"1"}),(0,e.jsx)(n.Q7,{width:"40px",minValue:0,value:0,maxValue:_.quantity,step:1,stepPixelSize:3,onChange:function(l){return y("vend",{index:_.vend,amount:l})}}),(0,e.jsx)(n.$n,{width:4,icon:"arrow-down",tooltip:"\u0412\u0437\u044F\u0442\u044C \u0432\u0441\u0451.",tooltipPosition:"bottom-start",onClick:function(){return y("vend",{index:_.vend,amount:_.quantity})},children:"\u0412\u0441\u0451"})]})]},_.display_name)})]})]})})})}},8996:(q,S,r)=>{"use strict";r.r(S),r.d(S,{Workshop:()=>m});var e=r(1131),s=r(9845),n=r(360),t=r(7003),a=r(5180),b=r(3814),O=r(3521);function y(){return y=Object.assign||function(l){for(var c=1;c=0)&&(h[p]=l[p]);return h}var f=function(l,c,h){return l.requirements===null?!0:!(l.requirements.brass>c||l.requirements.power>h)},m=function(l){var c=(0,n.Oc)(),h=c.act,g=c.data,p=g.brass_amount,j=g.power_amount,x=g.building,C=g.buildStart,I=g.buildEnd,P=g.worldTime,M=(0,t.useState)(""),B=M[0],w=M[1],T=(0,t.useState)(!1),K=T[0],R=T[1],U=p.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),F=j.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,");return(0,e.jsx)(O.p8,{width:400,height:500,theme:"clockwork",children:(0,e.jsx)(O.p8.Content,{children:(0,e.jsxs)(a.BJ,{fill:!0,vertical:!0,children:[(0,e.jsxs)(a.BJ.Item,{children:[(0,e.jsx)(d,{setSearchText:w,descending:K,setDescending:R}),(0,e.jsxs)(a.wn,{title:"Materials",children:[(0,e.jsxs)(a.Ki,{children:[(0,e.jsxs)(a.Ki.Item,{label:"Brass",children:[U,(0,e.jsx)(a.$n,{icon:"arrow-down",height:"19px",tooltip:"Dispense Brass",tooltipPosition:"bottom-start",ml:"0.5rem",onClick:function(){return h("dispense")}})]}),(0,e.jsx)(a.Ki.Item,{label:"Power",children:F})]}),x&&(0,e.jsxs)(a.z2.Countdown,{mt:2,start:C,current:P,end:I,bold:!0,children:["Building ",x,"\xA0(",(0,e.jsx)(b.G,{current:P,timeLeft:I-P,format:function($,W){return W.substring(3)}}),")"]})]})]}),(0,e.jsx)(a.BJ.Item,{grow:!0,children:(0,e.jsx)(a.wn,{fill:!0,scrollable:!0,children:(0,e.jsx)(v,{searchText:B,descending:K})})})]})})})},d=function(l){var c=l.setSearchText,h=l.descending,g=l.setDescending;return(0,e.jsx)(a.az,{mb:"0.5rem",children:(0,e.jsxs)(a.BJ,{width:"100%",children:[(0,e.jsx)(a.BJ.Item,{grow:1,mr:"0.5rem",children:(0,e.jsx)(a.pd,{placeholder:"Search by item name..",width:"100%",expensive:!0,onChange:c})}),(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(a.$n,{icon:h?"arrow-down":"arrow-up",height:"19px",tooltip:h?"Descending order":"Ascending order",tooltipPosition:"bottom-start",ml:"0.5rem",onClick:function(){return g(!h)}})})]})})},v=function(l){var c=(0,n.Oc)().data,h=c.items,g=l.searchText,p=l.descending,j=(0,s.XZ)(g,function(I){return I[0]}),x=!1,C=Object.entries(h).map(function(I,P){var M=Object.entries(I[1]).filter(j).map(function(B){return B[1].affordable=f(B[1],c.brass_amount,c.power_amount),B[1]});if(M.length!==0)return p&&(M=M.reverse()),x=!0,(0,e.jsx)(_,{title:I[0],items:M},I[0])});return(0,e.jsx)(a.BJ.Item,{grow:1,children:(0,e.jsx)(a.wn,{children:x?C:(0,e.jsx)(a.az,{color:"label",children:"No items matching your criteria was found!"})})})},_=function(l){var c=(0,n.Oc)(),h=c.act,g=c.data,p=l.title,j=l.items,x=u(l,["title","items"]);return(0,e.jsx)(a.Nt,y({open:!0,title:p},x,{children:j.map(function(C){return(0,e.jsxs)(a.az,{children:[(0,e.jsx)(a.Hg,{icon:C.icon,icon_state:C.icon_state,style:{verticalAlign:"middle",width:"32px",margin:"0px",marginLeft:"0px"}}),(0,e.jsx)(a.$n,{icon:"hammer",disabled:!f(C,g.brass_amount,g.power_amount),onClick:function(){return h("make",{cat:p,name:C.name})},children:(0,s.Sn)((0,s.Sn)(C.name))}),(0,e.jsx)(a.az,{inline:!0,verticalAlign:"middle",lineHeight:"20px",style:{float:"right"},children:C.requirements&&Object.keys(C.requirements).map(function(I){return(0,s.Sn)(I)+": "+C.requirements[I]}).join(", ")||(0,e.jsx)(a.az,{children:"No resources required."})}),(0,e.jsx)(a.az,{style:{clear:"both"}})]},C.name)})}))}},9037:(q,S,r)=>{"use strict";r.r(S),r.d(S,{Wires:()=>a});var e=r(1131),s=r(5180),n=r(360),t=r(3521),a=function(O){var y=(0,n.Oc)().data,u=y.proper_name,f=y.status,m=f===void 0?[]:f,d=y.wires,v=d===void 0?[]:d,_=150+v.length*30+(u?30:0);return(0,e.jsx)(t.p8,{width:350,height:_,children:(0,e.jsx)(t.p8.Content,{children:(0,e.jsxs)(s.BJ,{fill:!0,vertical:!0,children:[!!u&&(0,e.jsx)(s.BJ.Item,{children:(0,e.jsxs)(s.IC,{textAlign:"center",children:[u," Wire Configuration"]})}),(0,e.jsx)(s.BJ.Item,{grow:!0,children:(0,e.jsx)(s.wn,{fill:!0,children:(0,e.jsx)(b,{})})}),!!m.length&&(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(s.wn,{children:m.map(function(l){return(0,e.jsx)(s.az,{color:"lightgray",children:l},l)})})})]})})})},b=function(O){var y=(0,n.Oc)(),u=y.act,f=y.data,m=f.wires;return(0,e.jsx)(s.Ki,{children:m.map(function(d){return(0,e.jsx)(s.Ki.Item,{className:"candystripe",label:d.color_name,labelColor:d.seen_color,color:d.seen_color,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(s.$n,{content:d.cut?"Mend":"Cut",onClick:function(){return u("cut",{wire:d.color})}}),(0,e.jsx)(s.$n,{content:"Pulse",onClick:function(){return u("pulse",{wire:d.color})}}),(0,e.jsx)(s.$n,{content:d.attached?"Detach":"Attach",onClick:function(){return u("attach",{wire:d.color})}})]}),children:!!d.wire&&(0,e.jsxs)("i",{children:["(",d.wire,")"]})},d.color)})})}},9076:(q,S,r)=>{"use strict";r.r(S),r.d(S,{pda_power:()=>n});var e=r(1131),s=r(4416),n=function(t){return(0,e.jsx)(s.PowerMonitorMainContent,{})}},9119:(q,S,r)=>{"use strict";r.r(S),r.d(S,{Loadout:()=>u});var e=r(1131),s=r(9845),n=r(360),t=r(7003),a=r(5180),b=r(3521);function O(){return O=Object.assign||function(_){for(var l=1;l2?$=Object.entries(h.gears).reduce(function(W,N){var Z=N[0],ie=N[1];return W.concat(Object.entries(ie).map(function(Q){var V=Q[0],G=Q[1];return{key:V,gear:G}}))},[]).filter(function(W){var N=W.gear;return F(N)}):$=Object.entries(h.gears[x]).map(function(W){var N=W[0],Z=W[1];return{key:N,gear:Z}}),$.sort(y[w]),R&&($=$.reverse()),(0,e.jsx)(a.wn,{fill:!0,scrollable:!0,title:x,buttons:(0,e.jsxs)(a.BJ,{children:[(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(a.ms,{height:1.66,selected:w,options:Object.keys(y),onSelected:function(W){return T(W)}})}),(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(a.$n,{icon:R?"arrow-down-wide-short":"arrow-down-short-wide",tooltip:R?"\u041F\u043E \u0432\u043E\u0437\u0440\u0430\u0441\u0442\u0430\u043D\u0438\u044E":"\u041F\u043E \u0443\u0431\u044B\u0432\u0430\u043D\u0438\u044E",tooltipPosition:"bottom-end",onClick:function(){return U(!R)}})}),C&&(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(a.pd,{width:20,placeholder:"\u041F\u043E\u0438\u0441\u043A...",value:P,expensive:!0,onChange:M})}),(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(a.$n,{icon:"magnifying-glass",selected:C,tooltip:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0438\u0441\u043A\u043E\u0432\u0443\u044E \u0441\u0442\u0440\u043E\u043A\u0443",tooltipPosition:"bottom-end",onClick:function(){I(!C),M("")}})})]}),children:$.map(function(W){var N=W.key,Z=W.gear,ie=12,Q=Object.keys(h.selected_gears).includes(N),V=(Z.cost===1,""+Z.cost+" \u041E\u0447\u043A"+(0,s.bl)(Z.cost,"\u043E","\u0430","\u043E\u0432")),G=(0,e.jsxs)(a.az,{children:[Z.name.length>ie&&(0,e.jsx)(a.az,{children:Z.name}),Z.gear_tier>g&&(0,e.jsx)(a.az,{mt:Z.name.length>ie&&1.5,textColor:"red",children:"\u041D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u043E \u043D\u0430 \u0432\u0430\u0448\u0435\u043C \u0442\u0435\u043A\u0443\u0449\u0435\u043C \u0443\u0440\u043E\u0432\u043D\u0435 \u043F\u043E\u0436\u0435\u0440\u0442\u0432\u043E\u0432\u0430\u043D\u0438\u0439!"})]}),le=(0,e.jsxs)(e.Fragment,{children:[Z.allowed_roles&&(0,e.jsx)(a.$n,{width:"22px",color:"transparent",icon:"user",tooltip:(0,e.jsx)(a.wn,{m:-1,title:"\u0420\u0430\u0437\u0440\u0435\u0448\u0451\u043D\u043D\u044B\u0435 \u0434\u043E\u043B\u0436\u043D\u043E\u0441\u0442\u0438",children:Z.allowed_roles.map(function(de){return(0,e.jsx)(a.az,{children:de},de)})}),tooltipPosition:"left"}),Object.entries(Z.tweaks).map(function(de){var me=de[0],pe=de[1];return pe.map(function(Me){return(0,e.jsx)(a.$n,{width:"22px",color:"transparent",icon:Me.icon,tooltip:Me.tooltip,tooltipPosition:"top"},me)})}),(0,e.jsx)(a.$n,{width:"22px",color:"transparent",icon:"info",tooltip:Z.desc,tooltipPosition:"top"})]}),xe=(0,e.jsxs)(a.az,{className:"Loadout-InfoBox",children:[(0,e.jsx)(a.az,{style:{flexGrow:"1"},fontSize:.75,color:"gold",opacity:.75,children:Z.gear_tier>0&&"\u0423\u0440\u043E\u0432\u0435\u043D\u044C "+Z.gear_tier}),(0,e.jsx)(a.az,{fontSize:.75,opacity:.66,children:V})]});return(0,e.jsx)(a.c_,{m:.5,imageSize:84,dmIcon:Z.icon,dmIconState:Z.icon_state,tooltip:(Z.name.length>ie||Z.gear_tier>0)&&G,tooltipPosition:"bottom",selected:Q,disabled:Z.gear_tier>g||p+Z.cost>j&&!Q,buttons:le,buttonsAlt:xe,onClick:function(){return c("toggle_gear",{gear:Z.index_name})},children:Z.name},N)})})},d=function(_){var l=(0,n.Oc)(),c=l.act,h=l.data,g=_.setTweakedGear,p=Object.entries(h.gears).reduce(function(j,x){var C=x[0],I=x[1],P=Object.entries(I).filter(function(M){var B=M[0];return Object.keys(h.selected_gears).includes(B)}).map(function(M){var B=M[0],w=M[1];return O({key:B},w)});return j.concat(P)},[]);return(0,e.jsxs)(a.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(a.BJ.Item,{grow:!0,children:(0,e.jsx)(a.wn,{fill:!0,scrollable:!0,title:"\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u043E\u0435 \u0441\u043D\u0430\u0440\u044F\u0436\u0435\u043D\u0438\u0435",buttons:(0,e.jsx)(a.$n.Confirm,{icon:"trash",tooltip:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u0441\u043F\u0438\u0441\u043E\u043A",tooltipPosition:"bottom-end",onClick:function(){return c("clear_loadout")}}),children:p.map(function(j){var x=h.selected_gears[j.key];return(0,e.jsx)(a.c_,{fluid:!0,imageSize:48,base64:x.icon,dmIcon:x.icon_file?x.icon_file:j.icon,dmIconState:x.icon_state?x.icon_state:j.icon_state,buttons:(0,e.jsxs)(e.Fragment,{children:[Object.entries(j.tweaks).length>0&&(0,e.jsx)(a.$n,{color:"translucent",icon:"gears",iconColor:"gray",width:"33px",onClick:function(){return g(j)}}),(0,e.jsx)(a.$n,{color:"translucent",icon:"times",iconColor:"red",width:"32px",onClick:function(){return c("toggle_gear",{gear:j.index_name})}})]}),children:x.name?x.name:j.name},j.key)})})}),(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(a.wn,{children:(0,e.jsx)(a.z2,{value:h.gear_slots,maxValue:h.max_gear_slots,ranges:{bad:[h.max_gear_slots,1/0],average:[h.max_gear_slots*.66,h.max_gear_slots],good:[0,h.max_gear_slots*.66]},children:(0,e.jsxs)(a.az,{textAlign:"center",children:["\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u043E \u043E\u0447\u043A\u043E\u0432 ",h.gear_slots,"/",h.max_gear_slots]})})})})]})},v=function(_){var l=(0,n.Oc)(),c=l.act,h=l.data,g=_.tweakedGear,p=_.setTweakedGear;return(0,e.jsx)(a.Rr,{children:(0,e.jsx)(a.az,{className:"Loadout-Modal__background",children:(0,e.jsx)(a.wn,{fill:!0,scrollable:!0,width:20,height:20,title:g.name,buttons:(0,e.jsx)(a.$n,{color:"red",icon:"times",tooltip:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",tooltipPosition:"top",onClick:function(){return p("")}}),children:(0,e.jsx)(a.Ki,{children:Object.entries(g.tweaks).map(function(j){var x=j[0],C=j[1];return C.map(function(I){var P=h.selected_gears[g.key][x];return(0,e.jsxs)(a.Ki.Item,{label:I.name,color:P?"":"gray",buttons:(0,e.jsx)(a.$n,{color:"transparent",icon:"pen",onClick:function(){return c("set_tweak",{gear:g.index_name,tweak:x})}}),children:[P||"\u041F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E",(0,e.jsx)(a.az,{inline:!0,ml:1,width:1,height:1,verticalAlign:"middle",style:{backgroundColor:""+P}})]},x)})})})})})})}},9138:(q,S,r)=>{"use strict";r.r(S),r.d(S,{Autolathe:()=>u});var e=r(1131),s=r(5070),n=r(1859),t=r(360),a=r(5180),b=r(3521),O=r(9845),y=function(f,m,d,v){return f.requirements===null?!0:!(f.requirements.metal*v>m||f.requirements.glass*v>d)},u=function(f){var m=(0,t.Oc)(),d=m.act,v=m.data,_=v.total_amount,l=v.metal_amount,c=v.glass_amount,h=v.busyname,g=v.buildQueue,p=v.buildQueueLen,j=v.recipes,x=v.categories,C=(0,t.QY)("category",""),I=C[0],P=C[1];I===""&&(I="\u0418\u043D\u0441\u0442\u0440\u0443\u043C\u0435\u043D\u0442\u044B");var M=l.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),B=c.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),w=_.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),T=(0,t.QY)("search_text",""),K=T[0],R=T[1],U=(0,O.XZ)(K,function(N){return N.name}),F=[];p>0&&(F=g.map(function(N,Z){return(0,e.jsx)(a.az,{children:(0,e.jsx)(a.$n,{fluid:!0,icon:"times",color:"transparent",onClick:function(){return d("remove_from_queue",{remove_from_queue:g.indexOf(N)+1})},children:g[Z][2]},N)},Z)}));var $=(0,s.L)([function(N){return(0,n.pb)(N,function(Z){return(Z.category.indexOf(I)>-1||K)&&(v.showhacked||!Z.hacked)})},function(N){return K?(0,n.pb)(N,U):N},function(N){return(0,n.Ul)(N,function(Z){return Z.name.toLowerCase()})}])(j),W="";return K?W='\u0420\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u044B \u043F\u043E\u0438\u0441\u043A\u0430: "'+K+'":':I&&(W='\u041A\u0430\u0442\u0435\u0433\u043E\u0440\u0438\u044F "'+I+'"'),(0,e.jsx)(b.p8,{width:750,height:525,children:(0,e.jsx)(b.p8.Content,{children:(0,e.jsxs)(a.BJ,{fill:!0,children:[(0,e.jsx)(a.BJ.Item,{width:"70%",children:(0,e.jsxs)(a.wn,{fill:!0,scrollable:!0,title:W,buttons:(0,e.jsx)(a.ms,{width:"150px",options:x,selected:I.toString(),onSelected:function(N){return P(N)}}),children:[(0,e.jsx)(a.pd,{fluid:!0,placeholder:"\u041D\u0430\u0439\u0442\u0438 \u0448\u0430\u0431\u043B\u043E\u043D...",expensive:!0,onChange:R,mb:1}),$.map(function(N){return(0,e.jsxs)(a.BJ.Item,{grow:!0,children:[(0,e.jsx)(a.Hg,{icon:N.icon,icon_state:N.icon_state,style:{verticalAlign:"middle",width:"32px",margin:"0px",marginLeft:"0px"}}),(0,e.jsx)(a.$n,{mr:1,icon:"hammer",selected:v.busyname===N.name&&v.busyamt===1,disabled:!y(N,v.metal_amount,v.glass_amount,1),tooltip:N.desc,onClick:function(){return d("make",{make:N.uid,multiplier:1})},children:(0,O.Sn)(N.name)}),N.max_multiplier>=10&&(0,e.jsx)(a.$n,{mr:1,icon:"hammer",selected:v.busyname===N.name&&v.busyamt===10,disabled:!y(N,v.metal_amount,v.glass_amount,10),onClick:function(){return d("make",{make:N.uid,multiplier:10})},children:"10x"}),N.max_multiplier>=25&&(0,e.jsx)(a.$n,{mr:1,icon:"hammer",selected:v.busyname===N.name&&v.busyamt===25,disabled:!y(N,v.metal_amount,v.glass_amount,25),onClick:function(){return d("make",{make:N.uid,multiplier:25})},children:"25x"}),N.max_multiplier>25&&(0,e.jsxs)(a.$n,{mr:1,icon:"hammer",selected:v.busyname===N.name&&v.busyamt===N.max_multiplier,disabled:!y(N,v.metal_amount,v.glass_amount,N.max_multiplier),onClick:function(){return d("make",{make:N.uid,multiplier:N.max_multiplier})},children:[N.max_multiplier,"x"]}),N.requirements&&Object.keys(N.requirements).map(function(Z){return(0,O.Sn)(Z)+": "+N.requirements[Z]}).join(", ")||(0,e.jsx)(a.az,{children:"\u041C\u0430\u0442\u0435\u0440\u0438\u0430\u043B\u044B \u043D\u0435 \u0442\u0440\u0435\u0431\u0443\u044E\u0442\u0441\u044F."})]},N.ref)})]})}),(0,e.jsxs)(a.BJ.Item,{width:"30%",children:[(0,e.jsx)(a.wn,{title:"\u041C\u0430\u0442\u0435\u0440\u0438\u0430\u043B\u044B",children:(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"\u0421\u0442\u0430\u043B\u044C",children:M}),(0,e.jsx)(a.Ki.Item,{label:"\u0421\u0442\u0435\u043A\u043B\u043E",children:B}),(0,e.jsx)(a.Ki.Item,{label:"\u0412\u0441\u0435\u0433\u043E",children:w}),(0,e.jsxs)(a.Ki.Item,{label:"\u0425\u0440\u0430\u043D\u0438\u043B\u0438\u0449\u0435",children:[v.fill_percent,"%"]})]})}),(0,e.jsx)(a.wn,{title:"\u0412 \u043F\u0440\u043E\u0446\u0435\u0441\u0441\u0435 \u043F\u0435\u0447\u0430\u0442\u0438",children:(0,e.jsx)(a.az,{color:h?"green":"",children:h||"\u041D\u0438\u0447\u0435\u0433\u043E"})}),(0,e.jsxs)(a.wn,{title:"\u041E\u0447\u0435\u0440\u0435\u0434\u044C \u043F\u0435\u0447\u0430\u0442\u0438",height:23.7,children:[F,(0,e.jsx)(a.$n,{mt:.5,fluid:!0,icon:"times",color:"red",disabled:!v.buildQueueLen,onClick:function(){return d("clear_queue")},children:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u043E\u0447\u0435\u0440\u0435\u0434\u044C"})]})]})]})})})}},9160:(q,S,r)=>{"use strict";r.d(S,{l:()=>f,z:()=>O});var e=r(1131),s=r(360),n=r(6587),t=r(1997),a=r(3521);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var O=r(2054),b=function(m,d){return function(){return(0,e.jsx)(a.p8,{children:(0,e.jsxs)(a.p8.Content,{scrollable:!0,children:[m==="notFound"&&(0,e.jsxs)("div",{children:["Interface ",(0,e.jsx)("b",{children:d})," was not found."]}),m==="missingExport"&&(0,e.jsxs)("div",{children:["Interface ",(0,e.jsx)("b",{children:d})," is missing an export."]})]})})}},y=function(){return(0,e.jsx)(a.p8,{children:(0,e.jsx)(a.p8.Content,{scrollable:!0})})},u=function(){return(0,e.jsx)(a.p8,{title:"Loading",children:(0,e.jsx)(a.p8.Content,{children:(0,e.jsx)(t.LoadingScreen,{})})})},f=function(){var m,d=(0,s.Oc)(),v=d.suspended,_=d.config,l=(0,n.Lo)(),c=l.kitchenSink,h=c===void 0?!1:c;if(v)return y;if(_?.refreshing)return u;for(var g=_==null||(m=_.interface)==null?void 0:m.name,p=[function(P){return"./"+P+".tsx"},function(P){return"./"+P+".jsx"},function(P){return"./"+P+"/index.tsx"},function(P){return"./"+P+"/index.jsx"}],j;!j&&p.length>0;){var x=p.shift(),C=x(g);try{j=O(C)}catch(P){if(P.code!=="MODULE_NOT_FOUND")throw P}}if(!j)return b("notFound",g);var I=j[g];return I||b("missingExport",g)}},9224:(q,S,r)=>{"use strict";r.r(S),r.d(S,{OreRedemption:()=>f});var e=r(1131),s=r(185),n=r(360),t=r(5180),a=r(3521),O=r(7003);function b(){return b=Object.assign||function(h){for(var g=1;g0?"good":"grey",children:u(C)}),(0,e.jsx)(t.Ki.Item,{children:(0,e.jsx)(t.$n,{disabled:!x,icon:"hand-holding-usd",onClick:function(){return p("claim")},children:"\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C"})})]}),(0,e.jsx)(t.cG,{}),I?(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"\u0414\u0438\u0441\u043A\u0435\u0442\u0430 \u0448\u0430\u0431\u043B\u043E\u043D\u0430 \u043F\u0435\u0447\u0430\u0442\u0438",children:(0,e.jsx)(t.$n,{selected:!0,bold:!0,icon:"eject",tooltip:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u0434\u0438\u0441\u043A\u0435\u0442\u0443.",onClick:function(){return p("eject_disk")},children:I.name})}),(0,e.jsx)(t.Ki.Item,{label:"\u0417\u0430\u0433\u0440\u0443\u0436\u0435\u043D\u043D\u044B\u0439 \u0448\u0430\u0431\u043B\u043E\u043D",children:(0,e.jsx)(t.az,{color:I.design&&(I.compatible?"good":"bad"),children:I.design||"\u041D/\u0414"})}),(0,e.jsx)(t.Ki.Item,{children:(0,e.jsx)(t.$n,{disabled:!I.design||!I.compatible,icon:"upload",tooltip:"\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0448\u0430\u0431\u043B\u043E\u043D \u043F\u0435\u0447\u0430\u0442\u0438 \u0432 \u043F\u0430\u043C\u044F\u0442\u044C \u043C\u0430\u0448\u0438\u043D\u044B.",onClick:function(){return p("download")},children:"\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C"})})]}):(0,e.jsx)(t.az,{color:"label",children:"\u0414\u0438\u0441\u043A\u0435\u0442\u0430 \u0448\u0430\u0431\u043B\u043E\u043D\u0430 \u043F\u0435\u0447\u0430\u0442\u0438 \u043E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442."})]}))},d=function(h){var g=(0,n.Oc)().data,p=g.sheets,j=b({},y(h));return(0,e.jsx)(t.BJ.Item,{grow:!0,height:"20%",children:(0,e.jsxs)(t.wn,b({fill:!0,scrollable:!0,className:"OreRedemption__Ores",p:"0"},j,{children:[(0,e.jsx)(_,{title:"\u041B\u0438\u0441\u0442\u044B \u043C\u0430\u0442\u0435\u0440\u0438\u0430\u043B\u043E\u0432",columns:[["\u0414\u043E\u0441\u0442\u0443\u043F\u043D\u043E","20%"],["\u0421\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u0440\u0443\u0434\u044B","25%"],["\u041F\u0435\u0440\u0435\u043F\u043B\u0430\u0432\u0438\u0442\u044C","10%"]]}),p.map(function(x){return(0,e.jsx)(l,{ore:x},x.id)})]}))})},v=function(h){var g=(0,n.Oc)().data,p=g.alloys,j=b({},y(h));return(0,e.jsx)(t.BJ.Item,{grow:!0,children:(0,e.jsxs)(t.wn,b({fill:!0,scrollable:!0,className:"OreRedemption__Ores",p:"0"},j,{children:[(0,e.jsx)(_,{title:"\u0421\u043F\u043B\u0430\u0432\u044B",columns:[["\u0420\u0435\u0446\u0435\u043F\u0442","30%"],["\u0414\u043E\u0441\u0442\u0443\u043F\u043D\u043E","15%"],["\u041F\u0435\u0440\u0435\u043F\u043B\u0430\u0432\u0438\u0442\u044C","10%"]]}),p.map(function(x){return(0,e.jsx)(c,{ore:x},x.id)})]}))})},_=function(h){var g;return(0,e.jsx)(t.az,{className:"OreHeader",children:(0,e.jsxs)(t.BJ,{fill:!0,children:[(0,e.jsx)(t.BJ.Item,{grow:!0,children:h.title}),(g=h.columns)==null?void 0:g.map(function(p){return(0,e.jsx)(t.BJ.Item,{basis:p[1],textAlign:"center",color:"label",bold:!0,children:p[0]},p[0])})]})})},l=function(h){var g=(0,n.Oc)().act,p=h.ore;if(!(p.value&&p.amount<=0&&!(["metal","glass"].indexOf(p.id)>-1)))return(0,e.jsx)(t.az,{className:"SheetLine",children:(0,e.jsxs)(t.BJ,{fill:!0,children:[(0,e.jsx)(t.BJ.Item,{basis:"45%",align:"middle",children:(0,e.jsxs)(t.BJ,{align:"center",children:[(0,e.jsx)(t.BJ.Item,{className:(0,s.Ly)(["materials32x32",p.id])}),(0,e.jsx)(t.BJ.Item,{children:p.name})]})}),(0,e.jsx)(t.BJ.Item,{basis:"20%",textAlign:"center",color:p.amount>=1?"good":"gray",bold:p.amount>=1,align:"center",children:p.amount.toLocaleString("en-US")}),(0,e.jsx)(t.BJ.Item,{basis:"20%",textAlign:"center",align:"center",children:p.value}),(0,e.jsx)(t.BJ.Item,{basis:"20%",textAlign:"center",align:"center",lineHeight:"32px",children:(0,e.jsx)(t.Q7,{width:"40%",value:0,minValue:0,step:1,maxValue:Math.min(p.amount,50),stepPixelSize:6,onChange:function(j){return g(p.value?"sheet":"alloy",{id:p.id,amount:j})}})})]})})},c=function(h){var g=(0,n.Oc)().act,p=h.ore;return(0,e.jsx)(t.az,{className:"SheetLine",children:(0,e.jsxs)(t.BJ,{fill:!0,children:[(0,e.jsx)(t.BJ.Item,{basis:"7%",align:"middle",children:(0,e.jsx)(t.az,{className:(0,s.Ly)(["alloys32x32",p.id])})}),(0,e.jsx)(t.BJ.Item,{basis:"30%",textAlign:"middle",align:"center",children:p.name}),(0,e.jsx)(t.BJ.Item,{basis:"35%",textAlign:"middle",color:p.amount>=1?"good":"gray",align:"center",children:p.description}),(0,e.jsx)(t.BJ.Item,{basis:"10%",textAlign:"center",color:p.amount>=1?"good":"gray",bold:p.amount>=1,align:"center",children:p.amount.toLocaleString("en-US")}),(0,e.jsx)(t.BJ.Item,{basis:"20%",textAlign:"center",align:"center",lineHeight:"32px",children:(0,e.jsx)(t.Q7,{width:"40%",value:0,step:1,minValue:0,maxValue:Math.min(p.amount,50),stepPixelSize:6,onChange:function(j){return g(p.value?"sheet":"alloy",{id:p.id,amount:j})}})})]})})}},9257:(q,S,r)=>{"use strict";r.r(S),r.d(S,{meta:()=>a});var e=r(1131),s=r(7003),n=r(5180);/** + */var b=r(2054),O=function(m,d){return function(){return(0,e.jsx)(a.p8,{children:(0,e.jsxs)(a.p8.Content,{scrollable:!0,children:[m==="notFound"&&(0,e.jsxs)("div",{children:["Interface ",(0,e.jsx)("b",{children:d})," was not found."]}),m==="missingExport"&&(0,e.jsxs)("div",{children:["Interface ",(0,e.jsx)("b",{children:d})," is missing an export."]})]})})}},y=function(){return(0,e.jsx)(a.p8,{children:(0,e.jsx)(a.p8.Content,{scrollable:!0})})},u=function(){return(0,e.jsx)(a.p8,{title:"Loading",children:(0,e.jsx)(a.p8.Content,{children:(0,e.jsx)(t.LoadingScreen,{})})})},f=function(){var m,d=(0,s.Oc)(),v=d.suspended,_=d.config,l=(0,n.Lo)(),c=l.kitchenSink,h=c===void 0?!1:c;if(v)return y;if(_?.refreshing)return u;for(var g=_==null||(m=_.interface)==null?void 0:m.name,p=[function(P){return"./"+P+".tsx"},function(P){return"./"+P+".jsx"},function(P){return"./"+P+"/index.tsx"},function(P){return"./"+P+"/index.jsx"}],j;!j&&p.length>0;){var x=p.shift(),C=x(g);try{j=b(C)}catch(P){if(P.code!=="MODULE_NOT_FOUND")throw P}}if(!j)return O("notFound",g);var I=j[g];return I||O("missingExport",g)}},9224:(q,S,r)=>{"use strict";r.r(S),r.d(S,{OreRedemption:()=>f});var e=r(1131),s=r(185),n=r(360),t=r(5180),a=r(3521),b=r(7003);function O(){return O=Object.assign||function(h){for(var g=1;g0?"good":"grey",children:u(C)}),(0,e.jsx)(t.Ki.Item,{children:(0,e.jsx)(t.$n,{disabled:!x,icon:"hand-holding-usd",onClick:function(){return p("claim")},children:"\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C"})})]}),(0,e.jsx)(t.cG,{}),I?(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"\u0414\u0438\u0441\u043A\u0435\u0442\u0430 \u0448\u0430\u0431\u043B\u043E\u043D\u0430 \u043F\u0435\u0447\u0430\u0442\u0438",children:(0,e.jsx)(t.$n,{selected:!0,bold:!0,icon:"eject",tooltip:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u0434\u0438\u0441\u043A\u0435\u0442\u0443.",onClick:function(){return p("eject_disk")},children:I.name})}),(0,e.jsx)(t.Ki.Item,{label:"\u0417\u0430\u0433\u0440\u0443\u0436\u0435\u043D\u043D\u044B\u0439 \u0448\u0430\u0431\u043B\u043E\u043D",children:(0,e.jsx)(t.az,{color:I.design&&(I.compatible?"good":"bad"),children:I.design||"\u041D/\u0414"})}),(0,e.jsx)(t.Ki.Item,{children:(0,e.jsx)(t.$n,{disabled:!I.design||!I.compatible,icon:"upload",tooltip:"\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0448\u0430\u0431\u043B\u043E\u043D \u043F\u0435\u0447\u0430\u0442\u0438 \u0432 \u043F\u0430\u043C\u044F\u0442\u044C \u043C\u0430\u0448\u0438\u043D\u044B.",onClick:function(){return p("download")},children:"\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C"})})]}):(0,e.jsx)(t.az,{color:"label",children:"\u0414\u0438\u0441\u043A\u0435\u0442\u0430 \u0448\u0430\u0431\u043B\u043E\u043D\u0430 \u043F\u0435\u0447\u0430\u0442\u0438 \u043E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442."})]}))},d=function(h){var g=(0,n.Oc)().data,p=g.sheets,j=O({},y(h));return(0,e.jsx)(t.BJ.Item,{grow:!0,height:"20%",children:(0,e.jsxs)(t.wn,O({fill:!0,scrollable:!0,className:"OreRedemption__Ores",p:"0"},j,{children:[(0,e.jsx)(_,{title:"\u041B\u0438\u0441\u0442\u044B \u043C\u0430\u0442\u0435\u0440\u0438\u0430\u043B\u043E\u0432",columns:[["\u0414\u043E\u0441\u0442\u0443\u043F\u043D\u043E","20%"],["\u0421\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u0440\u0443\u0434\u044B","25%"],["\u041F\u0435\u0440\u0435\u043F\u043B\u0430\u0432\u0438\u0442\u044C","10%"]]}),p.map(function(x){return(0,e.jsx)(l,{ore:x},x.id)})]}))})},v=function(h){var g=(0,n.Oc)().data,p=g.alloys,j=O({},y(h));return(0,e.jsx)(t.BJ.Item,{grow:!0,children:(0,e.jsxs)(t.wn,O({fill:!0,scrollable:!0,className:"OreRedemption__Ores",p:"0"},j,{children:[(0,e.jsx)(_,{title:"\u0421\u043F\u043B\u0430\u0432\u044B",columns:[["\u0420\u0435\u0446\u0435\u043F\u0442","30%"],["\u0414\u043E\u0441\u0442\u0443\u043F\u043D\u043E","15%"],["\u041F\u0435\u0440\u0435\u043F\u043B\u0430\u0432\u0438\u0442\u044C","10%"]]}),p.map(function(x){return(0,e.jsx)(c,{ore:x},x.id)})]}))})},_=function(h){var g;return(0,e.jsx)(t.az,{className:"OreHeader",children:(0,e.jsxs)(t.BJ,{fill:!0,children:[(0,e.jsx)(t.BJ.Item,{grow:!0,children:h.title}),(g=h.columns)==null?void 0:g.map(function(p){return(0,e.jsx)(t.BJ.Item,{basis:p[1],textAlign:"center",color:"label",bold:!0,children:p[0]},p[0])})]})})},l=function(h){var g=(0,n.Oc)().act,p=h.ore;if(!(p.value&&p.amount<=0&&!(["metal","glass"].indexOf(p.id)>-1)))return(0,e.jsx)(t.az,{className:"SheetLine",children:(0,e.jsxs)(t.BJ,{fill:!0,children:[(0,e.jsx)(t.BJ.Item,{basis:"45%",align:"middle",children:(0,e.jsxs)(t.BJ,{align:"center",children:[(0,e.jsx)(t.BJ.Item,{className:(0,s.Ly)(["materials32x32",p.id])}),(0,e.jsx)(t.BJ.Item,{children:p.name})]})}),(0,e.jsx)(t.BJ.Item,{basis:"20%",textAlign:"center",color:p.amount>=1?"good":"gray",bold:p.amount>=1,align:"center",children:p.amount.toLocaleString("en-US")}),(0,e.jsx)(t.BJ.Item,{basis:"20%",textAlign:"center",align:"center",children:p.value}),(0,e.jsx)(t.BJ.Item,{basis:"20%",textAlign:"center",align:"center",lineHeight:"32px",children:(0,e.jsx)(t.Q7,{width:"40%",value:0,minValue:0,step:1,maxValue:Math.min(p.amount,50),stepPixelSize:6,onChange:function(j){return g(p.value?"sheet":"alloy",{id:p.id,amount:j})}})})]})})},c=function(h){var g=(0,n.Oc)().act,p=h.ore;return(0,e.jsx)(t.az,{className:"SheetLine",children:(0,e.jsxs)(t.BJ,{fill:!0,children:[(0,e.jsx)(t.BJ.Item,{basis:"7%",align:"middle",children:(0,e.jsx)(t.az,{className:(0,s.Ly)(["alloys32x32",p.id])})}),(0,e.jsx)(t.BJ.Item,{basis:"30%",textAlign:"middle",align:"center",children:p.name}),(0,e.jsx)(t.BJ.Item,{basis:"35%",textAlign:"middle",color:p.amount>=1?"good":"gray",align:"center",children:p.description}),(0,e.jsx)(t.BJ.Item,{basis:"10%",textAlign:"center",color:p.amount>=1?"good":"gray",bold:p.amount>=1,align:"center",children:p.amount.toLocaleString("en-US")}),(0,e.jsx)(t.BJ.Item,{basis:"20%",textAlign:"center",align:"center",lineHeight:"32px",children:(0,e.jsx)(t.Q7,{width:"40%",value:0,step:1,minValue:0,maxValue:Math.min(p.amount,50),stepPixelSize:6,onChange:function(j){return g(p.value?"sheet":"alloy",{id:p.id,amount:j})}})})]})})}},9257:(q,S,r)=>{"use strict";r.r(S),r.d(S,{meta:()=>a});var e=r(1131),s=r(7003),n=r(5180);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */function t(){return t=Object.assign||function(y){for(var u=1;u{"use strict";r.r(S),r.d(S,{LoginScreen:()=>t});var e=r(1131),s=r(360),n=r(5180),t=function(a){var O=(0,s.Oc)(),b=O.act,y=O.data,u=y.loginState,f=y.isAI,m=y.isRobot,d=y.isAdmin;return(0,e.jsx)(n.wn,{title:"\u0414\u043E\u0431\u0440\u043E \u043F\u043E\u0436\u0430\u043B\u043E\u0432\u0430\u0442\u044C",fill:!0,stretchContents:!0,children:(0,e.jsx)(n.so,{height:"100%",align:"center",justify:"center",children:(0,e.jsxs)(n.so.Item,{textAlign:"center",mt:"-2rem",children:[(0,e.jsxs)(n.az,{fontSize:"1.5rem",bold:!0,children:[(0,e.jsx)(n.In,{name:"user-circle",verticalAlign:"middle",size:3,mr:"1rem"}),"\u0413\u043E\u0441\u0442\u044C"]}),(0,e.jsxs)(n.az,{color:"label",my:"1rem",children:["ID:",(0,e.jsx)(n.$n,{icon:"id-card",ml:"0.5rem",onClick:function(){return b("login_insert")},children:u.id?u.id:"----------"})]}),(0,e.jsx)(n.$n,{icon:"sign-in-alt",disabled:!u.id,onClick:function(){return b("login_login",{login_type:1})},children:"\u0412\u043E\u0439\u0442\u0438"}),!!f&&(0,e.jsx)(n.$n,{icon:"sign-in-alt",onClick:function(){return b("login_login",{login_type:2})},children:"\u0412\u043E\u0439\u0442\u0438 \u043A\u0430\u043A \u0418\u0418"}),!!m&&(0,e.jsx)(n.$n,{icon:"sign-in-alt",onClick:function(){return b("login_login",{login_type:3})},children:"\u0412\u043E\u0439\u0442\u0438 \u043A\u0430\u043A \u043A\u0438\u0431\u043E\u0440\u0433"}),!!d&&(0,e.jsx)(n.$n,{icon:"sign-in-alt",onClick:function(){return b("login_login",{login_type:4})},children:"\u0412\u043E\u0439\u0442\u0438 \u043A\u0430\u043A \u0426\u0435\u043D\u0442\u041A\u043E\u043C"})]})})})}},9326:(q,S,r)=>{"use strict";r.r(S),r.d(S,{meta:()=>n});var e=r(1131),s=r(5180);/** + */function t(){return t=Object.assign||function(y){for(var u=1;u{"use strict";r.r(S),r.d(S,{LoginScreen:()=>t});var e=r(1131),s=r(360),n=r(5180),t=function(a){var b=(0,s.Oc)(),O=b.act,y=b.data,u=y.loginState,f=y.isAI,m=y.isRobot,d=y.isAdmin;return(0,e.jsx)(n.wn,{title:"\u0414\u043E\u0431\u0440\u043E \u043F\u043E\u0436\u0430\u043B\u043E\u0432\u0430\u0442\u044C",fill:!0,stretchContents:!0,children:(0,e.jsx)(n.so,{height:"100%",align:"center",justify:"center",children:(0,e.jsxs)(n.so.Item,{textAlign:"center",mt:"-2rem",children:[(0,e.jsxs)(n.az,{fontSize:"1.5rem",bold:!0,children:[(0,e.jsx)(n.In,{name:"user-circle",verticalAlign:"middle",size:3,mr:"1rem"}),"\u0413\u043E\u0441\u0442\u044C"]}),(0,e.jsxs)(n.az,{color:"label",my:"1rem",children:["ID:",(0,e.jsx)(n.$n,{icon:"id-card",ml:"0.5rem",onClick:function(){return O("login_insert")},children:u.id?u.id:"----------"})]}),(0,e.jsx)(n.$n,{icon:"sign-in-alt",disabled:!u.id,onClick:function(){return O("login_login",{login_type:1})},children:"\u0412\u043E\u0439\u0442\u0438"}),!!f&&(0,e.jsx)(n.$n,{icon:"sign-in-alt",onClick:function(){return O("login_login",{login_type:2})},children:"\u0412\u043E\u0439\u0442\u0438 \u043A\u0430\u043A \u0418\u0418"}),!!m&&(0,e.jsx)(n.$n,{icon:"sign-in-alt",onClick:function(){return O("login_login",{login_type:3})},children:"\u0412\u043E\u0439\u0442\u0438 \u043A\u0430\u043A \u043A\u0438\u0431\u043E\u0440\u0433"}),!!d&&(0,e.jsx)(n.$n,{icon:"sign-in-alt",onClick:function(){return O("login_login",{login_type:4})},children:"\u0412\u043E\u0439\u0442\u0438 \u043A\u0430\u043A \u0426\u0435\u043D\u0442\u041A\u043E\u043C"})]})})})}},9326:(q,S,r)=>{"use strict";r.r(S),r.d(S,{meta:()=>n});var e=r(1131),s=r(5180);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var n={title:"Tooltip",render:function(){return(0,e.jsx)(t,{})}},t=function(){var a=["top","left","right","bottom","bottom-start","bottom-end"];return(0,e.jsxs)(s.wn,{children:[(0,e.jsxs)(s.az,{children:[(0,e.jsx)(s.m_,{content:"Tooltip text.",children:(0,e.jsx)(s.az,{inline:!0,position:"relative",mr:1,children:"Box (hover me)."})}),(0,e.jsx)(s.$n,{tooltip:"Tooltip text.",children:"Button"})]}),(0,e.jsx)(s.az,{mt:1,children:a.map(function(O){return(0,e.jsx)(s.$n,{color:"transparent",tooltip:"Tooltip text.",tooltipPosition:O,children:O},O)})})]})}},9338:(q,S)=>{"use strict";/** + */var n={title:"Tooltip",render:function(){return(0,e.jsx)(t,{})}},t=function(){var a=["top","left","right","bottom","bottom-start","bottom-end"];return(0,e.jsxs)(s.wn,{children:[(0,e.jsxs)(s.az,{children:[(0,e.jsx)(s.m_,{content:"Tooltip text.",children:(0,e.jsx)(s.az,{inline:!0,position:"relative",mr:1,children:"Box (hover me)."})}),(0,e.jsx)(s.$n,{tooltip:"Tooltip text.",children:"Button"})]}),(0,e.jsx)(s.az,{mt:1,children:a.map(function(b){return(0,e.jsx)(s.$n,{color:"transparent",tooltip:"Tooltip text.",tooltipPosition:b,children:b},b)})})]})}},9338:(q,S)=>{"use strict";/** * @license React * scheduler.production.min.js * @@ -521,15 +521,15 @@ User Agent: `+navigator.userAgent;Byond.sendMessage({type:"log",ns:m,message:l}) * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */function r(W){"@swc/helpers - typeof";return W&&typeof Symbol<"u"&&W.constructor===Symbol?"symbol":typeof W}function e(W,N){var Z=W.length;W.push(N);e:for(;0>>1,Q=W[ie];if(0>>1;iet(le,Z))xet(de,le)?(W[ie]=de,W[xe]=Z,ie=xe):(W[ie]=le,W[G]=Z,ie=G);else if(xet(de,Z))W[ie]=de,W[xe]=Z,ie=xe;else break e}}return N}function t(W,N){var Z=W.sortIndex-N.sortIndex;return Z!==0?Z:W.id-N.id}if((typeof performance>"u"?"undefined":r(performance))==="object"&&typeof performance.now=="function"){var a=performance;S.unstable_now=function(){return a.now()}}else{var O=Date,b=O.now();S.unstable_now=function(){return O.now()-b}}var y=[],u=[],f=1,m=null,d=3,v=!1,_=!1,l=!1,c=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function p(W){for(var N=s(u);N!==null;){if(N.callback===null)n(u);else if(N.startTime<=W)n(u),N.sortIndex=N.expirationTime,e(y,N);else break;N=s(u)}}function j(W){if(l=!1,p(W),!_)if(s(y)!==null)_=!0,F(x);else{var N=s(u);N!==null&&$(j,N.startTime-W)}}function x(W,N){_=!1,l&&(l=!1,h(P),P=-1),v=!0;var Z=d;try{for(p(N),m=s(y);m!==null&&(!(m.expirationTime>N)||W&&!w());){var ie=m.callback;if(typeof ie=="function"){m.callback=null,d=m.priorityLevel;var Q=ie(m.expirationTime<=N);N=S.unstable_now(),typeof Q=="function"?m.callback=Q:m===s(y)&&n(y),p(N)}else n(y);m=s(y)}if(m!==null)var V=!0;else{var G=s(u);G!==null&&$(j,G.startTime-N),V=!1}return V}finally{m=null,d=Z,v=!1}}var C=!1,I=null,P=-1,M=5,B=-1;function w(){return!(S.unstable_now()-BW||125"u"?"undefined":r(Z))==="object"&&Z!==null?(Z=Z.delay,Z=typeof Z=="number"&&0ie?(W.sortIndex=Z,e(u,W),s(y)===null&&W===s(u)&&(l?(h(P),P=-1):l=!0,$(j,Z-ie))):(W.sortIndex=Q,e(y,W),_||v||(_=!0,F(x))),W},S.unstable_shouldYield=w,S.unstable_wrapCallback=function(W){var N=d;return function(){var Z=d;d=N;try{return W.apply(this,arguments)}finally{d=Z}}}},9342:(q,S,r)=>{"use strict";r.r(S),r.d(S,{pai_radio:()=>a});var e=r(1131),s=r(360),n=r(9818),t=r(5180),a=function(O){var b=(0,s.Oc)(),y=b.act,u=b.data,f=u.app_data,m=f.minFrequency,d=f.maxFrequency,v=f.frequency,_=f.broadcasting;return(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Frequency",children:[(0,e.jsx)(t.Q7,{animated:!0,step:.2,stepPixelSize:6,minValue:m/10,maxValue:d/10,value:v/10,format:function(l){return(0,n.Mg)(l,1)},onChange:function(l){return y("freq",{freq:l})}}),(0,e.jsx)(t.$n,{tooltip:"Reset",icon:"undo",onClick:function(){return y("freq",{freq:"145.9"})}})]}),(0,e.jsx)(t.Ki.Item,{label:"Broadcast Nearby Speech",children:(0,e.jsx)(t.$n,{onClick:function(){return y("toggleBroadcast")},selected:_,children:_?"Enabled":"Disabled"})})]})}},9357:(q,S,r)=>{"use strict";r.d(S,{Fo:()=>b,KA:()=>e,KS:()=>n,NE:()=>O,b_:()=>f,bz:()=>s,fF:()=>d,lm:()=>a,wM:()=>u});var e=2,s=1,n=0,t=null,a={department:{command:"#526aff",security:"#CF0000",medical:"#009190",science:"#993399",engineering:"#A66300",supply:"#9F8545",service:"#80A000",centcom:"#78789B",procedure:"#E3027A",other:"#C38312"},damageType:{oxy:"#3498db",toxin:"#2ecc71",burn:"#e67e22",brute:"#e74c3c"}},O=["black","white","red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey","good","average","bad","label"],b=[{name:"\u0421\u0438\u043D\u0434\u0438\u043A\u0430\u0442",freq:1213,color:"#a52a2a"},{name:"\u0414\u041E\u0421",freq:1244,color:"#a52a2a"},{name:"\u041A\u0440\u0430\u0441\u043D\u0430\u044F \u043A\u043E\u043C\u0430\u043D\u0434\u0430",freq:1215,color:"#ff4444"},{name:"\u0421\u0438\u043D\u044F\u044F \u043A\u043E\u043C\u0430\u043D\u0434\u0430",freq:1217,color:"#3434fd"},{name:"\u041E\u0411\u0420",freq:1345,color:"#2681a5"},{name:"\u0421\u0421\u041E",freq:1341,color:"#2681a5"},{name:"\u0421\u043D\u0430\u0431\u0436\u0435\u043D\u0438\u0435",freq:1347,color:"#b88646"},{name:"\u041E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u043D\u0438\u0435",freq:1349,color:"#6ca729"},{name:"\u041D\u0430\u0443\u043A\u0430",freq:1351,color:"#c68cfa"},{name:"\u041A\u043E\u043C\u0430\u043D\u0434\u043E\u0432\u0430\u043D\u0438\u0435",freq:1353,color:"#5177ff"},{name:"\u042E\u0440\u0438\u0441\u043F\u0440\u0443\u0434\u0435\u043D\u0446\u0438\u044F",freq:1339,color:"#F70285"},{name:"\u041C\u0435\u0434\u0438\u0446\u0438\u043D\u0430",freq:1355,color:"#57b8f0"},{name:"\u041C\u0435\u0434\u0438\u0446\u0438\u043D\u0430 (\u0418\u0422\u041A)",freq:1485,color:"#57b8f0"},{name:"\u0418\u043D\u0436\u0435\u043D\u0435\u0440\u0438\u044F",freq:1357,color:"#f37746"},{name:"\u0411\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u044C",freq:1359,color:"#dd3535"},{name:"\u0417\u0430\u043A\u043B\u044E\u0447\u0435\u043D\u043D\u044B\u0435",freq:1361,color:"#ff831a"},{name:"\u0411\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u044C (\u0418\u0422\u041A)",freq:1475,color:"#dd3535"},{name:"\u0418\u0418",freq:1343,color:"#d65d95"},{name:"\u041E\u0431\u0449\u0438\u0439",freq:1459,color:"#1ecc43"},{name:"\u0421\u0438\u043D\u0434\u0438\u0422\u0430\u0439\u043F\u0430\u043D",freq:1227,color:"#ffec8b"},{name:"\u0421\u0421\u0421\u041F",freq:1217,color:"#ffec8b"},{name:"\u041A\u043B\u0430\u043D \u041F\u0430\u0443\u043A\u0430",freq:1265,color:"#1ecc43"},{name:"\u0410\u043B\u044C\u0444\u0430 \u0447\u0430\u0441\u0442\u043E\u0442\u0430",freq:1522,color:"#88910f"},{name:"\u0411\u0435\u0442\u0430 \u0447\u0430\u0441\u0442\u043E\u0442\u0430",freq:1532,color:"#1d83f7"},{name:"\u0413\u0430\u043C\u043C\u0430 \u0447\u0430\u0441\u0442\u043E\u0442\u0430",freq:1542,color:"#d46549"},{name:"\u0416\u0443\u0447\u043E\u043A",freq:1251,color:"#776f96"}],y=[{id:"o2",name:"Oxygen",label:"O\u2082",color:"blue"},{id:"n2",name:"Nitrogen",label:"N\u2082",color:"red"},{id:"co2",name:"Carbon Dioxide",label:"CO\u2082",color:"grey"},{id:"plasma",name:"Plasma",label:"Plasma",color:"pink"},{id:"water_vapor",name:"Water Vapor",label:"H\u2082O",color:"grey"},{id:"nob",name:"Hyper-noblium",label:"Hyper-nob",color:"teal"},{id:"n2o",name:"Nitrous Oxide",label:"N\u2082O",color:"red"},{id:"no2",name:"Nitryl",label:"NO\u2082",color:"brown"},{id:"tritium",name:"Tritium",label:"Tritium",color:"green"},{id:"bz",name:"BZ",label:"BZ",color:"purple"},{id:"stim",name:"Stimulum",label:"Stimulum",color:"purple"},{id:"pluox",name:"Pluoxium",label:"Pluoxium",color:"blue"},{id:"miasma",name:"Miasma",label:"Miasma",color:"olive"},{id:"hydrogen",name:"Hydrogen",label:"H\u2082",color:"#997379"},{id:"ab",name:"Agent B",label:"Agent B",color:"purple"}],u=function(v,_){var l=v.toLowerCase(),c=y.find(function(h){return h.id===l||h.name.toLowerCase()===l});return c?.label||_||v},f=function(v){var _=v.toLowerCase(),l=y.find(function(c){return c.id===_||c.name.toLowerCase()===_});return l?.color},m=function(v){var _=v.toLowerCase(),l=y.find(function(c){return c.id===_||c.name.toLowerCase()===_});return l},d=function(v,_){if(v>_)return"in the future";v=v/10,_=_/10;var l=_-v;if(l>3600){var c=Math.round(l/3600);return c+" hour"+(c===1?"":"s")+" ago"}else if(l>60){var h=Math.round(l/60);return h+" minute"+(h===1?"":"s")+" ago"}else{var g=Math.round(l);return g+" second"+(g===1?"":"s")+" ago"}return"just now"}},9368:(q,S,r)=>{"use strict";r.d(S,{c:()=>n});var e=r(1131),s=r(185);/** + */function r(W){"@swc/helpers - typeof";return W&&typeof Symbol<"u"&&W.constructor===Symbol?"symbol":typeof W}function e(W,N){var Z=W.length;W.push(N);e:for(;0>>1,Q=W[ie];if(0>>1;iet(le,Z))xet(de,le)?(W[ie]=de,W[xe]=Z,ie=xe):(W[ie]=le,W[G]=Z,ie=G);else if(xet(de,Z))W[ie]=de,W[xe]=Z,ie=xe;else break e}}return N}function t(W,N){var Z=W.sortIndex-N.sortIndex;return Z!==0?Z:W.id-N.id}if((typeof performance>"u"?"undefined":r(performance))==="object"&&typeof performance.now=="function"){var a=performance;S.unstable_now=function(){return a.now()}}else{var b=Date,O=b.now();S.unstable_now=function(){return b.now()-O}}var y=[],u=[],f=1,m=null,d=3,v=!1,_=!1,l=!1,c=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function p(W){for(var N=s(u);N!==null;){if(N.callback===null)n(u);else if(N.startTime<=W)n(u),N.sortIndex=N.expirationTime,e(y,N);else break;N=s(u)}}function j(W){if(l=!1,p(W),!_)if(s(y)!==null)_=!0,F(x);else{var N=s(u);N!==null&&$(j,N.startTime-W)}}function x(W,N){_=!1,l&&(l=!1,h(P),P=-1),v=!0;var Z=d;try{for(p(N),m=s(y);m!==null&&(!(m.expirationTime>N)||W&&!w());){var ie=m.callback;if(typeof ie=="function"){m.callback=null,d=m.priorityLevel;var Q=ie(m.expirationTime<=N);N=S.unstable_now(),typeof Q=="function"?m.callback=Q:m===s(y)&&n(y),p(N)}else n(y);m=s(y)}if(m!==null)var V=!0;else{var G=s(u);G!==null&&$(j,G.startTime-N),V=!1}return V}finally{m=null,d=Z,v=!1}}var C=!1,I=null,P=-1,M=5,B=-1;function w(){return!(S.unstable_now()-BW||125"u"?"undefined":r(Z))==="object"&&Z!==null?(Z=Z.delay,Z=typeof Z=="number"&&0ie?(W.sortIndex=Z,e(u,W),s(y)===null&&W===s(u)&&(l?(h(P),P=-1):l=!0,$(j,Z-ie))):(W.sortIndex=Q,e(y,W),_||v||(_=!0,F(x))),W},S.unstable_shouldYield=w,S.unstable_wrapCallback=function(W){var N=d;return function(){var Z=d;d=N;try{return W.apply(this,arguments)}finally{d=Z}}}},9342:(q,S,r)=>{"use strict";r.r(S),r.d(S,{pai_radio:()=>a});var e=r(1131),s=r(360),n=r(9818),t=r(5180),a=function(b){var O=(0,s.Oc)(),y=O.act,u=O.data,f=u.app_data,m=f.minFrequency,d=f.maxFrequency,v=f.frequency,_=f.broadcasting;return(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Frequency",children:[(0,e.jsx)(t.Q7,{animated:!0,step:.2,stepPixelSize:6,minValue:m/10,maxValue:d/10,value:v/10,format:function(l){return(0,n.Mg)(l,1)},onChange:function(l){return y("freq",{freq:l})}}),(0,e.jsx)(t.$n,{tooltip:"Reset",icon:"undo",onClick:function(){return y("freq",{freq:"145.9"})}})]}),(0,e.jsx)(t.Ki.Item,{label:"Broadcast Nearby Speech",children:(0,e.jsx)(t.$n,{onClick:function(){return y("toggleBroadcast")},selected:_,children:_?"Enabled":"Disabled"})})]})}},9357:(q,S,r)=>{"use strict";r.d(S,{Fo:()=>O,KA:()=>e,KS:()=>n,NE:()=>b,b_:()=>f,bz:()=>s,fF:()=>d,lm:()=>a,wM:()=>u});var e=2,s=1,n=0,t=null,a={department:{command:"#526aff",security:"#CF0000",medical:"#009190",science:"#993399",engineering:"#A66300",supply:"#9F8545",service:"#80A000",centcom:"#78789B",procedure:"#E3027A",other:"#C38312"},damageType:{oxy:"#3498db",toxin:"#2ecc71",burn:"#e67e22",brute:"#e74c3c"}},b=["black","white","red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey","good","average","bad","label"],O=[{name:"\u0421\u0438\u043D\u0434\u0438\u043A\u0430\u0442",freq:1213,color:"#a52a2a"},{name:"\u0414\u041E\u0421",freq:1244,color:"#a52a2a"},{name:"\u041A\u0440\u0430\u0441\u043D\u0430\u044F \u043A\u043E\u043C\u0430\u043D\u0434\u0430",freq:1215,color:"#ff4444"},{name:"\u0421\u0438\u043D\u044F\u044F \u043A\u043E\u043C\u0430\u043D\u0434\u0430",freq:1217,color:"#3434fd"},{name:"\u041E\u0411\u0420",freq:1345,color:"#2681a5"},{name:"\u0421\u0421\u041E",freq:1341,color:"#2681a5"},{name:"\u0421\u043D\u0430\u0431\u0436\u0435\u043D\u0438\u0435",freq:1347,color:"#b88646"},{name:"\u041E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u043D\u0438\u0435",freq:1349,color:"#6ca729"},{name:"\u041D\u0430\u0443\u043A\u0430",freq:1351,color:"#c68cfa"},{name:"\u041A\u043E\u043C\u0430\u043D\u0434\u043E\u0432\u0430\u043D\u0438\u0435",freq:1353,color:"#5177ff"},{name:"\u042E\u0440\u0438\u0441\u043F\u0440\u0443\u0434\u0435\u043D\u0446\u0438\u044F",freq:1339,color:"#F70285"},{name:"\u041C\u0435\u0434\u0438\u0446\u0438\u043D\u0430",freq:1355,color:"#57b8f0"},{name:"\u041C\u0435\u0434\u0438\u0446\u0438\u043D\u0430 (\u0418\u0422\u041A)",freq:1485,color:"#57b8f0"},{name:"\u0418\u043D\u0436\u0435\u043D\u0435\u0440\u0438\u044F",freq:1357,color:"#f37746"},{name:"\u0411\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u044C",freq:1359,color:"#dd3535"},{name:"\u0417\u0430\u043A\u043B\u044E\u0447\u0435\u043D\u043D\u044B\u0435",freq:1361,color:"#ff831a"},{name:"\u0411\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u044C (\u0418\u0422\u041A)",freq:1475,color:"#dd3535"},{name:"\u0418\u0418",freq:1343,color:"#d65d95"},{name:"\u041E\u0431\u0449\u0438\u0439",freq:1459,color:"#1ecc43"},{name:"\u0421\u0438\u043D\u0434\u0438\u0422\u0430\u0439\u043F\u0430\u043D",freq:1227,color:"#ffec8b"},{name:"\u0421\u0421\u0421\u041F",freq:1217,color:"#ffec8b"},{name:"\u041A\u043B\u0430\u043D \u041F\u0430\u0443\u043A\u0430",freq:1265,color:"#1ecc43"},{name:"\u0410\u043B\u044C\u0444\u0430 \u0447\u0430\u0441\u0442\u043E\u0442\u0430",freq:1522,color:"#88910f"},{name:"\u0411\u0435\u0442\u0430 \u0447\u0430\u0441\u0442\u043E\u0442\u0430",freq:1532,color:"#1d83f7"},{name:"\u0413\u0430\u043C\u043C\u0430 \u0447\u0430\u0441\u0442\u043E\u0442\u0430",freq:1542,color:"#d46549"},{name:"\u0416\u0443\u0447\u043E\u043A",freq:1251,color:"#776f96"}],y=[{id:"o2",name:"Oxygen",label:"O\u2082",color:"blue"},{id:"n2",name:"Nitrogen",label:"N\u2082",color:"red"},{id:"co2",name:"Carbon Dioxide",label:"CO\u2082",color:"grey"},{id:"plasma",name:"Plasma",label:"Plasma",color:"pink"},{id:"water_vapor",name:"Water Vapor",label:"H\u2082O",color:"grey"},{id:"nob",name:"Hyper-noblium",label:"Hyper-nob",color:"teal"},{id:"n2o",name:"Nitrous Oxide",label:"N\u2082O",color:"red"},{id:"no2",name:"Nitryl",label:"NO\u2082",color:"brown"},{id:"tritium",name:"Tritium",label:"Tritium",color:"green"},{id:"bz",name:"BZ",label:"BZ",color:"purple"},{id:"stim",name:"Stimulum",label:"Stimulum",color:"purple"},{id:"pluox",name:"Pluoxium",label:"Pluoxium",color:"blue"},{id:"miasma",name:"Miasma",label:"Miasma",color:"olive"},{id:"hydrogen",name:"Hydrogen",label:"H\u2082",color:"#997379"},{id:"ab",name:"Agent B",label:"Agent B",color:"purple"}],u=function(v,_){var l=v.toLowerCase(),c=y.find(function(h){return h.id===l||h.name.toLowerCase()===l});return c?.label||_||v},f=function(v){var _=v.toLowerCase(),l=y.find(function(c){return c.id===_||c.name.toLowerCase()===_});return l?.color},m=function(v){var _=v.toLowerCase(),l=y.find(function(c){return c.id===_||c.name.toLowerCase()===_});return l},d=function(v,_){if(v>_)return"in the future";v=v/10,_=_/10;var l=_-v;if(l>3600){var c=Math.round(l/3600);return c+" hour"+(c===1?"":"s")+" ago"}else if(l>60){var h=Math.round(l/60);return h+" minute"+(h===1?"":"s")+" ago"}else{var g=Math.round(l);return g+" second"+(g===1?"":"s")+" ago"}return"just now"}},9368:(q,S,r)=>{"use strict";r.d(S,{c:()=>n});var e=r(1131),s=r(185);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var n=function(t){var a=t.hidden,O=t.vertical;return(0,e.jsx)("div",{className:(0,s.Ly)(["Divider",a&&"Divider--hidden",O?"Divider--vertical":"Divider--horizontal"])})}},9409:(q,S,r)=>{"use strict";r.r(S),r.d(S,{GeneModder:()=>b});var e=r(1131),s=r(360),n=r(185),t=r(5180),a=r(538),O=r(3521),b=function(l){var c=(0,s.Oc)().data,h=c.has_seed;return(0,e.jsx)(O.p8,{width:500,height:650,children:(0,e.jsx)(O.p8.Content,{children:(0,e.jsxs)(t.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(f,{}),(0,e.jsx)(a.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),h?(0,e.jsx)(y,{}):(0,e.jsx)(u,{})]})})})},y=function(l){var c=(0,s.Oc)(),h=c.act,g=c.data,p=g.disk;return(0,e.jsxs)(t.wn,{title:"Genes",fill:!0,scrollable:!0,buttons:(0,e.jsx)(t.$n,{disabled:!p||!p.can_insert||p.is_core,icon:"arrow-circle-down",onClick:function(){return h("insert")},children:"Insert Gene from Disk"}),children:[(0,e.jsx)(m,{}),(0,e.jsx)(d,{}),(0,e.jsx)(v,{})]})},u=function(l){return(0,e.jsx)(t.wn,{fill:!0,height:"85%",children:(0,e.jsx)(t.BJ,{height:"100%",children:(0,e.jsxs)(t.BJ.Item,{bold:!0,grow:1,textAlign:"center",align:"center",color:"green",children:[(0,e.jsx)(t.In,{name:"leaf",size:5,mb:"10px"}),(0,e.jsx)("br",{}),"The plant DNA manipulator is missing a seed."]})})})},f=function(l){var c=(0,s.Oc)(),h=c.act,g=c.data,p=g.has_seed,j=g.seed,x=g.has_disk,C=g.disk,I,P;return p?I=(0,e.jsxs)(t.BJ.Item,{mb:"-6px",mt:"-4px",children:[(0,e.jsx)(t._V,{className:(0,n.Ly)(["seeds32x32",j.image]),style:{verticalAlign:"middle",width:"32px",margin:"-1px",marginLeft:"-11px"}}),(0,e.jsx)(t.$n,{onClick:function(){return h("eject_seed")},children:j.name}),(0,e.jsx)(t.$n,{ml:"3px",icon:"pen",tooltip:"Name Variant",onClick:function(){return h("variant_name")}})]}):I=(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.$n,{ml:3.3,onClick:function(){return h("eject_seed")},children:"None"})}),x?P=C.name:P="None",(0,e.jsx)(t.wn,{title:"Storage",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Plant Sample",children:I}),(0,e.jsx)(t.Ki.Item,{label:"Data Disk",children:(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.$n,{ml:3.3,onClick:function(){return h("eject_disk")},children:P})})})]})})},m=function(l){var c=(0,s.Oc)(),h=c.act,g=c.data,p=g.disk,j=g.core_genes;return(0,e.jsxs)(t.Nt,{title:"Core Genes",open:!0,children:[j.map(function(x){return(0,e.jsxs)(t.BJ,{py:"2px",className:"candystripe",children:[(0,e.jsx)(t.BJ.Item,{width:"100%",ml:"2px",children:x.name}),(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.$n,{disabled:!p?.can_extract,icon:"save",onClick:function(){return h("extract",{id:x.id})},children:"Extract"})}),(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.$n,{disabled:!x.is_type||!p.can_insert,icon:"arrow-circle-down",onClick:function(){return h("replace",{id:x.id})},children:"Replace"})})]},x.id)})," ",(0,e.jsx)(t.BJ,{children:(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.$n,{disabled:!p?.is_bulk_core,icon:"arrow-circle-down",onClick:function(){return h("bulk_replace_core")},children:"Replace All"})})})]},"Core Genes")},d=function(l){var c=(0,s.Oc)().data,h=c.reagent_genes,g=c.has_reagent;return(0,e.jsx)(_,{title:"Reagent Genes",gene_set:h,do_we_show:g})},v=function(l){var c=(0,s.Oc)().data,h=c.trait_genes,g=c.has_trait;return(0,e.jsx)(_,{title:"Trait Genes",gene_set:h,do_we_show:g})},_=function(l){var c=l.title,h=l.gene_set,g=l.do_we_show,p=(0,s.Oc)(),j=p.act,x=p.data,C=x.disk;return(0,e.jsx)(t.Nt,{title:c,open:!0,children:g?h.map(function(I){return(0,e.jsxs)(t.BJ,{py:"2px",className:"candystripe",children:[(0,e.jsx)(t.BJ.Item,{width:"100%",ml:"2px",children:I.name}),(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.$n,{disabled:!C?.can_extract,icon:"save",onClick:function(){return j("extract",{id:I.id})},children:"Extract"})}),(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.$n,{icon:"times",onClick:function(){return j("remove",{id:I.id})},children:"Remove"})})]},I.id)}):(0,e.jsx)(t.BJ.Item,{children:"No Genes Detected"})},c)}},9427:(q,S,r)=>{"use strict";r.r(S),r.d(S,{CreateObject:()=>_});var e=r(1131),s=r(8523),n=r(7003),t=r(5180),a=r(3973),O=function(l){var c=l.getSearchString,h=l.matchStrategy,g=h===void 0?"smart":h,p=l.searchArray,j=(0,n.useState)(""),x=j[0],C=j[1],I=(0,n.useState)([]),P=I[0],M=I[1],B=(0,n.useCallback)((0,a.Ay)(p,{getText:function(T){return[c(T)]},strategy:g}),[p,c]),w=function(T){if(C(T),T.trim()===""){M([]);return}var K=B(T);M(K.map(function(R){return R.item}))};return{query:x,setQuery:w,results:P}},b=r(360),y=r(2673),u=r(1160);function f(l,c,h,g,p,j,x){try{var C=l[j](x),I=C.value}catch(P){h(P);return}C.done?c(I):Promise.resolve(I).then(g,p)}function m(l){return function(){var c=this,h=arguments;return new Promise(function(g,p){var j=l.apply(c,h);function x(I){f(j,g,p,x,C,"next",I)}function C(I){f(j,g,p,x,C,"throw",I)}x(void 0)})}}function d(){return d=Object.assign||function(l){for(var c=1;c0&&p[p.length-1])&&(P[0]===6||P[0]===2)){j=0;continue}if(P[0]===3&&(!p||P[1]>p[0]&&P[1]{"use strict";r.r(S),r.d(S,{DisplayComponent:()=>m});var e=r(1131),s=r(7003),n=r(5180),t=r(185),a=r(8968),O=r(7941);function b(){return b=Object.assign||function(d){for(var v=1;v=0)&&(_[c]=d[c]);return _}function f(d,v){return f=Object.setPrototypeOf||function(l,c){return l.__proto__=c,l},f(d,v)}var m=function(d){"use strict";y(v,d);function v(l){var c;return c=d.call(this,l)||this,c.ref=(0,s.createRef)(),c}var _=v.prototype;return _.componentDidUpdate=function(){var c=this.props.onDisplayUpdated;c&&c(this.ref.current)},_.componentDidMount=function(){var c=this.props.onDisplayLoaded;c&&c(this.ref.current)},_.shouldComponentUpdate=function(c,h){return c.component!==this.props.component||c.top!==this.props.top||c.left!==this.props.left},_.render=function(){var c=this.props,h=c.component,g=c.fixedSize,p=u(c,["component","fixedSize"]),j="ObjectComponent__Category__"+(h.category||"Unassigned");return(0,e.jsx)(n.az,b({},p,{children:(0,e.jsxs)("div",{ref:this.ref,children:[(0,e.jsx)(n.az,{py:1,px:1,className:(0,t.Ly)(["ObjectComponent__Titlebar",j]),children:(0,e.jsxs)(n.BJ,{children:[(0,e.jsx)(n.BJ.Item,{grow:1,children:h.name}),!!h.ui_alerts&&Object.keys(h.ui_alerts).map(function(x){return(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.$n,{icon:x,className:j,compact:!0,tooltip:h.ui_alerts[x]})},x)}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.$n,{icon:"info",compact:!0,className:j,tooltip:h.description,tooltipPosition:"top"})})]})}),(0,e.jsx)(n.az,{className:"ObjectComponent__Content",py:1,px:1,children:(0,e.jsxs)(n.BJ,{children:[(0,e.jsx)(n.BJ.Item,{grow:g,children:(0,e.jsx)(n.BJ,{vertical:!0,fill:!0,children:h.input_ports.map(function(x,C){return(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(O.Port,{port:x,act:a.noop})},C)})})}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.BJ,{vertical:!0,children:h.output_ports.map(function(x,C){return(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(O.Port,{port:x,act:a.noop,isOutput:!0})},C)})})})]})})]})}))},v}(s.Component)},9450:(q,S,r)=>{"use strict";r.r(S),r.d(S,{GroupedContents:()=>a});var e=r(1131),s=r(9845),n=r(5180),t=r(1311),a=function(O){var b=O.contents,y=O.searchText,u=Object.entries(b).filter((0,s.XZ)(y,function(f){var m=f[0],d=f[1];return d[0].name})).map(function(f){var m=f[0],d=f[1];return{amount:d.length,item:d[0]}});return(0,e.jsx)(n.az,{m:-.5,children:u.map(function(f){return(0,e.jsx)(t.LootBox,{group:f},f.item.name)})})}},9484:(q,S,r)=>{"use strict";r.r(S),r.d(S,{pai_secrecords:()=>a});var e=r(1131),s=r(360),n=r(8725);function t(){return t=Object.assign||function(O){for(var b=1;b{"use strict";r.r(S),r.d(S,{SpawnersMenu:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(O){var b=(0,s.Oc)(),y=b.act,u=b.data,f=u.spawners||[];return(0,e.jsx)(t.p8,{width:700,height:600,children:(0,e.jsx)(t.p8.Content,{scrollable:!0,children:(0,e.jsx)(n.wn,{children:f.map(function(m){return(0,e.jsxs)(n.wn,{mb:.5,title:m.name+" ("+m.amount_left+" left)",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"chevron-circle-right",onClick:function(){return y("jump",{ID:m.uids})},children:"Jump"}),(0,e.jsx)(n.$n,{icon:"chevron-circle-right",onClick:function(){return y("spawn",{ID:m.uids})},children:"Spawn"})]}),children:[(0,e.jsx)(n.az,{style:{whiteSpace:"pre-wrap"},mb:1,fontSize:"16px",children:m.desc}),!!m.fluff&&(0,e.jsx)(n.az,{style:{whiteSpace:"pre-wrap"},textColor:"#878787",fontSize:"14px",children:m.fluff}),!!m.important_info&&(0,e.jsx)(n.az,{style:{whiteSpace:"pre-wrap"},mt:1,bold:!0,color:"red",fontSize:"18px",children:m.important_info})]},m.name)})})})})}},9515:(q,S,r)=>{"use strict";r.r(S),r.d(S,{pai_atmosphere:()=>a});var e=r(1131),s=r(360),n=r(9924);function t(){return t=Object.assign||function(O){for(var b=1;b{"use strict";r.r(S),r.d(S,{EvolutionMenu:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(y){return(0,e.jsx)(t.p8,{width:480,height:574,theme:"changeling",children:(0,e.jsxs)(t.p8.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:[(0,e.jsx)(O,{}),(0,e.jsx)(b,{})]})})},O=function(y){var u=(0,s.Oc)(),f=u.act,m=u.data,d=m.evo_points,v=m.can_respec;return(0,e.jsx)(n.wn,{title:"Evolution Points",height:5.5,children:(0,e.jsxs)(n.so,{children:[(0,e.jsx)(n.so.Item,{mt:.5,color:"label",children:"Points remaining:"}),(0,e.jsx)(n.so.Item,{mt:.5,ml:2,bold:!0,color:"#1b945c",children:d}),(0,e.jsxs)(n.so.Item,{children:[(0,e.jsx)(n.$n,{ml:2.5,disabled:!v,icon:"sync",onClick:function(){return f("readapt")},children:"Readapt"}),(0,e.jsx)(n.$n,{tooltip:"By transforming a humanoid into a husk, \\ we gain the ability to readapt our chosen evolutions.",tooltipPosition:"bottom",icon:"question-circle"})]})]})})},b=function(y){var u=(0,s.Oc)(),f=u.act,m=u.data,d=m.evo_points,v=m.ability_list,_=m.purchased_abilities,l=m.view_mode;return(0,e.jsx)(n.wn,{title:"Abilities",flexGrow:!0,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:l?"square-o":"check-square-o",selected:!l,onClick:function(){return f("set_view_mode",{mode:0})},children:"Compact"}),(0,e.jsx)(n.$n,{icon:l?"check-square-o":"square-o",selected:l,onClick:function(){return f("set_view_mode",{mode:1})},children:"Expanded"})]}),children:v.map(function(c,h){return(0,e.jsxs)(n.az,{p:.5,mx:-1,className:"candystripe",children:[(0,e.jsxs)(n.so,{align:"center",children:[(0,e.jsx)(n.so.Item,{ml:.5,color:"#dedede",children:c.name}),_.includes(c.power_path)&&(0,e.jsx)(n.so.Item,{ml:2,bold:!0,color:"#1b945c",children:"(Purchased)"}),(0,e.jsxs)(n.so.Item,{mr:3,textAlign:"right",grow:1,children:[(0,e.jsxs)(n.az,{as:"span",color:"label",children:["Cost:"," "]}),(0,e.jsx)(n.az,{as:"span",bold:!0,color:"#1b945c",children:c.cost})]}),(0,e.jsx)(n.so.Item,{textAlign:"right",children:(0,e.jsx)(n.$n,{mr:.5,disabled:c.cost>d||_.includes(c.power_path),onClick:function(){return f("purchase",{power_path:c.power_path})},children:"Evolve"})})]}),!!l&&(0,e.jsx)(n.so,{color:"#8a8a8a",my:1,ml:1.5,width:"95%",children:c.description+" "+c.helptext})]},h)})})}},9583:(q,S,r)=>{"use strict";r.r(S),r.d(S,{Smes:()=>b});var e=r(1131),s=r(360),n=r(5180),t=r(8477),a=r(3521),O=1e3,b=function(y){var u=(0,s.Oc)(),f=u.act,m=u.data,d=m.capacityPercent,v=m.charge,_=m.inputAttempt,l=m.inputting,c=m.inputLevel,h=m.inputLevelMax,g=m.inputAvailable,p=m.outputPowernet,j=m.outputAttempt,x=m.outputting,C=m.outputLevel,I=m.outputLevelMax,P=m.outputUsed,M=d>=100&&"good"||l&&"average"||"bad",B=x&&"good"||v>0&&"average"||"bad";return(0,e.jsx)(a.p8,{width:340,height:345,children:(0,e.jsx)(a.p8.Content,{children:(0,e.jsxs)(n.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(n.wn,{title:"Stored Energy",children:(0,e.jsx)(n.z2,{value:d*.01,ranges:{good:[.5,1/0],average:[.15,.5],bad:[-1/0,.15]}})}),(0,e.jsx)(n.wn,{title:"Input",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Charge Mode",buttons:(0,e.jsx)(n.$n,{icon:_?"sync-alt":"times",selected:_,onClick:function(){return f("tryinput")},children:_?"Auto":"Off"}),children:(0,e.jsx)(n.az,{color:M,children:d>=100&&"Fully Charged"||l&&"Charging"||"Not Charging"})}),(0,e.jsx)(n.Ki.Item,{label:"Target Input",children:(0,e.jsxs)(n.BJ,{width:"100%",children:[(0,e.jsxs)(n.BJ.Item,{children:[(0,e.jsx)(n.$n,{icon:"fast-backward",disabled:c===0,onClick:function(){return f("input",{target:"min"})}}),(0,e.jsx)(n.$n,{icon:"backward",disabled:c===0,onClick:function(){return f("input",{adjust:-1e4})}})]}),(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(n.Ap,{value:c/O,fillValue:g/O,minValue:0,maxValue:h/O,step:5,stepPixelSize:4,format:function(w){return(0,t.d5)(w*O,1)},onChange:function(w,T){return f("input",{target:T*O})}})}),(0,e.jsxs)(n.BJ.Item,{children:[(0,e.jsx)(n.$n,{icon:"forward",disabled:c===h,onClick:function(){return f("input",{adjust:1e4})}}),(0,e.jsx)(n.$n,{icon:"fast-forward",disabled:c===h,onClick:function(){return f("input",{target:"max"})}})]})]})}),(0,e.jsx)(n.Ki.Item,{label:"Available",children:(0,t.d5)(g)})]})}),(0,e.jsx)(n.wn,{fill:!0,title:"Output",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Output Mode",buttons:(0,e.jsx)(n.$n,{icon:j?"power-off":"times",selected:j,onClick:function(){return f("tryoutput")},children:j?"On":"Off"}),children:(0,e.jsx)(n.az,{color:B,children:p?x?"Sending":v>0?"Not Sending":"No Charge":"Not Connected"})}),(0,e.jsx)(n.Ki.Item,{label:"Target Output",children:(0,e.jsxs)(n.BJ,{width:"100%",children:[(0,e.jsxs)(n.BJ.Item,{children:[(0,e.jsx)(n.$n,{icon:"fast-backward",disabled:C===0,onClick:function(){return f("output",{target:"min"})}}),(0,e.jsx)(n.$n,{icon:"backward",disabled:C===0,onClick:function(){return f("output",{adjust:-1e4})}})]}),(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(n.Ap,{value:C/O,minValue:0,maxValue:I/O,step:5,stepPixelSize:4,format:function(w){return(0,t.d5)(w*O,1)},onChange:function(w,T){return f("output",{target:T*O})}})}),(0,e.jsxs)(n.BJ.Item,{children:[(0,e.jsx)(n.$n,{icon:"forward",disabled:C===I,onClick:function(){return f("output",{adjust:1e4})}}),(0,e.jsx)(n.$n,{icon:"fast-forward",disabled:C===I,onClick:function(){return f("output",{target:"max"})}})]})]})}),(0,e.jsx)(n.Ki.Item,{label:"Outputting",children:(0,t.d5)(P)})]})})]})})})}},9599:(q,S,r)=>{"use strict";r.r(S),r.d(S,{ERTManager:()=>u,ERTOverview:()=>f});var e=r(1131),s=r(360),n=r(7003),t=r(5180),a=r(3521),O=r(9845),b={0:function(){return(0,e.jsx)(m,{})},1:function(){return(0,e.jsx)(d,{})},2:function(){return(0,e.jsx)(v,{})},default:function(){return"\u0427\u0422\u041E-\u0422\u041E \u041F\u041E\u0428\u041B\u041E \u0421\u041E\u0412\u0421\u0415\u041C \u041D\u0415 \u0422\u0410\u041A, \u041D\u0410\u041F\u0418\u0428\u0418\u0422\u0415 \u0412 \u0410\u0425\u0415\u041B\u041F, \u0421\u0422\u041E\u041F, \u0412\u042B \u0410\u0414\u041C\u0418\u041D, \u041E\u0425 \u0411\u041B\u042F! \u0441\u043E\u043E\u0431\u0449\u0438\u0442\u0435 \u043A\u043E\u0434\u0435\u0440\u0430\u043C \u0438\u043B\u0438 \u0442\u0438\u043F\u043E \u0442\u043E\u0433\u043E. (Send Gimmick Team \u043C\u043E\u0436\u0435\u0442 \u0431\u044B\u0442\u044C \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u044B\u043C \u0440\u0435\u0448\u0435\u043D\u0438\u0435\u043C)"}},y=function(_){return b[_]},u=function(_){var l=(0,n.useState)(0),c=l[0],h=l[1];return(0,e.jsx)(a.p8,{title:"\u041C\u0435\u043D\u0435\u0434\u0436\u0435\u0440 \u041E\u0411\u0420",width:400,height:540,children:(0,e.jsxs)(a.p8.Content,{children:[(0,e.jsx)(f,{}),(0,e.jsxs)(t.tU,{children:[(0,e.jsx)(t.tU.Tab,{selected:c===0,onClick:function(){h(0)},icon:"ambulance",children:"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u041E\u0411\u0420"},"SendERT"),(0,e.jsx)(t.tU.Tab,{selected:c===1,onClick:function(){h(1)},icon:"book",children:"\u0417\u0430\u043F\u0440\u043E\u0441\u044B \u041E\u0411\u0420"},"ReadERTRequests"),(0,e.jsx)(t.tU.Tab,{selected:c===2,onClick:function(){h(2)},icon:"times",children:"\u041E\u0442\u043A\u043B\u043E\u043D\u0438\u0442\u044C \u041E\u0411\u0420"},"DenyERT")]}),y(c)()]})})},f=function(_){var l=(0,s.Oc)(),c=l.act,h=l.data,g=h.security_level_color,p=h.str_security_level,j=h.ert_request_answered;return(0,e.jsx)(t.wn,{title:"\u041E\u0431\u0437\u043E\u0440",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"\u0422\u0435\u043A\u0443\u0449\u0438\u0439 \u0443\u0440\u043E\u0432\u0435\u043D\u044C \u0443\u0433\u0440\u043E\u0437\u044B",color:g,children:p}),(0,e.jsx)(t.Ki.Item,{label:"\u0417\u0430\u043F\u0440\u043E\u0441 \u041E\u0411\u0420",children:(0,e.jsx)(t.$n.Checkbox,{checked:j,textColor:j?null:"bad",onClick:function(){return c("toggle_ert_request_answered")},tooltip:"\u0423\u0441\u0442\u0430\u043D\u043E\u0432\u043A\u0430 \u044D\u0442\u043E\u0433\u043E \u0444\u043B\u0430\u0433\u0430 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0443\u0432\u0435\u0434\u043E\u043C\u043B\u0435\u043D\u0438\u0435-\u043D\u0430\u043F\u043E\u043C\u0438\u043D\u0430\u043D\u0438\u0435 \u043E \u0442\u043E\u043C, \u0447\u0442\u043E \u0437\u0430\u043F\u0440\u043E\u0441 \u041E\u0411\u0420 \u043F\u0440\u043E\u0438\u0433\u043D\u043E\u0440\u0438\u0440\u043E\u0432\u0430\u043D.",selected:null,children:j?"\u041E\u0442\u0432\u0435\u0447\u0435\u043D\u043E":"\u041D\u0435\u043E\u0442\u0432\u0435\u0447\u0435\u043D\u043E"})})]})})},m=function(_){var l=(0,s.Oc)(),c=l.act,h=l.data,g=[0,1,2,3,4,5],p=(0,n.useState)(!1),j=p[0],x=p[1];return(0,e.jsx)(t.wn,{title:"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u041E\u0411\u0420",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{color:h.ert_type==="Amber"?"orange":"",onClick:function(){return c("ert_type",{ert_type:"Amber"})},children:"\u042D\u043C\u0431\u0435\u0440"}),(0,e.jsx)(t.$n,{color:h.ert_type==="Red"?"red":"",onClick:function(){return c("ert_type",{ert_type:"Red"})},children:"\u0420\u0435\u0434"}),(0,e.jsx)(t.$n,{color:h.ert_type==="Gamma"?"purple":"",onClick:function(){return c("ert_type",{ert_type:"Gamma"})},children:"\u0413\u0430\u043C\u043C\u0430"})]}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"\u041A\u043E\u043C\u0430\u043D\u0434\u0438\u0440",children:(0,e.jsx)(t.$n,{icon:h.com?"toggle-on":"toggle-off",selected:h.com,onClick:function(){return c("toggle_com")},children:h.com?"\u0414\u0430":"\u041D\u0435\u0442"})}),(0,e.jsx)(t.Ki.Item,{label:"\u0411\u043E\u0435\u0446",children:g.map(function(C,I){return(0,e.jsx)(t.$n,{selected:h.sec===C,onClick:function(){return c("set_sec",{set_sec:C})},children:C},"sec"+C)})}),(0,e.jsx)(t.Ki.Item,{label:"\u041C\u0435\u0434\u0438\u043A",children:g.map(function(C,I){return(0,e.jsx)(t.$n,{selected:h.med===C,onClick:function(){return c("set_med",{set_med:C})},children:C},"med"+C)})}),(0,e.jsx)(t.Ki.Item,{label:"\u0418\u043D\u0436\u0435\u043D\u0435\u0440",children:g.map(function(C,I){return(0,e.jsx)(t.$n,{selected:h.eng===C,onClick:function(){return c("set_eng",{set_eng:C})},children:C},"eng"+C)})}),(0,e.jsx)(t.Ki.Item,{label:"\u041F\u0430\u0440\u0430\u043D\u043E\u0440\u043C\u0430\u043B",children:g.map(function(C,I){return(0,e.jsx)(t.$n,{selected:h.par===C,onClick:function(){return c("set_par",{set_par:C})},children:C},"par"+C)})}),(0,e.jsx)(t.Ki.Item,{label:"\u0423\u0431\u043E\u0440\u0449\u0438\u043A",children:g.map(function(C,I){return(0,e.jsx)(t.$n,{selected:h.jan===C,onClick:function(){return c("set_jan",{set_jan:C})},children:C},"jan"+C)})}),(0,e.jsx)(t.Ki.Item,{label:"\u0411\u043E\u0440\u0433",children:g.map(function(C,I){return(0,e.jsx)(t.$n,{selected:h.cyb===C,onClick:function(){return c("set_cyb",{set_cyb:C})},children:C},"cyb"+C)})}),(0,e.jsx)(t.Ki.Item,{label:"\u0421\u043A\u0440\u044B\u0442\u043D\u044B\u0439 \u041E\u0411\u0420",children:(0,e.jsx)(t.$n,{icon:j?"microphone-slash":"microphone",selected:j,onClick:function(){return x(!j)},tooltip:j?"\u041E\u0431 \u044D\u0442\u043E\u043C \u041E\u0411\u0420 \u043D\u0435 \u0431\u0443\u0434\u0435\u0442 \u043E\u0431\u044A\u044F\u0432\u043B\u0435\u043D\u043E \u043D\u0430 \u0441\u0442\u0430\u043D\u0446\u0438\u0438.":"\u041E\u0431 \u044D\u0442\u043E\u043C \u041E\u0411\u0420 \u0431\u0443\u0434\u0435\u0442 \u043E\u0431\u044A\u044F\u0432\u043B\u0435\u043D\u043E \u043D\u0430 \u0441\u0442\u0430\u043D\u0446\u0438\u0438 \u043F\u0440\u0438 \u043E\u0442\u043F\u0440\u0430\u0432\u043A\u0435.",children:j?"\u0414\u0430":"\u041D\u0435\u0442"})}),(0,e.jsx)(t.Ki.Item,{label:"\u0422\u0435\u043A\u0443\u0449\u0438\u0435 \u0441\u043B\u043E\u0442\u044B",children:(0,e.jsxs)(t.az,{color:h.total>h.spawnpoints?"red":"green",children:[h.total," \u0432\u044B\u0431\u0440\u0430\u043D\u043E, \u043F\u0440\u043E\u0442\u0438\u0432 ",h.spawnpoints," \u0442\u043E\u0447\u0435\u043A \u0441\u043F\u0430\u0432\u043D\u0430"]})}),(0,e.jsx)(t.Ki.Item,{label:"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C",children:(0,e.jsx)(t.$n,{icon:"ambulance",onClick:function(){return c("dispatch_ert",{silent:j})},children:"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u041E\u0411\u0420"})})]})})},d=function(_){var l=(0,s.Oc)(),c=l.act,h=l.data,g=h.ert_request_messages;return(0,e.jsx)(t.wn,{children:g&&g.length?g.map(function(p){return(0,e.jsx)(t.wn,{title:p.time,buttons:(0,e.jsx)(t.$n,{onClick:function(){return c("view_player_panel",{uid:p.sender_uid})},tooltip:"\u041F\u043E\u0441\u043C\u043E\u0442\u0440\u0435\u0442\u044C Player panel",children:p.sender_real_name}),children:p.message},(0,O.jT)(p.time))}):(0,e.jsx)(t.az,{italic:!0,textAlign:"center",children:"\u041D\u0435\u0442 \u0437\u0430\u043F\u0440\u043E\u0441\u043E\u0432 \u041E\u0411\u0420"})})},v=function(_){var l=(0,s.Oc)().act,c=(0,n.useState)(""),h=c[0],g=c[1];return(0,e.jsxs)(t.wn,{fill:!0,children:[(0,e.jsx)(t.fs,{placeholder:"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0437\u0434\u0435\u0441\u044C \u043F\u0440\u0438\u0447\u0438\u043D\u0443 \u043E\u0442\u043A\u043B\u043E\u043D\u0435\u043D\u0438\u044F \u041E\u0411\u0420. \u041C\u043D\u043E\u0433\u043E\u0441\u0442\u0440\u043E\u0447\u043D\u044B\u0439 \u0432\u0432\u043E\u0434 \u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D.",fluid:!0,height:"50%",value:h,onChange:g}),(0,e.jsx)(t.$n.Confirm,{fluid:!0,icon:"times",align:"center",mt:"5px",textAlign:"center",onClick:function(){return l("deny_ert",{reason:h})},children:"\u041E\u0442\u043A\u043B\u043E\u043D\u0438\u0442\u044C \u0437\u0430\u043F\u0440\u043E\u0441 \u041E\u0411\u0420"})]})}},9602:(q,S,r)=>{"use strict";r.r(S),r.d(S,{TachyonArray:()=>a,TachyonArrayContent:()=>O});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(b){var y=(0,s.Oc)(),u=y.act,f=y.data,m=f.records,d=m===void 0?[]:m,v=f.explosion_target,_=f.toxins_tech,l=f.printing;return(0,e.jsx)(t.p8,{width:500,height:600,children:(0,e.jsxs)(t.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Shift's Target",children:v}),(0,e.jsx)(n.Ki.Item,{label:"Current Toxins Level",children:_}),(0,e.jsxs)(n.Ki.Item,{label:"Administration",children:[(0,e.jsx)(n.$n,{icon:"print",disabled:!d.length||l,align:"center",onClick:function(){return u("print_logs")},children:"Print All Logs"}),(0,e.jsx)(n.$n.Confirm,{icon:"trash",disabled:!d.length,color:"bad",align:"center",onClick:function(){return u("delete_logs")},children:"Delete All Logs"})]})]})}),d.length?(0,e.jsx)(O,{}):(0,e.jsx)(n.IC,{children:"No Records"})]})})},O=function(b){var y=(0,s.Oc)(),u=y.act,f=y.data,m=f.records,d=m===void 0?[]:m;return(0,e.jsx)(n.wn,{title:"Logged Explosions",children:(0,e.jsx)(n.so,{children:(0,e.jsx)(n.so.Item,{children:(0,e.jsxs)(n.XI,{m:"0.5rem",children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{children:"Time"}),(0,e.jsx)(n.XI.Cell,{children:"Epicenter"}),(0,e.jsx)(n.XI.Cell,{children:"Actual Size"}),(0,e.jsx)(n.XI.Cell,{children:"Theoretical Size"})]}),d.map(function(v){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{children:v.logged_time}),(0,e.jsx)(n.XI.Cell,{children:v.epicenter}),(0,e.jsx)(n.XI.Cell,{children:v.actual_size_message}),(0,e.jsx)(n.XI.Cell,{children:v.theoretical_size_message}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n.Confirm,{icon:"trash",color:"bad",onClick:function(){return u("delete_record",{index:v.index})},children:"Delete"})})]},v.index)})]})})})})}},9643:(q,S,r)=>{"use strict";r.r(S),r.d(S,{ThiefKit:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(O){var b=(0,s.Oc)(),y=b.act,u=b.data,f=u.uses,m=u.possible_uses,d=u.multi_uses,v=u.kits,_=u.choosen_kits;return(0,e.jsx)(t.p8,{width:600,height:900,children:(0,e.jsxs)(t.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{title:"\u041D\u0430\u0431\u043E\u0440 \u0413\u0438\u043B\u044C\u0434\u0438\u0438 \u0412\u043E\u0440\u043E\u0432:",children:(0,e.jsxs)(n.az,{italic:!0,children:[(0,e.jsx)("i",{children:"\u0423\u0432\u0435\u0441\u0438\u0441\u0442\u0430\u044F \u043A\u043E\u0440\u043E\u0431\u043A\u0430, \u0432 \u043A\u043E\u0442\u043E\u0440\u043E\u0439 \u043B\u0435\u0436\u0438\u0442 \u0441\u043D\u0430\u0440\u044F\u0436\u0435\u043D\u0438\u0435 \u0433\u0438\u043B\u044C\u0434\u0438\u0438 \u0432\u043E\u0440\u043E\u0432."}),(0,e.jsx)("br",{}),(0,e.jsx)("i",{children:"\u041D\u0430\u0431\u043E\u0440 \u0432\u043E\u0440\u0430-\u0448\u0440\u0435\u0434\u0438\u043D\u0433\u0435\u0440\u0430. \u041D\u0435\u043B\u044C\u0437\u044F \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0438\u0442\u044C \u0447\u0442\u043E \u0432 \u043D\u0451\u043C, \u043F\u043E\u043A\u0430 \u043D\u0435 \u0437\u0430\u0433\u043B\u044F\u043D\u0435\u0448\u044C \u0432\u043D\u0443\u0442\u0440\u044C."}),(0,e.jsx)("br",{}),(0,e.jsx)("p",{children:(0,e.jsx)("b",{children:"\u041A\u0430\u043A\u043E\u0435 \u0441\u043D\u0430\u0440\u044F\u0436\u0435\u043D\u0438\u0435 \u0432 \u043D\u0451\u043C \u043B\u0435\u0436\u0438\u0442?:"})}),(0,e.jsxs)("p",{children:["\u041E\u043F\u0440\u0435\u0434\u0435\u043B\u0435\u043D\u043E \u043D\u0430\u0431\u043E\u0440\u043E\u0432:",(0,e.jsxs)(n.az,{as:"span",color:f<=0?"good":f=m,onClick:function(){return y("randomKit")},children:"\u0421\u043B\u0443\u0447\u0430\u0439\u043D\u044B\u0439 \u043D\u0430\u0431\u043E\u0440"}),children:(0,e.jsx)(n.Ki,{children:v&&v.map(function(l){return(0,e.jsx)(n.Ki.Item,{label:l.name,buttons:(0,e.jsxs)(n.wn,{children:[(0,e.jsx)(n.$n,{icon:"upload",disabled:l.was_taken||f>=m,onClick:function(){return y("takeKit",{item:l.type})},children:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C"}),(0,e.jsx)(n.$n,{icon:"undo",disabled:!l.was_taken,onClick:function(){return y("undoKit",{item:l.type})}})]}),children:(0,e.jsx)(n.az,{italic:!0,children:l.desc})},l.type)})})}),(0,e.jsx)(n.wn,{title:"\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0435 \u043D\u0430\u0431\u043E\u0440\u044B:",children:(0,e.jsx)(n.Ki,{children:_&&_.map(function(l){return(0,e.jsx)(n.Ki.Item,{label:l.name,buttons:(0,e.jsx)(n.$n,{icon:"undo",onClick:function(){return y("undoKit",{item:l.type})},children:"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C \u0432\u044B\u0431\u043E\u0440"}),children:(0,e.jsx)(n.az,{italic:!0,children:" "})},l.type)})})}),(0,e.jsxs)(n.wn,{children:[(0,e.jsx)(n.$n,{color:f{"use strict";r.d(S,{a:()=>a});var e=r(7003),s=r(8222);/** + */var n=function(t){var a=t.hidden,b=t.vertical;return(0,e.jsx)("div",{className:(0,s.Ly)(["Divider",a&&"Divider--hidden",b?"Divider--vertical":"Divider--horizontal"])})}},9409:(q,S,r)=>{"use strict";r.r(S),r.d(S,{GeneModder:()=>O});var e=r(1131),s=r(360),n=r(185),t=r(5180),a=r(538),b=r(3521),O=function(l){var c=(0,s.Oc)().data,h=c.has_seed;return(0,e.jsx)(b.p8,{width:500,height:650,children:(0,e.jsx)(b.p8.Content,{children:(0,e.jsxs)(t.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(f,{}),(0,e.jsx)(a.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),h?(0,e.jsx)(y,{}):(0,e.jsx)(u,{})]})})})},y=function(l){var c=(0,s.Oc)(),h=c.act,g=c.data,p=g.disk;return(0,e.jsxs)(t.wn,{title:"Genes",fill:!0,scrollable:!0,buttons:(0,e.jsx)(t.$n,{disabled:!p||!p.can_insert||p.is_core,icon:"arrow-circle-down",onClick:function(){return h("insert")},children:"Insert Gene from Disk"}),children:[(0,e.jsx)(m,{}),(0,e.jsx)(d,{}),(0,e.jsx)(v,{})]})},u=function(l){return(0,e.jsx)(t.wn,{fill:!0,height:"85%",children:(0,e.jsx)(t.BJ,{height:"100%",children:(0,e.jsxs)(t.BJ.Item,{bold:!0,grow:1,textAlign:"center",align:"center",color:"green",children:[(0,e.jsx)(t.In,{name:"leaf",size:5,mb:"10px"}),(0,e.jsx)("br",{}),"The plant DNA manipulator is missing a seed."]})})})},f=function(l){var c=(0,s.Oc)(),h=c.act,g=c.data,p=g.has_seed,j=g.seed,x=g.has_disk,C=g.disk,I,P;return p?I=(0,e.jsxs)(t.BJ.Item,{mb:"-6px",mt:"-4px",children:[(0,e.jsx)(t._V,{className:(0,n.Ly)(["seeds32x32",j.image]),style:{verticalAlign:"middle",width:"32px",margin:"-1px",marginLeft:"-11px"}}),(0,e.jsx)(t.$n,{onClick:function(){return h("eject_seed")},children:j.name}),(0,e.jsx)(t.$n,{ml:"3px",icon:"pen",tooltip:"Name Variant",onClick:function(){return h("variant_name")}})]}):I=(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.$n,{ml:3.3,onClick:function(){return h("eject_seed")},children:"None"})}),x?P=C.name:P="None",(0,e.jsx)(t.wn,{title:"Storage",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Plant Sample",children:I}),(0,e.jsx)(t.Ki.Item,{label:"Data Disk",children:(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.$n,{ml:3.3,onClick:function(){return h("eject_disk")},children:P})})})]})})},m=function(l){var c=(0,s.Oc)(),h=c.act,g=c.data,p=g.disk,j=g.core_genes;return(0,e.jsxs)(t.Nt,{title:"Core Genes",open:!0,children:[j.map(function(x){return(0,e.jsxs)(t.BJ,{py:"2px",className:"candystripe",children:[(0,e.jsx)(t.BJ.Item,{width:"100%",ml:"2px",children:x.name}),(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.$n,{disabled:!p?.can_extract,icon:"save",onClick:function(){return h("extract",{id:x.id})},children:"Extract"})}),(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.$n,{disabled:!x.is_type||!p.can_insert,icon:"arrow-circle-down",onClick:function(){return h("replace",{id:x.id})},children:"Replace"})})]},x.id)})," ",(0,e.jsx)(t.BJ,{children:(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.$n,{disabled:!p?.is_bulk_core,icon:"arrow-circle-down",onClick:function(){return h("bulk_replace_core")},children:"Replace All"})})})]},"Core Genes")},d=function(l){var c=(0,s.Oc)().data,h=c.reagent_genes,g=c.has_reagent;return(0,e.jsx)(_,{title:"Reagent Genes",gene_set:h,do_we_show:g})},v=function(l){var c=(0,s.Oc)().data,h=c.trait_genes,g=c.has_trait;return(0,e.jsx)(_,{title:"Trait Genes",gene_set:h,do_we_show:g})},_=function(l){var c=l.title,h=l.gene_set,g=l.do_we_show,p=(0,s.Oc)(),j=p.act,x=p.data,C=x.disk;return(0,e.jsx)(t.Nt,{title:c,open:!0,children:g?h.map(function(I){return(0,e.jsxs)(t.BJ,{py:"2px",className:"candystripe",children:[(0,e.jsx)(t.BJ.Item,{width:"100%",ml:"2px",children:I.name}),(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.$n,{disabled:!C?.can_extract,icon:"save",onClick:function(){return j("extract",{id:I.id})},children:"Extract"})}),(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.$n,{icon:"times",onClick:function(){return j("remove",{id:I.id})},children:"Remove"})})]},I.id)}):(0,e.jsx)(t.BJ.Item,{children:"No Genes Detected"})},c)}},9427:(q,S,r)=>{"use strict";r.r(S),r.d(S,{CreateObject:()=>_});var e=r(1131),s=r(8523),n=r(7003),t=r(5180),a=r(3973),b=function(l){var c=l.getSearchString,h=l.matchStrategy,g=h===void 0?"smart":h,p=l.searchArray,j=(0,n.useState)(""),x=j[0],C=j[1],I=(0,n.useState)([]),P=I[0],M=I[1],B=(0,n.useCallback)((0,a.Ay)(p,{getText:function(T){return[c(T)]},strategy:g}),[p,c]),w=function(T){if(C(T),T.trim()===""){M([]);return}var K=B(T);M(K.map(function(R){return R.item}))};return{query:x,setQuery:w,results:P}},O=r(360),y=r(2673),u=r(1160);function f(l,c,h,g,p,j,x){try{var C=l[j](x),I=C.value}catch(P){h(P);return}C.done?c(I):Promise.resolve(I).then(g,p)}function m(l){return function(){var c=this,h=arguments;return new Promise(function(g,p){var j=l.apply(c,h);function x(I){f(j,g,p,x,C,"next",I)}function C(I){f(j,g,p,x,C,"throw",I)}x(void 0)})}}function d(){return d=Object.assign||function(l){for(var c=1;c0&&p[p.length-1])&&(P[0]===6||P[0]===2)){j=0;continue}if(P[0]===3&&(!p||P[1]>p[0]&&P[1]{"use strict";r.r(S),r.d(S,{DisplayComponent:()=>m});var e=r(1131),s=r(7003),n=r(5180),t=r(185),a=r(8968),b=r(7941);function O(){return O=Object.assign||function(d){for(var v=1;v=0)&&(_[c]=d[c]);return _}function f(d,v){return f=Object.setPrototypeOf||function(l,c){return l.__proto__=c,l},f(d,v)}var m=function(d){"use strict";y(v,d);function v(l){var c;return c=d.call(this,l)||this,c.ref=(0,s.createRef)(),c}var _=v.prototype;return _.componentDidUpdate=function(){var c=this.props.onDisplayUpdated;c&&c(this.ref.current)},_.componentDidMount=function(){var c=this.props.onDisplayLoaded;c&&c(this.ref.current)},_.shouldComponentUpdate=function(c,h){return c.component!==this.props.component||c.top!==this.props.top||c.left!==this.props.left},_.render=function(){var c=this.props,h=c.component,g=c.fixedSize,p=u(c,["component","fixedSize"]),j="ObjectComponent__Category__"+(h.category||"Unassigned");return(0,e.jsx)(n.az,O({},p,{children:(0,e.jsxs)("div",{ref:this.ref,children:[(0,e.jsx)(n.az,{py:1,px:1,className:(0,t.Ly)(["ObjectComponent__Titlebar",j]),children:(0,e.jsxs)(n.BJ,{children:[(0,e.jsx)(n.BJ.Item,{grow:1,children:h.name}),!!h.ui_alerts&&Object.keys(h.ui_alerts).map(function(x){return(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.$n,{icon:x,className:j,compact:!0,tooltip:h.ui_alerts[x]})},x)}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.$n,{icon:"info",compact:!0,className:j,tooltip:h.description,tooltipPosition:"top"})})]})}),(0,e.jsx)(n.az,{className:"ObjectComponent__Content",py:1,px:1,children:(0,e.jsxs)(n.BJ,{children:[(0,e.jsx)(n.BJ.Item,{grow:g,children:(0,e.jsx)(n.BJ,{vertical:!0,fill:!0,children:h.input_ports.map(function(x,C){return(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(b.Port,{port:x,act:a.noop})},C)})})}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.BJ,{vertical:!0,children:h.output_ports.map(function(x,C){return(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(b.Port,{port:x,act:a.noop,isOutput:!0})},C)})})})]})})]})}))},v}(s.Component)},9450:(q,S,r)=>{"use strict";r.r(S),r.d(S,{GroupedContents:()=>a});var e=r(1131),s=r(9845),n=r(5180),t=r(1311),a=function(b){var O=b.contents,y=b.searchText,u=Object.entries(O).filter((0,s.XZ)(y,function(f){var m=f[0],d=f[1];return d[0].name})).map(function(f){var m=f[0],d=f[1];return{amount:d.length,item:d[0]}});return(0,e.jsx)(n.az,{m:-.5,children:u.map(function(f){return(0,e.jsx)(t.LootBox,{group:f},f.item.name)})})}},9484:(q,S,r)=>{"use strict";r.r(S),r.d(S,{pai_secrecords:()=>a});var e=r(1131),s=r(360),n=r(8725);function t(){return t=Object.assign||function(b){for(var O=1;O{"use strict";r.r(S),r.d(S,{SpawnersMenu:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(b){var O=(0,s.Oc)(),y=O.act,u=O.data,f=u.spawners||[];return(0,e.jsx)(t.p8,{width:700,height:600,children:(0,e.jsx)(t.p8.Content,{scrollable:!0,children:(0,e.jsx)(n.wn,{children:f.map(function(m){return(0,e.jsxs)(n.wn,{mb:.5,title:m.name+" ("+m.amount_left+" left)",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"chevron-circle-right",onClick:function(){return y("jump",{ID:m.uids})},children:"Jump"}),(0,e.jsx)(n.$n,{icon:"chevron-circle-right",onClick:function(){return y("spawn",{ID:m.uids})},children:"Spawn"})]}),children:[(0,e.jsx)(n.az,{style:{whiteSpace:"pre-wrap"},mb:1,fontSize:"16px",children:m.desc}),!!m.fluff&&(0,e.jsx)(n.az,{style:{whiteSpace:"pre-wrap"},textColor:"#878787",fontSize:"14px",children:m.fluff}),!!m.important_info&&(0,e.jsx)(n.az,{style:{whiteSpace:"pre-wrap"},mt:1,bold:!0,color:"red",fontSize:"18px",children:m.important_info})]},m.name)})})})})}},9515:(q,S,r)=>{"use strict";r.r(S),r.d(S,{pai_atmosphere:()=>a});var e=r(1131),s=r(360),n=r(9924);function t(){return t=Object.assign||function(b){for(var O=1;O{"use strict";r.r(S),r.d(S,{EvolutionMenu:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(y){return(0,e.jsx)(t.p8,{width:480,height:574,theme:"changeling",children:(0,e.jsxs)(t.p8.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:[(0,e.jsx)(b,{}),(0,e.jsx)(O,{})]})})},b=function(y){var u=(0,s.Oc)(),f=u.act,m=u.data,d=m.evo_points,v=m.can_respec;return(0,e.jsx)(n.wn,{title:"Evolution Points",height:5.5,children:(0,e.jsxs)(n.so,{children:[(0,e.jsx)(n.so.Item,{mt:.5,color:"label",children:"Points remaining:"}),(0,e.jsx)(n.so.Item,{mt:.5,ml:2,bold:!0,color:"#1b945c",children:d}),(0,e.jsxs)(n.so.Item,{children:[(0,e.jsx)(n.$n,{ml:2.5,disabled:!v,icon:"sync",onClick:function(){return f("readapt")},children:"Readapt"}),(0,e.jsx)(n.$n,{tooltip:"By transforming a humanoid into a husk, \\ we gain the ability to readapt our chosen evolutions.",tooltipPosition:"bottom",icon:"question-circle"})]})]})})},O=function(y){var u=(0,s.Oc)(),f=u.act,m=u.data,d=m.evo_points,v=m.ability_list,_=m.purchased_abilities,l=m.view_mode;return(0,e.jsx)(n.wn,{title:"Abilities",flexGrow:!0,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:l?"square-o":"check-square-o",selected:!l,onClick:function(){return f("set_view_mode",{mode:0})},children:"Compact"}),(0,e.jsx)(n.$n,{icon:l?"check-square-o":"square-o",selected:l,onClick:function(){return f("set_view_mode",{mode:1})},children:"Expanded"})]}),children:v.map(function(c,h){return(0,e.jsxs)(n.az,{p:.5,mx:-1,className:"candystripe",children:[(0,e.jsxs)(n.so,{align:"center",children:[(0,e.jsx)(n.so.Item,{ml:.5,color:"#dedede",children:c.name}),_.includes(c.power_path)&&(0,e.jsx)(n.so.Item,{ml:2,bold:!0,color:"#1b945c",children:"(Purchased)"}),(0,e.jsxs)(n.so.Item,{mr:3,textAlign:"right",grow:1,children:[(0,e.jsxs)(n.az,{as:"span",color:"label",children:["Cost:"," "]}),(0,e.jsx)(n.az,{as:"span",bold:!0,color:"#1b945c",children:c.cost})]}),(0,e.jsx)(n.so.Item,{textAlign:"right",children:(0,e.jsx)(n.$n,{mr:.5,disabled:c.cost>d||_.includes(c.power_path),onClick:function(){return f("purchase",{power_path:c.power_path})},children:"Evolve"})})]}),!!l&&(0,e.jsx)(n.so,{color:"#8a8a8a",my:1,ml:1.5,width:"95%",children:c.description+" "+c.helptext})]},h)})})}},9583:(q,S,r)=>{"use strict";r.r(S),r.d(S,{Smes:()=>O});var e=r(1131),s=r(360),n=r(5180),t=r(8477),a=r(3521),b=1e3,O=function(y){var u=(0,s.Oc)(),f=u.act,m=u.data,d=m.capacityPercent,v=m.charge,_=m.inputAttempt,l=m.inputting,c=m.inputLevel,h=m.inputLevelMax,g=m.inputAvailable,p=m.outputPowernet,j=m.outputAttempt,x=m.outputting,C=m.outputLevel,I=m.outputLevelMax,P=m.outputUsed,M=d>=100&&"good"||l&&"average"||"bad",B=x&&"good"||v>0&&"average"||"bad";return(0,e.jsx)(a.p8,{width:340,height:345,children:(0,e.jsx)(a.p8.Content,{children:(0,e.jsxs)(n.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(n.wn,{title:"Stored Energy",children:(0,e.jsx)(n.z2,{value:d*.01,ranges:{good:[.5,1/0],average:[.15,.5],bad:[-1/0,.15]}})}),(0,e.jsx)(n.wn,{title:"Input",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Charge Mode",buttons:(0,e.jsx)(n.$n,{icon:_?"sync-alt":"times",selected:_,onClick:function(){return f("tryinput")},children:_?"Auto":"Off"}),children:(0,e.jsx)(n.az,{color:M,children:d>=100&&"Fully Charged"||l&&"Charging"||"Not Charging"})}),(0,e.jsx)(n.Ki.Item,{label:"Target Input",children:(0,e.jsxs)(n.BJ,{width:"100%",children:[(0,e.jsxs)(n.BJ.Item,{children:[(0,e.jsx)(n.$n,{icon:"fast-backward",disabled:c===0,onClick:function(){return f("input",{target:"min"})}}),(0,e.jsx)(n.$n,{icon:"backward",disabled:c===0,onClick:function(){return f("input",{adjust:-1e4})}})]}),(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(n.Ap,{value:c/b,fillValue:g/b,minValue:0,maxValue:h/b,step:5,stepPixelSize:4,format:function(w){return(0,t.d5)(w*b,1)},onChange:function(w,T){return f("input",{target:T*b})}})}),(0,e.jsxs)(n.BJ.Item,{children:[(0,e.jsx)(n.$n,{icon:"forward",disabled:c===h,onClick:function(){return f("input",{adjust:1e4})}}),(0,e.jsx)(n.$n,{icon:"fast-forward",disabled:c===h,onClick:function(){return f("input",{target:"max"})}})]})]})}),(0,e.jsx)(n.Ki.Item,{label:"Available",children:(0,t.d5)(g)})]})}),(0,e.jsx)(n.wn,{fill:!0,title:"Output",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Output Mode",buttons:(0,e.jsx)(n.$n,{icon:j?"power-off":"times",selected:j,onClick:function(){return f("tryoutput")},children:j?"On":"Off"}),children:(0,e.jsx)(n.az,{color:B,children:p?x?"Sending":v>0?"Not Sending":"No Charge":"Not Connected"})}),(0,e.jsx)(n.Ki.Item,{label:"Target Output",children:(0,e.jsxs)(n.BJ,{width:"100%",children:[(0,e.jsxs)(n.BJ.Item,{children:[(0,e.jsx)(n.$n,{icon:"fast-backward",disabled:C===0,onClick:function(){return f("output",{target:"min"})}}),(0,e.jsx)(n.$n,{icon:"backward",disabled:C===0,onClick:function(){return f("output",{adjust:-1e4})}})]}),(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(n.Ap,{value:C/b,minValue:0,maxValue:I/b,step:5,stepPixelSize:4,format:function(w){return(0,t.d5)(w*b,1)},onChange:function(w,T){return f("output",{target:T*b})}})}),(0,e.jsxs)(n.BJ.Item,{children:[(0,e.jsx)(n.$n,{icon:"forward",disabled:C===I,onClick:function(){return f("output",{adjust:1e4})}}),(0,e.jsx)(n.$n,{icon:"fast-forward",disabled:C===I,onClick:function(){return f("output",{target:"max"})}})]})]})}),(0,e.jsx)(n.Ki.Item,{label:"Outputting",children:(0,t.d5)(P)})]})})]})})})}},9599:(q,S,r)=>{"use strict";r.r(S),r.d(S,{ERTManager:()=>u,ERTOverview:()=>f});var e=r(1131),s=r(360),n=r(7003),t=r(5180),a=r(3521),b=r(9845),O={0:function(){return(0,e.jsx)(m,{})},1:function(){return(0,e.jsx)(d,{})},2:function(){return(0,e.jsx)(v,{})},default:function(){return"\u0427\u0422\u041E-\u0422\u041E \u041F\u041E\u0428\u041B\u041E \u0421\u041E\u0412\u0421\u0415\u041C \u041D\u0415 \u0422\u0410\u041A, \u041D\u0410\u041F\u0418\u0428\u0418\u0422\u0415 \u0412 \u0410\u0425\u0415\u041B\u041F, \u0421\u0422\u041E\u041F, \u0412\u042B \u0410\u0414\u041C\u0418\u041D, \u041E\u0425 \u0411\u041B\u042F! \u0441\u043E\u043E\u0431\u0449\u0438\u0442\u0435 \u043A\u043E\u0434\u0435\u0440\u0430\u043C \u0438\u043B\u0438 \u0442\u0438\u043F\u043E \u0442\u043E\u0433\u043E. (Send Gimmick Team \u043C\u043E\u0436\u0435\u0442 \u0431\u044B\u0442\u044C \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u044B\u043C \u0440\u0435\u0448\u0435\u043D\u0438\u0435\u043C)"}},y=function(_){return O[_]},u=function(_){var l=(0,n.useState)(0),c=l[0],h=l[1];return(0,e.jsx)(a.p8,{title:"\u041C\u0435\u043D\u0435\u0434\u0436\u0435\u0440 \u041E\u0411\u0420",width:400,height:540,children:(0,e.jsxs)(a.p8.Content,{children:[(0,e.jsx)(f,{}),(0,e.jsxs)(t.tU,{children:[(0,e.jsx)(t.tU.Tab,{selected:c===0,onClick:function(){h(0)},icon:"ambulance",children:"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u041E\u0411\u0420"},"SendERT"),(0,e.jsx)(t.tU.Tab,{selected:c===1,onClick:function(){h(1)},icon:"book",children:"\u0417\u0430\u043F\u0440\u043E\u0441\u044B \u041E\u0411\u0420"},"ReadERTRequests"),(0,e.jsx)(t.tU.Tab,{selected:c===2,onClick:function(){h(2)},icon:"times",children:"\u041E\u0442\u043A\u043B\u043E\u043D\u0438\u0442\u044C \u041E\u0411\u0420"},"DenyERT")]}),y(c)()]})})},f=function(_){var l=(0,s.Oc)(),c=l.act,h=l.data,g=h.security_level_color,p=h.str_security_level,j=h.ert_request_answered;return(0,e.jsx)(t.wn,{title:"\u041E\u0431\u0437\u043E\u0440",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"\u0422\u0435\u043A\u0443\u0449\u0438\u0439 \u0443\u0440\u043E\u0432\u0435\u043D\u044C \u0443\u0433\u0440\u043E\u0437\u044B",color:g,children:p}),(0,e.jsx)(t.Ki.Item,{label:"\u0417\u0430\u043F\u0440\u043E\u0441 \u041E\u0411\u0420",children:(0,e.jsx)(t.$n.Checkbox,{checked:j,textColor:j?null:"bad",onClick:function(){return c("toggle_ert_request_answered")},tooltip:"\u0423\u0441\u0442\u0430\u043D\u043E\u0432\u043A\u0430 \u044D\u0442\u043E\u0433\u043E \u0444\u043B\u0430\u0433\u0430 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0443\u0432\u0435\u0434\u043E\u043C\u043B\u0435\u043D\u0438\u0435-\u043D\u0430\u043F\u043E\u043C\u0438\u043D\u0430\u043D\u0438\u0435 \u043E \u0442\u043E\u043C, \u0447\u0442\u043E \u0437\u0430\u043F\u0440\u043E\u0441 \u041E\u0411\u0420 \u043F\u0440\u043E\u0438\u0433\u043D\u043E\u0440\u0438\u0440\u043E\u0432\u0430\u043D.",selected:null,children:j?"\u041E\u0442\u0432\u0435\u0447\u0435\u043D\u043E":"\u041D\u0435\u043E\u0442\u0432\u0435\u0447\u0435\u043D\u043E"})})]})})},m=function(_){var l=(0,s.Oc)(),c=l.act,h=l.data,g=[0,1,2,3,4,5],p=(0,n.useState)(!1),j=p[0],x=p[1];return(0,e.jsx)(t.wn,{title:"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u041E\u0411\u0420",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{color:h.ert_type==="Amber"?"orange":"",onClick:function(){return c("ert_type",{ert_type:"Amber"})},children:"\u042D\u043C\u0431\u0435\u0440"}),(0,e.jsx)(t.$n,{color:h.ert_type==="Red"?"red":"",onClick:function(){return c("ert_type",{ert_type:"Red"})},children:"\u0420\u0435\u0434"}),(0,e.jsx)(t.$n,{color:h.ert_type==="Gamma"?"purple":"",onClick:function(){return c("ert_type",{ert_type:"Gamma"})},children:"\u0413\u0430\u043C\u043C\u0430"})]}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"\u041A\u043E\u043C\u0430\u043D\u0434\u0438\u0440",children:(0,e.jsx)(t.$n,{icon:h.com?"toggle-on":"toggle-off",selected:h.com,onClick:function(){return c("toggle_com")},children:h.com?"\u0414\u0430":"\u041D\u0435\u0442"})}),(0,e.jsx)(t.Ki.Item,{label:"\u0411\u043E\u0435\u0446",children:g.map(function(C,I){return(0,e.jsx)(t.$n,{selected:h.sec===C,onClick:function(){return c("set_sec",{set_sec:C})},children:C},"sec"+C)})}),(0,e.jsx)(t.Ki.Item,{label:"\u041C\u0435\u0434\u0438\u043A",children:g.map(function(C,I){return(0,e.jsx)(t.$n,{selected:h.med===C,onClick:function(){return c("set_med",{set_med:C})},children:C},"med"+C)})}),(0,e.jsx)(t.Ki.Item,{label:"\u0418\u043D\u0436\u0435\u043D\u0435\u0440",children:g.map(function(C,I){return(0,e.jsx)(t.$n,{selected:h.eng===C,onClick:function(){return c("set_eng",{set_eng:C})},children:C},"eng"+C)})}),(0,e.jsx)(t.Ki.Item,{label:"\u041F\u0430\u0440\u0430\u043D\u043E\u0440\u043C\u0430\u043B",children:g.map(function(C,I){return(0,e.jsx)(t.$n,{selected:h.par===C,onClick:function(){return c("set_par",{set_par:C})},children:C},"par"+C)})}),(0,e.jsx)(t.Ki.Item,{label:"\u0423\u0431\u043E\u0440\u0449\u0438\u043A",children:g.map(function(C,I){return(0,e.jsx)(t.$n,{selected:h.jan===C,onClick:function(){return c("set_jan",{set_jan:C})},children:C},"jan"+C)})}),(0,e.jsx)(t.Ki.Item,{label:"\u0411\u043E\u0440\u0433",children:g.map(function(C,I){return(0,e.jsx)(t.$n,{selected:h.cyb===C,onClick:function(){return c("set_cyb",{set_cyb:C})},children:C},"cyb"+C)})}),(0,e.jsx)(t.Ki.Item,{label:"\u0421\u043A\u0440\u044B\u0442\u043D\u044B\u0439 \u041E\u0411\u0420",children:(0,e.jsx)(t.$n,{icon:j?"microphone-slash":"microphone",selected:j,onClick:function(){return x(!j)},tooltip:j?"\u041E\u0431 \u044D\u0442\u043E\u043C \u041E\u0411\u0420 \u043D\u0435 \u0431\u0443\u0434\u0435\u0442 \u043E\u0431\u044A\u044F\u0432\u043B\u0435\u043D\u043E \u043D\u0430 \u0441\u0442\u0430\u043D\u0446\u0438\u0438.":"\u041E\u0431 \u044D\u0442\u043E\u043C \u041E\u0411\u0420 \u0431\u0443\u0434\u0435\u0442 \u043E\u0431\u044A\u044F\u0432\u043B\u0435\u043D\u043E \u043D\u0430 \u0441\u0442\u0430\u043D\u0446\u0438\u0438 \u043F\u0440\u0438 \u043E\u0442\u043F\u0440\u0430\u0432\u043A\u0435.",children:j?"\u0414\u0430":"\u041D\u0435\u0442"})}),(0,e.jsx)(t.Ki.Item,{label:"\u0422\u0435\u043A\u0443\u0449\u0438\u0435 \u0441\u043B\u043E\u0442\u044B",children:(0,e.jsxs)(t.az,{color:h.total>h.spawnpoints?"red":"green",children:[h.total," \u0432\u044B\u0431\u0440\u0430\u043D\u043E, \u043F\u0440\u043E\u0442\u0438\u0432 ",h.spawnpoints," \u0442\u043E\u0447\u0435\u043A \u0441\u043F\u0430\u0432\u043D\u0430"]})}),(0,e.jsx)(t.Ki.Item,{label:"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C",children:(0,e.jsx)(t.$n,{icon:"ambulance",onClick:function(){return c("dispatch_ert",{silent:j})},children:"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u041E\u0411\u0420"})})]})})},d=function(_){var l=(0,s.Oc)(),c=l.act,h=l.data,g=h.ert_request_messages;return(0,e.jsx)(t.wn,{children:g&&g.length?g.map(function(p){return(0,e.jsx)(t.wn,{title:p.time,buttons:(0,e.jsx)(t.$n,{onClick:function(){return c("view_player_panel",{uid:p.sender_uid})},tooltip:"\u041F\u043E\u0441\u043C\u043E\u0442\u0440\u0435\u0442\u044C Player panel",children:p.sender_real_name}),children:p.message},(0,b.jT)(p.time))}):(0,e.jsx)(t.az,{italic:!0,textAlign:"center",children:"\u041D\u0435\u0442 \u0437\u0430\u043F\u0440\u043E\u0441\u043E\u0432 \u041E\u0411\u0420"})})},v=function(_){var l=(0,s.Oc)().act,c=(0,n.useState)(""),h=c[0],g=c[1];return(0,e.jsxs)(t.wn,{fill:!0,children:[(0,e.jsx)(t.fs,{placeholder:"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0437\u0434\u0435\u0441\u044C \u043F\u0440\u0438\u0447\u0438\u043D\u0443 \u043E\u0442\u043A\u043B\u043E\u043D\u0435\u043D\u0438\u044F \u041E\u0411\u0420. \u041C\u043D\u043E\u0433\u043E\u0441\u0442\u0440\u043E\u0447\u043D\u044B\u0439 \u0432\u0432\u043E\u0434 \u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D.",fluid:!0,height:"50%",value:h,onChange:g}),(0,e.jsx)(t.$n.Confirm,{fluid:!0,icon:"times",align:"center",mt:"5px",textAlign:"center",onClick:function(){return l("deny_ert",{reason:h})},children:"\u041E\u0442\u043A\u043B\u043E\u043D\u0438\u0442\u044C \u0437\u0430\u043F\u0440\u043E\u0441 \u041E\u0411\u0420"})]})}},9602:(q,S,r)=>{"use strict";r.r(S),r.d(S,{TachyonArray:()=>a,TachyonArrayContent:()=>b});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(O){var y=(0,s.Oc)(),u=y.act,f=y.data,m=f.records,d=m===void 0?[]:m,v=f.explosion_target,_=f.toxins_tech,l=f.printing;return(0,e.jsx)(t.p8,{width:500,height:600,children:(0,e.jsxs)(t.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Shift's Target",children:v}),(0,e.jsx)(n.Ki.Item,{label:"Current Toxins Level",children:_}),(0,e.jsxs)(n.Ki.Item,{label:"Administration",children:[(0,e.jsx)(n.$n,{icon:"print",disabled:!d.length||l,align:"center",onClick:function(){return u("print_logs")},children:"Print All Logs"}),(0,e.jsx)(n.$n.Confirm,{icon:"trash",disabled:!d.length,color:"bad",align:"center",onClick:function(){return u("delete_logs")},children:"Delete All Logs"})]})]})}),d.length?(0,e.jsx)(b,{}):(0,e.jsx)(n.IC,{children:"No Records"})]})})},b=function(O){var y=(0,s.Oc)(),u=y.act,f=y.data,m=f.records,d=m===void 0?[]:m;return(0,e.jsx)(n.wn,{title:"Logged Explosions",children:(0,e.jsx)(n.so,{children:(0,e.jsx)(n.so.Item,{children:(0,e.jsxs)(n.XI,{m:"0.5rem",children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{children:"Time"}),(0,e.jsx)(n.XI.Cell,{children:"Epicenter"}),(0,e.jsx)(n.XI.Cell,{children:"Actual Size"}),(0,e.jsx)(n.XI.Cell,{children:"Theoretical Size"})]}),d.map(function(v){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{children:v.logged_time}),(0,e.jsx)(n.XI.Cell,{children:v.epicenter}),(0,e.jsx)(n.XI.Cell,{children:v.actual_size_message}),(0,e.jsx)(n.XI.Cell,{children:v.theoretical_size_message}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n.Confirm,{icon:"trash",color:"bad",onClick:function(){return u("delete_record",{index:v.index})},children:"Delete"})})]},v.index)})]})})})})}},9643:(q,S,r)=>{"use strict";r.r(S),r.d(S,{ThiefKit:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(b){var O=(0,s.Oc)(),y=O.act,u=O.data,f=u.uses,m=u.possible_uses,d=u.multi_uses,v=u.kits,_=u.choosen_kits;return(0,e.jsx)(t.p8,{width:600,height:900,children:(0,e.jsxs)(t.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{title:"\u041D\u0430\u0431\u043E\u0440 \u0413\u0438\u043B\u044C\u0434\u0438\u0438 \u0412\u043E\u0440\u043E\u0432:",children:(0,e.jsxs)(n.az,{italic:!0,children:[(0,e.jsx)("i",{children:"\u0423\u0432\u0435\u0441\u0438\u0441\u0442\u0430\u044F \u043A\u043E\u0440\u043E\u0431\u043A\u0430, \u0432 \u043A\u043E\u0442\u043E\u0440\u043E\u0439 \u043B\u0435\u0436\u0438\u0442 \u0441\u043D\u0430\u0440\u044F\u0436\u0435\u043D\u0438\u0435 \u0433\u0438\u043B\u044C\u0434\u0438\u0438 \u0432\u043E\u0440\u043E\u0432."}),(0,e.jsx)("br",{}),(0,e.jsx)("i",{children:"\u041D\u0430\u0431\u043E\u0440 \u0432\u043E\u0440\u0430-\u0448\u0440\u0435\u0434\u0438\u043D\u0433\u0435\u0440\u0430. \u041D\u0435\u043B\u044C\u0437\u044F \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0438\u0442\u044C \u0447\u0442\u043E \u0432 \u043D\u0451\u043C, \u043F\u043E\u043A\u0430 \u043D\u0435 \u0437\u0430\u0433\u043B\u044F\u043D\u0435\u0448\u044C \u0432\u043D\u0443\u0442\u0440\u044C."}),(0,e.jsx)("br",{}),(0,e.jsx)("p",{children:(0,e.jsx)("b",{children:"\u041A\u0430\u043A\u043E\u0435 \u0441\u043D\u0430\u0440\u044F\u0436\u0435\u043D\u0438\u0435 \u0432 \u043D\u0451\u043C \u043B\u0435\u0436\u0438\u0442?:"})}),(0,e.jsxs)("p",{children:["\u041E\u043F\u0440\u0435\u0434\u0435\u043B\u0435\u043D\u043E \u043D\u0430\u0431\u043E\u0440\u043E\u0432:",(0,e.jsxs)(n.az,{as:"span",color:f<=0?"good":f=m,onClick:function(){return y("randomKit")},children:"\u0421\u043B\u0443\u0447\u0430\u0439\u043D\u044B\u0439 \u043D\u0430\u0431\u043E\u0440"}),children:(0,e.jsx)(n.Ki,{children:v&&v.map(function(l){return(0,e.jsx)(n.Ki.Item,{label:l.name,buttons:(0,e.jsxs)(n.wn,{children:[(0,e.jsx)(n.$n,{icon:"upload",disabled:l.was_taken||f>=m,onClick:function(){return y("takeKit",{item:l.type})},children:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C"}),(0,e.jsx)(n.$n,{icon:"undo",disabled:!l.was_taken,onClick:function(){return y("undoKit",{item:l.type})}})]}),children:(0,e.jsx)(n.az,{italic:!0,children:l.desc})},l.type)})})}),(0,e.jsx)(n.wn,{title:"\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0435 \u043D\u0430\u0431\u043E\u0440\u044B:",children:(0,e.jsx)(n.Ki,{children:_&&_.map(function(l){return(0,e.jsx)(n.Ki.Item,{label:l.name,buttons:(0,e.jsx)(n.$n,{icon:"undo",onClick:function(){return y("undoKit",{item:l.type})},children:"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C \u0432\u044B\u0431\u043E\u0440"}),children:(0,e.jsx)(n.az,{italic:!0,children:" "})},l.type)})})}),(0,e.jsxs)(n.wn,{children:[(0,e.jsx)(n.$n,{color:f{"use strict";r.d(S,{a:()=>a});var e=r(7003),s=r(8222);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function n(){return n=Object.assign||function(O){for(var b=1;b=0)&&(y[f]=O[f]);return y}var a=function(O){var b=O.as,y=b===void 0?"div":b,u=O.className,f=O.children,m=O.tw,d=t(O,["as","className","children","tw"]),v=u?u+" "+(0,s.WP)(d):(0,s.WP)(d),_=(0,s.Fl)(n({},d,(0,s.lO)(m)));return(0,e.createElement)(y,n({},_,{className:v}),f)}},9680:(q,S,r)=>{"use strict";r.r(S),r.d(S,{Operating:()=>n});var e=r(1131),s=r(5180),n=function(t){var a=t.operating,O=t.name;if(a)return(0,e.jsx)(s.Rr,{children:(0,e.jsx)(s.so,{mb:"30px",children:(0,e.jsxs)(s.so.Item,{bold:!0,color:"silver",textAlign:"center",children:[(0,e.jsx)(s.In,{name:"spinner",spin:!0,size:4,mb:"15px"}),(0,e.jsx)("br",{}),"The ",O," is processing..."]})})})}},9690:(q,S,r)=>{"use strict";r.r(S),r.d(S,{PodBays:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(5237),a=function(O){var b=(0,s.Oc)(),y=b.act,u=b.data,f=u.bayNumber;return(0,e.jsx)(n.wn,{buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{color:"transparent",icon:"trash",onClick:function(){return y("clearBay")},tooltip:` + */function n(){return n=Object.assign||function(b){for(var O=1;O=0)&&(y[f]=b[f]);return y}var a=function(b){var O=b.as,y=O===void 0?"div":O,u=b.className,f=b.children,m=b.tw,d=t(b,["as","className","children","tw"]),v=u?u+" "+(0,s.WP)(d):(0,s.WP)(d),_=(0,s.Fl)(n({},d,(0,s.lO)(m)));return(0,e.createElement)(y,n({},_,{className:v}),f)}},9680:(q,S,r)=>{"use strict";r.r(S),r.d(S,{Operating:()=>n});var e=r(1131),s=r(5180),n=function(t){var a=t.operating,b=t.name;if(a)return(0,e.jsx)(s.Rr,{children:(0,e.jsx)(s.so,{mb:"30px",children:(0,e.jsxs)(s.so.Item,{bold:!0,color:"silver",textAlign:"center",children:[(0,e.jsx)(s.In,{name:"spinner",spin:!0,size:4,mb:"15px"}),(0,e.jsx)("br",{}),"The ",b," is processing..."]})})})}},9690:(q,S,r)=>{"use strict";r.r(S),r.d(S,{PodBays:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(5237),a=function(b){var O=(0,s.Oc)(),y=O.act,u=O.data,f=u.bayNumber;return(0,e.jsx)(n.wn,{buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{color:"transparent",icon:"trash",onClick:function(){return y("clearBay")},tooltip:` \u041E\u0447\u0438\u0449\u0430\u0435\u0442 \u0432\u0441\u0451 \u0438\u0437 \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u0430\u043D\u0433\u0430\u0440\u0430.`,tooltipPosition:"top-end"}),(0,e.jsx)(n.$n,{color:"transparent",icon:"question",tooltip:` \u041A\u0430\u0436\u0434\u044B\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 @@ -537,15 +537,15 @@ User Agent: `+navigator.userAgent;Byond.sendMessage({type:"log",ns:m,message:l}) \u0417\u0430\u043F\u0443\u0449\u0435\u043D\u043D\u044B\u0435 \u043A\u0430\u043F\u0441\u0443\u043B\u044B \u0431\u0443\u0434\u0443\u0442 \u0437\u0430\u043F\u043E\u043B\u043D\u0435\u043D\u044B \u043F\u0440\u0435\u0434\u043C\u0435\u0442\u0430\u043C\u0438 \u0438\u0437 \u044D\u0442\u0438\u0445 \u0437\u043E\u043D \u0432 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441 \u043E\u043F\u0446\u0438\u0435\u0439 -\xAB\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430 \u0438\u0437 \u0430\u043D\u0433\u0430\u0440\u0430\xBB \u0432 \u043B\u0435\u0432\u043E\u043C \u0432\u0435\u0440\u0445\u043D\u0435\u043C \u0443\u0433\u043B\u0443.`,tooltipPosition:"top-end"})]}),fill:!0,title:"\u0410\u043D\u0433\u0430\u0440",children:t.BAYS.map(function(m,d){return(0,e.jsx)(n.$n,{onClick:function(){return y("switchBay",{bayNumber:""+(d+1)})},selected:f===""+(d+1),tooltipPosition:"bottom-end",children:m.title},d)})})}},9699:(q,S,r)=>{"use strict";r.r(S),r.d(S,{CircuitInfo:()=>a});var e=r(1131),s=r(5180);function n(){return n=Object.assign||function(O){for(var b=1;b=0)&&(y[f]=O[f]);return y}var a=function(O){var b=O.name,y=O.desc,u=O.notices,f=t(O,["name","desc","notices"]);return(0,e.jsx)(s.az,n({},f,{children:(0,e.jsxs)(s.BJ,{fill:!0,vertical:!0,justify:"space-around",children:[(0,e.jsx)(s.BJ.Item,{maxWidth:"200px",children:y}),(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(s.BJ,{vertical:!0,children:u.map(function(m,d){return(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(s.$n,{color:m.color,icon:m.icon,fluid:!0,children:m.content})},d)})})})]})}))}},9727:(q,S,r)=>{"use strict";r.r(S),r.d(S,{PermissionsEdit:()=>m});var e=r(1131),s=r(7003),n=r(360),t=r(5180),a=r(3521),O=r(1154),b=r(9845),y="*none*",u=function(d){var v=d.flags,_=d.selectedFlags,l=d.onFlagToggle;return(0,e.jsx)(t.az,{children:Object.keys(v).map(function(c){return(0,e.jsx)(t.az,{children:(0,e.jsxs)("label",{children:[(0,e.jsx)("input",{type:"checkbox",checked:_.includes(c),onChange:function(h){return l(c,_.includes(c))}}),c]})},c)})})},f=function(d){var v=d.ckey,_=d.possible_ranks,l=(0,n.Oc)().act,c=(0,s.useState)(y),h=c[0],g=c[1];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.ms,{options:Object.keys(_),selected:h,onSelected:function(p){g(p)}}),(0,e.jsx)(t.$n,{width:"100%",mt:.5,onClick:function(){return l("load_preset",{selected_ckey:v,selected_preset:h})},children:"\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u043F\u0440\u0435\u0441\u0435\u0442"})]})},m=function(d){var v=(0,n.Oc)(),_=v.act,l=v.data,c=l.possible_permissions,h=l.possible_ranks,g=l.admins,p=(0,s.useState)(""),j=p[0],x=p[1],C=(0,s.useState)("target_name"),I=C[0],P=C[1],M=(0,s.useState)(!0),B=M[0],w=M[1],T=(0,s.useState)(null),K=T[0],R=T[1],U=(0,s.useState)(y),F=U[0],$=U[1],W=(0,s.useState)(y),N=W[0],Z=W[1];return(0,e.jsx)(a.p8,{title:"Permissions Edit",width:900,height:800,theme:"ntos",children:(0,e.jsxs)(a.p8.Content,{children:[(0,e.jsx)(t.wn,{title:"\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435 \u043F\u0440\u0430\u0432",fill:!0,scrollable:!0,height:"85%",buttons:(0,e.jsx)(t.BJ,{fill:!0,children:(0,e.jsx)(t.pd,{placeholder:"\u0418\u0441\u043A\u0430\u0442\u044C...",width:"300px",expensive:!0,onChange:x})}),children:(0,e.jsxs)(t.XI,{style:{borderCollapse:"separate",borderSpacing:"0 5px"},className:"PermissionsEdit__list",children:[(0,e.jsxs)(t.XI.Row,{bold:!0,children:[(0,e.jsx)(O.SortButton,{id:"ckey",sortId:I,setSortId:P,sortOrder:B,setSortOrder:w,children:"Ckey"}),(0,e.jsx)(O.SortButton,{id:"rank",sortId:I,setSortId:P,sortOrder:B,setSortOrder:w,children:"\u0420\u0430\u043D\u0433"}),(0,e.jsx)(O.SortButton,{sortId:"none",setSortId:P,sortOrder:B,setSortOrder:w,children:"\u0424\u043B\u0430\u0433\u0438"}),(0,e.jsx)(O.SortButton,{sortId:"none",setSortId:P,sortOrder:B,setSortOrder:w,children:"\u041F\u0440\u0435\u0441\u0435\u0442\u044B"}),(0,e.jsx)(O.SortButton,{sortId:"none",setSortId:P,sortOrder:B,setSortOrder:w,children:"\u041E\u043F\u0446\u0438\u0438"})]}),g.filter((0,b.XZ)(j,function(ie){var Q=ie.ckey,V=ie.rank;return Q+"|"+V})).sort(function(ie,Q){var V=B?1:-1;if(ie[I]===void 0||ie[I]===null)return V;if(Q[I]===void 0||Q[I]===null)return-1*V;if(typeof ie[I]=="number")return(ie[I]-Q[I])*V;var G=ie[I],le=Q[I];return G.localeCompare(le)*V}).map(function(ie,Q){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:ie.ckey}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.ms,{options:Object.keys(h),selected:ie.rank||y,onSelected:function(V){_("edit_rank",{ckey:ie.ckey,rank:V})}})}),(0,e.jsx)(t.XI.Cell,{children:!ie.de_admin&&(0,e.jsx)(u,{flags:c,selectedFlags:ie.flags,onFlagToggle:function(V,G){if(!G){_("add_flag",{selected_flag:V,ckey:ie.ckey});return}_("remove_flag",{selected_flag:V,ckey:ie.ckey})}})}),(0,e.jsx)(t.XI.Cell,{children:!ie.de_admin&&(0,e.jsx)(f,{ckey:ie.ckey,possible_ranks:h})}),(0,e.jsxs)(t.XI.Cell,{children:[ie.de_admin?(0,e.jsx)(t.$n,{width:"100%",mt:.5,onClick:function(){return _("force_re_admin",{ckey:ie.ckey})},children:"\u041F\u0440\u0438\u043D\u0443\u0434\u0438\u0442\u0435\u043B\u044C\u043D\u044B\u0439 re admin"}):(0,e.jsx)(t.$n,{width:"100%",mt:.5,onClick:function(){return _("force_de_admin",{ckey:ie.ckey})},children:"\u041F\u0440\u0438\u043D\u0443\u0434\u0438\u0442\u0435\u043B\u044C\u043D\u044B\u0439 de admin"}),(0,e.jsx)(t.$n.Confirm,{icon:"trash",onClick:function(){_("remove_admin",{ckey:ie.ckey})}})]})]},Q)})]})}),(0,e.jsx)(t.wn,{title:"\u0421\u043E\u0437\u0434\u0430\u043D\u0438\u0435 \u043D\u043E\u0432\u043E\u0433\u043E \u0430\u0434\u043C\u0438\u043D\u0430",fill:!0,height:"10%",children:(0,e.jsxs)(t.BJ,{children:[(0,e.jsx)(t.BJ.Item,{children:"\u0421\u0438\u043A\u0435\u0439: "}),(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.pd,{expensive:!0,placeholder:"Ckey",value:K,onChange:function(ie){return R(ie)}})}),(0,e.jsx)(t.BJ.Item,{children:"\u0420\u0430\u043D\u0433: "}),(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.ms,{options:Object.keys(h),selected:F,onSelected:function(ie){$(ie)},style:{display:"inline"}})}),(0,e.jsx)(t.BJ.Item,{children:"\u041F\u0440\u0435\u0441\u0441\u0435\u0442: "}),(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.ms,{options:Object.keys(h),selected:N,onSelected:function(ie){Z(ie)}})}),(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.$n,{disabled:!K||!F||F===y,onClick:function(){return _("create_new_admin",{ckey:K,rank:F,preset:N})},children:"\u0421\u043E\u0437\u0434\u0430\u0442\u044C"})})]})})]})})}},9729:(q,S,r)=>{"use strict";r.r(S),r.d(S,{PodTracking:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(O){var b=(0,s.Oc)().data,y=b.pods;return(0,e.jsx)(t.p8,{width:400,height:500,children:(0,e.jsx)(t.p8.Content,{scrollable:!0,children:y.map(function(u){return(0,e.jsx)(n.wn,{title:u.name,children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Position",children:[u.podx,", ",u.pody,", ",u.podz]}),(0,e.jsx)(n.Ki.Item,{label:"Pilot",children:u.pilot}),(0,e.jsx)(n.Ki.Item,{label:"Passengers",children:u.passengers})]})},u.name)})})})}},9750:(q,S,r)=>{"use strict";r.r(S),r.d(S,{MedicalRecords:()=>l,SortButton:()=>P});var e=r(1131),s=r(9845),n=r(360),t=r(7003),a=r(5180),O=r(538),b=r(3521),y=r(1530),u=r(9298),f=r(2424),m={Minor:"lightgray",Medium:"good",Harmful:"average","Dangerous!":"bad","BIOHAZARD THREAT!":"darkred"},d={"*Deceased*":"deceased","*SSD*":"ssd","Physically Unfit":"physically_unfit",Disabled:"disabled"},v=function(B){(0,O.modalOpen)("edit",{field:B.edit,value:B.value})},_=function(B){var w=B.args;return(0,e.jsx)(a.wn,{m:"-1rem",pb:"1.5rem",title:w.name||"\u0412\u0438\u0440\u0443\u0441",children:(0,e.jsx)(a.az,{mx:"0.5rem",children:(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u0441\u0442\u0430\u0434\u0438\u0439",children:w.max_stages}),(0,e.jsx)(a.Ki.Item,{label:"\u0420\u0430\u0441\u043F\u0440\u043E\u0441\u0442\u0440\u0430\u043D\u0435\u043D\u0438\u0435",children:w.spread_text}),(0,e.jsx)(a.Ki.Item,{label:"\u0412\u043E\u0437\u043C\u043E\u0436\u043D\u044B\u0435 \u043C\u0435\u0442\u043E\u0434\u044B \u043B\u0435\u0447\u0435\u043D\u0438\u044F",children:w.cure}),(0,e.jsx)(a.Ki.Item,{label:"\u0417\u0430\u043C\u0435\u0442\u043A\u0438",children:w.desc}),(0,e.jsx)(a.Ki.Item,{label:"\u0422\u044F\u0436\u0435\u0441\u0442\u044C",color:m[w.severity],children:w.severity})]})})})},l=function(B){var w=(0,n.Oc)().data,T=w.loginState,K=w.screen;if(!T.logged_in)return(0,e.jsx)(b.p8,{width:800,height:900,children:(0,e.jsx)(b.p8.Content,{children:(0,e.jsx)(u.LoginScreen,{})})});var R;return K===2?R=(0,e.jsx)(c,{}):K===3?R=(0,e.jsx)(h,{}):K===4?R=(0,e.jsx)(g,{}):K===5?R=(0,e.jsx)(C,{}):K===6&&(R=(0,e.jsx)(I,{})),(0,e.jsxs)(b.p8,{width:800,height:900,children:[(0,e.jsx)(O.ComplexModal,{}),(0,e.jsx)(b.p8.Content,{children:(0,e.jsxs)(a.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(y.LoginInfo,{}),(0,e.jsx)(f.TemporaryNotice,{}),(0,e.jsx)(M,{}),R]})})]})},c=function(B){var w=(0,n.Oc)(),T=w.act,K=w.data,R=K.records,U=(0,t.useState)(""),F=U[0],$=U[1],W=(0,t.useState)("name"),N=W[0],Z=W[1],ie=(0,t.useState)(!0),Q=ie[0],V=ie[1];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.BJ.Item,{children:(0,e.jsxs)(a.BJ,{fill:!0,children:[(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(a.$n,{icon:"wrench",ml:"0.25rem",onClick:function(){return T("screen",{screen:3})},children:"\u041C\u0435\u0434\u0438\u0446\u0438\u043D\u0441\u043A\u0438\u0435 \u0437\u0430\u043F\u0438\u0441\u0438"})}),(0,e.jsx)(a.BJ.Item,{grow:!0,children:(0,e.jsx)(a.pd,{fluid:!0,placeholder:"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0418\u043C\u044F, ID, \u0424\u0438\u0437\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u0438\u043B\u0438 \u041F\u0441\u0438\u0445\u043E\u043B\u043E\u0433\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",expensive:!0,onChange:$})})]})}),(0,e.jsx)(a.BJ.Item,{grow:!0,mt:.5,children:(0,e.jsx)(a.wn,{fill:!0,scrollable:!0,children:(0,e.jsxs)(a.XI,{className:"MedicalRecords__list",style:{borderCollapse:"separate",borderSpacing:"0 5px"},children:[(0,e.jsxs)(a.XI.Row,{bold:!0,mb:1,children:[(0,e.jsx)(P,{id:"name",sortId:N,setSortId:Z,sortOrder:Q,setSortOrder:V,children:"\u0418\u043C\u044F"}),(0,e.jsx)(P,{id:"id",sortId:N,setSortId:Z,sortOrder:Q,setSortOrder:V,children:"ID"}),(0,e.jsx)(P,{id:"rank",sortId:N,setSortId:Z,sortOrder:Q,setSortOrder:V,children:"\u0414\u043E\u043B\u0436\u043D\u043E\u0441\u0442\u044C"}),(0,e.jsx)(P,{id:"p_stat",sortId:N,setSortId:Z,sortOrder:Q,setSortOrder:V,children:"\u0424\u0438\u0437\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435"}),(0,e.jsx)(P,{id:"m_stat",sortId:N,setSortId:Z,sortOrder:Q,setSortOrder:V,children:"\u041F\u0441\u0438\u0445\u043E\u043B\u043E\u0433\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435"})]}),R.filter((0,s.XZ)(F,function(G){return G.name+"|"+G.id+"|"+G.rank+"|"+G.p_stat+"|"+G.m_stat})).sort(function(G,le){var xe=Q?1:-1;return G[N].localeCompare(le[N])*xe}).map(function(G){return(0,e.jsxs)(a.XI.Row,{mb:1,className:"MedicalRecords__listRow--"+d[G.p_stat],onClick:function(){return T("view_record",{view_record:G.ref})},children:[(0,e.jsxs)(a.XI.Cell,{children:[(0,e.jsx)(a.In,{name:"user"})," ",G.name]}),(0,e.jsx)(a.XI.Cell,{children:G.id}),(0,e.jsx)(a.XI.Cell,{children:G.rank}),(0,e.jsx)(a.XI.Cell,{children:G.p_stat}),(0,e.jsx)(a.XI.Cell,{children:G.m_stat})]},G.id)})]})})})]})},h=function(B){var w=(0,n.Oc)().act;return(0,e.jsx)(a.BJ.Item,{grow:!0,textAlign:"center",children:(0,e.jsxs)(a.wn,{fill:!0,children:[(0,e.jsx)(a.BJ.Item,{grow:!0,children:(0,e.jsx)(a.$n,{fluid:!0,lineHeight:3,color:"translucent",icon:"download",disabled:!0,children:"\u0420\u0435\u0437\u0435\u0440\u0432\u043D\u043E\u0435 \u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435 \u043D\u0430 \u0434\u0438\u0441\u043A\u0435\u0442\u0443"})}),(0,e.jsxs)(a.BJ.Item,{grow:!0,children:[(0,e.jsx)(a.$n,{fluid:!0,lineHeight:3,color:"translucent",icon:"upload",my:"0.5rem",disabled:!0,children:"\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0441 \u0434\u0438\u0441\u043A\u0435\u0442\u044B"})," "]}),(0,e.jsx)(a.BJ.Item,{grow:!0,children:(0,e.jsx)(a.$n.Confirm,{fluid:!0,lineHeight:3,icon:"trash",color:"translucent",onClick:function(){return w("del_all")},children:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0431\u0430\u0437\u0443 \u0434\u0430\u043D\u043D\u044B\u0445 \u043C\u0435\u0434\u0438\u0446\u0438\u043D\u0441\u043A\u0438\u0445 \u0437\u0430\u043F\u0438\u0441\u0435\u0439"})})]})})},g=function(B){var w=(0,n.Oc)(),T=w.act,K=w.data,R=K.medical,U=K.printing;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.BJ.Item,{height:"235px",children:(0,e.jsx)(a.wn,{fill:!0,scrollable:!0,title:"\u041E\u0441\u043D\u043E\u0432\u043D\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",buttons:(0,e.jsx)(a.$n,{icon:U?"spinner":"print",disabled:U,iconSpin:!!U,ml:"0.5rem",onClick:function(){return T("print_record")},children:"\u0420\u0430\u0441\u043F\u0435\u0447\u0430\u0442\u0430\u0442\u044C \u0437\u0430\u043F\u0438\u0441\u044C"}),children:(0,e.jsx)(p,{})})}),!R||!R.fields?(0,e.jsx)(a.BJ.Item,{grow:!0,color:"bad",children:(0,e.jsx)(a.wn,{fill:!0,title:"\u041C\u0435\u0434\u0438\u0446\u0438\u043D\u0441\u043A\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",buttons:(0,e.jsx)(a.$n,{icon:"pen",onClick:function(){return T("new_med_record")},children:"\u0421\u043E\u0437\u0434\u0430\u0442\u044C \u043D\u043E\u0432\u0443\u044E \u0437\u0430\u043F\u0438\u0441\u044C"}),children:(0,e.jsx)(a.BJ,{fill:!0,children:(0,e.jsxs)(a.BJ.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.jsxs)(a.In.Stack,{style:{transform:"translate(-50px, -100px)"},children:[(0,e.jsx)(a.In,{name:"scroll",size:5,color:"gray"}),(0,e.jsx)(a.In,{name:"slash",size:5,color:"red"})]}),(0,e.jsx)("br",{}),"\u041C\u0435\u0434\u0438\u0446\u0438\u043D\u0441\u043A\u0430\u044F \u0437\u0430\u043F\u0438\u0441\u044C \u0443\u0442\u0440\u0430\u0447\u0435\u043D\u0430!"]})})})}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.BJ.Item,{grow:!0,children:(0,e.jsx)(a.wn,{fill:!0,scrollable:!0,title:"\u041C\u0435\u0434\u0438\u0446\u0438\u043D\u0441\u043A\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",buttons:(0,e.jsx)(a.$n.Confirm,{icon:"trash",disabled:!!R.empty,onClick:function(){return T("del_med_record")},children:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u043C\u0435\u0434\u0438\u0446\u0438\u043D\u0441\u043A\u0443\u044E \u0437\u0430\u043F\u0438\u0441\u044C"}),children:(0,e.jsx)(j,{})})}),(0,e.jsx)(x,{})]})]})},p=function(B){var w=(0,n.Oc)().data,T=w.general;return!T||!T.fields?(0,e.jsx)(a.BJ,{fill:!0,vertical:!0,children:(0,e.jsx)(a.BJ.Item,{grow:!0,color:"bad",children:(0,e.jsx)(a.wn,{fill:!0,children:"General records lost!"})})}):(0,e.jsxs)(a.BJ,{children:[(0,e.jsx)(a.BJ.Item,{grow:!0,children:(0,e.jsx)(a.Ki,{children:T.fields.map(function(K,R){return(0,e.jsxs)(a.Ki.Item,{label:K.field,children:[(0,e.jsx)(a.az,{height:"20px",inline:!0,children:K.value}),!!K.edit&&(0,e.jsx)(a.$n,{icon:"pen",ml:"0.5rem",onClick:function(){return v(K)}})]},R)})})}),!!T.has_photos&&T.photos.map(function(K,R){return(0,e.jsxs)(a.BJ.Item,{inline:!0,textAlign:"center",color:"label",ml:0,children:[(0,e.jsx)(a._V,{src:K,style:{width:"96px",marginTop:"2.5rem",marginBottom:"0.5rem"}}),(0,e.jsx)("br",{}),"\u0424\u043E\u0442\u043E \u2116",R+1]},R)})]})},j=function(B){var w=(0,n.Oc)().data,T=w.medical;return!T||!T.fields?(0,e.jsx)(a.BJ,{fill:!0,vertical:!0,children:(0,e.jsx)(a.BJ.Item,{grow:!0,color:"bad",children:(0,e.jsx)(a.wn,{fill:!0,children:"\u041C\u0435\u0434\u0438\u0446\u0438\u043D\u0441\u043A\u0430\u044F \u0437\u0430\u043F\u0438\u0441\u044C \u0443\u0442\u0440\u0430\u0447\u0435\u043D\u0430!"})})}):(0,e.jsx)(a.BJ,{children:(0,e.jsx)(a.BJ.Item,{grow:!0,children:(0,e.jsx)(a.Ki,{children:T.fields.map(function(K,R){return(0,e.jsxs)(a.Ki.Item,{label:K.field,children:[(0,s.jT)(K.value),!!K.edit&&(0,e.jsx)(a.$n,{icon:"pen",ml:"0.5rem",mb:K.line_break?"1rem":"initial",onClick:function(){return v(K)}})]},R)})})})})},x=function(B){var w=(0,n.Oc)(),T=w.act,K=w.data,R=K.medical;return(0,e.jsx)(a.BJ.Item,{height:"150px",children:(0,e.jsx)(a.wn,{fill:!0,scrollable:!0,title:"\u041A\u043E\u043C\u043C\u0435\u043D\u0442\u0430\u0440\u0438\u0438",buttons:(0,e.jsx)(a.$n,{icon:"comment",onClick:function(){return(0,O.modalOpen)("add_comment")},children:"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043A\u043E\u043C\u043C\u0435\u043D\u0442\u0430\u0440\u0438\u0439"}),children:R.comments.length===0?(0,e.jsx)(a.az,{color:"label",children:"\u041A\u043E\u043C\u043C\u0435\u043D\u0442\u0430\u0440\u0438\u0438 \u043E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044E\u0442."}):R.comments.map(function(U,F){return(0,e.jsxs)(a.az,{children:[(0,e.jsx)(a.az,{color:"label",inline:!0,children:U.header}),(0,e.jsx)("br",{}),U.text,(0,e.jsx)(a.$n,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){return T("del_c",{del_c:F+1})}})]},F)})})})},C=function(B){var w=(0,n.Oc)(),T=w.act,K=w.data,R=K.virus,U=(0,t.useState)(""),F=U[0],$=U[1],W=(0,t.useState)("name"),N=W[0],Z=W[1],ie=(0,t.useState)(!0),Q=ie[0],V=ie[1];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.BJ.Item,{grow:!0,children:(0,e.jsx)(a.pd,{ml:"0.25rem",fluid:!0,placeholder:"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435, \u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u0421\u0442\u0430\u0434\u0438\u0439 \u0438\u043B\u0438 \u0422\u044F\u0436\u0435\u0441\u0442\u044C",expensive:!0,onChange:$})}),(0,e.jsx)(a.BJ,{fill:!0,vertical:!0,mt:.5,children:(0,e.jsx)(a.BJ.Item,{grow:!0,children:(0,e.jsx)(a.wn,{fill:!0,scrollable:!0,children:(0,e.jsxs)(a.XI,{className:"MedicalRecords__list",style:{borderCollapse:"separate",borderSpacing:"0 5px"},children:[(0,e.jsxs)(a.XI.Row,{bold:!0,mb:1,children:[(0,e.jsx)(P,{id:"name",sortId:N,setSortId:Z,sortOrder:Q,setSortOrder:V,children:"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435"}),(0,e.jsx)(P,{id:"max_stages",sortId:N,setSortId:Z,sortOrder:Q,setSortOrder:V,children:"\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u0441\u0442\u0430\u0434\u0438\u0439"}),(0,e.jsx)(P,{id:"severity",sortId:N,setSortId:Z,sortOrder:Q,setSortOrder:V,children:"\u0422\u044F\u0436\u0435\u0441\u0442\u044C"})]}),R.filter((0,s.XZ)(F,function(G){return G.name+"|"+G.max_stages+"|"+G.severity})).sort(function(G,le){var xe=Q?1:-1;return G[N].localeCompare(le[N])*xe}).map(function(G){return(0,e.jsxs)(a.XI.Row,{mb:1,className:"MedicalRecords__listVirus--"+G.severity,onClick:function(){return T("vir",{vir:G.D})},children:[(0,e.jsxs)(a.XI.Cell,{children:[(0,e.jsx)(a.In,{name:"virus"})," ",G.name]}),(0,e.jsx)(a.XI.Cell,{children:G.max_stages}),(0,e.jsx)(a.XI.Cell,{color:m[G.severity],children:G.severity})]},G.id)})]})})})})]})},I=function(B){var w=(0,n.Oc)().data,T=w.medbots;return T.length===0?(0,e.jsx)(a.BJ.Item,{grow:!0,color:"bad",children:(0,e.jsx)(a.wn,{fill:!0,children:(0,e.jsx)(a.BJ,{fill:!0,children:(0,e.jsxs)(a.BJ.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.jsxs)(a.In.Stack,{style:{transform:"translate(-50px, -100px)"},children:[(0,e.jsx)(a.In,{name:"robot",size:5,color:"gray"}),(0,e.jsx)(a.In,{name:"slash",size:5,color:"red"})]}),(0,e.jsx)("br",{}),"\u041C\u0435\u0434\u0431\u043E\u0442\u044B \u043D\u0435 \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u044B."]})})})}):(0,e.jsx)(a.BJ.Item,{grow:!0,children:(0,e.jsx)(a.wn,{fill:!0,scrollable:!0,children:(0,e.jsxs)(a.XI,{className:"MedicalRecords__list",style:{borderCollapse:"separate",borderSpacing:"0 5px"},children:[(0,e.jsxs)(a.XI.Row,{bold:!0,mb:1,children:[(0,e.jsx)(a.XI.Cell,{children:"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435"}),(0,e.jsx)(a.XI.Cell,{children:"\u041B\u043E\u043A\u0430\u0446\u0438\u044F"}),(0,e.jsx)(a.XI.Cell,{children:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435"}),(0,e.jsx)(a.XI.Cell,{children:"\u0425\u0438\u043C\u0438\u043A\u0430\u0442\u044B"})]}),T.map(function(K){return(0,e.jsxs)(a.XI.Row,{mb:1,className:"MedicalRecords__listMedbot--"+K.on,children:[(0,e.jsxs)(a.XI.Cell,{children:[(0,e.jsx)(a.In,{name:"medical"})," ",K.name]}),(0,e.jsxs)(a.XI.Cell,{children:[K.area||"\u041D\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E"," (",K.x,", ",K.y,")"]}),(0,e.jsx)(a.XI.Cell,{children:K.on?(0,e.jsx)(a.az,{color:"good",children:"\u0412\u043A\u043B\u044E\u0447\u0451\u043D"}):(0,e.jsx)(a.az,{color:"average",children:"\u0412\u044B\u043A\u043B\u044E\u0447\u0435\u043D"})}),(0,e.jsx)(a.XI.Cell,{children:K.use_beaker?"\u0401\u043C\u043A\u043E\u0441\u0442\u044C: "+K.total_volume+"/"+K.maximum_volume:"\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0435\u0442\u0441\u044F \u0432\u043D\u0443\u0442\u0440\u0435\u043D\u043D\u0438\u0439 \u0441\u0438\u043D\u0442\u0435\u0437\u0430\u0442\u043E\u0440"})]},K.id)})]})})})},P=function(B){var w=B.id,T=B.children,K=B.sortId,R=B.setSortId,U=B.sortOrder,F=B.setSortOrder;return(0,e.jsx)(a.XI.Cell,{children:(0,e.jsxs)(a.$n,{fluid:!0,color:K!==w&&"transparent",onClick:function(){K===w?F(!U):(R(w),F(!0))},children:[T,K===w&&(0,e.jsx)(a.In,{name:U?"sort-up":"sort-down",ml:"0.25rem;"})]})})},M=function(B){var w=(0,n.Oc)(),T=w.act,K=w.data,R=K.screen,U=K.general;return(0,e.jsx)(a.BJ.Item,{m:0,children:(0,e.jsxs)(a.tU,{children:[(0,e.jsx)(a.tU.Tab,{icon:"list",selected:R===2,onClick:function(){T("screen",{screen:2})},children:"\u041F\u0440\u043E\u0441\u043C\u043E\u0442\u0440 \u0437\u0430\u043F\u0438\u0441\u0435\u0439"}),(0,e.jsx)(a.tU.Tab,{icon:"database",selected:R===5,onClick:function(){T("screen",{screen:5})},children:"\u0411\u0430\u0437\u0430 \u0434\u0430\u043D\u043D\u044B\u0445 \u0432\u0438\u0440\u0443\u0441\u043E\u0432"}),(0,e.jsx)(a.tU.Tab,{icon:"plus-square",selected:R===6,onClick:function(){return T("screen",{screen:6})},children:"\u041E\u0442\u0441\u043B\u0435\u0436\u0438\u0432\u0430\u043D\u0438\u0435 \u043C\u0435\u0434\u0431\u043E\u0442\u043E\u0432"}),R===3&&(0,e.jsx)(a.tU.Tab,{icon:"wrench",selected:R===3,children:"\u041E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u043D\u0438\u0435 \u0431\u0430\u0437\u044B \u0434\u0430\u043D\u043D\u044B\u0445 \u0437\u0430\u043F\u0438\u0441\u0435\u0439"}),R===4&&U&&!U.empty&&(0,e.jsxs)(a.tU.Tab,{icon:"file",selected:R===4,children:["\u0417\u0430\u043F\u0438\u0441\u044C: ",U.fields[0].value]})]})})};(0,O.modalRegisterBodyOverride)("virus",_)},9762:(q,S,r)=>{"use strict";r.r(S),r.d(S,{StylePage:()=>a});var e=r(1131),s=r(185),n=r(360),t=r(5180),a=function(O){var b=(0,n.Oc)(),y=b.act,u=b.data,f=u.effectName,m=u.styleChoice,d=u.podStyles;return(0,e.jsx)(t.wn,{buttons:(0,e.jsx)(t.$n,{color:"transparent",icon:"edit",onClick:function(){return y("effectName")},selected:f,tooltip:` +\xAB\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430 \u0438\u0437 \u0430\u043D\u0433\u0430\u0440\u0430\xBB \u0432 \u043B\u0435\u0432\u043E\u043C \u0432\u0435\u0440\u0445\u043D\u0435\u043C \u0443\u0433\u043B\u0443.`,tooltipPosition:"top-end"})]}),fill:!0,title:"\u0410\u043D\u0433\u0430\u0440",children:t.BAYS.map(function(m,d){return(0,e.jsx)(n.$n,{onClick:function(){return y("switchBay",{bayNumber:""+(d+1)})},selected:f===""+(d+1),tooltipPosition:"bottom-end",children:m.title},d)})})}},9699:(q,S,r)=>{"use strict";r.r(S),r.d(S,{CircuitInfo:()=>a});var e=r(1131),s=r(5180);function n(){return n=Object.assign||function(b){for(var O=1;O=0)&&(y[f]=b[f]);return y}var a=function(b){var O=b.name,y=b.desc,u=b.notices,f=t(b,["name","desc","notices"]);return(0,e.jsx)(s.az,n({},f,{children:(0,e.jsxs)(s.BJ,{fill:!0,vertical:!0,justify:"space-around",children:[(0,e.jsx)(s.BJ.Item,{maxWidth:"200px",children:y}),(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(s.BJ,{vertical:!0,children:u.map(function(m,d){return(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(s.$n,{color:m.color,icon:m.icon,fluid:!0,children:m.content})},d)})})})]})}))}},9727:(q,S,r)=>{"use strict";r.r(S),r.d(S,{PermissionsEdit:()=>m});var e=r(1131),s=r(7003),n=r(360),t=r(5180),a=r(3521),b=r(1154),O=r(9845),y="*none*",u=function(d){var v=d.flags,_=d.selectedFlags,l=d.onFlagToggle;return(0,e.jsx)(t.az,{children:Object.keys(v).map(function(c){return(0,e.jsx)(t.az,{children:(0,e.jsxs)("label",{children:[(0,e.jsx)("input",{type:"checkbox",checked:_.includes(c),onChange:function(h){return l(c,_.includes(c))}}),c]})},c)})})},f=function(d){var v=d.ckey,_=d.possible_ranks,l=(0,n.Oc)().act,c=(0,s.useState)(y),h=c[0],g=c[1];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.ms,{options:Object.keys(_),selected:h,onSelected:function(p){g(p)}}),(0,e.jsx)(t.$n,{width:"100%",mt:.5,onClick:function(){return l("load_preset",{selected_ckey:v,selected_preset:h})},children:"\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u043F\u0440\u0435\u0441\u0435\u0442"})]})},m=function(d){var v=(0,n.Oc)(),_=v.act,l=v.data,c=l.possible_permissions,h=l.possible_ranks,g=l.admins,p=(0,s.useState)(""),j=p[0],x=p[1],C=(0,s.useState)("target_name"),I=C[0],P=C[1],M=(0,s.useState)(!0),B=M[0],w=M[1],T=(0,s.useState)(null),K=T[0],R=T[1],U=(0,s.useState)(y),F=U[0],$=U[1],W=(0,s.useState)(y),N=W[0],Z=W[1];return(0,e.jsx)(a.p8,{title:"Permissions Edit",width:900,height:800,theme:"ntos",children:(0,e.jsxs)(a.p8.Content,{children:[(0,e.jsx)(t.wn,{title:"\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435 \u043F\u0440\u0430\u0432",fill:!0,scrollable:!0,height:"85%",buttons:(0,e.jsx)(t.BJ,{fill:!0,children:(0,e.jsx)(t.pd,{placeholder:"\u0418\u0441\u043A\u0430\u0442\u044C...",width:"300px",expensive:!0,onChange:x})}),children:(0,e.jsxs)(t.XI,{style:{borderCollapse:"separate",borderSpacing:"0 5px"},className:"PermissionsEdit__list",children:[(0,e.jsxs)(t.XI.Row,{bold:!0,children:[(0,e.jsx)(b.SortButton,{id:"ckey",sortId:I,setSortId:P,sortOrder:B,setSortOrder:w,children:"Ckey"}),(0,e.jsx)(b.SortButton,{id:"rank",sortId:I,setSortId:P,sortOrder:B,setSortOrder:w,children:"\u0420\u0430\u043D\u0433"}),(0,e.jsx)(b.SortButton,{sortId:"none",setSortId:P,sortOrder:B,setSortOrder:w,children:"\u0424\u043B\u0430\u0433\u0438"}),(0,e.jsx)(b.SortButton,{sortId:"none",setSortId:P,sortOrder:B,setSortOrder:w,children:"\u041F\u0440\u0435\u0441\u0435\u0442\u044B"}),(0,e.jsx)(b.SortButton,{sortId:"none",setSortId:P,sortOrder:B,setSortOrder:w,children:"\u041E\u043F\u0446\u0438\u0438"})]}),g.filter((0,O.XZ)(j,function(ie){var Q=ie.ckey,V=ie.rank;return Q+"|"+V})).sort(function(ie,Q){var V=B?1:-1;if(ie[I]===void 0||ie[I]===null)return V;if(Q[I]===void 0||Q[I]===null)return-1*V;if(typeof ie[I]=="number")return(ie[I]-Q[I])*V;var G=ie[I],le=Q[I];return G.localeCompare(le)*V}).map(function(ie,Q){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:ie.ckey}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.ms,{options:Object.keys(h),selected:ie.rank||y,onSelected:function(V){_("edit_rank",{ckey:ie.ckey,rank:V})}})}),(0,e.jsx)(t.XI.Cell,{children:!ie.de_admin&&(0,e.jsx)(u,{flags:c,selectedFlags:ie.flags,onFlagToggle:function(V,G){if(!G){_("add_flag",{selected_flag:V,ckey:ie.ckey});return}_("remove_flag",{selected_flag:V,ckey:ie.ckey})}})}),(0,e.jsx)(t.XI.Cell,{children:!ie.de_admin&&(0,e.jsx)(f,{ckey:ie.ckey,possible_ranks:h})}),(0,e.jsxs)(t.XI.Cell,{children:[ie.de_admin?(0,e.jsx)(t.$n,{width:"100%",mt:.5,onClick:function(){return _("force_re_admin",{ckey:ie.ckey})},children:"\u041F\u0440\u0438\u043D\u0443\u0434\u0438\u0442\u0435\u043B\u044C\u043D\u044B\u0439 re admin"}):(0,e.jsx)(t.$n,{width:"100%",mt:.5,onClick:function(){return _("force_de_admin",{ckey:ie.ckey})},children:"\u041F\u0440\u0438\u043D\u0443\u0434\u0438\u0442\u0435\u043B\u044C\u043D\u044B\u0439 de admin"}),(0,e.jsx)(t.$n.Confirm,{icon:"trash",onClick:function(){_("remove_admin",{ckey:ie.ckey})}})]})]},Q)})]})}),(0,e.jsx)(t.wn,{title:"\u0421\u043E\u0437\u0434\u0430\u043D\u0438\u0435 \u043D\u043E\u0432\u043E\u0433\u043E \u0430\u0434\u043C\u0438\u043D\u0430",fill:!0,height:"10%",children:(0,e.jsxs)(t.BJ,{children:[(0,e.jsx)(t.BJ.Item,{children:"\u0421\u0438\u043A\u0435\u0439: "}),(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.pd,{expensive:!0,placeholder:"Ckey",value:K,onChange:function(ie){return R(ie)}})}),(0,e.jsx)(t.BJ.Item,{children:"\u0420\u0430\u043D\u0433: "}),(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.ms,{options:Object.keys(h),selected:F,onSelected:function(ie){$(ie)},style:{display:"inline"}})}),(0,e.jsx)(t.BJ.Item,{children:"\u041F\u0440\u0435\u0441\u0441\u0435\u0442: "}),(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.ms,{options:Object.keys(h),selected:N,onSelected:function(ie){Z(ie)}})}),(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.$n,{disabled:!K||!F||F===y,onClick:function(){return _("create_new_admin",{ckey:K,rank:F,preset:N})},children:"\u0421\u043E\u0437\u0434\u0430\u0442\u044C"})})]})})]})})}},9729:(q,S,r)=>{"use strict";r.r(S),r.d(S,{PodTracking:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(b){var O=(0,s.Oc)().data,y=O.pods;return(0,e.jsx)(t.p8,{width:400,height:500,children:(0,e.jsx)(t.p8.Content,{scrollable:!0,children:y.map(function(u){return(0,e.jsx)(n.wn,{title:u.name,children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Position",children:[u.podx,", ",u.pody,", ",u.podz]}),(0,e.jsx)(n.Ki.Item,{label:"Pilot",children:u.pilot}),(0,e.jsx)(n.Ki.Item,{label:"Passengers",children:u.passengers})]})},u.name)})})})}},9750:(q,S,r)=>{"use strict";r.r(S),r.d(S,{MedicalRecords:()=>l,SortButton:()=>P});var e=r(1131),s=r(9845),n=r(360),t=r(7003),a=r(5180),b=r(538),O=r(3521),y=r(1530),u=r(9298),f=r(2424),m={Minor:"lightgray",Medium:"good",Harmful:"average","Dangerous!":"bad","BIOHAZARD THREAT!":"darkred"},d={"*Deceased*":"deceased","*SSD*":"ssd","Physically Unfit":"physically_unfit",Disabled:"disabled"},v=function(B){(0,b.modalOpen)("edit",{field:B.edit,value:B.value})},_=function(B){var w=B.args;return(0,e.jsx)(a.wn,{m:"-1rem",pb:"1.5rem",title:w.name||"\u0412\u0438\u0440\u0443\u0441",children:(0,e.jsx)(a.az,{mx:"0.5rem",children:(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u0441\u0442\u0430\u0434\u0438\u0439",children:w.max_stages}),(0,e.jsx)(a.Ki.Item,{label:"\u0420\u0430\u0441\u043F\u0440\u043E\u0441\u0442\u0440\u0430\u043D\u0435\u043D\u0438\u0435",children:w.spread_text}),(0,e.jsx)(a.Ki.Item,{label:"\u0412\u043E\u0437\u043C\u043E\u0436\u043D\u044B\u0435 \u043C\u0435\u0442\u043E\u0434\u044B \u043B\u0435\u0447\u0435\u043D\u0438\u044F",children:w.cure}),(0,e.jsx)(a.Ki.Item,{label:"\u0417\u0430\u043C\u0435\u0442\u043A\u0438",children:w.desc}),(0,e.jsx)(a.Ki.Item,{label:"\u0422\u044F\u0436\u0435\u0441\u0442\u044C",color:m[w.severity],children:w.severity})]})})})},l=function(B){var w=(0,n.Oc)().data,T=w.loginState,K=w.screen;if(!T.logged_in)return(0,e.jsx)(O.p8,{width:800,height:900,children:(0,e.jsx)(O.p8.Content,{children:(0,e.jsx)(u.LoginScreen,{})})});var R;return K===2?R=(0,e.jsx)(c,{}):K===3?R=(0,e.jsx)(h,{}):K===4?R=(0,e.jsx)(g,{}):K===5?R=(0,e.jsx)(C,{}):K===6&&(R=(0,e.jsx)(I,{})),(0,e.jsxs)(O.p8,{width:800,height:900,children:[(0,e.jsx)(b.ComplexModal,{}),(0,e.jsx)(O.p8.Content,{children:(0,e.jsxs)(a.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(y.LoginInfo,{}),(0,e.jsx)(f.TemporaryNotice,{}),(0,e.jsx)(M,{}),R]})})]})},c=function(B){var w=(0,n.Oc)(),T=w.act,K=w.data,R=K.records,U=(0,t.useState)(""),F=U[0],$=U[1],W=(0,t.useState)("name"),N=W[0],Z=W[1],ie=(0,t.useState)(!0),Q=ie[0],V=ie[1];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.BJ.Item,{children:(0,e.jsxs)(a.BJ,{fill:!0,children:[(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(a.$n,{icon:"wrench",ml:"0.25rem",onClick:function(){return T("screen",{screen:3})},children:"\u041C\u0435\u0434\u0438\u0446\u0438\u043D\u0441\u043A\u0438\u0435 \u0437\u0430\u043F\u0438\u0441\u0438"})}),(0,e.jsx)(a.BJ.Item,{grow:!0,children:(0,e.jsx)(a.pd,{fluid:!0,placeholder:"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0418\u043C\u044F, ID, \u0424\u0438\u0437\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u0438\u043B\u0438 \u041F\u0441\u0438\u0445\u043E\u043B\u043E\u0433\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",expensive:!0,onChange:$})})]})}),(0,e.jsx)(a.BJ.Item,{grow:!0,mt:.5,children:(0,e.jsx)(a.wn,{fill:!0,scrollable:!0,children:(0,e.jsxs)(a.XI,{className:"MedicalRecords__list",style:{borderCollapse:"separate",borderSpacing:"0 5px"},children:[(0,e.jsxs)(a.XI.Row,{bold:!0,mb:1,children:[(0,e.jsx)(P,{id:"name",sortId:N,setSortId:Z,sortOrder:Q,setSortOrder:V,children:"\u0418\u043C\u044F"}),(0,e.jsx)(P,{id:"id",sortId:N,setSortId:Z,sortOrder:Q,setSortOrder:V,children:"ID"}),(0,e.jsx)(P,{id:"rank",sortId:N,setSortId:Z,sortOrder:Q,setSortOrder:V,children:"\u0414\u043E\u043B\u0436\u043D\u043E\u0441\u0442\u044C"}),(0,e.jsx)(P,{id:"p_stat",sortId:N,setSortId:Z,sortOrder:Q,setSortOrder:V,children:"\u0424\u0438\u0437\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435"}),(0,e.jsx)(P,{id:"m_stat",sortId:N,setSortId:Z,sortOrder:Q,setSortOrder:V,children:"\u041F\u0441\u0438\u0445\u043E\u043B\u043E\u0433\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435"})]}),R.filter((0,s.XZ)(F,function(G){return G.name+"|"+G.id+"|"+G.rank+"|"+G.p_stat+"|"+G.m_stat})).sort(function(G,le){var xe=Q?1:-1;return G[N].localeCompare(le[N])*xe}).map(function(G){return(0,e.jsxs)(a.XI.Row,{mb:1,className:"MedicalRecords__listRow--"+d[G.p_stat],onClick:function(){return T("view_record",{view_record:G.ref})},children:[(0,e.jsxs)(a.XI.Cell,{children:[(0,e.jsx)(a.In,{name:"user"})," ",G.name]}),(0,e.jsx)(a.XI.Cell,{children:G.id}),(0,e.jsx)(a.XI.Cell,{children:G.rank}),(0,e.jsx)(a.XI.Cell,{children:G.p_stat}),(0,e.jsx)(a.XI.Cell,{children:G.m_stat})]},G.id)})]})})})]})},h=function(B){var w=(0,n.Oc)().act;return(0,e.jsx)(a.BJ.Item,{grow:!0,textAlign:"center",children:(0,e.jsxs)(a.wn,{fill:!0,children:[(0,e.jsx)(a.BJ.Item,{grow:!0,children:(0,e.jsx)(a.$n,{fluid:!0,lineHeight:3,color:"translucent",icon:"download",disabled:!0,children:"\u0420\u0435\u0437\u0435\u0440\u0432\u043D\u043E\u0435 \u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435 \u043D\u0430 \u0434\u0438\u0441\u043A\u0435\u0442\u0443"})}),(0,e.jsxs)(a.BJ.Item,{grow:!0,children:[(0,e.jsx)(a.$n,{fluid:!0,lineHeight:3,color:"translucent",icon:"upload",my:"0.5rem",disabled:!0,children:"\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0441 \u0434\u0438\u0441\u043A\u0435\u0442\u044B"})," "]}),(0,e.jsx)(a.BJ.Item,{grow:!0,children:(0,e.jsx)(a.$n.Confirm,{fluid:!0,lineHeight:3,icon:"trash",color:"translucent",onClick:function(){return w("del_all")},children:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0431\u0430\u0437\u0443 \u0434\u0430\u043D\u043D\u044B\u0445 \u043C\u0435\u0434\u0438\u0446\u0438\u043D\u0441\u043A\u0438\u0445 \u0437\u0430\u043F\u0438\u0441\u0435\u0439"})})]})})},g=function(B){var w=(0,n.Oc)(),T=w.act,K=w.data,R=K.medical,U=K.printing;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.BJ.Item,{height:"235px",children:(0,e.jsx)(a.wn,{fill:!0,scrollable:!0,title:"\u041E\u0441\u043D\u043E\u0432\u043D\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",buttons:(0,e.jsx)(a.$n,{icon:U?"spinner":"print",disabled:U,iconSpin:!!U,ml:"0.5rem",onClick:function(){return T("print_record")},children:"\u0420\u0430\u0441\u043F\u0435\u0447\u0430\u0442\u0430\u0442\u044C \u0437\u0430\u043F\u0438\u0441\u044C"}),children:(0,e.jsx)(p,{})})}),!R||!R.fields?(0,e.jsx)(a.BJ.Item,{grow:!0,color:"bad",children:(0,e.jsx)(a.wn,{fill:!0,title:"\u041C\u0435\u0434\u0438\u0446\u0438\u043D\u0441\u043A\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",buttons:(0,e.jsx)(a.$n,{icon:"pen",onClick:function(){return T("new_med_record")},children:"\u0421\u043E\u0437\u0434\u0430\u0442\u044C \u043D\u043E\u0432\u0443\u044E \u0437\u0430\u043F\u0438\u0441\u044C"}),children:(0,e.jsx)(a.BJ,{fill:!0,children:(0,e.jsxs)(a.BJ.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.jsxs)(a.In.Stack,{style:{transform:"translate(-50px, -100px)"},children:[(0,e.jsx)(a.In,{name:"scroll",size:5,color:"gray"}),(0,e.jsx)(a.In,{name:"slash",size:5,color:"red"})]}),(0,e.jsx)("br",{}),"\u041C\u0435\u0434\u0438\u0446\u0438\u043D\u0441\u043A\u0430\u044F \u0437\u0430\u043F\u0438\u0441\u044C \u0443\u0442\u0440\u0430\u0447\u0435\u043D\u0430!"]})})})}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.BJ.Item,{grow:!0,children:(0,e.jsx)(a.wn,{fill:!0,scrollable:!0,title:"\u041C\u0435\u0434\u0438\u0446\u0438\u043D\u0441\u043A\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",buttons:(0,e.jsx)(a.$n.Confirm,{icon:"trash",disabled:!!R.empty,onClick:function(){return T("del_med_record")},children:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u043C\u0435\u0434\u0438\u0446\u0438\u043D\u0441\u043A\u0443\u044E \u0437\u0430\u043F\u0438\u0441\u044C"}),children:(0,e.jsx)(j,{})})}),(0,e.jsx)(x,{})]})]})},p=function(B){var w=(0,n.Oc)().data,T=w.general;return!T||!T.fields?(0,e.jsx)(a.BJ,{fill:!0,vertical:!0,children:(0,e.jsx)(a.BJ.Item,{grow:!0,color:"bad",children:(0,e.jsx)(a.wn,{fill:!0,children:"General records lost!"})})}):(0,e.jsxs)(a.BJ,{children:[(0,e.jsx)(a.BJ.Item,{grow:!0,children:(0,e.jsx)(a.Ki,{children:T.fields.map(function(K,R){return(0,e.jsxs)(a.Ki.Item,{label:K.field,children:[(0,e.jsx)(a.az,{height:"20px",inline:!0,children:K.value}),!!K.edit&&(0,e.jsx)(a.$n,{icon:"pen",ml:"0.5rem",onClick:function(){return v(K)}})]},R)})})}),!!T.has_photos&&T.photos.map(function(K,R){return(0,e.jsxs)(a.BJ.Item,{inline:!0,textAlign:"center",color:"label",ml:0,children:[(0,e.jsx)(a._V,{src:K,style:{width:"96px",marginTop:"2.5rem",marginBottom:"0.5rem"}}),(0,e.jsx)("br",{}),"\u0424\u043E\u0442\u043E \u2116",R+1]},R)})]})},j=function(B){var w=(0,n.Oc)().data,T=w.medical;return!T||!T.fields?(0,e.jsx)(a.BJ,{fill:!0,vertical:!0,children:(0,e.jsx)(a.BJ.Item,{grow:!0,color:"bad",children:(0,e.jsx)(a.wn,{fill:!0,children:"\u041C\u0435\u0434\u0438\u0446\u0438\u043D\u0441\u043A\u0430\u044F \u0437\u0430\u043F\u0438\u0441\u044C \u0443\u0442\u0440\u0430\u0447\u0435\u043D\u0430!"})})}):(0,e.jsx)(a.BJ,{children:(0,e.jsx)(a.BJ.Item,{grow:!0,children:(0,e.jsx)(a.Ki,{children:T.fields.map(function(K,R){return(0,e.jsxs)(a.Ki.Item,{label:K.field,children:[(0,s.jT)(K.value),!!K.edit&&(0,e.jsx)(a.$n,{icon:"pen",ml:"0.5rem",mb:K.line_break?"1rem":"initial",onClick:function(){return v(K)}})]},R)})})})})},x=function(B){var w=(0,n.Oc)(),T=w.act,K=w.data,R=K.medical;return(0,e.jsx)(a.BJ.Item,{height:"150px",children:(0,e.jsx)(a.wn,{fill:!0,scrollable:!0,title:"\u041A\u043E\u043C\u043C\u0435\u043D\u0442\u0430\u0440\u0438\u0438",buttons:(0,e.jsx)(a.$n,{icon:"comment",onClick:function(){return(0,b.modalOpen)("add_comment")},children:"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043A\u043E\u043C\u043C\u0435\u043D\u0442\u0430\u0440\u0438\u0439"}),children:R.comments.length===0?(0,e.jsx)(a.az,{color:"label",children:"\u041A\u043E\u043C\u043C\u0435\u043D\u0442\u0430\u0440\u0438\u0438 \u043E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044E\u0442."}):R.comments.map(function(U,F){return(0,e.jsxs)(a.az,{children:[(0,e.jsx)(a.az,{color:"label",inline:!0,children:U.header}),(0,e.jsx)("br",{}),U.text,(0,e.jsx)(a.$n,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){return T("del_c",{del_c:F+1})}})]},F)})})})},C=function(B){var w=(0,n.Oc)(),T=w.act,K=w.data,R=K.virus,U=(0,t.useState)(""),F=U[0],$=U[1],W=(0,t.useState)("name"),N=W[0],Z=W[1],ie=(0,t.useState)(!0),Q=ie[0],V=ie[1];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.BJ.Item,{grow:!0,children:(0,e.jsx)(a.pd,{ml:"0.25rem",fluid:!0,placeholder:"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435, \u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u0421\u0442\u0430\u0434\u0438\u0439 \u0438\u043B\u0438 \u0422\u044F\u0436\u0435\u0441\u0442\u044C",expensive:!0,onChange:$})}),(0,e.jsx)(a.BJ,{fill:!0,vertical:!0,mt:.5,children:(0,e.jsx)(a.BJ.Item,{grow:!0,children:(0,e.jsx)(a.wn,{fill:!0,scrollable:!0,children:(0,e.jsxs)(a.XI,{className:"MedicalRecords__list",style:{borderCollapse:"separate",borderSpacing:"0 5px"},children:[(0,e.jsxs)(a.XI.Row,{bold:!0,mb:1,children:[(0,e.jsx)(P,{id:"name",sortId:N,setSortId:Z,sortOrder:Q,setSortOrder:V,children:"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435"}),(0,e.jsx)(P,{id:"max_stages",sortId:N,setSortId:Z,sortOrder:Q,setSortOrder:V,children:"\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u0441\u0442\u0430\u0434\u0438\u0439"}),(0,e.jsx)(P,{id:"severity",sortId:N,setSortId:Z,sortOrder:Q,setSortOrder:V,children:"\u0422\u044F\u0436\u0435\u0441\u0442\u044C"})]}),R.filter((0,s.XZ)(F,function(G){return G.name+"|"+G.max_stages+"|"+G.severity})).sort(function(G,le){var xe=Q?1:-1;return G[N].localeCompare(le[N])*xe}).map(function(G){return(0,e.jsxs)(a.XI.Row,{mb:1,className:"MedicalRecords__listVirus--"+G.severity,onClick:function(){return T("vir",{vir:G.D})},children:[(0,e.jsxs)(a.XI.Cell,{children:[(0,e.jsx)(a.In,{name:"virus"})," ",G.name]}),(0,e.jsx)(a.XI.Cell,{children:G.max_stages}),(0,e.jsx)(a.XI.Cell,{color:m[G.severity],children:G.severity})]},G.id)})]})})})})]})},I=function(B){var w=(0,n.Oc)().data,T=w.medbots;return T.length===0?(0,e.jsx)(a.BJ.Item,{grow:!0,color:"bad",children:(0,e.jsx)(a.wn,{fill:!0,children:(0,e.jsx)(a.BJ,{fill:!0,children:(0,e.jsxs)(a.BJ.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.jsxs)(a.In.Stack,{style:{transform:"translate(-50px, -100px)"},children:[(0,e.jsx)(a.In,{name:"robot",size:5,color:"gray"}),(0,e.jsx)(a.In,{name:"slash",size:5,color:"red"})]}),(0,e.jsx)("br",{}),"\u041C\u0435\u0434\u0431\u043E\u0442\u044B \u043D\u0435 \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u044B."]})})})}):(0,e.jsx)(a.BJ.Item,{grow:!0,children:(0,e.jsx)(a.wn,{fill:!0,scrollable:!0,children:(0,e.jsxs)(a.XI,{className:"MedicalRecords__list",style:{borderCollapse:"separate",borderSpacing:"0 5px"},children:[(0,e.jsxs)(a.XI.Row,{bold:!0,mb:1,children:[(0,e.jsx)(a.XI.Cell,{children:"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435"}),(0,e.jsx)(a.XI.Cell,{children:"\u041B\u043E\u043A\u0430\u0446\u0438\u044F"}),(0,e.jsx)(a.XI.Cell,{children:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435"}),(0,e.jsx)(a.XI.Cell,{children:"\u0425\u0438\u043C\u0438\u043A\u0430\u0442\u044B"})]}),T.map(function(K){return(0,e.jsxs)(a.XI.Row,{mb:1,className:"MedicalRecords__listMedbot--"+K.on,children:[(0,e.jsxs)(a.XI.Cell,{children:[(0,e.jsx)(a.In,{name:"medical"})," ",K.name]}),(0,e.jsxs)(a.XI.Cell,{children:[K.area||"\u041D\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E"," (",K.x,", ",K.y,")"]}),(0,e.jsx)(a.XI.Cell,{children:K.on?(0,e.jsx)(a.az,{color:"good",children:"\u0412\u043A\u043B\u044E\u0447\u0451\u043D"}):(0,e.jsx)(a.az,{color:"average",children:"\u0412\u044B\u043A\u043B\u044E\u0447\u0435\u043D"})}),(0,e.jsx)(a.XI.Cell,{children:K.use_beaker?"\u0401\u043C\u043A\u043E\u0441\u0442\u044C: "+K.total_volume+"/"+K.maximum_volume:"\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0435\u0442\u0441\u044F \u0432\u043D\u0443\u0442\u0440\u0435\u043D\u043D\u0438\u0439 \u0441\u0438\u043D\u0442\u0435\u0437\u0430\u0442\u043E\u0440"})]},K.id)})]})})})},P=function(B){var w=B.id,T=B.children,K=B.sortId,R=B.setSortId,U=B.sortOrder,F=B.setSortOrder;return(0,e.jsx)(a.XI.Cell,{children:(0,e.jsxs)(a.$n,{fluid:!0,color:K!==w&&"transparent",onClick:function(){K===w?F(!U):(R(w),F(!0))},children:[T,K===w&&(0,e.jsx)(a.In,{name:U?"sort-up":"sort-down",ml:"0.25rem;"})]})})},M=function(B){var w=(0,n.Oc)(),T=w.act,K=w.data,R=K.screen,U=K.general;return(0,e.jsx)(a.BJ.Item,{m:0,children:(0,e.jsxs)(a.tU,{children:[(0,e.jsx)(a.tU.Tab,{icon:"list",selected:R===2,onClick:function(){T("screen",{screen:2})},children:"\u041F\u0440\u043E\u0441\u043C\u043E\u0442\u0440 \u0437\u0430\u043F\u0438\u0441\u0435\u0439"}),(0,e.jsx)(a.tU.Tab,{icon:"database",selected:R===5,onClick:function(){T("screen",{screen:5})},children:"\u0411\u0430\u0437\u0430 \u0434\u0430\u043D\u043D\u044B\u0445 \u0432\u0438\u0440\u0443\u0441\u043E\u0432"}),(0,e.jsx)(a.tU.Tab,{icon:"plus-square",selected:R===6,onClick:function(){return T("screen",{screen:6})},children:"\u041E\u0442\u0441\u043B\u0435\u0436\u0438\u0432\u0430\u043D\u0438\u0435 \u043C\u0435\u0434\u0431\u043E\u0442\u043E\u0432"}),R===3&&(0,e.jsx)(a.tU.Tab,{icon:"wrench",selected:R===3,children:"\u041E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u043D\u0438\u0435 \u0431\u0430\u0437\u044B \u0434\u0430\u043D\u043D\u044B\u0445 \u0437\u0430\u043F\u0438\u0441\u0435\u0439"}),R===4&&U&&!U.empty&&(0,e.jsxs)(a.tU.Tab,{icon:"file",selected:R===4,children:["\u0417\u0430\u043F\u0438\u0441\u044C: ",U.fields[0].value]})]})})};(0,b.modalRegisterBodyOverride)("virus",_)},9762:(q,S,r)=>{"use strict";r.r(S),r.d(S,{StylePage:()=>a});var e=r(1131),s=r(185),n=r(360),t=r(5180),a=function(b){var O=(0,n.Oc)(),y=O.act,u=O.data,f=u.effectName,m=u.styleChoice,d=u.podStyles;return(0,e.jsx)(t.wn,{buttons:(0,e.jsx)(t.$n,{color:"transparent",icon:"edit",onClick:function(){return y("effectName")},selected:f,tooltip:` Edit pod's - .id/desc.`,tooltipPosition:"bottom-start",children:"\u0418\u043C\u044F"}),fill:!0,scrollable:!0,title:"\u0421\u0442\u0438\u043B\u044C",children:d.map(function(v,_){return(0,e.jsx)(t.$n,{height:"45px",onClick:function(){return y("setStyle",{style:v.id})},selected:m===v.id,style:{verticalAlign:"middle",marginRight:"5px",borderRadius:"20px"},tooltipPosition:_>=d.length-2?_%2===1?"top-start":"top-end":_%2===1?"bottom-start":"bottom-end",tooltip:v.title,width:"45px",children:(0,e.jsx)(t.az,{className:(0,s.Ly)(["supplypods64x64","pod_asset"+v.id]),style:{pointerEvents:"none",transform:"rotate(45deg) translate(-25%,-10%)"}})},v.id)})})}},9782:(q,S,r)=>{"use strict";r.r(S),r.d(S,{SpawnSearch:()=>f});var e=r(1131),s=r(7003),n=r(5180),t=r(3655),a=r(683),O=r(1243),b=r(360),y=r(3521),u=r(4947),f=function(){var m=(0,b.Oc)(),d=m.act,v=m.data,_=v.initValue,l=v.searchNames,c=v.regexSearch,h=v.fancyTypes,g=v.includeAbstracts,p=(0,s.useState)({types:[],abstractTypes:{},fancyTypes:{}}),j=p[0],x=p[1],C=(0,s.useState)(0),I=C[0],P=C[1],M=(0,s.useState)((c?"re:":"")+(_||"")),B=M[0],w=M[1],T=(0,s.useState)(1),K=T[0],R=T[1],U=(0,s.useState)(!1),F=U[0],$=U[1],W=(0,s.useState)(!0),N=W[0],Z=W[1],ie=function(){var me=B;$(!1);var pe=me.indexOf("re:")===0;pe?me=me.slice(3).trimStart():c&&me.length===0&&(me="re:");var Me=me.split(":"),Ke=Me[Me.length-1];if(Me.length>1&&!Number.isNaN(+Ke)){if(+Ke<=0)return $(!0),[];me=me.slice(0,me.length-Ke.length-1).trimEnd(),R(+Ke)}else K!==1&&R(1);if(pe!==c&&d("setRegexSearch",{regexSearch:pe}),me.length===0)return[];if(pe)try{var Le=new RegExp(me);return j.types.filter(function(ze){return Le.test(ze.typepath)||l&&Le.test(ze.name)})}catch{return $(!0),[]}var Se=me.slice(me.length-1);(Se==="*"||Se==="!")&&(me=me.slice(0,me.length-1)),me=me.toLowerCase();var ln=function(ze){return ze.toLowerCase().includes(me)};return Se==="!"?ln=function(ze){return ze.toLowerCase().includes(me)&&ze.toLowerCase().lastIndexOf(me)===ze.length-me.length}:Se==="*"&&(ln=function(ze){return ze.toLowerCase().includes(me)&&!ze.slice(ze.toLowerCase().lastIndexOf(me)).includes("/")}),j.types.filter(function(ze){return(ln(ze.typepath)||l&&ln(ze.name))&&(g||!j.abstractTypes[ze.typepath])})},Q=(0,s.useState)([]),V=Q[0],G=Q[1];(0,s.useEffect)(function(){(0,t.b)((0,O.l)("spawn_menu_atom_data.json")).then(function(me){return me.json()}).then(function(me){x({types:Object.keys(me.types).map(function(pe){return{typepath:pe,name:me.types[pe]}}),abstractTypes:me.abstractTypes,fancyTypes:me.fancyTypes})}).catch(function(me){u.v.log("Failed to fetch spawn_menu_atom_data.json",JSON.stringify(me))})},[]),(0,s.useEffect)(function(){return G(ie())},[B,j,g]);var le=function(me){var pe=Object.keys(V).length-1;if(me===a.R)if(I===null||I===pe){var Me;P(0),(Me=document.getElementById("0"))==null||Me.scrollIntoView()}else{var Ke;P(I+1),(Ke=document.getElementById((I+1).toString()))==null||Ke.scrollIntoView()}else if(me===a.gf)if(I===null||I===0){var Le;P(pe),(Le=document.getElementById(pe.toString()))==null||Le.scrollIntoView()}else{var Se;P(I-1),(Se=document.getElementById((I-1).toString()))==null||Se.scrollIntoView()}},xe=function(me){return d("spawn",{type:me.typepath,amount:K})},de=function(me){var pe;me!==B&&(w(me),P(0),(pe=document.getElementById("0"))==null||pe.scrollIntoView())};return N||setTimeout(function(){var me;return(me=document.getElementById(I.toString()))==null?void 0:me.focus()},1),(0,e.jsx)(y.p8,{title:"Spawn Atom",width:400,height:500,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"percent",selected:B.indexOf("re:")===0,tooltip:B.indexOf("re:")===0?"RegEx Mode":"Standard Mode",onClick:function(){B.indexOf("re:")===0?w(B.slice(3)):w("re:"+B)}}),(0,e.jsx)(n.$n,{icon:"font",selected:g,tooltip:"Include Abstract Types",onClick:function(){return d("setIncludeAbstracts",{includeAbstracts:!g})}}),(0,e.jsx)(n.$n,{icon:"file-signature",selected:l,tooltip:"Name Search",onClick:function(){return d("setNameSearch",{searchNames:!l})}}),(0,e.jsx)(n.$n,{icon:"wand-magic-sparkles",selected:h,tooltip:"Fancy Type Display",onClick:function(){return d("setFancyTypes",{fancyTypes:!h})}})]}),children:(0,e.jsx)(y.p8.Content,{children:(0,e.jsx)(n.wn,{fill:!0,onKeyDown:function(me){var pe=window.event?me.which:me.keyCode;(pe===a.R||pe===a.gf)&&(me.preventDefault(),le(pe)),pe===a.Ri&&(me.preventDefault(),xe(V[I])),pe===a.s6&&(me.preventDefault(),d("cancel")),pe===a.bt&&me.altKey&&(B.indexOf("re:")===0?w(B.slice(3)):w("re:"+B)),pe===a.bL&&me.altKey&&d("setNameSearch",{searchNames:!l}),pe===a.Pf&&me.altKey&&d("setFancyTypes",{fancyTypes:!h})},children:(0,e.jsxs)(n.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsxs)(n.wn,{fill:!0,scrollable:!0,children:[(0,e.jsx)(n.y5,{}),(0,e.jsx)(n.wj,{children:V.map(function(me,pe){return(0,e.jsxs)(n.$n,{className:"candystripe",color:"transparent",fluid:!0,id:""+pe,onClick:function(){pe!==I&&P(pe)},onDoubleClick:function(){return xe(me)},onKeyDown:function(Me){var Ke=window.event?Me.which:Me.keyCode;Ke>=a.W8&&Ke<=a.bh&&(Me.preventDefault(),Z(!1),setTimeout(function(){Z(!0)},1))},selected:pe===I,style:{animation:"none",transition:"none"},children:[(0,e.jsx)("span",{style:j.abstractTypes[me.typepath]?{opacity:.75,color:"#FFA246"}:{},children:h&&Object.keys(j.fancyTypes).findLast(function(Me){return me.typepath.indexOf(Me)===0})?me.typepath.replace(Object.keys(j.fancyTypes).findLast(function(Me){return me.typepath.indexOf(Me)===0}),j.fancyTypes[Object.keys(j.fancyTypes).findLast(function(Me){return me.typepath.indexOf(Me)===0})]):me.typepath}),(0,e.jsx)("span",{className:"label label-info",style:{marginLeft:"0.5em",color:"rgba(200, 200, 200, 0.5)",fontSize:"10px"},children:me.name}),!!j.abstractTypes[me.typepath]&&(0,e.jsx)("span",{style:{float:"right",marginRight:"0.5em",color:"rgba(255, 162, 70, 0.5)"},children:"Abstract"})]},pe)})})]})}),!!N&&(0,e.jsx)(n.pd,{autoFocus:!0,autoSelect:!0,fluid:!0,onEnter:function(){return xe(V[I])},onChange:de,placeholder:"Search...",value:B,style:F?{borderColor:"red"}:{}})]})})})})}},9785:(q,S,r)=>{"use strict";r.r(S),r.d(S,{OperatingComputer:()=>f});var e=r(1131),s=r(9818),n=r(360),t=r(3521),a=r(5180),O=[["good","\u0412 \u0441\u043E\u0437\u043D\u0430\u043D\u0438\u0438"],["average","\u0411\u0435\u0437 \u0441\u043E\u0437\u043D\u0430\u043D\u0438\u044F"],["bad","\u0417\u0430\u0444\u0438\u043A\u0441\u0438\u0440\u043E\u0432\u0430\u043D\u0430 \u0441\u043C\u0435\u0440\u0442\u044C"]],b=[["\u0423\u0434\u0443\u0448\u044C\u0435","oxyLoss"],["\u041E\u0442\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435","toxLoss"],["\u041C\u0435\u0445\u0430\u043D\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u043F\u043E\u0432\u0440\u0435\u0436\u0434\u0435\u043D\u0438\u044F","bruteLoss"],["\u0422\u0435\u0440\u043C\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u043F\u043E\u0432\u0440\u0435\u0436\u0434\u0435\u043D\u0438\u044F","fireLoss"]],y={average:[.25,.5],bad:[.5,1/0]},u=["bad","average","average","good","average","average","bad"],f=function(_){var l=(0,n.Oc)(),c=l.act,h=l.data,g=h.hasOccupant,p=h.choice,j;return p?j=(0,e.jsx)(v,{}):j=g?(0,e.jsx)(m,{}):(0,e.jsx)(d,{}),(0,e.jsx)(t.p8,{width:650,height:455,children:(0,e.jsx)(t.p8.Content,{children:(0,e.jsxs)(a.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(a.BJ.Item,{children:(0,e.jsxs)(a.tU,{children:[(0,e.jsx)(a.tU.Tab,{selected:!p,icon:"user",onClick:function(){return c("choiceOff")},children:"\u041F\u0430\u0446\u0438\u0435\u043D\u0442"}),(0,e.jsx)(a.tU.Tab,{selected:!!p,icon:"cog",onClick:function(){return c("choiceOn")},children:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438"})]})}),(0,e.jsx)(a.BJ.Item,{grow:!0,children:(0,e.jsx)(a.wn,{fill:!0,scrollable:!0,children:j})})]})})})},m=function(_){var l=(0,n.Oc)().data,c=l.occupant;return(0,e.jsxs)(a.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(a.BJ.Item,{grow:!0,children:(0,e.jsx)(a.wn,{fill:!0,title:"\u041F\u0430\u0446\u0438\u0435\u043D\u0442",children:(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"\u0418\u043C\u044F",children:c.name}),(0,e.jsx)(a.Ki.Item,{label:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",color:O[c.stat][0],children:O[c.stat][1]}),(0,e.jsx)(a.Ki.Item,{label:"\u041E\u0446\u0435\u043D\u043A\u0430 \u0437\u0434\u043E\u0440\u043E\u0432\u044C\u044F",children:(0,e.jsx)(a.z2,{minValue:0,maxValue:c.maxHealth,value:c.health/c.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),b.map(function(h,g){return(0,e.jsx)(a.Ki.Item,{label:h[0],children:(0,e.jsx)(a.z2,{minValue:0,maxValue:100,value:c[h[1]]/100,ranges:y,children:(0,s.LI)(c[h[1]],0)},g)},g)}),(0,e.jsx)(a.Ki.Item,{label:"\u0422\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430 \u0442\u0435\u043B\u0430",children:(0,e.jsxs)(a.z2,{minValue:0,maxValue:c.maxTemp,value:c.bodyTemperature/c.maxTemp,color:u[c.temperatureSuitability+3],children:[(0,s.LI)(c.btCelsius,0),"\xB0C,"," ",(0,s.LI)(c.btFaren,0),"\xB0F"]})}),!!c.hasBlood&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.Ki.Item,{label:"\u0423\u0440\u043E\u0432\u0435\u043D\u044C \u043A\u0440\u043E\u0432\u0438",children:(0,e.jsxs)(a.z2,{minValue:0,maxValue:c.bloodMax,value:c.bloodLevel/c.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[c.bloodPercent,"%, ",c.bloodLevel,"cl"]})}),(0,e.jsxs)(a.Ki.Item,{label:"\u041F\u0443\u043B\u044C\u0441",children:[c.pulse," \u0443\u0434/\u043C\u0438\u043D"]})]})]})})}),(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(a.wn,{title:"\u0422\u0435\u043A\u0443\u0449\u0438\u0435 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0438",children:c.inSurgery?c.surgeries.map(function(h){var g=h.bodypartName,p=h.surgeryName,j=h.stepName;return(0,e.jsx)(a.wn,{title:g,children:(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"\u041E\u043F\u0435\u0440\u0430\u0446\u0438\u044F",children:p}),(0,e.jsx)(a.Ki.Item,{label:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0439 \u044D\u0442\u0430\u043F",children:j})]})},g)}):(0,e.jsx)(a.az,{color:"label",children:"\u041E\u043F\u0435\u0440\u0430\u0446\u0438\u0438 \u0432 \u0434\u0430\u043D\u043D\u044B\u0439 \u043C\u043E\u043C\u0435\u043D\u0442 \u043D\u0435 \u043F\u0440\u043E\u0432\u043E\u0434\u044F\u0442\u0441\u044F."})})})]})},d=function(){return(0,e.jsx)(a.BJ,{fill:!0,children:(0,e.jsxs)(a.BJ.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.jsx)(a.In,{name:"user-slash",mb:"0.5rem",size:5}),(0,e.jsx)("br",{}),"\u041F\u0430\u0446\u0438\u0435\u043D\u0442 \u043D\u0435 \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D."]})})},v=function(_){var l=(0,n.Oc)(),c=l.act,h=l.data,g=h.verbose,p=h.health,j=h.healthAlarm,x=h.oxy,C=h.oxyAlarm,I=h.crit;return(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"\u0414\u0438\u043D\u0430\u043C\u0438\u043A",children:(0,e.jsx)(a.$n,{selected:g,icon:g?"toggle-on":"toggle-off",onClick:function(){return c(g?"verboseOff":"verboseOn")},children:g?"\u0412\u043A\u043B\u044E\u0447\u0451\u043D":"\u0412\u044B\u043A\u043B\u044E\u0447\u0435\u043D"})}),(0,e.jsx)(a.Ki.Item,{label:"\u041E\u043F\u043E\u0432\u0435\u0449\u0430\u0442\u044C \u043E \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0438 \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430",children:(0,e.jsx)(a.$n,{selected:p,icon:p?"toggle-on":"toggle-off",onClick:function(){return c(p?"healthOff":"healthOn")},children:p?"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u043E":"\u0412\u044B\u043A\u043B\u044E\u0447\u0435\u043D\u043E"})}),(0,e.jsx)(a.Ki.Item,{label:"\u041F\u043E\u0440\u043E\u0433 \u043E\u043F\u043E\u0432\u0435\u0449\u0435\u043D\u0438\u044F \u043E \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0438",children:(0,e.jsx)(a.N6,{bipolar:!0,minValue:-100,maxValue:100,value:j,stepPixelSize:5,ml:"0",onChange:function(P,M){return c("health_adj",{new:M})}})}),(0,e.jsx)(a.Ki.Item,{label:"\u041E\u043F\u043E\u0432\u0435\u0449\u0430\u0442\u044C \u043E \u0434\u044B\u0445\u0430\u043D\u0438\u0438 \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430",children:(0,e.jsx)(a.$n,{selected:x,icon:x?"toggle-on":"toggle-off",onClick:function(){return c(x?"oxyOff":"oxyOn")},children:x?"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u043E":"\u0412\u044B\u043A\u043B\u044E\u0447\u0435\u043D\u043E"})}),(0,e.jsx)(a.Ki.Item,{label:"\u041F\u043E\u0440\u043E\u0433 \u043E\u043F\u043E\u0432\u0435\u0449\u0435\u043D\u0438\u044F \u043E \u0434\u044B\u0445\u0430\u043D\u0438\u0438",children:(0,e.jsx)(a.N6,{bipolar:!0,minValue:-100,maxValue:100,value:C,stepPixelSize:5,ml:"0",onChange:function(P,M){return c("oxy_adj",{new:M})}})}),(0,e.jsx)(a.Ki.Item,{label:"\u041E\u043F\u043E\u0432\u0435\u0449\u0430\u0442\u044C \u043E \u043A\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u043C \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0438 \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430",children:(0,e.jsx)(a.$n,{selected:I,icon:I?"toggle-on":"toggle-off",onClick:function(){return c(I?"critOff":"critOn")},children:I?"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u043E":"\u0412\u044B\u043A\u043B\u044E\u0447\u0435\u043D\u043E"})})]})}},9794:(q,S,r)=>{"use strict";r.r(S),r.d(S,{pda_signaler:()=>a});var e=r(1131),s=r(360),n=r(5664);function t(){return t=Object.assign||function(O){for(var b=1;b{"use strict";r.r(S),r.d(S,{DisplayName:()=>O});var e=r(1131),s=r(5180),n=r(5280);function t(){return t=Object.assign||function(b){for(var y=1;y=0)&&(u[m]=b[m]);return u}var O=function(b){var y,u=b.port,f=b.isOutput,m=b.componentId,d=b.portIndex,v=b.act,_=a(b,["port","isOutput","componentId","portIndex","act"]),l=n.FUNDAMENTAL_DATA_TYPES[u.type||"unknown"],c=n.DATATYPE_DISPLAY_HANDLERS[u.type||"unknown"],h=!f&&!((y=u.connected_to)!=null&&y.length)&&(m||u.type==="option")&&l,g=c?c(u):u.type;return(0,e.jsx)(s.az,t({},_,{children:(0,e.jsxs)(s.so,{direction:"column",children:[(0,e.jsx)(s.so.Item,{textAlign:f?"right":"left",children:h&&(0,e.jsx)(l,{setValue:function(p,j){return v("set_component_input",t({component_id:m,port_id:d,input:p},j))},color:u.color,name:u.name,value:u.current_data,extraData:u.datatype_data})||f&&(0,e.jsx)(s.$n,{compact:!0,color:"transparent",onClick:function(){return v("get_component_value",{component_id:m,port_id:d})},children:(0,e.jsx)(s.az,{color:"white",children:u.name})})||u.name}),(0,e.jsx)(s.so.Item,{children:(0,e.jsx)(s.az,{fontSize:.75,opacity:.5,textAlign:f?"right":"left",children:g||"unknown"})})]})}))}},9804:(q,S,r)=>{"use strict";r.r(S),r.d(S,{pda_mule:()=>t});var e=r(1131),s=r(360),n=r(5180),t=function(b){var y=(0,s.Oc)().data,u=y.mulebot,f=u.active;return(0,e.jsx)(n.az,{children:f?(0,e.jsx)(O,{}):(0,e.jsx)(a,{})})},a=function(b){var y=(0,s.Oc)(),u=y.act,f=y.data,m=f.mulebot,d=m.bots;return(0,e.jsxs)(n.az,{children:[d.map(function(v){return(0,e.jsx)(n.az,{children:(0,e.jsx)(n.$n,{icon:"cog",onClick:function(){return u("AccessBot",{uid:v.uid})},children:v.Name})},v.Name)}),(0,e.jsx)(n.az,{mt:2,children:(0,e.jsx)(n.$n,{fluid:!0,icon:"rss",onClick:function(){return u("Rescan")},children:"Re-scan for bots"})})]})},O=function(b){var y=(0,s.Oc)(),u=y.act,f=y.data,m=f.mulebot,d=m.botstatus,v=m.active,_=d.mode,l=d.loca,c=d.load,h=d.powr,g=d.dest,p=d.home,j=d.retn,x=d.pick,C;switch(_){case 0:C="Ready";break;case 1:C="Loading/Unloading";break;case 2:case 12:C="Navigating to delivery location";break;case 3:C="Navigating to Home";break;case 4:C="Waiting for clear path";break;case 5:case 6:C="Calculating navigation path";break;case 7:C="Unable to locate destination";break;default:C=_.toString();break}return(0,e.jsxs)(n.wn,{title:v,children:[_===-1&&(0,e.jsx)(n.az,{color:"red",bold:!0,children:"Waiting for response..."}),(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Location",children:l}),(0,e.jsx)(n.Ki.Item,{label:"Status",children:C}),(0,e.jsxs)(n.Ki.Item,{label:"Power",children:[h,"%"]}),(0,e.jsx)(n.Ki.Item,{label:"Home",children:p}),(0,e.jsx)(n.Ki.Item,{label:"Destination",children:(0,e.jsx)(n.$n,{onClick:function(){return u("SetDest")},children:g?g+" (Set)":"None (Set)"})}),(0,e.jsx)(n.Ki.Item,{label:"Current Load",children:(0,e.jsx)(n.$n,{disabled:!c,onClick:function(){return u("Unload")},children:c?c+" (Unload)":"None"})}),(0,e.jsx)(n.Ki.Item,{label:"Auto Pickup",children:(0,e.jsx)(n.$n,{selected:x,onClick:function(){return u("SetAutoPickup",{autoPickupType:x?"pickoff":"pickon"})},children:x?"Yes":"No"})}),(0,e.jsx)(n.Ki.Item,{label:"Auto Return",children:(0,e.jsx)(n.$n,{selected:j,onClick:function(){return u("SetAutoReturn",{autoReturnType:j?"retoff":"reton"})},children:j?"Yes":"No"})}),(0,e.jsxs)(n.Ki.Item,{label:"Controls",children:[(0,e.jsx)(n.$n,{icon:"stop",onClick:function(){return u("Stop")},children:"Stop"}),(0,e.jsx)(n.$n,{icon:"play",onClick:function(){return u("Start")},children:"Proceed"}),(0,e.jsx)(n.$n,{icon:"home",onClick:function(){return u("ReturnHome")},children:"Return Home"})]})]})]})}},9818:(q,S,r)=>{"use strict";r.d(S,{J$:()=>a,KJ:()=>d,LI:()=>b,Lz:()=>v,Mg:()=>y,TG:()=>f,hs:()=>O,qE:()=>t});function e(_,l){(l==null||l>_.length)&&(l=_.length);for(var c=0,h=new Array(l);c=_.length?{done:!0}:{done:!1,value:_[h++]}}}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 t=function(_,l,c){return _c?c:_},a=function(_){return _<0?0:_>1?1:_},O=function(_,l,c){return l===void 0&&(l=0),c===void 0&&(c=100),(_-l)/(c-l)},b=function(_,l){var c=_>=0?1:-1;return Number.parseFloat((Math.round(_*Math.pow(10,l)+c*1e-4)/Math.pow(10,l)).toFixed(l))},y=function(_,l){return l===void 0&&(l=0),Number(_).toFixed(Math.max(l,0))},u=function(_,l){return l&&_>=l[0]&&_<=l[1]},f=function(_,l){for(var c=n(Object.keys(l)),h;!(h=c()).done;){var g=h.value,p=l[g];if(u(_,p))return g}},m=function(_){return Math.floor(_)!==_&&_.toString().split(".")[1].length||0},d=function(_){return _*(180/Math.PI)},v=function(_){return typeof _=="number"&&Number.isFinite(_)&&!Number.isNaN(_)}},9845:(q,S,r)=>{"use strict";r.d(S,{ND:()=>u,Sn:()=>d,XZ:()=>t,ZH:()=>b,bl:()=>c,jT:()=>l});function e(g,p){(p==null||p>g.length)&&(p=g.length);for(var j=0,x=new Array(p);j=g.length?{done:!0}:{done:!1,value:g[x++]}}}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 t=function(g,p){p===void 0&&(p=function(x){return JSON.stringify(x)});var j=g.toLowerCase().trim();return function(x){if(!j)return!0;var C=p(x);return C?C.toLowerCase().includes(j):!1}},a=null,O=function(g,p,j){return p===1?g:j?g+j:g.endsWith("s")||g.endsWith("x")||g.endsWith("z")||g.endsWith("ch")||g.endsWith("sh")?""+g+"es":g.endsWith("y")&&!a.includes(g.charAt(g.length-2))?""+g.slice(0,-1)+"ies":""+g+"s"},b=function(g){return g.charAt(0).toUpperCase()+g.slice(1).toLowerCase()},y=function(g){return g.replace(/(^\w{1})|(\s+\w{1})/g,function(p){return p.toUpperCase()})},u=function(g){return g.replace(/^\w/,function(p){return p.toUpperCase()})},f=["Id","Tv"],m=["A","An","And","As","At","But","By","For","For","From","In","Into","Near","Nor","Of","On","Onto","Or","The","To","With"],d=function(g){if(!g)return g;for(var p=g.replace(/([^\W_]+[^\s-]*) */g,function(T){return b(T)}),j=n(m),x;!(x=j()).done;){var C=x.value,I=new RegExp("\\s"+C+"\\s","g");p=p.replace(I,function(T){return T.toLowerCase()})}for(var P=n(f),M;!(M=P()).done;){var B=M.value,w=new RegExp("\\b"+B+"\\b","g");p=p.replace(w,function(T){return T.toLowerCase()})}return p},v=/&(nbsp|amp|quot|lt|gt|apos|trade|copy);/g,_={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:'"',trade:"\u2122",cops:"\xA9"},l=function(g){return g&&g.replace(/
/gi,` -`).replace(/<\/?[a-z0-9-_]+[^>]*>/gi,"").replace(v,function(p,j){return _[j]}).replace(/&#?([0-9]+);/gi,function(p,j){var x=Number.parseInt(j,10);return String.fromCharCode(x)}).replace(/&#x?([0-9a-f]+);/gi,function(p,j){var x=Number.parseInt(j,16);return String.fromCharCode(x)})},c=function(g,p,j,x){return typeof g!="number"||Math.round(g)!==g?j:g%10===1&&g%100!==11?p:g%10>1&&g%10<5&&(g%100<11||g%100>15)?j:x},h=function(g){var p={"&":"&","<":"<",">":">",""":'"',"'":"'"," ":" "};return g.replace(/&(amp|lt|gt|quot|#39|nbsp);/g,function(j){return p[j]})}},9879:(q,S,r)=>{"use strict";r.r(S),r.d(S,{RequestManager:()=>b});var e=r(1131),s=r(9845),n=r(360),t=r(7003),a=r(5180),O=r(3521);/** + .id/desc.`,tooltipPosition:"bottom-start",children:"\u0418\u043C\u044F"}),fill:!0,scrollable:!0,title:"\u0421\u0442\u0438\u043B\u044C",children:d.map(function(v,_){return(0,e.jsx)(t.$n,{height:"45px",onClick:function(){return y("setStyle",{style:v.id})},selected:m===v.id,style:{verticalAlign:"middle",marginRight:"5px",borderRadius:"20px"},tooltipPosition:_>=d.length-2?_%2===1?"top-start":"top-end":_%2===1?"bottom-start":"bottom-end",tooltip:v.title,width:"45px",children:(0,e.jsx)(t.az,{className:(0,s.Ly)(["supplypods64x64","pod_asset"+v.id]),style:{pointerEvents:"none",transform:"rotate(45deg) translate(-25%,-10%)"}})},v.id)})})}},9782:(q,S,r)=>{"use strict";r.r(S),r.d(S,{SpawnSearch:()=>f});var e=r(1131),s=r(7003),n=r(5180),t=r(3655),a=r(683),b=r(1243),O=r(360),y=r(3521),u=r(4947),f=function(){var m=(0,O.Oc)(),d=m.act,v=m.data,_=v.initValue,l=v.searchNames,c=v.regexSearch,h=v.fancyTypes,g=v.includeAbstracts,p=(0,s.useState)({types:[],abstractTypes:{},fancyTypes:{}}),j=p[0],x=p[1],C=(0,s.useState)(0),I=C[0],P=C[1],M=(0,s.useState)((c?"re:":"")+(_||"")),B=M[0],w=M[1],T=(0,s.useState)(1),K=T[0],R=T[1],U=(0,s.useState)(!1),F=U[0],$=U[1],W=(0,s.useState)(!0),N=W[0],Z=W[1],ie=function(){var me=B;$(!1);var pe=me.indexOf("re:")===0;pe?me=me.slice(3).trimStart():c&&me.length===0&&(me="re:");var Me=me.split(":"),Ke=Me[Me.length-1];if(Me.length>1&&!Number.isNaN(+Ke)){if(+Ke<=0)return $(!0),[];me=me.slice(0,me.length-Ke.length-1).trimEnd(),R(+Ke)}else K!==1&&R(1);if(pe!==c&&d("setRegexSearch",{regexSearch:pe}),me.length===0)return[];if(pe)try{var Le=new RegExp(me);return j.types.filter(function(ze){return Le.test(ze.typepath)||l&&Le.test(ze.name)})}catch{return $(!0),[]}var Se=me.slice(me.length-1);(Se==="*"||Se==="!")&&(me=me.slice(0,me.length-1)),me=me.toLowerCase();var ln=function(ze){return ze.toLowerCase().includes(me)};return Se==="!"?ln=function(ze){return ze.toLowerCase().includes(me)&&ze.toLowerCase().lastIndexOf(me)===ze.length-me.length}:Se==="*"&&(ln=function(ze){return ze.toLowerCase().includes(me)&&!ze.slice(ze.toLowerCase().lastIndexOf(me)).includes("/")}),j.types.filter(function(ze){return(ln(ze.typepath)||l&&ln(ze.name))&&(g||!j.abstractTypes[ze.typepath])})},Q=(0,s.useState)([]),V=Q[0],G=Q[1];(0,s.useEffect)(function(){(0,t.b)((0,b.l)("spawn_menu_atom_data.json")).then(function(me){return me.json()}).then(function(me){x({types:Object.keys(me.types).map(function(pe){return{typepath:pe,name:me.types[pe]}}),abstractTypes:me.abstractTypes,fancyTypes:me.fancyTypes})}).catch(function(me){u.v.log("Failed to fetch spawn_menu_atom_data.json",JSON.stringify(me))})},[]),(0,s.useEffect)(function(){return G(ie())},[B,j,g]);var le=function(me){var pe=Object.keys(V).length-1;if(me===a.R)if(I===null||I===pe){var Me;P(0),(Me=document.getElementById("0"))==null||Me.scrollIntoView()}else{var Ke;P(I+1),(Ke=document.getElementById((I+1).toString()))==null||Ke.scrollIntoView()}else if(me===a.gf)if(I===null||I===0){var Le;P(pe),(Le=document.getElementById(pe.toString()))==null||Le.scrollIntoView()}else{var Se;P(I-1),(Se=document.getElementById((I-1).toString()))==null||Se.scrollIntoView()}},xe=function(me){return d("spawn",{type:me.typepath,amount:K})},de=function(me){var pe;me!==B&&(w(me),P(0),(pe=document.getElementById("0"))==null||pe.scrollIntoView())};return N||setTimeout(function(){var me;return(me=document.getElementById(I.toString()))==null?void 0:me.focus()},1),(0,e.jsx)(y.p8,{title:"Spawn Atom",width:400,height:500,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"percent",selected:B.indexOf("re:")===0,tooltip:B.indexOf("re:")===0?"RegEx Mode":"Standard Mode",onClick:function(){B.indexOf("re:")===0?w(B.slice(3)):w("re:"+B)}}),(0,e.jsx)(n.$n,{icon:"font",selected:g,tooltip:"Include Abstract Types",onClick:function(){return d("setIncludeAbstracts",{includeAbstracts:!g})}}),(0,e.jsx)(n.$n,{icon:"file-signature",selected:l,tooltip:"Name Search",onClick:function(){return d("setNameSearch",{searchNames:!l})}}),(0,e.jsx)(n.$n,{icon:"wand-magic-sparkles",selected:h,tooltip:"Fancy Type Display",onClick:function(){return d("setFancyTypes",{fancyTypes:!h})}})]}),children:(0,e.jsx)(y.p8.Content,{children:(0,e.jsx)(n.wn,{fill:!0,onKeyDown:function(me){var pe=window.event?me.which:me.keyCode;(pe===a.R||pe===a.gf)&&(me.preventDefault(),le(pe)),pe===a.Ri&&(me.preventDefault(),xe(V[I])),pe===a.s6&&(me.preventDefault(),d("cancel")),pe===a.bt&&me.altKey&&(B.indexOf("re:")===0?w(B.slice(3)):w("re:"+B)),pe===a.bL&&me.altKey&&d("setNameSearch",{searchNames:!l}),pe===a.Pf&&me.altKey&&d("setFancyTypes",{fancyTypes:!h})},children:(0,e.jsxs)(n.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsxs)(n.wn,{fill:!0,scrollable:!0,children:[(0,e.jsx)(n.y5,{}),(0,e.jsx)(n.wj,{children:V.map(function(me,pe){return(0,e.jsxs)(n.$n,{className:"candystripe",color:"transparent",fluid:!0,id:""+pe,onClick:function(){pe!==I&&P(pe)},onDoubleClick:function(){return xe(me)},onKeyDown:function(Me){var Ke=window.event?Me.which:Me.keyCode;Ke>=a.W8&&Ke<=a.bh&&(Me.preventDefault(),Z(!1),setTimeout(function(){Z(!0)},1))},selected:pe===I,style:{animation:"none",transition:"none"},children:[(0,e.jsx)("span",{style:j.abstractTypes[me.typepath]?{opacity:.75,color:"#FFA246"}:{},children:h&&Object.keys(j.fancyTypes).findLast(function(Me){return me.typepath.indexOf(Me)===0})?me.typepath.replace(Object.keys(j.fancyTypes).findLast(function(Me){return me.typepath.indexOf(Me)===0}),j.fancyTypes[Object.keys(j.fancyTypes).findLast(function(Me){return me.typepath.indexOf(Me)===0})]):me.typepath}),(0,e.jsx)("span",{className:"label label-info",style:{marginLeft:"0.5em",color:"rgba(200, 200, 200, 0.5)",fontSize:"10px"},children:me.name}),!!j.abstractTypes[me.typepath]&&(0,e.jsx)("span",{style:{float:"right",marginRight:"0.5em",color:"rgba(255, 162, 70, 0.5)"},children:"Abstract"})]},pe)})})]})}),!!N&&(0,e.jsx)(n.pd,{autoFocus:!0,autoSelect:!0,fluid:!0,onEnter:function(){return xe(V[I])},onChange:de,placeholder:"Search...",value:B,style:F?{borderColor:"red"}:{}})]})})})})}},9785:(q,S,r)=>{"use strict";r.r(S),r.d(S,{OperatingComputer:()=>f});var e=r(1131),s=r(9818),n=r(360),t=r(3521),a=r(5180),b=[["good","\u0412 \u0441\u043E\u0437\u043D\u0430\u043D\u0438\u0438"],["average","\u0411\u0435\u0437 \u0441\u043E\u0437\u043D\u0430\u043D\u0438\u044F"],["bad","\u0417\u0430\u0444\u0438\u043A\u0441\u0438\u0440\u043E\u0432\u0430\u043D\u0430 \u0441\u043C\u0435\u0440\u0442\u044C"]],O=[["\u0423\u0434\u0443\u0448\u044C\u0435","oxyLoss"],["\u041E\u0442\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435","toxLoss"],["\u041C\u0435\u0445\u0430\u043D\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u043F\u043E\u0432\u0440\u0435\u0436\u0434\u0435\u043D\u0438\u044F","bruteLoss"],["\u0422\u0435\u0440\u043C\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u043F\u043E\u0432\u0440\u0435\u0436\u0434\u0435\u043D\u0438\u044F","fireLoss"]],y={average:[.25,.5],bad:[.5,1/0]},u=["bad","average","average","good","average","average","bad"],f=function(_){var l=(0,n.Oc)(),c=l.act,h=l.data,g=h.hasOccupant,p=h.choice,j;return p?j=(0,e.jsx)(v,{}):j=g?(0,e.jsx)(m,{}):(0,e.jsx)(d,{}),(0,e.jsx)(t.p8,{width:650,height:455,children:(0,e.jsx)(t.p8.Content,{children:(0,e.jsxs)(a.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(a.BJ.Item,{children:(0,e.jsxs)(a.tU,{children:[(0,e.jsx)(a.tU.Tab,{selected:!p,icon:"user",onClick:function(){return c("choiceOff")},children:"\u041F\u0430\u0446\u0438\u0435\u043D\u0442"}),(0,e.jsx)(a.tU.Tab,{selected:!!p,icon:"cog",onClick:function(){return c("choiceOn")},children:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438"})]})}),(0,e.jsx)(a.BJ.Item,{grow:!0,children:(0,e.jsx)(a.wn,{fill:!0,scrollable:!0,children:j})})]})})})},m=function(_){var l=(0,n.Oc)().data,c=l.occupant;return(0,e.jsxs)(a.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(a.BJ.Item,{grow:!0,children:(0,e.jsx)(a.wn,{fill:!0,title:"\u041F\u0430\u0446\u0438\u0435\u043D\u0442",children:(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"\u0418\u043C\u044F",children:c.name}),(0,e.jsx)(a.Ki.Item,{label:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",color:b[c.stat][0],children:b[c.stat][1]}),(0,e.jsx)(a.Ki.Item,{label:"\u041E\u0446\u0435\u043D\u043A\u0430 \u0437\u0434\u043E\u0440\u043E\u0432\u044C\u044F",children:(0,e.jsx)(a.z2,{minValue:0,maxValue:c.maxHealth,value:c.health/c.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),O.map(function(h,g){return(0,e.jsx)(a.Ki.Item,{label:h[0],children:(0,e.jsx)(a.z2,{minValue:0,maxValue:100,value:c[h[1]]/100,ranges:y,children:(0,s.LI)(c[h[1]],0)},g)},g)}),(0,e.jsx)(a.Ki.Item,{label:"\u0422\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430 \u0442\u0435\u043B\u0430",children:(0,e.jsxs)(a.z2,{minValue:0,maxValue:c.maxTemp,value:c.bodyTemperature/c.maxTemp,color:u[c.temperatureSuitability+3],children:[(0,s.LI)(c.btCelsius,0),"\xB0C,"," ",(0,s.LI)(c.btFaren,0),"\xB0F"]})}),!!c.hasBlood&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.Ki.Item,{label:"\u0423\u0440\u043E\u0432\u0435\u043D\u044C \u043A\u0440\u043E\u0432\u0438",children:(0,e.jsxs)(a.z2,{minValue:0,maxValue:c.bloodMax,value:c.bloodLevel/c.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[c.bloodPercent,"%, ",c.bloodLevel,"cl"]})}),(0,e.jsxs)(a.Ki.Item,{label:"\u041F\u0443\u043B\u044C\u0441",children:[c.pulse," \u0443\u0434/\u043C\u0438\u043D"]})]})]})})}),(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(a.wn,{title:"\u0422\u0435\u043A\u0443\u0449\u0438\u0435 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0438",children:c.inSurgery?c.surgeries.map(function(h){var g=h.bodypartName,p=h.surgeryName,j=h.stepName;return(0,e.jsx)(a.wn,{title:g,children:(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"\u041E\u043F\u0435\u0440\u0430\u0446\u0438\u044F",children:p}),(0,e.jsx)(a.Ki.Item,{label:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0439 \u044D\u0442\u0430\u043F",children:j})]})},g)}):(0,e.jsx)(a.az,{color:"label",children:"\u041E\u043F\u0435\u0440\u0430\u0446\u0438\u0438 \u0432 \u0434\u0430\u043D\u043D\u044B\u0439 \u043C\u043E\u043C\u0435\u043D\u0442 \u043D\u0435 \u043F\u0440\u043E\u0432\u043E\u0434\u044F\u0442\u0441\u044F."})})})]})},d=function(){return(0,e.jsx)(a.BJ,{fill:!0,children:(0,e.jsxs)(a.BJ.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.jsx)(a.In,{name:"user-slash",mb:"0.5rem",size:5}),(0,e.jsx)("br",{}),"\u041F\u0430\u0446\u0438\u0435\u043D\u0442 \u043D\u0435 \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D."]})})},v=function(_){var l=(0,n.Oc)(),c=l.act,h=l.data,g=h.verbose,p=h.health,j=h.healthAlarm,x=h.oxy,C=h.oxyAlarm,I=h.crit;return(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"\u0414\u0438\u043D\u0430\u043C\u0438\u043A",children:(0,e.jsx)(a.$n,{selected:g,icon:g?"toggle-on":"toggle-off",onClick:function(){return c(g?"verboseOff":"verboseOn")},children:g?"\u0412\u043A\u043B\u044E\u0447\u0451\u043D":"\u0412\u044B\u043A\u043B\u044E\u0447\u0435\u043D"})}),(0,e.jsx)(a.Ki.Item,{label:"\u041E\u043F\u043E\u0432\u0435\u0449\u0430\u0442\u044C \u043E \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0438 \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430",children:(0,e.jsx)(a.$n,{selected:p,icon:p?"toggle-on":"toggle-off",onClick:function(){return c(p?"healthOff":"healthOn")},children:p?"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u043E":"\u0412\u044B\u043A\u043B\u044E\u0447\u0435\u043D\u043E"})}),(0,e.jsx)(a.Ki.Item,{label:"\u041F\u043E\u0440\u043E\u0433 \u043E\u043F\u043E\u0432\u0435\u0449\u0435\u043D\u0438\u044F \u043E \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0438",children:(0,e.jsx)(a.N6,{bipolar:!0,minValue:-100,maxValue:100,value:j,stepPixelSize:5,ml:"0",onChange:function(P,M){return c("health_adj",{new:M})}})}),(0,e.jsx)(a.Ki.Item,{label:"\u041E\u043F\u043E\u0432\u0435\u0449\u0430\u0442\u044C \u043E \u0434\u044B\u0445\u0430\u043D\u0438\u0438 \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430",children:(0,e.jsx)(a.$n,{selected:x,icon:x?"toggle-on":"toggle-off",onClick:function(){return c(x?"oxyOff":"oxyOn")},children:x?"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u043E":"\u0412\u044B\u043A\u043B\u044E\u0447\u0435\u043D\u043E"})}),(0,e.jsx)(a.Ki.Item,{label:"\u041F\u043E\u0440\u043E\u0433 \u043E\u043F\u043E\u0432\u0435\u0449\u0435\u043D\u0438\u044F \u043E \u0434\u044B\u0445\u0430\u043D\u0438\u0438",children:(0,e.jsx)(a.N6,{bipolar:!0,minValue:-100,maxValue:100,value:C,stepPixelSize:5,ml:"0",onChange:function(P,M){return c("oxy_adj",{new:M})}})}),(0,e.jsx)(a.Ki.Item,{label:"\u041E\u043F\u043E\u0432\u0435\u0449\u0430\u0442\u044C \u043E \u043A\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u043C \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0438 \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430",children:(0,e.jsx)(a.$n,{selected:I,icon:I?"toggle-on":"toggle-off",onClick:function(){return c(I?"critOff":"critOn")},children:I?"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u043E":"\u0412\u044B\u043A\u043B\u044E\u0447\u0435\u043D\u043E"})})]})}},9794:(q,S,r)=>{"use strict";r.r(S),r.d(S,{pda_signaler:()=>a});var e=r(1131),s=r(360),n=r(5664);function t(){return t=Object.assign||function(b){for(var O=1;O{"use strict";r.r(S),r.d(S,{DisplayName:()=>b});var e=r(1131),s=r(5180),n=r(5280);function t(){return t=Object.assign||function(O){for(var y=1;y=0)&&(u[m]=O[m]);return u}var b=function(O){var y,u=O.port,f=O.isOutput,m=O.componentId,d=O.portIndex,v=O.act,_=a(O,["port","isOutput","componentId","portIndex","act"]),l=n.FUNDAMENTAL_DATA_TYPES[u.type||"unknown"],c=n.DATATYPE_DISPLAY_HANDLERS[u.type||"unknown"],h=!f&&!((y=u.connected_to)!=null&&y.length)&&(m||u.type==="option")&&l,g=c?c(u):u.type;return(0,e.jsx)(s.az,t({},_,{children:(0,e.jsxs)(s.so,{direction:"column",children:[(0,e.jsx)(s.so.Item,{textAlign:f?"right":"left",children:h&&(0,e.jsx)(l,{setValue:function(p,j){return v("set_component_input",t({component_id:m,port_id:d,input:p},j))},color:u.color,name:u.name,value:u.current_data,extraData:u.datatype_data})||f&&(0,e.jsx)(s.$n,{compact:!0,color:"transparent",onClick:function(){return v("get_component_value",{component_id:m,port_id:d})},children:(0,e.jsx)(s.az,{color:"white",children:u.name})})||u.name}),(0,e.jsx)(s.so.Item,{children:(0,e.jsx)(s.az,{fontSize:.75,opacity:.5,textAlign:f?"right":"left",children:g||"unknown"})})]})}))}},9804:(q,S,r)=>{"use strict";r.r(S),r.d(S,{pda_mule:()=>t});var e=r(1131),s=r(360),n=r(5180),t=function(O){var y=(0,s.Oc)().data,u=y.mulebot,f=u.active;return(0,e.jsx)(n.az,{children:f?(0,e.jsx)(b,{}):(0,e.jsx)(a,{})})},a=function(O){var y=(0,s.Oc)(),u=y.act,f=y.data,m=f.mulebot,d=m.bots;return(0,e.jsxs)(n.az,{children:[d.map(function(v){return(0,e.jsx)(n.az,{children:(0,e.jsx)(n.$n,{icon:"cog",onClick:function(){return u("AccessBot",{uid:v.uid})},children:v.Name})},v.Name)}),(0,e.jsx)(n.az,{mt:2,children:(0,e.jsx)(n.$n,{fluid:!0,icon:"rss",onClick:function(){return u("Rescan")},children:"Re-scan for bots"})})]})},b=function(O){var y=(0,s.Oc)(),u=y.act,f=y.data,m=f.mulebot,d=m.botstatus,v=m.active,_=d.mode,l=d.loca,c=d.load,h=d.powr,g=d.dest,p=d.home,j=d.retn,x=d.pick,C;switch(_){case 0:C="Ready";break;case 1:C="Loading/Unloading";break;case 2:case 12:C="Navigating to delivery location";break;case 3:C="Navigating to Home";break;case 4:C="Waiting for clear path";break;case 5:case 6:C="Calculating navigation path";break;case 7:C="Unable to locate destination";break;default:C=_.toString();break}return(0,e.jsxs)(n.wn,{title:v,children:[_===-1&&(0,e.jsx)(n.az,{color:"red",bold:!0,children:"Waiting for response..."}),(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Location",children:l}),(0,e.jsx)(n.Ki.Item,{label:"Status",children:C}),(0,e.jsxs)(n.Ki.Item,{label:"Power",children:[h,"%"]}),(0,e.jsx)(n.Ki.Item,{label:"Home",children:p}),(0,e.jsx)(n.Ki.Item,{label:"Destination",children:(0,e.jsx)(n.$n,{onClick:function(){return u("SetDest")},children:g?g+" (Set)":"None (Set)"})}),(0,e.jsx)(n.Ki.Item,{label:"Current Load",children:(0,e.jsx)(n.$n,{disabled:!c,onClick:function(){return u("Unload")},children:c?c+" (Unload)":"None"})}),(0,e.jsx)(n.Ki.Item,{label:"Auto Pickup",children:(0,e.jsx)(n.$n,{selected:x,onClick:function(){return u("SetAutoPickup",{autoPickupType:x?"pickoff":"pickon"})},children:x?"Yes":"No"})}),(0,e.jsx)(n.Ki.Item,{label:"Auto Return",children:(0,e.jsx)(n.$n,{selected:j,onClick:function(){return u("SetAutoReturn",{autoReturnType:j?"retoff":"reton"})},children:j?"Yes":"No"})}),(0,e.jsxs)(n.Ki.Item,{label:"Controls",children:[(0,e.jsx)(n.$n,{icon:"stop",onClick:function(){return u("Stop")},children:"Stop"}),(0,e.jsx)(n.$n,{icon:"play",onClick:function(){return u("Start")},children:"Proceed"}),(0,e.jsx)(n.$n,{icon:"home",onClick:function(){return u("ReturnHome")},children:"Return Home"})]})]})]})}},9818:(q,S,r)=>{"use strict";r.d(S,{J$:()=>a,KJ:()=>d,LI:()=>O,Lz:()=>v,Mg:()=>y,TG:()=>f,hs:()=>b,qE:()=>t});function e(_,l){(l==null||l>_.length)&&(l=_.length);for(var c=0,h=new Array(l);c=_.length?{done:!0}:{done:!1,value:_[h++]}}}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 t=function(_,l,c){return _c?c:_},a=function(_){return _<0?0:_>1?1:_},b=function(_,l,c){return l===void 0&&(l=0),c===void 0&&(c=100),(_-l)/(c-l)},O=function(_,l){var c=_>=0?1:-1;return Number.parseFloat((Math.round(_*Math.pow(10,l)+c*1e-4)/Math.pow(10,l)).toFixed(l))},y=function(_,l){return l===void 0&&(l=0),Number(_).toFixed(Math.max(l,0))},u=function(_,l){return l&&_>=l[0]&&_<=l[1]},f=function(_,l){for(var c=n(Object.keys(l)),h;!(h=c()).done;){var g=h.value,p=l[g];if(u(_,p))return g}},m=function(_){return Math.floor(_)!==_&&_.toString().split(".")[1].length||0},d=function(_){return _*(180/Math.PI)},v=function(_){return typeof _=="number"&&Number.isFinite(_)&&!Number.isNaN(_)}},9845:(q,S,r)=>{"use strict";r.d(S,{ND:()=>u,Sn:()=>d,XZ:()=>t,ZH:()=>O,bl:()=>c,jT:()=>l});function e(g,p){(p==null||p>g.length)&&(p=g.length);for(var j=0,x=new Array(p);j=g.length?{done:!0}:{done:!1,value:g[x++]}}}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 t=function(g,p){p===void 0&&(p=function(x){return JSON.stringify(x)});var j=g.toLowerCase().trim();return function(x){if(!j)return!0;var C=p(x);return C?C.toLowerCase().includes(j):!1}},a=null,b=function(g,p,j){return p===1?g:j?g+j:g.endsWith("s")||g.endsWith("x")||g.endsWith("z")||g.endsWith("ch")||g.endsWith("sh")?""+g+"es":g.endsWith("y")&&!a.includes(g.charAt(g.length-2))?""+g.slice(0,-1)+"ies":""+g+"s"},O=function(g){return g.charAt(0).toUpperCase()+g.slice(1).toLowerCase()},y=function(g){return g.replace(/(^\w{1})|(\s+\w{1})/g,function(p){return p.toUpperCase()})},u=function(g){return g.replace(/^\w/,function(p){return p.toUpperCase()})},f=["Id","Tv"],m=["A","An","And","As","At","But","By","For","For","From","In","Into","Near","Nor","Of","On","Onto","Or","The","To","With"],d=function(g){if(!g)return g;for(var p=g.replace(/([^\W_]+[^\s-]*) */g,function(T){return O(T)}),j=n(m),x;!(x=j()).done;){var C=x.value,I=new RegExp("\\s"+C+"\\s","g");p=p.replace(I,function(T){return T.toLowerCase()})}for(var P=n(f),M;!(M=P()).done;){var B=M.value,w=new RegExp("\\b"+B+"\\b","g");p=p.replace(w,function(T){return T.toLowerCase()})}return p},v=/&(nbsp|amp|quot|lt|gt|apos|trade|copy);/g,_={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:'"',trade:"\u2122",cops:"\xA9"},l=function(g){return g&&g.replace(/
/gi,` +`).replace(/<\/?[a-z0-9-_]+[^>]*>/gi,"").replace(v,function(p,j){return _[j]}).replace(/&#?([0-9]+);/gi,function(p,j){var x=Number.parseInt(j,10);return String.fromCharCode(x)}).replace(/&#x?([0-9a-f]+);/gi,function(p,j){var x=Number.parseInt(j,16);return String.fromCharCode(x)})},c=function(g,p,j,x){return typeof g!="number"||Math.round(g)!==g?j:g%10===1&&g%100!==11?p:g%10>1&&g%10<5&&(g%100<11||g%100>15)?j:x},h=function(g){var p={"&":"&","<":"<",">":">",""":'"',"'":"'"," ":" "};return g.replace(/&(amp|lt|gt|quot|#39|nbsp);/g,function(j){return p[j]})}},9879:(q,S,r)=>{"use strict";r.r(S),r.d(S,{RequestManager:()=>O});var e=r(1131),s=r(9845),n=r(360),t=r(7003),a=r(5180),b=r(3521);/** * @file * @copyright 2021 bobbahbrown (https://github.com/bobbahbrown) * @coauthor 2022 BeebBeebBoob (https://github.com/BeebBeebBoob) * @license MIT - */var b=function(m){var d=(0,n.Oc)().data,v=d.requests,_=(0,t.useState)(Object.fromEntries(Object.entries(y).map(function(C){var I=C[0],P=C[1];return[I,!0]}))),l=_[0],c=_[1],h=(0,t.useState)(""),g=h[0],p=h[1],j=v.filter(function(C){return l[C.req_type]});if(g){var x=g.toLowerCase();j=j.filter(function(C){return(0,s.jT)(C.message).toLowerCase().includes(x)||C.owner_name.toLowerCase().includes(x)})}return(0,e.jsx)(O.p8,{title:"Request Manager",width:575,height:600,children:(0,e.jsx)(O.p8.Content,{scrollable:!0,children:(0,e.jsx)(a.wn,{title:"Requests",buttons:(0,e.jsx)(a.pd,{value:g,expensive:!0,onChange:p,placeholder:"Search...",mr:1}),children:j.map(function(C){return(0,e.jsxs)("div",{className:"RequestManager__row",children:[(0,e.jsxs)("div",{className:"RequestManager__rowContents",children:[(0,e.jsxs)("h2",{className:"RequestManager__header",children:[(0,e.jsxs)("span",{className:"RequestManager__headerText",children:[C.owner_name,C.owner===null&&" [DC]"]}),(0,e.jsx)("span",{className:"RequestManager__timestamp",children:C.timestamp_str})]}),(0,e.jsxs)("div",{className:"RequestManager__message",children:[(0,e.jsx)(u,{requestType:C.req_type}),(0,s.jT)(C.message)]})]}),C.owner!==null&&(0,e.jsx)(f,{request:C})]},C.id)})})})})},y={request_prayer:"PRAYER",request_centcom:"CENTCOM",request_syndicate:"SYNDICATE",request_honk:"HONK",request_ert:"ERT",request_nuke:"NUKE CODE"},u=function(m){var d=m.requestType;return(0,e.jsxs)("b",{className:"RequestManager__"+d,children:[y[d],":"]})},f=function(m){var d=(0,n.Oc)().act,v=m.request;return(0,e.jsxs)("div",{className:"RequestManager__controlsContainer",children:[(0,e.jsx)(a.$n,{onClick:function(){return d("pp",{id:v.id})},children:"PP"}),(0,e.jsx)(a.$n,{onClick:function(){return d("vv",{id:v.id})},children:"VV"}),(0,e.jsx)(a.$n,{onClick:function(){return d("sm",{id:v.id})},children:"SM"}),(0,e.jsx)(a.$n,{onClick:function(){return d("tp",{id:v.id})},children:"TP"}),(0,e.jsx)(a.$n,{onClick:function(){return d("logs",{id:v.id})},children:"LOGS"}),(0,e.jsx)(a.$n,{onClick:function(){return d("bless",{id:v.id})},children:"BLESS"}),(0,e.jsx)(a.$n,{onClick:function(){return d("smite",{id:v.id})},children:"SMITE"}),v.req_type!=="request_prayer"&&(0,e.jsx)(a.$n,{onClick:function(){return d("rply",{id:v.id})},children:"RPLY"}),v.req_type==="request_ert"&&(0,e.jsx)(a.$n,{onClick:function(){return d("ertreply",{id:v.id})},children:"ERTREPLY"}),v.req_type==="request_nuke"&&(0,e.jsx)(a.$n,{onClick:function(){return d("getcode",{id:v.id})},children:"GETCODE"})]})}},9922:(q,S,r)=>{"use strict";r.r(S),r.d(S,{SmiteMenu:()=>d});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=r(7003),O={\u041E\u0431\u0449\u0438\u0435:"star",\u0423\u0440\u043E\u043D:"skull-crossbones",\u0421\u043C\u0435\u0440\u0442\u044C:"skull",\u041F\u0440\u0435\u043E\u0431\u0440\u0430\u0437\u043E\u0432\u0430\u043D\u0438\u0435:"user-cog",\u041A\u043E\u043D\u0442\u0440\u043E\u043B\u044C:"brain"},b=function(v){var _=v.smite;return(0,e.jsx)(n.wn,{title:"\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u0430\u044F \u043A\u0430\u0440\u0430",children:_?(0,e.jsxs)(n.az,{style:{padding:"12px",backgroundColor:"rgba(100, 150, 255, 0.1)",borderRadius:"4px",border:"1px solid rgba(100, 150, 255, 0.3)"},children:[(0,e.jsx)(n.az,{bold:!0,mb:1,fontSize:1.2,children:_.name}),(0,e.jsx)(n.az,{color:"label",style:{fontSize:"12px",lineHeight:"1.4em",wordBreak:"break-word"},children:_.desc})]}):(0,e.jsx)(n.az,{italic:!0,color:"label",textAlign:"center",style:{padding:"20px",backgroundColor:"rgba(0, 0, 0, 0.2)",borderRadius:"4px",border:"1px dashed rgba(255, 255, 255, 0.1)"},children:"\u041A\u0430\u0440\u0430 \u043D\u0435 \u0432\u044B\u0431\u0440\u0430\u043D\u0430"})})},y=function(v){var _=v.reason,l=v.onReasonChange,c=v.hasSelectedSmite,h=v.onApplySmite;return(0,e.jsx)(n.wn,{title:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0430 \u043A\u0430\u0440\u044B",children:(0,e.jsxs)(n.BJ,{align:"center",children:[(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(n.az,{style:{flexGrow:1},children:(0,e.jsx)(n.pd,{placeholder:"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043F\u0440\u0438\u0447\u0438\u043D\u0443 \u043D\u0430\u043A\u0430\u0437\u0430\u043D\u0438\u044F...",onChange:l,fluid:!0,style:{backgroundColor:"rgba(255, 255, 255, 0.1)",border:"0.1em solid rgba(255, 255, 255, 0.2)",color:"white",height:"100%",padding:"0.3em",width:"100%"}})})}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.$n,{icon:"bolt",color:"bad",fontSize:"1.2em",disabled:!c,onClick:h,tooltip:c?void 0:"\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043A\u0430\u0440\u0443 \u0441\u043D\u0430\u0447\u0430\u043B\u0430",style:{height:"100%",width:"100%",borderRadius:"4px",whiteSpace:"nowrap"},children:"\u041F\u0420\u0418\u041C\u0415\u041D\u0418\u0422\u042C \u041A\u0410\u0420\u0423"})})]})})},u=function(v){var _=v.smites,l=v.selectedName,c=v.onSelect,h=v.showCategory;return(0,e.jsx)(n.wn,{fill:!0,scrollable:!0,children:_.length===0?(0,e.jsx)(n.IC,{textAlign:"center",color:"blue",children:"\u041D\u0435\u0442 \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0445 \u043A\u0430\u0440"}):_.map(function(g){return(0,e.jsx)(f,{smite:g,isSelected:g.name===l,onSelect:function(){return c(g.name)},showCategory:h},g.name)})})},f=function(v){var _=v.smite,l=v.isSelected,c=v.onSelect,h=v.showCategory;return(0,e.jsxs)(n.az,{onClick:c,style:{marginBottom:"6px",padding:"8px",backgroundColor:l?"rgba(100, 150, 255, 0.2)":"rgba(0, 0, 0, 0.1)",border:"1px solid "+(l?"rgba(100, 150, 255, 0.4)":"rgba(255, 255, 255, 0.05)"),borderRadius:"4px",minHeight:"60px",position:"relative",cursor:"pointer",flexShrink:0},children:[(0,e.jsx)(n.az,{style:{position:"absolute",right:"8px",top:"50%",transform:"translateY(-50%)"},children:(0,e.jsx)(n.In,{name:l?"check-circle":"circle",color:l?"good":"label",size:1.2})}),(0,e.jsxs)(n.az,{style:{paddingRight:"30px"},children:[(0,e.jsxs)(n.az,{bold:!0,style:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",marginBottom:"2px"},children:[_.name,h&&(0,e.jsxs)(n.az,{as:"span",color:"label",ml:1,children:["[",_.category,"]"]})]}),(0,e.jsx)(n.az,{color:"label",style:{fontSize:"11px",lineHeight:"1.2em",wordBreak:"break-word",whiteSpace:"pre-wrap",overflowWrap:"break-word"},children:_.desc})]})]})},m=function(v){var _=v.categories,l=v.activeCategory,c=v.onCategorySelect;return(0,e.jsx)(n.wn,{fill:!0,scrollable:!0,style:{width:"150px",minWidth:"160px"},children:(0,e.jsx)(n.tU,{vertical:!0,fluid:!0,children:_.map(function(h){return(0,e.jsx)(n.tU.Tab,{selected:h===l,onClick:function(){return c(h)},icon:O[h]||"question",children:(0,e.jsx)(n.az,{style:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"120px"},children:h})},h)})})})},d=function(v){var _=(0,s.Oc)(),l=_.act,c=_.data,h=c.categorized_smites,g=c.choosen,p=c.reason,j=(0,a.useState)(Object.keys(h)[0]||"\u041E\u0431\u0449\u0438\u0435"),x=j[0],C=j[1],I=(0,a.useState)(""),P=I[0],M=I[1],B=(0,a.useMemo)(function(){var W=[];for(var N in h)for(var Z in h[N])W.push({category:N,name:Z,desc:h[N][Z]});return W},[h]),w=(0,a.useMemo)(function(){if(!P){var W=h[x];return W?Object.entries(W).map(function(Z){var ie=Z[0],Q=Z[1];return{category:x,name:ie,desc:Q}}):[]}var N=P.toLowerCase();return B.filter(function(Z){return Z.name.toLowerCase().includes(N)||Z.desc.toLowerCase().includes(N)||Z.category.toLowerCase().includes(N)})},[P,x,h,B]),T=Object.keys(h),K=B.find(function(W){return W.name===g}),R=function(W){M(""),C(W)},U=function(W){l("change_reason",{new_reason:W})},F=function(){l("activate")},$=function(W){l("change_choosen",{new_choosen:W})};return(0,e.jsx)(t.p8,{width:600,height:550,theme:"admin",children:(0,e.jsx)(t.p8.Content,{children:(0,e.jsxs)(n.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(b,{smite:K})}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(y,{reason:p,onReasonChange:U,hasSelectedSmite:!!g,onApplySmite:F})}),(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(n.wn,{title:"\u0412\u044B\u0431\u043E\u0440 \u043A\u0430\u0440\u044B",buttons:(0,e.jsx)(n.pd,{width:"250px",placeholder:"\u041F\u043E\u0438\u0441\u043A \u043F\u043E \u043D\u0430\u0437\u0432\u0430\u043D\u0438\u044E \u0438\u043B\u0438 \u043E\u043F\u0438\u0441\u0430\u043D\u0438\u044E...",value:P,onChange:function(W){return M(W)}}),fill:!0,style:{overflow:"hidden",display:"flex",flexDirection:"column",height:"100%"},children:P?(0,e.jsxs)(n.az,{style:{height:"100%",display:"flex",flexDirection:"column",overflow:"hidden"},children:[(0,e.jsxs)(n.az,{mb:2,color:"label",children:["\u041D\u0430\u0439\u0434\u0435\u043D\u043E ",w.length," \u043A\u0430\u0440"]}),(0,e.jsx)(u,{smites:w,selectedName:g,onSelect:$,showCategory:!0})]}):(0,e.jsxs)(n.BJ,{fill:!0,children:[(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(m,{categories:T,activeCategory:x,onCategorySelect:R})}),(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(n.az,{style:{height:"100%",display:"flex",flexDirection:"column",overflow:"hidden"},children:(0,e.jsx)(u,{smites:w,selectedName:g,onSelect:$})})})]})})})]})})})}},9924:(q,S,r)=>{"use strict";r.r(S),r.d(S,{AtmosScan:()=>a});var e=r(1131),s=r(1859),n=r(5180),t=function(O,b,y,u,f){return Ou?"average":O>f?"bad":"good"},a=function(O){var b=O.aircontents;return(0,e.jsx)(n.az,{children:(0,e.jsx)(n.Ki,{children:(0,s.pb)(b,function(y){return y.val!==0||y.entry==="Pressure"||y.entry==="Temperature"}).map(function(y){return(0,e.jsxs)(n.Ki.Item,{label:y.entry,color:t(y.val,y.bad_low,y.poor_low,y.poor_high,y.bad_high),children:[y.val,y.units]},y.entry)})})})}},9953:(q,S,r)=>{"use strict";r.r(S),r.d(S,{TTSSeedsExplorer:()=>u,TTSSeedsExplorerContent:()=>f});var e=r(1131),s=r(360),n=r(7003),t=r(5180),a=r(3521),O={0:"\u0411\u0435\u0441\u043F\u043B\u0430\u0442\u043D\u044B\u0435",1:"Tier I",2:"Tier II",3:"Tier III",4:"Tier IV"},b={\u041C\u0443\u0436\u0441\u043A\u043E\u0439:{icon:"mars",color:"blue"},\u0416\u0435\u043D\u0441\u043A\u0438\u0439:{icon:"venus",color:"purple"},\u041B\u044E\u0431\u043E\u0439:{icon:"venus-mars",color:"white"}},y=function(m,d,v,_){return _===void 0&&(_=null),m.map(function(l){var c,h=(c=l[_])!=null?c:l;return(0,e.jsx)(t.$n.Checkbox,{checked:d.includes(l),onClick:function(){d.includes(l)?v(d.filter(function(g){var p;return((p=g[_])!=null?p:g)!==l})):v([].concat([l],d))},children:h},h)})},u=function(m){return(0,e.jsx)(a.p8,{width:700,height:800,children:(0,e.jsx)(a.p8.Content,{children:(0,e.jsx)(f,{})})})},f=function(m){var d=(0,s.Oc)(),v=d.act,_=d.data,l=_.providers,c=_.seeds,h=_.selected_seed,g=_.phrases,p=_.donator_level,j=c.map(function(Se){return Se.category}).filter(function(Se,ln,ze){return ze.indexOf(Se)===ln}),x=c.map(function(Se){return Se.gender}).filter(function(Se,ln,ze){return ze.indexOf(Se)===ln}),C=c.map(function(Se){return Se.donator_level}).filter(function(Se,ln,ze){return ze.indexOf(Se)===ln}).map(function(Se){return O[Se]}),I=(0,n.useState)(l),P=I[0],M=I[1],B=(0,n.useState)(x),w=B[0],T=B[1],K=(0,n.useState)(j),R=K[0],U=K[1],F=(0,n.useState)(C),$=F[0],W=F[1],N=(0,n.useState)(g[0]),Z=N[0],ie=N[1],Q=(0,n.useState)(""),V=Q[0],G=Q[1],le=y(l,P,M,"name"),xe=y(x,w,T),de=y(j,R,U),me=y(C,$,W),pe=(0,e.jsx)(t.ms,{options:g,selected:Z.replace(/(.{25})..+/,"$1..."),width:"220px",onSelected:function(Se){return ie(Se)}}),Me=(0,e.jsx)(t.pd,{placeholder:"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435...",fluid:!0,expensive:!0,onChange:G}),Ke=c.sort(function(Se,ln){var ze=Se.name.toLowerCase(),We=ln.name.toLowerCase();return ze>We?1:ze0&&h!==Se.name?"orange":"white",children:Se.name}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,opacity:h===Se.name?.5:.25,textAlign:"left",children:Se.category}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,opacity:.5,textColor:h===Se.name?"white":b[Se.gender].color,textAlign:"left",children:(0,e.jsx)(t.In,{mx:1,size:1.2,name:b[Se.gender].icon})}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,opacity:.5,textColor:"white",textAlign:"right",children:Se.donator_level>0&&(0,e.jsxs)(e.Fragment,{children:[O[Se.donator_level],(0,e.jsx)(t.In,{ml:1,mr:2,name:"coins"})]})})]},Se.name)});return(0,e.jsxs)(t.BJ,{vertical:!0,fill:!0,children:[(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.wn,{title:"\u0424\u0438\u043B\u044C\u0442\u0440\u044B",fill:!0,children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"\u041F\u0440\u043E\u0432\u0430\u0439\u0434\u0435\u0440\u044B",children:le}),(0,e.jsx)(t.Ki.Item,{label:"\u041F\u043E\u043B",children:xe}),(0,e.jsx)(t.Ki.Item,{label:"\u041A\u0430\u0442\u0435\u0433\u043E\u0440\u0438\u0438",children:de}),(0,e.jsx)(t.Ki.Item,{label:"\u0423\u0440\u043E\u0432\u0435\u043D\u044C \u043F\u043E\u0434\u043F\u0438\u0441\u043A\u0438",children:me}),(0,e.jsx)(t.Ki.Item,{label:"\u0424\u0440\u0430\u0437\u0430",children:pe}),(0,e.jsx)(t.Ki.Item,{label:"\u041F\u043E\u0438\u0441\u043A",children:Me})]})})}),(0,e.jsx)(t.BJ.Item,{grow:!0,children:(0,e.jsx)(t.wn,{scrollable:!0,fill:!0,title:"\u0413\u043E\u043B\u043E\u0441\u0430 ("+Ke.length+"/"+c.length+")",children:(0,e.jsx)(t.XI,{children:Le})})}),(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.wn,{children:(0,e.jsxs)(t.Y0,{children:[(0,e.jsx)(t.az,{children:"\u0414\u043B\u044F \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0430\u043D\u0438\u044F \u0438 \u0440\u0430\u0437\u0432\u0438\u0442\u0438\u044F \u0441\u043E\u043E\u0431\u0449\u0435\u0441\u0442\u0432\u0430 \u0432 \u0443\u0441\u043B\u043E\u0432\u0438\u044F\u0445 \u0440\u0430\u0441\u0442\u0443\u0449\u0438\u0445 \u0440\u0430\u0441\u0445\u043E\u0434\u043E\u0432 \u0447\u0430\u0441\u0442\u044C \u0433\u043E\u043B\u043E\u0441\u043E\u0432 \u043F\u0440\u0438\u0448\u043B\u043E\u0441\u044C \u0441\u0434\u0435\u043B\u0430\u0442\u044C \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u043C\u0438 \u0442\u043E\u043B\u044C\u043A\u043E \u0437\u0430 \u043C\u0430\u0442\u0435\u0440\u0438\u0430\u043B\u044C\u043D\u0443\u044E \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0443 \u0441\u043E\u043E\u0431\u0449\u0435\u0441\u0442\u0432\u0430."}),(0,e.jsx)(t.az,{italic:!0,children:"\u041F\u043E\u0434\u0440\u043E\u0431\u043D\u0435\u0435 \u043E\u0431 \u044D\u0442\u043E\u043C \u043C\u043E\u0436\u043D\u043E \u0443\u0437\u043D\u0430\u0442\u044C \u0432 \u043D\u0430\u0448\u0435\u043C Discord-\u0441\u043E\u043E\u0431\u0449\u0435\u0441\u0442\u0432\u0435."})]})})})]})}},9985:(q,S,r)=>{"use strict";r.r(S),r.d(S,{NuclearBomb:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(O){var b=(0,s.Oc)(),y=b.act,u=b.data;return u.extended?(0,e.jsx)(t.p8,{width:450,height:300,children:(0,e.jsxs)(t.p8.Content,{children:[(0,e.jsx)(n.wn,{title:"Authorization",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Auth Disk",children:(0,e.jsx)(n.$n,{icon:u.authdisk?"eject":"id-card",selected:u.authdisk,tooltip:u.authdisk?"Eject Disk":"Insert Disk",onClick:function(){return y("auth")},children:u.diskname?u.diskname:"-----"})}),(0,e.jsx)(n.Ki.Item,{label:"Auth Code",children:(0,e.jsx)(n.$n,{icon:"key",disabled:!u.authdisk,selected:u.authcode,onClick:function(){return y("code")},children:u.codemsg})})]})}),(0,e.jsx)(n.wn,{title:"Arming & Disarming",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Bolted to floor",children:(0,e.jsx)(n.$n,{icon:u.anchored?"check":"times",selected:u.anchored,disabled:!u.authfull,onClick:function(){return y("toggle_anchor")},children:u.anchored?"YES":"NO"})}),u.authfull&&(0,e.jsx)(n.Ki.Item,{label:"Time Left",children:(0,e.jsx)(n.$n,{icon:"stopwatch",disabled:!u.authfull,tooltip:"Set Timer",onClick:function(){return y("set_time")},children:u.time})})||(0,e.jsx)(n.Ki.Item,{label:"Time Left",color:u.timer?"red":"",children:u.time+"s"}),(0,e.jsx)(n.Ki.Item,{label:"Safety",children:(0,e.jsx)(n.$n,{icon:u.safety?"check":"times",selected:u.safety,disabled:!u.authfull,tooltip:u.safety?"Disable Safety":"Enable Safety",onClick:function(){return y("toggle_safety")},children:u.safety?"ON":"OFF"})}),(0,e.jsx)(n.Ki.Item,{label:"Arm/Disarm",children:(0,e.jsx)(n.$n,{icon:(u.timer,"bomb"),disabled:u.safety||!u.authfull,color:"red",onClick:function(){return y("toggle_armed")},children:u.timer?"DISARM THE NUKE":"ARM THE NUKE"})})]})})]})}):(0,e.jsx)(t.p8,{width:450,height:300,children:(0,e.jsx)(t.p8.Content,{children:(0,e.jsx)(n.wn,{title:"Deployment",children:(0,e.jsx)(n.$n,{icon:"exclamation-triangle",onClick:function(){return y("deploy")},children:"Deploy Nuclear Device (will bolt device to floor)"})})})})}},9991:(q,S,r)=>{"use strict";r.d(S,{H:()=>u});var e=r(1131),s=r(7003),n=r(1808),t=r(9818),a=r(5775),O=400,b=-1,y=function(f,m){return f.screenX*m[0]+f.screenY*m[1]},u=function(f){var m=f.animated,d=f.children,v=f.dragMatrix,_=v===void 0?[1,0]:v,l=f.format,c=f.maxValue,h=c===void 0?Number.POSITIVE_INFINITY:c,g=f.minValue,p=g===void 0?Number.NEGATIVE_INFINITY:g,j=f.onChange,x=f.onDrag,C=f.step,I=C===void 0?1:C,P=f.stepPixelSize,M=P===void 0?1:P,B=f.unclamped,w=f.unit,T=f.updateRate,K=T===void 0?O:T,R=f.fontSize,U=f.height,F=f.lineHeight,$=(0,s.useState)(f.value),W=$[0],N=$[1],Z=(0,s.useState)(!1),ie=Z[0],Q=Z[1],V=(0,s.useRef)(!1),G=(0,s.useRef)(f.value),le=(0,s.useRef)(0),xe=(0,s.useRef)(b),de=(0,s.useRef)(null),me=(0,s.useRef)(null),pe=(0,s.useRef)(null);(0,s.useEffect)(function(){f.value!==G.current&&(G.current=f.value,N(f.value))},[f.value]);var Me=function(In){ie||(document.body.style["pointer-events"]="none",xe.current=y(In.nativeEvent,_),le.current=f.value,V.current=!0,document.addEventListener("mouseup",Se),pe.current=setTimeout(function(){Ke(In.nativeEvent)},100))},Ke=function(In){if(V.current)document.addEventListener("mousemove",Le),me.current=setInterval(function(){V.current&&x?.(In,f.value)},K);else if(Q(!0),de.current){var En=de.current;En.value=le.current.toString(),setTimeout(function(){En.focus(),En.select()},10)}pe.current&&clearTimeout(pe.current)},Le=function(In){var En=y(In,_),Yn=En-xe.current,Xn=Number.isFinite(p)?p%I:0;le.current=(0,t.qE)(le.current+Yn*I/M,p-I,h+I);var ct=(0,t.qE)(le.current-le.current%I+Xn,p,h);G.current=ct,N(ct),xe.current=En},Se=function(In){document.body.style["pointer-events"]="auto",me.current&&clearInterval(me.current),xe.current=b,document.removeEventListener("mousemove",Le),document.removeEventListener("mouseup",Se),V.current&&(j?.(In,G.current),x?.(In,G.current),V.current=!1)},ln=function(In){(In.key===n._.Enter||(0,n.KL)(In.key))&&Q(!1)},ze=function(In){var En=Number.parseFloat(In.currentTarget.value);if(B||(En=(0,t.qE)(En,p,h)),Number.isNaN(En)){Q(!1);return}le.current=En,G.current=En,N(En),j?.(In.nativeEvent,En),ie&&Q(!1)},We=f.value;V.current&&(We=G.current);var fn=(0,e.jsxs)(e.Fragment,{children:[m&&!V.current?(0,e.jsx)(a.z,{value:We,format:l}):l?l(We):We,w?" "+w:""]}),Ze=(0,e.jsx)("input",{ref:de,className:"NumberInput__input",style:{display:ie?void 0:"none",height:U,lineHeight:F,fontSize:R},onBlur:ze,onKeyDown:ln});return d({displayElement:fn,displayValue:We,dragging:V.current,editing:ie,handleDragStart:Me,inputElement:Ze})}}},Js={};function wt(q){var S=Js[q];if(S!==void 0)return S.exports;var r=Js[q]={exports:{}};return Pu[q](r,r.exports,wt),r.exports}wt.n=q=>{var S=q&&q.__esModule?()=>q.default:()=>q;return wt.d(S,{a:S}),S},wt.d=(q,S)=>{for(var r in S)wt.o(S,r)&&!wt.o(q,r)&&Object.defineProperty(q,r,{enumerable:!0,get:S[r]})},wt.o=(q,S)=>Object.prototype.hasOwnProperty.call(q,S),wt.r=q=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(q,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(q,"__esModule",{value:!0})};var vd={};(()=>{"use strict";var q=wt(1131),S=wt(4931),r=wt(7921),e=wt(7989),s=wt(360),n=wt(7003),t=wt(3655),a=wt(1243),O=wt(4947),b=function(){(0,t.b)((0,a.l)("icon_ref_map.json")).then(function(I){return I.json()}).then(function(I){return Byond.iconRefMap=I}).catch(function(I){return O.v.log(I)})},y=function(){return(0,n.useEffect)(function(){Object.keys(Byond.iconRefMap).length===0&&b()},[]),null},u=function(){return(0,q.jsx)(n.Suspense,{fallback:null,children:(0,q.jsx)(y,{})})},f=function(){var I=wt(9160).l,P=I(s.J3);return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(P,{}),(0,q.jsx)(u,{})]})};/** + */var O=function(m){var d=(0,n.Oc)().data,v=d.requests,_=(0,t.useState)(Object.fromEntries(Object.entries(y).map(function(C){var I=C[0],P=C[1];return[I,!0]}))),l=_[0],c=_[1],h=(0,t.useState)(""),g=h[0],p=h[1],j=v.filter(function(C){return l[C.req_type]});if(g){var x=g.toLowerCase();j=j.filter(function(C){return(0,s.jT)(C.message).toLowerCase().includes(x)||C.owner_name.toLowerCase().includes(x)})}return(0,e.jsx)(b.p8,{title:"Request Manager",width:575,height:600,children:(0,e.jsx)(b.p8.Content,{scrollable:!0,children:(0,e.jsx)(a.wn,{title:"Requests",buttons:(0,e.jsx)(a.pd,{value:g,expensive:!0,onChange:p,placeholder:"Search...",mr:1}),children:j.map(function(C){return(0,e.jsxs)("div",{className:"RequestManager__row",children:[(0,e.jsxs)("div",{className:"RequestManager__rowContents",children:[(0,e.jsxs)("h2",{className:"RequestManager__header",children:[(0,e.jsxs)("span",{className:"RequestManager__headerText",children:[C.owner_name,C.owner===null&&" [DC]"]}),(0,e.jsx)("span",{className:"RequestManager__timestamp",children:C.timestamp_str})]}),(0,e.jsxs)("div",{className:"RequestManager__message",children:[(0,e.jsx)(u,{requestType:C.req_type}),(0,s.jT)(C.message)]})]}),C.owner!==null&&(0,e.jsx)(f,{request:C})]},C.id)})})})})},y={request_prayer:"PRAYER",request_centcom:"CENTCOM",request_syndicate:"SYNDICATE",request_honk:"HONK",request_ert:"ERT",request_nuke:"NUKE CODE"},u=function(m){var d=m.requestType;return(0,e.jsxs)("b",{className:"RequestManager__"+d,children:[y[d],":"]})},f=function(m){var d=(0,n.Oc)().act,v=m.request;return(0,e.jsxs)("div",{className:"RequestManager__controlsContainer",children:[(0,e.jsx)(a.$n,{onClick:function(){return d("pp",{id:v.id})},children:"PP"}),(0,e.jsx)(a.$n,{onClick:function(){return d("vv",{id:v.id})},children:"VV"}),(0,e.jsx)(a.$n,{onClick:function(){return d("sm",{id:v.id})},children:"SM"}),(0,e.jsx)(a.$n,{onClick:function(){return d("tp",{id:v.id})},children:"TP"}),(0,e.jsx)(a.$n,{onClick:function(){return d("logs",{id:v.id})},children:"LOGS"}),(0,e.jsx)(a.$n,{onClick:function(){return d("bless",{id:v.id})},children:"BLESS"}),(0,e.jsx)(a.$n,{onClick:function(){return d("smite",{id:v.id})},children:"SMITE"}),v.req_type!=="request_prayer"&&(0,e.jsx)(a.$n,{onClick:function(){return d("rply",{id:v.id})},children:"RPLY"}),v.req_type==="request_ert"&&(0,e.jsx)(a.$n,{onClick:function(){return d("ertreply",{id:v.id})},children:"ERTREPLY"}),v.req_type==="request_nuke"&&(0,e.jsx)(a.$n,{onClick:function(){return d("getcode",{id:v.id})},children:"GETCODE"})]})}},9922:(q,S,r)=>{"use strict";r.r(S),r.d(S,{SmiteMenu:()=>d});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=r(7003),b={\u041E\u0431\u0449\u0438\u0435:"star",\u0423\u0440\u043E\u043D:"skull-crossbones",\u0421\u043C\u0435\u0440\u0442\u044C:"skull",\u041F\u0440\u0435\u043E\u0431\u0440\u0430\u0437\u043E\u0432\u0430\u043D\u0438\u0435:"user-cog",\u041A\u043E\u043D\u0442\u0440\u043E\u043B\u044C:"brain"},O=function(v){var _=v.smite;return(0,e.jsx)(n.wn,{title:"\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u0430\u044F \u043A\u0430\u0440\u0430",children:_?(0,e.jsxs)(n.az,{style:{padding:"12px",backgroundColor:"rgba(100, 150, 255, 0.1)",borderRadius:"4px",border:"1px solid rgba(100, 150, 255, 0.3)"},children:[(0,e.jsx)(n.az,{bold:!0,mb:1,fontSize:1.2,children:_.name}),(0,e.jsx)(n.az,{color:"label",style:{fontSize:"12px",lineHeight:"1.4em",wordBreak:"break-word"},children:_.desc})]}):(0,e.jsx)(n.az,{italic:!0,color:"label",textAlign:"center",style:{padding:"20px",backgroundColor:"rgba(0, 0, 0, 0.2)",borderRadius:"4px",border:"1px dashed rgba(255, 255, 255, 0.1)"},children:"\u041A\u0430\u0440\u0430 \u043D\u0435 \u0432\u044B\u0431\u0440\u0430\u043D\u0430"})})},y=function(v){var _=v.reason,l=v.onReasonChange,c=v.hasSelectedSmite,h=v.onApplySmite;return(0,e.jsx)(n.wn,{title:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0430 \u043A\u0430\u0440\u044B",children:(0,e.jsxs)(n.BJ,{align:"center",children:[(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(n.az,{style:{flexGrow:1},children:(0,e.jsx)(n.pd,{placeholder:"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043F\u0440\u0438\u0447\u0438\u043D\u0443 \u043D\u0430\u043A\u0430\u0437\u0430\u043D\u0438\u044F...",onChange:l,fluid:!0,style:{backgroundColor:"rgba(255, 255, 255, 0.1)",border:"0.1em solid rgba(255, 255, 255, 0.2)",color:"white",height:"100%",padding:"0.3em",width:"100%"}})})}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.$n,{icon:"bolt",color:"bad",fontSize:"1.2em",disabled:!c,onClick:h,tooltip:c?void 0:"\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043A\u0430\u0440\u0443 \u0441\u043D\u0430\u0447\u0430\u043B\u0430",style:{height:"100%",width:"100%",borderRadius:"4px",whiteSpace:"nowrap"},children:"\u041F\u0420\u0418\u041C\u0415\u041D\u0418\u0422\u042C \u041A\u0410\u0420\u0423"})})]})})},u=function(v){var _=v.smites,l=v.selectedName,c=v.onSelect,h=v.showCategory;return(0,e.jsx)(n.wn,{fill:!0,scrollable:!0,children:_.length===0?(0,e.jsx)(n.IC,{textAlign:"center",color:"blue",children:"\u041D\u0435\u0442 \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0445 \u043A\u0430\u0440"}):_.map(function(g){return(0,e.jsx)(f,{smite:g,isSelected:g.name===l,onSelect:function(){return c(g.name)},showCategory:h},g.name)})})},f=function(v){var _=v.smite,l=v.isSelected,c=v.onSelect,h=v.showCategory;return(0,e.jsxs)(n.az,{onClick:c,style:{marginBottom:"6px",padding:"8px",backgroundColor:l?"rgba(100, 150, 255, 0.2)":"rgba(0, 0, 0, 0.1)",border:"1px solid "+(l?"rgba(100, 150, 255, 0.4)":"rgba(255, 255, 255, 0.05)"),borderRadius:"4px",minHeight:"60px",position:"relative",cursor:"pointer",flexShrink:0},children:[(0,e.jsx)(n.az,{style:{position:"absolute",right:"8px",top:"50%",transform:"translateY(-50%)"},children:(0,e.jsx)(n.In,{name:l?"check-circle":"circle",color:l?"good":"label",size:1.2})}),(0,e.jsxs)(n.az,{style:{paddingRight:"30px"},children:[(0,e.jsxs)(n.az,{bold:!0,style:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",marginBottom:"2px"},children:[_.name,h&&(0,e.jsxs)(n.az,{as:"span",color:"label",ml:1,children:["[",_.category,"]"]})]}),(0,e.jsx)(n.az,{color:"label",style:{fontSize:"11px",lineHeight:"1.2em",wordBreak:"break-word",whiteSpace:"pre-wrap",overflowWrap:"break-word"},children:_.desc})]})]})},m=function(v){var _=v.categories,l=v.activeCategory,c=v.onCategorySelect;return(0,e.jsx)(n.wn,{fill:!0,scrollable:!0,style:{width:"150px",minWidth:"160px"},children:(0,e.jsx)(n.tU,{vertical:!0,fluid:!0,children:_.map(function(h){return(0,e.jsx)(n.tU.Tab,{selected:h===l,onClick:function(){return c(h)},icon:b[h]||"question",children:(0,e.jsx)(n.az,{style:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"120px"},children:h})},h)})})})},d=function(v){var _=(0,s.Oc)(),l=_.act,c=_.data,h=c.categorized_smites,g=c.choosen,p=c.reason,j=(0,a.useState)(Object.keys(h)[0]||"\u041E\u0431\u0449\u0438\u0435"),x=j[0],C=j[1],I=(0,a.useState)(""),P=I[0],M=I[1],B=(0,a.useMemo)(function(){var W=[];for(var N in h)for(var Z in h[N])W.push({category:N,name:Z,desc:h[N][Z]});return W},[h]),w=(0,a.useMemo)(function(){if(!P){var W=h[x];return W?Object.entries(W).map(function(Z){var ie=Z[0],Q=Z[1];return{category:x,name:ie,desc:Q}}):[]}var N=P.toLowerCase();return B.filter(function(Z){return Z.name.toLowerCase().includes(N)||Z.desc.toLowerCase().includes(N)||Z.category.toLowerCase().includes(N)})},[P,x,h,B]),T=Object.keys(h),K=B.find(function(W){return W.name===g}),R=function(W){M(""),C(W)},U=function(W){l("change_reason",{new_reason:W})},F=function(){l("activate")},$=function(W){l("change_choosen",{new_choosen:W})};return(0,e.jsx)(t.p8,{width:600,height:550,theme:"admin",children:(0,e.jsx)(t.p8.Content,{children:(0,e.jsxs)(n.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(O,{smite:K})}),(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(y,{reason:p,onReasonChange:U,hasSelectedSmite:!!g,onApplySmite:F})}),(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(n.wn,{title:"\u0412\u044B\u0431\u043E\u0440 \u043A\u0430\u0440\u044B",buttons:(0,e.jsx)(n.pd,{width:"250px",placeholder:"\u041F\u043E\u0438\u0441\u043A \u043F\u043E \u043D\u0430\u0437\u0432\u0430\u043D\u0438\u044E \u0438\u043B\u0438 \u043E\u043F\u0438\u0441\u0430\u043D\u0438\u044E...",value:P,onChange:function(W){return M(W)}}),fill:!0,style:{overflow:"hidden",display:"flex",flexDirection:"column",height:"100%"},children:P?(0,e.jsxs)(n.az,{style:{height:"100%",display:"flex",flexDirection:"column",overflow:"hidden"},children:[(0,e.jsxs)(n.az,{mb:2,color:"label",children:["\u041D\u0430\u0439\u0434\u0435\u043D\u043E ",w.length," \u043A\u0430\u0440"]}),(0,e.jsx)(u,{smites:w,selectedName:g,onSelect:$,showCategory:!0})]}):(0,e.jsxs)(n.BJ,{fill:!0,children:[(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(m,{categories:T,activeCategory:x,onCategorySelect:R})}),(0,e.jsx)(n.BJ.Item,{grow:!0,children:(0,e.jsx)(n.az,{style:{height:"100%",display:"flex",flexDirection:"column",overflow:"hidden"},children:(0,e.jsx)(u,{smites:w,selectedName:g,onSelect:$})})})]})})})]})})})}},9924:(q,S,r)=>{"use strict";r.r(S),r.d(S,{AtmosScan:()=>a});var e=r(1131),s=r(1859),n=r(5180),t=function(b,O,y,u,f){return bu?"average":b>f?"bad":"good"},a=function(b){var O=b.aircontents;return(0,e.jsx)(n.az,{children:(0,e.jsx)(n.Ki,{children:(0,s.pb)(O,function(y){return y.val!==0||y.entry==="Pressure"||y.entry==="Temperature"}).map(function(y){return(0,e.jsxs)(n.Ki.Item,{label:y.entry,color:t(y.val,y.bad_low,y.poor_low,y.poor_high,y.bad_high),children:[y.val,y.units]},y.entry)})})})}},9953:(q,S,r)=>{"use strict";r.r(S),r.d(S,{TTSSeedsExplorer:()=>u,TTSSeedsExplorerContent:()=>f});var e=r(1131),s=r(360),n=r(7003),t=r(5180),a=r(3521),b={0:"\u0411\u0435\u0441\u043F\u043B\u0430\u0442\u043D\u044B\u0435",1:"Tier I",2:"Tier II",3:"Tier III",4:"Tier IV"},O={\u041C\u0443\u0436\u0441\u043A\u043E\u0439:{icon:"mars",color:"blue"},\u0416\u0435\u043D\u0441\u043A\u0438\u0439:{icon:"venus",color:"purple"},\u041B\u044E\u0431\u043E\u0439:{icon:"venus-mars",color:"white"}},y=function(m,d,v,_){return _===void 0&&(_=null),m.map(function(l){var c,h=(c=l[_])!=null?c:l;return(0,e.jsx)(t.$n.Checkbox,{checked:d.includes(l),onClick:function(){d.includes(l)?v(d.filter(function(g){var p;return((p=g[_])!=null?p:g)!==l})):v([].concat([l],d))},children:h},h)})},u=function(m){return(0,e.jsx)(a.p8,{width:700,height:800,children:(0,e.jsx)(a.p8.Content,{children:(0,e.jsx)(f,{})})})},f=function(m){var d=(0,s.Oc)(),v=d.act,_=d.data,l=_.providers,c=_.seeds,h=_.selected_seed,g=_.phrases,p=_.donator_level,j=c.map(function(Se){return Se.category}).filter(function(Se,ln,ze){return ze.indexOf(Se)===ln}),x=c.map(function(Se){return Se.gender}).filter(function(Se,ln,ze){return ze.indexOf(Se)===ln}),C=c.map(function(Se){return Se.donator_level}).filter(function(Se,ln,ze){return ze.indexOf(Se)===ln}).map(function(Se){return b[Se]}),I=(0,n.useState)(l),P=I[0],M=I[1],B=(0,n.useState)(x),w=B[0],T=B[1],K=(0,n.useState)(j),R=K[0],U=K[1],F=(0,n.useState)(C),$=F[0],W=F[1],N=(0,n.useState)(g[0]),Z=N[0],ie=N[1],Q=(0,n.useState)(""),V=Q[0],G=Q[1],le=y(l,P,M,"name"),xe=y(x,w,T),de=y(j,R,U),me=y(C,$,W),pe=(0,e.jsx)(t.ms,{options:g,selected:Z.replace(/(.{25})..+/,"$1..."),width:"220px",onSelected:function(Se){return ie(Se)}}),Me=(0,e.jsx)(t.pd,{placeholder:"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435...",fluid:!0,expensive:!0,onChange:G}),Ke=c.sort(function(Se,ln){var ze=Se.name.toLowerCase(),We=ln.name.toLowerCase();return ze>We?1:ze0&&h!==Se.name?"orange":"white",children:Se.name}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,opacity:h===Se.name?.5:.25,textAlign:"left",children:Se.category}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,opacity:.5,textColor:h===Se.name?"white":O[Se.gender].color,textAlign:"left",children:(0,e.jsx)(t.In,{mx:1,size:1.2,name:O[Se.gender].icon})}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,opacity:.5,textColor:"white",textAlign:"right",children:Se.donator_level>0&&(0,e.jsxs)(e.Fragment,{children:[b[Se.donator_level],(0,e.jsx)(t.In,{ml:1,mr:2,name:"coins"})]})})]},Se.name)});return(0,e.jsxs)(t.BJ,{vertical:!0,fill:!0,children:[(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.wn,{title:"\u0424\u0438\u043B\u044C\u0442\u0440\u044B",fill:!0,children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"\u041F\u0440\u043E\u0432\u0430\u0439\u0434\u0435\u0440\u044B",children:le}),(0,e.jsx)(t.Ki.Item,{label:"\u041F\u043E\u043B",children:xe}),(0,e.jsx)(t.Ki.Item,{label:"\u041A\u0430\u0442\u0435\u0433\u043E\u0440\u0438\u0438",children:de}),(0,e.jsx)(t.Ki.Item,{label:"\u0423\u0440\u043E\u0432\u0435\u043D\u044C \u043F\u043E\u0434\u043F\u0438\u0441\u043A\u0438",children:me}),(0,e.jsx)(t.Ki.Item,{label:"\u0424\u0440\u0430\u0437\u0430",children:pe}),(0,e.jsx)(t.Ki.Item,{label:"\u041F\u043E\u0438\u0441\u043A",children:Me})]})})}),(0,e.jsx)(t.BJ.Item,{grow:!0,children:(0,e.jsx)(t.wn,{scrollable:!0,fill:!0,title:"\u0413\u043E\u043B\u043E\u0441\u0430 ("+Ke.length+"/"+c.length+")",children:(0,e.jsx)(t.XI,{children:Le})})}),(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(t.wn,{children:(0,e.jsxs)(t.Y0,{children:[(0,e.jsx)(t.az,{children:"\u0414\u043B\u044F \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0430\u043D\u0438\u044F \u0438 \u0440\u0430\u0437\u0432\u0438\u0442\u0438\u044F \u0441\u043E\u043E\u0431\u0449\u0435\u0441\u0442\u0432\u0430 \u0432 \u0443\u0441\u043B\u043E\u0432\u0438\u044F\u0445 \u0440\u0430\u0441\u0442\u0443\u0449\u0438\u0445 \u0440\u0430\u0441\u0445\u043E\u0434\u043E\u0432 \u0447\u0430\u0441\u0442\u044C \u0433\u043E\u043B\u043E\u0441\u043E\u0432 \u043F\u0440\u0438\u0448\u043B\u043E\u0441\u044C \u0441\u0434\u0435\u043B\u0430\u0442\u044C \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u043C\u0438 \u0442\u043E\u043B\u044C\u043A\u043E \u0437\u0430 \u043C\u0430\u0442\u0435\u0440\u0438\u0430\u043B\u044C\u043D\u0443\u044E \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0443 \u0441\u043E\u043E\u0431\u0449\u0435\u0441\u0442\u0432\u0430."}),(0,e.jsx)(t.az,{italic:!0,children:"\u041F\u043E\u0434\u0440\u043E\u0431\u043D\u0435\u0435 \u043E\u0431 \u044D\u0442\u043E\u043C \u043C\u043E\u0436\u043D\u043E \u0443\u0437\u043D\u0430\u0442\u044C \u0432 \u043D\u0430\u0448\u0435\u043C Discord-\u0441\u043E\u043E\u0431\u0449\u0435\u0441\u0442\u0432\u0435."})]})})})]})}},9985:(q,S,r)=>{"use strict";r.r(S),r.d(S,{NuclearBomb:()=>a});var e=r(1131),s=r(360),n=r(5180),t=r(3521),a=function(b){var O=(0,s.Oc)(),y=O.act,u=O.data;return u.extended?(0,e.jsx)(t.p8,{width:450,height:300,children:(0,e.jsxs)(t.p8.Content,{children:[(0,e.jsx)(n.wn,{title:"Authorization",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Auth Disk",children:(0,e.jsx)(n.$n,{icon:u.authdisk?"eject":"id-card",selected:u.authdisk,tooltip:u.authdisk?"Eject Disk":"Insert Disk",onClick:function(){return y("auth")},children:u.diskname?u.diskname:"-----"})}),(0,e.jsx)(n.Ki.Item,{label:"Auth Code",children:(0,e.jsx)(n.$n,{icon:"key",disabled:!u.authdisk,selected:u.authcode,onClick:function(){return y("code")},children:u.codemsg})})]})}),(0,e.jsx)(n.wn,{title:"Arming & Disarming",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Bolted to floor",children:(0,e.jsx)(n.$n,{icon:u.anchored?"check":"times",selected:u.anchored,disabled:!u.authfull,onClick:function(){return y("toggle_anchor")},children:u.anchored?"YES":"NO"})}),u.authfull&&(0,e.jsx)(n.Ki.Item,{label:"Time Left",children:(0,e.jsx)(n.$n,{icon:"stopwatch",disabled:!u.authfull,tooltip:"Set Timer",onClick:function(){return y("set_time")},children:u.time})})||(0,e.jsx)(n.Ki.Item,{label:"Time Left",color:u.timer?"red":"",children:u.time+"s"}),(0,e.jsx)(n.Ki.Item,{label:"Safety",children:(0,e.jsx)(n.$n,{icon:u.safety?"check":"times",selected:u.safety,disabled:!u.authfull,tooltip:u.safety?"Disable Safety":"Enable Safety",onClick:function(){return y("toggle_safety")},children:u.safety?"ON":"OFF"})}),(0,e.jsx)(n.Ki.Item,{label:"Arm/Disarm",children:(0,e.jsx)(n.$n,{icon:(u.timer,"bomb"),disabled:u.safety||!u.authfull,color:"red",onClick:function(){return y("toggle_armed")},children:u.timer?"DISARM THE NUKE":"ARM THE NUKE"})})]})})]})}):(0,e.jsx)(t.p8,{width:450,height:300,children:(0,e.jsx)(t.p8.Content,{children:(0,e.jsx)(n.wn,{title:"Deployment",children:(0,e.jsx)(n.$n,{icon:"exclamation-triangle",onClick:function(){return y("deploy")},children:"Deploy Nuclear Device (will bolt device to floor)"})})})})}},9991:(q,S,r)=>{"use strict";r.d(S,{H:()=>u});var e=r(1131),s=r(7003),n=r(1808),t=r(9818),a=r(5775),b=400,O=-1,y=function(f,m){return f.screenX*m[0]+f.screenY*m[1]},u=function(f){var m=f.animated,d=f.children,v=f.dragMatrix,_=v===void 0?[1,0]:v,l=f.format,c=f.maxValue,h=c===void 0?Number.POSITIVE_INFINITY:c,g=f.minValue,p=g===void 0?Number.NEGATIVE_INFINITY:g,j=f.onChange,x=f.onDrag,C=f.step,I=C===void 0?1:C,P=f.stepPixelSize,M=P===void 0?1:P,B=f.unclamped,w=f.unit,T=f.updateRate,K=T===void 0?b:T,R=f.fontSize,U=f.height,F=f.lineHeight,$=(0,s.useState)(f.value),W=$[0],N=$[1],Z=(0,s.useState)(!1),ie=Z[0],Q=Z[1],V=(0,s.useRef)(!1),G=(0,s.useRef)(f.value),le=(0,s.useRef)(0),xe=(0,s.useRef)(O),de=(0,s.useRef)(null),me=(0,s.useRef)(null),pe=(0,s.useRef)(null);(0,s.useEffect)(function(){f.value!==G.current&&(G.current=f.value,N(f.value))},[f.value]);var Me=function(In){ie||(document.body.style["pointer-events"]="none",xe.current=y(In.nativeEvent,_),le.current=f.value,V.current=!0,document.addEventListener("mouseup",Se),pe.current=setTimeout(function(){Ke(In.nativeEvent)},100))},Ke=function(In){if(V.current)document.addEventListener("mousemove",Le),me.current=setInterval(function(){V.current&&x?.(In,f.value)},K);else if(Q(!0),de.current){var En=de.current;En.value=le.current.toString(),setTimeout(function(){En.focus(),En.select()},10)}pe.current&&clearTimeout(pe.current)},Le=function(In){var En=y(In,_),Yn=En-xe.current,Xn=Number.isFinite(p)?p%I:0;le.current=(0,t.qE)(le.current+Yn*I/M,p-I,h+I);var ct=(0,t.qE)(le.current-le.current%I+Xn,p,h);G.current=ct,N(ct),xe.current=En},Se=function(In){document.body.style["pointer-events"]="auto",me.current&&clearInterval(me.current),xe.current=O,document.removeEventListener("mousemove",Le),document.removeEventListener("mouseup",Se),V.current&&(j?.(In,G.current),x?.(In,G.current),V.current=!1)},ln=function(In){(In.key===n._.Enter||(0,n.KL)(In.key))&&Q(!1)},ze=function(In){var En=Number.parseFloat(In.currentTarget.value);if(B||(En=(0,t.qE)(En,p,h)),Number.isNaN(En)){Q(!1);return}le.current=En,G.current=En,N(En),j?.(In.nativeEvent,En),ie&&Q(!1)},We=f.value;V.current&&(We=G.current);var fn=(0,e.jsxs)(e.Fragment,{children:[m&&!V.current?(0,e.jsx)(a.z,{value:We,format:l}):l?l(We):We,w?" "+w:""]}),Ze=(0,e.jsx)("input",{ref:de,className:"NumberInput__input",style:{display:ie?void 0:"none",height:U,lineHeight:F,fontSize:R},onBlur:ze,onKeyDown:ln});return d({displayElement:fn,displayValue:We,dragging:V.current,editing:ie,handleDragStart:Me,inputElement:Ze})}}},Js={};function wt(q){var S=Js[q];if(S!==void 0)return S.exports;var r=Js[q]={exports:{}};return Pu[q](r,r.exports,wt),r.exports}wt.n=q=>{var S=q&&q.__esModule?()=>q.default:()=>q;return wt.d(S,{a:S}),S},wt.d=(q,S)=>{for(var r in S)wt.o(S,r)&&!wt.o(q,r)&&Object.defineProperty(q,r,{enumerable:!0,get:S[r]})},wt.o=(q,S)=>Object.prototype.hasOwnProperty.call(q,S),wt.r=q=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(q,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(q,"__esModule",{value:!0})};var vd={};(()=>{"use strict";var q=wt(1131),S=wt(4931),r=wt(7921),e=wt(7989),s=wt(360),n=wt(7003),t=wt(3655),a=wt(1243),b=wt(4947),O=function(){(0,t.b)((0,a.l)("icon_ref_map.json")).then(function(I){return I.json()}).then(function(I){return Byond.iconRefMap=I}).catch(function(I){return b.v.log(I)})},y=function(){return(0,n.useEffect)(function(){Object.keys(Byond.iconRefMap).length===0&&O()},[]),null},u=function(){return(0,q.jsx)(n.Suspense,{fallback:null,children:(0,q.jsx)(y,{})})},f=function(){var I=wt(9160).l,P=I(s.J3);return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(P,{}),(0,q.jsx)(u,{})]})};/** * @file * @copyright 2020 Aleksej Komarov * @license MIT @@ -553,7 +553,7 @@ User Agent: `+navigator.userAgent;Byond.sendMessage({type:"log",ns:m,message:l}) * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var c=(0,O.h)("store"),h=function(I){I===void 0&&(I={});var P=I.sideEffects,M=P===void 0?!0:P,B=I.reducer,w=I.middleware,T=(0,_.L)([(0,v.HY)({debug:l.A$,backend:s.jB}),B]),K=M?[].concat(w?.pre||[],[a.h,s.pX],w?.post||[]):[],R=v.Tw.apply(void 0,[].concat(K)),U=(0,v.y$)(T,R);return window.__store__=U,window.__augmentStack__=p(U),U},g=function(I){return function(P){return function(M){var B=M.type;return c.debug("action",B==="update"||B==="backend/update"?{type:B}:M),P(M)}}},p=function(I){return function(P,M){var B,w;M=M||new Error(P.split(` + */var c=(0,b.h)("store"),h=function(I){I===void 0&&(I={});var P=I.sideEffects,M=P===void 0?!0:P,B=I.reducer,w=I.middleware,T=(0,_.L)([(0,v.HY)({debug:l.A$,backend:s.jB}),B]),K=M?[].concat(w?.pre||[],[a.h,s.pX],w?.post||[]):[],R=v.Tw.apply(void 0,[].concat(K)),U=(0,v.y$)(T,R);return window.__store__=U,window.__augmentStack__=p(U),U},g=function(I){return function(P){return function(M){var B=M.type;return c.debug("action",B==="update"||B==="backend/update"?{type:B}:M),P(M)}}},p=function(I){return function(P,M){var B,w;M=M||new Error(P.split(` `)[0]),M.stack=M.stack||P,c.log("FatalError:",M);var T=I.getState(),K=T==null||(B=T.backend)==null?void 0:B.config;return P+` User Agent: `+navigator.userAgent+` State: `+JSON.stringify({ckey:K==null||(w=K.client)==null?void 0:w.ckey,interface:K?.interface,window:K?.window})}};/** From fb9f144a2b00d775c77de8127ed92962999e8d7e Mon Sep 17 00:00:00 2001 From: Dictor Date: Sat, 31 Jan 2026 22:43:30 +1000 Subject: [PATCH 2/3] =?UTF-8?q?=D0=A0=D0=BE=D0=B4=D0=B8=D1=82=D0=B5=D0=BB?= =?UTF-8?q?=D1=8C=D1=81=D0=BA=D0=B8=D0=B9=20=D0=BA=D0=BB=D0=B0=D1=81=D1=81?= =?UTF-8?q?=20=D0=B4=D0=BB=D1=8F=20=D0=B1=D0=BE=D1=82=D0=BE=D0=B2=20+=20?= =?UTF-8?q?=D0=BF=D0=BE=D0=BF=D1=80=D0=B0=D0=B2=D0=B8=D0=BB=20=D0=A2=D0=93?= =?UTF-8?q?=D0=A3=D0=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _maps/map_files/Delta/delta.dmm | 4 +- .../SpaceRuins/old_station_ss1984.dmm | 2 +- .../map_files/RandomRuins/SpaceRuins/ussp.dmm | 2 +- _maps/map_files/RandomZLevels/centcomAway.dmm | 2 +- _maps/map_files/cyberiad/cyberiad.dmm | 2 +- .../map_files/de_kerberos_2/de_kerberos_2.dmm | 4 +- _maps/map_files/event/Station/coldcolony.dmm | 2 +- _maps/map_files/generic/CentComm.dmm | 2 +- _maps/map_files/nova/nova.dmm | 6 +- _maps/map_files/nova/submaps/AbondonedMed.dmm | 2 +- code/game/objects/items/robot/robot_parts.dm | 2 +- .../living/simple_animal/bot/construction.dm | 351 +++--------------- .../mob/living/simple_animal/bot/ed209bot.dm | 2 +- .../mob/living/simple_animal/bot/griefsky.dm | 2 +- .../mob/living/simple_animal/bot/secbot.dm | 2 +- .../reagent_containers/glass_containers.dm | 2 +- tgui/packages/tgui/interfaces/Bots.tsx | 10 +- 17 files changed, 80 insertions(+), 319 deletions(-) diff --git a/_maps/map_files/Delta/delta.dmm b/_maps/map_files/Delta/delta.dmm index 7943ed294a33..26db87ef5573 100644 --- a/_maps/map_files/Delta/delta.dmm +++ b/_maps/map_files/Delta/delta.dmm @@ -73098,7 +73098,7 @@ /obj/item/radio/intercom/directional/north, /obj/item/storage/belt/utility, /obj/item/extinguisher, -/obj/item/secbot_assembly{ +/obj/item/bot_assembly/secbot_assembly{ created_name = "Officer Podsky"; desc = "Ты не узнаешь ценность чего-либо, пока не потеряешь это..."; name = "Обломки офицера Подски"; @@ -117842,7 +117842,7 @@ /area/turret_protected/ai) "wmH" = ( /obj/structure/rack, -/obj/item/toolbox_tiles, +/obj/item/bot_assembly/toolbox_tiles, /turf/simulated/floor/plasteel{ dir = 9; icon_state = "caution" diff --git a/_maps/map_files/RandomRuins/SpaceRuins/old_station_ss1984.dmm b/_maps/map_files/RandomRuins/SpaceRuins/old_station_ss1984.dmm index e32d0c443bda..d34f9776a504 100644 --- a/_maps/map_files/RandomRuins/SpaceRuins/old_station_ss1984.dmm +++ b/_maps/map_files/RandomRuins/SpaceRuins/old_station_ss1984.dmm @@ -8017,7 +8017,7 @@ /obj/machinery/atmospherics/pipe/manifold/hidden/scrubbers{ dir = 1 }, -/obj/item/bucket_sensor, +/obj/item/bot_assembly/bucket_sensor, /turf/simulated/floor/plasteel{ dir = 4; icon_state = "greencorner" diff --git a/_maps/map_files/RandomRuins/SpaceRuins/ussp.dmm b/_maps/map_files/RandomRuins/SpaceRuins/ussp.dmm index 27522e9fa6e3..f4224b9f3ac0 100644 --- a/_maps/map_files/RandomRuins/SpaceRuins/ussp.dmm +++ b/_maps/map_files/RandomRuins/SpaceRuins/ussp.dmm @@ -5245,7 +5245,7 @@ }, /area/derelict/med) "nk" = ( -/obj/item/firstaid_arm_assembly, +/obj/item/bot_assembly/firstaid_arm_assembly, /turf/simulated/floor/plasteel/airless{ icon_state = "white" }, diff --git a/_maps/map_files/RandomZLevels/centcomAway.dmm b/_maps/map_files/RandomZLevels/centcomAway.dmm index 7e5d77a5d673..e263f0525e0c 100644 --- a/_maps/map_files/RandomZLevels/centcomAway.dmm +++ b/_maps/map_files/RandomZLevels/centcomAway.dmm @@ -4725,7 +4725,7 @@ /area/awaymission/centcomAway/thunderdome) "mJ" = ( /obj/structure/table, -/obj/item/firstaid_arm_assembly, +/obj/item/bot_assembly/firstaid_arm_assembly, /turf/simulated/floor/plasteel{ tag = "icon-vault"; icon_state = "vault" diff --git a/_maps/map_files/cyberiad/cyberiad.dmm b/_maps/map_files/cyberiad/cyberiad.dmm index 085686c17f6c..6addc83e592d 100644 --- a/_maps/map_files/cyberiad/cyberiad.dmm +++ b/_maps/map_files/cyberiad/cyberiad.dmm @@ -78546,7 +78546,7 @@ /area/maintenance/asmaint) "rRr" = ( /obj/effect/decal/cleanable/dirt, -/obj/item/toolbox_tiles, +/obj/item/bot_assembly/toolbox_tiles, /turf/simulated/floor/plating, /area/maintenance/apmaint) "rRt" = ( diff --git a/_maps/map_files/de_kerberos_2/de_kerberos_2.dmm b/_maps/map_files/de_kerberos_2/de_kerberos_2.dmm index d36c2694cdfd..d0297f2e8581 100644 --- a/_maps/map_files/de_kerberos_2/de_kerberos_2.dmm +++ b/_maps/map_files/de_kerberos_2/de_kerberos_2.dmm @@ -66520,7 +66520,7 @@ /obj/item/radio/intercom/directional/north, /obj/item/storage/belt/utility, /obj/item/extinguisher, -/obj/item/secbot_assembly{ +/obj/item/bot_assembly/secbot_assembly{ created_name = "Officer Podsky"; desc = "Ты не узнаешь ценность чего-либо, пока не потеряешь это..."; name = "Обломки офицера Подски"; @@ -120713,7 +120713,7 @@ /area/turret_protected/ai) "wmH" = ( /obj/structure/rack, -/obj/item/toolbox_tiles, +/obj/item/bot_assembly/toolbox_tiles, /turf/simulated/floor/plasteel{ dir = 9; icon_state = "caution" diff --git a/_maps/map_files/event/Station/coldcolony.dmm b/_maps/map_files/event/Station/coldcolony.dmm index 2d7efad469e2..97de66fe0259 100644 --- a/_maps/map_files/event/Station/coldcolony.dmm +++ b/_maps/map_files/event/Station/coldcolony.dmm @@ -64818,7 +64818,7 @@ /obj/structure/sign/poster/contraband/random{ pixel_x = -32 }, -/obj/item/firstaid_arm_assembly, +/obj/item/bot_assembly/firstaid_arm_assembly, /obj/structure/rack, /turf/simulated/floor/plating, /area/coldcolony/malta/research/shallway) diff --git a/_maps/map_files/generic/CentComm.dmm b/_maps/map_files/generic/CentComm.dmm index 01d97418ca7c..b5f5ed90030c 100644 --- a/_maps/map_files/generic/CentComm.dmm +++ b/_maps/map_files/generic/CentComm.dmm @@ -1306,7 +1306,7 @@ /area/syndicate_mothership/jail) "aBL" = ( /obj/structure/closet/crate, -/obj/item/bucket_sensor, +/obj/item/bot_assembly/bucket_sensor, /obj/item/assembly/prox_sensor, /obj/item/toy/crayon, /obj/item/toy/crayon/blue, diff --git a/_maps/map_files/nova/nova.dmm b/_maps/map_files/nova/nova.dmm index d9ed07e6f29a..34a2cb7a1e8e 100644 --- a/_maps/map_files/nova/nova.dmm +++ b/_maps/map_files/nova/nova.dmm @@ -16819,7 +16819,7 @@ }, /obj/effect/decal/cleanable/dirt, /obj/structure/rack, -/obj/item/toolbox_tiles, +/obj/item/bot_assembly/toolbox_tiles, /turf/simulated/floor/plating, /area/maintenance/tourist) "cvL" = ( @@ -18853,7 +18853,7 @@ /area/quartermaster/miningstorage) "cMC" = ( /obj/effect/decal/cleanable/dirt, -/obj/item/toolbox_tiles, +/obj/item/bot_assembly/toolbox_tiles, /obj/structure/rack, /obj/effect/decal/warning_stripes/southwestcorner, /turf/simulated/floor/plating, @@ -139524,7 +139524,7 @@ /area/security/brig) "uFZ" = ( /obj/structure/table, -/obj/item/secbot_assembly{ +/obj/item/bot_assembly/secbot_assembly{ created_name = "Officer Podsky"; desc = "Ты не узнаешь ценность чего-либо, пока не потеряешь это..."; name = "Обломки офицера Подски"; diff --git a/_maps/map_files/nova/submaps/AbondonedMed.dmm b/_maps/map_files/nova/submaps/AbondonedMed.dmm index 5bf610eabb3c..898fa3e8bb47 100644 --- a/_maps/map_files/nova/submaps/AbondonedMed.dmm +++ b/_maps/map_files/nova/submaps/AbondonedMed.dmm @@ -3557,7 +3557,7 @@ /area/maintenance/medroom) "HP" = ( /obj/structure/rack, -/obj/item/toolbox_tiles, +/obj/item/bot_assembly/toolbox_tiles, /obj/effect/decal/cleanable/dirt, /turf/simulated/floor/plating, /area/maintenance/apmaint) diff --git a/code/game/objects/items/robot/robot_parts.dm b/code/game/objects/items/robot/robot_parts.dm index d72f8b41720b..0ef39e5eadf0 100644 --- a/code/game/objects/items/robot/robot_parts.dm +++ b/code/game/objects/items/robot/robot_parts.dm @@ -161,7 +161,7 @@ if(!metal.use(1)) to_chat(user, span_warning("You need one sheet of metal to continue construction.")) return ATTACK_CHAIN_PROCEED - var/obj/item/ed209_assembly/ed209_assembly = new(drop_location()) + var/obj/item/bot_assembly/ed209_assembly/ed209_assembly = new(drop_location()) qdel(src) to_chat(user, span_notice("You armed the robot frame")) user.put_in_hands(ed209_assembly, ignore_anim = FALSE) diff --git a/code/modules/mob/living/simple_animal/bot/construction.dm b/code/modules/mob/living/simple_animal/bot/construction.dm index bf0b269c656a..8d3fc6c477be 100644 --- a/code/modules/mob/living/simple_animal/bot/construction.dm +++ b/code/modules/mob/living/simple_animal/bot/construction.dm @@ -1,7 +1,7 @@ //Bot Construction //Cleanbot assembly -/obj/item/bucket_sensor +/obj/item/bot_assembly/bucket_sensor name = "Proxy bucket" desc = "Это ведро, к которому прикреплён сенсор." icon = 'icons/obj/aibots.dmi' @@ -13,7 +13,7 @@ var/created_name = "Чистобот" var/robot_arm = /obj/item/robot_parts/l_arm -/obj/item/bucket_sensor/attackby(obj/item/I, mob/user, params) +/obj/item/bot_assembly/bucket_sensor/attackby(obj/item/I, mob/user, params) if(user.a_intent == INTENT_HARM) return ..() @@ -55,50 +55,9 @@ qdel(I) return ATTACK_CHAIN_BLOCKED_ALL -/obj/item/bucket_sensor/ui_interact(mob/user, datum/tgui/ui) - ui = SStgui.try_update_ui(user, src, ui) - if(!ui) - ui = new(user, src, "Bots", name) - ui.open() - -/obj/item/bucket_sensor/ui_data(mob/user) - var/list/data = list() - var/list/user_accesses = user.get_access() - - data["accesses"] = req_access - data["regions"] = length(user_accesses) ? get_accesslist_static_data(REGION_GENERAL, REGION_COMMAND, user_accesses) : null - return data - -/obj/item/bucket_sensor/ui_act(action, list/params, datum/tgui/ui) - if(..()) - return - - switch(action) - if("clear_all") - req_access = list() - if("grant_all") - req_access = ui.user.get_access() - if("set") - var/access = text2num(params["access"]) - if(!(access in req_access)) - req_access += access - else - req_access -= access - if("grant_region") - var/region = text2num(params["region"]) - if(isnull(region)) - return - req_access |= (get_region_accesses(region) & ui.user.get_access()) - if("deny_region") - var/region = text2num(params["region"]) - if(isnull(region)) - return - req_access -= (get_region_accesses(region) & ui.user.get_access()) - update_icon() - //Edbot Assembly -/obj/item/ed209_assembly +/obj/item/bot_assembly/ed209_assembly name = "ED-209 assembly" desc = "Заготовка для чего-то серьёзного." icon = 'icons/obj/aibots.dmi' @@ -110,7 +69,7 @@ var/lasercolor = "" var/new_name = "" -/obj/item/ed209_assembly/update_name(updates = ALL) +/obj/item/bot_assembly/ed209_assembly/update_name(updates = ALL) . = ..() switch(build_step) if(1,2) @@ -130,7 +89,7 @@ if(9) name = "armed [name]" -/obj/item/ed209_assembly/update_icon_state() +/obj/item/bot_assembly/ed209_assembly/update_icon_state() switch(build_step) if(1) item_state = "ed209_leg" @@ -151,7 +110,7 @@ item_state = "[lasercolor]ed209_taser" icon_state = "[lasercolor]ed209_taser" -/obj/item/ed209_assembly/attackby(obj/item/I, mob/user, params) +/obj/item/bot_assembly/ed209_assembly/attackby(obj/item/I, mob/user, params) if(user.a_intent == INTENT_HARM) return ..() @@ -316,7 +275,7 @@ return ..() -/obj/item/ed209_assembly/welder_act(mob/living/user, obj/item/I) +/obj/item/bot_assembly/ed209_assembly/welder_act(mob/living/user, obj/item/I) if(build_step != 3) return FALSE . = TRUE @@ -329,7 +288,7 @@ balloon_alert(user, "деталь установлена") update_appearance(UPDATE_NAME|UPDATE_ICON_STATE) -/obj/item/ed209_assembly/screwdriver_act(mob/living/user, obj/item/I) +/obj/item/bot_assembly/ed209_assembly/screwdriver_act(mob/living/user, obj/item/I) if(build_step != 8) return FALSE . = TRUE @@ -340,49 +299,8 @@ update_appearance(UPDATE_NAME) balloon_alert(user, "вы установили оружие") -/obj/item/ed209_assembly/ui_interact(mob/user, datum/tgui/ui) - ui = SStgui.try_update_ui(user, src, ui) - if(!ui) - ui = new(user, src, "Bots", name) - ui.open() - -/obj/item/ed209_assembly/ui_data(mob/user) - var/list/data = list() - var/list/user_accesses = user.get_access() - - data["accesses"] = req_access - data["regions"] = length(user_accesses) ? get_accesslist_static_data(REGION_GENERAL, REGION_COMMAND, user_accesses) : null - return data - -/obj/item/ed209_assembly/ui_act(action, list/params, datum/tgui/ui) - if(..()) - return - - switch(action) - if("clear_all") - req_access = list() - if("grant_all") - req_access = ui.user.get_access() - if("set") - var/access = text2num(params["access"]) - if(!(access in req_access)) - req_access += access - else - req_access -= access - if("grant_region") - var/region = text2num(params["region"]) - if(isnull(region)) - return - req_access |= (get_region_accesses(region) & ui.user.get_access()) - if("deny_region") - var/region = text2num(params["region"]) - if(isnull(region)) - return - req_access -= (get_region_accesses(region) & ui.user.get_access()) - update_icon() - //Floorbot assemblies -/obj/item/toolbox_tiles +/obj/item/bot_assembly/toolbox_tiles desc = "Это ящик для инструментов, из которого торчат плитки пола." name = "tiles and toolbox" icon = 'icons/obj/aibots.dmi' @@ -395,7 +313,7 @@ var/toolbox = /obj/item/storage/toolbox/mechanical var/toolbox_color = "" //Blank for blue, r for red, y for yellow, etc. -/obj/item/toolbox_tiles/sensor +/obj/item/bot_assembly/toolbox_tiles/sensor desc = "Это ящик для инструментов, из которого торчат плитки пола. К нему прикреплён датчик движения." name = "tiles, toolbox and sensor arrangement" icon_state = "toolbox_tiles_sensor" @@ -423,7 +341,7 @@ hide_from_all_viewers() - var/obj/item/toolbox_tiles/assembly = new(drop_location()) + var/obj/item/bot_assembly/toolbox_tiles/assembly = new(drop_location()) assembly.toolbox = type switch(assembly.toolbox) if(/obj/item/storage/toolbox/mechanical/old) @@ -450,10 +368,10 @@ balloon_alert(user, "ящик укреплён") qdel(src) -/obj/item/toolbox_tiles/update_icon_state() +/obj/item/bot_assembly/toolbox_tiles/update_icon_state() icon_state = "[toolbox_color]toolbox_tiles" -/obj/item/toolbox_tiles/attackby(obj/item/I, mob/user, params) +/obj/item/bot_assembly/toolbox_tiles/attackby(obj/item/I, mob/user, params) if(user.a_intent == INTENT_HARM) return ..() @@ -476,7 +394,7 @@ if(!user.drop_transfer_item_to_loc(I, src)) return ..() - var/obj/item/toolbox_tiles/sensor/assembly = new(drop_location()) + var/obj/item/bot_assembly/toolbox_tiles/sensor/assembly = new(drop_location()) assembly.created_name = created_name assembly.toolbox_color = toolbox_color assembly.update_icon(UPDATE_ICON_STATE) @@ -492,51 +410,10 @@ qdel(src) return ATTACK_CHAIN_BLOCKED_ALL -/obj/item/toolbox_tiles/ui_interact(mob/user, datum/tgui/ui) - ui = SStgui.try_update_ui(user, src, ui) - if(!ui) - ui = new(user, src, "Bots", name) - ui.open() - -/obj/item/toolbox_tiles/ui_data(mob/user) - var/list/data = list() - var/list/user_accesses = user.get_access() - - data["accesses"] = req_access - data["regions"] = length(user_accesses) ? get_accesslist_static_data(REGION_GENERAL, REGION_COMMAND, user_accesses) : null - return data - -/obj/item/toolbox_tiles/ui_act(action, list/params, datum/tgui/ui) - if(..()) - return - - switch(action) - if("clear_all") - req_access = list() - if("grant_all") - req_access = ui.user.get_access() - if("set") - var/access = text2num(params["access"]) - if(!(access in req_access)) - req_access += access - else - req_access -= access - if("grant_region") - var/region = text2num(params["region"]) - if(isnull(region)) - return - req_access |= (get_region_accesses(region) & ui.user.get_access()) - if("deny_region") - var/region = text2num(params["region"]) - if(isnull(region)) - return - req_access -= (get_region_accesses(region) & ui.user.get_access()) - update_icon() - -/obj/item/toolbox_tiles/sensor/update_icon_state() +/obj/item/bot_assembly/toolbox_tiles/sensor/update_icon_state() icon_state = "[toolbox_color]toolbox_tiles_sensor" -/obj/item/toolbox_tiles/sensor/attackby(obj/item/I, mob/user, params) +/obj/item/bot_assembly/toolbox_tiles/sensor/attackby(obj/item/I, mob/user, params) if(user.a_intent == INTENT_HARM) return ..() @@ -594,7 +471,7 @@ hide_from_all_viewers() - var/obj/item/firstaid_arm_assembly/assembly = new(drop_location(), med_bot_skin) + var/obj/item/bot_assembly/firstaid_arm_assembly/assembly = new(drop_location(), med_bot_skin) assembly.req_access = req_access assembly.syndicate_aligned = syndicate_aligned assembly.treatment_oxy = treatment_oxy @@ -614,7 +491,7 @@ qdel(I) qdel(src) -/obj/item/firstaid_arm_assembly +/obj/item/bot_assembly/firstaid_arm_assembly name = "incomplete medibot assembly." desc = "Аптечка первой помощи с прикрепленной роботизированной рукой." icon = 'icons/obj/aibots.dmi' @@ -631,25 +508,25 @@ var/treatment_virus = "spaceacillin" var/robot_arm = /obj/item/robot_parts/l_arm -/obj/item/firstaid_arm_assembly/Initialize(mapload, new_skin) +/obj/item/bot_assembly/firstaid_arm_assembly/Initialize(mapload, new_skin) . = ..() if(new_skin) skin = new_skin update_icon(UPDATE_OVERLAYS) -/obj/item/firstaid_arm_assembly/update_overlays() +/obj/item/bot_assembly/firstaid_arm_assembly/update_overlays() . = ..() if(skin) . += image('icons/obj/aibots.dmi', "kit_skin_[skin]") if(build_step > 0) . += image('icons/obj/aibots.dmi', "na_scanner") -/obj/item/firstaid_arm_assembly/update_name(updates = ALL) +/obj/item/bot_assembly/firstaid_arm_assembly/update_name(updates = ALL) . = ..() if(build_step == 1) name = "First aid/robot arm/health analyzer assembly" -/obj/item/firstaid_arm_assembly/attackby(obj/item/I, mob/user, params) +/obj/item/bot_assembly/firstaid_arm_assembly/attackby(obj/item/I, mob/user, params) if(user.a_intent == INTENT_HARM) return ..() @@ -718,49 +595,8 @@ return ..() -/obj/item/firstaid_arm_assembly/ui_interact(mob/user, datum/tgui/ui) - ui = SStgui.try_update_ui(user, src, ui) - if(!ui) - ui = new(user, src, "Bots", name) - ui.open() - -/obj/item/firstaid_arm_assembly/ui_data(mob/user) - var/list/data = list() - var/list/user_accesses = user.get_access() - - data["accesses"] = req_access - data["regions"] = length(user_accesses) ? get_accesslist_static_data(REGION_GENERAL, REGION_COMMAND, user_accesses) : null - return data - -/obj/item/firstaid_arm_assembly/ui_act(action, list/params, datum/tgui/ui) - if(..()) - return - - switch(action) - if("clear_all") - req_access = list() - if("grant_all") - req_access = ui.user.get_access() - if("set") - var/access = text2num(params["access"]) - if(!(access in req_access)) - req_access += access - else - req_access -= access - if("grant_region") - var/region = text2num(params["region"]) - if(isnull(region)) - return - req_access |= (get_region_accesses(region) & ui.user.get_access()) - if("deny_region") - var/region = text2num(params["region"]) - if(isnull(region)) - return - req_access -= (get_region_accesses(region) & ui.user.get_access()) - update_icon() - //Secbot Assembly -/obj/item/secbot_assembly +/obj/item/bot_assembly/secbot_assembly name = "incomplete securitron assembly" desc = "Замудрённая конструкция, состоящая из датчика движения, шлема и сигнального устройства." icon = 'icons/obj/aibots.dmi' @@ -771,7 +607,7 @@ var/build_step = 0 var/robot_arm = /obj/item/robot_parts/l_arm -/obj/item/secbot_assembly/update_name(updates = ALL) +/obj/item/bot_assembly/secbot_assembly/update_name(updates = ALL) . = ..() switch(build_step) if(2) @@ -779,7 +615,7 @@ if(3) name = "helmet/signaler/prox sensor/robot arm assembly" -/obj/item/secbot_assembly/update_overlays() +/obj/item/bot_assembly/secbot_assembly/update_overlays() . = ..() switch(build_step) if(1) @@ -803,7 +639,7 @@ . |= ATTACK_CHAIN_BLOCKED_ALL - var/obj/item/secbot_assembly/assembly = new(drop_location()) + var/obj/item/bot_assembly/secbot_assembly/assembly = new(drop_location()) I.transfer_fingerprints_to(assembly) transfer_fingerprints_to(assembly) assembly.add_fingerprint(user) @@ -814,7 +650,7 @@ qdel(I) qdel(src) -/obj/item/secbot_assembly/attackby(obj/item/I, mob/user, params) +/obj/item/bot_assembly/secbot_assembly/attackby(obj/item/I, mob/user, params) if(user.a_intent == INTENT_HARM) return ..() @@ -888,7 +724,7 @@ return ..() -/obj/item/secbot_assembly/screwdriver_act(mob/living/user, obj/item/I) +/obj/item/bot_assembly/secbot_assembly/screwdriver_act(mob/living/user, obj/item/I) if(build_step != 0 && build_step != 2 && build_step != 3) return FALSE . = TRUE @@ -923,7 +759,7 @@ balloon_alert(user, "деталь отсоединена") update_appearance(UPDATE_NAME|UPDATE_OVERLAYS) -/obj/item/secbot_assembly/wrench_act(mob/living/user, obj/item/I) +/obj/item/bot_assembly/secbot_assembly/wrench_act(mob/living/user, obj/item/I) if(build_step != 3) return FALSE . = TRUE @@ -931,7 +767,7 @@ return . to_chat(user, span_notice("Вы создали дополнительные слоты для вооружения в заготовке охранного робота.")) balloon_alert(user, "корпус модифицирован") - var/obj/item/griefsky_assembly/destroyer_of_the_worlds = new(drop_location()) + var/obj/item/bot_assembly/griefsky_assembly/destroyer_of_the_worlds = new(drop_location()) transfer_fingerprints_to(destroyer_of_the_worlds) destroyer_of_the_worlds.add_fingerprint(user) if(loc == user) @@ -939,7 +775,7 @@ user.put_in_hands(destroyer_of_the_worlds) qdel(src) -/obj/item/secbot_assembly/welder_act(mob/living/user, obj/item/I) +/obj/item/bot_assembly/secbot_assembly/welder_act(mob/living/user, obj/item/I) if(build_step != 0 && build_step != 1) return FALSE . = TRUE @@ -957,50 +793,9 @@ balloon_alert(user, "корпус модифицирован") update_appearance(UPDATE_OVERLAYS) -/obj/item/secbot_assembly/ui_interact(mob/user, datum/tgui/ui) - ui = SStgui.try_update_ui(user, src, ui) - if(!ui) - ui = new(user, src, "Bots", name) - ui.open() - -/obj/item/secbot_assembly/ui_data(mob/user) - var/list/data = list() - var/list/user_accesses = user.get_access() - - data["accesses"] = req_access - data["regions"] = length(user_accesses) ? get_accesslist_static_data(REGION_GENERAL, REGION_COMMAND, user_accesses) : null - return data - -/obj/item/secbot_assembly/ui_act(action, list/params, datum/tgui/ui) - if(..()) - return - - switch(action) - if("clear_all") - req_access = list() - if("grant_all") - req_access = ui.user.get_access() - if("set") - var/access = text2num(params["access"]) - if(!(access in req_access)) - req_access += access - else - req_access -= access - if("grant_region") - var/region = text2num(params["region"]) - if(isnull(region)) - return - req_access |= (get_region_accesses(region) & ui.user.get_access()) - if("deny_region") - var/region = text2num(params["region"]) - if(isnull(region)) - return - req_access -= (get_region_accesses(region) & ui.user.get_access()) - update_icon() - //General Griefsky -/obj/item/griefsky_assembly +/obj/item/bot_assembly/griefsky_assembly name = "General Griefsky assembly" desc = "Причудливая конструкция. Выглядит мощно." icon = 'icons/obj/aibots.dmi' @@ -1010,11 +805,11 @@ var/build_step = 0 var/toy_step = 0 -/obj/item/griefsky_assembly/update_name(updates = ALL) +/obj/item/bot_assembly/griefsky_assembly/update_name(updates = ALL) . = ..() name = toy_step > 0 ? "Genewul Giftskee assembly" : "General Griefsky assembly" -/obj/item/griefsky_assembly/attackby(obj/item/I, mob/user, params) +/obj/item/bot_assembly/griefsky_assembly/attackby(obj/item/I, mob/user, params) if(user.a_intent == INTENT_HARM) return ..() @@ -1104,7 +899,7 @@ qdel(I) return ATTACK_CHAIN_BLOCKED_ALL -/obj/item/griefsky_assembly/screwdriver_act(mob/living/user, obj/item/I) +/obj/item/bot_assembly/griefsky_assembly/screwdriver_act(mob/living/user, obj/item/I) if(build_step == 0 && toy_step == 0) return FALSE . = TRUE @@ -1125,46 +920,6 @@ sword.add_fingerprint(user) update_appearance(UPDATE_NAME) -/obj/item/griefsky_assembly/ui_interact(mob/user, datum/tgui/ui) - ui = SStgui.try_update_ui(user, src, ui) - if(!ui) - ui = new(user, src, "Bots", name) - ui.open() - -/obj/item/griefsky_assembly/ui_data(mob/user) - var/list/data = list() - var/list/user_accesses = user.get_access() - - data["accesses"] = req_access - data["regions"] = length(user_accesses) ? get_accesslist_static_data(REGION_GENERAL, REGION_COMMAND, user_accesses) : null - return data - -/obj/item/griefsky_assembly/ui_act(action, list/params, datum/tgui/ui) - if(..()) - return - - switch(action) - if("clear_all") - req_access = list() - if("grant_all") - req_access = ui.user.get_access() - if("set") - var/access = text2num(params["access"]) - if(!(access in req_access)) - req_access += access - else - req_access -= access - if("grant_region") - var/region = text2num(params["region"]) - if(isnull(region)) - return - req_access |= (get_region_accesses(region) & ui.user.get_access()) - if("deny_region") - var/region = text2num(params["region"]) - if(isnull(region)) - return - req_access -= (get_region_accesses(region) & ui.user.get_access()) - update_icon() /obj/item/storage/box/clown/attackby(obj/item/I, mob/user, params) if(user.a_intent == INTENT_HARM || (!istype(I, /obj/item/robot_parts/l_arm) && !istype(I, /obj/item/robot_parts/r_arm))) @@ -1182,7 +937,7 @@ hide_from_all_viewers() - var/obj/item/honkbot_arm_assembly/assembly = new(drop_location()) + var/obj/item/bot_assembly/honkbot_arm_assembly/assembly = new(drop_location()) assembly.robot_arm = I.type transfer_fingerprints_to(assembly) I.transfer_fingerprints_to(assembly) @@ -1195,7 +950,7 @@ qdel(I) qdel(src) -/obj/item/honkbot_arm_assembly +/obj/item/bot_assembly/honkbot_arm_assembly name = "incomplete honkbot assembly" desc = "Клоунская коробка с прикрепленной роботизированной рукой." icon = 'icons/obj/aibots.dmi' @@ -1205,7 +960,7 @@ var/created_name = "Honkbot" //To preserve the name if it's a unique medbot I guess var/robot_arm = /obj/item/robot_parts/l_arm -/obj/item/honkbot_arm_assembly/attackby(obj/item/I, mob/user, params) +/obj/item/bot_assembly/honkbot_arm_assembly/attackby(obj/item/I, mob/user, params) if(user.a_intent == INTENT_HARM) return ..() @@ -1270,31 +1025,33 @@ return ..() -/obj/item/honkbot_arm_assembly/update_icon_state() +/obj/item/bot_assembly/honkbot_arm_assembly/update_icon_state() icon_state = build_step == 1 ? "honkbot_proxy" : "honkbot_arm" -/obj/item/honkbot_arm_assembly/update_desc(updates = ALL) +/obj/item/bot_assembly/honkbot_arm_assembly/update_desc(updates = ALL) . = ..() if(build_step == 2) desc = "Клоунская коробка с прикреплённой роботизированной рукой и велосипедным гудком. Ему не хватает лишь тромбона." return . desc = initial(desc) -/obj/item/honkbot_arm_assembly/ui_interact(mob/user, datum/tgui/ui) - ui = SStgui.try_update_ui(user, src, ui) - if(!ui) - ui = new(user, src, "Bots", name) - ui.open() +/obj/item/bot_assembly + req_access = list() -/obj/item/honkbot_arm_assembly/ui_data(mob/user) - var/list/data = list() - var/list/user_accesses = user.get_access() +/obj/item/bot_assembly/ui_interact(mob/user, datum/tgui/ui) + ui = SStgui.try_update_ui(user, src, ui) + if(!ui) + ui = new(user, src, "Bots", name) + ui.open() - data["accesses"] = req_access - data["regions"] = length(user_accesses) ? get_accesslist_static_data(REGION_GENERAL, REGION_COMMAND, user_accesses) : null - return data +/obj/item/bot_assembly/ui_data(mob/user) + var/list/data = list() + var/list/user_accesses = user.get_access() + data["accesses"] = req_access + data["regions"] = length(user_accesses) ? get_accesslist_static_data(REGION_GENERAL, REGION_COMMAND, user_accesses) : null + return data -/obj/item/honkbot_arm_assembly/ui_act(action, list/params, datum/tgui/ui) +/obj/item/bot_assembly/ui_act(action, list/params, datum/tgui/ui) if(..()) return diff --git a/code/modules/mob/living/simple_animal/bot/ed209bot.dm b/code/modules/mob/living/simple_animal/bot/ed209bot.dm index e592c01f29cd..0026eeb1f9c0 100644 --- a/code/modules/mob/living/simple_animal/bot/ed209bot.dm +++ b/code/modules/mob/living/simple_animal/bot/ed209bot.dm @@ -406,7 +406,7 @@ visible_message(span_userdanger("[DECLENT_RU_CAP(src, NOMINATIVE)] разлетается на части!")) var/turf/Tsec = get_turf(src) - var/obj/item/ed209_assembly/Sa = new /obj/item/ed209_assembly(Tsec) + var/obj/item/bot_assembly/ed209_assembly/Sa = new /obj/item/bot_assembly/ed209_assembly(Tsec) Sa.build_step = 1 Sa.add_overlay(image('icons/obj/aibots.dmi', "hs_hole")) Sa.created_name = name diff --git a/code/modules/mob/living/simple_animal/bot/griefsky.dm b/code/modules/mob/living/simple_animal/bot/griefsky.dm index c26bcc74dd52..36ea3e97beb3 100644 --- a/code/modules/mob/living/simple_animal/bot/griefsky.dm +++ b/code/modules/mob/living/simple_animal/bot/griefsky.dm @@ -261,7 +261,7 @@ visible_message(span_boldannounceic("[DECLENT_RU_CAP(src, NOMINATIVE)] разлетается на части!")) var/turf/Tsec = get_turf(src) new /obj/item/assembly/prox_sensor(Tsec) - var/obj/item/secbot_assembly/Sa = new /obj/item/secbot_assembly(Tsec) + var/obj/item/bot_assembly/secbot_assembly/Sa = new /obj/item/bot_assembly/secbot_assembly(Tsec) Sa.build_step = 1 Sa.add_overlay("hs_hole") Sa.created_name = name diff --git a/code/modules/mob/living/simple_animal/bot/secbot.dm b/code/modules/mob/living/simple_animal/bot/secbot.dm index 53c2382a44cb..3fee884f46cd 100644 --- a/code/modules/mob/living/simple_animal/bot/secbot.dm +++ b/code/modules/mob/living/simple_animal/bot/secbot.dm @@ -535,7 +535,7 @@ GLOB.move_manager.stop_looping(src) visible_message(span_userdanger("[DECLENT_RU_CAP(src, NOMINATIVE)] разлетается на части!")) var/turf/Tsec = get_turf(src) - var/obj/item/secbot_assembly/Sa = new /obj/item/secbot_assembly(Tsec) + var/obj/item/bot_assembly/secbot_assembly/Sa = new /obj/item/bot_assembly/secbot_assembly(Tsec) Sa.build_step = 1 Sa.add_overlay("hs_hole") Sa.created_name = name diff --git a/code/modules/reagents/reagent_containers/glass_containers.dm b/code/modules/reagents/reagent_containers/glass_containers.dm index 824b7855e633..25366cc46b55 100644 --- a/code/modules/reagents/reagent_containers/glass_containers.dm +++ b/code/modules/reagents/reagent_containers/glass_containers.dm @@ -454,7 +454,7 @@ add_fingerprint(user) balloon_alert(user, "прикреплено") to_chat(user, span_notice("Вы прикрепили [I.declent_ru(ACCUSATIVE)] к [declent_ru(DATIVE)].")) - var/obj/item/bucket_sensor/bucket_sensor = new(drop_location()) + var/obj/item/bot_assembly/bucket_sensor/bucket_sensor = new(drop_location()) transfer_fingerprints_to(bucket_sensor) I.transfer_fingerprints_to(bucket_sensor) bucket_sensor.add_fingerprint(user) diff --git a/tgui/packages/tgui/interfaces/Bots.tsx b/tgui/packages/tgui/interfaces/Bots.tsx index aa56bf0b8327..1d68cfe96c07 100644 --- a/tgui/packages/tgui/interfaces/Bots.tsx +++ b/tgui/packages/tgui/interfaces/Bots.tsx @@ -1,10 +1,14 @@ import { useBackend } from '../backend'; import { Window } from '../layouts'; -import { AccessList } from './common/AccessList'; -import { MainData } from './Mecha/data'; +import { Access, AccessList } from './common/AccessList'; + +export type BotsData = { + accesses: number[]; + regions: Access[]; +} export const Bots = () => { - const { act, data } = useBackend(); + const { act, data } = useBackend(); const { accesses, regions, From 0df19dfe80302824cb85a1a7be60be005894253e Mon Sep 17 00:00:00 2001 From: Dictor Date: Mon, 9 Feb 2026 05:05:43 +1000 Subject: [PATCH 3/3] =?UTF-8?q?=D0=9F=D1=80=D0=BE=D0=B2=D0=B5=D1=80=D0=BA?= =?UTF-8?q?=D0=B0=20=D0=BD=D0=B0=20null?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- code/modules/mob/living/simple_animal/bot/construction.dm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/modules/mob/living/simple_animal/bot/construction.dm b/code/modules/mob/living/simple_animal/bot/construction.dm index 8d3fc6c477be..170a3c0eb0e4 100644 --- a/code/modules/mob/living/simple_animal/bot/construction.dm +++ b/code/modules/mob/living/simple_animal/bot/construction.dm @@ -1062,6 +1062,8 @@ req_access = ui.user.get_access() if("set") var/access = text2num(params["access"]) + if(isnull(access)) + return if(!(access in req_access)) req_access += access else