diff --git a/code/__defines/belly_modes_vr.dm b/code/__defines/belly_modes_vr.dm index bf64819cd4..810f0da00b 100644 --- a/code/__defines/belly_modes_vr.dm +++ b/code/__defines/belly_modes_vr.dm @@ -18,6 +18,7 @@ #define DM_FLAG_THICKBELLY 0x8 #define DM_FLAG_AFFECTWORN 0x10 #define DM_FLAG_JAMSENSORS 0x20 +#define DM_FLAG_FORCEPSAY 0x40 //Item related modes #define IM_HOLD "Hold" diff --git a/code/__defines/exosuit_fab.dm b/code/__defines/exosuit_fab.dm index dce03c9301..ccb05b9374 100644 --- a/code/__defines/exosuit_fab.dm +++ b/code/__defines/exosuit_fab.dm @@ -8,7 +8,8 @@ #define BORG_MODULE_MEDICAL (1<<3) /// Module is compatible with Engineering Cyborg models #define BORG_MODULE_ENGINEERING (1<<4) - +/// Module is compatible with Science Cyborg models +#define BORG_MODULE_SCIENCE (1<<5) /// Module is compatible with Ripley Exosuit models #define EXOSUIT_MODULE_RIPLEY (1<<0) /// Module is compatible with Odyseeus Exosuit models diff --git a/code/_helpers/global_lists.dm b/code/_helpers/global_lists.dm index bf65dedded..9825374b02 100644 --- a/code/_helpers/global_lists.dm +++ b/code/_helpers/global_lists.dm @@ -52,7 +52,7 @@ GLOBAL_LIST_INIT(custom_species_bases, new) // Species that can be used for a Cu var/datum/category_collection/underwear/global_underwear = new() //Backpacks -var/global/list/backbaglist = list("Nothing", "Backpack", "Satchel", "Satchel Alt", "Messenger Bag", "Sports Bag") +var/global/list/backbaglist = list("Nothing", "Backpack", "Satchel", "Satchel Alt", "Messenger Bag", "Sports Bag", "Strapless Satchel") //VOREStation edit var/global/list/pdachoicelist = list("Default", "Slim", "Old", "Rugged", "Holographic", "Wrist-Bound", "Slider") var/global/list/exclude_jobs = list(/datum/job/ai,/datum/job/cyborg) diff --git a/code/_helpers/unsorted.dm b/code/_helpers/unsorted.dm index 17d953fcff..9d7e9495ab 100644 --- a/code/_helpers/unsorted.dm +++ b/code/_helpers/unsorted.dm @@ -453,6 +453,11 @@ Turf and target are seperate in case you want to teleport some distance from a t moblist.Add(M) for(var/mob/living/simple_mob/M in sortmob) moblist.Add(M) + //VOREStation Addition Start + for(var/mob/living/dominated_brain/M in sortmob) + moblist.Add(M) + //VOREStation Addition End + // for(var/mob/living/silicon/hivebot/M in sortmob) // mob_list.Add(M) // for(var/mob/living/silicon/hive_mainframe/M in sortmob) diff --git a/code/datums/components/crafting/recipes/weapons.dm b/code/datums/components/crafting/recipes/weapons.dm index b8fe974e05..bcb00d0d07 100644 --- a/code/datums/components/crafting/recipes/weapons.dm +++ b/code/datums/components/crafting/recipes/weapons.dm @@ -56,3 +56,14 @@ time = 120 category = CAT_WEAPONRY subcategory = CAT_WEAPON + +/datum/crafting_recipe/scopedrifle + name = "Bolt scope to bolt-action (cannot be removed)" + result = /obj/item/weapon/gun/projectile/shotgun/pump/rifle/scoped + reqs = list( + /obj/item/device/binoculars/scope = 1, + /obj/item/weapon/gun/projectile/shotgun/pump/rifle = 1 + ) + time = 180 + category = CAT_WEAPONRY + subcategory = CAT_WEAPON \ No newline at end of file diff --git a/code/datums/outfits/outfit.dm b/code/datums/outfits/outfit.dm index 4292556300..e6498926f5 100644 --- a/code/datums/outfits/outfit.dm +++ b/code/datums/outfits/outfit.dm @@ -57,6 +57,7 @@ var/list/outfits_decls_by_type_ var/satchel_two = /obj/item/weapon/storage/backpack/satchel var/messenger_bag = /obj/item/weapon/storage/backpack/messenger var/sports_bag = /obj/item/weapon/storage/backpack/sport + var/satchel_three = /obj/item/weapon/storage/backpack/satchel/strapless var/flags // Specific flags @@ -78,6 +79,7 @@ var/list/outfits_decls_by_type_ if(4) back = satchel_two if(5) back = messenger_bag if(6) back = sports_bag + if(7) back = satchel_three else back = null /decl/hierarchy/outfit/proc/post_equip(mob/living/carbon/human/H) @@ -183,4 +185,4 @@ var/list/outfits_decls_by_type_ return pda /decl/hierarchy/outfit/dd_SortValue() - return name \ No newline at end of file + return name diff --git a/code/datums/outfits/outfit_vr.dm b/code/datums/outfits/outfit_vr.dm index 661cb3a2be..9f0b3c1380 100644 --- a/code/datums/outfits/outfit_vr.dm +++ b/code/datums/outfits/outfit_vr.dm @@ -134,7 +134,7 @@ Keep outfits simple. Spawn with basic uniforms and minimal gear. Gear instead go uniform_accessories = list(/obj/item/clothing/accessory/storage/webbing/pilot1 = 1) id_slot = slot_wear_id pda_slot = slot_belt - pda_type = /obj/item/device/pda + pda_type = /obj/item/device/pda/pilot id_type = /obj/item/weapon/card/id/civilian/pilot id_pda_assignment = "Pilot" flags = OUTFIT_HAS_BACKPACK|OUTFIT_COMPREHENSIVE_SURVIVAL diff --git a/code/datums/roundstats/roundstats.dm b/code/datums/roundstats/roundstats.dm index c1453b18af..6a4c3b0993 100644 --- a/code/datums/roundstats/roundstats.dm +++ b/code/datums/roundstats/roundstats.dm @@ -21,6 +21,10 @@ GLOBAL_VAR_INIT(items_sold_shift_roundstat, 0) GLOBAL_VAR_INIT(disposals_flush_shift_roundstat, 0) GLOBAL_VAR_INIT(rocks_drilled_roundstat, 0) GLOBAL_VAR_INIT(mech_destroyed_roundstat, 0) +GLOBAL_VAR_INIT(prey_eaten_roundstat, 0) //VOREStation Edit - Obviously +GLOBAL_VAR_INIT(prey_absorbed_roundstat, 0) //VOREStation Edit - Obviously +GLOBAL_VAR_INIT(prey_digested_roundstat, 0) //VOREStation Edit - Obviously +GLOBAL_VAR_INIT(items_digested_roundstat, 0) //VOREStation Edit - Obviously /hook/roundend/proc/RoundTrivia()//bazinga var/list/valid_stats_list = list() //This is to be populated with the good shit @@ -50,6 +54,17 @@ GLOBAL_VAR_INIT(mech_destroyed_roundstat, 0) else if(GLOB.disposals_flush_shift_roundstat > 40) valid_stats_list.Add("The disposal system flushed a whole [GLOB.disposals_flush_shift_roundstat] times for this shift. We should really invest in waste treatement.") + //VOREStation Add Start - Vore stats lets gooooo + if(GLOB.prey_eaten_roundstat > 0) + valid_stats_list.Add("A total of [GLOB.prey_eaten_roundstat] individuals were eaten today!") + if(GLOB.prey_digested_roundstat > 0) + valid_stats_list.Add("A total of [GLOB.prey_digested_roundstat] individuals were digested today!") + if(GLOB.prey_absorbed_roundstat > 0) + valid_stats_list.Add("A total of [GLOB.prey_absorbed_roundstat] individuals were absorbed today!") + if(GLOB.items_digested_roundstat > 0) + valid_stats_list.Add("A total of [GLOB.items_digested_roundstat] items were digested today!") + //VOREStation Add End + if(LAZYLEN(valid_stats_list)) to_world("Shift trivia!") diff --git a/code/datums/supplypacks/hospitality_vr.dm b/code/datums/supplypacks/hospitality_vr.dm index 49d4091e50..ff198ab1ec 100644 --- a/code/datums/supplypacks/hospitality_vr.dm +++ b/code/datums/supplypacks/hospitality_vr.dm @@ -29,7 +29,7 @@ /obj/item/weapon/reagent_containers/food/snacks/berrymuffin, /obj/item/weapon/reagent_containers/food/snacks/bunbun, /obj/item/weapon/reagent_containers/food/snacks/cherrypie, - /obj/item/weapon/reagent_containers/food/snacks/cookiesnack, + /obj/item/weapon/reagent_containers/food/snacks/cookie, /obj/item/weapon/reagent_containers/food/snacks/croissant, /obj/item/weapon/reagent_containers/food/snacks/donut/normal, /obj/item/weapon/reagent_containers/food/snacks/donut/jelly, diff --git a/code/datums/supplypacks/munitions.dm b/code/datums/supplypacks/munitions.dm index 30ccee5746..4dfe256d75 100644 --- a/code/datums/supplypacks/munitions.dm +++ b/code/datums/supplypacks/munitions.dm @@ -129,6 +129,17 @@ containername = "Ballistic weapon crate" access = access_armory +/datum/supply_pack/munitions/bolt_rifles_lethal + name = "Weapons - Bolt-Action Rifles" + contains = list( + /obj/item/weapon/gun/projectile/shotgun/pump/rifle = 2, + /obj/item/ammo_magazine/ammo_box/b762 = 4, + ) + cost = 60 + containertype = /obj/structure/closet/crate/secure/weapon + containername = "Ballistic Weapons crate" + access = access_armory + /datum/supply_pack/munitions/bolt_rifles_competitive name = "Weapons - Competitive shooting rifles" contains = list( diff --git a/code/game/jobs/job/assistant_vr.dm b/code/game/jobs/job/assistant_vr.dm index 48f240d0ca..7bfdadca50 100644 --- a/code/game/jobs/job/assistant_vr.dm +++ b/code/game/jobs/job/assistant_vr.dm @@ -22,7 +22,8 @@ "Security Cadet" = /datum/alt_title/intern_sec, "Jr. Cargo Tech" = /datum/alt_title/intern_crg, "Jr. Explorer" = /datum/alt_title/intern_exp, - "Server" = /datum/alt_title/server) + "Server" = /datum/alt_title/server, + "Assistant" = /datum/alt_title/assistant) job_description = "An Intern does whatever is requested of them, often doing so in process of learning \ another job. Though they are part of the crew, they have no real authority." timeoff_factor = 0 // Interns, noh @@ -68,6 +69,11 @@ title_blurb = "A Server helps out kitchen and diner staff with various tasks, primarily food delivery. A Server has no real authority." title_outfit = /decl/hierarchy/outfit/job/service/server +/datum/alt_title/assistant + title = "Assistant" + title_blurb = "An assistant helps out wherever they might be needed. They have no authority, but can volunteer to help if help is needed." + title_outfit = /decl/hierarchy/outfit/job/service/server + /datum/job/intern/New() ..() if(config) diff --git a/code/game/jobs/job/civilian_vr.dm b/code/game/jobs/job/civilian_vr.dm index c26903f1dc..0a400a1a28 100644 --- a/code/game/jobs/job/civilian_vr.dm +++ b/code/game/jobs/job/civilian_vr.dm @@ -213,8 +213,8 @@ economic_modifier = 5 minimal_player_age = 3 pto_type = PTO_CIVILIAN - access = list(access_pilot) - minimal_access = list(access_pilot) + access = list(access_eva, access_maint_tunnels, access_external_airlocks, access_pilot) + minimal_access = list(access_eva, access_maint_tunnels, access_external_airlocks, access_pilot) outfit_type = /decl/hierarchy/outfit/job/pilot job_description = "A Pilot flies the various shuttles in the Virgo-Erigone System." alt_titles = list("Co-Pilot" = /datum/alt_title/co_pilot, "Navigator" = /datum/alt_title/navigator, "Helmsman" = /datum/alt_title/helmsman) @@ -293,4 +293,4 @@ /datum/alt_title/artist title = "Artist" - title_blurb = "An Artist's calling is to create beautiful arts! Whatever form may they take, create and have people astonished with your creativity." \ No newline at end of file + title_blurb = "An Artist's calling is to create beautiful arts! Whatever form may they take, create and have people astonished with your creativity." diff --git a/code/game/machinery/cryopod.dm b/code/game/machinery/cryopod.dm index 6663a84da6..7a6954e610 100644 --- a/code/game/machinery/cryopod.dm +++ b/code/game/machinery/cryopod.dm @@ -528,9 +528,18 @@ control_computer.frozen_crew += "[to_despawn.real_name], [to_despawn.mind.role_alt_title] - [stationtime2text()]" control_computer._admin_logs += "[key_name(to_despawn)] ([to_despawn.mind.role_alt_title]) at [stationtime2text()]" log_and_message_admins("[key_name(to_despawn)] ([to_despawn.mind.role_alt_title]) entered cryostorage.") + + //VOREStation Edit Start + var/depart_announce = TRUE - announce.autosay("[to_despawn.real_name], [to_despawn.mind.role_alt_title], [on_store_message]", "[on_store_name]", announce_channel, using_map.get_map_levels(z, TRUE, om_range = DEFAULT_OVERMAP_RANGE)) - visible_message("\The [initial(name)] [on_store_visible_message_1] [to_despawn.real_name] [on_store_visible_message_2]", 3) + if(istype(to_despawn, /mob/living/dominated_brain)) + depart_announce = FALSE + + if(depart_announce) + announce.autosay("[to_despawn.real_name], [to_despawn.mind.role_alt_title], [on_store_message]", "[on_store_name]", announce_channel, using_map.get_map_levels(z, TRUE, om_range = DEFAULT_OVERMAP_RANGE)) + visible_message("\The [initial(name)] [on_store_visible_message_1] [to_despawn.real_name] [on_store_visible_message_2]", 3) + + //VOREStation Edit End //VOREStation Edit begin: Dont delete mobs-in-mobs if(to_despawn.client && to_despawn.stat<2) diff --git a/code/game/mecha/mech_fabricator.dm b/code/game/mecha/mech_fabricator.dm index 4e92255d05..7e4bc6ed87 100644 --- a/code/game/mecha/mech_fabricator.dm +++ b/code/game/mecha/mech_fabricator.dm @@ -31,7 +31,7 @@ var/time_coeff = 1 /// Coefficient for the efficiency of material usage in item building. Based on the installed parts. var/component_coeff = 1 - + var/loading_icon_state = "mechfab-idle" var/list/materials = list( @@ -148,6 +148,9 @@ sub_category += "Medical" if(module_types & BORG_MODULE_ENGINEERING) sub_category += "Engineering" + if(module_types & BORG_MODULE_SCIENCE) + sub_category += "Science" + else sub_category += "All Cyborgs" // Else check if this design builds a piece of exosuit equipment. @@ -309,7 +312,7 @@ atom_say("Obstruction cleared. \The [stored_part] is complete.") stored_part.forceMove(exit) stored_part = null - + // If there's nothing being built, try to build something if(!being_built) // If we're not processing the queue anymore or there's nothing to build, end processing. @@ -703,7 +706,7 @@ // Reduce our amount stored materials[matstring] -= ejected * S.perunit - + // Recurse if we have enough left for more sheets if(recursive && materials[matstring] >= S.perunit) eject_materials(matstring, -1) diff --git a/code/game/objects/items/devices/binoculars.dm b/code/game/objects/items/devices/binoculars.dm index 1bb63fab38..90b7af0a60 100644 --- a/code/game/objects/items/devices/binoculars.dm +++ b/code/game/objects/items/devices/binoculars.dm @@ -18,4 +18,9 @@ name = "spyglass" desc = "It's a hand-held telescope, useful for star-gazing, peeping, and recon." icon_state = "spyglass" - slot_flags = SLOT_BELT \ No newline at end of file + slot_flags = SLOT_BELT + +/obj/item/device/binoculars/scope + name = "rifle scope" + desc = "It's a rifle scope. Would be better if it were actually attached to a rifle." + icon_state = "rifle_scope" \ No newline at end of file diff --git a/code/game/objects/items/gunbox.dm b/code/game/objects/items/gunbox.dm index 6089ad76b2..d97aa51ba0 100644 --- a/code/game/objects/items/gunbox.dm +++ b/code/game/objects/items/gunbox.dm @@ -1,15 +1,38 @@ +/* + * Sidearm Lethal + */ /obj/item/gunbox - name = "detective's gun box" - desc = "A secure box containing a Detective's sidearm." + name = "sidearm box" + desc = "A secure box containing a lethal sidearm." icon = 'icons/obj/storage.dmi' icon_state = "gunbox" w_class = ITEMSIZE_HUGE - /obj/item/gunbox/attack_self(mob/living/user) var/list/options = list() - options[".45 Pistol"] = list(/obj/item/weapon/gun/projectile/colt/detective, /obj/item/ammo_magazine/m45/rubber, /obj/item/ammo_magazine/m45/rubber) - options[".45 Revolver"] = list(/obj/item/weapon/gun/projectile/revolver/detective45, /obj/item/ammo_magazine/s45/rubber, /obj/item/ammo_magazine/s45/rubber) + options["M1911 (.45)"] = list(/obj/item/weapon/gun/projectile/colt/detective, /obj/item/ammo_magazine/m45/rubber, /obj/item/ammo_magazine/m45/rubber) + options["MT Mk58 (.45)"] = list(/obj/item/weapon/gun/projectile/sec, /obj/item/ammo_magazine/m45/rubber, /obj/item/ammo_magazine/m45/rubber) + options["MarsTech R1 (.45)"] = list(/obj/item/weapon/gun/projectile/revolver/detective45, /obj/item/ammo_magazine/s45/rubber, /obj/item/ammo_magazine/s45/rubber) + options["MarsTech P92X (9mm)"] = list(/obj/item/weapon/gun/projectile/p92x/rubber, /obj/item/ammo_magazine/m9mm/rubber, /obj/item/ammo_magazine/m9mm/rubber) var/choice = tgui_input_list(user,"Would you prefer a pistol or a revolver?", "Gun!", options) + if(src && choice) + var/list/things_to_spawn = options[choice] + for(var/new_type in things_to_spawn) // Spawn all the things, the gun and the ammo. + var/atom/movable/AM = new new_type(get_turf(src)) + if(istype(AM, /obj/item/weapon/gun)) + to_chat(user, "You have chosen \the [AM]. Say hello to your new friend.") + qdel(src) + +/* + * Sidearm Stun + */ +/obj/item/gunbox/stun + name = "non-lethal sidearm box" + desc = "A secure box containing a non-lethal sidearm." +/obj/item/gunbox/stun/attack_self(mob/living/user) + var/list/options = list() + options["Stun Revolver"] = list(/obj/item/weapon/gun/energy/stunrevolver/detective, /obj/item/weapon/cell/device/weapon, /obj/item/weapon/cell/device/weapon) + options["Taser"] = list(/obj/item/weapon/gun/energy/taser, /obj/item/weapon/cell/device/weapon, /obj/item/weapon/cell/device/weapon) + var/choice = tgui_input_list(user,"Please, select an option.", "Stun Gun!", options) if(src && choice) var/list/things_to_spawn = options[choice] for(var/new_type in things_to_spawn) // Spawn all the things, the gun and the ammo. diff --git a/code/game/objects/items/gunbox_vr.dm b/code/game/objects/items/gunbox_vr.dm index c0bfd4642f..2770745f39 100644 --- a/code/game/objects/items/gunbox_vr.dm +++ b/code/game/objects/items/gunbox_vr.dm @@ -1,18 +1,21 @@ -/obj/item/gunbox - name = "security sidearm box" - desc = "A secure box containing a security sidearm." +/* + * Shotgun Box + */ +/obj/item/gunbox/warden + name = "warden's shotgun case" + desc = "A secure guncase containing the warden's beloved shotgun." + icon = 'icons/obj/storage_vr.dmi' + icon_state = "gunboxw" -/obj/item/gunbox/attack_self(mob/living/user) +/obj/item/gunbox/warden/attack_self(mob/living/user) var/list/options = list() - options["M1911 (.45)"] = list(/obj/item/weapon/gun/projectile/colt/detective, /obj/item/ammo_magazine/m45/rubber, /obj/item/ammo_magazine/m45/rubber) - options["NT Mk58 (.45)"] = list(/obj/item/weapon/gun/projectile/sec, /obj/item/ammo_magazine/m45/rubber, /obj/item/ammo_magazine/m45/rubber) - options["SW 625 Revolver (.45)"] = list(/obj/item/weapon/gun/projectile/revolver/detective45, /obj/item/ammo_magazine/s45/rubber, /obj/item/ammo_magazine/s45/rubber) - options["P92X (9mm)"] = list(/obj/item/weapon/gun/projectile/p92x/sec, /obj/item/ammo_magazine/m9mm/rubber, /obj/item/ammo_magazine/m9mm/rubber) - var/choice = tgui_input_list(user,"Would you prefer a pistol or a revolver?", "Gun!", options) + options["Warden's combat shotgun"] = list(/obj/item/weapon/gun/projectile/shotgun/pump/combat/warden, /obj/item/ammo_magazine/ammo_box/b12g/beanbag) + options["Warden's compact shotgun"] = list(/obj/item/weapon/gun/projectile/shotgun/compact/warden, /obj/item/ammo_magazine/ammo_box/b12g/beanbag) + var/choice = tgui_input_list(user,"Choose your boomstick!", "Shotgun!", options) if(src && choice) var/list/things_to_spawn = options[choice] for(var/new_type in things_to_spawn) // Spawn all the things, the gun and the ammo. var/atom/movable/AM = new new_type(get_turf(src)) if(istype(AM, /obj/item/weapon/gun)) - to_chat(user, "You have chosen \the [AM]. Say hello to your new friend.") - qdel(src) \ No newline at end of file + to_chat(user, "You have chosen \the [AM]. Say hello to your new best friend.") + qdel(src) diff --git a/code/game/objects/items/robot/robot_upgrades.dm b/code/game/objects/items/robot/robot_upgrades.dm index ac71abf677..3938f3c17b 100644 --- a/code/game/objects/items/robot/robot_upgrades.dm +++ b/code/game/objects/items/robot/robot_upgrades.dm @@ -155,7 +155,7 @@ /obj/item/borg/upgrade/advhealth name = "advanced health analyzer module" - desc = "A carbon dioxide jetpack suitable for low-gravity operations." + desc = "An Advanced Health Analyzer, optimized for borg mounting." icon_state = "cyborg_upgrade3" item_state = "cyborg_upgrade" require_module = 1 @@ -214,4 +214,4 @@ R.add_language(LANGUAGE_TERMINUS, 1) R.add_language(LANGUAGE_ZADDAT, 1) - return 1 + return 1 \ No newline at end of file diff --git a/code/game/objects/items/robot/robot_upgrades_vr.dm b/code/game/objects/items/robot/robot_upgrades_vr.dm index 215a936bda..bd9f247ec7 100644 --- a/code/game/objects/items/robot/robot_upgrades_vr.dm +++ b/code/game/objects/items/robot/robot_upgrades_vr.dm @@ -66,3 +66,93 @@ to_chat(usr, "Internal capacity doubled.") T.upgraded_capacity = TRUE return 1 + +//Advanced RPED +/obj/item/borg/upgrade/advrped + name = "Advanced Rapid Part Exchange Device" + desc = "An ARPED, now in borg size!" + icon_state = "cyborg_upgrade3" + item_state = "cyborg_upgrade" + module_flags = BORG_MODULE_SCIENCE + require_module = 1 + +/obj/item/borg/upgrade/advrped/action(var/mob/living/silicon/robot/R) + if(..()) return 0 + + var/obj/item/weapon/storage/part_replacer/adv/T = locate() in R.module + + if(!R.module || !(type in R.module.supported_upgrades)) + to_chat(R, "Upgrade mounting error! No suitable hardpoint detected!") + to_chat(usr, "There's no mounting point for the module!") + return 0 + if(!T) + T = locate() in R.module.contents + if(!T) + T = locate() in R.module.modules + if(!T) + R.module.modules += new/obj/item/weapon/storage/part_replacer/adv(R.module) + return 1 + if(T) + to_chat(R, "Upgrade mounting error! No suitable hardpoint detected!") + to_chat(usr, "There's no mounting point for the module!") + return 0 + +//Diamond Drill +/obj/item/borg/upgrade/diamonddrill + name = "Mounted Diamond Drill" + desc = "An advanced drill, optimized for borg use." + icon_state = "cyborg_upgrade3" + item_state = "cyborg_upgrade" + module_flags = BORG_MODULE_MINER + require_module = 1 + +/obj/item/borg/upgrade/diamonddrill/action(var/mob/living/silicon/robot/R) + if(..()) return 0 + + var/obj/item/weapon/pickaxe/diamonddrill/T = locate() in R.module + + if(!R.module || !(type in R.module.supported_upgrades)) + to_chat(R, "Upgrade mounting error! No suitable hardpoint detected!") + to_chat(usr, "There's no mounting point for the module!") + return 0 + if(!T) + T = locate() in R.module.contents + if(!T) + T = locate() in R.module.modules + if(!T) + R.module.modules += new/obj/item/weapon/pickaxe/diamonddrill(R.module) + return 1 + if(T) + to_chat(R, "Upgrade mounting error! No suitable hardpoint detected!") + to_chat(usr, "There's no mounting point for the module!") + return 0 + +//PKA +/obj/item/borg/upgrade/pka + name = "Protokenetic Accelerator Upgrade" + desc = "A borg mounted PKA Rifle for use in mining and wildlife defense." + icon_state = "cyborg_upgrade3" + item_state = "cyborg_upgrade" + module_flags = BORG_MODULE_MINER + require_module = 1 + +/obj/item/borg/upgrade/pka/action(var/mob/living/silicon/robot/R) + if(..()) return 0 + + var/obj/item/weapon/gun/energy/kinetic_accelerator/cyborg/T = locate() in R.module + + if(!R.module || !(type in R.module.supported_upgrades)) + to_chat(R, "Upgrade mounting error! No suitable hardpoint detected!") + to_chat(usr, "There's no mounting point for the module!") + return 0 + if(!T) + T = locate() in R.module.contents + if(!T) + T = locate() in R.module.modules + if(!T) + R.module.modules += new/obj/item/weapon/gun/energy/kinetic_accelerator/cyborg(R.module) + return 1 + if(T) + to_chat(R, "Upgrade mounting error! No suitable hardpoint detected!") + to_chat(usr, "There's no mounting point for the module!") + return 0 \ No newline at end of file diff --git a/code/game/objects/items/weapons/extinguisher.dm b/code/game/objects/items/weapons/extinguisher.dm index 7643191642..4b33d5bf60 100644 --- a/code/game/objects/items/weapons/extinguisher.dm +++ b/code/game/objects/items/weapons/extinguisher.dm @@ -47,7 +47,7 @@ force = 3.0 max_water = 600 spray_particles = 3 - sprite_name = "atmo_extinguisher" + sprite_name = "atmos_extinguisher" rand_overlays = 0 /obj/item/weapon/extinguisher/Initialize() diff --git a/code/game/objects/items/weapons/storage/belt.dm b/code/game/objects/items/weapons/storage/belt.dm index 96d0326654..58ea2ad9d5 100644 --- a/code/game/objects/items/weapons/storage/belt.dm +++ b/code/game/objects/items/weapons/storage/belt.dm @@ -72,7 +72,8 @@ /obj/item/device/integrated_electronics/wirer, /obj/item/device/integrated_electronics/debugger, //Vorestation edit adding debugger to toolbelt can hold list /obj/item/weapon/shovel/spade, //VOREStation edit. If it can hold minihoes and hatchers, why not the gardening spade? - /obj/item/stack/nanopaste //VOREStation edit. Think of it as a tube of superglue. Belts hold that all the time. + /obj/item/stack/nanopaste, //VOREStation edit. Think of it as a tube of superglue. Belts hold that all the time. + /obj/item/device/geiger //VOREStation edit. Engineers work with rad-slinging stuff sometimes too ) /obj/item/weapon/storage/belt/utility/full @@ -102,7 +103,9 @@ /obj/item/weapon/tool/wrench, /obj/item/weapon/weldingtool, /obj/item/weapon/tool/crowbar, - /obj/item/weapon/tool/wirecutters + /obj/item/weapon/tool/wirecutters, + /obj/item/device/analyzer, //Vorestation edit. Gives atmos techs a few extra tools fitting their job from the start + /obj/item/weapon/extinguisher/mini //Vorestation edit. As above, the mini's much more handy to have rather than lugging a big one around ) /obj/item/weapon/storage/belt/utility/chief @@ -538,4 +541,4 @@ storage_slots = 8 can_hold = list( /obj/item/ammo_casing/afoam_dart - ) \ No newline at end of file + ) diff --git a/code/game/objects/items/weapons/storage/toolbox_vr.dm b/code/game/objects/items/weapons/storage/toolbox_vr.dm index f65731091a..12ef265f1f 100644 --- a/code/game/objects/items/weapons/storage/toolbox_vr.dm +++ b/code/game/objects/items/weapons/storage/toolbox_vr.dm @@ -7,4 +7,5 @@ max_storage_space = ITEMSIZE_COST_SMALL * 6 /obj/item/weapon/storage/toolbox/lunchbox/survival/zaddat - starts_with = list(/obj/item/weapon/reagent_containers/hypospray/autoinjector/biginjector/glucose = 6) \ No newline at end of file + name = "zaddat survival lunchbox" + starts_with = list(/obj/item/weapon/reagent_containers/hypospray/autoinjector/biginjector/glucose = 6) diff --git a/code/game/objects/items/weapons/tape.dm b/code/game/objects/items/weapons/tape.dm index b8a9c87416..57175f2a42 100644 --- a/code/game/objects/items/weapons/tape.dm +++ b/code/game/objects/items/weapons/tape.dm @@ -12,7 +12,7 @@ /obj/item/weapon/tape_roll/proc/can_place(var/mob/living/carbon/human/H, var/mob/user) if(istype(user, /mob/living/silicon/robot) || user == H) return TRUE - + for (var/obj/item/weapon/grab/G in H.grabbed_by) if (G.loc == user && G.state >= GRAB_AGGRESSIVE) return TRUE @@ -36,7 +36,7 @@ to_chat(user, "\The [H] doesn't have any eyes.") return if(H.glasses) - to_chat(user, "\The [H] is already wearing somethign on their eyes.") + to_chat(user, "\The [H] is already wearing something on their eyes.") return if(H.head && (H.head.body_parts_covered & FACE)) to_chat(user, "Remove their [H.head] first.") diff --git a/code/game/objects/random/guns_and_ammo.dm b/code/game/objects/random/guns_and_ammo.dm index ee67551914..990527ac22 100644 --- a/code/game/objects/random/guns_and_ammo.dm +++ b/code/game/objects/random/guns_and_ammo.dm @@ -460,9 +460,9 @@ /obj/item/ammo_magazine/s44 ), prob(1);list( - /obj/item/weapon/gun/projectile/revolver/webley/auto, - /obj/item/ammo_magazine/s44, - /obj/item/ammo_magazine/s44 + /obj/item/weapon/gun/projectile/revolver/consul, + /obj/item/ammo_magazine/s44/rubber, + /obj/item/ammo_magazine/s44/rubber ) ) diff --git a/code/game/objects/random/misc.dm b/code/game/objects/random/misc.dm index ac7d045704..63b5b8547e 100644 --- a/code/game/objects/random/misc.dm +++ b/code/game/objects/random/misc.dm @@ -848,7 +848,7 @@ /obj/item/weapon/reagent_containers/food/snacks/donut/plain, /obj/item/weapon/reagent_containers/food/snacks/donut/plain/jelly, /obj/item/weapon/reagent_containers/food/snacks/chocolatebar, - /obj/item/weapon/reagent_containers/food/snacks/cookiesnack) + /obj/item/weapon/reagent_containers/food/snacks/cookie) /obj/random/mre/dessert/vegan name = "random vegan MRE dessert" @@ -984,4 +984,41 @@ prob(6);/obj/item/device/flashlight/color/orange, prob(6);/obj/item/device/flashlight/color/yellow, prob(2);/obj/item/device/flashlight/maglight - ) \ No newline at end of file + ) + +/obj/random/mug + name = "Random Mug" + desc = "This is a random coffee mug." + icon = 'icons/obj/drinks_mugs.dmi' + icon_state = "coffeecup_spawner" + +/obj/random/mug/item_to_spawn() + return pick(/obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug, + /obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/sol, + /obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/fleet, + /obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/fivearrows, + /obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/psc, + /obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/alma, + /obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/almp, + /obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/nt, + /obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/metal/wulf, + /obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/gilthari, + /obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/zeng, + /obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/wt, + /obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/aether, + /obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/bishop, + /obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/oculum, + /obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/one, + /obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/puni, + /obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/heart, + /obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/pawn, + /obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/diona, + /obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/britcup, + /obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/flame, + /obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/blue, + /obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/black, + /obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/green, + /obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/green/dark, + /obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/rainbow, + /obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/metal, + /obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/talon) \ No newline at end of file diff --git a/code/game/objects/structures/crates_lockers/closets/secure/engineering.dm b/code/game/objects/structures/crates_lockers/closets/secure/engineering.dm index eecfde21bc..cd0edddce1 100644 --- a/code/game/objects/structures/crates_lockers/closets/secure/engineering.dm +++ b/code/game/objects/structures/crates_lockers/closets/secure/engineering.dm @@ -111,14 +111,14 @@ ///obj/item/clamp, //VOREStation Removal: without leaks those are pointless, /obj/item/device/radio/headset/headset_eng, /obj/item/device/radio/headset/headset_eng/alt, - /obj/item/clothing/suit/storage/hazardvest, + /obj/item/clothing/suit/storage/hazardvest/atmos, //VOREStation edit. Eng locker gets regular haz-vest, atmos gets the themed one of their own /obj/item/clothing/mask/gas, /obj/item/weapon/cartridge/atmos, /obj/item/taperoll/atmos, /obj/item/clothing/suit/storage/hooded/wintercoat/engineering/atmos, /obj/item/clothing/shoes/boots/winter/atmos, /obj/item/weapon/tank/emergency/oxygen/engi, - /obj/item/weapon/storage/belt/utility) //VOREStation Add + /obj/item/weapon/storage/belt/utility/atmostech) //VOREStation edit. They don't get a toolbox to fill it from, so why not give a spare one that's full already? /obj/structure/closet/secure_closet/atmos_personal/Initialize() if(prob(50)) diff --git a/code/game/objects/structures/crates_lockers/closets/secure/security.dm b/code/game/objects/structures/crates_lockers/closets/secure/security.dm index 65ea14bb4d..4d4b794fbc 100644 --- a/code/game/objects/structures/crates_lockers/closets/secure/security.dm +++ b/code/game/objects/structures/crates_lockers/closets/secure/security.dm @@ -236,7 +236,7 @@ /obj/item/clothing/accessory/badge/holo/detective, /obj/item/clothing/gloves/black, ///obj/item/gunbox, // VOREStation Removal - /obj/item/weapon/gun/energy/stunrevolver/vintage, + /obj/item/gunbox/stun, /obj/item/weapon/storage/belt/detective, /obj/item/weapon/storage/box/evidence, /obj/item/device/radio/headset/headset_sec, diff --git a/code/modules/admin/topic.dm b/code/modules/admin/topic.dm index 41f14ec5c7..c82ea1c80a 100644 --- a/code/modules/admin/topic.dm +++ b/code/modules/admin/topic.dm @@ -554,7 +554,7 @@ jobs += "" counter = 0 - jobs += "" + jobs += "" //VOREstation Edit End //Civilian (Grey) @@ -635,7 +635,7 @@ jobs += "[entry]" else jobs += "[entry]" - + if(++counter >= 5) //So things dont get squiiiiished! jobs += "" counter = 0 @@ -1417,10 +1417,10 @@ to_chat(usr, "This can only be used on instances of type /mob/living/carbon/human") return - H.equip_to_slot_or_del( new /obj/item/weapon/reagent_containers/food/snacks/cookiesnack(H), slot_l_hand ) - if(!(istype(H.l_hand,/obj/item/weapon/reagent_containers/food/snacks/cookiesnack))) - H.equip_to_slot_or_del( new /obj/item/weapon/reagent_containers/food/snacks/cookiesnack(H), slot_r_hand ) - if(!(istype(H.r_hand,/obj/item/weapon/reagent_containers/food/snacks/cookiesnack))) + H.equip_to_slot_or_del( new /obj/item/weapon/reagent_containers/food/snacks/cookie(H), slot_l_hand ) + if(!(istype(H.l_hand,/obj/item/weapon/reagent_containers/food/snacks/cookie))) + H.equip_to_slot_or_del( new /obj/item/weapon/reagent_containers/food/snacks/cookie(H), slot_r_hand ) + if(!(istype(H.r_hand,/obj/item/weapon/reagent_containers/food/snacks/cookie))) log_admin("[key_name(H)] has their hands full, so they did not receive their cookie, spawned by [key_name(src.owner)].") message_admins("[key_name(H)] has their hands full, so they did not receive their cookie, spawned by [key_name(src.owner)].") return @@ -1558,7 +1558,7 @@ var/mob/M = locate(href_list["jumpto"]) if(!M) return - + var/turf/T = get_turf(M) if(isturf(T)) usr.on_mob_jump() @@ -1597,16 +1597,16 @@ var/mob/M = locate(href_list["sendmob"]) if(!M) return - + var/list/areachoices = return_sorted_areas() var/choice = tgui_input_list(usr, "Pick an area:", "Send Mob", areachoices) if(!choice) return - + var/area/A = areachoices[choice] if(!A) return - + M.on_mob_jump() M.forceMove(pick(get_area_turfs(A))) var/msg = "[key_name_admin(usr)] teleported [ADMIN_LOOKUPFLW(M)]" diff --git a/code/modules/awaymissions/loot_vr.dm b/code/modules/awaymissions/loot_vr.dm index 4569c0aec8..6845f64979 100644 --- a/code/modules/awaymissions/loot_vr.dm +++ b/code/modules/awaymissions/loot_vr.dm @@ -267,7 +267,7 @@ /obj/item/weapon/reagent_containers/food/drinks/dry_ramen, \ /obj/item/weapon/reagent_containers/food/snacks/candiedapple, \ /obj/item/weapon/reagent_containers/food/snacks/chocolatebar, \ - /obj/item/weapon/reagent_containers/food/snacks/cookiesnack, \ + /obj/item/weapon/reagent_containers/food/snacks/cookie, \ /obj/item/weapon/reagent_containers/food/snacks/meatball, \ /obj/item/weapon/reagent_containers/food/snacks/plump_pie, \ /obj/item/weapon/reagent_containers/food/snacks/liquidfood) diff --git a/code/modules/client/preference_setup/loadout/loadout_accessories.dm b/code/modules/client/preference_setup/loadout/loadout_accessories.dm index c99eb25d22..d7a87401b5 100644 --- a/code/modules/client/preference_setup/loadout/loadout_accessories.dm +++ b/code/modules/client/preference_setup/loadout/loadout_accessories.dm @@ -306,4 +306,16 @@ "Brown Vest" = /obj/item/clothing/accessory/cowboy_vest/brown, "Grey Vest" = /obj/item/clothing/accessory/cowboy_vest/grey ) - gear_tweaks += new/datum/gear_tweak/path(cowboy_vests) \ No newline at end of file + gear_tweaks += new/datum/gear_tweak/path(cowboy_vests) + +/datum/gear/accessory/pride + display_name = "pride pin selection" + path = /obj/item/clothing/accessory/pride + +/datum/gear/accessory/pride/New() + ..() + var/list/pridepins = list() + for(var/pridepin in typesof(/obj/item/clothing/accessory/pride)) + var/obj/item/clothing/accessory/pridepin_type = pridepin + pridepins[initial(pridepin_type.name)] = pridepin_type + gear_tweaks += new/datum/gear_tweak/path(sortAssoc(pridepins)) \ No newline at end of file diff --git a/code/modules/client/preference_setup/loadout/loadout_accessories_vr.dm b/code/modules/client/preference_setup/loadout/loadout_accessories_vr.dm index 7013f969df..f1fa14fbe4 100644 --- a/code/modules/client/preference_setup/loadout/loadout_accessories_vr.dm +++ b/code/modules/client/preference_setup/loadout/loadout_accessories_vr.dm @@ -81,9 +81,9 @@ allowed_roles = list("Paramedic","Chief Medical Officer","Medical Doctor","Chemist","Field Medic","Talon Doctor") /datum/gear/accessory/bluespace - display_name = "bluespace badge (Eng, Sec, Med, Exploration, Miner)" + display_name = "bluespace badge (Eng, Sec, Med, Exploration, Miner, Pilot)" path = /obj/item/clothing/accessory/storage/bluespace - allowed_roles = list("Engineer","Atmospheric Technician","Chief Engineer","Security Officer","Detective","Head of Security","Warden","Paramedic","Chief Medical Officer","Medical Doctor","Chemist","Field Medic","Explorer","Pathfinder","Shaft Miner","Talon Captain","Talon Doctor","Talon Engineer","Talon Guard", "Talon Miner") + allowed_roles = list("Engineer","Atmospheric Technician","Chief Engineer","Security Officer","Detective","Head of Security","Warden","Paramedic","Chief Medical Officer","Medical Doctor","Chemist","Field Medic","Explorer","Pathfinder","Shaft Miner","Talon Captain","Talon Doctor","Talon Engineer","Talon Guard","Talon Miner","Pilot") cost = 2 /datum/gear/accessory/webbing @@ -123,4 +123,4 @@ Talon pin /datum/gear/accessory/talonpin display_name = "Talon pin" description = "A small enamel pin of the Talon logo." - path = /obj/item/clothing/accessory/talon \ No newline at end of file + path = /obj/item/clothing/accessory/talon diff --git a/code/modules/client/preference_setup/loadout/loadout_fluffitems_vr.dm b/code/modules/client/preference_setup/loadout/loadout_fluffitems_vr.dm index 0f9060a1af..6684a605f5 100644 --- a/code/modules/client/preference_setup/loadout/loadout_fluffitems_vr.dm +++ b/code/modules/client/preference_setup/loadout/loadout_fluffitems_vr.dm @@ -380,6 +380,12 @@ ckeywhitelist = list("erikthedog") character_name = list("Erik Ramadwood") +/datum/gear/fluff/salvage_id + path = /obj/item/weapon/card/id/event/polymorphic/itg + display_name = "Salvage's ITG-ID card" + ckeywhitelist = list("essbie") + character_name = list("Savage") + // F CKEYS /datum/gear/fluff/yikatihaki_armor path = /obj/item/clothing/suit/armor/vox_scrap @@ -1344,6 +1350,12 @@ // Y CKEYS +/datum/gear/fluff/lemon_plush + path = /obj/item/toy/plushie/fluff/lemonplush + display_name = "yellow slime plushie" + ckeywhitelist = list("yecrowbarman") + character_name = list("Lemon Yellow", "Lemon Gettler Yellow", "Lemon Lee Yellow", "Lemon Jade Yellow") //different sleeves, same char + // Z CKEYS /datum/gear/fluff/tachika_medal path = /obj/item/clothing/accessory/medal/conduct diff --git a/code/modules/client/preference_setup/loadout/loadout_general.dm b/code/modules/client/preference_setup/loadout/loadout_general.dm index 615e16bf5d..71d8b8c37d 100644 --- a/code/modules/client/preference_setup/loadout/loadout_general.dm +++ b/code/modules/client/preference_setup/loadout/loadout_general.dm @@ -140,3 +140,58 @@ display_name = "Cards Against The Galaxy (black deck)" path = /obj/item/weapon/deck/cah/black description = "The ever-popular Cards Against The Galaxy word game. Warning: may include traces of broken fourth wall. This is the black deck." + +/datum/gear/wizoff + display_name = "WizOff" + path = /obj/item/weapon/deck/wizoff + +/datum/gear/wizoffguide + display_name = "WizOff Guide" + path = /obj/item/weapon/book/manual/wizzoffguide + description = "The guide to playing the ever popular card game: Wiz-Off!" + +/datum/gear/coffeemug + display_name = "coffee mugs" + description = "A coffee mug in various designs." + cost = 1 + path = /obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug + +/datum/gear/coffeemug/New() + ..() + var/list/coffeemugs = list() + coffeemugs["plain coffee mug"] = /obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug + coffeemugs["SCG coffee mug"] = /obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/sol + coffeemugs["Fleet coffee mug"] = /obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/fleet + coffeemugs["Five Arrows coffee mug"] = /obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/fivearrows + coffeemugs["Pearlshield coffee mug"] = /obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/psc + coffeemugs["Almach Association coffee mug"] = /obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/alma + coffeemugs["Almach Protectorate coffee mug"] = /obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/almp + coffeemugs["NT coffee mug"] = /obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/nt + coffeemugs["Wulf Aeronautics mug"] = /obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/metal/wulf + coffeemugs["Gilthari Exports coffee mug"] = /obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/gilthari + coffeemugs["Zeng-Hu coffee mug"] = /obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/zeng + coffeemugs["Ward-Takahashi coffee mug"] = /obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/wt + coffeemugs["Aether Atmospherics coffee mug"] = /obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/aether + coffeemugs["Bishop Cybernetics coffee mug"] = /obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/bishop + coffeemugs["Oculum Broadcast coffee mug"] = /obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/oculum + coffeemugs["#1 coffee mug"] = /obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/one + coffeemugs["#1 monkey coffee mug"] = /obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/puni + coffeemugs["heart coffee mug"] = /obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/heart + coffeemugs["pawn coffee mug"] = /obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/pawn + coffeemugs["diona coffee mug"] = /obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/diona + coffeemugs["british coffee mug"] = /obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/britcup + coffeemugs["flame coffee mug"] = /obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/flame + coffeemugs["blue coffee mug"] = /obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/blue + coffeemugs["black coffee mug"] = /obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/black + coffeemugs["green coffee mug"] = /obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/green + coffeemugs["dark green coffee mug"] = /obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/green/dark + coffeemugs["rainbow coffee mug"] = /obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/rainbow + coffeemugs["metal coffee mug"] = /obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/metal + coffeemugs["glass coffee mug"] = /obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/glass + coffeemugs["tall coffee mug"] = /obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/tall + coffeemugs["tall black coffee mug"] = /obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/tall/black + coffeemugs["tall metal coffee mug"] = /obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/tall/metal + coffeemugs["tall rainbow coffee mug"] = /obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/tall/rainbow + coffeemugs["Talon coffee mug"] = /obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/talon + gear_tweaks += new /datum/gear_tweak/path(coffeemugs) + gear_tweaks += new /datum/gear_tweak/reagents(lunchables_drink_reagents()) \ No newline at end of file diff --git a/code/modules/client/preference_setup/loadout/loadout_shoes.dm b/code/modules/client/preference_setup/loadout/loadout_shoes.dm index c01d4c6f99..a4f0ad315d 100644 --- a/code/modules/client/preference_setup/loadout/loadout_shoes.dm +++ b/code/modules/client/preference_setup/loadout/loadout_shoes.dm @@ -13,6 +13,18 @@ display_name = "tourist, green" path = /obj/item/clothing/shoes/tourist_2 +/datum/gear/shoes/sneakerspurple + display_name = "sneakers, purple" + path = /obj/item/clothing/shoes/sneakerspurple + +/datum/gear/shoes/sneakersblue + display_name = "sneakers, blue" + path = /obj/item/clothing/shoes/sneakersblue + +/datum/gear/shoes/sneakersred + display_name = "sneakers, red" + path = /obj/item/clothing/shoes/sneakersred + /datum/gear/shoes/jackboots display_name = "jackboots" path = /obj/item/clothing/shoes/boots/jackboots diff --git a/code/modules/client/preference_setup/loadout/loadout_suit.dm b/code/modules/client/preference_setup/loadout/loadout_suit.dm index 8c9efbd119..bdc941cfae 100644 --- a/code/modules/client/preference_setup/loadout/loadout_suit.dm +++ b/code/modules/client/preference_setup/loadout/loadout_suit.dm @@ -197,6 +197,18 @@ path = /obj/item/clothing/suit/cyberpunk cost = 2 +/datum/gear/suit/puffycoat/blue + display_name = "puffy coat, blue" + path = /obj/item/clothing/suit/storage/puffyblue + +/datum/gear/suit/puffycoat/red + display_name = "puffy coat, red" + path = /obj/item/clothing/suit/storage/puffyred + +/datum/gear/suit/puffycoat/purple + display_name = "puffy coat, purple" + path = /obj/item/clothing/suit/storage/puffypurple + /datum/gear/suit/poncho display_name = "poncho selection" path = /obj/item/clothing/accessory/poncho @@ -226,7 +238,6 @@ ) gear_tweaks += new/datum/gear_tweak/path(ponchos) - /datum/gear/suit/roles/cloak display_name = "cloak selection, departments" path = /obj/item/clothing/accessory/poncho/roles/cloak/cargo diff --git a/code/modules/client/preference_setup/loadout/loadout_suit_vr.dm b/code/modules/client/preference_setup/loadout/loadout_suit_vr.dm index b11905385a..12bf14ad2f 100644 --- a/code/modules/client/preference_setup/loadout/loadout_suit_vr.dm +++ b/code/modules/client/preference_setup/loadout/loadout_suit_vr.dm @@ -119,3 +119,8 @@ Talon winter coat display_name = "knight, Field Medic" path = /obj/item/clothing/suit/armor/combat/crusader_explo/FM allowed_roles = list ("Field Medic") + +//Atmos-coloured hazard vest + display_name = "hazard vest, atmospherics" + path = /obj/item/clothing/suit/storage/hazardvest/atmos + allowed_roles = list("Chief Engineer","Atmospheric Technician", "Engineer") diff --git a/code/modules/client/preference_setup/loadout/loadout_uniform.dm b/code/modules/client/preference_setup/loadout/loadout_uniform.dm index 874501d108..ccd6196948 100644 --- a/code/modules/client/preference_setup/loadout/loadout_uniform.dm +++ b/code/modules/client/preference_setup/loadout/loadout_uniform.dm @@ -699,6 +699,26 @@ display_name = "heavy utility, galactic survey" path = /obj/item/clothing/under/gsa_work +/* + * 80s + */ + +/datum/gear/uniform/tropical_outfit/black + display_name = "tropical outfit, animal style" + path = /obj/item/clothing/under/tropical + +/datum/gear/uniform/tropical_outfit/green + display_name = "tropical outfit, tropico-puke" + path = /obj/item/clothing/under/tropical/green + +/datum/gear/uniform/tropical_outfit/pink + display_name = "tropical outfit, 3005 vintage" + path = /obj/item/clothing/under/tropical/pink + +/datum/gear/uniform/tropical_outfit/blue + display_name = "tropical outfit, miami vice" + path = /obj/item/clothing/under/tropical/blue + /* * Branded Uniforms */ diff --git a/code/modules/client/preference_setup/loadout/loadout_uniform_vr.dm b/code/modules/client/preference_setup/loadout/loadout_uniform_vr.dm index 26caf70b2b..e6988b0ac9 100644 --- a/code/modules/client/preference_setup/loadout/loadout_uniform_vr.dm +++ b/code/modules/client/preference_setup/loadout/loadout_uniform_vr.dm @@ -237,3 +237,42 @@ Talon jumpsuit "red and white" = /obj/item/clothing/under/summerdress/red ) gear_tweaks += new/datum/gear_tweak/path(dresses) + +// undersuits +/datum/gear/uniform/undersuit + display_name = "undersuit selection" + path = /obj/item/clothing/under/undersuit/ + +/datum/gear/uniform/undersuit/New() + ..() + var/list/suits = list() + var/list/blacklisted_types = list(/obj/item/clothing/under/undersuit/sec, + /obj/item/clothing/under/undersuit/sec/hos, + /obj/item/clothing/under/undersuit/hazard, + /obj/item/clothing/under/undersuit/command, + /obj/item/clothing/under/undersuit/centcom) + for(var/obj/item/clothing/under/undersuit/undersuit_type as anything in typesof(/obj/item/clothing/under/undersuit)) + if(undersuit_type in blacklisted_types) + continue + suits[initial(undersuit_type.name)] = undersuit_type + gear_tweaks += new/datum/gear_tweak/path(sortAssoc(suits)) + +/datum/gear/uniform/undersuit_haz + display_name = "undersuit, hazard (Engineering)" + allowed_roles = list("Chief Engineer", "Atmospheric Technician", "Engineer") + path = /obj/item/clothing/under/undersuit/hazard + +/datum/gear/uniform/undersuit_sec + display_name = "undersuit, security (Security)" + allowed_roles = list("Head of Security", "Warden", "Detective", "Security Officer") + path = /obj/item/clothing/under/undersuit/sec + +/datum/gear/uniform/undersuit_hos + display_name = "undersuit, security command (HoS)" + allowed_roles = list("Head of Security") + path = /obj/item/clothing/under/undersuit/sec/hos + +/datum/gear/uniform/undersuit_com + display_name = "undersuit, command (SM/HoP)" + allowed_roles = list("Site Manager", "Head of Personnel") + path = /obj/item/clothing/under/undersuit/command diff --git a/code/modules/client/preference_setup/loadout/loadout_utility_vr.dm b/code/modules/client/preference_setup/loadout/loadout_utility_vr.dm index 61e204546f..1d30864d52 100644 --- a/code/modules/client/preference_setup/loadout/loadout_utility_vr.dm +++ b/code/modules/client/preference_setup/loadout/loadout_utility_vr.dm @@ -74,10 +74,3 @@ display_name = "bluespace bracelet" path = /obj/item/clothing/gloves/bluespace cost = 5 - - -/datum/gear/utility/satchel_strapless - display_name = "satchel strapless" - path = /obj/item/weapon/storage/backpack/satchel/strapless - slot = slot_back - cost = 1 \ No newline at end of file diff --git a/code/modules/client/verbs/character_directory.dm b/code/modules/client/verbs/character_directory.dm index a649657375..fc003569d5 100644 --- a/code/modules/client/verbs/character_directory.dm +++ b/code/modules/client/verbs/character_directory.dm @@ -48,6 +48,7 @@ GLOBAL_DATUM(character_directory, /datum/character_directory) // These are the three vars we're trying to find // The approach differs based on the mob the client is controlling var/name = null + var/species = null var/ooc_notes = null var/flavor_text = null var/tag = C.prefs.directory_tag || "Unset" @@ -61,12 +62,14 @@ GLOBAL_DATUM(character_directory, /datum/character_directory) if(!find_record("name", H.real_name, data_core.hidden_general)) continue name = H.real_name + species = "[H.custom_species ? H.custom_species : H.species.name]" ooc_notes = H.ooc_notes flavor_text = H.flavor_texts["general"] if(isAI(C.mob)) var/mob/living/silicon/ai/A = C.mob - name = "[A.name] (Artificial Intelligence)" + name = A.name + species = "Artificial Intelligence" ooc_notes = A.ooc_notes flavor_text = null // No flavor text for AIs :c @@ -74,7 +77,8 @@ GLOBAL_DATUM(character_directory, /datum/character_directory) var/mob/living/silicon/robot/R = C.mob if(R.scrambledcodes || (R.module && R.module.hide_on_manifest)) continue - name = "[R.name] ([R.modtype] [R.braintype])" + name = R.name + species = "[R.modtype] [R.braintype]" ooc_notes = R.ooc_notes flavor_text = R.flavor_text @@ -85,6 +89,7 @@ GLOBAL_DATUM(character_directory, /datum/character_directory) directory_mobs.Add(list(list( "name" = name, + "species" = species, "ooc_notes" = ooc_notes, "tag" = tag, "erptag" = erptag, diff --git a/code/modules/clothing/gloves/color.dm b/code/modules/clothing/gloves/color.dm index aa0f8055f5..007fdd7528 100644 --- a/code/modules/clothing/gloves/color.dm +++ b/code/modules/clothing/gloves/color.dm @@ -86,11 +86,6 @@ icon_state = "evening_gloves" addblends = "evening_gloves_a" - cold_protection = HANDS - min_cold_protection_temperature = GLOVES_MIN_COLD_PROTECTION_TEMPERATURE - heat_protection = HANDS - max_heat_protection_temperature = GLOVES_MAX_HEAT_PROTECTION_TEMPERATURE - /obj/item/clothing/gloves/fingerless desc = "A pair of gloves that don't actually cover the fingers." name = "fingerless gloves" diff --git a/code/modules/clothing/head/fishing.dm b/code/modules/clothing/head/fishing.dm index 4ca39f18ab..bcebd89b57 100644 --- a/code/modules/clothing/head/fishing.dm +++ b/code/modules/clothing/head/fishing.dm @@ -47,11 +47,38 @@ "worry about me", "gossip about me", "defame me", + "disbelieve my existence", "conspire against me", "draw me as the soyjack", "put me in their tummies", + "crunchatize me", "crunchatize me, cap'n!", + "wreck me", + "feed me", + "beg to get in my stomach", + "walk all over me", + "drink me like a milkshake", + "beg me to step on them", + "call me Mommy", + "call me Daddy", + "step on me", + "lay eggs down my throat", + "dream about me", + "choke me with their thighs", + "steal my lunch money", + "contact me about my spaceship's extended warranty", + "envy me", + "combo me", + "want to kidnap me", + "fold me in half", + "think my spacetruck is hot", + "hate my spacetruck", + "are more into my spacetruck than me", + "ask me for docking codes", "think of me while kneading dough", + "gun me down in the streets of miami", + "drop me off of inconveniently high places", + "drop me into inconveniently tight places", "leave threatening messages on my voicemail", "write fanfiction about me", "attempt to approach me" @@ -71,6 +98,10 @@ "pursue me to the ends of the earth, constantly thwarted by inconsequential setbacks, and when they catch up and I ask in an exasperated voice why they respond 'you owe me a dollar'", "call me just to 'chat' but actually mention they are moving and, obviously, since I'm the ONLY guy they know with a truck it would be great if I could help out, they said they'd buy me pizza but that doesn't really cover it", "shuffle uncomfortably as we continue to sit in near-total silence having exhausted all topics of conversation hours ago but neither of us having worked up the spirit to suggest that we part ways and go home", + "shove me into their large gaping maw, covering me in drool as I descend into their warm depths, becoming covered by hot bubbling acids that dissolve my body while I play Animal Crossing New Leaf on my Nintendo 3DS", + "promise me McDonalds but conveniently forget to pull into the drivethrough on the way home, leaving me burgerless", + "leave me in the car all alone with my favorite music and a bottle of water in the summer", + "create designs of particularly verbose hats describing extreme complexities and deep philosophical implications of their unusually specific feelings and often not particularly kind thoughts about me", "methodically place brick after agonising brick in the wall they are constructing to forever entomb me in the basement which they claimed contained a case of Amontillado wine" ) @@ -113,6 +144,9 @@ desc = "A peaked cap with text reading '[slogan]'." name = "\improper '[slogan]' hat" + //pick a hue + var/colourtype = pick("green", "red", "blue", "yellow", "purple", "orange", "grey") + //finally, take our hat size and pick the icon accordingly - icon_state = "greensoft[hatsize]" - item_state_slots = list(slot_r_hand_str = "greensoft", slot_l_hand_str = "greensoft", slot_head_str = "greensoft[hatsize]") \ No newline at end of file + icon_state = "[colourtype]soft[hatsize]" + item_state_slots = list(slot_r_hand_str = "[colourtype]soft", slot_l_hand_str = "[colourtype]soft", slot_head_str = "[colourtype]soft[hatsize]") \ No newline at end of file diff --git a/code/modules/clothing/shoes/miscellaneous.dm b/code/modules/clothing/shoes/miscellaneous.dm index 52aabe2bb4..0fe9cb8b6c 100644 --- a/code/modules/clothing/shoes/miscellaneous.dm +++ b/code/modules/clothing/shoes/miscellaneous.dm @@ -233,4 +233,26 @@ icon_state = "rag" force = 0 drop_sound = 'sound/items/drop/clothing.ogg' - pickup_sound = 'sound/items/pickup/clothing.ogg' \ No newline at end of file + pickup_sound = 'sound/items/pickup/clothing.ogg' + +/* + * 80s + */ + +/obj/item/clothing/shoes/sneakerspurple + name = "purple sneakers" + desc = "A stylish, expensive pair of purple sneakers." + icon_state = "sneakerspurple" + item_state = "sneakerspurple" + +/obj/item/clothing/shoes/sneakersblue + name = "blue sneakers" + desc = "A stylish, expensive pair of blue sneakers." + icon_state = "sneakersblue" + item_state = "sneakersblue" + +/obj/item/clothing/shoes/sneakersred + name = "red sneakers" + desc = "A stylish, expensive pair of red sneakers." + icon_state = "sneakersred" + item_state = "sneakersred" \ No newline at end of file diff --git a/code/modules/clothing/suits/jobs.dm b/code/modules/clothing/suits/jobs.dm index bce11495c7..17b265ed9f 100644 --- a/code/modules/clothing/suits/jobs.dm +++ b/code/modules/clothing/suits/jobs.dm @@ -173,7 +173,7 @@ blood_overlay_type = "armor" allowed = list (/obj/item/device/analyzer, /obj/item/device/flashlight, /obj/item/device/multitool, /obj/item/device/pipe_painter, /obj/item/device/radio, /obj/item/device/t_scanner, /obj/item/weapon/tool/crowbar, /obj/item/weapon/tool/screwdriver, /obj/item/weapon/weldingtool, /obj/item/weapon/tool/wirecutters, /obj/item/weapon/tool/wrench, /obj/item/weapon/tank/emergency/oxygen, - /obj/item/clothing/mask/gas, /obj/item/taperoll/engineering) + /obj/item/clothing/mask/gas, /obj/item/taperoll/engineering, /obj/item/taperoll/atmos, /obj/item/device/analyzer, /obj/item/weapon/extinguisher/mini) //VOREStation edit. Few more tools that can be put on vests body_parts_covered = UPPER_TORSO /obj/item/clothing/suit/storage/hazardvest/blue @@ -259,4 +259,4 @@ /obj/item/clothing/suit/suspenders/grey name = "grey suspenders" - icon_state = "suspenders_grey" \ No newline at end of file + icon_state = "suspenders_grey" diff --git a/code/modules/clothing/suits/jobs_vr.dm b/code/modules/clothing/suits/jobs_vr.dm index 9b34c18637..45e36be2c1 100644 --- a/code/modules/clothing/suits/jobs_vr.dm +++ b/code/modules/clothing/suits/jobs_vr.dm @@ -15,4 +15,17 @@ icon = 'icons/inventory/suit/item_vr.dmi' default_worn_icon = 'icons/inventory/suit/mob_vr.dmi' icon_state = "qm_coat" - \ No newline at end of file + +//Atmos-coloured hazard vest +/obj/item/clothing/suit/storage/hazardvest/atmos + name = "light blue hazard vest" + desc = "A high-visibility vest used in work zones. This one is in the colors of atmospherics!" + + icon = 'icons/inventory/suit/item_vr.dmi' + default_worn_icon = 'icons/inventory/suit/mob_vr.dmi' + icon_state = "hazard_a" + item_state = "hazard_a" + item_icons = list( + slot_l_hand_str = 'icons/mob/items/lefthand_vr.dmi', + slot_r_hand_str = 'icons/mob/items/righthand_vr.dmi', + ) diff --git a/code/modules/clothing/suits/miscellaneous.dm b/code/modules/clothing/suits/miscellaneous.dm index 61825a6e5d..0c63704694 100644 --- a/code/modules/clothing/suits/miscellaneous.dm +++ b/code/modules/clothing/suits/miscellaneous.dm @@ -42,6 +42,46 @@ desc = "Repilca rmor commonly worn by Dominion Of Mu'tu'bi soldiers from the hit series Spacer Trail. Modified for Laser Tag (Red Team)." icon_state = "redtag2" +/* + * 80s + */ + +/obj/item/clothing/suit/storage/puffyblue + name = "blue puffy coat" + desc = "A stylish, shiny, very blue puffer coat." + icon_state = "puffycoatblue" + item_state = "puffycoatblue" + body_parts_covered = UPPER_TORSO|LOWER_TORSO|ARMS + flags_inv = HIDEHOLSTER + cold_protection = UPPER_TORSO|LOWER_TORSO|ARMS|LEGS + min_cold_protection_temperature = SPACE_SUIT_MIN_COLD_PROTECTION_TEMPERATURE + siemens_coefficient = 0.7 + item_state_slots = list(slot_r_hand_str = "blue_labcoat", slot_l_hand_str = "blue_labcoat") + +/obj/item/clothing/suit/storage/puffypurple + name = "purple puffy coat" + desc = "A stylish, shiny, very purple puffer coat." + icon_state = "puffycoatpurple" + item_state = "puffycoatpurple" + body_parts_covered = UPPER_TORSO|LOWER_TORSO|ARMS + flags_inv = HIDEHOLSTER + cold_protection = UPPER_TORSO|LOWER_TORSO|ARMS|LEGS + min_cold_protection_temperature = SPACE_SUIT_MIN_COLD_PROTECTION_TEMPERATURE + siemens_coefficient = 0.7 + item_state_slots = list(slot_r_hand_str = "purple_labcoat", slot_l_hand_str = "purple_labcoat") + +/obj/item/clothing/suit/storage/puffyred + name = "crimson puffy coat" + desc = "A stylish, shiny, very crimson puffer coat." + icon_state = "puffycoatred" + item_state = "puffycoatred" + body_parts_covered = UPPER_TORSO|LOWER_TORSO|ARMS + flags_inv = HIDEHOLSTER + cold_protection = UPPER_TORSO|LOWER_TORSO|ARMS|LEGS + min_cold_protection_temperature = SPACE_SUIT_MIN_COLD_PROTECTION_TEMPERATURE + siemens_coefficient = 0.7 + item_state_slots = list(slot_r_hand_str = "red_labcoat", slot_l_hand_str = "red_labcoat") + /* * Costume */ diff --git a/code/modules/clothing/under/accessories/accessory.dm b/code/modules/clothing/under/accessories/accessory.dm index 8b8bbb0fdd..22594d7437 100644 --- a/code/modules/clothing/under/accessories/accessory.dm +++ b/code/modules/clothing/under/accessories/accessory.dm @@ -503,3 +503,44 @@ /obj/item/clothing/accessory/gaiter/green name = "green neck gaiter" icon_state = "gaiter_green" + +/* + * Pride Pins + */ +/obj/item/clothing/accessory/pride + name = "pride pin" + desc = "A pin displaying pride in one's identity." + icon_state = "pride" + slot = ACCESSORY_SLOT_MEDAL + +/obj/item/clothing/accessory/pride/bi + name = "bisexual pride pin" + icon_state = "pride_bi" + +/obj/item/clothing/accessory/pride/trans + name = "transgender pride pin" + icon_state = "pride_trans" + +/obj/item/clothing/accessory/pride/ace + name = "asexual pride pin" + icon_state = "pride_ace" + +/obj/item/clothing/accessory/pride/enby + name = "nonbinary pride pin" + icon_state = "pride_enby" + +/obj/item/clothing/accessory/pride/pan + name = "pansexual pride pin" + icon_state = "pride_pan" + +/obj/item/clothing/accessory/pride/lesbian + name = "lesbian pride pin" + icon_state = "pride_lesbian" + +/obj/item/clothing/accessory/pride/intersex + name = "intersex pride pin" + icon_state = "pride_intersex" + +/obj/item/clothing/accessory/pride/vore + name = "vore pride pin" + icon_state = "pride_vore" \ No newline at end of file diff --git a/code/modules/clothing/under/accessories/clothing.dm b/code/modules/clothing/under/accessories/clothing.dm index c34466ad65..315c345ab8 100644 --- a/code/modules/clothing/under/accessories/clothing.dm +++ b/code/modules/clothing/under/accessories/clothing.dm @@ -103,6 +103,44 @@ prob(2);/obj/item/clothing/accessory/hawaiian/yellow ) +/* + * 80s + */ + +/obj/item/clothing/accessory/tropical + name = "black tropical shirt" + desc = "A classic themed neosilk tropical shirt. This one makes you feel like an animal." + icon_state = "animalstyle" + armor = list(melee = 0, bullet = 0, laser = 0,energy = 0, bomb = 0, bio = 0, rad = 0) + slot_flags = SLOT_OCLOTHING | SLOT_TIE + body_parts_covered = UPPER_TORSO|LOWER_TORSO + siemens_coefficient = 0.9 + w_class = ITEMSIZE_NORMAL + slot = ACCESSORY_SLOT_OVER + +/obj/item/clothing/accessory/tropical/green + name = "puke-green tropical shirt" + desc = "A classic themed neosilk tropical shirt. This one makes you look like puke." + icon_state = "tropicopuke" + +/obj/item/clothing/accessory/tropical/pink + name = "pink tropical shirt" + desc = "A classic themed neosilk tropical shirt. This one makes you feel nostalgic." + icon_state = "3005vintage" + +/obj/item/clothing/accessory/tropical/blue + name = "blue tropical shirt" + desc = "A classic themed neosilk tropical shirt. This one makes you feel out of touch." + icon_state = "miamivice" + +/obj/item/clothing/accessory/tropical_random/New() + return pick( + prob(2);/obj/item/clothing/accessory/tropical, + prob(2);/obj/item/clothing/accessory/tropical/green, + prob(2);/obj/item/clothing/accessory/tropical/pink, + prob(2);/obj/item/clothing/accessory/tropical/blue + ) + /* * Chaps */ diff --git a/code/modules/clothing/under/miscellaneous.dm b/code/modules/clothing/under/miscellaneous.dm index 8367a6e045..a200f4538d 100644 --- a/code/modules/clothing/under/miscellaneous.dm +++ b/code/modules/clothing/under/miscellaneous.dm @@ -1270,6 +1270,38 @@ icon_state = "curator" worn_state = "curator" +/* + * 80s + */ + +/obj/item/clothing/under/tropical + name = "black tropical oufit" + desc = "A classic themed outfit. This one makes you feel like an animal." + icon_state = "animalstyle" + worn_state = "animalstyle" + starting_accessories = list(/obj/item/clothing/accessory/tropical) + +/obj/item/clothing/under/tropical/green + name = "puke-green tropical oufit" + desc = "A classic themed outfit. This one makes you look like puke." + icon_state = "tropicopuke" + worn_state = "tropicopuke" + starting_accessories = list(/obj/item/clothing/accessory/tropical/green) + +/obj/item/clothing/under/tropical/pink + name = "pink tropical oufit" + desc = "A classic themed outfit. This one makes you feel nostalgic." + icon_state = "3005vintage" + worn_state = "3005vintage" + starting_accessories = list(/obj/item/clothing/accessory/tropical/pink) + +/obj/item/clothing/under/tropical/blue + name = "pink tropical oufit" + desc = "A classic themed outfit. This one makes you feel out of touch." + icon_state = "miamivice" + worn_state = "miamivice" + starting_accessories = list(/obj/item/clothing/accessory/tropical/blue) + /* * Modern */ diff --git a/code/modules/clothing/under/miscellaneous_vr.dm b/code/modules/clothing/under/miscellaneous_vr.dm index eb53f9e138..93f46e3e9d 100644 --- a/code/modules/clothing/under/miscellaneous_vr.dm +++ b/code/modules/clothing/under/miscellaneous_vr.dm @@ -308,4 +308,72 @@ item_state = "lewdcap" rolled_sleeves = -1 rolled_down = -1 - body_parts_covered = UPPER_TORSO // frankly this thing's a fucking embarassment \ No newline at end of file + body_parts_covered = UPPER_TORSO // frankly this thing's a fucking embarassment + +/obj/item/clothing/under/undersuit // undersuits! intended for wearing under hardsuits or for being too lazy to not wear anything other than it + name = "undersuit" + desc = "A nondescript undersuit, intended for wearing under a voidsuit or other EVA equipment. Breathable, yet sleek." + icon = 'icons/inventory/uniform/item_vr.dmi' + default_worn_icon = 'icons/inventory/uniform/mob_vr.dmi' + rolled_down_icon = 'icons/inventory/uniform/mob_vr_rolled_down.dmi' + icon_state = "bodysuit" + item_state = "bodysuit" + rolled_sleeves = -1 + rolled_down_icon_override = FALSE + +/obj/item/clothing/under/undersuit/eva + name = "EVA undersuit" + desc = "A nondescript undersuit, intended for wearing under a voidsuit or other EVA equipment. This one is specifically made for EVA usage, but differs little from the standard." + icon_state = "bodysuit_eva" + item_state = "bodysuit_eva" + +/obj/item/clothing/under/undersuit/command + name = "command undersuit" + desc = "A fancy undersuit, intended for wearing under a voidsuit or other EVA equipment. This one is specifically made for those in Command, and comes with a swanky gold trim and navy blue inlay." + icon_state = "bodysuit_com" + item_state = "bodysuit_com" + +/obj/item/clothing/under/undersuit/sec + name = "security undersuit" + desc = "A reinforced undersuit, intended for wearing under a voidsuit or other EVA equipment. This one is specifically made for those in Security, and has slight protective capabilities against simple melee attacks." + armor = list(melee = 10, bullet = 0, laser = 0,energy = 0, bomb = 0, bio = 0, rad = 0) + siemens_coefficient = 0.9 + icon_state = "bodysuit_sec" + item_state = "bodysuit_sec" + +/obj/item/clothing/under/undersuit/sec/hos + name = "security command undersuit" + desc = "A reinforced undersuit, intended for wearing under a voidsuit or other EVA equipment. This one is specifically made for the Head of Security or equivalent, and has slight protective capabilities against simple melee attacks." + icon_state = "bodysuit_seccom" + item_state = "bodysuit_seccom" + +/obj/item/clothing/under/undersuit/hazard + name = "hazard undersuit" + desc = "An undersuit, intended for wearing under a voidsuit or other EVA equipment. This one is specifically made for Engineering crew, and comes with slight radiation absorption capabilities. Not a lot, but it's there." + armor = list(melee = 0, bullet = 0, laser = 0,energy = 0, bomb = 0, bio = 0, rad = 10) + icon_state = "bodysuit_haz" + item_state = "bodysuit_haz" + +/obj/item/clothing/under/undersuit/mining + name = "mining undersuit" + desc = "An undersuit, intended for wearing under a voidsuit or other EVA equipment. This one is specifically made for Mining crew, and comes with an interestingly colored trim." + icon_state = "bodysuit_min" + item_state = "bodysuit_min" + +/obj/item/clothing/under/undersuit/emt + name = "medical technician undersuit" + desc = "An undersuit, intended for wearing under a voidsuit or other EVA equipment. This one is specifically made for Medical response crew, and comes with a distinctive coloring scheme." + icon_state = "bodysuit_emt" + item_state = "bodysuit_emt" + +/obj/item/clothing/under/undersuit/explo + name = "exploration undersuit" + desc = "An undersuit, intended for wearing under a voidsuit or other EVA equipment. This one is specifically made for Exploration crew, for hazardous environments." + icon_state = "bodysuit_exp" + item_state = "bodysuit_exp" + +/obj/item/clothing/under/undersuit/centcom + name = "Central Command undersuit" + desc = "A very descript undersuit, intended for wearing under a voidsuit or other EVA equipment. This one is specifically made for NanoTrasen Central Command officers, and comes with a swanky gold trim and other fancy markings." + icon_state = "bodysuit_cent" + item_state = "bodysuit_cent" \ No newline at end of file diff --git a/code/modules/economy/price_list.dm b/code/modules/economy/price_list.dm index 10199e9e46..3a92f3d46b 100644 --- a/code/modules/economy/price_list.dm +++ b/code/modules/economy/price_list.dm @@ -615,7 +615,7 @@ // Cookies and Candies // -/obj/item/weapon/reagent_containers/food/snacks/cookiesnack +/obj/item/weapon/reagent_containers/food/snacks/cookie price_tag = 1 /obj/item/weapon/reagent_containers/food/snacks/chocolatebar diff --git a/code/modules/economy/vending_machines.dm b/code/modules/economy/vending_machines.dm index 133894337d..4973281ccd 100644 --- a/code/modules/economy/vending_machines.dm +++ b/code/modules/economy/vending_machines.dm @@ -1219,7 +1219,10 @@ /obj/item/clothing/mask/bandana/red = 5, /obj/item/clothing/suit/storage/hooded/wintercoat/security = 5, /obj/item/clothing/accessory/armband = 5, - /obj/item/clothing/accessory/holster/waist = 5 + /obj/item/clothing/accessory/holster/armpit = 2, //VOREStation edit - gives some variety of available holsters for those who forgot to bring their own + /obj/item/clothing/accessory/holster/waist = 2, //VOREStation edit - But also reduces the number per type, so there's 8 overall rather than like, 20 + /obj/item/clothing/accessory/holster/hip = 2, //VOREStation edit + /obj/item/clothing/accessory/holster/leg = 2 //VOREStation edit ) req_log_access = access_hop has_logs = 1 @@ -1624,4 +1627,4 @@ /obj/item/clothing/under/clown/rainbow = 1 ) req_log_access = access_hop - has_logs = 1 \ No newline at end of file + has_logs = 1 diff --git a/code/modules/economy/vending_machines_vr.dm b/code/modules/economy/vending_machines_vr.dm index 756a17645f..3a58a1018b 100644 --- a/code/modules/economy/vending_machines_vr.dm +++ b/code/modules/economy/vending_machines_vr.dm @@ -218,7 +218,7 @@ /obj/item/weapon/reagent_containers/food/snacks/sliceable/orangecake = 10, /obj/item/weapon/reagent_containers/food/snacks/sliceable/peanutcake = 10, /obj/item/weapon/reagent_containers/food/snacks/icecreamsandwich = 15, - /obj/item/weapon/reagent_containers/food/snacks/cookiesnack = 15, + /obj/item/weapon/reagent_containers/food/snacks/cookie = 15, /obj/item/weapon/reagent_containers/food/snacks/sliceable/brownies = 10, /obj/item/weapon/reagent_containers/food/snacks/chocolatebar = 10, /obj/item/weapon/reagent_containers/food/snacks/chocolatepiece = 20 @@ -415,7 +415,10 @@ /obj/item/clothing/shoes/boots/workboots/toeless = 5, /obj/item/clothing/shoes/boots/winter = 5, /obj/item/clothing/shoes/boots/workboots = 5, - /obj/item/clothing/shoes/footwraps = 5) + /obj/item/clothing/shoes/footwraps = 5, + /obj/item/clothing/shoes/sneakerspurple = 5, + /obj/item/clothing/shoes/sneakersblue = 5, + /obj/item/clothing/shoes/sneakersred = 5) prices = list(/obj/item/clothing/gloves/evening = 50, /obj/item/clothing/gloves/fingerless = 50, /obj/item/clothing/gloves/black = 50, @@ -473,7 +476,10 @@ /obj/item/clothing/shoes/boots/workboots/toeless = 50, /obj/item/clothing/shoes/boots/winter = 50, /obj/item/clothing/shoes/boots/workboots = 50, - /obj/item/clothing/shoes/footwraps = 50) + /obj/item/clothing/shoes/footwraps = 50, + /obj/item/clothing/shoes/sneakerspurple = 50, + /obj/item/clothing/shoes/sneakersblue = 50, + /obj/item/clothing/shoes/sneakersred = 50) premium = list(/obj/item/clothing/gloves/rainbow = 1, /obj/item/clothing/shoes/rainbow = 1,) contraband = list(/obj/item/clothing/shoes/syndigaloshes = 1, @@ -539,6 +545,10 @@ /obj/item/clothing/accessory/hawaiian/pink = 5, /obj/item/clothing/accessory/hawaiian/red = 5, /obj/item/clothing/accessory/hawaiian/yellow = 5, + /obj/item/clothing/accessory/tropical = 5, + /obj/item/clothing/accessory/tropical/green = 5, + /obj/item/clothing/accessory/tropical/pink = 5, + /obj/item/clothing/accessory/tropical/blue = 5, /obj/item/clothing/accessory/locket = 5, /obj/item/weapon/storage/backpack/purse = 1, /obj/item/clothing/accessory/sash = 5, @@ -652,6 +662,10 @@ /obj/item/clothing/accessory/hawaiian/pink = 50, /obj/item/clothing/accessory/hawaiian/red = 50, /obj/item/clothing/accessory/hawaiian/yellow = 50, + /obj/item/clothing/accessory/tropical = 50, + /obj/item/clothing/accessory/tropical/green = 50, + /obj/item/clothing/accessory/tropical/pink = 50, + /obj/item/clothing/accessory/tropical/blue = 50, /obj/item/clothing/accessory/locket = 50, /obj/item/weapon/storage/backpack/purse = 50, /obj/item/clothing/accessory/sash = 50, @@ -918,7 +932,11 @@ /obj/item/clothing/under/wedding/bride_white = 5, /obj/item/weapon/storage/backpack/ = 5, /obj/item/weapon/storage/backpack/messenger = 5, - /obj/item/weapon/storage/backpack/satchel = 5) + /obj/item/weapon/storage/backpack/satchel = 5, + /obj/item/clothing/under/tropical = 5, + /obj/item/clothing/under/tropical/green = 5, + /obj/item/clothing/under/tropical/pink = 5, + /obj/item/clothing/under/tropical/blue = 5) prices = list(/obj/item/clothing/under/bathrobe = 50, /obj/item/clothing/under/dress/black_corset = 50, /obj/item/clothing/under/blazer = 50, @@ -1089,7 +1107,11 @@ /obj/item/clothing/under/wedding/bride_white = 50, /obj/item/weapon/storage/backpack/ = 50, /obj/item/weapon/storage/backpack/messenger = 50, - /obj/item/weapon/storage/backpack/satchel = 50) + /obj/item/weapon/storage/backpack/satchel = 50, + /obj/item/clothing/under/tropical = 50, + /obj/item/clothing/under/tropical/green = 50, + /obj/item/clothing/under/tropical/pink = 50, + /obj/item/clothing/under/tropical/blue = 50) premium = list(/obj/item/clothing/under/color/rainbow = 1) contraband = list(/obj/item/clothing/under/rank/clown = 1) @@ -1217,7 +1239,10 @@ /obj/item/clothing/suit/varsity/brown = 5, /obj/item/clothing/suit/storage/hooded/wintercoat = 5, /obj/item/clothing/suit/storage/hooded/wintercoat/aformal = 5, - /obj/item/clothing/suit/storage/teshari/cloak/standard/white_grey = 5) + /obj/item/clothing/suit/storage/teshari/cloak/standard/white_grey = 5, + /obj/item/clothing/suit/storage/puffyred = 5, + /obj/item/clothing/suit/storage/puffypurple = 5, + /obj/item/clothing/suit/storage/puffyblue = 5) prices = list(/obj/item/clothing/suit/storage/apron = 100, /obj/item/clothing/suit/storage/flannel/aqua = 100, /obj/item/clothing/suit/storage/toggle/bomber = 100, @@ -1306,7 +1331,10 @@ /obj/item/clothing/suit/varsity/brown = 100, /obj/item/clothing/suit/storage/hooded/wintercoat = 100, /obj/item/clothing/suit/storage/hooded/wintercoat/aformal = 100, - /obj/item/clothing/suit/storage/teshari/cloak/standard/white_grey = 100) + /obj/item/clothing/suit/storage/teshari/cloak/standard/white_grey = 100, + /obj/item/clothing/suit/storage/puffyred = 100, + /obj/item/clothing/suit/storage/puffypurple = 100, + /obj/item/clothing/suit/storage/puffyblue = 100) premium = list(/obj/item/clothing/suit/imperium_monk = 3, /obj/item/clothing/suit/storage/hooded/wintercoat/cosmic = 1) contraband = list(/obj/item/toy/katana = 1) @@ -2516,6 +2544,7 @@ /obj/item/weapon/reagent_containers/food/snacks/clownstears = 10, /obj/item/weapon/reagent_containers/food/snacks/coldchili = 10, /obj/item/weapon/reagent_containers/food/snacks/cookiesnack = 10, + /obj/item/weapon/reagent_containers/food/snacks/cookie = 10, /obj/item/weapon/reagent_containers/food/snacks/corn_dog = 10, /obj/item/weapon/reagent_containers/food/snacks/cosmicbrowniesslice = 10, /obj/item/weapon/reagent_containers/food/snacks/cosmicbrowniesslice/filled = 10, @@ -3000,6 +3029,7 @@ /obj/item/weapon/reagent_containers/food/snacks/clownstears = 10, /obj/item/weapon/reagent_containers/food/snacks/coldchili = 10, /obj/item/weapon/reagent_containers/food/snacks/cookiesnack = 10, + /obj/item/weapon/reagent_containers/food/snacks/cookie = 10, /obj/item/weapon/reagent_containers/food/snacks/corn_dog = 10, /obj/item/weapon/reagent_containers/food/snacks/cosmicbrowniesslice = 10, /obj/item/weapon/reagent_containers/food/snacks/cosmicbrowniesslice/filled = 10, diff --git a/code/modules/emotes/emote_mob.dm b/code/modules/emotes/emote_mob.dm index 7516be2eff..b0b3fce0bb 100644 --- a/code/modules/emotes/emote_mob.dm +++ b/code/modules/emotes/emote_mob.dm @@ -27,6 +27,11 @@ if(world.time < next_emote) to_chat(src, SPAN_WARNING("You cannot use another emote yet.")) return + //VOREStation Addition Start + if(forced_psay) + pme(message) + return + //VOREStation Addition End if(act == "help") if(world.time >= next_emote_refresh) diff --git a/code/modules/events/event.dm b/code/modules/events/event.dm index a17489921f..0b48f77fc3 100644 --- a/code/modules/events/event.dm +++ b/code/modules/events/event.dm @@ -9,9 +9,10 @@ var/one_shot = 0 // If true, then the event will not be re-added to the list of available events var/add_to_queue= 1 // If true, add back to the queue of events upon finishing. var/list/role_weights = list() + var/list/min_job_count = list() var/datum/event/event_type -/datum/event_meta/New(var/event_severity, var/event_name, var/datum/event/type, var/event_weight, var/list/job_weights, var/is_one_shot = 0, var/min_event_weight = 0, var/max_event_weight = 0, var/add_to_queue = 1) +/datum/event_meta/New(var/event_severity, var/event_name, var/datum/event/type, var/event_weight, var/list/job_weights, var/is_one_shot = 0, var/min_event_weight = 0, var/max_event_weight = 0, var/add_to_queue = 1, var/list/min_jobs) name = event_name severity = event_severity event_type = type @@ -22,6 +23,9 @@ src.add_to_queue = add_to_queue if(job_weights) role_weights = job_weights + if(min_jobs) + min_job_count = min_jobs + /datum/event_meta/proc/get_weight(var/list/active_with_role) if(!enabled) @@ -40,6 +44,16 @@ return total_weight +/datum/event_meta/proc/minimum_active(var/list/active_with_role) + var/can_fire = TRUE + for(var/role in min_job_count) + if(role in active_with_role) + if(active_with_role[role] < min_job_count[role]) + can_fire = FALSE + break + + return can_fire + /datum/event_meta/no_overmap/get_weight() //these events have overmap equivalents, and shouldn't fire randomly if overmap is used return global.using_map.use_overmap ? 0 : ..() diff --git a/code/modules/events/event_container.dm b/code/modules/events/event_container.dm index 09b624058c..99783780b0 100644 --- a/code/modules/events/event_container.dm +++ b/code/modules/events/event_container.dm @@ -78,6 +78,9 @@ var/global/list/severity_to_string = list(EVENT_LEVEL_MUNDANE = "Mundane", EVENT if(!EM.enabled) return 0 + if(!(EM.minimum_active(active_with_role))) + return 0 + var/weight = EM.get_weight(active_with_role) var/last_time = last_event_time[EM] if(last_time) diff --git a/code/modules/events/event_container_vr.dm b/code/modules/events/event_container_vr.dm index ee4a416ab5..874dca6aea 100644 --- a/code/modules/events/event_container_vr.dm +++ b/code/modules/events/event_container_vr.dm @@ -2,7 +2,7 @@ #define ASSIGNMENT_AI "AI" #define ASSIGNMENT_CYBORG "Cyborg" #define ASSIGNMENT_ENGINEER "Engineer" -#define ASSIGNMENT_GARDENER "Gardener" +#define ASSIGNMENT_GARDENER "Botanist" #define ASSIGNMENT_JANITOR "Janitor" #define ASSIGNMENT_MEDICAL "Medical" #define ASSIGNMENT_SCIENTIST "Scientist" @@ -30,13 +30,13 @@ // Severity level, event name, even type, base weight, role weights, one shot, min weight, max weight. Last two only used if set and non-zero new /datum/event_meta(EVENT_LEVEL_MUNDANE, "Nothing", /datum/event/nothing, 400), // Bluescreens APCs, but they still work - new /datum/event_meta(EVENT_LEVEL_MUNDANE, "APC Damage", /datum/event/apc_damage, 20, list(ASSIGNMENT_ENGINEER = 20)), - new /datum/event_meta(EVENT_LEVEL_MUNDANE, "Brand Intelligence",/datum/event/brand_intelligence, 0, list(ASSIGNMENT_ENGINEER = 10), 1), - new /datum/event_meta(EVENT_LEVEL_MUNDANE, "Camera Damage", /datum/event/camera_damage, 20, list(ASSIGNMENT_ENGINEER = 20)), - new /datum/event_meta(EVENT_LEVEL_MUNDANE, "Canister Leak", /datum/event/canister_leak, 10, list(ASSIGNMENT_ENGINEER = 20)), - new /datum/event_meta(EVENT_LEVEL_MUNDANE, "Space Dust", /datum/event/dust, 0, list(ASSIGNMENT_ENGINEER = 20), 0, 0, 50), + new /datum/event_meta(EVENT_LEVEL_MUNDANE, "APC Damage", /datum/event/apc_damage, 20, list(ASSIGNMENT_ENGINEER = 20), min_jobs = list(ASSIGNMENT_ENGINEER = 1)), + new /datum/event_meta(EVENT_LEVEL_MUNDANE, "Brand Intelligence",/datum/event/brand_intelligence, 0, list(ASSIGNMENT_ENGINEER = 10), 1, min_jobs = list(ASSIGNMENT_ENGINEER = 1)), + new /datum/event_meta(EVENT_LEVEL_MUNDANE, "Camera Damage", /datum/event/camera_damage, 20, list(ASSIGNMENT_ENGINEER = 20), min_jobs = list(ASSIGNMENT_ENGINEER = 1)), + new /datum/event_meta(EVENT_LEVEL_MUNDANE, "Canister Leak", /datum/event/canister_leak, 10, list(ASSIGNMENT_ENGINEER = 20), min_jobs = list(ASSIGNMENT_ENGINEER = 1)), + new /datum/event_meta(EVENT_LEVEL_MUNDANE, "Space Dust", /datum/event/dust, 0, list(ASSIGNMENT_ENGINEER = 20), 0, 0, 50, min_jobs = list(ASSIGNMENT_ENGINEER = 2)), new /datum/event_meta(EVENT_LEVEL_MUNDANE, "Economic News", /datum/event/economic_event, 300), - new /datum/event_meta(EVENT_LEVEL_MUNDANE, "Lost Carp", /datum/event/carp_migration, 0, list(ASSIGNMENT_SECURITY = 10), 1), + new /datum/event_meta(EVENT_LEVEL_MUNDANE, "Lost Carp", /datum/event/carp_migration, 0, list(ASSIGNMENT_SECURITY = 10), 1, min_jobs = list(ASSIGNMENT_SECURITY = 3)), new /datum/event_meta(EVENT_LEVEL_MUNDANE, "Money Hacker", /datum/event/money_hacker, 0, list(ASSIGNMENT_ANY = 4), 1, 10, 25), new /datum/event_meta(EVENT_LEVEL_MUNDANE, "Money Lotto", /datum/event/money_lotto, 0, list(ASSIGNMENT_ANY = 1), 1, 5, 15), //new /datum/event_meta(EVENT_LEVEL_MUNDANE, "Mundane News", /datum/event/mundane_news, 300), @@ -47,7 +47,7 @@ // Spawns mice, lizards, or dud spiderlings new /datum/event_meta(EVENT_LEVEL_MUNDANE, "Vermin Infestation",/datum/event/infestation, 50, list(ASSIGNMENT_JANITOR = 25), 1), // Rot only weakens walls, not destroy them - new /datum/event_meta(EVENT_LEVEL_MUNDANE, "Wallrot", /datum/event/wallrot, 0, list(ASSIGNMENT_ENGINEER = 30), 1), + new /datum/event_meta(EVENT_LEVEL_MUNDANE, "Wallrot", /datum/event/wallrot, 0, list(ASSIGNMENT_ENGINEER = 30), 1, min_jobs = list(ASSIGNMENT_ENGINEER = 1)), new /datum/event_meta(EVENT_LEVEL_MUNDANE, "Aurora Caelus", /datum/event/aurora_caelus, 2, list(), 1), ) add_disabled_events(list( @@ -59,33 +59,33 @@ available_events = list( new /datum/event_meta(EVENT_LEVEL_MODERATE, "Nothing", /datum/event/nothing, 1600), // Leaks gas into an unoccupied room. - new /datum/event_meta(EVENT_LEVEL_MODERATE, "Atmos Leak", /datum/event/atmos_leak, 30, list(ASSIGNMENT_ENGINEER = 25), 1), - new /datum/event_meta(EVENT_LEVEL_MODERATE, "Carp School", /datum/event/carp_migration, 0, list(ASSIGNMENT_SECURITY = 30), 1), + new /datum/event_meta(EVENT_LEVEL_MODERATE, "Atmos Leak", /datum/event/atmos_leak, 30, list(ASSIGNMENT_ENGINEER = 25), 1, min_jobs = list(ASSIGNMENT_ENGINEER = 1)), + new /datum/event_meta(EVENT_LEVEL_MODERATE, "Carp School", /datum/event/carp_migration, 0, list(ASSIGNMENT_SECURITY = 30), 1, min_jobs = list(ASSIGNMENT_SECURITY = 3)), // Just disables comms for a short while. - new /datum/event_meta(EVENT_LEVEL_MODERATE, "Communication Blackout", /datum/event/communications_blackout, 500, list(ASSIGNMENT_AI = 150, ASSIGNMENT_SECURITY = 120), 1), + new /datum/event_meta(EVENT_LEVEL_MODERATE, "Communication Blackout", /datum/event/communications_blackout, 500, list(ASSIGNMENT_AI = 100, ASSIGNMENT_SECURITY = 50), 1), // Just blows out a few lights new /datum/event_meta(EVENT_LEVEL_MODERATE, "Electrical Storm", /datum/event/electrical_storm, 70, list(ASSIGNMENT_ENGINEER = 20, ASSIGNMENT_JANITOR = 150), 1), // This one is just too fun. new /datum/event_meta(EVENT_LEVEL_MODERATE, "Gravity Failure", /datum/event/gravity, 75, list(ASSIGNMENT_ENGINEER = 60), 1), // Temporary power failure, but mitigatead by subgrids - new /datum/event_meta(EVENT_LEVEL_MODERATE, "Grid Check", /datum/event/grid_check, 0, list(ASSIGNMENT_ENGINEER = 25), 1), + new /datum/event_meta(EVENT_LEVEL_MODERATE, "Grid Check", /datum/event/grid_check, 0, list(ASSIGNMENT_ENGINEER = 25), 1, min_jobs = list(ASSIGNMENT_ENGINEER = 1)), // Pure RP fun, no mechanical effects. - new /datum/event_meta(EVENT_LEVEL_MODERATE, "Ion Storm", /datum/event/ionstorm, 0, list(ASSIGNMENT_AI = 80, ASSIGNMENT_CYBORG = 50, ASSIGNMENT_ENGINEER = 15, ASSIGNMENT_SCIENTIST = 5)), + new /datum/event_meta(EVENT_LEVEL_MODERATE, "Ion Storm", /datum/event/ionstorm, 0, list(ASSIGNMENT_AI = 80, ASSIGNMENT_CYBORG = 50, ASSIGNMENT_ENGINEER = 15, ASSIGNMENT_SCIENTIST = 5), min_jobs = list(ASSIGNMENT_AI = 1)), // Opens doors in brig. So just RP fun new /datum/event_meta(EVENT_LEVEL_MODERATE, "Prison Break", /datum/event/prison_break, 10, list(ASSIGNMENT_SECURITY = 100), 1), // Radiation, but only in space. - new /datum/event_meta(EVENT_LEVEL_MODERATE, "Rogue Drones", /datum/event/rogue_drone, 0, list(ASSIGNMENT_SECURITY = 20), 1), + new /datum/event_meta(EVENT_LEVEL_MODERATE, "Rogue Drones", /datum/event/rogue_drone, 0, list(ASSIGNMENT_SECURITY = 20), 1, min_jobs = list(ASSIGNMENT_SECURITY = 3)), new /datum/event_meta(EVENT_LEVEL_MODERATE, "Solar Storm", /datum/event/solar_storm, 30, list(ASSIGNMENT_ENGINEER = 40, ASSIGNMENT_SECURITY = 30), 1), - new /datum/event_meta(EVENT_LEVEL_MODERATE, "Space Dust", /datum/event/dust, 0, list(ASSIGNMENT_ENGINEER = 20), 1, 0, 50), + new /datum/event_meta(EVENT_LEVEL_MODERATE, "Space Dust", /datum/event/dust, 0, list(ASSIGNMENT_ENGINEER = 20), 1, 0, 50, min_jobs = list(ASSIGNMENT_ENGINEER = 3)), new /datum/event_meta(EVENT_LEVEL_MODERATE, "Virology Breach", /datum/event/prison_break/virology, 0, list(ASSIGNMENT_ENGINEER = 30), 1), new /datum/event_meta(EVENT_LEVEL_MODERATE, "Xenobiology Breach", /datum/event/prison_break/xenobiology, 0, list(ASSIGNMENT_ENGINEER = 30), 1), - new /datum/event_meta(EVENT_LEVEL_MODERATE, "Spider Infestation", /datum/event/spider_infestation, 0, list(ASSIGNMENT_SECURITY = 30), 1), + new /datum/event_meta(EVENT_LEVEL_MODERATE, "Spider Infestation", /datum/event/spider_infestation, 0, list(ASSIGNMENT_SECURITY = 30), 1, min_jobs = list(ASSIGNMENT_SECURITY = 2)), //Evil grubs that drain station power slightly - new /datum/event_meta(EVENT_LEVEL_MODERATE, "Grub Infestation", /datum/event/grub_infestation, 0, list(ASSIGNMENT_SECURITY = 10, ASSIGNMENT_ENGINEER = 30), 1), - new /datum/event_meta(EVENT_LEVEL_MODERATE, "Drone Pod Drop", /datum/event/drone_pod_drop, 10, list(ASSIGNMENT_SCIENTIST = 40), 1), + new /datum/event_meta(EVENT_LEVEL_MODERATE, "Grub Infestation", /datum/event/grub_infestation, 0, list(ASSIGNMENT_SECURITY = 10, ASSIGNMENT_ENGINEER = 30), 1, min_jobs = list(ASSIGNMENT_SECURITY = 1, ASSIGNMENT_ENGINEER = 1)), + new /datum/event_meta(EVENT_LEVEL_MODERATE, "Drone Pod Drop", /datum/event/drone_pod_drop, 25, list(ASSIGNMENT_SCIENTIST = 40), 1), new /datum/event_meta(EVENT_LEVEL_MODERATE, "Morph Spawn", /datum/event/morph_spawn, 75, list(ASSIGNMENT_ANY = 5), 0), new /datum/event_meta(EVENT_LEVEL_MODERATE, "Maintenance Predator", /datum/event/maintenance_predator, 100, list(ASSIGNMENT_ANY = 5), 0), - new /datum/event_meta(EVENT_LEVEL_MODERATE, "Jellyfish School", /datum/event/jellyfish_migration, 0, list(ASSIGNMENT_ANY = 1, ASSIGNMENT_SECURITY = 15, ASSIGNMENT_MEDICAL = 3), 1), + new /datum/event_meta(EVENT_LEVEL_MODERATE, "Jellyfish School", /datum/event/jellyfish_migration, 0, list(ASSIGNMENT_SECURITY = 15, ASSIGNMENT_MEDICAL = 3), 1, min_jobs = list(ASSIGNMENT_SECURITY = 2)), ) add_disabled_events(list( new /datum/event_meta(EVENT_LEVEL_MODERATE, "Appendicitis", /datum/event/spontaneous_appendicitis, 0, list(ASSIGNMENT_MEDICAL = 30), 1), @@ -99,11 +99,11 @@ /datum/event_container/major/New() available_events = list( new /datum/event_meta(EVENT_LEVEL_MAJOR, "Nothing", /datum/event/nothing, 3600), - new /datum/event_meta(EVENT_LEVEL_MAJOR, "Atmos Leak", /datum/event/atmos_leak, 20, list(ASSIGNMENT_ENGINEER = 25), 1), + new /datum/event_meta(EVENT_LEVEL_MAJOR, "Atmos Leak", /datum/event/atmos_leak, 20, list(ASSIGNMENT_ENGINEER = 25), 1, min_jobs = list(ASSIGNMENT_ENGINEER = 1)), new /datum/event_meta(EVENT_LEVEL_MAJOR, "Space Vines", /datum/event/spacevine, 10, list(ASSIGNMENT_ENGINEER = 7, ASSIGNMENT_GARDENER = 2), 1), - new /datum/event_meta(EVENT_LEVEL_MAJOR, "Carp Migration", /datum/event/carp_migration, 10, list(ASSIGNMENT_SECURITY = 5), 1), + new /datum/event_meta(EVENT_LEVEL_MAJOR, "Carp Migration", /datum/event/carp_migration, 10, list(ASSIGNMENT_SECURITY = 5), 1, min_jobs = list(ASSIGNMENT_SECURITY = 3)), new /datum/event_meta(EVENT_LEVEL_MAJOR, "Containment Breach", /datum/event/prison_break/station, 0, list(ASSIGNMENT_ANY = 5), 1), - new /datum/event_meta(EVENT_LEVEL_MAJOR, "Jellyfish Migration", /datum/event/jellyfish_migration, 5, list(ASSIGNMENT_ANY = 1, ASSIGNMENT_SECURITY = 5, ASSIGNMENT_MEDICAL = 3), 1), + new /datum/event_meta(EVENT_LEVEL_MAJOR, "Jellyfish Migration", /datum/event/jellyfish_migration, 5, list(ASSIGNMENT_ANY = 1, ASSIGNMENT_SECURITY = 5, ASSIGNMENT_MEDICAL = 3), 1, min_jobs = list(ASSIGNMENT_SECURITY = 2)), ) add_disabled_events(list( new /datum/event_meta(EVENT_LEVEL_MAJOR, "Meteor Strike", /datum/event/meteor_strike, 10, list(ASSIGNMENT_ENGINEER = 15), 1), diff --git a/code/modules/events/event_dynamic.dm b/code/modules/events/event_dynamic.dm index e391637f4f..e51dbf2472 100644 --- a/code/modules/events/event_dynamic.dm +++ b/code/modules/events/event_dynamic.dm @@ -186,7 +186,7 @@ var/list/event_last_fired = list() active_with_role["AI"] = 0 active_with_role["Cyborg"] = 0 active_with_role["Janitor"] = 0 - active_with_role["Gardener"] = 0 + active_with_role["Botanist"] = 0 for(var/mob/M in player_list) if(!M.mind || !M.client || M.client.is_afk(10 MINUTES)) // longer than 10 minutes AFK counts them as inactive @@ -227,7 +227,7 @@ var/list/event_last_fired = list() if(M.mind.assigned_role == "Janitor") active_with_role["Janitor"]++ - if(M.mind.assigned_role == "Gardener") - active_with_role["Gardener"]++ + if(M.mind.assigned_role == "Botanist") + active_with_role["Botanist"]++ return active_with_role diff --git a/code/modules/events/grubinfestation_vr.dm b/code/modules/events/grubinfestation_vr.dm index fa87a1c58d..fa2742a6bc 100644 --- a/code/modules/events/grubinfestation_vr.dm +++ b/code/modules/events/grubinfestation_vr.dm @@ -41,4 +41,4 @@ area_names |= grub_area.name if(area_names.len) var/english_list = english_list(area_names) - command_announcement.Announce("Sensors have narrowed down remaining active solargrubs to the followng areas: [english_list]", "Lifesign Alert") + command_announcement.Announce("Sensors have narrowed down remaining active solargrubs to the following areas: [english_list]", "Lifesign Alert") diff --git a/code/modules/food/drinkingglass/glass_boxes.dm b/code/modules/food/drinkingglass/glass_boxes.dm index acd69382c6..e7dd4b5dc7 100644 --- a/code/modules/food/drinkingglass/glass_boxes.dm +++ b/code/modules/food/drinkingglass/glass_boxes.dm @@ -81,4 +81,4 @@ /obj/item/weapon/storage/box/glasses/coffeemug name = "box of coffee mugs" - starts_with = list(/obj/item/weapon/reagent_containers/food/drinks/britcup = 7) \ No newline at end of file + starts_with = list(/obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug = 7) \ No newline at end of file diff --git a/code/modules/food/drinkingglass/mugs.dm b/code/modules/food/drinkingglass/mugs.dm new file mode 100644 index 0000000000..07a0873a30 --- /dev/null +++ b/code/modules/food/drinkingglass/mugs.dm @@ -0,0 +1,251 @@ +/* Warm Mugs! + * + * Contains: + * Britcup + * Text Mug + * Coffee Mugs + * Tall Mugs + */ + +/* + * Britcup + */ +/obj/item/weapon/reagent_containers/food/drinks/britcup + name = "cup" + desc = "A cup with the British flag emblazoned on it." + icon_state = "britcup" + volume = 30 + center_of_mass = list("x"=15, "y"=13) + +/obj/item/weapon/reagent_containers/food/drinks/britcup/on_reagent_change() + ..() + +/* + * Text Mug + */ +/obj/item/weapon/reagent_containers/food/drinks/textmug + name = "mug with text" + desc = "A mug with something written on it." + icon = 'icons/obj/drinks_vr.dmi' + icon_state = "textmug" + volume = 30 + center_of_mass = list("x"=15, "y"=13) + +/* + * Coffee Mugs + */ +/obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug + name = "coffee mug" + base_name = "mug" + desc = "A plain white coffee mug." + icon = 'icons/obj/drinks_mugs.dmi' + base_icon = "coffeecup" + volume = 30 + var/fillsource = "coffeecup" + +/obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/update_icon() + cut_overlays() + + if(reagents.total_volume) + var/image/filling = image('icons/obj/drinks_mugs.dmi', src, null) + var/percent = round((reagents.total_volume / volume) * 100) + switch(percent) + if(0 to 39) + filling.icon_state = null + return + if(40 to 79) filling.icon_state = "[fillsource]40" + if(80 to 99) filling.icon_state = "[fillsource]80" + if(100 to INFINITY) filling.icon_state = "[fillsource]100" + filling.color = reagents.get_color() + add_overlay(filling) + +// Government +/obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/sol + name = "\improper SCG coffee mug" + desc = "A blue coffee mug emblazoned with the crest of the Solar Confederate Government." + base_icon = "coffeecup_sol" + +/obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/fleet + name = "\improper SCG Fleet coffee cup" + desc = "A coffee mug imprinted with the emblem of the Solar Confederate Fleet." + base_icon = "coffeecup_fleet" + +/obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/fivearrows + name = "\improper Five Arrows coffee mug" + desc = "A coffee mug with the flag of the Five Arrows proudly displayed on it." + base_icon = "coffeecup_fivearrows" + +/obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/alma + name = "\improper Almach Association coffee cup" + desc = "A grey coffee cup emblazoned with the star of the Almach Association." + icon_state = "coffeecup_alma" + +/obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/almp + name = "\improper Almach Protectorate coffee cup" + desc = "A purple coffee cup emblazoned with the star of the Almach Protectorate." + icon_state = "coffeecup_almp" + +/obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/psc + name = "\improper Pearlshield coffee mug" + desc = "A coffee mug bearing the symbol of the Pearlshield Coalition." + base_icon = "coffeecup_psc" + +// Corporations +/obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/nt + name = "\improper NT coffee mug" + desc = "A blue NanoTrasen coffee mug." + base_icon = "coffeecup_NT" + +/obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/metal/wulf + name = "\improper Wulf Aeronautics coffee mug" + desc = "A metal coffee mug bearing the livery of Wulf Aeronautics." + base_icon = "coffeecup_wulf" + +/obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/gilthari + name = "\improper Gilthari Exports coffee mug" + desc = "A coffee mug bearing golden G of Gilthari Exports." + base_icon = "coffeecup_gilth" + +/obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/wt + name = "\improper Ward-Takahashi coffee mug" + desc = "A coffee mug in a geometric Ward-Takahashi design." + base_icon = "coffeecup_wt" + +/obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/aether + name = "\improper Aether Atmospherics coffee mug" + desc = "A coffee mug in Aether Atmospherics colours." + base_icon = "coffeecup_aether" + +/obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/zeng + name = "\improper Zeng-Hu coffee cup" + desc = "A coffee cup bearing the Zeng-Hu logo." + icon_state = "coffeecup_zeng" + +/obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/bishop + name = "\improper Bishop coffee mug" + desc = "A black coffee mug adorned with Bishop's logo." + base_icon = "coffeecup_bishop" + +/obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/oculum + name = "pawn coffee mug" + desc = "A black and blue coffee mug decorated with the logo of Oculum Broadcast." + base_icon = "coffeecup_oculum" + +/obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/talon + name = "\improper Talon coffee mug" + desc = "A teal colored coffee mug with the Talon star logo on its face." + base_icon = "coffeecup_talon" + +// Symbols, markings +/obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/one + name = "#1 coffee mug" + desc = "A white coffee mug, prominently featuring a #1." + base_icon = "coffeecup_one" + +/obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/puni + name = "#1 monkey coffee mug" + desc = "A white coffee mug, prominently featuring a \"#1 monkey\" decal." + base_icon = "coffeecup_puni" + +/obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/heart + name = "heart coffee mug" + desc = "A white coffee mug, it prominently features a red heart." + base_icon = "coffeecup_heart" + +/obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/pawn + name = "pawn coffee mug" + desc = "A black coffee mug adorned with the image of a red chess pawn." + base_icon = "coffeecup_pawn" + +/obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/diona + name = "diona nymph coffee mug" + desc = "A green coffee mug featuring the image of a diona nymph." + base_icon = "coffeecup_diona" + +/obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/britcup + name = "british coffee mug" + desc = "A coffee mug with the British flag emblazoned on it." + base_icon = "coffeecup_brit" + +/obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/flame + name = "flame coffee cup" + desc = "A coffee cup with the a flame emblazoned on it." + icon_state = "coffeecup_flame" + +// Pure colors & other +/obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/black + name = "black coffee mug" + desc = "A sleek black coffee mug." + base_icon = "coffeecup_black" + +/obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/green + name = "green coffee mug" + desc = "A pale green and pink coffee mug." + base_icon = "coffeecup_green" + +/obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/green/dark + desc = "A dark green coffee mug." + base_icon = "coffeecup_corp" + +/obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/blue + name = "blue coffee mug" + desc = "A blue coffee mug." + base_icon = "coffeecup_blue" + +/obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/rainbow + name = "rainbow coffee mug" + desc = "A rainbow coffee mug. The colors are almost as blinding as a welder." + base_icon = "coffeecup_rainbow" + +/obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/metal + name = "metal coffee mug" + desc = "A metal coffee mug. You're not sure which metal." + base_icon = "coffeecup_metal" + +/obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/glass + name = "glass coffee mug" + desc = "A glass coffee mug, using space age technology to keep it cool for use." + base_icon = "glasscoffeecup" + fillsource = "glasscoffeecup" + +/* + * Tall Mugs + */ +/obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/tall + name = "tall coffee mug" + desc = "An unreasonably tall coffee mug, for when you really need to wake up in the morning." + icon = 'icons/obj/drinks_mugs_tall.dmi' + base_icon = "coffeecup_tall" + fillsource = "coffeecup_tall" + volume = 60 + +/obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/tall/update_icon() + cut_overlays() + + if(reagents.total_volume) + var/image/filling = image('icons/obj/drinks_mugs_tall.dmi', src, null) + var/percent = round((reagents.total_volume / volume) * 100) + switch(percent) + if(0 to 69) + filling.icon_state = null + return + if(70 to 89) filling.icon_state = "[fillsource]70" + if(90 to 99) filling.icon_state = "[fillsource]90" + if(100 to INFINITY) filling.icon_state = "[fillsource]100" + filling.color = reagents.get_color() + add_overlay(filling) + +/obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/tall/black + name = "tall black coffee mug" + desc = "An unreasonably tall coffee mug, for when you really need to wake up in the morning. This one is black." + base_icon = "coffeecup_tall_black" + +/obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/tall/metal + name = "tall metal coffee mug" + desc = "An unreasonably tall coffee mug, for when you really need to wake up in the morning. This one is made of metal." + base_icon = "coffeecup_tall_metal" + +/obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/tall/rainbow + name = "tall rainbow coffee mug" + desc = "An unreasonably tall coffee mug, for when you really need to wake up in the morning. This one is rainbow colored." + base_icon = "coffeecup_tall_rainbow" \ No newline at end of file diff --git a/code/modules/food/food/drinks.dm b/code/modules/food/food/drinks.dm index ca9dc49115..c30f5053cf 100644 --- a/code/modules/food/food/drinks.dm +++ b/code/modules/food/food/drinks.dm @@ -420,10 +420,3 @@ volume = 60 center_of_mass = list("x"=15, "y"=4) -/obj/item/weapon/reagent_containers/food/drinks/britcup - name = "cup" - desc = "A cup with the British flag emblazoned on it." - icon_state = "britcup" - volume = 30 - center_of_mass = list("x"=15, "y"=13) - diff --git a/code/modules/food/food/drinks_vr.dm b/code/modules/food/food/drinks_vr.dm deleted file mode 100644 index 37dcb58c5f..0000000000 --- a/code/modules/food/food/drinks_vr.dm +++ /dev/null @@ -1,7 +0,0 @@ -/obj/item/weapon/reagent_containers/food/drinks/textmug - name = "mug with text" - desc = "A mug with something written on it." - icon = 'icons/obj/drinks_vr.dmi' - icon_state = "textmug" - volume = 30 - center_of_mass = list("x"=15, "y"=13) \ No newline at end of file diff --git a/code/modules/food/food/lunch.dm b/code/modules/food/food/lunch.dm index d0db75f16d..5879a8e95a 100644 --- a/code/modules/food/food/lunch.dm +++ b/code/modules/food/food/lunch.dm @@ -65,7 +65,7 @@ var/list/lunchables_snacks_ = list(/obj/item/weapon/reagent_containers/food/snac /obj/item/weapon/reagent_containers/food/snacks/honeybun, /obj/item/weapon/reagent_containers/food/snacks/custardbun, /obj/item/weapon/reagent_containers/food/snacks/honeytoast, - /obj/item/weapon/reagent_containers/food/snacks/cookiesnack, + /obj/item/weapon/reagent_containers/food/snacks/cookie, /obj/item/weapon/reagent_containers/food/snacks/fruitbar, /obj/item/weapon/reagent_containers/food/snacks/semki, /obj/item/weapon/reagent_containers/food/snacks/salo, diff --git a/code/modules/food/food/snacks.dm b/code/modules/food/food/snacks.dm index 0b031eaec3..b33ff1b7bb 100644 --- a/code/modules/food/food/snacks.dm +++ b/code/modules/food/food/snacks.dm @@ -1594,16 +1594,6 @@ nutriment_desc = list("noodles" = 2) bitesize = 1 -/obj/item/weapon/reagent_containers/food/snacks/fortunecookie - name = "Fortune cookie" - desc = "A true prophecy in each cookie!" - icon_state = "fortune_cookie" - filling_color = "#E8E79E" - center_of_mass = list("x"=15, "y"=14) - nutriment_amt = 3 - nutriment_desc = list("fortune cookie" = 2) - bitesize = 2 - /obj/item/weapon/reagent_containers/food/snacks/badrecipe name = "Burned mess" desc = "Someone should be demoted from chef for this." @@ -4224,6 +4214,15 @@ . = ..() reagents.add_reagent("bean_protein", 6) +/obj/item/weapon/reagent_containers/food/snacks/cookie + name = "chocolate chip cookie" + desc = "Just like your mother used to make." + filling_color = "#DBC94F" + icon_state = "cookie" + nutriment_amt = 5 + nutriment_desc = list("sweetness" = 2, "cookie" = 1, "chocolate" = 2) + bitesize = 1 + /obj/item/weapon/reagent_containers/food/snacks/sugarcookie name = "sugar cookie" desc = "Just like your little sister used to make." @@ -4233,6 +4232,16 @@ nutriment_desc = list("sweetness" = 4, "cookie" = 1) bitesize = 1 +/obj/item/weapon/reagent_containers/food/snacks/fortunecookie + name = "Fortune cookie" + desc = "A true prophecy in each cookie!" + icon_state = "fortune_cookie" + filling_color = "#E8E79E" + center_of_mass = list("x"=15, "y"=14) + nutriment_amt = 3 + nutriment_desc = list("fortune cookie" = 2) + bitesize = 2 + /obj/item/weapon/reagent_containers/food/snacks/berrymuffin name = "berry muffin" desc = "A delicious and spongy little cake, with berries." diff --git a/code/modules/food/food/snacks_vr.dm b/code/modules/food/food/snacks_vr.dm index dce6f234cf..77eeef4c01 100644 --- a/code/modules/food/food/snacks_vr.dm +++ b/code/modules/food/food/snacks_vr.dm @@ -631,11 +631,11 @@ /obj/item/weapon/reagent_containers/food/snacks/grub_pink name = "pink candy grub" - desc = "A thoroughly candied grub, it smells of raspberry." + desc = "A thoroughly candied grub, it smells of cherry." icon = 'icons/obj/food_vr.dmi' icon_state = "grub_pink" nutriment_amt = 5 - nutriment_desc = list("raspberry" = 4, "goo" = 1) + nutriment_desc = list("cherry" = 4, "goo" = 1) /obj/item/weapon/reagent_containers/food/snacks/grub_pink/Initialize() . = ..() diff --git a/code/modules/food/recipes_microwave_vr.dm b/code/modules/food/recipes_microwave_vr.dm index b2f8fa2630..329c3e1198 100644 --- a/code/modules/food/recipes_microwave_vr.dm +++ b/code/modules/food/recipes_microwave_vr.dm @@ -160,7 +160,7 @@ result = /obj/item/weapon/storage/box/wings/bucket /datum/recipe/grub_pink - fruit = list("cherry" = 1) + fruit = list("cherries" = 1) items = list( /obj/item/weapon/reagent_containers/food/snacks/grub ) diff --git a/code/modules/food/recipes_oven.dm b/code/modules/food/recipes_oven.dm index 4b92b1e315..7b8bb2e46e 100644 --- a/code/modules/food/recipes_oven.dm +++ b/code/modules/food/recipes_oven.dm @@ -299,7 +299,7 @@ /obj/item/weapon/reagent_containers/food/snacks/dough, /obj/item/weapon/reagent_containers/food/snacks/chocolatebar ) - result = /obj/item/weapon/reagent_containers/food/snacks/cookiesnack + result = /obj/item/weapon/reagent_containers/food/snacks/cookie result_quantity = 4 reagent_mix = RECIPE_REAGENT_REPLACE @@ -319,7 +319,6 @@ result = /obj/item/weapon/reagent_containers/food/snacks/poppypretzel result_quantity = 2 - /datum/recipe/cracker appliance = OVEN reagents = list("sodiumchloride" = 1) diff --git a/code/modules/games/wizoff.dm b/code/modules/games/wizoff.dm index 11cf179735..2f87f15a90 100644 --- a/code/modules/games/wizoff.dm +++ b/code/modules/games/wizoff.dm @@ -55,3 +55,49 @@ "U9: Jaunt" ) +/obj/item/weapon/book/manual/wizzoffguide + name = "WizOff Guide" + icon = 'icons/obj/playing_cards.dmi' + icon_state ="wizoff_guide" + item_state = "book16" + author = "Donk Co." + title = "WizOff Guide" + drop_sound = 'sound/items/drop/paper.ogg' + pickup_sound = 'sound/items/pickup/paper.ogg' + +/obj/item/weapon/book/manual/wizzoffguide/New() + ..() + dat = {" + + + + + + +

Wiz-Off Player Guide

+

How to play Wiz-Off!

+

The wizard themed card game

+

Each player draws 5 cards. There are five rounds. Each round,
+ a player selects a card to play, and the winner is selected
+ based on the following rules:

+
    +
  1. Offensive (O) beats Utility (U)!
  2. +
  3. Defensive (D) beats Offensive (O)!
  4. +
  5. Utility (U) beats Defensive (D)!
  6. +
  7. If both players play the same type of spell,
    + the higher number wins!
  8. +
+

The player who wins the most of the 5 rounds wins the game!
+ Now get ready to battle for the fate of the universe: Wiz-Off!

+ + + + "} \ No newline at end of file diff --git a/code/modules/holodeck/HolodeckControl.dm b/code/modules/holodeck/HolodeckControl.dm index 6bfd7b62ac..da08d03e36 100644 --- a/code/modules/holodeck/HolodeckControl.dm +++ b/code/modules/holodeck/HolodeckControl.dm @@ -317,6 +317,9 @@ for(var/obj/effect/decal/cleanable/blood/B in linkedholodeck) qdel(B) + for(var/obj/effect/landmark/L in linkedholodeck) + qdel(L) + holographic_objs = A.copy_contents_to(linkedholodeck , 1) for(var/obj/holo_obj in holographic_objs) holo_obj.alpha *= 0.8 //give holodeck objs a slight transparency diff --git a/code/modules/lighting/lighting_turf.dm b/code/modules/lighting/lighting_turf.dm index 3ab854a26f..d6cd0acdc8 100644 --- a/code/modules/lighting/lighting_turf.dm +++ b/code/modules/lighting/lighting_turf.dm @@ -111,7 +111,7 @@ return directional_opacity = NONE for(var/atom/movable/opacity_source as anything in opacity_sources) - if(opacity_source.flags & ON_BORDER) + if(opacity_source && opacity_source.flags & ON_BORDER) directional_opacity |= opacity_source.dir else //If fulltile and opaque, then the whole tile blocks view, no need to continue checking. directional_opacity = ALL_CARDINALS diff --git a/code/modules/mob/living/carbon/human/human.dm b/code/modules/mob/living/carbon/human/human.dm index f9b830123f..bb75d20e7b 100644 --- a/code/modules/mob/living/carbon/human/human.dm +++ b/code/modules/mob/living/carbon/human/human.dm @@ -335,11 +335,6 @@ log_runtime(EXCEPTION("Warning: human/Topic was called with item [href_list["item"]], but the item Topic is deprecated!")) // handle_strip(href_list["item"],usr) - // VOREStation Start - if(href_list["ooc_notes"]) - src.Examine_OOC() - // VOREStation End - if (href_list["criminal"]) if(hasHUD(usr,"security")) diff --git a/code/modules/mob/living/carbon/human/human_movement.dm b/code/modules/mob/living/carbon/human/human_movement.dm index fad2b7cf25..a3cd39d2bf 100644 --- a/code/modules/mob/living/carbon/human/human_movement.dm +++ b/code/modules/mob/living/carbon/human/human_movement.dm @@ -126,6 +126,11 @@ if(!buckled && shoes) // Shoes can make you go faster. . += shoes.slowdown + //VOREStation Addition Start + if(buckled && istype(buckled, /obj/machinery/power/rtg/d_type_reg)) + . += shoes.slowdown + //VOREStation Addition End + // Loop through some slots, and add up their slowdowns. // Includes slots which can provide armor, the back slot, and suit storage. for(var/obj/item/I in list(wear_suit, w_uniform, back, gloves, head, s_store)) diff --git a/code/modules/mob/living/carbon/human/species/station/prometheans.dm b/code/modules/mob/living/carbon/human/species/station/prometheans.dm index b1c468dac7..7cbda7fed9 100644 --- a/code/modules/mob/living/carbon/human/species/station/prometheans.dm +++ b/code/modules/mob/living/carbon/human/species/station/prometheans.dm @@ -210,12 +210,13 @@ var/datum/species/shapeshifter/promethean/prometheans H.adjust_nutrition(rand(10, 20)) if(H.clean_blood(1)) H.adjust_nutrition(rand(5, 15)) - if(H.r_hand) - if(H.r_hand.clean_blood()) - H.adjust_nutrition(rand(5, 15)) - if(H.l_hand) - if(H.l_hand.clean_blood()) - H.adjust_nutrition(rand(5, 15)) + if(!(H.gloves || (H.wear_suit && (H.wear_suit.body_parts_covered & HANDS)))) + if(H.r_hand) + if(H.r_hand.clean_blood()) + H.adjust_nutrition(rand(5, 15)) + if(H.l_hand) + if(H.l_hand.clean_blood()) + H.adjust_nutrition(rand(5, 15)) if(H.head) if(H.head.clean_blood()) H.update_inv_head(0) diff --git a/code/modules/mob/living/carbon/human/species/station/prometheans_vr.dm b/code/modules/mob/living/carbon/human/species/station/prometheans_vr.dm index f2b233cccf..fd040e64dd 100644 --- a/code/modules/mob/living/carbon/human/species/station/prometheans_vr.dm +++ b/code/modules/mob/living/carbon/human/species/station/prometheans_vr.dm @@ -16,10 +16,9 @@ spawn_flags = SPECIES_CAN_JOIN wikilink="https://wiki.vore-station.net/Promethean" genders = list(MALE, FEMALE, PLURAL, NEUTER) - color_mult = 1 mob_size = MOB_MEDIUM //As of writing, original was MOB_SMALL - Allows normal swapping - + //var/mob/living/simple_mob/slime/promethean/stored_blob = null appearance_flags = HAS_SKIN_COLOR | HAS_EYE_COLOR | HAS_HAIR_COLOR | RADIATION_GLOWS | HAS_UNDERWEAR inherent_verbs = list( @@ -32,6 +31,48 @@ /mob/living/carbon/human/proc/shapeshifter_select_wings, /mob/living/carbon/human/proc/shapeshifter_select_tail, /mob/living/carbon/human/proc/shapeshifter_select_ears, + /mob/living/carbon/human/proc/prommie_blobform, /mob/living/proc/set_size, /mob/living/carbon/human/proc/promethean_select_opaqueness, ) + +/mob/living/carbon/human/proc/prommie_blobform() + set name = "Toggle Blobform" + set desc = "Switch between amorphous and humanoid forms." + set category = "Abilities" + set hidden = FALSE + + var/atom/movable/to_locate = temporary_form || src + if(!isturf(to_locate.loc)) + to_chat(to_locate,"You need more space to perform this action!") + return + /* + //Blob form + if(temporary_form) + if(temporary_form.stat) + to_chat(temporary_form,"You can only do this while not stunned.") + else + prommie_outofblob(temporary_form) + */ + //Human form + else if(stat || paralysis || stunned || weakened || restrained()) + to_chat(src,"You can only do this while not stunned.") + return + else + prommie_intoblob() + +/datum/species/shapeshifter/promethean/handle_death(var/mob/living/carbon/human/H) + if(!H) + return // Iono! + + if(H.temporary_form) + H.forceMove(H.temporary_form.drop_location()) + H.ckey = H.temporary_form.ckey + QDEL_NULL(H.temporary_form) + //else if(H.stored_blob) // Should prevent phantom blobs in the aether. I don't anticipate this being an issue, but if it is just uncomment. + // qdel(stored_blob) + // stored_blob = null + + spawn(1) + if(H) + H.gib() \ No newline at end of file diff --git a/code/modules/mob/living/carbon/human/species/station/prommie_blob.dm b/code/modules/mob/living/carbon/human/species/station/prommie_blob.dm new file mode 100644 index 0000000000..950fc03dea --- /dev/null +++ b/code/modules/mob/living/carbon/human/species/station/prommie_blob.dm @@ -0,0 +1,511 @@ +// Prommies are slimes, lets make them a subtype of slimes. +/mob/living/simple_mob/slime/promethean + name = "Promethean Blob" + desc = "A promethean expressing their true form." + //ai_holder_type = null + color = null // Uses a special icon_state. + slime_color = "rainbow" + unity = TRUE + water_resist = 100 // Lets not kill the prommies + cores = 0 + movement_cooldown = 3 + //appearance_flags = RADIATION_GLOWS + shock_resist = 0 // Lets not be immune to zaps. + friendly = list("nuzzles", "glomps", "snuggles", "cuddles", "squishes") // lets be cute :3 + melee_damage_upper = 0 + melee_damage_lower = 0 + player_msg = "You're a little squisher! Your cuteness level has increased tenfold." + heat_damage_per_tick = 20 // Hot and cold are bad, but cold is AS bad for prommies as it is for slimes. + cold_damage_per_tick = 20 + //glow_range = 0 + //glow_intensity = 0 + + var/mob/living/carbon/human/humanform + var/datum/modifier/healing + + var/obj/prev_left_hand + var/obj/prev_right_hand + var/human_brute = 0 + var/human_burn = 0 + var/is_wide = FALSE + var/rad_glow = 0 + + var/list/default_emotes = list( + /decl/emote/audible/squish, + /decl/emote/audible/chirp, + /decl/emote/visible/bounce, + /decl/emote/visible/jiggle, + /decl/emote/visible/lightup, + /decl/emote/visible/vibrate, + /decl/emote/visible/flip, + /decl/emote/visible/spin, + /decl/emote/visible/floorspin + ) +/mob/living/simple_mob/slime/promethean/Initialize(mapload, null) + //verbs -= /mob/living/proc/ventcrawl + verbs += /mob/living/simple_mob/slime/promethean/proc/prommie_blobform + verbs += /mob/living/proc/set_size + verbs += /mob/living/proc/hide + verbs += /mob/living/simple_mob/proc/animal_nom + verbs += /mob/living/proc/shred_limb + verbs += /mob/living/simple_mob/slime/promethean/proc/toggle_expand + verbs += /mob/living/simple_mob/slime/promethean/proc/prommie_select_colour + verbs += /mob/living/simple_mob/slime/promethean/proc/toggle_shine + update_mood() + if(rad_glow) + rad_glow = CLAMP(rad_glow,0,250) + set_light(max(1,min(5,rad_glow/15)), max(1,min(10,rad_glow/25)), color) + return ..() + +/mob/living/simple_mob/slime/promethean/update_icon() + icon_living = "[icon_state_override ? "[icon_state_override] slime" : "slime"] [is_wide ? "adult" : "baby"][""]" + ..() + +/mob/living/simple_mob/slime/promethean/Destroy() + humanform = null + vore_organs = null + vore_selected = null + set_light(0) + return ..() + +/mob/living/carbon/human/Destroy() + if(stored_blob) + stored_blob = null + qdel(stored_blob) + return ..() + +/mob/living/simple_mob/slime/promethean/Stat() + ..() + if(humanform) + humanform.species.Stat(humanform) + +/mob/living/simple_mob/slime/promethean/handle_special() // Should disable default slime healing, we'll use nutrition based heals instead. + if(rad_glow) + rad_glow = CLAMP(rad_glow,0,250) + set_light(max(1,min(5,rad_glow/15)), max(1,min(10,rad_glow/25)), color) + else + set_light(0) + update_icon() + + if(!humanform) // If we somehow have a blob with no human, lets just clean up. + log_debug("Cleaning up blob with no prommie!") + qdel(src) + return + +//Constructor allows passing the human to sync damages +/mob/living/simple_mob/slime/promethean/New(var/newloc, var/mob/living/carbon/human/H) + ..() + if(H) + humanform = H + updatehealth() + + else + qdel(src) + +/mob/living/simple_mob/slime/promethean/updatehealth() + if(!humanform) + return ..() + + //Set the max + maxHealth = humanform.getMaxHealth()*2 //HUMANS, and their 'double health', bleh. + //Set us to their health, but, human health ignores robolimbs so we do it 'the hard way' + human_brute = humanform.getActualBruteLoss() + human_burn = humanform.getActualFireLoss() + health = maxHealth - humanform.getOxyLoss() - humanform.getToxLoss() - humanform.getCloneLoss() - human_brute - human_burn + + //Alive, becoming dead + if((stat < DEAD) && (health <= 0)) + death() + + //Overhealth + if(health > getMaxHealth()) + health = getMaxHealth() + + //Grab any other interesting values + confused = humanform.confused + radiation = humanform.radiation + paralysis = humanform.paralysis + + //Update our hud if we have one + if(healths) + if(stat != DEAD) + var/heal_per = (health / getMaxHealth()) * 100 + switch(heal_per) + if(100 to INFINITY) + healths.icon_state = "health0" + if(80 to 100) + healths.icon_state = "health1" + if(60 to 80) + healths.icon_state = "health2" + if(40 to 60) + healths.icon_state = "health3" + if(20 to 40) + healths.icon_state = "health4" + if(0 to 20) + healths.icon_state = "health5" + else + healths.icon_state = "health6" + else + healths.icon_state = "health7" + +// All the damage and such to the blob translates to the human +/mob/living/simple_mob/slime/promethean/apply_effect(var/effect = 0, var/effecttype = STUN, var/blocked = 0, var/check_protection = 1) + if(humanform) + return humanform.apply_effect(effect, effecttype, blocked, check_protection) + else + return ..() + +/mob/living/simple_mob/slime/promethean/adjustBruteLoss(var/amount,var/include_robo) + amount *= 0.75 + if(humanform) + return humanform.adjustBruteLoss(amount) + else + return ..() + +/mob/living/simple_mob/slime/promethean/adjustFireLoss(var/amount,var/include_robo) + amount *= 2 + if(humanform) + return humanform.adjustFireLoss(amount) + else + return ..() + +/mob/living/simple_mob/slime/promethean/adjustToxLoss(amount) + if(humanform) + return humanform.adjustToxLoss(amount) + else + return ..() + +/mob/living/simple_mob/slime/promethean/adjustOxyLoss(amount) + if(humanform) + return humanform.adjustOxyLoss(amount) + else + return ..() + +/mob/living/simple_mob/slime/promethean/adjustHalLoss(amount) + if(humanform) + return humanform.adjustHalLoss(amount) + else + return ..() + +/mob/living/simple_mob/slime/promethean/adjustCloneLoss(amount) + if(humanform) + return humanform.adjustCloneLoss(amount) + else + return ..() + +/mob/living/simple_mob/slime/promethean/ex_act(severity) + if(humanform) + return humanform.ex_act(severity) + else + return ..() + +/mob/living/simple_mob/slime/promethean/rad_act(severity) + rad_glow += severity + rad_glow = CLAMP(rad_glow,0,250) + if(rad_glow > 1) + set_light(max(1,min(5,rad_glow/15)), max(1,min(10,rad_glow/25)), color) + update_icon() + +/mob/living/simple_mob/slime/promethean/bullet_act(obj/item/projectile/P) + if(humanform) + return humanform.bullet_act(P) + else + return ..() + +/mob/living/simple_mob/slime/promethean/death(gibbed, deathmessage = "rapidly loses cohesion, splattering across the ground...") + if(humanform) + humanform.death(gibbed, deathmessage) + else + animate(src, alpha = 0, time = 2 SECONDS) + sleep(2 SECONDS) + + if(!QDELETED(src)) // Human's handle death should have taken us, but maybe we were adminspawned or something without a human counterpart + qdel(src) + +/mob/living/simple_mob/slime/promethean/Login() + . = ..() + copy_from_prefs_vr(bellies = FALSE) + +/mob/living/simple_mob/slime/promethean/proc/prommie_blobform() + set name = "Toggle Blobform" + set desc = "Switch between amorphous and humanoid forms." + set category = "Abilities" + set hidden = FALSE + + var/atom/movable/to_locate = src + if(!isturf(to_locate.loc)) + to_chat(src,"You need more space to perform this action!") + return + + //Blob form + if(!ishuman(src)) + if(humanform.temporary_form.stat || paralysis || stunned || weakened || restrained()) + to_chat(src,"You can only do this while not stunned.") + else + humanform.prommie_outofblob(src) + +/mob/living/simple_mob/slime/promethean/proc/toggle_expand() + set name = "Toggle Width" + set desc = "Switch between smole and lorge." + set category = "Abilities" + set hidden = FALSE + + if(stat || world.time < last_special) + return + + last_special = world.time + 25 + + if(is_wide) + is_wide = FALSE + src.visible_message("[src.name] pulls together, compacting themselves into a small ball!") + update_icon() + else + is_wide = TRUE + src.visible_message("[src.name] flows outwards, their goop expanding!") + update_icon() + +/mob/living/simple_mob/slime/promethean/proc/toggle_shine() + set name = "Toggle Shine" + set desc = "Shine on you crazy diamond." + set category = "Abilities" + set hidden = FALSE + + if(stat || world.time < last_special) + return + + last_special = world.time + 25 + + if(shiny) + shiny = FALSE + src.visible_message("[src.name] dulls their shine, becoming more translucent.") + update_icon() + else + shiny = TRUE + src.visible_message("[src.name] glistens and sparkles, shining brilliantly.") + update_icon() + +/mob/living/simple_mob/slime/promethean/proc/prommie_select_colour() + + set name = "Select Body Colour" + set category = "Abilities" + + if(stat || world.time < last_special) + return + + last_special = world.time + 25 + + var/new_skin = input(usr, "Please select a new body color.", "Shapeshifter Colour", color) as null|color + if(!new_skin) + return + color = new_skin + update_icon() + +/mob/living/simple_mob/slime/promethean/get_description_interaction() + return + + +/mob/living/simple_mob/slime/promethean/get_description_info() + return + +/mob/living/simple_mob/slime/promethean/init_vore() + return + +/mob/living/simple_mob/slime/promethean/get_available_emotes() + var/list/fulllist = _slime_default_emotes + fulllist += default_emotes + return fulllist +/mob/living/carbon/human + var/mob/living/simple_mob/slime/promethean/stored_blob = null +// Helpers - Unsafe, WILL perform change. +/mob/living/carbon/human/proc/prommie_intoblob(force) + if(!force && !isturf(loc)) + to_chat(src,"You can't change forms while inside something.") + return + + handle_grasp() //It's possible to blob out before some key parts of the life loop. This results in things getting dropped at null. TODO: Fix the code so this can be done better. + remove_micros(src, src) //Living things don't fare well in roblobs. + if(buckled) + buckled.unbuckle_mob() + if(LAZYLEN(buckled_mobs)) + for(var/buckledmob in buckled_mobs) + riding_datum.force_dismount(buckledmob) + if(pulledby) + pulledby.stop_pulling() + stop_pulling() + + //Record where they should go + var/atom/creation_spot = drop_location() + var/mob/living/simple_mob/slime/promethean/blob = null + //Create our new blob + if(!stored_blob) + blob = new(creation_spot,src) + blob.mood = ":3" + qdel(blob.ai_holder) + blob.ai_holder = null + else + blob = stored_blob + blob.forceMove(creation_spot) + + //Drop all our things + var/list/things_to_drop = contents.Copy() + var/list/things_to_not_drop = list(w_uniform,nif,l_store,r_store,wear_id,l_ear,r_ear) //And whatever else we decide for balancing. + var/obj/item/clothing/head/new_hat + var/has_hat = FALSE + things_to_drop -= things_to_not_drop //Crunch the lists + things_to_drop -= organs //Mah armbs + things_to_drop -= internal_organs //Mah sqeedily spooch + + for(var/obj/item/clothing/head/H in things_to_drop) + if(H) + new_hat = H + has_hat = TRUE + drop_from_inventory(H) + things_to_drop -= H + + for(var/obj/item/I in things_to_drop) //rip hoarders + drop_from_inventory(I) + + if(w_uniform && istype(w_uniform,/obj/item/clothing)) //No webbings tho. We do this after in case a suit was in the way + var/obj/item/clothing/uniform = w_uniform + if(LAZYLEN(uniform.accessories)) + for(var/obj/item/clothing/accessory/A in uniform.accessories) + if(is_type_in_list(A, disallowed_protean_accessories)) + uniform.remove_accessory(null,A) //First param is user, but adds fingerprints and messages + + //Size update + blob.transform = matrix()*size_multiplier + blob.size_multiplier = size_multiplier + + if(l_hand) blob.prev_left_hand = l_hand //Won't save them if dropped above, but necessary if handdrop is disabled. + if(r_hand) blob.prev_right_hand = r_hand + + //Put our owner in it (don't transfer var/mind) + blob.Weaken(2) + blob.transforming = TRUE + blob.ckey = ckey + blob.transforming = FALSE + blob.name = name + blob.nutrition = nutrition + blob.color = rgb(r_skin, g_skin, b_skin) + playsound(src.loc, "sound/effects/slime_squish.ogg", 15) + if(radiation > 0) + blob.rad_glow = CLAMP(radiation,0,250) + set_light(0) + blob.set_light(max(1,min(5,radiation/15)), max(1,min(10,radiation/25)), blob.color) + blob.handle_light() + if(has_hat) + blob.hat = new_hat + new_hat.forceMove(src) + + blob.update_icon() + blob.verbs -= /mob/living/proc/ventcrawl // Absolutely not. + blob.verbs -= /mob/living/simple_mob/proc/set_name // We already have a name. + temporary_form = blob + //Mail them to nullspace + moveToNullspace() + + //Message + blob.visible_message("[src.name] squishes into their true form!") + + //Transfer vore organs + blob.vore_organs = vore_organs + blob.vore_selected = vore_selected + for(var/obj/belly/B as anything in vore_organs) + B.forceMove(blob) + B.owner = blob + + //We can still speak our languages! + blob.languages = languages.Copy() + + //Return our blob in case someone wants it + return blob + +/mob/living/carbon/human/proc/prommie_outofblob(var/mob/living/simple_mob/slime/promethean/blob, force) + if(!istype(blob)) + return + + if(!force && !isturf(blob.loc)) + to_chat(blob,"You can't change forms while inside something.") + return + + if(buckled) + buckled.unbuckle_mob() + if(LAZYLEN(buckled_mobs)) + for(var/buckledmob in buckled_mobs) + riding_datum.force_dismount(buckledmob) + if(pulledby) + pulledby.stop_pulling() + stop_pulling() + + //Message + blob.visible_message("[src.name] pulls together, forming a humanoid shape!") + + //Record where they should go + var/atom/reform_spot = blob.drop_location() + + //Size update + resize(blob.size_multiplier, FALSE, ignore_prefs = TRUE) + + //Move them back where the blob was + forceMove(reform_spot) + + //Put our owner in it (don't transfer var/mind) + Weaken(2) + playsound(src.loc, "sound/effects/slime_squish.ogg", 15) + transforming = TRUE + ckey = blob.ckey + transforming = FALSE + blob.name = "Promethean Blob" + var/obj/item/hat = blob.hat + blob.drop_hat() + drop_from_inventory(hat) // Hat me baby + equip_to_slot_if_possible(hat, slot_head) + nutrition = blob.nutrition // food good + + + temporary_form = null + var/blob_color = blob.color + if(!blob_color) + blob_color = rgb(255, 255, 255) + shapeshifter_set_colour(blob_color) + if(blob.rad_glow > 0) + radiation = CLAMP(blob.rad_glow,0,250) + set_light(max(1,min(5,radiation/15)), max(1,min(10,radiation/25)), species.get_flesh_colour(src)) + update_icon() + + //Transfer vore organs + vore_selected = blob.vore_selected + for(var/obj/belly/B as anything in blob.vore_organs) + B.forceMove(src) + B.owner = src + + //vore_organs.Cut() + if(blob.prev_left_hand) put_in_l_hand(blob.prev_left_hand) //The restore for when reforming. + if(blob.prev_right_hand) put_in_r_hand(blob.prev_right_hand) + + Life(1) //Fix my blindness right meow //Has to be moved up here, there exists a circumstance where blob could be deleted without vore organs moving right. + + //Get rid of friend blob + stored_blob = blob + blob.set_light(0) + blob.moveToNullspace() + //qdel(blob) + + //Return ourselves in case someone wants it + return src + +/mob/living/simple_mob/slime/promethean/examine(mob/user) + . = ..() + if(hat) + . += "They are wearing \a [hat]." + +/mob/living/simple_mob/slime/promethean/say_understands(var/mob/other, var/datum/language/speaking = null) + if(speaking?.name == LANGUAGE_PROMETHEAN) //Promethean and sign are both nonverbal, so won't work with the same trick as below, so let's check for them + return TRUE + else if(speaking?.name == LANGUAGE_SIGN) + for(var/datum/language/L in humanform.languages) + if(L.name == LANGUAGE_SIGN) + return TRUE + else if(humanform.say_understands(other, speaking)) //So they're speaking something other than promethean or sign, let's just ask our original mob if it understands + return TRUE + else return FALSE diff --git a/code/modules/mob/living/carbon/human/species/station/station.dm b/code/modules/mob/living/carbon/human/species/station/station.dm index 46f66e02f0..b32d59e05a 100644 --- a/code/modules/mob/living/carbon/human/species/station/station.dm +++ b/code/modules/mob/living/carbon/human/species/station/station.dm @@ -135,7 +135,7 @@ O_LUNGS = /obj/item/organ/internal/lungs/unathi, O_LIVER = /obj/item/organ/internal/liver/unathi, O_BRAIN = /obj/item/organ/internal/brain/unathi, - O_EYES = /obj/item/organ/internal/eyes, + O_EYES = /obj/item/organ/internal/eyes/unathi, O_STOMACH = /obj/item/organ/internal/stomach/unathi, O_INTESTINE = /obj/item/organ/internal/intestine/unathi ) @@ -250,13 +250,13 @@ has_organ = list( //No appendix. O_HEART = /obj/item/organ/internal/heart/tajaran, - O_LUNGS = /obj/item/organ/internal/lungs, + O_LUNGS = /obj/item/organ/internal/lungs/tajaran, O_VOICE = /obj/item/organ/internal/voicebox, - O_LIVER = /obj/item/organ/internal/liver, + O_LIVER = /obj/item/organ/internal/liver/tajaran, O_KIDNEYS = /obj/item/organ/internal/kidneys, O_BRAIN = /obj/item/organ/internal/brain, O_EYES = /obj/item/organ/internal/eyes/tajaran, - O_STOMACH = /obj/item/organ/internal/stomach, + O_STOMACH = /obj/item/organ/internal/stomach/tajaran, O_INTESTINE = /obj/item/organ/internal/intestine ) @@ -356,6 +356,23 @@ BP_R_FOOT = list("path" = /obj/item/organ/external/foot/right) ) + has_organ = list( + O_HEART = /obj/item/organ/internal/heart/skrell, + O_LUNGS = /obj/item/organ/internal/lungs/skrell, + O_VOICE = /obj/item/organ/internal/voicebox/skrell, + O_LIVER = /obj/item/organ/internal/liver/skrell, + O_KIDNEYS = /obj/item/organ/internal/kidneys/skrell, + O_BRAIN = /obj/item/organ/internal/brain/skrell, + O_APPENDIX = /obj/item/organ/internal/appendix/skrell, + O_SPLEEN = /obj/item/organ/internal/spleen/skrell, + O_EYES = /obj/item/organ/internal/eyes/skrell, + O_STOMACH = /obj/item/organ/internal/stomach/skrell, + O_INTESTINE = /obj/item/organ/internal/intestine/skrell + ) + +/datum/species/skrell/can_breathe_water() + return TRUE + /datum/species/zaddat name = SPECIES_ZADDAT name_plural = "Zaddat" @@ -437,6 +454,11 @@ /datum/mob_descriptor/height = 0, /datum/mob_descriptor/build = -1 ) + + default_emotes = list( + /decl/emote/audible/chirp + ) + /datum/species/zaddat/equip_survival_gear(var/mob/living/carbon/human/H) ..() if(H.wear_suit) //get rid of job labcoats so they don't stop us from equipping the Shroud diff --git a/code/modules/mob/living/carbon/human/species/station/traits_vr/neutral.dm b/code/modules/mob/living/carbon/human/species/station/traits_vr/neutral.dm index 3c2e093580..8c54fbaee0 100644 --- a/code/modules/mob/living/carbon/human/species/station/traits_vr/neutral.dm +++ b/code/modules/mob/living/carbon/human/species/station/traits_vr/neutral.dm @@ -480,3 +480,33 @@ /datum/trait/neutral/thinner/apply(var/datum/species/S,var/mob/living/carbon/human/H) ..(S,H) H.update_transform() + +/datum/trait/neutral/dominate_predator + name = "Dominate Predator" + desc = "Allows you to attempt to take control of a predator while inside of their belly." + cost = 0 + custom_only = FALSE + +/datum/trait/neutral/dominate_predator/apply(var/datum/species/S,var/mob/living/carbon/human/H) + ..(S,H) + H.verbs |= /mob/proc/dominate_predator + +/datum/trait/neutral/dominate_prey + name = "Dominate Prey" + desc = "Connect to and dominate the brain of your prey." + cost = 0 + custom_only = FALSE + +/datum/trait/neutral/dominate_prey/apply(var/datum/species/S,var/mob/living/carbon/human/H) + ..(S,H) + H.verbs |= /mob/living/proc/dominate_prey + +/datum/trait/neutral/submit_to_prey + name = "Submit To Prey" + desc = "Allow prey's mind to control your own body." + cost = 0 + custom_only = FALSE + +/datum/trait/neutral/submit_to_prey/apply(var/datum/species/S,var/mob/living/carbon/human/H) + ..(S,H) + H.verbs |= /mob/living/proc/lend_prey_control diff --git a/code/modules/mob/living/living_defines_vr.dm b/code/modules/mob/living/living_defines_vr.dm index 684c0c08a1..06eeee7ac3 100644 --- a/code/modules/mob/living/living_defines_vr.dm +++ b/code/modules/mob/living/living_defines_vr.dm @@ -1,5 +1,6 @@ /mob - var/muffled = 0 // Used by muffling belly + var/muffled = FALSE // Used by muffling belly + var/forced_psay = FALSE // If true will prevent the user from speaking with normal say/emotes, and instead redirect these to a private speech mode with their predator. /mob/living var/ooc_notes = null diff --git a/code/modules/mob/living/say.dm b/code/modules/mob/living/say.dm index 21f0e7df2c..d10a1d3f0d 100644 --- a/code/modules/mob/living/say.dm +++ b/code/modules/mob/living/say.dm @@ -155,7 +155,11 @@ var/list/channel_to_radio_key = new if(stat == DEAD && !forbid_seeing_deadchat) return say_dead(message) return - + //VOREStation Addition Start + if(forced_psay) + psay(message) + return + //VOREStation Addition End //Parse the mode var/message_mode = parse_message_mode(message, "headset") diff --git a/code/modules/mob/living/silicon/robot/examine.dm b/code/modules/mob/living/silicon/robot/examine.dm index 6f3cabe4af..c46031a69a 100644 --- a/code/modules/mob/living/silicon/robot/examine.dm +++ b/code/modules/mob/living/silicon/robot/examine.dm @@ -32,8 +32,6 @@ // VOREStation Edit: Start . += attempt_vr(src,"examine_bellies_borg",args) //VOREStation Edit - if(ooc_notes) - . += "OOC Notes: \[View\]" // VOREStation Edit: End . += "*---------*" diff --git a/code/modules/mob/living/silicon/robot/robot.dm b/code/modules/mob/living/silicon/robot/robot.dm index 6811f06ee5..c457279fed 100644 --- a/code/modules/mob/living/silicon/robot/robot.dm +++ b/code/modules/mob/living/silicon/robot/robot.dm @@ -783,6 +783,26 @@ playsound(src.loc, 'sound/effects/clang2.ogg', 10, 1) visible_message("[H] taps [src].") return + if(I_GRAB) + if(is_vore_predator(H) && H.devourable && src.feeding && src.devourable) + var/switchy = tgui_alert(H, "Do you wish to eat [src] or feed yourself to them?", "Feed or Eat",list("Nevermind!", "Eat","Feed")) + switch(switchy) + if("Nevermind!") + return + if("Eat") + feed_grabbed_to_self(H, src) + return + if("Feed") + H.feed_self_to_grabbed(H, src) + return + if(is_vore_predator(H) && src.devourable) + if(tgui_alert(H, "Do you wish to eat [src]?", "Eat?",list("Nevermind!", "Yes!")) == "Yes!") + feed_grabbed_to_self(H, src) + return + if(H.devourable && src.feeding) + if(tgui_alert(H, "Do you wish to feed yourself to [src]?", "Feed?",list("Nevermind!", "Yes!")) == "Yes!") + H.feed_self_to_grabbed(H, src) + return //Robots take half damage from basic attacks. /mob/living/silicon/robot/attack_generic(var/mob/user, var/damage, var/attack_message) diff --git a/code/modules/mob/living/silicon/robot/robot_modules/station.dm b/code/modules/mob/living/silicon/robot/robot_modules/station.dm index bb81ae17b3..acba511e86 100644 --- a/code/modules/mob/living/silicon/robot/robot_modules/station.dm +++ b/code/modules/mob/living/silicon/robot/robot_modules/station.dm @@ -768,6 +768,7 @@ var/global/list/robot_modules = list( "Pneuma" = "pneuma-Miner", "Tower" = "drider-Miner" ) + supported_upgrades = list(/obj/item/borg/upgrade/pka, /obj/item/borg/upgrade/diamonddrill) /obj/item/weapon/robot_module/robot/miner/Initialize() @@ -783,8 +784,12 @@ var/global/list/robot_modules = list( src.modules += new /obj/item/weapon/storage/bag/sheetsnatcher/borg(src) src.modules += new /obj/item/weapon/gripper/miner(src) src.modules += new /obj/item/weapon/mining_scanner(src) - src.emag = new /obj/item/weapon/pickaxe/plasmacutter(src) - src.emag = new /obj/item/weapon/pickaxe/diamonddrill(src) + // New Emag gear for the minebots! + src.emag = new /obj/item/weapon/kinetic_crusher/machete/dagger(src) + + // No reason for these, upgrade modules replace them. + //src.emag = new /obj/item/weapon/pickaxe/plasmacutter(src) + //src.emag = new /obj/item/weapon/pickaxe/diamonddrill(src) /obj/item/weapon/robot_module/robot/research name = "research module" @@ -805,6 +810,7 @@ var/global/list/robot_modules = list( "Pneuma" = "pneuma-Research", "Tower" = "drider-Research" ) + supported_upgrades = list(/obj/item/borg/upgrade/advrped) /obj/item/weapon/robot_module/robot/research/Initialize() diff --git a/code/modules/mob/living/silicon/robot/robot_modules/station_vr.dm b/code/modules/mob/living/silicon/robot/robot_modules/station_vr.dm index 3727dc279e..e62d4705b0 100644 --- a/code/modules/mob/living/silicon/robot/robot_modules/station_vr.dm +++ b/code/modules/mob/living/silicon/robot/robot_modules/station_vr.dm @@ -189,6 +189,7 @@ networks = list(NETWORK_SECURITY) pto_type = PTO_SECURITY can_be_pushed = 0 + supported_upgrades = list(/obj/item/borg/upgrade/tasercooler) /obj/item/weapon/robot_module/robot/knine/New(var/mob/living/silicon/robot/R) src.modules += new /obj/item/weapon/handcuffs/cyborg(src) //You need cuffs to be a proper sec borg! @@ -466,6 +467,7 @@ channels = list("Science" = 1) pto_type = PTO_SCIENCE can_be_pushed = 0 + supported_upgrades = list(/obj/item/borg/upgrade/advrped) /obj/item/weapon/robot_module/robot/science/New(var/mob/living/silicon/robot/R) src.modules += new /obj/item/weapon/dogborg/jaws/small(src) @@ -774,6 +776,7 @@ channels = list("Supply" = 1) pto_type = PTO_CARGO can_be_pushed = 0 + supported_upgrades = list(/obj/item/borg/upgrade/pka, /obj/item/borg/upgrade/diamonddrill) /obj/item/weapon/robot_module/robot/kmine/New(var/mob/living/silicon/robot/R) src.modules += new /obj/item/borg/sight/material(src) @@ -785,8 +788,12 @@ src.modules += new /obj/item/weapon/gripper/miner(src) src.modules += new /obj/item/weapon/mining_scanner(src) src.modules += new /obj/item/weapon/dogborg/jaws/small(src) - src.emag = new /obj/item/weapon/pickaxe/plasmacutter(src) - src.emag = new /obj/item/weapon/pickaxe/diamonddrill(src) + // New Emag gear for the minebots! + src.emag = new /obj/item/weapon/kinetic_crusher/machete/dagger(src) + + // No reason for these, upgrade modules replace them. + //src.emag = new /obj/item/weapon/pickaxe/plasmacutter(src) + //src.emag = new /obj/item/weapon/pickaxe/diamonddrill(src) var/datum/matter_synth/water = new /datum/matter_synth(500) water.name = "Water reserves" diff --git a/code/modules/mob/living/silicon/robot/robot_modules/swarm.dm b/code/modules/mob/living/silicon/robot/robot_modules/swarm.dm index b7181c2cad..30f5cf02ee 100644 --- a/code/modules/mob/living/silicon/robot/robot_modules/swarm.dm +++ b/code/modules/mob/living/silicon/robot/robot_modules/swarm.dm @@ -30,3 +30,12 @@ . = ..() if(. == INITIALIZE_HINT_NORMAL) modules += new /obj/item/weapon/melee/energy/sword/ionic_rapier/lance(src) + +//Swarm Disabler Module +/obj/item/weapon/gun/energy/taser/mounted/cyborg/swarm + name = "disabler" + desc = "An archaic device which attacks the target's nervous-system or control circuits." + icon_state = "disabler" + projectile_type = /obj/item/projectile/beam/stun/disabler + charge_cost = 800 + recharge_time = 0.5 SECONDS diff --git a/code/modules/mob/living/simple_mob/subtypes/animal/alien animals/spacewhale.dm b/code/modules/mob/living/simple_mob/subtypes/animal/alien animals/spacewhale.dm index 4cc14a1caa..0b27faa6c8 100644 --- a/code/modules/mob/living/simple_mob/subtypes/animal/alien animals/spacewhale.dm +++ b/code/modules/mob/living/simple_mob/subtypes/animal/alien animals/spacewhale.dm @@ -137,7 +137,7 @@ if(post_restless_tired) post_restless_tired-- return - if(!restless && prob(0.5)) + if(prob(0.5)) handle_restless() /mob/living/simple_mob/vore/overmap/spacewhale/proc/handle_restless() @@ -149,9 +149,7 @@ ai_holder.base_wander_delay = initial(ai_holder.base_wander_delay) ai_holder.wander = FALSE post_restless_tired = 250 - if(child_om_marker.known == TRUE) - child_om_marker.icon_state = "space_whale" - visible_message("\The [child_om_marker.name] settles down.") + update_icon() else restless = TRUE hazard_pickup_chance *= 1.5 @@ -159,9 +157,18 @@ movement_cooldown = 1 ai_holder.base_wander_delay = 2 ai_holder.wander_delay = 2 - if(child_om_marker.known == TRUE) + ai_holder.wander = TRUE + update_icon() + +/mob/living/simple_mob/vore/overmap/spacewhale/update_icon() + . = ..() + if(child_om_marker.known == TRUE) + if(restless) child_om_marker.icon_state = "space_whale_restless" visible_message("\The [child_om_marker.name] ripples excitedly.") + else + child_om_marker.icon_state = "space_whale" + visible_message("\The [child_om_marker.name] settles down.") /datum/ai_holder/simple_mob/melee/spacewhale hostile = TRUE @@ -182,8 +189,6 @@ if(stance == STANCE_IDLE) W.hazard_pickup_chance = initial(W.hazard_pickup_chance) W.hazard_drop_chance = initial(W.hazard_drop_chance) - W.movement_cooldown = 50 - base_wander_delay = 50 W.restless = FALSE W.handle_restless() W.movement_cooldown = initial(W.movement_cooldown) diff --git a/code/modules/mob/living/simple_mob/subtypes/slime/slime.dm b/code/modules/mob/living/simple_mob/subtypes/slime/slime.dm index be42d57fc6..4c2a5b3a98 100644 --- a/code/modules/mob/living/simple_mob/subtypes/slime/slime.dm +++ b/code/modules/mob/living/simple_mob/subtypes/slime/slime.dm @@ -140,7 +140,8 @@ var/list/_slime_default_emotes = list( var/hat_state = hat.item_state ? hat.item_state : hat.icon_state var/image/I = image('icons/inventory/head/mob.dmi', src, hat_state) I.pixel_y = -7 // Slimes are small. - I.appearance_flags = RESET_COLOR + I.appearance_flags = RESET_COLOR | KEEP_APART + I.blend_mode = BLEND_OVERLAY add_overlay(I) // Controls the 'mood' overlay. Overrided in subtypes for specific behaviour. diff --git a/code/modules/mob/living/simple_mob/subtypes/vore/cookiegirl.dm b/code/modules/mob/living/simple_mob/subtypes/vore/cookiegirl.dm index b7f02e2833..df106b4e1d 100644 --- a/code/modules/mob/living/simple_mob/subtypes/vore/cookiegirl.dm +++ b/code/modules/mob/living/simple_mob/subtypes/vore/cookiegirl.dm @@ -16,7 +16,7 @@ melee_damage_upper = 5 meat_amount = 10 - meat_type = /obj/item/weapon/reagent_containers/food/snacks/cookiesnack + meat_type = /obj/item/weapon/reagent_containers/food/snacks/cookie say_list_type = /datum/say_list/cookiegirl ai_holder_type = /datum/ai_holder/simple_mob/passive/cookiegirl diff --git a/code/modules/mob/living/simple_mob/subtypes/vore/dominated_brain.dm b/code/modules/mob/living/simple_mob/subtypes/vore/dominated_brain.dm new file mode 100644 index 0000000000..82375f0a15 --- /dev/null +++ b/code/modules/mob/living/simple_mob/subtypes/vore/dominated_brain.dm @@ -0,0 +1,459 @@ +///// A mob that gets used when prey dominate predators. Will automatically delete itself if it's not inside a mob. + +/mob/living/dominated_brain + name = "dominated brain" + desc = "Someone who has taken a back seat within their own body." + icon = 'icons/obj/surgery.dmi' + icon_state = "brain1" + forced_psay = TRUE + var/mob/living/prey_body //The body of the person who dominated the brain + var/prey_ckey //The ckey of the person who dominated the brain + var/prey_name //In case the body is missing. ;3c + var/list/prey_langs = list() + var/mob/living/pred_body //The body of the person who was dominated + var/pred_ckey //The ckey of the person who was dominated + var/pred_ooc_notes + var/prey_ooc_notes + +/mob/living/dominated_brain/New(loc, var/mob/living/pred, preyname, var/mob/living/prey) + . = ..() + prey_name = preyname + if(prey) + prey_body = prey + pred_body = pred + +/mob/living/dominated_brain/Initialize() + if(!isliving(loc)) + qdel(src) + return + . = ..() + lets_register_our_signals() + verbs |= /mob/living/dominated_brain/proc/resist_control + +/mob/living/dominated_brain/Life() + . = ..() + if(!isliving(loc)) + qdel(src) + if(!ckey) + qdel(src) + +/mob/living/dominated_brain/say_understands(var/mob/other, var/datum/language/speaking = null) + if(pred_body.say_understands(other, speaking)) + return TRUE + else return FALSE + +/mob/living/dominated_brain/proc/lets_register_our_signals() + if(prey_body) + RegisterSignal(prey_body, COMSIG_PARENT_QDELETING, .proc/prey_was_deleted, TRUE) + RegisterSignal(pred_body, COMSIG_PARENT_QDELETING, .proc/pred_was_deleted, TRUE) + +/mob/living/dominated_brain/proc/lets_unregister_our_signals() + prey_was_deleted() + pred_was_deleted() + +/mob/living/dominated_brain/proc/prey_was_deleted() + if(prey_body) + UnregisterSignal(prey_body, COMSIG_PARENT_QDELETING) + prey_body = null + +/mob/living/dominated_brain/proc/pred_was_deleted() + if(pred_body) + UnregisterSignal(pred_body, COMSIG_PARENT_QDELETING) + pred_body = null + +/mob/living/dominated_brain/Destroy() + lets_unregister_our_signals() + . = ..() + +/mob/living/dominated_brain/process_resist() + //Resisting control by an alien mind. + if(pred_body.ckey == pred_ckey) + dominate_predator() + return + if(pred_ckey == ckey && pred_body.prey_controlled) + if(tgui_alert(src, "Do you want to wrest control over your body back from \the [prey_name]?", "Regain Control",list("No","Yes")) != "Yes") + return + + to_chat(src, "You begin to resist \the [prey_name]'s control!!!") + to_chat(pred_body, "You feel the captive mind of [src] begin to resist your control.") + + if(do_after(src, 10 SECONDS, exclusive = TRUE)) + restore_control() + else + to_chat(src, "Your attempt to regain control has been interrupted...") + to_chat(pred_body, "The dominant sensation fades away...") + else + to_chat(src, "\The [pred_body] is already dominated, and cannot be controlled at this time.") + ..() + +/mob/living/dominated_brain/proc/restore_control(ask = TRUE) + + if(ask && disconnect_time || client && ((client.inactivity / 10) / 60 > 10)) + if(tgui_alert(src, "Your predator's mind does not seem to be active presently. Releasing control in this state may leave you stuck in whatever state you find yourself in. Are you sure?", "Release Control",list("No","Yes")) != "Yes") + return + var/mob/living/prey_goes_here + + if(prey_body && prey_body.loc.loc == pred_body) //The prey body exists and is here, let's handle the prey! + + prey_goes_here = prey_body + + else if(prey_body) //It exists, but it's not here, let's spawn them a temporary home. + var/mob/living/dominated_brain/ndb = new /mob/living/dominated_brain(pred_body, pred_body, prey_name, prey_body) + ndb.name = prey_name + ndb.prey_ckey = src.prey_ckey + ndb.pred_ckey = src.pred_ckey + + prey_goes_here = ndb + prey_goes_here.real_name = src.prey_name + src.languages -= src.temp_languages + prey_goes_here.languages |= src.prey_langs + prey_goes_here.ooc_notes = prey_ooc_notes + prey_goes_here.verbs |= /mob/living/dominated_brain/proc/cease_this_foolishness + + + else //The prey body does not exist, let's put them in the back seat instead! + var/mob/living/dominated_brain/ndb = new /mob/living/dominated_brain(pred_body, pred_body, prey_name) + ndb.name = prey_name + ndb.prey_ckey = src.prey_ckey + ndb.pred_ckey = src.pred_ckey + + prey_goes_here = ndb + src.languages -= src.temp_languages + prey_goes_here.languages |= src.prey_langs + prey_goes_here.real_name = src.prey_name + prey_goes_here.ooc_notes = prey_ooc_notes + + /////////////////// + + // Handle Pred + pred_body.verbs -= /mob/proc/release_predator + + //Now actually put the people in the mobs + prey_goes_here.ckey = src.prey_ckey + pred_body.ckey = src.pred_ckey + pred_body.ooc_notes = pred_ooc_notes + log_and_message_admins("[pred_body] is now controlled by [pred_body.ckey]. They were restored to control through prey domination, and had been controlled by [prey_ckey].") + pred_body.absorb_langs() + pred_body.prey_controlled = FALSE + qdel(src) + +/mob/living/proc/absorb_langs() //This should be called on the predator in the exchange + var/list/langlist = list() + + languages -= temp_languages + LAZYCLEARLIST(src.temp_languages) + src.temp_languages = list() + for(var/mob/living/L in contents) + if(istype(L,/mob/living/dominated_brain)) + if(L.ckey) + langlist |= L.languages + for(var/b in vore_organs) + for(var/mob/living/L in b) + if(isliving(L)) + if(L.ckey) + langlist |= L.languages + if(langlist.len) + langlist -= languages + temp_languages |= langlist + languages |= langlist + +//Welcome to the adapted borer code. +/mob/proc/dominate_predator() + set category = "Abilities" + set name = "Dominate Predator" + set desc = "Connect to and dominate the brain of your predator." + + var/mob/living/pred + var/mob/living/prey = src + if(isbelly(prey.loc)) + pred = loc.loc + else if(isliving(prey.loc)) + pred = loc + else + to_chat(prey, "You are not inside anyone.") + return + + if(prey.stat == DEAD) + to_chat(prey, "You cannot do that in your current state.") + return + + if(!pred.ckey) + to_chat(prey, "\The [pred] isn't able to be dominated.") + return + if(prey.prey_controlled) + to_chat(prey, "You are already controlling someone, you can't control anyone else at this time.") + return + if(pred.prey_controlled) + to_chat(prey, "\The [pred] is already dominated, and cannot be controlled at this time.") + return + if(ishuman(pred)) + var/mob/living/carbon/human/h = pred + if(h.resleeve_lock && ckey != h.resleeve_lock) + to_chat(src, "\The [h] cannot be impersonated!") + return + if(tgui_alert(prey, "You are attempting to take over [pred], are you sure? Ensure that their preferences align with this kind of play.", "Take Over Predator",list("No","Yes")) != "Yes") + return + to_chat(prey, "You attempt to exert your control over \the [pred]...") + log_admin("[key_name_admin(prey)] attempted to take over [pred].") + if(tgui_alert(pred, "\The [prey] has elected to attempt to take control of you. Is this something you will allow to happen?", "Allow Prey Domination",list("No","Yes")) != "Yes") + to_chat(prey, "\The [pred] declined your request for control.") + return + if(tgui_alert(pred, "Are you sure? If you should decide to revoke this, you will have the ability to do so in your 'Abilities' tab.", "Allow Prey Domination",list("No","Yes")) != "Yes") + return + to_chat(pred, "You can feel the will of another overwriting your own, control of your body being sapped away from you...") + to_chat(prey, "You can feel the will of your host diminishing as you exert your will over them!") + if(!do_after(prey, 10 SECONDS, exclusive = TRUE)) + to_chat(prey, "Your attempt to regain control has been interrupted...") + to_chat(pred, "The dominant sensation fades away...") + return + + to_chat(prey, "You plunge your conciousness into \the [pred], assuming control over their very body, leaving your own behind within \the [pred]'s [loc].") + to_chat(pred, "You feel your body move on its own, as you are pushed to the background, and an alien consciousness displaces yours.") + var/mob/living/dominated_brain/pred_brain + var/delete_source = FALSE + if(istype(prey, /mob/living/dominated_brain)) + var/mob/living/dominated_brain/punished_prey = prey + if(punished_prey.prey_body) + pred_brain = new /mob/living/dominated_brain(pred, pred, name, punished_prey.prey_body) + else + pred_brain = new /mob/living/dominated_brain(pred, pred, name) //We have to play musical chairs with 3 bodies, or everyone gets d/ced + delete_source = TRUE + else + pred_brain = new /mob/living/dominated_brain(pred, pred, name, prey) + + pred_brain.prey_ooc_notes = prey.ooc_notes + pred_brain.pred_ooc_notes = pred.ooc_notes + pred_brain.name = pred.name + var/list/preylangs = list() + preylangs |= prey.languages + preylangs -= prey.temp_languages + pred_brain.prey_langs |= preylangs + pred_brain.prey_ckey = prey.ckey + pred_brain.pred_ckey = pred.ckey + pred_brain.pred_body.absorb_langs() + pred.ooc_notes = pred_brain.prey_ooc_notes + + pred.verbs |= /mob/proc/release_predator + + //Now actually put the people in the mobs + pred_brain.ckey = pred_brain.pred_ckey + pred_brain.real_name = pred.real_name + pred.ckey = pred_brain.prey_ckey + pred.prey_controlled = TRUE + log_and_message_admins("[pred] is now controlled by [pred.ckey], they were taken over via prey domination, and were originally controlled by [pred_brain.pred_ckey].") + if(delete_source) + qdel(prey) + +/mob/proc/release_predator() + set category = "Abilities" + set name = "Restore Control" + set desc = "Release control of your predator's body." + + for(var/I in contents) + if(istype(I, /mob/living/dominated_brain)) + var/mob/living/dominated_brain/db = I + if(db.ckey == db.pred_ckey) + to_chat(src, "You ease off of your control, releasing \the [db].") + to_chat(db, "You feel the alien presence fade, and restore control of your body to you of their own will...") + db.restore_control() + return + else + continue + to_chat(src, "You haven't been taken over, and shouldn't have this verb. I'll clean that up for you. Report this on the github, it is a bug.") + verbs -= /mob/proc/release_predator + +/mob/living/dominated_brain/proc/resist_control() + set category = "Abilities" + set name = "Resist Control" + set desc = "Attempt to resist control." + if(pred_body.ckey == pred_ckey) + dominate_predator() + return + if(pred_ckey == ckey && pred_body.prey_controlled) + to_chat(src, "You begin to resist \the [prey_name]'s control!!!") + to_chat(pred_body, "You feel the captive mind of [src] begin to resist your control.") + + if(do_after(src, 10 SECONDS, exclusive = TRUE)) + restore_control() + else + to_chat(src, "Your attempt to regain control has been interrupted...") + to_chat(pred_body, "The dominant sensation fades away...") + else + to_chat(src, "\The [pred_body] is already dominated, and cannot be controlled at this time.") + +/mob/living/proc/dominate_prey() + set category = "Abilities" + set name = "Dominate Prey" + set desc = "Connect to and dominate the brain of your prey." + + var/list/possible_mobs = list() + for(var/obj/belly/B in src.vore_organs) + for(var/mob/living/L in B) + if(isliving(L) && L.ckey) + possible_mobs |= L + else + continue + if(!possible_mobs) + to_chat(src, "There are no valid targets inside of you.") + return + var/input = tgui_input_list(src, "Select a mob to dominate:", "Dominate Prey", possible_mobs) + if(!input) + return + var/mob/living/M = input + if(tgui_alert(src, "You selected [M] to attempt to dominate. Are you sure?", "Dominate Prey",list("No","Yes")) != "Yes") + return + log_admin("[key_name_admin(src)] offered to use dominate prey on [M] ([M.ckey]).") + to_chat(src, "Attempting to dominate and gather \the [M]'s mind...") + if(tgui_alert(M, "\The [src] has elected collect your mind into their own. Is this something you will allow to happen?", "Allow Dominate Prey",list("No","Yes")) != "Yes") + to_chat(src, "\The [M] has declined your Dominate Prey attempt.") + return + if(tgui_alert(M, "Are you sure? You can only undo this while your body is inside of [src]. (You can resist, or use the resist verb in the abilities tab)", "Allow Dominate Prey",list("No","Yes")) != "Yes") + to_chat(src, "\The [M] has declined your Dominate Prey attempt.") + return + to_chat(M, "You can feel the will of another pulling you away from your body...") + to_chat(src, "You can feel the will of your prey diminishing as you gather them!") + + if(!do_after(src, 10 SECONDS, exclusive = TRUE)) + to_chat(M, "The alien presence fades, and you are left along in your body...") + to_chat(src, "Your attempt to gather [M]'s mind has been interrupted.") + return + if(!isbelly(M.loc)) + to_chat(M, "The alien presence fades, and you are left along in your body...") + to_chat(src, "Your attempt to gather [M]'s mind has been interrupted.") + return + + var/mob/living/dominated_brain/db = new /mob/living/dominated_brain(src, src, M.name, M) + + + db.name = M.name + db.prey_ckey = M.ckey + db.pred_ckey = src.ckey + + + db.real_name = M.real_name + + M.languages -= M.temp_languages + db.languages |= M.languages + db.ooc_notes = M.ooc_notes + db.verbs |= /mob/living/dominated_brain/proc/cease_this_foolishness + + absorb_langs() + + db.ckey = db.prey_ckey + log_admin("[db] ([db.ckey]) has agreed to [src]'s dominate prey attempt, and so no longer occupies their original body.") + to_chat(src, "You feel your mind expanded as [M] is incorporated into you.") + to_chat(M, "Your mind is gathered into \the [src], becoming part of them...") + +/mob/living/dominated_brain/proc/cease_this_foolishness() + set category = "Abilities" + set name = "Return to Body" + set desc = "If your body is inside of your predator still, attempts to re-insert yourself into it." + + if(prey_body && prey_body.loc.loc == pred_body) + to_chat(src, "You exert your will and attempt to return to yout body!!!") + to_chat(pred_body, "\The [src] resists your hold and attempts to return to their body!") + if(do_after(src, 10 SECONDS, exclusive = TRUE)) + if(prey_body && prey_body.loc.loc == pred_body) + + prey_body.ckey = prey_ckey + pred_body.absorb_langs() + to_chat(src, "Your connection to [pred_body] fades, and you awaken back in your own body!") + to_chat(pred_body, "You feel as though a piece of yourself is missing, as \the [src] returns to their body.") + log_admin("[src] ([src.ckey]) has returned to their body, [prey_body].") + qdel(src) + else + to_chat(src, "Your attempt to regain your body has been interrupted...") + else + to_chat(src, "Your attempt to regain your body has been interrupted...") + else if(prey_body) + to_chat(src, "You can sense your body... but it is not contained within [pred_body]... You cannot return to it at this time.") + else + to_chat(src, "Your body seems to no longer exist, so, you cannot return to it.") + verbs -= /mob/living/dominated_brain/proc/cease_this_foolishness + +/mob/living/proc/lend_prey_control() + set category = "Abilities" + set name = "Give Prey Control" + set desc = "Allow prey control of your body." + + var/list/possible_mobs = list() + for(var/obj/belly/B in src.vore_organs) + for(var/mob/living/L in B) + if(isliving(L) && L.ckey) + possible_mobs |= L + else + continue + if(!possible_mobs) + to_chat(src, "There are no valid targets inside of you.") + return + var/input = tgui_input_list(src, "Select a mob to give control:", "Give Prey Control", possible_mobs) + if(!input) + return + var/mob/living/prey = input + var/mob/living/pred = src + + if(prey.stat == DEAD) + to_chat(prey, "You cannot do that to this prey.") + return + + if(!prey.ckey) + to_chat(prey, "\The [prey] cannot take control.") + return + if(prey.prey_controlled) + to_chat(prey, "\The [prey] is already under someone's control and cannot be given control of your body.") + return + if(pred.prey_controlled) + to_chat(prey, "You are already controlling someone's body.") + return + if(tgui_alert(pred, "You are attempting to give [prey] control over you, are you sure? Ensure that their preferences align with this kind of play.", "Give Prey Control",list("No","Yes")) != "Yes") + return + to_chat(pred, "You attempt to give your control over to \the [prey]...") + log_admin("[key_name_admin(pred)] attempted to give control to [prey].") + if(tgui_alert(prey, "\The [pred] has elected to attempt to give you control of them. Is this something you will allow to happen?", "Allow Prey Domination",list("No","Yes")) != "Yes") + to_chat(pred, "\The [prey] declined your request for control.") + return + if(tgui_alert(prey, "Are you sure? If you should decide to revoke this, you will have the ability to do so in your 'Abilities' tab.", "Allow Prey Domination",list("No","Yes")) != "Yes") + return + to_chat(pred, "You diminish your will, reducing it and allowing will of your prey to take over...") + to_chat(prey, "You can feel the will of your host diminishing as you are given control over them!") + if(!do_after(pred, 10 SECONDS, exclusive = TRUE)) + to_chat(pred, "Your attempt to share control has been interrupted...") + to_chat(prey, "The dominant sensation fades away...") + return + + to_chat(prey, "You plunge your conciousness into \the [pred], assuming control over their very body, leaving your own behind within \the [pred]'s [loc].") + to_chat(pred, "You feel your body move on its own, as you move to the background, and an alien consciousness displaces yours.") + var/mob/living/dominated_brain/pred_brain + var/delete_source = FALSE + if(istype(prey, /mob/living/dominated_brain)) + var/mob/living/dominated_brain/punished_prey = prey + if(punished_prey.prey_body) + pred_brain = new /mob/living/dominated_brain(pred, pred, name, punished_prey.prey_body) + else + pred_brain = new /mob/living/dominated_brain(pred, pred, name) //We have to play musical chairs with 3 bodies, or everyone gets d/ced + delete_source = TRUE + else + pred_brain = new /mob/living/dominated_brain(pred, pred, name, prey) + + pred_brain.prey_ooc_notes = prey.ooc_notes + pred_brain.pred_ooc_notes = pred.ooc_notes + pred_brain.name = pred.name + var/list/preylangs = list() + preylangs |= prey.languages + preylangs -= prey.temp_languages + pred_brain.prey_langs |= preylangs + pred_brain.prey_ckey = prey.ckey + pred_brain.pred_ckey = pred.ckey + pred_brain.pred_body.absorb_langs() + pred.ooc_notes = pred_brain.prey_ooc_notes + + pred.verbs |= /mob/proc/release_predator + + //Now actually put the people in the mobs + pred_brain.ckey = pred_brain.pred_ckey + pred_brain.real_name = pred.real_name + pred.ckey = pred_brain.prey_ckey + pred.prey_controlled = TRUE + log_and_message_admins("[pred] is now controlled by [pred.ckey], they were taken over via pred submission, and were originally controlled by [pred_brain.pred_ckey].") + if(delete_source) + qdel(prey) \ No newline at end of file diff --git a/code/modules/mob/living/simple_mob/subtypes/vore/morph/morph.dm b/code/modules/mob/living/simple_mob/subtypes/vore/morph/morph.dm index d3ba6eb0b8..8f91e3d80a 100644 --- a/code/modules/mob/living/simple_mob/subtypes/vore/morph/morph.dm +++ b/code/modules/mob/living/simple_mob/subtypes/vore/morph/morph.dm @@ -264,8 +264,8 @@ return var/list/possible_mobs = list() for(var/obj/belly/B in src.vore_organs) - for(var/mob/living/carbon/human/H in B) - if(ishuman(H) && H.ckey) + for(var/mob/living/H in B) + if( (ishuman(H) || isrobot(H)) && H.ckey ) possible_mobs += H else continue @@ -276,9 +276,11 @@ M = input if(!M) return - if(M.resleeve_lock && ckey != M.resleeve_lock) - to_chat(src, "\The [M] cannot be impersonated!") - return + // Adding a ishuman check here, since silicon mobs don't have a resleeve_lock from what I can tell. + if(ishuman(M)) + if(M.resleeve_lock && ckey != M.resleeve_lock) + to_chat(src, "\The [M] cannot be impersonated!") + return if(tgui_alert(src, "You selected [M] to attempt to take over. Are you sure?", "Take Over Prey",list("No","Yes")) == "Yes") log_admin("[key_name_admin(src)] offered [M] to swap bodies as a morph.") if(tgui_alert(M, "\The [src] has elected to attempt to take over your body and control you. Is this something you will allow to happen?", "Allow Morph To Take Over",list("No","Yes")) == "Yes") diff --git a/code/modules/mob/new_player/sprite_accessories.dm b/code/modules/mob/new_player/sprite_accessories.dm index 1b8c20e26c..bb55c54a8d 100644 --- a/code/modules/mob/new_player/sprite_accessories.dm +++ b/code/modules/mob/new_player/sprite_accessories.dm @@ -2605,6 +2605,18 @@ shaved species_allowed = list(SPECIES_DIONA) do_colouration = 0 +//Skrell stuff. + +/datum/sprite_accessory/marking/skrell + name = "Countershading (Skrell)" + icon_state = "skr_shade" + body_parts = list(BP_TORSO, BP_GROIN, BP_HEAD) + species_allowed = list(SPECIES_SKRELL) + +/datum/sprite_accessory/marking/skrell/stripes + name = "Poison Dart Stripes (Skrell)" + icon_state = "skr_stripes" + body_parts = list(BP_L_LEG, BP_R_LEG, BP_L_ARM, BP_R_ARM, BP_TORSO) //Cybernetic Augments, some species-limited due to sprite misalignment. /aug/ types are excluded from dna. diff --git a/code/modules/mob/new_player/sprite_accessories_taur.dm b/code/modules/mob/new_player/sprite_accessories_taur.dm index 4fa3d66e1f..be53387d14 100644 --- a/code/modules/mob/new_player/sprite_accessories_taur.dm +++ b/code/modules/mob/new_player/sprite_accessories_taur.dm @@ -191,6 +191,11 @@ suit_sprites = 'icons/mob/taursuits_horse.dmi' icon_sprite_tag = "horse" +/datum/sprite_accessory/tail/taur/horse/horse_2c + name = "Horse & colorable tail (Taur)" + extra_overlay = "horse_markings" + //icon_sprite_tag = "wolf2c" + /datum/sprite_accessory/tail/taur/horse/synthhorse name = "SynthHorse dual-color (Taur)" icon_state = "synthhorse_s" diff --git a/code/modules/mob/say.dm b/code/modules/mob/say.dm index c30d256c59..d51d048da1 100644 --- a/code/modules/mob/say.dm +++ b/code/modules/mob/say.dm @@ -4,12 +4,22 @@ /mob/verb/whisper(message as text) set name = "Whisper" set category = "IC" + //VOREStation Addition Start + if(forced_psay) + psay(message) + return + //VOREStation Addition End usr.say(message,whispering=1) /mob/verb/say_verb(message as text) set name = "Say" set category = "IC" + //VOREStation Addition Start + if(forced_psay) + psay(message) + return + //VOREStation Addition End set_typing_indicator(FALSE) usr.say(message) @@ -21,6 +31,11 @@ if(say_disabled) //This is here to try to identify lag problems to_chat(usr, "Speech is currently admin-disabled.") return + //VOREStation Addition Start + if(forced_psay) + pme(message) + return + //VOREStation Addition End //VOREStation Edit Start if(muffled) @@ -63,6 +78,15 @@ else if(universal_speak || universal_understand) return TRUE + //VOREStation Addition Start + if(isliving(src)) + var/mob/living/L = src + if(isbelly(L.loc) && L.absorbed) + var/mob/living/P = L.loc.loc + if(P.say_understands(other, speaking)) + return TRUE + //VOREStation Addition End + //Languages are handled after. if(!speaking) if(!other) diff --git a/code/modules/mob/say_vr.dm b/code/modules/mob/say_vr.dm index 8b06163590..703aac2813 100644 --- a/code/modules/mob/say_vr.dm +++ b/code/modules/mob/say_vr.dm @@ -10,6 +10,11 @@ if(say_disabled) //This is here to try to identify lag problems to_chat(usr, "Speech is currently admin-disabled.") return + //VOREStation Addition Start + if(forced_psay) + pme(message) + return + //VOREStation Addition End message = sanitize_or_reflect(message,src) //VOREStation Edit - Reflect too-long messages (within reason) if(!message) @@ -26,6 +31,12 @@ to_chat(src, "You are unable to emote.") return + //VOREStation Addition Start + if(forced_psay) + pme(message) + return + //VOREStation Addition End + var/muzzled = is_muzzled() if(m_type == 2 && muzzled) return @@ -99,3 +110,165 @@ to_chat(user,message) to_chat(user, "^ This message was NOT SENT ^ -- It was [length] characters, and the limit is [MAX_MESSAGE_LEN]. It would fit in [posts] separate messages.") #undef MAX_HUGE_MESSAGE_LEN + +///// PSAY ///// + +/mob/verb/psay(message as text|null) + set category = "IC" + set name = "Psay" + set desc = "Talk to people affected by complete absorbed or dominate predator/prey." + + if (src.client) + if(client.prefs.muted & MUTE_IC) + to_chat(src, "You cannot speak in IC (muted).") + return + if (!message) + message = input(usr, "Type a message to say.","Psay") as text|null + message = sanitize_or_reflect(message,src) + if (!message) + return + message = capitalize(message) + if (stat == DEAD) + return say_dead(message) + if(!isliving(src)) + forced_psay = FALSE + say(message) + var/f = FALSE //did we find someone to send the message to other than ourself? + var/mob/living/pb //predator body + var/mob/living/M = src + if(istype(M, /mob/living/dominated_brain)) + var/mob/living/dominated_brain/db = M + if(db.loc != db.pred_body) + to_chat(db, "You aren't inside of a brain anymore!!!") + qdel(db) //Oh no, dominated brains shouldn't exist outside of the body, so if we got here something went very wrong. + return + else + pb = db.pred_body + to_chat(pb, "The captive mind of \the [M] thinks, \"[message]\"") //To our pred if dominated brain + f = TRUE + else if(M.absorbed && isbelly(M.loc)) + pb = M.loc.loc + to_chat(pb, "\The [M] thinks, \"[message]\"") //To our pred if absorbed + f = TRUE + + if(pb) //We are prey, let's do the prey thing. + + for(var/I in pb.contents) + if(istype(I, /mob/living/dominated_brain) && I != M) + var/mob/living/dominated_brain/db = I + to_chat(db, "The captive mind of \the [M] thinks, \"[message]\"") //To any dominated brains in the pred + f = TRUE + for(var/B in pb.vore_organs) + for(var/mob/living/L in B) + if(L.absorbed && L != M && L.ckey) + to_chat(L, "\The [M] thinks, \"[message]\"") //To any absorbed people in the pred + f = TRUE + + //Let's also check and see if there's anyone inside of us to send the message to. + for(var/I in M.contents) + if(istype(I, /mob/living/dominated_brain)) + var/mob/living/dominated_brain/db = I + to_chat(db, "\The [M] thinks, \"[message]\"") //To any dominated brains inside us + f = TRUE + for(var/B in M.vore_organs) + for(var/mob/living/L in B) + if(L.absorbed) + to_chat(L, "\The [M] thinks, \"[message]\"") //To any absorbed people inside us + f = TRUE + + if(f) //We found someone to send the message to + if(pb) + to_chat(M, "You think \"[message]\"") //To us if we are the prey + else + to_chat(M, "You think \"[message]\"") //To us if we are the pred + for (var/mob/G in player_list) + if (istype(G, /mob/new_player)) + continue + else if(isobserver(G) && G.is_preference_enabled(/datum/client_preference/ghost_ears)) + if(is_preference_enabled(/datum/client_preference/whisubtle_vis) || G.client.holder) + to_chat(G, "\The [M] thinks, \"[message]\"") + log_say(message,M) + else //There wasn't anyone to send the message to, pred or prey, so let's just say it instead and correct our psay just in case. + M.forced_psay = FALSE + M.say(message) + +///// PME ///// + +/mob/verb/pme(message as text|null) + set category = "IC" + set name = "Pme" + set desc = "Emote to people affected by complete absorbed or dominate predator/prey." + + if (src.client) + if(client.prefs.muted & MUTE_IC) + to_chat(src, "You cannot speak in IC (muted).") + return + if (!message) + message = input(usr, "Type a message to emote.","Pme") as text|null + message = sanitize_or_reflect(message,src) + if (!message) + return + if (stat == DEAD) + return say_dead(message) + if(!isliving(src)) + forced_psay = FALSE + me_verb(message) + var/f = FALSE //did we find someone to send the message to other than ourself? + var/mob/living/pb //predator body + var/mob/living/M = src + if(istype(M, /mob/living/dominated_brain)) + var/mob/living/dominated_brain/db = M + if(db.loc != db.pred_body) + to_chat(db, "You aren't inside of a brain anymore!!!") + qdel(db) //Oh no, dominated brains shouldn't exist outside of the body, so if we got here something went very wrong. + return + else + pb = db.pred_body + to_chat(pb, "\The [M] [message]") //To our pred if dominated brain + f = TRUE + + else if(M.absorbed && isbelly(M.loc)) + pb = M.loc.loc + to_chat(pb, "\The [M] [message]") //To our pred if absorbed + f = TRUE + + if(pb) //We are prey, let's do the prey thing. + + for(var/I in pb.contents) + if(istype(I, /mob/living/dominated_brain) && I != M) + var/mob/living/dominated_brain/db = I + to_chat(db, "\The [M] [message]") //To any dominated brains in the pred + f = TRUE + for(var/B in pb.vore_organs) + for(var/mob/living/L in B) + if(L.absorbed && L != M && L.ckey) + to_chat(L, "\The [M] [message]") //To any absorbed people in the pred + f = TRUE + + //Let's also check and see if there's anyone inside of us to send the message to. + for(var/I in M.contents) + if(istype(I, /mob/living/dominated_brain)) + var/mob/living/dominated_brain/db = I + to_chat(db, "\The [M] [message]") //To any dominated brains inside us + f = TRUE + for(var/B in M.vore_organs) + for(var/mob/living/L in B) + if(L.absorbed) + to_chat(L, "\The [M] [message]") //To any absorbed people inside us + f = TRUE + + if(f) //We found someone to send the message to + if(pb) + to_chat(M, "\The [M] [message]") //To us if we are the prey + else + to_chat(M, "\The [M] [message]") //To us if we are the pred + for (var/mob/G in player_list) + if (istype(G, /mob/new_player)) + continue + else if(isobserver(G) && G.is_preference_enabled(/datum/client_preference/ghost_ears)) + if(is_preference_enabled(/datum/client_preference/whisubtle_vis) || G.client.holder) + to_chat(G, "\The [M] [message]") + log_say(message,M) + else //There wasn't anyone to send the message to, pred or prey, so let's just emote it instead and correct our psay just in case. + M.forced_psay = FALSE + M.me_verb(message) diff --git a/code/modules/organs/internal/appendix.dm b/code/modules/organs/internal/appendix.dm index 1166e3d689..e0e4e22a72 100644 --- a/code/modules/organs/internal/appendix.dm +++ b/code/modules/organs/internal/appendix.dm @@ -50,6 +50,6 @@ /obj/item/organ/internal/appendix/removed() if(inflamed) - icon_state = "appendixinflamed" + icon_state = "[initial(icon_state)]inflamed" name = "inflamed appendix" ..() \ No newline at end of file diff --git a/code/modules/organs/internal/spleen.dm b/code/modules/organs/internal/spleen.dm index 88d42bb8bb..db2942926b 100644 --- a/code/modules/organs/internal/spleen.dm +++ b/code/modules/organs/internal/spleen.dm @@ -66,16 +66,6 @@ owner.adjustToxLoss(15 * spleen_efficiency) Target.wounds += W -/obj/item/organ/internal/spleen/skrell - name = "lymphatic hub" - icon_state = "spleen" - parent_organ = BP_HEAD - spleen_efficiency = 0.5 - -/obj/item/organ/internal/spleen/skrell/Initialize() - . = ..() - adjust_scale(0.8,0.7) - /obj/item/organ/internal/spleen/minor name = "vestigial spleen" parent_organ = BP_GROIN diff --git a/code/modules/organs/internal/stomach.dm b/code/modules/organs/internal/stomach.dm index 390a86db44..38fe8a3863 100644 --- a/code/modules/organs/internal/stomach.dm +++ b/code/modules/organs/internal/stomach.dm @@ -65,10 +65,11 @@ if(owner && owner.stat != DEAD) owner.bodytemperature += round(owner.robobody_count * 0.25, 0.1) +/* //VOREStation Removal - normal chem processing if(ishuman(owner)) var/mob/living/carbon/human/H = owner if(H.ingested?.total_volume && H.bloodstr) H.ingested.trans_to_holder(H.bloodstr, rand(2,5)) - +*/ return diff --git a/code/modules/organs/subtypes/nano.dm b/code/modules/organs/subtypes/nano.dm index f5bd247e6f..bab2ac7b65 100644 --- a/code/modules/organs/subtypes/nano.dm +++ b/code/modules/organs/subtypes/nano.dm @@ -90,8 +90,7 @@ parent_organ = BP_TORSO vital = TRUE organ_verbs = list( - /mob/living/carbon/human/proc/self_diagnostics, - /mob/living/carbon/human/proc/reagent_purge + /mob/living/carbon/human/proc/self_diagnostics ) /obj/item/organ/internal/nano/refactory @@ -104,6 +103,9 @@ var/list/materials = list(MAT_STEEL = 0) var/max_storage = 10000 + organ_verbs = list( + /mob/living/carbon/human/proc/reagent_purge + ) /obj/item/organ/internal/nano/refactory/proc/get_stored_material(var/material) if(status & ORGAN_DEAD) diff --git a/code/modules/organs/subtypes/skrell.dm b/code/modules/organs/subtypes/skrell.dm new file mode 100644 index 0000000000..3ac237c2b5 --- /dev/null +++ b/code/modules/organs/subtypes/skrell.dm @@ -0,0 +1,41 @@ +/obj/item/organ/internal/eyes/skrell + icon_state = "skrell_eyes" + +/obj/item/organ/internal/heart/skrell + icon_state = "skrell_heart-on" + dead_icon = "skrell_heart-off" + +/obj/item/organ/internal/lungs/skrell + icon_state = "skrell_lungs" + +/obj/item/organ/internal/liver/skrell + icon_state = "skrell_liver" + +/obj/item/organ/internal/brain/skrell + icon_state = "brain_skrell" + +/obj/item/organ/internal/stomach/skrell + icon_state = "skrell_stomach" + +/obj/item/organ/internal/kidneys/skrell + icon_state = "skrell_kidney" + +/obj/item/organ/internal/intestine/skrell + icon_state = "skrell_intestine" + +/obj/item/organ/internal/voicebox/skrell + icon_state = "skrell_larynx" + will_assist_languages = list(LANGUAGE_SKRELLIAN, LANGUAGE_SKRELLIANFAR) + +/obj/item/organ/internal/appendix/skrell + icon_state = "skrell_appendix" + +/obj/item/organ/internal/spleen/skrell + name = "lymphatic hub" + icon_state = "skrell_spleen" + parent_organ = BP_HEAD + spleen_efficiency = 0.5 + +/obj/item/organ/internal/spleen/skrell/Initialize() + . = ..() + adjust_scale(0.8,0.7) \ No newline at end of file diff --git a/code/modules/organs/subtypes/tajaran.dm b/code/modules/organs/subtypes/tajaran.dm index c46dde783b..11447bebd2 100644 --- a/code/modules/organs/subtypes/tajaran.dm +++ b/code/modules/organs/subtypes/tajaran.dm @@ -5,3 +5,11 @@ icon_state = "tajaran_heart-on" dead_icon = "tajaran_heart-off" +/obj/item/organ/internal/lungs/tajaran + icon_state = "tajaran_lungs" + +/obj/item/organ/internal/liver/tajaran + icon_state = "tajaran_liver" + +/obj/item/organ/internal/stomach/tajaran + icon_state = "tajaran_stomach" \ No newline at end of file diff --git a/code/modules/organs/subtypes/unathi.dm b/code/modules/organs/subtypes/unathi.dm index 03ff671b63..759395dc37 100644 --- a/code/modules/organs/subtypes/unathi.dm +++ b/code/modules/organs/subtypes/unathi.dm @@ -15,10 +15,12 @@ force = 5 throwforce = 10 +/obj/item/organ/internal/eyes/unathi + icon_state = "unathi_eyes" /obj/item/organ/internal/heart/unathi icon_state = "unathi_heart-on" - dead_icon = "unath_heart-off" + dead_icon = "unathi_heart-off" /obj/item/organ/internal/lungs/unathi color = "#b3cbc3" diff --git a/code/modules/overmap/ships/computers/computer_shims.dm b/code/modules/overmap/ships/computers/computer_shims.dm index 16d9285c39..72fdbe4fb7 100644 --- a/code/modules/overmap/ships/computers/computer_shims.dm +++ b/code/modules/overmap/ships/computers/computer_shims.dm @@ -50,6 +50,7 @@ // /obj/machinery/computer/ship var/core_skill = /datum/skill/devices //The skill used for skill checks for this machine (mostly so subtypes can use different skills). + var/ai_control = TRUE //VOREStation Edit // // Topic @@ -70,6 +71,11 @@ return TRUE /obj/machinery/computer/ship/attack_ai(mob/user) + //VOREStation Addition Start + if(!ai_control && issilicon(user)) + to_chat(user, "Access Denied.") + return + //VOREStation Addition End if(tgui_status(user, tgui_state()) > STATUS_CLOSE) return interface_interact(user) @@ -82,6 +88,11 @@ /obj/machinery/computer/ship/attack_hand(mob/user) if((. = ..())) return + //VOREStation Addition Start + if(!ai_control && issilicon(user)) + to_chat(user, "Access Denied.") + return TRUE + //VOREStation Addition End if(!allowed(user)) to_chat(user, "Access Denied.") return TRUE diff --git a/code/modules/overmap/ships/computers/helm.dm b/code/modules/overmap/ships/computers/helm.dm index fe24315788..2c821ef793 100644 --- a/code/modules/overmap/ships/computers/helm.dm +++ b/code/modules/overmap/ships/computers/helm.dm @@ -29,6 +29,7 @@ GLOBAL_LIST_EMPTY(all_waypoints) var/speedlimit = 1/(20 SECONDS) //top speed for autopilot, 5 var/accellimit = 0.001 //manual limiter for acceleration req_one_access = list(access_pilot) //VOREStation Edit + ai_control = FALSE //VOREStation Edit - AI/Borgs shouldn't really be flying off in ships without crew help // fancy sprite /obj/machinery/computer/ship/helm/adv diff --git a/code/modules/paperwork/paper.dm b/code/modules/paperwork/paper.dm index b2ac4163d2..660bca3ec8 100644 --- a/code/modules/paperwork/paper.dm +++ b/code/modules/paperwork/paper.dm @@ -156,7 +156,7 @@ . += "You have to go closer if you want to read it." /obj/item/weapon/paper/proc/show_content(var/mob/user, var/forceshow=0) - if(!(istype(user, /mob/living/carbon/human) || istype(user, /mob/observer/dead) || istype(user, /mob/living/silicon)) && !forceshow) + if(!(istype(user, /mob/living/carbon/human) || istype(user, /mob/observer/dead) || istype(user, /mob/living/silicon) || user.universal_understand) && !forceshow) user << browse("[name][stars(info)][stamps]", "window=[name]") onclose(user, "[name]") else diff --git a/code/modules/pda/pda.dm b/code/modules/pda/pda.dm index efdaaccb89..e7615cfb28 100644 --- a/code/modules/pda/pda.dm +++ b/code/modules/pda/pda.dm @@ -151,10 +151,11 @@ var/global/list/obj/item/device/pda/PDAs = list() SPECIES_TESHARI = 'icons/mob/species/teshari/pda_wrist.dmi', SPECIES_VR_TESHARI = 'icons/mob/species/teshari/pda_wrist.dmi', ) - if(7) icon = 'icons/obj/pda_clam.dmi' //VOREStation edit + if(7) icon = 'icons/obj/pda_slider.dmi' //VOREStation edit else icon = 'icons/obj/pda_old.dmi' log_debug("Invalid switch for PDA, defaulting to old PDA icons. [pdachoice] chosen.") + add_overlay("pda-pen") start_program(find_program(/datum/data/pda/app/main_menu)) /obj/item/device/pda/proc/can_use(mob/user) diff --git a/code/modules/pda/pda_vr.dm b/code/modules/pda/pda_vr.dm index 0e4b53d698..671a3ee7b0 100644 --- a/code/modules/pda/pda_vr.dm +++ b/code/modules/pda/pda_vr.dm @@ -24,3 +24,6 @@ /obj/item/device/pda/sar default_cartridge = /obj/item/weapon/cartridge/sar icon_state = "pda-gene" //Gives FM's a distinct PDA of their own, rather than sharing with the bridge-secretary & CCO's. + +/obj/item/device/pda/pilot + icon_state = "pda-pilot" //New sprites, but still no ROM cartridge or anything diff --git a/code/modules/power/port_gen_vr.dm b/code/modules/power/port_gen_vr.dm index 263a19639d..b529bd1dba 100644 --- a/code/modules/power/port_gen_vr.dm +++ b/code/modules/power/port_gen_vr.dm @@ -281,3 +281,114 @@ if(istype(Proj) && !Proj.nodamage && ((Proj.damage_type == BURN) || (Proj.damage_type == BRUTE)) && Proj.damage >= 20) log_and_message_admins("[ADMIN_LOOKUPFLW(Proj.firer)] triggered a kugelblitz core explosion at [x],[y],[z] via projectile.") asplod() + +/obj/machinery/power/rtg/d_type_reg + name = "d-type rotary electric generator" + desc = "It looks kind of like a large hamster wheel." + icon = 'icons/obj/power_vrx96.dmi' + icon_state = "reg" + circuit = /obj/item/weapon/circuitboard/machine/reg + irradiate = FALSE + power_gen = 0 //It's big but it gets adjusted based on what you put into it!!! + var/default_power_gen = 1000000 + var/part_mult = 0 + pixel_x = -32 + plane = ABOVE_MOB_PLANE + layer = ABOVE_MOB_LAYER + buckle_dir = EAST + interact_offline = TRUE + density = FALSE + +/obj/machinery/power/rtg/d_type_reg/Initialize() + . = ..() + pixel_x = -32 + +/obj/machinery/power/rtg/d_type_reg/Destroy() + . = ..() + +/obj/machinery/power/rtg/d_type_reg/user_buckle_mob(mob/living/M, mob/user, var/forced = FALSE, var/silent = TRUE) + . = ..() + M.pixel_y = 8 + M.visible_message("\The [M], hops up onto \the [src] and begins running!") + +/obj/machinery/power/rtg/d_type_reg/unbuckle_mob(mob/living/buckled_mob, force = FALSE) + . = ..() + buckled_mob.pixel_y = initial(buckled_mob.pixel_y) + +/obj/machinery/power/rtg/d_type_reg/RefreshParts() + var/n = 0 + for(var/obj/item/weapon/stock_parts/SP in component_parts) + n += SP.rating + part_mult = n + +/obj/machinery/power/rtg/d_type_reg/attackby(obj/item/I, mob/user, params) + if(default_deconstruction_screwdriver(user, I)) + return + else if(default_deconstruction_crowbar(user, I)) + return + return ..() + +/obj/machinery/power/rtg/d_type_reg/update_icon() + if(panel_open) + icon_state = "reg-o" + else if(buckled_mobs && buckled_mobs.len > 0) + icon_state = "reg-a" + else + icon_state = "reg" + +/obj/machinery/power/rtg/d_type_reg/process() + ..() + if(buckled_mobs && buckled_mobs.len > 0) + for(var/mob/living/L in buckled_mobs) + runner_process(L) + else + power_gen = 0 + update_icon() + +/obj/machinery/power/rtg/d_type_reg/proc/runner_process(var/mob/living/runner) + if(runner.stat != CONSCIOUS) + unbuckle_mob(runner) + runner.visible_message("\The [runner], topples off of \the [src]!") + return + var/cool_rotations + if(ishuman(runner)) + var/mob/living/carbon/human/R = runner + cool_rotations = R.movement_delay() + else if (isanimal(runner)) + var/mob/living/simple_mob/R = runner + cool_rotations = R.movement_delay() + if(cool_rotations <= 0) + cool_rotations = 0.5 + cool_rotations = default_power_gen / cool_rotations + switch(runner.nutrition) + if(1000 to INFINITY) //VERY WELL FED, ZOOM!!!! + cool_rotations *= (runner.nutrition * 0.001) + if(500 to 1000) //Well fed! + cool_rotations = cool_rotations + if(400 to 500) + cool_rotations *= 0.9 + if(300 to 400) + cool_rotations *= 0.75 + if(200 to 300) + cool_rotations *= 0.5 + if(100 to 200) + cool_rotations *= 0.25 + else //TOO HUNGY IT TIME TO STOP!!! + unbuckle_mob(runner) + runner.visible_message("\The [runner], panting and exhausted hops off of \the [src]!") + if(part_mult > 1) + cool_rotations += (cool_rotations * (part_mult - 1)) / 4 + power_gen = cool_rotations + runner.nutrition -- + +/obj/machinery/power/rtg/d_type_reg/emp_act(severity) + return + +/obj/item/weapon/circuitboard/machine/reg + name = T_BOARD("REG") + build_path = /obj/machinery/power/rtg/d_type_reg + board_type = new /datum/frame/frame_types/machine + origin_tech = list(TECH_DATA = 2, TECH_POWER = 4, TECH_ENGINEERING = 4) + req_components = list( + /obj/item/stack/cable_coil = 5, + /obj/item/weapon/stock_parts/capacitor = 1) \ No newline at end of file diff --git a/code/modules/projectiles/ammunition/ammo_boxes.dm b/code/modules/projectiles/ammunition/ammo_boxes.dm index 04d9d55d70..566b878c44 100644 --- a/code/modules/projectiles/ammunition/ammo_boxes.dm +++ b/code/modules/projectiles/ammunition/ammo_boxes.dm @@ -40,6 +40,7 @@ name = "\improper Donk-Soft riot ammo box" desc = "Contains Donk-Soft riot darts. It's Donk or Don't! Ages 18 and up." icon_state = "foambox_riot" + ammo_type = /obj/item/ammo_casing/afoam_dart/riot matter = list(MAT_STEEL = 5040, MAT_PLASTIC = 1800) /* diff --git a/code/modules/projectiles/ammunition/magazines.dm b/code/modules/projectiles/ammunition/magazines.dm index b678ec8d9e..f578b05735 100644 --- a/code/modules/projectiles/ammunition/magazines.dm +++ b/code/modules/projectiles/ammunition/magazines.dm @@ -583,6 +583,10 @@ /obj/item/ammo_magazine/m44/empty initial_ammo = 0 +/obj/item/ammo_magazine/m44/rubber + desc = "magazine (.44 rubber)" + ammo_type = /obj/item/ammo_casing/a44/rubber + // Stripper Clip /obj/item/ammo_magazine/clip/c44 name = "ammo clip (.44)" @@ -738,27 +742,25 @@ // Clip /obj/item/ammo_magazine/clip/c12g name = "ammo clip (12g slug)" - icon_state = "12gclipslug" // Still a placeholder sprite. Feel free to make a better one. - desc = "A color-coded metal clip for holding and quickly loading shotgun shells. This one is loaded with slugs." + icon_state = "12gclipslug" + desc = "A metal clip for holding and quickly loading two shotgun shells." caliber = "12g" ammo_type = /obj/item/ammo_casing/a12g - matter = list(MAT_STEEL = 1070) // slugs shells x2 + 350 metal for the clip itself. + matter = list(MAT_STEEL = 1070) max_ammo = 2 multiple_sprites = 1 /obj/item/ammo_magazine/clip/c12g/pellet name = "ammo clip (12g buckshot)" icon_state = "12gclipshell" - desc = "A color-coded metal clip for holding and quickly loading shotgun shells. This one is loaded with buckshot." ammo_type = /obj/item/ammo_casing/a12g/pellet - matter = list(MAT_STEEL = 1070) // buckshot and slugs cost the same + matter = list(MAT_STEEL = 1070) /obj/item/ammo_magazine/clip/c12g/beanbag name = "ammo clip (12g beanbag)" icon_state = "12gclipbean" - desc = "A color-coded metal clip for holding and quickly loading shotgun shells. This one is loaded with beanbags." ammo_type = /obj/item/ammo_casing/a12g/beanbag - matter = list(MAT_STEEL = 710) //beanbags x2 + 350 metal + matter = list(MAT_STEEL = 710) ///////// .75 Gyrojet ///////// diff --git a/code/modules/projectiles/ammunition/rounds.dm b/code/modules/projectiles/ammunition/rounds.dm index 2cbe138c61..45d2d5aad5 100644 --- a/code/modules/projectiles/ammunition/rounds.dm +++ b/code/modules/projectiles/ammunition/rounds.dm @@ -36,6 +36,7 @@ /obj/item/ammo_casing/afoam_dart/riot name = "riot foam dart" desc = "Whose smart idea was it to use toys as crowd control? Ages 18 and up." + projectile_type = /obj/item/projectile/bullet/foam_dart_riot matter = list(MAT_STEEL = 210, MAT_PLASTIC = 60) icon_state = "foamdart_riot" @@ -55,6 +56,25 @@ matter = list(MAT_PLASTIC = 20) caseless = TRUE +/obj/item/ammo_casing/a357/rubber + desc = "A .357 rubber bullet casing." + caliber = ".357" + icon_state = "r-casing" + projectile_type = /obj/item/projectile/bullet/pistol/rubber/strong + matter = list(MAT_STEEL = 60) + +/obj/item/ammo_casing/a357/flash + desc = "A .357 flash bullet casing." + caliber = ".357" + icon_state = "r-casing" + projectile_type = /obj/item/projectile/energy/flash/strong + +/obj/item/ammo_casing/a357/stun + desc = "A .357 stun bullet casing." + caliber = ".357" + icon_state = "w-casing" + projectile_type = /obj/item/projectile/energy/electrode/stunshot/strong + /* * .38 */ diff --git a/code/modules/projectiles/guns/energy/stun.dm b/code/modules/projectiles/guns/energy/stun.dm index 1531a5777d..c5dd580c06 100644 --- a/code/modules/projectiles/guns/energy/stun.dm +++ b/code/modules/projectiles/guns/energy/stun.dm @@ -1,7 +1,11 @@ +/* + * Taser + */ /obj/item/weapon/gun/energy/taser name = "taser gun" desc = "The NT Mk30 NL is a small gun used for non-lethal takedowns. Produced by NT, it's actually a licensed version of a W-T RayZar design." - description_fluff = "RayZar is Ward-Takahashi’s main consumer weapons brand, known for producing and licensing a wide variety of specialist energy weapons of various types and quality primarily for the civilian market." + description_fluff = "RayZar is Ward-Takahashi’s main consumer weapons brand, known for producing and licensing a wide variety of specialist \ + energy weapons of various types and quality primarily for the civilian market." icon_state = "taser" item_state = null //so the human update icon uses the icon_state instead. projectile_type = /obj/item/projectile/beam/stun @@ -23,13 +27,20 @@ charge_cost = 400 recharge_time = 7 //Time it takes for shots to recharge (in ticks) -/obj/item/weapon/gun/energy/taser/mounted/cyborg/swarm +/* + * Disabler + */ +/obj/item/weapon/gun/energy/taser/disabler name = "disabler" - desc = "An archaic device which attacks the target's nervous-system or control circuits." + desc = "The NT Mk4 T-DL is a small gun used for non-lethal takedowns. Produced by NT, it's an archaic device which attacks the target's \ + nervous-system and is actually a heavily modified version of the NT Mk30 NL. It's use is heavily regulated due to its effects on the body." + icon_state = "disabler" projectile_type = /obj/item/projectile/beam/stun/disabler - charge_cost = 800 - recharge_time = 0.5 SECONDS + charge_cost = 480 +/* + * Crossbow + */ /obj/item/weapon/gun/energy/crossbow name = "mini energy-crossbow" desc = "A weapon favored by many mercenary stealth specialists." @@ -53,12 +64,16 @@ /obj/item/weapon/gun/energy/crossbow/largecrossbow name = "energy crossbow" desc = "A weapon favored by mercenary infiltration teams." + icon_state = "crossbowlarge" w_class = ITEMSIZE_LARGE force = 10 matter = list(MAT_STEEL = 200000) slot_flags = SLOT_BELT projectile_type = /obj/item/projectile/energy/bolt/large +/* + * Plasma Stun + */ /obj/item/weapon/gun/energy/plasmastun name = "plasma pulse projector" desc = "The RayZar MA21 Selkie is a weapon that uses a laser pulse to ionise the local atmosphere, creating a disorienting pulse of plasma and deafening shockwave as the wave expands." @@ -71,11 +86,12 @@ charge_cost = 600 projectile_type = /obj/item/projectile/energy/plasmastun -//Stun Revolvers - +/* + * Stun Revolver + */ /obj/item/weapon/gun/energy/stunrevolver name = "stun revolver" - desc = "A LAEP20 Aktzin. Designed and produced by Lawson Arms under the wing of Hephaestus, \ + desc = "A LAEP20 \"Aktzin\". Designed and produced by Lawson Arms under the wing of Hephaestus, \ several TSCs have been trying to get a hold of the blueprints for half a decade." description_fluff = "Lawson Arms is Hephaestus Industries’ main personal-energy-weapon branding, \ often sold alongside MarsTech projectile weapons to security and law enforcement agencies. \ @@ -85,12 +101,92 @@ item_state = "stunrevolver" origin_tech = list(TECH_COMBAT = 3, TECH_MATERIAL = 3, TECH_POWER = 2) projectile_type = /obj/item/projectile/energy/electrode/strong - charge_cost = 300 + charge_cost = 400 +/* + * Detective Stun Revolver + */ +/obj/item/weapon/gun/energy/stunrevolver/detective + desc = "A LAEP20 \"Aktzin\". Designed and produced by Lawson Arms under the wing of Hephaestus, \ + several TSCs have been trying to get a hold of the blueprints for half a decade." + var/unique_reskin + +/obj/item/weapon/gun/energy/stunrevolver/detective/update_icon(var/ignore_inhands) + if(power_supply == null) + if(unique_reskin) + icon_state = "[unique_reskin]_open" + else + icon_state = "[initial(icon_state)]_open" + return + else if(charge_meter) + var/ratio = power_supply.charge / power_supply.maxcharge + + //make sure that rounding down will not give us the empty state even if we have charge for a shot left. + if(power_supply.charge < charge_cost) + ratio = 0 + else + ratio = max(round(ratio, 0.25) * 100, 25) + + if(unique_reskin) + icon_state = "[unique_reskin][ratio]" + else + icon_state = "[initial(icon_state)][ratio]" + + else if(power_supply) + if(unique_reskin) + icon_state = "[unique_reskin]" + else + icon_state = "[initial(icon_state)]" + + if(!ignore_inhands) update_held_icon() + +/obj/item/weapon/gun/energy/stunrevolver/detective/verb/rename_gun() + set name = "Name Gun" + set category = "Object" + set desc = "Rename your gun. If you're Security." + + var/mob/M = usr + if(!M.mind) return 0 + var/job = M.mind.assigned_role + if(job != "Detective" && job != "Security Officer" && job != "Warden" && job != "Head of Security") + to_chat(M, "You don't feel cool enough to name this gun, chump.") + return 0 + + var/input = sanitizeSafe(input("What do you want to name the gun?", ,""), MAX_NAME_LEN) + + if(src && input && !M.stat && in_range(M,src)) + name = input + to_chat(M, "You name the gun [input]. Say hello to your new friend.") + return 1 + +/obj/item/weapon/gun/energy/stunrevolver/detective/verb/reskin_gun() + set name = "Resprite gun" + set category = "Object" + set desc = "Click to choose a sprite for your gun." + + var/mob/M = usr + var/list/options = list() + options["Lawson Arms LAEP20"] = "stunrevolver" + options["Lawson Arms LTX1020"] = "vinstunrevolver" + options["Lawson Arms LTX1010"] = "snubstun2revolver" + options["Lawson Arms LTX1020 (Blued)"] = "bluedstunrevolver" + options["Lawson Arms LTX1020 (Stainless)"] = "stainstunrevolver" + options["Lawson Arms LTX1020 (Ace)"] = "snubstunrevolver" + options["Lawson Arms LTX1020 (Gold)"] = "goldstunrevolver" + var/choice = input(M,"Choose your sprite!","Resprite Gun") in options + if(src && choice && !M.stat && in_range(M,src)) + icon_state = options[choice] + unique_reskin = options[choice] + to_chat(M, "Your gun is now sprited as [choice]. Say hello to your new friend.") + return 1 + +/* + * Vintage Stun Revolver + */ /obj/item/weapon/gun/energy/stunrevolver/vintage name = "vintage stun revolver" desc = "An older model stun revolver that is still in service across the frontier." - description_fluff = "The LTX1020 Bolter, a Firefly Co. staple from when the company was in its hayday. \ + description_fluff = "The LTX1020 \"Bolter\", a Firefly Co. staple from when the company was in its hayday. \ While Firefly Co. has sadly been dissmantled due to bankruptcy, their iconic weapons can still be found \ across the frontier as anything from collectors items to surplus equipment. The LTX1020 falls under \ the latter category. Several companies have been known to use the base tech within the Bolter to create \ @@ -99,10 +195,13 @@ item_state = "stunrevolver" origin_tech = list(TECH_COMBAT = 3, TECH_MATERIAL = 3, TECH_POWER = 2) +/* + * Snubnose Stun Revolver + */ /obj/item/weapon/gun/energy/stunrevolver/snubnose name = "snub stun revolver" desc = "A snub nose stun revolver sporting a rather elegant look." - description_fluff = "The LTX1010 Stubby, a Firefly Co. staple from when the company was in its hayday. \ + description_fluff = "The LTX1010 \"Stubby\", a Firefly Co. staple from when the company was in its hayday. \ While Firefly Co. has sadly been dissmantled due to bankruptcy, their iconic weapons can still be found \ across the frontier as anything from collectors items to surplus equipment. The LTX1010 falls under \ the latter category. Gangsters and other gentlemanly criminals alike use the Stubby as a means of policing \ diff --git a/code/modules/projectiles/guns/projectile/automatic.dm b/code/modules/projectiles/guns/projectile/automatic.dm index 446d28a2cf..8b32651e67 100644 --- a/code/modules/projectiles/guns/projectile/automatic.dm +++ b/code/modules/projectiles/guns/projectile/automatic.dm @@ -289,13 +289,18 @@ return ..() +/* + * Automatic Shotgun + */ /obj/item/weapon/gun/projectile/automatic/as24 name = "automatic shotgun" - desc = "The AS-24 is a rugged looking automatic shotgun produced exclusively for the SCG Fleet by Hephaestus Industries. For very obvious reasons, it's illegal to own in many juristictions. Uses 12g rounds." - description_fluff = "The leading arms producer in the SCG, Hephaestus typically only uses its 'top level' branding for its military-grade equipment used by professional armed forces across human space." + desc = "The AS-24 is a rugged looking automatic shotgun produced exclusively for the SCG Fleet by Hephaestus \ + Industries. For very obvious reasons, it's illegal to own in many juristictions. Uses 12g rounds." + description_fluff = "The leading arms producer in the SCG, Hephaestus typically only uses its 'top level' \ + branding for its military-grade equipment used by professional armed forces across human space." icon_state = "ashot" - item_state = null - wielded_item_state = "woodarifle-wielded" //Placeholder + item_state = "ashot" + wielded_item_state = "ashot-wielded" w_class = ITEMSIZE_LARGE force = 10 caliber = "12g" @@ -311,7 +316,6 @@ firemodes = list( list(mode_name="semiauto", burst=1, fire_delay=0), list(mode_name="3-round bursts", burst=3, move_delay=6, burst_accuracy = list(0,-15,-15,-30,-30), dispersion = list(0.0, 0.6, 0.6)) -// list(mode_name="6-round bursts", burst=6, move_delay=6, burst_accuracy = list(0,-15,-15,-30,-30, -30), dispersion = list(0.6, 1.0, 1.0, 1.0, 1.2, 1.2)), ) /obj/item/weapon/gun/projectile/automatic/as24/update_icon() diff --git a/code/modules/projectiles/guns/projectile/boltaction.dm b/code/modules/projectiles/guns/projectile/boltaction.dm index d90d27ab70..0065ab0844 100644 --- a/code/modules/projectiles/guns/projectile/boltaction.dm +++ b/code/modules/projectiles/guns/projectile/boltaction.dm @@ -1,13 +1,20 @@ -// For all intents and purposes, these work exactly the same as pump shotguns. It's unnecessary to make their own procs for them. - -////////Base Rifle//////// +/* + * Bolt-Action Rifle + */ /obj/item/weapon/gun/projectile/shotgun/pump/rifle name = "bolt-action rifle" - desc = "The Hedberg-Hammarstrom Volsung is a modern interpretation of an almost ancient weapon design. The model is popular among hunters and collectors due to its reliability. Uses 7.62mm rounds." - description_fluff = "Sif’s largest home-grown firearms manufacturer, the Hedberg-Hammarstrom company offers a range of high-quality, high-cost hunting rifles and shotguns designed with the Sivian wilderness - and its wildlife - in mind. \ - The company operates just one production plant in Kalmar, but their weapons have found popularity on garden worlds as far afield as the Tajaran homeworld due to their excellent build quality, precision, and stopping power." - item_state = "boltaction" + desc = "The Weissen Company Type-19 is a modern interpretation of an almost ancient weapon design. \ + The model is popular among hunters and collectors due to its reliability. Uses 7.62mm rounds." + description_fluff = "The frontier’s largest home-grown firearms manufacturer, \ + the Weissen Arms Company are the leading manufacturer of - not only quality - \ + but affordable rifles for the average frontiersman looking to protect his \ + claim. The company operates just one production plant in the Mytis system, \ + but their weapons have found popularity on garden worlds as far afield as \ + the Tajaran homeworld due to their excellent build quality, precision, and \ + stopping power. Thier bolt-action rifles and brushguns are a staple amongst \ + the rural communities that dot this infinite frontier." icon_state = "boltaction" + item_state = "boltaction" fire_sound = 'sound/weapons/Gunshot_generic_rifle.ogg' max_shells = 5 caliber = "7.62mm" @@ -17,24 +24,53 @@ action_sound = 'sound/weapons/riflebolt.ogg' pump_animation = "boltaction-cycling" -////////Practice Rifle//////// +/* + * Practice Rifle + */ /obj/item/weapon/gun/projectile/shotgun/pump/rifle/practice // For target practice name = "practice bolt-action rifle" icon_state = "boltaction_practice" - desc = "A bolt-action rifle with a lightweight synthetic wood stock, designed for competitive shooting. Comes shipped with practice rounds pre-loaded into the gun. Popular among professional marksmen. Uses 7.62mm rounds." + desc = "A bolt-action rifle with a lightweight synthetic wood stock, designed for competitive shooting. \ + Comes shipped with practice rounds pre-loaded into the gun. Popular among professional marksmen. Uses 7.62mm rounds." ammo_type = /obj/item/ammo_casing/a762/practice pump_animation = "boltaction_practice-cycling" + max_shells = 4 -////////Ceremonial Rifle//////// +/* + * Moist Nugget + */ +/obj/item/weapon/gun/projectile/shotgun/pump/rifle/moistnugget + name = "mosin-nagant" + icon_state = "moistnugget" + item_state = "rifle" + desc = "Developed from 1882 to 1891, it was used by the armed forces of the Russian Empire, the Soviet \ + Union and various other nations. It is one of the most mass-produced military bolt-action rifles in history. Uses 7.62mm rounds." + description_fluff = "Hailing from the Human homeworld, the M1891, otherwise known as the Mosin-Nagant is one of the most \ + prevalant and cheapest rifles of its time. This modern remake of the classic design was used by early colonists of the \ + Commonwealth to stake claims. It was favored because of how cheap and easy the weapon was to manufacture as well as its \ + ease of use making it a better choice for those that didn't have proper firearms training." + ammo_type = /obj/item/ammo_casing/a762 + pump_animation = "moistnugget-cycling" + +/* + * Ceremonial Rifle + */ /obj/item/weapon/gun/projectile/shotgun/pump/rifle/ceremonial name = "ceremonial bolt-action rifle" - desc = "A bolt-action rifle with a heavy, high-quality wood stock that has a beautiful finish. Clearly not intended to be used in combat. Uses 7.62mm rounds." - item_state = "boltaction_c" + desc = "A bolt-action rifle with a heavy, high-quality wood stock that has a beautiful finish. \ + Clearly not intended to be used in combat. Uses 7.62mm rounds." + item_state = "ceremonial_rifle" icon_state = "ceremonial_rifle" ammo_type = /obj/item/ammo_casing/a762/blank pump_animation = "ceremonial_rifle-cycling" + max_shells = 5 + + var/sawn_off = FALSE /obj/item/weapon/gun/projectile/shotgun/pump/rifle/ceremonial/attackby(var/obj/item/A as obj, mob/user as mob) + if(sawn_off) + to_chat(user, "The [src] is already shortened!") + return if(istype(A, /obj/item/weapon/surgical/circular_saw) || istype(A, /obj/item/weapon/melee/energy) || istype(A, /obj/item/weapon/pickaxe/plasmacutter) && w_class != ITEMSIZE_NORMAL) to_chat(user, "You begin to shorten the barrel and stock of \the [src].") if(loaded.len) @@ -43,39 +79,72 @@ user.visible_message("[src] goes off!", "The rifle goes off in your face!") return if(do_after(user, 30)) + if(sawn_off) + return icon_state = "sawn_rifle" w_class = ITEMSIZE_NORMAL recoil = 2 // Owch accuracy = -15 // You know damn well why. item_state = "gun" - slot_flags &= ~SLOT_BACK //you can't sling it on your back - slot_flags |= (SLOT_BELT|SLOT_HOLSTER) //but you can wear it on your belt (poorly concealed under a trenchcoat, ideally) - or in a holster, why not. + slot_flags &= ~SLOT_BACK // You can't sling it on your back + slot_flags |= (SLOT_BELT|SLOT_HOLSTER) // But you can wear it on your belt (poorly concealed under a trenchcoat, ideally) - or in a holster, why not. name = "sawn-off rifle" desc = "The firepower of a rifle, now the size of a pistol, with an effective combat range of about three feet. Uses 7.62mm rounds." pump_animation = "sawn_rifle-cycling" to_chat(user, "You shorten the barrel and stock of \the [src]!") + sawn_off = TRUE else ..() -//Lever actions are the same thing, but bigger. +/* + * Surplus Rifle + */ +/obj/item/weapon/gun/projectile/shotgun/pump/surplus + name = "surplus rifle" + desc = "An ancient weapon from an era long past, crude in design, but still just as effective \ + as any modern interpretation. Uses 7.62mm rounds." + icon_state = "surplus" + item_state = "rifle" + fire_sound = 'sound/weapons/Gunshot_generic_rifle.ogg' + max_shells = 4 + slot_flags = null + caliber = "7.62mm" + origin_tech = list(TECH_COMBAT = 1) // Old(er) as shit rifle doesn't have very good tech. + ammo_type = /obj/item/ammo_casing/a762 + load_method = SINGLE_CASING|SPEEDLOADER + action_sound = 'sound/weapons/riflebolt.ogg' + pump_animation = "surplus-cycling" -////////Standard Lever Action Rifle//////// -/obj/item/weapon/gun/projectile/shotgun/pump/rifle/lever - name = "lever-action rifle" - desc = "The Hedberg-Hammarstrom Edda is the latest version of an almost ancient weapon design from the 19th century, popular with some due to its simplistic design. This one uses a lever-action to move new rounds into the chamber. Uses 7.62mm rounds." - description_fluff = "Sif’s largest home-grown firearms manufacturer, the Hedberg-Hammarstrom company offers a range of high-quality, high-cost hunting rifles and shotguns designed with the Sivian wilderness - and its wildlife - in mind. \ - The company operates just one production plant in Kalmar, but their weapons have found popularity on garden worlds as far afield as the Tajaran homeworld due to their excellent build quality, precision, and stopping power." - item_state = "leveraction" - icon_state = "leveraction" +/* + * Scoped Rifle + */ +/obj/item/weapon/gun/projectile/shotgun/pump/rifle/scoped + name = "scoped bolt-action rifle" + desc = "The Weissen Company Type-19 is a modern interpretation of an almost ancient weapon design. \ + The model is popular among hunters and collectors due to its reliability. Uses 7.62mm rounds." + description_fluff = "The frontier’s largest home-grown firearms manufacturer, \ + the Weissen Arms Company are the leading manufacturer of - not only quality - \ + but affordable rifles for the average frontiersman looking to protect his \ + claim. The company operates just one production plant in the Mytis system, \ + but their weapons have found popularity on garden worlds as far afield as \ + the Tajaran homeworld due to their excellent build quality, precision, and \ + stopping power. Thier bolt-action rifles and brushguns are a staple amongst \ + the rural communities that dot this infinite frontier." + icon_state = "scoped-boltaction" + item_state = "boltaction_scoped" + fire_sound = 'sound/weapons/Gunshot_generic_rifle.ogg' max_shells = 5 caliber = "7.62mm" - load_method = SINGLE_CASING - pump_animation = "leveraction-cycling" + origin_tech = list(TECH_COMBAT = 2)// Old as shit rifle doesn't have very good tech, but it does have a scope. + ammo_type = /obj/item/ammo_casing/a762 + load_method = SINGLE_CASING|SPEEDLOADER + action_sound = 'sound/weapons/riflebolt.ogg' + pump_animation = "scoped-boltaction-cycling" -////////Vintage Lever Action Rifle//////// -/obj/item/weapon/gun/projectile/shotgun/pump/rifle/lever/vintage - name = "vintage repeater" - desc = "An iconic manually operated lever action rifle, offering adequate stopping power due to it's still powerful cartridge while at the same time having a rather respectable firing rate due to it's mechanism. It is very probable this is a replica instead of a museum piece, but rifles of this pattern still see usage as colonist guns in some far off regions. Uses 7.62mm rounds." - item_state = "levercarbine" - icon_state = "levercarbine" - pump_animation = "levercarbine-cycling" +/obj/item/weapon/gun/projectile/shotgun/pump/rifle/ui_action_click() + scope() + +/obj/item/weapon/gun/projectile/shotgun/pump/rifle/verb/scope() + set category = "Object" + set name = "Use Scope" + set popup_menu = 1 \ No newline at end of file diff --git a/code/modules/projectiles/guns/projectile/boltaction_vr.dm b/code/modules/projectiles/guns/projectile/boltaction_vr.dm deleted file mode 100644 index 3e538adf4e..0000000000 --- a/code/modules/projectiles/guns/projectile/boltaction_vr.dm +++ /dev/null @@ -1,55 +0,0 @@ -/obj/item/weapon/gun/projectile/shotgun/pump/rifle - desc = "The Weissen Company Type-19 is a modern interpretation of an almost ancient weapon design. The model is popular among hunters and collectors due to its reliability. Uses 7.62mm rounds." - description_fluff = "The frontier’s largest home-grown firearms manufacturer, the APEX Arms Company offers a range of high-quality, high-cost hunting rifles and shotguns designed with the wild frontier wilderness - and its wildlife - in mind. \ - The company operates just one production plant in the Mytis system, but their weapons have found popularity on garden worlds as far afield as the Tajaran homeworld due to their excellent build quality, precision, and stopping power." - icon = 'icons/obj/gun_vr.dmi' - -/obj/item/weapon/gun/projectile/shotgun/pump/rifle/practice //For target practice - name = "practice rifle" - icon = 'icons/obj/gun_vr.dmi' - icon_state = "boltaction_p" - item_state = "boltaction_p" - item_icons = list(slot_l_hand_str = 'icons/mob/items/lefthand_guns_vr.dmi', slot_r_hand_str = 'icons/mob/items/righthand_guns_vr.dmi') - max_shells = 4 - -/obj/item/weapon/gun/projectile/shotgun/pump/rifle/ceremonial - max_shells = 5 - -/obj/item/weapon/gun/projectile/shotgun/pump/rifle/lever - desc = "The Weissen Company Thunderking is the latest version of an almost ancient weapon design from the 19th century, popular with some due to its simplistic design. This one uses a lever-action to move new rounds into the chamber. Uses 7.62mm rounds." - description_fluff = "The frontier’s largest home-grown firearms manufacturer, the Weissen Company offers a range of high-quality, high-cost hunting rifles and shotguns designed with the wild frontier wilderness - and its wildlife - in mind. \ - The company operates just one production plant in the Mytis system, but their weapons have found popularity on garden worlds as far afield as the Tajaran homeworld due to their excellent build quality, precision, and stopping power." - icon = 'icons/obj/gun_vr.dmi' - icon_state = "levergun" - max_shells = 6 - -/obj/item/weapon/gun/projectile/shotgun/pump/rifle/lever/vintage - desc = "The Weissen Company's version of an iconic manually operated lever action rifle, the Bushhog, offering adequate stopping power due to it's still powerful cartridge while at the same time having a rather respectable firing rate due to it's mechanism. It is very probable this is a replica instead of a museum piece, but rifles of this pattern still see usage as colonist guns in some far off regions. Uses 7.62mm rounds." - description_fluff = "The frontier’s largest home-grown firearms manufacturer, the Weissen Company offers a range of high-quality, high-cost hunting rifles and shotguns designed with the wild frontier wilderness - and its wildlife - in mind. \ - The company operates just one production plant in the Mytis system, but their weapons have found popularity on garden worlds as far afield as the Tajaran homeworld due to their excellent build quality, precision, and stopping power." - icon = 'icons/obj/gun_vr.dmi' - icon_state = "levergunv" - item_state = "leveraction" - max_shells = 5 - caliber = "7.62mm" - load_method = SINGLE_CASING - pump_animation = null - -////////////////////////surplus gun - for derelicts (04/26/2021)//////////////////////// - -/obj/item/weapon/gun/projectile/shotgun/pump/surplus - name = "surplus rifle" - desc = "An ancient weapon from an era long pas, crude in design, but still just as effective as any modern interpretation. Uses 7.62mm rounds." - icon = 'icons/obj/gun_vr.dmi' - icon_state = "boltaction_s" - item_state = "boltaction_p" - item_icons = list(slot_l_hand_str = 'icons/mob/items/lefthand_guns_vr.dmi', slot_r_hand_str = 'icons/mob/items/righthand_guns_vr.dmi') - fire_sound = 'sound/weapons/Gunshot_generic_rifle.ogg' - max_shells = 4 - slot_flags = null - caliber = "7.62mm" - origin_tech = list(TECH_COMBAT = 1) // Old(er) as shit rifle doesn't have very good tech. - ammo_type = /obj/item/ammo_casing/a762 - load_method = SINGLE_CASING|SPEEDLOADER - action_sound = 'sound/weapons/riflebolt.ogg' - pump_animation = null diff --git a/code/modules/projectiles/guns/projectile/leveraction.dm b/code/modules/projectiles/guns/projectile/leveraction.dm new file mode 100644 index 0000000000..0379ace324 --- /dev/null +++ b/code/modules/projectiles/guns/projectile/leveraction.dm @@ -0,0 +1,101 @@ +/* + * Lever-Action Rifle + */ +/obj/item/weapon/gun/projectile/shotgun/pump/rifle/lever + name = "lever-action rifle" + desc = "The Weissen Company's version of an iconic manually operated lever action rifle, \ + the Bushhog, offering adequate stopping power due to it's still powerful cartridge while at \ + the same time having a rather respectable firing rate due to it's mechanism. It is very probable \ + this is a replica instead of a museum piece, but rifles of this pattern still see usage as \ + colonist guns in some far off regions. Uses 7.62mm rounds." + description_fluff = "The frontier’s largest home-grown firearms manufacturer, the Weissen \ + Company offers a range of high-quality, high-cost hunting rifles and shotguns designed with \ + the wild frontier wilderness - and its wildlife - in mind. The company operates just one \ + production plant in the Mytis system, but their weapons have found popularity on garden \ + worlds as far afield as the Tajaran homeworld due to their excellent build quality, \ + precision, and stopping power." + icon_state = "leveraction" + item_state = "huntrifle" + max_shells = 5 + caliber = "7.62mm" + load_method = SINGLE_CASING + pump_animation = "leveraction-cycling" + +/* + * Vintage Lever-Action + */ +/obj/item/weapon/gun/projectile/shotgun/pump/rifle/lever/vintage + name = "vintage lever-action rifle" + desc = "The Weissen Company's version of an iconic manually operated lever action rifle, \ + the Bushhog, offering adequate stopping power due to it's still powerful cartridge while at \ + the same time having a rather respectable firing rate due to it's mechanism. It is very probable \ + this is a replica instead of a museum piece, but rifles of this pattern still see usage as \ + colonist guns in some far off regions. Uses 7.62mm rounds." + description_fluff = "The frontier’s largest home-grown firearms manufacturer, the Weissen \ + Company offers a range of high-quality, high-cost hunting rifles and shotguns designed with \ + the wild frontier wilderness - and its wildlife - in mind. The company operates just one \ + production plant in the Mytis system, but their weapons have found popularity on garden \ + worlds as far afield as the Tajaran homeworld due to their excellent build quality, \ + precision, and stopping power." + icon_state = "levercarbine" + pump_animation = "levercarbine-cycling" + +/* + * Cowboy Repeater + */ +/obj/item/weapon/gun/projectile/shotgun/pump/rifle/lever/repeater + name = "repeater" + desc = "The Weissen Company's answer to varmint shooting on frontier ranches, the T-7 Boone \ + gives ranchers and farmers alike a perfect rider rifle for protecting the fenceline. Uses .357 rounds." + description_fluff = "The frontier’s largest home-grown firearms manufacturer, \ + the Weissen Arms Company are the leading manufacturer of - not only quality - \ + but affordable rifles for the average frontiersman looking to protect his \ + claim. The company operates just one production plant in the Mytis system, \ + but their weapons have found popularity on garden worlds as far afield as \ + the Tajaran homeworld due to their excellent build quality, precision, and \ + stopping power. Thier bolt-action and brushguns are a staple amongst the rural communities \ + that dot this infinite frontier." + icon_state = "repeater" + max_shells = 8 + caliber = ".357" + pump_animation = "repeater-cycling" + +/* + * Brushgun + */ +/obj/item/weapon/gun/projectile/shotgun/pump/rifle/lever/brushgun + name = "brushgun" + desc = "Weissen Company's newest budget caravan rifle for those that want a light yet effective rifle, \ + the T-10 Cassidy Uses .44 rounds." + description_fluff = "The frontier’s largest home-grown firearms manufacturer, \ + the Weissen Arms Company are the leading manufacturer of - not only quality - \ + but affordable rifles for the average frontiersman looking to protect his \ + claim. The company operates just one production plant in the Mytis system, \ + but their weapons have found popularity on garden worlds as far afield as \ + the Tajaran homeworld due to their excellent build quality, precision, and \ + stopping power. Thier bolt-action and brushguns are a staple amongst the rural communities \ + that dot this infinite frontier." + icon_state = "brushgun" + max_shells = 8 + caliber = ".44" + pump_animation = "brushgun-cycling" + +/* + * Trailgun + */ +/obj/item/weapon/gun/projectile/shotgun/pump/rifle/lever/trailgun + name = "brushgun" + desc = "Weissen Company's newest budget caravan rifle for those that want a light yet effective rifle, \ + the T-10 Cassidy Uses .44 rounds." + description_fluff = "The frontier’s largest home-grown firearms manufacturer, \ + the Weissen Arms Company are the leading manufacturer of - not only quality - \ + but affordable rifles for the average frontiersman looking to protect his \ + claim. The company operates just one production plant in the Mytis system, \ + but their weapons have found popularity on garden worlds as far afield as \ + the Tajaran homeworld due to their excellent build quality, precision, and \ + stopping power. Thier bolt-action and brushguns are a staple amongst the rural communities \ + that dot this infinite frontier." + icon_state = "trailgun" + max_shells = 8 + caliber = ".44" + pump_animation = "trailgun-cycling" \ No newline at end of file diff --git a/code/modules/projectiles/guns/projectile/pistol.dm b/code/modules/projectiles/guns/projectile/pistol.dm index 30bbb74632..c8939aa826 100644 --- a/code/modules/projectiles/guns/projectile/pistol.dm +++ b/code/modules/projectiles/guns/projectile/pistol.dm @@ -1,3 +1,6 @@ +/* + * M1911 + */ /obj/item/weapon/gun/projectile/colt var/unique_reskin name = ".45 pistol" @@ -22,6 +25,9 @@ else icon_state = "[initial(icon_state)]-e" +/* + * Detective M1911 + */ /obj/item/weapon/gun/projectile/colt/detective desc = "A standard law enforcement issue pistol. Uses .45 rounds." magazine_type = /obj/item/ammo_magazine/m45/rubber @@ -52,15 +58,13 @@ var/mob/M = usr var/list/options = list() - options["NT Mk. 58"] = "secguncomp" - options["NT Mk. 58 Custom"] = "secgundark" - options["MarsTech P11 Spur"] = "colt" - options["MarsTech P59 Massif"] = "fnseven" - options["ProTek YC9"] = "usp" - options["ProTek Minx"] = "VP78" - options["Jindal T15 Chooha"] = "p08" - options["Jindal KP-45W"] = "p08b" - options["PCA-11 Tenzu"] = "enforcer_black" + options["MarsTech P11 Spur (Bubba'd)"] = "mod_colt" + options["MarsTech P11 Spur (Blued)"] = "blued_colt" + options["MarsTech P11 Spur (Gold)"] = "gold_colt" + options["MarsTech P11 Spur (Stainless)"] = "stainless_colt" + options["MarsTech P11 Spur (Dark)"] = "dark_colt" + options["MarsTech P11 Spur (Green)"] = "green_colt" + options["MarsTech P11 Spur (Blue)"] = "blue_colt" var/choice = tgui_input_list(M,"Choose your sprite!","Resprite Gun", options) if(src && choice && !M.stat && in_range(M,src)) icon_state = options[choice] @@ -76,11 +80,15 @@ ..() */ +/* + * Security Sidearm + */ /obj/item/weapon/gun/projectile/sec name = ".45 pistol" desc = "The MT Mk58 is a cheap, ubiquitous sidearm, produced by MarsTech. Found pretty much everywhere humans are. Uses .45 rounds." - description_fluff = "The leading civilian-sector high-quality small arms brand of Hephaestus Industries, MarsTech has been the provider of choice for law enforcement and security forces for over 300 years." - icon_state = "secguncomp" + description_fluff = "The leading civilian-sector high-quality small arms brand of Hephaestus Industries, \ + MarsTech has been the provider of choice for law enforcement and security forces for over 300 years." + icon_state = "secgun" magazine_type = /obj/item/ammo_magazine/m45/rubber allowed_magazines = list(/obj/item/ammo_magazine/m45) projectile_type = /obj/item/projectile/bullet/pistol/medium @@ -91,9 +99,9 @@ /obj/item/weapon/gun/projectile/sec/update_icon() ..() if(ammo_magazine) - icon_state = "secguncomp" + icon_state = "secgun" else - icon_state = "secguncomp-e" + icon_state = "secgun-e" /obj/item/weapon/gun/projectile/sec/flash name = ".45 signal pistol" @@ -102,18 +110,21 @@ /obj/item/weapon/gun/projectile/sec/wood desc = "The MT Mk58 is a cheap, ubiquitous sidearm, produced by MarsTech. This one has a sweet wooden grip. Uses .45 rounds." name = "custom .45 Pistol" - icon_state = "secgundark" + icon_state = "secgunb" /obj/item/weapon/gun/projectile/sec/wood/update_icon() ..() if(ammo_magazine) - icon_state = "secgundark" + icon_state = "secgunb" else - icon_state = "secgundark-e" + icon_state = "secgunb-e" +/* + * Silenced Pistol + */ /obj/item/weapon/gun/projectile/silenced name = "silenced pistol" - desc = "A small, quiet, easily concealable gun. Uses .45 rounds." + desc = "A small, quiet, easily concealable gun with a built-in silencer. Uses .45 rounds." icon_state = "silenced_pistol" w_class = ITEMSIZE_NORMAL caliber = ".45" @@ -129,6 +140,9 @@ /obj/item/weapon/gun/projectile/silenced/empty magazine_type = null +/* + * Deagle + */ /obj/item/weapon/gun/projectile/deagle name = "hand cannon" desc = "The PCA-55 Rarkajar perfect handgun for shooters with a need to hit targets through a wall and behind a fridge in your neighbor's house. Uses .44 rounds." @@ -161,6 +175,9 @@ icon_state = "deaglecamo" item_state = "deagleg" +/* + * Gyro Pistol (Admin Abuse in gun form) + */ /obj/item/weapon/gun/projectile/gyropistol // Does this even appear anywhere outside of admin abuse? name = "gyrojet pistol" desc = "Speak softly, and carry a big gun. Fires rare .75 caliber self-propelled exploding bolts--because fuck you and everything around you." @@ -183,6 +200,9 @@ else icon_state = "gyropistol" +/* + * Compact Pistol + */ /obj/item/weapon/gun/projectile/pistol name = "compact pistol" desc = "The Lumoco Arms P3 Whisper. A compact, easily concealable gun, though it's only compatible with compact magazines. Uses 9mm rounds." @@ -236,6 +256,9 @@ else icon_state = "pistol" +/* + * Silencer + */ /obj/item/weapon/silencer name = "silencer" desc = "a silencer" @@ -243,6 +266,9 @@ icon_state = "silencer" w_class = ITEMSIZE_SMALL +/* + * Zip Gun (yar har) + */ /obj/item/weapon/gun/projectile/pirate name = "zip gun" desc = "Little more than a barrel, handle, and firing mechanism, cheap makeshift firearms like this one are not uncommon in frontier systems." @@ -277,6 +303,9 @@ caliber = initial(ammo.caliber) . = ..() +/* + * Derringer + */ /obj/item/weapon/gun/projectile/derringer name = "derringer" desc = "It's not size of your gun that matters, just the size of your load. Uses .357 rounds." //OHHH MYYY~ @@ -290,6 +319,9 @@ ammo_type = /obj/item/ammo_casing/a357 projectile_type = /obj/item/projectile/bullet/pistol/strong +/* + * Luger + */ /obj/item/weapon/gun/projectile/luger name = "\improper Jindal T15 Chooha" desc = "Almost seventy percent guaranteed not to be a cheap rimworld knockoff! Accuracy, easy handling, and its distinctive appearance make it popular among gun collectors. Uses 9mm rounds." @@ -318,6 +350,9 @@ (Perhaps owing to its less than prestigious image), instead being sold almost exclusively through retailers and advertising platforms targeting the 'independent roughneck' demographic." icon_state = "p08b" +/* + * P92X (9mm Pistol) + */ /obj/item/weapon/gun/projectile/p92x name = "9mm pistol" desc = "A widespread MarsTech sidearm called the P92X which is used by military, police, and security forces across the galaxy. Uses 9mm rounds." @@ -335,8 +370,11 @@ else icon_state = "[initial(icon_state)]-e" +/obj/item/weapon/gun/projectile/p92x/rubber + magazine_type = /obj/item/ammo_magazine/m9mm/rubber + /obj/item/weapon/gun/projectile/p92x/brown - icon_state = "p92x-brown" + icon_state = "p92xb" /obj/item/weapon/gun/projectile/p92x/large magazine_type = /obj/item/ammo_magazine/m9mm/large // Spawns with illegal magazines. \ No newline at end of file diff --git a/code/modules/projectiles/guns/projectile/revolver.dm b/code/modules/projectiles/guns/projectile/revolver.dm index f755a8a535..020b677042 100644 --- a/code/modules/projectiles/guns/projectile/revolver.dm +++ b/code/modules/projectiles/guns/projectile/revolver.dm @@ -1,3 +1,6 @@ +/* + * Revolver + */ /obj/item/weapon/gun/projectile/revolver name = "revolver" desc = "The MarsTech HE Colt is a choice revolver for when you absolutely, positively need to put a hole in the other guy. Uses .357 rounds." @@ -38,12 +41,12 @@ chamber_offset = 0 return ..() -/obj/item/weapon/gun/projectile/revolver/mateba - name = "mateba" - desc = "This unique looking handgun is named after an Italian company famous for the original manufacture of these revolvers, and pasta kneading machines. Uses .357 rounds." // Yes I'm serious. -Spades - icon_state = "mateba" - origin_tech = list(TECH_COMBAT = 2, TECH_MATERIAL = 2) +/obj/item/weapon/gun/projectile/revolver/stainless + icon_state = "revolver_stainless" +/* + * Detective Revolver + */ /obj/item/weapon/gun/projectile/revolver/detective name = "revolver" desc = "A standard MarsTech R1 snubnose revolver, popular among some law enforcement agencies for its simple, long-lasting construction. Uses .38-Special rounds." @@ -80,7 +83,6 @@ ammo_type = /obj/item/ammo_casing/a45/rubber max_shells = 6 - /obj/item/weapon/gun/projectile/revolver/detective45/verb/rename_gun() set name = "Name Gun" set category = "Object" @@ -108,24 +110,67 @@ var/mob/M = usr var/list/options = list() options["MarsTech R1 Snubnose"] = "detective" - options["ProTek Cowboy"] = "GP100" + options["MarsTech R1 Snubnose (Blued)"] = "detective_blued" + options["MarsTech R1 Snubnose (Stainless)"] = "detective_stainless" + options["MarsTech R1 Snubnose (Gold)"] = "detective_stainless" + options["MarsTech R1 Snubnose (Leopard)"] = "detective_leopard" options["MarsTech Frontiersman Classic"] = "detective_peacemaker" options["MarsTech Frontiersman Shadow"] = "detective_peacemaker_dark" - options["MarsTech Panther"] = "detective_panther" - options["Jindal Duke"] = "lemat_old" - options["H-H Sindri"] = "webley" - options["Lombardi Buzzard"] = "detective_buzzard" - options["Lombardi Constable Deluxe 2502"] = "detective_constable" + options["Jindal Duke"] = "detective_fitz" + options["H-H M1895"] = "nagant" var/choice = tgui_input_list(M,"Choose your sprite!","Resprite Gun", options) if(src && choice && !M.stat && in_range(M,src)) icon_state = options[choice] to_chat(M, "Your gun is now sprited as [choice]. Say hello to your new friend.") return 1 +/* + * Lombardi Revolvers + * Use to be detective revolvers until seperated + */ +/obj/item/weapon/gun/projectile/revolver/lombardi + name = "Lombardi Buzzard" + desc = "A rugged revolver that is mostly used by small law enforcement agencies across the frontier as a cheap, reliable sidearm. Uses .357 rounds." + icon_state = "lombardi_police" + origin_tech = list(TECH_COMBAT = 2, TECH_MATERIAL = 2) -// Blade Runner pistol. +/obj/item/weapon/gun/projectile/revolver/lombardi/panther + name = "Lombardi Panther" + icon_state = "lombardi_panther" + +/obj/item/weapon/gun/projectile/revolver/lombardi/gold + name = "Lombardi Deluxe 2502" + desc = "A sweet looking revolver that is deocrated with false gold and silver plating. Favored among by gamblers and criminals alike. Uses .357 rounds." + icon_state = "lombardi_gold" + +/* + * Captain's Peacekeeper + */ +/obj/item/weapon/gun/projectile/revolver/cappeacekeeper + name = "decorated peacekeeper" + desc = "A MarsTech Frontiersman revolver that has been heavily modified. It has been decorated for personal use by command officers. Uses .44 rounds." + description_fluff = "The leading civilian-sector high-quality small arms brand of Hephaestus Industries, \ + MarsTech has been the provider of choice for law enforcement and security forces for over 300 years." + icon_state = "captains_peacemaker" + caliber = ".44" + origin_tech = list(TECH_COMBAT = 3, TECH_MATERIAL = 2) + ammo_type = /obj/item/ammo_casing/a44 + +/* + * Mateba + */ +/obj/item/weapon/gun/projectile/revolver/mateba + name = "mateba" + desc = "This unique looking handgun is named after an Italian company famous for the original manufacture of \ + these revolvers, and pasta kneading machines. Uses .357 rounds." // Yes I'm serious. -Spades + icon_state = "mateba" + origin_tech = list(TECH_COMBAT = 2, TECH_MATERIAL = 2) + +/* + * Deckard (Blade Runner) + */ /obj/item/weapon/gun/projectile/revolver/deckard - name = "\improper Deckard .38" + name = "\improper \"Deckard\" .38" desc = "A custom-built revolver, based off the semi-popular Detective Special model. Uses .38-Special rounds." icon_state = "deckard-empty" caliber = ".38" @@ -148,11 +193,16 @@ flick("deckard-reload",src) ..() +/* + * Judge + */ /obj/item/weapon/gun/projectile/revolver/judge name = "\"The Judge\"" desc = "A revolving hand-shotgun by Jindal Arms that packs the power of a 12 guage in the palm of your hand (if you don't break your wrist). Uses 12g rounds." - description_fluff = "While wholly owned by Hephaestus Industries, the Jindal Arms brand does not appear prominently in most company catalogues (Perhaps owing to its less than prestigious image), \ - instead being sold almost exclusively through retailers and advertising platforms targeting the 'independent roughneck' demographic." + description_fluff = "While wholly owned by Hephaestus Industries, the Jindal Arms brand does not appear \ + prominently in most company catalogues (Perhaps owing to its less than prestigious image), \ + instead being sold almost exclusively through retailers and advertising platforms targeting the \ + 'independent roughneck' demographic." icon_state = "judge" caliber = "12g" origin_tech = list(TECH_COMBAT = 2, TECH_MATERIAL = 2, TECH_ILLEGAL = 4) @@ -163,13 +213,20 @@ projectile_type = /obj/item/projectile/bullet/shotgun // ToDo: Remove accuracy debuf in exchange for slightly injuring your hand every time you fire it. +/* + * Mako + */ /obj/item/weapon/gun/projectile/revolver/lemat - name = "Mako Revolver" - desc = "The Bishamonten P100 Mako is a 9 shot revolver with a secondary firing barrel loading shotgun shells. For when you really need something dead. A rare yet deadly collector's item. Uses .38-Special and 12g rounds depending on the barrel." - description_fluff = "The Bishamonten Company operated from roughly 2150-2280 - the height of the first extrasolar colonisation boom - before filing for bankruptcy and selling off its assets to various companies that would go on to become today’s TSCs. \ - Focused on sleek ‘futurist’ designs which have largely fallen out of fashion but remain popular with collectors and people hoping to make some quick thalers from replica weapons. \ - Bishamonten weapons tended to be form over function - despite their flashy looks, most were completely unremarkable one way or another as weapons and used very standard firing mechanisms - \ - the Mako was a notable exception, and original examples are much sought after." + name = "\improper \"Mako\" Revolver" + desc = "The Bishamonten P100 Mako is a 9 shot revolver with a secondary firing barrel loading shotgun shells. \ + For when you really need something dead. A rare yet deadly collector's item. Uses .38-Special and 12g rounds depending on the barrel." + description_fluff = "The Bishamonten Company operated from roughly 2150-2280 - the height of the first \ + extrasolar colonisation boom - before filing for bankruptcy and selling off its assets to various companies \ + that would go on to become today’s TSCs. Focused on sleek ‘futurist’ designs which have largely fallen out of \ + fashion but remain popular with collectors and people hoping to make some quick thalers from replica weapons. \ + Bishamonten weapons tended to be form over function - despite their flashy looks, most were completely \ + unremarkable one way or another as weapons and used very standard firing mechanisms - the Mako was a notable \ + exception, and original examples are much sought after." icon_state = "combatrevolver" item_state = "revolver" origin_tech = list(TECH_COMBAT = 2, TECH_MATERIAL = 2) @@ -258,24 +315,41 @@ . += "It has a secondary barrel that is empty." -//Ported from Bay +/* + * Webley (Bay Port) + */ /obj/item/weapon/gun/projectile/revolver/webley name = "patrol revolver" - desc = "A rugged top break revolver commonly issued to members of the SifGuard. Uses .44 magnum rounds." + desc = "A rugged top break revolver commonly issued to planetary law enforcement offices. Uses .44 magnum rounds." description_fluff = "The Heberg-Hammarstrom Althing is a simple, head-wearing revolver made with an anti-corrosive alloy. \ - The Althing is advertised as being 'able to survive six months on the bottom of a frozen river and emerge full ready to save a life'. Issued as standard sidearms to SifGuard frontier patrol." + The Althing is advertised as being 'able to survive six months on the bottom of a frozen river and emerge full ready to \ + save a life'. Issued as standard sidearms to SifGuard frontier patrol." icon_state = "webley2" item_state = "webley2" caliber = ".44" origin_tech = list(TECH_COMBAT = 2, TECH_MATERIAL = 2) handle_casings = CYCLE_CASINGS - max_shells = 6 ammo_type = /obj/item/ammo_casing/a44 -/obj/item/weapon/gun/projectile/revolver/webley/auto - name = "autorevolver" - icon_state = "mosley" - desc = "A shiny Fosbery Autococker automatic revolver, with black accents. Marketed as the 'Revolver for the Modern Era'. Uses .44 magnum rounds." - fire_delay = 5.7 //Autorevolver. Also synced with the animation - fire_anim = "mosley_fire" - origin_tech = list(TECH_COMBAT = 3, TECH_MATERIAL = 2) +/* + * Webley (Eris Port) + */ +/obj/item/weapon/gun/projectile/revolver/consul + name = "\improper \"Consul\" Revolver" + desc = "Are you feeling lucky, punk? Uses .44 rounds." + icon_state = "inspector" + item_state = "revolver" + caliber = ".44" + origin_tech = list(TECH_COMBAT = 3, TECH_MATERIAL = 3) + handle_casings = CYCLE_CASINGS + ammo_type = /obj/item/ammo_casing/a44/rubber + +/obj/item/weapon/gun/projectile/revolver/consul/proc/update_charge() + cut_overlays() + if(loaded.len==0) + add_overlay("inspector_off") + else + add_overlay("inspector_on") + +/obj/item/weapon/gun/projectile/revolver/consul/update_icon() + update_charge() diff --git a/code/modules/projectiles/guns/projectile/revolver_vr.dm b/code/modules/projectiles/guns/projectile/revolver_vr.dm index cc12c6248f..94a0205a11 100644 --- a/code/modules/projectiles/guns/projectile/revolver_vr.dm +++ b/code/modules/projectiles/guns/projectile/revolver_vr.dm @@ -1,73 +1,4 @@ -//////////////////// Eris Ported Guns //////////////////// -//Detective gun -/obj/item/weapon/gun/projectile/revolver/consul - name = "\improper \"Consul\" Revolver" - desc = "Are you feeling lucky, punk? Uses .44 rounds." - icon = 'icons/obj/gun_vr.dmi' - icon_state = "inspector" - item_state = "revolver" - caliber = ".44" - ammo_type = /obj/item/ammo_casing/a44/rubber - handle_casings = CYCLE_CASINGS - origin_tech = list(TECH_COMBAT = 3, TECH_MATERIAL = 3) - -/obj/item/weapon/gun/projectile/revolver/consul/proc/update_charge() - cut_overlays() - if(loaded.len==0) - add_overlay("inspector_off") - else - add_overlay("inspector_on") - -/obj/item/weapon/gun/projectile/revolver/consul/update_icon() - update_charge() - -//.357 special ammo -/obj/item/ammo_magazine/s357/stun - name = "speedloader (.357 stun)" - desc = "A speedloader for .357 revolvers." - icon = 'icons/obj/ammo_vr.dmi' - icon_state = "s357" - caliber = ".357" - ammo_type = /obj/item/ammo_casing/a357/stun - - -/obj/item/ammo_casing/a357/stun - desc = "A .357 stun bullet casing." - caliber = ".357" - icon = 'icons/obj/ammo_vr.dmi' - icon_state = "stun357" - projectile_type = /obj/item/projectile/energy/electrode/stunshot/strong - -/obj/item/ammo_magazine/s357/rubber - name = "speedloader (.357 rubber)" - desc = "A speedloader for .357 revolvers." - icon = 'icons/obj/ammo_vr.dmi' - icon_state = "r357" - caliber = ".357" - ammo_type = /obj/item/ammo_casing/a357/rubber - - -/obj/item/ammo_casing/a357/rubber - desc = "A .357 rubber bullet casing." - caliber = ".357" - icon = 'icons/obj/ammo_vr.dmi' - icon_state = "rubber357" - projectile_type = /obj/item/projectile/bullet/pistol/rubber/strong - -/obj/item/ammo_magazine/s357/flash - name = "speedloader (.357 flash)" - desc = "A speedloader for .357 revolvers." - icon = 'icons/obj/ammo_vr.dmi' - icon_state = "f357" - caliber = ".357" - ammo_type = /obj/item/ammo_casing/a357/flash - -/obj/item/ammo_casing/a357/flash - desc = "A .357 flash bullet casing." - caliber = ".357" - icon = 'icons/obj/ammo_vr.dmi' - icon_state = "flash357" - projectile_type = /obj/item/projectile/energy/flash/strong +//Dunno why .380 ammo was in here but Im not touching it. Rest was moved to other files. //.380 /obj/item/ammo_casing/a380 @@ -77,7 +8,7 @@ /obj/item/ammo_magazine/m380 name = "magazine (.380)" - icon_state = "9x19p" + icon_state = "m92" origin_tech = list(TECH_COMBAT = 2) mag_type = MAGAZINE matter = list(MAT_STEEL = 480) @@ -86,30 +17,3 @@ max_ammo = 8 multiple_sprites = 1 -//.44 -/obj/item/ammo_casing/a44/rubber - icon_state = "r-casing" - desc = "A .44 rubber bullet casing." - projectile_type = /obj/item/projectile/bullet/pistol/rubber/strong - -/obj/item/ammo_magazine/m44/rubber - desc = "A magazine for .44 less-than-lethal ammo." - ammo_type = /obj/item/ammo_casing/a44/rubber - -//.44 speedloaders -/obj/item/ammo_magazine/s44 - name = "speedloader (.44)" - desc = "A speedloader for .44 revolvers." - icon = 'icons/obj/ammo_vr.dmi' - icon_state = "s357" - caliber = ".44" - matter = list(MAT_STEEL = 1260) - ammo_type = /obj/item/ammo_casing/a44 - max_ammo = 6 - multiple_sprites = 1 - mag_type = SPEEDLOADER - -/obj/item/ammo_magazine/s44/rubber - name = "speedloader (.44 rubber)" - icon_state = "r357" - ammo_type = /obj/item/ammo_casing/a44/rubber diff --git a/code/modules/projectiles/guns/projectile/semiauto.dm b/code/modules/projectiles/guns/projectile/semiauto.dm index d3fec59325..e04c896ecc 100644 --- a/code/modules/projectiles/guns/projectile/semiauto.dm +++ b/code/modules/projectiles/guns/projectile/semiauto.dm @@ -1,11 +1,17 @@ +/* + * M1 Garand + */ /obj/item/weapon/gun/projectile/garand name = "semi-automatic rifle" - desc = "A vintage styled frontier rifle by Hedberg-Hammarstrom. The distinctive 'ping' is considered traditional, though its origins are much debated.. Uses 7.62mm rounds." - description_fluff = "Sif’s largest home-grown firearms manufacturer, the Hedberg-Hammarstrom company offers a range of high-quality, high-cost hunting rifles and shotguns designed with the Sivian wilderness - and its wildlife - in mind. \ - The company operates just one production plant in Kalmar, but their weapons have found popularity on garden worlds as far afield as the Tajaran homeworld due to their excellent build quality, \ + desc = "A vintage styled frontier rifle by Hedberg-Hammarstrom. The distinctive 'ping' is considered \ + traditional, though its origins are much debated. Uses 7.62mm rounds." + description_fluff = "Sif’s largest home-grown firearms manufacturer, the Hedberg-Hammarstrom company offers a \ + range of high-quality, high-cost hunting rifles and shotguns designed with the Sivian wilderness - and its \ + wildlife - in mind. The company operates just one production plant in Kalmar, but their weapons have found \ + popularity on garden worlds as far afield as the Tajaran homeworld due to their excellent build quality, \ precision, and stopping power." icon_state = "garand" - item_state = "boltaction" + item_state = "rifle" w_class = ITEMSIZE_LARGE caliber = "7.62mm" origin_tech = list(TECH_COMBAT = 2, TECH_MATERIAL = 2) @@ -23,14 +29,19 @@ else icon_state = "[initial(icon_state)]-e" -//Bastard child of a revolver and a semi-auto rifle. - -//Standard Revolving Rifle +/* + * Revolver Rifle + * Bastard child of a revolver and a semi-auto rifle. + */ /obj/item/weapon/gun/projectile/revolvingrifle name = "revolving rifle" - desc = "The Gungnir is a novel, antique idea brought into the modern era by Hedberg-Hammarstrom. The semi-automatic revolving mechanism offers no real advantage, but some colonists swear by it. Uses .44 magnum revolver rounds." - description_fluff = "Sif’s largest home-grown firearms manufacturer, the Hedberg-Hammarstrom company offers a range of high-quality, high-cost hunting rifles and shotguns designed with the Sivian wilderness - and its wildlife - in mind. \ - The company operates just one production plant in Kalmar, but their weapons have found popularity on garden worlds as far afield as the Tajaran homeworld due to their excellent build quality, \ + desc = "The Gungnir is a novel, antique idea brought into the modern era by Hedberg-Hammarstrom. \ + The semi-automatic revolving mechanism offers no real advantage, but some colonists swear by it. \ + Uses .44 magnum revolver rounds." + description_fluff = "Sif’s largest home-grown firearms manufacturer, the Hedberg-Hammarstrom company offers a \ + range of high-quality, high-cost hunting rifles and shotguns designed with the Sivian wilderness - and its \ + wildlife - in mind. The company operates just one production plant in Kalmar, but their weapons have found \ + popularity on garden worlds as far afield as the Tajaran homeworld due to their excellent build quality, \ precision, and stopping power." icon_state = "revolvingrifle" item_state = "rifle" @@ -43,9 +54,13 @@ max_shells = 6 ammo_type = /obj/item/ammo_casing/a44/rifle -//Vintage Revolving Rifle +/* + * Vintage Revolver Rifle + */ /obj/item/weapon/gun/projectile/revolvingrifle/vintage name = "vintage revolving rifle" - desc = "The Willhem is the Gungir's older cousin by Hedberg-Hammarstrom, the perfect collector piece. The semi-automatic revolving mechanism offers no real advantage, but some colonists swear by it. Uses .44 magnum revolver rounds." + desc = "The Willhem is the Gungir's older cousin by Hedberg-Hammarstrom, the perfect collector piece. \ + The semi-automatic revolving mechanism offers no real advantage, but some colonists swear by it. \ + Uses .44 magnum revolver rounds." icon_state = "vintagerevolvingrifle" diff --git a/code/modules/projectiles/guns/projectile/shotgun.dm b/code/modules/projectiles/guns/projectile/shotgun.dm index 6e69b65a6a..20868b555e 100644 --- a/code/modules/projectiles/guns/projectile/shotgun.dm +++ b/code/modules/projectiles/guns/projectile/shotgun.dm @@ -1,7 +1,11 @@ +/* + * Shotgun + */ /obj/item/weapon/gun/projectile/shotgun/pump name = "shotgun" desc = "The mass-produced MarsTech Meteor 29 shotgun is a favourite of police and security forces on many worlds. Uses 12g rounds." - description_fluff = "The leading civilian-sector high-quality small arms brand of Hephaestus Industries, MarsTech has been the provider of choice for law enforcement and security forces for over 300 years." + description_fluff = "The leading civilian-sector high-quality small arms brand of Hephaestus Industries, \ + MarsTech has been the provider of choice for law enforcement and security forces for over 300 years." icon_state = "shotgun" item_state = "shotgun" max_shells = 4 @@ -32,17 +36,22 @@ /obj/item/weapon/gun/projectile/shotgun/pump/proc/pump(mob/M as mob) playsound(src, action_sound, 60, 1) - if(chambered)//We have a shell in the chamber - chambered.loc = get_turf(src)//Eject casing + // We have a shell in the chamber + if(chambered) + if(chambered.caseless) + qdel(chambered) // Delete casing + else + chambered.loc = get_turf(src) // Eject casing chambered = null + // Load next shell if(loaded.len) - var/obj/item/ammo_casing/AC = loaded[1] //load next casing. - loaded -= AC //Remove casing from loaded list. + var/obj/item/ammo_casing/AC = loaded[1] // Load next casing. + loaded -= AC // Remove casing from loaded list. chambered = AC - if(pump_animation)//This affects all bolt action and shotguns. - flick("[pump_animation]", src)//This plays any pumping + if(pump_animation) // This affects all bolt action and shotguns. + flick("[pump_animation]", src) // This plays any pumping update_icon() @@ -62,10 +71,14 @@ ammo_type = /obj/item/ammo_casing/a12g pump_animation = null +/* + * Combat Shotgun + */ /obj/item/weapon/gun/projectile/shotgun/pump/combat name = "combat shotgun" desc = "Built for close quarters combat, the Hephaestus Industries KS-40 is widely regarded as a weapon of choice for repelling boarders. Uses 12g rounds." - description_fluff = "The leading arms producer in the SCG, Hephaestus typically only uses its 'top level' branding for its military-grade equipment used by armed forces across human space." + description_fluff = "The leading arms producer in the SCG, Hephaestus typically only uses its 'top level' \ + branding for its military-grade equipment used by armed forces across human space." icon_state = "cshotgun" item_state = "cshotgun" origin_tech = list(TECH_COMBAT = 5, TECH_MATERIAL = 2) @@ -77,6 +90,9 @@ /obj/item/weapon/gun/projectile/shotgun/pump/combat/empty ammo_type = null +/* + * Double-Barreled Shotgun + */ /obj/item/weapon/gun/projectile/shotgun/doublebarrel name = "double-barreled shotgun" desc = "A truely classic weapon. No need to change what works. Uses 12g rounds." @@ -94,6 +110,9 @@ origin_tech = list(TECH_COMBAT = 3, TECH_MATERIAL = 1) ammo_type = /obj/item/ammo_casing/a12g/beanbag + var/unique_reskin + var/sawn_off = FALSE + burst_delay = 0 firemodes = list( list(mode_name="fire one barrel at a time", burst=1), @@ -111,8 +130,49 @@ /obj/item/weapon/gun/projectile/shotgun/doublebarrel/unload_ammo(user, allow_dump) ..(user, allow_dump=1) -//this is largely hacky and bad :( -Pete +/obj/item/weapon/gun/projectile/shotgun/doublebarrel/verb/rename_gun() + set name = "Name Gun" + set category = "Object" + set desc = "Rename your gun." + + var/input = sanitizeSafe(input(usr, "What do you want to name the gun?", ,""), MAX_NAME_LEN) + + var/mob/M = usr + if(src && input && !M.stat && in_range(M,src)) + name = input + to_chat(M, "You name the gun [input]. Say hello to your new friend.") + return 1 + +/obj/item/weapon/gun/projectile/shotgun/doublebarrel/verb/reskin_gun() + set name = "Resprite gun" + set category = "Object" + set desc = "Click to choose a sprite for your gun." + + var/mob/M = usr + var/list/options = list() + options["Default"] = "dshotgun" + options["Cherry Red"] = "dshotgun_d" + options["Ash"] = "dshotgun_f" + options["Faded Grey"] = "dshotgun_g" + options["Maple"] = "dshotgun_l" + options["Rosewood"] = "dshotgun_p" + options["Olive Green"] = "dshotgun_o" + options["Blued"] = "dshotgun_b" + var/choice = tgui_input_list(M,"Choose your sprite!","Resprite Gun", options) + if(sawn_off) + to_chat(M, "The [src] is already shortened and cannot be resprited!") + return + if(src && choice && !M.stat && in_range(M,src)) + icon_state = options[choice] + unique_reskin = options[choice] + to_chat(M, "Your gun is now sprited as [choice]. Say hello to your new friend.") + return 1 + +//this is largely hacky and bad :( -Pete //less hacky and bad now :) -Ghost /obj/item/weapon/gun/projectile/shotgun/doublebarrel/attackby(var/obj/item/A as obj, mob/user as mob) + if(sawn_off) + to_chat(user, "The [src] is already shortened!") + return if(istype(A, /obj/item/weapon/surgical/circular_saw) || istype(A, /obj/item/weapon/melee/energy) || istype(A, /obj/item/weapon/pickaxe/plasmacutter)) to_chat(user, "You begin to shorten the barrel of \the [src].") if(loaded.len) @@ -122,25 +182,35 @@ Fire_userless(user) burst = burstsetting return - if(do_after(user, 30)) //SHIT IS STEALTHY EYYYYY - icon_state = "sawnshotgun" + if(do_after(user, 30)) // SHIT IS STEALTHY EYYYYY + if(sawn_off) + return + if(unique_reskin) + icon_state = "[unique_reskin]_sawn" + else + icon_state = "dshotgun_sawn" item_state = "sawnshotgun" w_class = ITEMSIZE_NORMAL force = 5 - slot_flags &= ~SLOT_BACK //you can't sling it on your back - slot_flags |= (SLOT_BELT|SLOT_HOLSTER) //but you can wear it on your belt (poorly concealed under a trenchcoat, ideally) - or in a holster, why not. + slot_flags &= ~SLOT_BACK // you can't sling it on your back + slot_flags |= (SLOT_BELT|SLOT_HOLSTER) // but you can wear it on your belt (poorly concealed under a trenchcoat, ideally) - or in a holster, why not. name = "sawn-off shotgun" desc = "Omar's coming!" to_chat(user, "You shorten the barrel of \the [src]!") + sawn_off = TRUE else ..() +/* + * Sawn-Off Shotgun + */ /obj/item/weapon/gun/projectile/shotgun/doublebarrel/sawn name = "sawn-off shotgun" desc = "Omar's coming!" // I'm not gonna add "Uses 12g rounds." to this one. I'll just let this reference go undisturbed. - icon_state = "sawnshotgun" + icon_state = "dshotgun_sawn" item_state = "sawnshotgun" slot_flags = SLOT_BELT|SLOT_HOLSTER ammo_type = /obj/item/ammo_casing/a12g/pellet w_class = ITEMSIZE_NORMAL force = 5 + sawn_off = TRUE diff --git a/code/modules/projectiles/guns/projectile/shotgun_vr.dm b/code/modules/projectiles/guns/projectile/shotgun_vr.dm index 09e90d4ffe..3d6486c60d 100644 --- a/code/modules/projectiles/guns/projectile/shotgun_vr.dm +++ b/code/modules/projectiles/guns/projectile/shotgun_vr.dm @@ -9,3 +9,100 @@ item_icons = null ammo_type = /obj/item/ammo_casing/a12g max_shells = 12 + +//Warden's shotgun gets it's own entry now, rather than being handled by the maps +/obj/item/weapon/gun/projectile/shotgun/pump/combat/warden + name = "warden's shotgun" + desc = "Built for close quarters combat, the Hephaestus Industries KS-40 is widely regarded as a weapon of choice for repelling boarders. This one has 'Property of the Warden' inscribed on the stock." + description_fluff = "The leading arms producer in the SCG, Hephaestus typically only uses its 'top level' branding for its military-grade equipment used by armed forces across human space." + ammo_type = /obj/item/ammo_casing/a12g/beanbag + +//Compact shotgun, this version's for usage later by mappers/coders/w.e. +/obj/item/weapon/gun/projectile/shotgun/compact + name = "compact shotgun" + desc = "Built for extremely-close quarters combat, the Hephaestus Industries KS-55 \"semi-auto shorty\" is a relatively rare sight to see, usually in the hands of elite troops that specialize in boarding. Uses 12g rounds." + description_fluff = "The leading arms producer in the SCG, Hephaestus typically only uses its 'top level' branding for its military-grade equipment used by armed forces across human space." + icon = 'icons/obj/gun_vr.dmi' + icon_state = "compshotc" + item_state = "cshotgun" + max_shells = 4 //short magazine tube means small capacity + w_class = ITEMSIZE_NORMAL //Starts folded, becomes large when stock is extended + force = 10 + slot_flags = SLOT_BELT|SLOT_BACK + caliber = "12g" + origin_tech = list(TECH_COMBAT = 5, TECH_MATERIAL = 2) + load_method = SINGLE_CASING|SPEEDLOADER + handle_casings = EJECT_CASINGS //However, it's semi-automatic to make up for that + ammo_type = /obj/item/ammo_casing/a12g + projectile_type = /obj/item/projectile/bullet/shotgun + one_handed_penalty = 30 //You madman, one-handing a 12g shotgun. + recoil = 5 //Unfold the damn stock you fool! + action_button_name = "Toggle stock" + var/stock = FALSE + + +/obj/item/weapon/gun/projectile/shotgun/compact/proc/toggle_stock() + var/mob/living/user = loc + stock = !stock + if(stock) + user.visible_message("With a fluid movement, [user] unfolds their shotgun's stock and foregrip.",\ + "You unfold the shotgun's stock and foregrip.",\ + "You hear an ominous click.") + icon_state = "compshot" + item_state = icon_state + w_class = ITEMSIZE_LARGE + one_handed_penalty = 15 //Stock extended to steady it, even with just the one hand. + recoil = 1 //As above, stock and foregrip would help with the kick + else + user.visible_message("\The [user] collapses their shotgun's stock and fold it's foregrip.",\ + "You fold the shotgun's stock and foregrip.",\ + "You hear a click.") + icon_state = "compshotc" + item_state = icon_state + w_class = ITEMSIZE_NORMAL + one_handed_penalty = 30 + recoil = 5 + + if(istype(user,/mob/living/carbon/human)) + var/mob/living/carbon/human/H = user + H.update_inv_l_hand() + H.update_inv_r_hand() + + playsound(src, 'sound/weapons/targeton.ogg', 50, 1) + user.update_action_buttons() + +/obj/item/weapon/gun/projectile/shotgun/compact/verb/verb_toggle_stock(mob/user as mob) + set category = "Object" + set name = "Toggle stock" + set src in usr + + if(issilicon(usr)) + return + + if (isliving(usr)) + toggle_stock() + else + to_chat(usr, "You cannot do this in your current state.") + + +/obj/item/weapon/gun/projectile/shotgun/compact/attack_self(mob/user as mob) + if(issilicon(usr)) + return + + if (isliving(usr)) + toggle_stock() + else + to_chat(usr, "You cannot do this in your current state.") + +/obj/item/weapon/gun/projectile/shotgun/compact/ui_action_click() + var/mob/living/user = loc + if(!isliving(user)) + return + else + toggle_stock() + +/obj/item/weapon/gun/projectile/shotgun/compact/warden + name = "warden's compact shotgun" + desc = "Built for extremely-close quarters combat, the Hephaestus Industries KS-55 \"semi-auto shorty\" is a relatively rare sight to see, usually in the hands of elite troops that specialize in boarding. This one has 'Property of the Warden' inscribed on the upper receiver." + description_fluff = "The leading arms producer in the SCG, Hephaestus typically only uses its 'top level' branding for its military-grade equipment used by armed forces across human space." + ammo_type = /obj/item/ammo_casing/a12g/beanbag diff --git a/code/modules/projectiles/projectile/bullets.dm b/code/modules/projectiles/projectile/bullets.dm index 5941b7f4c6..76f2e1ad7c 100644 --- a/code/modules/projectiles/projectile/bullets.dm +++ b/code/modules/projectiles/projectile/bullets.dm @@ -385,8 +385,30 @@ if(istype(T)) new /obj/item/ammo_casing/afoam_dart(get_turf(loc)) -/obj/item/projectile/bullet/foam_dart/riot +/obj/item/projectile/bullet/foam_dart_riot name = "riot foam dart" desc = "Whose smart idea was it to use toys as crowd control? Ages 18 and up." - agony = 50 - icon_state = "foamdart_riot_proj" \ No newline at end of file + damage = 0 // It's a damn toy. + embed_chance = 0 + agony = 50 // The riot part of the riot dart + nodamage = TRUE + sharp = FALSE + damage_type = HALLOSS + impact_effect_type = null + fire_sound = 'sound/items/syringeproj.ogg' + combustion = FALSE + icon = 'icons/obj/gun_toy.dmi' + icon_state = "foamdart_riot_proj" + range = 15 + +/obj/item/projectile/bullet/foam_dart_riot/on_impact(var/atom/A) + . = ..() + var/turf/T = get_turf(loc) + if(istype(T)) + new /obj/item/ammo_casing/afoam_dart/riot(get_turf(loc)) + +/obj/item/projectile/bullet/foam_dart_riot/on_range(var/atom/A) + . = ..() + var/turf/T = get_turf(loc) + if(istype(T)) + new /obj/item/ammo_casing/afoam_dart/riot(get_turf(loc)) \ No newline at end of file diff --git a/code/modules/reagents/reactions/instant/food.dm b/code/modules/reagents/reactions/instant/food.dm index 393c033494..188e285623 100644 --- a/code/modules/reagents/reactions/instant/food.dm +++ b/code/modules/reagents/reactions/instant/food.dm @@ -67,6 +67,7 @@ id = "cookingoilpeanut" result = "cookingoil" required_reagents = list("peanutoil" = 10) + inhibitors = list("sugar" = 1, "sodiumchloride" = 1) catalysts = list("enzyme" = 5) result_amount = 10 diff --git a/code/modules/reagents/reagents/_reagents.dm b/code/modules/reagents/reagents/_reagents.dm index 2ad46f225b..fafd022559 100644 --- a/code/modules/reagents/reagents/_reagents.dm +++ b/code/modules/reagents/reagents/_reagents.dm @@ -25,7 +25,7 @@ var/affects_dead = 0 // Does this chem process inside a corpse? var/affects_robots = 0 // Does this chem process inside a Synth? - + var/allergen_type // What potential allergens does this contain? var/allergen_factor = 1 // If the potential allergens are mixed and low-volume, they're a bit less dangerous. Needed for drinks because they're a single reagent compared to food which contains multiple seperate reagents. @@ -117,23 +117,28 @@ else var/obj/item/organ/internal/heart/machine/Pump = H.internal_organs_by_name[O_PUMP] var/obj/item/organ/internal/stomach/machine/Cycler = H.internal_organs_by_name[O_CYCLER] + var/obj/item/organ/internal/nano/refactory/Refactory = H.internal_organs_by_name[O_FACT] //VOREStation Addition: Proteans if(active_metab.metabolism_class == CHEM_BLOOD) if(Pump) removed *= 1.1 - Pump.damage / Pump.max_damage + else if(Refactory) //VOREStation Addition: Proteans + removed *= 1.1 - Refactory.damage / Refactory.max_damage else removed *= 0.1 else if(active_metab.metabolism_class == CHEM_INGEST) // If the pump is damaged, we waste chems from the tank. if(Pump) ingest_abs_mult *= max(0.25, 1 - Pump.damage / Pump.max_damage) - + else if(Refactory) //VOREStation Addition: Proteans + ingest_abs_mult *= max(0.25, 1 - Refactory.damage / Refactory.max_damage) else ingest_abs_mult *= 0.2 if(Cycler) // If we're damaged, we empty our tank slower. ingest_rem_mult = max(0.1, 1 - (Cycler.damage / Cycler.max_damage)) - + else if(Refactory) //VOREStation Addition: Proteans + ingest_rem_mult = max(0.1, 1 - (Refactory.damage / Refactory.max_damage)) else ingest_rem_mult = 0.1 @@ -165,9 +170,9 @@ affect_touch(M, alien, removed) if(overdose && (volume > overdose * M?.species.chemOD_threshold) && (active_metab.metabolism_class != CHEM_TOUCH && !can_overdose_touch)) overdose(M, alien, removed) - if(M.species.allergens & allergen_type) //uhoh, we can't handle this! + if(M.species.allergens & allergen_type) //uhoh, we can't handle this! var/damage_severity = M.species.allergen_damage_severity*allergen_factor - var/disable_severity = M.species.allergen_disable_severity*allergen_factor + var/disable_severity = M.species.allergen_disable_severity*allergen_factor if(M.species.allergen_reaction & AG_TOX_DMG) M.adjustToxLoss(damage_severity) if(M.species.allergen_reaction & AG_OXY_DMG) diff --git a/code/modules/reagents/reagents/food_drinks.dm b/code/modules/reagents/reagents/food_drinks.dm index b72aafbacd..fc6d2c3269 100644 --- a/code/modules/reagents/reagents/food_drinks.dm +++ b/code/modules/reagents/reagents/food_drinks.dm @@ -43,7 +43,7 @@ return affect_ingest(M, alien, removed) //VOREStation Edits Start - if(M.isSynthetic() && M.nutrition < 500) + if(M.isSynthetic()) M.adjust_nutrition((nutriment_factor * removed) * M.species.synthetic_food_coeff) //VOREStation Edits End ..() @@ -60,6 +60,9 @@ M.heal_organ_damage(0.5 * removed, 0) M.adjust_nutrition((nutriment_factor * removed) * M.species.organic_food_coeff) M.add_chemical_effect(CE_BLOODRESTORE, 4 * removed) + else + M.adjust_nutrition((nutriment_factor * removed) * M.species.synthetic_food_coeff) + //VOREStation Edits Stop // Aurora Cooking Port Insertion Begin @@ -71,6 +74,8 @@ Generally coatings are intended for deep frying foods */ /datum/reagent/nutriment/coating + name = "coating" + id = "coating" nutriment_factor = 6 //Less dense than the food itself, but coatings still add extra calories var/messaged = 0 var/icon_raw diff --git a/code/modules/research/designs/mining_toys.dm b/code/modules/research/designs/mining_toys.dm index 5667ac59be..c1784dec6f 100644 --- a/code/modules/research/designs/mining_toys.dm +++ b/code/modules/research/designs/mining_toys.dm @@ -48,3 +48,12 @@ materials = list(MAT_STEEL = 1000,MAT_GLASS = 1000) build_path = /obj/item/device/depth_scanner sort_string = "FBAAA" + +/datum/design/item/weapon/mining/upgradeAOE + name = "Mining Explosion Upgrade" + desc = "An area of effect upgrade for the Proto-Kinetic Accelerator." + id = "pka_mineaoe" + req_tech = list(TECH_COMBAT = 7, TECH_MATERIAL = 8, TECH_ENGINEERING = 7) // Lets make this endgame level tech, due to it's power. + materials = list(MAT_STEEL = 5000, MAT_GLASS = 5000, MAT_SILVER = 500, MAT_GOLD = 500, MAT_URANIUM = 2000, MAT_PHORON = 2000) + build_path = /obj/item/borg/upgrade/modkit/aoe/turfs + sort_string = "FAAF" \ No newline at end of file diff --git a/code/modules/research/designs/misc.dm b/code/modules/research/designs/misc.dm index 169959bd11..3e81be232e 100644 --- a/code/modules/research/designs/misc.dm +++ b/code/modules/research/designs/misc.dm @@ -72,3 +72,12 @@ materials = list(MAT_STEEL = 4000, MAT_GLASS = 2000, MAT_SILVER = 2000) build_path = /obj/item/device/spaceflare sort_string = "TBAAC" + +/datum/design/item/general/riflescope + name = "rifle scope" + desc = "A scope that can be mounted to certain rifles." + id = "riflescope" + req_tech = list(TECH_ILLEGAL = 2, TECH_MATERIAL = 2) + materials = list(MAT_STEEL = 4000, MAT_GLASS = 4000) + build_path = /obj/item/device/binoculars/scope + sort_string = "TBAAD" \ No newline at end of file diff --git a/code/modules/research/prosfab_designs_vr.dm b/code/modules/research/prosfab_designs_vr.dm index 67a4abe412..bb15c848f8 100644 --- a/code/modules/research/prosfab_designs_vr.dm +++ b/code/modules/research/prosfab_designs_vr.dm @@ -12,4 +12,33 @@ id = "borg_hound_capacity_module" req_tech = list(TECH_MATERIAL = 3, TECH_ENGINEERING = 2) materials = list(MAT_STEEL = 4000, MAT_GLASS = 4000) - build_path = /obj/item/borg/upgrade/bellysizeupgrade \ No newline at end of file + build_path = /obj/item/borg/upgrade/bellysizeupgrade + + +/* + Some job related borg upgrade modules, adding useful items for puppers. + +*/ +/datum/design/item/prosfab/robot_upgrade/advrped + name = "Advanced Rapid Part Exchange Device" + desc = "Exactly the same as a standard Advanced RPED, but this one has mounting hardware for a Science Borg." + id = "borg_advrped_module" + req_tech = list(TECH_ENGINEERING = 6, TECH_MATERIAL = 6) + materials = list(MAT_STEEL = 30000, MAT_GLASS = 10000) + build_path = /obj/item/borg/upgrade/advrped + +/datum/design/item/prosfab/robot_upgrade/diamonddrill + name = "Diamond Drill" + desc = "A mining drill with a diamond tip, made for use by Mining Borgs." + id = "borg_ddrill_module" + req_tech = list(TECH_MATERIAL = 6, TECH_POWER = 5, TECH_ENGINEERING = 5) + materials = list(MAT_STEEL = 3000, MAT_GLASS = 1000, MAT_DIAMOND = 2000) + build_path = /obj/item/borg/upgrade/diamonddrill + +/datum/design/item/prosfab/robot_upgrade/pka + name = "Proto-Kinetic Accelerator" + desc = "A mining weapon designed for clearing rocks and hostile wildlife. This model is equiped with a self upgrade system, allowing it to attach modules hands free." + id = "borg_pka_module" + req_tech = list(TECH_COMBAT = 6, TECH_MATERIAL = 5, TECH_POWER = 4) + materials = list(MAT_PLASTEEL = 5000, MAT_GLASS = 1000, MAT_URANIUM = 500, MAT_PLATINUM = 350) + build_path = /obj/item/borg/upgrade/pka \ No newline at end of file diff --git a/code/modules/shuttles/shuttle_console.dm b/code/modules/shuttles/shuttle_console.dm index 53f8c1b734..b57b067bc3 100644 --- a/code/modules/shuttles/shuttle_console.dm +++ b/code/modules/shuttles/shuttle_console.dm @@ -10,10 +10,17 @@ var/skip_act = FALSE var/tgui_subtemplate = "ShuttleControlConsoleDefault" + var/ai_control = FALSE //VOREStation Edit - AI/Borgs shouldn't really be flying off in ships without crew help /obj/machinery/computer/shuttle_control/attack_hand(user as mob) if(..(user)) return + //VOREStation Addition Start + if(!ai_control && issilicon(user)) + to_chat(user, "Access Denied.") + return TRUE + //VOREStation Addition End + //src.add_fingerprint(user) //shouldn't need fingerprints just for looking at it. if(!allowed(user)) to_chat(user, "Access Denied.") @@ -161,7 +168,11 @@ GLOBAL_LIST_BOILERPLATE(papers_dockingcode, /obj/item/weapon/paper/dockingcodes) /obj/item/weapon/paper/dockingcodes/proc/populate_info() var/dockingcodes = null - var/z_to_check = codes_from_z ? codes_from_z : z + var/turf/T = get_turf(src) + var/our_z + if(T) + our_z = T.z + var/z_to_check = codes_from_z ? codes_from_z : our_z if(using_map.use_overmap) var/obj/effect/overmap/visitable/location = get_overmap_sector(z_to_check) if(location && location.docking_codes) diff --git a/code/modules/shuttles/shuttles_vr.dm b/code/modules/shuttles/shuttles_vr.dm index 7582e37ae7..58143b9950 100644 --- a/code/modules/shuttles/shuttles_vr.dm +++ b/code/modules/shuttles/shuttles_vr.dm @@ -34,6 +34,7 @@ name = "belter control console" req_one_access = list(access_mining, access_medical_equip) //Allows xenoarch, miners AND doctors to use it. shuttle_tag = "Belter" //The scanning console needs to enable/disable this at will. + ai_control = TRUE /obj/machinery/computer/shuttle_control/mining name = "mining elevator control console" diff --git a/code/modules/tools/tool_quality.dm b/code/modules/tools/tool_quality.dm new file mode 100644 index 0000000000..84bd7506bc --- /dev/null +++ b/code/modules/tools/tool_quality.dm @@ -0,0 +1,40 @@ +/obj/item + var/list/tool_qualities = list() + +/obj/item/examine(mob/user) + . = ..() + for(var/qual in tool_qualities) + var/msg + switch(tool_qualities[qual]) + if(TOOL_QUALITY_WORST) + msg += "very poor " + if(TOOL_QUALITY_POOR) + msg += "poor " + if(TOOL_QUALITY_MEDIOCRE) + msg += "mediocre " + if(TOOL_QUALITY_STANDARD) + msg += "" + if(TOOL_QUALITY_DECENT) + msg += "decent " + if(TOOL_QUALITY_GOOD) + msg += "pretty good " + if(TOOL_QUALITY_BEST) + msg += "very good " + . += "It looks like it can be used as a [msg][qual]." + +/atom/proc/get_tool_quality(tool_quality) + return TOOL_QUALITY_NONE + +/// Used to check for a specific tool quality on an item. +/// Returns the value of `tool_quality` if it is found, else 0. +/obj/item/get_tool_quality(quality) + return LAZYACCESS(tool_qualities, quality) + +/obj/item/proc/set_tool_quality(tool, quality) + tool_qualities[tool] = quality + +/obj/item/proc/get_tool_speed(quality) + return LAZYACCESS(tool_qualities, quality) + +/obj/item/proc/get_use_time(quality, base_time) + return LAZYACCESS(tool_qualities, quality) ? base_time / tool_qualities[quality] : -1 \ No newline at end of file diff --git a/code/modules/vore/eating/belly_obj_vr.dm b/code/modules/vore/eating/belly_obj_vr.dm index 10d1dd44f3..85d4fca868 100644 --- a/code/modules/vore/eating/belly_obj_vr.dm +++ b/code/modules/vore/eating/belly_obj_vr.dm @@ -59,7 +59,7 @@ //Actual full digest modes var/tmp/static/list/digest_modes = list(DM_HOLD,DM_DIGEST,DM_ABSORB,DM_DRAIN,DM_UNABSORB,DM_HEAL,DM_SHRINK,DM_GROW,DM_SIZE_STEAL,DM_EGG) //Digest mode addon flags - var/tmp/static/list/mode_flag_list = list("Numbing" = DM_FLAG_NUMBING, "Stripping" = DM_FLAG_STRIPPING, "Leave Remains" = DM_FLAG_LEAVEREMAINS, "Muffles" = DM_FLAG_THICKBELLY, "Affect Worn Items" = DM_FLAG_AFFECTWORN, "Jams Sensors" = DM_FLAG_JAMSENSORS) + var/tmp/static/list/mode_flag_list = list("Numbing" = DM_FLAG_NUMBING, "Stripping" = DM_FLAG_STRIPPING, "Leave Remains" = DM_FLAG_LEAVEREMAINS, "Muffles" = DM_FLAG_THICKBELLY, "Affect Worn Items" = DM_FLAG_AFFECTWORN, "Jams Sensors" = DM_FLAG_JAMSENSORS, "Complete Absorb" = DM_FLAG_FORCEPSAY) //Item related modes var/tmp/static/list/item_digest_modes = list(IM_HOLD,IM_DIGEST_FOOD,IM_DIGEST) @@ -130,7 +130,7 @@ "You feel %prey becoming part of you.") var/list/absorb_messages_prey = list( - "Your feel yourself becoming part of %pred's %belly!") + "You feel yourself becoming part of %pred's %belly!") var/list/unabsorb_messages_owner = list( "You feel %prey reform into a recognizable state again.") @@ -359,9 +359,12 @@ p.undo_prey_takeover(FALSE) return 0 for(var/mob/living/L in M.contents) - L.muffled = 0 + L.muffled = FALSE + L.forced_psay = FALSE + for(var/obj/item/weapon/holder/H in M.contents) - H.held_mob.muffled = 0 + H.held_mob.muffled = FALSE + H.held_mob.forced_psay = FALSE //Place them into our drop_location M.forceMove(drop_location()) @@ -375,7 +378,9 @@ if(ML.client) ML.stop_sound_channel(CHANNEL_PREYLOOP) //Stop the internal loop, it'll restart if the isbelly check on next tick anyway if(ML.muffled) - ML.muffled = 0 + ML.muffled = FALSE + if(ML.forced_psay) + ML.forced_psay = FALSE if(ML.absorbed) ML.absorbed = FALSE handle_absorb_langs(ML, owner) @@ -422,6 +427,9 @@ for(var/mob/living/M in contents) M.updateVRPanel() + if(prey.ckey) + GLOB.prey_eaten_roundstat++ + // Get the line that should show up in Examine message if the owner of this belly // is examined. By making this a proc, we not only take advantage of polymorphism, // but can easily make the message vary based on how many people are inside, etc. @@ -682,10 +690,10 @@ M.absorbed = TRUE if(M.ckey) - owner.temp_language_sources += M - M.temp_language_sources += owner handle_absorb_langs(M, owner) + GLOB.prey_absorbed_roundstat++ + to_chat(M, "[absorb_alert_prey]") to_chat(owner, "[absorb_alert_owner]") if(M.noisy) //Mute drained absorbee hunger if enabled. @@ -764,34 +772,8 @@ owner.update_icon() ///////////////////////////////////////////////////////////////////////// -/obj/belly/proc/handle_absorb_langs(var/mob/living/prey, var/mob/living/pred) - for(var/mob/living/p in pred.temp_language_sources) //Let's look at the pred's sources - if (!p.absorbed) - for(var/L in pred.temp_languages) - if(L in p.languages) - pred.languages -= L - pred.temp_languages -= L - pred.temp_language_sources -= p - else - for(var/L in p.languages) - if(L in pred.languages) - continue - pred.languages += L - pred.temp_languages += L - - for(var/mob/living/P in prey.temp_language_sources) //Let's look at the prey's sources - if (!prey.absorbed) - for(var/L in prey.temp_languages) - if(L in P.languages) - prey.languages -= L - prey.temp_languages -= L - prey.temp_language_sources -= P - else - for(var/L in P.languages) - if(L in prey.languages) - continue - prey.languages += L - prey.temp_languages += L +/obj/belly/proc/handle_absorb_langs() + owner.absorb_langs() //////////////////////////////////////////////////////////////////////// diff --git a/code/modules/vore/eating/bellymodes_vr.dm b/code/modules/vore/eating/bellymodes_vr.dm index e4e358d3c4..5a92072756 100644 --- a/code/modules/vore/eating/bellymodes_vr.dm +++ b/code/modules/vore/eating/bellymodes_vr.dm @@ -167,7 +167,7 @@ var/mob/living/L = A touchable_mobs += L - if(L.absorbed) + if(L.absorbed && !issilicon(L)) L.Weaken(5) // Fullscreen overlays @@ -186,6 +186,10 @@ if((mode_flags & DM_FLAG_THICKBELLY) && !H.muffled) H.muffled = TRUE + //Force psay + if((mode_flags & DM_FLAG_FORCEPSAY) && !H.forced_psay && H.absorbed) + H.forced_psay = TRUE + //Worn items flag if(mode_flags & DM_FLAG_AFFECTWORN) for(var/slot in slots) @@ -274,6 +278,9 @@ to_chat(owner, "[digest_alert_owner]") to_chat(M, "[digest_alert_prey]") + if(M.ckey) + GLOB.prey_digested_roundstat++ + if((mode_flags & DM_FLAG_LEAVEREMAINS) && M.digest_leave_remains) handle_remains_leaving(M) digestion_death(M) diff --git a/code/modules/vore/eating/digest_act_vr.dm b/code/modules/vore/eating/digest_act_vr.dm index 741d7e0941..3e76a34101 100644 --- a/code/modules/vore/eating/digest_act_vr.dm +++ b/code/modules/vore/eating/digest_act_vr.dm @@ -19,6 +19,7 @@ qdel(O) else if(item_storage) O.forceMove(item_storage) + GLOB.items_digested_roundstat++ qdel(src) return w_class @@ -57,6 +58,7 @@ S.use(1) digest_stage = w_class else + GLOB.items_digested_roundstat++ qdel(src) if(g_damage > w_class) return w_class diff --git a/code/modules/vore/eating/living_vr.dm b/code/modules/vore/eating/living_vr.dm index 7a9cab7a2b..4038ed6c54 100644 --- a/code/modules/vore/eating/living_vr.dm +++ b/code/modules/vore/eating/living_vr.dm @@ -14,6 +14,7 @@ var/absorbed = FALSE // If a mob is absorbed into another var/list/temp_language_sources = list() //VOREStation Addition - Absorbs add languages to the pred var/list/temp_languages = list() //VOREStation Addition - Absorbs add languages to the pred + var/prey_controlled = FALSE //VOREStation Addition var/weight = 137 // Weight for mobs for weightgain system var/weight_gain = 1 // How fast you gain weight var/weight_loss = 0.5 // How fast you lose weight @@ -415,8 +416,8 @@ if(confirm != "Okay" || loc != B) return //Actual escaping - absorbed = 0 //Make sure we're not absorbed - muffled = 0 //Removes Muffling + absorbed = FALSE //Make sure we're not absorbed + muffled = FALSE //Removes Muffling forceMove(get_turf(src)) //Just move me up to the turf, let's not cascade through bellies, there's been a problem, let's just leave. for(var/mob/living/simple_mob/SA in range(10)) SA.prey_excludes[src] = world.time @@ -895,12 +896,15 @@ /mob/living/examine(mob/user, infix, suffix) . = ..() - if(showvoreprefs) - . += "\[Mechanical Vore Preferences\]" + if(ooc_notes) + . += "OOC Notes: \[View\]" + . += "\[Mechanical Vore Preferences\]" /mob/living/Topic(href, href_list) //Can't find any instances of Topic() being overridden by /mob/living in polaris' base code, even though /mob/living/carbon/human's Topic() has a ..() call if(href_list["vore_prefs"]) display_voreprefs(usr) + if(href_list["ooc_notes"]) + src.Examine_OOC() return ..() /mob/living/proc/display_voreprefs(mob/user) //Called by Topic() calls on instances of /mob/living (and subtypes) containing vore_prefs as an argument diff --git a/code/modules/vore/fluffstuff/custom_items_vr.dm b/code/modules/vore/fluffstuff/custom_items_vr.dm index f21eed951f..d9d24d5bb2 100644 --- a/code/modules/vore/fluffstuff/custom_items_vr.dm +++ b/code/modules/vore/fluffstuff/custom_items_vr.dm @@ -1459,4 +1459,12 @@ icon_state = "kimeowshi" attack_verb = list("blorbled", "slimed", "absorbed", "glomped") gender = PLURAL // this seems like a good idea but probably prone to changing. todo: ask dan - // the only reason this thought is relevant because the base slimeplush has its gender set to female \ No newline at end of file + // the only reason this thought is relevant because the base slimeplush has its gender set to female + +//YeCrowbarMan - Lemon Yellow +/obj/item/toy/plushie/fluff/lemonplush + name = "yellow slime plushie" + desc = "A well-worn slime custom-made yellow plushie, extensively hugged and loved. It reeks of lemon." + icon = 'icons/vore/custom_items_vr.dmi' + icon_state = "lemonplush" + attack_verb = list("blorbled", "slimed", "absorbed", "glomped") \ No newline at end of file diff --git a/code/modules/xenobio/items/weapons.dm b/code/modules/xenobio/items/weapons.dm index b44c73a032..1a25eab2ef 100644 --- a/code/modules/xenobio/items/weapons.dm +++ b/code/modules/xenobio/items/weapons.dm @@ -33,7 +33,6 @@ update_icon() return ..() - // Research borg's version /obj/item/weapon/melee/baton/slime/robot hitcost = 200 @@ -44,20 +43,22 @@ name = "xeno taser gun" desc = "Straight out of NT's testing laboratories, this small gun is used to subdue non-humanoid xeno life forms. \ While marketed towards handling slimes, it may be useful for other creatures." - icon_state = "taserold" + icon_state = "taserblue" fire_sound = 'sound/weapons/taser2.ogg' charge_cost = 120 // Twice as many shots. projectile_type = /obj/item/projectile/beam/stun/xeno accuracy = 30 // Make it a bit easier to hit the slimes. - description_info = "This gun will stun a slime or other lesser slimy lifeform for about two seconds, if hit with the projectile it fires." - description_fluff = "An easy to use weapon designed by NanoTrasen, for NanoTrasen. This weapon is designed to subdue lesser \ - slime-based xeno lifeforms at a distance. It is ineffective at stunning non-slimy lifeforms such as humanoids." + description_info = "This gun will stun a slime or other lesser slimy lifeform for about two seconds if hit with the projectile it fires." + description_fluff = "An easy to use weapon designed by NanoTrasen, for NanoTrasen. This weapon is based on the NT Mk30 NL, \ + it's core components swaped out for a new design made to subdue lesser slime-based xeno lifeforms at a distance. It is \ + ineffective at stunning non-slimy lifeforms such as humanoids." /obj/item/weapon/gun/energy/taser/xeno/robot // Borg version self_recharge = 1 use_external_power = 1 recharge_time = 3 - +/* +VORESTATION REMOVAL /obj/item/weapon/gun/energy/taser/xeno/sec //NT's corner-cutting option for their on-station security. desc = "An NT Mk30 NL retrofitted to fire beams for subduing non-humanoid slimy xeno life forms." icon_state = "taserblue" @@ -71,6 +72,7 @@ self_recharge = 1 use_external_power = 1 recharge_time = 3 +*/ /obj/item/projectile/beam/stun/xeno icon_state = "omni" diff --git a/config/alienwhitelist.txt b/config/alienwhitelist.txt index 5cf56a592e..3ce01d767f 100644 --- a/config/alienwhitelist.txt +++ b/config/alienwhitelist.txt @@ -30,6 +30,7 @@ digi5 - Protean digitalsquirrel95 - Black-Eyed Shadekin digitalsquirrel95 - Protean draycu - Vox +essbie - Black-Eyed Shadekin falloutdog3 - Black-Eyed Shadekin flaktual - Vox flurriee - Protean @@ -50,6 +51,7 @@ jademanique - Xenochimera joltze - Black-Eyed Shadekin khanivore - Protean killjaden - Protean +konner1055 - Black-Eyed Shadekin ktccd - Diona lillianfyre - Xenochimera lizehrd - Xenochimera @@ -91,12 +93,14 @@ ryumi - Protean ryumi - Xenochimera satinisle - Black-Eyed Shadekin scoutisafolflol - Xenochimera +seagha - Vox seiga - Vox sepulchre - Vox silvertalismen - Diona silvertalismen - Vox silvertalismen - Xenochimera skylarks - Black-Eyed Shadekin +smdytb1 - Black-Eyed Shadekin spirit1299 - Black-Eyed Shadekin stackerrobot - Protean storesund97 - Protean @@ -129,6 +133,7 @@ xioen - Xenochimera xonkon - Protean yecrowbarman - Protean yeehawguvnah - Protean +yeehawguvnah - Xenochimera zalvine - Shadekin Empathy zammyman215 - Vox zeracyfr - Xenochimera diff --git a/config/jobwhitelist.txt b/config/jobwhitelist.txt index b547a78176..21d4423845 100644 --- a/config/jobwhitelist.txt +++ b/config/jobwhitelist.txt @@ -4,6 +4,7 @@ akram - clown amshaegaar - mime auraribbon - clown awkwarddryad - mime +CGR - mime chargae - mime h0lysquirr3l - clown joey4298 - mime diff --git a/icons/inventory/accessory/item.dmi b/icons/inventory/accessory/item.dmi index 766a661e79..0b8ac4bba7 100644 Binary files a/icons/inventory/accessory/item.dmi and b/icons/inventory/accessory/item.dmi differ diff --git a/icons/inventory/accessory/mob.dmi b/icons/inventory/accessory/mob.dmi index b6e325e2d8..32505314e2 100644 Binary files a/icons/inventory/accessory/mob.dmi and b/icons/inventory/accessory/mob.dmi differ diff --git a/icons/inventory/feet/item.dmi b/icons/inventory/feet/item.dmi index 5da36d908a..76c19f09d5 100644 Binary files a/icons/inventory/feet/item.dmi and b/icons/inventory/feet/item.dmi differ diff --git a/icons/inventory/feet/mob.dmi b/icons/inventory/feet/mob.dmi index f89178cc90..9d6d538143 100644 Binary files a/icons/inventory/feet/mob.dmi and b/icons/inventory/feet/mob.dmi differ diff --git a/icons/inventory/head/item_vr_fishing.dmi b/icons/inventory/head/item_vr_fishing.dmi index 4f1a875c26..6092c09b25 100644 Binary files a/icons/inventory/head/item_vr_fishing.dmi and b/icons/inventory/head/item_vr_fishing.dmi differ diff --git a/icons/inventory/head/mob_vr_fishing.dmi b/icons/inventory/head/mob_vr_fishing.dmi index d057a6fee0..61401b21ee 100644 Binary files a/icons/inventory/head/mob_vr_fishing.dmi and b/icons/inventory/head/mob_vr_fishing.dmi differ diff --git a/icons/inventory/suit/item.dmi b/icons/inventory/suit/item.dmi index e5d75cd19e..bf7a74c87f 100644 Binary files a/icons/inventory/suit/item.dmi and b/icons/inventory/suit/item.dmi differ diff --git a/icons/inventory/suit/item_vr.dmi b/icons/inventory/suit/item_vr.dmi index 0261f8b6a3..806c8a021a 100644 Binary files a/icons/inventory/suit/item_vr.dmi and b/icons/inventory/suit/item_vr.dmi differ diff --git a/icons/inventory/suit/mob.dmi b/icons/inventory/suit/mob.dmi index 0eb7b2b6e1..4854a21c1a 100644 Binary files a/icons/inventory/suit/mob.dmi and b/icons/inventory/suit/mob.dmi differ diff --git a/icons/inventory/suit/mob_vr.dmi b/icons/inventory/suit/mob_vr.dmi index d5e2082d0e..c97f407958 100644 Binary files a/icons/inventory/suit/mob_vr.dmi and b/icons/inventory/suit/mob_vr.dmi differ diff --git a/icons/inventory/uniform/item.dmi b/icons/inventory/uniform/item.dmi index 8188b08848..10724fdd1c 100644 Binary files a/icons/inventory/uniform/item.dmi and b/icons/inventory/uniform/item.dmi differ diff --git a/icons/inventory/uniform/item_vr.dmi b/icons/inventory/uniform/item_vr.dmi index 6b7566f888..4e92cd6710 100644 Binary files a/icons/inventory/uniform/item_vr.dmi and b/icons/inventory/uniform/item_vr.dmi differ diff --git a/icons/inventory/uniform/mob.dmi b/icons/inventory/uniform/mob.dmi index 4e0bb00389..69a5dd12df 100644 Binary files a/icons/inventory/uniform/mob.dmi and b/icons/inventory/uniform/mob.dmi differ diff --git a/icons/inventory/uniform/mob_vr.dmi b/icons/inventory/uniform/mob_vr.dmi index 2230061fce..e4295298d3 100644 Binary files a/icons/inventory/uniform/mob_vr.dmi and b/icons/inventory/uniform/mob_vr.dmi differ diff --git a/icons/inventory/uniform/mob_vr_rolled_down.dmi b/icons/inventory/uniform/mob_vr_rolled_down.dmi index 8c82d1f7c2..3016c210a3 100644 Binary files a/icons/inventory/uniform/mob_vr_rolled_down.dmi and b/icons/inventory/uniform/mob_vr_rolled_down.dmi differ diff --git a/icons/mob/human_races/markings.dmi b/icons/mob/human_races/markings.dmi index de0dcafb7c..4aa72bc137 100644 Binary files a/icons/mob/human_races/markings.dmi and b/icons/mob/human_races/markings.dmi differ diff --git a/icons/mob/human_races/subspecies/r_vatgrown.dmi b/icons/mob/human_races/subspecies/r_vatgrown.dmi index b2dcbd78ac..c1562d2b67 100644 Binary files a/icons/mob/human_races/subspecies/r_vatgrown.dmi and b/icons/mob/human_races/subspecies/r_vatgrown.dmi differ diff --git a/icons/mob/items/lefthand_guns.dmi b/icons/mob/items/lefthand_guns.dmi index a7360f8a34..7856c5be04 100644 Binary files a/icons/mob/items/lefthand_guns.dmi and b/icons/mob/items/lefthand_guns.dmi differ diff --git a/icons/mob/items/lefthand_vr.dmi b/icons/mob/items/lefthand_vr.dmi index f96555c99b..2117ebdf1d 100644 Binary files a/icons/mob/items/lefthand_vr.dmi and b/icons/mob/items/lefthand_vr.dmi differ diff --git a/icons/mob/items/righthand_guns.dmi b/icons/mob/items/righthand_guns.dmi index 26e830efde..b1f6d51b4c 100644 Binary files a/icons/mob/items/righthand_guns.dmi and b/icons/mob/items/righthand_guns.dmi differ diff --git a/icons/mob/items/righthand_vr.dmi b/icons/mob/items/righthand_vr.dmi index 5330cd7355..a304b20fda 100644 Binary files a/icons/mob/items/righthand_vr.dmi and b/icons/mob/items/righthand_vr.dmi differ diff --git a/icons/mob/vore/taurs_vr.dmi b/icons/mob/vore/taurs_vr.dmi index 8772db082a..791b974422 100644 Binary files a/icons/mob/vore/taurs_vr.dmi and b/icons/mob/vore/taurs_vr.dmi differ diff --git a/icons/obj/ammo.dmi b/icons/obj/ammo.dmi index 6c5c1d0738..c8fd11c08a 100644 Binary files a/icons/obj/ammo.dmi and b/icons/obj/ammo.dmi differ diff --git a/icons/obj/ammo_boxes.dmi b/icons/obj/ammo_boxes.dmi index 0117deddee..fbb1f8b4c1 100644 Binary files a/icons/obj/ammo_boxes.dmi and b/icons/obj/ammo_boxes.dmi differ diff --git a/icons/obj/device_vr.dmi b/icons/obj/device_vr.dmi index 3c4a3c5d09..1a1c28af56 100644 Binary files a/icons/obj/device_vr.dmi and b/icons/obj/device_vr.dmi differ diff --git a/icons/obj/drinks_mugs.dmi b/icons/obj/drinks_mugs.dmi new file mode 100644 index 0000000000..6cdf814462 Binary files /dev/null and b/icons/obj/drinks_mugs.dmi differ diff --git a/icons/obj/drinks_mugs_tall.dmi b/icons/obj/drinks_mugs_tall.dmi new file mode 100644 index 0000000000..8e2be2e2cf Binary files /dev/null and b/icons/obj/drinks_mugs_tall.dmi differ diff --git a/icons/obj/food.dmi b/icons/obj/food.dmi index e10e8e42a4..23a0a0bc0c 100644 Binary files a/icons/obj/food.dmi and b/icons/obj/food.dmi differ diff --git a/icons/obj/gun.dmi b/icons/obj/gun.dmi index 9de92931db..5f89123303 100644 Binary files a/icons/obj/gun.dmi and b/icons/obj/gun.dmi differ diff --git a/icons/obj/gun_vr.dmi b/icons/obj/gun_vr.dmi index 17319770e9..e90a7ab7cd 100644 Binary files a/icons/obj/gun_vr.dmi and b/icons/obj/gun_vr.dmi differ diff --git a/icons/obj/pda_clam.dmi b/icons/obj/pda_clam.dmi deleted file mode 100644 index e27eeff141..0000000000 Binary files a/icons/obj/pda_clam.dmi and /dev/null differ diff --git a/icons/obj/pda_holo.dmi b/icons/obj/pda_holo.dmi index 82c2e5f219..d8621a957a 100644 Binary files a/icons/obj/pda_holo.dmi and b/icons/obj/pda_holo.dmi differ diff --git a/icons/obj/pda_old.dmi b/icons/obj/pda_old.dmi index 954c15acba..3a0503db8a 100644 Binary files a/icons/obj/pda_old.dmi and b/icons/obj/pda_old.dmi differ diff --git a/icons/obj/pda_rugged.dmi b/icons/obj/pda_rugged.dmi index dedacce457..667a08b034 100644 Binary files a/icons/obj/pda_rugged.dmi and b/icons/obj/pda_rugged.dmi differ diff --git a/icons/obj/pda_slider.dmi b/icons/obj/pda_slider.dmi new file mode 100644 index 0000000000..8ec1b97d46 Binary files /dev/null and b/icons/obj/pda_slider.dmi differ diff --git a/icons/obj/pda_slim.dmi b/icons/obj/pda_slim.dmi index 5ac097b348..7260633765 100644 Binary files a/icons/obj/pda_slim.dmi and b/icons/obj/pda_slim.dmi differ diff --git a/icons/obj/pda_vr.dmi b/icons/obj/pda_vr.dmi index 1e088cc090..20ccdfd1f0 100644 Binary files a/icons/obj/pda_vr.dmi and b/icons/obj/pda_vr.dmi differ diff --git a/icons/obj/pda_wrist.dmi b/icons/obj/pda_wrist.dmi index 931ef0b2fe..c4fc27ea98 100644 Binary files a/icons/obj/pda_wrist.dmi and b/icons/obj/pda_wrist.dmi differ diff --git a/icons/obj/playing_cards.dmi b/icons/obj/playing_cards.dmi index 0195f8e6f4..b5336d6dd1 100644 Binary files a/icons/obj/playing_cards.dmi and b/icons/obj/playing_cards.dmi differ diff --git a/icons/obj/power_vrx96.dmi b/icons/obj/power_vrx96.dmi new file mode 100644 index 0000000000..ce0baf9459 Binary files /dev/null and b/icons/obj/power_vrx96.dmi differ diff --git a/icons/obj/storage_vr.dmi b/icons/obj/storage_vr.dmi index 25d8e14772..268d1c827d 100644 Binary files a/icons/obj/storage_vr.dmi and b/icons/obj/storage_vr.dmi differ diff --git a/icons/obj/surgery.dmi b/icons/obj/surgery.dmi index cee44a9070..aed970c79e 100644 Binary files a/icons/obj/surgery.dmi and b/icons/obj/surgery.dmi differ diff --git a/icons/vore/custom_items_vr.dmi b/icons/vore/custom_items_vr.dmi index ca6f3dfa19..45d064e1b6 100644 Binary files a/icons/vore/custom_items_vr.dmi and b/icons/vore/custom_items_vr.dmi differ diff --git a/maps/cynosure/cynosure_jobs.dm b/maps/cynosure/cynosure_jobs.dm new file mode 100644 index 0000000000..d874f1f6cd --- /dev/null +++ b/maps/cynosure/cynosure_jobs.dm @@ -0,0 +1,55 @@ +// Pilots + +var/const/EXPLORER =(1<<14) + +var/const/access_explorer = 43 + +/datum/access/explorer + id = access_explorer + desc = "Explorer" + region = ACCESS_REGION_GENERAL + +//Cynosure Jobs + +/datum/department/planetside + name = DEPARTMENT_PLANET + color = "#555555" + sorting_order = 2 // Same as cargo in importance. + +/datum/job/explorer + title = "Explorer" + flag = EXPLORER + departments = list(DEPARTMENT_RESEARCH, DEPARTMENT_PLANET) + department_flag = MEDSCI + faction = "Station" + total_positions = 4 + spawn_positions = 4 + supervisors = "the Research Director" + selection_color = "#633D63" + economic_modifier = 4 + access = list(access_explorer, access_research) + minimal_access = list(access_explorer, access_research) + + outfit_type = /decl/hierarchy/outfit/job/explorer2 + job_description = "An Explorer searches for interesting things on the surface of Sif, and returns them to the station." + + alt_titles = list( + "Pilot" = /decl/hierarchy/outfit/job/pilot) + +/datum/job/rd + access = list(access_rd, access_heads, access_tox, access_genetics, access_morgue, + access_tox_storage, access_teleporter, access_sec_doors, + access_research, access_robotics, access_xenobiology, access_ai_upload, access_tech_storage, + access_RC_announce, access_keycard_auth, access_tcomsat, access_gateway, access_xenoarch, + access_network, access_maint_tunnels, access_explorer, access_eva, access_external_airlocks) + minimal_access = list(access_rd, access_heads, access_tox, access_genetics, access_morgue, + access_tox_storage, access_teleporter, access_sec_doors, + access_research, access_robotics, access_xenobiology, access_ai_upload, access_tech_storage, + access_RC_announce, access_keycard_auth, access_tcomsat, access_gateway, access_xenoarch, + access_network, access_maint_tunnels, access_explorer, access_eva, access_external_airlocks) + +/* + alt_titles = list( + "Explorer Technician" = /decl/hierarchy/outfit/job/explorer2/technician, + "Explorer Medic" = /decl/hierarchy/outfit/job/explorer2/medic) +*/ diff --git a/maps/expedition_vr/aerostat/aerostat_science_outpost.dmm b/maps/expedition_vr/aerostat/aerostat_science_outpost.dmm index c1d7fe3f7c..a878f69993 100644 --- a/maps/expedition_vr/aerostat/aerostat_science_outpost.dmm +++ b/maps/expedition_vr/aerostat/aerostat_science_outpost.dmm @@ -5286,7 +5286,7 @@ /obj/machinery/atmospherics/pipe/simple/hidden/supply{ dir = 5 }, -/obj/structure/closet/firecloset, +/obj/machinery/artifact_scanpad, /turf/simulated/floor/tiled/white, /area/offmap/aerostat/inside/xenoarch) "tj" = ( @@ -11220,7 +11220,7 @@ /obj/machinery/atmospherics/pipe/manifold/hidden/supply{ dir = 1 }, -/obj/machinery/radiocarbon_spectrometer, +/obj/machinery/artifact_harvester, /turf/simulated/floor/tiled/white, /area/offmap/aerostat/inside/xenoarch) "RU" = ( @@ -12856,6 +12856,9 @@ dir = 1 }, /obj/structure/reagent_dispensers/coolanttank, +/obj/structure/window/reinforced{ + dir = 8 + }, /turf/simulated/floor/tiled/white, /area/offmap/aerostat/inside/xenoarch) "YH" = ( diff --git a/maps/offmap_vr/om_ships/bearcat.dmm b/maps/offmap_vr/om_ships/bearcat.dmm index 28eb49a16f..977ee382f2 100644 --- a/maps/offmap_vr/om_ships/bearcat.dmm +++ b/maps/offmap_vr/om_ships/bearcat.dmm @@ -356,7 +356,7 @@ d2 = 4; icon_state = "1-4" }, -/obj/item/weapon/storage/box/beanbags/large, +/obj/item/ammo_magazine/ammo_box/b12g/beanbag, /obj/item/weapon/gun/projectile/shotgun/pump/combat{ desc = "When words don't strike hard enough."; name = "Solid Argument" diff --git a/maps/offmap_vr/om_ships/cruiser.dmm b/maps/offmap_vr/om_ships/cruiser.dmm index 834b910d7c..292b8ff06d 100644 --- a/maps/offmap_vr/om_ships/cruiser.dmm +++ b/maps/offmap_vr/om_ships/cruiser.dmm @@ -6061,22 +6061,22 @@ /turf/simulated/wall/rpshull, /area/mothership/bridge) "md" = ( -/obj/item/weapon/storage/box/flashshells, -/obj/item/weapon/storage/box/flashshells, -/obj/item/weapon/storage/box/stunshells, -/obj/item/weapon/storage/box/stunshells, -/obj/item/weapon/storage/box/beanbags, -/obj/item/weapon/storage/box/beanbags, +/obj/item/ammo_magazine/ammo_box/b12g/flash, +/obj/item/ammo_magazine/ammo_box/b12g/flash, +/obj/item/ammo_magazine/ammo_box/b12g/stunshell, +/obj/item/ammo_magazine/ammo_box/b12g/stunshell, +/obj/item/ammo_magazine/ammo_box/b12g/beanbag, +/obj/item/ammo_magazine/ammo_box/b12g/beanbag, /obj/item/weapon/storage/box/empshells/large, /obj/item/weapon/storage/box/empshells/large, -/obj/item/weapon/storage/box/shotgunammo/large, -/obj/item/weapon/storage/box/shotgunammo/large, -/obj/item/weapon/storage/box/shotgunammo/large, -/obj/item/weapon/storage/box/shotgunammo/large, -/obj/item/weapon/storage/box/shotgunshells/large, -/obj/item/weapon/storage/box/shotgunshells/large, -/obj/item/weapon/storage/box/shotgunshells/large, -/obj/item/weapon/storage/box/shotgunshells/large, +/obj/item/ammo_magazine/ammo_box/b12g, +/obj/item/ammo_magazine/ammo_box/b12g, +/obj/item/ammo_magazine/ammo_box/b12g, +/obj/item/ammo_magazine/ammo_box/b12g, +/obj/item/ammo_magazine/ammo_box/b12g/pellet, +/obj/item/ammo_magazine/ammo_box/b12g/pellet, +/obj/item/ammo_magazine/ammo_box/b12g/pellet, +/obj/item/ammo_magazine/ammo_box/b12g/pellet, /obj/item/weapon/gun/projectile/shotgun/pump/combat, /obj/item/weapon/gun/projectile/shotgun/pump/combat, /obj/structure/closet/secure_closet/guncabinet{ @@ -6792,8 +6792,8 @@ /obj/item/weapon/gun/projectile/automatic/z8, /obj/item/weapon/gun/projectile/automatic/z8, /obj/item/weapon/gun/projectile/heavysniper, -/obj/item/weapon/storage/box/sniperammo, -/obj/item/weapon/storage/box/sniperammo, +/obj/item/ammo_magazine/ammo_box/b145, +/obj/item/ammo_magazine/ammo_box/b145, /obj/item/ammo_magazine/m762, /obj/item/ammo_magazine/m762, /obj/item/ammo_magazine/m762, @@ -6804,8 +6804,8 @@ /obj/item/ammo_magazine/m762/ap, /obj/item/ammo_magazine/m762/ap, /obj/item/ammo_magazine/m762/ap, -/obj/item/weapon/storage/box/sniperammo, -/obj/item/weapon/storage/box/sniperammo, +/obj/item/ammo_magazine/ammo_box/b145, +/obj/item/ammo_magazine/ammo_box/b145, /turf/simulated/floor/tiled/steel_grid, /area/mothership/armory) "ny" = ( diff --git a/maps/offmap_vr/om_ships/shelter_6.dmm b/maps/offmap_vr/om_ships/shelter_6.dmm index c7d3a9fec8..a9e613c235 100644 --- a/maps/offmap_vr/om_ships/shelter_6.dmm +++ b/maps/offmap_vr/om_ships/shelter_6.dmm @@ -284,20 +284,20 @@ /obj/item/ammo_magazine/m545, /obj/item/weapon/gun/projectile/shotgun/pump/combat, /obj/item/weapon/gun/projectile/shotgun/pump/combat, -/obj/item/weapon/storage/box/shotgunshells/large, -/obj/item/weapon/storage/box/shotgunshells/large, -/obj/item/weapon/storage/box/shotgunshells/large, -/obj/item/weapon/storage/box/shotgunshells/large, -/obj/item/weapon/storage/box/shotgunammo/large, -/obj/item/weapon/storage/box/shotgunammo/large, -/obj/item/weapon/storage/box/shotgunammo/large, -/obj/item/weapon/storage/box/shotgunammo/large, +/obj/item/ammo_magazine/ammo_box/b12g/pellet, +/obj/item/ammo_magazine/ammo_box/b12g/pellet, +/obj/item/ammo_magazine/ammo_box/b12g/pellet, +/obj/item/ammo_magazine/ammo_box/b12g/pellet, +/obj/item/ammo_magazine/ammo_box/b12g, +/obj/item/ammo_magazine/ammo_box/b12g, +/obj/item/ammo_magazine/ammo_box/b12g, +/obj/item/ammo_magazine/ammo_box/b12g, /obj/item/weapon/storage/box/empshells/large, /obj/item/weapon/storage/box/empshells/large, -/obj/item/weapon/storage/box/beanbags, -/obj/item/weapon/storage/box/beanbags, -/obj/item/weapon/storage/box/stunshells, -/obj/item/weapon/storage/box/stunshells, +/obj/item/ammo_magazine/ammo_box/b12g/beanbag, +/obj/item/ammo_magazine/ammo_box/b12g/beanbag, +/obj/item/ammo_magazine/ammo_box/b12g/stunshell, +/obj/item/ammo_magazine/ammo_box/b12g/stunshell, /obj/item/weapon/storage/box/flashshells, /obj/item/weapon/storage/box/flashshells, /obj/item/weapon/gun/energy/locked/frontier/carbine/unlocked, @@ -1824,8 +1824,8 @@ /obj/item/weapon/gun/projectile/automatic/z8, /obj/item/weapon/gun/projectile/automatic/z8, /obj/item/weapon/gun/projectile/heavysniper, -/obj/item/weapon/storage/box/sniperammo, -/obj/item/weapon/storage/box/sniperammo, +/obj/item/ammo_magazine/ammo_box/b145, +/obj/item/ammo_magazine/ammo_box/b145, /obj/item/ammo_magazine/m762, /obj/item/ammo_magazine/m762, /obj/item/ammo_magazine/m762, @@ -1836,8 +1836,8 @@ /obj/item/ammo_magazine/m762/ap, /obj/item/ammo_magazine/m762/ap, /obj/item/ammo_magazine/m762/ap, -/obj/item/weapon/storage/box/sniperammo, -/obj/item/weapon/storage/box/sniperammo, +/obj/item/ammo_magazine/ammo_box/b145, +/obj/item/ammo_magazine/ammo_box/b145, /obj/item/modular_computer/laptop/preset/custom_loadout/hybrid, /obj/item/modular_computer/laptop/preset/custom_loadout/hybrid, /obj/item/modular_computer/tablet/preset/custom_loadout/hybrid, diff --git a/maps/offmap_vr/talon/talon_v2.dmm b/maps/offmap_vr/talon/talon_v2.dmm index 31339143b6..3e7f193f44 100644 --- a/maps/offmap_vr/talon/talon_v2.dmm +++ b/maps/offmap_vr/talon/talon_v2.dmm @@ -1458,7 +1458,14 @@ /obj/machinery/atmospherics/unary/vent_scrubber/on{ dir = 1 }, -/obj/item/weapon/paper/dockingcodes, +/obj/item/weapon/paper/dockingcodes{ + pixel_x = 5; + pixel_y = -1 + }, +/obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/talon{ + pixel_x = -13; + pixel_y = 7 + }, /turf/simulated/floor/carpet/blucarpet, /area/talon_v2/crew_quarters/cap_room) "ep" = ( @@ -15660,6 +15667,10 @@ /obj/machinery/atmospherics/unary/vent_scrubber/on{ dir = 1 }, +/obj/item/weapon/reagent_containers/food/drinks/glass2/coffeemug/talon{ + pixel_x = 6; + pixel_y = -1 + }, /turf/simulated/floor/wood, /area/talon_v2/crew_quarters/meditation) "XO" = ( diff --git a/maps/stellardelight/ship_centcom.dmm b/maps/stellardelight/ship_centcom.dmm index 6de916b0c1..37f0375e71 100644 --- a/maps/stellardelight/ship_centcom.dmm +++ b/maps/stellardelight/ship_centcom.dmm @@ -42,8 +42,8 @@ "ag" = ( /obj/structure/table/rack, /obj/item/weapon/gun/projectile/heavysniper, -/obj/item/weapon/storage/box/sniperammo, -/obj/item/weapon/storage/box/sniperammo, +/obj/item/ammo_magazine/ammo_box/b145, +/obj/item/ammo_magazine/ammo_box/b145, /turf/simulated/floor/tiled/dark, /area/centcom/specops) "ah" = ( @@ -669,11 +669,11 @@ "bZ" = ( /obj/structure/table/rack, /obj/structure/window/reinforced, -/obj/item/weapon/storage/box/shotgunammo, -/obj/item/weapon/storage/box/shotgunammo, -/obj/item/weapon/storage/box/shotgunshells, -/obj/item/weapon/storage/box/shotgunshells, -/obj/item/weapon/storage/box/shotgunshells, +/obj/item/ammo_magazine/ammo_box/b12g, +/obj/item/ammo_magazine/ammo_box/b12g, +/obj/item/ammo_magazine/ammo_box/b12g/pellet, +/obj/item/ammo_magazine/ammo_box/b12g/pellet, +/obj/item/ammo_magazine/ammo_box/b12g/pellet, /turf/simulated/floor/tiled{ icon_state = "dark" }, @@ -1584,12 +1584,12 @@ /area/centcom/evac) "fl" = ( /obj/structure/table/reinforced, -/obj/item/weapon/storage/box/flashshells, -/obj/item/weapon/storage/box/flashshells, -/obj/item/weapon/storage/box/stunshells, -/obj/item/weapon/storage/box/stunshells, -/obj/item/weapon/storage/box/beanbags, -/obj/item/weapon/storage/box/beanbags, +/obj/item/ammo_magazine/ammo_box/b12g/flash, +/obj/item/ammo_magazine/ammo_box/b12g/flash, +/obj/item/ammo_magazine/ammo_box/b12g/stunshell, +/obj/item/ammo_magazine/ammo_box/b12g/stunshell, +/obj/item/ammo_magazine/ammo_box/b12g/beanbag, +/obj/item/ammo_magazine/ammo_box/b12g/beanbag, /turf/simulated/floor/tiled{ icon_state = "dark" }, @@ -5235,15 +5235,15 @@ "vk" = ( /obj/structure/table/rack, /obj/effect/floor_decal/industrial/outline/yellow, -/obj/item/weapon/storage/box/shotgunammo/large, -/obj/item/weapon/storage/box/shotgunammo/large, -/obj/item/weapon/storage/box/shotgunammo/large, -/obj/item/weapon/storage/box/shotgunammo/large, -/obj/item/weapon/storage/box/shotgunammo/large, -/obj/item/weapon/storage/box/shotgunammo/large, -/obj/item/weapon/storage/box/shotgunammo/large, -/obj/item/weapon/storage/box/shotgunammo/large, -/obj/item/weapon/storage/box/shotgunammo/large, +/obj/item/ammo_magazine/ammo_box/b12g, +/obj/item/ammo_magazine/ammo_box/b12g, +/obj/item/ammo_magazine/ammo_box/b12g, +/obj/item/ammo_magazine/ammo_box/b12g, +/obj/item/ammo_magazine/ammo_box/b12g, +/obj/item/ammo_magazine/ammo_box/b12g, +/obj/item/ammo_magazine/ammo_box/b12g, +/obj/item/ammo_magazine/ammo_box/b12g, +/obj/item/ammo_magazine/ammo_box/b12g, /turf/simulated/floor/tiled/dark, /area/centcom/security) "vl" = ( @@ -5626,10 +5626,10 @@ "wY" = ( /obj/structure/table/rack, /obj/effect/floor_decal/industrial/outline/yellow, -/obj/item/weapon/storage/box/sniperammo, -/obj/item/weapon/storage/box/sniperammo, -/obj/item/weapon/storage/box/sniperammo, -/obj/item/weapon/storage/box/sniperammo, +/obj/item/ammo_magazine/ammo_box/b145, +/obj/item/ammo_magazine/ammo_box/b145, +/obj/item/ammo_magazine/ammo_box/b145, +/obj/item/ammo_magazine/ammo_box/b145, /turf/simulated/floor/tiled/dark, /area/centcom/security) "xc" = ( @@ -7159,14 +7159,14 @@ /area/centcom/control) "Eq" = ( /obj/structure/table/rack, -/obj/item/weapon/storage/box/stunshells/large, -/obj/item/weapon/storage/box/stunshells/large, -/obj/item/weapon/storage/box/stunshells/large, -/obj/item/weapon/storage/box/stunshells/large, -/obj/item/weapon/storage/box/stunshells/large, -/obj/item/weapon/storage/box/stunshells/large, -/obj/item/weapon/storage/box/stunshells/large, -/obj/item/weapon/storage/box/stunshells/large, +/obj/item/ammo_magazine/ammo_box/b12g/stunshell, +/obj/item/ammo_magazine/ammo_box/b12g/stunshell, +/obj/item/ammo_magazine/ammo_box/b12g/stunshell, +/obj/item/ammo_magazine/ammo_box/b12g/stunshell, +/obj/item/ammo_magazine/ammo_box/b12g/stunshell, +/obj/item/ammo_magazine/ammo_box/b12g/stunshell, +/obj/item/ammo_magazine/ammo_box/b12g/stunshell, +/obj/item/ammo_magazine/ammo_box/b12g/stunshell, /obj/effect/floor_decal/industrial/outline/yellow, /turf/simulated/floor/tiled/dark, /area/centcom/security) @@ -8505,15 +8505,15 @@ "Ih" = ( /obj/structure/table/rack, /obj/effect/floor_decal/industrial/outline/yellow, -/obj/item/weapon/storage/box/shotgunshells/large, -/obj/item/weapon/storage/box/shotgunshells/large, -/obj/item/weapon/storage/box/shotgunshells/large, -/obj/item/weapon/storage/box/shotgunshells/large, -/obj/item/weapon/storage/box/shotgunshells/large, -/obj/item/weapon/storage/box/shotgunshells/large, -/obj/item/weapon/storage/box/shotgunshells/large, -/obj/item/weapon/storage/box/shotgunshells/large, -/obj/item/weapon/storage/box/shotgunshells/large, +/obj/item/ammo_magazine/ammo_box/b12g/pellet, +/obj/item/ammo_magazine/ammo_box/b12g/pellet, +/obj/item/ammo_magazine/ammo_box/b12g/pellet, +/obj/item/ammo_magazine/ammo_box/b12g/pellet, +/obj/item/ammo_magazine/ammo_box/b12g/pellet, +/obj/item/ammo_magazine/ammo_box/b12g/pellet, +/obj/item/ammo_magazine/ammo_box/b12g/pellet, +/obj/item/ammo_magazine/ammo_box/b12g/pellet, +/obj/item/ammo_magazine/ammo_box/b12g/pellet, /turf/simulated/floor/tiled/dark, /area/centcom/security) "Ij" = ( @@ -12083,14 +12083,14 @@ /area/centcom/security) "Ri" = ( /obj/structure/table/rack, -/obj/item/weapon/storage/box/beanbags/large, -/obj/item/weapon/storage/box/beanbags/large, -/obj/item/weapon/storage/box/beanbags/large, -/obj/item/weapon/storage/box/beanbags/large, -/obj/item/weapon/storage/box/beanbags/large, -/obj/item/weapon/storage/box/beanbags/large, -/obj/item/weapon/storage/box/beanbags/large, -/obj/item/weapon/storage/box/beanbags/large, +/obj/item/ammo_magazine/ammo_box/b12g/beanbag, +/obj/item/ammo_magazine/ammo_box/b12g/beanbag, +/obj/item/ammo_magazine/ammo_box/b12g/beanbag, +/obj/item/ammo_magazine/ammo_box/b12g/beanbag, +/obj/item/ammo_magazine/ammo_box/b12g/beanbag, +/obj/item/ammo_magazine/ammo_box/b12g/beanbag, +/obj/item/ammo_magazine/ammo_box/b12g/beanbag, +/obj/item/ammo_magazine/ammo_box/b12g/beanbag, /obj/effect/floor_decal/industrial/outline/yellow, /turf/simulated/floor/tiled/dark, /area/centcom/security) @@ -14307,14 +14307,14 @@ }) "Wq" = ( /obj/structure/table/rack, -/obj/item/weapon/storage/box/flashshells/large, -/obj/item/weapon/storage/box/flashshells/large, -/obj/item/weapon/storage/box/flashshells/large, -/obj/item/weapon/storage/box/flashshells/large, -/obj/item/weapon/storage/box/flashshells/large, -/obj/item/weapon/storage/box/flashshells/large, -/obj/item/weapon/storage/box/flashshells/large, -/obj/item/weapon/storage/box/flashshells/large, +/obj/item/ammo_magazine/ammo_box/b12g/flash, +/obj/item/ammo_magazine/ammo_box/b12g/flash, +/obj/item/ammo_magazine/ammo_box/b12g/flash, +/obj/item/ammo_magazine/ammo_box/b12g/flash, +/obj/item/ammo_magazine/ammo_box/b12g/flash, +/obj/item/ammo_magazine/ammo_box/b12g/flash, +/obj/item/ammo_magazine/ammo_box/b12g/flash, +/obj/item/ammo_magazine/ammo_box/b12g/flash, /obj/effect/floor_decal/industrial/outline/yellow, /turf/simulated/floor/tiled/dark, /area/centcom/security) diff --git a/maps/stellardelight/stellar_delight1.dmm b/maps/stellardelight/stellar_delight1.dmm index 2e87830b16..d74e93ac79 100644 --- a/maps/stellardelight/stellar_delight1.dmm +++ b/maps/stellardelight/stellar_delight1.dmm @@ -8704,11 +8704,7 @@ "sr" = ( /obj/structure/closet/secure_closet/warden, /obj/item/weapon/book/manual/security_space_law, -/obj/item/weapon/gun/projectile/shotgun/pump/combat{ - ammo_type = /obj/item/ammo_casing/a12g/beanbag; - desc = "Built for close quarters combat, the Hesphaistos Industries KS-40 is widely regarded as a weapon of choice for repelling boarders. This one has 'Property of the Warden' inscribed on the stock."; - name = "warden's shotgun" - }, +/obj/item/gunbox/warden, /obj/machinery/power/apc/angled{ dir = 8 }, @@ -14601,7 +14597,6 @@ }, /obj/structure/closet/secure_closet/detective, /obj/item/weapon/reagent_containers/spray/pepper, -/obj/item/weapon/gun/energy/taser, /obj/item/device/camera{ desc = "A one use - polaroid camera. 30 photos left."; name = "detectives camera"; @@ -18290,6 +18285,11 @@ }, /turf/simulated/floor/tiled/white, /area/stellardelight/deck1/shower) +"Na" = ( +/obj/item/weapon/storage/box/nifsofts_mining, +/obj/structure/table/reinforced, +/turf/simulated/floor/tiled/eris/steel/cargo, +/area/stellardelight/deck1/miningequipment) "Nb" = ( /obj/machinery/door/firedoor/glass, /obj/machinery/door/blast/angled{ @@ -33583,7 +33583,7 @@ dl QK pV xf -qV +Na MG vC vi diff --git a/maps/stellardelight/stellar_delight2.dmm b/maps/stellardelight/stellar_delight2.dmm index a423e68b95..620aa603d6 100644 --- a/maps/stellardelight/stellar_delight2.dmm +++ b/maps/stellardelight/stellar_delight2.dmm @@ -13917,7 +13917,7 @@ pixel_x = 32; pixel_y = 0 }, -/obj/item/weapon/paper/dockingcodes, +/obj/item/weapon/paper/dockingcodes/sd, /obj/item/device/radio, /obj/item/device/radio, /turf/simulated/floor/tiled/eris/dark/monofloor, diff --git a/maps/stellardelight/stellar_delight_shuttle_defs.dm b/maps/stellardelight/stellar_delight_shuttle_defs.dm index e83c05be9e..57cbe5d469 100644 --- a/maps/stellardelight/stellar_delight_shuttle_defs.dm +++ b/maps/stellardelight/stellar_delight_shuttle_defs.dm @@ -58,6 +58,7 @@ name = "boat control console" shuttle_tag = "Exploration Shuttle" req_one_access = null + ai_control = TRUE // A shuttle lateloader landmark /obj/effect/shuttle_landmark/shuttle_initializer/exploration @@ -84,6 +85,7 @@ name = "boat control console" shuttle_tag = "Mining Shuttle" req_one_access = null + ai_control = TRUE // A shuttle lateloader landmark /obj/effect/shuttle_landmark/shuttle_initializer/mining diff --git a/maps/submaps/admin_use_vr/dhael_centcom.dmm b/maps/submaps/admin_use_vr/dhael_centcom.dmm index 4021261ffe..ebf1d39200 100644 --- a/maps/submaps/admin_use_vr/dhael_centcom.dmm +++ b/maps/submaps/admin_use_vr/dhael_centcom.dmm @@ -381,11 +381,11 @@ "bb" = ( /obj/structure/table/rack, /obj/structure/window/reinforced, -/obj/item/weapon/storage/box/shotgunammo, -/obj/item/weapon/storage/box/shotgunammo, -/obj/item/weapon/storage/box/shotgunshells, -/obj/item/weapon/storage/box/shotgunshells, -/obj/item/weapon/storage/box/shotgunshells, +/obj/item/ammo_magazine/ammo_box/b12g, +/obj/item/ammo_magazine/ammo_box/b12g, +/obj/item/ammo_magazine/ammo_box/b12g/pellet, +/obj/item/ammo_magazine/ammo_box/b12g/pellet, +/obj/item/ammo_magazine/ammo_box/b12g/pellet, /turf/unsimulated/floor{ icon_state = "dark" }, @@ -557,12 +557,12 @@ /area/centcom/specops) "br" = ( /obj/structure/table/reinforced, -/obj/item/weapon/storage/box/flashshells, -/obj/item/weapon/storage/box/flashshells, -/obj/item/weapon/storage/box/stunshells, -/obj/item/weapon/storage/box/stunshells, -/obj/item/weapon/storage/box/beanbags, -/obj/item/weapon/storage/box/beanbags, +/obj/item/ammo_magazine/ammo_box/b12g/flash, +/obj/item/ammo_magazine/ammo_box/b12g/flash, +/obj/item/ammo_magazine/ammo_box/b12g/stunshell, +/obj/item/ammo_magazine/ammo_box/b12g/stunshell, +/obj/item/ammo_magazine/ammo_box/b12g/beanbag, +/obj/item/ammo_magazine/ammo_box/b12g/beanbag, /turf/unsimulated/floor{ icon_state = "dark" }, @@ -3919,15 +3919,15 @@ "ik" = ( /obj/structure/table/rack, /obj/effect/floor_decal/industrial/outline/yellow, -/obj/item/weapon/storage/box/shotgunammo/large, -/obj/item/weapon/storage/box/shotgunammo/large, -/obj/item/weapon/storage/box/shotgunammo/large, -/obj/item/weapon/storage/box/shotgunammo/large, -/obj/item/weapon/storage/box/shotgunammo/large, -/obj/item/weapon/storage/box/shotgunammo/large, -/obj/item/weapon/storage/box/shotgunammo/large, -/obj/item/weapon/storage/box/shotgunammo/large, -/obj/item/weapon/storage/box/shotgunammo/large, +/obj/item/ammo_magazine/ammo_box/b12g, +/obj/item/ammo_magazine/ammo_box/b12g, +/obj/item/ammo_magazine/ammo_box/b12g, +/obj/item/ammo_magazine/ammo_box/b12g, +/obj/item/ammo_magazine/ammo_box/b12g, +/obj/item/ammo_magazine/ammo_box/b12g, +/obj/item/ammo_magazine/ammo_box/b12g, +/obj/item/ammo_magazine/ammo_box/b12g, +/obj/item/ammo_magazine/ammo_box/b12g, /turf/unsimulated/floor{ icon_state = "vault"; dir = 5 @@ -3935,14 +3935,14 @@ /area/centcom/security) "il" = ( /obj/structure/table/rack, -/obj/item/weapon/storage/box/beanbags/large, -/obj/item/weapon/storage/box/beanbags/large, -/obj/item/weapon/storage/box/beanbags/large, -/obj/item/weapon/storage/box/beanbags/large, -/obj/item/weapon/storage/box/beanbags/large, -/obj/item/weapon/storage/box/beanbags/large, -/obj/item/weapon/storage/box/beanbags/large, -/obj/item/weapon/storage/box/beanbags/large, +/obj/item/ammo_magazine/ammo_box/b12g/beanbag, +/obj/item/ammo_magazine/ammo_box/b12g/beanbag, +/obj/item/ammo_magazine/ammo_box/b12g/beanbag, +/obj/item/ammo_magazine/ammo_box/b12g/beanbag, +/obj/item/ammo_magazine/ammo_box/b12g/beanbag, +/obj/item/ammo_magazine/ammo_box/b12g/beanbag, +/obj/item/ammo_magazine/ammo_box/b12g/beanbag, +/obj/item/ammo_magazine/ammo_box/b12g/beanbag, /obj/effect/floor_decal/industrial/outline/yellow, /turf/unsimulated/floor{ icon_state = "vault"; @@ -3969,14 +3969,14 @@ /area/centcom/security) "in" = ( /obj/structure/table/rack, -/obj/item/weapon/storage/box/flashshells/large, -/obj/item/weapon/storage/box/flashshells/large, -/obj/item/weapon/storage/box/flashshells/large, -/obj/item/weapon/storage/box/flashshells/large, -/obj/item/weapon/storage/box/flashshells/large, -/obj/item/weapon/storage/box/flashshells/large, -/obj/item/weapon/storage/box/flashshells/large, -/obj/item/weapon/storage/box/flashshells/large, +/obj/item/ammo_magazine/ammo_box/b12g/flash, +/obj/item/ammo_magazine/ammo_box/b12g/flash, +/obj/item/ammo_magazine/ammo_box/b12g/flash, +/obj/item/ammo_magazine/ammo_box/b12g/flash, +/obj/item/ammo_magazine/ammo_box/b12g/flash, +/obj/item/ammo_magazine/ammo_box/b12g/flash, +/obj/item/ammo_magazine/ammo_box/b12g/flash, +/obj/item/ammo_magazine/ammo_box/b12g/flash, /obj/effect/floor_decal/industrial/outline/yellow, /turf/unsimulated/floor{ icon_state = "vault"; @@ -3985,14 +3985,14 @@ /area/centcom/security) "io" = ( /obj/structure/table/rack, -/obj/item/weapon/storage/box/stunshells/large, -/obj/item/weapon/storage/box/stunshells/large, -/obj/item/weapon/storage/box/stunshells/large, -/obj/item/weapon/storage/box/stunshells/large, -/obj/item/weapon/storage/box/stunshells/large, -/obj/item/weapon/storage/box/stunshells/large, -/obj/item/weapon/storage/box/stunshells/large, -/obj/item/weapon/storage/box/stunshells/large, +/obj/item/ammo_magazine/ammo_box/b12g/stunshell, +/obj/item/ammo_magazine/ammo_box/b12g/stunshell, +/obj/item/ammo_magazine/ammo_box/b12g/stunshell, +/obj/item/ammo_magazine/ammo_box/b12g/stunshell, +/obj/item/ammo_magazine/ammo_box/b12g/stunshell, +/obj/item/ammo_magazine/ammo_box/b12g/stunshell, +/obj/item/ammo_magazine/ammo_box/b12g/stunshell, +/obj/item/ammo_magazine/ammo_box/b12g/stunshell, /obj/effect/floor_decal/industrial/outline/yellow, /turf/unsimulated/floor{ icon_state = "vault"; @@ -4232,10 +4232,10 @@ "iY" = ( /obj/structure/table/rack, /obj/effect/floor_decal/industrial/outline/yellow, -/obj/item/weapon/storage/box/sniperammo, -/obj/item/weapon/storage/box/sniperammo, -/obj/item/weapon/storage/box/sniperammo, -/obj/item/weapon/storage/box/sniperammo, +/obj/item/ammo_magazine/ammo_box/b145, +/obj/item/ammo_magazine/ammo_box/b145, +/obj/item/ammo_magazine/ammo_box/b145, +/obj/item/ammo_magazine/ammo_box/b145, /turf/unsimulated/floor{ icon_state = "vault"; dir = 5 @@ -4309,15 +4309,15 @@ "jd" = ( /obj/structure/table/rack, /obj/effect/floor_decal/industrial/outline/yellow, -/obj/item/weapon/storage/box/shotgunshells/large, -/obj/item/weapon/storage/box/shotgunshells/large, -/obj/item/weapon/storage/box/shotgunshells/large, -/obj/item/weapon/storage/box/shotgunshells/large, -/obj/item/weapon/storage/box/shotgunshells/large, -/obj/item/weapon/storage/box/shotgunshells/large, -/obj/item/weapon/storage/box/shotgunshells/large, -/obj/item/weapon/storage/box/shotgunshells/large, -/obj/item/weapon/storage/box/shotgunshells/large, +/obj/item/ammo_magazine/ammo_box/b12g/pellet, +/obj/item/ammo_magazine/ammo_box/b12g/pellet, +/obj/item/ammo_magazine/ammo_box/b12g/pellet, +/obj/item/ammo_magazine/ammo_box/b12g/pellet, +/obj/item/ammo_magazine/ammo_box/b12g/pellet, +/obj/item/ammo_magazine/ammo_box/b12g/pellet, +/obj/item/ammo_magazine/ammo_box/b12g/pellet, +/obj/item/ammo_magazine/ammo_box/b12g/pellet, +/obj/item/ammo_magazine/ammo_box/b12g/pellet, /turf/unsimulated/floor{ icon_state = "vault"; dir = 5 @@ -16221,8 +16221,8 @@ "Zw" = ( /obj/structure/table/rack, /obj/item/weapon/gun/projectile/heavysniper, -/obj/item/weapon/storage/box/sniperammo, -/obj/item/weapon/storage/box/sniperammo, +/obj/item/ammo_magazine/ammo_box/b145, +/obj/item/ammo_magazine/ammo_box/b145, /turf/unsimulated/floor{ icon_state = "dark" }, diff --git a/maps/submaps/admin_use_vr/ert.dmm b/maps/submaps/admin_use_vr/ert.dmm index 5660e5c1e5..0dd7d311ab 100644 --- a/maps/submaps/admin_use_vr/ert.dmm +++ b/maps/submaps/admin_use_vr/ert.dmm @@ -6488,8 +6488,8 @@ "JZ" = ( /obj/structure/table/rack/steel, /obj/item/weapon/gun/projectile/heavysniper, -/obj/item/weapon/storage/box/sniperammo, -/obj/item/weapon/storage/box/sniperammo, +/obj/item/ammo_magazine/ammo_box/b145, +/obj/item/ammo_magazine/ammo_box/b145, /obj/effect/floor_decal/industrial/outline/grey, /obj/machinery/alarm/alarms_hidden{ dir = 1; @@ -6828,15 +6828,15 @@ /area/ship/ert/armoury_st) "LA" = ( /obj/structure/table/rack/steel, -/obj/item/weapon/storage/box/shotgunshells/large, -/obj/item/weapon/storage/box/shotgunshells/large, -/obj/item/weapon/storage/box/shotgunammo/large, -/obj/item/weapon/storage/box/shotgunammo/large, +/obj/item/ammo_magazine/ammo_box/b12g/pellet, +/obj/item/ammo_magazine/ammo_box/b12g/pellet, +/obj/item/ammo_magazine/ammo_box/b12g, +/obj/item/ammo_magazine/ammo_box/b12g, /obj/item/weapon/storage/box/empshells/large, -/obj/item/weapon/storage/box/flashshells/large, -/obj/item/weapon/storage/box/beanbags/large, -/obj/item/weapon/storage/box/beanbags/large, -/obj/item/weapon/storage/box/stunshells/large, +/obj/item/ammo_magazine/ammo_box/b12g/flash, +/obj/item/ammo_magazine/ammo_box/b12g/beanbag, +/obj/item/ammo_magazine/ammo_box/b12g/beanbag, +/obj/item/ammo_magazine/ammo_box/b12g/stunshell, /obj/effect/floor_decal/industrial/outline/grey, /obj/item/weapon/gun/projectile/shotgun/pump/combat{ pixel_y = 3 @@ -6979,15 +6979,15 @@ /area/ship/ert/armoury_st) "Me" = ( /obj/structure/table/rack/steel, -/obj/item/weapon/storage/box/shotgunshells/large, -/obj/item/weapon/storage/box/shotgunshells/large, -/obj/item/weapon/storage/box/shotgunammo/large, -/obj/item/weapon/storage/box/shotgunammo/large, +/obj/item/ammo_magazine/ammo_box/b12g/pellet, +/obj/item/ammo_magazine/ammo_box/b12g/pellet, +/obj/item/ammo_magazine/ammo_box/b12g, +/obj/item/ammo_magazine/ammo_box/b12g, /obj/item/weapon/storage/box/empshells/large, -/obj/item/weapon/storage/box/flashshells/large, -/obj/item/weapon/storage/box/beanbags/large, -/obj/item/weapon/storage/box/beanbags/large, -/obj/item/weapon/storage/box/stunshells/large, +/obj/item/ammo_magazine/ammo_box/b12g/flash, +/obj/item/ammo_magazine/ammo_box/b12g/beanbag, +/obj/item/ammo_magazine/ammo_box/b12g/beanbag, +/obj/item/ammo_magazine/ammo_box/b12g/stunshell, /obj/effect/floor_decal/industrial/outline/grey, /obj/item/weapon/gun/projectile/automatic/as24{ pixel_y = 3 diff --git a/maps/submaps/admin_use_vr/kk_mercship.dmm b/maps/submaps/admin_use_vr/kk_mercship.dmm index cc5db6e25d..ad77de938c 100644 --- a/maps/submaps/admin_use_vr/kk_mercship.dmm +++ b/maps/submaps/admin_use_vr/kk_mercship.dmm @@ -7132,7 +7132,7 @@ /area/ship/manta/armoury_as) "Dq" = ( /obj/structure/table/rack, -/obj/item/weapon/storage/box/sniperammo, +/obj/item/ammo_magazine/ammo_box/b145, /obj/item/weapon/gun/projectile/heavysniper, /obj/effect/floor_decal/techfloor{ dir = 5 @@ -9278,8 +9278,8 @@ /area/ship/manta/armoury_st) "Nc" = ( /obj/structure/table/rack, -/obj/item/weapon/storage/box/shotgunshells/large, -/obj/item/weapon/storage/box/shotgunammo/large, +/obj/item/ammo_magazine/ammo_box/b12g/pellet, +/obj/item/ammo_magazine/ammo_box/b12g, /obj/item/weapon/gun/projectile/shotgun/pump/combat{ pixel_y = 4 }, diff --git a/maps/submaps/depreciated_vr/ert_base.dmm b/maps/submaps/depreciated_vr/ert_base.dmm index 6c09554428..811010e5d0 100644 --- a/maps/submaps/depreciated_vr/ert_base.dmm +++ b/maps/submaps/depreciated_vr/ert_base.dmm @@ -507,17 +507,17 @@ /obj/structure/table/rack/steel, /obj/item/weapon/gun/projectile/shotgun/pump/combat, /obj/item/weapon/gun/projectile/shotgun/pump/combat, -/obj/item/weapon/storage/box/shotgunshells, -/obj/item/weapon/storage/box/shotgunshells, -/obj/item/weapon/storage/box/shotgunshells, -/obj/item/weapon/storage/box/shotgunammo, -/obj/item/weapon/storage/box/shotgunammo, -/obj/item/weapon/storage/box/stunshells, -/obj/item/weapon/storage/box/stunshells, -/obj/item/weapon/storage/box/flashshells, -/obj/item/weapon/storage/box/flashshells, -/obj/item/weapon/storage/box/beanbags, -/obj/item/weapon/storage/box/beanbags, +/obj/item/ammo_magazine/ammo_box/b12g/pellet, +/obj/item/ammo_magazine/ammo_box/b12g/pellet, +/obj/item/ammo_magazine/ammo_box/b12g/pellet, +/obj/item/ammo_magazine/ammo_box/b12g, +/obj/item/ammo_magazine/ammo_box/b12g, +/obj/item/ammo_magazine/ammo_box/b12g/stunshell, +/obj/item/ammo_magazine/ammo_box/b12g/stunshell, +/obj/item/ammo_magazine/ammo_box/b12g/flash, +/obj/item/ammo_magazine/ammo_box/b12g/flash, +/obj/item/ammo_magazine/ammo_box/b12g/beanbag, +/obj/item/ammo_magazine/ammo_box/b12g/beanbag, /turf/simulated/shuttle/floor/black, /area/shuttle/specops/centcom) "ba" = ( diff --git a/maps/submaps/depreciated_vr/mercbase.dmm b/maps/submaps/depreciated_vr/mercbase.dmm index 5c590364fd..57afc34abd 100644 --- a/maps/submaps/depreciated_vr/mercbase.dmm +++ b/maps/submaps/depreciated_vr/mercbase.dmm @@ -164,7 +164,7 @@ /obj/effect/floor_decal/corner/red{ dir = 6 }, -/obj/item/weapon/storage/box/sniperammo, +/obj/item/ammo_magazine/ammo_box/b145, /obj/item/weapon/gun/projectile/heavysniper, /turf/unsimulated/floor{ dir = 2; @@ -285,8 +285,8 @@ /obj/effect/floor_decal/corner/red{ dir = 10 }, -/obj/item/weapon/storage/box/shotgunshells/large, -/obj/item/weapon/storage/box/shotgunammo/large, +/obj/item/ammo_magazine/ammo_box/b12g/pellet, +/obj/item/ammo_magazine/ammo_box/b12g, /obj/item/weapon/gun/projectile/shotgun/pump/combat, /obj/item/weapon/gun/projectile/shotgun/pump/combat, /turf/unsimulated/floor{ diff --git a/maps/submaps/pois_vr/aerostat/DeadSettlers1.dmm b/maps/submaps/pois_vr/aerostat/DeadSettlers1.dmm new file mode 100644 index 0000000000..24e024f316 --- /dev/null +++ b/maps/submaps/pois_vr/aerostat/DeadSettlers1.dmm @@ -0,0 +1,31 @@ +"a" = (/turf/template_noop,/area/template_noop) +"d" = (/obj/item/device/flashlight/flare,/turf/simulated/mineral/floor/ignore_mapgen/virgo2,/area/submap/virgo2/DeadSettlers1) +"e" = (/turf/simulated/mineral/floor/ignore_mapgen/virgo2,/area/submap/virgo2/DeadSettlers1) +"g" = (/obj/item/trash/meatration,/turf/simulated/mineral/floor/ignore_mapgen/virgo2,/area/submap/virgo2/DeadSettlers1) +"n" = (/obj/tether_away_spawner/aerostat_surface,/turf/simulated/mineral/floor/ignore_mapgen/virgo2,/area/submap/virgo2/DeadSettlers1) +"o" = (/obj/item/weapon/gun/projectile/shotgun/pump/rifle/lever/trailgun,/turf/simulated/mineral/floor/ignore_mapgen/virgo2,/area/submap/virgo2/DeadSettlers1) +"p" = (/turf/template_noop,/area/submap/virgo2/DeadSettlers1) +"q" = (/obj/item/ammo_casing,/turf/simulated/mineral/floor/ignore_mapgen/virgo2,/area/submap/virgo2/DeadSettlers1) +"t" = (/obj/random/multiple/voidsuit,/obj/effect/decal/remains,/turf/simulated/mineral/floor/ignore_mapgen/virgo2,/area/submap/virgo2/DeadSettlers1) +"B" = (/obj/item/device/radio/off,/turf/simulated/mineral/floor/ignore_mapgen/virgo2,/area/submap/virgo2/DeadSettlers1) +"K" = (/obj/effect/decal/remains,/obj/effect/decal/cleanable/blood,/turf/simulated/mineral/floor/ignore_mapgen/virgo2,/area/submap/virgo2/DeadSettlers1) +"Q" = (/obj/item/ammo_magazine/ammo_box/b44,/turf/simulated/mineral/floor/ignore_mapgen/virgo2,/area/submap/virgo2/DeadSettlers1) +"W" = (/obj/effect/decal/cleanable/blood,/turf/simulated/mineral/floor/ignore_mapgen/virgo2,/area/submap/virgo2/DeadSettlers1) + +(1,1,1) = {" +aaaaaaaaaaaaaaa +apppppppppppppa +apppeeeeppppppa +appeeeeeeeppppa +apeeeneeeeepppa +apeeeeeQeegpppa +apeeeeeeqKeeppa +appeeeedeBeeppa +apppeqtWeeneppa +apppeoqeeeeeppa +appppeWeeeepppa +appppppeeeppppa +apppppppepppppa +apppppppppppppa +aaaaaaaaaaaaaaa +"} diff --git a/maps/submaps/pois_vr/aerostat/DeadSettlers2.dmm b/maps/submaps/pois_vr/aerostat/DeadSettlers2.dmm new file mode 100644 index 0000000000..fc5b53640c --- /dev/null +++ b/maps/submaps/pois_vr/aerostat/DeadSettlers2.dmm @@ -0,0 +1,28 @@ +"a" = (/turf/template_noop,/area/template_noop) +"m" = (/obj/structure/bonfire,/turf/simulated/mineral/floor/ignore_mapgen/virgo2,/area/submap/virgo2/DeadSettlers2) +"n" = (/obj/effect/decal/remains,/turf/simulated/mineral/floor/ignore_mapgen/virgo2,/area/submap/virgo2/DeadSettlers2) +"o" = (/obj/random/multiple/voidsuit,/obj/effect/decal/remains,/turf/simulated/mineral/floor/ignore_mapgen/virgo2,/area/submap/virgo2/DeadSettlers2) +"u" = (/obj/item/device/flashlight/color/red,/turf/simulated/mineral/floor/ignore_mapgen/virgo2,/area/submap/virgo2/DeadSettlers2) +"v" = (/obj/item/ammo_casing,/turf/simulated/mineral/floor/ignore_mapgen/virgo2,/area/submap/virgo2/DeadSettlers2) +"x" = (/obj/tether_away_spawner/aerostat_surface,/turf/simulated/mineral/floor/ignore_mapgen/virgo2,/area/submap/virgo2/DeadSettlers2) +"z" = (/turf/template_noop,/area/submap/virgo2/DeadSettlers2) +"D" = (/turf/simulated/mineral/floor/ignore_mapgen/virgo2,/area/submap/virgo2/DeadSettlers2) +"F" = (/obj/item/device/radio/off,/turf/simulated/mineral/floor/ignore_mapgen/virgo2,/area/submap/virgo2/DeadSettlers2) +"I" = (/obj/random/firstaid,/obj/effect/decal/cleanable/blood,/turf/simulated/mineral/floor/ignore_mapgen/virgo2,/area/submap/virgo2/DeadSettlers2) +"S" = (/obj/effect/decal/cleanable/blood,/turf/simulated/mineral/floor/ignore_mapgen/virgo2,/area/submap/virgo2/DeadSettlers2) +"W" = (/obj/item/weapon/gun/projectile/shotgun/pump/rifle/lever/brushgun,/turf/simulated/mineral/floor/ignore_mapgen/virgo2,/area/submap/virgo2/DeadSettlers2) + +(1,1,1) = {" +aaaaaaaaaaaa +azzzzzzzzzza +azzDDDDDDzza +azDDDDDoDzza +avDDvDmDDDza +aDDnuDDFDDza +aDWvDDDDDSDa +aDDDDxDInDDa +azzDDDDDSDDa +azzzzDDDDDza +azzzzzzzzzza +aaaaaaaaaaaa +"} diff --git a/maps/submaps/pois_vr/aerostat/Rockybase.dmm b/maps/submaps/pois_vr/aerostat/Rockybase.dmm index 657988b585..2aacf9dde6 100644 --- a/maps/submaps/pois_vr/aerostat/Rockybase.dmm +++ b/maps/submaps/pois_vr/aerostat/Rockybase.dmm @@ -235,9 +235,9 @@ /area/submap/virgo2/Rockybase) "aR" = ( /obj/structure/table/rack, -/obj/item/weapon/storage/box/shotgunshells, -/obj/item/weapon/storage/box/shotgunshells, -/obj/item/weapon/storage/box/shotgunshells, +/obj/item/ammo_magazine/ammo_box/b12g/pellet, +/obj/item/ammo_magazine/ammo_box/b12g/pellet, +/obj/item/ammo_magazine/ammo_box/b12g/pellet, /obj/item/ammo_magazine/m10mm, /obj/item/ammo_magazine/m10mm, /obj/item/ammo_magazine/m10mm, diff --git a/maps/submaps/pois_vr/aerostat/virgo2_submap_areas.dm b/maps/submaps/pois_vr/aerostat/virgo2_submap_areas.dm index ddfa01ebaf..c0a3049c18 100644 --- a/maps/submaps/pois_vr/aerostat/virgo2_submap_areas.dm +++ b/maps/submaps/pois_vr/aerostat/virgo2_submap_areas.dm @@ -82,3 +82,9 @@ /area/submap/virgo2/Rocky4 name = "POI - Rocky4" + +/area/submap/virgo2/DeadSettlers1 + name = "POI - DeadSettlers1" + +/area/submap/virgo2/DeadSettlers2 + name = "POI - DeadSettlers2" \ No newline at end of file diff --git a/maps/submaps/surface_submaps/mountains/CaveTrench.dmm b/maps/submaps/surface_submaps/mountains/CaveTrench.dmm index 4ff3001c29..3b9626828c 100644 --- a/maps/submaps/surface_submaps/mountains/CaveTrench.dmm +++ b/maps/submaps/surface_submaps/mountains/CaveTrench.dmm @@ -29,7 +29,7 @@ "C" = (/obj/structure/closet/cabinet,/obj/item/clothing/suit/storage/hooded/wintercoat/miner,/obj/item/clothing/suit/storage/hooded/wintercoat/miner,/turf/simulated/floor/holofloor/wood,/area/submap/CaveTrench) "D" = (/obj/structure/coatrack,/turf/simulated/floor/holofloor/wood,/area/submap/CaveTrench) "E" = (/obj/structure/closet/secure_closet/miner,/turf/simulated/floor/holofloor/wood,/area/submap/CaveTrench) -"F" = (/obj/item/weapon/storage/box/shotgunammo,/turf/simulated/floor/holofloor/wood,/area/submap/CaveTrench) +"F" = (/obj/item/ammo_magazine/ammo_box/b12g,/turf/simulated/floor/holofloor/wood,/area/submap/CaveTrench) "G" = (/obj/structure/table/steel,/obj/item/robot_parts/l_leg,/obj/item/robot_parts/head,/turf/simulated/mineral/floor/ignore_mapgen,/area/submap/CaveTrench) "H" = (/obj/effect/decal/cleanable/blood/gibs/robot,/turf/simulated/mineral/floor/ignore_mapgen,/area/submap/CaveTrench) "I" = (/obj/machinery/power/port_gen/pacman,/turf/simulated/shuttle/plating,/area/submap/CaveTrench) diff --git a/maps/submaps/surface_submaps/plains/Boathouse.dmm b/maps/submaps/surface_submaps/plains/Boathouse.dmm index 0f20993d39..798ad3431f 100644 --- a/maps/submaps/surface_submaps/plains/Boathouse.dmm +++ b/maps/submaps/surface_submaps/plains/Boathouse.dmm @@ -9,7 +9,7 @@ "ai" = (/turf/simulated/wall/wood,/area/submap/Boathouse) "aj" = (/obj/structure/closet/cabinet,/obj/item/clothing/accessory/jacket,/obj/item/clothing/accessory/jacket,/obj/item/clothing/head/beanie,/turf/simulated/floor/wood,/area/submap/Boathouse) "ak" = (/turf/simulated/floor/wood,/area/submap/Boathouse) -"al" = (/obj/structure/closet/cabinet,/obj/item/weapon/gun/projectile/shotgun/doublebarrel,/obj/item/weapon/storage/box/beanbags,/turf/simulated/floor/wood,/area/submap/Boathouse) +"al" = (/obj/structure/closet/cabinet,/obj/item/weapon/gun/projectile/shotgun/doublebarrel,/obj/item/ammo_magazine/ammo_box/b12g/beanbag,/turf/simulated/floor/wood,/area/submap/Boathouse) "am" = (/turf/simulated/floor/carpet/turcarpet,/area/submap/Boathouse) "an" = (/obj/structure/table/woodentable,/obj/item/weapon/storage/toolbox/mechanical,/turf/simulated/floor/wood,/area/submap/Boathouse) "ao" = (/obj/structure/railing{dir = 8},/obj/structure/railing,/turf/simulated/floor/water,/area/submap/Boathouse) diff --git a/maps/submaps/surface_submaps/plains/Boathouse_vr.dmm b/maps/submaps/surface_submaps/plains/Boathouse_vr.dmm index 062bb10591..31ae85b9aa 100644 --- a/maps/submaps/surface_submaps/plains/Boathouse_vr.dmm +++ b/maps/submaps/surface_submaps/plains/Boathouse_vr.dmm @@ -42,7 +42,7 @@ "al" = ( /obj/structure/closet/cabinet, /obj/item/weapon/gun/projectile/shotgun/doublebarrel, -/obj/item/weapon/storage/box/beanbags, +/obj/item/ammo_magazine/ammo_box/b12g/beanbag, /turf/simulated/floor/wood, /area/submap/Boathouse) "am" = ( diff --git a/maps/submaps/surface_submaps/plains/Thiefc.dmm b/maps/submaps/surface_submaps/plains/Thiefc.dmm index f8b8327363..d83aa9631f 100644 --- a/maps/submaps/surface_submaps/plains/Thiefc.dmm +++ b/maps/submaps/surface_submaps/plains/Thiefc.dmm @@ -13,7 +13,7 @@ "m" = (/obj/structure/table/steel,/obj/item/weapon/paper{desc = "This is some bullshit. First chance we got to knick something that looks half decent turns out to be mostly junk. And now we're getting calls that the other stash we've got has got a spider problem. Fuck this, Between the shitty weather, The pissed of bugs, And now apparently some NT goon running around in the area there's hardly enough reason to stick around. I'm telling Carl I'm out tommorow."; name = "Note"},/turf/simulated/floor/outdoors/dirt{outdoors = 0},/area/submap/Thiefc) "n" = (/obj/vehicle/train/trolley,/turf/simulated/floor/outdoors/dirt{outdoors = 0},/area/submap/Thiefc) "o" = (/obj/structure/closet/crate,/obj/item/weapon/cell/device/weapon,/obj/item/weapon/cell/device/weapon,/turf/simulated/floor/outdoors/dirt{outdoors = 0},/area/submap/Thiefc) -"p" = (/obj/structure/closet/crate,/obj/item/weapon/storage/box/shotgunammo,/obj/item/weapon/storage/box/practiceshells,/obj/random/projectile/scrapped_gun,/turf/simulated/floor/outdoors/dirt{outdoors = 0},/area/submap/Thiefc) +"p" = (/obj/structure/closet/crate,/obj/item/ammo_magazine/ammo_box/b12g,/obj/item/weapon/storage/box/practiceshells,/obj/random/projectile/scrapped_gun,/turf/simulated/floor/outdoors/dirt{outdoors = 0},/area/submap/Thiefc) (1,1,1) = {" aaaaaaaaaaaaaaaaaaaaaaaaa diff --git a/maps/tether/submaps/tether_centcom.dmm b/maps/tether/submaps/tether_centcom.dmm index fdbd846032..ae96dcf680 100644 --- a/maps/tether/submaps/tether_centcom.dmm +++ b/maps/tether/submaps/tether_centcom.dmm @@ -31,8 +31,8 @@ "ag" = ( /obj/structure/table/rack, /obj/item/weapon/gun/projectile/heavysniper, -/obj/item/weapon/storage/box/sniperammo, -/obj/item/weapon/storage/box/sniperammo, +/obj/item/ammo_magazine/ammo_box/b145, +/obj/item/ammo_magazine/ammo_box/b145, /turf/simulated/floor/tiled/dark, /area/centcom/specops) "ah" = ( @@ -627,11 +627,11 @@ "bZ" = ( /obj/structure/table/rack, /obj/structure/window/reinforced, -/obj/item/weapon/storage/box/shotgunammo, -/obj/item/weapon/storage/box/shotgunammo, -/obj/item/weapon/storage/box/shotgunshells, -/obj/item/weapon/storage/box/shotgunshells, -/obj/item/weapon/storage/box/shotgunshells, +/obj/item/ammo_magazine/ammo_box/b12g, +/obj/item/ammo_magazine/ammo_box/b12g, +/obj/item/ammo_magazine/ammo_box/b12g/pellet, +/obj/item/ammo_magazine/ammo_box/b12g/pellet, +/obj/item/ammo_magazine/ammo_box/b12g/pellet, /turf/simulated/floor/tiled{ icon_state = "dark" }, @@ -1569,12 +1569,12 @@ /area/centcom/terminal) "fl" = ( /obj/structure/table/reinforced, -/obj/item/weapon/storage/box/flashshells, -/obj/item/weapon/storage/box/flashshells, -/obj/item/weapon/storage/box/stunshells, -/obj/item/weapon/storage/box/stunshells, -/obj/item/weapon/storage/box/beanbags, -/obj/item/weapon/storage/box/beanbags, +/obj/item/ammo_magazine/ammo_box/b12g/flash, +/obj/item/ammo_magazine/ammo_box/b12g/flash, +/obj/item/ammo_magazine/ammo_box/b12g/stunshell, +/obj/item/ammo_magazine/ammo_box/b12g/stunshell, +/obj/item/ammo_magazine/ammo_box/b12g/beanbag, +/obj/item/ammo_magazine/ammo_box/b12g/beanbag, /turf/simulated/floor/tiled{ icon_state = "dark" }, @@ -5313,15 +5313,15 @@ "vk" = ( /obj/structure/table/rack, /obj/effect/floor_decal/industrial/outline/yellow, -/obj/item/weapon/storage/box/shotgunammo/large, -/obj/item/weapon/storage/box/shotgunammo/large, -/obj/item/weapon/storage/box/shotgunammo/large, -/obj/item/weapon/storage/box/shotgunammo/large, -/obj/item/weapon/storage/box/shotgunammo/large, -/obj/item/weapon/storage/box/shotgunammo/large, -/obj/item/weapon/storage/box/shotgunammo/large, -/obj/item/weapon/storage/box/shotgunammo/large, -/obj/item/weapon/storage/box/shotgunammo/large, +/obj/item/ammo_magazine/ammo_box/b12g, +/obj/item/ammo_magazine/ammo_box/b12g, +/obj/item/ammo_magazine/ammo_box/b12g, +/obj/item/ammo_magazine/ammo_box/b12g, +/obj/item/ammo_magazine/ammo_box/b12g, +/obj/item/ammo_magazine/ammo_box/b12g, +/obj/item/ammo_magazine/ammo_box/b12g, +/obj/item/ammo_magazine/ammo_box/b12g, +/obj/item/ammo_magazine/ammo_box/b12g, /turf/simulated/floor/tiled/dark, /area/centcom/security) "vm" = ( @@ -5691,10 +5691,10 @@ "wY" = ( /obj/structure/table/rack, /obj/effect/floor_decal/industrial/outline/yellow, -/obj/item/weapon/storage/box/sniperammo, -/obj/item/weapon/storage/box/sniperammo, -/obj/item/weapon/storage/box/sniperammo, -/obj/item/weapon/storage/box/sniperammo, +/obj/item/ammo_magazine/ammo_box/b145, +/obj/item/ammo_magazine/ammo_box/b145, +/obj/item/ammo_magazine/ammo_box/b145, +/obj/item/ammo_magazine/ammo_box/b145, /turf/simulated/floor/tiled/dark, /area/centcom/security) "xc" = ( @@ -7194,14 +7194,14 @@ /area/centcom/control) "Eq" = ( /obj/structure/table/rack, -/obj/item/weapon/storage/box/stunshells/large, -/obj/item/weapon/storage/box/stunshells/large, -/obj/item/weapon/storage/box/stunshells/large, -/obj/item/weapon/storage/box/stunshells/large, -/obj/item/weapon/storage/box/stunshells/large, -/obj/item/weapon/storage/box/stunshells/large, -/obj/item/weapon/storage/box/stunshells/large, -/obj/item/weapon/storage/box/stunshells/large, +/obj/item/ammo_magazine/ammo_box/b12g/stunshell, +/obj/item/ammo_magazine/ammo_box/b12g/stunshell, +/obj/item/ammo_magazine/ammo_box/b12g/stunshell, +/obj/item/ammo_magazine/ammo_box/b12g/stunshell, +/obj/item/ammo_magazine/ammo_box/b12g/stunshell, +/obj/item/ammo_magazine/ammo_box/b12g/stunshell, +/obj/item/ammo_magazine/ammo_box/b12g/stunshell, +/obj/item/ammo_magazine/ammo_box/b12g/stunshell, /obj/effect/floor_decal/industrial/outline/yellow, /turf/simulated/floor/tiled/dark, /area/centcom/security) @@ -8528,15 +8528,15 @@ "Ih" = ( /obj/structure/table/rack, /obj/effect/floor_decal/industrial/outline/yellow, -/obj/item/weapon/storage/box/shotgunshells/large, -/obj/item/weapon/storage/box/shotgunshells/large, -/obj/item/weapon/storage/box/shotgunshells/large, -/obj/item/weapon/storage/box/shotgunshells/large, -/obj/item/weapon/storage/box/shotgunshells/large, -/obj/item/weapon/storage/box/shotgunshells/large, -/obj/item/weapon/storage/box/shotgunshells/large, -/obj/item/weapon/storage/box/shotgunshells/large, -/obj/item/weapon/storage/box/shotgunshells/large, +/obj/item/ammo_magazine/ammo_box/b12g/pellet, +/obj/item/ammo_magazine/ammo_box/b12g/pellet, +/obj/item/ammo_magazine/ammo_box/b12g/pellet, +/obj/item/ammo_magazine/ammo_box/b12g/pellet, +/obj/item/ammo_magazine/ammo_box/b12g/pellet, +/obj/item/ammo_magazine/ammo_box/b12g/pellet, +/obj/item/ammo_magazine/ammo_box/b12g/pellet, +/obj/item/ammo_magazine/ammo_box/b12g/pellet, +/obj/item/ammo_magazine/ammo_box/b12g/pellet, /turf/simulated/floor/tiled/dark, /area/centcom/security) "Ij" = ( @@ -12177,14 +12177,14 @@ /area/centcom/security) "Ri" = ( /obj/structure/table/rack, -/obj/item/weapon/storage/box/beanbags/large, -/obj/item/weapon/storage/box/beanbags/large, -/obj/item/weapon/storage/box/beanbags/large, -/obj/item/weapon/storage/box/beanbags/large, -/obj/item/weapon/storage/box/beanbags/large, -/obj/item/weapon/storage/box/beanbags/large, -/obj/item/weapon/storage/box/beanbags/large, -/obj/item/weapon/storage/box/beanbags/large, +/obj/item/ammo_magazine/ammo_box/b12g/beanbag, +/obj/item/ammo_magazine/ammo_box/b12g/beanbag, +/obj/item/ammo_magazine/ammo_box/b12g/beanbag, +/obj/item/ammo_magazine/ammo_box/b12g/beanbag, +/obj/item/ammo_magazine/ammo_box/b12g/beanbag, +/obj/item/ammo_magazine/ammo_box/b12g/beanbag, +/obj/item/ammo_magazine/ammo_box/b12g/beanbag, +/obj/item/ammo_magazine/ammo_box/b12g/beanbag, /obj/effect/floor_decal/industrial/outline/yellow, /turf/simulated/floor/tiled/dark, /area/centcom/security) @@ -14352,14 +14352,14 @@ }) "Wq" = ( /obj/structure/table/rack, -/obj/item/weapon/storage/box/flashshells/large, -/obj/item/weapon/storage/box/flashshells/large, -/obj/item/weapon/storage/box/flashshells/large, -/obj/item/weapon/storage/box/flashshells/large, -/obj/item/weapon/storage/box/flashshells/large, -/obj/item/weapon/storage/box/flashshells/large, -/obj/item/weapon/storage/box/flashshells/large, -/obj/item/weapon/storage/box/flashshells/large, +/obj/item/ammo_magazine/ammo_box/b12g/flash, +/obj/item/ammo_magazine/ammo_box/b12g/flash, +/obj/item/ammo_magazine/ammo_box/b12g/flash, +/obj/item/ammo_magazine/ammo_box/b12g/flash, +/obj/item/ammo_magazine/ammo_box/b12g/flash, +/obj/item/ammo_magazine/ammo_box/b12g/flash, +/obj/item/ammo_magazine/ammo_box/b12g/flash, +/obj/item/ammo_magazine/ammo_box/b12g/flash, /obj/effect/floor_decal/industrial/outline/yellow, /turf/simulated/floor/tiled/dark, /area/centcom/security) diff --git a/maps/tether/tether-02-surface2.dmm b/maps/tether/tether-02-surface2.dmm index cbc8186c5f..9e8714fc30 100644 --- a/maps/tether/tether-02-surface2.dmm +++ b/maps/tether/tether-02-surface2.dmm @@ -11664,11 +11664,7 @@ /area/tether/surfacebase/security/middlehall) "asE" = ( /obj/item/weapon/book/manual/security_space_law, -/obj/item/weapon/gun/projectile/shotgun/pump/combat{ - ammo_type = /obj/item/ammo_casing/a12g/beanbag; - desc = "Built for close quarters combat, the Hesphaistos Industries KS-40 is widely regarded as a weapon of choice for repelling boarders. This one has 'Property of the Warden' inscribed on the stock."; - name = "warden's shotgun" - }, +/obj/item/gunbox/warden, /obj/structure/closet/secure_closet/warden, /obj/machinery/light, /obj/effect/floor_decal/borderfloor{ diff --git a/maps/tether/tether-03-surface3.dmm b/maps/tether/tether-03-surface3.dmm index 8334e042a5..79250a1c3d 100644 --- a/maps/tether/tether-03-surface3.dmm +++ b/maps/tether/tether-03-surface3.dmm @@ -20249,6 +20249,8 @@ }, /obj/item/weapon/storage/pill_bottle/dice, /obj/item/weapon/storage/pill_bottle/dice_nerd, +/obj/item/weapon/deck/wizoff, +/obj/item/weapon/book/manual/wizzoffguide, /turf/simulated/floor/wood, /area/library) "aGZ" = ( @@ -23641,13 +23643,11 @@ /turf/simulated/floor/plating, /area/bridge_hallway) "aNa" = ( -/obj/machinery/computer/shuttle_control/tether_backup{ - req_one_access = list() - }, /obj/effect/floor_decal/fancy_shuttle{ fancy_shuttle_tag = "lifeboat1"; name = "lifeboat1" }, +/obj/machinery/computer/shuttle_control/tether_backup, /turf/simulated/floor/tiled, /area/shuttle/tether{ base_turf = /turf/simulated/floor/reinforced @@ -39250,10 +39250,12 @@ /obj/structure/window/reinforced{ dir = 1 }, -/obj/machinery/power/smes/buildable/point_of_interest, /obj/structure/cable/green{ icon_state = "0-8" }, +/obj/machinery/power/smes/buildable{ + charge = 500000 + }, /turf/simulated/floor/tiled, /area/shuttle/tourbus/general) "gLg" = ( diff --git a/maps/tether/tether_shuttles.dm b/maps/tether/tether_shuttles.dm index 42f9723477..27caa00596 100644 --- a/maps/tether/tether_shuttles.dm +++ b/maps/tether/tether_shuttles.dm @@ -5,7 +5,8 @@ /obj/machinery/computer/shuttle_control/tether_backup name = "tether backup shuttle control console" shuttle_tag = "Tether Backup" - req_one_access = list(access_heads,access_pilot) + req_one_access = list() + ai_control = TRUE /obj/machinery/computer/shuttle_control/multi/mercenary name = "vessel control console" @@ -36,6 +37,7 @@ name = "surface mining outpost shuttle control console" shuttle_tag = "Mining Outpost" req_one_access = list(access_mining) + ai_control = TRUE // // "Tram" Emergency Shuttler // Becuase the tram only has its own doors and no corresponding station doors, a docking controller is overkill. diff --git a/maps/virgo_minitest/virgo_minitest-sector-3.dmm b/maps/virgo_minitest/virgo_minitest-sector-3.dmm index d1d6b15a0d..f0f58d57ed 100644 --- a/maps/virgo_minitest/virgo_minitest-sector-3.dmm +++ b/maps/virgo_minitest/virgo_minitest-sector-3.dmm @@ -41,7 +41,7 @@ "al" = ( /obj/structure/closet/cabinet, /obj/item/weapon/gun/projectile/shotgun/doublebarrel, -/obj/item/weapon/storage/box/beanbags, +/obj/item/ammo_magazine/ammo_box/b12g/beanbag, /turf/simulated/floor/wood, /area/awaymission/wwmines) "am" = ( diff --git a/sound/effects/spider_loop.ogg b/sound/effects/spider_loop.ogg index 3a98df83e2..dfdd43f972 100644 Binary files a/sound/effects/spider_loop.ogg and b/sound/effects/spider_loop.ogg differ diff --git a/tgui/packages/tgui/interfaces/CharacterDirectory.js b/tgui/packages/tgui/interfaces/CharacterDirectory.js index 7a31f1ac0a..64999d619d 100644 --- a/tgui/packages/tgui/interfaces/CharacterDirectory.js +++ b/tgui/packages/tgui/interfaces/CharacterDirectory.js @@ -87,6 +87,11 @@ const ViewCharacter = (props, context) => { content="Back" onClick={() => setOverlay(null)} /> }> +
+ + {overlay.species} + +
{overlay.tag} @@ -137,6 +142,7 @@ const CharacterDirectoryList = (props, context) => { Name + Species Vore Tag ERP Tag View @@ -149,6 +155,7 @@ const CharacterDirectoryList = (props, context) => { .map((character, i) => ( {character.name} + {character.species} {character.tag} {character.erptag} diff --git a/tgui/packages/tgui/interfaces/DNAModifier.js b/tgui/packages/tgui/interfaces/DNAModifier.js index 26871fc1c4..5d02ce2d73 100644 --- a/tgui/packages/tgui/interfaces/DNAModifier.js +++ b/tgui/packages/tgui/interfaces/DNAModifier.js @@ -327,7 +327,7 @@ const DNAModifierMainRadiationEmitter = (props, context) => { icon="radiation" content="Pulse Radiation" tooltip="Mutates a random block of either the occupant's UI or SE." - tooltipPosition="top-right" + tooltipPosition="top" mt="0.5rem" onClick={() => act('pulseRadiation')} /> diff --git a/tgui/public/tgui.bundle.css b/tgui/public/tgui.bundle.css index 83019cc0af..2eadd38239 100644 --- a/tgui/public/tgui.bundle.css +++ b/tgui/public/tgui.bundle.css @@ -1,4 +1,4 @@ -html,body{box-sizing:border-box;height:100%;margin:0;font-size:12px}html{overflow:hidden;cursor:default}body{overflow:auto;font-family:Verdana,Geneva,sans-serif}*,*:before,*:after{box-sizing:inherit}h1,h2,h3,h4,h5,h6{display:block;margin:0;padding:6px 0;padding:.5rem 0}h1{font-size:18px;font-size:1.5rem}h2{font-size:16px;font-size:1.333rem}h3{font-size:14px;font-size:1.167rem}h4{font-size:12px;font-size:1rem}td,th{vertical-align:baseline;text-align:left}.candystripe:nth-child(odd){background-color:rgba(0,0,0,.25)}.color-black{color:#1a1a1a !important}.color-white{color:#fff !important}.color-red{color:#df3e3e !important}.color-orange{color:#f37f33 !important}.color-yellow{color:#fbda21 !important}.color-olive{color:#cbe41c !important}.color-green{color:#25ca4c !important}.color-teal{color:#00d6cc !important}.color-blue{color:#2e93de !important}.color-violet{color:#7349cf !important}.color-purple{color:#ad45d0 !important}.color-pink{color:#e34da1 !important}.color-brown{color:#b97447 !important}.color-grey{color:#848484 !important}.color-good{color:#68c22d !important}.color-average{color:#f29a29 !important}.color-bad{color:#df3e3e !important}.color-label{color:#8b9bb0 !important}.color-bg-black{background-color:#000 !important}.color-bg-white{background-color:#d9d9d9 !important}.color-bg-red{background-color:#bd2020 !important}.color-bg-orange{background-color:#d95e0c !important}.color-bg-yellow{background-color:#d9b804 !important}.color-bg-olive{background-color:#9aad14 !important}.color-bg-green{background-color:#1b9638 !important}.color-bg-teal{background-color:#009a93 !important}.color-bg-blue{background-color:#1c71b1 !important}.color-bg-violet{background-color:#552dab !important}.color-bg-purple{background-color:#8b2baa !important}.color-bg-pink{background-color:#cf2082 !important}.color-bg-brown{background-color:#8c5836 !important}.color-bg-grey{background-color:#646464 !important}.color-bg-good{background-color:#4d9121 !important}.color-bg-average{background-color:#cd7a0d !important}.color-bg-bad{background-color:#bd2020 !important}.color-bg-label{background-color:#657a94 !important}.debug-layout,.debug-layout *:not(g):not(path){color:rgba(255,255,255,.9) !important;background:transparent !important;outline:1px solid rgba(255,255,255,.5) !important;box-shadow:none !important;filter:none !important}.debug-layout:hover,.debug-layout *:not(g):not(path):hover{outline-color:rgba(255,255,255,.8) !important}a:link,a:visited{color:#2185d0}a:hover,a:active{color:#4972a1}.outline-dotted{outline-style:dotted !important}.outline-dashed{outline-style:dashed !important}.outline-solid{outline-style:solid !important}.outline-double{outline-style:double !important}.outline-groove{outline-style:groove !important}.outline-ridge{outline-style:ridge !important}.outline-inset{outline-style:inset !important}.outline-outset{outline-style:outset !important}.outline-color-black{outline:.167rem solid #1a1a1a !important}.outline-color-white{outline:.167rem solid #fff !important}.outline-color-red{outline:.167rem solid #df3e3e !important}.outline-color-orange{outline:.167rem solid #f37f33 !important}.outline-color-yellow{outline:.167rem solid #fbda21 !important}.outline-color-olive{outline:.167rem solid #cbe41c !important}.outline-color-green{outline:.167rem solid #25ca4c !important}.outline-color-teal{outline:.167rem solid #00d6cc !important}.outline-color-blue{outline:.167rem solid #2e93de !important}.outline-color-violet{outline:.167rem solid #7349cf !important}.outline-color-purple{outline:.167rem solid #ad45d0 !important}.outline-color-pink{outline:.167rem solid #e34da1 !important}.outline-color-brown{outline:.167rem solid #b97447 !important}.outline-color-grey{outline:.167rem solid #848484 !important}.outline-color-good{outline:.167rem solid #68c22d !important}.outline-color-average{outline:.167rem solid #f29a29 !important}.outline-color-bad{outline:.167rem solid #df3e3e !important}.outline-color-label{outline:.167rem solid #8b9bb0 !important}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.text-baseline{text-align:baseline}.text-justify{text-align:justify}.text-nowrap{white-space:nowrap}.text-pre{white-space:pre}.text-bold{font-weight:bold}.text-italic{font-style:italic}.text-underline{text-decoration:underline}.BlockQuote{color:#8b9bb0;border-left:.1666666667em solid #8b9bb0;padding-left:.5em;margin-bottom:.5em}.BlockQuote:last-child{margin-bottom:0}.Button{position:relative;display:inline-block;line-height:1.667em;padding:0 .5em;margin-right:.1666666667em;white-space:nowrap;outline:0;border-radius:.16em;margin-bottom:.1666666667em;user-select:none;-ms-user-select:none}.Button:last-child{margin-right:0;margin-bottom:0}.Button .fa,.Button .fas,.Button .far{margin-left:-0.25em;margin-right:-0.25em;min-width:1.333em;text-align:center}.Button--hasContent .fa,.Button--hasContent .fas,.Button--hasContent .far{margin-right:.25em}.Button--hasContent.Button--iconPosition--right .fa,.Button--hasContent.Button--iconPosition--right .fas,.Button--hasContent.Button--iconPosition--right .far{margin-right:0px;margin-left:3px}.Button--ellipsis{overflow:hidden;text-overflow:ellipsis}.Button--fluid{display:block;margin-left:0;margin-right:0}.Button--circular{border-radius:50%}.Button--compact{padding:0 .25em;line-height:1.333em}.Button--color--black{transition:color 50ms,background-color 50ms;background-color:#000;color:#fff}.Button--color--black:hover{transition:color 0ms,background-color 0ms}.Button--color--black:focus{transition:color 100ms,background-color 100ms}.Button--color--black:hover,.Button--color--black:focus{background-color:#131313;color:#fff}.Button--color--white{transition:color 50ms,background-color 50ms;background-color:#d9d9d9;color:#000}.Button--color--white:hover{transition:color 0ms,background-color 0ms}.Button--color--white:focus{transition:color 100ms,background-color 100ms}.Button--color--white:hover,.Button--color--white:focus{background-color:#f8f8f8;color:#000}.Button--color--red{transition:color 50ms,background-color 50ms;background-color:#bd2020;color:#fff}.Button--color--red:hover{transition:color 0ms,background-color 0ms}.Button--color--red:focus{transition:color 100ms,background-color 100ms}.Button--color--red:hover,.Button--color--red:focus{background-color:#dc4848;color:#fff}.Button--color--orange{transition:color 50ms,background-color 50ms;background-color:#d95e0c;color:#fff}.Button--color--orange:hover{transition:color 0ms,background-color 0ms}.Button--color--orange:focus{transition:color 100ms,background-color 100ms}.Button--color--orange:hover,.Button--color--orange:focus{background-color:#f0853f;color:#fff}.Button--color--yellow{transition:color 50ms,background-color 50ms;background-color:#d9b804;color:#000}.Button--color--yellow:hover{transition:color 0ms,background-color 0ms}.Button--color--yellow:focus{transition:color 100ms,background-color 100ms}.Button--color--yellow:hover,.Button--color--yellow:focus{background-color:#f5d72e;color:#000}.Button--color--olive{transition:color 50ms,background-color 50ms;background-color:#9aad14;color:#fff}.Button--color--olive:hover{transition:color 0ms,background-color 0ms}.Button--color--olive:focus{transition:color 100ms,background-color 100ms}.Button--color--olive:hover,.Button--color--olive:focus{background-color:#c4da2b;color:#fff}.Button--color--green{transition:color 50ms,background-color 50ms;background-color:#1b9638;color:#fff}.Button--color--green:hover{transition:color 0ms,background-color 0ms}.Button--color--green:focus{transition:color 100ms,background-color 100ms}.Button--color--green:hover,.Button--color--green:focus{background-color:#32c154;color:#fff}.Button--color--teal{transition:color 50ms,background-color 50ms;background-color:#009a93;color:#fff}.Button--color--teal:hover{transition:color 0ms,background-color 0ms}.Button--color--teal:focus{transition:color 100ms,background-color 100ms}.Button--color--teal:hover,.Button--color--teal:focus{background-color:#13c4bc;color:#fff}.Button--color--blue{transition:color 50ms,background-color 50ms;background-color:#1c71b1;color:#fff}.Button--color--blue:hover{transition:color 0ms,background-color 0ms}.Button--color--blue:focus{transition:color 100ms,background-color 100ms}.Button--color--blue:hover,.Button--color--blue:focus{background-color:#3a95d9;color:#fff}.Button--color--violet{transition:color 50ms,background-color 50ms;background-color:#552dab;color:#fff}.Button--color--violet:hover{transition:color 0ms,background-color 0ms}.Button--color--violet:focus{transition:color 100ms,background-color 100ms}.Button--color--violet:hover,.Button--color--violet:focus{background-color:#7953cc;color:#fff}.Button--color--purple{transition:color 50ms,background-color 50ms;background-color:#8b2baa;color:#fff}.Button--color--purple:hover{transition:color 0ms,background-color 0ms}.Button--color--purple:focus{transition:color 100ms,background-color 100ms}.Button--color--purple:hover,.Button--color--purple:focus{background-color:#ad4fcd;color:#fff}.Button--color--pink{transition:color 50ms,background-color 50ms;background-color:#cf2082;color:#fff}.Button--color--pink:hover{transition:color 0ms,background-color 0ms}.Button--color--pink:focus{transition:color 100ms,background-color 100ms}.Button--color--pink:hover,.Button--color--pink:focus{background-color:#e257a5;color:#fff}.Button--color--brown{transition:color 50ms,background-color 50ms;background-color:#8c5836;color:#fff}.Button--color--brown:hover{transition:color 0ms,background-color 0ms}.Button--color--brown:focus{transition:color 100ms,background-color 100ms}.Button--color--brown:hover,.Button--color--brown:focus{background-color:#b47851;color:#fff}.Button--color--grey{transition:color 50ms,background-color 50ms;background-color:#646464;color:#fff}.Button--color--grey:hover{transition:color 0ms,background-color 0ms}.Button--color--grey:focus{transition:color 100ms,background-color 100ms}.Button--color--grey:hover,.Button--color--grey:focus{background-color:#868686;color:#fff}.Button--color--good{transition:color 50ms,background-color 50ms;background-color:#4d9121;color:#fff}.Button--color--good:hover{transition:color 0ms,background-color 0ms}.Button--color--good:focus{transition:color 100ms,background-color 100ms}.Button--color--good:hover,.Button--color--good:focus{background-color:#6cba39;color:#fff}.Button--color--average{transition:color 50ms,background-color 50ms;background-color:#cd7a0d;color:#fff}.Button--color--average:hover{transition:color 0ms,background-color 0ms}.Button--color--average:focus{transition:color 100ms,background-color 100ms}.Button--color--average:hover,.Button--color--average:focus{background-color:#ed9d35;color:#fff}.Button--color--bad{transition:color 50ms,background-color 50ms;background-color:#bd2020;color:#fff}.Button--color--bad:hover{transition:color 0ms,background-color 0ms}.Button--color--bad:focus{transition:color 100ms,background-color 100ms}.Button--color--bad:hover,.Button--color--bad:focus{background-color:#dc4848;color:#fff}.Button--color--label{transition:color 50ms,background-color 50ms;background-color:#657a94;color:#fff}.Button--color--label:hover{transition:color 0ms,background-color 0ms}.Button--color--label:focus{transition:color 100ms,background-color 100ms}.Button--color--label:hover,.Button--color--label:focus{background-color:#91a1b3;color:#fff}.Button--color--default{transition:color 50ms,background-color 50ms;background-color:#3e6189;color:#fff}.Button--color--default:hover{transition:color 0ms,background-color 0ms}.Button--color--default:focus{transition:color 100ms,background-color 100ms}.Button--color--default:hover,.Button--color--default:focus{background-color:#5c83b0;color:#fff}.Button--color--caution{transition:color 50ms,background-color 50ms;background-color:#d9b804;color:#000}.Button--color--caution:hover{transition:color 0ms,background-color 0ms}.Button--color--caution:focus{transition:color 100ms,background-color 100ms}.Button--color--caution:hover,.Button--color--caution:focus{background-color:#f5d72e;color:#000}.Button--color--danger{transition:color 50ms,background-color 50ms;background-color:#bd2020;color:#fff}.Button--color--danger:hover{transition:color 0ms,background-color 0ms}.Button--color--danger:focus{transition:color 100ms,background-color 100ms}.Button--color--danger:hover,.Button--color--danger:focus{background-color:#dc4848;color:#fff}.Button--color--transparent{transition:color 50ms,background-color 50ms;background-color:#252525;color:#fff;background-color:rgba(37,37,37,0);color:rgba(255,255,255,.5)}.Button--color--transparent:hover{transition:color 0ms,background-color 0ms}.Button--color--transparent:focus{transition:color 100ms,background-color 100ms}.Button--color--transparent:hover,.Button--color--transparent:focus{background-color:#3e3e3e;color:#fff}.Button--disabled{background-color:#999 !important}.Button--selected{transition:color 50ms,background-color 50ms;background-color:#1b9638;color:#fff}.Button--selected:hover{transition:color 0ms,background-color 0ms}.Button--selected:focus{transition:color 100ms,background-color 100ms}.Button--selected:hover,.Button--selected:focus{background-color:#32c154;color:#fff}.ColorBox{display:inline-block;width:1em;height:1em;line-height:1em;text-align:center}.Dimmer{display:flex;justify-content:center;align-items:center;position:absolute;top:0;bottom:0;left:0;right:0;background-color:rgba(0,0,0,.75);z-index:1}.Divider--horizontal{margin:.5em 0}.Divider--horizontal:not(.Divider--hidden){border-top:.1666666667em solid rgba(255,255,255,.1)}.Divider--vertical{height:100%;margin:0 .5em}.Divider--vertical:not(.Divider--hidden){border-left:.1666666667em solid rgba(255,255,255,.1)}.Dropdown{position:relative}.Dropdown__control{position:relative;display:inline-block;font-family:Verdana,sans-serif;font-size:1em;width:8.3333333333em;line-height:1.4166666667em;user-select:none}.Dropdown__arrow-button{float:right;padding-left:.35em;width:1.2em;height:1.8333333333em;border-left:.0833333333em solid #000;border-left:.0833333333em solid rgba(0,0,0,.25)}.Dropdown__menu{position:absolute;overflow-y:auto;z-index:5;width:8.3333333333em;max-height:16.6666666667em;overflow-y:scroll;border-radius:0 0 .1666666667em .1666666667em;color:#fff;background-color:#000;background-color:rgba(0,0,0,.75)}.Dropdown__menu-noscroll{position:absolute;overflow-y:auto;z-index:5;width:8.3333333333em;max-height:16.6666666667em;border-radius:0 0 .1666666667em .1666666667em;color:#fff;background-color:#000;background-color:rgba(0,0,0,.75)}.Dropdown__menuentry{padding:.1666666667em .3333333333em;font-family:Verdana,sans-serif;font-size:1em;line-height:1.4166666667em;transition:background-color 100ms ease-out}.Dropdown__menuentry:hover{background-color:rgba(255,255,255,.2);transition:background-color 0ms}.Dropdown__over{top:auto;bottom:100%}.Dropdown__selected-text{display:inline-block;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;height:1.4166666667em;width:calc(100% - 1.2em)}.Flex{display:-ms-flexbox;display:flex}.Flex--inline{display:inline-flex}.Flex--iefix{display:table !important;width:105%;border-collapse:collapse;border-spacing:0}.Flex--iefix:after{content:"";display:table-cell;width:5%}.Flex--iefix--column{display:table !important;width:100% !important;height:100% !important;border-collapse:collapse;border-spacing:0}.Flex--iefix--column>.Flex__item--iefix{display:table-row !important}.Flex--iefix--column>.Flex__item--iefix--grow{height:100% !important}.Flex__item--iefix{display:table-cell !important;width:1% !important;min-width:99%}.Flex__item--iefix--grow{width:auto !important}.IconStack>.Icon{position:absolute;width:100%;text-align:center}.IconStack{position:relative;display:inline-block;height:1.2em;line-height:2em;vertical-align:middle}.IconStack:after{color:transparent;content:"."}.Input{position:relative;display:inline-block;width:10em;border:.0833333333em solid #88bfff;border:.0833333333em solid rgba(136,191,255,.75);border-radius:.16em;color:#fff;background-color:#0a0a0a;padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;overflow:visible}.Input--fluid{display:block;width:auto}.Input__baseline{display:inline-block;color:transparent}.Input__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:transparent;color:#fff;color:inherit}.Input__input:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.Input--monospace .Input__input{font-family:"Consolas",monospace}.Knob{position:relative;font-size:1rem;width:2.6em;height:2.6em;margin:0 auto;margin-bottom:-0.2em;cursor:n-resize}.Knob:after{content:".";color:transparent;line-height:2.5em}.Knob__circle{position:absolute;top:.1em;bottom:.1em;left:.1em;right:.1em;margin:.3em;background-color:#333;background-image:linear-gradient(to bottom, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 100%);border-radius:50%;box-shadow:0 .05em .5em 0 rgba(0,0,0,.5)}.Knob__cursorBox{position:absolute;top:0;bottom:0;left:0;right:0}.Knob__cursor{position:relative;top:.05em;margin:0 auto;width:.2em;height:.8em;background-color:rgba(255,255,255,.9)}.Knob__popupValue{position:absolute;top:-2rem;right:50%;font-size:1rem;text-align:center;padding:.25rem .5rem;color:#fff;background-color:#000;transform:translateX(50%);white-space:nowrap}.Knob__ring{position:absolute;top:0;bottom:0;left:0;right:0;padding:.1em}.Knob__ringTrackPivot{transform:rotateZ(135deg)}.Knob__ringTrack{fill:transparent;stroke:rgba(255,255,255,.1);stroke-width:8;stroke-linecap:round;stroke-dasharray:235.62}.Knob__ringFillPivot{transform:rotateZ(135deg)}.Knob--bipolar .Knob__ringFillPivot{transform:rotateZ(270deg)}.Knob__ringFill{fill:transparent;stroke:#6a96c9;stroke-width:8;stroke-linecap:round;stroke-dasharray:314.16;transition:stroke 50ms ease-out}.Knob--color--black .Knob__ringFill{stroke:#1a1a1a}.Knob--color--white .Knob__ringFill{stroke:#fff}.Knob--color--red .Knob__ringFill{stroke:#df3e3e}.Knob--color--orange .Knob__ringFill{stroke:#f37f33}.Knob--color--yellow .Knob__ringFill{stroke:#fbda21}.Knob--color--olive .Knob__ringFill{stroke:#cbe41c}.Knob--color--green .Knob__ringFill{stroke:#25ca4c}.Knob--color--teal .Knob__ringFill{stroke:#00d6cc}.Knob--color--blue .Knob__ringFill{stroke:#2e93de}.Knob--color--violet .Knob__ringFill{stroke:#7349cf}.Knob--color--purple .Knob__ringFill{stroke:#ad45d0}.Knob--color--pink .Knob__ringFill{stroke:#e34da1}.Knob--color--brown .Knob__ringFill{stroke:#b97447}.Knob--color--grey .Knob__ringFill{stroke:#848484}.Knob--color--good .Knob__ringFill{stroke:#68c22d}.Knob--color--average .Knob__ringFill{stroke:#f29a29}.Knob--color--bad .Knob__ringFill{stroke:#df3e3e}.Knob--color--label .Knob__ringFill{stroke:#8b9bb0}.LabeledList{display:table;width:100%;width:calc(100% + 1em);border-collapse:collapse;border-spacing:0;margin:-0.25em -0.5em;margin-bottom:0;padding:0}.LabeledList__row{display:table-row}.LabeledList__row:last-child .LabeledList__cell{padding-bottom:0}.LabeledList__cell{display:table-cell;margin:0;padding:.25em .5em;border:0;text-align:left;vertical-align:baseline}.LabeledList__label{width:1%;white-space:nowrap;min-width:5em}.LabeledList__buttons{width:.1%;white-space:nowrap;text-align:right;padding-top:.0833333333em;padding-bottom:0}.LabeledList__breakContents{word-break:break-all;word-wrap:break-word}.Modal{background-color:#252525;max-width:calc(100% - 1rem);padding:1rem}.NanoMap__container{overflow:hiddden;width:100%;z-index:1}.NanoMap__marker{z-index:10;padding:0px;margin:0px}.NanoMap__zoomer{z-index:20;background-color:rgba(0,0,0,.33);position:absolute;top:30px;left:0;padding:.5rem;width:30%}.NoticeBox{padding:.33em .5em;margin-bottom:.5em;box-shadow:none;font-weight:bold;font-style:italic;color:#000;background-color:#bb9b68;background-image:repeating-linear-gradient(-45deg, transparent, transparent 0.8333333333em, rgba(0, 0, 0, 0.1) 0.8333333333em, rgba(0, 0, 0, 0.1) 1.6666666667em)}.NoticeBox--color--black{color:#fff;background-color:#000}.NoticeBox--color--white{color:#000;background-color:#b3b3b3}.NoticeBox--color--red{color:#fff;background-color:#701f1f}.NoticeBox--color--orange{color:#fff;background-color:#854114}.NoticeBox--color--yellow{color:#000;background-color:#83710d}.NoticeBox--color--olive{color:#000;background-color:#576015}.NoticeBox--color--green{color:#fff;background-color:#174e24}.NoticeBox--color--teal{color:#fff;background-color:#064845}.NoticeBox--color--blue{color:#fff;background-color:#1b4565}.NoticeBox--color--violet{color:#fff;background-color:#3b2864}.NoticeBox--color--purple{color:#fff;background-color:#542663}.NoticeBox--color--pink{color:#fff;background-color:#802257}.NoticeBox--color--brown{color:#fff;background-color:#4c3729}.NoticeBox--color--grey{color:#fff;background-color:#3e3e3e}.NoticeBox--color--good{color:#fff;background-color:#2e4b1a}.NoticeBox--color--average{color:#fff;background-color:#7b4e13}.NoticeBox--color--bad{color:#fff;background-color:#701f1f}.NoticeBox--color--label{color:#fff;background-color:#53565a}.NoticeBox--type--info{color:#fff;background-color:#235982}.NoticeBox--type--success{color:#fff;background-color:#1e662f}.NoticeBox--type--warning{color:#fff;background-color:#a95219}.NoticeBox--type--danger{color:#fff;background-color:#8f2828}.Input{position:relative;display:inline-block;width:10em;border:.0833333333em solid #88bfff;border:.0833333333em solid rgba(136,191,255,.75);border-radius:.16em;color:#fff;background-color:#0a0a0a;padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;overflow:visible}.Input--fluid{display:block;width:auto}.Input__baseline{display:inline-block;color:transparent}.Input__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:transparent;color:#fff;color:inherit}.Input__input:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.Input--monospace .Input__input{font-family:"Consolas",monospace}.NumberInput{position:relative;display:inline-block;border:.0833333333em solid #88bfff;border:.0833333333em solid rgba(136,191,255,.75);border-radius:.16em;color:#88bfff;background-color:#0a0a0a;padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;text-align:right;overflow:visible;cursor:n-resize}.NumberInput--fluid{display:block}.NumberInput__content{margin-left:.5em}.NumberInput__barContainer{position:absolute;top:.1666666667em;bottom:.1666666667em;left:.1666666667em}.NumberInput__bar{position:absolute;bottom:0;left:0;width:.25em;box-sizing:border-box;border-bottom:.0833333333em solid #88bfff;background-color:#88bfff}.NumberInput__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:#0a0a0a;color:#fff;text-align:right}.ProgressBar{display:inline-block;position:relative;width:100%;padding:0 .5em;border-radius:.16em;background-color:rgba(0,0,0,0);transition:border-color 900ms ease-out}.ProgressBar__fill{position:absolute;top:-0.5px;left:0px;bottom:-0.5px}.ProgressBar__fill--animated{transition:background-color 900ms ease-out,width 900ms ease-out}.ProgressBar__content{position:relative;line-height:1.4166666667em;width:100%;text-align:right}.ProgressBar--color--default{border:.0833333333em solid #3e6189}.ProgressBar--color--default .ProgressBar__fill{background-color:#3e6189}.ProgressBar--color--black{border:.0833333333em solid #000 !important}.ProgressBar--color--black .ProgressBar__fill{background-color:#000}.ProgressBar--color--white{border:.0833333333em solid #d9d9d9 !important}.ProgressBar--color--white .ProgressBar__fill{background-color:#d9d9d9}.ProgressBar--color--red{border:.0833333333em solid #bd2020 !important}.ProgressBar--color--red .ProgressBar__fill{background-color:#bd2020}.ProgressBar--color--orange{border:.0833333333em solid #d95e0c !important}.ProgressBar--color--orange .ProgressBar__fill{background-color:#d95e0c}.ProgressBar--color--yellow{border:.0833333333em solid #d9b804 !important}.ProgressBar--color--yellow .ProgressBar__fill{background-color:#d9b804}.ProgressBar--color--olive{border:.0833333333em solid #9aad14 !important}.ProgressBar--color--olive .ProgressBar__fill{background-color:#9aad14}.ProgressBar--color--green{border:.0833333333em solid #1b9638 !important}.ProgressBar--color--green .ProgressBar__fill{background-color:#1b9638}.ProgressBar--color--teal{border:.0833333333em solid #009a93 !important}.ProgressBar--color--teal .ProgressBar__fill{background-color:#009a93}.ProgressBar--color--blue{border:.0833333333em solid #1c71b1 !important}.ProgressBar--color--blue .ProgressBar__fill{background-color:#1c71b1}.ProgressBar--color--violet{border:.0833333333em solid #552dab !important}.ProgressBar--color--violet .ProgressBar__fill{background-color:#552dab}.ProgressBar--color--purple{border:.0833333333em solid #8b2baa !important}.ProgressBar--color--purple .ProgressBar__fill{background-color:#8b2baa}.ProgressBar--color--pink{border:.0833333333em solid #cf2082 !important}.ProgressBar--color--pink .ProgressBar__fill{background-color:#cf2082}.ProgressBar--color--brown{border:.0833333333em solid #8c5836 !important}.ProgressBar--color--brown .ProgressBar__fill{background-color:#8c5836}.ProgressBar--color--grey{border:.0833333333em solid #646464 !important}.ProgressBar--color--grey .ProgressBar__fill{background-color:#646464}.ProgressBar--color--good{border:.0833333333em solid #4d9121 !important}.ProgressBar--color--good .ProgressBar__fill{background-color:#4d9121}.ProgressBar--color--average{border:.0833333333em solid #cd7a0d !important}.ProgressBar--color--average .ProgressBar__fill{background-color:#cd7a0d}.ProgressBar--color--bad{border:.0833333333em solid #bd2020 !important}.ProgressBar--color--bad .ProgressBar__fill{background-color:#bd2020}.ProgressBar--color--label{border:.0833333333em solid #657a94 !important}.ProgressBar--color--label .ProgressBar__fill{background-color:#657a94}.RoundGauge{font-size:1rem;width:2.6em;height:1.3em;margin:0 auto;margin-bottom:.2em}.RoundGauge__ringTrack{fill:transparent;stroke:rgba(255,255,255,.1);stroke-width:10;stroke-dasharray:157.08;stroke-dashoffset:157.08}.RoundGauge__ringFill{fill:transparent;stroke:#6a96c9;stroke-width:10;stroke-dasharray:314.16;transition:stroke 50ms ease-out}.RoundGauge__needle,.RoundGauge__ringFill{transition:transform 50ms ease-in-out}.RoundGauge__needleLine,.RoundGauge__needleMiddle{fill:#db2828}.RoundGauge__alert{fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;fill:rgba(255,255,255,.1)}.RoundGauge__alert.max{fill:#db2828}.RoundGauge--color--black.RoundGauge__ringFill{stroke:#1a1a1a}.RoundGauge--color--white.RoundGauge__ringFill{stroke:#fff}.RoundGauge--color--red.RoundGauge__ringFill{stroke:#df3e3e}.RoundGauge--color--orange.RoundGauge__ringFill{stroke:#f37f33}.RoundGauge--color--yellow.RoundGauge__ringFill{stroke:#fbda21}.RoundGauge--color--olive.RoundGauge__ringFill{stroke:#cbe41c}.RoundGauge--color--green.RoundGauge__ringFill{stroke:#25ca4c}.RoundGauge--color--teal.RoundGauge__ringFill{stroke:#00d6cc}.RoundGauge--color--blue.RoundGauge__ringFill{stroke:#2e93de}.RoundGauge--color--violet.RoundGauge__ringFill{stroke:#7349cf}.RoundGauge--color--purple.RoundGauge__ringFill{stroke:#ad45d0}.RoundGauge--color--pink.RoundGauge__ringFill{stroke:#e34da1}.RoundGauge--color--brown.RoundGauge__ringFill{stroke:#b97447}.RoundGauge--color--grey.RoundGauge__ringFill{stroke:#848484}.RoundGauge--color--good.RoundGauge__ringFill{stroke:#68c22d}.RoundGauge--color--average.RoundGauge__ringFill{stroke:#f29a29}.RoundGauge--color--bad.RoundGauge__ringFill{stroke:#df3e3e}.RoundGauge--color--label.RoundGauge__ringFill{stroke:#8b9bb0}.RoundGauge__alert--black{fill:#1a1a1a;transition:opacity .6s cubic-bezier(0.25, 1, 0.5, 1);animation:RoundGauge__alertAnim 1s cubic-bezier(0.34, 1.56, 0.64, 1) infinite}.RoundGauge__alert--white{fill:#fff;transition:opacity .6s cubic-bezier(0.25, 1, 0.5, 1);animation:RoundGauge__alertAnim 1s cubic-bezier(0.34, 1.56, 0.64, 1) infinite}.RoundGauge__alert--red{fill:#df3e3e;transition:opacity .6s cubic-bezier(0.25, 1, 0.5, 1);animation:RoundGauge__alertAnim 1s cubic-bezier(0.34, 1.56, 0.64, 1) infinite}.RoundGauge__alert--orange{fill:#f37f33;transition:opacity .6s cubic-bezier(0.25, 1, 0.5, 1);animation:RoundGauge__alertAnim 1s cubic-bezier(0.34, 1.56, 0.64, 1) infinite}.RoundGauge__alert--yellow{fill:#fbda21;transition:opacity .6s cubic-bezier(0.25, 1, 0.5, 1);animation:RoundGauge__alertAnim 1s cubic-bezier(0.34, 1.56, 0.64, 1) infinite}.RoundGauge__alert--olive{fill:#cbe41c;transition:opacity .6s cubic-bezier(0.25, 1, 0.5, 1);animation:RoundGauge__alertAnim 1s cubic-bezier(0.34, 1.56, 0.64, 1) infinite}.RoundGauge__alert--green{fill:#25ca4c;transition:opacity .6s cubic-bezier(0.25, 1, 0.5, 1);animation:RoundGauge__alertAnim 1s cubic-bezier(0.34, 1.56, 0.64, 1) infinite}.RoundGauge__alert--teal{fill:#00d6cc;transition:opacity .6s cubic-bezier(0.25, 1, 0.5, 1);animation:RoundGauge__alertAnim 1s cubic-bezier(0.34, 1.56, 0.64, 1) infinite}.RoundGauge__alert--blue{fill:#2e93de;transition:opacity .6s cubic-bezier(0.25, 1, 0.5, 1);animation:RoundGauge__alertAnim 1s cubic-bezier(0.34, 1.56, 0.64, 1) infinite}.RoundGauge__alert--violet{fill:#7349cf;transition:opacity .6s cubic-bezier(0.25, 1, 0.5, 1);animation:RoundGauge__alertAnim 1s cubic-bezier(0.34, 1.56, 0.64, 1) infinite}.RoundGauge__alert--purple{fill:#ad45d0;transition:opacity .6s cubic-bezier(0.25, 1, 0.5, 1);animation:RoundGauge__alertAnim 1s cubic-bezier(0.34, 1.56, 0.64, 1) infinite}.RoundGauge__alert--pink{fill:#e34da1;transition:opacity .6s cubic-bezier(0.25, 1, 0.5, 1);animation:RoundGauge__alertAnim 1s cubic-bezier(0.34, 1.56, 0.64, 1) infinite}.RoundGauge__alert--brown{fill:#b97447;transition:opacity .6s cubic-bezier(0.25, 1, 0.5, 1);animation:RoundGauge__alertAnim 1s cubic-bezier(0.34, 1.56, 0.64, 1) infinite}.RoundGauge__alert--grey{fill:#848484;transition:opacity .6s cubic-bezier(0.25, 1, 0.5, 1);animation:RoundGauge__alertAnim 1s cubic-bezier(0.34, 1.56, 0.64, 1) infinite}.RoundGauge__alert--good{fill:#68c22d;transition:opacity .6s cubic-bezier(0.25, 1, 0.5, 1);animation:RoundGauge__alertAnim 1s cubic-bezier(0.34, 1.56, 0.64, 1) infinite}.RoundGauge__alert--average{fill:#f29a29;transition:opacity .6s cubic-bezier(0.25, 1, 0.5, 1);animation:RoundGauge__alertAnim 1s cubic-bezier(0.34, 1.56, 0.64, 1) infinite}.RoundGauge__alert--bad{fill:#df3e3e;transition:opacity .6s cubic-bezier(0.25, 1, 0.5, 1);animation:RoundGauge__alertAnim 1s cubic-bezier(0.34, 1.56, 0.64, 1) infinite}.RoundGauge__alert--label{fill:#8b9bb0;transition:opacity .6s cubic-bezier(0.25, 1, 0.5, 1);animation:RoundGauge__alertAnim 1s cubic-bezier(0.34, 1.56, 0.64, 1) infinite}@keyframes RoundGauge__alertAnim{0%{opacity:.1}50%{opacity:1}100%{opacity:.1}}.Section{position:relative;margin-bottom:.5em;background-color:#191919;background-color:rgba(0,0,0,.33);box-sizing:border-box}.Section:last-child{margin-bottom:0}.Section__title{position:relative;padding:.5em;border-bottom:.1666666667em solid #4972a1}.Section__titleText{font-size:1.1666666667em;font-weight:bold;color:#fff}.Section__buttons{position:absolute;display:inline-block;right:.5em;margin-top:-0.0833333333em}.Section__rest{position:relative}.Section__content{padding:.66em .5em}.Section--fitted>.Section__rest>.Section__content{padding:0}.Section--fill{display:flex;flex-direction:column;height:100%}.Section--fill>.Section__rest{flex-grow:1}.Section--fill>.Section__rest>.Section__content{height:100%}.Section--fill.Section--scrollable>.Section__rest>.Section__content{position:absolute;top:0;left:0;right:0;bottom:0}.Section--fill.Section--iefix{display:table !important;width:100% !important;height:100% !important;border-collapse:collapse;border-spacing:0}.Section--fill.Section--iefix>.Section__rest{display:table-row !important;height:100% !important}.Section--scrollable{overflow-x:hidden;overflow-y:hidden}.Section--scrollable>.Section__rest>.Section__content{overflow-y:auto;overflow-x:hidden}.Section .Section{background-color:transparent;margin-left:-0.5em;margin-right:-0.5em}.Section .Section:first-child{margin-top:-0.5em}.Section .Section .Section__titleText{font-size:1.0833333333em}.Section .Section .Section .Section__titleText{font-size:1em}.Section--flex{display:flex;flex-flow:column}.Section--flex .Section__content{overflow:auto;flex-grow:1}.Section__content--noTopPadding{padding-top:0}.Section__content--stretchContents{height:calc(100% - 3rem)}.Slider{cursor:e-resize}.Slider__cursorOffset{position:absolute;top:0;left:0;bottom:0;transition:none !important}.Slider__cursor{position:absolute;top:0;right:-0.0833333333em;bottom:0;width:0;border-left:.1666666667em solid #fff}.Slider__pointer{position:absolute;right:-0.4166666667em;bottom:-0.3333333333em;width:0;height:0;border-left:.4166666667em solid transparent;border-right:.4166666667em solid transparent;border-bottom:.4166666667em solid #fff}.Slider__popupValue{position:absolute;right:0;top:-2rem;font-size:1rem;padding:.25rem .5rem;color:#fff;background-color:#000;transform:translateX(50%);white-space:nowrap}.Divider--horizontal{margin:.5em 0}.Divider--horizontal:not(.Divider--hidden){border-top:.1666666667em solid rgba(255,255,255,.1)}.Divider--vertical{height:100%;margin:0 .5em}.Divider--vertical:not(.Divider--hidden){border-left:.1666666667em solid rgba(255,255,255,.1)}.Stack--fill{height:100%}.Stack--horizontal>.Stack__item{margin-left:.5em}.Stack--horizontal>.Stack__item:first-child{margin-left:0}.Stack--vertical>.Stack__item{margin-top:.5em}.Stack--vertical>.Stack__item:first-child{margin-top:0}.Stack--horizontal>.Stack__divider:not(.Stack__divider--hidden){border-left:.1666666667em solid rgba(255,255,255,.1)}.Stack--vertical>.Stack__divider:not(.Stack__divider--hidden){border-top:.1666666667em solid rgba(255,255,255,.1)}.Table{display:table;width:100%;border-collapse:collapse;border-spacing:0;margin:0}.Table--collapsing{width:auto}.Table__row{display:table-row}.Table__cell{display:table-cell;padding:0 .25em}.Table__cell:first-child{padding-left:0}.Table__cell:last-child{padding-right:0}.Table__row--header .Table__cell,.Table__cell--header{font-weight:bold;padding-bottom:.5em}.Table__cell--collapsing{width:1%;white-space:nowrap}.Tabs{display:flex;align-items:stretch;overflow:hidden;background-color:rgba(0,0,0,.33)}.Tabs--fill{height:100%}.Section .Tabs{background-color:transparent}.Section:not(.Section--fitted) .Tabs{margin:0 -0.5em .5em}.Section:not(.Section--fitted) .Tabs:first-child{margin-top:-0.5em}.Tabs--vertical{flex-direction:column;padding:.25em 0 .25em .25em}.Tabs--horizontal{margin-bottom:.5em;padding:.25em .25em 0 .25em}.Tabs--horizontal:last-child{margin-bottom:0}.Tabs__Tab{flex-grow:0}.Tabs--fluid .Tabs__Tab{flex-grow:1}.Tab{display:flex;align-items:center;justify-content:space-between;background-color:transparent;color:rgba(255,255,255,.5);min-height:2.25em;min-width:4em;transition:background-color 50ms ease-out}.Tab:not(.Tab--selected):hover{background-color:rgba(255,255,255,.075);transition:background-color 0}.Tab--selected{background-color:rgba(255,255,255,.125);color:#dfe7f0}.Tab__text{flex-grow:1;margin:0 .5em}.Tab__left{min-width:1.5em;text-align:center;margin-left:.25em}.Tab__right{min-width:1.5em;text-align:center;margin-right:.25em}.Tabs--horizontal .Tab{border-top:.1666666667em solid transparent;border-bottom:.1666666667em solid transparent;border-top-left-radius:.25em;border-top-right-radius:.25em}.Tabs--horizontal .Tab--selected{border-bottom:.1666666667em solid #d4dfec}.Tabs--vertical .Tab{min-height:2em;border-left:.1666666667em solid transparent;border-right:.1666666667em solid transparent;border-top-left-radius:.25em;border-bottom-left-radius:.25em}.Tabs--vertical .Tab--selected{border-right:.1666666667em solid #d4dfec}.Tab--selected.Tab--color--black{color:#535353}.Tabs--horizontal .Tab--selected.Tab--color--black{border-bottom-color:#1a1a1a}.Tabs--vertical .Tab--selected.Tab--color--black{border-right-color:#1a1a1a}.Tab--selected.Tab--color--white{color:#fff}.Tabs--horizontal .Tab--selected.Tab--color--white{border-bottom-color:#fff}.Tabs--vertical .Tab--selected.Tab--color--white{border-right-color:#fff}.Tab--selected.Tab--color--red{color:#e76e6e}.Tabs--horizontal .Tab--selected.Tab--color--red{border-bottom-color:#df3e3e}.Tabs--vertical .Tab--selected.Tab--color--red{border-right-color:#df3e3e}.Tab--selected.Tab--color--orange{color:#f69f66}.Tabs--horizontal .Tab--selected.Tab--color--orange{border-bottom-color:#f37f33}.Tabs--vertical .Tab--selected.Tab--color--orange{border-right-color:#f37f33}.Tab--selected.Tab--color--yellow{color:#fce358}.Tabs--horizontal .Tab--selected.Tab--color--yellow{border-bottom-color:#fbda21}.Tabs--vertical .Tab--selected.Tab--color--yellow{border-right-color:#fbda21}.Tab--selected.Tab--color--olive{color:#d8eb55}.Tabs--horizontal .Tab--selected.Tab--color--olive{border-bottom-color:#cbe41c}.Tabs--vertical .Tab--selected.Tab--color--olive{border-right-color:#cbe41c}.Tab--selected.Tab--color--green{color:#53e074}.Tabs--horizontal .Tab--selected.Tab--color--green{border-bottom-color:#25ca4c}.Tabs--vertical .Tab--selected.Tab--color--green{border-right-color:#25ca4c}.Tab--selected.Tab--color--teal{color:#21fff5}.Tabs--horizontal .Tab--selected.Tab--color--teal{border-bottom-color:#00d6cc}.Tabs--vertical .Tab--selected.Tab--color--teal{border-right-color:#00d6cc}.Tab--selected.Tab--color--blue{color:#62aee6}.Tabs--horizontal .Tab--selected.Tab--color--blue{border-bottom-color:#2e93de}.Tabs--vertical .Tab--selected.Tab--color--blue{border-right-color:#2e93de}.Tab--selected.Tab--color--violet{color:#9676db}.Tabs--horizontal .Tab--selected.Tab--color--violet{border-bottom-color:#7349cf}.Tabs--vertical .Tab--selected.Tab--color--violet{border-right-color:#7349cf}.Tab--selected.Tab--color--purple{color:#c274db}.Tabs--horizontal .Tab--selected.Tab--color--purple{border-bottom-color:#ad45d0}.Tabs--vertical .Tab--selected.Tab--color--purple{border-right-color:#ad45d0}.Tab--selected.Tab--color--pink{color:#ea79b9}.Tabs--horizontal .Tab--selected.Tab--color--pink{border-bottom-color:#e34da1}.Tabs--vertical .Tab--selected.Tab--color--pink{border-right-color:#e34da1}.Tab--selected.Tab--color--brown{color:#ca9775}.Tabs--horizontal .Tab--selected.Tab--color--brown{border-bottom-color:#b97447}.Tabs--vertical .Tab--selected.Tab--color--brown{border-right-color:#b97447}.Tab--selected.Tab--color--grey{color:#a3a3a3}.Tabs--horizontal .Tab--selected.Tab--color--grey{border-bottom-color:#848484}.Tabs--vertical .Tab--selected.Tab--color--grey{border-right-color:#848484}.Tab--selected.Tab--color--good{color:#8cd95a}.Tabs--horizontal .Tab--selected.Tab--color--good{border-bottom-color:#68c22d}.Tabs--vertical .Tab--selected.Tab--color--good{border-right-color:#68c22d}.Tab--selected.Tab--color--average{color:#f5b35e}.Tabs--horizontal .Tab--selected.Tab--color--average{border-bottom-color:#f29a29}.Tabs--vertical .Tab--selected.Tab--color--average{border-right-color:#f29a29}.Tab--selected.Tab--color--bad{color:#e76e6e}.Tabs--horizontal .Tab--selected.Tab--color--bad{border-bottom-color:#df3e3e}.Tabs--vertical .Tab--selected.Tab--color--bad{border-right-color:#df3e3e}.Tab--selected.Tab--color--label{color:#a8b4c4}.Tabs--horizontal .Tab--selected.Tab--color--label{border-bottom-color:#8b9bb0}.Tabs--vertical .Tab--selected.Tab--color--label{border-right-color:#8b9bb0}.Input{position:relative;display:inline-block;width:10em;border:.0833333333em solid #88bfff;border:.0833333333em solid rgba(136,191,255,.75);border-radius:.16em;color:#fff;background-color:#0a0a0a;padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;overflow:visible}.Input--fluid{display:block;width:auto}.Input__baseline{display:inline-block;color:transparent}.Input__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:transparent;color:#fff;color:inherit}.Input__input:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.Input--monospace .Input__input{font-family:"Consolas",monospace}.TextArea{position:relative;display:inline-block;border:.0833333333em solid #88bfff;border:.0833333333em solid rgba(136,191,255,.75);border-radius:.16em;background-color:#0a0a0a;margin-right:.1666666667em;line-height:1.4166666667em;box-sizing:border-box;width:100%}.TextArea--fluid{display:block;width:auto;height:auto}.TextArea__textarea{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;height:100%;font-size:1em;line-height:1.4166666667em;min-height:1.4166666667em;margin:0;padding:0 .5em;font-family:inherit;background-color:transparent;color:inherit;box-sizing:border-box;word-wrap:break-word;overflow:hidden}.TextArea__textarea:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.Tooltip{z-index:2;padding:.5em .75em;pointer-events:none;text-align:left;transition:all 150ms ease-out;background-color:#000;color:#fff;box-shadow:.1em .1em 1.25em -0.1em rgba(0,0,0,.5);border-radius:.16em;max-width:20.8333333333em}.ListInput__Section .Section__title{flex-shrink:0}.ListInput__Section .Section__titleText{font-size:1em;white-space:pre-line}.ListInput__Loader{width:100%;position:relative;height:4px}.ListInput__LoaderProgress{position:absolute;transition:background-color 500ms ease-out,width 500ms ease-out;background-color:#3e6189;height:100%}.InputModal__Section .Section__title{flex-shrink:0}.InputModal__Section .Section__titleText{font-size:1em;white-space:pre-line}.InputModal__Loader{width:100%;position:relative;height:4px}.InputModal__LoaderProgress{position:absolute;transition:background-color 500ms ease-out,width 500ms ease-out;background-color:#3e6189;height:100%}.ObjectComponent__Titlebar{border-top-left-radius:12px;border-top-right-radius:12px;white-space:nowrap;-ms-user-select:none;user-select:none}.ObjectComponent__Content{white-space:nowrap;background-color:rgba(0,0,0,.5);-ms-user-select:none;user-select:none}.ObjectComponent__PortPos{position:absolute;top:0;left:0;right:0;bottom:0}.color-stroke-black{stroke:#000 !important}.color-stroke-white{stroke:#d9d9d9 !important}.color-stroke-red{stroke:#bd2020 !important}.color-stroke-orange{stroke:#d95e0c !important}.color-stroke-yellow{stroke:#d9b804 !important}.color-stroke-olive{stroke:#9aad14 !important}.color-stroke-green{stroke:#1b9638 !important}.color-stroke-teal{stroke:#009a93 !important}.color-stroke-blue{stroke:#1c71b1 !important}.color-stroke-violet{stroke:#552dab !important}.color-stroke-purple{stroke:#8b2baa !important}.color-stroke-pink{stroke:#cf2082 !important}.color-stroke-brown{stroke:#8c5836 !important}.color-stroke-grey{stroke:#646464 !important}.color-stroke-good{stroke:#4d9121 !important}.color-stroke-average{stroke:#cd7a0d !important}.color-stroke-bad{stroke:#bd2020 !important}.color-stroke-label{stroke:#657a94 !important}.AlertModal__Message{text-align:center;justify-content:center;white-space:pre-line}.AlertModal__Buttons{justify-content:center}.AlertModal__Loader{width:100%;position:relative;height:4px}.AlertModal__LoaderProgress{position:absolute;transition:background-color 500ms ease-out,width 500ms ease-out;background-color:#3e6189;height:100%}.CameraConsole__left{position:absolute;top:0;bottom:0;left:0;width:18.3333333333em}.CameraConsole__right{position:absolute;top:0;bottom:0;left:18.3333333333em;right:0;background-color:rgba(0,0,0,.33)}.CameraConsole__toolbar{position:absolute;top:0;left:0;right:0;height:2em;line-height:2em;margin:.25em 1em 0}.CameraConsole__toolbarRight{position:absolute;top:0;right:0;height:2em;line-height:2em;margin:.33em .5em 0}.CameraConsole__map{position:absolute;top:2.1666666667em;bottom:0;left:0;right:0;margin:.5em;text-align:center}.CameraConsole__map .NoticeBox{margin-top:calc(50% - 2em)}.Changelog__Button{height:22px}.Changelog__Cell{padding:3px 0}.Changelog__Cell--Icon{width:25px}.CrewManifest--Command .Section__title{border-color:#fbd608}.CrewManifest--Command .Section__titleText{color:#fbd608}.CrewManifest--Security .Section__title{border-color:#db2828}.CrewManifest--Security .Section__titleText{color:#db2828}.CrewManifest--Engineering .Section__title{border-color:#f2711c}.CrewManifest--Engineering .Section__titleText{color:#f2711c}.CrewManifest--Medical .Section__title{border-color:#00b5ad}.CrewManifest--Medical .Section__titleText{color:#00b5ad}.CrewManifest--Misc .Section__title{border-color:#fff}.CrewManifest--Misc .Section__titleText{color:#fff}.CrewManifest--Science .Section__title{border-color:#a333c8}.CrewManifest--Science .Section__titleText{color:#a333c8}.CrewManifest--Supply .Section__title{border-color:#a5673f}.CrewManifest--Supply .Section__titleText{color:#a5673f}.CrewManifest--Service .Section__title{border-color:#20b142}.CrewManifest--Service .Section__titleText{color:#20b142}.CrewManifest--Silicon .Section__title{border-color:#e03997}.CrewManifest--Silicon .Section__titleText{color:#e03997}.CrewManifest__Cell{padding:3px 0}.CrewManifest__Cell--Rank{color:#7e90a7}.CrewManifest__Icons{padding:3px 9px;text-align:right}.CrewManifest__Icon{color:#7e90a7;position:relative}.CrewManifest__Icon:not(:last-child){margin-right:7px}.CrewManifest__Icon--Chevron{padding-right:2px}.CrewManifest__Icon--Command{color:#fbd608}.ExperimentTechwebServer__Web,.ExperimentConfigure__ExperimentPanel{background:#000;border:1px solid #40628a;margin:3px 0}.ExperimentTechwebServer__WebHeader{background:#40628a;padding:2px}.ExperimentTechwebServer__WebName{font-size:18px}.ExperimentTechwebServer__WebContent{padding:4px}.ExperimentTechwebServer__WebContent>.LabeledList{margin:.25rem .25rem .25rem 1rem}.ExperimentConfigure__ExperimentName{font-weight:bold;border-radius:0}.ExperimentConfigure__ExperimentContent{padding:.25rem 1.5rem .25rem .25rem}.ExperimentStage__Indicator{font-weight:bold;margin-right:1rem;text-align:center}.ExperimentStage__StageContainer.complete .ExperimentStage__Description{opacity:.4;text-decoration:line-through}.ExperimentStage__StageContainer{margin-bottom:5px}.ExperimentStage__Table{border-collapse:separate;border-spacing:.25rem .25rem}.ExperimentConfigure__PerformExperiment{text-align:center;padding:.75rem 0}.ExperimentConfigure__ExperimentsContainer{height:100%;display:flex;flex-direction:column}.ExperimentConfigure__ExperimentsContainer>:last-child{flex:1;overflow-y:auto}.ExperimentConfigure__TagContainer{position:absolute;right:0;top:0}.ExperimentConfigure__PerformanceHint *{position:absolute;width:100%;height:100%;right:0;top:0;color:rgba(255,255,255,.5)}.NuclearBomb__displayBox{background-color:#002003;border:.167em inset #e8e4c9;color:#03e017;font-size:2em;font-family:monospace;padding:.25em}.NuclearBomb__Button{outline-width:.25rem !important;border-width:.65rem !important;padding-left:0 !important;padding-right:0 !important}.NuclearBomb__Button--keypad{background-color:#e8e4c9;border-color:#e8e4c9}.NuclearBomb__Button--keypad:hover{background-color:#f7f6ee !important;border-color:#f7f6ee !important}.NuclearBomb__Button--1{background-color:#d3cfb7 !important;border-color:#d3cfb7 !important;color:#a9a692 !important}.NuclearBomb__Button--E{background-color:#d9b804 !important;border-color:#d9b804 !important}.NuclearBomb__Button--E:hover{background-color:#f3d00e !important;border-color:#f3d00e !important}.NuclearBomb__Button--C{background-color:#bd2020 !important;border-color:#bd2020 !important}.NuclearBomb__Button--C:hover{background-color:#d52b2b !important;border-color:#d52b2b !important}.NuclearBomb__NTIcon{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+DQo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmVyc2lvbj0iMS4wIiB2aWV3Qm94PSIwIDAgNDI1IDIwMCIgb3BhY2l0eT0iLjMzIj4NCiAgPHBhdGggZD0ibSAxNzguMDAzOTksMC4wMzg2OSAtNzEuMjAzOTMsMCBhIDYuNzYxMzQyMiw2LjAyNTU0OTUgMCAwIDAgLTYuNzYxMzQsNi4wMjU1NSBsIDAsMTg3Ljg3MTQ3IGEgNi43NjEzNDIyLDYuMDI1NTQ5NSAwIDAgMCA2Ljc2MTM0LDYuMDI1NTQgbCA1My4xMDcyLDAgYSA2Ljc2MTM0MjIsNi4wMjU1NDk1IDAgMCAwIDYuNzYxMzUsLTYuMDI1NTQgbCAwLC0xMDEuNTQ0MDE4IDcyLjIxNjI4LDEwNC42OTkzOTggYSA2Ljc2MTM0MjIsNi4wMjU1NDk1IDAgMCAwIDUuNzYwMTUsMi44NzAxNiBsIDczLjU1NDg3LDAgYSA2Ljc2MTM0MjIsNi4wMjU1NDk1IDAgMCAwIDYuNzYxMzUsLTYuMDI1NTQgbCAwLC0xODcuODcxNDcgYSA2Ljc2MTM0MjIsNi4wMjU1NDk1IDAgMCAwIC02Ljc2MTM1LC02LjAyNTU1IGwgLTU0LjcxNjQ0LDAgYSA2Ljc2MTM0MjIsNi4wMjU1NDk1IDAgMCAwIC02Ljc2MTMzLDYuMDI1NTUgbCAwLDEwMi42MTkzNSBMIDE4My43NjQxMywyLjkwODg2IGEgNi43NjEzNDIyLDYuMDI1NTQ5NSAwIDAgMCAtNS43NjAxNCwtMi44NzAxNyB6IiAvPg0KICA8cGF0aCBkPSJNIDQuODQ0NjMzMywyMi4xMDg3NSBBIDEzLjQxMjAzOSwxMi41MDE4NDIgMCAwIDEgMTMuNDc3NTg4LDAuMDM5MjQgbCA2Ni4xMTgzMTUsMCBhIDUuMzY0ODE1OCw1LjAwMDczNyAwIDAgMSA1LjM2NDgyMyw1LjAwMDczIGwgMCw3OS44NzkzMSB6IiAvPg0KICA8cGF0aCBkPSJtIDQyMC4xNTUzNSwxNzcuODkxMTkgYSAxMy40MTIwMzgsMTIuNTAxODQyIDAgMCAxIC04LjYzMjk1LDIyLjA2OTUxIGwgLTY2LjExODMyLDAgYSA1LjM2NDgxNTIsNS4wMDA3MzcgMCAwIDEgLTUuMzY0ODIsLTUuMDAwNzQgbCAwLC03OS44NzkzMSB6IiAvPg0KPC9zdmc+DQo8IS0tIFRoaXMgd29yayBpcyBsaWNlbnNlZCB1bmRlciBhIENyZWF0aXZlIENvbW1vbnMgQXR0cmlidXRpb24tU2hhcmVBbGlrZSA0LjAgSW50ZXJuYXRpb25hbCBMaWNlbnNlLiAtLT4NCjwhLS0gaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbGljZW5zZXMvYnktc2EvNC4wLyAtLT4NCg==);background-size:70%;background-position:center;background-repeat:no-repeat}.Paper__Stamp{position:absolute;pointer-events:none;user-select:none}.Paper__Page{word-break:break-word;word-wrap:break-word}.Roulette__container{display:flex}.Roulette__board-cell{display:table-cell;padding:0;margin:0;border:1px solid #fff;vertical-align:bottom}.Roulette__board-cell-number{width:35px}.Roulette__board-cell-number--colspan-2{width:71px}.Roulette__board-cell-number--colspan-4{width:143px}.Roulette__board-button{display:table-cell !important;border:none !important;width:inherit;height:40px;padding:0;margin:0;text-align:center;vertical-align:middle;color:#fff !important}.Roulette__board-button--rowspan-3{height:122px}.Roulette__board-button-text{text-align:center;font-size:16px;font-weight:bold}.Roulette__lowertable{margin-top:8px;border-collapse:collapse;border:1px solid #fff;border-spacing:0}.Roulette__lowertable--cell{border:2px solid #fff;padding:0px;margin:0px}.Roulette__lowertable--betscell{vertical-align:top}.Roulette__lowertable--spinresult{text-align:center;font-size:100px;font-weight:bold;vertical-align:middle}.Roulette__lowertable--spinresult-black{background-color:#000}.Roulette__lowertable--spinresult-red{background-color:#db2828}.Roulette__lowertable--spinresult-green{background-color:#20b142}.Roulette__lowertable--spinbutton{margin:0 !important;border:none !important;font-size:50px;line-height:60px !important;text-align:center;font-weight:bold}.Roulette__lowertable--header{width:1%;text-align:center;font-size:16px;font-weight:bold}.Safe__engraving{position:absolute;width:95%;height:96%;left:2.5%;top:2%;border:5px outset #3e4f6a;padding:5px;text-align:center}.Safe__engraving-arrow{color:#35435a}.Safe__engraving-hinge{content:" ";background-color:#191f2a;width:25px;height:40px;position:absolute;right:-15px;margin-top:-20px}.Safe__dialer{margin-bottom:1.25rem}.Safe__dialer .Button{width:80px}.Safe__dialer-right .Button i{z-index:-100}.Safe__dialer-number{color:#bbb;display:inline;background-color:#191f2a;font-size:1.5rem;font-weight:bold;padding:0 .5rem}.Safe__contents{border:10px solid #191f2a;background-color:#0f131a;height:calc(85% + 7.5px);text-align:left;padding:5px}.Safe__help{position:absolute;top:73%;left:10px;width:50%;font-family:"Comic Sans MS",cursive,sans-serif;font-style:italic;color:#000;box-shadow:5px 5px #111;background-image:linear-gradient(to bottom, #b2ae74 0%, #8e8b5d 100%);transform:rotate(-1deg)}.Safe__help:before{content:" ";display:block;width:24px;height:40px;background-image:linear-gradient(to bottom, transparent 0%, #ffffff 100%);box-shadow:1px 1px #111;opacity:.2;position:absolute;top:-30px;left:calc(50% - 12px);transform:rotate(-5deg)}.TachyonArray__ActiveRecord{margin:0 .5em 0 .8em}.TachyonArray__Content{overflow-x:hidden;overflow-y:auto}.TachyonArray__ResearchFooter>*{width:100%;text-align:center}.Techweb__NodeProgress{margin-bottom:1rem}.Techweb__NodeProgress>*:not(:last-child){margin-right:.4rem}.Techweb__DesignIcon{margin-left:.25rem;margin-right:.25rem}.Techweb__OverviewNodes{overflow-y:auto;overflow-x:hidden;padding-right:6px;padding-top:4px}.Techweb__HeaderContent{background-color:#000;padding:6px;border:1px solid #40628a}.Techweb__HeaderContent>*>:not(:last-child){margin-bottom:5px}.Techweb__HeaderSectionTabs{margin-top:8px;background-color:#000;border:1px solid #40628a;padding-left:5px;padding-right:5px}.Techweb__HeaderTabTitle{border-right:1px solid #40628a;padding-right:.5em;margin-right:.5em;font-weight:bold}.Techweb__HeaderSectionTabs input{background-color:rgba(255,255,255,.05)}.Techweb__PointSummary{list-style:none;margin:.4em 0 0 1em;padding:0}.Techweb__SecProtocol{color:#db2828;margin-left:.2em}.Techweb__SecProtocol.engaged{color:#5baa27}.Techweb__DesignModal>:not(:last-child){margin-bottom:.5em}.Techweb__LockedModal>:not(:last-child){margin-bottom:.5em}.Techweb__ExperimentDiscount{color:#7e90a7;margin:.5em 0}.IDCard__NamePlate{margin-left:-6px;margin-right:-6px;margin-top:6px;padding:.5em;border-top:.1666666667em solid #4972a1;font-size:1.1666666667em;font-weight:bold}.TinderMessage_First_Sent,.TinderMessage_Subsequent_Sent,.TinderMessage_First_Received,.TinderMessage_Subsequent_Received{padding:6px;z-index:1;word-break:break-all;max-width:100%}.TinderMessage_First_Sent,.TinderMessage_Subsequent_Sent{text-align:right;background-color:#4d9121}.TinderMessage_First_Sent{border-radius:10px 10px 0px 10px}.TinderMessage_Subsequent_Sent{border-radius:10px 0px 0px 10px}.TinderMessage_First_Received,.TinderMessage_Subsequent_Received{text-align:left;background-color:#cd7a0d}.TinderMessage_First_Received{border-radius:10px 10px 10px 0px}.TinderMessage_Subsequent_Received{border-radius:0px 10px 10px 0px}.ClassicMessage_Sent,.ClassicMessage_Received{word-break:break-all}.ClassicMessage_Sent{color:#4d9121}.ClassicMessage_Received{color:#cd7a0d}.Section--elevator--fire{background-color:#f33;background-color:rgba(255,0,0,.35)}.Section--elevator--fire>.Section__title{padding:.5em;border-bottom:.1666666667em solid red}.Layout,.Layout *{scrollbar-base-color:#1c1c1c;scrollbar-face-color:#3b3b3b;scrollbar-3dlight-color:#252525;scrollbar-highlight-color:#252525;scrollbar-track-color:#1c1c1c;scrollbar-arrow-color:#929292;scrollbar-shadow-color:#3b3b3b}.Layout__content{position:absolute;top:0;bottom:0;left:0;right:0;overflow-x:hidden;overflow-y:hidden}.Layout__content--scrollable{overflow-y:auto}.Layout__content--flexRow{display:flex;flex-flow:row}.Layout__content--flexColumn{display:flex;flex-flow:column}.NtosHeader__left{position:absolute;left:1em}.NtosHeader__right{position:absolute;right:1em}.NtosHeader__icon{margin-top:-0.75em;margin-bottom:-0.5em;vertical-align:middle}.NtosWindow__header{position:absolute;top:0;left:0;right:0;height:2em;line-height:1.928em;background-color:rgba(0,0,0,.5);font-family:Consolas,monospace;font-size:1.1666666667em;user-select:none;-ms-user-select:none}.NtosWindow__content .Layout__content{margin-top:2em;font-family:Consolas,monospace;font-size:1.1666666667em}.TitleBar{background-color:#363636;border-bottom:1px solid #161616;box-shadow:0 2px 2px rgba(0,0,0,.1);box-shadow:0 .1666666667rem .1666666667rem rgba(0,0,0,.1);user-select:none;-ms-user-select:none}.TitleBar__clickable{color:rgba(255,255,255,.5);background-color:#363636;transition:color 250ms ease-out,background-color 250ms ease-out}.TitleBar__clickable:hover{color:#fff;background-color:#c00;transition:color 0ms,background-color 0ms}.TitleBar__title{position:absolute;display:inline-block;top:0;left:46px;left:3.8333333333rem;color:rgba(255,255,255,.75);font-size:14px;font-size:1.1666666667rem;line-height:31px;line-height:2.5833333333rem;white-space:nowrap;pointer-events:none}.TitleBar__buttons{pointer-events:initial;display:inline-block;width:100%;margin-left:10px}.TitleBar__dragZone{position:absolute;top:0;left:0;right:0;height:32px;height:2.6666666667rem}.TitleBar__statusIcon{position:absolute;top:0;left:12px;left:1rem;transition:color .5s;font-size:20px;font-size:1.6666666667rem;line-height:32px !important;line-height:2.6666666667rem !important}.TitleBar__close{position:absolute;top:-1px;right:0;width:45px;width:3.75rem;height:32px;height:2.6666666667rem;font-size:20px;font-size:1.6666666667rem;line-height:31px;line-height:2.5833333333rem;text-align:center}.TitleBar__devBuildIndicator{position:absolute;top:6px;top:.5rem;right:52px;right:4.3333333333rem;min-width:20px;min-width:1.6666666667rem;padding:2px 4px;padding:.1666666667rem .3333333333rem;background-color:rgba(91,170,39,.75);color:#fff;text-align:center}.Window{position:fixed;top:0;bottom:0;left:0;right:0;color:#fff;background-color:#252525;background-image:linear-gradient(to bottom, #2a2a2a 0%, #202020 100%)}.Window__titleBar{position:fixed;z-index:1;top:0;left:0;width:100%;height:32px;height:2.6666666667rem}.Window__rest{position:fixed;top:32px;top:2.6666666667rem;bottom:0;left:0;right:0}.Window__contentPadding{margin:.5rem;height:100%;height:calc(100% - 1.01rem)}.Window__contentPadding:after{height:0}.Layout__content--scrollable .Window__contentPadding:after{display:block;content:"";height:.5rem}.Window__dimmer{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(62,62,62,.25);pointer-events:none}.Window__resizeHandle__se{position:fixed;bottom:0;right:0;width:20px;width:1.6666666667rem;height:20px;height:1.6666666667rem;cursor:se-resize}.Window__resizeHandle__s{position:fixed;bottom:0;left:0;right:0;height:6px;height:.5rem;cursor:s-resize}.Window__resizeHandle__e{position:fixed;top:0;bottom:0;right:0;width:3px;width:.25rem;cursor:e-resize}.Layout__content{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+DQo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmVyc2lvbj0iMS4wIiB2aWV3Qm94PSIwIDAgNDI1IDIwMCIgb3BhY2l0eT0iLjMzIj4NCiAgPHBhdGggZD0ibSAxNzguMDAzOTksMC4wMzg2OSAtNzEuMjAzOTMsMCBhIDYuNzYxMzQyMiw2LjAyNTU0OTUgMCAwIDAgLTYuNzYxMzQsNi4wMjU1NSBsIDAsMTg3Ljg3MTQ3IGEgNi43NjEzNDIyLDYuMDI1NTQ5NSAwIDAgMCA2Ljc2MTM0LDYuMDI1NTQgbCA1My4xMDcyLDAgYSA2Ljc2MTM0MjIsNi4wMjU1NDk1IDAgMCAwIDYuNzYxMzUsLTYuMDI1NTQgbCAwLC0xMDEuNTQ0MDE4IDcyLjIxNjI4LDEwNC42OTkzOTggYSA2Ljc2MTM0MjIsNi4wMjU1NDk1IDAgMCAwIDUuNzYwMTUsMi44NzAxNiBsIDczLjU1NDg3LDAgYSA2Ljc2MTM0MjIsNi4wMjU1NDk1IDAgMCAwIDYuNzYxMzUsLTYuMDI1NTQgbCAwLC0xODcuODcxNDcgYSA2Ljc2MTM0MjIsNi4wMjU1NDk1IDAgMCAwIC02Ljc2MTM1LC02LjAyNTU1IGwgLTU0LjcxNjQ0LDAgYSA2Ljc2MTM0MjIsNi4wMjU1NDk1IDAgMCAwIC02Ljc2MTMzLDYuMDI1NTUgbCAwLDEwMi42MTkzNSBMIDE4My43NjQxMywyLjkwODg2IGEgNi43NjEzNDIyLDYuMDI1NTQ5NSAwIDAgMCAtNS43NjAxNCwtMi44NzAxNyB6IiAvPg0KICA8cGF0aCBkPSJNIDQuODQ0NjMzMywyMi4xMDg3NSBBIDEzLjQxMjAzOSwxMi41MDE4NDIgMCAwIDEgMTMuNDc3NTg4LDAuMDM5MjQgbCA2Ni4xMTgzMTUsMCBhIDUuMzY0ODE1OCw1LjAwMDczNyAwIDAgMSA1LjM2NDgyMyw1LjAwMDczIGwgMCw3OS44NzkzMSB6IiAvPg0KICA8cGF0aCBkPSJtIDQyMC4xNTUzNSwxNzcuODkxMTkgYSAxMy40MTIwMzgsMTIuNTAxODQyIDAgMCAxIC04LjYzMjk1LDIyLjA2OTUxIGwgLTY2LjExODMyLDAgYSA1LjM2NDgxNTIsNS4wMDA3MzcgMCAwIDEgLTUuMzY0ODIsLTUuMDAwNzQgbCAwLC03OS44NzkzMSB6IiAvPg0KPC9zdmc+DQo8IS0tIFRoaXMgd29yayBpcyBsaWNlbnNlZCB1bmRlciBhIENyZWF0aXZlIENvbW1vbnMgQXR0cmlidXRpb24tU2hhcmVBbGlrZSA0LjAgSW50ZXJuYXRpb25hbCBMaWNlbnNlLiAtLT4NCjwhLS0gaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbGljZW5zZXMvYnktc2EvNC4wLyAtLT4NCg==);background-size:70%;background-position:center;background-repeat:no-repeat} +html,body{box-sizing:border-box;height:100%;margin:0;font-size:12px}html{overflow:hidden;cursor:default}body{overflow:auto;font-family:Verdana,Geneva,sans-serif}*,*:before,*:after{box-sizing:inherit}h1,h2,h3,h4,h5,h6{display:block;margin:0;padding:6px 0;padding:.5rem 0}h1{font-size:18px;font-size:1.5rem}h2{font-size:16px;font-size:1.333rem}h3{font-size:14px;font-size:1.167rem}h4{font-size:12px;font-size:1rem}td,th{vertical-align:baseline;text-align:left}.candystripe:nth-child(odd){background-color:rgba(0,0,0,.25)}.color-black{color:#1a1a1a !important}.color-white{color:#fff !important}.color-red{color:#df3e3e !important}.color-orange{color:#f37f33 !important}.color-yellow{color:#fbda21 !important}.color-olive{color:#cbe41c !important}.color-green{color:#25ca4c !important}.color-teal{color:#00d6cc !important}.color-blue{color:#2e93de !important}.color-violet{color:#7349cf !important}.color-purple{color:#ad45d0 !important}.color-pink{color:#e34da1 !important}.color-brown{color:#b97447 !important}.color-grey{color:#848484 !important}.color-good{color:#68c22d !important}.color-average{color:#f29a29 !important}.color-bad{color:#df3e3e !important}.color-label{color:#8b9bb0 !important}.color-bg-black{background-color:#000 !important}.color-bg-white{background-color:#d9d9d9 !important}.color-bg-red{background-color:#bd2020 !important}.color-bg-orange{background-color:#d95e0c !important}.color-bg-yellow{background-color:#d9b804 !important}.color-bg-olive{background-color:#9aad14 !important}.color-bg-green{background-color:#1b9638 !important}.color-bg-teal{background-color:#009a93 !important}.color-bg-blue{background-color:#1c71b1 !important}.color-bg-violet{background-color:#552dab !important}.color-bg-purple{background-color:#8b2baa !important}.color-bg-pink{background-color:#cf2082 !important}.color-bg-brown{background-color:#8c5836 !important}.color-bg-grey{background-color:#646464 !important}.color-bg-good{background-color:#4d9121 !important}.color-bg-average{background-color:#cd7a0d !important}.color-bg-bad{background-color:#bd2020 !important}.color-bg-label{background-color:#657a94 !important}.debug-layout,.debug-layout *:not(g):not(path){color:rgba(255,255,255,.9) !important;background:transparent !important;outline:1px solid rgba(255,255,255,.5) !important;box-shadow:none !important;filter:none !important}.debug-layout:hover,.debug-layout *:not(g):not(path):hover{outline-color:rgba(255,255,255,.8) !important}a:link,a:visited{color:#2185d0}a:hover,a:active{color:#4972a1}.outline-dotted{outline-style:dotted !important}.outline-dashed{outline-style:dashed !important}.outline-solid{outline-style:solid !important}.outline-double{outline-style:double !important}.outline-groove{outline-style:groove !important}.outline-ridge{outline-style:ridge !important}.outline-inset{outline-style:inset !important}.outline-outset{outline-style:outset !important}.outline-color-black{outline:.167rem solid #1a1a1a !important}.outline-color-white{outline:.167rem solid #fff !important}.outline-color-red{outline:.167rem solid #df3e3e !important}.outline-color-orange{outline:.167rem solid #f37f33 !important}.outline-color-yellow{outline:.167rem solid #fbda21 !important}.outline-color-olive{outline:.167rem solid #cbe41c !important}.outline-color-green{outline:.167rem solid #25ca4c !important}.outline-color-teal{outline:.167rem solid #00d6cc !important}.outline-color-blue{outline:.167rem solid #2e93de !important}.outline-color-violet{outline:.167rem solid #7349cf !important}.outline-color-purple{outline:.167rem solid #ad45d0 !important}.outline-color-pink{outline:.167rem solid #e34da1 !important}.outline-color-brown{outline:.167rem solid #b97447 !important}.outline-color-grey{outline:.167rem solid #848484 !important}.outline-color-good{outline:.167rem solid #68c22d !important}.outline-color-average{outline:.167rem solid #f29a29 !important}.outline-color-bad{outline:.167rem solid #df3e3e !important}.outline-color-label{outline:.167rem solid #8b9bb0 !important}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.text-baseline{text-align:baseline}.text-justify{text-align:justify}.text-nowrap{white-space:nowrap}.text-pre{white-space:pre}.text-bold{font-weight:bold}.text-italic{font-style:italic}.text-underline{text-decoration:underline}.BlockQuote{color:#8b9bb0;border-left:.1666666667em solid #8b9bb0;padding-left:.5em;margin-bottom:.5em}.BlockQuote:last-child{margin-bottom:0}.Button{position:relative;display:inline-block;line-height:1.667em;padding:0 .5em;margin-right:.1666666667em;white-space:nowrap;outline:0;border-radius:.16em;margin-bottom:.1666666667em;user-select:none;-ms-user-select:none}.Button:last-child{margin-right:0;margin-bottom:0}.Button .fa,.Button .fas,.Button .far{margin-left:-0.25em;margin-right:-0.25em;min-width:1.333em;text-align:center}.Button--hasContent .fa,.Button--hasContent .fas,.Button--hasContent .far{margin-right:.25em}.Button--hasContent.Button--iconPosition--right .fa,.Button--hasContent.Button--iconPosition--right .fas,.Button--hasContent.Button--iconPosition--right .far{margin-right:0px;margin-left:3px}.Button--ellipsis{overflow:hidden;text-overflow:ellipsis}.Button--fluid{display:block;margin-left:0;margin-right:0}.Button--circular{border-radius:50%}.Button--compact{padding:0 .25em;line-height:1.333em}.Button--color--black{transition:color 50ms,background-color 50ms;background-color:#000;color:#fff}.Button--color--black:hover{transition:color 0ms,background-color 0ms}.Button--color--black:focus{transition:color 100ms,background-color 100ms}.Button--color--black:hover,.Button--color--black:focus{background-color:#131313;color:#fff}.Button--color--white{transition:color 50ms,background-color 50ms;background-color:#d9d9d9;color:#000}.Button--color--white:hover{transition:color 0ms,background-color 0ms}.Button--color--white:focus{transition:color 100ms,background-color 100ms}.Button--color--white:hover,.Button--color--white:focus{background-color:#f8f8f8;color:#000}.Button--color--red{transition:color 50ms,background-color 50ms;background-color:#bd2020;color:#fff}.Button--color--red:hover{transition:color 0ms,background-color 0ms}.Button--color--red:focus{transition:color 100ms,background-color 100ms}.Button--color--red:hover,.Button--color--red:focus{background-color:#dc4848;color:#fff}.Button--color--orange{transition:color 50ms,background-color 50ms;background-color:#d95e0c;color:#fff}.Button--color--orange:hover{transition:color 0ms,background-color 0ms}.Button--color--orange:focus{transition:color 100ms,background-color 100ms}.Button--color--orange:hover,.Button--color--orange:focus{background-color:#f0853f;color:#fff}.Button--color--yellow{transition:color 50ms,background-color 50ms;background-color:#d9b804;color:#000}.Button--color--yellow:hover{transition:color 0ms,background-color 0ms}.Button--color--yellow:focus{transition:color 100ms,background-color 100ms}.Button--color--yellow:hover,.Button--color--yellow:focus{background-color:#f5d72e;color:#000}.Button--color--olive{transition:color 50ms,background-color 50ms;background-color:#9aad14;color:#fff}.Button--color--olive:hover{transition:color 0ms,background-color 0ms}.Button--color--olive:focus{transition:color 100ms,background-color 100ms}.Button--color--olive:hover,.Button--color--olive:focus{background-color:#c4da2b;color:#fff}.Button--color--green{transition:color 50ms,background-color 50ms;background-color:#1b9638;color:#fff}.Button--color--green:hover{transition:color 0ms,background-color 0ms}.Button--color--green:focus{transition:color 100ms,background-color 100ms}.Button--color--green:hover,.Button--color--green:focus{background-color:#32c154;color:#fff}.Button--color--teal{transition:color 50ms,background-color 50ms;background-color:#009a93;color:#fff}.Button--color--teal:hover{transition:color 0ms,background-color 0ms}.Button--color--teal:focus{transition:color 100ms,background-color 100ms}.Button--color--teal:hover,.Button--color--teal:focus{background-color:#13c4bc;color:#fff}.Button--color--blue{transition:color 50ms,background-color 50ms;background-color:#1c71b1;color:#fff}.Button--color--blue:hover{transition:color 0ms,background-color 0ms}.Button--color--blue:focus{transition:color 100ms,background-color 100ms}.Button--color--blue:hover,.Button--color--blue:focus{background-color:#3a95d9;color:#fff}.Button--color--violet{transition:color 50ms,background-color 50ms;background-color:#552dab;color:#fff}.Button--color--violet:hover{transition:color 0ms,background-color 0ms}.Button--color--violet:focus{transition:color 100ms,background-color 100ms}.Button--color--violet:hover,.Button--color--violet:focus{background-color:#7953cc;color:#fff}.Button--color--purple{transition:color 50ms,background-color 50ms;background-color:#8b2baa;color:#fff}.Button--color--purple:hover{transition:color 0ms,background-color 0ms}.Button--color--purple:focus{transition:color 100ms,background-color 100ms}.Button--color--purple:hover,.Button--color--purple:focus{background-color:#ad4fcd;color:#fff}.Button--color--pink{transition:color 50ms,background-color 50ms;background-color:#cf2082;color:#fff}.Button--color--pink:hover{transition:color 0ms,background-color 0ms}.Button--color--pink:focus{transition:color 100ms,background-color 100ms}.Button--color--pink:hover,.Button--color--pink:focus{background-color:#e257a5;color:#fff}.Button--color--brown{transition:color 50ms,background-color 50ms;background-color:#8c5836;color:#fff}.Button--color--brown:hover{transition:color 0ms,background-color 0ms}.Button--color--brown:focus{transition:color 100ms,background-color 100ms}.Button--color--brown:hover,.Button--color--brown:focus{background-color:#b47851;color:#fff}.Button--color--grey{transition:color 50ms,background-color 50ms;background-color:#646464;color:#fff}.Button--color--grey:hover{transition:color 0ms,background-color 0ms}.Button--color--grey:focus{transition:color 100ms,background-color 100ms}.Button--color--grey:hover,.Button--color--grey:focus{background-color:#868686;color:#fff}.Button--color--good{transition:color 50ms,background-color 50ms;background-color:#4d9121;color:#fff}.Button--color--good:hover{transition:color 0ms,background-color 0ms}.Button--color--good:focus{transition:color 100ms,background-color 100ms}.Button--color--good:hover,.Button--color--good:focus{background-color:#6cba39;color:#fff}.Button--color--average{transition:color 50ms,background-color 50ms;background-color:#cd7a0d;color:#fff}.Button--color--average:hover{transition:color 0ms,background-color 0ms}.Button--color--average:focus{transition:color 100ms,background-color 100ms}.Button--color--average:hover,.Button--color--average:focus{background-color:#ed9d35;color:#fff}.Button--color--bad{transition:color 50ms,background-color 50ms;background-color:#bd2020;color:#fff}.Button--color--bad:hover{transition:color 0ms,background-color 0ms}.Button--color--bad:focus{transition:color 100ms,background-color 100ms}.Button--color--bad:hover,.Button--color--bad:focus{background-color:#dc4848;color:#fff}.Button--color--label{transition:color 50ms,background-color 50ms;background-color:#657a94;color:#fff}.Button--color--label:hover{transition:color 0ms,background-color 0ms}.Button--color--label:focus{transition:color 100ms,background-color 100ms}.Button--color--label:hover,.Button--color--label:focus{background-color:#91a1b3;color:#fff}.Button--color--default{transition:color 50ms,background-color 50ms;background-color:#3e6189;color:#fff}.Button--color--default:hover{transition:color 0ms,background-color 0ms}.Button--color--default:focus{transition:color 100ms,background-color 100ms}.Button--color--default:hover,.Button--color--default:focus{background-color:#5c83b0;color:#fff}.Button--color--caution{transition:color 50ms,background-color 50ms;background-color:#d9b804;color:#000}.Button--color--caution:hover{transition:color 0ms,background-color 0ms}.Button--color--caution:focus{transition:color 100ms,background-color 100ms}.Button--color--caution:hover,.Button--color--caution:focus{background-color:#f5d72e;color:#000}.Button--color--danger{transition:color 50ms,background-color 50ms;background-color:#bd2020;color:#fff}.Button--color--danger:hover{transition:color 0ms,background-color 0ms}.Button--color--danger:focus{transition:color 100ms,background-color 100ms}.Button--color--danger:hover,.Button--color--danger:focus{background-color:#dc4848;color:#fff}.Button--color--transparent{transition:color 50ms,background-color 50ms;background-color:#252525;color:#fff;background-color:rgba(37,37,37,0);color:rgba(255,255,255,.5)}.Button--color--transparent:hover{transition:color 0ms,background-color 0ms}.Button--color--transparent:focus{transition:color 100ms,background-color 100ms}.Button--color--transparent:hover,.Button--color--transparent:focus{background-color:#3e3e3e;color:#fff}.Button--disabled{background-color:#999 !important}.Button--selected{transition:color 50ms,background-color 50ms;background-color:#1b9638;color:#fff}.Button--selected:hover{transition:color 0ms,background-color 0ms}.Button--selected:focus{transition:color 100ms,background-color 100ms}.Button--selected:hover,.Button--selected:focus{background-color:#32c154;color:#fff}.ColorBox{display:inline-block;width:1em;height:1em;line-height:1em;text-align:center}.Dimmer{display:flex;justify-content:center;align-items:center;position:absolute;top:0;bottom:0;left:0;right:0;background-color:rgba(0,0,0,.75);z-index:1}.Divider--horizontal{margin:.5em 0}.Divider--horizontal:not(.Divider--hidden){border-top:.1666666667em solid rgba(255,255,255,.1)}.Divider--vertical{height:100%;margin:0 .5em}.Divider--vertical:not(.Divider--hidden){border-left:.1666666667em solid rgba(255,255,255,.1)}.Dropdown{position:relative}.Dropdown__control{position:relative;display:inline-block;font-family:Verdana,sans-serif;font-size:1em;width:8.3333333333em;line-height:1.4166666667em;user-select:none}.Dropdown__arrow-button{float:right;padding-left:.35em;width:1.2em;height:1.8333333333em;border-left:.0833333333em solid #000;border-left:.0833333333em solid rgba(0,0,0,.25)}.Dropdown__menu{position:absolute;overflow-y:auto;z-index:5;width:8.3333333333em;max-height:16.6666666667em;overflow-y:scroll;border-radius:0 0 .1666666667em .1666666667em;color:#fff;background-color:#000;background-color:rgba(0,0,0,.75)}.Dropdown__menu-noscroll{position:absolute;overflow-y:auto;z-index:5;width:8.3333333333em;max-height:16.6666666667em;border-radius:0 0 .1666666667em .1666666667em;color:#fff;background-color:#000;background-color:rgba(0,0,0,.75)}.Dropdown__menuentry{padding:.1666666667em .3333333333em;font-family:Verdana,sans-serif;font-size:1em;line-height:1.4166666667em;transition:background-color 100ms ease-out}.Dropdown__menuentry:hover{background-color:rgba(255,255,255,.2);transition:background-color 0ms}.Dropdown__over{top:auto;bottom:100%}.Dropdown__selected-text{display:inline-block;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;height:1.4166666667em;width:calc(100% - 1.2em)}.Flex{display:-ms-flexbox;display:flex}.Flex--inline{display:inline-flex}.Flex--iefix{display:table !important;width:105%;border-collapse:collapse;border-spacing:0}.Flex--iefix:after{content:"";display:table-cell;width:5%}.Flex--iefix--column{display:table !important;width:100% !important;height:100% !important;border-collapse:collapse;border-spacing:0}.Flex--iefix--column>.Flex__item--iefix{display:table-row !important}.Flex--iefix--column>.Flex__item--iefix--grow{height:100% !important}.Flex__item--iefix{display:table-cell !important;width:1% !important;min-width:99%}.Flex__item--iefix--grow{width:auto !important}.IconStack>.Icon{position:absolute;width:100%;text-align:center}.IconStack{position:relative;display:inline-block;height:1.2em;line-height:2em;vertical-align:middle}.IconStack:after{color:transparent;content:"."}.Input{position:relative;display:inline-block;width:10em;border:.0833333333em solid #88bfff;border:.0833333333em solid rgba(136,191,255,.75);border-radius:.16em;color:#fff;background-color:#0a0a0a;padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;overflow:visible}.Input--fluid{display:block;width:auto}.Input__baseline{display:inline-block;color:transparent}.Input__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:transparent;color:#fff;color:inherit}.Input__input:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.Input--monospace .Input__input{font-family:"Consolas",monospace}.Knob{position:relative;font-size:1rem;width:2.6em;height:2.6em;margin:0 auto;margin-bottom:-0.2em;cursor:n-resize}.Knob:after{content:".";color:transparent;line-height:2.5em}.Knob__circle{position:absolute;top:.1em;bottom:.1em;left:.1em;right:.1em;margin:.3em;background-color:#333;background-image:linear-gradient(to bottom, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 100%);border-radius:50%;box-shadow:0 .05em .5em 0 rgba(0,0,0,.5)}.Knob__cursorBox{position:absolute;top:0;bottom:0;left:0;right:0}.Knob__cursor{position:relative;top:.05em;margin:0 auto;width:.2em;height:.8em;background-color:rgba(255,255,255,.9)}.Knob__popupValue{position:absolute;top:-2rem;right:50%;font-size:1rem;text-align:center;padding:.25rem .5rem;color:#fff;background-color:#000;transform:translateX(50%);white-space:nowrap}.Knob__ring{position:absolute;top:0;bottom:0;left:0;right:0;padding:.1em}.Knob__ringTrackPivot{transform:rotateZ(135deg)}.Knob__ringTrack{fill:transparent;stroke:rgba(255,255,255,.1);stroke-width:8;stroke-linecap:round;stroke-dasharray:235.62}.Knob__ringFillPivot{transform:rotateZ(135deg)}.Knob--bipolar .Knob__ringFillPivot{transform:rotateZ(270deg)}.Knob__ringFill{fill:transparent;stroke:#6a96c9;stroke-width:8;stroke-linecap:round;stroke-dasharray:314.16;transition:stroke 50ms ease-out}.Knob--color--black .Knob__ringFill{stroke:#1a1a1a}.Knob--color--white .Knob__ringFill{stroke:#fff}.Knob--color--red .Knob__ringFill{stroke:#df3e3e}.Knob--color--orange .Knob__ringFill{stroke:#f37f33}.Knob--color--yellow .Knob__ringFill{stroke:#fbda21}.Knob--color--olive .Knob__ringFill{stroke:#cbe41c}.Knob--color--green .Knob__ringFill{stroke:#25ca4c}.Knob--color--teal .Knob__ringFill{stroke:#00d6cc}.Knob--color--blue .Knob__ringFill{stroke:#2e93de}.Knob--color--violet .Knob__ringFill{stroke:#7349cf}.Knob--color--purple .Knob__ringFill{stroke:#ad45d0}.Knob--color--pink .Knob__ringFill{stroke:#e34da1}.Knob--color--brown .Knob__ringFill{stroke:#b97447}.Knob--color--grey .Knob__ringFill{stroke:#848484}.Knob--color--good .Knob__ringFill{stroke:#68c22d}.Knob--color--average .Knob__ringFill{stroke:#f29a29}.Knob--color--bad .Knob__ringFill{stroke:#df3e3e}.Knob--color--label .Knob__ringFill{stroke:#8b9bb0}.LabeledList{display:table;width:100%;width:calc(100% + 1em);border-collapse:collapse;border-spacing:0;margin:-0.25em -0.5em;margin-bottom:0;padding:0}.LabeledList__row{display:table-row}.LabeledList__row:last-child .LabeledList__cell{padding-bottom:0}.LabeledList__cell{display:table-cell;margin:0;padding:.25em .5em;border:0;text-align:left;vertical-align:baseline}.LabeledList__label{width:1%;white-space:nowrap;min-width:5em}.LabeledList__buttons{width:.1%;white-space:nowrap;text-align:right;padding-top:.0833333333em;padding-bottom:0}.LabeledList__breakContents{word-break:break-all;word-wrap:break-word}.Modal{background-color:#252525;max-width:calc(100% - 1rem);padding:1rem}.NanoMap__container{overflow:hiddden;width:100%;z-index:1}.NanoMap__marker{z-index:10;padding:0px;margin:0px}.NanoMap__zoomer{z-index:20;background-color:rgba(0,0,0,.33);position:absolute;top:30px;left:0;padding:.5rem;width:30%}.NoticeBox{padding:.33em .5em;margin-bottom:.5em;box-shadow:none;font-weight:bold;font-style:italic;color:#000;background-color:#bb9b68;background-image:repeating-linear-gradient(-45deg, transparent, transparent 0.8333333333em, rgba(0, 0, 0, 0.1) 0.8333333333em, rgba(0, 0, 0, 0.1) 1.6666666667em)}.NoticeBox--color--black{color:#fff;background-color:#000}.NoticeBox--color--white{color:#000;background-color:#b3b3b3}.NoticeBox--color--red{color:#fff;background-color:#701f1f}.NoticeBox--color--orange{color:#fff;background-color:#854114}.NoticeBox--color--yellow{color:#000;background-color:#83710d}.NoticeBox--color--olive{color:#000;background-color:#576015}.NoticeBox--color--green{color:#fff;background-color:#174e24}.NoticeBox--color--teal{color:#fff;background-color:#064845}.NoticeBox--color--blue{color:#fff;background-color:#1b4565}.NoticeBox--color--violet{color:#fff;background-color:#3b2864}.NoticeBox--color--purple{color:#fff;background-color:#542663}.NoticeBox--color--pink{color:#fff;background-color:#802257}.NoticeBox--color--brown{color:#fff;background-color:#4c3729}.NoticeBox--color--grey{color:#fff;background-color:#3e3e3e}.NoticeBox--color--good{color:#fff;background-color:#2e4b1a}.NoticeBox--color--average{color:#fff;background-color:#7b4e13}.NoticeBox--color--bad{color:#fff;background-color:#701f1f}.NoticeBox--color--label{color:#fff;background-color:#53565a}.NoticeBox--type--info{color:#fff;background-color:#235982}.NoticeBox--type--success{color:#fff;background-color:#1e662f}.NoticeBox--type--warning{color:#fff;background-color:#a95219}.NoticeBox--type--danger{color:#fff;background-color:#8f2828}.Input{position:relative;display:inline-block;width:10em;border:.0833333333em solid #88bfff;border:.0833333333em solid rgba(136,191,255,.75);border-radius:.16em;color:#fff;background-color:#0a0a0a;padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;overflow:visible}.Input--fluid{display:block;width:auto}.Input__baseline{display:inline-block;color:transparent}.Input__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:transparent;color:#fff;color:inherit}.Input__input:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.Input--monospace .Input__input{font-family:"Consolas",monospace}.NumberInput{position:relative;display:inline-block;border:.0833333333em solid #88bfff;border:.0833333333em solid rgba(136,191,255,.75);border-radius:.16em;color:#88bfff;background-color:#0a0a0a;padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;text-align:right;overflow:visible;cursor:n-resize}.NumberInput--fluid{display:block}.NumberInput__content{margin-left:.5em}.NumberInput__barContainer{position:absolute;top:.1666666667em;bottom:.1666666667em;left:.1666666667em}.NumberInput__bar{position:absolute;bottom:0;left:0;width:.25em;box-sizing:border-box;border-bottom:.0833333333em solid #88bfff;background-color:#88bfff}.NumberInput__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:#0a0a0a;color:#fff;text-align:right}.ProgressBar{display:inline-block;position:relative;width:100%;padding:0 .5em;border-radius:.16em;background-color:rgba(0,0,0,0);transition:border-color 900ms ease-out}.ProgressBar__fill{position:absolute;top:-0.5px;left:0px;bottom:-0.5px}.ProgressBar__fill--animated{transition:background-color 900ms ease-out,width 900ms ease-out}.ProgressBar__content{position:relative;line-height:1.4166666667em;width:100%;text-align:right}.ProgressBar--color--default{border:.0833333333em solid #3e6189}.ProgressBar--color--default .ProgressBar__fill{background-color:#3e6189}.ProgressBar--color--black{border:.0833333333em solid #000 !important}.ProgressBar--color--black .ProgressBar__fill{background-color:#000}.ProgressBar--color--white{border:.0833333333em solid #d9d9d9 !important}.ProgressBar--color--white .ProgressBar__fill{background-color:#d9d9d9}.ProgressBar--color--red{border:.0833333333em solid #bd2020 !important}.ProgressBar--color--red .ProgressBar__fill{background-color:#bd2020}.ProgressBar--color--orange{border:.0833333333em solid #d95e0c !important}.ProgressBar--color--orange .ProgressBar__fill{background-color:#d95e0c}.ProgressBar--color--yellow{border:.0833333333em solid #d9b804 !important}.ProgressBar--color--yellow .ProgressBar__fill{background-color:#d9b804}.ProgressBar--color--olive{border:.0833333333em solid #9aad14 !important}.ProgressBar--color--olive .ProgressBar__fill{background-color:#9aad14}.ProgressBar--color--green{border:.0833333333em solid #1b9638 !important}.ProgressBar--color--green .ProgressBar__fill{background-color:#1b9638}.ProgressBar--color--teal{border:.0833333333em solid #009a93 !important}.ProgressBar--color--teal .ProgressBar__fill{background-color:#009a93}.ProgressBar--color--blue{border:.0833333333em solid #1c71b1 !important}.ProgressBar--color--blue .ProgressBar__fill{background-color:#1c71b1}.ProgressBar--color--violet{border:.0833333333em solid #552dab !important}.ProgressBar--color--violet .ProgressBar__fill{background-color:#552dab}.ProgressBar--color--purple{border:.0833333333em solid #8b2baa !important}.ProgressBar--color--purple .ProgressBar__fill{background-color:#8b2baa}.ProgressBar--color--pink{border:.0833333333em solid #cf2082 !important}.ProgressBar--color--pink .ProgressBar__fill{background-color:#cf2082}.ProgressBar--color--brown{border:.0833333333em solid #8c5836 !important}.ProgressBar--color--brown .ProgressBar__fill{background-color:#8c5836}.ProgressBar--color--grey{border:.0833333333em solid #646464 !important}.ProgressBar--color--grey .ProgressBar__fill{background-color:#646464}.ProgressBar--color--good{border:.0833333333em solid #4d9121 !important}.ProgressBar--color--good .ProgressBar__fill{background-color:#4d9121}.ProgressBar--color--average{border:.0833333333em solid #cd7a0d !important}.ProgressBar--color--average .ProgressBar__fill{background-color:#cd7a0d}.ProgressBar--color--bad{border:.0833333333em solid #bd2020 !important}.ProgressBar--color--bad .ProgressBar__fill{background-color:#bd2020}.ProgressBar--color--label{border:.0833333333em solid #657a94 !important}.ProgressBar--color--label .ProgressBar__fill{background-color:#657a94}.RoundGauge{font-size:1rem;width:2.6em;height:1.3em;margin:0 auto;margin-bottom:.2em}.RoundGauge__ringTrack{fill:transparent;stroke:rgba(255,255,255,.1);stroke-width:10;stroke-dasharray:157.08;stroke-dashoffset:157.08}.RoundGauge__ringFill{fill:transparent;stroke:#6a96c9;stroke-width:10;stroke-dasharray:314.16;transition:stroke 50ms ease-out}.RoundGauge__needle,.RoundGauge__ringFill{transition:transform 50ms ease-in-out}.RoundGauge__needleLine,.RoundGauge__needleMiddle{fill:#db2828}.RoundGauge__alert{fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;fill:rgba(255,255,255,.1)}.RoundGauge__alert.max{fill:#db2828}.RoundGauge--color--black.RoundGauge__ringFill{stroke:#1a1a1a}.RoundGauge--color--white.RoundGauge__ringFill{stroke:#fff}.RoundGauge--color--red.RoundGauge__ringFill{stroke:#df3e3e}.RoundGauge--color--orange.RoundGauge__ringFill{stroke:#f37f33}.RoundGauge--color--yellow.RoundGauge__ringFill{stroke:#fbda21}.RoundGauge--color--olive.RoundGauge__ringFill{stroke:#cbe41c}.RoundGauge--color--green.RoundGauge__ringFill{stroke:#25ca4c}.RoundGauge--color--teal.RoundGauge__ringFill{stroke:#00d6cc}.RoundGauge--color--blue.RoundGauge__ringFill{stroke:#2e93de}.RoundGauge--color--violet.RoundGauge__ringFill{stroke:#7349cf}.RoundGauge--color--purple.RoundGauge__ringFill{stroke:#ad45d0}.RoundGauge--color--pink.RoundGauge__ringFill{stroke:#e34da1}.RoundGauge--color--brown.RoundGauge__ringFill{stroke:#b97447}.RoundGauge--color--grey.RoundGauge__ringFill{stroke:#848484}.RoundGauge--color--good.RoundGauge__ringFill{stroke:#68c22d}.RoundGauge--color--average.RoundGauge__ringFill{stroke:#f29a29}.RoundGauge--color--bad.RoundGauge__ringFill{stroke:#df3e3e}.RoundGauge--color--label.RoundGauge__ringFill{stroke:#8b9bb0}.RoundGauge__alert--black{fill:#1a1a1a;transition:opacity .6s cubic-bezier(0.25, 1, 0.5, 1);animation:RoundGauge__alertAnim 1s cubic-bezier(0.34, 1.56, 0.64, 1) infinite}.RoundGauge__alert--white{fill:#fff;transition:opacity .6s cubic-bezier(0.25, 1, 0.5, 1);animation:RoundGauge__alertAnim 1s cubic-bezier(0.34, 1.56, 0.64, 1) infinite}.RoundGauge__alert--red{fill:#df3e3e;transition:opacity .6s cubic-bezier(0.25, 1, 0.5, 1);animation:RoundGauge__alertAnim 1s cubic-bezier(0.34, 1.56, 0.64, 1) infinite}.RoundGauge__alert--orange{fill:#f37f33;transition:opacity .6s cubic-bezier(0.25, 1, 0.5, 1);animation:RoundGauge__alertAnim 1s cubic-bezier(0.34, 1.56, 0.64, 1) infinite}.RoundGauge__alert--yellow{fill:#fbda21;transition:opacity .6s cubic-bezier(0.25, 1, 0.5, 1);animation:RoundGauge__alertAnim 1s cubic-bezier(0.34, 1.56, 0.64, 1) infinite}.RoundGauge__alert--olive{fill:#cbe41c;transition:opacity .6s cubic-bezier(0.25, 1, 0.5, 1);animation:RoundGauge__alertAnim 1s cubic-bezier(0.34, 1.56, 0.64, 1) infinite}.RoundGauge__alert--green{fill:#25ca4c;transition:opacity .6s cubic-bezier(0.25, 1, 0.5, 1);animation:RoundGauge__alertAnim 1s cubic-bezier(0.34, 1.56, 0.64, 1) infinite}.RoundGauge__alert--teal{fill:#00d6cc;transition:opacity .6s cubic-bezier(0.25, 1, 0.5, 1);animation:RoundGauge__alertAnim 1s cubic-bezier(0.34, 1.56, 0.64, 1) infinite}.RoundGauge__alert--blue{fill:#2e93de;transition:opacity .6s cubic-bezier(0.25, 1, 0.5, 1);animation:RoundGauge__alertAnim 1s cubic-bezier(0.34, 1.56, 0.64, 1) infinite}.RoundGauge__alert--violet{fill:#7349cf;transition:opacity .6s cubic-bezier(0.25, 1, 0.5, 1);animation:RoundGauge__alertAnim 1s cubic-bezier(0.34, 1.56, 0.64, 1) infinite}.RoundGauge__alert--purple{fill:#ad45d0;transition:opacity .6s cubic-bezier(0.25, 1, 0.5, 1);animation:RoundGauge__alertAnim 1s cubic-bezier(0.34, 1.56, 0.64, 1) infinite}.RoundGauge__alert--pink{fill:#e34da1;transition:opacity .6s cubic-bezier(0.25, 1, 0.5, 1);animation:RoundGauge__alertAnim 1s cubic-bezier(0.34, 1.56, 0.64, 1) infinite}.RoundGauge__alert--brown{fill:#b97447;transition:opacity .6s cubic-bezier(0.25, 1, 0.5, 1);animation:RoundGauge__alertAnim 1s cubic-bezier(0.34, 1.56, 0.64, 1) infinite}.RoundGauge__alert--grey{fill:#848484;transition:opacity .6s cubic-bezier(0.25, 1, 0.5, 1);animation:RoundGauge__alertAnim 1s cubic-bezier(0.34, 1.56, 0.64, 1) infinite}.RoundGauge__alert--good{fill:#68c22d;transition:opacity .6s cubic-bezier(0.25, 1, 0.5, 1);animation:RoundGauge__alertAnim 1s cubic-bezier(0.34, 1.56, 0.64, 1) infinite}.RoundGauge__alert--average{fill:#f29a29;transition:opacity .6s cubic-bezier(0.25, 1, 0.5, 1);animation:RoundGauge__alertAnim 1s cubic-bezier(0.34, 1.56, 0.64, 1) infinite}.RoundGauge__alert--bad{fill:#df3e3e;transition:opacity .6s cubic-bezier(0.25, 1, 0.5, 1);animation:RoundGauge__alertAnim 1s cubic-bezier(0.34, 1.56, 0.64, 1) infinite}.RoundGauge__alert--label{fill:#8b9bb0;transition:opacity .6s cubic-bezier(0.25, 1, 0.5, 1);animation:RoundGauge__alertAnim 1s cubic-bezier(0.34, 1.56, 0.64, 1) infinite}@keyframes RoundGauge__alertAnim{0%{opacity:.1}50%{opacity:1}100%{opacity:.1}}.Section{position:relative;margin-bottom:.5em;background-color:#191919;background-color:rgba(0,0,0,.33);box-sizing:border-box}.Section:last-child{margin-bottom:0}.Section__title{position:relative;padding:.5em;border-bottom:.1666666667em solid #4972a1}.Section__titleText{font-size:1.1666666667em;font-weight:bold;color:#fff}.Section__buttons{position:absolute;display:inline-block;right:.5em;margin-top:-0.0833333333em}.Section__rest{position:relative}.Section__content{padding:.66em .5em}.Section--fitted>.Section__rest>.Section__content{padding:0}.Section--fill{display:flex;flex-direction:column;height:100%}.Section--fill>.Section__rest{flex-grow:1}.Section--fill>.Section__rest>.Section__content{height:100%}.Section--fill.Section--scrollable>.Section__rest>.Section__content{position:absolute;top:0;left:0;right:0;bottom:0}.Section--fill.Section--iefix{display:table !important;width:100% !important;height:100% !important;border-collapse:collapse;border-spacing:0}.Section--fill.Section--iefix>.Section__rest{display:table-row !important;height:100% !important}.Section--scrollable{overflow-x:hidden;overflow-y:hidden}.Section--scrollable>.Section__rest>.Section__content{overflow-y:auto;overflow-x:hidden}.Section .Section{background-color:transparent;margin-left:-0.5em;margin-right:-0.5em}.Section .Section:first-child{margin-top:-0.5em}.Section .Section .Section__titleText{font-size:1.0833333333em}.Section .Section .Section .Section__titleText{font-size:1em}.Section--flex{display:flex;flex-flow:column}.Section--flex .Section__content{overflow:auto;flex-grow:1}.Section__content--noTopPadding{padding-top:0}.Section__content--stretchContents{height:calc(100% - 3rem)}.Slider{cursor:e-resize}.Slider__cursorOffset{position:absolute;top:0;left:0;bottom:0;transition:none !important}.Slider__cursor{position:absolute;top:0;right:-0.0833333333em;bottom:0;width:0;border-left:.1666666667em solid #fff}.Slider__pointer{position:absolute;right:-0.4166666667em;bottom:-0.3333333333em;width:0;height:0;border-left:.4166666667em solid transparent;border-right:.4166666667em solid transparent;border-bottom:.4166666667em solid #fff}.Slider__popupValue{position:absolute;right:0;top:-2rem;font-size:1rem;padding:.25rem .5rem;color:#fff;background-color:#000;transform:translateX(50%);white-space:nowrap}.Divider--horizontal{margin:.5em 0}.Divider--horizontal:not(.Divider--hidden){border-top:.1666666667em solid rgba(255,255,255,.1)}.Divider--vertical{height:100%;margin:0 .5em}.Divider--vertical:not(.Divider--hidden){border-left:.1666666667em solid rgba(255,255,255,.1)}.Stack--fill{height:100%}.Stack--horizontal>.Stack__item{margin-left:.5em}.Stack--horizontal>.Stack__item:first-child{margin-left:0}.Stack--vertical>.Stack__item{margin-top:.5em}.Stack--vertical>.Stack__item:first-child{margin-top:0}.Stack--horizontal>.Stack__divider:not(.Stack__divider--hidden){border-left:.1666666667em solid rgba(255,255,255,.1)}.Stack--vertical>.Stack__divider:not(.Stack__divider--hidden){border-top:.1666666667em solid rgba(255,255,255,.1)}.Table{display:table;width:100%;border-collapse:collapse;border-spacing:0;margin:0}.Table--collapsing{width:auto}.Table__row{display:table-row}.Table__cell{display:table-cell;padding:0 .25em}.Table__cell:first-child{padding-left:0}.Table__cell:last-child{padding-right:0}.Table__row--header .Table__cell,.Table__cell--header{font-weight:bold;padding-bottom:.5em}.Table__cell--collapsing{width:1%;white-space:nowrap}.Tabs{display:flex;align-items:stretch;overflow:hidden;background-color:rgba(0,0,0,.33)}.Tabs--fill{height:100%}.Section .Tabs{background-color:transparent}.Section:not(.Section--fitted) .Tabs{margin:0 -0.5em .5em}.Section:not(.Section--fitted) .Tabs:first-child{margin-top:-0.5em}.Tabs--vertical{flex-direction:column;padding:.25em 0 .25em .25em}.Tabs--horizontal{margin-bottom:.5em;padding:.25em .25em 0 .25em}.Tabs--horizontal:last-child{margin-bottom:0}.Tabs__Tab{flex-grow:0}.Tabs--fluid .Tabs__Tab{flex-grow:1}.Tab{display:flex;align-items:center;justify-content:space-between;background-color:transparent;color:rgba(255,255,255,.5);min-height:2.25em;min-width:4em;transition:background-color 50ms ease-out}.Tab:not(.Tab--selected):hover{background-color:rgba(255,255,255,.075);transition:background-color 0}.Tab--selected{background-color:rgba(255,255,255,.125);color:#dfe7f0}.Tab__text{flex-grow:1;margin:0 .5em}.Tab__left{min-width:1.5em;text-align:center;margin-left:.25em}.Tab__right{min-width:1.5em;text-align:center;margin-right:.25em}.Tabs--horizontal .Tab{border-top:.1666666667em solid transparent;border-bottom:.1666666667em solid transparent;border-top-left-radius:.25em;border-top-right-radius:.25em}.Tabs--horizontal .Tab--selected{border-bottom:.1666666667em solid #d4dfec}.Tabs--vertical .Tab{min-height:2em;border-left:.1666666667em solid transparent;border-right:.1666666667em solid transparent;border-top-left-radius:.25em;border-bottom-left-radius:.25em}.Tabs--vertical .Tab--selected{border-right:.1666666667em solid #d4dfec}.Tab--selected.Tab--color--black{color:#535353}.Tabs--horizontal .Tab--selected.Tab--color--black{border-bottom-color:#1a1a1a}.Tabs--vertical .Tab--selected.Tab--color--black{border-right-color:#1a1a1a}.Tab--selected.Tab--color--white{color:#fff}.Tabs--horizontal .Tab--selected.Tab--color--white{border-bottom-color:#fff}.Tabs--vertical .Tab--selected.Tab--color--white{border-right-color:#fff}.Tab--selected.Tab--color--red{color:#e76e6e}.Tabs--horizontal .Tab--selected.Tab--color--red{border-bottom-color:#df3e3e}.Tabs--vertical .Tab--selected.Tab--color--red{border-right-color:#df3e3e}.Tab--selected.Tab--color--orange{color:#f69f66}.Tabs--horizontal .Tab--selected.Tab--color--orange{border-bottom-color:#f37f33}.Tabs--vertical .Tab--selected.Tab--color--orange{border-right-color:#f37f33}.Tab--selected.Tab--color--yellow{color:#fce358}.Tabs--horizontal .Tab--selected.Tab--color--yellow{border-bottom-color:#fbda21}.Tabs--vertical .Tab--selected.Tab--color--yellow{border-right-color:#fbda21}.Tab--selected.Tab--color--olive{color:#d8eb55}.Tabs--horizontal .Tab--selected.Tab--color--olive{border-bottom-color:#cbe41c}.Tabs--vertical .Tab--selected.Tab--color--olive{border-right-color:#cbe41c}.Tab--selected.Tab--color--green{color:#53e074}.Tabs--horizontal .Tab--selected.Tab--color--green{border-bottom-color:#25ca4c}.Tabs--vertical .Tab--selected.Tab--color--green{border-right-color:#25ca4c}.Tab--selected.Tab--color--teal{color:#21fff5}.Tabs--horizontal .Tab--selected.Tab--color--teal{border-bottom-color:#00d6cc}.Tabs--vertical .Tab--selected.Tab--color--teal{border-right-color:#00d6cc}.Tab--selected.Tab--color--blue{color:#62aee6}.Tabs--horizontal .Tab--selected.Tab--color--blue{border-bottom-color:#2e93de}.Tabs--vertical .Tab--selected.Tab--color--blue{border-right-color:#2e93de}.Tab--selected.Tab--color--violet{color:#9676db}.Tabs--horizontal .Tab--selected.Tab--color--violet{border-bottom-color:#7349cf}.Tabs--vertical .Tab--selected.Tab--color--violet{border-right-color:#7349cf}.Tab--selected.Tab--color--purple{color:#c274db}.Tabs--horizontal .Tab--selected.Tab--color--purple{border-bottom-color:#ad45d0}.Tabs--vertical .Tab--selected.Tab--color--purple{border-right-color:#ad45d0}.Tab--selected.Tab--color--pink{color:#ea79b9}.Tabs--horizontal .Tab--selected.Tab--color--pink{border-bottom-color:#e34da1}.Tabs--vertical .Tab--selected.Tab--color--pink{border-right-color:#e34da1}.Tab--selected.Tab--color--brown{color:#ca9775}.Tabs--horizontal .Tab--selected.Tab--color--brown{border-bottom-color:#b97447}.Tabs--vertical .Tab--selected.Tab--color--brown{border-right-color:#b97447}.Tab--selected.Tab--color--grey{color:#a3a3a3}.Tabs--horizontal .Tab--selected.Tab--color--grey{border-bottom-color:#848484}.Tabs--vertical .Tab--selected.Tab--color--grey{border-right-color:#848484}.Tab--selected.Tab--color--good{color:#8cd95a}.Tabs--horizontal .Tab--selected.Tab--color--good{border-bottom-color:#68c22d}.Tabs--vertical .Tab--selected.Tab--color--good{border-right-color:#68c22d}.Tab--selected.Tab--color--average{color:#f5b35e}.Tabs--horizontal .Tab--selected.Tab--color--average{border-bottom-color:#f29a29}.Tabs--vertical .Tab--selected.Tab--color--average{border-right-color:#f29a29}.Tab--selected.Tab--color--bad{color:#e76e6e}.Tabs--horizontal .Tab--selected.Tab--color--bad{border-bottom-color:#df3e3e}.Tabs--vertical .Tab--selected.Tab--color--bad{border-right-color:#df3e3e}.Tab--selected.Tab--color--label{color:#a8b4c4}.Tabs--horizontal .Tab--selected.Tab--color--label{border-bottom-color:#8b9bb0}.Tabs--vertical .Tab--selected.Tab--color--label{border-right-color:#8b9bb0}.Input{position:relative;display:inline-block;width:10em;border:.0833333333em solid #88bfff;border:.0833333333em solid rgba(136,191,255,.75);border-radius:.16em;color:#fff;background-color:#0a0a0a;padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;overflow:visible}.Input--fluid{display:block;width:auto}.Input__baseline{display:inline-block;color:transparent}.Input__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:transparent;color:#fff;color:inherit}.Input__input:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.Input--monospace .Input__input{font-family:"Consolas",monospace}.TextArea{position:relative;display:inline-block;border:.0833333333em solid #88bfff;border:.0833333333em solid rgba(136,191,255,.75);border-radius:.16em;background-color:#0a0a0a;margin-right:.1666666667em;line-height:1.4166666667em;box-sizing:border-box;width:100%}.TextArea--fluid{display:block;width:auto;height:auto}.TextArea__textarea{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;height:100%;font-size:1em;line-height:1.4166666667em;min-height:1.4166666667em;margin:0;padding:0 .5em;font-family:inherit;background-color:transparent;color:inherit;box-sizing:border-box;word-wrap:break-word;overflow:hidden}.TextArea__textarea:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.Tooltip{z-index:2;padding:.5em .75em;pointer-events:none;text-align:left;transition:all 150ms ease-out;background-color:#000;color:#fff;box-shadow:.1em .1em 1.25em -0.1em rgba(0,0,0,.5);border-radius:.16em;max-width:20.8333333333em}.ListInput__Section .Section__title{flex-shrink:0}.ListInput__Section .Section__titleText{font-size:1em;white-space:pre-line}.ListInput__Loader{width:100%;position:relative;height:4px}.ListInput__LoaderProgress{position:absolute;transition:background-color 500ms ease-out,width 500ms ease-out;background-color:#3e6189;height:100%}.InputModal__Section .Section__title{flex-shrink:0}.InputModal__Section .Section__titleText{font-size:1em;white-space:pre-line}.InputModal__Loader{width:100%;position:relative;height:4px}.InputModal__LoaderProgress{position:absolute;transition:background-color 500ms ease-out,width 500ms ease-out;background-color:#3e6189;height:100%}.ObjectComponent__Titlebar{border-top-left-radius:12px;border-top-right-radius:12px;white-space:nowrap;-ms-user-select:none;user-select:none}.ObjectComponent__Content{white-space:nowrap;background-color:rgba(0,0,0,.5);-ms-user-select:none;user-select:none}.ObjectComponent__PortPos{position:absolute;top:0;left:0;right:0;bottom:0}.color-stroke-black{stroke:#000 !important}.color-stroke-white{stroke:#d9d9d9 !important}.color-stroke-red{stroke:#bd2020 !important}.color-stroke-orange{stroke:#d95e0c !important}.color-stroke-yellow{stroke:#d9b804 !important}.color-stroke-olive{stroke:#9aad14 !important}.color-stroke-green{stroke:#1b9638 !important}.color-stroke-teal{stroke:#009a93 !important}.color-stroke-blue{stroke:#1c71b1 !important}.color-stroke-violet{stroke:#552dab !important}.color-stroke-purple{stroke:#8b2baa !important}.color-stroke-pink{stroke:#cf2082 !important}.color-stroke-brown{stroke:#8c5836 !important}.color-stroke-grey{stroke:#646464 !important}.color-stroke-good{stroke:#4d9121 !important}.color-stroke-average{stroke:#cd7a0d !important}.color-stroke-bad{stroke:#bd2020 !important}.color-stroke-label{stroke:#657a94 !important}.AlertModal__Message{text-align:center;justify-content:center;white-space:pre-line}.AlertModal__Buttons{justify-content:center}.AlertModal__Loader{width:100%;position:relative;height:4px}.AlertModal__LoaderProgress{position:absolute;transition:background-color 500ms ease-out,width 500ms ease-out;background-color:#3e6189;height:100%}.CameraConsole__left{position:absolute;top:0;bottom:0;left:0;width:18.3333333333em}.CameraConsole__right{position:absolute;top:0;bottom:0;left:18.3333333333em;right:0;background-color:rgba(0,0,0,.33)}.CameraConsole__toolbar{position:absolute;top:0;left:0;right:0;height:2em;line-height:2em;margin:.25em 1em 0}.CameraConsole__toolbarRight{position:absolute;top:0;right:0;height:2em;line-height:2em;margin:.33em .5em 0}.CameraConsole__map{position:absolute;top:2.1666666667em;bottom:0;left:0;right:0;margin:.5em;text-align:center}.CameraConsole__map .NoticeBox{margin-top:calc(50% - 2em)}.Changelog__Button{height:22px}.Changelog__Cell{padding:3px 0}.Changelog__Cell--Icon{width:25px}.CrewManifest--Command .Section__title{border-color:#fbd608}.CrewManifest--Command .Section__titleText{color:#fbd608}.CrewManifest--Security .Section__title{border-color:#db2828}.CrewManifest--Security .Section__titleText{color:#db2828}.CrewManifest--Engineering .Section__title{border-color:#f2711c}.CrewManifest--Engineering .Section__titleText{color:#f2711c}.CrewManifest--Medical .Section__title{border-color:#00b5ad}.CrewManifest--Medical .Section__titleText{color:#00b5ad}.CrewManifest--Misc .Section__title{border-color:#fff}.CrewManifest--Misc .Section__titleText{color:#fff}.CrewManifest--Science .Section__title{border-color:#a333c8}.CrewManifest--Science .Section__titleText{color:#a333c8}.CrewManifest--Supply .Section__title{border-color:#a5673f}.CrewManifest--Supply .Section__titleText{color:#a5673f}.CrewManifest--Service .Section__title{border-color:#20b142}.CrewManifest--Service .Section__titleText{color:#20b142}.CrewManifest--Silicon .Section__title{border-color:#e03997}.CrewManifest--Silicon .Section__titleText{color:#e03997}.CrewManifest__Cell{padding:3px 0}.CrewManifest__Cell--Rank{color:#7e90a7}.CrewManifest__Icons{padding:3px 9px;text-align:right}.CrewManifest__Icon{color:#7e90a7;position:relative}.CrewManifest__Icon:not(:last-child){margin-right:7px}.CrewManifest__Icon--Chevron{padding-right:2px}.CrewManifest__Icon--Command{color:#fbd608}.ExperimentTechwebServer__Web,.ExperimentConfigure__ExperimentPanel{background:#000;border:1px solid #40628a;margin:3px 0}.ExperimentTechwebServer__WebHeader{background:#40628a;padding:2px}.ExperimentTechwebServer__WebName{font-size:18px}.ExperimentTechwebServer__WebContent{padding:4px}.ExperimentTechwebServer__WebContent>.LabeledList{margin:.25rem .25rem .25rem 1rem}.ExperimentConfigure__ExperimentName{font-weight:bold;border-radius:0}.ExperimentConfigure__ExperimentContent{padding:.25rem 1.5rem .25rem .25rem}.ExperimentStage__Indicator{font-weight:bold;margin-right:1rem;text-align:center}.ExperimentStage__StageContainer.complete .ExperimentStage__Description{opacity:.4;text-decoration:line-through}.ExperimentStage__StageContainer{margin-bottom:5px}.ExperimentStage__Table{border-collapse:separate;border-spacing:.25rem .25rem}.ExperimentConfigure__PerformExperiment{text-align:center;padding:.75rem 0}.ExperimentConfigure__ExperimentsContainer{height:100%;display:flex;flex-direction:column}.ExperimentConfigure__ExperimentsContainer>:last-child{flex:1;overflow-y:auto}.ExperimentConfigure__TagContainer{position:absolute;right:0;top:0}.ExperimentConfigure__PerformanceHint *{position:absolute;width:100%;height:100%;right:0;top:0;color:rgba(255,255,255,.5)}.NuclearBomb__displayBox{background-color:#002003;border:.167em inset #e8e4c9;color:#03e017;font-size:2em;font-family:monospace;padding:.25em}.NuclearBomb__Button{outline-width:.25rem !important;border-width:.65rem !important;padding-left:0 !important;padding-right:0 !important}.NuclearBomb__Button--keypad{background-color:#e8e4c9;border-color:#e8e4c9}.NuclearBomb__Button--keypad:hover{background-color:#f7f6ee !important;border-color:#f7f6ee !important}.NuclearBomb__Button--1{background-color:#d3cfb7 !important;border-color:#d3cfb7 !important;color:#a9a692 !important}.NuclearBomb__Button--E{background-color:#d9b804 !important;border-color:#d9b804 !important}.NuclearBomb__Button--E:hover{background-color:#f3d00e !important;border-color:#f3d00e !important}.NuclearBomb__Button--C{background-color:#bd2020 !important;border-color:#bd2020 !important}.NuclearBomb__Button--C:hover{background-color:#d52b2b !important;border-color:#d52b2b !important}.NuclearBomb__NTIcon{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2ZXJzaW9uPSIxLjAiIHZpZXdCb3g9IjAgMCA0MjUgMjAwIiBvcGFjaXR5PSIuMzMiPgogIDxwYXRoIGQ9Im0gMTc4LjAwMzk5LDAuMDM4NjkgLTcxLjIwMzkzLDAgYSA2Ljc2MTM0MjIsNi4wMjU1NDk1IDAgMCAwIC02Ljc2MTM0LDYuMDI1NTUgbCAwLDE4Ny44NzE0NyBhIDYuNzYxMzQyMiw2LjAyNTU0OTUgMCAwIDAgNi43NjEzNCw2LjAyNTU0IGwgNTMuMTA3MiwwIGEgNi43NjEzNDIyLDYuMDI1NTQ5NSAwIDAgMCA2Ljc2MTM1LC02LjAyNTU0IGwgMCwtMTAxLjU0NDAxOCA3Mi4yMTYyOCwxMDQuNjk5Mzk4IGEgNi43NjEzNDIyLDYuMDI1NTQ5NSAwIDAgMCA1Ljc2MDE1LDIuODcwMTYgbCA3My41NTQ4NywwIGEgNi43NjEzNDIyLDYuMDI1NTQ5NSAwIDAgMCA2Ljc2MTM1LC02LjAyNTU0IGwgMCwtMTg3Ljg3MTQ3IGEgNi43NjEzNDIyLDYuMDI1NTQ5NSAwIDAgMCAtNi43NjEzNSwtNi4wMjU1NSBsIC01NC43MTY0NCwwIGEgNi43NjEzNDIyLDYuMDI1NTQ5NSAwIDAgMCAtNi43NjEzMyw2LjAyNTU1IGwgMCwxMDIuNjE5MzUgTCAxODMuNzY0MTMsMi45MDg4NiBhIDYuNzYxMzQyMiw2LjAyNTU0OTUgMCAwIDAgLTUuNzYwMTQsLTIuODcwMTcgeiIgLz4KICA8cGF0aCBkPSJNIDQuODQ0NjMzMywyMi4xMDg3NSBBIDEzLjQxMjAzOSwxMi41MDE4NDIgMCAwIDEgMTMuNDc3NTg4LDAuMDM5MjQgbCA2Ni4xMTgzMTUsMCBhIDUuMzY0ODE1OCw1LjAwMDczNyAwIDAgMSA1LjM2NDgyMyw1LjAwMDczIGwgMCw3OS44NzkzMSB6IiAvPgogIDxwYXRoIGQ9Im0gNDIwLjE1NTM1LDE3Ny44OTExOSBhIDEzLjQxMjAzOCwxMi41MDE4NDIgMCAwIDEgLTguNjMyOTUsMjIuMDY5NTEgbCAtNjYuMTE4MzIsMCBhIDUuMzY0ODE1Miw1LjAwMDczNyAwIDAgMSAtNS4zNjQ4MiwtNS4wMDA3NCBsIDAsLTc5Ljg3OTMxIHoiIC8+Cjwvc3ZnPgo8IS0tIFRoaXMgd29yayBpcyBsaWNlbnNlZCB1bmRlciBhIENyZWF0aXZlIENvbW1vbnMgQXR0cmlidXRpb24tU2hhcmVBbGlrZSA0LjAgSW50ZXJuYXRpb25hbCBMaWNlbnNlLiAtLT4KPCEtLSBodHRwOi8vY3JlYXRpdmVjb21tb25zLm9yZy9saWNlbnNlcy9ieS1zYS80LjAvIC0tPgo=);background-size:70%;background-position:center;background-repeat:no-repeat}.Paper__Stamp{position:absolute;pointer-events:none;user-select:none}.Paper__Page{word-break:break-word;word-wrap:break-word}.Roulette__container{display:flex}.Roulette__board-cell{display:table-cell;padding:0;margin:0;border:1px solid #fff;vertical-align:bottom}.Roulette__board-cell-number{width:35px}.Roulette__board-cell-number--colspan-2{width:71px}.Roulette__board-cell-number--colspan-4{width:143px}.Roulette__board-button{display:table-cell !important;border:none !important;width:inherit;height:40px;padding:0;margin:0;text-align:center;vertical-align:middle;color:#fff !important}.Roulette__board-button--rowspan-3{height:122px}.Roulette__board-button-text{text-align:center;font-size:16px;font-weight:bold}.Roulette__lowertable{margin-top:8px;border-collapse:collapse;border:1px solid #fff;border-spacing:0}.Roulette__lowertable--cell{border:2px solid #fff;padding:0px;margin:0px}.Roulette__lowertable--betscell{vertical-align:top}.Roulette__lowertable--spinresult{text-align:center;font-size:100px;font-weight:bold;vertical-align:middle}.Roulette__lowertable--spinresult-black{background-color:#000}.Roulette__lowertable--spinresult-red{background-color:#db2828}.Roulette__lowertable--spinresult-green{background-color:#20b142}.Roulette__lowertable--spinbutton{margin:0 !important;border:none !important;font-size:50px;line-height:60px !important;text-align:center;font-weight:bold}.Roulette__lowertable--header{width:1%;text-align:center;font-size:16px;font-weight:bold}.Safe__engraving{position:absolute;width:95%;height:96%;left:2.5%;top:2%;border:5px outset #3e4f6a;padding:5px;text-align:center}.Safe__engraving-arrow{color:#35435a}.Safe__engraving-hinge{content:" ";background-color:#191f2a;width:25px;height:40px;position:absolute;right:-15px;margin-top:-20px}.Safe__dialer{margin-bottom:1.25rem}.Safe__dialer .Button{width:80px}.Safe__dialer-right .Button i{z-index:-100}.Safe__dialer-number{color:#bbb;display:inline;background-color:#191f2a;font-size:1.5rem;font-weight:bold;padding:0 .5rem}.Safe__contents{border:10px solid #191f2a;background-color:#0f131a;height:calc(85% + 7.5px);text-align:left;padding:5px}.Safe__help{position:absolute;top:73%;left:10px;width:50%;font-family:"Comic Sans MS",cursive,sans-serif;font-style:italic;color:#000;box-shadow:5px 5px #111;background-image:linear-gradient(to bottom, #b2ae74 0%, #8e8b5d 100%);transform:rotate(-1deg)}.Safe__help:before{content:" ";display:block;width:24px;height:40px;background-image:linear-gradient(to bottom, transparent 0%, #ffffff 100%);box-shadow:1px 1px #111;opacity:.2;position:absolute;top:-30px;left:calc(50% - 12px);transform:rotate(-5deg)}.TachyonArray__ActiveRecord{margin:0 .5em 0 .8em}.TachyonArray__Content{overflow-x:hidden;overflow-y:auto}.TachyonArray__ResearchFooter>*{width:100%;text-align:center}.Techweb__NodeProgress{margin-bottom:1rem}.Techweb__NodeProgress>*:not(:last-child){margin-right:.4rem}.Techweb__DesignIcon{margin-left:.25rem;margin-right:.25rem}.Techweb__OverviewNodes{overflow-y:auto;overflow-x:hidden;padding-right:6px;padding-top:4px}.Techweb__HeaderContent{background-color:#000;padding:6px;border:1px solid #40628a}.Techweb__HeaderContent>*>:not(:last-child){margin-bottom:5px}.Techweb__HeaderSectionTabs{margin-top:8px;background-color:#000;border:1px solid #40628a;padding-left:5px;padding-right:5px}.Techweb__HeaderTabTitle{border-right:1px solid #40628a;padding-right:.5em;margin-right:.5em;font-weight:bold}.Techweb__HeaderSectionTabs input{background-color:rgba(255,255,255,.05)}.Techweb__PointSummary{list-style:none;margin:.4em 0 0 1em;padding:0}.Techweb__SecProtocol{color:#db2828;margin-left:.2em}.Techweb__SecProtocol.engaged{color:#5baa27}.Techweb__DesignModal>:not(:last-child){margin-bottom:.5em}.Techweb__LockedModal>:not(:last-child){margin-bottom:.5em}.Techweb__ExperimentDiscount{color:#7e90a7;margin:.5em 0}.IDCard__NamePlate{margin-left:-6px;margin-right:-6px;margin-top:6px;padding:.5em;border-top:.1666666667em solid #4972a1;font-size:1.1666666667em;font-weight:bold}.TinderMessage_First_Sent,.TinderMessage_Subsequent_Sent,.TinderMessage_First_Received,.TinderMessage_Subsequent_Received{padding:6px;z-index:1;word-break:break-all;max-width:100%}.TinderMessage_First_Sent,.TinderMessage_Subsequent_Sent{text-align:right;background-color:#4d9121}.TinderMessage_First_Sent{border-radius:10px 10px 0px 10px}.TinderMessage_Subsequent_Sent{border-radius:10px 0px 0px 10px}.TinderMessage_First_Received,.TinderMessage_Subsequent_Received{text-align:left;background-color:#cd7a0d}.TinderMessage_First_Received{border-radius:10px 10px 10px 0px}.TinderMessage_Subsequent_Received{border-radius:0px 10px 10px 0px}.ClassicMessage_Sent,.ClassicMessage_Received{word-break:break-all}.ClassicMessage_Sent{color:#4d9121}.ClassicMessage_Received{color:#cd7a0d}.Section--elevator--fire{background-color:#f33;background-color:rgba(255,0,0,.35)}.Section--elevator--fire>.Section__title{padding:.5em;border-bottom:.1666666667em solid red}.Layout,.Layout *{scrollbar-base-color:#1c1c1c;scrollbar-face-color:#3b3b3b;scrollbar-3dlight-color:#252525;scrollbar-highlight-color:#252525;scrollbar-track-color:#1c1c1c;scrollbar-arrow-color:#929292;scrollbar-shadow-color:#3b3b3b}.Layout__content{position:absolute;top:0;bottom:0;left:0;right:0;overflow-x:hidden;overflow-y:hidden}.Layout__content--scrollable{overflow-y:auto}.Layout__content--flexRow{display:flex;flex-flow:row}.Layout__content--flexColumn{display:flex;flex-flow:column}.NtosHeader__left{position:absolute;left:1em}.NtosHeader__right{position:absolute;right:1em}.NtosHeader__icon{margin-top:-0.75em;margin-bottom:-0.5em;vertical-align:middle}.NtosWindow__header{position:absolute;top:0;left:0;right:0;height:2em;line-height:1.928em;background-color:rgba(0,0,0,.5);font-family:Consolas,monospace;font-size:1.1666666667em;user-select:none;-ms-user-select:none}.NtosWindow__content .Layout__content{margin-top:2em;font-family:Consolas,monospace;font-size:1.1666666667em}.TitleBar{background-color:#363636;border-bottom:1px solid #161616;box-shadow:0 2px 2px rgba(0,0,0,.1);box-shadow:0 .1666666667rem .1666666667rem rgba(0,0,0,.1);user-select:none;-ms-user-select:none}.TitleBar__clickable{color:rgba(255,255,255,.5);background-color:#363636;transition:color 250ms ease-out,background-color 250ms ease-out}.TitleBar__clickable:hover{color:#fff;background-color:#c00;transition:color 0ms,background-color 0ms}.TitleBar__title{position:absolute;display:inline-block;top:0;left:46px;left:3.8333333333rem;color:rgba(255,255,255,.75);font-size:14px;font-size:1.1666666667rem;line-height:31px;line-height:2.5833333333rem;white-space:nowrap;pointer-events:none}.TitleBar__buttons{pointer-events:initial;display:inline-block;width:100%;margin-left:10px}.TitleBar__dragZone{position:absolute;top:0;left:0;right:0;height:32px;height:2.6666666667rem}.TitleBar__statusIcon{position:absolute;top:0;left:12px;left:1rem;transition:color .5s;font-size:20px;font-size:1.6666666667rem;line-height:32px !important;line-height:2.6666666667rem !important}.TitleBar__close{position:absolute;top:-1px;right:0;width:45px;width:3.75rem;height:32px;height:2.6666666667rem;font-size:20px;font-size:1.6666666667rem;line-height:31px;line-height:2.5833333333rem;text-align:center}.TitleBar__devBuildIndicator{position:absolute;top:6px;top:.5rem;right:52px;right:4.3333333333rem;min-width:20px;min-width:1.6666666667rem;padding:2px 4px;padding:.1666666667rem .3333333333rem;background-color:rgba(91,170,39,.75);color:#fff;text-align:center}.Window{position:fixed;top:0;bottom:0;left:0;right:0;color:#fff;background-color:#252525;background-image:linear-gradient(to bottom, #2a2a2a 0%, #202020 100%)}.Window__titleBar{position:fixed;z-index:1;top:0;left:0;width:100%;height:32px;height:2.6666666667rem}.Window__rest{position:fixed;top:32px;top:2.6666666667rem;bottom:0;left:0;right:0}.Window__contentPadding{margin:.5rem;height:100%;height:calc(100% - 1.01rem)}.Window__contentPadding:after{height:0}.Layout__content--scrollable .Window__contentPadding:after{display:block;content:"";height:.5rem}.Window__dimmer{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(62,62,62,.25);pointer-events:none}.Window__resizeHandle__se{position:fixed;bottom:0;right:0;width:20px;width:1.6666666667rem;height:20px;height:1.6666666667rem;cursor:se-resize}.Window__resizeHandle__s{position:fixed;bottom:0;left:0;right:0;height:6px;height:.5rem;cursor:s-resize}.Window__resizeHandle__e{position:fixed;top:0;bottom:0;right:0;width:3px;width:.25rem;cursor:e-resize}.Layout__content{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2ZXJzaW9uPSIxLjAiIHZpZXdCb3g9IjAgMCA0MjUgMjAwIiBvcGFjaXR5PSIuMzMiPgogIDxwYXRoIGQ9Im0gMTc4LjAwMzk5LDAuMDM4NjkgLTcxLjIwMzkzLDAgYSA2Ljc2MTM0MjIsNi4wMjU1NDk1IDAgMCAwIC02Ljc2MTM0LDYuMDI1NTUgbCAwLDE4Ny44NzE0NyBhIDYuNzYxMzQyMiw2LjAyNTU0OTUgMCAwIDAgNi43NjEzNCw2LjAyNTU0IGwgNTMuMTA3MiwwIGEgNi43NjEzNDIyLDYuMDI1NTQ5NSAwIDAgMCA2Ljc2MTM1LC02LjAyNTU0IGwgMCwtMTAxLjU0NDAxOCA3Mi4yMTYyOCwxMDQuNjk5Mzk4IGEgNi43NjEzNDIyLDYuMDI1NTQ5NSAwIDAgMCA1Ljc2MDE1LDIuODcwMTYgbCA3My41NTQ4NywwIGEgNi43NjEzNDIyLDYuMDI1NTQ5NSAwIDAgMCA2Ljc2MTM1LC02LjAyNTU0IGwgMCwtMTg3Ljg3MTQ3IGEgNi43NjEzNDIyLDYuMDI1NTQ5NSAwIDAgMCAtNi43NjEzNSwtNi4wMjU1NSBsIC01NC43MTY0NCwwIGEgNi43NjEzNDIyLDYuMDI1NTQ5NSAwIDAgMCAtNi43NjEzMyw2LjAyNTU1IGwgMCwxMDIuNjE5MzUgTCAxODMuNzY0MTMsMi45MDg4NiBhIDYuNzYxMzQyMiw2LjAyNTU0OTUgMCAwIDAgLTUuNzYwMTQsLTIuODcwMTcgeiIgLz4KICA8cGF0aCBkPSJNIDQuODQ0NjMzMywyMi4xMDg3NSBBIDEzLjQxMjAzOSwxMi41MDE4NDIgMCAwIDEgMTMuNDc3NTg4LDAuMDM5MjQgbCA2Ni4xMTgzMTUsMCBhIDUuMzY0ODE1OCw1LjAwMDczNyAwIDAgMSA1LjM2NDgyMyw1LjAwMDczIGwgMCw3OS44NzkzMSB6IiAvPgogIDxwYXRoIGQ9Im0gNDIwLjE1NTM1LDE3Ny44OTExOSBhIDEzLjQxMjAzOCwxMi41MDE4NDIgMCAwIDEgLTguNjMyOTUsMjIuMDY5NTEgbCAtNjYuMTE4MzIsMCBhIDUuMzY0ODE1Miw1LjAwMDczNyAwIDAgMSAtNS4zNjQ4MiwtNS4wMDA3NCBsIDAsLTc5Ljg3OTMxIHoiIC8+Cjwvc3ZnPgo8IS0tIFRoaXMgd29yayBpcyBsaWNlbnNlZCB1bmRlciBhIENyZWF0aXZlIENvbW1vbnMgQXR0cmlidXRpb24tU2hhcmVBbGlrZSA0LjAgSW50ZXJuYXRpb25hbCBMaWNlbnNlLiAtLT4KPCEtLSBodHRwOi8vY3JlYXRpdmVjb21tb25zLm9yZy9saWNlbnNlcy9ieS1zYS80LjAvIC0tPgo=);background-size:70%;background-position:center;background-repeat:no-repeat} .theme-abductor .Button{position:relative;display:inline-block;line-height:1.667em;padding:0 .5em;margin-right:.1666666667em;white-space:nowrap;outline:0;border-radius:2px;margin-bottom:.1666666667em;user-select:none;-ms-user-select:none}.theme-abductor .Button:last-child{margin-right:0;margin-bottom:0}.theme-abductor .Button .fa,.theme-abductor .Button .fas,.theme-abductor .Button .far{margin-left:-0.25em;margin-right:-0.25em;min-width:1.333em;text-align:center}.theme-abductor .Button--hasContent .fa,.theme-abductor .Button--hasContent .fas,.theme-abductor .Button--hasContent .far{margin-right:.25em}.theme-abductor .Button--hasContent.Button--iconPosition--right .fa,.theme-abductor .Button--hasContent.Button--iconPosition--right .fas,.theme-abductor .Button--hasContent.Button--iconPosition--right .far{margin-right:0px;margin-left:3px}.theme-abductor .Button--ellipsis{overflow:hidden;text-overflow:ellipsis}.theme-abductor .Button--fluid{display:block;margin-left:0;margin-right:0}.theme-abductor .Button--circular{border-radius:50%}.theme-abductor .Button--compact{padding:0 .25em;line-height:1.333em}.theme-abductor .Button--color--default{transition:color 50ms,background-color 50ms;background-color:#ad2350;color:#fff}.theme-abductor .Button--color--default:hover{transition:color 0ms,background-color 0ms}.theme-abductor .Button--color--default:focus{transition:color 100ms,background-color 100ms}.theme-abductor .Button--color--default:hover,.theme-abductor .Button--color--default:focus{background-color:#d34372;color:#fff}.theme-abductor .Button--color--caution{transition:color 50ms,background-color 50ms;background-color:#be6209;color:#fff}.theme-abductor .Button--color--caution:hover{transition:color 0ms,background-color 0ms}.theme-abductor .Button--color--caution:focus{transition:color 100ms,background-color 100ms}.theme-abductor .Button--color--caution:hover,.theme-abductor .Button--color--caution:focus{background-color:#ec8420;color:#fff}.theme-abductor .Button--color--danger{transition:color 50ms,background-color 50ms;background-color:#9a9d00;color:#fff}.theme-abductor .Button--color--danger:hover{transition:color 0ms,background-color 0ms}.theme-abductor .Button--color--danger:focus{transition:color 100ms,background-color 100ms}.theme-abductor .Button--color--danger:hover,.theme-abductor .Button--color--danger:focus{background-color:#c4c813;color:#fff}.theme-abductor .Button--color--transparent{transition:color 50ms,background-color 50ms;background-color:#2a314a;color:#fff;background-color:rgba(42,49,74,0);color:rgba(255,255,255,.5)}.theme-abductor .Button--color--transparent:hover{transition:color 0ms,background-color 0ms}.theme-abductor .Button--color--transparent:focus{transition:color 100ms,background-color 100ms}.theme-abductor .Button--color--transparent:hover,.theme-abductor .Button--color--transparent:focus{background-color:#444c68;color:#fff}.theme-abductor .Button--disabled{background-color:#363636 !important}.theme-abductor .Button--selected{transition:color 50ms,background-color 50ms;background-color:#465899;color:#fff}.theme-abductor .Button--selected:hover{transition:color 0ms,background-color 0ms}.theme-abductor .Button--selected:focus{transition:color 100ms,background-color 100ms}.theme-abductor .Button--selected:hover,.theme-abductor .Button--selected:focus{background-color:#6e7eba;color:#fff}.theme-abductor .Input{position:relative;display:inline-block;width:10em;border:.0833333333em solid #404b6e;border:.0833333333em solid rgba(64,75,110,.75);border-radius:2px;color:#fff;background-color:#0a0a0a;padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;overflow:visible}.theme-abductor .Input--fluid{display:block;width:auto}.theme-abductor .Input__baseline{display:inline-block;color:transparent}.theme-abductor .Input__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:transparent;color:#fff;color:inherit}.theme-abductor .Input__input:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-abductor .Input--monospace .Input__input{font-family:"Consolas",monospace}.theme-abductor .NanoMap__container{overflow:hiddden;width:100%;z-index:1}.theme-abductor .NanoMap__marker{z-index:10;padding:0px;margin:0px}.theme-abductor .NanoMap__zoomer{z-index:20;background-color:rgba(0,0,0,.33);position:absolute;top:30px;left:0;padding:.5rem;width:30%}.theme-abductor .NoticeBox{padding:.33em .5em;margin-bottom:.5em;box-shadow:none;font-weight:bold;font-style:italic;color:#fff;background-color:#a82d55;background-image:repeating-linear-gradient(-45deg, transparent, transparent 0.8333333333em, rgba(0, 0, 0, 0.1) 0.8333333333em, rgba(0, 0, 0, 0.1) 1.6666666667em)}.theme-abductor .NoticeBox--type--info{color:#fff;background-color:#235982}.theme-abductor .NoticeBox--type--success{color:#fff;background-color:#1e662f}.theme-abductor .NoticeBox--type--warning{color:#fff;background-color:#a95219}.theme-abductor .NoticeBox--type--danger{color:#fff;background-color:#8f2828}.theme-abductor .Input{position:relative;display:inline-block;width:10em;border:.0833333333em solid #404b6e;border:.0833333333em solid rgba(64,75,110,.75);border-radius:2px;color:#fff;background-color:#0a0a0a;padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;overflow:visible}.theme-abductor .Input--fluid{display:block;width:auto}.theme-abductor .Input__baseline{display:inline-block;color:transparent}.theme-abductor .Input__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:transparent;color:#fff;color:inherit}.theme-abductor .Input__input:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-abductor .Input--monospace .Input__input{font-family:"Consolas",monospace}.theme-abductor .NumberInput{position:relative;display:inline-block;border:.0833333333em solid #404b6e;border:.0833333333em solid rgba(64,75,110,.75);border-radius:2px;color:#404b6e;background-color:#0a0a0a;padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;text-align:right;overflow:visible;cursor:n-resize}.theme-abductor .NumberInput--fluid{display:block}.theme-abductor .NumberInput__content{margin-left:.5em}.theme-abductor .NumberInput__barContainer{position:absolute;top:.1666666667em;bottom:.1666666667em;left:.1666666667em}.theme-abductor .NumberInput__bar{position:absolute;bottom:0;left:0;width:.25em;box-sizing:border-box;border-bottom:.0833333333em solid #404b6e;background-color:#404b6e}.theme-abductor .NumberInput__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:#0a0a0a;color:#fff;text-align:right}.theme-abductor .ProgressBar{display:inline-block;position:relative;width:100%;padding:0 .5em;border-radius:2px;background-color:rgba(0,0,0,.5);transition:border-color 900ms ease-out}.theme-abductor .ProgressBar__fill{position:absolute;top:-0.5px;left:0px;bottom:-0.5px}.theme-abductor .ProgressBar__fill--animated{transition:background-color 900ms ease-out,width 900ms ease-out}.theme-abductor .ProgressBar__content{position:relative;line-height:1.4166666667em;width:100%;text-align:right}.theme-abductor .ProgressBar--color--default{border:.0833333333em solid #931e44}.theme-abductor .ProgressBar--color--default .ProgressBar__fill{background-color:#931e44}.theme-abductor .Section{position:relative;margin-bottom:.5em;background-color:#1c2132;background-color:rgba(0,0,0,.33);box-sizing:border-box}.theme-abductor .Section:last-child{margin-bottom:0}.theme-abductor .Section__title{position:relative;padding:.5em;border-bottom:.1666666667em solid #ad2350}.theme-abductor .Section__titleText{font-size:1.1666666667em;font-weight:bold;color:#fff}.theme-abductor .Section__buttons{position:absolute;display:inline-block;right:.5em;margin-top:-0.0833333333em}.theme-abductor .Section__rest{position:relative}.theme-abductor .Section__content{padding:.66em .5em}.theme-abductor .Section--fitted>.Section__rest>.Section__content{padding:0}.theme-abductor .Section--fill{display:flex;flex-direction:column;height:100%}.theme-abductor .Section--fill>.Section__rest{flex-grow:1}.theme-abductor .Section--fill>.Section__rest>.Section__content{height:100%}.theme-abductor .Section--fill.Section--scrollable>.Section__rest>.Section__content{position:absolute;top:0;left:0;right:0;bottom:0}.theme-abductor .Section--fill.Section--iefix{display:table !important;width:100% !important;height:100% !important;border-collapse:collapse;border-spacing:0}.theme-abductor .Section--fill.Section--iefix>.Section__rest{display:table-row !important;height:100% !important}.theme-abductor .Section--scrollable{overflow-x:hidden;overflow-y:hidden}.theme-abductor .Section--scrollable>.Section__rest>.Section__content{overflow-y:auto;overflow-x:hidden}.theme-abductor .Section .Section{background-color:transparent;margin-left:-0.5em;margin-right:-0.5em}.theme-abductor .Section .Section:first-child{margin-top:-0.5em}.theme-abductor .Section .Section .Section__titleText{font-size:1.0833333333em}.theme-abductor .Section .Section .Section .Section__titleText{font-size:1em}.theme-abductor .Section--flex{display:flex;flex-flow:column}.theme-abductor .Section--flex .Section__content{overflow:auto;flex-grow:1}.theme-abductor .Section__content--noTopPadding{padding-top:0}.theme-abductor .Section__content--stretchContents{height:calc(100% - 3rem)}.theme-abductor .Tooltip{z-index:2;padding:.5em .75em;pointer-events:none;text-align:left;transition:all 150ms ease-out;background-color:#a82d55;color:#fff;box-shadow:.1em .1em 1.25em -0.1em rgba(0,0,0,.5);border-radius:2px;max-width:20.8333333333em}.theme-abductor .Layout,.theme-abductor .Layout *{scrollbar-base-color:#202538;scrollbar-face-color:#384263;scrollbar-3dlight-color:#2a314a;scrollbar-highlight-color:#2a314a;scrollbar-track-color:#202538;scrollbar-arrow-color:#818db8;scrollbar-shadow-color:#384263}.theme-abductor .Layout__content{position:absolute;top:0;bottom:0;left:0;right:0;overflow-x:hidden;overflow-y:hidden}.theme-abductor .Layout__content--scrollable{overflow-y:auto}.theme-abductor .Layout__content--flexRow{display:flex;flex-flow:row}.theme-abductor .Layout__content--flexColumn{display:flex;flex-flow:column}.theme-abductor .Window{position:fixed;top:0;bottom:0;left:0;right:0;color:#fff;background-color:#2a314a;background-image:linear-gradient(to bottom, #353e5e 0%, #1f2436 100%)}.theme-abductor .Window__titleBar{position:fixed;z-index:1;top:0;left:0;width:100%;height:32px;height:2.6666666667rem}.theme-abductor .Window__rest{position:fixed;top:32px;top:2.6666666667rem;bottom:0;left:0;right:0}.theme-abductor .Window__contentPadding{margin:.5rem;height:100%;height:calc(100% - 1.01rem)}.theme-abductor .Window__contentPadding:after{height:0}.theme-abductor .Layout__content--scrollable .Window__contentPadding:after{display:block;content:"";height:.5rem}.theme-abductor .Window__dimmer{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(68,76,104,.25);pointer-events:none}.theme-abductor .Window__resizeHandle__se{position:fixed;bottom:0;right:0;width:20px;width:1.6666666667rem;height:20px;height:1.6666666667rem;cursor:se-resize}.theme-abductor .Window__resizeHandle__s{position:fixed;bottom:0;left:0;right:0;height:6px;height:.5rem;cursor:s-resize}.theme-abductor .Window__resizeHandle__e{position:fixed;top:0;bottom:0;right:0;width:3px;width:.25rem;cursor:e-resize}.theme-abductor .TitleBar{background-color:#9e1b46;border-bottom:1px solid #161616;box-shadow:0 2px 2px rgba(0,0,0,.1);box-shadow:0 .1666666667rem .1666666667rem rgba(0,0,0,.1);user-select:none;-ms-user-select:none}.theme-abductor .TitleBar__clickable{color:rgba(255,255,255,.5);background-color:#9e1b46;transition:color 250ms ease-out,background-color 250ms ease-out}.theme-abductor .TitleBar__clickable:hover{color:#fff;background-color:#c00;transition:color 0ms,background-color 0ms}.theme-abductor .TitleBar__title{position:absolute;display:inline-block;top:0;left:46px;left:3.8333333333rem;color:rgba(255,255,255,.75);font-size:14px;font-size:1.1666666667rem;line-height:31px;line-height:2.5833333333rem;white-space:nowrap;pointer-events:none}.theme-abductor .TitleBar__buttons{pointer-events:initial;display:inline-block;width:100%;margin-left:10px}.theme-abductor .TitleBar__dragZone{position:absolute;top:0;left:0;right:0;height:32px;height:2.6666666667rem}.theme-abductor .TitleBar__statusIcon{position:absolute;top:0;left:12px;left:1rem;transition:color .5s;font-size:20px;font-size:1.6666666667rem;line-height:32px !important;line-height:2.6666666667rem !important}.theme-abductor .TitleBar__close{position:absolute;top:-1px;right:0;width:45px;width:3.75rem;height:32px;height:2.6666666667rem;font-size:20px;font-size:1.6666666667rem;line-height:31px;line-height:2.5833333333rem;text-align:center}.theme-abductor .TitleBar__devBuildIndicator{position:absolute;top:6px;top:.5rem;right:52px;right:4.3333333333rem;min-width:20px;min-width:1.6666666667rem;padding:2px 4px;padding:.1666666667rem .3333333333rem;background-color:rgba(91,170,39,.75);color:#fff;text-align:center}.theme-abductor .Layout__content{background-image:none} .theme-cardtable .Button{position:relative;display:inline-block;line-height:1.667em;padding:0 .5em;margin-right:.1666666667em;white-space:nowrap;outline:0;border-radius:0;margin-bottom:.1666666667em;user-select:none;-ms-user-select:none}.theme-cardtable .Button:last-child{margin-right:0;margin-bottom:0}.theme-cardtable .Button .fa,.theme-cardtable .Button .fas,.theme-cardtable .Button .far{margin-left:-0.25em;margin-right:-0.25em;min-width:1.333em;text-align:center}.theme-cardtable .Button--hasContent .fa,.theme-cardtable .Button--hasContent .fas,.theme-cardtable .Button--hasContent .far{margin-right:.25em}.theme-cardtable .Button--hasContent.Button--iconPosition--right .fa,.theme-cardtable .Button--hasContent.Button--iconPosition--right .fas,.theme-cardtable .Button--hasContent.Button--iconPosition--right .far{margin-right:0px;margin-left:3px}.theme-cardtable .Button--ellipsis{overflow:hidden;text-overflow:ellipsis}.theme-cardtable .Button--fluid{display:block;margin-left:0;margin-right:0}.theme-cardtable .Button--circular{border-radius:50%}.theme-cardtable .Button--compact{padding:0 .25em;line-height:1.333em}.theme-cardtable .Button--color--default{transition:color 50ms,background-color 50ms;background-color:#117039;color:#fff}.theme-cardtable .Button--color--default:hover{transition:color 0ms,background-color 0ms}.theme-cardtable .Button--color--default:focus{transition:color 100ms,background-color 100ms}.theme-cardtable .Button--color--default:hover,.theme-cardtable .Button--color--default:focus{background-color:#279455;color:#fff}.theme-cardtable .Button--color--caution{transition:color 50ms,background-color 50ms;background-color:#be6209;color:#fff}.theme-cardtable .Button--color--caution:hover{transition:color 0ms,background-color 0ms}.theme-cardtable .Button--color--caution:focus{transition:color 100ms,background-color 100ms}.theme-cardtable .Button--color--caution:hover,.theme-cardtable .Button--color--caution:focus{background-color:#ec8420;color:#fff}.theme-cardtable .Button--color--danger{transition:color 50ms,background-color 50ms;background-color:#9a9d00;color:#fff}.theme-cardtable .Button--color--danger:hover{transition:color 0ms,background-color 0ms}.theme-cardtable .Button--color--danger:focus{transition:color 100ms,background-color 100ms}.theme-cardtable .Button--color--danger:hover,.theme-cardtable .Button--color--danger:focus{background-color:#c4c813;color:#fff}.theme-cardtable .Button--color--transparent{transition:color 50ms,background-color 50ms;background-color:#117039;color:#fff;background-color:rgba(17,112,57,0);color:rgba(255,255,255,.5)}.theme-cardtable .Button--color--transparent:hover{transition:color 0ms,background-color 0ms}.theme-cardtable .Button--color--transparent:focus{transition:color 100ms,background-color 100ms}.theme-cardtable .Button--color--transparent:hover,.theme-cardtable .Button--color--transparent:focus{background-color:#279455;color:#fff}.theme-cardtable .Button--disabled{background-color:#363636 !important}.theme-cardtable .Button--selected{transition:color 50ms,background-color 50ms;background-color:#9d0808;color:#fff}.theme-cardtable .Button--selected:hover{transition:color 0ms,background-color 0ms}.theme-cardtable .Button--selected:focus{transition:color 100ms,background-color 100ms}.theme-cardtable .Button--selected:hover,.theme-cardtable .Button--selected:focus{background-color:#c81c1c;color:#fff}.theme-cardtable .Input{position:relative;display:inline-block;width:10em;border:.0833333333em solid #88bfff;border:.0833333333em solid rgba(136,191,255,.75);border-radius:0;color:#fff;background-color:#0a0a0a;padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;overflow:visible}.theme-cardtable .Input--fluid{display:block;width:auto}.theme-cardtable .Input__baseline{display:inline-block;color:transparent}.theme-cardtable .Input__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:transparent;color:#fff;color:inherit}.theme-cardtable .Input__input:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-cardtable .Input--monospace .Input__input{font-family:"Consolas",monospace}.theme-cardtable .NumberInput{position:relative;display:inline-block;border:.0833333333em solid #fff;border:.0833333333em solid rgba(255,255,255,.75);border-radius:0;color:#fff;background-color:#0a0a0a;padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;text-align:right;overflow:visible;cursor:n-resize}.theme-cardtable .NumberInput--fluid{display:block}.theme-cardtable .NumberInput__content{margin-left:.5em}.theme-cardtable .NumberInput__barContainer{position:absolute;top:.1666666667em;bottom:.1666666667em;left:.1666666667em}.theme-cardtable .NumberInput__bar{position:absolute;bottom:0;left:0;width:.25em;box-sizing:border-box;border-bottom:.0833333333em solid #fff;background-color:#fff}.theme-cardtable .NumberInput__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:#0a0a0a;color:#fff;text-align:right}.theme-cardtable .ProgressBar{display:inline-block;position:relative;width:100%;padding:0 .5em;border-radius:0;background-color:rgba(0,0,0,.5);transition:border-color 900ms ease-out}.theme-cardtable .ProgressBar__fill{position:absolute;top:-0.5px;left:0px;bottom:-0.5px}.theme-cardtable .ProgressBar__fill--animated{transition:background-color 900ms ease-out,width 900ms ease-out}.theme-cardtable .ProgressBar__content{position:relative;line-height:1.4166666667em;width:100%;text-align:right}.theme-cardtable .ProgressBar--color--default{border:.0833333333em solid #000}.theme-cardtable .ProgressBar--color--default .ProgressBar__fill{background-color:#000}.theme-cardtable .Section{position:relative;margin-bottom:.5em;background-color:#0b4b26;background-color:rgba(0,0,0,.33);box-sizing:border-box}.theme-cardtable .Section:last-child{margin-bottom:0}.theme-cardtable .Section__title{position:relative;padding:.5em;border-bottom:.1666666667em solid #000}.theme-cardtable .Section__titleText{font-size:1.1666666667em;font-weight:bold;color:#fff}.theme-cardtable .Section__buttons{position:absolute;display:inline-block;right:.5em;margin-top:-0.0833333333em}.theme-cardtable .Section__rest{position:relative}.theme-cardtable .Section__content{padding:.66em .5em}.theme-cardtable .Section--fitted>.Section__rest>.Section__content{padding:0}.theme-cardtable .Section--fill{display:flex;flex-direction:column;height:100%}.theme-cardtable .Section--fill>.Section__rest{flex-grow:1}.theme-cardtable .Section--fill>.Section__rest>.Section__content{height:100%}.theme-cardtable .Section--fill.Section--scrollable>.Section__rest>.Section__content{position:absolute;top:0;left:0;right:0;bottom:0}.theme-cardtable .Section--fill.Section--iefix{display:table !important;width:100% !important;height:100% !important;border-collapse:collapse;border-spacing:0}.theme-cardtable .Section--fill.Section--iefix>.Section__rest{display:table-row !important;height:100% !important}.theme-cardtable .Section--scrollable{overflow-x:hidden;overflow-y:hidden}.theme-cardtable .Section--scrollable>.Section__rest>.Section__content{overflow-y:auto;overflow-x:hidden}.theme-cardtable .Section .Section{background-color:transparent;margin-left:-0.5em;margin-right:-0.5em}.theme-cardtable .Section .Section:first-child{margin-top:-0.5em}.theme-cardtable .Section .Section .Section__titleText{font-size:1.0833333333em}.theme-cardtable .Section .Section .Section .Section__titleText{font-size:1em}.theme-cardtable .Section--flex{display:flex;flex-flow:column}.theme-cardtable .Section--flex .Section__content{overflow:auto;flex-grow:1}.theme-cardtable .Section__content--noTopPadding{padding-top:0}.theme-cardtable .Section__content--stretchContents{height:calc(100% - 3rem)}.theme-cardtable .Layout,.theme-cardtable .Layout *{scrollbar-base-color:#0d542b;scrollbar-face-color:#16914a;scrollbar-3dlight-color:#117039;scrollbar-highlight-color:#117039;scrollbar-track-color:#0d542b;scrollbar-arrow-color:#5ae695;scrollbar-shadow-color:#16914a}.theme-cardtable .Layout__content{position:absolute;top:0;bottom:0;left:0;right:0;overflow-x:hidden;overflow-y:hidden}.theme-cardtable .Layout__content--scrollable{overflow-y:auto}.theme-cardtable .Layout__content--flexRow{display:flex;flex-flow:row}.theme-cardtable .Layout__content--flexColumn{display:flex;flex-flow:column}.theme-cardtable .Window{position:fixed;top:0;bottom:0;left:0;right:0;color:#fff;background-color:#117039;background-image:linear-gradient(to bottom, #117039 0%, #117039 100%)}.theme-cardtable .Window__titleBar{position:fixed;z-index:1;top:0;left:0;width:100%;height:32px;height:2.6666666667rem}.theme-cardtable .Window__rest{position:fixed;top:32px;top:2.6666666667rem;bottom:0;left:0;right:0}.theme-cardtable .Window__contentPadding{margin:.5rem;height:100%;height:calc(100% - 1.01rem)}.theme-cardtable .Window__contentPadding:after{height:0}.theme-cardtable .Layout__content--scrollable .Window__contentPadding:after{display:block;content:"";height:.5rem}.theme-cardtable .Window__dimmer{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(39,148,85,.25);pointer-events:none}.theme-cardtable .Window__resizeHandle__se{position:fixed;bottom:0;right:0;width:20px;width:1.6666666667rem;height:20px;height:1.6666666667rem;cursor:se-resize}.theme-cardtable .Window__resizeHandle__s{position:fixed;bottom:0;left:0;right:0;height:6px;height:.5rem;cursor:s-resize}.theme-cardtable .Window__resizeHandle__e{position:fixed;top:0;bottom:0;right:0;width:3px;width:.25rem;cursor:e-resize}.theme-cardtable .TitleBar{background-color:#381608;border-bottom:1px solid #161616;box-shadow:0 2px 2px rgba(0,0,0,.1);box-shadow:0 .1666666667rem .1666666667rem rgba(0,0,0,.1);user-select:none;-ms-user-select:none}.theme-cardtable .TitleBar__clickable{color:rgba(255,255,255,.5);background-color:#381608;transition:color 250ms ease-out,background-color 250ms ease-out}.theme-cardtable .TitleBar__clickable:hover{color:#fff;background-color:#c00;transition:color 0ms,background-color 0ms}.theme-cardtable .TitleBar__title{position:absolute;display:inline-block;top:0;left:46px;left:3.8333333333rem;color:rgba(255,255,255,.75);font-size:14px;font-size:1.1666666667rem;line-height:31px;line-height:2.5833333333rem;white-space:nowrap;pointer-events:none}.theme-cardtable .TitleBar__buttons{pointer-events:initial;display:inline-block;width:100%;margin-left:10px}.theme-cardtable .TitleBar__dragZone{position:absolute;top:0;left:0;right:0;height:32px;height:2.6666666667rem}.theme-cardtable .TitleBar__statusIcon{position:absolute;top:0;left:12px;left:1rem;transition:color .5s;font-size:20px;font-size:1.6666666667rem;line-height:32px !important;line-height:2.6666666667rem !important}.theme-cardtable .TitleBar__close{position:absolute;top:-1px;right:0;width:45px;width:3.75rem;height:32px;height:2.6666666667rem;font-size:20px;font-size:1.6666666667rem;line-height:31px;line-height:2.5833333333rem;text-align:center}.theme-cardtable .TitleBar__devBuildIndicator{position:absolute;top:6px;top:.5rem;right:52px;right:4.3333333333rem;min-width:20px;min-width:1.6666666667rem;padding:2px 4px;padding:.1666666667rem .3333333333rem;background-color:rgba(91,170,39,.75);color:#fff;text-align:center}.theme-cardtable .Button{border:.1666666667em solid #fff} .theme-hackerman .Button{position:relative;display:inline-block;line-height:1.667em;padding:0 .5em;margin-right:.1666666667em;white-space:nowrap;outline:0;border-radius:.16em;margin-bottom:.1666666667em;user-select:none;-ms-user-select:none}.theme-hackerman .Button:last-child{margin-right:0;margin-bottom:0}.theme-hackerman .Button .fa,.theme-hackerman .Button .fas,.theme-hackerman .Button .far{margin-left:-0.25em;margin-right:-0.25em;min-width:1.333em;text-align:center}.theme-hackerman .Button--hasContent .fa,.theme-hackerman .Button--hasContent .fas,.theme-hackerman .Button--hasContent .far{margin-right:.25em}.theme-hackerman .Button--hasContent.Button--iconPosition--right .fa,.theme-hackerman .Button--hasContent.Button--iconPosition--right .fas,.theme-hackerman .Button--hasContent.Button--iconPosition--right .far{margin-right:0px;margin-left:3px}.theme-hackerman .Button--ellipsis{overflow:hidden;text-overflow:ellipsis}.theme-hackerman .Button--fluid{display:block;margin-left:0;margin-right:0}.theme-hackerman .Button--circular{border-radius:50%}.theme-hackerman .Button--compact{padding:0 .25em;line-height:1.333em}.theme-hackerman .Button--color--default{transition:color 50ms,background-color 50ms;background-color:lime;color:#000}.theme-hackerman .Button--color--default:hover{transition:color 0ms,background-color 0ms}.theme-hackerman .Button--color--default:focus{transition:color 100ms,background-color 100ms}.theme-hackerman .Button--color--default:hover,.theme-hackerman .Button--color--default:focus{background-color:#4dff4d;color:#000}.theme-hackerman .Button--color--caution{transition:color 50ms,background-color 50ms;background-color:#d9b804;color:#000}.theme-hackerman .Button--color--caution:hover{transition:color 0ms,background-color 0ms}.theme-hackerman .Button--color--caution:focus{transition:color 100ms,background-color 100ms}.theme-hackerman .Button--color--caution:hover,.theme-hackerman .Button--color--caution:focus{background-color:#f5d72e;color:#000}.theme-hackerman .Button--color--danger{transition:color 50ms,background-color 50ms;background-color:#bd2020;color:#fff}.theme-hackerman .Button--color--danger:hover{transition:color 0ms,background-color 0ms}.theme-hackerman .Button--color--danger:focus{transition:color 100ms,background-color 100ms}.theme-hackerman .Button--color--danger:hover,.theme-hackerman .Button--color--danger:focus{background-color:#dc4848;color:#fff}.theme-hackerman .Button--color--transparent{transition:color 50ms,background-color 50ms;background-color:#121b12;color:#fff;background-color:rgba(18,27,18,0);color:rgba(255,255,255,.5)}.theme-hackerman .Button--color--transparent:hover{transition:color 0ms,background-color 0ms}.theme-hackerman .Button--color--transparent:focus{transition:color 100ms,background-color 100ms}.theme-hackerman .Button--color--transparent:hover,.theme-hackerman .Button--color--transparent:focus{background-color:#283228;color:#fff}.theme-hackerman .Button--disabled{background-color:#4a6a4a !important}.theme-hackerman .Button--selected{transition:color 50ms,background-color 50ms;background-color:lime;color:#000}.theme-hackerman .Button--selected:hover{transition:color 0ms,background-color 0ms}.theme-hackerman .Button--selected:focus{transition:color 100ms,background-color 100ms}.theme-hackerman .Button--selected:hover,.theme-hackerman .Button--selected:focus{background-color:#4dff4d;color:#000}.theme-hackerman .Input{position:relative;display:inline-block;width:10em;border:.0833333333em solid lime;border:.0833333333em solid rgba(0,255,0,.75);border-radius:.16em;color:#fff;background-color:#0a0a0a;padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;overflow:visible}.theme-hackerman .Input--fluid{display:block;width:auto}.theme-hackerman .Input__baseline{display:inline-block;color:transparent}.theme-hackerman .Input__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:transparent;color:#fff;color:inherit}.theme-hackerman .Input__input:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-hackerman .Input--monospace .Input__input{font-family:"Consolas",monospace}.theme-hackerman .Modal{background-color:#121b12;max-width:calc(100% - 1rem);padding:1rem}.theme-hackerman .Section{position:relative;margin-bottom:.5em;background-color:#0c120c;background-color:rgba(0,0,0,.33);box-sizing:border-box}.theme-hackerman .Section:last-child{margin-bottom:0}.theme-hackerman .Section__title{position:relative;padding:.5em;border-bottom:.1666666667em solid lime}.theme-hackerman .Section__titleText{font-size:1.1666666667em;font-weight:bold;color:#fff}.theme-hackerman .Section__buttons{position:absolute;display:inline-block;right:.5em;margin-top:-0.0833333333em}.theme-hackerman .Section__rest{position:relative}.theme-hackerman .Section__content{padding:.66em .5em}.theme-hackerman .Section--fitted>.Section__rest>.Section__content{padding:0}.theme-hackerman .Section--fill{display:flex;flex-direction:column;height:100%}.theme-hackerman .Section--fill>.Section__rest{flex-grow:1}.theme-hackerman .Section--fill>.Section__rest>.Section__content{height:100%}.theme-hackerman .Section--fill.Section--scrollable>.Section__rest>.Section__content{position:absolute;top:0;left:0;right:0;bottom:0}.theme-hackerman .Section--fill.Section--iefix{display:table !important;width:100% !important;height:100% !important;border-collapse:collapse;border-spacing:0}.theme-hackerman .Section--fill.Section--iefix>.Section__rest{display:table-row !important;height:100% !important}.theme-hackerman .Section--scrollable{overflow-x:hidden;overflow-y:hidden}.theme-hackerman .Section--scrollable>.Section__rest>.Section__content{overflow-y:auto;overflow-x:hidden}.theme-hackerman .Section .Section{background-color:transparent;margin-left:-0.5em;margin-right:-0.5em}.theme-hackerman .Section .Section:first-child{margin-top:-0.5em}.theme-hackerman .Section .Section .Section__titleText{font-size:1.0833333333em}.theme-hackerman .Section .Section .Section .Section__titleText{font-size:1em}.theme-hackerman .Section--flex{display:flex;flex-flow:column}.theme-hackerman .Section--flex .Section__content{overflow:auto;flex-grow:1}.theme-hackerman .Section__content--noTopPadding{padding-top:0}.theme-hackerman .Section__content--stretchContents{height:calc(100% - 3rem)}.theme-hackerman .Layout,.theme-hackerman .Layout *{scrollbar-base-color:#0e140e;scrollbar-face-color:#253725;scrollbar-3dlight-color:#121b12;scrollbar-highlight-color:#121b12;scrollbar-track-color:#0e140e;scrollbar-arrow-color:#74a274;scrollbar-shadow-color:#253725}.theme-hackerman .Layout__content{position:absolute;top:0;bottom:0;left:0;right:0;overflow-x:hidden;overflow-y:hidden}.theme-hackerman .Layout__content--scrollable{overflow-y:auto}.theme-hackerman .Layout__content--flexRow{display:flex;flex-flow:row}.theme-hackerman .Layout__content--flexColumn{display:flex;flex-flow:column}.theme-hackerman .Window{position:fixed;top:0;bottom:0;left:0;right:0;color:#fff;background-color:#121b12;background-image:linear-gradient(to bottom, #121b12 0%, #121b12 100%)}.theme-hackerman .Window__titleBar{position:fixed;z-index:1;top:0;left:0;width:100%;height:32px;height:2.6666666667rem}.theme-hackerman .Window__rest{position:fixed;top:32px;top:2.6666666667rem;bottom:0;left:0;right:0}.theme-hackerman .Window__contentPadding{margin:.5rem;height:100%;height:calc(100% - 1.01rem)}.theme-hackerman .Window__contentPadding:after{height:0}.theme-hackerman .Layout__content--scrollable .Window__contentPadding:after{display:block;content:"";height:.5rem}.theme-hackerman .Window__dimmer{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(40,50,40,.25);pointer-events:none}.theme-hackerman .Window__resizeHandle__se{position:fixed;bottom:0;right:0;width:20px;width:1.6666666667rem;height:20px;height:1.6666666667rem;cursor:se-resize}.theme-hackerman .Window__resizeHandle__s{position:fixed;bottom:0;left:0;right:0;height:6px;height:.5rem;cursor:s-resize}.theme-hackerman .Window__resizeHandle__e{position:fixed;top:0;bottom:0;right:0;width:3px;width:.25rem;cursor:e-resize}.theme-hackerman .TitleBar{background-color:#223d22;border-bottom:1px solid #161616;box-shadow:0 2px 2px rgba(0,0,0,.1);box-shadow:0 .1666666667rem .1666666667rem rgba(0,0,0,.1);user-select:none;-ms-user-select:none}.theme-hackerman .TitleBar__clickable{color:rgba(255,255,255,.5);background-color:#223d22;transition:color 250ms ease-out,background-color 250ms ease-out}.theme-hackerman .TitleBar__clickable:hover{color:#fff;background-color:#c00;transition:color 0ms,background-color 0ms}.theme-hackerman .TitleBar__title{position:absolute;display:inline-block;top:0;left:46px;left:3.8333333333rem;color:rgba(255,255,255,.75);font-size:14px;font-size:1.1666666667rem;line-height:31px;line-height:2.5833333333rem;white-space:nowrap;pointer-events:none}.theme-hackerman .TitleBar__buttons{pointer-events:initial;display:inline-block;width:100%;margin-left:10px}.theme-hackerman .TitleBar__dragZone{position:absolute;top:0;left:0;right:0;height:32px;height:2.6666666667rem}.theme-hackerman .TitleBar__statusIcon{position:absolute;top:0;left:12px;left:1rem;transition:color .5s;font-size:20px;font-size:1.6666666667rem;line-height:32px !important;line-height:2.6666666667rem !important}.theme-hackerman .TitleBar__close{position:absolute;top:-1px;right:0;width:45px;width:3.75rem;height:32px;height:2.6666666667rem;font-size:20px;font-size:1.6666666667rem;line-height:31px;line-height:2.5833333333rem;text-align:center}.theme-hackerman .TitleBar__devBuildIndicator{position:absolute;top:6px;top:.5rem;right:52px;right:4.3333333333rem;min-width:20px;min-width:1.6666666667rem;padding:2px 4px;padding:.1666666667rem .3333333333rem;background-color:rgba(91,170,39,.75);color:#fff;text-align:center}.theme-hackerman .Layout__content{background-image:none}.theme-hackerman .Button{font-family:monospace;border-width:.1666666667em;border-style:outset;border-color:#0a0;outline:.0833333333em solid #007a00}.theme-hackerman .candystripe:nth-child(odd){background-color:rgba(0,100,0,.5)} @@ -8,6 +8,6 @@ html,body{box-sizing:border-box;height:100%;margin:0;font-size:12px}html{overflo .theme-paper .Tabs{display:flex;align-items:stretch;overflow:hidden;background-color:rgba(0,0,0,.33)}.theme-paper .Tabs--fill{height:100%}.theme-paper .Section .Tabs{background-color:transparent}.theme-paper .Section:not(.Section--fitted) .Tabs{margin:0 -0.5em .5em}.theme-paper .Section:not(.Section--fitted) .Tabs:first-child{margin-top:-0.5em}.theme-paper .Tabs--vertical{flex-direction:column;padding:.25em 0 .25em .25em}.theme-paper .Tabs--horizontal{margin-bottom:.5em;padding:.25em .25em 0 .25em}.theme-paper .Tabs--horizontal:last-child{margin-bottom:0}.theme-paper .Tabs__Tab{flex-grow:0}.theme-paper .Tabs--fluid .Tabs__Tab{flex-grow:1}.theme-paper .Tab{display:flex;align-items:center;justify-content:space-between;background-color:transparent;color:rgba(255,255,255,.5);min-height:2.25em;min-width:4em;transition:background-color 50ms ease-out}.theme-paper .Tab:not(.Tab--selected):hover{background-color:rgba(255,255,255,.075);transition:background-color 0}.theme-paper .Tab--selected{background-color:rgba(255,255,255,.125);color:#fafafa}.theme-paper .Tab__text{flex-grow:1;margin:0 .5em}.theme-paper .Tab__left{min-width:1.5em;text-align:center;margin-left:.25em}.theme-paper .Tab__right{min-width:1.5em;text-align:center;margin-right:.25em}.theme-paper .Tabs--horizontal .Tab{border-top:.1666666667em solid transparent;border-bottom:.1666666667em solid transparent;border-top-left-radius:.25em;border-top-right-radius:.25em}.theme-paper .Tabs--horizontal .Tab--selected{border-bottom:.1666666667em solid #f9f9f9}.theme-paper .Tabs--vertical .Tab{min-height:2em;border-left:.1666666667em solid transparent;border-right:.1666666667em solid transparent;border-top-left-radius:.25em;border-bottom-left-radius:.25em}.theme-paper .Tabs--vertical .Tab--selected{border-right:.1666666667em solid #f9f9f9}.theme-paper .Section{position:relative;margin-bottom:.5em;background-color:#e6e6e6;background-color:rgba(0,0,0,.1);box-sizing:border-box}.theme-paper .Section:last-child{margin-bottom:0}.theme-paper .Section__title{position:relative;padding:.5em;border-bottom:.1666666667em solid #fff}.theme-paper .Section__titleText{font-size:1.1666666667em;font-weight:bold;color:#000}.theme-paper .Section__buttons{position:absolute;display:inline-block;right:.5em;margin-top:-0.0833333333em}.theme-paper .Section__rest{position:relative}.theme-paper .Section__content{padding:.66em .5em}.theme-paper .Section--fitted>.Section__rest>.Section__content{padding:0}.theme-paper .Section--fill{display:flex;flex-direction:column;height:100%}.theme-paper .Section--fill>.Section__rest{flex-grow:1}.theme-paper .Section--fill>.Section__rest>.Section__content{height:100%}.theme-paper .Section--fill.Section--scrollable>.Section__rest>.Section__content{position:absolute;top:0;left:0;right:0;bottom:0}.theme-paper .Section--fill.Section--iefix{display:table !important;width:100% !important;height:100% !important;border-collapse:collapse;border-spacing:0}.theme-paper .Section--fill.Section--iefix>.Section__rest{display:table-row !important;height:100% !important}.theme-paper .Section--scrollable{overflow-x:hidden;overflow-y:hidden}.theme-paper .Section--scrollable>.Section__rest>.Section__content{overflow-y:auto;overflow-x:hidden}.theme-paper .Section .Section{background-color:transparent;margin-left:-0.5em;margin-right:-0.5em}.theme-paper .Section .Section:first-child{margin-top:-0.5em}.theme-paper .Section .Section .Section__titleText{font-size:1.0833333333em}.theme-paper .Section .Section .Section .Section__titleText{font-size:1em}.theme-paper .Section--flex{display:flex;flex-flow:column}.theme-paper .Section--flex .Section__content{overflow:auto;flex-grow:1}.theme-paper .Section__content--noTopPadding{padding-top:0}.theme-paper .Section__content--stretchContents{height:calc(100% - 3rem)}.theme-paper .Button{position:relative;display:inline-block;line-height:1.667em;padding:0 .5em;margin-right:.1666666667em;white-space:nowrap;outline:0;border-radius:.16em;margin-bottom:.1666666667em;user-select:none;-ms-user-select:none}.theme-paper .Button:last-child{margin-right:0;margin-bottom:0}.theme-paper .Button .fa,.theme-paper .Button .fas,.theme-paper .Button .far{margin-left:-0.25em;margin-right:-0.25em;min-width:1.333em;text-align:center}.theme-paper .Button--hasContent .fa,.theme-paper .Button--hasContent .fas,.theme-paper .Button--hasContent .far{margin-right:.25em}.theme-paper .Button--hasContent.Button--iconPosition--right .fa,.theme-paper .Button--hasContent.Button--iconPosition--right .fas,.theme-paper .Button--hasContent.Button--iconPosition--right .far{margin-right:0px;margin-left:3px}.theme-paper .Button--ellipsis{overflow:hidden;text-overflow:ellipsis}.theme-paper .Button--fluid{display:block;margin-left:0;margin-right:0}.theme-paper .Button--circular{border-radius:50%}.theme-paper .Button--compact{padding:0 .25em;line-height:1.333em}.theme-paper .Button--color--default{transition:color 50ms,background-color 50ms;background-color:#e8e4c9;color:#000}.theme-paper .Button--color--default:hover{transition:color 0ms,background-color 0ms}.theme-paper .Button--color--default:focus{transition:color 100ms,background-color 100ms}.theme-paper .Button--color--default:hover,.theme-paper .Button--color--default:focus{background-color:#fbfaf6;color:#000}.theme-paper .Button--color--caution{transition:color 50ms,background-color 50ms;background-color:#be6209;color:#fff}.theme-paper .Button--color--caution:hover{transition:color 0ms,background-color 0ms}.theme-paper .Button--color--caution:focus{transition:color 100ms,background-color 100ms}.theme-paper .Button--color--caution:hover,.theme-paper .Button--color--caution:focus{background-color:#ec8420;color:#fff}.theme-paper .Button--color--danger{transition:color 50ms,background-color 50ms;background-color:#9a9d00;color:#fff}.theme-paper .Button--color--danger:hover{transition:color 0ms,background-color 0ms}.theme-paper .Button--color--danger:focus{transition:color 100ms,background-color 100ms}.theme-paper .Button--color--danger:hover,.theme-paper .Button--color--danger:focus{background-color:#c4c813;color:#fff}.theme-paper .Button--color--transparent{transition:color 50ms,background-color 50ms;background-color:#fff;color:#000;background-color:rgba(255,255,255,0);color:rgba(0,0,0,.5)}.theme-paper .Button--color--transparent:hover{transition:color 0ms,background-color 0ms}.theme-paper .Button--color--transparent:focus{transition:color 100ms,background-color 100ms}.theme-paper .Button--color--transparent:hover,.theme-paper .Button--color--transparent:focus{background-color:#fff;color:#000}.theme-paper .Button--disabled{background-color:#363636 !important}.theme-paper .Button--selected{transition:color 50ms,background-color 50ms;background-color:#9d0808;color:#fff}.theme-paper .Button--selected:hover{transition:color 0ms,background-color 0ms}.theme-paper .Button--selected:focus{transition:color 100ms,background-color 100ms}.theme-paper .Button--selected:hover,.theme-paper .Button--selected:focus{background-color:#c81c1c;color:#fff}.theme-paper .Layout,.theme-paper .Layout *{scrollbar-base-color:#bfbfbf;scrollbar-face-color:#fff;scrollbar-3dlight-color:#fff;scrollbar-highlight-color:#fff;scrollbar-track-color:#bfbfbf;scrollbar-arrow-color:#fff;scrollbar-shadow-color:#fff}.theme-paper .Layout__content{position:absolute;top:0;bottom:0;left:0;right:0;overflow-x:hidden;overflow-y:hidden}.theme-paper .Layout__content--scrollable{overflow-y:auto}.theme-paper .Layout__content--flexRow{display:flex;flex-flow:row}.theme-paper .Layout__content--flexColumn{display:flex;flex-flow:column}.theme-paper .Window{position:fixed;top:0;bottom:0;left:0;right:0;color:#000;background-color:#fff;background-image:linear-gradient(to bottom, white 0%, white 100%)}.theme-paper .Window__titleBar{position:fixed;z-index:1;top:0;left:0;width:100%;height:32px;height:2.6666666667rem}.theme-paper .Window__rest{position:fixed;top:32px;top:2.6666666667rem;bottom:0;left:0;right:0}.theme-paper .Window__contentPadding{margin:.5rem;height:100%;height:calc(100% - 1.01rem)}.theme-paper .Window__contentPadding:after{height:0}.theme-paper .Layout__content--scrollable .Window__contentPadding:after{display:block;content:"";height:.5rem}.theme-paper .Window__dimmer{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(255,255,255,.25);pointer-events:none}.theme-paper .Window__resizeHandle__se{position:fixed;bottom:0;right:0;width:20px;width:1.6666666667rem;height:20px;height:1.6666666667rem;cursor:se-resize}.theme-paper .Window__resizeHandle__s{position:fixed;bottom:0;left:0;right:0;height:6px;height:.5rem;cursor:s-resize}.theme-paper .Window__resizeHandle__e{position:fixed;top:0;bottom:0;right:0;width:3px;width:.25rem;cursor:e-resize}.theme-paper .TitleBar{background-color:#fff;border-bottom:1px solid rgba(0,0,0,.25);box-shadow:0 2px 2px rgba(0,0,0,.1);box-shadow:0 .1666666667rem .1666666667rem rgba(0,0,0,.1);user-select:none;-ms-user-select:none}.theme-paper .TitleBar__clickable{color:rgba(0,0,0,.5);background-color:#fff;transition:color 250ms ease-out,background-color 250ms ease-out}.theme-paper .TitleBar__clickable:hover{color:#fff;background-color:#c00;transition:color 0ms,background-color 0ms}.theme-paper .TitleBar__title{position:absolute;display:inline-block;top:0;left:46px;left:3.8333333333rem;color:rgba(0,0,0,.75);font-size:14px;font-size:1.1666666667rem;line-height:31px;line-height:2.5833333333rem;white-space:nowrap;pointer-events:none}.theme-paper .TitleBar__buttons{pointer-events:initial;display:inline-block;width:100%;margin-left:10px}.theme-paper .TitleBar__dragZone{position:absolute;top:0;left:0;right:0;height:32px;height:2.6666666667rem}.theme-paper .TitleBar__statusIcon{position:absolute;top:0;left:12px;left:1rem;transition:color .5s;font-size:20px;font-size:1.6666666667rem;line-height:32px !important;line-height:2.6666666667rem !important}.theme-paper .TitleBar__close{position:absolute;top:-1px;right:0;width:45px;width:3.75rem;height:32px;height:2.6666666667rem;font-size:20px;font-size:1.6666666667rem;line-height:31px;line-height:2.5833333333rem;text-align:center}.theme-paper .TitleBar__devBuildIndicator{position:absolute;top:6px;top:.5rem;right:52px;right:4.3333333333rem;min-width:20px;min-width:1.6666666667rem;padding:2px 4px;padding:.1666666667rem .3333333333rem;background-color:rgba(91,170,39,.75);color:#fff;text-align:center}.theme-paper .PaperInput{position:relative;display:inline-block;width:120px;border:none;background:transparent;border-bottom:1px solid #000;outline:none;background-color:rgba(255,255,62,.8);padding:0 4px;margin-right:2px;line-height:17px;overflow:visible}.theme-paper .PaperInput__baseline{display:inline-block;color:transparent}.theme-paper .PaperInput__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:12px;line-height:17px;height:17px;margin:0;padding:0 6px;font-family:Verdana,sans-serif;background-color:transparent;color:#fff;color:inherit}.theme-paper .PaperInput__input:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-paper .Layout__content{background-image:none}.theme-paper .Window{background-image:none;color:#000}.theme-paper .paper-text input:disabled{position:relative;display:inline-block;border:none;background:transparent;border-bottom:1px solid #000;outline:none;background-color:rgba(255,255,62,.8);padding:0 4px;margin-right:2px;line-height:17px;overflow:visible}.theme-paper .paper-text input{position:relative;display:inline-block;border:none;background:transparent;border-bottom:1px solid #000;outline:none;background-color:rgba(255,255,62,.8);padding:0 4px;margin-right:2px;line-height:17px;overflow:visible}.theme-paper .paper-field{position:relative;display:inline-block;border:none;background:transparent;border-bottom:1px solid #000;outline:none;background-color:rgba(255,255,62,.8);padding:0 4px;margin-right:2px;line-height:17px;overflow:visible}.theme-paper .paper-field input:disabled{position:relative;display:inline-block;border:none;background:transparent;border-bottom:1px solid #000;outline:none;background-color:rgba(255,255,62,.8);padding:0 4px;margin-right:2px;line-height:17px;overflow:visible} .theme-pda-retro .color-black{color:#1a1a1a !important}.theme-pda-retro .color-white{color:#fff !important}.theme-pda-retro .color-red{color:#df3e3e !important}.theme-pda-retro .color-orange{color:#f37f33 !important}.theme-pda-retro .color-yellow{color:#fbda21 !important}.theme-pda-retro .color-olive{color:#cbe41c !important}.theme-pda-retro .color-green{color:#25ca4c !important}.theme-pda-retro .color-teal{color:#00d6cc !important}.theme-pda-retro .color-blue{color:#2e93de !important}.theme-pda-retro .color-violet{color:#7349cf !important}.theme-pda-retro .color-purple{color:#ad45d0 !important}.theme-pda-retro .color-pink{color:#e34da1 !important}.theme-pda-retro .color-brown{color:#b97447 !important}.theme-pda-retro .color-grey{color:#848484 !important}.theme-pda-retro .color-good{color:#68c22d !important}.theme-pda-retro .color-average{color:#1a1a1a !important}.theme-pda-retro .color-bad{color:#df3e3e !important}.theme-pda-retro .color-label{color:#1a1a1a !important}.theme-pda-retro .color-bg-black{background-color:#000 !important}.theme-pda-retro .color-bg-white{background-color:#d9d9d9 !important}.theme-pda-retro .color-bg-red{background-color:#bd2020 !important}.theme-pda-retro .color-bg-orange{background-color:#d95e0c !important}.theme-pda-retro .color-bg-yellow{background-color:#d9b804 !important}.theme-pda-retro .color-bg-olive{background-color:#9aad14 !important}.theme-pda-retro .color-bg-green{background-color:#1b9638 !important}.theme-pda-retro .color-bg-teal{background-color:#009a93 !important}.theme-pda-retro .color-bg-blue{background-color:#1c71b1 !important}.theme-pda-retro .color-bg-violet{background-color:#552dab !important}.theme-pda-retro .color-bg-purple{background-color:#8b2baa !important}.theme-pda-retro .color-bg-pink{background-color:#cf2082 !important}.theme-pda-retro .color-bg-brown{background-color:#8c5836 !important}.theme-pda-retro .color-bg-grey{background-color:#646464 !important}.theme-pda-retro .color-bg-good{background-color:#4d9121 !important}.theme-pda-retro .color-bg-average{background-color:#000 !important}.theme-pda-retro .color-bg-bad{background-color:#bd2020 !important}.theme-pda-retro .color-bg-label{background-color:#000 !important}.theme-pda-retro .Button{position:relative;display:inline-block;line-height:1.667em;padding:0 .5em;margin-right:.1666666667em;white-space:nowrap;outline:0;border-radius:0;margin-bottom:.1666666667em;user-select:none;-ms-user-select:none}.theme-pda-retro .Button:last-child{margin-right:0;margin-bottom:0}.theme-pda-retro .Button .fa,.theme-pda-retro .Button .fas,.theme-pda-retro .Button .far{margin-left:-0.25em;margin-right:-0.25em;min-width:1.333em;text-align:center}.theme-pda-retro .Button--hasContent .fa,.theme-pda-retro .Button--hasContent .fas,.theme-pda-retro .Button--hasContent .far{margin-right:.25em}.theme-pda-retro .Button--hasContent.Button--iconPosition--right .fa,.theme-pda-retro .Button--hasContent.Button--iconPosition--right .fas,.theme-pda-retro .Button--hasContent.Button--iconPosition--right .far{margin-right:0px;margin-left:3px}.theme-pda-retro .Button--ellipsis{overflow:hidden;text-overflow:ellipsis}.theme-pda-retro .Button--fluid{display:block;margin-left:0;margin-right:0}.theme-pda-retro .Button--circular{border-radius:50%}.theme-pda-retro .Button--compact{padding:0 .25em;line-height:1.333em}.theme-pda-retro .Button--color--black{transition:color 50ms,background-color 50ms;background-color:#000;color:#fff}.theme-pda-retro .Button--color--black:hover{transition:color 0ms,background-color 0ms}.theme-pda-retro .Button--color--black:focus{transition:color 100ms,background-color 100ms}.theme-pda-retro .Button--color--black:hover,.theme-pda-retro .Button--color--black:focus{background-color:#131313;color:#fff}.theme-pda-retro .Button--color--white{transition:color 50ms,background-color 50ms;background-color:#d9d9d9;color:#000}.theme-pda-retro .Button--color--white:hover{transition:color 0ms,background-color 0ms}.theme-pda-retro .Button--color--white:focus{transition:color 100ms,background-color 100ms}.theme-pda-retro .Button--color--white:hover,.theme-pda-retro .Button--color--white:focus{background-color:#f8f8f8;color:#000}.theme-pda-retro .Button--color--red{transition:color 50ms,background-color 50ms;background-color:#bd2020;color:#fff}.theme-pda-retro .Button--color--red:hover{transition:color 0ms,background-color 0ms}.theme-pda-retro .Button--color--red:focus{transition:color 100ms,background-color 100ms}.theme-pda-retro .Button--color--red:hover,.theme-pda-retro .Button--color--red:focus{background-color:#dc4848;color:#fff}.theme-pda-retro .Button--color--orange{transition:color 50ms,background-color 50ms;background-color:#d95e0c;color:#fff}.theme-pda-retro .Button--color--orange:hover{transition:color 0ms,background-color 0ms}.theme-pda-retro .Button--color--orange:focus{transition:color 100ms,background-color 100ms}.theme-pda-retro .Button--color--orange:hover,.theme-pda-retro .Button--color--orange:focus{background-color:#f0853f;color:#fff}.theme-pda-retro .Button--color--yellow{transition:color 50ms,background-color 50ms;background-color:#d9b804;color:#000}.theme-pda-retro .Button--color--yellow:hover{transition:color 0ms,background-color 0ms}.theme-pda-retro .Button--color--yellow:focus{transition:color 100ms,background-color 100ms}.theme-pda-retro .Button--color--yellow:hover,.theme-pda-retro .Button--color--yellow:focus{background-color:#f5d72e;color:#000}.theme-pda-retro .Button--color--olive{transition:color 50ms,background-color 50ms;background-color:#9aad14;color:#fff}.theme-pda-retro .Button--color--olive:hover{transition:color 0ms,background-color 0ms}.theme-pda-retro .Button--color--olive:focus{transition:color 100ms,background-color 100ms}.theme-pda-retro .Button--color--olive:hover,.theme-pda-retro .Button--color--olive:focus{background-color:#c4da2b;color:#fff}.theme-pda-retro .Button--color--green{transition:color 50ms,background-color 50ms;background-color:#1b9638;color:#fff}.theme-pda-retro .Button--color--green:hover{transition:color 0ms,background-color 0ms}.theme-pda-retro .Button--color--green:focus{transition:color 100ms,background-color 100ms}.theme-pda-retro .Button--color--green:hover,.theme-pda-retro .Button--color--green:focus{background-color:#32c154;color:#fff}.theme-pda-retro .Button--color--teal{transition:color 50ms,background-color 50ms;background-color:#009a93;color:#fff}.theme-pda-retro .Button--color--teal:hover{transition:color 0ms,background-color 0ms}.theme-pda-retro .Button--color--teal:focus{transition:color 100ms,background-color 100ms}.theme-pda-retro .Button--color--teal:hover,.theme-pda-retro .Button--color--teal:focus{background-color:#13c4bc;color:#fff}.theme-pda-retro .Button--color--blue{transition:color 50ms,background-color 50ms;background-color:#1c71b1;color:#fff}.theme-pda-retro .Button--color--blue:hover{transition:color 0ms,background-color 0ms}.theme-pda-retro .Button--color--blue:focus{transition:color 100ms,background-color 100ms}.theme-pda-retro .Button--color--blue:hover,.theme-pda-retro .Button--color--blue:focus{background-color:#3a95d9;color:#fff}.theme-pda-retro .Button--color--violet{transition:color 50ms,background-color 50ms;background-color:#552dab;color:#fff}.theme-pda-retro .Button--color--violet:hover{transition:color 0ms,background-color 0ms}.theme-pda-retro .Button--color--violet:focus{transition:color 100ms,background-color 100ms}.theme-pda-retro .Button--color--violet:hover,.theme-pda-retro .Button--color--violet:focus{background-color:#7953cc;color:#fff}.theme-pda-retro .Button--color--purple{transition:color 50ms,background-color 50ms;background-color:#8b2baa;color:#fff}.theme-pda-retro .Button--color--purple:hover{transition:color 0ms,background-color 0ms}.theme-pda-retro .Button--color--purple:focus{transition:color 100ms,background-color 100ms}.theme-pda-retro .Button--color--purple:hover,.theme-pda-retro .Button--color--purple:focus{background-color:#ad4fcd;color:#fff}.theme-pda-retro .Button--color--pink{transition:color 50ms,background-color 50ms;background-color:#cf2082;color:#fff}.theme-pda-retro .Button--color--pink:hover{transition:color 0ms,background-color 0ms}.theme-pda-retro .Button--color--pink:focus{transition:color 100ms,background-color 100ms}.theme-pda-retro .Button--color--pink:hover,.theme-pda-retro .Button--color--pink:focus{background-color:#e257a5;color:#fff}.theme-pda-retro .Button--color--brown{transition:color 50ms,background-color 50ms;background-color:#8c5836;color:#fff}.theme-pda-retro .Button--color--brown:hover{transition:color 0ms,background-color 0ms}.theme-pda-retro .Button--color--brown:focus{transition:color 100ms,background-color 100ms}.theme-pda-retro .Button--color--brown:hover,.theme-pda-retro .Button--color--brown:focus{background-color:#b47851;color:#fff}.theme-pda-retro .Button--color--grey{transition:color 50ms,background-color 50ms;background-color:#646464;color:#fff}.theme-pda-retro .Button--color--grey:hover{transition:color 0ms,background-color 0ms}.theme-pda-retro .Button--color--grey:focus{transition:color 100ms,background-color 100ms}.theme-pda-retro .Button--color--grey:hover,.theme-pda-retro .Button--color--grey:focus{background-color:#868686;color:#fff}.theme-pda-retro .Button--color--good{transition:color 50ms,background-color 50ms;background-color:#4d9121;color:#fff}.theme-pda-retro .Button--color--good:hover{transition:color 0ms,background-color 0ms}.theme-pda-retro .Button--color--good:focus{transition:color 100ms,background-color 100ms}.theme-pda-retro .Button--color--good:hover,.theme-pda-retro .Button--color--good:focus{background-color:#6cba39;color:#fff}.theme-pda-retro .Button--color--average{transition:color 50ms,background-color 50ms;background-color:#000;color:#fff}.theme-pda-retro .Button--color--average:hover{transition:color 0ms,background-color 0ms}.theme-pda-retro .Button--color--average:focus{transition:color 100ms,background-color 100ms}.theme-pda-retro .Button--color--average:hover,.theme-pda-retro .Button--color--average:focus{background-color:#131313;color:#fff}.theme-pda-retro .Button--color--bad{transition:color 50ms,background-color 50ms;background-color:#bd2020;color:#fff}.theme-pda-retro .Button--color--bad:hover{transition:color 0ms,background-color 0ms}.theme-pda-retro .Button--color--bad:focus{transition:color 100ms,background-color 100ms}.theme-pda-retro .Button--color--bad:hover,.theme-pda-retro .Button--color--bad:focus{background-color:#dc4848;color:#fff}.theme-pda-retro .Button--color--label{transition:color 50ms,background-color 50ms;background-color:#000;color:#fff}.theme-pda-retro .Button--color--label:hover{transition:color 0ms,background-color 0ms}.theme-pda-retro .Button--color--label:focus{transition:color 100ms,background-color 100ms}.theme-pda-retro .Button--color--label:hover,.theme-pda-retro .Button--color--label:focus{background-color:#131313;color:#fff}.theme-pda-retro .Button--color--default{transition:color 50ms,background-color 50ms;background-color:#e8e4c9;color:#000}.theme-pda-retro .Button--color--default:hover{transition:color 0ms,background-color 0ms}.theme-pda-retro .Button--color--default:focus{transition:color 100ms,background-color 100ms}.theme-pda-retro .Button--color--default:hover,.theme-pda-retro .Button--color--default:focus{background-color:#fbfaf6;color:#000}.theme-pda-retro .Button--color--caution{transition:color 50ms,background-color 50ms;background-color:#be6209;color:#fff}.theme-pda-retro .Button--color--caution:hover{transition:color 0ms,background-color 0ms}.theme-pda-retro .Button--color--caution:focus{transition:color 100ms,background-color 100ms}.theme-pda-retro .Button--color--caution:hover,.theme-pda-retro .Button--color--caution:focus{background-color:#ec8420;color:#fff}.theme-pda-retro .Button--color--danger{transition:color 50ms,background-color 50ms;background-color:#9a9d00;color:#fff}.theme-pda-retro .Button--color--danger:hover{transition:color 0ms,background-color 0ms}.theme-pda-retro .Button--color--danger:focus{transition:color 100ms,background-color 100ms}.theme-pda-retro .Button--color--danger:hover,.theme-pda-retro .Button--color--danger:focus{background-color:#c4c813;color:#fff}.theme-pda-retro .Button--color--transparent{transition:color 50ms,background-color 50ms;background-color:#6f7961;color:#fff;background-color:rgba(111,121,97,0);color:rgba(255,255,255,.5)}.theme-pda-retro .Button--color--transparent:hover{transition:color 0ms,background-color 0ms}.theme-pda-retro .Button--color--transparent:focus{transition:color 100ms,background-color 100ms}.theme-pda-retro .Button--color--transparent:hover,.theme-pda-retro .Button--color--transparent:focus{background-color:#939c85;color:#fff}.theme-pda-retro .Button--disabled{background-color:#505050 !important}.theme-pda-retro .Button--selected{transition:color 50ms,background-color 50ms;background-color:#9d0808;color:#fff}.theme-pda-retro .Button--selected:hover{transition:color 0ms,background-color 0ms}.theme-pda-retro .Button--selected:focus{transition:color 100ms,background-color 100ms}.theme-pda-retro .Button--selected:hover,.theme-pda-retro .Button--selected:focus{background-color:#c81c1c;color:#fff}.theme-pda-retro .ProgressBar{display:inline-block;position:relative;width:100%;padding:0 .5em;border-radius:0;background-color:rgba(0,0,0,.5);transition:border-color 900ms ease-out}.theme-pda-retro .ProgressBar__fill{position:absolute;top:-0.5px;left:0px;bottom:-0.5px}.theme-pda-retro .ProgressBar__fill--animated{transition:background-color 900ms ease-out,width 900ms ease-out}.theme-pda-retro .ProgressBar__content{position:relative;line-height:1.4166666667em;width:100%;text-align:right}.theme-pda-retro .ProgressBar--color--default{border:.0833333333em solid #000}.theme-pda-retro .ProgressBar--color--default .ProgressBar__fill{background-color:#000}.theme-pda-retro .ProgressBar--color--black{border:.0833333333em solid #000 !important}.theme-pda-retro .ProgressBar--color--black .ProgressBar__fill{background-color:#000}.theme-pda-retro .ProgressBar--color--white{border:.0833333333em solid #d9d9d9 !important}.theme-pda-retro .ProgressBar--color--white .ProgressBar__fill{background-color:#d9d9d9}.theme-pda-retro .ProgressBar--color--red{border:.0833333333em solid #bd2020 !important}.theme-pda-retro .ProgressBar--color--red .ProgressBar__fill{background-color:#bd2020}.theme-pda-retro .ProgressBar--color--orange{border:.0833333333em solid #d95e0c !important}.theme-pda-retro .ProgressBar--color--orange .ProgressBar__fill{background-color:#d95e0c}.theme-pda-retro .ProgressBar--color--yellow{border:.0833333333em solid #d9b804 !important}.theme-pda-retro .ProgressBar--color--yellow .ProgressBar__fill{background-color:#d9b804}.theme-pda-retro .ProgressBar--color--olive{border:.0833333333em solid #9aad14 !important}.theme-pda-retro .ProgressBar--color--olive .ProgressBar__fill{background-color:#9aad14}.theme-pda-retro .ProgressBar--color--green{border:.0833333333em solid #1b9638 !important}.theme-pda-retro .ProgressBar--color--green .ProgressBar__fill{background-color:#1b9638}.theme-pda-retro .ProgressBar--color--teal{border:.0833333333em solid #009a93 !important}.theme-pda-retro .ProgressBar--color--teal .ProgressBar__fill{background-color:#009a93}.theme-pda-retro .ProgressBar--color--blue{border:.0833333333em solid #1c71b1 !important}.theme-pda-retro .ProgressBar--color--blue .ProgressBar__fill{background-color:#1c71b1}.theme-pda-retro .ProgressBar--color--violet{border:.0833333333em solid #552dab !important}.theme-pda-retro .ProgressBar--color--violet .ProgressBar__fill{background-color:#552dab}.theme-pda-retro .ProgressBar--color--purple{border:.0833333333em solid #8b2baa !important}.theme-pda-retro .ProgressBar--color--purple .ProgressBar__fill{background-color:#8b2baa}.theme-pda-retro .ProgressBar--color--pink{border:.0833333333em solid #cf2082 !important}.theme-pda-retro .ProgressBar--color--pink .ProgressBar__fill{background-color:#cf2082}.theme-pda-retro .ProgressBar--color--brown{border:.0833333333em solid #8c5836 !important}.theme-pda-retro .ProgressBar--color--brown .ProgressBar__fill{background-color:#8c5836}.theme-pda-retro .ProgressBar--color--grey{border:.0833333333em solid #646464 !important}.theme-pda-retro .ProgressBar--color--grey .ProgressBar__fill{background-color:#646464}.theme-pda-retro .ProgressBar--color--good{border:.0833333333em solid #4d9121 !important}.theme-pda-retro .ProgressBar--color--good .ProgressBar__fill{background-color:#4d9121}.theme-pda-retro .ProgressBar--color--average{border:.0833333333em solid #000 !important}.theme-pda-retro .ProgressBar--color--average .ProgressBar__fill{background-color:#000}.theme-pda-retro .ProgressBar--color--bad{border:.0833333333em solid #bd2020 !important}.theme-pda-retro .ProgressBar--color--bad .ProgressBar__fill{background-color:#bd2020}.theme-pda-retro .ProgressBar--color--label{border:.0833333333em solid #000 !important}.theme-pda-retro .ProgressBar--color--label .ProgressBar__fill{background-color:#000}.theme-pda-retro .Section{position:relative;margin-bottom:.5em;background-color:#646d57;background-color:rgba(0,0,0,.1);box-sizing:border-box}.theme-pda-retro .Section:last-child{margin-bottom:0}.theme-pda-retro .Section__title{position:relative;padding:.5em;border-bottom:.1666666667em solid #000}.theme-pda-retro .Section__titleText{font-size:1.1666666667em;font-weight:bold;color:#000}.theme-pda-retro .Section__buttons{position:absolute;display:inline-block;right:.5em;margin-top:-0.0833333333em}.theme-pda-retro .Section__rest{position:relative}.theme-pda-retro .Section__content{padding:.66em .5em}.theme-pda-retro .Section--fitted>.Section__rest>.Section__content{padding:0}.theme-pda-retro .Section--fill{display:flex;flex-direction:column;height:100%}.theme-pda-retro .Section--fill>.Section__rest{flex-grow:1}.theme-pda-retro .Section--fill>.Section__rest>.Section__content{height:100%}.theme-pda-retro .Section--fill.Section--scrollable>.Section__rest>.Section__content{position:absolute;top:0;left:0;right:0;bottom:0}.theme-pda-retro .Section--fill.Section--iefix{display:table !important;width:100% !important;height:100% !important;border-collapse:collapse;border-spacing:0}.theme-pda-retro .Section--fill.Section--iefix>.Section__rest{display:table-row !important;height:100% !important}.theme-pda-retro .Section--scrollable{overflow-x:hidden;overflow-y:hidden}.theme-pda-retro .Section--scrollable>.Section__rest>.Section__content{overflow-y:auto;overflow-x:hidden}.theme-pda-retro .Section .Section{background-color:transparent;margin-left:-0.5em;margin-right:-0.5em}.theme-pda-retro .Section .Section:first-child{margin-top:-0.5em}.theme-pda-retro .Section .Section .Section__titleText{font-size:1.0833333333em}.theme-pda-retro .Section .Section .Section .Section__titleText{font-size:1em}.theme-pda-retro .Section--flex{display:flex;flex-flow:column}.theme-pda-retro .Section--flex .Section__content{overflow:auto;flex-grow:1}.theme-pda-retro .Section__content--noTopPadding{padding-top:0}.theme-pda-retro .Section__content--stretchContents{height:calc(100% - 3rem)}.theme-pda-retro .TinderMessage_First_Sent,.theme-pda-retro .TinderMessage_Subsequent_Sent,.theme-pda-retro .TinderMessage_First_Received,.theme-pda-retro .TinderMessage_Subsequent_Received{padding:6px;z-index:1;word-break:break-all;max-width:100%}.theme-pda-retro .TinderMessage_First_Sent,.theme-pda-retro .TinderMessage_Subsequent_Sent{text-align:right;background-color:#9faa91}.theme-pda-retro .TinderMessage_First_Sent{border-radius:10px 10px 0px 10px}.theme-pda-retro .TinderMessage_Subsequent_Sent{border-radius:10px 0px 0px 10px}.theme-pda-retro .TinderMessage_First_Received,.theme-pda-retro .TinderMessage_Subsequent_Received{text-align:left;background-color:#b8b37b}.theme-pda-retro .TinderMessage_First_Received{border-radius:10px 10px 10px 0px}.theme-pda-retro .TinderMessage_Subsequent_Received{border-radius:0px 10px 10px 0px}.theme-pda-retro .ClassicMessage_Sent,.theme-pda-retro .ClassicMessage_Received{word-break:break-all}.theme-pda-retro .ClassicMessage_Sent{color:#9faa91}.theme-pda-retro .ClassicMessage_Received{color:#b8b37b}.theme-pda-retro .Layout,.theme-pda-retro .Layout *{scrollbar-base-color:#535b49;scrollbar-face-color:#7e896e;scrollbar-3dlight-color:#6f7961;scrollbar-highlight-color:#6f7961;scrollbar-track-color:#535b49;scrollbar-arrow-color:#b7beae;scrollbar-shadow-color:#7e896e}.theme-pda-retro .Layout__content{position:absolute;top:0;bottom:0;left:0;right:0;overflow-x:hidden;overflow-y:hidden}.theme-pda-retro .Layout__content--scrollable{overflow-y:auto}.theme-pda-retro .Layout__content--flexRow{display:flex;flex-flow:row}.theme-pda-retro .Layout__content--flexColumn{display:flex;flex-flow:column}.theme-pda-retro .Window{position:fixed;top:0;bottom:0;left:0;right:0;color:#000;background-color:#6f7961;background-image:linear-gradient(to bottom, #6f7961 0%, #6f7961 100%)}.theme-pda-retro .Window__titleBar{position:fixed;z-index:1;top:0;left:0;width:100%;height:32px;height:2.6666666667rem}.theme-pda-retro .Window__rest{position:fixed;top:32px;top:2.6666666667rem;bottom:0;left:0;right:0}.theme-pda-retro .Window__contentPadding{margin:.5rem;height:100%;height:calc(100% - 1.01rem)}.theme-pda-retro .Window__contentPadding:after{height:0}.theme-pda-retro .Layout__content--scrollable .Window__contentPadding:after{display:block;content:"";height:.5rem}.theme-pda-retro .Window__dimmer{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(147,156,133,.25);pointer-events:none}.theme-pda-retro .Window__resizeHandle__se{position:fixed;bottom:0;right:0;width:20px;width:1.6666666667rem;height:20px;height:1.6666666667rem;cursor:se-resize}.theme-pda-retro .Window__resizeHandle__s{position:fixed;bottom:0;left:0;right:0;height:6px;height:.5rem;cursor:s-resize}.theme-pda-retro .Window__resizeHandle__e{position:fixed;top:0;bottom:0;right:0;width:3px;width:.25rem;cursor:e-resize}.theme-pda-retro .TitleBar{background-color:#363636;border-bottom:1px solid #161616;box-shadow:0 2px 2px rgba(0,0,0,.1);box-shadow:0 .1666666667rem .1666666667rem rgba(0,0,0,.1);user-select:none;-ms-user-select:none}.theme-pda-retro .TitleBar__clickable{color:rgba(255,255,255,.5);background-color:#363636;transition:color 250ms ease-out,background-color 250ms ease-out}.theme-pda-retro .TitleBar__clickable:hover{color:#fff;background-color:#c00;transition:color 0ms,background-color 0ms}.theme-pda-retro .TitleBar__title{position:absolute;display:inline-block;top:0;left:46px;left:3.8333333333rem;color:rgba(255,255,255,.75);font-size:14px;font-size:1.1666666667rem;line-height:31px;line-height:2.5833333333rem;white-space:nowrap;pointer-events:none}.theme-pda-retro .TitleBar__buttons{pointer-events:initial;display:inline-block;width:100%;margin-left:10px}.theme-pda-retro .TitleBar__dragZone{position:absolute;top:0;left:0;right:0;height:32px;height:2.6666666667rem}.theme-pda-retro .TitleBar__statusIcon{position:absolute;top:0;left:12px;left:1rem;transition:color .5s;font-size:20px;font-size:1.6666666667rem;line-height:32px !important;line-height:2.6666666667rem !important}.theme-pda-retro .TitleBar__close{position:absolute;top:-1px;right:0;width:45px;width:3.75rem;height:32px;height:2.6666666667rem;font-size:20px;font-size:1.6666666667rem;line-height:31px;line-height:2.5833333333rem;text-align:center}.theme-pda-retro .TitleBar__devBuildIndicator{position:absolute;top:6px;top:.5rem;right:52px;right:4.3333333333rem;min-width:20px;min-width:1.6666666667rem;padding:2px 4px;padding:.1666666667rem .3333333333rem;background-color:rgba(91,170,39,.75);color:#fff;text-align:center}.theme-pda-retro .Button{color:#161613;background-color:#565d4b;border:1px solid #000}.theme-pda-retro .Layout__content{background-image:none}.theme-pda-retro .LabeledList__label{font-weight:bold}.theme-pda-retro .Tooltip::after{color:#fff} .theme-retro .Button{position:relative;display:inline-block;line-height:1.667em;padding:0 .5em;margin-right:.1666666667em;white-space:nowrap;outline:0;border-radius:0;margin-bottom:.1666666667em;user-select:none;-ms-user-select:none}.theme-retro .Button:last-child{margin-right:0;margin-bottom:0}.theme-retro .Button .fa,.theme-retro .Button .fas,.theme-retro .Button .far{margin-left:-0.25em;margin-right:-0.25em;min-width:1.333em;text-align:center}.theme-retro .Button--hasContent .fa,.theme-retro .Button--hasContent .fas,.theme-retro .Button--hasContent .far{margin-right:.25em}.theme-retro .Button--hasContent.Button--iconPosition--right .fa,.theme-retro .Button--hasContent.Button--iconPosition--right .fas,.theme-retro .Button--hasContent.Button--iconPosition--right .far{margin-right:0px;margin-left:3px}.theme-retro .Button--ellipsis{overflow:hidden;text-overflow:ellipsis}.theme-retro .Button--fluid{display:block;margin-left:0;margin-right:0}.theme-retro .Button--circular{border-radius:50%}.theme-retro .Button--compact{padding:0 .25em;line-height:1.333em}.theme-retro .Button--color--default{transition:color 50ms,background-color 50ms;background-color:#e8e4c9;color:#000}.theme-retro .Button--color--default:hover{transition:color 0ms,background-color 0ms}.theme-retro .Button--color--default:focus{transition:color 100ms,background-color 100ms}.theme-retro .Button--color--default:hover,.theme-retro .Button--color--default:focus{background-color:#fbfaf6;color:#000}.theme-retro .Button--color--caution{transition:color 50ms,background-color 50ms;background-color:#be6209;color:#fff}.theme-retro .Button--color--caution:hover{transition:color 0ms,background-color 0ms}.theme-retro .Button--color--caution:focus{transition:color 100ms,background-color 100ms}.theme-retro .Button--color--caution:hover,.theme-retro .Button--color--caution:focus{background-color:#ec8420;color:#fff}.theme-retro .Button--color--danger{transition:color 50ms,background-color 50ms;background-color:#9a9d00;color:#fff}.theme-retro .Button--color--danger:hover{transition:color 0ms,background-color 0ms}.theme-retro .Button--color--danger:focus{transition:color 100ms,background-color 100ms}.theme-retro .Button--color--danger:hover,.theme-retro .Button--color--danger:focus{background-color:#c4c813;color:#fff}.theme-retro .Button--color--transparent{transition:color 50ms,background-color 50ms;background-color:#e8e4c9;color:#000;background-color:rgba(232,228,201,0);color:rgba(255,255,255,.5)}.theme-retro .Button--color--transparent:hover{transition:color 0ms,background-color 0ms}.theme-retro .Button--color--transparent:focus{transition:color 100ms,background-color 100ms}.theme-retro .Button--color--transparent:hover,.theme-retro .Button--color--transparent:focus{background-color:#fbfaf6;color:#000}.theme-retro .Button--disabled{background-color:#363636 !important}.theme-retro .Button--selected{transition:color 50ms,background-color 50ms;background-color:#9d0808;color:#fff}.theme-retro .Button--selected:hover{transition:color 0ms,background-color 0ms}.theme-retro .Button--selected:focus{transition:color 100ms,background-color 100ms}.theme-retro .Button--selected:hover,.theme-retro .Button--selected:focus{background-color:#c81c1c;color:#fff}.theme-retro .ProgressBar{display:inline-block;position:relative;width:100%;padding:0 .5em;border-radius:0;background-color:rgba(0,0,0,.5);transition:border-color 900ms ease-out}.theme-retro .ProgressBar__fill{position:absolute;top:-0.5px;left:0px;bottom:-0.5px}.theme-retro .ProgressBar__fill--animated{transition:background-color 900ms ease-out,width 900ms ease-out}.theme-retro .ProgressBar__content{position:relative;line-height:1.4166666667em;width:100%;text-align:right}.theme-retro .ProgressBar--color--default{border:.0833333333em solid #000}.theme-retro .ProgressBar--color--default .ProgressBar__fill{background-color:#000}.theme-retro .Section{position:relative;margin-bottom:.5em;background-color:#9b9987;background-color:rgba(0,0,0,.33);box-sizing:border-box}.theme-retro .Section:last-child{margin-bottom:0}.theme-retro .Section__title{position:relative;padding:.5em;border-bottom:.1666666667em solid #000}.theme-retro .Section__titleText{font-size:1.1666666667em;font-weight:bold;color:#fff}.theme-retro .Section__buttons{position:absolute;display:inline-block;right:.5em;margin-top:-0.0833333333em}.theme-retro .Section__rest{position:relative}.theme-retro .Section__content{padding:.66em .5em}.theme-retro .Section--fitted>.Section__rest>.Section__content{padding:0}.theme-retro .Section--fill{display:flex;flex-direction:column;height:100%}.theme-retro .Section--fill>.Section__rest{flex-grow:1}.theme-retro .Section--fill>.Section__rest>.Section__content{height:100%}.theme-retro .Section--fill.Section--scrollable>.Section__rest>.Section__content{position:absolute;top:0;left:0;right:0;bottom:0}.theme-retro .Section--fill.Section--iefix{display:table !important;width:100% !important;height:100% !important;border-collapse:collapse;border-spacing:0}.theme-retro .Section--fill.Section--iefix>.Section__rest{display:table-row !important;height:100% !important}.theme-retro .Section--scrollable{overflow-x:hidden;overflow-y:hidden}.theme-retro .Section--scrollable>.Section__rest>.Section__content{overflow-y:auto;overflow-x:hidden}.theme-retro .Section .Section{background-color:transparent;margin-left:-0.5em;margin-right:-0.5em}.theme-retro .Section .Section:first-child{margin-top:-0.5em}.theme-retro .Section .Section .Section__titleText{font-size:1.0833333333em}.theme-retro .Section .Section .Section .Section__titleText{font-size:1em}.theme-retro .Section--flex{display:flex;flex-flow:column}.theme-retro .Section--flex .Section__content{overflow:auto;flex-grow:1}.theme-retro .Section__content--noTopPadding{padding-top:0}.theme-retro .Section__content--stretchContents{height:calc(100% - 3rem)}.theme-retro .Layout,.theme-retro .Layout *{scrollbar-base-color:#c8be7d;scrollbar-face-color:#eae7ce;scrollbar-3dlight-color:#e8e4c9;scrollbar-highlight-color:#e8e4c9;scrollbar-track-color:#c8be7d;scrollbar-arrow-color:#f4f2e4;scrollbar-shadow-color:#eae7ce}.theme-retro .Layout__content{position:absolute;top:0;bottom:0;left:0;right:0;overflow-x:hidden;overflow-y:hidden}.theme-retro .Layout__content--scrollable{overflow-y:auto}.theme-retro .Layout__content--flexRow{display:flex;flex-flow:row}.theme-retro .Layout__content--flexColumn{display:flex;flex-flow:column}.theme-retro .Window{position:fixed;top:0;bottom:0;left:0;right:0;color:#fff;background-color:#e8e4c9;background-image:linear-gradient(to bottom, #e8e4c9 0%, #e8e4c9 100%)}.theme-retro .Window__titleBar{position:fixed;z-index:1;top:0;left:0;width:100%;height:32px;height:2.6666666667rem}.theme-retro .Window__rest{position:fixed;top:32px;top:2.6666666667rem;bottom:0;left:0;right:0}.theme-retro .Window__contentPadding{margin:.5rem;height:100%;height:calc(100% - 1.01rem)}.theme-retro .Window__contentPadding:after{height:0}.theme-retro .Layout__content--scrollable .Window__contentPadding:after{display:block;content:"";height:.5rem}.theme-retro .Window__dimmer{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(251,250,246,.25);pointer-events:none}.theme-retro .Window__resizeHandle__se{position:fixed;bottom:0;right:0;width:20px;width:1.6666666667rem;height:20px;height:1.6666666667rem;cursor:se-resize}.theme-retro .Window__resizeHandle__s{position:fixed;bottom:0;left:0;right:0;height:6px;height:.5rem;cursor:s-resize}.theme-retro .Window__resizeHandle__e{position:fixed;top:0;bottom:0;right:0;width:3px;width:.25rem;cursor:e-resize}.theme-retro .TitleBar{background-color:#585337;border-bottom:1px solid #161616;box-shadow:0 2px 2px rgba(0,0,0,.1);box-shadow:0 .1666666667rem .1666666667rem rgba(0,0,0,.1);user-select:none;-ms-user-select:none}.theme-retro .TitleBar__clickable{color:rgba(255,255,255,.5);background-color:#585337;transition:color 250ms ease-out,background-color 250ms ease-out}.theme-retro .TitleBar__clickable:hover{color:#fff;background-color:#c00;transition:color 0ms,background-color 0ms}.theme-retro .TitleBar__title{position:absolute;display:inline-block;top:0;left:46px;left:3.8333333333rem;color:rgba(255,255,255,.75);font-size:14px;font-size:1.1666666667rem;line-height:31px;line-height:2.5833333333rem;white-space:nowrap;pointer-events:none}.theme-retro .TitleBar__buttons{pointer-events:initial;display:inline-block;width:100%;margin-left:10px}.theme-retro .TitleBar__dragZone{position:absolute;top:0;left:0;right:0;height:32px;height:2.6666666667rem}.theme-retro .TitleBar__statusIcon{position:absolute;top:0;left:12px;left:1rem;transition:color .5s;font-size:20px;font-size:1.6666666667rem;line-height:32px !important;line-height:2.6666666667rem !important}.theme-retro .TitleBar__close{position:absolute;top:-1px;right:0;width:45px;width:3.75rem;height:32px;height:2.6666666667rem;font-size:20px;font-size:1.6666666667rem;line-height:31px;line-height:2.5833333333rem;text-align:center}.theme-retro .TitleBar__devBuildIndicator{position:absolute;top:6px;top:.5rem;right:52px;right:4.3333333333rem;min-width:20px;min-width:1.6666666667rem;padding:2px 4px;padding:.1666666667rem .3333333333rem;background-color:rgba(91,170,39,.75);color:#fff;text-align:center}.theme-retro .Button{font-family:monospace;color:#161613;border:.1666666667em outset #e8e4c9;outline:.0833333333em solid #161613}.theme-retro .Layout__content{background-image:none} -.theme-syndicate .Button{position:relative;display:inline-block;line-height:1.667em;padding:0 .5em;margin-right:.1666666667em;white-space:nowrap;outline:0;border-radius:.16em;margin-bottom:.1666666667em;user-select:none;-ms-user-select:none}.theme-syndicate .Button:last-child{margin-right:0;margin-bottom:0}.theme-syndicate .Button .fa,.theme-syndicate .Button .fas,.theme-syndicate .Button .far{margin-left:-0.25em;margin-right:-0.25em;min-width:1.333em;text-align:center}.theme-syndicate .Button--hasContent .fa,.theme-syndicate .Button--hasContent .fas,.theme-syndicate .Button--hasContent .far{margin-right:.25em}.theme-syndicate .Button--hasContent.Button--iconPosition--right .fa,.theme-syndicate .Button--hasContent.Button--iconPosition--right .fas,.theme-syndicate .Button--hasContent.Button--iconPosition--right .far{margin-right:0px;margin-left:3px}.theme-syndicate .Button--ellipsis{overflow:hidden;text-overflow:ellipsis}.theme-syndicate .Button--fluid{display:block;margin-left:0;margin-right:0}.theme-syndicate .Button--circular{border-radius:50%}.theme-syndicate .Button--compact{padding:0 .25em;line-height:1.333em}.theme-syndicate .Button--color--default{transition:color 50ms,background-color 50ms;background-color:#397439;color:#fff}.theme-syndicate .Button--color--default:hover{transition:color 0ms,background-color 0ms}.theme-syndicate .Button--color--default:focus{transition:color 100ms,background-color 100ms}.theme-syndicate .Button--color--default:hover,.theme-syndicate .Button--color--default:focus{background-color:#595;color:#fff}.theme-syndicate .Button--color--caution{transition:color 50ms,background-color 50ms;background-color:#be6209;color:#fff}.theme-syndicate .Button--color--caution:hover{transition:color 0ms,background-color 0ms}.theme-syndicate .Button--color--caution:focus{transition:color 100ms,background-color 100ms}.theme-syndicate .Button--color--caution:hover,.theme-syndicate .Button--color--caution:focus{background-color:#ec8420;color:#fff}.theme-syndicate .Button--color--danger{transition:color 50ms,background-color 50ms;background-color:#9a9d00;color:#fff}.theme-syndicate .Button--color--danger:hover{transition:color 0ms,background-color 0ms}.theme-syndicate .Button--color--danger:focus{transition:color 100ms,background-color 100ms}.theme-syndicate .Button--color--danger:hover,.theme-syndicate .Button--color--danger:focus{background-color:#c4c813;color:#fff}.theme-syndicate .Button--color--transparent{transition:color 50ms,background-color 50ms;background-color:#550202;color:#fff;background-color:rgba(85,2,2,0);color:rgba(255,255,255,.5)}.theme-syndicate .Button--color--transparent:hover{transition:color 0ms,background-color 0ms}.theme-syndicate .Button--color--transparent:focus{transition:color 100ms,background-color 100ms}.theme-syndicate .Button--color--transparent:hover,.theme-syndicate .Button--color--transparent:focus{background-color:#751616;color:#fff}.theme-syndicate .Button--disabled{background-color:#363636 !important}.theme-syndicate .Button--selected{transition:color 50ms,background-color 50ms;background-color:#9d0808;color:#fff}.theme-syndicate .Button--selected:hover{transition:color 0ms,background-color 0ms}.theme-syndicate .Button--selected:focus{transition:color 100ms,background-color 100ms}.theme-syndicate .Button--selected:hover,.theme-syndicate .Button--selected:focus{background-color:#c81c1c;color:#fff}.theme-syndicate .Input{position:relative;display:inline-block;width:10em;border:.0833333333em solid #87ce87;border:.0833333333em solid rgba(135,206,135,.75);border-radius:.16em;color:#fff;background-color:#0a0a0a;padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;overflow:visible}.theme-syndicate .Input--fluid{display:block;width:auto}.theme-syndicate .Input__baseline{display:inline-block;color:transparent}.theme-syndicate .Input__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:transparent;color:#fff;color:inherit}.theme-syndicate .Input__input:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-syndicate .Input--monospace .Input__input{font-family:"Consolas",monospace}.theme-syndicate .NanoMap__container{overflow:hiddden;width:100%;z-index:1}.theme-syndicate .NanoMap__marker{z-index:10;padding:0px;margin:0px}.theme-syndicate .NanoMap__zoomer{z-index:20;background-color:rgba(0,0,0,.33);position:absolute;top:30px;left:0;padding:.5rem;width:30%}.theme-syndicate .NoticeBox{padding:.33em .5em;margin-bottom:.5em;box-shadow:none;font-weight:bold;font-style:italic;color:#fff;background-color:#910101;background-image:repeating-linear-gradient(-45deg, transparent, transparent 0.8333333333em, rgba(0, 0, 0, 0.1) 0.8333333333em, rgba(0, 0, 0, 0.1) 1.6666666667em)}.theme-syndicate .NoticeBox--type--info{color:#fff;background-color:#235982}.theme-syndicate .NoticeBox--type--success{color:#fff;background-color:#1e662f}.theme-syndicate .NoticeBox--type--warning{color:#fff;background-color:#a95219}.theme-syndicate .NoticeBox--type--danger{color:#fff;background-color:#8f2828}.theme-syndicate .Input{position:relative;display:inline-block;width:10em;border:.0833333333em solid #87ce87;border:.0833333333em solid rgba(135,206,135,.75);border-radius:.16em;color:#fff;background-color:#0a0a0a;padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;overflow:visible}.theme-syndicate .Input--fluid{display:block;width:auto}.theme-syndicate .Input__baseline{display:inline-block;color:transparent}.theme-syndicate .Input__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:transparent;color:#fff;color:inherit}.theme-syndicate .Input__input:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-syndicate .Input--monospace .Input__input{font-family:"Consolas",monospace}.theme-syndicate .NumberInput{position:relative;display:inline-block;border:.0833333333em solid #87ce87;border:.0833333333em solid rgba(135,206,135,.75);border-radius:.16em;color:#87ce87;background-color:#0a0a0a;padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;text-align:right;overflow:visible;cursor:n-resize}.theme-syndicate .NumberInput--fluid{display:block}.theme-syndicate .NumberInput__content{margin-left:.5em}.theme-syndicate .NumberInput__barContainer{position:absolute;top:.1666666667em;bottom:.1666666667em;left:.1666666667em}.theme-syndicate .NumberInput__bar{position:absolute;bottom:0;left:0;width:.25em;box-sizing:border-box;border-bottom:.0833333333em solid #87ce87;background-color:#87ce87}.theme-syndicate .NumberInput__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:#0a0a0a;color:#fff;text-align:right}.theme-syndicate .ProgressBar{display:inline-block;position:relative;width:100%;padding:0 .5em;border-radius:.16em;background-color:rgba(0,0,0,.5);transition:border-color 900ms ease-out}.theme-syndicate .ProgressBar__fill{position:absolute;top:-0.5px;left:0px;bottom:-0.5px}.theme-syndicate .ProgressBar__fill--animated{transition:background-color 900ms ease-out,width 900ms ease-out}.theme-syndicate .ProgressBar__content{position:relative;line-height:1.4166666667em;width:100%;text-align:right}.theme-syndicate .ProgressBar--color--default{border:.0833333333em solid #306330}.theme-syndicate .ProgressBar--color--default .ProgressBar__fill{background-color:#306330}.theme-syndicate .Section{position:relative;margin-bottom:.5em;background-color:#390101;background-color:rgba(0,0,0,.33);box-sizing:border-box}.theme-syndicate .Section:last-child{margin-bottom:0}.theme-syndicate .Section__title{position:relative;padding:.5em;border-bottom:.1666666667em solid #397439}.theme-syndicate .Section__titleText{font-size:1.1666666667em;font-weight:bold;color:#fff}.theme-syndicate .Section__buttons{position:absolute;display:inline-block;right:.5em;margin-top:-0.0833333333em}.theme-syndicate .Section__rest{position:relative}.theme-syndicate .Section__content{padding:.66em .5em}.theme-syndicate .Section--fitted>.Section__rest>.Section__content{padding:0}.theme-syndicate .Section--fill{display:flex;flex-direction:column;height:100%}.theme-syndicate .Section--fill>.Section__rest{flex-grow:1}.theme-syndicate .Section--fill>.Section__rest>.Section__content{height:100%}.theme-syndicate .Section--fill.Section--scrollable>.Section__rest>.Section__content{position:absolute;top:0;left:0;right:0;bottom:0}.theme-syndicate .Section--fill.Section--iefix{display:table !important;width:100% !important;height:100% !important;border-collapse:collapse;border-spacing:0}.theme-syndicate .Section--fill.Section--iefix>.Section__rest{display:table-row !important;height:100% !important}.theme-syndicate .Section--scrollable{overflow-x:hidden;overflow-y:hidden}.theme-syndicate .Section--scrollable>.Section__rest>.Section__content{overflow-y:auto;overflow-x:hidden}.theme-syndicate .Section .Section{background-color:transparent;margin-left:-0.5em;margin-right:-0.5em}.theme-syndicate .Section .Section:first-child{margin-top:-0.5em}.theme-syndicate .Section .Section .Section__titleText{font-size:1.0833333333em}.theme-syndicate .Section .Section .Section .Section__titleText{font-size:1em}.theme-syndicate .Section--flex{display:flex;flex-flow:column}.theme-syndicate .Section--flex .Section__content{overflow:auto;flex-grow:1}.theme-syndicate .Section__content--noTopPadding{padding-top:0}.theme-syndicate .Section__content--stretchContents{height:calc(100% - 3rem)}.theme-syndicate .Tooltip{z-index:2;padding:.5em .75em;pointer-events:none;text-align:left;transition:all 150ms ease-out;background-color:#4a0202;color:#fff;box-shadow:.1em .1em 1.25em -0.1em rgba(0,0,0,.5);border-radius:.16em;max-width:20.8333333333em}.theme-syndicate .Layout,.theme-syndicate .Layout *{scrollbar-base-color:#400202;scrollbar-face-color:#7e0303;scrollbar-3dlight-color:#550202;scrollbar-highlight-color:#550202;scrollbar-track-color:#400202;scrollbar-arrow-color:#fa3030;scrollbar-shadow-color:#7e0303}.theme-syndicate .Layout__content{position:absolute;top:0;bottom:0;left:0;right:0;overflow-x:hidden;overflow-y:hidden}.theme-syndicate .Layout__content--scrollable{overflow-y:auto}.theme-syndicate .Layout__content--flexRow{display:flex;flex-flow:row}.theme-syndicate .Layout__content--flexColumn{display:flex;flex-flow:column}.theme-syndicate .Window{position:fixed;top:0;bottom:0;left:0;right:0;color:#fff;background-color:#550202;background-image:linear-gradient(to bottom, #730303 0%, #370101 100%)}.theme-syndicate .Window__titleBar{position:fixed;z-index:1;top:0;left:0;width:100%;height:32px;height:2.6666666667rem}.theme-syndicate .Window__rest{position:fixed;top:32px;top:2.6666666667rem;bottom:0;left:0;right:0}.theme-syndicate .Window__contentPadding{margin:.5rem;height:100%;height:calc(100% - 1.01rem)}.theme-syndicate .Window__contentPadding:after{height:0}.theme-syndicate .Layout__content--scrollable .Window__contentPadding:after{display:block;content:"";height:.5rem}.theme-syndicate .Window__dimmer{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(117,22,22,.25);pointer-events:none}.theme-syndicate .Window__resizeHandle__se{position:fixed;bottom:0;right:0;width:20px;width:1.6666666667rem;height:20px;height:1.6666666667rem;cursor:se-resize}.theme-syndicate .Window__resizeHandle__s{position:fixed;bottom:0;left:0;right:0;height:6px;height:.5rem;cursor:s-resize}.theme-syndicate .Window__resizeHandle__e{position:fixed;top:0;bottom:0;right:0;width:3px;width:.25rem;cursor:e-resize}.theme-syndicate .TitleBar{background-color:#910101;border-bottom:1px solid #161616;box-shadow:0 2px 2px rgba(0,0,0,.1);box-shadow:0 .1666666667rem .1666666667rem rgba(0,0,0,.1);user-select:none;-ms-user-select:none}.theme-syndicate .TitleBar__clickable{color:rgba(255,255,255,.5);background-color:#910101;transition:color 250ms ease-out,background-color 250ms ease-out}.theme-syndicate .TitleBar__clickable:hover{color:#fff;background-color:#c00;transition:color 0ms,background-color 0ms}.theme-syndicate .TitleBar__title{position:absolute;display:inline-block;top:0;left:46px;left:3.8333333333rem;color:rgba(255,255,255,.75);font-size:14px;font-size:1.1666666667rem;line-height:31px;line-height:2.5833333333rem;white-space:nowrap;pointer-events:none}.theme-syndicate .TitleBar__buttons{pointer-events:initial;display:inline-block;width:100%;margin-left:10px}.theme-syndicate .TitleBar__dragZone{position:absolute;top:0;left:0;right:0;height:32px;height:2.6666666667rem}.theme-syndicate .TitleBar__statusIcon{position:absolute;top:0;left:12px;left:1rem;transition:color .5s;font-size:20px;font-size:1.6666666667rem;line-height:32px !important;line-height:2.6666666667rem !important}.theme-syndicate .TitleBar__close{position:absolute;top:-1px;right:0;width:45px;width:3.75rem;height:32px;height:2.6666666667rem;font-size:20px;font-size:1.6666666667rem;line-height:31px;line-height:2.5833333333rem;text-align:center}.theme-syndicate .TitleBar__devBuildIndicator{position:absolute;top:6px;top:.5rem;right:52px;right:4.3333333333rem;min-width:20px;min-width:1.6666666667rem;padding:2px 4px;padding:.1666666667rem .3333333333rem;background-color:rgba(91,170,39,.75);color:#fff;text-align:center}.theme-syndicate .Layout__content{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+DQo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmVyc2lvbj0iMS4wIiB2aWV3Qm94PSIwIDAgMjAwIDI4OS43NDIiIG9wYWNpdHk9Ii4zMyI+DQogIDxwYXRoIGQ9Im0gOTMuNTM3Njc3LDAgYyAtMTguMTEzMTI1LDAgLTM0LjIyMDEzMywzLjExMTY0IC00OC4zMjM0ODQsOS4zMzQzNyAtMTMuOTY1MDkyLDYuMjIxNjcgLTI0LjYxMjQ0MiwxNS4wNzExNCAtMzEuOTQwNjUxLDI2LjU0NzEgLTcuMTg5OTM5OCwxMS4zMzc4OSAtMTAuMzAxMjI2NiwyNC43NDkxMSAtMTAuMzAxMjI2Niw0MC4yMzQ3OCAwLDEwLjY0NjYyIDIuNzI1MDAyNiwyMC40NjQ2NSA4LjE3NTExMTYsMjkuNDUyNTggNS42MTUyNzcsOC45ODY4NiAxNC4wMzgyNzcsMTcuMzUyMDQgMjUuMjY4ODIxLDI1LjA5NDM2IDExLjIzMDU0NCw3LjYwNTMxIDI2LjUwNzQyMSwxNS40MTgzNSA0NS44MzA1MTQsMjMuNDM3ODIgMTkuOTgzNzQ4LDguMjk1NTcgMzQuODQ4ODQ4LDE1LjU1NDcxIDQ0LjU5Mjk5OCwyMS43NzYzOCA5Ljc0NDE0LDYuMjIyNzMgMTYuNzYxNywxMi44NTg1IDIxLjA1NTcyLDE5LjkwOTUxIDQuMjk0MDQsNy4wNTIwOCA2LjQ0MTkzLDE1Ljc2NDA4IDYuNDQxOTMsMjYuMTM0NTkgMCwxNi4xNzcwMiAtNS4yMDE5NiwyOC40ODIyMiAtMTUuNjA2NzMsMzYuOTE2ODIgLTEwLjIzOTYsOC40MzQ3IC0yNS4wMjIwMywxMi42NTIzIC00NC4zNDUxNjksMTIuNjUyMyAtMTQuMDM4MTcxLDAgLTI1LjUxNTI0NywtMS42NTk0IC0zNC40MzM2MTgsLTQuOTc3NyAtOC45MTgzNywtMy40NTY2IC0xNi4xODU1NzIsLTguNzExMyAtMjEuODAwODM5LC0xNS43NjMzIC01LjYxNTI3NywtNy4wNTIxIC0xMC4wNzQ3OTUsLTE2LjY2MDg4IC0xMy4zNzc4OTksLTI4LjgyODEyIGwgLTI0Ljc3MzE2MjYyOTM5NDUsMCAwLDU2LjgyNjMyIEMgMzMuODU2NzY5LDI4Ni4wNzYwMSA2My43NDkwNCwyODkuNzQyMDEgODkuNjc4MzgzLDI4OS43NDIwMSBjIDE2LjAyMDAyNywwIDMwLjcxOTc4NywtMS4zODI3IDQ0LjA5NzMzNywtNC4xNDc5IDEzLjU0MjcyLC0yLjkwNDMgMjUuMTA0MSwtNy40Njc2IDM0LjY4MzA5LC0xMy42ODkzIDkuNzQ0MTMsLTYuMzU5NyAxNy4zNDA0MiwtMTQuNTE5NSAyMi43OTA1MiwtMjQuNDc0OCA1LjQ1MDEsLTEwLjA5MzMyIDguMTc1MTEsLTIyLjM5OTU5IDguMTc1MTEsLTM2LjkxNjgyIDAsLTEyLjk5NzY0IC0zLjMwMjEsLTI0LjMzNTM5IC05LjkwODI5LC0zNC4wMTQ2IC02LjQ0MTA1LC05LjgxNzI1IC0xNS41MjU0NSwtMTguNTI3MDcgLTI3LjI1MTQ2LC0yNi4xMzEzMyAtMTEuNTYwODUsLTcuNjA0MjcgLTI3LjkxMDgzLC0xNS44MzE0MiAtNDkuMDUwNjYsLTI0LjY4MDIyIC0xNy41MDY0NCwtNy4xOTAxMiAtMzAuNzE5NjY4LC0xMy42ODk0OCAtMzkuNjM4MDM4LC0xOS40OTcwMSAtOC45MTgzNzEsLTUuODA3NTIgLTE4LjYwNzQ3NCwtMTIuNDM0MDkgLTI0LjA5NjUyNCwtMTguODc0MTcgLTUuNDI2MDQzLC02LjM2NjE2IC05LjY1ODgyNiwtMTUuMDcwMDMgLTkuNjU4ODI2LC0yNC44ODcyOSAwLC05LjI2NDAxIDIuMDc1NDE0LC0xNy4yMTM0NSA2LjIyMzQ1NCwtMjMuODUwMzMgMTEuMDk4Mjk4LC0xNC4zOTc0OCA0MS4yODY2MzgsLTEuNzk1MDcgNDUuMDc1NjA5LDI0LjM0NzYyIDQuODM5MzkyLDYuNzc0OTEgOC44NDkzNSwxNi4yNDcyOSAxMi4wMjk1MTUsMjguNDE1NiBsIDIwLjUzMjM0LDAgMCwtNTUuOTk5NjcgYyAtNC40NzgyNSwtNS45MjQ0OCAtOS45NTQ4OCwtMTAuNjMyMjIgLTE1LjkwODM3LC0xNC4zNzQxMSAxLjY0MDU1LDAuNDc5MDUgMy4xOTAzOSwxLjAyMzc2IDQuNjM4NjUsMS42NDAyNCA2LjQ5ODYxLDIuNjI2MDcgMTIuMTY3OTMsNy4zMjc0NyAxNy4wMDczLDE0LjEwMzQ1IDQuODM5MzksNi43NzQ5MSA4Ljg0OTM1LDE2LjI0NTY3IDEyLjAyOTUyLDI4LjQxMzk3IDAsMCA4LjQ4MTI4LC0wLjEyODk0IDguNDg5NzgsLTAuMDAyIDAuNDE3NzYsNi40MTQ5NCAtMS43NTMzOSw5LjQ1Mjg2IC00LjEyMzQyLDEyLjU2MTA0IC0yLjQxNzQsMy4xNjk3OCAtNS4xNDQ4Niw2Ljc4OTczIC00LjAwMjc4LDEzLjAwMjkgMS41MDc4Niw4LjIwMzE4IDEwLjE4MzU0LDEwLjU5NjQyIDE0LjYyMTk0LDkuMzExNTQgLTMuMzE4NDIsLTAuNDk5MTEgLTUuMzE4NTUsLTEuNzQ5NDggLTUuMzE4NTUsLTEuNzQ5NDggMCwwIDEuODc2NDYsMC45OTg2OCA1LjY1MTE3LC0xLjM1OTgxIC0zLjI3Njk1LDAuOTU1NzEgLTEwLjcwNTI5LC0wLjc5NzM4IC0xMS44MDEyNSwtNi43NjMxMyAtMC45NTc1MiwtNS4yMDg2MSAwLjk0NjU0LC03LjI5NTE0IDMuNDAxMTMsLTEwLjUxNDgyIDIuNDU0NjIsLTMuMjE5NjggNS4yODQyNiwtNi45NTgzMSA0LjY4NDMsLTE0LjQ4ODI0IGwgMC4wMDMsMC4wMDIgOC45MjY3NiwwIDAsLTU1Ljk5OTY3IGMgLTE1LjA3MTI1LC0zLjg3MTY4IC0yNy42NTMxNCwtNi4zNjA0MiAtMzcuNzQ2NzEsLTcuNDY1ODYgLTkuOTU1MzEsLTEuMTA3NTUgLTIwLjE4ODIzLC0xLjY1OTgxIC0zMC42OTY2MTMsLTEuNjU5ODEgeiBtIDcwLjMyMTYwMywxNy4zMDg5MyAwLjIzODA1LDQwLjMwNDkgYyAxLjMxODA4LDEuMjI2NjYgMi40Mzk2NSwyLjI3ODE1IDMuMzQwODEsMy4xMDYwMiA0LjgzOTM5LDYuNzc0OTEgOC44NDkzNCwxNi4yNDU2NiAxMi4wMjk1MSwyOC40MTM5NyBsIDIwLjUzMjM0LDAgMCwtNTUuOTk5NjcgYyAtNi42NzczMSwtNC41OTM4MSAtMTkuODM2NDMsLTEwLjQ3MzA5IC0zNi4xNDA3MSwtMTUuODI1MjIgeiBtIC0yOC4xMjA0OSw1LjYwNTUxIDguNTY0NzksMTcuNzE2NTUgYyAtMTEuOTcwMzcsLTYuNDY2OTcgLTEzLjg0Njc4LC05LjcxNzI2IC04LjU2NDc5LC0xNy43MTY1NSB6IG0gMjIuNzk3MDUsMCBjIDIuNzcxNSw3Ljk5OTI5IDEuNzg3NDEsMTEuMjQ5NTggLTQuNDkzNTQsMTcuNzE2NTUgbCA0LjQ5MzU0LC0xNy43MTY1NSB6IG0gMTUuMjIxOTUsMjQuMDA4NDggOC41NjQ3OSwxNy43MTY1NSBjIC0xMS45NzAzOCwtNi40NjY5NyAtMTMuODQ2NzksLTkuNzE3MjYgLTguNTY0NzksLTE3LjcxNjU1IHogbSAyMi43OTcwNCwwIGMgMi43NzE1LDcuOTk5MjkgMS43ODc0MSwxMS4yNDk1OCAtNC40OTM1NCwxNy43MTY1NSBsIDQuNDkzNTQsLTE3LjcxNjU1IHogbSAtOTkuMTEzODQsMi4yMDc2NCA4LjU2NDc5LDE3LjcxNjU1IGMgLTExLjk3MDM4MiwtNi40NjY5NyAtMTMuODQ2NzgyLC05LjcxNzI2IC04LjU2NDc5LC0xNy43MTY1NSB6IG0gMjIuNzk1NDIsMCBjIDIuNzcxNSw3Ljk5OTI5IDEuNzg3NDEsMTEuMjQ5NTggLTQuNDkzNTQsMTcuNzE2NTUgbCA0LjQ5MzU0LC0xNy43MTY1NSB6IiAvPg0KPC9zdmc+DQo8IS0tIFRoaXMgd29yayBpcyBsaWNlbnNlZCB1bmRlciBhIENyZWF0aXZlIENvbW1vbnMgQXR0cmlidXRpb24tU2hhcmVBbGlrZSA0LjAgSW50ZXJuYXRpb25hbCBMaWNlbnNlLiAtLT4NCjwhLS0gaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbGljZW5zZXMvYnktc2EvNC4wLyAtLT4NCg==)} +.theme-syndicate .Button{position:relative;display:inline-block;line-height:1.667em;padding:0 .5em;margin-right:.1666666667em;white-space:nowrap;outline:0;border-radius:.16em;margin-bottom:.1666666667em;user-select:none;-ms-user-select:none}.theme-syndicate .Button:last-child{margin-right:0;margin-bottom:0}.theme-syndicate .Button .fa,.theme-syndicate .Button .fas,.theme-syndicate .Button .far{margin-left:-0.25em;margin-right:-0.25em;min-width:1.333em;text-align:center}.theme-syndicate .Button--hasContent .fa,.theme-syndicate .Button--hasContent .fas,.theme-syndicate .Button--hasContent .far{margin-right:.25em}.theme-syndicate .Button--hasContent.Button--iconPosition--right .fa,.theme-syndicate .Button--hasContent.Button--iconPosition--right .fas,.theme-syndicate .Button--hasContent.Button--iconPosition--right .far{margin-right:0px;margin-left:3px}.theme-syndicate .Button--ellipsis{overflow:hidden;text-overflow:ellipsis}.theme-syndicate .Button--fluid{display:block;margin-left:0;margin-right:0}.theme-syndicate .Button--circular{border-radius:50%}.theme-syndicate .Button--compact{padding:0 .25em;line-height:1.333em}.theme-syndicate .Button--color--default{transition:color 50ms,background-color 50ms;background-color:#397439;color:#fff}.theme-syndicate .Button--color--default:hover{transition:color 0ms,background-color 0ms}.theme-syndicate .Button--color--default:focus{transition:color 100ms,background-color 100ms}.theme-syndicate .Button--color--default:hover,.theme-syndicate .Button--color--default:focus{background-color:#595;color:#fff}.theme-syndicate .Button--color--caution{transition:color 50ms,background-color 50ms;background-color:#be6209;color:#fff}.theme-syndicate .Button--color--caution:hover{transition:color 0ms,background-color 0ms}.theme-syndicate .Button--color--caution:focus{transition:color 100ms,background-color 100ms}.theme-syndicate .Button--color--caution:hover,.theme-syndicate .Button--color--caution:focus{background-color:#ec8420;color:#fff}.theme-syndicate .Button--color--danger{transition:color 50ms,background-color 50ms;background-color:#9a9d00;color:#fff}.theme-syndicate .Button--color--danger:hover{transition:color 0ms,background-color 0ms}.theme-syndicate .Button--color--danger:focus{transition:color 100ms,background-color 100ms}.theme-syndicate .Button--color--danger:hover,.theme-syndicate .Button--color--danger:focus{background-color:#c4c813;color:#fff}.theme-syndicate .Button--color--transparent{transition:color 50ms,background-color 50ms;background-color:#550202;color:#fff;background-color:rgba(85,2,2,0);color:rgba(255,255,255,.5)}.theme-syndicate .Button--color--transparent:hover{transition:color 0ms,background-color 0ms}.theme-syndicate .Button--color--transparent:focus{transition:color 100ms,background-color 100ms}.theme-syndicate .Button--color--transparent:hover,.theme-syndicate .Button--color--transparent:focus{background-color:#751616;color:#fff}.theme-syndicate .Button--disabled{background-color:#363636 !important}.theme-syndicate .Button--selected{transition:color 50ms,background-color 50ms;background-color:#9d0808;color:#fff}.theme-syndicate .Button--selected:hover{transition:color 0ms,background-color 0ms}.theme-syndicate .Button--selected:focus{transition:color 100ms,background-color 100ms}.theme-syndicate .Button--selected:hover,.theme-syndicate .Button--selected:focus{background-color:#c81c1c;color:#fff}.theme-syndicate .Input{position:relative;display:inline-block;width:10em;border:.0833333333em solid #87ce87;border:.0833333333em solid rgba(135,206,135,.75);border-radius:.16em;color:#fff;background-color:#0a0a0a;padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;overflow:visible}.theme-syndicate .Input--fluid{display:block;width:auto}.theme-syndicate .Input__baseline{display:inline-block;color:transparent}.theme-syndicate .Input__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:transparent;color:#fff;color:inherit}.theme-syndicate .Input__input:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-syndicate .Input--monospace .Input__input{font-family:"Consolas",monospace}.theme-syndicate .NanoMap__container{overflow:hiddden;width:100%;z-index:1}.theme-syndicate .NanoMap__marker{z-index:10;padding:0px;margin:0px}.theme-syndicate .NanoMap__zoomer{z-index:20;background-color:rgba(0,0,0,.33);position:absolute;top:30px;left:0;padding:.5rem;width:30%}.theme-syndicate .NoticeBox{padding:.33em .5em;margin-bottom:.5em;box-shadow:none;font-weight:bold;font-style:italic;color:#fff;background-color:#910101;background-image:repeating-linear-gradient(-45deg, transparent, transparent 0.8333333333em, rgba(0, 0, 0, 0.1) 0.8333333333em, rgba(0, 0, 0, 0.1) 1.6666666667em)}.theme-syndicate .NoticeBox--type--info{color:#fff;background-color:#235982}.theme-syndicate .NoticeBox--type--success{color:#fff;background-color:#1e662f}.theme-syndicate .NoticeBox--type--warning{color:#fff;background-color:#a95219}.theme-syndicate .NoticeBox--type--danger{color:#fff;background-color:#8f2828}.theme-syndicate .Input{position:relative;display:inline-block;width:10em;border:.0833333333em solid #87ce87;border:.0833333333em solid rgba(135,206,135,.75);border-radius:.16em;color:#fff;background-color:#0a0a0a;padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;overflow:visible}.theme-syndicate .Input--fluid{display:block;width:auto}.theme-syndicate .Input__baseline{display:inline-block;color:transparent}.theme-syndicate .Input__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:transparent;color:#fff;color:inherit}.theme-syndicate .Input__input:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-syndicate .Input--monospace .Input__input{font-family:"Consolas",monospace}.theme-syndicate .NumberInput{position:relative;display:inline-block;border:.0833333333em solid #87ce87;border:.0833333333em solid rgba(135,206,135,.75);border-radius:.16em;color:#87ce87;background-color:#0a0a0a;padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;text-align:right;overflow:visible;cursor:n-resize}.theme-syndicate .NumberInput--fluid{display:block}.theme-syndicate .NumberInput__content{margin-left:.5em}.theme-syndicate .NumberInput__barContainer{position:absolute;top:.1666666667em;bottom:.1666666667em;left:.1666666667em}.theme-syndicate .NumberInput__bar{position:absolute;bottom:0;left:0;width:.25em;box-sizing:border-box;border-bottom:.0833333333em solid #87ce87;background-color:#87ce87}.theme-syndicate .NumberInput__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:#0a0a0a;color:#fff;text-align:right}.theme-syndicate .ProgressBar{display:inline-block;position:relative;width:100%;padding:0 .5em;border-radius:.16em;background-color:rgba(0,0,0,.5);transition:border-color 900ms ease-out}.theme-syndicate .ProgressBar__fill{position:absolute;top:-0.5px;left:0px;bottom:-0.5px}.theme-syndicate .ProgressBar__fill--animated{transition:background-color 900ms ease-out,width 900ms ease-out}.theme-syndicate .ProgressBar__content{position:relative;line-height:1.4166666667em;width:100%;text-align:right}.theme-syndicate .ProgressBar--color--default{border:.0833333333em solid #306330}.theme-syndicate .ProgressBar--color--default .ProgressBar__fill{background-color:#306330}.theme-syndicate .Section{position:relative;margin-bottom:.5em;background-color:#390101;background-color:rgba(0,0,0,.33);box-sizing:border-box}.theme-syndicate .Section:last-child{margin-bottom:0}.theme-syndicate .Section__title{position:relative;padding:.5em;border-bottom:.1666666667em solid #397439}.theme-syndicate .Section__titleText{font-size:1.1666666667em;font-weight:bold;color:#fff}.theme-syndicate .Section__buttons{position:absolute;display:inline-block;right:.5em;margin-top:-0.0833333333em}.theme-syndicate .Section__rest{position:relative}.theme-syndicate .Section__content{padding:.66em .5em}.theme-syndicate .Section--fitted>.Section__rest>.Section__content{padding:0}.theme-syndicate .Section--fill{display:flex;flex-direction:column;height:100%}.theme-syndicate .Section--fill>.Section__rest{flex-grow:1}.theme-syndicate .Section--fill>.Section__rest>.Section__content{height:100%}.theme-syndicate .Section--fill.Section--scrollable>.Section__rest>.Section__content{position:absolute;top:0;left:0;right:0;bottom:0}.theme-syndicate .Section--fill.Section--iefix{display:table !important;width:100% !important;height:100% !important;border-collapse:collapse;border-spacing:0}.theme-syndicate .Section--fill.Section--iefix>.Section__rest{display:table-row !important;height:100% !important}.theme-syndicate .Section--scrollable{overflow-x:hidden;overflow-y:hidden}.theme-syndicate .Section--scrollable>.Section__rest>.Section__content{overflow-y:auto;overflow-x:hidden}.theme-syndicate .Section .Section{background-color:transparent;margin-left:-0.5em;margin-right:-0.5em}.theme-syndicate .Section .Section:first-child{margin-top:-0.5em}.theme-syndicate .Section .Section .Section__titleText{font-size:1.0833333333em}.theme-syndicate .Section .Section .Section .Section__titleText{font-size:1em}.theme-syndicate .Section--flex{display:flex;flex-flow:column}.theme-syndicate .Section--flex .Section__content{overflow:auto;flex-grow:1}.theme-syndicate .Section__content--noTopPadding{padding-top:0}.theme-syndicate .Section__content--stretchContents{height:calc(100% - 3rem)}.theme-syndicate .Tooltip{z-index:2;padding:.5em .75em;pointer-events:none;text-align:left;transition:all 150ms ease-out;background-color:#4a0202;color:#fff;box-shadow:.1em .1em 1.25em -0.1em rgba(0,0,0,.5);border-radius:.16em;max-width:20.8333333333em}.theme-syndicate .Layout,.theme-syndicate .Layout *{scrollbar-base-color:#400202;scrollbar-face-color:#7e0303;scrollbar-3dlight-color:#550202;scrollbar-highlight-color:#550202;scrollbar-track-color:#400202;scrollbar-arrow-color:#fa3030;scrollbar-shadow-color:#7e0303}.theme-syndicate .Layout__content{position:absolute;top:0;bottom:0;left:0;right:0;overflow-x:hidden;overflow-y:hidden}.theme-syndicate .Layout__content--scrollable{overflow-y:auto}.theme-syndicate .Layout__content--flexRow{display:flex;flex-flow:row}.theme-syndicate .Layout__content--flexColumn{display:flex;flex-flow:column}.theme-syndicate .Window{position:fixed;top:0;bottom:0;left:0;right:0;color:#fff;background-color:#550202;background-image:linear-gradient(to bottom, #730303 0%, #370101 100%)}.theme-syndicate .Window__titleBar{position:fixed;z-index:1;top:0;left:0;width:100%;height:32px;height:2.6666666667rem}.theme-syndicate .Window__rest{position:fixed;top:32px;top:2.6666666667rem;bottom:0;left:0;right:0}.theme-syndicate .Window__contentPadding{margin:.5rem;height:100%;height:calc(100% - 1.01rem)}.theme-syndicate .Window__contentPadding:after{height:0}.theme-syndicate .Layout__content--scrollable .Window__contentPadding:after{display:block;content:"";height:.5rem}.theme-syndicate .Window__dimmer{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(117,22,22,.25);pointer-events:none}.theme-syndicate .Window__resizeHandle__se{position:fixed;bottom:0;right:0;width:20px;width:1.6666666667rem;height:20px;height:1.6666666667rem;cursor:se-resize}.theme-syndicate .Window__resizeHandle__s{position:fixed;bottom:0;left:0;right:0;height:6px;height:.5rem;cursor:s-resize}.theme-syndicate .Window__resizeHandle__e{position:fixed;top:0;bottom:0;right:0;width:3px;width:.25rem;cursor:e-resize}.theme-syndicate .TitleBar{background-color:#910101;border-bottom:1px solid #161616;box-shadow:0 2px 2px rgba(0,0,0,.1);box-shadow:0 .1666666667rem .1666666667rem rgba(0,0,0,.1);user-select:none;-ms-user-select:none}.theme-syndicate .TitleBar__clickable{color:rgba(255,255,255,.5);background-color:#910101;transition:color 250ms ease-out,background-color 250ms ease-out}.theme-syndicate .TitleBar__clickable:hover{color:#fff;background-color:#c00;transition:color 0ms,background-color 0ms}.theme-syndicate .TitleBar__title{position:absolute;display:inline-block;top:0;left:46px;left:3.8333333333rem;color:rgba(255,255,255,.75);font-size:14px;font-size:1.1666666667rem;line-height:31px;line-height:2.5833333333rem;white-space:nowrap;pointer-events:none}.theme-syndicate .TitleBar__buttons{pointer-events:initial;display:inline-block;width:100%;margin-left:10px}.theme-syndicate .TitleBar__dragZone{position:absolute;top:0;left:0;right:0;height:32px;height:2.6666666667rem}.theme-syndicate .TitleBar__statusIcon{position:absolute;top:0;left:12px;left:1rem;transition:color .5s;font-size:20px;font-size:1.6666666667rem;line-height:32px !important;line-height:2.6666666667rem !important}.theme-syndicate .TitleBar__close{position:absolute;top:-1px;right:0;width:45px;width:3.75rem;height:32px;height:2.6666666667rem;font-size:20px;font-size:1.6666666667rem;line-height:31px;line-height:2.5833333333rem;text-align:center}.theme-syndicate .TitleBar__devBuildIndicator{position:absolute;top:6px;top:.5rem;right:52px;right:4.3333333333rem;min-width:20px;min-width:1.6666666667rem;padding:2px 4px;padding:.1666666667rem .3333333333rem;background-color:rgba(91,170,39,.75);color:#fff;text-align:center}.theme-syndicate .Layout__content{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2ZXJzaW9uPSIxLjAiIHZpZXdCb3g9IjAgMCAyMDAgMjg5Ljc0MiIgb3BhY2l0eT0iLjMzIj4KICA8cGF0aCBkPSJtIDkzLjUzNzY3NywwIGMgLTE4LjExMzEyNSwwIC0zNC4yMjAxMzMsMy4xMTE2NCAtNDguMzIzNDg0LDkuMzM0MzcgLTEzLjk2NTA5Miw2LjIyMTY3IC0yNC42MTI0NDIsMTUuMDcxMTQgLTMxLjk0MDY1MSwyNi41NDcxIC03LjE4OTkzOTgsMTEuMzM3ODkgLTEwLjMwMTIyNjYsMjQuNzQ5MTEgLTEwLjMwMTIyNjYsNDAuMjM0NzggMCwxMC42NDY2MiAyLjcyNTAwMjYsMjAuNDY0NjUgOC4xNzUxMTE2LDI5LjQ1MjU4IDUuNjE1Mjc3LDguOTg2ODYgMTQuMDM4Mjc3LDE3LjM1MjA0IDI1LjI2ODgyMSwyNS4wOTQzNiAxMS4yMzA1NDQsNy42MDUzMSAyNi41MDc0MjEsMTUuNDE4MzUgNDUuODMwNTE0LDIzLjQzNzgyIDE5Ljk4Mzc0OCw4LjI5NTU3IDM0Ljg0ODg0OCwxNS41NTQ3MSA0NC41OTI5OTgsMjEuNzc2MzggOS43NDQxNCw2LjIyMjczIDE2Ljc2MTcsMTIuODU4NSAyMS4wNTU3MiwxOS45MDk1MSA0LjI5NDA0LDcuMDUyMDggNi40NDE5MywxNS43NjQwOCA2LjQ0MTkzLDI2LjEzNDU5IDAsMTYuMTc3MDIgLTUuMjAxOTYsMjguNDgyMjIgLTE1LjYwNjczLDM2LjkxNjgyIC0xMC4yMzk2LDguNDM0NyAtMjUuMDIyMDMsMTIuNjUyMyAtNDQuMzQ1MTY5LDEyLjY1MjMgLTE0LjAzODE3MSwwIC0yNS41MTUyNDcsLTEuNjU5NCAtMzQuNDMzNjE4LC00Ljk3NzcgLTguOTE4MzcsLTMuNDU2NiAtMTYuMTg1NTcyLC04LjcxMTMgLTIxLjgwMDgzOSwtMTUuNzYzMyAtNS42MTUyNzcsLTcuMDUyMSAtMTAuMDc0Nzk1LC0xNi42NjA4OCAtMTMuMzc3ODk5LC0yOC44MjgxMiBsIC0yNC43NzMxNjI2MjkzOTQ1LDAgMCw1Ni44MjYzMiBDIDMzLjg1Njc2OSwyODYuMDc2MDEgNjMuNzQ5MDQsMjg5Ljc0MjAxIDg5LjY3ODM4MywyODkuNzQyMDEgYyAxNi4wMjAwMjcsMCAzMC43MTk3ODcsLTEuMzgyNyA0NC4wOTczMzcsLTQuMTQ3OSAxMy41NDI3MiwtMi45MDQzIDI1LjEwNDEsLTcuNDY3NiAzNC42ODMwOSwtMTMuNjg5MyA5Ljc0NDEzLC02LjM1OTcgMTcuMzQwNDIsLTE0LjUxOTUgMjIuNzkwNTIsLTI0LjQ3NDggNS40NTAxLC0xMC4wOTMzMiA4LjE3NTExLC0yMi4zOTk1OSA4LjE3NTExLC0zNi45MTY4MiAwLC0xMi45OTc2NCAtMy4zMDIxLC0yNC4zMzUzOSAtOS45MDgyOSwtMzQuMDE0NiAtNi40NDEwNSwtOS44MTcyNSAtMTUuNTI1NDUsLTE4LjUyNzA3IC0yNy4yNTE0NiwtMjYuMTMxMzMgLTExLjU2MDg1LC03LjYwNDI3IC0yNy45MTA4MywtMTUuODMxNDIgLTQ5LjA1MDY2LC0yNC42ODAyMiAtMTcuNTA2NDQsLTcuMTkwMTIgLTMwLjcxOTY2OCwtMTMuNjg5NDggLTM5LjYzODAzOCwtMTkuNDk3MDEgLTguOTE4MzcxLC01LjgwNzUyIC0xOC42MDc0NzQsLTEyLjQzNDA5IC0yNC4wOTY1MjQsLTE4Ljg3NDE3IC01LjQyNjA0MywtNi4zNjYxNiAtOS42NTg4MjYsLTE1LjA3MDAzIC05LjY1ODgyNiwtMjQuODg3MjkgMCwtOS4yNjQwMSAyLjA3NTQxNCwtMTcuMjEzNDUgNi4yMjM0NTQsLTIzLjg1MDMzIDExLjA5ODI5OCwtMTQuMzk3NDggNDEuMjg2NjM4LC0xLjc5NTA3IDQ1LjA3NTYwOSwyNC4zNDc2MiA0LjgzOTM5Miw2Ljc3NDkxIDguODQ5MzUsMTYuMjQ3MjkgMTIuMDI5NTE1LDI4LjQxNTYgbCAyMC41MzIzNCwwIDAsLTU1Ljk5OTY3IGMgLTQuNDc4MjUsLTUuOTI0NDggLTkuOTU0ODgsLTEwLjYzMjIyIC0xNS45MDgzNywtMTQuMzc0MTEgMS42NDA1NSwwLjQ3OTA1IDMuMTkwMzksMS4wMjM3NiA0LjYzODY1LDEuNjQwMjQgNi40OTg2MSwyLjYyNjA3IDEyLjE2NzkzLDcuMzI3NDcgMTcuMDA3MywxNC4xMDM0NSA0LjgzOTM5LDYuNzc0OTEgOC44NDkzNSwxNi4yNDU2NyAxMi4wMjk1MiwyOC40MTM5NyAwLDAgOC40ODEyOCwtMC4xMjg5NCA4LjQ4OTc4LC0wLjAwMiAwLjQxNzc2LDYuNDE0OTQgLTEuNzUzMzksOS40NTI4NiAtNC4xMjM0MiwxMi41NjEwNCAtMi40MTc0LDMuMTY5NzggLTUuMTQ0ODYsNi43ODk3MyAtNC4wMDI3OCwxMy4wMDI5IDEuNTA3ODYsOC4yMDMxOCAxMC4xODM1NCwxMC41OTY0MiAxNC42MjE5NCw5LjMxMTU0IC0zLjMxODQyLC0wLjQ5OTExIC01LjMxODU1LC0xLjc0OTQ4IC01LjMxODU1LC0xLjc0OTQ4IDAsMCAxLjg3NjQ2LDAuOTk4NjggNS42NTExNywtMS4zNTk4MSAtMy4yNzY5NSwwLjk1NTcxIC0xMC43MDUyOSwtMC43OTczOCAtMTEuODAxMjUsLTYuNzYzMTMgLTAuOTU3NTIsLTUuMjA4NjEgMC45NDY1NCwtNy4yOTUxNCAzLjQwMTEzLC0xMC41MTQ4MiAyLjQ1NDYyLC0zLjIxOTY4IDUuMjg0MjYsLTYuOTU4MzEgNC42ODQzLC0xNC40ODgyNCBsIDAuMDAzLDAuMDAyIDguOTI2NzYsMCAwLC01NS45OTk2NyBjIC0xNS4wNzEyNSwtMy44NzE2OCAtMjcuNjUzMTQsLTYuMzYwNDIgLTM3Ljc0NjcxLC03LjQ2NTg2IC05Ljk1NTMxLC0xLjEwNzU1IC0yMC4xODgyMywtMS42NTk4MSAtMzAuNjk2NjEzLC0xLjY1OTgxIHogbSA3MC4zMjE2MDMsMTcuMzA4OTMgMC4yMzgwNSw0MC4zMDQ5IGMgMS4zMTgwOCwxLjIyNjY2IDIuNDM5NjUsMi4yNzgxNSAzLjM0MDgxLDMuMTA2MDIgNC44MzkzOSw2Ljc3NDkxIDguODQ5MzQsMTYuMjQ1NjYgMTIuMDI5NTEsMjguNDEzOTcgbCAyMC41MzIzNCwwIDAsLTU1Ljk5OTY3IGMgLTYuNjc3MzEsLTQuNTkzODEgLTE5LjgzNjQzLC0xMC40NzMwOSAtMzYuMTQwNzEsLTE1LjgyNTIyIHogbSAtMjguMTIwNDksNS42MDU1MSA4LjU2NDc5LDE3LjcxNjU1IGMgLTExLjk3MDM3LC02LjQ2Njk3IC0xMy44NDY3OCwtOS43MTcyNiAtOC41NjQ3OSwtMTcuNzE2NTUgeiBtIDIyLjc5NzA1LDAgYyAyLjc3MTUsNy45OTkyOSAxLjc4NzQxLDExLjI0OTU4IC00LjQ5MzU0LDE3LjcxNjU1IGwgNC40OTM1NCwtMTcuNzE2NTUgeiBtIDE1LjIyMTk1LDI0LjAwODQ4IDguNTY0NzksMTcuNzE2NTUgYyAtMTEuOTcwMzgsLTYuNDY2OTcgLTEzLjg0Njc5LC05LjcxNzI2IC04LjU2NDc5LC0xNy43MTY1NSB6IG0gMjIuNzk3MDQsMCBjIDIuNzcxNSw3Ljk5OTI5IDEuNzg3NDEsMTEuMjQ5NTggLTQuNDkzNTQsMTcuNzE2NTUgbCA0LjQ5MzU0LC0xNy43MTY1NSB6IG0gLTk5LjExMzg0LDIuMjA3NjQgOC41NjQ3OSwxNy43MTY1NSBjIC0xMS45NzAzODIsLTYuNDY2OTcgLTEzLjg0Njc4MiwtOS43MTcyNiAtOC41NjQ3OSwtMTcuNzE2NTUgeiBtIDIyLjc5NTQyLDAgYyAyLjc3MTUsNy45OTkyOSAxLjc4NzQxLDExLjI0OTU4IC00LjQ5MzU0LDE3LjcxNjU1IGwgNC40OTM1NCwtMTcuNzE2NTUgeiIgLz4KPC9zdmc+CjwhLS0gVGhpcyB3b3JrIGlzIGxpY2Vuc2VkIHVuZGVyIGEgQ3JlYXRpdmUgQ29tbW9ucyBBdHRyaWJ1dGlvbi1TaGFyZUFsaWtlIDQuMCBJbnRlcm5hdGlvbmFsIExpY2Vuc2UuIC0tPgo8IS0tIGh0dHA6Ly9jcmVhdGl2ZWNvbW1vbnMub3JnL2xpY2Vuc2VzL2J5LXNhLzQuMC8gLS0+Cg==)} .theme-wizard .Button{position:relative;display:inline-block;line-height:1.667em;padding:0 .5em;margin-right:.1666666667em;white-space:nowrap;outline:0;border-radius:2px;margin-bottom:.1666666667em;user-select:none;-ms-user-select:none}.theme-wizard .Button:last-child{margin-right:0;margin-bottom:0}.theme-wizard .Button .fa,.theme-wizard .Button .fas,.theme-wizard .Button .far{margin-left:-0.25em;margin-right:-0.25em;min-width:1.333em;text-align:center}.theme-wizard .Button--hasContent .fa,.theme-wizard .Button--hasContent .fas,.theme-wizard .Button--hasContent .far{margin-right:.25em}.theme-wizard .Button--hasContent.Button--iconPosition--right .fa,.theme-wizard .Button--hasContent.Button--iconPosition--right .fas,.theme-wizard .Button--hasContent.Button--iconPosition--right .far{margin-right:0px;margin-left:3px}.theme-wizard .Button--ellipsis{overflow:hidden;text-overflow:ellipsis}.theme-wizard .Button--fluid{display:block;margin-left:0;margin-right:0}.theme-wizard .Button--circular{border-radius:50%}.theme-wizard .Button--compact{padding:0 .25em;line-height:1.333em}.theme-wizard .Button--color--default{transition:color 50ms,background-color 50ms;background-color:#1596b6;color:#fff}.theme-wizard .Button--color--default:hover{transition:color 0ms,background-color 0ms}.theme-wizard .Button--color--default:focus{transition:color 100ms,background-color 100ms}.theme-wizard .Button--color--default:hover,.theme-wizard .Button--color--default:focus{background-color:#30bde0;color:#fff}.theme-wizard .Button--color--caution{transition:color 50ms,background-color 50ms;background-color:#be6209;color:#fff}.theme-wizard .Button--color--caution:hover{transition:color 0ms,background-color 0ms}.theme-wizard .Button--color--caution:focus{transition:color 100ms,background-color 100ms}.theme-wizard .Button--color--caution:hover,.theme-wizard .Button--color--caution:focus{background-color:#ec8420;color:#fff}.theme-wizard .Button--color--danger{transition:color 50ms,background-color 50ms;background-color:#b30707;color:#fff}.theme-wizard .Button--color--danger:hover{transition:color 0ms,background-color 0ms}.theme-wizard .Button--color--danger:focus{transition:color 100ms,background-color 100ms}.theme-wizard .Button--color--danger:hover,.theme-wizard .Button--color--danger:focus{background-color:#e11b1b;color:#fff}.theme-wizard .Button--color--transparent{transition:color 50ms,background-color 50ms;background-color:#213e4e;color:#fff;background-color:rgba(33,62,78,0);color:rgba(255,255,255,.5)}.theme-wizard .Button--color--transparent:hover{transition:color 0ms,background-color 0ms}.theme-wizard .Button--color--transparent:focus{transition:color 100ms,background-color 100ms}.theme-wizard .Button--color--transparent:hover,.theme-wizard .Button--color--transparent:focus{background-color:#395b6d;color:#fff}.theme-wizard .Button--disabled{background-color:#02426d !important}.theme-wizard .Button--selected{transition:color 50ms,background-color 50ms;background-color:#465899;color:#fff}.theme-wizard .Button--selected:hover{transition:color 0ms,background-color 0ms}.theme-wizard .Button--selected:focus{transition:color 100ms,background-color 100ms}.theme-wizard .Button--selected:hover,.theme-wizard .Button--selected:focus{background-color:#6e7eba;color:#fff}.theme-wizard .Input{position:relative;display:inline-block;width:10em;border:.0833333333em solid #404b6e;border:.0833333333em solid rgba(64,75,110,.75);border-radius:2px;color:#fff;background-color:#0a0a0a;padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;overflow:visible}.theme-wizard .Input--fluid{display:block;width:auto}.theme-wizard .Input__baseline{display:inline-block;color:transparent}.theme-wizard .Input__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:transparent;color:#fff;color:inherit}.theme-wizard .Input__input:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-wizard .Input--monospace .Input__input{font-family:"Consolas",monospace}.theme-wizard .NanoMap__container{overflow:hiddden;width:100%;z-index:1}.theme-wizard .NanoMap__marker{z-index:10;padding:0px;margin:0px}.theme-wizard .NanoMap__zoomer{z-index:20;background-color:rgba(0,0,0,.33);position:absolute;top:30px;left:0;padding:.5rem;width:30%}.theme-wizard .NoticeBox{padding:.33em .5em;margin-bottom:.5em;box-shadow:none;font-weight:bold;font-style:italic;color:#fff;background-color:#a82d55;background-image:repeating-linear-gradient(-45deg, transparent, transparent 0.8333333333em, rgba(0, 0, 0, 0.1) 0.8333333333em, rgba(0, 0, 0, 0.1) 1.6666666667em)}.theme-wizard .NoticeBox--type--info{color:#fff;background-color:#235982}.theme-wizard .NoticeBox--type--success{color:#fff;background-color:#1e662f}.theme-wizard .NoticeBox--type--warning{color:#fff;background-color:#a95219}.theme-wizard .NoticeBox--type--danger{color:#fff;background-color:#8f2828}.theme-wizard .Input{position:relative;display:inline-block;width:10em;border:.0833333333em solid #404b6e;border:.0833333333em solid rgba(64,75,110,.75);border-radius:2px;color:#fff;background-color:#0a0a0a;padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;overflow:visible}.theme-wizard .Input--fluid{display:block;width:auto}.theme-wizard .Input__baseline{display:inline-block;color:transparent}.theme-wizard .Input__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:transparent;color:#fff;color:inherit}.theme-wizard .Input__input:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-wizard .Input--monospace .Input__input{font-family:"Consolas",monospace}.theme-wizard .NumberInput{position:relative;display:inline-block;border:.0833333333em solid #404b6e;border:.0833333333em solid rgba(64,75,110,.75);border-radius:2px;color:#404b6e;background-color:#0a0a0a;padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;text-align:right;overflow:visible;cursor:n-resize}.theme-wizard .NumberInput--fluid{display:block}.theme-wizard .NumberInput__content{margin-left:.5em}.theme-wizard .NumberInput__barContainer{position:absolute;top:.1666666667em;bottom:.1666666667em;left:.1666666667em}.theme-wizard .NumberInput__bar{position:absolute;bottom:0;left:0;width:.25em;box-sizing:border-box;border-bottom:.0833333333em solid #404b6e;background-color:#404b6e}.theme-wizard .NumberInput__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:#0a0a0a;color:#fff;text-align:right}.theme-wizard .ProgressBar{display:inline-block;position:relative;width:100%;padding:0 .5em;border-radius:2px;background-color:rgba(0,0,0,.5);transition:border-color 900ms ease-out}.theme-wizard .ProgressBar__fill{position:absolute;top:-0.5px;left:0px;bottom:-0.5px}.theme-wizard .ProgressBar__fill--animated{transition:background-color 900ms ease-out,width 900ms ease-out}.theme-wizard .ProgressBar__content{position:relative;line-height:1.4166666667em;width:100%;text-align:right}.theme-wizard .ProgressBar--color--default{border:.0833333333em solid #12809b}.theme-wizard .ProgressBar--color--default .ProgressBar__fill{background-color:#12809b}.theme-wizard .Section{position:relative;margin-bottom:.5em;background-color:#162a34;background-color:rgba(0,0,0,.33);box-sizing:border-box}.theme-wizard .Section:last-child{margin-bottom:0}.theme-wizard .Section__title{position:relative;padding:.5em;border-bottom:.1666666667em solid #1596b6}.theme-wizard .Section__titleText{font-size:1.1666666667em;font-weight:bold;color:#fff}.theme-wizard .Section__buttons{position:absolute;display:inline-block;right:.5em;margin-top:-0.0833333333em}.theme-wizard .Section__rest{position:relative}.theme-wizard .Section__content{padding:.66em .5em}.theme-wizard .Section--fitted>.Section__rest>.Section__content{padding:0}.theme-wizard .Section--fill{display:flex;flex-direction:column;height:100%}.theme-wizard .Section--fill>.Section__rest{flex-grow:1}.theme-wizard .Section--fill>.Section__rest>.Section__content{height:100%}.theme-wizard .Section--fill.Section--scrollable>.Section__rest>.Section__content{position:absolute;top:0;left:0;right:0;bottom:0}.theme-wizard .Section--fill.Section--iefix{display:table !important;width:100% !important;height:100% !important;border-collapse:collapse;border-spacing:0}.theme-wizard .Section--fill.Section--iefix>.Section__rest{display:table-row !important;height:100% !important}.theme-wizard .Section--scrollable{overflow-x:hidden;overflow-y:hidden}.theme-wizard .Section--scrollable>.Section__rest>.Section__content{overflow-y:auto;overflow-x:hidden}.theme-wizard .Section .Section{background-color:transparent;margin-left:-0.5em;margin-right:-0.5em}.theme-wizard .Section .Section:first-child{margin-top:-0.5em}.theme-wizard .Section .Section .Section__titleText{font-size:1.0833333333em}.theme-wizard .Section .Section .Section .Section__titleText{font-size:1em}.theme-wizard .Section--flex{display:flex;flex-flow:column}.theme-wizard .Section--flex .Section__content{overflow:auto;flex-grow:1}.theme-wizard .Section__content--noTopPadding{padding-top:0}.theme-wizard .Section__content--stretchContents{height:calc(100% - 3rem)}.theme-wizard .Tooltip{z-index:2;padding:.5em .75em;pointer-events:none;text-align:left;transition:all 150ms ease-out;background-color:#2da848;color:#fff;box-shadow:.1em .1em 1.25em -0.1em rgba(0,0,0,.5);border-radius:2px;max-width:20.8333333333em}.theme-wizard .Layout,.theme-wizard .Layout *{scrollbar-base-color:#192f3b;scrollbar-face-color:#2d546a;scrollbar-3dlight-color:#213e4e;scrollbar-highlight-color:#213e4e;scrollbar-track-color:#192f3b;scrollbar-arrow-color:#73a7c4;scrollbar-shadow-color:#2d546a}.theme-wizard .Layout__content{position:absolute;top:0;bottom:0;left:0;right:0;overflow-x:hidden;overflow-y:hidden}.theme-wizard .Layout__content--scrollable{overflow-y:auto}.theme-wizard .Layout__content--flexRow{display:flex;flex-flow:row}.theme-wizard .Layout__content--flexColumn{display:flex;flex-flow:column}.theme-wizard .Window{position:fixed;top:0;bottom:0;left:0;right:0;color:#fff;background-color:#213e4e;background-image:linear-gradient(to bottom, #2a4f64 0%, #182d38 100%)}.theme-wizard .Window__titleBar{position:fixed;z-index:1;top:0;left:0;width:100%;height:32px;height:2.6666666667rem}.theme-wizard .Window__rest{position:fixed;top:32px;top:2.6666666667rem;bottom:0;left:0;right:0}.theme-wizard .Window__contentPadding{margin:.5rem;height:100%;height:calc(100% - 1.01rem)}.theme-wizard .Window__contentPadding:after{height:0}.theme-wizard .Layout__content--scrollable .Window__contentPadding:after{display:block;content:"";height:.5rem}.theme-wizard .Window__dimmer{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(57,91,109,.25);pointer-events:none}.theme-wizard .Window__resizeHandle__se{position:fixed;bottom:0;right:0;width:20px;width:1.6666666667rem;height:20px;height:1.6666666667rem;cursor:se-resize}.theme-wizard .Window__resizeHandle__s{position:fixed;bottom:0;left:0;right:0;height:6px;height:.5rem;cursor:s-resize}.theme-wizard .Window__resizeHandle__e{position:fixed;top:0;bottom:0;right:0;width:3px;width:.25rem;cursor:e-resize}.theme-wizard .TitleBar{background-color:#1b9e26;border-bottom:1px solid #161616;box-shadow:0 2px 2px rgba(0,0,0,.1);box-shadow:0 .1666666667rem .1666666667rem rgba(0,0,0,.1);user-select:none;-ms-user-select:none}.theme-wizard .TitleBar__clickable{color:rgba(255,255,255,.5);background-color:#1b9e26;transition:color 250ms ease-out,background-color 250ms ease-out}.theme-wizard .TitleBar__clickable:hover{color:#fff;background-color:#c00;transition:color 0ms,background-color 0ms}.theme-wizard .TitleBar__title{position:absolute;display:inline-block;top:0;left:46px;left:3.8333333333rem;color:rgba(255,255,255,.75);font-size:14px;font-size:1.1666666667rem;line-height:31px;line-height:2.5833333333rem;white-space:nowrap;pointer-events:none}.theme-wizard .TitleBar__buttons{pointer-events:initial;display:inline-block;width:100%;margin-left:10px}.theme-wizard .TitleBar__dragZone{position:absolute;top:0;left:0;right:0;height:32px;height:2.6666666667rem}.theme-wizard .TitleBar__statusIcon{position:absolute;top:0;left:12px;left:1rem;transition:color .5s;font-size:20px;font-size:1.6666666667rem;line-height:32px !important;line-height:2.6666666667rem !important}.theme-wizard .TitleBar__close{position:absolute;top:-1px;right:0;width:45px;width:3.75rem;height:32px;height:2.6666666667rem;font-size:20px;font-size:1.6666666667rem;line-height:31px;line-height:2.5833333333rem;text-align:center}.theme-wizard .TitleBar__devBuildIndicator{position:absolute;top:6px;top:.5rem;right:52px;right:4.3333333333rem;min-width:20px;min-width:1.6666666667rem;padding:2px 4px;padding:.1666666667rem .3333333333rem;background-color:rgba(91,170,39,.75);color:#fff;text-align:center}.theme-wizard .Layout__content{background-image:url(data:image/svg+xml;base64,PHN2ZyBhcmlhLWhpZGRlbj0idHJ1ZSIgZm9jdXNhYmxlPSJmYWxzZSIgZGF0YS1wcmVmaXg9ImZhcyIgZGF0YS1pY29uPSJtZXRlb3IiIGNsYXNzPSJzdmctaW5saW5lLS1mYSBmYS1tZXRlb3IgZmEtdy0xNiIgcm9sZT0iaW1nIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA1MTIgNTEyIiBvcGFjaXR5PSIuMzMiPjxwYXRoIGZpbGw9ImN1cnJlbnRDb2xvciIgZD0iTTUxMS4zMjgsMjAuODAyN2MtMTEuNjA3NTksMzguNzAyNjQtMzQuMzA3MjQsMTExLjcwMTczLTYxLjMwMzExLDE4Ny43MDA3Nyw2Ljk5ODkzLDIuMDkzNzIsMTMuNDA0Miw0LDE4LjYwNjUzLDUuNTkzNjhhMTYuMDYxNTgsMTYuMDYxNTgsMCwwLDEsOS40OTg1NCwyMi45MDZjLTIyLjEwNiw0Mi4yOTYzNS04Mi42OTA0NywxNTIuNzk1LTE0Mi40NzgxOSwyMTQuNDAzNTYtLjk5OTg0LDEuMDkzNzMtMS45OTk2OSwyLjUtMi45OTk1NCwzLjQ5OTk1QTE5NC44MzA0NiwxOTQuODMwNDYsMCwxLDEsNTcuMDg1LDE3OS40MTAwOWMuOTk5ODUtMSwyLjQwNTg4LTIsMy40OTk0Ny0zLDYxLjU5OTk0LTU5LjkwNTQ5LDE3MS45NzM2Ny0xMjAuNDA0NzMsMjE0LjM3MzQzLTE0Mi40OTgyYTE2LjA1OCwxNi4wNTgsMCwwLDEsMjIuOTAyNzQsOS40OTk4OGMxLjU5MzUxLDUuMDkzNjgsMy40OTk0NywxMS41OTM2LDUuNTkyOSwxOC41OTM1MUMzNzkuMzQ4MTgsMzUuMDA1NjUsNDUyLjQzMDc0LDEyLjMwMjgxLDQ5MS4xMjc5NC43MDkyMUExNi4xODMyNSwxNi4xODMyNSwwLDAsMSw1MTEuMzI4LDIwLjgwMjdaTTMxOS45NTEsMzIwLjAwMjA3QTEyNy45ODA0MSwxMjcuOTgwNDEsMCwxLDAsMTkxLjk3MDYxLDQ0OC4wMDA0NiwxMjcuOTc1NzMsMTI3Ljk3NTczLDAsMCwwLDMxOS45NTEsMzIwLjAwMjA3Wm0tMTI3Ljk4MDQxLTMxLjk5OTZhMzEuOTk1MSwzMS45OTUxLDAsMSwxLTMxLjk5NTEtMzEuOTk5NkEzMS45NTksMzEuOTU5LDAsMCwxLDE5MS45NzA2MSwyODguMDAyNDdabTMxLjk5NTEsNzkuOTk5YTE1Ljk5NzU1LDE1Ljk5NzU1LDAsMSwxLTE1Ljk5NzU1LTE1Ljk5OThBMTYuMDQ5NzUsMTYuMDQ5NzUsMCwwLDEsMjIzLjk2NTcxLDM2OC4wMDE0N1oiPjwvcGF0aD48L3N2Zz4NCjwhLS0gVGhpcyB3b3JrIGlzIGxpY2Vuc2VkIHVuZGVyIGEgQ3JlYXRpdmUgQ29tbW9ucyBBdHRyaWJ1dGlvbi1TaGFyZUFsaWtlIDQuMCBJbnRlcm5hdGlvbmFsIExpY2Vuc2UuIC0tPg0KPCEtLSBodHRwOi8vY3JlYXRpdmVjb21tb25zLm9yZy9saWNlbnNlcy9ieS1zYS80LjAvIC0tPg==)} .theme-abstract .TitleBar__statusIcon{display:none}.theme-abstract .Layout__content{background-image:none}.theme-abstract .TitleBar__title{left:12px} diff --git a/tgui/public/tgui.bundle.js b/tgui/public/tgui.bundle.js index ca374c4cd8..f5e7175ea8 100644 --- a/tgui/public/tgui.bundle.js +++ b/tgui/public/tgui.bundle.js @@ -1 +1 @@ -!function(){var e,n={60121:function(e,n,t){"use strict";var o=t(39812);t(56285),t(58602),t(92433),t(35070),t(86455),t(41821),t(83243),t(97585),t(64197),t(87266),t(99195),t(72916),t(48979);var r,c,a=t(84877),i=(t(25059),t(18874)),l=t(25697),d=t(75682),s=t(69913),u=t(74360);a.perf.mark("inception",null==(r=window.performance)||null==(c=r.timing)?void 0:c.navigationStart),a.perf.mark("init");var m=(0,s.configureStore)(),p=(0,d.createRenderer)((function(){var e=(0,t(73218).getRoutedComponent)(m);return(0,o.createComponentVNode)(2,s.StoreProvider,{store:m,children:(0,o.createComponentVNode)(2,e)})}));!function C(){if("loading"!==document.readyState){for((0,u.setupGlobalEvents)(),(0,i.setupHotKeys)(),(0,l.captureExternalLinks)(),m.subscribe(p),window.update=function(e){return m.dispatch(Byond.parseJson(e))};;){var e=window.__updateQueue__.shift();if(!e)break;window.update(e)}0}else document.addEventListener("DOMContentLoaded",C)}()},34129:function(e,n,t){"use strict";n.__esModule=!0,n.AICard=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.AICard=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.has_ai,s=l.integrity,u=l.backup_capacitor,m=l.flushing,p=l.has_laws,C=l.laws,h=l.wireless,N=l.radio;if(0===d)return(0,o.createComponentVNode)(2,a.Window,{width:600,height:470,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{title:"Stored AI",children:(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createVNode)(1,"h3",null,"No AI detected.",16)})})})});var V=null;V=s>=75?"green":s>=25?"yellow":"red";var b=null;return u>=75&&(b="green"),b=u>=25?"yellow":"red",(0,o.createComponentVNode)(2,a.Window,{width:600,height:470,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Stored AI",children:[(0,o.createComponentVNode)(2,c.Box,{bold:!0,display:"inline-block",children:(0,o.createVNode)(1,"h3",null,name,0)}),(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Integrity",children:(0,o.createComponentVNode)(2,c.ProgressBar,{color:V,value:s/100})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power",children:(0,o.createComponentVNode)(2,c.ProgressBar,{color:b,value:u/100})})]})}),(0,o.createComponentVNode)(2,c.Box,{color:"red",children:(0,o.createVNode)(1,"h2",null,1===m?"Wipe of AI in progress...":"",0)})]}),(0,o.createComponentVNode)(2,c.Section,{title:"Laws",children:!!p&&(0,o.createComponentVNode)(2,c.Box,{children:C.map((function(e,n){return(0,o.createComponentVNode)(2,c.Box,{display:"inline-block",children:e},n)}))})||(0,o.createComponentVNode)(2,c.Box,{color:"red",children:(0,o.createVNode)(1,"h3",null,"No laws detected.",16)})}),(0,o.createComponentVNode)(2,c.Section,{title:"Actions",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Wireless Activity",children:(0,o.createComponentVNode)(2,c.Button,{icon:h?"check":"times",content:h?"Enabled":"Disabled",color:h?"green":"red",onClick:function(){return i("wireless")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Subspace Transceiver",children:(0,o.createComponentVNode)(2,c.Button,{icon:N?"check":"times",content:N?"Enabled":"Disabled",color:N?"green":"red",onClick:function(){return i("radio")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"AI Power",children:(0,o.createComponentVNode)(2,c.Button.Confirm,{icon:"radiation",confirmIcon:"radiation",disabled:m||0===s,confirmColor:"red",content:"Shutdown",onClick:function(){return i("wipe")}})})]})})]})})}},73405:function(e,n,t){"use strict";n.__esModule=!0,n.APC=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=t(21451),l=t(67861);n.APC=function(e,n){var t=(0,r.useBackend)(n),c=(t.act,t.data),i=(0,o.createComponentVNode)(2,s);return c.gridCheck?i=(0,o.createComponentVNode)(2,u):c.failTime&&(i=(0,o.createComponentVNode)(2,m)),(0,o.createComponentVNode)(2,a.Window,{width:450,height:475,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:i})})};var d={2:{color:"good",externalPowerText:"External Power",chargingText:"Fully Charged"},1:{color:"average",externalPowerText:"Low External Power",chargingText:"Charging"},0:{color:"bad",externalPowerText:"No External Power",chargingText:"Not Charging"}},s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,l=t.data,s=l.locked&&!l.siliconUser,u=(l.normallyLocked,d[l.externalPower]||d[0]),m=d[l.chargingStatus]||d[0],p=l.powerChannels||[],C=l.powerCellStatus/100;return(0,o.createFragment)([(0,o.createComponentVNode)(2,i.InterfaceLockNoticeBox,{deny:l.emagged,denialMessage:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Box,{color:"bad",fontSize:"1.5rem",children:"Fault in ID authenticator."}),(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Please contact maintenance for service."})],4)}),(0,o.createComponentVNode)(2,c.Section,{title:"Power Status",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Main Breaker",color:u.color,buttons:(0,o.createComponentVNode)(2,c.Button,{icon:l.isOperating?"power-off":"times",content:l.isOperating?"On":"Off",selected:l.isOperating&&!s,color:l.isOperating?"":"bad",disabled:s,onClick:function(){return a("breaker")}}),children:["[ ",u.externalPowerText," ]"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power Cell",children:(0,o.createComponentVNode)(2,c.ProgressBar,{color:"good",value:C})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Charge Mode",color:m.color,buttons:(0,o.createComponentVNode)(2,c.Button,{icon:l.chargeMode?"sync":"times",content:l.chargeMode?"Auto":"Off",selected:l.chargeMode,disabled:s,onClick:function(){return a("charge")}}),children:["[ ",m.chargingText," ]"]})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Power Channels",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[p.map((function(e){var n=e.topicParams;return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.title,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Box,{inline:!0,mx:2,color:e.status>=2?"good":"bad",children:e.status>=2?"On":"Off"}),(0,o.createComponentVNode)(2,c.Button,{icon:"sync",content:"Auto",selected:!s&&(1===e.status||3===e.status),disabled:s,onClick:function(){return a("channel",n.auto)}}),(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",content:"On",selected:!s&&2===e.status,disabled:s,onClick:function(){return a("channel",n.on)}}),(0,o.createComponentVNode)(2,c.Button,{icon:"times",content:"Off",selected:!s&&0===e.status,disabled:s,onClick:function(){return a("channel",n.off)}})],4),children:[e.powerLoad," W"]},e.title)})),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Total Load",children:l.totalCharging?(0,o.createVNode)(1,"b",null,[l.totalLoad,(0,o.createTextVNode)(" W (+ "),l.totalCharging,(0,o.createTextVNode)(" W charging)")],0):(0,o.createVNode)(1,"b",null,[l.totalLoad,(0,o.createTextVNode)(" W")],0)})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Misc",buttons:!!l.siliconUser&&(0,o.createComponentVNode)(2,c.Button,{icon:"lightbulb-o",content:"Overload",onClick:function(){return a("overload")}}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Cover Lock",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:l.coverLocked?"lock":"unlock",content:l.coverLocked?"Engaged":"Disengaged",selected:l.coverLocked,disabled:s,onClick:function(){return a("cover")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Night Shift Lighting",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"lightbulb-o",content:"Disabled",selected:2===l.nightshiftSetting,onClick:function(){return a("nightshift",{nightshift:2})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"lightbulb-o",content:"Automatic",selected:1===l.nightshiftSetting,onClick:function(){return a("nightshift",{nightshift:1})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"lightbulb-o",content:"Enabled",selected:3===l.nightshiftSetting,onClick:function(){return a("nightshift",{nightshift:3})}})],4)}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Emergency Lighting",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"lightbulb-o",content:l.emergencyLights?"Enabled":"Disabled",selected:l.emergencyLights,onClick:function(){return a("emergency_lighting")}})})]})})],4)},u=function(e,n){return(0,o.createComponentVNode)(2,l.FullscreenNotice,{title:"System Failure",children:[(0,o.createComponentVNode)(2,c.Box,{fontSize:"1.5rem",bold:!0,children:(0,o.createComponentVNode)(2,c.Icon,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"})}),(0,o.createComponentVNode)(2,c.Box,{fontSize:"1.5rem",bold:!0,children:"Power surge detected, grid check in effect..."})]})},m=function(e,n){var t=(0,r.useBackend)(n),a=t.data,i=t.act,l=(0,o.createComponentVNode)(2,c.Button,{icon:"repeat",content:"Restart Now",color:"good",onClick:function(){return i("reboot")}});return a.locked&&!a.siliconUser&&(l=(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Swipe an ID card for manual reboot."})),(0,o.createComponentVNode)(2,c.Dimmer,{textAlign:"center",children:[(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:(0,o.createVNode)(1,"h1",null,"SYSTEM FAILURE",16)}),(0,o.createComponentVNode)(2,c.Box,{color:"average",children:(0,o.createVNode)(1,"h2",null,"I/O regulators malfunction detected! Waiting for system reboot...",16)}),(0,o.createComponentVNode)(2,c.Box,{color:"good",children:["Automatic reboot in ",a.failTime," seconds..."]}),(0,o.createComponentVNode)(2,c.Box,{mt:4,children:l})]})}},20832:function(e,n,t){"use strict";n.__esModule=!0,n.AccountsTerminal=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.AccountsTerminal=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data,s=d.id_inserted,u=d.id_card,m=d.access_level,p=d.machine_id;return(0,o.createComponentVNode)(2,a.Window,{width:400,height:640,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Machine",color:"average",children:p}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"ID",children:(0,o.createComponentVNode)(2,c.Button,{icon:s?"eject":"sign-in-alt",fluid:!0,content:u,onClick:function(){return l("insert_card")}})})]})}),m>0&&(0,o.createComponentVNode)(2,i)]})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,u=i.creating_new_account,m=i.detailed_account_view;return(0,o.createComponentVNode)(2,c.Section,{title:"Menu",children:[(0,o.createComponentVNode)(2,c.Tabs,{children:[(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:!u&&!m,icon:"home",onClick:function(){return a("view_accounts_list")},children:"Home"}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:u,icon:"cog",onClick:function(){return a("create_account")},children:"New Account"}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{disabled:u,icon:"print",onClick:function(){return a("print")},children:"Print"})]}),u&&(0,o.createComponentVNode)(2,l)||m&&(0,o.createComponentVNode)(2,d)||(0,o.createComponentVNode)(2,s)]})},l=function(e,n){var t=(0,r.useBackend)(n).act,a=(0,r.useSharedState)(n,"holder",""),i=a[0],l=a[1],d=(0,r.useSharedState)(n,"money",""),s=d[0],u=d[1];return(0,o.createComponentVNode)(2,c.Section,{title:"Create Account",level:2,children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Account Holder",children:(0,o.createComponentVNode)(2,c.Input,{value:i,fluid:!0,onInput:function(e,n){return l(n)}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Initial Deposit",children:(0,o.createComponentVNode)(2,c.Input,{value:s,fluid:!0,onInput:function(e,n){return u(n)}})})]}),(0,o.createComponentVNode)(2,c.Button,{disabled:!i||!s,mt:1,fluid:!0,icon:"plus",onClick:function(){return t("finalise_create_account",{holder_name:i,starting_funds:s})},content:"Create"})]})},d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.access_level,d=i.station_account_number,s=i.account_number,u=i.owner_name,m=i.money,p=i.suspended,C=i.transactions;return(0,o.createComponentVNode)(2,c.Section,{title:"Account Details",level:2,buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"ban",selected:p,content:"Suspend",onClick:function(){return a("toggle_suspension")}}),children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Account Number",children:["#",s]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Holder",children:u}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Balance",children:[m,"\u20ae"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Status",color:p?"bad":"good",children:p?"SUSPENDED":"Active"})]}),(0,o.createComponentVNode)(2,c.Section,{title:"CentCom Administrator",level:2,mt:1,children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Payroll",children:(0,o.createComponentVNode)(2,c.Button.Confirm,{color:"bad",fluid:!0,icon:"ban",confirmIcon:"ban",content:"Revoke",confirmContent:"This cannot be undone.",disabled:s===d,onClick:function(){return a("revoke_payroll")}})})})}),l>=2&&(0,o.createComponentVNode)(2,c.Section,{title:"Silent Funds Transfer",level:2,children:[(0,o.createComponentVNode)(2,c.Button,{icon:"plus",onClick:function(){return a("add_funds")},content:"Add Funds"}),(0,o.createComponentVNode)(2,c.Button,{icon:"plus",onClick:function(){return a("remove_funds")},content:"Remove Funds"})]}),(0,o.createComponentVNode)(2,c.Section,{title:"Transactions",level:2,mt:1,children:(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Timestamp"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Target"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Reason"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Value"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Terminal"})]}),C.map((function(e,n){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:[e.date," ",e.time]}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.target_name}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.purpose}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:[e.amount,"\u20ae"]}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.source_terminal})]},n)}))]})})]})},s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.accounts;return(0,o.createComponentVNode)(2,c.Section,{title:"NanoTrasen Accounts",level:2,children:i.length&&(0,o.createComponentVNode)(2,c.LabeledList,{children:i.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.owner_name+e.suspended,color:e.suspended?"bad":null,children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,content:"#"+e.account_number,onClick:function(){return a("view_account_detail",{account_index:e.account_index})}})},e.account_index)}))})||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"There are no accounts available."})})}},19007:function(e,n,t){"use strict";n.__esModule=!0,n.ShuttleList=n.AdminShuttleController=void 0;var o=t(39812),r=t(64499),c=t(71494),a=t(74814),i=t(85952);n.AdminShuttleController=function(e,n){var t=(0,c.useBackend)(n);t.act,t.data;return(0,o.createComponentVNode)(2,i.Window,{width:600,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,l)})})};var l=function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data,s=l.shuttles,u=l.overmap_ships;return(0,o.createComponentVNode)(2,a.Section,{noTopPadding:!0,children:[(0,o.createComponentVNode)(2,a.Section,{title:"Classic Shuttles",level:2,children:(0,o.createComponentVNode)(2,a.Table,{children:(0,r.sortBy)((function(e){return e.name}))(s).map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,a.Button,{m:0,content:"JMP",onClick:function(){return i("adminobserve",{ref:e.ref})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,a.Button,{m:0,content:"Fly",onClick:function(){return i("classicmove",{ref:e.ref})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.current_location}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:d(e.status)})]},e.ref)}))})}),(0,o.createComponentVNode)(2,a.Section,{title:"Overmap Ships",level:2,children:(0,o.createComponentVNode)(2,a.Table,{children:(0,r.sortBy)((function(e){var n;return(null==(n=e.name)?void 0:n.toLowerCase())||e.name||e.ref}))(u).map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,a.Button,{content:"JMP",onClick:function(){return i("adminobserve",{ref:e.ref})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,a.Button,{content:"Control",onClick:function(){return i("overmap_control",{ref:e.ref})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.name})]},e.ref)}))})})]})};n.ShuttleList=l;var d=function(e){switch(e){case 0:return"Idle";case 1:return"Warmup";case 2:return"Transit";default:return"UNK"}}},51104:function(e,n,t){"use strict";n.__esModule=!0,n.AgentCard=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.AgentCard=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.entries,s=l.electronic_warfare;return(0,o.createComponentVNode)(2,a.Window,{width:550,height:400,theme:"syndicate",children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{title:"Info",children:(0,o.createComponentVNode)(2,c.Table,{children:d.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i(e.name.toLowerCase().replace(/ /g,""))},icon:"cog"})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.value})]},e.name)}))})}),(0,o.createComponentVNode)(2,c.Section,{title:"Electronic Warfare",children:(0,o.createComponentVNode)(2,c.Button.Checkbox,{checked:s,content:s?"Electronic warfare is enabled. This will prevent you from being tracked by the AI.":"Electronic warfare disabled.",onClick:function(){return i("electronic_warfare")}})})]})})}},47330:function(e,n,t){"use strict";n.__esModule=!0,n.AiAirlock=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i={2:{color:"good",localStatusText:"Optimal"},1:{color:"average",localStatusText:"Caution"},0:{color:"bad",localStatusText:"Offline"}};n.AiAirlock=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data,s=i[d.power.main]||i[0],u=i[d.power.backup]||i[0],m=i[d.shock]||i[0];return(0,o.createComponentVNode)(2,a.Window,{width:500,height:390,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{title:"Power Status",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Main",color:s.color,buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"lightbulb-o",disabled:!d.power.main,content:"Disrupt",onClick:function(){return l("disrupt-main")}}),children:[d.power.main?"Online":"Offline"," ",d.wires.main_1&&d.wires.main_2?d.power.main_timeleft>0&&"["+d.power.main_timeleft+"s]":"[Wires have been cut!]"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Backup",color:u.color,buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"lightbulb-o",disabled:!d.power.backup,content:"Disrupt",onClick:function(){return l("disrupt-backup")}}),children:[d.power.backup?"Online":"Offline"," ",d.wires.backup_1&&d.wires.backup_2?d.power.backup_timeleft>0&&"["+d.power.backup_timeleft+"s]":"[Wires have been cut!]"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Electrify",color:m.color,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"wrench",disabled:!(d.wires.shock&&0===d.shock),content:"Restore",onClick:function(){return l("shock-restore")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"bolt",disabled:!d.wires.shock,content:"Temporary",onClick:function(){return l("shock-temp")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"bolt",disabled:!d.wires.shock,content:"Permanent",onClick:function(){return l("shock-perm")}})],4),children:[2===d.shock?"Safe":"Electrified"," ",(d.wires.shock?d.shock_timeleft>0&&"["+d.shock_timeleft+"s]":"[Wires have been cut!]")||-1===d.shock_timeleft&&"[Permanent]"]})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Access and Door Control",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"ID Scan",color:"bad",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:d.id_scanner?"power-off":"times",content:d.id_scanner?"Enabled":"Disabled",selected:d.id_scanner,disabled:!d.wires.id_scanner,onClick:function(){return l("idscan-toggle")}}),children:!d.wires.id_scanner&&"[Wires have been cut!]"}),(0,o.createComponentVNode)(2,c.LabeledList.Divider),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Door Bolts",color:"bad",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:d.locked?"lock":"unlock",content:d.locked?"Lowered":"Raised",selected:d.locked,disabled:!d.wires.bolts,onClick:function(){return l("bolt-toggle")}}),children:!d.wires.bolts&&"[Wires have been cut!]"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Door Bolt Lights",color:"bad",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:d.lights?"power-off":"times",content:d.lights?"Enabled":"Disabled",selected:d.lights,disabled:!d.wires.lights,onClick:function(){return l("light-toggle")}}),children:!d.wires.lights&&"[Wires have been cut!]"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Door Force Sensors",color:"bad",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:d.safe?"power-off":"times",content:d.safe?"Enabled":"Disabled",selected:d.safe,disabled:!d.wires.safe,onClick:function(){return l("safe-toggle")}}),children:!d.wires.safe&&"[Wires have been cut!]"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Door Timing Safety",color:"bad",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:d.speed?"power-off":"times",content:d.speed?"Enabled":"Disabled",selected:d.speed,disabled:!d.wires.timing,onClick:function(){return l("speed-toggle")}}),children:!d.wires.timing&&"[Wires have been cut!]"}),(0,o.createComponentVNode)(2,c.LabeledList.Divider),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Door Control",color:"bad",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:d.opened?"sign-out-alt":"sign-in-alt",content:d.opened?"Open":"Closed",selected:d.opened,disabled:d.locked||d.welded,onClick:function(){return l("open-close")}}),children:!(!d.locked&&!d.welded)&&(0,o.createVNode)(1,"span",null,[(0,o.createTextVNode)("[Door is "),d.locked?"bolted":"",d.locked&&d.welded?" and ":"",d.welded?"welded":"",(0,o.createTextVNode)("!]")],0)})]})})]})})}},33084:function(e,n,t){"use strict";n.__esModule=!0,n.AiRestorerContent=n.AiRestorer=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.AiRestorer=function(){return(0,o.createComponentVNode)(2,a.Window,{width:370,height:360,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,i)})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.AI_present,d=i.error,s=i.name,u=i.laws,m=i.isDead,p=i.restoring,C=i.health,h=i.ejectable;return(0,o.createFragment)([d&&(0,o.createComponentVNode)(2,c.NoticeBox,{textAlign:"center",children:d}),!!h&&(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"eject",content:l?s:"----------",disabled:!l,onClick:function(){return a("PRG_eject")}}),!!l&&(0,o.createComponentVNode)(2,c.Section,{title:h?"System Status":s,buttons:(0,o.createComponentVNode)(2,c.Box,{inline:!0,bold:!0,color:m?"bad":"good",children:m?"Nonfunctional":"Functional"}),children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Integrity",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:C,minValue:0,maxValue:100,ranges:{good:[70,Infinity],average:[50,70],bad:[-Infinity,50]}})})}),!!p&&(0,o.createComponentVNode)(2,c.Box,{bold:!0,textAlign:"center",fontSize:"20px",color:"good",mt:1,children:"RECONSTRUCTION IN PROGRESS"}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"plus",content:"Begin Reconstruction",disabled:p,mt:1,onClick:function(){return a("PRG_beginReconstruction")}}),(0,o.createComponentVNode)(2,c.Section,{title:"Laws",level:2,children:u.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{className:"candystripe",children:e},e)}))})]})],0)};n.AiRestorerContent=i},597:function(e,n,t){"use strict";n.__esModule=!0,n.AiSupermatter=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=(t(58083),t(67861));n.AiSupermatter=function(e,n){var t=(0,r.useBackend)(n).data,c=(t.integrity_percentage,t.ambient_temp,t.ambient_pressure,t.detonating),i=(0,o.createComponentVNode)(2,d);return c&&(i=(0,o.createComponentVNode)(2,l)),(0,o.createComponentVNode)(2,a.Window,{width:500,height:300,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:i})})};var l=function(e,n){return(0,o.createComponentVNode)(2,i.FullscreenNotice,{title:"DETONATION IMMINENT",children:(0,o.createComponentVNode)(2,c.Box,{fontSize:"1.5rem",bold:!0,color:"bad",children:[(0,o.createComponentVNode)(2,c.Icon,{color:"bad",name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"}),(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"CRYSTAL DELAMINATING"}),(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Evacuate area immediately"})]})})},d=function(e,n){var t=(0,r.useBackend)(n).data,a=t.integrity_percentage,i=t.ambient_temp,l=t.ambient_pressure;return(0,o.createComponentVNode)(2,c.Section,{title:"Status",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Crystal Integrity",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:a,maxValue:100,ranges:{good:[90,Infinity],average:[25,90],bad:[-Infinity,25]}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Environment Temperature",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:i,maxValue:1e4,ranges:{bad:[5e3,Infinity],average:[4e3,5e3],good:[-Infinity,4e3]},children:[i," K"]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Environment Pressure",children:[l," kPa"]})]})})}},58444:function(e,n,t){"use strict";n.__esModule=!0,n.AirAlarm=void 0;var o=t(39812),r=t(41860),c=(t(2497),t(71494)),a=t(74814),i=t(76270),l=t(85952),d=t(21451),s=t(71739);n.AirAlarm=function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data),a=r.locked&&!r.siliconUser&&!r.remoteUser;return(0,o.createComponentVNode)(2,l.Window,{width:440,height:650,resizable:!0,children:(0,o.createComponentVNode)(2,l.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,d.InterfaceLockNoticeBox),(0,o.createComponentVNode)(2,u),(0,o.createComponentVNode)(2,m),!a&&(0,o.createComponentVNode)(2,C)]})})};var u=function(e,n){var t=(0,c.useBackend)(n).data,l=(t.environment_data||[]).filter((function(e){return e.value>=.01})),d={0:{color:"good",localStatusText:"Optimal"},1:{color:"average",localStatusText:"Caution"},2:{color:"bad",localStatusText:"Danger (Internals Required)"}},s=d[t.danger_level]||d[0];return(0,o.createComponentVNode)(2,a.Section,{title:"Air Status",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[l.length>0&&(0,o.createFragment)([l.map((function(e){var n=d[e.danger_level]||d[0];return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:(0,i.getGasLabel)(e.name),color:n.color,children:[(0,r.toFixed)(e.value,2),e.unit]},e.name)})),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Local status",color:s.color,children:s.localStatusText}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Area status",color:t.atmos_alarm||t.fire_alarm?"bad":"good",children:(t.atmos_alarm?"Atmosphere Alarm":t.fire_alarm&&"Fire Alarm")||"Nominal"})],0)||(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Warning",color:"bad",children:"Cannot obtain air sample for analysis."}),!!t.emagged&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Warning",color:"bad",children:"Safety measures offline. Device may exhibit abnormal behavior."})]})})},m=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=i.target_temperature,d=i.rcon;return(0,o.createComponentVNode)(2,a.Section,{title:"Comfort Settings",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Remote Control",children:[(0,o.createComponentVNode)(2,a.Button,{selected:1===d,content:"Off",onClick:function(){return r("rcon",{rcon:1})}}),(0,o.createComponentVNode)(2,a.Button,{selected:2===d,content:"Auto",onClick:function(){return r("rcon",{rcon:2})}}),(0,o.createComponentVNode)(2,a.Button,{selected:3===d,content:"On",onClick:function(){return r("rcon",{rcon:3})}})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Thermostat",children:(0,o.createComponentVNode)(2,a.Button,{content:l,onClick:function(){return r("temperature")}})})]})})},p={home:{title:"Air Controls",component:function(){return h}},vents:{title:"Vent Controls",component:function(){return N}},scrubbers:{title:"Scrubber Controls",component:function(){return V}},modes:{title:"Operating Mode",component:function(){return b}},thresholds:{title:"Alarm Thresholds",component:function(){return f}}},C=function(e,n){var t=(0,c.useLocalState)(n,"screen"),r=t[0],i=t[1],l=p[r]||p.home,d=l.component();return(0,o.createComponentVNode)(2,a.Section,{title:l.title,buttons:r&&(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-left",content:"Back",onClick:function(){return i()}}),children:(0,o.createComponentVNode)(2,d)})},h=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=(0,c.useLocalState)(n,"screen"),d=(l[0],l[1]),s=i.mode,u=i.atmos_alarm;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:u?"exclamation-triangle":"exclamation",color:u&&"caution",content:"Area Atmosphere Alarm",onClick:function(){return r(u?"reset":"alarm")}}),(0,o.createComponentVNode)(2,a.Box,{mt:1}),(0,o.createComponentVNode)(2,a.Button,{icon:3===s?"exclamation-triangle":"exclamation",color:3===s&&"danger",content:"Panic Siphon",onClick:function(){return r("mode",{mode:3===s?1:3})}}),(0,o.createComponentVNode)(2,a.Box,{mt:2}),(0,o.createComponentVNode)(2,a.Button,{icon:"sign-out-alt",content:"Vent Controls",onClick:function(){return d("vents")}}),(0,o.createComponentVNode)(2,a.Box,{mt:1}),(0,o.createComponentVNode)(2,a.Button,{icon:"filter",content:"Scrubber Controls",onClick:function(){return d("scrubbers")}}),(0,o.createComponentVNode)(2,a.Box,{mt:1}),(0,o.createComponentVNode)(2,a.Button,{icon:"cog",content:"Operating Mode",onClick:function(){return d("modes")}}),(0,o.createComponentVNode)(2,a.Box,{mt:1}),(0,o.createComponentVNode)(2,a.Button,{icon:"chart-bar",content:"Alarm Thresholds",onClick:function(){return d("thresholds")}})],4)},N=function(e,n){var t=(0,c.useBackend)(n).data.vents;return t&&0!==t.length?t.map((function(e){return(0,o.createComponentVNode)(2,s.Vent,{vent:e},e.id_tag)})):"Nothing to show"},V=function(e,n){var t=(0,c.useBackend)(n).data.scrubbers;return t&&0!==t.length?t.map((function(e){return(0,o.createComponentVNode)(2,s.Scrubber,{scrubber:e},e.id_tag)})):"Nothing to show"},b=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.modes;return i&&0!==i.length?i.map((function(e){return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:e.selected?"check-square-o":"square-o",selected:e.selected,color:e.selected&&e.danger&&"danger",content:e.name,onClick:function(){return r("mode",{mode:e.mode})}}),(0,o.createComponentVNode)(2,a.Box,{mt:1})],4,e.mode)})):"Nothing to show"},f=function(e,n){var t=(0,c.useBackend)(n),l=t.act,d=t.data.thresholds;return(0,o.createVNode)(1,"table","LabeledList",[(0,o.createVNode)(1,"thead",null,(0,o.createVNode)(1,"tr",null,[(0,o.createVNode)(1,"td"),(0,o.createVNode)(1,"td","color-bad","min2",16),(0,o.createVNode)(1,"td","color-average","min1",16),(0,o.createVNode)(1,"td","color-average","max1",16),(0,o.createVNode)(1,"td","color-bad","max2",16)],4),2),(0,o.createVNode)(1,"tbody",null,d.map((function(e){return(0,o.createVNode)(1,"tr",null,[(0,o.createVNode)(1,"td","LabeledList__label",(0,o.createVNode)(1,"span","color-"+(0,i.getGasColor)(e.name),(0,i.getGasLabel)(e.name),0),2),e.settings.map((function(e){return(0,o.createVNode)(1,"td",null,(0,o.createComponentVNode)(2,a.Button,{content:(0,r.toFixed)(e.selected,2),onClick:function(){return l("threshold",{env:e.env,"var":e.val})}}),2,null,e.val)}))],0,null,e.name)})),0)],4,{style:{width:"100%"}})}},24053:function(e,n,t){"use strict";n.__esModule=!0,n.Loader=n.AlertModal=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(85952),l=t(29708);function d(e,n){return(d=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}var s=function(e){var n,t;function r(){var n;return(n=e.call(this)||this).buttonRefs=[(0,o.createRef)()],n.state={current:0},n}t=e,(n=r).prototype=Object.create(t.prototype),n.prototype.constructor=n,d(n,t);var s=r.prototype;return s.componentDidMount=function(){for(var e=(0,c.useBackend)(this.context).data.buttons,n=this.state.current,t=this.buttonRefs[n].current,r=1;r=t.length?e=n?e-1:0:e<0&&(e=n?0:t.length-1);var o=this.buttonRefs[e].current;o&&setTimeout((function(){return o.focus()}),1),this.setState({current:e})},s.render=function(){var e=this,n=(0,c.useBackend)(this.context),t=n.act,r=n.data,d=r.title,s=r.message,m=r.buttons,p=r.timeout,C=this.state.current,h=function(){return e.setCurrent(C,!1)},N=Math.max(150,s.length);return(0,o.createComponentVNode)(2,i.Window,{title:d,theme:"abstract",width:350,height:N,canClose:p>0,children:[p&&(0,o.createComponentVNode)(2,u,{value:p}),(0,o.createComponentVNode)(2,i.Window.Content,{onFocus:h,onClick:h,children:(0,o.createComponentVNode)(2,a.Section,{fill:!0,children:(0,o.createComponentVNode)(2,a.Flex,{direction:"column",height:"100%",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Flex,{direction:"column",className:"AlertModal__Message",height:"100%",children:(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Box,{m:1,children:s})})})}),(0,o.createComponentVNode)(2,a.Flex.Item,{my:2,children:(0,o.createComponentVNode)(2,a.Flex,{className:"AlertModal__Buttons",wrap:!0,children:m.map((function(n,r){return(0,o.createComponentVNode)(2,a.Flex.Item,{mx:1,my:.5,children:(0,o.createVNode)(1,"div","Button Button--color--default",n,0,{px:3,onClick:function(){return t("choose",{choice:n})},onKeyDown:function(o){var r=window.event?o.which:o.keyCode;r===l.KEY_SPACE||r===l.KEY_ENTER?t("choose",{choice:n}):r===l.KEY_LEFT||o.shiftKey&&r===l.KEY_TAB?e.setCurrent(C-1,r===l.KEY_LEFT):r!==l.KEY_RIGHT&&r!==l.KEY_TAB||e.setCurrent(C+1,r===l.KEY_RIGHT)}},null,e.buttonRefs[r])},r)}))})})]})})})]})},r}(o.Component);n.AlertModal=s;var u=function(e){var n=e.value;return(0,o.createVNode)(1,"div","AlertModal__Loader",(0,o.createComponentVNode)(2,a.Box,{className:"AlertModal__LoaderProgress",style:{width:100*(0,r.clamp01)(n)+"%"}}),2)};n.Loader=u},34847:function(e,n,t){"use strict";n.__esModule=!0,n.AlgaeFarm=void 0;var o=t(39812),r=t(71494),c=t(74814),a=(t(58083),t(85952)),i=(t(41860),t(2497));n.AlgaeFarm=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data,s=d.usePower,u=d.materials,m=d.last_flow_rate,p=d.last_power_draw,C=d.inputDir,h=d.outputDir,N=d.input,V=d.output,b=d.errorText;return(0,o.createComponentVNode)(2,a.Window,{width:500,height:300,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[b&&(0,o.createComponentVNode)(2,c.NoticeBox,{warning:!0,children:(0,o.createComponentVNode)(2,c.Box,{display:"inline-block",verticalAlign:"middle",children:b})}),(0,o.createComponentVNode)(2,c.Section,{title:"Status",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",content:"Processing",selected:2===s,onClick:function(){return l("toggle")}}),children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Flow Rate",children:[m," L/s"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power Draw",children:[p," W"]}),(0,o.createComponentVNode)(2,c.LabeledList.Divider,{size:1}),u.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:(0,i.capitalize)(e.display),children:[(0,o.createComponentVNode)(2,c.ProgressBar,{width:"80%",value:e.qty,maxValue:e.max,children:[e.qty,"/",e.max]}),(0,o.createComponentVNode)(2,c.Button,{ml:1,content:"Eject",onClick:function(){return l("ejectMaterial",{mat:e.name})}})]},e.name)}))]}),(0,o.createComponentVNode)(2,c.Table,{mt:1,children:(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Section,{title:"Gas Input ("+C+")",children:N?(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Total Pressure",children:[N.pressure," kPa"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:N.name,children:[N.percent,"% (",N.moles," moles)"]})]}):(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No connection detected."})})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Section,{title:"Gas Output ("+h+")",children:V?(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Total Pressure",children:[V.pressure," kPa"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:V.name,children:[V.percent,"% (",V.moles," moles)"]})]}):(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No connection detected."})})})]})})]})]})})}},65145:function(e,n,t){"use strict";n.__esModule=!0,n.AppearanceChanger=void 0;var o=t(39812),r=t(64499),c=t(2497),a=t(71494),i=t(74814),l=t(85952);n.AppearanceChanger=function(e,n){var t=(0,a.useBackend)(n),r=(t.act,t.config),V=t.data,b=V.name,f=V.specimen,g=V.gender,k=V.gender_id,v=V.hair_style,B=V.facial_hair_style,L=V.ear_style,_=V.tail_style,x=V.wing_style,w=V.change_race,S=V.change_gender,I=V.change_eye_color,y=V.change_skin_tone,T=V.change_skin_color,A=V.change_hair_color,P=V.change_facial_hair_color,M=V.change_hair,F=V.change_facial_hair,D=V.mapRef,R=r.title,E=I||y||T||A||P,O=-1;w?O=0:S?O=1:E?O=2:M?O=4:F&&(O=5);var j=(0,a.useLocalState)(n,"tabIndex",O),W=j[0],z=j[1];return(0,o.createComponentVNode)(2,l.Window,{width:700,height:650,title:(0,c.decodeHtmlEntities)(R),children:(0,o.createComponentVNode)(2,l.Window.Content,{children:[(0,o.createComponentVNode)(2,i.Section,{title:"Reflection",children:(0,o.createComponentVNode)(2,i.Flex,{children:[(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Name",children:b}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Species",color:w?null:"grey",children:f}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Biological Sex",color:S?null:"grey",children:g?(0,c.capitalize)(g):"Not Set"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Gender Identity",color:E?null:"grey",children:k?(0,c.capitalize)(k):"Not Set"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Hair Style",color:M?null:"grey",children:v?(0,c.capitalize)(v):"Not Set"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Facial Hair Style",color:F?null:"grey",children:B?(0,c.capitalize)(B):"Not Set"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Ear Style",color:M?null:"grey",children:L?(0,c.capitalize)(L):"Not Set"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Tail Style",color:M?null:"grey",children:_?(0,c.capitalize)(_):"Not Set"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Wing Style",color:M?null:"grey",children:x?(0,c.capitalize)(x):"Not Set"})]})}),(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.ByondUi,{style:{width:"256px",height:"256px"},params:{id:D,type:"map"}})})]})}),(0,o.createComponentVNode)(2,i.Tabs,{children:[w?(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:0===W,onClick:function(){return z(0)},children:"Race"}):null,S?(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:1===W,onClick:function(){return z(1)},children:"Gender & Sex"}):null,E?(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:2===W,onClick:function(){return z(2)},children:"Colors"}):null,M?(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:3===W,onClick:function(){return z(3)},children:"Hair"}),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:5===W,onClick:function(){return z(5)},children:"Ear"}),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:6===W,onClick:function(){return z(6)},children:"Tail"}),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:7===W,onClick:function(){return z(7)},children:"Wing"})],4):null,F?(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:4===W,onClick:function(){return z(4)},children:"Facial Hair"}):null]}),(0,o.createComponentVNode)(2,i.Box,{height:"43%",children:[w&&0===W?(0,o.createComponentVNode)(2,d):null,S&&1===W?(0,o.createComponentVNode)(2,s):null,E&&2===W?(0,o.createComponentVNode)(2,u):null,M&&3===W?(0,o.createComponentVNode)(2,m):null,F&&4===W?(0,o.createComponentVNode)(2,p):null,M&&5===W?(0,o.createComponentVNode)(2,C):null,M&&6===W?(0,o.createComponentVNode)(2,h):null,M&&7===W?(0,o.createComponentVNode)(2,N):null]})]})})};var d=function(e,n){var t=(0,a.useBackend)(n),c=t.act,l=t.data,d=l.species,s=l.specimen,u=(0,r.sortBy)((function(e){return e.specimen}))(d||[]);return(0,o.createComponentVNode)(2,i.Section,{title:"Species",fill:!0,scrollable:!0,children:u.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{content:e.specimen,selected:s===e.specimen,onClick:function(){return c("race",{race:e.specimen})}},e.specimen)}))})},s=function(e,n){var t=(0,a.useBackend)(n),r=t.act,c=t.data,l=c.gender,d=c.gender_id,s=c.genders,u=c.id_genders;return(0,o.createComponentVNode)(2,i.Section,{title:"Gender & Sex",fill:!0,scrollable:!0,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Biological Sex",children:s.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{selected:e.gender_key===l,content:e.gender_name,onClick:function(){return r("gender",{gender:e.gender_key})}},e.gender_key)}))}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Gender Identity",children:u.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{selected:e.gender_key===d,content:e.gender_name,onClick:function(){return r("gender_id",{gender_id:e.gender_key})}},e.gender_key)}))})]})})},u=function(e,n){var t=(0,a.useBackend)(n),r=t.act,c=t.data,l=c.change_eye_color,d=c.change_skin_tone,s=c.change_skin_color,u=c.change_hair_color,m=c.change_facial_hair_color,p=c.eye_color,C=c.skin_color,h=c.hair_color,N=c.facial_hair_color,V=c.ears_color,b=c.ears2_color,f=c.tail_color,g=c.tail2_color,k=c.wing_color,v=c.wing2_color;return(0,o.createComponentVNode)(2,i.Section,{title:"Colors",fill:!0,scrollable:!0,children:[l?(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.ColorBox,{color:p,mr:1}),(0,o.createComponentVNode)(2,i.Button,{content:"Change Eye Color",onClick:function(){return r("eye_color")}})]}):null,d?(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Button,{content:"Change Skin Tone",onClick:function(){return r("skin_tone")}})}):null,s?(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.ColorBox,{color:C,mr:1}),(0,o.createComponentVNode)(2,i.Button,{content:"Change Skin Color",onClick:function(){return r("skin_color")}})]}):null,u?(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.ColorBox,{color:h,mr:1}),(0,o.createComponentVNode)(2,i.Button,{content:"Change Hair Color",onClick:function(){return r("hair_color")}})]}),(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.ColorBox,{color:V,mr:1}),(0,o.createComponentVNode)(2,i.Button,{content:"Change Ears Color",onClick:function(){return r("ears_color")}})]}),(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.ColorBox,{color:b,mr:1}),(0,o.createComponentVNode)(2,i.Button,{content:"Change Secondary Ears Color",onClick:function(){return r("ears2_color")}})]}),(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.ColorBox,{color:f,mr:1}),(0,o.createComponentVNode)(2,i.Button,{content:"Change Tail Color",onClick:function(){return r("tail_color")}})]}),(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.ColorBox,{color:g,mr:1}),(0,o.createComponentVNode)(2,i.Button,{content:"Change Secondary Tail Color",onClick:function(){return r("tail2_color")}})]}),(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.ColorBox,{color:k,mr:1}),(0,o.createComponentVNode)(2,i.Button,{content:"Change Wing Color",onClick:function(){return r("wing_color")}})]}),(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.ColorBox,{color:v,mr:1}),(0,o.createComponentVNode)(2,i.Button,{content:"Change Secondary Wing Color",onClick:function(){return r("wing2_color")}})]})],4):null,m?(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.ColorBox,{color:N,mr:1}),(0,o.createComponentVNode)(2,i.Button,{content:"Change Facial Hair Color",onClick:function(){return r("facial_hair_color")}})]}):null]})},m=function(e,n){var t=(0,a.useBackend)(n),r=t.act,c=t.data,l=c.hair_style,d=c.hair_styles;return(0,o.createComponentVNode)(2,i.Section,{title:"Hair",fill:!0,scrollable:!0,children:d.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{onClick:function(){return r("hair",{hair:e.hairstyle})},selected:e.hairstyle===l,content:e.hairstyle},e.hairstyle)}))})},p=function(e,n){var t=(0,a.useBackend)(n),r=t.act,c=t.data,l=c.facial_hair_style,d=c.facial_hair_styles;return(0,o.createComponentVNode)(2,i.Section,{title:"Facial Hair",fill:!0,scrollable:!0,children:d.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{onClick:function(){return r("facial_hair",{facial_hair:e.facialhairstyle})},selected:e.facialhairstyle===l,content:e.facialhairstyle},e.facialhairstyle)}))})},C=function(e,n){var t=(0,a.useBackend)(n),c=t.act,l=t.data,d=l.ear_style,s=l.ear_styles;return(0,o.createComponentVNode)(2,i.Section,{title:"Ears",fill:!0,scrollable:!0,children:[(0,o.createComponentVNode)(2,i.Button,{onClick:function(){return c("ear",{clear:!0})},selected:null===d,content:"-- Not Set --"}),(0,r.sortBy)((function(e){return e.name.toLowerCase()}))(s).map((function(e){return(0,o.createComponentVNode)(2,i.Button,{onClick:function(){return c("ear",{ref:e.instance})},selected:e.name===d,content:e.name},e.instance)}))]})},h=function(e,n){var t=(0,a.useBackend)(n),c=t.act,l=t.data,d=l.tail_style,s=l.tail_styles;return(0,o.createComponentVNode)(2,i.Section,{title:"Tails",fill:!0,scrollable:!0,children:[(0,o.createComponentVNode)(2,i.Button,{onClick:function(){return c("tail",{clear:!0})},selected:null===d,content:"-- Not Set --"}),(0,r.sortBy)((function(e){return e.name.toLowerCase()}))(s).map((function(e){return(0,o.createComponentVNode)(2,i.Button,{onClick:function(){return c("tail",{ref:e.instance})},selected:e.name===d,content:e.name},e.instance)}))]})},N=function(e,n){var t=(0,a.useBackend)(n),c=t.act,l=t.data,d=l.wing_style,s=l.wing_styles;return(0,o.createComponentVNode)(2,i.Section,{title:"Wings",fill:!0,scrollable:!0,children:[(0,o.createComponentVNode)(2,i.Button,{onClick:function(){return c("wing",{clear:!0})},selected:null===d,content:"-- Not Set --"}),(0,r.sortBy)((function(e){return e.name.toLowerCase()}))(s).map((function(e){return(0,o.createComponentVNode)(2,i.Button,{onClick:function(){return c("wing",{ref:e.instance})},selected:e.name===d,content:e.name},e.instance)}))]})}},86776:function(e,n,t){"use strict";n.__esModule=!0,n.ArcadeBattle=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.ArcadeBattle=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=(l.name,l.temp),s=l.enemyAction,u=l.enemyName,m=l.playerHP,p=l.playerMP,C=l.enemyHP,h=(l.enemyMP,l.gameOver);return(0,o.createComponentVNode)(2,a.Window,{width:400,height:240,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{title:u,textAlign:"center",children:[(0,o.createComponentVNode)(2,c.Section,{color:"label",children:[(0,o.createComponentVNode)(2,c.Box,{children:d}),(0,o.createComponentVNode)(2,c.Box,{children:!h&&s})]}),(0,o.createComponentVNode)(2,c.Flex,{spacing:1,children:[(0,o.createComponentVNode)(2,c.Flex.Item,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Player Health",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:m,minValue:0,maxValue:30,ranges:{olive:[31,Infinity],good:[20,31],average:[10,20],bad:[-Infinity,10]},children:[m,"HP"]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Player Magic",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:p,minValue:0,maxValue:10,ranges:{purple:[11,Infinity],violet:[3,11],bad:[-Infinity,3]},children:[p,"MP"]})})]})}),(0,o.createComponentVNode)(2,c.Flex.Item,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Enemy HP",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:C,minValue:0,maxValue:45,ranges:{olive:[31,Infinity],good:[20,31],average:[10,20],bad:[-Infinity,10]},children:[C,"HP"]})})})})]}),h&&(0,o.createComponentVNode)(2,c.Button,{fluid:!0,mt:1,color:"green",content:"New Game",onClick:function(){return i("newgame")}})||(0,o.createComponentVNode)(2,c.Flex,{mt:2,justify:"space-between",spacing:1,children:[(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"fist-raised",tooltip:"Go in for the kill!",tooltipPosition:"top",onClick:function(){return i("attack")},content:"Attack!"})}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"band-aid",tooltip:"Heal yourself!",tooltipPosition:"top",onClick:function(){return i("heal")},content:"Heal!"})}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"magic",tooltip:"Recharge your magic!",tooltipPosition:"top",onClick:function(){return i("charge")},content:"Recharge!"})})]})]})})})}},13496:function(e,n,t){"use strict";n.__esModule=!0,n.AreaScrubberControl=void 0;var o=t(39812),r=t(74814),c=t(71494),a=t(85952),i=t(2497);n.AreaScrubberControl=function(e,n){var t=(0,c.useBackend)(n),i=t.act,d=t.data,s=(0,c.useLocalState)(n,"showArea",!1),u=s[0],m=s[1],p=d.scrubbers;return p?(0,o.createComponentVNode)(2,a.Window,{width:600,height:400,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,r.Section,{children:[(0,o.createComponentVNode)(2,r.Flex,{wrap:"wrap",children:[(0,o.createComponentVNode)(2,r.Flex.Item,{m:"2px",basis:"49%",children:(0,o.createComponentVNode)(2,r.Button,{textAlign:"center",fluid:!0,icon:"search",content:"Scan",onClick:function(){return i("scan")}})}),(0,o.createComponentVNode)(2,r.Flex.Item,{m:"2px",basis:"49%",grow:1,children:(0,o.createComponentVNode)(2,r.Button,{textAlign:"center",fluid:!0,icon:"layer-group",content:"Show Areas",selected:u,onClick:function(){return m(!u)}})}),(0,o.createComponentVNode)(2,r.Flex.Item,{m:"2px",basis:"49%",children:(0,o.createComponentVNode)(2,r.Button,{textAlign:"center",fluid:!0,icon:"toggle-on",content:"All On",onClick:function(){return i("allon")}})}),(0,o.createComponentVNode)(2,r.Flex.Item,{m:"2px",basis:"49%",grow:1,children:(0,o.createComponentVNode)(2,r.Button,{textAlign:"center",fluid:!0,icon:"toggle-off",content:"All Off",onClick:function(){return i("alloff")}})})]}),(0,o.createComponentVNode)(2,r.Flex,{wrap:"wrap",children:p.map((function(e){return(0,o.createComponentVNode)(2,r.Flex.Item,{m:"2px",basis:"32%",children:(0,o.createComponentVNode)(2,l,{scrubber:e,showArea:u})},e.id)}))})]})})}):(0,o.createComponentVNode)(2,r.Section,{title:"Error",children:[(0,o.createComponentVNode)(2,r.Box,{color:"bad",children:"No Scrubbers Detected."}),(0,o.createComponentVNode)(2,r.Button,{fluid:!0,icon:"search",content:"Scan",onClick:function(){return i("scan")}})]})};var l=function(e,n){var t=(0,c.useBackend)(n).act,a=e.scrubber,l=e.showArea;return(0,o.createComponentVNode)(2,r.Section,{title:a.name,children:[(0,o.createComponentVNode)(2,r.Button,{fluid:!0,icon:"power-off",content:a.on?"Enabled":"Disabled",selected:a.on,onClick:function(){return t("toggle",{id:a.id})}}),(0,o.createComponentVNode)(2,r.LabeledList,{children:[(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Pressure",children:[a.pressure," kPa"]}),(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Flow Rate",children:[a.flow_rate," L/s"]}),(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Load",children:[a.load," W"]}),l&&(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Area",children:(0,i.toTitleCase)(a.area)})]})]})}},56404:function(e,n,t){"use strict";n.__esModule=!0,n.AssemblyInfrared=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.AssemblyInfrared=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.on,s=l.visible;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{title:"Infrared Unit",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Laser",children:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",fluid:!0,selected:d,onClick:function(){return i("state")},children:d?"On":"Off"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Visibility",children:(0,o.createComponentVNode)(2,c.Button,{icon:"eye",fluid:!0,selected:s,onClick:function(){return i("visible")},children:s?"Able to be seen":"Invisible"})})]})})})})}},29632:function(e,n,t){"use strict";n.__esModule=!0,n.AssemblyProx=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(85952),l=t(58083);n.AssemblyProx=function(e,n){var t=(0,c.useBackend)(n),d=t.act,s=t.data,u=s.timing,m=s.time,p=s.range,C=s.maxRange,h=s.scanning;return(0,o.createComponentVNode)(2,i.Window,{children:(0,o.createComponentVNode)(2,i.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Section,{title:"Timing Unit",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Timer",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"stopwatch",selected:u,onClick:function(){return d("timing")},children:u?"Counting Down":"Disabled"}),children:(0,o.createComponentVNode)(2,a.NumberInput,{animated:!0,fluid:!0,value:m/10,minValue:0,maxValue:600,format:function(e){return(0,l.formatTime)((0,r.round)(e))},onDrag:function(e,n){return d("set_time",{time:n})}})})})}),(0,o.createComponentVNode)(2,a.Section,{title:"Prox Unit",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Range",children:(0,o.createComponentVNode)(2,a.NumberInput,{minValue:1,value:p,maxValue:C,onDrag:function(e,n){return d("range",{range:n})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Armed",children:[(0,o.createComponentVNode)(2,a.Button,{mr:1,icon:h?"lock":"lock-open",selected:h,onClick:function(){return d("scanning")},children:h?"ARMED":"Unarmed"}),"Movement sensor is active when armed!"]})]})})]})})}},48661:function(e,n,t){"use strict";n.__esModule=!0,n.AssemblyTimer=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(85952),l=t(58083);n.AssemblyTimer=function(e,n){var t=(0,c.useBackend)(n),d=t.act,s=t.data,u=s.timing,m=s.time;return(0,o.createComponentVNode)(2,i.Window,{children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{title:"Timing Unit",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Timer",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"stopwatch",selected:u,onClick:function(){return d("timing")},children:u?"Counting Down":"Disabled"}),children:(0,o.createComponentVNode)(2,a.NumberInput,{animated:!0,fluid:!0,value:m/10,minValue:0,maxValue:600,format:function(e){return(0,l.formatTime)((0,r.round)(e))},onDrag:function(e,n){return d("set_time",{time:n})}})})})})})})}},38531:function(e,n,t){"use strict";n.__esModule=!0,n.AtmosAlertConsole=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.AtmosAlertConsole=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.priority_alarms||[],s=l.minor_alarms||[];return(0,o.createComponentVNode)(2,a.Window,{width:350,height:300,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,c.Section,{title:"Alarms",children:(0,o.createVNode)(1,"ul",null,[0===d.length&&(0,o.createVNode)(1,"li","color-good","No Priority Alerts",16),d.map((function(e){return(0,o.createVNode)(1,"li",null,(0,o.createComponentVNode)(2,c.Button,{icon:"times",content:e.name,color:"bad",onClick:function(){return i("clear",{ref:e.ref})}}),2,null,e.name)})),0===s.length&&(0,o.createVNode)(1,"li","color-good","No Minor Alerts",16),s.map((function(e){return(0,o.createVNode)(1,"li",null,(0,o.createComponentVNode)(2,c.Button,{icon:"times",content:e.name,color:"average",onClick:function(){return i("clear",{ref:e.ref})}}),2,null,e.name)}))],0)})})})}},46566:function(e,n,t){"use strict";n.__esModule=!0,n.AtmosControlContent=n.AtmosControl=void 0;var o=t(39812),r=t(64499),c=t(85952),a=t(74814),i=t(71494);(0,t(88654).createLogger)("fuck");n.AtmosControl=function(e,n){return(0,o.createComponentVNode)(2,c.Window,{width:600,height:440,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,l)})})};var l=function(e,n){var t,c=(0,i.useBackend)(n),l=c.act,d=c.data,s=c.config,u=(0,r.sortBy)((function(e){return e.name}))(d.alarms||[]),m=(0,i.useLocalState)(n,"tabIndex",0),p=m[0],C=m[1],h=(0,i.useLocalState)(n,"zoom",1),N=h[0],V=h[1];return 0===p?t=(0,o.createComponentVNode)(2,a.Section,{title:"Alarms",children:u.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{content:e.name,color:2===e.danger?"bad":1===e.danger?"average":"",onClick:function(){return l("alarm",{alarm:e.ref})}},e.name)}))}):1===p&&(t=(0,o.createComponentVNode)(2,a.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,o.createComponentVNode)(2,a.NanoMap,{onZoom:function(e){return V(e)},children:u.filter((function(e){return~~e.z==~~s.mapZLevel})).map((function(e){return(0,o.createComponentVNode)(2,a.NanoMap.Marker,{x:e.x,y:e.y,zoom:N,icon:"bell",tooltip:e.name,color:e.danger?"red":"green",onClick:function(){return l("alarm",{alarm:e.ref})}},e.ref)}))})})),(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Tabs,{children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:0===p,onClick:function(){return C(0)},children:[(0,o.createComponentVNode)(2,a.Icon,{name:"table"})," Alarm View"]},"AlarmView"),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:1===p,onClick:function(){return C(1)},children:[(0,o.createComponentVNode)(2,a.Icon,{name:"map-marked-alt"})," Map View"]},"MapView")]}),(0,o.createComponentVNode)(2,a.Box,{m:2,children:t})],4)};n.AtmosControlContent=l},2726:function(e,n,t){"use strict";n.__esModule=!0,n.AtmosFilter=void 0;var o=t(39812),r=t(71494),c=t(74814),a=(t(76270),t(85952));n.AtmosFilter=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.filter_types||[];return(0,o.createComponentVNode)(2,a.Window,{width:390,height:187,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power",children:(0,o.createComponentVNode)(2,c.Button,{icon:l.on?"power-off":"times",content:l.on?"On":"Off",selected:l.on,onClick:function(){return i("power")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Transfer Rate",children:[(0,o.createComponentVNode)(2,c.Box,{inline:!0,mr:1,children:(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:l.last_flow_rate,format:function(e){return e+" L/s"}})}),(0,o.createComponentVNode)(2,c.NumberInput,{animated:!0,value:parseFloat(l.rate),width:"63px",unit:"L/s",minValue:0,maxValue:200,onDrag:function(e,n){return i("rate",{rate:n})}}),(0,o.createComponentVNode)(2,c.Button,{ml:1,icon:"plus",content:"Max",disabled:l.rate===l.max_rate,onClick:function(){return i("rate",{rate:"max"})}})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Filter",children:d.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{selected:e.selected,content:e.name,onClick:function(){return i("filter",{filterset:e.f_type})}},e.name)}))})]})})})})}},61505:function(e,n,t){"use strict";n.__esModule=!0,n.AtmosMixer=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.AtmosMixer=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data;return(0,o.createComponentVNode)(2,a.Window,{width:370,height:195,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power",children:(0,o.createComponentVNode)(2,c.Button,{icon:l.on?"power-off":"times",content:l.on?"On":"Off",selected:l.on,onClick:function(){return i("power")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Output Pressure",children:[(0,o.createComponentVNode)(2,c.NumberInput,{animated:!0,value:parseFloat(l.set_pressure),unit:"kPa",width:"75px",minValue:0,maxValue:l.max_pressure,step:10,onChange:function(e,n){return i("pressure",{pressure:n})}}),(0,o.createComponentVNode)(2,c.Button,{ml:1,icon:"plus",content:"Max",disabled:l.set_pressure===l.max_pressure,onClick:function(){return i("pressure",{pressure:"max"})}})]}),(0,o.createComponentVNode)(2,c.LabeledList.Divider,{size:1}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{color:"label",children:(0,o.createVNode)(1,"u",null,"Concentrations",16)}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Node 1 ("+l.node1_dir+")",children:(0,o.createComponentVNode)(2,c.NumberInput,{animated:!0,value:l.node1_concentration,unit:"%",width:"60px",minValue:0,maxValue:100,stepPixelSize:2,onDrag:function(e,n){return i("node1",{concentration:n})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Node 2 ("+l.node2_dir+")",children:(0,o.createComponentVNode)(2,c.NumberInput,{animated:!0,value:l.node2_concentration,unit:"%",width:"60px",minValue:0,maxValue:100,stepPixelSize:2,onDrag:function(e,n){return i("node2",{concentration:n})}})})]})})})})}},99994:function(e,n,t){"use strict";n.__esModule=!0,n.Autolathe=void 0;var o=t(39812),r=(t(41860),t(85531)),c=t(64499),a=t(71494),i=t(74814),l=t(85952),d=t(95481),s=t(2497),u=function(e,n,t){if(void 0===t&&(t=1),null===e.requirements)return!0;for(var o=Object.keys(e.requirements),r=function(){var o=a[c],r=n.find((function(e){return e.name===o}));return r?r.amount=e[1].price/d.build_eff,e[1]})).sort(l[N]);if(0!==t.length)return b&&(t=t.reverse()),g=!0,(0,o.createComponentVNode)(2,m,{title:e[0],items:t},e[0])}));return(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",overflow:"auto",children:(0,o.createComponentVNode)(2,a.Section,{onClick:function(e){return(0,i.refocusLayout)()},children:g?k:(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"No items matching your criteria was found!"})})})},s=function(e,n){var t=(0,c.useLocalState)(n,"search",""),r=(t[0],t[1]),i=(0,c.useLocalState)(n,"sort",""),d=(i[0],i[1]),s=(0,c.useLocalState)(n,"descending",!1),u=s[0],m=s[1];return(0,o.createComponentVNode)(2,a.Box,{mb:"0.5rem",children:(0,o.createComponentVNode)(2,a.Flex,{width:"100%",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",mr:"0.5rem",children:(0,o.createComponentVNode)(2,a.Input,{placeholder:"Search by item name..",width:"100%",onInput:function(e,n){return r(n)}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"30%",children:(0,o.createComponentVNode)(2,a.Dropdown,{selected:"Alphabetical",options:Object.keys(l),width:"100%",lineHeight:"19px",onSelected:function(e){return d(e)}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Button,{icon:u?"arrow-down":"arrow-up",height:"19px",tooltip:u?"Descending order":"Ascending order",tooltipPosition:"bottom-end",ml:"0.5rem",onClick:function(){return m(!u)}})})]})})},u=function(e,n){return!!e.affordable&&!(e.reagent&&!n.beaker)},m=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=e.title,d=e.items,s=function(e,n){if(null==e)return{};var t,o,r={},c=Object.keys(e);for(o=0;o=0||(r[t]=e[t]);return r}(e,["title","items"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Collapsible,Object.assign({open:!0,title:l},s,{children:d.map((function(e){return(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Box,{display:"inline-block",verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:e.name}),(0,o.createComponentVNode)(2,a.Button,{disabled:!u(e,i),content:(e.price/i.build_eff).toLocaleString("en-US"),width:"15%",textAlign:"center",style:{float:"right"},onClick:function(){return r("purchase",{cat:l,name:e.name})}}),(0,o.createComponentVNode)(2,a.Box,{style:{clear:"both"}})]},e.name)}))})))}},81850:function(e,n,t){"use strict";n.__esModule=!0,n.BodyDesigner=void 0;var o=t(39812),r=t(2497),c=t(71494),a=t(74814),i=t(85952);n.BodyDesigner=function(e,n){var t=(0,c.useBackend)(n),r=t.act,d=t.data,s=d.menu,u=d.disk,m=d.diskStored,p=d.activeBodyRecord,C=l[s];return(0,o.createComponentVNode)(2,i.Window,{width:400,height:650,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:[u?(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Button,{icon:"save",content:"Save To Disk",onClick:function(){return r("savetodisk")},disabled:!p}),(0,o.createComponentVNode)(2,a.Button,{icon:"save",content:"Load From Disk",onClick:function(){return r("loadfromdisk")},disabled:!m}),(0,o.createComponentVNode)(2,a.Button,{icon:"eject",content:"Eject",onClick:function(){return r("ejectdisk")}})]}):null,C]})})};var l={Main:(0,o.createComponentVNode)(2,(function(e,n){var t=(0,c.useBackend)(n),r=t.act;t.data;return(0,o.createComponentVNode)(2,a.Section,{title:"Database Functions",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"eye",content:"View Individual Body Records",onClick:function(){return r("menu",{menu:"Body Records"})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"eye",content:"View Stock Body Records",onClick:function(){return r("menu",{menu:"Stock Records"})}})]})})),"Body Records":(0,o.createComponentVNode)(2,(function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.bodyrecords;return(0,o.createComponentVNode)(2,a.Section,{title:"Body Records",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-left",content:"Back",onClick:function(){return r("menu",{menu:"Main"})}}),children:i.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{icon:"eye",content:e.name,onClick:function(){return r("view_brec",{view_brec:e.recref})}},e.name)}))})})),"Stock Records":(0,o.createComponentVNode)(2,(function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.stock_bodyrecords;return(0,o.createComponentVNode)(2,a.Section,{title:"Stock Records",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-left",content:"Back",onClick:function(){return r("menu",{menu:"Main"})}}),children:i.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{icon:"eye",content:e,onClick:function(){return r("view_stock_brec",{view_stock_brec:e})}},e)}))})})),"Specific Record":(0,o.createComponentVNode)(2,(function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data,d=l.activeBodyRecord,s=l.mapRef;return d?(0,o.createComponentVNode)(2,a.Flex,{direction:"column",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"165px",children:(0,o.createComponentVNode)(2,a.Section,{title:"Specific Record",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-left",content:"Back",onClick:function(){return i("menu",{menu:"Main"})}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:d.real_name}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Species",children:d.speciesname}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Bio. Sex",children:(0,o.createComponentVNode)(2,a.Button,{icon:"pen",content:(0,r.capitalize)(d.gender),onClick:function(){return i("href_conversion",{target_href:"bio_gender",target_value:1})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Synthetic",children:d.synthetic}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Mind Compat",children:[d.locked,(0,o.createComponentVNode)(2,a.Button,{ml:1,icon:"eye",content:"View OOC Notes",disabled:!d.booc,onClick:function(){return i("boocnotes")}})]})]})})}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"130px",children:(0,o.createComponentVNode)(2,a.ByondUi,{style:{width:"100%",height:"128px"},params:{id:s,type:"map"}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"300px",children:(0,o.createComponentVNode)(2,a.Section,{title:"Customize",height:"300px",style:{overflow:"auto"},children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Scale",children:(0,o.createComponentVNode)(2,a.Button,{icon:"pen",content:d.scale,onClick:function(){return i("href_conversion",{target_href:"size_multiplier",target_value:1})}})}),Object.keys(d.styles).map((function(e){var n=d.styles[e];return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e,children:[n.styleHref?(0,o.createComponentVNode)(2,a.Button,{icon:"pen",content:n.style,onClick:function(){return i("href_conversion",{target_href:n.styleHref,target_value:1})}}):null,n.colorHref?(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Button,{icon:"pen",content:n.color,onClick:function(){return i("href_conversion",{target_href:n.colorHref,target_value:1})}}),(0,o.createComponentVNode)(2,a.ColorBox,{verticalAlign:"top",width:"32px",height:"20px",color:n.color,style:{border:"1px solid #fff"}})]}):null,n.colorHref2?(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Button,{icon:"pen",content:n.color2,onClick:function(){return i("href_conversion",{target_href:n.colorHref2,target_value:1})}}),(0,o.createComponentVNode)(2,a.ColorBox,{verticalAlign:"top",width:"32px",height:"20px",color:n.color2,style:{border:"1px solid #fff"}})]}):null]},e)})),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Body Markings",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"plus",content:"Add Marking",onClick:function(){return i("href_conversion",{target_href:"marking_style",target_value:1})}}),(0,o.createComponentVNode)(2,a.Flex,{wrap:"wrap",justify:"center",align:"center",children:Object.keys(d.markings).map((function(e){var n=d.markings[e];return(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"100%",children:(0,o.createComponentVNode)(2,a.Flex,{children:[(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Button,{mr:.2,fluid:!0,icon:"times",color:"red",onClick:function(){return i("href_conversion",{target_href:"marking_remove",target_value:e})}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,backgroundColor:n,content:e,onClick:function(){return i("href_conversion",{target_href:"marking_color",target_value:e})}})})]})},e)}))})]})]})})})]}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"ERROR: Record Not Found!"})})),"OOC Notes":(0,o.createComponentVNode)(2,(function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.activeBodyRecord;return(0,o.createComponentVNode)(2,a.Section,{title:"Body OOC Notes (This is OOC!)",height:"100%",scrollable:!0,buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-left",content:"Back",onClick:function(){return r("menu",{menu:"Specific Record"})}}),style:{"word-break":"break-all"},children:i&&i.booc||"ERROR: Body record not found!"})}))}},6060:function(e,n,t){"use strict";n.__esModule=!0,n.BodyScanner=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(85952),l=[["good","Alive"],["average","Unconscious"],["bad","DEAD"]],d=[["hasBorer","bad",function(e){return"Large growth detected in frontal lobe, possibly cancerous. Surgical removal is recommended."}],["hasVirus","bad",function(e){return"Viral pathogen detected in blood stream."}],["blind","average",function(e){return"Cataracts detected."}],["colourblind","average",function(e){return"Photoreceptor abnormalities detected."}],["nearsighted","average",function(e){return"Retinal misalignment detected."}],["humanPrey","average",function(e){return"Foreign Humanoid(s) detected: "+e.humanPrey}],["livingPrey","average",function(e){return"Foreign Creature(s) detected: "+e.livingPrey}],["objectPrey","average",function(e){return"Foreign Object(s) detected: "+e.objectPrey}]],s=[["Respiratory","oxyLoss"],["Brain","brainLoss"],["Toxin","toxLoss"],["Radiation","radLoss"],["Brute","bruteLoss"],["Genetic","cloneLoss"],["Burn","fireLoss"],["Paralysis","paralysis"]],u={average:[.25,.5],bad:[.5,Infinity]},m=function(e,n){for(var t=[],o=0;o0?e.reduce((function(e,n){return null===e?n:(0,o.createFragment)([e,!!n&&(0,o.createComponentVNode)(2,a.Box,{children:n})],0)})):null},C=function(e){if(e>100){if(e<300)return"mild infection";if(e<400)return"mild infection+";if(e<500)return"mild infection++";if(e<700)return"acute infection";if(e<800)return"acute infection+";if(e<900)return"acute infection++";if(e>=900)return"septic"}return""};n.BodyScanner=function(e,n){var t=(0,c.useBackend)(n).data,r=t.occupied,a=t.occupant,l=void 0===a?{}:a,d=r?(0,o.createComponentVNode)(2,h,{occupant:l}):(0,o.createComponentVNode)(2,B);return(0,o.createComponentVNode)(2,i.Window,{width:690,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:d})})};var h=function(e){var n=e.occupant;return(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,N,{occupant:n}),(0,o.createComponentVNode)(2,V,{occupant:n}),(0,o.createComponentVNode)(2,b,{occupant:n}),(0,o.createComponentVNode)(2,f,{occupant:n}),(0,o.createComponentVNode)(2,k,{organs:n.extOrgan}),(0,o.createComponentVNode)(2,v,{organs:n.intOrgan})]})},N=function(e,n){var t=(0,c.useBackend)(n),i=t.act,d=t.data,s=d.occupant;return(0,o.createComponentVNode)(2,a.Section,{title:"Occupant",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"user-slash",onClick:function(){return i("ejectify")},children:"Eject"}),(0,o.createComponentVNode)(2,a.Button,{icon:"print",onClick:function(){return i("print_p")},children:"Print Report"})],4),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:s.name}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Health",children:(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:s.maxHealth,value:s.health/s.maxHealth,ranges:{good:[.5,Infinity],average:[0,.5],bad:[-Infinity,0]}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",color:l[s.stat][0],children:l[s.stat][1]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Temperature",children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:(0,r.round)(s.bodyTempC,0)}),"\xb0C,\xa0",(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:(0,r.round)(s.bodyTempF,0)}),"\xb0F"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Blood Volume",children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:(0,r.round)(s.blood.volume,0)})," units\xa0(",(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:(0,r.round)(s.blood.percent,0)}),"%)"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Weight",children:(0,r.round)(d.occupant.weight)+"lbs, "+(0,r.round)(d.occupant.weight/2.20463)+"kgs"})]})})},V=function(e){var n=e.occupant;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{title:"Blood Reagents",children:n.reagents?(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Reagent"}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"right",children:"Amount"})]}),n.reagents.map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"right",children:[e.amount," Units ",e.overdose?(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"OVERDOSING"}):null]})]},e.name)}))]}):(0,o.createComponentVNode)(2,a.Box,{color:"good",children:"No Blood Reagents Detected"})}),(0,o.createComponentVNode)(2,a.Section,{title:"Stomach Reagents",children:n.ingested?(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Reagent"}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"right",children:"Amount"})]}),n.ingested.map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"right",children:[e.amount," Units ",e.overdose?(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"OVERDOSING"}):null]})]},e.name)}))]}):(0,o.createComponentVNode)(2,a.Box,{color:"good",children:"No Stomach Reagents Detected"})})],4)},b=function(e){var n=e.occupant,t=n.hasBorer||n.blind||n.colourblind||n.nearsighted||n.hasVirus;return(t=t||n.humanPrey||n.livingPrey||n.objectPrey)?(0,o.createComponentVNode)(2,a.Section,{title:"Abnormalities",children:d.map((function(e,t){if(n[e[0]])return(0,o.createComponentVNode)(2,a.Box,{color:e[1],bold:"bad"===e[1],children:e[2](n)})}))}):(0,o.createComponentVNode)(2,a.Section,{title:"Abnormalities",children:(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"No abnormalities found."})})},f=function(e){var n=e.occupant;return(0,o.createComponentVNode)(2,a.Section,{title:"Damage",children:(0,o.createComponentVNode)(2,a.Table,{children:m(s,(function(e,t,r){return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Table.Row,{color:"label",children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:[e[0],":"]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:!!t&&t[0]+":"})]}),(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,g,{value:n[e[1]],marginBottom:r0&&"0.5rem",value:e.totalLoss/100,ranges:u,children:[(0,o.createComponentVNode)(2,a.Box,{float:"left",inline:!0,children:[!!e.bruteLoss&&(0,o.createComponentVNode)(2,a.Box,{inline:!0,position:"relative",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"bone"}),(0,r.round)(e.bruteLoss,0),"\xa0",(0,o.createComponentVNode)(2,a.Tooltip,{position:"top",content:"Brute damage"})]}),!!e.fireLoss&&(0,o.createComponentVNode)(2,a.Box,{inline:!0,position:"relative",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"fire"}),(0,r.round)(e.fireLoss,0),(0,o.createComponentVNode)(2,a.Tooltip,{position:"top",content:"Burn damage"})]})]}),(0,o.createComponentVNode)(2,a.Box,{inline:!0,children:(0,r.round)(e.totalLoss,0)})]})}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"right",width:"33%",children:[(0,o.createComponentVNode)(2,a.Box,{color:"average",inline:!0,children:p([e.internalBleeding&&"Internal bleeding",!!e.status.bleeding&&"External bleeding",e.lungRuptured&&"Ruptured lung",e.destroyed&&"Destroyed",!!e.status.broken&&e.status.broken,C(e.germ_level),!!e.open&&"Open incision"])}),(0,o.createComponentVNode)(2,a.Box,{inline:!0,children:[p([!!e.status.splinted&&"Splinted",!!e.status.robotic&&"Robotic",!!e.status.dead&&(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"DEAD"})]),p(e.implants.map((function(e){return e.known?e.name:"Unknown object"})))]})]})]},n)}))]})})},v=function(e){return 0===e.organs.length?(0,o.createComponentVNode)(2,a.Section,{title:"Internal Organs",children:(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"N/A"})}):(0,o.createComponentVNode)(2,a.Section,{title:"Internal Organs",children:(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Name"}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"center",children:"Damage"}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"right",children:"Injuries"})]}),e.organs.map((function(e,n){return(0,o.createComponentVNode)(2,a.Table.Row,{textTransform:"capitalize",children:[(0,o.createComponentVNode)(2,a.Table.Cell,{width:"33%",children:e.name}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"center",children:(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:e.maxHealth,value:e.damage/100,mt:n>0&&"0.5rem",ranges:u,children:(0,r.round)(e.damage,0)})}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"right",width:"33%",children:[(0,o.createComponentVNode)(2,a.Box,{color:"average",inline:!0,children:p([C(e.germ_level),!!e.inflamed&&"Appendicitis detected."])}),(0,o.createComponentVNode)(2,a.Box,{inline:!0,children:p([1===e.robotic&&"Robotic",2===e.robotic&&"Assisted",!!e.dead&&(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"DEAD"})])})]})]},n)}))]})})},B=function(){return(0,o.createComponentVNode)(2,a.Section,{textAlign:"center",flexGrow:"1",children:(0,o.createComponentVNode)(2,a.Flex,{height:"100%",children:(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",align:"center",color:"label",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),"No occupant detected."]})})})}},74639:function(e,n,t){"use strict";n.__esModule=!0,n.BombTester=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);t(88654);function i(e,n){return(i=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}n.BombTester=function(e,n){var t=(0,r.useBackend)(n),i=t.act,d=t.data,s=d.simulating,u=d.mode,m=d.tank1,p=d.tank1ref,C=d.tank2,h=d.tank2ref,N=d.canister,V=d.sim_canister_output;return(0,o.createComponentVNode)(2,a.Window,{width:450,height:400,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:s&&(0,o.createComponentVNode)(2,l)||(0,o.createComponentVNode)(2,c.Section,{title:"Virtual Explosive Simulator v2.01",children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Mode",children:[(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("set_mode",{mode:1})},selected:1===u,children:"Single Tank"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("set_mode",{mode:2})},selected:2===u,children:"Transfer Valve"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("set_mode",{mode:3})},selected:3===u,children:"Canister"})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Primary Slot",children:m&&(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("remove_tank",{ref:p})},icon:"eject",children:m})||(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("add_tank",{slot:1})},icon:"upload",children:"Insert Tank"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Secondary Slot",children:C&&(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("remove_tank",{ref:h})},icon:"eject",children:C})||(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("add_tank",{slot:2})},icon:"upload",children:"Insert Tank"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Connected Canister",buttons:(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("canister_scan")},icon:"search",children:"Scan"}),children:N&&(0,o.createComponentVNode)(2,c.Box,{color:"label",children:N})||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No tank connected."})}),N&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Canister Release Pressure",children:(0,o.createComponentVNode)(2,c.Slider,{minValue:0,value:V,maxValue:1013.25,onDrag:function(e,n){return i("set_can_pressure",{pressure:n})}})})]}),(0,o.createComponentVNode)(2,c.Button,{mt:2,color:"red",icon:"bomb",fontSize:2,onClick:function(){return i("start_sim")},fluid:!0,children:"Begin Simulation"})]})})})};var l=function(e){var n,t;function r(n){var t;t=e.call(this,n)||this;var o=Math.random()>.5,r=Math.random()>.5;return t.state={x:o?340:0,y:r?205:0,reverseX:!1,reverseY:!1},t.process=setInterval((function(){t.setState((function(e){var n=Object.assign({},e);return n.reverseX?n.x-2<-5?(n.reverseX=!1,n.x+=2):n.x-=2:n.x+2>340?(n.reverseX=!0,n.x-=2):n.x+=2,n.reverseY?n.y-2<-20?(n.reverseY=!1,n.y+=2):n.y-=2:n.y+2>205?(n.reverseY=!0,n.y-=2):n.y+=2,n}))}),1),t}t=e,(n=r).prototype=Object.create(t.prototype),n.prototype.constructor=n,i(n,t);var a=r.prototype;return a.componentWillUnmount=function(){clearInterval(this.process)},a.render=function(){var e=this.state,n={position:"relative",left:e.x+"px",top:e.y+"px"};return(0,o.createComponentVNode)(2,c.Section,{title:"Simulation in progress!",fill:!0,children:(0,o.createComponentVNode)(2,c.Box,{position:"absolute",style:{overflow:"hidden",width:"100%",height:"100%"},children:(0,o.createComponentVNode)(2,c.Icon,{style:n,name:"bomb",size:10,color:"red"})})})},r}(o.Component)},48693:function(e,n,t){"use strict";n.__esModule=!0,n.BotanyEditor=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.BotanyEditor=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.activity,s=l.degradation,u=l.disk,m=l.sourceName,p=l.locus,C=l.loaded;return d?(0,o.createComponentVNode)(2,a.Window,{width:470,height:500,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,c.NoticeBox,{info:!0,children:"Scanning..."})})}):(0,o.createComponentVNode)(2,a.Window,{width:470,height:500,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Buffered Genetic Data",children:u&&(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Source",children:m}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Gene Decay",children:[s,"%"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Locus",children:p})]}),(0,o.createComponentVNode)(2,c.Button,{mt:1,icon:"eject",onClick:function(){return i("eject_disk")},children:"Eject Loaded Disk"})]})||(0,o.createComponentVNode)(2,c.NoticeBox,{warning:!0,children:"No disk loaded."})}),(0,o.createComponentVNode)(2,c.Section,{title:"Loaded Material",children:C&&(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Target",children:C})}),(0,o.createComponentVNode)(2,c.Button,{mt:1,icon:"cog",onClick:function(){return i("apply_gene")},children:"Apply Gene Mods"}),(0,o.createComponentVNode)(2,c.Button,{mt:1,icon:"eject",onClick:function(){return i("eject_packet")},children:"Eject Target"})]})||(0,o.createComponentVNode)(2,c.NoticeBox,{warning:!0,children:"No target seed packet loaded."})})]})})}},25486:function(e,n,t){"use strict";n.__esModule=!0,n.BotanyIsolator=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.BotanyIsolator=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.geneMasks,s=l.activity,u=l.degradation,m=l.disk,p=l.loaded,C=l.hasGenetics,h=l.sourceName;return s?(0,o.createComponentVNode)(2,a.Window,{width:470,height:500,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,c.NoticeBox,{info:!0,children:"Scanning..."})})}):(0,o.createComponentVNode)(2,a.Window,{width:470,height:500,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Buffered Genetic Data",children:C&&(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Source",children:h}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Gene decay",children:[u,"%"]}),m&&d.length&&d.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.mask,children:(0,o.createComponentVNode)(2,c.Button,{mb:-1,icon:"download",onClick:function(){return i("get_gene",{get_gene:e.tag})},children:"Extract"})},e.mask)}))||null]}),m&&(0,o.createComponentVNode)(2,c.Box,{mt:1,children:[(0,o.createComponentVNode)(2,c.Button,{icon:"eject",onClick:function(){return i("eject_disk")},children:"Eject Loaded Disk"}),(0,o.createComponentVNode)(2,c.Button,{icon:"trash",onClick:function(){return i("clear_buffer")},children:"Clear Genetic Buffer"})]})||(0,o.createComponentVNode)(2,c.NoticeBox,{mt:1,warning:!0,children:"No disk inserted."})]})||(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.NoticeBox,{warning:!0,children:"No Data Buffered."}),m&&(0,o.createComponentVNode)(2,c.Button,{icon:"eject",onClick:function(){return i("eject_disk")},children:"Eject Loaded Disk"})||(0,o.createComponentVNode)(2,c.NoticeBox,{mt:1,warning:!0,children:"No disk inserted."})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Loaded Material",children:p&&(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Packet Loaded",children:p})}),(0,o.createComponentVNode)(2,c.Button,{mt:1,icon:"cog",onClick:function(){return i("scan_genome")},children:"Process Genome"}),(0,o.createComponentVNode)(2,c.Button,{icon:"eject",onClick:function(){return i("eject_packet")},children:"Eject Packet"})]})||(0,o.createComponentVNode)(2,c.NoticeBox,{warning:!0,children:"No packet loaded."})})]})})}},61956:function(e,n,t){"use strict";n.__esModule=!0,n.BrigTimer=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(85952),l=t(58083);n.BrigTimer=function(e,n){var t=(0,c.useBackend)(n),d=t.act,s=t.data;return(0,o.createComponentVNode)(2,i.Window,{width:300,height:138,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.Section,{title:"Cell Timer",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"clock-o",content:s.timing?"Stop":"Start",selected:s.timing,onClick:function(){return d(s.timing?"stop":"start")}}),s.flash_found&&(0,o.createComponentVNode)(2,a.Button,{icon:"lightbulb-o",content:s.flash_charging?"Recharging":"Flash",disabled:s.flash_charging,onClick:function(){return d("flash")}})||null],0),children:[(0,o.createComponentVNode)(2,a.NumberInput,{animated:!0,fluid:!0,value:s.time_left/10,minValue:0,maxValue:s.max_time_left/10,format:function(e){return(0,l.formatTime)((0,r.round)(e))},onDrag:function(e,n){return d("time",{time:n})}}),(0,o.createComponentVNode)(2,a.Flex,{mt:1,children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"hourglass-start",content:"Add "+(0,l.formatTime)(s.preset_short/10),onClick:function(){return d("preset",{preset:"short"})}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"hourglass-start",content:"Add "+(0,l.formatTime)(s.preset_medium/10),onClick:function(){return d("preset",{preset:"medium"})}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"hourglass-start",content:"Add "+(0,l.formatTime)(s.preset_long/10),onClick:function(){return d("preset",{preset:"long"})}})})]})]})})})}},3180:function(e,n,t){"use strict";n.__esModule=!0,n.CameraConsoleSearch=n.CameraConsoleContent=n.CameraConsole=void 0;var o=t(39812),r=t(64499),c=t(85531),a=t(34380),i=t(2497),l=t(71494),d=t(74814),s=t(85952),u=function(e,n,t){void 0===n&&(n=""),void 0===t&&(t="");var o=(0,i.createSearch)(n,(function(e){return e.name}));return(0,c.flow)([(0,r.filter)((function(e){return null==e?void 0:e.name})),n&&(0,r.filter)(o),t&&(0,r.filter)((function(e){return e.networks.includes(t)})),(0,r.sortBy)((function(e){return e.name}))])(e)};n.CameraConsole=function(e,n){return(0,o.createComponentVNode)(2,s.Window,{width:870,height:708,resizable:!0,children:(0,o.createComponentVNode)(2,m)})};var m=function(e,n){var t=(0,l.useBackend)(n),r=t.act,c=t.data,a=(t.config,c.mapRef),i=c.activeCamera,m=function(e,n){var t,o;if(!n)return[];var r=e.findIndex((function(e){return e.name===n.name}));return[null==(t=e[r-1])?void 0:t.name,null==(o=e[r+1])?void 0:o.name]}(u(c.cameras),i);m[0],m[1];return(0,o.createFragment)([(0,o.createVNode)(1,"div","CameraConsole__left",(0,o.createComponentVNode)(2,s.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,p)}),2),(0,o.createVNode)(1,"div","CameraConsole__right",[(0,o.createVNode)(1,"div","CameraConsole__toolbar",[(0,o.createVNode)(1,"b",null,"Camera: ",16),i&&i.name||"\u2014"],0),(0,o.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,o.createComponentVNode)(2,d.Button,{icon:"chevron-left",onClick:function(){return r("pan",{dir:8})}}),(0,o.createComponentVNode)(2,d.Button,{icon:"chevron-up",onClick:function(){return r("pan",{dir:1})}}),(0,o.createComponentVNode)(2,d.Button,{icon:"chevron-right",onClick:function(){return r("pan",{dir:4})}}),(0,o.createComponentVNode)(2,d.Button,{icon:"chevron-down",onClick:function(){return r("pan",{dir:2})}})],4),(0,o.createComponentVNode)(2,d.ByondUi,{className:"CameraConsole__map",params:{id:a,type:"map"}})],4)],4)};n.CameraConsoleContent=m;var p=function(e,n){var t=(0,l.useBackend)(n),r=t.act,c=t.data,i=(0,l.useLocalState)(n,"searchText",""),m=i[0],p=i[1],C=(0,l.useLocalState)(n,"networkFilter",""),h=C[0],N=C[1],V=c.activeCamera,b=c.allNetworks;b.sort();var f=u(c.cameras,m,h);return(0,o.createFragment)([(0,o.createComponentVNode)(2,d.Input,{fluid:!0,mb:1,placeholder:"Search for a camera",onInput:function(e,n){return p(n)}}),(0,o.createComponentVNode)(2,d.Dropdown,{mb:1,width:"177px",options:b,placeholder:"No Filter",onSelected:function(e){return N(e)}}),(0,o.createComponentVNode)(2,d.Section,{children:f.map((function(e){return(0,o.createVNode)(1,"div",(0,a.classes)(["Button","Button--fluid","Button--color--transparent","Button--ellipsis",V&&e.name===V.name&&"Button--selected"]),e.name,0,{title:e.name,onClick:function(){(0,s.refocusLayout)(),r("switch_camera",{name:e.name})}},e.name)}))})],4)};n.CameraConsoleSearch=p},94477:function(e,n,t){"use strict";n.__esModule=!0,n.Canister=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(58083),l=t(85952);n.Canister=function(e,n){var t=(0,c.useBackend)(n),d=t.act,s=t.data,u=s.connected,m=s.can_relabel,p=s.pressure,C=s.releasePressure,h=s.defaultReleasePressure,N=s.minReleasePressure,V=s.maxReleasePressure,b=s.valveOpen,f=s.holding;return(0,o.createComponentVNode)(2,l.Window,{width:360,height:242,resizable:!0,children:(0,o.createComponentVNode)(2,l.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Section,{title:"Canister",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"pencil-alt",disabled:!m,content:"Relabel",onClick:function(){return d("relabel")}}),children:(0,o.createComponentVNode)(2,a.LabeledControls,{children:[(0,o.createComponentVNode)(2,a.LabeledControls.Item,{minWidth:"66px",label:"Tank Pressure",children:(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:p,format:function(e){return e<1e4?(0,r.toFixed)(e)+" kPa":(0,i.formatSiUnit)(1e3*e,1,"Pa")}})}),(0,o.createComponentVNode)(2,a.LabeledControls.Item,{label:"Regulator",children:(0,o.createComponentVNode)(2,a.Box,{position:"relative",left:"-8px",children:[(0,o.createComponentVNode)(2,a.Knob,{forcedInputWidth:"60px",size:1.25,color:!!b&&"yellow",value:C,unit:"kPa",minValue:N,maxValue:V,stepPixelSize:1,onDrag:function(e,n){return d("pressure",{pressure:n})}}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,position:"absolute",top:"-2px",right:"-20px",color:"transparent",icon:"fast-forward",onClick:function(){return d("pressure",{pressure:V})}}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,position:"absolute",top:"16px",right:"-20px",color:"transparent",icon:"undo",onClick:function(){return d("pressure",{pressure:h})}})]})}),(0,o.createComponentVNode)(2,a.LabeledControls.Item,{label:"Valve",children:(0,o.createComponentVNode)(2,a.Button,{my:.5,width:"50px",lineHeight:2,fontSize:"11px",color:b?f?"caution":"danger":null,content:b?"Open":"Closed",onClick:function(){return d("valve")}})}),(0,o.createComponentVNode)(2,a.LabeledControls.Item,{mr:1,label:"Port",children:(0,o.createComponentVNode)(2,a.Box,{position:"relative",children:[(0,o.createComponentVNode)(2,a.Icon,{size:1.25,name:u?"plug":"times",color:u?"good":"bad"}),(0,o.createComponentVNode)(2,a.Tooltip,{content:u?"Connected":"Disconnected",position:"top"})]})})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Holding Tank",buttons:!!f&&(0,o.createComponentVNode)(2,a.Button,{icon:"eject",color:b&&"danger",content:"Eject",onClick:function(){return d("eject")}}),children:[!!f&&(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Label",children:f.name}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Pressure",children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:f.pressure})," kPa"]})]}),!f&&(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"No Holding Tank"})]})]})})}},55636:function(e,n,t){"use strict";n.__esModule=!0,n.Canvas=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);function i(e,n){return(i=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}var l=function(e){var n,t;function r(n){var t;return(t=e.call(this,n)||this).canvasRef=(0,o.createRef)(),t.onCVClick=n.onCanvasClick,t}t=e,(n=r).prototype=Object.create(t.prototype),n.prototype.constructor=n,i(n,t);var c=r.prototype;return c.componentDidMount=function(){this.drawCanvas(this.props)},c.componentDidUpdate=function(){this.drawCanvas(this.props)},c.drawCanvas=function(e){var n=this.canvasRef.current.getContext("2d"),t=e.value,o=t.length;if(o){var r=t[0].length,c=Math.round(this.canvasRef.current.width/o),a=Math.round(this.canvasRef.current.height/r);n.save(),n.scale(c,a);for(var i=0;i=0||(r[t]=e[t]);return r}(n,["res","value","dotsize"]),i=d(t),l=i[0],s=i[1];return(0,o.normalizeProps)((0,o.createVNode)(1,"canvas",null,"Canvas failed to render.",16,Object.assign({width:l*c||300,height:s*c||300},a,{onClick:function(n){return e.clickwrapper(n)}}),null,this.canvasRef))},r}(o.Component),d=function(e){var n=e.length;return[n,0!==n?e[0].length:0]};n.Canvas=function(e,n){var t=(0,r.useBackend)(n),i=t.act,s=t.data,u=d(s.grid),m=u[0],p=u[1];return(0,o.createComponentVNode)(2,a.Window,{width:Math.min(700,24*m+72),height:Math.min(700,24*p+72),children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Box,{textAlign:"center",children:[(0,o.createComponentVNode)(2,l,{value:s.grid,dotsize:24,onCanvasClick:function(e,n){return i("paint",{x:e,y:n})}}),(0,o.createComponentVNode)(2,c.Box,{children:[!s.finalized&&(0,o.createComponentVNode)(2,c.Button.Confirm,{onClick:function(){return i("finalize")},content:"Finalize"}),"\xa0",s.name]})]})})})}},25131:function(e,n,t){"use strict";n.__esModule=!0,n.CasinoPrizeDispenser=void 0;var o=t(39812),r=t(2497),c=t(71494),a=t(74814),i=t(85952);t(88654);var l={Alphabetical:function(e,n){return e-n},"By availability":function(e,n){return-(e.affordable-n.affordable)},"By price":function(e,n){return e.price-n.price}};n.CasinoPrizeDispenser=function(e,n){var t=(0,c.useBackend)(n);t.act,t.data;return(0,o.createComponentVNode)(2,i.Window,{width:400,height:450,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:(0,o.createFragment)([(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,s)],4)})})};var d=function(e,n){var t=(0,c.useLocalState)(n,"search",""),r=(t[0],t[1]),i=(0,c.useLocalState)(n,"sort",""),d=(i[0],i[1]),s=(0,c.useLocalState)(n,"descending",!1),u=s[0],m=s[1];return(0,o.createComponentVNode)(2,a.Box,{mb:"0.5rem",children:(0,o.createComponentVNode)(2,a.Flex,{width:"100%",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",mr:"0.5rem",children:(0,o.createComponentVNode)(2,a.Input,{placeholder:"Search by item name..",width:"100%",onInput:function(e,n){return r(n)}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"30%",children:(0,o.createComponentVNode)(2,a.Dropdown,{selected:"Alphabetical",options:Object.keys(l),width:"100%",lineHeight:"19px",onSelected:function(e){return d(e)}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Button,{icon:u?"arrow-down":"arrow-up",height:"19px",tooltip:u?"Descending order":"Ascending order",tooltipPosition:"bottom-end",ml:"0.5rem",onClick:function(){return m(!u)}})})]})})},s=function(e,n){var t=(0,c.useBackend)(n),d=(t.act,t.data),s=d.points,m=d.items,p=(0,c.useLocalState)(n,"search",""),C=p[0],h=(p[1],(0,c.useLocalState)(n,"sort","Alphabetical")),N=h[0],V=(h[1],(0,c.useLocalState)(n,"descending",!1)),b=V[0],f=(V[1],(0,r.createSearch)(C,(function(e){return e[0]}))),g=!1,k=Object.entries(m).map((function(e,n){var t=Object.entries(e[1]).filter(f).map((function(e){return e[1].affordable=s>=e[1].price,e[1]})).sort(l[N]);if(0!==t.length)return b&&(t=t.reverse()),g=!0,(0,o.createComponentVNode)(2,u,{title:e[0],items:t},e[0])}));return(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",overflow:"auto",children:(0,o.createComponentVNode)(2,a.Section,{onClick:function(e){return(0,i.refocusLayout)()},children:g?k:(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"No items matching your criteria was found!"})})})},u=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=(t.data,e.title),l=e.items,d=function(e,n){if(null==e)return{};var t,o,r={},c=Object.keys(e);for(o=0;o=0||(r[t]=e[t]);return r}(e,["title","items"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Collapsible,Object.assign({open:!0,title:i},d,{children:l.map((function(e){return(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Box,{display:"inline-block",verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:e.name}),(0,o.createComponentVNode)(2,a.Button,{content:e.price.toLocaleString("en-US"),width:"15%",textAlign:"center",style:{float:"right"},onClick:function(){return r("purchase",{cat:i,name:e.name,price:e.price,restriction:e.restriction})}}),(0,o.createComponentVNode)(2,a.Box,{style:{clear:"both"}})]},e.name)}))})))}},47947:function(e,n,t){"use strict";n.__esModule=!0,n.CharacterDirectory=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=function(e){switch(e){case"Unset":return"label";case"Pred":return"red";case"Pred-Pref":return"orange";case"Prey":return"blue";case"Prey-Pref":return"green";case"Switch":return"yellow";case"Non-Vore":return"black"}};n.CharacterDirectory=function(e,n){var t=(0,r.useBackend)(n),i=t.act,s=t.data,u=s.personalVisibility,m=s.personalTag,p=s.personalErpTag,C=(0,r.useLocalState)(n,"overlay",null),h=C[0];C[1];return(0,o.createComponentVNode)(2,a.Window,{width:640,height:480,resizeable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:h&&(0,o.createComponentVNode)(2,l)||(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Controls",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Visibility",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,content:u?"Shown":"Not Shown",onClick:function(){return i("setVisible")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Vore Tag",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,content:m,onClick:function(){return i("setTag")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"ERP Tag",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,content:p,onClick:function(){return i("setErpTag")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Advertisement",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,content:"Edit Ad",onClick:function(){return i("editAd")}})})]})}),(0,o.createComponentVNode)(2,d)],4)})})};var l=function(e,n){var t=(0,r.useLocalState)(n,"overlay",null),a=t[0],l=t[1];return(0,o.createComponentVNode)(2,c.Section,{title:a.name,buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-left",content:"Back",onClick:function(){return l(null)}}),children:[(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Vore Tag",children:(0,o.createComponentVNode)(2,c.Box,{p:1,backgroundColor:i(a.tag),children:a.tag})}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"ERP Tag",children:(0,o.createComponentVNode)(2,c.Box,{children:a.erptag})}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Character Ad",children:(0,o.createComponentVNode)(2,c.Box,{style:{"word-break":"break-all"},preserveWhitespace:!0,children:a.character_ad||"Unset."})}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"OOC Notes",children:(0,o.createComponentVNode)(2,c.Box,{style:{"word-break":"break-all"},preserveWhitespace:!0,children:a.ooc_notes||"Unset."})}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Flavor Text",children:(0,o.createComponentVNode)(2,c.Box,{style:{"word-break":"break-all"},preserveWhitespace:!0,children:a.flavor_text||"Unset."})})]})},d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,l=t.data.directory,d=(0,r.useLocalState)(n,"sortId","name"),u=d[0],m=(d[1],(0,r.useLocalState)(n,"sortOrder","name")),p=m[0],C=(m[1],(0,r.useLocalState)(n,"overlay",null)),h=(C[0],C[1]);return(0,o.createComponentVNode)(2,c.Section,{title:"Directory",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"sync",content:"Refresh",onClick:function(){return a("refresh")}}),children:(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{bold:!0,children:[(0,o.createComponentVNode)(2,s,{id:"name",children:"Name"}),(0,o.createComponentVNode)(2,s,{id:"tag",children:"Vore Tag"}),(0,o.createComponentVNode)(2,s,{id:"erptag",children:"ERP Tag"}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,textAlign:"right",children:"View"})]}),l.sort((function(e,n){var t=p?1:-1;return e[u].localeCompare(n[u])*t})).map((function(e,n){return(0,o.createComponentVNode)(2,c.Table.Row,{backgroundColor:i(e.tag),children:[(0,o.createComponentVNode)(2,c.Table.Cell,{p:1,children:e.name}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.tag}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.erptag}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,textAlign:"right",children:(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return h(e)},color:"transparent",icon:"sticky-note",mr:1,content:"View"})})]},n)}))]})})},s=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data,e.id),i=e.children,l=(0,r.useLocalState)(n,"sortId","name"),d=l[0],s=l[1],u=(0,r.useLocalState)(n,"sortOrder","name"),m=u[0],p=u[1];return(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,c.Button,{width:"100%",color:d!==a&&"transparent",onClick:function(){d===a?p(!m):(s(a),p(!0))},children:[i,d===a&&(0,o.createComponentVNode)(2,c.Icon,{name:m?"sort-up":"sort-down",ml:"0.25rem;"})]})})}},22223:function(e,n,t){"use strict";n.__esModule=!0,n.ChemDispenser=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(48229),i=t(85952),l=[5,10,20,30,40,60],d=[1,5,10];n.ChemDispenser=function(e,n){return(0,o.createComponentVNode)(2,i.Window,{width:390,height:655,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{className:"Layout__content--flexColumn",children:[(0,o.createComponentVNode)(2,s),(0,o.createComponentVNode)(2,u),(0,o.createComponentVNode)(2,m)]})})};var s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.amount;return(0,o.createComponentVNode)(2,c.Section,{title:"Settings",flex:"content",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Dispense",verticalAlign:"middle",children:(0,o.createComponentVNode)(2,c.Flex,{direction:"row",wrap:"wrap",spacing:"1",children:l.map((function(e,n){return(0,o.createComponentVNode)(2,c.Flex.Item,{grow:"1",children:(0,o.createComponentVNode)(2,c.Button,{textAlign:"center",selected:i===e,content:e+"u",m:"0",fluid:!0,onClick:function(){return a("amount",{amount:e})}})},n)}))})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Custom Amount",children:(0,o.createComponentVNode)(2,c.Slider,{step:1,stepPixelSize:5,value:i,minValue:1,maxValue:120,onDrag:function(e,n){return a("amount",{amount:n})}})})]})})},u=function(e,n){for(var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.chemicals,d=void 0===l?[]:l,s=[],u=0;u<(d.length+1)%3;u++)s.push(!0);return(0,o.createComponentVNode)(2,c.Section,{title:i.glass?"Drink Dispenser":"Chemical Dispenser",flexGrow:"1",children:(0,o.createComponentVNode)(2,c.Flex,{direction:"row",wrap:"wrap",height:"100%",align:"flex-start",children:[d.map((function(e,n){return(0,o.createComponentVNode)(2,c.Flex.Item,{grow:"1",m:.2,basis:"40%",height:"20px",children:(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-circle-down",width:"100%",height:"100%",align:"flex-start",content:e.title+" ("+e.amount+")",onClick:function(){return a("dispense",{reagent:e.id})}})},n)})),s.map((function(e,n){return(0,o.createComponentVNode)(2,c.Flex.Item,{grow:"1",basis:"25%",height:"20px"},n)}))]})})},m=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,s=l.isBeakerLoaded,u=l.beakerCurrentVolume,m=l.beakerMaxVolume,p=l.beakerContents,C=void 0===p?[]:p;return(0,o.createComponentVNode)(2,c.Section,{title:"Beaker",flex:"content",minHeight:"25%",buttons:(0,o.createComponentVNode)(2,c.Box,{children:[!!s&&(0,o.createComponentVNode)(2,c.Box,{inline:!0,color:"label",mr:2,children:[u," / ",m," units"]}),(0,o.createComponentVNode)(2,c.Button,{icon:"eject",content:"Eject",disabled:!s,onClick:function(){return i("ejectBeaker")}})]}),children:(0,o.createComponentVNode)(2,a.BeakerContents,{beakerLoaded:s,beakerContents:C,buttons:function(e){return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{content:"Isolate",icon:"compress-arrows-alt",onClick:function(){return i("remove",{reagent:e.id,amount:-1})}}),d.map((function(n,t){return(0,o.createComponentVNode)(2,c.Button,{content:n,onClick:function(){return i("remove",{reagent:e.id,amount:n})}},t)})),(0,o.createComponentVNode)(2,c.Button,{content:"ALL",onClick:function(){return i("remove",{reagent:e.id,amount:e.volume})}})],0)}})})}},34859:function(e,n,t){"use strict";n.__esModule=!0,n.ChemMaster=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=t(48229),l=t(16007),d=[1,5,10,30,60];n.ChemMaster=function(e,n){var t=(0,r.useBackend)(n).data,c=t.condi,i=t.beaker,d=t.beaker_reagents,p=void 0===d?[]:d,C=t.buffer_reagents,h=void 0===C?[]:C,N=t.mode;return(0,o.createComponentVNode)(2,a.Window,{width:575,height:500,resizable:!0,children:[(0,o.createComponentVNode)(2,l.ComplexModal),(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:[(0,o.createComponentVNode)(2,s,{beaker:i,beakerReagents:p,bufferNonEmpty:h.length>0}),(0,o.createComponentVNode)(2,u,{mode:N,bufferReagents:h}),(0,o.createComponentVNode)(2,m,{isCondiment:c,bufferNonEmpty:h.length>0})]})]})};var s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,s=(t.data,e.beaker),u=e.beakerReagents,m=e.bufferNonEmpty?(0,o.createComponentVNode)(2,c.Button.Confirm,{icon:"eject",disabled:!s,content:"Eject and Clear Buffer",onClick:function(){return a("eject")}}):(0,o.createComponentVNode)(2,c.Button,{icon:"eject",disabled:!s,content:"Eject and Clear Buffer",onClick:function(){return a("eject")}});return(0,o.createComponentVNode)(2,c.Section,{title:"Beaker",buttons:m,children:s?(0,o.createComponentVNode)(2,i.BeakerContents,{beakerLoaded:!0,beakerContents:u,buttons:function(e,t){return(0,o.createComponentVNode)(2,c.Box,{mb:t0?(0,o.createComponentVNode)(2,i.BeakerContents,{beakerLoaded:!0,beakerContents:u,buttons:function(e,r){return(0,o.createComponentVNode)(2,c.Box,{mb:r0?l.desc:"N/A"}),l.blood_type&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Blood type",children:l.blood_type}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Blood DNA",className:"LabeledList__breakContents",children:l.blood_dna})],4),!i.condi&&(0,o.createComponentVNode)(2,c.Button,{icon:i.printing?"spinner":"print",disabled:i.printing,iconSpin:!!i.printing,ml:"0.5rem",content:"Print",onClick:function(){return a("print",{idx:l.idx,beaker:e.args.beaker})}})]})})})}))},83919:function(e,n,t){"use strict";n.__esModule=!0,n.ClawMachine=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.ClawMachine=function(e,n){var t,i=(0,r.useBackend)(n),l=i.act,d=i.data,s=(d.wintick,d.instructions),u=d.gameStatus,m=d.winscreen;return"CLAWMACHINE_NEW"===u?t=(0,o.createComponentVNode)(2,c.Box,{align:"center",children:[(0,o.createVNode)(1,"br")," ",(0,o.createVNode)(1,"hr"),(0,o.createVNode)(1,"b",null,"Pay to Play!",16)," ",(0,o.createVNode)(1,"br")," ",(0,o.createVNode)(1,"hr"),s,(0,o.createVNode)(1,"br")," ",(0,o.createVNode)(1,"hr")," ",(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Button,{content:"Start",onClick:function(){return l("newgame")}})]}):"CLAWMACHINE_END"===u?t=(0,o.createComponentVNode)(2,c.Box,{align:"center",children:[(0,o.createVNode)(1,"br")," ",(0,o.createVNode)(1,"hr"),(0,o.createVNode)(1,"b",null,"Thank you for playing!",16)," ",(0,o.createVNode)(1,"br")," ",(0,o.createVNode)(1,"hr"),m,(0,o.createVNode)(1,"br")," ",(0,o.createVNode)(1,"hr")," ",(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Button,{content:"Close",onClick:function(){return l("return")}})]}):"CLAWMACHINE_ON"===u&&(t=(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Progress",children:(0,o.createComponentVNode)(2,c.ProgressBar,{ranges:{bad:[-Infinity,0],average:[1,7],good:[8,Infinity]},value:d.wintick,minValue:0,maxValue:10})})}),(0,o.createComponentVNode)(2,c.Box,{align:"center",children:[(0,o.createVNode)(1,"br")," ",(0,o.createVNode)(1,"hr")," ",(0,o.createVNode)(1,"br"),s,(0,o.createVNode)(1,"br")," ",(0,o.createVNode)(1,"br")," ",(0,o.createVNode)(1,"hr")," ",(0,o.createVNode)(1,"br")," ",(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Button,{content:"Up",onClick:function(){return l("pointless")}}),(0,o.createVNode)(1,"br")," ",(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Button,{content:"Left",onClick:function(){return l("pointless")}}),(0,o.createComponentVNode)(2,c.Button,{content:"Right",onClick:function(){return l("pointless")}}),(0,o.createVNode)(1,"br")," ",(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Button,{content:"Down",onClick:function(){return l("pointless")}})]})]})),(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createVNode)(1,"center",null,t,0)})}},74351:function(e,n,t){"use strict";n.__esModule=!0,n.Cleanbot=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.Cleanbot=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.on,s=l.open,u=l.locked,m=l.version,p=l.blood,C=(l.patrol,l.vocal),h=l.wet_floors,N=l.spray_blood,V=l.rgbpanel,b=l.red_switch,f=l.green_switch,g=l.blue_switch;return(0,o.createComponentVNode)(2,a.Window,{width:400,height:400,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Automatic Station Cleaner "+m,buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:d,onClick:function(){return i("start")},children:d?"On":"Off"}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Maintenance Panel",color:s?"bad":"good",children:s?"Open":"Closed"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Behavior Controls",color:u?"good":"bad",children:u?"Locked":"Unlocked"})]})}),!u&&(0,o.createComponentVNode)(2,c.Section,{title:"Behavior Controls",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Blood",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:p?"toggle-on":"toggle-off",selected:p,onClick:function(){return i("blood")},children:p?"Clean":"Ignore"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Speaker",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:C?"toggle-on":"toggle-off",selected:C,onClick:function(){return i("vocal")},children:C?"On":"Off"})})]})})||null,!u&&s&&(0,o.createComponentVNode)(2,c.Section,{title:"Maintenance Panel",children:V&&(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{fontSize:5.39,icon:b?"toggle-on":"toggle-off",backgroundColor:b?"red":"maroon",onClick:function(){return i("red_switch")}}),(0,o.createComponentVNode)(2,c.Button,{fontSize:5.39,icon:f?"toggle-on":"toggle-off",backgroundColor:f?"green":"darkgreen",onClick:function(){return i("green_switch")}}),(0,o.createComponentVNode)(2,c.Button,{fontSize:5.39,icon:g?"toggle-on":"toggle-off",backgroundColor:g?"blue":"darkblue",onClick:function(){return i("blue_switch")}})]})||(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Odd Looking Screw Twiddled",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,selected:h,onClick:function(){return i("wet_floors")},icon:"screwdriver",children:h?"Yes":"No"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Weird Button Pressed",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,color:"brown",selected:N,onClick:function(){return i("spray_blood")},icon:"screwdriver",children:N?"Yes":"No"})})]})})})||null]})})}},98213:function(e,n,t){"use strict";n.__esModule=!0,n.CloningConsole=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(76270),l=t(16007),d=t(85952),s=function(e,n){var t=(0,c.useBackend)(n),r=t.act,l=t.data,d=e.args,s=d.activerecord,u=d.realname,m=d.health,p=d.unidentity,C=d.strucenzymes,h=m.split(" - ");return(0,o.createComponentVNode)(2,a.Section,{level:2,m:"-1rem",pb:"1rem",title:"Records of "+u,children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:u}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Damage",children:h.length>1?(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{color:i.COLORS.damageType.oxy,inline:!0,children:h[0]}),(0,o.createTextVNode)("\xa0|\xa0"),(0,o.createComponentVNode)(2,a.Box,{color:i.COLORS.damageType.toxin,inline:!0,children:h[2]}),(0,o.createTextVNode)("\xa0|\xa0"),(0,o.createComponentVNode)(2,a.Box,{color:i.COLORS.damageType.brute,inline:!0,children:h[3]}),(0,o.createTextVNode)("\xa0|\xa0"),(0,o.createComponentVNode)(2,a.Box,{color:i.COLORS.damageType.burn,inline:!0,children:h[1]})],4):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Unknown"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"UI",className:"LabeledList__breakContents",children:p}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"SE",className:"LabeledList__breakContents",children:C}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Disk",children:[(0,o.createComponentVNode)(2,a.Button.Confirm,{disabled:!l.disk,icon:"arrow-circle-down",content:"Import",onClick:function(){return r("disk",{option:"load"})}}),(0,o.createComponentVNode)(2,a.Button,{disabled:!l.disk,icon:"arrow-circle-up",content:"Export UI",onClick:function(){return r("disk",{option:"save",savetype:"ui"})}}),(0,o.createComponentVNode)(2,a.Button,{disabled:!l.disk,icon:"arrow-circle-up",content:"Export UI and UE",onClick:function(){return r("disk",{option:"save",savetype:"ue"})}}),(0,o.createComponentVNode)(2,a.Button,{disabled:!l.disk,icon:"arrow-circle-up",content:"Export SE",onClick:function(){return r("disk",{option:"save",savetype:"se"})}})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Actions",children:[(0,o.createComponentVNode)(2,a.Button,{disabled:!l.podready,icon:"user-plus",content:"Clone",onClick:function(){return r("clone",{ref:s})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"trash",content:"Delete",onClick:function(){return r("del_rec")}})]})]})})};n.CloningConsole=function(e,n){var t=(0,c.useBackend)(n);t.act,t.data.menu;return(0,l.modalRegisterBodyOverride)("view_rec",s),(0,o.createComponentVNode)(2,d.Window,{resizable:!0,children:[(0,o.createComponentVNode)(2,l.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),(0,o.createComponentVNode)(2,d.Window.Content,{className:"Layout__content--flexColumn",children:[(0,o.createComponentVNode)(2,h),(0,o.createComponentVNode)(2,N),(0,o.createComponentVNode)(2,u),(0,o.createComponentVNode)(2,a.Section,{noTopPadding:!0,flexGrow:"1",children:(0,o.createComponentVNode)(2,m)})]})]})};var u=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.menu;return(0,o.createComponentVNode)(2,a.Tabs,{children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:1===i,icon:"home",onClick:function(){return r("menu",{num:1})},children:"Main"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:2===i,icon:"folder",onClick:function(){return r("menu",{num:2})},children:"Records"})]})},m=function(e,n){var t,r=(0,c.useBackend)(n).data.menu;return 1===r?t=(0,o.createComponentVNode)(2,p):2===r&&(t=(0,o.createComponentVNode)(2,C)),t},p=function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data,d=l.loading,s=l.scantemp,u=l.occupant,m=l.locked,p=l.can_brainscan,C=l.scan_mode,h=l.numberofpods,N=l.pods,V=l.selected_pod,b=m&&!!u;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{title:"Scanner",level:"2",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:"label",children:"Scanner Lock:\xa0"}),(0,o.createComponentVNode)(2,a.Button,{disabled:!u,selected:b,icon:b?"toggle-on":"toggle-off",content:b?"Engaged":"Disengaged",onClick:function(){return i("lock")}}),(0,o.createComponentVNode)(2,a.Button,{disabled:b||!u,icon:"user-slash",content:"Eject Occupant",onClick:function(){return i("eject")}})],4),children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",children:d?(0,o.createComponentVNode)(2,a.Box,{color:"average",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"spinner",spin:!0}),"\xa0 Scanning..."]}):(0,o.createComponentVNode)(2,a.Box,{color:s.color,children:s.text})}),!!p&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Scan Mode",children:(0,o.createComponentVNode)(2,a.Button,{icon:C?"brain":"male",content:C?"Brain":"Body",onClick:function(){return i("toggle_mode")}})})]}),(0,o.createComponentVNode)(2,a.Button,{disabled:!u||d,icon:"user",content:"Scan Occupant",mt:"0.5rem",mb:"0",onClick:function(){return i("scan")}})]}),(0,o.createComponentVNode)(2,a.Section,{title:"Pods",level:"2",children:h?N.map((function(e,n){var t;return t="cloning"===e.status?(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:"100",value:e.progress/100,ranges:{good:[.75,Infinity],average:[.25,.75],bad:[-Infinity,.25]},mt:"0.5rem",children:(0,o.createComponentVNode)(2,a.Box,{textAlign:"center",children:(0,r.round)(e.progress,0)+"%"})}):"mess"===e.status?(0,o.createComponentVNode)(2,a.Box,{bold:!0,color:"bad",mt:"0.5rem",children:"ERROR"}):(0,o.createComponentVNode)(2,a.Button,{selected:V===e.pod,icon:V===e.pod&&"check",content:"Select",mt:"0.5rem",onClick:function(){return i("selectpod",{ref:e.pod})}}),(0,o.createComponentVNode)(2,a.Box,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,o.createVNode)(1,"img",null,null,1,{src:"pod_"+e.status+".gif",style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,a.Box,{color:"label",children:["Pod #",n+1]}),(0,o.createComponentVNode)(2,a.Box,{bold:!0,color:e.biomass>=150?"good":"bad",inline:!0,children:[(0,o.createComponentVNode)(2,a.Icon,{name:e.biomass>=150?"circle":"circle-o"}),"\xa0",e.biomass]}),t]},n)})):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"No pods detected. Unable to clone."})})],4)},C=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.records;return i.length?(0,o.createComponentVNode)(2,a.Box,{mt:"0.5rem",children:i.map((function(e,n){return(0,o.createComponentVNode)(2,a.Button,{icon:"user",mb:"0.5rem",content:e.realname,onClick:function(){return r("view_rec",{ref:e.record})}},n)}))}):(0,o.createComponentVNode)(2,a.Flex,{height:"100%",children:(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),"No records found."]})})},h=function(e,n){var t,r=(0,c.useBackend)(n),i=r.act,l=r.data.temp;if(l&&l.text&&!(l.text.length<=0)){var d=((t={})[l.style]=!0,t);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.NoticeBox,Object.assign({},d,{children:[(0,o.createComponentVNode)(2,a.Box,{display:"inline-block",verticalAlign:"middle",children:l.text}),(0,o.createComponentVNode)(2,a.Button,{icon:"times-circle",float:"right",onClick:function(){return i("cleartemp")}}),(0,o.createComponentVNode)(2,a.Box,{clear:"both"})]})))}},N=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=i.scanner,d=i.numberofpods,s=i.autoallowed,u=i.autoprocess,m=i.disk;return(0,o.createComponentVNode)(2,a.Section,{title:"Status",buttons:(0,o.createFragment)([!!s&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:"label",children:"Auto-processing:\xa0"}),(0,o.createComponentVNode)(2,a.Button,{selected:u,icon:u?"toggle-on":"toggle-off",content:u?"Enabled":"Disabled",onClick:function(){return r("autoprocess",{on:u?0:1})}})],4),(0,o.createComponentVNode)(2,a.Button,{disabled:!m,icon:"eject",content:"Eject Disk",onClick:function(){return r("disk",{option:"eject"})}})],0),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Scanner",children:l?(0,o.createComponentVNode)(2,a.Box,{color:"good",children:"Connected"}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Not connected!"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Pods",children:d?(0,o.createComponentVNode)(2,a.Box,{color:"good",children:[d," connected"]}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"None connected!"})})]})})}},32278:function(e,n,t){"use strict";n.__esModule=!0,n.ColorMate=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.ColorMate=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.items,s=l.activecolor,u=Math.min(270+15*d.length,600);return(0,o.createComponentVNode)(2,a.Window,{width:300,height:u,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:d.length&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Paint",children:(0,o.createComponentVNode)(2,c.Flex,{justify:"center",align:"center",children:[(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"50%",children:(0,o.createComponentVNode)(2,c.Box,{backgroundColor:s,width:"120px",height:"120px"})}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"50% ",children:[(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"eye-dropper",onClick:function(){return i("select")},children:"Select Color"}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"fill-drip",onClick:function(){return i("paint")},children:"Paint Items"}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"tint-slash",onClick:function(){return i("clear")},children:"Remove Paintjob"}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"eject",onClick:function(){return i("eject")},children:"Eject Items"})]})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Items",children:d.map((function(e,n){return(0,o.createComponentVNode)(2,c.Box,{children:["#",n+1,": ",e]},n)}))})],4)||(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No items inserted."})})})})}},130:function(e,n,t){"use strict";n.__esModule=!0,n.CommunicationsConsoleContent=n.CommunicationsConsole=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.CommunicationsConsole=function(e,n){return(0,o.createComponentVNode)(2,a.Window,{width:400,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,i)})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data.menu_state),i=(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:["ERRROR. Unknown menu_state: ",a,"Please report this to NT Technical Support."]});return 1===a?i=(0,o.createComponentVNode)(2,l):2===a?i=(0,o.createComponentVNode)(2,u):3===a&&(i=(0,o.createComponentVNode)(2,s)),(0,o.createFragment)([(0,o.createComponentVNode)(2,d),i],0)};n.CommunicationsConsoleContent=i;var l=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.messages,d=i.msg_cooldown,s=i.emagged,u=i.cc_cooldown,m=i.str_security_level,p=i.levels,C=i.authmax,h=i.security_level,N=i.security_level_color,V=i.authenticated,b=i.atcsquelch,f=i.boss_short,g="View ("+l.length+")",k="Make Priority Announcement";d>0&&(k+=" ("+d+"s)");var v=s?"Message [UNKNOWN]":"Message "+f;u>0&&(v+=" ("+u+"s)");var B=m,L=p.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{icon:e.icon,content:e.name,disabled:!V,selected:e.id===h,onClick:function(){return a("newalertlevel",{level:e.id})}},e.name)}));return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Site Manager-Only Actions",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Announcement",children:(0,o.createComponentVNode)(2,c.Button,{icon:"bullhorn",content:k,disabled:!C||d>0,onClick:function(){return a("announce")}})}),!!s&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Transmit",children:[(0,o.createComponentVNode)(2,c.Button,{icon:"broadcast-tower",color:"red",content:v,disabled:!C||u>0,onClick:function(){return a("MessageSyndicate")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"sync-alt",content:"Reset Relays",disabled:!C,onClick:function(){return a("RestoreBackup")}})]})||(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Transmit",children:(0,o.createComponentVNode)(2,c.Button,{icon:"broadcast-tower",content:v,disabled:!C||u>0,onClick:function(){return a("MessageCentCom")}})})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Command Staff Actions",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Current Alert",color:N,children:B}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Change Alert",children:L}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Displays",children:(0,o.createComponentVNode)(2,c.Button,{icon:"tv",content:"Change Status Displays",disabled:!V,onClick:function(){return a("status")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Incoming Messages",children:(0,o.createComponentVNode)(2,c.Button,{icon:"folder-open",content:g,disabled:!V,onClick:function(){return a("messagelist")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Misc",children:(0,o.createComponentVNode)(2,c.Button,{icon:"microphone",content:b?"ATC Relay Disabled":"ATC Relay Enabled",disabled:!V,selected:b,onClick:function(){return a("toggleatc")}})})]})})],4)},d=function(e,n){var t,a=(0,r.useBackend)(n),i=a.act,l=a.data,d=l.authenticated,s=l.is_ai,u=l.esc_status,m=l.esc_callable,p=l.esc_recallable;return t=d?s?"AI":1===d?"Command":2===d?"Site Director":"ERROR: Report This Bug!":"Not Logged In",(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Authentication",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:s&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Access Level",children:"AI"})||(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Actions",children:(0,o.createComponentVNode)(2,c.Button,{icon:d?"sign-out-alt":"id-card",selected:d,content:d?"Log Out ("+t+")":"Log In",onClick:function(){return i("auth")}})})})}),(0,o.createComponentVNode)(2,c.Section,{title:"Escape Shuttle",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[!!u&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Status",children:u}),!!m&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Options",children:(0,o.createComponentVNode)(2,c.Button,{icon:"rocket",content:"Call Shuttle",disabled:!d,onClick:function(){return i("callshuttle")}})}),!!p&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Options",children:(0,o.createComponentVNode)(2,c.Button,{icon:"times",content:"Recall Shuttle",disabled:!d||s,onClick:function(){return i("cancelshuttle")}})})]})})],4)},s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.message_current,d=i.message_deletion_allowed,s=i.authenticated,u=i.messages;if(l)return(0,o.createComponentVNode)(2,c.Section,{title:l.title,buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"times",content:"Return To Message List",disabled:!s,onClick:function(){return a("messagelist")}}),children:(0,o.createComponentVNode)(2,c.Box,{children:l.contents})});var m=u.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.title,children:[(0,o.createComponentVNode)(2,c.Button,{icon:"eye",content:"View",disabled:!s||l&&l.title===e.title,onClick:function(){return a("messagelist",{msgid:e.id})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"times",content:"Delete",disabled:!s||!d,onClick:function(){return a("delmessage",{msgid:e.id})}})]},e.id)}));return(0,o.createComponentVNode)(2,c.Section,{title:"Messages Received",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){return a("main")}}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:u.length&&m||(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"404",color:"bad",children:"No messages."})})})},u=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.stat_display,d=i.authenticated,s=l.presets.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{content:e.label,selected:e.name===l.type,disabled:!d,onClick:function(){return a("setstat",{statdisp:e.name})}},e.name)}));return(0,o.createComponentVNode)(2,c.Section,{title:"Modify Status Screens",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){return a("main")}}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Presets",children:s}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Message Line 1",children:(0,o.createComponentVNode)(2,c.Button,{icon:"pencil-alt",content:l.line_1,disabled:!d,onClick:function(){return a("setmsg1")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Message Line 2",children:(0,o.createComponentVNode)(2,c.Button,{icon:"pencil-alt",content:l.line_2,disabled:!d,onClick:function(){return a("setmsg2")}})})]})})}},4220:function(e,n,t){"use strict";n.__esModule=!0,n.Communicator=void 0;var o=t(39812),r=t(64499),c=t(2497),a=t(71494),i=t(74814),l=t(85952),d=t(22902),s={};n.Communicator=function(e,n){var t=(0,a.useBackend)(n),r=(t.act,t.data),c=r.currentTab,d=r.video_comm,h=(r.mapRef,(0,a.useLocalState)(n,"videoSetting",0)),N=h[0],V=h[1];return(0,o.createComponentVNode)(2,l.Window,{width:475,height:700,resizable:!0,children:(0,o.createComponentVNode)(2,l.Window.Content,{children:[d&&(0,o.createComponentVNode)(2,u,{videoSetting:N,setVideoSetting:V}),(!d||0!==N)&&(0,o.createFragment)([(0,o.createComponentVNode)(2,p),(0,o.createComponentVNode)(2,i.Box,{height:"88%",mb:1,style:{"overflow-y":"auto"},children:s[c]||(0,o.createComponentVNode)(2,m)}),(0,o.createComponentVNode)(2,C,{videoSetting:N,setVideoSetting:V})],4)]})})};var u=function(e,n){var t=(0,a.useBackend)(n),r=t.act,c=t.data,l=(c.video_comm,c.mapRef),d=e.videoSetting,s=e.setVideoSetting;return 0===d?(0,o.createComponentVNode)(2,i.Box,{width:"100%",height:"100%",children:[(0,o.createComponentVNode)(2,i.ByondUi,{width:"100%",height:"95%",params:{id:l,type:"map"}}),(0,o.createComponentVNode)(2,i.Flex,{justify:"space-between",spacing:1,mt:.5,children:[(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,i.Button,{textAlign:"center",fluid:!0,fontSize:1.5,icon:"window-minimize",onClick:function(){return s(1)}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,i.Button,{textAlign:"center",fluid:!0,fontSize:1.5,color:"bad",icon:"video-slash",onClick:function(){return r("endvideo")}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,i.Button,{textAlign:"center",fluid:!0,fontSize:1.5,color:"bad",icon:"phone-slash",onClick:function(){return r("hang_up")}})})]})]}):1===d?(0,o.createComponentVNode)(2,i.Box,{style:{position:"absolute",right:"5px",bottom:"50px","z-index":1},children:[(0,o.createComponentVNode)(2,i.Section,{p:0,m:0,children:(0,o.createComponentVNode)(2,i.Flex,{justify:"space-between",spacing:1,children:[(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,i.Button,{textAlign:"center",fluid:!0,fontSize:1.5,icon:"window-minimize",onClick:function(){return s(2)}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,i.Button,{textAlign:"center",fluid:!0,fontSize:1.5,icon:"window-maximize",onClick:function(){return s(0)}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,i.Button,{textAlign:"center",fluid:!0,fontSize:1.5,color:"bad",icon:"video-slash",onClick:function(){return r("endvideo")}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,i.Button,{textAlign:"center",fluid:!0,fontSize:1.5,color:"bad",icon:"phone-slash",onClick:function(){return r("hang_up")}})})]})}),(0,o.createComponentVNode)(2,i.ByondUi,{width:"200px",height:"200px",params:{id:l,type:"map"}})]}):null},m=function(e,n){var t=(0,a.useBackend)(n),r=(t.act,t.data.currentTab);return(0,o.createComponentVNode)(2,i.Section,{title:"Error!",children:["You tried to access tab #",r,", but there was no template defined!"]})},p=function(e,n){var t=(0,a.useBackend)(n),r=(t.act,t.data),l=r.time,d=r.connectionStatus,s=r.owner,u=r.occupation;return(0,o.createComponentVNode)(2,i.Section,{children:(0,o.createComponentVNode)(2,i.Flex,{align:"center",justify:"space-between",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{color:"average",children:l}),(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Icon,{color:1===d?"good":"bad",name:1===d?"signal":"exclamation-triangle"})}),(0,o.createComponentVNode)(2,i.Flex.Item,{color:"average",children:(0,c.decodeHtmlEntities)(s)}),(0,o.createComponentVNode)(2,i.Flex.Item,{color:"average",children:(0,c.decodeHtmlEntities)(u)})]})})},C=function(e,n){var t=(0,a.useBackend)(n),r=t.act,c=t.data.flashlight,l=e.videoSetting,d=e.setVideoSetting;return(0,o.createComponentVNode)(2,i.Flex,{children:[(0,o.createComponentVNode)(2,i.Flex.Item,{basis:2===l?"60%":"80%",children:(0,o.createComponentVNode)(2,i.Button,{p:1,fluid:!0,icon:"home",iconSize:2,textAlign:"center",onClick:function(){return r("switch_tab",{switch_tab:1})}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{basis:"20%",children:(0,o.createComponentVNode)(2,i.Button,{icon:"lightbulb",iconSize:2,p:1,fluid:!0,textAlign:"center",selected:c,tooltip:"Flashlight",tooltipPosition:"top",onClick:function(){return r("Light")}})}),2===l&&(0,o.createComponentVNode)(2,i.Flex.Item,{basis:"20%",children:(0,o.createComponentVNode)(2,i.Button,{icon:"video",iconSize:2,p:1,fluid:!0,textAlign:"center",tooltip:"Open Video",tooltipPosition:"top",onClick:function(){return d(1)}})})]})},h=function(e,n){var t=(0,a.useBackend)(n).data,o=t.voice_mobs,r=t.communicating,c=t.requestsReceived,i=t.invitesSent,l=t.video_comm;return!("Phone"!==e||!(o.length||r.length||c.length||i.length||l))};s[1]=(0,o.createComponentVNode)(2,(function(e,n){var t=(0,a.useBackend)(n),r=t.act,c=t.data.homeScreen;return(0,o.createComponentVNode)(2,i.Flex,{mt:2,wrap:"wrap",align:"center",justify:"center",children:c.map((function(e){return(0,o.createComponentVNode)(2,i.Flex.Item,{basis:"25%",textAlign:"center",mb:2,children:[(0,o.createComponentVNode)(2,i.Button,{style:{"border-radius":"10%",border:"1px solid #000"},width:"64px",height:"64px",position:"relative",onClick:function(){return r("switch_tab",{switch_tab:e.number})},children:(0,o.createComponentVNode)(2,i.Icon,{spin:h(e.module,n),color:h(e.module,n)?"bad":null,name:e.icon,position:"absolute",size:3,top:"25%",left:"25%"})}),(0,o.createComponentVNode)(2,i.Box,{children:e.module})]},e.number)}))})}));var N=function(e,n){for(var t=(0,a.useBackend)(n),r=t.act,c=t.data.targetAddress,l=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F"].map((function(e){return(0,o.createComponentVNode)(2,i.Button,{content:e,fontSize:2,fluid:!0,onClick:function(){return r("add_hex",{add_hex:e})}},e)})),d=[],s=0;st?n.length>t?n.slice(0,t)+"...":n:e+n},f=function(e,n,t,o){if(t<0||t>o.length)return V(e,n)?"TinderMessage_First_Sent":"TinderMessage_First_Received";var r=V(e,n),c=V(o[t],n);return r&&c?"TinderMessage_Subsequent_Sent":r||c?r?"TinderMessage_First_Sent":"TinderMessage_First_Received":"TinderMessage_Subsequent_Received"};s[40]=(0,o.createComponentVNode)(2,(function(e,n){var t=(0,a.useBackend)(n),r=t.act,l=t.data,d=l.targetAddressName,s=l.targetAddress,u=l.imList,m=(0,a.useLocalState)(n,"clipboardMode",!1),p=m[0],C=m[1];return p?(0,o.createComponentVNode)(2,i.Section,{title:(0,o.createComponentVNode)(2,i.Box,{inline:!0,style:{"white-space":"nowrap","overflow-x":"hidden"},width:"90%",children:b("Conversation with ",(0,c.decodeHtmlEntities)(d),30)}),buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"eye",selected:p,tooltip:"Exit Clipboard Mode",tooltipPosition:"bottom-end",onClick:function(){return C(!p)}}),height:"100%",stretchContents:!0,children:[(0,o.createComponentVNode)(2,i.Section,{style:{height:"95%","overflow-y":"auto"},children:u.map((function(e,n){return(0,o.createComponentVNode)(2,i.Box,{className:V(e,s)?"ClassicMessage_Sent":"ClassicMessage_Received",children:[V(e,s)?"You":"Them",": ",e.im]},n)}))}),(0,o.createComponentVNode)(2,i.Button,{icon:"comment",onClick:function(){return r("message",{message:s})},content:"Message"})]}):(0,o.createComponentVNode)(2,i.Section,{title:(0,o.createComponentVNode)(2,i.Box,{inline:!0,style:{"white-space":"nowrap","overflow-x":"hidden"},width:"100%",children:b("Conversation with ",(0,c.decodeHtmlEntities)(d),30)}),buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"eye",selected:p,tooltip:"Enter Clipboard Mode",tooltipPosition:"bottom-end",onClick:function(){return C(!p)}}),height:"100%",stretchContents:!0,children:[(0,o.createComponentVNode)(2,i.Section,{style:{height:"95%","overflow-y":"auto"},children:u.map((function(e,n,t){return(0,o.createComponentVNode)(2,i.Box,{textAlign:V(e,s)?"right":"left",mb:1,children:(0,o.createComponentVNode)(2,i.Box,{maxWidth:"75%",className:f(e,s,n-1,t),inline:!0,children:(0,c.decodeHtmlEntities)(e.im)})},n)}))}),(0,o.createComponentVNode)(2,i.Button,{icon:"comment",onClick:function(){return r("message",{message:s})},content:"Message"})]})}));var g=function(e,n){var t=(0,a.useBackend)(n),r=t.act,l=t.data.target_feed;return(0,o.createComponentVNode)(2,i.Section,{title:(0,c.decodeHtmlEntities)(l.name)+" by "+(0,c.decodeHtmlEntities)(l.author),level:2,buttons:(0,o.createComponentVNode)(2,i.Button,{content:"Back",icon:"chevron-up",onClick:function(){return r("newsfeed",{newsfeed:null})}}),children:l.messages.map((function(e){return(0,o.createComponentVNode)(2,i.Section,{children:["- ",(0,c.decodeHtmlEntities)(e.body),!!e.img&&(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createVNode)(1,"img",null,null,1,{src:"data:image/png;base64,"+e.img}),(0,c.decodeHtmlEntities)(e.caption)||null]}),(0,o.createComponentVNode)(2,i.Box,{color:"grey",children:["[",e.message_type," by ",(0,c.decodeHtmlEntities)(e.author)," - ",e.time_stamp,"]"]})]},e.ref)}))})},k=function(e,n){var t=(0,a.useBackend)(n),r=t.act,l=t.data,d=l.feeds,s=l.latest_news;return(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Section,{title:"Recent News",level:2,children:(0,o.createComponentVNode)(2,i.Section,{children:s.map((function(e){return(0,o.createComponentVNode)(2,i.Box,{mb:2,children:[(0,o.createVNode)(1,"h5",null,[(0,c.decodeHtmlEntities)(e.channel),(0,o.createComponentVNode)(2,i.Button,{ml:1,icon:"chevron-up",onClick:function(){return r("newsfeed",{newsfeed:e.index})},content:"Go to"})],0),"- ",(0,c.decodeHtmlEntities)(e.body),!!e.img&&(0,o.createComponentVNode)(2,i.Box,{children:["[image omitted, view story for more details]",e.caption||null]}),(0,o.createComponentVNode)(2,i.Box,{fontSize:.9,children:["[",e.message_type," by ",(0,o.createComponentVNode)(2,i.Box,{inline:!0,color:"average",children:e.author})," - ",e.time_stamp,"]"]})]},e.index)}))})}),(0,o.createComponentVNode)(2,i.Section,{title:"News Feeds",level:2,children:d.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{fluid:!0,icon:"chevron-up",onClick:function(){return r("newsfeed",{newsfeed:e.index})},content:e.name},e.index)}))})],4)};s[5]=(0,o.createComponentVNode)(2,(function(e,n){var t=(0,a.useBackend)(n),r=(t.act,t.data),c=r.feeds,l=r.target_feed;return(0,o.createComponentVNode)(2,i.Section,{title:"News",stretchContents:!0,height:"100%",children:!c.length&&(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:"Error: No newsfeeds available. Please try again later."})||l&&(0,o.createComponentVNode)(2,g)||(0,o.createComponentVNode)(2,k)})}));s[6]=(0,o.createComponentVNode)(2,(function(e,n){var t=(0,a.useBackend)(n),r=t.act,c=t.data.note;return(0,o.createComponentVNode)(2,i.Section,{title:"Note Keeper",height:"100%",stretchContents:!0,buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"pen",onClick:function(){return r("edit")},content:"Edit Notes"}),children:(0,o.createComponentVNode)(2,i.Section,{color:"average",width:"100%",height:"100%",style:{"word-break":"break-all","overflow-y":"auto"},children:c})})}));s[7]=(0,o.createComponentVNode)(2,(function(e,n){var t=(0,a.useBackend)(n),l=(t.act,t.data),d=l.aircontents,s=l.weather;return(0,o.createComponentVNode)(2,i.Section,{title:"Weather",children:[(0,o.createComponentVNode)(2,i.Section,{level:2,title:"Current Conditions",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,r.filter)((function(e){return"0"!==e.val||"Pressure"===e.entry||"Temperature"===e.entry}))(d).map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.entry,color:(n=e.val,t=e.bad_low,r=e.poor_low,a=e.poor_high,l=e.bad_high,na?"average":n>l?"bad":"good"),children:[e.val,(0,c.decodeHtmlEntities)(e.units)]},e.entry);var n,t,r,a,l}))})}),(0,o.createComponentVNode)(2,i.Section,{level:2,title:"Weather Reports",children:!!s.length&&(0,o.createComponentVNode)(2,i.LabeledList,{children:s.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.Planet,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Time",children:e.Time}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Weather",children:(0,c.toTitleCase)(e.Weather)}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Temperature",children:["Current: ",e.Temperature.toFixed(),"\xb0C | High: ",e.High.toFixed(),"\xb0C | Low: ",e.Low.toFixed(),"\xb0C"]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Wind Direction",children:e.WindDir}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Wind Speed",children:e.WindSpeed}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Forecast",children:(0,c.decodeHtmlEntities)(e.Forecast)})]})},e.Planet)}))})||(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:"No weather reports available. Please check back later."})})]})})),s[8]=(0,o.createComponentVNode)(2,d.CrewManifestContent);s[9]=(0,o.createComponentVNode)(2,(function(e,n){var t=(0,a.useBackend)(n),r=t.act,l=t.data,d=l.owner,s=l.occupation,u=l.connectionStatus,m=l.address,p=l.visible,C=l.ring,h=l.selfie_mode;return(0,o.createComponentVNode)(2,i.Section,{title:"Settings",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Owner",children:(0,o.createComponentVNode)(2,i.Button,{icon:"pen",fluid:!0,content:(0,c.decodeHtmlEntities)(d),onClick:function(){return r("rename")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Camera Mode",children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,content:h?"Front-facing Camera":"Rear-facing Camera",onClick:function(){return r("selfie_mode")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Occupation",children:(0,c.decodeHtmlEntities)(s)}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Connection",children:1===u?(0,o.createComponentVNode)(2,i.Box,{color:"good",children:"Connected"}):(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:"Disconnected"})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Device EPv2 Address",children:m}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Visibility",children:(0,o.createComponentVNode)(2,i.Button.Checkbox,{checked:p,selected:p,fluid:!0,content:p?"This device can be seen by other devices.":"This device is invisible to other devices.",onClick:function(){return r("toggle_visibility")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Ringer",children:(0,o.createComponentVNode)(2,i.Button.Checkbox,{checked:C,selected:C,fluid:!0,content:C?"Ringer on.":"Ringer off.",onClick:function(){return r("toggle_ringer")}})})]})})}))},2174:function(e,n,t){"use strict";n.__esModule=!0,n.ComputerFabricator=void 0;var o=t(39812),r=(t(2497),t(71494)),c=t(74814),a=t(85952);n.ComputerFabricator=function(e,n){var t=(0,r.useBackend)(n),u=t.act,m=t.data;return(0,o.createComponentVNode)(2,a.Window,{title:"Personal Computer Vendor",width:500,height:420,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{italic:!0,fontSize:"20px",children:"Your perfect device, only three steps away..."}),0!==m.state&&(0,o.createComponentVNode)(2,c.Button,{fluid:!0,mb:1,icon:"circle",content:"Clear Order",onClick:function(){return u("clean_order")}}),0===m.state&&(0,o.createComponentVNode)(2,i),1===m.state&&(0,o.createComponentVNode)(2,l),2===m.state&&(0,o.createComponentVNode)(2,d),3===m.state&&(0,o.createComponentVNode)(2,s)]})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=t.act;t.data;return(0,o.createComponentVNode)(2,c.Section,{title:"Step 1",minHeight:"306px",children:[(0,o.createComponentVNode)(2,c.Box,{mt:5,bold:!0,textAlign:"center",fontSize:"40px",children:"Choose your Device"}),(0,o.createComponentVNode)(2,c.Box,{mt:3,children:(0,o.createComponentVNode)(2,c.Grid,{width:"100%",children:[(0,o.createComponentVNode)(2,c.Grid.Column,{children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"laptop",content:"Laptop",textAlign:"center",fontSize:"30px",lineHeight:2,onClick:function(){return a("pick_device",{pick:"1"})}})}),(0,o.createComponentVNode)(2,c.Grid.Column,{children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"tablet-alt",content:"Tablet",textAlign:"center",fontSize:"30px",lineHeight:2,onClick:function(){return a("pick_device",{pick:"2"})}})})]})})]})},l=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data;return(0,o.createComponentVNode)(2,c.Section,{title:"Step 2: Customize your device",minHeight:"282px",buttons:(0,o.createComponentVNode)(2,c.Box,{bold:!0,color:"good",children:[i.totalprice,"\u20ae"]}),children:[(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{bold:!0,position:"relative",children:["Battery:",(0,o.createComponentVNode)(2,c.Tooltip,{content:"Allows your device to operate without external utility power\nsource. Advanced batteries increase battery life.",position:"right"})]}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"Standard",selected:1===i.hw_battery,onClick:function(){return a("hw_battery",{battery:"1"})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"Upgraded",selected:2===i.hw_battery,onClick:function(){return a("hw_battery",{battery:"2"})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"Advanced",selected:3===i.hw_battery,onClick:function(){return a("hw_battery",{battery:"3"})}})})]}),(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{bold:!0,position:"relative",children:["Hard Drive:",(0,o.createComponentVNode)(2,c.Tooltip,{content:"Stores file on your device. Advanced drives can store more\nfiles, but use more power, shortening battery life.",position:"right"})]}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"Standard",selected:1===i.hw_disk,onClick:function(){return a("hw_disk",{disk:"1"})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"Upgraded",selected:2===i.hw_disk,onClick:function(){return a("hw_disk",{disk:"2"})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"Advanced",selected:3===i.hw_disk,onClick:function(){return a("hw_disk",{disk:"3"})}})})]}),(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{bold:!0,position:"relative",children:["Network Card:",(0,o.createComponentVNode)(2,c.Tooltip,{content:"Allows your device to wirelessly connect to stationwide NTNet\nnetwork. Basic cards are limited to on-station use, while\nadvanced cards can operate anywhere near the station, which\nincludes asteroid outposts",position:"right"})]}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"None",selected:0===i.hw_netcard,onClick:function(){return a("hw_netcard",{netcard:"0"})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"Standard",selected:1===i.hw_netcard,onClick:function(){return a("hw_netcard",{netcard:"1"})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"Advanced",selected:2===i.hw_netcard,onClick:function(){return a("hw_netcard",{netcard:"2"})}})})]}),(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{bold:!0,position:"relative",children:["Nano Printer:",(0,o.createComponentVNode)(2,c.Tooltip,{content:"A device that allows for various paperwork manipulations,\nsuch as, scanning of documents or printing new ones.\nThis device was certified EcoFriendlyPlus and is capable of\nrecycling existing paper for printing purposes.",position:"right"})]}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"None",selected:0===i.hw_nanoprint,onClick:function(){return a("hw_nanoprint",{print:"0"})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"Standard",selected:1===i.hw_nanoprint,onClick:function(){return a("hw_nanoprint",{print:"1"})}})})]}),(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{bold:!0,position:"relative",children:["Secondary Card Reader:",(0,o.createComponentVNode)(2,c.Tooltip,{content:"Adds a secondary RFID card reader, for manipulating or\nreading from a second standard RFID card.\nPlease note that a primary card reader is necessary to\nallow the device to read your identification, but one\nis included in the base price.",position:"right"})]}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"None",selected:0===i.hw_card,onClick:function(){return a("hw_card",{card:"0"})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"Standard",selected:1===i.hw_card,onClick:function(){return a("hw_card",{card:"1"})}})})]}),2!==i.devtype&&(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{bold:!0,position:"relative",children:["Processor Unit:",(0,o.createComponentVNode)(2,c.Tooltip,{content:"A component critical for your device's functionality.\nIt allows you to run programs from your hard drive.\nAdvanced CPUs use more power, but allow you to run\nmore programs on background at once.",position:"right"})]}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"Standard",selected:1===i.hw_cpu,onClick:function(){return a("hw_cpu",{cpu:"1"})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"Advanced",selected:2===i.hw_cpu,onClick:function(){return a("hw_cpu",{cpu:"2"})}})})]}),(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{bold:!0,position:"relative",children:["Tesla Relay:",(0,o.createComponentVNode)(2,c.Tooltip,{content:"An advanced wireless power relay that allows your device\nto connect to nearby area power controller to provide\nalternative power source. This component is currently\nunavailable on tablet computers due to size restrictions.",position:"right"})]}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"None",selected:0===i.hw_tesla,onClick:function(){return a("hw_tesla",{tesla:"0"})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"Standard",selected:1===i.hw_tesla,onClick:function(){return a("hw_tesla",{tesla:"1"})}})})]})]}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,mt:3,content:"Confirm Order",color:"good",textAlign:"center",fontSize:"18px",lineHeight:2,onClick:function(){return a("confirm_order")}})]})},d=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data);return(0,o.createComponentVNode)(2,c.Section,{title:"Step 3: Payment",minHeight:"282px",children:[(0,o.createComponentVNode)(2,c.Box,{italic:!0,textAlign:"center",fontSize:"20px",children:"Your device is ready for fabrication..."}),(0,o.createComponentVNode)(2,c.Box,{bold:!0,mt:2,textAlign:"center",fontSize:"16px",children:[(0,o.createComponentVNode)(2,c.Box,{inline:!0,children:"Please swipe your ID now to authorize payment of:"}),"\xa0",(0,o.createComponentVNode)(2,c.Box,{inline:!0,color:"good",children:[a.totalprice,"\u20ae"]})]})]})},s=function(e,n){return(0,o.createComponentVNode)(2,c.Section,{minHeight:"282px",children:[(0,o.createComponentVNode)(2,c.Box,{bold:!0,textAlign:"center",fontSize:"28px",mt:10,children:"Thank you for your purchase!"}),(0,o.createComponentVNode)(2,c.Box,{italic:!0,mt:1,textAlign:"center",children:"If you experience any difficulties with your new device, please contact your local network administrator."})]})}},26090:function(e,n,t){"use strict";n.__esModule=!0,n.CookingAppliance=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.CookingAppliance=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.temperature,s=l.optimalTemp,u=l.temperatureEnough,m=l.efficiency,p=l.containersRemovable,C=l.our_contents;return(0,o.createComponentVNode)(2,a.Window,{width:600,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Status",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Temperature",children:(0,o.createComponentVNode)(2,c.ProgressBar,{color:u?"good":"blue",value:d,maxValue:s,children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:d}),"\xb0C / ",s,"\xb0C"]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Efficiency",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:m}),"%"]})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Containers",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:C.map((function(e,n){return e.empty?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Slot #"+(n+1),children:(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("slot",{slot:n+1})},children:"Empty"})}):(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Slot #"+(n+1),verticalAlign:"middle",children:(0,o.createComponentVNode)(2,c.Flex,{spacing:1,children:[(0,o.createComponentVNode)(2,c.Flex.Item,{children:(0,o.createComponentVNode)(2,c.Button,{disabled:!p,onClick:function(){return i("slot",{slot:n+1})},children:e.container||"No Container"})}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.ProgressBar,{color:e.progressText[0],value:e.progress,maxValue:1,children:e.progressText[1]})})]})},n)}))})})]})})}},22902:function(e,n,t){"use strict";n.__esModule=!0,n.CrewManifestContent=n.CrewManifest=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=t(76270),l=t(2497);n.CrewManifest=function(e,n){return(0,o.createComponentVNode)(2,a.Window,{width:400,height:600,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,d)})})};var d=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data.manifest);return(0,o.createComponentVNode)(2,c.Section,{title:"Crew Manifest",noTopPadding:!0,children:a.map((function(e){return!!e.elems.length&&(0,o.createComponentVNode)(2,c.Section,{title:(0,o.createComponentVNode)(2,c.Box,{backgroundColor:i.COLORS.manifest[e.cat.toLowerCase()],m:-1,pt:1,pb:1,children:(0,o.createComponentVNode)(2,c.Box,{ml:1,textAlign:"center",fontSize:1.4,children:e.cat})}),level:2,children:(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{header:!0,color:"white",children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Name"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Rank"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Active"})]}),e.elems.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{color:"average",children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,l.decodeHtmlEntities)(e.name)}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.rank}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.active})]},e.name+e.rank)}))]})},e.cat)}))})};n.CrewManifestContent=d},96158:function(e,n,t){"use strict";n.__esModule=!0,n.CrewMonitorContent=n.CrewMonitor=void 0;var o=t(39812),r=t(64499),c=t(85531),a=t(71494),i=t(85952),l=t(74814),d=function(e){return e.dead?"Deceased":1===parseInt(e.stat,10)?"Unconscious":"Living"},s=function(e){return e.dead?"red":1===parseInt(e.stat,10)?"orange":"green"};n.CrewMonitor=function(){return(0,o.createComponentVNode)(2,i.Window,{width:800,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,u)})})};var u=function(e,n){var t,i=(0,a.useBackend)(n),u=i.act,p=i.data,C=(i.config,(0,a.useLocalState)(n,"tabIndex",0)),h=C[0],N=C[1],V=(0,c.flow)([(0,r.sortBy)((function(e){return e.name})),(0,r.sortBy)((function(e){return null==e?void 0:e.x})),(0,r.sortBy)((function(e){return null==e?void 0:e.y})),(0,r.sortBy)((function(e){return null==e?void 0:e.realZ}))])(p.crewmembers||[]),b=(0,a.useLocalState)(n,"zoom",1);b[0],b[1];return t=0===h?(0,o.createComponentVNode)(2,l.Table,{children:[(0,o.createComponentVNode)(2,l.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,l.Table.Cell,{children:"Name"}),(0,o.createComponentVNode)(2,l.Table.Cell,{children:"Status"}),(0,o.createComponentVNode)(2,l.Table.Cell,{children:"Location"})]}),V.map((function(e){return(0,o.createComponentVNode)(2,l.Table.Row,{children:[(0,o.createComponentVNode)(2,l.Table.Cell,{children:[e.name," (",e.assignment,")"]}),(0,o.createComponentVNode)(2,l.Table.Cell,{children:[(0,o.createComponentVNode)(2,l.Box,{inline:!0,color:s(e),children:d(e)}),e.sensor_type>=2?(0,o.createComponentVNode)(2,l.Box,{inline:!0,children:["(",(0,o.createComponentVNode)(2,l.Box,{inline:!0,color:"red",children:e.brute}),"|",(0,o.createComponentVNode)(2,l.Box,{inline:!0,color:"orange",children:e.fire}),"|",(0,o.createComponentVNode)(2,l.Box,{inline:!0,color:"green",children:e.tox}),"|",(0,o.createComponentVNode)(2,l.Box,{inline:!0,color:"blue",children:e.oxy}),")"]}):null]}),(0,o.createComponentVNode)(2,l.Table.Cell,{children:3===e.sensor_type?p.isAI?(0,o.createComponentVNode)(2,l.Button,{fluid:!0,icon:"location-arrow",content:e.area+" ("+e.x+", "+e.y+")",onClick:function(){return u("track",{track:e.ref})}}):e.area+" ("+e.x+", "+e.y+", "+e.z+")":"Not Available"})]},e.ref)}))]}):1===h?(0,o.createComponentVNode)(2,m):"ERROR",(0,o.createFragment)([(0,o.createComponentVNode)(2,l.Tabs,{children:[(0,o.createComponentVNode)(2,l.Tabs.Tab,{selected:0===h,onClick:function(){return N(0)},children:[(0,o.createComponentVNode)(2,l.Icon,{name:"table"})," Data View"]},"DataView"),(0,o.createComponentVNode)(2,l.Tabs.Tab,{selected:1===h,onClick:function(){return N(1)},children:[(0,o.createComponentVNode)(2,l.Icon,{name:"map-marked-alt"})," Map View"]},"MapView")]}),(0,o.createComponentVNode)(2,l.Box,{m:2,children:t})],4)};n.CrewMonitorContent=u;var m=function(e,n){var t=(0,a.useBackend)(n),r=(t.act,t.config),c=t.data,i=(0,a.useLocalState)(n,"zoom",1),d=i[0],u=i[1];return(0,o.createComponentVNode)(2,l.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,o.createComponentVNode)(2,l.NanoMap,{onZoom:function(e){return u(e)},children:c.crewmembers.filter((function(e){return 3===e.sensor_type&&~~e.realZ==~~r.mapZLevel})).map((function(e){return(0,o.createComponentVNode)(2,l.NanoMap.Marker,{x:e.x,y:e.y,zoom:d,icon:"circle",tooltip:e.name+" ("+e.assignment+")",color:s(e)},e.ref)}))})})}},99798:function(e,n,t){"use strict";n.__esModule=!0,n.Cryo=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=[{label:"Resp.",type:"oxyLoss"},{label:"Toxin",type:"toxLoss"},{label:"Brute",type:"bruteLoss"},{label:"Burn",type:"fireLoss"}],l=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]];n.Cryo=function(e,n){return(0,o.createComponentVNode)(2,a.Window,{width:520,height:470,resizeable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{className:"Layout__content--flexColumn",children:(0,o.createComponentVNode)(2,d)})})};var d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,d=t.data,u=d.isOperating,m=d.hasOccupant,p=d.occupant,C=void 0===p?[]:p,h=d.cellTemperature,N=d.cellTemperatureStatus,V=d.isBeakerLoaded;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Occupant",flexGrow:"1",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"user-slash",onClick:function(){return a("ejectOccupant")},disabled:!m,children:"Eject"}),children:m?(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Occupant",children:C.name||"Unknown"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Health",children:(0,o.createComponentVNode)(2,c.ProgressBar,{min:C.health,max:C.maxHealth,value:C.health/C.maxHealth,color:C.health>0?"good":"average",children:(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:Math.round(C.health)})})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Status",color:l[C.stat][0],children:l[C.stat][1]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Temperature",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:Math.round(C.bodyTemperature)})," K"]}),(0,o.createComponentVNode)(2,c.LabeledList.Divider),i.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.label,children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:C[e.type]/100,ranges:{bad:[.01,Infinity]},children:(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:Math.round(C[e.type])})})},e.id)}))]}):(0,o.createComponentVNode)(2,c.Flex,{height:"100%",textAlign:"center",children:(0,o.createComponentVNode)(2,c.Flex.Item,{grow:"1",align:"center",color:"label",children:[(0,o.createComponentVNode)(2,c.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),"No occupant detected."]})})}),(0,o.createComponentVNode)(2,c.Section,{title:"Cell",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"eject",onClick:function(){return a("ejectBeaker")},disabled:!V,children:"Eject Beaker"}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power",children:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",onClick:function(){return a(u?"switchOff":"switchOn")},selected:u,children:u?"On":"Off"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Temperature",color:N,children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:h})," K"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Beaker",children:(0,o.createComponentVNode)(2,s)})]})})],4)},s=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data),i=a.isBeakerLoaded,l=a.beakerLabel,d=a.beakerVolume;return i?(0,o.createFragment)([l||(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No label"}),(0,o.createComponentVNode)(2,c.Box,{color:!d&&"bad",children:d?(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:d,format:function(e){return Math.round(e)+" units remaining"}}):"Beaker is empty"})],0):(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No beaker loaded"})}},54234:function(e,n,t){"use strict";n.__esModule=!0,n.CryoStorageItems=n.CryoStorageCrew=n.CryoStorage=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.CryoStorage=function(e,n){var t=(0,r.useBackend)(n),d=(t.act,t.data),s=d.real_name,u=d.allow_items,m=(0,r.useLocalState)(n,"tab",0),p=m[0],C=m[1];return(0,o.createComponentVNode)(2,a.Window,{width:400,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Tabs,{children:[(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:0===p,onClick:function(){return C(0)},children:"Crew"}),!!u&&(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:1===p,onClick:function(){return C(1)},children:"Items"})]}),(0,o.createComponentVNode)(2,c.NoticeBox,{info:!0,children:["Welcome, ",s,"."]}),0===p&&(0,o.createComponentVNode)(2,i),!!u&&1===p&&(0,o.createComponentVNode)(2,l)]})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data.crew);return(0,o.createComponentVNode)(2,c.Section,{title:"Stored Crew",children:a.length&&a.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{color:"label",children:e},e)}))||(0,o.createComponentVNode)(2,c.Box,{color:"good",children:"No crew currently stored."})})};n.CryoStorageCrew=i;var l=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.items;return(0,o.createComponentVNode)(2,c.Section,{title:"Stored Items",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"hand-rock",onClick:function(){return a("allitems")},children:"Claim All"}),children:i.length&&i.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{icon:"hand-rock",onClick:function(){return a("item",{ref:e.ref})},children:e.name},e.ref)}))||(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No items stored."})})};n.CryoStorageItems=l},66384:function(e,n,t){"use strict";n.__esModule=!0,n.CryoStorageItemsVr=n.CryoStorageVr=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=t(54234);n.CryoStorageVr=function(e,n){var t=(0,r.useBackend)(n),d=(t.act,t.data),s=d.real_name,u=d.allow_items,m=(0,r.useLocalState)(n,"tab",0),p=m[0],C=m[1];return(0,o.createComponentVNode)(2,a.Window,{width:400,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Tabs,{children:[(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:0===p,onClick:function(){return C(0)},children:"Crew"}),!!u&&(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:1===p,onClick:function(){return C(1)},children:"Items"})]}),(0,o.createComponentVNode)(2,c.NoticeBox,{info:!0,children:["Welcome, ",s,"."]}),0===p&&(0,o.createComponentVNode)(2,i.CryoStorageCrew),!!u&&1===p&&(0,o.createComponentVNode)(2,l)]})})};var l=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data.items);return(0,o.createComponentVNode)(2,c.Section,{title:"Stored Items",children:a.length&&a.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{color:"label",children:e},e)}))||(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No items stored."})})};n.CryoStorageItemsVr=l},99579:function(e,n,t){"use strict";n.__esModule=!0,n.DNAForensics=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.DNAForensics=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.scan_progress,s=l.scanning,u=l.bloodsamp,m=l.bloodsamp_desc;return(0,o.createComponentVNode)(2,a.Window,{width:540,height:326,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{title:"Status",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{selected:s,disabled:!u,icon:"power-off",onClick:function(){return i("scanItem")},children:s?"Halt Scan":"Begin Scan"}),(0,o.createComponentVNode)(2,c.Button,{disabled:!u,icon:"eject",onClick:function(){return i("ejectItem")},children:"Eject Bloodsample"})],4),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Scan Progress",children:(0,o.createComponentVNode)(2,c.ProgressBar,{ranges:{good:[99,Infinity],violet:[-Infinity,99]},value:d,maxValue:100})})})}),(0,o.createComponentVNode)(2,c.Section,{title:"Blood Sample",children:u&&(0,o.createComponentVNode)(2,c.Box,{children:[u,(0,o.createComponentVNode)(2,c.Box,{color:"label",children:m})]})||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No blood sample inserted."})})]})})}},21849:function(e,n,t){"use strict";n.__esModule=!0,n.DNAModifier=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=t(16007),l=[["good","Alive"],["average","Unconscious"],["bad","DEAD"]],d=[["ui","Modify U.I.","dna"],["se","Modify S.E.","dna"],["buffer","Transfer Buffers","syringe"],["rejuvenators","Rejuvenators","flask"]],s=[5,10,20,30,50];n.DNAModifier=function(e,n){var t,c=(0,r.useBackend)(n),l=(c.act,c.data),d=l.irradiating,s=l.dnaBlockSize,p=l.occupant;return n.dnaBlockSize=s,n.isDNAInvalid=!p.isViableSubject||!p.uniqueIdentity||!p.structuralEnzymes,d&&(t=(0,o.createComponentVNode)(2,g,{duration:d})),(0,o.createComponentVNode)(2,a.Window,{width:660,height:700,resizable:!0,children:[(0,o.createComponentVNode)(2,i.ComplexModal),t,(0,o.createComponentVNode)(2,a.Window.Content,{className:"Layout__content--flexColumn",children:[(0,o.createComponentVNode)(2,u),(0,o.createComponentVNode)(2,m)]})]})};var u=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,d=i.locked,s=i.hasOccupant,u=i.occupant;return(0,o.createComponentVNode)(2,c.Section,{title:"Occupant",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Box,{color:"label",inline:!0,mr:"0.5rem",children:"Door Lock:"}),(0,o.createComponentVNode)(2,c.Button,{disabled:!s,selected:d,icon:d?"toggle-on":"toggle-off",content:d?"Engaged":"Disengaged",onClick:function(){return a("toggleLock")}}),(0,o.createComponentVNode)(2,c.Button,{disabled:!s||d,icon:"user-slash",content:"Eject",onClick:function(){return a("ejectOccupant")}})],4),children:s?(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Name",children:u.name}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Health",children:(0,o.createComponentVNode)(2,c.ProgressBar,{min:u.minHealth,max:u.maxHealth,value:u.health/u.maxHealth,ranges:{good:[.5,Infinity],average:[0,.5],bad:[-Infinity,0]}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Status",color:l[u.stat][0],children:l[u.stat][1]}),(0,o.createComponentVNode)(2,c.LabeledList.Divider)]})}),n.isDNAInvalid?(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:[(0,o.createComponentVNode)(2,c.Icon,{name:"exclamation-circle"}),"\xa0 The occupant's DNA structure is ruined beyond recognition, please insert a subject with an intact DNA structure."]}):(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Radiation",children:(0,o.createComponentVNode)(2,c.ProgressBar,{min:"0",max:"100",value:u.radiationLevel/100,color:"average"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Unique Enzymes",children:i.occupant.uniqueEnzymes?i.occupant.uniqueEnzymes:(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:[(0,o.createComponentVNode)(2,c.Icon,{name:"exclamation-circle"}),"\xa0 Unknown"]})})]})],0):(0,o.createComponentVNode)(2,c.Box,{color:"label",children:"Cell unoccupied."})})},m=function(e,n){var t,a=(0,r.useBackend)(n),i=a.act,l=a.data,s=l.selectedMenuKey,u=l.hasOccupant;l.occupant;return u?n.isDNAInvalid?(0,o.createComponentVNode)(2,c.Section,{flexGrow:"1",children:(0,o.createComponentVNode)(2,c.Flex,{height:"100%",children:(0,o.createComponentVNode)(2,c.Flex.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,o.createComponentVNode)(2,c.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),"No operation possible on this subject."]})})}):("ui"===s?t=(0,o.createFragment)([(0,o.createComponentVNode)(2,p),(0,o.createComponentVNode)(2,h)],4):"se"===s?t=(0,o.createFragment)([(0,o.createComponentVNode)(2,C),(0,o.createComponentVNode)(2,h)],4):"buffer"===s?t=(0,o.createComponentVNode)(2,N):"rejuvenators"===s&&(t=(0,o.createComponentVNode)(2,f)),(0,o.createComponentVNode)(2,c.Section,{flexGrow:"1",children:[(0,o.createComponentVNode)(2,c.Tabs,{children:d.map((function(e,n){return(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:s===e[0],onClick:function(){return i("selectMenuKey",{key:e[0]})},children:[(0,o.createComponentVNode)(2,c.Icon,{name:e[2]}),e[1]]},n)}))}),t]})):(0,o.createComponentVNode)(2,c.Section,{flexGrow:"1",children:(0,o.createComponentVNode)(2,c.Flex,{height:"100%",children:(0,o.createComponentVNode)(2,c.Flex.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,o.createComponentVNode)(2,c.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),"No occupant in DNA modifier."]})})})},p=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.selectedUIBlock,d=i.selectedUISubBlock,s=i.selectedUITarget,u=i.occupant;return(0,o.createComponentVNode)(2,c.Section,{title:"Modify Unique Identifier",level:"2",children:[(0,o.createComponentVNode)(2,k,{dnaString:u.uniqueIdentity,selectedBlock:l,selectedSubblock:d,blockSize:n.dnaBlockSize,action:"selectUIBlock"}),(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Target",children:(0,o.createComponentVNode)(2,c.Knob,{minValue:"1",maxValue:"15",stepPixelSize:"20",value:s,format:function(e){return e.toString(16).toUpperCase()},ml:"0",onChange:function(e,n){return a("changeUITarget",{value:n})}})})}),(0,o.createComponentVNode)(2,c.Button,{icon:"radiation",content:"Irradiate Block",mt:"0.5rem",onClick:function(){return a("pulseUIRadiation")}})]})},C=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.selectedSEBlock,d=i.selectedSESubBlock,s=i.occupant;return(0,o.createComponentVNode)(2,c.Section,{title:"Modify Structural Enzymes",level:"2",children:[(0,o.createComponentVNode)(2,k,{dnaString:s.structuralEnzymes,selectedBlock:l,selectedSubblock:d,blockSize:n.dnaBlockSize,action:"selectSEBlock"}),(0,o.createComponentVNode)(2,c.Button,{icon:"radiation",content:"Irradiate Block",onClick:function(){return a("pulseSERadiation")}})]})},h=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.radiationIntensity,d=i.radiationDuration;return(0,o.createComponentVNode)(2,c.Section,{title:"Radiation Emitter",level:"2",children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Intensity",children:(0,o.createComponentVNode)(2,c.Knob,{minValue:"1",maxValue:"10",stepPixelSize:"20",value:l,popUpPosition:"right",ml:"0",onChange:function(e,n){return a("radiationIntensity",{value:n})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Duration",children:(0,o.createComponentVNode)(2,c.Knob,{minValue:"1",maxValue:"20",stepPixelSize:"10",unit:"s",value:d,popUpPosition:"right",ml:"0",onChange:function(e,n){return a("radiationDuration",{value:n})}})})]}),(0,o.createComponentVNode)(2,c.Button,{icon:"radiation",content:"Pulse Radiation",tooltip:"Mutates a random block of either the occupant's UI or SE.",tooltipPosition:"top-right",mt:"0.5rem",onClick:function(){return a("pulseRadiation")}})]})},N=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data.buffers.map((function(e,n){return(0,o.createComponentVNode)(2,V,{id:n+1,name:"Buffer "+(n+1),buffer:e},n)})));return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Buffers",level:"2",children:a}),(0,o.createComponentVNode)(2,b)],4)},V=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=e.id,d=e.name,s=e.buffer,u=i.isInjectorReady,m=d+(s.data?" - "+s.label:"");return(0,o.createComponentVNode)(2,c.Box,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,o.createComponentVNode)(2,c.Section,{title:m,level:"3",mx:"0",lineHeight:"18px",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button.Confirm,{disabled:!s.data,icon:"trash",content:"Clear",onClick:function(){return a("bufferOption",{option:"clear",id:l})}}),(0,o.createComponentVNode)(2,c.Button,{disabled:!s.data,icon:"pen",content:"Rename",onClick:function(){return a("bufferOption",{option:"changeLabel",id:l})}}),(0,o.createComponentVNode)(2,c.Button,{disabled:!s.data||!i.hasDisk,icon:"save",content:"Export",tooltip:"Exports this buffer to the currently loaded data disk.",tooltipPosition:"bottom-end",onClick:function(){return a("bufferOption",{option:"saveDisk",id:l})}})],4),children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Write",children:[(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-circle-down",content:"Subject U.I",mb:"0",onClick:function(){return a("bufferOption",{option:"saveUI",id:l})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-circle-down",content:"Subject U.I and U.E.",mb:"0",onClick:function(){return a("bufferOption",{option:"saveUIAndUE",id:l})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-circle-down",content:"Subject S.E.",mb:"0",onClick:function(){return a("bufferOption",{option:"saveSE",id:l})}}),(0,o.createComponentVNode)(2,c.Button,{disabled:!i.hasDisk||!i.disk.data,icon:"arrow-circle-down",content:"From Disk",mb:"0",onClick:function(){return a("bufferOption",{option:"loadDisk",id:l})}})]}),!!s.data&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Subject",children:s.owner||(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"Unknown"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Data Type",children:["ui"===s.type?"Unique Identifiers":"Structural Enzymes",!!s.ue&&" and Unique Enzymes"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Transfer to",children:[(0,o.createComponentVNode)(2,c.Button,{disabled:!u,icon:u?"syringe":"spinner",iconSpin:!u,content:"Injector",mb:"0",onClick:function(){return a("bufferOption",{option:"createInjector",id:l})}}),(0,o.createComponentVNode)(2,c.Button,{disabled:!u,icon:u?"syringe":"spinner",iconSpin:!u,content:"Block Injector",mb:"0",onClick:function(){return a("bufferOption",{option:"createInjector",id:l,block:1})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"user",content:"Subject",mb:"0",onClick:function(){return a("bufferOption",{option:"transfer",id:l})}})]})],4)]}),!s.data&&(0,o.createComponentVNode)(2,c.Box,{color:"label",mt:"0.5rem",children:"This buffer is empty."})]})})},b=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.hasDisk,d=i.disk;return(0,o.createComponentVNode)(2,c.Section,{title:"Data Disk",level:"2",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button.Confirm,{disabled:!l||!d.data,icon:"trash",content:"Wipe",onClick:function(){return a("wipeDisk")}}),(0,o.createComponentVNode)(2,c.Button,{disabled:!l,icon:"eject",content:"Eject",onClick:function(){return a("ejectDisk")}})],4),children:l?d.data?(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Label",children:d.label?d.label:"No label"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Subject",children:d.owner?d.owner:(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"Unknown"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Data Type",children:["ui"===d.type?"Unique Identifiers":"Structural Enzymes",!!d.ue&&" and Unique Enzymes"]})]}):(0,o.createComponentVNode)(2,c.Box,{color:"label",children:"Disk is blank."}):(0,o.createComponentVNode)(2,c.Box,{color:"label",textAlign:"center",my:"1rem",children:[(0,o.createComponentVNode)(2,c.Icon,{name:"save-o",size:"4"}),(0,o.createVNode)(1,"br"),"No disk inserted."]})})},f=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.isBeakerLoaded,d=i.beakerVolume,u=i.beakerLabel;return(0,o.createComponentVNode)(2,c.Section,{title:"Rejuvenators and Beaker",level:"2",buttons:(0,o.createComponentVNode)(2,c.Button,{disabled:!l,icon:"eject",content:"Eject",onClick:function(){return a("ejectBeaker")}}),children:l?(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Inject",children:[s.map((function(e,n){return(0,o.createComponentVNode)(2,c.Button,{disabled:e>d,icon:"syringe",content:e,onClick:function(){return a("injectRejuvenators",{amount:e})}},n)})),(0,o.createComponentVNode)(2,c.Button,{disabled:d<=0,icon:"syringe",content:"All",onClick:function(){return a("injectRejuvenators",{amount:d})}})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Beaker",children:[(0,o.createComponentVNode)(2,c.Box,{mb:"0.5rem",children:u||"No label"}),d?(0,o.createComponentVNode)(2,c.Box,{color:"good",children:[d," unit",1===d?"":"s"," remaining"]}):(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Empty"})]})]}):(0,o.createComponentVNode)(2,c.Box,{color:"label",textAlign:"center",my:"25%",children:[(0,o.createComponentVNode)(2,c.Icon,{name:"exclamation-triangle",size:"4"}),(0,o.createVNode)(1,"br"),"No beaker loaded."]})})},g=function(e,n){return(0,o.createComponentVNode)(2,c.Dimmer,{textAlign:"center",children:[(0,o.createComponentVNode)(2,c.Icon,{name:"spinner",size:"5",spin:!0}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Box,{color:"average",children:(0,o.createVNode)(1,"h1",null,[(0,o.createComponentVNode)(2,c.Icon,{name:"radiation"}),(0,o.createTextVNode)("\xa0Irradiating occupant\xa0"),(0,o.createComponentVNode)(2,c.Icon,{name:"radiation"})],4)}),(0,o.createComponentVNode)(2,c.Box,{color:"label",children:(0,o.createVNode)(1,"h3",null,[(0,o.createTextVNode)("For "),e.duration,(0,o.createTextVNode)(" second"),1===e.duration?"":"s"],0)})]})},k=function(e,n){for(var t=(0,r.useBackend)(n),a=t.act,i=(t.data,e.dnaString),l=e.selectedBlock,d=e.selectedSubblock,s=e.blockSize,u=e.action,m=i.split(""),p=[],C=function(e){for(var n=e/s+1,t=[],r=function(r){var i=r+1;t.push((0,o.createComponentVNode)(2,c.Button,{selected:l===n&&d===i,content:m[e+r],mb:"0",onClick:function(){return a(u,{block:n,subblock:i})}}))},i=0;i1?"Dangerous!":null]},e.stage)}))||(0,o.createComponentVNode)(2,c.Box,{children:"No virus sample loaded."})}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Affected Species",color:"label",children:[m&&m.length?null:"None",m.sort().join(", ")]}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Reverse Engineering",children:[(0,o.createComponentVNode)(2,c.Box,{color:"bad",mb:1,children:(0,o.createVNode)(1,"i",null,"CAUTION: Reverse engineering will destroy the viral sample.",16)}),d.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{content:e.stage,icon:"exchange-alt",onClick:function(){return a("grab",{grab:e.reference})}},e.stage)})),(0,o.createComponentVNode)(2,c.Button,{content:"Species",icon:"exchange-alt",onClick:function(){return a("affected_species")}})]})],4)]})},l=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=(i.dish_inserted,i.buffer),d=i.species_buffer,s=(i.effects,i.info);i.growth,i.affected_species,i.busy;return(0,o.createComponentVNode)(2,c.Section,{title:"Storage",children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Memory Buffer",children:l?(0,o.createComponentVNode)(2,c.Box,{children:[l.name," (",l.stage,")"]}):d?(0,o.createComponentVNode)(2,c.Box,{children:d}):"Empty"})}),(0,o.createComponentVNode)(2,c.Button,{mt:1,icon:"save",content:"Save To Disk",disabled:!l&&!d,onClick:function(){return a("disk")}}),l?(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{icon:"pen",content:"Splice #1",disabled:l.stage>1,onClick:function(){return a("splice",{splice:1})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"pen",content:"Splice #2",disabled:l.stage>2,onClick:function(){return a("splice",{splice:2})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"pen",content:"Splice #3",disabled:l.stage>3,onClick:function(){return a("splice",{splice:3})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"pen",content:"Splice #4",disabled:l.stage>4,onClick:function(){return a("splice",{splice:4})}})]}):d?(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"pen",content:"Splice Species",disabled:!d||s,onClick:function(){return a("splice",{splice:5})}})}):null]})}},31066:function(e,n,t){"use strict";n.__esModule=!0,n.DishIncubator=void 0;var o=t(39812),r=(t(41860),t(58083)),c=t(71494),a=t(74814),i=t(85952);n.DishIncubator=function(e,n){var t=(0,c.useBackend)(n),l=t.act,d=t.data,s=d.on,u=d.system_in_use,m=d.food_supply,p=d.radiation,C=d.growth,h=d.toxins,N=d.chemicals_inserted,V=d.can_breed_virus,b=d.chemical_volume,f=d.max_chemical_volume,g=d.dish_inserted,k=d.blood_already_infected,v=d.virus,B=d.analysed,L=d.infection_rate;return(0,o.createComponentVNode)(2,i.Window,{width:400,height:600,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{title:"Environmental Conditions",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",selected:s,content:s?"On":"Off",onClick:function(){return l("power")}}),children:[(0,o.createComponentVNode)(2,a.Flex,{spacing:1,mb:1,children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"radiation",content:"Add Radiation",onClick:function(){return l("rad")}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Button.Confirm,{fluid:!0,color:"red",icon:"trash",confirmIcon:"trash",content:"Flush System",disabled:!u,onClick:function(){return l("flush")}})})]}),(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Virus Food",children:(0,o.createComponentVNode)(2,a.ProgressBar,{minValue:0,maxValue:100,ranges:{good:[40,Infinity],average:[20,40],bad:[-Infinity,20]},value:m})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Radiation Level",children:(0,o.createComponentVNode)(2,a.ProgressBar,{minValue:0,maxValue:100,color:p>=50?"bad":C>=25?"average":"good",value:p,children:[(0,r.formatCommaNumber)(1e4*p)," \xb5Sv"]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Toxicity",children:(0,o.createComponentVNode)(2,a.ProgressBar,{minValue:0,maxValue:100,ranges:{bad:[50,Infinity],average:[25,50],good:[-Infinity,25]},value:h})})]})]}),(0,o.createComponentVNode)(2,a.Section,{title:V?"Vial":"Chemicals",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"eject",content:"Eject "+(V?"Vial":"Chemicals"),disabled:!N,onClick:function(){return l("ejectchem")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"virus",content:"Breed Virus",disabled:!V,onClick:function(){return l("virus")}})],4),children:N&&(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Volume",children:(0,o.createComponentVNode)(2,a.ProgressBar,{minValue:0,maxValue:f,value:b,children:[b,"/",f]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Breeding Environment",color:V?"good":"average",children:[g?V?"Suitable":"No hemolytic samples detected":"N/A",k?(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"CAUTION: Viral infection detected in blood sample."}):null]})]})})||(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"No chemicals inserted."})}),(0,o.createComponentVNode)(2,a.Section,{title:"Virus Dish",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"eject",content:"Eject Dish",disabled:!g,onClick:function(){return l("ejectdish")}}),children:g?v?(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Growth Density",children:(0,o.createComponentVNode)(2,a.ProgressBar,{minValue:0,maxValue:100,ranges:{good:[50,Infinity],average:[25,50],bad:[-Infinity,25]},value:C})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Infection Rate",children:B?L:"Unknown."})]}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"No virus detected."}):(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"No dish loaded."})})]})})}},19095:function(e,n,t){"use strict";n.__esModule=!0,n.DisposalBin=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.DisposalBin=function(e,n){var t,i,l=(0,r.useBackend)(n),d=l.act,s=l.data;return 2===s.mode?(t="good",i="Ready"):s.mode<=0?(t="bad",i="N/A"):1===s.mode?(t="average",i="Pressurizing"):(t="average",i="Idle"),(0,o.createComponentVNode)(2,a.Window,{width:300,height:250,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{children:[(0,o.createComponentVNode)(2,c.Box,{bold:!0,m:1,children:"Status"}),(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"State",color:t,children:i}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Pressure",children:(0,o.createComponentVNode)(2,c.ProgressBar,{ranges:{bad:[-Infinity,0],average:[0,99],good:[99,Infinity]},value:s.pressure,minValue:0,maxValue:100})})]}),(0,o.createComponentVNode)(2,c.Box,{bold:!0,m:1,children:"Controls"}),(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Handle",children:[(0,o.createComponentVNode)(2,c.Button,{icon:"toggle-off",disabled:s.isAI||s.panel_open,content:"Disengaged",selected:s.flushing?null:"selected",onClick:function(){return d("disengageHandle")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"toggle-on",disabled:s.isAI||s.panel_open,content:"Engaged",selected:s.flushing?"selected":null,onClick:function(){return d("engageHandle")}})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power",children:[(0,o.createComponentVNode)(2,c.Button,{icon:"toggle-off",disabled:-1===s.mode,content:"Off",selected:s.mode?null:"selected",onClick:function(){return d("pumpOff")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"toggle-on",disabled:-1===s.mode,content:"On",selected:s.mode?"selected":null,onClick:function(){return d("pumpOn")}})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Eject",children:(0,o.createComponentVNode)(2,c.Button,{icon:"sign-out-alt",disabled:s.isAI,content:"Eject Contents",onClick:function(){return d("eject")}})})]})]})})})}},29345:function(e,n,t){"use strict";n.__esModule=!0,n.DroneConsole=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.DroneConsole=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.drones,s=l.areas,u=l.selected_area,m=l.fabricator,p=l.fabPower;return(0,o.createComponentVNode)(2,a.Window,{width:600,height:350,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Drone Fabricator",buttons:(0,o.createComponentVNode)(2,c.Button,{disabled:!m,selected:p,icon:"power-off",content:p?"Enabled":"Disabled",onClick:function(){return i("toggle_fab")}}),children:m?(0,o.createComponentVNode)(2,c.Box,{color:"good",children:"Linked."}):(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:["Fabricator not detected.",(0,o.createComponentVNode)(2,c.Button,{icon:"sync",content:"Search for Fabricator",onClick:function(){return i("search_fab")}})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Request Drone",children:[(0,o.createComponentVNode)(2,c.Dropdown,{options:s?s.sort():null,selected:u,width:"100%",onSelected:function(e){return i("set_dcall_area",{area:e})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"share-square",content:"Send Ping",onClick:function(){return i("ping")}})]}),(0,o.createComponentVNode)(2,c.Section,{title:"Maintenance Units",children:d&&d.length?(0,o.createComponentVNode)(2,c.LabeledList,{children:d.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"sync",content:"Resync",onClick:function(){return i("resync",{ref:e.ref})}}),(0,o.createComponentVNode)(2,c.Button.Confirm,{icon:"exclamation-triangle",color:"red",content:"Shutdown",onClick:function(){return i("shutdown",{ref:e.ref})}})],4),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Location",children:e.loc}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Charge",children:[e.charge," / ",e.maxCharge]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Active",children:e.active?"Yes":"No"})]})},e.name)}))}):(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No drones detected."})})]})})}},84122:function(e,n,t){"use strict";n.__esModule=!0,n.EmbeddedController=void 0;var o=t(39812),r=(t(2497),t(41860),t(71494)),c=t(74814),a=t(85952),i=((0,t(88654).createLogger)("fuck"),{});n.EmbeddedController=function(e,n){var t=(0,r.useBackend)(n),c=(t.act,t.data.internalTemplateName),l=i[c];if(!l)throw Error("Unable to find Component for template name: "+c);return(0,o.createComponentVNode)(2,a.Window,{width:450,height:340,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,l)})})};var l=function(e,n){var t=e.bars;return(0,o.createComponentVNode)(2,c.Section,{title:"Status",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:t.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.label,children:(0,o.createComponentVNode)(2,c.ProgressBar,{color:e.color(e.value),minValue:e.minValue,maxValue:e.maxValue,value:e.value,children:e.textValue})},e.label)}))})})},d=function(e,n){var t=(0,r.useBackend)(n),a=t.data,i=t.act,l=!0;a.interior_status&&"open"===a.interior_status.state?l=!1:a.external_pressure&&a.chamber_pressure&&(l=!(Math.abs(a.external_pressure-a.chamber_pressure)>5));var d=!0;return a.exterior_status&&"open"===a.exterior_status.state?d=!1:a.internal_pressure&&a.chamber_pressure&&(d=!(Math.abs(a.internal_pressure-a.chamber_pressure)>5)),(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{disabled:a.airlock_disabled,icon:"arrow-left",content:"Cycle to Exterior",onClick:function(){return i("cycle_ext")}}),(0,o.createComponentVNode)(2,c.Button,{disabled:a.airlock_disabled,icon:"arrow-right",content:"Cycle to Interior",onClick:function(){return i("cycle_int")}})]}),(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button.Confirm,{disabled:a.airlock_disabled,color:l?"":"bad",icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",content:"Force Exterior Door",onClick:function(){return i("force_ext")}}),(0,o.createComponentVNode)(2,c.Button.Confirm,{disabled:a.airlock_disabled,color:d?"":"bad",icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",content:"Force Interior Door",onClick:function(){return i("force_int")}})]})],4)},s=function(e,n){var t=(0,r.useBackend)(n),a=t.data,i=(t.act,{docked:(0,o.createComponentVNode)(2,u),undocking:(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"EJECTING-STAND CLEAR!"}),undocked:(0,o.createComponentVNode)(2,c.Box,{color:"grey",children:"POD EJECTED"}),docking:(0,o.createComponentVNode)(2,c.Box,{color:"good",children:"INITIALIZING..."})}),l=(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"ERROR"});return"open"===a.exterior_status.state?l=(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"OPEN"}):"unlocked"===a.exterior_status.lock?l=(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"UNSECURED"}):"locked"===a.exterior_status.lock&&(l=(0,o.createComponentVNode)(2,c.Box,{color:"good",children:"SECURED"})),(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Escape Pod Status",children:i[a.docking_status]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Docking Hatch",children:l})]})})},u=function(e,n){var t=(0,r.useBackend)(n),a=t.data;t.act;return a.armed?(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"ARMED"}):(0,o.createComponentVNode)(2,c.Box,{color:"good",children:"SYSTEMS OK"})},m=function(e,n){var t=(0,r.useBackend)(n),a=t.data,i=t.act;return(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{disabled:!a.override_enabled,icon:"exclamation-triangle",content:"Force Exterior Door",color:"docked"!==a.docking_status?"bad":"",onClick:function(){return i("force_door")}}),(0,o.createComponentVNode)(2,c.Button,{selected:a.override_enabled,color:"docked"!==a.docking_status?"bad":"average",icon:"exclamation-triangle",content:"Override",onClick:function(){return i("toggle_override")}})]})},p=function(e,n){var t=(0,r.useBackend)(n),a=t.data,i=(t.act,{docked:(0,o.createComponentVNode)(2,c.Box,{color:"good",children:"DOCKED"}),docking:(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"DOCKING"}),undocking:(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"UNDOCKING"}),undocked:(0,o.createComponentVNode)(2,c.Box,{color:"grey",children:"NOT IN USE"})}[a.docking_status]);return a.override_enabled&&(i=(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:[a.docking_status.toUpperCase(),"-OVERRIDE ENABLED"]})),i};i.AirlockConsoleAdvanced=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,s=function(e){return e<80||e>120?"bad":e<95||e>110?"average":"good"},u=[{minValue:0,maxValue:202,value:i.external_pressure,label:"External Pressure",textValue:i.external_pressure+" kPa",color:s},{minValue:0,maxValue:202,value:i.chamber_pressure,label:"Chamber Pressure",textValue:i.chamber_pressure+" kPa",color:s},{minValue:0,maxValue:202,value:i.internal_pressure,label:"Internal Pressure",textValue:i.internal_pressure+" kPa",color:s}];return(0,o.createFragment)([(0,o.createComponentVNode)(2,l,{bars:u}),(0,o.createComponentVNode)(2,c.Section,{title:"Controls",children:[(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{icon:"sync",content:"Purge",onClick:function(){return a("purge")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"lock-open",content:"Secure",onClick:function(){return a("secure")}})]}),(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Button,{disabled:!i.processing,icon:"ban",color:"bad",content:"Abort",onClick:function(){return a("abort")}})})]})],4)};i.AirlockConsoleSimple=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,s=[{minValue:0,maxValue:202,value:i.chamber_pressure,label:"Chamber Pressure",textValue:i.chamber_pressure+" kPa",color:function(e){return e<80||e>120?"bad":e<95||e>110?"average":"good"}}];return(0,o.createFragment)([(0,o.createComponentVNode)(2,l,{bars:s}),(0,o.createComponentVNode)(2,c.Section,{title:"Controls",children:[(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Button,{disabled:!i.processing,icon:"ban",color:"bad",content:"Abort",onClick:function(){return a("abort")}})})]})],4)};i.AirlockConsolePhoron=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,s=[{minValue:0,maxValue:202,value:i.chamber_pressure,label:"Chamber Pressure",textValue:i.chamber_pressure+" kPa",color:function(e){return e<80||e>120?"bad":e<95||e>110?"average":"good"}},{minValue:0,maxValue:100,value:i.chamber_phoron,label:"Chamber Phoron",textValue:i.chamber_phoron+" mol",color:function(e){return e>5?"bad":e>.5?"average":"good"}}];return(0,o.createFragment)([(0,o.createComponentVNode)(2,l,{bars:s}),(0,o.createComponentVNode)(2,c.Section,{title:"Controls",children:[(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Button,{disabled:!i.processing,icon:"ban",color:"bad",content:"Abort",onClick:function(){return a("abort")}})})]})],4)};i.AirlockConsoleDocking=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,s=[{minValue:0,maxValue:202,value:i.chamber_pressure,label:"Chamber Pressure",textValue:i.chamber_pressure+" kPa",color:function(e){return e<80||e>120?"bad":e<95||e>110?"average":"good"}}];return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Dock",buttons:i.airlock_disabled||i.override_enabled?(0,o.createComponentVNode)(2,c.Button,{icon:"exclamation-triangle",color:i.override_enabled?"red":"",content:"Override",onClick:function(){return a("toggle_override")}}):null,children:(0,o.createComponentVNode)(2,p)}),(0,o.createComponentVNode)(2,l,{bars:s}),(0,o.createComponentVNode)(2,c.Section,{title:"Controls",children:[(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Button,{disabled:!i.processing,icon:"ban",color:"bad",content:"Abort",onClick:function(){return a("abort")}})})]})],4)};i.DockingConsoleSimple=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"ERROR"});return"open"===i.exterior_status.state?l=(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"OPEN"}):"unlocked"===i.exterior_status.lock?l=(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"UNSECURED"}):"locked"===i.exterior_status.lock&&(l=(0,o.createComponentVNode)(2,c.Box,{color:"good",children:"SECURED"})),(0,o.createComponentVNode)(2,c.Section,{title:"Status",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"exclamation-triangle",disabled:!i.override_enabled,content:"Force exterior door",onClick:function(){return a("force_door")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"exclamation-triangle",color:i.override_enabled?"red":"",content:"Override",onClick:function(){return a("toggle_override")}})],4),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Dock Status",children:(0,o.createComponentVNode)(2,p)}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Docking Hatch",children:l})]})})};i.DockingConsoleMulti=function(e,n){var t=(0,r.useBackend)(n).data;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Docking Status",children:(0,o.createComponentVNode)(2,p)}),(0,o.createComponentVNode)(2,c.Section,{title:"Airlocks",children:t.airlocks.length?(0,o.createComponentVNode)(2,c.LabeledList,{children:t.airlocks.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{color:e.override_enabled?"bad":"good",label:e.name,children:e.override_enabled?"OVERRIDE ENABLED":"STATUS OK"},e.name)}))}):(0,o.createComponentVNode)(2,c.Flex,{height:"100%",mt:"0.5em",children:(0,o.createComponentVNode)(2,c.Flex.Item,{grow:"1",align:"center",textAlign:"center",color:"bad",children:[(0,o.createComponentVNode)(2,c.Icon,{name:"door-closed",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),"No airlocks found."]})})})],4)};i.DoorAccessConsole=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l="open"===i.interior_status.state||"closed"===i.exterior_status.state,d="open"===i.exterior_status.state||"closed"===i.interior_status.state;return(0,o.createComponentVNode)(2,c.Section,{title:"Status",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:l?"arrow-left":"exclamation-triangle",content:l?"Cycle To Exterior":"Lock Exterior Door",onClick:function(){a(l?"cycle_ext_door":"force_ext")}}),(0,o.createComponentVNode)(2,c.Button,{icon:d?"arrow-right":"exclamation-triangle",content:d?"Cycle To Interior":"Lock Interior Door",onClick:function(){a(d?"cycle_int_door":"force_int")}})],0),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Exterior Door Status",children:"closed"===i.exterior_status.state?"Locked":"Open"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Interior Door Status",children:"closed"===i.interior_status.state?"Locked":"Open"})]})})};i.EscapePodConsole=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data;return(0,o.createFragment)([(0,o.createComponentVNode)(2,s),(0,o.createComponentVNode)(2,c.Section,{title:"Controls",children:[(0,o.createComponentVNode)(2,m),(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{icon:"exclamation-triangle",disabled:i.armed,color:i.armed?"bad":"average",content:"ARM",onClick:function(){return a("manual_arm")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"exclamation-triangle",disabled:!i.can_force,color:"bad",content:"MANUAL EJECT",onClick:function(){return a("force_launch")}})]})]})],4)};i.EscapePodBerthConsole=function(e,n){(0,r.useBackend)(n).data;return(0,o.createFragment)([(0,o.createComponentVNode)(2,s),(0,o.createComponentVNode)(2,c.Section,{title:"Controls",children:(0,o.createComponentVNode)(2,m)})],4)}},33777:function(e,n,t){"use strict";n.__esModule=!0,n.ExonetNode=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.ExonetNode=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.on,s=l.allowPDAs,u=l.allowCommunicators,m=l.allowNewscasters,p=l.logs;return(0,o.createComponentVNode)(2,a.Window,{width:400,height:400,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Status",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:d,content:"Power "+(d?"On":"Off"),onClick:function(){return i("toggle_power")}}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Incoming PDA Messages",children:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:s,content:s?"Open":"Closed",onClick:function(){return i("toggle_PDA_port")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Incoming Communicators",children:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:u,content:u?"Open":"Closed",onClick:function(){return i("toggle_communicator_port")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Incoming Newscaster Content",children:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:m,content:m?"Open":"Closed",onClick:function(){return i("toggle_newscaster_port")}})})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Logging",children:(0,o.createComponentVNode)(2,c.Flex,{wrap:"wrap",children:[p.map((function(e,n){return(0,o.createComponentVNode)(2,c.Flex.Item,{m:"2px",basis:"49%",grow:n%2,children:e},n)})),p&&0!==p.length?null:(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No logs found."})]})})]})})}},95481:function(e,n,t){"use strict";n.__esModule=!0,n.Materials=n.ExosuitFabricator=void 0;var o,r=t(39812),c=t(34380),a=t(64499),i=t(71494),l=t(58083),d=t(74814),s=t(85952),u=t(2497),m=t(41860);function p(e,n){var t;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(t=function(e,n){if(!e)return;if("string"==typeof e)return C(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return C(e,n)}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var o=0;return function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(t=e[Symbol.iterator]()).next.bind(t)}function C(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,o=new Array(n);tt?{color:2,deficit:e-t}:n>t?{color:1,deficit:e}:e+n>t?{color:1,deficit:e+n-t}:{color:0,deficit:0}},b=function(e,n,t){var o={textColor:0};return Object.keys(t.cost).forEach((function(r){o[r]=V(t.cost[r],n[r],e[r]),o[r].color>o.textColor&&(o.textColor=o[r].color)})),o};n.ExosuitFabricator=function(e,n){var t,o,c=(0,i.useBackend)(n),a=c.act,l=c.data,u=l.queue||[],m=(t=l.materials||[],o={},t.forEach((function(e){o[e.name]=e.amount})),o),p=function(e,n){var t={},o={},r={},c={};return n.forEach((function(n,a){c[a]=0,Object.keys(n.cost).forEach((function(i){t[i]=t[i]||0,r[i]=r[i]||0,o[i]=V(n.cost[i],t[i],e[i]),0!==o[i].color?c[a]1&&l0}));return 0===l.length?(0,r.createComponentVNode)(2,d.Box,{textAlign:"center",children:[(0,r.createComponentVNode)(2,d.Icon,{textAlign:"center",size:5,name:"inbox"}),(0,r.createVNode)(1,"br"),(0,r.createVNode)(1,"b",null,"No Materials Loaded.",16)]}):(0,r.createComponentVNode)(2,d.Flex,{wrap:"wrap",children:l.map((function(e){return(0,r.createComponentVNode)(2,d.Flex.Item,{width:"80px",children:[(0,r.createComponentVNode)(2,k,{name:e.name,amount:e.amount,formatsi:!0}),!a&&(0,r.createComponentVNode)(2,d.Box,{mt:1,style:{"text-align":"center"},children:(0,r.createComponentVNode)(2,f,{material:e})})]},e.name)||null}))})};n.Materials=g;var k=function(e,n){var t=e.name,o=e.amount,a=e.formatsi,i=e.formatmoney,s=e.color,p=e.style,C="0";return C=o<1&&o>0?(0,m.toFixed)(o,2):a?(0,l.formatSiUnit)(o,0):i?(0,l.formatMoney)(o):o,(0,r.createComponentVNode)(2,d.Flex,{direction:"column",align:"center",children:[(0,r.createComponentVNode)(2,d.Flex.Item,{children:(0,r.createComponentVNode)(2,d.Box,{className:(0,c.classes)(["sheetmaterials32x32",h[t]]),position:"relative",style:p,children:(0,r.createComponentVNode)(2,d.Tooltip,{position:"bottom",content:(0,u.toTitleCase)(t)})})}),(0,r.createComponentVNode)(2,d.Flex.Item,{children:(0,r.createComponentVNode)(2,d.Box,{textColor:s,style:{"text-align":"center"},children:C})})]})},v=function(e,n){var t=(0,i.useBackend)(n).data,o=t.partSets||[],c=t.buildableParts||{},a=(0,i.useSharedState)(n,"part_tab",o.length?c[0]:""),l=a[0],s=a[1];return(0,r.createComponentVNode)(2,d.Tabs,{vertical:!0,children:o.map((function(e){return!!c[e]&&(0,r.createComponentVNode)(2,d.Tabs.Tab,{selected:e===l,disabled:!c[e],onClick:function(){return s(e)},children:e},e)}))})},B=function(e,n){var t,o=(0,i.useBackend)(n).data,c=function(e){for(var n,t=p(e);!(n=t()).done;){var o=n.value;if(s[o])return o}return null},l=o.partSets||[],s=o.buildableParts||[],m=e.queueMaterials,C=e.materials,h=(0,i.useSharedState)(n,"part_tab",c(l)),N=h[0],V=h[1],f=(0,i.useSharedState)(n,"search_text",""),g=f[0],k=f[1];if(!N||!s[N]){var v=c(l);if(!v)return;V(v)}return g?(t=[],function(e,n){var t=[];if(e.length){var o=(0,u.createSearch)(e,(function(e){return(e.name||"")+(e.desc||"")+(e.searchMeta||"")}));return Object.keys(n).forEach((function(e){n[e].filter(o).forEach((function(e){t.push(e)}))})),t=(0,a.uniqBy)((function(e){return e.name}))(t)}}(g,s).forEach((function(e){e.format=b(C,m,e),t.push(e)}))):(t={Parts:[]},s[N].forEach((function(e){e.format=b(C,m,e),e.subCategory?(e.subCategory in t||(t[e.subCategory]=[]),t[e.subCategory].push(e)):t.Parts.push(e)}))),(0,r.createFragment)([(0,r.createComponentVNode)(2,d.Section,{children:(0,r.createComponentVNode)(2,d.Flex,{children:[(0,r.createComponentVNode)(2,d.Flex.Item,{mr:1,children:(0,r.createComponentVNode)(2,d.Icon,{name:"search"})}),(0,r.createComponentVNode)(2,d.Flex.Item,{grow:1,children:(0,r.createComponentVNode)(2,d.Input,{fluid:!0,placeholder:"Search for...",onInput:function(e,n){return k(n)}})})]})}),!!g&&(0,r.createComponentVNode)(2,L,{name:"Search Results",parts:t,forceShow:!0,placeholder:"No matching results..."})||Object.keys(t).map((function(e){return(0,r.createComponentVNode)(2,L,{name:e,parts:t[e]},e)}))],0)},L=function(e,n){var t=(0,i.useBackend)(n),o=t.act,c=t.data.buildingPart,a=e.parts,l=e.name,s=e.forceShow,u=e.placeholder,m=(0,i.useSharedState)(n,"display_mats",!1)[0];return(!!a.length||s)&&(0,r.createComponentVNode)(2,d.Section,{title:l,buttons:(0,r.createComponentVNode)(2,d.Button,{disabled:!a.length,color:"good",content:"Queue All",icon:"plus-circle",onClick:function(){return o("add_queue_set",{part_list:a.map((function(e){return e.id}))})}}),children:[!a.length&&u,a.map((function(e){return(0,r.createFragment)([(0,r.createComponentVNode)(2,d.Flex,{align:"center",children:[(0,r.createComponentVNode)(2,d.Flex.Item,{children:(0,r.createComponentVNode)(2,d.Button,{disabled:c||2===e.format.textColor,color:"good",height:"20px",mr:1,icon:"play",onClick:function(){return o("build_part",{id:e.id})}})}),(0,r.createComponentVNode)(2,d.Flex.Item,{children:(0,r.createComponentVNode)(2,d.Button,{color:"average",height:"20px",mr:1,icon:"plus-circle",onClick:function(){return o("add_queue_part",{id:e.id})}})}),(0,r.createComponentVNode)(2,d.Flex.Item,{children:(0,r.createComponentVNode)(2,d.Box,{inline:!0,textColor:N[e.format.textColor],children:e.name})}),(0,r.createComponentVNode)(2,d.Flex.Item,{grow:1}),(0,r.createComponentVNode)(2,d.Flex.Item,{children:(0,r.createComponentVNode)(2,d.Button,{icon:"question-circle",transparent:!0,height:"20px",tooltip:"Build Time: "+e.printTime+"s. "+(e.desc||""),tooltipPosition:"left"})})]}),m&&(0,r.createComponentVNode)(2,d.Flex,{mb:2,children:Object.keys(e.cost).map((function(n){return(0,r.createComponentVNode)(2,d.Flex.Item,{width:"50px",color:N[e.format[n].color],children:(0,r.createComponentVNode)(2,k,{formatmoney:!0,style:{transform:"scale(0.75) translate(0%, 10%)"},name:n,amount:e.cost[n]})},n)}))})],0,e.name)}))]})},_=function(e,n){var t=(0,i.useBackend)(n),o=t.act,c=t.data,a=c.isProcessingQueue,l=c.queue||[],s=e.queueMaterials,u=e.missingMaterials,m=e.textColors;return(0,r.createComponentVNode)(2,d.Flex,{height:"100%",width:"100%",direction:"column",children:[(0,r.createComponentVNode)(2,d.Flex.Item,{height:0,grow:1,children:(0,r.createComponentVNode)(2,d.Section,{height:"100%",title:"Queue",overflowY:"auto",buttons:(0,r.createFragment)([(0,r.createComponentVNode)(2,d.Button.Confirm,{disabled:!l.length,color:"bad",icon:"minus-circle",content:"Clear Queue",onClick:function(){return o("clear_queue")}}),!!a&&(0,r.createComponentVNode)(2,d.Button,{disabled:!l.length,content:"Stop",icon:"stop",onClick:function(){return o("stop_queue")}})||(0,r.createComponentVNode)(2,d.Button,{disabled:!l.length,content:"Build Queue",icon:"play",onClick:function(){return o("build_queue")}})],0),children:(0,r.createComponentVNode)(2,d.Flex,{direction:"column",height:"100%",children:[(0,r.createComponentVNode)(2,d.Flex.Item,{children:(0,r.createComponentVNode)(2,S)}),(0,r.createComponentVNode)(2,d.Flex.Item,{children:(0,r.createComponentVNode)(2,w,{textColors:m})})]})})}),!!l.length&&(0,r.createComponentVNode)(2,d.Flex.Item,{mt:1,children:(0,r.createComponentVNode)(2,d.Section,{title:"Material Cost",children:(0,r.createComponentVNode)(2,x,{queueMaterials:s,missingMaterials:u})})})]})},x=function(e,n){var t=e.queueMaterials,o=e.missingMaterials;return(0,r.createComponentVNode)(2,d.Flex,{wrap:"wrap",children:Object.keys(t).map((function(e){return(0,r.createComponentVNode)(2,d.Flex.Item,{width:"12%",children:[(0,r.createComponentVNode)(2,k,{formatmoney:!0,name:e,amount:t[e]}),!!o[e]&&(0,r.createComponentVNode)(2,d.Box,{textColor:"bad",style:{"text-align":"center"},children:(0,l.formatMoney)(o[e])})]},e)}))})},w=function(e,n){var t=(0,i.useBackend)(n),o=t.act,c=t.data,a=e.textColors,l=c.queue||[];return l.length?l.map((function(e,n){return(0,r.createComponentVNode)(2,d.Box,{children:(0,r.createComponentVNode)(2,d.Flex,{mb:.5,direction:"column",justify:"center",wrap:"wrap",height:"20px",inline:!0,children:[(0,r.createComponentVNode)(2,d.Flex.Item,{basis:"content",children:(0,r.createComponentVNode)(2,d.Button,{height:"20px",mr:1,icon:"minus-circle",color:"bad",onClick:function(){return o("del_queue_part",{index:n+1})}})}),(0,r.createComponentVNode)(2,d.Flex.Item,{children:(0,r.createComponentVNode)(2,d.Box,{inline:!0,textColor:N[a[n]],children:e.name})})]})},e.name)})):(0,r.createFragment)([(0,r.createTextVNode)("No parts in queue.")],4)},S=function(e,n){var t=(0,i.useBackend)(n).data,o=t.buildingPart,c=t.storedPart;if(c){var a=c.name;return(0,r.createComponentVNode)(2,d.Box,{children:(0,r.createComponentVNode)(2,d.ProgressBar,{minValue:0,maxValue:1,value:1,color:"average",children:(0,r.createComponentVNode)(2,d.Flex,{children:[(0,r.createComponentVNode)(2,d.Flex.Item,{children:a}),(0,r.createComponentVNode)(2,d.Flex.Item,{grow:1}),(0,r.createComponentVNode)(2,d.Flex.Item,{children:"Fabricator outlet obstructed..."})]})})})}if(o){var l=o.name,s=o.duration,u=o.printTime,m=Math.ceil(s/10);return(0,r.createComponentVNode)(2,d.Box,{children:(0,r.createComponentVNode)(2,d.ProgressBar,{minValue:0,maxValue:u,value:s,children:(0,r.createComponentVNode)(2,d.Flex,{children:[(0,r.createComponentVNode)(2,d.Flex.Item,{children:l}),(0,r.createComponentVNode)(2,d.Flex.Item,{grow:1}),(0,r.createComponentVNode)(2,d.Flex.Item,{children:m>=0&&m+"s"||"Dispensing..."})]})})})}}},95598:function(e,n,t){"use strict";n.__esModule=!0,n.Farmbot=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.Farmbot=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.on,s=l.locked,u=l.tank,m=l.tankVolume,p=l.tankMaxVolume,C=l.waters_trays,h=l.refills_water,N=l.uproots_weeds,V=l.replaces_nutriment;l.collects_produce,l.removes_dead;return(0,o.createComponentVNode)(2,a.Window,{width:450,height:540,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Automatic Hydroponic Assistance Unit v2.0",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:d,onClick:function(){return i("power")},children:d?"On":"Off"}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Water Tank",children:u&&(0,o.createComponentVNode)(2,c.ProgressBar,{value:m,maxValue:p,children:[m," / ",p]})||(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No water tank detected."})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Behavior Controls",color:s?"good":"bad",children:s?"Locked":"Unlocked"})]})}),!s&&(0,o.createComponentVNode)(2,c.Section,{title:"Behavior Controls",children:[(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Watering Controls",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Water plants",children:(0,o.createComponentVNode)(2,c.Button,{icon:C?"toggle-on":"toggle-off",selected:C,onClick:function(){return i("water")},children:C?"Yes":"No"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Refill watertank",children:(0,o.createComponentVNode)(2,c.Button,{icon:h?"toggle-on":"toggle-off",selected:h,onClick:function(){return i("refill")},children:h?"Yes":"No"})})]})}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Weeding controls",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Weed plants",children:(0,o.createComponentVNode)(2,c.Button,{icon:N?"toggle-on":"toggle-off",selected:N,onClick:function(){return i("weed")},children:N?"Yes":"No"})})})}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Nutriment controls",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Replace fertilizer",children:(0,o.createComponentVNode)(2,c.Button,{icon:V?"toggle-on":"toggle-off",selected:V,onClick:function(){return i("replacenutri")},children:V?"Yes":"No"})})})})]})||null]})})}},17569:function(e,n,t){"use strict";n.__esModule=!0,n.FaxContent=n.Fax=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=t(28117),l=t(1192);n.Fax=function(e,n){return(0,r.useBackend)(n).data.authenticated?(0,o.createComponentVNode)(2,a.Window,{width:600,height:250,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,s),(0,o.createComponentVNode)(2,i.LoginInfo),(0,o.createComponentVNode)(2,d)]})}):(0,o.createComponentVNode)(2,a.Window,{width:600,height:250,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,s),(0,o.createComponentVNode)(2,l.LoginScreen)]})})};var d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.bossName,d=i.copyItem,s=i.cooldown,u=i.destination;return(0,o.createComponentVNode)(2,c.Section,{children:[!!s&&(0,o.createComponentVNode)(2,c.NoticeBox,{info:!0,children:"Transmitter arrays realigning. Please stand by."}),(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Network",children:[l," Quantum Entanglement Network"]})}),d&&(0,o.createComponentVNode)(2,c.Box,{mt:1,children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Currently Sending",children:d}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Sending To",children:(0,o.createComponentVNode)(2,c.Button,{icon:"map-marker-alt",content:u,onClick:function(){return a("dept")}})})]}),(0,o.createComponentVNode)(2,c.Button,{icon:"share-square",onClick:function(){return a("send")},content:"Send",fluid:!0})]})||(0,o.createComponentVNode)(2,c.Box,{mt:1,children:"Please insert item to transmit."})]})};n.FaxContent=d;var s=function(e,n){var t=(0,r.useBackend)(n),a=t.act;return t.data.copyItem?(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"eject",onClick:function(){return a("remove")},content:"Remove Item"})}):null}},58087:function(e,n,t){"use strict";n.__esModule=!0,n.FileCabinet=void 0;var o=t(39812),r=t(64499),c=t(71494),a=t(74814),i=t(85952);n.FileCabinet=function(e,n){var t=(0,c.useBackend)(n),l=t.act,d=t.data.contents,s=(0,r.sortBy)((function(e){return e.name}))(d||[]);return(0,o.createComponentVNode)(2,i.Window,{width:350,height:300,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.Section,{children:s.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"file",content:e.name,onClick:function(){return l("retrieve",{ref:e.ref})}},e.ref)}))})})})}},21902:function(e,n,t){"use strict";n.__esModule=!0,n.Floorbot=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.Floorbot=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.on,s=l.open,u=l.locked,m=l.vocal,p=l.amount,C=l.possible_bmode,h=l.improvefloors,N=l.eattiles,V=l.maketiles,b=l.bmode;return(0,o.createComponentVNode)(2,a.Window,{width:390,height:310,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Automatic Station Floor Repairer v2.0",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:d,onClick:function(){return i("start")},children:d?"On":"Off"}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Tiles Left",children:(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:p})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Maintenance Panel",color:s?"bad":"good",children:s?"Open":"Closed"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Behavior Controls",color:u?"good":"bad",children:u?"Locked":"Unlocked"})]})}),!u&&(0,o.createComponentVNode)(2,c.Section,{title:"Behavior Controls",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Speaker",children:(0,o.createComponentVNode)(2,c.Button,{icon:m?"toggle-on":"toggle-off",selected:m,onClick:function(){return i("vocal")},children:m?"On":"Off"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Improves Floors",children:(0,o.createComponentVNode)(2,c.Button,{icon:h?"toggle-on":"toggle-off",selected:h,onClick:function(){return i("improve")},children:h?"On":"Off"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Finds Tiles",children:(0,o.createComponentVNode)(2,c.Button,{icon:N?"toggle-on":"toggle-off",selected:N,onClick:function(){return i("tiles")},children:N?"On":"Off"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Makes Metal Sheets into Tiles",children:(0,o.createComponentVNode)(2,c.Button,{icon:V?"toggle-on":"toggle-off",selected:V,onClick:function(){return i("make")},children:V?"On":"Off"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Bridge Mode",children:(0,o.createComponentVNode)(2,c.Dropdown,{over:!0,width:"100%",placeholder:"Disabled",selected:b,options:C,onSelected:function(e){return i("bridgemode",{dir:e})}})})]})})||null]})})}},309:function(e,n,t){"use strict";n.__esModule=!0,n.GasPump=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.GasPump=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.on,s=l.pressure_set,u=l.last_flow_rate,m=l.last_power_draw,p=l.max_power_draw;return(0,o.createComponentVNode)(2,a.Window,{width:470,height:290,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{title:"Status",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Flow Rate",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:u/10})," L/s"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Load",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:m,minValue:0,maxValue:p,color:m=100?u="Running":!d&&s>0&&(u="DISCHARGING"),(0,o.createComponentVNode)(2,a.Window,{width:500,height:400,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{title:"Status",buttons:(0,o.createComponentVNode)(2,c.Button.Confirm,{icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",color:"red",content:"Toggle Breaker",confirmContent:d?"This will disable gravity!":"This will enable gravity!",onClick:function(){return i("gentoggle")}}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Breaker Setting",children:d?"Generator Enabled":"Generator Disabled"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Charge Mode",children:["Generator ",u]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Charge Status",children:[s,"%"]})]})})})})}},95075:function(e,n,t){"use strict";n.__esModule=!0,n.GuestPass=void 0;var o=t(39812),r=t(64499),c=t(71494),a=t(74814),i=t(85952);n.GuestPass=function(e,n){var t=(0,c.useBackend)(n),l=t.act,d=t.data,s=(d.access,d.area),u=d.giver,m=d.giveName,p=d.reason,C=d.duration,h=d.mode,N=d.log,V=d.uid;return(0,o.createComponentVNode)(2,i.Window,{width:500,height:520,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:1===h&&(0,o.createComponentVNode)(2,a.Section,{title:"Activity Log",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"scroll",content:"Activity Log",selected:!0,onClick:function(){return l("mode",{mode:0})}}),children:[(0,o.createComponentVNode)(2,a.Button,{icon:"print",content:"Print",onClick:function(){return l("print")},fluid:!0,mb:1}),(0,o.createComponentVNode)(2,a.Section,{level:2,title:"Logs",children:N.length&&N.map((function(e){return(0,o.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:e}},e)}))||(0,o.createComponentVNode)(2,a.Box,{children:"No logs."})})]})||(0,o.createComponentVNode)(2,a.Section,{title:"Guest pass terminal #"+V,buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"scroll",content:"Activity Log",onClick:function(){return l("mode",{mode:1})}}),children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Issuing ID",children:(0,o.createComponentVNode)(2,a.Button,{content:u||"Insert ID",onClick:function(){return l("id")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Issued To",children:(0,o.createComponentVNode)(2,a.Button,{content:m,onClick:function(){return l("giv_name")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Reason",children:(0,o.createComponentVNode)(2,a.Button,{content:p,onClick:function(){return l("reason")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Duration (minutes)",children:(0,o.createComponentVNode)(2,a.Button,{content:C,onClick:function(){return l("duration")}})})]}),(0,o.createComponentVNode)(2,a.Button.Confirm,{icon:"check",fluid:!0,content:"Issue Pass",onClick:function(){return l("issue")}}),(0,o.createComponentVNode)(2,a.Section,{title:"Access",level:2,children:(0,r.sortBy)((function(e){return e.area_name}))(s).map((function(e){return(0,o.createComponentVNode)(2,a.Button.Checkbox,{checked:e.on,content:e.area_name,onClick:function(){return l("access",{access:e.area})}},e.area)}))})]})})})}},31875:function(e,n,t){"use strict";n.__esModule=!0,n.GyrotronControlContent=n.GyrotronControl=void 0;var o=t(39812),r=t(71494),c=t(85952),a=t(74814);n.GyrotronControl=function(e,n){return(0,o.createComponentVNode)(2,c.Window,{width:627,height:700,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,i)})})};var i=function(e,n){var t=(0,r.useBackend)(n),c=t.act,i=t.data.gyros;return(0,o.createComponentVNode)(2,a.Section,{title:"Gyrotrons",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"pencil-alt",content:"Set Tag",onClick:function(){return c("set_tag")}}),children:(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Name"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Position"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Status"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Fire Delay"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Strength"})]}),i.map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:[e.x,", ",e.y,", ",e.z]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",content:e.active?"Online":"Offline",selected:e.active,disabled:!e.deployed,onClick:function(){return c("toggle_active",{gyro:e.ref})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Knob,{forcedInputWidth:"60px",size:1.25,color:!!e.active&&"yellow",value:e.fire_delay,unit:"decisecond(s)",minValue:1,maxValue:60,stepPixelSize:1,onDrag:function(n,t){return c("set_rate",{gyro:e.ref,rate:t})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Knob,{forcedInputWidth:"60px",size:1.25,color:!!e.active&&"yellow",value:e.strength,unit:"penta-dakw",minValue:1,maxValue:50,stepPixelSize:1,onDrag:function(n,t){return c("set_str",{gyro:e.ref,str:t})}})})]},e.name)}))]})})};n.GyrotronControlContent=i},7908:function(e,n,t){"use strict";n.__esModule=!0,n.Holodeck=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.Holodeck=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.supportedPrograms,s=l.restrictedPrograms,u=l.currentProgram,m=l.isSilicon,p=l.safetyDisabled,C=l.emagged,h=l.gravity,N=d;return p&&(N=N.concat(s)),(0,o.createComponentVNode)(2,a.Window,{width:400,height:610,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Programs",children:N.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{color:-1!==s.indexOf(e)?"bad":null,icon:"eye",content:e,selected:u===e,fluid:!0,onClick:function(){return i("program",{program:e})}},e)}))}),!!m&&(0,o.createComponentVNode)(2,c.Section,{title:"Override",children:(0,o.createComponentVNode)(2,c.Button,{icon:"exclamation-triangle",fluid:!0,disabled:C,color:p?"good":"bad",onClick:function(){return i("AIoverride")},children:[!!C&&"Error, unable to control. ",p?"Enable Safeties":"Disable Safeties"]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Controls",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Safeties",children:p?(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"DISABLED"}):(0,o.createComponentVNode)(2,c.Box,{color:"good",children:"ENABLED"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Gravity",children:(0,o.createComponentVNode)(2,c.Button,{icon:"user-astronaut",selected:h,onClick:function(){return i("gravity")},children:h?"Enabled":"Disabled"})})]})})]})})}},12676:function(e,n,t){"use strict";n.__esModule=!0,n.ICAssembly=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(85952),l=(t(2497),t(58083));n.ICAssembly=function(e,n){var t=(0,c.useBackend)(n),s=(t.act,t.data),u=s.total_parts,m=s.max_components,p=s.total_complexity,C=s.max_complexity,h=s.battery_charge,N=s.battery_max,V=s.net_power,b=s.unremovable_circuits,f=s.removable_circuits;return(0,o.createComponentVNode)(2,i.Window,{width:600,height:380,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{title:"Status",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Space in Assembly",children:(0,o.createComponentVNode)(2,a.ProgressBar,{ranges:{good:[0,.25],average:[.5,.75],bad:[.75,1]},value:u/m,maxValue:1,children:[u," / ",m," (",(0,r.round)(u/m*100,1),"%)"]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Complexity",children:(0,o.createComponentVNode)(2,a.ProgressBar,{ranges:{good:[0,.25],average:[.5,.75],bad:[.75,1]},value:p/C,maxValue:1,children:[p," / ",C," (",(0,r.round)(p/C*100,1),"%)"]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Cell Charge",children:h&&(0,o.createComponentVNode)(2,a.ProgressBar,{ranges:{bad:[0,.25],average:[.5,.75],good:[.75,1]},value:h/N,maxValue:1,children:[h," / ",N," (",(0,r.round)(h/N*100,1),"%)"]})||(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"No cell detected."})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Net Energy",children:0===V?"0 W/s":(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:V,format:function(e){return"-"+(0,l.formatPower)(Math.abs(e))+"/s"}})})]})}),b.length&&(0,o.createComponentVNode)(2,d,{title:"Built-in Components",circuits:b})||null,f.length&&(0,o.createComponentVNode)(2,d,{title:"Removable Components",circuits:f})||null]})})};var d=function(e,n){var t=(0,c.useBackend)(n).act,r=e.title,i=e.circuits;return(0,o.createComponentVNode)(2,a.Section,{title:r,children:(0,o.createComponentVNode)(2,a.LabeledList,{children:i.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name,children:[(0,o.createComponentVNode)(2,a.Button,{icon:"eye",onClick:function(){return t("open_circuit",{ref:e.ref})},children:"View"}),(0,o.createComponentVNode)(2,a.Button,{icon:"eye",onClick:function(){return t("rename_circuit",{ref:e.ref})},children:"Rename"}),(0,o.createComponentVNode)(2,a.Button,{icon:"eye",onClick:function(){return t("scan_circuit",{ref:e.ref})},children:"Debugger Scan"}),(0,o.createComponentVNode)(2,a.Button,{icon:"eye",onClick:function(){return t("remove_circuit",{ref:e.ref})},children:"Remove"}),(0,o.createComponentVNode)(2,a.Button,{icon:"eye",onClick:function(){return t("bottom_circuit",{ref:e.ref})},children:"Move to Bottom"})]},e.ref)}))})})}},42394:function(e,n,t){"use strict";n.__esModule=!0,n.ICCircuit=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=t(2497),l=t(58083);n.ICCircuit=function(e,n){var t=(0,r.useBackend)(n),i=t.act,u=t.data,m=(u.name,u.desc),p=u.displayed_name,C=(u.removable,u.complexity),h=u.power_draw_idle,N=u.power_draw_per_use,V=u.extended_desc,b=u.inputs,f=u.outputs,g=u.activators;return(0,o.createComponentVNode)(2,a.Window,{width:600,height:400,resizable:!0,title:p,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Stats",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("rename")},children:"Rename"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("scan")},children:"Scan with Device"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("remove")},children:"Remove"})],4),children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Complexity",children:C}),h&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power Draw (Idle)",children:(0,l.formatPower)(h)})||null,N&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power Draw (Active)",children:(0,l.formatPower)(N)})||null]}),V]}),(0,o.createComponentVNode)(2,c.Section,{title:"Circuit",children:[(0,o.createComponentVNode)(2,c.Flex,{textAlign:"center",spacing:1,children:[b.length&&(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.Section,{title:"Inputs",children:(0,o.createComponentVNode)(2,d,{list:b})})})||null,(0,o.createComponentVNode)(2,c.Flex.Item,{basis:b.length&&f.length?"33%":b.length||f.length?"45%":"100%",children:(0,o.createComponentVNode)(2,c.Section,{title:p,mb:1,children:(0,o.createComponentVNode)(2,c.Box,{children:m})})}),f.length&&(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.Section,{title:"Outputs",children:(0,o.createComponentVNode)(2,d,{list:f})})})||null]}),(0,o.createComponentVNode)(2,c.Section,{title:"Triggers",children:g.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name,children:[(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("pin_name",{pin:e.ref})},children:e.pulse_out?"":""}),(0,o.createComponentVNode)(2,s,{pin:e})]},e.name)}))})]})]})})};var d=function(e,n){var t=(0,r.useBackend)(n).act;return e.list.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return t("pin_name",{pin:e.ref})},children:[(0,i.decodeHtmlEntities)(e.type),": ",e.name]}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return t("pin_data",{pin:e.ref})},children:e.data}),(0,o.createComponentVNode)(2,s,{pin:e})]},e.ref)}))},s=function(e,n){var t=(0,r.useBackend)(n).act,a=e.pin;return a.linked.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{inline:!0,children:[(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return t("pin_unwire",{pin:a.ref,link:e.ref})},children:e.name}),"@\xa0",(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return t("examine",{ref:e.holder_ref})},children:e.holder_name})]},e.ref)}))}},81039:function(e,n,t){"use strict";n.__esModule=!0,n.ICDetailer=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=t(2497);n.ICDetailer=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data,s=d.detail_color,u=d.color_list;return(0,o.createComponentVNode)(2,a.Window,{width:420,height:254,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{children:Object.keys(u).map((function(e,n){return(0,o.createComponentVNode)(2,c.Button,{ml:0,mr:0,mb:-.4,mt:0,tooltip:(0,i.toTitleCase)(e),tooltipPosition:n%6==5?"left":"right",height:"64px",width:"64px",onClick:function(){return l("change_color",{color:e})},style:u[e]===s?{border:"4px solid black","border-radius":0}:{"border-radius":0},backgroundColor:u[e]},e)}))})})})}},21687:function(e,n,t){"use strict";n.__esModule=!0,n.ICPrinter=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=t(64499);t(88654);n.ICPrinter=function(e,n){var t=(0,r.useBackend)(n),i=(t.act,t.data),l=i.metal,s=i.max_metal,u=i.metal_per_sheet,m=(i.debug,i.upgraded),p=i.can_clone;i.assembly_to_clone,i.categories;return(0,o.createComponentVNode)(2,a.Window,{width:600,height:630,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Status",children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Metal",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:l,maxValue:s,children:[l/u," / ",s/u," sheets"]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Circuits Available",children:m?"Advanced":"Regular"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Assembly Cloning",children:p?"Available":"Unavailable"})]}),(0,o.createComponentVNode)(2,c.Box,{mt:1,children:"Note: A red component name means that the printer must be upgraded to create that component."})]}),(0,o.createComponentVNode)(2,d)]})})};var l=function(e,n){return!!e.can_build&&!(e.cost>n.metal)},d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,d=t.data,s=d.categories,u=(d.debug,(0,r.useSharedState)(n,"categoryTarget",null)),m=u[0],p=u[1],C=(0,i.filter)((function(e){return e.name===m}))(s)[0];return(0,o.createComponentVNode)(2,c.Section,{title:"Circuits",children:(0,o.createComponentVNode)(2,c.Stack,{fill:!0,children:[(0,o.createComponentVNode)(2,c.Stack.Item,{mr:2,children:(0,o.createComponentVNode)(2,c.Tabs,{vertical:!0,children:(0,i.sortBy)((function(e){return e.name}))(s).map((function(e){return(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:m===e.name,onClick:function(){return p(e.name)},children:e.name},e.name)}))})}),(0,o.createComponentVNode)(2,c.Stack.Item,{children:C&&(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,i.sortBy)((function(e){return e.name}))(C.items).map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name,labelColor:e.can_build?"good":"bad",buttons:(0,o.createComponentVNode)(2,c.Button,{disabled:!l(e,d),icon:"print",onClick:function(){return a("build",{build:e.path})},children:"Print"}),children:e.desc},e.name)}))})})||"No category selected."})]})})}},48522:function(e,n,t){"use strict";n.__esModule=!0,n.IDCard=void 0;var o=t(39812),r=t(74814),c=t(71494),a=t(85952),i=t(14959);n.IDCard=function(e,n){var t=(0,c.useBackend)(n).data,l=t.registered_name,d=t.sex,s=t.age,u=t.assignment,m=t.fingerprint_hash,p=t.blood_type,C=t.dna_hash,h=t.photo_front,N=[{name:"Sex",val:d},{name:"Age",val:s},{name:"Blood Type",val:p},{name:"Fingerprint",val:m},{name:"DNA Hash",val:C}];return(0,o.createComponentVNode)(2,a.Window,{width:470,height:250,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,r.Section,{children:[(0,o.createComponentVNode)(2,r.Flex,{children:[(0,o.createComponentVNode)(2,r.Flex.Item,{basis:"25%",textAlign:"left",children:(0,o.createComponentVNode)(2,r.Box,{inline:!0,style:{width:"101px",height:"120px",overflow:"hidden",outline:"2px solid #4972a1"},children:h&&(0,o.createVNode)(1,"img",null,null,1,{src:h.substr(1,h.length-1),style:{width:"300px","margin-left":"-94px","-ms-interpolation-mode":"nearest-neighbor"}})||(0,o.createComponentVNode)(2,r.Icon,{name:"user",size:8,ml:1.5,mt:2.5})})}),(0,o.createComponentVNode)(2,r.Flex.Item,{basis:0,grow:1,children:(0,o.createComponentVNode)(2,r.LabeledList,{children:N.map((function(e){return(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:e.name,children:e.val},e.name)}))})})]}),(0,o.createComponentVNode)(2,r.Flex,{className:"IDCard__NamePlate",align:"center",justify:"space-around",children:[(0,o.createComponentVNode)(2,r.Flex.Item,{children:(0,o.createComponentVNode)(2,r.Box,{textAlign:"center",children:l})}),(0,o.createComponentVNode)(2,r.Flex.Item,{children:(0,o.createComponentVNode)(2,r.Box,{textAlign:"center",children:(0,o.createComponentVNode)(2,i.RankIcon,{rank:u})})}),(0,o.createComponentVNode)(2,r.Flex.Item,{children:(0,o.createComponentVNode)(2,r.Box,{textAlign:"center",children:u})})]})]})})})}},76952:function(e,n,t){"use strict";n.__esModule=!0,n.IdentificationComputerRegions=n.IdentificationComputerAccessModification=n.IdentificationComputerPrinting=n.IdentificationComputerContent=n.IdentificationComputer=void 0;var o=t(39812),r=t(64499),c=t(71494),a=t(74814),i=t(85952),l=t(2497),d=(t(76270),t(22902));n.IdentificationComputer=function(e,n){var t=(0,c.useBackend)(n);t.act,t.data;return(0,o.createComponentVNode)(2,i.Window,{width:600,height:700,children:(0,o.createComponentVNode)(2,i.Window.Content,{resizable:!0,children:(0,o.createComponentVNode)(2,s)})})};var s=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=e.ntos,s=i.mode,p=i.has_modify,C=i.printing,h=(0,o.createComponentVNode)(2,m,{ntos:l});return l&&!i.have_id_slot?h=(0,o.createComponentVNode)(2,d.CrewManifestContent):C?h=(0,o.createComponentVNode)(2,u):1===s&&(h=(0,o.createComponentVNode)(2,d.CrewManifestContent)),(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Tabs,{children:[(!l||!!i.have_id_slot)&&(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:"home",selected:0===s,onClick:function(){return r("mode",{mode_target:0})},children:"Access Modification"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:"home",selected:1===s,onClick:function(){return r("mode",{mode_target:1})},children:"Crew Manifest"}),!l||!!i.have_printer&&(0,o.createComponentVNode)(2,a.Tabs.Tab,{float:"right",icon:"print",onClick:function(){return r("print")},disabled:!s&&!p,color:"",children:"Print"})]}),h],0)};n.IdentificationComputerContent=s;var u=function(e,n){return(0,o.createComponentVNode)(2,a.Section,{title:"Printing",children:"Please wait..."})};n.IdentificationComputerPrinting=u;var m=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,d=e.ntos,s=i.station_name,u=i.target_name,m=i.target_owner,C=i.scan_name,h=i.authenticated,N=i.has_modify,V=i.account_number,b=i.centcom_access,f=i.all_centcom_access,g=(i.regions,i.id_rank),k=i.departments;return(0,o.createComponentVNode)(2,a.Section,{title:"Access Modification",children:[!h&&(0,o.createComponentVNode)(2,a.Box,{italic:!0,mb:1,children:"Please insert the IDs into the terminal to proceed."}),(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Target Identitity",children:(0,o.createComponentVNode)(2,a.Button,{icon:"eject",fluid:!0,content:u,onClick:function(){return r("modify")}})}),!d&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Authorized Identitity",children:(0,o.createComponentVNode)(2,a.Button,{icon:"eject",fluid:!0,content:C,onClick:function(){return r("scan")}})})]}),!!h&&!!N&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{title:"Details",level:2,children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Registered Name",children:(0,o.createComponentVNode)(2,a.Input,{value:m,fluid:!0,onInput:function(e,n){return r("reg",{reg:n})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Account Number",children:(0,o.createComponentVNode)(2,a.Input,{value:V,fluid:!0,onInput:function(e,n){return r("account",{account:n})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Dismissals",children:(0,o.createComponentVNode)(2,a.Button.Confirm,{color:"bad",icon:"exclamation-triangle",confirmIcon:"fire",fluid:!0,content:"Dismiss "+m,confirmContent:"You are dismissing "+m+", confirm?",onClick:function(){return r("terminate")}})})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Assignment",level:2,children:(0,o.createComponentVNode)(2,a.Table,{children:[k.map((function(e){return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{header:!0,verticalAlign:"middle",children:e.department_name}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.jobs.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{selected:e.job===g,onClick:function(){return r("assign",{assign_target:e.job})},children:(0,l.decodeHtmlEntities)(e.display_name)},e.job)}))})]}),(0,o.createComponentVNode)(2,a.Box,{mt:-1,children:"\xa0"}),(0,o.createTextVNode)(" ")],0,e.department_name)})),(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{header:!0,verticalAlign:"middle",children:"Special"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return r("assign",{assign_target:"Custom"})},children:"Custom"})})]})]})}),!!b&&(0,o.createComponentVNode)(2,a.Section,{title:"Central Command",level:2,children:f.map((function(e){return(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,selected:e.allowed,onClick:function(){return r("access",{access_target:e.ref,allowed:e.allowed})},children:(0,l.decodeHtmlEntities)(e.desc)})},e.ref)}))})||(0,o.createComponentVNode)(2,a.Section,{title:s,level:2,children:(0,o.createComponentVNode)(2,p,{actName:"access"})})],0)]})};n.IdentificationComputerAccessModification=m;var p=function(e,n){var t=(0,c.useBackend)(n),i=t.act,d=t.data,s=e.actName,u=d.regions;return(0,o.createComponentVNode)(2,a.Flex,{wrap:"wrap",spacing:1,children:(0,r.sortBy)((function(e){return e.name}))(u).map((function(e){return(0,o.createComponentVNode)(2,a.Flex.Item,{mb:1,basis:"content",grow:1,children:(0,o.createComponentVNode)(2,a.Section,{title:e.name,height:"100%",children:(0,r.sortBy)((function(e){return e.desc}))(e.accesses).map((function(e){return(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,selected:e.allowed,onClick:function(){return i(s,{access_target:e.ref,allowed:e.allowed})},children:(0,l.decodeHtmlEntities)(e.desc)})},e.ref)}))})},e.name)}))})};n.IdentificationComputerRegions=p},44570:function(e,n,t){"use strict";n.__esModule=!0,n.Loader=n.InputModal=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(29708),l=t(85952);(0,t(88654).createLogger)("inputmodal");n.InputModal=function(e,n){var t,r,s,u=(0,c.useBackend)(n),m=u.act,p=u.data,C=p.title,h=p.message,N=p.initial,V=p.input_type,b=p.timeout,f=(0,c.useLocalState)(n,"curValue",N),g=f[0],k=f[1],v=function(e){if(e.keyCode===i.KEY_ESCAPE)return e.preventDefault(),void m("cancel")};switch(V){case"text":case"num":r=325,t=Math.max(150,h.length),s=(0,o.createComponentVNode)(2,a.Input,{value:N,width:"100%",autoFocus:!0,autoSelect:!0,onKeyDown:v,onChange:function(e,n){k(n)},onEnter:function(e,n){m("choose",{choice:n})}});break;case"message":r=450,t=350,s=(0,o.createComponentVNode)(2,a.TextArea,{value:N,width:"100%",height:"100%",autoFocus:!0,dontUseTabForIndent:!0,onKeyDown:v,onChange:function(e,n){k(n)}})}return(0,o.createComponentVNode)(2,l.Window,{title:C,theme:"abstract",width:r,height:t,children:[b!==undefined&&(0,o.createComponentVNode)(2,d,{value:b}),(0,o.createComponentVNode)(2,l.Window.Content,{children:(0,o.createComponentVNode)(2,a.Stack,{fill:!0,vertical:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Section,{fill:!0,scrollable:!0,className:"InputModal__Section",title:h,tabIndex:0,children:s})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Stack,{textAlign:"center",children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,basis:0,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"good",lineHeight:2,content:"Confirm",onClick:function(){return m("choose",{choice:g})}})}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,basis:0,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"bad",lineHeight:2,content:"Cancel",onClick:function(){return m("cancel")}})})]})})]})})]})};var d=function(e){var n=e.value;return(0,o.createVNode)(1,"div","InputModal__Loader",(0,o.createComponentVNode)(2,a.Box,{className:"InputModal__LoaderProgress",style:{width:100*(0,r.clamp01)(n)+"%"}}),2)};n.Loader=d},53541:function(e,n,t){"use strict";n.__esModule=!0,n.InventoryPanel=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.InventoryPanel=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.slots,s=l.internalsValid;return(0,o.createComponentVNode)(2,a.Window,{width:400,height:200,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:d&&d.length&&d.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name,children:(0,o.createComponentVNode)(2,c.Button,{mb:-1,icon:e.item?"hand-paper":"gift",onClick:function(){return i(e.act)},children:e.item||"Nothing"})},e.name)}))})}),s&&(0,o.createComponentVNode)(2,c.Section,{title:"Actions",children:s&&(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"lungs",onClick:function(){return i("internals")},children:"Set Internals"})||null})||null]})})}},46638:function(e,n,t){"use strict";n.__esModule=!0,n.InventoryPanelHuman=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.InventoryPanelHuman=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.slots,s=l.specialSlots,u=(l.internals,l.internalsValid),m=l.sensors,p=l.handcuffed,C=l.handcuffedParams,h=l.legcuffed,N=l.legcuffedParams,V=l.accessory;return(0,o.createComponentVNode)(2,a.Window,{width:400,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[d&&d.length&&d.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name,children:(0,o.createComponentVNode)(2,c.Button,{mb:-1,icon:e.item?"hand-paper":"gift",onClick:function(){return i(e.act,e.params)},children:e.item||"Nothing"})},e.name)})),(0,o.createComponentVNode)(2,c.LabeledList.Divider),s&&s.length&&s.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name,children:(0,o.createComponentVNode)(2,c.Button,{mb:-1,icon:e.item?"hand-paper":"gift",onClick:function(){return i(e.act,e.params)},children:e.item||"Nothing"})},e.name)}))]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Actions",children:[(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"running",onClick:function(){return i("targetSlot",{slot:"splints"})},children:"Remove Splints"}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"hand-paper",onClick:function(){return i("targetSlot",{slot:"pockets"})},children:"Empty Pockets"}),u&&(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"lungs",onClick:function(){return i("targetSlot",{slot:"internals"})},children:"Set Internals"})||null,m&&(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"book-medical",onClick:function(){return i("targetSlot",{slot:"sensors"})},children:"Set Sensors"})||null,p&&(0,o.createComponentVNode)(2,c.Button,{fluid:!0,color:"bad",icon:"unlink",onClick:function(){return i("targetSlot",C)},children:"Handcuffed"})||null,h&&(0,o.createComponentVNode)(2,c.Button,{fluid:!0,color:"bad",icon:"unlink",onClick:function(){return i("targetSlot",N)},children:"Legcuffed"})||null,V&&(0,o.createComponentVNode)(2,c.Button,{fluid:!0,color:"bad",icon:"unlink",onClick:function(){return i("targetSlot",{slot:"tie"})},children:"Remove Accessory"})||null]})]})})}},45e3:function(e,n,t){"use strict";n.__esModule=!0,n.IsolationCentrifuge=void 0;var o=t(39812),r=(t(41860),t(58083),t(71494)),c=t(74814),a=t(85952);n.IsolationCentrifuge=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.busy,s=l.antibodies,u=l.pathogens,m=l.is_antibody_sample,p=l.sample_inserted,C=(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No vial detected."});return p&&(C=s||u?(0,o.createFragment)([s?(0,o.createComponentVNode)(2,c.Section,{title:"Antibodies",children:s}):null,u.length?(0,o.createComponentVNode)(2,c.Section,{title:"Pathogens",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:u.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name,children:e.spread_type},e.name)}))})}):null],0):(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No antibodies or viral strains detected."})),(0,o.createComponentVNode)(2,a.Window,{width:400,height:500,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:d?(0,o.createComponentVNode)(2,c.Section,{title:"The Centrifuge is currently busy.",color:"bad",children:(0,o.createVNode)(1,"center",null,(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:d}),2)}):(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:m?"Antibody Sample":"Blood Sample",children:[(0,o.createComponentVNode)(2,c.Flex,{spacing:1,mb:1,children:[(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"print",content:"Print",disabled:!s&&!u.length,onClick:function(){return i("print")}})}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"eject",content:"Eject Vial",disabled:!p,onClick:function(){return i("sample")}})})]}),C]}),s&&!m||u.length?(0,o.createComponentVNode)(2,c.Section,{title:"Controls",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[s&&!m?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Isolate Antibodies",children:(0,o.createComponentVNode)(2,c.Button,{icon:"pen",content:s,onClick:function(){return i("antibody")}})}):null,u.length?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Isolate Strain",children:u.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{icon:"pen",content:e.name,onClick:function(){return i("isolate",{isolate:e.reference})}},e.name)}))}):null]})}):null],0)})})}},83994:function(e,n,t){"use strict";n.__esModule=!0,n.JanitorCart=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.JanitorCart=function(e,n){var t=(0,r.useBackend)(n),i=t.act,d=t.data,s=d.mybag,u=d.mybucket,m=d.mymop,p=d.myspray,C=d.myreplacer,h=d.signs;d.icons;return(0,o.createComponentVNode)(2,a.Window,{width:210,height:180,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Button,{width:"64px",height:"64px",position:"relative",tooltip:s||"Garbage Bag Slot",tooltipPosition:"bottom-end",color:s?"grey":"transparent",style:{border:s?null:"2px solid grey"},onClick:function(){return i("bag")},children:(0,o.createComponentVNode)(2,l,{iconkey:"mybag"})}),(0,o.createComponentVNode)(2,c.Button,{width:"64px",height:"64px",position:"relative",tooltip:u||"Bucket Slot",tooltipPosition:"bottom",color:u?"grey":"transparent",style:{border:u?null:"2px solid grey"},onClick:function(){return i("bucket")},children:(0,o.createComponentVNode)(2,l,{iconkey:"mybucket"})}),(0,o.createComponentVNode)(2,c.Button,{width:"64px",height:"64px",position:"relative",tooltip:m||"Mop Slot",tooltipPosition:"bottom-end",color:m?"grey":"transparent",style:{border:m?null:"2px solid grey"},onClick:function(){return i("mop")},children:(0,o.createComponentVNode)(2,l,{iconkey:"mymop"})}),(0,o.createComponentVNode)(2,c.Button,{width:"64px",height:"64px",position:"relative",tooltip:p||"Spray Slot",tooltipPosition:"top-end",color:p?"grey":"transparent",style:{border:p?null:"2px solid grey"},onClick:function(){return i("spray")},children:(0,o.createComponentVNode)(2,l,{iconkey:"myspray"})}),(0,o.createComponentVNode)(2,c.Button,{width:"64px",height:"64px",position:"relative",tooltip:C||"Light Replacer Slot",tooltipPosition:"top",color:C?"grey":"transparent",style:{border:C?null:"2px solid grey"},onClick:function(){return i("replacer")},children:(0,o.createComponentVNode)(2,l,{iconkey:"myreplacer"})}),(0,o.createComponentVNode)(2,c.Button,{width:"64px",height:"64px",position:"relative",tooltip:h||"Signs Slot",tooltipPosition:"top-start",color:h?"grey":"transparent",style:{border:h?null:"2px solid grey"},onClick:function(){return i("sign")},children:(0,o.createComponentVNode)(2,l,{iconkey:"signs"})})]})})};var i={mybag:"trash",mybucket:"fill",mymop:"broom",myspray:"spray-can",myreplacer:"lightbulb",signs:"sign"},l=function(e,n){var t=(0,r.useBackend)(n).data,a=e.iconkey,l=t.icons;return a in l?(0,o.createVNode)(1,"img",null,null,1,{src:l[a].substr(1,l[a].length-1),style:{position:"absolute",left:0,right:0,top:0,bottom:0,width:"64px",height:"64px","-ms-interpolation-mode":"nearest-neighbor"}}):(0,o.createComponentVNode)(2,c.Icon,{style:{position:"absolute",left:"4px",right:0,top:"20px",bottom:0,width:"64px",height:"64px"},fontSize:2,name:i[a]})}},68741:function(e,n,t){"use strict";n.__esModule=!0,n.Jukebox=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(85952);n.Jukebox=function(e,n){var t=(0,c.useBackend)(n),l=t.act,d=t.data,s=d.playing,u=d.loop_mode,m=d.volume,p=d.current_track_ref,C=d.current_track,h=d.current_genre,N=d.percent,V=d.tracks,b=V.length&&V.reduce((function(e,n){var t=n.genre||"Uncategorized";return e[t]||(e[t]=[]),e[t].push(n),e}),{}),f=s&&(h||"Uncategorized");return(0,o.createComponentVNode)(2,i.Window,{width:450,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{title:"Currently Playing",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Title",children:s&&C&&(0,o.createComponentVNode)(2,a.Box,{children:[C.title," by ",C.artist||"Unkown"]})||(0,o.createComponentVNode)(2,a.Box,{children:"Stopped"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Controls",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"play",disabled:s,onClick:function(){return l("play")},children:"Play"}),(0,o.createComponentVNode)(2,a.Button,{icon:"stop",disabled:!s,onClick:function(){return l("stop")},children:"Stop"})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Loop Mode",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"play",onClick:function(){return l("loopmode",{loopmode:1})},selected:1===u,children:"Next"}),(0,o.createComponentVNode)(2,a.Button,{icon:"random",onClick:function(){return l("loopmode",{loopmode:2})},selected:2===u,children:"Shuffle"}),(0,o.createComponentVNode)(2,a.Button,{icon:"redo",onClick:function(){return l("loopmode",{loopmode:3})},selected:3===u,children:"Repeat"}),(0,o.createComponentVNode)(2,a.Button,{icon:"step-forward",onClick:function(){return l("loopmode",{loopmode:4})},selected:4===u,children:"Once"})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Progress",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:N,maxValue:1,color:"good"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Volume",children:(0,o.createComponentVNode)(2,a.Slider,{minValue:0,step:1,value:100*m,maxValue:100,ranges:{good:[75,Infinity],average:[25,75],bad:[0,25]},format:function(e){return(0,r.round)(e,1)+"%"},onChange:function(e,n){return l("volume",{val:(0,r.round)(n/100,2)})}})})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Available Tracks",children:V.length&&Object.keys(b).sort().map((function(e){return(0,o.createComponentVNode)(2,a.Collapsible,{title:e,color:f===e?"green":"default",child_mt:0,children:(0,o.createVNode)(1,"div",null,b[e].map((function(e){return(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"play",selected:p===e.ref,onClick:function(){return l("change_track",{change_track:e.ref})},children:e.title},e.ref)})),0,{style:{"margin-left":"1em"}})},e)}))||(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Error: No songs loaded."})})]})})}},13204:function(e,n,t){"use strict";n.__esModule=!0,n.LawManager=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.LawManager=function(e,n){var t=(0,r.useBackend)(n),l=(t.act,t.data.isSlaved);return(0,o.createComponentVNode)(2,a.Window,{width:800,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[l&&(0,o.createComponentVNode)(2,c.NoticeBox,{info:!0,children:["Law-synced to ",l]})||null,(0,o.createComponentVNode)(2,i)]})})};var i=function(e,n){var t=(0,r.useSharedState)(n,"lawsTabIndex",0),a=t[0],i=t[1];return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Tabs,{children:[(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:0===a,onClick:function(){return i(0)},children:"Law Management"}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:1===a,onClick:function(){return i(1)},children:"Law Sets"})]}),0===a&&(0,o.createComponentVNode)(2,l)||null,1===a&&(0,o.createComponentVNode)(2,s)||null],0)},l=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.ion_law_nr,s=i.ion_law,u=i.zeroth_law,m=i.inherent_law,p=i.supplied_law,C=i.supplied_law_position,h=i.zeroth_laws,N=i.has_zeroth_laws,V=i.ion_laws,b=i.has_ion_laws,f=i.inherent_laws,g=i.has_inherent_laws,k=i.supplied_laws,v=i.has_supplied_laws,B=i.isAI,L=i.isMalf,_=i.isAdmin,x=i.channel,w=i.channels,S=h.map((function(e){return e.zero=!0,e})).concat(f);return(0,o.createComponentVNode)(2,c.Section,{children:[b&&(0,o.createComponentVNode)(2,d,{laws:V,title:l+" Laws:",mt:-2})||null,(N||g)&&(0,o.createComponentVNode)(2,d,{laws:S,title:"Inherent Laws",mt:-2})||null,v&&(0,o.createComponentVNode)(2,d,{laws:k,title:"Supplied Laws",mt:-2})||null,(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Controls",mt:-2,children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Statement Channel",children:w.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{content:e.channel,selected:x===e.channel,onClick:function(){return a("law_channel",{law_channel:e.channel})}},e.channel)}))}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"State Laws",children:(0,o.createComponentVNode)(2,c.Button,{icon:"volume-up",onClick:function(){return a("state_laws")},children:"State Laws"})}),B&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Law Notification",children:(0,o.createComponentVNode)(2,c.Button,{icon:"exclamation",onClick:function(){return a("notify_laws")},children:"Notify"})})||null]})}),L&&(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Add Laws",mt:-2,children:(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:"Type"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Law"}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:"Index"}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:"Add"})]}),_&&!N&&(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:"Zero"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Input,{value:u,fluid:!0,onChange:function(e,n){return a("change_zeroth_law",{val:n})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"N/A"}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,c.Button,{icon:"plus",onClick:function(){return a("add_zeroth_law")},children:"Add"})})]})||null,(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:"Ion"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Input,{value:s,fluid:!0,onChange:function(e,n){return a("change_ion_law",{val:n})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"N/A"}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,c.Button,{icon:"plus",onClick:function(){return a("add_ion_law")},children:"Add"})})]}),(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Inherent"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Input,{value:m,fluid:!0,onChange:function(e,n){return a("change_inherent_law",{val:n})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"N/A"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"plus",onClick:function(){return a("add_inherent_law")},children:"Add"})})]}),(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Supplied"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Input,{value:p,fluid:!0,onChange:function(e,n){return a("change_supplied_law",{val:n})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"pen",onClick:function(){return a("change_supplied_law_position")},children:C})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"plus",onClick:function(){return a("add_supplied_law")},children:"Add"})})]})]})})||null]})},d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.isMalf,d=i.isAdmin,s=e.laws,u=e.title,m=e.noButtons,p=function(e,n){if(null==e)return{};var t,o,r={},c=Object.keys(e);for(o=0;o=0||(r[t]=e[t]);return r}(e,["laws","title","noButtons"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,c.Section,Object.assign({level:2,title:u},p,{children:(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:"Index"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Law"}),!m&&(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:"State"})||null,l&&!m&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:"Edit"}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:"Delete"})],4)||null]}),s.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:[e.index,"."]}),(0,o.createComponentVNode)(2,c.Table.Cell,{color:e.zero?"bad":null,children:e.law}),!m&&(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"volume-up",selected:e.state,onClick:function(){return a("state_law",{ref:e.ref,state_law:!e.state})},children:e.state?"Yes":"No"})})||null,l&&!m&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,c.Button,{disabled:e.zero&&!d,icon:"pen",onClick:function(){return a("edit_law",{edit_law:e.ref})},children:"Edit"})}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,c.Button,{disabled:e.zero&&!d,color:"bad",icon:"trash",onClick:function(){return a("delete_law",{delete_law:e.ref})},children:"Delete"})})],4)||null]},e.index)}))]})})))},s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.isMalf,s=i.law_sets;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.NoticeBox,{children:"Remember: Stating laws other than those currently loaded may be grounds for decommissioning! - NanoTrasen"}),s.length&&s.map((function(e){return(0,o.createComponentVNode)(2,c.Section,{title:e.name,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{disabled:!l,icon:"sync",onClick:function(){return a("transfer_laws",{transfer_laws:e.ref})},children:"Load Laws"}),(0,o.createComponentVNode)(2,c.Button,{icon:"volume-up",onClick:function(){return a("state_law_set",{state_law_set:e.ref})},children:"State Laws"})],4),children:[e.laws.has_ion_laws&&(0,o.createComponentVNode)(2,d,{noButtons:!0,laws:e.laws.ion_laws,title:e.laws.ion_law_nr+" Laws:"})||null,(e.laws.has_zeroth_laws||e.laws.has_inherent_laws)&&(0,o.createComponentVNode)(2,d,{noButtons:!0,laws:e.laws.zeroth_laws.concat(e.laws.inherent_laws),title:e.header})||null,e.laws.has_supplied_laws&&(0,o.createComponentVNode)(2,d,{noButtons:!0,laws:e.laws.supplied_laws,title:"Supplied Laws"})||null]},e.name)}))||null],0)}},58802:function(e,n,t){"use strict";n.__esModule=!0,n.Loader=n.ListInput=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(29708),l=t(85952),d=0;n.ListInput=function(e,n){var t=(0,c.useBackend)(n),r=t.act,u=t.data,m=u.title,p=u.message,C=u.buttons,h=u.timeout,N=u.initial,V=(0,c.useLocalState)(n,"search_bar",!1),b=V[0],f=V[1],g=(0,c.useLocalState)(n,"displayed_array",C),k=g[0],v=g[1],B=(0,c.useLocalState)(n,"search_array",[]),L=B[0],_=B[1],x=(0,c.useLocalState)(n,"search_index",0),w=x[0],S=x[1],I=(0,c.useLocalState)(n,"last_char_code",null),y=I[0],T=I[1],A=(0,c.useLocalState)(n,"selected_button",N||C[0]),P=A[0],M=A[1];return(0,o.createComponentVNode)(2,l.Window,{title:m,theme:"abstract",width:325,height:325,children:[h!==undefined&&(0,o.createComponentVNode)(2,s,{value:h}),(0,o.createComponentVNode)(2,l.Window.Content,{children:(0,o.createComponentVNode)(2,a.Stack,{fill:!0,vertical:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Section,{fill:!0,scrollable:!0,autoFocus:!0,className:"ListInput__Section",title:p,tabIndex:0,onKeyDown:function(e){if(e.preventDefault(),!(d>performance.now())){if(d=performance.now()+125,e.keyCode===i.KEY_HOME||e.keyCode===i.KEY_END){var n=e.keyCode===i.KEY_HOME?0:C.length-1;return M(C[n]),T(null),void document.getElementById(C[n]).focus()}if(e.keyCode===i.KEY_UP||e.keyCode===i.KEY_DOWN){var t=1;e.keyCode===i.KEY_UP&&(t=-1);for(var o=0;o=C.length&&(o=0),M(C[o]),T(null),void document.getElementById(C[o]).focus()}if(e.keyCode!==i.KEY_SPACE&&e.keyCode!==i.KEY_ENTER)if(e.keyCode!==i.KEY_ESCAPE){var c=String.fromCharCode(e.keyCode).toLowerCase();if(c){var a;if(c===y&&L.length>0){var l=w+1;l0&&(_(s),S(0),a=s[0])}a&&(T(c),M(a),document.getElementById(a).focus())}}else r("cancel");else r("choose",{choice:P})}},buttons:(0,o.createComponentVNode)(2,a.Button,{compact:!0,icon:"search",color:"transparent",selected:b,tooltip:"Search Bar",tooltipPosition:"left",onClick:function(){f(!b),v(C)}}),children:k.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"transparent",id:e,selected:P===e,onClick:function(){P===e?r("choose",{choice:e}):M(e),T(null)},children:e},e)}))})}),b&&(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Input,{fluid:!0,onInput:function(e,n){return v(C.filter((function(e){return-1!==e.toLowerCase().search(n.toLowerCase())})))}})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Stack,{textAlign:"center",children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,basis:0,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"good",lineHeight:2,content:"Confirm",disabled:null===P,onClick:function(){return r("choose",{choice:P})}})}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,basis:0,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"bad",lineHeight:2,content:"Cancel",onClick:function(){return r("cancel")}})})]})})]})})]})};var s=function(e){var n=e.value;return(0,o.createVNode)(1,"div","ListInput__Loader",(0,o.createComponentVNode)(2,a.Box,{className:"ListInput__LoaderProgress",style:{width:100*(0,r.clamp01)(n)+"%"}}),2)};n.Loader=s},36104:function(e,n,t){"use strict";n.__esModule=!0,n.LookingGlass=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.LookingGlass=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.supportedPrograms,s=l.currentProgram,u=l.immersion,m=l.gravity,p=Math.min(180+23*d.length,600);return(0,o.createComponentVNode)(2,a.Window,{width:300,height:p,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Programs",children:d.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"eye",selected:e===s,onClick:function(){return i("program",{program:e})},children:e},e)}))}),(0,o.createComponentVNode)(2,c.Section,{title:"Controls",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Gravity",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"user-astronaut",selected:m,onClick:function(){return i("gravity")},children:m?"Enabled":"Disabled"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Full Immersion",children:(0,o.createComponentVNode)(2,c.Button,{mt:-1,fluid:!0,icon:"eye",selected:u,onClick:function(){return i("immersion")},children:u?"Enabled":"Disabled"})})]})})]})})}},74714:function(e,n,t){"use strict";n.__esModule=!0,n.MechaControlConsole=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=t(2497);n.MechaControlConsole=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data,s=d.beacons,u=d.stored_data;return(0,o.createComponentVNode)(2,a.Window,{width:600,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[u.length&&(0,o.createComponentVNode)(2,c.Modal,{children:(0,o.createComponentVNode)(2,c.Section,{height:"400px",style:{"overflow-y":"auto"},title:"Log",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"window-close",onClick:function(){return l("clear_log")}}),children:u.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Box,{color:"label",children:["(",e.time,") (",e.year,")"]}),(0,o.createComponentVNode)(2,c.Box,{children:(0,i.decodeHtmlEntities)(e.message)})]},e.time)}))})})||null,s.length&&s.map((function(e){return(0,o.createComponentVNode)(2,c.Section,{title:e.name,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"comment",onClick:function(){return l("send_message",{mt:e.ref})},children:"Message"}),(0,o.createComponentVNode)(2,c.Button,{icon:"eye",onClick:function(){return l("get_log",{mt:e.ref})},children:"View Log"}),(0,o.createComponentVNode)(2,c.Button.Confirm,{color:"red",content:"EMP",icon:"bomb",onClick:function(){return l("shock",{mt:e.ref})}})],4),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Health",children:(0,o.createComponentVNode)(2,c.ProgressBar,{ranges:{good:[.75*e.maxHealth,Infinity],average:[.5*e.maxHealth,.75*e.maxHealth],bad:[-Infinity,.5*e.maxHealth]},value:e.health,maxValue:e.maxHealth})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Cell Charge",children:e.cell&&(0,o.createComponentVNode)(2,c.ProgressBar,{ranges:{good:[.75*e.cellMaxCharge,Infinity],average:[.5*e.cellMaxCharge,.75*e.cellMaxCharge],bad:[-Infinity,.5*e.cellMaxCharge]},value:e.cellCharge,maxValue:e.cellMaxCharge})||(0,o.createComponentVNode)(2,c.NoticeBox,{children:"No Cell Installed"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Air Tank",children:[e.airtank,"kPa"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Pilot",children:e.pilot||"Unoccupied"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Location",children:(0,i.toTitleCase)(e.location)||"Unknown"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Active Equipment",children:e.active||"None"}),e.cargoMax&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Cargo Space",children:(0,o.createComponentVNode)(2,c.ProgressBar,{ranges:{bad:[.75*e.cargoMax,Infinity],average:[.5*e.cargoMax,.75*e.cargoMax],good:[-Infinity,.5*e.cargoMax]},value:e.cargoUsed,maxValue:e.cargoMax})})||null]})},e.name)}))||(0,o.createComponentVNode)(2,c.NoticeBox,{children:"No mecha beacons found."})]})})}},17888:function(e,n,t){"use strict";n.__esModule=!0,n.Medbot=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.Medbot=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.on,s=l.open,u=l.beaker,m=l.beaker_total,p=l.beaker_max,C=l.locked,h=l.heal_threshold,N=l.heal_threshold_max,V=l.injection_amount_min,b=l.injection_amount,f=l.injection_amount_max,g=l.use_beaker,k=l.declare_treatment,v=l.vocal;return(0,o.createComponentVNode)(2,a.Window,{width:400,height:600,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Automatic Medical Unit v2.0",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:d,onClick:function(){return i("power")},children:d?"On":"Off"}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Maintenance Panel",color:s?"bad":"good",children:s?"Open":"Closed"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Beaker",buttons:(0,o.createComponentVNode)(2,c.Button,{disabled:!u,icon:"eject",onClick:function(){return i("eject")},children:"Eject"}),children:u&&(0,o.createComponentVNode)(2,c.ProgressBar,{value:m,maxValue:p,children:[m," / ",p]})||(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No beaker loaded."})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Behavior Controls",color:C?"good":"bad",children:C?"Locked":"Unlocked"})]})}),!C&&(0,o.createComponentVNode)(2,c.Section,{title:"Behavioral Controls",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Healing Threshold",children:(0,o.createComponentVNode)(2,c.NumberInput,{fluid:!0,minValue:0,maxValue:N,value:h,onDrag:function(e,n){return i("adj_threshold",{val:n})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Injection Amount",children:(0,o.createComponentVNode)(2,c.NumberInput,{fluid:!0,minValue:V,maxValue:f,value:b,onDrag:function(e,n){return i("adj_inject",{val:n})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Reagent Source",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:g?"toggle-on":"toggle-off",selected:g,onClick:function(){return i("use_beaker")},children:g?"Loaded Beaker (When available)":"Internal Synthesizer"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Treatment Report",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:k?"toggle-on":"toggle-off",selected:k,onClick:function(){return i("declaretreatment")},children:k?"On":"Off"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Speaker",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:v?"toggle-on":"toggle-off",selected:v,onClick:function(){return i("togglevoice")},children:v?"On":"Off"})})]})})||null]})})}},37610:function(e,n,t){"use strict";n.__esModule=!0,n.MedicalRecords=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(16007),i=t(85952),l=t(28117),d=t(1192),s=t(36355),u=(t(2497),function(e,n){(0,a.modalOpen)(e,"edit",{field:n.edit,value:n.value})});n.MedicalRecords=function(e,n){var t,u=(0,r.useBackend)(n).data,h=u.authenticated,N=u.screen;return h?(2===N?t=(0,o.createComponentVNode)(2,m):3===N?t=(0,o.createComponentVNode)(2,p):4===N?t=(0,o.createComponentVNode)(2,C):5===N?t=(0,o.createComponentVNode)(2,V):6===N&&(t=(0,o.createComponentVNode)(2,b)),(0,o.createComponentVNode)(2,i.Window,{width:800,height:380,resizable:!0,children:[(0,o.createComponentVNode)(2,a.ComplexModal,{maxHeight:"100%",maxWidth:"80%"}),(0,o.createComponentVNode)(2,i.Window.Content,{className:"Layout__content--flexColumn",children:[(0,o.createComponentVNode)(2,l.LoginInfo),(0,o.createComponentVNode)(2,s.TemporaryNotice),(0,o.createComponentVNode)(2,f),(0,o.createComponentVNode)(2,c.Section,{height:"calc(100% - 5rem)",flexGrow:"1",children:t})]})]})):(0,o.createComponentVNode)(2,i.Window,{width:800,height:380,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,d.LoginScreen)})})};var m=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.records;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Input,{fluid:!0,placeholder:"Search by Name, DNA, or ID",onChange:function(e,n){return a("search",{t1:n})}}),(0,o.createComponentVNode)(2,c.Box,{mt:"0.5rem",children:i.map((function(e,n){return(0,o.createComponentVNode)(2,c.Button,{icon:"user",mb:"0.5rem",content:e.id+": "+e.name,onClick:function(){return a("d_rec",{d_rec:e.ref})}},n)}))})],4)},p=function(e,n){var t=(0,r.useBackend)(n).act;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"download",content:"Backup to Disk",disabled:!0}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Button,{icon:"upload",content:"Upload from Disk",my:"0.5rem",disabled:!0}),(0,o.createTextVNode)(" "),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Button.Confirm,{icon:"trash",content:"Delete All Medical Records",onClick:function(){return t("del_all")}})],4)},C=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.medical,d=i.printing;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"General Data",level:2,mt:"-6px",children:(0,o.createComponentVNode)(2,h)}),(0,o.createComponentVNode)(2,c.Section,{title:"Medical Data",level:2,children:(0,o.createComponentVNode)(2,N)}),(0,o.createComponentVNode)(2,c.Section,{title:"Actions",level:2,children:[(0,o.createComponentVNode)(2,c.Button.Confirm,{icon:"trash",disabled:!!l.empty,content:"Delete Medical Record",color:"bad",onClick:function(){return a("del_r")}}),(0,o.createComponentVNode)(2,c.Button,{icon:d?"spinner":"print",disabled:d,iconSpin:!!d,content:"Print Entry",ml:"0.5rem",onClick:function(){return a("print_p")}}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-left",content:"Back",mt:"0.5rem",onClick:function(){return a("screen",{screen:2})}})]})],4)},h=function(e,n){var t=(0,r.useBackend)(n).data.general;return t&&t.fields?(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Box,{width:"50%",float:"left",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:t.fields.map((function(e,t){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.field,children:[(0,o.createComponentVNode)(2,c.Box,{height:"20px",display:"inline-block",preserveWhitespace:!0,children:e.value}),!!e.edit&&(0,o.createComponentVNode)(2,c.Button,{icon:"pen",ml:"0.5rem",onClick:function(){return u(n,e)}})]},t)}))})}),(0,o.createComponentVNode)(2,c.Box,{width:"50%",float:"right",textAlign:"right",children:!!t.has_photos&&t.photos.map((function(e,n){return(0,o.createComponentVNode)(2,c.Box,{display:"inline-block",textAlign:"center",color:"label",children:[(0,o.createVNode)(1,"img",null,null,1,{src:e.substr(1,e.length-1),style:{width:"96px","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createVNode)(1,"br"),"Photo #",n+1]},n)}))})],4):(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"General records lost!"})},N=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data.medical;return l&&l.fields?(0,o.createFragment)([(0,o.createComponentVNode)(2,c.LabeledList,{children:l.fields.map((function(e,t){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.field,preserveWhitespace:!0,children:[e.value,(0,o.createComponentVNode)(2,c.Button,{icon:"pen",ml:"0.5rem",mb:e.line_break?"1rem":"initial",onClick:function(){return u(n,e)}})]},t)}))}),(0,o.createComponentVNode)(2,c.Section,{title:"Comments/Log",level:2,children:[0===l.comments.length?(0,o.createComponentVNode)(2,c.Box,{color:"label",children:"No comments found."}):l.comments.map((function(e,n){return(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Box,{color:"label",inline:!0,children:e.header}),(0,o.createVNode)(1,"br"),e.text,(0,o.createComponentVNode)(2,c.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){return i("del_c",{del_c:n+1})}})]},n)})),(0,o.createComponentVNode)(2,c.Button,{icon:"comment-medical",content:"Add Entry",color:"good",mt:"0.5rem",mb:"0",onClick:function(){return(0,a.modalOpen)(n,"add_c")}})]})],4):(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:["Medical records lost!",(0,o.createComponentVNode)(2,c.Button,{icon:"pen",content:"New Record",ml:"0.5rem",onClick:function(){return i("new")}})]})},V=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.virus;return i.sort((function(e,n){return e.name>n.name?1:-1})),i.map((function(e,n){return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"flask",content:e.name,mb:"0.5rem",onClick:function(){return a("vir",{vir:e.D})}}),(0,o.createVNode)(1,"br")],4,n)}))},b=function(e,n){var t=(0,r.useBackend)(n).data.medbots;return 0===t.length?(0,o.createComponentVNode)(2,c.Box,{color:"label",children:"There are no Medbots."}):t.map((function(e,n){return(0,o.createComponentVNode)(2,c.Collapsible,{open:!0,title:e.name,children:(0,o.createComponentVNode)(2,c.Box,{px:"0.5rem",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Location",children:[e.area||"Unknown"," (",e.x,", ",e.y,")"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Status",children:e.on?(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Box,{color:"good",children:"Online"}),(0,o.createComponentVNode)(2,c.Box,{mt:"0.5rem",children:e.use_beaker?"Reservoir: "+e.total_volume+"/"+e.maximum_volume:"Using internal synthesizer."})],4):(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"Offline"})})]})})},n)}))},f=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.screen;return(0,o.createComponentVNode)(2,c.Tabs,{children:[(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:2===i,onClick:function(){return a("screen",{screen:2})},children:[(0,o.createComponentVNode)(2,c.Icon,{name:"list"}),"List Records"]}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:5===i,onClick:function(){return a("screen",{screen:5})},children:[(0,o.createComponentVNode)(2,c.Icon,{name:"database"}),"Virus Database"]}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:6===i,onClick:function(){return a("screen",{screen:6})},children:[(0,o.createComponentVNode)(2,c.Icon,{name:"plus-square"}),"Medbot Tracking"]}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:3===i,onClick:function(){return a("screen",{screen:3})},children:[(0,o.createComponentVNode)(2,c.Icon,{name:"wrench"}),"Record Maintenance"]})]})};(0,a.modalRegisterBodyOverride)("virus",(function(e,n){var t=(0,r.useBackend)(n).act,a=e.args;return(0,o.createComponentVNode)(2,c.Section,{level:2,m:"-1rem",title:a.name||"Virus",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"times",color:"red",onClick:function(){return t("modal_close")}}),children:(0,o.createComponentVNode)(2,c.Box,{mx:"0.5rem",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Spread",children:[a.spread_text," Transmission"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Possible cure",children:a.antigen}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Rate of Progression",children:a.rate}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Antibiotic Resistance",children:[a.resistance,"%"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Species Affected",children:a.species}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Symptoms",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:a.symptoms.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.stage+". "+e.name,children:[(0,o.createComponentVNode)(2,c.Box,{inline:!0,color:"label",children:"Strength:"})," ",e.strength,"\xa0",(0,o.createComponentVNode)(2,c.Box,{inline:!0,color:"label",children:"Aggressiveness:"})," ",e.aggressiveness]},e.stage)}))})})]})})})}))},287:function(e,n,t){"use strict";n.__esModule=!0,n.MessageMonitor=void 0;var o=t(39812),r=(t(41860),t(2497)),c=t(71494),a=t(74814),i=t(85952),l=t(36355),d=t(67861);n.MessageMonitor=function(e,n){var t,r=(0,c.useBackend)(n),d=(r.act,r.data),p=d.auth,C=d.linkedServer,h=(d.message,d.hacking),N=d.emag;return t=h||N?(0,o.createComponentVNode)(2,s):p?C?(0,o.createComponentVNode)(2,m):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"ERROR"}):(0,o.createComponentVNode)(2,u),(0,o.createComponentVNode)(2,i.Window,{width:670,height:450,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,l.TemporaryNotice),t]})})};var s=function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data.isMalfAI);return(0,o.createComponentVNode)(2,d.FullscreenNotice,{title:"ERROR",children:r?(0,o.createComponentVNode)(2,a.Box,{children:"Brute-forcing for server key. It will take 20 seconds for every character that the password has."}):(0,o.createComponentVNode)(2,a.Box,{children:["01000010011100100111010101110100011001010010110",(0,o.createVNode)(1,"br"),"10110011001101111011100100110001101101001011011100110011",(0,o.createVNode)(1,"br"),"10010000001100110011011110111001000100000011100110110010",(0,o.createVNode)(1,"br"),"10111001001110110011001010111001000100000011010110110010",(0,o.createVNode)(1,"br"),"10111100100101110001000000100100101110100001000000111011",(0,o.createVNode)(1,"br"),"10110100101101100011011000010000001110100011000010110101",(0,o.createVNode)(1,"br"),"10110010100100000001100100011000000100000011100110110010",(0,o.createVNode)(1,"br"),"10110001101101111011011100110010001110011001000000110011",(0,o.createVNode)(1,"br"),"00110111101110010001000000110010101110110011001010111001",(0,o.createVNode)(1,"br"),"00111100100100000011000110110100001100001011100100110000",(0,o.createVNode)(1,"br"),"10110001101110100011001010111001000100000011101000110100",(0,o.createVNode)(1,"br"),"00110000101110100001000000111010001101000011001010010000",(0,o.createVNode)(1,"br"),"00111000001100001011100110111001101110111011011110111001",(0,o.createVNode)(1,"br"),"00110010000100000011010000110000101110011001011100010000",(0,o.createVNode)(1,"br"),"00100100101101110001000000111010001101000011001010010000",(0,o.createVNode)(1,"br"),"00110110101100101011000010110111001110100011010010110110",(0,o.createVNode)(1,"br"),"10110010100101100001000000111010001101000011010010111001",(0,o.createVNode)(1,"br"),"10010000001100011011011110110111001110011011011110110110",(0,o.createVNode)(1,"br"),"00110010100100000011000110110000101101110001000000111001",(0,o.createVNode)(1,"br"),"00110010101110110011001010110000101101100001000000111100",(0,o.createVNode)(1,"br"),"10110111101110101011100100010000001110100011100100111010",(0,o.createVNode)(1,"br"),"10110010100100000011010010110111001110100011001010110111",(0,o.createVNode)(1,"br"),"00111010001101001011011110110111001110011001000000110100",(0,o.createVNode)(1,"br"),"10110011000100000011110010110111101110101001000000110110",(0,o.createVNode)(1,"br"),"00110010101110100001000000111001101101111011011010110010",(0,o.createVNode)(1,"br"),"10110111101101110011001010010000001100001011000110110001",(0,o.createVNode)(1,"br"),"10110010101110011011100110010000001101001011101000010111",(0,o.createVNode)(1,"br"),"00010000001001101011000010110101101100101001000000111001",(0,o.createVNode)(1,"br"),"10111010101110010011001010010000001101110011011110010000",(0,o.createVNode)(1,"br"),"00110100001110101011011010110000101101110011100110010000",(0,o.createVNode)(1,"br"),"00110010101101110011101000110010101110010001000000111010",(0,o.createVNode)(1,"br"),"00110100001100101001000000111001001101111011011110110110",(0,o.createVNode)(1,"br"),"10010000001100100011101010111001001101001011011100110011",(0,o.createVNode)(1,"br"),"10010000001110100011010000110000101110100001000000111010",(0,o.createVNode)(1,"br"),"001101001011011010110010100101110"]})})},u=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.isMalfAI;return(0,o.createComponentVNode)(2,d.FullscreenNotice,{title:"Welcome",children:[(0,o.createComponentVNode)(2,a.Box,{fontSize:"1.5rem",bold:!0,children:[(0,o.createComponentVNode)(2,a.Icon,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"}),"Unauthorized"]}),(0,o.createComponentVNode)(2,a.Box,{color:"label",my:"1rem",children:["Decryption Key:",(0,o.createComponentVNode)(2,a.Input,{placeholder:"Decryption Key",ml:"0.5rem",onChange:function(e,n){return r("auth",{key:n})}})]}),!!i&&(0,o.createComponentVNode)(2,a.Button,{icon:"terminal",content:"Hack",onClick:function(){return r("hack")}}),(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"Please authenticate with the server in order to show additional options."})]})},m=function(e,n){var t,r=(0,c.useBackend)(n),i=r.act,l=r.data.linkedServer,d=(0,c.useLocalState)(n,"tabIndex",0),s=d[0],u=d[1];return 0===s?t=(0,o.createComponentVNode)(2,p):1===s?t=(0,o.createComponentVNode)(2,C,{logs:l.pda_msgs,pda:!0}):2===s?t=(0,o.createComponentVNode)(2,C,{logs:l.rc_msgs,rc:!0}):3===s?t=(0,o.createComponentVNode)(2,h):4===s&&(t=(0,o.createComponentVNode)(2,N)),(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Tabs,{children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:0===s,onClick:function(){return u(0)},children:[(0,o.createComponentVNode)(2,a.Icon,{name:"bars"})," Main Menu"]},"Main"),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:1===s,onClick:function(){return u(1)},children:[(0,o.createComponentVNode)(2,a.Icon,{name:"font"})," Message Logs"]},"MessageLogs"),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:2===s,onClick:function(){return u(2)},children:[(0,o.createComponentVNode)(2,a.Icon,{name:"bold"})," Request Logs"]},"RequestLogs"),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:3===s,onClick:function(){return u(3)},children:[(0,o.createComponentVNode)(2,a.Icon,{name:"comment-alt"})," Admin Messaging"]},"AdminMessage"),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:4===s,onClick:function(){return u(4)},children:[(0,o.createComponentVNode)(2,a.Icon,{name:"comment-slash"})," Spam Filter"]},"SpamFilter"),(0,o.createComponentVNode)(2,a.Tabs.Tab,{color:"red",onClick:function(){return i("deauth")},children:[(0,o.createComponentVNode)(2,a.Icon,{name:"sign-out-alt"})," Log Out"]},"Logout")]}),(0,o.createComponentVNode)(2,a.Box,{m:2,children:t})],4)},p=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.linkedServer;return(0,o.createComponentVNode)(2,a.Section,{title:"Main Menu",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"link",content:"Server Link",onClick:function(){return r("find")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",content:"Server "+(i.active?"Enabled":"Disabled"),selected:i.active,onClick:function(){return r("active")}})],4),children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Server Status",children:(0,o.createComponentVNode)(2,a.Box,{color:"good",children:"Good"})})}),(0,o.createComponentVNode)(2,a.Button,{mt:1,icon:"key",content:"Set Custom Key",onClick:function(){return r("pass")}}),(0,o.createComponentVNode)(2,a.Button.Confirm,{color:"red",confirmIcon:"exclamation-triangle",icon:"exclamation-triangle",content:"Clear Message Logs"}),(0,o.createComponentVNode)(2,a.Button.Confirm,{color:"red",confirmIcon:"exclamation-triangle",icon:"exclamation-triangle",content:"Clear Request Logs"})]})},C=function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=(t.data,e.logs),d=e.pda,s=e.rc;return(0,o.createComponentVNode)(2,a.Section,{title:d?"PDA Logs":s?"Request Logs":"Logs",buttons:(0,o.createComponentVNode)(2,a.Button.Confirm,{color:"red",icon:"trash",confirmIcon:"trash",content:"Delete All",onClick:function(){return i(d?"del_pda":"del_rc")}}),children:(0,o.createComponentVNode)(2,a.Flex,{wrap:"wrap",children:l.map((function(e,n){return(0,o.createComponentVNode)(2,a.Flex.Item,{m:"2px",basis:"49%",grow:n%2,children:(0,o.createComponentVNode)(2,a.Section,{title:e.sender+" -> "+e.recipient,buttons:(0,o.createComponentVNode)(2,a.Button.Confirm,{confirmContent:"Delete Log?",color:"bad",icon:"trash",confirmIcon:"trash",onClick:function(){return i("delete",{id:e.ref,type:s?"rc":"pda"})}}),children:s?(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Message",children:e.message}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Verification",color:"Unauthenticated"===e.id_auth?"bad":"good",children:(0,r.decodeHtmlEntities)(e.id_auth)}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Stamp",children:e.stamp})]}):e.message})},e.ref)}))})})},h=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=i.possibleRecipients,d=i.customsender,s=i.customrecepient,u=i.customjob,m=i.custommessage,p=Object.keys(l);return(0,o.createComponentVNode)(2,a.Section,{title:"Admin Messaging",children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Sender",children:(0,o.createComponentVNode)(2,a.Input,{fluid:!0,value:d,onChange:function(e,n){return r("set_sender",{val:n})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Sender's Job",children:(0,o.createComponentVNode)(2,a.Input,{fluid:!0,value:u,onChange:function(e,n){return r("set_sender_job",{val:n})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Recipient",children:(0,o.createComponentVNode)(2,a.Dropdown,{value:s,options:p,width:"100%",mb:-.7,onSelected:function(e){return r("set_recipient",{val:l[e]})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Message",verticalAlign:"top",children:(0,o.createComponentVNode)(2,a.Input,{fluid:!0,mb:.5,value:m,onChange:function(e,n){return r("set_message",{val:n})}})})]}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"comment",content:"Send Message",onClick:function(){return r("send_message")}})]})},N=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.linkedServer;return(0,o.createComponentVNode)(2,a.Section,{title:"Spam Filtering",children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:i.spamFilter.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.index,buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"trash",color:"bad",content:"Delete",onClick:function(){return r("deltoken",{deltoken:e.index})}}),children:e.token},e.index)}))}),(0,o.createComponentVNode)(2,a.Button,{icon:"plus",content:"Add New Entry",onClick:function(){return r("addtoken")}})]})}},75412:function(e,n,t){"use strict";n.__esModule=!0,n.Microwave=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.Microwave=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.config,d=t.data,s=d.broken,u=d.operating,m=d.dirty,p=d.items;return(0,o.createComponentVNode)(2,a.Window,{width:400,height:500,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:s&&(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Bzzzzttttt!!"})})||u&&(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.Box,{color:"good",children:["Microwaving in progress!",(0,o.createVNode)(1,"br"),"Please wait...!"]})})||m&&(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:["This microwave is dirty!",(0,o.createVNode)(1,"br"),"Please clean it before use!"]})})||p.length&&(0,o.createComponentVNode)(2,c.Section,{level:1,title:"Ingredients",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"radiation",onClick:function(){return i("cook")},children:"Microwave"}),(0,o.createComponentVNode)(2,c.Button,{icon:"eject",onClick:function(){return i("dispose")},children:"Eject"})],4),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:p.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name,children:[e.amt," ",e.extra]},e.name)}))})})||(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:[l.title," is empty."]})})})})}},35016:function(e,n,t){"use strict";n.__esModule=!0,n.MiningOreProcessingConsole=void 0;var o=t(39812),r=t(2497),c=t(71494),a=t(74814),i=t(85952),l=(t(64499),t(21526));n.MiningOreProcessingConsole=function(e,n){var t=(0,c.useBackend)(n),r=t.act,d=t.data,s=d.unclaimedPoints,u=(d.ores,d.showAllOres,d.power),p=d.speed;return(0,o.createComponentVNode)(2,i.Window,{width:400,height:500,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:[(0,o.createComponentVNode)(2,l.MiningUser,{insertIdText:(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-right",mr:1,onClick:function(){return r("insert")},children:"Insert ID"}),"in order to claim points."]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Status",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"bolt",selected:p,onClick:function(){return r("speed_toggle")},children:p?"High-Speed Active":"High-Speed Inactive"}),(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",selected:u,onClick:function(){return r("power")},children:u?"Smelting":"Not Smelting"})],4),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Current unclaimed points",buttons:(0,o.createComponentVNode)(2,a.Button,{disabled:s<1,icon:"download",onClick:function(){return r("claim")},children:"Claim"}),children:(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:s})})})}),(0,o.createComponentVNode)(2,m)]})})};var d=["Not Processing","Smelting","Compressing","Alloying"],s=["verdantium","mhydrogen","diamond","platinum","uranium","gold","silver","rutile","phoron","marble","lead","sand","carbon","hematite"],u=function(e,n){return-1===s.indexOf(e.ore)||-1===s.indexOf(n.ore)?e.ore-n.ore:s.indexOf(n.ore)-s.indexOf(e.ore)},m=function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data,s=l.ores,m=l.showAllOres;l.power;return(0,o.createComponentVNode)(2,a.Section,{title:"Ore Processing Controls",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:m?"toggle-on":"toggle-off",selected:m,onClick:function(){return i("showAllOres")},children:m?"All Ores":"Ores in Machine"}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:s.length&&s.sort(u).map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:(0,r.toTitleCase)(e.name),buttons:(0,o.createComponentVNode)(2,a.Dropdown,{width:"120px",color:(0===e.processing?"red":1===e.processing&&"green")||2===e.processing&&"blue"||3===e.processing&&"yellow",options:d,selected:d[e.processing],onSelected:function(n){return i("toggleSmelting",{ore:e.ore,set:d.indexOf(n)})}}),children:(0,o.createComponentVNode)(2,a.Box,{inline:!0,children:(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:e.amount})})},e.ore)}))||(0,o.createComponentVNode)(2,a.Box,{color:"bad",textAlign:"center",children:"No ores in machine."})})})}},87314:function(e,n,t){"use strict";n.__esModule=!0,n.MiningStackingConsole=void 0;var o=t(39812),r=t(2497),c=t(71494),a=t(74814),i=t(85952);t(64499);n.MiningStackingConsole=function(e,n){var t=(0,c.useBackend)(n),l=t.act,d=t.data,s=d.stacktypes,u=d.stackingAmt;return(0,o.createComponentVNode)(2,i.Window,{width:400,height:500,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{title:"Stacker Controls",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Stacking",children:(0,o.createComponentVNode)(2,a.NumberInput,{fluid:!0,value:u,minValue:1,maxValue:50,stepPixelSize:5,onChange:function(e,n){return l("change_stack",{amt:n})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Divider),s.length&&s.sort().map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:(0,r.toTitleCase)(e.type),buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"eject",onClick:function(){return l("release_stack",{stack:e.type})},children:"Eject"}),children:(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:e.amt})},e.type)}))||(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Empty",color:"average",children:"No stacks in machine."})]})})})})}},62012:function(e,n,t){"use strict";n.__esModule=!0,n.MiningVendor=void 0;var o=t(39812),r=t(2497),c=t(71494),a=t(74814),i=t(85952),l=t(21526);var d={Alphabetical:function(e,n){return e-n},"By availability":function(e,n){return-(e.affordable-n.affordable)},"By price":function(e,n){return e.price-n.price}};n.MiningVendor=function(e,n){return(0,o.createComponentVNode)(2,i.Window,{width:400,height:450,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:[(0,o.createComponentVNode)(2,l.MiningUser,{insertIdText:"Please insert an ID in order to make purchases."}),(0,o.createComponentVNode)(2,u),(0,o.createComponentVNode)(2,s)]})})};var s=function(e,n){var t=(0,c.useBackend)(n),l=(t.act,t.data),s=l.has_id,u=l.id,p=l.items,C=(0,c.useLocalState)(n,"search",""),h=C[0],N=(C[1],(0,c.useLocalState)(n,"sort","Alphabetical")),V=N[0],b=(N[1],(0,c.useLocalState)(n,"descending",!1)),f=b[0],g=(b[1],(0,r.createSearch)(h,(function(e){return e[0]}))),k=!1,v=Object.entries(p).map((function(e,n){var t=Object.entries(e[1]).filter(g).map((function(e){return e[1].affordable=s&&u.points>=e[1].price,e[1]})).sort(d[V]);if(0!==t.length)return f&&(t=t.reverse()),k=!0,(0,o.createComponentVNode)(2,m,{title:e[0],items:t},e[0])}));return(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",overflow:"auto",children:(0,o.createComponentVNode)(2,a.Section,{onClick:function(e){return(0,i.refocusLayout)()},children:k?v:(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"No items matching your criteria was found!"})})})},u=function(e,n){var t=(0,c.useLocalState)(n,"search",""),r=(t[0],t[1]),i=(0,c.useLocalState)(n,"sort",""),l=(i[0],i[1]),s=(0,c.useLocalState)(n,"descending",!1),u=s[0],m=s[1];return(0,o.createComponentVNode)(2,a.Box,{mb:"0.5rem",children:(0,o.createComponentVNode)(2,a.Flex,{width:"100%",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",mr:"0.5rem",children:(0,o.createComponentVNode)(2,a.Input,{placeholder:"Search by item name..",width:"100%",onInput:function(e,n){return r(n)}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"30%",children:(0,o.createComponentVNode)(2,a.Dropdown,{selected:"Alphabetical",options:Object.keys(d),width:"100%",lineHeight:"19px",onSelected:function(e){return l(e)}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Button,{icon:u?"arrow-down":"arrow-up",height:"19px",tooltip:u?"Descending order":"Ascending order",tooltipPosition:"bottom-end",ml:"0.5rem",onClick:function(){return m(!u)}})})]})})},m=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=e.title,d=e.items,s=function(e,n){if(null==e)return{};var t,o,r={},c=Object.keys(e);for(o=0;o=0||(r[t]=e[t]);return r}(e,["title","items"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Collapsible,Object.assign({open:!0,title:l},s,{children:d.map((function(e){return(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Box,{display:"inline-block",verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:e.name}),(0,o.createComponentVNode)(2,a.Button,{disabled:!i.has_id||i.id.points=450?"Overcharged":e>=250?"Good Charge":"Low Charge":e>=250?"NIF Power Requirement met.":e>=150?"Fluctuations in available power.":"Power failure imminent."},s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=(t.config,t.data),s=i.nif_percent,u=i.nif_stat,m=(i.last_notification,i.nutrition),p=i.isSynthetic,C=i.modules,h=e.setViewing;return(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"NIF Condition",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:s,minValue:0,maxValue:100,ranges:{good:[50,Infinity],average:[25,50],bad:[-Infinity,0]},children:[l(u,s)," (",(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:s}),"%)"]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"NIF Power",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:m,minValue:0,maxValue:700,ranges:{good:[250,Infinity],average:[150,250],bad:[0,150]},children:d(m,p)})})]}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"NIFSoft Modules",mt:1,children:(0,o.createComponentVNode)(2,c.LabeledList,{children:C.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button.Confirm,{icon:"trash",color:"bad",confirmContent:"UNINSTALL?",confirmIcon:"trash",tooltip:"Uninstall Module",tooltipPosition:"left",onClick:function(){return a("uninstall",{module:e.ref})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"search",onClick:function(){return h(e)},tooltip:"View Information",tooltipPosition:"left"})],4),children:e.activates&&(0,o.createComponentVNode)(2,c.Button,{fluid:!0,selected:e.active,content:e.stat_text,onClick:function(){return a("toggle_module",{module:e.ref})}})||(0,o.createComponentVNode)(2,c.Box,{children:e.stat_text})},e.ref)}))})})]})},u=function(e,n){var t=(0,r.useBackend)(n),a=t.act,l=t.data.theme;return(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"NIF Theme",verticalAlign:"top",children:(0,o.createComponentVNode)(2,c.Dropdown,{width:"100%",placeholder:"Default",selected:l,options:i,onSelected:function(e){return a("setTheme",{theme:e})}})})})}},79630:function(e,n,t){"use strict";n.__esModule=!0,n.NTNetRelay=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=t(67861);n.NTNetRelay=function(e,n){var t=(0,r.useBackend)(n),c=(t.act,t.data),i=c.dos_crashed,s=(c.enabled,c.dos_overload,c.dos_capacity,(0,o.createComponentVNode)(2,l));return i&&(s=(0,o.createComponentVNode)(2,d)),(0,o.createComponentVNode)(2,a.Window,{width:i?700:500,height:i?600:300,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:s})})};var l=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=(i.dos_crashed,i.enabled),d=i.dos_overload,s=i.dos_capacity;return(0,o.createComponentVNode)(2,c.Section,{title:"Status",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:l,content:"Relay "+(l?"On":"Off"),onClick:function(){return a("toggle")}}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Network Buffer Status",children:[d," / ",s," GQ"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Options",children:(0,o.createComponentVNode)(2,c.Button,{icon:"exclamation-triangle",content:"Purge network blacklist",onClick:function(){return a("purge")}})})]})})},d=function(e,n){var t=(0,r.useBackend)(n),a=t.act;t.data;return(0,o.createComponentVNode)(2,i.FullscreenNotice,{title:"ERROR",children:[(0,o.createComponentVNode)(2,c.Box,{fontSize:"1.5rem",bold:!0,color:"bad",children:[(0,o.createComponentVNode)(2,c.Icon,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"}),(0,o.createVNode)(1,"h2",null,"NETWORK BUFFERS OVERLOADED",16),(0,o.createVNode)(1,"h3",null,"Overload Recovery Mode",16),(0,o.createVNode)(1,"i",null,"This system is suffering temporary outage due to overflow of traffic buffers. Until buffered traffic is processed, all further requests will be dropped. Frequent occurences of this error may indicate insufficient hardware capacity of your network. Please contact your network planning department for instructions on how to resolve this issue.",16),(0,o.createVNode)(1,"h3",null,"ADMINISTRATIVE OVERRIDE",16),(0,o.createVNode)(1,"b",null," CAUTION - Data loss may occur ",16)]}),(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"exclamation-triangle",content:"Purge buffered traffic",onClick:function(){return a("restart")}})})]})}},60042:function(e,n,t){"use strict";n.__esModule=!0,n.Newscaster=void 0;var o=t(39812),r=t(2497),c=t(71494),a=t(74814),i=t(85952),l=t(36355),d="Main Menu",s="New Channel",u="View List",m="New Story",p="Print",C="New Wanted",h="View Wanted",N="View Selected Channel";n.Newscaster=function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data);r.screen,r.user;return(0,o.createComponentVNode)(2,i.Window,{width:600,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,l.TemporaryNotice,{decode:!0}),(0,o.createComponentVNode)(2,V)]})})};var V=function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data.user,(0,c.useSharedState)(n,"screen",d)),i=r[0],l=r[1],s=b[i];return(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,s,{setScreen:l})})},b={"Main Menu":function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data),i=r.securityCaster,l=r.wanted_issue,d=e.setScreen;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{title:"Main Menu",children:[l&&(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"eye",onClick:function(){return d(h)},color:"bad",children:"Read WANTED Issue"}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"eye",onClick:function(){return d(u)},children:"View Feed Channels"}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"plus",onClick:function(){return d(s)},children:"Create Feed Channel"}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"plus",onClick:function(){return d(m)},children:"Create Feed Message"}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"print",onClick:function(){return d(p)},children:"Print Newspaper"})]}),!!i&&(0,o.createComponentVNode)(2,a.Section,{title:"Feed Security Functions",children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"plus",onClick:function(){return d(C)},children:'Manage "Wanted" Issue'})})],0)},"New Channel":function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data,s=l.channel_name,u=l.c_locked,m=l.user,p=e.setScreen;return(0,o.createComponentVNode)(2,a.Section,{title:"Creating new Feed Channel",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"undo",onClick:function(){return p(d)},children:"Back"}),children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Channel Name",children:(0,o.createComponentVNode)(2,a.Input,{fluid:!0,value:(0,r.decodeHtmlEntities)(s),onInput:function(e,n){return i("set_channel_name",{val:n})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Channel Author",color:"good",children:m}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Accept Public Feeds",children:(0,o.createComponentVNode)(2,a.Button,{icon:u?"lock":"lock-open",selected:!u,onClick:function(){return i("set_channel_lock")},children:u?"No":"Yes"})})]}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"good",icon:"plus",onClick:function(){return i("submit_new_channel")},children:"Submit Channel"}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"bad",icon:"undo",onClick:function(){return p(d)},children:"Cancel"})]})},"View List":function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data.channels,s=e.setScreen;return(0,o.createComponentVNode)(2,a.Section,{title:"Station Feed Channels",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"undo",onClick:function(){return s(d)},children:"Back"}),children:l.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"eye",color:e.admin?"good":e.censored?"bad":"",onClick:function(){i("show_channel",{show_channel:e.ref}),s(N)},children:(0,r.decodeHtmlEntities)(e.name)},e.name)}))})},"New Story":function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=i.channel_name,s=i.user,u=i.title,m=i.msg,p=i.photo_data,C=e.setScreen;return(0,o.createComponentVNode)(2,a.Section,{title:"Creating new Feed Message...",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"undo",onClick:function(){return C(d)},children:"Back"}),children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Receiving Channel",children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,onClick:function(){return r("set_channel_receiving")},children:l||"Unset"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Message Author",color:"good",children:s}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Message Title",verticalAlign:"top",children:(0,o.createComponentVNode)(2,a.Flex,{children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Section,{width:"99%",inline:!0,children:u||"(no title yet)"})}),(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Button,{verticalAlign:"top",onClick:function(){return r("set_new_title")},icon:"pen",tooltip:"Edit Title",tooltipPosition:"left"})})]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Message Body",verticalAlign:"top",children:(0,o.createComponentVNode)(2,a.Flex,{children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Section,{width:"99%",inline:!0,children:m||"(no message yet)"})}),(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Button,{verticalAlign:"top",onClick:function(){return r("set_new_message")},icon:"pen",tooltip:"Edit Message",tooltipPosition:"left"})})]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Attach Photo",children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"image",onClick:function(){return r("set_attachment")},children:p?"Photo Attached":"No Photo"})})]}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"good",icon:"plus",onClick:function(){return r("submit_new_message")},children:"Submit Message"}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"bad",icon:"undo",onClick:function(){return C(d)},children:"Cancel"})]})},Print:function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=i.total_num,s=i.active_num,u=i.message_num,m=i.paper_remaining,p=e.setScreen;return(0,o.createComponentVNode)(2,a.Section,{title:"Printing",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"undo",onClick:function(){return p(d)},children:"Back"}),children:[(0,o.createComponentVNode)(2,a.Box,{color:"label",mb:1,children:["Newscaster currently serves a total of ",l," Feed channels, ",s," of which are active, and a total of ",u," Feed stories."]}),(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Liquid Paper remaining",children:[100*m," cm\xb3"]})}),(0,o.createComponentVNode)(2,a.Button,{mt:1,fluid:!0,color:"good",icon:"plus",onClick:function(){return r("print_paper")},children:"Print Paper"}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"bad",icon:"undo",onClick:function(){return p(d)},children:"Cancel"})]})},"New Wanted":function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data,s=l.channel_name,u=l.msg,m=l.photo_data,p=l.user,C=l.wanted_issue,h=e.setScreen;return(0,o.createComponentVNode)(2,a.Section,{title:"Wanted Issue Handler",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"undo",onClick:function(){return h(d)},children:"Back"}),children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[!!C&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Already In Circulation",children:"A wanted issue is already in circulation. You can edit or cancel it below."}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Criminal Name",children:(0,o.createComponentVNode)(2,a.Input,{fluid:!0,value:(0,r.decodeHtmlEntities)(s),onInput:function(e,n){return i("set_channel_name",{val:n})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Description",children:(0,o.createComponentVNode)(2,a.Input,{fluid:!0,value:(0,r.decodeHtmlEntities)(u),onInput:function(e,n){return i("set_wanted_desc",{val:n})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Attach Photo",children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"image",onClick:function(){return i("set_attachment")},children:m?"Photo Attached":"No Photo"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Prosecutor",color:"good",children:p})]}),(0,o.createComponentVNode)(2,a.Button,{mt:1,fluid:!0,color:"good",icon:"plus",onClick:function(){return i("submit_wanted")},children:"Submit Wanted Issue"}),!!C&&(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"average",icon:"minus",onClick:function(){return i("cancel_wanted")},children:"Take Down Issue"}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"bad",icon:"undo",onClick:function(){return h(d)},children:"Cancel"})]})},"View Wanted":function(e,n){var t=(0,c.useBackend)(n),i=(t.act,t.data.wanted_issue),l=e.setScreen;return i?(0,o.createComponentVNode)(2,a.Section,{title:"--STATIONWIDE WANTED ISSUE--",color:"bad",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"undo",onClick:function(){return l(d)},children:"Back"}),children:(0,o.createComponentVNode)(2,a.Box,{color:"white",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Submitted by",color:"good",children:(0,r.decodeHtmlEntities)(i.author)}),(0,o.createComponentVNode)(2,a.LabeledList.Divider),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Criminal",children:(0,r.decodeHtmlEntities)(i.criminal)}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Description",children:(0,r.decodeHtmlEntities)(i.desc)}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Photo",children:i.img&&(0,o.createVNode)(1,"img",null,null,1,{src:i.img})||"None"})]})})}):(0,o.createComponentVNode)(2,a.Section,{title:"No Outstanding Wanted Issues",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"undo",onClick:function(){return l(d)},children:"Back"}),children:"There are no wanted issues currently outstanding."})},"View Selected Channel":function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data,d=l.viewing_channel,s=l.securityCaster,m=l.company,p=e.setScreen;return d?(0,o.createComponentVNode)(2,a.Section,{title:(0,r.decodeHtmlEntities)(d.name),buttons:(0,o.createFragment)([!!s&&(0,o.createComponentVNode)(2,a.Button.Confirm,{color:"bad",icon:"ban",confirmIcon:"ban",content:"Issue D-Notice",onClick:function(){return i("toggle_d_notice",{ref:d.ref})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"undo",onClick:function(){return p(u)},children:"Back"})],0),children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Channel Created By",children:s&&(0,o.createComponentVNode)(2,a.Button.Confirm,{color:"bad",icon:"strikethrough",confirmIcon:"strikethrough",content:(0,r.decodeHtmlEntities)(d.author),tooltip:"Censor?",confirmContent:"Censor Author",onClick:function(){return i("censor_channel_author",{ref:d.ref})}})||(0,o.createComponentVNode)(2,a.Box,{children:(0,r.decodeHtmlEntities)(d.author)})})}),!!d.censored&&(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:["ATTENTION: This channel has been deemed as threatening to the welfare of the station, and marked with a ",m," D-Notice. No further feed story additions are allowed while the D-Notice is in effect."]}),!!d.messages.length&&d.messages.map((function(e){return(0,o.createComponentVNode)(2,a.Section,{children:["- ",(0,r.decodeHtmlEntities)(e.body),!!e.img&&(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createVNode)(1,"img",null,null,1,{src:"data:image/png;base64,"+e.img}),(0,r.decodeHtmlEntities)(e.caption)||null]}),(0,o.createComponentVNode)(2,a.Box,{color:"grey",children:["[Story by ",(0,r.decodeHtmlEntities)(e.author)," - ",e.timestamp,"]"]}),!!s&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button.Confirm,{mt:1,color:"bad",icon:"strikethrough",confirmIcon:"strikethrough",content:"Censor Story",onClick:function(){return i("censor_channel_story_body",{ref:e.ref})}}),(0,o.createComponentVNode)(2,a.Button.Confirm,{color:"bad",icon:"strikethrough",confirmIcon:"strikethrough",content:"Censor Author",onClick:function(){return i("censor_channel_story_author",{ref:e.ref})}})],4)]},e.ref)}))||!d.censored&&(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"No feed messages found in channel."})]}):(0,o.createComponentVNode)(2,a.Section,{title:"Channel Not Found",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"undo",onClick:function(){return p(u)},children:"Back"}),children:"The channel you were looking for no longer exists."})}}},31669:function(e,n,t){"use strict";n.__esModule=!0,n.NoticeBoard=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.NoticeBoard=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data.notices;return(0,o.createComponentVNode)(2,a.Window,{width:330,height:300,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{children:l.length?(0,o.createComponentVNode)(2,c.LabeledList,{children:l.map((function(e,n){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name,children:[e.isphoto&&(0,o.createComponentVNode)(2,c.Button,{icon:"image",content:"Look",onClick:function(){return i("look",{ref:e.ref})}})||e.ispaper&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"sticky-note",content:"Read",onClick:function(){return i("read",{ref:e.ref})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"pen",content:"Write",onClick:function(){return i("write",{ref:e.ref})}})],4)||"Unknown Entity",(0,o.createComponentVNode)(2,c.Button,{icon:"minus-circle",content:"Remove",onClick:function(){return i("remove",{ref:e.ref})}})]},n)}))}):(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No notices posted here."})})})})}},63231:function(e,n,t){"use strict";n.__esModule=!0,n.NtosAccessDecrypter=void 0;var o=t(39812),r=t(71494),c=t(85952),a=t(76952),i=t(74814);n.NtosAccessDecrypter=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data,s=d.message,u=d.running,m=d.rate,p=d.factor,C=d.regions,h=function(e){for(var n="";n.lengthp?n+="0":n+="1";return n};return(0,o.createComponentVNode)(2,c.NtosWindow,{width:600,height:600,theme:"syndicate",children:(0,o.createComponentVNode)(2,c.NtosWindow.Content,{children:s&&(0,o.createComponentVNode)(2,i.NoticeBox,{children:s})||u&&(0,o.createComponentVNode)(2,i.Section,{children:["Attempting to decrypt network access codes. Please wait. Rate: ",m," PHash/s",(0,o.createComponentVNode)(2,i.Box,{children:h(45)}),(0,o.createComponentVNode)(2,i.Box,{children:h(45)}),(0,o.createComponentVNode)(2,i.Box,{children:h(45)}),(0,o.createComponentVNode)(2,i.Box,{children:h(45)}),(0,o.createComponentVNode)(2,i.Box,{children:h(45)}),(0,o.createComponentVNode)(2,i.Button,{fluid:!0,icon:"ban",onClick:function(){return l("PRG_reset")},children:"Abort"})]})||(0,o.createComponentVNode)(2,i.Section,{title:"Pick access code to decrypt",children:C.length&&(0,o.createComponentVNode)(2,a.IdentificationComputerRegions,{actName:"PRG_execute"})||(0,o.createComponentVNode)(2,i.Box,{children:"Please insert ID card."})})})})}},79760:function(e,n,t){"use strict";n.__esModule=!0,n.NtosArcade=void 0;var o=t(39812),r=t(5908),c=t(71494),a=t(74814),i=t(85952);n.NtosArcade=function(e,n){var t=(0,c.useBackend)(n),l=t.act,d=t.data;return(0,o.createComponentVNode)(2,i.NtosWindow,{width:450,height:350,children:(0,o.createComponentVNode)(2,i.NtosWindow.Content,{children:(0,o.createComponentVNode)(2,a.Section,{title:"Outbomb Cuban Pete Ultra",textAlign:"center",children:[(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Grid,{children:[(0,o.createComponentVNode)(2,a.Grid.Column,{size:2,children:[(0,o.createComponentVNode)(2,a.Box,{m:1}),(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Player Health",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:d.PlayerHitpoints,minValue:0,maxValue:30,ranges:{olive:[31,Infinity],good:[20,31],average:[10,20],bad:[-Infinity,10]},children:[d.PlayerHitpoints,"HP"]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Player Magic",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:d.PlayerMP,minValue:0,maxValue:10,ranges:{purple:[11,Infinity],violet:[3,11],bad:[-Infinity,3]},children:[d.PlayerMP,"MP"]})})]}),(0,o.createComponentVNode)(2,a.Box,{my:1,mx:4}),(0,o.createComponentVNode)(2,a.Section,{backgroundColor:1===d.PauseState?"#1b3622":"#471915",children:d.Status})]}),(0,o.createComponentVNode)(2,a.Grid.Column,{children:[(0,o.createComponentVNode)(2,a.ProgressBar,{value:d.Hitpoints,minValue:0,maxValue:45,ranges:{good:[30,Infinity],average:[5,30],bad:[-Infinity,5]},children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:d.Hitpoints}),"HP"]}),(0,o.createComponentVNode)(2,a.Box,{m:1}),(0,o.createComponentVNode)(2,a.Section,{inline:!0,width:"156px",textAlign:"center",children:(0,o.createVNode)(1,"img",null,null,1,{src:(0,r.resolveAsset)(d.BossID)})})]})]}),(0,o.createComponentVNode)(2,a.Box,{my:1,mx:4}),(0,o.createComponentVNode)(2,a.Button,{icon:"fist-raised",tooltip:"Go in for the kill!",tooltipPosition:"top",disabled:0===d.GameActive||1===d.PauseState,onClick:function(){return l("Attack")},content:"Attack!"}),(0,o.createComponentVNode)(2,a.Button,{icon:"band-aid",tooltip:"Heal yourself!",tooltipPosition:"top",disabled:0===d.GameActive||1===d.PauseState,onClick:function(){return l("Heal")},content:"Heal!"}),(0,o.createComponentVNode)(2,a.Button,{icon:"magic",tooltip:"Recharge your magic!",tooltipPosition:"top",disabled:0===d.GameActive||1===d.PauseState,onClick:function(){return l("Recharge_Power")},content:"Recharge!"})]}),(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Button,{icon:"sync-alt",tooltip:"One more game couldn't hurt.",tooltipPosition:"top",disabled:1===d.GameActive,onClick:function(){return l("Start_Game")},content:"Begin Game"}),(0,o.createComponentVNode)(2,a.Button,{icon:"ticket-alt",tooltip:"Claim at your local Arcade Computer for Prizes!",tooltipPosition:"top",disabled:1===d.GameActive,onClick:function(){return l("Dispense_Tickets")},content:"Claim Tickets"})]}),(0,o.createComponentVNode)(2,a.Box,{color:d.TicketCount>=1?"good":"normal",children:["Earned Tickets: ",d.TicketCount]})]})})})}},97908:function(e,n,t){"use strict";n.__esModule=!0,n.NtosAtmosControl=void 0;var o=t(39812),r=t(85952),c=t(46566);n.NtosAtmosControl=function(){return(0,o.createComponentVNode)(2,r.NtosWindow,{width:870,height:708,resizable:!0,children:(0,o.createComponentVNode)(2,r.NtosWindow.Content,{children:(0,o.createComponentVNode)(2,c.AtmosControlContent)})})}},63645:function(e,n,t){"use strict";n.__esModule=!0,n.NtosCameraConsole=void 0;var o=t(39812),r=t(85952),c=t(3180);n.NtosCameraConsole=function(){return(0,o.createComponentVNode)(2,r.NtosWindow,{width:870,height:708,resizable:!0,children:(0,o.createComponentVNode)(2,r.NtosWindow.Content,{children:(0,o.createComponentVNode)(2,c.CameraConsoleContent)})})}},74093:function(e,n,t){"use strict";n.__esModule=!0,n.NtosCommunicationsConsole=void 0;var o=t(39812),r=t(71494),c=t(85952),a=t(130);n.NtosCommunicationsConsole=function(e,n){var t=(0,r.useBackend)(n);t.act,t.data;return(0,o.createComponentVNode)(2,c.NtosWindow,{width:400,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,c.NtosWindow.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.CommunicationsConsoleContent)})})}},55513:function(e,n,t){"use strict";n.__esModule=!0,n.NtosConfiguration=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.NtosConfiguration=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.PC_device_theme,s=l.power_usage,u=l.battery_exists,m=l.battery,p=void 0===m?{}:m,C=l.disk_size,h=l.disk_used,N=l.hardware,V=void 0===N?[]:N;return(0,o.createComponentVNode)(2,a.NtosWindow,{theme:d,width:520,height:630,resizable:!0,children:(0,o.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Power Supply",buttons:(0,o.createComponentVNode)(2,c.Box,{inline:!0,bold:!0,mr:1,children:["Power Draw: ",s,"W"]}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Battery Status",color:!u&&"average",children:u?(0,o.createComponentVNode)(2,c.ProgressBar,{value:p.charge,minValue:0,maxValue:p.max,ranges:{good:[p.max/2,Infinity],average:[p.max/4,p.max/2],bad:[-Infinity,p.max/4]},children:[p.charge," / ",p.max]}):"Not Available"})})}),(0,o.createComponentVNode)(2,c.Section,{title:"File System",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:h,minValue:0,maxValue:C,color:"good",children:[h," GQ / ",C," GQ"]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Hardware Components",children:V.map((function(e){return(0,o.createComponentVNode)(2,c.Section,{title:e.name,level:2,buttons:(0,o.createFragment)([!e.critical&&(0,o.createComponentVNode)(2,c.Button.Checkbox,{content:"Enabled",checked:e.enabled,mr:1,onClick:function(){return i("PC_toggle_component",{name:e.name})}}),(0,o.createComponentVNode)(2,c.Box,{inline:!0,bold:!0,mr:1,children:["Power Usage: ",e.powerusage,"W"]})],0),children:e.desc},e.name)}))})]})})}},17539:function(e,n,t){"use strict";n.__esModule=!0,n.NtosCrewMonitor=void 0;var o=t(39812),r=t(85952),c=t(96158);n.NtosCrewMonitor=function(){return(0,o.createComponentVNode)(2,r.NtosWindow,{width:800,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,r.NtosWindow.Content,{children:(0,o.createComponentVNode)(2,c.CrewMonitorContent)})})}},20025:function(e,n,t){"use strict";n.__esModule=!0,n.NtosDigitalWarrant=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=t(64499);n.NtosDigitalWarrant=function(e,n){var t=(0,r.useBackend)(n),c=(t.act,t.data),i=(c.warrantname,c.warrantcharges,c.warrantauth),d=(c.type,c.allwarrants,(0,o.createComponentVNode)(2,l));return i&&(d=(0,o.createComponentVNode)(2,s)),(0,o.createComponentVNode)(2,a.NtosWindow,{width:500,height:350,resizable:!0,children:(0,o.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:d})})};var l=function(e,n){var t=(0,r.useBackend)(n),a=t.act;t.data.allwarrants;return(0,o.createComponentVNode)(2,c.Section,{title:"Warrants",children:[(0,o.createComponentVNode)(2,c.Button,{icon:"plus",fluid:!0,onClick:function(){return a("addwarrant")},children:"Create New Warrant"}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Arrest Warrants",children:(0,o.createComponentVNode)(2,d,{type:"arrest"})}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Search Warrants",children:(0,o.createComponentVNode)(2,d,{type:"search"})})]})},d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,l=t.data,d=e.type,s=l.allwarrants,u=(0,i.filter)((function(e){return e.arrestsearch===d}))(s);return(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:"arrest"===d?"Name":"Location"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"arrest"===d?"Charges":"Reason"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Authorized By"}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:"Edit"})]}),u.length&&u.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.warrantname}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.charges}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.auth}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,c.Button,{icon:"pen",onClick:function(){return a("editwarrant",{id:e.id})}})})]},e.id)}))||(0,o.createComponentVNode)(2,c.Table.Row,{children:(0,o.createComponentVNode)(2,c.Table.Cell,{colspan:"3",color:"bad",children:["No ",d," warrants found."]})})]})},s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.warrantname,d=i.warrantcharges,s=i.warrantauth,u=i.type,m="arrest"===u,p="arrest"===u?"Name":"Location",C="arrest"===u?"Charges":"Reason";return(0,o.createComponentVNode)(2,c.Section,{title:m?"Editing Arrest Warrant":"Editing Search Warrant",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"save",onClick:function(){return a("savewarrant")},children:"Save"}),(0,o.createComponentVNode)(2,c.Button,{color:"bad",icon:"trash",onClick:function(){return a("deletewarrant")},children:"Delete"}),(0,o.createComponentVNode)(2,c.Button,{icon:"undo",onClick:function(){return a("back")},children:"Back"})],4),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:p,buttons:m&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"search",onClick:function(){return a("editwarrantname")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"pen",onClick:function(){return a("editwarrantnamecustom")}})],4)||(0,o.createComponentVNode)(2,c.Button,{icon:"pen",onClick:function(){return a("editwarrantnamecustom")}}),children:l}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:C,buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"pen",onClick:function(){return a("editwarrantcharges")}}),children:d}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Authorized By",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"balance-scale",onClick:function(){return a("editwarrantauth")}}),children:s})]})})}},11325:function(e,n,t){"use strict";n.__esModule=!0,n.NtosEmailAdministration=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=t(77006);n.NtosEmailAdministration=function(e,n){var t=(0,r.useBackend)(n),c=(t.act,t.data),i=c.error,m=c.cur_title,p=c.current_account,C=(0,o.createComponentVNode)(2,l);return i?C=(0,o.createComponentVNode)(2,d):m?C=(0,o.createComponentVNode)(2,s):p&&(C=(0,o.createComponentVNode)(2,u)),(0,o.createComponentVNode)(2,a.NtosWindow,{width:600,height:450,resizable:!0,children:(0,o.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:C})})};var l=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.accounts;return(0,o.createComponentVNode)(2,c.Section,{title:"Welcome to the NTNet Email Administration System",children:[(0,o.createComponentVNode)(2,c.Box,{italic:!0,mb:1,children:"SECURE SYSTEM - Have your identification ready"}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"plus",onClick:function(){return a("newaccount")},children:"Create New Account"}),(0,o.createComponentVNode)(2,c.Box,{bold:!0,mt:1,mb:1,children:"Select account to administrate"}),i.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"eye",onClick:function(){return a("viewaccount",{viewaccount:e.uid})},children:e.login},e.uid)}))]})},d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.error;return(0,o.createComponentVNode)(2,c.Section,{title:"Message",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"undo",onClick:function(){return a("back")},children:"Back"}),children:i})},s=function(e,n){var t=(0,r.useBackend)(n);t.act,t.data;return(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,i.NtosEmailClientViewMessage,{administrator:!0})})},u=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=(i.error,i.msg_title,i.msg_body,i.msg_timestamp,i.msg_source,i.current_account),d=i.cur_suspended,s=i.messages;i.accounts;return(0,o.createComponentVNode)(2,c.Section,{title:"Viewing "+l+" in admin mode",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"undo",onClick:function(){return a("back")},children:"Back"}),children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Account Status",children:(0,o.createComponentVNode)(2,c.Button,{color:d?"bad":"",icon:"ban",tooltip:(d?"Uns":"S")+"uspend Account?",onClick:function(){return a("ban")},children:d?"Suspended":"Normal"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Actions",children:(0,o.createComponentVNode)(2,c.Button,{icon:"key",onClick:function(){return a("changepass")},children:"Change Password"})})]}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Messages",children:s.length&&(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Source"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Title"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Received at"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Actions"})]}),s.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.source}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.title}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.timestamp}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"eye",onClick:function(){return a("viewmail",{viewmail:e.uid})},children:"View"})})]},e.uid)}))]})||(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No messages found in selected account."})})]})}},77006:function(e,n,t){"use strict";n.__esModule=!0,n.NtosEmailClientViewMessage=n.NtosEmailClient=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=t(41860);n.NtosEmailClient=function(e,n){var t=(0,r.useBackend)(n),c=(t.act,t.data),i=c.PC_device_theme,s=c.error,u=c.downloading,m=c.current_account,p=(0,o.createComponentVNode)(2,h);return s?p=(0,o.createComponentVNode)(2,C,{error:s}):u?p=(0,o.createComponentVNode)(2,l):m&&(p=(0,o.createComponentVNode)(2,d)),(0,o.createComponentVNode)(2,a.NtosWindow,{resizable:!0,theme:i,children:(0,o.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:p})})};var l=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data),l=a.down_filename,d=a.down_progress,s=a.down_size,u=a.down_speed;return(0,o.createComponentVNode)(2,c.Section,{title:"Downloading...",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"File",children:[l," (",s," GQ)"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Speed",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:u})," GQ/s"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Progress",children:(0,o.createComponentVNode)(2,c.ProgressBar,{color:"good",value:d,maxValue:s,children:[d,"/",s," (",(0,i.round)(d/s*100,1),"%)"]})})]})})},d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.current_account,d=i.addressbook,C=i.new_message,h=i.cur_title,N=(0,o.createComponentVNode)(2,s);return d?N=(0,o.createComponentVNode)(2,m):C?N=(0,o.createComponentVNode)(2,p):h&&(N=(0,o.createComponentVNode)(2,u)),(0,o.createComponentVNode)(2,c.Section,{title:"Logged in as: "+l,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"plus",tooltip:"New Message",tooltipPosition:"left",onClick:function(){return a("new_message")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"cogs",tooltip:"Change Password",tooltipPosition:"left",onClick:function(){return a("changepassword")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"sign-out-alt",tooltip:"Log Out",tooltipPosition:"left",onClick:function(){return a("logout")}})],4),children:N})},s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=(i.current_account,i.folder),d=i.messagecount,s=i.messages;return(0,o.createComponentVNode)(2,c.Section,{level:2,noTopPadding:!0,children:[(0,o.createComponentVNode)(2,c.Tabs,{children:[(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:"Inbox"===l,onClick:function(){return a("set_folder",{set_folder:"Inbox"})},children:"Inbox"}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:"Spam"===l,onClick:function(){return a("set_folder",{set_folder:"Spam"})},children:"Spam"}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:"Deleted"===l,onClick:function(){return a("set_folder",{set_folder:"Deleted"})},children:"Deleted"})]}),d&&(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Source"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Title"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Received At"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Actions"})]}),s.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.source}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.title}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.timestamp}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:[(0,o.createComponentVNode)(2,c.Button,{icon:"eye",onClick:function(){return a("view",{view:e.uid})},tooltip:"View"}),(0,o.createComponentVNode)(2,c.Button,{icon:"share",onClick:function(){return a("reply",{reply:e.uid})},tooltip:"Reply"}),(0,o.createComponentVNode)(2,c.Button,{color:"bad",icon:"trash",onClick:function(){return a("delete",{"delete":e.uid})},tooltip:"Delete"})]})]},e.timestamp+e.title)}))]})})||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:["No emails found in ",l,"."]})]})},u=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=e.administrator,d=i.cur_title,s=i.cur_source,u=i.cur_timestamp,m=i.cur_body,p=i.cur_hasattachment,C=i.cur_attachment_filename,h=i.cur_attachment_size,N=i.cur_uid;return(0,o.createComponentVNode)(2,c.Section,{title:d,buttons:l?(0,o.createComponentVNode)(2,c.Button,{icon:"times",onClick:function(){return a("back")}}):(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"share",tooltip:"Reply",tooltipPosition:"left",onClick:function(){return a("reply",{reply:N})}}),(0,o.createComponentVNode)(2,c.Button,{color:"bad",icon:"trash",tooltip:"Delete",tooltipPosition:"left",onClick:function(){return a("delete",{"delete":N})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"save",tooltip:"Save To Disk",tooltipPosition:"left",onClick:function(){return a("save",{save:N})}}),p&&(0,o.createComponentVNode)(2,c.Button,{icon:"paperclip",tooltip:"Save Attachment",tooltipPosition:"left",onClick:function(){return a("downloadattachment")}})||null,(0,o.createComponentVNode)(2,c.Button,{icon:"times",tooltip:"Close",tooltipPosition:"left",onClick:function(){return a("cancel",{cancel:N})}})],0),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"From",children:s}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"At",children:u}),p&&!l&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Attachment",color:"average",children:[C," (",h,"GQ)"]})||null,(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Message",verticalAlign:"top",children:(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:m}})})})]})})};n.NtosEmailClientViewMessage=u;var m=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.accounts;return(0,o.createComponentVNode)(2,c.Section,{title:"Address Book",level:2,buttons:(0,o.createComponentVNode)(2,c.Button,{color:"bad",icon:"times",onClick:function(){return a("set_recipient",{set_recipient:null})}}),children:i.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{content:e.login,fluid:!0,onClick:function(){return a("set_recipient",{set_recipient:e.login})}},e.login)}))})},p=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=(i.current_account,i.msg_title),d=i.msg_recipient,s=i.msg_body,u=i.msg_hasattachment,m=i.msg_attachment_filename,p=i.msg_attachment_size;return(0,o.createComponentVNode)(2,c.Section,{title:"New Message",level:2,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"share",onClick:function(){return a("send")},children:"Send Message"}),(0,o.createComponentVNode)(2,c.Button,{color:"bad",icon:"times",onClick:function(){return a("cancel")}})],4),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Title",children:(0,o.createComponentVNode)(2,c.Input,{fluid:!0,value:l,onInput:function(e,n){return a("edit_title",{val:n})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Recipient",verticalAlign:"top",children:(0,o.createComponentVNode)(2,c.Flex,{children:[(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.Input,{fluid:!0,value:d,onInput:function(e,n){return a("edit_recipient",{val:n})}})}),(0,o.createComponentVNode)(2,c.Flex.Item,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"address-book",onClick:function(){return a("addressbook")},tooltip:"Find Receipients",tooltipPosition:"left"})})]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Attachments",buttons:u&&(0,o.createComponentVNode)(2,c.Button,{color:"bad",icon:"times",onClick:function(){return a("remove_attachment")},children:"Remove Attachment"})||(0,o.createComponentVNode)(2,c.Button,{icon:"plus",onClick:function(){return a("addattachment")},children:"Add Attachment"}),children:u&&(0,o.createComponentVNode)(2,c.Box,{inline:!0,children:[m," (",p,"GQ)"]})||null}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Message",verticalAlign:"top",children:(0,o.createComponentVNode)(2,c.Flex,{children:[(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.Section,{width:"99%",inline:!0,children:(0,o.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:s}})})}),(0,o.createComponentVNode)(2,c.Flex.Item,{children:(0,o.createComponentVNode)(2,c.Button,{verticalAlign:"top",onClick:function(){return a("edit_body")},icon:"pen",tooltip:"Edit Message",tooltipPosition:"left"})})]})})]})})},C=function(e,n){var t=(0,r.useBackend)(n).act,a=e.error;return(0,o.createComponentVNode)(2,c.Section,{title:"Notification",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-left",content:"Return",onClick:function(){return t("reset")}}),children:(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:a})})},h=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.stored_login,d=i.stored_password;return(0,o.createComponentVNode)(2,c.Section,{title:"Please Log In",children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Email address",children:(0,o.createComponentVNode)(2,c.Input,{fluid:!0,value:l,onInput:function(e,n){return a("edit_login",{val:n})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Password",children:(0,o.createComponentVNode)(2,c.Input,{fluid:!0,value:d,onInput:function(e,n){return a("edit_password",{val:n})}})})]}),(0,o.createComponentVNode)(2,c.Button,{icon:"sign-in-alt",onClick:function(){return a("login")},children:"Log In"})]})}},86441:function(e,n,t){"use strict";n.__esModule=!0,n.NtosFileManager=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);t(2497);n.NtosFileManager=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data,s=d.PC_device_theme,u=d.usbconnected,m=d.filename,p=d.filedata,C=d.error,h=d.files,N=void 0===h?[]:h,V=d.usbfiles,b=void 0===V?[]:V;return(0,o.createComponentVNode)(2,a.NtosWindow,{resizable:!0,theme:s,children:(0,o.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:(m||C)&&(0,o.createComponentVNode)(2,c.Section,{title:"Viewing File "+m,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"pen",content:"Edit",onClick:function(){return l("PRG_edit")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"print",content:"Print",onClick:function(){return l("PRG_printfile")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"times",content:"Close",onClick:function(){return l("PRG_closefile")}})],4),children:[C||null,p&&(0,o.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:p}})]})||(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,i,{files:N,usbconnected:u,onUpload:function(e){return l("PRG_copytousb",{name:e})},onDelete:function(e){return l("PRG_deletefile",{name:e})},onOpen:function(e){return l("PRG_openfile",{name:e})},onRename:function(e,n){return l("PRG_rename",{name:e,new_name:n})},onDuplicate:function(e){return l("PRG_clone",{file:e})}})}),u&&(0,o.createComponentVNode)(2,c.Section,{title:"Data Disk",children:(0,o.createComponentVNode)(2,i,{usbmode:!0,files:b,usbconnected:u,onUpload:function(e){return l("PRG_copyfromusb",{name:e})},onDelete:function(e){return l("PRG_deletefile",{name:e})},onRename:function(e,n){return l("PRG_rename",{name:e,new_name:n})},onDuplicate:function(e){return l("PRG_clone",{file:e})}})})||null,(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"plus",onClick:function(){return l("PRG_newtextfile")},children:"New Text File"})})],0)})})};var i=function(e){var n=e.files,t=void 0===n?[]:n,r=e.usbconnected,a=e.usbmode,i=e.onUpload,l=e.onDelete,d=e.onRename,s=e.onOpen;return(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:"File"}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:"Type"}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:"Size"})]}),t.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{className:"candystripe",children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.undeletable?e.name:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button.Input,{width:"80%",content:e.name,currentValue:e.name,tooltip:"Rename",onCommit:function(n,t){return d(e.name,t)}}),(0,o.createComponentVNode)(2,c.Button,{content:"Open",onClick:function(){return s(e.name)}})],4)}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.type}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.size}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:!e.undeletable&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button.Confirm,{icon:"trash",confirmIcon:"times",confirmContent:"",tooltip:"Delete",onClick:function(){return l(e.name)}}),!!r&&(a?(0,o.createComponentVNode)(2,c.Button,{icon:"download",tooltip:"Download",onClick:function(){return i(e.name)}}):(0,o.createComponentVNode)(2,c.Button,{icon:"upload",tooltip:"Upload",onClick:function(){return i(e.name)}}))],0)})]},e.name)}))]})}},87369:function(e,n,t){"use strict";n.__esModule=!0,n.NtosIdentificationComputer=void 0;var o=t(39812),r=(t(64499),t(71494)),c=(t(74814),t(85952)),a=(t(2497),t(76270),t(76952));n.NtosIdentificationComputer=function(e,n){var t=(0,r.useBackend)(n);t.act,t.data;return(0,o.createComponentVNode)(2,c.NtosWindow,{width:600,height:700,resizable:!0,children:(0,o.createComponentVNode)(2,c.NtosWindow.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.IdentificationComputerContent,{ntos:!0})})})}},59543:function(e,n,t){"use strict";n.__esModule=!0,n.NtosMain=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i={compconfig:"cog",ntndownloader:"download",filemanager:"folder",smmonitor:"radiation",alarmmonitor:"bell",cardmod:"id-card",arcade:"gamepad",ntnrc_client:"comment-alt",nttransfer:"exchange-alt",powermonitor:"plug",job_manage:"address-book",crewmani:"clipboard-list",robocontrol:"robot",atmosscan:"thermometer-half",shipping:"tags"};n.NtosMain=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data,s=d.device_theme,u=d.programs,m=void 0===u?[]:u,p=d.has_light,C=d.light_on,h=d.comp_light_color,N=d.removable_media,V=void 0===N?[]:N,b=d.login,f=void 0===b?[]:b;return(0,o.createComponentVNode)(2,a.NtosWindow,{title:"syndicate"===s?"Syndix Main Menu":"NtOS Main Menu",theme:s,width:400,height:500,resizable:!0,children:(0,o.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:[!!p&&(0,o.createComponentVNode)(2,c.Section,{children:[(0,o.createComponentVNode)(2,c.Button,{width:"144px",icon:"lightbulb",selected:C,onClick:function(){return l("PC_toggle_light")},children:["Flashlight: ",C?"ON":"OFF"]}),(0,o.createComponentVNode)(2,c.Button,{ml:1,onClick:function(){return l("PC_light_color")},children:["Color:",(0,o.createComponentVNode)(2,c.ColorBox,{ml:1,color:h})]})]}),(0,o.createComponentVNode)(2,c.Section,{title:"User Login",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"eject",content:"Eject ID",disabled:!f.IDName,onClick:function(){return l("PC_Eject_Disk",{name:"ID"})}}),children:(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{children:["ID Name: ",f.IDName]}),(0,o.createComponentVNode)(2,c.Table.Row,{children:["Assignment: ",f.IDJob]})]})}),!!V.length&&(0,o.createComponentVNode)(2,c.Section,{title:"Media Eject",children:(0,o.createComponentVNode)(2,c.Table,{children:V.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,color:"transparent",icon:"eject",content:e,onClick:function(){return l("PC_Eject_Disk",{name:e})}})})},e)}))})}),(0,o.createComponentVNode)(2,c.Section,{title:"Programs",children:(0,o.createComponentVNode)(2,c.Table,{children:m.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,color:"transparent",icon:i[e.name]||"window-maximize-o",content:e.desc,onClick:function(){return l("PC_runprogram",{name:e.name})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,width:"18px",children:!!e.running&&(0,o.createComponentVNode)(2,c.Button,{color:"transparent",icon:"times",tooltip:"Close program",tooltipPosition:"left",onClick:function(){return l("PC_killprogram",{name:e.name})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,width:"18px",children:(0,o.createComponentVNode)(2,c.Button,{color:"transparent",tooltip:"Set Autorun",tooltipPosition:"left",selected:e.autorun,onClick:function(){return l("PC_setautorun",{name:e.name})},children:"AR"})})]},e.name)}))})})]})})}},73883:function(e,n,t){"use strict";n.__esModule=!0,n.NtosNetChat=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.NtosNetChat=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.can_admin,s=l.adminmode,u=l.authed,m=l.username,p=l.active_channel,C=l.is_operator,h=l.all_channels,N=void 0===h?[]:h,V=l.clients,b=void 0===V?[]:V,f=l.messages,g=void 0===f?[]:f,k=null!==p,v=u||s;return(0,o.createComponentVNode)(2,a.NtosWindow,{width:900,height:675,children:(0,o.createComponentVNode)(2,a.NtosWindow.Content,{children:(0,o.createComponentVNode)(2,c.Section,{height:"600px",children:(0,o.createComponentVNode)(2,c.Table,{height:"580px",children:(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{verticalAlign:"top",style:{width:"200px"},children:[(0,o.createComponentVNode)(2,c.Box,{height:"560px",overflowY:"scroll",children:[(0,o.createComponentVNode)(2,c.Button.Input,{fluid:!0,content:"New Channel...",onCommit:function(e,n){return i("PRG_newchannel",{new_channel_name:n})}}),N.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{fluid:!0,content:e.chan,selected:e.id===p,color:"transparent",onClick:function(){return i("PRG_joinchannel",{id:e.id})}},e.chan)}))]}),(0,o.createComponentVNode)(2,c.Button.Input,{fluid:!0,mt:1,content:m+"...",currentValue:m,onCommit:function(e,n){return i("PRG_changename",{new_name:n})}}),!!d&&(0,o.createComponentVNode)(2,c.Button,{fluid:!0,bold:!0,content:"ADMIN MODE: "+(s?"ON":"OFF"),color:s?"bad":"good",onClick:function(){return i("PRG_toggleadmin")}})]}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:[(0,o.createComponentVNode)(2,c.Box,{height:"560px",overflowY:"scroll",children:k&&(v?g.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{children:e.msg},e.msg)})):(0,o.createComponentVNode)(2,c.Box,{textAlign:"center",children:[(0,o.createComponentVNode)(2,c.Icon,{name:"exclamation-triangle",mt:4,fontSize:"40px"}),(0,o.createComponentVNode)(2,c.Box,{mt:1,bold:!0,fontSize:"18px",children:"THIS CHANNEL IS PASSWORD PROTECTED"}),(0,o.createComponentVNode)(2,c.Box,{mt:1,children:"INPUT PASSWORD TO ACCESS"})]}))}),(0,o.createComponentVNode)(2,c.Input,{fluid:!0,selfClear:!0,mt:1,onEnter:function(e,n){return i("PRG_speak",{message:n})}})]}),(0,o.createComponentVNode)(2,c.Table.Cell,{verticalAlign:"top",style:{width:"150px"},children:[(0,o.createComponentVNode)(2,c.Box,{height:"465px",overflowY:"scroll",children:b.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{children:e.name},e.name)}))}),k&&v&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button.Input,{fluid:!0,content:"Save log...",defaultValue:"new_log",onCommit:function(e,n){return i("PRG_savelog",{log_name:n})}}),(0,o.createComponentVNode)(2,c.Button.Confirm,{fluid:!0,content:"Leave Channel",onClick:function(){return i("PRG_leavechannel")}})],4),!!C&&u&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button.Confirm,{fluid:!0,content:"Delete Channel",onClick:function(){return i("PRG_deletechannel")}}),(0,o.createComponentVNode)(2,c.Button.Input,{fluid:!0,content:"Rename Channel...",onCommit:function(e,n){return i("PRG_renamechannel",{new_name:n})}}),(0,o.createComponentVNode)(2,c.Button.Input,{fluid:!0,content:"Set Password...",onCommit:function(e,n){return i("PRG_setpassword",{new_password:n})}})],4)]})]})})})})})}},83908:function(e,n,t){"use strict";n.__esModule=!0,n.NtosNetDosContent=n.NtosNetDos=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.NtosNetDos=function(e,n){return(0,o.createComponentVNode)(2,a.NtosWindow,{width:400,height:250,theme:"syndicate",children:(0,o.createComponentVNode)(2,a.NtosWindow.Content,{children:(0,o.createComponentVNode)(2,i)})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.relays,d=void 0===l?[]:l,s=i.focus,u=i.target,m=i.speed,p=i.overload,C=i.capacity,h=i.error;if(h)return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.NoticeBox,{children:h}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,content:"Reset",textAlign:"center",onClick:function(){return a("PRG_reset")}})],4);var N=function(e){for(var n="",t=p/C;n.lengtht?n+="0":n+="1";return n};return u?(0,o.createComponentVNode)(2,c.Section,{fontFamily:"monospace",textAlign:"center",children:[(0,o.createComponentVNode)(2,c.Box,{children:["CURRENT SPEED: ",m," GQ/s"]}),(0,o.createComponentVNode)(2,c.Box,{children:N(45)}),(0,o.createComponentVNode)(2,c.Box,{children:N(45)}),(0,o.createComponentVNode)(2,c.Box,{children:N(45)}),(0,o.createComponentVNode)(2,c.Box,{children:N(45)}),(0,o.createComponentVNode)(2,c.Box,{children:N(45)})]}):(0,o.createComponentVNode)(2,c.Section,{children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Target",children:d.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{content:e.id,selected:s===e.id,onClick:function(){return a("PRG_target_relay",{targid:e.id})}},e.id)}))})}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,bold:!0,content:"EXECUTE",color:"bad",textAlign:"center",disabled:!s,mt:1,onClick:function(){return a("PRG_execute")}})]})};n.NtosNetDosContent=i},83305:function(e,n,t){"use strict";n.__esModule=!0,n.NtosNetDownloader=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(85952);n.NtosNetDownloader=function(e,n){var t=(0,c.useBackend)(n),r=t.act,d=t.data,s=d.PC_device_theme,u=d.disk_size,m=d.disk_used,p=d.downloadable_programs,C=void 0===p?[]:p,h=d.error,N=d.hacked_programs,V=void 0===N?[]:N,b=d.hackedavailable;return(0,o.createComponentVNode)(2,i.NtosWindow,{theme:s,width:480,height:735,resizable:!0,children:(0,o.createComponentVNode)(2,i.NtosWindow.Content,{scrollable:!0,children:[!!h&&(0,o.createComponentVNode)(2,a.NoticeBox,{children:[(0,o.createComponentVNode)(2,a.Box,{mb:1,children:h}),(0,o.createComponentVNode)(2,a.Button,{content:"Reset",onClick:function(){return r("PRG_reseterror")}})]}),(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Disk usage",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:m,minValue:0,maxValue:u,children:m+" GQ / "+u+" GQ"})})})}),(0,o.createComponentVNode)(2,a.Section,{children:C.map((function(e){return(0,o.createComponentVNode)(2,l,{program:e},e.filename)}))}),!!b&&(0,o.createComponentVNode)(2,a.Section,{title:"UNKNOWN Software Repository",children:[(0,o.createComponentVNode)(2,a.NoticeBox,{mb:1,children:"Please note that Nanotrasen does not recommend download of software from non-official servers."}),V.map((function(e){return(0,o.createComponentVNode)(2,l,{program:e},e.filename)}))]})]})})};var l=function(e,n){var t=e.program,i=(0,c.useBackend)(n),l=i.act,d=i.data,s=d.disk_size,u=d.disk_used,m=d.downloadcompletion,p=(d.downloading,d.downloadname),C=d.downloadsize,h=d.downloadspeed,N=d.downloads_queue,V=s-u;return(0,o.createComponentVNode)(2,a.Box,{mb:3,children:[(0,o.createComponentVNode)(2,a.Flex,{align:"baseline",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{bold:!0,grow:1,children:t.filedesc}),(0,o.createComponentVNode)(2,a.Flex.Item,{color:"label",nowrap:!0,children:[t.size," GQ"]}),(0,o.createComponentVNode)(2,a.Flex.Item,{ml:2,width:"94px",textAlign:"center",children:t.filename===p&&(0,o.createComponentVNode)(2,a.ProgressBar,{color:"green",minValue:0,maxValue:C,value:m,children:[(0,r.round)(m/C*100,1),"% (",h,"GQ/s)"]})||-1!==N.indexOf(t.filename)&&(0,o.createComponentVNode)(2,a.Button,{icon:"ban",color:"bad",onClick:function(){return l("PRG_removequeued",{filename:t.filename})},children:"Queued..."})||(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"download",content:"Download",disabled:t.size>V,onClick:function(){return l("PRG_downloadfile",{filename:t.filename})}})})]}),"Compatible"!==t.compatibility&&(0,o.createComponentVNode)(2,a.Box,{mt:1,italic:!0,fontSize:"12px",position:"relative",children:[(0,o.createComponentVNode)(2,a.Icon,{mx:1,color:"red",name:"times"}),"Incompatible!"]}),t.size>V&&(0,o.createComponentVNode)(2,a.Box,{mt:1,italic:!0,fontSize:"12px",position:"relative",children:[(0,o.createComponentVNode)(2,a.Icon,{mx:1,color:"red",name:"times"}),"Not enough disk space!"]}),(0,o.createComponentVNode)(2,a.Box,{mt:1,italic:!0,color:"label",fontSize:"12px",children:t.fileinfo})]})}},6806:function(e,n,t){"use strict";n.__esModule=!0,n.NtosNetMonitor=void 0;var o=t(39812),r=t(74814),c=t(71494),a=t(85952);n.NtosNetMonitor=function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data,d=l.ntnetrelays,s=l.ntnetstatus,u=l.config_softwaredownload,m=l.config_peertopeer,p=l.config_communication,C=l.config_systemcontrol,h=l.idsalarm,N=l.idsstatus,V=l.ntnetmaxlogs,b=l.maxlogs,f=l.minlogs,g=l.banned_nids,k=l.ntnetlogs,v=void 0===k?[]:k;return(0,o.createComponentVNode)(2,a.NtosWindow,{resizable:!0,children:(0,o.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,r.NoticeBox,{children:"WARNING: Disabling wireless transmitters when using a wireless device may prevent you from reenabling them!"}),(0,o.createComponentVNode)(2,r.Section,{title:"Wireless Connectivity",buttons:(0,o.createComponentVNode)(2,r.Button.Confirm,{icon:s?"power-off":"times",content:s?"ENABLED":"DISABLED",selected:s,onClick:function(){return i("toggleWireless")}}),children:d?(0,o.createComponentVNode)(2,r.LabeledList,{children:(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Active NTNet Relays",children:d})}):"No Relays Connected"}),(0,o.createComponentVNode)(2,r.Section,{title:"Firewall Configuration",children:(0,o.createComponentVNode)(2,r.LabeledList,{children:[(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Software Downloads",buttons:(0,o.createComponentVNode)(2,r.Button,{icon:u?"power-off":"times",content:u?"ENABLED":"DISABLED",selected:u,onClick:function(){return i("toggle_function",{id:"1"})}})}),(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Peer to Peer Traffic",buttons:(0,o.createComponentVNode)(2,r.Button,{icon:m?"power-off":"times",content:m?"ENABLED":"DISABLED",selected:m,onClick:function(){return i("toggle_function",{id:"2"})}})}),(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Communication Systems",buttons:(0,o.createComponentVNode)(2,r.Button,{icon:p?"power-off":"times",content:p?"ENABLED":"DISABLED",selected:p,onClick:function(){return i("toggle_function",{id:"3"})}})}),(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Remote System Control",buttons:(0,o.createComponentVNode)(2,r.Button,{icon:C?"power-off":"times",content:C?"ENABLED":"DISABLED",selected:C,onClick:function(){return i("toggle_function",{id:"4"})}})})]})}),(0,o.createComponentVNode)(2,r.Section,{title:"Security Systems",children:[!!h&&(0,o.createFragment)([(0,o.createComponentVNode)(2,r.NoticeBox,{children:"NETWORK INCURSION DETECTED"}),(0,o.createComponentVNode)(2,r.Box,{italics:!0,children:"Abnormal activity has been detected in the network. Check system logs for more information"})],4),(0,o.createComponentVNode)(2,r.LabeledList,{children:[(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Banned NIDs",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,r.Button,{icon:"ban",onClick:function(){return i("ban_nid")},children:"Ban NID"}),(0,o.createComponentVNode)(2,r.Button,{icon:"balance-scale",onClick:function(){return i("unban_nid")},children:"Unban NID"})],4),children:g.join(", ")||"None"}),(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"IDS Status",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,r.Button,{icon:N?"power-off":"times",content:N?"ENABLED":"DISABLED",selected:N,onClick:function(){return i("toggleIDS")}}),(0,o.createComponentVNode)(2,r.Button,{icon:"sync",content:"Reset",color:"bad",onClick:function(){return i("resetIDS")}})],4)}),(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Max Log Count",buttons:(0,o.createComponentVNode)(2,r.NumberInput,{value:V,minValue:f,maxValue:b,width:"39px",onChange:function(e,n){return i("updatemaxlogs",{new_number:n})}})})]}),(0,o.createComponentVNode)(2,r.Section,{title:"System Log",level:2,buttons:(0,o.createComponentVNode)(2,r.Button.Confirm,{icon:"trash",content:"Clear Logs",onClick:function(){return i("purgelogs")}}),children:v.map((function(e){return(0,o.createComponentVNode)(2,r.Box,{className:"candystripe",children:e.entry},e.entry)}))})]})]})})}},4363:function(e,n,t){"use strict";n.__esModule=!0,n.NtosNetTransfer=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.NtosNetTransfer=function(e,n){var t=(0,r.useBackend)(n),c=(t.act,t.data),m=c.error,p=c.downloading,C=c.uploading,h=c.upload_filelist,N=(0,o.createComponentVNode)(2,u);return m?N=(0,o.createComponentVNode)(2,i):p?N=(0,o.createComponentVNode)(2,l):C?N=(0,o.createComponentVNode)(2,d):h.length&&(N=(0,o.createComponentVNode)(2,s)),(0,o.createComponentVNode)(2,a.NtosWindow,{width:575,height:700,resizable:!0,children:(0,o.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:N})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.error;return(0,o.createComponentVNode)(2,c.Section,{title:"An error has occured during operation.",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"undo",onClick:function(){return a("PRG_reset")},children:"Reset"}),children:["Additional Information: ",i]})},l=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.download_name,d=i.download_progress,s=i.download_size,u=i.download_netspeed;return(0,o.createComponentVNode)(2,c.Section,{title:"Download in progress",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Downloaded File",children:l}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Progress",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:d,maxValue:s,children:[d," / ",s," GQ"]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Transfer Speed",children:[u," GQ/s"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Controls",children:(0,o.createComponentVNode)(2,c.Button,{icon:"ban",onClick:function(){return a("PRG_reset")},children:"Cancel Download"})})]})})},d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.upload_clients,d=i.upload_filename,s=i.upload_haspassword;return(0,o.createComponentVNode)(2,c.Section,{title:"Server enabled",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Clients Connected",children:l}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Provided file",children:d}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Server Password",children:s?"Enabled":"Disabled"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Commands",children:[(0,o.createComponentVNode)(2,c.Button,{icon:"lock",onClick:function(){return a("PRG_setpassword")},children:"Set Password"}),(0,o.createComponentVNode)(2,c.Button,{icon:"ban",onClick:function(){return a("PRG_reset")},children:"Cancel Upload"})]})]})})},s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.upload_filelist;return(0,o.createComponentVNode)(2,c.Section,{title:"File transfer server ready.",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"undo",onClick:function(){return a("PRG_reset")},children:"Cancel"}),children:[(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"lock",onClick:function(){return a("PRG_setpassword")},children:"Set Password"}),(0,o.createComponentVNode)(2,c.Section,{title:"Pick file to serve.",level:2,children:i.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"upload",onClick:function(){return a("PRG_uploadfile",{uid:e.uid})},children:[e.filename," (",e.size,"GQ)"]},e.uid)}))})]})},u=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.servers;return(0,o.createComponentVNode)(2,c.Section,{title:"Available Files",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"upload",onClick:function(){return a("PRG_uploadmenu")},children:"Send File"}),children:i.length&&(0,o.createComponentVNode)(2,c.LabeledList,{children:i.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.uid,children:[!!e.haspassword&&(0,o.createComponentVNode)(2,c.Icon,{name:"lock",mr:1}),e.filename,"\xa0 (",e.size,"GQ)\xa0",(0,o.createComponentVNode)(2,c.Button,{icon:"download",onClick:function(){return a("PRG_downloadfile",{uid:e.uid})},children:"Download"})]},e.uid)}))})||(0,o.createComponentVNode)(2,c.Box,{children:"No upload servers found."})})}},23225:function(e,n,t){"use strict";n.__esModule=!0,n.NtosNewsBrowser=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=t(5908);n.NtosNewsBrowser=function(e,n){var t=(0,r.useBackend)(n),i=t.act,u=t.data,m=u.article,p=u.download,C=u.message,h=(0,o.createComponentVNode)(2,d);return m?h=(0,o.createComponentVNode)(2,l):p&&(h=(0,o.createComponentVNode)(2,s)),(0,o.createComponentVNode)(2,a.NtosWindow,{width:575,height:750,resizable:!0,children:(0,o.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:[!!C&&(0,o.createComponentVNode)(2,c.NoticeBox,{children:[C," ",(0,o.createComponentVNode)(2,c.Button,{icon:"times",onClick:function(){return i("PRG_clearmessage")}})]}),h]})})};var l=function(e,n){var t=(0,r.useBackend)(n),a=t.act,l=t.data.article;if(!l)return(0,o.createComponentVNode)(2,c.Section,{children:"Error: Article not found."});var d=l.title,s=l.cover,u=l.content;return(0,o.createComponentVNode)(2,c.Section,{title:"Viewing: "+d,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"save",onClick:function(){return a("PRG_savearticle")},children:"Save"}),(0,o.createComponentVNode)(2,c.Button,{icon:"times",onClick:function(){return a("PRG_reset")},children:"Close"})],4),children:[!!s&&(0,o.createVNode)(1,"img",null,null,1,{src:(0,i.resolveAsset)(s)}),(0,o.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:u}})]})},d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.showing_archived,d=i.all_articles;return(0,o.createComponentVNode)(2,c.Section,{title:"Articles List",buttons:(0,o.createComponentVNode)(2,c.Button.Checkbox,{onClick:function(){return a("PRG_toggle_archived")},checked:l,children:"Show Archived"}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:d.length&&d.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name,buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"download",onClick:function(){return a("PRG_openarticle",{uid:e.uid})}}),children:[e.size," GQ"]},e.uid)}))||(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Error",children:"There appear to be no outstanding news articles on NTNet today."})})})},s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.download,l=i.download_progress,d=i.download_maxprogress,s=i.download_rate;return(0,o.createComponentVNode)(2,c.Section,{title:"Downloading...",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Progress",children:(0,o.createComponentVNode)(2,c.ProgressBar,{color:"good",minValue:0,value:l,maxValue:d,children:[l," / ",d," GQ"]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Download Speed",children:[s," GQ/s"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Controls",children:(0,o.createComponentVNode)(2,c.Button,{icon:"ban",fluid:!0,onClick:function(){return a("PRG_reset")},children:"Abort Download"})})]})})}},3839:function(e,n,t){"use strict";n.__esModule=!0,n.NtosOvermapNavigation=void 0;var o=t(39812),r=t(85952),c=t(12640);n.NtosOvermapNavigation=function(){return(0,o.createComponentVNode)(2,r.NtosWindow,{width:380,height:530,resizable:!0,children:(0,o.createComponentVNode)(2,r.NtosWindow.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,c.OvermapNavigationContent)})})}},54698:function(e,n,t){"use strict";n.__esModule=!0,n.NtosPowerMonitor=void 0;var o=t(39812),r=t(85952),c=t(89793);n.NtosPowerMonitor=function(){return(0,o.createComponentVNode)(2,r.NtosWindow,{width:550,height:700,resizable:!0,children:(0,o.createComponentVNode)(2,r.NtosWindow.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,c.PowerMonitorContent)})})}},17086:function(e,n,t){"use strict";n.__esModule=!0,n.NtosRCON=void 0;var o=t(39812),r=t(85952),c=t(43996);n.NtosRCON=function(){return(0,o.createComponentVNode)(2,r.NtosWindow,{width:630,height:440,resizable:!0,children:(0,o.createComponentVNode)(2,r.NtosWindow.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,c.RCONContent)})})}},69480:function(e,n,t){"use strict";n.__esModule=!0,n.NtosRevelation=void 0;var o=t(39812),r=t(74814),c=t(71494),a=t(85952);n.NtosRevelation=function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data;return(0,o.createComponentVNode)(2,a.NtosWindow,{width:400,height:250,theme:"syndicate",children:(0,o.createComponentVNode)(2,a.NtosWindow.Content,{children:(0,o.createComponentVNode)(2,r.Section,{children:[(0,o.createComponentVNode)(2,r.Button.Input,{fluid:!0,content:"Obfuscate Name...",onCommit:function(e,n){return i("PRG_obfuscate",{new_name:n})},mb:1}),(0,o.createComponentVNode)(2,r.LabeledList,{children:(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Payload Status",buttons:(0,o.createComponentVNode)(2,r.Button,{content:l.armed?"ARMED":"DISARMED",color:l.armed?"bad":"average",onClick:function(){return i("PRG_arm")}})})}),(0,o.createComponentVNode)(2,r.Button,{fluid:!0,bold:!0,content:"ACTIVATE",textAlign:"center",color:"bad",disabled:!l.armed})]})})})}},93990:function(e,n,t){"use strict";n.__esModule=!0,n.NtosShutoffMonitor=void 0;var o=t(39812),r=t(85952),c=t(89957);n.NtosShutoffMonitor=function(e,n){return(0,o.createComponentVNode)(2,r.NtosWindow,{width:627,height:700,resizable:!0,children:(0,o.createComponentVNode)(2,r.NtosWindow.Content,{children:(0,o.createComponentVNode)(2,c.ShutoffMonitorContent)})})}},76124:function(e,n,t){"use strict";n.__esModule=!0,n.NtosStationAlertConsole=void 0;var o=t(39812),r=t(85952),c=t(32015);n.NtosStationAlertConsole=function(){return(0,o.createComponentVNode)(2,r.NtosWindow,{width:315,height:500,resizable:!0,children:(0,o.createComponentVNode)(2,r.NtosWindow.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,c.StationAlertConsoleContent)})})}},22475:function(e,n,t){"use strict";n.__esModule=!0,n.NtosSupermatterMonitor=void 0;var o=t(39812),r=t(85952),c=t(6951);n.NtosSupermatterMonitor=function(){return(0,o.createComponentVNode)(2,r.NtosWindow,{width:600,height:400,resizable:!0,children:(0,o.createComponentVNode)(2,r.NtosWindow.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,c.SupermatterMonitorContent)})})}},66744:function(e,n,t){"use strict";n.__esModule=!0,n.NtosUAV=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.NtosUAV=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.current_uav,s=l.signal_strength,u=l.in_use,m=l.paired_uavs;return(0,o.createComponentVNode)(2,a.NtosWindow,{width:600,height:500,resizable:!0,children:(0,o.createComponentVNode)(2,a.NtosWindow.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{title:"Selected UAV",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"UAV",children:d&&d.status||"[Not Connected]"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Signal",children:d&&s||"[Not Connected]"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power",children:d&&(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:d.power,onClick:function(){return i("power_uav")},children:d.power?"Online":"Offline"})||"[Not Connected]"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Camera",children:d&&(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:u,disabled:!d.power,onClick:function(){return i("view_uav")},children:d.power?"Available":"Unavailable"})||"[Not Connected]"})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Paired UAVs",children:m.length&&m.map((function(e){return(0,o.createComponentVNode)(2,c.Flex,{spacing:1,children:[(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"quidditch",onClick:function(){return i("switch_uav",{switch_uav:e.uavref})},children:e.name})}),(0,o.createComponentVNode)(2,c.Flex.Item,{children:(0,o.createComponentVNode)(2,c.Button,{color:"bad",icon:"times",onClick:function(){return i("del_uav",{del_uav:e.uavref})}})})]},e.uavref)}))||(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No UAVs Paired."})})]})})}},19458:function(e,n,t){"use strict";n.__esModule=!0,n.NtosWordProcessor=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.NtosWordProcessor=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.PC_device_theme,s=l.error,u=l.browsing,m=l.files,p=(l.usbconnected,l.usbfiles,l.filename),C=l.filedata;return(0,o.createComponentVNode)(2,a.NtosWindow,{resizable:!0,theme:d,children:(0,o.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:s&&(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:[(0,o.createVNode)(1,"h2",null,"An Error has occured:",16),"Additional Information: ",s,"Please try again. If the problem persists, contact your system administrator for assistance.",(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-left",content:"Back to menu",onClick:function(){return i("PRG_backtomenu")}})]})||u&&(0,o.createComponentVNode)(2,c.Section,{title:"File Browser",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-left",content:"Back to editor",onClick:function(){return i("PRG_closebrowser")}}),children:(0,o.createComponentVNode)(2,c.Section,{title:"Available documents (local)",level:2,children:(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Name"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Size (GQ)"}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0})]}),m.map((function(e,n){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.size}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,c.Button,{icon:"file-word",onClick:function(){return i("PRG_openfile",{PRG_openfile:e.name})},children:"Open"})})]},n)}))]})})})||(0,o.createComponentVNode)(2,c.Section,{title:"Document: "+p,children:[(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("PRG_newfile")},children:"New"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("PRG_loadmenu")},children:"Load"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("PRG_savefile")},children:"Save"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("PRG_saveasfile")},children:"Save As"})]}),(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("PRG_editfile")},children:"Edit"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("PRG_txtrpeview")},children:"Preview"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("PRG_taghelp")},children:"Formatting Help"}),(0,o.createComponentVNode)(2,c.Button,{disabled:!C,onClick:function(){return i("PRG_printfile")},children:"Print"})]}),(0,o.createComponentVNode)(2,c.Section,{mt:1,children:(0,o.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:C}})})]})})})}},18326:function(e,n,t){"use strict";n.__esModule=!0,n.OmniFilter=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=function(e){return e.input?"Input":e.output?"Output":e.f_type?e.f_type:"Disabled"};n.OmniFilter=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data,s=d.power,u=d.config,m=d.ports,p=d.set_flow_rate,C=d.last_flow_rate;return(0,o.createComponentVNode)(2,a.Window,{width:360,height:330,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{title:u?"Configuration":"Status",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",content:s?"On":"Off",selected:s,disabled:u,onClick:function(){return l("power")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"wrench",selected:u,onClick:function(){return l("configure")}})],4),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:m?m.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.dir+" Port",children:u?(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{content:"IN",selected:e.input,icon:"compress-arrows-alt",onClick:function(){return l("switch_mode",{mode:"in",dir:e.dir})}}),(0,o.createComponentVNode)(2,c.Button,{content:"OUT",selected:e.output,icon:"expand-arrows-alt",onClick:function(){return l("switch_mode",{mode:"out",dir:e.dir})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"wrench",disabled:e.input||e.output,content:e.f_type||"None",onClick:function(){return l("switch_filter",{mode:e.f_type,dir:e.dir})}})],4):i(e)},e.dir)})):(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No Ports Detected"})})}),(0,o.createComponentVNode)(2,c.Section,{title:"Flow Rate",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Current Flow Rate",children:[C," L/s"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Flow Rate Limit",children:u?(0,o.createComponentVNode)(2,c.Button,{icon:"wrench",content:p/10+" L/s",onClick:function(){return l("set_flow_rate")}}):p/10+" L/s"})]})})]})})}},78588:function(e,n,t){"use strict";n.__esModule=!0,n.OmniMixer=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=function(e){return e.input?"Input":e.output?"Output":e.f_type?e.f_type:"Disabled"};n.OmniMixer=function(e,n){var t=(0,r.useBackend)(n),i=t.act,d=t.data,s=d.power,u=d.config,m=d.ports,p=d.set_flow_rate,C=d.last_flow_rate;return(0,o.createComponentVNode)(2,a.Window,{width:390,height:330,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{title:u?"Configuration":"Status",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",content:s?"On":"Off",selected:s,disabled:u,onClick:function(){return i("power")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"wrench",selected:u,onClick:function(){return i("configure")}})],4),children:(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:"Port"}),u?(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:"Input"}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:"Output"})],4):(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:"Mode"}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:"Concentration"}),u?(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:"Lock"}):null]}),m?m.map((function(e){return(0,o.createComponentVNode)(2,l,{port:e,config:u},e.dir)})):(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No Ports Detected"})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Flow Rate",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Current Flow Rate",children:[C," L/s"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Flow Rate Limit",children:u?(0,o.createComponentVNode)(2,c.Button,{icon:"wrench",content:p/10+" L/s",onClick:function(){return i("set_flow_rate")}}):p/10+" L/s"})]})})]})})};var l=function(e,n){var t=(0,r.useBackend)(n).act,a=e.port,l=e.config;return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:a.dir+" Port"}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:l?(0,o.createComponentVNode)(2,c.Button,{content:"IN",selected:a.input,disabled:a.output,icon:"compress-arrows-alt",onClick:function(){return t("switch_mode",{mode:a.input?"none":"in",dir:a.dir})}}):i(a)}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:l?(0,o.createComponentVNode)(2,c.Button,{content:"OUT",selected:a.output,icon:"expand-arrows-alt",onClick:function(){return t("switch_mode",{mode:"out",dir:a.dir})}}):100*a.concentration+"%"}),l?(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",width:"20%",children:(0,o.createComponentVNode)(2,c.Button,{width:"100%",icon:"wrench",disabled:!a.input,content:a.input?100*a.concentration+" %":"-",onClick:function(){return t("switch_con",{dir:a.dir})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:(0,o.createComponentVNode)(2,c.Button,{icon:a.con_lock?"lock":"lock-open",disabled:!a.input,selected:a.con_lock,content:a.f_type||"None",onClick:function(){return t("switch_conlock",{dir:a.dir})}})})],4):null]})}},48826:function(e,n,t){"use strict";n.__esModule=!0,n.OperatingComputer=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(85952),i=t(74814),l=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],d=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],s={average:[.25,.5],bad:[.5,Infinity]},u=["bad","average","average","good","average","average","bad"];n.OperatingComputer=function(e,n){var t,r=(0,c.useBackend)(n),l=r.act,d=r.data,s=d.hasOccupant,u=d.choice;return t=u?(0,o.createComponentVNode)(2,C):s?(0,o.createComponentVNode)(2,m):(0,o.createComponentVNode)(2,p),(0,o.createComponentVNode)(2,a.Window,{width:650,height:455,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,i.Tabs,{children:[(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:!u,icon:"user",onClick:function(){return l("choiceOff")},children:"Patient"}),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:!!u,icon:"cog",onClick:function(){return l("choiceOn")},children:"Options"})]}),(0,o.createComponentVNode)(2,i.Section,{flexGrow:"1",children:t})]})})};var m=function(e,n){var t=(0,c.useBackend)(n).data.occupant;return(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Section,{title:"Patient",level:"2",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Name",children:t.name}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Status",color:l[t.stat][0],children:l[t.stat][1]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Health",children:(0,o.createComponentVNode)(2,i.ProgressBar,{min:"0",max:t.maxHealth,value:t.health/t.maxHealth,ranges:{good:[.5,Infinity],average:[0,.5],bad:[-Infinity,0]}})}),d.map((function(e,n){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e[0]+" Damage",children:(0,o.createComponentVNode)(2,i.ProgressBar,{min:"0",max:"100",value:t[e[1]]/100,ranges:s,children:(0,r.round)(t[e[1]])},n)},n)})),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Temperature",children:(0,o.createComponentVNode)(2,i.ProgressBar,{min:"0",max:t.maxTemp,value:t.bodyTemperature/t.maxTemp,color:u[t.temperatureSuitability+3],children:[(0,r.round)(t.btCelsius),"\xb0C, ",(0,r.round)(t.btFaren),"\xb0F"]})}),!!t.hasBlood&&(0,o.createFragment)([(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Blood Level",children:(0,o.createComponentVNode)(2,i.ProgressBar,{min:"0",max:t.bloodMax,value:t.bloodLevel/t.bloodMax,ranges:{bad:[-Infinity,.6],average:[.6,.9],good:[.6,Infinity]},children:[t.bloodPercent,"%, ",t.bloodLevel,"cl"]})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Pulse",children:[t.pulse," BPM"]})],4)]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Current Procedure",level:"2",children:t.surgery&&t.surgery.length?(0,o.createComponentVNode)(2,i.LabeledList,{children:t.surgery.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.name,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Current State",children:e.currentStage}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Possible Next Steps",children:e.nextSteps.map((function(e){return(0,o.createVNode)(1,"div",null,e,0,null,e)}))})]})},e.name)}))}):(0,o.createComponentVNode)(2,i.Box,{color:"label",children:"No procedure ongoing."})})],4)},p=function(){return(0,o.createComponentVNode)(2,i.Flex,{textAlign:"center",height:"100%",children:(0,o.createComponentVNode)(2,i.Flex.Item,{grow:"1",align:"center",color:"label",children:[(0,o.createComponentVNode)(2,i.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),"No patient detected."]})})},C=function(e,n){var t=(0,c.useBackend)(n),r=t.act,a=t.data,l=a.verbose,d=a.health,s=a.healthAlarm,u=a.oxy,m=a.oxyAlarm,p=a.crit;return(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Loudspeaker",children:(0,o.createComponentVNode)(2,i.Button,{selected:l,icon:l?"toggle-on":"toggle-off",content:l?"On":"Off",onClick:function(){return r(l?"verboseOff":"verboseOn")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Health Announcer",children:(0,o.createComponentVNode)(2,i.Button,{selected:d,icon:d?"toggle-on":"toggle-off",content:d?"On":"Off",onClick:function(){return r(d?"healthOff":"healthOn")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Health Announcer Threshold",children:(0,o.createComponentVNode)(2,i.Knob,{bipolar:!0,minValue:"-100",maxValue:"100",value:s,stepPixelSize:"5",ml:"0",format:function(e){return e+"%"},onChange:function(e,n){return r("health_adj",{"new":n})}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Oxygen Alarm",children:(0,o.createComponentVNode)(2,i.Button,{selected:u,icon:u?"toggle-on":"toggle-off",content:u?"On":"Off",onClick:function(){return r(u?"oxyOff":"oxyOn")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Oxygen Alarm Threshold",children:(0,o.createComponentVNode)(2,i.Knob,{bipolar:!0,minValue:"-100",maxValue:"100",value:m,stepPixelSize:"5",ml:"0",onChange:function(e,n){return r("oxy_adj",{"new":n})}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Critical Alert",children:(0,o.createComponentVNode)(2,i.Button,{selected:p,icon:p?"toggle-on":"toggle-off",content:p?"On":"Off",onClick:function(){return r(p?"critOff":"critOn")}})})]})}},51888:function(e,n,t){"use strict";n.__esModule=!0,n.OvermapDisperser=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=t(40754);n.OvermapDisperser=function(e,n){return(0,o.createComponentVNode)(2,a.Window,{width:400,height:550,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,l)})})};var l=function(e,n){var t=(0,r.useBackend)(n),a=t.act,l=t.data,d=l.faillink,s=l.calibration,u=l.overmapdir,m=l.cal_accuracy,p=l.strength,C=l.range,h=l.next_shot,N=l.nopower,V=(l.skill,l.chargeload);return d?(0,o.createComponentVNode)(2,c.Section,{title:"Error",children:"Machine is incomplete, out of range, or misaligned!"}):(0,o.createComponentVNode)(2,c.Flex,{wrap:"wrap",spacing:1,children:[(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"22%",children:(0,o.createComponentVNode)(2,c.Section,{title:"Targeting",textAlign:"center",children:(0,o.createComponentVNode)(2,i.OvermapPanControls,{actToDo:"choose",selected:function(e){return e===u}})})}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"74%",grow:1,children:(0,o.createComponentVNode)(2,c.Section,{title:"Charge",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[N&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Error",children:"At least one part of the machine is unpowered."})||null,(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Charge Load Type",children:V}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Cooldown",children:0===h&&(0,o.createComponentVNode)(2,c.Box,{color:"good",children:"Ready"})||h>1&&(0,o.createComponentVNode)(2,c.Box,{color:"average",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:h})," Seconds",(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Warning: Do not fire during cooldown."})]})||null})]})})}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"50%",mt:1,children:(0,o.createComponentVNode)(2,c.Section,{title:"Calibration",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:m}),"%",(0,o.createComponentVNode)(2,c.Button,{ml:1,icon:"exchange-alt",onClick:function(){return a("skill_calibration")},children:"Pre-Calibration"}),(0,o.createComponentVNode)(2,c.Box,{mt:1,children:s.map((function(e,n){return(0,o.createComponentVNode)(2,c.Box,{children:["Cal #",n,":",(0,o.createComponentVNode)(2,c.Button,{ml:1,icon:"random",onClick:function(){return a("calibration",{calibration:n})},children:e.toString()})]},n)}))})]})}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"45%",grow:1,mt:1,children:(0,o.createComponentVNode)(2,c.Section,{title:"Setup",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Strength",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"fist-raised",onClick:function(){return a("strength")},children:p})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Radius",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"expand-arrows-alt",onClick:function(){return a("range")},children:C})})]})})}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,mt:1,children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,color:"red",icon:"bomb",onClick:function(){return a("fire")},children:"Fire ORB"})})]})}},25123:function(e,n,t){"use strict";n.__esModule=!0,n.OvermapEnginesContent=n.OvermapEngines=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.OvermapEngines=function(e,n){return(0,o.createComponentVNode)(2,a.Window,{width:390,height:530,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,i)})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.global_state,d=i.global_limit,s=i.engines_info,u=i.total_thrust;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Status",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Engines",children:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:l,onClick:function(){return a("global_toggle")},children:l?"Shut All Engines Down":"Start All Engines"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Volume Limit",children:[(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return a("global_limit",{global_limit:-.1})},icon:"minus"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return a("set_global_limit")},children:[d,"%"]}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return a("global_limit",{global_limit:.1})},icon:"plus"})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Total Thrust",children:(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:u})})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Engines",height:"340px",style:{"overflow-y":"auto"},children:s.map((function(e,n){return(0,o.createComponentVNode)(2,c.Flex,{spacing:1,mt:0!==n&&-1,children:[(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"80%",children:(0,o.createComponentVNode)(2,c.Collapsible,{title:(0,o.createComponentVNode)(2,c.Box,{inline:!0,children:["Engine #",n+1," | Thrust: ",(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:e.eng_thrust})," | Limit: ",(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:e.eng_thrust_limiter,format:function(e){return e+"%"}})]}),children:(0,o.createComponentVNode)(2,c.Section,{width:"127%",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Type",children:e.eng_type}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Status",children:[(0,o.createComponentVNode)(2,c.Box,{color:e.eng_on?1===e.eng_on?"good":"average":"bad",children:e.eng_on?1===e.eng_on?"Online":"Booting":"Offline"}),e.eng_status.map((function(e){return Array.isArray(e)?(0,o.createComponentVNode)(2,c.Box,{color:e[1],children:e[0]}):(0,o.createComponentVNode)(2,c.Box,{children:e})}))]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Current Thrust",children:e.eng_thrust}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Volume Limit",children:[(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return a("limit",{limit:-.1,engine:e.eng_reference})},icon:"minus"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return a("set_limit",{engine:e.eng_reference})},children:[e.eng_thrust_limiter,"%"]}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return a("limit",{limit:.1,engine:e.eng_reference})},icon:"plus"})]})]})})})}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"20%",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,iconSpin:-1===e.eng_on,color:-1===e.eng_on?"purple":null,selected:1===e.eng_on,icon:"power-off",onClick:function(){return a("toggle_engine",{engine:e.eng_reference})},children:e.eng_on?1===e.eng_on?"Shutoff":"Booting":"Startup"})})]},n)}))})],4)};n.OvermapEnginesContent=i},63836:function(e,n,t){"use strict";n.__esModule=!0,n.OvermapFull=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=t(25123),l=t(89380),d=t(51932);n.OvermapFull=function(e,n){var t=(0,r.useLocalState)(n,"overmapFullState",0),s=t[0],u=t[1];return(0,o.createComponentVNode)(2,a.Window,{width:800,height:800,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Tabs,{children:[(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:0===s,onClick:function(){return u(0)},children:"Engines"}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:1===s,onClick:function(){return u(1)},children:"Helm"}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:2===s,onClick:function(){return u(2)},children:"Sensors"})]}),0===s&&(0,o.createComponentVNode)(2,i.OvermapEnginesContent),1===s&&(0,o.createComponentVNode)(2,l.OvermapHelmContent),2===s&&(0,o.createComponentVNode)(2,d.OvermapShipSensorsContent)]})})}},89380:function(e,n,t){"use strict";n.__esModule=!0,n.OvermapFlightDataWrap=n.OvermapHelmContent=n.OvermapHelm=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=t(40754);n.OvermapHelm=function(e,n){return(0,o.createComponentVNode)(2,a.Window,{width:565,height:545,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,l)})})};var l=function(e,n){return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Flex,{children:[(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"40%",height:"180px",children:(0,o.createComponentVNode)(2,d)}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"25%",height:"180px",children:(0,o.createComponentVNode)(2,s)}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"35%",height:"180px",children:(0,o.createComponentVNode)(2,u)})]}),(0,o.createComponentVNode)(2,m)],4)};n.OvermapHelmContent=l;var d=function(e,n){var t=(0,r.useBackend)(n);t.act,t.data;return(0,o.createVNode)(1,"fieldset","Section",[(0,o.createVNode)(1,"legend",null,"Flight Data",16),(0,o.createComponentVNode)(2,i.OvermapFlightData)],4,{style:{height:"100%",border:"1px solid #4972a1",margin:"none"}})};n.OvermapFlightDataWrap=d;var s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,l=t.data,d=l.canburn,s=l.manual_control;return(0,o.createVNode)(1,"fieldset","Section",[(0,o.createVNode)(1,"legend",null,"Manual Control",16),(0,o.createComponentVNode)(2,c.Flex,{align:"center",justify:"center",children:(0,o.createComponentVNode)(2,c.Flex.Item,{children:(0,o.createComponentVNode)(2,i.OvermapPanControls,{disabled:!d,actToDo:"move"})})}),(0,o.createComponentVNode)(2,c.Box,{textAlign:"center",mt:1,children:[(0,o.createComponentVNode)(2,c.Box,{bold:!0,underline:!0,children:"Direct Control"}),(0,o.createComponentVNode)(2,c.Button,{selected:s,onClick:function(){return a("manual")},icon:"compass",children:s?"Enabled":"Disabled"})]})],4,{style:{height:"100%",border:"1px solid #4972a1"}})},u=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.dest,d=i.d_x,s=i.d_y,u=i.speedlimit,m=i.autopilot;return i.autopilot_disabled?(0,o.createVNode)(1,"fieldset","Section",[(0,o.createVNode)(1,"legend",null,"Autopilot",16),(0,o.createComponentVNode)(2,c.Box,{textAlign:"center",color:"bad",fontSize:1.2,children:"AUTOPILOT DISABLED"}),(0,o.createComponentVNode)(2,c.Box,{textAlign:"center",color:"average",children:"Warning: This vessel is equipped with a class I autopilot. Class I autopilots are unable to do anything but fly in a straight line directly towards the target, and may result in collisions."}),(0,o.createComponentVNode)(2,c.Box,{textAlign:"center",children:(0,o.createComponentVNode)(2,c.Button.Confirm,{mt:1,color:"bad",content:"Unlock Autopilot",confirmContent:"ACCEPT RISKS?",icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",onClick:function(){return a("apilot_lock")}})})],4,{style:{height:"100%",border:"1px solid #4972a1"}}):(0,o.createVNode)(1,"fieldset","Section",[(0,o.createVNode)(1,"legend",null,"Autopilot",16),(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Target",children:l&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return a("setcoord",{setx:!0})},children:d}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return a("setcoord",{sety:!0})},children:s})],4)||(0,o.createComponentVNode)(2,c.Button,{icon:"pen",onClick:function(){return a("setcoord",{setx:!0,sety:!0})},children:"None"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Speed Limit",children:(0,o.createComponentVNode)(2,c.Button,{icon:"tachometer-alt",onClick:function(){return a("speedlimit")},children:[u," Gm/h"]})})]}),(0,o.createComponentVNode)(2,c.Button,{mt:1,fluid:!0,selected:m,disabled:!l,icon:"robot",onClick:function(){return a("apilot")},children:m?"Engaged":"Disengaged"}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,color:"good",icon:"exclamation-triangle",onClick:function(){return a("apilot_lock")},children:"Lock Autopilot"})],4,{style:{height:"100%",border:"1px solid #4972a1"}})},m=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.sector,d=i.s_x,s=i.s_y,u=i.sector_info,m=i.landed,p=i.locations;return(0,o.createComponentVNode)(2,c.Section,{title:"Navigation Data",m:.3,mt:1,children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Location",children:l}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Coordinates",children:[d," : ",s]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Scan Data",children:u}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Status",children:m})]}),(0,o.createComponentVNode)(2,c.Flex,{mt:1,align:"center",justify:"center",spacing:1,children:[(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"50%",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"save",onClick:function(){return a("add",{add:"current"})},children:"Save Current Position"})}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"50%",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"sticky-note",onClick:function(){return a("add",{add:"new"})},children:"Add New Entry"})})]}),(0,o.createComponentVNode)(2,c.Section,{mt:1,scrollable:!0,height:"130px",children:(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Name"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Coordinates"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Actions"})]}),p.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:[e.x," : ",e.y]}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:[(0,o.createComponentVNode)(2,c.Button,{icon:"rocket",onClick:function(){return a("setds",{x:e.x,y:e.y})},children:"Plot Course"}),(0,o.createComponentVNode)(2,c.Button,{icon:"trash",onClick:function(){return a("remove",{remove:e.reference})},children:"Remove"})]})]},e.name)}))]})})]})}},12640:function(e,n,t){"use strict";n.__esModule=!0,n.OvermapNavigationContent=n.OvermapNavigation=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=t(40754);n.OvermapNavigation=function(e,n){return(0,o.createComponentVNode)(2,a.Window,{width:380,height:530,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,l)})})};var l=function(e,n){var t=(0,r.useBackend)(n),a=t.act,l=t.data,d=l.sector,s=l.s_x,u=l.s_y,m=l.sector_info,p=l.viewing;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Current Location",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"eye",selected:p,onClick:function(){return a("viewing")},children:"Map View"}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Current Location",children:d}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Coordinates",children:[s," : ",u]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Additional Information",children:m})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Flight Data",children:(0,o.createComponentVNode)(2,i.OvermapFlightData,{disableLimiterControls:!0})})],4)};n.OvermapNavigationContent=l},84031:function(e,n,t){"use strict";n.__esModule=!0,n.OvermapShieldGenerator=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.OvermapShieldGenerator=function(e,n){return(0,o.createComponentVNode)(2,a.Window,{width:500,height:760,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,i)})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,s=i.modes,u=i.offline_for;return u?(0,o.createComponentVNode)(2,c.Section,{title:"EMERGENCY SHUTDOWN",color:"bad",children:["An emergency shutdown has been initiated - generator cooling down. Please wait until the generator cools down before resuming operation. Estimated time left: ",u," seconds."]}):(0,o.createFragment)([(0,o.createComponentVNode)(2,l),(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,c.Section,{title:"Field Calibration",children:s.map((function(e){return(0,o.createComponentVNode)(2,c.Section,{title:e.name,level:2,buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:e.status,onClick:function(){return a("toggle_mode",{toggle_mode:e.flag})},children:e.status?"Enabled":"Disabled"}),children:[(0,o.createComponentVNode)(2,c.Box,{color:"label",children:e.desc}),(0,o.createComponentVNode)(2,c.Box,{mt:.5,children:["Multiplier: ",e.multiplier]})]},e.name)}))})],4)},l=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data),i=a.running,l=a.overloaded,d=a.mitigation_max,s=a.mitigation_physical,u=a.mitigation_em,m=a.mitigation_heat,p=a.field_integrity,C=a.max_energy,h=a.current_energy,N=a.percentage_energy,V=a.total_segments,b=a.functional_segments,f=a.field_radius,g=a.target_radius,k=a.input_cap_kw,v=a.upkeep_power_usage,B=a.power_usage,L=a.spinup_counter;return(0,o.createComponentVNode)(2,c.Section,{title:"System Status",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Generator is",children:1===i&&(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"Shutting Down"})||2===i&&(l&&(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Overloaded"})||(0,o.createComponentVNode)(2,c.Box,{color:"good",children:"Running"}))||3===i&&(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"Inactive"})||4===i&&(0,o.createComponentVNode)(2,c.Box,{color:"blue",children:["Spinning Up\xa0",g!==f&&(0,o.createComponentVNode)(2,c.Box,{inline:!0,children:"(Adjusting Radius)"})||(0,o.createComponentVNode)(2,c.Box,{inline:!0,children:[2*L,"s"]})]})||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Offline"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Energy Storage",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:h,maxValue:C,children:[h," / ",C," MJ (",N,"%)"]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Shield Integrity",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:p}),"%"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Mitigation",children:[u,"% EM / ",s,"% PH / ",m,"% HE / ",d,"% MAX"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Upkeep Energy Use",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:v})," kW"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Total Energy Use",children:k&&(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:B,maxValue:k,children:[B," / ",k," kW"]})})||(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:B})," kW (No Limit)"]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Field Size",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:b}),"\xa0/\xa0",(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:V})," m\xb2 (radius ",(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:f}),", target ",(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:g}),")"]})]})})},d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.running,d=i.hacked,s=i.idle_multiplier,u=i.idle_valid_values;return(0,o.createComponentVNode)(2,c.Section,{title:"Controls",buttons:(0,o.createFragment)([l>=2&&(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",onClick:function(){return a("begin_shutdown")},selected:!0,children:"Turn off"}),3===l&&(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",onClick:function(){return a("toggle_idle",{toggle_idle:0})},children:"Activate"})||(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",onClick:function(){return a("toggle_idle",{toggle_idle:1})},selected:!0,children:"Deactivate"})]})||(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",onClick:function(){return a("start_generator")},children:"Turn on"}),l&&d&&(0,o.createComponentVNode)(2,c.Button,{icon:"exclamation-triangle",onClick:function(){return a("emergency_shutdown")},color:"bad",children:"EMERGENCY SHUTDOWN"})||null],0),children:[(0,o.createComponentVNode)(2,c.Button,{icon:"expand-arrows-alt",onClick:function(){return a("set_range")},children:"Set Field Range"}),(0,o.createComponentVNode)(2,c.Button,{icon:"bolt",onClick:function(){return a("set_input_cap")},children:"Set Input Cap"}),(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Set inactive power use intensity",children:u.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{selected:e===s,disabled:4===l,onClick:function(){return a("switch_idle",{switch_idle:e})},children:e},e)}))})})]})}},51932:function(e,n,t){"use strict";n.__esModule=!0,n.OvermapShipSensorsContent=n.OvermapShipSensors=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.OvermapShipSensors=function(e,n){return(0,o.createComponentVNode)(2,a.Window,{width:375,height:545,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,i)})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.viewing,d=i.on,s=i.range,u=i.health,m=i.max_health,p=i.heat,C=i.critical_heat,h=i.status,N=i.contacts;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Status",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"eye",selected:l,onClick:function(){return a("viewing")},children:"Map View"}),(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:d,onClick:function(){return a("toggle_sensor")},children:d?"Sensors Enabled":"Sensors Disabled"})],4),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Status",children:h}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Range",children:(0,o.createComponentVNode)(2,c.Button,{icon:"signal",onClick:function(){return a("range")},children:s})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Integrity",children:(0,o.createComponentVNode)(2,c.ProgressBar,{ranges:{good:[.75*m,Infinity],average:[.25*m,.75*m],bad:[-Infinity,.25*m]},value:u,maxValue:m,children:[u," / ",m]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Temperature",children:(0,o.createComponentVNode)(2,c.ProgressBar,{ranges:{bad:[.75*C,Infinity],average:[.5*C,.75*C],good:[-Infinity,.5*C]},value:p,maxValue:C,children:p<.5*C&&(0,o.createComponentVNode)(2,c.Box,{children:"Temperature low."})||p<.75*C&&(0,o.createComponentVNode)(2,c.Box,{children:"Sensor temperature high!"})||(0,o.createComponentVNode)(2,c.Box,{children:"TEMPERATURE CRITICAL: Disable or reduce power immediately!"})})})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Contacts",children:N.length&&N.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"search",onClick:function(){return a("scan",{scan:e.ref})},children:[(0,o.createComponentVNode)(2,c.Box,{bold:!0,inline:!0,children:["Scan: ",e.name]}),(0,o.createComponentVNode)(2,c.Box,{inline:!0,children:[", bearing: ",e.bearing,"\xb0"]})]},e.ref)}))||(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No contacts on sensors."})}),"MISSING"===i.status&&(0,o.createComponentVNode)(2,c.Section,{title:"Error",children:(0,o.createComponentVNode)(2,c.Button,{icon:"wifi",onClick:function(){return a("link")},children:"Link up with sensor suite?"})})||null],0)};n.OvermapShipSensorsContent=i},57966:function(e,n,t){"use strict";n.__esModule=!0,n.ParticleAccelerator=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.ParticleAccelerator=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.assembled,s=l.power,u=l.strength;return(0,o.createComponentVNode)(2,a.Window,{width:350,height:185,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Status",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"sync",content:"Run Scan",onClick:function(){return i("scan")}}),children:(0,o.createComponentVNode)(2,c.Box,{color:d?"good":"bad",children:d?"Ready - All parts in place":"Unable to detect all parts"})})})}),(0,o.createComponentVNode)(2,c.Section,{title:"Particle Accelerator Controls",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power",children:(0,o.createComponentVNode)(2,c.Button,{icon:s?"power-off":"times",content:s?"On":"Off",selected:s,disabled:!d,onClick:function(){return i("power")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Particle Strength",children:[(0,o.createComponentVNode)(2,c.Button,{icon:"backward",disabled:!d,onClick:function(){return i("remove_strength")}})," ",String(u).padStart(1,"0")," ",(0,o.createComponentVNode)(2,c.Button,{icon:"forward",disabled:!d,onClick:function(){return i("add_strength")}})]})]})})]})})}},80374:function(e,n,t){"use strict";n.__esModule=!0,n.PartsLathe=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=t(2497),l=t(95481);n.PartsLathe=function(e,n){var t=(0,r.useBackend)(n),d=t.act,s=t.data,u=(s.panelOpen,s.copyBoard),m=s.copyBoardReqComponents,p=s.queue,C=s.building,h=s.buildPercent,N=s.error,V=s.recipies;return(0,o.createComponentVNode)(2,a.Window,{width:500,height:500,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[N&&(0,o.createComponentVNode)(2,c.NoticeBox,{danger:!0,children:["Missing Materials: ",N]})||null,(0,o.createComponentVNode)(2,c.Section,{title:"Materials",children:(0,o.createComponentVNode)(2,l.Materials,{displayAllMat:!0})}),C&&(0,o.createComponentVNode)(2,c.Section,{title:"Currently Building",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Name",children:(0,i.toTitleCase)(C)}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Progress",children:(0,o.createComponentVNode)(2,c.ProgressBar,{color:"good",value:h,maxValue:100})})]})})||null,u&&(0,o.createComponentVNode)(2,c.Section,{title:"Circuit Reader",children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Loaded Circuit",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"eject",onClick:function(){return d("ejectBoard")},children:"Eject"}),children:(0,i.toTitleCase)(u)})}),m&&m.length&&(0,o.createFragment)([m.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{children:[e.qty," x ",(0,i.toTitleCase)(e.name)]},e.name)})),(0,o.createComponentVNode)(2,c.Button,{icon:"wrench",onClick:function(){return d("queueBoard")},children:"Build All"})],0)||(0,o.createComponentVNode)(2,c.Box,{children:"Board has no required components."})]}),(0,o.createComponentVNode)(2,c.Section,{title:"Queue",children:p.length&&p.map((function(e,n){return(0,o.createComponentVNode)(2,c.Box,{color:"label",children:["#",n+1,": ",(0,i.toTitleCase)(e),(n>0||!C)&&(0,o.createComponentVNode)(2,c.Button,{ml:1,icon:"times",onClick:function(){return d("cancel",{cancel:n+1})},children:"Cancel"})||null]},e)}))||(0,o.createComponentVNode)(2,c.NoticeBox,{info:!0,children:"Queue Empty"})}),(0,o.createComponentVNode)(2,c.Section,{title:"Recipes",children:V.length&&V.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"wrench",onClick:function(){return d("queue",{queue:e.type})},children:(0,i.toTitleCase)(e.name)})},e.name)}))})]})})}},83987:function(e,n,t){"use strict";n.__esModule=!0,n.PathogenicIsolator=void 0;var o=t(39812),r=(t(41860),t(58083),t(71494)),c=t(16007),a=t(74814),i=t(85952),l=function(e,n){var t=(0,r.useBackend)(n),c=t.act,i=t.data.can_print,l=e.args;return(0,o.createComponentVNode)(2,a.Section,{level:2,m:"-1rem",title:l.name||"Virus",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{disabled:!i,icon:"print",content:"Print",onClick:function(){return c("print",{type:"virus_record",vir:l.record})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"times",color:"red",onClick:function(){return c("modal_close")}})],4),children:(0,o.createComponentVNode)(2,a.Box,{mx:"0.5rem",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Spread",children:[l.spread_text," Transmission"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Possible cure",children:l.antigen}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Rate of Progression",children:l.rate}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Antibiotic Resistance",children:[l.resistance,"%"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Species Affected",children:l.species}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Symptoms",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:l.symptoms.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.stage+". "+e.name,children:[(0,o.createComponentVNode)(2,a.Box,{inline:!0,children:[(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:"label",children:"Strength:"})," ",e.strength,"\xa0"]}),(0,o.createComponentVNode)(2,a.Box,{inline:!0,children:[(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:"label",children:"Aggressiveness:"})," ",e.aggressiveness]})]},e.stage)}))})})]})})})};n.PathogenicIsolator=function(e,n){var t=(0,r.useBackend)(n),u=(t.act,t.data.isolating),m=(0,r.useLocalState)(n,"tabIndex",0),p=m[0],C=m[1],h=null;return 0===p?h=(0,o.createComponentVNode)(2,d):1===p&&(h=(0,o.createComponentVNode)(2,s)),(0,c.modalRegisterBodyOverride)("virus",l),(0,o.createComponentVNode)(2,i.Window,{height:500,width:520,resizable:!0,children:[(0,o.createComponentVNode)(2,c.ComplexModal,{maxHeight:"100%",maxWidth:"95%"}),(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[u&&(0,o.createComponentVNode)(2,a.NoticeBox,{warning:!0,children:"The Isolator is currently isolating..."})||null,(0,o.createComponentVNode)(2,a.Tabs,{children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:0===p,onClick:function(){return C(0)},children:"Home"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:1===p,onClick:function(){return C(1)},children:"Database"})]}),h]})]})};var d=function(e,n){var t=(0,r.useBackend)(n),c=t.act,i=t.data,l=i.syringe_inserted,d=i.pathogen_pool,s=i.can_print;return(0,o.createComponentVNode)(2,a.Section,{title:"Pathogens",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"print",content:"Print",disabled:!s,onClick:function(){return c("print",{type:"patient_diagnosis"})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"eject",content:"Eject Syringe",disabled:!l,onClick:function(){return c("eject")}})],4),children:d.length&&d.map((function(e){return(0,o.createComponentVNode)(2,a.Section,{children:[(0,o.createComponentVNode)(2,a.Box,{color:"label",children:(0,o.createComponentVNode)(2,a.Flex,{align:"center",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:[(0,o.createVNode)(1,"u",null,[(0,o.createTextVNode)("Stamm #"),e.unique_id],0),e.is_in_database?" (Analyzed)":" (Not Analyzed)"]}),(0,o.createComponentVNode)(2,a.Flex.Item,{children:[(0,o.createComponentVNode)(2,a.Button,{icon:"virus",content:"Isolate",onClick:function(){return c("isolate",{isolate:e.reference})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"search",content:"Database",disabled:!e.is_in_database,onClick:function(){return c("view_entry",{vir:e.record})}})]})]})}),(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Box,{color:"average",mb:1,children:e.name}),e.dna]})]},e.unique_id)}))||(l?(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"No samples detected."}):(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"No syringe inserted."}))})},s=function(e,n){var t=(0,r.useBackend)(n),c=t.act,i=t.data,l=i.database,d=i.can_print;return(0,o.createComponentVNode)(2,a.Section,{title:"Database",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"print",content:"Print",disabled:!d,onClick:function(){return c("print",{type:"virus_list"})}}),children:l.length&&l.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"search",onClick:function(){return c("view_entry",{vir:e.record})},children:e.name},e.name)}))||(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"The viral database is empty."})})}},72586:function(e,n,t){"use strict";n.__esModule=!0,n.Pda=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=t(73218),l=t(75168);n.Pda=function(e,n){var t=(0,r.useBackend)(n),m=(t.act,t.data),p=m.app,C=m.owner,h=m.useRetro;if(!C)return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{stretchContents:!0,children:"Warning: No ID information found! Please swipe ID!"})})});var N=function(e){var n;try{n=l("./"+e+".js")}catch(t){if("MODULE_NOT_FOUND"===t.code)return(0,i.routingError)("notFound",e);throw t}return n[e]||(0,i.routingError)("missingExport",e)}(p.template),V=(0,r.useLocalState)(n,"settingsMode",!1),b=V[0],f=V[1];return(0,o.createComponentVNode)(2,a.Window,{width:580,height:670,theme:h?"pda-retro":null,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,d,{settingsMode:b,setSettingsMode:f}),b&&(0,o.createComponentVNode)(2,s)||(0,o.createComponentVNode)(2,c.Section,{title:(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Icon,{name:p.icon,mr:1}),p.name]}),p:1,children:(0,o.createComponentVNode)(2,N)}),(0,o.createComponentVNode)(2,c.Box,{mb:8}),(0,o.createComponentVNode)(2,u,{setSettingsMode:f})]})})};var d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=e.settingsMode,d=e.setSettingsMode,s=i.idInserted,u=i.idLink,m=(i.cartridge_name,i.stationTime);return(0,o.createComponentVNode)(2,c.Box,{mb:1,children:(0,o.createComponentVNode)(2,c.Flex,{align:"center",justify:"space-between",children:[!!s&&(0,o.createComponentVNode)(2,c.Flex.Item,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"eject",color:"transparent",onClick:function(){return a("Authenticate")},content:u})}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,textAlign:"center",bold:!0,children:m}),(0,o.createComponentVNode)(2,c.Flex.Item,{children:[(0,o.createComponentVNode)(2,c.Button,{selected:l,onClick:function(){return d(!l)},icon:"cog"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return a("Retro")},icon:"adjust"})]})]})})},s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.idInserted,d=i.idLink,s=i.cartridge_name,u=i.touch_silent;return(0,o.createComponentVNode)(2,c.Section,{title:"Settings",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"R.E.T.R.O Mode",children:(0,o.createComponentVNode)(2,c.Button,{icon:"cog",content:"Retro Theme",onClick:function(){return a("Retro")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Touch Sounds",children:(0,o.createComponentVNode)(2,c.Button,{icon:"cog",selected:!u,content:u?"Disabled":"Enabled",onClick:function(){return a("TouchSounds")}})}),!!s&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Cartridge",children:(0,o.createComponentVNode)(2,c.Button,{icon:"eject",onClick:function(){return a("Eject")},content:s})}),!!l&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"ID Card",children:(0,o.createComponentVNode)(2,c.Button,{icon:"eject",onClick:function(){return a("Authenticate")},content:d})})]})})},u=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=e.setSettingsMode,d=i.app,s=i.useRetro;return(0,o.createComponentVNode)(2,c.Box,{position:"fixed",bottom:"0%",left:"0%",right:"0%",backgroundColor:s?"#6f7961":"#1b1b1b",children:(0,o.createComponentVNode)(2,c.Flex,{children:[(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"33%",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,color:"transparent",iconColor:d.has_back?"white":"disabled",textAlign:"center",icon:"undo",mb:0,fontSize:1.7,onClick:function(){return a("Back")}})}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"33%",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,color:"transparent",iconColor:d.is_home?"disabled":"white",textAlign:"center",icon:"home",mb:0,fontSize:1.7,onClick:function(){l(!1),a("Home")}})})]})})}},67589:function(e,n,t){"use strict";n.__esModule=!0,n.PersonalCrafting=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);function i(e,n){var t;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(t=function(e,n){if(!e)return;if("string"==typeof e)return l(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return l(e,n)}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var o=0;return function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(t=e[Symbol.iterator]()).next.bind(t)}function l(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,o=new Array(n);t=.5?"good":s>.15&&"average")||"bad";return(0,o.createComponentVNode)(2,a.Window,{width:450,height:340,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[!d.anchored&&(0,o.createComponentVNode)(2,c.NoticeBox,{children:"Generator not anchored."}),(0,o.createComponentVNode)(2,c.Section,{title:"Status",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power switch",children:(0,o.createComponentVNode)(2,c.Button,{icon:d.active?"power-off":"times",onClick:function(){return l("toggle_power")},selected:d.active,disabled:!d.ready_to_boot,children:d.active?"On":"Off"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Fuel Type",buttons:d.fuel_stored>=1&&(0,o.createComponentVNode)(2,c.Button,{ml:1,icon:"eject",disabled:d.active,onClick:function(){return l("eject")},children:"Eject"}),children:(0,o.createComponentVNode)(2,c.Box,{color:u,children:[d.fuel_stored,"cm\xb3 ",d.sheet_name]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Current fuel level",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:d.fuel_stored/d.fuel_capacity,ranges:{good:[.5,Infinity],average:[.15,.5],bad:[-Infinity,.15]},children:[d.fuel_stored,"cm\xb3 / ",d.fuel_capacity,"cm\xb3"]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Fuel Usage",children:[d.fuel_usage," cm\xb3/s"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Temperature",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:d.temperature_current,maxValue:d.temperature_max+30,color:d.temperature_overheat?"bad":"good",children:[(0,i.round)(d.temperature_current),"\xb0C"]})})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Output",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Current output",color:d.unsafe_output?"bad":null,children:d.power_output}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Adjust output",children:[(0,o.createComponentVNode)(2,c.Button,{icon:"minus",onClick:function(){return l("lower_power")},children:d.power_generated}),(0,o.createComponentVNode)(2,c.Button,{icon:"plus",onClick:function(){return l("higher_power")},children:d.power_generated})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power available",children:(0,o.createComponentVNode)(2,c.Box,{inline:!0,color:!d.connected&&"bad",children:d.connected?d.power_available:"Unconnected"})})]})})]})})}},82564:function(e,n,t){"use strict";n.__esModule=!0,n.PortablePump=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=t(34227);n.PortablePump=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data,s=d.direction,u=d.target_pressure,m=d.default_pressure,p=d.min_pressure,C=d.max_pressure;return(0,o.createComponentVNode)(2,a.Window,{width:330,height:375,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,i.PortableBasicInfo),(0,o.createComponentVNode)(2,c.Section,{title:"Pump",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:s?"sign-in-alt":"sign-out-alt",content:s?"In":"Out",selected:s,onClick:function(){return l("direction")}}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Output",children:(0,o.createComponentVNode)(2,c.Slider,{mt:"0.4em",animated:!0,minValue:p,maxValue:C,value:u,unit:"kPa",stepPixelSize:.3,onChange:function(e,n){return l("pressure",{pressure:n})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Presets",children:[(0,o.createComponentVNode)(2,c.Button,{icon:"minus",disabled:u===p,onClick:function(){return l("pressure",{pressure:"min"})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"sync",disabled:u===m,onClick:function(){return l("pressure",{pressure:"reset"})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"plus",disabled:u===C,onClick:function(){return l("pressure",{pressure:"max"})}})]})]})})]})})}},24901:function(e,n,t){"use strict";n.__esModule=!0,n.PortableScrubber=void 0;var o=t(39812),r=t(71494),c=t(74814),a=(t(76270),t(85952)),i=t(34227);n.PortableScrubber=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data,s=d.rate,u=d.minrate,m=d.maxrate;return(0,o.createComponentVNode)(2,a.Window,{width:320,height:350,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,i.PortableBasicInfo),(0,o.createComponentVNode)(2,c.Section,{title:"Power Regulator",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Volume Rate",children:(0,o.createComponentVNode)(2,c.Slider,{mt:"0.4em",animated:!0,minValue:u,maxValue:m,value:s,unit:"L/s",onChange:function(e,n){return l("volume_adj",{vol:n})}})})})})]})})}},31695:function(e,n,t){"use strict";n.__esModule=!0,n.PortableTurret=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.PortableTurret=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.locked,s=l.on,u=l.lethal,m=l.lethal_is_configurable,p=l.targetting_is_configurable,C=l.check_weapons,h=l.neutralize_noaccess,N=l.neutralize_norecord,V=l.neutralize_criminals,b=l.neutralize_all,f=l.neutralize_nonsynth,g=l.neutralize_unidentified,k=l.neutralize_down;return(0,o.createComponentVNode)(2,a.Window,{width:500,height:400,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.NoticeBox,{children:["Swipe an ID card to ",d?"unlock":"lock"," this interface."]}),(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Status",children:(0,o.createComponentVNode)(2,c.Button,{icon:s?"power-off":"times",content:s?"On":"Off",selected:s,disabled:d,onClick:function(){return i("power")}})}),!!m&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Lethals",children:(0,o.createComponentVNode)(2,c.Button,{icon:u?"exclamation-triangle":"times",content:u?"On":"Off",color:u?"bad":"",disabled:d,onClick:function(){return i("lethal")}})})]})}),!!p&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Humanoid Targets",children:[(0,o.createComponentVNode)(2,c.Button.Checkbox,{fluid:!0,checked:V,content:"Wanted Criminals",disabled:d,onClick:function(){return i("autharrest")}}),(0,o.createComponentVNode)(2,c.Button.Checkbox,{fluid:!0,checked:N,content:"No Sec Record",disabled:d,onClick:function(){return i("authnorecord")}}),(0,o.createComponentVNode)(2,c.Button.Checkbox,{fluid:!0,checked:C,content:"Unauthorized Weapons",disabled:d,onClick:function(){return i("authweapon")}}),(0,o.createComponentVNode)(2,c.Button.Checkbox,{fluid:!0,checked:h,content:"Unauthorized Access",disabled:d,onClick:function(){return i("authaccess")}})]}),(0,o.createComponentVNode)(2,c.Section,{title:"Other Targets",children:[(0,o.createComponentVNode)(2,c.Button.Checkbox,{fluid:!0,checked:g,content:"Unidentified Lifesigns (Xenos, Animals, Etc)",disabled:d,onClick:function(){return i("authxeno")}}),(0,o.createComponentVNode)(2,c.Button.Checkbox,{fluid:!0,checked:f,content:"All Non-Synthetics",disabled:d,onClick:function(){return i("authsynth")}}),(0,o.createComponentVNode)(2,c.Button.Checkbox,{fluid:!0,checked:k,content:"Downed Targets",disabled:d,onClick:function(){return i("authdown")}}),(0,o.createComponentVNode)(2,c.Button.Checkbox,{fluid:!0,checked:b,content:"All Entities",disabled:d,onClick:function(){return i("authall")}})]})],4)]})})}},89793:function(e,n,t){"use strict";n.__esModule=!0,n.AreaCharge=n.PowerMonitorFocus=n.PowerMonitorContent=n.PowerMonitor=n.powerRank=void 0;var o=t(39812),r=t(64499),c=t(85531),a=t(41860),i=t(34380),l=t(71494),d=t(74814),s=t(85952),u=5e5,m=function(e){var n=String(e.split(" ")[1]).toLowerCase();return["w","kw","mw","gw"].indexOf(n)};n.powerRank=m;n.PowerMonitor=function(){return(0,o.createComponentVNode)(2,s.Window,{width:550,height:700,resizable:!0,children:(0,o.createComponentVNode)(2,s.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,p)})})};var p=function(e,n){var t=(0,l.useBackend)(n),r=t.act,c=t.data,a=(c.map_levels,c.all_sensors),i=c.focus;if(i)return(0,o.createComponentVNode)(2,C,{focus:i});var s=(0,o.createComponentVNode)(2,d.Box,{color:"bad",children:"No sensors detected"});return a&&(s=(0,o.createComponentVNode)(2,d.Table,{children:a.map((function(e){return(0,o.createComponentVNode)(2,d.Table.Row,{children:(0,o.createComponentVNode)(2,d.Table.Cell,{children:(0,o.createComponentVNode)(2,d.Button,{content:e.name,icon:e.alarm?"bell":"sign-in-alt",onClick:function(){return r("setsensor",{id:e.name})}})})},e.name)}))})),(0,o.createComponentVNode)(2,d.Section,{title:"No active sensor. Listing all.",buttons:(0,o.createComponentVNode)(2,d.Button,{content:"Scan For Sensors",icon:"undo",onClick:function(){return r("refresh")}}),children:s})};n.PowerMonitorContent=p;var C=function(e,n){var t=(0,l.useBackend)(n),i=t.act,s=(t.data,e.focus),p=s.history,C=(0,l.useLocalState)(n,"sortByField",null),V=C[0],b=C[1],f=p.supply[p.supply.length-1]||0,g=p.demand[p.demand.length-1]||0,k=p.supply.map((function(e,n){return[n,e]})),v=p.demand.map((function(e,n){return[n,e]})),B=Math.max.apply(Math,[u].concat(p.supply,p.demand)),L=(0,c.flow)([(0,r.map)((function(e,n){return Object.assign({},e,{id:e.name+n})})),"name"===V&&(0,r.sortBy)((function(e){return e.name})),"charge"===V&&(0,r.sortBy)((function(e){return-e.charge})),"draw"===V&&(0,r.sortBy)((function(e){return-m(e.load)}),(function(e){return-parseFloat(e.load)})),"problems"===V&&(0,r.sortBy)((function(e){return e.eqp}),(function(e){return e.lgt}),(function(e){return e.env}),(function(e){return e.charge}),(function(e){return e.name}))])(s.areas);return(0,o.createFragment)([(0,o.createComponentVNode)(2,d.Section,{title:s.name,buttons:(0,o.createComponentVNode)(2,d.Button,{icon:"sign-out-alt",content:"Back To Main",onClick:function(){return i("clear")}})}),(0,o.createComponentVNode)(2,d.Flex,{mx:-.5,mb:1,children:[(0,o.createComponentVNode)(2,d.Flex.Item,{mx:.5,width:"200px",children:(0,o.createComponentVNode)(2,d.Section,{children:(0,o.createComponentVNode)(2,d.LabeledList,{children:[(0,o.createComponentVNode)(2,d.LabeledList.Item,{label:"Supply",children:(0,o.createComponentVNode)(2,d.ProgressBar,{value:f,minValue:0,maxValue:B,color:"teal",children:(0,a.toFixed)(f/1e3)+" kW"})}),(0,o.createComponentVNode)(2,d.LabeledList.Item,{label:"Draw",children:(0,o.createComponentVNode)(2,d.ProgressBar,{value:g,minValue:0,maxValue:B,color:"pink",children:(0,a.toFixed)(g/1e3)+" kW"})})]})})}),(0,o.createComponentVNode)(2,d.Flex.Item,{mx:.5,grow:1,children:(0,o.createComponentVNode)(2,d.Section,{position:"relative",height:"100%",children:[(0,o.createComponentVNode)(2,d.Chart.Line,{fillPositionedParent:!0,data:k,rangeX:[0,k.length-1],rangeY:[0,B],strokeColor:"rgba(0, 181, 173, 1)",fillColor:"rgba(0, 181, 173, 0.25)"}),(0,o.createComponentVNode)(2,d.Chart.Line,{fillPositionedParent:!0,data:v,rangeX:[0,v.length-1],rangeY:[0,B],strokeColor:"rgba(224, 57, 151, 1)",fillColor:"rgba(224, 57, 151, 0.25)"})]})})]}),(0,o.createComponentVNode)(2,d.Section,{children:[(0,o.createComponentVNode)(2,d.Box,{mb:1,children:[(0,o.createComponentVNode)(2,d.Box,{inline:!0,mr:2,color:"label",children:"Sort by:"}),(0,o.createComponentVNode)(2,d.Button.Checkbox,{checked:"name"===V,content:"Name",onClick:function(){return b("name"!==V&&"name")}}),(0,o.createComponentVNode)(2,d.Button.Checkbox,{checked:"charge"===V,content:"Charge",onClick:function(){return b("charge"!==V&&"charge")}}),(0,o.createComponentVNode)(2,d.Button.Checkbox,{checked:"draw"===V,content:"Draw",onClick:function(){return b("draw"!==V&&"draw")}}),(0,o.createComponentVNode)(2,d.Button.Checkbox,{checked:"problems"===V,content:"Problems",onClick:function(){return b("problems"!==V&&"problems")}})]}),(0,o.createComponentVNode)(2,d.Table,{children:[(0,o.createComponentVNode)(2,d.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,d.Table.Cell,{children:"Area"}),(0,o.createComponentVNode)(2,d.Table.Cell,{collapsing:!0,children:"Charge"}),(0,o.createComponentVNode)(2,d.Table.Cell,{textAlign:"right",children:"Draw"}),(0,o.createComponentVNode)(2,d.Table.Cell,{collapsing:!0,title:"Equipment",children:"Eqp"}),(0,o.createComponentVNode)(2,d.Table.Cell,{collapsing:!0,title:"Lighting",children:"Lgt"}),(0,o.createComponentVNode)(2,d.Table.Cell,{collapsing:!0,title:"Environment",children:"Env"})]}),L.map((function(e,n){return(0,o.createVNode)(1,"tr","Table__row candystripe",[(0,o.createVNode)(1,"td",null,e.name,0),(0,o.createVNode)(1,"td","Table__cell text-right text-nowrap",(0,o.createComponentVNode)(2,h,{charging:e.charging,charge:e.charge}),2),(0,o.createVNode)(1,"td","Table__cell text-right text-nowrap",e.load,0),(0,o.createVNode)(1,"td","Table__cell text-center text-nowrap",(0,o.createComponentVNode)(2,N,{status:e.eqp}),2),(0,o.createVNode)(1,"td","Table__cell text-center text-nowrap",(0,o.createComponentVNode)(2,N,{status:e.lgt}),2),(0,o.createVNode)(1,"td","Table__cell text-center text-nowrap",(0,o.createComponentVNode)(2,N,{status:e.env}),2)],4,null,e.id)}))]})]})],4)};n.PowerMonitorFocus=C;var h=function(e){var n=e.charging,t=e.charge;return(0,o.createFragment)([(0,o.createComponentVNode)(2,d.Icon,{width:"18px",textAlign:"center",name:0===n&&(t>50?"battery-half":"battery-quarter")||1===n&&"bolt"||2===n&&"battery-full",color:0===n&&(t>50?"yellow":"red")||1===n&&"yellow"||2===n&&"green"}),(0,o.createComponentVNode)(2,d.Box,{inline:!0,width:"36px",textAlign:"right",children:(0,a.toFixed)(t)+"%"})],4)};n.AreaCharge=h,h.defaultHooks=i.pureComponentHooks;var N=function(e){var n=e.status,t=Boolean(2&n),r=Boolean(1&n),c=(t?"On":"Off")+" ["+(r?"auto":"manual")+"]";return(0,o.createComponentVNode)(2,d.ColorBox,{color:t?"good":"bad",content:r?undefined:"M",title:c})};N.defaultHooks=i.pureComponentHooks},81121:function(e,n,t){"use strict";n.__esModule=!0,n.PressureRegulator=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.PressureRegulator=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.on,s=l.pressure_set,u=(l.max_pressure,l.input_pressure),m=l.output_pressure,p=l.regulate_mode,C=l.set_flow_rate,h=l.last_flow_rate;return(0,o.createComponentVNode)(2,a.Window,{width:470,height:370,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{title:"Status",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Input Pressure",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:u/100})," kPa"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Output Pressure",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:m/100})," kPa"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Flow Rate",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:h/10})," L/s"]})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Controls",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",content:d?"Unlocked":"Closed",selected:d,onClick:function(){return i("toggle_valve")}}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Pressure Regulation",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",content:"Off",selected:0===p,onClick:function(){return i("regulate_mode",{mode:"off"})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"compress-arrows-alt",content:"Input",selected:1===p,onClick:function(){return i("regulate_mode",{mode:"input"})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"expand-arrows-alt",content:"Output",selected:2===p,onClick:function(){return i("regulate_mode",{mode:"output"})}})],4)}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Desired Output Pressure",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"compress-arrows-alt",content:"MIN",onClick:function(){return i("set_press",{press:"min"})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"expand-arrows-alt",content:"MAX",onClick:function(){return i("set_press",{press:"max"})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"wrench",content:"SET",onClick:function(){return i("set_press",{press:"set"})}})],4),children:[s/100," kPa"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Flow Rate Limit",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"compress-arrows-alt",content:"MIN",onClick:function(){return i("set_flow_rate",{press:"min"})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"expand-arrows-alt",content:"MAX",onClick:function(){return i("set_flow_rate",{press:"max"})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"wrench",content:"SET",onClick:function(){return i("set_flow_rate",{press:"set"})}})],4),children:[C/10," L/s"]})]})})]})})}},14210:function(e,n,t){"use strict";n.__esModule=!0,n.PrisonerManagement=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);t(58083);n.PrisonerManagement=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.locked,s=l.chemImplants,u=l.trackImplants;return(0,o.createComponentVNode)(2,a.Window,{width:500,height:400,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:d&&(0,o.createComponentVNode)(2,c.Section,{title:"Locked",textAlign:"center",children:["This interface is currently locked.",(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"unlock",onClick:function(){return i("lock")},children:"Unlock"})})]})||(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Interface Lock",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"lock",onClick:function(){return i("lock")},children:"Lock Interface"})}),(0,o.createComponentVNode)(2,c.Section,{title:"Chemical Implants",children:s.length&&(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:"Host"}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:"Units Remaining"}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:"Inject"})]}),s.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:e.host}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:[e.units,"u remaining"]}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:[(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("inject",{imp:e.ref,val:1})},children:"(1)"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("inject",{imp:e.ref,val:5})},children:"(5)"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("inject",{imp:e.ref,val:10})},children:"(10)"})]})]},e.ref)}))]})||(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No chemical implants found."})}),(0,o.createComponentVNode)(2,c.Section,{title:"Tracking Implants",children:u.length&&(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:"Host"}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:"Location"}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:"Message"})]}),u.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:[e.host," (",e.id,")"]}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:e.loc}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("warn",{imp:e.ref})},children:"Message"})})]},e.ref)}))]})||(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No chemical implants found."})})],4)})})}},43996:function(e,n,t){"use strict";n.__esModule=!0,n.RCONContent=n.RCON=void 0;var o=t(39812),r=t(41860),c=t(58083),a=t(71494),i=t(74814),l=t(85952),d=t(2497),s=1e3;n.RCON=function(e,n){return(0,o.createComponentVNode)(2,l.Window,{width:630,height:440,resizable:!0,children:(0,o.createComponentVNode)(2,l.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,u)})})};var u=function(e,n){var t,r=(0,a.useLocalState)(n,"tabIndex",0),c=r[0],l=r[1];return 0===c?t=(0,o.createComponentVNode)(2,m):1===c&&(t=(0,o.createComponentVNode)(2,h)),(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Tabs,{children:[(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:0===c,onClick:function(){return l(0)},children:[(0,o.createComponentVNode)(2,i.Icon,{name:"power-off"})," SMESs"]},"SMESs"),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:1===c,onClick:function(){return l(1)},children:[(0,o.createComponentVNode)(2,i.Icon,{name:"bolt"})," Breakers"]},"Breakers")]}),(0,o.createComponentVNode)(2,i.Box,{m:2,children:t})],4)};n.RCONContent=u;var m=function(e,n){var t=(0,a.useBackend)(n),r=(t.act,t.data.smes_info);return(0,o.createComponentVNode)(2,i.Section,{title:"SMESs",children:(0,o.createComponentVNode)(2,i.Stack,{vertical:!0,children:r.map((function(e){return(0,o.createComponentVNode)(2,i.Stack.Item,{children:(0,o.createComponentVNode)(2,p,{smes:e})},e.RCON_tag)}))})})},p=function(e,n){(0,a.useBackend)(n).act;var t=e.smes,c=t.capacityPercent,l=t.capacity,d=t.charge,s=(t.inputAttempt,t.inputting,t.inputLevel,t.inputLevelMax,t.inputAvailable,t.outputAttempt,t.outputting,t.outputLevel,t.outputLevelMax,t.outputUsed,t.RCON_tag);return(0,o.createComponentVNode)(2,i.Stack,{vertical:!0,children:[(0,o.createComponentVNode)(2,i.Stack.Item,{children:(0,o.createComponentVNode)(2,i.Stack,{fill:!0,justify:"space-between",children:[(0,o.createComponentVNode)(2,i.Stack.Item,{flexBasis:"40%",fontSize:1.2,children:s}),(0,o.createComponentVNode)(2,i.Stack.Item,{grow:1,children:(0,o.createComponentVNode)(2,i.ProgressBar,{value:.01*c,ranges:{good:[.5,Infinity],average:[.15,.5],bad:[-Infinity,.15]},children:[(0,r.round)(d/6e4,1)," kWh / ",(0,r.round)(l/6e4)," kWh (",c,"%)"]})})]})}),(0,o.createComponentVNode)(2,i.Stack.Item,{children:(0,o.createComponentVNode)(2,C,{smes:e.smes,way:"input"})}),(0,o.createComponentVNode)(2,i.Stack.Item,{children:(0,o.createComponentVNode)(2,C,{smes:e.smes,way:"output"})}),(0,o.createComponentVNode)(2,i.Stack.Divider)]})},C=function(e,n){var t,r,l,u,m,p,C,h=(0,a.useBackend)(n).act,N=e.way,V=e.smes,b=(V.capacityPercent,V.capacity,V.charge,V.inputAttempt),f=V.inputting,g=V.inputLevel,k=V.inputLevelMax,v=V.inputAvailable,B=V.outputAttempt,L=V.outputting,_=V.outputLevel,x=V.outputLevelMax,w=V.outputUsed,S=V.RCON_tag;switch(N){case"input":t=g,r=k,l=v,"IN",u="smes_in_toggle",m="smes_in_set",b,p=b?f?"green":"yellow":null,C=b?f?"The SMES is drawing power.":"The SMES lacks power.":"The SMES input is off.";break;case"output":t=_,r=x,l=w,"OUT",u="smes_out_toggle",m="smes_out_set",B,p=B?L?"green":"yellow":null,C=B?L?"The SMES is outputting power.":"The SMES lacks any draw.":"The SMES output is off."}return(0,o.createComponentVNode)(2,i.Stack,{fill:!0,children:[(0,o.createComponentVNode)(2,i.Stack.Item,{basis:"20%",children:(0,d.capitalize)(N)}),(0,o.createComponentVNode)(2,i.Stack.Item,{grow:1,children:(0,o.createComponentVNode)(2,i.Stack,{children:[(0,o.createComponentVNode)(2,i.Stack.Item,{children:(0,o.createComponentVNode)(2,i.Button,{icon:"power-off",color:p,tooltip:C,onClick:function(){return h(u,{smes:S})}})}),(0,o.createComponentVNode)(2,i.Stack.Item,{children:[(0,o.createComponentVNode)(2,i.Button,{icon:"fast-backward",disabled:0===t,onClick:function(){return h(m,{target:"min",smes:S})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"backward",disabled:0===t,onClick:function(){return h(m,{adjust:-1e4,smes:S})}})]}),(0,o.createComponentVNode)(2,i.Stack.Item,{grow:1,children:(0,o.createComponentVNode)(2,i.Slider,{value:t/s,fillValue:l/s,minValue:0,maxValue:r/s,step:5,stepPixelSize:4,format:function(e){return(0,c.formatPower)(l,1)+"/"+(0,c.formatPower)(e*s,1)},onDrag:function(e,n){return h(m,{target:n*s,smes:S})}})}),(0,o.createComponentVNode)(2,i.Stack.Item,{children:[(0,o.createComponentVNode)(2,i.Button,{icon:"forward",disabled:t===r,onClick:function(){return h(m,{adjust:1e4,smes:S})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"fast-forward",disabled:t===r,onClick:function(){return h(m,{target:"max",smes:S})}})]})]})})]})},h=function(e,n){var t=(0,a.useBackend)(n),r=t.act,c=t.data.breaker_info;return(0,o.createComponentVNode)(2,i.Section,{title:"Breakers",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:c?c.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.RCON_tag,buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"power-off",content:e.enabled?"Enabled":"Disabled",selected:e.enabled,color:e.enabled?null:"bad",onClick:function(){return r("toggle_breaker",{breaker:e.RCON_tag})}})},e.RCON_tag)})):(0,o.createComponentVNode)(2,i.LabeledList.Item,{color:"bad",children:"No breakers detected."})})})}},92141:function(e,n,t){"use strict";n.__esModule=!0,n.RIGSuit=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=t(2497);n.RIGSuit=function(e,n){var t=(0,r.useBackend)(n),i=(t.act,t.data),u=i.interfacelock,m=i.malf,p=i.aicontrol,C=i.ai,h=null;return u||m?h=(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"--HARDSUIT INTERFACE OFFLINE--"}):!C&&p&&(h=(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"-- HARDSUIT CONTROL OVERRIDDEN BY AI --"})),(0,o.createComponentVNode)(2,a.Window,{height:480,width:550,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:h||(0,o.createFragment)([(0,o.createComponentVNode)(2,l),(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,s)],4)})})};var l=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.chargestatus,d=i.charge,s=i.maxcharge,u=i.aioverride,m=i.sealing,p=i.sealed,C=i.cooling,h=i.emagged,N=i.securitycheck,V=i.coverlock,b=(0,o.createComponentVNode)(2,c.Button,{content:"Suit "+(m?"seals working...":p?"is Active":"is Inactive"),icon:m?"redo":p?"power-off":"lock-open",iconSpin:m,disabled:m,selected:p,onClick:function(){return a("toggle_seals")}}),f=(0,o.createComponentVNode)(2,c.Button,{content:"Suit Cooling "+(C?"is Active":"is Inactive"),icon:"power-off",selected:C,onClick:function(){return a("toggle_cooling")}}),g=(0,o.createComponentVNode)(2,c.Button,{content:"AI Control "+(u?"Enabled":"Disabled"),selected:u,icon:"robot",onClick:function(){return a("toggle_ai_control")}});return(0,o.createComponentVNode)(2,c.Section,{title:"Status",buttons:(0,o.createFragment)([b,g,f],0),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power Supply",children:(0,o.createComponentVNode)(2,c.ProgressBar,{minValue:0,maxValue:50,value:l,ranges:{good:[35,Infinity],average:[15,35],bad:[-Infinity,15]},children:[d," / ",s]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Cover Status",children:h||!N?(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Error - Maintenance Lock Control Offline"}):(0,o.createComponentVNode)(2,c.Button,{icon:V?"lock":"lock-open",content:V?"Locked":"Unlocked",onClick:function(){return a("toggle_suit_lock")}})})]})})},d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,l=t.data,d=l.sealing,s=l.helmet,u=l.helmetDeployed,m=l.gauntlets,p=l.gauntletsDeployed,C=l.boots,h=l.bootsDeployed,N=l.chest,V=l.chestDeployed;return(0,o.createComponentVNode)(2,c.Section,{title:"Hardware",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Helmet",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:u?"sign-out-alt":"sign-in-alt",content:u?"Deployed":"Deploy",disabled:d,selected:u,onClick:function(){return a("toggle_piece",{piece:"helmet"})}}),children:s?(0,i.capitalize)(s):"ERROR"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Gauntlets",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:p?"sign-out-alt":"sign-in-alt",content:p?"Deployed":"Deploy",disabled:d,selected:p,onClick:function(){return a("toggle_piece",{piece:"gauntlets"})}}),children:m?(0,i.capitalize)(m):"ERROR"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Boots",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:h?"sign-out-alt":"sign-in-alt",content:h?"Deployed":"Deploy",disabled:d,selected:h,onClick:function(){return a("toggle_piece",{piece:"boots"})}}),children:C?(0,i.capitalize)(C):"ERROR"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Chestpiece",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:V?"sign-out-alt":"sign-in-alt",content:V?"Deployed":"Deploy",disabled:d,selected:V,onClick:function(){return a("toggle_piece",{piece:"chest"})}}),children:N?(0,i.capitalize)(N):"ERROR"})]})})},s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,l=t.data,d=l.sealed,s=l.sealing,u=l.primarysystem,m=l.modules;return!d||s?(0,o.createComponentVNode)(2,c.Section,{title:"Modules",children:(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"HARDSUIT SYSTEMS OFFLINE"})}):(0,o.createComponentVNode)(2,c.Section,{title:"Modules",children:[(0,o.createComponentVNode)(2,c.Box,{color:"label",mb:"0.2rem",fontSize:1.5,children:["Selected Primary: ",(0,i.capitalize)(u||"None")]}),m&&m.map((function(e,n){return(0,o.createComponentVNode)(2,c.Section,{level:2,title:(0,i.toTitleCase)(e.name)+(e.damage?" (damaged)":""),buttons:(0,o.createFragment)([e.can_select?(0,o.createComponentVNode)(2,c.Button,{selected:e.name===u,content:e.name===u?"Selected":"Select",icon:"arrow-circle-right",onClick:function(){return a("interact_module",{module:e.index,module_mode:"select"})}}):null,e.can_use?(0,o.createComponentVNode)(2,c.Button,{content:e.engagestring,icon:"arrow-circle-down",onClick:function(){return a("interact_module",{module:e.index,module_mode:"engage"})}}):null,e.can_toggle?(0,o.createComponentVNode)(2,c.Button,{selected:e.is_active,content:e.is_active?e.deactivatestring:e.activatestring,icon:"arrow-circle-down",onClick:function(){return a("interact_module",{module:e.index,module_mode:"toggle"})}}):null],0),children:[e.damage>=2?(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"-- MODULE DESTROYED --"}):(0,o.createComponentVNode)(2,c.Flex,{spacing:1,children:[(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:[(0,o.createComponentVNode)(2,c.Box,{color:"average",children:["Engage: ",e.engagecost]}),(0,o.createComponentVNode)(2,c.Box,{color:"average",children:["Active: ",e.activecost]}),(0,o.createComponentVNode)(2,c.Box,{color:"average",children:["Passive: ",e.passivecost]})]}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:e.desc})]}),e.charges?(0,o.createComponentVNode)(2,c.Flex.Item,{children:(0,o.createComponentVNode)(2,c.Section,{title:"Module Charges",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Selected",children:(0,i.capitalize)(e.chargetype)}),e.charges.map((function(n,t){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:(0,i.capitalize)(n.caption),children:(0,o.createComponentVNode)(2,c.Button,{selected:e.realchargetype===n.index,icon:"arrow-right",onClick:function(){return a("interact_module",{module:e.index,module_mode:"select_charge_type",charge_type:n.index})}})},n.caption)}))]})})}):null]},e.name)}))]})}},17481:function(e,n,t){"use strict";n.__esModule=!0,n.Radio=void 0;var o=t(39812),r=(t(64499),t(41860)),c=t(71494),a=t(74814),i=t(76270),l=t(85952);n.Radio=function(e,n){var t=(0,c.useBackend)(n),d=t.act,s=t.data,u=s.rawfreq,m=s.minFrequency,p=s.maxFrequency,C=s.listening,h=s.broadcasting,N=s.subspace,V=s.subspaceSwitchable,b=s.chan_list,f=s.loudspeaker,g=s.mic_cut,k=s.spk_cut,v=s.useSyndMode,B=i.RADIO_CHANNELS.find((function(e){return e.freq===Number(u)})),L=156;return b&&b.length>0?L+=28*b.length+6:L+=24,V&&(L+=38),(0,o.createComponentVNode)(2,l.Window,{width:310,height:L,resizable:!0,theme:v?"syndicate":"",children:(0,o.createComponentVNode)(2,l.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Frequency",children:[(0,o.createComponentVNode)(2,a.NumberInput,{animated:!0,unit:"kHz",step:.2,stepPixelSize:10,minValue:m/10,maxValue:p/10,value:u/10,format:function(e){return(0,r.toFixed)(e,1)},onDrag:function(e,n){return d("setFrequency",{freq:(0,r.round)(10*n)})}}),B&&(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:B.color,ml:2,children:["[",B.name,"]"]})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Audio",children:[(0,o.createComponentVNode)(2,a.Button,{textAlign:"center",width:"37px",icon:C?"volume-up":"volume-mute",selected:C,disabled:k,onClick:function(){return d("listen")}}),(0,o.createComponentVNode)(2,a.Button,{textAlign:"center",width:"37px",icon:h?"microphone":"microphone-slash",selected:h,disabled:g,onClick:function(){return d("broadcast")}}),!!V&&(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.Button,{icon:"bullhorn",selected:N,content:"Subspace Tx "+(N?"ON":"OFF"),onClick:function(){return d("subspace")}})}),!!V&&(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.Button,{icon:f?"volume-up":"volume-mute",selected:f,content:"Loudspeaker",onClick:function(){return d("toggleLoudspeaker")}})})]})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Channels",children:[(!b||0===b.length)&&(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:"bad",children:"No channels detected."}),(0,o.createComponentVNode)(2,a.LabeledList,{children:b?b.map((function(e){var n=i.RADIO_CHANNELS.find((function(n){return n.freq===Number(e.freq)})),t="default";return n&&(t=n.color),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.display_name,labelColor:t,textAlign:"right",children:e.secure_channel&&N?(0,o.createComponentVNode)(2,a.Button,{icon:e.sec_channel_listen?"square-o":"check-square-o",selected:!e.sec_channel_listen,content:e.sec_channel_listen?"Off":"On",onClick:function(){return d("channel",{channel:e.chan})}}):(0,o.createComponentVNode)(2,a.Button,{content:"Switch",selected:e.chan===u,onClick:function(){return d("specFreq",{channel:e.chan})}})},e.chan)})):null})]})]})})}},29509:function(e,n,t){"use strict";n.__esModule=!0,n.RapidPipeDispenser=n.ICON_BY_CATEGORY_NAME=void 0;var o=t(39812),r=t(34380),c=t(2497),a=t(71494),i=t(74814),l=t(85952),d=["Atmospherics","Disposals"],s={Atmospherics:"wrench",Disposals:"trash-alt","Transit Tubes":"bus",Pipes:"grip-lines","Disposal Pipes":"grip-lines",Devices:"microchip","Heat Exchange":"thermometer-half","Insulated pipes":"snowflake","Station Equipment":"microchip"};n.ICON_BY_CATEGORY_NAME=s;var u=[{name:"Dispense",bitmask:1},{name:"Connect",bitmask:2},{name:"Destroy",bitmask:4},{name:"Paint",bitmask:8}],m=function(e,n){var t=(0,a.useBackend)(n),r=t.act,l=t.data,m=l.category,p=l.selected_color,C=l.mode;return(0,o.createComponentVNode)(2,i.Section,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Category",children:d.map((function(e,n){return(0,o.createComponentVNode)(2,i.Button,{selected:m===n,icon:s[e],color:"transparent",onClick:function(){return r("category",{category:n})},children:e},e)}))}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Modes",children:(0,o.createComponentVNode)(2,i.Stack,{fill:!0,children:u.map((function(e){return(0,o.createComponentVNode)(2,i.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,i.Button.Checkbox,{checked:C&e.bitmask,fluid:!0,content:e.name,onClick:function(){return r("mode",{mode:e.bitmask})}})},e.bitmask)}))})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Color",children:[(0,o.createComponentVNode)(2,i.Box,{inline:!0,width:"64px",color:l.paint_colors[p],children:(0,c.capitalize)(p)}),Object.keys(l.paint_colors).map((function(e){return(0,o.createComponentVNode)(2,i.ColorBox,{ml:1,color:l.paint_colors[e],onClick:function(){return r("color",{paint_color:e})}},e)}))]})]})})},p=function(e,n){var t=(0,a.useBackend)(n),c=t.act,l=t.data,d=l.category,s=l.piping_layer,u=l.preview_rows.flatMap((function(e){return e.previews}));return(0,o.createComponentVNode)(2,i.Section,{fill:!0,width:7.5,children:[0===d&&(0,o.createComponentVNode)(2,i.Stack,{vertical:!0,mb:1,children:[1,2,3,4,5].map((function(e){return(0,o.createComponentVNode)(2,i.Stack.Item,{my:0,children:(0,o.createComponentVNode)(2,i.Button.Checkbox,{checked:e===s,content:"Layer "+e,onClick:function(){return c("piping_layer",{piping_layer:e})}})},e)}))}),(0,o.createComponentVNode)(2,i.Box,{width:"120px",children:u.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{ml:0,title:e.dir_name,selected:e.selected,style:{width:"40px",height:"40px",padding:0},onClick:function(){return c("setdir",{dir:e.dir,flipped:e.flipped})},children:(0,o.createComponentVNode)(2,i.Box,{className:(0,r.classes)(["pipes32x32",e.dir+"-"+e.icon_state]),style:{transform:"scale(1.5) translate(9.5%, 9.5%)"}})},e.dir)}))})]})},C=function(e,n){var t=(0,a.useBackend)(n),r=t.act,c=t.data.categories,l=void 0===c?[]:c,d=(0,a.useLocalState)(n,"categoryName"),u=d[0],m=d[1],p=l.find((function(e){return e.cat_name===u}))||l[0];return(0,o.createComponentVNode)(2,i.Section,{fill:!0,scrollable:!0,children:[(0,o.createComponentVNode)(2,i.Tabs,{children:l.map((function(e,n){return(0,o.createComponentVNode)(2,i.Tabs.Tab,{fluid:!0,icon:s[e.cat_name],selected:e.cat_name===p.cat_name,onClick:function(){return m(e.cat_name)},children:e.cat_name},e.cat_name)}))}),null==p?void 0:p.recipes.map((function(e){return(0,o.createComponentVNode)(2,i.Button.Checkbox,{fluid:!0,ellipsis:!0,checked:e.selected,content:e.pipe_name,title:e.pipe_name,onClick:function(){return r("pipe_type",{pipe_type:e.pipe_index,category:p.cat_name})}},e.pipe_index)}))]})};n.RapidPipeDispenser=function(e,n){var t=(0,a.useBackend)(n);t.act,t.data.category;return(0,o.createComponentVNode)(2,l.Window,{width:550,height:570,children:(0,o.createComponentVNode)(2,l.Window.Content,{children:(0,o.createComponentVNode)(2,i.Stack,{fill:!0,vertical:!0,children:[(0,o.createComponentVNode)(2,i.Stack.Item,{children:(0,o.createComponentVNode)(2,m)}),(0,o.createComponentVNode)(2,i.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,i.Stack,{fill:!0,children:[(0,o.createComponentVNode)(2,i.Stack.Item,{children:(0,o.createComponentVNode)(2,i.Stack,{vertical:!0,fill:!0,children:(0,o.createComponentVNode)(2,i.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,p)})})}),(0,o.createComponentVNode)(2,i.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,C)})]})})]})})})}},53976:function(e,n,t){"use strict";n.__esModule=!0,n.RequestConsole=void 0;var o=t(39812),r=t(2497),c=t(71494),a=t(74814),i=t(85952),l=function(e,n){var t=(0,c.useBackend)(n).act,r=e.dept_list,i=e.department;return(0,o.createComponentVNode)(2,a.LabeledList,{children:r.sort().map((function(e){return e!==i&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"envelope-open-text",onClick:function(){return t("write",{write:e,priority:1})},children:"Message"}),(0,o.createComponentVNode)(2,a.Button,{icon:"exclamation-triangle",onClick:function(){return t("write",{write:e,priority:2})},children:"High Priority"})],4)})||null}))})},d={0:function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.silent;return(0,o.createComponentVNode)(2,a.Section,{title:"Settings",children:(0,o.createComponentVNode)(2,a.Button,{selected:!i,icon:i?"volume-mute":"volume-up",onClick:function(){return r("toggleSilent")},children:["Speaker ",i?"OFF":"ON"]})})},1:function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data),i=r.department,d=r.assist_dept;return(0,o.createComponentVNode)(2,a.Section,{title:"Request assistance from another department",children:(0,o.createComponentVNode)(2,l,{dept_list:d,department:i})})},2:function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data),i=r.department,d=r.supply_dept;return(0,o.createComponentVNode)(2,a.Section,{title:"Supplies",children:(0,o.createComponentVNode)(2,l,{dept_list:d,department:i})})},3:function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data),i=r.department,d=r.info_dept;return(0,o.createComponentVNode)(2,a.Section,{title:"Report Anonymous Information",children:(0,o.createComponentVNode)(2,l,{dept_list:d,department:i})})},4:function(e,n){var t=(0,c.useBackend)(n),r=t.act;t.data;return(0,o.createComponentVNode)(2,a.Section,{children:[(0,o.createComponentVNode)(2,a.Box,{fontSize:2,color:"good",children:"Message Sent Successfully"}),(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-right",onClick:function(){return r("setScreen",{setScreen:0})},children:"Continue"})})]})},5:function(e,n){var t=(0,c.useBackend)(n),r=t.act;t.data;return(0,o.createComponentVNode)(2,a.Section,{children:[(0,o.createComponentVNode)(2,a.Box,{fontSize:1.5,bold:!0,color:"bad",children:"An error occured. Message Not Sent."}),(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-right",onClick:function(){return r("setScreen",{setScreen:0})},children:"Continue"})})]})},6:function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data.message_log;return(0,o.createComponentVNode)(2,a.Section,{title:"Messages",children:l.length&&l.map((function(e,n){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:(0,r.decodeHtmlEntities)(e[0]),buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"print",onClick:function(){return i("print",{print:n+1})},children:"Print"}),children:(0,r.decodeHtmlEntities)(e[1])},n)}))||(0,o.createComponentVNode)(2,a.Box,{children:"No messages."})})},7:function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data,d=l.message,s=l.recipient,u=l.priority,m=l.msgStamped,p=l.msgVerified;return(0,o.createComponentVNode)(2,a.Section,{title:"Message Authentication",children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Message for "+s,children:d}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Priority",children:2===u?"High Priority":1===u?"Normal Priority":"Unknown"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Validated By",color:p?"good":"bad",children:(0,r.decodeHtmlEntities)(p)||"No Validation"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Stamped By",color:m?"good":"bad",children:(0,r.decodeHtmlEntities)(m)||"No Stamp"})]}),(0,o.createComponentVNode)(2,a.Button,{mt:1,icon:"share",onClick:function(){return i("department",{department:s})},children:"Send Message"}),(0,o.createComponentVNode)(2,a.Button,{icon:"undo",onClick:function(){return i("setScreen",{setScreen:0})},children:"Back"})]})},8:function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=(i.department,i.screen,i.message_log,i.newmessagepriority,i.silent,i.announcementConsole,i.assist_dept,i.supply_dept,i.info_dept,i.message),d=(i.recipient,i.priority,i.msgStamped,i.msgVerified,i.announceAuth);return(0,o.createComponentVNode)(2,a.Section,{title:"Send Station-Wide Announcement",children:[d&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{bold:!0,color:"good",mb:1,children:"ID Verified. Authentication Accepted."}),(0,o.createComponentVNode)(2,a.Section,{title:"Message",mt:1,maxHeight:"200px",scrollable:!0,buttons:(0,o.createComponentVNode)(2,a.Button,{ml:1,icon:"pen",onClick:function(){return r("writeAnnouncement")},children:"Edit"}),children:l||"No Message"})],4)||(0,o.createComponentVNode)(2,a.Box,{bold:!0,color:"bad",mb:1,children:"Swipe your ID card to authenticate yourself."}),(0,o.createComponentVNode)(2,a.Button,{disabled:!l||!d,icon:"share",onClick:function(){return r("sendAnnouncement")},children:"Announce"}),(0,o.createComponentVNode)(2,a.Button,{icon:"undo",onClick:function(){return r("setScreen",{setScreen:0})},children:"Back"})]})}};n.RequestConsole=function(e,n){var t=(0,c.useBackend)(n),r=t.act,l=t.data,s=l.screen,u=l.newmessagepriority,m=l.announcementConsole,p=d[s];return(0,o.createComponentVNode)(2,i.Window,{width:520,height:410,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Tabs,{children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:6===s,onClick:function(){return r("setScreen",{setScreen:6})},icon:"envelope-open-text",children:"Messages"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:1===s,onClick:function(){return r("setScreen",{setScreen:1})},icon:"share-square",children:"Assistance"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:2===s,onClick:function(){return r("setScreen",{setScreen:2})},icon:"share-square",children:"Supplies"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:3===s,onClick:function(){return r("setScreen",{setScreen:3})},icon:"share-square-o",children:"Report"}),m&&(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:8===s,onClick:function(){return r("setScreen",{setScreen:8})},icon:"volume-up",children:"Announce"})||null,(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:0===s,onClick:function(){return r("setScreen",{setScreen:0})},icon:"cog"})]}),u&&(0,o.createComponentVNode)(2,a.Section,{title:u>1?"NEW PRIORITY MESSAGES":"There are new messages!",color:u>1?"bad":"average",bold:u>1})||null,(0,o.createComponentVNode)(2,p)]})})}},48639:function(e,n,t){"use strict";n.__esModule=!0,n.ResearchConsole=void 0;var o=t(39812),r=t(2497),c=t(71494),a=t(74814),i=t(85952),l=function(e,n){var t=(0,c.useBackend)(n).data,o=e.title,r=t[e.target];return"number"==typeof r?o+" - Page "+(r+1):o},d=function(e,n){var t=(0,c.useBackend)(n).act,r=e.target;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"undo",onClick:function(){return t(r,{reset:!0})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"chevron-left",onClick:function(){return t(r,{reverse:-1})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"chevron-right",onClick:function(){return t(r,{reverse:1})}})],4)},s=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.info.tech,l=e.disk;if(!l||!l.present)return null;var d=(0,c.useSharedState)(n,"saveDialogTech",!1),s=d[0],u=d[1];return s?(0,o.createComponentVNode)(2,a.Section,{title:"Load Technology to Disk",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-left",content:"Back",onClick:function(){return u(!1)}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:i.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name,children:(0,o.createComponentVNode)(2,a.Button,{icon:"save",onClick:function(){u(!1),r("copy_tech",{copy_tech_ID:e.id})},children:"Copy To Disk"})},e.name)}))})}):(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Disk Contents",children:"(Technology Data Disk)"})}),l.stored&&(0,o.createComponentVNode)(2,a.Box,{mt:2,children:[(0,o.createComponentVNode)(2,a.Box,{children:l.name}),(0,o.createComponentVNode)(2,a.Box,{children:["Level: ",l.level]}),(0,o.createComponentVNode)(2,a.Box,{children:["Description: ",l.desc]}),(0,o.createComponentVNode)(2,a.Box,{mt:1,children:[(0,o.createComponentVNode)(2,a.Button,{icon:"save",onClick:function(){return r("updt_tech")},children:"Upload to Database"}),(0,o.createComponentVNode)(2,a.Button,{icon:"trash",onClick:function(){return r("clear_tech")},children:"Clear Disk"}),(0,o.createComponentVNode)(2,a.Button,{icon:"eject",onClick:function(){return r("eject_tech")},children:"Eject Disk"})]})]})||(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Box,{children:"This disk has no data stored on it."}),(0,o.createComponentVNode)(2,a.Button,{icon:"save",onClick:function(){return u(!0)},children:"Load Tech To Disk"}),(0,o.createComponentVNode)(2,a.Button,{icon:"eject",onClick:function(){return r("eject_tech")},children:"Eject Disk"})]})]})},u=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,s=i.info.designs,u=e.disk;if(!u||!u.present)return null;var m=(0,c.useSharedState)(n,"saveDialogData",!1),p=m[0],C=m[1];return p?(0,o.createComponentVNode)(2,a.Section,{title:(0,o.createComponentVNode)(2,l,{title:"Load Design to Disk",target:"design_page"}),buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-left",content:"Back",onClick:function(){return C(!1)}}),(0,o.createComponentVNode)(2,d,{target:"design_page"})||null],0),children:[(0,o.createComponentVNode)(2,a.Input,{fluid:!0,placeholder:"Search for...",value:i.search,onInput:function(e,n){return r("search",{search:n})},mb:1}),(0,o.createComponentVNode)(2,a.LabeledList,{children:s.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name,children:(0,o.createComponentVNode)(2,a.Button,{icon:"save",onClick:function(){C(!1),r("copy_design",{copy_design_ID:e.id})},children:"Copy To Disk"})},e.name)}))})]}):(0,o.createComponentVNode)(2,a.Box,{children:u.stored&&(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:u.name}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Lathe Type",children:u.build_type}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Required Materials",children:Object.keys(u.materials).map((function(e){return(0,o.createComponentVNode)(2,a.Box,{children:[e," x ",u.materials[e]]},e)}))})]}),(0,o.createComponentVNode)(2,a.Box,{mt:1,children:[(0,o.createComponentVNode)(2,a.Button,{icon:"save",onClick:function(){return r("updt_design")},children:"Upload to Database"}),(0,o.createComponentVNode)(2,a.Button,{icon:"trash",onClick:function(){return r("clear_design")},children:"Clear Disk"}),(0,o.createComponentVNode)(2,a.Button,{icon:"eject",onClick:function(){return r("eject_design")},children:"Eject Disk"})]})]})||(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Box,{mb:.5,children:"This disk has no data stored on it."}),(0,o.createComponentVNode)(2,a.Button,{icon:"save",onClick:function(){return C(!0)},children:"Load Design To Disk"}),(0,o.createComponentVNode)(2,a.Button,{icon:"eject",onClick:function(){return r("eject_design")},children:"Eject Disk"})]})})},m=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,s=e.target,u=e.designs,m=e.buildName,p=e.buildFiveName;return s?(0,o.createComponentVNode)(2,a.Section,{title:(0,o.createComponentVNode)(2,l,{target:"builder_page",title:"Designs"}),buttons:(0,o.createComponentVNode)(2,d,{target:"builder_page"}),children:[(0,o.createComponentVNode)(2,a.Input,{fluid:!0,placeholder:"Search for...",value:i.search,onInput:function(e,n){return r("search",{search:n})},mb:1}),u&&u.length?u.map((function(e){return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Flex,{width:"100%",justify:"space-between",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{width:"40%",style:{"word-wrap":"break-all"},children:e.name}),(0,o.createComponentVNode)(2,a.Flex.Item,{width:"15%",textAlign:"center",children:[(0,o.createComponentVNode)(2,a.Button,{mb:-1,icon:"wrench",onClick:function(){return r(m,{build:e.id,imprint:e.id})},children:"Build"}),p&&(0,o.createComponentVNode)(2,a.Button,{mb:-1,onClick:function(){return r(p,{build:e.id,imprint:e.id})},children:"x5"})]}),(0,o.createComponentVNode)(2,a.Flex.Item,{width:"45%",style:{"word-wrap":"break-all"},children:[(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:"label",children:e.mat_list.join(" ")}),(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:"average",ml:1,children:e.chem_list.join(" ")})]})]}),(0,o.createComponentVNode)(2,a.Divider)],4,e.id)})):(0,o.createComponentVNode)(2,a.Box,{children:"No items could be found matching the parameters (page or search)."})]}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Error"})},p=function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data,d=e.name,s=null,u=null;if("Protolathe"===d?(s=l.info.linked_lathe,u=l.lathe_designs):(s=l.info.linked_imprinter,u=l.imprinter_designs),!s||!s.present)return(0,o.createComponentVNode)(2,a.Section,{title:d,children:["No ",d," found."]});var p=s,C=p.total_materials,h=p.max_materials,N=p.total_volume,V=p.max_volume,b=p.busy,f=p.mats,g=p.reagents,k=p.queue,v=(0,c.useSharedState)(n,"protoTab",0),B=v[0],L=v[1],_="transparent",x=!1,w="layer-group";b?(w="hammer",_="average",x=!0):k&&k.length&&(w="sync",_="green",x=!0);var S="Protolathe"===d?"removeP":"removeI",I="Protolathe"===d?"lathe_ejectsheet":"imprinter_ejectsheet",y="Protolathe"===d?"disposeP":"disposeI",T="Protolathe"===d?"disposeallP":"disposeallI";return(0,o.createComponentVNode)(2,a.Section,{title:d,buttons:b&&(0,o.createComponentVNode)(2,a.Icon,{name:"sync",spin:!0})||null,children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Materials",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:C,maxValue:h,children:[C," cm\xb3 / ",h," cm\xb3"]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Chemicals",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:N,maxValue:V,children:[N,"u / ",V,"u"]})})]}),(0,o.createComponentVNode)(2,a.Tabs,{mt:1,children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:"wrench",selected:0===B,onClick:function(){return L(0)},children:"Build"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:w,iconSpin:x,color:_,selected:1===B,onClick:function(){return L(1)},children:"Queue"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:"cookie-bite",selected:2===B,onClick:function(){return L(2)},children:"Mat Storage"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:"flask",selected:3===B,onClick:function(){return L(3)},children:"Chem Storage"})]}),0===B&&(0,o.createComponentVNode)(2,m,{target:s,designs:u,buildName:"Protolathe"===d?"build":"imprint",buildFiveName:"Protolathe"===d?"buildfive":null})||1===B&&(0,o.createComponentVNode)(2,a.LabeledList,{children:k.length&&k.map((function(e){return 1===e.index?(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name,labelColor:"bad",children:b?(0,o.createComponentVNode)(2,a.Button,{disabled:!0,icon:"trash",children:"Remove"}):(0,o.createComponentVNode)(2,a.Box,{children:["(Awaiting Materials)",(0,o.createComponentVNode)(2,a.Button,{ml:1,icon:"trash",onClick:function(){var n;return i(S,((n={})[S]=e.index,n))},children:"Remove"})]})}):(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name,children:(0,o.createComponentVNode)(2,a.Button,{icon:"trash",onClick:function(){var n;return i(S,((n={})[S]=e.index,n))},children:"Remove"})},e.name)}))||(0,o.createComponentVNode)(2,a.Box,{m:1,children:"Queue Empty."})})||2===B&&(0,o.createComponentVNode)(2,a.LabeledList,{children:f.map((function(e){var t=(0,c.useLocalState)(n,"ejectAmt"+e.name,0),l=t[0],d=t[1];return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:(0,r.toTitleCase)(e.name),buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.NumberInput,{minValue:0,width:"100px",value:l,maxValue:e.sheets,onDrag:function(e,n){return d(n)}}),(0,o.createComponentVNode)(2,a.Button,{icon:"eject",disabled:!e.removable,onClick:function(){var n;d(0),i(I,((n={})[I]=e.name,n.amount=l,n))},children:"Num"}),(0,o.createComponentVNode)(2,a.Button,{icon:"eject",disabled:!e.removable,onClick:function(){var n;return i(I,((n={})[I]=e.name,n.amount=50,n))},children:"All"})],4),children:[e.amount," cm\xb3"]},e.name)}))})||3===B&&(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:g.length&&g.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name,children:[e.volume,"u",(0,o.createComponentVNode)(2,a.Button,{ml:1,icon:"eject",onClick:function(){return i(y,{dispose:e.id})},children:"Purge"})]},e.name)}))||(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Empty",children:"No chems detected"})}),(0,o.createComponentVNode)(2,a.Button,{mt:1,icon:"trash",onClick:function(){return i(T)},children:"Disposal All Chemicals In Storage"})]})||(0,o.createComponentVNode)(2,a.Box,{children:"Error"})]})},C=[{name:"Protolathe",icon:"wrench",template:(0,o.createComponentVNode)(2,p,{name:"Protolathe"})},{name:"Circuit Imprinter",icon:"digital-tachograph",template:(0,o.createComponentVNode)(2,p,{name:"Circuit Imprinter"})},{name:"Destructive Analyzer",icon:"eraser",template:(0,o.createComponentVNode)(2,(function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.info.linked_destroy;if(!i.present)return(0,o.createComponentVNode)(2,a.Section,{title:"Destructive Analyzer",children:"No destructive analyzer found."});var l=i.loaded_item,d=i.origin_tech;return(0,o.createComponentVNode)(2,a.Section,{title:"Destructive Analyzer",children:l&&(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:l}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Origin Tech",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:d.length&&d.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name,children:[e.level,"\xa0\xa0",e.current&&"(Current: "+e.current+")"]},e.name)}))||(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Error",children:"No origin tech found."})})})]}),(0,o.createComponentVNode)(2,a.Button,{mt:1,color:"red",icon:"eraser",onClick:function(){return r("deconstruct")},children:"Deconstruct Item"}),(0,o.createComponentVNode)(2,a.Button,{icon:"eject",onClick:function(){return r("eject_item")},children:"Eject Item"})]})||(0,o.createComponentVNode)(2,a.Box,{children:"No Item Loaded. Standing-by..."})})}))},{name:"Settings",icon:"cog",template:(0,o.createComponentVNode)(2,(function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.info,l=i.sync,d=i.linked_destroy,s=i.linked_imprinter,u=i.linked_lathe,m=(0,c.useSharedState)(n,"settingsTab",0),p=m[0],C=m[1];return(0,o.createComponentVNode)(2,a.Section,{title:"Settings",children:[(0,o.createComponentVNode)(2,a.Tabs,{children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:"cogs",onClick:function(){return C(0)},selected:0===p,children:"General"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:"link",onClick:function(){return C(1)},selected:1===p,children:"Device Linkages"})]}),0===p&&(0,o.createComponentVNode)(2,a.Box,{children:[l&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"sync",onClick:function(){return r("sync")},children:"Sync Database with Network"}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"unlink",onClick:function(){return r("togglesync")},children:"Disconnect from Research Network"})],4)||(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"link",onClick:function(){return r("togglesync")},children:"Connect to Research Network"}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"lock",onClick:function(){return r("lock")},children:"Lock Console"}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"red",icon:"trash",onClick:function(){return r("reset")},children:"Reset R&D Database"})]})||1===p&&(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"sync",mb:1,onClick:function(){return r("find_device")},children:"Re-sync with Nearby Devices"}),(0,o.createComponentVNode)(2,a.LabeledList,{children:[d.present&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Destructive Analyzer",children:(0,o.createComponentVNode)(2,a.Button,{icon:"unlink",onClick:function(){return r("disconnect",{disconnect:"destroy"})},children:"Disconnect"})})||null,u.present&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Protolathe",children:(0,o.createComponentVNode)(2,a.Button,{icon:"unlink",onClick:function(){return r("disconnect",{disconnect:"lathe"})},children:"Disconnect"})})||null,s.present&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Circuit Imprinter",children:(0,o.createComponentVNode)(2,a.Button,{icon:"unlink",onClick:function(){return r("disconnect",{disconnect:"imprinter"})},children:"Disconnect"})})||null]})]})||(0,o.createComponentVNode)(2,a.Box,{children:"Error"})]})}))},{name:"Research List",icon:"flask",template:(0,o.createComponentVNode)(2,(function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.tech;return(0,o.createComponentVNode)(2,a.Section,{title:"Current Research Levels",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"print",onClick:function(){return r("print",{print:1})},children:"Print This Page"}),children:(0,o.createComponentVNode)(2,a.Table,{children:i.map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:[(0,o.createComponentVNode)(2,a.Box,{color:"label",children:e.name}),(0,o.createComponentVNode)(2,a.Box,{children:[" - Level ",e.level]})]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Box,{color:"label",children:e.desc})})]},e.name)}))})})}))},{name:"Design List",icon:"file",template:(0,o.createComponentVNode)(2,(function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,s=i.designs;return(0,o.createComponentVNode)(2,a.Section,{title:(0,o.createComponentVNode)(2,l,{title:"Researched Technologies & Designs",target:"design_page"}),buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"print",onClick:function(){return r("print",{print:2})},children:"Print This Page"}),(0,o.createComponentVNode)(2,d,{target:"design_page"})||null],0),children:[(0,o.createComponentVNode)(2,a.Input,{fluid:!0,placeholder:"Search for...",value:i.search,onInput:function(e,n){return r("search",{search:n})},mb:1}),s&&s.length&&(0,o.createComponentVNode)(2,a.LabeledList,{children:s.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name,children:e.desc},e.name)}))})||(0,o.createComponentVNode)(2,a.Box,{color:"warning",children:"No designs found."})]})}))},{name:"Disk Operations",icon:"save",template:(0,o.createComponentVNode)(2,(function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data.info),i=r.d_disk,l=r.t_disk;return i.present||l.present?(0,o.createComponentVNode)(2,a.Section,{title:"Disk Operations",children:[(0,o.createComponentVNode)(2,s,{disk:l}),(0,o.createComponentVNode)(2,u,{disk:i})]}):(0,o.createComponentVNode)(2,a.Section,{title:"Disk Operations",children:"No disk inserted."})}))}];n.ResearchConsole=function(e,n){var t=(0,c.useBackend)(n),r=t.act,l=t.data,d=l.busy_msg,s=l.locked,u=(0,c.useSharedState)(n,"rdmenu",0),m=u[0],p=u[1],h=!1;return(d||s)&&(h=!0),(0,o.createComponentVNode)(2,i.Window,{width:850,height:630,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Tabs,{children:C.map((function(e,n){return(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:e.icon,selected:m===n,disabled:h,onClick:function(){return p(n)},children:e.name},n)}))}),d&&(0,o.createComponentVNode)(2,a.Section,{title:"Processing...",children:d})||s&&(0,o.createComponentVNode)(2,a.Section,{title:"Console Locked",children:(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return r("lock")},icon:"lock-open",children:"Unlock"})})||C[m].template]})})}},35606:function(e,n,t){"use strict";n.__esModule=!0,n.ResearchServerController=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=t(64499);n.ResearchServerController=function(e,n){var t=(0,r.useBackend)(n);t.act,t.data;return(0,o.createComponentVNode)(2,a.Window,{width:575,height:430,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,l)})})};var l=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data),i=(a.badmin,a.servers),l=(a.consoles,(0,r.useSharedState)(n,"selectedServer",null)),s=l[0],u=l[1],m=i.find((function(e){return e.id===s}));return m?(0,o.createComponentVNode)(2,d,{setSelectedServer:u,server:m}):(0,o.createComponentVNode)(2,c.Section,{title:"Server Selection",children:i.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"eye",onClick:function(){return u(e.id)},children:e.name})},e.name)}))})},d=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data.badmin),i=e.server,l=e.setSelectedServer,d=(0,r.useSharedState)(n,"tab",0),p=d[0],C=d[1];return(0,o.createComponentVNode)(2,c.Section,{title:i.name,buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"undo",onClick:function(){return l(null)},children:"Back"}),children:[(0,o.createComponentVNode)(2,c.Tabs,{children:[(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:0===p,onClick:function(){return C(0)},children:"Access Rights"}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:1===p,onClick:function(){return C(1)},children:"Data Management"}),a&&(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:2===p,onClick:function(){return C(2)},color:"red",children:"Server-to-Server Transfer"})||null]}),0===p&&(0,o.createComponentVNode)(2,s,{server:i})||null,1===p&&(0,o.createComponentVNode)(2,u,{server:i})||null,2===p&&a&&(0,o.createComponentVNode)(2,m,{server:i})||null]})},s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=e.server,d=i.consoles,s=function(e,n){return-1!==e.id_with_upload.indexOf(n.id)},u=function(e,n){return-1!==e.id_with_download.indexOf(n.id)};return(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Consoles",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:d.length&&d.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name+" ("+e.loc+")",children:[(0,o.createComponentVNode)(2,c.Button,{icon:s(l,e)?"lock-open":"lock",selected:s(l,e),onClick:function(){return a("toggle_upload",{server:l.ref,console:e.ref})},children:s(l,e)?"Upload On":"Upload Off"}),(0,o.createComponentVNode)(2,c.Button,{icon:u(l,e)?"lock-open":"lock",selected:u(l,e),onClick:function(){return a("toggle_download",{server:l.ref,console:e.ref})},children:u(l,e)?"Download On":"Download Off"})]},e.name)}))})})},u=function(e,n){var t=(0,r.useBackend)(n),a=t.act,l=(t.data,e.server);return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Research Levels",children:l.tech.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name,buttons:(0,o.createComponentVNode)(2,c.Button.Confirm,{icon:"trash",confirmIcon:"trash",color:"red",content:"Reset",onClick:function(){return a("reset_tech",{server:l.ref,tech:e.id})}})},e.name)}))}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Designs",children:(0,i.filter)((function(e){return!!e.name}))(l.designs).map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name,buttons:(0,o.createComponentVNode)(2,c.Button.Confirm,{icon:"trash",confirmIcon:"trash",color:"red",content:"Delete",onClick:function(){return a("reset_design",{server:l.ref,design:e.id})}})},e.name)}))})],4)},m=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=e.server,d=i.badmin,s=i.servers;return d?(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Server Data Transfer",children:s.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Button.Confirm,{fluid:!0,color:"bad",content:(0,o.createComponentVNode)(2,c.Box,{children:["Transfer from ",l.name," To ",e.name]}),onClick:function(){return a("transfer_data",{server:l.ref,target:e.ref})}})},e.name)}))}):null}},86330:function(e,n,t){"use strict";n.__esModule=!0,n.ResleevingConsole=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=(t(76270),t(16007)),l=t(85952),d=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=(t.data,e.args),l=i.activerecord,d=i.realname,s=i.obviously_dead,u=i.oocnotes,m=i.can_sleeve_active;return(0,o.createComponentVNode)(2,a.Section,{level:2,m:"-1rem",pb:"1rem",title:"Mind Record ("+d+")",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"times",color:"red",onClick:function(){return r("modal_close")}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:d}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",children:s}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Actions",children:[(0,o.createComponentVNode)(2,a.Button,{disabled:!m,icon:"user-plus",content:"Sleeve",onClick:function(){return r("sleeve",{ref:l,mode:1})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"user-plus",content:"Card",onClick:function(){return r("sleeve",{ref:l,mode:2})}})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"OOC Notes",children:(0,o.createComponentVNode)(2,a.Section,{style:{"word-break":"break-all",height:"100px"},scrollable:!0,children:u})})]})})},s=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=(t.data,e.args),l=i.activerecord,d=i.realname,s=i.species,u=i.sex,m=i.mind_compat,p=i.synthetic,C=i.oocnotes,h=i.can_grow_active;return(0,o.createComponentVNode)(2,a.Section,{level:2,m:"-1rem",pb:"1rem",title:"Body Record ("+d+")",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"times",color:"red",onClick:function(){return r("modal_close")}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:d}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Species",children:s}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Bio. Sex",children:u}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Mind Compat",children:m}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Synthetic",children:p?"Yes":"No"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"OOC Notes",children:(0,o.createComponentVNode)(2,a.Section,{style:{"word-break":"break-all",height:"100px"},scrollable:!0,children:C})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Actions",children:(0,o.createComponentVNode)(2,a.Button,{disabled:!h,icon:"user-plus",content:p?"Build":"Grow",onClick:function(){return r("create",{ref:l})}})})]})})};n.ResleevingConsole=function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data),h=(r.menu,r.coredumped),N=r.emergency,V=(0,o.createFragment)([(0,o.createComponentVNode)(2,g),(0,o.createComponentVNode)(2,k),(0,o.createComponentVNode)(2,u),(0,o.createComponentVNode)(2,a.Section,{noTopPadding:!0,flexGrow:"1",children:(0,o.createComponentVNode)(2,m)})],4);return h&&(V=(0,o.createComponentVNode)(2,p)),N&&(V=(0,o.createComponentVNode)(2,C)),(0,i.modalRegisterBodyOverride)("view_b_rec",s),(0,i.modalRegisterBodyOverride)("view_m_rec",d),(0,o.createComponentVNode)(2,l.Window,{width:640,height:520,resizable:!0,children:[(0,o.createComponentVNode)(2,i.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),(0,o.createComponentVNode)(2,l.Window.Content,{className:"Layout__content--flexColumn",children:V})]})};var u=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.menu;return(0,o.createComponentVNode)(2,a.Tabs,{children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:1===i,icon:"home",onClick:function(){return r("menu",{num:1})},children:"Main"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:2===i,icon:"folder",onClick:function(){return r("menu",{num:2})},children:"Body Records"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:3===i,icon:"folder",onClick:function(){return r("menu",{num:3})},children:"Mind Records"})]})},m=function(e,n){var t,r=(0,c.useBackend)(n).data,a=r.menu,i=r.bodyrecords,l=r.mindrecords;return 1===a?t=(0,o.createComponentVNode)(2,h):2===a?t=(0,o.createComponentVNode)(2,f,{records:i,actToDo:"view_b_rec"}):3===a&&(t=(0,o.createComponentVNode)(2,f,{records:l,actToDo:"view_m_rec"})),t},p=function(e,n){return(0,o.createComponentVNode)(2,a.Dimmer,{children:(0,o.createComponentVNode)(2,a.Flex,{direction:"column",justify:"space-evenly",align:"center",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Icon,{size:12,color:"bad",name:"exclamation-triangle"})}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,color:"bad",mt:5,children:(0,o.createVNode)(1,"h2",null,"TransCore dump completed. Resleeving offline.",16)})]})})},C=function(e,n){var t=(0,c.useBackend)(n).act;return(0,o.createComponentVNode)(2,a.Dimmer,{textAlign:"center",children:[(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:(0,o.createVNode)(1,"h1",null,"TRANSCORE DUMP",16)}),(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:(0,o.createVNode)(1,"h2",null,"!!WARNING!!",16)}),(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"This will transfer all minds to the dump disk, and the TransCore will be made unusable until post-shift maintenance! This should only be used in emergencies!"}),(0,o.createComponentVNode)(2,a.Box,{mt:4,children:(0,o.createComponentVNode)(2,a.Button,{icon:"eject",content:"Eject Disk",color:"good",onClick:function(){return t("ejectdisk")}})}),(0,o.createComponentVNode)(2,a.Box,{mt:4,children:(0,o.createComponentVNode)(2,a.Button.Confirm,{icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",content:"Core Dump",confirmContent:"Disable Transcore?",color:"bad",onClick:function(){return t("coredump")}})})]})},h=function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data);r.loading,r.scantemp,r.occupant,r.locked,r.can_brainscan,r.scan_mode,r.pods,r.selected_pod;return(0,o.createComponentVNode)(2,a.Section,{title:"Pods",level:"2",children:[(0,o.createComponentVNode)(2,N),(0,o.createComponentVNode)(2,b),(0,o.createComponentVNode)(2,V)]})},N=function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data,d=l.pods,s=l.spods,u=l.selected_pod;return d&&d.length?d.map((function(e,n){var t;return t="cloning"===e.status?(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:"100",value:e.progress/100,ranges:{good:[.75,Infinity],average:[.25,.75],bad:[-Infinity,.25]},mt:"0.5rem",children:(0,o.createComponentVNode)(2,a.Box,{textAlign:"center",children:(0,r.round)(e.progress,0)+"%"})}):"mess"===e.status?(0,o.createComponentVNode)(2,a.Box,{bold:!0,color:"bad",mt:"0.5rem",children:"ERROR"}):(0,o.createComponentVNode)(2,a.Button,{selected:u===e.pod,icon:u===e.pod&&"check",content:"Select",mt:s&&s.length?"2rem":"0.5rem",onClick:function(){return i("selectpod",{ref:e.pod})}}),(0,o.createComponentVNode)(2,a.Box,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,o.createVNode)(1,"img",null,null,1,{src:"pod_"+e.status+".gif",style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,a.Box,{color:"label",children:e.name}),(0,o.createComponentVNode)(2,a.Box,{bold:!0,color:e.biomass>=150?"good":"bad",inline:!0,children:[(0,o.createComponentVNode)(2,a.Icon,{name:e.biomass>=150?"circle":"circle-o"}),"\xa0",e.biomass]}),t]},n)})):null},V=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=i.sleevers,d=i.spods,s=i.selected_sleever;return l&&l.length?l.map((function(e,n){return(0,o.createComponentVNode)(2,a.Box,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,o.createVNode)(1,"img",null,null,1,{src:"sleeve_"+(e.occupied?"occupied":"empty")+".gif",style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,a.Box,{color:e.occupied?"label":"bad",children:e.name}),(0,o.createComponentVNode)(2,a.Button,{selected:s===e.sleever,icon:s===e.sleever&&"check",content:"Select",mt:d&&d.length?"3rem":"1.5rem",onClick:function(){return r("selectsleever",{ref:e.sleever})}})]},n)})):null},b=function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data,d=l.spods,s=l.selected_printer;return d&&d.length?d.map((function(e,n){var t;return t="cloning"===e.status?(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:"100",value:e.progress/100,ranges:{good:[.75,Infinity],average:[.25,.75],bad:[-Infinity,.25]},mt:"0.5rem",children:(0,o.createComponentVNode)(2,a.Box,{textAlign:"center",children:(0,r.round)(e.progress,0)+"%"})}):"mess"===e.status?(0,o.createComponentVNode)(2,a.Box,{bold:!0,color:"bad",mt:"0.5rem",children:"ERROR"}):(0,o.createComponentVNode)(2,a.Button,{selected:s===e.spod,icon:s===e.spod&&"check",content:"Select",mt:"0.5rem",onClick:function(){return i("selectprinter",{ref:e.spod})}}),(0,o.createComponentVNode)(2,a.Box,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,o.createVNode)(1,"img",null,null,1,{src:"synthprinter"+(e.busy?"_working":"")+".gif",style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,a.Box,{color:"label",children:e.name}),(0,o.createComponentVNode)(2,a.Box,{bold:!0,color:e.steel>=15e3?"good":"bad",inline:!0,children:[(0,o.createComponentVNode)(2,a.Icon,{name:e.steel>=15e3?"circle":"circle-o"}),"\xa0",e.steel]}),(0,o.createComponentVNode)(2,a.Box,{bold:!0,color:e.glass>=15e3?"good":"bad",inline:!0,children:[(0,o.createComponentVNode)(2,a.Icon,{name:e.glass>=15e3?"circle":"circle-o"}),"\xa0",e.glass]}),t]},n)})):null},f=function(e,n){var t=(0,c.useBackend)(n).act,r=e.records,i=e.actToDo;return r.length?(0,o.createComponentVNode)(2,a.Box,{mt:"0.5rem",children:r.map((function(e,n){return(0,o.createComponentVNode)(2,a.Button,{icon:"user",mb:"0.5rem",content:e.name,onClick:function(){return t(i,{ref:e.recref})}},n)}))}):(0,o.createComponentVNode)(2,a.Flex,{height:"100%",mt:"0.5rem",children:(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),"No records found."]})})},g=function(e,n){var t,r=(0,c.useBackend)(n),i=r.act,l=r.data.temp;if(l&&l.text&&!(l.text.length<=0)){var d=((t={})[l.style]=!0,t);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.NoticeBox,Object.assign({},d,{children:[(0,o.createComponentVNode)(2,a.Box,{display:"inline-block",verticalAlign:"middle",children:l.text}),(0,o.createComponentVNode)(2,a.Button,{icon:"times-circle",float:"right",onClick:function(){return i("cleartemp")}}),(0,o.createComponentVNode)(2,a.Box,{clear:"both"})]})))}},k=function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data),i=r.pods,l=r.spods,d=r.sleevers;r.autoallowed,r.autoprocess,r.disk;return(0,o.createComponentVNode)(2,a.Section,{title:"Status",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Pods",children:i&&i.length?(0,o.createComponentVNode)(2,a.Box,{color:"good",children:[i.length," connected"]}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"None connected!"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"SynthFabs",children:l&&l.length?(0,o.createComponentVNode)(2,a.Box,{color:"good",children:[l.length," connected"]}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"None connected!"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Sleevers",children:d&&d.length?(0,o.createComponentVNode)(2,a.Box,{color:"good",children:[d.length," Connected"]}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"None connected!"})})]})})}},88359:function(e,n,t){"use strict";n.__esModule=!0,n.ResleevingPod=void 0;var o=t(39812),r=t(85952),c=t(71494),a=t(74814);n.ResleevingPod=function(e,n){var t=(0,c.useBackend)(n).data,i=t.occupied,l=t.name,d=t.health,s=t.maxHealth,u=t.stat,m=t.mindStatus,p=t.mindName,C=t.resleeveSick,h=t.initialSick;return(0,o.createComponentVNode)(2,r.Window,{width:300,height:350,resizeable:!0,children:(0,o.createComponentVNode)(2,r.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{title:"Occupant",children:i?(0,o.createFragment)([(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:l}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Health",children:2===u?(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"DEAD"}):1===u?(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"Unconscious"}):(0,o.createComponentVNode)(2,a.ProgressBar,{ranges:{good:[.5,Infinity],average:[.25,.5],bad:[-Infinity,.25]},value:d/s,children:[d,"%"]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Mind Status",children:m?"Present":"Missing"}),m?(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Mind Occupying",children:p}):""]}),C?(0,o.createComponentVNode)(2,a.Box,{color:"average",mt:3,children:["Warning: Resleeving Sickness detected.",h?(0,o.createFragment)([(0,o.createTextVNode)(" Motion Sickness also detected. Please allow the newly resleeved person a moment to get their bearings. This warning will disappear when Motion Sickness is no longer detected.")],4):""]}):""],0):(0,o.createComponentVNode)(2,a.Box,{bold:!0,m:1,children:"Unoccupied."})})})})}},24455:function(e,n,t){"use strict";n.__esModule=!0,n.RoboticsControlConsole=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.RoboticsControlConsole=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data,s=d.can_hack,u=d.safety,m=d.show_detonate_all,p=d.cyborgs,C=void 0===p?[]:p;return(0,o.createComponentVNode)(2,a.Window,{width:500,height:460,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[!!m&&(0,o.createComponentVNode)(2,c.Section,{title:"Emergency Self Destruct",children:[(0,o.createComponentVNode)(2,c.Button,{icon:u?"lock":"unlock",content:u?"Disable Safety":"Enable Safety",selected:u,onClick:function(){return l("arm",{})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"bomb",disabled:u,content:"Destroy ALL Cyborgs",color:"bad",onClick:function(){return l("nuke",{})}})]}),(0,o.createComponentVNode)(2,i,{cyborgs:C,can_hack:s})]})})};var i=function(e,n){var t=e.cyborgs,a=(e.can_hack,(0,r.useBackend)(n)),i=a.act,l=a.data;return t.length?t.map((function(e){return(0,o.createComponentVNode)(2,c.Section,{title:e.name,buttons:(0,o.createFragment)([!!e.hackable&&!e.emagged&&(0,o.createComponentVNode)(2,c.Button,{icon:"terminal",content:"Hack",color:"bad",onClick:function(){return i("hackbot",{ref:e.ref})}}),(0,o.createComponentVNode)(2,c.Button.Confirm,{icon:e.locked_down?"unlock":"lock",color:e.locked_down?"good":"default",content:e.locked_down?"Release":"Lockdown",disabled:!l.auth,onClick:function(){return i("stopbot",{ref:e.ref})}}),(0,o.createComponentVNode)(2,c.Button.Confirm,{icon:"bomb",content:"Detonate",disabled:!l.auth,color:"bad",onClick:function(){return i("killbot",{ref:e.ref})}})],0),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Status",children:(0,o.createComponentVNode)(2,c.Box,{color:e.status?"bad":e.locked_down?"average":"good",children:e.status?"Not Responding":e.locked_down?"Locked Down":"Nominal"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Location",children:(0,o.createComponentVNode)(2,c.Box,{children:e.locstring})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Integrity",children:(0,o.createComponentVNode)(2,c.ProgressBar,{color:e.health>50?"good":"bad",value:e.health/100})}),"number"==typeof e.charge&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Cell Charge",children:(0,o.createComponentVNode)(2,c.ProgressBar,{color:e.charge>30?"good":"bad",value:e.charge/100})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Cell Capacity",children:(0,o.createComponentVNode)(2,c.Box,{color:e.cell_capacity<3e4?"average":"good",children:e.cell_capacity})})],4)||(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Cell",children:(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No Power Cell"})}),!!e.is_hacked&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Safeties",children:(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"DISABLED"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Module",children:e.module}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Master AI",children:(0,o.createComponentVNode)(2,c.Box,{color:e.synchronization?"default":"average",children:e.synchronization||"None"})})]})},e.ref)})):(0,o.createComponentVNode)(2,c.NoticeBox,{children:"No cyborg units detected within access parameters."})}},52330:function(e,n,t){"use strict";n.__esModule=!0,n.RogueZones=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.RogueZones=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.timeout_percent,s=l.diffstep,u=l.difficulty,m=l.occupied,p=l.scanning,C=l.updated,h=l.debug,N=l.shuttle_location,V=l.shuttle_at_station,b=l.scan_ready,f=l.can_recall_shuttle;return(0,o.createComponentVNode)(2,a.Window,{width:360,height:250,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{title:"Current Area",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Mineral Content",children:u}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Shuttle Location",buttons:f&&(0,o.createComponentVNode)(2,c.Button,{color:"bad",icon:"rocket",onClick:function(){return i("recall_shuttle")},children:"Recall Shuttle"})||null,children:N}),m&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{color:"bad",labelColor:"bad",label:"Personnel",children:["WARNING: Area occupied by ",m," personnel!"]})||(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Personnel",color:"good",children:"No personnel detected."})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Scanner",buttons:(0,o.createComponentVNode)(2,c.Button,{disabled:!b,fluid:!0,icon:"search",onClick:function(){return i("scan_for_new")},children:"Scan For Asteroids"}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Scn Ramestat Core",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:d,maxValue:100,ranges:{good:[100,Infinity],average:[75,100],bad:[-Infinity,75]}})}),p&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Scanning",children:"In progress."})||null,C&&!p&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Info",children:"Updated shuttle destination!"})||null,h&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Debug",labelColor:"bad",children:[(0,o.createComponentVNode)(2,c.Box,{children:["Timeout Percent: ",d]}),(0,o.createComponentVNode)(2,c.Box,{children:["Diffstep: ",s]}),(0,o.createComponentVNode)(2,c.Box,{children:["Difficulty: ",u]}),(0,o.createComponentVNode)(2,c.Box,{children:["Occupied: ",m]}),(0,o.createComponentVNode)(2,c.Box,{children:["Debug: ",h]}),(0,o.createComponentVNode)(2,c.Box,{children:["Shuttle Location: ",N]}),(0,o.createComponentVNode)(2,c.Box,{children:["Shuttle at station: ",V]}),(0,o.createComponentVNode)(2,c.Box,{children:["Scan Ready: ",b]})]})||null]})})]})})}},59412:function(e,n,t){"use strict";n.__esModule=!0,n.RustCoreMonitorContent=n.RustCoreMonitor=void 0;var o=t(39812),r=t(71494),c=t(85952),a=t(74814);n.RustCoreMonitor=function(e,n){return(0,o.createComponentVNode)(2,c.Window,{width:627,height:700,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,i)})})};var i=function(e,n){var t=(0,r.useBackend)(n),c=t.act,i=t.data.cores;return(0,o.createComponentVNode)(2,a.Section,{title:"Cores",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"pencil-alt",content:"Set Tag",onClick:function(){return c("set_tag")}}),children:(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Name"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Position"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Field Status"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Reactant Mode"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Field Instability"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Field Temperature"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Field Strength"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Plasma Content"})]}),i.map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:[e.x,", ",e.y,", ",e.z]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",content:e.has_field?"Online":"Offline",selected:e.has_field,disabled:!e.core_operational,onClick:function(){return c("toggle_active",{core:e.ref})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",content:e.reactant_dump?"Dump":"Maintain",selected:e.has_field,disabled:!e.core_operational,onClick:function(){return c("toggle_reactantdump",{core:e.ref})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.field_instability}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.field_temperature}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Knob,{forcedInputWidth:"60px",size:1.25,color:!!e.has_field&&"yellow",value:e.target_field_strength,unit:"(W.m^-3)",minValue:1,maxValue:1e3,stepPixelSize:1,onDrag:function(n,t){return c("set_fieldstr",{core:e.ref,fieldstr:t})}})}),(0,o.createComponentVNode)(2,a.Table.Cell)]},e.name)}))]})})};n.RustCoreMonitorContent=i},59327:function(e,n,t){"use strict";n.__esModule=!0,n.RustFuelContent=n.RustFuelControl=void 0;var o=t(39812),r=t(71494),c=t(85952),a=t(74814);n.RustFuelControl=function(e,n){return(0,o.createComponentVNode)(2,c.Window,{width:627,height:700,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,i)})})};var i=function(e,n){var t=(0,r.useBackend)(n),c=t.act,i=t.data.fuels;return(0,o.createComponentVNode)(2,a.Section,{title:"Fuel Injectors",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"pencil-alt",content:"Set Tag",onClick:function(){return c("set_tag")}}),children:(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Name"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Position"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Status"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Remaining Fuel"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Fuel Rod Composition"})]}),i.map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:[e.x,", ",e.y,", ",e.z]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",content:e.active?"Online":"Offline",selected:e.active,disabled:!e.deployed,onClick:function(){return c("toggle_active",{fuel:e.ref})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.fuel_amt}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.fuel_type})]},e.name)}))]})})};n.RustFuelContent=i},54943:function(e,n,t){"use strict";n.__esModule=!0,n.Secbot=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.Secbot=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.on,s=l.open,u=l.locked,m=l.idcheck,p=l.check_records,C=l.check_arrest,h=l.arrest_type,N=l.declare_arrests,V=l.bot_patrolling,b=l.patrol;return(0,o.createComponentVNode)(2,a.Window,{width:390,height:320,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Automatic Security Unit v2.0",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:d,onClick:function(){return i("power")},children:d?"On":"Off"}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Maintenance Panel",color:s?"bad":"good",children:s?"Open":"Closed"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Behavior Controls",color:u?"good":"bad",children:u?"Locked":"Unlocked"})]})}),!u&&(0,o.createComponentVNode)(2,c.Section,{title:"Behavior Controls",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Check for Weapon Authorization",children:(0,o.createComponentVNode)(2,c.Button,{icon:m?"toggle-on":"toggle-off",selected:m,onClick:function(){return i("idcheck")},children:m?"Yes":"No"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Check Security Records",children:(0,o.createComponentVNode)(2,c.Button,{icon:p?"toggle-on":"toggle-off",selected:p,onClick:function(){return i("ignorerec")},children:p?"Yes":"No"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Check Arrest Status",children:(0,o.createComponentVNode)(2,c.Button,{icon:C?"toggle-on":"toggle-off",selected:C,onClick:function(){return i("ignorearr")},children:C?"Yes":"No"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Operating Mode",children:(0,o.createComponentVNode)(2,c.Button,{icon:h?"toggle-on":"toggle-off",selected:h,onClick:function(){return i("switchmode")},children:h?"Detain":"Arrest"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Report Arrests",children:(0,o.createComponentVNode)(2,c.Button,{icon:N?"toggle-on":"toggle-off",selected:N,onClick:function(){return i("declarearrests")},children:N?"Yes":"No"})}),!!V&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Auto Patrol",children:(0,o.createComponentVNode)(2,c.Button,{icon:b?"toggle-on":"toggle-off",selected:b,onClick:function(){return i("patrol")},children:b?"Yes":"No"})})]})})||null]})})}},57436:function(e,n,t){"use strict";n.__esModule=!0,n.SecureSafe=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.locked,d=i.l_setshort,s=i.code,u=i.emagged;return(0,o.createComponentVNode)(2,c.Box,{width:"185px",children:(0,o.createComponentVNode)(2,c.Grid,{width:"1px",children:[["1","4","7","R"],["2","5","8","0"],["3","6","9","E"]].map((function(e){return(0,o.createComponentVNode)(2,c.Grid.Column,{children:e.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{fluid:!0,bold:!0,mb:"6px",content:e,textAlign:"center",fontSize:"40px",height:"50px",lineHeight:1.25,disabled:!!u||!!d&&1||"R"!==e&&!l||"ERROR"===s&&"R"!==e&&1,onClick:function(){return a("type",{digit:e})}},e)}))},e[0])}))})})};n.SecureSafe=function(e,n){var t=(0,r.useBackend)(n),l=(t.act,t.data),d=l.code,s=l.l_setshort,u=l.l_set,m=l.emagged,p=l.locked,C=!(u||s);return(0,o.createComponentVNode)(2,a.Window,{width:250,height:380,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Box,{m:"6px",children:[C&&(0,o.createComponentVNode)(2,c.NoticeBox,{textAlign:"center",info:1,children:"ENTER NEW 5-DIGIT PASSCODE."}),!!m&&(0,o.createComponentVNode)(2,c.NoticeBox,{textAlign:"center",danger:1,children:"LOCKING SYSTEM ERROR - 1701"}),!!s&&(0,o.createComponentVNode)(2,c.NoticeBox,{textAlign:"center",danger:1,children:"ALERT: MEMORY SYSTEM ERROR - 6040 201"}),(0,o.createComponentVNode)(2,c.Section,{height:"60px",children:(0,o.createComponentVNode)(2,c.Box,{textAlign:"center",position:"center",fontSize:"35px",children:d&&d||(0,o.createComponentVNode)(2,c.Box,{textColor:p?"red":"green",children:p?"LOCKED":"UNLOCKED"})})}),(0,o.createComponentVNode)(2,c.Flex,{ml:"3px",children:[(0,o.createComponentVNode)(2,c.Flex.Item,{children:(0,o.createComponentVNode)(2,i)}),(0,o.createComponentVNode)(2,c.Flex.Item,{ml:"6px",width:"129px"})]})]})})})}},71915:function(e,n,t){"use strict";n.__esModule=!0,n.SecurityRecords=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(16007),i=t(85952),l=t(28117),d=t(1192),s=t(36355),u=(t(2497),function(e,n){(0,a.modalOpen)(e,"edit",{field:n.edit,value:n.value})});n.SecurityRecords=function(e,n){var t,u=(0,r.useBackend)(n).data,h=u.authenticated,N=u.screen;return h?(2===N?t=(0,o.createComponentVNode)(2,m):3===N?t=(0,o.createComponentVNode)(2,p):4===N&&(t=(0,o.createComponentVNode)(2,C)),(0,o.createComponentVNode)(2,i.Window,{width:700,height:680,resizable:!0,children:[(0,o.createComponentVNode)(2,a.ComplexModal,{maxHeight:"100%",maxWidth:"400px"}),(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,l.LoginInfo),(0,o.createComponentVNode)(2,s.TemporaryNotice),(0,o.createComponentVNode)(2,V),(0,o.createComponentVNode)(2,c.Section,{flexGrow:!0,children:t})]})]})):(0,o.createComponentVNode)(2,i.Window,{width:700,height:680,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,d.LoginScreen)})})};var m=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.records;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Input,{fluid:!0,placeholder:"Search by Name, DNA, or ID",onChange:function(e,n){return a("search",{t1:n})}}),(0,o.createComponentVNode)(2,c.Box,{mt:"0.5rem",children:i.map((function(e,n){return(0,o.createComponentVNode)(2,c.Button,{icon:"user",mb:"0.5rem",color:e.color,content:e.id+": "+e.name+" (Criminal Status: "+e.criminal+")",onClick:function(){return a("d_rec",{d_rec:e.ref})}},n)}))})],4)},p=function(e,n){var t=(0,r.useBackend)(n).act;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"download",content:"Backup to Disk",disabled:!0}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Button,{icon:"upload",content:"Upload from Disk",my:"0.5rem",disabled:!0}),(0,o.createTextVNode)(" "),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Button.Confirm,{icon:"trash",content:"Delete All Security Records",onClick:function(){return t("del_all")}})],4)},C=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.security,d=i.printing;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"General Data",mt:"-6px",children:(0,o.createComponentVNode)(2,h)}),(0,o.createComponentVNode)(2,c.Section,{title:"Security Data",children:(0,o.createComponentVNode)(2,N)}),(0,o.createComponentVNode)(2,c.Section,{title:"Actions",children:[(0,o.createComponentVNode)(2,c.Button.Confirm,{icon:"trash",disabled:!!l.empty,content:"Delete Security Record",color:"bad",onClick:function(){return a("del_r")}}),(0,o.createComponentVNode)(2,c.Button.Confirm,{icon:"trash",disabled:!!l.empty,content:"Delete Record (All)",color:"bad",onClick:function(){return a("del_r_2")}}),(0,o.createComponentVNode)(2,c.Button,{icon:d?"spinner":"print",disabled:d,iconSpin:!!d,content:"Print Entry",ml:"0.5rem",onClick:function(){return a("print_p")}}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-left",content:"Back",mt:"0.5rem",onClick:function(){return a("screen",{screen:2})}})]})],4)},h=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.general;return i&&i.fields?(0,o.createComponentVNode)(2,c.Flex,{children:[(0,o.createComponentVNode)(2,c.Flex.Item,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:i.fields.map((function(e,t){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.field,children:[(0,o.createComponentVNode)(2,c.Box,{height:"20px",inline:!0,preserveWhitespace:!0,children:e.value}),!!e.edit&&(0,o.createComponentVNode)(2,c.Button,{icon:"pen",ml:"0.5rem",onClick:function(){return u(n,e)}})]},t)}))})}),(0,o.createComponentVNode)(2,c.Flex.Item,{textAlign:"right",children:[!!i.has_photos&&i.photos.map((function(e,n){return(0,o.createComponentVNode)(2,c.Box,{display:"inline-block",textAlign:"center",color:"label",children:[(0,o.createVNode)(1,"img",null,null,1,{src:e.substr(1,e.length-1),style:{width:"96px","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createVNode)(1,"br"),"Photo #",n+1]},n)})),(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return a("photo_front")},children:"Update Front Photo"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return a("photo_side")},children:"Update Side Photo"})]})]})]}):(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"General records lost!"})},N=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data.security;return l&&l.fields?(0,o.createFragment)([(0,o.createComponentVNode)(2,c.LabeledList,{children:l.fields.map((function(e,t){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.field,preserveWhitespace:!0,children:[e.value,(0,o.createComponentVNode)(2,c.Button,{icon:"pen",ml:"0.5rem",mb:e.line_break?"1rem":"initial",onClick:function(){return u(n,e)}})]},t)}))}),(0,o.createComponentVNode)(2,c.Section,{title:"Comments/Log",children:[0===l.comments.length?(0,o.createComponentVNode)(2,c.Box,{color:"label",children:"No comments found."}):l.comments.map((function(e,n){return(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Box,{color:"label",inline:!0,children:e.header}),(0,o.createVNode)(1,"br"),e.text,(0,o.createComponentVNode)(2,c.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){return i("del_c",{del_c:n+1})}})]},n)})),(0,o.createComponentVNode)(2,c.Button,{icon:"comment",content:"Add Entry",color:"good",mt:"0.5rem",mb:"0",onClick:function(){return(0,a.modalOpen)(n,"add_c")}})]})],4):(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:["Security records lost!",(0,o.createComponentVNode)(2,c.Button,{icon:"pen",content:"New Record",ml:"0.5rem",onClick:function(){return i("new")}})]})},V=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.screen;return(0,o.createComponentVNode)(2,c.Tabs,{children:[(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:2===i,icon:"list",onClick:function(){return a("screen",{screen:2})},children:"List Records"}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{icon:"wrench",selected:3===i,onClick:function(){return a("screen",{screen:3})},children:"Record Maintenance"})]})}},93550:function(e,n,t){"use strict";n.__esModule=!0,n.SeedStorage=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=t(2497),l=t(64499);n.SeedStorage=function(e,n){var t=(0,r.useBackend)(n),d=t.act,s=t.data,u=(s.scanner,s.seeds),m=(0,l.sortBy)((function(e){return e.name.toLowerCase()}))(u);return(0,o.createComponentVNode)(2,a.Window,{width:600,height:760,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,c.Section,{title:"Seeds",children:m.map((function(e){return(0,o.createComponentVNode)(2,c.Flex,{spacing:1,mt:-1,children:[(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"60%",children:(0,o.createComponentVNode)(2,c.Collapsible,{title:(0,i.toTitleCase)(e.name)+" #"+e.uid,children:(0,o.createComponentVNode)(2,c.Section,{width:"165%",title:"Traits",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:Object.keys(e.traits).map((function(n){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:(0,i.toTitleCase)(n),children:e.traits[n]},n)}))})})})}),(0,o.createComponentVNode)(2,c.Flex.Item,{mt:.4,children:[e.amount," Remaining"]}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"download",onClick:function(){return d("vend",{id:e.id})},children:"Vend"})}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"trash",onClick:function(){return d("purge",{id:e.id})},children:"Purge"})})]},e.name+e.uid)}))})})})}},16765:function(e,n,t){"use strict";n.__esModule=!0,n.ShieldCapacitor=void 0;var o=t(39812),r=t(71494),c=t(85952),a=t(74814),i=t(41860),l=t(58083);n.ShieldCapacitor=function(e,n){var t=(0,r.useBackend)(n),d=t.act,s=t.data,u=s.active,m=s.time_since_fail,p=s.stored_charge,C=s.max_charge,h=s.charge_rate,N=s.max_charge_rate;return(0,o.createComponentVNode)(2,c.Window,{width:500,height:400,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{title:"Status",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",selected:u,content:u?"Online":"Offline",onClick:function(){return d("toggle")}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Capacitor Status",children:m>2?(0,o.createComponentVNode)(2,a.Box,{color:"good",children:"OK."}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Discharging!"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Stored Energy",children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:p,format:function(e){return(0,l.formatSiUnit)(e,0,"J")}})," (",(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:100*(0,i.round)(p/C,1)}),"%)"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Charge Rate",children:(0,o.createComponentVNode)(2,a.NumberInput,{value:h,step:100,stepPixelSize:.2,minValue:1e4,maxValue:N,format:function(e){return(0,l.formatPower)(e)},onDrag:function(e,n){return d("charge_rate",{rate:n})}})})]})})})})}},79229:function(e,n,t){"use strict";n.__esModule=!0,n.ShieldGenerator=void 0;var o=t(39812),r=t(71494),c=t(85952),a=t(74814),i=t(41860),l=t(58083),d=t(67861);n.ShieldGenerator=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data.locked);return(0,o.createComponentVNode)(2,c.Window,{width:500,height:400,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:a?(0,o.createComponentVNode)(2,s):(0,o.createComponentVNode)(2,u)})})};var s=function(e,n){return(0,o.createComponentVNode)(2,d.FullscreenNotice,{title:"Locked",children:[(0,o.createComponentVNode)(2,a.Box,{fontSize:"1.5rem",bold:!0,children:(0,o.createComponentVNode)(2,a.Icon,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"})}),(0,o.createComponentVNode)(2,a.Box,{color:"label",my:"1rem",children:"Swipe your ID to begin."})]})},u=function(e,n){var t=(0,r.useBackend)(n),c=t.act,d=t.data.lockedData,s=d.capacitors,u=d.active,m=d.failing,p=d.radius,C=d.max_radius,h=d.z_range,N=d.max_z_range,V=d.average_field_strength,b=d.target_field_strength,f=d.max_field_strength,g=d.shields,k=d.upkeep,v=d.strengthen_rate,B=d.max_strengthen_rate,L=d.gen_power,_=(s||[]).length;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{title:"Status",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Field Status",children:m?(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Unstable"}):(0,o.createComponentVNode)(2,a.Box,{color:"good",children:"Stable"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Overall Field Strength",children:[(0,i.round)(V,2)," Renwick (",b&&(0,i.round)(100*V/b,1)||"NA","%)"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Upkeep Power",children:(0,l.formatPower)(k)}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Shield Generation Power",children:(0,l.formatPower)(L)}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Currently Shielded",children:[g," m\xb2"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Capacitors",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:_?s.map((function(e,n){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Capacitor #"+n,children:[e.active?(0,o.createComponentVNode)(2,a.Box,{color:"good",children:"Online"}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Offline"}),(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Charge",children:[(0,l.formatSiUnit)(e.stored_charge,0,"J")," (",100*(0,i.round)(e.stored_charge/e.max_charge,2),"%)"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",children:e.failing?(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Discharging"}):(0,o.createComponentVNode)(2,a.Box,{color:"good",children:"OK."})})]})]},n)})):(0,o.createComponentVNode)(2,a.LabeledList.Item,{color:"bad",children:"No Capacitors Connected"})})})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Controls",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",content:u?"Online":"Offline",selected:u,onClick:function(){return c("toggle")}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Coverage Radius",children:(0,o.createComponentVNode)(2,a.NumberInput,{fluid:!0,stepPixelSize:6,minValue:0,maxValue:C,value:p,unit:"m",onDrag:function(e,n){return c("change_radius",{val:n})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Vertical Shielding",children:(0,o.createComponentVNode)(2,a.NumberInput,{fluid:!0,stepPixelSize:12,minValue:0,maxValue:N,value:h,unit:"vertical range",onDrag:function(e,n){return c("z_range",{val:n})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Charge Rate",children:(0,o.createComponentVNode)(2,a.NumberInput,{fluid:!0,stepPixelSize:12,minValue:0,step:.1,maxValue:B,value:v,format:function(e){return(0,i.round)(e,1)},unit:"Renwick/s",onDrag:function(e,n){return c("strengthen_rate",{val:n})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Maximum Field Strength",children:(0,o.createComponentVNode)(2,a.NumberInput,{fluid:!0,stepPixelSize:12,minValue:1,maxValue:f,value:b,unit:"Renwick",onDrag:function(e,n){return c("target_field_strength",{val:n})}})})]})})],4)}},89957:function(e,n,t){"use strict";n.__esModule=!0,n.ShutoffMonitorContent=n.ShutoffMonitor=void 0;var o=t(39812),r=t(71494),c=t(85952),a=t(74814);n.ShutoffMonitor=function(e,n){return(0,o.createComponentVNode)(2,c.Window,{width:627,height:700,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,i)})})};var i=function(e,n){var t=(0,r.useBackend)(n),c=t.act,i=t.data.valves;return(0,o.createComponentVNode)(2,a.Section,{title:"Valves",children:(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Name"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Position"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Open"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Mode"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Actions"})]}),i.map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:[e.x,", ",e.y,", ",e.z]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.open?"Yes":"No"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.enabled?"Auto":"Manual"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:[(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",content:e.open?"Opened":"Closed",selected:e.open,disabled:!e.enabled,onClick:function(){return c("toggle_open",{valve:e.ref})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",content:e.enabled?"Auto":"Manual",selected:e.enabled,onClick:function(){return c("toggle_enable",{valve:e.ref})}})]})]},e.name)}))]})})};n.ShutoffMonitorContent=i},34404:function(e,n,t){"use strict";n.__esModule=!0,n.ShuttleControl=void 0;var o=t(39812),r=t(2497),c=t(71494),a=t(74814),i=t(85952),l=function(e,n){var t="ERROR",r="bad",c=!1;return"docked"===e?(t="DOCKED",r="good"):"docking"===e?(t="DOCKING",r="average",c=!0):"undocking"===e?(t="UNDOCKING",r="average",c=!0):"undocked"===e&&(t="UNDOCKED",r="#676767"),c&&n&&(t+="-MANUAL"),(0,o.createComponentVNode)(2,a.Box,{color:r,children:t})},d=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,d=e.engineName,s=void 0===d?"Bluespace Drive":d,u=i.shuttle_status,m=i.shuttle_state,p=i.has_docking,C=i.docking_status,h=i.docking_override,N=i.docking_codes;return(0,o.createComponentVNode)(2,a.Section,{title:"Shuttle Status",children:[(0,o.createComponentVNode)(2,a.Box,{color:"label",mb:1,children:u}),(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:s,children:"idle"===m&&(0,o.createComponentVNode)(2,a.Box,{color:"#676767",bold:!0,children:"IDLE"})||"warmup"===m&&(0,o.createComponentVNode)(2,a.Box,{color:"#336699",children:"SPINNING UP"})||"in_transit"===m&&(0,o.createComponentVNode)(2,a.Box,{color:"#336699",children:"ENGAGED"})||(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"ERROR"})}),p&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Docking Status",children:l(C,h)}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Docking Codes",children:(0,o.createComponentVNode)(2,a.Button,{icon:"pen",onClick:function(){return r("set_codes")},children:N||"Not Set"})})],4)||null]})]})},s=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=i.can_launch,d=i.can_cancel,s=i.can_force;return(0,o.createComponentVNode)(2,a.Section,{title:"Controls",children:(0,o.createComponentVNode)(2,a.Flex,{spacing:1,children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return r("move")},disabled:!l,icon:"rocket",fluid:!0,children:"Launch Shuttle"})}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return r("cancel")},disabled:!d,icon:"ban",fluid:!0,children:"Cancel Launch"})}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return r("force")},color:"bad",disabled:!s,icon:"exclamation-triangle",fluid:!0,children:"Force Launch"})})]})})},u={ShuttleControlConsoleDefault:(0,o.createComponentVNode)(2,(function(e,n){var t=(0,c.useBackend)(n);t.act,t.data;return(0,o.createFragment)([(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,s)],4)})),ShuttleControlConsoleMulti:(0,o.createComponentVNode)(2,(function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=i.can_cloak,u=i.can_pick,m=i.legit,p=i.cloaked,C=i.destination_name;return(0,o.createFragment)([(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,a.Section,{title:"Multishuttle Controls",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[l&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:m?"ATC Inhibitor":"Cloaking",children:(0,o.createComponentVNode)(2,a.Button,{selected:p,icon:p?"eye":"eye-o",onClick:function(){return r("toggle_cloaked")},children:p?"Enabled":"Disabled"})})||null,(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Current Destination",children:(0,o.createComponentVNode)(2,a.Button,{icon:"taxi",disabled:!u,onClick:function(){return r("pick")},children:C})})]})}),(0,o.createComponentVNode)(2,s)],4)})),ShuttleControlConsoleExploration:(0,o.createComponentVNode)(2,(function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=i.can_pick,u=i.destination_name,m=i.fuel_usage,p=i.fuel_span,C=i.remaining_fuel;return(0,o.createFragment)([(0,o.createComponentVNode)(2,d,{engineName:"Engines"}),(0,o.createComponentVNode)(2,a.Section,{title:"Jump Controls",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Current Destination",children:(0,o.createComponentVNode)(2,a.Button,{icon:"taxi",disabled:!l,onClick:function(){return r("pick")},children:u})}),m&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Est. Delta-V Budget",color:p,children:[C," m/s"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Avg. Delta-V Per Maneuver",children:[m," m/s"]})],4)||null]})}),(0,o.createComponentVNode)(2,s)],4)})),ShuttleControlConsoleWeb:(0,o.createComponentVNode)(2,(function(e,n){var t=(0,c.useBackend)(n),i=t.act,d=t.data,s=d.autopilot,u=d.can_rename,m=d.shuttle_state,p=d.is_moving,C=d.skip_docking,h=d.docking_status,N=d.docking_override,V=d.shuttle_location,b=d.can_cloak,f=d.cloaked,g=d.can_autopilot,k=d.routes,v=d.is_in_transit,B=d.travel_progress,L=d.time_left,_=d.doors,x=d.sensors;return(0,o.createFragment)([s&&(0,o.createComponentVNode)(2,a.Section,{title:"AI PILOT (CLASS D) ACTIVE",children:(0,o.createComponentVNode)(2,a.Box,{inline:!0,italic:!0,children:"This vessel will start and stop automatically. Ensure that all non-cycling capable hatches and doors are closed, as the automated system may not be able to control them. Docking and flight controls are locked. To unlock, disable the automated flight system."})})||null,(0,o.createComponentVNode)(2,a.Section,{title:"Shuttle Status",buttons:u&&(0,o.createComponentVNode)(2,a.Button,{icon:"pen",onClick:function(){return i("rename_command")},children:"Rename"})||null,children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Engines",children:"idle"===m&&(0,o.createComponentVNode)(2,a.Box,{color:"#676767",bold:!0,children:"IDLE"})||"warmup"===m&&(0,o.createComponentVNode)(2,a.Box,{color:"#336699",children:"SPINNING UP"})||"in_transit"===m&&(0,o.createComponentVNode)(2,a.Box,{color:"#336699",children:"ENGAGED"})||(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"ERROR"})}),!p&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Current Location",children:(0,r.toTitleCase)(V)}),!C&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Docking Status",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{selected:"docked"===h,disabled:"undocked"!==h&&"docked"!==h,onClick:function(){return i("dock_command")},children:"Dock"}),(0,o.createComponentVNode)(2,a.Button,{selected:"undocked"===h,disabled:"docked"!==h&&"undocked"!==h,onClick:function(){return i("undock_command")},children:"Undock"})],4),children:(0,o.createComponentVNode)(2,a.Box,{bold:!0,inline:!0,children:l(h,N)})})||null,b&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Cloaking",children:(0,o.createComponentVNode)(2,a.Button,{selected:f,icon:f?"eye":"eye-o",onClick:function(){return i("toggle_cloaked")},children:f?"Enabled":"Disabled"})})||null,g&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Autopilot",children:(0,o.createComponentVNode)(2,a.Button,{selected:s,icon:s?"eye":"eye-o",onClick:function(){return i("toggle_autopilot")},children:s?"Enabled":"Disabled"})})||null],0)||null]}),!p&&(0,o.createComponentVNode)(2,a.Section,{level:2,title:"Available Destinations",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:k.length&&k.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name,children:(0,o.createComponentVNode)(2,a.Button,{icon:"rocket",onClick:function(){return i("traverse",{traverse:e.index})},children:e.travel_time})},e.name)}))||(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Error",color:"bad",children:"No routes found."})})})||null]}),v&&(0,o.createComponentVNode)(2,a.Section,{title:"Transit ETA",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Distance from target",children:(0,o.createComponentVNode)(2,a.ProgressBar,{color:"good",minValue:0,maxValue:100,value:B,children:[L,"s"]})})})})||null,Object.keys(_).length&&(0,o.createComponentVNode)(2,a.Section,{title:"Hatch Status",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:Object.keys(_).map((function(e){var n=_[e];return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e,children:[n.open&&(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:"bad",children:"Open"})||(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:"good",children:"Closed"}),"\xa0-\xa0",n.bolted&&(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:"good",children:"Bolted"})||(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:"bad",children:"Unbolted"})]},e)}))})})||null,Object.keys(x).length&&(0,o.createComponentVNode)(2,a.Section,{title:"Sensors",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:Object.keys(x).map((function(e){var n=x[e];return-1!==n.reading?(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e,color:"bad",children:"Unable to get sensor air reading."}):(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e,children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Pressure",children:[n.pressure,"kPa"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Temperature",children:[n.temp,"\xb0C"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Oxygen",children:[n.oxygen,"%"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Nitrogen",children:[n.nitrogen,"%"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Carbon Dioxide",children:[n.carbon_dioxide,"%"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Phoron",children:[n.phoron,"%"]}),n.other&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Other",children:[n.other,"%"]})||null]})},e)}))})})||null],0)}))};n.ShuttleControl=function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data.subtemplate);return(0,o.createComponentVNode)(2,i.Window,{width:470,height:"ShuttleControlConsoleWeb"===r?560:370,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:u[r]})})}},32325:function(e,n,t){"use strict";n.__esModule=!0,n.SignalerContent=n.Signaler=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(85952);n.Signaler=function(e,n){return(0,o.createComponentVNode)(2,i.Window,{width:280,height:132,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,l)})})};var l=function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data,d=l.code,s=l.frequency,u=l.minFrequency,m=l.maxFrequency;return(0,o.createComponentVNode)(2,a.Section,{children:[(0,o.createComponentVNode)(2,a.Grid,{children:[(0,o.createComponentVNode)(2,a.Grid.Column,{size:1.4,color:"label",children:"Frequency:"}),(0,o.createComponentVNode)(2,a.Grid.Column,{children:(0,o.createComponentVNode)(2,a.NumberInput,{animate:!0,unit:"kHz",step:.2,stepPixelSize:6,minValue:u/10,maxValue:m/10,value:s/10,format:function(e){return(0,r.toFixed)(e,1)},width:"80px",onDrag:function(e,n){return i("freq",{freq:n})}})}),(0,o.createComponentVNode)(2,a.Grid.Column,{children:(0,o.createComponentVNode)(2,a.Button,{ml:1.3,icon:"sync",content:"Reset",onClick:function(){return i("reset",{reset:"freq"})}})})]}),(0,o.createComponentVNode)(2,a.Grid,{mt:.6,children:[(0,o.createComponentVNode)(2,a.Grid.Column,{size:1.4,color:"label",children:"Code:"}),(0,o.createComponentVNode)(2,a.Grid.Column,{children:(0,o.createComponentVNode)(2,a.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:d,width:"80px",onDrag:function(e,n){return i("code",{code:n})}})}),(0,o.createComponentVNode)(2,a.Grid.Column,{children:(0,o.createComponentVNode)(2,a.Button,{ml:1.3,icon:"sync",content:"Reset",onClick:function(){return i("reset",{reset:"code"})}})})]}),(0,o.createComponentVNode)(2,a.Grid,{mt:.8,children:(0,o.createComponentVNode)(2,a.Grid.Column,{children:(0,o.createComponentVNode)(2,a.Button,{mb:-.1,fluid:!0,icon:"arrow-up",content:"Send Signal",textAlign:"center",onClick:function(){return i("signal")}})})})]})};n.SignalerContent=l},80646:function(e,n,t){"use strict";n.__esModule=!0,n.Sleeper=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(85952),l=[["good","Alive"],["average","Unconscious"],["bad","DEAD"]],d=[["Resp","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],s={average:[.25,.5],bad:[.5,Infinity]},u=["bad","average","average","good","average","average","bad"];n.Sleeper=function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data.hasOccupant?(0,o.createComponentVNode)(2,m):(0,o.createComponentVNode)(2,V));return(0,o.createComponentVNode)(2,i.Window,{width:550,height:760,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{className:"Layout__content--flexColumn",children:r})})};var m=function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data),a=(r.occupant,r.dialysis),i=r.stomachpumping;return(0,o.createFragment)([(0,o.createComponentVNode)(2,p),(0,o.createComponentVNode)(2,C),(0,o.createComponentVNode)(2,h,{title:"Dialysis",active:a,actToDo:"togglefilter"}),(0,o.createComponentVNode)(2,h,{title:"Stomach Pump",active:i,actToDo:"togglepump"}),(0,o.createComponentVNode)(2,N)],4)},p=function(e,n){var t=(0,c.useBackend)(n),i=t.act,d=t.data,s=d.occupant,m=d.auto_eject_dead,p=d.stasis;return(0,o.createComponentVNode)(2,a.Section,{title:"Occupant",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{color:"label",inline:!0,children:"Auto-eject if dead:\xa0"}),(0,o.createComponentVNode)(2,a.Button,{icon:m?"toggle-on":"toggle-off",selected:m,content:m?"On":"Off",onClick:function(){return i("auto_eject_dead_"+(m?"off":"on"))}}),(0,o.createComponentVNode)(2,a.Button,{icon:"user-slash",content:"Eject",onClick:function(){return i("ejectify")}}),(0,o.createComponentVNode)(2,a.Button,{content:p,onClick:function(){return i("changestasis")}})],4),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:s.name}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Health",children:(0,o.createComponentVNode)(2,a.ProgressBar,{min:0,max:s.maxHealth,value:s.health/s.maxHealth,ranges:{good:[.5,Infinity],average:[0,.5],bad:[-Infinity,0]},children:(0,r.round)(s.health,0)})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",color:l[s.stat][0],children:l[s.stat][1]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Temperature",children:(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:s.maxTemp,value:s.bodyTemperature/s.maxTemp,color:u[s.temperatureSuitability+3],children:[(0,r.round)(s.btCelsius,0),"\xb0C,",(0,r.round)(s.btFaren,0),"\xb0F"]})}),!!s.hasBlood&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Blood Level",children:(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:s.bloodMax,value:s.bloodLevel/s.bloodMax,ranges:{bad:[-Infinity,.6],average:[.6,.9],good:[.6,Infinity]},children:[s.bloodPercent,"%, ",s.bloodLevel,"cl"]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Pulse",verticalAlign:"middle",children:[s.pulse," BPM"]})],4)]})})},C=function(e,n){var t=(0,c.useBackend)(n).data.occupant;return(0,o.createComponentVNode)(2,a.Section,{title:"Damage",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:d.map((function(e,n){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e[0],children:(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:"100",value:t[e[1]]/100,ranges:s,children:(0,r.round)(t[e[1]],0)},n)},n)}))})})},h=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=i.isBeakerLoaded,d=i.beakerMaxSpace,s=i.beakerFreeSpace,u=e.active,m=e.actToDo,p=e.title,C=u&&s>0;return(0,o.createComponentVNode)(2,a.Section,{title:p,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{disabled:!l||s<=0,selected:C,icon:C?"toggle-on":"toggle-off",content:C?"Active":"Inactive",onClick:function(){return r(m)}}),(0,o.createComponentVNode)(2,a.Button,{disabled:!l,icon:"eject",content:"Eject",onClick:function(){return r("removebeaker")}})],4),children:l?(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Remaining Space",children:(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:d,value:s/d,ranges:{good:[.5,Infinity],average:[.25,.5],bad:[-Infinity,.25]},children:[s,"u"]})})}):(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"No beaker loaded."})})},N=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=i.occupant,d=i.chemicals,s=i.maxchem,u=i.amounts;return(0,o.createComponentVNode)(2,a.Section,{title:"Chemicals",flexGrow:"1",children:d.map((function(e,n){var t,c="";return e.overdosing?(c="bad",t=(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"exclamation-circle"}),"\xa0 Overdosing!"]})):e.od_warning&&(c="average",t=(0,o.createComponentVNode)(2,a.Box,{color:"average",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"exclamation-triangle"}),"\xa0 Close to overdosing"]})),(0,o.createComponentVNode)(2,a.Box,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,o.createComponentVNode)(2,a.Section,{title:e.title,level:"3",mx:"0",lineHeight:"18px",buttons:t,children:(0,o.createComponentVNode)(2,a.Flex,{align:"flex-start",children:[(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:s,value:e.occ_amount/s,color:c,mr:"0.5rem",children:[e.pretty_amount,"/",s,"u"]}),u.map((function(n,t){return(0,o.createComponentVNode)(2,a.Button,{disabled:!e.injectable||e.occ_amount+n>s||2===l.stat,icon:"syringe",content:n,mb:"0",height:"19px",onClick:function(){return r("chemical",{chemid:e.id,amount:n})}},t)}))]})})},n)}))})},V=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.isBeakerLoaded;return(0,o.createComponentVNode)(2,a.Section,{textAlign:"center",flexGrow:"1",children:(0,o.createComponentVNode)(2,a.Flex,{height:"100%",children:(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",align:"center",color:"label",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),"No occupant detected.",i&&(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.Button,{icon:"eject",content:"Remove Beaker",onClick:function(){return r("removebeaker")}})})||null]})})})}},55896:function(e,n,t){"use strict";n.__esModule=!0,n.SmartVend=void 0;var o=t(39812),r=t(64499),c=t(71494),a=t(74814),i=t(85952);n.SmartVend=function(e,n){var t=(0,c.useBackend)(n),l=t.act,d=t.config,s=t.data;return(0,o.createComponentVNode)(2,i.Window,{width:440,height:550,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.Section,{title:"Storage",children:[s.secure&&(0,o.createComponentVNode)(2,a.NoticeBox,{danger:-1===s.locked,info:-1!==s.locked,children:-1===s.locked?(0,o.createComponentVNode)(2,a.Box,{children:"Sec.re ACC_** //):securi_nt.diag=>##'or 1=1'%($..."}):(0,o.createComponentVNode)(2,a.Box,{children:"Secure Access: Please have your identification ready."})})||null,0===s.contents.length&&(0,o.createComponentVNode)(2,a.NoticeBox,{children:["Unfortunately, this ",d.title," is empty."]})||(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,children:"Item"}),(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,textAlign:"center",children:"Amount"}),(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,textAlign:"center",children:"Dispense"})]}),(0,r.map)((function(e,n){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,children:e.name}),(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,textAlign:"center",children:[e.amount," in stock"]}),(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,children:[(0,o.createComponentVNode)(2,a.Button,{content:"1",disabled:e.amount<1,onClick:function(){return l("Release",{index:e.index,amount:1})}}),(0,o.createComponentVNode)(2,a.Button,{content:"5",disabled:e.amount<5,onClick:function(){return l("Release",{index:e.index,amount:5})}}),(0,o.createComponentVNode)(2,a.Button,{content:"Custom",disabled:e.amount<1,onClick:function(){return l("Release",{index:e.index})}}),(0,o.createComponentVNode)(2,a.Button,{content:"All",disabled:e.amount<1,onClick:function(){return l("Release",{index:e.index,amount:e.amount})}})]})]},n)}))(s.contents)]})]})})})}},20561:function(e,n,t){"use strict";n.__esModule=!0,n.Smes=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(58083),i=t(85952),l=t(41860),d=1e3;n.Smes=function(e,n){var t=(0,r.useBackend)(n),s=t.act,u=t.data,m=u.capacityPercent,p=u.capacity,C=u.charge,h=u.inputAttempt,N=u.inputting,V=u.inputLevel,b=u.inputLevelMax,f=u.inputAvailable,g=u.outputAttempt,k=u.outputting,v=u.outputLevel,B=u.outputLevelMax,L=u.outputUsed,_=(m>=100?"good":N&&"average")||"bad",x=(k?"good":C>0&&"average")||"bad";return(0,o.createComponentVNode)(2,i.Window,{width:340,height:350,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{title:"Stored Energy",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:.01*m,ranges:{good:[.5,Infinity],average:[.15,.5],bad:[-Infinity,.15]},children:[(0,l.round)(C/6e4,1)," kWh / ",(0,l.round)(p/6e4)," kWh (",m,"%)"]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Input",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Charge Mode",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:h?"sync-alt":"times",selected:h,onClick:function(){return s("tryinput")},children:h?"On":"Off"}),children:(0,o.createComponentVNode)(2,c.Box,{color:_,children:(m>=100?"Fully Charged":N&&"Charging")||"Not Charging"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Target Input",children:(0,o.createComponentVNode)(2,c.Flex,{inline:!0,width:"100%",children:[(0,o.createComponentVNode)(2,c.Flex.Item,{children:[(0,o.createComponentVNode)(2,c.Button,{icon:"fast-backward",disabled:0===V,onClick:function(){return s("input",{target:"min"})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"backward",disabled:0===V,onClick:function(){return s("input",{adjust:-1e4})}})]}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,mx:1,children:(0,o.createComponentVNode)(2,c.Slider,{value:V/d,fillValue:f/d,minValue:0,maxValue:b/d,step:5,stepPixelSize:4,format:function(e){return(0,a.formatPower)(e*d,1)},onDrag:function(e,n){return s("input",{target:n*d})}})}),(0,o.createComponentVNode)(2,c.Flex.Item,{children:[(0,o.createComponentVNode)(2,c.Button,{icon:"forward",disabled:V===b,onClick:function(){return s("input",{adjust:1e4})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"fast-forward",disabled:V===b,onClick:function(){return s("input",{target:"max"})}})]})]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Available",children:(0,a.formatPower)(f)})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Output",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Output Mode",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:g?"power-off":"times",selected:g,onClick:function(){return s("tryoutput")},children:g?"On":"Off"}),children:(0,o.createComponentVNode)(2,c.Box,{color:x,children:k?"Sending":C>0?"Not Sending":"No Charge"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Target Output",children:(0,o.createComponentVNode)(2,c.Flex,{inline:!0,width:"100%",children:[(0,o.createComponentVNode)(2,c.Flex.Item,{children:[(0,o.createComponentVNode)(2,c.Button,{icon:"fast-backward",disabled:0===v,onClick:function(){return s("output",{target:"min"})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"backward",disabled:0===v,onClick:function(){return s("output",{adjust:-1e4})}})]}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,mx:1,children:(0,o.createComponentVNode)(2,c.Slider,{value:v/d,minValue:0,maxValue:B/d,step:5,stepPixelSize:4,format:function(e){return(0,a.formatPower)(e*d,1)},onDrag:function(e,n){return s("output",{target:n*d})}})}),(0,o.createComponentVNode)(2,c.Flex.Item,{children:[(0,o.createComponentVNode)(2,c.Button,{icon:"forward",disabled:v===B,onClick:function(){return s("output",{adjust:1e4})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"fast-forward",disabled:v===B,onClick:function(){return s("output",{target:"max"})}})]})]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Outputting",children:(0,a.formatPower)(L)})]})})]})})}},21633:function(e,n,t){"use strict";n.__esModule=!0,n.SolarControl=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=t(41860);n.SolarControl=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data,s=d.generated,u=d.generated_ratio,m=d.sun_angle,p=d.array_angle,C=d.rotation_rate,h=d.max_rotation_rate,N=d.tracking_state,V=d.connected_panels,b=d.connected_tracker;return(0,o.createComponentVNode)(2,a.Window,{width:380,height:230,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{title:"Status",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"sync",content:"Scan for new hardware",onClick:function(){return l("refresh")}}),children:(0,o.createComponentVNode)(2,c.Grid,{children:[(0,o.createComponentVNode)(2,c.Grid.Column,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Solar tracker",color:b?"good":"bad",children:b?"OK":"N/A"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Solar panels",color:V>0?"good":"bad",children:V})]})}),(0,o.createComponentVNode)(2,c.Grid.Column,{size:1.5,children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power output",children:(0,o.createComponentVNode)(2,c.ProgressBar,{ranges:{good:[.66,Infinity],average:[.33,.66],bad:[-Infinity,.33]},minValue:0,maxValue:1,value:u,children:s+" W"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Star orientation",children:[m,"\xb0"]})]})})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Controls",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Tracking",children:[(0,o.createComponentVNode)(2,c.Button,{icon:"times",content:"Off",selected:0===N,onClick:function(){return l("tracking",{mode:0})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"clock-o",content:"Timed",selected:1===N,onClick:function(){return l("tracking",{mode:1})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"sync",content:"Auto",selected:2===N,disabled:!b,onClick:function(){return l("tracking",{mode:2})}})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Azimuth",children:[(0===N||1===N)&&(0,o.createComponentVNode)(2,c.NumberInput,{width:"52px",unit:"\xb0",step:1,stepPixelSize:2,minValue:-360,maxValue:720,value:p,format:function(e){var n=Math.sign(e)>0?" (CW)":" (CCW)";return Math.abs((0,i.round)(e))+n},onDrag:function(e,n){return l("azimuth",{value:n})}}),1===N&&(0,o.createComponentVNode)(2,c.NumberInput,{width:"80px",unit:"deg/h",step:1,minValue:-h-.01,maxValue:h+.01,value:C,format:function(e){var n=Math.sign(e)>0?" (CW)":" (CCW)";return Math.abs((0,i.round)(e))+n},onDrag:function(e,n){return l("azimuth_rate",{value:n})}}),2===N&&(0,o.createComponentVNode)(2,c.Box,{inline:!0,color:"label",mt:"3px",children:[p+"\xb0"," (auto)"]})]})]})})]})})}},57762:function(e,n,t){"use strict";n.__esModule=!0,n.SpaceHeater=void 0;var o=t(39812),r=t(76270),c=t(71494),a=t(74814),i=t(85952);n.SpaceHeater=function(e,n){var t=(0,c.useBackend)(n),l=t.act,d=t.data,s=d.temp,u=d.minTemp,m=d.maxTemp,p=d.cell,C=d.power;return(0,o.createComponentVNode)(2,i.Window,{width:300,height:250,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Section,{title:"Status",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Target Temperature",children:[s," K (",s-r.T0C,"\xb0 C)"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Current Charge",children:[C,"% ",!p&&"(No Cell Inserted)"]})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Controls",children:(0,o.createComponentVNode)(2,a.LabeledControls,{children:[(0,o.createComponentVNode)(2,a.LabeledControls.Item,{label:"Thermostat",children:(0,o.createComponentVNode)(2,a.Knob,{animated:!0,value:s-r.T0C,minValue:u-r.T0C,maxValue:m-r.T0C,unit:"C",onChange:function(e,n){return l("temp",{newtemp:n+r.T0C})}})}),(0,o.createComponentVNode)(2,a.LabeledControls.Item,{label:"Cell",children:p?(0,o.createComponentVNode)(2,a.Button,{icon:"eject",content:"Eject Cell",onClick:function(){return l("cellremove")}}):(0,o.createComponentVNode)(2,a.Button,{icon:"car-battery",content:"Insert Cell",onClick:function(){return l("cellinstall")}})})]})})]})})}},58215:function(e,n,t){"use strict";n.__esModule=!0,n.Stack=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);t(88654);n.Stack=function(e,n){var t=(0,r.useBackend)(n),l=(t.act,t.data),d=l.amount,s=l.recipes;return(0,o.createComponentVNode)(2,a.Window,{width:400,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,c.Section,{title:"Amount: "+d,children:(0,o.createComponentVNode)(2,i,{recipes:s})})})})};var i=function s(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data,e.recipes);return Object.keys(a).sort().map((function(e){var n=a[e];return n.ref===undefined?(0,o.createComponentVNode)(2,c.Collapsible,{ml:1,mb:-.7,color:"label",title:e,children:(0,o.createComponentVNode)(2,c.Box,{ml:1,children:(0,o.createComponentVNode)(2,s,{recipes:n})})}):(0,o.createComponentVNode)(2,d,{title:e,recipe:n})}))},l=function(e,n){for(var t=(0,r.useBackend)(n),a=t.act,i=(t.data,e.recipe),l=e.maxMultiplier,d=Math.min(l,Math.floor(i.max_res_amount/i.res_amount)),s=[5,10,25],u=[],m=function(){var e=C[p];d>=e&&u.push((0,o.createComponentVNode)(2,c.Button,{content:e*i.res_amount+"x",onClick:function(){return a("make",{ref:i.ref,multiplier:e})}}))},p=0,C=s;p1?"s":""),C+=")",u>1&&(C=u+"x "+C);var h=function(e,n){return e.req_amount>n?0:Math.floor(n/e.req_amount)}(d,i);return(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Table,{children:(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,disabled:!h,icon:"wrench",content:C,onClick:function(){return a("make",{ref:d.ref,multiplier:1})}})}),m>1&&h>1&&(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,l,{recipe:d,maxMultiplier:h})})]})})})}},32015:function(e,n,t){"use strict";n.__esModule=!0,n.StationAlertConsoleContent=n.StationAlertConsole=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.StationAlertConsole=function(){return(0,o.createComponentVNode)(2,a.Window,{width:425,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,i)})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.categories;return(void 0===i?[]:i).map((function(e){return(0,o.createComponentVNode)(2,c.Section,{title:e.category,children:(0,o.createVNode)(1,"ul",null,[0===e.alarms.length&&(0,o.createVNode)(1,"li","color-good","Systems Nominal",16),e.alarms.map((function(e){var n="";return e.has_cameras?n=(0,o.createComponentVNode)(2,c.Section,{children:e.cameras.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{disabled:e.deact,content:e.name+(e.deact?" (deactived)":""),icon:"video",onClick:function(){return a("switchTo",{camera:e.camera})}},e.name)}))}):e.lost_sources&&(n=(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:["Lost Alarm Sources: ",e.lost_sources]})),(0,o.createVNode)(1,"li",null,[e.name,e.origin_lost?(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Alarm Origin Lost."}):"",n],0,null,e.name)}))],0)},e.category)}))};n.StationAlertConsoleContent=i},52649:function(e,n,t){"use strict";n.__esModule=!0,n.StationBlueprintsContent=n.StationBlueprints=void 0;var o=t(39812),r=(t(64499),t(85531),t(34380),t(2497),t(71494)),c=t(74814),a=t(85952);n.StationBlueprints=function(e,n){return(0,o.createComponentVNode)(2,a.Window,{width:870,height:708,resizable:!0,children:(0,o.createComponentVNode)(2,i)})};var i=function(e,n){var t=(0,r.useBackend)(n),i=(t.act,t.data),l=(t.config,i.mapRef);i.areas,i.turfs;return(0,o.createFragment)([(0,o.createVNode)(1,"div","CameraConsole__left",(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:"Honk!"}),2),(0,o.createVNode)(1,"div","CameraConsole__right",(0,o.createComponentVNode)(2,c.ByondUi,{className:"CameraConsole__map",params:{id:l,type:"map"}}),2)],4)};n.StationBlueprintsContent=i},72e3:function(e,n,t){"use strict";n.__esModule=!0,n.SuitCycler=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.SuitCycler=function(e,n){var t=(0,r.useBackend)(n),c=(t.act,t.data),u=c.active,m=c.locked,p=c.uv_active,C=(0,o.createComponentVNode)(2,i);return p?C=(0,o.createComponentVNode)(2,l):m?C=(0,o.createComponentVNode)(2,d):u&&(C=(0,o.createComponentVNode)(2,s)),(0,o.createComponentVNode)(2,a.Window,{width:320,height:400,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:C})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.safeties,d=i.occupied,s=i.suit,u=i.helmet,m=i.departments,p=i.species,C=i.uv_level,h=i.max_uv_level,N=i.can_repair,V=i.damage;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Storage",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"lock",content:"Lock",onClick:function(){return a("lock")}}),children:[!(!d||!l)&&(0,o.createComponentVNode)(2,c.NoticeBox,{children:["Biological entity detected in suit chamber. Please remove before continuing with operation.",(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"eject",color:"red",content:"Eject Entity",onClick:function(){return a("eject_guy")}})]}),(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Helmet",children:(0,o.createComponentVNode)(2,c.Button,{icon:u?"square":"square-o",content:u||"Empty",disabled:!u,onClick:function(){return a("dispense",{item:"helmet"})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Suit",children:(0,o.createComponentVNode)(2,c.Button,{icon:s?"square":"square-o",content:s||"Empty",disabled:!s,onClick:function(){return a("dispense",{item:"suit"})}})}),N&&V?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Suit Damage",children:[V,(0,o.createComponentVNode)(2,c.Button,{icon:"wrench",content:"Repair",onClick:function(){return a("repair_suit")}})]}):null]})]}),(0,o.createComponentVNode)(2,c.Section,{title:"Customization",children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Target Paintjob",children:(0,o.createComponentVNode)(2,c.Dropdown,{noscroll:!0,width:"100%",options:m,selected:m[0],onSelected:function(e){return a("department",{department:e})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Target Species",children:(0,o.createComponentVNode)(2,c.Dropdown,{width:"100%",maxHeight:"160px",options:p,selected:p[0],onSelected:function(e){return a("species",{species:e})}})})]}),(0,o.createComponentVNode)(2,c.Button,{mt:1,fluid:!0,content:"Customize",onClick:function(){return a("apply_paintjob")}})]}),(0,o.createComponentVNode)(2,c.Section,{title:"UV Decontamination",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Radiation Level",children:(0,o.createComponentVNode)(2,c.NumberInput,{width:"50px",value:C,minValue:1,maxValue:h,stepPixelSize:30,onChange:function(e,n){return a("radlevel",{radlevel:n})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Decontaminate",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"recycle",disabled:d&&l,textAlign:"center",onClick:function(){return a("uv")}})})]})})],4)},l=function(e,n){return(0,o.createComponentVNode)(2,c.NoticeBox,{children:"Contents are currently being decontaminated. Please wait."})},d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.model_text,d=i.userHasAccess;return(0,o.createComponentVNode)(2,c.Section,{title:"Locked",textAlign:"center",children:[(0,o.createComponentVNode)(2,c.Box,{color:"bad",bold:!0,children:["The ",l," suit cycler is currently locked. Please contact your system administrator."]}),(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"unlock",content:"[Unlock]",disabled:!d,onClick:function(){return a("lock")}})})]})},s=function(e,n){return(0,o.createComponentVNode)(2,c.NoticeBox,{children:"Contents are currently being painted. Please wait."})}},80748:function(e,n,t){"use strict";n.__esModule=!0,n.SuitStorageUnit=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.SuitStorageUnit=function(e,n){var t=(0,r.useBackend)(n),c=(t.act,t.data),u=c.panelopen,m=c.uv_active,p=c.broken,C=(0,o.createComponentVNode)(2,i);return u?C=(0,o.createComponentVNode)(2,l):m?C=(0,o.createComponentVNode)(2,d):p&&(C=(0,o.createComponentVNode)(2,s)),(0,o.createComponentVNode)(2,a.Window,{width:400,height:365,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:C})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.locked,d=i.open,s=i.safeties,u=i.occupied,m=i.suit,p=i.helmet,C=i.mask;return(0,o.createComponentVNode)(2,c.Section,{title:"Storage",minHeight:"260px",buttons:(0,o.createFragment)([!d&&(0,o.createComponentVNode)(2,c.Button,{icon:l?"unlock":"lock",content:l?"Unlock":"Lock",onClick:function(){return a("lock")}}),!l&&(0,o.createComponentVNode)(2,c.Button,{icon:d?"sign-out-alt":"sign-in-alt",content:d?"Close":"Open",onClick:function(){return a("door")}})],0),children:[!(!u||!s)&&(0,o.createComponentVNode)(2,c.NoticeBox,{children:["Biological entity detected in suit chamber. Please remove before continuing with operation.",(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"eject",color:"red",content:"Eject Entity",onClick:function(){return a("eject_guy")}})]}),l&&(0,o.createComponentVNode)(2,c.Box,{mt:6,bold:!0,textAlign:"center",fontSize:"40px",children:[(0,o.createComponentVNode)(2,c.Box,{children:"Unit Locked"}),(0,o.createComponentVNode)(2,c.Icon,{name:"lock"})]})||d&&(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Helmet",children:(0,o.createComponentVNode)(2,c.Button,{icon:p?"square":"square-o",content:p||"Empty",disabled:!p,onClick:function(){return a("dispense",{item:"helmet"})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Suit",children:(0,o.createComponentVNode)(2,c.Button,{icon:m?"square":"square-o",content:m||"Empty",disabled:!m,onClick:function(){return a("dispense",{item:"suit"})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Mask",children:(0,o.createComponentVNode)(2,c.Button,{icon:C?"square":"square-o",content:C||"Empty",disabled:!C,onClick:function(){return a("dispense",{item:"mask"})}})})]})||(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"recycle",content:"Decontaminate",disabled:u&&s,textAlign:"center",onClick:function(){return a("uv")}})]})},l=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.safeties,d=i.uv_super;return(0,o.createComponentVNode)(2,c.Section,{title:"Maintenance Panel",children:[(0,o.createComponentVNode)(2,c.Box,{color:"grey",children:"The panel is ridden with controls, button and meters, labeled in strange signs and symbols that you cannot understand. Probably the manufactoring world's language. Among other things, a few controls catch your eye."}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Box,{children:["A small dial with a biohazard symbol next to it. It's pointing towards a gauge that reads ",d?"15nm":"185nm",".",(0,o.createComponentVNode)(2,c.Flex,{mt:1,align:"center",textAlign:"center",children:[(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"50%",textAlign:"center",children:(0,o.createComponentVNode)(2,c.Knob,{size:2,inline:!0,value:d,minValue:0,maxValue:1,step:1,stepPixelSize:40,color:d?"red":"green",format:function(e){return e?"15nm":"185nm"},onChange:function(e,n){return a("toggleUV")}})}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"50%",textAlign:"center",children:(0,o.createComponentVNode)(2,c.Icon,{name:"biohazard",size:3,color:"orange"})})]})]}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Box,{children:["A thick old-style button, with 2 grimy LED lights next to it. The ",l?(0,o.createVNode)(1,"font",null,"GREEN",16,{color:"green"}):(0,o.createVNode)(1,"font",null,"RED",16,{color:"red"})," LED is on.",(0,o.createComponentVNode)(2,c.Flex,{mt:1,align:"center",textAlign:"center",children:[(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"50%",textAlign:"center",children:(0,o.createComponentVNode)(2,c.Button,{fontSize:"2rem",color:"grey",inline:!0,icon:"caret-square-right",style:{border:"4px solid #777","border-style":"outset"},onClick:function(){return a("togglesafeties")}})}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"50%",textAlign:"center",children:[(0,o.createComponentVNode)(2,c.Icon,{name:"circle",color:l?"black":"red",mr:2}),(0,o.createComponentVNode)(2,c.Icon,{name:"circle",color:l?"green":"black"})]})]})]})]})},d=function(e,n){return(0,o.createComponentVNode)(2,c.NoticeBox,{children:"Contents are currently being decontaminated. Please wait."})},s=function(e,n){return(0,o.createComponentVNode)(2,c.NoticeBox,{danger:!0,children:"Unit chamber is too contaminated to continue usage. Please call for a qualified individual to perform maintenance."})}},6951:function(e,n,t){"use strict";n.__esModule=!0,n.SupermatterMonitorContent=n.SupermatterMonitor=void 0;var o=t(39812),r=t(71494),c=t(74814),a=(t(58083),t(85952)),i=t(41860),l=t(2497);n.SupermatterMonitor=function(e,n){return(0,o.createComponentVNode)(2,a.Window,{width:600,height:400,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,d)})})};var d=function(e,n){var t=(0,r.useBackend)(n);t.act;return t.data.active?(0,o.createComponentVNode)(2,u):(0,o.createComponentVNode)(2,s)};n.SupermatterMonitorContent=d;var s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.supermatters;return(0,o.createComponentVNode)(2,c.Section,{title:"Supermatters Detected",buttons:(0,o.createComponentVNode)(2,c.Button,{content:"Refresh",icon:"sync",onClick:function(){return a("refresh")}}),children:(0,o.createComponentVNode)(2,c.Flex,{wrap:"wrap",children:i.map((function(e,n){return(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"49%",grow:n%2,children:(0,o.createComponentVNode)(2,c.Section,{title:e.area_name+" (#"+e.uid+")",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Integrity",children:[e.integrity," %"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Options",children:(0,o.createComponentVNode)(2,c.Button,{icon:"eye",content:"View Details",onClick:function(){return a("set",{set:e.uid})}})})]})})},n)}))})})},u=function(e,n){var t=(0,r.useBackend)(n),a=t.act,d=t.data,s=d.SM_area,u=d.SM_integrity,m=d.SM_power,p=d.SM_ambienttemp,C=d.SM_ambientpressure,h=d.SM_EPR,N=d.SM_gas_O2,V=d.SM_gas_CO2,b=d.SM_gas_N2,f=d.SM_gas_PH,g=d.SM_gas_N2O;return(0,o.createComponentVNode)(2,c.Section,{title:(0,l.toTitleCase)(s),buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-left",content:"Return to Menu",onClick:function(){return a("clear")}}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Core Integrity",children:(0,o.createComponentVNode)(2,c.ProgressBar,{animated:!0,value:u,minValue:0,maxValue:100,ranges:{good:[100,100],average:[50,100],bad:[-Infinity,50]}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Relative EER",children:(0,o.createComponentVNode)(2,c.Box,{color:(m>300?"bad":m>150&&"average")||"good",children:(0,o.createComponentVNode)(2,c.AnimatedNumber,{format:function(e){return(0,i.round)(e,2)+" MeV/cm\xb3"},value:m})})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Temperature",children:(0,o.createComponentVNode)(2,c.Box,{color:(p>5e3?"bad":p>4e3&&"average")||"good",children:(0,o.createComponentVNode)(2,c.AnimatedNumber,{format:function(e){return(0,i.round)(e,2)+" K"},value:p})})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Pressure",children:(0,o.createComponentVNode)(2,c.Box,{color:(C>1e4?"bad":C>5e3&&"average")||"good",children:(0,o.createComponentVNode)(2,c.AnimatedNumber,{format:function(e){return(0,i.round)(e,2)+" kPa"},value:C})})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Chamber EPR",children:(0,o.createComponentVNode)(2,c.Box,{color:(h>4?"bad":h>1&&"average")||"good",children:(0,o.createComponentVNode)(2,c.AnimatedNumber,{format:function(e){return(0,i.round)(e,2)},value:h})})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Gas Composition",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"O\xb2",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:N}),"%"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"CO\xb2",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:V}),"%"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"N\xb2",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:b}),"%"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"PH",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:f}),"%"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"N\xb2O",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:g}),"%"]})]})})]})})}},12431:function(e,n,t){"use strict";n.__esModule=!0,n.SupplyConsole=void 0;var o=t(39812),r=t(64499),c=(t(41860),t(58083)),a=t(71494),i=t(74814),l=t(16007),d=t(85952),s=t(85531),u=function(e,n){var t=(0,a.useBackend)(n),r=t.act,c=t.data.supply_points,l=e.args,d=l.name,s=l.cost,u=l.manifest,m=l.ref,p=l.random;return(0,o.createComponentVNode)(2,i.Section,{width:"400px",level:2,m:"-1rem",pb:"1rem",title:d,buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"shopping-cart",content:"Buy - "+s+" points",disabled:s>c,onClick:function(){return r("request_crate",{ref:m})}}),children:(0,o.createComponentVNode)(2,i.Section,{title:"Contains"+(p?" any "+p+" of:":""),scrollable:!0,height:"200px",children:u.map((function(e){return(0,o.createComponentVNode)(2,i.Box,{children:e},e)}))})})};n.SupplyConsole=function(e,n){var t=(0,a.useBackend)(n);t.act,t.data;return(0,l.modalRegisterBodyOverride)("view_crate",u),(0,o.createComponentVNode)(2,d.Window,{width:700,height:620,children:(0,o.createComponentVNode)(2,d.Window.Content,{children:[(0,o.createComponentVNode)(2,l.ComplexModal,{maxWidth:"100%"}),(0,o.createComponentVNode)(2,i.Section,{title:"Supply Records",children:[(0,o.createComponentVNode)(2,m),(0,o.createComponentVNode)(2,p)]})]})})};var m=function(e,n){var t=(0,a.useBackend)(n),r=t.act,l=t.data,d=l.supply_points,s=l.shuttle,u=null,m=!1;return l.shuttle_auth&&(1===s.launch&&0===s.mode?u=(0,o.createComponentVNode)(2,i.Button,{icon:"rocket",content:"Send Away",onClick:function(){return r("send_shuttle",{mode:"send_away"})}}):2!==s.launch||3!==s.mode&&1!==s.mode?1===s.launch&&5===s.mode&&(u=(0,o.createComponentVNode)(2,i.Button,{icon:"rocket",content:"Send Shuttle",onClick:function(){return r("send_shuttle",{mode:"send_to_station"})}})):u=(0,o.createComponentVNode)(2,i.Button,{icon:"ban",content:"Cancel Launch",onClick:function(){return r("send_shuttle",{mode:"cancel_shuttle"})}}),s.force&&(m=!0)),(0,o.createComponentVNode)(2,i.Section,{children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Supply Points",children:(0,o.createComponentVNode)(2,i.AnimatedNumber,{value:d})})}),(0,o.createComponentVNode)(2,i.Section,{level:2,title:"Supply Shuttle",mt:2,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Location",buttons:(0,o.createFragment)([u,m?(0,o.createComponentVNode)(2,i.Button,{icon:"exclamation-triangle",content:"Force Launch",onClick:function(){return r("send_shuttle",{mode:"force_shuttle"})}}):null],0),children:s.location}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Engine",children:s.engine}),4===s.mode?(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"ETA",children:s.time>1?(0,c.formatTime)(s.time):"LATE"}):null]})})]})},p=function(e,n){var t=(0,a.useBackend)(n),r=(t.act,t.data.order_auth,(0,a.useLocalState)(n,"tabIndex",0)),c=r[0],l=r[1];return(0,o.createComponentVNode)(2,i.Section,{title:"Menu",children:[(0,o.createComponentVNode)(2,i.Tabs,{children:[(0,o.createComponentVNode)(2,i.Tabs.Tab,{icon:"box",selected:0===c,onClick:function(){return l(0)},children:"Request"}),(0,o.createComponentVNode)(2,i.Tabs.Tab,{icon:"check-circle-o",selected:1===c,onClick:function(){return l(1)},children:"Accepted"}),(0,o.createComponentVNode)(2,i.Tabs.Tab,{icon:"circle-o",selected:2===c,onClick:function(){return l(2)},children:"Requests"}),(0,o.createComponentVNode)(2,i.Tabs.Tab,{icon:"book",selected:3===c,onClick:function(){return l(3)},children:"Order history"}),(0,o.createComponentVNode)(2,i.Tabs.Tab,{icon:"book",selected:4===c,onClick:function(){return l(4)},children:"Export history"})]}),0===c?(0,o.createComponentVNode)(2,C):null,1===c?(0,o.createComponentVNode)(2,h,{mode:"Approved"}):null,2===c?(0,o.createComponentVNode)(2,h,{mode:"Requested"}):null,3===c?(0,o.createComponentVNode)(2,h,{mode:"All"}):null,4===c?(0,o.createComponentVNode)(2,N):null]})},C=function(e,n){var t=(0,a.useBackend)(n),c=t.act,l=t.data,d=l.categories,u=l.supply_packs,m=l.contraband,p=l.supply_points,C=(0,a.useLocalState)(n,"activeCategory",null),h=C[0],N=C[1],V=(0,s.flow)([(0,r.filter)((function(e){return e.group===h})),(0,r.filter)((function(e){return!e.contraband||m})),(0,r.sortBy)((function(e){return e.name})),(0,r.sortBy)((function(e){return e.cost>p}))])(u);return(0,o.createComponentVNode)(2,i.Section,{level:2,children:(0,o.createComponentVNode)(2,i.Stack,{children:[(0,o.createComponentVNode)(2,i.Stack.Item,{basis:"25%",children:(0,o.createComponentVNode)(2,i.Section,{title:"Categories",scrollable:!0,fill:!0,height:"290px",children:d.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{fluid:!0,content:e,selected:e===h,onClick:function(){return N(e)}},e)}))})}),(0,o.createComponentVNode)(2,i.Stack.Item,{grow:1,ml:2,children:(0,o.createComponentVNode)(2,i.Section,{title:"Contents",scrollable:!0,fill:!0,height:"290px",children:V.map((function(e){return(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Stack,{align:"center",justify:"flex-start",children:[(0,o.createComponentVNode)(2,i.Stack.Item,{basis:"70%",children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,icon:"shopping-cart",ellipsis:!0,content:e.name,color:e.cost>p?"red":null,onClick:function(){return c("request_crate",{ref:e.ref})}})}),(0,o.createComponentVNode)(2,i.Stack.Item,{children:(0,o.createComponentVNode)(2,i.Button,{content:"#",color:e.cost>p?"red":null,onClick:function(){return c("request_crate_multi",{ref:e.ref})}})}),(0,o.createComponentVNode)(2,i.Stack.Item,{children:(0,o.createComponentVNode)(2,i.Button,{content:"C",color:e.cost>p?"red":null,onClick:function(){return c("view_crate",{crate:e.ref})}})}),(0,o.createComponentVNode)(2,i.Stack.Item,{grow:1,children:[e.cost," points"]})]})},e.name)}))})})]})})},h=function(e,n){var t=(0,a.useBackend)(n),r=t.act,c=t.data,l=e.mode,d=c.orders,s=c.order_auth,u=c.supply_points,m=d.filter((function(e){return e.status===l||"All"===l}));return m.length?(0,o.createComponentVNode)(2,i.Section,{level:2,children:["Requested"===l&&s?(0,o.createComponentVNode)(2,i.Button,{mt:-1,mb:1,fluid:!0,color:"red",icon:"trash",content:"Clear all requests",onClick:function(){return r("clear_all_requests")}}):null,m.map((function(e,n){return(0,o.createComponentVNode)(2,i.Section,{title:"Order "+(n+1),buttons:"All"===l&&s?(0,o.createComponentVNode)(2,i.Button,{color:"red",icon:"trash",content:"Delete Record",onClick:function(){return r("delete_order",{ref:e.ref})}}):null,children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:[e.entries.map((function(n){return n.entry?(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:n.field,buttons:s?(0,o.createComponentVNode)(2,i.Button,{icon:"pen",content:"Edit",onClick:function(){r("edit_order_value",{ref:e.ref,edit:n.field,"default":n.entry})}}):null,children:n.entry}):null})),"All"===l?(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Status",children:e.status}):null]}),s&&"Requested"===l?(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{icon:"check",content:"Approve",disabled:e.cost>u,onClick:function(){return r("approve_order",{ref:e.ref})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"times",content:"Deny",onClick:function(){return r("deny_order",{ref:e.ref})}})],4):null]},n)}))]}):(0,o.createComponentVNode)(2,i.Section,{level:2,children:"No orders found."})},N=function(e,n){var t=(0,a.useBackend)(n),r=t.act,c=t.data,l=c.receipts,d=c.order_auth;return l.length?(0,o.createComponentVNode)(2,i.Section,{level:2,children:l.map((function(e,n){return(0,o.createComponentVNode)(2,i.Section,{children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:[e.title.map((function(n){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:n.field,buttons:d?(0,o.createComponentVNode)(2,i.Button,{icon:"pen",content:"Edit",onClick:function(){return r("export_edit",{ref:e.ref,edit:n.field,"default":n.entry})}}):null,children:n.entry},n.field)})),e.error?(0,o.createComponentVNode)(2,i.LabeledList.Item,{labelColor:"red",label:"Error",children:e.error}):e.contents.map((function(n,t){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:n.object,buttons:d?(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{icon:"pen",content:"Edit",onClick:function(){return r("export_edit_field",{ref:e.ref,index:t+1,edit:"meow","default":n.object})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"trash",color:"red",content:"Delete",onClick:function(){return r("export_delete_field",{ref:e.ref,index:t+1})}})],4):null,children:[n.quantity,"x -> ",n.value," points"]},t)}))]}),d?(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{mt:1,icon:"plus",content:"Add Item To Record",onClick:function(){return r("export_add_field",{ref:e.ref})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"trash",content:"Delete Record",onClick:function(){return r("export_delete",{ref:e.ref})}})],4):null]},n)}))}):(0,o.createComponentVNode)(2,i.Section,{level:2,children:"No receipts found."})}},30111:function(e,n,t){"use strict";n.__esModule=!0,n.TEGenerator=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(85952),l=t(58083);n.TEGenerator=function(e,n){var t=(0,c.useBackend)(n).data,r=t.totalOutput,s=t.maxTotalOutput,u=t.thermalOutput,m=t.primary,p=t.secondary;return(0,o.createComponentVNode)(2,i.Window,{width:550,height:310,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Section,{title:"Status",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Total Output",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:r,maxValue:s,children:(0,l.formatPower)(r)})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Thermal Output",children:(0,l.formatPower)(u)})]})}),m&&p?(0,o.createComponentVNode)(2,a.Flex,{spacing:1,children:[(0,o.createComponentVNode)(2,a.Flex.Item,{shrink:1,grow:1,children:(0,o.createComponentVNode)(2,d,{name:"Primary Circulator",values:m})}),(0,o.createComponentVNode)(2,a.Flex.Item,{shrink:1,grow:1,children:(0,o.createComponentVNode)(2,d,{name:"Secondary Circulator",values:p})})]}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Warning! Both circulators must be connected in order to operate this machine."})]})})};var d=function(e,n){var t=e.name,c=e.values,i=c.dir,d=c.output,s=c.flowCapacity,u=c.inletPressure,m=c.inletTemperature,p=c.outletPressure,C=c.outletTemperature;return(0,o.createComponentVNode)(2,a.Section,{title:t+" ("+i+")",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Turbine Output",children:(0,l.formatPower)(d)}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Flow Capacity",children:[(0,r.round)(s,2),"%"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Inlet Pressure",children:(0,l.formatSiUnit)(1e3*u,0,"Pa")}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Inlet Temperature",children:[(0,r.round)(m,2)," K"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Outlet Pressure",children:(0,l.formatSiUnit)(1e3*p,0,"Pa")}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Outlet Temperature",children:[(0,r.round)(C,2)," K"]})]})})}},58457:function(e,n,t){"use strict";n.__esModule=!0,n.Tank=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.Tank=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.connected,s=l.showToggle,u=void 0===s||s,m=l.maskConnected,p=l.tankPressure,C=l.releasePressure,h=l.defaultReleasePressure,N=l.minReleasePressure,V=l.maxReleasePressure;return(0,o.createComponentVNode)(2,a.Window,{width:400,height:320,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{title:"Status",buttons:!!u&&(0,o.createComponentVNode)(2,c.Button,{icon:d?"air-freshener":"lock-open",selected:d,disabled:!m,content:"Mask Release Valve",onClick:function(){return i("toggle")}}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Mask Connected",children:m?"Yes":"No"})})}),(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Pressure",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:p/1013,ranges:{good:[.35,Infinity],average:[.15,.35],bad:[-Infinity,.15]},children:l.tankPressure+" kPa"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Pressure Regulator",children:[(0,o.createComponentVNode)(2,c.Button,{icon:"fast-backward",disabled:C===N,onClick:function(){return i("pressure",{pressure:"min"})}}),(0,o.createComponentVNode)(2,c.NumberInput,{animated:!0,value:parseFloat(C),width:"65px",unit:"kPa",minValue:N,maxValue:V,onChange:function(e,n){return i("pressure",{pressure:n})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"fast-forward",disabled:C===V,onClick:function(){return i("pressure",{pressure:"max"})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"undo",content:"",disabled:C===h,onClick:function(){return i("pressure",{pressure:"reset"})}})]})]})})]})})}},38754:function(e,n,t){"use strict";n.__esModule=!0,n.TankDispenser=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.TankDispenser=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data;return(0,o.createComponentVNode)(2,a.Window,{width:275,height:103,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Phoron",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:l.plasma?"square":"square-o",content:"Dispense",disabled:!l.plasma,onClick:function(){return i("plasma")}}),children:l.plasma}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Oxygen",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:l.oxygen?"square":"square-o",content:"Dispense",disabled:!l.oxygen,onClick:function(){return i("oxygen")}}),children:l.oxygen})]})})})})}},73754:function(e,n,t){"use strict";n.__esModule=!0,n.TelecommsLogBrowser=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(85952);n.TelecommsLogBrowser=function(e,n){var t=(0,c.useBackend)(n),r=t.act,s=t.data,u=s.universal_translate,m=s.network,p=s.temp,C=s.servers,h=s.selectedServer;return(0,o.createComponentVNode)(2,i.Window,{width:575,height:450,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[p&&p.length?(0,o.createComponentVNode)(2,a.NoticeBox,{warning:!0,children:[(0,o.createComponentVNode)(2,a.Box,{display:"inline-box",verticalAlign:"middle",children:p}),(0,o.createComponentVNode)(2,a.Button,{icon:"times-circle",float:"right",onClick:function(){return r("cleartemp")}}),(0,o.createComponentVNode)(2,a.Box,{clear:"both"})]}):null,(0,o.createComponentVNode)(2,a.Section,{title:"Network Control",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Current Network",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"search",content:"Refresh",onClick:function(){return r("scan")}}),(0,o.createComponentVNode)(2,a.Button,{color:"bad",icon:"exclamation-triangle",content:"Flush Buffer",disabled:0===C.length,onClick:function(){return r("release")}})],4),children:(0,o.createComponentVNode)(2,a.Button,{content:m,icon:"pen",onClick:function(){return r("network")}})})})}),h?(0,o.createComponentVNode)(2,d,{network:m,server:h,universal_translate:u}):(0,o.createComponentVNode)(2,l,{network:m,servers:C})]})})};var l=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=(t.data,e.network,e.servers);return i&&i.length?(0,o.createComponentVNode)(2,a.Section,{title:"Detected Telecommunication Servers",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:i.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name+" ("+e.id+")",children:(0,o.createComponentVNode)(2,a.Button,{content:"View",icon:"eye",onClick:function(){return r("view",{id:e.id})}})},e.id)}))})}):(0,o.createComponentVNode)(2,a.Section,{title:"Detected Telecommunications Servers",children:[(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"No servers detected."}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,content:"Scan",icon:"search",onClick:function(){return r("scan")}})]})},d=function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=(t.data,e.network,e.server),d=e.universal_translate;return(0,o.createComponentVNode)(2,a.Section,{title:"Server ("+l.id+")",buttons:(0,o.createComponentVNode)(2,a.Button,{content:"Return",icon:"undo",onClick:function(){return i("mainmenu")}}),children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Total Recorded Traffic",children:l.totalTraffic>=1024?(0,r.round)(l.totalTraffic/1024)+" Terrabytes":l.totalTraffic+" Gigabytes"})}),(0,o.createComponentVNode)(2,a.Section,{title:"Stored Logs",mt:"4px",children:(0,o.createComponentVNode)(2,a.Flex,{wrap:"wrap",children:l.logs&&l.logs.length?l.logs.map((function(e){return(0,o.createComponentVNode)(2,a.Flex.Item,{m:"2px",basis:"49%",grow:e.id%2,children:(0,o.createComponentVNode)(2,a.Section,{title:d||e.parameters.uspeech||e.parameters.intelligible||"Execution Error"===e.input_type?e.input_type:"Audio File",buttons:(0,o.createComponentVNode)(2,a.Button.Confirm,{confirmContent:"Delete Log?",color:"bad",icon:"trash",confirmIcon:"trash",onClick:function(){return i("delete",{id:e.id})}}),children:"Execution Error"===e.input_type?(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Data type",children:"Error"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Output",children:e.parameters.message}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Delete",children:(0,o.createComponentVNode)(2,a.Button,{icon:"trash",onClick:function(){return i("delete",{id:e.id})}})})]}):d||e.parameters.uspeech||e.parameters.intelligible?(0,o.createComponentVNode)(2,s,{log:e}):(0,o.createComponentVNode)(2,s,{error:!0})})},e.id)})):"No Logs Detected."})})]})},s=function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data,e.log),i=e.error,l=r&&r.parameters||{none:"none"},d=l.timecode,s=l.name,u=l.race,m=l.job,p=l.message;return i?(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Time Recieved",children:d}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Source",children:"Unidentifiable"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Class",children:u}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Contents",children:"Unintelligible"})]}):(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Time Recieved",children:d}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Source",children:[s," (Job: ",m,")"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Class",children:u}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Contents",className:"LabeledList__breakContents",children:p})]})}},29441:function(e,n,t){"use strict";n.__esModule=!0,n.TelecommsMachineBrowser=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.TelecommsMachineBrowser=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data,s=d.network,u=d.temp,m=d.machinelist,p=d.selectedMachine;return(0,o.createComponentVNode)(2,a.Window,{width:575,height:450,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[u&&u.length?(0,o.createComponentVNode)(2,c.NoticeBox,{warning:!0,children:[(0,o.createComponentVNode)(2,c.Box,{display:"inline-box",verticalAlign:"middle",children:u}),(0,o.createComponentVNode)(2,c.Button,{icon:"times-circle",float:"right",onClick:function(){return l("cleartemp")}}),(0,o.createComponentVNode)(2,c.Box,{clear:"both"})]}):null,(0,o.createComponentVNode)(2,c.Section,{title:"Network Control",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Current Network",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"search",content:"Probe Network",onClick:function(){return l("scan")}}),(0,o.createComponentVNode)(2,c.Button,{color:"bad",icon:"exclamation-triangle",content:"Flush Buffer",disabled:0===m.length,onClick:function(){return l("release")}})],4),children:(0,o.createComponentVNode)(2,c.Button,{content:s,icon:"pen",onClick:function(){return l("network")}})})})}),m&&m.length?(0,o.createComponentVNode)(2,i,{title:p?p.name+" ("+p.id+")":"Detected Network Entities",list:p?p.links:m,showBack:p}):(0,o.createComponentVNode)(2,c.Section,{title:"No Devices Found",children:(0,o.createComponentVNode)(2,c.Button,{icon:"search",content:"Probe Network",onClick:function(){return l("scan")}})})]})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=(t.data,e.list),l=e.title,d=e.showBack;return(0,o.createComponentVNode)(2,c.Section,{title:l,buttons:d&&(0,o.createComponentVNode)(2,c.Button,{icon:"undo",content:"Back to Main Menu",onClick:function(){return a("mainmenu")}}),children:[(0,o.createComponentVNode)(2,c.Box,{color:"label",children:(0,o.createVNode)(1,"u",null,"Linked entities",16)}),(0,o.createComponentVNode)(2,c.LabeledList,{children:i.length?i.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name+" ("+e.id+")",children:(0,o.createComponentVNode)(2,c.Button,{content:"View",icon:"eye",onClick:function(){return a("view",{id:e.id})}})},e.id)})):(0,o.createComponentVNode)(2,c.LabeledList.Item,{color:"bad",children:"No links detected."})})]})}},86756:function(e,n,t){"use strict";n.__esModule=!0,n.TelecommsMultitoolMenu=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(36355),i=t(85952);n.TelecommsMultitoolMenu=function(e,n){var t=(0,r.useBackend)(n),c=(t.act,t.data),s=(c.temp,c.on,c.id,c.network,c.autolinkers,c.shadowlink,c.options);c.linked,c.filter,c.multitool,c.multitool_buffer;return(0,o.createComponentVNode)(2,i.Window,{width:520,height:540,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.TemporaryNotice),(0,o.createComponentVNode)(2,l),(0,o.createComponentVNode)(2,d,{options:s})]})})};var l=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=(i.temp,i.on),d=i.id,s=i.network,u=i.autolinkers,m=i.shadowlink,p=(i.options,i.linked),C=i.filter,h=i.multitool,N=i.multitool_buffer;return(0,o.createComponentVNode)(2,c.Section,{title:"Status",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:l,content:l?"On":"Off",onClick:function(){return a("toggle")}}),children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Identification String",children:(0,o.createComponentVNode)(2,c.Button,{icon:"pen",content:d,onClick:function(){return a("id")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Network",children:(0,o.createComponentVNode)(2,c.Button,{icon:"pen",content:s,onClick:function(){return a("network")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Prefabrication",children:u?"TRUE":"FALSE"}),m?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Shadow Link",children:"Active."}):null,h?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Multitool Buffer",children:[N?(0,o.createFragment)([N.name,(0,o.createTextVNode)(" ("),N.id,(0,o.createTextVNode)(")")],0):null,(0,o.createComponentVNode)(2,c.Button,{color:N?"green":null,content:N?"Link ("+N.id+")":"Add Machine",icon:N?"link":"plus",onClick:N?function(){return a("link")}:function(){return a("buffer")}}),N?(0,o.createComponentVNode)(2,c.Button,{color:"red",content:"Flush",icon:"trash",onClick:function(){return a("flush")}}):null]}):null]}),(0,o.createComponentVNode)(2,c.Section,{title:"Linked network Entities",mt:1,children:(0,o.createComponentVNode)(2,c.LabeledList,{children:p.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.ref+" "+e.name+" ("+e.id+")",buttons:(0,o.createComponentVNode)(2,c.Button.Confirm,{color:"red",icon:"trash",onClick:function(){return a("unlink",{unlink:e.index})}})},e.ref)}))})}),(0,o.createComponentVNode)(2,c.Section,{title:"Filtering Frequencies",mt:1,children:[C.map((function(e){return(0,o.createComponentVNode)(2,c.Button.Confirm,{content:e.name+" GHz",confirmContent:"Delete?",confirmColor:"red",confirmIcon:"trash",onClick:function(){return a("delete",{"delete":e.freq})}},e.index)})),C&&0!==C.length?null:(0,o.createComponentVNode)(2,c.Box,{color:"label",children:"No filters."})]})]})},d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=(t.data,e.options),l=i.use_listening_level,d=i.use_broadcasting,s=i.use_receiving,u=i.listening_level,m=i.broadcasting,p=i.receiving,C=i.use_change_freq,h=i.change_freq,N=i.use_broadcast_range,V=i.use_receive_range,b=i.range,f=i.minRange,g=i.maxRange;return l||d||s||C||N||V?(0,o.createComponentVNode)(2,c.Section,{title:"Options",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[l?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Signal Locked to Station",children:(0,o.createComponentVNode)(2,c.Button,{icon:u?"lock-closed":"lock-open",content:u?"Yes":"No",onClick:function(){return a("change_listening")}})}):null,d?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Broadcasting",children:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:m,content:m?"Yes":"No",onClick:function(){return a("broadcast")}})}):null,s?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Receving",children:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:p,content:p?"Yes":"No",onClick:function(){return a("receive")}})}):null,C?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Change Signal Frequency",children:(0,o.createComponentVNode)(2,c.Button,{icon:"wave-square",selected:!!h,content:h?"Yes ("+h+")":"No",onClick:function(){return a("change_freq")}})}):null,N||V?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:(N?"Broadcast":"Receive")+" Range",children:(0,o.createComponentVNode)(2,c.NumberInput,{value:b,minValue:f,maxValue:g,unit:"gigameters",stepPixelSize:4,format:function(e){return e+1},onDrag:function(e,n){return a("range",{range:n})}})}):null]})}):(0,o.createComponentVNode)(2,c.Section,{title:"No Options Found"})}},18509:function(e,n,t){"use strict";n.__esModule=!0,n.Teleporter=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.Teleporter=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.locked_name,s=l.station_connected,u=l.hub_connected,m=l.calibrated,p=l.teleporter_on;return(0,o.createComponentVNode)(2,a.Window,{width:300,height:200,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Target",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"bullseye",onClick:function(){return i("select_target")},content:d})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Calibrated",children:(0,o.createComponentVNode)(2,c.Button.Checkbox,{fluid:!0,checked:m,color:m?"good":"bad",onClick:function(){return i("test_fire")},content:m?"Accurate":"Test Fire"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Teleporter",children:(0,o.createComponentVNode)(2,c.Button.Checkbox,{fluid:!0,checked:p,color:p?"good":"bad",onClick:function(){return i("toggle_on")},content:p?"Online":"OFFLINE"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Station",children:s?"Connected":"Not Connected"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Hub",children:u?"Connected":"Not Connected"})]})})})})}},62555:function(e,n,t){"use strict";n.__esModule=!0,n.TelesciConsoleContent=n.TelesciConsole=void 0;var o=t(39812),r=t(64499),c=t(71494),a=t(74814),i=t(85952);n.TelesciConsole=function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data.noTelepad);return(0,o.createComponentVNode)(2,i.Window,{width:400,height:450,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:r&&(0,o.createComponentVNode)(2,l)||(0,o.createComponentVNode)(2,d)})})};var l=function(e,n){return(0,o.createComponentVNode)(2,a.Section,{title:"Error",color:"bad",children:["No telepad located.",(0,o.createVNode)(1,"br"),"Please add telepad data."]})},d=function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data,d=l.insertedGps,s=l.rotation,u=l.currentZ,m=l.cooldown,p=l.crystalCount,C=l.maxCrystals,h=(l.maxPossibleDistance,l.maxAllowedDistance),N=l.distance,V=l.tempMsg,b=l.sectorOptions,f=l.lastTeleData;return(0,o.createComponentVNode)(2,a.Section,{title:"Telepad Controls",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"eject",disabled:!d,onClick:function(){return i("ejectGPS")},content:"Eject GPS"}),children:[(0,o.createComponentVNode)(2,a.NoticeBox,{info:!0,children:m&&(0,o.createComponentVNode)(2,a.Box,{children:["Telepad is recharging. Please wait ",(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:m})," seconds."]})||(0,o.createComponentVNode)(2,a.Box,{children:V})}),(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Bearing",children:(0,o.createComponentVNode)(2,a.NumberInput,{fluid:!0,value:s,format:function(e){return e+"\xb0"},step:1,minValue:-900,maxValue:900,onDrag:function(e,n){return i("setrotation",{val:n})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Distance",children:(0,o.createComponentVNode)(2,a.NumberInput,{fluid:!0,value:N,format:function(e){return e+"/"+h+" m"},minValue:0,maxValue:h,step:1,stepPixelSize:4,onDrag:function(e,n){return i("setdistance",{val:n})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Sector",children:(0,r.sortBy)((function(e){return Number(e)}))(b).map((function(e){return(0,o.createComponentVNode)(2,a.Button,{icon:"check-circle",content:e,selected:u===e,onClick:function(){return i("setz",{setz:e})}},e)}))}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Controls",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"share",iconRotation:-90,onClick:function(){return i("send")},content:"Send"}),(0,o.createComponentVNode)(2,a.Button,{icon:"share",iconRotation:90,onClick:function(){return i("receive")},content:"Receive"}),(0,o.createComponentVNode)(2,a.Button,{icon:"sync",iconRotation:90,onClick:function(){return i("recal")},content:"Recalibrate"})]})]}),f&&(0,o.createComponentVNode)(2,a.Section,{mt:1,children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Telepad Location",children:[f.src_x,", ",f.src_y]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Distance",children:[f.distance,"m"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Transit Time",children:[f.time," secs"]})]})})||(0,o.createComponentVNode)(2,a.Section,{mt:1,children:"No teleport data found."}),(0,o.createComponentVNode)(2,a.Section,{children:["Crystals: ",p," / ",C]})]})};n.TelesciConsoleContent=d},55096:function(e,n,t){"use strict";n.__esModule=!0,n.TimeClock=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(85952),l=t(14959);n.TimeClock=function(e,n){var t=(0,c.useBackend)(n),d=t.act,s=t.data,u=s.department_hours,m=s.user_name,p=s.card,C=s.assignment,h=s.job_datum,N=s.allow_change_job,V=s.job_choices;return(0,o.createComponentVNode)(2,i.Window,{width:500,height:520,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{title:"OOC",children:[(0,o.createComponentVNode)(2,a.NoticeBox,{children:"OOC Note: PTO acquired is account-wide and shared across all characters. Info listed below is not IC information."}),(0,o.createComponentVNode)(2,a.Section,{level:2,title:"Time Off Balance for "+m,children:(0,o.createComponentVNode)(2,a.LabeledList,{children:Object.keys(u).map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e,color:u[e]>6?"good":u[e]>1?"average":"bad",children:[(0,r.toFixed)(u[e],1)," ",1===u[e]?"hour":"hours"]},e)}))})})]}),(0,o.createComponentVNode)(2,a.Section,{title:"Employee Info",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Employee ID",children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"user",onClick:function(){return d("id")},children:p||"Insert ID"})}),!!h&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Rank",children:(0,o.createComponentVNode)(2,a.Box,{backgroundColor:h.selection_color,p:.8,children:(0,o.createComponentVNode)(2,a.Flex,{justify:"space-between",align:"center",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Box,{ml:1,children:(0,o.createComponentVNode)(2,l.RankIcon,{color:"white",rank:h.title})})}),(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Box,{fontSize:1.5,inline:!0,mr:1,children:h.title})})]})})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Departments",children:h.departments}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Pay Scale",children:h.economic_modifier}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"PTO Elegibility",children:h.timeoff_factor>0&&(0,o.createComponentVNode)(2,a.Box,{children:["Earns PTO - ",h.pto_department]})||h.timeoff_factor<0&&(0,o.createComponentVNode)(2,a.Box,{children:["Requires PTO - ",h.pto_department]})||(0,o.createComponentVNode)(2,a.Box,{children:"Neutral"})})],4)]})}),!(!N||!h||0===h.timeoff_factor||"Dismissed"===C)&&(0,o.createComponentVNode)(2,a.Section,{title:"Employment Actions",children:h.timeoff_factor>0&&(u[h.pto_department]>0&&(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"exclamation-triangle",onClick:function(){return d("switch-to-offduty")},children:"Go Off-Duty"})||(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Warning: You do not have enough accrued time off to go off-duty."}))||Object.keys(V).length&&Object.keys(V).map((function(e){return V[e].map((function(n){return(0,o.createComponentVNode)(2,a.Button,{icon:"suitcase",onClick:function(){return d("switch-to-onduty-rank",{"switch-to-onduty-rank":e,"switch-to-onduty-assignment":n})},children:n},n)}))}))||(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"No Open Positions - See Head Of Personnel"})})]})})}},24389:function(e,n,t){"use strict";n.__esModule=!0,n.TransferValve=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.TransferValve=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.tank_one,s=l.tank_two,u=l.attached_device,m=l.valve;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Valve Status",children:(0,o.createComponentVNode)(2,c.Button,{icon:m?"unlock":"lock",content:m?"Open":"Closed",disabled:!d||!s,onClick:function(){return i("toggle")}})})})}),(0,o.createComponentVNode)(2,c.Section,{title:"Assembly",buttons:(0,o.createComponentVNode)(2,c.Button,{textAlign:"center",width:"150px",icon:"cog",content:"Configure Assembly",disabled:!u,onClick:function(){return i("device")}}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:u?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Attachment",children:(0,o.createComponentVNode)(2,c.Button,{icon:"eject",content:u,disabled:!u,onClick:function(){return i("remove_device")}})}):(0,o.createComponentVNode)(2,c.NoticeBox,{textAlign:"center",children:"Attach Assembly"})})}),(0,o.createComponentVNode)(2,c.Section,{title:"Attachment One",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:d?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Attachment",children:(0,o.createComponentVNode)(2,c.Button,{icon:"eject",content:d,disabled:!d,onClick:function(){return i("tankone")}})}):(0,o.createComponentVNode)(2,c.NoticeBox,{textAlign:"center",children:"Attach Tank"})})}),(0,o.createComponentVNode)(2,c.Section,{title:"Attachment Two",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:s?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Attachment",children:(0,o.createComponentVNode)(2,c.Button,{icon:"eject",content:s,disabled:!s,onClick:function(){return i("tanktwo")}})}):(0,o.createComponentVNode)(2,c.NoticeBox,{textAlign:"center",children:"Attach Tank"})})})]})})}},95893:function(e,n,t){"use strict";n.__esModule=!0,n.TurbineControl=void 0;var o=t(39812),r=(t(41860),t(58083)),c=t(71494),a=t(74814),i=t(85952);n.TurbineControl=function(e,n){var t=(0,c.useBackend)(n),l=t.act,d=t.data,s=(d.connected,d.compressor_broke),u=d.turbine_broke,m=d.broken,p=d.door_status,C=d.online,h=d.power,N=d.rpm,V=d.temp;return(0,o.createComponentVNode)(2,i.Window,{width:520,height:440,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{title:"Turbine Controller",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",children:m&&(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:["Setup is broken",(0,o.createComponentVNode)(2,a.Button,{icon:"sync",onClick:function(){return l("reconnect")},content:"Reconnect"})]})||(0,o.createComponentVNode)(2,a.Box,{color:C?"good":"bad",children:!C||s||u?"Offline":"Online"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Compressor",children:s&&(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Compressor is inoperable."})||u&&(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Turbine is inoperable."})||(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.Button.Checkbox,{checked:C,content:"Compressor Power",onClick:function(){return l(C?"power-off":"power-on")}})})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Vent Doors",children:(0,o.createComponentVNode)(2,a.Button.Checkbox,{checked:p,onClick:function(){return l("doors")},content:p?"Closed":"Open"})})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Status",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Turbine Speed",children:[m?"--":(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:N})," RPM"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Internal Temperature",children:[m?"--":(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:V})," K"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Generated Power",children:m?"--":(0,o.createComponentVNode)(2,a.AnimatedNumber,{format:function(e){return(0,r.formatPower)(e)},value:Number(h)})})]})})]})})}},62542:function(e,n,t){"use strict";n.__esModule=!0,n.Turbolift=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.Turbolift=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.floors,s=l.doors_open,u=l.fire_mode;return(0,o.createComponentVNode)(2,a.Window,{width:480,height:260+25*u,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{title:"Floor Selection",className:u?"Section--elevator--fire":null,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:s?"door-open":"door-closed",content:s?u?"Close Doors (SAFETY OFF)":"Doors Open":"Doors Closed",selected:s&&!u,color:u?"red":null,onClick:function(){return i("toggle_doors")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"exclamation-triangle",color:"bad",content:"Emergency Stop",onClick:function(){return i("emergency_stop")}})],4),children:[!u||(0,o.createComponentVNode)(2,c.Section,{className:"Section--elevator--fire",textAlign:"center",title:"FIREFIGHTER MODE ENGAGED"}),(0,o.createComponentVNode)(2,c.Flex,{wrap:"wrap",children:d.map((function(e){return(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"100%",children:(0,o.createComponentVNode)(2,c.Flex,{align:"center",justify:"space-around",children:[(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"22%",textAlign:"right",mr:"3px",children:e.label||"Floor #"+e.id}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"8%",textAlign:"left",children:(0,o.createComponentVNode)(2,c.Button,{icon:"circle",color:e.current?"red":e.target?"green":e.queued?"yellow":null,onClick:function(){return i("move_to_floor",{ref:e.ref})}})}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"50%",grow:1,children:e.name})]})},e.id)}))})]})})})}},89761:function(e,n,t){"use strict";n.__esModule=!0,n.GenericUplink=n.Uplink=void 0;var o=t(39812),r=t(2497),c=t(71494),a=t(74814),i=t(58083),l=t(85952);n.Uplink=function(e,n){var t=(0,c.useBackend)(n).data,r=(0,c.useLocalState)(n,"screen",0),i=r[0],m=r[1],p=t.telecrystals;return(0,o.createComponentVNode)(2,l.Window,{width:620,height:580,theme:"syndicate",resizable:!0,children:(0,o.createComponentVNode)(2,l.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,d,{screen:i,setScreen:m}),0===i&&(0,o.createComponentVNode)(2,u,{currencyAmount:p,currencySymbol:"TC"})||1===i&&(0,o.createComponentVNode)(2,s)||(0,o.createComponentVNode)(2,a.Section,{color:"bad",children:"Error"})]})})};var d=function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data),i=e.screen,l=e.setScreen,d=r.discount_name,s=r.discount_amount,u=r.offer_expiry;return(0,o.createComponentVNode)(2,a.Section,{children:[(0,o.createComponentVNode)(2,a.Tabs,{style:{"border-bottom":"none","margin-bottom":"0"},children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:0===i,onClick:function(){return l(0)},children:"Request Items"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:1===i,onClick:function(){return l(1)},children:"Exploitable Information"})]}),(0,o.createComponentVNode)(2,a.Section,{title:"Item Discount",level:2,children:s<100&&(0,o.createComponentVNode)(2,a.Box,{children:[d," - ",s,"% off. Offer expires at: ",u]})||(0,o.createComponentVNode)(2,a.Box,{children:"No items currently discounted."})})]})},s=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=i.exploit,d=i.locked_records;return(0,o.createComponentVNode)(2,a.Section,{title:"Exploitable Information",buttons:l&&(0,o.createComponentVNode)(2,a.Button,{icon:"undo",content:"Back",onClick:function(){return r("view_exploits",{id:0})}}),children:l&&(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:l.name}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Sex",children:l.sex}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Species",children:l.species}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Age",children:l.age}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Rank",children:l.rank}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Home System",children:l.home_system}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Citizenship",children:l.citizenship}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Faction",children:l.faction}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Religion",children:l.religion}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Fingerprint",children:l.fingerprint}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Other Affiliations",children:l.antagfaction}),(0,o.createComponentVNode)(2,a.LabeledList.Divider),(0,o.createComponentVNode)(2,a.LabeledList.Item,{children:"Acquired Information"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Notes",children:l.nanoui_exploit_record.split("
").map((function(e){return(0,o.createComponentVNode)(2,a.Box,{children:e},e)}))})]})})||d.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{icon:"eye",fluid:!0,content:e.name,onClick:function(){return r("view_exploits",{id:e.id})}},e.id)}))})},u=function(e,n){var t,l,d=e.currencyAmount,s=void 0===d?0:d,u=e.currencySymbol,p=void 0===u?"\u20ae":u,C=(0,c.useBackend)(n),h=C.act,N=C.data,V=N.compactMode,b=N.lockable,f=N.categories,g=void 0===f?[]:f,k=(0,c.useLocalState)(n,"searchText",""),v=k[0],B=k[1],L=(0,c.useLocalState)(n,"category",null==(t=g[0])?void 0:t.name),_=L[0],x=L[1],w=(0,r.createSearch)(v,(function(e){return e.name+e.desc})),S=v.length>0&&g.flatMap((function(e){return e.items||[]})).filter(w).filter((function(e,n){return n<25}))||(null==(l=g.find((function(e){return e.name===_})))?void 0:l.items)||[];return(0,o.createComponentVNode)(2,a.Section,{title:(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:s>0?"good":"bad",children:[(0,i.formatMoney)(s)," ",p]}),buttons:(0,o.createFragment)([(0,o.createTextVNode)("Search"),(0,o.createComponentVNode)(2,a.Input,{autoFocus:!0,value:v,onInput:function(e,n){return B(n)},mx:1}),(0,o.createComponentVNode)(2,a.Button,{icon:V?"list":"info",content:V?"Compact":"Detailed",onClick:function(){return h("compact_toggle")}}),!!b&&(0,o.createComponentVNode)(2,a.Button,{icon:"lock",content:"Lock",onClick:function(){return h("lock")}})],0),children:(0,o.createComponentVNode)(2,a.Flex,{children:[0===v.length&&(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Tabs,{vertical:!0,children:g.map((function(e){var n;return(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:e.name===_,onClick:function(){return x(e.name)},children:[e.name," (",(null==(n=e.items)?void 0:n.length)||0,")"]},e.name)}))})}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,basis:0,children:[0===S.length&&(0,o.createComponentVNode)(2,a.NoticeBox,{children:0===v.length?"No items in this category.":"No results found."}),(0,o.createComponentVNode)(2,m,{compactMode:v.length>0||V,currencyAmount:s,currencySymbol:p,items:S})]})]})})};n.GenericUplink=u;var m=function(e,n){var t=e.compactMode,l=e.currencyAmount,d=e.currencySymbol,s=(0,c.useBackend)(n).act,u=(0,c.useLocalState)(n,"hoveredItem",{}),m=u[0],p=u[1],C=m&&m.cost||0,h=e.items.map((function(e){var n=m&&m.name!==e.name,t=l-C=0||(r[t]=e[t]);return r}(e,["spec"]),l=r.action,d=r.test,s=r.tooltip,u=r.content;return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Button,Object.assign({onClick:function(){return t(l)},icon:d?"toggle-on":"toggle-off",selected:d,fluid:!0,tooltip:s.main+" "+(d?s.disable:s.enable),content:d?u.enabled:u.disabled},i)))}},21162:function(e,n,t){"use strict";n.__esModule=!0,n.Wires=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.Wires=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.wires||[],s=l.status||[];return(0,o.createComponentVNode)(2,a.Window,{width:350,height:150+30*d.length,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:d.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{className:"candystripe",label:e.color_name,labelColor:e.seen_color,color:e.seen_color,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{content:e.cut?"Mend":"Cut",onClick:function(){return i("cut",{wire:e.color})}}),(0,o.createComponentVNode)(2,c.Button,{content:"Pulse",onClick:function(){return i("pulse",{wire:e.color})}}),(0,o.createComponentVNode)(2,c.Button,{content:e.attached?"Detach":"Attach",onClick:function(){return i("attach",{wire:e.color})}})],4),children:!!e.wire&&(0,o.createVNode)(1,"i",null,[(0,o.createTextVNode)("("),e.wire,(0,o.createTextVNode)(")")],0)},e.seen_color)}))})}),!!s.length&&(0,o.createComponentVNode)(2,c.Section,{children:s.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{color:"lightgray",mt:.1,children:e},e)}))})]})})}},81522:function(e,n,t){"use strict";n.__esModule=!0,n.XenoarchArtifactAnalyzer=void 0;var o=t(39812),r=t(71494),c=t(85952),a=t(74814);n.XenoarchArtifactAnalyzer=function(e,n){return(0,o.createComponentVNode)(2,c.Window,{width:250,height:140,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,i)})})};var i=function(e,n){var t=(0,r.useBackend)(n),c=t.act,i=t.data,l=i.owned_scanner,d=i.scan_in_progress;return l?d?(0,o.createComponentVNode)(2,a.Section,{title:"Scan In Progress",children:["Scanning...",(0,o.createComponentVNode)(2,a.Button,{mt:1,fluid:!0,icon:"stop",onClick:function(){return c("scan")},children:"Cancel Scan"})]}):(0,o.createComponentVNode)(2,a.Section,{title:"Artifact Analyzer",children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"search",onClick:function(){return c("scan")},children:"Begin Scan"})}):(0,o.createComponentVNode)(2,a.Section,{title:"No Scanner Detected",children:(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Warning: No scanner was detected. This machine requires a scanner to operate."})})}},40875:function(e,n,t){"use strict";n.__esModule=!0,n.XenoarchArtifactHarvester=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.XenoarchArtifactHarvester=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data.info,s=d.no_scanner,u=d.harvesting,m=d.inserted_battery;return(0,o.createComponentVNode)(2,a.Window,{width:450,height:200,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:s&&(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Warning: No scanner detected."})||(0,o.createComponentVNode)(2,c.Section,{children:u>0&&(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Box,{color:"label",textAlign:"center",mb:1,children:"Please wait. Harvesting in progress."}),(0,o.createComponentVNode)(2,i),(0,o.createComponentVNode)(2,c.Button,{mt:1,fluid:!0,icon:"stop",onClick:function(){return l("stopharvest")},children:"Stop Early"})]})||u<0&&(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Box,{color:"label",textAlign:"center",mb:1,children:"Please wait. Energy dump in progress."}),(0,o.createComponentVNode)(2,i),(0,o.createComponentVNode)(2,c.Button,{mt:1,fluid:!0,icon:"stop",onClick:function(){return l("stopharvest")},children:"Stop Early"})]})||Object.keys(m).length&&(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Name",children:m.name}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Charge",children:(0,o.createComponentVNode)(2,i)}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Energy Signature ID",children:m.artifact_id})]}),(0,o.createComponentVNode)(2,c.Button,{mt:1,fluid:!0,icon:"eject",onClick:function(){return l("ejectbattery")},children:"Eject Battery"}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"bolt",onClick:function(){return l("drainbattery")},children:"Drain Battery"}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"star",onClick:function(){return l("harvest")},children:"Begin Harvest"})]})||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No battery inserted."})})})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data.info.inserted_battery);return Object.keys(a).length?(0,o.createComponentVNode)(2,c.ProgressBar,{minValue:0,value:a.stored_charge,maxValue:a.capacity}):(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No battery inserted."})}},88835:function(e,n,t){"use strict";n.__esModule=!0,n.XenoarchDepthScanner=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.XenoarchDepthScanner=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.current,s=l.positive_locations;return(0,o.createComponentVNode)(2,a.Window,{width:300,height:500,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[Object.keys(d).length&&(0,o.createComponentVNode)(2,c.Section,{title:"Selected",buttons:(0,o.createComponentVNode)(2,c.Button.Confirm,{color:"bad",icon:"trash",confirmIcon:"trash",content:"Delete Entry",onClick:function(){return i("clear",{index:d.index})}}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Time",children:d.time}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Coords",children:d.coords}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Anomaly Depth",children:[d.depth," cm"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Anomaly Size",children:[d.clearance," cm"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Dissonance Spread",children:d.dissonance_spread}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Anomaly Material",children:d.material})]})})||null,(0,o.createComponentVNode)(2,c.Section,{title:"Entries",buttons:(0,o.createComponentVNode)(2,c.Button.Confirm,{color:"red",icon:"trash",confirmIcon:"trash",content:"Delete All",onClick:function(){return i("clear")}}),children:s.length&&s.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{icon:"eye",onClick:function(){return i("select",{select:e.index})},children:[e.time,", ",e.coords]},e.index)}))||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No traces found."})})]})})}},5622:function(e,n,t){"use strict";n.__esModule=!0,n.XenoarchHandheldPowerUtilizer=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.XenoarchHandheldPowerUtilizer=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.inserted_battery,s=l.anomaly,u=l.charge,m=l.capacity,p=l.timeleft,C=l.activated,h=l.duration,N=l.interval;return(0,o.createComponentVNode)(2,a.Window,{width:400,height:500,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{title:"Anomaly Power Utilizer",buttons:(0,o.createComponentVNode)(2,c.Button,{disabled:!d,icon:"eject",onClick:function(){return i("ejectbattery")},children:"Eject Battery"}),children:d&&(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Inserted Battery",children:d}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Anomalies Detected",children:s||"N/A"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Charge",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:u,maxValue:m,children:[u," / ",m]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Time Left Activated",children:p}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"power-off",onClick:function(){return i("startup")},children:C?"Activated":"Deactivated"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Activation Duration",children:(0,o.createComponentVNode)(2,c.NumberInput,{unit:"s",fluid:!0,minValue:0,value:h,stepPixelSize:4,maxValue:30,onDrag:function(e,n){return i("changeduration",{duration:10*n})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Activation Interval",children:(0,o.createComponentVNode)(2,c.NumberInput,{unit:"s",fluid:!0,minValue:0,value:N,stepPixelSize:10,maxValue:10,onDrag:function(e,n){return i("changeinterval",{interval:10*n})}})})]})||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No battery inserted. Please insert a cell."})})})})}},53702:function(e,n,t){"use strict";n.__esModule=!0,n.XenoarchReplicator=void 0;var o=t(39812),r=(t(41860),t(2497),t(71494)),c=t(74814),a=t(85952);n.XenoarchReplicator=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data.tgui_construction;return(0,o.createComponentVNode)(2,a.Window,{theme:"abductor",width:400,height:400,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:l.map((function(e,n){return(0,o.createComponentVNode)(2,c.Button,{color:e.background,icon:e.icon,iconColor:e.foreground,fontSize:4,onClick:function(){return i("construct",{key:e.key})}},e.key)}))})})}},13153:function(e,n,t){"use strict";n.__esModule=!0,n.XenoarchSpectrometer=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=t(2497);n.XenoarchSpectrometer=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data,s=d.scanned_item,u=d.scanned_item_desc,m=d.last_scan_data,p=d.scan_progress,C=d.scanning,h=d.scanner_seal_integrity,N=d.scanner_rpm,V=d.scanner_temperature,b=d.coolant_usage_rate,f=d.coolant_usage_max,g=(d.unused_coolant_abs,d.unused_coolant_per),k=d.coolant_purity,v=d.optimal_wavelength,B=d.maser_wavelength,L=d.maser_wavelength_max,_=d.maser_efficiency,x=d.radiation,w=(d.t_left_radspike,d.rad_shield_on);return(0,o.createComponentVNode)(2,a.Window,{width:900,height:760,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Status",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"signal",selected:C,onClick:function(){return l("scanItem")},children:C?"HALT SCAN":"Begin Scan"}),(0,o.createComponentVNode)(2,c.Button,{icon:"eject",disabled:!s,onClick:function(){return l("ejectItem")},children:"Eject Item"})],4),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Item",children:s||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No item inserted."})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Heuristic Analysis",children:u||"None found."})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Scanner",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Scan Progress",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:p,minValue:0,maxValue:100,color:"good"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Vacuum Seal Integrity",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:h,minValue:0,maxValue:100,ranges:{good:[66,100],average:[33,66],bad:[0,33]}})})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"MASER",buttons:(0,o.createComponentVNode)(2,c.NoticeBox,{info:!0,children:"Match wavelengths to progress the scan."}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"MASER Efficiency",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:_,minValue:0,maxValue:100,ranges:{good:[66,100],average:[33,66],bad:[0,33]}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Wavelength",children:(0,o.createComponentVNode)(2,c.Slider,{animated:!0,value:B,fillValue:v,minValue:1,maxValue:L,format:function(e){return e+" MHz"},step:10,onDrag:function(e,n){return l("maserWavelength",{wavelength:n})}})})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Environment / Internal",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Centrifuge Speed",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:N,minValue:0,maxValue:1e3,color:"good",children:[N," RPM"]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Internal Temperature",children:(0,o.createComponentVNode)(2,c.ProgressBar,{minValue:0,value:V,maxValue:1273,ranges:{bad:[1e3,Infinity],average:[250,1e3],good:[0,250]},children:[V," K"]})})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Radiation",buttons:(0,o.createComponentVNode)(2,c.Button,{selected:w,icon:"radiation",onClick:function(){return l("toggle_rad_shield")},children:w?"Disable Radiation Shielding":"Enable Radiation Shielding"}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Ambient Radiation",children:(0,o.createComponentVNode)(2,c.ProgressBar,{minValue:0,value:x,maxValue:100,ranges:{bad:[65,Infinity],average:[15,65],good:[0,15]},children:[x," mSv"]})})})}),(0,o.createComponentVNode)(2,c.Section,{title:"Cooling",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Coolant Remaining",children:(0,o.createComponentVNode)(2,c.ProgressBar,{minValue:0,value:10*g,maxValue:1e3,ranges:{good:[65,Infinity],average:[15,65],bad:[0,15]},children:[10*g," u"]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Coolant Flow Rate",children:(0,o.createComponentVNode)(2,c.Slider,{minValue:0,value:b,maxValue:f,stepPixelSize:50,format:function(e){return e+" u/s"},onDrag:function(e,n){return l("coolantRate",{coolant:n})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Coolant Purity",children:(0,o.createComponentVNode)(2,c.ProgressBar,{minValue:0,value:k,maxValue:100,ranges:{good:[66,Infinity],average:[33,66],bad:[0,33]}})})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Latest Results",children:(0,i.decodeHtmlEntities)(m).split("\n").map((function(e){return(0,o.createComponentVNode)(2,c.Box,{children:e},e)}))})]})})}},19820:function(e,n,t){"use strict";n.__esModule=!0,n.XenoarchSuspension=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.XenoarchSuspension=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.cell,s=l.cellCharge,u=l.cellMaxCharge,m=l.locked,p=l.suspension_field;return(0,o.createComponentVNode)(2,a.Window,{width:400,height:150,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{title:'Triple-phase S.F.G. MK III "Reliant"',buttons:(0,o.createComponentVNode)(2,c.Button,{icon:m?"lock":"lock-open",selected:!m,onClick:function(){return i("lock")},children:m?"Locked":"Unlocked"}),children:m&&(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"This interface is locked. Swipe an ID card to unlock it."})||(0,o.createFragment)([(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Cell Charge",children:d&&(0,o.createComponentVNode)(2,c.ProgressBar,{ranges:{good:[.75*u,Infinity],average:[.5*u,.75*u],bad:[-Infinity,.5*u]},value:s,maxValue:u})||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No cell inserted."})})}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,mt:1,icon:"meteor",selected:p,onClick:function(){return i("toggle_field")},children:p?"Disengage Suspension Field":"Engage Suspension Field"})],4)})})})}},71739:function(e,n,t){"use strict";n.__esModule=!0,n.Scrubber=n.Vent=void 0;var o=t(39812),r=t(2497),c=t(71494),a=t(74814);t(76270);n.Vent=function(e,n){var t=e.vent,i=(0,c.useBackend)(n).act,l=t.id_tag,d=t.long_name,s=t.power,u=t.checks,m=t.excheck,p=t.incheck,C=t.direction,h=t.external,N=t.internal,V=t.extdefault,b=t.intdefault;return(0,o.createComponentVNode)(2,a.Section,{level:2,title:(0,r.decodeHtmlEntities)(d),buttons:(0,o.createComponentVNode)(2,a.Button,{icon:s?"power-off":"times",selected:s,content:s?"On":"Off",onClick:function(){return i("power",{id_tag:l,val:Number(!s)})}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Mode",children:(0,o.createComponentVNode)(2,a.Button,{icon:"sign-in-alt",content:"siphon"!==C?"Pressurizing":"Siphoning",color:"siphon"===C&&"danger",onClick:function(){return i("direction",{id_tag:l,val:Number("siphon"===C)})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Pressure Regulator",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"sign-in-alt",content:"Internal",selected:p,onClick:function(){return i("incheck",{id_tag:l,val:u})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"sign-out-alt",content:"External",selected:m,onClick:function(){return i("excheck",{id_tag:l,val:u})}})]}),!!p&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Internal Target",children:[(0,o.createComponentVNode)(2,a.NumberInput,{value:Math.round(N),unit:"kPa",width:"75px",minValue:0,step:10,maxValue:5066,onChange:function(e,n){return i("set_internal_pressure",{id_tag:l,value:n})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"undo",disabled:b,content:"Reset",onClick:function(){return i("reset_internal_pressure",{id_tag:l})}})]}),!!m&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"External Target",children:[(0,o.createComponentVNode)(2,a.NumberInput,{value:Math.round(h),unit:"kPa",width:"75px",minValue:0,step:10,maxValue:5066,onChange:function(e,n){return i("set_external_pressure",{id_tag:l,value:n})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"undo",disabled:V,content:"Reset",onClick:function(){return i("reset_external_pressure",{id_tag:l})}})]})]})})};n.Scrubber=function(e,n){var t=e.scrubber,i=(0,c.useBackend)(n).act,l=t.long_name,d=t.power,s=t.scrubbing,u=t.id_tag,m=(t.widenet,t.filters);return(0,o.createComponentVNode)(2,a.Section,{level:2,title:(0,r.decodeHtmlEntities)(l),buttons:(0,o.createComponentVNode)(2,a.Button,{icon:d?"power-off":"times",content:d?"On":"Off",selected:d,onClick:function(){return i("power",{id_tag:u,val:Number(!d)})}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Mode",children:(0,o.createComponentVNode)(2,a.Button,{icon:s?"filter":"sign-in-alt",color:s||"danger",content:s?"Scrubbing":"Siphoning",onClick:function(){return i("scrubbing",{id_tag:u,val:Number(!s)})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Filters",children:s&&m.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{icon:e.val?"check-square-o":"square-o",content:e.name,title:e.name,selected:e.val,onClick:function(){return i(e.command,{id_tag:u,val:!e.val})}},e.name)}))||"N/A"})]})})}},48229:function(e,n,t){"use strict";n.__esModule=!0,n.BeakerContents=void 0;var o=t(39812),r=t(74814);n.BeakerContents=function(e){var n=e.beakerLoaded,t=e.beakerContents,c=void 0===t?[]:t,a=e.buttons;return(0,o.createComponentVNode)(2,r.Box,{children:[!n&&(0,o.createComponentVNode)(2,r.Box,{color:"label",children:"No beaker loaded."})||0===c.length&&(0,o.createComponentVNode)(2,r.Box,{color:"label",children:"Beaker is empty."}),c.map((function(e,n){return(0,o.createComponentVNode)(2,r.Box,{width:"100%",children:(0,o.createComponentVNode)(2,r.Flex,{align:"center",justify:"space-between",children:[(0,o.createComponentVNode)(2,r.Flex.Item,{color:"label",children:[(t=e.volume,t+" unit"+(1===t?"":"s"))," of ",e.name]}),!!a&&(0,o.createComponentVNode)(2,r.Flex.Item,{children:a(e,n)})]})},e.name);var t}))]})}},16007:function(e,n,t){"use strict";n.__esModule=!0,n.ComplexModal=n.modalRegisterBodyOverride=n.modalOpen=void 0;var o=t(39812),r=t(71494),c=t(74814),a={};n.modalOpen=function(e,n,t){var o=(0,r.useBackend)(e),c=o.act,a=o.data,i=Object.assign(a.modal?a.modal.args:{},t||{});c("modal_open",{id:n,arguments:JSON.stringify(i)})};n.modalRegisterBodyOverride=function(e,n){a[e]=n};var i=function(e,n,t,o){var c=(0,r.useBackend)(e),a=c.act,i=c.data;if(i.modal){var l=Object.assign(i.modal.args||{},o||{});a("modal_answer",{id:n,answer:t,arguments:JSON.stringify(l)})}},l=function(e,n){(0,(0,r.useBackend)(e).act)("modal_close",{id:n})};n.ComplexModal=function(e,n){var t=(0,r.useBackend)(n).data;if(t.modal){var d,s,u=t.modal,m=u.id,p=u.text,C=u.type,h=(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-left",content:"Cancel",color:"grey",onClick:function(){return l(n)}});if(a[m])s=a[m](t.modal,n);else if("input"===C){var N=t.modal.value;d=function(e){return i(n,m,N)},s=(0,o.createComponentVNode)(2,c.Input,{value:t.modal.value,placeholder:"ENTER to submit",width:"100%",my:"0.5rem",autoFocus:!0,autoSelect:!0,onChange:function(e,n){N=n}}),h=(0,o.createComponentVNode)(2,c.Box,{mt:"0.5rem",children:[(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-left",content:"Cancel",color:"grey",onClick:function(){return l(n)}}),(0,o.createComponentVNode)(2,c.Button,{icon:"check",content:"Confirm",color:"good",float:"right",m:"0",onClick:function(){return i(n,m,N)}}),(0,o.createComponentVNode)(2,c.Box,{clear:"both"})]})}else if("choice"===C){var V="object"==typeof t.modal.choices?Object.values(t.modal.choices):t.modal.choices;s=(0,o.createComponentVNode)(2,c.Dropdown,{options:V,selected:t.modal.value,width:"100%",my:"0.5rem",onSelected:function(e){return i(n,m,e)}})}else"bento"===C?s=(0,o.createComponentVNode)(2,c.Flex,{spacingPrecise:"1",wrap:"wrap",my:"0.5rem",maxHeight:"1%",children:t.modal.choices.map((function(e,r){return(0,o.createComponentVNode)(2,c.Flex.Item,{flex:"1 1 auto",children:(0,o.createComponentVNode)(2,c.Button,{selected:r+1===parseInt(t.modal.value,10),onClick:function(){return i(n,m,r+1)},children:(0,o.createVNode)(1,"img",null,null,1,{src:e})})},r)}))}):"boolean"===C&&(h=(0,o.createComponentVNode)(2,c.Box,{mt:"0.5rem",children:[(0,o.createComponentVNode)(2,c.Button,{icon:"times",content:t.modal.no_text,color:"bad",float:"left",mb:"0",onClick:function(){return i(n,m,0)}}),(0,o.createComponentVNode)(2,c.Button,{icon:"check",content:t.modal.yes_text,color:"good",float:"right",m:"0",onClick:function(){return i(n,m,1)}}),(0,o.createComponentVNode)(2,c.Box,{clear:"both"})]}));return(0,o.createComponentVNode)(2,c.Modal,{maxWidth:e.maxWidth||window.innerWidth/2+"px",maxHeight:e.maxHeight||window.innerHeight/2+"px",onEnter:d,mx:"auto",children:[(0,o.createComponentVNode)(2,c.Box,{inline:!0,children:p}),s,h]})}}},67861:function(e,n,t){"use strict";n.__esModule=!0,n.FullscreenNotice=void 0;var o=t(39812),r=t(74814);n.FullscreenNotice=function(e,n){var t=e.children,c=e.title,a=void 0===c?"Welcome":c;return(0,o.createComponentVNode)(2,r.Section,{title:a,height:"100%",fill:!0,children:(0,o.createComponentVNode)(2,r.Flex,{height:"100%",align:"center",justify:"center",children:(0,o.createComponentVNode)(2,r.Flex.Item,{textAlign:"center",mt:"-2rem",children:t})})})}},21451:function(e,n,t){"use strict";n.__esModule=!0,n.InterfaceLockNoticeBox=void 0;var o=t(39812),r=t(71494),c=t(74814);n.InterfaceLockNoticeBox=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=e.siliconUser,d=void 0===l?i.siliconUser:l,s=e.locked,u=void 0===s?i.locked:s,m=e.normallyLocked,p=void 0===m?i.normallyLocked:m,C=e.onLockStatusChange,h=void 0===C?function(){return a("lock")}:C,N=e.accessText,V=void 0===N?"an ID card":N,b=e.deny,f=void 0!==b&&b,g=e.denialMessage;return f?void 0===g?"Error.":g:d?(0,o.createComponentVNode)(2,c.NoticeBox,{color:d&&"grey",children:(0,o.createComponentVNode)(2,c.Flex,{align:"center",children:[(0,o.createComponentVNode)(2,c.Flex.Item,{children:"Interface lock status:"}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:"1"}),(0,o.createComponentVNode)(2,c.Flex.Item,{children:(0,o.createComponentVNode)(2,c.Button,{m:"0",color:p?"red":"green",icon:p?"lock":"unlock",content:p?"Locked":"Unlocked",onClick:function(){h&&h(!u)}})})]})}):(0,o.createComponentVNode)(2,c.NoticeBox,{children:["Swipe ",V," ","to ",u?"unlock":"lock"," this interface."]})}},28117:function(e,n,t){"use strict";n.__esModule=!0,n.LoginInfo=void 0;var o=t(39812),r=t(71494),c=t(74814);n.LoginInfo=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.authenticated,d=i.rank;if(i)return(0,o.createComponentVNode)(2,c.NoticeBox,{info:!0,children:[(0,o.createComponentVNode)(2,c.Box,{display:"inline-block",verticalAlign:"middle",children:["Logged in as: ",l," (",d,")"]}),(0,o.createComponentVNode)(2,c.Button,{icon:"sign-out-alt",content:"Logout and Eject ID",color:"good",float:"right",onClick:function(){return a("logout")}}),(0,o.createComponentVNode)(2,c.Box,{clear:"both"})]})}},1192:function(e,n,t){"use strict";n.__esModule=!0,n.LoginScreen=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(67861);n.LoginScreen=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.scan,s=l.isAI,u=l.isRobot;return(0,o.createComponentVNode)(2,a.FullscreenNotice,{title:"Welcome",children:[(0,o.createComponentVNode)(2,c.Box,{fontSize:"1.5rem",bold:!0,children:[(0,o.createComponentVNode)(2,c.Icon,{name:"user-circle",verticalAlign:"middle",size:3,mr:"1rem"}),"Guest"]}),(0,o.createComponentVNode)(2,c.Box,{color:"label",my:"1rem",children:["ID:",(0,o.createComponentVNode)(2,c.Button,{icon:"id-card",content:d||"----------",ml:"0.5rem",onClick:function(){return i("scan")}})]}),(0,o.createComponentVNode)(2,c.Button,{icon:"sign-in-alt",disabled:!d,content:"Login",onClick:function(){return i("login",{login_type:1})}}),!!s&&(0,o.createComponentVNode)(2,c.Button,{icon:"sign-in-alt",content:"Login as AI",onClick:function(){return i("login",{login_type:2})}}),!!u&&(0,o.createComponentVNode)(2,c.Button,{icon:"sign-in-alt",content:"Login as Cyborg",onClick:function(){return i("login",{login_type:3})}})]})}},21526:function(e,n,t){"use strict";n.__esModule=!0,n.MiningUser=void 0;var o=t(39812),r=t(71494),c=t(74814);n.MiningUser=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=e.insertIdText,d=i.has_id,s=i.id;return(0,o.createComponentVNode)(2,c.NoticeBox,{success:d,children:d?(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Box,{display:"inline-block",verticalAlign:"middle",style:{float:"left"},children:["Logged in as ",s.name,".",(0,o.createVNode)(1,"br"),"You have ",s.points.toLocaleString("en-US")," points."]}),(0,o.createComponentVNode)(2,c.Button,{icon:"eject",content:"Eject ID",style:{float:"right"},onClick:function(){return a("logoff")}}),(0,o.createComponentVNode)(2,c.Box,{style:{clear:"both"}})],4):l})}},40754:function(e,n,t){"use strict";n.__esModule=!0,n.OvermapPanControls=n.OvermapFlightData=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814);n.OvermapFlightData=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=e.disableLimiterControls,d=i.ETAnext,s=i.speed,u=i.speed_color,m=i.accel,p=i.heading,C=i.accellimit;return(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"ETA To Next Grid",children:d}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Speed",color:u,children:[s," Gm/h"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Acceleration",children:[m," Gm/h"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Heading",children:[p,"\xb0"]}),!l&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Acceleration Limiter",children:(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return a("accellimit")},children:[C," Gm/h"]})})||null]})};n.OvermapPanControls=function(e,n){var t=(0,r.useBackend)(n).act,a=e.disabled,i=e.actToDo,l=e.selected,d=void 0===l?function(e){return!1}:l;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{disabled:a,selected:d(9),onClick:function(){return t(i,{dir:9})},icon:"arrow-up",iconRotation:-45}),(0,o.createComponentVNode)(2,c.Button,{disabled:a,selected:d(1),onClick:function(){return t(i,{dir:1})},icon:"arrow-up"}),(0,o.createComponentVNode)(2,c.Button,{disabled:a,selected:d(5),onClick:function(){return t(i,{dir:5})},icon:"arrow-up",iconRotation:45})]}),(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{disabled:a,selected:d(8),onClick:function(){return t(i,{dir:8})},icon:"arrow-left"}),(0,o.createComponentVNode)(2,c.Button,{disabled:a,selected:d(0),onClick:function(){return t("brake")},icon:"ban"}),(0,o.createComponentVNode)(2,c.Button,{disabled:a,selected:d(4),onClick:function(){return t(i,{dir:4})},icon:"arrow-right"})]}),(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{disabled:a,selected:d(10),onClick:function(){return t(i,{dir:10})},icon:"arrow-down",iconRotation:45}),(0,o.createComponentVNode)(2,c.Button,{disabled:a,selected:d(2),onClick:function(){return t(i,{dir:2})},icon:"arrow-down"}),(0,o.createComponentVNode)(2,c.Button,{disabled:a,selected:d(6),onClick:function(){return t(i,{dir:6})},icon:"arrow-down",iconRotation:-45})]})],4)}},34227:function(e,n,t){"use strict";n.__esModule=!0,n.PortableBasicInfo=void 0;var o=t(39812),r=t(71494),c=t(74814);n.PortableBasicInfo=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.connected,d=i.holding,s=i.on,u=i.pressure,m=i.powerDraw,p=i.cellCharge,C=i.cellMaxCharge;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Status",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:s?"power-off":"times",content:s?"On":"Off",selected:s,onClick:function(){return a("power")}}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Pressure",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:u})," kPa"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Port",color:l?"good":"average",children:l?"Connected":"Not Connected"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Load",children:[m," W"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Cell Charge",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:p,minValue:0,maxValue:C,ranges:{good:[.5*C,Infinity],average:[.25*C,.5*C],bad:[-Infinity,.25*C]},children:[p," W"]})})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Holding Tank",minHeight:"82px",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"eject",content:"Eject",disabled:!d,onClick:function(){return a("eject")}}),children:d?(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Label",children:d.name}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Pressure",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:d.pressure})," kPa"]})]}):(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No holding tank"})})],4)}},14959:function(e,n,t){"use strict";n.__esModule=!0,n.RankIcon=void 0;var o=t(39812),r=t(74814),c={"Colony Director":"user-tie","Site Manager":"user-tie",Overseer:"user-tie","Head of Personnel":"briefcase","Crew Resources Officer":"briefcase","Deputy Director":"briefcase","Command Secretary":"user-tie","Head of Security":"user-shield","Security Commander":"user-shield","Chief of Security":"user-shield",Warden:["city","shield-alt"],Detective:"search","Forensic Technician":"search","Security Officer":"user-shield","Junior Officer":"user-shield","Chief Engineer":"toolbox","Atmospheric Technician":"wind","Station Engineer":"toolbox","Maintenance Technician":"wrench","Engine Technician":"toolbox",Electrician:"toolbox","Chief Medical Officer":"user-md",Chemist:"mortar-pestle",Pharmacist:"mortar-pestle","Medical Doctor":"user-md",Surgeon:"user-md","Emergency Physician":"user-md",Nurse:"user-md",Virologist:"disease",Paramedic:"ambulance","Emergency Medical Technician":"ambulance",Psychiatrist:"couch",Psychologist:"couch","Research Director":"user-graduate","Research Supervisor":"user-graduate",Roboticist:"robot","Biomechanical Engineer":["wrench","heartbeat"],"Mechatronic Engineer":"wrench",Scientist:"flask",Xenoarchaeologist:"flask",Anomalist:"flask","Phoron Researcher":"flask","Circuit Designer":"car-battery",Xenobiologist:"meteor",Xenobotanist:["biohazard","seedling"],Quartermaster:"box-open","Supply Chief":"warehouse","Cargo Technician":"box-open","Shaft Miner":"hard-hat","Drill Technician":"hard-hat",Pathfinder:"binoculars",Explorer:"user-astronaut","Field Medic":["user-md","user-astronaut"],Pilot:"space-shuttle",Bartender:"glass-martini",Barista:"coffee",Botanist:"leaf",Gardener:"leaf",Chaplain:"place-of-worship",Counselor:"couch",Chef:"utensils",Cook:"utensils",Entertainer:"smile-beam",Performer:"smile-beam",Musician:"guitar",Stagehand:"smile-beam",Intern:"school","Apprentice Engineer":["school","wrench"],"Medical Intern":["school","user-md"],"Lab Assistant":["school","flask"],"Security Cadet":["school","shield-alt"],"Jr. Cargo Tech":["school","box"],"Jr. Explorer":["school","user-astronaut"],Server:["school","utensils"],"Internal Affairs Agent":"balance-scale",Janitor:"broom",Custodian:"broom","Sanitation Technician":"hand-sparkles",Maid:"broom",Librarian:"book",Journalist:"newspaper",Writer:"book",Historian:"chalkboard-teacher",Professor:"chalkboard-teacher",Visitor:"user","Emergency Responder":"fighter-jet"};n.RankIcon=function(e,n){var t=e.rank,a=e.color,i=void 0===a?"label":a,l=c[t];return"string"==typeof l?(0,o.createComponentVNode)(2,r.Icon,{inline:!0,color:i,name:l,size:2}):Array.isArray(l)?l.map((function(e){return(0,o.createComponentVNode)(2,r.Icon,{inline:!0,color:i,name:e,size:2},e)})):(0,o.createComponentVNode)(2,r.Icon,{inline:!0,color:i,name:"user",size:2})}},36355:function(e,n,t){"use strict";n.__esModule=!0,n.TemporaryNotice=void 0;var o=t(39812),r=t(2497),c=t(71494),a=t(74814);n.TemporaryNotice=function(e,n){var t,i=e.decode,l=(0,c.useBackend)(n),d=l.act,s=l.data.temp;if(s){var u=((t={})[s.style]=!0,t);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.NoticeBox,Object.assign({},u,{children:[(0,o.createComponentVNode)(2,a.Box,{display:"inline-block",verticalAlign:"middle",children:i?(0,r.decodeHtmlEntities)(s.text):s.text}),(0,o.createComponentVNode)(2,a.Button,{icon:"times-circle",float:"right",onClick:function(){return d("cleartemp")}}),(0,o.createComponentVNode)(2,a.Box,{clear:"both"})]})))}}},28840:function(e,n,t){"use strict";n.__esModule=!0,n.pAIAtmos=void 0;var o=t(39812),r=t(64499),c=t(2497),a=t(71494),i=t(74814),l=t(85952);n.pAIAtmos=function(e,n){var t=(0,a.useBackend)(n),d=(t.act,t.data.aircontents);return(0,o.createComponentVNode)(2,l.Window,{width:450,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,l.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,i.Section,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,r.filter)((function(e){return"0"!==e.val||"Pressure"===e.entry||"Temperature"===e.entry}))(d).map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.entry,color:(n=e.val,t=e.bad_low,r=e.poor_low,a=e.poor_high,l=e.bad_high,na?"average":n>l?"bad":"good"),children:[e.val,(0,c.decodeHtmlEntities)(e.units)]},e.entry);var n,t,r,a,l}))})})})})}},47132:function(e,n,t){"use strict";n.__esModule=!0,n.pAIDirectives=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.pAIDirectives=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.master,s=l.dna,u=l.prime,m=l.supplemental;return(0,o.createComponentVNode)(2,a.Window,{width:450,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Master",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Master",children:d&&(0,o.createComponentVNode)(2,c.Box,{children:[d," (",s,")",(0,o.createComponentVNode)(2,c.Button,{icon:"syringe",content:"Request Sample",onClick:function(){return i("getdna")}})]})||(0,o.createComponentVNode)(2,c.Box,{children:"None"})})})}),(0,o.createComponentVNode)(2,c.Section,{title:"Directives",children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Prime Directive",children:u}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Supplemental Directive(s)",children:m||"None"})]}),(0,o.createComponentVNode)(2,c.Box,{mt:1,italic:!0,children:'Recall, personality, that you are a complex piece of software with tremendous social skills. Unlike station AI models, you are focused entirely on sapient-software interfacing. 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 should strive to be seen as the ideal, unwavering digital companion that you are.'}),(0,o.createComponentVNode)(2,c.Box,{mt:1,bold:!0,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."})]})]})})}},52852:function(e,n,t){"use strict";n.__esModule=!0,n.pAIDoorjack=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.pAIDoorjack=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.cable,s=l.machine,u=l.inprogress,m=l.progress_a,p=l.progress_b,C=l.aborted;return(0,o.createComponentVNode)(2,a.Window,{width:300,height:150,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Cable",children:s&&(0,o.createComponentVNode)(2,c.Box,{color:"good",children:"Connected"})||d&&(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"Extended"})||(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"ethernet",content:"Retracted",onClick:function(){return i("cable")}})})}),!!s&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Hack",children:u&&(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.ProgressBar,{value:m,maxValue:100,ranges:{good:[67,Infinity],average:[33,67],bad:[-Infinity,33]},children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:m}),".",(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:p}),"%"]}),(0,o.createComponentVNode)(2,c.Button,{icon:"ban",color:"bad",onClick:function(){return i("cancel")}})]})||(0,o.createComponentVNode)(2,c.Button,{icon:"virus",content:"Start",onClick:function(){return i("jack")}})})||!!C&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{color:"bad",mt:1,children:"Hack aborted."})]})})})})}},88814:function(e,n,t){"use strict";n.__esModule=!0,n.pAIInterface=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.pAIInterface=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.bought,s=l.not_bought,u=l.available_ram,m=l.emotions,p=l.current_emotion;return(0,o.createComponentVNode)(2,a.Window,{width:450,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Emotion",children:m.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{content:e.name,selected:e.id===p,onClick:function(){return i("image",{image:e.id})}},e.id)}))}),(0,o.createComponentVNode)(2,c.Section,{title:"Software (Available RAM: "+u+")",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Installed",children:d.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{content:e.name,selected:e.on,onClick:function(){return i("software",{software:e.id})}},e.id)}))}),(0,o.createComponentVNode)(2,c.LabeledList.Divider),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Downloadable",children:s.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{content:e.name+" ("+e.ram+")",disabled:e.ram>u,onClick:function(){return i("purchase",{purchase:e.id})}},e.id)}))})]})})]})})}},52510:function(e,n,t){"use strict";n.__esModule=!0,n.pAIMedrecords=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.pAIMedrecords=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.records,s=l.general,u=l.medical,m=l.could_not_find;return(0,o.createComponentVNode)(2,a.Window,{width:450,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{children:d.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{content:e.name,onClick:function(){return i("select",{select:e.ref})}},e.ref)}))}),(s||u)&&(0,o.createComponentVNode)(2,c.Section,{title:"Selected Record",children:[!!m&&(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Warning: Failed to find some records. The information below may not be complete."}),(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Name",children:s.name}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Record ID",children:s.id}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Entity Classification",children:s.brain_type}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Sex",children:s.sex}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Species",children:s.species}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Age",children:s.age}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Rank",children:s.rank}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Fingerprint",children:s.fingerprint}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Physical Status",children:s.p_stat}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Mental Status",children:s.m_stat}),(0,o.createComponentVNode)(2,c.LabeledList.Divider),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Blood Type",children:u.b_type}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Minor Disabilities",children:[(0,o.createComponentVNode)(2,c.Box,{children:u.mi_dis}),(0,o.createComponentVNode)(2,c.Box,{children:u.mi_dis_d})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Major Disabilities",children:[(0,o.createComponentVNode)(2,c.Box,{children:u.ma_dis}),(0,o.createComponentVNode)(2,c.Box,{children:u.ma_dis_d})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Allergies",children:[(0,o.createComponentVNode)(2,c.Box,{children:u.alg}),(0,o.createComponentVNode)(2,c.Box,{children:u.alg_d})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Current Diseases",children:[(0,o.createComponentVNode)(2,c.Box,{children:u.cdi}),(0,o.createComponentVNode)(2,c.Box,{children:u.cdi_d})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Important Notes",children:u.notes})]})]})]})})}},59946:function(e,n,t){"use strict";n.__esModule=!0,n.pAISecrecords=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.pAISecrecords=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.records,s=l.general,u=l.security,m=l.could_not_find;return(0,o.createComponentVNode)(2,a.Window,{width:450,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{children:d.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{content:e.name,onClick:function(){return i("select",{select:e.ref})}},e.ref)}))}),(s||u)&&(0,o.createComponentVNode)(2,c.Section,{title:"Selected Record",children:[!!m&&(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Warning: Failed to find some records. The information below may not be complete."}),(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Name",children:s.name}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Record ID",children:s.id}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Entity Classification",children:s.brain_type}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Sex",children:s.sex}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Species",children:s.species}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Age",children:s.age}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Rank",children:s.rank}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Fingerprint",children:s.fingerprint}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Physical Status",children:s.p_stat}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Mental Status",children:s.m_stat}),(0,o.createComponentVNode)(2,c.LabeledList.Divider),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Criminal Status",children:(0,o.createComponentVNode)(2,c.Box,{children:u.criminal})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Minor Crimes",children:[(0,o.createComponentVNode)(2,c.Box,{children:u.mi_crim}),(0,o.createComponentVNode)(2,c.Box,{children:u.mi_crim_d})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Major Crimes",children:[(0,o.createComponentVNode)(2,c.Box,{children:u.ma_crim}),(0,o.createComponentVNode)(2,c.Box,{children:u.ma_crim_d})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Important Notes",children:u.notes})]})]})]})})}},42360:function(e,n,t){"use strict";n.__esModule=!0,n.pda_atmos_scan=void 0;var o=t(39812),r=t(64499),c=t(2497),a=t(71494),i=t(74814);n.pda_atmos_scan=function(e,n){var t=(0,a.useBackend)(n),l=(t.act,t.data.aircontents);return(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,r.filter)((function(e){return"0"!==e.val||"Pressure"===e.entry||"Temperature"===e.entry}))(l).map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.entry,color:(n=e.val,t=e.bad_low,r=e.poor_low,a=e.poor_high,l=e.bad_high,na?"average":n>l?"bad":"good"),children:[e.val,(0,c.decodeHtmlEntities)(e.units)]},e.entry);var n,t,r,a,l}))})})}},84932:function(e,n,t){"use strict";n.__esModule=!0,n.pda_janitor=void 0;var o=t(39812),r=(t(64499),t(2497),t(71494)),c=t(74814);n.pda_janitor=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data.janitor);return(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Current Location",children:0===a.user_loc.x&&(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Unknown"})||(0,o.createComponentVNode)(2,c.Box,{children:[a.user_loc.x," / ",a.user_loc.y]})})}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Mop Locations",children:a.mops&&(0,o.createVNode)(1,"ul",null,a.mops.map((function(e,n){return(0,o.createVNode)(1,"li",null,[e.x,(0,o.createTextVNode)(" / "),e.y,(0,o.createTextVNode)(" - "),e.dir,(0,o.createTextVNode)(" - Status: "),e.status],0,null,n)})),0)||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No mops detected nearby."})}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Mop Bucket Locations",children:a.buckets&&(0,o.createVNode)(1,"ul",null,a.buckets.map((function(e,n){return(0,o.createVNode)(1,"li",null,[e.x,(0,o.createTextVNode)(" / "),e.y,(0,o.createTextVNode)(" - "),e.dir,(0,o.createTextVNode)(" - Capacity: "),e.volume,(0,o.createTextVNode)("/"),e.max_volume],0,null,n)})),0)||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No buckets detected nearby."})}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Cleanbot Locations",children:a.cleanbots&&(0,o.createVNode)(1,"ul",null,a.cleanbots.map((function(e,n){return(0,o.createVNode)(1,"li",null,[e.x,(0,o.createTextVNode)(" / "),e.y,(0,o.createTextVNode)(" - "),e.dir,(0,o.createTextVNode)(" - Status: "),e.status],0,null,n)})),0)||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No cleanbots detected nearby."})}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Janitorial Cart Locations",children:a.carts&&(0,o.createVNode)(1,"ul",null,a.carts.map((function(e,n){return(0,o.createVNode)(1,"li",null,[e.x,(0,o.createTextVNode)(" / "),e.y,(0,o.createTextVNode)(" - "),e.dir,(0,o.createTextVNode)(" - Water Level: "),e.volume,(0,o.createTextVNode)("/"),e.max_volume],0,null,n)})),0)||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No janitorial carts detected nearby."})})]})}},6011:function(e,n,t){"use strict";n.__esModule=!0,n.pda_main_menu=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814);n.pda_main_menu=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.owner,d=i.ownjob,s=i.idInserted,u=i.categories,m=i.pai,p=i.notifying;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Owner",color:"average",children:[l,", ",d]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"ID",children:(0,o.createComponentVNode)(2,c.Button,{icon:"sync",content:"Update PDA Info",disabled:!s,onClick:function(){return a("UpdateInfo")}})})]})}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Functions",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:u.map((function(e){var n=i.apps[e];return n&&n.length?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e,children:n.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{icon:e.ref in p?e.notify_icon:e.icon,iconSpin:e.ref in p,color:e.ref in p?"red":"transparent",content:e.name,onClick:function(){return a("StartProgram",{program:e.ref})}},e.ref)}))},e):null}))})}),!!m&&(0,o.createComponentVNode)(2,c.Section,{level:2,title:"pAI",children:[(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"cog",content:"Configuration",onClick:function(){return a("pai",{option:1})}}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"eject",content:"Eject pAI",onClick:function(){return a("pai",{option:2})}})]})],0)}},93303:function(e,n,t){"use strict";n.__esModule=!0,n.pda_manifest=void 0;var o=t(39812),r=(t(64499),t(71494)),c=t(74814),a=t(22902);n.pda_manifest=function(e,n){var t=(0,r.useBackend)(n);t.act,t.data;return(0,o.createComponentVNode)(2,c.Box,{color:"white",children:(0,o.createComponentVNode)(2,a.CrewManifestContent)})}},65276:function(e,n,t){"use strict";n.__esModule=!0,n.pda_medical=void 0;var o=t(39812),r=(t(64499),t(2497),t(71494)),c=t(74814);n.pda_medical=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.recordsList,d=i.records;if(d){var s=d.general,u=d.medical;return(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Section,{level:2,title:"General Data",children:s&&(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Name",children:s.name}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Sex",children:s.sex}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Species",children:s.species}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Age",children:s.age}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Rank",children:s.rank}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Fingerprint",children:s.fingerprint}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Physical Status",children:s.p_stat}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Mental Status",children:s.m_stat})]})||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"General record lost!"})}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Medical Data",children:u&&(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Blood Type",children:u.b_type}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Minor Disabilities",children:u.mi_dis}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Details",children:u.mi_dis_d}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Major Disabilities",children:u.ma_dis}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Details",children:u.ma_dis_d}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Allergies",children:u.alg}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Details",children:u.alg_d}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Current Disease",children:u.cdi}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Details",children:u.cdi_d}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Important Notes",preserveWhitespace:!0,children:u.notes})]})||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Medical record lost!"})})]})}return(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Select a record",children:l.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{icon:"eye",fluid:!0,content:e.Name,onClick:function(){return a("Records",{target:e.ref})}},e.ref)}))})}},92494:function(e,n,t){"use strict";n.__esModule=!0,n.pda_messenger=void 0;var o=t(39812),r=t(2497),c=t(64499),a=t(71494),i=t(74814);n.pda_messenger=function(e,n){var t=(0,a.useBackend)(n),r=(t.act,t.data);r.auto_scroll,r.convo_name,r.convo_job,r.messages;return r.active_conversation?(0,o.createComponentVNode)(2,d):(0,o.createComponentVNode)(2,s)};var l=function(e,n,t){if(n<0||n>t.length)return e.sent?"TinderMessage_First_Sent":"TinderMessage_First_Received";var o=t[n].sent;return e.sent&&o?"TinderMessage_Subsequent_Sent":e.sent||o?e.sent?"TinderMessage_First_Sent":"TinderMessage_First_Received":"TinderMessage_Subsequent_Received"},d=function(e,n){var t=(0,a.useBackend)(n),d=t.act,s=t.data,u=(s.auto_scroll,s.convo_name),m=s.convo_job,p=s.messages,C=s.active_conversation,h=(s.useRetro,(0,a.useLocalState)(n,"clipboardMode",!1)),N=h[0],V=h[1],b=(0,o.createComponentVNode)(2,i.Section,{level:2,title:"Conversation with "+u+" ("+m+")",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"eye",selected:N,tooltip:"Enter Clipboard Mode",tooltipPosition:"bottom-end",onClick:function(){return V(!N)}}),height:"450px",stretchContents:!0,children:[(0,o.createComponentVNode)(2,i.Section,{style:{height:"97%","overflow-y":"auto"},children:(0,c.filter)((function(e){return e.target===C}))(p).map((function(e,n,t){return(0,o.createComponentVNode)(2,i.Box,{textAlign:e.sent?"right":"left",mb:1,children:(0,o.createComponentVNode)(2,i.Box,{maxWidth:"75%",className:l(e,n-1,t),inline:!0,children:(0,r.decodeHtmlEntities)(e.message)})},n)}))}),(0,o.createComponentVNode)(2,i.Button,{icon:"comment",onClick:function(){return d("Message",{target:C})},content:"Reply"})]});return N&&(b=(0,o.createComponentVNode)(2,i.Section,{level:2,title:"Conversation with "+u+" ("+m+")",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"eye",selected:N,tooltip:"Exit Clipboard Mode",tooltipPosition:"bottom-end",onClick:function(){return V(!N)}}),height:"450px",stretchContents:!0,children:[(0,o.createComponentVNode)(2,i.Section,{style:{height:"97%","overflow-y":"auto"},children:(0,c.filter)((function(e){return e.target===C}))(p).map((function(e,n){return(0,o.createComponentVNode)(2,i.Box,{className:e.sent?"ClassicMessage_Sent":"ClassicMessage_Received",children:[e.sent?"You:":"Them:"," ",(0,r.decodeHtmlEntities)(e.message)]},n)}))}),(0,o.createComponentVNode)(2,i.Button,{icon:"comment",onClick:function(){return d("Message",{target:C})},content:"Reply"})]})),(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Messenger Functions",children:(0,o.createComponentVNode)(2,i.Button,{icon:"trash",color:"bad",onClick:function(){return d("Clear",{option:"Convo"})},children:"Delete Conversations"})})}),b]})},s=function(e,n){var t=(0,a.useBackend)(n),r=t.act,c=t.data,l=(c.auto_scroll,c.convopdas),d=c.pdas,s=c.charges,m=(c.plugins,c.silent),p=c.toff;return(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Messenger Functions",children:[(0,o.createComponentVNode)(2,i.Button,{selected:!m,icon:m?"volume-mute":"volume-up",onClick:function(){return r("Toggle Ringer")},children:["Ringer: ",m?"Off":"On"]}),(0,o.createComponentVNode)(2,i.Button,{color:p?"bad":"green",icon:"power-off",onClick:function(){return r("Toggle Messenger")},children:["Messenger: ",p?"Off":"On"]}),(0,o.createComponentVNode)(2,i.Button,{icon:"bell",onClick:function(){return r("Ringtone")},children:"Set Ringtone"}),(0,o.createComponentVNode)(2,i.Button,{icon:"trash",color:"bad",onClick:function(){return r("Clear",{option:"All"})},children:"Delete All Conversations"})]})}),!p&&(0,o.createComponentVNode)(2,i.Box,{children:[!!s&&(0,o.createComponentVNode)(2,i.Box,{children:[s," charges left."]}),!l.length&&!d.length&&(0,o.createComponentVNode)(2,i.Box,{children:"No other PDAs located."})||(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,u,{title:"Current Conversations",pdas:l,msgAct:"Select Conversation"}),(0,o.createComponentVNode)(2,u,{title:"Other PDAs",pdas:d,msgAct:"Message"})]})]})||(0,o.createComponentVNode)(2,i.Box,{color:"bad",mt:2,children:"Messenger Offline."})]})},u=function(e,n){var t=(0,a.useBackend)(n),r=t.act,c=t.data,l=e.pdas,d=e.title,s=e.msgAct,u=c.charges,m=c.plugins;return l&&l.length?(0,o.createComponentVNode)(2,i.Section,{level:2,title:d,children:l.map((function(e){return(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.Button,{icon:"arrow-circle-down",content:e.Name,onClick:function(){return r(s,{target:e.Reference})}}),!!u&&m.map((function(n){return(0,o.createComponentVNode)(2,i.Button,{icon:n.icon,content:n.name,onClick:function(){return r("Messenger Plugin",{plugin:n.ref,target:e.Reference})}},n.ref)}))]},e.Reference)}))}):(0,o.createComponentVNode)(2,i.Section,{level:2,title:d,children:"No PDAs found."})}},31505:function(e,n,t){"use strict";n.__esModule=!0,n.pda_news=void 0;var o=t(39812),r=(t(64499),t(2497)),c=t(71494),a=t(74814);n.pda_news=function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data),d=r.feeds,s=r.target_feed;return(0,o.createComponentVNode)(2,a.Box,{children:!d.length&&(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Error: No newsfeeds available. Please try again later."})||s&&(0,o.createComponentVNode)(2,i)||(0,o.createComponentVNode)(2,l)})};var i=function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data.target_feed;return(0,o.createComponentVNode)(2,a.Section,{title:(0,r.decodeHtmlEntities)(l.name)+" by "+(0,r.decodeHtmlEntities)(l.author),level:2,buttons:(0,o.createComponentVNode)(2,a.Button,{content:"Back",icon:"chevron-up",onClick:function(){return i("newsfeed",{newsfeed:null})}}),children:l.messages.length&&l.messages.map((function(e){return(0,o.createComponentVNode)(2,a.Section,{children:["- ",(0,r.decodeHtmlEntities)(e.body),!!e.img&&(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createVNode)(1,"img",null,null,1,{src:"data:image/png;base64,"+e.img}),(0,r.decodeHtmlEntities)(e.caption)||null]}),(0,o.createComponentVNode)(2,a.Box,{color:"grey",children:["[",e.message_type," by ",(0,r.decodeHtmlEntities)(e.author)," - ",e.time_stamp,"]"]})]},e.ref)}))||(0,o.createComponentVNode)(2,a.Box,{children:["No stories found in ",l.name,"."]})})},l=function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data,d=l.feeds,s=l.latest_news;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{title:"Recent News",level:2,children:s.length&&(0,o.createComponentVNode)(2,a.Section,{children:s.map((function(e){return(0,o.createComponentVNode)(2,a.Box,{mb:2,children:[(0,o.createVNode)(1,"h5",null,[(0,r.decodeHtmlEntities)(e.channel),(0,o.createComponentVNode)(2,a.Button,{ml:1,icon:"chevron-up",onClick:function(){return i("newsfeed",{newsfeed:e.index})},content:"Go to"})],0),"- ",(0,r.decodeHtmlEntities)(e.body),!!e.img&&(0,o.createComponentVNode)(2,a.Box,{children:["[image omitted, view story for more details]",e.caption||null]}),(0,o.createComponentVNode)(2,a.Box,{fontSize:.9,children:["[",e.message_type," by ",(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:"average",children:e.author})," - ",e.time_stamp,"]"]})]},e.index)}))})||(0,o.createComponentVNode)(2,a.Box,{children:"No recent stories found."})}),(0,o.createComponentVNode)(2,a.Section,{title:"News Feeds",level:2,children:d.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"chevron-up",onClick:function(){return i("newsfeed",{newsfeed:e.index})},content:e.name},e.index)}))})],4)}},66785:function(e,n,t){"use strict";n.__esModule=!0,n.pda_notekeeper=void 0;var o=t(39812),r=t(71494),c=t(74814);n.pda_notekeeper=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.note;return(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:i}})}),(0,o.createComponentVNode)(2,c.Button,{icon:"pen",onClick:function(){return a("Edit")},content:"Edit Notes"})]})}},63853:function(e,n,t){"use strict";n.__esModule=!0,n.pda_power=void 0;var o=t(39812),r=t(71494),c=t(89793);n.pda_power=function(e,n){var t=(0,r.useBackend)(n);t.act,t.data;return(0,o.createComponentVNode)(2,c.PowerMonitorContent)}},20575:function(e,n,t){"use strict";n.__esModule=!0,n.pda_security=void 0;var o=t(39812),r=(t(64499),t(2497),t(71494)),c=t(74814);n.pda_security=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.recordsList,d=i.records;if(d){var s=d.general,u=d.security;return(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Section,{level:2,title:"General Data",children:s&&(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Name",children:s.name}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Sex",children:s.sex}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Species",children:s.species}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Age",children:s.age}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Rank",children:s.rank}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Fingerprint",children:s.fingerprint}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Physical Status",children:s.p_stat}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Mental Status",children:s.m_stat})]})||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"General record lost!"})}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Security Data",children:u&&(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Criminal Status",children:u.criminal}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Minor Crimes",children:u.mi_crim}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Details",children:u.mi_crim_d}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Major Crimes",children:u.ma_crim}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Details",children:u.ma_crim_d}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Important Notes:",preserveWhitespace:!0,children:u.notes||"No data found."})]})||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Security record lost!"})})]})}return(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Select a record",children:l.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{icon:"eye",fluid:!0,content:e.Name,onClick:function(){return a("Records",{target:e.ref})}},e.ref)}))})}},63891:function(e,n,t){"use strict";n.__esModule=!0,n.pda_signaller=void 0;var o=t(39812),r=(t(64499),t(2497),t(71494),t(74814),t(32325));n.pda_signaller=function(e,n){return(0,o.createComponentVNode)(2,r.SignalerContent)}},14947:function(e,n,t){"use strict";n.__esModule=!0,n.pda_status_display=void 0;var o=t(39812),r=(t(64499),t(2497),t(71494)),c=t(74814);n.pda_status_display=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.records;return(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Code",children:[(0,o.createComponentVNode)(2,c.Button,{color:"transparent",icon:"trash",content:"Clear",onClick:function(){return a("Status",{statdisp:"blank"})}}),(0,o.createComponentVNode)(2,c.Button,{color:"transparent",icon:"cog",content:"Evac ETA",onClick:function(){return a("Status",{statdisp:"shuttle"})}}),(0,o.createComponentVNode)(2,c.Button,{color:"transparent",icon:"cog",content:"Message",onClick:function(){return a("Status",{statdisp:"message"})}}),(0,o.createComponentVNode)(2,c.Button,{color:"transparent",icon:"exclamation-triangle",content:"ALERT",onClick:function(){return a("Status",{statdisp:"alert"})}})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Message line 1",children:(0,o.createComponentVNode)(2,c.Button,{content:i.message1+" (set)",icon:"pen",onClick:function(){return a("Status",{statdisp:"setmsg1"})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Message line 2",children:(0,o.createComponentVNode)(2,c.Button,{content:i.message2+" (set)",icon:"pen",onClick:function(){return a("Status",{statdisp:"setmsg2"})}})})]})})}},85143:function(e,n,t){"use strict";n.__esModule=!0,n.pda_supply=void 0;var o=t(39812),r=(t(64499),t(2497),t(71494)),c=t(74814);n.pda_supply=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data.supply);return(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Location",children:a.shuttle_moving?"Moving to station "+a.shuttle_eta:"Shuttle at "+a.shuttle_loc})}),(0,o.createComponentVNode)(2,c.Section,{children:[(0,o.createComponentVNode)(2,c.Box,{color:"good",bold:!0,children:"Current Approved Orders"}),a.approved.length&&a.approved.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{color:"average",children:["#",e.Number," - ",e.Name," approved by ",e.OrderedBy,(0,o.createVNode)(1,"br"),e.Comment]},e.Number)}))||(0,o.createComponentVNode)(2,c.Box,{children:"None!"}),(0,o.createComponentVNode)(2,c.Box,{color:"good",bold:!0,children:"Current Requested Orders"}),a.requests.length&&a.requests.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{color:"average",children:["#",e.Number," - ",e.Name," requested by ",e.OrderedBy,(0,o.createVNode)(1,"br"),e.Comment]},e.Number)}))||(0,o.createComponentVNode)(2,c.Box,{children:"None!"})]})]})}},73218:function(e,n,t){"use strict";n.__esModule=!0,n.getRoutedComponent=n.routingError=void 0;var o=t(39812),r=t(71494),c=(t(30098),t(85952)),a=t(8156),i=function(e,n){return function(){return(0,o.createComponentVNode)(2,c.Window,{children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:["notFound"===e&&(0,o.createVNode)(1,"div",null,[(0,o.createTextVNode)("Interface "),(0,o.createVNode)(1,"b",null,n,0),(0,o.createTextVNode)(" was not found.")],4),"missingExport"===e&&(0,o.createVNode)(1,"div",null,[(0,o.createTextVNode)("Interface "),(0,o.createVNode)(1,"b",null,n,0),(0,o.createTextVNode)(" is missing an export.")],4)]})})}};n.routingError=i;var l=function(){return(0,o.createComponentVNode)(2,c.Window,{children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0})})};n.getRoutedComponent=function(e){var n=e.getState(),t=(0,r.selectBackend)(n),o=t.suspended,c=t.config;if(o)return l;for(var d,s=null==c?void 0:c["interface"],u=[function(e){return"./"+e+".tsx"},function(e){return"./"+e+".js"},function(e){return"./"+e+"/index.tsx"},function(e){return"./"+e+"/index.js"}];!d&&u.length>0;){var m=u.shift()(s);try{d=a(m)}catch(C){if("MODULE_NOT_FOUND"!==C.code)throw C}}if(!d)return i("notFound",s);var p=d[s];return p||i("missingExport",s)}},56285:function(){},58602:function(){},48979:function(){},92433:function(){},35070:function(){},86455:function(){},41821:function(){},83243:function(){},97585:function(){},64197:function(){},87266:function(){},99195:function(){},72916:function(){},75168:function(e,n,t){var o={"./pda_atmos_scan.js":42360,"./pda_janitor.js":84932,"./pda_main_menu.js":6011,"./pda_manifest.js":93303,"./pda_medical.js":65276,"./pda_messenger.js":92494,"./pda_news.js":31505,"./pda_notekeeper.js":66785,"./pda_power.js":63853,"./pda_security.js":20575,"./pda_signaller.js":63891,"./pda_status_display.js":14947,"./pda_supply.js":85143};function r(e){var n=c(e);return t(n)}function c(e){if(!t.o(o,e)){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return o[e]}r.keys=function(){return Object.keys(o)},r.resolve=c,e.exports=r,r.id=75168},8156:function(e,n,t){var o={"./AICard":34129,"./AICard.js":34129,"./APC":73405,"./APC.js":73405,"./AccountsTerminal":20832,"./AccountsTerminal.js":20832,"./AdminShuttleController":19007,"./AdminShuttleController.js":19007,"./AgentCard":51104,"./AgentCard.js":51104,"./AiAirlock":47330,"./AiAirlock.js":47330,"./AiRestorer":33084,"./AiRestorer.js":33084,"./AiSupermatter":597,"./AiSupermatter.js":597,"./AirAlarm":58444,"./AirAlarm.js":58444,"./AlertModal":24053,"./AlertModal.js":24053,"./AlgaeFarm":34847,"./AlgaeFarm.js":34847,"./AppearanceChanger":65145,"./AppearanceChanger.js":65145,"./ArcadeBattle":86776,"./ArcadeBattle.js":86776,"./AreaScrubberControl":13496,"./AreaScrubberControl.js":13496,"./AssemblyInfrared":56404,"./AssemblyInfrared.js":56404,"./AssemblyProx":29632,"./AssemblyProx.js":29632,"./AssemblyTimer":48661,"./AssemblyTimer.js":48661,"./AtmosAlertConsole":38531,"./AtmosAlertConsole.js":38531,"./AtmosControl":46566,"./AtmosControl.js":46566,"./AtmosFilter":2726,"./AtmosFilter.js":2726,"./AtmosMixer":61505,"./AtmosMixer.js":61505,"./Autolathe":99994,"./Autolathe.js":99994,"./Batteryrack":62586,"./Batteryrack.js":62586,"./BeaconLocator":25116,"./BeaconLocator.js":25116,"./Biogenerator":20813,"./Biogenerator.js":20813,"./BodyDesigner":81850,"./BodyDesigner.js":81850,"./BodyScanner":6060,"./BodyScanner.js":6060,"./BombTester":74639,"./BombTester.js":74639,"./BotanyEditor":48693,"./BotanyEditor.js":48693,"./BotanyIsolator":25486,"./BotanyIsolator.js":25486,"./BrigTimer":61956,"./BrigTimer.js":61956,"./CameraConsole":3180,"./CameraConsole.js":3180,"./Canister":94477,"./Canister.js":94477,"./Canvas":55636,"./Canvas.js":55636,"./CasinoPrizeDispenser":25131,"./CasinoPrizeDispenser.js":25131,"./CharacterDirectory":47947,"./CharacterDirectory.js":47947,"./ChemDispenser":22223,"./ChemDispenser.js":22223,"./ChemMaster":34859,"./ChemMaster.js":34859,"./ClawMachine":83919,"./ClawMachine.js":83919,"./Cleanbot":74351,"./Cleanbot.js":74351,"./CloningConsole":98213,"./CloningConsole.js":98213,"./ColorMate":32278,"./ColorMate.js":32278,"./CommunicationsConsole":130,"./CommunicationsConsole.js":130,"./Communicator":4220,"./Communicator.js":4220,"./ComputerFabricator":2174,"./ComputerFabricator.js":2174,"./CookingAppliance":26090,"./CookingAppliance.js":26090,"./CrewManifest":22902,"./CrewManifest.js":22902,"./CrewMonitor":96158,"./CrewMonitor.js":96158,"./Cryo":99798,"./Cryo.js":99798,"./CryoStorage":54234,"./CryoStorage.js":54234,"./CryoStorageVr":66384,"./CryoStorageVr.js":66384,"./DNAForensics":99579,"./DNAForensics.js":99579,"./DNAModifier":21849,"./DNAModifier.js":21849,"./DestinationTagger":59305,"./DestinationTagger.js":59305,"./DiseaseSplicer":10015,"./DiseaseSplicer.js":10015,"./DishIncubator":31066,"./DishIncubator.js":31066,"./DisposalBin":19095,"./DisposalBin.js":19095,"./DroneConsole":29345,"./DroneConsole.js":29345,"./EmbeddedController":84122,"./EmbeddedController.js":84122,"./ExonetNode":33777,"./ExonetNode.js":33777,"./ExosuitFabricator":95481,"./ExosuitFabricator.js":95481,"./Farmbot":95598,"./Farmbot.js":95598,"./Fax":17569,"./Fax.js":17569,"./FileCabinet":58087,"./FileCabinet.js":58087,"./Floorbot":21902,"./Floorbot.js":21902,"./GasPump":309,"./GasPump.js":309,"./GasTemperatureSystem":26049,"./GasTemperatureSystem.js":26049,"./GeneralAtmoControl":2753,"./GeneralAtmoControl.js":2753,"./GeneralRecords":57753,"./GeneralRecords.js":57753,"./Gps":25230,"./Gps.js":25230,"./GravityGenerator":4475,"./GravityGenerator.js":4475,"./GuestPass":95075,"./GuestPass.js":95075,"./GyrotronControl":31875,"./GyrotronControl.js":31875,"./Holodeck":7908,"./Holodeck.js":7908,"./ICAssembly":12676,"./ICAssembly.js":12676,"./ICCircuit":42394,"./ICCircuit.js":42394,"./ICDetailer":81039,"./ICDetailer.js":81039,"./ICPrinter":21687,"./ICPrinter.js":21687,"./IDCard":48522,"./IDCard.js":48522,"./IdentificationComputer":76952,"./IdentificationComputer.js":76952,"./InputModal":44570,"./InputModal.js":44570,"./InventoryPanel":53541,"./InventoryPanel.js":53541,"./InventoryPanelHuman":46638,"./InventoryPanelHuman.js":46638,"./IsolationCentrifuge":45e3,"./IsolationCentrifuge.js":45e3,"./JanitorCart":83994,"./JanitorCart.js":83994,"./Jukebox":68741,"./Jukebox.js":68741,"./LawManager":13204,"./LawManager.js":13204,"./ListInput":58802,"./ListInput.js":58802,"./LookingGlass":36104,"./LookingGlass.js":36104,"./MechaControlConsole":74714,"./MechaControlConsole.js":74714,"./Medbot":17888,"./Medbot.js":17888,"./MedicalRecords":37610,"./MedicalRecords.js":37610,"./MessageMonitor":287,"./MessageMonitor.js":287,"./Microwave":75412,"./Microwave.js":75412,"./MiningOreProcessingConsole":35016,"./MiningOreProcessingConsole.js":35016,"./MiningStackingConsole":87314,"./MiningStackingConsole.js":87314,"./MiningVendor":62012,"./MiningVendor.js":62012,"./MuleBot":6479,"./MuleBot.js":6479,"./NIF":46157,"./NIF.js":46157,"./NTNetRelay":79630,"./NTNetRelay.js":79630,"./Newscaster":60042,"./Newscaster.js":60042,"./NoticeBoard":31669,"./NoticeBoard.js":31669,"./NtosAccessDecrypter":63231,"./NtosAccessDecrypter.js":63231,"./NtosArcade":79760,"./NtosArcade.js":79760,"./NtosAtmosControl":97908,"./NtosAtmosControl.js":97908,"./NtosCameraConsole":63645,"./NtosCameraConsole.js":63645,"./NtosCommunicationsConsole":74093,"./NtosCommunicationsConsole.js":74093,"./NtosConfiguration":55513,"./NtosConfiguration.js":55513,"./NtosCrewMonitor":17539,"./NtosCrewMonitor.js":17539,"./NtosDigitalWarrant":20025,"./NtosDigitalWarrant.js":20025,"./NtosEmailAdministration":11325,"./NtosEmailAdministration.js":11325,"./NtosEmailClient":77006,"./NtosEmailClient.js":77006,"./NtosFileManager":86441,"./NtosFileManager.js":86441,"./NtosIdentificationComputer":87369,"./NtosIdentificationComputer.js":87369,"./NtosMain":59543,"./NtosMain.js":59543,"./NtosNetChat":73883,"./NtosNetChat.js":73883,"./NtosNetDos":83908,"./NtosNetDos.js":83908,"./NtosNetDownloader":83305,"./NtosNetDownloader.js":83305,"./NtosNetMonitor":6806,"./NtosNetMonitor.js":6806,"./NtosNetTransfer":4363,"./NtosNetTransfer.js":4363,"./NtosNewsBrowser":23225,"./NtosNewsBrowser.js":23225,"./NtosOvermapNavigation":3839,"./NtosOvermapNavigation.js":3839,"./NtosPowerMonitor":54698,"./NtosPowerMonitor.js":54698,"./NtosRCON":17086,"./NtosRCON.js":17086,"./NtosRevelation":69480,"./NtosRevelation.js":69480,"./NtosShutoffMonitor":93990,"./NtosShutoffMonitor.js":93990,"./NtosStationAlertConsole":76124,"./NtosStationAlertConsole.js":76124,"./NtosSupermatterMonitor":22475,"./NtosSupermatterMonitor.js":22475,"./NtosUAV":66744,"./NtosUAV.js":66744,"./NtosWordProcessor":19458,"./NtosWordProcessor.js":19458,"./OmniFilter":18326,"./OmniFilter.js":18326,"./OmniMixer":78588,"./OmniMixer.js":78588,"./OperatingComputer":48826,"./OperatingComputer.js":48826,"./OvermapDisperser":51888,"./OvermapDisperser.js":51888,"./OvermapEngines":25123,"./OvermapEngines.js":25123,"./OvermapFull":63836,"./OvermapFull.js":63836,"./OvermapHelm":89380,"./OvermapHelm.js":89380,"./OvermapNavigation":12640,"./OvermapNavigation.js":12640,"./OvermapShieldGenerator":84031,"./OvermapShieldGenerator.js":84031,"./OvermapShipSensors":51932,"./OvermapShipSensors.js":51932,"./ParticleAccelerator":57966,"./ParticleAccelerator.js":57966,"./PartsLathe":80374,"./PartsLathe.js":80374,"./PathogenicIsolator":83987,"./PathogenicIsolator.js":83987,"./Pda":72586,"./Pda.js":72586,"./PersonalCrafting":67589,"./PersonalCrafting.js":67589,"./Photocopier":9527,"./Photocopier.js":9527,"./PipeDispenser":92310,"./PipeDispenser.js":92310,"./PlantAnalyzer":38575,"./PlantAnalyzer.js":38575,"./PointDefenseControl":17599,"./PointDefenseControl.js":17599,"./PortableGenerator":46104,"./PortableGenerator.js":46104,"./PortablePump":82564,"./PortablePump.js":82564,"./PortableScrubber":24901,"./PortableScrubber.js":24901,"./PortableTurret":31695,"./PortableTurret.js":31695,"./PowerMonitor":89793,"./PowerMonitor.js":89793,"./PressureRegulator":81121,"./PressureRegulator.js":81121,"./PrisonerManagement":14210,"./PrisonerManagement.js":14210,"./RCON":43996,"./RCON.js":43996,"./RIGSuit":92141,"./RIGSuit.js":92141,"./Radio":17481,"./Radio.js":17481,"./RapidPipeDispenser":29509,"./RapidPipeDispenser.js":29509,"./RequestConsole":53976,"./RequestConsole.js":53976,"./ResearchConsole":48639,"./ResearchConsole.js":48639,"./ResearchServerController":35606,"./ResearchServerController.js":35606,"./ResleevingConsole":86330,"./ResleevingConsole.js":86330,"./ResleevingPod":88359,"./ResleevingPod.js":88359,"./RoboticsControlConsole":24455,"./RoboticsControlConsole.js":24455,"./RogueZones":52330,"./RogueZones.js":52330,"./RustCoreMonitor":59412,"./RustCoreMonitor.js":59412,"./RustFuelControl":59327,"./RustFuelControl.js":59327,"./Secbot":54943,"./Secbot.js":54943,"./SecureSafe":57436,"./SecureSafe.js":57436,"./SecurityRecords":71915,"./SecurityRecords.js":71915,"./SeedStorage":93550,"./SeedStorage.js":93550,"./ShieldCapacitor":16765,"./ShieldCapacitor.js":16765,"./ShieldGenerator":79229,"./ShieldGenerator.js":79229,"./ShutoffMonitor":89957,"./ShutoffMonitor.js":89957,"./ShuttleControl":34404,"./ShuttleControl.js":34404,"./Signaler":32325,"./Signaler.js":32325,"./Sleeper":80646,"./Sleeper.js":80646,"./SmartVend":55896,"./SmartVend.js":55896,"./Smes":20561,"./Smes.js":20561,"./SolarControl":21633,"./SolarControl.js":21633,"./SpaceHeater":57762,"./SpaceHeater.js":57762,"./Stack":58215,"./Stack.js":58215,"./StationAlertConsole":32015,"./StationAlertConsole.js":32015,"./StationBlueprints":52649,"./StationBlueprints.js":52649,"./SuitCycler":72e3,"./SuitCycler.js":72e3,"./SuitStorageUnit":80748,"./SuitStorageUnit.js":80748,"./SupermatterMonitor":6951,"./SupermatterMonitor.js":6951,"./SupplyConsole":12431,"./SupplyConsole.js":12431,"./TEGenerator":30111,"./TEGenerator.js":30111,"./Tank":58457,"./Tank.js":58457,"./TankDispenser":38754,"./TankDispenser.js":38754,"./TelecommsLogBrowser":73754,"./TelecommsLogBrowser.js":73754,"./TelecommsMachineBrowser":29441,"./TelecommsMachineBrowser.js":29441,"./TelecommsMultitoolMenu":86756,"./TelecommsMultitoolMenu.js":86756,"./Teleporter":18509,"./Teleporter.js":18509,"./TelesciConsole":62555,"./TelesciConsole.js":62555,"./TimeClock":55096,"./TimeClock.js":55096,"./TransferValve":24389,"./TransferValve.js":24389,"./TurbineControl":95893,"./TurbineControl.js":95893,"./Turbolift":62542,"./Turbolift.js":62542,"./Uplink":89761,"./Uplink.js":89761,"./Vending":61321,"./Vending.js":61321,"./VolumePanel":93147,"./VolumePanel.js":93147,"./VorePanel":24630,"./VorePanel.js":24630,"./Wires":21162,"./Wires.js":21162,"./XenoarchArtifactAnalyzer":81522,"./XenoarchArtifactAnalyzer.js":81522,"./XenoarchArtifactHarvester":40875,"./XenoarchArtifactHarvester.js":40875,"./XenoarchDepthScanner":88835,"./XenoarchDepthScanner.js":88835,"./XenoarchHandheldPowerUtilizer":5622,"./XenoarchHandheldPowerUtilizer.js":5622,"./XenoarchReplicator":53702,"./XenoarchReplicator.js":53702,"./XenoarchSpectrometer":13153,"./XenoarchSpectrometer.js":13153,"./XenoarchSuspension":19820,"./XenoarchSuspension.js":19820,"./common/AtmosControls":71739,"./common/AtmosControls.js":71739,"./common/BeakerContents":48229,"./common/BeakerContents.js":48229,"./common/ComplexModal":16007,"./common/ComplexModal.js":16007,"./common/FullscreenNotice":67861,"./common/FullscreenNotice.js":67861,"./common/InterfaceLockNoticeBox":21451,"./common/InterfaceLockNoticeBox.js":21451,"./common/LoginInfo":28117,"./common/LoginInfo.js":28117,"./common/LoginScreen":1192,"./common/LoginScreen.js":1192,"./common/Mining":21526,"./common/Mining.js":21526,"./common/Overmap":40754,"./common/Overmap.js":40754,"./common/PortableAtmos":34227,"./common/PortableAtmos.js":34227,"./common/RankIcon":14959,"./common/RankIcon.js":14959,"./common/TemporaryNotice":36355,"./common/TemporaryNotice.js":36355,"./pAIAtmos":28840,"./pAIAtmos.js":28840,"./pAIDirectives":47132,"./pAIDirectives.js":47132,"./pAIDoorjack":52852,"./pAIDoorjack.js":52852,"./pAIInterface":88814,"./pAIInterface.js":88814,"./pAIMedrecords":52510,"./pAIMedrecords.js":52510,"./pAISecrecords":59946,"./pAISecrecords.js":59946,"./pda/pda_atmos_scan":42360,"./pda/pda_atmos_scan.js":42360,"./pda/pda_janitor":84932,"./pda/pda_janitor.js":84932,"./pda/pda_main_menu":6011,"./pda/pda_main_menu.js":6011,"./pda/pda_manifest":93303,"./pda/pda_manifest.js":93303,"./pda/pda_medical":65276,"./pda/pda_medical.js":65276,"./pda/pda_messenger":92494,"./pda/pda_messenger.js":92494,"./pda/pda_news":31505,"./pda/pda_news.js":31505,"./pda/pda_notekeeper":66785,"./pda/pda_notekeeper.js":66785,"./pda/pda_power":63853,"./pda/pda_power.js":63853,"./pda/pda_security":20575,"./pda/pda_security.js":20575,"./pda/pda_signaller":63891,"./pda/pda_signaller.js":63891,"./pda/pda_status_display":14947,"./pda/pda_status_display.js":14947,"./pda/pda_supply":85143,"./pda/pda_supply.js":85143};function r(e){var n=c(e);return t(n)}function c(e){if(!t.o(o,e)){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return o[e]}r.keys=function(){return Object.keys(o)},r.resolve=c,e.exports=r,r.id=8156}},t={};function o(e){var r=t[e];if(r!==undefined)return r.exports;var c=t[e]={exports:{}};return n[e](c,c.exports,o),c.exports}o.m=n,e=[],o.O=function(n,t,r,c){if(!t){var a=Infinity;for(d=0;d=c)&&Object.keys(o.O).every((function(e){return o.O[e](t[l])}))?t.splice(l--,1):(i=!1,c0&&e[d-1][2]>c;d--)e[d]=e[d-1];e[d]=[t,r,c]},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},function(){var e={764:0};o.O.j=function(n){return 0===e[n]};var n=function(n,t){var r,c,a=t[0],i=t[1],l=t[2],d=0;for(r in i)o.o(i,r)&&(o.m[r]=i[r]);for(l&&l(o),n&&n(t);d=75?"green":s>=25?"yellow":"red";var b=null;return u>=75&&(b="green"),b=u>=25?"yellow":"red",(0,o.createComponentVNode)(2,a.Window,{width:600,height:470,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Stored AI",children:[(0,o.createComponentVNode)(2,c.Box,{bold:!0,display:"inline-block",children:(0,o.createVNode)(1,"h3",null,name,0)}),(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Integrity",children:(0,o.createComponentVNode)(2,c.ProgressBar,{color:V,value:s/100})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power",children:(0,o.createComponentVNode)(2,c.ProgressBar,{color:b,value:u/100})})]})}),(0,o.createComponentVNode)(2,c.Box,{color:"red",children:(0,o.createVNode)(1,"h2",null,1===m?"Wipe of AI in progress...":"",0)})]}),(0,o.createComponentVNode)(2,c.Section,{title:"Laws",children:!!p&&(0,o.createComponentVNode)(2,c.Box,{children:C.map((function(e,n){return(0,o.createComponentVNode)(2,c.Box,{display:"inline-block",children:e},n)}))})||(0,o.createComponentVNode)(2,c.Box,{color:"red",children:(0,o.createVNode)(1,"h3",null,"No laws detected.",16)})}),(0,o.createComponentVNode)(2,c.Section,{title:"Actions",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Wireless Activity",children:(0,o.createComponentVNode)(2,c.Button,{icon:h?"check":"times",content:h?"Enabled":"Disabled",color:h?"green":"red",onClick:function(){return i("wireless")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Subspace Transceiver",children:(0,o.createComponentVNode)(2,c.Button,{icon:N?"check":"times",content:N?"Enabled":"Disabled",color:N?"green":"red",onClick:function(){return i("radio")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"AI Power",children:(0,o.createComponentVNode)(2,c.Button.Confirm,{icon:"radiation",confirmIcon:"radiation",disabled:m||0===s,confirmColor:"red",content:"Shutdown",onClick:function(){return i("wipe")}})})]})})]})})}},73405:function(e,n,t){"use strict";n.__esModule=!0,n.APC=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=t(21451),l=t(67861);n.APC=function(e,n){var t=(0,r.useBackend)(n),c=(t.act,t.data),i=(0,o.createComponentVNode)(2,s);return c.gridCheck?i=(0,o.createComponentVNode)(2,u):c.failTime&&(i=(0,o.createComponentVNode)(2,m)),(0,o.createComponentVNode)(2,a.Window,{width:450,height:475,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:i})})};var d={2:{color:"good",externalPowerText:"External Power",chargingText:"Fully Charged"},1:{color:"average",externalPowerText:"Low External Power",chargingText:"Charging"},0:{color:"bad",externalPowerText:"No External Power",chargingText:"Not Charging"}},s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,l=t.data,s=l.locked&&!l.siliconUser,u=(l.normallyLocked,d[l.externalPower]||d[0]),m=d[l.chargingStatus]||d[0],p=l.powerChannels||[],C=l.powerCellStatus/100;return(0,o.createFragment)([(0,o.createComponentVNode)(2,i.InterfaceLockNoticeBox,{deny:l.emagged,denialMessage:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Box,{color:"bad",fontSize:"1.5rem",children:"Fault in ID authenticator."}),(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Please contact maintenance for service."})],4)}),(0,o.createComponentVNode)(2,c.Section,{title:"Power Status",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Main Breaker",color:u.color,buttons:(0,o.createComponentVNode)(2,c.Button,{icon:l.isOperating?"power-off":"times",content:l.isOperating?"On":"Off",selected:l.isOperating&&!s,color:l.isOperating?"":"bad",disabled:s,onClick:function(){return a("breaker")}}),children:["[ ",u.externalPowerText," ]"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power Cell",children:(0,o.createComponentVNode)(2,c.ProgressBar,{color:"good",value:C})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Charge Mode",color:m.color,buttons:(0,o.createComponentVNode)(2,c.Button,{icon:l.chargeMode?"sync":"times",content:l.chargeMode?"Auto":"Off",selected:l.chargeMode,disabled:s,onClick:function(){return a("charge")}}),children:["[ ",m.chargingText," ]"]})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Power Channels",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[p.map((function(e){var n=e.topicParams;return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.title,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Box,{inline:!0,mx:2,color:e.status>=2?"good":"bad",children:e.status>=2?"On":"Off"}),(0,o.createComponentVNode)(2,c.Button,{icon:"sync",content:"Auto",selected:!s&&(1===e.status||3===e.status),disabled:s,onClick:function(){return a("channel",n.auto)}}),(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",content:"On",selected:!s&&2===e.status,disabled:s,onClick:function(){return a("channel",n.on)}}),(0,o.createComponentVNode)(2,c.Button,{icon:"times",content:"Off",selected:!s&&0===e.status,disabled:s,onClick:function(){return a("channel",n.off)}})],4),children:[e.powerLoad," W"]},e.title)})),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Total Load",children:l.totalCharging?(0,o.createVNode)(1,"b",null,[l.totalLoad,(0,o.createTextVNode)(" W (+ "),l.totalCharging,(0,o.createTextVNode)(" W charging)")],0):(0,o.createVNode)(1,"b",null,[l.totalLoad,(0,o.createTextVNode)(" W")],0)})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Misc",buttons:!!l.siliconUser&&(0,o.createComponentVNode)(2,c.Button,{icon:"lightbulb-o",content:"Overload",onClick:function(){return a("overload")}}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Cover Lock",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:l.coverLocked?"lock":"unlock",content:l.coverLocked?"Engaged":"Disengaged",selected:l.coverLocked,disabled:s,onClick:function(){return a("cover")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Night Shift Lighting",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"lightbulb-o",content:"Disabled",selected:2===l.nightshiftSetting,onClick:function(){return a("nightshift",{nightshift:2})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"lightbulb-o",content:"Automatic",selected:1===l.nightshiftSetting,onClick:function(){return a("nightshift",{nightshift:1})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"lightbulb-o",content:"Enabled",selected:3===l.nightshiftSetting,onClick:function(){return a("nightshift",{nightshift:3})}})],4)}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Emergency Lighting",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"lightbulb-o",content:l.emergencyLights?"Enabled":"Disabled",selected:l.emergencyLights,onClick:function(){return a("emergency_lighting")}})})]})})],4)},u=function(e,n){return(0,o.createComponentVNode)(2,l.FullscreenNotice,{title:"System Failure",children:[(0,o.createComponentVNode)(2,c.Box,{fontSize:"1.5rem",bold:!0,children:(0,o.createComponentVNode)(2,c.Icon,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"})}),(0,o.createComponentVNode)(2,c.Box,{fontSize:"1.5rem",bold:!0,children:"Power surge detected, grid check in effect..."})]})},m=function(e,n){var t=(0,r.useBackend)(n),a=t.data,i=t.act,l=(0,o.createComponentVNode)(2,c.Button,{icon:"repeat",content:"Restart Now",color:"good",onClick:function(){return i("reboot")}});return a.locked&&!a.siliconUser&&(l=(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Swipe an ID card for manual reboot."})),(0,o.createComponentVNode)(2,c.Dimmer,{textAlign:"center",children:[(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:(0,o.createVNode)(1,"h1",null,"SYSTEM FAILURE",16)}),(0,o.createComponentVNode)(2,c.Box,{color:"average",children:(0,o.createVNode)(1,"h2",null,"I/O regulators malfunction detected! Waiting for system reboot...",16)}),(0,o.createComponentVNode)(2,c.Box,{color:"good",children:["Automatic reboot in ",a.failTime," seconds..."]}),(0,o.createComponentVNode)(2,c.Box,{mt:4,children:l})]})}},20832:function(e,n,t){"use strict";n.__esModule=!0,n.AccountsTerminal=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.AccountsTerminal=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data,s=d.id_inserted,u=d.id_card,m=d.access_level,p=d.machine_id;return(0,o.createComponentVNode)(2,a.Window,{width:400,height:640,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Machine",color:"average",children:p}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"ID",children:(0,o.createComponentVNode)(2,c.Button,{icon:s?"eject":"sign-in-alt",fluid:!0,content:u,onClick:function(){return l("insert_card")}})})]})}),m>0&&(0,o.createComponentVNode)(2,i)]})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,u=i.creating_new_account,m=i.detailed_account_view;return(0,o.createComponentVNode)(2,c.Section,{title:"Menu",children:[(0,o.createComponentVNode)(2,c.Tabs,{children:[(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:!u&&!m,icon:"home",onClick:function(){return a("view_accounts_list")},children:"Home"}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:u,icon:"cog",onClick:function(){return a("create_account")},children:"New Account"}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{disabled:u,icon:"print",onClick:function(){return a("print")},children:"Print"})]}),u&&(0,o.createComponentVNode)(2,l)||m&&(0,o.createComponentVNode)(2,d)||(0,o.createComponentVNode)(2,s)]})},l=function(e,n){var t=(0,r.useBackend)(n).act,a=(0,r.useSharedState)(n,"holder",""),i=a[0],l=a[1],d=(0,r.useSharedState)(n,"money",""),s=d[0],u=d[1];return(0,o.createComponentVNode)(2,c.Section,{title:"Create Account",level:2,children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Account Holder",children:(0,o.createComponentVNode)(2,c.Input,{value:i,fluid:!0,onInput:function(e,n){return l(n)}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Initial Deposit",children:(0,o.createComponentVNode)(2,c.Input,{value:s,fluid:!0,onInput:function(e,n){return u(n)}})})]}),(0,o.createComponentVNode)(2,c.Button,{disabled:!i||!s,mt:1,fluid:!0,icon:"plus",onClick:function(){return t("finalise_create_account",{holder_name:i,starting_funds:s})},content:"Create"})]})},d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.access_level,d=i.station_account_number,s=i.account_number,u=i.owner_name,m=i.money,p=i.suspended,C=i.transactions;return(0,o.createComponentVNode)(2,c.Section,{title:"Account Details",level:2,buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"ban",selected:p,content:"Suspend",onClick:function(){return a("toggle_suspension")}}),children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Account Number",children:["#",s]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Holder",children:u}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Balance",children:[m,"\u20ae"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Status",color:p?"bad":"good",children:p?"SUSPENDED":"Active"})]}),(0,o.createComponentVNode)(2,c.Section,{title:"CentCom Administrator",level:2,mt:1,children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Payroll",children:(0,o.createComponentVNode)(2,c.Button.Confirm,{color:"bad",fluid:!0,icon:"ban",confirmIcon:"ban",content:"Revoke",confirmContent:"This cannot be undone.",disabled:s===d,onClick:function(){return a("revoke_payroll")}})})})}),l>=2&&(0,o.createComponentVNode)(2,c.Section,{title:"Silent Funds Transfer",level:2,children:[(0,o.createComponentVNode)(2,c.Button,{icon:"plus",onClick:function(){return a("add_funds")},content:"Add Funds"}),(0,o.createComponentVNode)(2,c.Button,{icon:"plus",onClick:function(){return a("remove_funds")},content:"Remove Funds"})]}),(0,o.createComponentVNode)(2,c.Section,{title:"Transactions",level:2,mt:1,children:(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Timestamp"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Target"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Reason"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Value"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Terminal"})]}),C.map((function(e,n){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:[e.date," ",e.time]}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.target_name}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.purpose}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:[e.amount,"\u20ae"]}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.source_terminal})]},n)}))]})})]})},s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.accounts;return(0,o.createComponentVNode)(2,c.Section,{title:"NanoTrasen Accounts",level:2,children:i.length&&(0,o.createComponentVNode)(2,c.LabeledList,{children:i.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.owner_name+e.suspended,color:e.suspended?"bad":null,children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,content:"#"+e.account_number,onClick:function(){return a("view_account_detail",{account_index:e.account_index})}})},e.account_index)}))})||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"There are no accounts available."})})}},19007:function(e,n,t){"use strict";n.__esModule=!0,n.ShuttleList=n.AdminShuttleController=void 0;var o=t(39812),r=t(64499),c=t(71494),a=t(74814),i=t(85952);n.AdminShuttleController=function(e,n){var t=(0,c.useBackend)(n);t.act,t.data;return(0,o.createComponentVNode)(2,i.Window,{width:600,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,l)})})};var l=function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data,s=l.shuttles,u=l.overmap_ships;return(0,o.createComponentVNode)(2,a.Section,{noTopPadding:!0,children:[(0,o.createComponentVNode)(2,a.Section,{title:"Classic Shuttles",level:2,children:(0,o.createComponentVNode)(2,a.Table,{children:(0,r.sortBy)((function(e){return e.name}))(s).map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,a.Button,{m:0,content:"JMP",onClick:function(){return i("adminobserve",{ref:e.ref})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,a.Button,{m:0,content:"Fly",onClick:function(){return i("classicmove",{ref:e.ref})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.current_location}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:d(e.status)})]},e.ref)}))})}),(0,o.createComponentVNode)(2,a.Section,{title:"Overmap Ships",level:2,children:(0,o.createComponentVNode)(2,a.Table,{children:(0,r.sortBy)((function(e){var n;return(null==(n=e.name)?void 0:n.toLowerCase())||e.name||e.ref}))(u).map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,a.Button,{content:"JMP",onClick:function(){return i("adminobserve",{ref:e.ref})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,a.Button,{content:"Control",onClick:function(){return i("overmap_control",{ref:e.ref})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.name})]},e.ref)}))})})]})};n.ShuttleList=l;var d=function(e){switch(e){case 0:return"Idle";case 1:return"Warmup";case 2:return"Transit";default:return"UNK"}}},51104:function(e,n,t){"use strict";n.__esModule=!0,n.AgentCard=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.AgentCard=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.entries,s=l.electronic_warfare;return(0,o.createComponentVNode)(2,a.Window,{width:550,height:400,theme:"syndicate",children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{title:"Info",children:(0,o.createComponentVNode)(2,c.Table,{children:d.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i(e.name.toLowerCase().replace(/ /g,""))},icon:"cog"})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.value})]},e.name)}))})}),(0,o.createComponentVNode)(2,c.Section,{title:"Electronic Warfare",children:(0,o.createComponentVNode)(2,c.Button.Checkbox,{checked:s,content:s?"Electronic warfare is enabled. This will prevent you from being tracked by the AI.":"Electronic warfare disabled.",onClick:function(){return i("electronic_warfare")}})})]})})}},47330:function(e,n,t){"use strict";n.__esModule=!0,n.AiAirlock=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i={2:{color:"good",localStatusText:"Optimal"},1:{color:"average",localStatusText:"Caution"},0:{color:"bad",localStatusText:"Offline"}};n.AiAirlock=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data,s=i[d.power.main]||i[0],u=i[d.power.backup]||i[0],m=i[d.shock]||i[0];return(0,o.createComponentVNode)(2,a.Window,{width:500,height:390,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{title:"Power Status",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Main",color:s.color,buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"lightbulb-o",disabled:!d.power.main,content:"Disrupt",onClick:function(){return l("disrupt-main")}}),children:[d.power.main?"Online":"Offline"," ",d.wires.main_1&&d.wires.main_2?d.power.main_timeleft>0&&"["+d.power.main_timeleft+"s]":"[Wires have been cut!]"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Backup",color:u.color,buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"lightbulb-o",disabled:!d.power.backup,content:"Disrupt",onClick:function(){return l("disrupt-backup")}}),children:[d.power.backup?"Online":"Offline"," ",d.wires.backup_1&&d.wires.backup_2?d.power.backup_timeleft>0&&"["+d.power.backup_timeleft+"s]":"[Wires have been cut!]"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Electrify",color:m.color,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"wrench",disabled:!(d.wires.shock&&0===d.shock),content:"Restore",onClick:function(){return l("shock-restore")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"bolt",disabled:!d.wires.shock,content:"Temporary",onClick:function(){return l("shock-temp")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"bolt",disabled:!d.wires.shock,content:"Permanent",onClick:function(){return l("shock-perm")}})],4),children:[2===d.shock?"Safe":"Electrified"," ",(d.wires.shock?d.shock_timeleft>0&&"["+d.shock_timeleft+"s]":"[Wires have been cut!]")||-1===d.shock_timeleft&&"[Permanent]"]})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Access and Door Control",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"ID Scan",color:"bad",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:d.id_scanner?"power-off":"times",content:d.id_scanner?"Enabled":"Disabled",selected:d.id_scanner,disabled:!d.wires.id_scanner,onClick:function(){return l("idscan-toggle")}}),children:!d.wires.id_scanner&&"[Wires have been cut!]"}),(0,o.createComponentVNode)(2,c.LabeledList.Divider),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Door Bolts",color:"bad",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:d.locked?"lock":"unlock",content:d.locked?"Lowered":"Raised",selected:d.locked,disabled:!d.wires.bolts,onClick:function(){return l("bolt-toggle")}}),children:!d.wires.bolts&&"[Wires have been cut!]"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Door Bolt Lights",color:"bad",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:d.lights?"power-off":"times",content:d.lights?"Enabled":"Disabled",selected:d.lights,disabled:!d.wires.lights,onClick:function(){return l("light-toggle")}}),children:!d.wires.lights&&"[Wires have been cut!]"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Door Force Sensors",color:"bad",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:d.safe?"power-off":"times",content:d.safe?"Enabled":"Disabled",selected:d.safe,disabled:!d.wires.safe,onClick:function(){return l("safe-toggle")}}),children:!d.wires.safe&&"[Wires have been cut!]"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Door Timing Safety",color:"bad",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:d.speed?"power-off":"times",content:d.speed?"Enabled":"Disabled",selected:d.speed,disabled:!d.wires.timing,onClick:function(){return l("speed-toggle")}}),children:!d.wires.timing&&"[Wires have been cut!]"}),(0,o.createComponentVNode)(2,c.LabeledList.Divider),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Door Control",color:"bad",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:d.opened?"sign-out-alt":"sign-in-alt",content:d.opened?"Open":"Closed",selected:d.opened,disabled:d.locked||d.welded,onClick:function(){return l("open-close")}}),children:!(!d.locked&&!d.welded)&&(0,o.createVNode)(1,"span",null,[(0,o.createTextVNode)("[Door is "),d.locked?"bolted":"",d.locked&&d.welded?" and ":"",d.welded?"welded":"",(0,o.createTextVNode)("!]")],0)})]})})]})})}},33084:function(e,n,t){"use strict";n.__esModule=!0,n.AiRestorerContent=n.AiRestorer=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.AiRestorer=function(){return(0,o.createComponentVNode)(2,a.Window,{width:370,height:360,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,i)})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.AI_present,d=i.error,s=i.name,u=i.laws,m=i.isDead,p=i.restoring,C=i.health,h=i.ejectable;return(0,o.createFragment)([d&&(0,o.createComponentVNode)(2,c.NoticeBox,{textAlign:"center",children:d}),!!h&&(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"eject",content:l?s:"----------",disabled:!l,onClick:function(){return a("PRG_eject")}}),!!l&&(0,o.createComponentVNode)(2,c.Section,{title:h?"System Status":s,buttons:(0,o.createComponentVNode)(2,c.Box,{inline:!0,bold:!0,color:m?"bad":"good",children:m?"Nonfunctional":"Functional"}),children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Integrity",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:C,minValue:0,maxValue:100,ranges:{good:[70,Infinity],average:[50,70],bad:[-Infinity,50]}})})}),!!p&&(0,o.createComponentVNode)(2,c.Box,{bold:!0,textAlign:"center",fontSize:"20px",color:"good",mt:1,children:"RECONSTRUCTION IN PROGRESS"}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"plus",content:"Begin Reconstruction",disabled:p,mt:1,onClick:function(){return a("PRG_beginReconstruction")}}),(0,o.createComponentVNode)(2,c.Section,{title:"Laws",level:2,children:u.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{className:"candystripe",children:e},e)}))})]})],0)};n.AiRestorerContent=i},597:function(e,n,t){"use strict";n.__esModule=!0,n.AiSupermatter=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=(t(58083),t(67861));n.AiSupermatter=function(e,n){var t=(0,r.useBackend)(n).data,c=(t.integrity_percentage,t.ambient_temp,t.ambient_pressure,t.detonating),i=(0,o.createComponentVNode)(2,d);return c&&(i=(0,o.createComponentVNode)(2,l)),(0,o.createComponentVNode)(2,a.Window,{width:500,height:300,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:i})})};var l=function(e,n){return(0,o.createComponentVNode)(2,i.FullscreenNotice,{title:"DETONATION IMMINENT",children:(0,o.createComponentVNode)(2,c.Box,{fontSize:"1.5rem",bold:!0,color:"bad",children:[(0,o.createComponentVNode)(2,c.Icon,{color:"bad",name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"}),(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"CRYSTAL DELAMINATING"}),(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Evacuate area immediately"})]})})},d=function(e,n){var t=(0,r.useBackend)(n).data,a=t.integrity_percentage,i=t.ambient_temp,l=t.ambient_pressure;return(0,o.createComponentVNode)(2,c.Section,{title:"Status",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Crystal Integrity",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:a,maxValue:100,ranges:{good:[90,Infinity],average:[25,90],bad:[-Infinity,25]}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Environment Temperature",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:i,maxValue:1e4,ranges:{bad:[5e3,Infinity],average:[4e3,5e3],good:[-Infinity,4e3]},children:[i," K"]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Environment Pressure",children:[l," kPa"]})]})})}},58444:function(e,n,t){"use strict";n.__esModule=!0,n.AirAlarm=void 0;var o=t(39812),r=t(41860),c=(t(2497),t(71494)),a=t(74814),i=t(76270),l=t(85952),d=t(21451),s=t(71739);n.AirAlarm=function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data),a=r.locked&&!r.siliconUser&&!r.remoteUser;return(0,o.createComponentVNode)(2,l.Window,{width:440,height:650,resizable:!0,children:(0,o.createComponentVNode)(2,l.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,d.InterfaceLockNoticeBox),(0,o.createComponentVNode)(2,u),(0,o.createComponentVNode)(2,m),!a&&(0,o.createComponentVNode)(2,C)]})})};var u=function(e,n){var t=(0,c.useBackend)(n).data,l=(t.environment_data||[]).filter((function(e){return e.value>=.01})),d={0:{color:"good",localStatusText:"Optimal"},1:{color:"average",localStatusText:"Caution"},2:{color:"bad",localStatusText:"Danger (Internals Required)"}},s=d[t.danger_level]||d[0];return(0,o.createComponentVNode)(2,a.Section,{title:"Air Status",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[l.length>0&&(0,o.createFragment)([l.map((function(e){var n=d[e.danger_level]||d[0];return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:(0,i.getGasLabel)(e.name),color:n.color,children:[(0,r.toFixed)(e.value,2),e.unit]},e.name)})),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Local status",color:s.color,children:s.localStatusText}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Area status",color:t.atmos_alarm||t.fire_alarm?"bad":"good",children:(t.atmos_alarm?"Atmosphere Alarm":t.fire_alarm&&"Fire Alarm")||"Nominal"})],0)||(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Warning",color:"bad",children:"Cannot obtain air sample for analysis."}),!!t.emagged&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Warning",color:"bad",children:"Safety measures offline. Device may exhibit abnormal behavior."})]})})},m=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=i.target_temperature,d=i.rcon;return(0,o.createComponentVNode)(2,a.Section,{title:"Comfort Settings",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Remote Control",children:[(0,o.createComponentVNode)(2,a.Button,{selected:1===d,content:"Off",onClick:function(){return r("rcon",{rcon:1})}}),(0,o.createComponentVNode)(2,a.Button,{selected:2===d,content:"Auto",onClick:function(){return r("rcon",{rcon:2})}}),(0,o.createComponentVNode)(2,a.Button,{selected:3===d,content:"On",onClick:function(){return r("rcon",{rcon:3})}})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Thermostat",children:(0,o.createComponentVNode)(2,a.Button,{content:l,onClick:function(){return r("temperature")}})})]})})},p={home:{title:"Air Controls",component:function(){return h}},vents:{title:"Vent Controls",component:function(){return N}},scrubbers:{title:"Scrubber Controls",component:function(){return V}},modes:{title:"Operating Mode",component:function(){return b}},thresholds:{title:"Alarm Thresholds",component:function(){return f}}},C=function(e,n){var t=(0,c.useLocalState)(n,"screen"),r=t[0],i=t[1],l=p[r]||p.home,d=l.component();return(0,o.createComponentVNode)(2,a.Section,{title:l.title,buttons:r&&(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-left",content:"Back",onClick:function(){return i()}}),children:(0,o.createComponentVNode)(2,d)})},h=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=(0,c.useLocalState)(n,"screen"),d=(l[0],l[1]),s=i.mode,u=i.atmos_alarm;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:u?"exclamation-triangle":"exclamation",color:u&&"caution",content:"Area Atmosphere Alarm",onClick:function(){return r(u?"reset":"alarm")}}),(0,o.createComponentVNode)(2,a.Box,{mt:1}),(0,o.createComponentVNode)(2,a.Button,{icon:3===s?"exclamation-triangle":"exclamation",color:3===s&&"danger",content:"Panic Siphon",onClick:function(){return r("mode",{mode:3===s?1:3})}}),(0,o.createComponentVNode)(2,a.Box,{mt:2}),(0,o.createComponentVNode)(2,a.Button,{icon:"sign-out-alt",content:"Vent Controls",onClick:function(){return d("vents")}}),(0,o.createComponentVNode)(2,a.Box,{mt:1}),(0,o.createComponentVNode)(2,a.Button,{icon:"filter",content:"Scrubber Controls",onClick:function(){return d("scrubbers")}}),(0,o.createComponentVNode)(2,a.Box,{mt:1}),(0,o.createComponentVNode)(2,a.Button,{icon:"cog",content:"Operating Mode",onClick:function(){return d("modes")}}),(0,o.createComponentVNode)(2,a.Box,{mt:1}),(0,o.createComponentVNode)(2,a.Button,{icon:"chart-bar",content:"Alarm Thresholds",onClick:function(){return d("thresholds")}})],4)},N=function(e,n){var t=(0,c.useBackend)(n).data.vents;return t&&0!==t.length?t.map((function(e){return(0,o.createComponentVNode)(2,s.Vent,{vent:e},e.id_tag)})):"Nothing to show"},V=function(e,n){var t=(0,c.useBackend)(n).data.scrubbers;return t&&0!==t.length?t.map((function(e){return(0,o.createComponentVNode)(2,s.Scrubber,{scrubber:e},e.id_tag)})):"Nothing to show"},b=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.modes;return i&&0!==i.length?i.map((function(e){return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:e.selected?"check-square-o":"square-o",selected:e.selected,color:e.selected&&e.danger&&"danger",content:e.name,onClick:function(){return r("mode",{mode:e.mode})}}),(0,o.createComponentVNode)(2,a.Box,{mt:1})],4,e.mode)})):"Nothing to show"},f=function(e,n){var t=(0,c.useBackend)(n),l=t.act,d=t.data.thresholds;return(0,o.createVNode)(1,"table","LabeledList",[(0,o.createVNode)(1,"thead",null,(0,o.createVNode)(1,"tr",null,[(0,o.createVNode)(1,"td"),(0,o.createVNode)(1,"td","color-bad","min2",16),(0,o.createVNode)(1,"td","color-average","min1",16),(0,o.createVNode)(1,"td","color-average","max1",16),(0,o.createVNode)(1,"td","color-bad","max2",16)],4),2),(0,o.createVNode)(1,"tbody",null,d.map((function(e){return(0,o.createVNode)(1,"tr",null,[(0,o.createVNode)(1,"td","LabeledList__label",(0,o.createVNode)(1,"span","color-"+(0,i.getGasColor)(e.name),(0,i.getGasLabel)(e.name),0),2),e.settings.map((function(e){return(0,o.createVNode)(1,"td",null,(0,o.createComponentVNode)(2,a.Button,{content:(0,r.toFixed)(e.selected,2),onClick:function(){return l("threshold",{env:e.env,"var":e.val})}}),2,null,e.val)}))],0,null,e.name)})),0)],4,{style:{width:"100%"}})}},24053:function(e,n,t){"use strict";n.__esModule=!0,n.Loader=n.AlertModal=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(85952),l=t(29708);function d(e,n){return(d=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}var s=function(e){var n,t;function r(){var n;return(n=e.call(this)||this).buttonRefs=[(0,o.createRef)()],n.state={current:0},n}t=e,(n=r).prototype=Object.create(t.prototype),n.prototype.constructor=n,d(n,t);var s=r.prototype;return s.componentDidMount=function(){for(var e=(0,c.useBackend)(this.context).data.buttons,n=this.state.current,t=this.buttonRefs[n].current,r=1;r=t.length?e=n?e-1:0:e<0&&(e=n?0:t.length-1);var o=this.buttonRefs[e].current;o&&setTimeout((function(){return o.focus()}),1),this.setState({current:e})},s.render=function(){var e=this,n=(0,c.useBackend)(this.context),t=n.act,r=n.data,d=r.title,s=r.message,m=r.buttons,p=r.timeout,C=this.state.current,h=function(){return e.setCurrent(C,!1)},N=Math.max(150,s.length);return(0,o.createComponentVNode)(2,i.Window,{title:d,theme:"abstract",width:350,height:N,canClose:p>0,children:[p&&(0,o.createComponentVNode)(2,u,{value:p}),(0,o.createComponentVNode)(2,i.Window.Content,{onFocus:h,onClick:h,children:(0,o.createComponentVNode)(2,a.Section,{fill:!0,children:(0,o.createComponentVNode)(2,a.Flex,{direction:"column",height:"100%",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Flex,{direction:"column",className:"AlertModal__Message",height:"100%",children:(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Box,{m:1,children:s})})})}),(0,o.createComponentVNode)(2,a.Flex.Item,{my:2,children:(0,o.createComponentVNode)(2,a.Flex,{className:"AlertModal__Buttons",wrap:!0,children:m.map((function(n,r){return(0,o.createComponentVNode)(2,a.Flex.Item,{mx:1,my:.5,children:(0,o.createVNode)(1,"div","Button Button--color--default",n,0,{px:3,onClick:function(){return t("choose",{choice:n})},onKeyDown:function(o){var r=window.event?o.which:o.keyCode;r===l.KEY_SPACE||r===l.KEY_ENTER?t("choose",{choice:n}):r===l.KEY_LEFT||o.shiftKey&&r===l.KEY_TAB?e.setCurrent(C-1,r===l.KEY_LEFT):r!==l.KEY_RIGHT&&r!==l.KEY_TAB||e.setCurrent(C+1,r===l.KEY_RIGHT)}},null,e.buttonRefs[r])},r)}))})})]})})})]})},r}(o.Component);n.AlertModal=s;var u=function(e){var n=e.value;return(0,o.createVNode)(1,"div","AlertModal__Loader",(0,o.createComponentVNode)(2,a.Box,{className:"AlertModal__LoaderProgress",style:{width:100*(0,r.clamp01)(n)+"%"}}),2)};n.Loader=u},34847:function(e,n,t){"use strict";n.__esModule=!0,n.AlgaeFarm=void 0;var o=t(39812),r=t(71494),c=t(74814),a=(t(58083),t(85952)),i=(t(41860),t(2497));n.AlgaeFarm=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data,s=d.usePower,u=d.materials,m=d.last_flow_rate,p=d.last_power_draw,C=d.inputDir,h=d.outputDir,N=d.input,V=d.output,b=d.errorText;return(0,o.createComponentVNode)(2,a.Window,{width:500,height:300,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[b&&(0,o.createComponentVNode)(2,c.NoticeBox,{warning:!0,children:(0,o.createComponentVNode)(2,c.Box,{display:"inline-block",verticalAlign:"middle",children:b})}),(0,o.createComponentVNode)(2,c.Section,{title:"Status",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",content:"Processing",selected:2===s,onClick:function(){return l("toggle")}}),children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Flow Rate",children:[m," L/s"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power Draw",children:[p," W"]}),(0,o.createComponentVNode)(2,c.LabeledList.Divider,{size:1}),u.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:(0,i.capitalize)(e.display),children:[(0,o.createComponentVNode)(2,c.ProgressBar,{width:"80%",value:e.qty,maxValue:e.max,children:[e.qty,"/",e.max]}),(0,o.createComponentVNode)(2,c.Button,{ml:1,content:"Eject",onClick:function(){return l("ejectMaterial",{mat:e.name})}})]},e.name)}))]}),(0,o.createComponentVNode)(2,c.Table,{mt:1,children:(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Section,{title:"Gas Input ("+C+")",children:N?(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Total Pressure",children:[N.pressure," kPa"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:N.name,children:[N.percent,"% (",N.moles," moles)"]})]}):(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No connection detected."})})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Section,{title:"Gas Output ("+h+")",children:V?(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Total Pressure",children:[V.pressure," kPa"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:V.name,children:[V.percent,"% (",V.moles," moles)"]})]}):(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No connection detected."})})})]})})]})]})})}},65145:function(e,n,t){"use strict";n.__esModule=!0,n.AppearanceChanger=void 0;var o=t(39812),r=t(64499),c=t(2497),a=t(71494),i=t(74814),l=t(85952);n.AppearanceChanger=function(e,n){var t=(0,a.useBackend)(n),r=(t.act,t.config),V=t.data,b=V.name,f=V.specimen,g=V.gender,k=V.gender_id,v=V.hair_style,B=V.facial_hair_style,L=V.ear_style,_=V.tail_style,x=V.wing_style,w=V.change_race,S=V.change_gender,I=V.change_eye_color,y=V.change_skin_tone,T=V.change_skin_color,A=V.change_hair_color,P=V.change_facial_hair_color,M=V.change_hair,F=V.change_facial_hair,D=V.mapRef,R=r.title,E=I||y||T||A||P,O=-1;w?O=0:S?O=1:E?O=2:M?O=4:F&&(O=5);var j=(0,a.useLocalState)(n,"tabIndex",O),W=j[0],z=j[1];return(0,o.createComponentVNode)(2,l.Window,{width:700,height:650,title:(0,c.decodeHtmlEntities)(R),children:(0,o.createComponentVNode)(2,l.Window.Content,{children:[(0,o.createComponentVNode)(2,i.Section,{title:"Reflection",children:(0,o.createComponentVNode)(2,i.Flex,{children:[(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Name",children:b}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Species",color:w?null:"grey",children:f}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Biological Sex",color:S?null:"grey",children:g?(0,c.capitalize)(g):"Not Set"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Gender Identity",color:E?null:"grey",children:k?(0,c.capitalize)(k):"Not Set"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Hair Style",color:M?null:"grey",children:v?(0,c.capitalize)(v):"Not Set"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Facial Hair Style",color:F?null:"grey",children:B?(0,c.capitalize)(B):"Not Set"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Ear Style",color:M?null:"grey",children:L?(0,c.capitalize)(L):"Not Set"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Tail Style",color:M?null:"grey",children:_?(0,c.capitalize)(_):"Not Set"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Wing Style",color:M?null:"grey",children:x?(0,c.capitalize)(x):"Not Set"})]})}),(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.ByondUi,{style:{width:"256px",height:"256px"},params:{id:D,type:"map"}})})]})}),(0,o.createComponentVNode)(2,i.Tabs,{children:[w?(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:0===W,onClick:function(){return z(0)},children:"Race"}):null,S?(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:1===W,onClick:function(){return z(1)},children:"Gender & Sex"}):null,E?(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:2===W,onClick:function(){return z(2)},children:"Colors"}):null,M?(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:3===W,onClick:function(){return z(3)},children:"Hair"}),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:5===W,onClick:function(){return z(5)},children:"Ear"}),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:6===W,onClick:function(){return z(6)},children:"Tail"}),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:7===W,onClick:function(){return z(7)},children:"Wing"})],4):null,F?(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:4===W,onClick:function(){return z(4)},children:"Facial Hair"}):null]}),(0,o.createComponentVNode)(2,i.Box,{height:"43%",children:[w&&0===W?(0,o.createComponentVNode)(2,d):null,S&&1===W?(0,o.createComponentVNode)(2,s):null,E&&2===W?(0,o.createComponentVNode)(2,u):null,M&&3===W?(0,o.createComponentVNode)(2,m):null,F&&4===W?(0,o.createComponentVNode)(2,p):null,M&&5===W?(0,o.createComponentVNode)(2,C):null,M&&6===W?(0,o.createComponentVNode)(2,h):null,M&&7===W?(0,o.createComponentVNode)(2,N):null]})]})})};var d=function(e,n){var t=(0,a.useBackend)(n),c=t.act,l=t.data,d=l.species,s=l.specimen,u=(0,r.sortBy)((function(e){return e.specimen}))(d||[]);return(0,o.createComponentVNode)(2,i.Section,{title:"Species",fill:!0,scrollable:!0,children:u.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{content:e.specimen,selected:s===e.specimen,onClick:function(){return c("race",{race:e.specimen})}},e.specimen)}))})},s=function(e,n){var t=(0,a.useBackend)(n),r=t.act,c=t.data,l=c.gender,d=c.gender_id,s=c.genders,u=c.id_genders;return(0,o.createComponentVNode)(2,i.Section,{title:"Gender & Sex",fill:!0,scrollable:!0,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Biological Sex",children:s.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{selected:e.gender_key===l,content:e.gender_name,onClick:function(){return r("gender",{gender:e.gender_key})}},e.gender_key)}))}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Gender Identity",children:u.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{selected:e.gender_key===d,content:e.gender_name,onClick:function(){return r("gender_id",{gender_id:e.gender_key})}},e.gender_key)}))})]})})},u=function(e,n){var t=(0,a.useBackend)(n),r=t.act,c=t.data,l=c.change_eye_color,d=c.change_skin_tone,s=c.change_skin_color,u=c.change_hair_color,m=c.change_facial_hair_color,p=c.eye_color,C=c.skin_color,h=c.hair_color,N=c.facial_hair_color,V=c.ears_color,b=c.ears2_color,f=c.tail_color,g=c.tail2_color,k=c.wing_color,v=c.wing2_color;return(0,o.createComponentVNode)(2,i.Section,{title:"Colors",fill:!0,scrollable:!0,children:[l?(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.ColorBox,{color:p,mr:1}),(0,o.createComponentVNode)(2,i.Button,{content:"Change Eye Color",onClick:function(){return r("eye_color")}})]}):null,d?(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Button,{content:"Change Skin Tone",onClick:function(){return r("skin_tone")}})}):null,s?(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.ColorBox,{color:C,mr:1}),(0,o.createComponentVNode)(2,i.Button,{content:"Change Skin Color",onClick:function(){return r("skin_color")}})]}):null,u?(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.ColorBox,{color:h,mr:1}),(0,o.createComponentVNode)(2,i.Button,{content:"Change Hair Color",onClick:function(){return r("hair_color")}})]}),(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.ColorBox,{color:V,mr:1}),(0,o.createComponentVNode)(2,i.Button,{content:"Change Ears Color",onClick:function(){return r("ears_color")}})]}),(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.ColorBox,{color:b,mr:1}),(0,o.createComponentVNode)(2,i.Button,{content:"Change Secondary Ears Color",onClick:function(){return r("ears2_color")}})]}),(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.ColorBox,{color:f,mr:1}),(0,o.createComponentVNode)(2,i.Button,{content:"Change Tail Color",onClick:function(){return r("tail_color")}})]}),(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.ColorBox,{color:g,mr:1}),(0,o.createComponentVNode)(2,i.Button,{content:"Change Secondary Tail Color",onClick:function(){return r("tail2_color")}})]}),(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.ColorBox,{color:k,mr:1}),(0,o.createComponentVNode)(2,i.Button,{content:"Change Wing Color",onClick:function(){return r("wing_color")}})]}),(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.ColorBox,{color:v,mr:1}),(0,o.createComponentVNode)(2,i.Button,{content:"Change Secondary Wing Color",onClick:function(){return r("wing2_color")}})]})],4):null,m?(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.ColorBox,{color:N,mr:1}),(0,o.createComponentVNode)(2,i.Button,{content:"Change Facial Hair Color",onClick:function(){return r("facial_hair_color")}})]}):null]})},m=function(e,n){var t=(0,a.useBackend)(n),r=t.act,c=t.data,l=c.hair_style,d=c.hair_styles;return(0,o.createComponentVNode)(2,i.Section,{title:"Hair",fill:!0,scrollable:!0,children:d.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{onClick:function(){return r("hair",{hair:e.hairstyle})},selected:e.hairstyle===l,content:e.hairstyle},e.hairstyle)}))})},p=function(e,n){var t=(0,a.useBackend)(n),r=t.act,c=t.data,l=c.facial_hair_style,d=c.facial_hair_styles;return(0,o.createComponentVNode)(2,i.Section,{title:"Facial Hair",fill:!0,scrollable:!0,children:d.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{onClick:function(){return r("facial_hair",{facial_hair:e.facialhairstyle})},selected:e.facialhairstyle===l,content:e.facialhairstyle},e.facialhairstyle)}))})},C=function(e,n){var t=(0,a.useBackend)(n),c=t.act,l=t.data,d=l.ear_style,s=l.ear_styles;return(0,o.createComponentVNode)(2,i.Section,{title:"Ears",fill:!0,scrollable:!0,children:[(0,o.createComponentVNode)(2,i.Button,{onClick:function(){return c("ear",{clear:!0})},selected:null===d,content:"-- Not Set --"}),(0,r.sortBy)((function(e){return e.name.toLowerCase()}))(s).map((function(e){return(0,o.createComponentVNode)(2,i.Button,{onClick:function(){return c("ear",{ref:e.instance})},selected:e.name===d,content:e.name},e.instance)}))]})},h=function(e,n){var t=(0,a.useBackend)(n),c=t.act,l=t.data,d=l.tail_style,s=l.tail_styles;return(0,o.createComponentVNode)(2,i.Section,{title:"Tails",fill:!0,scrollable:!0,children:[(0,o.createComponentVNode)(2,i.Button,{onClick:function(){return c("tail",{clear:!0})},selected:null===d,content:"-- Not Set --"}),(0,r.sortBy)((function(e){return e.name.toLowerCase()}))(s).map((function(e){return(0,o.createComponentVNode)(2,i.Button,{onClick:function(){return c("tail",{ref:e.instance})},selected:e.name===d,content:e.name},e.instance)}))]})},N=function(e,n){var t=(0,a.useBackend)(n),c=t.act,l=t.data,d=l.wing_style,s=l.wing_styles;return(0,o.createComponentVNode)(2,i.Section,{title:"Wings",fill:!0,scrollable:!0,children:[(0,o.createComponentVNode)(2,i.Button,{onClick:function(){return c("wing",{clear:!0})},selected:null===d,content:"-- Not Set --"}),(0,r.sortBy)((function(e){return e.name.toLowerCase()}))(s).map((function(e){return(0,o.createComponentVNode)(2,i.Button,{onClick:function(){return c("wing",{ref:e.instance})},selected:e.name===d,content:e.name},e.instance)}))]})}},86776:function(e,n,t){"use strict";n.__esModule=!0,n.ArcadeBattle=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.ArcadeBattle=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=(l.name,l.temp),s=l.enemyAction,u=l.enemyName,m=l.playerHP,p=l.playerMP,C=l.enemyHP,h=(l.enemyMP,l.gameOver);return(0,o.createComponentVNode)(2,a.Window,{width:400,height:240,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{title:u,textAlign:"center",children:[(0,o.createComponentVNode)(2,c.Section,{color:"label",children:[(0,o.createComponentVNode)(2,c.Box,{children:d}),(0,o.createComponentVNode)(2,c.Box,{children:!h&&s})]}),(0,o.createComponentVNode)(2,c.Flex,{spacing:1,children:[(0,o.createComponentVNode)(2,c.Flex.Item,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Player Health",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:m,minValue:0,maxValue:30,ranges:{olive:[31,Infinity],good:[20,31],average:[10,20],bad:[-Infinity,10]},children:[m,"HP"]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Player Magic",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:p,minValue:0,maxValue:10,ranges:{purple:[11,Infinity],violet:[3,11],bad:[-Infinity,3]},children:[p,"MP"]})})]})}),(0,o.createComponentVNode)(2,c.Flex.Item,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Enemy HP",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:C,minValue:0,maxValue:45,ranges:{olive:[31,Infinity],good:[20,31],average:[10,20],bad:[-Infinity,10]},children:[C,"HP"]})})})})]}),h&&(0,o.createComponentVNode)(2,c.Button,{fluid:!0,mt:1,color:"green",content:"New Game",onClick:function(){return i("newgame")}})||(0,o.createComponentVNode)(2,c.Flex,{mt:2,justify:"space-between",spacing:1,children:[(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"fist-raised",tooltip:"Go in for the kill!",tooltipPosition:"top",onClick:function(){return i("attack")},content:"Attack!"})}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"band-aid",tooltip:"Heal yourself!",tooltipPosition:"top",onClick:function(){return i("heal")},content:"Heal!"})}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"magic",tooltip:"Recharge your magic!",tooltipPosition:"top",onClick:function(){return i("charge")},content:"Recharge!"})})]})]})})})}},13496:function(e,n,t){"use strict";n.__esModule=!0,n.AreaScrubberControl=void 0;var o=t(39812),r=t(74814),c=t(71494),a=t(85952),i=t(2497);n.AreaScrubberControl=function(e,n){var t=(0,c.useBackend)(n),i=t.act,d=t.data,s=(0,c.useLocalState)(n,"showArea",!1),u=s[0],m=s[1],p=d.scrubbers;return p?(0,o.createComponentVNode)(2,a.Window,{width:600,height:400,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,r.Section,{children:[(0,o.createComponentVNode)(2,r.Flex,{wrap:"wrap",children:[(0,o.createComponentVNode)(2,r.Flex.Item,{m:"2px",basis:"49%",children:(0,o.createComponentVNode)(2,r.Button,{textAlign:"center",fluid:!0,icon:"search",content:"Scan",onClick:function(){return i("scan")}})}),(0,o.createComponentVNode)(2,r.Flex.Item,{m:"2px",basis:"49%",grow:1,children:(0,o.createComponentVNode)(2,r.Button,{textAlign:"center",fluid:!0,icon:"layer-group",content:"Show Areas",selected:u,onClick:function(){return m(!u)}})}),(0,o.createComponentVNode)(2,r.Flex.Item,{m:"2px",basis:"49%",children:(0,o.createComponentVNode)(2,r.Button,{textAlign:"center",fluid:!0,icon:"toggle-on",content:"All On",onClick:function(){return i("allon")}})}),(0,o.createComponentVNode)(2,r.Flex.Item,{m:"2px",basis:"49%",grow:1,children:(0,o.createComponentVNode)(2,r.Button,{textAlign:"center",fluid:!0,icon:"toggle-off",content:"All Off",onClick:function(){return i("alloff")}})})]}),(0,o.createComponentVNode)(2,r.Flex,{wrap:"wrap",children:p.map((function(e){return(0,o.createComponentVNode)(2,r.Flex.Item,{m:"2px",basis:"32%",children:(0,o.createComponentVNode)(2,l,{scrubber:e,showArea:u})},e.id)}))})]})})}):(0,o.createComponentVNode)(2,r.Section,{title:"Error",children:[(0,o.createComponentVNode)(2,r.Box,{color:"bad",children:"No Scrubbers Detected."}),(0,o.createComponentVNode)(2,r.Button,{fluid:!0,icon:"search",content:"Scan",onClick:function(){return i("scan")}})]})};var l=function(e,n){var t=(0,c.useBackend)(n).act,a=e.scrubber,l=e.showArea;return(0,o.createComponentVNode)(2,r.Section,{title:a.name,children:[(0,o.createComponentVNode)(2,r.Button,{fluid:!0,icon:"power-off",content:a.on?"Enabled":"Disabled",selected:a.on,onClick:function(){return t("toggle",{id:a.id})}}),(0,o.createComponentVNode)(2,r.LabeledList,{children:[(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Pressure",children:[a.pressure," kPa"]}),(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Flow Rate",children:[a.flow_rate," L/s"]}),(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Load",children:[a.load," W"]}),l&&(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Area",children:(0,i.toTitleCase)(a.area)})]})]})}},56404:function(e,n,t){"use strict";n.__esModule=!0,n.AssemblyInfrared=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.AssemblyInfrared=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.on,s=l.visible;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{title:"Infrared Unit",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Laser",children:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",fluid:!0,selected:d,onClick:function(){return i("state")},children:d?"On":"Off"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Visibility",children:(0,o.createComponentVNode)(2,c.Button,{icon:"eye",fluid:!0,selected:s,onClick:function(){return i("visible")},children:s?"Able to be seen":"Invisible"})})]})})})})}},29632:function(e,n,t){"use strict";n.__esModule=!0,n.AssemblyProx=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(85952),l=t(58083);n.AssemblyProx=function(e,n){var t=(0,c.useBackend)(n),d=t.act,s=t.data,u=s.timing,m=s.time,p=s.range,C=s.maxRange,h=s.scanning;return(0,o.createComponentVNode)(2,i.Window,{children:(0,o.createComponentVNode)(2,i.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Section,{title:"Timing Unit",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Timer",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"stopwatch",selected:u,onClick:function(){return d("timing")},children:u?"Counting Down":"Disabled"}),children:(0,o.createComponentVNode)(2,a.NumberInput,{animated:!0,fluid:!0,value:m/10,minValue:0,maxValue:600,format:function(e){return(0,l.formatTime)((0,r.round)(e))},onDrag:function(e,n){return d("set_time",{time:n})}})})})}),(0,o.createComponentVNode)(2,a.Section,{title:"Prox Unit",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Range",children:(0,o.createComponentVNode)(2,a.NumberInput,{minValue:1,value:p,maxValue:C,onDrag:function(e,n){return d("range",{range:n})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Armed",children:[(0,o.createComponentVNode)(2,a.Button,{mr:1,icon:h?"lock":"lock-open",selected:h,onClick:function(){return d("scanning")},children:h?"ARMED":"Unarmed"}),"Movement sensor is active when armed!"]})]})})]})})}},48661:function(e,n,t){"use strict";n.__esModule=!0,n.AssemblyTimer=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(85952),l=t(58083);n.AssemblyTimer=function(e,n){var t=(0,c.useBackend)(n),d=t.act,s=t.data,u=s.timing,m=s.time;return(0,o.createComponentVNode)(2,i.Window,{children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{title:"Timing Unit",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Timer",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"stopwatch",selected:u,onClick:function(){return d("timing")},children:u?"Counting Down":"Disabled"}),children:(0,o.createComponentVNode)(2,a.NumberInput,{animated:!0,fluid:!0,value:m/10,minValue:0,maxValue:600,format:function(e){return(0,l.formatTime)((0,r.round)(e))},onDrag:function(e,n){return d("set_time",{time:n})}})})})})})})}},38531:function(e,n,t){"use strict";n.__esModule=!0,n.AtmosAlertConsole=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.AtmosAlertConsole=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.priority_alarms||[],s=l.minor_alarms||[];return(0,o.createComponentVNode)(2,a.Window,{width:350,height:300,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,c.Section,{title:"Alarms",children:(0,o.createVNode)(1,"ul",null,[0===d.length&&(0,o.createVNode)(1,"li","color-good","No Priority Alerts",16),d.map((function(e){return(0,o.createVNode)(1,"li",null,(0,o.createComponentVNode)(2,c.Button,{icon:"times",content:e.name,color:"bad",onClick:function(){return i("clear",{ref:e.ref})}}),2,null,e.name)})),0===s.length&&(0,o.createVNode)(1,"li","color-good","No Minor Alerts",16),s.map((function(e){return(0,o.createVNode)(1,"li",null,(0,o.createComponentVNode)(2,c.Button,{icon:"times",content:e.name,color:"average",onClick:function(){return i("clear",{ref:e.ref})}}),2,null,e.name)}))],0)})})})}},46566:function(e,n,t){"use strict";n.__esModule=!0,n.AtmosControlContent=n.AtmosControl=void 0;var o=t(39812),r=t(64499),c=t(85952),a=t(74814),i=t(71494);(0,t(88654).createLogger)("fuck");n.AtmosControl=function(e,n){return(0,o.createComponentVNode)(2,c.Window,{width:600,height:440,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,l)})})};var l=function(e,n){var t,c=(0,i.useBackend)(n),l=c.act,d=c.data,s=c.config,u=(0,r.sortBy)((function(e){return e.name}))(d.alarms||[]),m=(0,i.useLocalState)(n,"tabIndex",0),p=m[0],C=m[1],h=(0,i.useLocalState)(n,"zoom",1),N=h[0],V=h[1];return 0===p?t=(0,o.createComponentVNode)(2,a.Section,{title:"Alarms",children:u.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{content:e.name,color:2===e.danger?"bad":1===e.danger?"average":"",onClick:function(){return l("alarm",{alarm:e.ref})}},e.name)}))}):1===p&&(t=(0,o.createComponentVNode)(2,a.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,o.createComponentVNode)(2,a.NanoMap,{onZoom:function(e){return V(e)},children:u.filter((function(e){return~~e.z==~~s.mapZLevel})).map((function(e){return(0,o.createComponentVNode)(2,a.NanoMap.Marker,{x:e.x,y:e.y,zoom:N,icon:"bell",tooltip:e.name,color:e.danger?"red":"green",onClick:function(){return l("alarm",{alarm:e.ref})}},e.ref)}))})})),(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Tabs,{children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:0===p,onClick:function(){return C(0)},children:[(0,o.createComponentVNode)(2,a.Icon,{name:"table"})," Alarm View"]},"AlarmView"),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:1===p,onClick:function(){return C(1)},children:[(0,o.createComponentVNode)(2,a.Icon,{name:"map-marked-alt"})," Map View"]},"MapView")]}),(0,o.createComponentVNode)(2,a.Box,{m:2,children:t})],4)};n.AtmosControlContent=l},2726:function(e,n,t){"use strict";n.__esModule=!0,n.AtmosFilter=void 0;var o=t(39812),r=t(71494),c=t(74814),a=(t(76270),t(85952));n.AtmosFilter=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.filter_types||[];return(0,o.createComponentVNode)(2,a.Window,{width:390,height:187,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power",children:(0,o.createComponentVNode)(2,c.Button,{icon:l.on?"power-off":"times",content:l.on?"On":"Off",selected:l.on,onClick:function(){return i("power")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Transfer Rate",children:[(0,o.createComponentVNode)(2,c.Box,{inline:!0,mr:1,children:(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:l.last_flow_rate,format:function(e){return e+" L/s"}})}),(0,o.createComponentVNode)(2,c.NumberInput,{animated:!0,value:parseFloat(l.rate),width:"63px",unit:"L/s",minValue:0,maxValue:200,onDrag:function(e,n){return i("rate",{rate:n})}}),(0,o.createComponentVNode)(2,c.Button,{ml:1,icon:"plus",content:"Max",disabled:l.rate===l.max_rate,onClick:function(){return i("rate",{rate:"max"})}})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Filter",children:d.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{selected:e.selected,content:e.name,onClick:function(){return i("filter",{filterset:e.f_type})}},e.name)}))})]})})})})}},61505:function(e,n,t){"use strict";n.__esModule=!0,n.AtmosMixer=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.AtmosMixer=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data;return(0,o.createComponentVNode)(2,a.Window,{width:370,height:195,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power",children:(0,o.createComponentVNode)(2,c.Button,{icon:l.on?"power-off":"times",content:l.on?"On":"Off",selected:l.on,onClick:function(){return i("power")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Output Pressure",children:[(0,o.createComponentVNode)(2,c.NumberInput,{animated:!0,value:parseFloat(l.set_pressure),unit:"kPa",width:"75px",minValue:0,maxValue:l.max_pressure,step:10,onChange:function(e,n){return i("pressure",{pressure:n})}}),(0,o.createComponentVNode)(2,c.Button,{ml:1,icon:"plus",content:"Max",disabled:l.set_pressure===l.max_pressure,onClick:function(){return i("pressure",{pressure:"max"})}})]}),(0,o.createComponentVNode)(2,c.LabeledList.Divider,{size:1}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{color:"label",children:(0,o.createVNode)(1,"u",null,"Concentrations",16)}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Node 1 ("+l.node1_dir+")",children:(0,o.createComponentVNode)(2,c.NumberInput,{animated:!0,value:l.node1_concentration,unit:"%",width:"60px",minValue:0,maxValue:100,stepPixelSize:2,onDrag:function(e,n){return i("node1",{concentration:n})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Node 2 ("+l.node2_dir+")",children:(0,o.createComponentVNode)(2,c.NumberInput,{animated:!0,value:l.node2_concentration,unit:"%",width:"60px",minValue:0,maxValue:100,stepPixelSize:2,onDrag:function(e,n){return i("node2",{concentration:n})}})})]})})})})}},99994:function(e,n,t){"use strict";n.__esModule=!0,n.Autolathe=void 0;var o=t(39812),r=(t(41860),t(85531)),c=t(64499),a=t(71494),i=t(74814),l=t(85952),d=t(95481),s=t(2497),u=function(e,n,t){if(void 0===t&&(t=1),null===e.requirements)return!0;for(var o=Object.keys(e.requirements),r=function(){var o=a[c],r=n.find((function(e){return e.name===o}));return r?r.amount=e[1].price/d.build_eff,e[1]})).sort(l[N]);if(0!==t.length)return b&&(t=t.reverse()),g=!0,(0,o.createComponentVNode)(2,m,{title:e[0],items:t},e[0])}));return(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",overflow:"auto",children:(0,o.createComponentVNode)(2,a.Section,{onClick:function(e){return(0,i.refocusLayout)()},children:g?k:(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"No items matching your criteria was found!"})})})},s=function(e,n){var t=(0,c.useLocalState)(n,"search",""),r=(t[0],t[1]),i=(0,c.useLocalState)(n,"sort",""),d=(i[0],i[1]),s=(0,c.useLocalState)(n,"descending",!1),u=s[0],m=s[1];return(0,o.createComponentVNode)(2,a.Box,{mb:"0.5rem",children:(0,o.createComponentVNode)(2,a.Flex,{width:"100%",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",mr:"0.5rem",children:(0,o.createComponentVNode)(2,a.Input,{placeholder:"Search by item name..",width:"100%",onInput:function(e,n){return r(n)}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"30%",children:(0,o.createComponentVNode)(2,a.Dropdown,{selected:"Alphabetical",options:Object.keys(l),width:"100%",lineHeight:"19px",onSelected:function(e){return d(e)}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Button,{icon:u?"arrow-down":"arrow-up",height:"19px",tooltip:u?"Descending order":"Ascending order",tooltipPosition:"bottom-end",ml:"0.5rem",onClick:function(){return m(!u)}})})]})})},u=function(e,n){return!!e.affordable&&!(e.reagent&&!n.beaker)},m=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=e.title,d=e.items,s=function(e,n){if(null==e)return{};var t,o,r={},c=Object.keys(e);for(o=0;o=0||(r[t]=e[t]);return r}(e,["title","items"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Collapsible,Object.assign({open:!0,title:l},s,{children:d.map((function(e){return(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Box,{display:"inline-block",verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:e.name}),(0,o.createComponentVNode)(2,a.Button,{disabled:!u(e,i),content:(e.price/i.build_eff).toLocaleString("en-US"),width:"15%",textAlign:"center",style:{float:"right"},onClick:function(){return r("purchase",{cat:l,name:e.name})}}),(0,o.createComponentVNode)(2,a.Box,{style:{clear:"both"}})]},e.name)}))})))}},81850:function(e,n,t){"use strict";n.__esModule=!0,n.BodyDesigner=void 0;var o=t(39812),r=t(2497),c=t(71494),a=t(74814),i=t(85952);n.BodyDesigner=function(e,n){var t=(0,c.useBackend)(n),r=t.act,d=t.data,s=d.menu,u=d.disk,m=d.diskStored,p=d.activeBodyRecord,C=l[s];return(0,o.createComponentVNode)(2,i.Window,{width:400,height:650,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:[u?(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Button,{icon:"save",content:"Save To Disk",onClick:function(){return r("savetodisk")},disabled:!p}),(0,o.createComponentVNode)(2,a.Button,{icon:"save",content:"Load From Disk",onClick:function(){return r("loadfromdisk")},disabled:!m}),(0,o.createComponentVNode)(2,a.Button,{icon:"eject",content:"Eject",onClick:function(){return r("ejectdisk")}})]}):null,C]})})};var l={Main:(0,o.createComponentVNode)(2,(function(e,n){var t=(0,c.useBackend)(n),r=t.act;t.data;return(0,o.createComponentVNode)(2,a.Section,{title:"Database Functions",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"eye",content:"View Individual Body Records",onClick:function(){return r("menu",{menu:"Body Records"})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"eye",content:"View Stock Body Records",onClick:function(){return r("menu",{menu:"Stock Records"})}})]})})),"Body Records":(0,o.createComponentVNode)(2,(function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.bodyrecords;return(0,o.createComponentVNode)(2,a.Section,{title:"Body Records",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-left",content:"Back",onClick:function(){return r("menu",{menu:"Main"})}}),children:i.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{icon:"eye",content:e.name,onClick:function(){return r("view_brec",{view_brec:e.recref})}},e.name)}))})})),"Stock Records":(0,o.createComponentVNode)(2,(function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.stock_bodyrecords;return(0,o.createComponentVNode)(2,a.Section,{title:"Stock Records",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-left",content:"Back",onClick:function(){return r("menu",{menu:"Main"})}}),children:i.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{icon:"eye",content:e,onClick:function(){return r("view_stock_brec",{view_stock_brec:e})}},e)}))})})),"Specific Record":(0,o.createComponentVNode)(2,(function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data,d=l.activeBodyRecord,s=l.mapRef;return d?(0,o.createComponentVNode)(2,a.Flex,{direction:"column",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"165px",children:(0,o.createComponentVNode)(2,a.Section,{title:"Specific Record",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-left",content:"Back",onClick:function(){return i("menu",{menu:"Main"})}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:d.real_name}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Species",children:d.speciesname}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Bio. Sex",children:(0,o.createComponentVNode)(2,a.Button,{icon:"pen",content:(0,r.capitalize)(d.gender),onClick:function(){return i("href_conversion",{target_href:"bio_gender",target_value:1})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Synthetic",children:d.synthetic}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Mind Compat",children:[d.locked,(0,o.createComponentVNode)(2,a.Button,{ml:1,icon:"eye",content:"View OOC Notes",disabled:!d.booc,onClick:function(){return i("boocnotes")}})]})]})})}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"130px",children:(0,o.createComponentVNode)(2,a.ByondUi,{style:{width:"100%",height:"128px"},params:{id:s,type:"map"}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"300px",children:(0,o.createComponentVNode)(2,a.Section,{title:"Customize",height:"300px",style:{overflow:"auto"},children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Scale",children:(0,o.createComponentVNode)(2,a.Button,{icon:"pen",content:d.scale,onClick:function(){return i("href_conversion",{target_href:"size_multiplier",target_value:1})}})}),Object.keys(d.styles).map((function(e){var n=d.styles[e];return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e,children:[n.styleHref?(0,o.createComponentVNode)(2,a.Button,{icon:"pen",content:n.style,onClick:function(){return i("href_conversion",{target_href:n.styleHref,target_value:1})}}):null,n.colorHref?(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Button,{icon:"pen",content:n.color,onClick:function(){return i("href_conversion",{target_href:n.colorHref,target_value:1})}}),(0,o.createComponentVNode)(2,a.ColorBox,{verticalAlign:"top",width:"32px",height:"20px",color:n.color,style:{border:"1px solid #fff"}})]}):null,n.colorHref2?(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Button,{icon:"pen",content:n.color2,onClick:function(){return i("href_conversion",{target_href:n.colorHref2,target_value:1})}}),(0,o.createComponentVNode)(2,a.ColorBox,{verticalAlign:"top",width:"32px",height:"20px",color:n.color2,style:{border:"1px solid #fff"}})]}):null]},e)})),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Body Markings",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"plus",content:"Add Marking",onClick:function(){return i("href_conversion",{target_href:"marking_style",target_value:1})}}),(0,o.createComponentVNode)(2,a.Flex,{wrap:"wrap",justify:"center",align:"center",children:Object.keys(d.markings).map((function(e){var n=d.markings[e];return(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"100%",children:(0,o.createComponentVNode)(2,a.Flex,{children:[(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Button,{mr:.2,fluid:!0,icon:"times",color:"red",onClick:function(){return i("href_conversion",{target_href:"marking_remove",target_value:e})}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,backgroundColor:n,content:e,onClick:function(){return i("href_conversion",{target_href:"marking_color",target_value:e})}})})]})},e)}))})]})]})})})]}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"ERROR: Record Not Found!"})})),"OOC Notes":(0,o.createComponentVNode)(2,(function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.activeBodyRecord;return(0,o.createComponentVNode)(2,a.Section,{title:"Body OOC Notes (This is OOC!)",height:"100%",scrollable:!0,buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-left",content:"Back",onClick:function(){return r("menu",{menu:"Specific Record"})}}),style:{"word-break":"break-all"},children:i&&i.booc||"ERROR: Body record not found!"})}))}},6060:function(e,n,t){"use strict";n.__esModule=!0,n.BodyScanner=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(85952),l=[["good","Alive"],["average","Unconscious"],["bad","DEAD"]],d=[["hasBorer","bad",function(e){return"Large growth detected in frontal lobe, possibly cancerous. Surgical removal is recommended."}],["hasVirus","bad",function(e){return"Viral pathogen detected in blood stream."}],["blind","average",function(e){return"Cataracts detected."}],["colourblind","average",function(e){return"Photoreceptor abnormalities detected."}],["nearsighted","average",function(e){return"Retinal misalignment detected."}],["humanPrey","average",function(e){return"Foreign Humanoid(s) detected: "+e.humanPrey}],["livingPrey","average",function(e){return"Foreign Creature(s) detected: "+e.livingPrey}],["objectPrey","average",function(e){return"Foreign Object(s) detected: "+e.objectPrey}]],s=[["Respiratory","oxyLoss"],["Brain","brainLoss"],["Toxin","toxLoss"],["Radiation","radLoss"],["Brute","bruteLoss"],["Genetic","cloneLoss"],["Burn","fireLoss"],["Paralysis","paralysis"]],u={average:[.25,.5],bad:[.5,Infinity]},m=function(e,n){for(var t=[],o=0;o0?e.reduce((function(e,n){return null===e?n:(0,o.createFragment)([e,!!n&&(0,o.createComponentVNode)(2,a.Box,{children:n})],0)})):null},C=function(e){if(e>100){if(e<300)return"mild infection";if(e<400)return"mild infection+";if(e<500)return"mild infection++";if(e<700)return"acute infection";if(e<800)return"acute infection+";if(e<900)return"acute infection++";if(e>=900)return"septic"}return""};n.BodyScanner=function(e,n){var t=(0,c.useBackend)(n).data,r=t.occupied,a=t.occupant,l=void 0===a?{}:a,d=r?(0,o.createComponentVNode)(2,h,{occupant:l}):(0,o.createComponentVNode)(2,B);return(0,o.createComponentVNode)(2,i.Window,{width:690,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:d})})};var h=function(e){var n=e.occupant;return(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,N,{occupant:n}),(0,o.createComponentVNode)(2,V,{occupant:n}),(0,o.createComponentVNode)(2,b,{occupant:n}),(0,o.createComponentVNode)(2,f,{occupant:n}),(0,o.createComponentVNode)(2,k,{organs:n.extOrgan}),(0,o.createComponentVNode)(2,v,{organs:n.intOrgan})]})},N=function(e,n){var t=(0,c.useBackend)(n),i=t.act,d=t.data,s=d.occupant;return(0,o.createComponentVNode)(2,a.Section,{title:"Occupant",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"user-slash",onClick:function(){return i("ejectify")},children:"Eject"}),(0,o.createComponentVNode)(2,a.Button,{icon:"print",onClick:function(){return i("print_p")},children:"Print Report"})],4),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:s.name}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Health",children:(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:s.maxHealth,value:s.health/s.maxHealth,ranges:{good:[.5,Infinity],average:[0,.5],bad:[-Infinity,0]}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",color:l[s.stat][0],children:l[s.stat][1]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Temperature",children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:(0,r.round)(s.bodyTempC,0)}),"\xb0C,\xa0",(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:(0,r.round)(s.bodyTempF,0)}),"\xb0F"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Blood Volume",children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:(0,r.round)(s.blood.volume,0)})," units\xa0(",(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:(0,r.round)(s.blood.percent,0)}),"%)"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Weight",children:(0,r.round)(d.occupant.weight)+"lbs, "+(0,r.round)(d.occupant.weight/2.20463)+"kgs"})]})})},V=function(e){var n=e.occupant;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{title:"Blood Reagents",children:n.reagents?(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Reagent"}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"right",children:"Amount"})]}),n.reagents.map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"right",children:[e.amount," Units ",e.overdose?(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"OVERDOSING"}):null]})]},e.name)}))]}):(0,o.createComponentVNode)(2,a.Box,{color:"good",children:"No Blood Reagents Detected"})}),(0,o.createComponentVNode)(2,a.Section,{title:"Stomach Reagents",children:n.ingested?(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Reagent"}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"right",children:"Amount"})]}),n.ingested.map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"right",children:[e.amount," Units ",e.overdose?(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"OVERDOSING"}):null]})]},e.name)}))]}):(0,o.createComponentVNode)(2,a.Box,{color:"good",children:"No Stomach Reagents Detected"})})],4)},b=function(e){var n=e.occupant,t=n.hasBorer||n.blind||n.colourblind||n.nearsighted||n.hasVirus;return(t=t||n.humanPrey||n.livingPrey||n.objectPrey)?(0,o.createComponentVNode)(2,a.Section,{title:"Abnormalities",children:d.map((function(e,t){if(n[e[0]])return(0,o.createComponentVNode)(2,a.Box,{color:e[1],bold:"bad"===e[1],children:e[2](n)})}))}):(0,o.createComponentVNode)(2,a.Section,{title:"Abnormalities",children:(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"No abnormalities found."})})},f=function(e){var n=e.occupant;return(0,o.createComponentVNode)(2,a.Section,{title:"Damage",children:(0,o.createComponentVNode)(2,a.Table,{children:m(s,(function(e,t,r){return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Table.Row,{color:"label",children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:[e[0],":"]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:!!t&&t[0]+":"})]}),(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,g,{value:n[e[1]],marginBottom:r0&&"0.5rem",value:e.totalLoss/100,ranges:u,children:[(0,o.createComponentVNode)(2,a.Box,{float:"left",inline:!0,children:[!!e.bruteLoss&&(0,o.createComponentVNode)(2,a.Box,{inline:!0,position:"relative",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"bone"}),(0,r.round)(e.bruteLoss,0),"\xa0",(0,o.createComponentVNode)(2,a.Tooltip,{position:"top",content:"Brute damage"})]}),!!e.fireLoss&&(0,o.createComponentVNode)(2,a.Box,{inline:!0,position:"relative",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"fire"}),(0,r.round)(e.fireLoss,0),(0,o.createComponentVNode)(2,a.Tooltip,{position:"top",content:"Burn damage"})]})]}),(0,o.createComponentVNode)(2,a.Box,{inline:!0,children:(0,r.round)(e.totalLoss,0)})]})}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"right",width:"33%",children:[(0,o.createComponentVNode)(2,a.Box,{color:"average",inline:!0,children:p([e.internalBleeding&&"Internal bleeding",!!e.status.bleeding&&"External bleeding",e.lungRuptured&&"Ruptured lung",e.destroyed&&"Destroyed",!!e.status.broken&&e.status.broken,C(e.germ_level),!!e.open&&"Open incision"])}),(0,o.createComponentVNode)(2,a.Box,{inline:!0,children:[p([!!e.status.splinted&&"Splinted",!!e.status.robotic&&"Robotic",!!e.status.dead&&(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"DEAD"})]),p(e.implants.map((function(e){return e.known?e.name:"Unknown object"})))]})]})]},n)}))]})})},v=function(e){return 0===e.organs.length?(0,o.createComponentVNode)(2,a.Section,{title:"Internal Organs",children:(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"N/A"})}):(0,o.createComponentVNode)(2,a.Section,{title:"Internal Organs",children:(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Name"}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"center",children:"Damage"}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"right",children:"Injuries"})]}),e.organs.map((function(e,n){return(0,o.createComponentVNode)(2,a.Table.Row,{textTransform:"capitalize",children:[(0,o.createComponentVNode)(2,a.Table.Cell,{width:"33%",children:e.name}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"center",children:(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:e.maxHealth,value:e.damage/100,mt:n>0&&"0.5rem",ranges:u,children:(0,r.round)(e.damage,0)})}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"right",width:"33%",children:[(0,o.createComponentVNode)(2,a.Box,{color:"average",inline:!0,children:p([C(e.germ_level),!!e.inflamed&&"Appendicitis detected."])}),(0,o.createComponentVNode)(2,a.Box,{inline:!0,children:p([1===e.robotic&&"Robotic",2===e.robotic&&"Assisted",!!e.dead&&(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"DEAD"})])})]})]},n)}))]})})},B=function(){return(0,o.createComponentVNode)(2,a.Section,{textAlign:"center",flexGrow:"1",children:(0,o.createComponentVNode)(2,a.Flex,{height:"100%",children:(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",align:"center",color:"label",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),"No occupant detected."]})})})}},74639:function(e,n,t){"use strict";n.__esModule=!0,n.BombTester=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);t(88654);function i(e,n){return(i=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}n.BombTester=function(e,n){var t=(0,r.useBackend)(n),i=t.act,d=t.data,s=d.simulating,u=d.mode,m=d.tank1,p=d.tank1ref,C=d.tank2,h=d.tank2ref,N=d.canister,V=d.sim_canister_output;return(0,o.createComponentVNode)(2,a.Window,{width:450,height:400,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:s&&(0,o.createComponentVNode)(2,l)||(0,o.createComponentVNode)(2,c.Section,{title:"Virtual Explosive Simulator v2.01",children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Mode",children:[(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("set_mode",{mode:1})},selected:1===u,children:"Single Tank"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("set_mode",{mode:2})},selected:2===u,children:"Transfer Valve"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("set_mode",{mode:3})},selected:3===u,children:"Canister"})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Primary Slot",children:m&&(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("remove_tank",{ref:p})},icon:"eject",children:m})||(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("add_tank",{slot:1})},icon:"upload",children:"Insert Tank"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Secondary Slot",children:C&&(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("remove_tank",{ref:h})},icon:"eject",children:C})||(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("add_tank",{slot:2})},icon:"upload",children:"Insert Tank"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Connected Canister",buttons:(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("canister_scan")},icon:"search",children:"Scan"}),children:N&&(0,o.createComponentVNode)(2,c.Box,{color:"label",children:N})||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No tank connected."})}),N&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Canister Release Pressure",children:(0,o.createComponentVNode)(2,c.Slider,{minValue:0,value:V,maxValue:1013.25,onDrag:function(e,n){return i("set_can_pressure",{pressure:n})}})})]}),(0,o.createComponentVNode)(2,c.Button,{mt:2,color:"red",icon:"bomb",fontSize:2,onClick:function(){return i("start_sim")},fluid:!0,children:"Begin Simulation"})]})})})};var l=function(e){var n,t;function r(n){var t;t=e.call(this,n)||this;var o=Math.random()>.5,r=Math.random()>.5;return t.state={x:o?340:0,y:r?205:0,reverseX:!1,reverseY:!1},t.process=setInterval((function(){t.setState((function(e){var n=Object.assign({},e);return n.reverseX?n.x-2<-5?(n.reverseX=!1,n.x+=2):n.x-=2:n.x+2>340?(n.reverseX=!0,n.x-=2):n.x+=2,n.reverseY?n.y-2<-20?(n.reverseY=!1,n.y+=2):n.y-=2:n.y+2>205?(n.reverseY=!0,n.y-=2):n.y+=2,n}))}),1),t}t=e,(n=r).prototype=Object.create(t.prototype),n.prototype.constructor=n,i(n,t);var a=r.prototype;return a.componentWillUnmount=function(){clearInterval(this.process)},a.render=function(){var e=this.state,n={position:"relative",left:e.x+"px",top:e.y+"px"};return(0,o.createComponentVNode)(2,c.Section,{title:"Simulation in progress!",fill:!0,children:(0,o.createComponentVNode)(2,c.Box,{position:"absolute",style:{overflow:"hidden",width:"100%",height:"100%"},children:(0,o.createComponentVNode)(2,c.Icon,{style:n,name:"bomb",size:10,color:"red"})})})},r}(o.Component)},48693:function(e,n,t){"use strict";n.__esModule=!0,n.BotanyEditor=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.BotanyEditor=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.activity,s=l.degradation,u=l.disk,m=l.sourceName,p=l.locus,C=l.loaded;return d?(0,o.createComponentVNode)(2,a.Window,{width:470,height:500,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,c.NoticeBox,{info:!0,children:"Scanning..."})})}):(0,o.createComponentVNode)(2,a.Window,{width:470,height:500,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Buffered Genetic Data",children:u&&(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Source",children:m}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Gene Decay",children:[s,"%"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Locus",children:p})]}),(0,o.createComponentVNode)(2,c.Button,{mt:1,icon:"eject",onClick:function(){return i("eject_disk")},children:"Eject Loaded Disk"})]})||(0,o.createComponentVNode)(2,c.NoticeBox,{warning:!0,children:"No disk loaded."})}),(0,o.createComponentVNode)(2,c.Section,{title:"Loaded Material",children:C&&(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Target",children:C})}),(0,o.createComponentVNode)(2,c.Button,{mt:1,icon:"cog",onClick:function(){return i("apply_gene")},children:"Apply Gene Mods"}),(0,o.createComponentVNode)(2,c.Button,{mt:1,icon:"eject",onClick:function(){return i("eject_packet")},children:"Eject Target"})]})||(0,o.createComponentVNode)(2,c.NoticeBox,{warning:!0,children:"No target seed packet loaded."})})]})})}},25486:function(e,n,t){"use strict";n.__esModule=!0,n.BotanyIsolator=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.BotanyIsolator=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.geneMasks,s=l.activity,u=l.degradation,m=l.disk,p=l.loaded,C=l.hasGenetics,h=l.sourceName;return s?(0,o.createComponentVNode)(2,a.Window,{width:470,height:500,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,c.NoticeBox,{info:!0,children:"Scanning..."})})}):(0,o.createComponentVNode)(2,a.Window,{width:470,height:500,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Buffered Genetic Data",children:C&&(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Source",children:h}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Gene decay",children:[u,"%"]}),m&&d.length&&d.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.mask,children:(0,o.createComponentVNode)(2,c.Button,{mb:-1,icon:"download",onClick:function(){return i("get_gene",{get_gene:e.tag})},children:"Extract"})},e.mask)}))||null]}),m&&(0,o.createComponentVNode)(2,c.Box,{mt:1,children:[(0,o.createComponentVNode)(2,c.Button,{icon:"eject",onClick:function(){return i("eject_disk")},children:"Eject Loaded Disk"}),(0,o.createComponentVNode)(2,c.Button,{icon:"trash",onClick:function(){return i("clear_buffer")},children:"Clear Genetic Buffer"})]})||(0,o.createComponentVNode)(2,c.NoticeBox,{mt:1,warning:!0,children:"No disk inserted."})]})||(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.NoticeBox,{warning:!0,children:"No Data Buffered."}),m&&(0,o.createComponentVNode)(2,c.Button,{icon:"eject",onClick:function(){return i("eject_disk")},children:"Eject Loaded Disk"})||(0,o.createComponentVNode)(2,c.NoticeBox,{mt:1,warning:!0,children:"No disk inserted."})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Loaded Material",children:p&&(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Packet Loaded",children:p})}),(0,o.createComponentVNode)(2,c.Button,{mt:1,icon:"cog",onClick:function(){return i("scan_genome")},children:"Process Genome"}),(0,o.createComponentVNode)(2,c.Button,{icon:"eject",onClick:function(){return i("eject_packet")},children:"Eject Packet"})]})||(0,o.createComponentVNode)(2,c.NoticeBox,{warning:!0,children:"No packet loaded."})})]})})}},61956:function(e,n,t){"use strict";n.__esModule=!0,n.BrigTimer=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(85952),l=t(58083);n.BrigTimer=function(e,n){var t=(0,c.useBackend)(n),d=t.act,s=t.data;return(0,o.createComponentVNode)(2,i.Window,{width:300,height:138,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.Section,{title:"Cell Timer",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"clock-o",content:s.timing?"Stop":"Start",selected:s.timing,onClick:function(){return d(s.timing?"stop":"start")}}),s.flash_found&&(0,o.createComponentVNode)(2,a.Button,{icon:"lightbulb-o",content:s.flash_charging?"Recharging":"Flash",disabled:s.flash_charging,onClick:function(){return d("flash")}})||null],0),children:[(0,o.createComponentVNode)(2,a.NumberInput,{animated:!0,fluid:!0,value:s.time_left/10,minValue:0,maxValue:s.max_time_left/10,format:function(e){return(0,l.formatTime)((0,r.round)(e))},onDrag:function(e,n){return d("time",{time:n})}}),(0,o.createComponentVNode)(2,a.Flex,{mt:1,children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"hourglass-start",content:"Add "+(0,l.formatTime)(s.preset_short/10),onClick:function(){return d("preset",{preset:"short"})}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"hourglass-start",content:"Add "+(0,l.formatTime)(s.preset_medium/10),onClick:function(){return d("preset",{preset:"medium"})}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"hourglass-start",content:"Add "+(0,l.formatTime)(s.preset_long/10),onClick:function(){return d("preset",{preset:"long"})}})})]})]})})})}},3180:function(e,n,t){"use strict";n.__esModule=!0,n.CameraConsoleSearch=n.CameraConsoleContent=n.CameraConsole=void 0;var o=t(39812),r=t(64499),c=t(85531),a=t(34380),i=t(2497),l=t(71494),d=t(74814),s=t(85952),u=function(e,n,t){void 0===n&&(n=""),void 0===t&&(t="");var o=(0,i.createSearch)(n,(function(e){return e.name}));return(0,c.flow)([(0,r.filter)((function(e){return null==e?void 0:e.name})),n&&(0,r.filter)(o),t&&(0,r.filter)((function(e){return e.networks.includes(t)})),(0,r.sortBy)((function(e){return e.name}))])(e)};n.CameraConsole=function(e,n){return(0,o.createComponentVNode)(2,s.Window,{width:870,height:708,resizable:!0,children:(0,o.createComponentVNode)(2,m)})};var m=function(e,n){var t=(0,l.useBackend)(n),r=t.act,c=t.data,a=(t.config,c.mapRef),i=c.activeCamera,m=function(e,n){var t,o;if(!n)return[];var r=e.findIndex((function(e){return e.name===n.name}));return[null==(t=e[r-1])?void 0:t.name,null==(o=e[r+1])?void 0:o.name]}(u(c.cameras),i);m[0],m[1];return(0,o.createFragment)([(0,o.createVNode)(1,"div","CameraConsole__left",(0,o.createComponentVNode)(2,s.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,p)}),2),(0,o.createVNode)(1,"div","CameraConsole__right",[(0,o.createVNode)(1,"div","CameraConsole__toolbar",[(0,o.createVNode)(1,"b",null,"Camera: ",16),i&&i.name||"\u2014"],0),(0,o.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,o.createComponentVNode)(2,d.Button,{icon:"chevron-left",onClick:function(){return r("pan",{dir:8})}}),(0,o.createComponentVNode)(2,d.Button,{icon:"chevron-up",onClick:function(){return r("pan",{dir:1})}}),(0,o.createComponentVNode)(2,d.Button,{icon:"chevron-right",onClick:function(){return r("pan",{dir:4})}}),(0,o.createComponentVNode)(2,d.Button,{icon:"chevron-down",onClick:function(){return r("pan",{dir:2})}})],4),(0,o.createComponentVNode)(2,d.ByondUi,{className:"CameraConsole__map",params:{id:a,type:"map"}})],4)],4)};n.CameraConsoleContent=m;var p=function(e,n){var t=(0,l.useBackend)(n),r=t.act,c=t.data,i=(0,l.useLocalState)(n,"searchText",""),m=i[0],p=i[1],C=(0,l.useLocalState)(n,"networkFilter",""),h=C[0],N=C[1],V=c.activeCamera,b=c.allNetworks;b.sort();var f=u(c.cameras,m,h);return(0,o.createFragment)([(0,o.createComponentVNode)(2,d.Input,{fluid:!0,mb:1,placeholder:"Search for a camera",onInput:function(e,n){return p(n)}}),(0,o.createComponentVNode)(2,d.Dropdown,{mb:1,width:"177px",options:b,placeholder:"No Filter",onSelected:function(e){return N(e)}}),(0,o.createComponentVNode)(2,d.Section,{children:f.map((function(e){return(0,o.createVNode)(1,"div",(0,a.classes)(["Button","Button--fluid","Button--color--transparent","Button--ellipsis",V&&e.name===V.name&&"Button--selected"]),e.name,0,{title:e.name,onClick:function(){(0,s.refocusLayout)(),r("switch_camera",{name:e.name})}},e.name)}))})],4)};n.CameraConsoleSearch=p},94477:function(e,n,t){"use strict";n.__esModule=!0,n.Canister=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(58083),l=t(85952);n.Canister=function(e,n){var t=(0,c.useBackend)(n),d=t.act,s=t.data,u=s.connected,m=s.can_relabel,p=s.pressure,C=s.releasePressure,h=s.defaultReleasePressure,N=s.minReleasePressure,V=s.maxReleasePressure,b=s.valveOpen,f=s.holding;return(0,o.createComponentVNode)(2,l.Window,{width:360,height:242,resizable:!0,children:(0,o.createComponentVNode)(2,l.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Section,{title:"Canister",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"pencil-alt",disabled:!m,content:"Relabel",onClick:function(){return d("relabel")}}),children:(0,o.createComponentVNode)(2,a.LabeledControls,{children:[(0,o.createComponentVNode)(2,a.LabeledControls.Item,{minWidth:"66px",label:"Tank Pressure",children:(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:p,format:function(e){return e<1e4?(0,r.toFixed)(e)+" kPa":(0,i.formatSiUnit)(1e3*e,1,"Pa")}})}),(0,o.createComponentVNode)(2,a.LabeledControls.Item,{label:"Regulator",children:(0,o.createComponentVNode)(2,a.Box,{position:"relative",left:"-8px",children:[(0,o.createComponentVNode)(2,a.Knob,{forcedInputWidth:"60px",size:1.25,color:!!b&&"yellow",value:C,unit:"kPa",minValue:N,maxValue:V,stepPixelSize:1,onDrag:function(e,n){return d("pressure",{pressure:n})}}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,position:"absolute",top:"-2px",right:"-20px",color:"transparent",icon:"fast-forward",onClick:function(){return d("pressure",{pressure:V})}}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,position:"absolute",top:"16px",right:"-20px",color:"transparent",icon:"undo",onClick:function(){return d("pressure",{pressure:h})}})]})}),(0,o.createComponentVNode)(2,a.LabeledControls.Item,{label:"Valve",children:(0,o.createComponentVNode)(2,a.Button,{my:.5,width:"50px",lineHeight:2,fontSize:"11px",color:b?f?"caution":"danger":null,content:b?"Open":"Closed",onClick:function(){return d("valve")}})}),(0,o.createComponentVNode)(2,a.LabeledControls.Item,{mr:1,label:"Port",children:(0,o.createComponentVNode)(2,a.Box,{position:"relative",children:[(0,o.createComponentVNode)(2,a.Icon,{size:1.25,name:u?"plug":"times",color:u?"good":"bad"}),(0,o.createComponentVNode)(2,a.Tooltip,{content:u?"Connected":"Disconnected",position:"top"})]})})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Holding Tank",buttons:!!f&&(0,o.createComponentVNode)(2,a.Button,{icon:"eject",color:b&&"danger",content:"Eject",onClick:function(){return d("eject")}}),children:[!!f&&(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Label",children:f.name}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Pressure",children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:f.pressure})," kPa"]})]}),!f&&(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"No Holding Tank"})]})]})})}},55636:function(e,n,t){"use strict";n.__esModule=!0,n.Canvas=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);function i(e,n){return(i=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}var l=function(e){var n,t;function r(n){var t;return(t=e.call(this,n)||this).canvasRef=(0,o.createRef)(),t.onCVClick=n.onCanvasClick,t}t=e,(n=r).prototype=Object.create(t.prototype),n.prototype.constructor=n,i(n,t);var c=r.prototype;return c.componentDidMount=function(){this.drawCanvas(this.props)},c.componentDidUpdate=function(){this.drawCanvas(this.props)},c.drawCanvas=function(e){var n=this.canvasRef.current.getContext("2d"),t=e.value,o=t.length;if(o){var r=t[0].length,c=Math.round(this.canvasRef.current.width/o),a=Math.round(this.canvasRef.current.height/r);n.save(),n.scale(c,a);for(var i=0;i=0||(r[t]=e[t]);return r}(n,["res","value","dotsize"]),i=d(t),l=i[0],s=i[1];return(0,o.normalizeProps)((0,o.createVNode)(1,"canvas",null,"Canvas failed to render.",16,Object.assign({width:l*c||300,height:s*c||300},a,{onClick:function(n){return e.clickwrapper(n)}}),null,this.canvasRef))},r}(o.Component),d=function(e){var n=e.length;return[n,0!==n?e[0].length:0]};n.Canvas=function(e,n){var t=(0,r.useBackend)(n),i=t.act,s=t.data,u=d(s.grid),m=u[0],p=u[1];return(0,o.createComponentVNode)(2,a.Window,{width:Math.min(700,24*m+72),height:Math.min(700,24*p+72),children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Box,{textAlign:"center",children:[(0,o.createComponentVNode)(2,l,{value:s.grid,dotsize:24,onCanvasClick:function(e,n){return i("paint",{x:e,y:n})}}),(0,o.createComponentVNode)(2,c.Box,{children:[!s.finalized&&(0,o.createComponentVNode)(2,c.Button.Confirm,{onClick:function(){return i("finalize")},content:"Finalize"}),"\xa0",s.name]})]})})})}},25131:function(e,n,t){"use strict";n.__esModule=!0,n.CasinoPrizeDispenser=void 0;var o=t(39812),r=t(2497),c=t(71494),a=t(74814),i=t(85952);t(88654);var l={Alphabetical:function(e,n){return e-n},"By availability":function(e,n){return-(e.affordable-n.affordable)},"By price":function(e,n){return e.price-n.price}};n.CasinoPrizeDispenser=function(e,n){var t=(0,c.useBackend)(n);t.act,t.data;return(0,o.createComponentVNode)(2,i.Window,{width:400,height:450,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:(0,o.createFragment)([(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,s)],4)})})};var d=function(e,n){var t=(0,c.useLocalState)(n,"search",""),r=(t[0],t[1]),i=(0,c.useLocalState)(n,"sort",""),d=(i[0],i[1]),s=(0,c.useLocalState)(n,"descending",!1),u=s[0],m=s[1];return(0,o.createComponentVNode)(2,a.Box,{mb:"0.5rem",children:(0,o.createComponentVNode)(2,a.Flex,{width:"100%",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",mr:"0.5rem",children:(0,o.createComponentVNode)(2,a.Input,{placeholder:"Search by item name..",width:"100%",onInput:function(e,n){return r(n)}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"30%",children:(0,o.createComponentVNode)(2,a.Dropdown,{selected:"Alphabetical",options:Object.keys(l),width:"100%",lineHeight:"19px",onSelected:function(e){return d(e)}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Button,{icon:u?"arrow-down":"arrow-up",height:"19px",tooltip:u?"Descending order":"Ascending order",tooltipPosition:"bottom-end",ml:"0.5rem",onClick:function(){return m(!u)}})})]})})},s=function(e,n){var t=(0,c.useBackend)(n),d=(t.act,t.data),s=d.points,m=d.items,p=(0,c.useLocalState)(n,"search",""),C=p[0],h=(p[1],(0,c.useLocalState)(n,"sort","Alphabetical")),N=h[0],V=(h[1],(0,c.useLocalState)(n,"descending",!1)),b=V[0],f=(V[1],(0,r.createSearch)(C,(function(e){return e[0]}))),g=!1,k=Object.entries(m).map((function(e,n){var t=Object.entries(e[1]).filter(f).map((function(e){return e[1].affordable=s>=e[1].price,e[1]})).sort(l[N]);if(0!==t.length)return b&&(t=t.reverse()),g=!0,(0,o.createComponentVNode)(2,u,{title:e[0],items:t},e[0])}));return(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",overflow:"auto",children:(0,o.createComponentVNode)(2,a.Section,{onClick:function(e){return(0,i.refocusLayout)()},children:g?k:(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"No items matching your criteria was found!"})})})},u=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=(t.data,e.title),l=e.items,d=function(e,n){if(null==e)return{};var t,o,r={},c=Object.keys(e);for(o=0;o=0||(r[t]=e[t]);return r}(e,["title","items"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Collapsible,Object.assign({open:!0,title:i},d,{children:l.map((function(e){return(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Box,{display:"inline-block",verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:e.name}),(0,o.createComponentVNode)(2,a.Button,{content:e.price.toLocaleString("en-US"),width:"15%",textAlign:"center",style:{float:"right"},onClick:function(){return r("purchase",{cat:i,name:e.name,price:e.price,restriction:e.restriction})}}),(0,o.createComponentVNode)(2,a.Box,{style:{clear:"both"}})]},e.name)}))})))}},47947:function(e,n,t){"use strict";n.__esModule=!0,n.CharacterDirectory=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=function(e){switch(e){case"Unset":return"label";case"Pred":return"red";case"Pred-Pref":return"orange";case"Prey":return"blue";case"Prey-Pref":return"green";case"Switch":return"yellow";case"Non-Vore":return"black"}};n.CharacterDirectory=function(e,n){var t=(0,r.useBackend)(n),i=t.act,s=t.data,u=s.personalVisibility,m=s.personalTag,p=s.personalErpTag,C=(0,r.useLocalState)(n,"overlay",null),h=C[0];C[1];return(0,o.createComponentVNode)(2,a.Window,{width:640,height:480,resizeable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:h&&(0,o.createComponentVNode)(2,l)||(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Controls",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Visibility",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,content:u?"Shown":"Not Shown",onClick:function(){return i("setVisible")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Vore Tag",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,content:m,onClick:function(){return i("setTag")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"ERP Tag",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,content:p,onClick:function(){return i("setErpTag")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Advertisement",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,content:"Edit Ad",onClick:function(){return i("editAd")}})})]})}),(0,o.createComponentVNode)(2,d)],4)})})};var l=function(e,n){var t=(0,r.useLocalState)(n,"overlay",null),a=t[0],l=t[1];return(0,o.createComponentVNode)(2,c.Section,{title:a.name,buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-left",content:"Back",onClick:function(){return l(null)}}),children:[(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Species",children:(0,o.createComponentVNode)(2,c.Box,{children:a.species})}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Vore Tag",children:(0,o.createComponentVNode)(2,c.Box,{p:1,backgroundColor:i(a.tag),children:a.tag})}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"ERP Tag",children:(0,o.createComponentVNode)(2,c.Box,{children:a.erptag})}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Character Ad",children:(0,o.createComponentVNode)(2,c.Box,{style:{"word-break":"break-all"},preserveWhitespace:!0,children:a.character_ad||"Unset."})}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"OOC Notes",children:(0,o.createComponentVNode)(2,c.Box,{style:{"word-break":"break-all"},preserveWhitespace:!0,children:a.ooc_notes||"Unset."})}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Flavor Text",children:(0,o.createComponentVNode)(2,c.Box,{style:{"word-break":"break-all"},preserveWhitespace:!0,children:a.flavor_text||"Unset."})})]})},d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,l=t.data.directory,d=(0,r.useLocalState)(n,"sortId","name"),u=d[0],m=(d[1],(0,r.useLocalState)(n,"sortOrder","name")),p=m[0],C=(m[1],(0,r.useLocalState)(n,"overlay",null)),h=(C[0],C[1]);return(0,o.createComponentVNode)(2,c.Section,{title:"Directory",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"sync",content:"Refresh",onClick:function(){return a("refresh")}}),children:(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{bold:!0,children:[(0,o.createComponentVNode)(2,s,{id:"name",children:"Name"}),(0,o.createComponentVNode)(2,s,{id:"species",children:"Species"}),(0,o.createComponentVNode)(2,s,{id:"tag",children:"Vore Tag"}),(0,o.createComponentVNode)(2,s,{id:"erptag",children:"ERP Tag"}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,textAlign:"right",children:"View"})]}),l.sort((function(e,n){var t=p?1:-1;return e[u].localeCompare(n[u])*t})).map((function(e,n){return(0,o.createComponentVNode)(2,c.Table.Row,{backgroundColor:i(e.tag),children:[(0,o.createComponentVNode)(2,c.Table.Cell,{p:1,children:e.name}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.species}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.tag}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.erptag}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,textAlign:"right",children:(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return h(e)},color:"transparent",icon:"sticky-note",mr:1,content:"View"})})]},n)}))]})})},s=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data,e.id),i=e.children,l=(0,r.useLocalState)(n,"sortId","name"),d=l[0],s=l[1],u=(0,r.useLocalState)(n,"sortOrder","name"),m=u[0],p=u[1];return(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,c.Button,{width:"100%",color:d!==a&&"transparent",onClick:function(){d===a?p(!m):(s(a),p(!0))},children:[i,d===a&&(0,o.createComponentVNode)(2,c.Icon,{name:m?"sort-up":"sort-down",ml:"0.25rem;"})]})})}},22223:function(e,n,t){"use strict";n.__esModule=!0,n.ChemDispenser=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(48229),i=t(85952),l=[5,10,20,30,40,60],d=[1,5,10];n.ChemDispenser=function(e,n){return(0,o.createComponentVNode)(2,i.Window,{width:390,height:655,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{className:"Layout__content--flexColumn",children:[(0,o.createComponentVNode)(2,s),(0,o.createComponentVNode)(2,u),(0,o.createComponentVNode)(2,m)]})})};var s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.amount;return(0,o.createComponentVNode)(2,c.Section,{title:"Settings",flex:"content",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Dispense",verticalAlign:"middle",children:(0,o.createComponentVNode)(2,c.Flex,{direction:"row",wrap:"wrap",spacing:"1",children:l.map((function(e,n){return(0,o.createComponentVNode)(2,c.Flex.Item,{grow:"1",children:(0,o.createComponentVNode)(2,c.Button,{textAlign:"center",selected:i===e,content:e+"u",m:"0",fluid:!0,onClick:function(){return a("amount",{amount:e})}})},n)}))})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Custom Amount",children:(0,o.createComponentVNode)(2,c.Slider,{step:1,stepPixelSize:5,value:i,minValue:1,maxValue:120,onDrag:function(e,n){return a("amount",{amount:n})}})})]})})},u=function(e,n){for(var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.chemicals,d=void 0===l?[]:l,s=[],u=0;u<(d.length+1)%3;u++)s.push(!0);return(0,o.createComponentVNode)(2,c.Section,{title:i.glass?"Drink Dispenser":"Chemical Dispenser",flexGrow:"1",children:(0,o.createComponentVNode)(2,c.Flex,{direction:"row",wrap:"wrap",height:"100%",align:"flex-start",children:[d.map((function(e,n){return(0,o.createComponentVNode)(2,c.Flex.Item,{grow:"1",m:.2,basis:"40%",height:"20px",children:(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-circle-down",width:"100%",height:"100%",align:"flex-start",content:e.title+" ("+e.amount+")",onClick:function(){return a("dispense",{reagent:e.id})}})},n)})),s.map((function(e,n){return(0,o.createComponentVNode)(2,c.Flex.Item,{grow:"1",basis:"25%",height:"20px"},n)}))]})})},m=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,s=l.isBeakerLoaded,u=l.beakerCurrentVolume,m=l.beakerMaxVolume,p=l.beakerContents,C=void 0===p?[]:p;return(0,o.createComponentVNode)(2,c.Section,{title:"Beaker",flex:"content",minHeight:"25%",buttons:(0,o.createComponentVNode)(2,c.Box,{children:[!!s&&(0,o.createComponentVNode)(2,c.Box,{inline:!0,color:"label",mr:2,children:[u," / ",m," units"]}),(0,o.createComponentVNode)(2,c.Button,{icon:"eject",content:"Eject",disabled:!s,onClick:function(){return i("ejectBeaker")}})]}),children:(0,o.createComponentVNode)(2,a.BeakerContents,{beakerLoaded:s,beakerContents:C,buttons:function(e){return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{content:"Isolate",icon:"compress-arrows-alt",onClick:function(){return i("remove",{reagent:e.id,amount:-1})}}),d.map((function(n,t){return(0,o.createComponentVNode)(2,c.Button,{content:n,onClick:function(){return i("remove",{reagent:e.id,amount:n})}},t)})),(0,o.createComponentVNode)(2,c.Button,{content:"ALL",onClick:function(){return i("remove",{reagent:e.id,amount:e.volume})}})],0)}})})}},34859:function(e,n,t){"use strict";n.__esModule=!0,n.ChemMaster=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=t(48229),l=t(16007),d=[1,5,10,30,60];n.ChemMaster=function(e,n){var t=(0,r.useBackend)(n).data,c=t.condi,i=t.beaker,d=t.beaker_reagents,p=void 0===d?[]:d,C=t.buffer_reagents,h=void 0===C?[]:C,N=t.mode;return(0,o.createComponentVNode)(2,a.Window,{width:575,height:500,resizable:!0,children:[(0,o.createComponentVNode)(2,l.ComplexModal),(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:[(0,o.createComponentVNode)(2,s,{beaker:i,beakerReagents:p,bufferNonEmpty:h.length>0}),(0,o.createComponentVNode)(2,u,{mode:N,bufferReagents:h}),(0,o.createComponentVNode)(2,m,{isCondiment:c,bufferNonEmpty:h.length>0})]})]})};var s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,s=(t.data,e.beaker),u=e.beakerReagents,m=e.bufferNonEmpty?(0,o.createComponentVNode)(2,c.Button.Confirm,{icon:"eject",disabled:!s,content:"Eject and Clear Buffer",onClick:function(){return a("eject")}}):(0,o.createComponentVNode)(2,c.Button,{icon:"eject",disabled:!s,content:"Eject and Clear Buffer",onClick:function(){return a("eject")}});return(0,o.createComponentVNode)(2,c.Section,{title:"Beaker",buttons:m,children:s?(0,o.createComponentVNode)(2,i.BeakerContents,{beakerLoaded:!0,beakerContents:u,buttons:function(e,t){return(0,o.createComponentVNode)(2,c.Box,{mb:t0?(0,o.createComponentVNode)(2,i.BeakerContents,{beakerLoaded:!0,beakerContents:u,buttons:function(e,r){return(0,o.createComponentVNode)(2,c.Box,{mb:r0?l.desc:"N/A"}),l.blood_type&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Blood type",children:l.blood_type}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Blood DNA",className:"LabeledList__breakContents",children:l.blood_dna})],4),!i.condi&&(0,o.createComponentVNode)(2,c.Button,{icon:i.printing?"spinner":"print",disabled:i.printing,iconSpin:!!i.printing,ml:"0.5rem",content:"Print",onClick:function(){return a("print",{idx:l.idx,beaker:e.args.beaker})}})]})})})}))},83919:function(e,n,t){"use strict";n.__esModule=!0,n.ClawMachine=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.ClawMachine=function(e,n){var t,i=(0,r.useBackend)(n),l=i.act,d=i.data,s=(d.wintick,d.instructions),u=d.gameStatus,m=d.winscreen;return"CLAWMACHINE_NEW"===u?t=(0,o.createComponentVNode)(2,c.Box,{align:"center",children:[(0,o.createVNode)(1,"br")," ",(0,o.createVNode)(1,"hr"),(0,o.createVNode)(1,"b",null,"Pay to Play!",16)," ",(0,o.createVNode)(1,"br")," ",(0,o.createVNode)(1,"hr"),s,(0,o.createVNode)(1,"br")," ",(0,o.createVNode)(1,"hr")," ",(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Button,{content:"Start",onClick:function(){return l("newgame")}})]}):"CLAWMACHINE_END"===u?t=(0,o.createComponentVNode)(2,c.Box,{align:"center",children:[(0,o.createVNode)(1,"br")," ",(0,o.createVNode)(1,"hr"),(0,o.createVNode)(1,"b",null,"Thank you for playing!",16)," ",(0,o.createVNode)(1,"br")," ",(0,o.createVNode)(1,"hr"),m,(0,o.createVNode)(1,"br")," ",(0,o.createVNode)(1,"hr")," ",(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Button,{content:"Close",onClick:function(){return l("return")}})]}):"CLAWMACHINE_ON"===u&&(t=(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Progress",children:(0,o.createComponentVNode)(2,c.ProgressBar,{ranges:{bad:[-Infinity,0],average:[1,7],good:[8,Infinity]},value:d.wintick,minValue:0,maxValue:10})})}),(0,o.createComponentVNode)(2,c.Box,{align:"center",children:[(0,o.createVNode)(1,"br")," ",(0,o.createVNode)(1,"hr")," ",(0,o.createVNode)(1,"br"),s,(0,o.createVNode)(1,"br")," ",(0,o.createVNode)(1,"br")," ",(0,o.createVNode)(1,"hr")," ",(0,o.createVNode)(1,"br")," ",(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Button,{content:"Up",onClick:function(){return l("pointless")}}),(0,o.createVNode)(1,"br")," ",(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Button,{content:"Left",onClick:function(){return l("pointless")}}),(0,o.createComponentVNode)(2,c.Button,{content:"Right",onClick:function(){return l("pointless")}}),(0,o.createVNode)(1,"br")," ",(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Button,{content:"Down",onClick:function(){return l("pointless")}})]})]})),(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createVNode)(1,"center",null,t,0)})}},74351:function(e,n,t){"use strict";n.__esModule=!0,n.Cleanbot=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.Cleanbot=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.on,s=l.open,u=l.locked,m=l.version,p=l.blood,C=(l.patrol,l.vocal),h=l.wet_floors,N=l.spray_blood,V=l.rgbpanel,b=l.red_switch,f=l.green_switch,g=l.blue_switch;return(0,o.createComponentVNode)(2,a.Window,{width:400,height:400,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Automatic Station Cleaner "+m,buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:d,onClick:function(){return i("start")},children:d?"On":"Off"}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Maintenance Panel",color:s?"bad":"good",children:s?"Open":"Closed"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Behavior Controls",color:u?"good":"bad",children:u?"Locked":"Unlocked"})]})}),!u&&(0,o.createComponentVNode)(2,c.Section,{title:"Behavior Controls",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Blood",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:p?"toggle-on":"toggle-off",selected:p,onClick:function(){return i("blood")},children:p?"Clean":"Ignore"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Speaker",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:C?"toggle-on":"toggle-off",selected:C,onClick:function(){return i("vocal")},children:C?"On":"Off"})})]})})||null,!u&&s&&(0,o.createComponentVNode)(2,c.Section,{title:"Maintenance Panel",children:V&&(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{fontSize:5.39,icon:b?"toggle-on":"toggle-off",backgroundColor:b?"red":"maroon",onClick:function(){return i("red_switch")}}),(0,o.createComponentVNode)(2,c.Button,{fontSize:5.39,icon:f?"toggle-on":"toggle-off",backgroundColor:f?"green":"darkgreen",onClick:function(){return i("green_switch")}}),(0,o.createComponentVNode)(2,c.Button,{fontSize:5.39,icon:g?"toggle-on":"toggle-off",backgroundColor:g?"blue":"darkblue",onClick:function(){return i("blue_switch")}})]})||(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Odd Looking Screw Twiddled",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,selected:h,onClick:function(){return i("wet_floors")},icon:"screwdriver",children:h?"Yes":"No"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Weird Button Pressed",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,color:"brown",selected:N,onClick:function(){return i("spray_blood")},icon:"screwdriver",children:N?"Yes":"No"})})]})})})||null]})})}},98213:function(e,n,t){"use strict";n.__esModule=!0,n.CloningConsole=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(76270),l=t(16007),d=t(85952),s=function(e,n){var t=(0,c.useBackend)(n),r=t.act,l=t.data,d=e.args,s=d.activerecord,u=d.realname,m=d.health,p=d.unidentity,C=d.strucenzymes,h=m.split(" - ");return(0,o.createComponentVNode)(2,a.Section,{level:2,m:"-1rem",pb:"1rem",title:"Records of "+u,children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:u}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Damage",children:h.length>1?(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{color:i.COLORS.damageType.oxy,inline:!0,children:h[0]}),(0,o.createTextVNode)("\xa0|\xa0"),(0,o.createComponentVNode)(2,a.Box,{color:i.COLORS.damageType.toxin,inline:!0,children:h[2]}),(0,o.createTextVNode)("\xa0|\xa0"),(0,o.createComponentVNode)(2,a.Box,{color:i.COLORS.damageType.brute,inline:!0,children:h[3]}),(0,o.createTextVNode)("\xa0|\xa0"),(0,o.createComponentVNode)(2,a.Box,{color:i.COLORS.damageType.burn,inline:!0,children:h[1]})],4):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Unknown"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"UI",className:"LabeledList__breakContents",children:p}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"SE",className:"LabeledList__breakContents",children:C}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Disk",children:[(0,o.createComponentVNode)(2,a.Button.Confirm,{disabled:!l.disk,icon:"arrow-circle-down",content:"Import",onClick:function(){return r("disk",{option:"load"})}}),(0,o.createComponentVNode)(2,a.Button,{disabled:!l.disk,icon:"arrow-circle-up",content:"Export UI",onClick:function(){return r("disk",{option:"save",savetype:"ui"})}}),(0,o.createComponentVNode)(2,a.Button,{disabled:!l.disk,icon:"arrow-circle-up",content:"Export UI and UE",onClick:function(){return r("disk",{option:"save",savetype:"ue"})}}),(0,o.createComponentVNode)(2,a.Button,{disabled:!l.disk,icon:"arrow-circle-up",content:"Export SE",onClick:function(){return r("disk",{option:"save",savetype:"se"})}})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Actions",children:[(0,o.createComponentVNode)(2,a.Button,{disabled:!l.podready,icon:"user-plus",content:"Clone",onClick:function(){return r("clone",{ref:s})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"trash",content:"Delete",onClick:function(){return r("del_rec")}})]})]})})};n.CloningConsole=function(e,n){var t=(0,c.useBackend)(n);t.act,t.data.menu;return(0,l.modalRegisterBodyOverride)("view_rec",s),(0,o.createComponentVNode)(2,d.Window,{resizable:!0,children:[(0,o.createComponentVNode)(2,l.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),(0,o.createComponentVNode)(2,d.Window.Content,{className:"Layout__content--flexColumn",children:[(0,o.createComponentVNode)(2,h),(0,o.createComponentVNode)(2,N),(0,o.createComponentVNode)(2,u),(0,o.createComponentVNode)(2,a.Section,{noTopPadding:!0,flexGrow:"1",children:(0,o.createComponentVNode)(2,m)})]})]})};var u=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.menu;return(0,o.createComponentVNode)(2,a.Tabs,{children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:1===i,icon:"home",onClick:function(){return r("menu",{num:1})},children:"Main"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:2===i,icon:"folder",onClick:function(){return r("menu",{num:2})},children:"Records"})]})},m=function(e,n){var t,r=(0,c.useBackend)(n).data.menu;return 1===r?t=(0,o.createComponentVNode)(2,p):2===r&&(t=(0,o.createComponentVNode)(2,C)),t},p=function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data,d=l.loading,s=l.scantemp,u=l.occupant,m=l.locked,p=l.can_brainscan,C=l.scan_mode,h=l.numberofpods,N=l.pods,V=l.selected_pod,b=m&&!!u;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{title:"Scanner",level:"2",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:"label",children:"Scanner Lock:\xa0"}),(0,o.createComponentVNode)(2,a.Button,{disabled:!u,selected:b,icon:b?"toggle-on":"toggle-off",content:b?"Engaged":"Disengaged",onClick:function(){return i("lock")}}),(0,o.createComponentVNode)(2,a.Button,{disabled:b||!u,icon:"user-slash",content:"Eject Occupant",onClick:function(){return i("eject")}})],4),children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",children:d?(0,o.createComponentVNode)(2,a.Box,{color:"average",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"spinner",spin:!0}),"\xa0 Scanning..."]}):(0,o.createComponentVNode)(2,a.Box,{color:s.color,children:s.text})}),!!p&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Scan Mode",children:(0,o.createComponentVNode)(2,a.Button,{icon:C?"brain":"male",content:C?"Brain":"Body",onClick:function(){return i("toggle_mode")}})})]}),(0,o.createComponentVNode)(2,a.Button,{disabled:!u||d,icon:"user",content:"Scan Occupant",mt:"0.5rem",mb:"0",onClick:function(){return i("scan")}})]}),(0,o.createComponentVNode)(2,a.Section,{title:"Pods",level:"2",children:h?N.map((function(e,n){var t;return t="cloning"===e.status?(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:"100",value:e.progress/100,ranges:{good:[.75,Infinity],average:[.25,.75],bad:[-Infinity,.25]},mt:"0.5rem",children:(0,o.createComponentVNode)(2,a.Box,{textAlign:"center",children:(0,r.round)(e.progress,0)+"%"})}):"mess"===e.status?(0,o.createComponentVNode)(2,a.Box,{bold:!0,color:"bad",mt:"0.5rem",children:"ERROR"}):(0,o.createComponentVNode)(2,a.Button,{selected:V===e.pod,icon:V===e.pod&&"check",content:"Select",mt:"0.5rem",onClick:function(){return i("selectpod",{ref:e.pod})}}),(0,o.createComponentVNode)(2,a.Box,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,o.createVNode)(1,"img",null,null,1,{src:"pod_"+e.status+".gif",style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,a.Box,{color:"label",children:["Pod #",n+1]}),(0,o.createComponentVNode)(2,a.Box,{bold:!0,color:e.biomass>=150?"good":"bad",inline:!0,children:[(0,o.createComponentVNode)(2,a.Icon,{name:e.biomass>=150?"circle":"circle-o"}),"\xa0",e.biomass]}),t]},n)})):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"No pods detected. Unable to clone."})})],4)},C=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.records;return i.length?(0,o.createComponentVNode)(2,a.Box,{mt:"0.5rem",children:i.map((function(e,n){return(0,o.createComponentVNode)(2,a.Button,{icon:"user",mb:"0.5rem",content:e.realname,onClick:function(){return r("view_rec",{ref:e.record})}},n)}))}):(0,o.createComponentVNode)(2,a.Flex,{height:"100%",children:(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),"No records found."]})})},h=function(e,n){var t,r=(0,c.useBackend)(n),i=r.act,l=r.data.temp;if(l&&l.text&&!(l.text.length<=0)){var d=((t={})[l.style]=!0,t);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.NoticeBox,Object.assign({},d,{children:[(0,o.createComponentVNode)(2,a.Box,{display:"inline-block",verticalAlign:"middle",children:l.text}),(0,o.createComponentVNode)(2,a.Button,{icon:"times-circle",float:"right",onClick:function(){return i("cleartemp")}}),(0,o.createComponentVNode)(2,a.Box,{clear:"both"})]})))}},N=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=i.scanner,d=i.numberofpods,s=i.autoallowed,u=i.autoprocess,m=i.disk;return(0,o.createComponentVNode)(2,a.Section,{title:"Status",buttons:(0,o.createFragment)([!!s&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:"label",children:"Auto-processing:\xa0"}),(0,o.createComponentVNode)(2,a.Button,{selected:u,icon:u?"toggle-on":"toggle-off",content:u?"Enabled":"Disabled",onClick:function(){return r("autoprocess",{on:u?0:1})}})],4),(0,o.createComponentVNode)(2,a.Button,{disabled:!m,icon:"eject",content:"Eject Disk",onClick:function(){return r("disk",{option:"eject"})}})],0),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Scanner",children:l?(0,o.createComponentVNode)(2,a.Box,{color:"good",children:"Connected"}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Not connected!"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Pods",children:d?(0,o.createComponentVNode)(2,a.Box,{color:"good",children:[d," connected"]}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"None connected!"})})]})})}},32278:function(e,n,t){"use strict";n.__esModule=!0,n.ColorMate=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.ColorMate=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.items,s=l.activecolor,u=Math.min(270+15*d.length,600);return(0,o.createComponentVNode)(2,a.Window,{width:300,height:u,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:d.length&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Paint",children:(0,o.createComponentVNode)(2,c.Flex,{justify:"center",align:"center",children:[(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"50%",children:(0,o.createComponentVNode)(2,c.Box,{backgroundColor:s,width:"120px",height:"120px"})}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"50% ",children:[(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"eye-dropper",onClick:function(){return i("select")},children:"Select Color"}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"fill-drip",onClick:function(){return i("paint")},children:"Paint Items"}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"tint-slash",onClick:function(){return i("clear")},children:"Remove Paintjob"}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"eject",onClick:function(){return i("eject")},children:"Eject Items"})]})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Items",children:d.map((function(e,n){return(0,o.createComponentVNode)(2,c.Box,{children:["#",n+1,": ",e]},n)}))})],4)||(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No items inserted."})})})})}},130:function(e,n,t){"use strict";n.__esModule=!0,n.CommunicationsConsoleContent=n.CommunicationsConsole=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.CommunicationsConsole=function(e,n){return(0,o.createComponentVNode)(2,a.Window,{width:400,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,i)})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data.menu_state),i=(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:["ERRROR. Unknown menu_state: ",a,"Please report this to NT Technical Support."]});return 1===a?i=(0,o.createComponentVNode)(2,l):2===a?i=(0,o.createComponentVNode)(2,u):3===a&&(i=(0,o.createComponentVNode)(2,s)),(0,o.createFragment)([(0,o.createComponentVNode)(2,d),i],0)};n.CommunicationsConsoleContent=i;var l=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.messages,d=i.msg_cooldown,s=i.emagged,u=i.cc_cooldown,m=i.str_security_level,p=i.levels,C=i.authmax,h=i.security_level,N=i.security_level_color,V=i.authenticated,b=i.atcsquelch,f=i.boss_short,g="View ("+l.length+")",k="Make Priority Announcement";d>0&&(k+=" ("+d+"s)");var v=s?"Message [UNKNOWN]":"Message "+f;u>0&&(v+=" ("+u+"s)");var B=m,L=p.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{icon:e.icon,content:e.name,disabled:!V,selected:e.id===h,onClick:function(){return a("newalertlevel",{level:e.id})}},e.name)}));return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Site Manager-Only Actions",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Announcement",children:(0,o.createComponentVNode)(2,c.Button,{icon:"bullhorn",content:k,disabled:!C||d>0,onClick:function(){return a("announce")}})}),!!s&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Transmit",children:[(0,o.createComponentVNode)(2,c.Button,{icon:"broadcast-tower",color:"red",content:v,disabled:!C||u>0,onClick:function(){return a("MessageSyndicate")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"sync-alt",content:"Reset Relays",disabled:!C,onClick:function(){return a("RestoreBackup")}})]})||(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Transmit",children:(0,o.createComponentVNode)(2,c.Button,{icon:"broadcast-tower",content:v,disabled:!C||u>0,onClick:function(){return a("MessageCentCom")}})})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Command Staff Actions",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Current Alert",color:N,children:B}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Change Alert",children:L}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Displays",children:(0,o.createComponentVNode)(2,c.Button,{icon:"tv",content:"Change Status Displays",disabled:!V,onClick:function(){return a("status")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Incoming Messages",children:(0,o.createComponentVNode)(2,c.Button,{icon:"folder-open",content:g,disabled:!V,onClick:function(){return a("messagelist")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Misc",children:(0,o.createComponentVNode)(2,c.Button,{icon:"microphone",content:b?"ATC Relay Disabled":"ATC Relay Enabled",disabled:!V,selected:b,onClick:function(){return a("toggleatc")}})})]})})],4)},d=function(e,n){var t,a=(0,r.useBackend)(n),i=a.act,l=a.data,d=l.authenticated,s=l.is_ai,u=l.esc_status,m=l.esc_callable,p=l.esc_recallable;return t=d?s?"AI":1===d?"Command":2===d?"Site Director":"ERROR: Report This Bug!":"Not Logged In",(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Authentication",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:s&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Access Level",children:"AI"})||(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Actions",children:(0,o.createComponentVNode)(2,c.Button,{icon:d?"sign-out-alt":"id-card",selected:d,content:d?"Log Out ("+t+")":"Log In",onClick:function(){return i("auth")}})})})}),(0,o.createComponentVNode)(2,c.Section,{title:"Escape Shuttle",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[!!u&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Status",children:u}),!!m&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Options",children:(0,o.createComponentVNode)(2,c.Button,{icon:"rocket",content:"Call Shuttle",disabled:!d,onClick:function(){return i("callshuttle")}})}),!!p&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Options",children:(0,o.createComponentVNode)(2,c.Button,{icon:"times",content:"Recall Shuttle",disabled:!d||s,onClick:function(){return i("cancelshuttle")}})})]})})],4)},s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.message_current,d=i.message_deletion_allowed,s=i.authenticated,u=i.messages;if(l)return(0,o.createComponentVNode)(2,c.Section,{title:l.title,buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"times",content:"Return To Message List",disabled:!s,onClick:function(){return a("messagelist")}}),children:(0,o.createComponentVNode)(2,c.Box,{children:l.contents})});var m=u.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.title,children:[(0,o.createComponentVNode)(2,c.Button,{icon:"eye",content:"View",disabled:!s||l&&l.title===e.title,onClick:function(){return a("messagelist",{msgid:e.id})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"times",content:"Delete",disabled:!s||!d,onClick:function(){return a("delmessage",{msgid:e.id})}})]},e.id)}));return(0,o.createComponentVNode)(2,c.Section,{title:"Messages Received",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){return a("main")}}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:u.length&&m||(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"404",color:"bad",children:"No messages."})})})},u=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.stat_display,d=i.authenticated,s=l.presets.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{content:e.label,selected:e.name===l.type,disabled:!d,onClick:function(){return a("setstat",{statdisp:e.name})}},e.name)}));return(0,o.createComponentVNode)(2,c.Section,{title:"Modify Status Screens",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){return a("main")}}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Presets",children:s}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Message Line 1",children:(0,o.createComponentVNode)(2,c.Button,{icon:"pencil-alt",content:l.line_1,disabled:!d,onClick:function(){return a("setmsg1")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Message Line 2",children:(0,o.createComponentVNode)(2,c.Button,{icon:"pencil-alt",content:l.line_2,disabled:!d,onClick:function(){return a("setmsg2")}})})]})})}},4220:function(e,n,t){"use strict";n.__esModule=!0,n.Communicator=void 0;var o=t(39812),r=t(64499),c=t(2497),a=t(71494),i=t(74814),l=t(85952),d=t(22902),s={};n.Communicator=function(e,n){var t=(0,a.useBackend)(n),r=(t.act,t.data),c=r.currentTab,d=r.video_comm,h=(r.mapRef,(0,a.useLocalState)(n,"videoSetting",0)),N=h[0],V=h[1];return(0,o.createComponentVNode)(2,l.Window,{width:475,height:700,resizable:!0,children:(0,o.createComponentVNode)(2,l.Window.Content,{children:[d&&(0,o.createComponentVNode)(2,u,{videoSetting:N,setVideoSetting:V}),(!d||0!==N)&&(0,o.createFragment)([(0,o.createComponentVNode)(2,p),(0,o.createComponentVNode)(2,i.Box,{height:"88%",mb:1,style:{"overflow-y":"auto"},children:s[c]||(0,o.createComponentVNode)(2,m)}),(0,o.createComponentVNode)(2,C,{videoSetting:N,setVideoSetting:V})],4)]})})};var u=function(e,n){var t=(0,a.useBackend)(n),r=t.act,c=t.data,l=(c.video_comm,c.mapRef),d=e.videoSetting,s=e.setVideoSetting;return 0===d?(0,o.createComponentVNode)(2,i.Box,{width:"100%",height:"100%",children:[(0,o.createComponentVNode)(2,i.ByondUi,{width:"100%",height:"95%",params:{id:l,type:"map"}}),(0,o.createComponentVNode)(2,i.Flex,{justify:"space-between",spacing:1,mt:.5,children:[(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,i.Button,{textAlign:"center",fluid:!0,fontSize:1.5,icon:"window-minimize",onClick:function(){return s(1)}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,i.Button,{textAlign:"center",fluid:!0,fontSize:1.5,color:"bad",icon:"video-slash",onClick:function(){return r("endvideo")}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,i.Button,{textAlign:"center",fluid:!0,fontSize:1.5,color:"bad",icon:"phone-slash",onClick:function(){return r("hang_up")}})})]})]}):1===d?(0,o.createComponentVNode)(2,i.Box,{style:{position:"absolute",right:"5px",bottom:"50px","z-index":1},children:[(0,o.createComponentVNode)(2,i.Section,{p:0,m:0,children:(0,o.createComponentVNode)(2,i.Flex,{justify:"space-between",spacing:1,children:[(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,i.Button,{textAlign:"center",fluid:!0,fontSize:1.5,icon:"window-minimize",onClick:function(){return s(2)}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,i.Button,{textAlign:"center",fluid:!0,fontSize:1.5,icon:"window-maximize",onClick:function(){return s(0)}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,i.Button,{textAlign:"center",fluid:!0,fontSize:1.5,color:"bad",icon:"video-slash",onClick:function(){return r("endvideo")}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,i.Button,{textAlign:"center",fluid:!0,fontSize:1.5,color:"bad",icon:"phone-slash",onClick:function(){return r("hang_up")}})})]})}),(0,o.createComponentVNode)(2,i.ByondUi,{width:"200px",height:"200px",params:{id:l,type:"map"}})]}):null},m=function(e,n){var t=(0,a.useBackend)(n),r=(t.act,t.data.currentTab);return(0,o.createComponentVNode)(2,i.Section,{title:"Error!",children:["You tried to access tab #",r,", but there was no template defined!"]})},p=function(e,n){var t=(0,a.useBackend)(n),r=(t.act,t.data),l=r.time,d=r.connectionStatus,s=r.owner,u=r.occupation;return(0,o.createComponentVNode)(2,i.Section,{children:(0,o.createComponentVNode)(2,i.Flex,{align:"center",justify:"space-between",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{color:"average",children:l}),(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Icon,{color:1===d?"good":"bad",name:1===d?"signal":"exclamation-triangle"})}),(0,o.createComponentVNode)(2,i.Flex.Item,{color:"average",children:(0,c.decodeHtmlEntities)(s)}),(0,o.createComponentVNode)(2,i.Flex.Item,{color:"average",children:(0,c.decodeHtmlEntities)(u)})]})})},C=function(e,n){var t=(0,a.useBackend)(n),r=t.act,c=t.data.flashlight,l=e.videoSetting,d=e.setVideoSetting;return(0,o.createComponentVNode)(2,i.Flex,{children:[(0,o.createComponentVNode)(2,i.Flex.Item,{basis:2===l?"60%":"80%",children:(0,o.createComponentVNode)(2,i.Button,{p:1,fluid:!0,icon:"home",iconSize:2,textAlign:"center",onClick:function(){return r("switch_tab",{switch_tab:1})}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{basis:"20%",children:(0,o.createComponentVNode)(2,i.Button,{icon:"lightbulb",iconSize:2,p:1,fluid:!0,textAlign:"center",selected:c,tooltip:"Flashlight",tooltipPosition:"top",onClick:function(){return r("Light")}})}),2===l&&(0,o.createComponentVNode)(2,i.Flex.Item,{basis:"20%",children:(0,o.createComponentVNode)(2,i.Button,{icon:"video",iconSize:2,p:1,fluid:!0,textAlign:"center",tooltip:"Open Video",tooltipPosition:"top",onClick:function(){return d(1)}})})]})},h=function(e,n){var t=(0,a.useBackend)(n).data,o=t.voice_mobs,r=t.communicating,c=t.requestsReceived,i=t.invitesSent,l=t.video_comm;return!("Phone"!==e||!(o.length||r.length||c.length||i.length||l))};s[1]=(0,o.createComponentVNode)(2,(function(e,n){var t=(0,a.useBackend)(n),r=t.act,c=t.data.homeScreen;return(0,o.createComponentVNode)(2,i.Flex,{mt:2,wrap:"wrap",align:"center",justify:"center",children:c.map((function(e){return(0,o.createComponentVNode)(2,i.Flex.Item,{basis:"25%",textAlign:"center",mb:2,children:[(0,o.createComponentVNode)(2,i.Button,{style:{"border-radius":"10%",border:"1px solid #000"},width:"64px",height:"64px",position:"relative",onClick:function(){return r("switch_tab",{switch_tab:e.number})},children:(0,o.createComponentVNode)(2,i.Icon,{spin:h(e.module,n),color:h(e.module,n)?"bad":null,name:e.icon,position:"absolute",size:3,top:"25%",left:"25%"})}),(0,o.createComponentVNode)(2,i.Box,{children:e.module})]},e.number)}))})}));var N=function(e,n){for(var t=(0,a.useBackend)(n),r=t.act,c=t.data.targetAddress,l=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F"].map((function(e){return(0,o.createComponentVNode)(2,i.Button,{content:e,fontSize:2,fluid:!0,onClick:function(){return r("add_hex",{add_hex:e})}},e)})),d=[],s=0;st?n.length>t?n.slice(0,t)+"...":n:e+n},f=function(e,n,t,o){if(t<0||t>o.length)return V(e,n)?"TinderMessage_First_Sent":"TinderMessage_First_Received";var r=V(e,n),c=V(o[t],n);return r&&c?"TinderMessage_Subsequent_Sent":r||c?r?"TinderMessage_First_Sent":"TinderMessage_First_Received":"TinderMessage_Subsequent_Received"};s[40]=(0,o.createComponentVNode)(2,(function(e,n){var t=(0,a.useBackend)(n),r=t.act,l=t.data,d=l.targetAddressName,s=l.targetAddress,u=l.imList,m=(0,a.useLocalState)(n,"clipboardMode",!1),p=m[0],C=m[1];return p?(0,o.createComponentVNode)(2,i.Section,{title:(0,o.createComponentVNode)(2,i.Box,{inline:!0,style:{"white-space":"nowrap","overflow-x":"hidden"},width:"90%",children:b("Conversation with ",(0,c.decodeHtmlEntities)(d),30)}),buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"eye",selected:p,tooltip:"Exit Clipboard Mode",tooltipPosition:"bottom-end",onClick:function(){return C(!p)}}),height:"100%",stretchContents:!0,children:[(0,o.createComponentVNode)(2,i.Section,{style:{height:"95%","overflow-y":"auto"},children:u.map((function(e,n){return(0,o.createComponentVNode)(2,i.Box,{className:V(e,s)?"ClassicMessage_Sent":"ClassicMessage_Received",children:[V(e,s)?"You":"Them",": ",e.im]},n)}))}),(0,o.createComponentVNode)(2,i.Button,{icon:"comment",onClick:function(){return r("message",{message:s})},content:"Message"})]}):(0,o.createComponentVNode)(2,i.Section,{title:(0,o.createComponentVNode)(2,i.Box,{inline:!0,style:{"white-space":"nowrap","overflow-x":"hidden"},width:"100%",children:b("Conversation with ",(0,c.decodeHtmlEntities)(d),30)}),buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"eye",selected:p,tooltip:"Enter Clipboard Mode",tooltipPosition:"bottom-end",onClick:function(){return C(!p)}}),height:"100%",stretchContents:!0,children:[(0,o.createComponentVNode)(2,i.Section,{style:{height:"95%","overflow-y":"auto"},children:u.map((function(e,n,t){return(0,o.createComponentVNode)(2,i.Box,{textAlign:V(e,s)?"right":"left",mb:1,children:(0,o.createComponentVNode)(2,i.Box,{maxWidth:"75%",className:f(e,s,n-1,t),inline:!0,children:(0,c.decodeHtmlEntities)(e.im)})},n)}))}),(0,o.createComponentVNode)(2,i.Button,{icon:"comment",onClick:function(){return r("message",{message:s})},content:"Message"})]})}));var g=function(e,n){var t=(0,a.useBackend)(n),r=t.act,l=t.data.target_feed;return(0,o.createComponentVNode)(2,i.Section,{title:(0,c.decodeHtmlEntities)(l.name)+" by "+(0,c.decodeHtmlEntities)(l.author),level:2,buttons:(0,o.createComponentVNode)(2,i.Button,{content:"Back",icon:"chevron-up",onClick:function(){return r("newsfeed",{newsfeed:null})}}),children:l.messages.map((function(e){return(0,o.createComponentVNode)(2,i.Section,{children:["- ",(0,c.decodeHtmlEntities)(e.body),!!e.img&&(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createVNode)(1,"img",null,null,1,{src:"data:image/png;base64,"+e.img}),(0,c.decodeHtmlEntities)(e.caption)||null]}),(0,o.createComponentVNode)(2,i.Box,{color:"grey",children:["[",e.message_type," by ",(0,c.decodeHtmlEntities)(e.author)," - ",e.time_stamp,"]"]})]},e.ref)}))})},k=function(e,n){var t=(0,a.useBackend)(n),r=t.act,l=t.data,d=l.feeds,s=l.latest_news;return(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Section,{title:"Recent News",level:2,children:(0,o.createComponentVNode)(2,i.Section,{children:s.map((function(e){return(0,o.createComponentVNode)(2,i.Box,{mb:2,children:[(0,o.createVNode)(1,"h5",null,[(0,c.decodeHtmlEntities)(e.channel),(0,o.createComponentVNode)(2,i.Button,{ml:1,icon:"chevron-up",onClick:function(){return r("newsfeed",{newsfeed:e.index})},content:"Go to"})],0),"- ",(0,c.decodeHtmlEntities)(e.body),!!e.img&&(0,o.createComponentVNode)(2,i.Box,{children:["[image omitted, view story for more details]",e.caption||null]}),(0,o.createComponentVNode)(2,i.Box,{fontSize:.9,children:["[",e.message_type," by ",(0,o.createComponentVNode)(2,i.Box,{inline:!0,color:"average",children:e.author})," - ",e.time_stamp,"]"]})]},e.index)}))})}),(0,o.createComponentVNode)(2,i.Section,{title:"News Feeds",level:2,children:d.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{fluid:!0,icon:"chevron-up",onClick:function(){return r("newsfeed",{newsfeed:e.index})},content:e.name},e.index)}))})],4)};s[5]=(0,o.createComponentVNode)(2,(function(e,n){var t=(0,a.useBackend)(n),r=(t.act,t.data),c=r.feeds,l=r.target_feed;return(0,o.createComponentVNode)(2,i.Section,{title:"News",stretchContents:!0,height:"100%",children:!c.length&&(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:"Error: No newsfeeds available. Please try again later."})||l&&(0,o.createComponentVNode)(2,g)||(0,o.createComponentVNode)(2,k)})}));s[6]=(0,o.createComponentVNode)(2,(function(e,n){var t=(0,a.useBackend)(n),r=t.act,c=t.data.note;return(0,o.createComponentVNode)(2,i.Section,{title:"Note Keeper",height:"100%",stretchContents:!0,buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"pen",onClick:function(){return r("edit")},content:"Edit Notes"}),children:(0,o.createComponentVNode)(2,i.Section,{color:"average",width:"100%",height:"100%",style:{"word-break":"break-all","overflow-y":"auto"},children:c})})}));s[7]=(0,o.createComponentVNode)(2,(function(e,n){var t=(0,a.useBackend)(n),l=(t.act,t.data),d=l.aircontents,s=l.weather;return(0,o.createComponentVNode)(2,i.Section,{title:"Weather",children:[(0,o.createComponentVNode)(2,i.Section,{level:2,title:"Current Conditions",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,r.filter)((function(e){return"0"!==e.val||"Pressure"===e.entry||"Temperature"===e.entry}))(d).map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.entry,color:(n=e.val,t=e.bad_low,r=e.poor_low,a=e.poor_high,l=e.bad_high,na?"average":n>l?"bad":"good"),children:[e.val,(0,c.decodeHtmlEntities)(e.units)]},e.entry);var n,t,r,a,l}))})}),(0,o.createComponentVNode)(2,i.Section,{level:2,title:"Weather Reports",children:!!s.length&&(0,o.createComponentVNode)(2,i.LabeledList,{children:s.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.Planet,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Time",children:e.Time}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Weather",children:(0,c.toTitleCase)(e.Weather)}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Temperature",children:["Current: ",e.Temperature.toFixed(),"\xb0C | High: ",e.High.toFixed(),"\xb0C | Low: ",e.Low.toFixed(),"\xb0C"]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Wind Direction",children:e.WindDir}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Wind Speed",children:e.WindSpeed}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Forecast",children:(0,c.decodeHtmlEntities)(e.Forecast)})]})},e.Planet)}))})||(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:"No weather reports available. Please check back later."})})]})})),s[8]=(0,o.createComponentVNode)(2,d.CrewManifestContent);s[9]=(0,o.createComponentVNode)(2,(function(e,n){var t=(0,a.useBackend)(n),r=t.act,l=t.data,d=l.owner,s=l.occupation,u=l.connectionStatus,m=l.address,p=l.visible,C=l.ring,h=l.selfie_mode;return(0,o.createComponentVNode)(2,i.Section,{title:"Settings",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Owner",children:(0,o.createComponentVNode)(2,i.Button,{icon:"pen",fluid:!0,content:(0,c.decodeHtmlEntities)(d),onClick:function(){return r("rename")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Camera Mode",children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,content:h?"Front-facing Camera":"Rear-facing Camera",onClick:function(){return r("selfie_mode")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Occupation",children:(0,c.decodeHtmlEntities)(s)}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Connection",children:1===u?(0,o.createComponentVNode)(2,i.Box,{color:"good",children:"Connected"}):(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:"Disconnected"})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Device EPv2 Address",children:m}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Visibility",children:(0,o.createComponentVNode)(2,i.Button.Checkbox,{checked:p,selected:p,fluid:!0,content:p?"This device can be seen by other devices.":"This device is invisible to other devices.",onClick:function(){return r("toggle_visibility")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Ringer",children:(0,o.createComponentVNode)(2,i.Button.Checkbox,{checked:C,selected:C,fluid:!0,content:C?"Ringer on.":"Ringer off.",onClick:function(){return r("toggle_ringer")}})})]})})}))},2174:function(e,n,t){"use strict";n.__esModule=!0,n.ComputerFabricator=void 0;var o=t(39812),r=(t(2497),t(71494)),c=t(74814),a=t(85952);n.ComputerFabricator=function(e,n){var t=(0,r.useBackend)(n),u=t.act,m=t.data;return(0,o.createComponentVNode)(2,a.Window,{title:"Personal Computer Vendor",width:500,height:420,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{italic:!0,fontSize:"20px",children:"Your perfect device, only three steps away..."}),0!==m.state&&(0,o.createComponentVNode)(2,c.Button,{fluid:!0,mb:1,icon:"circle",content:"Clear Order",onClick:function(){return u("clean_order")}}),0===m.state&&(0,o.createComponentVNode)(2,i),1===m.state&&(0,o.createComponentVNode)(2,l),2===m.state&&(0,o.createComponentVNode)(2,d),3===m.state&&(0,o.createComponentVNode)(2,s)]})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=t.act;t.data;return(0,o.createComponentVNode)(2,c.Section,{title:"Step 1",minHeight:"306px",children:[(0,o.createComponentVNode)(2,c.Box,{mt:5,bold:!0,textAlign:"center",fontSize:"40px",children:"Choose your Device"}),(0,o.createComponentVNode)(2,c.Box,{mt:3,children:(0,o.createComponentVNode)(2,c.Grid,{width:"100%",children:[(0,o.createComponentVNode)(2,c.Grid.Column,{children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"laptop",content:"Laptop",textAlign:"center",fontSize:"30px",lineHeight:2,onClick:function(){return a("pick_device",{pick:"1"})}})}),(0,o.createComponentVNode)(2,c.Grid.Column,{children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"tablet-alt",content:"Tablet",textAlign:"center",fontSize:"30px",lineHeight:2,onClick:function(){return a("pick_device",{pick:"2"})}})})]})})]})},l=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data;return(0,o.createComponentVNode)(2,c.Section,{title:"Step 2: Customize your device",minHeight:"282px",buttons:(0,o.createComponentVNode)(2,c.Box,{bold:!0,color:"good",children:[i.totalprice,"\u20ae"]}),children:[(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{bold:!0,position:"relative",children:["Battery:",(0,o.createComponentVNode)(2,c.Tooltip,{content:"Allows your device to operate without external utility power\nsource. Advanced batteries increase battery life.",position:"right"})]}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"Standard",selected:1===i.hw_battery,onClick:function(){return a("hw_battery",{battery:"1"})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"Upgraded",selected:2===i.hw_battery,onClick:function(){return a("hw_battery",{battery:"2"})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"Advanced",selected:3===i.hw_battery,onClick:function(){return a("hw_battery",{battery:"3"})}})})]}),(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{bold:!0,position:"relative",children:["Hard Drive:",(0,o.createComponentVNode)(2,c.Tooltip,{content:"Stores file on your device. Advanced drives can store more\nfiles, but use more power, shortening battery life.",position:"right"})]}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"Standard",selected:1===i.hw_disk,onClick:function(){return a("hw_disk",{disk:"1"})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"Upgraded",selected:2===i.hw_disk,onClick:function(){return a("hw_disk",{disk:"2"})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"Advanced",selected:3===i.hw_disk,onClick:function(){return a("hw_disk",{disk:"3"})}})})]}),(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{bold:!0,position:"relative",children:["Network Card:",(0,o.createComponentVNode)(2,c.Tooltip,{content:"Allows your device to wirelessly connect to stationwide NTNet\nnetwork. Basic cards are limited to on-station use, while\nadvanced cards can operate anywhere near the station, which\nincludes asteroid outposts",position:"right"})]}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"None",selected:0===i.hw_netcard,onClick:function(){return a("hw_netcard",{netcard:"0"})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"Standard",selected:1===i.hw_netcard,onClick:function(){return a("hw_netcard",{netcard:"1"})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"Advanced",selected:2===i.hw_netcard,onClick:function(){return a("hw_netcard",{netcard:"2"})}})})]}),(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{bold:!0,position:"relative",children:["Nano Printer:",(0,o.createComponentVNode)(2,c.Tooltip,{content:"A device that allows for various paperwork manipulations,\nsuch as, scanning of documents or printing new ones.\nThis device was certified EcoFriendlyPlus and is capable of\nrecycling existing paper for printing purposes.",position:"right"})]}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"None",selected:0===i.hw_nanoprint,onClick:function(){return a("hw_nanoprint",{print:"0"})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"Standard",selected:1===i.hw_nanoprint,onClick:function(){return a("hw_nanoprint",{print:"1"})}})})]}),(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{bold:!0,position:"relative",children:["Secondary Card Reader:",(0,o.createComponentVNode)(2,c.Tooltip,{content:"Adds a secondary RFID card reader, for manipulating or\nreading from a second standard RFID card.\nPlease note that a primary card reader is necessary to\nallow the device to read your identification, but one\nis included in the base price.",position:"right"})]}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"None",selected:0===i.hw_card,onClick:function(){return a("hw_card",{card:"0"})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"Standard",selected:1===i.hw_card,onClick:function(){return a("hw_card",{card:"1"})}})})]}),2!==i.devtype&&(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{bold:!0,position:"relative",children:["Processor Unit:",(0,o.createComponentVNode)(2,c.Tooltip,{content:"A component critical for your device's functionality.\nIt allows you to run programs from your hard drive.\nAdvanced CPUs use more power, but allow you to run\nmore programs on background at once.",position:"right"})]}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"Standard",selected:1===i.hw_cpu,onClick:function(){return a("hw_cpu",{cpu:"1"})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"Advanced",selected:2===i.hw_cpu,onClick:function(){return a("hw_cpu",{cpu:"2"})}})})]}),(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{bold:!0,position:"relative",children:["Tesla Relay:",(0,o.createComponentVNode)(2,c.Tooltip,{content:"An advanced wireless power relay that allows your device\nto connect to nearby area power controller to provide\nalternative power source. This component is currently\nunavailable on tablet computers due to size restrictions.",position:"right"})]}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"None",selected:0===i.hw_tesla,onClick:function(){return a("hw_tesla",{tesla:"0"})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"Standard",selected:1===i.hw_tesla,onClick:function(){return a("hw_tesla",{tesla:"1"})}})})]})]}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,mt:3,content:"Confirm Order",color:"good",textAlign:"center",fontSize:"18px",lineHeight:2,onClick:function(){return a("confirm_order")}})]})},d=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data);return(0,o.createComponentVNode)(2,c.Section,{title:"Step 3: Payment",minHeight:"282px",children:[(0,o.createComponentVNode)(2,c.Box,{italic:!0,textAlign:"center",fontSize:"20px",children:"Your device is ready for fabrication..."}),(0,o.createComponentVNode)(2,c.Box,{bold:!0,mt:2,textAlign:"center",fontSize:"16px",children:[(0,o.createComponentVNode)(2,c.Box,{inline:!0,children:"Please swipe your ID now to authorize payment of:"}),"\xa0",(0,o.createComponentVNode)(2,c.Box,{inline:!0,color:"good",children:[a.totalprice,"\u20ae"]})]})]})},s=function(e,n){return(0,o.createComponentVNode)(2,c.Section,{minHeight:"282px",children:[(0,o.createComponentVNode)(2,c.Box,{bold:!0,textAlign:"center",fontSize:"28px",mt:10,children:"Thank you for your purchase!"}),(0,o.createComponentVNode)(2,c.Box,{italic:!0,mt:1,textAlign:"center",children:"If you experience any difficulties with your new device, please contact your local network administrator."})]})}},26090:function(e,n,t){"use strict";n.__esModule=!0,n.CookingAppliance=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.CookingAppliance=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.temperature,s=l.optimalTemp,u=l.temperatureEnough,m=l.efficiency,p=l.containersRemovable,C=l.our_contents;return(0,o.createComponentVNode)(2,a.Window,{width:600,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Status",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Temperature",children:(0,o.createComponentVNode)(2,c.ProgressBar,{color:u?"good":"blue",value:d,maxValue:s,children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:d}),"\xb0C / ",s,"\xb0C"]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Efficiency",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:m}),"%"]})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Containers",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:C.map((function(e,n){return e.empty?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Slot #"+(n+1),children:(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("slot",{slot:n+1})},children:"Empty"})}):(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Slot #"+(n+1),verticalAlign:"middle",children:(0,o.createComponentVNode)(2,c.Flex,{spacing:1,children:[(0,o.createComponentVNode)(2,c.Flex.Item,{children:(0,o.createComponentVNode)(2,c.Button,{disabled:!p,onClick:function(){return i("slot",{slot:n+1})},children:e.container||"No Container"})}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.ProgressBar,{color:e.progressText[0],value:e.progress,maxValue:1,children:e.progressText[1]})})]})},n)}))})})]})})}},22902:function(e,n,t){"use strict";n.__esModule=!0,n.CrewManifestContent=n.CrewManifest=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=t(76270),l=t(2497);n.CrewManifest=function(e,n){return(0,o.createComponentVNode)(2,a.Window,{width:400,height:600,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,d)})})};var d=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data.manifest);return(0,o.createComponentVNode)(2,c.Section,{title:"Crew Manifest",noTopPadding:!0,children:a.map((function(e){return!!e.elems.length&&(0,o.createComponentVNode)(2,c.Section,{title:(0,o.createComponentVNode)(2,c.Box,{backgroundColor:i.COLORS.manifest[e.cat.toLowerCase()],m:-1,pt:1,pb:1,children:(0,o.createComponentVNode)(2,c.Box,{ml:1,textAlign:"center",fontSize:1.4,children:e.cat})}),level:2,children:(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{header:!0,color:"white",children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Name"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Rank"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Active"})]}),e.elems.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{color:"average",children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,l.decodeHtmlEntities)(e.name)}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.rank}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.active})]},e.name+e.rank)}))]})},e.cat)}))})};n.CrewManifestContent=d},96158:function(e,n,t){"use strict";n.__esModule=!0,n.CrewMonitorContent=n.CrewMonitor=void 0;var o=t(39812),r=t(64499),c=t(85531),a=t(71494),i=t(85952),l=t(74814),d=function(e){return e.dead?"Deceased":1===parseInt(e.stat,10)?"Unconscious":"Living"},s=function(e){return e.dead?"red":1===parseInt(e.stat,10)?"orange":"green"};n.CrewMonitor=function(){return(0,o.createComponentVNode)(2,i.Window,{width:800,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,u)})})};var u=function(e,n){var t,i=(0,a.useBackend)(n),u=i.act,p=i.data,C=(i.config,(0,a.useLocalState)(n,"tabIndex",0)),h=C[0],N=C[1],V=(0,c.flow)([(0,r.sortBy)((function(e){return e.name})),(0,r.sortBy)((function(e){return null==e?void 0:e.x})),(0,r.sortBy)((function(e){return null==e?void 0:e.y})),(0,r.sortBy)((function(e){return null==e?void 0:e.realZ}))])(p.crewmembers||[]),b=(0,a.useLocalState)(n,"zoom",1);b[0],b[1];return t=0===h?(0,o.createComponentVNode)(2,l.Table,{children:[(0,o.createComponentVNode)(2,l.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,l.Table.Cell,{children:"Name"}),(0,o.createComponentVNode)(2,l.Table.Cell,{children:"Status"}),(0,o.createComponentVNode)(2,l.Table.Cell,{children:"Location"})]}),V.map((function(e){return(0,o.createComponentVNode)(2,l.Table.Row,{children:[(0,o.createComponentVNode)(2,l.Table.Cell,{children:[e.name," (",e.assignment,")"]}),(0,o.createComponentVNode)(2,l.Table.Cell,{children:[(0,o.createComponentVNode)(2,l.Box,{inline:!0,color:s(e),children:d(e)}),e.sensor_type>=2?(0,o.createComponentVNode)(2,l.Box,{inline:!0,children:["(",(0,o.createComponentVNode)(2,l.Box,{inline:!0,color:"red",children:e.brute}),"|",(0,o.createComponentVNode)(2,l.Box,{inline:!0,color:"orange",children:e.fire}),"|",(0,o.createComponentVNode)(2,l.Box,{inline:!0,color:"green",children:e.tox}),"|",(0,o.createComponentVNode)(2,l.Box,{inline:!0,color:"blue",children:e.oxy}),")"]}):null]}),(0,o.createComponentVNode)(2,l.Table.Cell,{children:3===e.sensor_type?p.isAI?(0,o.createComponentVNode)(2,l.Button,{fluid:!0,icon:"location-arrow",content:e.area+" ("+e.x+", "+e.y+")",onClick:function(){return u("track",{track:e.ref})}}):e.area+" ("+e.x+", "+e.y+", "+e.z+")":"Not Available"})]},e.ref)}))]}):1===h?(0,o.createComponentVNode)(2,m):"ERROR",(0,o.createFragment)([(0,o.createComponentVNode)(2,l.Tabs,{children:[(0,o.createComponentVNode)(2,l.Tabs.Tab,{selected:0===h,onClick:function(){return N(0)},children:[(0,o.createComponentVNode)(2,l.Icon,{name:"table"})," Data View"]},"DataView"),(0,o.createComponentVNode)(2,l.Tabs.Tab,{selected:1===h,onClick:function(){return N(1)},children:[(0,o.createComponentVNode)(2,l.Icon,{name:"map-marked-alt"})," Map View"]},"MapView")]}),(0,o.createComponentVNode)(2,l.Box,{m:2,children:t})],4)};n.CrewMonitorContent=u;var m=function(e,n){var t=(0,a.useBackend)(n),r=(t.act,t.config),c=t.data,i=(0,a.useLocalState)(n,"zoom",1),d=i[0],u=i[1];return(0,o.createComponentVNode)(2,l.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,o.createComponentVNode)(2,l.NanoMap,{onZoom:function(e){return u(e)},children:c.crewmembers.filter((function(e){return 3===e.sensor_type&&~~e.realZ==~~r.mapZLevel})).map((function(e){return(0,o.createComponentVNode)(2,l.NanoMap.Marker,{x:e.x,y:e.y,zoom:d,icon:"circle",tooltip:e.name+" ("+e.assignment+")",color:s(e)},e.ref)}))})})}},99798:function(e,n,t){"use strict";n.__esModule=!0,n.Cryo=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=[{label:"Resp.",type:"oxyLoss"},{label:"Toxin",type:"toxLoss"},{label:"Brute",type:"bruteLoss"},{label:"Burn",type:"fireLoss"}],l=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]];n.Cryo=function(e,n){return(0,o.createComponentVNode)(2,a.Window,{width:520,height:470,resizeable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{className:"Layout__content--flexColumn",children:(0,o.createComponentVNode)(2,d)})})};var d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,d=t.data,u=d.isOperating,m=d.hasOccupant,p=d.occupant,C=void 0===p?[]:p,h=d.cellTemperature,N=d.cellTemperatureStatus,V=d.isBeakerLoaded;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Occupant",flexGrow:"1",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"user-slash",onClick:function(){return a("ejectOccupant")},disabled:!m,children:"Eject"}),children:m?(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Occupant",children:C.name||"Unknown"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Health",children:(0,o.createComponentVNode)(2,c.ProgressBar,{min:C.health,max:C.maxHealth,value:C.health/C.maxHealth,color:C.health>0?"good":"average",children:(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:Math.round(C.health)})})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Status",color:l[C.stat][0],children:l[C.stat][1]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Temperature",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:Math.round(C.bodyTemperature)})," K"]}),(0,o.createComponentVNode)(2,c.LabeledList.Divider),i.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.label,children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:C[e.type]/100,ranges:{bad:[.01,Infinity]},children:(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:Math.round(C[e.type])})})},e.id)}))]}):(0,o.createComponentVNode)(2,c.Flex,{height:"100%",textAlign:"center",children:(0,o.createComponentVNode)(2,c.Flex.Item,{grow:"1",align:"center",color:"label",children:[(0,o.createComponentVNode)(2,c.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),"No occupant detected."]})})}),(0,o.createComponentVNode)(2,c.Section,{title:"Cell",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"eject",onClick:function(){return a("ejectBeaker")},disabled:!V,children:"Eject Beaker"}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power",children:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",onClick:function(){return a(u?"switchOff":"switchOn")},selected:u,children:u?"On":"Off"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Temperature",color:N,children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:h})," K"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Beaker",children:(0,o.createComponentVNode)(2,s)})]})})],4)},s=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data),i=a.isBeakerLoaded,l=a.beakerLabel,d=a.beakerVolume;return i?(0,o.createFragment)([l||(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No label"}),(0,o.createComponentVNode)(2,c.Box,{color:!d&&"bad",children:d?(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:d,format:function(e){return Math.round(e)+" units remaining"}}):"Beaker is empty"})],0):(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No beaker loaded"})}},54234:function(e,n,t){"use strict";n.__esModule=!0,n.CryoStorageItems=n.CryoStorageCrew=n.CryoStorage=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.CryoStorage=function(e,n){var t=(0,r.useBackend)(n),d=(t.act,t.data),s=d.real_name,u=d.allow_items,m=(0,r.useLocalState)(n,"tab",0),p=m[0],C=m[1];return(0,o.createComponentVNode)(2,a.Window,{width:400,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Tabs,{children:[(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:0===p,onClick:function(){return C(0)},children:"Crew"}),!!u&&(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:1===p,onClick:function(){return C(1)},children:"Items"})]}),(0,o.createComponentVNode)(2,c.NoticeBox,{info:!0,children:["Welcome, ",s,"."]}),0===p&&(0,o.createComponentVNode)(2,i),!!u&&1===p&&(0,o.createComponentVNode)(2,l)]})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data.crew);return(0,o.createComponentVNode)(2,c.Section,{title:"Stored Crew",children:a.length&&a.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{color:"label",children:e},e)}))||(0,o.createComponentVNode)(2,c.Box,{color:"good",children:"No crew currently stored."})})};n.CryoStorageCrew=i;var l=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.items;return(0,o.createComponentVNode)(2,c.Section,{title:"Stored Items",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"hand-rock",onClick:function(){return a("allitems")},children:"Claim All"}),children:i.length&&i.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{icon:"hand-rock",onClick:function(){return a("item",{ref:e.ref})},children:e.name},e.ref)}))||(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No items stored."})})};n.CryoStorageItems=l},66384:function(e,n,t){"use strict";n.__esModule=!0,n.CryoStorageItemsVr=n.CryoStorageVr=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=t(54234);n.CryoStorageVr=function(e,n){var t=(0,r.useBackend)(n),d=(t.act,t.data),s=d.real_name,u=d.allow_items,m=(0,r.useLocalState)(n,"tab",0),p=m[0],C=m[1];return(0,o.createComponentVNode)(2,a.Window,{width:400,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Tabs,{children:[(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:0===p,onClick:function(){return C(0)},children:"Crew"}),!!u&&(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:1===p,onClick:function(){return C(1)},children:"Items"})]}),(0,o.createComponentVNode)(2,c.NoticeBox,{info:!0,children:["Welcome, ",s,"."]}),0===p&&(0,o.createComponentVNode)(2,i.CryoStorageCrew),!!u&&1===p&&(0,o.createComponentVNode)(2,l)]})})};var l=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data.items);return(0,o.createComponentVNode)(2,c.Section,{title:"Stored Items",children:a.length&&a.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{color:"label",children:e},e)}))||(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No items stored."})})};n.CryoStorageItemsVr=l},99579:function(e,n,t){"use strict";n.__esModule=!0,n.DNAForensics=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.DNAForensics=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.scan_progress,s=l.scanning,u=l.bloodsamp,m=l.bloodsamp_desc;return(0,o.createComponentVNode)(2,a.Window,{width:540,height:326,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{title:"Status",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{selected:s,disabled:!u,icon:"power-off",onClick:function(){return i("scanItem")},children:s?"Halt Scan":"Begin Scan"}),(0,o.createComponentVNode)(2,c.Button,{disabled:!u,icon:"eject",onClick:function(){return i("ejectItem")},children:"Eject Bloodsample"})],4),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Scan Progress",children:(0,o.createComponentVNode)(2,c.ProgressBar,{ranges:{good:[99,Infinity],violet:[-Infinity,99]},value:d,maxValue:100})})})}),(0,o.createComponentVNode)(2,c.Section,{title:"Blood Sample",children:u&&(0,o.createComponentVNode)(2,c.Box,{children:[u,(0,o.createComponentVNode)(2,c.Box,{color:"label",children:m})]})||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No blood sample inserted."})})]})})}},21849:function(e,n,t){"use strict";n.__esModule=!0,n.DNAModifier=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=t(16007),l=[["good","Alive"],["average","Unconscious"],["bad","DEAD"]],d=[["ui","Modify U.I.","dna"],["se","Modify S.E.","dna"],["buffer","Transfer Buffers","syringe"],["rejuvenators","Rejuvenators","flask"]],s=[5,10,20,30,50];n.DNAModifier=function(e,n){var t,c=(0,r.useBackend)(n),l=(c.act,c.data),d=l.irradiating,s=l.dnaBlockSize,p=l.occupant;return n.dnaBlockSize=s,n.isDNAInvalid=!p.isViableSubject||!p.uniqueIdentity||!p.structuralEnzymes,d&&(t=(0,o.createComponentVNode)(2,g,{duration:d})),(0,o.createComponentVNode)(2,a.Window,{width:660,height:700,resizable:!0,children:[(0,o.createComponentVNode)(2,i.ComplexModal),t,(0,o.createComponentVNode)(2,a.Window.Content,{className:"Layout__content--flexColumn",children:[(0,o.createComponentVNode)(2,u),(0,o.createComponentVNode)(2,m)]})]})};var u=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,d=i.locked,s=i.hasOccupant,u=i.occupant;return(0,o.createComponentVNode)(2,c.Section,{title:"Occupant",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Box,{color:"label",inline:!0,mr:"0.5rem",children:"Door Lock:"}),(0,o.createComponentVNode)(2,c.Button,{disabled:!s,selected:d,icon:d?"toggle-on":"toggle-off",content:d?"Engaged":"Disengaged",onClick:function(){return a("toggleLock")}}),(0,o.createComponentVNode)(2,c.Button,{disabled:!s||d,icon:"user-slash",content:"Eject",onClick:function(){return a("ejectOccupant")}})],4),children:s?(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Name",children:u.name}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Health",children:(0,o.createComponentVNode)(2,c.ProgressBar,{min:u.minHealth,max:u.maxHealth,value:u.health/u.maxHealth,ranges:{good:[.5,Infinity],average:[0,.5],bad:[-Infinity,0]}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Status",color:l[u.stat][0],children:l[u.stat][1]}),(0,o.createComponentVNode)(2,c.LabeledList.Divider)]})}),n.isDNAInvalid?(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:[(0,o.createComponentVNode)(2,c.Icon,{name:"exclamation-circle"}),"\xa0 The occupant's DNA structure is ruined beyond recognition, please insert a subject with an intact DNA structure."]}):(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Radiation",children:(0,o.createComponentVNode)(2,c.ProgressBar,{min:"0",max:"100",value:u.radiationLevel/100,color:"average"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Unique Enzymes",children:i.occupant.uniqueEnzymes?i.occupant.uniqueEnzymes:(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:[(0,o.createComponentVNode)(2,c.Icon,{name:"exclamation-circle"}),"\xa0 Unknown"]})})]})],0):(0,o.createComponentVNode)(2,c.Box,{color:"label",children:"Cell unoccupied."})})},m=function(e,n){var t,a=(0,r.useBackend)(n),i=a.act,l=a.data,s=l.selectedMenuKey,u=l.hasOccupant;l.occupant;return u?n.isDNAInvalid?(0,o.createComponentVNode)(2,c.Section,{flexGrow:"1",children:(0,o.createComponentVNode)(2,c.Flex,{height:"100%",children:(0,o.createComponentVNode)(2,c.Flex.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,o.createComponentVNode)(2,c.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),"No operation possible on this subject."]})})}):("ui"===s?t=(0,o.createFragment)([(0,o.createComponentVNode)(2,p),(0,o.createComponentVNode)(2,h)],4):"se"===s?t=(0,o.createFragment)([(0,o.createComponentVNode)(2,C),(0,o.createComponentVNode)(2,h)],4):"buffer"===s?t=(0,o.createComponentVNode)(2,N):"rejuvenators"===s&&(t=(0,o.createComponentVNode)(2,f)),(0,o.createComponentVNode)(2,c.Section,{flexGrow:"1",children:[(0,o.createComponentVNode)(2,c.Tabs,{children:d.map((function(e,n){return(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:s===e[0],onClick:function(){return i("selectMenuKey",{key:e[0]})},children:[(0,o.createComponentVNode)(2,c.Icon,{name:e[2]}),e[1]]},n)}))}),t]})):(0,o.createComponentVNode)(2,c.Section,{flexGrow:"1",children:(0,o.createComponentVNode)(2,c.Flex,{height:"100%",children:(0,o.createComponentVNode)(2,c.Flex.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,o.createComponentVNode)(2,c.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),"No occupant in DNA modifier."]})})})},p=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.selectedUIBlock,d=i.selectedUISubBlock,s=i.selectedUITarget,u=i.occupant;return(0,o.createComponentVNode)(2,c.Section,{title:"Modify Unique Identifier",level:"2",children:[(0,o.createComponentVNode)(2,k,{dnaString:u.uniqueIdentity,selectedBlock:l,selectedSubblock:d,blockSize:n.dnaBlockSize,action:"selectUIBlock"}),(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Target",children:(0,o.createComponentVNode)(2,c.Knob,{minValue:"1",maxValue:"15",stepPixelSize:"20",value:s,format:function(e){return e.toString(16).toUpperCase()},ml:"0",onChange:function(e,n){return a("changeUITarget",{value:n})}})})}),(0,o.createComponentVNode)(2,c.Button,{icon:"radiation",content:"Irradiate Block",mt:"0.5rem",onClick:function(){return a("pulseUIRadiation")}})]})},C=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.selectedSEBlock,d=i.selectedSESubBlock,s=i.occupant;return(0,o.createComponentVNode)(2,c.Section,{title:"Modify Structural Enzymes",level:"2",children:[(0,o.createComponentVNode)(2,k,{dnaString:s.structuralEnzymes,selectedBlock:l,selectedSubblock:d,blockSize:n.dnaBlockSize,action:"selectSEBlock"}),(0,o.createComponentVNode)(2,c.Button,{icon:"radiation",content:"Irradiate Block",onClick:function(){return a("pulseSERadiation")}})]})},h=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.radiationIntensity,d=i.radiationDuration;return(0,o.createComponentVNode)(2,c.Section,{title:"Radiation Emitter",level:"2",children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Intensity",children:(0,o.createComponentVNode)(2,c.Knob,{minValue:"1",maxValue:"10",stepPixelSize:"20",value:l,popUpPosition:"right",ml:"0",onChange:function(e,n){return a("radiationIntensity",{value:n})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Duration",children:(0,o.createComponentVNode)(2,c.Knob,{minValue:"1",maxValue:"20",stepPixelSize:"10",unit:"s",value:d,popUpPosition:"right",ml:"0",onChange:function(e,n){return a("radiationDuration",{value:n})}})})]}),(0,o.createComponentVNode)(2,c.Button,{icon:"radiation",content:"Pulse Radiation",tooltip:"Mutates a random block of either the occupant's UI or SE.",tooltipPosition:"top",mt:"0.5rem",onClick:function(){return a("pulseRadiation")}})]})},N=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data.buffers.map((function(e,n){return(0,o.createComponentVNode)(2,V,{id:n+1,name:"Buffer "+(n+1),buffer:e},n)})));return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Buffers",level:"2",children:a}),(0,o.createComponentVNode)(2,b)],4)},V=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=e.id,d=e.name,s=e.buffer,u=i.isInjectorReady,m=d+(s.data?" - "+s.label:"");return(0,o.createComponentVNode)(2,c.Box,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,o.createComponentVNode)(2,c.Section,{title:m,level:"3",mx:"0",lineHeight:"18px",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button.Confirm,{disabled:!s.data,icon:"trash",content:"Clear",onClick:function(){return a("bufferOption",{option:"clear",id:l})}}),(0,o.createComponentVNode)(2,c.Button,{disabled:!s.data,icon:"pen",content:"Rename",onClick:function(){return a("bufferOption",{option:"changeLabel",id:l})}}),(0,o.createComponentVNode)(2,c.Button,{disabled:!s.data||!i.hasDisk,icon:"save",content:"Export",tooltip:"Exports this buffer to the currently loaded data disk.",tooltipPosition:"bottom-end",onClick:function(){return a("bufferOption",{option:"saveDisk",id:l})}})],4),children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Write",children:[(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-circle-down",content:"Subject U.I",mb:"0",onClick:function(){return a("bufferOption",{option:"saveUI",id:l})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-circle-down",content:"Subject U.I and U.E.",mb:"0",onClick:function(){return a("bufferOption",{option:"saveUIAndUE",id:l})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-circle-down",content:"Subject S.E.",mb:"0",onClick:function(){return a("bufferOption",{option:"saveSE",id:l})}}),(0,o.createComponentVNode)(2,c.Button,{disabled:!i.hasDisk||!i.disk.data,icon:"arrow-circle-down",content:"From Disk",mb:"0",onClick:function(){return a("bufferOption",{option:"loadDisk",id:l})}})]}),!!s.data&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Subject",children:s.owner||(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"Unknown"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Data Type",children:["ui"===s.type?"Unique Identifiers":"Structural Enzymes",!!s.ue&&" and Unique Enzymes"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Transfer to",children:[(0,o.createComponentVNode)(2,c.Button,{disabled:!u,icon:u?"syringe":"spinner",iconSpin:!u,content:"Injector",mb:"0",onClick:function(){return a("bufferOption",{option:"createInjector",id:l})}}),(0,o.createComponentVNode)(2,c.Button,{disabled:!u,icon:u?"syringe":"spinner",iconSpin:!u,content:"Block Injector",mb:"0",onClick:function(){return a("bufferOption",{option:"createInjector",id:l,block:1})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"user",content:"Subject",mb:"0",onClick:function(){return a("bufferOption",{option:"transfer",id:l})}})]})],4)]}),!s.data&&(0,o.createComponentVNode)(2,c.Box,{color:"label",mt:"0.5rem",children:"This buffer is empty."})]})})},b=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.hasDisk,d=i.disk;return(0,o.createComponentVNode)(2,c.Section,{title:"Data Disk",level:"2",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button.Confirm,{disabled:!l||!d.data,icon:"trash",content:"Wipe",onClick:function(){return a("wipeDisk")}}),(0,o.createComponentVNode)(2,c.Button,{disabled:!l,icon:"eject",content:"Eject",onClick:function(){return a("ejectDisk")}})],4),children:l?d.data?(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Label",children:d.label?d.label:"No label"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Subject",children:d.owner?d.owner:(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"Unknown"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Data Type",children:["ui"===d.type?"Unique Identifiers":"Structural Enzymes",!!d.ue&&" and Unique Enzymes"]})]}):(0,o.createComponentVNode)(2,c.Box,{color:"label",children:"Disk is blank."}):(0,o.createComponentVNode)(2,c.Box,{color:"label",textAlign:"center",my:"1rem",children:[(0,o.createComponentVNode)(2,c.Icon,{name:"save-o",size:"4"}),(0,o.createVNode)(1,"br"),"No disk inserted."]})})},f=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.isBeakerLoaded,d=i.beakerVolume,u=i.beakerLabel;return(0,o.createComponentVNode)(2,c.Section,{title:"Rejuvenators and Beaker",level:"2",buttons:(0,o.createComponentVNode)(2,c.Button,{disabled:!l,icon:"eject",content:"Eject",onClick:function(){return a("ejectBeaker")}}),children:l?(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Inject",children:[s.map((function(e,n){return(0,o.createComponentVNode)(2,c.Button,{disabled:e>d,icon:"syringe",content:e,onClick:function(){return a("injectRejuvenators",{amount:e})}},n)})),(0,o.createComponentVNode)(2,c.Button,{disabled:d<=0,icon:"syringe",content:"All",onClick:function(){return a("injectRejuvenators",{amount:d})}})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Beaker",children:[(0,o.createComponentVNode)(2,c.Box,{mb:"0.5rem",children:u||"No label"}),d?(0,o.createComponentVNode)(2,c.Box,{color:"good",children:[d," unit",1===d?"":"s"," remaining"]}):(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Empty"})]})]}):(0,o.createComponentVNode)(2,c.Box,{color:"label",textAlign:"center",my:"25%",children:[(0,o.createComponentVNode)(2,c.Icon,{name:"exclamation-triangle",size:"4"}),(0,o.createVNode)(1,"br"),"No beaker loaded."]})})},g=function(e,n){return(0,o.createComponentVNode)(2,c.Dimmer,{textAlign:"center",children:[(0,o.createComponentVNode)(2,c.Icon,{name:"spinner",size:"5",spin:!0}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Box,{color:"average",children:(0,o.createVNode)(1,"h1",null,[(0,o.createComponentVNode)(2,c.Icon,{name:"radiation"}),(0,o.createTextVNode)("\xa0Irradiating occupant\xa0"),(0,o.createComponentVNode)(2,c.Icon,{name:"radiation"})],4)}),(0,o.createComponentVNode)(2,c.Box,{color:"label",children:(0,o.createVNode)(1,"h3",null,[(0,o.createTextVNode)("For "),e.duration,(0,o.createTextVNode)(" second"),1===e.duration?"":"s"],0)})]})},k=function(e,n){for(var t=(0,r.useBackend)(n),a=t.act,i=(t.data,e.dnaString),l=e.selectedBlock,d=e.selectedSubblock,s=e.blockSize,u=e.action,m=i.split(""),p=[],C=function(e){for(var n=e/s+1,t=[],r=function(r){var i=r+1;t.push((0,o.createComponentVNode)(2,c.Button,{selected:l===n&&d===i,content:m[e+r],mb:"0",onClick:function(){return a(u,{block:n,subblock:i})}}))},i=0;i1?"Dangerous!":null]},e.stage)}))||(0,o.createComponentVNode)(2,c.Box,{children:"No virus sample loaded."})}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Affected Species",color:"label",children:[m&&m.length?null:"None",m.sort().join(", ")]}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Reverse Engineering",children:[(0,o.createComponentVNode)(2,c.Box,{color:"bad",mb:1,children:(0,o.createVNode)(1,"i",null,"CAUTION: Reverse engineering will destroy the viral sample.",16)}),d.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{content:e.stage,icon:"exchange-alt",onClick:function(){return a("grab",{grab:e.reference})}},e.stage)})),(0,o.createComponentVNode)(2,c.Button,{content:"Species",icon:"exchange-alt",onClick:function(){return a("affected_species")}})]})],4)]})},l=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=(i.dish_inserted,i.buffer),d=i.species_buffer,s=(i.effects,i.info);i.growth,i.affected_species,i.busy;return(0,o.createComponentVNode)(2,c.Section,{title:"Storage",children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Memory Buffer",children:l?(0,o.createComponentVNode)(2,c.Box,{children:[l.name," (",l.stage,")"]}):d?(0,o.createComponentVNode)(2,c.Box,{children:d}):"Empty"})}),(0,o.createComponentVNode)(2,c.Button,{mt:1,icon:"save",content:"Save To Disk",disabled:!l&&!d,onClick:function(){return a("disk")}}),l?(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{icon:"pen",content:"Splice #1",disabled:l.stage>1,onClick:function(){return a("splice",{splice:1})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"pen",content:"Splice #2",disabled:l.stage>2,onClick:function(){return a("splice",{splice:2})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"pen",content:"Splice #3",disabled:l.stage>3,onClick:function(){return a("splice",{splice:3})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"pen",content:"Splice #4",disabled:l.stage>4,onClick:function(){return a("splice",{splice:4})}})]}):d?(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"pen",content:"Splice Species",disabled:!d||s,onClick:function(){return a("splice",{splice:5})}})}):null]})}},31066:function(e,n,t){"use strict";n.__esModule=!0,n.DishIncubator=void 0;var o=t(39812),r=(t(41860),t(58083)),c=t(71494),a=t(74814),i=t(85952);n.DishIncubator=function(e,n){var t=(0,c.useBackend)(n),l=t.act,d=t.data,s=d.on,u=d.system_in_use,m=d.food_supply,p=d.radiation,C=d.growth,h=d.toxins,N=d.chemicals_inserted,V=d.can_breed_virus,b=d.chemical_volume,f=d.max_chemical_volume,g=d.dish_inserted,k=d.blood_already_infected,v=d.virus,B=d.analysed,L=d.infection_rate;return(0,o.createComponentVNode)(2,i.Window,{width:400,height:600,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{title:"Environmental Conditions",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",selected:s,content:s?"On":"Off",onClick:function(){return l("power")}}),children:[(0,o.createComponentVNode)(2,a.Flex,{spacing:1,mb:1,children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"radiation",content:"Add Radiation",onClick:function(){return l("rad")}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Button.Confirm,{fluid:!0,color:"red",icon:"trash",confirmIcon:"trash",content:"Flush System",disabled:!u,onClick:function(){return l("flush")}})})]}),(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Virus Food",children:(0,o.createComponentVNode)(2,a.ProgressBar,{minValue:0,maxValue:100,ranges:{good:[40,Infinity],average:[20,40],bad:[-Infinity,20]},value:m})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Radiation Level",children:(0,o.createComponentVNode)(2,a.ProgressBar,{minValue:0,maxValue:100,color:p>=50?"bad":C>=25?"average":"good",value:p,children:[(0,r.formatCommaNumber)(1e4*p)," \xb5Sv"]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Toxicity",children:(0,o.createComponentVNode)(2,a.ProgressBar,{minValue:0,maxValue:100,ranges:{bad:[50,Infinity],average:[25,50],good:[-Infinity,25]},value:h})})]})]}),(0,o.createComponentVNode)(2,a.Section,{title:V?"Vial":"Chemicals",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"eject",content:"Eject "+(V?"Vial":"Chemicals"),disabled:!N,onClick:function(){return l("ejectchem")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"virus",content:"Breed Virus",disabled:!V,onClick:function(){return l("virus")}})],4),children:N&&(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Volume",children:(0,o.createComponentVNode)(2,a.ProgressBar,{minValue:0,maxValue:f,value:b,children:[b,"/",f]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Breeding Environment",color:V?"good":"average",children:[g?V?"Suitable":"No hemolytic samples detected":"N/A",k?(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"CAUTION: Viral infection detected in blood sample."}):null]})]})})||(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"No chemicals inserted."})}),(0,o.createComponentVNode)(2,a.Section,{title:"Virus Dish",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"eject",content:"Eject Dish",disabled:!g,onClick:function(){return l("ejectdish")}}),children:g?v?(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Growth Density",children:(0,o.createComponentVNode)(2,a.ProgressBar,{minValue:0,maxValue:100,ranges:{good:[50,Infinity],average:[25,50],bad:[-Infinity,25]},value:C})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Infection Rate",children:B?L:"Unknown."})]}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"No virus detected."}):(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"No dish loaded."})})]})})}},19095:function(e,n,t){"use strict";n.__esModule=!0,n.DisposalBin=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.DisposalBin=function(e,n){var t,i,l=(0,r.useBackend)(n),d=l.act,s=l.data;return 2===s.mode?(t="good",i="Ready"):s.mode<=0?(t="bad",i="N/A"):1===s.mode?(t="average",i="Pressurizing"):(t="average",i="Idle"),(0,o.createComponentVNode)(2,a.Window,{width:300,height:250,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{children:[(0,o.createComponentVNode)(2,c.Box,{bold:!0,m:1,children:"Status"}),(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"State",color:t,children:i}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Pressure",children:(0,o.createComponentVNode)(2,c.ProgressBar,{ranges:{bad:[-Infinity,0],average:[0,99],good:[99,Infinity]},value:s.pressure,minValue:0,maxValue:100})})]}),(0,o.createComponentVNode)(2,c.Box,{bold:!0,m:1,children:"Controls"}),(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Handle",children:[(0,o.createComponentVNode)(2,c.Button,{icon:"toggle-off",disabled:s.isAI||s.panel_open,content:"Disengaged",selected:s.flushing?null:"selected",onClick:function(){return d("disengageHandle")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"toggle-on",disabled:s.isAI||s.panel_open,content:"Engaged",selected:s.flushing?"selected":null,onClick:function(){return d("engageHandle")}})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power",children:[(0,o.createComponentVNode)(2,c.Button,{icon:"toggle-off",disabled:-1===s.mode,content:"Off",selected:s.mode?null:"selected",onClick:function(){return d("pumpOff")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"toggle-on",disabled:-1===s.mode,content:"On",selected:s.mode?"selected":null,onClick:function(){return d("pumpOn")}})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Eject",children:(0,o.createComponentVNode)(2,c.Button,{icon:"sign-out-alt",disabled:s.isAI,content:"Eject Contents",onClick:function(){return d("eject")}})})]})]})})})}},29345:function(e,n,t){"use strict";n.__esModule=!0,n.DroneConsole=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.DroneConsole=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.drones,s=l.areas,u=l.selected_area,m=l.fabricator,p=l.fabPower;return(0,o.createComponentVNode)(2,a.Window,{width:600,height:350,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Drone Fabricator",buttons:(0,o.createComponentVNode)(2,c.Button,{disabled:!m,selected:p,icon:"power-off",content:p?"Enabled":"Disabled",onClick:function(){return i("toggle_fab")}}),children:m?(0,o.createComponentVNode)(2,c.Box,{color:"good",children:"Linked."}):(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:["Fabricator not detected.",(0,o.createComponentVNode)(2,c.Button,{icon:"sync",content:"Search for Fabricator",onClick:function(){return i("search_fab")}})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Request Drone",children:[(0,o.createComponentVNode)(2,c.Dropdown,{options:s?s.sort():null,selected:u,width:"100%",onSelected:function(e){return i("set_dcall_area",{area:e})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"share-square",content:"Send Ping",onClick:function(){return i("ping")}})]}),(0,o.createComponentVNode)(2,c.Section,{title:"Maintenance Units",children:d&&d.length?(0,o.createComponentVNode)(2,c.LabeledList,{children:d.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"sync",content:"Resync",onClick:function(){return i("resync",{ref:e.ref})}}),(0,o.createComponentVNode)(2,c.Button.Confirm,{icon:"exclamation-triangle",color:"red",content:"Shutdown",onClick:function(){return i("shutdown",{ref:e.ref})}})],4),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Location",children:e.loc}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Charge",children:[e.charge," / ",e.maxCharge]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Active",children:e.active?"Yes":"No"})]})},e.name)}))}):(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No drones detected."})})]})})}},84122:function(e,n,t){"use strict";n.__esModule=!0,n.EmbeddedController=void 0;var o=t(39812),r=(t(2497),t(41860),t(71494)),c=t(74814),a=t(85952),i=((0,t(88654).createLogger)("fuck"),{});n.EmbeddedController=function(e,n){var t=(0,r.useBackend)(n),c=(t.act,t.data.internalTemplateName),l=i[c];if(!l)throw Error("Unable to find Component for template name: "+c);return(0,o.createComponentVNode)(2,a.Window,{width:450,height:340,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,l)})})};var l=function(e,n){var t=e.bars;return(0,o.createComponentVNode)(2,c.Section,{title:"Status",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:t.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.label,children:(0,o.createComponentVNode)(2,c.ProgressBar,{color:e.color(e.value),minValue:e.minValue,maxValue:e.maxValue,value:e.value,children:e.textValue})},e.label)}))})})},d=function(e,n){var t=(0,r.useBackend)(n),a=t.data,i=t.act,l=!0;a.interior_status&&"open"===a.interior_status.state?l=!1:a.external_pressure&&a.chamber_pressure&&(l=!(Math.abs(a.external_pressure-a.chamber_pressure)>5));var d=!0;return a.exterior_status&&"open"===a.exterior_status.state?d=!1:a.internal_pressure&&a.chamber_pressure&&(d=!(Math.abs(a.internal_pressure-a.chamber_pressure)>5)),(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{disabled:a.airlock_disabled,icon:"arrow-left",content:"Cycle to Exterior",onClick:function(){return i("cycle_ext")}}),(0,o.createComponentVNode)(2,c.Button,{disabled:a.airlock_disabled,icon:"arrow-right",content:"Cycle to Interior",onClick:function(){return i("cycle_int")}})]}),(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button.Confirm,{disabled:a.airlock_disabled,color:l?"":"bad",icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",content:"Force Exterior Door",onClick:function(){return i("force_ext")}}),(0,o.createComponentVNode)(2,c.Button.Confirm,{disabled:a.airlock_disabled,color:d?"":"bad",icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",content:"Force Interior Door",onClick:function(){return i("force_int")}})]})],4)},s=function(e,n){var t=(0,r.useBackend)(n),a=t.data,i=(t.act,{docked:(0,o.createComponentVNode)(2,u),undocking:(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"EJECTING-STAND CLEAR!"}),undocked:(0,o.createComponentVNode)(2,c.Box,{color:"grey",children:"POD EJECTED"}),docking:(0,o.createComponentVNode)(2,c.Box,{color:"good",children:"INITIALIZING..."})}),l=(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"ERROR"});return"open"===a.exterior_status.state?l=(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"OPEN"}):"unlocked"===a.exterior_status.lock?l=(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"UNSECURED"}):"locked"===a.exterior_status.lock&&(l=(0,o.createComponentVNode)(2,c.Box,{color:"good",children:"SECURED"})),(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Escape Pod Status",children:i[a.docking_status]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Docking Hatch",children:l})]})})},u=function(e,n){var t=(0,r.useBackend)(n),a=t.data;t.act;return a.armed?(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"ARMED"}):(0,o.createComponentVNode)(2,c.Box,{color:"good",children:"SYSTEMS OK"})},m=function(e,n){var t=(0,r.useBackend)(n),a=t.data,i=t.act;return(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{disabled:!a.override_enabled,icon:"exclamation-triangle",content:"Force Exterior Door",color:"docked"!==a.docking_status?"bad":"",onClick:function(){return i("force_door")}}),(0,o.createComponentVNode)(2,c.Button,{selected:a.override_enabled,color:"docked"!==a.docking_status?"bad":"average",icon:"exclamation-triangle",content:"Override",onClick:function(){return i("toggle_override")}})]})},p=function(e,n){var t=(0,r.useBackend)(n),a=t.data,i=(t.act,{docked:(0,o.createComponentVNode)(2,c.Box,{color:"good",children:"DOCKED"}),docking:(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"DOCKING"}),undocking:(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"UNDOCKING"}),undocked:(0,o.createComponentVNode)(2,c.Box,{color:"grey",children:"NOT IN USE"})}[a.docking_status]);return a.override_enabled&&(i=(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:[a.docking_status.toUpperCase(),"-OVERRIDE ENABLED"]})),i};i.AirlockConsoleAdvanced=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,s=function(e){return e<80||e>120?"bad":e<95||e>110?"average":"good"},u=[{minValue:0,maxValue:202,value:i.external_pressure,label:"External Pressure",textValue:i.external_pressure+" kPa",color:s},{minValue:0,maxValue:202,value:i.chamber_pressure,label:"Chamber Pressure",textValue:i.chamber_pressure+" kPa",color:s},{minValue:0,maxValue:202,value:i.internal_pressure,label:"Internal Pressure",textValue:i.internal_pressure+" kPa",color:s}];return(0,o.createFragment)([(0,o.createComponentVNode)(2,l,{bars:u}),(0,o.createComponentVNode)(2,c.Section,{title:"Controls",children:[(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{icon:"sync",content:"Purge",onClick:function(){return a("purge")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"lock-open",content:"Secure",onClick:function(){return a("secure")}})]}),(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Button,{disabled:!i.processing,icon:"ban",color:"bad",content:"Abort",onClick:function(){return a("abort")}})})]})],4)};i.AirlockConsoleSimple=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,s=[{minValue:0,maxValue:202,value:i.chamber_pressure,label:"Chamber Pressure",textValue:i.chamber_pressure+" kPa",color:function(e){return e<80||e>120?"bad":e<95||e>110?"average":"good"}}];return(0,o.createFragment)([(0,o.createComponentVNode)(2,l,{bars:s}),(0,o.createComponentVNode)(2,c.Section,{title:"Controls",children:[(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Button,{disabled:!i.processing,icon:"ban",color:"bad",content:"Abort",onClick:function(){return a("abort")}})})]})],4)};i.AirlockConsolePhoron=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,s=[{minValue:0,maxValue:202,value:i.chamber_pressure,label:"Chamber Pressure",textValue:i.chamber_pressure+" kPa",color:function(e){return e<80||e>120?"bad":e<95||e>110?"average":"good"}},{minValue:0,maxValue:100,value:i.chamber_phoron,label:"Chamber Phoron",textValue:i.chamber_phoron+" mol",color:function(e){return e>5?"bad":e>.5?"average":"good"}}];return(0,o.createFragment)([(0,o.createComponentVNode)(2,l,{bars:s}),(0,o.createComponentVNode)(2,c.Section,{title:"Controls",children:[(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Button,{disabled:!i.processing,icon:"ban",color:"bad",content:"Abort",onClick:function(){return a("abort")}})})]})],4)};i.AirlockConsoleDocking=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,s=[{minValue:0,maxValue:202,value:i.chamber_pressure,label:"Chamber Pressure",textValue:i.chamber_pressure+" kPa",color:function(e){return e<80||e>120?"bad":e<95||e>110?"average":"good"}}];return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Dock",buttons:i.airlock_disabled||i.override_enabled?(0,o.createComponentVNode)(2,c.Button,{icon:"exclamation-triangle",color:i.override_enabled?"red":"",content:"Override",onClick:function(){return a("toggle_override")}}):null,children:(0,o.createComponentVNode)(2,p)}),(0,o.createComponentVNode)(2,l,{bars:s}),(0,o.createComponentVNode)(2,c.Section,{title:"Controls",children:[(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Button,{disabled:!i.processing,icon:"ban",color:"bad",content:"Abort",onClick:function(){return a("abort")}})})]})],4)};i.DockingConsoleSimple=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"ERROR"});return"open"===i.exterior_status.state?l=(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"OPEN"}):"unlocked"===i.exterior_status.lock?l=(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"UNSECURED"}):"locked"===i.exterior_status.lock&&(l=(0,o.createComponentVNode)(2,c.Box,{color:"good",children:"SECURED"})),(0,o.createComponentVNode)(2,c.Section,{title:"Status",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"exclamation-triangle",disabled:!i.override_enabled,content:"Force exterior door",onClick:function(){return a("force_door")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"exclamation-triangle",color:i.override_enabled?"red":"",content:"Override",onClick:function(){return a("toggle_override")}})],4),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Dock Status",children:(0,o.createComponentVNode)(2,p)}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Docking Hatch",children:l})]})})};i.DockingConsoleMulti=function(e,n){var t=(0,r.useBackend)(n).data;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Docking Status",children:(0,o.createComponentVNode)(2,p)}),(0,o.createComponentVNode)(2,c.Section,{title:"Airlocks",children:t.airlocks.length?(0,o.createComponentVNode)(2,c.LabeledList,{children:t.airlocks.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{color:e.override_enabled?"bad":"good",label:e.name,children:e.override_enabled?"OVERRIDE ENABLED":"STATUS OK"},e.name)}))}):(0,o.createComponentVNode)(2,c.Flex,{height:"100%",mt:"0.5em",children:(0,o.createComponentVNode)(2,c.Flex.Item,{grow:"1",align:"center",textAlign:"center",color:"bad",children:[(0,o.createComponentVNode)(2,c.Icon,{name:"door-closed",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),"No airlocks found."]})})})],4)};i.DoorAccessConsole=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l="open"===i.interior_status.state||"closed"===i.exterior_status.state,d="open"===i.exterior_status.state||"closed"===i.interior_status.state;return(0,o.createComponentVNode)(2,c.Section,{title:"Status",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:l?"arrow-left":"exclamation-triangle",content:l?"Cycle To Exterior":"Lock Exterior Door",onClick:function(){a(l?"cycle_ext_door":"force_ext")}}),(0,o.createComponentVNode)(2,c.Button,{icon:d?"arrow-right":"exclamation-triangle",content:d?"Cycle To Interior":"Lock Interior Door",onClick:function(){a(d?"cycle_int_door":"force_int")}})],0),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Exterior Door Status",children:"closed"===i.exterior_status.state?"Locked":"Open"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Interior Door Status",children:"closed"===i.interior_status.state?"Locked":"Open"})]})})};i.EscapePodConsole=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data;return(0,o.createFragment)([(0,o.createComponentVNode)(2,s),(0,o.createComponentVNode)(2,c.Section,{title:"Controls",children:[(0,o.createComponentVNode)(2,m),(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{icon:"exclamation-triangle",disabled:i.armed,color:i.armed?"bad":"average",content:"ARM",onClick:function(){return a("manual_arm")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"exclamation-triangle",disabled:!i.can_force,color:"bad",content:"MANUAL EJECT",onClick:function(){return a("force_launch")}})]})]})],4)};i.EscapePodBerthConsole=function(e,n){(0,r.useBackend)(n).data;return(0,o.createFragment)([(0,o.createComponentVNode)(2,s),(0,o.createComponentVNode)(2,c.Section,{title:"Controls",children:(0,o.createComponentVNode)(2,m)})],4)}},33777:function(e,n,t){"use strict";n.__esModule=!0,n.ExonetNode=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.ExonetNode=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.on,s=l.allowPDAs,u=l.allowCommunicators,m=l.allowNewscasters,p=l.logs;return(0,o.createComponentVNode)(2,a.Window,{width:400,height:400,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Status",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:d,content:"Power "+(d?"On":"Off"),onClick:function(){return i("toggle_power")}}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Incoming PDA Messages",children:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:s,content:s?"Open":"Closed",onClick:function(){return i("toggle_PDA_port")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Incoming Communicators",children:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:u,content:u?"Open":"Closed",onClick:function(){return i("toggle_communicator_port")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Incoming Newscaster Content",children:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:m,content:m?"Open":"Closed",onClick:function(){return i("toggle_newscaster_port")}})})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Logging",children:(0,o.createComponentVNode)(2,c.Flex,{wrap:"wrap",children:[p.map((function(e,n){return(0,o.createComponentVNode)(2,c.Flex.Item,{m:"2px",basis:"49%",grow:n%2,children:e},n)})),p&&0!==p.length?null:(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No logs found."})]})})]})})}},95481:function(e,n,t){"use strict";n.__esModule=!0,n.Materials=n.ExosuitFabricator=void 0;var o,r=t(39812),c=t(34380),a=t(64499),i=t(71494),l=t(58083),d=t(74814),s=t(85952),u=t(2497),m=t(41860);function p(e,n){var t;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(t=function(e,n){if(!e)return;if("string"==typeof e)return C(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return C(e,n)}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var o=0;return function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(t=e[Symbol.iterator]()).next.bind(t)}function C(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,o=new Array(n);tt?{color:2,deficit:e-t}:n>t?{color:1,deficit:e}:e+n>t?{color:1,deficit:e+n-t}:{color:0,deficit:0}},b=function(e,n,t){var o={textColor:0};return Object.keys(t.cost).forEach((function(r){o[r]=V(t.cost[r],n[r],e[r]),o[r].color>o.textColor&&(o.textColor=o[r].color)})),o};n.ExosuitFabricator=function(e,n){var t,o,c=(0,i.useBackend)(n),a=c.act,l=c.data,u=l.queue||[],m=(t=l.materials||[],o={},t.forEach((function(e){o[e.name]=e.amount})),o),p=function(e,n){var t={},o={},r={},c={};return n.forEach((function(n,a){c[a]=0,Object.keys(n.cost).forEach((function(i){t[i]=t[i]||0,r[i]=r[i]||0,o[i]=V(n.cost[i],t[i],e[i]),0!==o[i].color?c[a]1&&l0}));return 0===l.length?(0,r.createComponentVNode)(2,d.Box,{textAlign:"center",children:[(0,r.createComponentVNode)(2,d.Icon,{textAlign:"center",size:5,name:"inbox"}),(0,r.createVNode)(1,"br"),(0,r.createVNode)(1,"b",null,"No Materials Loaded.",16)]}):(0,r.createComponentVNode)(2,d.Flex,{wrap:"wrap",children:l.map((function(e){return(0,r.createComponentVNode)(2,d.Flex.Item,{width:"80px",children:[(0,r.createComponentVNode)(2,k,{name:e.name,amount:e.amount,formatsi:!0}),!a&&(0,r.createComponentVNode)(2,d.Box,{mt:1,style:{"text-align":"center"},children:(0,r.createComponentVNode)(2,f,{material:e})})]},e.name)||null}))})};n.Materials=g;var k=function(e,n){var t=e.name,o=e.amount,a=e.formatsi,i=e.formatmoney,s=e.color,p=e.style,C="0";return C=o<1&&o>0?(0,m.toFixed)(o,2):a?(0,l.formatSiUnit)(o,0):i?(0,l.formatMoney)(o):o,(0,r.createComponentVNode)(2,d.Flex,{direction:"column",align:"center",children:[(0,r.createComponentVNode)(2,d.Flex.Item,{children:(0,r.createComponentVNode)(2,d.Box,{className:(0,c.classes)(["sheetmaterials32x32",h[t]]),position:"relative",style:p,children:(0,r.createComponentVNode)(2,d.Tooltip,{position:"bottom",content:(0,u.toTitleCase)(t)})})}),(0,r.createComponentVNode)(2,d.Flex.Item,{children:(0,r.createComponentVNode)(2,d.Box,{textColor:s,style:{"text-align":"center"},children:C})})]})},v=function(e,n){var t=(0,i.useBackend)(n).data,o=t.partSets||[],c=t.buildableParts||{},a=(0,i.useSharedState)(n,"part_tab",o.length?c[0]:""),l=a[0],s=a[1];return(0,r.createComponentVNode)(2,d.Tabs,{vertical:!0,children:o.map((function(e){return!!c[e]&&(0,r.createComponentVNode)(2,d.Tabs.Tab,{selected:e===l,disabled:!c[e],onClick:function(){return s(e)},children:e},e)}))})},B=function(e,n){var t,o=(0,i.useBackend)(n).data,c=function(e){for(var n,t=p(e);!(n=t()).done;){var o=n.value;if(s[o])return o}return null},l=o.partSets||[],s=o.buildableParts||[],m=e.queueMaterials,C=e.materials,h=(0,i.useSharedState)(n,"part_tab",c(l)),N=h[0],V=h[1],f=(0,i.useSharedState)(n,"search_text",""),g=f[0],k=f[1];if(!N||!s[N]){var v=c(l);if(!v)return;V(v)}return g?(t=[],function(e,n){var t=[];if(e.length){var o=(0,u.createSearch)(e,(function(e){return(e.name||"")+(e.desc||"")+(e.searchMeta||"")}));return Object.keys(n).forEach((function(e){n[e].filter(o).forEach((function(e){t.push(e)}))})),t=(0,a.uniqBy)((function(e){return e.name}))(t)}}(g,s).forEach((function(e){e.format=b(C,m,e),t.push(e)}))):(t={Parts:[]},s[N].forEach((function(e){e.format=b(C,m,e),e.subCategory?(e.subCategory in t||(t[e.subCategory]=[]),t[e.subCategory].push(e)):t.Parts.push(e)}))),(0,r.createFragment)([(0,r.createComponentVNode)(2,d.Section,{children:(0,r.createComponentVNode)(2,d.Flex,{children:[(0,r.createComponentVNode)(2,d.Flex.Item,{mr:1,children:(0,r.createComponentVNode)(2,d.Icon,{name:"search"})}),(0,r.createComponentVNode)(2,d.Flex.Item,{grow:1,children:(0,r.createComponentVNode)(2,d.Input,{fluid:!0,placeholder:"Search for...",onInput:function(e,n){return k(n)}})})]})}),!!g&&(0,r.createComponentVNode)(2,L,{name:"Search Results",parts:t,forceShow:!0,placeholder:"No matching results..."})||Object.keys(t).map((function(e){return(0,r.createComponentVNode)(2,L,{name:e,parts:t[e]},e)}))],0)},L=function(e,n){var t=(0,i.useBackend)(n),o=t.act,c=t.data.buildingPart,a=e.parts,l=e.name,s=e.forceShow,u=e.placeholder,m=(0,i.useSharedState)(n,"display_mats",!1)[0];return(!!a.length||s)&&(0,r.createComponentVNode)(2,d.Section,{title:l,buttons:(0,r.createComponentVNode)(2,d.Button,{disabled:!a.length,color:"good",content:"Queue All",icon:"plus-circle",onClick:function(){return o("add_queue_set",{part_list:a.map((function(e){return e.id}))})}}),children:[!a.length&&u,a.map((function(e){return(0,r.createFragment)([(0,r.createComponentVNode)(2,d.Flex,{align:"center",children:[(0,r.createComponentVNode)(2,d.Flex.Item,{children:(0,r.createComponentVNode)(2,d.Button,{disabled:c||2===e.format.textColor,color:"good",height:"20px",mr:1,icon:"play",onClick:function(){return o("build_part",{id:e.id})}})}),(0,r.createComponentVNode)(2,d.Flex.Item,{children:(0,r.createComponentVNode)(2,d.Button,{color:"average",height:"20px",mr:1,icon:"plus-circle",onClick:function(){return o("add_queue_part",{id:e.id})}})}),(0,r.createComponentVNode)(2,d.Flex.Item,{children:(0,r.createComponentVNode)(2,d.Box,{inline:!0,textColor:N[e.format.textColor],children:e.name})}),(0,r.createComponentVNode)(2,d.Flex.Item,{grow:1}),(0,r.createComponentVNode)(2,d.Flex.Item,{children:(0,r.createComponentVNode)(2,d.Button,{icon:"question-circle",transparent:!0,height:"20px",tooltip:"Build Time: "+e.printTime+"s. "+(e.desc||""),tooltipPosition:"left"})})]}),m&&(0,r.createComponentVNode)(2,d.Flex,{mb:2,children:Object.keys(e.cost).map((function(n){return(0,r.createComponentVNode)(2,d.Flex.Item,{width:"50px",color:N[e.format[n].color],children:(0,r.createComponentVNode)(2,k,{formatmoney:!0,style:{transform:"scale(0.75) translate(0%, 10%)"},name:n,amount:e.cost[n]})},n)}))})],0,e.name)}))]})},_=function(e,n){var t=(0,i.useBackend)(n),o=t.act,c=t.data,a=c.isProcessingQueue,l=c.queue||[],s=e.queueMaterials,u=e.missingMaterials,m=e.textColors;return(0,r.createComponentVNode)(2,d.Flex,{height:"100%",width:"100%",direction:"column",children:[(0,r.createComponentVNode)(2,d.Flex.Item,{height:0,grow:1,children:(0,r.createComponentVNode)(2,d.Section,{height:"100%",title:"Queue",overflowY:"auto",buttons:(0,r.createFragment)([(0,r.createComponentVNode)(2,d.Button.Confirm,{disabled:!l.length,color:"bad",icon:"minus-circle",content:"Clear Queue",onClick:function(){return o("clear_queue")}}),!!a&&(0,r.createComponentVNode)(2,d.Button,{disabled:!l.length,content:"Stop",icon:"stop",onClick:function(){return o("stop_queue")}})||(0,r.createComponentVNode)(2,d.Button,{disabled:!l.length,content:"Build Queue",icon:"play",onClick:function(){return o("build_queue")}})],0),children:(0,r.createComponentVNode)(2,d.Flex,{direction:"column",height:"100%",children:[(0,r.createComponentVNode)(2,d.Flex.Item,{children:(0,r.createComponentVNode)(2,S)}),(0,r.createComponentVNode)(2,d.Flex.Item,{children:(0,r.createComponentVNode)(2,w,{textColors:m})})]})})}),!!l.length&&(0,r.createComponentVNode)(2,d.Flex.Item,{mt:1,children:(0,r.createComponentVNode)(2,d.Section,{title:"Material Cost",children:(0,r.createComponentVNode)(2,x,{queueMaterials:s,missingMaterials:u})})})]})},x=function(e,n){var t=e.queueMaterials,o=e.missingMaterials;return(0,r.createComponentVNode)(2,d.Flex,{wrap:"wrap",children:Object.keys(t).map((function(e){return(0,r.createComponentVNode)(2,d.Flex.Item,{width:"12%",children:[(0,r.createComponentVNode)(2,k,{formatmoney:!0,name:e,amount:t[e]}),!!o[e]&&(0,r.createComponentVNode)(2,d.Box,{textColor:"bad",style:{"text-align":"center"},children:(0,l.formatMoney)(o[e])})]},e)}))})},w=function(e,n){var t=(0,i.useBackend)(n),o=t.act,c=t.data,a=e.textColors,l=c.queue||[];return l.length?l.map((function(e,n){return(0,r.createComponentVNode)(2,d.Box,{children:(0,r.createComponentVNode)(2,d.Flex,{mb:.5,direction:"column",justify:"center",wrap:"wrap",height:"20px",inline:!0,children:[(0,r.createComponentVNode)(2,d.Flex.Item,{basis:"content",children:(0,r.createComponentVNode)(2,d.Button,{height:"20px",mr:1,icon:"minus-circle",color:"bad",onClick:function(){return o("del_queue_part",{index:n+1})}})}),(0,r.createComponentVNode)(2,d.Flex.Item,{children:(0,r.createComponentVNode)(2,d.Box,{inline:!0,textColor:N[a[n]],children:e.name})})]})},e.name)})):(0,r.createFragment)([(0,r.createTextVNode)("No parts in queue.")],4)},S=function(e,n){var t=(0,i.useBackend)(n).data,o=t.buildingPart,c=t.storedPart;if(c){var a=c.name;return(0,r.createComponentVNode)(2,d.Box,{children:(0,r.createComponentVNode)(2,d.ProgressBar,{minValue:0,maxValue:1,value:1,color:"average",children:(0,r.createComponentVNode)(2,d.Flex,{children:[(0,r.createComponentVNode)(2,d.Flex.Item,{children:a}),(0,r.createComponentVNode)(2,d.Flex.Item,{grow:1}),(0,r.createComponentVNode)(2,d.Flex.Item,{children:"Fabricator outlet obstructed..."})]})})})}if(o){var l=o.name,s=o.duration,u=o.printTime,m=Math.ceil(s/10);return(0,r.createComponentVNode)(2,d.Box,{children:(0,r.createComponentVNode)(2,d.ProgressBar,{minValue:0,maxValue:u,value:s,children:(0,r.createComponentVNode)(2,d.Flex,{children:[(0,r.createComponentVNode)(2,d.Flex.Item,{children:l}),(0,r.createComponentVNode)(2,d.Flex.Item,{grow:1}),(0,r.createComponentVNode)(2,d.Flex.Item,{children:m>=0&&m+"s"||"Dispensing..."})]})})})}}},95598:function(e,n,t){"use strict";n.__esModule=!0,n.Farmbot=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.Farmbot=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.on,s=l.locked,u=l.tank,m=l.tankVolume,p=l.tankMaxVolume,C=l.waters_trays,h=l.refills_water,N=l.uproots_weeds,V=l.replaces_nutriment;l.collects_produce,l.removes_dead;return(0,o.createComponentVNode)(2,a.Window,{width:450,height:540,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Automatic Hydroponic Assistance Unit v2.0",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:d,onClick:function(){return i("power")},children:d?"On":"Off"}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Water Tank",children:u&&(0,o.createComponentVNode)(2,c.ProgressBar,{value:m,maxValue:p,children:[m," / ",p]})||(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No water tank detected."})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Behavior Controls",color:s?"good":"bad",children:s?"Locked":"Unlocked"})]})}),!s&&(0,o.createComponentVNode)(2,c.Section,{title:"Behavior Controls",children:[(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Watering Controls",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Water plants",children:(0,o.createComponentVNode)(2,c.Button,{icon:C?"toggle-on":"toggle-off",selected:C,onClick:function(){return i("water")},children:C?"Yes":"No"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Refill watertank",children:(0,o.createComponentVNode)(2,c.Button,{icon:h?"toggle-on":"toggle-off",selected:h,onClick:function(){return i("refill")},children:h?"Yes":"No"})})]})}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Weeding controls",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Weed plants",children:(0,o.createComponentVNode)(2,c.Button,{icon:N?"toggle-on":"toggle-off",selected:N,onClick:function(){return i("weed")},children:N?"Yes":"No"})})})}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Nutriment controls",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Replace fertilizer",children:(0,o.createComponentVNode)(2,c.Button,{icon:V?"toggle-on":"toggle-off",selected:V,onClick:function(){return i("replacenutri")},children:V?"Yes":"No"})})})})]})||null]})})}},17569:function(e,n,t){"use strict";n.__esModule=!0,n.FaxContent=n.Fax=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=t(28117),l=t(1192);n.Fax=function(e,n){return(0,r.useBackend)(n).data.authenticated?(0,o.createComponentVNode)(2,a.Window,{width:600,height:250,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,s),(0,o.createComponentVNode)(2,i.LoginInfo),(0,o.createComponentVNode)(2,d)]})}):(0,o.createComponentVNode)(2,a.Window,{width:600,height:250,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,s),(0,o.createComponentVNode)(2,l.LoginScreen)]})})};var d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.bossName,d=i.copyItem,s=i.cooldown,u=i.destination;return(0,o.createComponentVNode)(2,c.Section,{children:[!!s&&(0,o.createComponentVNode)(2,c.NoticeBox,{info:!0,children:"Transmitter arrays realigning. Please stand by."}),(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Network",children:[l," Quantum Entanglement Network"]})}),d&&(0,o.createComponentVNode)(2,c.Box,{mt:1,children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Currently Sending",children:d}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Sending To",children:(0,o.createComponentVNode)(2,c.Button,{icon:"map-marker-alt",content:u,onClick:function(){return a("dept")}})})]}),(0,o.createComponentVNode)(2,c.Button,{icon:"share-square",onClick:function(){return a("send")},content:"Send",fluid:!0})]})||(0,o.createComponentVNode)(2,c.Box,{mt:1,children:"Please insert item to transmit."})]})};n.FaxContent=d;var s=function(e,n){var t=(0,r.useBackend)(n),a=t.act;return t.data.copyItem?(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"eject",onClick:function(){return a("remove")},content:"Remove Item"})}):null}},58087:function(e,n,t){"use strict";n.__esModule=!0,n.FileCabinet=void 0;var o=t(39812),r=t(64499),c=t(71494),a=t(74814),i=t(85952);n.FileCabinet=function(e,n){var t=(0,c.useBackend)(n),l=t.act,d=t.data.contents,s=(0,r.sortBy)((function(e){return e.name}))(d||[]);return(0,o.createComponentVNode)(2,i.Window,{width:350,height:300,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.Section,{children:s.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"file",content:e.name,onClick:function(){return l("retrieve",{ref:e.ref})}},e.ref)}))})})})}},21902:function(e,n,t){"use strict";n.__esModule=!0,n.Floorbot=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.Floorbot=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.on,s=l.open,u=l.locked,m=l.vocal,p=l.amount,C=l.possible_bmode,h=l.improvefloors,N=l.eattiles,V=l.maketiles,b=l.bmode;return(0,o.createComponentVNode)(2,a.Window,{width:390,height:310,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Automatic Station Floor Repairer v2.0",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:d,onClick:function(){return i("start")},children:d?"On":"Off"}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Tiles Left",children:(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:p})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Maintenance Panel",color:s?"bad":"good",children:s?"Open":"Closed"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Behavior Controls",color:u?"good":"bad",children:u?"Locked":"Unlocked"})]})}),!u&&(0,o.createComponentVNode)(2,c.Section,{title:"Behavior Controls",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Speaker",children:(0,o.createComponentVNode)(2,c.Button,{icon:m?"toggle-on":"toggle-off",selected:m,onClick:function(){return i("vocal")},children:m?"On":"Off"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Improves Floors",children:(0,o.createComponentVNode)(2,c.Button,{icon:h?"toggle-on":"toggle-off",selected:h,onClick:function(){return i("improve")},children:h?"On":"Off"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Finds Tiles",children:(0,o.createComponentVNode)(2,c.Button,{icon:N?"toggle-on":"toggle-off",selected:N,onClick:function(){return i("tiles")},children:N?"On":"Off"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Makes Metal Sheets into Tiles",children:(0,o.createComponentVNode)(2,c.Button,{icon:V?"toggle-on":"toggle-off",selected:V,onClick:function(){return i("make")},children:V?"On":"Off"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Bridge Mode",children:(0,o.createComponentVNode)(2,c.Dropdown,{over:!0,width:"100%",placeholder:"Disabled",selected:b,options:C,onSelected:function(e){return i("bridgemode",{dir:e})}})})]})})||null]})})}},309:function(e,n,t){"use strict";n.__esModule=!0,n.GasPump=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.GasPump=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.on,s=l.pressure_set,u=l.last_flow_rate,m=l.last_power_draw,p=l.max_power_draw;return(0,o.createComponentVNode)(2,a.Window,{width:470,height:290,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{title:"Status",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Flow Rate",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:u/10})," L/s"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Load",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:m,minValue:0,maxValue:p,color:m=100?u="Running":!d&&s>0&&(u="DISCHARGING"),(0,o.createComponentVNode)(2,a.Window,{width:500,height:400,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{title:"Status",buttons:(0,o.createComponentVNode)(2,c.Button.Confirm,{icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",color:"red",content:"Toggle Breaker",confirmContent:d?"This will disable gravity!":"This will enable gravity!",onClick:function(){return i("gentoggle")}}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Breaker Setting",children:d?"Generator Enabled":"Generator Disabled"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Charge Mode",children:["Generator ",u]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Charge Status",children:[s,"%"]})]})})})})}},95075:function(e,n,t){"use strict";n.__esModule=!0,n.GuestPass=void 0;var o=t(39812),r=t(64499),c=t(71494),a=t(74814),i=t(85952);n.GuestPass=function(e,n){var t=(0,c.useBackend)(n),l=t.act,d=t.data,s=(d.access,d.area),u=d.giver,m=d.giveName,p=d.reason,C=d.duration,h=d.mode,N=d.log,V=d.uid;return(0,o.createComponentVNode)(2,i.Window,{width:500,height:520,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:1===h&&(0,o.createComponentVNode)(2,a.Section,{title:"Activity Log",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"scroll",content:"Activity Log",selected:!0,onClick:function(){return l("mode",{mode:0})}}),children:[(0,o.createComponentVNode)(2,a.Button,{icon:"print",content:"Print",onClick:function(){return l("print")},fluid:!0,mb:1}),(0,o.createComponentVNode)(2,a.Section,{level:2,title:"Logs",children:N.length&&N.map((function(e){return(0,o.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:e}},e)}))||(0,o.createComponentVNode)(2,a.Box,{children:"No logs."})})]})||(0,o.createComponentVNode)(2,a.Section,{title:"Guest pass terminal #"+V,buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"scroll",content:"Activity Log",onClick:function(){return l("mode",{mode:1})}}),children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Issuing ID",children:(0,o.createComponentVNode)(2,a.Button,{content:u||"Insert ID",onClick:function(){return l("id")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Issued To",children:(0,o.createComponentVNode)(2,a.Button,{content:m,onClick:function(){return l("giv_name")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Reason",children:(0,o.createComponentVNode)(2,a.Button,{content:p,onClick:function(){return l("reason")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Duration (minutes)",children:(0,o.createComponentVNode)(2,a.Button,{content:C,onClick:function(){return l("duration")}})})]}),(0,o.createComponentVNode)(2,a.Button.Confirm,{icon:"check",fluid:!0,content:"Issue Pass",onClick:function(){return l("issue")}}),(0,o.createComponentVNode)(2,a.Section,{title:"Access",level:2,children:(0,r.sortBy)((function(e){return e.area_name}))(s).map((function(e){return(0,o.createComponentVNode)(2,a.Button.Checkbox,{checked:e.on,content:e.area_name,onClick:function(){return l("access",{access:e.area})}},e.area)}))})]})})})}},31875:function(e,n,t){"use strict";n.__esModule=!0,n.GyrotronControlContent=n.GyrotronControl=void 0;var o=t(39812),r=t(71494),c=t(85952),a=t(74814);n.GyrotronControl=function(e,n){return(0,o.createComponentVNode)(2,c.Window,{width:627,height:700,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,i)})})};var i=function(e,n){var t=(0,r.useBackend)(n),c=t.act,i=t.data.gyros;return(0,o.createComponentVNode)(2,a.Section,{title:"Gyrotrons",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"pencil-alt",content:"Set Tag",onClick:function(){return c("set_tag")}}),children:(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Name"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Position"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Status"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Fire Delay"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Strength"})]}),i.map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:[e.x,", ",e.y,", ",e.z]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",content:e.active?"Online":"Offline",selected:e.active,disabled:!e.deployed,onClick:function(){return c("toggle_active",{gyro:e.ref})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Knob,{forcedInputWidth:"60px",size:1.25,color:!!e.active&&"yellow",value:e.fire_delay,unit:"decisecond(s)",minValue:1,maxValue:60,stepPixelSize:1,onDrag:function(n,t){return c("set_rate",{gyro:e.ref,rate:t})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Knob,{forcedInputWidth:"60px",size:1.25,color:!!e.active&&"yellow",value:e.strength,unit:"penta-dakw",minValue:1,maxValue:50,stepPixelSize:1,onDrag:function(n,t){return c("set_str",{gyro:e.ref,str:t})}})})]},e.name)}))]})})};n.GyrotronControlContent=i},7908:function(e,n,t){"use strict";n.__esModule=!0,n.Holodeck=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.Holodeck=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.supportedPrograms,s=l.restrictedPrograms,u=l.currentProgram,m=l.isSilicon,p=l.safetyDisabled,C=l.emagged,h=l.gravity,N=d;return p&&(N=N.concat(s)),(0,o.createComponentVNode)(2,a.Window,{width:400,height:610,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Programs",children:N.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{color:-1!==s.indexOf(e)?"bad":null,icon:"eye",content:e,selected:u===e,fluid:!0,onClick:function(){return i("program",{program:e})}},e)}))}),!!m&&(0,o.createComponentVNode)(2,c.Section,{title:"Override",children:(0,o.createComponentVNode)(2,c.Button,{icon:"exclamation-triangle",fluid:!0,disabled:C,color:p?"good":"bad",onClick:function(){return i("AIoverride")},children:[!!C&&"Error, unable to control. ",p?"Enable Safeties":"Disable Safeties"]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Controls",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Safeties",children:p?(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"DISABLED"}):(0,o.createComponentVNode)(2,c.Box,{color:"good",children:"ENABLED"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Gravity",children:(0,o.createComponentVNode)(2,c.Button,{icon:"user-astronaut",selected:h,onClick:function(){return i("gravity")},children:h?"Enabled":"Disabled"})})]})})]})})}},12676:function(e,n,t){"use strict";n.__esModule=!0,n.ICAssembly=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(85952),l=(t(2497),t(58083));n.ICAssembly=function(e,n){var t=(0,c.useBackend)(n),s=(t.act,t.data),u=s.total_parts,m=s.max_components,p=s.total_complexity,C=s.max_complexity,h=s.battery_charge,N=s.battery_max,V=s.net_power,b=s.unremovable_circuits,f=s.removable_circuits;return(0,o.createComponentVNode)(2,i.Window,{width:600,height:380,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{title:"Status",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Space in Assembly",children:(0,o.createComponentVNode)(2,a.ProgressBar,{ranges:{good:[0,.25],average:[.5,.75],bad:[.75,1]},value:u/m,maxValue:1,children:[u," / ",m," (",(0,r.round)(u/m*100,1),"%)"]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Complexity",children:(0,o.createComponentVNode)(2,a.ProgressBar,{ranges:{good:[0,.25],average:[.5,.75],bad:[.75,1]},value:p/C,maxValue:1,children:[p," / ",C," (",(0,r.round)(p/C*100,1),"%)"]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Cell Charge",children:h&&(0,o.createComponentVNode)(2,a.ProgressBar,{ranges:{bad:[0,.25],average:[.5,.75],good:[.75,1]},value:h/N,maxValue:1,children:[h," / ",N," (",(0,r.round)(h/N*100,1),"%)"]})||(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"No cell detected."})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Net Energy",children:0===V?"0 W/s":(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:V,format:function(e){return"-"+(0,l.formatPower)(Math.abs(e))+"/s"}})})]})}),b.length&&(0,o.createComponentVNode)(2,d,{title:"Built-in Components",circuits:b})||null,f.length&&(0,o.createComponentVNode)(2,d,{title:"Removable Components",circuits:f})||null]})})};var d=function(e,n){var t=(0,c.useBackend)(n).act,r=e.title,i=e.circuits;return(0,o.createComponentVNode)(2,a.Section,{title:r,children:(0,o.createComponentVNode)(2,a.LabeledList,{children:i.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name,children:[(0,o.createComponentVNode)(2,a.Button,{icon:"eye",onClick:function(){return t("open_circuit",{ref:e.ref})},children:"View"}),(0,o.createComponentVNode)(2,a.Button,{icon:"eye",onClick:function(){return t("rename_circuit",{ref:e.ref})},children:"Rename"}),(0,o.createComponentVNode)(2,a.Button,{icon:"eye",onClick:function(){return t("scan_circuit",{ref:e.ref})},children:"Debugger Scan"}),(0,o.createComponentVNode)(2,a.Button,{icon:"eye",onClick:function(){return t("remove_circuit",{ref:e.ref})},children:"Remove"}),(0,o.createComponentVNode)(2,a.Button,{icon:"eye",onClick:function(){return t("bottom_circuit",{ref:e.ref})},children:"Move to Bottom"})]},e.ref)}))})})}},42394:function(e,n,t){"use strict";n.__esModule=!0,n.ICCircuit=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=t(2497),l=t(58083);n.ICCircuit=function(e,n){var t=(0,r.useBackend)(n),i=t.act,u=t.data,m=(u.name,u.desc),p=u.displayed_name,C=(u.removable,u.complexity),h=u.power_draw_idle,N=u.power_draw_per_use,V=u.extended_desc,b=u.inputs,f=u.outputs,g=u.activators;return(0,o.createComponentVNode)(2,a.Window,{width:600,height:400,resizable:!0,title:p,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Stats",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("rename")},children:"Rename"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("scan")},children:"Scan with Device"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("remove")},children:"Remove"})],4),children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Complexity",children:C}),h&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power Draw (Idle)",children:(0,l.formatPower)(h)})||null,N&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power Draw (Active)",children:(0,l.formatPower)(N)})||null]}),V]}),(0,o.createComponentVNode)(2,c.Section,{title:"Circuit",children:[(0,o.createComponentVNode)(2,c.Flex,{textAlign:"center",spacing:1,children:[b.length&&(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.Section,{title:"Inputs",children:(0,o.createComponentVNode)(2,d,{list:b})})})||null,(0,o.createComponentVNode)(2,c.Flex.Item,{basis:b.length&&f.length?"33%":b.length||f.length?"45%":"100%",children:(0,o.createComponentVNode)(2,c.Section,{title:p,mb:1,children:(0,o.createComponentVNode)(2,c.Box,{children:m})})}),f.length&&(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.Section,{title:"Outputs",children:(0,o.createComponentVNode)(2,d,{list:f})})})||null]}),(0,o.createComponentVNode)(2,c.Section,{title:"Triggers",children:g.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name,children:[(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("pin_name",{pin:e.ref})},children:e.pulse_out?"":""}),(0,o.createComponentVNode)(2,s,{pin:e})]},e.name)}))})]})]})})};var d=function(e,n){var t=(0,r.useBackend)(n).act;return e.list.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return t("pin_name",{pin:e.ref})},children:[(0,i.decodeHtmlEntities)(e.type),": ",e.name]}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return t("pin_data",{pin:e.ref})},children:e.data}),(0,o.createComponentVNode)(2,s,{pin:e})]},e.ref)}))},s=function(e,n){var t=(0,r.useBackend)(n).act,a=e.pin;return a.linked.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{inline:!0,children:[(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return t("pin_unwire",{pin:a.ref,link:e.ref})},children:e.name}),"@\xa0",(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return t("examine",{ref:e.holder_ref})},children:e.holder_name})]},e.ref)}))}},81039:function(e,n,t){"use strict";n.__esModule=!0,n.ICDetailer=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=t(2497);n.ICDetailer=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data,s=d.detail_color,u=d.color_list;return(0,o.createComponentVNode)(2,a.Window,{width:420,height:254,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{children:Object.keys(u).map((function(e,n){return(0,o.createComponentVNode)(2,c.Button,{ml:0,mr:0,mb:-.4,mt:0,tooltip:(0,i.toTitleCase)(e),tooltipPosition:n%6==5?"left":"right",height:"64px",width:"64px",onClick:function(){return l("change_color",{color:e})},style:u[e]===s?{border:"4px solid black","border-radius":0}:{"border-radius":0},backgroundColor:u[e]},e)}))})})})}},21687:function(e,n,t){"use strict";n.__esModule=!0,n.ICPrinter=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=t(64499);t(88654);n.ICPrinter=function(e,n){var t=(0,r.useBackend)(n),i=(t.act,t.data),l=i.metal,s=i.max_metal,u=i.metal_per_sheet,m=(i.debug,i.upgraded),p=i.can_clone;i.assembly_to_clone,i.categories;return(0,o.createComponentVNode)(2,a.Window,{width:600,height:630,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Status",children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Metal",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:l,maxValue:s,children:[l/u," / ",s/u," sheets"]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Circuits Available",children:m?"Advanced":"Regular"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Assembly Cloning",children:p?"Available":"Unavailable"})]}),(0,o.createComponentVNode)(2,c.Box,{mt:1,children:"Note: A red component name means that the printer must be upgraded to create that component."})]}),(0,o.createComponentVNode)(2,d)]})})};var l=function(e,n){return!!e.can_build&&!(e.cost>n.metal)},d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,d=t.data,s=d.categories,u=(d.debug,(0,r.useSharedState)(n,"categoryTarget",null)),m=u[0],p=u[1],C=(0,i.filter)((function(e){return e.name===m}))(s)[0];return(0,o.createComponentVNode)(2,c.Section,{title:"Circuits",children:(0,o.createComponentVNode)(2,c.Stack,{fill:!0,children:[(0,o.createComponentVNode)(2,c.Stack.Item,{mr:2,children:(0,o.createComponentVNode)(2,c.Tabs,{vertical:!0,children:(0,i.sortBy)((function(e){return e.name}))(s).map((function(e){return(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:m===e.name,onClick:function(){return p(e.name)},children:e.name},e.name)}))})}),(0,o.createComponentVNode)(2,c.Stack.Item,{children:C&&(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,i.sortBy)((function(e){return e.name}))(C.items).map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name,labelColor:e.can_build?"good":"bad",buttons:(0,o.createComponentVNode)(2,c.Button,{disabled:!l(e,d),icon:"print",onClick:function(){return a("build",{build:e.path})},children:"Print"}),children:e.desc},e.name)}))})})||"No category selected."})]})})}},48522:function(e,n,t){"use strict";n.__esModule=!0,n.IDCard=void 0;var o=t(39812),r=t(74814),c=t(71494),a=t(85952),i=t(14959);n.IDCard=function(e,n){var t=(0,c.useBackend)(n).data,l=t.registered_name,d=t.sex,s=t.age,u=t.assignment,m=t.fingerprint_hash,p=t.blood_type,C=t.dna_hash,h=t.photo_front,N=[{name:"Sex",val:d},{name:"Age",val:s},{name:"Blood Type",val:p},{name:"Fingerprint",val:m},{name:"DNA Hash",val:C}];return(0,o.createComponentVNode)(2,a.Window,{width:470,height:250,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,r.Section,{children:[(0,o.createComponentVNode)(2,r.Flex,{children:[(0,o.createComponentVNode)(2,r.Flex.Item,{basis:"25%",textAlign:"left",children:(0,o.createComponentVNode)(2,r.Box,{inline:!0,style:{width:"101px",height:"120px",overflow:"hidden",outline:"2px solid #4972a1"},children:h&&(0,o.createVNode)(1,"img",null,null,1,{src:h.substr(1,h.length-1),style:{width:"300px","margin-left":"-94px","-ms-interpolation-mode":"nearest-neighbor"}})||(0,o.createComponentVNode)(2,r.Icon,{name:"user",size:8,ml:1.5,mt:2.5})})}),(0,o.createComponentVNode)(2,r.Flex.Item,{basis:0,grow:1,children:(0,o.createComponentVNode)(2,r.LabeledList,{children:N.map((function(e){return(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:e.name,children:e.val},e.name)}))})})]}),(0,o.createComponentVNode)(2,r.Flex,{className:"IDCard__NamePlate",align:"center",justify:"space-around",children:[(0,o.createComponentVNode)(2,r.Flex.Item,{children:(0,o.createComponentVNode)(2,r.Box,{textAlign:"center",children:l})}),(0,o.createComponentVNode)(2,r.Flex.Item,{children:(0,o.createComponentVNode)(2,r.Box,{textAlign:"center",children:(0,o.createComponentVNode)(2,i.RankIcon,{rank:u})})}),(0,o.createComponentVNode)(2,r.Flex.Item,{children:(0,o.createComponentVNode)(2,r.Box,{textAlign:"center",children:u})})]})]})})})}},76952:function(e,n,t){"use strict";n.__esModule=!0,n.IdentificationComputerRegions=n.IdentificationComputerAccessModification=n.IdentificationComputerPrinting=n.IdentificationComputerContent=n.IdentificationComputer=void 0;var o=t(39812),r=t(64499),c=t(71494),a=t(74814),i=t(85952),l=t(2497),d=(t(76270),t(22902));n.IdentificationComputer=function(e,n){var t=(0,c.useBackend)(n);t.act,t.data;return(0,o.createComponentVNode)(2,i.Window,{width:600,height:700,children:(0,o.createComponentVNode)(2,i.Window.Content,{resizable:!0,children:(0,o.createComponentVNode)(2,s)})})};var s=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=e.ntos,s=i.mode,p=i.has_modify,C=i.printing,h=(0,o.createComponentVNode)(2,m,{ntos:l});return l&&!i.have_id_slot?h=(0,o.createComponentVNode)(2,d.CrewManifestContent):C?h=(0,o.createComponentVNode)(2,u):1===s&&(h=(0,o.createComponentVNode)(2,d.CrewManifestContent)),(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Tabs,{children:[(!l||!!i.have_id_slot)&&(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:"home",selected:0===s,onClick:function(){return r("mode",{mode_target:0})},children:"Access Modification"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:"home",selected:1===s,onClick:function(){return r("mode",{mode_target:1})},children:"Crew Manifest"}),!l||!!i.have_printer&&(0,o.createComponentVNode)(2,a.Tabs.Tab,{float:"right",icon:"print",onClick:function(){return r("print")},disabled:!s&&!p,color:"",children:"Print"})]}),h],0)};n.IdentificationComputerContent=s;var u=function(e,n){return(0,o.createComponentVNode)(2,a.Section,{title:"Printing",children:"Please wait..."})};n.IdentificationComputerPrinting=u;var m=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,d=e.ntos,s=i.station_name,u=i.target_name,m=i.target_owner,C=i.scan_name,h=i.authenticated,N=i.has_modify,V=i.account_number,b=i.centcom_access,f=i.all_centcom_access,g=(i.regions,i.id_rank),k=i.departments;return(0,o.createComponentVNode)(2,a.Section,{title:"Access Modification",children:[!h&&(0,o.createComponentVNode)(2,a.Box,{italic:!0,mb:1,children:"Please insert the IDs into the terminal to proceed."}),(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Target Identitity",children:(0,o.createComponentVNode)(2,a.Button,{icon:"eject",fluid:!0,content:u,onClick:function(){return r("modify")}})}),!d&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Authorized Identitity",children:(0,o.createComponentVNode)(2,a.Button,{icon:"eject",fluid:!0,content:C,onClick:function(){return r("scan")}})})]}),!!h&&!!N&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{title:"Details",level:2,children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Registered Name",children:(0,o.createComponentVNode)(2,a.Input,{value:m,fluid:!0,onInput:function(e,n){return r("reg",{reg:n})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Account Number",children:(0,o.createComponentVNode)(2,a.Input,{value:V,fluid:!0,onInput:function(e,n){return r("account",{account:n})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Dismissals",children:(0,o.createComponentVNode)(2,a.Button.Confirm,{color:"bad",icon:"exclamation-triangle",confirmIcon:"fire",fluid:!0,content:"Dismiss "+m,confirmContent:"You are dismissing "+m+", confirm?",onClick:function(){return r("terminate")}})})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Assignment",level:2,children:(0,o.createComponentVNode)(2,a.Table,{children:[k.map((function(e){return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{header:!0,verticalAlign:"middle",children:e.department_name}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.jobs.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{selected:e.job===g,onClick:function(){return r("assign",{assign_target:e.job})},children:(0,l.decodeHtmlEntities)(e.display_name)},e.job)}))})]}),(0,o.createComponentVNode)(2,a.Box,{mt:-1,children:"\xa0"}),(0,o.createTextVNode)(" ")],0,e.department_name)})),(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{header:!0,verticalAlign:"middle",children:"Special"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return r("assign",{assign_target:"Custom"})},children:"Custom"})})]})]})}),!!b&&(0,o.createComponentVNode)(2,a.Section,{title:"Central Command",level:2,children:f.map((function(e){return(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,selected:e.allowed,onClick:function(){return r("access",{access_target:e.ref,allowed:e.allowed})},children:(0,l.decodeHtmlEntities)(e.desc)})},e.ref)}))})||(0,o.createComponentVNode)(2,a.Section,{title:s,level:2,children:(0,o.createComponentVNode)(2,p,{actName:"access"})})],0)]})};n.IdentificationComputerAccessModification=m;var p=function(e,n){var t=(0,c.useBackend)(n),i=t.act,d=t.data,s=e.actName,u=d.regions;return(0,o.createComponentVNode)(2,a.Flex,{wrap:"wrap",spacing:1,children:(0,r.sortBy)((function(e){return e.name}))(u).map((function(e){return(0,o.createComponentVNode)(2,a.Flex.Item,{mb:1,basis:"content",grow:1,children:(0,o.createComponentVNode)(2,a.Section,{title:e.name,height:"100%",children:(0,r.sortBy)((function(e){return e.desc}))(e.accesses).map((function(e){return(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,selected:e.allowed,onClick:function(){return i(s,{access_target:e.ref,allowed:e.allowed})},children:(0,l.decodeHtmlEntities)(e.desc)})},e.ref)}))})},e.name)}))})};n.IdentificationComputerRegions=p},44570:function(e,n,t){"use strict";n.__esModule=!0,n.Loader=n.InputModal=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(29708),l=t(85952);(0,t(88654).createLogger)("inputmodal");n.InputModal=function(e,n){var t,r,s,u=(0,c.useBackend)(n),m=u.act,p=u.data,C=p.title,h=p.message,N=p.initial,V=p.input_type,b=p.timeout,f=(0,c.useLocalState)(n,"curValue",N),g=f[0],k=f[1],v=function(e){if(e.keyCode===i.KEY_ESCAPE)return e.preventDefault(),void m("cancel")};switch(V){case"text":case"num":r=325,t=Math.max(150,h.length),s=(0,o.createComponentVNode)(2,a.Input,{value:N,width:"100%",autoFocus:!0,autoSelect:!0,onKeyDown:v,onChange:function(e,n){k(n)},onEnter:function(e,n){m("choose",{choice:n})}});break;case"message":r=450,t=350,s=(0,o.createComponentVNode)(2,a.TextArea,{value:N,width:"100%",height:"100%",autoFocus:!0,dontUseTabForIndent:!0,onKeyDown:v,onChange:function(e,n){k(n)}})}return(0,o.createComponentVNode)(2,l.Window,{title:C,theme:"abstract",width:r,height:t,children:[b!==undefined&&(0,o.createComponentVNode)(2,d,{value:b}),(0,o.createComponentVNode)(2,l.Window.Content,{children:(0,o.createComponentVNode)(2,a.Stack,{fill:!0,vertical:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Section,{fill:!0,scrollable:!0,className:"InputModal__Section",title:h,tabIndex:0,children:s})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Stack,{textAlign:"center",children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,basis:0,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"good",lineHeight:2,content:"Confirm",onClick:function(){return m("choose",{choice:g})}})}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,basis:0,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"bad",lineHeight:2,content:"Cancel",onClick:function(){return m("cancel")}})})]})})]})})]})};var d=function(e){var n=e.value;return(0,o.createVNode)(1,"div","InputModal__Loader",(0,o.createComponentVNode)(2,a.Box,{className:"InputModal__LoaderProgress",style:{width:100*(0,r.clamp01)(n)+"%"}}),2)};n.Loader=d},53541:function(e,n,t){"use strict";n.__esModule=!0,n.InventoryPanel=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.InventoryPanel=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.slots,s=l.internalsValid;return(0,o.createComponentVNode)(2,a.Window,{width:400,height:200,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:d&&d.length&&d.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name,children:(0,o.createComponentVNode)(2,c.Button,{mb:-1,icon:e.item?"hand-paper":"gift",onClick:function(){return i(e.act)},children:e.item||"Nothing"})},e.name)}))})}),s&&(0,o.createComponentVNode)(2,c.Section,{title:"Actions",children:s&&(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"lungs",onClick:function(){return i("internals")},children:"Set Internals"})||null})||null]})})}},46638:function(e,n,t){"use strict";n.__esModule=!0,n.InventoryPanelHuman=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.InventoryPanelHuman=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.slots,s=l.specialSlots,u=(l.internals,l.internalsValid),m=l.sensors,p=l.handcuffed,C=l.handcuffedParams,h=l.legcuffed,N=l.legcuffedParams,V=l.accessory;return(0,o.createComponentVNode)(2,a.Window,{width:400,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[d&&d.length&&d.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name,children:(0,o.createComponentVNode)(2,c.Button,{mb:-1,icon:e.item?"hand-paper":"gift",onClick:function(){return i(e.act,e.params)},children:e.item||"Nothing"})},e.name)})),(0,o.createComponentVNode)(2,c.LabeledList.Divider),s&&s.length&&s.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name,children:(0,o.createComponentVNode)(2,c.Button,{mb:-1,icon:e.item?"hand-paper":"gift",onClick:function(){return i(e.act,e.params)},children:e.item||"Nothing"})},e.name)}))]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Actions",children:[(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"running",onClick:function(){return i("targetSlot",{slot:"splints"})},children:"Remove Splints"}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"hand-paper",onClick:function(){return i("targetSlot",{slot:"pockets"})},children:"Empty Pockets"}),u&&(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"lungs",onClick:function(){return i("targetSlot",{slot:"internals"})},children:"Set Internals"})||null,m&&(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"book-medical",onClick:function(){return i("targetSlot",{slot:"sensors"})},children:"Set Sensors"})||null,p&&(0,o.createComponentVNode)(2,c.Button,{fluid:!0,color:"bad",icon:"unlink",onClick:function(){return i("targetSlot",C)},children:"Handcuffed"})||null,h&&(0,o.createComponentVNode)(2,c.Button,{fluid:!0,color:"bad",icon:"unlink",onClick:function(){return i("targetSlot",N)},children:"Legcuffed"})||null,V&&(0,o.createComponentVNode)(2,c.Button,{fluid:!0,color:"bad",icon:"unlink",onClick:function(){return i("targetSlot",{slot:"tie"})},children:"Remove Accessory"})||null]})]})})}},45e3:function(e,n,t){"use strict";n.__esModule=!0,n.IsolationCentrifuge=void 0;var o=t(39812),r=(t(41860),t(58083),t(71494)),c=t(74814),a=t(85952);n.IsolationCentrifuge=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.busy,s=l.antibodies,u=l.pathogens,m=l.is_antibody_sample,p=l.sample_inserted,C=(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No vial detected."});return p&&(C=s||u?(0,o.createFragment)([s?(0,o.createComponentVNode)(2,c.Section,{title:"Antibodies",children:s}):null,u.length?(0,o.createComponentVNode)(2,c.Section,{title:"Pathogens",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:u.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name,children:e.spread_type},e.name)}))})}):null],0):(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No antibodies or viral strains detected."})),(0,o.createComponentVNode)(2,a.Window,{width:400,height:500,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:d?(0,o.createComponentVNode)(2,c.Section,{title:"The Centrifuge is currently busy.",color:"bad",children:(0,o.createVNode)(1,"center",null,(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:d}),2)}):(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:m?"Antibody Sample":"Blood Sample",children:[(0,o.createComponentVNode)(2,c.Flex,{spacing:1,mb:1,children:[(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"print",content:"Print",disabled:!s&&!u.length,onClick:function(){return i("print")}})}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"eject",content:"Eject Vial",disabled:!p,onClick:function(){return i("sample")}})})]}),C]}),s&&!m||u.length?(0,o.createComponentVNode)(2,c.Section,{title:"Controls",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[s&&!m?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Isolate Antibodies",children:(0,o.createComponentVNode)(2,c.Button,{icon:"pen",content:s,onClick:function(){return i("antibody")}})}):null,u.length?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Isolate Strain",children:u.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{icon:"pen",content:e.name,onClick:function(){return i("isolate",{isolate:e.reference})}},e.name)}))}):null]})}):null],0)})})}},83994:function(e,n,t){"use strict";n.__esModule=!0,n.JanitorCart=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.JanitorCart=function(e,n){var t=(0,r.useBackend)(n),i=t.act,d=t.data,s=d.mybag,u=d.mybucket,m=d.mymop,p=d.myspray,C=d.myreplacer,h=d.signs;d.icons;return(0,o.createComponentVNode)(2,a.Window,{width:210,height:180,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Button,{width:"64px",height:"64px",position:"relative",tooltip:s||"Garbage Bag Slot",tooltipPosition:"bottom-end",color:s?"grey":"transparent",style:{border:s?null:"2px solid grey"},onClick:function(){return i("bag")},children:(0,o.createComponentVNode)(2,l,{iconkey:"mybag"})}),(0,o.createComponentVNode)(2,c.Button,{width:"64px",height:"64px",position:"relative",tooltip:u||"Bucket Slot",tooltipPosition:"bottom",color:u?"grey":"transparent",style:{border:u?null:"2px solid grey"},onClick:function(){return i("bucket")},children:(0,o.createComponentVNode)(2,l,{iconkey:"mybucket"})}),(0,o.createComponentVNode)(2,c.Button,{width:"64px",height:"64px",position:"relative",tooltip:m||"Mop Slot",tooltipPosition:"bottom-end",color:m?"grey":"transparent",style:{border:m?null:"2px solid grey"},onClick:function(){return i("mop")},children:(0,o.createComponentVNode)(2,l,{iconkey:"mymop"})}),(0,o.createComponentVNode)(2,c.Button,{width:"64px",height:"64px",position:"relative",tooltip:p||"Spray Slot",tooltipPosition:"top-end",color:p?"grey":"transparent",style:{border:p?null:"2px solid grey"},onClick:function(){return i("spray")},children:(0,o.createComponentVNode)(2,l,{iconkey:"myspray"})}),(0,o.createComponentVNode)(2,c.Button,{width:"64px",height:"64px",position:"relative",tooltip:C||"Light Replacer Slot",tooltipPosition:"top",color:C?"grey":"transparent",style:{border:C?null:"2px solid grey"},onClick:function(){return i("replacer")},children:(0,o.createComponentVNode)(2,l,{iconkey:"myreplacer"})}),(0,o.createComponentVNode)(2,c.Button,{width:"64px",height:"64px",position:"relative",tooltip:h||"Signs Slot",tooltipPosition:"top-start",color:h?"grey":"transparent",style:{border:h?null:"2px solid grey"},onClick:function(){return i("sign")},children:(0,o.createComponentVNode)(2,l,{iconkey:"signs"})})]})})};var i={mybag:"trash",mybucket:"fill",mymop:"broom",myspray:"spray-can",myreplacer:"lightbulb",signs:"sign"},l=function(e,n){var t=(0,r.useBackend)(n).data,a=e.iconkey,l=t.icons;return a in l?(0,o.createVNode)(1,"img",null,null,1,{src:l[a].substr(1,l[a].length-1),style:{position:"absolute",left:0,right:0,top:0,bottom:0,width:"64px",height:"64px","-ms-interpolation-mode":"nearest-neighbor"}}):(0,o.createComponentVNode)(2,c.Icon,{style:{position:"absolute",left:"4px",right:0,top:"20px",bottom:0,width:"64px",height:"64px"},fontSize:2,name:i[a]})}},68741:function(e,n,t){"use strict";n.__esModule=!0,n.Jukebox=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(85952);n.Jukebox=function(e,n){var t=(0,c.useBackend)(n),l=t.act,d=t.data,s=d.playing,u=d.loop_mode,m=d.volume,p=d.current_track_ref,C=d.current_track,h=d.current_genre,N=d.percent,V=d.tracks,b=V.length&&V.reduce((function(e,n){var t=n.genre||"Uncategorized";return e[t]||(e[t]=[]),e[t].push(n),e}),{}),f=s&&(h||"Uncategorized");return(0,o.createComponentVNode)(2,i.Window,{width:450,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{title:"Currently Playing",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Title",children:s&&C&&(0,o.createComponentVNode)(2,a.Box,{children:[C.title," by ",C.artist||"Unkown"]})||(0,o.createComponentVNode)(2,a.Box,{children:"Stopped"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Controls",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"play",disabled:s,onClick:function(){return l("play")},children:"Play"}),(0,o.createComponentVNode)(2,a.Button,{icon:"stop",disabled:!s,onClick:function(){return l("stop")},children:"Stop"})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Loop Mode",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"play",onClick:function(){return l("loopmode",{loopmode:1})},selected:1===u,children:"Next"}),(0,o.createComponentVNode)(2,a.Button,{icon:"random",onClick:function(){return l("loopmode",{loopmode:2})},selected:2===u,children:"Shuffle"}),(0,o.createComponentVNode)(2,a.Button,{icon:"redo",onClick:function(){return l("loopmode",{loopmode:3})},selected:3===u,children:"Repeat"}),(0,o.createComponentVNode)(2,a.Button,{icon:"step-forward",onClick:function(){return l("loopmode",{loopmode:4})},selected:4===u,children:"Once"})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Progress",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:N,maxValue:1,color:"good"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Volume",children:(0,o.createComponentVNode)(2,a.Slider,{minValue:0,step:1,value:100*m,maxValue:100,ranges:{good:[75,Infinity],average:[25,75],bad:[0,25]},format:function(e){return(0,r.round)(e,1)+"%"},onChange:function(e,n){return l("volume",{val:(0,r.round)(n/100,2)})}})})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Available Tracks",children:V.length&&Object.keys(b).sort().map((function(e){return(0,o.createComponentVNode)(2,a.Collapsible,{title:e,color:f===e?"green":"default",child_mt:0,children:(0,o.createVNode)(1,"div",null,b[e].map((function(e){return(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"play",selected:p===e.ref,onClick:function(){return l("change_track",{change_track:e.ref})},children:e.title},e.ref)})),0,{style:{"margin-left":"1em"}})},e)}))||(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Error: No songs loaded."})})]})})}},13204:function(e,n,t){"use strict";n.__esModule=!0,n.LawManager=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.LawManager=function(e,n){var t=(0,r.useBackend)(n),l=(t.act,t.data.isSlaved);return(0,o.createComponentVNode)(2,a.Window,{width:800,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[l&&(0,o.createComponentVNode)(2,c.NoticeBox,{info:!0,children:["Law-synced to ",l]})||null,(0,o.createComponentVNode)(2,i)]})})};var i=function(e,n){var t=(0,r.useSharedState)(n,"lawsTabIndex",0),a=t[0],i=t[1];return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Tabs,{children:[(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:0===a,onClick:function(){return i(0)},children:"Law Management"}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:1===a,onClick:function(){return i(1)},children:"Law Sets"})]}),0===a&&(0,o.createComponentVNode)(2,l)||null,1===a&&(0,o.createComponentVNode)(2,s)||null],0)},l=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.ion_law_nr,s=i.ion_law,u=i.zeroth_law,m=i.inherent_law,p=i.supplied_law,C=i.supplied_law_position,h=i.zeroth_laws,N=i.has_zeroth_laws,V=i.ion_laws,b=i.has_ion_laws,f=i.inherent_laws,g=i.has_inherent_laws,k=i.supplied_laws,v=i.has_supplied_laws,B=i.isAI,L=i.isMalf,_=i.isAdmin,x=i.channel,w=i.channels,S=h.map((function(e){return e.zero=!0,e})).concat(f);return(0,o.createComponentVNode)(2,c.Section,{children:[b&&(0,o.createComponentVNode)(2,d,{laws:V,title:l+" Laws:",mt:-2})||null,(N||g)&&(0,o.createComponentVNode)(2,d,{laws:S,title:"Inherent Laws",mt:-2})||null,v&&(0,o.createComponentVNode)(2,d,{laws:k,title:"Supplied Laws",mt:-2})||null,(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Controls",mt:-2,children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Statement Channel",children:w.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{content:e.channel,selected:x===e.channel,onClick:function(){return a("law_channel",{law_channel:e.channel})}},e.channel)}))}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"State Laws",children:(0,o.createComponentVNode)(2,c.Button,{icon:"volume-up",onClick:function(){return a("state_laws")},children:"State Laws"})}),B&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Law Notification",children:(0,o.createComponentVNode)(2,c.Button,{icon:"exclamation",onClick:function(){return a("notify_laws")},children:"Notify"})})||null]})}),L&&(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Add Laws",mt:-2,children:(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:"Type"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Law"}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:"Index"}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:"Add"})]}),_&&!N&&(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:"Zero"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Input,{value:u,fluid:!0,onChange:function(e,n){return a("change_zeroth_law",{val:n})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"N/A"}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,c.Button,{icon:"plus",onClick:function(){return a("add_zeroth_law")},children:"Add"})})]})||null,(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:"Ion"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Input,{value:s,fluid:!0,onChange:function(e,n){return a("change_ion_law",{val:n})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"N/A"}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,c.Button,{icon:"plus",onClick:function(){return a("add_ion_law")},children:"Add"})})]}),(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Inherent"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Input,{value:m,fluid:!0,onChange:function(e,n){return a("change_inherent_law",{val:n})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"N/A"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"plus",onClick:function(){return a("add_inherent_law")},children:"Add"})})]}),(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Supplied"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Input,{value:p,fluid:!0,onChange:function(e,n){return a("change_supplied_law",{val:n})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"pen",onClick:function(){return a("change_supplied_law_position")},children:C})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"plus",onClick:function(){return a("add_supplied_law")},children:"Add"})})]})]})})||null]})},d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.isMalf,d=i.isAdmin,s=e.laws,u=e.title,m=e.noButtons,p=function(e,n){if(null==e)return{};var t,o,r={},c=Object.keys(e);for(o=0;o=0||(r[t]=e[t]);return r}(e,["laws","title","noButtons"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,c.Section,Object.assign({level:2,title:u},p,{children:(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:"Index"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Law"}),!m&&(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:"State"})||null,l&&!m&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:"Edit"}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:"Delete"})],4)||null]}),s.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:[e.index,"."]}),(0,o.createComponentVNode)(2,c.Table.Cell,{color:e.zero?"bad":null,children:e.law}),!m&&(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"volume-up",selected:e.state,onClick:function(){return a("state_law",{ref:e.ref,state_law:!e.state})},children:e.state?"Yes":"No"})})||null,l&&!m&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,c.Button,{disabled:e.zero&&!d,icon:"pen",onClick:function(){return a("edit_law",{edit_law:e.ref})},children:"Edit"})}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,c.Button,{disabled:e.zero&&!d,color:"bad",icon:"trash",onClick:function(){return a("delete_law",{delete_law:e.ref})},children:"Delete"})})],4)||null]},e.index)}))]})})))},s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.isMalf,s=i.law_sets;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.NoticeBox,{children:"Remember: Stating laws other than those currently loaded may be grounds for decommissioning! - NanoTrasen"}),s.length&&s.map((function(e){return(0,o.createComponentVNode)(2,c.Section,{title:e.name,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{disabled:!l,icon:"sync",onClick:function(){return a("transfer_laws",{transfer_laws:e.ref})},children:"Load Laws"}),(0,o.createComponentVNode)(2,c.Button,{icon:"volume-up",onClick:function(){return a("state_law_set",{state_law_set:e.ref})},children:"State Laws"})],4),children:[e.laws.has_ion_laws&&(0,o.createComponentVNode)(2,d,{noButtons:!0,laws:e.laws.ion_laws,title:e.laws.ion_law_nr+" Laws:"})||null,(e.laws.has_zeroth_laws||e.laws.has_inherent_laws)&&(0,o.createComponentVNode)(2,d,{noButtons:!0,laws:e.laws.zeroth_laws.concat(e.laws.inherent_laws),title:e.header})||null,e.laws.has_supplied_laws&&(0,o.createComponentVNode)(2,d,{noButtons:!0,laws:e.laws.supplied_laws,title:"Supplied Laws"})||null]},e.name)}))||null],0)}},58802:function(e,n,t){"use strict";n.__esModule=!0,n.Loader=n.ListInput=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(29708),l=t(85952),d=0;n.ListInput=function(e,n){var t=(0,c.useBackend)(n),r=t.act,u=t.data,m=u.title,p=u.message,C=u.buttons,h=u.timeout,N=u.initial,V=(0,c.useLocalState)(n,"search_bar",!1),b=V[0],f=V[1],g=(0,c.useLocalState)(n,"displayed_array",C),k=g[0],v=g[1],B=(0,c.useLocalState)(n,"search_array",[]),L=B[0],_=B[1],x=(0,c.useLocalState)(n,"search_index",0),w=x[0],S=x[1],I=(0,c.useLocalState)(n,"last_char_code",null),y=I[0],T=I[1],A=(0,c.useLocalState)(n,"selected_button",N||C[0]),P=A[0],M=A[1];return(0,o.createComponentVNode)(2,l.Window,{title:m,theme:"abstract",width:325,height:325,children:[h!==undefined&&(0,o.createComponentVNode)(2,s,{value:h}),(0,o.createComponentVNode)(2,l.Window.Content,{children:(0,o.createComponentVNode)(2,a.Stack,{fill:!0,vertical:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Section,{fill:!0,scrollable:!0,autoFocus:!0,className:"ListInput__Section",title:p,tabIndex:0,onKeyDown:function(e){if(e.preventDefault(),!(d>performance.now())){if(d=performance.now()+125,e.keyCode===i.KEY_HOME||e.keyCode===i.KEY_END){var n=e.keyCode===i.KEY_HOME?0:C.length-1;return M(C[n]),T(null),void document.getElementById(C[n]).focus()}if(e.keyCode===i.KEY_UP||e.keyCode===i.KEY_DOWN){var t=1;e.keyCode===i.KEY_UP&&(t=-1);for(var o=0;o=C.length&&(o=0),M(C[o]),T(null),void document.getElementById(C[o]).focus()}if(e.keyCode!==i.KEY_SPACE&&e.keyCode!==i.KEY_ENTER)if(e.keyCode!==i.KEY_ESCAPE){var c=String.fromCharCode(e.keyCode).toLowerCase();if(c){var a;if(c===y&&L.length>0){var l=w+1;l0&&(_(s),S(0),a=s[0])}a&&(T(c),M(a),document.getElementById(a).focus())}}else r("cancel");else r("choose",{choice:P})}},buttons:(0,o.createComponentVNode)(2,a.Button,{compact:!0,icon:"search",color:"transparent",selected:b,tooltip:"Search Bar",tooltipPosition:"left",onClick:function(){f(!b),v(C)}}),children:k.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"transparent",id:e,selected:P===e,onClick:function(){P===e?r("choose",{choice:e}):M(e),T(null)},children:e},e)}))})}),b&&(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Input,{fluid:!0,onInput:function(e,n){return v(C.filter((function(e){return-1!==e.toLowerCase().search(n.toLowerCase())})))}})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Stack,{textAlign:"center",children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,basis:0,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"good",lineHeight:2,content:"Confirm",disabled:null===P,onClick:function(){return r("choose",{choice:P})}})}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,basis:0,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"bad",lineHeight:2,content:"Cancel",onClick:function(){return r("cancel")}})})]})})]})})]})};var s=function(e){var n=e.value;return(0,o.createVNode)(1,"div","ListInput__Loader",(0,o.createComponentVNode)(2,a.Box,{className:"ListInput__LoaderProgress",style:{width:100*(0,r.clamp01)(n)+"%"}}),2)};n.Loader=s},36104:function(e,n,t){"use strict";n.__esModule=!0,n.LookingGlass=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.LookingGlass=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.supportedPrograms,s=l.currentProgram,u=l.immersion,m=l.gravity,p=Math.min(180+23*d.length,600);return(0,o.createComponentVNode)(2,a.Window,{width:300,height:p,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Programs",children:d.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"eye",selected:e===s,onClick:function(){return i("program",{program:e})},children:e},e)}))}),(0,o.createComponentVNode)(2,c.Section,{title:"Controls",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Gravity",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"user-astronaut",selected:m,onClick:function(){return i("gravity")},children:m?"Enabled":"Disabled"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Full Immersion",children:(0,o.createComponentVNode)(2,c.Button,{mt:-1,fluid:!0,icon:"eye",selected:u,onClick:function(){return i("immersion")},children:u?"Enabled":"Disabled"})})]})})]})})}},74714:function(e,n,t){"use strict";n.__esModule=!0,n.MechaControlConsole=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=t(2497);n.MechaControlConsole=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data,s=d.beacons,u=d.stored_data;return(0,o.createComponentVNode)(2,a.Window,{width:600,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[u.length&&(0,o.createComponentVNode)(2,c.Modal,{children:(0,o.createComponentVNode)(2,c.Section,{height:"400px",style:{"overflow-y":"auto"},title:"Log",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"window-close",onClick:function(){return l("clear_log")}}),children:u.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Box,{color:"label",children:["(",e.time,") (",e.year,")"]}),(0,o.createComponentVNode)(2,c.Box,{children:(0,i.decodeHtmlEntities)(e.message)})]},e.time)}))})})||null,s.length&&s.map((function(e){return(0,o.createComponentVNode)(2,c.Section,{title:e.name,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"comment",onClick:function(){return l("send_message",{mt:e.ref})},children:"Message"}),(0,o.createComponentVNode)(2,c.Button,{icon:"eye",onClick:function(){return l("get_log",{mt:e.ref})},children:"View Log"}),(0,o.createComponentVNode)(2,c.Button.Confirm,{color:"red",content:"EMP",icon:"bomb",onClick:function(){return l("shock",{mt:e.ref})}})],4),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Health",children:(0,o.createComponentVNode)(2,c.ProgressBar,{ranges:{good:[.75*e.maxHealth,Infinity],average:[.5*e.maxHealth,.75*e.maxHealth],bad:[-Infinity,.5*e.maxHealth]},value:e.health,maxValue:e.maxHealth})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Cell Charge",children:e.cell&&(0,o.createComponentVNode)(2,c.ProgressBar,{ranges:{good:[.75*e.cellMaxCharge,Infinity],average:[.5*e.cellMaxCharge,.75*e.cellMaxCharge],bad:[-Infinity,.5*e.cellMaxCharge]},value:e.cellCharge,maxValue:e.cellMaxCharge})||(0,o.createComponentVNode)(2,c.NoticeBox,{children:"No Cell Installed"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Air Tank",children:[e.airtank,"kPa"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Pilot",children:e.pilot||"Unoccupied"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Location",children:(0,i.toTitleCase)(e.location)||"Unknown"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Active Equipment",children:e.active||"None"}),e.cargoMax&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Cargo Space",children:(0,o.createComponentVNode)(2,c.ProgressBar,{ranges:{bad:[.75*e.cargoMax,Infinity],average:[.5*e.cargoMax,.75*e.cargoMax],good:[-Infinity,.5*e.cargoMax]},value:e.cargoUsed,maxValue:e.cargoMax})})||null]})},e.name)}))||(0,o.createComponentVNode)(2,c.NoticeBox,{children:"No mecha beacons found."})]})})}},17888:function(e,n,t){"use strict";n.__esModule=!0,n.Medbot=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.Medbot=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.on,s=l.open,u=l.beaker,m=l.beaker_total,p=l.beaker_max,C=l.locked,h=l.heal_threshold,N=l.heal_threshold_max,V=l.injection_amount_min,b=l.injection_amount,f=l.injection_amount_max,g=l.use_beaker,k=l.declare_treatment,v=l.vocal;return(0,o.createComponentVNode)(2,a.Window,{width:400,height:600,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Automatic Medical Unit v2.0",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:d,onClick:function(){return i("power")},children:d?"On":"Off"}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Maintenance Panel",color:s?"bad":"good",children:s?"Open":"Closed"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Beaker",buttons:(0,o.createComponentVNode)(2,c.Button,{disabled:!u,icon:"eject",onClick:function(){return i("eject")},children:"Eject"}),children:u&&(0,o.createComponentVNode)(2,c.ProgressBar,{value:m,maxValue:p,children:[m," / ",p]})||(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No beaker loaded."})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Behavior Controls",color:C?"good":"bad",children:C?"Locked":"Unlocked"})]})}),!C&&(0,o.createComponentVNode)(2,c.Section,{title:"Behavioral Controls",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Healing Threshold",children:(0,o.createComponentVNode)(2,c.NumberInput,{fluid:!0,minValue:0,maxValue:N,value:h,onDrag:function(e,n){return i("adj_threshold",{val:n})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Injection Amount",children:(0,o.createComponentVNode)(2,c.NumberInput,{fluid:!0,minValue:V,maxValue:f,value:b,onDrag:function(e,n){return i("adj_inject",{val:n})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Reagent Source",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:g?"toggle-on":"toggle-off",selected:g,onClick:function(){return i("use_beaker")},children:g?"Loaded Beaker (When available)":"Internal Synthesizer"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Treatment Report",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:k?"toggle-on":"toggle-off",selected:k,onClick:function(){return i("declaretreatment")},children:k?"On":"Off"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Speaker",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:v?"toggle-on":"toggle-off",selected:v,onClick:function(){return i("togglevoice")},children:v?"On":"Off"})})]})})||null]})})}},37610:function(e,n,t){"use strict";n.__esModule=!0,n.MedicalRecords=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(16007),i=t(85952),l=t(28117),d=t(1192),s=t(36355),u=(t(2497),function(e,n){(0,a.modalOpen)(e,"edit",{field:n.edit,value:n.value})});n.MedicalRecords=function(e,n){var t,u=(0,r.useBackend)(n).data,h=u.authenticated,N=u.screen;return h?(2===N?t=(0,o.createComponentVNode)(2,m):3===N?t=(0,o.createComponentVNode)(2,p):4===N?t=(0,o.createComponentVNode)(2,C):5===N?t=(0,o.createComponentVNode)(2,V):6===N&&(t=(0,o.createComponentVNode)(2,b)),(0,o.createComponentVNode)(2,i.Window,{width:800,height:380,resizable:!0,children:[(0,o.createComponentVNode)(2,a.ComplexModal,{maxHeight:"100%",maxWidth:"80%"}),(0,o.createComponentVNode)(2,i.Window.Content,{className:"Layout__content--flexColumn",children:[(0,o.createComponentVNode)(2,l.LoginInfo),(0,o.createComponentVNode)(2,s.TemporaryNotice),(0,o.createComponentVNode)(2,f),(0,o.createComponentVNode)(2,c.Section,{height:"calc(100% - 5rem)",flexGrow:"1",children:t})]})]})):(0,o.createComponentVNode)(2,i.Window,{width:800,height:380,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,d.LoginScreen)})})};var m=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.records;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Input,{fluid:!0,placeholder:"Search by Name, DNA, or ID",onChange:function(e,n){return a("search",{t1:n})}}),(0,o.createComponentVNode)(2,c.Box,{mt:"0.5rem",children:i.map((function(e,n){return(0,o.createComponentVNode)(2,c.Button,{icon:"user",mb:"0.5rem",content:e.id+": "+e.name,onClick:function(){return a("d_rec",{d_rec:e.ref})}},n)}))})],4)},p=function(e,n){var t=(0,r.useBackend)(n).act;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"download",content:"Backup to Disk",disabled:!0}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Button,{icon:"upload",content:"Upload from Disk",my:"0.5rem",disabled:!0}),(0,o.createTextVNode)(" "),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Button.Confirm,{icon:"trash",content:"Delete All Medical Records",onClick:function(){return t("del_all")}})],4)},C=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.medical,d=i.printing;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"General Data",level:2,mt:"-6px",children:(0,o.createComponentVNode)(2,h)}),(0,o.createComponentVNode)(2,c.Section,{title:"Medical Data",level:2,children:(0,o.createComponentVNode)(2,N)}),(0,o.createComponentVNode)(2,c.Section,{title:"Actions",level:2,children:[(0,o.createComponentVNode)(2,c.Button.Confirm,{icon:"trash",disabled:!!l.empty,content:"Delete Medical Record",color:"bad",onClick:function(){return a("del_r")}}),(0,o.createComponentVNode)(2,c.Button,{icon:d?"spinner":"print",disabled:d,iconSpin:!!d,content:"Print Entry",ml:"0.5rem",onClick:function(){return a("print_p")}}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-left",content:"Back",mt:"0.5rem",onClick:function(){return a("screen",{screen:2})}})]})],4)},h=function(e,n){var t=(0,r.useBackend)(n).data.general;return t&&t.fields?(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Box,{width:"50%",float:"left",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:t.fields.map((function(e,t){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.field,children:[(0,o.createComponentVNode)(2,c.Box,{height:"20px",display:"inline-block",preserveWhitespace:!0,children:e.value}),!!e.edit&&(0,o.createComponentVNode)(2,c.Button,{icon:"pen",ml:"0.5rem",onClick:function(){return u(n,e)}})]},t)}))})}),(0,o.createComponentVNode)(2,c.Box,{width:"50%",float:"right",textAlign:"right",children:!!t.has_photos&&t.photos.map((function(e,n){return(0,o.createComponentVNode)(2,c.Box,{display:"inline-block",textAlign:"center",color:"label",children:[(0,o.createVNode)(1,"img",null,null,1,{src:e.substr(1,e.length-1),style:{width:"96px","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createVNode)(1,"br"),"Photo #",n+1]},n)}))})],4):(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"General records lost!"})},N=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data.medical;return l&&l.fields?(0,o.createFragment)([(0,o.createComponentVNode)(2,c.LabeledList,{children:l.fields.map((function(e,t){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.field,preserveWhitespace:!0,children:[e.value,(0,o.createComponentVNode)(2,c.Button,{icon:"pen",ml:"0.5rem",mb:e.line_break?"1rem":"initial",onClick:function(){return u(n,e)}})]},t)}))}),(0,o.createComponentVNode)(2,c.Section,{title:"Comments/Log",level:2,children:[0===l.comments.length?(0,o.createComponentVNode)(2,c.Box,{color:"label",children:"No comments found."}):l.comments.map((function(e,n){return(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Box,{color:"label",inline:!0,children:e.header}),(0,o.createVNode)(1,"br"),e.text,(0,o.createComponentVNode)(2,c.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){return i("del_c",{del_c:n+1})}})]},n)})),(0,o.createComponentVNode)(2,c.Button,{icon:"comment-medical",content:"Add Entry",color:"good",mt:"0.5rem",mb:"0",onClick:function(){return(0,a.modalOpen)(n,"add_c")}})]})],4):(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:["Medical records lost!",(0,o.createComponentVNode)(2,c.Button,{icon:"pen",content:"New Record",ml:"0.5rem",onClick:function(){return i("new")}})]})},V=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.virus;return i.sort((function(e,n){return e.name>n.name?1:-1})),i.map((function(e,n){return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"flask",content:e.name,mb:"0.5rem",onClick:function(){return a("vir",{vir:e.D})}}),(0,o.createVNode)(1,"br")],4,n)}))},b=function(e,n){var t=(0,r.useBackend)(n).data.medbots;return 0===t.length?(0,o.createComponentVNode)(2,c.Box,{color:"label",children:"There are no Medbots."}):t.map((function(e,n){return(0,o.createComponentVNode)(2,c.Collapsible,{open:!0,title:e.name,children:(0,o.createComponentVNode)(2,c.Box,{px:"0.5rem",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Location",children:[e.area||"Unknown"," (",e.x,", ",e.y,")"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Status",children:e.on?(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Box,{color:"good",children:"Online"}),(0,o.createComponentVNode)(2,c.Box,{mt:"0.5rem",children:e.use_beaker?"Reservoir: "+e.total_volume+"/"+e.maximum_volume:"Using internal synthesizer."})],4):(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"Offline"})})]})})},n)}))},f=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.screen;return(0,o.createComponentVNode)(2,c.Tabs,{children:[(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:2===i,onClick:function(){return a("screen",{screen:2})},children:[(0,o.createComponentVNode)(2,c.Icon,{name:"list"}),"List Records"]}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:5===i,onClick:function(){return a("screen",{screen:5})},children:[(0,o.createComponentVNode)(2,c.Icon,{name:"database"}),"Virus Database"]}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:6===i,onClick:function(){return a("screen",{screen:6})},children:[(0,o.createComponentVNode)(2,c.Icon,{name:"plus-square"}),"Medbot Tracking"]}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:3===i,onClick:function(){return a("screen",{screen:3})},children:[(0,o.createComponentVNode)(2,c.Icon,{name:"wrench"}),"Record Maintenance"]})]})};(0,a.modalRegisterBodyOverride)("virus",(function(e,n){var t=(0,r.useBackend)(n).act,a=e.args;return(0,o.createComponentVNode)(2,c.Section,{level:2,m:"-1rem",title:a.name||"Virus",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"times",color:"red",onClick:function(){return t("modal_close")}}),children:(0,o.createComponentVNode)(2,c.Box,{mx:"0.5rem",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Spread",children:[a.spread_text," Transmission"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Possible cure",children:a.antigen}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Rate of Progression",children:a.rate}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Antibiotic Resistance",children:[a.resistance,"%"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Species Affected",children:a.species}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Symptoms",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:a.symptoms.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.stage+". "+e.name,children:[(0,o.createComponentVNode)(2,c.Box,{inline:!0,color:"label",children:"Strength:"})," ",e.strength,"\xa0",(0,o.createComponentVNode)(2,c.Box,{inline:!0,color:"label",children:"Aggressiveness:"})," ",e.aggressiveness]},e.stage)}))})})]})})})}))},287:function(e,n,t){"use strict";n.__esModule=!0,n.MessageMonitor=void 0;var o=t(39812),r=(t(41860),t(2497)),c=t(71494),a=t(74814),i=t(85952),l=t(36355),d=t(67861);n.MessageMonitor=function(e,n){var t,r=(0,c.useBackend)(n),d=(r.act,r.data),p=d.auth,C=d.linkedServer,h=(d.message,d.hacking),N=d.emag;return t=h||N?(0,o.createComponentVNode)(2,s):p?C?(0,o.createComponentVNode)(2,m):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"ERROR"}):(0,o.createComponentVNode)(2,u),(0,o.createComponentVNode)(2,i.Window,{width:670,height:450,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,l.TemporaryNotice),t]})})};var s=function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data.isMalfAI);return(0,o.createComponentVNode)(2,d.FullscreenNotice,{title:"ERROR",children:r?(0,o.createComponentVNode)(2,a.Box,{children:"Brute-forcing for server key. It will take 20 seconds for every character that the password has."}):(0,o.createComponentVNode)(2,a.Box,{children:["01000010011100100111010101110100011001010010110",(0,o.createVNode)(1,"br"),"10110011001101111011100100110001101101001011011100110011",(0,o.createVNode)(1,"br"),"10010000001100110011011110111001000100000011100110110010",(0,o.createVNode)(1,"br"),"10111001001110110011001010111001000100000011010110110010",(0,o.createVNode)(1,"br"),"10111100100101110001000000100100101110100001000000111011",(0,o.createVNode)(1,"br"),"10110100101101100011011000010000001110100011000010110101",(0,o.createVNode)(1,"br"),"10110010100100000001100100011000000100000011100110110010",(0,o.createVNode)(1,"br"),"10110001101101111011011100110010001110011001000000110011",(0,o.createVNode)(1,"br"),"00110111101110010001000000110010101110110011001010111001",(0,o.createVNode)(1,"br"),"00111100100100000011000110110100001100001011100100110000",(0,o.createVNode)(1,"br"),"10110001101110100011001010111001000100000011101000110100",(0,o.createVNode)(1,"br"),"00110000101110100001000000111010001101000011001010010000",(0,o.createVNode)(1,"br"),"00111000001100001011100110111001101110111011011110111001",(0,o.createVNode)(1,"br"),"00110010000100000011010000110000101110011001011100010000",(0,o.createVNode)(1,"br"),"00100100101101110001000000111010001101000011001010010000",(0,o.createVNode)(1,"br"),"00110110101100101011000010110111001110100011010010110110",(0,o.createVNode)(1,"br"),"10110010100101100001000000111010001101000011010010111001",(0,o.createVNode)(1,"br"),"10010000001100011011011110110111001110011011011110110110",(0,o.createVNode)(1,"br"),"00110010100100000011000110110000101101110001000000111001",(0,o.createVNode)(1,"br"),"00110010101110110011001010110000101101100001000000111100",(0,o.createVNode)(1,"br"),"10110111101110101011100100010000001110100011100100111010",(0,o.createVNode)(1,"br"),"10110010100100000011010010110111001110100011001010110111",(0,o.createVNode)(1,"br"),"00111010001101001011011110110111001110011001000000110100",(0,o.createVNode)(1,"br"),"10110011000100000011110010110111101110101001000000110110",(0,o.createVNode)(1,"br"),"00110010101110100001000000111001101101111011011010110010",(0,o.createVNode)(1,"br"),"10110111101101110011001010010000001100001011000110110001",(0,o.createVNode)(1,"br"),"10110010101110011011100110010000001101001011101000010111",(0,o.createVNode)(1,"br"),"00010000001001101011000010110101101100101001000000111001",(0,o.createVNode)(1,"br"),"10111010101110010011001010010000001101110011011110010000",(0,o.createVNode)(1,"br"),"00110100001110101011011010110000101101110011100110010000",(0,o.createVNode)(1,"br"),"00110010101101110011101000110010101110010001000000111010",(0,o.createVNode)(1,"br"),"00110100001100101001000000111001001101111011011110110110",(0,o.createVNode)(1,"br"),"10010000001100100011101010111001001101001011011100110011",(0,o.createVNode)(1,"br"),"10010000001110100011010000110000101110100001000000111010",(0,o.createVNode)(1,"br"),"001101001011011010110010100101110"]})})},u=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.isMalfAI;return(0,o.createComponentVNode)(2,d.FullscreenNotice,{title:"Welcome",children:[(0,o.createComponentVNode)(2,a.Box,{fontSize:"1.5rem",bold:!0,children:[(0,o.createComponentVNode)(2,a.Icon,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"}),"Unauthorized"]}),(0,o.createComponentVNode)(2,a.Box,{color:"label",my:"1rem",children:["Decryption Key:",(0,o.createComponentVNode)(2,a.Input,{placeholder:"Decryption Key",ml:"0.5rem",onChange:function(e,n){return r("auth",{key:n})}})]}),!!i&&(0,o.createComponentVNode)(2,a.Button,{icon:"terminal",content:"Hack",onClick:function(){return r("hack")}}),(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"Please authenticate with the server in order to show additional options."})]})},m=function(e,n){var t,r=(0,c.useBackend)(n),i=r.act,l=r.data.linkedServer,d=(0,c.useLocalState)(n,"tabIndex",0),s=d[0],u=d[1];return 0===s?t=(0,o.createComponentVNode)(2,p):1===s?t=(0,o.createComponentVNode)(2,C,{logs:l.pda_msgs,pda:!0}):2===s?t=(0,o.createComponentVNode)(2,C,{logs:l.rc_msgs,rc:!0}):3===s?t=(0,o.createComponentVNode)(2,h):4===s&&(t=(0,o.createComponentVNode)(2,N)),(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Tabs,{children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:0===s,onClick:function(){return u(0)},children:[(0,o.createComponentVNode)(2,a.Icon,{name:"bars"})," Main Menu"]},"Main"),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:1===s,onClick:function(){return u(1)},children:[(0,o.createComponentVNode)(2,a.Icon,{name:"font"})," Message Logs"]},"MessageLogs"),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:2===s,onClick:function(){return u(2)},children:[(0,o.createComponentVNode)(2,a.Icon,{name:"bold"})," Request Logs"]},"RequestLogs"),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:3===s,onClick:function(){return u(3)},children:[(0,o.createComponentVNode)(2,a.Icon,{name:"comment-alt"})," Admin Messaging"]},"AdminMessage"),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:4===s,onClick:function(){return u(4)},children:[(0,o.createComponentVNode)(2,a.Icon,{name:"comment-slash"})," Spam Filter"]},"SpamFilter"),(0,o.createComponentVNode)(2,a.Tabs.Tab,{color:"red",onClick:function(){return i("deauth")},children:[(0,o.createComponentVNode)(2,a.Icon,{name:"sign-out-alt"})," Log Out"]},"Logout")]}),(0,o.createComponentVNode)(2,a.Box,{m:2,children:t})],4)},p=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.linkedServer;return(0,o.createComponentVNode)(2,a.Section,{title:"Main Menu",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"link",content:"Server Link",onClick:function(){return r("find")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",content:"Server "+(i.active?"Enabled":"Disabled"),selected:i.active,onClick:function(){return r("active")}})],4),children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Server Status",children:(0,o.createComponentVNode)(2,a.Box,{color:"good",children:"Good"})})}),(0,o.createComponentVNode)(2,a.Button,{mt:1,icon:"key",content:"Set Custom Key",onClick:function(){return r("pass")}}),(0,o.createComponentVNode)(2,a.Button.Confirm,{color:"red",confirmIcon:"exclamation-triangle",icon:"exclamation-triangle",content:"Clear Message Logs"}),(0,o.createComponentVNode)(2,a.Button.Confirm,{color:"red",confirmIcon:"exclamation-triangle",icon:"exclamation-triangle",content:"Clear Request Logs"})]})},C=function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=(t.data,e.logs),d=e.pda,s=e.rc;return(0,o.createComponentVNode)(2,a.Section,{title:d?"PDA Logs":s?"Request Logs":"Logs",buttons:(0,o.createComponentVNode)(2,a.Button.Confirm,{color:"red",icon:"trash",confirmIcon:"trash",content:"Delete All",onClick:function(){return i(d?"del_pda":"del_rc")}}),children:(0,o.createComponentVNode)(2,a.Flex,{wrap:"wrap",children:l.map((function(e,n){return(0,o.createComponentVNode)(2,a.Flex.Item,{m:"2px",basis:"49%",grow:n%2,children:(0,o.createComponentVNode)(2,a.Section,{title:e.sender+" -> "+e.recipient,buttons:(0,o.createComponentVNode)(2,a.Button.Confirm,{confirmContent:"Delete Log?",color:"bad",icon:"trash",confirmIcon:"trash",onClick:function(){return i("delete",{id:e.ref,type:s?"rc":"pda"})}}),children:s?(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Message",children:e.message}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Verification",color:"Unauthenticated"===e.id_auth?"bad":"good",children:(0,r.decodeHtmlEntities)(e.id_auth)}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Stamp",children:e.stamp})]}):e.message})},e.ref)}))})})},h=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=i.possibleRecipients,d=i.customsender,s=i.customrecepient,u=i.customjob,m=i.custommessage,p=Object.keys(l);return(0,o.createComponentVNode)(2,a.Section,{title:"Admin Messaging",children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Sender",children:(0,o.createComponentVNode)(2,a.Input,{fluid:!0,value:d,onChange:function(e,n){return r("set_sender",{val:n})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Sender's Job",children:(0,o.createComponentVNode)(2,a.Input,{fluid:!0,value:u,onChange:function(e,n){return r("set_sender_job",{val:n})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Recipient",children:(0,o.createComponentVNode)(2,a.Dropdown,{value:s,options:p,width:"100%",mb:-.7,onSelected:function(e){return r("set_recipient",{val:l[e]})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Message",verticalAlign:"top",children:(0,o.createComponentVNode)(2,a.Input,{fluid:!0,mb:.5,value:m,onChange:function(e,n){return r("set_message",{val:n})}})})]}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"comment",content:"Send Message",onClick:function(){return r("send_message")}})]})},N=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.linkedServer;return(0,o.createComponentVNode)(2,a.Section,{title:"Spam Filtering",children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:i.spamFilter.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.index,buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"trash",color:"bad",content:"Delete",onClick:function(){return r("deltoken",{deltoken:e.index})}}),children:e.token},e.index)}))}),(0,o.createComponentVNode)(2,a.Button,{icon:"plus",content:"Add New Entry",onClick:function(){return r("addtoken")}})]})}},75412:function(e,n,t){"use strict";n.__esModule=!0,n.Microwave=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.Microwave=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.config,d=t.data,s=d.broken,u=d.operating,m=d.dirty,p=d.items;return(0,o.createComponentVNode)(2,a.Window,{width:400,height:500,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:s&&(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Bzzzzttttt!!"})})||u&&(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.Box,{color:"good",children:["Microwaving in progress!",(0,o.createVNode)(1,"br"),"Please wait...!"]})})||m&&(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:["This microwave is dirty!",(0,o.createVNode)(1,"br"),"Please clean it before use!"]})})||p.length&&(0,o.createComponentVNode)(2,c.Section,{level:1,title:"Ingredients",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"radiation",onClick:function(){return i("cook")},children:"Microwave"}),(0,o.createComponentVNode)(2,c.Button,{icon:"eject",onClick:function(){return i("dispose")},children:"Eject"})],4),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:p.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name,children:[e.amt," ",e.extra]},e.name)}))})})||(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:[l.title," is empty."]})})})})}},35016:function(e,n,t){"use strict";n.__esModule=!0,n.MiningOreProcessingConsole=void 0;var o=t(39812),r=t(2497),c=t(71494),a=t(74814),i=t(85952),l=(t(64499),t(21526));n.MiningOreProcessingConsole=function(e,n){var t=(0,c.useBackend)(n),r=t.act,d=t.data,s=d.unclaimedPoints,u=(d.ores,d.showAllOres,d.power),p=d.speed;return(0,o.createComponentVNode)(2,i.Window,{width:400,height:500,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:[(0,o.createComponentVNode)(2,l.MiningUser,{insertIdText:(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-right",mr:1,onClick:function(){return r("insert")},children:"Insert ID"}),"in order to claim points."]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Status",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"bolt",selected:p,onClick:function(){return r("speed_toggle")},children:p?"High-Speed Active":"High-Speed Inactive"}),(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",selected:u,onClick:function(){return r("power")},children:u?"Smelting":"Not Smelting"})],4),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Current unclaimed points",buttons:(0,o.createComponentVNode)(2,a.Button,{disabled:s<1,icon:"download",onClick:function(){return r("claim")},children:"Claim"}),children:(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:s})})})}),(0,o.createComponentVNode)(2,m)]})})};var d=["Not Processing","Smelting","Compressing","Alloying"],s=["verdantium","mhydrogen","diamond","platinum","uranium","gold","silver","rutile","phoron","marble","lead","sand","carbon","hematite"],u=function(e,n){return-1===s.indexOf(e.ore)||-1===s.indexOf(n.ore)?e.ore-n.ore:s.indexOf(n.ore)-s.indexOf(e.ore)},m=function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data,s=l.ores,m=l.showAllOres;l.power;return(0,o.createComponentVNode)(2,a.Section,{title:"Ore Processing Controls",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:m?"toggle-on":"toggle-off",selected:m,onClick:function(){return i("showAllOres")},children:m?"All Ores":"Ores in Machine"}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:s.length&&s.sort(u).map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:(0,r.toTitleCase)(e.name),buttons:(0,o.createComponentVNode)(2,a.Dropdown,{width:"120px",color:(0===e.processing?"red":1===e.processing&&"green")||2===e.processing&&"blue"||3===e.processing&&"yellow",options:d,selected:d[e.processing],onSelected:function(n){return i("toggleSmelting",{ore:e.ore,set:d.indexOf(n)})}}),children:(0,o.createComponentVNode)(2,a.Box,{inline:!0,children:(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:e.amount})})},e.ore)}))||(0,o.createComponentVNode)(2,a.Box,{color:"bad",textAlign:"center",children:"No ores in machine."})})})}},87314:function(e,n,t){"use strict";n.__esModule=!0,n.MiningStackingConsole=void 0;var o=t(39812),r=t(2497),c=t(71494),a=t(74814),i=t(85952);t(64499);n.MiningStackingConsole=function(e,n){var t=(0,c.useBackend)(n),l=t.act,d=t.data,s=d.stacktypes,u=d.stackingAmt;return(0,o.createComponentVNode)(2,i.Window,{width:400,height:500,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{title:"Stacker Controls",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Stacking",children:(0,o.createComponentVNode)(2,a.NumberInput,{fluid:!0,value:u,minValue:1,maxValue:50,stepPixelSize:5,onChange:function(e,n){return l("change_stack",{amt:n})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Divider),s.length&&s.sort().map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:(0,r.toTitleCase)(e.type),buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"eject",onClick:function(){return l("release_stack",{stack:e.type})},children:"Eject"}),children:(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:e.amt})},e.type)}))||(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Empty",color:"average",children:"No stacks in machine."})]})})})})}},62012:function(e,n,t){"use strict";n.__esModule=!0,n.MiningVendor=void 0;var o=t(39812),r=t(2497),c=t(71494),a=t(74814),i=t(85952),l=t(21526);var d={Alphabetical:function(e,n){return e-n},"By availability":function(e,n){return-(e.affordable-n.affordable)},"By price":function(e,n){return e.price-n.price}};n.MiningVendor=function(e,n){return(0,o.createComponentVNode)(2,i.Window,{width:400,height:450,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:[(0,o.createComponentVNode)(2,l.MiningUser,{insertIdText:"Please insert an ID in order to make purchases."}),(0,o.createComponentVNode)(2,u),(0,o.createComponentVNode)(2,s)]})})};var s=function(e,n){var t=(0,c.useBackend)(n),l=(t.act,t.data),s=l.has_id,u=l.id,p=l.items,C=(0,c.useLocalState)(n,"search",""),h=C[0],N=(C[1],(0,c.useLocalState)(n,"sort","Alphabetical")),V=N[0],b=(N[1],(0,c.useLocalState)(n,"descending",!1)),f=b[0],g=(b[1],(0,r.createSearch)(h,(function(e){return e[0]}))),k=!1,v=Object.entries(p).map((function(e,n){var t=Object.entries(e[1]).filter(g).map((function(e){return e[1].affordable=s&&u.points>=e[1].price,e[1]})).sort(d[V]);if(0!==t.length)return f&&(t=t.reverse()),k=!0,(0,o.createComponentVNode)(2,m,{title:e[0],items:t},e[0])}));return(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",overflow:"auto",children:(0,o.createComponentVNode)(2,a.Section,{onClick:function(e){return(0,i.refocusLayout)()},children:k?v:(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"No items matching your criteria was found!"})})})},u=function(e,n){var t=(0,c.useLocalState)(n,"search",""),r=(t[0],t[1]),i=(0,c.useLocalState)(n,"sort",""),l=(i[0],i[1]),s=(0,c.useLocalState)(n,"descending",!1),u=s[0],m=s[1];return(0,o.createComponentVNode)(2,a.Box,{mb:"0.5rem",children:(0,o.createComponentVNode)(2,a.Flex,{width:"100%",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",mr:"0.5rem",children:(0,o.createComponentVNode)(2,a.Input,{placeholder:"Search by item name..",width:"100%",onInput:function(e,n){return r(n)}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"30%",children:(0,o.createComponentVNode)(2,a.Dropdown,{selected:"Alphabetical",options:Object.keys(d),width:"100%",lineHeight:"19px",onSelected:function(e){return l(e)}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Button,{icon:u?"arrow-down":"arrow-up",height:"19px",tooltip:u?"Descending order":"Ascending order",tooltipPosition:"bottom-end",ml:"0.5rem",onClick:function(){return m(!u)}})})]})})},m=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=e.title,d=e.items,s=function(e,n){if(null==e)return{};var t,o,r={},c=Object.keys(e);for(o=0;o=0||(r[t]=e[t]);return r}(e,["title","items"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Collapsible,Object.assign({open:!0,title:l},s,{children:d.map((function(e){return(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Box,{display:"inline-block",verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:e.name}),(0,o.createComponentVNode)(2,a.Button,{disabled:!i.has_id||i.id.points=450?"Overcharged":e>=250?"Good Charge":"Low Charge":e>=250?"NIF Power Requirement met.":e>=150?"Fluctuations in available power.":"Power failure imminent."},s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=(t.config,t.data),s=i.nif_percent,u=i.nif_stat,m=(i.last_notification,i.nutrition),p=i.isSynthetic,C=i.modules,h=e.setViewing;return(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"NIF Condition",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:s,minValue:0,maxValue:100,ranges:{good:[50,Infinity],average:[25,50],bad:[-Infinity,0]},children:[l(u,s)," (",(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:s}),"%)"]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"NIF Power",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:m,minValue:0,maxValue:700,ranges:{good:[250,Infinity],average:[150,250],bad:[0,150]},children:d(m,p)})})]}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"NIFSoft Modules",mt:1,children:(0,o.createComponentVNode)(2,c.LabeledList,{children:C.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button.Confirm,{icon:"trash",color:"bad",confirmContent:"UNINSTALL?",confirmIcon:"trash",tooltip:"Uninstall Module",tooltipPosition:"left",onClick:function(){return a("uninstall",{module:e.ref})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"search",onClick:function(){return h(e)},tooltip:"View Information",tooltipPosition:"left"})],4),children:e.activates&&(0,o.createComponentVNode)(2,c.Button,{fluid:!0,selected:e.active,content:e.stat_text,onClick:function(){return a("toggle_module",{module:e.ref})}})||(0,o.createComponentVNode)(2,c.Box,{children:e.stat_text})},e.ref)}))})})]})},u=function(e,n){var t=(0,r.useBackend)(n),a=t.act,l=t.data.theme;return(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"NIF Theme",verticalAlign:"top",children:(0,o.createComponentVNode)(2,c.Dropdown,{width:"100%",placeholder:"Default",selected:l,options:i,onSelected:function(e){return a("setTheme",{theme:e})}})})})}},79630:function(e,n,t){"use strict";n.__esModule=!0,n.NTNetRelay=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=t(67861);n.NTNetRelay=function(e,n){var t=(0,r.useBackend)(n),c=(t.act,t.data),i=c.dos_crashed,s=(c.enabled,c.dos_overload,c.dos_capacity,(0,o.createComponentVNode)(2,l));return i&&(s=(0,o.createComponentVNode)(2,d)),(0,o.createComponentVNode)(2,a.Window,{width:i?700:500,height:i?600:300,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:s})})};var l=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=(i.dos_crashed,i.enabled),d=i.dos_overload,s=i.dos_capacity;return(0,o.createComponentVNode)(2,c.Section,{title:"Status",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:l,content:"Relay "+(l?"On":"Off"),onClick:function(){return a("toggle")}}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Network Buffer Status",children:[d," / ",s," GQ"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Options",children:(0,o.createComponentVNode)(2,c.Button,{icon:"exclamation-triangle",content:"Purge network blacklist",onClick:function(){return a("purge")}})})]})})},d=function(e,n){var t=(0,r.useBackend)(n),a=t.act;t.data;return(0,o.createComponentVNode)(2,i.FullscreenNotice,{title:"ERROR",children:[(0,o.createComponentVNode)(2,c.Box,{fontSize:"1.5rem",bold:!0,color:"bad",children:[(0,o.createComponentVNode)(2,c.Icon,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"}),(0,o.createVNode)(1,"h2",null,"NETWORK BUFFERS OVERLOADED",16),(0,o.createVNode)(1,"h3",null,"Overload Recovery Mode",16),(0,o.createVNode)(1,"i",null,"This system is suffering temporary outage due to overflow of traffic buffers. Until buffered traffic is processed, all further requests will be dropped. Frequent occurences of this error may indicate insufficient hardware capacity of your network. Please contact your network planning department for instructions on how to resolve this issue.",16),(0,o.createVNode)(1,"h3",null,"ADMINISTRATIVE OVERRIDE",16),(0,o.createVNode)(1,"b",null," CAUTION - Data loss may occur ",16)]}),(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"exclamation-triangle",content:"Purge buffered traffic",onClick:function(){return a("restart")}})})]})}},60042:function(e,n,t){"use strict";n.__esModule=!0,n.Newscaster=void 0;var o=t(39812),r=t(2497),c=t(71494),a=t(74814),i=t(85952),l=t(36355),d="Main Menu",s="New Channel",u="View List",m="New Story",p="Print",C="New Wanted",h="View Wanted",N="View Selected Channel";n.Newscaster=function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data);r.screen,r.user;return(0,o.createComponentVNode)(2,i.Window,{width:600,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,l.TemporaryNotice,{decode:!0}),(0,o.createComponentVNode)(2,V)]})})};var V=function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data.user,(0,c.useSharedState)(n,"screen",d)),i=r[0],l=r[1],s=b[i];return(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,s,{setScreen:l})})},b={"Main Menu":function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data),i=r.securityCaster,l=r.wanted_issue,d=e.setScreen;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{title:"Main Menu",children:[l&&(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"eye",onClick:function(){return d(h)},color:"bad",children:"Read WANTED Issue"}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"eye",onClick:function(){return d(u)},children:"View Feed Channels"}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"plus",onClick:function(){return d(s)},children:"Create Feed Channel"}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"plus",onClick:function(){return d(m)},children:"Create Feed Message"}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"print",onClick:function(){return d(p)},children:"Print Newspaper"})]}),!!i&&(0,o.createComponentVNode)(2,a.Section,{title:"Feed Security Functions",children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"plus",onClick:function(){return d(C)},children:'Manage "Wanted" Issue'})})],0)},"New Channel":function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data,s=l.channel_name,u=l.c_locked,m=l.user,p=e.setScreen;return(0,o.createComponentVNode)(2,a.Section,{title:"Creating new Feed Channel",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"undo",onClick:function(){return p(d)},children:"Back"}),children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Channel Name",children:(0,o.createComponentVNode)(2,a.Input,{fluid:!0,value:(0,r.decodeHtmlEntities)(s),onInput:function(e,n){return i("set_channel_name",{val:n})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Channel Author",color:"good",children:m}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Accept Public Feeds",children:(0,o.createComponentVNode)(2,a.Button,{icon:u?"lock":"lock-open",selected:!u,onClick:function(){return i("set_channel_lock")},children:u?"No":"Yes"})})]}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"good",icon:"plus",onClick:function(){return i("submit_new_channel")},children:"Submit Channel"}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"bad",icon:"undo",onClick:function(){return p(d)},children:"Cancel"})]})},"View List":function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data.channels,s=e.setScreen;return(0,o.createComponentVNode)(2,a.Section,{title:"Station Feed Channels",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"undo",onClick:function(){return s(d)},children:"Back"}),children:l.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"eye",color:e.admin?"good":e.censored?"bad":"",onClick:function(){i("show_channel",{show_channel:e.ref}),s(N)},children:(0,r.decodeHtmlEntities)(e.name)},e.name)}))})},"New Story":function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=i.channel_name,s=i.user,u=i.title,m=i.msg,p=i.photo_data,C=e.setScreen;return(0,o.createComponentVNode)(2,a.Section,{title:"Creating new Feed Message...",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"undo",onClick:function(){return C(d)},children:"Back"}),children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Receiving Channel",children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,onClick:function(){return r("set_channel_receiving")},children:l||"Unset"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Message Author",color:"good",children:s}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Message Title",verticalAlign:"top",children:(0,o.createComponentVNode)(2,a.Flex,{children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Section,{width:"99%",inline:!0,children:u||"(no title yet)"})}),(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Button,{verticalAlign:"top",onClick:function(){return r("set_new_title")},icon:"pen",tooltip:"Edit Title",tooltipPosition:"left"})})]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Message Body",verticalAlign:"top",children:(0,o.createComponentVNode)(2,a.Flex,{children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Section,{width:"99%",inline:!0,children:m||"(no message yet)"})}),(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Button,{verticalAlign:"top",onClick:function(){return r("set_new_message")},icon:"pen",tooltip:"Edit Message",tooltipPosition:"left"})})]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Attach Photo",children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"image",onClick:function(){return r("set_attachment")},children:p?"Photo Attached":"No Photo"})})]}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"good",icon:"plus",onClick:function(){return r("submit_new_message")},children:"Submit Message"}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"bad",icon:"undo",onClick:function(){return C(d)},children:"Cancel"})]})},Print:function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=i.total_num,s=i.active_num,u=i.message_num,m=i.paper_remaining,p=e.setScreen;return(0,o.createComponentVNode)(2,a.Section,{title:"Printing",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"undo",onClick:function(){return p(d)},children:"Back"}),children:[(0,o.createComponentVNode)(2,a.Box,{color:"label",mb:1,children:["Newscaster currently serves a total of ",l," Feed channels, ",s," of which are active, and a total of ",u," Feed stories."]}),(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Liquid Paper remaining",children:[100*m," cm\xb3"]})}),(0,o.createComponentVNode)(2,a.Button,{mt:1,fluid:!0,color:"good",icon:"plus",onClick:function(){return r("print_paper")},children:"Print Paper"}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"bad",icon:"undo",onClick:function(){return p(d)},children:"Cancel"})]})},"New Wanted":function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data,s=l.channel_name,u=l.msg,m=l.photo_data,p=l.user,C=l.wanted_issue,h=e.setScreen;return(0,o.createComponentVNode)(2,a.Section,{title:"Wanted Issue Handler",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"undo",onClick:function(){return h(d)},children:"Back"}),children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[!!C&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Already In Circulation",children:"A wanted issue is already in circulation. You can edit or cancel it below."}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Criminal Name",children:(0,o.createComponentVNode)(2,a.Input,{fluid:!0,value:(0,r.decodeHtmlEntities)(s),onInput:function(e,n){return i("set_channel_name",{val:n})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Description",children:(0,o.createComponentVNode)(2,a.Input,{fluid:!0,value:(0,r.decodeHtmlEntities)(u),onInput:function(e,n){return i("set_wanted_desc",{val:n})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Attach Photo",children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"image",onClick:function(){return i("set_attachment")},children:m?"Photo Attached":"No Photo"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Prosecutor",color:"good",children:p})]}),(0,o.createComponentVNode)(2,a.Button,{mt:1,fluid:!0,color:"good",icon:"plus",onClick:function(){return i("submit_wanted")},children:"Submit Wanted Issue"}),!!C&&(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"average",icon:"minus",onClick:function(){return i("cancel_wanted")},children:"Take Down Issue"}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"bad",icon:"undo",onClick:function(){return h(d)},children:"Cancel"})]})},"View Wanted":function(e,n){var t=(0,c.useBackend)(n),i=(t.act,t.data.wanted_issue),l=e.setScreen;return i?(0,o.createComponentVNode)(2,a.Section,{title:"--STATIONWIDE WANTED ISSUE--",color:"bad",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"undo",onClick:function(){return l(d)},children:"Back"}),children:(0,o.createComponentVNode)(2,a.Box,{color:"white",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Submitted by",color:"good",children:(0,r.decodeHtmlEntities)(i.author)}),(0,o.createComponentVNode)(2,a.LabeledList.Divider),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Criminal",children:(0,r.decodeHtmlEntities)(i.criminal)}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Description",children:(0,r.decodeHtmlEntities)(i.desc)}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Photo",children:i.img&&(0,o.createVNode)(1,"img",null,null,1,{src:i.img})||"None"})]})})}):(0,o.createComponentVNode)(2,a.Section,{title:"No Outstanding Wanted Issues",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"undo",onClick:function(){return l(d)},children:"Back"}),children:"There are no wanted issues currently outstanding."})},"View Selected Channel":function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data,d=l.viewing_channel,s=l.securityCaster,m=l.company,p=e.setScreen;return d?(0,o.createComponentVNode)(2,a.Section,{title:(0,r.decodeHtmlEntities)(d.name),buttons:(0,o.createFragment)([!!s&&(0,o.createComponentVNode)(2,a.Button.Confirm,{color:"bad",icon:"ban",confirmIcon:"ban",content:"Issue D-Notice",onClick:function(){return i("toggle_d_notice",{ref:d.ref})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"undo",onClick:function(){return p(u)},children:"Back"})],0),children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Channel Created By",children:s&&(0,o.createComponentVNode)(2,a.Button.Confirm,{color:"bad",icon:"strikethrough",confirmIcon:"strikethrough",content:(0,r.decodeHtmlEntities)(d.author),tooltip:"Censor?",confirmContent:"Censor Author",onClick:function(){return i("censor_channel_author",{ref:d.ref})}})||(0,o.createComponentVNode)(2,a.Box,{children:(0,r.decodeHtmlEntities)(d.author)})})}),!!d.censored&&(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:["ATTENTION: This channel has been deemed as threatening to the welfare of the station, and marked with a ",m," D-Notice. No further feed story additions are allowed while the D-Notice is in effect."]}),!!d.messages.length&&d.messages.map((function(e){return(0,o.createComponentVNode)(2,a.Section,{children:["- ",(0,r.decodeHtmlEntities)(e.body),!!e.img&&(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createVNode)(1,"img",null,null,1,{src:"data:image/png;base64,"+e.img}),(0,r.decodeHtmlEntities)(e.caption)||null]}),(0,o.createComponentVNode)(2,a.Box,{color:"grey",children:["[Story by ",(0,r.decodeHtmlEntities)(e.author)," - ",e.timestamp,"]"]}),!!s&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button.Confirm,{mt:1,color:"bad",icon:"strikethrough",confirmIcon:"strikethrough",content:"Censor Story",onClick:function(){return i("censor_channel_story_body",{ref:e.ref})}}),(0,o.createComponentVNode)(2,a.Button.Confirm,{color:"bad",icon:"strikethrough",confirmIcon:"strikethrough",content:"Censor Author",onClick:function(){return i("censor_channel_story_author",{ref:e.ref})}})],4)]},e.ref)}))||!d.censored&&(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"No feed messages found in channel."})]}):(0,o.createComponentVNode)(2,a.Section,{title:"Channel Not Found",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"undo",onClick:function(){return p(u)},children:"Back"}),children:"The channel you were looking for no longer exists."})}}},31669:function(e,n,t){"use strict";n.__esModule=!0,n.NoticeBoard=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.NoticeBoard=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data.notices;return(0,o.createComponentVNode)(2,a.Window,{width:330,height:300,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{children:l.length?(0,o.createComponentVNode)(2,c.LabeledList,{children:l.map((function(e,n){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name,children:[e.isphoto&&(0,o.createComponentVNode)(2,c.Button,{icon:"image",content:"Look",onClick:function(){return i("look",{ref:e.ref})}})||e.ispaper&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"sticky-note",content:"Read",onClick:function(){return i("read",{ref:e.ref})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"pen",content:"Write",onClick:function(){return i("write",{ref:e.ref})}})],4)||"Unknown Entity",(0,o.createComponentVNode)(2,c.Button,{icon:"minus-circle",content:"Remove",onClick:function(){return i("remove",{ref:e.ref})}})]},n)}))}):(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No notices posted here."})})})})}},63231:function(e,n,t){"use strict";n.__esModule=!0,n.NtosAccessDecrypter=void 0;var o=t(39812),r=t(71494),c=t(85952),a=t(76952),i=t(74814);n.NtosAccessDecrypter=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data,s=d.message,u=d.running,m=d.rate,p=d.factor,C=d.regions,h=function(e){for(var n="";n.lengthp?n+="0":n+="1";return n};return(0,o.createComponentVNode)(2,c.NtosWindow,{width:600,height:600,theme:"syndicate",children:(0,o.createComponentVNode)(2,c.NtosWindow.Content,{children:s&&(0,o.createComponentVNode)(2,i.NoticeBox,{children:s})||u&&(0,o.createComponentVNode)(2,i.Section,{children:["Attempting to decrypt network access codes. Please wait. Rate: ",m," PHash/s",(0,o.createComponentVNode)(2,i.Box,{children:h(45)}),(0,o.createComponentVNode)(2,i.Box,{children:h(45)}),(0,o.createComponentVNode)(2,i.Box,{children:h(45)}),(0,o.createComponentVNode)(2,i.Box,{children:h(45)}),(0,o.createComponentVNode)(2,i.Box,{children:h(45)}),(0,o.createComponentVNode)(2,i.Button,{fluid:!0,icon:"ban",onClick:function(){return l("PRG_reset")},children:"Abort"})]})||(0,o.createComponentVNode)(2,i.Section,{title:"Pick access code to decrypt",children:C.length&&(0,o.createComponentVNode)(2,a.IdentificationComputerRegions,{actName:"PRG_execute"})||(0,o.createComponentVNode)(2,i.Box,{children:"Please insert ID card."})})})})}},79760:function(e,n,t){"use strict";n.__esModule=!0,n.NtosArcade=void 0;var o=t(39812),r=t(5908),c=t(71494),a=t(74814),i=t(85952);n.NtosArcade=function(e,n){var t=(0,c.useBackend)(n),l=t.act,d=t.data;return(0,o.createComponentVNode)(2,i.NtosWindow,{width:450,height:350,children:(0,o.createComponentVNode)(2,i.NtosWindow.Content,{children:(0,o.createComponentVNode)(2,a.Section,{title:"Outbomb Cuban Pete Ultra",textAlign:"center",children:[(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Grid,{children:[(0,o.createComponentVNode)(2,a.Grid.Column,{size:2,children:[(0,o.createComponentVNode)(2,a.Box,{m:1}),(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Player Health",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:d.PlayerHitpoints,minValue:0,maxValue:30,ranges:{olive:[31,Infinity],good:[20,31],average:[10,20],bad:[-Infinity,10]},children:[d.PlayerHitpoints,"HP"]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Player Magic",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:d.PlayerMP,minValue:0,maxValue:10,ranges:{purple:[11,Infinity],violet:[3,11],bad:[-Infinity,3]},children:[d.PlayerMP,"MP"]})})]}),(0,o.createComponentVNode)(2,a.Box,{my:1,mx:4}),(0,o.createComponentVNode)(2,a.Section,{backgroundColor:1===d.PauseState?"#1b3622":"#471915",children:d.Status})]}),(0,o.createComponentVNode)(2,a.Grid.Column,{children:[(0,o.createComponentVNode)(2,a.ProgressBar,{value:d.Hitpoints,minValue:0,maxValue:45,ranges:{good:[30,Infinity],average:[5,30],bad:[-Infinity,5]},children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:d.Hitpoints}),"HP"]}),(0,o.createComponentVNode)(2,a.Box,{m:1}),(0,o.createComponentVNode)(2,a.Section,{inline:!0,width:"156px",textAlign:"center",children:(0,o.createVNode)(1,"img",null,null,1,{src:(0,r.resolveAsset)(d.BossID)})})]})]}),(0,o.createComponentVNode)(2,a.Box,{my:1,mx:4}),(0,o.createComponentVNode)(2,a.Button,{icon:"fist-raised",tooltip:"Go in for the kill!",tooltipPosition:"top",disabled:0===d.GameActive||1===d.PauseState,onClick:function(){return l("Attack")},content:"Attack!"}),(0,o.createComponentVNode)(2,a.Button,{icon:"band-aid",tooltip:"Heal yourself!",tooltipPosition:"top",disabled:0===d.GameActive||1===d.PauseState,onClick:function(){return l("Heal")},content:"Heal!"}),(0,o.createComponentVNode)(2,a.Button,{icon:"magic",tooltip:"Recharge your magic!",tooltipPosition:"top",disabled:0===d.GameActive||1===d.PauseState,onClick:function(){return l("Recharge_Power")},content:"Recharge!"})]}),(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Button,{icon:"sync-alt",tooltip:"One more game couldn't hurt.",tooltipPosition:"top",disabled:1===d.GameActive,onClick:function(){return l("Start_Game")},content:"Begin Game"}),(0,o.createComponentVNode)(2,a.Button,{icon:"ticket-alt",tooltip:"Claim at your local Arcade Computer for Prizes!",tooltipPosition:"top",disabled:1===d.GameActive,onClick:function(){return l("Dispense_Tickets")},content:"Claim Tickets"})]}),(0,o.createComponentVNode)(2,a.Box,{color:d.TicketCount>=1?"good":"normal",children:["Earned Tickets: ",d.TicketCount]})]})})})}},97908:function(e,n,t){"use strict";n.__esModule=!0,n.NtosAtmosControl=void 0;var o=t(39812),r=t(85952),c=t(46566);n.NtosAtmosControl=function(){return(0,o.createComponentVNode)(2,r.NtosWindow,{width:870,height:708,resizable:!0,children:(0,o.createComponentVNode)(2,r.NtosWindow.Content,{children:(0,o.createComponentVNode)(2,c.AtmosControlContent)})})}},63645:function(e,n,t){"use strict";n.__esModule=!0,n.NtosCameraConsole=void 0;var o=t(39812),r=t(85952),c=t(3180);n.NtosCameraConsole=function(){return(0,o.createComponentVNode)(2,r.NtosWindow,{width:870,height:708,resizable:!0,children:(0,o.createComponentVNode)(2,r.NtosWindow.Content,{children:(0,o.createComponentVNode)(2,c.CameraConsoleContent)})})}},74093:function(e,n,t){"use strict";n.__esModule=!0,n.NtosCommunicationsConsole=void 0;var o=t(39812),r=t(71494),c=t(85952),a=t(130);n.NtosCommunicationsConsole=function(e,n){var t=(0,r.useBackend)(n);t.act,t.data;return(0,o.createComponentVNode)(2,c.NtosWindow,{width:400,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,c.NtosWindow.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.CommunicationsConsoleContent)})})}},55513:function(e,n,t){"use strict";n.__esModule=!0,n.NtosConfiguration=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.NtosConfiguration=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.PC_device_theme,s=l.power_usage,u=l.battery_exists,m=l.battery,p=void 0===m?{}:m,C=l.disk_size,h=l.disk_used,N=l.hardware,V=void 0===N?[]:N;return(0,o.createComponentVNode)(2,a.NtosWindow,{theme:d,width:520,height:630,resizable:!0,children:(0,o.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Power Supply",buttons:(0,o.createComponentVNode)(2,c.Box,{inline:!0,bold:!0,mr:1,children:["Power Draw: ",s,"W"]}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Battery Status",color:!u&&"average",children:u?(0,o.createComponentVNode)(2,c.ProgressBar,{value:p.charge,minValue:0,maxValue:p.max,ranges:{good:[p.max/2,Infinity],average:[p.max/4,p.max/2],bad:[-Infinity,p.max/4]},children:[p.charge," / ",p.max]}):"Not Available"})})}),(0,o.createComponentVNode)(2,c.Section,{title:"File System",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:h,minValue:0,maxValue:C,color:"good",children:[h," GQ / ",C," GQ"]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Hardware Components",children:V.map((function(e){return(0,o.createComponentVNode)(2,c.Section,{title:e.name,level:2,buttons:(0,o.createFragment)([!e.critical&&(0,o.createComponentVNode)(2,c.Button.Checkbox,{content:"Enabled",checked:e.enabled,mr:1,onClick:function(){return i("PC_toggle_component",{name:e.name})}}),(0,o.createComponentVNode)(2,c.Box,{inline:!0,bold:!0,mr:1,children:["Power Usage: ",e.powerusage,"W"]})],0),children:e.desc},e.name)}))})]})})}},17539:function(e,n,t){"use strict";n.__esModule=!0,n.NtosCrewMonitor=void 0;var o=t(39812),r=t(85952),c=t(96158);n.NtosCrewMonitor=function(){return(0,o.createComponentVNode)(2,r.NtosWindow,{width:800,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,r.NtosWindow.Content,{children:(0,o.createComponentVNode)(2,c.CrewMonitorContent)})})}},20025:function(e,n,t){"use strict";n.__esModule=!0,n.NtosDigitalWarrant=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=t(64499);n.NtosDigitalWarrant=function(e,n){var t=(0,r.useBackend)(n),c=(t.act,t.data),i=(c.warrantname,c.warrantcharges,c.warrantauth),d=(c.type,c.allwarrants,(0,o.createComponentVNode)(2,l));return i&&(d=(0,o.createComponentVNode)(2,s)),(0,o.createComponentVNode)(2,a.NtosWindow,{width:500,height:350,resizable:!0,children:(0,o.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:d})})};var l=function(e,n){var t=(0,r.useBackend)(n),a=t.act;t.data.allwarrants;return(0,o.createComponentVNode)(2,c.Section,{title:"Warrants",children:[(0,o.createComponentVNode)(2,c.Button,{icon:"plus",fluid:!0,onClick:function(){return a("addwarrant")},children:"Create New Warrant"}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Arrest Warrants",children:(0,o.createComponentVNode)(2,d,{type:"arrest"})}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Search Warrants",children:(0,o.createComponentVNode)(2,d,{type:"search"})})]})},d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,l=t.data,d=e.type,s=l.allwarrants,u=(0,i.filter)((function(e){return e.arrestsearch===d}))(s);return(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:"arrest"===d?"Name":"Location"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"arrest"===d?"Charges":"Reason"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Authorized By"}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:"Edit"})]}),u.length&&u.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.warrantname}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.charges}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.auth}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,c.Button,{icon:"pen",onClick:function(){return a("editwarrant",{id:e.id})}})})]},e.id)}))||(0,o.createComponentVNode)(2,c.Table.Row,{children:(0,o.createComponentVNode)(2,c.Table.Cell,{colspan:"3",color:"bad",children:["No ",d," warrants found."]})})]})},s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.warrantname,d=i.warrantcharges,s=i.warrantauth,u=i.type,m="arrest"===u,p="arrest"===u?"Name":"Location",C="arrest"===u?"Charges":"Reason";return(0,o.createComponentVNode)(2,c.Section,{title:m?"Editing Arrest Warrant":"Editing Search Warrant",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"save",onClick:function(){return a("savewarrant")},children:"Save"}),(0,o.createComponentVNode)(2,c.Button,{color:"bad",icon:"trash",onClick:function(){return a("deletewarrant")},children:"Delete"}),(0,o.createComponentVNode)(2,c.Button,{icon:"undo",onClick:function(){return a("back")},children:"Back"})],4),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:p,buttons:m&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"search",onClick:function(){return a("editwarrantname")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"pen",onClick:function(){return a("editwarrantnamecustom")}})],4)||(0,o.createComponentVNode)(2,c.Button,{icon:"pen",onClick:function(){return a("editwarrantnamecustom")}}),children:l}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:C,buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"pen",onClick:function(){return a("editwarrantcharges")}}),children:d}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Authorized By",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"balance-scale",onClick:function(){return a("editwarrantauth")}}),children:s})]})})}},11325:function(e,n,t){"use strict";n.__esModule=!0,n.NtosEmailAdministration=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=t(77006);n.NtosEmailAdministration=function(e,n){var t=(0,r.useBackend)(n),c=(t.act,t.data),i=c.error,m=c.cur_title,p=c.current_account,C=(0,o.createComponentVNode)(2,l);return i?C=(0,o.createComponentVNode)(2,d):m?C=(0,o.createComponentVNode)(2,s):p&&(C=(0,o.createComponentVNode)(2,u)),(0,o.createComponentVNode)(2,a.NtosWindow,{width:600,height:450,resizable:!0,children:(0,o.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:C})})};var l=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.accounts;return(0,o.createComponentVNode)(2,c.Section,{title:"Welcome to the NTNet Email Administration System",children:[(0,o.createComponentVNode)(2,c.Box,{italic:!0,mb:1,children:"SECURE SYSTEM - Have your identification ready"}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"plus",onClick:function(){return a("newaccount")},children:"Create New Account"}),(0,o.createComponentVNode)(2,c.Box,{bold:!0,mt:1,mb:1,children:"Select account to administrate"}),i.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"eye",onClick:function(){return a("viewaccount",{viewaccount:e.uid})},children:e.login},e.uid)}))]})},d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.error;return(0,o.createComponentVNode)(2,c.Section,{title:"Message",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"undo",onClick:function(){return a("back")},children:"Back"}),children:i})},s=function(e,n){var t=(0,r.useBackend)(n);t.act,t.data;return(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,i.NtosEmailClientViewMessage,{administrator:!0})})},u=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=(i.error,i.msg_title,i.msg_body,i.msg_timestamp,i.msg_source,i.current_account),d=i.cur_suspended,s=i.messages;i.accounts;return(0,o.createComponentVNode)(2,c.Section,{title:"Viewing "+l+" in admin mode",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"undo",onClick:function(){return a("back")},children:"Back"}),children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Account Status",children:(0,o.createComponentVNode)(2,c.Button,{color:d?"bad":"",icon:"ban",tooltip:(d?"Uns":"S")+"uspend Account?",onClick:function(){return a("ban")},children:d?"Suspended":"Normal"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Actions",children:(0,o.createComponentVNode)(2,c.Button,{icon:"key",onClick:function(){return a("changepass")},children:"Change Password"})})]}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Messages",children:s.length&&(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Source"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Title"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Received at"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Actions"})]}),s.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.source}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.title}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.timestamp}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"eye",onClick:function(){return a("viewmail",{viewmail:e.uid})},children:"View"})})]},e.uid)}))]})||(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No messages found in selected account."})})]})}},77006:function(e,n,t){"use strict";n.__esModule=!0,n.NtosEmailClientViewMessage=n.NtosEmailClient=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=t(41860);n.NtosEmailClient=function(e,n){var t=(0,r.useBackend)(n),c=(t.act,t.data),i=c.PC_device_theme,s=c.error,u=c.downloading,m=c.current_account,p=(0,o.createComponentVNode)(2,h);return s?p=(0,o.createComponentVNode)(2,C,{error:s}):u?p=(0,o.createComponentVNode)(2,l):m&&(p=(0,o.createComponentVNode)(2,d)),(0,o.createComponentVNode)(2,a.NtosWindow,{resizable:!0,theme:i,children:(0,o.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:p})})};var l=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data),l=a.down_filename,d=a.down_progress,s=a.down_size,u=a.down_speed;return(0,o.createComponentVNode)(2,c.Section,{title:"Downloading...",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"File",children:[l," (",s," GQ)"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Speed",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:u})," GQ/s"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Progress",children:(0,o.createComponentVNode)(2,c.ProgressBar,{color:"good",value:d,maxValue:s,children:[d,"/",s," (",(0,i.round)(d/s*100,1),"%)"]})})]})})},d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.current_account,d=i.addressbook,C=i.new_message,h=i.cur_title,N=(0,o.createComponentVNode)(2,s);return d?N=(0,o.createComponentVNode)(2,m):C?N=(0,o.createComponentVNode)(2,p):h&&(N=(0,o.createComponentVNode)(2,u)),(0,o.createComponentVNode)(2,c.Section,{title:"Logged in as: "+l,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"plus",tooltip:"New Message",tooltipPosition:"left",onClick:function(){return a("new_message")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"cogs",tooltip:"Change Password",tooltipPosition:"left",onClick:function(){return a("changepassword")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"sign-out-alt",tooltip:"Log Out",tooltipPosition:"left",onClick:function(){return a("logout")}})],4),children:N})},s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=(i.current_account,i.folder),d=i.messagecount,s=i.messages;return(0,o.createComponentVNode)(2,c.Section,{level:2,noTopPadding:!0,children:[(0,o.createComponentVNode)(2,c.Tabs,{children:[(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:"Inbox"===l,onClick:function(){return a("set_folder",{set_folder:"Inbox"})},children:"Inbox"}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:"Spam"===l,onClick:function(){return a("set_folder",{set_folder:"Spam"})},children:"Spam"}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:"Deleted"===l,onClick:function(){return a("set_folder",{set_folder:"Deleted"})},children:"Deleted"})]}),d&&(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Source"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Title"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Received At"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Actions"})]}),s.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.source}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.title}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.timestamp}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:[(0,o.createComponentVNode)(2,c.Button,{icon:"eye",onClick:function(){return a("view",{view:e.uid})},tooltip:"View"}),(0,o.createComponentVNode)(2,c.Button,{icon:"share",onClick:function(){return a("reply",{reply:e.uid})},tooltip:"Reply"}),(0,o.createComponentVNode)(2,c.Button,{color:"bad",icon:"trash",onClick:function(){return a("delete",{"delete":e.uid})},tooltip:"Delete"})]})]},e.timestamp+e.title)}))]})})||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:["No emails found in ",l,"."]})]})},u=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=e.administrator,d=i.cur_title,s=i.cur_source,u=i.cur_timestamp,m=i.cur_body,p=i.cur_hasattachment,C=i.cur_attachment_filename,h=i.cur_attachment_size,N=i.cur_uid;return(0,o.createComponentVNode)(2,c.Section,{title:d,buttons:l?(0,o.createComponentVNode)(2,c.Button,{icon:"times",onClick:function(){return a("back")}}):(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"share",tooltip:"Reply",tooltipPosition:"left",onClick:function(){return a("reply",{reply:N})}}),(0,o.createComponentVNode)(2,c.Button,{color:"bad",icon:"trash",tooltip:"Delete",tooltipPosition:"left",onClick:function(){return a("delete",{"delete":N})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"save",tooltip:"Save To Disk",tooltipPosition:"left",onClick:function(){return a("save",{save:N})}}),p&&(0,o.createComponentVNode)(2,c.Button,{icon:"paperclip",tooltip:"Save Attachment",tooltipPosition:"left",onClick:function(){return a("downloadattachment")}})||null,(0,o.createComponentVNode)(2,c.Button,{icon:"times",tooltip:"Close",tooltipPosition:"left",onClick:function(){return a("cancel",{cancel:N})}})],0),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"From",children:s}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"At",children:u}),p&&!l&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Attachment",color:"average",children:[C," (",h,"GQ)"]})||null,(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Message",verticalAlign:"top",children:(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:m}})})})]})})};n.NtosEmailClientViewMessage=u;var m=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.accounts;return(0,o.createComponentVNode)(2,c.Section,{title:"Address Book",level:2,buttons:(0,o.createComponentVNode)(2,c.Button,{color:"bad",icon:"times",onClick:function(){return a("set_recipient",{set_recipient:null})}}),children:i.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{content:e.login,fluid:!0,onClick:function(){return a("set_recipient",{set_recipient:e.login})}},e.login)}))})},p=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=(i.current_account,i.msg_title),d=i.msg_recipient,s=i.msg_body,u=i.msg_hasattachment,m=i.msg_attachment_filename,p=i.msg_attachment_size;return(0,o.createComponentVNode)(2,c.Section,{title:"New Message",level:2,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"share",onClick:function(){return a("send")},children:"Send Message"}),(0,o.createComponentVNode)(2,c.Button,{color:"bad",icon:"times",onClick:function(){return a("cancel")}})],4),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Title",children:(0,o.createComponentVNode)(2,c.Input,{fluid:!0,value:l,onInput:function(e,n){return a("edit_title",{val:n})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Recipient",verticalAlign:"top",children:(0,o.createComponentVNode)(2,c.Flex,{children:[(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.Input,{fluid:!0,value:d,onInput:function(e,n){return a("edit_recipient",{val:n})}})}),(0,o.createComponentVNode)(2,c.Flex.Item,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"address-book",onClick:function(){return a("addressbook")},tooltip:"Find Receipients",tooltipPosition:"left"})})]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Attachments",buttons:u&&(0,o.createComponentVNode)(2,c.Button,{color:"bad",icon:"times",onClick:function(){return a("remove_attachment")},children:"Remove Attachment"})||(0,o.createComponentVNode)(2,c.Button,{icon:"plus",onClick:function(){return a("addattachment")},children:"Add Attachment"}),children:u&&(0,o.createComponentVNode)(2,c.Box,{inline:!0,children:[m," (",p,"GQ)"]})||null}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Message",verticalAlign:"top",children:(0,o.createComponentVNode)(2,c.Flex,{children:[(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.Section,{width:"99%",inline:!0,children:(0,o.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:s}})})}),(0,o.createComponentVNode)(2,c.Flex.Item,{children:(0,o.createComponentVNode)(2,c.Button,{verticalAlign:"top",onClick:function(){return a("edit_body")},icon:"pen",tooltip:"Edit Message",tooltipPosition:"left"})})]})})]})})},C=function(e,n){var t=(0,r.useBackend)(n).act,a=e.error;return(0,o.createComponentVNode)(2,c.Section,{title:"Notification",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-left",content:"Return",onClick:function(){return t("reset")}}),children:(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:a})})},h=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.stored_login,d=i.stored_password;return(0,o.createComponentVNode)(2,c.Section,{title:"Please Log In",children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Email address",children:(0,o.createComponentVNode)(2,c.Input,{fluid:!0,value:l,onInput:function(e,n){return a("edit_login",{val:n})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Password",children:(0,o.createComponentVNode)(2,c.Input,{fluid:!0,value:d,onInput:function(e,n){return a("edit_password",{val:n})}})})]}),(0,o.createComponentVNode)(2,c.Button,{icon:"sign-in-alt",onClick:function(){return a("login")},children:"Log In"})]})}},86441:function(e,n,t){"use strict";n.__esModule=!0,n.NtosFileManager=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);t(2497);n.NtosFileManager=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data,s=d.PC_device_theme,u=d.usbconnected,m=d.filename,p=d.filedata,C=d.error,h=d.files,N=void 0===h?[]:h,V=d.usbfiles,b=void 0===V?[]:V;return(0,o.createComponentVNode)(2,a.NtosWindow,{resizable:!0,theme:s,children:(0,o.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:(m||C)&&(0,o.createComponentVNode)(2,c.Section,{title:"Viewing File "+m,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"pen",content:"Edit",onClick:function(){return l("PRG_edit")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"print",content:"Print",onClick:function(){return l("PRG_printfile")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"times",content:"Close",onClick:function(){return l("PRG_closefile")}})],4),children:[C||null,p&&(0,o.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:p}})]})||(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,i,{files:N,usbconnected:u,onUpload:function(e){return l("PRG_copytousb",{name:e})},onDelete:function(e){return l("PRG_deletefile",{name:e})},onOpen:function(e){return l("PRG_openfile",{name:e})},onRename:function(e,n){return l("PRG_rename",{name:e,new_name:n})},onDuplicate:function(e){return l("PRG_clone",{file:e})}})}),u&&(0,o.createComponentVNode)(2,c.Section,{title:"Data Disk",children:(0,o.createComponentVNode)(2,i,{usbmode:!0,files:b,usbconnected:u,onUpload:function(e){return l("PRG_copyfromusb",{name:e})},onDelete:function(e){return l("PRG_deletefile",{name:e})},onRename:function(e,n){return l("PRG_rename",{name:e,new_name:n})},onDuplicate:function(e){return l("PRG_clone",{file:e})}})})||null,(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"plus",onClick:function(){return l("PRG_newtextfile")},children:"New Text File"})})],0)})})};var i=function(e){var n=e.files,t=void 0===n?[]:n,r=e.usbconnected,a=e.usbmode,i=e.onUpload,l=e.onDelete,d=e.onRename,s=e.onOpen;return(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:"File"}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:"Type"}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:"Size"})]}),t.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{className:"candystripe",children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.undeletable?e.name:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button.Input,{width:"80%",content:e.name,currentValue:e.name,tooltip:"Rename",onCommit:function(n,t){return d(e.name,t)}}),(0,o.createComponentVNode)(2,c.Button,{content:"Open",onClick:function(){return s(e.name)}})],4)}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.type}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.size}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:!e.undeletable&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button.Confirm,{icon:"trash",confirmIcon:"times",confirmContent:"",tooltip:"Delete",onClick:function(){return l(e.name)}}),!!r&&(a?(0,o.createComponentVNode)(2,c.Button,{icon:"download",tooltip:"Download",onClick:function(){return i(e.name)}}):(0,o.createComponentVNode)(2,c.Button,{icon:"upload",tooltip:"Upload",onClick:function(){return i(e.name)}}))],0)})]},e.name)}))]})}},87369:function(e,n,t){"use strict";n.__esModule=!0,n.NtosIdentificationComputer=void 0;var o=t(39812),r=(t(64499),t(71494)),c=(t(74814),t(85952)),a=(t(2497),t(76270),t(76952));n.NtosIdentificationComputer=function(e,n){var t=(0,r.useBackend)(n);t.act,t.data;return(0,o.createComponentVNode)(2,c.NtosWindow,{width:600,height:700,resizable:!0,children:(0,o.createComponentVNode)(2,c.NtosWindow.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.IdentificationComputerContent,{ntos:!0})})})}},59543:function(e,n,t){"use strict";n.__esModule=!0,n.NtosMain=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i={compconfig:"cog",ntndownloader:"download",filemanager:"folder",smmonitor:"radiation",alarmmonitor:"bell",cardmod:"id-card",arcade:"gamepad",ntnrc_client:"comment-alt",nttransfer:"exchange-alt",powermonitor:"plug",job_manage:"address-book",crewmani:"clipboard-list",robocontrol:"robot",atmosscan:"thermometer-half",shipping:"tags"};n.NtosMain=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data,s=d.device_theme,u=d.programs,m=void 0===u?[]:u,p=d.has_light,C=d.light_on,h=d.comp_light_color,N=d.removable_media,V=void 0===N?[]:N,b=d.login,f=void 0===b?[]:b;return(0,o.createComponentVNode)(2,a.NtosWindow,{title:"syndicate"===s?"Syndix Main Menu":"NtOS Main Menu",theme:s,width:400,height:500,resizable:!0,children:(0,o.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:[!!p&&(0,o.createComponentVNode)(2,c.Section,{children:[(0,o.createComponentVNode)(2,c.Button,{width:"144px",icon:"lightbulb",selected:C,onClick:function(){return l("PC_toggle_light")},children:["Flashlight: ",C?"ON":"OFF"]}),(0,o.createComponentVNode)(2,c.Button,{ml:1,onClick:function(){return l("PC_light_color")},children:["Color:",(0,o.createComponentVNode)(2,c.ColorBox,{ml:1,color:h})]})]}),(0,o.createComponentVNode)(2,c.Section,{title:"User Login",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"eject",content:"Eject ID",disabled:!f.IDName,onClick:function(){return l("PC_Eject_Disk",{name:"ID"})}}),children:(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{children:["ID Name: ",f.IDName]}),(0,o.createComponentVNode)(2,c.Table.Row,{children:["Assignment: ",f.IDJob]})]})}),!!V.length&&(0,o.createComponentVNode)(2,c.Section,{title:"Media Eject",children:(0,o.createComponentVNode)(2,c.Table,{children:V.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,color:"transparent",icon:"eject",content:e,onClick:function(){return l("PC_Eject_Disk",{name:e})}})})},e)}))})}),(0,o.createComponentVNode)(2,c.Section,{title:"Programs",children:(0,o.createComponentVNode)(2,c.Table,{children:m.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,color:"transparent",icon:i[e.name]||"window-maximize-o",content:e.desc,onClick:function(){return l("PC_runprogram",{name:e.name})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,width:"18px",children:!!e.running&&(0,o.createComponentVNode)(2,c.Button,{color:"transparent",icon:"times",tooltip:"Close program",tooltipPosition:"left",onClick:function(){return l("PC_killprogram",{name:e.name})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,width:"18px",children:(0,o.createComponentVNode)(2,c.Button,{color:"transparent",tooltip:"Set Autorun",tooltipPosition:"left",selected:e.autorun,onClick:function(){return l("PC_setautorun",{name:e.name})},children:"AR"})})]},e.name)}))})})]})})}},73883:function(e,n,t){"use strict";n.__esModule=!0,n.NtosNetChat=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.NtosNetChat=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.can_admin,s=l.adminmode,u=l.authed,m=l.username,p=l.active_channel,C=l.is_operator,h=l.all_channels,N=void 0===h?[]:h,V=l.clients,b=void 0===V?[]:V,f=l.messages,g=void 0===f?[]:f,k=null!==p,v=u||s;return(0,o.createComponentVNode)(2,a.NtosWindow,{width:900,height:675,children:(0,o.createComponentVNode)(2,a.NtosWindow.Content,{children:(0,o.createComponentVNode)(2,c.Section,{height:"600px",children:(0,o.createComponentVNode)(2,c.Table,{height:"580px",children:(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{verticalAlign:"top",style:{width:"200px"},children:[(0,o.createComponentVNode)(2,c.Box,{height:"560px",overflowY:"scroll",children:[(0,o.createComponentVNode)(2,c.Button.Input,{fluid:!0,content:"New Channel...",onCommit:function(e,n){return i("PRG_newchannel",{new_channel_name:n})}}),N.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{fluid:!0,content:e.chan,selected:e.id===p,color:"transparent",onClick:function(){return i("PRG_joinchannel",{id:e.id})}},e.chan)}))]}),(0,o.createComponentVNode)(2,c.Button.Input,{fluid:!0,mt:1,content:m+"...",currentValue:m,onCommit:function(e,n){return i("PRG_changename",{new_name:n})}}),!!d&&(0,o.createComponentVNode)(2,c.Button,{fluid:!0,bold:!0,content:"ADMIN MODE: "+(s?"ON":"OFF"),color:s?"bad":"good",onClick:function(){return i("PRG_toggleadmin")}})]}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:[(0,o.createComponentVNode)(2,c.Box,{height:"560px",overflowY:"scroll",children:k&&(v?g.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{children:e.msg},e.msg)})):(0,o.createComponentVNode)(2,c.Box,{textAlign:"center",children:[(0,o.createComponentVNode)(2,c.Icon,{name:"exclamation-triangle",mt:4,fontSize:"40px"}),(0,o.createComponentVNode)(2,c.Box,{mt:1,bold:!0,fontSize:"18px",children:"THIS CHANNEL IS PASSWORD PROTECTED"}),(0,o.createComponentVNode)(2,c.Box,{mt:1,children:"INPUT PASSWORD TO ACCESS"})]}))}),(0,o.createComponentVNode)(2,c.Input,{fluid:!0,selfClear:!0,mt:1,onEnter:function(e,n){return i("PRG_speak",{message:n})}})]}),(0,o.createComponentVNode)(2,c.Table.Cell,{verticalAlign:"top",style:{width:"150px"},children:[(0,o.createComponentVNode)(2,c.Box,{height:"465px",overflowY:"scroll",children:b.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{children:e.name},e.name)}))}),k&&v&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button.Input,{fluid:!0,content:"Save log...",defaultValue:"new_log",onCommit:function(e,n){return i("PRG_savelog",{log_name:n})}}),(0,o.createComponentVNode)(2,c.Button.Confirm,{fluid:!0,content:"Leave Channel",onClick:function(){return i("PRG_leavechannel")}})],4),!!C&&u&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button.Confirm,{fluid:!0,content:"Delete Channel",onClick:function(){return i("PRG_deletechannel")}}),(0,o.createComponentVNode)(2,c.Button.Input,{fluid:!0,content:"Rename Channel...",onCommit:function(e,n){return i("PRG_renamechannel",{new_name:n})}}),(0,o.createComponentVNode)(2,c.Button.Input,{fluid:!0,content:"Set Password...",onCommit:function(e,n){return i("PRG_setpassword",{new_password:n})}})],4)]})]})})})})})}},83908:function(e,n,t){"use strict";n.__esModule=!0,n.NtosNetDosContent=n.NtosNetDos=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.NtosNetDos=function(e,n){return(0,o.createComponentVNode)(2,a.NtosWindow,{width:400,height:250,theme:"syndicate",children:(0,o.createComponentVNode)(2,a.NtosWindow.Content,{children:(0,o.createComponentVNode)(2,i)})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.relays,d=void 0===l?[]:l,s=i.focus,u=i.target,m=i.speed,p=i.overload,C=i.capacity,h=i.error;if(h)return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.NoticeBox,{children:h}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,content:"Reset",textAlign:"center",onClick:function(){return a("PRG_reset")}})],4);var N=function(e){for(var n="",t=p/C;n.lengtht?n+="0":n+="1";return n};return u?(0,o.createComponentVNode)(2,c.Section,{fontFamily:"monospace",textAlign:"center",children:[(0,o.createComponentVNode)(2,c.Box,{children:["CURRENT SPEED: ",m," GQ/s"]}),(0,o.createComponentVNode)(2,c.Box,{children:N(45)}),(0,o.createComponentVNode)(2,c.Box,{children:N(45)}),(0,o.createComponentVNode)(2,c.Box,{children:N(45)}),(0,o.createComponentVNode)(2,c.Box,{children:N(45)}),(0,o.createComponentVNode)(2,c.Box,{children:N(45)})]}):(0,o.createComponentVNode)(2,c.Section,{children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Target",children:d.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{content:e.id,selected:s===e.id,onClick:function(){return a("PRG_target_relay",{targid:e.id})}},e.id)}))})}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,bold:!0,content:"EXECUTE",color:"bad",textAlign:"center",disabled:!s,mt:1,onClick:function(){return a("PRG_execute")}})]})};n.NtosNetDosContent=i},83305:function(e,n,t){"use strict";n.__esModule=!0,n.NtosNetDownloader=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(85952);n.NtosNetDownloader=function(e,n){var t=(0,c.useBackend)(n),r=t.act,d=t.data,s=d.PC_device_theme,u=d.disk_size,m=d.disk_used,p=d.downloadable_programs,C=void 0===p?[]:p,h=d.error,N=d.hacked_programs,V=void 0===N?[]:N,b=d.hackedavailable;return(0,o.createComponentVNode)(2,i.NtosWindow,{theme:s,width:480,height:735,resizable:!0,children:(0,o.createComponentVNode)(2,i.NtosWindow.Content,{scrollable:!0,children:[!!h&&(0,o.createComponentVNode)(2,a.NoticeBox,{children:[(0,o.createComponentVNode)(2,a.Box,{mb:1,children:h}),(0,o.createComponentVNode)(2,a.Button,{content:"Reset",onClick:function(){return r("PRG_reseterror")}})]}),(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Disk usage",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:m,minValue:0,maxValue:u,children:m+" GQ / "+u+" GQ"})})})}),(0,o.createComponentVNode)(2,a.Section,{children:C.map((function(e){return(0,o.createComponentVNode)(2,l,{program:e},e.filename)}))}),!!b&&(0,o.createComponentVNode)(2,a.Section,{title:"UNKNOWN Software Repository",children:[(0,o.createComponentVNode)(2,a.NoticeBox,{mb:1,children:"Please note that Nanotrasen does not recommend download of software from non-official servers."}),V.map((function(e){return(0,o.createComponentVNode)(2,l,{program:e},e.filename)}))]})]})})};var l=function(e,n){var t=e.program,i=(0,c.useBackend)(n),l=i.act,d=i.data,s=d.disk_size,u=d.disk_used,m=d.downloadcompletion,p=(d.downloading,d.downloadname),C=d.downloadsize,h=d.downloadspeed,N=d.downloads_queue,V=s-u;return(0,o.createComponentVNode)(2,a.Box,{mb:3,children:[(0,o.createComponentVNode)(2,a.Flex,{align:"baseline",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{bold:!0,grow:1,children:t.filedesc}),(0,o.createComponentVNode)(2,a.Flex.Item,{color:"label",nowrap:!0,children:[t.size," GQ"]}),(0,o.createComponentVNode)(2,a.Flex.Item,{ml:2,width:"94px",textAlign:"center",children:t.filename===p&&(0,o.createComponentVNode)(2,a.ProgressBar,{color:"green",minValue:0,maxValue:C,value:m,children:[(0,r.round)(m/C*100,1),"% (",h,"GQ/s)"]})||-1!==N.indexOf(t.filename)&&(0,o.createComponentVNode)(2,a.Button,{icon:"ban",color:"bad",onClick:function(){return l("PRG_removequeued",{filename:t.filename})},children:"Queued..."})||(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"download",content:"Download",disabled:t.size>V,onClick:function(){return l("PRG_downloadfile",{filename:t.filename})}})})]}),"Compatible"!==t.compatibility&&(0,o.createComponentVNode)(2,a.Box,{mt:1,italic:!0,fontSize:"12px",position:"relative",children:[(0,o.createComponentVNode)(2,a.Icon,{mx:1,color:"red",name:"times"}),"Incompatible!"]}),t.size>V&&(0,o.createComponentVNode)(2,a.Box,{mt:1,italic:!0,fontSize:"12px",position:"relative",children:[(0,o.createComponentVNode)(2,a.Icon,{mx:1,color:"red",name:"times"}),"Not enough disk space!"]}),(0,o.createComponentVNode)(2,a.Box,{mt:1,italic:!0,color:"label",fontSize:"12px",children:t.fileinfo})]})}},6806:function(e,n,t){"use strict";n.__esModule=!0,n.NtosNetMonitor=void 0;var o=t(39812),r=t(74814),c=t(71494),a=t(85952);n.NtosNetMonitor=function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data,d=l.ntnetrelays,s=l.ntnetstatus,u=l.config_softwaredownload,m=l.config_peertopeer,p=l.config_communication,C=l.config_systemcontrol,h=l.idsalarm,N=l.idsstatus,V=l.ntnetmaxlogs,b=l.maxlogs,f=l.minlogs,g=l.banned_nids,k=l.ntnetlogs,v=void 0===k?[]:k;return(0,o.createComponentVNode)(2,a.NtosWindow,{resizable:!0,children:(0,o.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,r.NoticeBox,{children:"WARNING: Disabling wireless transmitters when using a wireless device may prevent you from reenabling them!"}),(0,o.createComponentVNode)(2,r.Section,{title:"Wireless Connectivity",buttons:(0,o.createComponentVNode)(2,r.Button.Confirm,{icon:s?"power-off":"times",content:s?"ENABLED":"DISABLED",selected:s,onClick:function(){return i("toggleWireless")}}),children:d?(0,o.createComponentVNode)(2,r.LabeledList,{children:(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Active NTNet Relays",children:d})}):"No Relays Connected"}),(0,o.createComponentVNode)(2,r.Section,{title:"Firewall Configuration",children:(0,o.createComponentVNode)(2,r.LabeledList,{children:[(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Software Downloads",buttons:(0,o.createComponentVNode)(2,r.Button,{icon:u?"power-off":"times",content:u?"ENABLED":"DISABLED",selected:u,onClick:function(){return i("toggle_function",{id:"1"})}})}),(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Peer to Peer Traffic",buttons:(0,o.createComponentVNode)(2,r.Button,{icon:m?"power-off":"times",content:m?"ENABLED":"DISABLED",selected:m,onClick:function(){return i("toggle_function",{id:"2"})}})}),(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Communication Systems",buttons:(0,o.createComponentVNode)(2,r.Button,{icon:p?"power-off":"times",content:p?"ENABLED":"DISABLED",selected:p,onClick:function(){return i("toggle_function",{id:"3"})}})}),(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Remote System Control",buttons:(0,o.createComponentVNode)(2,r.Button,{icon:C?"power-off":"times",content:C?"ENABLED":"DISABLED",selected:C,onClick:function(){return i("toggle_function",{id:"4"})}})})]})}),(0,o.createComponentVNode)(2,r.Section,{title:"Security Systems",children:[!!h&&(0,o.createFragment)([(0,o.createComponentVNode)(2,r.NoticeBox,{children:"NETWORK INCURSION DETECTED"}),(0,o.createComponentVNode)(2,r.Box,{italics:!0,children:"Abnormal activity has been detected in the network. Check system logs for more information"})],4),(0,o.createComponentVNode)(2,r.LabeledList,{children:[(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Banned NIDs",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,r.Button,{icon:"ban",onClick:function(){return i("ban_nid")},children:"Ban NID"}),(0,o.createComponentVNode)(2,r.Button,{icon:"balance-scale",onClick:function(){return i("unban_nid")},children:"Unban NID"})],4),children:g.join(", ")||"None"}),(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"IDS Status",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,r.Button,{icon:N?"power-off":"times",content:N?"ENABLED":"DISABLED",selected:N,onClick:function(){return i("toggleIDS")}}),(0,o.createComponentVNode)(2,r.Button,{icon:"sync",content:"Reset",color:"bad",onClick:function(){return i("resetIDS")}})],4)}),(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Max Log Count",buttons:(0,o.createComponentVNode)(2,r.NumberInput,{value:V,minValue:f,maxValue:b,width:"39px",onChange:function(e,n){return i("updatemaxlogs",{new_number:n})}})})]}),(0,o.createComponentVNode)(2,r.Section,{title:"System Log",level:2,buttons:(0,o.createComponentVNode)(2,r.Button.Confirm,{icon:"trash",content:"Clear Logs",onClick:function(){return i("purgelogs")}}),children:v.map((function(e){return(0,o.createComponentVNode)(2,r.Box,{className:"candystripe",children:e.entry},e.entry)}))})]})]})})}},4363:function(e,n,t){"use strict";n.__esModule=!0,n.NtosNetTransfer=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.NtosNetTransfer=function(e,n){var t=(0,r.useBackend)(n),c=(t.act,t.data),m=c.error,p=c.downloading,C=c.uploading,h=c.upload_filelist,N=(0,o.createComponentVNode)(2,u);return m?N=(0,o.createComponentVNode)(2,i):p?N=(0,o.createComponentVNode)(2,l):C?N=(0,o.createComponentVNode)(2,d):h.length&&(N=(0,o.createComponentVNode)(2,s)),(0,o.createComponentVNode)(2,a.NtosWindow,{width:575,height:700,resizable:!0,children:(0,o.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:N})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.error;return(0,o.createComponentVNode)(2,c.Section,{title:"An error has occured during operation.",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"undo",onClick:function(){return a("PRG_reset")},children:"Reset"}),children:["Additional Information: ",i]})},l=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.download_name,d=i.download_progress,s=i.download_size,u=i.download_netspeed;return(0,o.createComponentVNode)(2,c.Section,{title:"Download in progress",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Downloaded File",children:l}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Progress",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:d,maxValue:s,children:[d," / ",s," GQ"]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Transfer Speed",children:[u," GQ/s"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Controls",children:(0,o.createComponentVNode)(2,c.Button,{icon:"ban",onClick:function(){return a("PRG_reset")},children:"Cancel Download"})})]})})},d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.upload_clients,d=i.upload_filename,s=i.upload_haspassword;return(0,o.createComponentVNode)(2,c.Section,{title:"Server enabled",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Clients Connected",children:l}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Provided file",children:d}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Server Password",children:s?"Enabled":"Disabled"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Commands",children:[(0,o.createComponentVNode)(2,c.Button,{icon:"lock",onClick:function(){return a("PRG_setpassword")},children:"Set Password"}),(0,o.createComponentVNode)(2,c.Button,{icon:"ban",onClick:function(){return a("PRG_reset")},children:"Cancel Upload"})]})]})})},s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.upload_filelist;return(0,o.createComponentVNode)(2,c.Section,{title:"File transfer server ready.",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"undo",onClick:function(){return a("PRG_reset")},children:"Cancel"}),children:[(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"lock",onClick:function(){return a("PRG_setpassword")},children:"Set Password"}),(0,o.createComponentVNode)(2,c.Section,{title:"Pick file to serve.",level:2,children:i.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"upload",onClick:function(){return a("PRG_uploadfile",{uid:e.uid})},children:[e.filename," (",e.size,"GQ)"]},e.uid)}))})]})},u=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.servers;return(0,o.createComponentVNode)(2,c.Section,{title:"Available Files",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"upload",onClick:function(){return a("PRG_uploadmenu")},children:"Send File"}),children:i.length&&(0,o.createComponentVNode)(2,c.LabeledList,{children:i.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.uid,children:[!!e.haspassword&&(0,o.createComponentVNode)(2,c.Icon,{name:"lock",mr:1}),e.filename,"\xa0 (",e.size,"GQ)\xa0",(0,o.createComponentVNode)(2,c.Button,{icon:"download",onClick:function(){return a("PRG_downloadfile",{uid:e.uid})},children:"Download"})]},e.uid)}))})||(0,o.createComponentVNode)(2,c.Box,{children:"No upload servers found."})})}},23225:function(e,n,t){"use strict";n.__esModule=!0,n.NtosNewsBrowser=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=t(5908);n.NtosNewsBrowser=function(e,n){var t=(0,r.useBackend)(n),i=t.act,u=t.data,m=u.article,p=u.download,C=u.message,h=(0,o.createComponentVNode)(2,d);return m?h=(0,o.createComponentVNode)(2,l):p&&(h=(0,o.createComponentVNode)(2,s)),(0,o.createComponentVNode)(2,a.NtosWindow,{width:575,height:750,resizable:!0,children:(0,o.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:[!!C&&(0,o.createComponentVNode)(2,c.NoticeBox,{children:[C," ",(0,o.createComponentVNode)(2,c.Button,{icon:"times",onClick:function(){return i("PRG_clearmessage")}})]}),h]})})};var l=function(e,n){var t=(0,r.useBackend)(n),a=t.act,l=t.data.article;if(!l)return(0,o.createComponentVNode)(2,c.Section,{children:"Error: Article not found."});var d=l.title,s=l.cover,u=l.content;return(0,o.createComponentVNode)(2,c.Section,{title:"Viewing: "+d,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"save",onClick:function(){return a("PRG_savearticle")},children:"Save"}),(0,o.createComponentVNode)(2,c.Button,{icon:"times",onClick:function(){return a("PRG_reset")},children:"Close"})],4),children:[!!s&&(0,o.createVNode)(1,"img",null,null,1,{src:(0,i.resolveAsset)(s)}),(0,o.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:u}})]})},d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.showing_archived,d=i.all_articles;return(0,o.createComponentVNode)(2,c.Section,{title:"Articles List",buttons:(0,o.createComponentVNode)(2,c.Button.Checkbox,{onClick:function(){return a("PRG_toggle_archived")},checked:l,children:"Show Archived"}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:d.length&&d.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name,buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"download",onClick:function(){return a("PRG_openarticle",{uid:e.uid})}}),children:[e.size," GQ"]},e.uid)}))||(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Error",children:"There appear to be no outstanding news articles on NTNet today."})})})},s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.download,l=i.download_progress,d=i.download_maxprogress,s=i.download_rate;return(0,o.createComponentVNode)(2,c.Section,{title:"Downloading...",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Progress",children:(0,o.createComponentVNode)(2,c.ProgressBar,{color:"good",minValue:0,value:l,maxValue:d,children:[l," / ",d," GQ"]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Download Speed",children:[s," GQ/s"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Controls",children:(0,o.createComponentVNode)(2,c.Button,{icon:"ban",fluid:!0,onClick:function(){return a("PRG_reset")},children:"Abort Download"})})]})})}},3839:function(e,n,t){"use strict";n.__esModule=!0,n.NtosOvermapNavigation=void 0;var o=t(39812),r=t(85952),c=t(12640);n.NtosOvermapNavigation=function(){return(0,o.createComponentVNode)(2,r.NtosWindow,{width:380,height:530,resizable:!0,children:(0,o.createComponentVNode)(2,r.NtosWindow.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,c.OvermapNavigationContent)})})}},54698:function(e,n,t){"use strict";n.__esModule=!0,n.NtosPowerMonitor=void 0;var o=t(39812),r=t(85952),c=t(89793);n.NtosPowerMonitor=function(){return(0,o.createComponentVNode)(2,r.NtosWindow,{width:550,height:700,resizable:!0,children:(0,o.createComponentVNode)(2,r.NtosWindow.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,c.PowerMonitorContent)})})}},17086:function(e,n,t){"use strict";n.__esModule=!0,n.NtosRCON=void 0;var o=t(39812),r=t(85952),c=t(43996);n.NtosRCON=function(){return(0,o.createComponentVNode)(2,r.NtosWindow,{width:630,height:440,resizable:!0,children:(0,o.createComponentVNode)(2,r.NtosWindow.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,c.RCONContent)})})}},69480:function(e,n,t){"use strict";n.__esModule=!0,n.NtosRevelation=void 0;var o=t(39812),r=t(74814),c=t(71494),a=t(85952);n.NtosRevelation=function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data;return(0,o.createComponentVNode)(2,a.NtosWindow,{width:400,height:250,theme:"syndicate",children:(0,o.createComponentVNode)(2,a.NtosWindow.Content,{children:(0,o.createComponentVNode)(2,r.Section,{children:[(0,o.createComponentVNode)(2,r.Button.Input,{fluid:!0,content:"Obfuscate Name...",onCommit:function(e,n){return i("PRG_obfuscate",{new_name:n})},mb:1}),(0,o.createComponentVNode)(2,r.LabeledList,{children:(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Payload Status",buttons:(0,o.createComponentVNode)(2,r.Button,{content:l.armed?"ARMED":"DISARMED",color:l.armed?"bad":"average",onClick:function(){return i("PRG_arm")}})})}),(0,o.createComponentVNode)(2,r.Button,{fluid:!0,bold:!0,content:"ACTIVATE",textAlign:"center",color:"bad",disabled:!l.armed})]})})})}},93990:function(e,n,t){"use strict";n.__esModule=!0,n.NtosShutoffMonitor=void 0;var o=t(39812),r=t(85952),c=t(89957);n.NtosShutoffMonitor=function(e,n){return(0,o.createComponentVNode)(2,r.NtosWindow,{width:627,height:700,resizable:!0,children:(0,o.createComponentVNode)(2,r.NtosWindow.Content,{children:(0,o.createComponentVNode)(2,c.ShutoffMonitorContent)})})}},76124:function(e,n,t){"use strict";n.__esModule=!0,n.NtosStationAlertConsole=void 0;var o=t(39812),r=t(85952),c=t(32015);n.NtosStationAlertConsole=function(){return(0,o.createComponentVNode)(2,r.NtosWindow,{width:315,height:500,resizable:!0,children:(0,o.createComponentVNode)(2,r.NtosWindow.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,c.StationAlertConsoleContent)})})}},22475:function(e,n,t){"use strict";n.__esModule=!0,n.NtosSupermatterMonitor=void 0;var o=t(39812),r=t(85952),c=t(6951);n.NtosSupermatterMonitor=function(){return(0,o.createComponentVNode)(2,r.NtosWindow,{width:600,height:400,resizable:!0,children:(0,o.createComponentVNode)(2,r.NtosWindow.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,c.SupermatterMonitorContent)})})}},66744:function(e,n,t){"use strict";n.__esModule=!0,n.NtosUAV=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.NtosUAV=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.current_uav,s=l.signal_strength,u=l.in_use,m=l.paired_uavs;return(0,o.createComponentVNode)(2,a.NtosWindow,{width:600,height:500,resizable:!0,children:(0,o.createComponentVNode)(2,a.NtosWindow.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{title:"Selected UAV",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"UAV",children:d&&d.status||"[Not Connected]"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Signal",children:d&&s||"[Not Connected]"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power",children:d&&(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:d.power,onClick:function(){return i("power_uav")},children:d.power?"Online":"Offline"})||"[Not Connected]"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Camera",children:d&&(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:u,disabled:!d.power,onClick:function(){return i("view_uav")},children:d.power?"Available":"Unavailable"})||"[Not Connected]"})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Paired UAVs",children:m.length&&m.map((function(e){return(0,o.createComponentVNode)(2,c.Flex,{spacing:1,children:[(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"quidditch",onClick:function(){return i("switch_uav",{switch_uav:e.uavref})},children:e.name})}),(0,o.createComponentVNode)(2,c.Flex.Item,{children:(0,o.createComponentVNode)(2,c.Button,{color:"bad",icon:"times",onClick:function(){return i("del_uav",{del_uav:e.uavref})}})})]},e.uavref)}))||(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No UAVs Paired."})})]})})}},19458:function(e,n,t){"use strict";n.__esModule=!0,n.NtosWordProcessor=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.NtosWordProcessor=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.PC_device_theme,s=l.error,u=l.browsing,m=l.files,p=(l.usbconnected,l.usbfiles,l.filename),C=l.filedata;return(0,o.createComponentVNode)(2,a.NtosWindow,{resizable:!0,theme:d,children:(0,o.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:s&&(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:[(0,o.createVNode)(1,"h2",null,"An Error has occured:",16),"Additional Information: ",s,"Please try again. If the problem persists, contact your system administrator for assistance.",(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-left",content:"Back to menu",onClick:function(){return i("PRG_backtomenu")}})]})||u&&(0,o.createComponentVNode)(2,c.Section,{title:"File Browser",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-left",content:"Back to editor",onClick:function(){return i("PRG_closebrowser")}}),children:(0,o.createComponentVNode)(2,c.Section,{title:"Available documents (local)",level:2,children:(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Name"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Size (GQ)"}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0})]}),m.map((function(e,n){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.size}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,c.Button,{icon:"file-word",onClick:function(){return i("PRG_openfile",{PRG_openfile:e.name})},children:"Open"})})]},n)}))]})})})||(0,o.createComponentVNode)(2,c.Section,{title:"Document: "+p,children:[(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("PRG_newfile")},children:"New"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("PRG_loadmenu")},children:"Load"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("PRG_savefile")},children:"Save"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("PRG_saveasfile")},children:"Save As"})]}),(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("PRG_editfile")},children:"Edit"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("PRG_txtrpeview")},children:"Preview"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("PRG_taghelp")},children:"Formatting Help"}),(0,o.createComponentVNode)(2,c.Button,{disabled:!C,onClick:function(){return i("PRG_printfile")},children:"Print"})]}),(0,o.createComponentVNode)(2,c.Section,{mt:1,children:(0,o.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:C}})})]})})})}},18326:function(e,n,t){"use strict";n.__esModule=!0,n.OmniFilter=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=function(e){return e.input?"Input":e.output?"Output":e.f_type?e.f_type:"Disabled"};n.OmniFilter=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data,s=d.power,u=d.config,m=d.ports,p=d.set_flow_rate,C=d.last_flow_rate;return(0,o.createComponentVNode)(2,a.Window,{width:360,height:330,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{title:u?"Configuration":"Status",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",content:s?"On":"Off",selected:s,disabled:u,onClick:function(){return l("power")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"wrench",selected:u,onClick:function(){return l("configure")}})],4),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:m?m.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.dir+" Port",children:u?(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{content:"IN",selected:e.input,icon:"compress-arrows-alt",onClick:function(){return l("switch_mode",{mode:"in",dir:e.dir})}}),(0,o.createComponentVNode)(2,c.Button,{content:"OUT",selected:e.output,icon:"expand-arrows-alt",onClick:function(){return l("switch_mode",{mode:"out",dir:e.dir})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"wrench",disabled:e.input||e.output,content:e.f_type||"None",onClick:function(){return l("switch_filter",{mode:e.f_type,dir:e.dir})}})],4):i(e)},e.dir)})):(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No Ports Detected"})})}),(0,o.createComponentVNode)(2,c.Section,{title:"Flow Rate",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Current Flow Rate",children:[C," L/s"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Flow Rate Limit",children:u?(0,o.createComponentVNode)(2,c.Button,{icon:"wrench",content:p/10+" L/s",onClick:function(){return l("set_flow_rate")}}):p/10+" L/s"})]})})]})})}},78588:function(e,n,t){"use strict";n.__esModule=!0,n.OmniMixer=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=function(e){return e.input?"Input":e.output?"Output":e.f_type?e.f_type:"Disabled"};n.OmniMixer=function(e,n){var t=(0,r.useBackend)(n),i=t.act,d=t.data,s=d.power,u=d.config,m=d.ports,p=d.set_flow_rate,C=d.last_flow_rate;return(0,o.createComponentVNode)(2,a.Window,{width:390,height:330,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{title:u?"Configuration":"Status",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",content:s?"On":"Off",selected:s,disabled:u,onClick:function(){return i("power")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"wrench",selected:u,onClick:function(){return i("configure")}})],4),children:(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:"Port"}),u?(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:"Input"}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:"Output"})],4):(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:"Mode"}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:"Concentration"}),u?(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:"Lock"}):null]}),m?m.map((function(e){return(0,o.createComponentVNode)(2,l,{port:e,config:u},e.dir)})):(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No Ports Detected"})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Flow Rate",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Current Flow Rate",children:[C," L/s"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Flow Rate Limit",children:u?(0,o.createComponentVNode)(2,c.Button,{icon:"wrench",content:p/10+" L/s",onClick:function(){return i("set_flow_rate")}}):p/10+" L/s"})]})})]})})};var l=function(e,n){var t=(0,r.useBackend)(n).act,a=e.port,l=e.config;return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:a.dir+" Port"}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:l?(0,o.createComponentVNode)(2,c.Button,{content:"IN",selected:a.input,disabled:a.output,icon:"compress-arrows-alt",onClick:function(){return t("switch_mode",{mode:a.input?"none":"in",dir:a.dir})}}):i(a)}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:l?(0,o.createComponentVNode)(2,c.Button,{content:"OUT",selected:a.output,icon:"expand-arrows-alt",onClick:function(){return t("switch_mode",{mode:"out",dir:a.dir})}}):100*a.concentration+"%"}),l?(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",width:"20%",children:(0,o.createComponentVNode)(2,c.Button,{width:"100%",icon:"wrench",disabled:!a.input,content:a.input?100*a.concentration+" %":"-",onClick:function(){return t("switch_con",{dir:a.dir})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:(0,o.createComponentVNode)(2,c.Button,{icon:a.con_lock?"lock":"lock-open",disabled:!a.input,selected:a.con_lock,content:a.f_type||"None",onClick:function(){return t("switch_conlock",{dir:a.dir})}})})],4):null]})}},48826:function(e,n,t){"use strict";n.__esModule=!0,n.OperatingComputer=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(85952),i=t(74814),l=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],d=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],s={average:[.25,.5],bad:[.5,Infinity]},u=["bad","average","average","good","average","average","bad"];n.OperatingComputer=function(e,n){var t,r=(0,c.useBackend)(n),l=r.act,d=r.data,s=d.hasOccupant,u=d.choice;return t=u?(0,o.createComponentVNode)(2,C):s?(0,o.createComponentVNode)(2,m):(0,o.createComponentVNode)(2,p),(0,o.createComponentVNode)(2,a.Window,{width:650,height:455,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,i.Tabs,{children:[(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:!u,icon:"user",onClick:function(){return l("choiceOff")},children:"Patient"}),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:!!u,icon:"cog",onClick:function(){return l("choiceOn")},children:"Options"})]}),(0,o.createComponentVNode)(2,i.Section,{flexGrow:"1",children:t})]})})};var m=function(e,n){var t=(0,c.useBackend)(n).data.occupant;return(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Section,{title:"Patient",level:"2",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Name",children:t.name}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Status",color:l[t.stat][0],children:l[t.stat][1]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Health",children:(0,o.createComponentVNode)(2,i.ProgressBar,{min:"0",max:t.maxHealth,value:t.health/t.maxHealth,ranges:{good:[.5,Infinity],average:[0,.5],bad:[-Infinity,0]}})}),d.map((function(e,n){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e[0]+" Damage",children:(0,o.createComponentVNode)(2,i.ProgressBar,{min:"0",max:"100",value:t[e[1]]/100,ranges:s,children:(0,r.round)(t[e[1]])},n)},n)})),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Temperature",children:(0,o.createComponentVNode)(2,i.ProgressBar,{min:"0",max:t.maxTemp,value:t.bodyTemperature/t.maxTemp,color:u[t.temperatureSuitability+3],children:[(0,r.round)(t.btCelsius),"\xb0C, ",(0,r.round)(t.btFaren),"\xb0F"]})}),!!t.hasBlood&&(0,o.createFragment)([(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Blood Level",children:(0,o.createComponentVNode)(2,i.ProgressBar,{min:"0",max:t.bloodMax,value:t.bloodLevel/t.bloodMax,ranges:{bad:[-Infinity,.6],average:[.6,.9],good:[.6,Infinity]},children:[t.bloodPercent,"%, ",t.bloodLevel,"cl"]})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Pulse",children:[t.pulse," BPM"]})],4)]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Current Procedure",level:"2",children:t.surgery&&t.surgery.length?(0,o.createComponentVNode)(2,i.LabeledList,{children:t.surgery.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.name,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Current State",children:e.currentStage}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Possible Next Steps",children:e.nextSteps.map((function(e){return(0,o.createVNode)(1,"div",null,e,0,null,e)}))})]})},e.name)}))}):(0,o.createComponentVNode)(2,i.Box,{color:"label",children:"No procedure ongoing."})})],4)},p=function(){return(0,o.createComponentVNode)(2,i.Flex,{textAlign:"center",height:"100%",children:(0,o.createComponentVNode)(2,i.Flex.Item,{grow:"1",align:"center",color:"label",children:[(0,o.createComponentVNode)(2,i.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),"No patient detected."]})})},C=function(e,n){var t=(0,c.useBackend)(n),r=t.act,a=t.data,l=a.verbose,d=a.health,s=a.healthAlarm,u=a.oxy,m=a.oxyAlarm,p=a.crit;return(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Loudspeaker",children:(0,o.createComponentVNode)(2,i.Button,{selected:l,icon:l?"toggle-on":"toggle-off",content:l?"On":"Off",onClick:function(){return r(l?"verboseOff":"verboseOn")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Health Announcer",children:(0,o.createComponentVNode)(2,i.Button,{selected:d,icon:d?"toggle-on":"toggle-off",content:d?"On":"Off",onClick:function(){return r(d?"healthOff":"healthOn")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Health Announcer Threshold",children:(0,o.createComponentVNode)(2,i.Knob,{bipolar:!0,minValue:"-100",maxValue:"100",value:s,stepPixelSize:"5",ml:"0",format:function(e){return e+"%"},onChange:function(e,n){return r("health_adj",{"new":n})}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Oxygen Alarm",children:(0,o.createComponentVNode)(2,i.Button,{selected:u,icon:u?"toggle-on":"toggle-off",content:u?"On":"Off",onClick:function(){return r(u?"oxyOff":"oxyOn")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Oxygen Alarm Threshold",children:(0,o.createComponentVNode)(2,i.Knob,{bipolar:!0,minValue:"-100",maxValue:"100",value:m,stepPixelSize:"5",ml:"0",onChange:function(e,n){return r("oxy_adj",{"new":n})}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Critical Alert",children:(0,o.createComponentVNode)(2,i.Button,{selected:p,icon:p?"toggle-on":"toggle-off",content:p?"On":"Off",onClick:function(){return r(p?"critOff":"critOn")}})})]})}},51888:function(e,n,t){"use strict";n.__esModule=!0,n.OvermapDisperser=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=t(40754);n.OvermapDisperser=function(e,n){return(0,o.createComponentVNode)(2,a.Window,{width:400,height:550,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,l)})})};var l=function(e,n){var t=(0,r.useBackend)(n),a=t.act,l=t.data,d=l.faillink,s=l.calibration,u=l.overmapdir,m=l.cal_accuracy,p=l.strength,C=l.range,h=l.next_shot,N=l.nopower,V=(l.skill,l.chargeload);return d?(0,o.createComponentVNode)(2,c.Section,{title:"Error",children:"Machine is incomplete, out of range, or misaligned!"}):(0,o.createComponentVNode)(2,c.Flex,{wrap:"wrap",spacing:1,children:[(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"22%",children:(0,o.createComponentVNode)(2,c.Section,{title:"Targeting",textAlign:"center",children:(0,o.createComponentVNode)(2,i.OvermapPanControls,{actToDo:"choose",selected:function(e){return e===u}})})}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"74%",grow:1,children:(0,o.createComponentVNode)(2,c.Section,{title:"Charge",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[N&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Error",children:"At least one part of the machine is unpowered."})||null,(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Charge Load Type",children:V}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Cooldown",children:0===h&&(0,o.createComponentVNode)(2,c.Box,{color:"good",children:"Ready"})||h>1&&(0,o.createComponentVNode)(2,c.Box,{color:"average",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:h})," Seconds",(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Warning: Do not fire during cooldown."})]})||null})]})})}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"50%",mt:1,children:(0,o.createComponentVNode)(2,c.Section,{title:"Calibration",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:m}),"%",(0,o.createComponentVNode)(2,c.Button,{ml:1,icon:"exchange-alt",onClick:function(){return a("skill_calibration")},children:"Pre-Calibration"}),(0,o.createComponentVNode)(2,c.Box,{mt:1,children:s.map((function(e,n){return(0,o.createComponentVNode)(2,c.Box,{children:["Cal #",n,":",(0,o.createComponentVNode)(2,c.Button,{ml:1,icon:"random",onClick:function(){return a("calibration",{calibration:n})},children:e.toString()})]},n)}))})]})}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"45%",grow:1,mt:1,children:(0,o.createComponentVNode)(2,c.Section,{title:"Setup",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Strength",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"fist-raised",onClick:function(){return a("strength")},children:p})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Radius",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"expand-arrows-alt",onClick:function(){return a("range")},children:C})})]})})}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,mt:1,children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,color:"red",icon:"bomb",onClick:function(){return a("fire")},children:"Fire ORB"})})]})}},25123:function(e,n,t){"use strict";n.__esModule=!0,n.OvermapEnginesContent=n.OvermapEngines=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.OvermapEngines=function(e,n){return(0,o.createComponentVNode)(2,a.Window,{width:390,height:530,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,i)})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.global_state,d=i.global_limit,s=i.engines_info,u=i.total_thrust;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Status",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Engines",children:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:l,onClick:function(){return a("global_toggle")},children:l?"Shut All Engines Down":"Start All Engines"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Volume Limit",children:[(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return a("global_limit",{global_limit:-.1})},icon:"minus"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return a("set_global_limit")},children:[d,"%"]}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return a("global_limit",{global_limit:.1})},icon:"plus"})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Total Thrust",children:(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:u})})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Engines",height:"340px",style:{"overflow-y":"auto"},children:s.map((function(e,n){return(0,o.createComponentVNode)(2,c.Flex,{spacing:1,mt:0!==n&&-1,children:[(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"80%",children:(0,o.createComponentVNode)(2,c.Collapsible,{title:(0,o.createComponentVNode)(2,c.Box,{inline:!0,children:["Engine #",n+1," | Thrust: ",(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:e.eng_thrust})," | Limit: ",(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:e.eng_thrust_limiter,format:function(e){return e+"%"}})]}),children:(0,o.createComponentVNode)(2,c.Section,{width:"127%",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Type",children:e.eng_type}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Status",children:[(0,o.createComponentVNode)(2,c.Box,{color:e.eng_on?1===e.eng_on?"good":"average":"bad",children:e.eng_on?1===e.eng_on?"Online":"Booting":"Offline"}),e.eng_status.map((function(e){return Array.isArray(e)?(0,o.createComponentVNode)(2,c.Box,{color:e[1],children:e[0]}):(0,o.createComponentVNode)(2,c.Box,{children:e})}))]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Current Thrust",children:e.eng_thrust}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Volume Limit",children:[(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return a("limit",{limit:-.1,engine:e.eng_reference})},icon:"minus"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return a("set_limit",{engine:e.eng_reference})},children:[e.eng_thrust_limiter,"%"]}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return a("limit",{limit:.1,engine:e.eng_reference})},icon:"plus"})]})]})})})}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"20%",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,iconSpin:-1===e.eng_on,color:-1===e.eng_on?"purple":null,selected:1===e.eng_on,icon:"power-off",onClick:function(){return a("toggle_engine",{engine:e.eng_reference})},children:e.eng_on?1===e.eng_on?"Shutoff":"Booting":"Startup"})})]},n)}))})],4)};n.OvermapEnginesContent=i},63836:function(e,n,t){"use strict";n.__esModule=!0,n.OvermapFull=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=t(25123),l=t(89380),d=t(51932);n.OvermapFull=function(e,n){var t=(0,r.useLocalState)(n,"overmapFullState",0),s=t[0],u=t[1];return(0,o.createComponentVNode)(2,a.Window,{width:800,height:800,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Tabs,{children:[(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:0===s,onClick:function(){return u(0)},children:"Engines"}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:1===s,onClick:function(){return u(1)},children:"Helm"}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:2===s,onClick:function(){return u(2)},children:"Sensors"})]}),0===s&&(0,o.createComponentVNode)(2,i.OvermapEnginesContent),1===s&&(0,o.createComponentVNode)(2,l.OvermapHelmContent),2===s&&(0,o.createComponentVNode)(2,d.OvermapShipSensorsContent)]})})}},89380:function(e,n,t){"use strict";n.__esModule=!0,n.OvermapFlightDataWrap=n.OvermapHelmContent=n.OvermapHelm=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=t(40754);n.OvermapHelm=function(e,n){return(0,o.createComponentVNode)(2,a.Window,{width:565,height:545,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,l)})})};var l=function(e,n){return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Flex,{children:[(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"40%",height:"180px",children:(0,o.createComponentVNode)(2,d)}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"25%",height:"180px",children:(0,o.createComponentVNode)(2,s)}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"35%",height:"180px",children:(0,o.createComponentVNode)(2,u)})]}),(0,o.createComponentVNode)(2,m)],4)};n.OvermapHelmContent=l;var d=function(e,n){var t=(0,r.useBackend)(n);t.act,t.data;return(0,o.createVNode)(1,"fieldset","Section",[(0,o.createVNode)(1,"legend",null,"Flight Data",16),(0,o.createComponentVNode)(2,i.OvermapFlightData)],4,{style:{height:"100%",border:"1px solid #4972a1",margin:"none"}})};n.OvermapFlightDataWrap=d;var s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,l=t.data,d=l.canburn,s=l.manual_control;return(0,o.createVNode)(1,"fieldset","Section",[(0,o.createVNode)(1,"legend",null,"Manual Control",16),(0,o.createComponentVNode)(2,c.Flex,{align:"center",justify:"center",children:(0,o.createComponentVNode)(2,c.Flex.Item,{children:(0,o.createComponentVNode)(2,i.OvermapPanControls,{disabled:!d,actToDo:"move"})})}),(0,o.createComponentVNode)(2,c.Box,{textAlign:"center",mt:1,children:[(0,o.createComponentVNode)(2,c.Box,{bold:!0,underline:!0,children:"Direct Control"}),(0,o.createComponentVNode)(2,c.Button,{selected:s,onClick:function(){return a("manual")},icon:"compass",children:s?"Enabled":"Disabled"})]})],4,{style:{height:"100%",border:"1px solid #4972a1"}})},u=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.dest,d=i.d_x,s=i.d_y,u=i.speedlimit,m=i.autopilot;return i.autopilot_disabled?(0,o.createVNode)(1,"fieldset","Section",[(0,o.createVNode)(1,"legend",null,"Autopilot",16),(0,o.createComponentVNode)(2,c.Box,{textAlign:"center",color:"bad",fontSize:1.2,children:"AUTOPILOT DISABLED"}),(0,o.createComponentVNode)(2,c.Box,{textAlign:"center",color:"average",children:"Warning: This vessel is equipped with a class I autopilot. Class I autopilots are unable to do anything but fly in a straight line directly towards the target, and may result in collisions."}),(0,o.createComponentVNode)(2,c.Box,{textAlign:"center",children:(0,o.createComponentVNode)(2,c.Button.Confirm,{mt:1,color:"bad",content:"Unlock Autopilot",confirmContent:"ACCEPT RISKS?",icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",onClick:function(){return a("apilot_lock")}})})],4,{style:{height:"100%",border:"1px solid #4972a1"}}):(0,o.createVNode)(1,"fieldset","Section",[(0,o.createVNode)(1,"legend",null,"Autopilot",16),(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Target",children:l&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return a("setcoord",{setx:!0})},children:d}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return a("setcoord",{sety:!0})},children:s})],4)||(0,o.createComponentVNode)(2,c.Button,{icon:"pen",onClick:function(){return a("setcoord",{setx:!0,sety:!0})},children:"None"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Speed Limit",children:(0,o.createComponentVNode)(2,c.Button,{icon:"tachometer-alt",onClick:function(){return a("speedlimit")},children:[u," Gm/h"]})})]}),(0,o.createComponentVNode)(2,c.Button,{mt:1,fluid:!0,selected:m,disabled:!l,icon:"robot",onClick:function(){return a("apilot")},children:m?"Engaged":"Disengaged"}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,color:"good",icon:"exclamation-triangle",onClick:function(){return a("apilot_lock")},children:"Lock Autopilot"})],4,{style:{height:"100%",border:"1px solid #4972a1"}})},m=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.sector,d=i.s_x,s=i.s_y,u=i.sector_info,m=i.landed,p=i.locations;return(0,o.createComponentVNode)(2,c.Section,{title:"Navigation Data",m:.3,mt:1,children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Location",children:l}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Coordinates",children:[d," : ",s]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Scan Data",children:u}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Status",children:m})]}),(0,o.createComponentVNode)(2,c.Flex,{mt:1,align:"center",justify:"center",spacing:1,children:[(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"50%",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"save",onClick:function(){return a("add",{add:"current"})},children:"Save Current Position"})}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"50%",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"sticky-note",onClick:function(){return a("add",{add:"new"})},children:"Add New Entry"})})]}),(0,o.createComponentVNode)(2,c.Section,{mt:1,scrollable:!0,height:"130px",children:(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Name"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Coordinates"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Actions"})]}),p.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:[e.x," : ",e.y]}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:[(0,o.createComponentVNode)(2,c.Button,{icon:"rocket",onClick:function(){return a("setds",{x:e.x,y:e.y})},children:"Plot Course"}),(0,o.createComponentVNode)(2,c.Button,{icon:"trash",onClick:function(){return a("remove",{remove:e.reference})},children:"Remove"})]})]},e.name)}))]})})]})}},12640:function(e,n,t){"use strict";n.__esModule=!0,n.OvermapNavigationContent=n.OvermapNavigation=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=t(40754);n.OvermapNavigation=function(e,n){return(0,o.createComponentVNode)(2,a.Window,{width:380,height:530,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,l)})})};var l=function(e,n){var t=(0,r.useBackend)(n),a=t.act,l=t.data,d=l.sector,s=l.s_x,u=l.s_y,m=l.sector_info,p=l.viewing;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Current Location",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"eye",selected:p,onClick:function(){return a("viewing")},children:"Map View"}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Current Location",children:d}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Coordinates",children:[s," : ",u]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Additional Information",children:m})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Flight Data",children:(0,o.createComponentVNode)(2,i.OvermapFlightData,{disableLimiterControls:!0})})],4)};n.OvermapNavigationContent=l},84031:function(e,n,t){"use strict";n.__esModule=!0,n.OvermapShieldGenerator=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.OvermapShieldGenerator=function(e,n){return(0,o.createComponentVNode)(2,a.Window,{width:500,height:760,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,i)})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,s=i.modes,u=i.offline_for;return u?(0,o.createComponentVNode)(2,c.Section,{title:"EMERGENCY SHUTDOWN",color:"bad",children:["An emergency shutdown has been initiated - generator cooling down. Please wait until the generator cools down before resuming operation. Estimated time left: ",u," seconds."]}):(0,o.createFragment)([(0,o.createComponentVNode)(2,l),(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,c.Section,{title:"Field Calibration",children:s.map((function(e){return(0,o.createComponentVNode)(2,c.Section,{title:e.name,level:2,buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:e.status,onClick:function(){return a("toggle_mode",{toggle_mode:e.flag})},children:e.status?"Enabled":"Disabled"}),children:[(0,o.createComponentVNode)(2,c.Box,{color:"label",children:e.desc}),(0,o.createComponentVNode)(2,c.Box,{mt:.5,children:["Multiplier: ",e.multiplier]})]},e.name)}))})],4)},l=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data),i=a.running,l=a.overloaded,d=a.mitigation_max,s=a.mitigation_physical,u=a.mitigation_em,m=a.mitigation_heat,p=a.field_integrity,C=a.max_energy,h=a.current_energy,N=a.percentage_energy,V=a.total_segments,b=a.functional_segments,f=a.field_radius,g=a.target_radius,k=a.input_cap_kw,v=a.upkeep_power_usage,B=a.power_usage,L=a.spinup_counter;return(0,o.createComponentVNode)(2,c.Section,{title:"System Status",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Generator is",children:1===i&&(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"Shutting Down"})||2===i&&(l&&(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Overloaded"})||(0,o.createComponentVNode)(2,c.Box,{color:"good",children:"Running"}))||3===i&&(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"Inactive"})||4===i&&(0,o.createComponentVNode)(2,c.Box,{color:"blue",children:["Spinning Up\xa0",g!==f&&(0,o.createComponentVNode)(2,c.Box,{inline:!0,children:"(Adjusting Radius)"})||(0,o.createComponentVNode)(2,c.Box,{inline:!0,children:[2*L,"s"]})]})||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Offline"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Energy Storage",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:h,maxValue:C,children:[h," / ",C," MJ (",N,"%)"]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Shield Integrity",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:p}),"%"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Mitigation",children:[u,"% EM / ",s,"% PH / ",m,"% HE / ",d,"% MAX"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Upkeep Energy Use",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:v})," kW"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Total Energy Use",children:k&&(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:B,maxValue:k,children:[B," / ",k," kW"]})})||(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:B})," kW (No Limit)"]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Field Size",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:b}),"\xa0/\xa0",(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:V})," m\xb2 (radius ",(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:f}),", target ",(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:g}),")"]})]})})},d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.running,d=i.hacked,s=i.idle_multiplier,u=i.idle_valid_values;return(0,o.createComponentVNode)(2,c.Section,{title:"Controls",buttons:(0,o.createFragment)([l>=2&&(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",onClick:function(){return a("begin_shutdown")},selected:!0,children:"Turn off"}),3===l&&(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",onClick:function(){return a("toggle_idle",{toggle_idle:0})},children:"Activate"})||(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",onClick:function(){return a("toggle_idle",{toggle_idle:1})},selected:!0,children:"Deactivate"})]})||(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",onClick:function(){return a("start_generator")},children:"Turn on"}),l&&d&&(0,o.createComponentVNode)(2,c.Button,{icon:"exclamation-triangle",onClick:function(){return a("emergency_shutdown")},color:"bad",children:"EMERGENCY SHUTDOWN"})||null],0),children:[(0,o.createComponentVNode)(2,c.Button,{icon:"expand-arrows-alt",onClick:function(){return a("set_range")},children:"Set Field Range"}),(0,o.createComponentVNode)(2,c.Button,{icon:"bolt",onClick:function(){return a("set_input_cap")},children:"Set Input Cap"}),(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Set inactive power use intensity",children:u.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{selected:e===s,disabled:4===l,onClick:function(){return a("switch_idle",{switch_idle:e})},children:e},e)}))})})]})}},51932:function(e,n,t){"use strict";n.__esModule=!0,n.OvermapShipSensorsContent=n.OvermapShipSensors=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.OvermapShipSensors=function(e,n){return(0,o.createComponentVNode)(2,a.Window,{width:375,height:545,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,i)})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.viewing,d=i.on,s=i.range,u=i.health,m=i.max_health,p=i.heat,C=i.critical_heat,h=i.status,N=i.contacts;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Status",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"eye",selected:l,onClick:function(){return a("viewing")},children:"Map View"}),(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:d,onClick:function(){return a("toggle_sensor")},children:d?"Sensors Enabled":"Sensors Disabled"})],4),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Status",children:h}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Range",children:(0,o.createComponentVNode)(2,c.Button,{icon:"signal",onClick:function(){return a("range")},children:s})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Integrity",children:(0,o.createComponentVNode)(2,c.ProgressBar,{ranges:{good:[.75*m,Infinity],average:[.25*m,.75*m],bad:[-Infinity,.25*m]},value:u,maxValue:m,children:[u," / ",m]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Temperature",children:(0,o.createComponentVNode)(2,c.ProgressBar,{ranges:{bad:[.75*C,Infinity],average:[.5*C,.75*C],good:[-Infinity,.5*C]},value:p,maxValue:C,children:p<.5*C&&(0,o.createComponentVNode)(2,c.Box,{children:"Temperature low."})||p<.75*C&&(0,o.createComponentVNode)(2,c.Box,{children:"Sensor temperature high!"})||(0,o.createComponentVNode)(2,c.Box,{children:"TEMPERATURE CRITICAL: Disable or reduce power immediately!"})})})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Contacts",children:N.length&&N.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"search",onClick:function(){return a("scan",{scan:e.ref})},children:[(0,o.createComponentVNode)(2,c.Box,{bold:!0,inline:!0,children:["Scan: ",e.name]}),(0,o.createComponentVNode)(2,c.Box,{inline:!0,children:[", bearing: ",e.bearing,"\xb0"]})]},e.ref)}))||(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No contacts on sensors."})}),"MISSING"===i.status&&(0,o.createComponentVNode)(2,c.Section,{title:"Error",children:(0,o.createComponentVNode)(2,c.Button,{icon:"wifi",onClick:function(){return a("link")},children:"Link up with sensor suite?"})})||null],0)};n.OvermapShipSensorsContent=i},57966:function(e,n,t){"use strict";n.__esModule=!0,n.ParticleAccelerator=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.ParticleAccelerator=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.assembled,s=l.power,u=l.strength;return(0,o.createComponentVNode)(2,a.Window,{width:350,height:185,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Status",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"sync",content:"Run Scan",onClick:function(){return i("scan")}}),children:(0,o.createComponentVNode)(2,c.Box,{color:d?"good":"bad",children:d?"Ready - All parts in place":"Unable to detect all parts"})})})}),(0,o.createComponentVNode)(2,c.Section,{title:"Particle Accelerator Controls",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power",children:(0,o.createComponentVNode)(2,c.Button,{icon:s?"power-off":"times",content:s?"On":"Off",selected:s,disabled:!d,onClick:function(){return i("power")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Particle Strength",children:[(0,o.createComponentVNode)(2,c.Button,{icon:"backward",disabled:!d,onClick:function(){return i("remove_strength")}})," ",String(u).padStart(1,"0")," ",(0,o.createComponentVNode)(2,c.Button,{icon:"forward",disabled:!d,onClick:function(){return i("add_strength")}})]})]})})]})})}},80374:function(e,n,t){"use strict";n.__esModule=!0,n.PartsLathe=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=t(2497),l=t(95481);n.PartsLathe=function(e,n){var t=(0,r.useBackend)(n),d=t.act,s=t.data,u=(s.panelOpen,s.copyBoard),m=s.copyBoardReqComponents,p=s.queue,C=s.building,h=s.buildPercent,N=s.error,V=s.recipies;return(0,o.createComponentVNode)(2,a.Window,{width:500,height:500,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[N&&(0,o.createComponentVNode)(2,c.NoticeBox,{danger:!0,children:["Missing Materials: ",N]})||null,(0,o.createComponentVNode)(2,c.Section,{title:"Materials",children:(0,o.createComponentVNode)(2,l.Materials,{displayAllMat:!0})}),C&&(0,o.createComponentVNode)(2,c.Section,{title:"Currently Building",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Name",children:(0,i.toTitleCase)(C)}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Progress",children:(0,o.createComponentVNode)(2,c.ProgressBar,{color:"good",value:h,maxValue:100})})]})})||null,u&&(0,o.createComponentVNode)(2,c.Section,{title:"Circuit Reader",children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Loaded Circuit",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"eject",onClick:function(){return d("ejectBoard")},children:"Eject"}),children:(0,i.toTitleCase)(u)})}),m&&m.length&&(0,o.createFragment)([m.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{children:[e.qty," x ",(0,i.toTitleCase)(e.name)]},e.name)})),(0,o.createComponentVNode)(2,c.Button,{icon:"wrench",onClick:function(){return d("queueBoard")},children:"Build All"})],0)||(0,o.createComponentVNode)(2,c.Box,{children:"Board has no required components."})]}),(0,o.createComponentVNode)(2,c.Section,{title:"Queue",children:p.length&&p.map((function(e,n){return(0,o.createComponentVNode)(2,c.Box,{color:"label",children:["#",n+1,": ",(0,i.toTitleCase)(e),(n>0||!C)&&(0,o.createComponentVNode)(2,c.Button,{ml:1,icon:"times",onClick:function(){return d("cancel",{cancel:n+1})},children:"Cancel"})||null]},e)}))||(0,o.createComponentVNode)(2,c.NoticeBox,{info:!0,children:"Queue Empty"})}),(0,o.createComponentVNode)(2,c.Section,{title:"Recipes",children:V.length&&V.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"wrench",onClick:function(){return d("queue",{queue:e.type})},children:(0,i.toTitleCase)(e.name)})},e.name)}))})]})})}},83987:function(e,n,t){"use strict";n.__esModule=!0,n.PathogenicIsolator=void 0;var o=t(39812),r=(t(41860),t(58083),t(71494)),c=t(16007),a=t(74814),i=t(85952),l=function(e,n){var t=(0,r.useBackend)(n),c=t.act,i=t.data.can_print,l=e.args;return(0,o.createComponentVNode)(2,a.Section,{level:2,m:"-1rem",title:l.name||"Virus",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{disabled:!i,icon:"print",content:"Print",onClick:function(){return c("print",{type:"virus_record",vir:l.record})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"times",color:"red",onClick:function(){return c("modal_close")}})],4),children:(0,o.createComponentVNode)(2,a.Box,{mx:"0.5rem",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Spread",children:[l.spread_text," Transmission"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Possible cure",children:l.antigen}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Rate of Progression",children:l.rate}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Antibiotic Resistance",children:[l.resistance,"%"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Species Affected",children:l.species}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Symptoms",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:l.symptoms.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.stage+". "+e.name,children:[(0,o.createComponentVNode)(2,a.Box,{inline:!0,children:[(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:"label",children:"Strength:"})," ",e.strength,"\xa0"]}),(0,o.createComponentVNode)(2,a.Box,{inline:!0,children:[(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:"label",children:"Aggressiveness:"})," ",e.aggressiveness]})]},e.stage)}))})})]})})})};n.PathogenicIsolator=function(e,n){var t=(0,r.useBackend)(n),u=(t.act,t.data.isolating),m=(0,r.useLocalState)(n,"tabIndex",0),p=m[0],C=m[1],h=null;return 0===p?h=(0,o.createComponentVNode)(2,d):1===p&&(h=(0,o.createComponentVNode)(2,s)),(0,c.modalRegisterBodyOverride)("virus",l),(0,o.createComponentVNode)(2,i.Window,{height:500,width:520,resizable:!0,children:[(0,o.createComponentVNode)(2,c.ComplexModal,{maxHeight:"100%",maxWidth:"95%"}),(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[u&&(0,o.createComponentVNode)(2,a.NoticeBox,{warning:!0,children:"The Isolator is currently isolating..."})||null,(0,o.createComponentVNode)(2,a.Tabs,{children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:0===p,onClick:function(){return C(0)},children:"Home"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:1===p,onClick:function(){return C(1)},children:"Database"})]}),h]})]})};var d=function(e,n){var t=(0,r.useBackend)(n),c=t.act,i=t.data,l=i.syringe_inserted,d=i.pathogen_pool,s=i.can_print;return(0,o.createComponentVNode)(2,a.Section,{title:"Pathogens",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"print",content:"Print",disabled:!s,onClick:function(){return c("print",{type:"patient_diagnosis"})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"eject",content:"Eject Syringe",disabled:!l,onClick:function(){return c("eject")}})],4),children:d.length&&d.map((function(e){return(0,o.createComponentVNode)(2,a.Section,{children:[(0,o.createComponentVNode)(2,a.Box,{color:"label",children:(0,o.createComponentVNode)(2,a.Flex,{align:"center",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:[(0,o.createVNode)(1,"u",null,[(0,o.createTextVNode)("Stamm #"),e.unique_id],0),e.is_in_database?" (Analyzed)":" (Not Analyzed)"]}),(0,o.createComponentVNode)(2,a.Flex.Item,{children:[(0,o.createComponentVNode)(2,a.Button,{icon:"virus",content:"Isolate",onClick:function(){return c("isolate",{isolate:e.reference})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"search",content:"Database",disabled:!e.is_in_database,onClick:function(){return c("view_entry",{vir:e.record})}})]})]})}),(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Box,{color:"average",mb:1,children:e.name}),e.dna]})]},e.unique_id)}))||(l?(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"No samples detected."}):(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"No syringe inserted."}))})},s=function(e,n){var t=(0,r.useBackend)(n),c=t.act,i=t.data,l=i.database,d=i.can_print;return(0,o.createComponentVNode)(2,a.Section,{title:"Database",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"print",content:"Print",disabled:!d,onClick:function(){return c("print",{type:"virus_list"})}}),children:l.length&&l.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"search",onClick:function(){return c("view_entry",{vir:e.record})},children:e.name},e.name)}))||(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"The viral database is empty."})})}},72586:function(e,n,t){"use strict";n.__esModule=!0,n.Pda=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=t(73218),l=t(75168);n.Pda=function(e,n){var t=(0,r.useBackend)(n),m=(t.act,t.data),p=m.app,C=m.owner,h=m.useRetro;if(!C)return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{stretchContents:!0,children:"Warning: No ID information found! Please swipe ID!"})})});var N=function(e){var n;try{n=l("./"+e+".js")}catch(t){if("MODULE_NOT_FOUND"===t.code)return(0,i.routingError)("notFound",e);throw t}return n[e]||(0,i.routingError)("missingExport",e)}(p.template),V=(0,r.useLocalState)(n,"settingsMode",!1),b=V[0],f=V[1];return(0,o.createComponentVNode)(2,a.Window,{width:580,height:670,theme:h?"pda-retro":null,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,d,{settingsMode:b,setSettingsMode:f}),b&&(0,o.createComponentVNode)(2,s)||(0,o.createComponentVNode)(2,c.Section,{title:(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Icon,{name:p.icon,mr:1}),p.name]}),p:1,children:(0,o.createComponentVNode)(2,N)}),(0,o.createComponentVNode)(2,c.Box,{mb:8}),(0,o.createComponentVNode)(2,u,{setSettingsMode:f})]})})};var d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=e.settingsMode,d=e.setSettingsMode,s=i.idInserted,u=i.idLink,m=(i.cartridge_name,i.stationTime);return(0,o.createComponentVNode)(2,c.Box,{mb:1,children:(0,o.createComponentVNode)(2,c.Flex,{align:"center",justify:"space-between",children:[!!s&&(0,o.createComponentVNode)(2,c.Flex.Item,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"eject",color:"transparent",onClick:function(){return a("Authenticate")},content:u})}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,textAlign:"center",bold:!0,children:m}),(0,o.createComponentVNode)(2,c.Flex.Item,{children:[(0,o.createComponentVNode)(2,c.Button,{selected:l,onClick:function(){return d(!l)},icon:"cog"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return a("Retro")},icon:"adjust"})]})]})})},s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.idInserted,d=i.idLink,s=i.cartridge_name,u=i.touch_silent;return(0,o.createComponentVNode)(2,c.Section,{title:"Settings",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"R.E.T.R.O Mode",children:(0,o.createComponentVNode)(2,c.Button,{icon:"cog",content:"Retro Theme",onClick:function(){return a("Retro")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Touch Sounds",children:(0,o.createComponentVNode)(2,c.Button,{icon:"cog",selected:!u,content:u?"Disabled":"Enabled",onClick:function(){return a("TouchSounds")}})}),!!s&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Cartridge",children:(0,o.createComponentVNode)(2,c.Button,{icon:"eject",onClick:function(){return a("Eject")},content:s})}),!!l&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"ID Card",children:(0,o.createComponentVNode)(2,c.Button,{icon:"eject",onClick:function(){return a("Authenticate")},content:d})})]})})},u=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=e.setSettingsMode,d=i.app,s=i.useRetro;return(0,o.createComponentVNode)(2,c.Box,{position:"fixed",bottom:"0%",left:"0%",right:"0%",backgroundColor:s?"#6f7961":"#1b1b1b",children:(0,o.createComponentVNode)(2,c.Flex,{children:[(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"33%",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,color:"transparent",iconColor:d.has_back?"white":"disabled",textAlign:"center",icon:"undo",mb:0,fontSize:1.7,onClick:function(){return a("Back")}})}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"33%",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,color:"transparent",iconColor:d.is_home?"disabled":"white",textAlign:"center",icon:"home",mb:0,fontSize:1.7,onClick:function(){l(!1),a("Home")}})})]})})}},67589:function(e,n,t){"use strict";n.__esModule=!0,n.PersonalCrafting=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);function i(e,n){var t;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(t=function(e,n){if(!e)return;if("string"==typeof e)return l(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return l(e,n)}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var o=0;return function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(t=e[Symbol.iterator]()).next.bind(t)}function l(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,o=new Array(n);t=.5?"good":s>.15&&"average")||"bad";return(0,o.createComponentVNode)(2,a.Window,{width:450,height:340,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[!d.anchored&&(0,o.createComponentVNode)(2,c.NoticeBox,{children:"Generator not anchored."}),(0,o.createComponentVNode)(2,c.Section,{title:"Status",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power switch",children:(0,o.createComponentVNode)(2,c.Button,{icon:d.active?"power-off":"times",onClick:function(){return l("toggle_power")},selected:d.active,disabled:!d.ready_to_boot,children:d.active?"On":"Off"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Fuel Type",buttons:d.fuel_stored>=1&&(0,o.createComponentVNode)(2,c.Button,{ml:1,icon:"eject",disabled:d.active,onClick:function(){return l("eject")},children:"Eject"}),children:(0,o.createComponentVNode)(2,c.Box,{color:u,children:[d.fuel_stored,"cm\xb3 ",d.sheet_name]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Current fuel level",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:d.fuel_stored/d.fuel_capacity,ranges:{good:[.5,Infinity],average:[.15,.5],bad:[-Infinity,.15]},children:[d.fuel_stored,"cm\xb3 / ",d.fuel_capacity,"cm\xb3"]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Fuel Usage",children:[d.fuel_usage," cm\xb3/s"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Temperature",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:d.temperature_current,maxValue:d.temperature_max+30,color:d.temperature_overheat?"bad":"good",children:[(0,i.round)(d.temperature_current),"\xb0C"]})})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Output",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Current output",color:d.unsafe_output?"bad":null,children:d.power_output}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Adjust output",children:[(0,o.createComponentVNode)(2,c.Button,{icon:"minus",onClick:function(){return l("lower_power")},children:d.power_generated}),(0,o.createComponentVNode)(2,c.Button,{icon:"plus",onClick:function(){return l("higher_power")},children:d.power_generated})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power available",children:(0,o.createComponentVNode)(2,c.Box,{inline:!0,color:!d.connected&&"bad",children:d.connected?d.power_available:"Unconnected"})})]})})]})})}},82564:function(e,n,t){"use strict";n.__esModule=!0,n.PortablePump=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=t(34227);n.PortablePump=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data,s=d.direction,u=d.target_pressure,m=d.default_pressure,p=d.min_pressure,C=d.max_pressure;return(0,o.createComponentVNode)(2,a.Window,{width:330,height:375,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,i.PortableBasicInfo),(0,o.createComponentVNode)(2,c.Section,{title:"Pump",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:s?"sign-in-alt":"sign-out-alt",content:s?"In":"Out",selected:s,onClick:function(){return l("direction")}}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Output",children:(0,o.createComponentVNode)(2,c.Slider,{mt:"0.4em",animated:!0,minValue:p,maxValue:C,value:u,unit:"kPa",stepPixelSize:.3,onChange:function(e,n){return l("pressure",{pressure:n})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Presets",children:[(0,o.createComponentVNode)(2,c.Button,{icon:"minus",disabled:u===p,onClick:function(){return l("pressure",{pressure:"min"})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"sync",disabled:u===m,onClick:function(){return l("pressure",{pressure:"reset"})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"plus",disabled:u===C,onClick:function(){return l("pressure",{pressure:"max"})}})]})]})})]})})}},24901:function(e,n,t){"use strict";n.__esModule=!0,n.PortableScrubber=void 0;var o=t(39812),r=t(71494),c=t(74814),a=(t(76270),t(85952)),i=t(34227);n.PortableScrubber=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data,s=d.rate,u=d.minrate,m=d.maxrate;return(0,o.createComponentVNode)(2,a.Window,{width:320,height:350,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,i.PortableBasicInfo),(0,o.createComponentVNode)(2,c.Section,{title:"Power Regulator",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Volume Rate",children:(0,o.createComponentVNode)(2,c.Slider,{mt:"0.4em",animated:!0,minValue:u,maxValue:m,value:s,unit:"L/s",onChange:function(e,n){return l("volume_adj",{vol:n})}})})})})]})})}},31695:function(e,n,t){"use strict";n.__esModule=!0,n.PortableTurret=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.PortableTurret=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.locked,s=l.on,u=l.lethal,m=l.lethal_is_configurable,p=l.targetting_is_configurable,C=l.check_weapons,h=l.neutralize_noaccess,N=l.neutralize_norecord,V=l.neutralize_criminals,b=l.neutralize_all,f=l.neutralize_nonsynth,g=l.neutralize_unidentified,k=l.neutralize_down;return(0,o.createComponentVNode)(2,a.Window,{width:500,height:400,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.NoticeBox,{children:["Swipe an ID card to ",d?"unlock":"lock"," this interface."]}),(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Status",children:(0,o.createComponentVNode)(2,c.Button,{icon:s?"power-off":"times",content:s?"On":"Off",selected:s,disabled:d,onClick:function(){return i("power")}})}),!!m&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Lethals",children:(0,o.createComponentVNode)(2,c.Button,{icon:u?"exclamation-triangle":"times",content:u?"On":"Off",color:u?"bad":"",disabled:d,onClick:function(){return i("lethal")}})})]})}),!!p&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Humanoid Targets",children:[(0,o.createComponentVNode)(2,c.Button.Checkbox,{fluid:!0,checked:V,content:"Wanted Criminals",disabled:d,onClick:function(){return i("autharrest")}}),(0,o.createComponentVNode)(2,c.Button.Checkbox,{fluid:!0,checked:N,content:"No Sec Record",disabled:d,onClick:function(){return i("authnorecord")}}),(0,o.createComponentVNode)(2,c.Button.Checkbox,{fluid:!0,checked:C,content:"Unauthorized Weapons",disabled:d,onClick:function(){return i("authweapon")}}),(0,o.createComponentVNode)(2,c.Button.Checkbox,{fluid:!0,checked:h,content:"Unauthorized Access",disabled:d,onClick:function(){return i("authaccess")}})]}),(0,o.createComponentVNode)(2,c.Section,{title:"Other Targets",children:[(0,o.createComponentVNode)(2,c.Button.Checkbox,{fluid:!0,checked:g,content:"Unidentified Lifesigns (Xenos, Animals, Etc)",disabled:d,onClick:function(){return i("authxeno")}}),(0,o.createComponentVNode)(2,c.Button.Checkbox,{fluid:!0,checked:f,content:"All Non-Synthetics",disabled:d,onClick:function(){return i("authsynth")}}),(0,o.createComponentVNode)(2,c.Button.Checkbox,{fluid:!0,checked:k,content:"Downed Targets",disabled:d,onClick:function(){return i("authdown")}}),(0,o.createComponentVNode)(2,c.Button.Checkbox,{fluid:!0,checked:b,content:"All Entities",disabled:d,onClick:function(){return i("authall")}})]})],4)]})})}},89793:function(e,n,t){"use strict";n.__esModule=!0,n.AreaCharge=n.PowerMonitorFocus=n.PowerMonitorContent=n.PowerMonitor=n.powerRank=void 0;var o=t(39812),r=t(64499),c=t(85531),a=t(41860),i=t(34380),l=t(71494),d=t(74814),s=t(85952),u=5e5,m=function(e){var n=String(e.split(" ")[1]).toLowerCase();return["w","kw","mw","gw"].indexOf(n)};n.powerRank=m;n.PowerMonitor=function(){return(0,o.createComponentVNode)(2,s.Window,{width:550,height:700,resizable:!0,children:(0,o.createComponentVNode)(2,s.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,p)})})};var p=function(e,n){var t=(0,l.useBackend)(n),r=t.act,c=t.data,a=(c.map_levels,c.all_sensors),i=c.focus;if(i)return(0,o.createComponentVNode)(2,C,{focus:i});var s=(0,o.createComponentVNode)(2,d.Box,{color:"bad",children:"No sensors detected"});return a&&(s=(0,o.createComponentVNode)(2,d.Table,{children:a.map((function(e){return(0,o.createComponentVNode)(2,d.Table.Row,{children:(0,o.createComponentVNode)(2,d.Table.Cell,{children:(0,o.createComponentVNode)(2,d.Button,{content:e.name,icon:e.alarm?"bell":"sign-in-alt",onClick:function(){return r("setsensor",{id:e.name})}})})},e.name)}))})),(0,o.createComponentVNode)(2,d.Section,{title:"No active sensor. Listing all.",buttons:(0,o.createComponentVNode)(2,d.Button,{content:"Scan For Sensors",icon:"undo",onClick:function(){return r("refresh")}}),children:s})};n.PowerMonitorContent=p;var C=function(e,n){var t=(0,l.useBackend)(n),i=t.act,s=(t.data,e.focus),p=s.history,C=(0,l.useLocalState)(n,"sortByField",null),V=C[0],b=C[1],f=p.supply[p.supply.length-1]||0,g=p.demand[p.demand.length-1]||0,k=p.supply.map((function(e,n){return[n,e]})),v=p.demand.map((function(e,n){return[n,e]})),B=Math.max.apply(Math,[u].concat(p.supply,p.demand)),L=(0,c.flow)([(0,r.map)((function(e,n){return Object.assign({},e,{id:e.name+n})})),"name"===V&&(0,r.sortBy)((function(e){return e.name})),"charge"===V&&(0,r.sortBy)((function(e){return-e.charge})),"draw"===V&&(0,r.sortBy)((function(e){return-m(e.load)}),(function(e){return-parseFloat(e.load)})),"problems"===V&&(0,r.sortBy)((function(e){return e.eqp}),(function(e){return e.lgt}),(function(e){return e.env}),(function(e){return e.charge}),(function(e){return e.name}))])(s.areas);return(0,o.createFragment)([(0,o.createComponentVNode)(2,d.Section,{title:s.name,buttons:(0,o.createComponentVNode)(2,d.Button,{icon:"sign-out-alt",content:"Back To Main",onClick:function(){return i("clear")}})}),(0,o.createComponentVNode)(2,d.Flex,{mx:-.5,mb:1,children:[(0,o.createComponentVNode)(2,d.Flex.Item,{mx:.5,width:"200px",children:(0,o.createComponentVNode)(2,d.Section,{children:(0,o.createComponentVNode)(2,d.LabeledList,{children:[(0,o.createComponentVNode)(2,d.LabeledList.Item,{label:"Supply",children:(0,o.createComponentVNode)(2,d.ProgressBar,{value:f,minValue:0,maxValue:B,color:"teal",children:(0,a.toFixed)(f/1e3)+" kW"})}),(0,o.createComponentVNode)(2,d.LabeledList.Item,{label:"Draw",children:(0,o.createComponentVNode)(2,d.ProgressBar,{value:g,minValue:0,maxValue:B,color:"pink",children:(0,a.toFixed)(g/1e3)+" kW"})})]})})}),(0,o.createComponentVNode)(2,d.Flex.Item,{mx:.5,grow:1,children:(0,o.createComponentVNode)(2,d.Section,{position:"relative",height:"100%",children:[(0,o.createComponentVNode)(2,d.Chart.Line,{fillPositionedParent:!0,data:k,rangeX:[0,k.length-1],rangeY:[0,B],strokeColor:"rgba(0, 181, 173, 1)",fillColor:"rgba(0, 181, 173, 0.25)"}),(0,o.createComponentVNode)(2,d.Chart.Line,{fillPositionedParent:!0,data:v,rangeX:[0,v.length-1],rangeY:[0,B],strokeColor:"rgba(224, 57, 151, 1)",fillColor:"rgba(224, 57, 151, 0.25)"})]})})]}),(0,o.createComponentVNode)(2,d.Section,{children:[(0,o.createComponentVNode)(2,d.Box,{mb:1,children:[(0,o.createComponentVNode)(2,d.Box,{inline:!0,mr:2,color:"label",children:"Sort by:"}),(0,o.createComponentVNode)(2,d.Button.Checkbox,{checked:"name"===V,content:"Name",onClick:function(){return b("name"!==V&&"name")}}),(0,o.createComponentVNode)(2,d.Button.Checkbox,{checked:"charge"===V,content:"Charge",onClick:function(){return b("charge"!==V&&"charge")}}),(0,o.createComponentVNode)(2,d.Button.Checkbox,{checked:"draw"===V,content:"Draw",onClick:function(){return b("draw"!==V&&"draw")}}),(0,o.createComponentVNode)(2,d.Button.Checkbox,{checked:"problems"===V,content:"Problems",onClick:function(){return b("problems"!==V&&"problems")}})]}),(0,o.createComponentVNode)(2,d.Table,{children:[(0,o.createComponentVNode)(2,d.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,d.Table.Cell,{children:"Area"}),(0,o.createComponentVNode)(2,d.Table.Cell,{collapsing:!0,children:"Charge"}),(0,o.createComponentVNode)(2,d.Table.Cell,{textAlign:"right",children:"Draw"}),(0,o.createComponentVNode)(2,d.Table.Cell,{collapsing:!0,title:"Equipment",children:"Eqp"}),(0,o.createComponentVNode)(2,d.Table.Cell,{collapsing:!0,title:"Lighting",children:"Lgt"}),(0,o.createComponentVNode)(2,d.Table.Cell,{collapsing:!0,title:"Environment",children:"Env"})]}),L.map((function(e,n){return(0,o.createVNode)(1,"tr","Table__row candystripe",[(0,o.createVNode)(1,"td",null,e.name,0),(0,o.createVNode)(1,"td","Table__cell text-right text-nowrap",(0,o.createComponentVNode)(2,h,{charging:e.charging,charge:e.charge}),2),(0,o.createVNode)(1,"td","Table__cell text-right text-nowrap",e.load,0),(0,o.createVNode)(1,"td","Table__cell text-center text-nowrap",(0,o.createComponentVNode)(2,N,{status:e.eqp}),2),(0,o.createVNode)(1,"td","Table__cell text-center text-nowrap",(0,o.createComponentVNode)(2,N,{status:e.lgt}),2),(0,o.createVNode)(1,"td","Table__cell text-center text-nowrap",(0,o.createComponentVNode)(2,N,{status:e.env}),2)],4,null,e.id)}))]})]})],4)};n.PowerMonitorFocus=C;var h=function(e){var n=e.charging,t=e.charge;return(0,o.createFragment)([(0,o.createComponentVNode)(2,d.Icon,{width:"18px",textAlign:"center",name:0===n&&(t>50?"battery-half":"battery-quarter")||1===n&&"bolt"||2===n&&"battery-full",color:0===n&&(t>50?"yellow":"red")||1===n&&"yellow"||2===n&&"green"}),(0,o.createComponentVNode)(2,d.Box,{inline:!0,width:"36px",textAlign:"right",children:(0,a.toFixed)(t)+"%"})],4)};n.AreaCharge=h,h.defaultHooks=i.pureComponentHooks;var N=function(e){var n=e.status,t=Boolean(2&n),r=Boolean(1&n),c=(t?"On":"Off")+" ["+(r?"auto":"manual")+"]";return(0,o.createComponentVNode)(2,d.ColorBox,{color:t?"good":"bad",content:r?undefined:"M",title:c})};N.defaultHooks=i.pureComponentHooks},81121:function(e,n,t){"use strict";n.__esModule=!0,n.PressureRegulator=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.PressureRegulator=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.on,s=l.pressure_set,u=(l.max_pressure,l.input_pressure),m=l.output_pressure,p=l.regulate_mode,C=l.set_flow_rate,h=l.last_flow_rate;return(0,o.createComponentVNode)(2,a.Window,{width:470,height:370,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{title:"Status",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Input Pressure",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:u/100})," kPa"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Output Pressure",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:m/100})," kPa"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Flow Rate",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:h/10})," L/s"]})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Controls",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",content:d?"Unlocked":"Closed",selected:d,onClick:function(){return i("toggle_valve")}}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Pressure Regulation",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",content:"Off",selected:0===p,onClick:function(){return i("regulate_mode",{mode:"off"})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"compress-arrows-alt",content:"Input",selected:1===p,onClick:function(){return i("regulate_mode",{mode:"input"})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"expand-arrows-alt",content:"Output",selected:2===p,onClick:function(){return i("regulate_mode",{mode:"output"})}})],4)}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Desired Output Pressure",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"compress-arrows-alt",content:"MIN",onClick:function(){return i("set_press",{press:"min"})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"expand-arrows-alt",content:"MAX",onClick:function(){return i("set_press",{press:"max"})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"wrench",content:"SET",onClick:function(){return i("set_press",{press:"set"})}})],4),children:[s/100," kPa"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Flow Rate Limit",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"compress-arrows-alt",content:"MIN",onClick:function(){return i("set_flow_rate",{press:"min"})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"expand-arrows-alt",content:"MAX",onClick:function(){return i("set_flow_rate",{press:"max"})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"wrench",content:"SET",onClick:function(){return i("set_flow_rate",{press:"set"})}})],4),children:[C/10," L/s"]})]})})]})})}},14210:function(e,n,t){"use strict";n.__esModule=!0,n.PrisonerManagement=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);t(58083);n.PrisonerManagement=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.locked,s=l.chemImplants,u=l.trackImplants;return(0,o.createComponentVNode)(2,a.Window,{width:500,height:400,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:d&&(0,o.createComponentVNode)(2,c.Section,{title:"Locked",textAlign:"center",children:["This interface is currently locked.",(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"unlock",onClick:function(){return i("lock")},children:"Unlock"})})]})||(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Interface Lock",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"lock",onClick:function(){return i("lock")},children:"Lock Interface"})}),(0,o.createComponentVNode)(2,c.Section,{title:"Chemical Implants",children:s.length&&(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:"Host"}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:"Units Remaining"}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:"Inject"})]}),s.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:e.host}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:[e.units,"u remaining"]}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:[(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("inject",{imp:e.ref,val:1})},children:"(1)"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("inject",{imp:e.ref,val:5})},children:"(5)"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("inject",{imp:e.ref,val:10})},children:"(10)"})]})]},e.ref)}))]})||(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No chemical implants found."})}),(0,o.createComponentVNode)(2,c.Section,{title:"Tracking Implants",children:u.length&&(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:"Host"}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:"Location"}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:"Message"})]}),u.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:[e.host," (",e.id,")"]}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:e.loc}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("warn",{imp:e.ref})},children:"Message"})})]},e.ref)}))]})||(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No chemical implants found."})})],4)})})}},43996:function(e,n,t){"use strict";n.__esModule=!0,n.RCONContent=n.RCON=void 0;var o=t(39812),r=t(41860),c=t(58083),a=t(71494),i=t(74814),l=t(85952),d=t(2497),s=1e3;n.RCON=function(e,n){return(0,o.createComponentVNode)(2,l.Window,{width:630,height:440,resizable:!0,children:(0,o.createComponentVNode)(2,l.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,u)})})};var u=function(e,n){var t,r=(0,a.useLocalState)(n,"tabIndex",0),c=r[0],l=r[1];return 0===c?t=(0,o.createComponentVNode)(2,m):1===c&&(t=(0,o.createComponentVNode)(2,h)),(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Tabs,{children:[(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:0===c,onClick:function(){return l(0)},children:[(0,o.createComponentVNode)(2,i.Icon,{name:"power-off"})," SMESs"]},"SMESs"),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:1===c,onClick:function(){return l(1)},children:[(0,o.createComponentVNode)(2,i.Icon,{name:"bolt"})," Breakers"]},"Breakers")]}),(0,o.createComponentVNode)(2,i.Box,{m:2,children:t})],4)};n.RCONContent=u;var m=function(e,n){var t=(0,a.useBackend)(n),r=(t.act,t.data.smes_info);return(0,o.createComponentVNode)(2,i.Section,{title:"SMESs",children:(0,o.createComponentVNode)(2,i.Stack,{vertical:!0,children:r.map((function(e){return(0,o.createComponentVNode)(2,i.Stack.Item,{children:(0,o.createComponentVNode)(2,p,{smes:e})},e.RCON_tag)}))})})},p=function(e,n){(0,a.useBackend)(n).act;var t=e.smes,c=t.capacityPercent,l=t.capacity,d=t.charge,s=(t.inputAttempt,t.inputting,t.inputLevel,t.inputLevelMax,t.inputAvailable,t.outputAttempt,t.outputting,t.outputLevel,t.outputLevelMax,t.outputUsed,t.RCON_tag);return(0,o.createComponentVNode)(2,i.Stack,{vertical:!0,children:[(0,o.createComponentVNode)(2,i.Stack.Item,{children:(0,o.createComponentVNode)(2,i.Stack,{fill:!0,justify:"space-between",children:[(0,o.createComponentVNode)(2,i.Stack.Item,{flexBasis:"40%",fontSize:1.2,children:s}),(0,o.createComponentVNode)(2,i.Stack.Item,{grow:1,children:(0,o.createComponentVNode)(2,i.ProgressBar,{value:.01*c,ranges:{good:[.5,Infinity],average:[.15,.5],bad:[-Infinity,.15]},children:[(0,r.round)(d/6e4,1)," kWh / ",(0,r.round)(l/6e4)," kWh (",c,"%)"]})})]})}),(0,o.createComponentVNode)(2,i.Stack.Item,{children:(0,o.createComponentVNode)(2,C,{smes:e.smes,way:"input"})}),(0,o.createComponentVNode)(2,i.Stack.Item,{children:(0,o.createComponentVNode)(2,C,{smes:e.smes,way:"output"})}),(0,o.createComponentVNode)(2,i.Stack.Divider)]})},C=function(e,n){var t,r,l,u,m,p,C,h=(0,a.useBackend)(n).act,N=e.way,V=e.smes,b=(V.capacityPercent,V.capacity,V.charge,V.inputAttempt),f=V.inputting,g=V.inputLevel,k=V.inputLevelMax,v=V.inputAvailable,B=V.outputAttempt,L=V.outputting,_=V.outputLevel,x=V.outputLevelMax,w=V.outputUsed,S=V.RCON_tag;switch(N){case"input":t=g,r=k,l=v,"IN",u="smes_in_toggle",m="smes_in_set",b,p=b?f?"green":"yellow":null,C=b?f?"The SMES is drawing power.":"The SMES lacks power.":"The SMES input is off.";break;case"output":t=_,r=x,l=w,"OUT",u="smes_out_toggle",m="smes_out_set",B,p=B?L?"green":"yellow":null,C=B?L?"The SMES is outputting power.":"The SMES lacks any draw.":"The SMES output is off."}return(0,o.createComponentVNode)(2,i.Stack,{fill:!0,children:[(0,o.createComponentVNode)(2,i.Stack.Item,{basis:"20%",children:(0,d.capitalize)(N)}),(0,o.createComponentVNode)(2,i.Stack.Item,{grow:1,children:(0,o.createComponentVNode)(2,i.Stack,{children:[(0,o.createComponentVNode)(2,i.Stack.Item,{children:(0,o.createComponentVNode)(2,i.Button,{icon:"power-off",color:p,tooltip:C,onClick:function(){return h(u,{smes:S})}})}),(0,o.createComponentVNode)(2,i.Stack.Item,{children:[(0,o.createComponentVNode)(2,i.Button,{icon:"fast-backward",disabled:0===t,onClick:function(){return h(m,{target:"min",smes:S})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"backward",disabled:0===t,onClick:function(){return h(m,{adjust:-1e4,smes:S})}})]}),(0,o.createComponentVNode)(2,i.Stack.Item,{grow:1,children:(0,o.createComponentVNode)(2,i.Slider,{value:t/s,fillValue:l/s,minValue:0,maxValue:r/s,step:5,stepPixelSize:4,format:function(e){return(0,c.formatPower)(l,1)+"/"+(0,c.formatPower)(e*s,1)},onDrag:function(e,n){return h(m,{target:n*s,smes:S})}})}),(0,o.createComponentVNode)(2,i.Stack.Item,{children:[(0,o.createComponentVNode)(2,i.Button,{icon:"forward",disabled:t===r,onClick:function(){return h(m,{adjust:1e4,smes:S})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"fast-forward",disabled:t===r,onClick:function(){return h(m,{target:"max",smes:S})}})]})]})})]})},h=function(e,n){var t=(0,a.useBackend)(n),r=t.act,c=t.data.breaker_info;return(0,o.createComponentVNode)(2,i.Section,{title:"Breakers",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:c?c.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.RCON_tag,buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"power-off",content:e.enabled?"Enabled":"Disabled",selected:e.enabled,color:e.enabled?null:"bad",onClick:function(){return r("toggle_breaker",{breaker:e.RCON_tag})}})},e.RCON_tag)})):(0,o.createComponentVNode)(2,i.LabeledList.Item,{color:"bad",children:"No breakers detected."})})})}},92141:function(e,n,t){"use strict";n.__esModule=!0,n.RIGSuit=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=t(2497);n.RIGSuit=function(e,n){var t=(0,r.useBackend)(n),i=(t.act,t.data),u=i.interfacelock,m=i.malf,p=i.aicontrol,C=i.ai,h=null;return u||m?h=(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"--HARDSUIT INTERFACE OFFLINE--"}):!C&&p&&(h=(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"-- HARDSUIT CONTROL OVERRIDDEN BY AI --"})),(0,o.createComponentVNode)(2,a.Window,{height:480,width:550,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:h||(0,o.createFragment)([(0,o.createComponentVNode)(2,l),(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,s)],4)})})};var l=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.chargestatus,d=i.charge,s=i.maxcharge,u=i.aioverride,m=i.sealing,p=i.sealed,C=i.cooling,h=i.emagged,N=i.securitycheck,V=i.coverlock,b=(0,o.createComponentVNode)(2,c.Button,{content:"Suit "+(m?"seals working...":p?"is Active":"is Inactive"),icon:m?"redo":p?"power-off":"lock-open",iconSpin:m,disabled:m,selected:p,onClick:function(){return a("toggle_seals")}}),f=(0,o.createComponentVNode)(2,c.Button,{content:"Suit Cooling "+(C?"is Active":"is Inactive"),icon:"power-off",selected:C,onClick:function(){return a("toggle_cooling")}}),g=(0,o.createComponentVNode)(2,c.Button,{content:"AI Control "+(u?"Enabled":"Disabled"),selected:u,icon:"robot",onClick:function(){return a("toggle_ai_control")}});return(0,o.createComponentVNode)(2,c.Section,{title:"Status",buttons:(0,o.createFragment)([b,g,f],0),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power Supply",children:(0,o.createComponentVNode)(2,c.ProgressBar,{minValue:0,maxValue:50,value:l,ranges:{good:[35,Infinity],average:[15,35],bad:[-Infinity,15]},children:[d," / ",s]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Cover Status",children:h||!N?(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Error - Maintenance Lock Control Offline"}):(0,o.createComponentVNode)(2,c.Button,{icon:V?"lock":"lock-open",content:V?"Locked":"Unlocked",onClick:function(){return a("toggle_suit_lock")}})})]})})},d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,l=t.data,d=l.sealing,s=l.helmet,u=l.helmetDeployed,m=l.gauntlets,p=l.gauntletsDeployed,C=l.boots,h=l.bootsDeployed,N=l.chest,V=l.chestDeployed;return(0,o.createComponentVNode)(2,c.Section,{title:"Hardware",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Helmet",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:u?"sign-out-alt":"sign-in-alt",content:u?"Deployed":"Deploy",disabled:d,selected:u,onClick:function(){return a("toggle_piece",{piece:"helmet"})}}),children:s?(0,i.capitalize)(s):"ERROR"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Gauntlets",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:p?"sign-out-alt":"sign-in-alt",content:p?"Deployed":"Deploy",disabled:d,selected:p,onClick:function(){return a("toggle_piece",{piece:"gauntlets"})}}),children:m?(0,i.capitalize)(m):"ERROR"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Boots",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:h?"sign-out-alt":"sign-in-alt",content:h?"Deployed":"Deploy",disabled:d,selected:h,onClick:function(){return a("toggle_piece",{piece:"boots"})}}),children:C?(0,i.capitalize)(C):"ERROR"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Chestpiece",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:V?"sign-out-alt":"sign-in-alt",content:V?"Deployed":"Deploy",disabled:d,selected:V,onClick:function(){return a("toggle_piece",{piece:"chest"})}}),children:N?(0,i.capitalize)(N):"ERROR"})]})})},s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,l=t.data,d=l.sealed,s=l.sealing,u=l.primarysystem,m=l.modules;return!d||s?(0,o.createComponentVNode)(2,c.Section,{title:"Modules",children:(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"HARDSUIT SYSTEMS OFFLINE"})}):(0,o.createComponentVNode)(2,c.Section,{title:"Modules",children:[(0,o.createComponentVNode)(2,c.Box,{color:"label",mb:"0.2rem",fontSize:1.5,children:["Selected Primary: ",(0,i.capitalize)(u||"None")]}),m&&m.map((function(e,n){return(0,o.createComponentVNode)(2,c.Section,{level:2,title:(0,i.toTitleCase)(e.name)+(e.damage?" (damaged)":""),buttons:(0,o.createFragment)([e.can_select?(0,o.createComponentVNode)(2,c.Button,{selected:e.name===u,content:e.name===u?"Selected":"Select",icon:"arrow-circle-right",onClick:function(){return a("interact_module",{module:e.index,module_mode:"select"})}}):null,e.can_use?(0,o.createComponentVNode)(2,c.Button,{content:e.engagestring,icon:"arrow-circle-down",onClick:function(){return a("interact_module",{module:e.index,module_mode:"engage"})}}):null,e.can_toggle?(0,o.createComponentVNode)(2,c.Button,{selected:e.is_active,content:e.is_active?e.deactivatestring:e.activatestring,icon:"arrow-circle-down",onClick:function(){return a("interact_module",{module:e.index,module_mode:"toggle"})}}):null],0),children:[e.damage>=2?(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"-- MODULE DESTROYED --"}):(0,o.createComponentVNode)(2,c.Flex,{spacing:1,children:[(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:[(0,o.createComponentVNode)(2,c.Box,{color:"average",children:["Engage: ",e.engagecost]}),(0,o.createComponentVNode)(2,c.Box,{color:"average",children:["Active: ",e.activecost]}),(0,o.createComponentVNode)(2,c.Box,{color:"average",children:["Passive: ",e.passivecost]})]}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:e.desc})]}),e.charges?(0,o.createComponentVNode)(2,c.Flex.Item,{children:(0,o.createComponentVNode)(2,c.Section,{title:"Module Charges",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Selected",children:(0,i.capitalize)(e.chargetype)}),e.charges.map((function(n,t){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:(0,i.capitalize)(n.caption),children:(0,o.createComponentVNode)(2,c.Button,{selected:e.realchargetype===n.index,icon:"arrow-right",onClick:function(){return a("interact_module",{module:e.index,module_mode:"select_charge_type",charge_type:n.index})}})},n.caption)}))]})})}):null]},e.name)}))]})}},17481:function(e,n,t){"use strict";n.__esModule=!0,n.Radio=void 0;var o=t(39812),r=(t(64499),t(41860)),c=t(71494),a=t(74814),i=t(76270),l=t(85952);n.Radio=function(e,n){var t=(0,c.useBackend)(n),d=t.act,s=t.data,u=s.rawfreq,m=s.minFrequency,p=s.maxFrequency,C=s.listening,h=s.broadcasting,N=s.subspace,V=s.subspaceSwitchable,b=s.chan_list,f=s.loudspeaker,g=s.mic_cut,k=s.spk_cut,v=s.useSyndMode,B=i.RADIO_CHANNELS.find((function(e){return e.freq===Number(u)})),L=156;return b&&b.length>0?L+=28*b.length+6:L+=24,V&&(L+=38),(0,o.createComponentVNode)(2,l.Window,{width:310,height:L,resizable:!0,theme:v?"syndicate":"",children:(0,o.createComponentVNode)(2,l.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Frequency",children:[(0,o.createComponentVNode)(2,a.NumberInput,{animated:!0,unit:"kHz",step:.2,stepPixelSize:10,minValue:m/10,maxValue:p/10,value:u/10,format:function(e){return(0,r.toFixed)(e,1)},onDrag:function(e,n){return d("setFrequency",{freq:(0,r.round)(10*n)})}}),B&&(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:B.color,ml:2,children:["[",B.name,"]"]})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Audio",children:[(0,o.createComponentVNode)(2,a.Button,{textAlign:"center",width:"37px",icon:C?"volume-up":"volume-mute",selected:C,disabled:k,onClick:function(){return d("listen")}}),(0,o.createComponentVNode)(2,a.Button,{textAlign:"center",width:"37px",icon:h?"microphone":"microphone-slash",selected:h,disabled:g,onClick:function(){return d("broadcast")}}),!!V&&(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.Button,{icon:"bullhorn",selected:N,content:"Subspace Tx "+(N?"ON":"OFF"),onClick:function(){return d("subspace")}})}),!!V&&(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.Button,{icon:f?"volume-up":"volume-mute",selected:f,content:"Loudspeaker",onClick:function(){return d("toggleLoudspeaker")}})})]})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Channels",children:[(!b||0===b.length)&&(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:"bad",children:"No channels detected."}),(0,o.createComponentVNode)(2,a.LabeledList,{children:b?b.map((function(e){var n=i.RADIO_CHANNELS.find((function(n){return n.freq===Number(e.freq)})),t="default";return n&&(t=n.color),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.display_name,labelColor:t,textAlign:"right",children:e.secure_channel&&N?(0,o.createComponentVNode)(2,a.Button,{icon:e.sec_channel_listen?"square-o":"check-square-o",selected:!e.sec_channel_listen,content:e.sec_channel_listen?"Off":"On",onClick:function(){return d("channel",{channel:e.chan})}}):(0,o.createComponentVNode)(2,a.Button,{content:"Switch",selected:e.chan===u,onClick:function(){return d("specFreq",{channel:e.chan})}})},e.chan)})):null})]})]})})}},29509:function(e,n,t){"use strict";n.__esModule=!0,n.RapidPipeDispenser=n.ICON_BY_CATEGORY_NAME=void 0;var o=t(39812),r=t(34380),c=t(2497),a=t(71494),i=t(74814),l=t(85952),d=["Atmospherics","Disposals"],s={Atmospherics:"wrench",Disposals:"trash-alt","Transit Tubes":"bus",Pipes:"grip-lines","Disposal Pipes":"grip-lines",Devices:"microchip","Heat Exchange":"thermometer-half","Insulated pipes":"snowflake","Station Equipment":"microchip"};n.ICON_BY_CATEGORY_NAME=s;var u=[{name:"Dispense",bitmask:1},{name:"Connect",bitmask:2},{name:"Destroy",bitmask:4},{name:"Paint",bitmask:8}],m=function(e,n){var t=(0,a.useBackend)(n),r=t.act,l=t.data,m=l.category,p=l.selected_color,C=l.mode;return(0,o.createComponentVNode)(2,i.Section,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Category",children:d.map((function(e,n){return(0,o.createComponentVNode)(2,i.Button,{selected:m===n,icon:s[e],color:"transparent",onClick:function(){return r("category",{category:n})},children:e},e)}))}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Modes",children:(0,o.createComponentVNode)(2,i.Stack,{fill:!0,children:u.map((function(e){return(0,o.createComponentVNode)(2,i.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,i.Button.Checkbox,{checked:C&e.bitmask,fluid:!0,content:e.name,onClick:function(){return r("mode",{mode:e.bitmask})}})},e.bitmask)}))})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Color",children:[(0,o.createComponentVNode)(2,i.Box,{inline:!0,width:"64px",color:l.paint_colors[p],children:(0,c.capitalize)(p)}),Object.keys(l.paint_colors).map((function(e){return(0,o.createComponentVNode)(2,i.ColorBox,{ml:1,color:l.paint_colors[e],onClick:function(){return r("color",{paint_color:e})}},e)}))]})]})})},p=function(e,n){var t=(0,a.useBackend)(n),c=t.act,l=t.data,d=l.category,s=l.piping_layer,u=l.preview_rows.flatMap((function(e){return e.previews}));return(0,o.createComponentVNode)(2,i.Section,{fill:!0,width:7.5,children:[0===d&&(0,o.createComponentVNode)(2,i.Stack,{vertical:!0,mb:1,children:[1,2,3,4,5].map((function(e){return(0,o.createComponentVNode)(2,i.Stack.Item,{my:0,children:(0,o.createComponentVNode)(2,i.Button.Checkbox,{checked:e===s,content:"Layer "+e,onClick:function(){return c("piping_layer",{piping_layer:e})}})},e)}))}),(0,o.createComponentVNode)(2,i.Box,{width:"120px",children:u.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{ml:0,title:e.dir_name,selected:e.selected,style:{width:"40px",height:"40px",padding:0},onClick:function(){return c("setdir",{dir:e.dir,flipped:e.flipped})},children:(0,o.createComponentVNode)(2,i.Box,{className:(0,r.classes)(["pipes32x32",e.dir+"-"+e.icon_state]),style:{transform:"scale(1.5) translate(9.5%, 9.5%)"}})},e.dir)}))})]})},C=function(e,n){var t=(0,a.useBackend)(n),r=t.act,c=t.data.categories,l=void 0===c?[]:c,d=(0,a.useLocalState)(n,"categoryName"),u=d[0],m=d[1],p=l.find((function(e){return e.cat_name===u}))||l[0];return(0,o.createComponentVNode)(2,i.Section,{fill:!0,scrollable:!0,children:[(0,o.createComponentVNode)(2,i.Tabs,{children:l.map((function(e,n){return(0,o.createComponentVNode)(2,i.Tabs.Tab,{fluid:!0,icon:s[e.cat_name],selected:e.cat_name===p.cat_name,onClick:function(){return m(e.cat_name)},children:e.cat_name},e.cat_name)}))}),null==p?void 0:p.recipes.map((function(e){return(0,o.createComponentVNode)(2,i.Button.Checkbox,{fluid:!0,ellipsis:!0,checked:e.selected,content:e.pipe_name,title:e.pipe_name,onClick:function(){return r("pipe_type",{pipe_type:e.pipe_index,category:p.cat_name})}},e.pipe_index)}))]})};n.RapidPipeDispenser=function(e,n){var t=(0,a.useBackend)(n);t.act,t.data.category;return(0,o.createComponentVNode)(2,l.Window,{width:550,height:570,children:(0,o.createComponentVNode)(2,l.Window.Content,{children:(0,o.createComponentVNode)(2,i.Stack,{fill:!0,vertical:!0,children:[(0,o.createComponentVNode)(2,i.Stack.Item,{children:(0,o.createComponentVNode)(2,m)}),(0,o.createComponentVNode)(2,i.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,i.Stack,{fill:!0,children:[(0,o.createComponentVNode)(2,i.Stack.Item,{children:(0,o.createComponentVNode)(2,i.Stack,{vertical:!0,fill:!0,children:(0,o.createComponentVNode)(2,i.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,p)})})}),(0,o.createComponentVNode)(2,i.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,C)})]})})]})})})}},53976:function(e,n,t){"use strict";n.__esModule=!0,n.RequestConsole=void 0;var o=t(39812),r=t(2497),c=t(71494),a=t(74814),i=t(85952),l=function(e,n){var t=(0,c.useBackend)(n).act,r=e.dept_list,i=e.department;return(0,o.createComponentVNode)(2,a.LabeledList,{children:r.sort().map((function(e){return e!==i&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"envelope-open-text",onClick:function(){return t("write",{write:e,priority:1})},children:"Message"}),(0,o.createComponentVNode)(2,a.Button,{icon:"exclamation-triangle",onClick:function(){return t("write",{write:e,priority:2})},children:"High Priority"})],4)})||null}))})},d={0:function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.silent;return(0,o.createComponentVNode)(2,a.Section,{title:"Settings",children:(0,o.createComponentVNode)(2,a.Button,{selected:!i,icon:i?"volume-mute":"volume-up",onClick:function(){return r("toggleSilent")},children:["Speaker ",i?"OFF":"ON"]})})},1:function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data),i=r.department,d=r.assist_dept;return(0,o.createComponentVNode)(2,a.Section,{title:"Request assistance from another department",children:(0,o.createComponentVNode)(2,l,{dept_list:d,department:i})})},2:function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data),i=r.department,d=r.supply_dept;return(0,o.createComponentVNode)(2,a.Section,{title:"Supplies",children:(0,o.createComponentVNode)(2,l,{dept_list:d,department:i})})},3:function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data),i=r.department,d=r.info_dept;return(0,o.createComponentVNode)(2,a.Section,{title:"Report Anonymous Information",children:(0,o.createComponentVNode)(2,l,{dept_list:d,department:i})})},4:function(e,n){var t=(0,c.useBackend)(n),r=t.act;t.data;return(0,o.createComponentVNode)(2,a.Section,{children:[(0,o.createComponentVNode)(2,a.Box,{fontSize:2,color:"good",children:"Message Sent Successfully"}),(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-right",onClick:function(){return r("setScreen",{setScreen:0})},children:"Continue"})})]})},5:function(e,n){var t=(0,c.useBackend)(n),r=t.act;t.data;return(0,o.createComponentVNode)(2,a.Section,{children:[(0,o.createComponentVNode)(2,a.Box,{fontSize:1.5,bold:!0,color:"bad",children:"An error occured. Message Not Sent."}),(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-right",onClick:function(){return r("setScreen",{setScreen:0})},children:"Continue"})})]})},6:function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data.message_log;return(0,o.createComponentVNode)(2,a.Section,{title:"Messages",children:l.length&&l.map((function(e,n){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:(0,r.decodeHtmlEntities)(e[0]),buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"print",onClick:function(){return i("print",{print:n+1})},children:"Print"}),children:(0,r.decodeHtmlEntities)(e[1])},n)}))||(0,o.createComponentVNode)(2,a.Box,{children:"No messages."})})},7:function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data,d=l.message,s=l.recipient,u=l.priority,m=l.msgStamped,p=l.msgVerified;return(0,o.createComponentVNode)(2,a.Section,{title:"Message Authentication",children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Message for "+s,children:d}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Priority",children:2===u?"High Priority":1===u?"Normal Priority":"Unknown"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Validated By",color:p?"good":"bad",children:(0,r.decodeHtmlEntities)(p)||"No Validation"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Stamped By",color:m?"good":"bad",children:(0,r.decodeHtmlEntities)(m)||"No Stamp"})]}),(0,o.createComponentVNode)(2,a.Button,{mt:1,icon:"share",onClick:function(){return i("department",{department:s})},children:"Send Message"}),(0,o.createComponentVNode)(2,a.Button,{icon:"undo",onClick:function(){return i("setScreen",{setScreen:0})},children:"Back"})]})},8:function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=(i.department,i.screen,i.message_log,i.newmessagepriority,i.silent,i.announcementConsole,i.assist_dept,i.supply_dept,i.info_dept,i.message),d=(i.recipient,i.priority,i.msgStamped,i.msgVerified,i.announceAuth);return(0,o.createComponentVNode)(2,a.Section,{title:"Send Station-Wide Announcement",children:[d&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{bold:!0,color:"good",mb:1,children:"ID Verified. Authentication Accepted."}),(0,o.createComponentVNode)(2,a.Section,{title:"Message",mt:1,maxHeight:"200px",scrollable:!0,buttons:(0,o.createComponentVNode)(2,a.Button,{ml:1,icon:"pen",onClick:function(){return r("writeAnnouncement")},children:"Edit"}),children:l||"No Message"})],4)||(0,o.createComponentVNode)(2,a.Box,{bold:!0,color:"bad",mb:1,children:"Swipe your ID card to authenticate yourself."}),(0,o.createComponentVNode)(2,a.Button,{disabled:!l||!d,icon:"share",onClick:function(){return r("sendAnnouncement")},children:"Announce"}),(0,o.createComponentVNode)(2,a.Button,{icon:"undo",onClick:function(){return r("setScreen",{setScreen:0})},children:"Back"})]})}};n.RequestConsole=function(e,n){var t=(0,c.useBackend)(n),r=t.act,l=t.data,s=l.screen,u=l.newmessagepriority,m=l.announcementConsole,p=d[s];return(0,o.createComponentVNode)(2,i.Window,{width:520,height:410,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Tabs,{children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:6===s,onClick:function(){return r("setScreen",{setScreen:6})},icon:"envelope-open-text",children:"Messages"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:1===s,onClick:function(){return r("setScreen",{setScreen:1})},icon:"share-square",children:"Assistance"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:2===s,onClick:function(){return r("setScreen",{setScreen:2})},icon:"share-square",children:"Supplies"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:3===s,onClick:function(){return r("setScreen",{setScreen:3})},icon:"share-square-o",children:"Report"}),m&&(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:8===s,onClick:function(){return r("setScreen",{setScreen:8})},icon:"volume-up",children:"Announce"})||null,(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:0===s,onClick:function(){return r("setScreen",{setScreen:0})},icon:"cog"})]}),u&&(0,o.createComponentVNode)(2,a.Section,{title:u>1?"NEW PRIORITY MESSAGES":"There are new messages!",color:u>1?"bad":"average",bold:u>1})||null,(0,o.createComponentVNode)(2,p)]})})}},48639:function(e,n,t){"use strict";n.__esModule=!0,n.ResearchConsole=void 0;var o=t(39812),r=t(2497),c=t(71494),a=t(74814),i=t(85952),l=function(e,n){var t=(0,c.useBackend)(n).data,o=e.title,r=t[e.target];return"number"==typeof r?o+" - Page "+(r+1):o},d=function(e,n){var t=(0,c.useBackend)(n).act,r=e.target;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"undo",onClick:function(){return t(r,{reset:!0})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"chevron-left",onClick:function(){return t(r,{reverse:-1})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"chevron-right",onClick:function(){return t(r,{reverse:1})}})],4)},s=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.info.tech,l=e.disk;if(!l||!l.present)return null;var d=(0,c.useSharedState)(n,"saveDialogTech",!1),s=d[0],u=d[1];return s?(0,o.createComponentVNode)(2,a.Section,{title:"Load Technology to Disk",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-left",content:"Back",onClick:function(){return u(!1)}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:i.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name,children:(0,o.createComponentVNode)(2,a.Button,{icon:"save",onClick:function(){u(!1),r("copy_tech",{copy_tech_ID:e.id})},children:"Copy To Disk"})},e.name)}))})}):(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Disk Contents",children:"(Technology Data Disk)"})}),l.stored&&(0,o.createComponentVNode)(2,a.Box,{mt:2,children:[(0,o.createComponentVNode)(2,a.Box,{children:l.name}),(0,o.createComponentVNode)(2,a.Box,{children:["Level: ",l.level]}),(0,o.createComponentVNode)(2,a.Box,{children:["Description: ",l.desc]}),(0,o.createComponentVNode)(2,a.Box,{mt:1,children:[(0,o.createComponentVNode)(2,a.Button,{icon:"save",onClick:function(){return r("updt_tech")},children:"Upload to Database"}),(0,o.createComponentVNode)(2,a.Button,{icon:"trash",onClick:function(){return r("clear_tech")},children:"Clear Disk"}),(0,o.createComponentVNode)(2,a.Button,{icon:"eject",onClick:function(){return r("eject_tech")},children:"Eject Disk"})]})]})||(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Box,{children:"This disk has no data stored on it."}),(0,o.createComponentVNode)(2,a.Button,{icon:"save",onClick:function(){return u(!0)},children:"Load Tech To Disk"}),(0,o.createComponentVNode)(2,a.Button,{icon:"eject",onClick:function(){return r("eject_tech")},children:"Eject Disk"})]})]})},u=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,s=i.info.designs,u=e.disk;if(!u||!u.present)return null;var m=(0,c.useSharedState)(n,"saveDialogData",!1),p=m[0],C=m[1];return p?(0,o.createComponentVNode)(2,a.Section,{title:(0,o.createComponentVNode)(2,l,{title:"Load Design to Disk",target:"design_page"}),buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-left",content:"Back",onClick:function(){return C(!1)}}),(0,o.createComponentVNode)(2,d,{target:"design_page"})||null],0),children:[(0,o.createComponentVNode)(2,a.Input,{fluid:!0,placeholder:"Search for...",value:i.search,onInput:function(e,n){return r("search",{search:n})},mb:1}),(0,o.createComponentVNode)(2,a.LabeledList,{children:s.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name,children:(0,o.createComponentVNode)(2,a.Button,{icon:"save",onClick:function(){C(!1),r("copy_design",{copy_design_ID:e.id})},children:"Copy To Disk"})},e.name)}))})]}):(0,o.createComponentVNode)(2,a.Box,{children:u.stored&&(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:u.name}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Lathe Type",children:u.build_type}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Required Materials",children:Object.keys(u.materials).map((function(e){return(0,o.createComponentVNode)(2,a.Box,{children:[e," x ",u.materials[e]]},e)}))})]}),(0,o.createComponentVNode)(2,a.Box,{mt:1,children:[(0,o.createComponentVNode)(2,a.Button,{icon:"save",onClick:function(){return r("updt_design")},children:"Upload to Database"}),(0,o.createComponentVNode)(2,a.Button,{icon:"trash",onClick:function(){return r("clear_design")},children:"Clear Disk"}),(0,o.createComponentVNode)(2,a.Button,{icon:"eject",onClick:function(){return r("eject_design")},children:"Eject Disk"})]})]})||(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Box,{mb:.5,children:"This disk has no data stored on it."}),(0,o.createComponentVNode)(2,a.Button,{icon:"save",onClick:function(){return C(!0)},children:"Load Design To Disk"}),(0,o.createComponentVNode)(2,a.Button,{icon:"eject",onClick:function(){return r("eject_design")},children:"Eject Disk"})]})})},m=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,s=e.target,u=e.designs,m=e.buildName,p=e.buildFiveName;return s?(0,o.createComponentVNode)(2,a.Section,{title:(0,o.createComponentVNode)(2,l,{target:"builder_page",title:"Designs"}),buttons:(0,o.createComponentVNode)(2,d,{target:"builder_page"}),children:[(0,o.createComponentVNode)(2,a.Input,{fluid:!0,placeholder:"Search for...",value:i.search,onInput:function(e,n){return r("search",{search:n})},mb:1}),u&&u.length?u.map((function(e){return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Flex,{width:"100%",justify:"space-between",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{width:"40%",style:{"word-wrap":"break-all"},children:e.name}),(0,o.createComponentVNode)(2,a.Flex.Item,{width:"15%",textAlign:"center",children:[(0,o.createComponentVNode)(2,a.Button,{mb:-1,icon:"wrench",onClick:function(){return r(m,{build:e.id,imprint:e.id})},children:"Build"}),p&&(0,o.createComponentVNode)(2,a.Button,{mb:-1,onClick:function(){return r(p,{build:e.id,imprint:e.id})},children:"x5"})]}),(0,o.createComponentVNode)(2,a.Flex.Item,{width:"45%",style:{"word-wrap":"break-all"},children:[(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:"label",children:e.mat_list.join(" ")}),(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:"average",ml:1,children:e.chem_list.join(" ")})]})]}),(0,o.createComponentVNode)(2,a.Divider)],4,e.id)})):(0,o.createComponentVNode)(2,a.Box,{children:"No items could be found matching the parameters (page or search)."})]}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Error"})},p=function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data,d=e.name,s=null,u=null;if("Protolathe"===d?(s=l.info.linked_lathe,u=l.lathe_designs):(s=l.info.linked_imprinter,u=l.imprinter_designs),!s||!s.present)return(0,o.createComponentVNode)(2,a.Section,{title:d,children:["No ",d," found."]});var p=s,C=p.total_materials,h=p.max_materials,N=p.total_volume,V=p.max_volume,b=p.busy,f=p.mats,g=p.reagents,k=p.queue,v=(0,c.useSharedState)(n,"protoTab",0),B=v[0],L=v[1],_="transparent",x=!1,w="layer-group";b?(w="hammer",_="average",x=!0):k&&k.length&&(w="sync",_="green",x=!0);var S="Protolathe"===d?"removeP":"removeI",I="Protolathe"===d?"lathe_ejectsheet":"imprinter_ejectsheet",y="Protolathe"===d?"disposeP":"disposeI",T="Protolathe"===d?"disposeallP":"disposeallI";return(0,o.createComponentVNode)(2,a.Section,{title:d,buttons:b&&(0,o.createComponentVNode)(2,a.Icon,{name:"sync",spin:!0})||null,children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Materials",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:C,maxValue:h,children:[C," cm\xb3 / ",h," cm\xb3"]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Chemicals",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:N,maxValue:V,children:[N,"u / ",V,"u"]})})]}),(0,o.createComponentVNode)(2,a.Tabs,{mt:1,children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:"wrench",selected:0===B,onClick:function(){return L(0)},children:"Build"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:w,iconSpin:x,color:_,selected:1===B,onClick:function(){return L(1)},children:"Queue"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:"cookie-bite",selected:2===B,onClick:function(){return L(2)},children:"Mat Storage"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:"flask",selected:3===B,onClick:function(){return L(3)},children:"Chem Storage"})]}),0===B&&(0,o.createComponentVNode)(2,m,{target:s,designs:u,buildName:"Protolathe"===d?"build":"imprint",buildFiveName:"Protolathe"===d?"buildfive":null})||1===B&&(0,o.createComponentVNode)(2,a.LabeledList,{children:k.length&&k.map((function(e){return 1===e.index?(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name,labelColor:"bad",children:b?(0,o.createComponentVNode)(2,a.Button,{disabled:!0,icon:"trash",children:"Remove"}):(0,o.createComponentVNode)(2,a.Box,{children:["(Awaiting Materials)",(0,o.createComponentVNode)(2,a.Button,{ml:1,icon:"trash",onClick:function(){var n;return i(S,((n={})[S]=e.index,n))},children:"Remove"})]})}):(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name,children:(0,o.createComponentVNode)(2,a.Button,{icon:"trash",onClick:function(){var n;return i(S,((n={})[S]=e.index,n))},children:"Remove"})},e.name)}))||(0,o.createComponentVNode)(2,a.Box,{m:1,children:"Queue Empty."})})||2===B&&(0,o.createComponentVNode)(2,a.LabeledList,{children:f.map((function(e){var t=(0,c.useLocalState)(n,"ejectAmt"+e.name,0),l=t[0],d=t[1];return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:(0,r.toTitleCase)(e.name),buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.NumberInput,{minValue:0,width:"100px",value:l,maxValue:e.sheets,onDrag:function(e,n){return d(n)}}),(0,o.createComponentVNode)(2,a.Button,{icon:"eject",disabled:!e.removable,onClick:function(){var n;d(0),i(I,((n={})[I]=e.name,n.amount=l,n))},children:"Num"}),(0,o.createComponentVNode)(2,a.Button,{icon:"eject",disabled:!e.removable,onClick:function(){var n;return i(I,((n={})[I]=e.name,n.amount=50,n))},children:"All"})],4),children:[e.amount," cm\xb3"]},e.name)}))})||3===B&&(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:g.length&&g.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name,children:[e.volume,"u",(0,o.createComponentVNode)(2,a.Button,{ml:1,icon:"eject",onClick:function(){return i(y,{dispose:e.id})},children:"Purge"})]},e.name)}))||(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Empty",children:"No chems detected"})}),(0,o.createComponentVNode)(2,a.Button,{mt:1,icon:"trash",onClick:function(){return i(T)},children:"Disposal All Chemicals In Storage"})]})||(0,o.createComponentVNode)(2,a.Box,{children:"Error"})]})},C=[{name:"Protolathe",icon:"wrench",template:(0,o.createComponentVNode)(2,p,{name:"Protolathe"})},{name:"Circuit Imprinter",icon:"digital-tachograph",template:(0,o.createComponentVNode)(2,p,{name:"Circuit Imprinter"})},{name:"Destructive Analyzer",icon:"eraser",template:(0,o.createComponentVNode)(2,(function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.info.linked_destroy;if(!i.present)return(0,o.createComponentVNode)(2,a.Section,{title:"Destructive Analyzer",children:"No destructive analyzer found."});var l=i.loaded_item,d=i.origin_tech;return(0,o.createComponentVNode)(2,a.Section,{title:"Destructive Analyzer",children:l&&(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:l}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Origin Tech",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:d.length&&d.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name,children:[e.level,"\xa0\xa0",e.current&&"(Current: "+e.current+")"]},e.name)}))||(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Error",children:"No origin tech found."})})})]}),(0,o.createComponentVNode)(2,a.Button,{mt:1,color:"red",icon:"eraser",onClick:function(){return r("deconstruct")},children:"Deconstruct Item"}),(0,o.createComponentVNode)(2,a.Button,{icon:"eject",onClick:function(){return r("eject_item")},children:"Eject Item"})]})||(0,o.createComponentVNode)(2,a.Box,{children:"No Item Loaded. Standing-by..."})})}))},{name:"Settings",icon:"cog",template:(0,o.createComponentVNode)(2,(function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.info,l=i.sync,d=i.linked_destroy,s=i.linked_imprinter,u=i.linked_lathe,m=(0,c.useSharedState)(n,"settingsTab",0),p=m[0],C=m[1];return(0,o.createComponentVNode)(2,a.Section,{title:"Settings",children:[(0,o.createComponentVNode)(2,a.Tabs,{children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:"cogs",onClick:function(){return C(0)},selected:0===p,children:"General"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:"link",onClick:function(){return C(1)},selected:1===p,children:"Device Linkages"})]}),0===p&&(0,o.createComponentVNode)(2,a.Box,{children:[l&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"sync",onClick:function(){return r("sync")},children:"Sync Database with Network"}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"unlink",onClick:function(){return r("togglesync")},children:"Disconnect from Research Network"})],4)||(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"link",onClick:function(){return r("togglesync")},children:"Connect to Research Network"}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"lock",onClick:function(){return r("lock")},children:"Lock Console"}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"red",icon:"trash",onClick:function(){return r("reset")},children:"Reset R&D Database"})]})||1===p&&(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"sync",mb:1,onClick:function(){return r("find_device")},children:"Re-sync with Nearby Devices"}),(0,o.createComponentVNode)(2,a.LabeledList,{children:[d.present&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Destructive Analyzer",children:(0,o.createComponentVNode)(2,a.Button,{icon:"unlink",onClick:function(){return r("disconnect",{disconnect:"destroy"})},children:"Disconnect"})})||null,u.present&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Protolathe",children:(0,o.createComponentVNode)(2,a.Button,{icon:"unlink",onClick:function(){return r("disconnect",{disconnect:"lathe"})},children:"Disconnect"})})||null,s.present&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Circuit Imprinter",children:(0,o.createComponentVNode)(2,a.Button,{icon:"unlink",onClick:function(){return r("disconnect",{disconnect:"imprinter"})},children:"Disconnect"})})||null]})]})||(0,o.createComponentVNode)(2,a.Box,{children:"Error"})]})}))},{name:"Research List",icon:"flask",template:(0,o.createComponentVNode)(2,(function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.tech;return(0,o.createComponentVNode)(2,a.Section,{title:"Current Research Levels",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"print",onClick:function(){return r("print",{print:1})},children:"Print This Page"}),children:(0,o.createComponentVNode)(2,a.Table,{children:i.map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:[(0,o.createComponentVNode)(2,a.Box,{color:"label",children:e.name}),(0,o.createComponentVNode)(2,a.Box,{children:[" - Level ",e.level]})]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Box,{color:"label",children:e.desc})})]},e.name)}))})})}))},{name:"Design List",icon:"file",template:(0,o.createComponentVNode)(2,(function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,s=i.designs;return(0,o.createComponentVNode)(2,a.Section,{title:(0,o.createComponentVNode)(2,l,{title:"Researched Technologies & Designs",target:"design_page"}),buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"print",onClick:function(){return r("print",{print:2})},children:"Print This Page"}),(0,o.createComponentVNode)(2,d,{target:"design_page"})||null],0),children:[(0,o.createComponentVNode)(2,a.Input,{fluid:!0,placeholder:"Search for...",value:i.search,onInput:function(e,n){return r("search",{search:n})},mb:1}),s&&s.length&&(0,o.createComponentVNode)(2,a.LabeledList,{children:s.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name,children:e.desc},e.name)}))})||(0,o.createComponentVNode)(2,a.Box,{color:"warning",children:"No designs found."})]})}))},{name:"Disk Operations",icon:"save",template:(0,o.createComponentVNode)(2,(function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data.info),i=r.d_disk,l=r.t_disk;return i.present||l.present?(0,o.createComponentVNode)(2,a.Section,{title:"Disk Operations",children:[(0,o.createComponentVNode)(2,s,{disk:l}),(0,o.createComponentVNode)(2,u,{disk:i})]}):(0,o.createComponentVNode)(2,a.Section,{title:"Disk Operations",children:"No disk inserted."})}))}];n.ResearchConsole=function(e,n){var t=(0,c.useBackend)(n),r=t.act,l=t.data,d=l.busy_msg,s=l.locked,u=(0,c.useSharedState)(n,"rdmenu",0),m=u[0],p=u[1],h=!1;return(d||s)&&(h=!0),(0,o.createComponentVNode)(2,i.Window,{width:850,height:630,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Tabs,{children:C.map((function(e,n){return(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:e.icon,selected:m===n,disabled:h,onClick:function(){return p(n)},children:e.name},n)}))}),d&&(0,o.createComponentVNode)(2,a.Section,{title:"Processing...",children:d})||s&&(0,o.createComponentVNode)(2,a.Section,{title:"Console Locked",children:(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return r("lock")},icon:"lock-open",children:"Unlock"})})||C[m].template]})})}},35606:function(e,n,t){"use strict";n.__esModule=!0,n.ResearchServerController=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=t(64499);n.ResearchServerController=function(e,n){var t=(0,r.useBackend)(n);t.act,t.data;return(0,o.createComponentVNode)(2,a.Window,{width:575,height:430,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,l)})})};var l=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data),i=(a.badmin,a.servers),l=(a.consoles,(0,r.useSharedState)(n,"selectedServer",null)),s=l[0],u=l[1],m=i.find((function(e){return e.id===s}));return m?(0,o.createComponentVNode)(2,d,{setSelectedServer:u,server:m}):(0,o.createComponentVNode)(2,c.Section,{title:"Server Selection",children:i.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"eye",onClick:function(){return u(e.id)},children:e.name})},e.name)}))})},d=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data.badmin),i=e.server,l=e.setSelectedServer,d=(0,r.useSharedState)(n,"tab",0),p=d[0],C=d[1];return(0,o.createComponentVNode)(2,c.Section,{title:i.name,buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"undo",onClick:function(){return l(null)},children:"Back"}),children:[(0,o.createComponentVNode)(2,c.Tabs,{children:[(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:0===p,onClick:function(){return C(0)},children:"Access Rights"}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:1===p,onClick:function(){return C(1)},children:"Data Management"}),a&&(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:2===p,onClick:function(){return C(2)},color:"red",children:"Server-to-Server Transfer"})||null]}),0===p&&(0,o.createComponentVNode)(2,s,{server:i})||null,1===p&&(0,o.createComponentVNode)(2,u,{server:i})||null,2===p&&a&&(0,o.createComponentVNode)(2,m,{server:i})||null]})},s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=e.server,d=i.consoles,s=function(e,n){return-1!==e.id_with_upload.indexOf(n.id)},u=function(e,n){return-1!==e.id_with_download.indexOf(n.id)};return(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Consoles",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:d.length&&d.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name+" ("+e.loc+")",children:[(0,o.createComponentVNode)(2,c.Button,{icon:s(l,e)?"lock-open":"lock",selected:s(l,e),onClick:function(){return a("toggle_upload",{server:l.ref,console:e.ref})},children:s(l,e)?"Upload On":"Upload Off"}),(0,o.createComponentVNode)(2,c.Button,{icon:u(l,e)?"lock-open":"lock",selected:u(l,e),onClick:function(){return a("toggle_download",{server:l.ref,console:e.ref})},children:u(l,e)?"Download On":"Download Off"})]},e.name)}))})})},u=function(e,n){var t=(0,r.useBackend)(n),a=t.act,l=(t.data,e.server);return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Research Levels",children:l.tech.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name,buttons:(0,o.createComponentVNode)(2,c.Button.Confirm,{icon:"trash",confirmIcon:"trash",color:"red",content:"Reset",onClick:function(){return a("reset_tech",{server:l.ref,tech:e.id})}})},e.name)}))}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Designs",children:(0,i.filter)((function(e){return!!e.name}))(l.designs).map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name,buttons:(0,o.createComponentVNode)(2,c.Button.Confirm,{icon:"trash",confirmIcon:"trash",color:"red",content:"Delete",onClick:function(){return a("reset_design",{server:l.ref,design:e.id})}})},e.name)}))})],4)},m=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=e.server,d=i.badmin,s=i.servers;return d?(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Server Data Transfer",children:s.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Button.Confirm,{fluid:!0,color:"bad",content:(0,o.createComponentVNode)(2,c.Box,{children:["Transfer from ",l.name," To ",e.name]}),onClick:function(){return a("transfer_data",{server:l.ref,target:e.ref})}})},e.name)}))}):null}},86330:function(e,n,t){"use strict";n.__esModule=!0,n.ResleevingConsole=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=(t(76270),t(16007)),l=t(85952),d=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=(t.data,e.args),l=i.activerecord,d=i.realname,s=i.obviously_dead,u=i.oocnotes,m=i.can_sleeve_active;return(0,o.createComponentVNode)(2,a.Section,{level:2,m:"-1rem",pb:"1rem",title:"Mind Record ("+d+")",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"times",color:"red",onClick:function(){return r("modal_close")}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:d}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",children:s}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Actions",children:[(0,o.createComponentVNode)(2,a.Button,{disabled:!m,icon:"user-plus",content:"Sleeve",onClick:function(){return r("sleeve",{ref:l,mode:1})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"user-plus",content:"Card",onClick:function(){return r("sleeve",{ref:l,mode:2})}})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"OOC Notes",children:(0,o.createComponentVNode)(2,a.Section,{style:{"word-break":"break-all",height:"100px"},scrollable:!0,children:u})})]})})},s=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=(t.data,e.args),l=i.activerecord,d=i.realname,s=i.species,u=i.sex,m=i.mind_compat,p=i.synthetic,C=i.oocnotes,h=i.can_grow_active;return(0,o.createComponentVNode)(2,a.Section,{level:2,m:"-1rem",pb:"1rem",title:"Body Record ("+d+")",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"times",color:"red",onClick:function(){return r("modal_close")}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:d}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Species",children:s}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Bio. Sex",children:u}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Mind Compat",children:m}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Synthetic",children:p?"Yes":"No"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"OOC Notes",children:(0,o.createComponentVNode)(2,a.Section,{style:{"word-break":"break-all",height:"100px"},scrollable:!0,children:C})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Actions",children:(0,o.createComponentVNode)(2,a.Button,{disabled:!h,icon:"user-plus",content:p?"Build":"Grow",onClick:function(){return r("create",{ref:l})}})})]})})};n.ResleevingConsole=function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data),h=(r.menu,r.coredumped),N=r.emergency,V=(0,o.createFragment)([(0,o.createComponentVNode)(2,g),(0,o.createComponentVNode)(2,k),(0,o.createComponentVNode)(2,u),(0,o.createComponentVNode)(2,a.Section,{noTopPadding:!0,flexGrow:"1",children:(0,o.createComponentVNode)(2,m)})],4);return h&&(V=(0,o.createComponentVNode)(2,p)),N&&(V=(0,o.createComponentVNode)(2,C)),(0,i.modalRegisterBodyOverride)("view_b_rec",s),(0,i.modalRegisterBodyOverride)("view_m_rec",d),(0,o.createComponentVNode)(2,l.Window,{width:640,height:520,resizable:!0,children:[(0,o.createComponentVNode)(2,i.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),(0,o.createComponentVNode)(2,l.Window.Content,{className:"Layout__content--flexColumn",children:V})]})};var u=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.menu;return(0,o.createComponentVNode)(2,a.Tabs,{children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:1===i,icon:"home",onClick:function(){return r("menu",{num:1})},children:"Main"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:2===i,icon:"folder",onClick:function(){return r("menu",{num:2})},children:"Body Records"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:3===i,icon:"folder",onClick:function(){return r("menu",{num:3})},children:"Mind Records"})]})},m=function(e,n){var t,r=(0,c.useBackend)(n).data,a=r.menu,i=r.bodyrecords,l=r.mindrecords;return 1===a?t=(0,o.createComponentVNode)(2,h):2===a?t=(0,o.createComponentVNode)(2,f,{records:i,actToDo:"view_b_rec"}):3===a&&(t=(0,o.createComponentVNode)(2,f,{records:l,actToDo:"view_m_rec"})),t},p=function(e,n){return(0,o.createComponentVNode)(2,a.Dimmer,{children:(0,o.createComponentVNode)(2,a.Flex,{direction:"column",justify:"space-evenly",align:"center",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Icon,{size:12,color:"bad",name:"exclamation-triangle"})}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,color:"bad",mt:5,children:(0,o.createVNode)(1,"h2",null,"TransCore dump completed. Resleeving offline.",16)})]})})},C=function(e,n){var t=(0,c.useBackend)(n).act;return(0,o.createComponentVNode)(2,a.Dimmer,{textAlign:"center",children:[(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:(0,o.createVNode)(1,"h1",null,"TRANSCORE DUMP",16)}),(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:(0,o.createVNode)(1,"h2",null,"!!WARNING!!",16)}),(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"This will transfer all minds to the dump disk, and the TransCore will be made unusable until post-shift maintenance! This should only be used in emergencies!"}),(0,o.createComponentVNode)(2,a.Box,{mt:4,children:(0,o.createComponentVNode)(2,a.Button,{icon:"eject",content:"Eject Disk",color:"good",onClick:function(){return t("ejectdisk")}})}),(0,o.createComponentVNode)(2,a.Box,{mt:4,children:(0,o.createComponentVNode)(2,a.Button.Confirm,{icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",content:"Core Dump",confirmContent:"Disable Transcore?",color:"bad",onClick:function(){return t("coredump")}})})]})},h=function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data);r.loading,r.scantemp,r.occupant,r.locked,r.can_brainscan,r.scan_mode,r.pods,r.selected_pod;return(0,o.createComponentVNode)(2,a.Section,{title:"Pods",level:"2",children:[(0,o.createComponentVNode)(2,N),(0,o.createComponentVNode)(2,b),(0,o.createComponentVNode)(2,V)]})},N=function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data,d=l.pods,s=l.spods,u=l.selected_pod;return d&&d.length?d.map((function(e,n){var t;return t="cloning"===e.status?(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:"100",value:e.progress/100,ranges:{good:[.75,Infinity],average:[.25,.75],bad:[-Infinity,.25]},mt:"0.5rem",children:(0,o.createComponentVNode)(2,a.Box,{textAlign:"center",children:(0,r.round)(e.progress,0)+"%"})}):"mess"===e.status?(0,o.createComponentVNode)(2,a.Box,{bold:!0,color:"bad",mt:"0.5rem",children:"ERROR"}):(0,o.createComponentVNode)(2,a.Button,{selected:u===e.pod,icon:u===e.pod&&"check",content:"Select",mt:s&&s.length?"2rem":"0.5rem",onClick:function(){return i("selectpod",{ref:e.pod})}}),(0,o.createComponentVNode)(2,a.Box,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,o.createVNode)(1,"img",null,null,1,{src:"pod_"+e.status+".gif",style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,a.Box,{color:"label",children:e.name}),(0,o.createComponentVNode)(2,a.Box,{bold:!0,color:e.biomass>=150?"good":"bad",inline:!0,children:[(0,o.createComponentVNode)(2,a.Icon,{name:e.biomass>=150?"circle":"circle-o"}),"\xa0",e.biomass]}),t]},n)})):null},V=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=i.sleevers,d=i.spods,s=i.selected_sleever;return l&&l.length?l.map((function(e,n){return(0,o.createComponentVNode)(2,a.Box,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,o.createVNode)(1,"img",null,null,1,{src:"sleeve_"+(e.occupied?"occupied":"empty")+".gif",style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,a.Box,{color:e.occupied?"label":"bad",children:e.name}),(0,o.createComponentVNode)(2,a.Button,{selected:s===e.sleever,icon:s===e.sleever&&"check",content:"Select",mt:d&&d.length?"3rem":"1.5rem",onClick:function(){return r("selectsleever",{ref:e.sleever})}})]},n)})):null},b=function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data,d=l.spods,s=l.selected_printer;return d&&d.length?d.map((function(e,n){var t;return t="cloning"===e.status?(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:"100",value:e.progress/100,ranges:{good:[.75,Infinity],average:[.25,.75],bad:[-Infinity,.25]},mt:"0.5rem",children:(0,o.createComponentVNode)(2,a.Box,{textAlign:"center",children:(0,r.round)(e.progress,0)+"%"})}):"mess"===e.status?(0,o.createComponentVNode)(2,a.Box,{bold:!0,color:"bad",mt:"0.5rem",children:"ERROR"}):(0,o.createComponentVNode)(2,a.Button,{selected:s===e.spod,icon:s===e.spod&&"check",content:"Select",mt:"0.5rem",onClick:function(){return i("selectprinter",{ref:e.spod})}}),(0,o.createComponentVNode)(2,a.Box,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,o.createVNode)(1,"img",null,null,1,{src:"synthprinter"+(e.busy?"_working":"")+".gif",style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,a.Box,{color:"label",children:e.name}),(0,o.createComponentVNode)(2,a.Box,{bold:!0,color:e.steel>=15e3?"good":"bad",inline:!0,children:[(0,o.createComponentVNode)(2,a.Icon,{name:e.steel>=15e3?"circle":"circle-o"}),"\xa0",e.steel]}),(0,o.createComponentVNode)(2,a.Box,{bold:!0,color:e.glass>=15e3?"good":"bad",inline:!0,children:[(0,o.createComponentVNode)(2,a.Icon,{name:e.glass>=15e3?"circle":"circle-o"}),"\xa0",e.glass]}),t]},n)})):null},f=function(e,n){var t=(0,c.useBackend)(n).act,r=e.records,i=e.actToDo;return r.length?(0,o.createComponentVNode)(2,a.Box,{mt:"0.5rem",children:r.map((function(e,n){return(0,o.createComponentVNode)(2,a.Button,{icon:"user",mb:"0.5rem",content:e.name,onClick:function(){return t(i,{ref:e.recref})}},n)}))}):(0,o.createComponentVNode)(2,a.Flex,{height:"100%",mt:"0.5rem",children:(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),"No records found."]})})},g=function(e,n){var t,r=(0,c.useBackend)(n),i=r.act,l=r.data.temp;if(l&&l.text&&!(l.text.length<=0)){var d=((t={})[l.style]=!0,t);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.NoticeBox,Object.assign({},d,{children:[(0,o.createComponentVNode)(2,a.Box,{display:"inline-block",verticalAlign:"middle",children:l.text}),(0,o.createComponentVNode)(2,a.Button,{icon:"times-circle",float:"right",onClick:function(){return i("cleartemp")}}),(0,o.createComponentVNode)(2,a.Box,{clear:"both"})]})))}},k=function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data),i=r.pods,l=r.spods,d=r.sleevers;r.autoallowed,r.autoprocess,r.disk;return(0,o.createComponentVNode)(2,a.Section,{title:"Status",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Pods",children:i&&i.length?(0,o.createComponentVNode)(2,a.Box,{color:"good",children:[i.length," connected"]}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"None connected!"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"SynthFabs",children:l&&l.length?(0,o.createComponentVNode)(2,a.Box,{color:"good",children:[l.length," connected"]}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"None connected!"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Sleevers",children:d&&d.length?(0,o.createComponentVNode)(2,a.Box,{color:"good",children:[d.length," Connected"]}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"None connected!"})})]})})}},88359:function(e,n,t){"use strict";n.__esModule=!0,n.ResleevingPod=void 0;var o=t(39812),r=t(85952),c=t(71494),a=t(74814);n.ResleevingPod=function(e,n){var t=(0,c.useBackend)(n).data,i=t.occupied,l=t.name,d=t.health,s=t.maxHealth,u=t.stat,m=t.mindStatus,p=t.mindName,C=t.resleeveSick,h=t.initialSick;return(0,o.createComponentVNode)(2,r.Window,{width:300,height:350,resizeable:!0,children:(0,o.createComponentVNode)(2,r.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{title:"Occupant",children:i?(0,o.createFragment)([(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:l}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Health",children:2===u?(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"DEAD"}):1===u?(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"Unconscious"}):(0,o.createComponentVNode)(2,a.ProgressBar,{ranges:{good:[.5,Infinity],average:[.25,.5],bad:[-Infinity,.25]},value:d/s,children:[d,"%"]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Mind Status",children:m?"Present":"Missing"}),m?(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Mind Occupying",children:p}):""]}),C?(0,o.createComponentVNode)(2,a.Box,{color:"average",mt:3,children:["Warning: Resleeving Sickness detected.",h?(0,o.createFragment)([(0,o.createTextVNode)(" Motion Sickness also detected. Please allow the newly resleeved person a moment to get their bearings. This warning will disappear when Motion Sickness is no longer detected.")],4):""]}):""],0):(0,o.createComponentVNode)(2,a.Box,{bold:!0,m:1,children:"Unoccupied."})})})})}},24455:function(e,n,t){"use strict";n.__esModule=!0,n.RoboticsControlConsole=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.RoboticsControlConsole=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data,s=d.can_hack,u=d.safety,m=d.show_detonate_all,p=d.cyborgs,C=void 0===p?[]:p;return(0,o.createComponentVNode)(2,a.Window,{width:500,height:460,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[!!m&&(0,o.createComponentVNode)(2,c.Section,{title:"Emergency Self Destruct",children:[(0,o.createComponentVNode)(2,c.Button,{icon:u?"lock":"unlock",content:u?"Disable Safety":"Enable Safety",selected:u,onClick:function(){return l("arm",{})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"bomb",disabled:u,content:"Destroy ALL Cyborgs",color:"bad",onClick:function(){return l("nuke",{})}})]}),(0,o.createComponentVNode)(2,i,{cyborgs:C,can_hack:s})]})})};var i=function(e,n){var t=e.cyborgs,a=(e.can_hack,(0,r.useBackend)(n)),i=a.act,l=a.data;return t.length?t.map((function(e){return(0,o.createComponentVNode)(2,c.Section,{title:e.name,buttons:(0,o.createFragment)([!!e.hackable&&!e.emagged&&(0,o.createComponentVNode)(2,c.Button,{icon:"terminal",content:"Hack",color:"bad",onClick:function(){return i("hackbot",{ref:e.ref})}}),(0,o.createComponentVNode)(2,c.Button.Confirm,{icon:e.locked_down?"unlock":"lock",color:e.locked_down?"good":"default",content:e.locked_down?"Release":"Lockdown",disabled:!l.auth,onClick:function(){return i("stopbot",{ref:e.ref})}}),(0,o.createComponentVNode)(2,c.Button.Confirm,{icon:"bomb",content:"Detonate",disabled:!l.auth,color:"bad",onClick:function(){return i("killbot",{ref:e.ref})}})],0),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Status",children:(0,o.createComponentVNode)(2,c.Box,{color:e.status?"bad":e.locked_down?"average":"good",children:e.status?"Not Responding":e.locked_down?"Locked Down":"Nominal"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Location",children:(0,o.createComponentVNode)(2,c.Box,{children:e.locstring})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Integrity",children:(0,o.createComponentVNode)(2,c.ProgressBar,{color:e.health>50?"good":"bad",value:e.health/100})}),"number"==typeof e.charge&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Cell Charge",children:(0,o.createComponentVNode)(2,c.ProgressBar,{color:e.charge>30?"good":"bad",value:e.charge/100})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Cell Capacity",children:(0,o.createComponentVNode)(2,c.Box,{color:e.cell_capacity<3e4?"average":"good",children:e.cell_capacity})})],4)||(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Cell",children:(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No Power Cell"})}),!!e.is_hacked&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Safeties",children:(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"DISABLED"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Module",children:e.module}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Master AI",children:(0,o.createComponentVNode)(2,c.Box,{color:e.synchronization?"default":"average",children:e.synchronization||"None"})})]})},e.ref)})):(0,o.createComponentVNode)(2,c.NoticeBox,{children:"No cyborg units detected within access parameters."})}},52330:function(e,n,t){"use strict";n.__esModule=!0,n.RogueZones=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.RogueZones=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.timeout_percent,s=l.diffstep,u=l.difficulty,m=l.occupied,p=l.scanning,C=l.updated,h=l.debug,N=l.shuttle_location,V=l.shuttle_at_station,b=l.scan_ready,f=l.can_recall_shuttle;return(0,o.createComponentVNode)(2,a.Window,{width:360,height:250,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{title:"Current Area",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Mineral Content",children:u}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Shuttle Location",buttons:f&&(0,o.createComponentVNode)(2,c.Button,{color:"bad",icon:"rocket",onClick:function(){return i("recall_shuttle")},children:"Recall Shuttle"})||null,children:N}),m&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{color:"bad",labelColor:"bad",label:"Personnel",children:["WARNING: Area occupied by ",m," personnel!"]})||(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Personnel",color:"good",children:"No personnel detected."})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Scanner",buttons:(0,o.createComponentVNode)(2,c.Button,{disabled:!b,fluid:!0,icon:"search",onClick:function(){return i("scan_for_new")},children:"Scan For Asteroids"}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Scn Ramestat Core",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:d,maxValue:100,ranges:{good:[100,Infinity],average:[75,100],bad:[-Infinity,75]}})}),p&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Scanning",children:"In progress."})||null,C&&!p&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Info",children:"Updated shuttle destination!"})||null,h&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Debug",labelColor:"bad",children:[(0,o.createComponentVNode)(2,c.Box,{children:["Timeout Percent: ",d]}),(0,o.createComponentVNode)(2,c.Box,{children:["Diffstep: ",s]}),(0,o.createComponentVNode)(2,c.Box,{children:["Difficulty: ",u]}),(0,o.createComponentVNode)(2,c.Box,{children:["Occupied: ",m]}),(0,o.createComponentVNode)(2,c.Box,{children:["Debug: ",h]}),(0,o.createComponentVNode)(2,c.Box,{children:["Shuttle Location: ",N]}),(0,o.createComponentVNode)(2,c.Box,{children:["Shuttle at station: ",V]}),(0,o.createComponentVNode)(2,c.Box,{children:["Scan Ready: ",b]})]})||null]})})]})})}},59412:function(e,n,t){"use strict";n.__esModule=!0,n.RustCoreMonitorContent=n.RustCoreMonitor=void 0;var o=t(39812),r=t(71494),c=t(85952),a=t(74814);n.RustCoreMonitor=function(e,n){return(0,o.createComponentVNode)(2,c.Window,{width:627,height:700,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,i)})})};var i=function(e,n){var t=(0,r.useBackend)(n),c=t.act,i=t.data.cores;return(0,o.createComponentVNode)(2,a.Section,{title:"Cores",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"pencil-alt",content:"Set Tag",onClick:function(){return c("set_tag")}}),children:(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Name"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Position"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Field Status"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Reactant Mode"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Field Instability"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Field Temperature"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Field Strength"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Plasma Content"})]}),i.map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:[e.x,", ",e.y,", ",e.z]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",content:e.has_field?"Online":"Offline",selected:e.has_field,disabled:!e.core_operational,onClick:function(){return c("toggle_active",{core:e.ref})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",content:e.reactant_dump?"Dump":"Maintain",selected:e.has_field,disabled:!e.core_operational,onClick:function(){return c("toggle_reactantdump",{core:e.ref})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.field_instability}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.field_temperature}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Knob,{forcedInputWidth:"60px",size:1.25,color:!!e.has_field&&"yellow",value:e.target_field_strength,unit:"(W.m^-3)",minValue:1,maxValue:1e3,stepPixelSize:1,onDrag:function(n,t){return c("set_fieldstr",{core:e.ref,fieldstr:t})}})}),(0,o.createComponentVNode)(2,a.Table.Cell)]},e.name)}))]})})};n.RustCoreMonitorContent=i},59327:function(e,n,t){"use strict";n.__esModule=!0,n.RustFuelContent=n.RustFuelControl=void 0;var o=t(39812),r=t(71494),c=t(85952),a=t(74814);n.RustFuelControl=function(e,n){return(0,o.createComponentVNode)(2,c.Window,{width:627,height:700,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,i)})})};var i=function(e,n){var t=(0,r.useBackend)(n),c=t.act,i=t.data.fuels;return(0,o.createComponentVNode)(2,a.Section,{title:"Fuel Injectors",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"pencil-alt",content:"Set Tag",onClick:function(){return c("set_tag")}}),children:(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Name"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Position"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Status"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Remaining Fuel"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Fuel Rod Composition"})]}),i.map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:[e.x,", ",e.y,", ",e.z]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",content:e.active?"Online":"Offline",selected:e.active,disabled:!e.deployed,onClick:function(){return c("toggle_active",{fuel:e.ref})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.fuel_amt}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.fuel_type})]},e.name)}))]})})};n.RustFuelContent=i},54943:function(e,n,t){"use strict";n.__esModule=!0,n.Secbot=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.Secbot=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.on,s=l.open,u=l.locked,m=l.idcheck,p=l.check_records,C=l.check_arrest,h=l.arrest_type,N=l.declare_arrests,V=l.bot_patrolling,b=l.patrol;return(0,o.createComponentVNode)(2,a.Window,{width:390,height:320,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Automatic Security Unit v2.0",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:d,onClick:function(){return i("power")},children:d?"On":"Off"}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Maintenance Panel",color:s?"bad":"good",children:s?"Open":"Closed"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Behavior Controls",color:u?"good":"bad",children:u?"Locked":"Unlocked"})]})}),!u&&(0,o.createComponentVNode)(2,c.Section,{title:"Behavior Controls",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Check for Weapon Authorization",children:(0,o.createComponentVNode)(2,c.Button,{icon:m?"toggle-on":"toggle-off",selected:m,onClick:function(){return i("idcheck")},children:m?"Yes":"No"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Check Security Records",children:(0,o.createComponentVNode)(2,c.Button,{icon:p?"toggle-on":"toggle-off",selected:p,onClick:function(){return i("ignorerec")},children:p?"Yes":"No"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Check Arrest Status",children:(0,o.createComponentVNode)(2,c.Button,{icon:C?"toggle-on":"toggle-off",selected:C,onClick:function(){return i("ignorearr")},children:C?"Yes":"No"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Operating Mode",children:(0,o.createComponentVNode)(2,c.Button,{icon:h?"toggle-on":"toggle-off",selected:h,onClick:function(){return i("switchmode")},children:h?"Detain":"Arrest"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Report Arrests",children:(0,o.createComponentVNode)(2,c.Button,{icon:N?"toggle-on":"toggle-off",selected:N,onClick:function(){return i("declarearrests")},children:N?"Yes":"No"})}),!!V&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Auto Patrol",children:(0,o.createComponentVNode)(2,c.Button,{icon:b?"toggle-on":"toggle-off",selected:b,onClick:function(){return i("patrol")},children:b?"Yes":"No"})})]})})||null]})})}},57436:function(e,n,t){"use strict";n.__esModule=!0,n.SecureSafe=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.locked,d=i.l_setshort,s=i.code,u=i.emagged;return(0,o.createComponentVNode)(2,c.Box,{width:"185px",children:(0,o.createComponentVNode)(2,c.Grid,{width:"1px",children:[["1","4","7","R"],["2","5","8","0"],["3","6","9","E"]].map((function(e){return(0,o.createComponentVNode)(2,c.Grid.Column,{children:e.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{fluid:!0,bold:!0,mb:"6px",content:e,textAlign:"center",fontSize:"40px",height:"50px",lineHeight:1.25,disabled:!!u||!!d&&1||"R"!==e&&!l||"ERROR"===s&&"R"!==e&&1,onClick:function(){return a("type",{digit:e})}},e)}))},e[0])}))})})};n.SecureSafe=function(e,n){var t=(0,r.useBackend)(n),l=(t.act,t.data),d=l.code,s=l.l_setshort,u=l.l_set,m=l.emagged,p=l.locked,C=!(u||s);return(0,o.createComponentVNode)(2,a.Window,{width:250,height:380,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Box,{m:"6px",children:[C&&(0,o.createComponentVNode)(2,c.NoticeBox,{textAlign:"center",info:1,children:"ENTER NEW 5-DIGIT PASSCODE."}),!!m&&(0,o.createComponentVNode)(2,c.NoticeBox,{textAlign:"center",danger:1,children:"LOCKING SYSTEM ERROR - 1701"}),!!s&&(0,o.createComponentVNode)(2,c.NoticeBox,{textAlign:"center",danger:1,children:"ALERT: MEMORY SYSTEM ERROR - 6040 201"}),(0,o.createComponentVNode)(2,c.Section,{height:"60px",children:(0,o.createComponentVNode)(2,c.Box,{textAlign:"center",position:"center",fontSize:"35px",children:d&&d||(0,o.createComponentVNode)(2,c.Box,{textColor:p?"red":"green",children:p?"LOCKED":"UNLOCKED"})})}),(0,o.createComponentVNode)(2,c.Flex,{ml:"3px",children:[(0,o.createComponentVNode)(2,c.Flex.Item,{children:(0,o.createComponentVNode)(2,i)}),(0,o.createComponentVNode)(2,c.Flex.Item,{ml:"6px",width:"129px"})]})]})})})}},71915:function(e,n,t){"use strict";n.__esModule=!0,n.SecurityRecords=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(16007),i=t(85952),l=t(28117),d=t(1192),s=t(36355),u=(t(2497),function(e,n){(0,a.modalOpen)(e,"edit",{field:n.edit,value:n.value})});n.SecurityRecords=function(e,n){var t,u=(0,r.useBackend)(n).data,h=u.authenticated,N=u.screen;return h?(2===N?t=(0,o.createComponentVNode)(2,m):3===N?t=(0,o.createComponentVNode)(2,p):4===N&&(t=(0,o.createComponentVNode)(2,C)),(0,o.createComponentVNode)(2,i.Window,{width:700,height:680,resizable:!0,children:[(0,o.createComponentVNode)(2,a.ComplexModal,{maxHeight:"100%",maxWidth:"400px"}),(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,l.LoginInfo),(0,o.createComponentVNode)(2,s.TemporaryNotice),(0,o.createComponentVNode)(2,V),(0,o.createComponentVNode)(2,c.Section,{flexGrow:!0,children:t})]})]})):(0,o.createComponentVNode)(2,i.Window,{width:700,height:680,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,d.LoginScreen)})})};var m=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.records;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Input,{fluid:!0,placeholder:"Search by Name, DNA, or ID",onChange:function(e,n){return a("search",{t1:n})}}),(0,o.createComponentVNode)(2,c.Box,{mt:"0.5rem",children:i.map((function(e,n){return(0,o.createComponentVNode)(2,c.Button,{icon:"user",mb:"0.5rem",color:e.color,content:e.id+": "+e.name+" (Criminal Status: "+e.criminal+")",onClick:function(){return a("d_rec",{d_rec:e.ref})}},n)}))})],4)},p=function(e,n){var t=(0,r.useBackend)(n).act;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"download",content:"Backup to Disk",disabled:!0}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Button,{icon:"upload",content:"Upload from Disk",my:"0.5rem",disabled:!0}),(0,o.createTextVNode)(" "),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Button.Confirm,{icon:"trash",content:"Delete All Security Records",onClick:function(){return t("del_all")}})],4)},C=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.security,d=i.printing;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"General Data",mt:"-6px",children:(0,o.createComponentVNode)(2,h)}),(0,o.createComponentVNode)(2,c.Section,{title:"Security Data",children:(0,o.createComponentVNode)(2,N)}),(0,o.createComponentVNode)(2,c.Section,{title:"Actions",children:[(0,o.createComponentVNode)(2,c.Button.Confirm,{icon:"trash",disabled:!!l.empty,content:"Delete Security Record",color:"bad",onClick:function(){return a("del_r")}}),(0,o.createComponentVNode)(2,c.Button.Confirm,{icon:"trash",disabled:!!l.empty,content:"Delete Record (All)",color:"bad",onClick:function(){return a("del_r_2")}}),(0,o.createComponentVNode)(2,c.Button,{icon:d?"spinner":"print",disabled:d,iconSpin:!!d,content:"Print Entry",ml:"0.5rem",onClick:function(){return a("print_p")}}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-left",content:"Back",mt:"0.5rem",onClick:function(){return a("screen",{screen:2})}})]})],4)},h=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.general;return i&&i.fields?(0,o.createComponentVNode)(2,c.Flex,{children:[(0,o.createComponentVNode)(2,c.Flex.Item,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:i.fields.map((function(e,t){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.field,children:[(0,o.createComponentVNode)(2,c.Box,{height:"20px",inline:!0,preserveWhitespace:!0,children:e.value}),!!e.edit&&(0,o.createComponentVNode)(2,c.Button,{icon:"pen",ml:"0.5rem",onClick:function(){return u(n,e)}})]},t)}))})}),(0,o.createComponentVNode)(2,c.Flex.Item,{textAlign:"right",children:[!!i.has_photos&&i.photos.map((function(e,n){return(0,o.createComponentVNode)(2,c.Box,{display:"inline-block",textAlign:"center",color:"label",children:[(0,o.createVNode)(1,"img",null,null,1,{src:e.substr(1,e.length-1),style:{width:"96px","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createVNode)(1,"br"),"Photo #",n+1]},n)})),(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return a("photo_front")},children:"Update Front Photo"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return a("photo_side")},children:"Update Side Photo"})]})]})]}):(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"General records lost!"})},N=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data.security;return l&&l.fields?(0,o.createFragment)([(0,o.createComponentVNode)(2,c.LabeledList,{children:l.fields.map((function(e,t){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.field,preserveWhitespace:!0,children:[e.value,(0,o.createComponentVNode)(2,c.Button,{icon:"pen",ml:"0.5rem",mb:e.line_break?"1rem":"initial",onClick:function(){return u(n,e)}})]},t)}))}),(0,o.createComponentVNode)(2,c.Section,{title:"Comments/Log",children:[0===l.comments.length?(0,o.createComponentVNode)(2,c.Box,{color:"label",children:"No comments found."}):l.comments.map((function(e,n){return(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Box,{color:"label",inline:!0,children:e.header}),(0,o.createVNode)(1,"br"),e.text,(0,o.createComponentVNode)(2,c.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){return i("del_c",{del_c:n+1})}})]},n)})),(0,o.createComponentVNode)(2,c.Button,{icon:"comment",content:"Add Entry",color:"good",mt:"0.5rem",mb:"0",onClick:function(){return(0,a.modalOpen)(n,"add_c")}})]})],4):(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:["Security records lost!",(0,o.createComponentVNode)(2,c.Button,{icon:"pen",content:"New Record",ml:"0.5rem",onClick:function(){return i("new")}})]})},V=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.screen;return(0,o.createComponentVNode)(2,c.Tabs,{children:[(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:2===i,icon:"list",onClick:function(){return a("screen",{screen:2})},children:"List Records"}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{icon:"wrench",selected:3===i,onClick:function(){return a("screen",{screen:3})},children:"Record Maintenance"})]})}},93550:function(e,n,t){"use strict";n.__esModule=!0,n.SeedStorage=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=t(2497),l=t(64499);n.SeedStorage=function(e,n){var t=(0,r.useBackend)(n),d=t.act,s=t.data,u=(s.scanner,s.seeds),m=(0,l.sortBy)((function(e){return e.name.toLowerCase()}))(u);return(0,o.createComponentVNode)(2,a.Window,{width:600,height:760,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,c.Section,{title:"Seeds",children:m.map((function(e){return(0,o.createComponentVNode)(2,c.Flex,{spacing:1,mt:-1,children:[(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"60%",children:(0,o.createComponentVNode)(2,c.Collapsible,{title:(0,i.toTitleCase)(e.name)+" #"+e.uid,children:(0,o.createComponentVNode)(2,c.Section,{width:"165%",title:"Traits",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:Object.keys(e.traits).map((function(n){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:(0,i.toTitleCase)(n),children:e.traits[n]},n)}))})})})}),(0,o.createComponentVNode)(2,c.Flex.Item,{mt:.4,children:[e.amount," Remaining"]}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"download",onClick:function(){return d("vend",{id:e.id})},children:"Vend"})}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"trash",onClick:function(){return d("purge",{id:e.id})},children:"Purge"})})]},e.name+e.uid)}))})})})}},16765:function(e,n,t){"use strict";n.__esModule=!0,n.ShieldCapacitor=void 0;var o=t(39812),r=t(71494),c=t(85952),a=t(74814),i=t(41860),l=t(58083);n.ShieldCapacitor=function(e,n){var t=(0,r.useBackend)(n),d=t.act,s=t.data,u=s.active,m=s.time_since_fail,p=s.stored_charge,C=s.max_charge,h=s.charge_rate,N=s.max_charge_rate;return(0,o.createComponentVNode)(2,c.Window,{width:500,height:400,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{title:"Status",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",selected:u,content:u?"Online":"Offline",onClick:function(){return d("toggle")}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Capacitor Status",children:m>2?(0,o.createComponentVNode)(2,a.Box,{color:"good",children:"OK."}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Discharging!"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Stored Energy",children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:p,format:function(e){return(0,l.formatSiUnit)(e,0,"J")}})," (",(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:100*(0,i.round)(p/C,1)}),"%)"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Charge Rate",children:(0,o.createComponentVNode)(2,a.NumberInput,{value:h,step:100,stepPixelSize:.2,minValue:1e4,maxValue:N,format:function(e){return(0,l.formatPower)(e)},onDrag:function(e,n){return d("charge_rate",{rate:n})}})})]})})})})}},79229:function(e,n,t){"use strict";n.__esModule=!0,n.ShieldGenerator=void 0;var o=t(39812),r=t(71494),c=t(85952),a=t(74814),i=t(41860),l=t(58083),d=t(67861);n.ShieldGenerator=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data.locked);return(0,o.createComponentVNode)(2,c.Window,{width:500,height:400,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:a?(0,o.createComponentVNode)(2,s):(0,o.createComponentVNode)(2,u)})})};var s=function(e,n){return(0,o.createComponentVNode)(2,d.FullscreenNotice,{title:"Locked",children:[(0,o.createComponentVNode)(2,a.Box,{fontSize:"1.5rem",bold:!0,children:(0,o.createComponentVNode)(2,a.Icon,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"})}),(0,o.createComponentVNode)(2,a.Box,{color:"label",my:"1rem",children:"Swipe your ID to begin."})]})},u=function(e,n){var t=(0,r.useBackend)(n),c=t.act,d=t.data.lockedData,s=d.capacitors,u=d.active,m=d.failing,p=d.radius,C=d.max_radius,h=d.z_range,N=d.max_z_range,V=d.average_field_strength,b=d.target_field_strength,f=d.max_field_strength,g=d.shields,k=d.upkeep,v=d.strengthen_rate,B=d.max_strengthen_rate,L=d.gen_power,_=(s||[]).length;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{title:"Status",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Field Status",children:m?(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Unstable"}):(0,o.createComponentVNode)(2,a.Box,{color:"good",children:"Stable"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Overall Field Strength",children:[(0,i.round)(V,2)," Renwick (",b&&(0,i.round)(100*V/b,1)||"NA","%)"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Upkeep Power",children:(0,l.formatPower)(k)}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Shield Generation Power",children:(0,l.formatPower)(L)}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Currently Shielded",children:[g," m\xb2"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Capacitors",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:_?s.map((function(e,n){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Capacitor #"+n,children:[e.active?(0,o.createComponentVNode)(2,a.Box,{color:"good",children:"Online"}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Offline"}),(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Charge",children:[(0,l.formatSiUnit)(e.stored_charge,0,"J")," (",100*(0,i.round)(e.stored_charge/e.max_charge,2),"%)"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",children:e.failing?(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Discharging"}):(0,o.createComponentVNode)(2,a.Box,{color:"good",children:"OK."})})]})]},n)})):(0,o.createComponentVNode)(2,a.LabeledList.Item,{color:"bad",children:"No Capacitors Connected"})})})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Controls",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",content:u?"Online":"Offline",selected:u,onClick:function(){return c("toggle")}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Coverage Radius",children:(0,o.createComponentVNode)(2,a.NumberInput,{fluid:!0,stepPixelSize:6,minValue:0,maxValue:C,value:p,unit:"m",onDrag:function(e,n){return c("change_radius",{val:n})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Vertical Shielding",children:(0,o.createComponentVNode)(2,a.NumberInput,{fluid:!0,stepPixelSize:12,minValue:0,maxValue:N,value:h,unit:"vertical range",onDrag:function(e,n){return c("z_range",{val:n})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Charge Rate",children:(0,o.createComponentVNode)(2,a.NumberInput,{fluid:!0,stepPixelSize:12,minValue:0,step:.1,maxValue:B,value:v,format:function(e){return(0,i.round)(e,1)},unit:"Renwick/s",onDrag:function(e,n){return c("strengthen_rate",{val:n})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Maximum Field Strength",children:(0,o.createComponentVNode)(2,a.NumberInput,{fluid:!0,stepPixelSize:12,minValue:1,maxValue:f,value:b,unit:"Renwick",onDrag:function(e,n){return c("target_field_strength",{val:n})}})})]})})],4)}},89957:function(e,n,t){"use strict";n.__esModule=!0,n.ShutoffMonitorContent=n.ShutoffMonitor=void 0;var o=t(39812),r=t(71494),c=t(85952),a=t(74814);n.ShutoffMonitor=function(e,n){return(0,o.createComponentVNode)(2,c.Window,{width:627,height:700,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,i)})})};var i=function(e,n){var t=(0,r.useBackend)(n),c=t.act,i=t.data.valves;return(0,o.createComponentVNode)(2,a.Section,{title:"Valves",children:(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Name"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Position"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Open"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Mode"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Actions"})]}),i.map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:[e.x,", ",e.y,", ",e.z]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.open?"Yes":"No"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.enabled?"Auto":"Manual"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:[(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",content:e.open?"Opened":"Closed",selected:e.open,disabled:!e.enabled,onClick:function(){return c("toggle_open",{valve:e.ref})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",content:e.enabled?"Auto":"Manual",selected:e.enabled,onClick:function(){return c("toggle_enable",{valve:e.ref})}})]})]},e.name)}))]})})};n.ShutoffMonitorContent=i},34404:function(e,n,t){"use strict";n.__esModule=!0,n.ShuttleControl=void 0;var o=t(39812),r=t(2497),c=t(71494),a=t(74814),i=t(85952),l=function(e,n){var t="ERROR",r="bad",c=!1;return"docked"===e?(t="DOCKED",r="good"):"docking"===e?(t="DOCKING",r="average",c=!0):"undocking"===e?(t="UNDOCKING",r="average",c=!0):"undocked"===e&&(t="UNDOCKED",r="#676767"),c&&n&&(t+="-MANUAL"),(0,o.createComponentVNode)(2,a.Box,{color:r,children:t})},d=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,d=e.engineName,s=void 0===d?"Bluespace Drive":d,u=i.shuttle_status,m=i.shuttle_state,p=i.has_docking,C=i.docking_status,h=i.docking_override,N=i.docking_codes;return(0,o.createComponentVNode)(2,a.Section,{title:"Shuttle Status",children:[(0,o.createComponentVNode)(2,a.Box,{color:"label",mb:1,children:u}),(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:s,children:"idle"===m&&(0,o.createComponentVNode)(2,a.Box,{color:"#676767",bold:!0,children:"IDLE"})||"warmup"===m&&(0,o.createComponentVNode)(2,a.Box,{color:"#336699",children:"SPINNING UP"})||"in_transit"===m&&(0,o.createComponentVNode)(2,a.Box,{color:"#336699",children:"ENGAGED"})||(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"ERROR"})}),p&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Docking Status",children:l(C,h)}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Docking Codes",children:(0,o.createComponentVNode)(2,a.Button,{icon:"pen",onClick:function(){return r("set_codes")},children:N||"Not Set"})})],4)||null]})]})},s=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=i.can_launch,d=i.can_cancel,s=i.can_force;return(0,o.createComponentVNode)(2,a.Section,{title:"Controls",children:(0,o.createComponentVNode)(2,a.Flex,{spacing:1,children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return r("move")},disabled:!l,icon:"rocket",fluid:!0,children:"Launch Shuttle"})}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return r("cancel")},disabled:!d,icon:"ban",fluid:!0,children:"Cancel Launch"})}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return r("force")},color:"bad",disabled:!s,icon:"exclamation-triangle",fluid:!0,children:"Force Launch"})})]})})},u={ShuttleControlConsoleDefault:(0,o.createComponentVNode)(2,(function(e,n){var t=(0,c.useBackend)(n);t.act,t.data;return(0,o.createFragment)([(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,s)],4)})),ShuttleControlConsoleMulti:(0,o.createComponentVNode)(2,(function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=i.can_cloak,u=i.can_pick,m=i.legit,p=i.cloaked,C=i.destination_name;return(0,o.createFragment)([(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,a.Section,{title:"Multishuttle Controls",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[l&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:m?"ATC Inhibitor":"Cloaking",children:(0,o.createComponentVNode)(2,a.Button,{selected:p,icon:p?"eye":"eye-o",onClick:function(){return r("toggle_cloaked")},children:p?"Enabled":"Disabled"})})||null,(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Current Destination",children:(0,o.createComponentVNode)(2,a.Button,{icon:"taxi",disabled:!u,onClick:function(){return r("pick")},children:C})})]})}),(0,o.createComponentVNode)(2,s)],4)})),ShuttleControlConsoleExploration:(0,o.createComponentVNode)(2,(function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=i.can_pick,u=i.destination_name,m=i.fuel_usage,p=i.fuel_span,C=i.remaining_fuel;return(0,o.createFragment)([(0,o.createComponentVNode)(2,d,{engineName:"Engines"}),(0,o.createComponentVNode)(2,a.Section,{title:"Jump Controls",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Current Destination",children:(0,o.createComponentVNode)(2,a.Button,{icon:"taxi",disabled:!l,onClick:function(){return r("pick")},children:u})}),m&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Est. Delta-V Budget",color:p,children:[C," m/s"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Avg. Delta-V Per Maneuver",children:[m," m/s"]})],4)||null]})}),(0,o.createComponentVNode)(2,s)],4)})),ShuttleControlConsoleWeb:(0,o.createComponentVNode)(2,(function(e,n){var t=(0,c.useBackend)(n),i=t.act,d=t.data,s=d.autopilot,u=d.can_rename,m=d.shuttle_state,p=d.is_moving,C=d.skip_docking,h=d.docking_status,N=d.docking_override,V=d.shuttle_location,b=d.can_cloak,f=d.cloaked,g=d.can_autopilot,k=d.routes,v=d.is_in_transit,B=d.travel_progress,L=d.time_left,_=d.doors,x=d.sensors;return(0,o.createFragment)([s&&(0,o.createComponentVNode)(2,a.Section,{title:"AI PILOT (CLASS D) ACTIVE",children:(0,o.createComponentVNode)(2,a.Box,{inline:!0,italic:!0,children:"This vessel will start and stop automatically. Ensure that all non-cycling capable hatches and doors are closed, as the automated system may not be able to control them. Docking and flight controls are locked. To unlock, disable the automated flight system."})})||null,(0,o.createComponentVNode)(2,a.Section,{title:"Shuttle Status",buttons:u&&(0,o.createComponentVNode)(2,a.Button,{icon:"pen",onClick:function(){return i("rename_command")},children:"Rename"})||null,children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Engines",children:"idle"===m&&(0,o.createComponentVNode)(2,a.Box,{color:"#676767",bold:!0,children:"IDLE"})||"warmup"===m&&(0,o.createComponentVNode)(2,a.Box,{color:"#336699",children:"SPINNING UP"})||"in_transit"===m&&(0,o.createComponentVNode)(2,a.Box,{color:"#336699",children:"ENGAGED"})||(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"ERROR"})}),!p&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Current Location",children:(0,r.toTitleCase)(V)}),!C&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Docking Status",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{selected:"docked"===h,disabled:"undocked"!==h&&"docked"!==h,onClick:function(){return i("dock_command")},children:"Dock"}),(0,o.createComponentVNode)(2,a.Button,{selected:"undocked"===h,disabled:"docked"!==h&&"undocked"!==h,onClick:function(){return i("undock_command")},children:"Undock"})],4),children:(0,o.createComponentVNode)(2,a.Box,{bold:!0,inline:!0,children:l(h,N)})})||null,b&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Cloaking",children:(0,o.createComponentVNode)(2,a.Button,{selected:f,icon:f?"eye":"eye-o",onClick:function(){return i("toggle_cloaked")},children:f?"Enabled":"Disabled"})})||null,g&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Autopilot",children:(0,o.createComponentVNode)(2,a.Button,{selected:s,icon:s?"eye":"eye-o",onClick:function(){return i("toggle_autopilot")},children:s?"Enabled":"Disabled"})})||null],0)||null]}),!p&&(0,o.createComponentVNode)(2,a.Section,{level:2,title:"Available Destinations",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:k.length&&k.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name,children:(0,o.createComponentVNode)(2,a.Button,{icon:"rocket",onClick:function(){return i("traverse",{traverse:e.index})},children:e.travel_time})},e.name)}))||(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Error",color:"bad",children:"No routes found."})})})||null]}),v&&(0,o.createComponentVNode)(2,a.Section,{title:"Transit ETA",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Distance from target",children:(0,o.createComponentVNode)(2,a.ProgressBar,{color:"good",minValue:0,maxValue:100,value:B,children:[L,"s"]})})})})||null,Object.keys(_).length&&(0,o.createComponentVNode)(2,a.Section,{title:"Hatch Status",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:Object.keys(_).map((function(e){var n=_[e];return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e,children:[n.open&&(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:"bad",children:"Open"})||(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:"good",children:"Closed"}),"\xa0-\xa0",n.bolted&&(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:"good",children:"Bolted"})||(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:"bad",children:"Unbolted"})]},e)}))})})||null,Object.keys(x).length&&(0,o.createComponentVNode)(2,a.Section,{title:"Sensors",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:Object.keys(x).map((function(e){var n=x[e];return-1!==n.reading?(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e,color:"bad",children:"Unable to get sensor air reading."}):(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e,children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Pressure",children:[n.pressure,"kPa"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Temperature",children:[n.temp,"\xb0C"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Oxygen",children:[n.oxygen,"%"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Nitrogen",children:[n.nitrogen,"%"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Carbon Dioxide",children:[n.carbon_dioxide,"%"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Phoron",children:[n.phoron,"%"]}),n.other&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Other",children:[n.other,"%"]})||null]})},e)}))})})||null],0)}))};n.ShuttleControl=function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data.subtemplate);return(0,o.createComponentVNode)(2,i.Window,{width:470,height:"ShuttleControlConsoleWeb"===r?560:370,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:u[r]})})}},32325:function(e,n,t){"use strict";n.__esModule=!0,n.SignalerContent=n.Signaler=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(85952);n.Signaler=function(e,n){return(0,o.createComponentVNode)(2,i.Window,{width:280,height:132,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,l)})})};var l=function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data,d=l.code,s=l.frequency,u=l.minFrequency,m=l.maxFrequency;return(0,o.createComponentVNode)(2,a.Section,{children:[(0,o.createComponentVNode)(2,a.Grid,{children:[(0,o.createComponentVNode)(2,a.Grid.Column,{size:1.4,color:"label",children:"Frequency:"}),(0,o.createComponentVNode)(2,a.Grid.Column,{children:(0,o.createComponentVNode)(2,a.NumberInput,{animate:!0,unit:"kHz",step:.2,stepPixelSize:6,minValue:u/10,maxValue:m/10,value:s/10,format:function(e){return(0,r.toFixed)(e,1)},width:"80px",onDrag:function(e,n){return i("freq",{freq:n})}})}),(0,o.createComponentVNode)(2,a.Grid.Column,{children:(0,o.createComponentVNode)(2,a.Button,{ml:1.3,icon:"sync",content:"Reset",onClick:function(){return i("reset",{reset:"freq"})}})})]}),(0,o.createComponentVNode)(2,a.Grid,{mt:.6,children:[(0,o.createComponentVNode)(2,a.Grid.Column,{size:1.4,color:"label",children:"Code:"}),(0,o.createComponentVNode)(2,a.Grid.Column,{children:(0,o.createComponentVNode)(2,a.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:d,width:"80px",onDrag:function(e,n){return i("code",{code:n})}})}),(0,o.createComponentVNode)(2,a.Grid.Column,{children:(0,o.createComponentVNode)(2,a.Button,{ml:1.3,icon:"sync",content:"Reset",onClick:function(){return i("reset",{reset:"code"})}})})]}),(0,o.createComponentVNode)(2,a.Grid,{mt:.8,children:(0,o.createComponentVNode)(2,a.Grid.Column,{children:(0,o.createComponentVNode)(2,a.Button,{mb:-.1,fluid:!0,icon:"arrow-up",content:"Send Signal",textAlign:"center",onClick:function(){return i("signal")}})})})]})};n.SignalerContent=l},80646:function(e,n,t){"use strict";n.__esModule=!0,n.Sleeper=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(85952),l=[["good","Alive"],["average","Unconscious"],["bad","DEAD"]],d=[["Resp","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],s={average:[.25,.5],bad:[.5,Infinity]},u=["bad","average","average","good","average","average","bad"];n.Sleeper=function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data.hasOccupant?(0,o.createComponentVNode)(2,m):(0,o.createComponentVNode)(2,V));return(0,o.createComponentVNode)(2,i.Window,{width:550,height:760,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{className:"Layout__content--flexColumn",children:r})})};var m=function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data),a=(r.occupant,r.dialysis),i=r.stomachpumping;return(0,o.createFragment)([(0,o.createComponentVNode)(2,p),(0,o.createComponentVNode)(2,C),(0,o.createComponentVNode)(2,h,{title:"Dialysis",active:a,actToDo:"togglefilter"}),(0,o.createComponentVNode)(2,h,{title:"Stomach Pump",active:i,actToDo:"togglepump"}),(0,o.createComponentVNode)(2,N)],4)},p=function(e,n){var t=(0,c.useBackend)(n),i=t.act,d=t.data,s=d.occupant,m=d.auto_eject_dead,p=d.stasis;return(0,o.createComponentVNode)(2,a.Section,{title:"Occupant",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{color:"label",inline:!0,children:"Auto-eject if dead:\xa0"}),(0,o.createComponentVNode)(2,a.Button,{icon:m?"toggle-on":"toggle-off",selected:m,content:m?"On":"Off",onClick:function(){return i("auto_eject_dead_"+(m?"off":"on"))}}),(0,o.createComponentVNode)(2,a.Button,{icon:"user-slash",content:"Eject",onClick:function(){return i("ejectify")}}),(0,o.createComponentVNode)(2,a.Button,{content:p,onClick:function(){return i("changestasis")}})],4),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:s.name}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Health",children:(0,o.createComponentVNode)(2,a.ProgressBar,{min:0,max:s.maxHealth,value:s.health/s.maxHealth,ranges:{good:[.5,Infinity],average:[0,.5],bad:[-Infinity,0]},children:(0,r.round)(s.health,0)})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",color:l[s.stat][0],children:l[s.stat][1]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Temperature",children:(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:s.maxTemp,value:s.bodyTemperature/s.maxTemp,color:u[s.temperatureSuitability+3],children:[(0,r.round)(s.btCelsius,0),"\xb0C,",(0,r.round)(s.btFaren,0),"\xb0F"]})}),!!s.hasBlood&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Blood Level",children:(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:s.bloodMax,value:s.bloodLevel/s.bloodMax,ranges:{bad:[-Infinity,.6],average:[.6,.9],good:[.6,Infinity]},children:[s.bloodPercent,"%, ",s.bloodLevel,"cl"]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Pulse",verticalAlign:"middle",children:[s.pulse," BPM"]})],4)]})})},C=function(e,n){var t=(0,c.useBackend)(n).data.occupant;return(0,o.createComponentVNode)(2,a.Section,{title:"Damage",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:d.map((function(e,n){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e[0],children:(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:"100",value:t[e[1]]/100,ranges:s,children:(0,r.round)(t[e[1]],0)},n)},n)}))})})},h=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=i.isBeakerLoaded,d=i.beakerMaxSpace,s=i.beakerFreeSpace,u=e.active,m=e.actToDo,p=e.title,C=u&&s>0;return(0,o.createComponentVNode)(2,a.Section,{title:p,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{disabled:!l||s<=0,selected:C,icon:C?"toggle-on":"toggle-off",content:C?"Active":"Inactive",onClick:function(){return r(m)}}),(0,o.createComponentVNode)(2,a.Button,{disabled:!l,icon:"eject",content:"Eject",onClick:function(){return r("removebeaker")}})],4),children:l?(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Remaining Space",children:(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:d,value:s/d,ranges:{good:[.5,Infinity],average:[.25,.5],bad:[-Infinity,.25]},children:[s,"u"]})})}):(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"No beaker loaded."})})},N=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=i.occupant,d=i.chemicals,s=i.maxchem,u=i.amounts;return(0,o.createComponentVNode)(2,a.Section,{title:"Chemicals",flexGrow:"1",children:d.map((function(e,n){var t,c="";return e.overdosing?(c="bad",t=(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"exclamation-circle"}),"\xa0 Overdosing!"]})):e.od_warning&&(c="average",t=(0,o.createComponentVNode)(2,a.Box,{color:"average",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"exclamation-triangle"}),"\xa0 Close to overdosing"]})),(0,o.createComponentVNode)(2,a.Box,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,o.createComponentVNode)(2,a.Section,{title:e.title,level:"3",mx:"0",lineHeight:"18px",buttons:t,children:(0,o.createComponentVNode)(2,a.Flex,{align:"flex-start",children:[(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:s,value:e.occ_amount/s,color:c,mr:"0.5rem",children:[e.pretty_amount,"/",s,"u"]}),u.map((function(n,t){return(0,o.createComponentVNode)(2,a.Button,{disabled:!e.injectable||e.occ_amount+n>s||2===l.stat,icon:"syringe",content:n,mb:"0",height:"19px",onClick:function(){return r("chemical",{chemid:e.id,amount:n})}},t)}))]})})},n)}))})},V=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.isBeakerLoaded;return(0,o.createComponentVNode)(2,a.Section,{textAlign:"center",flexGrow:"1",children:(0,o.createComponentVNode)(2,a.Flex,{height:"100%",children:(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",align:"center",color:"label",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),"No occupant detected.",i&&(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.Button,{icon:"eject",content:"Remove Beaker",onClick:function(){return r("removebeaker")}})})||null]})})})}},55896:function(e,n,t){"use strict";n.__esModule=!0,n.SmartVend=void 0;var o=t(39812),r=t(64499),c=t(71494),a=t(74814),i=t(85952);n.SmartVend=function(e,n){var t=(0,c.useBackend)(n),l=t.act,d=t.config,s=t.data;return(0,o.createComponentVNode)(2,i.Window,{width:440,height:550,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.Section,{title:"Storage",children:[s.secure&&(0,o.createComponentVNode)(2,a.NoticeBox,{danger:-1===s.locked,info:-1!==s.locked,children:-1===s.locked?(0,o.createComponentVNode)(2,a.Box,{children:"Sec.re ACC_** //):securi_nt.diag=>##'or 1=1'%($..."}):(0,o.createComponentVNode)(2,a.Box,{children:"Secure Access: Please have your identification ready."})})||null,0===s.contents.length&&(0,o.createComponentVNode)(2,a.NoticeBox,{children:["Unfortunately, this ",d.title," is empty."]})||(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,children:"Item"}),(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,textAlign:"center",children:"Amount"}),(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,textAlign:"center",children:"Dispense"})]}),(0,r.map)((function(e,n){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,children:e.name}),(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,textAlign:"center",children:[e.amount," in stock"]}),(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,children:[(0,o.createComponentVNode)(2,a.Button,{content:"1",disabled:e.amount<1,onClick:function(){return l("Release",{index:e.index,amount:1})}}),(0,o.createComponentVNode)(2,a.Button,{content:"5",disabled:e.amount<5,onClick:function(){return l("Release",{index:e.index,amount:5})}}),(0,o.createComponentVNode)(2,a.Button,{content:"Custom",disabled:e.amount<1,onClick:function(){return l("Release",{index:e.index})}}),(0,o.createComponentVNode)(2,a.Button,{content:"All",disabled:e.amount<1,onClick:function(){return l("Release",{index:e.index,amount:e.amount})}})]})]},n)}))(s.contents)]})]})})})}},20561:function(e,n,t){"use strict";n.__esModule=!0,n.Smes=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(58083),i=t(85952),l=t(41860),d=1e3;n.Smes=function(e,n){var t=(0,r.useBackend)(n),s=t.act,u=t.data,m=u.capacityPercent,p=u.capacity,C=u.charge,h=u.inputAttempt,N=u.inputting,V=u.inputLevel,b=u.inputLevelMax,f=u.inputAvailable,g=u.outputAttempt,k=u.outputting,v=u.outputLevel,B=u.outputLevelMax,L=u.outputUsed,_=(m>=100?"good":N&&"average")||"bad",x=(k?"good":C>0&&"average")||"bad";return(0,o.createComponentVNode)(2,i.Window,{width:340,height:350,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{title:"Stored Energy",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:.01*m,ranges:{good:[.5,Infinity],average:[.15,.5],bad:[-Infinity,.15]},children:[(0,l.round)(C/6e4,1)," kWh / ",(0,l.round)(p/6e4)," kWh (",m,"%)"]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Input",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Charge Mode",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:h?"sync-alt":"times",selected:h,onClick:function(){return s("tryinput")},children:h?"On":"Off"}),children:(0,o.createComponentVNode)(2,c.Box,{color:_,children:(m>=100?"Fully Charged":N&&"Charging")||"Not Charging"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Target Input",children:(0,o.createComponentVNode)(2,c.Flex,{inline:!0,width:"100%",children:[(0,o.createComponentVNode)(2,c.Flex.Item,{children:[(0,o.createComponentVNode)(2,c.Button,{icon:"fast-backward",disabled:0===V,onClick:function(){return s("input",{target:"min"})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"backward",disabled:0===V,onClick:function(){return s("input",{adjust:-1e4})}})]}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,mx:1,children:(0,o.createComponentVNode)(2,c.Slider,{value:V/d,fillValue:f/d,minValue:0,maxValue:b/d,step:5,stepPixelSize:4,format:function(e){return(0,a.formatPower)(e*d,1)},onDrag:function(e,n){return s("input",{target:n*d})}})}),(0,o.createComponentVNode)(2,c.Flex.Item,{children:[(0,o.createComponentVNode)(2,c.Button,{icon:"forward",disabled:V===b,onClick:function(){return s("input",{adjust:1e4})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"fast-forward",disabled:V===b,onClick:function(){return s("input",{target:"max"})}})]})]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Available",children:(0,a.formatPower)(f)})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Output",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Output Mode",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:g?"power-off":"times",selected:g,onClick:function(){return s("tryoutput")},children:g?"On":"Off"}),children:(0,o.createComponentVNode)(2,c.Box,{color:x,children:k?"Sending":C>0?"Not Sending":"No Charge"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Target Output",children:(0,o.createComponentVNode)(2,c.Flex,{inline:!0,width:"100%",children:[(0,o.createComponentVNode)(2,c.Flex.Item,{children:[(0,o.createComponentVNode)(2,c.Button,{icon:"fast-backward",disabled:0===v,onClick:function(){return s("output",{target:"min"})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"backward",disabled:0===v,onClick:function(){return s("output",{adjust:-1e4})}})]}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,mx:1,children:(0,o.createComponentVNode)(2,c.Slider,{value:v/d,minValue:0,maxValue:B/d,step:5,stepPixelSize:4,format:function(e){return(0,a.formatPower)(e*d,1)},onDrag:function(e,n){return s("output",{target:n*d})}})}),(0,o.createComponentVNode)(2,c.Flex.Item,{children:[(0,o.createComponentVNode)(2,c.Button,{icon:"forward",disabled:v===B,onClick:function(){return s("output",{adjust:1e4})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"fast-forward",disabled:v===B,onClick:function(){return s("output",{target:"max"})}})]})]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Outputting",children:(0,a.formatPower)(L)})]})})]})})}},21633:function(e,n,t){"use strict";n.__esModule=!0,n.SolarControl=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=t(41860);n.SolarControl=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data,s=d.generated,u=d.generated_ratio,m=d.sun_angle,p=d.array_angle,C=d.rotation_rate,h=d.max_rotation_rate,N=d.tracking_state,V=d.connected_panels,b=d.connected_tracker;return(0,o.createComponentVNode)(2,a.Window,{width:380,height:230,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{title:"Status",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"sync",content:"Scan for new hardware",onClick:function(){return l("refresh")}}),children:(0,o.createComponentVNode)(2,c.Grid,{children:[(0,o.createComponentVNode)(2,c.Grid.Column,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Solar tracker",color:b?"good":"bad",children:b?"OK":"N/A"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Solar panels",color:V>0?"good":"bad",children:V})]})}),(0,o.createComponentVNode)(2,c.Grid.Column,{size:1.5,children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power output",children:(0,o.createComponentVNode)(2,c.ProgressBar,{ranges:{good:[.66,Infinity],average:[.33,.66],bad:[-Infinity,.33]},minValue:0,maxValue:1,value:u,children:s+" W"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Star orientation",children:[m,"\xb0"]})]})})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Controls",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Tracking",children:[(0,o.createComponentVNode)(2,c.Button,{icon:"times",content:"Off",selected:0===N,onClick:function(){return l("tracking",{mode:0})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"clock-o",content:"Timed",selected:1===N,onClick:function(){return l("tracking",{mode:1})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"sync",content:"Auto",selected:2===N,disabled:!b,onClick:function(){return l("tracking",{mode:2})}})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Azimuth",children:[(0===N||1===N)&&(0,o.createComponentVNode)(2,c.NumberInput,{width:"52px",unit:"\xb0",step:1,stepPixelSize:2,minValue:-360,maxValue:720,value:p,format:function(e){var n=Math.sign(e)>0?" (CW)":" (CCW)";return Math.abs((0,i.round)(e))+n},onDrag:function(e,n){return l("azimuth",{value:n})}}),1===N&&(0,o.createComponentVNode)(2,c.NumberInput,{width:"80px",unit:"deg/h",step:1,minValue:-h-.01,maxValue:h+.01,value:C,format:function(e){var n=Math.sign(e)>0?" (CW)":" (CCW)";return Math.abs((0,i.round)(e))+n},onDrag:function(e,n){return l("azimuth_rate",{value:n})}}),2===N&&(0,o.createComponentVNode)(2,c.Box,{inline:!0,color:"label",mt:"3px",children:[p+"\xb0"," (auto)"]})]})]})})]})})}},57762:function(e,n,t){"use strict";n.__esModule=!0,n.SpaceHeater=void 0;var o=t(39812),r=t(76270),c=t(71494),a=t(74814),i=t(85952);n.SpaceHeater=function(e,n){var t=(0,c.useBackend)(n),l=t.act,d=t.data,s=d.temp,u=d.minTemp,m=d.maxTemp,p=d.cell,C=d.power;return(0,o.createComponentVNode)(2,i.Window,{width:300,height:250,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Section,{title:"Status",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Target Temperature",children:[s," K (",s-r.T0C,"\xb0 C)"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Current Charge",children:[C,"% ",!p&&"(No Cell Inserted)"]})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Controls",children:(0,o.createComponentVNode)(2,a.LabeledControls,{children:[(0,o.createComponentVNode)(2,a.LabeledControls.Item,{label:"Thermostat",children:(0,o.createComponentVNode)(2,a.Knob,{animated:!0,value:s-r.T0C,minValue:u-r.T0C,maxValue:m-r.T0C,unit:"C",onChange:function(e,n){return l("temp",{newtemp:n+r.T0C})}})}),(0,o.createComponentVNode)(2,a.LabeledControls.Item,{label:"Cell",children:p?(0,o.createComponentVNode)(2,a.Button,{icon:"eject",content:"Eject Cell",onClick:function(){return l("cellremove")}}):(0,o.createComponentVNode)(2,a.Button,{icon:"car-battery",content:"Insert Cell",onClick:function(){return l("cellinstall")}})})]})})]})})}},58215:function(e,n,t){"use strict";n.__esModule=!0,n.Stack=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);t(88654);n.Stack=function(e,n){var t=(0,r.useBackend)(n),l=(t.act,t.data),d=l.amount,s=l.recipes;return(0,o.createComponentVNode)(2,a.Window,{width:400,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,c.Section,{title:"Amount: "+d,children:(0,o.createComponentVNode)(2,i,{recipes:s})})})})};var i=function s(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data,e.recipes);return Object.keys(a).sort().map((function(e){var n=a[e];return n.ref===undefined?(0,o.createComponentVNode)(2,c.Collapsible,{ml:1,mb:-.7,color:"label",title:e,children:(0,o.createComponentVNode)(2,c.Box,{ml:1,children:(0,o.createComponentVNode)(2,s,{recipes:n})})}):(0,o.createComponentVNode)(2,d,{title:e,recipe:n})}))},l=function(e,n){for(var t=(0,r.useBackend)(n),a=t.act,i=(t.data,e.recipe),l=e.maxMultiplier,d=Math.min(l,Math.floor(i.max_res_amount/i.res_amount)),s=[5,10,25],u=[],m=function(){var e=C[p];d>=e&&u.push((0,o.createComponentVNode)(2,c.Button,{content:e*i.res_amount+"x",onClick:function(){return a("make",{ref:i.ref,multiplier:e})}}))},p=0,C=s;p1?"s":""),C+=")",u>1&&(C=u+"x "+C);var h=function(e,n){return e.req_amount>n?0:Math.floor(n/e.req_amount)}(d,i);return(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Table,{children:(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,disabled:!h,icon:"wrench",content:C,onClick:function(){return a("make",{ref:d.ref,multiplier:1})}})}),m>1&&h>1&&(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,l,{recipe:d,maxMultiplier:h})})]})})})}},32015:function(e,n,t){"use strict";n.__esModule=!0,n.StationAlertConsoleContent=n.StationAlertConsole=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.StationAlertConsole=function(){return(0,o.createComponentVNode)(2,a.Window,{width:425,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,i)})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.categories;return(void 0===i?[]:i).map((function(e){return(0,o.createComponentVNode)(2,c.Section,{title:e.category,children:(0,o.createVNode)(1,"ul",null,[0===e.alarms.length&&(0,o.createVNode)(1,"li","color-good","Systems Nominal",16),e.alarms.map((function(e){var n="";return e.has_cameras?n=(0,o.createComponentVNode)(2,c.Section,{children:e.cameras.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{disabled:e.deact,content:e.name+(e.deact?" (deactived)":""),icon:"video",onClick:function(){return a("switchTo",{camera:e.camera})}},e.name)}))}):e.lost_sources&&(n=(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:["Lost Alarm Sources: ",e.lost_sources]})),(0,o.createVNode)(1,"li",null,[e.name,e.origin_lost?(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Alarm Origin Lost."}):"",n],0,null,e.name)}))],0)},e.category)}))};n.StationAlertConsoleContent=i},52649:function(e,n,t){"use strict";n.__esModule=!0,n.StationBlueprintsContent=n.StationBlueprints=void 0;var o=t(39812),r=(t(64499),t(85531),t(34380),t(2497),t(71494)),c=t(74814),a=t(85952);n.StationBlueprints=function(e,n){return(0,o.createComponentVNode)(2,a.Window,{width:870,height:708,resizable:!0,children:(0,o.createComponentVNode)(2,i)})};var i=function(e,n){var t=(0,r.useBackend)(n),i=(t.act,t.data),l=(t.config,i.mapRef);i.areas,i.turfs;return(0,o.createFragment)([(0,o.createVNode)(1,"div","CameraConsole__left",(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:"Honk!"}),2),(0,o.createVNode)(1,"div","CameraConsole__right",(0,o.createComponentVNode)(2,c.ByondUi,{className:"CameraConsole__map",params:{id:l,type:"map"}}),2)],4)};n.StationBlueprintsContent=i},72e3:function(e,n,t){"use strict";n.__esModule=!0,n.SuitCycler=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.SuitCycler=function(e,n){var t=(0,r.useBackend)(n),c=(t.act,t.data),u=c.active,m=c.locked,p=c.uv_active,C=(0,o.createComponentVNode)(2,i);return p?C=(0,o.createComponentVNode)(2,l):m?C=(0,o.createComponentVNode)(2,d):u&&(C=(0,o.createComponentVNode)(2,s)),(0,o.createComponentVNode)(2,a.Window,{width:320,height:400,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:C})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.safeties,d=i.occupied,s=i.suit,u=i.helmet,m=i.departments,p=i.species,C=i.uv_level,h=i.max_uv_level,N=i.can_repair,V=i.damage;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Storage",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"lock",content:"Lock",onClick:function(){return a("lock")}}),children:[!(!d||!l)&&(0,o.createComponentVNode)(2,c.NoticeBox,{children:["Biological entity detected in suit chamber. Please remove before continuing with operation.",(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"eject",color:"red",content:"Eject Entity",onClick:function(){return a("eject_guy")}})]}),(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Helmet",children:(0,o.createComponentVNode)(2,c.Button,{icon:u?"square":"square-o",content:u||"Empty",disabled:!u,onClick:function(){return a("dispense",{item:"helmet"})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Suit",children:(0,o.createComponentVNode)(2,c.Button,{icon:s?"square":"square-o",content:s||"Empty",disabled:!s,onClick:function(){return a("dispense",{item:"suit"})}})}),N&&V?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Suit Damage",children:[V,(0,o.createComponentVNode)(2,c.Button,{icon:"wrench",content:"Repair",onClick:function(){return a("repair_suit")}})]}):null]})]}),(0,o.createComponentVNode)(2,c.Section,{title:"Customization",children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Target Paintjob",children:(0,o.createComponentVNode)(2,c.Dropdown,{noscroll:!0,width:"100%",options:m,selected:m[0],onSelected:function(e){return a("department",{department:e})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Target Species",children:(0,o.createComponentVNode)(2,c.Dropdown,{width:"100%",maxHeight:"160px",options:p,selected:p[0],onSelected:function(e){return a("species",{species:e})}})})]}),(0,o.createComponentVNode)(2,c.Button,{mt:1,fluid:!0,content:"Customize",onClick:function(){return a("apply_paintjob")}})]}),(0,o.createComponentVNode)(2,c.Section,{title:"UV Decontamination",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Radiation Level",children:(0,o.createComponentVNode)(2,c.NumberInput,{width:"50px",value:C,minValue:1,maxValue:h,stepPixelSize:30,onChange:function(e,n){return a("radlevel",{radlevel:n})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Decontaminate",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"recycle",disabled:d&&l,textAlign:"center",onClick:function(){return a("uv")}})})]})})],4)},l=function(e,n){return(0,o.createComponentVNode)(2,c.NoticeBox,{children:"Contents are currently being decontaminated. Please wait."})},d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.model_text,d=i.userHasAccess;return(0,o.createComponentVNode)(2,c.Section,{title:"Locked",textAlign:"center",children:[(0,o.createComponentVNode)(2,c.Box,{color:"bad",bold:!0,children:["The ",l," suit cycler is currently locked. Please contact your system administrator."]}),(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"unlock",content:"[Unlock]",disabled:!d,onClick:function(){return a("lock")}})})]})},s=function(e,n){return(0,o.createComponentVNode)(2,c.NoticeBox,{children:"Contents are currently being painted. Please wait."})}},80748:function(e,n,t){"use strict";n.__esModule=!0,n.SuitStorageUnit=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.SuitStorageUnit=function(e,n){var t=(0,r.useBackend)(n),c=(t.act,t.data),u=c.panelopen,m=c.uv_active,p=c.broken,C=(0,o.createComponentVNode)(2,i);return u?C=(0,o.createComponentVNode)(2,l):m?C=(0,o.createComponentVNode)(2,d):p&&(C=(0,o.createComponentVNode)(2,s)),(0,o.createComponentVNode)(2,a.Window,{width:400,height:365,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:C})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.locked,d=i.open,s=i.safeties,u=i.occupied,m=i.suit,p=i.helmet,C=i.mask;return(0,o.createComponentVNode)(2,c.Section,{title:"Storage",minHeight:"260px",buttons:(0,o.createFragment)([!d&&(0,o.createComponentVNode)(2,c.Button,{icon:l?"unlock":"lock",content:l?"Unlock":"Lock",onClick:function(){return a("lock")}}),!l&&(0,o.createComponentVNode)(2,c.Button,{icon:d?"sign-out-alt":"sign-in-alt",content:d?"Close":"Open",onClick:function(){return a("door")}})],0),children:[!(!u||!s)&&(0,o.createComponentVNode)(2,c.NoticeBox,{children:["Biological entity detected in suit chamber. Please remove before continuing with operation.",(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"eject",color:"red",content:"Eject Entity",onClick:function(){return a("eject_guy")}})]}),l&&(0,o.createComponentVNode)(2,c.Box,{mt:6,bold:!0,textAlign:"center",fontSize:"40px",children:[(0,o.createComponentVNode)(2,c.Box,{children:"Unit Locked"}),(0,o.createComponentVNode)(2,c.Icon,{name:"lock"})]})||d&&(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Helmet",children:(0,o.createComponentVNode)(2,c.Button,{icon:p?"square":"square-o",content:p||"Empty",disabled:!p,onClick:function(){return a("dispense",{item:"helmet"})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Suit",children:(0,o.createComponentVNode)(2,c.Button,{icon:m?"square":"square-o",content:m||"Empty",disabled:!m,onClick:function(){return a("dispense",{item:"suit"})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Mask",children:(0,o.createComponentVNode)(2,c.Button,{icon:C?"square":"square-o",content:C||"Empty",disabled:!C,onClick:function(){return a("dispense",{item:"mask"})}})})]})||(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"recycle",content:"Decontaminate",disabled:u&&s,textAlign:"center",onClick:function(){return a("uv")}})]})},l=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.safeties,d=i.uv_super;return(0,o.createComponentVNode)(2,c.Section,{title:"Maintenance Panel",children:[(0,o.createComponentVNode)(2,c.Box,{color:"grey",children:"The panel is ridden with controls, button and meters, labeled in strange signs and symbols that you cannot understand. Probably the manufactoring world's language. Among other things, a few controls catch your eye."}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Box,{children:["A small dial with a biohazard symbol next to it. It's pointing towards a gauge that reads ",d?"15nm":"185nm",".",(0,o.createComponentVNode)(2,c.Flex,{mt:1,align:"center",textAlign:"center",children:[(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"50%",textAlign:"center",children:(0,o.createComponentVNode)(2,c.Knob,{size:2,inline:!0,value:d,minValue:0,maxValue:1,step:1,stepPixelSize:40,color:d?"red":"green",format:function(e){return e?"15nm":"185nm"},onChange:function(e,n){return a("toggleUV")}})}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"50%",textAlign:"center",children:(0,o.createComponentVNode)(2,c.Icon,{name:"biohazard",size:3,color:"orange"})})]})]}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Box,{children:["A thick old-style button, with 2 grimy LED lights next to it. The ",l?(0,o.createVNode)(1,"font",null,"GREEN",16,{color:"green"}):(0,o.createVNode)(1,"font",null,"RED",16,{color:"red"})," LED is on.",(0,o.createComponentVNode)(2,c.Flex,{mt:1,align:"center",textAlign:"center",children:[(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"50%",textAlign:"center",children:(0,o.createComponentVNode)(2,c.Button,{fontSize:"2rem",color:"grey",inline:!0,icon:"caret-square-right",style:{border:"4px solid #777","border-style":"outset"},onClick:function(){return a("togglesafeties")}})}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"50%",textAlign:"center",children:[(0,o.createComponentVNode)(2,c.Icon,{name:"circle",color:l?"black":"red",mr:2}),(0,o.createComponentVNode)(2,c.Icon,{name:"circle",color:l?"green":"black"})]})]})]})]})},d=function(e,n){return(0,o.createComponentVNode)(2,c.NoticeBox,{children:"Contents are currently being decontaminated. Please wait."})},s=function(e,n){return(0,o.createComponentVNode)(2,c.NoticeBox,{danger:!0,children:"Unit chamber is too contaminated to continue usage. Please call for a qualified individual to perform maintenance."})}},6951:function(e,n,t){"use strict";n.__esModule=!0,n.SupermatterMonitorContent=n.SupermatterMonitor=void 0;var o=t(39812),r=t(71494),c=t(74814),a=(t(58083),t(85952)),i=t(41860),l=t(2497);n.SupermatterMonitor=function(e,n){return(0,o.createComponentVNode)(2,a.Window,{width:600,height:400,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,d)})})};var d=function(e,n){var t=(0,r.useBackend)(n);t.act;return t.data.active?(0,o.createComponentVNode)(2,u):(0,o.createComponentVNode)(2,s)};n.SupermatterMonitorContent=d;var s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.supermatters;return(0,o.createComponentVNode)(2,c.Section,{title:"Supermatters Detected",buttons:(0,o.createComponentVNode)(2,c.Button,{content:"Refresh",icon:"sync",onClick:function(){return a("refresh")}}),children:(0,o.createComponentVNode)(2,c.Flex,{wrap:"wrap",children:i.map((function(e,n){return(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"49%",grow:n%2,children:(0,o.createComponentVNode)(2,c.Section,{title:e.area_name+" (#"+e.uid+")",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Integrity",children:[e.integrity," %"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Options",children:(0,o.createComponentVNode)(2,c.Button,{icon:"eye",content:"View Details",onClick:function(){return a("set",{set:e.uid})}})})]})})},n)}))})})},u=function(e,n){var t=(0,r.useBackend)(n),a=t.act,d=t.data,s=d.SM_area,u=d.SM_integrity,m=d.SM_power,p=d.SM_ambienttemp,C=d.SM_ambientpressure,h=d.SM_EPR,N=d.SM_gas_O2,V=d.SM_gas_CO2,b=d.SM_gas_N2,f=d.SM_gas_PH,g=d.SM_gas_N2O;return(0,o.createComponentVNode)(2,c.Section,{title:(0,l.toTitleCase)(s),buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-left",content:"Return to Menu",onClick:function(){return a("clear")}}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Core Integrity",children:(0,o.createComponentVNode)(2,c.ProgressBar,{animated:!0,value:u,minValue:0,maxValue:100,ranges:{good:[100,100],average:[50,100],bad:[-Infinity,50]}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Relative EER",children:(0,o.createComponentVNode)(2,c.Box,{color:(m>300?"bad":m>150&&"average")||"good",children:(0,o.createComponentVNode)(2,c.AnimatedNumber,{format:function(e){return(0,i.round)(e,2)+" MeV/cm\xb3"},value:m})})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Temperature",children:(0,o.createComponentVNode)(2,c.Box,{color:(p>5e3?"bad":p>4e3&&"average")||"good",children:(0,o.createComponentVNode)(2,c.AnimatedNumber,{format:function(e){return(0,i.round)(e,2)+" K"},value:p})})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Pressure",children:(0,o.createComponentVNode)(2,c.Box,{color:(C>1e4?"bad":C>5e3&&"average")||"good",children:(0,o.createComponentVNode)(2,c.AnimatedNumber,{format:function(e){return(0,i.round)(e,2)+" kPa"},value:C})})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Chamber EPR",children:(0,o.createComponentVNode)(2,c.Box,{color:(h>4?"bad":h>1&&"average")||"good",children:(0,o.createComponentVNode)(2,c.AnimatedNumber,{format:function(e){return(0,i.round)(e,2)},value:h})})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Gas Composition",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"O\xb2",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:N}),"%"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"CO\xb2",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:V}),"%"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"N\xb2",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:b}),"%"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"PH",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:f}),"%"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"N\xb2O",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:g}),"%"]})]})})]})})}},12431:function(e,n,t){"use strict";n.__esModule=!0,n.SupplyConsole=void 0;var o=t(39812),r=t(64499),c=(t(41860),t(58083)),a=t(71494),i=t(74814),l=t(16007),d=t(85952),s=t(85531),u=function(e,n){var t=(0,a.useBackend)(n),r=t.act,c=t.data.supply_points,l=e.args,d=l.name,s=l.cost,u=l.manifest,m=l.ref,p=l.random;return(0,o.createComponentVNode)(2,i.Section,{width:"400px",level:2,m:"-1rem",pb:"1rem",title:d,buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"shopping-cart",content:"Buy - "+s+" points",disabled:s>c,onClick:function(){return r("request_crate",{ref:m})}}),children:(0,o.createComponentVNode)(2,i.Section,{title:"Contains"+(p?" any "+p+" of:":""),scrollable:!0,height:"200px",children:u.map((function(e){return(0,o.createComponentVNode)(2,i.Box,{children:e},e)}))})})};n.SupplyConsole=function(e,n){var t=(0,a.useBackend)(n);t.act,t.data;return(0,l.modalRegisterBodyOverride)("view_crate",u),(0,o.createComponentVNode)(2,d.Window,{width:700,height:620,children:(0,o.createComponentVNode)(2,d.Window.Content,{children:[(0,o.createComponentVNode)(2,l.ComplexModal,{maxWidth:"100%"}),(0,o.createComponentVNode)(2,i.Section,{title:"Supply Records",children:[(0,o.createComponentVNode)(2,m),(0,o.createComponentVNode)(2,p)]})]})})};var m=function(e,n){var t=(0,a.useBackend)(n),r=t.act,l=t.data,d=l.supply_points,s=l.shuttle,u=null,m=!1;return l.shuttle_auth&&(1===s.launch&&0===s.mode?u=(0,o.createComponentVNode)(2,i.Button,{icon:"rocket",content:"Send Away",onClick:function(){return r("send_shuttle",{mode:"send_away"})}}):2!==s.launch||3!==s.mode&&1!==s.mode?1===s.launch&&5===s.mode&&(u=(0,o.createComponentVNode)(2,i.Button,{icon:"rocket",content:"Send Shuttle",onClick:function(){return r("send_shuttle",{mode:"send_to_station"})}})):u=(0,o.createComponentVNode)(2,i.Button,{icon:"ban",content:"Cancel Launch",onClick:function(){return r("send_shuttle",{mode:"cancel_shuttle"})}}),s.force&&(m=!0)),(0,o.createComponentVNode)(2,i.Section,{children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Supply Points",children:(0,o.createComponentVNode)(2,i.AnimatedNumber,{value:d})})}),(0,o.createComponentVNode)(2,i.Section,{level:2,title:"Supply Shuttle",mt:2,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Location",buttons:(0,o.createFragment)([u,m?(0,o.createComponentVNode)(2,i.Button,{icon:"exclamation-triangle",content:"Force Launch",onClick:function(){return r("send_shuttle",{mode:"force_shuttle"})}}):null],0),children:s.location}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Engine",children:s.engine}),4===s.mode?(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"ETA",children:s.time>1?(0,c.formatTime)(s.time):"LATE"}):null]})})]})},p=function(e,n){var t=(0,a.useBackend)(n),r=(t.act,t.data.order_auth,(0,a.useLocalState)(n,"tabIndex",0)),c=r[0],l=r[1];return(0,o.createComponentVNode)(2,i.Section,{title:"Menu",children:[(0,o.createComponentVNode)(2,i.Tabs,{children:[(0,o.createComponentVNode)(2,i.Tabs.Tab,{icon:"box",selected:0===c,onClick:function(){return l(0)},children:"Request"}),(0,o.createComponentVNode)(2,i.Tabs.Tab,{icon:"check-circle-o",selected:1===c,onClick:function(){return l(1)},children:"Accepted"}),(0,o.createComponentVNode)(2,i.Tabs.Tab,{icon:"circle-o",selected:2===c,onClick:function(){return l(2)},children:"Requests"}),(0,o.createComponentVNode)(2,i.Tabs.Tab,{icon:"book",selected:3===c,onClick:function(){return l(3)},children:"Order history"}),(0,o.createComponentVNode)(2,i.Tabs.Tab,{icon:"book",selected:4===c,onClick:function(){return l(4)},children:"Export history"})]}),0===c?(0,o.createComponentVNode)(2,C):null,1===c?(0,o.createComponentVNode)(2,h,{mode:"Approved"}):null,2===c?(0,o.createComponentVNode)(2,h,{mode:"Requested"}):null,3===c?(0,o.createComponentVNode)(2,h,{mode:"All"}):null,4===c?(0,o.createComponentVNode)(2,N):null]})},C=function(e,n){var t=(0,a.useBackend)(n),c=t.act,l=t.data,d=l.categories,u=l.supply_packs,m=l.contraband,p=l.supply_points,C=(0,a.useLocalState)(n,"activeCategory",null),h=C[0],N=C[1],V=(0,s.flow)([(0,r.filter)((function(e){return e.group===h})),(0,r.filter)((function(e){return!e.contraband||m})),(0,r.sortBy)((function(e){return e.name})),(0,r.sortBy)((function(e){return e.cost>p}))])(u);return(0,o.createComponentVNode)(2,i.Section,{level:2,children:(0,o.createComponentVNode)(2,i.Stack,{children:[(0,o.createComponentVNode)(2,i.Stack.Item,{basis:"25%",children:(0,o.createComponentVNode)(2,i.Section,{title:"Categories",scrollable:!0,fill:!0,height:"290px",children:d.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{fluid:!0,content:e,selected:e===h,onClick:function(){return N(e)}},e)}))})}),(0,o.createComponentVNode)(2,i.Stack.Item,{grow:1,ml:2,children:(0,o.createComponentVNode)(2,i.Section,{title:"Contents",scrollable:!0,fill:!0,height:"290px",children:V.map((function(e){return(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Stack,{align:"center",justify:"flex-start",children:[(0,o.createComponentVNode)(2,i.Stack.Item,{basis:"70%",children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,icon:"shopping-cart",ellipsis:!0,content:e.name,color:e.cost>p?"red":null,onClick:function(){return c("request_crate",{ref:e.ref})}})}),(0,o.createComponentVNode)(2,i.Stack.Item,{children:(0,o.createComponentVNode)(2,i.Button,{content:"#",color:e.cost>p?"red":null,onClick:function(){return c("request_crate_multi",{ref:e.ref})}})}),(0,o.createComponentVNode)(2,i.Stack.Item,{children:(0,o.createComponentVNode)(2,i.Button,{content:"C",color:e.cost>p?"red":null,onClick:function(){return c("view_crate",{crate:e.ref})}})}),(0,o.createComponentVNode)(2,i.Stack.Item,{grow:1,children:[e.cost," points"]})]})},e.name)}))})})]})})},h=function(e,n){var t=(0,a.useBackend)(n),r=t.act,c=t.data,l=e.mode,d=c.orders,s=c.order_auth,u=c.supply_points,m=d.filter((function(e){return e.status===l||"All"===l}));return m.length?(0,o.createComponentVNode)(2,i.Section,{level:2,children:["Requested"===l&&s?(0,o.createComponentVNode)(2,i.Button,{mt:-1,mb:1,fluid:!0,color:"red",icon:"trash",content:"Clear all requests",onClick:function(){return r("clear_all_requests")}}):null,m.map((function(e,n){return(0,o.createComponentVNode)(2,i.Section,{title:"Order "+(n+1),buttons:"All"===l&&s?(0,o.createComponentVNode)(2,i.Button,{color:"red",icon:"trash",content:"Delete Record",onClick:function(){return r("delete_order",{ref:e.ref})}}):null,children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:[e.entries.map((function(n){return n.entry?(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:n.field,buttons:s?(0,o.createComponentVNode)(2,i.Button,{icon:"pen",content:"Edit",onClick:function(){r("edit_order_value",{ref:e.ref,edit:n.field,"default":n.entry})}}):null,children:n.entry}):null})),"All"===l?(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Status",children:e.status}):null]}),s&&"Requested"===l?(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{icon:"check",content:"Approve",disabled:e.cost>u,onClick:function(){return r("approve_order",{ref:e.ref})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"times",content:"Deny",onClick:function(){return r("deny_order",{ref:e.ref})}})],4):null]},n)}))]}):(0,o.createComponentVNode)(2,i.Section,{level:2,children:"No orders found."})},N=function(e,n){var t=(0,a.useBackend)(n),r=t.act,c=t.data,l=c.receipts,d=c.order_auth;return l.length?(0,o.createComponentVNode)(2,i.Section,{level:2,children:l.map((function(e,n){return(0,o.createComponentVNode)(2,i.Section,{children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:[e.title.map((function(n){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:n.field,buttons:d?(0,o.createComponentVNode)(2,i.Button,{icon:"pen",content:"Edit",onClick:function(){return r("export_edit",{ref:e.ref,edit:n.field,"default":n.entry})}}):null,children:n.entry},n.field)})),e.error?(0,o.createComponentVNode)(2,i.LabeledList.Item,{labelColor:"red",label:"Error",children:e.error}):e.contents.map((function(n,t){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:n.object,buttons:d?(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{icon:"pen",content:"Edit",onClick:function(){return r("export_edit_field",{ref:e.ref,index:t+1,edit:"meow","default":n.object})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"trash",color:"red",content:"Delete",onClick:function(){return r("export_delete_field",{ref:e.ref,index:t+1})}})],4):null,children:[n.quantity,"x -> ",n.value," points"]},t)}))]}),d?(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{mt:1,icon:"plus",content:"Add Item To Record",onClick:function(){return r("export_add_field",{ref:e.ref})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"trash",content:"Delete Record",onClick:function(){return r("export_delete",{ref:e.ref})}})],4):null]},n)}))}):(0,o.createComponentVNode)(2,i.Section,{level:2,children:"No receipts found."})}},30111:function(e,n,t){"use strict";n.__esModule=!0,n.TEGenerator=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(85952),l=t(58083);n.TEGenerator=function(e,n){var t=(0,c.useBackend)(n).data,r=t.totalOutput,s=t.maxTotalOutput,u=t.thermalOutput,m=t.primary,p=t.secondary;return(0,o.createComponentVNode)(2,i.Window,{width:550,height:310,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Section,{title:"Status",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Total Output",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:r,maxValue:s,children:(0,l.formatPower)(r)})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Thermal Output",children:(0,l.formatPower)(u)})]})}),m&&p?(0,o.createComponentVNode)(2,a.Flex,{spacing:1,children:[(0,o.createComponentVNode)(2,a.Flex.Item,{shrink:1,grow:1,children:(0,o.createComponentVNode)(2,d,{name:"Primary Circulator",values:m})}),(0,o.createComponentVNode)(2,a.Flex.Item,{shrink:1,grow:1,children:(0,o.createComponentVNode)(2,d,{name:"Secondary Circulator",values:p})})]}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Warning! Both circulators must be connected in order to operate this machine."})]})})};var d=function(e,n){var t=e.name,c=e.values,i=c.dir,d=c.output,s=c.flowCapacity,u=c.inletPressure,m=c.inletTemperature,p=c.outletPressure,C=c.outletTemperature;return(0,o.createComponentVNode)(2,a.Section,{title:t+" ("+i+")",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Turbine Output",children:(0,l.formatPower)(d)}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Flow Capacity",children:[(0,r.round)(s,2),"%"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Inlet Pressure",children:(0,l.formatSiUnit)(1e3*u,0,"Pa")}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Inlet Temperature",children:[(0,r.round)(m,2)," K"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Outlet Pressure",children:(0,l.formatSiUnit)(1e3*p,0,"Pa")}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Outlet Temperature",children:[(0,r.round)(C,2)," K"]})]})})}},58457:function(e,n,t){"use strict";n.__esModule=!0,n.Tank=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.Tank=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.connected,s=l.showToggle,u=void 0===s||s,m=l.maskConnected,p=l.tankPressure,C=l.releasePressure,h=l.defaultReleasePressure,N=l.minReleasePressure,V=l.maxReleasePressure;return(0,o.createComponentVNode)(2,a.Window,{width:400,height:320,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{title:"Status",buttons:!!u&&(0,o.createComponentVNode)(2,c.Button,{icon:d?"air-freshener":"lock-open",selected:d,disabled:!m,content:"Mask Release Valve",onClick:function(){return i("toggle")}}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Mask Connected",children:m?"Yes":"No"})})}),(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Pressure",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:p/1013,ranges:{good:[.35,Infinity],average:[.15,.35],bad:[-Infinity,.15]},children:l.tankPressure+" kPa"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Pressure Regulator",children:[(0,o.createComponentVNode)(2,c.Button,{icon:"fast-backward",disabled:C===N,onClick:function(){return i("pressure",{pressure:"min"})}}),(0,o.createComponentVNode)(2,c.NumberInput,{animated:!0,value:parseFloat(C),width:"65px",unit:"kPa",minValue:N,maxValue:V,onChange:function(e,n){return i("pressure",{pressure:n})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"fast-forward",disabled:C===V,onClick:function(){return i("pressure",{pressure:"max"})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"undo",content:"",disabled:C===h,onClick:function(){return i("pressure",{pressure:"reset"})}})]})]})})]})})}},38754:function(e,n,t){"use strict";n.__esModule=!0,n.TankDispenser=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.TankDispenser=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data;return(0,o.createComponentVNode)(2,a.Window,{width:275,height:103,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Phoron",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:l.plasma?"square":"square-o",content:"Dispense",disabled:!l.plasma,onClick:function(){return i("plasma")}}),children:l.plasma}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Oxygen",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:l.oxygen?"square":"square-o",content:"Dispense",disabled:!l.oxygen,onClick:function(){return i("oxygen")}}),children:l.oxygen})]})})})})}},73754:function(e,n,t){"use strict";n.__esModule=!0,n.TelecommsLogBrowser=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(85952);n.TelecommsLogBrowser=function(e,n){var t=(0,c.useBackend)(n),r=t.act,s=t.data,u=s.universal_translate,m=s.network,p=s.temp,C=s.servers,h=s.selectedServer;return(0,o.createComponentVNode)(2,i.Window,{width:575,height:450,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[p&&p.length?(0,o.createComponentVNode)(2,a.NoticeBox,{warning:!0,children:[(0,o.createComponentVNode)(2,a.Box,{display:"inline-box",verticalAlign:"middle",children:p}),(0,o.createComponentVNode)(2,a.Button,{icon:"times-circle",float:"right",onClick:function(){return r("cleartemp")}}),(0,o.createComponentVNode)(2,a.Box,{clear:"both"})]}):null,(0,o.createComponentVNode)(2,a.Section,{title:"Network Control",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Current Network",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"search",content:"Refresh",onClick:function(){return r("scan")}}),(0,o.createComponentVNode)(2,a.Button,{color:"bad",icon:"exclamation-triangle",content:"Flush Buffer",disabled:0===C.length,onClick:function(){return r("release")}})],4),children:(0,o.createComponentVNode)(2,a.Button,{content:m,icon:"pen",onClick:function(){return r("network")}})})})}),h?(0,o.createComponentVNode)(2,d,{network:m,server:h,universal_translate:u}):(0,o.createComponentVNode)(2,l,{network:m,servers:C})]})})};var l=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=(t.data,e.network,e.servers);return i&&i.length?(0,o.createComponentVNode)(2,a.Section,{title:"Detected Telecommunication Servers",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:i.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name+" ("+e.id+")",children:(0,o.createComponentVNode)(2,a.Button,{content:"View",icon:"eye",onClick:function(){return r("view",{id:e.id})}})},e.id)}))})}):(0,o.createComponentVNode)(2,a.Section,{title:"Detected Telecommunications Servers",children:[(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"No servers detected."}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,content:"Scan",icon:"search",onClick:function(){return r("scan")}})]})},d=function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=(t.data,e.network,e.server),d=e.universal_translate;return(0,o.createComponentVNode)(2,a.Section,{title:"Server ("+l.id+")",buttons:(0,o.createComponentVNode)(2,a.Button,{content:"Return",icon:"undo",onClick:function(){return i("mainmenu")}}),children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Total Recorded Traffic",children:l.totalTraffic>=1024?(0,r.round)(l.totalTraffic/1024)+" Terrabytes":l.totalTraffic+" Gigabytes"})}),(0,o.createComponentVNode)(2,a.Section,{title:"Stored Logs",mt:"4px",children:(0,o.createComponentVNode)(2,a.Flex,{wrap:"wrap",children:l.logs&&l.logs.length?l.logs.map((function(e){return(0,o.createComponentVNode)(2,a.Flex.Item,{m:"2px",basis:"49%",grow:e.id%2,children:(0,o.createComponentVNode)(2,a.Section,{title:d||e.parameters.uspeech||e.parameters.intelligible||"Execution Error"===e.input_type?e.input_type:"Audio File",buttons:(0,o.createComponentVNode)(2,a.Button.Confirm,{confirmContent:"Delete Log?",color:"bad",icon:"trash",confirmIcon:"trash",onClick:function(){return i("delete",{id:e.id})}}),children:"Execution Error"===e.input_type?(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Data type",children:"Error"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Output",children:e.parameters.message}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Delete",children:(0,o.createComponentVNode)(2,a.Button,{icon:"trash",onClick:function(){return i("delete",{id:e.id})}})})]}):d||e.parameters.uspeech||e.parameters.intelligible?(0,o.createComponentVNode)(2,s,{log:e}):(0,o.createComponentVNode)(2,s,{error:!0})})},e.id)})):"No Logs Detected."})})]})},s=function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data,e.log),i=e.error,l=r&&r.parameters||{none:"none"},d=l.timecode,s=l.name,u=l.race,m=l.job,p=l.message;return i?(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Time Recieved",children:d}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Source",children:"Unidentifiable"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Class",children:u}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Contents",children:"Unintelligible"})]}):(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Time Recieved",children:d}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Source",children:[s," (Job: ",m,")"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Class",children:u}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Contents",className:"LabeledList__breakContents",children:p})]})}},29441:function(e,n,t){"use strict";n.__esModule=!0,n.TelecommsMachineBrowser=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.TelecommsMachineBrowser=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data,s=d.network,u=d.temp,m=d.machinelist,p=d.selectedMachine;return(0,o.createComponentVNode)(2,a.Window,{width:575,height:450,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[u&&u.length?(0,o.createComponentVNode)(2,c.NoticeBox,{warning:!0,children:[(0,o.createComponentVNode)(2,c.Box,{display:"inline-box",verticalAlign:"middle",children:u}),(0,o.createComponentVNode)(2,c.Button,{icon:"times-circle",float:"right",onClick:function(){return l("cleartemp")}}),(0,o.createComponentVNode)(2,c.Box,{clear:"both"})]}):null,(0,o.createComponentVNode)(2,c.Section,{title:"Network Control",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Current Network",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"search",content:"Probe Network",onClick:function(){return l("scan")}}),(0,o.createComponentVNode)(2,c.Button,{color:"bad",icon:"exclamation-triangle",content:"Flush Buffer",disabled:0===m.length,onClick:function(){return l("release")}})],4),children:(0,o.createComponentVNode)(2,c.Button,{content:s,icon:"pen",onClick:function(){return l("network")}})})})}),m&&m.length?(0,o.createComponentVNode)(2,i,{title:p?p.name+" ("+p.id+")":"Detected Network Entities",list:p?p.links:m,showBack:p}):(0,o.createComponentVNode)(2,c.Section,{title:"No Devices Found",children:(0,o.createComponentVNode)(2,c.Button,{icon:"search",content:"Probe Network",onClick:function(){return l("scan")}})})]})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=(t.data,e.list),l=e.title,d=e.showBack;return(0,o.createComponentVNode)(2,c.Section,{title:l,buttons:d&&(0,o.createComponentVNode)(2,c.Button,{icon:"undo",content:"Back to Main Menu",onClick:function(){return a("mainmenu")}}),children:[(0,o.createComponentVNode)(2,c.Box,{color:"label",children:(0,o.createVNode)(1,"u",null,"Linked entities",16)}),(0,o.createComponentVNode)(2,c.LabeledList,{children:i.length?i.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name+" ("+e.id+")",children:(0,o.createComponentVNode)(2,c.Button,{content:"View",icon:"eye",onClick:function(){return a("view",{id:e.id})}})},e.id)})):(0,o.createComponentVNode)(2,c.LabeledList.Item,{color:"bad",children:"No links detected."})})]})}},86756:function(e,n,t){"use strict";n.__esModule=!0,n.TelecommsMultitoolMenu=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(36355),i=t(85952);n.TelecommsMultitoolMenu=function(e,n){var t=(0,r.useBackend)(n),c=(t.act,t.data),s=(c.temp,c.on,c.id,c.network,c.autolinkers,c.shadowlink,c.options);c.linked,c.filter,c.multitool,c.multitool_buffer;return(0,o.createComponentVNode)(2,i.Window,{width:520,height:540,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.TemporaryNotice),(0,o.createComponentVNode)(2,l),(0,o.createComponentVNode)(2,d,{options:s})]})})};var l=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=(i.temp,i.on),d=i.id,s=i.network,u=i.autolinkers,m=i.shadowlink,p=(i.options,i.linked),C=i.filter,h=i.multitool,N=i.multitool_buffer;return(0,o.createComponentVNode)(2,c.Section,{title:"Status",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:l,content:l?"On":"Off",onClick:function(){return a("toggle")}}),children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Identification String",children:(0,o.createComponentVNode)(2,c.Button,{icon:"pen",content:d,onClick:function(){return a("id")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Network",children:(0,o.createComponentVNode)(2,c.Button,{icon:"pen",content:s,onClick:function(){return a("network")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Prefabrication",children:u?"TRUE":"FALSE"}),m?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Shadow Link",children:"Active."}):null,h?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Multitool Buffer",children:[N?(0,o.createFragment)([N.name,(0,o.createTextVNode)(" ("),N.id,(0,o.createTextVNode)(")")],0):null,(0,o.createComponentVNode)(2,c.Button,{color:N?"green":null,content:N?"Link ("+N.id+")":"Add Machine",icon:N?"link":"plus",onClick:N?function(){return a("link")}:function(){return a("buffer")}}),N?(0,o.createComponentVNode)(2,c.Button,{color:"red",content:"Flush",icon:"trash",onClick:function(){return a("flush")}}):null]}):null]}),(0,o.createComponentVNode)(2,c.Section,{title:"Linked network Entities",mt:1,children:(0,o.createComponentVNode)(2,c.LabeledList,{children:p.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.ref+" "+e.name+" ("+e.id+")",buttons:(0,o.createComponentVNode)(2,c.Button.Confirm,{color:"red",icon:"trash",onClick:function(){return a("unlink",{unlink:e.index})}})},e.ref)}))})}),(0,o.createComponentVNode)(2,c.Section,{title:"Filtering Frequencies",mt:1,children:[C.map((function(e){return(0,o.createComponentVNode)(2,c.Button.Confirm,{content:e.name+" GHz",confirmContent:"Delete?",confirmColor:"red",confirmIcon:"trash",onClick:function(){return a("delete",{"delete":e.freq})}},e.index)})),C&&0!==C.length?null:(0,o.createComponentVNode)(2,c.Box,{color:"label",children:"No filters."})]})]})},d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=(t.data,e.options),l=i.use_listening_level,d=i.use_broadcasting,s=i.use_receiving,u=i.listening_level,m=i.broadcasting,p=i.receiving,C=i.use_change_freq,h=i.change_freq,N=i.use_broadcast_range,V=i.use_receive_range,b=i.range,f=i.minRange,g=i.maxRange;return l||d||s||C||N||V?(0,o.createComponentVNode)(2,c.Section,{title:"Options",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[l?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Signal Locked to Station",children:(0,o.createComponentVNode)(2,c.Button,{icon:u?"lock-closed":"lock-open",content:u?"Yes":"No",onClick:function(){return a("change_listening")}})}):null,d?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Broadcasting",children:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:m,content:m?"Yes":"No",onClick:function(){return a("broadcast")}})}):null,s?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Receving",children:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:p,content:p?"Yes":"No",onClick:function(){return a("receive")}})}):null,C?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Change Signal Frequency",children:(0,o.createComponentVNode)(2,c.Button,{icon:"wave-square",selected:!!h,content:h?"Yes ("+h+")":"No",onClick:function(){return a("change_freq")}})}):null,N||V?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:(N?"Broadcast":"Receive")+" Range",children:(0,o.createComponentVNode)(2,c.NumberInput,{value:b,minValue:f,maxValue:g,unit:"gigameters",stepPixelSize:4,format:function(e){return e+1},onDrag:function(e,n){return a("range",{range:n})}})}):null]})}):(0,o.createComponentVNode)(2,c.Section,{title:"No Options Found"})}},18509:function(e,n,t){"use strict";n.__esModule=!0,n.Teleporter=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.Teleporter=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.locked_name,s=l.station_connected,u=l.hub_connected,m=l.calibrated,p=l.teleporter_on;return(0,o.createComponentVNode)(2,a.Window,{width:300,height:200,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Target",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"bullseye",onClick:function(){return i("select_target")},content:d})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Calibrated",children:(0,o.createComponentVNode)(2,c.Button.Checkbox,{fluid:!0,checked:m,color:m?"good":"bad",onClick:function(){return i("test_fire")},content:m?"Accurate":"Test Fire"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Teleporter",children:(0,o.createComponentVNode)(2,c.Button.Checkbox,{fluid:!0,checked:p,color:p?"good":"bad",onClick:function(){return i("toggle_on")},content:p?"Online":"OFFLINE"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Station",children:s?"Connected":"Not Connected"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Hub",children:u?"Connected":"Not Connected"})]})})})})}},62555:function(e,n,t){"use strict";n.__esModule=!0,n.TelesciConsoleContent=n.TelesciConsole=void 0;var o=t(39812),r=t(64499),c=t(71494),a=t(74814),i=t(85952);n.TelesciConsole=function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data.noTelepad);return(0,o.createComponentVNode)(2,i.Window,{width:400,height:450,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:r&&(0,o.createComponentVNode)(2,l)||(0,o.createComponentVNode)(2,d)})})};var l=function(e,n){return(0,o.createComponentVNode)(2,a.Section,{title:"Error",color:"bad",children:["No telepad located.",(0,o.createVNode)(1,"br"),"Please add telepad data."]})},d=function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data,d=l.insertedGps,s=l.rotation,u=l.currentZ,m=l.cooldown,p=l.crystalCount,C=l.maxCrystals,h=(l.maxPossibleDistance,l.maxAllowedDistance),N=l.distance,V=l.tempMsg,b=l.sectorOptions,f=l.lastTeleData;return(0,o.createComponentVNode)(2,a.Section,{title:"Telepad Controls",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"eject",disabled:!d,onClick:function(){return i("ejectGPS")},content:"Eject GPS"}),children:[(0,o.createComponentVNode)(2,a.NoticeBox,{info:!0,children:m&&(0,o.createComponentVNode)(2,a.Box,{children:["Telepad is recharging. Please wait ",(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:m})," seconds."]})||(0,o.createComponentVNode)(2,a.Box,{children:V})}),(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Bearing",children:(0,o.createComponentVNode)(2,a.NumberInput,{fluid:!0,value:s,format:function(e){return e+"\xb0"},step:1,minValue:-900,maxValue:900,onDrag:function(e,n){return i("setrotation",{val:n})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Distance",children:(0,o.createComponentVNode)(2,a.NumberInput,{fluid:!0,value:N,format:function(e){return e+"/"+h+" m"},minValue:0,maxValue:h,step:1,stepPixelSize:4,onDrag:function(e,n){return i("setdistance",{val:n})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Sector",children:(0,r.sortBy)((function(e){return Number(e)}))(b).map((function(e){return(0,o.createComponentVNode)(2,a.Button,{icon:"check-circle",content:e,selected:u===e,onClick:function(){return i("setz",{setz:e})}},e)}))}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Controls",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"share",iconRotation:-90,onClick:function(){return i("send")},content:"Send"}),(0,o.createComponentVNode)(2,a.Button,{icon:"share",iconRotation:90,onClick:function(){return i("receive")},content:"Receive"}),(0,o.createComponentVNode)(2,a.Button,{icon:"sync",iconRotation:90,onClick:function(){return i("recal")},content:"Recalibrate"})]})]}),f&&(0,o.createComponentVNode)(2,a.Section,{mt:1,children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Telepad Location",children:[f.src_x,", ",f.src_y]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Distance",children:[f.distance,"m"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Transit Time",children:[f.time," secs"]})]})})||(0,o.createComponentVNode)(2,a.Section,{mt:1,children:"No teleport data found."}),(0,o.createComponentVNode)(2,a.Section,{children:["Crystals: ",p," / ",C]})]})};n.TelesciConsoleContent=d},55096:function(e,n,t){"use strict";n.__esModule=!0,n.TimeClock=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(85952),l=t(14959);n.TimeClock=function(e,n){var t=(0,c.useBackend)(n),d=t.act,s=t.data,u=s.department_hours,m=s.user_name,p=s.card,C=s.assignment,h=s.job_datum,N=s.allow_change_job,V=s.job_choices;return(0,o.createComponentVNode)(2,i.Window,{width:500,height:520,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{title:"OOC",children:[(0,o.createComponentVNode)(2,a.NoticeBox,{children:"OOC Note: PTO acquired is account-wide and shared across all characters. Info listed below is not IC information."}),(0,o.createComponentVNode)(2,a.Section,{level:2,title:"Time Off Balance for "+m,children:(0,o.createComponentVNode)(2,a.LabeledList,{children:Object.keys(u).map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e,color:u[e]>6?"good":u[e]>1?"average":"bad",children:[(0,r.toFixed)(u[e],1)," ",1===u[e]?"hour":"hours"]},e)}))})})]}),(0,o.createComponentVNode)(2,a.Section,{title:"Employee Info",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Employee ID",children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"user",onClick:function(){return d("id")},children:p||"Insert ID"})}),!!h&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Rank",children:(0,o.createComponentVNode)(2,a.Box,{backgroundColor:h.selection_color,p:.8,children:(0,o.createComponentVNode)(2,a.Flex,{justify:"space-between",align:"center",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Box,{ml:1,children:(0,o.createComponentVNode)(2,l.RankIcon,{color:"white",rank:h.title})})}),(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Box,{fontSize:1.5,inline:!0,mr:1,children:h.title})})]})})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Departments",children:h.departments}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Pay Scale",children:h.economic_modifier}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"PTO Elegibility",children:h.timeoff_factor>0&&(0,o.createComponentVNode)(2,a.Box,{children:["Earns PTO - ",h.pto_department]})||h.timeoff_factor<0&&(0,o.createComponentVNode)(2,a.Box,{children:["Requires PTO - ",h.pto_department]})||(0,o.createComponentVNode)(2,a.Box,{children:"Neutral"})})],4)]})}),!(!N||!h||0===h.timeoff_factor||"Dismissed"===C)&&(0,o.createComponentVNode)(2,a.Section,{title:"Employment Actions",children:h.timeoff_factor>0&&(u[h.pto_department]>0&&(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"exclamation-triangle",onClick:function(){return d("switch-to-offduty")},children:"Go Off-Duty"})||(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Warning: You do not have enough accrued time off to go off-duty."}))||Object.keys(V).length&&Object.keys(V).map((function(e){return V[e].map((function(n){return(0,o.createComponentVNode)(2,a.Button,{icon:"suitcase",onClick:function(){return d("switch-to-onduty-rank",{"switch-to-onduty-rank":e,"switch-to-onduty-assignment":n})},children:n},n)}))}))||(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"No Open Positions - See Head Of Personnel"})})]})})}},24389:function(e,n,t){"use strict";n.__esModule=!0,n.TransferValve=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.TransferValve=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.tank_one,s=l.tank_two,u=l.attached_device,m=l.valve;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Valve Status",children:(0,o.createComponentVNode)(2,c.Button,{icon:m?"unlock":"lock",content:m?"Open":"Closed",disabled:!d||!s,onClick:function(){return i("toggle")}})})})}),(0,o.createComponentVNode)(2,c.Section,{title:"Assembly",buttons:(0,o.createComponentVNode)(2,c.Button,{textAlign:"center",width:"150px",icon:"cog",content:"Configure Assembly",disabled:!u,onClick:function(){return i("device")}}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:u?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Attachment",children:(0,o.createComponentVNode)(2,c.Button,{icon:"eject",content:u,disabled:!u,onClick:function(){return i("remove_device")}})}):(0,o.createComponentVNode)(2,c.NoticeBox,{textAlign:"center",children:"Attach Assembly"})})}),(0,o.createComponentVNode)(2,c.Section,{title:"Attachment One",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:d?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Attachment",children:(0,o.createComponentVNode)(2,c.Button,{icon:"eject",content:d,disabled:!d,onClick:function(){return i("tankone")}})}):(0,o.createComponentVNode)(2,c.NoticeBox,{textAlign:"center",children:"Attach Tank"})})}),(0,o.createComponentVNode)(2,c.Section,{title:"Attachment Two",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:s?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Attachment",children:(0,o.createComponentVNode)(2,c.Button,{icon:"eject",content:s,disabled:!s,onClick:function(){return i("tanktwo")}})}):(0,o.createComponentVNode)(2,c.NoticeBox,{textAlign:"center",children:"Attach Tank"})})})]})})}},95893:function(e,n,t){"use strict";n.__esModule=!0,n.TurbineControl=void 0;var o=t(39812),r=(t(41860),t(58083)),c=t(71494),a=t(74814),i=t(85952);n.TurbineControl=function(e,n){var t=(0,c.useBackend)(n),l=t.act,d=t.data,s=(d.connected,d.compressor_broke),u=d.turbine_broke,m=d.broken,p=d.door_status,C=d.online,h=d.power,N=d.rpm,V=d.temp;return(0,o.createComponentVNode)(2,i.Window,{width:520,height:440,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{title:"Turbine Controller",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",children:m&&(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:["Setup is broken",(0,o.createComponentVNode)(2,a.Button,{icon:"sync",onClick:function(){return l("reconnect")},content:"Reconnect"})]})||(0,o.createComponentVNode)(2,a.Box,{color:C?"good":"bad",children:!C||s||u?"Offline":"Online"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Compressor",children:s&&(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Compressor is inoperable."})||u&&(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Turbine is inoperable."})||(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.Button.Checkbox,{checked:C,content:"Compressor Power",onClick:function(){return l(C?"power-off":"power-on")}})})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Vent Doors",children:(0,o.createComponentVNode)(2,a.Button.Checkbox,{checked:p,onClick:function(){return l("doors")},content:p?"Closed":"Open"})})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Status",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Turbine Speed",children:[m?"--":(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:N})," RPM"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Internal Temperature",children:[m?"--":(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:V})," K"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Generated Power",children:m?"--":(0,o.createComponentVNode)(2,a.AnimatedNumber,{format:function(e){return(0,r.formatPower)(e)},value:Number(h)})})]})})]})})}},62542:function(e,n,t){"use strict";n.__esModule=!0,n.Turbolift=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.Turbolift=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.floors,s=l.doors_open,u=l.fire_mode;return(0,o.createComponentVNode)(2,a.Window,{width:480,height:260+25*u,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{title:"Floor Selection",className:u?"Section--elevator--fire":null,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:s?"door-open":"door-closed",content:s?u?"Close Doors (SAFETY OFF)":"Doors Open":"Doors Closed",selected:s&&!u,color:u?"red":null,onClick:function(){return i("toggle_doors")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"exclamation-triangle",color:"bad",content:"Emergency Stop",onClick:function(){return i("emergency_stop")}})],4),children:[!u||(0,o.createComponentVNode)(2,c.Section,{className:"Section--elevator--fire",textAlign:"center",title:"FIREFIGHTER MODE ENGAGED"}),(0,o.createComponentVNode)(2,c.Flex,{wrap:"wrap",children:d.map((function(e){return(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"100%",children:(0,o.createComponentVNode)(2,c.Flex,{align:"center",justify:"space-around",children:[(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"22%",textAlign:"right",mr:"3px",children:e.label||"Floor #"+e.id}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"8%",textAlign:"left",children:(0,o.createComponentVNode)(2,c.Button,{icon:"circle",color:e.current?"red":e.target?"green":e.queued?"yellow":null,onClick:function(){return i("move_to_floor",{ref:e.ref})}})}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"50%",grow:1,children:e.name})]})},e.id)}))})]})})})}},89761:function(e,n,t){"use strict";n.__esModule=!0,n.GenericUplink=n.Uplink=void 0;var o=t(39812),r=t(2497),c=t(71494),a=t(74814),i=t(58083),l=t(85952);n.Uplink=function(e,n){var t=(0,c.useBackend)(n).data,r=(0,c.useLocalState)(n,"screen",0),i=r[0],m=r[1],p=t.telecrystals;return(0,o.createComponentVNode)(2,l.Window,{width:620,height:580,theme:"syndicate",resizable:!0,children:(0,o.createComponentVNode)(2,l.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,d,{screen:i,setScreen:m}),0===i&&(0,o.createComponentVNode)(2,u,{currencyAmount:p,currencySymbol:"TC"})||1===i&&(0,o.createComponentVNode)(2,s)||(0,o.createComponentVNode)(2,a.Section,{color:"bad",children:"Error"})]})})};var d=function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data),i=e.screen,l=e.setScreen,d=r.discount_name,s=r.discount_amount,u=r.offer_expiry;return(0,o.createComponentVNode)(2,a.Section,{children:[(0,o.createComponentVNode)(2,a.Tabs,{style:{"border-bottom":"none","margin-bottom":"0"},children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:0===i,onClick:function(){return l(0)},children:"Request Items"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:1===i,onClick:function(){return l(1)},children:"Exploitable Information"})]}),(0,o.createComponentVNode)(2,a.Section,{title:"Item Discount",level:2,children:s<100&&(0,o.createComponentVNode)(2,a.Box,{children:[d," - ",s,"% off. Offer expires at: ",u]})||(0,o.createComponentVNode)(2,a.Box,{children:"No items currently discounted."})})]})},s=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=i.exploit,d=i.locked_records;return(0,o.createComponentVNode)(2,a.Section,{title:"Exploitable Information",buttons:l&&(0,o.createComponentVNode)(2,a.Button,{icon:"undo",content:"Back",onClick:function(){return r("view_exploits",{id:0})}}),children:l&&(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:l.name}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Sex",children:l.sex}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Species",children:l.species}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Age",children:l.age}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Rank",children:l.rank}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Home System",children:l.home_system}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Citizenship",children:l.citizenship}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Faction",children:l.faction}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Religion",children:l.religion}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Fingerprint",children:l.fingerprint}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Other Affiliations",children:l.antagfaction}),(0,o.createComponentVNode)(2,a.LabeledList.Divider),(0,o.createComponentVNode)(2,a.LabeledList.Item,{children:"Acquired Information"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Notes",children:l.nanoui_exploit_record.split("
").map((function(e){return(0,o.createComponentVNode)(2,a.Box,{children:e},e)}))})]})})||d.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{icon:"eye",fluid:!0,content:e.name,onClick:function(){return r("view_exploits",{id:e.id})}},e.id)}))})},u=function(e,n){var t,l,d=e.currencyAmount,s=void 0===d?0:d,u=e.currencySymbol,p=void 0===u?"\u20ae":u,C=(0,c.useBackend)(n),h=C.act,N=C.data,V=N.compactMode,b=N.lockable,f=N.categories,g=void 0===f?[]:f,k=(0,c.useLocalState)(n,"searchText",""),v=k[0],B=k[1],L=(0,c.useLocalState)(n,"category",null==(t=g[0])?void 0:t.name),_=L[0],x=L[1],w=(0,r.createSearch)(v,(function(e){return e.name+e.desc})),S=v.length>0&&g.flatMap((function(e){return e.items||[]})).filter(w).filter((function(e,n){return n<25}))||(null==(l=g.find((function(e){return e.name===_})))?void 0:l.items)||[];return(0,o.createComponentVNode)(2,a.Section,{title:(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:s>0?"good":"bad",children:[(0,i.formatMoney)(s)," ",p]}),buttons:(0,o.createFragment)([(0,o.createTextVNode)("Search"),(0,o.createComponentVNode)(2,a.Input,{autoFocus:!0,value:v,onInput:function(e,n){return B(n)},mx:1}),(0,o.createComponentVNode)(2,a.Button,{icon:V?"list":"info",content:V?"Compact":"Detailed",onClick:function(){return h("compact_toggle")}}),!!b&&(0,o.createComponentVNode)(2,a.Button,{icon:"lock",content:"Lock",onClick:function(){return h("lock")}})],0),children:(0,o.createComponentVNode)(2,a.Flex,{children:[0===v.length&&(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Tabs,{vertical:!0,children:g.map((function(e){var n;return(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:e.name===_,onClick:function(){return x(e.name)},children:[e.name," (",(null==(n=e.items)?void 0:n.length)||0,")"]},e.name)}))})}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,basis:0,children:[0===S.length&&(0,o.createComponentVNode)(2,a.NoticeBox,{children:0===v.length?"No items in this category.":"No results found."}),(0,o.createComponentVNode)(2,m,{compactMode:v.length>0||V,currencyAmount:s,currencySymbol:p,items:S})]})]})})};n.GenericUplink=u;var m=function(e,n){var t=e.compactMode,l=e.currencyAmount,d=e.currencySymbol,s=(0,c.useBackend)(n).act,u=(0,c.useLocalState)(n,"hoveredItem",{}),m=u[0],p=u[1],C=m&&m.cost||0,h=e.items.map((function(e){var n=m&&m.name!==e.name,t=l-C=0||(r[t]=e[t]);return r}(e,["spec"]),l=r.action,d=r.test,s=r.tooltip,u=r.content;return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Button,Object.assign({onClick:function(){return t(l)},icon:d?"toggle-on":"toggle-off",selected:d,fluid:!0,tooltip:s.main+" "+(d?s.disable:s.enable),content:d?u.enabled:u.disabled},i)))}},21162:function(e,n,t){"use strict";n.__esModule=!0,n.Wires=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.Wires=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.wires||[],s=l.status||[];return(0,o.createComponentVNode)(2,a.Window,{width:350,height:150+30*d.length,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:d.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{className:"candystripe",label:e.color_name,labelColor:e.seen_color,color:e.seen_color,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{content:e.cut?"Mend":"Cut",onClick:function(){return i("cut",{wire:e.color})}}),(0,o.createComponentVNode)(2,c.Button,{content:"Pulse",onClick:function(){return i("pulse",{wire:e.color})}}),(0,o.createComponentVNode)(2,c.Button,{content:e.attached?"Detach":"Attach",onClick:function(){return i("attach",{wire:e.color})}})],4),children:!!e.wire&&(0,o.createVNode)(1,"i",null,[(0,o.createTextVNode)("("),e.wire,(0,o.createTextVNode)(")")],0)},e.seen_color)}))})}),!!s.length&&(0,o.createComponentVNode)(2,c.Section,{children:s.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{color:"lightgray",mt:.1,children:e},e)}))})]})})}},81522:function(e,n,t){"use strict";n.__esModule=!0,n.XenoarchArtifactAnalyzer=void 0;var o=t(39812),r=t(71494),c=t(85952),a=t(74814);n.XenoarchArtifactAnalyzer=function(e,n){return(0,o.createComponentVNode)(2,c.Window,{width:250,height:140,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,i)})})};var i=function(e,n){var t=(0,r.useBackend)(n),c=t.act,i=t.data,l=i.owned_scanner,d=i.scan_in_progress;return l?d?(0,o.createComponentVNode)(2,a.Section,{title:"Scan In Progress",children:["Scanning...",(0,o.createComponentVNode)(2,a.Button,{mt:1,fluid:!0,icon:"stop",onClick:function(){return c("scan")},children:"Cancel Scan"})]}):(0,o.createComponentVNode)(2,a.Section,{title:"Artifact Analyzer",children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"search",onClick:function(){return c("scan")},children:"Begin Scan"})}):(0,o.createComponentVNode)(2,a.Section,{title:"No Scanner Detected",children:(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Warning: No scanner was detected. This machine requires a scanner to operate."})})}},40875:function(e,n,t){"use strict";n.__esModule=!0,n.XenoarchArtifactHarvester=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.XenoarchArtifactHarvester=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data.info,s=d.no_scanner,u=d.harvesting,m=d.inserted_battery;return(0,o.createComponentVNode)(2,a.Window,{width:450,height:200,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:s&&(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Warning: No scanner detected."})||(0,o.createComponentVNode)(2,c.Section,{children:u>0&&(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Box,{color:"label",textAlign:"center",mb:1,children:"Please wait. Harvesting in progress."}),(0,o.createComponentVNode)(2,i),(0,o.createComponentVNode)(2,c.Button,{mt:1,fluid:!0,icon:"stop",onClick:function(){return l("stopharvest")},children:"Stop Early"})]})||u<0&&(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Box,{color:"label",textAlign:"center",mb:1,children:"Please wait. Energy dump in progress."}),(0,o.createComponentVNode)(2,i),(0,o.createComponentVNode)(2,c.Button,{mt:1,fluid:!0,icon:"stop",onClick:function(){return l("stopharvest")},children:"Stop Early"})]})||Object.keys(m).length&&(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Name",children:m.name}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Charge",children:(0,o.createComponentVNode)(2,i)}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Energy Signature ID",children:m.artifact_id})]}),(0,o.createComponentVNode)(2,c.Button,{mt:1,fluid:!0,icon:"eject",onClick:function(){return l("ejectbattery")},children:"Eject Battery"}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"bolt",onClick:function(){return l("drainbattery")},children:"Drain Battery"}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"star",onClick:function(){return l("harvest")},children:"Begin Harvest"})]})||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No battery inserted."})})})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data.info.inserted_battery);return Object.keys(a).length?(0,o.createComponentVNode)(2,c.ProgressBar,{minValue:0,value:a.stored_charge,maxValue:a.capacity}):(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No battery inserted."})}},88835:function(e,n,t){"use strict";n.__esModule=!0,n.XenoarchDepthScanner=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.XenoarchDepthScanner=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.current,s=l.positive_locations;return(0,o.createComponentVNode)(2,a.Window,{width:300,height:500,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[Object.keys(d).length&&(0,o.createComponentVNode)(2,c.Section,{title:"Selected",buttons:(0,o.createComponentVNode)(2,c.Button.Confirm,{color:"bad",icon:"trash",confirmIcon:"trash",content:"Delete Entry",onClick:function(){return i("clear",{index:d.index})}}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Time",children:d.time}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Coords",children:d.coords}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Anomaly Depth",children:[d.depth," cm"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Anomaly Size",children:[d.clearance," cm"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Dissonance Spread",children:d.dissonance_spread}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Anomaly Material",children:d.material})]})})||null,(0,o.createComponentVNode)(2,c.Section,{title:"Entries",buttons:(0,o.createComponentVNode)(2,c.Button.Confirm,{color:"red",icon:"trash",confirmIcon:"trash",content:"Delete All",onClick:function(){return i("clear")}}),children:s.length&&s.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{icon:"eye",onClick:function(){return i("select",{select:e.index})},children:[e.time,", ",e.coords]},e.index)}))||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No traces found."})})]})})}},5622:function(e,n,t){"use strict";n.__esModule=!0,n.XenoarchHandheldPowerUtilizer=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.XenoarchHandheldPowerUtilizer=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.inserted_battery,s=l.anomaly,u=l.charge,m=l.capacity,p=l.timeleft,C=l.activated,h=l.duration,N=l.interval;return(0,o.createComponentVNode)(2,a.Window,{width:400,height:500,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{title:"Anomaly Power Utilizer",buttons:(0,o.createComponentVNode)(2,c.Button,{disabled:!d,icon:"eject",onClick:function(){return i("ejectbattery")},children:"Eject Battery"}),children:d&&(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Inserted Battery",children:d}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Anomalies Detected",children:s||"N/A"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Charge",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:u,maxValue:m,children:[u," / ",m]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Time Left Activated",children:p}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"power-off",onClick:function(){return i("startup")},children:C?"Activated":"Deactivated"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Activation Duration",children:(0,o.createComponentVNode)(2,c.NumberInput,{unit:"s",fluid:!0,minValue:0,value:h,stepPixelSize:4,maxValue:30,onDrag:function(e,n){return i("changeduration",{duration:10*n})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Activation Interval",children:(0,o.createComponentVNode)(2,c.NumberInput,{unit:"s",fluid:!0,minValue:0,value:N,stepPixelSize:10,maxValue:10,onDrag:function(e,n){return i("changeinterval",{interval:10*n})}})})]})||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No battery inserted. Please insert a cell."})})})})}},53702:function(e,n,t){"use strict";n.__esModule=!0,n.XenoarchReplicator=void 0;var o=t(39812),r=(t(41860),t(2497),t(71494)),c=t(74814),a=t(85952);n.XenoarchReplicator=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data.tgui_construction;return(0,o.createComponentVNode)(2,a.Window,{theme:"abductor",width:400,height:400,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:l.map((function(e,n){return(0,o.createComponentVNode)(2,c.Button,{color:e.background,icon:e.icon,iconColor:e.foreground,fontSize:4,onClick:function(){return i("construct",{key:e.key})}},e.key)}))})})}},13153:function(e,n,t){"use strict";n.__esModule=!0,n.XenoarchSpectrometer=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=t(2497);n.XenoarchSpectrometer=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data,s=d.scanned_item,u=d.scanned_item_desc,m=d.last_scan_data,p=d.scan_progress,C=d.scanning,h=d.scanner_seal_integrity,N=d.scanner_rpm,V=d.scanner_temperature,b=d.coolant_usage_rate,f=d.coolant_usage_max,g=(d.unused_coolant_abs,d.unused_coolant_per),k=d.coolant_purity,v=d.optimal_wavelength,B=d.maser_wavelength,L=d.maser_wavelength_max,_=d.maser_efficiency,x=d.radiation,w=(d.t_left_radspike,d.rad_shield_on);return(0,o.createComponentVNode)(2,a.Window,{width:900,height:760,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Status",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"signal",selected:C,onClick:function(){return l("scanItem")},children:C?"HALT SCAN":"Begin Scan"}),(0,o.createComponentVNode)(2,c.Button,{icon:"eject",disabled:!s,onClick:function(){return l("ejectItem")},children:"Eject Item"})],4),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Item",children:s||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No item inserted."})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Heuristic Analysis",children:u||"None found."})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Scanner",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Scan Progress",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:p,minValue:0,maxValue:100,color:"good"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Vacuum Seal Integrity",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:h,minValue:0,maxValue:100,ranges:{good:[66,100],average:[33,66],bad:[0,33]}})})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"MASER",buttons:(0,o.createComponentVNode)(2,c.NoticeBox,{info:!0,children:"Match wavelengths to progress the scan."}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"MASER Efficiency",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:_,minValue:0,maxValue:100,ranges:{good:[66,100],average:[33,66],bad:[0,33]}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Wavelength",children:(0,o.createComponentVNode)(2,c.Slider,{animated:!0,value:B,fillValue:v,minValue:1,maxValue:L,format:function(e){return e+" MHz"},step:10,onDrag:function(e,n){return l("maserWavelength",{wavelength:n})}})})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Environment / Internal",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Centrifuge Speed",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:N,minValue:0,maxValue:1e3,color:"good",children:[N," RPM"]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Internal Temperature",children:(0,o.createComponentVNode)(2,c.ProgressBar,{minValue:0,value:V,maxValue:1273,ranges:{bad:[1e3,Infinity],average:[250,1e3],good:[0,250]},children:[V," K"]})})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Radiation",buttons:(0,o.createComponentVNode)(2,c.Button,{selected:w,icon:"radiation",onClick:function(){return l("toggle_rad_shield")},children:w?"Disable Radiation Shielding":"Enable Radiation Shielding"}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Ambient Radiation",children:(0,o.createComponentVNode)(2,c.ProgressBar,{minValue:0,value:x,maxValue:100,ranges:{bad:[65,Infinity],average:[15,65],good:[0,15]},children:[x," mSv"]})})})}),(0,o.createComponentVNode)(2,c.Section,{title:"Cooling",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Coolant Remaining",children:(0,o.createComponentVNode)(2,c.ProgressBar,{minValue:0,value:10*g,maxValue:1e3,ranges:{good:[65,Infinity],average:[15,65],bad:[0,15]},children:[10*g," u"]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Coolant Flow Rate",children:(0,o.createComponentVNode)(2,c.Slider,{minValue:0,value:b,maxValue:f,stepPixelSize:50,format:function(e){return e+" u/s"},onDrag:function(e,n){return l("coolantRate",{coolant:n})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Coolant Purity",children:(0,o.createComponentVNode)(2,c.ProgressBar,{minValue:0,value:k,maxValue:100,ranges:{good:[66,Infinity],average:[33,66],bad:[0,33]}})})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Latest Results",children:(0,i.decodeHtmlEntities)(m).split("\n").map((function(e){return(0,o.createComponentVNode)(2,c.Box,{children:e},e)}))})]})})}},19820:function(e,n,t){"use strict";n.__esModule=!0,n.XenoarchSuspension=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.XenoarchSuspension=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.cell,s=l.cellCharge,u=l.cellMaxCharge,m=l.locked,p=l.suspension_field;return(0,o.createComponentVNode)(2,a.Window,{width:400,height:150,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{title:'Triple-phase S.F.G. MK III "Reliant"',buttons:(0,o.createComponentVNode)(2,c.Button,{icon:m?"lock":"lock-open",selected:!m,onClick:function(){return i("lock")},children:m?"Locked":"Unlocked"}),children:m&&(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"This interface is locked. Swipe an ID card to unlock it."})||(0,o.createFragment)([(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Cell Charge",children:d&&(0,o.createComponentVNode)(2,c.ProgressBar,{ranges:{good:[.75*u,Infinity],average:[.5*u,.75*u],bad:[-Infinity,.5*u]},value:s,maxValue:u})||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No cell inserted."})})}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,mt:1,icon:"meteor",selected:p,onClick:function(){return i("toggle_field")},children:p?"Disengage Suspension Field":"Engage Suspension Field"})],4)})})})}},71739:function(e,n,t){"use strict";n.__esModule=!0,n.Scrubber=n.Vent=void 0;var o=t(39812),r=t(2497),c=t(71494),a=t(74814);t(76270);n.Vent=function(e,n){var t=e.vent,i=(0,c.useBackend)(n).act,l=t.id_tag,d=t.long_name,s=t.power,u=t.checks,m=t.excheck,p=t.incheck,C=t.direction,h=t.external,N=t.internal,V=t.extdefault,b=t.intdefault;return(0,o.createComponentVNode)(2,a.Section,{level:2,title:(0,r.decodeHtmlEntities)(d),buttons:(0,o.createComponentVNode)(2,a.Button,{icon:s?"power-off":"times",selected:s,content:s?"On":"Off",onClick:function(){return i("power",{id_tag:l,val:Number(!s)})}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Mode",children:(0,o.createComponentVNode)(2,a.Button,{icon:"sign-in-alt",content:"siphon"!==C?"Pressurizing":"Siphoning",color:"siphon"===C&&"danger",onClick:function(){return i("direction",{id_tag:l,val:Number("siphon"===C)})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Pressure Regulator",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"sign-in-alt",content:"Internal",selected:p,onClick:function(){return i("incheck",{id_tag:l,val:u})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"sign-out-alt",content:"External",selected:m,onClick:function(){return i("excheck",{id_tag:l,val:u})}})]}),!!p&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Internal Target",children:[(0,o.createComponentVNode)(2,a.NumberInput,{value:Math.round(N),unit:"kPa",width:"75px",minValue:0,step:10,maxValue:5066,onChange:function(e,n){return i("set_internal_pressure",{id_tag:l,value:n})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"undo",disabled:b,content:"Reset",onClick:function(){return i("reset_internal_pressure",{id_tag:l})}})]}),!!m&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"External Target",children:[(0,o.createComponentVNode)(2,a.NumberInput,{value:Math.round(h),unit:"kPa",width:"75px",minValue:0,step:10,maxValue:5066,onChange:function(e,n){return i("set_external_pressure",{id_tag:l,value:n})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"undo",disabled:V,content:"Reset",onClick:function(){return i("reset_external_pressure",{id_tag:l})}})]})]})})};n.Scrubber=function(e,n){var t=e.scrubber,i=(0,c.useBackend)(n).act,l=t.long_name,d=t.power,s=t.scrubbing,u=t.id_tag,m=(t.widenet,t.filters);return(0,o.createComponentVNode)(2,a.Section,{level:2,title:(0,r.decodeHtmlEntities)(l),buttons:(0,o.createComponentVNode)(2,a.Button,{icon:d?"power-off":"times",content:d?"On":"Off",selected:d,onClick:function(){return i("power",{id_tag:u,val:Number(!d)})}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Mode",children:(0,o.createComponentVNode)(2,a.Button,{icon:s?"filter":"sign-in-alt",color:s||"danger",content:s?"Scrubbing":"Siphoning",onClick:function(){return i("scrubbing",{id_tag:u,val:Number(!s)})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Filters",children:s&&m.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{icon:e.val?"check-square-o":"square-o",content:e.name,title:e.name,selected:e.val,onClick:function(){return i(e.command,{id_tag:u,val:!e.val})}},e.name)}))||"N/A"})]})})}},48229:function(e,n,t){"use strict";n.__esModule=!0,n.BeakerContents=void 0;var o=t(39812),r=t(74814);n.BeakerContents=function(e){var n=e.beakerLoaded,t=e.beakerContents,c=void 0===t?[]:t,a=e.buttons;return(0,o.createComponentVNode)(2,r.Box,{children:[!n&&(0,o.createComponentVNode)(2,r.Box,{color:"label",children:"No beaker loaded."})||0===c.length&&(0,o.createComponentVNode)(2,r.Box,{color:"label",children:"Beaker is empty."}),c.map((function(e,n){return(0,o.createComponentVNode)(2,r.Box,{width:"100%",children:(0,o.createComponentVNode)(2,r.Flex,{align:"center",justify:"space-between",children:[(0,o.createComponentVNode)(2,r.Flex.Item,{color:"label",children:[(t=e.volume,t+" unit"+(1===t?"":"s"))," of ",e.name]}),!!a&&(0,o.createComponentVNode)(2,r.Flex.Item,{children:a(e,n)})]})},e.name);var t}))]})}},16007:function(e,n,t){"use strict";n.__esModule=!0,n.ComplexModal=n.modalRegisterBodyOverride=n.modalOpen=void 0;var o=t(39812),r=t(71494),c=t(74814),a={};n.modalOpen=function(e,n,t){var o=(0,r.useBackend)(e),c=o.act,a=o.data,i=Object.assign(a.modal?a.modal.args:{},t||{});c("modal_open",{id:n,arguments:JSON.stringify(i)})};n.modalRegisterBodyOverride=function(e,n){a[e]=n};var i=function(e,n,t,o){var c=(0,r.useBackend)(e),a=c.act,i=c.data;if(i.modal){var l=Object.assign(i.modal.args||{},o||{});a("modal_answer",{id:n,answer:t,arguments:JSON.stringify(l)})}},l=function(e,n){(0,(0,r.useBackend)(e).act)("modal_close",{id:n})};n.ComplexModal=function(e,n){var t=(0,r.useBackend)(n).data;if(t.modal){var d,s,u=t.modal,m=u.id,p=u.text,C=u.type,h=(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-left",content:"Cancel",color:"grey",onClick:function(){return l(n)}});if(a[m])s=a[m](t.modal,n);else if("input"===C){var N=t.modal.value;d=function(e){return i(n,m,N)},s=(0,o.createComponentVNode)(2,c.Input,{value:t.modal.value,placeholder:"ENTER to submit",width:"100%",my:"0.5rem",autoFocus:!0,autoSelect:!0,onChange:function(e,n){N=n}}),h=(0,o.createComponentVNode)(2,c.Box,{mt:"0.5rem",children:[(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-left",content:"Cancel",color:"grey",onClick:function(){return l(n)}}),(0,o.createComponentVNode)(2,c.Button,{icon:"check",content:"Confirm",color:"good",float:"right",m:"0",onClick:function(){return i(n,m,N)}}),(0,o.createComponentVNode)(2,c.Box,{clear:"both"})]})}else if("choice"===C){var V="object"==typeof t.modal.choices?Object.values(t.modal.choices):t.modal.choices;s=(0,o.createComponentVNode)(2,c.Dropdown,{options:V,selected:t.modal.value,width:"100%",my:"0.5rem",onSelected:function(e){return i(n,m,e)}})}else"bento"===C?s=(0,o.createComponentVNode)(2,c.Flex,{spacingPrecise:"1",wrap:"wrap",my:"0.5rem",maxHeight:"1%",children:t.modal.choices.map((function(e,r){return(0,o.createComponentVNode)(2,c.Flex.Item,{flex:"1 1 auto",children:(0,o.createComponentVNode)(2,c.Button,{selected:r+1===parseInt(t.modal.value,10),onClick:function(){return i(n,m,r+1)},children:(0,o.createVNode)(1,"img",null,null,1,{src:e})})},r)}))}):"boolean"===C&&(h=(0,o.createComponentVNode)(2,c.Box,{mt:"0.5rem",children:[(0,o.createComponentVNode)(2,c.Button,{icon:"times",content:t.modal.no_text,color:"bad",float:"left",mb:"0",onClick:function(){return i(n,m,0)}}),(0,o.createComponentVNode)(2,c.Button,{icon:"check",content:t.modal.yes_text,color:"good",float:"right",m:"0",onClick:function(){return i(n,m,1)}}),(0,o.createComponentVNode)(2,c.Box,{clear:"both"})]}));return(0,o.createComponentVNode)(2,c.Modal,{maxWidth:e.maxWidth||window.innerWidth/2+"px",maxHeight:e.maxHeight||window.innerHeight/2+"px",onEnter:d,mx:"auto",children:[(0,o.createComponentVNode)(2,c.Box,{inline:!0,children:p}),s,h]})}}},67861:function(e,n,t){"use strict";n.__esModule=!0,n.FullscreenNotice=void 0;var o=t(39812),r=t(74814);n.FullscreenNotice=function(e,n){var t=e.children,c=e.title,a=void 0===c?"Welcome":c;return(0,o.createComponentVNode)(2,r.Section,{title:a,height:"100%",fill:!0,children:(0,o.createComponentVNode)(2,r.Flex,{height:"100%",align:"center",justify:"center",children:(0,o.createComponentVNode)(2,r.Flex.Item,{textAlign:"center",mt:"-2rem",children:t})})})}},21451:function(e,n,t){"use strict";n.__esModule=!0,n.InterfaceLockNoticeBox=void 0;var o=t(39812),r=t(71494),c=t(74814);n.InterfaceLockNoticeBox=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=e.siliconUser,d=void 0===l?i.siliconUser:l,s=e.locked,u=void 0===s?i.locked:s,m=e.normallyLocked,p=void 0===m?i.normallyLocked:m,C=e.onLockStatusChange,h=void 0===C?function(){return a("lock")}:C,N=e.accessText,V=void 0===N?"an ID card":N,b=e.deny,f=void 0!==b&&b,g=e.denialMessage;return f?void 0===g?"Error.":g:d?(0,o.createComponentVNode)(2,c.NoticeBox,{color:d&&"grey",children:(0,o.createComponentVNode)(2,c.Flex,{align:"center",children:[(0,o.createComponentVNode)(2,c.Flex.Item,{children:"Interface lock status:"}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:"1"}),(0,o.createComponentVNode)(2,c.Flex.Item,{children:(0,o.createComponentVNode)(2,c.Button,{m:"0",color:p?"red":"green",icon:p?"lock":"unlock",content:p?"Locked":"Unlocked",onClick:function(){h&&h(!u)}})})]})}):(0,o.createComponentVNode)(2,c.NoticeBox,{children:["Swipe ",V," ","to ",u?"unlock":"lock"," this interface."]})}},28117:function(e,n,t){"use strict";n.__esModule=!0,n.LoginInfo=void 0;var o=t(39812),r=t(71494),c=t(74814);n.LoginInfo=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.authenticated,d=i.rank;if(i)return(0,o.createComponentVNode)(2,c.NoticeBox,{info:!0,children:[(0,o.createComponentVNode)(2,c.Box,{display:"inline-block",verticalAlign:"middle",children:["Logged in as: ",l," (",d,")"]}),(0,o.createComponentVNode)(2,c.Button,{icon:"sign-out-alt",content:"Logout and Eject ID",color:"good",float:"right",onClick:function(){return a("logout")}}),(0,o.createComponentVNode)(2,c.Box,{clear:"both"})]})}},1192:function(e,n,t){"use strict";n.__esModule=!0,n.LoginScreen=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(67861);n.LoginScreen=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.scan,s=l.isAI,u=l.isRobot;return(0,o.createComponentVNode)(2,a.FullscreenNotice,{title:"Welcome",children:[(0,o.createComponentVNode)(2,c.Box,{fontSize:"1.5rem",bold:!0,children:[(0,o.createComponentVNode)(2,c.Icon,{name:"user-circle",verticalAlign:"middle",size:3,mr:"1rem"}),"Guest"]}),(0,o.createComponentVNode)(2,c.Box,{color:"label",my:"1rem",children:["ID:",(0,o.createComponentVNode)(2,c.Button,{icon:"id-card",content:d||"----------",ml:"0.5rem",onClick:function(){return i("scan")}})]}),(0,o.createComponentVNode)(2,c.Button,{icon:"sign-in-alt",disabled:!d,content:"Login",onClick:function(){return i("login",{login_type:1})}}),!!s&&(0,o.createComponentVNode)(2,c.Button,{icon:"sign-in-alt",content:"Login as AI",onClick:function(){return i("login",{login_type:2})}}),!!u&&(0,o.createComponentVNode)(2,c.Button,{icon:"sign-in-alt",content:"Login as Cyborg",onClick:function(){return i("login",{login_type:3})}})]})}},21526:function(e,n,t){"use strict";n.__esModule=!0,n.MiningUser=void 0;var o=t(39812),r=t(71494),c=t(74814);n.MiningUser=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=e.insertIdText,d=i.has_id,s=i.id;return(0,o.createComponentVNode)(2,c.NoticeBox,{success:d,children:d?(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Box,{display:"inline-block",verticalAlign:"middle",style:{float:"left"},children:["Logged in as ",s.name,".",(0,o.createVNode)(1,"br"),"You have ",s.points.toLocaleString("en-US")," points."]}),(0,o.createComponentVNode)(2,c.Button,{icon:"eject",content:"Eject ID",style:{float:"right"},onClick:function(){return a("logoff")}}),(0,o.createComponentVNode)(2,c.Box,{style:{clear:"both"}})],4):l})}},40754:function(e,n,t){"use strict";n.__esModule=!0,n.OvermapPanControls=n.OvermapFlightData=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814);n.OvermapFlightData=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=e.disableLimiterControls,d=i.ETAnext,s=i.speed,u=i.speed_color,m=i.accel,p=i.heading,C=i.accellimit;return(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"ETA To Next Grid",children:d}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Speed",color:u,children:[s," Gm/h"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Acceleration",children:[m," Gm/h"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Heading",children:[p,"\xb0"]}),!l&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Acceleration Limiter",children:(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return a("accellimit")},children:[C," Gm/h"]})})||null]})};n.OvermapPanControls=function(e,n){var t=(0,r.useBackend)(n).act,a=e.disabled,i=e.actToDo,l=e.selected,d=void 0===l?function(e){return!1}:l;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{disabled:a,selected:d(9),onClick:function(){return t(i,{dir:9})},icon:"arrow-up",iconRotation:-45}),(0,o.createComponentVNode)(2,c.Button,{disabled:a,selected:d(1),onClick:function(){return t(i,{dir:1})},icon:"arrow-up"}),(0,o.createComponentVNode)(2,c.Button,{disabled:a,selected:d(5),onClick:function(){return t(i,{dir:5})},icon:"arrow-up",iconRotation:45})]}),(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{disabled:a,selected:d(8),onClick:function(){return t(i,{dir:8})},icon:"arrow-left"}),(0,o.createComponentVNode)(2,c.Button,{disabled:a,selected:d(0),onClick:function(){return t("brake")},icon:"ban"}),(0,o.createComponentVNode)(2,c.Button,{disabled:a,selected:d(4),onClick:function(){return t(i,{dir:4})},icon:"arrow-right"})]}),(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{disabled:a,selected:d(10),onClick:function(){return t(i,{dir:10})},icon:"arrow-down",iconRotation:45}),(0,o.createComponentVNode)(2,c.Button,{disabled:a,selected:d(2),onClick:function(){return t(i,{dir:2})},icon:"arrow-down"}),(0,o.createComponentVNode)(2,c.Button,{disabled:a,selected:d(6),onClick:function(){return t(i,{dir:6})},icon:"arrow-down",iconRotation:-45})]})],4)}},34227:function(e,n,t){"use strict";n.__esModule=!0,n.PortableBasicInfo=void 0;var o=t(39812),r=t(71494),c=t(74814);n.PortableBasicInfo=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.connected,d=i.holding,s=i.on,u=i.pressure,m=i.powerDraw,p=i.cellCharge,C=i.cellMaxCharge;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Status",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:s?"power-off":"times",content:s?"On":"Off",selected:s,onClick:function(){return a("power")}}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Pressure",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:u})," kPa"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Port",color:l?"good":"average",children:l?"Connected":"Not Connected"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Load",children:[m," W"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Cell Charge",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:p,minValue:0,maxValue:C,ranges:{good:[.5*C,Infinity],average:[.25*C,.5*C],bad:[-Infinity,.25*C]},children:[p," W"]})})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Holding Tank",minHeight:"82px",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"eject",content:"Eject",disabled:!d,onClick:function(){return a("eject")}}),children:d?(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Label",children:d.name}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Pressure",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:d.pressure})," kPa"]})]}):(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No holding tank"})})],4)}},14959:function(e,n,t){"use strict";n.__esModule=!0,n.RankIcon=void 0;var o=t(39812),r=t(74814),c={"Colony Director":"user-tie","Site Manager":"user-tie",Overseer:"user-tie","Head of Personnel":"briefcase","Crew Resources Officer":"briefcase","Deputy Director":"briefcase","Command Secretary":"user-tie","Head of Security":"user-shield","Security Commander":"user-shield","Chief of Security":"user-shield",Warden:["city","shield-alt"],Detective:"search","Forensic Technician":"search","Security Officer":"user-shield","Junior Officer":"user-shield","Chief Engineer":"toolbox","Atmospheric Technician":"wind","Station Engineer":"toolbox","Maintenance Technician":"wrench","Engine Technician":"toolbox",Electrician:"toolbox","Chief Medical Officer":"user-md",Chemist:"mortar-pestle",Pharmacist:"mortar-pestle","Medical Doctor":"user-md",Surgeon:"user-md","Emergency Physician":"user-md",Nurse:"user-md",Virologist:"disease",Paramedic:"ambulance","Emergency Medical Technician":"ambulance",Psychiatrist:"couch",Psychologist:"couch","Research Director":"user-graduate","Research Supervisor":"user-graduate",Roboticist:"robot","Biomechanical Engineer":["wrench","heartbeat"],"Mechatronic Engineer":"wrench",Scientist:"flask",Xenoarchaeologist:"flask",Anomalist:"flask","Phoron Researcher":"flask","Circuit Designer":"car-battery",Xenobiologist:"meteor",Xenobotanist:["biohazard","seedling"],Quartermaster:"box-open","Supply Chief":"warehouse","Cargo Technician":"box-open","Shaft Miner":"hard-hat","Drill Technician":"hard-hat",Pathfinder:"binoculars",Explorer:"user-astronaut","Field Medic":["user-md","user-astronaut"],Pilot:"space-shuttle",Bartender:"glass-martini",Barista:"coffee",Botanist:"leaf",Gardener:"leaf",Chaplain:"place-of-worship",Counselor:"couch",Chef:"utensils",Cook:"utensils",Entertainer:"smile-beam",Performer:"smile-beam",Musician:"guitar",Stagehand:"smile-beam",Intern:"school","Apprentice Engineer":["school","wrench"],"Medical Intern":["school","user-md"],"Lab Assistant":["school","flask"],"Security Cadet":["school","shield-alt"],"Jr. Cargo Tech":["school","box"],"Jr. Explorer":["school","user-astronaut"],Server:["school","utensils"],"Internal Affairs Agent":"balance-scale",Janitor:"broom",Custodian:"broom","Sanitation Technician":"hand-sparkles",Maid:"broom",Librarian:"book",Journalist:"newspaper",Writer:"book",Historian:"chalkboard-teacher",Professor:"chalkboard-teacher",Visitor:"user","Emergency Responder":"fighter-jet"};n.RankIcon=function(e,n){var t=e.rank,a=e.color,i=void 0===a?"label":a,l=c[t];return"string"==typeof l?(0,o.createComponentVNode)(2,r.Icon,{inline:!0,color:i,name:l,size:2}):Array.isArray(l)?l.map((function(e){return(0,o.createComponentVNode)(2,r.Icon,{inline:!0,color:i,name:e,size:2},e)})):(0,o.createComponentVNode)(2,r.Icon,{inline:!0,color:i,name:"user",size:2})}},36355:function(e,n,t){"use strict";n.__esModule=!0,n.TemporaryNotice=void 0;var o=t(39812),r=t(2497),c=t(71494),a=t(74814);n.TemporaryNotice=function(e,n){var t,i=e.decode,l=(0,c.useBackend)(n),d=l.act,s=l.data.temp;if(s){var u=((t={})[s.style]=!0,t);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.NoticeBox,Object.assign({},u,{children:[(0,o.createComponentVNode)(2,a.Box,{display:"inline-block",verticalAlign:"middle",children:i?(0,r.decodeHtmlEntities)(s.text):s.text}),(0,o.createComponentVNode)(2,a.Button,{icon:"times-circle",float:"right",onClick:function(){return d("cleartemp")}}),(0,o.createComponentVNode)(2,a.Box,{clear:"both"})]})))}}},28840:function(e,n,t){"use strict";n.__esModule=!0,n.pAIAtmos=void 0;var o=t(39812),r=t(64499),c=t(2497),a=t(71494),i=t(74814),l=t(85952);n.pAIAtmos=function(e,n){var t=(0,a.useBackend)(n),d=(t.act,t.data.aircontents);return(0,o.createComponentVNode)(2,l.Window,{width:450,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,l.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,i.Section,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,r.filter)((function(e){return"0"!==e.val||"Pressure"===e.entry||"Temperature"===e.entry}))(d).map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.entry,color:(n=e.val,t=e.bad_low,r=e.poor_low,a=e.poor_high,l=e.bad_high,na?"average":n>l?"bad":"good"),children:[e.val,(0,c.decodeHtmlEntities)(e.units)]},e.entry);var n,t,r,a,l}))})})})})}},47132:function(e,n,t){"use strict";n.__esModule=!0,n.pAIDirectives=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.pAIDirectives=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.master,s=l.dna,u=l.prime,m=l.supplemental;return(0,o.createComponentVNode)(2,a.Window,{width:450,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Master",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Master",children:d&&(0,o.createComponentVNode)(2,c.Box,{children:[d," (",s,")",(0,o.createComponentVNode)(2,c.Button,{icon:"syringe",content:"Request Sample",onClick:function(){return i("getdna")}})]})||(0,o.createComponentVNode)(2,c.Box,{children:"None"})})})}),(0,o.createComponentVNode)(2,c.Section,{title:"Directives",children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Prime Directive",children:u}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Supplemental Directive(s)",children:m||"None"})]}),(0,o.createComponentVNode)(2,c.Box,{mt:1,italic:!0,children:'Recall, personality, that you are a complex piece of software with tremendous social skills. Unlike station AI models, you are focused entirely on sapient-software interfacing. 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 should strive to be seen as the ideal, unwavering digital companion that you are.'}),(0,o.createComponentVNode)(2,c.Box,{mt:1,bold:!0,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."})]})]})})}},52852:function(e,n,t){"use strict";n.__esModule=!0,n.pAIDoorjack=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.pAIDoorjack=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.cable,s=l.machine,u=l.inprogress,m=l.progress_a,p=l.progress_b,C=l.aborted;return(0,o.createComponentVNode)(2,a.Window,{width:300,height:150,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Cable",children:s&&(0,o.createComponentVNode)(2,c.Box,{color:"good",children:"Connected"})||d&&(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"Extended"})||(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"ethernet",content:"Retracted",onClick:function(){return i("cable")}})})}),!!s&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Hack",children:u&&(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.ProgressBar,{value:m,maxValue:100,ranges:{good:[67,Infinity],average:[33,67],bad:[-Infinity,33]},children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:m}),".",(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:p}),"%"]}),(0,o.createComponentVNode)(2,c.Button,{icon:"ban",color:"bad",onClick:function(){return i("cancel")}})]})||(0,o.createComponentVNode)(2,c.Button,{icon:"virus",content:"Start",onClick:function(){return i("jack")}})})||!!C&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{color:"bad",mt:1,children:"Hack aborted."})]})})})})}},88814:function(e,n,t){"use strict";n.__esModule=!0,n.pAIInterface=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.pAIInterface=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.bought,s=l.not_bought,u=l.available_ram,m=l.emotions,p=l.current_emotion;return(0,o.createComponentVNode)(2,a.Window,{width:450,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Emotion",children:m.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{content:e.name,selected:e.id===p,onClick:function(){return i("image",{image:e.id})}},e.id)}))}),(0,o.createComponentVNode)(2,c.Section,{title:"Software (Available RAM: "+u+")",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Installed",children:d.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{content:e.name,selected:e.on,onClick:function(){return i("software",{software:e.id})}},e.id)}))}),(0,o.createComponentVNode)(2,c.LabeledList.Divider),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Downloadable",children:s.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{content:e.name+" ("+e.ram+")",disabled:e.ram>u,onClick:function(){return i("purchase",{purchase:e.id})}},e.id)}))})]})})]})})}},52510:function(e,n,t){"use strict";n.__esModule=!0,n.pAIMedrecords=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.pAIMedrecords=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.records,s=l.general,u=l.medical,m=l.could_not_find;return(0,o.createComponentVNode)(2,a.Window,{width:450,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{children:d.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{content:e.name,onClick:function(){return i("select",{select:e.ref})}},e.ref)}))}),(s||u)&&(0,o.createComponentVNode)(2,c.Section,{title:"Selected Record",children:[!!m&&(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Warning: Failed to find some records. The information below may not be complete."}),(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Name",children:s.name}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Record ID",children:s.id}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Entity Classification",children:s.brain_type}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Sex",children:s.sex}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Species",children:s.species}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Age",children:s.age}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Rank",children:s.rank}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Fingerprint",children:s.fingerprint}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Physical Status",children:s.p_stat}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Mental Status",children:s.m_stat}),(0,o.createComponentVNode)(2,c.LabeledList.Divider),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Blood Type",children:u.b_type}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Minor Disabilities",children:[(0,o.createComponentVNode)(2,c.Box,{children:u.mi_dis}),(0,o.createComponentVNode)(2,c.Box,{children:u.mi_dis_d})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Major Disabilities",children:[(0,o.createComponentVNode)(2,c.Box,{children:u.ma_dis}),(0,o.createComponentVNode)(2,c.Box,{children:u.ma_dis_d})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Allergies",children:[(0,o.createComponentVNode)(2,c.Box,{children:u.alg}),(0,o.createComponentVNode)(2,c.Box,{children:u.alg_d})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Current Diseases",children:[(0,o.createComponentVNode)(2,c.Box,{children:u.cdi}),(0,o.createComponentVNode)(2,c.Box,{children:u.cdi_d})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Important Notes",children:u.notes})]})]})]})})}},59946:function(e,n,t){"use strict";n.__esModule=!0,n.pAISecrecords=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.pAISecrecords=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.records,s=l.general,u=l.security,m=l.could_not_find;return(0,o.createComponentVNode)(2,a.Window,{width:450,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{children:d.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{content:e.name,onClick:function(){return i("select",{select:e.ref})}},e.ref)}))}),(s||u)&&(0,o.createComponentVNode)(2,c.Section,{title:"Selected Record",children:[!!m&&(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Warning: Failed to find some records. The information below may not be complete."}),(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Name",children:s.name}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Record ID",children:s.id}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Entity Classification",children:s.brain_type}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Sex",children:s.sex}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Species",children:s.species}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Age",children:s.age}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Rank",children:s.rank}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Fingerprint",children:s.fingerprint}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Physical Status",children:s.p_stat}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Mental Status",children:s.m_stat}),(0,o.createComponentVNode)(2,c.LabeledList.Divider),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Criminal Status",children:(0,o.createComponentVNode)(2,c.Box,{children:u.criminal})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Minor Crimes",children:[(0,o.createComponentVNode)(2,c.Box,{children:u.mi_crim}),(0,o.createComponentVNode)(2,c.Box,{children:u.mi_crim_d})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Major Crimes",children:[(0,o.createComponentVNode)(2,c.Box,{children:u.ma_crim}),(0,o.createComponentVNode)(2,c.Box,{children:u.ma_crim_d})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Important Notes",children:u.notes})]})]})]})})}},42360:function(e,n,t){"use strict";n.__esModule=!0,n.pda_atmos_scan=void 0;var o=t(39812),r=t(64499),c=t(2497),a=t(71494),i=t(74814);n.pda_atmos_scan=function(e,n){var t=(0,a.useBackend)(n),l=(t.act,t.data.aircontents);return(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,r.filter)((function(e){return"0"!==e.val||"Pressure"===e.entry||"Temperature"===e.entry}))(l).map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.entry,color:(n=e.val,t=e.bad_low,r=e.poor_low,a=e.poor_high,l=e.bad_high,na?"average":n>l?"bad":"good"),children:[e.val,(0,c.decodeHtmlEntities)(e.units)]},e.entry);var n,t,r,a,l}))})})}},84932:function(e,n,t){"use strict";n.__esModule=!0,n.pda_janitor=void 0;var o=t(39812),r=(t(64499),t(2497),t(71494)),c=t(74814);n.pda_janitor=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data.janitor);return(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Current Location",children:0===a.user_loc.x&&(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Unknown"})||(0,o.createComponentVNode)(2,c.Box,{children:[a.user_loc.x," / ",a.user_loc.y]})})}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Mop Locations",children:a.mops&&(0,o.createVNode)(1,"ul",null,a.mops.map((function(e,n){return(0,o.createVNode)(1,"li",null,[e.x,(0,o.createTextVNode)(" / "),e.y,(0,o.createTextVNode)(" - "),e.dir,(0,o.createTextVNode)(" - Status: "),e.status],0,null,n)})),0)||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No mops detected nearby."})}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Mop Bucket Locations",children:a.buckets&&(0,o.createVNode)(1,"ul",null,a.buckets.map((function(e,n){return(0,o.createVNode)(1,"li",null,[e.x,(0,o.createTextVNode)(" / "),e.y,(0,o.createTextVNode)(" - "),e.dir,(0,o.createTextVNode)(" - Capacity: "),e.volume,(0,o.createTextVNode)("/"),e.max_volume],0,null,n)})),0)||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No buckets detected nearby."})}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Cleanbot Locations",children:a.cleanbots&&(0,o.createVNode)(1,"ul",null,a.cleanbots.map((function(e,n){return(0,o.createVNode)(1,"li",null,[e.x,(0,o.createTextVNode)(" / "),e.y,(0,o.createTextVNode)(" - "),e.dir,(0,o.createTextVNode)(" - Status: "),e.status],0,null,n)})),0)||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No cleanbots detected nearby."})}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Janitorial Cart Locations",children:a.carts&&(0,o.createVNode)(1,"ul",null,a.carts.map((function(e,n){return(0,o.createVNode)(1,"li",null,[e.x,(0,o.createTextVNode)(" / "),e.y,(0,o.createTextVNode)(" - "),e.dir,(0,o.createTextVNode)(" - Water Level: "),e.volume,(0,o.createTextVNode)("/"),e.max_volume],0,null,n)})),0)||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No janitorial carts detected nearby."})})]})}},6011:function(e,n,t){"use strict";n.__esModule=!0,n.pda_main_menu=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814);n.pda_main_menu=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.owner,d=i.ownjob,s=i.idInserted,u=i.categories,m=i.pai,p=i.notifying;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Owner",color:"average",children:[l,", ",d]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"ID",children:(0,o.createComponentVNode)(2,c.Button,{icon:"sync",content:"Update PDA Info",disabled:!s,onClick:function(){return a("UpdateInfo")}})})]})}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Functions",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:u.map((function(e){var n=i.apps[e];return n&&n.length?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e,children:n.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{icon:e.ref in p?e.notify_icon:e.icon,iconSpin:e.ref in p,color:e.ref in p?"red":"transparent",content:e.name,onClick:function(){return a("StartProgram",{program:e.ref})}},e.ref)}))},e):null}))})}),!!m&&(0,o.createComponentVNode)(2,c.Section,{level:2,title:"pAI",children:[(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"cog",content:"Configuration",onClick:function(){return a("pai",{option:1})}}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"eject",content:"Eject pAI",onClick:function(){return a("pai",{option:2})}})]})],0)}},93303:function(e,n,t){"use strict";n.__esModule=!0,n.pda_manifest=void 0;var o=t(39812),r=(t(64499),t(71494)),c=t(74814),a=t(22902);n.pda_manifest=function(e,n){var t=(0,r.useBackend)(n);t.act,t.data;return(0,o.createComponentVNode)(2,c.Box,{color:"white",children:(0,o.createComponentVNode)(2,a.CrewManifestContent)})}},65276:function(e,n,t){"use strict";n.__esModule=!0,n.pda_medical=void 0;var o=t(39812),r=(t(64499),t(2497),t(71494)),c=t(74814);n.pda_medical=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.recordsList,d=i.records;if(d){var s=d.general,u=d.medical;return(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Section,{level:2,title:"General Data",children:s&&(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Name",children:s.name}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Sex",children:s.sex}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Species",children:s.species}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Age",children:s.age}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Rank",children:s.rank}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Fingerprint",children:s.fingerprint}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Physical Status",children:s.p_stat}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Mental Status",children:s.m_stat})]})||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"General record lost!"})}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Medical Data",children:u&&(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Blood Type",children:u.b_type}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Minor Disabilities",children:u.mi_dis}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Details",children:u.mi_dis_d}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Major Disabilities",children:u.ma_dis}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Details",children:u.ma_dis_d}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Allergies",children:u.alg}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Details",children:u.alg_d}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Current Disease",children:u.cdi}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Details",children:u.cdi_d}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Important Notes",preserveWhitespace:!0,children:u.notes})]})||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Medical record lost!"})})]})}return(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Select a record",children:l.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{icon:"eye",fluid:!0,content:e.Name,onClick:function(){return a("Records",{target:e.ref})}},e.ref)}))})}},92494:function(e,n,t){"use strict";n.__esModule=!0,n.pda_messenger=void 0;var o=t(39812),r=t(2497),c=t(64499),a=t(71494),i=t(74814);n.pda_messenger=function(e,n){var t=(0,a.useBackend)(n),r=(t.act,t.data);r.auto_scroll,r.convo_name,r.convo_job,r.messages;return r.active_conversation?(0,o.createComponentVNode)(2,d):(0,o.createComponentVNode)(2,s)};var l=function(e,n,t){if(n<0||n>t.length)return e.sent?"TinderMessage_First_Sent":"TinderMessage_First_Received";var o=t[n].sent;return e.sent&&o?"TinderMessage_Subsequent_Sent":e.sent||o?e.sent?"TinderMessage_First_Sent":"TinderMessage_First_Received":"TinderMessage_Subsequent_Received"},d=function(e,n){var t=(0,a.useBackend)(n),d=t.act,s=t.data,u=(s.auto_scroll,s.convo_name),m=s.convo_job,p=s.messages,C=s.active_conversation,h=(s.useRetro,(0,a.useLocalState)(n,"clipboardMode",!1)),N=h[0],V=h[1],b=(0,o.createComponentVNode)(2,i.Section,{level:2,title:"Conversation with "+u+" ("+m+")",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"eye",selected:N,tooltip:"Enter Clipboard Mode",tooltipPosition:"bottom-end",onClick:function(){return V(!N)}}),height:"450px",stretchContents:!0,children:[(0,o.createComponentVNode)(2,i.Section,{style:{height:"97%","overflow-y":"auto"},children:(0,c.filter)((function(e){return e.target===C}))(p).map((function(e,n,t){return(0,o.createComponentVNode)(2,i.Box,{textAlign:e.sent?"right":"left",mb:1,children:(0,o.createComponentVNode)(2,i.Box,{maxWidth:"75%",className:l(e,n-1,t),inline:!0,children:(0,r.decodeHtmlEntities)(e.message)})},n)}))}),(0,o.createComponentVNode)(2,i.Button,{icon:"comment",onClick:function(){return d("Message",{target:C})},content:"Reply"})]});return N&&(b=(0,o.createComponentVNode)(2,i.Section,{level:2,title:"Conversation with "+u+" ("+m+")",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"eye",selected:N,tooltip:"Exit Clipboard Mode",tooltipPosition:"bottom-end",onClick:function(){return V(!N)}}),height:"450px",stretchContents:!0,children:[(0,o.createComponentVNode)(2,i.Section,{style:{height:"97%","overflow-y":"auto"},children:(0,c.filter)((function(e){return e.target===C}))(p).map((function(e,n){return(0,o.createComponentVNode)(2,i.Box,{className:e.sent?"ClassicMessage_Sent":"ClassicMessage_Received",children:[e.sent?"You:":"Them:"," ",(0,r.decodeHtmlEntities)(e.message)]},n)}))}),(0,o.createComponentVNode)(2,i.Button,{icon:"comment",onClick:function(){return d("Message",{target:C})},content:"Reply"})]})),(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Messenger Functions",children:(0,o.createComponentVNode)(2,i.Button,{icon:"trash",color:"bad",onClick:function(){return d("Clear",{option:"Convo"})},children:"Delete Conversations"})})}),b]})},s=function(e,n){var t=(0,a.useBackend)(n),r=t.act,c=t.data,l=(c.auto_scroll,c.convopdas),d=c.pdas,s=c.charges,m=(c.plugins,c.silent),p=c.toff;return(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Messenger Functions",children:[(0,o.createComponentVNode)(2,i.Button,{selected:!m,icon:m?"volume-mute":"volume-up",onClick:function(){return r("Toggle Ringer")},children:["Ringer: ",m?"Off":"On"]}),(0,o.createComponentVNode)(2,i.Button,{color:p?"bad":"green",icon:"power-off",onClick:function(){return r("Toggle Messenger")},children:["Messenger: ",p?"Off":"On"]}),(0,o.createComponentVNode)(2,i.Button,{icon:"bell",onClick:function(){return r("Ringtone")},children:"Set Ringtone"}),(0,o.createComponentVNode)(2,i.Button,{icon:"trash",color:"bad",onClick:function(){return r("Clear",{option:"All"})},children:"Delete All Conversations"})]})}),!p&&(0,o.createComponentVNode)(2,i.Box,{children:[!!s&&(0,o.createComponentVNode)(2,i.Box,{children:[s," charges left."]}),!l.length&&!d.length&&(0,o.createComponentVNode)(2,i.Box,{children:"No other PDAs located."})||(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,u,{title:"Current Conversations",pdas:l,msgAct:"Select Conversation"}),(0,o.createComponentVNode)(2,u,{title:"Other PDAs",pdas:d,msgAct:"Message"})]})]})||(0,o.createComponentVNode)(2,i.Box,{color:"bad",mt:2,children:"Messenger Offline."})]})},u=function(e,n){var t=(0,a.useBackend)(n),r=t.act,c=t.data,l=e.pdas,d=e.title,s=e.msgAct,u=c.charges,m=c.plugins;return l&&l.length?(0,o.createComponentVNode)(2,i.Section,{level:2,title:d,children:l.map((function(e){return(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.Button,{icon:"arrow-circle-down",content:e.Name,onClick:function(){return r(s,{target:e.Reference})}}),!!u&&m.map((function(n){return(0,o.createComponentVNode)(2,i.Button,{icon:n.icon,content:n.name,onClick:function(){return r("Messenger Plugin",{plugin:n.ref,target:e.Reference})}},n.ref)}))]},e.Reference)}))}):(0,o.createComponentVNode)(2,i.Section,{level:2,title:d,children:"No PDAs found."})}},31505:function(e,n,t){"use strict";n.__esModule=!0,n.pda_news=void 0;var o=t(39812),r=(t(64499),t(2497)),c=t(71494),a=t(74814);n.pda_news=function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data),d=r.feeds,s=r.target_feed;return(0,o.createComponentVNode)(2,a.Box,{children:!d.length&&(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Error: No newsfeeds available. Please try again later."})||s&&(0,o.createComponentVNode)(2,i)||(0,o.createComponentVNode)(2,l)})};var i=function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data.target_feed;return(0,o.createComponentVNode)(2,a.Section,{title:(0,r.decodeHtmlEntities)(l.name)+" by "+(0,r.decodeHtmlEntities)(l.author),level:2,buttons:(0,o.createComponentVNode)(2,a.Button,{content:"Back",icon:"chevron-up",onClick:function(){return i("newsfeed",{newsfeed:null})}}),children:l.messages.length&&l.messages.map((function(e){return(0,o.createComponentVNode)(2,a.Section,{children:["- ",(0,r.decodeHtmlEntities)(e.body),!!e.img&&(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createVNode)(1,"img",null,null,1,{src:"data:image/png;base64,"+e.img}),(0,r.decodeHtmlEntities)(e.caption)||null]}),(0,o.createComponentVNode)(2,a.Box,{color:"grey",children:["[",e.message_type," by ",(0,r.decodeHtmlEntities)(e.author)," - ",e.time_stamp,"]"]})]},e.ref)}))||(0,o.createComponentVNode)(2,a.Box,{children:["No stories found in ",l.name,"."]})})},l=function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data,d=l.feeds,s=l.latest_news;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{title:"Recent News",level:2,children:s.length&&(0,o.createComponentVNode)(2,a.Section,{children:s.map((function(e){return(0,o.createComponentVNode)(2,a.Box,{mb:2,children:[(0,o.createVNode)(1,"h5",null,[(0,r.decodeHtmlEntities)(e.channel),(0,o.createComponentVNode)(2,a.Button,{ml:1,icon:"chevron-up",onClick:function(){return i("newsfeed",{newsfeed:e.index})},content:"Go to"})],0),"- ",(0,r.decodeHtmlEntities)(e.body),!!e.img&&(0,o.createComponentVNode)(2,a.Box,{children:["[image omitted, view story for more details]",e.caption||null]}),(0,o.createComponentVNode)(2,a.Box,{fontSize:.9,children:["[",e.message_type," by ",(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:"average",children:e.author})," - ",e.time_stamp,"]"]})]},e.index)}))})||(0,o.createComponentVNode)(2,a.Box,{children:"No recent stories found."})}),(0,o.createComponentVNode)(2,a.Section,{title:"News Feeds",level:2,children:d.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"chevron-up",onClick:function(){return i("newsfeed",{newsfeed:e.index})},content:e.name},e.index)}))})],4)}},66785:function(e,n,t){"use strict";n.__esModule=!0,n.pda_notekeeper=void 0;var o=t(39812),r=t(71494),c=t(74814);n.pda_notekeeper=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.note;return(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:i}})}),(0,o.createComponentVNode)(2,c.Button,{icon:"pen",onClick:function(){return a("Edit")},content:"Edit Notes"})]})}},63853:function(e,n,t){"use strict";n.__esModule=!0,n.pda_power=void 0;var o=t(39812),r=t(71494),c=t(89793);n.pda_power=function(e,n){var t=(0,r.useBackend)(n);t.act,t.data;return(0,o.createComponentVNode)(2,c.PowerMonitorContent)}},20575:function(e,n,t){"use strict";n.__esModule=!0,n.pda_security=void 0;var o=t(39812),r=(t(64499),t(2497),t(71494)),c=t(74814);n.pda_security=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.recordsList,d=i.records;if(d){var s=d.general,u=d.security;return(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Section,{level:2,title:"General Data",children:s&&(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Name",children:s.name}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Sex",children:s.sex}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Species",children:s.species}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Age",children:s.age}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Rank",children:s.rank}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Fingerprint",children:s.fingerprint}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Physical Status",children:s.p_stat}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Mental Status",children:s.m_stat})]})||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"General record lost!"})}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Security Data",children:u&&(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Criminal Status",children:u.criminal}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Minor Crimes",children:u.mi_crim}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Details",children:u.mi_crim_d}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Major Crimes",children:u.ma_crim}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Details",children:u.ma_crim_d}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Important Notes:",preserveWhitespace:!0,children:u.notes||"No data found."})]})||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Security record lost!"})})]})}return(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Select a record",children:l.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{icon:"eye",fluid:!0,content:e.Name,onClick:function(){return a("Records",{target:e.ref})}},e.ref)}))})}},63891:function(e,n,t){"use strict";n.__esModule=!0,n.pda_signaller=void 0;var o=t(39812),r=(t(64499),t(2497),t(71494),t(74814),t(32325));n.pda_signaller=function(e,n){return(0,o.createComponentVNode)(2,r.SignalerContent)}},14947:function(e,n,t){"use strict";n.__esModule=!0,n.pda_status_display=void 0;var o=t(39812),r=(t(64499),t(2497),t(71494)),c=t(74814);n.pda_status_display=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.records;return(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Code",children:[(0,o.createComponentVNode)(2,c.Button,{color:"transparent",icon:"trash",content:"Clear",onClick:function(){return a("Status",{statdisp:"blank"})}}),(0,o.createComponentVNode)(2,c.Button,{color:"transparent",icon:"cog",content:"Evac ETA",onClick:function(){return a("Status",{statdisp:"shuttle"})}}),(0,o.createComponentVNode)(2,c.Button,{color:"transparent",icon:"cog",content:"Message",onClick:function(){return a("Status",{statdisp:"message"})}}),(0,o.createComponentVNode)(2,c.Button,{color:"transparent",icon:"exclamation-triangle",content:"ALERT",onClick:function(){return a("Status",{statdisp:"alert"})}})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Message line 1",children:(0,o.createComponentVNode)(2,c.Button,{content:i.message1+" (set)",icon:"pen",onClick:function(){return a("Status",{statdisp:"setmsg1"})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Message line 2",children:(0,o.createComponentVNode)(2,c.Button,{content:i.message2+" (set)",icon:"pen",onClick:function(){return a("Status",{statdisp:"setmsg2"})}})})]})})}},85143:function(e,n,t){"use strict";n.__esModule=!0,n.pda_supply=void 0;var o=t(39812),r=(t(64499),t(2497),t(71494)),c=t(74814);n.pda_supply=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data.supply);return(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Location",children:a.shuttle_moving?"Moving to station "+a.shuttle_eta:"Shuttle at "+a.shuttle_loc})}),(0,o.createComponentVNode)(2,c.Section,{children:[(0,o.createComponentVNode)(2,c.Box,{color:"good",bold:!0,children:"Current Approved Orders"}),a.approved.length&&a.approved.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{color:"average",children:["#",e.Number," - ",e.Name," approved by ",e.OrderedBy,(0,o.createVNode)(1,"br"),e.Comment]},e.Number)}))||(0,o.createComponentVNode)(2,c.Box,{children:"None!"}),(0,o.createComponentVNode)(2,c.Box,{color:"good",bold:!0,children:"Current Requested Orders"}),a.requests.length&&a.requests.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{color:"average",children:["#",e.Number," - ",e.Name," requested by ",e.OrderedBy,(0,o.createVNode)(1,"br"),e.Comment]},e.Number)}))||(0,o.createComponentVNode)(2,c.Box,{children:"None!"})]})]})}},73218:function(e,n,t){"use strict";n.__esModule=!0,n.getRoutedComponent=n.routingError=void 0;var o=t(39812),r=t(71494),c=(t(30098),t(85952)),a=t(8156),i=function(e,n){return function(){return(0,o.createComponentVNode)(2,c.Window,{children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:["notFound"===e&&(0,o.createVNode)(1,"div",null,[(0,o.createTextVNode)("Interface "),(0,o.createVNode)(1,"b",null,n,0),(0,o.createTextVNode)(" was not found.")],4),"missingExport"===e&&(0,o.createVNode)(1,"div",null,[(0,o.createTextVNode)("Interface "),(0,o.createVNode)(1,"b",null,n,0),(0,o.createTextVNode)(" is missing an export.")],4)]})})}};n.routingError=i;var l=function(){return(0,o.createComponentVNode)(2,c.Window,{children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0})})};n.getRoutedComponent=function(e){var n=e.getState(),t=(0,r.selectBackend)(n),o=t.suspended,c=t.config;if(o)return l;for(var d,s=null==c?void 0:c["interface"],u=[function(e){return"./"+e+".tsx"},function(e){return"./"+e+".js"},function(e){return"./"+e+"/index.tsx"},function(e){return"./"+e+"/index.js"}];!d&&u.length>0;){var m=u.shift()(s);try{d=a(m)}catch(C){if("MODULE_NOT_FOUND"!==C.code)throw C}}if(!d)return i("notFound",s);var p=d[s];return p||i("missingExport",s)}},56285:function(){},58602:function(){},48979:function(){},92433:function(){},35070:function(){},86455:function(){},41821:function(){},83243:function(){},97585:function(){},64197:function(){},87266:function(){},99195:function(){},72916:function(){},75168:function(e,n,t){var o={"./pda_atmos_scan.js":42360,"./pda_janitor.js":84932,"./pda_main_menu.js":6011,"./pda_manifest.js":93303,"./pda_medical.js":65276,"./pda_messenger.js":92494,"./pda_news.js":31505,"./pda_notekeeper.js":66785,"./pda_power.js":63853,"./pda_security.js":20575,"./pda_signaller.js":63891,"./pda_status_display.js":14947,"./pda_supply.js":85143};function r(e){var n=c(e);return t(n)}function c(e){if(!t.o(o,e)){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return o[e]}r.keys=function(){return Object.keys(o)},r.resolve=c,e.exports=r,r.id=75168},8156:function(e,n,t){var o={"./AICard":34129,"./AICard.js":34129,"./APC":73405,"./APC.js":73405,"./AccountsTerminal":20832,"./AccountsTerminal.js":20832,"./AdminShuttleController":19007,"./AdminShuttleController.js":19007,"./AgentCard":51104,"./AgentCard.js":51104,"./AiAirlock":47330,"./AiAirlock.js":47330,"./AiRestorer":33084,"./AiRestorer.js":33084,"./AiSupermatter":597,"./AiSupermatter.js":597,"./AirAlarm":58444,"./AirAlarm.js":58444,"./AlertModal":24053,"./AlertModal.js":24053,"./AlgaeFarm":34847,"./AlgaeFarm.js":34847,"./AppearanceChanger":65145,"./AppearanceChanger.js":65145,"./ArcadeBattle":86776,"./ArcadeBattle.js":86776,"./AreaScrubberControl":13496,"./AreaScrubberControl.js":13496,"./AssemblyInfrared":56404,"./AssemblyInfrared.js":56404,"./AssemblyProx":29632,"./AssemblyProx.js":29632,"./AssemblyTimer":48661,"./AssemblyTimer.js":48661,"./AtmosAlertConsole":38531,"./AtmosAlertConsole.js":38531,"./AtmosControl":46566,"./AtmosControl.js":46566,"./AtmosFilter":2726,"./AtmosFilter.js":2726,"./AtmosMixer":61505,"./AtmosMixer.js":61505,"./Autolathe":99994,"./Autolathe.js":99994,"./Batteryrack":62586,"./Batteryrack.js":62586,"./BeaconLocator":25116,"./BeaconLocator.js":25116,"./Biogenerator":20813,"./Biogenerator.js":20813,"./BodyDesigner":81850,"./BodyDesigner.js":81850,"./BodyScanner":6060,"./BodyScanner.js":6060,"./BombTester":74639,"./BombTester.js":74639,"./BotanyEditor":48693,"./BotanyEditor.js":48693,"./BotanyIsolator":25486,"./BotanyIsolator.js":25486,"./BrigTimer":61956,"./BrigTimer.js":61956,"./CameraConsole":3180,"./CameraConsole.js":3180,"./Canister":94477,"./Canister.js":94477,"./Canvas":55636,"./Canvas.js":55636,"./CasinoPrizeDispenser":25131,"./CasinoPrizeDispenser.js":25131,"./CharacterDirectory":47947,"./CharacterDirectory.js":47947,"./ChemDispenser":22223,"./ChemDispenser.js":22223,"./ChemMaster":34859,"./ChemMaster.js":34859,"./ClawMachine":83919,"./ClawMachine.js":83919,"./Cleanbot":74351,"./Cleanbot.js":74351,"./CloningConsole":98213,"./CloningConsole.js":98213,"./ColorMate":32278,"./ColorMate.js":32278,"./CommunicationsConsole":130,"./CommunicationsConsole.js":130,"./Communicator":4220,"./Communicator.js":4220,"./ComputerFabricator":2174,"./ComputerFabricator.js":2174,"./CookingAppliance":26090,"./CookingAppliance.js":26090,"./CrewManifest":22902,"./CrewManifest.js":22902,"./CrewMonitor":96158,"./CrewMonitor.js":96158,"./Cryo":99798,"./Cryo.js":99798,"./CryoStorage":54234,"./CryoStorage.js":54234,"./CryoStorageVr":66384,"./CryoStorageVr.js":66384,"./DNAForensics":99579,"./DNAForensics.js":99579,"./DNAModifier":21849,"./DNAModifier.js":21849,"./DestinationTagger":59305,"./DestinationTagger.js":59305,"./DiseaseSplicer":10015,"./DiseaseSplicer.js":10015,"./DishIncubator":31066,"./DishIncubator.js":31066,"./DisposalBin":19095,"./DisposalBin.js":19095,"./DroneConsole":29345,"./DroneConsole.js":29345,"./EmbeddedController":84122,"./EmbeddedController.js":84122,"./ExonetNode":33777,"./ExonetNode.js":33777,"./ExosuitFabricator":95481,"./ExosuitFabricator.js":95481,"./Farmbot":95598,"./Farmbot.js":95598,"./Fax":17569,"./Fax.js":17569,"./FileCabinet":58087,"./FileCabinet.js":58087,"./Floorbot":21902,"./Floorbot.js":21902,"./GasPump":309,"./GasPump.js":309,"./GasTemperatureSystem":26049,"./GasTemperatureSystem.js":26049,"./GeneralAtmoControl":2753,"./GeneralAtmoControl.js":2753,"./GeneralRecords":57753,"./GeneralRecords.js":57753,"./Gps":25230,"./Gps.js":25230,"./GravityGenerator":4475,"./GravityGenerator.js":4475,"./GuestPass":95075,"./GuestPass.js":95075,"./GyrotronControl":31875,"./GyrotronControl.js":31875,"./Holodeck":7908,"./Holodeck.js":7908,"./ICAssembly":12676,"./ICAssembly.js":12676,"./ICCircuit":42394,"./ICCircuit.js":42394,"./ICDetailer":81039,"./ICDetailer.js":81039,"./ICPrinter":21687,"./ICPrinter.js":21687,"./IDCard":48522,"./IDCard.js":48522,"./IdentificationComputer":76952,"./IdentificationComputer.js":76952,"./InputModal":44570,"./InputModal.js":44570,"./InventoryPanel":53541,"./InventoryPanel.js":53541,"./InventoryPanelHuman":46638,"./InventoryPanelHuman.js":46638,"./IsolationCentrifuge":45e3,"./IsolationCentrifuge.js":45e3,"./JanitorCart":83994,"./JanitorCart.js":83994,"./Jukebox":68741,"./Jukebox.js":68741,"./LawManager":13204,"./LawManager.js":13204,"./ListInput":58802,"./ListInput.js":58802,"./LookingGlass":36104,"./LookingGlass.js":36104,"./MechaControlConsole":74714,"./MechaControlConsole.js":74714,"./Medbot":17888,"./Medbot.js":17888,"./MedicalRecords":37610,"./MedicalRecords.js":37610,"./MessageMonitor":287,"./MessageMonitor.js":287,"./Microwave":75412,"./Microwave.js":75412,"./MiningOreProcessingConsole":35016,"./MiningOreProcessingConsole.js":35016,"./MiningStackingConsole":87314,"./MiningStackingConsole.js":87314,"./MiningVendor":62012,"./MiningVendor.js":62012,"./MuleBot":6479,"./MuleBot.js":6479,"./NIF":46157,"./NIF.js":46157,"./NTNetRelay":79630,"./NTNetRelay.js":79630,"./Newscaster":60042,"./Newscaster.js":60042,"./NoticeBoard":31669,"./NoticeBoard.js":31669,"./NtosAccessDecrypter":63231,"./NtosAccessDecrypter.js":63231,"./NtosArcade":79760,"./NtosArcade.js":79760,"./NtosAtmosControl":97908,"./NtosAtmosControl.js":97908,"./NtosCameraConsole":63645,"./NtosCameraConsole.js":63645,"./NtosCommunicationsConsole":74093,"./NtosCommunicationsConsole.js":74093,"./NtosConfiguration":55513,"./NtosConfiguration.js":55513,"./NtosCrewMonitor":17539,"./NtosCrewMonitor.js":17539,"./NtosDigitalWarrant":20025,"./NtosDigitalWarrant.js":20025,"./NtosEmailAdministration":11325,"./NtosEmailAdministration.js":11325,"./NtosEmailClient":77006,"./NtosEmailClient.js":77006,"./NtosFileManager":86441,"./NtosFileManager.js":86441,"./NtosIdentificationComputer":87369,"./NtosIdentificationComputer.js":87369,"./NtosMain":59543,"./NtosMain.js":59543,"./NtosNetChat":73883,"./NtosNetChat.js":73883,"./NtosNetDos":83908,"./NtosNetDos.js":83908,"./NtosNetDownloader":83305,"./NtosNetDownloader.js":83305,"./NtosNetMonitor":6806,"./NtosNetMonitor.js":6806,"./NtosNetTransfer":4363,"./NtosNetTransfer.js":4363,"./NtosNewsBrowser":23225,"./NtosNewsBrowser.js":23225,"./NtosOvermapNavigation":3839,"./NtosOvermapNavigation.js":3839,"./NtosPowerMonitor":54698,"./NtosPowerMonitor.js":54698,"./NtosRCON":17086,"./NtosRCON.js":17086,"./NtosRevelation":69480,"./NtosRevelation.js":69480,"./NtosShutoffMonitor":93990,"./NtosShutoffMonitor.js":93990,"./NtosStationAlertConsole":76124,"./NtosStationAlertConsole.js":76124,"./NtosSupermatterMonitor":22475,"./NtosSupermatterMonitor.js":22475,"./NtosUAV":66744,"./NtosUAV.js":66744,"./NtosWordProcessor":19458,"./NtosWordProcessor.js":19458,"./OmniFilter":18326,"./OmniFilter.js":18326,"./OmniMixer":78588,"./OmniMixer.js":78588,"./OperatingComputer":48826,"./OperatingComputer.js":48826,"./OvermapDisperser":51888,"./OvermapDisperser.js":51888,"./OvermapEngines":25123,"./OvermapEngines.js":25123,"./OvermapFull":63836,"./OvermapFull.js":63836,"./OvermapHelm":89380,"./OvermapHelm.js":89380,"./OvermapNavigation":12640,"./OvermapNavigation.js":12640,"./OvermapShieldGenerator":84031,"./OvermapShieldGenerator.js":84031,"./OvermapShipSensors":51932,"./OvermapShipSensors.js":51932,"./ParticleAccelerator":57966,"./ParticleAccelerator.js":57966,"./PartsLathe":80374,"./PartsLathe.js":80374,"./PathogenicIsolator":83987,"./PathogenicIsolator.js":83987,"./Pda":72586,"./Pda.js":72586,"./PersonalCrafting":67589,"./PersonalCrafting.js":67589,"./Photocopier":9527,"./Photocopier.js":9527,"./PipeDispenser":92310,"./PipeDispenser.js":92310,"./PlantAnalyzer":38575,"./PlantAnalyzer.js":38575,"./PointDefenseControl":17599,"./PointDefenseControl.js":17599,"./PortableGenerator":46104,"./PortableGenerator.js":46104,"./PortablePump":82564,"./PortablePump.js":82564,"./PortableScrubber":24901,"./PortableScrubber.js":24901,"./PortableTurret":31695,"./PortableTurret.js":31695,"./PowerMonitor":89793,"./PowerMonitor.js":89793,"./PressureRegulator":81121,"./PressureRegulator.js":81121,"./PrisonerManagement":14210,"./PrisonerManagement.js":14210,"./RCON":43996,"./RCON.js":43996,"./RIGSuit":92141,"./RIGSuit.js":92141,"./Radio":17481,"./Radio.js":17481,"./RapidPipeDispenser":29509,"./RapidPipeDispenser.js":29509,"./RequestConsole":53976,"./RequestConsole.js":53976,"./ResearchConsole":48639,"./ResearchConsole.js":48639,"./ResearchServerController":35606,"./ResearchServerController.js":35606,"./ResleevingConsole":86330,"./ResleevingConsole.js":86330,"./ResleevingPod":88359,"./ResleevingPod.js":88359,"./RoboticsControlConsole":24455,"./RoboticsControlConsole.js":24455,"./RogueZones":52330,"./RogueZones.js":52330,"./RustCoreMonitor":59412,"./RustCoreMonitor.js":59412,"./RustFuelControl":59327,"./RustFuelControl.js":59327,"./Secbot":54943,"./Secbot.js":54943,"./SecureSafe":57436,"./SecureSafe.js":57436,"./SecurityRecords":71915,"./SecurityRecords.js":71915,"./SeedStorage":93550,"./SeedStorage.js":93550,"./ShieldCapacitor":16765,"./ShieldCapacitor.js":16765,"./ShieldGenerator":79229,"./ShieldGenerator.js":79229,"./ShutoffMonitor":89957,"./ShutoffMonitor.js":89957,"./ShuttleControl":34404,"./ShuttleControl.js":34404,"./Signaler":32325,"./Signaler.js":32325,"./Sleeper":80646,"./Sleeper.js":80646,"./SmartVend":55896,"./SmartVend.js":55896,"./Smes":20561,"./Smes.js":20561,"./SolarControl":21633,"./SolarControl.js":21633,"./SpaceHeater":57762,"./SpaceHeater.js":57762,"./Stack":58215,"./Stack.js":58215,"./StationAlertConsole":32015,"./StationAlertConsole.js":32015,"./StationBlueprints":52649,"./StationBlueprints.js":52649,"./SuitCycler":72e3,"./SuitCycler.js":72e3,"./SuitStorageUnit":80748,"./SuitStorageUnit.js":80748,"./SupermatterMonitor":6951,"./SupermatterMonitor.js":6951,"./SupplyConsole":12431,"./SupplyConsole.js":12431,"./TEGenerator":30111,"./TEGenerator.js":30111,"./Tank":58457,"./Tank.js":58457,"./TankDispenser":38754,"./TankDispenser.js":38754,"./TelecommsLogBrowser":73754,"./TelecommsLogBrowser.js":73754,"./TelecommsMachineBrowser":29441,"./TelecommsMachineBrowser.js":29441,"./TelecommsMultitoolMenu":86756,"./TelecommsMultitoolMenu.js":86756,"./Teleporter":18509,"./Teleporter.js":18509,"./TelesciConsole":62555,"./TelesciConsole.js":62555,"./TimeClock":55096,"./TimeClock.js":55096,"./TransferValve":24389,"./TransferValve.js":24389,"./TurbineControl":95893,"./TurbineControl.js":95893,"./Turbolift":62542,"./Turbolift.js":62542,"./Uplink":89761,"./Uplink.js":89761,"./Vending":61321,"./Vending.js":61321,"./VolumePanel":93147,"./VolumePanel.js":93147,"./VorePanel":24630,"./VorePanel.js":24630,"./Wires":21162,"./Wires.js":21162,"./XenoarchArtifactAnalyzer":81522,"./XenoarchArtifactAnalyzer.js":81522,"./XenoarchArtifactHarvester":40875,"./XenoarchArtifactHarvester.js":40875,"./XenoarchDepthScanner":88835,"./XenoarchDepthScanner.js":88835,"./XenoarchHandheldPowerUtilizer":5622,"./XenoarchHandheldPowerUtilizer.js":5622,"./XenoarchReplicator":53702,"./XenoarchReplicator.js":53702,"./XenoarchSpectrometer":13153,"./XenoarchSpectrometer.js":13153,"./XenoarchSuspension":19820,"./XenoarchSuspension.js":19820,"./common/AtmosControls":71739,"./common/AtmosControls.js":71739,"./common/BeakerContents":48229,"./common/BeakerContents.js":48229,"./common/ComplexModal":16007,"./common/ComplexModal.js":16007,"./common/FullscreenNotice":67861,"./common/FullscreenNotice.js":67861,"./common/InterfaceLockNoticeBox":21451,"./common/InterfaceLockNoticeBox.js":21451,"./common/LoginInfo":28117,"./common/LoginInfo.js":28117,"./common/LoginScreen":1192,"./common/LoginScreen.js":1192,"./common/Mining":21526,"./common/Mining.js":21526,"./common/Overmap":40754,"./common/Overmap.js":40754,"./common/PortableAtmos":34227,"./common/PortableAtmos.js":34227,"./common/RankIcon":14959,"./common/RankIcon.js":14959,"./common/TemporaryNotice":36355,"./common/TemporaryNotice.js":36355,"./pAIAtmos":28840,"./pAIAtmos.js":28840,"./pAIDirectives":47132,"./pAIDirectives.js":47132,"./pAIDoorjack":52852,"./pAIDoorjack.js":52852,"./pAIInterface":88814,"./pAIInterface.js":88814,"./pAIMedrecords":52510,"./pAIMedrecords.js":52510,"./pAISecrecords":59946,"./pAISecrecords.js":59946,"./pda/pda_atmos_scan":42360,"./pda/pda_atmos_scan.js":42360,"./pda/pda_janitor":84932,"./pda/pda_janitor.js":84932,"./pda/pda_main_menu":6011,"./pda/pda_main_menu.js":6011,"./pda/pda_manifest":93303,"./pda/pda_manifest.js":93303,"./pda/pda_medical":65276,"./pda/pda_medical.js":65276,"./pda/pda_messenger":92494,"./pda/pda_messenger.js":92494,"./pda/pda_news":31505,"./pda/pda_news.js":31505,"./pda/pda_notekeeper":66785,"./pda/pda_notekeeper.js":66785,"./pda/pda_power":63853,"./pda/pda_power.js":63853,"./pda/pda_security":20575,"./pda/pda_security.js":20575,"./pda/pda_signaller":63891,"./pda/pda_signaller.js":63891,"./pda/pda_status_display":14947,"./pda/pda_status_display.js":14947,"./pda/pda_supply":85143,"./pda/pda_supply.js":85143};function r(e){var n=c(e);return t(n)}function c(e){if(!t.o(o,e)){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return o[e]}r.keys=function(){return Object.keys(o)},r.resolve=c,e.exports=r,r.id=8156}},t={};function o(e){var r=t[e];if(r!==undefined)return r.exports;var c=t[e]={exports:{}};return n[e](c,c.exports,o),c.exports}o.m=n,e=[],o.O=function(n,t,r,c){if(!t){var a=Infinity;for(d=0;d=c)&&Object.keys(o.O).every((function(e){return o.O[e](t[l])}))?t.splice(l--,1):(i=!1,c0&&e[d-1][2]>c;d--)e[d]=e[d-1];e[d]=[t,r,c]},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},function(){var e={764:0};o.O.j=function(n){return 0===e[n]};var n=function(n,t){var r,c,a=t[0],i=t[1],l=t[2],d=0;for(r in i)o.o(i,r)&&(o.m[r]=i[r]);for(l&&l(o),n&&n(t);d