From 8e0552a7886ee187e0970dcb6a68516cfd58751f Mon Sep 17 00:00:00 2001 From: Casey Date: Sat, 19 Mar 2022 23:10:15 -0400 Subject: [PATCH 01/11] Colts, Revolvers, and Tasers --- code/game/objects/items/gunbox.dm | 33 ++++- code/game/objects/random/guns_and_ammo.dm | 6 +- .../crates_lockers/closets/secure/security.dm | 6 + .../silicon/robot/robot_modules/swarm.dm | 9 ++ .../projectiles/ammunition/magazines.dm | 4 + code/modules/projectiles/ammunition/rounds.dm | 19 +++ code/modules/projectiles/guns/energy/stun.dm | 121 +++++++++++++-- .../projectiles/guns/projectile/pistol.dm | 74 ++++++--- .../projectiles/guns/projectile/revolver.dm | 140 +++++++++++++----- .../guns/projectile/revolver_vr.dm | 100 +------------ code/modules/xenobio/items/weapons.dm | 14 +- icons/obj/gun.dmi | Bin 99016 -> 102472 bytes maps/stellardelight/stellar_delight1.dmm | 1 - 13 files changed, 355 insertions(+), 172 deletions(-) diff --git a/code/game/objects/items/gunbox.dm b/code/game/objects/items/gunbox.dm index 6089ad76b2..7b998c169d 100644 --- a/code/game/objects/items/gunbox.dm +++ b/code/game/objects/items/gunbox.dm @@ -1,15 +1,38 @@ +/* + * Detective 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) + +/* + * Detective 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/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/structures/crates_lockers/closets/secure/security.dm b/code/game/objects/structures/crates_lockers/closets/secure/security.dm index 0e99b5c040..cc34f0cd41 100644 --- a/code/game/objects/structures/crates_lockers/closets/secure/security.dm +++ b/code/game/objects/structures/crates_lockers/closets/secure/security.dm @@ -242,9 +242,15 @@ starts_with = list( /obj/item/clothing/accessory/badge/holo/detective, +<<<<<<< HEAD /obj/item/clothing/gloves/forensic, //CHOMP Edit replaces black gloves /obj/item/gunbox, //CHOMP Edit undoes vorestation removal and adds back gunbox /obj/item/weapon/gun/energy/stunrevolver/vintage, +======= + /obj/item/clothing/gloves/black, + ///obj/item/gunbox, // VOREStation Removal + /obj/item/gunbox/stun, +>>>>>>> e45c901f7c... Merge pull request #12443 from GhostActual/detective_guns /obj/item/weapon/storage/belt/detective, /obj/item/weapon/storage/box/evidence, /obj/item/device/radio/headset/headset_sec, 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 f125b4b0eb..09c7704cff 100644 --- a/code/modules/mob/living/silicon/robot/robot_modules/swarm.dm +++ b/code/modules/mob/living/silicon/robot/robot_modules/swarm.dm @@ -27,3 +27,12 @@ ..() src.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 \ No newline at end of file diff --git a/code/modules/projectiles/ammunition/magazines.dm b/code/modules/projectiles/ammunition/magazines.dm index b678ec8d9e..d5dd39e82f 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)" diff --git a/code/modules/projectiles/ammunition/rounds.dm b/code/modules/projectiles/ammunition/rounds.dm index 5609e6f46a..45d2d5aad5 100644 --- a/code/modules/projectiles/ammunition/rounds.dm +++ b/code/modules/projectiles/ammunition/rounds.dm @@ -56,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 51826a2902..8f2485b2a3 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 = 160 //Chompedit: Reduced from 400 to 160 to match VR's, which we also use. recharge_time = 5 //ChompEdit: reduced from 7 to 5, 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/pistol.dm b/code/modules/projectiles/guns/projectile/pistol.dm index 697527c78d..669a0d81c5 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" @@ -23,6 +26,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 @@ -53,15 +59,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] @@ -77,11 +81,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 @@ -93,9 +101,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" @@ -105,18 +113,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" @@ -133,6 +144,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." @@ -165,6 +179,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." @@ -188,6 +205,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." @@ -242,6 +262,9 @@ else icon_state = "pistol" +/* + * Silencer + */ /obj/item/weapon/silencer name = "silencer" desc = "a silencer" @@ -249,6 +272,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." @@ -283,6 +309,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~ @@ -296,6 +325,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." @@ -324,6 +356,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." @@ -342,8 +377,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 0352678397..2c1be3da9c 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" @@ -149,11 +194,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) @@ -164,13 +214,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) @@ -259,24 +316,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/xenobio/items/weapons.dm b/code/modules/xenobio/items/weapons.dm index 80a07ae506..68437ee56e 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,21 +43,29 @@ 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. +<<<<<<< HEAD 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." recoil_mode = 0 //CHOMP Addition +======= + 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." +>>>>>>> e45c901f7c... Merge pull request #12443 from GhostActual/detective_guns /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" @@ -72,6 +79,7 @@ self_recharge = 1 use_external_power = 1 recharge_time = 3 +*/ /obj/item/projectile/beam/stun/xeno icon_state = "omni" diff --git a/icons/obj/gun.dmi b/icons/obj/gun.dmi index 9de92931db421f79eb8a4b351c0965f389a4766b..14147bf9fb5e3793f0e3147029db41ccacfcfa56 100644 GIT binary patch literal 102472 zcmbSybyQSe+x8hzIz_rg1ZkD-loBv$7(kKkl$b$6kX8hg5NV`F8mS?rq@^1~Vi>xa z_zutWd!O~L^?mR9)_VUqd(NELXP>?Aec#u8UHiOyq^Cha%1jCX0EL#O+7kdE2)^8i z3BeAOE1k(c3qLW{$Q{NA^NJ!hf~14;9@96 zor*r_lQIF>Av=YMwNu%h$DH48Z9|bn#@C%S{^r;Y-ESe^ExHBcp)-EjgT2^-!Z8;Y z&`MW03<*yfzw>mkdEg6s#YKbU^Ygha)Ye@jaz?9q?ra;L&R{XnJOC3Yad&w!4{JaQ zBzadNDp#>{(R4{$xQi>l+gxnY2Mp+yqw7Qjps}zdces3=k42%0&RX{Eq+Jj0Y$KtX z?BmBJA1&xDntpbPC7@zmY(BRfl*dY#<~$Y7%CisCE%$qjGrTd8KTT{}+P|`+&^7FV8bIfUKkZ;BfmnRN%@e;_Ipt%MEpZW`}bOm85VADSv z$M@__v{Do0S^5u!&UefY+J`7^{ctpPntAuo?TrE9o7PBGOr+X+>c*Ed@x@cP_2=f4!3ZBdu@ z=dg{(aU)!ZVT3H=*jGz{lzh#@a+)Vs86q!Cio(jD&x5Jh?)&SQ{|(f38(g=88N z^bZOKZ`sl-o!uupOqf95Mk_1cue*t-D?Vf)xbx@MN&1XF3HzjCe`Y?q;1AW7V!xv9 zOupz!zdvwE&ez(1rE9r1)@I-GA%{x^6X!$8qFD}x!ZSOhkK5S)WRtN_ zNBw(~Ku2|uEVV8FB{9m?BQ4NB{UM(krM}j4 zP#}F*4clsosM7mr2NsPgQECBs-v24Y->=U_ol2k@=!kAFfQ7%YXu7WerBdEyfdLD5 z+YDHXIZ?8%6u#MLs0zLjoIb{@aDC$(qvCDZRPpSFPQ zjac#7=155-Lb~GY9vLN(TFx+~5!Jo3fK)j$c{29z?ANHA<3kv-G_-=~2V!McdejUb zeb4<$>nd&oE%}HX3X@9^>>$vymTTecCLqg}`_B1`fW_Ce_S$&Xi-Lo;(H;R=#UN** znct4OQ3Jw~bcCeuI)27GD$VD9xj*%-6*QGR5E(pJ$t2@Q5`1pT#j6kQ_bnN9Zm$ri^FJ?EztB;CF%kORx#Nxy zN+lWfK-zU#XTq9SV8Y0q)3&Q(DF4e9gphfFPBLFWYHm-D&YN4(_GC}~G$_1^T%BF6Hd}~ zQe-Krhwif2j=$3-{a!bk<0#NV;Z82CE||GX?(E{l4wc=Y~TEFBS#_vZ(Rsb0Za zk7ZhN`Pmk4bbVKw_!(7nWE59)^ehJ4!2M^DMMtxDXsrUi6P6`DxZ!iLsUI$(H{!Fv z&bzm6OdZdDZEyWC_`{>8%k5b5#{Smy{Y_0V*r;ZO>F+moTlw!TGYcmQuhW_~F({Cb zWR6psvPMJPG<93^lbv}QQzswdBF+3Bhf>jp9nI8O1XB)hGeOG_|8U=K?Fc&9bg z?0;)10>akh6TZxC+Mu#GTxy$H^9(#;PdyjDW^+FmPe_Nbqh`Sbc3VmHc zywdD~UL?d7d`yVrT}rr(buUuR2rpVfhZSY9#TC6V4=j2k6jEfBVNmU0B>VW$w{jWT ztnQyl{G~8^WnD+Fx@)_BBWtenT944f=*~$L7=lc{awMHhaI( zMZ7wcu{`zD?J`qc!J#r1-G|H*vDfqX!sZJ7mwTcag_3K{1)s;x3*NP8GR}@^GPX_+ zs8rLcavPz~E-Pq8D-3S31&HJ4jnDEoJx2VN=@sYTUUE!F4+?VP@)ON8M!!|&46~b8 zcdw}T=u~&hLqn*fnhELv4xLXYZ0W z7ID|dxk9A(3@Xo{eTMc+LLWy=p1Za>tSTxZX$S|F=bw$eDZM3|u77`Dm+|m{quc)7 zilKlynkt&{UccX}v}?LFinQcHjnDVQM}D+E$aS`VU0kzKTSJq~l=Q?&Iaf9YvmSrL zRA{AwReGzO`gvoMomvmo0}_GF)0>6uL-B#=lMrWkJYQdfeC)mpRZinfJKxT+o3� zkoJfe>vusKB0{x3fXJFq?9u(NZ_*(dg|;?syxumw;%2g5>q!*7s~WyaVjT9IXT$`Z z8jQpWZFl0Po=R;#yw*zgjpl90V)$?30_P{NMNV~|hR5P2DMV82^>c-(B~1h}J>qiF zsAH|Ez8h^D+k38G*j}HfLCsF7c{PF|13IT+%knmvH*Ml?TETBxx!$yb-gMV*JEM1y zO!)pft834-P5F#48P~yl!_86|T}f-nkUd3$3GdNs5qann5@c0DyG53mVF~@Tb#*G- z&ZkW)bwouBJwz@lkJTUdfBQm9VLKGo|XzT4V)H>)Ukho(CPN?)3|7&yJGi&kCd_ zMYiF#_QO?UY9i~agumK1z2?t(1J}do{_eeQ5#2!*#f_~c&$cFAP0if6(;T8-n7N2+e$HT^Y)D;5OuW8X zUmsORKc%mBb@<7Rl1HX?I`Q_Yxz5w~kcuOpUwPOiiuL>+@Pry7>~G)q9F+b1aNc&_ z_m$Y|*RMIls8xu$!l*|MHu4Th|Glq5OhVq2WC4M{PfX;F#IODR>+sQx;a``j5N}W( zb_1Wl6EOq5ADUhf-}-k2g&FKjfJjHx;?Pq22x{2anEcH@HII$1Is%>^9$_|p$s`&2 zOh!>0LO;Vl(fTX+G6TUPSUIbC;0>h{(*J6M3hSO0 znPvDR%C7+tN;OwLlvOy4@gt7YgiLFQ2Nm&hC(_{Ue;9slO&x@zdAmp|Z3jVa|{S?v)7 z`%W!eTTT#Qe}DhRkBdSiW;DN_zD-4?-2R~0MQCDlL-s}cTOk$v>D5`EF4tL;F9oBr zE9lwh-~2?{Ao5gVO6yo<4mK z9@yI2qDdA1NAKW&e|=VQaNr*=FISPXKS)Nrw_%6%lA77xa=XTv7+bZCPZjo z>9+ExLX5D27jpv{uZ2>6K-Wwgd_n<0Cq;M|XvxaqX$uJO@h?g$_dnv;z=xlXsYF2B zrYdYgimBHGo!)WnrmzB?L%*2@RG!-&)YEo+JeF;jXc0*PtTFNd$9x`(8FH^(((rWZ81rwUM_2LDR0~`&?BZ7q2Lpu{VeqYh zL|%P*U@??RVb|_+vq?$>hyNoW7}>a+tcQc{DMgrv0(CF#|JFHpp40m1kaJT6nC z?`$*^cWd2C#*Y~|-dPX<651@hy{p|Yr|vgy+~Aa#pR+oTi6Ngtt#rlrSv0UPo1aO# z&I^7_Ny%w!WPSJU9p&guynu*EN|TSISdFd#c>jDcqM82&9i0|Z^0-b0$3REd1K!Bq zxxlU0>I?yu9OwFxKWHS}f`Y%S&bzxc3;KppN0ckG z@@FD%sm)(r7w%(yx3eFgy^N9W;3aqabX@W4yoL>QCNUg}^8yIxVh(^+ z#*28gK;QRMnb7PHGd*z9nsN=Zd3bnSt(@9Al+V!P#d6Tna_jE&(VwKJN5~y2-um;m zdGS8d8C4`-vr<`E2{97T�dC4>4kT+KX>{QA_OU(q!U~-9!<&wNE|-?VVfE`mm5o z%IlBDOG+ehD3M0?@~)>!;J60|441J3H=jEJ=YH7fsUJCqf*FC4YI@x-*`3DGrAfzz zg(>cVH4-Yt!>`or>~XvX@_CRFE=oW}MMc#1CwUJCjgaEsPY-X0g@v`eyr;Dy{NvO* z9Z|U3jqi+GZSzk2n{(%;E`ia>nO5TMtir##>H0XwhAMdyEu-z9P120(N(^pSE-4P9!BIMMg)r=YG)obl#J3iso=h9_XE<9Grg|B~3MOJ-xc) zwKix1e@~G3pa|uv8ej2_ab#gKx{t&L=uVOV(B72vjBBZLEvxkG6FA*xlCFl)Cf z6KLV0j#@t=OxbyT>D+;qO#HqW`|DE@@V)6J=f&7F17FI2ogq?rpPlU~yx%z-qCb@rf_(F(qYZO>_9hxs!^@N^uZRTmiDO zv#;E}dzXFZq{gqF9sYVry}zAGo=>i6Q%gDBw|n*TDQ>-%(cj*r;D9JRB74kI?NQxP zowJPRPj39!{mjw8R}^nldcMIqWo22^)z#V2zBPUgR8d@l+}x@T!_jeZ$>Fjs%)9sQ z-P;|I-H|ent87^>;|K<-YS%ZsWQ^+wN+2S4@6wzJ!$M`JCC#|rw*3D6Y@=3{ftjDo zJ6L=&FF$|zA#Y}Rfw@K}wH@l@_@v9{^Y(cs^=a=~`4gS_<+Qe;^h1H%E>jj}Qhw`l z*98T&2M?A}2;|QRsH`i=)n>v)7>WY`!>xhmPLobJO%8$xc$Tgh@jcScxDY65T?YNF zAHKbbO?dFR03CL26hSCM5xlgtB;|kl-N{VrF^wn_->D;nl$2D|@hAEE41en~^}Cj- z9PC}&mlLX&PIoj{X%;&K zJIz?vr9t>>=FGqvRXrX+?Qaj&ccy#1YgeQw7PF!`F z^uQwu&fBl(0ZuUD<~)e~pbMH-6t_m4DatXul8(pfsCUX zXAcn1KMM;SKBv#DHhb!ED&0DQzx}lkjLRhJv;m<`sh1Y~`*#{<8R`GmGgZV#kU{T@ zLUd~=_ubn;Qs*7>!Km91o&ww()b0K*TMn0>pyhs&^}dx_tf2ln7Q(S5A9oh-a&4TooGk=7B&Nmo5U@Qp>V+0++4MBwC6%|kSIkB08r99 z&@eIGL2VjCq47{E=T5l(wIvSxX~YEX+tUJ4T9_;mu-l)7x9nI)J$A>XtLl81l;4~E zyb>7|^}yLVww)T_=jRvo$C{kOxnSap`^+ur>8xDx^5!z1rk`T;?miG?UOH@Q*lA|L z+dDe!^imi)H3-h5vjcLv1$LUFDiKN6i`lorBp+Cg$1n*O1PShGEp9(%l&W~>Q)=ns zQKqR)+=JqshTkF7X?2icHXD01#Zt?S?ikiQtpI8xqH9kXjp z^ANDjDaXuWgHrsTo=_< z36vuz488GCKT|qX$TVnlb-KBs{Q3pk5bS^fkaAlDk_C-#20+Q-Uo6(vgqQoFz~bS? zXx;f{vCU3&)?gwEGppWsMh3cc7;7Tz!gT6ld2Pj>EVE(K=k?C|Nf&g2c>#8T4q*hq z$?iU7lhQLkfjX*l_sG zWPH4@j2UtsOMB%|0A)xfYzlaKdWuU+OSi42K;x2=>8omLZr-|eH8wWZ&d#nS()Ph( z)5Lsxi@MhO^SNfm@|%J6g~VW(bqQBAjJK)#bKTLf48&I}<-D0*GKe5Ya^Mg>LFJ0P z5cWTEfcJKWlQ95B?Hj+Fe1U*Bs$*abt#@FeHC=9OP2A0^TKLlScV2MzBhB0RI5<(0 z0^R%fOP7Ah1n4wSghn9Mqv=UDHa7f@f7pr!{JfHzPpM?w`8tALseEkEa7kZ{9Nr}$ zuC(ey&L&F+;=uRb;{NMd5to606GX$jwsPuD9I{-5abaOsBkrTu1~a?XhjXyZI0NBN zoX-qT-t!}GC-y8&-!8viGP)56OEE7-B4hEk9Ua}KW~;CT^8?=V>N|$MenK%uH2Ym^ zi@)%wg`R+GM(q=MjMFDXeXO&*JOntspaa!eimCT8duu$$PDLr?_Hn&4-)uZ+|}c&9r&fYnO9MY)ydQ z^4@2;X6YE&t$uR~o|6Wq`>%*^CxRFe^WEzpWqsYQ@o3z%V#C3~!3|wKao#;WApg{b zzKA7N)MLwgq#x=f!xqOTdpm8wNkZp{4%$Ejy{j#QL#e2;#o=G&(6l#gEl<-3Fg&F0 zJ))0kviV|)RBV1VH|w50gme(&h?kn5BP z1X{}5Gnb-DP}G^CfECR!h|+_m4v)OWMSq*1KC~hg-bUdqmP8LFFn*i(qmdV_M3P6?82$UMU=DGt)&fI5>?c=OApOFyc5973dFwNBBbM2o|R*Z6V!*ZUtaK=7`4; z5HNV7g};K9sbXf9-tM;-6JJN`H6FD6K}T5GYVOWAx*>^=Q5_u}i`xx5KYzxu$dVU; z*-2YsPVhb2M-GHIaBg%M$jk^QEj!vm21a*R%ix|cg$EF+E0(ZV`Gc67@%>H4b#gyM zdL2vwVBw1+ko_dXXYVS87Ux8D)pqbp=N1!LI(Q(E1?Oank25r3m>IHDHs{_wmmPO} zfTbRN%)3|)_nCg)cj@U66r zzGH5I#%@=@ykmL|GBo90*f_O!x{boRu7;3=oMQ3EftkTOCvc-ZUaO8s8mWNe62Yr7 z?Jw`0m5k|k)L^WM$^XD4U;HFjZfscj_4&Sy5d7Hp^jCMc(!+-_`hD=hk7?njHGM$H zeK?QfStYXF*4p~!-@(kC`^eIUv+S&jWW|d?PH}O%XajP$|9d95vI zI93m5u(1|JTCJU2orP#mrm~05E%PsQN4yLvY8Eew{7Ot~2SiHYH!r)iUBCiZ^t0{h zyQg7&*!}W6AQGzUd~ph`tU;Z+~?1qE6P%>PxmM8a`_kKil~FKy2AF$)MDP=k!1VU$eC0mq(bwE0$yCdL`rqTRxrX z0}LIm1b6QvN=Rupk8(6hCa6e_^`FDKMuvR;{cR<;lS?+D--B8yk?0=spTYKX4lZz_}ygm z(?_s;#&=p+n+Z;4a>8fN4KKtokl;M2?-v=)r?iNjdXN>fF_&i$GUIEku}{peuQ%DX zJuSAYTD)nbe{aU;2+WgZ!{l9&rBjWsD;E*FhQoHsH-eX#m_X`8#l(a;Dk>@=BO|sm zn!)js20E=r6*!;DT6}9AvT6bSCs=o<^A1XuoM34kQ53*wo_r>92Cb=au8U}ob%3~{W{ig8OSzno0`zR zYdb8+r64iPJBY8Og4HPO4HFHpqY~26ia#GL3br0sOTsS3YX`fz;dHs17G z{uAe##4YE6O7Jj6TgKQ2AQ7_ho;vvGEV!8xezVL3?8RzJkbTjxu&_wsa6yq?kWQ}Q zXG7A740`e}bJhjSvJ9~A{J5-k@yK^yY#DvTtN%qXaJQ9+8LGIM<%v8RrcC4=q*FMx zEdDtW@4x;_#2~PPb2~mNVIAN80acD}5&^`tahHIz?8{mD-|#LM8us%{xI;<2$u8Qr zRRPo4*}1e8U*LYE%5n?;scrR=7wB&vMun4w2KtUt7)Ew+nfu)U>8&M1&>)?)K&IkJ zfGNK~sd-vQvc}#pwdbo})HUeYZ09r{9XSygun0Sl>J#O*)L0l0{J(HCQei*uKOYM__C;=@H9 zIs8qV0uV(9Z`tE&(k>ww!pVuj%`X0Y!Lzdyi z%5KE~IGEa&!h@?%qQ5m>pYbtq_28Okx)D5RiVHs8PdOp^`RQ=!bb?pIX7%I*=6ldD zNk%|Op3s)r^Rn$?2g&h$W#{+8L+ZEc;aZTA`Ye(LeAC1ZY?!PiF92j@NA7k_2*Jtn zUy`jv972GUE;+adzH~}upmQAGx$CR#N&$PbD`33y75W;cjcD*}iJdr!wyBo0!3+Ar(m#^NzU{Q%Vl%pNCLK9{H zwPLqBuFRT4g zm+M(^f&DcMwT?~*-Pz-1pV)>{c#XLT#POt0siyf3nqlg2yDK%kR`&+r{B;Zno@?-R z{CGZM>Ux+R2%y-xo_!w7gsozA&;5;2nb-NeS)cgNoH$hYynfD)xnqnwS%5=5K@$=% zS)w&v{QZ~kBYqANoW@|Hx_B@MXMKb)V2Nr-mRoX5>4}Q+-7tIujrBTZjD+$ZPeAHv z0g%oNU&!z7^1jg$ICt&$Q#j{$gXR*xVeF{HRl*9EmXJGBlynJ7wat@dp-+UM+6V${ z?|BNCvH&gN%}oUJ=eE(;ySOf1D1EKPf8fyxJFk(YAV~0rP+Zkc!7sLkwmmmA&+Ar@ zJd&h+X+!l=ApL`j(%E28`{@0bFsQ=p9NVkGFFU(4_`hjs1T~bG83>EK1aSLsQ>4k~ zWLj}gIH%?+Kj6Q~3yM7c%&tvG$)Z8$Ua?Zotl2)2e+{F)PCV;RxhN7FW`T9T5USNg z%r)&rOIitl`R1r`;J5!Wq?Z3&!~X`7@Q*0<>G=WMzU{dN zd6S=Dd2J6->|%P^iF^A$h5G0lKga*8RfX}!_icT?%}Y7{eb_o@b9H33=U#&hT%&L3 z&+4kT&DkxW#O%kDOKb_wP#Ok?wcTc^`D5%mTHY%Fy@-Winon088?$e^~uHo_4Q9h2GH zr`%LfXf0l4m--H^JDzrT>1WYQX*fK$Z`xfzM7baRT5B}fW{^!L+a3s5Y=K#sJ%KbH zy}yn!2`UBQ2FK(Hr|4Wp+ss2KGTMC9$&qzl|h{K;ED*^w?=;D-&*g-YY+ zd>43RsR@Zt-~IOFE9`OS6AYG$v3d;Tl|LZB(2yk|fWhvt$eIz^mi6{(Pl;t^aVfa} zh@S4lH(W!els@${;@dXG$WDnl;wm7=qld%C>XmsUfMucN6=2>E>&jM^c;C?3=Dkzu zS6KPK?o@;)L+4f(>h_+W`QDSe&cyV&!oK-*8Q3a#7fGyYZY~eBSPl^Y+x3p_5vV`E zj=-#`H~$Cj+$pnewiA{CSo(D{k+VC=ZF<_yHQpD_Ath(>S$ACppg{-QG1ji?~O(x6olZ398URBz!`_>QM%jMbHl7fKZTL|_wqne68}+` zft^0;utwVo-=P+!p{BFLwCV83z#?wMv(w^-_Mm!qesO83XJ6-F=Bn*kg8?p-h>G<7 zt6wc(#0t|&bouc1?2Py2Xn2H%^+;|S0BmfuzyB~|p~x>Rtg75f67hQ0n}@fcJ3tPb z^$Ijy&KfP z`4NTBr+L#rw7VI&E-WeOsBxZQOMe8f>BUAYM|FbRy7cjuPst-{d$D%J1t zmMNIEXXpN5{g6ncNtgJRFj1^INC8#PCVN~ux=PpvvVmD!N5PQ&sIcp(8=5I1y?D<( zX;AIs;^)6|t?Ph>j_wWE*P6@;H?PU$e0$6+^2ES`65x~ig7_4jso3XA*0=NejEuBd zRZHvchs3A5OA#Dg($d$!Zcq3uZAL0as9O53C*nC^r|+F!8=8ARZ!xQ`uCADvPli9* z!4BollOCL~eAQ~A1Md+96Xz)zaJbHLG0k4y)tD0*E9*tDS-IHR;TL9Kw?`n& z&d#ol;6eQ+qfCQyyocQfg8ut3L+1Hpl|3zBIaA|2S?!pjO14;KKMDYze}5^1Sl9{Y zjT+~=bB6?YWMZ=Um|^JuVsZ15TjHo2qJ36Vk=~w_;cBHvcn>l+{(b(bqgU1^Z5Y>P zqF_pdDy`{vxs51I5GGx0Yi7`}mUuGS2ITvnY|jZd@SL^r_yk?waA4r8PFZM{ePtUK z5iS!`>HIBVjRWsCB{a$)T#hQxG;9bi!XDV3jhVx2=V)Ya%FXVbbk*c-?tucrl+f_y zMLGYv=m)rhL6`Q!hYxuZP3eN)pvdEKMA0T`N}mIWQ~F(NjLdu>6d(J{ul&#>51#vU z$>D)OPRZPyEnhe7EogKFLV=!tjZ{;y6wve~7of_!>zLzacyp%S>dLX~Umqz~!*&kK zne(f+97?(V^d(zSDyx$743w!7l+4j~CKs+xYSx;5T{j#+dTkI~0YGDF*$30Y;!4e( zYn{B@pcvTN%0+p=!&{sAiSLedM5XPFse|0Ngwr-SNH8DnWQJ{Rm9zW4DL+a{N&;CD zt(_xO0fpUJ(~)l;=A^osUPE0Su*K=uV1C*iAd3=AmwMm7*1m=ou=Er|d zWfo(c(H9Oo8M#`8nLlrMf-`TJzh2U(^T1`BrDA1pvV4M5TAFET=`rPj%`3_j+~A<% zn~;#5+=(w&uR~9Lw`bo~Rq2#lwwm4IF%QFDoK#|5?tuU)D=#mv-Ja0=-c=!?e!T@p zmvX5X0U@Ez8CN8FT&A#R=K!d4x{z8rGrka?(T}5jm4}{)Lx4Rl#&W={Fi0NDDhdV___DUXbFghNbQho%%9#M&H-b&g4 zH&4BYLyT@DB|7?n4q3DOMDW+sKLZTGWf|eyl(?^76*RT9l%GGRvwrcyN+NCVU{Em! zs^}blf_G`%36D03PIrOpc&+(z5!R2B7F6NEKz6-NjGkOqPs#o{+XrjzN3Jd%-##2D zxz(BWt#7U&s-QWJ>b(iLLjGcPCp_OL6w4zsqqmC|aYEnahZjo7l<{1lk4+8U7UHnO zkD&1tZJE^DC0bu2&Lmv|pG$fC`84{kk*TYWDXUT$MwGyDjjvTWO6h|xj;{^Pf3PVx zYOK!;Z&=cKd49N|qNWyRjY}fCP5d~^gq*m>e^A_LB4^xA`Nw>SjBboR#tE{OKN%s~ z!rW2Tuq~5vz$)bis76qBf=c~eP_ei7+x&eez8+TZp?`{IHA|Mh&H}XvpOA1K0mi#j zW7t1$jRp%5CS)Je>Yp}VDI{UL?WkT4-ym(R@xFsMB_kvkU73|;yC*WCEu=rQFuV91 z*#C`3y&&2feADjMH?_03AW%kH2i@4mJE$=q!#s#-U07ogNa>Ag=%4Z*l4N^X%2M{5 z5mgBfJ_(hcmXCydJ$-ozRm62t6gW%F8}vL+=6p$->rrOD`y$2_YL`p1rYaR*EVe{j zN~Apo2`U)2iV|nhq-rHvRdBSs%Lgt^S?ZUR2xzjl{96+&f1OPlLKI=ROUDc-(v&Bj}EhvSXECv9)hk&>IA(y?M5HX1Jqjns`%+vst) zmDkzg-dAgOi6uW3NlY(s4Eg% zb6Zx{w7aiw6lh`do#pal{yu9p4z7}V=v4CWF=lcPQ9TX7X2@lpy{7%-5?Kil0`K3y zzl0Vb1}*(8?V11mMHgj%Z<0XxSh1lau-Nj3pbZ@A_bC(2p_AKu=HAg0$4wwh_iDH; zJcRK|&^zZ-K3}JvpE`~ccCY#^ZaTp|Lw_n*ZV`QNaz6cV1-3=>s&PufjKvSRyh?>|7rB z)rouY+`bI}y?ul2hYz|W9nX1A!GYPUmxqTVwwI|!k5v8PsPFT$w_>S&;|i*v4D>O% zRgCLxAyyJKzUt4T6{Q5pH5+cUT3OjuZA5*eM;5Qd`^}{y+YEhA3|V1%ettMzzLTe? zo5C=f=uR!0Tfuy2g!p;aAbpEVWDxOv=GYNsYguR!Ha27mAFWJh!f?>aAY@*`JkQuQh{dkuO2w zY5f)3l0Sa@pu`z_{v`!Oz1H)(8C{wvS5Dv24j~U%Fh`Sg7Nv+0SY9o11Xg}j3cec( zc6K7^^Q}#!rulPhY{hnptJCZ^Qsm_MxSd#UJ#>3^{UWh!Zg{6>ub|+9<1zT<$|((i8^x$dj0YmYO3(EGhO5E(}t9ve<`K=C=I8X&)sp8&CbPx z$QuVwa!?AD+^c;(2qU=Ne9&5;oS+iSL#~~xf82%@R3T-(6`!>It1}Q@CpvjpZC~WG>3?=P;Pr`c z_~Wom%+2FcSM%33^CH7LJL8JMkng4*+h%L=ChPB9TFz(dAU#;C-t;R^|K1?4^C8`K z4G?C)$}fnF=+Ch5^m9e|;Gd2lMmHWkefrJrgqsJe?F!GsTGhk&${e3nT@-wPnHz~7 zt~~^=dp5$sO8@q!r!5^C_bnH?u|kFIJ+o=md6S0VLyJt*%3`O^i9mv`_5}#bQZJES z&BWZbBC`DZzMNRlRe${~9`Nqa?v0Wv2;<&Y$dE0oh9=Nkmj4Hu9TMi!kU?@@_>@;=nZlL~zcA zMLx8l|Ahb=dEqxW&tYv2_`2b^BFH{m-e}2> zhKlmcwC=a6tF6q*g^eqY zjz@fa-6vW==_F@m+ZHtU)@6y-g zNT_WtD~V_B6(QsVPC=-@i;2by2>DKh!fybJXAF45(P2EY$>usG?nEbEz!F41>Y6Oc zgn-l;R%`66)0-N9IV1$ATEx}KW*Fu($KJ0MRWnLw8UgAr^()yq5FklhoD!z&d4<`k zu5U?XPNXapeQ(`&7XN$Ox0?OU@eCs32@J{xmpNd#)vxZqVUW^Zb}lQ6yYXq|eOa-a zG$!vf4`5_r2@MGe%q_5$A(zkl%E@7GztR2cVM=VKM;F?~HS)PWg67^^sxI{u%GN{TcA> zCzBg!4IB5Fuk)Hk#|!_sVQkEuAR$OG1%PpF001Sa7fZzb`>JtU z`;O1blSJqS8eCcGa4cI4bgFCQROAza1RO&_?&3rDyI@qb5@WVeb(aC80viD+dJy#_ zKIVD6qOc$8q-Hs%YQb;@iiWv@ow#ulj_I^CW zBncy#u@7>FtcR0tSRO3seB+iQW-Bo}8Ta__bln!p@F7p71JbSP1d4c z5H0HH*@atK6<;@nM(2O$i{J_tzHskhd?raW?%II0of8#XTulkWA$uQ<@BGEBiQqY7 zltV*c`bhY{4IXY7r)XO1G8V~zjkfiTeZc*S{fw#L1QNmigBYOZU?KB-k>g}xj)WB! z7F_`Xp@;XIr+3~nD_u|!ZDBROV3{uBAn{v1gF9$lYO^!f-rqU7*-Y1**Lbk2zSY=x z%q-c(P;gB@hZ|n^oc^PjWERkSN>GjevCq4ZtKqD5KgOAba|o8#r;oJ7Wv($mb_1{d z_P~sSq`Gv_3vls;%Ckaxf{@bIH8WKxpj0{>;?Z=?JC!k>^pD<`(-(cS zKRm;~e&zgJd%xp;%kt-?vf0>p*!f05Chp6cFB1T9B>oji%i6Yp+WBJ-s>I=qa*hl0 zmtSJ+iY@*KWo&C}D-ntYDctX3;#L=NY^gjt$;2!YP6^c}XB8;$?V`Dy9?s->LC3EY z9JYYM@wYarsvQg$7gwFz(v_G8+=S$e!I#-l$H^$6sVQf%qXRW9n-B#A#T2OT+QM1k zhO^FERpI`<$&doN7I4+KBqKR7DXEIJb@nd~4wmT6X_F2$b!l>eqN2bjXJ5g1v{8Vx zJq!5Z-~PoUr*r0>UnjVHBka?pQCN6**0*mYy1KexTYF3voc6p=A59}&Txt?L%f$of zYV97+W_R9^e_84(KP7Vg#*MJaNh7m5HwcCE#J4hwCX-5!Rqb!@8td~PY-ZcY9#+jH z$)`ymiyl{UJo3311zQL9t>E`2WOflL0*R~tIrY7Ga4Gwr7M;s(T}h>}^-gzO7r3Tm zJEw>pJ_o-Dky9pz0+!`QFCh;b+jEg7Up^iq($a(?m&gEZlu!jQK8gjtTee=|l8~SW zml8GkABD79x_x?u8ZTuoFCNeDM>x|}(a5`bF(A-p=hpb_U)BBC5agoWtmhjz}+M<|B4e_6mk zML_+6J;Ngqr*rPkDWXYUo^Hm$c-m4%V0&8;k=LOL|9;xP9=Wk&kE29DZh&bK-}E_y zCira+n4u&>bE~VLJDf{=eh4-Z9K?SLB$XR8(07Cuf;nMdpfaC;#KCN{2F-uYUtYNr z*FMHlBMBq9m7ISYWD|&HXUs7LhvQvBg<~QW-YA3ER?Fa4OJctR+5dju$uneMT8rSP z4?>giWNHjUph70&2f12uP0t>Wt(9@{<#ZEr)4upesl(;86SdO*TdE`8kmj4|N%{x% zX}0`-g}eU&M*cVK`@d8K|L2M^DxV}>zby6#g5O-xHD;vzXSASN$ZqG_xxeETuYP^v z0#T(276h$wwVj@819X7prP25n`1+cFL$)BUlPpM6Wg;XS_%y$D^ zKZp&`iHnOz#>M@t98^G!oll-iI!%5phwJOYhQ;mIxo*H0STZNfS%=UI<```>{Lohs zX;6%IgV`>ax?%^K@ecd47r5eK#BZDid=YyS%;o4pLP9|A6}7l%3A79+)3b^*ipokc zf-tCJ!_?HYJmAD7a}45)J?^7hAo~av#K%mVd=wX7%84Y7?^|f#o(ejd&z;YjIWgHe3&1$tcdE_`N)0jI$c z^vvh@Ha9ncMm)PZ_@x{0bioV-}AFG2|X>Y@`2XpxU|9!Q%fw^}Os`PJ!T{ts{O z0o7#JZH)#|P$>}+L8=`aMF9aR!GhRmHc%jdNbf~@5)cKXib#=O6jXZe2?&CK5PImL zcL*&65|Z27JmG<4OH*cG%CQV^cE!L8J4j{eGhm2R)Qoa}O^BJvT$({dlvrU;8JOn#g z!E-%o&kymvrMrnc%ui@xTbL*D_8VS13PW_*chpmD`sx8o-IATFs?<>=-4-O&MC9DR zb!#usgnot``O=$)dcsr8#Ra-W6|n9nPo9M6YI?uo(Ls6@Kett(zSyD2Ts_%iv(-Yl z0vUC~BW@(LJyR{XVk6Ce*>lt4$ZiL#BbS(p)`xmYYL}d)`MGoFR=*z}UZ&R51Isn> znRNapqE>@_k#G<>Z|78(ruT>`3?eNnYXTxkl6>rv{Gt1y(152|Q5T#v?{Oa@cP>*+O-9yv zA1H-YFHx1B1=!8w6Mdx`?Z(QUK~r^`|;IqEFWSHSaJx9Nr$i zhIsUdJ4^(&;_~d(t5>?k77=QT<1O}H#|=R$r;F=7F{C5KP-cA(WGwUWD{|BzeU5~| zfUqh+-aaJ{%?ortPX|seQ_r72|4_9WbZM_6m>c+(qdM5#e5qq)v zEi3D$we>|vNP&DEdw!i!aKYv z?(ZrM9=NLNOJPmDIWOe}L>(Ytq8JPK5{rsPb1)bP|el^5?zLttfMd zg=y3ekRLgvypfpA*67Tdam^sCj0Q3w`SWVF;*Qhk0NU!!U_co6rNMiRWMv^OxQ1LeHj7*dDU3y6OEBVrL^EXY34)wS`DWOHgw)9Bf!mpf96SB6nsaA z&+e}Gd`bVv{`{x=mjN=@ULcNzgpF?W5SA!;XEEhex^o7Vl6M>PkRn2*k%qd4heI}I zvCI&_>7NSa)vG8K2=#e-@$JbW@%N>4ui%Rqs-qDQO)wFIr?I$2-<0EdE%p0+!#f{e(NPF69);3!h_5iK6Vzc>`s6rtt_3qzCc1#Q)60X z>CwyD+MGAjJLe)>WWkd=p%4l5_DOyLfi;k)dm|5bGqd}ItgH?*gMG;yv&DPkQuh8IX#&begC>;en&5uR@EAbuMByyTRme-=crZOuF&#;o&P%QUx!5 z9)zga+2#Jmn6@4b-Nr=~b}^t0b66A%B6-!oVF90S?00)NodN$yJk1BVZamQ6gH-ll zudAyA-s=ynxrTxP6xGp96>?=V$T#vmBp|>R+584x<0)VBvsgl;SRLF>?;>iMO~&wF zS^!5!M_nLs0pZs}hY!C7&pYDB!ttSfE3lh9navIQJP%H9*~h&XlAicsQhfnYks+B41bW(=H@hXm2jPbFm&<^8)!=yu|MdI)@US|V(+kD*uzW+?(TVP^T}*#_xzqxVXM`u zr9Br)k%1tUgr#^Lya%hzrk_6!r8)EQ(UeUp{zrZp9FMkEx`dq~NhU zY3XTPJqr8ln|9BREp~QO?UeQ>{R1_BNr;$I`nmo=p$GW>zXXtfANjwpRnuWwEgiDs z9{ywpggmdSx*1b{QmE~kbk6fMBmS>tFG`r0}atddspbR z>Xz9hjxASjQgC_At*sjt#{bVCVyNuJm0Z+qTd|h7xK-_2Z%!hklc%ANcNi+gKc4o{ zTWV^|5M@N#eo-m@NgAJ z$IA~Ng0g;q1w?KPaUVUZi_xV8PCecGy zxA`4ufR-D4m@FkfSs4|?ru6!cO~I8IAa|U*%i#s#?l3K;Q!>6yc>{nl!|Ls$U~7L9 z5KwO<2~1_R4_Q-22*BL;J-p{^_Y~IW5x*G@(&x)4@JH|P6B}zy)A0@ybBW%R)~DNL?Jc$S$i{(gRUQul6+_xu`_beCnqNd z_&NSRU-*Krr&+36TJK#-HyWBFg_#eZylxm zU{2iYMOHrW9hnKv;=&0Jl#IC!$pS*OG8+?hkuP`5H*5z0{bQaQ=YgADoQC=b}w6k15qA%MkB#29C(H^(m zNiiIXr$ThS^^lg7G6cbj<3HhHW;&ynMb@z=#%R6oZCOosM-g-Zett>UC0&S$sp*-& zO3?sdpc{VvEZNCvQcC}ME>r>Zc80L<9;5yFynQD)ne$y$y~li6E0@ZeEIv{UxX#fN zpFNu57TmJkQN?w-<={~kH4+#-Cavu4zTV!{k`f+BM}PnR;GcUSd`ZzP35w^{ML;tB zlS4lbI_u2+7UAV)eynqG#(d`)5*7Uqh6UjNLlMYm1bpg3@_UxC)2lVF$R9r*`F8Tc zQ(fwKSx&#WLFMCXCOqfBG`7AChd_28r~St)u5cFRI%Y}LF4KJgrsjSqE6BA-?e+gv zW2igZX?62+ORCay+nQFAB2fWJ@OwNRQ;HfQapK=`M(yzYLDKZyoeiLg+iS$Zb2d`u zR&;dqy~zO0GBUjYcTMx@)953&mbjQhBzCv(^y_{s-&!PW>7@je$B^RaHke(&r;$U^ z6d@^^$;w^s1yLqdo%=0H9)9UBWlLD5k9K{68RoIRetl%4X!jBZ*7^@rg}kp!+_Rj+ zKBSYxloEB}OQ}JJ4V_d%U&zX9w9czJ8%U>9@N~|vz)ME8>%tO}SLO|H91bkl)ZY5(C`UnOoWhl3`zu+GQ9K}&D zg3^46t?#klDbBs((((7G7R<=f-*TO=mZ{I@%1W*Oa! zVU?bz4g!k+HcQso;d2ddSW>_KB-h&&#A?}g4_*I^q92(fMkR`4y9KUy0PC_q3~s9F z>=t1);y4ThPn_K&o{Kql2D3Bsp;~jKJbcbkl?e3Us5|XjK>kuQuYRdjAS?)7y>Ws8 zM85z`2;k|hd-sBtuASm?OpqXW-vNN(;v&>~_b`##sFKBT{XxhiW#SkucX<8}|A{|F zz-*nigKr)I`%41c{A}1_OQQHZv>KlS;o~`cx}o9BSbt1%svBWcm$H;BIh&*gj0YoU ziOB~P_;|zsnT7{J%K<1b_r1U_2FZ@CU?2$KW)P^jBp1(N0U4_!RE!oXlSxwk#Em%t!Pm)}!Z#fpBmslk zav#eCaRQ0F7j<%v00g@n69ldX2o7}!0x{{{mx)9bdoudamo%h9gVfp-c;;2i@V9|< z0tt43s}GpBXR{gTDG!bjZBhcS?G)id1>hhV(7Q+D;`G**Qx!qcgOisou_q%7c~3Qt zSUGRi1;L)f{$qe4MqbAO=B=%iC3S-5DD}|C5(M@!Kxmv8@9ILXCi6o(FxG}O$P!_< z-Z?`4zK;J6K7J-qd#6JI+A4d2I{ND=bK)Ncr@4)0fiess{F95!P!ZuV~W?{_(FcWnX+#?H@2X6A5 z3NoKbRBPxJ3CtdqL$CdEpoLfC+i1G1;F0)!x$S%YybBy*VTtivO$C>O;Z#UKOSQF^yyL1^v{q(eH}q5_m~cJ z9^kub!^bJ290I_KVj*(hzX-ln06)g;IyM{df1%W^8#%*tfLjWzHf$M`8Q`%sGTF-M z4Wp6UUun-&sr90tjeBQ?ju4aky$;jABU(&QOK-0*LE!yc@1*Ufenl`!3Umd$(W9=- zc4V&WH8dH978gqkDtR6Oip_>eLQN?5J{EROXw$nr%%gC55mrvY)lc{&5F7pk16lqo ze%A--fR^2}fO^q=VSr>mS(Eh#A3bxBywNt}6Z0=#rEH7ahWcn2TdikF}mnSI8%HncF=7Er;F3~b^hi<;48`6(Kl@-ln zj>+0B7z_-&M(qC$Xv?tiL=W4Gf{ZM0kc(V@1=QOCNp2iHV^u{r0_d5acTrm_O6YIo zRr>bg=lPmq6}FqXwmgpo4KwsFeLYkynP|s-gh%36!nrx#&T+vxl0ww{RAxMmu=nMK zqg*^(_IN^%`hkVL6)h^NvG1M4I-*Aj%R5xA4`(gA*ox&ls*}S5?#Crez0%OQjm?~$ z`YZuNoztM$iZtG1Hqk6*=kpwWTW6&mGoy>AhvQ}CC5)F@Kk>Gb)$&LqWTz%C`m+ z9cWHY>1kitHr8cvP~5ug4sEEqVk8DLKtk1~h%O;ky@W2!m#x$3Va<_k!Hpq5E_)OX zl%a)vMCdkqBJV++w!S~{jg%OY_T1dtG}Sy~DbB0TahR!HesKm?j+ z$Pyld_oCD~4`WiC!j;W{&oSz&avTdu`|`X8v*j}8_0&5XskVrlLfm-uSaf}zobNb! z+nx@jo;_2DiIwCicKlR+NV|_0)YtsxYPGO9ZHpu!w_MyV7=-yz#WZk~3TiyWGIlQ} zMzTSXAqL6SORA=gJbZKlmW)sn;kHC%jiMIH>|rY*QbyC}klpR3*$*G~(}}3$H9|;8 z?OjobzW3m9Ia{qFtlsnIPBv6$tZ7l}&jD%nZExG$uMneJpSq^uz1zmK8X9fCr$D7c z{t;Y}8nmB$1%kEPht-npAtI^d0tCes0z8=pP*iVjC=;qK-$|hmUeOgOm-=buPa8MXQ4`b$FRd~8y^?%bL}sGv^RF+nD0#M{`x@L?&n&nl(0Hv!s;cO2lNiV< zmCb(^ogidzJcAAFTgN3NuwMIhfBQlQv^zhwipwXvm7Tr*tR5lO`xphb!b|$)9h>@~ z?+~|$N+jF!m)?B+nvbE0-ot+h_I>zBfX>Tlq>& z`*Gv&#N@lM&?m4xl&2Vaj}E2+`HN``1k*WuDE7y!T{TOcS0w21VCi=knQMXyfrO-U z&2(O?XV0ERCKH{mC5G@_J~>6rS*E`g$--Z!oD!|1i0qDx(3|&>K(W83^O*@hf~Sn>%e$x<7`eQwZ_|kfQG(KEVzGJ}`MBUu3DyV}v-pHyB70#tVx*pDo!6JAt5_88Rv=a zdqD6STx*rU3i2`T%ViY)=2mQT9k!9tB5g@ zl0rRz!^QQ`l<~RaOHJxY>KpE?s5X*UzVmF~Qzh)$?^mU z&O^GBue17)@K;JZ=Re=iTJUgfhE;nZ6k|Zf?bE8=bsa;h7WL-hOdN@}@X!g@CQ}8q zP7c)sZHHZ<_yz@UY|rY1!op{>#8{AG%Vp+SXB558iK@rFysf5I*Eq=T{18zd;(L~BD`U{4qwf}!pcjyq5${KgoafE?%wCfkz}b4k3NjUp_Y zMLD#)A^PXJU_U|rQu0Zqk@>|J)LiMkZkW@H*}mTSn6+bI!Ge~2u`Qm;YgyjG+5Z_B zVm;ozn00mF3|&%Dl#>6Nyb$xWH?j=#0ZJ35g~Ave;6zbp3|RK=u0c6DV*T%h)H^G( z{E!><62@56xZ>{Zzr#$-Sui&@7f^7sD_L5-pGB#2S?mjCOprpX%6CT7v+$+tncV|@ z*z+JpE7SlgFxi#jPH3fi`j&mmLza_$H)%SUQ(H2SBV1e&DQ7j4Y)WU%jc#eY^rYWc zCNYJ0x-P+FqQT=o6$u}%M z;6dPn>jtyRpO;1KH!kyJ`SaIXaD&SJY}v*07cZI&epCqQQ>Im56s?aQJ^I3E-4LqS zztE(15ASd-F$ZDy_u8ukQ#m^7MS~!fD_izkZr0gXoz^+XBq|R6Gh%lSC|P#dhULK8 z+Ue5`&ZLk}>YN#`i6}P$;rU4NMu5C+pFMUOC;Yb=1rKbWi1j|{z14Kfq_6Lhj$XZb z#sME=zMeh3Dm+@kQ-!;8)QYPDw;vzrEqU_zqs~LUN1;mB$gyM*8eT02&Z#G`HRQY# zJ}>11ifCR5pLR@Y62?w~Veg_a-mcKyyLS%&))XYYMkJ%&{5W-{=NOB>v6gBp3+xGl zRyF%T~Z_S)p3pAay8PI7`7-Saj$fAWG}Cw+GV8^3GnS+|duPsn3O^_GS! zXF&ZfNKp9MkW!fu#OHO1=SkENUg1`6PbL+UZ&BX{oHomnvqPfJPh znVNcu#+QbEJ*VKf=Geca-Gl4Z*4J(7WP`YOhoX36h2ucffCSCX+?pmCr_S$ z2kmi}ea_UEYcOPX5vHIp6nn)qh`gX?gZV~bKw~KxnW(CjN;V(!WJL6Rd^=ML7B76D za?OiSL-Ncdof8w=HKD0IrlHle z@onVtVDc5ydy#%gTX19+Wo>N@l5p7wLi(LxISi`IovnSnk1ZsVwrlR(J<}#+Mhy;h zc?qVG_ryCCDq6Wop_FpWl1%K)Q2_j|{4FSjO>P^@|(izb5+Xgn4){-NQrX z%Nf>h=dwNzombkK{)s41`*~$zIO2q!eV%T+h%l8|lR9sieu`wT2bEy|(rKEH?!=%_ z7>?08Kh`4G<>!C|XvSh^0V^U30AST2OH0e^yy9ohyama-b(B~FhA!-5hubs;H4--$ zdRqzW#39~e9rC2tiR)RY7o?jNKrGZ2EK!}` z2}+_4ILAgsO_Q8~P=`cr58oC z$Oa+oNqq5A(cu&Xd$}w!&wJvb)2~z!>aKWR6|!)CV82}}O{{GA$9;*KsS0!|sI+C^ z`?|Ijcu3O<*yH)9#6Xh`VI5+VLT692R0S6ywr+bi2#;Ls`Ur|V1Nmjgk_*FNmLRwy z?yT3*muG{LEAj|R`2iCXFF1u1f9Gc#yJ#-ne*EAFuYu=@9gm%I*X5IWDL$Pyt2W3h zi9OLeg>D34tE@%2*!b4UQ0vR;+z*D;LiqCSvC1nL)K%?H?O}&*Vuo*BR&WfTPyy@< z;kn(&*or1SV;(J3JMF|oOU_&!i5&O(8b_E-twr#~&pIDAac*3%Bhtr$(go@Q@Wb^A z-u+9$?@Jf(POV~7Q&aA&z7jQ?U5Bv3Dk(g#S5$tw;n=sZ(WK#T+=L~R$kE#6n<+*=dVRbmH-NilgGVcEgWVqE zx2c1m$%DPRjJ|fyN$&TFT9%Za*EOMc@e03Bl-2q3rfhCbE^5X}H`}a8 z?rbs8RT+v76m!ggGvfGNNdgtNq-1(~^>>27(vr10{i=i*n{n5}^jH+nlcoMrKf94i zN5Bg}qA^=XAXuzd5(-h%OBrTvpTpJ->%*Jd8-<0`UwH3aa`zfaW&yKLHWMC$zcZ=Iu1tp93%LP0iv{`Ywq;S@0nSPX1H?ss7D z?!9~Kl!1+bkg($2g=BpMeim(7U0+>}p;SFD6~4OdC>vRZx^qHGDsp&u_-t}!d3kIR zYCZCHnOalBm{UbR8sSwGkj#KyeZ()mChIRZ!VJVmm!cc>>}zC2!hz#3iH ztGd(VWQl#=_wVaScr&R;1MN-n{G6HTmC3fdsA6MtDT^ih1u#w5pN#+(_c~;8qbazs_gs#n#NsVcRn1)rtEO$1v#W zqZ>bC;8!5td4?X-Q6O~~@I-FUiBLufPkRGcmj??BYyNrCJ8K?$&#i~{ejuV|cScV< zBr9hzFWJ@+KmEeO^IE%V-=_K0)anBe9e?bb@j*&sGYpKS`S5Hxr59hu8P#!oz+BEtT4LPY|K`4 zgRx#nN;oAi5x87G+s5}JA=8pwrOCrTtmG;uE5C(m%Aq;bF*I@B+qWxCsl=*>$Ks4f z*1fJGFL_Z7zVXfXiP3Gvc_lvUmF)`3|A;a0yxl|QmBrKrs0v_4>ta*^Y{4&}-BwMt z@e13;Ry(IGR&fcHWY3m+_umBvfBE_~w!B;}8dEY1kppGiLpItKunIZA083qwl6&a> z20(H4-H`e_m`9*l4A5$!`?t^WgTdscdPgq->WcGa7%N-7Ysi)k; zc1C9h_}Z~plE$QbC^A2EG+G$ut%$%XZm)b|;uosK!9lAGsgW2F_ql->qEhoESEkjj zp-}p@%|$)C%XKx^2S3a*oCM8bbh!tMp@4AkaGmC7l9-5ho9pGCAEaa!6wNN#HQvL> zP+WWKT+6-Iz~J!d8aKSXv^_AB)u1^3&Qj5nhK8S7I(lmQF9g>d*Ak*Tlg03Msp!(^ z?S{Qcv<)dScxl+EY=VaQ{n?-PCUQNuoxG41(z;DWOz_8#Z-Hv%Zh40HSy4?x_6x4W zUi)`?jS9bo6HRvQTE((CE7t~u8IH^%xvLh?Z=QEr@>+{=>9=FJ$%Bv=<-Ti+%UjU_7N~qa)opgpx1ynt%X~G*JO=cCUweO>$xRYg=FOV`BLy*fi}Bx zE8<~pP|!j2j_XDLw#MG+qA~dS8(FS>=?>;m8ju!rw1s zz0(Z*QvUVLn}%D$h^fw}^y^qDh_`XwjmeJGn`W~E81p6Qko&?X(V-fV+-clDZrG(+ z2f5!7v!S5+^N|PJ#E*Kvu&qsYW!ysC>K@Pbm7WvG!V&z**D75V-pax~sz=b)y&DDy zO{I;~fNowM1zfH5KW?1p8!f~4!uRwzX?uo}d_`2i<>9;I5w6Ru@c}b}_YMDX-rl)0 zP#tIn(`(M%L2FHu@`0QrroX-!cU_@ujP}DN+Vcuf&>tdXJ~o@G^pE$qE%JJxlLaaK zZx1oPSL!&!Q95~YJoS(B`G4qM{t#XW(}@wky4dE~($W%pb(%B1M00o8FiD1ujqS4J zP9CeU4RNwJdVm}f<1pU^ODq5{sM8L`~!R)ai{X`6cnW1(;!OW26N zDoCApq62Zb36~}qmYkd*JLZL@Z^hsEPFiUwl>?-D4SkbVv`%#^%%R`*f>>u+earoR z_S#wgqSBNzs60TH4p#oV2v+4})=5OP!r<;x73# zRWTc~RV(e8m`$k;=1fgk7q4ZD476>crb09FQv}y0tyvb-0(Cy650KtPn`D+ z`fzVyVez^2cGjN5h$IHaDC~N;V6C3E-1+!P-$OXOJssuU;5|m8AKYQPpo{sUZfHAT zZwUsYY2xK_uykf&;Rmqp*Vi}h-d88WJy#g4qMkiCyJiOAENqT*Tm049wozrj(DQ8u z$Tvc(f3$}PTn*%TtH*~!9a?m?NllZKopOG9WTwkxNJG3R@o+S9jK$(JQAwbdcNS{C zJdu!3Vpe^QUm)7Qf_33hPcgKd<)J!6$Q(9z`}|p!UYREi{U-9>=fWp`oN^)1P9@cB zU07IHsNEalxv-eZ*oj6`ax=hwbX#9vT0u7Vr*vvYssG?0KghKBmXmkJpU-O18kn-r zjZa4`&c-cb1|HLcpNuN^4}PIzYiV&3ufULcaMZya4UHL!?NDG)Avdo`K%1~C z!a(TfPgTKRZ9gT)3z~#C4D5QqvL<*#)P)JdA03b#Tkg-BsuF}cpG-Ez`_WAfK@{AU zt(*pNc=zt|l|k#@J?UPGU`wWoi{cfVvvUqo)mXf2Lh#sNc=OdB9oPp7T0jI;+nR@z z>x*M7MIR)nG=8eDh7rhiLZCq0c!g;4%O4E~J`?XuriUwEVLNyb!YAnfsbJl5&!n#e zC<0;l_=ZrjGmoshy?rZ9LZl@fIQbWdV)Nndog)G5(VL8^j_xJE07X-RP^kT?oesQY z=Q|pA8|}i=J{NzCjkQQyzPt(Oif(DZXvvhwxM(cgXcy+CZ#eB!3*sz9p*W#*`D8=* zFt69+OA>0KQ*TophCKPji-x6Ew}Pg7dU4!e#VDuRh34&&dL^O4<14HO)nMe|h-%0% z%V?`k7<`4Zdp+Q=)eeJ=-C7>Pc_~eC?*+-mYj6>eSph1wla#kAW|OSDnW72KtfipT z@AF+nbnB+64P|WuxXIcbN+yX$W``KSkqKh%xM@*#6oVW&3UIs z)_QyDt*XAu(A4diq5!$-fEK1HAw*c|l4jMcnXBD)-0u@GOP8JXYT3aW;BK=nqU4rc zTca`IIX^z&@MQw+w1R57cU!{cNKo_J3kAoRDOGv1d|7--3tdD`(-fNvV`e>MpRPM? z+*yp6p+b!)WkWmjPh?j+*Uvy~F3Q!G;zm#8IHzZm7m}r^IVAL*anh4b_=XhmR6c#= zt;oZr?_+A#?aK3%Q7j}(kc+L1$_IC#kM01N`@zj!)*g*!hcv0CJ0c5%3Sd=lUfkwH#%gnqB@-we%UyVBm{4j`jo z=KYDAuSaK{DnP~M3EgPpuFrQf2*V$?fG z@Pn7S;TNW%y=7KANT*&X)rErJ`atFy3P;VePbl2M zD?oO~=v&S|vBNl$aQ{s}g$8g6o9XsRR%X6Bb>VDKuz1b;-D+?BD%S`dt=hTN5f21O z!>aY-K$RP`r1zEJ?>5ts#*)~K=A6Y7%F0Re_#bE`3P^VtxTUJ*Sg($YXJN?`hrcLR zL*2ud3|H3e<<3BHL;YV-x82#u0=S3val=+OY`hh_>xW6%^k{K%sfPyy7`De1g9LO81s^o&sIRo6#MEr8s2fM`vBntJgFq`@*|<_1cHsr zfW3_&#&mV*0NWRPJbKjB!j51pJNEI`+$RX7l`0`C=&C7Y(QzEpwE4h7cPm4hSm{2K zRYQriPkPBo3%@>EBLWb|=wh9qqRX!;QvE4$@vz?^>?}!+*YI|fQ3Bei%)?!S;YLRc zqNt&=p%ZCoDFS$~KOxJ!ICJi6YMS@QwthYLd)klZA~?rQ^wcT8sEa!O3HCnVkR?_s zsj(YWv^)dIXq&;}caD>dYlGJJjq4xs?P-lR`-ZQhfZ)L+Ln_z~ijV43+?>xZem4uxLw5I|&rUfdiN?@0gnGzI#=&G7jsRnw|9` zJ^n%#94t1jXQ`#~?N{PkWA{;Hu2D(6_G%rDT4r~cVE4R>_g6C0E44AM^A;$hXhprj1-oVfT|7%X|T# zGi@Ar6h(JQgz48H@ia)kV{hYc$u+3bEiwyrivyw`a2gRP_oowy_nn?M-(DJbsnAbw zwaOrK^|01}z!NM1QPn*!4dChyjY5#E1PWz-(x_YBGvFqI!e>!DQAdvQJbYx}2VT?| zE`pzX$p-+s{(mJw-l7l@e@T$XPoEUNT(kDKze)YI?B}(*HSCN%#vnAR#)TE#S=f;= z0aQ}#+e(^9IjMFTM%G7TXBRai1!w%@9?gLrIGu9u-o5IWq(vZpc{@@iV8F7a#N4D6 z1A^`r(%Z}+-;9gV^U@M1_~@qa1MFQ(#TcnPr`V+H&-1747PgEAi$sKMNp}4i85xCM z1h~!Zo9%9sxT1)qsIuJ#0-1g z26aL*CNn9Z15f>2yjN0^-R}SnZp(j_xnA0Rk|@hT zJXJ;SxC!-Og^mfwE=#zj+gez3y_U_-=H-HZ4T^=dR8zJ)=cppgKog`fHJTs(Q?Ox!~tuA|v zvE$HasR4|F{qYbw<$Aq{-nBsnqeEm$N|wb!%1s8Pi-1V=V{~-a`O6U#X(z?!P|Dbx zftiu*RYfz(R=Q4*Ymvh!Ocxm9a2S!@9$gS?om=y+DOvtUpL#r`TJ+3*)ju&!>MBV9 z!R4Luze(NHn4hP(^k(*_FBw71CZ%qC$2*eSqb^o#XUg;4UL@yGf5Y`SefF>-(O91E zTo&_PU&IDYj#@qQ*7MysbT41208MJEZZS^!&@Y){XPr9JDP;le4G$~zBH3I*QEVr_ zuT8cEeZR0^y?C56w|wbgU$z0S(?w zdZW7RNJBz^ur$+*;%3UHPZ8tPit_S)ijo}zI}TR<2^lyMl~!V}wowRg!GS(dW%diQnnLn6FbOSQ24=^?QmT;GSd z!Kh67?t@_2)n1qfWvzKF8}D*8(^MJ{>#H$DheH!Y@RT@y$d2&Lft9*sbENm|ygLS- zD$~kqGd9p;!c02HqCuLSrg`0lew0C3nCn@6C+x6uOWW-AqrBm(Q^rkM|LE2Ebh)6Q zr?<}&8oH4%d~)?l|D+PB>ojKIWlCkW5=!YasPquYG$(G;&>uxm(qb6)2dUR`zH zHg^9tJ6p@m4r-qEUV2rb>$th0pQ_>W*Aqv}P|vdZNUc<~X6I#zo;Z;d^!?t%#AINh zs!UuvV1;Cd-I@J4*z3U|RYGCfoV1N;Rhxc@057Nc_WN;&cLh0F{mf7?eZ4iKxjppVfJV!l5 zCMn*&F{#C`L{?WutegGa)%1`=&0OVjSw)cjcR7qk^l;M%BXxW>>Fi+uoSs>Ftdy*Ap~-ZihdvFhk!K0!gJ zyf>Dgvd4!`OdPhO^`4gchx~Fn8(sz*SU_7k(r41Cr}{S46a*hXDM9Y&T^X}nxSaZi z-$xKDTu~aE*JrUfs}Qj-Y5GvgqlbsNbI~nJA3xsmP~A6eY8uL7D0+{sd$nPx5LMk1 zo`B5MNCf^Di_wN?vQfCzZh$g$mbspzDP1#mi6+{gR|h$&gFfzAo|<`8w@n}^JfO1 z=ju&Y+WPv{j80ziHY#VTAG+|THF?Nb3ZQh@Jp(|CiVP8Nmxs!@O^Y7s=&0RwybR!$ z3q@NNaDm&a-RceflgC>c&xHA2GFaz-clWLq^hs22gJ{D;{l_PsB7G%uUQ&@pG)p}oMf$6q_&k{}1AF&J zP!Z^|_utIf|ER6_Kj6}C>9Y6$@W2kjkAEdDf7MYy;?sespLg;19!m%ixe7C=IGovS z`6kW`P$)=Ec=f_Th~2N?8EV$kZFL3U#JtCLKc$xIG-*@RPxN}Zz0gbG-a;=D@5|Xb zi|wcm-St2k_5&Fl?J22*_V3ReT{=26W5qfTJ&KB;(z?kwvV9x5OqTQph~OC1#HOPA zPWHF6DmiRR^N_>}`}RqQB8@_sLyN`@+8^|ABWT!+xf$LUwEwTXQa-6F>G1u!^994P zvI(SQL#{1kio<_-@+n6u>mRnlVT;imy&@Ww#iz)u?Fu1&L#_&~rv|r6!oLA2hce() zF#9PUSF_>#>)Gdqf0WbwbjwWGc-~fw&MQjP{@kg5RwWk@^h4j%W~kY;^wIO;)utin zkrm{afMgf>IsM96(@AJd1LA|foQYVd!)Rh=M%T{;I&e@eXH>G@2sot&?~NDc zV+DQ$D~Pu4>^u8EupcqdX;2+pg-6n84B`Y`TGOD9Ks`Qh!G6ptD9>K7+g}MfKx8eg z3YsW3uUE4hF^VGtqNWe^5)8npDtjWCK9?T;zzufAkbZ}tN2L{c?wqPYF$hg_rbKxl zLBN8}FrRLT8coLK>w95d%M0p34T z|5FDa40=n$X#MkIcvZv8;WOzy;r+C8jjx`-9#U>Lg`GrZlZA3HHuG1Gw(I>0;^7d5 z?(c)iAP!|_Kp$fKh^eLwVun6_LTBS~7q&ON1L-y)+R1~yN8mdQIN3b}A8IXjB;jjo@@6t` z#Ajr~){r$thZ>oVj~>Ff`T%eSXb(n)_kZu%jmsB<^BNP4O~ljFBx9gYv%xvjiJ*!C zCc;V*)GL5`UVHS`t|FV5nu|`k*q*<^v7c84X}d4gwjall20qN)&;efsAV0)d4^VW!L1+d1|6FL zhXu8VsJT2~uRk|cAu|M#laY$#HS}zDP^|3pwuR_pg!)|gv2T2}^_`d1A(y;nm7dy@ z{doo?9DbHNP6_wd1JVMCH|4tXzwT#Sgdqq6@46#L6`4~2-gQ|S{-j*vX)MJK@UE}n z@J8+OP&oYjU>m?@6@;W?j0aTjG`_fsxfD( z0U(;-b`wPJ?>;*QDWdP(O_!_ngZ{8)_DNIvoeaY>3cbh3-7at#y&>)xlGZalL5RP~ zR6M832#x(~(`9@I^trB@-eb?qnY120d~GaUyr*6m3S)=v>MtO<>pqD5Z(cj@a*c@&Jt2(EZ8G_zRQ+qX|LMr}|FD84MgPBA!T(OM$QAtu z+0=Jx|LG-q!$NRi;IDT-fim#~Az@>+ekSvx&Vd1vdW(ND?6NsJe_l}z#4icaq!jKLNNwqP7EeS~w1 z43MC~iTi?j;fbVU7Zqv-@T9F;fjzS4z-o$>v5uY}aMx9~{(eAfagWzE74sEftsvoa z8v3?x#tPevJ7t7)>k%-)gq4wZZLevm$}%0I5d!P&#soK|GtsXfy{NcsFGql3 zPA*YZ7}jZg$(kyHC-VXgX=FHofO3_F)!-ox|4XbS-r;|WmEaT%##nS!jm4Epm#3}_ zoo{P@ptq?cVD#@;$y>1VFWSE{Tx5LG`{5`6d*tPJXfzlh+c`dQ6l}5h&~T!4-=tH8 zLxnz|+3VfnHXTj+dlWdZU-B-SG&+3MDbT3Pw+83jF{6r+4vX%UDWvj-J6H$MHoJ(N8lKSZXJXI0~4yfQS`DmLc6lc zkgo1-Ch$Zgw`Q!IZ-`WY2Wpf!at%~1sCU*>ZhrHQ8<^zAf6@62y8||v$wXR}$oidS z)Elgucl(p!v6`AwM78R3>v}i z@~j|jeCoh|F>{mRmyfwMpZja(oPRxh9xlzoE?Dd1%iK>}cD>Rr*tlh1#+;us20dvBkxnv`EXCDcb1_-3PIZi3vR{AwZD%^QIVYgvTIf`G@#JCG^8MB-FL~EF@8PY z9%;@geMAYngzn%kV~TBrlXEMY5{l|8aTc2v^@2)+l~S!?!po9sqR((x7rEaD*|6D^ zntJ10KB>k^9DZCfSo|7Ly>%Ohm97#+lm?B%T%Y6ILR@vpbXb5%@qB(hJr4Zm5K@|L z=+e0}V|{dM=mSa0Ckb=5N?)8{n8L&`p1_7iiy7R8+X-7Lb(Pb|JGHk6(qK@{fYlG> ztXmi?xhNuL2oClXgv6iQYZQ{T7V;GzN4te-`Y!T}idTOORL{&X67L_AIarN484HTh zfO8M_Y-|nL!&0$NuQ|8IN4MigIyH}NmgQosqAY#7e<0_ICj9F)GP?uI@==xDmI?nC zXYU!+RNHk6Z@LHy7DS{fAc_>F_aLZP!Gh$z?}>DYGxn0UKjF>Nb5@ zNy@B_+w#V>u2$WIfzU(S_}%y*KJ?GK#R71xm6g>x<(=BgKd5Y|$=?kZ^9RQ*Hp1P8 zWp;ibHF^H^X{N03$-^;>Wd|Fe+=DgBv z!Sp2Y*=U8l+QEl6cSBF51Ckj3>Q}gIg_VksnO&t4l7riBrxt1Rt?E!tDd8aUqGClT zQ#qje@f>f-tpODX`fkD##NrFK{&N;8LXx!Ok(5&4>VW|BTI|bi%*)HgCzF8RP*?FW5zXq zbjs_7q6Z`6-?K4$8utCuR!it@C*WP+C%RXUwpp$&!Pb29OzoROet~}?n|AsR`g24O z@to;+1ms>s3A4-&S?UumSFNK1&KjE`zZNi~rp^Wl_IES>9D7a|===SF(EoXW{wJxm zKlMK^9uA&B+L3c4Z^R9-~AHB>&`hB+lwbu_1{*8Dd2Nu zW#u%wckLWKT;O^qDj0%>>|{3jP1T>T3@GSTt(1Sj^PrY25WYuB&OgPb_5Q_?rQ;dqzk2MMlp^1QG5*#bCumD6^oq-)@gnI z=sv%VzYP>&yX~ENhaQ&O5i0Z$JrM7gikJzKiD-O(lArW z?A4vr-mtv96>imbrp?Rg$);dBPM{fCESvAA-@AZ=2Etjp+~4o|kYQo((gSunsbg|p zMS1SXj~S|N1y;@ud-$y{US9}hXWT=IK3Hk>e&K@z_MR|T;<9BA>D(Aj>0JB0SC**o zrn083ewdpn%8hR|)Z^Av2H{Mr$0|@AKHaroP<$8qa)?OHBc?2v-AewF|Dvs6@O;Bw z0Rq);FtdR&9UIYH*c#xKo=2SIl9luOGWzpzX3<-KEV11cbqYlwm70;4$RKha1V+5wAA6NGnHyJH3 zJP}`MnGN=>R4eIzMy0Nv^?jz@)l&H)i#GX1ZGE06rQqhEl3FOLSyS`W^7GkqN&-di z=|iSbu_pXt4L^PCSvqQ+jUR0_GTR(y-_!P`(gr!{I7R};weUTfwXbZF&!ExhpCnDD zV_Z0fSDlnD0O2`THhh{tZ{~ZQPoQ@z-0tsxsi;miPq7N^s)SmFo*C4gEy2hnTE9Fx15Zy9SuP zS_nKY%tCEia@tIMH|Z*N<@!y(ovu@s; z#rt#gH_!kjrTME; ze3ItU^$NDOPi#|j9m3T^d6S1>-bqUHh1y;~9d6dQHI}wXCw$Jbfcb}wL)Y;Ie3F_q zDWtz4gO+#xE?F-#Z}m*^vCULP3d}e{x=|adQj6@ekDyH@4eK|3w&b#`7P@Fh&>m{P zEk>iH(?$jkqw=jNCWDwa%ikVWvS?5`t~`_Wp=}WQM=6u)fofg0(UUFpgaz6}@{K#i zjwr?|H@=z8L3y;@cFjpnwCA+={>iUyI3v4mW!2mb7QOg#RLkvX%{z<@$(m*JY>_DY zw5+TKzY72Fck9kRRwdKSZC_4|dF6SO?sUFIvga{f-5yb~GcY7HozYoEHX61&{J5|% zI`7xlWeS&;{pXLg-d1#+ME10-o5AgkW!WRa;XexfaLu)NOa8LQma~|a>MOrA-NR&( z)Qj=U#nq%-SlP|FTDUgs%=JOcU3@9)Varb5;Pbt1k$xM}d&%o-(sD2(zY2wu%z|>B z_NIJMs%Zm`6^%Fa*0$|6#{GC9j={1MR0pW-%=-)qpyM!SXXO%p%qN$#a7b=Nr!A`%o zc$M_*83QoY4|c58gj*4PbQbt*sw;so@xgf%Q^e?9^NE zAcfjN;mZI@FqMMG00VI>I!4|9sM)qdM_0dkUt8);&cgwbx>qY<1N)dvD)<9nP` zSd+iXFE%85HLqv$@$;WU9~W|QS@-L1M;1C(MkgHh4#`t#eW?hQzsKYT|RNt!x-Ca*nvb8+w` zwO+IP6@nFReKc_Y075W2wQ^ivFyVe;QoeLXE?Q;tZ?JVbQv-$P!&ZQ@<4TANF#;E# z-0z@Njn8YI*v+e)=wB_5tin%?BYweaH+Ro;W-_QaX9N<5{MZ5yv`znBskrKQ!)w*J zzA4Xl@=7j0;)r175_2xWPXZN%O_&Zr<)6{UHnvN ze;o>#XP~#4vJb27vUy7|Ip8dtieG~jH#&AUVUVNe-8o)-RWp$Qx>|h6&1_M7Tb(_- z!L_ykei*b&Q}0aTy;=Q)Fr|}fpGLULryfqC7jKS5bD{1Qtw%%y5uS0)W9MFau*`iB zr`0Rq(zNB8lWF4{76-3_(5QtdTlw?2PY-=7uU3kuu&gd}BH`iTK<5}4kv8ce4!D&s ze&g_VG|<;~bT0*oPwb~hLPuzkPDG)XxyxzmZ$w(1a_h~!^yT|+%RYh5A0rFDKSiGS zMX-Opp~)d3h^q+B-jGVIrBh_+@(Nyfb8wygR&7$$(mAaVg>KBAF0B9s??{>cYHHnG zYUQU0lazqkl7|nQ&5nC-XSixXDVqC-%snqD{*L41NxkwE7W-*)?dY7QhqAtyh0;mR zW+I!As%uD9eNhjI*j<*RfWe@ZvAdkEo~-f7Ehe7A!nN7_!}YdxtNp^;;x?6TBWsbz zU}nO(9DkXIN6+#24*BA@a-T3REiq0Rxzt~M-8Z!9Q{#8YD5;S9TCW9PV*|CTG4#)E zN(9kkb@rRf^D&K0OG$^b4t1Qdj5-d}`0fIQ4P-xqlLv z(_3PkQsxG?v_l@D#`xcgmlhMfZ~6bJ>-c}0`JC9|=eBF$|CC0^_xZ7Q67jW^HLl$Z zPMEx_lr6KEjc(Kv#u+_J+)CvY)bi$7?#rq9Q^t_h^@T#xqC4dC|4$N@A+5O=XTkh0 zW{dv4cJjnqO2`0{H~rh>**NbK*em-hD=ygl2fU6huY_8r?%<@mnu%sh`Fv6T`9NNC z@7IRWnwKVYPrR-0W(&OCHMdA&!*?uijoQ7(7c(?nXS+HKQOxr=BWL*F^5_79>`Fx0 zLgJkw!Xo#-STkI1Ws}MnCr~`;{LeB@#Y5_25%N7{Ua}Q_#2@3XPm`0Q>c`c($n46( z2M)}Ch4eFGW7STc!fV7d?2DKFV&=|AOR12Lj($_uO}!En(sWjY``exabsy)#>Q(yG z?w^wpRS9DnxEaFtJnZi7Qxy?-5%bW@63+05LvCglwY3$9u6#T;c`i4(nMy>&_UfGe znXIqoClS;^(wn^cu`E-4@QjzyGjwGN*HsS(oLcP6%t|Ki!xev=L0iog2+1-D zp14E{-_iUkcDg#|;p>dI%*y5%O)ZrFbw1xs(cyd)DIg@PCwijR==OJyGeN}gW$g2a z9o3V0MK@0B~h z!jqB3Vl3qX8eEuMX0wamfE&WyyLYu|RLUh|E+VdvZP#;+0)Aj9cwxf z-DY09?qz0P+$8sBpA$N*`*ZRW@{+r4(t4QJwkqNV5*VgZ%tqSCEl!yf4%Bz1 zPXD%0yS>Nxd&s*oE(SLLDYivW4K(+KI~<3z71TMwQw$sxs_m74p1A#5CJ$%{-y3Y+ z0}_c(6B5E7K4b-1bnELTCgD&35EBza5GWsvgTSSNqT)>$7@6Rs7<}lSnTR*Ptey=h zqSkn3?qornhH>6>V6a5X03rUOi5bi9$-alkk3!QP7Mz1w;1i}j3b>e{9R~hkVVD4W zW$d?G$FE$8k-KU!JUIG+){7PSU6pn>$D31>YP-FhHq*T0vWIBAQ#re6^69pGvhvOE zD33)83UA0&&Bqgd?lLsZr<;kGx((sq<6MLli`?be`N@rR{DuTsEf&*@quzgq#q2hj z7z*K)SxKVx+N8vu40NCCITr2N%flM{bzz0q!k+=*{%UdeZblAiB&_xBa}bk#v*80? z3EE#Gwp|I-i(7ZG%t^Pe0&^`Z*aoU_VH0gFNIr(XlMxB`NRjth#4O~9KU*XH?ZSj-wuKR zSpd9i$9_cW!qL5B-@dKEUjyNxf^cqHdAR_-lH`~mSi;=rq_A(Cg=5d5lwv1b&ehH4 zMAhJih6bhRR~bjq)Q!m!=x;OI&H_@5-V?8EE`p&n_{|D}wHe0L7l|3~Hr-z4w=s?P zMaSg^tyA8RG|uX7H`vEoMR-yoTNeDDuF;$hUxMptRZLtz>9`xHrfm}O(aD;Aqp-a8 zs=A6nSELJJ?uLDD!O3{=yD+_eJuHZcjS-odojv97s;43kdAM)sF#E2no2X z#>`jwC+M`+L(MObF(LGY2qIi{jut@9nptvj^QX4B9HMLYfg)>bPfwTybvceM(HGo~ zUsmLv3E!B|!$>n#rR0R4y5u8{q*m>FOjF0OODOoVt+2rC{-X$pao(`-n^*h=ZjsQ% zPnT}%ymu1h`=Qcx1T=4N*T0ais~m*D+mo+ksKW0^Z!zp3`{@db0fblW@_tF3DNmjR z0&mv(WpeU%M97-4e805xHlQfb?P7v^@Pw0#QTFK7?t=9l+$bbAKka!D^^N*elsf}m z75vXtu;t?5$J0A|K^OhfrAt8|HcNN(28KDv$?17}tH_v^1afJuYu}In^O%6m)#JJ5 z6)kCcT)^Y$b&!XK`Z2F{mOA`P28CDW+du$4sUUY`WCSrjav#K2V{Vmvw~{+7s85$O z{5s8L+gvv~ik*|i_nI}3*Q)7iihnM{3xkC@jUYMXDfX?Xd1RqHgSn*h4WyNxtLVCER#+X!twe-KoZbXF|9j)3tm z4iNs4l#{Gg9nUnms|nuIcrB`t^6Hh`gMxCe@{lIbYt~^k{&WG{0~WTAr(*-WJD5AD zqfTW^>xHFkl~U24%Rp+PV0W*u*Zx0K`yY+ZUgcV3Zmrvb>$InQ3)*A6@mQe3zQ|?h z4>=0`+R({fWv^tX#nJJ!Dvmn5lxtSjC9}@)*@9zpZOt!{VfXIqx=Xg6(rE0l3-RGy zo-}RC_*D86`7`)~?YXf59AZJM#fCl*yk7YsFE1YuKmHcwO+K*V1-o3C1M|6!>F)Q9 z$f6Th^D~;eE@pf|7*SZg8}RD`7UTY(kr`f8R#N(QuTU~2z-)SY4y_1V2Xw&uPEX@m zsi0e22g>uFui&AnGg7E)#l7t3b-9=x*B!|p4ONNb!jN|TUCyBAszUbh@c|_YL*F4z z1z!@&!I(334GrJ(Z`Xp5G{|e(K_BY=gvJR^7R=yl@@iRa+QC$ou8UcFFLe^`qwoK- zFHGZy&=&3=TVg3uQx&LHFEfmu9Hw%S#JEYBC6?^kdratOS@eHafBh|)**X99qZB*+|Mbz) zZ{NQC34R@N-IJT9DYI<86z%=5&L6BGzCQN}YzO!dbKhz4M=(-E6yAS1f)n9Iiybij z4;NtV`;)`GuZ3uh4wz*Ux@3iEk)+jPfU#L)8zr$Ju(V5EW1n}ZCC4zu{OZUF=v``3 zmqVVvY(xT~GXl{bZFwz}ostk2nqq;`M25qwLzf_?^(_>J;fA9foPaF7%+%vzL+f+y z_8)mc0&krP^A@m?EdCj)9F?+!?9v3l?ly$N=qYcrjm{TaEruq~Ag zPP$;jz74+xLx`2>@V$v0?T!QOWsb(Y))wo~zOf^;y>AGVSn*NRD1Tb{cm=;x$i|SL z;$+Qy9}8^j>a0O-6Ae#6EF<88mkBA^eG&P=Z$CDsYm(0O`13Zlef9}SJJtFeD>TbI ze-Q`#oD#+z>M^sc(+&=d$RcE=?&mOh!WfT@*=yL;ObY>;Xl5c&HyTT0i~hWzXQW9} zvhNWgK6=cAT<1@?>5!#oW~f+cpwi#+{nN6z#r^AnGhjd1^?_s zli`G*hIfl&Z&6Y2B@FmMg7)4C6veD9<=L|XIM6GpvpMs^rN!#LuQ5<|%pP>`h>MGR z&e|?P6w_;{L*Ha5(T~m;Q(f2eQh%32zKojDXM=D z4>t2hlt(F6!XQZp9`IfT@4S9jp5K$A%CZK%UB9lRJBPQ1k-zC6+R(3brIfCnJG{o> zxX;$Z2(97 zhAQn5QYv--J_sM0Qc!pW8SWG=!Yo^cWJQ`@KaR!OYqFIWjR03EHH9iO$qT{|M~+*W zCeG{k0D|$}^n7M!<|Q+;NEn`z=$rdlxdbve4U*MZQVU<5vUNFzq|!)!t=G4OoYdvJ z)f>#P(v2SsmqRFs^~-h3#dR(XSVV2- zbx%oW>YHa3Jy_weDAtde4%OBS8Z=D`)yH?+WoX^jjF;ZiSm1ADf&WYaNoI@7PDU5} z{WYK%n)n{&-M+t^HkRw$*^{s0Gqc-uWmzHMp1_f31y*Hq+k{kF#?|Pna&eQvvMu6K ziFZCj@qlrV@9fFn^Kty^E*LUVg6mdo^6hm33j5<7N#~-)^@#UB)Eehs z#C5+eAJrH_PfAa>947f_GNk4-p=%&ALFg@v&U0%Y7S3_d1y+8-CjLs^=E;*M!>)&b ztgV>#^d{`V3)1L1k+f$kv5{@J?J?WQ|>Rcqv;&bn?26n1#UL>Xw)En;0}YkOBAq4hWS6uXW|GL9kD)a(0-qOo#XPWkfL z#(4qBvYmm_FFoS+FFs$J?XE}i#(vX=r*K+V2>V;mvy}=O8wOWeHrKSMps`J0s(QqP zW2B@HKh+CLOhJEU!E6r+S*yz5m2w*%kY~FUa_5}g+q*J_B4W%_yLiJNZ{?sroyG(_ zJR3+b|BYz3+B79z+H*b6@_537oxBTAMfKj~s{OT`@7BwsO=u}ZPfnV-&!Q6dc$M`Z`-c1oFXXCnxIIw zsl7|8ZGIW_a_a8);w)hJeavUsN&tl( zaO?$ko8ivJssWEx?y;{vbK7q`dw$ST@9D=(;SXQuyGiRHq%9hA=lluUP_XlKo6+5Z zYp-8leYkty{fvsZ7J)VnV5D33ZV=C3y01OGcJTX&wW9v6;iWWZ1&YX!d9L6(d!ky< z8L-Q^bm^(wd4pm_1|H3k^~bOo(dl5ezNxSS5isDS!}+e@8XU zl;58fgdvIxE)|zw?6b@5HQW1li@*0d=Xg|i(!hXe`SYZ0_PwL`tu#u-X?aG}Y{UN@a)Yr{#{$U1XotjB6m2d({< z@Eh7=%t>TFyYrRw3>?b-he90q)N>E29>D_)JWff6j6c&BWDq`nNQ42ALX4q z;HZ6|p{8^laQtXCp`M7D8J&=mrr&?IqKXrQl|^<0y4CATCo)!nU&?9FL3<9;2{y_B z;3S6_GaXB7?V0#7cvJ2bR97S+(d-pm)FzoV8Yy!bj$PmAtaHss{{US2sv?K}fm6R> z5@%5%fH_e-V7<$0j_we&XV3eAX(vE&+}#x*E0M@HE-s@8|mb-`kP8tRdX*$mSbIvx&@b14;-M2%xC1}oQf9G98fb`)BgerXo->! z-z@W@ECU^cO$yQtiyNy-%!@V!%IwQwpng=5%XYenVFEz)sL z+U%tw_K|ei4!KO)I<6~wHBVuJ^a|CtBm@Ann@VXLccIW7n zIgjY59y_*!4jO#?sAFs#&x{you02l#)4l>5`ORsrJJ>xr3*R5rrLSk@gb=3N*&s=iwoXPWH(0>g*t=oa)qG8X(lN|%?iet_?J+R2C1)}^Q%jH+$q%`N+raChfg zv6!rTR)!F-#UC~B1dOoAqxWX*D-e*0U=cAa@fiC9UcI%xxLJfU$Bhc$;)NZHi|`I1Wf1|9<}JGP{7p} zG-rXb-;(6bg(FYBHBQ(*Duj9C^Y%4&wTW?kid5`HTL;fqEYBetwtL!o$O1!IJAL-7 zj=uhOP{kh@v8?A`B@{mxi*AJ&VaKjr!O#gOt~(lD=VWqx3ngfUV~Q&gx5Fs51x#Lg z;~IzI!s_sj!c*y}z2s3ZBWBEeY0xaYuMzcckXrW5d-ak}qww}&+qXK&0bAa8c*Rm) z!Gq^Su8i4T^2+y64ws7b9%Gv9`Ot`5ObTijMLOE??4yB9d6`p>rz<~_zi`~Y--v(t z=na-c5_HK5(W0)8xq5gMwmmutUuAeKJ)CY)$*)^Jk>LQ3!!#wTE>E=<@n0I!GMd}= z-wUZWL|(#9H90wXyE$32tze_L4#j`3zcc3D&YT(9F=3RVDocW#WS`*%PTj+Re*wmI+a{nFHZxL8JBW zu$OyRXC3^Cjc!>TBDJz>!6a4@eC z;dZ7anv1m1e`3RT<}Y+-Hs4J_m${dWTh5Ogm7HX`o~wQF?~g*a{%%j{Mb+8{X}qTu zdS;V_Gq0VA8v8o>_gGCvTa3J9iI_SpT9);TggkMVIU#PEOE>D9oyMQfz({==jb`5e zb|uwo@m+BW_bC4!oWt|#ZJNi9p4AyVd1ggb`=1nA?ae>mVX_A|*yr0et8e)y4-dn% zmQBAJLhGEiy!qeMTqkTuUHhLrUF_)pb?V*rVBHcQx=i-rNc3HJ3*qMC>;8EwBOT_|k`mK&9diL1^*snAxzU_i_&3}P_x8YzB z7R+m5oZesG2gW7_@ZPomy!X~rQV?VtIf)Fjhs-L-|G)uX_WIh0Or>Lw*i@;VHIn_$ z6+9f`+XC5c9baBlTW9@$e!y!lRsciFTv@Zy{`u%9`gOWonjIr$;VTo3F_Vo6-8u79 z^AaI&h+FXlgTF-|dxjnGK*#?0KL1kohWMm(D=ipKD)RoxNZr zgSC=-^_+|D2u?at!+>N(Hs&dHjs0F4D{;5URZ`wfvEI9rb-S+1rC06c4D1xksl)pr zr5+GE^k=`ZTw^M-?*%yr@nb@KeC)wrkx#w$#ijsm0tl>0VmkDi-- zTl6s5vDpNCX$-Iu4JpMi(V%!ddzl@aM=%>36t^FMm?D;Puln5iB2V?kjDu5G!jFB{ zt10(UD5APmie`B77G1{$zN=Cn^-deGH}YCrdyk`P!MPImf&rPT=nQ;1CQ)T<&4BE^ zb!+~Ifgni;W&KWc^7{7eNo_;N{=MYD+ds0PfE4!l@%>)=Q?MDdmU%h-In*winr2CL zciHTyD&z^79>-$NJm%~X`WXHAv5Wfdux52nN1|jNb0WU4%>bKBB^<>JF{(;RvgSGk z#KL6woPtAjhgCK6-@1J}b_rt9IGM78sSxFUuL<8)GTybd!$kJLWIFz$my_tlyV$m> zXwn!K<-@H`5U4JuZ79kN^4{P4c1uCA%l2$t{p>|^7a=F?$_w|Y=d($FAbGB9sFpr^ zIVcAK{s(*q9UuTAsimcS^tjf0=|ICBd9e>`U(C(Tqu|sSUjfWCcB!w=IBdS~fdm=> zqpTAUB|Trux|TWUS-ynBik%eF^i_b~qN5OYz>>i^(~oum7Spl0Ve8 z{rw0a&^1tAkKK;|7VyJy1F|4B2RiGzAXB782GMXCHc6%J)>uCDWTid2s4kjm|4mKj zx$l!b`I9dP75D;s+l;Ts#Tj$&WL$j|4rvh!49B$uwik315_O%TZO5w5e2!Pv9LATI zp@%VVV&V?n)$YLq)oc?(!*PXd8-srFp<~*!VHP6qnY49vgC_`m%kq!9SlM?!^< zc`sT*A&{YLV>BvvQzoy=A1R@~v_8hP7X(+9S5}f9-m2V;$}gtERJ~m-%sRH58NcL& zl|FI&xEAI3Z{pg91mXDAz>^Ox!ExqieOaoMJh%-fs(IAOxH%JZ@0=6H_-pUs8P?wD zjJ4hjZpPQIM8h0+dh6=drqz`~!GF z3_PEZoP@MH8kv8{BB`rn0+3jW_{@4 zw#VP!(Bf_uYf!$97#W=n7~$oyL?D+eHmPmj>a5p zOk#Uz??50VH;L+A+eP(g1CHo{z!ON-kS3;vN+DI;vpa_&E=!m%DVYzpG}{XAkug1_ zehpoAdt;i*5nDWovgG&%`4bzs|Ji@8pR0kO@>afxoZMwMnw_0ptPj|Y*10>WS+c*i z&^V1hTs)*^w(&GFay}A69=l?lJQn>)A_Ff{CJH;n?Md@c4&jum_k&<%ah6gf6Z<^qJ8{9;kAq^?kLexWQCHMO?xtNK)R?i9sK)}TNGP5p8?jk}waQd?uCS6rpBSjp z80=wqsXjV7%FW03f%!JvE|~QRu>}RKHp3<^q;NOSjHUW1+|cgbzi+pse)YUSMNGKt z;c*KYik)ar*jU-~bH>Gh4F7RD5iP#+A=mK>C(p5D7;ru=kQE`e3xku`AXUle>PQab z92^Y{M=7htwYkJKY$K21`X*_T9jZD)%8rR`&)!1~6qZeGYnootiwoyJ5BfJb_y`)B zXa*JWA&gC4HP|HCk&4)Z4KYF?DC78EpGf7>-~y{{Y_ z2ungtAG@=YcTTh75#aY&HTgJY|Ej3$U`oNgovymEOed-ziv1 zouyD#-Zn%rfOns0d_qFLL%-4)$`>{dr`O5ljEpVbJIeRWcIOuNzg(J1bA8{@c3j6% znw2Xt1d=qUbBaQ83>Cw$4>b0pA*pSBS%qhEQ?Y*QoqXJyu%Jjj}I?54-ZrJYu{eNrgiBWem(5i?rPSPqxpi_uP$Opo%L*Gs5f<8 zBzv=lcQSb1$=oh9`-$=VR1w_xHf{{*)Mf`iuU|jY%vZF|IhH=cirvFe!92Q+-lwLX>21i@1Gxhih3>VS%+bf z>40sX_CV8*aJs+9AqE&XNAsP;=@I`&s+=#sPM$qA+Zwl`Ytb zJ}a|4+u%i>Jck{VXTJyYUxD~FsT&;2kZUN)^Uo90HnC$93$<>wP4kxl!vIWR_}-Lb zfC1TrMu;z<<{f`pLY5@)b5IGHt^KrRPYxlUuT*_+5lUyLVMb07HcjX>c8}l^zNgd- zF6(Q?rQ6SKqUa+ks9t<-X3f;l5|p^6c{Ofv*3_@uo`2setb#dV$TfcOgx8{;y8kQpq#k)evg!aw+clP=3P%IVz0Z!?>t*Dm zU)VKF0>f3(9BDG!B0Oi#>wD)~aolTO$vWx1=-#8d<6a$e{mug=gSk9hJ052yZ&Sw_ z%%G^~5f&MB9PN<3Gtl#MLvm^pwNRp`{mmeswlqDB1`Y+#Kh8W*EO6x&KpX{kJg)Kb z10B!5LE$2Pp!5n58bD*uTx9774Q$3v8`H`?)Trx^g|D~}J8`I-q4iAJmrsd}eD4_J z;poO$)^_e7V_7EBlalJc1q_ zVaqn9_izB{qV^?W{*)8O2K+ChZ!NF750c@i)=%2eBCH}OZy+ka^4XxM)6g+6gUPbO zDR9daeiQAKucYwia~9|8n-$LaAK2GC3Nx}@27}I-xc@+|h8HDM>}2O18SlZxu(!{p zt9rfwK;eg>t~es6|Ke=e)O6Vxl*v}xaf9Uf>8zSK=04hHm(e>?9KbU^`UfsTkzG$S zTa+~a!D3MAF?C@K|9D^}!;QES^xf#IGG&ugQ9;EIebS3ppEPp4a+}GsviQg_PTfvd zbSB$+OLW-xnjfqRX60cM6H#6YlUqFq&BETR`@#qX>yBvxj#H0K57lITuSc4%Pgp8eS4ie*v~8UGO77 zM1a+n>Uc+l{m-jQ0<3}GZGPUa9o7iUSoc0boQ{l^y5mD0-oMw>1mCS4!FT#^y<7u6 zWQmVQRkhCBl%P7`GT$uL(M1}p=M-bV=1rwLoPRgjixeFPBUnx(?NnsjJGpnoIQ~sB zafUo=gkO(EhUt(c>oaCi4H`Y)AKk`@3@*YZTPJ^~0kP!x&L|i%Jx|bv1BBywmV92#9&i3R?hT5n63RX69{JpG~nhqv%)Y4ORYaCl(>6 zVbQ#Qw1P4(eqEmaQ49x=W|W>c)u%SbK+D!k3TR$4akoo+*JkjLQpg8Uo5t}`^thTt z#COlDX`?7fz0JtQV5mW!^CQeX1^=oK%r_I1oqiNp*E8-6Vd=wKHMST0OlGM1f*X?X zQM*u)M7T3NMU2E&@TEp=s>d@d8*cQ6522;IXqzdn{;g(plN;~%ow1Ae6|}fh)jvkG zW^LogqU4^;AI8eEf2RGCNO|tJHuC_uc|aw+wK~eAh1jm`oNs z^Dh@*Y;24HfvR!cXF%9X2Gct;jW9;nud56l+w$7N0%Ihms@gl=C`@0^4hl@#fUGhF z{<6Ba!bVS&lcl;lOD2>3-U3?rt9a0pAG*|!-uk`;JYM*aJeW@J-1d06i=76x%GJKD z@|b1c_*7BAGRksrynG@S&#|IY^W6s=Pl!K5&qUsKIKOLMjj6|wOs&)QH9=dXg<>H^ z1|rr;=(`*p8@qJ*@*8Hs1H;@IOwn+ANYf1|y}J5(2D(rA*ficBt?A>v;mU_7IrfQ3 zo0jA?ZeB1oP1Nf*D{+2Z?$BSPG^+z80DJT=AT0@>7@pjgpPygn4G{L*!brRH3)N2{ zpzE4%2pR+N=id;Nr$H?ZXj;19;Vg%T=lvC)S>M19$WQtNnOW=bIqWh()L zMtn#p1Z4CmDf{7&BgK0Bg(r!$7TKBTn0E~lb-@En;`g`jIOMHkWhDlV5i@Jl4_LO< z+1V6LzamZqyh>g>ddOX3&`L;(1kCd`_|?r1b-|hUc)C4(jGn{h-K=&due-eaHuq8P zJkYHsjN}4=ioRUpGIrFVPoXR}-5_NTmK*wY6f zHYJQf)gJOTVJ(5DBO~iep~7I7Y^U6zbDqn=Ho2vvjhXJItX~f-`JH>tk?>Zm_aUk} z#AYt&J_t?=p1sOn9f}885lCoNzz=Iq!6NcHD4b|6YZ3?2d~SBOW1wV!R841`?s)z@ z^-b39NsPt^1ur)}kCWo}&YpGlIPq5Q!l1&*t03iYvo?zZK>tiy&PlE}pWj_BQdZ@k zNbyY*8^Lf}xW}~(Gz+SVO5UV?P+mZ__X(UxQryXd_7Jg*^Z59wMff}V={A30-@lbe z@xL4u5plx7K^i9OrE7EKGA2Z{_Pkp>U5C-*kXr{IrBl3*dNZvoMHqo>e`N2LAxwhX zxz=vfh7b{_B*cMPIXAF~Z@xudU-}0T&=hJ))->tb%6O8X8`*hp?TZu>Dc0?Lj8_hx5Z<`w!M9K5JEY0i{8XPMQK#IFj4x*ga155hxnd*L{GG@RUJq6nrAMC8W5g$IV95`^PEf;n1 z3P(p``@s8n6~xE-U6F^ebLZjU+t+H2@$0}WouhT4O~fm*$O|tHFML9fqnrWx)?I8L zJyKt3UbYGT-g1op1jd=vdHj2Msn<^<^H#2!@$6>ju5M+9Jj#m*A zqe-RureL%diOhjO-8|>$_xytw`iTW)&fKo=H|-R*h0A`a&$(>gr$U<`;v97OtSk~dB*`2q>4)>{^Q3bD;%5>BIejUXwuP;tr=tQ?Rskm>@S(_ zPuHbDef;6zXQ)Q16pr&A?*T{o!*-f6>7f>@sp&rw0x2_Lr^ywcnY{?ndXA1cX2gzL zrssL9fl;ObmS%0c3^evbjW%ynw&R!UscTW~N@ku^mj^3vNzLDH)_Y7}-^~4R=t%LQ zufbgRPV@L%c%KVt;6X|w(0QAe~MtaU~yt=n#F@cwdhvBZnkK}+lEu@@Q zv{ZC36$!lLIqR+N9-2XZ@#4h+@JNQT^ImmNDP$N7tDn&6?_iglWmb0Wtk2u?IoUm1 z0F5?k^~hRPJE%HPA>6nN>vL&0Vp+&WV@f8nPM^cPy_XQQ%rQBm8?<7lN|}$gXP+^J zKZ!LPc!Fjiuy#QM`m&tgfk3%^kp;JhC+&bpekW8eiVi(3;yA)mo}3do^UUm^{*#!P zU^qKO)zwYdD?RZ;+Yq`c#_~=g{O8#E(%9*HJ_bgxh`|a-{Q+%bGR13?1Q_=X1x@KA zN0^Y+*={a?T+ZgHc+6Za^Z3!xam(x1nX4y4#uC05b7p=p^i^pZQ(plz-sCPvpdM4NE z4~XoZ^-*tUD4gU4J^wtVq^yKk=Jl!UbD7F7j>-4KF?%@6Xws5@I+ZK|9!;XQ-( zUtd(xOkRgtiYEFvz<6r9Zh?14aP5Qa+l_fE)%*b85pPSwD4bIsU$C- z6HhqkJLPUgTo|llN_@j-W3-leq;m9=chngx{qF^D1x>WRN&Ye;37PYp(I zG7Lli<)^atL-%w0HcyeW#n%yk{zdmY*e#V(g%`YMBNwJ=V8`>0P|i9E;}F+`%kSv2 zjVKurFM7Q&b<(b~_z%1rzSKEVt~4;vG}q9sP{fyok(!1Gp?`|0@{piAF%Wtl&L>O zqYtGNs@?w8RHSK7YgER$pT+L0oeRy_0>#>Hply5d;6TiAuJ==|E&q(vqc1*5*RH73 z!$h9ix#%s-P2_bZ$5P*N_t!avhqbYl`6}cZUj2UOhJC8~5Z6f49qvjOzuAV(C8(|U zm6AlU${ur^)Mauzcdv5Uu$>W+FuOrT=?Q!ih83pYs0c(qapAU%&})W<&}eg(&r9+A zxpQte%nc|9!rLwh)8RV$-O4j%G*MYLt>Qd~}y&wh)s9^8Nb=+X^AD^)p% z_yFYwC^lW}n|v%~cH;&godZvg&*?#!06%|tPtSGejy75Go|!jFi=}X@+(CieF{_ba z9fY+v=$#GX5C!AhnlSw zWY0yzPGiN(OkU1;m2p@lx3saqHC#hX=h=4jN`*hA8SHv3{DVw#gz#>(6^y^>%6e{Z z9!t=&T@vQ&D6s~IJGQ=aiibQsV#H>_SOLsSQA!Z-Fgk_``CiPm@T>kaK^Kl?_y%1!QmW~qA{3wtPC}#Z(@8_s} zif0+;EO195LkT1i1;cdD&t3g(jb&8!E$)rB%PD1@d7P_FX_D7FaZzb?d0fSHK*?Rt zj~+C}CwVg0aozQz2%pAo#xlM+bL;2^u-J^fXT9Pmd_LnU8Aqu13tTxkWs16Uouuw< zm0X&5k+KNC5v163o@|~QwaG9)2Ji0L;FY3AQ7N5Ygok|J6q7|nX@v2vj zxSu>T_U~3eOpnwPey0ENHqZ~=u zG}GkD_gT54%1s3&wZ@GgN$^mAbcaRbCE1u~QG3J8AyX4=)GM5AQ_9(O_VB%yqowb) zNfSmlN?Fb^4zqoZHV~m0Pg>-y2W$|Hc4f?&*sRSa1+@3$55E!Jo4UrbJaaz9`$vmW zFA8(~Pbkl*?Lo->l&Z(t){2+eVu;7l&piooaa*n6$)50gsT8Ko2d_&S0xWS|pA2%k zR>YVN?8O-F_Vm=njy19^sXiI^iVNak#g=heija-H$DC$+Wv`nVEe~1;GLCq8P}%CZ zN}8%zf^obU%<a#nB8_kUS&KO}gQ~WQbERz_Gf>M;j z7Vw4dz1;f&Cc(;|WxYs=Lao`fDZOE9hCX5Nwf895ut}xNH=>atYwalz1I=VN7oj9u zA(UyN7}Jyic2DwVe*?ATYXav*uQjH=NzC6@$MI83Y{tRdwYEY|slj(k8Rxksmc90@ z`VT#Z{+mYOQ59%FIm1cS7=z96`N{Tk2m=?@f0~yE2c5i!`M3?7*91By8WXIY2oI=) z4d5*A5EjmL4~c=sIfz%p4j%ONka7Rc)x&sniA!6X0`8jYo3pvGn4neC3|>}}nwERo z)%RDidPno?5Bd9i>vMcV=k%$a(NZm`I#W^L80^O? zegylAtioT-fgRyIvV3y!yF4)2{JWOIg{Vr^iYSPLG{Rt@APCYuLkTEl0V)j^(v8%Bf|R6$NC`MJ3>}kujraZR z=iSG#Km7Nx-w*dKhr)1Ozg+8F=Xox*Dn~WtVaqAunzda$`}s^{)HdT`c|{SKiePpnMCSPrB)dlJ31>+GYH=*<_|T*qic=PjjPzKLm15<&GV8iTk)?RF)I1ae9j{U@-4DBYhu#*%8~)a4>I#Zz&t+gf25#_9g7T1(lx=v1G3=xT5GI zia(NCA*4te1}yIFYTf@(mUz%#_?O@E|6hl)e2z-!$KI&PisecdR3=M-<8$05el%~e z^&Zq5RpFVtV+V@uUa%pp@iOs~@r2n#~9o5gqwQ&KQE? zh3$^yr0}y=Ew$r&GXh;Tm%cFJ6R9@@xu`M; zZdiSgWbgM)t5}Ok+UC1&h{f0sQ6dhBNOsm{|3T z#L_3fI-LnydBRif^XoKH3lh+m>pVlKr`T>@PWO;@|nUqKU z#_G}vZlxD!4hb2W&g;c?@)(K|^3zCVf|*S(u0zFl-`P=@T`G!RTwR`=4WX|)+@=*T z129hP!@n|ncrj@PSi-e!j#f4c0(&e>#xqain_SEE`wYY|%^Vvr2Zat@FE{=pvPry;+f?WCH^=QbgX45qbLT>gs)F zahH{p4j;s*sv-xm)k;E?W*r@Qfdii+N0Z{ijw0Q8_>rm63t^lSECE4j7h+|z8kME6 z874PwLtB!tX;#+o1A-B6@KSHSe({ujx$d#>>k;_6@FGhizIeJN$>sF@NOD{Iw?EA< zPP+VQD(&-Z{(nKt>Khv99`dtw3J#&2%JI#HmB@O|RG)V4&ok1~^{!u^=<>NW04LdH8J#bo`3+A@99}?0qrXF@a2Ii7;kqnS(3daj@5Yab zC(mkqRP2fE$SW*bE*kq9>kVB^v~0YgU(Zq*YHMv}&Jupk6Ni~#C%&&3Kfr)!9LQnq zxu|g|{e9`aQ}^2I?=f?V|8Rn~p)tW~A4F3*Wl+))Nb1o^pX>8_j!CI-p4BlX`zYwwr* z0+ne&RtQ{;$!HTviw(hRL?a7({cpF^eZ}`))jTAT*}b=G3$N<9_K6-)#Wi9-_I|Ip zHxTNfDOVl1MK1JR(bd%igTl$0$5+E7dgyqqv!3pxO%EtN#(59Q3At}QoW_k-xJ&Hb zz1wZ|?+fSo;*~4y^;}#E{XUDEx@qb=pQO#*sFYP?+T+JwxE6Y)wFx1xPd*|pzVlvD z(MiZSBl#8gf$h9Op9M5Y8F$->ym;}#Mt_^y%8Rnz8DM9ETIk~VJONK6U=uLSDUGd= zeNeEc&N|%vfJ{qs{-CjXx9tbJXueywEgIPi^35&K<*rY-6rGPeagoiJUAtaoKydBU z#adCaD65)RveIWRU%caFQr-RIE8*I#XdVqZQwJHloX%Y<8Ydw zG^wC9wn56ldSQMNGV@|hkj~Tg6ooJrCcie~ zTd|ELE-C^XAZJTE(Zf#DtHsETe96O*?fpEKgxXbxc)k^%N33}fj_{bq&iadgGT)@s zEKepR?+8F%R`xXcgh+O-q^C^!!S{A9v)G3oV!7$zLLKu_* z1lYxA997|#8Tpp+UE#uI{cB9QZI>I^C!R0kIEl*-zPN@b$#cg!VH@hx#crPGzV$5i zJ8w!%q!qqcD!Adk$v}$N9~HlZr9(iClc913qb`gal?iSBIWKJG9#NRRb>nt3Gx8GE zWH`CbFS`@5&N&v87DGKEadN3>$ z(;=~4PKGxEtDqzL1MhG7ISSYx_Cg!@QJKd=wFN6qz|F@&Mf@SA)ysW$S2+f!RW=dx zS?URu)GIY1LmQngx-}Z6f*O`xY?*nCI-OaR&eA75$SW-;cfPq+SUBn%cXs2m_v^K` zNWM{bP65-Ot0X?en(k?EjDF9{z@H()rc(O`D~xM*AB-@K*rCBBREL*A$xI0%izKSU2YpJ5CD+a21_CpB>v-<_rn zs_y+O-yjwn1NxgsD>#CVJ9x-R1G4V@`LpSZgG@raWy5GFln;hBHC>jpD!y!dk95d+ zTR=^JTSiJsS4&N!sBqnz7YxB4m&*J~&2zMv zL|Iu?)-kJXXRoO!lR(WFweb2>64|`*0wH9bQGR3eeIzhvJ3s@tFLsEVDE(*d+m)b=CcqjINJF`GM zryz&6jmRx%%IEqjA%5zL*$n3`>~#$#R^(Pv98bq}vnMVu?LvQ=h7-Ij&(j^b#V#Fo zD`8YriP<`$g9NZjzUdRU&G=GAJ|Cjxf@Uf?nwS=k?Xk8sGr^VltQ}14R7LYynQp#i zL^g-xk7!={HeMLCQ^<~uqJ4(+DD7KZ;KT3NiVbgRG_2MT4XS)5)ml+T56&BvNcoP- zyR}4b)q(3sF9r3o%u9ma04Z}dZc#yQv4 zWU&7!9{+~CNO(!qx`noy2P5mSK;MP_+9+KXoVg)bNM*>2EVFfmcfk$TM% zXuL7@$X!T28sV<&kkVN*0rKTvvj&>cqOx;}m zir7yPh;s{@Yb2fy!6bQSa7!)uX!u0v%J7}5cLXo)=r+G=wZ7 z`x>xl621cSH-?i1LS%2`!$Qq?!`I}bac zReEMeG{2#n9JYy+DbZMG2=UG)W8-`Z%O5L$Bcjj5mDH)79}qoD+L_}1`IfKvTCy5c zd`k38-okmyXC4}jH@LoeOuSGM-gJ-~pp=zZsn)xjA0D9(|2p7r`Nk9xRO@qXmVvKk}Z8Z(d|dSV~8mW}>Wm}ODJ(a2E2kdQ)tSZymu z=YHc@rw-Q)rxo_Byzv(X%We1wW%6I+frYx`i11s9vDw#>@VHF0v`#&|473rJ$;9NV zCCY`37Lxzr0yL&w$0g84hvzQ`g5iHS9jLF3(9!;q_A3MbH=PXr&rA}gGdDT7x|2*d zh@&lqY?ob59eDF5AfF{96ye2jIgkfO-!3lF2r?{(lMaG(r2HnO3f0=x)%7tm=Ypvz zpR`p~cz*tgkdP2-(B566>wWh=f^WBR)KIth#gN9-nhKWcyjPJ=X5UE9h$W>!8^so6 z2^8nEyMHrR(nfjaKI}7EY|c>o2Iu}$)OYfLS9{o5Zz{btk*osO&Hf0|x? z9s+kTLNn%xlQcV`$aJ$rCtlCLfNoNORXO`ix!VIs^+o*0w_7yt3qUSScDG3ZmN!Wtb!!wo{*coUQ9{9yBL&)WUaGrYkz*W9rTm5R@Y z_U+}pJql{RZjH4W z{$Sw4f543nEGMs#Hgw-sGpoGt!1(FO)^n;m;8j?5?XoXZEzlH^-kaRlz=^aP2rM-h zyv6#{UXZeyLY35gbD9;pmbaW<=0vU~%BM-9^!3w7iq7MVU}BSTr+Ioa8Ho3-aG@@C zo_qTIITW4$@}-i#$v~{`JCLs70>(zj&miRNzgZVJ5_(irDtIp5_*`1L4^Ym{*>-zh z(*GkFs{+GB1jsv%So$>*Qq_vg~x!88&9Kehdl~SFDT&d(&x5q1%sY)y{_=-zzYnEsJNAY8;+Uu$UN}< zXs$&=edVo5L95G-b6cLCShb{KgQM?t-kiR|dKdYrbNybKaqf-digzn%f7nZDW96b% z9~wHH)5)U6z)fpQEyK{zIc2_P^MLwT+Xljah5`1XtnKI3^EqIBp? zNy)TeKeNr`&Kvg~L&Ye~FTPEbD&o~`Y(#w4rUN1QJq$_X`uh6MV&~uojegVA<(~a8 zC245|tp2xezg#)^MI8r>2036rg{nXA?CgAaQc^No^D@MmY!;!4Csb>NFY++v>2Gm}c{Ry3*RqjGD8lc3VqhP3`Ta zt~7cIB!4X%#q@8jHxwzq`+9n;hsvFifJzF*6RD*Rd4G_l!e+GEag!#*64N12=c|3a z_TYx8)Z{~Fr*wp#GO}lwGJ^Ra!_VuItk{R7bmGQ=JKC8&Yfk>XUMlpd$m zdu+$;o#}devU+ac^f%Pn!T3Z=UhJ@1`#@s6@SPfr!(#LN@ydkxMd5+XxeAxI`9v$% z4o44shu|RN(SjEq;>Gn5KW5)JTb+vQIgz~yA^mV>muhd>#kDst#-j$;olD|8c~6F9MgWCq*QJw|U}QV6FqZgQll#FJ98P*)f8-y%x@WOiHFPO0{BNlujF8veKT(h@9}9yENS|Fl?Z! zIp6;>hh0C`A{ZH_BF&WIU&A~$mIj2f3pX524=tl&lcRMXP)z84H}InB%fdK?P7BwI zQ68J1G8r|4O#Khd>bM(E9gb`G)^Kwk7eCe;wWECMo@#?4h8iYod0O>go}*-K`u4yU zF)Za45XGKn&8c>hXMbzn$?UoM>I7W?P8-F4D3d!ds%ZUI0thh#wQAq?&(R^zg%3X^ z1LuzK!%@ljPU1$+LNAPqc{QFJB3m4EsxLjZSXrpH{*{3v$x)8kt8pC z>0e#VDQ(-}MO33H+beHO$I(`2n8*{Jmx4j#Iv%ualEHutgI5j%! zeWvua)R|jEkeB`B2uZh^oaPIh$GXkz7QUkH>#GRBCe4`XPCB77lnfM zc`_UvM7u@DJ@}b_o<0D~{K~(VbKb!cII_WWOk%ZEwJJBRGCe1!ZFXy6VS%Q}r;Qbc zIDFusm0`_?tFMFJX~%0JFKhABT^Y3F=3q<^tNf=nuT3lQyPXi=!%jsb( z5J_^O61&PY=T+?XxQ3+f8n@XR9fKs@T{xSM96j1)ZW2Q~-{p_796o>kqrF4@+qAl^ zJB=J64WdHus_!d&Kv9xWlEaV3ECpIvoji6~mqaL+7op5$qVA}*@yh(liFoov-M?C7 zRYcaBm0&vk<%_;s>7Mv^QN_O~SM^Ume;%5inaOH*^t%27*~1U+h_~d->4OA=#l*xzum2f60(rp` z%$(;V6jlqN0h=8ZPYOSV?1DzlG5#nFJ91+Fvi_TKIyFD_pi>%U<#V9?3}Rt?NGO&C z17cW@#hUw%5f~a#w?ApNJiRD9ecQPvefLM?PqcRUzq>j@fw|sY6FvNuTOC>=d!q|T95wGPwF+e*8-xE zcWXBfg11Pr*Ep+e-R>N25#1tE?D4829nEi7&l9dzod zU~>Qw8_7RiXXoH>(Zxm9%4=)~YyQwxZy=hy^G?$FNoPvlqR%HRgGTr7`pY4CbkMnd zgX+#ZTJQ(71^r|QtEcrHhAWH|U=_Bsv~u(FKd^h^DbIFKTT*Aa;^1-@&y8(B_g|_$ ziyf+P&-xR^wuj6x=;T<|eFb`JgR?0eGB6M)8fa1G7^`4yhu;1}z-s3$ zoY2AyQli&3`W|!-T9h3p`l#zd+Tm^DGd0X#y^?jxVoE~XdED@1bV~jm%R}3{cJ6$8 z;JWe=HwD;;Oc1Vk{OER_dWpry2sCVJ#+aW`OdWl*wdEzE_|8hy3rgSFL4t@E*oM4? z{bjzLP6NL{g?!_h{r&sdL6RjHa6D<5esgPSFNW|SKBB*7%?V5qKV@b*6GndS=I75L zZIzamj?*}3X!0DYHQ=2pGg1Yp(sPg(gD?n;ac;^b6hP6Sxr-h7_r&Y}f_LNMbKhv_ za-}3LH+|)7O+P*YhR2-)med!2pNJ1s)fq+Xc`D?}H~wGmF-Qe=|Ai*C;U&4zeXIy8w;xGF1gk6suy1(a~A$dYtX`}a*@&n6Xlsb z$^88MkYZ@qnnGRRc17Dm_KR4S4TlfPH0k?uFRlu3reX&vp~pbp2&2OAHl6l+_JEaR zp}>T`w(?<=o3f;-p>bG6W#rRLuA)4#fT;rQmywZSsS=X(->s~$^P?^JjL&nD*X(EV zzy!v${MzeH;B&}q^`bZy3Bkgw3P~JMQEi=#_2W0L^Auu|MR-Z>MU7K)QW)Kt$D_RA zsep~>m`zR>Fx7n7pqrs=D1H%yjq=_xtk=VBv!qfG73f8IK3xnz!QbS@zX5-m;iESjgsrmpO?RWBj|yn-(jC0 z_y-qD+4I|L>2eb;6P~jll)KC@>@;|C#NwxlE6p#Eb`uhxjLzw(vCiPP6zBQ{$rfc~ zoffo^wxgrtdHXqyLMjp`15PW0G8RoJ_kNi79 z_Bc=9J$mXa`nPL-K56+R9uoQ}qdJFOs!hlCzT3#lz^9bRt@ApUFV|LYj?BqwOTL+3 zE5?ZbXLeig4{1N_95%2yEWsQWV%=)twAm`jet7YO(}hdl4;_=#nQjC0cI$VMpGnB^J_n41LbbI zXiAIaFqz-IRENGrB|<9`Ac zDUv?~XPOKM%~`ZWx+xYuRUC{|J9AnjDh|oE7KbC#O*Zg;c-Ai*S zuMUDS1@1x^$Kj(#84x`~!w^BI!O$xR2jZ3QDn5z2uA`c8W|y6vT??8=^lB~G+X~;K zG{hJ;=aKC484*A}R!(&&1rIt_vX`Q(tyG(nR^D8F&yc(|EQRf(z-P%dx6R=tsOo3Q zbN+uY4La0Yg4@)E_f!SJZT}T&KMxh1u(RsGi{?MB*a}kV)VLG2d~sZWPhnUYkR*kIn<5)iuwScGS!#CnRWq79?7a`aq-IsT%!#pVsawnZ3U0>^95|q7 zWyMkJ(r*O5ad$oQ;S$U0heOmc=^`xPYzp^(oSQKOUP)6SIO288Y9O&5kZYB{`<*XQ z-kHAWUdN?NmqN#t+@_xzX?!hRIhpC|gT(E8`m^JX>`hSi{)EP|G~{1?B}}`v``yz= zsFy~0{TAEnKGhbu^&WgS$-fPsH3#QmGGWu=CCACvSD8s>=t0-zGSm%>v%tuTFOkR_ zV001bHhLq`dG$=Z2IWUUl~{1sMG}xGw9tT#xcuJQQj_t$LPx zD0HExlR9#atug_3Z`%wlMGB;l`$t&p(msAJiwWd@7T^rcg#>4?8r~7^j zDJBL%{YHVQ2SgAy)`IVG@$pAxWxE$0?E$K!5wCzT-kkpU8Vpn6)uFcP$|9Mt1e*GtCt3M23N@5vN$lPqR0RY35v(;Su(FzK7LlYB=oa?&7 z8rs<1$P>lv(u3iG#$CKeg@x;97qcpln5^xfg0ty@)!>E(lnmh5$5?MQ*d`P@Y`0}+ zWnEtsk9cw!;^nKNJaE1}9It16rz>EMxpy$%5Dmv!nxR(D;718b?KsJ2HQSR12Y9d* znNLpvtnl|PXHFa)9L3U9=isFcX6DD<=qr$QxZC8J*$=#xbS;i4nnwY*_3H$o#VLX8 z`iGOQ0(<+D<1djnBl5fYe6&!@gB%*U8~^x8tLBqv6biu`#pDKTACRn z;7&tBLuf-g}=MhQ?f*p zYL>E!FvHu*J83S=PXmLzm|`ndXnyf9@oDhcpbJC-!28wM9QYK8U@GChX*Aq_2Y!>5 zYsNvx^12y*Tm9{SE*F#{MpvKNv6>a}$KCsDMOFT|0yg@YGiRDwTVJ486GofV`uT0w zZQX8F0L|*p)YRr|STb#%K`H?N5D27GV^MP}#2@(MM}F=;ABPQ6H9>m@tJbzn{k4}4 zRFC>3*izJ?B0)#%sV9{p@BHPyHC?q8-ld*KxCe&+!}NJ0S3-x@Ugu^K5a2n3(Xoh<)E9t=N54_*|#_B#*BFGJs@4I`rx=t~X2 z;2uKvzbkKsQwZb4^;&*;s^fRw*?+!?R-l1UjOjlv+y5T}EtW0LIY^ z2Lw6WtmqrQW3&4g6g~Xe|2_-X_^D!!nqnZxT}FY>m=*&1eQAl6u#pOu$$_$1H}Aiu zVR;$uOYcgc!b1?BXZY*z9Rsb^-;sK*>kjNNhGweI=tj?0_Rv0>y#L>imOD~Z>a~2! ztlAH{oUcs8s7h}i-TKk3J9K-X&}IcBqIdc&Xh8r(qW^s4hw$2+(>rSbY+I&D`Vs3J zHc#n(FB@HI=53QM+2GmC&v5`g{sGupwDW|RiUOrijfxnIRmj?f9vvVB=r5JX+*i1z z?Lm)Rn-%p{{_pPt*d?}qsv|{HOKT^f_m2Pya~LY``haJJiNe1gwPEVCKH;V857x@V zHC%tUAq4y<`0nVoM{r@R2UD(nSKL`MdtK_s)*F9@Z@NPhHN?dibg9tH>Ap9xnjriE z+A=Ni*gT2-!It`QOY%lJ7Z`ptLN@?9L=Zzd35|J9c+8tZaFm*sc78y!N(IE1=H}*0 z5F`Fx?NDu$DjNy{7VV*UOOO4u_6N{{;0Rbq(pbemc0$?&imlYGM=|HEM<=#bb7JF_ zD|)i|N^y zCOkTnj03t=B@U`L9XbBJgCo#h!T9XsA>~V`m3#N@dHQBZO#C`Nyohbw+7EaWzhfDE zfe5Ln2*3+@dO5oSwewG;88$e#Ov<#+akW zk6(Em&3BR>tQ4s`n$F+_|@r~K}IL0 zBS)AXm)7wjl0c~v0E`8(F7w-Eu=IH}NENl!K)nG%=RqoF_JLFNx-sL99b?eC!q(pY zf`>=x4L!Zz8{TlqKx~niiy`T3oT9P)o>R)|nkRD=^uuV0uLaA_kM8RxC8tbnLDVqvhXaxbF_Aq&-v z=owuPR;8A+BTHHXjFQ(BY|C;?DOnxrC*===!xXj30a4TO76FcKWSdjXOf2%d3q{s4 zPI-YP2Tc{SyUbd0(%@Yr0J`e#L}-4}e{GOEYvyb!$5?`Tf<=3WyWyFkZz{;VOk`c-C zMtXW&LBYW^06#4wnh!>2!LJGqxv%e+PSwkDf>Z7_tC*3v58n7w@O zU>H~4lI^$7{D%v0F?FRP7tzxL0R1`VJcFudUPb2)ec3&8g{GF7FjEV~L*D`q@ zS(+^i|2+R-rP(Ik`}(Z=(vI4>;9Re9?87m7n6MsuYN0QCVFopGmrk6Wjp3(W7iZ~c zE;>`^AtOFB&w9t|jE={~6bQ_{e-+zZi|OU3nO0A_I##ne2S3m0!+3q%2@Pj*R|vV4 zi(epePDP`S!otdnLeUG2qKONauU=)e=J%(?_{On&2Pau+@kE8VI&|*Qay)$iNL5b` z()qD!hg}?OiK(+r#RL#{1kROJF|09v8Vx$CiYSqmz7~q<$nBV|?J6CAwR_+UW<(`- z$8W3rBSBy6Cq$Gm3Pa*2{Jy@7L`};e`HZ&Fdd#;<4&G~S@7w;056`hEYnfGZG)P}3 z?9!`*$t+~_wl%460W|4sZtxxk++tCxCXJKop{~|*C zEhF2#a?^E9Z)4CpLs~$WZ&)oC|58Ze%w8vj zTkjvWl}BMZxmxgcWs1@z+5=GKIPPzdj49! zd)UXP(v|%}5t4M)nQMA#HKqt20~p1}=R_n+5t_vVO*;!za7YpUab(#RGlg-Or4k-tsQ)+gG%oSH*|B zfIH2WK-$Yz?IPDAA%4QGiK}d*!*@pHxM%Zo0izSNyW%l(PUTJtl!TUP18;>UT_{64 zF=5pDsn9tR4#jZLMT0i%CAF@yJ0P<|v3*f++E2>y`&F&^onL&$nFFAVmA9Q&xu`Hd z*nh?c3g*|Bp_s-~HsT|(bJs3sny*0LXyCxWfXmgZY>4&_!)zYfEG*M{hP^rG`kqZb zmqd#Ter@NVUt3sMBpIW7fVgdDS;y^J+n@p}YMLzx*aTGu#XR4gRXG-&iut{*v1F3| z3}skTvJ&w-Yj6 zb}JezYU3}T`I;NJr6~UH_x6vmS6jq|?t|~|TqTh`X6DSbpS340>QSoB>ypxsXG%d< z*iuCx9Qs&HQpOG+(|IkcAt;^$O(s^ zC$exbP=y3yc1_KQ<7d-8OOO=7A=oZR5A_H37OqKVjzbU4wz(OOKuB)3ewHhi?__m> z>vp{K&MVZ~HPDx>S8j52s_Ky`bw39*^~-ywoCdS64xcVA3x9St1^Nzn+dg?`cc+iM z*?OyDTSt52+Hm9#IhOghAJ3H5b=_PJxtHn+6`mZgxX-)2RBZdfLvbqm&m0xy1NT@7A2Ej}m5YwFrYj#*-$;Bjpo>mW;Q%$92^0f*U zoTe(S(SmFcJaR zwV6$&Cb6lCt4bedlf4Z{3ir63P$CKQ=re? zXc(pB&hwCeRZ(vvI^;!v3Nj~@D^?ep;i{L%!*Er8j`Qci8_GfFPfr*!2O%exHwUYC zmzU3ZUbM5z+`V<~eo()OEE>+?^t@;%h)2Z+C4JX#2KyPD9k|~a4-E#-n^$=iND^kZ z2lLL%{+>k;dDbsIgBv0ki12B|oZqU{?U>#b(8?ZKn0HmEas7RG(3mYfeH&P>8(Xe4 zk%|2TC*A)@_pT`lU%GhlSg-&j#7Cv1at0X&fxW!=`ShCas7&WC85Sk%x>x`@X9SZ& zemKJ$Zv9ox%XMn2)J$`boIL8tO5ZTIOQ$9?(j)AF(6r>yDP8dOkZOaf?A(usPehu6 zZw$8ipuD28DpVvwjV{gfhE-ZYWb4OG@*c-a+_0rrv88`sF;d*IHEfqIO5o0X92st~ zLEad2QdSYAT_`yy`p%3d{nNpP)eO>$Xx=PB^5^>oXSm34;yqNqjcuygk&a68@A{&; z_4(F2yqOR|s-GJ24ZSb|Ab9S>O%lQ7{gX8rhhUkLGC?O$N=wx;+m_E@C-nFBjtNq? zn5k2cMZ`T#Ha=95^{RYulWp3&;hhX|hdFUL5RKXzrZRF|r3G8|#T%7Df&9y2v%l>j z$YYb6Bkw2Kjd?P6ZAL?;a_YJM8Mn_Lj(Jup;$3{-_|HkTlNRre`ptNX5jC(*q>+}I zwI00VMjIrNMNT#A_MT*h2Ho(p&M&=!nb0~f{WEohXiZIZy;fuH**JO4?pQoFL)Qq>I6 zi@GJ~#YF5PdKXr;NOx^h2fJ?|UK%3lj-*{xD?d8s1!wX;7CpF6+UsWrZp2U3(oOcO z1%90NV}+}wS7zX>CK~Y?zWd6Mz|fjPSeQFNz+UXVZMLLK8F&VnF@VS^Tuw`{1FuZ+ zI2M>scKp`12jH7=w^cK;v!^Y!xcnckli)|RdR1Ukz1@F)Pi@ve*&pGogh}p8nxdmE z=x+un+xcJHXu2R1!hiZWvCI(vkMaKW!ytfm0T+sSA8lG9y(aLlY4w3;MShvt+PYyX zM;XiwgFun?lpMJ8Uos{8$pjs+u6$$k@87ee{F5c7A3oO_-=a`0ppZ0TuwU+V>Z#Yy z;^W0=jQ;w;f1jy~PoGsT;p$~A?XUrd(9ii?2+088R*KpN^8po31b}!^hFZwD@|qJg zv86PKKcqZNfhYaP4D>Nbga0eIUCv~jl0=C!s8ME1tf-a%9;j_7DvF)Nw`7j=B`uV! zg{^JWJ8;v5Sp!f9P7p84&aBx_qYAyASu7Nxd~il7B-ej#G2#(mP32dL0UYUM>> zaQhvmwKx@h*U^Jd_+8zM{WHG%@IUYF);BhscBMYJEjkfVbnnb6v(Gl1ccXEMIBlC} zQ9UzmO=dNQ9{UV4gH6_DQ>Ow`Wyn_ijCX0dG~~92DUg4?bYGq7*!2F;UNbq0`5pcq zjf$l%<9D5O{BGOxYSwuoCbtM$Mch5@Na}KTG%=(hB9sXf_!?B%KAUP>oIx)h()636 zQ5=5d-wa;csZO5V#G%)i<5Xp2bY&B+Znc*qij$Ww`x7Idv+A3m{Xz6kp(azgYUF+Q z%_t;^Qfds)Ib?H7s@i&1GdynJ>+djyCt~;3L1WD0QkLF#9xbG>)O1IkT5g?PzkIem zMCCZULiLFBseWFPRVy+Asx?^zI6W3pGRKbtrhE$Atg7G5o~6{+6@(8}de+8Lb2bB7 z#tkk`yUC+h*ko;VxD7x)0>H*11H9mBLY`cDw-7y8G^{l8>7@7+0e zjpvC1?`&#&%VRq;{lni+jCHPWAM05_*wmgc`@G!0LGR<1Q2pae-WuKa_V&e%R!Lf_ zo%}~&;vTd>aVsB&FOUEz7G$HaBR9v071-3&)WNe0G`Qg?Ef*IHDyo_HY^%`gV^B|kqaZ5Pl;0RDJd6&iEeo1RjF7cvMHPVe&TdU5@$ zb@d2N&PbH!Thu{jMBZbb4^jJf|Fv_qeMWCN@6wvQ@%|3o+7&ww|8&2=B~;4GQ1v3S zQ`kNnryI5p4~4Py+sD@S??1t>!1z|=e4cI)C4+5`C6#-PAdCbw8{RF+vr4(st7HT} z=r(b6&jF8GL*qZjlZA?yifdujHX2sTV2HyF(aj1i-%kDxZW>XM_8)!|9;>>QQ=mSt z2DK~DROZA{H#QcwzKU($!k?wq!RTCL;6iQh7+K=vSLm4`03Q|XeY`74!>+bHqc{!~ zW7U0y8l^&>u-p#jCoQQRO?pAbNmiVDV(YT|-F?x++w3#@wSIg42y!cudbJ%df2qgo*Kkfja`QX_2|3_v=|JBEwdzZ*4_onk4TkR_97x2ioPJc-E)vb}{EAYZCdZZWj+#XH&QFU4@6? z4coe>e^?kBAN^Lp$>3OlNi6hhS?gkn-c`rzw76CQcT?qxQ@MSvC=NRl@d%Bj=nH;d zB@*-2r#c4F&KwO5?>ZlaN$j<_Ufp~%&ZR3|qp)Jd!knOBAUznldarQ)eXWuWHo8;r z_KE0U0`0pfr-vR|9;_jFejMJD{+TV{+1Jo>ZkyB<#nqHzaV(W2#&3lgCF*(*DVw+s zl;@v3D+wGN<`+1TjaX|GXC#&*d9Cfe4w7wfz6A7q(U!tb)w8m5V$@7)i3DI}&zJhVMY)jn4xB3~RX6_lb)8SiW zmgw!3Kh0iaNuEnHk9j(0e5Oq3)ilqCS<^E1e(02W>2=5Fb=i7$tx|L9SekehU~nyS zt~z!>Shiy?_t+4>MpP8zr)#=3#hUDc@RCuuk!yE`^rnwU4l*@7%E&0^)3~zTbj%|9 z!h2FXSuw#GZ5S#OGhZKjd9Hv8_h7+7L~cS^^}2+P+HmFRjqo~+`}Xz=as7RL=}^uF z(pbw16rbfC=&xYq(9gU-W@a_cZEtf>z3b)DU1pD0VO2*n!OSZf5M)VgR z%U%=AwuQMlv{p-d4J&hV2Q?+^o%IkdgQ1jUPUt{^neiQaD&)Ar&VF4(Jx0`eW&tlX zCgdbvsG?g4h417|syg&pw&YR5YynXUN&Vq8%qYXvqKg?Nle~j$C*RL~SAW8Mm*{GE zkuW0|j&{c?21+Xr?+(~&Mi>~7OWTv-2GN+b;4bnWl)wNhPmA6w%Dy8Lq3IdrKkcv@ zQlysKLV)5Z06uvfL(7|y-+dNN4JV9NAAx7q6%w5qWX@35&+dDS`={6TvvWJq)BSz; zk10>z(Dt|gcif3GtBX;YR@)4cd$lc16Nl1FC^uIGLd@UwH6-g#PvhFLF$y`-v>@%)f?pTo>=6tZ0UWWsx+{oA#jRCN55O@T{2R#nS%!F3R&=RQuA~ z?2mf;57dY?zJ=RKDkdeLe2RCUc}^L-th?x`r+4>9irD_S44lB?(qc8ZIi`L&7DaxW zxwP~lb`*D82((@_X$9LsIkqW7{$v_p3VpJ0?*9JO!!8950LXNM%dzj;WGCJN6O}0d z#N3-Twkejc;$Iy75cB!Qesh887QXQF$AR|>|IDqB^ke2*KgyGkhR>wNg-O=J$`B3A2Y#Dm}oYxmxEx1(%dt-mVCotWo6+Z+pBxi4^ zay-dvIR6>Z7I_1?Dt>?Zkz-8FdYfS@xTZ*O9J-7yvSPNJ>WPEyV`gl9w=V5hcoK2g z#rZCxfSiau&z$;zEIiA@Lu)Bx{}r5n<717NpsaR+&=3oX8_#+28`! z<1ZaN{qZXwuAL|8(`d_+=iM%{A&{sl==JgyLvY%@l0H!Y@BrpH-{y}bAB}i%uGjNNEi~!#Bk|Qn_oeWg? z+BvB8UWQc7PVt%BWP<$h9m-!|QQ?qLfUia7J6c%1xlc3J`q`N!lTlD!35HW>;}f5p zd&p$1b=7@oiW9pc)&Oz4Bm=z-4z~5!;Ul=JZZiE)R2XdK7dW7XI zgaZ@`$nkO{YT><`&?fSq80Wfw+!UAS&fa}ZmCR6=$MJ=9W;QdA{FlyD9_7P$K}sC^ z-)}x8OHwd|T%PkH){E^CHW+$p?f)lNV&h_R5lMvIP=Uq%%bdD{oP4Tz4?N{-7V(^n zpGW@cu|n2(-9%5pHsSDdlWBRfGj{6j_8@kgLOioh+e{3rtNnui76k7EJcIgf!n(pA zitnM7T*c70#ctTU>LHjuowA#Qyeao5`zuIm%#%}jd0*N7R`r^YqY%P(zy97-xyVP` zj-(`3ZVJS(pE7BAqu{F)Yz@c1eSGM`KQe*>yY8|!t;)u5NRCeAp9ch<*#7^!rSJbX zAxu5IPwbzTL_UqrQ55w!8@1<(4-0bGSt2gla&<~G-z1|bN9_F3HKLuZy5VBw{KzC+ z=@HwcUi(V2rh(I3`v!#nkjXtwcFoM;|N8ZSo`G3RQ@CmI>6eEWR~~k*>?4e=Vp~KaLZgiz`nu3oc!fBE4WJQ&l!FF zwbyyV>6ggo?|+AN?&@85_*X4YQgyX17?>+S9L{fb!_s`Wn}RZAZ_X1&KbCRNl8&98 zhs#~PedS%@hw}(IZ~JZskTa z(A2K>4q~8#I!(9rEt)?9YLXT@s$0JqXe4MRnxmZ}8NHY@8b_;8sBSmwRw&DyIaTzb za?ON)n+sXO)p2Akcb+#$Y_y_+E#e%iK*Rn|VaPe2WZQr>vn;C{v zxY&r!1@8euSbhAhmPjbHDdRocB5>;^V$KsGJXRh4qA8tGR z;%2Lv6+5=|33OKl5?HT#Fgm_5%olvv9 z>wTF;>a+7)$j2hJE8phy@BZ9XG{9KY{6}9joKm|gWBIE$WG(leM@He+v8y&Be6GX% z!|haJZy16=qnMTg2p*OyN6GCOPYQlfY2{}isQ^vq3-k&YULb+Ot9lWRki{*0r7YjQ zj%1DV=L1JcU(BFa5xCralR;} z*&%o4Joj`WaaUiJb=ZG9DyStRlOUz4-~|2_FomyNJFu~2%}9sZfpNb0Ji(;1Y+||z z&&bm_+Kk;$(fUx84Bt|)uC^ob4A{>qN>JnYgR9Y2*G>f-`FivdQQ^h@%i8MCRaglz zvU-q9#Nib9ufCT>VB=(N&8=TK26MVUPO;|%GV|?q+|{S1lk|in;tzL)`2`2#bDbm_ zAjiYQLx+IJx)!dopmYeQga9*W9AtBRr|zhcd?$@@_41Kd&-e~d4Qnt)WpPO z%4OskH6BY60pCXGV=1=T1bc3H8H}`9!GRjRzUxEt|Ha&!heH|ueZv=7%Pw1lQldgg zWE)aQ$yUiaTBN8bNwyiKQe-PqR79f0R6^N?C?Q*6>|@{eZN`}8`Cj$A@8^D>Ki}v5 z<2{a!CP!oDy3X^w&hxu`mUFi3Td-@J_lHdT56xH2j*m7bz6WDZ0I{z_QqI+(^{1|o z2L0_@wWauvCGo%qS&wXWoQrWeJNM_J z7E(p$ManTZ_`g|YzWCsP;rTdUZS6P2!L-{Lk#fwdQm^=c4g46&ky(*)mN*E^5H>Jh(D?bjY|-VVZykaGP0t_-*nXc8)p+faLRP}>Dc6&e>7 zyxolYd})(|!$fx+a|3;JB~{fQ{KU@tV^#gs!`+lC45NT946u5us;kcex-5yB4}uYl z!No$58Qu?I4PL&NcxFH*W5=%-Vwo?0x3q8|H%Fd%Y(wpy5-+b4!PD4aXS!M3_$*VO zRzEw`WXW$KS}~EdiBEPf4`S_P9|LH4>X6JeT%1aB{rT(HoevE3RW#jo_#|3%pGUux zhA)`_bEjPWt^0X-!??HX-Nu1(^&Uoids)i*F(#~F?dTdUjlZt4DLF}9KS1f1gp;tC zc=W_Qt|>;K+|m5}`wG?IkJF3TS7EL-_olUSIDg+-D)qIAk0;1zE30gN zV-g-~Qy`hTV%9~;`m+nN5o6`4DZ8D%cMltVzH z5b)6)2uRCP`vvj$0VsG7`bBmg_iG7BFv<5LEUy>E5Kx^&sA{$Tf~S6bRxX7&T$gwx z+n(@badFWdu`sm(`|;4Eq)kXUwA|u{Cq~H8?2iGQ0k%efT(x}$RNd5!@3s|nFza=- zwWtWS)RZOz=B8`chvCMaXkJt^shf1!$~~EeFDZkOpUL7u210#6Eq> z1ONA-!5F=o=E8=qMtne%vJt4s%$v5-Oo1Ml@0I3DPh}*I6Opwrp z24y7vnPc2*!Mr5bkUEx4TV(2CjvWA$I0X`g3ugh4b`M~`(3o6@z=&^TL37gzDL-NF zau)>7*Q#a@ukPBp6ES+m?n9OB2GEHicx})d#w=6vMn)7l!tV@JaLdJSUjBM*_++}D z=pm1TKpO&S@VL0R3pv@(S06s`OhZnSU%Vi{h9bFN30#>XuXXcqm<<;6k}e9i1C>4jOGac4F* zvO3A|d!pHmZ+A2{z9HVFO?rZC1Ydc;4kw8E<)C_N=aIn~>SAhABCa5>n;bD6UAFqv zEX?g@7ivs$VFFFyC@GEPh2gpku|@C1O502%^mod;*RMHF>>&P#slJm|;3w43+Uj=d z`55N(e$uuO$$Q_o_tjQ;2Cu9Zw^O5o8jU{jo64+$Qst~BF-fhA%8tY%&Mr(q2?>mk zk3(a`R^v)&Mq|d)iR-$cZ7_&BcK{2+K$Qh31$Q$r_Moi&n&rW+>|fmI7iw*1FX)@S zJ#XxysIj-mCh_R_)0H+SPTUoc0@=Or_!pOJ+U|03pI#FfO=kq$&X)K6-Q*Vh=`8oR zGonHpH*(my7@!l^*%nQ~P|I_Cg``d{evdr0GN$l}=YzpAlWU&FfYbAqSv*E`GJrob41=;>h{-~B*O zutoR&^ZB(l6RgrhYlP|CklpME#R#l}Pw9us)c@pnMsB zlMF4!96C9KvKcTo>KB^i_iAY=S3DcD+TjY7FjM1|y~v+V!jHs|hJ69;GIr;fo)Z(B z_X%Hb6C?m3OsrK)(%{;*2#X{05^5`)&LA-+1Ej`tmpOZ<7J(psU_UVRK-dT@-%KHB zKM~7&_!~7#G5&a4x}pvn6z~w_@T0l5t{Lqeq9jsxps3)fxLzC||Eh zcxwqSiBFXC&0T5oh~z0lr1*+k*qKRs?Qdh@!XNdy&fQ|xSFbF zE4&q5b)6B?G``f7xqXYr*9`VFO}~?ihlYtCKA2V9EpC#N#C6rGxxJ+_N3@A?cofU7 z_!uI(A=R|Q&kO0`=LTfW&s}!j|L%xH7@>oHzqO!2sWoP5TtKiZeNxH4^pWi7@ zpJwgl?)mDQ`57c89XKw`99=7xi={cIWcThB4xWA71o)`)kPk27Hn>`7i4$jDKRi7 z9tuec1};+dHlz-;l@5>X2nv@UhA`5IK!WB>sVm{!ei;?Y=T#Sf zCeXCM?y#KWvRECLYsWPckHs>6?gY$!9gubA%;qvOu;<8tol9_!!7#rhU^(n_-!Pg9 z=O+t@enHO<2^viBM>)Y^9jCEP82INE ziq9|*F<{Cbsi7$NtyK2i=^xg!evGCio+KTy(x1Px1W$?0LiHjS8>kT$ zTC}#d-Uwlp90sFvk>J&xKd0(&2kx_cvU!!<-afp4G!{?}?uYL77&div!Gd8za97lQ ze!5eYptsn&u$Ip2ibYpD8GGK-uQX1u`M269Z^-#v>)tHyz++z%+{1%63zhyQu@?Se z&ta_N#A~gkr!ae|Jz!9NL`a@?YgLn)irGWAh{Hek z8;jUiJ7*Wvh3*J>JpnpkWdCx{GZHPBcRYHPB6)6J$j{i@taVBa=SMDv@Wegd67SxJ zate5OkD{zm^H5EeY}liKC677i@(-|0vE#Y1jwoT1L-v1=L&sLb0-$<_G9T_N?fU-< z-E_;rNm2Q~7ZvSLc;y8jB8Z^_-_VTTY*?oSK_+66uGNi${EyNH-=F$;fGgDFWx$XA zzys!e<$P{x4mSwKD9I0Q^=2~a`~~oDesE{LkNz9jKe4{*QqPDCDfkq#Mf7JRgWs|AA}{vtDfU17$}nV}5U`1ts~x&F%95_v5xF%W_BpJ=7g0A}%o zX>^M%b={L5uUMB87eX9X|CaLC88tujPl#yrvY$2qfdZt@JKejQA6s^daD{%ia(tpS z`)Xe~+oi4oevo3ZeS<2`L4*@@oY(c^nY+8`!(AAY>UcT%3yuB)nY{~8_qJjScA0o=&k@41>&wnc=l)l9otHl&3_Itx{R zkOC2LiWJshy@UlP|#IS@R5JM`ISH--bFgIq-^3{cDJETzx`qt znR#;M4f#bx4rV7A`YZQwx75=%D!&l3RtH71(+&YUtgi-e`t0zbE>xDkD0Cun?ZGpH zokNyePgVzyXC%%+#VezFbQe7_g(xc)C-#L-UvBrM?s?N*vT_gY_Er&2tmYRn%Ys?E zl5~9>hUM#mhd7;2?$2rr23G=%A8oH`%%;1u(J~*M5+B9i398-gu)Tz*u4L{ogoIQQ2s{86&Vm zcPVHRo>2TUF_MBt2T$#V+2l$pMjiTWBG)pI=aPyf4JBxCN)2&!G<|BJJfmx)`g z!`6NyjxOvhetRslQrmuCU_BHLf(A(M=#DOUY#D32X7aYFFR9e(DUDP@FcW;xL!0J& zvPqXE)V6L{uF1K~>8B{VRbi{pCfVHM?3>-$Y3v~V1?KEA(@(%ykj==RRRbRPbwJ;? zeo|b^p$qGYFI_?5V{=Vl4gq2nFA#}5;2N}$IE~yc?ov|U$G73iG0sja$2Z4>ZrLB| zITSv*YeMzRot^7hm2yn^fFb)oI1$Oyo9W9{f&dw3PS_J4vFM|iBL#nk;y2zWS>-rx zCphQ7BRL2GI_Dfw;ab5B{$n3l@U}x-2QvRCcR`CI`)%Lwh_3mOSgZHZ zt)ka;H`Axl0Kscg?ODg`sr0p@64t}sS1z(SI(Cy^`F8!h&y)Rqz_07jkr4TisZ$$e zF;_@CE>zs+wD?dAW^kFKMZTlQRw1f7ZY=o-3Q7IFYMG=NuIQh_bg*a z$D~i>JG`QM+-o=LC0-`$n@w_VRnYNhklC*D*&sSk83B2$iqrcUAq*fT93i%`SY=Ba zp0Ao995I#;K0R*TSD?I@u$)6(+cK$VNy3T?B9bDR2g!a&n;~_L_@2h7#3ahmOS}B( zpH~LC{m*x(Y~ba+)!(ji%~abCHUGO=Sg9PdS+8w4U`dblDe?2Xe;{L~a31PCUq7o26xprK~w_30Xh7a&p(~#HSqb z(t_o{-31-4=Ra=hO?A(3S=rO`WW|x>RoJ7!7=M?L{Pug>@D1Pml@mp(6GicDD!bD4 zb}q^au}M{&4mCE?Ct~h3_W%0z>@?T;5&6;OVEvoH0;4kl4c#v&Yr$6ztteV%gDfJ`W{Ip;e)w{k|jS zNNjxk9VnKi)TE4s?@kJ1M|C)Mm4a-{Cv$c-H;`Ba^RbD7mQ8GXyV12gIZj$zBLa){ zPVMYM(am{)ue9Zux7{RdshJ0@3-u)tz>_|y!=L#p~1>4i-hEgcynHdumb?DNi*&lgbP!;%%|B#hsF3tjfIAu$V(uCee zzkG;H*wv2`*UD9UO*e{-F&LySZ}#Uki9y8uaW~(J=16ItkB5ULov(ZoKR41xshbhh z+5e{t3oQm9KRd6oR^0r>eX4(cy>&?d$$J0((q*9Ufrwdd8O>7@fm*nBj@_H1Y)Dn< z$5XkkjVMEuD# zNW#0HJEz3f3I=kgHJ}_V-M+LdkFX3-2~#bNkh1AK<(5 zr6l8?-p{+W3NqHUdmK;CQE1B)ZsFhvL-VxpXFLa>lsxRlVSo}-$&1;-{>x}?fB!zu z@#_Lpik^z4362$`km~OVT)JTX$kzr+uC=wbNO}6bV;r6ntna!rw>m%_B=}_|G}}+Z z(7d+V%i37;@~K+Z+qX7cxcPf)i2AFoPthleyNq1`iK8lNDLt@=W4TeAyVK}#lrwTOMFYS|t z`dB!GmZyQ@Ub`}pdh{r2DG8aDh4mX(v&|n27Je$&;&5foE-uqHj|-t5<6!VDv*_z6 z++bWv%53vz%WZgr!&S?Hu%Tm)Gl8d98#-HMH#^H3O~I>9jswD;8MugjZS?rVOU28M zW7GbEw;4HX!uR_MOG``F5+JMxxO(%!Y?hUh4v4#&K9sx#Dj{dUhyq-__%1Ck*IsL8 zf#q)sCMH}CCy8>08$(7$M+b{%%S^z;?f0KQT6J&^9|@(rNpiH*`(6S?uMWn%;6R*k z#k;%wBvdTq)!f=+IvWjLc*XkM*4s|c=(SjUy8SG8S&YbYJ6%QGdBHb%b~foWG%dg% zu`t3hcF86^-Y|4Ok$N}pZI^W93zL!TS}=?$;)`uI!5_~gzgpN8GRM~!GriPx9G4;J zC`rHgf_W_gJHAemi}mFg{%tJ)qD!8;;=S9aZw$ZsVKnBYkHT{1RvBNj<=%CMKYYli zqwA!n4~{EcPQ!~9itnxK z6`Fce5Lkw8J(q~Y8o5*!1?x?$4(lu3?!_&T`@Fti!4KCfxW;QY87Tc|PcZ{9ymE z+&Me4JV24;zYf}R7m?baDaycq|2&Aque7kXb~b@bhqpV(j;f&58x??JofOoQJNECM zD_z!_+S{}A@m`>azW@%IUFV@AbVEI_yH&(_Vbn3DpW+|bL*Iv8ai1En9_Ny zi}P+5=c3~)CvVV97HGu^T**8?%Fv6itAisW26(Fb+w+AcxYdfev7wrCjvzo@0_CiZ z^Ld~X<|<{Zwr`*KzYf)R*aG79sEj!4(!WOo9w^~P)tMA@hFZEtc>ZSJ62!LQ$cbyct&yzi2r z1y%>g7uZ;Sdi_#>GB0xAb~rjb^rNUUgV31^sHn7)t{JAFYua_)o&)AAli69KER*e( z_`kY@d%=~Sop0r2EP2!g(0zF>@4qD)_}IPvehAbrs^s_l{a&=35mwIeUm^~C?4th# zpHk=f_l^HA-~8Kq|INA7_Y`&XszP`l_i_Vtst0xAlR^Nus>oK}|Gx4X-vk@NFUdt2 z9~zLea9pc_eUGhA5Kj#oxkghHB(}$Bx2&aTxJP`3-wOa9iLDi?gl>*Muv1mFZA}vH zV;2hDKpC%KrF0rv=}=Yv5iWO`9q0a|4Z~b_WKYLgTDY7(dW0dU_>S((o8&7y{m2A! z#oOZ&51O7ht*;y*SyUaE#?ovG!Zn{W(T1bZnKNmmako_%@>nJpDxGotEbzELW%V>~ z#bB_x@Fk#WuqT9e{bUk4G6r$ z9%`q*xYJ7LZ>gN!fTz!Nf!TO1aE^>GY9u8jh|S@~GRZ%|6ZMI zBw|wxo2P8X4^wLwmnhWQ844(&P~+UeT(!b~TWC%JIpR$&M~_jCk|fAs4M*ez?ARY>HOpbsL*II?yY1$t^(VI=lVDq;q#h^{7wxK z?cI{2zAT%#IBLP?Y_C`88Q;&o;6md}-D}%+9!oKOmxwsj;a_i;H9Mx0=#}tlWio_W zMh|>JbR`gFXYpSQ@o6=0mHcPA-|pRSL;@b;&Y2iflLNfti6PocI@{KVe>!U9yUY_;Yp zy6wEY^tDJADetQQIfS?{F19&b95B(CLu4DrhzE#9^~3pb3FBE1bnEZF5~wOJE~YfR zHap8H>(AAuAVhadilva1KCzf|zy;C2%}q4v-c%TQ!Dp+ zMB_L^tXKi&JTz|wUVeM=B4jy(h@N79ua^?=(6pxHuki0*PA>ft_)D_HyKIyHXW5Fi zk?gp{A(>yG z+V2DEY@kUjt=)T5;hw#ZJ>d#j~jT04#u7RO5`M_|5 zyiINC4}L$DGTp`PkLi0a#&;Lr@O-}r0`>tQeWaM$Cx^_GQe4MT75hUX2!bwq;F}d@ z(A1G73I;X9V$(@k$8+642v-}g{2PjE?)lI!vVL}wyK)9{ROLT6iZ_Ek{YQ0m>cph& zx%1H#&FR(g3->0gl^1hPW|R7gwQ2cc_TLw@Ajt_K8r}SC!=D z=UeRA?Rn^+kjm}Bh))_B#CR-o9rqmOtu76|;spcGT4Q@XK2EHO{;b_NIg05sa(t&X zhWmrY@~6LX#Ju=kT@4N~J1ce|d?4`-iQnykSJX{T}WIHg=~@DWQNu2q{!y z@OB}iFaDsxHQMGs-|$>nP;w8V#0FW=Es@mxd@&`qsi-KI#dY#R#K5m#(x(iCLJL6|qD?xv|ABBJkU)y<-G;kz#1&mSKnt7XkK0|d3%o=_`T-z~OUVlChEhLshsPqA< z3aHB1k0lnF#Yj1_SOTYS@cefPq{#HzaqSM#d`zzhPn-}n+3kxq<~0$&wr+nJdT^Xw zy5J$t?}5k&3$vBy@4F0E6+MQtzwD=vcr!vZW5+IA9<_oa0mDcv#9kuED*dp3+nb^* zES8a#u+h@`R_>d30MlyNB#xZW(z4K)te9&66eFwdReP3Nn~l{v^wRqx=Lf4R&*$BOq)R&&%fU!nP2pMj9&8MUD#?tUr<5+8m;RVJQQd48Zs$ow3!n% z-UxwIc6PRb=Q-59BHPUKxHd%^wmJ9(gBjh(K5`0zK}Z-TF~Qzw9b=DcrlaVwY(U!M3u+8j-{NeorzXyXBxdq zVZNkoM;1_FsQ;1WdggT{FwGF3Mgt0}>~<5}wnJpCaX3TZiRwY!d5eL8OCGo* zmT@2s4h|?W)|g?i1%n}P-;Wd}ZQx1@Zi3}QATo>S0Qy}Gx#Va`{w5X-?`vkfGTIv_ z4yR=M7>eO=|x;1KV==k;YCp;2-{YC>0ho^R+s2 z3M!vZH9Z6(A|vAx5{7f)Lvw8e(bRQtm3KTc%j`gl0u|_~3Tr0D@{MNc@GmO*$x@+5 z=Comdfy)P-WLGI0=#J+9h6d3v&|!xITtmIEDUjnS)tBO^m2!bOY|zIUkUEFn+&ukn zny{_J{QLLswU~)MK?HKckDwWK5hOq~nog{fr!8mIfxzfr@x2pnsA8ft3B}(F9XJqE z({&qE+uQ@;`$Q1^|IR9IptR8O9UFH;VuKs}YfpQ?{DNekS3kgrTxP~FKzIRxIAY@g=zMwjWQIr1+ zd0tg#{C6^8&id{l_g~4v76!Ls=-=Ce6h#OPQvP1`ePcKFzfx@QBiAin`Tz7zB{}}@ z-pr*4n25jO|D8L6e?RKJaSf=~4h{@F&F>OgNWi!Nk~R5x>9-s>(ZC1A26~XK<4_g(WnI&&O~! z>j1PI4rMiExB#Ff2~4O%qp*Hbod*vR>9uurHum=126S|X`mqEY0wwaQOYx1v6D*U8 zT$f_!=(}LZw2)kN5QGLm%1eHlOvJtfTqjxLsDBlX?t*5-%o;1)ZMe!|GzngZfTbVT zswN`J7JpMM<8XPA-{glg-v>_-dxLlp@Til8(!mfMBJ2q8&iJv+pdUNVn0AV_JN5SG z2QNl$dhb*yFwbg7CUar}z{m}DrqWdpEAu5CymznLOJZl&3(Qjj@d+sz^K=%Ug~3DK zL80cNT5C`&{?_Gf?>2BS^)-iK-RIB8^=V`2)V?smxpX-Ok6iE^8>qzJg0cG@le1)Gd=>8@g^Y^GR0v176r z0mO%bz5I!$&q|yyrL@CzQhunF;rk8o6fc`E^xoWCuU5hr784&oRshN4V_%sdUink= z{4WHV>M52u5%jJ&iuh>u=(h;5UG!+;wQJYT3E%M_C2HBstZ0wPX^DU!XFp{bBSh>S zovkM@cSkHzw3$;;*h#&&CQBf(IK{W6l|g&=@8DM-a+8lAU*WnFx!E55Xs^)i^r#lLB2!R3XP*Aso{%Yc!V$dwuALABVE>>5r%4Czs#UCvWfPD$4D$dhfVByzbwFL*ywh zb-`!9dly{9CJ#`QKI$Z(^K1$PpI~Aq@k;Oz;N|B%bm)Pl%v&Wa#W;G;)#}Yi=;lAZ zA3tOnDU=dUk2IKrnWZm!HCfs3ZabtO^cwq{C4wU}fiy`Vt&tx$l2eVt^jA<90R*M! zD_SPC7Y_$B48)5yuZzYTLwWL~Ani*F zz9eyaUopqmGc@N>{}9kJZt%4UX*|@&Z*=k64xGt1bY8|Y<>qjVK2RF<-Cy=n$b1eAq)eCWTU!txSJCgGl2YkrYu#@a z-Gs%Y#`%&?49|VhNn~+4YM~ClZJ^ihI(Zn9^rm z*B@LgZb&9*Koe;gUH8pfTc8hbYbPu% z8YaxktNI{C9HLGHc{@Ii6g@IoW|>8AHi71|Z5=>-)AsY2dU`@4zH_euL_el*U_*z9 zu6lW&G{in{zQ87&h06(vxV0xOt!Spy^oHxf$%zReF)>v68fcHCKxVW&UeXnU0PAnHMdJvMQxrY|2zb-sz$cE%ig=AG~O5xN$k zt}#aRT^bYfYu@Q|lX5!o*C1=DrO%+NIqN^kyz4C93WJ9gACV3?KVP9}=q7+&h?lIt zg+&CJ)B}L$dNw1}dY7oIt!*Fuu`BNRGhVYJ8(yzcwx01-hL@ePQF$e3$T)`{fymX_98+K2t=F^23& z`=x#HiHWH9IW7@x8A37{-z@Pr(ahO4ms8mL=%nFIV(`0$SHDE-yQ{9l!+@%G9yB#g z%gFei0h+{Vm(3$HKGUA=`}$Q2htMYOnvWN5NMZ{-ZDa2UKC8g z5*FbBAWbr6>qiM-+ydbRZ*>0cC6H?_a>hdyhqF9@0gbZBf|m6FOu>4yka>4nSsvNs z*E;`K73bllA?_(!X$h;p2PT=rEEq7Dvnz+YZLX?uqEd}8h>+cY^wz<%XVW#XNBzTj zaGYDIr2rxV#Qkny;q!&&jXPUez^05%evmGD)#W`@zvS)-3qKNRDO+xHvUPEBF~2?Q zwmN-7?@ICXz7)%*wZ*?dusw{U{%%FCFx7nJ3c?)Z*>>U;YDfuGbbmL=ReytS>{!g% z(}i8HnB?<$oX%?!SuBQ~1a#Bpm~S_H=$f`>$qD>BN=U1d%e2X5CimLn4xx%dBMvg8 z*r?fTck)EQu2N1GFpx9J96F+f=xC>%Y_uO|9unzdZ_v{S&2!n=CnKY{UtJis>I{_v zb9&X!V`(+XCoNIM_F$+3t_yv{h%mG=ixRyZ-eiBE3BWcSgrw)W%%Cc(DS? zdwsv@Iayg*R#Z?i-I9YPmYLOH@j7^#8Xo^{`+Bq52DY)lC#febdHVtu6CgaCm2Dn6 zw#%pi_)>?w_FZL&eaz{(5?(kxmdUy{zpIgLs$Qa7M8#+mhYNdezxI@?7m@v_hZuAEy62rfq?po1Ccu4Qb!hr=Y`7VcHupzU;Sv< z1ggheJSTQAn?Rg69|&%ua`ZPd_T!t=9=r{*+wEi$hK;$Om7Q%87#MgzIyVURh5NYi z0~>J92dP@b#cJ|q$XK6-P3IVL0#04|64{@F;X7D-6k=i_%@IlRx^B)xkQn}AUabLu|ku4xXRTIh|p;+ z9RQX&SJ>rO%!E!~7Q+@=3FbFsj#gcG@ahWF6df)?@EmUceqE8#%Qu{RIw&=y&8M0- z9<%iJG-6-oPOh7#kI!Op6$<+)U#7IXwdDWJ@R?Ig>%A<Qb5@kBK-|$?953iCK%nEE&pvrjQd+$*ZChY`<6># z<$tpR_^Vms|1N5W^x*%I54^J49*Uxl0RZ}*a&_!3Ob7AfKcmyvtUn$i+`s!_})WD#fGey<@d*RNj(#|Q`B+hA?EeLUo7|3OIf$?eRUQ+vH%olpWZ6BQ^a?5U?&u zcg;o~f}bkSoYhKf?YgwZ>f6$PK1YIfoSo-7X9X6|&_d%^U?ZWt1h&vvu5WNZ3$G79 zh8TVQVHq_qt*ELQD=82-13aG^yy9463a$%E=#z{>X`fXjAGj*m%R8GOW}3o z9bO2Vhl+UzK4G0`zsMaDeo_724@V#RuhrC6W)EN@EEXsh9@wf{yPL^TjDx;h3dZkuhV1nW`Y)-YjDA6vwjNf0 zxOwq{1#xBETjWh4~yca+)B`)=Ht z&edmIz5SpmzfolRrku+S^7^=&`sgoo6?#w42OYvN`d0)|GHZ2|bU5Hs+@R2b{`h?_ z(w(FM%~5n?xKBW#9skg%a9mpFsbsRVo1IDkCF<`0+|J%ADx*b`iNz9Pye zy=G+&qT!v3zg+`{#cB*zMR6WNy|;?5DxJf5S8vQ+q*N0|S0`6#lMLo$znr*q2Eu(c!4!mbVxVQz)m?1-xCC2pvKX(y-eIcL6iYGu)a7lE5j z09((U4vh{8@+CW}O)!i=DmZL!3xJz~sQ&-RyMQ)6abrhKO$`XcnmkWkXr5W^b!5FMT=lQ%! zHouhOmua$JGKz5lfona=)WwvcZf=(4PI}j|)od$FHNUo{(Mr#TZ3wlJ@T3NbeS{O6 zkXEDi#;u?Hs=KYadLT}06}LH(2e-2>dhlMdqS7Lfw&dI7eU#O*L_9qxeQ^r~MgjIQ zA|_f5r$}5L$0)=z!{r=RvyZEW{#frtBg4B z_%esIlqUqH0MiF$NP%Ka z%qJ*1Lnewme=rOX5_CrdN80I_P@dat^4qt6-_FAXG|(I>drx$@o)YYb#uF#{Fs|!o z`UK$&+DJ4nhusYcT}zihl>Isr=+KXqEUjeQko{!;%=u4YQl`4e8Ih`!E(Wws zM<3`8`(j7mSt-oy*u{nr=*yRX70-_TESXQC8@>tiVx53h;zL_z(*Jl*k>&h+yR2!8 zu;P{N-}DcBzwz{_@CQd1r>LwjPl!xnueon>blUu(OIjG7Y!j|(1W8JgjyH0hB9(r2 zY#dmX*k|#d(SVErD4QI`J<)L2FdD`i;)EiGAsqEJz%C61oKH)6$#W-MVDp6fo*x0p z24fZ4aA4M8U<=nz61uS6j?$2{oycr+dQ`aFdU#VGzCO7Z=P!`Uuy5(^I&WMYO$^HuiKRiV3(yZ|A9>>Nx{u?bse z^!EElMYXXT*sW|3{}|8}5sUigJy%FF9E#wrfeK0KdfM9BT0@u%?$=kKpj9i2`Q>P! zoB5Q~+{_mFJ&o_7@Vh>+^NkuHS;UKX zwb5Cg!>rbY4@q6kS6#ffBkHY6;qJ%U|KJwjkf!K~9Uve2PgnTs#wSqx?ND!wI zfed^Ou5BCM@i#DX0zhq9Y1b|j(ApRn81R{hU(BtG-C`2|CaugO)dTdptx3?Ue~pA5 z!Dm^+b8R|byu)pxQ_EY+%XhZeO7`47?qOlR{(slLdNyBfyZQ*u!-+wZU=f0Y+F~+x zoXm+&ab3G)jrG7Xr!yM#f-sEn>vy{FxwO5#`?VeIiC=;U)hL80aBZ2%T=pjx8lJMO z=a&M7OuMbOVPu_f61D-QCguT1vz&Vex|t zJA`UdzMrW`VbMJ@3aqyU^wzp@znRh63T52yaJ0rk^(kC|2O>WOYW^cNJlD0uvg+(c zvvL)wnb^&AwsH`C7dUc_utM~`viIPJ#j1A+3&peIoCeg1I;L_q^GM*CRtqWQCESqt z?Zz4U0N$V%Pm7u+(U{{FTm>fK=eRinOx^=_EG z#blv4rlGxaV*dpw5rlVni&z@w-~ItJ;lRhE0AM~*>*5~S0ymNbp=2TA^%Zf626>PI zikhLAnw(WQla{WgM;y~+zd(`Z^o=lxcAX?#=b$G2bE0E!cu z*LMDA--W03Hd*?10^WjC4RuaiQ*`DH4A(UGj927x%rzp420Z7^Ig4KVn^REf>plw{ zh?10lLr{=?9s=aHztP$jc!=Sj(!`)Pdt-&txoZdUs`WCMw!M3PUqPwdCAde ztLR42uP|J@_f$^8h0A_l;wMsr*H&_DkJNEyjBtjEJoF})o%rO~c;;uHWYv!!TOke@ zxEB?={9NqhqywRXD6cTMY3NFcFv(?&J-2wp^z)?>;jhx(2TgxyoknZ1OW}>Pd0aw1 zm$@eDY4tn*3k%?t`n2qJks?Sw8}hEr|F**8=P7&HHk{;7?Zv5l>)?)BGFZX^*p8Ag zxTh%PjsS&eJ9A+<#};$PDf>FPA<=0YB3`$reR|nKN-kx<9`%+$_T6NL}v=-rqbFhLW7YtQ~%mMgD&hL+m_{{R3PelI*| zbrHK6#Na9QRqPu}lkTQh=0^@!z;1KE@9E!W#kPk_lMrvcr^2x&Mz_Cja18a1k^?6khqB z2_co-lOVN$!(BF!UL>)lX*AlbaD3Mc zR@s19pZdZreq^sk3PUE`-s*e4*NWE@d!0@3A??#qKO4&IIt=yJj{QpZCt%g>Q<)=4 z7N^p}5nIwsWxsds+p4)OHaesso^0$ieK&KIOkNdVMviafQO&!2P}MAR6F&-s26Cl;l50Lj{~a< zyIxr;p^JLy`<237M2dLiU9$gyz+1XC*E|4_U%Qk|D4XzgDc2fbuw57a)ps-vq_c*Y z@Pz0?r$x06B{ZCcH>%=P#8m>#ne`K`P_wZfarYoUc$jV4PwIO4<3u!9$z;ZJq8l6H z_9tcE=^mP2?aJM|LBYBp_;f0bO@0a&xqZ`RqjrX;w+=&XwtKvvKa(}S1J5~m;@M3a zk^E=(@`BTDBPYQI@^-dgu(wqU#)S9u@;p{%M|=)>m`a_F2IGc4% z16ihCU7Uy!eeUMauu5E^H+j>eRJZ@wy#fdsk=NDj%rI@hRvAM3L2Vb&jR_unFFPn{ zLrs~rCC%xkrw4|T_uyS~WhS;AwIb?LH=;g5z~5Fjk&1^xgbm|cDfC4VwBLn>JD>+} zOn|g1`djXqVTi8cvFBsHFYK`)V%|hXL8Bj9sB_1FU(8N`mFu@X)494eA|e7kdDpod zc2J_v!1@zpp$#~k+UMKYiU)(4AAH*M59<9$SKn!qr*C6>=i4`fQ-!z})rJBxNm$X6Y=z*$vJDsca{f2gaWm;YseV zjxlEk&6dXK2^@3(XZo@=b=z%7;_mT1Fs<*f*cNSW3@=EiIrZRzWW+Wfbl`%6^-+uX zUwU9S1L^-f^w@s7_dpW?bs4_g z*}Da+(Q*Cgm_vo8Td_-H>HdsDzk|QEL4GG@+tE^eO-)g=7+LM$`2U3y`y#9 zuD42k9kZ9j>Fl?bE7!NEy{VioELIUrB=<09qjI*is<)bSKGvMN8H$A-w3jc-B9yTtI7(7c}qC2kHa zo(y6Tt1TwQ047Ee~F);S7_>-2<@4f+94^2VMjn{BvjmtgtL6Z6JxtA z!al0BVzTCW7pS86=*YmI3)CZkYaC%#fP1(=c%^%YdSeLg`0@Bpa>h0`aq-1&aWeOb zQ_mNB&1gPHtO54PD{Xl5KI!ZSZIXg=M_#Q{Bv$QI>bCPHgs)tqL{@J)M=069ZRB#$ z#o~=e@k&s+7HFv$O~m3JfXN=4w>=%q(9cxyKvSxT5RTd3@qr0w5%#9pWjJ<;V-v6n zVF9B8rM1^nyC?-0!8ka)lW;>S?$n zd!I_xnW8n4KvJRbx>MvqNEs-=WgPab7%N-#bH zsiK8SnpObYdm|FAr}pL)%rVAedc`QAd_cehQ*>TOwBpAP(-^;e8tLu2$5mAa6Q|kd z1x41p1wh`YK`V%;(AH*%RM*zAAvqF`R}T#Z)Gw<#U*J6I(xdAYBgcJIF-8QDJymiF zceQKZaN5S*taXtRYav&UuZ4UBj5%r)zW@qzT*>uZHtY?z0&p(_wGpKU)*oK|TZ0=O ztX-QU(Rj{(>z4~)F%Z~6`d7FY>4#JzfrQ)Uwmi`aUi8w4+x)=yS`BqUAFhO&nobGA zyLUS~QqTata+>nw98jlZbbL~aO}P4|>bO(8aDkzDgqLGM6#8OgT_CL|0FL+9=%F7j z5Oue*|KVX<+agbmw6y2i@51?|M?Se+94A2|C#rU(W zRw~kW>77*K(}%N$EDk^;QwJJ}+kyQjj`)DH za7=Ma>HONCaDpBNfgV=iFS~}frMn!Cnw!rR^`;u1cmC28p;IUro|^VaWHaQ;EK2=L z71nZ;_Up2~*=Tgn1I9(%|0?ZDlm_yY*{8rLy_Is$6#ij>*)VHpa181^SpT8q>nLk&fMod=f3Xm z^{UQdLYc`$(f+e%PW!3ah!LAQ#()6m6ZDX65Z%(84gt2>%8$K1&49&W0&}=lh!vJ zMk{*NA;Bg^^9%Z`@?c+I`^H@h_{I4Ph|n{F=&mh#UOklh9#yc-J@P9OmaO!cuu60H zU6Qj6f1vRSR}Yo*d%^5C6*utsF$+O-N9gi8%E}vXr1_WiB`}91Lb15&qS=vbGDA=g z)L>X-Vm#F1Hw!N-Yk390S5^ma|1oK#XNX6_zDePJa{-JKYPZ`W?^c_7d(UAEn3sz> z;c2ls_(J4bB%>o2*kt=foS;gq*mZRh)ES20}7lls4qetnUeh_F2M)P5U@quTa ze2y4jH~NGs?sZfMNWoL5)<(V8T9 z3HF8-OCug}tB_sYd-E(7?G^l6yiY2T0i=$x5|`d{_!8gtwI#5#cZCgp!ZWf%zC1CZcIjZI;q0z@v(pw z?Yiit1;`!T(V?`aRj25smy{h9A0JXsdq0wCWq)i#V|zz|(hUWSK541ot3WHEXnL_r zFgt}r1X8YI`nv3&qa)X*@pIoUKOnlAKxM;RR%CZO`18T{4QD-#fJ5^r=E*Ws`x|Lq=^v;@eSy%u>=VdjEKEK><9Q zn1`vCK6b{@^!-MxlU$~t%5M5Q!^u-DaJI)F&JD52Ux-;(uMSj65+dc`+qjH~hkus> zj6rtEnEv^d!uz$tHekB1frJl6q&Uc_&P){x(*7~6G?seY z)5b2-mY&IrH-n~HN2N6o(TEY5^HU(Kk$PnC^@2U?gmG|?E)B0uDer4>GIuhj30T6O zx>D-S329iqz!$^$i%WRabEL&%LQcF z=GFZsrWBu_9fBVJMAM5stpnQH4=-+i8b%;Y-usTFCIV-9nEn?}FkBPdIM_Y|RDs!< zbzA!TQ%oEd(dPdQR;cPYDx-?efrn`=!zI53z=Y|IYl^9BUeskYc@LwM5VG3HM%NZ#_uz+bVd(2Kb3FKli z>i>pUmMWDezfZm@4NF)}+W)y9`&U=@(4$#@@+)|158=I^BX^Hi!9D)d=XX1W>{U6Z zPMz5wLCUy4j&_6(&z~Uhc190U)@3^R=^mjAdk>%zE6;pgH@_zBJ&s{=e249enc>US;NBX}0`Bt-ySNW4c5sFA z8F8>Rt%J7Geqa@W)nYUBAi&cRVk*J3LQ6+yWl7Ve);H`xRTTG};KXWE?nxLb@tkMf zz|L^%G#uEp`gGF7%oEzJ*|$dxI1FaF-)R+9i9|6<)!J|!WLi=cK`t+}s$|&Fj(3)3 zdqpq=|3siWOkTY{(ampXw5$B#Wnk?#?%fD)M^=g2y%C!FAN8{owupp)Ay+7c@GvfJ zr=*0$5d=;y2%JMl88jS#$%BJ~;B9=++*|~b*im<4RKmav1VE>SEWH3TJs4ypGIL9d z&lyQ8Ek|kuk>j%X706lDyrjCd!597c->UAOHzM7x*$Y5RHf-2p0?`vatJ>17b6|qL z3=(`Ua65H)=@uA4@2OrJ-e4CmVitZLI64sTn_+k5^-uK7O~ZfE$yAOTD*t$XR0TXz z9bpHApwc^VNNabZf)O}4ovwup`bwxiu7cl#2W!k?o!-J?JekMke6Fke1WXhRl46li z4TN?~nfL&MvE;Cb6!Ch5KGv==hOUxJXHQXlM?{4DLtKIfN9;T7&Y2#**-P+bwgMt@ z$>kx%Yr)hL*U8i>hLS2U);d~o8Do_nk>=-ppgj*BV~$;&oeNooT1GJ42Lk~{$0Dd` z1t_z9F%Evh1C4RPN@l3nE4c7Q3iLp}1uB39I13$hs4aT7;Mu}I{h5Xl8lYMOcosFY zCDgQ>#3NW1gl{H;bx(cognJ=I{v2tRoo-(~0g;pcfUu@+@9y2Z!2?83&7nj}0uW_# zA(hu1$kld72H-jqZ}P+-p66V&*e02K?=N`H_%_1@nHZ!&96Uh4H*DtS@75G=I$Q;L z=%!Q3a~oPa+twpTXl#kJv@}a~$yWIEtvh#CLGZB_tE;)0a`*141`%#fa>VE7`376k zo-}zaM-I8d(ShX%I+G!5!7F+eN-y zofFtffQ~F^QT*DFj`nuxUoZ^`ni$!=S`vu(2JK3xXB91dlS!|uFUzGKWq7yll&cpJ zVa?C-yI!Ql{tHk18D(gL{SrT$1yb0nHl&^kY?Q#|ne0sVmXViB>Td)ILq{u3v%lL< z<)K&pdV7AI5oqW3L_5{@!K`;v16RTdkooKeP_wPQeY2WcBNHNno{*F=u+VJBQ{+7L z;U#e6beFR>GYcc^^MP4(6xwNQ4xpT@t!5igy6A%g%n{HomPrTLs!D)fehFL$_dzBM z>VhjR9R^Yc)S41(^?`v?;4`U!^ngdFl%d~;CeF&W%i*doS^ip>K-i%wO)BJLMSElUcu>qdRLo~_@xom{1$gZJ=1)_~3p|l&ipoh6hZ+ zkLFmo`#yjzvW-2O{ufx!oZc<|yV@QLRwdq?H6W0z0$YYb4JK#}t9mO!-^255l)=I{ zq;BI!mLJnIZMdty=F=!{W%qv(=BHKJe%HRpxalGNb;oi$?{7I`zFV-&opOks-l&p7(L^8+ z4j7z@fE{bsgP{rzT&G*OFK*T z%X_2#@J$kx%EjqfW~e@=Iqv)RJ0gC*z1#)H9qD;=NUr>m;vvXz3W6X2r!H`rJbP15 z79-}w*fhhk$0IQp5^3c5;y`hO<{N@BUEIc%lpNoK+!a~%IwM2X#-7hOsH@a8{K4Kk)-llHdMq`o_KigTVN6f;FP~W) z0Ts5MF*-IsOL;WTn5XhA(aqi?TGj1XTmJ&@EB8Uzl>>#p2)SDBTJ5R)*NEiA8u3+R z`5N)B*us)V}FaQwk-t1F#XEHQ3&#zgpkxdJ8%<(AU8Q&a9c5Chz3+ zVrelbvQSe~a~|42zLy!T#SRCj@4XiB>UfIDG&>EYhwS~$ql<3|J#s$oE5^FT_LPE~ zctXv9`{K`q;_IPbnGyP@NaXI9Q-aq-1KAuwz7b932Q6Li3k84Ip5TsYKD;3GFFgDc z#b8{3yCkb-kp?Aw8j#>WcD~?`yTeROwO>Dt>4E*xsW;tr5(SJeYZm9Gz0d7Bvh?zx zsOsi}n?-feV$f#^ygnAjpDaLORab9O@lRMt_s=`GZ(o$fJA`!R4%AUOk2G`0HC>H= zo{Ufbpo^UTnw*dGy5cOTr@o|+YPltjYPixe=f*ZhZq0+T~pKRy5E;QEF9-`}#&o1FdkA`K=Yl_rXpjv|PFqM7NwQ&|F*%r_ASSt!@`paL8U3?TNs>mL#J zBk(GE^Sj2>c%l9X1WKmhmq;-J%^seoC0xb;3b`pFPrcj@FD03i107%MZ7d2i|shc2o0aOZ@dceU{*u@^HO9A2r zf6uLQ>(hXp5VaZ&>KkQbaB!a2RZMjFmaivTmi0tB|C9D@)8yu@8$P(bJNRxr!Fcne zVSrGSsmaTi#IS<4{R+EpSAMy8{C!2I&c-dBH7~yKd}GNPxsUTnxg87d{6a!QK{@vX z`h;yGvv4+jlasrXt+ove3_OdE=U$uW=;%mskB!43Nb?aRRZ9Q0J>Z!Yey#8Yc%%WJE&6823ZF~utF zqMO^Wd4GB*8$pnFefdO$Y(y$7F7A@rwCNZePDfWax1?mrZLGKV{P3)wn!38ChQ?G^ zHsrIzz>(4d0hfA^m&_G9-I}7 z1pG&-c4+8QbxjRkbWyjTSvQGAb>qaQzP?I0uY39W@bvXa(cWg zt3SQP^&&{s&2p&JZXX9;O1<^p;qESGB1YIVzVV;f-G8s$U84X&ad>aXr1jL?d_U3s zrV)(Bnr|2Z1lcOI0$xg#cL*svwLQw39Kb@Nod@_4{De*xyC<7EH< literal 99016 zcmb@t1z1$w*FHR;fP#R4fJmuWfP~UHB2prtbf?lK-Gii((hVvI5<@t24c*;6G?GIP z0~6oD=lQ+w`(5Av`s(^$a1O(n6ML_{_FngWuXVn>RhA z<_^C>EYf$ki4Z0i7&}Eb8UN&~`s_dnB2aR-vM)4JhT53equ@a!hJ#KK=X+2B#$gUn z%NIsqmW3SG9`$gC@Qu#ZrO|h5joLnX;&v>Ow5q#g2we10OK*EsyMtyU1NPCb17()e zhxz4MQ|$icc$jJ>Uc$fT`1#S660rgg)BZ+qoSTKU&b+J;a9V!5=YicpxliqH#Q?#y zwe=oz7`7>}l24`9zN7NRXNu;u592R9|{=J_axNjaS=l?U zm96uId8Bi`2yxcZfTo6bjYEsB?z=+q03p$&gz^j6ky3l@cFTjJ4I+xG4U19`gMDLR z{r&gVyi=x(DYK?^g@P@03N^>U?I7pSbDD^3+bFxA?TGd!x*Ed(ErHaDmsC z{58zL9+CDz3g-G-|8ZQ#i?KVw0}@@UNUP^`UUWA~S%?BF<(gmp8QypF$#hHLjCjmw zAlsZCpv=VC)2Pc1`A+V6SBIWbcyon-I77VjTM`MK%TZIvd}2$ldeDYvoJozYn;+Vv zF?qVTcUoeqL(-J!Wj-6Iy+`N)d=?oGu6!+B87 zUsrDJ5Obol9o7)D5JsHd-I!FM4usp9{jrNjD#atkiY?3{CJwdbMI11P+?Ag6OXc>@ zx!N;|Q#$0kf8#F(!Zj~i2EC`F3=I?Kv)mae*EmuP zuKG!#-~Ib^X>o#`tMJWwovw&O3zfZQ*T}eLx|HxAAGIa^y<6rwttTsPHGXpoZcIb*;zTPD)>nl(Dp-J=1Nxyc{}IkNM>$vY$SSrt#7&8;eg^xFhSkSUmmOL1|S22K@J} z4A|W*z5G-R?BeA{JHlYGJGD+Z3Nv>83JbutZ0B#r)cQ0>P%}QV(*x~GNV6R)pa?#XzxrwwBO=HwQ z+x4g`5M!|q+VpN#%#Ts$w0K9pe&(EZGVu7`lBHdlMp74OgNM|-J5lN`HnypIMrX#lhWc1#0m>&2LR%O5O zyj`!_Ib|6-R}-;*{5)GCpsPu#$&=%r9844)d;i+m??+-?j*MnDq01Z&KeoJngoXUz zh&3(9Fy#zh-m?8s;PK;i(2uQXQ|mN+D8&f<1k=0Mb}vKo(D4*J_tZq|#g#Vq10;V+ zo!6)e^q3W-TJUHnjpi4aD;&Nae~LEDPkng8sR1M1>%JbFfoG$@pIuc_Sv&rw;!MIT zaNzPT%}#l>6k%HWbTZx8KtVB9Ro~f^_92&ik3;|U@z`6c^%+a`X{DSw@ugcDp{OxB zy&6^jmsJ$z2l6wP20}}396Ot}{#cz-$ia!|Z*OmoNuKWtru2VUs7md%B`z|r{Bohm zM=;}?ouahT_%7#`viU`BPcS*Fne44s5U%u;Sbe4lN8tx_f*Ruyy*09KvW2cW!VL!R zktgOcD}_SgJEsdzo%B!5V`43ra{6CsFjOm5?#yGC;}YaF)?gicC1>cRb8g!j!;psI zUD(gf+_@2#LI*1kJ+GUI=DS{Z)~|Zcy|#N*9rkB=X1_w;t|hN-(y8JA^OSG#3He;> z1Ijtr11eynnS%{+fj20G6A3e&ND^NY3|3!ZbW6LlE3;0kEiLOpKhP`ku}J&w&$YDj zeOf0gXu;{-9dBs551a3-ld%N`1x8%Il0@RrbJ!Pvp$qcE&#roZ)jv2GqDR{$J-)XxG?LTQ`w!AxW z?Ml1s?JmIQba8r_ZFk&jbmk9r(~XFn6dy-j3jGs(GR7u1+20_I&Jp6Gq|z5^YSh|v7QBFpJQ zDVNwr0hcH*lvxW;HsYKaSAGBcRw(72-M5A(Pt>@&AMcfPn2+qKay9kUwl#y!j~+9S zzvNV?f?w|yZ2BU#TIc^= zM^5sLV_IF~PoH4($5Fci4kzxkp?Ae>e)uruTy`cT3%*{nb2MvmxkcsU`H`;nxug+I z%+!}|llIk;`%YR^o`s*&HQqP&poy)8zLq}E?|k=Bm2x!N|0|x@$|Jr&ftdLaB&U8<$Emm+X-_l1RZCU+gea?8W zBel6YG5<>$aRIqh4*AC$*VIl-b06QZd~7>*JLlcp)eW|r9Uo~@qrr*XcF|Q!jL;Eb zuE9F34;CGplOGWZELFX$2OsL*u)uBWgr9lN9pj5LLIxesX}_MQAiIdxZsi(LcMDnZ znaC7yq(bXUzxcd#8z?VWPmP_s0dokNl`%}tK7_wGH*0B`^5K6`hW;GK*C!t*@0X+S z06cOxa*>p#IF_oImnG@!*fX~reWIwXx;Co!KG(@G$C#}vC{9;2R7&)h35(RxXk&+* zZ{#5Q4(p*n|GB>AaC`a*pIUCq3WB?)&Arsfc>2b|w!r*`!2F89JVIb@R_}XP82GDW zJRXB%^(tHV{^D2E)z_{Mz80{>DC#CoelL0!Es zVCc+*8d3i3`=7)7p{MdT2~sxU*X|SD+JEs#pY6fDl$){Lc6i)1@8p!epa&25zM|^~ z<1BWktK6Xt?&c*(Lz|Lk`rPy{uiXo}3G75!^~(9~{{0wqvn+s+_n*T-pKp>j{d@HO z%O@b3f6o7W?K|krzgON5`hRh95&4^x=k4jwKZH#up3H8aN8`^ZN6*7$Al2Az9yrDT z!Mcmgvb<>BRq;cwMMr^ocn14=du>J~XJJbFl@q5ir|xZys}7!wt!qvhjvcieI3WZW zvqTw!-@yAFbFyHO&Mmn(-~fboW@X^D3dy3ejt(E(%IA{_1w~rsmLDf2?&2#PeL}yD zb3}hG2Me_6-LcTnW*^}6mWoIAH( z{X_6V!BgaDy`L`ti@?C`eEd$om2Q4H(^JD~qx3e=uQ1jGWPz?%Dse>+Tx%#L-}|nc zjo{+MqT}PQn_urq%PT2;==yrE(YIn89}31aCm;RECcZh6m0}f}kje6VmlU_cj0f&C zsaJF%y~cLO5AXA86!8uL?mXh#vUvY9FZ2!D0akj8L8a4RCQM+I|&w8Kr z9Tp#5dD)%2r9?e&TC<^VQv5`6Dvt9hvoCW4iOKIjd>Bl|Q~wp%hN|EbUeGYH7v|9{ zLB|#wH>;rh@4fEhG?Ty+*a@^G0R%=@I-94&XEEnWPj3Jqf$a8&iiyd{#tUvDA|mF) zwtGy@>wV8)Fj)7%K*y#_<)7aZM9HGA)`drF_^Y>4GXuel&P@?^TkZVjAzM9hEB*R!-NtG8WDr zNQiqLzIPt}Arq3o3W3aLK3_i14Sh4%_}itkVzgOA|HRil! zUsX3QH5JdU))yZi@9#NJO(XJFm2mMQlrj`w$vk|O)dpwD3PGD9|Uib78%*+$nAFg(rJ2^R}VL{l7 zV=EYVW)1lSzsNG5|5{ljzZdZo1k2r}AaQkdZEJ6Tr=>;Ggu`Aaym@njb7!`SCtEhs z6zKl(=4fc6?>WfvN3)inU!zrpn+}1tpPwW!bXJvn!*>g(eG1b%ZJr%|?OQJm?ATM)sr<~kJ#$tG$FrImtT`$62JYhZ@f;E%DV4cso2q3Nu7)>)S&bWbhs@h!`g2Fe2)WX)3ZHou<=1r(@7l@Q;Tas57y_VOV@1+ z*Z*|gfM;Wex#1YQBYJGteDULc^gp9E{e2fhE1+Ay7&J+*z3a1;qRSNZ*L|Z7|YHG@Qd5LOhXgt*||25wEjjxB* z3gYEU&a*q!x@&Rrp{nZM)*7WdF3nY{em&KuFH^$XX|d_kqAOs!2b_FyeMPxESqCef zFqchLQZh0EVeIiJgMjrd!13*2nx!=Dq%B1gJXN#vPeHwdgOsy`6Nycn$?R&m$!>KS zAt51}4rUUc${K~0k7XagF^9dtQV8rI8|cR>nLFNR)cVu*WY`ebykq>5% z@VnVd(QfF$*ROM?%%fA`0&5O}*E)L=I3oiB2+h`d5;`tFBO&;U=86Teg$o0Y}7Z$V^v`T@O3IgcdrJAj!op3r@`_TnMxWIrBVf7yyF-fOf5?R2*e)q32rDn= zw-sarE?#KxzDR5>BlR-(5_PMSxI14__G8+QZIiMBq0NDh+DbLQkeKd)%)PsLX)uH= zFqMk>-VBH##V&%uNYW!G9hm> z!J^@ei5VI5xl%$cCRMZDeSJA)WmMbjeI*dA%?dsIEVx9UG>{mX?e8d701sPGMQ-IZae!?Ce8N7x)H>K z-7wH|=F*KU$U-^s;;-UjikgAVyex_rCMNeprl)f>ATmOs-TtGCiFnk)bu10ebVi$I z5%V-|S0Ou~H1qFqBlLsE+$6Mp!IXMr);JDOs z{@aeaqra_IGS&mucD0+Tn+(zM(vZX|-3C#Pv)`GG+Wh?dua2|+%UzO;a9wEW3cpvs4|yOv zXL`*3I`!qopG?TL9F*X|2Oj74wTk}An)CEiI2j$s8DST;n+ehNnLDX>r%RK^@;sE% z@0?oUe>fohkL}?C?$6CvNlb9;i)58vC!Z~jqymp%Gc4X%U<~;5_s19ZBJA4DZJd2L z{)dg(cj$k>tWdPLkpQ9)$k19e?Ok+LNQOLTGQROXtq+%e_0YbDxQBS=XCe5%6ZGL>M|Z~AB#jL}dfF9U`L(#q#_WIn5=woZx({HQ zqWt{tjg6V@;q-F#1MCpnGcf^BV6Oe=UGmJLyM6G7N(9N5U@Yk7vii?a(P?6LX5)p zFaLA*|34>x42w-mvl&Pi8I5q0yu9PE*X2{%*yZi*i&Iikx|!YQJ_TID#^o`o%Lk>m z^kspKq%Pa~k@PQIRF=BKw}pO+i~ta(FhWCPCE3%QT8OaSY4f^|2* zGm}O+SlpXNB%SkMgzs^NH*t8T?|A6~$(3YDUr`8Vh1K(XGf%9K-fquPv>)F)KvA<} zTa^Z`)o0e7*e+7iiDB7KI01S8C*bZR| zqTA}W1DZ~6=yC6-5u_hH5n;BTtRs$Hpy^}c3vUP(v7LU`{S~H~&+o4ZRAA76p2eM*dqgYm>x)3}jw3!d_Jnbg}zeBQnsz=+8ldB5Oz58?u zQMKxi^dZTM5yoX`;Al?dw$8~;<<9YghZo*#o6)Bylhe2qK8w_)fM1KC8&TvvAAb-e zJ8!9vCS)OJPbu<7i*_e@cFv&<3>Bvxv_1Gj&f>*@@xr7KT}W$!mNKS<5^PHsq$5-} zu{w+oLBcb@b#A+ai;TYHxQ0&KkF|*5m9+y8k8NmGl-{~p3j`OPDvtMiaE^1p{BEy* zHO6|M=iL!&#$FYAEea)faUT8~-<*vDr(eb4g}1IJCCQ&luRYZDvpFvlJlE?55Q~z( zFC?@XiOR8%rPN2vEfj3>6-!pKw({~S@%ez(5rl+FwEKN55 zZzf%wY&+q8WaIKw2=RT{nU0=ca=_|_Kh~;pFRGdyh%}Bi1}QxurHNN=FbYOQG771l zurWsW;TUYRTk(>(cZIoeM)vQgN=-nvbJbMWMhWTk(f+xl@~STh#|?QDu3rbKdp9(4 z3x2=t(Y@(`683>UhC+k7SPdY&agS95_Al7An#5<(`tKs( zSy{N_yhbz$CCdX&&T!-&j++Ki_h}oBlHlOvR8UePmxnN+R{ST*CYIAh$Lsfs#n8QE zJR>D#F-L>&puO(>&5@r$+k_q`)6#kk_}y6{79kMX+MruqO0An+7hNePoG0_zz7@)F z_fVJCpIOY^X~LhtMe#LhO|)-&I~OgNKY*}Fd=|>BXs`p~e8vmNEN|{_g!lhO9>^+Y zG*3kc`pp`LL5I-VdNvqRM=fkXzg;)povDBhv>rTp@`RV^J6%wLy7tjauHH8)c{AJO z$w@BeYy(1*FrPjV^=_vv5~TqbmBLXehUirh;-zR=V>=@XUl?)4ekEugJo*!)o3Y5Il$Z293mkr9g!XlhDFA)&S)thlm zZBOjY0{6+d^z^o{s@M5vE(-YXVg4>Wexards62LTyfAZ`nrCyre2lXy^aT*V2xG!|K!Ik{s&5wVQ z=oKElgSm2UVqzJO=~ zvB6AFPutE`l9x;>%E-txNxpvl`bhR#TDqpxs*(rT_r;P!0}ZsJFXO zt&Leq2_a2ABJnHS<}8piw@lLyAlC5gB40mCQhg_9=YEsckatE#D$>$dfZ#heHul!Q zpr0t(uqkUD|D|zsuu0Qv$3~ou?TUYfy$~=VZJj}5z&s0S$!&Vf#TEB`BcmM`sKF$v z-t%4hLT_#Yd}fV&@@@%Zlw*E?a)?U5?UX(C)Y1~PSU&1?Va_UA4)6c87?mLwT^DuY zGA25Ki`P;g%JxQ;=3lZWIOcIQ!uNRI1V6!rPkf5^4#i&>JMKu5D>YAwRbeu=qlryO z5L5knMYd%`MePWJ-v1i{@Z7|ehm)PtY^f!fU=tuX5d{SWg6>jrmq0e!6)yAfW0`}0 zBmjgtI5E-HEofPJ5fzOJrs-@Y|H;o`E> zXn*;aZsFnvvvyJTM*sxy`DCD=@TG)435RpZ(A~8OgH6F;bVjvzl1D$&On~}B74QW66wd)_E;hu@uJ~>~QaxYETGqYk z(Xrrxa|2pD54L;M;TftA(Yd-=l`O&M?K(rr>n;A!2cz&OElx)6sv-2mJ-1LmTSdYd zaMEiCRm-odJ=#3a1n{ynBGqQ;F)elVGveKACsE1Z z%ZP@h(EgPNk16u`ZxhMM`4vE+>e}iGg-1geGPEDyW$0v);f&CLP zf4L8S?DztqRpj4|CouZut!!mw)g%h^)2uU!x$)giEXr3LlBRnpxV|DTncVh9^={$! zqM>8W!S04rOU+3T6gWEX!7`Wf@Tv4-KSGq`UrTa96j4blL}r&Q^x&PE@J_hYWQDIQ z$jk3n_}fkYez==mWW~y>1Sa9xch^@}9apO7F%9O$0Q`QyG|O=SGX_!L*bCR zx4DxzXFM;-jI!>f%kae-7{AmITulP2;*4Fey{w8j`F}*`YprAXYW;Cb%vbOI_*4wJ zCmKqJAh;B!U;WAZ{j!a;78m?S`yU3>Da8f4pE!KN^Q!a5U%~pCG$3qoWZpNwJht)8 z{lB&CUqt_(1nvJ1Cog?=BmS3y4OHEm@foP*1 zgSW0{ypbo5K1K=G3!E^CI0be3VGHTD4ZmY{zq4U8ba24Bnl9;Ed)?8h>UmG(sDhGm zZh3LonQoL=!^+$FXJsbFsgD2$cTmH>?u8?fyl2?VY zWa=@v0eNP;ao`KK*WYamA1JX~;a6&H+KrBUp?=gEP zh~~C$l>>_PY@e(h$TJV6k9Ryp^R27^-NOI+?MQyXmuAvzf}v8<25f?9k!@|lO(9k< z4SbnHDYaC$q1iKfk<4Nzktb7jZaadE(b%nz(zr)Vjzy}B#m}v|NNx+--ewfC&l!qq z3o1)0E5X>fLFbzU%t}P|_@f?#kTViDbwo0z?ZUZmd*ODg{WvNcZD~{|zC>em==Mi^ z6;I96^XEt9S`s+ zJ$*Q=m(>oK`ch4j#N>CzmMinl(ey7r7l(~*^21RL$YF;rZEEUeb{@{}jm4jiGZ}Io z{8U?mc9_2iV9N}OzZDx-`%XuvebU?gGoNjf2Z8@)O zDa0bl$vwnrcX+rvc$W@3S(6ZyE9uSy&!De&G3X=m!r$8`Ucdqd+Skw}m?$=wHF*pN z0wF-ZYXN<#A2D)xNwb0QxcC^1z7B%pvB(;8Pb!c_<3-`ugux3W98uNS4x|tWlKCu@ z(>OkHp-E~p&Fh@aVLmRE_{)oCGx)9?f;yw*a(Y?C8=QRb$|ovWk`3+Ovj3VuRh1gF zLBZ7J%V%*1&>bE%)q5UASY-Ll%$0sLOA^5Y8c4!N(TsHfHMRe8Fp$+n@iS3~C4^Ga zu(Hafvt{~W&rMPvh4gog25l4zk?O;i>~6uHT^ zbsJ3?q9sqC4C2<6^>fk5?ssn#7i z5XCI!Gkb{#{jElGp*$QMulEpeNCHIkLr?tCqV~3|1sY~A9`}!akmY||QST$|2S_aQ zu9GQRkc-*=bq8VP-s!FwwkwiJNl6#E_|qzQMJ?eI01C(r0yD*cnG=Mb9+Yj(XkBX0 zE$M{#9X@+VqIhOIACh}gTuVK9QOIyH|16&Q$y(8;jr}zGg{5r?``Eg?16W<>3iMf@$PN%#PLE@<^_cy&{Wz`*?_%fc6m0LLJvVDgwd z0Rj>3&w238`-vVK5Y$Jkds;4P2NBu1veYz5Qe(L)bKKY0!s4(|VAH5%rNF+|^73_0 zPqou46~ozzxN|lEfYhg*&k#3qbFYsMPMD@XO6EUF<~2s{HDH$MVP&1uH7AvNZ>|K& zlspxz{Q>cUSIm_)c0&de6R{Mas#)@@ryD2-g?(hf8eWou-*x5p`KC&mVC0V<_l<5= z8aD?lX_DQ3Tj_DIyd)>oOK{c+#+kU~Kx~J#7i!j!`jB#Jzx~Mh`u3icO8+j_SwBc_ zq=PT9c<+_^obGP3v9jS*f#BBV*l#i(|%%BAO0_&IF3LX%D%Rj7w;QcBc5G-Ea z0F%Ct8)x->_4+j_MQ9)un{2w%8u*=Ry0WuyDT^>u@I+<2owD;;Mk!84So}{LrlzK5 z{h-#${n2H--?#u{_N74!I#$Ml_5Hw#mR|^63q`O}HvQt{&i>v=HOeodswSgUkyKLY zC!?uJ2atiQ#?ys^g!>q>!6W3L(8a05{+#n!ZFO=m5s~onvb^#Z@e66QYz)(GfMvxC zZCb;^3oTh$;!sLfirY*k=f|7o0PTTIkQCk*2h?;r9z&+XS9v)(SA8na*WLe`N0U;Y zd4!b$Z8nL7BQNFf@eO{gX6t$&@rFgpQ^arv!4=}S`ucOre&Q^Y^gc&v{p+3Wohxp2 z(~Z6tAM3!E%H8l$xS4RCvH+6XgHHfo%^wlG(5+Sxna9zfMWj1iskecJ?S*=>|DpWH1b~)t7n6fBZAMvcX$nE|_M8a+XZV6^qhgnavk6`?< zVI(Bh<5!hNH9cK@n7sn8`t=!cf@GzFC{pHbZEyVo)Nl`@XFyc-)FH~Z$_MqOi^MV7 zS2vf>?$+bZw;O#ir_&Z9s?I?HG8DFgfz{O>9F$swO7J{^gIvZpt>(tb#3k_45UO53 zl0}=3rKP!0&1>O(eSIsMvCtmm<$}nij|;kEjd_J>mX6o6$76$9NkMDT25FPwKT_7`gnzO)|e9t3Yxtdly9nes_2g00;Eskbshv z;h`z{@uk)Wj~=~!w{-8>vzQMK+>fABt?UP8z6|M zhEb5-t3yTG+KTC)5qCPo)qmDiU@g|7?I4bmc@V+OW>7SvKT&TQn7PJxhMy*tBM3Tu zDM&#M&t+&d_hGn$DRN1mI^bl{qB4!@T|MrW4^gc9WX3wKp?!+kt$;!+CON(-3xDhe zs~5>ob_V1UpR*aNUTgV*GE6J_%-<8p{oLb(WPAcz#wr09 z4gvIMzSIOj7D~deUTfTIKt5iNDPU9g;>bUpFcwS&K$m8bHq}>f-l)}rC|VP66-q5g zkcp6^;nD;An$MmORm5Oa1qgd&#L9b6gPqbrp^2Z}KSiHw)_k;D@W zpOS87D2)zH4i(Dzs8v0F3HH5A64qrJUAx!zY_A5@d1(n3#XZ^XW@;cVl}+0|HSn^1 zd-L+iA2*nVcifmLNLcIf1cG(Uase48(y7EU1;xeYz4U3%Yy~M;gyl_D2@eiF_GO_| z!x6}`MdVk|o6p7m8rOsVsN?>IAawA}m;6L@Y}|LEI#-&vp+CQW&+G`11u}%*r#mN5 z6tvKO@rQ}8!eBA3G%oNmd)PIH>NY;l@>DJaZU#dFGYzDb+*iP*de*_+c&7#-C zM8WYEeEr7YCSXYun`g~GrNBmD#SU&BV_0scUJu*Me2owEmOI0=3{@d=wUaen#r1_ldqKroh_o zw9%;C zhU!e{_@QjfguTrqe$viv;xG&Tu53%FqDB^fJ;h}Y@0PISqsQELO74WbVsGe&RYu_}_Gt6OSrs#7@}?-l)r%@!}bmv;I|5 z*iJ?7KKC;8&}jU19+-KPb>y{$1zK-qo5Sy(?sA6+?CgjJ{sBnNcCD%9t)^z^Tu-=c zy}MvDZ7Pu9e{M7JbhM!UX_`Rm)nD#`Y>eMXD8&ySfK+gYpUf|8taL2SM!g@uoe=xf z{gD3X^oaBR9_6DETxQ+MFNEqq*6B_g9TEN$-}YkPdwZ^$uT@6uVKply+sLt6Tq==q zLPCN%YkscYYoP*88%s-DOO5?CqFC(d%7Mo(QJ>@vuQ*{jriE0mC?=5>GdL~*y~u;( z+#$ao53f*$h>jq1fv(K9=5Nt2djLY};(^B#cCLqfY^_PUy_c)Q>A~@+N*aiPf#JP{ z1>oJYSOW=*0VZc4FAH7pn<&y*zY;C3u#}Xgs;W<2Y6~QJ*5_)RBV!L)BI+!kaP|m2 z+e`oMb3Xp4pf|jA4^~^BY^dk%1ckZ-5t6n^`$&&=s8Er|e3w&(3PnN#6eMNgEiY6m zwg(B6d~d>bAMW#6gNTEBfS zrb_FVH8o`t1M7wVCCVo!e@l-L+A87)V?q;ZYHHFM&`O<0Q5%r#hj_5&1;%*$7QV9? zCxE}EgBv(3F~BPnM&SWVm~O@EBjWNBGZ*2{Hm;waZb~ayu_q*i68Nw;*_6PCi%GKq zvGO--)0$HXgWMI7s@eWf$biN4@9&L18oTptw1})8;K1XW!MBKdKZGOk&SL?A1b`Uw zx%?T@tiy7GwGYqnf8#neWrNh|1yq&ot zavr(?=^O1Q-4Xlsri!P|^%Ga}98}-khwK>~4g!K#sF@BPd($@KNR7 zA9^T$Kd%eg_=JQQpoXUss#iA4{NT|;Q|BowTg#@Ed}GMRXCc?4!MJKjO$@jai$jBS zcN}J^V|<1WU+F*A9VqS!I#}s9L0A?P?LK{K`*D8K5Yk$W&SmtaZC_no^>+a*3tM26 z>~eq5M&dJIq;1^A19^G@-8|WzRMXMf)T3k4{_tM-W8FN#(c?GCfwQ}h#KagaN#`a? zj8p)Y2Dl;An&_wm10uLMv{=shvYPH5gLDSm@445pWv2H!!z1NXdGnGtxbsPP>W2>> zKsT7gzb<3ze77Mr*+CJ`6bHjvtj|8_iM8VcMIHhjT}l9R;1rFl52d4jow;J$E8)<| ztSgIQoW;gtRooAt-ghWMGkRJ>zeGo~4N$4T{jj`BG_B@uwT$GV<42#&?5;x$i`U<_ zPwvcWwY91w9R?O&ER{aq|BZca$VA{?yrM1ooBc|!*3<0oWiiI0BaqF9Ndh9FOud0J zIoRe`Ev)X{AL_5oU2k+*8g|hN>S2v?TpR4~7XXr-8)+1Efp-C>y_d!!>hc6N=N#=Y zyOHT#EPaIu?@Lk#WB_y@Jy@y!74uCUBjI*S@ zyBm!3jZLyA@{Rdm=I%wkeZMFvHef_WtD(0aZ0(h0y4lNf#-aGI{o(u5o?|S5E#6cN zk>bb+F{r%l5B+d4eZHml{uEHo)F$C*T+$Q7`cGskvIi1&;fwS)aI+$u^OUTgI&Q!Z zsz~OpE^;q;*s+5K3X9uLaMm4u?l(S=ysq&bA;PQ&yFcNYmR8CL&1q})uxY>?M$FfD zrSy}YqI1c|CdOVSYlVsSz%3B=EYtLLIKvCKR)&6TloI0~#_xwH@+C?w+}xbLbCW+o zd}3m3Ow90>%f>)PBkI=6kAo7ZWMyKzJxainFSw|Xpw`(ejK3)5!`5Gs+Um;n7#yzI5aic}lqOPxt8SEDcgeRPMy{l>b z;e)-DDd$?EP^^0nevRIc#Q0>!?%wFYDKHpIm|+h1rPnOTqi3D5I@*Z5X>bb7#EMEY zQm72je*9nblHLHaE(6}khS1qvdks$QUnuTx`D8<%W7xE7-{+Ua9<@oklN9mUPVs6& zb;payw1H~GOVitob&A7=Cdx)ycvDA{o^@d59T4VBkn0eDyi zf9fOm$Bso0+5HfYmOu6QUd<8XJSQq5*>5IcJ=r>11Kg|Lpmp@RgIXag6`3Ch z8se5B>`RgI#2ZHikL|i-=4MF^82D(EG9c+zh+kMAA(>QUWV(7BfT`BxQ)r_FEPnKn zjfq=_rVBb{0XsXkK<%w|g|$XFIz!Cez6&YV3%4HU0Mzj5Qj;q{CVOREE2-)HAum%R zHv>C_9z~M9t%4gk6$45BuLKi^EnVKNuwKhw4sHBOQDf@w)OObjp+=WkljcCBiqa1y zl4MOsJmQ0JFk*-1hB%4|P@T+8qzIy_g#q=I;HryE9M}zenSPW&&6#Nev!TJ;{c;+7 zZ-Ix;@TGEG(9+TZGwEE{`Z=a{qR0r&VmU+HLUKhDWJ;vltersRuQf;W5PY?g?pQ@l7C=2lnu@+Ce#k$P(r-nsG}kRpJx<5CNx zA;SNP5W*$!S8yN80h0D^Q{G#1OeV-`J7f22k?iheBAastm`XmQHehs6QKp3N zw%we^4oZksc2}x^jn8%jlSpiOIulUUtA`=K+ncpA+49G& zPUND9;IQ*6s|&W9RR<2djKBb3ai5Fbsx&Sj$IyYLoO2Ky6Iwj+%Fi$UUjHM#c1Bd6 zJL#Dp=FB{hN*G|w3mDHGL|qnH2qbQ1Mt2>5@bF(vX9a3{Re}yfT~l$-rmt(UHfJjF;Uq_3Qc-0?So(rcf}*=;S^l8 zaA=8XN=!_1v4nRiL#GQaL8UNu%LrW#6h8tZ-~~hJs;a5|DkvaD*C~jRk*y_xbFp?N zEkV~ig09nO10x|~-gi5Z$7le8+kpJ`K|3KtCoYUtFvrAAm*uZVus4$P2J~+5%rH_x zKb**rI>YbJ;n5rSdpzy?H9-S+c>OQcru1m2fD!YxD%((j{FM~psewqLdE%y#DqJ62 z(AGqzIb0uX&(wb5&S$#%*&lKEH&F>@z))DCf1=N8MFIbOvY-{wZ}QeqQ_5ObO~z@x zFJ;cLl{|Oee&b})2(`OXH7MB|lgf7Msgp5`0jP#o^Q@-k<-HO3MQGmmj^LG6eh+Mg z&<%iVfdOD`w8orDnC&Z@Su}19?}^7@L355uVfJBF?nNZlgUoxo@r$6j?g$NRY2S}%ml$Aif!TjJ{q3XOX@ zbmIa7z(fpTG8a3rEF`#jN@9(zbKRY;s~W{<8Aybn@HiHLf< z4R}s@tR-l@@rTzt@0iGGal$cqiExQG$-K>%BaxDt+5-fgjf)0e-~|N9qdvZ!^Q!Q@ zFJI$t53UC)NolK^ilgS2`K2oYB=9X{#7*<=^B+!kXOk{pzer7w$omn{JBX$mgidc2 zVzg&%5q>T|OzDq|&cpzuywYs}>0~T{w*Vv45eFA*TPJ4(`S7%d0@(z>DemCR!EH=$ zq|MkgfSV;JzmN$IZEJg#*ih34x-DQG|IB*q38EI5HGK?UTfZMl>+_xJvUCq_7%al- z#Su@GSc`C=(0Kx4V?kCb6mG6 z;)t!7EH&TFGvUl~w7pt=x%|LNc^5mapkwfnO?XzCL+$X6Jl?Kq-h9q&)=vES#yy(F z7!k^pD^5;6SrRPKNcZ$Zdb-=pyMWxc2Cl&DegI}dqiwD!Ze(dD&&xd99twiY=&OQ)tJqV_Xav&Q2JCX1v-acgL zmX8h^kTkzgAQuu3gGn*EGlJDJTpkU1Nko-5_DV$kCR?I%9>Py3$e0R)UXJ=-{k~vx zV6jY2({~nh_0HC|uK}#6nJ8fN?W|s}SdYVSYM7(NS+)UCO2q|{;{~P@uwbSDRZFWI z8)?|arDGz~1}}c>UNYn+UEie(Qm~91*Kq+9`nI0|Zy={69VPgNGe(jGz9?zdapS0T zwm&Qzc@*SL@K5D|E{^U>sWDrTaAV`>{{D3E z@Ijp>boo%R%C!79X4ejTec{oV8y7JBEA4DFvGMLTW>vBeT->0z1^T0itA zT@dmW1{XPGN&b~jfO05BgueNkdXs?bUsDrhWjuo&81Y!5yrn;u;6qP*eVZc0!sMp|LVCh@vrHF9jHZN%9&*+AMj7(#()b976q*_n@mP)YgIy?i}*xIhX z)e)JGty?-!kByK2+;2{%-3j#Bea@4FqK-MVRm#ap$kt6P%VD9(SuGC)l$L$wGP3O` zo!&`r4S|aqP zv5MLH>{AgOwSee;v;V{al+Vt7*{PJ&*p`?r>nL>%0Wv>jI{X*SAe9q9OSZlc3)uV8 zzwz*)paYSjlF~yiE^_}!Bs{ux0V9}vqq7W#y7_^at*y`E(}0MgjdFjGMtMhl za!fGINJr-jkm4(}n{}Mp?esn0@!B`N!o64ePr*QGg=@%VzGx0L>7vrjD9U{pO!;Kz_JS4i)4CFUetFDUECb%dnua_A~ zOys5oW6E}c7cM_qU#20C9f%5lSy|JP?FIb7Q)9lkV6AxmwM5lze*?j-kzCd={-x8+ z(I;H&?Msd~=~+7gq0`ol5wBZCc85`ZaI1ftENiE9g5V!raCvOKQ7_efk^&Xj_wpK* zVi0-LH#=nQi%$3cSU?>3NA+|O(7o}WnwOU@OqDAo_x~+T`N8(TS=0P~d#`&-raUpxH!Q%0Z|XeT6E98-#JF3LIS>3&4&T@l-l~c}%99W)lWB%5_K6DfrRXVgukLDv-QSx;|IeT3h9lO9 zOGPN=ILmqid>51^V3UY$VpCB)Tg!{Tm2|a87+B_<_vUJ36+9_B4EW<|*V1mg54@Gc zTGNcLwKtvw@c929#JvSrRNebFx?w1#RZ7xCrID^dK~OeVE@vjqo8v67ruv1YJ2o*RJXzR&|(rso(f(1X3SYz68P9N-)JkGacxjo;-AypXu#WspfdexN3Oi|n@g?SV^!zqpQ?9SVbS#Wt+ zI~OXvGOSR+@&aDD^FW;oK!v!jg9v#PT!v6Ex2HM>-^JqVCJ%@eF<*T8 zO2qC4XfR+|nL=x$&gjxbCMD7O4X@BKs3(fOO576M^cBQz-cyO-YJ1!vS6g@EIC!=u z`q^mErT3hLRmy`0gnfs71Q*pKY;zow>3IsKq{YwqE3mw?sO^mN@a^EH&Bik0Ik48j z?N|B_K-KGO2f>(t(J5@=PG|(Js(_iFW{5AsB!mS>ZH>JpN$Jmd(D>u^Q8scy}Aa*25vlz8o1r=$x?s|U4iTbhC8^8efe}R5-!eiOEx?j ziQ}7&ctBu!sTK>@#+_*}y3(zCP#%w5h{|Y1K2+e-=J58Eiza+tewX-0UJEZc8`Nir z>=Goj)H;q2Mz1w-r{mi{5mai|yeV53_oS@5-}^DCyyU3)4H8`Z4b7ajt|>ixkn;~x za70XAJ_#kLuWkxh$m|y=O}>_UPRzjFu*D;yEK)_u*n(Ml16BOMCc!5PYuE(`aNLMP z@!An5DZ+93Q2`{&HYIA$oB6|xn9mfEJz_%xY7kkq0)w7OBfPsQJxxml=2-F^`+*HCjZh!_Xz+n{# zulajVz*M0Zw(dTQ-o6Ek#|pJ@zs7${@kv_(ZRN6EYqliA`v-GXt-5vfjgJ{;@oTx^w?KyVE7EYY8a|yT!Y)#C7#+1(WxN1JqRg(xd8v_R0Od#GZv6U z*NAcCz%~dZAKWLeCI*t{DM1|R;l`s`kWl(~?j*Z}oyp6sqq8XC6p?m5P?Fpldrk}G z$owYG{(fBIgBy;nol&8!-5i?Q(0agCt-0ZYIqh zY2u$z{uwXw^S*CwCrCF%O{$@n>0RjDw9}t0N_RW&`YWCKJ0ripi|)l$LHq!32Th@n zL=~X6l*=!xN*z3>Qu04@a=$ zO1UZq{6aPAIQ{;+XVKXM-h!IS=g5k3{Mbi^~H zNc(&zLwLWhW~O69LL2U&G7^V?BdWZ6!Ws2nJ!KuPO99`t`_~P+KidMO#I&VJs$@nV zCAPn=FQM_vgUjlEUXoH@NW9j8XChsn7UE9*myf$r{iV+-4G**It9jcrqUUnT5e06B z^jafp_Tm*Toi-gqAg+c_Q74c@LC8(&XE!yJE71n>eK7lwOS~e2C_BfH+ zL|OOTJ9ozdomptjuN|CkNV*)Yff`bF^DJTN!Wy1ff(I`au3Z!nj^#`Nm|Y&ux# z{s>9Ma7hYGNI>GagyUuUimxRPQuf0)_eMBXG0m6o+kKXIHn{(Bhm&#Jhv{3~-Uy^C z-mGISq8+(J46973DaposAYcedzzs?GH2(M98IiL@=#GuYcAmL}w<4-5{B>o7j~;kH z45;HGN#_wX{1Sa2)M{D(!c0gbProqyezx|30Em&)XyG8Y!Ccf}Xkc;+i=k1M-1W6&A95Z5=WZ4?`5WKvp_YUv8z2?Jak&Of% z8&9nLsPF6<<7;cIhMpM@jXce_Rr)G6Z)SR$-`vK+5^opEyf_o;@K~meDP2`{ZC^IY zqW(VmMKXFuEbryy28#I23_dT!+?#f~L&8=i%tF2m!1-0Ye$W|}aFexBu4Uz5h2Zq^(4U2R`u|#h=QGW1$ z;sk%ZQZ0WX=GIkWwf#*imSwB`1rw;}f}XbH>+gk6Jf3T(J%|99&Tlumd-ysjiBlL= zh-D^DJZM+(g&_<)GkPA$3(Lv889R~LBll^}iCSp`P{yrfL7%KCCv(6?~h`hE2q*D!lkC=(t!9Z1K* z8XXk+o(~suCuI%PV_9ams(trdrfwB)G%V#gEs!hiFLs`ia2#OxVyi0r$Ek6LB8Ubc z$niv7`C3_v2t<;?UB|=>>S<)>Rl4fGzLzW(ku3Sk z{ei!ZQL*|l{!UMWRfM54e-hF#6G-LH_fOV9f7{%}0!Uc@{Gt^ZO!yC%r;Cch_98ND-_0`PXCSJijic%tHL^=8M}`eIHk% z8$EUobZDEWDlpjW=VOz+L$!Y%>M4iKU|L~^6uU^1h?LVfBv>|o+S3zsm;yGG-$Yjc@t3NMB+*PZ0LNvX)vy@gh88BH^Vr?hX~ZSnQxO96Rjp^{P=QWmb{ zlP>r-O71r};eF{j%T(GC9law2r)A@epWU~AevO%`ImIWo=lBAl`h{-3I&ppDx{Qp` zV?t={Sj^<7TIb$zJ438jKl0wTY*c9l^Ge^%k)%?C$AtKIwB0`{IrAlAOjg+}ZC43% z)!H9VXOl}N&IkFQ+lW6*NidD+4o!DLXe9_DDwhZy{y9^54yEQ!FYC)iUjl#BAF(4cO@gf4Z&qLFu9qc}S2&Nf0&{9=5kR{!)@dmEciiz4Ak zQWQ|h?56E<405Me=SN3JEMx+L_)jxk!y4OxB)Z&Z%&#MV(k(<7-`60aTQWSk!lrxD zKb(7MBjU@M5+|%y8}3c*kpIJil2WfU!8xSKO^!&?>1W0eNAH*;XQzM3qLWGft^*XD zO&0`4oX3KPxm$+!XV7FK^2gn>6%b2)bZ1YK>(KVi?Qy>u3)$R8luXo7r7C+PuW3_* zA^T-Xtjs{*2a^j{-v#xdG&MHSv8B4)*XCvWd|&h;!&wvI()VJ~gt8N7R?BBEFCVP( zM1Ad_O0MZycio^{{@C3}P;N2Ty|*6XfCp1j8^5PelYB)c8M$1Y>|1qk4GKKozEp)- z;Qck`Ru(}7iOQ*__<@6 zy5fxrox_r&%9~qT=X4BlKQ&u)J*T>ck!$iTXCdK)rO3EA8l5c-d0gB?Sie!sha@EP zn8%8F?-hk7%hPGb#-N+jSw9bMGEb2N7N4x{Fx*j zHG*_Ms2CV<3=Ivfj|bAaLs*bOJ;B5QWh z-W{SB1?(9hMRmirIiV_zcsXa9+^S8NSaXJ@C%)yw_77}rmPT^jr@K_S-$3L3lw6(s zR^FgMz7o(1>WrWrljXsK2asRz9cJa1IaeDgIe#=a6BV#TKswuN_JE%mG;>M`%<*vi zHgp#>Tds1-I;+#!fQipAQP5|yL*ge7-|v@@{p`~|bIu%sN)q!V`yZ}XpB>q6dEgKM zEXU0kVEHt=F0Zl;N{o72wJQT-Ax+5 zjQ!VB=cQFvXEPhCnQPWlWZaIn3ET<}54rLvAV&)|*bum-gS$S7Io<|=y`(x@c_{pgiQJL;ySMDc zZEUhfxg^ESAutwJ(X%k-!j(#kuv=kPb~egtp_tmiznl zyZ2&DcNTl4L}t!Jt10GCWj919=a9WmR5$~eTEU?q4Pyijxyox|qMg0sPL<9PWFB;N z@d*hVpfD;cz;dNeza@e+_$zfYAT#7|Xb|f0E6-RZ&#)gBvrHBU&1G>>j$i)cW~C-r zvD@N=r99N6oA8`ez`Lm*&ksV^USsywBI1W^l&=j^JPZj53mh~6;%HYu^YX6L(X@I~ zP?ZpkPq6pbd;IvacAgP!HM4#qL9rPi4#{bqJS2v&1j1* zR%vsRF#Z!jZ1@v~^ZR%LgdyF+-6Kk1o187EFop*j7At84s~>};q2oYd;Kx?8qFNJB z%z!~sMh`-f_{Z!}^-KObzOm4I&)05ulyX0G0a^-CtWsux0RhzOE`fQ{Drb9PUPX7W z<8OpQDM!0D){m=-MC~hBw+-oi=uTIw2|xT!Ry*pB7Pu8BOu}N|XsD{yx;}6#w0W3$`5-SwT530W`FH;>x_O~u+`wXW@>e2jh z^IjLe7}$`!fnSM{1u6lNk&%9?+`cD@N1w1m1Li1F+P`}zk}J?f*Gs?y^tRA`KLFXr z6zIloSSdzxeZ8Xj_YGbRxC-pRO|{U61#x%oW#hSo&Mo!jT;`B{(z>?#6n{D(A9UMl zX=_vT*56_Hr7%Tx=iwOV)-*qr>Xozp|BjN&d5-=65nWTA`kx5fQ%LhYw`OnPuY=Al z{)2KMVk$w*C%A_YHJ=|8R><^)Nse9cEEgbtfa*g8Ha*(B2}~B>H5HXK&~y*5PGPBB zwHr5_%aQi>0-y-KzFteuKH@Myjs5PnGjDi7njsuycswU?Dfj}`LwNq=?8?G+PzhXA zw0i|_gVsmlY|sSF&1_$SQdeI8jw)&wQIjbB_} zXU_)hk&8bs+Kp9|4jYN1rkv|#a4yFDFCF0& zf43093gp=bF1h+BB8|6X%Sd=GUp@|$K3rhx`%|cpMxchGdG~HWYpc4QzWz(xFtvz- zio~v?P~GNUp5mQ5ulgM{5UQX~ieoYMDKIbw_gO;`jP4QORY(@597Qi=Y8umzBrkhK z+$5HlPWBnN>qgR0ANsX%HfG5U*TwCFiqdx|ts`aJA9c!r zI8$RMaYjUh(Ql>Up1bpm`&m)ZyZ2C8NG&z$$@qBJttB`717sif{OFE5yWh9sVzch| zH}ZA)^YwDBU%#$d*~4`F_!-GnU=9}x0FNy4_3No3;mUd;gTuYu+K|co&K)q4y${zh zhpDK_O3pK?;bf3*jyCuY+`0)l9gXkn)AoFDC+r zwzf+8`s}CAoMB{UJ`ZSmEXy9Vw0n)=L2pq{w~)bo zad9bUOl}1iqOu*n)PaFjmg5~@`Jk0Xm!G-3Az{$2=uoN5W5ZNh#?IdU8jw_2ENHd3 z%*?Ml-g9IABckg^rHLsoG@jYrxgC-4iZ+!&iuk@I#l)&@zLDmOe*yvT^i=RnI3B#| z(o?g+R@LO+*A@@CFChxBSA*7&SqD31_<8y&;}EO;xHb#oSfI}C?$fc>22Uh3buT!k z#Km2Ze5xGyQMP2W93z|h#`q^(K%6P-A?t&$ z);;T!p+YxJ@t}YfJ9445si{VKF43%?d=_*Fe`?%#io*A!JbH4eTXC^y4o#HRv;={H z1QOP7i~qfZP~Wf@{H~X$@_?1kPS`g7>|?IoxwO`fLVBN4u=CK>A(XHU>K-)n8{+;1 z82igW60HFMLDLmz^QGE1%J7^ta`lrvVjgXZce_s?A z<%I56t5-j}y8{3}4$L+_dO^JA8H>?;(W|}1>^#gH()R$u*x3>yw9#0bT$Q>_d&maq zE8T2^1NWJiytTe_#RtF~a93Qw^nmb1K@lb$V{ds#zxG2$M!j`85Gwkp;NCS#x$z4M zfvteOAfWg4`mqNzjVh@pEeZ$Mo^t`)hAzY^>cBpCcl-a`(1GU5V5`?tRbyC_>xJXUPT5f><`Odrm|+ed?nz52Y7@oFb40{Qp%m3o#2p=8lsbi zguQp|n$T6FV^@JuwO!MZsDe^w8zY>4M2$~tsHy$BKK;?=1`Q7nsXm2@6R5H+M5c=! z&6dDo^j*(S?PDIN^t+Tpr^j5K*t-R}jE0<4X+8CL1F#UBGn9 zx2_HBlR~z(nV*mVW2e|q`en{9Jg2=GeYb~VLU&>>I6Pd%)|M}vQ$9^E+(hx$=lm!e zmbz=9%r}4{3Xy}`-P6O!&K?RbcmnMF=ydr4d*QU(V3fvi!X~;k5>gz53X7ghzLkW( z`voz5G8RVs6#n=PcLFhBeid}?Pfks3EHn-~ub%6-zDq|$qVOh|BvN7XDM#S_gF{0L zZL#F+zpe-$$E+4x`4Jy~8-S02$1?C;1tpvD?CU?3)H=uPu05zf@+if<^!!ZfuX}w! zf21}AV4a@6KA7~$J#X1E7?`ZQ6hg72hWpKrwuAd=;EPKALJVOkFOD=Q6S z8(4nLX+HLLpp(}9`=?HwA^}O*1&8t#38-^>Rrc3Kj8iKPb11zIcb@OiuPh1u#HCae zlOJzapj2c{OScyi1&|8y>I-X^5wRV9=gyw}kpeKrjczp|>prUAiiR(KVgEha?yXA};`b$?}0&N`L&(EkPIBCEgujfSuOFXMHn zQeV8>La}FQ)SSTYxaJfD6Q1NP?nvPc`*AY7AYC=^%AY%p0bI~E;ll?Diif|GVh<9S zaJRjwX_|Ab_~RWxir+|~JQsyYon!b3ZkS1n-?>Et=HKCv7ig*tHm=xi&ZZFIK7O3G zF!|Z<@4t^_ShWsB&(7R@T)fhF7V?HX%dGpPh#ZfqwLWqFWp zggM>{jd?mA$DNu*Z*-?bQgw0%Ae=|LxV`Y~xo`QrmD)5g5&#&TcA0V9a>)SC3rZBV zqgroikDT3JTH32y*_ylYx?P%`l8*B`ZGY>tjZdL4J-W)JU!l;iztBBH#_#v0L}9zb z6$aMJ^Icr@PUD^L{FsCB$rCy}hNfbZBahn)^sU7ETefc9YV(+@yd`Yp=3M>WtDm@7 ze&Mj0#+7xauR9vIi{9Tc)UU1?vFUv^T1fh0(`tmK z@kio*{{7&{d|WucL5b!~VtCeO79no|`I)!Gc=kRyK5Vfb;$g$ZM6`6N&OEFkyk_hr(~wOSTKwGCmWMXrT-E zIp+7c6d#{L>;~Xk?w1NCyQ%d%yPtymWM*coCa|*~c zy0OuOjPtR!Z-@q!{pA8=WnK9C?b|7Sei|gECq)Y0#p#@(I_}DN1#va zIgl3GUPE((3=71HRP@DeLre4XiooDDL~uvEQwsWSTEKJa)Rkl)U_UY4^jd1_<>h?e z!zXz#;hdI-vdtQlT>}GDB52o|b5?fwsf*6_N6=NYxF|~!;df}36c~J%qBV{j3Vz_0 zxx%7p7zS3eC+5c|CWrLt89r?`pG~CmPzp9$0pC_+@0v%LRT;PJryO-`+_j&VoO+yv z!}ESFJI;HF?^Pn063i9`#vs$ry@bA(hfKo0Ga_iB@H@NU|8~N1;YnEc_Birov5EF# zIAsxKXWlq)%)-Gu%V0HMy>^WpWWYQM)W6_%BeEOeB$26~J~cZe$p%c=+1V*8E0f($ zl9}oD2JC$HF^?(Qk3g&W&Ye3zb>Iqs9{^K4GCuxAObj!aa(7(v?Vip~AkTN~Yf({J zRh3b)goMN-m>yO+4`Ijzka_Qd>kSPLZ-4~2oTeebkWST(MA!33e0;oJ*y`r7(hd2E z?PurqCpt9J(YxNA(!9*+s{~oos)J4kUqfGc@T)T)hsZy?D8{oms-RYO<`W-la)WSr zw32nlI&2reRiy}Tsh_XdKlZW=u7<)at<3GP02SKNbF4cb>F`_0D)1Kh`NZRk{m9^c z_|H6K^$pD_IdqKNQ2EZA`@L34xniP0+lOTS|@C5Z8r*2a5Nyjm ztB`8%#@iF{9m9`BCYAL5|JY~nkcVZ+!7t|B0Mr1uc`z7!T|+}!Ru+|xf%CJ(TY7-p z|DNMbXDm-<=3$shx)?aP0L;a^j12O&wl_Kk{)icCy=2^3M!0Q1Ehic@r{qA=0hKRiI#l%)|WG6@#$`6h<@e?14$ zhoJj$r}shTc?CpT;IgwFDG^|MLWUhS0{TVjM=jPff{Y)fa7cS@o+a+?iv7t@kJ-1D z>p(ib`jIGGod&?jfCBG}KuY?_MsB3Cwe`o*h`d1|0W4_aYo0f5+GNV6Nq#;|L-y~x zav#M5s4Vl;G&j)651i64-r_xbcECJ^j#K6l%W^RHjDpRQq5beZtPvbGJ3w&Lxy4%b zDePM)2DU-r^w-Z4XN+DPC3;8(HAZk3FJbyer}iG9eke#&C^kRbJdA>m^mAU)JH5W~ zN@WD!Dp4!c*}KNnd7fPTKh6`5^X*0d{CTz`Gc&Vgl<@Vc5K3?NhT7L{Z<=Z&%nJWP z1WU$XhLL`4nF`{_?zR7f3g9Q-K@`yJmre}@c>rjJ5<%j9mPbnOyl9e@H9xm?k=E810lGE) zit_LaI$JQ9Nq|vTw0Y9AmgmZUeRj}SBE$-W^Dl(Na#>nfq@|^iPS*eM9d#6aOQVu5 zG9UP9`vgiu$dn>=VU+UUx1?u6ec>~?dGm$ED8cImTx)&dTI=uVj^Qe{F^@&$&lxmS z8=U_;Mc@A^SnB`zg-;u-kpft8BLbX*0wm0)Uu&G42Z8wb7Dko+2BcZU%b~>UrYKEV z;={9UyOeCfsJz(bGf|nCZ~J%>zb>ojL}m+fw>B1*+DD?E{M5us_d-4BNxSP1eDteb zWVZ&=cs)&pWFg6F5fP6(ppL$c4ad3&Q^=@r(880l0dJLe#eF8J7^RZ0E&^5*ubiaUwQ17YG@!Y9wCkeNiV^sMfa40BtExHJ>Qhayc zjus_{4;mtYrv~ZVLMBQF1GG0Y)PyRv@OF`BeJn(;l-ljBjy|EissoVBp_R-A6anX0 zuEGO$e;zoD0`J%vbx!TQy!Y<7Ba89NbRENtvNkpXh6NgL5UPqK^oLIIMQ}O*BScQk z{6qE<90hDZwZjoxUXsu~=(W*6pgc9N^evG=KNNOGXdk=P;oNjCwj?noIvRqKJ!jci z!&IyR31*1PuGZ!h}PI&*UT;2%jZ4}2LhQxg9H=QV7o0OOAksmF=Z*6VS7Fu@16#U zzzrQ}XgSm$uE91o6qN$)<1;6A)>ig9hEZ2;BCH%#EPX3&48adiWbiQp`ZUc`q?zSB z65`^6_CAw!M*jeKkgGu#cp=N-FMeWgiltV zf|P&;tkMr8iQfSfPI^IFKIiTR<BMLtznFAr8qa|y1c_j3_39WCdUoa`&JI-)C zJqJC!#yviY<~b-CE_#>qfntTuKZYmmgGw?B(jCYi@`ZFvT4+i^052ecfJj?7Xg21M zalJlv04g=wOj%4mfU<98W8)%yAIRnT7Zpi#a!Vo0%$eek9W%In=!F9tulOK6Ep54( zC-~({G86BrYpKf)=e}46Oiw@h+1p!+qk+&!f;{liiHpECyjzz1kQn3voy*Ah!6Bi( zx~P?pMEOv1LCKsF%+gDJH*UL+2ZfREuEnlZvm_>`bRsECjYErjo0^8|Tkd`Em?2m% z>webRAc$#?BKuylT@Q|EtnN9ae=6hKn<8aKp%4<`{&?1&Y-umWqYNK_vRRIR7q$?z z<)NLYw>q&RT@r*X_HAjx7=i$GAOnBmSA!*rQ}rD!t*86@9_oow zi~v)AQ~dbkQ!}72Eag1;RBp6#xQ{$5Kflwt$DzP}SfUl^)L2Us15;$yKG>EkG2C(< znhyM*PT`Ma*-w?I+p`xAz69!&v5mmGX>R8kRSxA_w4FSX@7q76fzIcUa^ks^ojv0T zxw!K(j`#NV4vHTGOuakz?gdVoH4<}($)3?z&>MT_F{XWgs{`)n&O!_T`aANJR~#d! z&`BU{k@K9U0>XB=bb%m{)lY^auq7jfDk1lvBG4vYD^NUgnp58Er-LWhMSi)@gS)I; zFYW@w;3*dCQwwCCmoduSL=PYI0^RFnzNdUHJWS(TIkwsS=ASBH9)(mYc=|0CX6Dm) z*CNG{0*Qn+@VcYdT#Ji}PAe#IW$WZg@Ecbd9IGNQpWqP}X97hC5Ny9<_b^Q$9%hr8 zNR0NpW6+Ea=)qCO2j=dM3qis5YBz5#pNuXZaS4qEc>tJ1fTsg}%Qonj z)@KHY>&iF=LjcY;nD;z;;`6mB4Iga@Qt)bsm;nJh2Os5{jVHc{_Pkxm9~)~Cn`_~s z&^*Q>BRnVVyD?Ncl_(bRh^>vCCj}sU4%eAp!@oF$XEn6vY%sq{J0)JH~Rjn^1LK zqDaZ!*c*?EN*K+r4FmaK&pN^V?x8#i-1gD}CDxlVYTuHF>nL-WMq~M7NK;dj zNAkMw4t!_%@v-qT#@opG{XJ%m=uF?HHEN*h7&T?+aRrDapE!Q}cs{?Mkb?j=xfz&; z%HFjVf=MHf`lG)3HeGxFo)8HR*Nn>lT4^D(|ayb9^675cDkJLmogVAbF} zE((6bGA##>kc04Wx)V%H2Q`!m>tOA9&*eCNSA0HIf~`(ARz zY{IG8>~tpH_$y1Y)!TaxDEQkvMNBz0@tbQmN}9<+D89rXNB{soB8?wNJv(1<;(Sj7!^m+A$;_u|U3*9yxMfcv4Sr8 z6u)z`oefx#pDNiUz)gPxxFC#7OwZzbBw^$Lvaxb-*u`8PH-z378?Tq2Q_Dcfl@5(t zFRpC(JVV%Hfg3w3S>e(U_PF$64IT$#3YrBrHV1m$J4WGA-FFXk$qxaroz6JZ7y*L- zmo4e&EuyE(HFj!}N`LzGhR1%vu+wyA3Pbqy=xC0sqgab=YRS|>rKrp)I43nEf4wh*i_Qdd$UeLG_X@q}9ZAS>q(Wai9JT`J0#O?YCW7`+=VNm0^Kf)I~ zVOkH)1G)2H#b<9aS52WYh8r24=scyFkA&a6sV0AugWV;nM!V|eDJ6qdVi7DTmm6wN za;B4!(Q_W$mJuskn2A{ZuAi_seh6Rr{?QZH>4QBxG#sxL zp|3yubg0bCV`WE&Hf8NMD1*v8@XvMd23j@1iPwPIrO7uv5-2GtNjRZx9^k!zeoXT` z_lYAQMSu`tx&xTx*K_Rb?5D!#jyPf=6Nv<3iF>WTyW7;A!x&4=GEGF{Yia^1ML+=k zvp?aEv7`3rlf6~P8BfL&BVv0N7X<}LpvXuD`p}G;88L90$FpaYWiu>-nDVt)SU!Lm zvX8>^xag~yo65_TRt0SPKEHy-a{`d#!?Ab)WZ>7`;)-(G76tKVpN-eHz&5)Hhp?81 zdx}G6`Ku@|C}7i9Qcy75>Dv4`xbb*SoA+|e4ajD(T<@s({hj%K`s=rET{Se6H}b~a zk8uA8a%rMxZ=`oMPgTzE?&|Uf78@#pvI+~21B@3$KCVOkrUg<0)bz#T&YZCKtNY}p z(hvZ5KXG-uMot76EHv|3nxLz=U%h(ePY(ypkw%XUq93q++ku>B-dtXv2pT4S0)+W9 zKkDYS4(u;#XmnH$9f}HzW*+Y!@#0`&n%Q=*<)(v(6qI0x>#JN}HG(7DOWWDc23}bW z*cRBFnep0x1&A!5+Kk(lbyVg@j$_HG!TQU~Fbl$PuAGPyoQ}70Va)0oEdj<6K=` zQws{ZmMrrtHmHNn;P>AQ#?V}2A$?ZI16fX zyXy(NeeN4bXM178cOBp?p0T6LB#VgL2*S!@&i;Mr&L>5;@of4J4d`h&GF}se^qnW< zc$6~NjNPjU2L}hY@rCWB9OArckun#KgMXa*q|a#H>v{3~`IMB`_63!Q1Mc#jkAb2j zkiH~=dkjhNP2q~pNWm*&E_e9Qg80wrcU1mST;Wg;w?J=?%Ik-lv|ObHvJ6mXU!O(n zAkdw@N~GbLncZ(e4-8z$1ELJkv4^72^B8=>?AUV8`gTvIv7qGi>!@QJO}yMKOB{t} zW2vpFrDwoSnnE~}G%N7?)ptYHeWMQZZ=?qZyON&ZOOsI))q2KZCGSZ*P=tPA zEbbWO=Zc#vnSN9>>SgOIZgcWBsQqM(JF}RFwEz&^T%&1bb_P^VD(Jp{-9{6Qg1o$v!_Vwj zkqi+pUbwu^v>b5rgh2&)lKxNUF;99%63)$3NFqWrNZ!UqG>$VWJP6$`KqeGV6eM0jYFmk2iF`$#~o3ZALdR7Ue{P| zly3txG>E#N!w=^xHzK&w|P&i-(FLPCFwDfVTjbADam7M3)$#r1&M)F#r`H4Ny zU_<{D-M?f^5f!$QN1U)vKhp6Q%qC1LYm49{_SCIO%Pxh0ymw zl9p)g0VCMTDnB(Xjbm`otiW_;ZH1KV+eABhX#2y&hf+zkj12SOP&L0HtIFI zUQj~C#KVh!)i;~(IIA7X<*;gckJYc##^)ltUUKr%JRLE`p2rw&sM07FZ6iwx?BsTF z`?L~{V|I|8p?>=f5i{j4_T>Se5I@ST%YKfQSO3P{DLdBUe8HM>IcgwBeiu)sSA}5_ z(3=*eQonVp9%Rc)_t-et2~a+GMA~d^{DWgx{L0;LReoEzReMh(_swVEpQjoDKhpu} zh!v{Zu9)a>g!7S9uW#$VY%QQ)o|>AvU+KTe*ELM|nXm&bGJ@k^I8srFVv;z?usjnY zF(xP%%}M|6Bp+?js}pZV0n?uPiM}a`SlY+hA}Nti+=$14cQ8w`xyH~<@MSQ_we_VY z@L+tD4~e8>2-M+~q+I7CJ8EK2f^M1txX^UCcPu~MK$!Ve91$9M|V z$Fb;Prl#yC&nGSxp;EG$yda}@=qorjQ6Vt^!H5P|@$~WGC%~yZ+Y${kIG0!PDF7i=J zqsHclP=L+4dHm+rhxNxV^B5AO)ejuAVytocDXd37(Ma93JT%ZWuO5H@!%yt$Z)Z#& zj;gBSx^?T;sK5vG{L0!wYw4W6dWBE110I-$%q|}9Y-6_*%HP~ctOxhKwqL296|wu~ zqM(HZY)P=Bd$=!bI>ZYaO0{Y)2V8=gem}?Y(IH6N@Zn!qkJi^M;nCULPQ0tJUVc&_ zzkG(y9MxajY5Q!fCSnY6^}5M^8?DMknM)i>lQdR~!sE)m2_Fd9-}S%#MvdzlnX2R_ zUX*aJ!y~8suMN&zi$H>u6htE1OH;h>d3(}Hg)7SyK#SJzYQwg@m)1WWXufQ*wVi(p z4@da_l_UK_*!}N%*ZOG31~KkUy)A<9b#h0_WA#8!=`My4>8KE*bib zsry#4IXfQ#xp5St^2iS6_*Fj;&B+K113N@_4iHk-9#VW}2LahbT?Or@f4KnP^oWtR zTj{V09Os4kb#W>ZqCEuXO`3u8=80D9Lk-Jir>6`^@cRjM_2_U@7bDGDBkam6}b-bv#f@$Ls~O0T*GIDVq&TdNtbV*N>UB^lkvcWlVIHBiZa zp3m+l6HCk1N7eAjPg_D_sRh#WW1vd<+p7cd{nW$gl9sPPw|c|z^pQ&y_%cdZzC+p` zC*Y{j&y1e|(}0lxq7BC&(DAzD61KFm_iXwzKU74ct6%hlO_=1e)7cXfJ9BX0fI`OH z$AO27zO4Ap2-)p^aEK-dw#A9S`~(=fWvD>o6rY!Q_4e*%nCkY^{uF{Rv~=DJ?N5a9 z=oG*J-#eZTNLd*!27xUbpp#^MxDq*rKz7Q)J`|_0Nu}{t;C+I?00$}$^`XucIyqv( z-k+eE2VY1C9?t|D!i(&R*CFnl)@2i~!?z@-pgg#0MJb-uj~uFGNB%R9?;V|SJN@jy z(D8?H$?MSt0Cn7miVC?~0X#W4YVDk8tghufeOh0TScWcyQE_WVNJmptMrs4H<* zsqPQvGvT_8(|dW;AjfA5Q^_+Ja{z_Hyr~w?Wox|j<5^Y(%={S$(101iDFe@dp062D zM|5GB24~iq_YZMPI`KSz6tQXhHZ`||)vdlhUt9aMOUGWxrHj4e_EVwwu_gLC?{U&Q zgw@ny}`La1mK`!=ZqS7vmR)yihpU-6*YC)o*bN@LN(QwmxBiUIdOE zsRMuuNO4qrD<8Pcjh3UXfq>R8w;|q&ibV11RXGsb#`e5?NppgkD_{0Q9^y(WHjM`I zv1x5fmS@*5vMU%STF8VHG`t@iT5&HP&>}ymzYPFd%&f$trR2!{l!E96?TNZ8nPxAET;OOkNm>4`5JW+Pe0h|L>KJ6fHGwNM& z&68tB6hu&H6*qf%yk)a;xjE&FaFgY?XRy0vvhDt9XSVr-Uvi0Smu)t)4HU1bLW-WA zrK1#+;l(AxNy*9n-}cN+9^K~6E!~m2bg6k}2OL8S<3^Nlf~etwkdS-)i=AebzVGCv z3J2GeH0&$kh&vQr(5>sil+a6dNjeZaY)Sw`tsWHo?_Z`&GtfJD6Lue?)WQ8@DdNwR zofI)8Gfht?fn-rQ?e_CYaPt?#zGpCdl+f4WqRH`hN)Cl4{@b8iz12G5;=K>!`fq3k zKt$@LMbQdaV*s7LuC87OxWdcr{*rUwnZnxIKsychdG$CRq00$vMD*_-^dS}rY~d$& zQ^16=DPKNr(xPbST+aju{oZ?~lXW3B<;}tNptAoIY?v&3`_3k)gW$RW>xTrQoHTuy z^I6%@StP3P%e1BRNSCJN^KV~{&DGa6w}2C5lZuYh-uXr$45Eimgt7zohplfx^Ip#7 zh}2o9)0Zd-Fqnox5ZE`5IG?Nuaha>MO(^rrMPCxS*K#sMQCR>wYL0riomJ3%FsJd& zcA4rZH9e2KJPa}^5c|=hGfP(s!k1P;?UnMC4mk2ti|iZ}2~^&Iwro=vzq5fcu35#H z2kUR+XEWi>0`;Kxa5W|PiUa(8t!T5&>5IUOLYrU4^pNg`jF#<*7Xjt)v`7~|BA+T+ zd3`DzgYg2AlU_8{q%+`rEhjxmpM57{V~KUC8I&g33|*&nRv=^Iz3t&<&=scomfZCX zNlz`xbIW1@Frq0SAJDY8DWPNRD{cX*a?aP8eD>9VH6}{m=XwVOBDmvU zL`5L$!0xOEEA8b%53qRvR95@u{N9dXVP@|e$tODoQbXEKlS6?RibqBYT!E@IZbucr zWdU+U55318?zrodqLx6tuf^ZqA+z1qBIOn`x&)0K2#(iY9eA&+Ec3s)vc{qo$#i?AO%%QEq)3f0>v8zoY zZ~EO00aa&Ga{m+~4b{oZHBC_>;cwm?_o6s7L;}Z&kYFGnwoWzv5YZVbL`KR!U)+OSZJM@!Xbc2fio785xr~Ips)SSvIsE^s*`)nz?HM!UG+v?)| z`vA*3K`u-H#M9Y#$OxTTiFrj~b>TvZc6QOm))VNI7tK+zv)-9-(>SZ2kZzw888X#T z-dCs?vKVE34(J_2l#<^b96?SkawR~*f%O|Xroy-D z#&u<9z)ZD6(Z6L^wE%7SPyU;xGbD@l-AHfa#TGH?c`;ow9#-Am7y9x5XZ+Dn zAKa`~gyS{L?%lK@Wcnw0k-OY|)Zsc*(4z&#(j3#+*M}1PSHE8zTy?tXRhb%ZCbF-L zxJX&G=t~+LeH%sTOvMu7*>uN?3upRJDT&dMhc-@6oiUh{%wf)2Q7ySQzTb9J$>lPHwdu5F9-x2wFT##L%bHu;p7xy_@HX zhr_(L{9#^)WSu#Bf)_J!pIrOlZI}#ywH+X=+vpY-vbCMpGz4xE+~s;q(b{JZN{~cAK4eZ@WXPdLs31JMMdaS zwH-E+QmGyHZsg42BJdK#JT_ITM9$@_+E}iNzNL`1e>E+MQMCNwFq);H=<7wg)XAq5z-T`I8 zak_&EQEIPF81Ou;giJ*pwzai46d27#iAU6q|#<7Sz8SbrcA`@1RIIb>>L z;?ANmnopw^6^VZoPg1ocIri~Y|Kk~)p7*r1axYtE0Yju! zti&ILku|C!grSNJH}Kh}dp!B8>E@W>?OI-L)JMrby=mV}#TecOD_tDh&G&g zvAMlmrifp$w-4KgKzSi;04-}Kt6ETFfCyh4?PwsJDDhO@XyYu`Dc_NG5fV_OceDZ1n; z9oIfQ{UTCo@6&^$Ku_=>MxJ(XzIV~tL*@Z`@2+ZVj3DNW9`o~+ey8lquO7eR!U@k- z*fcPIfe&B~04XjeWd5Q!*+fou3tOhlPJcP#+N1Fs#cgF3d*p~ih&!IrOZ`D;qC;yR*y~!l_fIzEYGJp;i5+-NXn@TiVaW-IB(8_VDSW={WOE`}J*lJ({BdkX2}u zC=B~Yo-`3@@t!EDC4V9Q&A${yM$oDRywi+v8L@mN-L6V$beq4t8*&J`-fzATcTiy{ ze~-#vt#17A%bz;&5iN9!%eh$>9q!y!ch{EvXk*>h*8P0*6*EAM9u2qcQ-+0c)V2ff&7V2(SGd*D+sSb)|SNSc8yL=du(J$RN%2c2V||&0i}hJV*P@H4_oL1FF7)tigxY?h?v?@Hy5caN zHK8B_TgGT8v^`{7mA{-m8j9=4({*s;y$!aHsslsTP% zo&Dt&FuFzK)mm9x)5YLK(WbDmXxj(7ia1s36P!7XupvH6%Bo^!*L`a~LPSGeQP!+d zTciqYoO}+J=H7bmQ!Kj5lct3Y?Ws2JwB3(%HRCv_tadlH=3d5ABntB2D%e|Y{VG^q zH!NRR?KLJ0slBi=fw*yYcJ`hZsm@02q?SAD0hDF7SG+Abe#etpmiRnm6T|%jkv?2No;nDGnVux-RWCj9$fl#u? z;-O6YXWAT#u84&Bvpp4jvts|(nXOh!$W3Ji9|BAtko1xu>wOguTeuFz>uBPS2*H7u zHSz#U|A~LROW2DbP(-#q?h6a*Js2faU6`S}XDnLDHfKrVUPb#QmuG-eXL`4a;Kg8% zIeT)k?NiUUwVQqkPZsDQZP@2L!laBJD%q3JYo>Gv_e;ddiI#FMnw1O=jj%pmXNWvP zXDq?b9BrA&aNA{v;3c?s0z^?t=HB_jQfcAv%x;+W<@;w9o*n#)>3zgrA$F6U z5qiJ#Tz3J=;=P44=E+0G7NPAw>eW(XYiCC;WPxMwD*<#>^oA+i{Jg~J(`_xdp|z#A zV30!*Qlwy)bf`~oR~fV~0pdGjI~~3PtK%NE#>)H~?ZspWSTLV@d6Md~IAo%2HREL_Xj~^OlGrFOQF`lb>y<;ick`bR2!?%nj9;ds8-fZCO zvX(2Jd!UKU!@>EAcl)cYRXibIV%hjI7JIMQWG!PT+hvX`q-sdp1X2lOa_}6}TKa6> z%rXl_7+U)~IsU>yUQVZaQT&GhG5nvN#{Uy$|Njj_J(%O%r+=p}H$@z`HX;F%60YYa z3ECJz<&AO2t7iYAyZuIds>~7@%Xc^O!VCc3BbgdgLKtOfW*-PX%iFrb2`zwnVJc)0 zL(>1DZy6TSc&V=LJA%-BWcq+l&~Z-AR+#+L>*Ip=V~m{ zJ-GcvX1UIDbt?9XQDA?r75fzlEM2*P&W9IdB8r9vKk(k;Nh5(<{FmR17c(PS6%V3k zRhk~I>?8#nQ6d0==U3htH*f&%H_(o_xVgr2%XhkCd%xKP%YcFo6+*7&)R63#TK*(| zT_lo9ZU{vDkfXo-B#8C)_3)gM{O$vDHewgd)LwiNy`V<@klIgl(>M{8WK@;#{7_`> zp_d`uQ6I10>>HfP z(;nxjX=!aB2@0qfY|VidvW&bu2;x{l^5)=px2ikyW?z(uaowNbCr_TOLAwd@2ZI>5 zKB(CYq6GjAuv3_y?@_Kq$B!)~RyKmu`1PNQZxZn1WFzi?X=ZV0D+%Ro7CE^l|MfM= zMs<7Sq~&Bbn?WsUy(7Ih?OL+iXw5@2_n+P|YMs#Z7|UPc^}_QYW{Y|5Q_QJ;0OJ;H zNkD}uZ;yzAMgXE}W5XsIebFtpe9$b&QHG9zAlLE=-q_)EtZwVwZ zxBo=~BIHP2hUv+FRj@H8mpgfm+72*>>^&8PO-1X&KSz~nYgoUwAvwl54^Qol7vU(8j9e`*ZEXgGUs$Sr z#^i$W{*|U^xA%ySG=ai#J0GfNiX=>kVv8OLNfBm|kwk#MA-f zpiYLDVh9+hpSMpbxlb}8Q2qIpLN(pej%<$T^@IbXCU}YNMrS(%D)Ql;wsHe z%Dp8!!j7CMqit&Bet}GCm>`ZjPvlWMZ(f!N^CHW` z>%N9@VQLrJH7^OpK2tm46pmK;zCh3ZBI82W4yV%nd#{T#a{K4=d0B!YDbL6fl(;ux zVQ^ZtdSAFOYgKvwK&?%3+hBhHb;VIlba7DHty=SVO$P^iuX8En!YQdIPyh*&c5;^n z`6Sn_5RbRnW_3ZGw+-L^q+_73XNeK{&6N_I(iX7nx@W~Z%4^2F1w{eA3B ztGt55YHKoW^1=Le#DM!qpsI=JCWW$avxLw+dB=IfRAgjlDvnlQC3<)=J6ms)g}Vcb zS3*R@#lOEk2G}&%Q%@r!;fmiC?~-=y1y>q*|AZ@ViQ~6Nr_P}9-i$}2GzM`IGY~$o z2cAK1UEhy&-3T&B)v1n9%pva(3q;aZE5`aD^u|8FPQasABrM9`-cc0JvvWU^Z(7me zd!zbDu+6EIFgH^H&GaQ_!l$m;TLlj~=^2_56V6cB?z7JkUS}wGEIk6N(i9!6rm(2! zz@jglzO-O6Mif^<7}a?SafHg-d_s2FpZbK1t6#q-a#-}9gr<=2VfHWTetsv$tgV0d z559<)wEOg)p-nvh8I}7WaP8hyD(dDPIAT0%P28tM!ZRp;4Z`M5T)(xG+t8Pje=IHA zMZ^0h!`H8luI+;_uB~w8Gu#E*BL&qm^prJv{)9=`e)&?nyzs+iWj5VB?7{T@JEzdU zG8FqjRN>-7&#AQMSFdggyaLQGr?lORS~|a*MfYr#c>!XvGxf7F;^pO+LG}FtS=lbm z3q5E=NW4(Kx?=5@B3W~6h${mwlEk#tzId$jt={)V*0jwqDzO^r=V z=nzhnVbzc0lMhsmAOCpss^#Er_B)rY4|rakSES5=9l8(t4cQlWy1YqU+xRXbai@=j zlgG_>lbnMwb9xloib`3N35Jkq|NAR`8-zS#osHjf5p}k{l^G+9_Z0FdQI$X&*%(su zjaXMgRGkW~&-Y26NoIU>^4Z+ZT(XVDtddI0m`eYv`5>e02JEY&)NdMf(HnSiO*M}$ zjIc%09mDf|SArA2kAHl}Zn@~_=d#=*FZ1!I*>guEZYO%5_pReP_J#nUpu90*y)Jf1eAmX3v{oTvnfU_AKJ4Qk&K6L zFka2awXF-R)u(0wfhVzQsip~oPyc!@c9@w`9& zE@H??QjJh~RAKu9zOOdca3%X(r{q^hgfRF{S40wDmGUF`07O`2Owy_Os1!R0kW%rQPhS7{<_DZw9Z=Dmr_acVmMm+v}jm=2)mmUygXozF&rY5 z3G&s3E@78OSSb9ZIre`b+6c-1p+d|i%BREK19J%9|Cr#Hexzl{g;qzjD<#C2==mp| zQ$wl@H$#_ItlT6e(i8&scS|#HPH0{y1WlU#l{#GgOViUlm{r2nc{knQV3NSJ&jpOh;-S zbk&@DbJR>$HBRMqmInZp9=f6BF-A?Vdg_@O%2rzR)Q?Wm8d(IGrd%0Cw0pQTc@ zca@v`>hYmOZ)DlD$&Xe#2fh5z@FeefSYd-cGQGz}!jChdJ2#u}q<^!=j;%imx)VSi z`L>xmX}hCu6r_$LK&>Dh#{HmP_2Ts0DB%3c76fy?4heEuYb;SyaKFX%-OSeI{ij2Cq)E-#WqIwf z0vsHypXr}k-8~;s!b}p*J!aQ?U4$)9^1>F*Tc)qU-MIZ-lzvFIAFPS-Grq{sT zfa>A$RP>4s`B=JgPQr3Y415{y7l)F%!cQm+N@AfKHwvPdo8B@fEVnCCQfnn33Rx!z zVlZ3UA~i;lYKnG@8Aj3>_DzXPZ)tgG `}r|*x`p*<8?^1<}lTgn@$5{YBxh%x zqMDA`WsVm!RCTVS2#vKb>|7-8TL#i0j@$@ zC(C9gW8KCRNOf@6Wl@CtQ!YX!8Qv{Tj?!zLU_CiZGJaqOp!Ef?go;kuUR4fv;-&`0sE-kW#$w|%6wyexm{ zqRBZA0hdk97k6)1TBNQtQGH^oP$oK*fG9y)x- z&$i%5=;6u+sf)yeJ-W|mkQVdeCl%k;RAK~scrogiGsnJ_Z>&uQN6As3j=X#R+;NXL zQS~-ff!$6TX2>>f&G?K-Eo*8|t-j?edrY3(2uHQ5ZNj5;%Z2%fezfi=l^e3@%rVj% z^I}VK?fPc3B}9+pfU;}FrzU>NGFP68Tl!)KwbM@{>aVL;(W`sy5_VOCwh5oF9+7a! z1W$H<`y*$5Z95$weICCXwfx=E{!R|d)={=Vr{KDeEoKaUX64Nb1hu#nwfQ~Ih1VvR zf@@h0b#;3O&9+m{&R-=y-!wFlnW5^&@h+N`>v)g9S|NXJgMcx0ifVcpl}lYi!&cfK zFWqCP9r74%9R-f3xJhd-oFVG1v>*RoQ@;drjT_9hKY=$IHII7qxQM_2y7$mJU+WfM zX6%HkTbb*^2J6#&6+|2RRb}*ZPJZD-qLn-(oLKIccb9M4Z3({`x{&EUlDzbiQ<4&K zT^YN8um&r$1X(WXn@;MY&bT(?ZtCrRW4X=7`M=!NJI>WB>{t6d&P{psKF;e7dB z9InC(Ntb)NFj!6jGPGI6&NJ;P(F3w;8{MOz5+&76;!O5kAhpGZ+1h{6zf_^fW z^13i?To9v6IJP>^)~fpOjo%ogrQy-teJ-g$Lk|42?kcPB^pNFFL9T85F1;qrqY=s9 z&AP1c9)9~|g@++mkie_?yKnx8Wjyrz-98afQ4Qb^9nLa)nc~j3?oEo{1DCzW&i+?YM{L7b~CJFxYmhgW(!#=BjFI0_{B7pMDe;*fu zs8MkK@4fvKkr)5H+i}(Z|-j!6;4nbb;F2*vD{9&cHL41V~0rt26Qni_QzXak=OlkKKw_+@`z zVyPv*Et_cIGnMP;B!uwm3{dXi!}$6pj7h=nQ@I~sd8$)1PVr%qw|q%3_#QCCbV@8g zAHD`@q@?P0x|bINK}8a(Th#mZ-2#e?4k>uR)Kt>YAnd#WFId1ke3ejdxz2XY0QXyv zK;X^ht1I{IlS<`_5318JjEo62IGgRdPBv!of z=?SB21`<`f*@lA~jXbG4?xEjLoIQI4afPy<6CBUGarokLsXkuJjd#jpm$bC*pIy?$ zxCoKzL)mhi){cmpoTVxDI8-*=6S{_aq@c{dL=skKh!!mi*lm3*-}?Fa8ftI)v;X#z zqq5a2qi4x&y=e$(vXS+p#2KK#ol*xJJ^bZkBI0}pn$OB^dg z>JJG28kyijMIbfnjlcZ`k_>PrX$+3It(--E$NZ=XKTB>vW! zj``s4?(eMeZ(k%PvVzok&z!sd01mezjNGhrJ`yVhQp#bxwUJ*8+;&!N5!W>QsgnZF z2c|5`LvE&Ct&It0J~lgSSg!QPOL-T8(`0q8TLPOWuK6gHR63WX4gxV`tA%TdIv>ZZ zsWM1f7y2cfK1}{>#RVOawoA;(Va1{MG8I}cYirj6PpQ6Vcvtxgve$vT*+i+Q&t4zb#mpKQi}Q&y6@N zV(faTY9)4eYinucgr@5u)ys}wP3&gMQzv44c4Q}^&L2`LP9Oef!$IMW(TC_tw~K== z;1}$@_EVk$`3HqDQXObvx%7z`!&lCXDf%>;df>@(gF7i+daHcl(c9;ckve%u)&N%( zcXa3P*h`Du(wSfhO7Mvq#$a|QhE;bec8EJo5>wBzG0o?38Jf1&*=g$QlfIU61=2E6 zBAuPxx1d^ej~BS!qDI-l1tmu?vlrQ_1S^SR444&#uiRV*WPQ(95s(~@AIZ*hg*}E0 z!}yskp}&vC$F}+Kt!n&^sFc(}CZ_llww*$tM6t@*kJQSnn0HhXn#CHV!Tn>m0rO>X>bX$is-22-Og7szK!7QXDk zSvmHJ9!^Bapz*Wzvlk(%f%O6K$VQsggX<=WbYi;~v>d$fT92W+oAW23ns|eaLN=;vXdLsTHKTQw4_FLvZ%al$lU~%RZ zB;sZnQ&qG$p}@dhFtlFum!{^E5O$@rt6CpjuOE7#viIDWU5|V_#0`)RcyI1CI~RC4sNbCn}ml`6yOyf%&US4xFfot z8K$;;C84lZ)&Vr#oP$o9xNF{ccy@CM7xskVFu$xAQ?`Y9Km+DdbyUrHjf)q@tkEju z{l*Q1ETHi;hK5#$`@^BNZcB@6k83X`*RH_8)gpU)Q!d#42|)~Qv-O>H@Q}hOHqtNU z$B{wa8XA36Z@zy%oG(rDz5iC8++$h_gcaq@3Qff-1S&)G)%+%k0fGAryE;$E$Q)W& zSop1}Sz~=i!%&0ztK(cE1B)g+v2C?)X&GPDZu%%Ht?0J!gejs`*Z_t^$IN{3A2r>! z&dwmQ>~d$6B;PJZ!4p*2!W{|=_;vWiqAk)a+G;L0xkpmIS*nI zqSgsi{tA9Fh4*}}x^56@oA@Y&jMvAfk6YK>NlrOj8p8Pk`+yE`?@#3RxfF{Zlpj39 ztQq#ecSUPHe*Cr%cRTFUN?U{O^JI>!DnzK3yd?1b2?D*CGYH5KyDEGKu>Ie}pLMTd z5EQ`R*}0b9%+>(*jIgjU5b8#L`QSqwgOTh1(7gzpTEz9i+$(@5F8F!$`bj?7cM#S$E267YTle5qlFr_!C~ ztP03fBK$RwQYZJ{IX~1-2!Qk$(*EyRrdRW#zVNcm`$0#N2~yN7382Qr9rx5x$(v zoqAm6WL+vc-Zp|plb5b-m-A{|$zg;wt1XC9HD86sbJA3!q0XxFdhJSoRz>kvR>B{^ zgd9i>6L0+PRJJ+Rwy$q{yF=p96U*Y=S?(MCvK@Ncgkzt~rLQU-A(mE~IipHG=EYgQ zPXaJ+_j@S^8{Vb-%i&pJoh)jjTfwY6ojs+B?_2v+;bV`;C*@cCPTjo zHx$jQIMrXX1_jiJfXo|c!c+D44~#y;GzDD|HCyF`RSpTxSqxE{T5UO$4>=AkwIe6J zKAo(qb#yw6lept*XzY{_e-=}H%clT;45`zKFV8iGVf>cckgD%JvDnl{Qpha3%KaQ; za?}5L^K-!x`&Kz0?v@m+9dS7{ZQM8=|1pM*9~&X>PrMd`HF`kXh>O8u?wf5eg=bAI zE3Sgt&|wkK2P%F~scL5@Kn_SO#%cY{%e)4{V-(+V6u6H)OJR^g zPf1n~AqyVARuQVsT2kHEfF`v5g+i|g z=4KJm!q+%PoFE&@eU1y}<=fj)B_VXmqKBo$Q|iVxPG~MSUX_2=5qj-f)r9^BZn*>9 z?|+qf^!J`LJG+QMaEiCvvR%# zfxru6N{W$Jii=fb2G@k)Im%cR9^5S`tuV}-Rv3P1Oa-ix$-nzHYDamaEYMiRrF2Fh z!{pm}gr7zQbmcfilD@gQamwH0*<2iAs2Y~2A85)hBEkdy1Km|~xqWLfe~(MdcIMBY zCOdWazwhx=Y$6gTPg0+YV=nAJM^+P65TZM#rj~Zsq3Tnel`nBL__s#GF(Dzk$^LVo zbzj}x{+tR!NY}Jb5z_F&@4n@fB+h0f*dy?cI&%=}=^5L%Dy=XYeo)~uy~?>i>(DLl z-7~=p66|Id_4SVflde5DC8^2z;%<(NS*h=lnc8;ON&G&y{T|HmNuP0Zw2}>ijJ4l6 z;twEJ!{w($kDm`4JteEUYl63ss<=8}g{6|fD&np^8)pajd9+6#DMbWhUU9^8V{`to z?`$ORav~L8-V&*eP8sc@00ZJ+Ulq)U7P@Ue5KH}(hE^?|K{N7KfLf`Yp|lVCc|JBK zHCES=DvGe?0XA&K!{h3p)KWxfZ+RnwFm?r<-QHRl5CrN}-lNb87gHGIkIB4w`aLhP zhmpEOdjI09#1!r4Ck}mG@S>~A;Po0itL250uUvky+}Y78Z9$)J(h{P}Nn=oN8$5$L z_t{rbcR2+I730iRl6uN2g!JnPS2$@*e0rv`3vnGwd`p=7An&y@`mJ2QA@I*L-DQCW2P34F0j^1qv4%k~QP8h)s0l6#vTq-<-#PiS&lWm{E3C#nWwH%^SI zh~=*>`bfSU`ItBI`y%XU2!N7P`G_UJ`WeKm4-Y$+c~XZF14YR|et7 zSw1Bg?|QEZTJ-&CJ_|5S@!-12Mq0Y*yXg3xH%2>$r0A-nw@L=eB;Lpp(fy(0z?stUJ=5oU+LW3U3Ar1WW5fxmQ`lr zU3@rICqd1_fe`&mbm%-&6|jCz#=Z18tfs5jaxwwdQZ{jiknn@I+1ZXR*{Tk0xuw)tAYEl=(cz4!@ zM*E7Es;#YT7FYbMF{!=fZ693YOxw<8UBX)TfJNDp_4RLzdd&Kt)Lx=Q690)L$dw-I zHpLObOJr)&WxPmw?(yCcCws8jVgKCZc$-nT7C=4UTu5cgDwZzz4_-K*?3)(VLOySl z{#WX7Ik`6~dicnZXV6xH_|xBt@8z|ZiQme+l^K=)`=uZ*li0fsxkks$I3B~^m1)?})o!lrU$K8{$AEg_TP|M(^;_OoeO>6)g{}vi z0vH!%jyy(xrzjVA>K^SD!QkKsxLU%z1u3lZW)MuH8dSlQX1 z+1+FqTW=dtduznjbpHH#)AQ=;>c{9nQs-WmgG{v={AaZwe!&-`^FhUwvBoIVv_3aC z7tB%uVHEy4eUOtE@NXs8oA&M7XKh5ALo1-95KbcoR6Q_S^m4VmeH*A{=1TGU{!*_A zt9<1kb7khUP=NTqOYjAQz3C|wM^A!+TTMD&9`N9Dz-8oviXT^**V2Rj);N+?Fs4+C zsQa{^fRebsK4(Mor!$u8g->tyM5o!!XZQ9nJ)@*dE#lG0gk+-~zpMke9-v`M1r8DwDm->Q=XVc&!Ky$q|$1(EfboKu=U;q_-hGnC4gy zF&%EiVevIxHkx^DCp1T3oD-QC0>zaW5vx1Sl*pCxMJ`E&KN@p3diGhK3PP5LdD#N5 z88bDI)0^Qk^s6ltQR9P3DL;4iLVu_x$L&9Vbg@-HE~LJ*T%9MQPZo^sl_+f=(b&%- zYL+=Q;Jf-m(7Nhl&m093z;DIB$H2f44uYK^*yog8aTsE=2G9f`s}zF#<=E;(Gva@% z_UW?*M+XO0Kfj6ybyn&#lfG2KP+0j_klevR$bt+i)7}M>tuz13f7A}uf^m)2nH*qz z*45ShW$7>(q>fF0vtc#>2AeGCjaIsI`|mU#IdFgi`90&|;Otxn3O;ea)b3&uf29ag zyv>fSc*srt8cW)F0Rjs0CIDJi7tmc?_Wyc17cEDa2(c2p0w+iEp%HWGnCLl@u=6;x8Ff;JFH`7Gwek1m(MGHXeO94Cjib|dmef}3 zcF#ZITML&5cOzosJ`Yy~(&$n#JVXhn*aA%Q5JEObFt1!8^hs1u{rF~@Iac1z@oQ)` z3mm`P6wsicL(WafdlO4Oj^oqGQ=TPEt&_#)xj2RP@kf6aa8o(1G2XSv|#g)+ZgK$_mhCRsc9rybkgK2O;wW8x3g8GD8;Fjx*{mIUh!lnEm1>PM4YM3iD1|LoJYM809joBv3(h!_@S7W8)=5 zW8=^UW+tW!mqG~7_L1Gq?%rjOq1qHU3jYQ{@!yUG_fp}X%wARh-Mn#ac2L=49&enC z%Zk7@KgNmx+uoJrwko^4W0I2BS{#tg4BBAK(kGAW67EmnHbq9q`HIoOjJ-{Q(b6h( znrQ-zr`4Z+gkW!><)|nq7eXvc(7E()ENk8KvWPU5mOkg4)mZcc>+xfvihfnVt3BhD zj6r00__57fO^uCJWc`gSZCzbWPfyv>_p3+{Us2IcN;8MJStEX-$V7CE_Yyb}$Nqc@ zwRj=4&e~L~JsFca??uDK#YNU42UDzT$b6tVP-$+y1>TZ3MHF$H!gY7$ze#GzggsdP zv2w(MYHy}d&)4PP@7o2V8uUE5Lf}zj-65wNHuJO4aW7Rj;nzJZ;Q{C#f>d)-VxpDm z_QbODC6I5C;bKDgA=`TS@+Fxx-Mg7QX5GRgrQz&IQeS**B@{Ip^dyrSo>j82@&g4_ZhH@AqL{ikLHz*^s@Q$a@h>=W2Qmq5b80ZZI< zdi!%yJQa%c%xbSX6JShVi8s<>={{Lje!y;~l3>xXfAZokI}XTZ{0fM@d&Bp!LZXN$L9EuGO{dqkhrM{=%?>%zhAhIK%ZaKoFz6 zvUwN-Xld+5a8QtHa$5+y9&7)=LKxrcrMa2B(f@M|D1p3tfss|u-o& zxz8?q+Y7La_oGDMAOLyNO-0la)yY;nB<|{OFz2|H*O%DlP&XeeQYu|~l)O&`p)}rE zeu`Ep)L^U}tPT|0$yX%nw2!bHp9E8ix7nI)bl`j4sZMbQP}tiKiWb{o$uCYSM{m@&lX`coJFHxVG) zuunjIHopwe&L*R0rXz_>556pT8HYzRcUEaOxU-9Hcw&8p9()NVe_kU;IXt(=TU+~2 zDh*I8*d_XB#ZK?Asp#LrZ2GiImMAtRl>9F?bXnED)}*rUU;#m^FZJ=b*99G&SFfX@ z>IY?&=jMo6lxnMc!%K(!Dd-%!wV&(L?AH@qK89%>_2O6NeIN0^F(N2!hi_G^?$B@Q z1FUA;FPr8$j=i#_6hHz9>-ZeiK>`Oc@Gu8QFsM>zH;bNjks3>Ech-(zUfcTklxf~w_L17pPELf#L-Tl3qPXXw zf3T`uV&|qV)DwR2H8Mu_lVALQ3)>w7F8$ZYJ;49}HM;+Q*x~*E>&HwRArPpO1J<|M zx=;TO`ado1UFl;(Ly{0EuWFgVbNjt!aQts%@HdH|5vB>Oo|1nA_7)8rhcJ8llG~=c ze*GI+|NlmR&E)7WGb0?%WH@5Ty=YRdeQUfGk^m~Rc;|)wf_oxWpldHAB&4dQMp4=y zjrXf%@t{$GQduj-9Y@F|xTl~4`GQM!KRF)D&gR$}&2EiT39OJh}}s2!I!4<>Lzjxt+3%K&WDso#wDn4S9!PF~jiRD0WR!zu~nw z*yq$51=oejv2Q*4xy=DVP=py>N$1`(h^m1B8#EaJ9qqgNtX75VB@NlTEi_aeXuSw{ zSd4;6^z!cetAK=UcV=VpMy#Mk4XW`pNJ#ZnV{*3w@h1^*q^>eQr=bqC{_%fBIB6%1KVDX|u3J zlE4W^s%E>=_YKt4JJ&yFpHGRg_{b00ZjCN9%2(vapwpz_IeQ4Hvi=4aN%mm@V>sr$ zW!%9#6R;h;#)fUD^a-4XQ*R6pE+ln3u`ZP*%{HrknxI4jJB{0;i6(YQsxEFktQ8F- zqr=+Z_YHcL&T_Hp7qs77N5t#th7S_}hxG&HN@#bED7(@DSKJ5Ayn*y=0tf;czsnt7 zxcZaGL*(ep+tr<(Qyo~;vj2ANH9b9l$X^CMI<5wYklqLi_mM$@2++%`<(zx{fvU}W zA8V1FFn;;rPdoQ`d9-eGb|EQssZ#Mr?H10Gc;V=-*Y*$WPj%8k)DG!S66p~j7*^YN?h^!W+cCA?DSs?X|E@wDR;1)g3#aR=MgA*dm#WS3Y^U*i&sX!z$(UMf(MJ&l) zo7vf#5I!J#<}S>-SGAtKeCg?J4)WSQk7vz$&NsPAJcK zR54tg-7}{woLz)Ao>;nz##E4?uUka?^C0E8UEW!V*Ap=b+KB`_VQOkr1e=|Wh1EFb zq6gZdX4h`s6tT0rBEWXv-JQ3aEU5>{Z?VVBL9o$TTvb@)2M)}gi;cIXo;9OLcy~z? zNv@aYA3P{j_XizD2PE$C>uM`kg)Eo|rl#+=OLKDc+z@72!qJxjjU@Hxn3&M09MBw< zk&}DQE~~SmSpT^PUThr7O!Zy zDRHe2Q_+MLOm!pHjbhu~~{WhGJT;dD|kn3(3-F{Ni@7%FH9 zmfulC@Y9+o(2=aze)MMJjQ_)XTgCxE%DD?`VZ z{7B|kyfVX#_u&YEtM_|#k1FkJM`3eV%T7Ihdq@&tp#RniBd4C)adv1yTtY(g-=oo+ zErq=Lj$mWsWjlsrG%Tv;zSc}hW1^eT!q~6Gcfv84v?gMu5%Iu@iy^3KP?dy`tUB^l zIQzqhD3IV;o_t_E@mTtT)c)jD@EKjnRz#nU-%Z&gZ@z*U%ZLhIWp#V)z)SU%&w_9AM9+H zh*#RaKLODnq?;@E3iHKoU%Es$J2wZpA%p{`UcIgZIaKYC0)Zf#4>ogYc zshf?}avmz}LQ4fxWGuYRq9Q9D7{OMm#!5~s$SFUN`xL;J$S4d?f#sx+yl8K|sr#6K zLA5RLYpi=s-|9&poBG+$NTZGw!@#pw2=cM8u!yN!@0Y8mgFul9YuC!@dLbR|nTn+|ZV@LV7rChr8+38Gay zzr?MweKRa7OfwE$DhfB^j21T+_64!B7H(|*mjDr1w*TCgB6(4pAHGgnbcuVMLIlAxIILilYQW6Cd6I1z-gyy>s zrE5TK@>z4_rdt$27>u6MEaM6KtHDT|SH^_;wKY3UUtSkjw~Gva56LTlapI^~bpatJ zA#w4iC8efj5)~0QL6f=Rs1G9s|A%krs5{xt9u6C_LvVb2mO`AoOFX%c4^z&#bx8~i zz~E#*(;6$U+nZ<4LdB}I8K2s(gULC7Ge-J*h3XQAkI^lk8sDnGe)$4ov@7JbW46(? zADp^?;)sA@oR;&^xznrm=#9geBEGte@9Ku+Fl|c$#pjt0K5#sg4*^>!DlX0p=@Nuv zJk*~6IS6JqbyO@$Bb#qwfEt^c4i2=Iz1>efLgB?5_@P^1s&?fZHGnue_94CNB2?V6 zj)w%obj~x*6W+X;(;4~GS)jZcj>Di`Vj1p#I>E|iTieu}XK5~bdOg_kJ)nrU91dx` z;)+rs-zs51g0un^x{tm1C!}rcat%Wb$mnp6^kP-dp}-dXTS+MFpI|IJW=OR8Z*&@# z#Ikbj(}}ka$q||?lH!%l(L)pTB<)t61{$+Bv`=tx`rb(A0N%ouT!h9y!8c$*o?@WL zg(Dt(=4m{JA4k3VUY`p02P3N+hVK0vy;{!dUcJhm5GKRg%y$VZF+x%G!D&9bRo8?8 zQTd64W4*Q?7Cy6oSN;>d)4X(NlVMqk3eboL=)RsJu##Qg0U?lW*$UESOTWL}%6pFpOGxBI_0zz5&+3*O#_Jt^8Mr#@FDTi4U!!u+cYgm#e_@zNP^(lq z4Y8gj*|#v5VT)V~xU`g8`u?BscX>@?>bM=nIgNIK!$v1+M3shboTVHG>8P(qwW=M~ zY^UM}nxd0BoIk{(23UJHJUnEO#H_4eUnu__y`=Mn!|9@564@&c+{0FT`hWu3au$OiHi5UACJ z)c= zsPu@HnUfW=+-aIT5@v^S+}o3;RUy6|lC^m{whDLxhXPahgQz+hH(A+C&UFaDt2xR-O5=lwt`L38IQ1OrQY%N0Lg&s-RZ&Yf}r|aJd;O zBxOWU-um1}1{O+0+#z*aX+>7MG zGT@Bg6~DrA2-wkY)j~L0pvQWNe9DJ5Gl=BYOJs2dtTqK&4z)7X@-yXgfW@2i}W~kJYQ_h)l zc5arHgF6%-%5md+$N_XkAz2-d5fQhnoX;r-P$dNT(81YAjmHnI!@aCLZ-B064v4Ub znX%dn7-DJhxZ?|1j~gzhc(K=Dx>5}s%Y%U5us{DBC#dbBoJ613;YVoIPW84?!O z02(*u=+l3<8cgDLNmxM6aKmJbrL{f}9;{-%I|G?1!$29W!R<)6*zekK?(t`yW#UacAer? zbt}m7^c`we`;ZyHi8qv`O!wN|B)KNyrR{&+Cc8sw?r9apopt|QdsSFBtc@GLC}kBP zpnI4q2OQCRI8o^GF-d)WeOI`6b>NaOh0=zv-Puo0GYY$n++rcrDrTqwC7Pk(>DV(H z0!0%F)_6t81I8X`zQE8TAg65&>D==vRkSCb`N)}>Aq$Jq5kQMjAT_nMWW*d~a@`B` zLy+bv{9l~Cc|4Tu`#*fyi6SD(no?Op6xoJ0NzraMC|fFf_8D1HDpZ7|sU&3ILYA@b zJ7wRqFJm9en0b!5KcD;l-rwKr`8|I;e^ALb*Lhv%c^vQKy?CulHbXlK<%%Pu&jiEW zRJHS;izK|c8HkdSY8uH+SS-vGd#h#4BP2w)eZd**7azdkIglp5?n3!EYEP*@dWV@% zv=Y)WdE=JJK-`$1s>d7E0{6@s4PN9*edGDT=Uh?Y(bF6+3(8}Jn{Ge7{L>r!=n!8J z^?$i;ZX|fjeHVLe_dYUk^$^6n?vci>Jxr1t%RxA_ zvxS9)N(uQ=Uh({oK8}6+0$^B>laoUg%gqA;cx>fb9~vNN{LZ}no(2pwY>I9R{D(wE zsmT&R(iJ^&q-tCivoXSil(v2q1~?4DAxg-G#;C`Qyph{h02;%Z7aCJX%}A+c%ZC~Q z3eS!wrxW?Vfg<1#XwOdIg+hn0YJ;|_K&D@{r0nLJr*Xh8vtEpA8+nwzk1T|Oek|^Y z8w*e<=a%n{Ll%|@gfo2jc*ePUdXLOsdp!Gj?BmC$4~Cu%4LxeT?3cSIJr5$dpl%r} zCJwF~WA++ds^LR!-O(HSh5G@wSA?a7Ry#|=!_DOyiePY=K+|Kv_qg3i;t7S3CI#oP zmET5cNxo`eS$D-#=gGSBY0HE9z0!geFfpM)sNQ18uqJA2Z*Xuhf}{qKr*hC)l1W^T zhZx=8FTD}nUGhHV&Icu*17p=87u;(~k+fstCoXzi2((&ikC%F+5HNcs`~zjBa0td2 ztiWaUBGNjrg_BnkP$PQytq8?mfln=nG4_uQ9sz20i~)s|`U~0OQo3jQed*C9>(+2h zVIqL6e-Z-%P+3_Sf@pBG4i26mFLn6|e@ac=4IiVz6Z-m5=a5d=ogtlSaklq+aaxP^ zLzG#I-*Kr)z6@|`1t6vVb1t3cp!ZS`wz;D2i?R%$3Q)#=foc(giK+BwYG!9-&wg7( zxHy^-3ECsza=EghF8$MBf8V+={M~*hIp*-mq2kF0@B}{u-xfa$8-oFLJN} z8OEJ5?B}g;YFcxp{wz}6W4%w#c5S3C|)nNZ`oMEUk$+dA`p`t|Pchh}d_X*$+o zX?Uq-z=2rTJw+-$>8h67zf&LFuo6QQ>Cp>`-@kKCHb{t{<&ie&{T&em9SX-jE^Y=S zaX!)I=PdpgHxLWlvtI~bdWh$bx5BnJzLnpg8D7zlE?SBN6HXJgBXfSpq&?MT(6DEGEn~qRVOCx5KH8dpqSVB;R^2NXr?!EqH!@>#& zUV)8#MJNr4b$yTRa(z&lnJ^YbbY@H&BC~{HKW)t)+oUmr1lts4pPOHw#1xIbIW*0A zbCh3?c2QD)Sfi&?pC)Fdf}b`U74vpU+vhmq<@+^2p5uGZ8seOLf&+5|=%D$}PR=gva8qd%5LK?gtM&GVr^ZpzGzzX21O$jCo_G zU6gF-X{?N#Cxdysusrc<#@=e*MMd}X^RpE{_~h3BdJG7IR;>?6nvPuVys0befs-gb zvoX5U5-u3r&!w`oEe=L8C3|x=Rkzou3;;<8m>RKyIkUF)MI1Wv4<&tB=|pzB-8DV( z@ZOs=2sK6>$$ykKV1nQGk^A5&PkCUMn)E$CVet(`df0DRhO}Y6q zyXbgd>Cau|JoY|lV_b*qxJH|P_^^Hrp*geYbkIw_$#(mNyJ>!L?@ib<(r6E(H%&ZX zM9d*XDEffMd58^{M8q~R?WPe-&8oY9VS30^!^QoWWKf>S(tCqr>51wVHJ><5GJR(6 zn8T(es3!yDc4=xASatLWjet~|#g{J*Jr^uv;yP?ve-EB0IoxM+-GU%wXzJWZC{!57ngrF!2$DF*JAq`J#8S-`l}o*az`+|Ftwp4y zQnQ!Q`cn=H`Yg*t6pFoM*X`w%`gB8#>87-#_X`qTE1`~P50Ex3A?UZj^7pxj{c2LV z-E_}xyinzku$}X6qIi~%rV?0Rh9*Pr^YiZ4Yj z_f?_LtpX_f`eQX#+0R$niAP)RQTj+9ujfM?9=(5ADXoBaL7ef)#Pe{xG@xoRW2*6Y zKI2*0L;C0U^Z!Yd>-rsBb`8Dk3{Ku+i^JBz<6whyvhvD)_8+5TW3O>I>5!Z$?fy+4 zK5y4ZDyszEy8ZbBeXUl!E^2sQePbHB&}cspKG9&7@}Rz}JS&lWtF#Hh--JAyjUK zVt^ABN{L_}6e<4nsq}O4ne_9E)1k`mD69)2Sjwu`Wy+e@Iy?mUEjs_qxX=S`+AZk8 zl%rK^HUp*=nu7hXk!sKJib&3W4&ud46j`>IYQ^lW_s{sK5?f_NIlsT=wN;@a>5&Q+ z{foH>Hhu92Lq8+5hT@ikchv@cWv_Ht^^SEBk58&{{J`!}UDsiz0UN*VqVtbk?k@Av zfhfvm%NHzE*yW(^u7g=8T&p303!$X@hnm!uEYWH5G9Em;92$Sqty7#Y8*C2#!8vxB z=+rz94n7NpYsqP8)l+S848^AGh}p|bo*p*`faphyik=@Z!#?gr2X|a6_?rtrUfxfW z!Q_-T=$V|q0Bk6Pe>-+J-^ohbPUF(S991Qy-p|Vva5YxGMJn8Nwl+NkMW2z7d+@*k zcew+RN9)Ji#pEt;Q}5HJlEp%NU|@Zm&+8!+`L+1=cu%@IybDs_R?e3Gqc^!C#F98e zoZDtnWV}9*G$#@3?;=1LUigmE*PXi0>^}JN+JR>@rInL|D_X%DQOUae&E$b#1}TltgA7n%kJl%?Q4^68}Rp?otbff z{MLjkM$qT$xUFvT_sK4X6mc`8Pf;cm@YCzAzNDGWbI7NEAflXxJ+>nwBNhoO0L3jC zFr|eJc|9f?Gr~-<<$7NWpF5_;9@+f0Mf$ZKr;Q5ITOTibd$cCfdf?CYLrjZcz*1K{ z59QX=ei8OcW6Q6!b`({oXV@zOkgaIQ|NsckMn6`995~dCv~D`Or80{AMp@1-)rX zLFi8%QbAa~gjLBO_xAH4MA0{2SVK98J7C&etR}Ykix`Bg?|WZZnC;ZR8=n%sGyR>j zO=w5-_PTbqE?t{+lUm|Pq!pI&3;Mm!foC|p0_IHnyz0Z|spq1tG?5bhmS35zz4`8W zoDI;K`WtY z3Y00WhMTOV-x9A9pS;UQck9e+v?}(JTa12wGOv3tk$DQk6*@RKnK)0RU*4`DY${}6 zx6a((F1+{E zo-{z3IZF}YmwFJB`LgBmyh@$lUb?rBUWL)S++l+l0e&T%SB%ec&``|WTNG*V9=4X? zh1JbsFIn_@3m?WWzK2`;mk))>4<}5z@WC`RD)E>s?}1|&j|p4q1N;7zUAJ8W+gz?C zBTp?z^id(W%f+yfR7j(q{l&+@M}y!=E*I?=`V1bNDA z^TqdMWE*Q+vOD3W%tEksxYVI%r7us?y`&AfN3U^#{^ez1j`#GJtO@dmrw<>VBx+9X z`(^j@?ZWpk465aA!gssv&LmT(LC=;mM|QGJTVm3*H8sM?drPh+(8-h^%8u%2Xr|;Ru2scMb=EIZWgAa zpU+jCqDa1&)Y&wJPN_$F)H8s6Uho+6rDv}$42(A<+S{m`sUxRr7mJR^@A#f!9;FH0 zSKucUzZ2j#+(H@^J>&%1v~z@{(2jUE-XJ~sJ+x7(X1oSOc+|VrBPvd@!uKM-qitD2b(tkB}+uw1*&(bR7u3u(AUEXH#3u6jp z{I5E?ORhzg$nQnooaAPuejEA`pMQ@1|dOS1nF!;}8?tu@>^%ue!hL`DHc zk^ZK+2vW=WEDUXm@1g^)ZsbYC9fV@{o?B2M1vjDp$jsA3nko~2-G`Y1yyp!O+VAh% zXbHyLe^NaM#wcBN(l}Hp*HOtpy$!{>x;j88QW8#40dVeRX>a+4`1Lk>{PssZzrO(N z`prU7U|{7Hh=D+HC3=}ll_|H3-loy#jTKpyN7*V-YD+9y{(j|=Z)ejbR)11HhG!~X zGyEQfPlz0f^LK#MtZ)#|_){2|m|n~RL^Qdk^AJW(Zp&C~j{0?cUOnZHbRh5hH!lzP z?{#}AWG#o1Kf(upnRL4F8fH_JwJ|D7)WBdts4#oGz=@w6llN#q$(;I77cz(cA~fyP z5{$_G{l;bYWQHe6o87YKN_|r&E3drFSth)i3+<%fR|G4bwBPvp{a5ftq4s9+G*O>% zj)plv=s*#p5)WL4bXKg(Eyc4Xo8M|8C}ViKh)HQ-{nYAdxk z4!R^g=^$S)xotFKBZ8teZWLr9B_*1pcAO4(1Hf@ah`HGg#i(U zfj-zZW^R`O6Rt2D3y8B0R)*?Voeh)N!oH>9MCEN|i;*~kmlXfYy1Le{-#a*(yeeZR zzi;W{eM!y5ebo?)eN4R>iV3>#31cSkej9jC%Fev&bC_*XFpxy6E!pcA5Z&AXNZ8BC>9>MAe|LOv=y}8D zYK#!3@-s=A{|=%&I~g`K*V5d~h*a(H$M5j#Zrr_lS0D`qAQaHBmHNLaZwcIH#`#$B zCFA>jwYeiK0z-6DwFFM`1}3z0H)=~f=P$v272~Jg<nVt^g>Xd7B)1^xWMn&E5=D_)5<{BgJC!!o7Ydmx^T}(B-HUKcuju@IyjWI z;sK7cX-|&V5=`&|V$VP&6Uu-1jmi74{=e@QP>=UU%#fUt`BJxYP3T2y)-f zZV4QJGJy?z&@lD)h}O@Uzh2xaR&Jtm_`0*oh%~Sda|)*1a<00q!xHhLPVWZFhNOtt zfzRd>cW>);efiwxebm9`@=0VE7E0e|nlr7mpY8qx7AZzjc9b)=P{JoBR~ooD7by#c zOcA$l^GtFHa0g<&f3U|c4V|$&X*iqqD;MgqlTU&y@#N2if^T+q^tM(eZBeM8l}Ty!)Em#awf)=76tp9O zIP^85g?0aFVG&!o6R|N5%19P5$7IG#@$FaBh8>-lphHm1DdGf%R<)W z0W5pEfOoF*p@rni=}CN^r%&lw688od*wI;lT<3=HLU3Izl&Kig^0w6blfU@P@1NG& z+CbrgPRjAwzu%k0QZpJr@3_qsYPur%LvHBk7ljg(r?IhM+Vt+Y&wFy8HXw8I@lIvf z;kbd(b?d|9Dl2pk-f7-1S6zUmPuuX=9ADLbJ-cP3Xz2+V3M7wSJScz4lx|KWF0&ZV z);PWLmj4x-tIXh=2$Wspk^)uX9yV0B72D4V1?$7UHZjMEbfsNGj22VZw(*%=Zkqy| zpTmSsccBIG^ONd=*e(=Spv)iPV#{CuWcKy}-AyQH!E43BS~tXPAw4xU*T594q^ZJy zV$a*gC4k`o>NG z=54t%amHkTyul(?g8GCGlu_;s(X$DBn9Cm5YsV&~u(2$?BZH3zGijr!;I8IQ2X(hY zeAzD!?|S$Iuc6;+-r3dFCr|UXLg>JOUC2D9LCmb=8XQMMEjZ;xt4A~IlKfb+3nC4U?aw?PCm=>y0j^}WxL=?)l`?IN)w<>loZJUmvJA<|5~cu?k#YV{<0 zQ#V_^X8Uy9vv43XzI%U?_uGURY{R2MW@+6?{mM|eN3|qh4blHqpJzCkfMbj{Z=rJ<&fEFeLqMJWM@Er`77m36mJOm4mja9k& z7PRwm^F4>j0&R2M-clT#uRr62!h!!>K0TFVp?CR+rS?-ZYaQ`JOC%prKXzlrq~&azutWp##^jkf+S%~hW8z6PM~HTZA+)W?b@ zcys>>?ETm^{BKF&sR4yROYrS1t`gzGk<#F1^2z}~P66CW zun1D(xCJwl&BLfopPr%HDVj4Y>x*-Lh#$}(iwTM=9D@#T)MOQe88irKXGiMC2zN2K zMn3H^TBz5evaIx~rRUM*F;b3S-MR}6>sFrPlgsqtNy4`k z<+AxqcI_waW$;4D!i&x^&_LnHyQ);>$FZ!u{@=PWK>L!W!_6bn^OY|x2>#(c4O(gu|805(egaJROLYEWu!gl7b_4sovU}t{qUo4F!9;0py z&7{9a)Ewv8{g`M9#&ksNf6e;c(5PLf+upY(VS>^8pThM^5bRor1&42?;<6hZYIphH zsyuoTuD=J-P=$xF{8L5y3E%sdv(f)ikxSBM%*{OzoAj?wS#tfyO-c2jEYe{7BOvMK zO-rny{698Ki`HjIZS06}zqy^zeS@LE%ZCZq;GzPaGHkKESlv; z@-LW;UW51is1uAL(GBlpkXoa)pEa!Gvlz|E%1LFX%XzMrUew3#uiwx({a#CK(-wot zMXmU~Gs6z@rw_DQFE%9>dovJyrp*XEoBH|#LX!I6d{#cJ9_=I*!>=r!3 zSiDDlQsN8MFAI7pSdpng6-7HSZI1hn-?I3~7+OOkKEJzTBa{1mVT1m;L&1{ql+pvv zYg4Ih>Kyc-^r1x{0#=1Hpl5d};(TGEic(*ejPv%pm3tsij0<>5Y@V@_WkKoN@spoV zM}5+{8u(Xfc%6-Y{tYivuAzS?$u|FPrUnWXJ~UZdS$X!SyKE{i6YaJDMq&gC8Wc!b8}T|w z)`q~D;&}>;)uZGR@~AgKtmXP#kL207Cx92(DYwxtJs0|D`6T8<9N6yo91^{5a??Li z%?CkpT`#5pufmHa$}n!PoO;KPlYc^#k1z@i3VtZ>#s0S@Z`p{S6mfkof8Q}yUP8EO z58^A&$`Of`Snah}y3GQt0G}rOy}Denmp4tjL+e+Lnzu#@TlODLSQ#oI@*=`AGS^h@ zz*>IvSvSbT9Q{hJ5yJBCmo}wpMJ|T$PrH!qvD+~<)cu^BLI~Q9%gNbyP~lN{Q%fvh zu2e^1NsO0{{WkbB+a~DPZ?KGdYD}wX4n8{6WwJ4_L(I;|FwOVg+*MxgNrM=s{ZQ)1 zz)-jxC}Mm_q95&u5C^jc$09&YtROd(JSM}@)YQa0%T0^8Zx0aXOp~MKzRBepN_oz2 zD%cP9PtWoX+gup@-W3R~WOuWlXuhqk=wm4LtHYV$*7Dx3bo~`PpcARW=V$PzPV8m6 zto`}v+Y@Ud3-MuvT`|^&kEt&gm?m3d9 zexEGwEaodc>xa6XTCFhO^fP=BwiPr{Vu$S2L7|q)kf@A++&Er;v-pP5;D`!xUQ?4Q zU;{h{aOm;?>&IgfJWUInBId%#FA*xtqKggv#hL^}4!LKLwO6eG7|2i2D(vtC-E5 zR4Ki(ZT>*|ptz+h!Q#Gc{yGhZ$0{e3Z4MD(gqQu1BS6Yq{slwQEt~s~G{P9N%}Hb&cI?5UNrRl9M)Vt`PCJ zETv*#CWqRt50**wrVc=ws^CH3s2y;qy0_Ut%MT4k`SIp94+hYurk zX$&GLop$vBOi;7}%^Nl81|zzg4itsf=X4gUF8B>n=K8l=MU-HzxQjCi#Pn^-#48AaYsB0(iz2eL5AJ!Q1s;BD0&)E}5X#fjXMy_fyfWG+NVHXU9 zxo(UE34xS`19~A~vr9zmZ#=m6_`B=e(9he(ZpQ6%?Sn;PnK}$#H2v&+vx{4k>8dMC-JX!>1IkL09>N+U( zaf0NURBFC=F3Ydow4|$gt-a!(uBQj#a2?-sYo@q)o<4JbcJ+_AME%}h3G9bFgW`TP zPo1)#=x4L~i^?B7m3S->s#3(&L55s3BQ3al>$}}-D@tw8>+3!oyd1u!#hxOE<@W`Z zZ1U9YY>%DwIJ3ZuWrc116WUwy%GD<3-8VjOEn9l84D9vI{S5Paw?QSI_k-peqeDTh zy}v<5&>8UJ<9j91D^1`-wDt5NQku9|VK{~m>NZ7?6u?||=b+t<=!fh&w)^Z?x|{Bt z=w<5U#ne_ln(bP0Q^W-TlK{u@|2kT1+ivke#)tWoyv6B12PmEQ&=lMW6UimsLHD3UJ>4_;Unf7uq1SLq#58(i0f2o4pM{xZQqB0S~G zXfzJx^>uLVi-SuGHuEY@PWF@Y`3DbD2F3*}OR3(2DTcYh@W{%Ro=&7nzCd_@e6k-Z z8FiZ7@;wEFC>s#zUb^&5F_k)Kh{8QPH_@fuV## z_6prjBAJX;gsT16Fs2TnZ9QYQ`91ssL#<>>9k~jY@%#J~UegKd&^U7y0A(dRP5yPZ zCM+@|;+UD4f9uZE7nb87FnxkBVkuy)oI^3gEo^voX{x=W_t^dIV$SVbv@%Q{dPat= z_wJv)>C6fb`L$~foGGchtE`(v6c2az7s;sbxA}b83q}Tzb!Xfe8JAMT2`)U$%!_mg z^f!uFGHs_g_vt_5EWgS2A*A6q`0V_B-&TYx>FLr`6E}K;2K(Y@x84sKFBP2*j;V7= z?deR?>RYlOpwK9-%!UnSUSo>MTboTi+qb#WS~YGSj^PVAxZF!*l8?Jswpbv@#QONI zBB$~^>Y8EjJk$E~^zn6Aiuj$&Xv)Wh^kiTuWZtDgK!*b7DqtEQfM~Um2h-+@umyM6 zLPjwJ-J8qs_BX4$_Yxj4eo2VHk-EAjTLd+Ur2SswbgCA2?}94WJiDZ*h#wliZ2k30 zE?t)yN`|TZqh=MeQbd*+R1z0pKt}t$F?wS8yIqfU@n=5A_rfoxYtcIi`5&32R1~S& z2M)}@nfFXn&?CTrc%~ONqDMX_A|4%@d`7h|qNk_IJ)2xFg2z$$PzyT^29sFW zzBUmlz~F(w(DwHBI?PJhDmsyP#goNFkZVb|@;%qY4c{A;^1?&~ua3<)&4>ldc-k2- z=HumMMxjuvvvw4>Iuoq5qat%q1#8D(qfV-PpYqoQAGge9H$PQ#hS|Kuz z=kyO!0HlA}*?9}L%ohqcnuZDA`?&|8JEnGp5ayY#jIxH-FQwWcb<@=4mJl3yGNtCY zxYAN}a4UN56HGWtwZcFdEWh&dhk5*95@hc zmV4m#uU|5qe4rK?CQLH9UgMZaGcKFb$9_n9@D%NS7^-BmM7gsa%KW=uiGfzLBi>nm z!-nT3Q<6i{7tVGh@9QdO|B^jrc1Y>ARUVy8h&;!L#dfp5&)Y zDB^-BqH@Yg3rbW;>44AHss?q!-VI?Gs>ri+R@NpHnf~3r;p^JbXPm`mFXKedJ(N0o z?yM}S+S~#s8X?Y+o9p_B$xLPC_D$=YzVpr3Q7Oq(ueCId<MPh$ zjh<^WN35jI#CkNplMBigX7}?o|GaiAN&ZVUijzzxQ>kc+OTQnUz%k)V0JT~C6qB2K zNU})5cnOs~A!H)%oZz)rW?98}|vofUQ7Tmfg+%R8Ng6^m)SG68q*2EwG*1JAdlFJW3*^rAu^R zcD6jIEkfOp^UjA{ZL91sb!aF&~sY??Y7adMl0ArIzZA)?}mhg#B~FM>GsSt1$_9A-#qDS zXPov=3-7)0=l&tt+8!_1W@@0+Qvoaf~*o*i`$L1${5+)|BfFk-CYzuVNHovxP6iO_} zzg}4{X#5}>TXi%_^V8}(=aIXiSpg+GmBX58S;xl--j^Ox+Z~3tWgrO`K3#M3;FW83 z@}seK_U&(Xs7Ogt#x<3+qzsPMY0IR)?#G!twe=2Nl+-1O@U%v+_HJDNKhCRal)#w;iR@Tc;~+u*cVt^A{a^`d1dZ zvJ|g!Ajde7|F{;BT_pDYCr!S4FGV@PC07O==fTK{kyTf>WQTwDeM_M^t zA%7V`WNDb`niz7k++KQ{-o@u|*=&_A$K}ynge^lTpw>gL=|6CfqpFA-BbyA9hPP?+ zaI*5oCSBMWCnoB^`0Vkb1HNEgA@}y;tL&P{Lmr(HSt!YZ!VNSjonK{bhBfOyKnN8J zF?D~i@4VNaiHTkJ{aNbbOf}Z?&VBCU4sNMi{+3s`iSt}zP;r=4{a;^k>aQN`f6%e8 zb~02}$4CFR^Zv3uyoRvl^8_Fq{v3y^>pqM9gJ%sermz2NLY*d}{f}1_v){ib)TjU7 zC)EF+5ZeFsOAeKGFd6?}&@2h}Ud{gwtmz$#Tg@3C+}XPFZmqWB0U#-JpMwM~fQ~90 zgTktLK}8i^Ja1%_cBm|!N9t5Ob3rfi`6q9&m)-Cr!PpgeJdfe6ux5@8Mlz{)J$ebu znv=OJP21hg3WS>}q>t;$cbJHB?r91|yOx8{JSk6i{-#T3}q^oWxan9j^3W-FU;W&1&kS_yJ zZ?D`N2Y7fUFc2mNok~<2#nU%I#a)+8j64l!uB!2VVaU@UOX* zFPd6srCd^!J*zAZIC==bfIwc{${{7IX+q9i1b$rNu>hR?=yfjDNRO2XS*m)&CsGX! zK+D}U{&SCnG>%;jy2{}d7$|Z`F!6iZMI6k4?u3he*A+Uyx<~V2Y@5|KJ8G+Y)E@=j zlHaCNpCr{`sv_hp>%;fxu7d<^^w!TEFjkehSIYrGTlC;q@*`@YHlSSNpI`#yO6TT0P=-S5!Xi9vkNDW^BBj92%{!6jg33e6P} zv-p}%9?q0@(0ngsap;EZ;Y{SZ=t4!cLbLGL^Rn(tM}-_ise`|CJIptgXWed*(L=Ne zlNVfG#p64&GStV#KmP|}^f=?aA#)Ig@lJsBWzEoFh4Y%Bg7b@tDjZqFt!8DydC1hM zauvdoGPNIBYrK}jx!}MZiywesqx=4Xzf`6{@y`kzGb`lNu3Z6Gbzyo9h>gQb--C(F zr&4t=Fupq$B(&?O?#FwuWsa7>CNE&Zbr3io5B>Pn03EvkI=u>{vDaSu6Rj`n{uAz` zB5))YoAX{#TVJ-r?rO z(TmOP({s;*8c{QOSLcKHh**h*A?&ba_(%5H#WgPWwW??fu9F{mU%s;cP&TY_e`)RI zHoodd9CvL?9$E{&mpJ8}z;!`XdW~t%Z&9+AJExv_c+s*)0mGupI5=bwE%AA^A7aXY zk+8I`O!(907<8Q|=mrA@tlZv~D7xOb|d zBUIuJ0LK}b1!+p(ew)JiiyH!4Jqw+GA$)20>~Z!)SzcMpg9A{67@WN#f41T*#5%l^ zvboE)#KK~8`qY=C0tUd)m~SL;2ny~2ZyR3(3+CCrrm(r#`Q!1vGrbLP)$TzZ+ZsRw zu{Yh>+Zu^!a))MLYwClml&5X^b<2}9$f{>?l*#CoD4DW|*~3m-tF|xLB3!oc1WRKNb`1H>8tDQ#$zqK`5jwc8v1p+WS620h%A+ zH`|NpWEjokGF+^Se3B@BjFw|sW+RJ`hbBuY!*_EE0xB=>>4&{v9qo=Dy%K%0D#Nbp zL}cjEprMGut--YaRx$rUIAD8COitpCB!;}q==lM1+LTL1a>tIdjB|7AZ*<2s8gPJ6 zy$0+o?qD!#U;`1Llfc!brFG?si~E97Y_o;(?A^Y*o6F;DzPt}WaO3p_mp+>^wAJ0b zF%e_motif&4ry|B67U3PfDVZ2nUkB#EgrE8q-o5|%%uRg$Uf@N57~1ZOhE(_W`Es3 z1!Re;pQfM@hnp*qj%knngZ-SG7F?v9A4(;%gtQhV<%y8=_#~|qyPo70*Gei$mx{7; zP?`P?BjpUB>T4hMhQP24m+2dkCI0Ef>+iKqR9!$M>MRXz{Tsq_`@MZ^PCUZT(>Zg< z(3EN*T)rFGKhh(mjGltE;`18M;U`SS*OdaTAH$4tFYa2<3uKgQrj3Nm;G464O$H(V2I=Ck-u#E+wuEJb5vbMAUa~p1$7egnAhb7?0+I-_1P6;LoyAMT=$#jWD9vm|r`d_Y@b}iTzo`ch17UGU=3w z!BE7q*I1Eplke5&lYum)AhMKvr#mxbmi=%(g6I6|uAD+rVecSMgK=?O!%pGjdCoj^ ziT9b6uR{^R@%#~JC@lBy+&Brqvxb(I`{SyWv(SdWJLyEfzH?VW%m!OAPvWW8jQEe;7DByqyMy14ea;1VB+Gq_pB z)~%lJjMLXDS=|qcPjXFo1HH@q7$n8S82#CEM_Px)`yY$dFLY8X{~;_LLd$7!x2zX` zxJ+b1-b3GA5zwaAdc(H%cG_xQ5I=aKUg^PB)cO%0@>481S#_U`4-CtYk zSA0m>f|DqdLCMp}o%eGeY)$dXp35cMTnSymQyOX4L&rQ}m!rBo#OITKe`W6PMm1V( zU%o5%rQ#u7Dg0T|9xeIqVQ)@S#mXq=IG5NJ^@@VKf-8lFnIsrWy?C-bq_$akmvH>A zLAlprqh5XOUbsIrJT5RiY8$l7Y;xN~i|D5^BJ%IAFyBdTvpM;kPe#oqQeN)&^~I{! zjOM;)S~Jst8#{icNxcW;n?L_VGMe{OTF{HJOG`U=d8DNDar7hY*wTG~7+ z2nH;e*=&)>?u*0u!XZjp9~>ISd66yEc#(+9fneGDCB8s)n09#o6#MV$VFH0kUESxL zD2y~lCMSdNlrf=LvKerna05QXfpXA!bVDf_xU)@^15FhHQE;BP63T=csG?BokW9TF zEZP%S?xx%KiWFtLC`k}bHI}2kwYUkgtNna|^MV;*Lrcs4ca722o<~EA(nthU_OLjD zwHEX$d#Nh^3UsEyKgB9nf6S-rUGECmGTo`{lF&=r7rsunE`bBHCJWHqyc>RS09a>} zN<9hZcKx;Vny~cAOS@iP6g@D1OVZ-5#We`NFv~S;^y9`UPdbH-zXUa6wH%y#v6GkR z4u`C|T5o&POdu)ABDqy`#*;$h%=2J%s%=jwaV!*NScD-h z)tIOaU3kGGYnl{!XMO(mD$Q`LoNjP*OsK{BA?Lo)6D9|Nt0NuaXY)52!p>_};>FFu z;Y;EeU3X%`lSqTks3yim{mGGwi0P(YbupCAhW!@M&u0Y9d$bL^XMmj~~GrMx6a zI=--oq?1e`0JCNrnxNR-&v$3poV6Yybgb;eZP}(-<0)YQ*J1*5_0k4*lI2fVDABpv zy(yps9&Sy7L|Rd-Vd1Fm3!!_Vq`GlswaeR%W5wAI-!ahBt9#ApJqUk$9070GUfYf~ zxNlwD1-oLg(|z?DeZ^VZsYO|v0`B9>xc2)7rHR+~Bz#;}KBRaUfSj$($hW7ja)4~l z=H$q@9(rYpLIRT}a}cgrY%Z^?JUq#v(mh>2%pam(;1mxwA1AiJ*6Y)+`}13cCl!Oj zAr#oC2-l*vEeT_Sw$@gpnitso05gSBOUfTVdgY5(_CaswwS0fn;Dh>B}L1K8;xG&vyDeXf{cc*%h%$f>12b6 zA626{*`~{0Lqb%V6tJj(-)j6lkzO46{W~~gaq!YqA3Na4f(0?-yHmEE=iv#_^8XkR zKwq>qlZ=$6;PifTk$&$44H_s7R8vA}hlSWt{h~X+)20(FJsH!fBj7to zJrciNi7x+Wu=827A@1uCN*FTPPfZC3hOF8Bj?&b*o#d;D{PH|{69Egd1sfZk-`9`i zydZN}*Q^I)kx$~+OIwQHkwX|Qr+*Ih+D!{hox+Qz$72Js@48h{m_a;WmoqRlK1*PZ z5MxVV)fG7*B3O3+)T1JE-uij@G8S+_x$Wv|y>Cxlw8HD@-A(zk6wBafrqnyEvy<;8 zCMOGjQ5tS%5peb255~y2ciOZG2?^PcNlQpnY%Gnbj{YgrgYq7(DAiU>Lk91vmu9S? zu8x3;8_pL$SRFvJ(@VB4_Yd9dk@kY#$ZNKBpc#cFdq0jV;Z1s?e&1D={1}-U!lPgc zY_~-2>gpN;jenGq>-|VtNjJzze$r-xA-%1;$BEX~>>7)}=+X=QA*KznBQUc}l#OEl z2|US>vDCf*@Vj8vMeXD)_S$_cPClXlZl6FA&s*;@wbh8v>={k}lE%XAdez-(EvQ^B z8MUuhlT`&}S-(%fcTzxL7Vdc$WyKr4;BV^>aj~ntIecj2Zpk}J{ZuXW)vBthtB}>j zDOwFg39S!=?0Iu5)$txW_RWLAFJ2tfiB&oha(NkWyXPxv!wO&pO8t;!*hZBHA8GQ% zix(|8CD)mvO6lgpQHt5hy|h-tTolaS@*j@7Fg-=2nvP-2k)X95nT~WF)6$QaXJ~w$ezt~b}V)H8jz-f`=abf z9B^ZWIUpFS_*hgCK?QhBN@|S-MF@4B=Jal-Y<&~xil=c-y30LPeDmx zuBBXZ6_bn4p$_NF&CNGvo|^OW><@w_?oelyP;MulaDR*R?O;5>?* zmlE=!N9LLi`cCSlWJE1Ds_);~{g`AiJVuA{7r^T;MV4U)L(mX7yA;a%?qzqrVtC=C zbjH|zI%z(VNeTJ);_xio1Bqb3daE6oYKbtrG;>X*aMZ)RxiR`dM~x6`w6k1Pf>F)l zFe`%jzE9>JZ&-A6ou<-0=#R?)&d4!L&9JE2HIWMcFMg%z8A44wpK?*k)cSHK`NEw$ z?_kSoR^jtzU}Q9;N5kBf$3TkAcHG|T=bT8Bnulojj1HM9p^UMU{*fT&+q+J)UsO~y z(|gnD398x*x}$RFnxm7?wYqVeZch4yxp(B{+I8(><&iWybLLD+Hv0iFyb~EIl@qv7 z$n~3h5XzS^a5=S%6<~q~4~+Ti*E}n$ zt41#S&o8bw4@a~B2rk_DL-!z6L_>sYLXXIwelMhT(|duRyn)7=(R>%K-3!7rJxVPd z;FDUc$Z(k+C^8d-zRxkw!WC%dS74VF{4_1Pm7SFpFy0X9wfb!h(z5v2OE%U9i@oxy zmL^+p($t1t3++`eU3Gn3D{WX?3;(^?*8co<#;x)BxSchuoW9GyL%l9abnB|fKFA&N!I#|3^yfgS|!btxO&*4B0m zL>t8=oH1(T?&OFM9z;7nd#74|X&4;Oq6+RzPtZBRDur5?2iH_^-8^-!SLa(F3<;&|)hh&f223)~}nqY?wf3V6}m;PZc`Kq|91X&4N zh6akGNOn|2^MJQOHZ^ksk{bOK{L&X_ThuncpyO{mVK2Gf=P9+F3%Z%5ojZp%P9As# zyL0B0*Lm{C5yES}3_vb7b5N)1i-Y#9%R`ECc_QWjKi;e~5i_At9)gx}$&-Vuw0Q^Z@mw=z2RQj97u+BoukYnk*pnQ%eZ`Q(kBCzgou+lz5i8r;`P~;kFk5ObcVGxwyi*99$-0q;z{bOi=lIpUH`I|y<$1SZ z*WtXRQ+tHeyy<=Ynzx2D<-j{-*k>}JiJ8FTiltnifP7Y4Kf{dX?H(^3>PvN`q1M6N#mezHL!LG+RMxRQgYrNR zc5UYNANHNRjH#L16E?e$v6|4l;@eW6v(Gscj=1$2)JTxK_V0p9_RY}HLhiD1arW?D zd_-40cF+#PWGaDul0D{9g_1|1^MBgxb(Vif^jh88J{66Vh(Etrm5sh!25-Uw-siNw zwhU!qrZS{q{^Xs(v`m!5o9!60{^e%m{g!GIXp)x7fEdIGH5XEP>0DD|gzC%ah*$UR zI9cKmXGTfzr^odNOeak43gD%anf+I_w# zUxUjKC*%Ekb7k@cfq?-XkoWn&l;5)&aDf}ELxps?F@B4CJ?D-+`wvfcAQnuevcSoO z)hO@L?GzlV2FLPQzW-*9GW7g(m52c+Q_E83a?O9wB*YR~4*gB?4Y=~J^idJ6e~82M z8nypU%Q*QjZ`=RBU*aAcWF>8N8Rx&Rprxj(VTen=*z=T8v1hLPfX;p0EbZR(o+I;J zje|vTV}KN9fEUS6GWB(iRL~#up$%A8k@u4A&;#D%=$9KbNV6%CAap+yYinEFbb5yq zqE7a^>>e!={b=%|@yl5_oCuxv1aGq2FL4b+LAPf3fx3#;;1KbkF-n$d4|yluw5h(n ze(}^G{k!C_!e!ws+22;=^$(KJtgs^+5aE5X->E^00V$2721`kq7U?@YI6@tBd`TF+ zfm9Q^O90^Z%P!1oUxV2vJg9pUynU>7-hk*Os4~ZVG|Ed>zCh^W*RNkbC31+~;CVL7 z8oZ09|H(~j>ESC{vX6?Tnk*20zFhA>-k$2u_VJg~KDH%72e=r? z+O{8NcS#UhK_30 zJpg-}^BHC!yUefUU>i$h+E9)Zi#9YlPkPRCTpX`JVx?q+?G}__Mr7m*aQURp9@bG( z=+Nw^bn)}Xx4u`oJm|G~arZ*y#jzTKYrgH3F9Xw0o063!@%)pbs_bZKl$pT@Skq@5 z{DU%CWFhtjU9s(hbTVaHh0bWLMpe&C-`&D)WBG*)*r(qw}RG3)Uq-dk~={Elg< zouJYgvA4C}-JD#Tg8|{}&3>+6q*AxqX{Basfw`)MkV zc7B#p6NKwj0r4o6cU2cl=^o+2B`^ysPpKD-=YV;M{93Nw(%KGTbX`~Q0stKVT}pa8 zMGhS#=b^ofYTt)fy^r%-93v_PR3bjNCafO+x;io8Dk57t%E#(3GsmD3<{eZO&crhD z@}&oM)^=nvA+t<_kr~M!np-~i&;y)O+@9<7TP+W~Q=9gP+Ig-h+9QaZm_2chiy?d} zxC*Ygy%G4SMpBt7k_D>jQ7RrMW5A@VX%j$w_PD;gg)dhlWjtT3c-*1|bu+jmfZ03j zdHoYnzgOVC1*yALmjM&gv^-qlY2#UdT6^(fu~&b#+s7!N`N*^?6d9Pxz? z-vW?7mD3wXsL>s>=bT@k+&Ho?)`Ro7Kf3(k|3llCM^pK~?LIOVp(x6jl0;N0vrQ5y z8H;2pMN)>$)80Z+3WW%v5Tz*dyh#WlQ|6hrd7k#RhjTxDzrXi=&mU*4bN)DMwaB#h z^L(DqaNpN`-PdLN&gqU*wA{oqe)+c1SoDE|!Jav(%B=<_XDY5TOz%~PRRtebDwXZR z&Lu6PK`1~?Y$_c#0E!UHCt6^b4Hg8pA$#c zQe8k>7uwA_u>h+zXt&(GfLK{dZ-^yxwQfi>i%&F1zUlp?-diVo?v34DY&9p-y9Zg= z2NX#Rh&AAbQhgMZ75Wgiv(x43dYeSMQ<{tiGCuATJ;DU$EgKfI6tWA*bo;E!D{(AK zj1?Nwu^N4lEU>e?n=`2M-TV6GH&s^7pCGx>S_txpQ5;4~r)3wCql${;oD*dSKs8hl z@+x(>3B)ya`%K8%OjqB|%JDKPT292#;PFLOjtKL=?#psxr(s(~Y9**`4Jz4_*Nr!a z0I!ZMCLXcLuK8-FVTY^F^L7?m8vyqyxa%&3vtD8vWsHiV8yk&W8XNK$mEloHk(eW#I(25-^XFMfT3ZFb zJ(`L37G4(xPBJ`7*X>)~{u**IUe7G(AQ-5R{T_ws6*`{8JD? zyQF2}hG@IA;3n&CF0L91AR|tF_X~T9K5g0bTyGiK_Z9qfL#ke{IrHn#34>4^X%QL6 zqxbz1n}(+iuDXn`Uq2W;v~O^=G@y`7D;`k7?Th4}I~71}HYS34zL`ffT;x9xk0?;{B;^?(rq$2L;N z*(JQsRaSJI(7iQ(BAVBCp*-VQ_Pv(s%`jX?M7-X0SGpAJ?ZiZU7}+*dvBDH3ngLV; z>Z#Vb&3eYnItzpB>A!y_VUl#9Ha6-8`eQX`{-x?eEOz2<#}ROrK#(vYjDvn_P8RuD zZN4_>N^@?=@Un$GefkYr#(SV;fw2<$axJnw_WMr284fB}U*$y**aXzOAsQJ|}cXsFR9MN_Fb;zZ2itD(`7&4?kv!R1nb9)|=d4j5(>rw6@afBBVf z|DqF)M%4Q3PeX!bQ~XK4Um1&toH0!Z)8V`S;`7uJ^&M-7)|A-gg>UygwK8w>m7O}2 zD@JL%kq#L1PfwwYh6Zit5?~n|ICwDdet(hvJr!FpLFp(4SYc>TXVv38#CmtV?<^2Pa-sSbG;^z2yt)Rn00 z!;342O4#?BnyQ`-{Rpv*HMAjZs?g!;5in8v}$5_lJ%gmZaGqJw6~An}Ed{E5f6JEd5<- z9yjv+=ckkpgl0cQt%R>S(h6lUcCZO17Rlf zGU5S_g3SkE7TG+^gHAzfh``{t$iKU0)X-q^{_`ncuj6Pa4>ZzJ9Dk7x%n{ggv&a`U zJ6$}2Fdhf+IarSozsTD6&ud@5yt%6X=xtu!pe>nidF4@Xo~gTW+kNzU*|D|}*CmB-Z}W<8fb%+h`(E7DrQu8& z*|Sk4=*Ch=2Gu!h|CLJJsRbG^_Wv;svfPgE^Mh#r%FmXh9n~+aHBU@FJ`ke*@zb>< zX%t2R!!xa?-wQ5k9+x_?@7I8o{oYR!SRV?etO~|=7aw0JFj)J2SDK1Emqgf3pC0ud zr0)OQ_}*y}w>mEaqk&!4CjhKMX1A+k81GPy9@D}`RnS`S6fF}+NW|eig@}JdM_@Wy2 zACP+D_`(aI$;=(4Z$NZ~2k98K zkH77GCE3iolsX?p88xf$z2-|j529nG#6R&hs~Fmn4{FpSdhylq${fFZR~10_E^QD9 z1dxL7d2=_v*TIi|%)12}G2}rp{rt-A)c!(Jy!e0Ch$uPW)c%^W^_Fb3ilJC&!y@B5x4c&&2i7hxAn5BCKuAkojTtjg#(f^;2 zW9{D;^y$+LbmFua@n$(yR=;L}m6y04_M@pOUoIFWKO)E=x3ILdZbWksCtpKg;qmKB27mf>P&S@_!!I7 zQeC)^G>FIl%`YcE{im;02`ng*vRCC@e?U3B2a+~u8{MCpmiG43CpJqVZ!VLpv-1ss zKWa_liG8#;f5jv#J%;>bM?vvd{ELcIHqcsI=wB2%^c{;IvJf7>PkW~xc|YL+Y0X<1 z5tfo_9w|%zr;`=ZYjJMJ0O*mpTbs+bj_%sfeAivld#cd?z;7y?-aa3Dd`#7|k0PCL%^xwG& zZ>lyFA!DeJlB%5p+4~ukzH{ut#f$VrpMs>VSz;HOu~nkbCIZU+a>@?2paJ&0eS!0D z=@K#quBqp75MWpJ$vQw8>=-r_t|g6pnf?p9f{{fVzX0<_!;p<@dXIeHxF+`H}L9ETM8Zmk4bcL|u>(yDr&RW=xVmO+HVZ@iqd2opO$%U|aUK`^FwPW0nQrv*B3bJilzXmIkC6y>0WSIrVP0!G%M zK-9YlIUC|Hpy*!tn)dM27QVb~YTeqq47T?WmCgM}7d8W{?QF@=)B3`agn0s=x*{hE zH}Jn+3`KSgwbHD7upWcB;6Nu7iT+c?3E^KIB7FF8?acwSuYu2@hz|LV#h{9sP*T?^ z_>L+@LZt!}u-V`tOa2CDNh?XBU$6AeHn{MRQ5jp#41jgc1_T0Fw(D}Z&~E-`Nvv6J z$DoZeujhTU6@su$4he~-rST3Y2i$GJeLS&0y*aL{FW$QkdIsJQqmSYZx-6e;SZ1{d zIWGT52OnR~1=Uw6C#F zWbLiA740nna~@IhAemf0!t4)X9f+#7_ES$6Hz+!D*7DCep&S$%ZM|7Z<>NASBZ>Z+ z*4e|`4@7+DJnOH=(=T%6)5US)M!(ahUo}nzJb60&)L7~)<;HdG%-@XIul^yzo#(vA z&PrTe8l0rukaT-{=E}8m1rb5Vx3h7bjJ%bjDz_0nA}?>de!-@B`|FmiwT2mamx7Iz zpD$N@TXOk*S6ekrjF2R81gzm8rl!Yl4J=rliT?^{auU_!W9CwG*X8g+qs>T33&Om=GX=5;lgE~mB$5S9g88H~f5 zdR)C%r-Y4pV7BhCu{O#-ec~Qxio!Zag+Hn@%eh@kV^_>`gRIsghGAP zB@MP}U=Ki#fCmSndi^>?Wh)dxD46X)HhY%iZ{)`*zgOk?WJ?pj$v4Sv$w=8liVabGz>x;j7Z1t z-=lR4!VuZS(y;e>a%!xLC(|(o z6vh_(G1~Yp(`v>ytC`K_nMF**6f;~Ujd`?)~p+o|NCuI zPc!)2pd4GfsljtDv-2tNPi6t1fhzqSd;1m7p8(p^srFPj4yj}lHXhmYoFYxheiJ(F zF>mGtYro+!=>ChV#m0dV$fZQEG?FS`HAqcO1@(J~bo?JdS){=kKJdyvI7B5AFpWUS zeT4`gJV>vjqoa1Ef^K-d&oO4ud*;|Rqi=LpkVwKbT8;mhejpvUNYt<#{9u@_t-3(} z8fv;n2YeRFb9(V^Ggoh4GvDW?(LaYEr336>;WwUo$hXvmXLB(oH`(^7$CcO`hkDwT3>UJ2z<4XMSP zGvh~0D|KWRq#tRKuS@NFW-a(-!iTdSz^ z_>UK871*@dT?PVys>YZ>!itG#ioBuI=HiVBw+9bSf>0^F!f!qtsXZxbNgZmpIiBX% zu6=N|TY2T3Io^)(B#SKW4(UQkI3$VpD zIH$*fK7w>s!ej8io1B@+n!z;t`E&V9pfE4qyR;}}N&!3kck0JKHg+h7+HAdekv44>;UN+CK zh~;0?4D(b@kDaw%&Cqx7STMI_p2e@59xCLWlr14MZDq^!(sa3AMmF;j@Mi?;k6n07 ztX`uqC+8`J^o%Gq8F)aG*1Lj&z2I~C;lqbbAP3ROIsWMat@y)-4-c^bTpw>Sj; zZE^EAKs;fSWKWnpqkrM5$3CvlLW4&a-<=h_!#I?`#YYM36S_p*!OA+ZR9xKrR5D@D zFI2yv_jf8lJDYC`I*e!3aTNcRv%N#FLMmXIU?_wFOaAP{jB4YLDoF~Q+#l{lbD0Z2 z9L#zN{Ox8%GV)VLNBj6x(?V~Y=yninH4kQUj zl}BSOV+$|QLxzvrb@BSx?f$;7VV-??h+n~#1z2)WU7$mBk~@L%(dSUQ6D8f}RDgi* z*hvJX6sXkX+BALZvcx@yI{n?F1KafXF?-uq8XEslzLMO@bt>cnANfE@ek*2^g3cZ= zZyjQalGP_NB!BS#SbFzSq!k53-k@PM@`Pv_m*pG&$Kv8|x^FzMivBRrFq3_movUdm zFpIpJ)JIhfkgIeNCQO+)^Qg!u4}9LuB3Jh*zx$r{%$IZ*hW&Yu8yB`KH^Q#uy$Rk% zw;ZE~E<_$afWcVW`8f%=j7=3;z5Tm5pmfKK{K#36y_MT@94I14`L3jzn`##?vR+P* zdwVKryQz_k)sqQe4_i&OrD^NEAJi21q6{sjZRnN@Dp-X()_|=nk!kzU&_lL#Hm4CK z3l|FceTl}=Q38jCVqQrP_kSQiEe#hcL{!D1I|w~uGkNig=$#OVKBy{ zWx2;Vj=3wc^UEdA`T`bs0}Pf-O5H!VM1s2+H;~r^fCLRTaAPORffc)D76G)zyGIGC zjvo0|60}tgEbjO*OMgO^vG)}$%!@Y4h^lMro{R;m&$qQKEbeHA-%{{?(iEnPoOO&7 zW{8)`(c#s0$0*DF;E5qgngGVN{x*NK>>_yLCIhhl4_tV8QeqTJfhU|t&-J_a-B-~i zbsAgVfaV{N&j(fWhlQ&N70HoR&%F=J9Xy(}+AdU2b@~-U;A%yW5Tb@CFN-BB%YQ8} z`d9Z^c zf;dN6PqaQ9jCLeVaTHoYd!~U!MxZnTX6v;jZZoM6b^lOxWR2zRO1q3FO-qzfNi%Gp z(7%H}{?4jDcm^0u5{;1^V`le59N4X z7-*Qd{~CP-_*sae!!avn4#8EQU#O_Dm+9eu|7uh~hZR7`nL}{!lnyu;VgG&CTfg4D z4hsDDueCN8<(Z!S=Zi@zt9<5E ztyLN1;NN%O^*keJ0kWqqGnbvceSKd+W)5Mo*C@-#(5e`HDuH@&UKm#g=k<(b&5ucN zBj26ST@TKZ{SVS#z>U-89XkNLt~-v7nrF{$14`<9qi;BuA%UFya%Sl(W$g?0S3yEt z>3;7ixK@c{(%vNV)>86|Spx6zvmtM}_wH?gEgU+{pA}&@;EI^o2L=WZe~+PocSaR8 z-O0BbU)6K)3>?;Ns6T)A+b?XX5~JleoJ7Tr(jhMISFjM!v2v)=b$0%0W@gr(?Vka} z(cv*zd!eW$MSbufHlajrXyzZ`Bq(A zDp7+qs`G9QC|;(40iHbcvZi{0`9olr5(^Df7W6^XD6@0NK?q2as6SRSZTmlFWJG*Z zrjMC1VIob1-@=PQhBFRWnbBu5_YY==ayO>kyLT@(6@*8`9p`TIiu~eBT#jHspeA_| z0XLcp({4Z_;=Mf-9AC>`QyRPb48Bll>I(JYyfkjQ>`OUqH$nvDV>|HoSP|5P0+OwC z$szY^3J&`fxrI8`JavYMCEI~uqS}kmzEN!R7D7-J(&RxjVF2)e2^s!cC)mz?6Z8O= zp|J22U~uwU_S%mY=8u^pG6ITVzM?`pf(ka7;V5gHpb`fy9df?wJ+=^Uqh1t1exmoz z?Vw5+mQr3(-hWkJn!$1G3>}(W-dbrXQ8M3HUhtY$QXj@ zO2JXs{~$Ey{zjJh=6b%ls*3+z&r8{*^QO0H05EvE`a(k@=x>34ch`6dxKk$jjy(GD z<~ZGHW{z+D9YOY4#plP8xNk3AqZ)rM_FISfPTj0o&|O$&%^qC9XBtc6og2y@(Z%Hxdp4j-a^EOeL!c<07CsKX3=De1JmsdD8Hd=VH)Kt}~ z*1(i*S?=%={vxIuI0gACPJHVGXr}8=a1ge#8LYs;9P!6dSCTfXIIswEJiZBJ5!QWP z0veI}{=GOom-cAdMcQ^C@U*(Liqh6Dk=!Je0nDi666psDOtz#UQbPhggs|O5~imEs&!RH z$3~%M6UKf>RLs7h$J8`xf^<+5M2;g8qQE6H-#hjZ8^tDQe$axB}E)A%qj$p(V14zGV-MI3Wl?ox@IY zQL6y^s}-vL(#0Jj$+WjSf6Q$3st9BMP7n95;d)PU)Q_J>fG_jIt)~-QwzwJC)0%TK zu!MJ`tg2JXqSWBYIfzYH+c`Y(RHn8)24r_^0olgnvrV}8FCWUlS8Ha}a?;hqV+@qH zI9_9Z&ESguPK|#uNWL}V#>5r@1&cnw_AF)Ms_f6C!>Z-uqX^w6NTGMmjsI`~vplM@cQ`u!%Iv}Vg*qO0FYKPI=qStuV-cVmp zhd}ywBzp1BfTf6NPf+Bs^)EVXYP8|ii^#3khAZagbI!ZNKsv0W%O`9WGM@m5;jB9{ z^y$(eO_XyQ_V22f`+g2u0?Ri9$C@p^gG~$CeFe`B8U%o=+CAs4(>pjAhPqCwUGasm z=OyLc?vH{gqjo0)vT{E&+@?t^;^nh z70@nO{>5^;90T)@Bj&%K$J&;$kx{DLPn+Dj3oO86cLvqtaAI>q!;a08zF$CU+r|Ln zW`z5aAu)P5ayw`azK%U$7L6k@XJdBww=Iiq6X~ji^G3A-+9RP|ixrY;kWul4$OrL< zi~=>U`X3322pDGG(pBq*-8ijgV@On}Kq1QQU3|1jSZHW<;Se?ys%NgQu6ICPu$R!_ zm_dehtO@7Ztlh6dLG%=(6;Euea*ng+oVPk>AgK_iTiH7pXq|owN^TO-9gukZ09l3? zsI|$yPA7{)nJrfhGUe{K2F{5T|%mbeumgn!eNl}$X=V|m%#>P-a z3m!9saVA(Au`6FOa0D)L)7l200!TvF(EPju{zGEQLS-iWE8bW9Xwj)-tk>VvZ)SNG_9{wy0`6ZlvvdC| z^cLMq1we}J7->cFwM+5egaI9ya4qd`Ut|WfCk#Dpf5sjNZ4g7yz|Wu|JQ5|bM+u2l zI~1x@O48CqCx2&KQG|r%&p{@jqSC(|g0(e!<^O%*1(UYKIHPqRX86WkIt+CXt#=Zy z@OjyLxc(l#vcT#}MVBQcl+e=J5a?a4{78io*eE1g!tZ_e$pCn!h(jm5{Gwv2_bILMZDcXQ;k2g51ej*+8OH@jMQ ze7QB7`B^g~DN_wYS!E8>@3I7iW{gwwgs?w$jI2`U57E;F*qPKptPlUbik-V@0B0|T z5CpU=GfL0xAK?%s+$2s3DPa+(Zp9Nvd#({XR!Sj`U$y@LG19Disl(q_#4m)LP=lKM zIoK{Kt6Mb-hxkQU+Eca;43}+nx4B*_-oh>B^@^X%euOfCmCSbPERk-k~}1b`A-V*Ehr-hvVVW;f3gLZ1LwrLxBWllA3DfY zBcnrnCp5-Xm;PoBoM*M<^tXKhCKj-Qt87_&pw{M} zA1_YMP6vF>zp`Sh;?4%Pj{HTdZE6dD|IjI(QJ+DL$I|x%q%toeA`o5cTrA`w%hei% zkCcv_>|F@uN!-fD5-mLE@wb+`V#d%SCYG3)nR$Cj6J}jIP6}AyrLFT$M{uuGG*bpf zDq{r{Ns*sjYIRu-+*(YY3OE8{lrOW3Mt6|s92dY8&sO-r0k!Rq_wV2Dbd%;$MEd63 zZG1g^sGMZ;qtt?h_VX>Rwlww~WGm92y)<4OIC%GmUV{9=F}7wamdC2K`?PoiWNf|3 zi3iWP^MdBULiPRk@88Ld zry#F_6_-S%TVVE=_vk;Mskz2}UB!)b>idjgx~_G5yrZ_ue3AOqbT!+%2s&Tc1m7ur z{sfB)a*kU@^o64mWqpHu4E35DH@dWZ-6RacIr8Iore{=FK^_*k}`AlrO3!rbHFMHQ?sYz+DE>0Y#mg7ejEuN1 zC#gJ-8s~;F7jZO5w80--+sS*<^~huPeF4yHc(WyO0NXOa*X?BssmTNQeFziKE)S#< z;%MjUow9e<6+IV)p=}7Xv;%<XxmK}ZZ*!j6KX9~wlT)6lrF zF+cF7=N|k+iOr~k`fpfhKz37fpRK%NY|dCZF#oEyt`3f2W+UQs_)w%GKz4173-zDV z;r~Wdh~UgzTQ#(_wa*$D?3OB-6oCgn`3HhaLN5WsSwZurQMYD7#jA}pkRx{x;KU5z1Y@Z8&Kl@3cp+zVPQX&j?b=BsGz=OUo9*YH>})<%kK3 z+46(AVjxWVcd*sij?3_h?5x^HWJ~Vt>+j}$iF|@Y`^@W0U;5@Yn;fx$si}uxD?bPx z?4X|lHS1IF-n~PYc)P9iJTp7LDmdP>tS}i8-$8TUR9Bz$wq*BUdPF$j!0DUu*>lrt zbL^Ux55rrrr>9G^xbEZX#KdIY5ENZZbB9v~%u;_j6n&C8eBP0)a3ahQW%B_v9@W1qDT`GqP$5 z_H4Ho8UHrgqbiu7{Mz6DY<&C{C=!nW0U0*ofI}DLfJFo91>u1EPw<1JOwq_=zEn^l zJ9jl5A}$Ptz6V1HQ|vGC_S|9PkR)%2wO_HR@1sr&Z)Yi+sK0}kuvDV4PLSVii-?w? z^Ir+OceR-ziHFAZToXYIW5|Fc|J~QeIph$o4Eh70>l#^~dg5dBb9VEq)flQ+|8walJ0yFMVGp) zMtt8f7UyhsdvmO$1W!}ii<>7J@cAd&g zLY!3a7oXMb;PECx4zInjzpGLrN-ak0+(bGQiV)Wifu??0s~D zVdG0rc4P3V`C%)>7EGHWSiDLkPXsOx@YHzst1M;lq&-0{U!h=#B>_SgbtSJ!Vz$Vv z2f)XHR%_mhJXmT^vfwDEi0uy_F6SzKOiGs`hTd3!^PO)_mb4)oOYsxDF}oj~C@2%X zgyF`>Vrc=kn91@cvDo(F?X?+d^gABsjh_7FgN-Lam@*hjpLQiBK_$!Tw8}NYguIYX zax*$`hw-uOxgbJ*=lG*jHjP@Rk+(uPmKw6qce#nIVRM_ z>V}A`Sf&!(^h>-JdfoJuxh;6k{4$?3*dw6J|xP%IiX8597(yx5XgN-@4Vfg zCaRefkzwW{l?#@pGwxwdg;=`ss-)OQmmDY2VSm0HyzRQZ1U#`8c|5NS;wdQ0IgeC! zV%9!!A*&giY^U%f%I|}l`|l*tR9EOnb_Puenc(qN^9wZoQr-kLH1^!>aBhRAOK~tO zMB6w+!jeiJ$=YPQh4;i)zYc#$C30}%ik8)Al@#dI#A$6iUb!ipfx&jo2YZk8Qi9Rh ziZLJ$PF~!=yR_0)U8FA}$4_*Ky~iA)IvFF(-cZg;qAngk6eWhnc2Fj82F);lgoBqm z2tjC!yq(!QTup?YH3fr9q0oy8y_gq!doY!bcbF{zU1q>M0iS9Yl4pql8A`oAUi?5ihWA6S}{^R2(d3M0XmeMW8P&-4BLw^vEZZ zuiJo(SO@envEVl8fF!u-qccY(B$lA&dDk?#7lf5NuNdEeYOLp<*S4p&puD>S9MnI5 z23UJOX2_7$1e)%CP!8qjZTk`|=zA&b`97x7@;!(XX;oZ!zqZDyGiL;=gT>xWnb5as z+P;NPh^mpC#zcO0wBBFfM%t!1K|DPz?FLYr8cKlvmt0;h07dO`n;|%UxdFh9^D~!+ zQ(AH_>wDcKDdx5vY3Y~)qC2a(xRy4TZRvN+e|oNYI@?gD8NHqLAgCZJl^bB!>oxpH zO4Jo&{6<{x`tQ9>Ge1wrf631q=Fp`m+}m@!m6Qj>6rwENJZtIRK*{OZs+bqp(g7)5 zkk1LnP>XULKt%&pELRU)DeQ*PgM?Jy0yoa0zFIg(BX!}G z1POMQy1a86-<=E%RJS_kw%Ch#EZ$u+&Lv!bCKwqgmS`dFk=L`8z^rEQAg51Z<%Ox) zgPQ0#w;`%M^U1pLI{^i%0bji~nxb=0Dus)2vPFCAw%<{CroT^qvn$53#Lt07s>6)m z#%-$WMGK`+9xehwqme^t(Z7ADJ0!-!dpi)&kDHn%s4c2vd^wTDE|SL*aK>*?$;1Pn zgW5n5YQ8b%_)!@d5sG?q0v%FKHry-Cgz$TfJ^!-V_4#@*)Ugq$UR45r`}PQKDlG;H zDj-9d!)JZA>Jg6x3zQ8&LDfWZZ}>62={Z!FS<%?i^i3I2S*Pf$`<$tK2i8*3tVoZ^ zzpc$c-8=Y~kT;HdIN_G?vHPbWA$-)`?dd9~aN{e#`hJV*`rJMaAr%(jUky3v#JxJR z-`t$NdrlR$kkqv2Oh{gS->;ELWk(~Uyz8W2f#LP`mRS9Fuzju3R|bXVsRhMx^~E6w zdoVrxE0FD_LoRrTs=hoV$IsqGz4>N_1U)YkN&!$}`>>g~HEu=D7fVpnY1T5-B3snZ z-LzL3DVXnmVT$;R-)5k022W5P97=!Yblq0PfVJ_fwZjZp1edZgR*@@OF*D%*m5=j8Q|D11{madDF9DWz|=g$zJl5OEDkI-Jo4j%6i`nZf)`6*)nMcp#L zEq5i-WJ;`zZCFl|A!`RHkbDK}EeNKW;Zd|E*aPwx_vGYH8y7rzkR@%1$Gz0t0yMyK z_-B_WbNjV%o@8yF?+fp6JI*Efjf_3M6GuGFwr|JxT6Xn|7aMyTY%@<@P&1BEx6}A? zYmlDxmybovsh!#4gfw(`lay{ONhyUsxKY|FANEn8S@oyk29xesW(Q9#Bxp^}Rhz+2 zRtkfg7YY_yneaq9ggE=g*!Z06_YeBPOEKvSF}S612|p^~x<^s%7%8tc<#cwF=3VE_ zVJuP^^1^Pj&st--#e&WE*V>cyGueG5x;v{LLM=+w*p}yU?VHsiOIuqW&Q8To8=F;u zszy=QcOWZ-rpPYG?&NW4BPwy_52LTM!It0GTlKrAh=imV8j#{rz!6!5(I0wgMhHEH z+x&Nj1nnnLwz~X?1}6Q40GcO8qKmQ?4zW0*x9vnZ<*gJB{N=&s;1M*Db0cL;XK$9L zZh1|PRA{9bnao!k1k082<-FJJ>6D}tb4ZO`G~+mi}=_BGk$@@sLP z#aCb_?!M_-O8hflRx^qX=5Z=uIwU5RlG!MK+T-3mCB*i2Lor)|!hL$g%xPLZ+k*x~ zWyZDJ39#vR4&5!Z^o5C{nm*Yxr#J_U-UUao(5zke4y zvgM)Jt55CCj1wXqE9@7s1RMbI4`k*j8AzKA$3$F}#9>cYw=g+Myiz`(TtU9pV>zwB zbV7%p7XW8sLn48M!ovcfa%dc38dsD@Ax+Ckq2TH4`(lgs%Go z>E3~z`YGqV1{}M;n7F#TA8-ru$rM03WKSg%I>aZ|1afWa9V;jWr#Q(}6WDW4!AzG2 zLLw*;0um$-s+InrP&1t46*Ja_r=A8Sg2mBLX%T*Fr^$^up*>a9AsTh#aRqH zgcVw3_r7OeKKb;iRaQnNC|fEefD*l<}Abeb7$CewG0f9FD7AcVfuVMQO(JNVf$@ktC63X>7hLjVS($;xpUR6 z3KPT&?>Z6xQT-iS7|O0`jC0xc*Yab^Ov-mJ^E(=BJJv<875!Ly>6*aYrrn564v8PU zrxINoj}`v709t?W#i2@h0pAQVb#cN&gW>AU-RzbhJ{Rx%TCEeOt&DWX#V=vb_aJig zU&<~S;sd^j(ujP8Wrq(PPDxMi>bvJwAY#$(j4%@9G2yBKU(oYGnGy5*&tMayTy${opFD>s$kvO0-__?$G4lWtpia(I^3k$1noxA{TqLD&gDdDnRsTtbo89D6yaW?PdLD%u+$&ZQ@Rc z`F`d+j>5S%74;|RLUGJe9zQX;i=4N3SYF0fX}8V=-Z%2K$2{u=lhP%x$8Vcqf9Fs< zosE~?yerQo!%I@Xbd5tU{WH%oYmcTk(hJJ%@ALfEVhFTF#c*OV?JeW7guU^_Y3>uM zo%->+gNWAEnS9YMEs4t4#aohSWZUe8DmVluR+?Sh-C~_*T225SYzK|@%ixi--_^-F z52M!+jd2d91h7g)K;cacw>4LI6^9RX^o8ri?=9mOa5S`vK+Fq`8dVxhk_%>hP^v&_@J(qOA79r+5f&F6Ts{eRQTJGpVa3D)g69`%UVxYS_L5@rTpQ`MDpsnG|_wbo-jQot3mYa%PC>}G@Y@t>e7#qQ0Vt-oJNjt6O@d}&~_O0 zJT4#>9hPiM0fcVSkf*|>XWbs}MN+V*>1($^6BEgulhY6G7`Uamj@7yuXlkZEAPD&z>>DU@esk+9Kiv5t zIHeBWzqQ{$^V#ExAjZ9oC-BiNOJg|yQ6A|UMgsmBYcrl(K-%Id`t{}#=2s0$o(;c; zmzZ9FAAeu2CSks5Wr~dnHros$&JOWb`4ps$Io>;&eLS70^Uw%=tMr=aWGIi zg>wF?%3r90Bysd;D)n*~R%*)}C~7ajEbSR^zU+UO78DibKr_#W{QN8Xg3kjYRGRNk zH$Qg8Z0S^i=$YCc<;LsN-U+hjW**kGA(3_rv+FjZIu{!s*ekQ-qs3EQyco#-N3tOY z4Sj550aE9M=j7bi<+k^`-f)x9Q(Lb`q3L`3#px@FQ|0ZWGo9PsWBq2^t{-2RS3EoF z=UR2}q?H+B17(ntMdC->sI-pKJq>s8sy`dV5^?VBIyoQ5G|!~d(`NHQ=rJ<3R$JxXdZr}@tYX#JDy9|+v_U+BXB z2^#pnrbqt2Vh;b~g+&@B*&-Ivfd3kW1d8@ApEa=l3xLo8vv96A|AC#|2b%#<5}U9J z{IWIgqsN3m3hIb27oS8f^V6m?r8mSkQ&3n_wgF(5pdk7WA3rusDzTXidJzQD80&9- zW#|Yv6jnS}(5Ey%s zryPzbCfNR#J^leZyyc@uvJ!PXdk3GreA!3;k%e)_(ebXoxU-z_TA~F9&c~4cJbQTE zlQY3t*nDGM{J`M!pU!r?&rNoR?oytl1YAX3$L>A0A+(6GQ}BzL8xe0yNRNzt*}aM8 z<=#Xf*r8a@$f42el^tqf5`b|SzmmP*JMLns%D3ui_wXC2W9fkqgFEi_ZP9r=4coL1 zhYKNA#jm7x;R!k})TW%<0C5@r-UHXT#8o?D%$Hch5WG{!`@%v6K@h3@h{^i)G+H8R ztkA)4C_NXCjTGO7xNgK>dNRr6x{+D#O|rzzotDi`q}nEtbxjVBkMz)1Uet9Q!Phgm z@|K?i2xw_kTp6hPJ3VzJ` z{`>QSbxp$_2SRs6`3_Oh!YxU4ONw0q1^r!i0i{own5F{DTytrBZ)Un>p4PLZevpnhE!XcDXjamZ<}ga>tg&#%d7Rsh-}*H{UFG zo*cdrJ~J_Q`%9AfdX#r28L4_+&GK9N)!KTWdBMzt$J+G7Mxk;)b?1XqRxZe5!u~&n z@*7L3Z7TaAtpCecc{_>2TcsH@|$u!_~h9k@G}G z5tdAtM9tBz1(^qt+1_$y=<3yT{9=k_$GV3Lb&RQPJ4@&9aTw* z*l;h?FRD{i6|d!6P4@9ke~7{yA-;QgcpBjz>2Q02oGyif8~bD-G+F%e<;$qsT}mLr zq%fS*DpXAM7aM`96`k!*a8CMQsb*M&rcKd)jAwxDL-z&)aP)B5sZ*zp3~UGCaMPrR zSBfZ!CBpAh578r|W5M=eE^@v7M>Xz3bu?;1h`M;UaPE3x#e&CS8MHtHjXQVeDa9*U zcXVWq+y9aN)!m)iQ$fjXi9(KeoLeBp*&NBPdGO7vSyjtu@661M-{5`o#UIrVO1;7# zu$NQf$|OyMeP%=~!Ri|hQ1B!9b~j%HVBz7s_wSh=8hry)-3*KPshp9O;0XEUwgxV|8)s>@zMw=oho_ z8FlMlRHak7W<2pKjB=sC;PuYb+s70Y6_c-qR&09A^-gphTi$mUcYK09e`x5rYu5vg zg5?duiZRZEPPn#=^#o$t^egrBnGI{S>MKe3^JkmCfw-mqEcrghVt%Xe&vaqWJuUle zkCnnWy6a~Pq^PQc!A@I#a) z*^o-2&`Dh{_?hz4?W(FVnMhlkh(S2d;A?KSmJPyq+B|p$c$26T5c%8sqjxu7U-$W{Cg8_mmly~oDv~S*YOy0ob5TmyZ)=y^#=jA}#_N;}4AVje*Vq+&y ze9q3ULn+WtFK3Xeis*tmEG;dCq7eL7O8L*ccuwy2 z|LIvd`|Ew@D{oiZbwPU|;4b*xz5DT{@rh;?nL(nd(RXvNvNG)lYxFEfI7U{PUou}j z>uy4MI9_#EM}g3|@OxW<=h97x>FiG$8XE^gre;lLl}7kvw>cGPKL_!pxm4&#QwRHs z#~fYmLU#A=twu4+`VuWYM;LFLAEAgWf?lHrXwg6~r@nOzsv2SQJpK7RWauwh z0>DLSX)-1J=5)u028A_ee+Jd{UIj67RtvEg9@eMeA)!%rS9SGr1L8iJ!}Joy70Kha zzdy<6crR{s4t;iiZ!0lW1hjEuGZ&~@Psj01rVphLwXvs)%Ef35TibaQ2&W~P z)7Bwt{24#l;IYucI{w}ru?;-j`hXG9nJYhboxaHu=v6)?QXw;%_V$@M32)x)3|X@I z$o;EeN66FMLVyhPKad~y3T5!AYEi06)aN*UD|a^xb+rgNT}_0O@E9nsG}<{`O^|7( z&Y$|Av8B9G;Cmv$>tvF049WNIRc@Xi;W5S+?qU#zxL_wDeZ6`SrK*gB@PJr;`P&jK zQHe$rYqa{mHEP_B5LgSV#;lZnx%mrt_Ke)vlRI=F@ZX=LcIx1hnIlI-3b3jl$iaS zuVyN4oq8RjPyO>}@F6|BCg1G()!0i<(ALARu2b3LU{bFQJ^o<{uUGr;lZ7`}I6Tb`N@WYYXk#q*dyS`M2otr^*^%TDAJF4au0cq&%lvAB6B61{V9 zqfmyT8P#g}cmxJlNsB#T+#$HJpk--EpXDA`@3`yR~OSn*eETX3MqpSGBZh- z_~iKNH!U2BhSk=wfO6%4>4&qsR=suz!;iIa$NT})Rl!F#2A!SKv{Jh7mx z2T>FTfy0~Z9NG5EbuhEL(8JO%_0sgECR!$i?6RsYh7P)*2U8GdX4Th0>Z^Bu@WMOz z>@M(LN8S%h`kO=JY#8o4Of}%Vo|d()-#9+Ipr?HAl4#f(fO_+AwLmAS$V$n5&PA{- zmnSU28_XsQ$l4W+$eU}?_W!7UZR&f-lPXESNSPQ5f(qQ_bg0ws1^TD1UD&_w9lHH% z@t3`Ctq+?W@adZSH!XCB@8em~P@$g~7u*@CCcYhry8gMSKI5n!&-M|QEkj0V8Rnd$ zSI-t>C?*_!gst5+NrZ^%7QgG^(Cn_mAECfDqBOL8+18&_o-MzAtRs@JavnZdStxm& zg41(cs>98i{bh5s3@;7H*aM8vZE??wdS`q{B8k%tlcmTP9_3+fsJe9QwI-BIgpLiNL)USnA7`0;McBELWnwwV z-?I?O9kGIg+WFsEu~vouY`tQVU%nZFBqnyOJKuPssOSzC`g_!K9#mA^!q_hjHweQ; z{VfP$vr9I|XIQA^m;I62Z~_g0IwBkFj!aa2dxUrHN&!vUB5TlFoSv-(5>oCqf`%g8 z<_+6u71r?r^|iLlTvAsRK;({kUS#;{{rdy|(YQGONjMROzIl2GltWIvamj@WgCQvo zlkf#jU3U6uQ8!L0(2(=#ZU?U^(nTU48z4vc*fd^d0sIw1d;Sw3T2jLUMG3XgQ$Ik% zbf_HTaIS8<0a0Alkg%(}uX;`0RAS;upy}OJSgVeR?67ozAl~2z#{@w^W49 z8zbvsKYtArC$48Ml=rC4%PBo_1kEa1$PbMNKmFeSu=xA$C)~LyCXA{F&!4VaG=93FePJ4#i zdDc0qWbO-C(OyGCxB&vfDI0*lNMfeH3$KvW+bfQu9MsPJ?hMELSR51xf&_{xLWd5C zCW6WxXyFtHJB?G17Pgz>G#MpRlGlI<4C4q05aEKpys313H&gc~o50q*+k+CxRbl6^ zDKiyr9(;J#>3T7YLj_8v$v*jFKwZ7YAV|g*l=+XD2nq?AkY>$d=t#3n?eNyV`7uW(njYY)uG6^Pod{p#; z+H*xG@d7C4RY6shu)Y|A2jB+yOa=$YN`Rn|5yUWeR{jPslI9Fkj}^tnA9EeEhv$-L z_u++5){$jsPBwZcoy32#kwy(HQZ@@7qLrxP0my_L9YVaFHxnC9aXOo`S7){&BsNL^ zutG{IY(Jhv+E}%*0^-+_^HmEROQ%_%t&olaJ8Z6?d-Vk=E3>#*Z*=rI&#(0mQj&Y_ zj6^DBbBq$M4+LSgW^_@GIBJ#*Tz-RsGP#4JREo&n4tia-Y%*)of|b45?$054rfD6F zamP13F>1l^!NssoU62}}$`oO?6#9!MAoS&!?lcVG3P{JTHj6+_x2pMW+0Bg5ev{Mi z1VE33&)jFvvIV2FsuA;icGOUvqR~X|v%%p){+pPPYyUNya*4_boY3s8nZbrZ%vKY+ zW9QC<^z=9&N202vAdC&Mtl8sK=o*=poUDXE6Eue07h}?~Up=(X1_jx+rxf!8_nh0_ z|Bjd^?uzTA)i0#cVrbukukIG>+hWgcn6ONbBYn^bXsvvCu|cQ@oxR??y0txMIZ~Tu z<3=3*T_mnq@T0Hk11(&~U{zWrlM!ZD+qOvG-!u-x+4krk3EiljOU{cSt^zlMAlrrK zS>$P8o;yvslAEUb^kiBc1uEj2E#Ro8KDM)vUIPs46*~8{{ zCaSkAEzadGq;{{B+;ug(=ass8P%0a%O_wfsu93C1`$tHZXFD_uNt7>! Date: Sun, 20 Mar 2022 02:45:08 -0400 Subject: [PATCH 02/11] Merge pull request #12451 from FartMaster69420/prommie-blob Promethean Blobform --- .../human/species/station/prometheans_vr.dm | 45 +- .../human/species/station/prommie_blob.dm | 498 ++++++++++++++++++ vorestation.dme | 1 + 3 files changed, 542 insertions(+), 2 deletions(-) create mode 100644 code/modules/mob/living/carbon/human/species/station/prommie_blob.dm 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 d0a51db43e..2d8dfc0050 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..5ec9a83bb7 --- /dev/null +++ b/code/modules/mob/living/carbon/human/species/station/prommie_blob.dm @@ -0,0 +1,498 @@ +// 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 + + 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]." \ No newline at end of file diff --git a/vorestation.dme b/vorestation.dme index e2a8ed75fc..aff46b565d 100644 --- a/vorestation.dme +++ b/vorestation.dme @@ -3010,6 +3010,7 @@ #include "code\modules\mob\living\carbon\human\species\station\monkey_vr.dm" #include "code\modules\mob\living\carbon\human\species\station\prometheans.dm" #include "code\modules\mob\living\carbon\human\species\station\prometheans_vr.dm" +#include "code\modules\mob\living\carbon\human\species\station\prommie_blob.dm" #include "code\modules\mob\living\carbon\human\species\station\station.dm" #include "code\modules\mob\living\carbon\human\species\station\station_ch.dm" #include "code\modules\mob\living\carbon\human\species\station\station_special_abilities_ch.dm" From 5d0604aa84e2701f94e54c2ad4d97ed7e1c0fc59 Mon Sep 17 00:00:00 2001 From: Casey Date: Sun, 20 Mar 2022 14:47:01 -0400 Subject: [PATCH 04/11] Merge pull request #12467 from Very-Soft/removetg Removes tgstattion module that got added by mistake --- tgstation | 1 - 1 file changed, 1 deletion(-) delete mode 160000 tgstation diff --git a/tgstation b/tgstation deleted file mode 160000 index ccf136aa07..0000000000 --- a/tgstation +++ /dev/null @@ -1 +0,0 @@ -Subproject commit ccf136aa07b7d2dfe1a77cddb2b8b2d93cd86369 From a9bdbaf2517904e04e38e7749e22317aa93017ba Mon Sep 17 00:00:00 2001 From: Casey Date: Sun, 20 Mar 2022 15:10:26 -0400 Subject: [PATCH 06/11] Merge pull request #12471 from VOREStation/upstream-merge-8426 [MIRROR] Prometheans now do not clean items through gloves. --- .../carbon/human/species/station/prometheans.dm | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) 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 7074fdfd69..d65f2afb7a 100644 --- a/code/modules/mob/living/carbon/human/species/station/prometheans.dm +++ b/code/modules/mob/living/carbon/human/species/station/prometheans.dm @@ -211,12 +211,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) From ee62bdeb4eb951331501f4e743c2dfdff50032ea Mon Sep 17 00:00:00 2001 From: Casey Date: Fri, 18 Mar 2022 15:30:21 -0400 Subject: [PATCH 08/11] Species in Char Directory --- code/modules/client/verbs/character_directory.dm | 9 +++++++-- tgui/packages/tgui/interfaces/CharacterDirectory.js | 7 +++++++ tgui/public/tgui.bundle.js | 6 +++++- 3 files changed, 19 insertions(+), 3 deletions(-) diff --git a/code/modules/client/verbs/character_directory.dm b/code/modules/client/verbs/character_directory.dm index 824df8a5d3..377a679b2a 100644 --- a/code/modules/client/verbs/character_directory.dm +++ b/code/modules/client/verbs/character_directory.dm @@ -49,6 +49,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" @@ -63,12 +64,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 @@ -76,7 +79,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 @@ -87,6 +91,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/tgui/packages/tgui/interfaces/CharacterDirectory.js b/tgui/packages/tgui/interfaces/CharacterDirectory.js index c79e7aab96..9f4f97955c 100644 --- a/tgui/packages/tgui/interfaces/CharacterDirectory.js +++ b/tgui/packages/tgui/interfaces/CharacterDirectory.js @@ -94,6 +94,11 @@ const ViewCharacter = (props, context) => { content="Back" onClick={() => setOverlay(null)} /> }> +
+ + {overlay.species} + +
{overlay.tag} @@ -149,6 +154,7 @@ const CharacterDirectoryList = (props, context) => { Name + Species Vore Tag ERP Tag Event Pref @@ -162,6 +168,7 @@ const CharacterDirectoryList = (props, context) => { .map((character, i) => ( {character.name} + {character.species} {character.tag} {character.erptag} {character.eventtag} diff --git a/tgui/public/tgui.bundle.js b/tgui/public/tgui.bundle.js index 7c5bdaf858..8a67557b77 100644 --- a/tgui/public/tgui.bundle.js +++ b/tgui/public/tgui.bundle.js @@ -1 +1,5 @@ -!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,w=V.wing_style,x=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;x?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:x?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:w?(0,c.capitalize)(w):"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:[x?(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:[x&&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]})]})})})}},30008:function(e,n,t){"use strict";n.__esModule=!0,n.CasinoPrizeDispenserCh=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.CasinoPrizeDispenserCh=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=s.personalEventTag,h=(0,r.useLocalState)(n,"overlay",null),N=h[0];h[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:N&&(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:"Event Pref",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,content:C,onClick:function(){return i("setEventTag")}})}),(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:"Event Pref",children:(0,o.createComponentVNode)(2,c.Box,{children:a.eventtag})}),(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,s,{id:"eventtag",children:"Event Pref"}),(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,{children:e.eventtag}),(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-end",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):null]}),!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,x,{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,w,{queueMaterials:s,missingMaterials:u})})})]})},w=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)}))})},x=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,w=i.channel,x=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:x.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{content:e.channel,selected:w===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],w=(0,c.useLocalState)(n,"search_index",0),x=w[0],S=w[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=x+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},74231:function(e,n,t){"use strict";n.__esModule=!0,n.PrecisionEditor=void 0;var o=t(39812),r=(t(64499),t(71494)),c=t(74814),a=t(85952);t(60929);n.PrecisionEditor=function(e,n){var t=(0,r.useBackend)(n),s=(t.act,t.data.screenstate);return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,c.Section,{title:"Seed status",children:["main"===s&&(0,o.createComponentVNode)(2,i),"colors"===s&&(0,o.createComponentVNode)(2,l),"reagents"===s&&(0,o.createComponentVNode)(2,d)]})})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.health,d=i.plantcolor,s=i.fruitcolor,u=i.chems,m=i.seedname;return(0,o.createComponentVNode)(2,c.LabeledList,{children:u?(0,o.createFragment)([(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Name",children:m}),l<100?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Genetic Integrity",children:100-l+"%"}):(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Genetic Integrity",children:"UNVIABLE"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Plant Color",children:d}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Fruit Color",children:s}),(0,o.createComponentVNode)(2,c.LabeledList.Divider,{size:2}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Chems produced in fruit (click to splice out)",children:u.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{fluid:!0,content:e.displayname,onClick:function(){return a("prune",{gene_name:e.name})}},e.displayname)}))}),(0,o.createComponentVNode)(2,c.Button,{content:"Edit Colors",onClick:function(){return a("change_focus",{window:"colors"})}}),(0,o.createComponentVNode)(2,c.Button,{content:"Add Reagents",onClick:function(){return a("change_focus",{window:"reagents"})}}),(0,o.createComponentVNode)(2,c.LabeledList.Divider,{size:2}),(0,o.createComponentVNode)(2,c.Button,{content:"Eject Seed",onClick:function(){return a("eject")}})],0):(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Waiting",children:"There is currently no seed loaded."})})},l=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.plantcolor,d=i.fruitcolor;return(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Plant Color",children:l}),(0,o.createComponentVNode)(2,c.ColorBox,{color:l}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Fruit Color",children:d}),(0,o.createComponentVNode)(2,c.ColorBox,{color:d}),(0,o.createComponentVNode)(2,c.Button,{content:"Change plant color",onClick:function(){return a("change_color",{option:0})}}),(0,o.createComponentVNode)(2,c.Button,{content:"Change fruit color",onClick:function(){return a("change_color",{option:1})}}),(0,o.createComponentVNode)(2,c.LabeledList.Divider,{size:2}),(0,o.createComponentVNode)(2,c.Button,{content:"Return",onClick:function(){return a("change_focus",{window:"main"})}})]})},d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.beakerchems,d=i.health;return(0,o.createComponentVNode)(2,c.LabeledList,{children:[d<100?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Genetic Integrity",children:100-d+"%"}):(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Genetic Integrity",children:"UNVIABLE"}),(0,o.createComponentVNode)(2,c.NoticeBox,{info:1,width:19,height:9,ml:1,children:["Available chems to choose are based on the reagents stored in the beaker. "," A minimum of 100 units of reagent is required to generate a viable sequence. ","The chosen reagent will be consumed in the process.",(0,o.createComponentVNode)(2,c.Box,{bold:1,mt:1,children:"This process severely damages genetic integrity."})]}),(0,o.createComponentVNode)(2,c.Box,{width:20,opacity:.5,ml:1,mt:6,mb:2,children:["Plant will produce 1 additional unit for every 25 units beyond 100"," (modified by potency)"]}),l?(0,o.createFragment)([d<100?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Available reagents",children:l.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{fluid:!0,content:e.displayname,onClick:function(){return a("add_chem",{target_chem:e.name})}},e.displayname)}))}):(0,o.createComponentVNode)(2,c.NoticeBox,{warning:1,children:"WARNING: Genetic integrity of seed is too poor to proceed."}),(0,o.createComponentVNode)(2,c.Button,{content:"Eject Beaker",onClick:function(){return a("eject_beaker")}})],0):(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Waiting",children:"There is currently no beaker loaded."}),(0,o.createComponentVNode)(2,c.Button,{content:"Return",onClick:function(){return a("change_focus",{window:"main"})}})]})}},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,w=V.outputLevelMax,x=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=w,l=x,"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",w=!1,x="layer-group";b?(x="hammer",_="average",w=!0):k&&k.length&&(x="sync",_="green",w=!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:x,iconSpin:w,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,w=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(w).length&&(0,o.createComponentVNode)(2,a.Section,{title:"Sensors",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:Object.keys(w).map((function(e){var n=w[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",w=(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:w,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})})]})})})}},75652:function(e,n,t){"use strict";n.__esModule=!0,n.StarcasterCh=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=t(5908);n.StarcasterCh=function(e,n){var t=(0,r.useBackend)(n),c=(t.act,t.data.article),i=(0,o.createComponentVNode)(2,d);return c&&(i=(0,o.createComponentVNode)(2,l)),(0,o.createComponentVNode)(2,a.Window,{width:575,height:750,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:i})})};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.createComponentVNode)(2,c.Button,{icon:"times",onClick:function(){return a("PRG_reset")},children:"Close"}),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})}})},e.uid)}))||(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Error",children:"Unable to connect to Starfire database."})})})}},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],w=L[1],x=(0,r.createSearch)(v,(function(e){return e.name+e.desc})),S=v.length>0&&g.flatMap((function(e){return e.items||[]})).filter(x).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 w(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,w=d.radiation,x=(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:x,icon:"radiation",onClick:function(){return l("toggle_rad_shield")},children:x?"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:w,maxValue:100,ranges:{bad:[65,Infinity],average:[15,65],good:[0,15]},children:[w," 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,"./CasinoPrizeDispenserCh":30008,"./CasinoPrizeDispenserCh.js":30008,"./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,"./PrecisionEditor":74231,"./PrecisionEditor.js":74231,"./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,"./StarcasterCh":75652,"./StarcasterCh.js":75652,"./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,w=V.wing_style,x=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;x?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:x?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:w?(0,c.capitalize)(w):"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:[x?(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:[x&&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]})]})})})}},30008:function(e,n,t){"use strict";n.__esModule=!0,n.CasinoPrizeDispenserCh=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.CasinoPrizeDispenserCh=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=s.personalEventTag,h=(0,r.useLocalState)(n,"overlay",null),N=h[0];h[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:N&&(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:"Event Pref",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,content:C,onClick:function(){return i("setEventTag")}})}),(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:"Event Pref",children:(0,o.createComponentVNode)(2,c.Box,{children:a.eventtag})}),(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,s,{id:"eventtag",children:"Event Pref"}),(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,{children:e.eventtag}),(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-end",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):null]}),!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,x,{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,w,{queueMaterials:s,missingMaterials:u})})})]})},w=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)}))})},x=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,w=i.channel,x=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:x.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{content:e.channel,selected:w===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],w=(0,c.useLocalState)(n,"search_index",0),x=w[0],S=w[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=x+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},74231:function(e,n,t){"use strict";n.__esModule=!0,n.PrecisionEditor=void 0;var o=t(39812),r=(t(64499),t(71494)),c=t(74814),a=t(85952);t(60929);n.PrecisionEditor=function(e,n){var t=(0,r.useBackend)(n),s=(t.act,t.data.screenstate);return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,c.Section,{title:"Seed status",children:["main"===s&&(0,o.createComponentVNode)(2,i),"colors"===s&&(0,o.createComponentVNode)(2,l),"reagents"===s&&(0,o.createComponentVNode)(2,d)]})})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.health,d=i.plantcolor,s=i.fruitcolor,u=i.chems,m=i.seedname;return(0,o.createComponentVNode)(2,c.LabeledList,{children:u?(0,o.createFragment)([(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Name",children:m}),l<100?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Genetic Integrity",children:100-l+"%"}):(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Genetic Integrity",children:"UNVIABLE"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Plant Color",children:d}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Fruit Color",children:s}),(0,o.createComponentVNode)(2,c.LabeledList.Divider,{size:2}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Chems produced in fruit (click to splice out)",children:u.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{fluid:!0,content:e.displayname,onClick:function(){return a("prune",{gene_name:e.name})}},e.displayname)}))}),(0,o.createComponentVNode)(2,c.Button,{content:"Edit Colors",onClick:function(){return a("change_focus",{window:"colors"})}}),(0,o.createComponentVNode)(2,c.Button,{content:"Add Reagents",onClick:function(){return a("change_focus",{window:"reagents"})}}),(0,o.createComponentVNode)(2,c.LabeledList.Divider,{size:2}),(0,o.createComponentVNode)(2,c.Button,{content:"Eject Seed",onClick:function(){return a("eject")}})],0):(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Waiting",children:"There is currently no seed loaded."})})},l=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.plantcolor,d=i.fruitcolor;return(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Plant Color",children:l}),(0,o.createComponentVNode)(2,c.ColorBox,{color:l}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Fruit Color",children:d}),(0,o.createComponentVNode)(2,c.ColorBox,{color:d}),(0,o.createComponentVNode)(2,c.Button,{content:"Change plant color",onClick:function(){return a("change_color",{option:0})}}),(0,o.createComponentVNode)(2,c.Button,{content:"Change fruit color",onClick:function(){return a("change_color",{option:1})}}),(0,o.createComponentVNode)(2,c.LabeledList.Divider,{size:2}),(0,o.createComponentVNode)(2,c.Button,{content:"Return",onClick:function(){return a("change_focus",{window:"main"})}})]})},d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.beakerchems,d=i.health;return(0,o.createComponentVNode)(2,c.LabeledList,{children:[d<100?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Genetic Integrity",children:100-d+"%"}):(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Genetic Integrity",children:"UNVIABLE"}),(0,o.createComponentVNode)(2,c.NoticeBox,{info:1,width:19,height:9,ml:1,children:["Available chems to choose are based on the reagents stored in the beaker. "," A minimum of 100 units of reagent is required to generate a viable sequence. ","The chosen reagent will be consumed in the process.",(0,o.createComponentVNode)(2,c.Box,{bold:1,mt:1,children:"This process severely damages genetic integrity."})]}),(0,o.createComponentVNode)(2,c.Box,{width:20,opacity:.5,ml:1,mt:6,mb:2,children:["Plant will produce 1 additional unit for every 25 units beyond 100"," (modified by potency)"]}),l?(0,o.createFragment)([d<100?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Available reagents",children:l.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{fluid:!0,content:e.displayname,onClick:function(){return a("add_chem",{target_chem:e.name})}},e.displayname)}))}):(0,o.createComponentVNode)(2,c.NoticeBox,{warning:1,children:"WARNING: Genetic integrity of seed is too poor to proceed."}),(0,o.createComponentVNode)(2,c.Button,{content:"Eject Beaker",onClick:function(){return a("eject_beaker")}})],0):(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Waiting",children:"There is currently no beaker loaded."}),(0,o.createComponentVNode)(2,c.Button,{content:"Return",onClick:function(){return a("change_focus",{window:"main"})}})]})}},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,w=V.outputLevelMax,x=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=w,l=x,"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",w=!1,x="layer-group";b?(x="hammer",_="average",w=!0):k&&k.length&&(x="sync",_="green",w=!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:x,iconSpin:w,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,w=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(w).length&&(0,o.createComponentVNode)(2,a.Section,{title:"Sensors",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:Object.keys(w).map((function(e){var n=w[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",w=(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:w,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})})]})})})}},75652:function(e,n,t){"use strict";n.__esModule=!0,n.StarcasterCh=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=t(5908);n.StarcasterCh=function(e,n){var t=(0,r.useBackend)(n),c=(t.act,t.data.article),i=(0,o.createComponentVNode)(2,d);return c&&(i=(0,o.createComponentVNode)(2,l)),(0,o.createComponentVNode)(2,a.Window,{width:575,height:750,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:i})})};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.createComponentVNode)(2,c.Button,{icon:"times",onClick:function(){return a("PRG_reset")},children:"Close"}),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})}})},e.uid)}))||(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Error",children:"Unable to connect to Starfire database."})})})}},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],w=L[1],x=(0,r.createSearch)(v,(function(e){return e.name+e.desc})),S=v.length>0&&g.flatMap((function(e){return e.items||[]})).filter(x).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 w(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,w=d.radiation,x=(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:x,icon:"radiation",onClick:function(){return l("toggle_rad_shield")},children:x?"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:w,maxValue:100,ranges:{bad:[65,Infinity],average:[15,65],good:[0,15]},children:[w," 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,"./CasinoPrizeDispenserCh":30008,"./CasinoPrizeDispenserCh.js":30008,"./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,"./PrecisionEditor":74231,"./PrecisionEditor.js":74231,"./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,"./StarcasterCh":75652,"./StarcasterCh.js":75652,"./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-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>>>>>> d9eeb38a73... Merge pull request #12453 from KillianKirilenko/kk-chardir From 4c68d0bdd54d38f80d6e23ed880e9c0803fc1320 Mon Sep 17 00:00:00 2001 From: Darlantan Date: Sun, 20 Mar 2022 18:48:34 -0400 Subject: [PATCH 09/11] bundle that makes you say yes --- tgui/public/tgui.bundle.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tgui/public/tgui.bundle.js b/tgui/public/tgui.bundle.js index 8a67557b77..47603cea36 100644 --- a/tgui/public/tgui.bundle.js +++ b/tgui/public/tgui.bundle.js @@ -1,5 +1 @@ -<<<<<<< HEAD -!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,w=V.wing_style,x=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;x?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:x?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:w?(0,c.capitalize)(w):"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:[x?(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:[x&&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]})]})})})}},30008:function(e,n,t){"use strict";n.__esModule=!0,n.CasinoPrizeDispenserCh=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.CasinoPrizeDispenserCh=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=s.personalEventTag,h=(0,r.useLocalState)(n,"overlay",null),N=h[0];h[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:N&&(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:"Event Pref",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,content:C,onClick:function(){return i("setEventTag")}})}),(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:"Event Pref",children:(0,o.createComponentVNode)(2,c.Box,{children:a.eventtag})}),(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,s,{id:"eventtag",children:"Event Pref"}),(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,{children:e.eventtag}),(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-end",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):null]}),!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,x,{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,w,{queueMaterials:s,missingMaterials:u})})})]})},w=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)}))})},x=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,w=i.channel,x=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:x.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{content:e.channel,selected:w===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],w=(0,c.useLocalState)(n,"search_index",0),x=w[0],S=w[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=x+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},74231:function(e,n,t){"use strict";n.__esModule=!0,n.PrecisionEditor=void 0;var o=t(39812),r=(t(64499),t(71494)),c=t(74814),a=t(85952);t(60929);n.PrecisionEditor=function(e,n){var t=(0,r.useBackend)(n),s=(t.act,t.data.screenstate);return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,c.Section,{title:"Seed status",children:["main"===s&&(0,o.createComponentVNode)(2,i),"colors"===s&&(0,o.createComponentVNode)(2,l),"reagents"===s&&(0,o.createComponentVNode)(2,d)]})})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.health,d=i.plantcolor,s=i.fruitcolor,u=i.chems,m=i.seedname;return(0,o.createComponentVNode)(2,c.LabeledList,{children:u?(0,o.createFragment)([(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Name",children:m}),l<100?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Genetic Integrity",children:100-l+"%"}):(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Genetic Integrity",children:"UNVIABLE"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Plant Color",children:d}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Fruit Color",children:s}),(0,o.createComponentVNode)(2,c.LabeledList.Divider,{size:2}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Chems produced in fruit (click to splice out)",children:u.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{fluid:!0,content:e.displayname,onClick:function(){return a("prune",{gene_name:e.name})}},e.displayname)}))}),(0,o.createComponentVNode)(2,c.Button,{content:"Edit Colors",onClick:function(){return a("change_focus",{window:"colors"})}}),(0,o.createComponentVNode)(2,c.Button,{content:"Add Reagents",onClick:function(){return a("change_focus",{window:"reagents"})}}),(0,o.createComponentVNode)(2,c.LabeledList.Divider,{size:2}),(0,o.createComponentVNode)(2,c.Button,{content:"Eject Seed",onClick:function(){return a("eject")}})],0):(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Waiting",children:"There is currently no seed loaded."})})},l=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.plantcolor,d=i.fruitcolor;return(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Plant Color",children:l}),(0,o.createComponentVNode)(2,c.ColorBox,{color:l}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Fruit Color",children:d}),(0,o.createComponentVNode)(2,c.ColorBox,{color:d}),(0,o.createComponentVNode)(2,c.Button,{content:"Change plant color",onClick:function(){return a("change_color",{option:0})}}),(0,o.createComponentVNode)(2,c.Button,{content:"Change fruit color",onClick:function(){return a("change_color",{option:1})}}),(0,o.createComponentVNode)(2,c.LabeledList.Divider,{size:2}),(0,o.createComponentVNode)(2,c.Button,{content:"Return",onClick:function(){return a("change_focus",{window:"main"})}})]})},d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.beakerchems,d=i.health;return(0,o.createComponentVNode)(2,c.LabeledList,{children:[d<100?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Genetic Integrity",children:100-d+"%"}):(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Genetic Integrity",children:"UNVIABLE"}),(0,o.createComponentVNode)(2,c.NoticeBox,{info:1,width:19,height:9,ml:1,children:["Available chems to choose are based on the reagents stored in the beaker. "," A minimum of 100 units of reagent is required to generate a viable sequence. ","The chosen reagent will be consumed in the process.",(0,o.createComponentVNode)(2,c.Box,{bold:1,mt:1,children:"This process severely damages genetic integrity."})]}),(0,o.createComponentVNode)(2,c.Box,{width:20,opacity:.5,ml:1,mt:6,mb:2,children:["Plant will produce 1 additional unit for every 25 units beyond 100"," (modified by potency)"]}),l?(0,o.createFragment)([d<100?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Available reagents",children:l.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{fluid:!0,content:e.displayname,onClick:function(){return a("add_chem",{target_chem:e.name})}},e.displayname)}))}):(0,o.createComponentVNode)(2,c.NoticeBox,{warning:1,children:"WARNING: Genetic integrity of seed is too poor to proceed."}),(0,o.createComponentVNode)(2,c.Button,{content:"Eject Beaker",onClick:function(){return a("eject_beaker")}})],0):(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Waiting",children:"There is currently no beaker loaded."}),(0,o.createComponentVNode)(2,c.Button,{content:"Return",onClick:function(){return a("change_focus",{window:"main"})}})]})}},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,w=V.outputLevelMax,x=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=w,l=x,"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",w=!1,x="layer-group";b?(x="hammer",_="average",w=!0):k&&k.length&&(x="sync",_="green",w=!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:x,iconSpin:w,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,w=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(w).length&&(0,o.createComponentVNode)(2,a.Section,{title:"Sensors",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:Object.keys(w).map((function(e){var n=w[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",w=(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:w,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})})]})})})}},75652:function(e,n,t){"use strict";n.__esModule=!0,n.StarcasterCh=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=t(5908);n.StarcasterCh=function(e,n){var t=(0,r.useBackend)(n),c=(t.act,t.data.article),i=(0,o.createComponentVNode)(2,d);return c&&(i=(0,o.createComponentVNode)(2,l)),(0,o.createComponentVNode)(2,a.Window,{width:575,height:750,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:i})})};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.createComponentVNode)(2,c.Button,{icon:"times",onClick:function(){return a("PRG_reset")},children:"Close"}),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})}})},e.uid)}))||(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Error",children:"Unable to connect to Starfire database."})})})}},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],w=L[1],x=(0,r.createSearch)(v,(function(e){return e.name+e.desc})),S=v.length>0&&g.flatMap((function(e){return e.items||[]})).filter(x).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 w(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,w=d.radiation,x=(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:x,icon:"radiation",onClick:function(){return l("toggle_rad_shield")},children:x?"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:w,maxValue:100,ranges:{bad:[65,Infinity],average:[15,65],good:[0,15]},children:[w," 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,"./CasinoPrizeDispenserCh":30008,"./CasinoPrizeDispenserCh.js":30008,"./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,"./PrecisionEditor":74231,"./PrecisionEditor.js":74231,"./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,"./StarcasterCh":75652,"./StarcasterCh.js":75652,"./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-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>>>>>> d9eeb38a73... Merge pull request #12453 from KillianKirilenko/kk-chardir +!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,w=V.wing_style,x=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;x?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:x?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:w?(0,c.capitalize)(w):"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:[x?(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:[x&&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]})]})})})}},30008:function(e,n,t){"use strict";n.__esModule=!0,n.CasinoPrizeDispenserCh=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.CasinoPrizeDispenserCh=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=s.personalEventTag,h=(0,r.useLocalState)(n,"overlay",null),N=h[0];h[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:N&&(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:"Event Pref",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,content:C,onClick:function(){return i("setEventTag")}})}),(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:"Event Pref",children:(0,o.createComponentVNode)(2,c.Box,{children:a.eventtag})}),(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,s,{id:"eventtag",children:"Event Pref"}),(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,{children:e.eventtag}),(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-end",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):null]}),!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,x,{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,w,{queueMaterials:s,missingMaterials:u})})})]})},w=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)}))})},x=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,w=i.channel,x=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:x.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{content:e.channel,selected:w===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],w=(0,c.useLocalState)(n,"search_index",0),x=w[0],S=w[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=x+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},74231:function(e,n,t){"use strict";n.__esModule=!0,n.PrecisionEditor=void 0;var o=t(39812),r=(t(64499),t(71494)),c=t(74814),a=t(85952);t(60929);n.PrecisionEditor=function(e,n){var t=(0,r.useBackend)(n),s=(t.act,t.data.screenstate);return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,c.Section,{title:"Seed status",children:["main"===s&&(0,o.createComponentVNode)(2,i),"colors"===s&&(0,o.createComponentVNode)(2,l),"reagents"===s&&(0,o.createComponentVNode)(2,d)]})})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.health,d=i.plantcolor,s=i.fruitcolor,u=i.chems,m=i.seedname;return(0,o.createComponentVNode)(2,c.LabeledList,{children:u?(0,o.createFragment)([(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Name",children:m}),l<100?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Genetic Integrity",children:100-l+"%"}):(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Genetic Integrity",children:"UNVIABLE"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Plant Color",children:d}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Fruit Color",children:s}),(0,o.createComponentVNode)(2,c.LabeledList.Divider,{size:2}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Chems produced in fruit (click to splice out)",children:u.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{fluid:!0,content:e.displayname,onClick:function(){return a("prune",{gene_name:e.name})}},e.displayname)}))}),(0,o.createComponentVNode)(2,c.Button,{content:"Edit Colors",onClick:function(){return a("change_focus",{window:"colors"})}}),(0,o.createComponentVNode)(2,c.Button,{content:"Add Reagents",onClick:function(){return a("change_focus",{window:"reagents"})}}),(0,o.createComponentVNode)(2,c.LabeledList.Divider,{size:2}),(0,o.createComponentVNode)(2,c.Button,{content:"Eject Seed",onClick:function(){return a("eject")}})],0):(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Waiting",children:"There is currently no seed loaded."})})},l=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.plantcolor,d=i.fruitcolor;return(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Plant Color",children:l}),(0,o.createComponentVNode)(2,c.ColorBox,{color:l}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Fruit Color",children:d}),(0,o.createComponentVNode)(2,c.ColorBox,{color:d}),(0,o.createComponentVNode)(2,c.Button,{content:"Change plant color",onClick:function(){return a("change_color",{option:0})}}),(0,o.createComponentVNode)(2,c.Button,{content:"Change fruit color",onClick:function(){return a("change_color",{option:1})}}),(0,o.createComponentVNode)(2,c.LabeledList.Divider,{size:2}),(0,o.createComponentVNode)(2,c.Button,{content:"Return",onClick:function(){return a("change_focus",{window:"main"})}})]})},d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.beakerchems,d=i.health;return(0,o.createComponentVNode)(2,c.LabeledList,{children:[d<100?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Genetic Integrity",children:100-d+"%"}):(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Genetic Integrity",children:"UNVIABLE"}),(0,o.createComponentVNode)(2,c.NoticeBox,{info:1,width:19,height:9,ml:1,children:["Available chems to choose are based on the reagents stored in the beaker. "," A minimum of 100 units of reagent is required to generate a viable sequence. ","The chosen reagent will be consumed in the process.",(0,o.createComponentVNode)(2,c.Box,{bold:1,mt:1,children:"This process severely damages genetic integrity."})]}),(0,o.createComponentVNode)(2,c.Box,{width:20,opacity:.5,ml:1,mt:6,mb:2,children:["Plant will produce 1 additional unit for every 25 units beyond 100"," (modified by potency)"]}),l?(0,o.createFragment)([d<100?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Available reagents",children:l.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{fluid:!0,content:e.displayname,onClick:function(){return a("add_chem",{target_chem:e.name})}},e.displayname)}))}):(0,o.createComponentVNode)(2,c.NoticeBox,{warning:1,children:"WARNING: Genetic integrity of seed is too poor to proceed."}),(0,o.createComponentVNode)(2,c.Button,{content:"Eject Beaker",onClick:function(){return a("eject_beaker")}})],0):(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Waiting",children:"There is currently no beaker loaded."}),(0,o.createComponentVNode)(2,c.Button,{content:"Return",onClick:function(){return a("change_focus",{window:"main"})}})]})}},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,w=V.outputLevelMax,x=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=w,l=x,"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",w=!1,x="layer-group";b?(x="hammer",_="average",w=!0):k&&k.length&&(x="sync",_="green",w=!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:x,iconSpin:w,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,w=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(w).length&&(0,o.createComponentVNode)(2,a.Section,{title:"Sensors",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:Object.keys(w).map((function(e){var n=w[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",w=(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:w,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})})]})})})}},75652:function(e,n,t){"use strict";n.__esModule=!0,n.StarcasterCh=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=t(5908);n.StarcasterCh=function(e,n){var t=(0,r.useBackend)(n),c=(t.act,t.data.article),i=(0,o.createComponentVNode)(2,d);return c&&(i=(0,o.createComponentVNode)(2,l)),(0,o.createComponentVNode)(2,a.Window,{width:575,height:750,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:i})})};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.createComponentVNode)(2,c.Button,{icon:"times",onClick:function(){return a("PRG_reset")},children:"Close"}),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})}})},e.uid)}))||(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Error",children:"Unable to connect to Starfire database."})})})}},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],w=L[1],x=(0,r.createSearch)(v,(function(e){return e.name+e.desc})),S=v.length>0&&g.flatMap((function(e){return e.items||[]})).filter(x).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 w(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,w=d.radiation,x=(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:x,icon:"radiation",onClick:function(){return l("toggle_rad_shield")},children:x?"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:w,maxValue:100,ranges:{bad:[65,Infinity],average:[15,65],good:[0,15]},children:[w," 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,"./CasinoPrizeDispenserCh":30008,"./CasinoPrizeDispenserCh.js":30008,"./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,"./PrecisionEditor":74231,"./PrecisionEditor.js":74231,"./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,"./StarcasterCh":75652,"./StarcasterCh.js":75652,"./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 Date: Sun, 20 Mar 2022 18:52:03 -0400 Subject: [PATCH 10/11] powder that makes you say yes --- .../structures/crates_lockers/closets/secure/security.dm | 6 ------ 1 file changed, 6 deletions(-) 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 cc34f0cd41..19477d1090 100644 --- a/code/game/objects/structures/crates_lockers/closets/secure/security.dm +++ b/code/game/objects/structures/crates_lockers/closets/secure/security.dm @@ -242,15 +242,9 @@ starts_with = list( /obj/item/clothing/accessory/badge/holo/detective, -<<<<<<< HEAD /obj/item/clothing/gloves/forensic, //CHOMP Edit replaces black gloves /obj/item/gunbox, //CHOMP Edit undoes vorestation removal and adds back gunbox - /obj/item/weapon/gun/energy/stunrevolver/vintage, -======= - /obj/item/clothing/gloves/black, - ///obj/item/gunbox, // VOREStation Removal /obj/item/gunbox/stun, ->>>>>>> e45c901f7c... Merge pull request #12443 from GhostActual/detective_guns /obj/item/weapon/storage/belt/detective, /obj/item/weapon/storage/box/evidence, /obj/item/device/radio/headset/headset_sec, From ad4d3a39e700709aeef09889c4c993e08b721f28 Mon Sep 17 00:00:00 2001 From: Nadyr <41974248+Darlantanis@users.noreply.github.com> Date: Sun, 20 Mar 2022 18:53:26 -0400 Subject: [PATCH 11/11] powder that makes you say yes --- code/modules/xenobio/items/weapons.dm | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/code/modules/xenobio/items/weapons.dm b/code/modules/xenobio/items/weapons.dm index 68437ee56e..b02a438632 100644 --- a/code/modules/xenobio/items/weapons.dm +++ b/code/modules/xenobio/items/weapons.dm @@ -48,17 +48,11 @@ 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. -<<<<<<< HEAD - 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." - recoil_mode = 0 //CHOMP Addition -======= 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." ->>>>>>> e45c901f7c... Merge pull request #12443 from GhostActual/detective_guns + recoil_mode = 0 //CHOMP Addition /obj/item/weapon/gun/energy/taser/xeno/robot // Borg version self_recharge = 1